@sellgar/kit 0.0.37 → 0.0.38
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.css +1 -1
- package/dist/index.js +3885 -3364
- package/package.json +1 -1
- package/types/components/symbols/index.d.ts +3 -0
- package/types/components/symbols/link/index.d.ts +1 -0
- package/types/components/symbols/link/link.d.ts +2 -0
- package/types/components/symbols/modal/index.d.ts +1 -0
- package/types/components/symbols/modal/modal.d.ts +106 -0
- package/types/components/symbols/notification/index.d.ts +1 -0
- package/types/components/symbols/notification/notification.d.ts +10 -0
package/package.json
CHANGED
|
@@ -9,6 +9,7 @@ export * from './input';
|
|
|
9
9
|
export * from './textarea';
|
|
10
10
|
export * from './label-field';
|
|
11
11
|
export * from './caption-field';
|
|
12
|
+
export * from './link';
|
|
12
13
|
export * from './typography';
|
|
13
14
|
export * from './accordion';
|
|
14
15
|
export * from './avatar';
|
|
@@ -19,3 +20,5 @@ export * from './tooltip';
|
|
|
19
20
|
export * from './calendar';
|
|
20
21
|
export * from './quantity-stepper';
|
|
21
22
|
export * from './breadcrumb';
|
|
23
|
+
export * from './notification';
|
|
24
|
+
export * from './modal';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Link } from './link.tsx';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Modal, useModalContext } from './modal.tsx';
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface IProps {
|
|
3
|
+
open?: boolean;
|
|
4
|
+
initialOpen?: boolean;
|
|
5
|
+
onOpen?(): void;
|
|
6
|
+
onClose?(): void;
|
|
7
|
+
}
|
|
8
|
+
export declare function useDialog({ initialOpen, open: controlledOpen, onOpen, onClose }?: IProps): {
|
|
9
|
+
placement: import('@floating-ui/utils').Placement;
|
|
10
|
+
strategy: import('@floating-ui/utils').Strategy;
|
|
11
|
+
middlewareData: import('@floating-ui/core').MiddlewareData;
|
|
12
|
+
x: number;
|
|
13
|
+
y: number;
|
|
14
|
+
isPositioned: boolean;
|
|
15
|
+
update: () => void;
|
|
16
|
+
floatingStyles: React.CSSProperties;
|
|
17
|
+
refs: {
|
|
18
|
+
reference: React.MutableRefObject<import('@floating-ui/react-dom').ReferenceType | null>;
|
|
19
|
+
floating: React.MutableRefObject<HTMLElement | null>;
|
|
20
|
+
setReference: (node: import('@floating-ui/react-dom').ReferenceType | null) => void;
|
|
21
|
+
setFloating: (node: HTMLElement | null) => void;
|
|
22
|
+
} & import('@floating-ui/react').ExtendedRefs<import('@floating-ui/react').ReferenceType>;
|
|
23
|
+
elements: {
|
|
24
|
+
reference: import('@floating-ui/react-dom').ReferenceType | null;
|
|
25
|
+
floating: HTMLElement | null;
|
|
26
|
+
} & import('@floating-ui/react').ExtendedElements<import('@floating-ui/react').ReferenceType>;
|
|
27
|
+
context: {
|
|
28
|
+
placement: import('@floating-ui/utils').Placement;
|
|
29
|
+
strategy: import('@floating-ui/utils').Strategy;
|
|
30
|
+
x: number;
|
|
31
|
+
y: number;
|
|
32
|
+
middlewareData: import('@floating-ui/core').MiddlewareData;
|
|
33
|
+
isPositioned: boolean;
|
|
34
|
+
update: () => void;
|
|
35
|
+
floatingStyles: React.CSSProperties;
|
|
36
|
+
open: boolean;
|
|
37
|
+
onOpenChange: (open: boolean, event?: Event, reason?: import('@floating-ui/react').OpenChangeReason) => void;
|
|
38
|
+
events: import('@floating-ui/react').FloatingEvents;
|
|
39
|
+
dataRef: React.MutableRefObject<import('@floating-ui/react').ContextData>;
|
|
40
|
+
nodeId: string | undefined;
|
|
41
|
+
floatingId: string | undefined;
|
|
42
|
+
refs: import('@floating-ui/react').ExtendedRefs<import('@floating-ui/react').ReferenceType>;
|
|
43
|
+
elements: import('@floating-ui/react').ExtendedElements<import('@floating-ui/react').ReferenceType>;
|
|
44
|
+
};
|
|
45
|
+
getReferenceProps: (userProps?: React.HTMLProps<Element>) => Record<string, unknown>;
|
|
46
|
+
getFloatingProps: (userProps?: React.HTMLProps<HTMLElement>) => Record<string, unknown>;
|
|
47
|
+
getItemProps: (userProps?: Omit<React.HTMLProps<HTMLElement>, "selected" | "active"> & {
|
|
48
|
+
active?: boolean;
|
|
49
|
+
selected?: boolean;
|
|
50
|
+
}) => Record<string, unknown>;
|
|
51
|
+
open: boolean;
|
|
52
|
+
onOpen: (() => void) | undefined;
|
|
53
|
+
onClose: (() => void) | undefined;
|
|
54
|
+
};
|
|
55
|
+
export declare const useModalContext: () => {
|
|
56
|
+
placement: import('@floating-ui/utils').Placement;
|
|
57
|
+
strategy: import('@floating-ui/utils').Strategy;
|
|
58
|
+
middlewareData: import('@floating-ui/core').MiddlewareData;
|
|
59
|
+
x: number;
|
|
60
|
+
y: number;
|
|
61
|
+
isPositioned: boolean;
|
|
62
|
+
update: () => void;
|
|
63
|
+
floatingStyles: React.CSSProperties;
|
|
64
|
+
refs: {
|
|
65
|
+
reference: React.MutableRefObject<import('@floating-ui/react-dom').ReferenceType | null>;
|
|
66
|
+
floating: React.MutableRefObject<HTMLElement | null>;
|
|
67
|
+
setReference: (node: import('@floating-ui/react-dom').ReferenceType | null) => void;
|
|
68
|
+
setFloating: (node: HTMLElement | null) => void;
|
|
69
|
+
} & import('@floating-ui/react').ExtendedRefs<import('@floating-ui/react').ReferenceType>;
|
|
70
|
+
elements: {
|
|
71
|
+
reference: import('@floating-ui/react-dom').ReferenceType | null;
|
|
72
|
+
floating: HTMLElement | null;
|
|
73
|
+
} & import('@floating-ui/react').ExtendedElements<import('@floating-ui/react').ReferenceType>;
|
|
74
|
+
context: {
|
|
75
|
+
placement: import('@floating-ui/utils').Placement;
|
|
76
|
+
strategy: import('@floating-ui/utils').Strategy;
|
|
77
|
+
x: number;
|
|
78
|
+
y: number;
|
|
79
|
+
middlewareData: import('@floating-ui/core').MiddlewareData;
|
|
80
|
+
isPositioned: boolean;
|
|
81
|
+
update: () => void;
|
|
82
|
+
floatingStyles: React.CSSProperties;
|
|
83
|
+
open: boolean;
|
|
84
|
+
onOpenChange: (open: boolean, event?: Event, reason?: import('@floating-ui/react').OpenChangeReason) => void;
|
|
85
|
+
events: import('@floating-ui/react').FloatingEvents;
|
|
86
|
+
dataRef: React.MutableRefObject<import('@floating-ui/react').ContextData>;
|
|
87
|
+
nodeId: string | undefined;
|
|
88
|
+
floatingId: string | undefined;
|
|
89
|
+
refs: import('@floating-ui/react').ExtendedRefs<import('@floating-ui/react').ReferenceType>;
|
|
90
|
+
elements: import('@floating-ui/react').ExtendedElements<import('@floating-ui/react').ReferenceType>;
|
|
91
|
+
};
|
|
92
|
+
getReferenceProps: (userProps?: React.HTMLProps<Element>) => Record<string, unknown>;
|
|
93
|
+
getFloatingProps: (userProps?: React.HTMLProps<HTMLElement>) => Record<string, unknown>;
|
|
94
|
+
getItemProps: (userProps?: Omit<React.HTMLProps<HTMLElement>, "selected" | "active"> & {
|
|
95
|
+
active?: boolean;
|
|
96
|
+
selected?: boolean;
|
|
97
|
+
}) => Record<string, unknown>;
|
|
98
|
+
open: boolean;
|
|
99
|
+
onOpen: (() => void) | undefined;
|
|
100
|
+
onClose: (() => void) | undefined;
|
|
101
|
+
};
|
|
102
|
+
export declare const Dialog: React.FC<React.PropsWithChildren<IProps>>;
|
|
103
|
+
export declare const DialogContent: React.ForwardRefExoticComponent<Omit<React.HTMLProps<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
104
|
+
export declare const DialogClose: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
105
|
+
export declare const Modal: React.FC<React.PropsWithChildren<IProps>>;
|
|
106
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Notification } from './notification.tsx';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface IProps {
|
|
3
|
+
style?: 'info' | 'warning' | 'destructive' | 'success';
|
|
4
|
+
title: string;
|
|
5
|
+
description?: React.ReactNode;
|
|
6
|
+
slot?: React.ReactNode;
|
|
7
|
+
onClose?(): void;
|
|
8
|
+
}
|
|
9
|
+
export declare const Notification: React.FC<IProps>;
|
|
10
|
+
export {};
|