@sellgar/kit 0.0.58 → 0.0.60
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/dist/index.js +5331 -4866
- package/package.json +2 -3
- package/types/components/helpers/dropdown/dropdown.d.ts +6 -6
- package/types/components/helpers/select/select.d.ts +8 -6
- package/types/components/symbols/input/input.d.ts +1 -1
- package/types/components/symbols/modal/modal.d.ts +6 -6
- package/types/components/symbols/tooltip/tooltip.d.ts +6 -6
- package/types/components/wrappers/scrollbar/scrollbar.d.ts +2 -3
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sellgar/kit",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.60",
|
|
5
5
|
"description": "Storybook",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
7
7
|
"module": "./dist/index.js",
|
|
@@ -35,13 +35,12 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@floating-ui/dom": "1.6.13",
|
|
37
37
|
"@floating-ui/react": "0.27.5",
|
|
38
|
+
"@library/overlayscrollbars-react": "0.0.1",
|
|
38
39
|
"@react-input/mask": "2.0.4",
|
|
39
40
|
"@types/react-slider": "1.3.6",
|
|
40
41
|
"classnames": "2.5.1",
|
|
41
42
|
"date-fns": "4.1.0",
|
|
42
43
|
"moment": "2.30.1",
|
|
43
|
-
"overlayscrollbars": "2.11.1",
|
|
44
|
-
"overlayscrollbars-react": "0.5.6",
|
|
45
44
|
"react-baron": "3.0.0",
|
|
46
45
|
"react-slider": "2.0.6"
|
|
47
46
|
},
|
|
@@ -32,13 +32,13 @@ declare const useDropdown: ({ placement, ...options }: IOptions) => {
|
|
|
32
32
|
floating: HTMLElement | null;
|
|
33
33
|
} & import('@floating-ui/react').ExtendedElements<ReferenceType>;
|
|
34
34
|
context: {
|
|
35
|
-
placement: Placement;
|
|
36
|
-
strategy: import('@floating-ui/utils').Strategy;
|
|
37
35
|
x: number;
|
|
38
36
|
y: number;
|
|
37
|
+
update: () => void;
|
|
38
|
+
placement: Placement;
|
|
39
|
+
strategy: import('@floating-ui/utils').Strategy;
|
|
39
40
|
middlewareData: import('@floating-ui/core').MiddlewareData;
|
|
40
41
|
isPositioned: boolean;
|
|
41
|
-
update: () => void;
|
|
42
42
|
floatingStyles: React.CSSProperties;
|
|
43
43
|
open: boolean;
|
|
44
44
|
onOpenChange: (open: boolean, event?: Event, reason?: import('@floating-ui/react').OpenChangeReason) => void;
|
|
@@ -79,13 +79,13 @@ export declare const useDropdownContext: () => {
|
|
|
79
79
|
floating: HTMLElement | null;
|
|
80
80
|
} & import('@floating-ui/react').ExtendedElements<ReferenceType>;
|
|
81
81
|
context: {
|
|
82
|
-
placement: Placement;
|
|
83
|
-
strategy: import('@floating-ui/utils').Strategy;
|
|
84
82
|
x: number;
|
|
85
83
|
y: number;
|
|
84
|
+
update: () => void;
|
|
85
|
+
placement: Placement;
|
|
86
|
+
strategy: import('@floating-ui/utils').Strategy;
|
|
86
87
|
middlewareData: import('@floating-ui/core').MiddlewareData;
|
|
87
88
|
isPositioned: boolean;
|
|
88
|
-
update: () => void;
|
|
89
89
|
floatingStyles: React.CSSProperties;
|
|
90
90
|
open: boolean;
|
|
91
91
|
onOpenChange: (open: boolean, event?: Event, reason?: import('@floating-ui/react').OpenChangeReason) => void;
|
|
@@ -4,6 +4,7 @@ interface IOptions {
|
|
|
4
4
|
tabIndex?: number;
|
|
5
5
|
initialOpen?: boolean;
|
|
6
6
|
initialSelectedIndex?: number | null;
|
|
7
|
+
selectedIndex?: number | null;
|
|
7
8
|
open?: boolean;
|
|
8
9
|
disabled?: boolean;
|
|
9
10
|
setOpen?(open: boolean): void;
|
|
@@ -39,13 +40,13 @@ declare const useSelect: (options: IOptions) => {
|
|
|
39
40
|
floating: HTMLElement | null;
|
|
40
41
|
} & import('@floating-ui/react').ExtendedElements<ReferenceType>;
|
|
41
42
|
context: {
|
|
42
|
-
placement: import('@floating-ui/utils').Placement;
|
|
43
|
-
strategy: import('@floating-ui/utils').Strategy;
|
|
44
43
|
x: number;
|
|
45
44
|
y: number;
|
|
45
|
+
update: () => void;
|
|
46
|
+
placement: import('@floating-ui/utils').Placement;
|
|
47
|
+
strategy: import('@floating-ui/utils').Strategy;
|
|
46
48
|
middlewareData: import('@floating-ui/core').MiddlewareData;
|
|
47
49
|
isPositioned: boolean;
|
|
48
|
-
update: () => void;
|
|
49
50
|
floatingStyles: React.CSSProperties;
|
|
50
51
|
open: boolean;
|
|
51
52
|
onOpenChange: (open: boolean, event?: Event, reason?: import('@floating-ui/react').OpenChangeReason) => void;
|
|
@@ -93,13 +94,13 @@ export declare const useSelectContext: () => {
|
|
|
93
94
|
floating: HTMLElement | null;
|
|
94
95
|
} & import('@floating-ui/react').ExtendedElements<ReferenceType>;
|
|
95
96
|
context: {
|
|
96
|
-
placement: import('@floating-ui/utils').Placement;
|
|
97
|
-
strategy: import('@floating-ui/utils').Strategy;
|
|
98
97
|
x: number;
|
|
99
98
|
y: number;
|
|
99
|
+
update: () => void;
|
|
100
|
+
placement: import('@floating-ui/utils').Placement;
|
|
101
|
+
strategy: import('@floating-ui/utils').Strategy;
|
|
100
102
|
middlewareData: import('@floating-ui/core').MiddlewareData;
|
|
101
103
|
isPositioned: boolean;
|
|
102
|
-
update: () => void;
|
|
103
104
|
floatingStyles: React.CSSProperties;
|
|
104
105
|
open: boolean;
|
|
105
106
|
onOpenChange: (open: boolean, event?: Event, reason?: import('@floating-ui/react').OpenChangeReason) => void;
|
|
@@ -122,6 +123,7 @@ interface IProps {
|
|
|
122
123
|
initialSelectedIndex?: number | null;
|
|
123
124
|
open?: boolean;
|
|
124
125
|
disabled?: boolean;
|
|
126
|
+
selectedIndex?: number | null;
|
|
125
127
|
setOpen?(open: boolean): void;
|
|
126
128
|
onSelect?(selectedIndex: number | null): void;
|
|
127
129
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
export interface IProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'className'> {
|
|
3
|
-
ref?: React.RefObject<HTMLInputElement
|
|
3
|
+
ref?: React.RefObject<HTMLInputElement>;
|
|
4
4
|
leadIcon?: React.ReactNode;
|
|
5
5
|
tailIcon?: React.ReactNode;
|
|
6
6
|
badge?: string | number;
|
|
@@ -25,13 +25,13 @@ export declare function useDialog({ initialOpen, open: controlledOpen, onOpen, o
|
|
|
25
25
|
floating: HTMLElement | null;
|
|
26
26
|
} & import('@floating-ui/react').ExtendedElements<import('@floating-ui/react').ReferenceType>;
|
|
27
27
|
context: {
|
|
28
|
-
placement: import('@floating-ui/utils').Placement;
|
|
29
|
-
strategy: import('@floating-ui/utils').Strategy;
|
|
30
28
|
x: number;
|
|
31
29
|
y: number;
|
|
30
|
+
update: () => void;
|
|
31
|
+
placement: import('@floating-ui/utils').Placement;
|
|
32
|
+
strategy: import('@floating-ui/utils').Strategy;
|
|
32
33
|
middlewareData: import('@floating-ui/core').MiddlewareData;
|
|
33
34
|
isPositioned: boolean;
|
|
34
|
-
update: () => void;
|
|
35
35
|
floatingStyles: React.CSSProperties;
|
|
36
36
|
open: boolean;
|
|
37
37
|
onOpenChange: (open: boolean, event?: Event, reason?: import('@floating-ui/react').OpenChangeReason) => void;
|
|
@@ -72,13 +72,13 @@ export declare const useModalContext: () => {
|
|
|
72
72
|
floating: HTMLElement | null;
|
|
73
73
|
} & import('@floating-ui/react').ExtendedElements<import('@floating-ui/react').ReferenceType>;
|
|
74
74
|
context: {
|
|
75
|
-
placement: import('@floating-ui/utils').Placement;
|
|
76
|
-
strategy: import('@floating-ui/utils').Strategy;
|
|
77
75
|
x: number;
|
|
78
76
|
y: number;
|
|
77
|
+
update: () => void;
|
|
78
|
+
placement: import('@floating-ui/utils').Placement;
|
|
79
|
+
strategy: import('@floating-ui/utils').Strategy;
|
|
79
80
|
middlewareData: import('@floating-ui/core').MiddlewareData;
|
|
80
81
|
isPositioned: boolean;
|
|
81
|
-
update: () => void;
|
|
82
82
|
floatingStyles: React.CSSProperties;
|
|
83
83
|
open: boolean;
|
|
84
84
|
onOpenChange: (open: boolean, event?: Event, reason?: import('@floating-ui/react').OpenChangeReason) => void;
|
|
@@ -27,13 +27,13 @@ export declare function useTooltip({ size, initialOpen, placement, open: control
|
|
|
27
27
|
floating: HTMLElement | null;
|
|
28
28
|
} & import('@floating-ui/react').ExtendedElements<import('@floating-ui/react').ReferenceType>;
|
|
29
29
|
context: {
|
|
30
|
-
placement: Placement;
|
|
31
|
-
strategy: import('@floating-ui/utils').Strategy;
|
|
32
30
|
x: number;
|
|
33
31
|
y: number;
|
|
32
|
+
update: () => void;
|
|
33
|
+
placement: Placement;
|
|
34
|
+
strategy: import('@floating-ui/utils').Strategy;
|
|
34
35
|
middlewareData: import('@floating-ui/core').MiddlewareData;
|
|
35
36
|
isPositioned: boolean;
|
|
36
|
-
update: () => void;
|
|
37
37
|
floatingStyles: React.CSSProperties;
|
|
38
38
|
open: boolean;
|
|
39
39
|
onOpenChange: (open: boolean, event?: Event, reason?: import('@floating-ui/react').OpenChangeReason) => void;
|
|
@@ -75,13 +75,13 @@ export declare const useTooltipContext: () => {
|
|
|
75
75
|
floating: HTMLElement | null;
|
|
76
76
|
} & import('@floating-ui/react').ExtendedElements<import('@floating-ui/react').ReferenceType>;
|
|
77
77
|
context: {
|
|
78
|
-
placement: Placement;
|
|
79
|
-
strategy: import('@floating-ui/utils').Strategy;
|
|
80
78
|
x: number;
|
|
81
79
|
y: number;
|
|
80
|
+
update: () => void;
|
|
81
|
+
placement: Placement;
|
|
82
|
+
strategy: import('@floating-ui/utils').Strategy;
|
|
82
83
|
middlewareData: import('@floating-ui/core').MiddlewareData;
|
|
83
84
|
isPositioned: boolean;
|
|
84
|
-
update: () => void;
|
|
85
85
|
floatingStyles: React.CSSProperties;
|
|
86
86
|
open: boolean;
|
|
87
87
|
onOpenChange: (open: boolean, event?: Event, reason?: import('@floating-ui/react').OpenChangeReason) => void;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
ref?: React.RefCallback<HTMLDivElement>;
|
|
2
|
+
interface IProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
ref?: React.RefObject<HTMLDivElement> | React.RefCallback<HTMLDivElement>;
|
|
5
4
|
}
|
|
6
5
|
export declare const Scrollbar: React.FC<React.PropsWithChildren<IProps>>;
|
|
7
6
|
export {};
|