@vchasno/ui-kit 0.2.7 → 0.2.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.
- package/CHANGELOG.md +52 -27
- package/dist/Datepicker/index.cjs.js +10376 -0
- package/dist/Datepicker/index.cjs.js.map +1 -0
- package/dist/Datepicker/index.js.map +1 -1
- package/dist/Datepicker/types/components/BubbleBox/BubbleBox.d.ts +17 -0
- package/dist/Datepicker/types/components/BubbleBox/index.d.ts +2 -0
- package/dist/Datepicker/types/components/BubbleBox/useClientRect.d.ts +5 -0
- package/dist/Datepicker/types/components/BubbleBox/utils.d.ts +1 -0
- package/dist/Datepicker/types/components/Pagination/Pagination.d.ts +3 -0
- package/dist/Datepicker/types/components/index.d.ts +2 -0
- package/dist/Select/index.cjs.js +7746 -0
- package/dist/Select/index.cjs.js.map +1 -0
- package/dist/Select/index.js +12 -7
- package/dist/Select/index.js.map +1 -1
- package/dist/Select/types/components/BubbleBox/BubbleBox.d.ts +17 -0
- package/dist/Select/types/components/BubbleBox/index.d.ts +2 -0
- package/dist/Select/types/components/BubbleBox/useClientRect.d.ts +5 -0
- package/dist/Select/types/components/BubbleBox/utils.d.ts +1 -0
- package/dist/Select/types/components/Pagination/Pagination.d.ts +3 -0
- package/dist/Select/types/components/index.d.ts +2 -0
- package/dist/SelectCreatable/index.cjs.js +7835 -0
- package/dist/SelectCreatable/index.cjs.js.map +1 -0
- package/dist/SelectCreatable/index.js +12 -7
- package/dist/SelectCreatable/index.js.map +1 -1
- package/dist/SelectCreatable/types/components/BubbleBox/BubbleBox.d.ts +17 -0
- package/dist/SelectCreatable/types/components/BubbleBox/index.d.ts +2 -0
- package/dist/SelectCreatable/types/components/BubbleBox/useClientRect.d.ts +5 -0
- package/dist/SelectCreatable/types/components/BubbleBox/utils.d.ts +1 -0
- package/dist/SelectCreatable/types/components/Pagination/Pagination.d.ts +3 -0
- package/dist/SelectCreatable/types/components/index.d.ts +2 -0
- package/dist/index.d.ts +19 -1
- package/dist/index.js +277 -171
- package/dist/index.js.map +1 -1
- package/dist/types/components/BubbleBox/BubbleBox.d.ts +17 -0
- package/dist/types/components/BubbleBox/index.d.ts +2 -0
- package/dist/types/components/BubbleBox/useClientRect.d.ts +5 -0
- package/dist/types/components/BubbleBox/utils.d.ts +1 -0
- package/dist/types/components/Pagination/Pagination.d.ts +3 -0
- package/dist/types/components/index.d.ts +2 -0
- 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 @@
|
|
|
1
|
+
export declare const composeBubblePath: (width: number, height: number, bubble: number, radiusOffset: number) => string;
|
|
@@ -8,6 +8,9 @@ export interface PaginationProps {
|
|
|
8
8
|
onChange?: (page: number) => void;
|
|
9
9
|
current?: number;
|
|
10
10
|
scrollOnChange?: boolean;
|
|
11
|
+
gapStep?: number;
|
|
12
|
+
hideArrows?: boolean;
|
|
13
|
+
simple?: boolean;
|
|
11
14
|
}
|
|
12
15
|
declare const Pagination: React.FC<PaginationProps>;
|
|
13
16
|
export default Pagination;
|
|
@@ -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
|
@@ -80,6 +80,9 @@ interface PaginationProps {
|
|
|
80
80
|
onChange?: (page: number) => void;
|
|
81
81
|
current?: number;
|
|
82
82
|
scrollOnChange?: boolean;
|
|
83
|
+
gapStep?: number;
|
|
84
|
+
hideArrows?: boolean;
|
|
85
|
+
simple?: boolean;
|
|
83
86
|
}
|
|
84
87
|
declare const Pagination: React.FC<PaginationProps>;
|
|
85
88
|
|
|
@@ -204,4 +207,19 @@ interface PulseDotProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
204
207
|
}
|
|
205
208
|
declare const PulseDot: React.FC<PulseDotProps>;
|
|
206
209
|
|
|
207
|
-
|
|
210
|
+
interface BubbleBoxProps extends HTMLAttributes<HTMLDivElement> {
|
|
211
|
+
className?: string;
|
|
212
|
+
controlClassName?: string;
|
|
213
|
+
svgClassName?: string;
|
|
214
|
+
control?: React.ReactNode;
|
|
215
|
+
shadow?: boolean;
|
|
216
|
+
bubbleSize?: number | [number, number];
|
|
217
|
+
backgroundColor?: React.CSSProperties['backgroundColor'];
|
|
218
|
+
borderColor?: React.CSSProperties['borderColor'];
|
|
219
|
+
innerOffset?: number;
|
|
220
|
+
radiusOffset?: number;
|
|
221
|
+
borderWith?: 1 | 2 | 3 | 4 | 5;
|
|
222
|
+
}
|
|
223
|
+
declare const BubbleBox: React.FC<BubbleBoxProps>;
|
|
224
|
+
|
|
225
|
+
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 };
|