@vchasno/ui-kit 0.2.13 → 0.2.15

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 (130) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/Datepicker/index.cjs.js +13548 -8319
  3. package/dist/Datepicker/index.cjs.js.map +1 -1
  4. package/dist/Datepicker/index.js +13552 -8323
  5. package/dist/Datepicker/index.js.map +1 -1
  6. package/dist/Datepicker/types/components/BlackTooltip/BlackTooltip.d.ts +5 -0
  7. package/dist/Datepicker/types/components/BlackTooltip/index.d.ts +2 -0
  8. package/dist/Datepicker/types/components/ProjectsPopover/ProductLink.d.ts +12 -0
  9. package/dist/Datepicker/types/components/ProjectsPopover/ProjectsPopover.d.ts +13 -0
  10. package/dist/Datepicker/types/components/ProjectsPopover/index.d.ts +2 -0
  11. package/dist/Datepicker/types/components/ProjectsPopover/mappers.d.ts +6 -0
  12. package/dist/Datepicker/types/components/ProjectsPopover/types.d.ts +7 -0
  13. package/dist/Datepicker/types/components/ProjectsPopover/utils.d.ts +10 -0
  14. package/dist/Datepicker/types/components/Select/Select.d.ts +1 -1
  15. package/dist/Datepicker/types/components/index.d.ts +2 -0
  16. package/dist/ProjectsPopover/index.cjs.js +12650 -0
  17. package/dist/ProjectsPopover/index.cjs.js.map +1 -0
  18. package/dist/ProjectsPopover/index.d.ts +27 -0
  19. package/dist/ProjectsPopover/index.js +12630 -0
  20. package/dist/ProjectsPopover/index.js.map +1 -0
  21. package/dist/ProjectsPopover/types/components/Alert/Alert.d.ts +16 -0
  22. package/dist/ProjectsPopover/types/components/Alert/index.d.ts +2 -0
  23. package/dist/ProjectsPopover/types/components/BlackTooltip/BlackTooltip.d.ts +5 -0
  24. package/dist/ProjectsPopover/types/components/BlackTooltip/index.d.ts +2 -0
  25. package/dist/ProjectsPopover/types/components/BubbleBox/BubbleBox.d.ts +17 -0
  26. package/dist/ProjectsPopover/types/components/BubbleBox/index.d.ts +3 -0
  27. package/dist/ProjectsPopover/types/components/BubbleBox/utils.d.ts +1 -0
  28. package/dist/ProjectsPopover/types/components/Button/Button.d.ts +12 -0
  29. package/dist/ProjectsPopover/types/components/Button/index.d.ts +2 -0
  30. package/dist/ProjectsPopover/types/components/Checkbox/Checkbox.d.ts +11 -0
  31. package/dist/ProjectsPopover/types/components/Checkbox/index.d.ts +2 -0
  32. package/dist/ProjectsPopover/types/components/Datepicker/DatePicker.d.ts +15 -0
  33. package/dist/ProjectsPopover/types/components/Datepicker/index.d.ts +2 -0
  34. package/dist/ProjectsPopover/types/components/FlexBox/FlexBox.d.ts +15 -0
  35. package/dist/ProjectsPopover/types/components/FlexBox/index.d.ts +2 -0
  36. package/dist/ProjectsPopover/types/components/Input/Input.d.ts +15 -0
  37. package/dist/ProjectsPopover/types/components/Input/index.d.ts +2 -0
  38. package/dist/ProjectsPopover/types/components/InputMeta/InputMeta.d.ts +8 -0
  39. package/dist/ProjectsPopover/types/components/InputMeta/index.d.ts +2 -0
  40. package/dist/ProjectsPopover/types/components/LabelText/LabelText.d.ts +8 -0
  41. package/dist/ProjectsPopover/types/components/LabelText/index.d.ts +1 -0
  42. package/dist/ProjectsPopover/types/components/MaskInput/MaskInput.d.ts +10 -0
  43. package/dist/ProjectsPopover/types/components/MaskInput/index.d.ts +2 -0
  44. package/dist/ProjectsPopover/types/components/Pagination/Pagination.d.ts +16 -0
  45. package/dist/ProjectsPopover/types/components/Pagination/index.d.ts +2 -0
  46. package/dist/ProjectsPopover/types/components/Pagination/utils.d.ts +1 -0
  47. package/dist/ProjectsPopover/types/components/Paragraph/Paragraph.d.ts +9 -0
  48. package/dist/ProjectsPopover/types/components/Paragraph/index.d.ts +2 -0
  49. package/dist/ProjectsPopover/types/components/ProjectsPopover/ProductLink.d.ts +12 -0
  50. package/dist/ProjectsPopover/types/components/ProjectsPopover/ProjectsPopover.d.ts +13 -0
  51. package/dist/ProjectsPopover/types/components/ProjectsPopover/index.d.ts +2 -0
  52. package/dist/ProjectsPopover/types/components/ProjectsPopover/mappers.d.ts +6 -0
  53. package/dist/ProjectsPopover/types/components/ProjectsPopover/types.d.ts +7 -0
  54. package/dist/ProjectsPopover/types/components/ProjectsPopover/utils.d.ts +10 -0
  55. package/dist/ProjectsPopover/types/components/PulseDot/PulseDot.d.ts +22 -0
  56. package/dist/ProjectsPopover/types/components/PulseDot/index.d.ts +2 -0
  57. package/dist/ProjectsPopover/types/components/Select/Select.d.ts +39 -0
  58. package/dist/ProjectsPopover/types/components/Select/SelectCreatable.d.ts +14 -0
  59. package/dist/ProjectsPopover/types/components/Select/customComponents.d.ts +9 -0
  60. package/dist/ProjectsPopover/types/components/Select/defaultProps.d.ts +6 -0
  61. package/dist/ProjectsPopover/types/components/Select/index.d.ts +5 -0
  62. package/dist/ProjectsPopover/types/components/Select/types.d.ts +4 -0
  63. package/dist/ProjectsPopover/types/components/Spinner/Spinner.d.ts +18 -0
  64. package/dist/ProjectsPopover/types/components/Spinner/index.d.ts +2 -0
  65. package/dist/ProjectsPopover/types/components/SplashLogo/SplashLogo.d.ts +12 -0
  66. package/dist/ProjectsPopover/types/components/SplashLogo/dataUrls.d.ts +6 -0
  67. package/dist/ProjectsPopover/types/components/SplashLogo/index.d.ts +2 -0
  68. package/dist/ProjectsPopover/types/components/SvgBorder/SvgBorder.d.ts +18 -0
  69. package/dist/ProjectsPopover/types/components/SvgBorder/index.d.ts +3 -0
  70. package/dist/ProjectsPopover/types/components/SvgBorder/utils.d.ts +1 -0
  71. package/dist/ProjectsPopover/types/components/Switch/Switch.d.ts +14 -0
  72. package/dist/ProjectsPopover/types/components/Switch/index.d.ts +2 -0
  73. package/dist/ProjectsPopover/types/components/Tabs/Tabs.d.ts +19 -0
  74. package/dist/ProjectsPopover/types/components/Tabs/index.d.ts +2 -0
  75. package/dist/ProjectsPopover/types/components/Text/Text.d.ts +14 -0
  76. package/dist/ProjectsPopover/types/components/Text/index.d.ts +2 -0
  77. package/dist/ProjectsPopover/types/components/TextAreaInput/TextAreaInput.d.ts +10 -0
  78. package/dist/ProjectsPopover/types/components/TextAreaInput/index.d.ts +2 -0
  79. package/dist/ProjectsPopover/types/components/TextInput/TextInput.d.ts +9 -0
  80. package/dist/ProjectsPopover/types/components/TextInput/index.d.ts +2 -0
  81. package/dist/ProjectsPopover/types/components/Title/Title.d.ts +9 -0
  82. package/dist/ProjectsPopover/types/components/Title/index.d.ts +2 -0
  83. package/dist/ProjectsPopover/types/components/index.d.ts +42 -0
  84. package/dist/ProjectsPopover/types/components/types.d.ts +24 -0
  85. package/dist/ProjectsPopover/types/hooks/useClientRect.d.ts +5 -0
  86. package/dist/ProjectsPopover/types/index.d.ts +2 -0
  87. package/dist/ProjectsPopover/types/utils/react.d.ts +6 -0
  88. package/dist/Select/index.cjs.js +195 -92
  89. package/dist/Select/index.cjs.js.map +1 -1
  90. package/dist/Select/index.d.ts +1 -1
  91. package/dist/Select/index.js +195 -92
  92. package/dist/Select/index.js.map +1 -1
  93. package/dist/Select/types/components/BlackTooltip/BlackTooltip.d.ts +5 -0
  94. package/dist/Select/types/components/BlackTooltip/index.d.ts +2 -0
  95. package/dist/Select/types/components/ProjectsPopover/ProductLink.d.ts +12 -0
  96. package/dist/Select/types/components/ProjectsPopover/ProjectsPopover.d.ts +13 -0
  97. package/dist/Select/types/components/ProjectsPopover/index.d.ts +2 -0
  98. package/dist/Select/types/components/ProjectsPopover/mappers.d.ts +6 -0
  99. package/dist/Select/types/components/ProjectsPopover/types.d.ts +7 -0
  100. package/dist/Select/types/components/ProjectsPopover/utils.d.ts +10 -0
  101. package/dist/Select/types/components/Select/Select.d.ts +1 -1
  102. package/dist/Select/types/components/index.d.ts +2 -0
  103. package/dist/SelectCreatable/index.cjs.js +195 -92
  104. package/dist/SelectCreatable/index.cjs.js.map +1 -1
  105. package/dist/SelectCreatable/index.js +195 -92
  106. package/dist/SelectCreatable/index.js.map +1 -1
  107. package/dist/SelectCreatable/types/components/BlackTooltip/BlackTooltip.d.ts +5 -0
  108. package/dist/SelectCreatable/types/components/BlackTooltip/index.d.ts +2 -0
  109. package/dist/SelectCreatable/types/components/ProjectsPopover/ProductLink.d.ts +12 -0
  110. package/dist/SelectCreatable/types/components/ProjectsPopover/ProjectsPopover.d.ts +13 -0
  111. package/dist/SelectCreatable/types/components/ProjectsPopover/index.d.ts +2 -0
  112. package/dist/SelectCreatable/types/components/ProjectsPopover/mappers.d.ts +6 -0
  113. package/dist/SelectCreatable/types/components/ProjectsPopover/types.d.ts +7 -0
  114. package/dist/SelectCreatable/types/components/ProjectsPopover/utils.d.ts +10 -0
  115. package/dist/SelectCreatable/types/components/Select/Select.d.ts +1 -1
  116. package/dist/SelectCreatable/types/components/index.d.ts +2 -0
  117. package/dist/index.d.ts +9 -1
  118. package/dist/index.js +12451 -365
  119. package/dist/index.js.map +1 -1
  120. package/dist/types/components/BlackTooltip/BlackTooltip.d.ts +5 -0
  121. package/dist/types/components/BlackTooltip/index.d.ts +2 -0
  122. package/dist/types/components/ProjectsPopover/ProductLink.d.ts +12 -0
  123. package/dist/types/components/ProjectsPopover/ProjectsPopover.d.ts +13 -0
  124. package/dist/types/components/ProjectsPopover/index.d.ts +2 -0
  125. package/dist/types/components/ProjectsPopover/mappers.d.ts +6 -0
  126. package/dist/types/components/ProjectsPopover/types.d.ts +7 -0
  127. package/dist/types/components/ProjectsPopover/utils.d.ts +10 -0
  128. package/dist/types/components/Select/Select.d.ts +1 -1
  129. package/dist/types/components/index.d.ts +2 -0
  130. package/package.json +45 -37
@@ -0,0 +1,5 @@
1
+ import { TooltipProps } from '@mui/material/Tooltip';
2
+ export interface BlackTooltipProps extends TooltipProps {
3
+ }
4
+ declare const BlackTooltip: import("@emotion/styled").StyledComponent<TooltipProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
5
+ export default BlackTooltip;
@@ -0,0 +1,2 @@
1
+ export { default } from './BlackTooltip';
2
+ export type { BlackTooltipProps } from './BlackTooltip';
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import { AllProducts } from './types';
3
+ export interface ProductLinkProps {
4
+ product: AllProducts;
5
+ ctxProduct: string;
6
+ edrpou?: string;
7
+ queryParams?: Record<string, string>;
8
+ onLinkClick?: (product: AllProducts, event: React.MouseEvent) => void;
9
+ overrideHint?: (product: AllProducts) => string;
10
+ }
11
+ declare const ProductLink: React.FC<ProductLinkProps>;
12
+ export default ProductLink;
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import { ProductLinkProps } from './ProductLink';
3
+ import { AllProducts } from './types';
4
+ import './ProjectsPopover.global.css';
5
+ export interface ProjectsPopoverProps extends Omit<ProductLinkProps, 'product' | 'ctxProduct'> {
6
+ product: AllProducts;
7
+ className?: string;
8
+ vchasnoTitle?: string;
9
+ zakupivliTitle?: string;
10
+ hideProduct?: (product: AllProducts) => boolean;
11
+ }
12
+ declare const ProjectsPopover: React.FC<ProjectsPopoverProps>;
13
+ export default ProjectsPopover;
@@ -0,0 +1,2 @@
1
+ export { default } from './ProjectsPopover';
2
+ export type { ProjectsPopoverProps } from './ProjectsPopover';
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import { AllProducts, VchasnoProduct, ZakupivliProduct } from './types';
3
+ export declare const hrefMap: Record<VchasnoProduct | ZakupivliProduct, string>;
4
+ export declare const tooltipHintMap: Record<AllProducts, string>;
5
+ export declare const titleMap: Record<VchasnoProduct, string>;
6
+ export declare const iconMap: Record<VchasnoProduct | ZakupivliProduct, React.ReactElement>;
@@ -0,0 +1,7 @@
1
+ export declare const vchasnoProductsList: readonly ["edo", "kep", "kasa", "edi", "ttn"];
2
+ 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";
5
+ export type ZakupivliProduct = (typeof zakupivliProductsList)[number];
6
+ export declare const isZakupivliProduct: (product: string) => product is "zakupivli" | "prozorroSale" | "prozorroMarket" | "prozorroRRO";
7
+ export type AllProducts = VchasnoProduct | ZakupivliProduct;
@@ -0,0 +1,10 @@
1
+ import { AllProducts } from './types';
2
+ interface ComposeLinkOptions {
3
+ edrpou?: string;
4
+ ctxProduct: string;
5
+ targetProduct: AllProducts;
6
+ queryParams?: Record<string, string>;
7
+ }
8
+ export declare const composeZakupivliLink: ({ targetProduct, }: Pick<ComposeLinkOptions, 'targetProduct'>) => string;
9
+ export declare const composeLink: ({ targetProduct, ctxProduct, queryParams, edrpou, }: ComposeLinkOptions) => string;
10
+ export {};
@@ -10,7 +10,7 @@ export interface SelectProps extends ReactSelectProps, Partial<WithLabel & WithH
10
10
  }
11
11
  declare const Select: React.FC<SelectProps>;
12
12
  export declare const SelectComponents: {
13
- ClearIndicator: <Option_1, IsMulti extends boolean, Group extends import("react-select").GroupBase<Option_1>>(props: import("react-select").ClearIndicatorProps<Option_1, IsMulti, Group>) => import("@emotion/react").jsx.JSX.Element;
13
+ ClearIndicator: <Option, IsMulti extends boolean, Group extends import("react-select").GroupBase<Option>>(props: import("react-select").ClearIndicatorProps<Option, IsMulti, Group>) => import("@emotion/react").jsx.JSX.Element;
14
14
  Control: <Option_1, IsMulti_1 extends boolean, Group_1 extends import("react-select").GroupBase<Option_1>>(props: import("react-select").ControlProps<Option_1, IsMulti_1, Group_1>) => import("@emotion/react").jsx.JSX.Element;
15
15
  DropdownIndicator: <Option_2, IsMulti_2 extends boolean, Group_2 extends import("react-select").GroupBase<Option_2>>(props: import("react-select").DropdownIndicatorProps<Option_2, IsMulti_2, Group_2>) => import("@emotion/react").jsx.JSX.Element;
16
16
  DownChevron: (props: import("react-select/dist/declarations/src/components/indicators").DownChevronProps) => import("@emotion/react").jsx.JSX.Element;
@@ -38,3 +38,5 @@ export { default as SvgBorder, composeRoundedBorderPath } from './SvgBorder';
38
38
  export type { SvgBorderProps } from './SvgBorder';
39
39
  export { default as SplashLogo } from './SplashLogo';
40
40
  export type { SplashLogoProps } from './SplashLogo';
41
+ export { default as BlackTooltip } from './BlackTooltip';
42
+ export type { BlackTooltipProps } from './BlackTooltip';
package/dist/index.d.ts CHANGED
@@ -1,6 +1,10 @@
1
1
  import React, { HTMLAttributes, ButtonHTMLAttributes, InputHTMLAttributes } from 'react';
2
2
  import { MaskedInputProps } from 'react-text-mask';
3
3
  import { TextareaAutosizeProps } from 'react-textarea-autosize';
4
+ import * as _emotion_styled from '@emotion/styled';
5
+ import * as _mui_system from '@mui/system';
6
+ import * as _mui_material_styles from '@mui/material/styles';
7
+ import { TooltipProps } from '@mui/material/Tooltip';
4
8
 
5
9
  interface FlexBoxProps extends HTMLAttributes<HTMLElement> {
6
10
  className?: string;
@@ -252,9 +256,13 @@ interface SplashLogoProps extends HTMLAttributes<HTMLDivElement> {
252
256
  }
253
257
  declare const SplashLogo: React.ForwardRefExoticComponent<SplashLogoProps & React.RefAttributes<HTMLDivElement>>;
254
258
 
259
+ interface BlackTooltipProps extends TooltipProps {
260
+ }
261
+ declare const BlackTooltip: _emotion_styled.StyledComponent<TooltipProps & _mui_system.MUIStyledCommonProps<_mui_material_styles.Theme>, {}, {}>;
262
+
255
263
  declare const useClientRect: () => {
256
264
  rect: DOMRect | null;
257
265
  ref: React.RefObject<HTMLDivElement>;
258
266
  };
259
267
 
260
- export { Alert, type AlertProps, 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 };
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 };