@vchasno/ui-kit 0.2.7 → 0.2.8

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 (36) hide show
  1. package/CHANGELOG.md +42 -27
  2. package/dist/Datepicker/index.cjs.js +10376 -0
  3. package/dist/Datepicker/index.cjs.js.map +1 -0
  4. package/dist/Datepicker/index.js.map +1 -1
  5. package/dist/Datepicker/types/components/BubbleBox/BubbleBox.d.ts +17 -0
  6. package/dist/Datepicker/types/components/BubbleBox/index.d.ts +2 -0
  7. package/dist/Datepicker/types/components/BubbleBox/useClientRect.d.ts +5 -0
  8. package/dist/Datepicker/types/components/BubbleBox/utils.d.ts +1 -0
  9. package/dist/Datepicker/types/components/index.d.ts +2 -0
  10. package/dist/Select/index.cjs.js +7746 -0
  11. package/dist/Select/index.cjs.js.map +1 -0
  12. package/dist/Select/index.js +12 -7
  13. package/dist/Select/index.js.map +1 -1
  14. package/dist/Select/types/components/BubbleBox/BubbleBox.d.ts +17 -0
  15. package/dist/Select/types/components/BubbleBox/index.d.ts +2 -0
  16. package/dist/Select/types/components/BubbleBox/useClientRect.d.ts +5 -0
  17. package/dist/Select/types/components/BubbleBox/utils.d.ts +1 -0
  18. package/dist/Select/types/components/index.d.ts +2 -0
  19. package/dist/SelectCreatable/index.cjs.js +7835 -0
  20. package/dist/SelectCreatable/index.cjs.js.map +1 -0
  21. package/dist/SelectCreatable/index.js +12 -7
  22. package/dist/SelectCreatable/index.js.map +1 -1
  23. package/dist/SelectCreatable/types/components/BubbleBox/BubbleBox.d.ts +17 -0
  24. package/dist/SelectCreatable/types/components/BubbleBox/index.d.ts +2 -0
  25. package/dist/SelectCreatable/types/components/BubbleBox/useClientRect.d.ts +5 -0
  26. package/dist/SelectCreatable/types/components/BubbleBox/utils.d.ts +1 -0
  27. package/dist/SelectCreatable/types/components/index.d.ts +2 -0
  28. package/dist/index.d.ts +16 -1
  29. package/dist/index.js +257 -154
  30. package/dist/index.js.map +1 -1
  31. package/dist/types/components/BubbleBox/BubbleBox.d.ts +17 -0
  32. package/dist/types/components/BubbleBox/index.d.ts +2 -0
  33. package/dist/types/components/BubbleBox/useClientRect.d.ts +5 -0
  34. package/dist/types/components/BubbleBox/utils.d.ts +1 -0
  35. package/dist/types/components/index.d.ts +2 -0
  36. package/package.json +43 -34
@@ -0,0 +1,17 @@
1
+ import React, { HTMLAttributes } from 'react';
2
+ import './BubbleBox.global.css';
3
+ export interface BubbleBoxProps extends HTMLAttributes<HTMLDivElement> {
4
+ className?: string;
5
+ controlClassName?: string;
6
+ svgClassName?: string;
7
+ control?: React.ReactNode;
8
+ shadow?: boolean;
9
+ bubbleSize?: number | [number, number];
10
+ backgroundColor?: React.CSSProperties['backgroundColor'];
11
+ borderColor?: React.CSSProperties['borderColor'];
12
+ innerOffset?: number;
13
+ radiusOffset?: number;
14
+ borderWith?: 1 | 2 | 3 | 4 | 5;
15
+ }
16
+ declare const BubbleBox: React.FC<BubbleBoxProps>;
17
+ export default BubbleBox;
@@ -0,0 +1,2 @@
1
+ export { default } from './BubbleBox';
2
+ export type { BubbleBoxProps } from './BubbleBox';
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ export declare const useClientRect: () => {
3
+ rect: DOMRect | null;
4
+ ref: React.RefObject<HTMLDivElement>;
5
+ };
@@ -0,0 +1 @@
1
+ export declare const composeBubblePath: (width: number, height: number, bubble: number, radiusOffset: number) => string;
@@ -32,3 +32,5 @@ export { default as Checkbox } from './Checkbox';
32
32
  export type { CheckboxProps } from './Checkbox';
33
33
  export { default as PulseDot } from './PulseDot';
34
34
  export type { PulseDotProps } from './PulseDot';
35
+ export { default as BubbleBox } from './BubbleBox';
36
+ export type { BubbleBoxProps } from './BubbleBox';
package/dist/index.d.ts CHANGED
@@ -204,4 +204,19 @@ interface PulseDotProps extends HTMLAttributes<HTMLDivElement> {
204
204
  }
205
205
  declare const PulseDot: React.FC<PulseDotProps>;
206
206
 
207
- export { Alert, type AlertProps, 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, Switch, type SwitchProps, Tabs, type TabsProps, Text, TextAreaInput, type TextAreaInputProps, TextInput, type TextInputProps, type TextProps, Title, type TitleProps };
207
+ interface BubbleBoxProps extends HTMLAttributes<HTMLDivElement> {
208
+ className?: string;
209
+ controlClassName?: string;
210
+ svgClassName?: string;
211
+ control?: React.ReactNode;
212
+ shadow?: boolean;
213
+ bubbleSize?: number | [number, number];
214
+ backgroundColor?: React.CSSProperties['backgroundColor'];
215
+ borderColor?: React.CSSProperties['borderColor'];
216
+ innerOffset?: number;
217
+ radiusOffset?: number;
218
+ borderWith?: 1 | 2 | 3 | 4 | 5;
219
+ }
220
+ declare const BubbleBox: React.FC<BubbleBoxProps>;
221
+
222
+ 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, Switch, type SwitchProps, Tabs, type TabsProps, Text, TextAreaInput, type TextAreaInputProps, TextInput, type TextInputProps, type TextProps, Title, type TitleProps };