@tecsinapse/cortex-react 1.3.0-beta.3 → 1.3.0-beta.5
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/cjs/components/Masonry.js +49 -0
- package/dist/cjs/components/Menubar/Categories.js +10 -0
- package/dist/cjs/components/Menubar/Category.js +11 -0
- package/dist/cjs/components/Menubar/Dropdown.js +23 -0
- package/dist/cjs/components/Menubar/DropdownRoot.js +38 -0
- package/dist/cjs/components/Menubar/Header.js +26 -0
- package/dist/cjs/components/Menubar/IconControlSubItem.js +19 -0
- package/dist/cjs/components/Menubar/Item.js +22 -0
- package/dist/cjs/components/Menubar/ItemLink.js +18 -0
- package/dist/cjs/components/Menubar/Left.js +11 -0
- package/dist/cjs/components/Menubar/MostUsed.js +11 -0
- package/dist/cjs/components/Menubar/MostUsedItem.js +31 -0
- package/dist/cjs/components/Menubar/MostUsedList.js +58 -0
- package/dist/cjs/components/Menubar/Right.js +11 -0
- package/dist/cjs/components/Menubar/Root.js +11 -0
- package/dist/cjs/components/Menubar/Search.js +21 -0
- package/dist/cjs/components/Menubar/SubItem.js +20 -0
- package/dist/cjs/components/Menubar/index.js +33 -0
- package/dist/cjs/components/Popover/{PopoverContent.js → Content.js} +8 -5
- package/dist/cjs/components/Popover/Context.js +15 -0
- package/dist/cjs/components/Popover/Provider.js +19 -0
- package/dist/cjs/components/Popover/Root.js +14 -0
- package/dist/cjs/components/Popover/Trigger.js +11 -0
- package/dist/cjs/components/Popover/index.js +15 -0
- package/dist/cjs/components/Select/Content.js +26 -0
- package/dist/cjs/components/Select/GroupedOptions.js +4 -2
- package/dist/cjs/components/Select/Options.js +5 -3
- package/dist/cjs/components/Select/Popover.js +2 -5
- package/dist/cjs/components/Select/Root.js +9 -17
- package/dist/cjs/components/Select/Trigger.js +4 -4
- package/dist/cjs/hooks/useOutsideClickListener.js +3 -1
- package/dist/cjs/index.js +4 -2
- package/dist/cjs/provider/MenubarProvider.js +22 -0
- package/dist/cjs/provider/SnackbarProvider.js +51 -0
- package/dist/cjs/service/SnackbarSonner.js +12 -2
- package/dist/cjs/styles/menubar.js +62 -0
- package/dist/esm/components/Masonry.js +47 -0
- package/dist/esm/components/Menubar/Categories.js +8 -0
- package/dist/esm/components/Menubar/Category.js +9 -0
- package/dist/esm/components/Menubar/Dropdown.js +21 -0
- package/dist/esm/components/Menubar/DropdownRoot.js +36 -0
- package/dist/esm/components/Menubar/Header.js +24 -0
- package/dist/esm/components/Menubar/IconControlSubItem.js +17 -0
- package/dist/esm/components/Menubar/Item.js +20 -0
- package/dist/esm/components/Menubar/ItemLink.js +16 -0
- package/dist/esm/components/Menubar/Left.js +9 -0
- package/dist/esm/components/Menubar/MostUsed.js +9 -0
- package/dist/esm/components/Menubar/MostUsedItem.js +29 -0
- package/dist/esm/components/Menubar/MostUsedList.js +56 -0
- package/dist/esm/components/Menubar/Right.js +9 -0
- package/dist/esm/components/Menubar/Root.js +9 -0
- package/dist/esm/components/Menubar/Search.js +19 -0
- package/dist/esm/components/Menubar/SubItem.js +18 -0
- package/dist/esm/components/Menubar/index.js +31 -0
- package/dist/esm/components/Popover/{PopoverContent.js → Content.js} +7 -4
- package/dist/esm/components/Popover/Context.js +12 -0
- package/dist/esm/components/Popover/Provider.js +17 -0
- package/dist/esm/components/Popover/Root.js +12 -0
- package/dist/esm/components/Popover/{PopoverTrigger.js → Trigger.js} +2 -2
- package/dist/esm/components/Popover/index.js +13 -0
- package/dist/esm/components/Select/Content.js +24 -0
- package/dist/esm/components/Select/GroupedOptions.js +4 -2
- package/dist/esm/components/Select/Options.js +5 -3
- package/dist/esm/components/Select/Popover.js +3 -6
- package/dist/esm/components/Select/Root.js +10 -18
- package/dist/esm/components/Select/Trigger.js +4 -4
- package/dist/esm/hooks/useOutsideClickListener.js +3 -1
- package/dist/esm/index.js +2 -1
- package/dist/esm/provider/MenubarProvider.js +19 -0
- package/dist/esm/provider/SnackbarProvider.js +49 -0
- package/dist/esm/service/SnackbarSonner.js +12 -2
- package/dist/esm/styles/menubar.js +54 -0
- package/dist/types/components/Card.d.ts +3 -4
- package/dist/types/components/Masonry.d.ts +7 -0
- package/dist/types/components/Menubar/Categories.d.ts +3 -0
- package/dist/types/components/Menubar/Category.d.ts +8 -0
- package/dist/types/components/Menubar/Dropdown.d.ts +3 -0
- package/dist/types/components/Menubar/DropdownRoot.d.ts +17 -0
- package/dist/types/components/Menubar/Header.d.ts +6 -0
- package/dist/types/components/Menubar/IconControlSubItem.d.ts +6 -0
- package/dist/types/components/Menubar/Item.d.ts +10 -0
- package/dist/types/components/Menubar/ItemLink.d.ts +8 -0
- package/dist/types/components/Menubar/Left.d.ts +3 -0
- package/dist/types/components/Menubar/MostUsed.d.ts +8 -0
- package/dist/types/components/Menubar/MostUsedItem.d.ts +8 -0
- package/dist/types/components/Menubar/MostUsedList.d.ts +3 -0
- package/dist/types/components/Menubar/Right.d.ts +3 -0
- package/dist/types/components/Menubar/Root.d.ts +6 -0
- package/dist/types/components/Menubar/Search.d.ts +3 -0
- package/dist/types/components/Menubar/SubItem.d.ts +6 -0
- package/dist/types/components/Menubar/index.d.ts +15 -0
- package/dist/types/components/Menubar/interface.d.ts +4 -0
- package/dist/types/components/Popover/Content.d.ts +6 -0
- package/dist/types/components/Popover/{PopoverContext.d.ts → Context.d.ts} +5 -9
- package/dist/types/components/Popover/Provider.d.ts +8 -0
- package/dist/types/components/Popover/{PopoverRoot.d.ts → Root.d.ts} +1 -2
- package/dist/types/components/Popover/Trigger.d.ts +5 -0
- package/dist/types/components/Popover/index.d.ts +6 -3
- package/dist/types/components/SearchInput.d.ts +0 -0
- package/dist/types/components/Select/Content.d.ts +9 -0
- package/dist/types/components/Select/context.d.ts +0 -3
- package/dist/types/components/index.d.ts +2 -1
- package/dist/types/provider/MenubarProvider.d.ts +8 -0
- package/dist/types/provider/index.d.ts +2 -0
- package/dist/types/styles/menubar.d.ts +346 -0
- package/dist/types/tests/Menubar/Categories.test.d.ts +1 -0
- package/dist/types/tests/Menubar/Category.test.d.ts +1 -0
- package/dist/types/tests/Menubar/Dropdown.test.d.ts +1 -0
- package/dist/types/tests/Menubar/DropdownRoot.test.d.ts +1 -0
- package/dist/types/tests/Menubar/Header.test.d.ts +1 -0
- package/dist/types/tests/Menubar/HeaderLeft.test.d.ts +1 -0
- package/dist/types/tests/Menubar/HeaderRigth.test.d.ts +1 -0
- package/dist/types/tests/Menubar/Item.test.d.ts +1 -0
- package/dist/types/tests/Menubar/MostUsed.test.d.ts +1 -0
- package/dist/types/tests/Menubar/MostUsedItem.test.d.ts +1 -0
- package/dist/types/tests/Menubar/MostUsedList.test.d.ts +1 -0
- package/dist/types/tests/Menubar/Root.test.d.ts +1 -0
- package/dist/types/tests/Menubar/SubItem.test.d.ts +1 -0
- package/package.json +2 -2
- package/dist/cjs/components/Popover/Popover.js +0 -13
- package/dist/cjs/components/Popover/PopoverContext.js +0 -29
- package/dist/cjs/components/Popover/PopoverRoot.js +0 -10
- package/dist/cjs/components/Popover/PopoverTrigger.js +0 -11
- package/dist/esm/components/Popover/Popover.js +0 -11
- package/dist/esm/components/Popover/PopoverContext.js +0 -26
- package/dist/esm/components/Popover/PopoverRoot.js +0 -8
- package/dist/types/components/Popover/Popover.d.ts +0 -5
- package/dist/types/components/Popover/PopoverContent.d.ts +0 -7
- package/dist/types/components/Popover/PopoverTrigger.d.ts +0 -6
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { Placement } from '@floating-ui/react';
|
|
3
|
-
interface
|
|
3
|
+
interface ContextProps {
|
|
4
4
|
triggerProps?: any;
|
|
5
5
|
refs?: any;
|
|
6
6
|
isOpen?: boolean;
|
|
7
|
+
setIsOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
7
8
|
x?: number;
|
|
8
9
|
y?: number;
|
|
9
10
|
strategy?: 'absolute' | 'fixed';
|
|
@@ -12,11 +13,6 @@ interface PopoverContextProps {
|
|
|
12
13
|
setPlacement?: React.Dispatch<React.SetStateAction<Placement | undefined>>;
|
|
13
14
|
setTrigger?: React.Dispatch<React.SetStateAction<'hover' | 'click'>>;
|
|
14
15
|
}
|
|
15
|
-
export declare const
|
|
16
|
-
|
|
17
|
-
children: ReactNode;
|
|
18
|
-
placement?: Placement;
|
|
19
|
-
trigger?: 'hover' | 'click';
|
|
20
|
-
}
|
|
21
|
-
export declare const PopoverProvider: ({ children, placement, trigger, }: PopoverProviderProps) => JSX.Element;
|
|
16
|
+
export declare const Context: React.Context<ContextProps | undefined>;
|
|
17
|
+
export declare const usePopoverContext: () => ContextProps;
|
|
22
18
|
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { Placement } from '@floating-ui/react';
|
|
3
|
+
export interface PopoverProviderProps {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
placement?: Placement;
|
|
6
|
+
trigger?: 'hover' | 'click';
|
|
7
|
+
}
|
|
8
|
+
export declare const PopoverProvider: ({ children, placement, trigger, }: PopoverProviderProps) => JSX.Element;
|
|
@@ -5,5 +5,4 @@ export interface PopoverRootProps {
|
|
|
5
5
|
placement?: Placement;
|
|
6
6
|
trigger?: 'hover' | 'click';
|
|
7
7
|
}
|
|
8
|
-
declare const PopoverRoot: ({ children, placement, trigger }: PopoverRootProps) => JSX.Element;
|
|
9
|
-
export default PopoverRoot;
|
|
8
|
+
export declare const PopoverRoot: ({ children, placement, trigger, }: PopoverRootProps) => JSX.Element;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export declare const Popover: {
|
|
2
|
+
Root: ({ children, placement, trigger, }: import("./Root").PopoverRootProps) => JSX.Element;
|
|
3
|
+
Trigger: ({ children }: import("./Trigger").PopoverTriggerProps) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
4
|
+
Content: ({ children, className, }: import("./Content").PopoverContentProps) => JSX.Element;
|
|
5
|
+
Provider: ({ children, placement, trigger, }: import("./Provider").PopoverProviderProps) => JSX.Element;
|
|
6
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
interface ContentProps<T> {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
keyExtractor: (value: T) => string;
|
|
5
|
+
labelExtractor: (value: T) => string;
|
|
6
|
+
value?: T;
|
|
7
|
+
}
|
|
8
|
+
declare const Content: <T>({ children, keyExtractor, labelExtractor, value, }: ContentProps<T>) => JSX.Element;
|
|
9
|
+
export default Content;
|
|
@@ -0,0 +1,346 @@
|
|
|
1
|
+
export declare const menubar: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
[key: string]: {
|
|
3
|
+
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
4
|
+
right?: import("tailwind-merge").ClassNameValue;
|
|
5
|
+
left?: import("tailwind-merge").ClassNameValue;
|
|
6
|
+
dropdown?: import("tailwind-merge").ClassNameValue;
|
|
7
|
+
root?: import("tailwind-merge").ClassNameValue;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
} | {
|
|
11
|
+
[x: string]: {
|
|
12
|
+
[x: string]: import("tailwind-merge").ClassNameValue | {
|
|
13
|
+
right?: import("tailwind-merge").ClassNameValue;
|
|
14
|
+
left?: import("tailwind-merge").ClassNameValue;
|
|
15
|
+
dropdown?: import("tailwind-merge").ClassNameValue;
|
|
16
|
+
root?: import("tailwind-merge").ClassNameValue;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
} | {}, {
|
|
20
|
+
root: string;
|
|
21
|
+
left: string;
|
|
22
|
+
right: string;
|
|
23
|
+
dropdown: string;
|
|
24
|
+
}, undefined, import("tailwind-variants/dist/config").TVConfig<unknown, {
|
|
25
|
+
[key: string]: {
|
|
26
|
+
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
27
|
+
right?: import("tailwind-merge").ClassNameValue;
|
|
28
|
+
left?: import("tailwind-merge").ClassNameValue;
|
|
29
|
+
dropdown?: import("tailwind-merge").ClassNameValue;
|
|
30
|
+
root?: import("tailwind-merge").ClassNameValue;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
} | {}>, {
|
|
34
|
+
[key: string]: {
|
|
35
|
+
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
36
|
+
right?: import("tailwind-merge").ClassNameValue;
|
|
37
|
+
left?: import("tailwind-merge").ClassNameValue;
|
|
38
|
+
dropdown?: import("tailwind-merge").ClassNameValue;
|
|
39
|
+
root?: import("tailwind-merge").ClassNameValue;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
} | {}, {
|
|
43
|
+
root: string;
|
|
44
|
+
left: string;
|
|
45
|
+
right: string;
|
|
46
|
+
dropdown: string;
|
|
47
|
+
}, import("tailwind-variants").TVReturnType<unknown, {
|
|
48
|
+
root: string;
|
|
49
|
+
left: string;
|
|
50
|
+
right: string;
|
|
51
|
+
dropdown: string;
|
|
52
|
+
}, undefined, import("tailwind-variants/dist/config").TVConfig<unknown, {
|
|
53
|
+
[key: string]: {
|
|
54
|
+
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
55
|
+
right?: import("tailwind-merge").ClassNameValue;
|
|
56
|
+
left?: import("tailwind-merge").ClassNameValue;
|
|
57
|
+
dropdown?: import("tailwind-merge").ClassNameValue;
|
|
58
|
+
root?: import("tailwind-merge").ClassNameValue;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
} | {}>, unknown, unknown, undefined>>;
|
|
62
|
+
export declare const mostUsed: import("tailwind-variants").TVReturnType<{
|
|
63
|
+
[key: string]: {
|
|
64
|
+
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
65
|
+
label?: import("tailwind-merge").ClassNameValue;
|
|
66
|
+
container?: import("tailwind-merge").ClassNameValue;
|
|
67
|
+
containerList?: import("tailwind-merge").ClassNameValue;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
} | {
|
|
71
|
+
[x: string]: {
|
|
72
|
+
[x: string]: import("tailwind-merge").ClassNameValue | {
|
|
73
|
+
label?: import("tailwind-merge").ClassNameValue;
|
|
74
|
+
container?: import("tailwind-merge").ClassNameValue;
|
|
75
|
+
containerList?: import("tailwind-merge").ClassNameValue;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
} | {}, {
|
|
79
|
+
container: string;
|
|
80
|
+
label: string;
|
|
81
|
+
containerList: string;
|
|
82
|
+
}, undefined, import("tailwind-variants/dist/config").TVConfig<unknown, {
|
|
83
|
+
[key: string]: {
|
|
84
|
+
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
85
|
+
label?: import("tailwind-merge").ClassNameValue;
|
|
86
|
+
container?: import("tailwind-merge").ClassNameValue;
|
|
87
|
+
containerList?: import("tailwind-merge").ClassNameValue;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
} | {}>, {
|
|
91
|
+
[key: string]: {
|
|
92
|
+
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
93
|
+
label?: import("tailwind-merge").ClassNameValue;
|
|
94
|
+
container?: import("tailwind-merge").ClassNameValue;
|
|
95
|
+
containerList?: import("tailwind-merge").ClassNameValue;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
} | {}, {
|
|
99
|
+
container: string;
|
|
100
|
+
label: string;
|
|
101
|
+
containerList: string;
|
|
102
|
+
}, import("tailwind-variants").TVReturnType<unknown, {
|
|
103
|
+
container: string;
|
|
104
|
+
label: string;
|
|
105
|
+
containerList: string;
|
|
106
|
+
}, undefined, import("tailwind-variants/dist/config").TVConfig<unknown, {
|
|
107
|
+
[key: string]: {
|
|
108
|
+
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
109
|
+
label?: import("tailwind-merge").ClassNameValue;
|
|
110
|
+
container?: import("tailwind-merge").ClassNameValue;
|
|
111
|
+
containerList?: import("tailwind-merge").ClassNameValue;
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
} | {}>, unknown, unknown, undefined>>;
|
|
115
|
+
export declare const mostUsedItem: import("tailwind-variants").TVReturnType<{
|
|
116
|
+
[key: string]: {
|
|
117
|
+
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
118
|
+
title?: import("tailwind-merge").ClassNameValue;
|
|
119
|
+
container?: import("tailwind-merge").ClassNameValue;
|
|
120
|
+
category?: import("tailwind-merge").ClassNameValue;
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
} | {
|
|
124
|
+
[x: string]: {
|
|
125
|
+
[x: string]: import("tailwind-merge").ClassNameValue | {
|
|
126
|
+
title?: import("tailwind-merge").ClassNameValue;
|
|
127
|
+
container?: import("tailwind-merge").ClassNameValue;
|
|
128
|
+
category?: import("tailwind-merge").ClassNameValue;
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
} | {}, {
|
|
132
|
+
container: string;
|
|
133
|
+
title: string;
|
|
134
|
+
category: string;
|
|
135
|
+
}, undefined, import("tailwind-variants/dist/config").TVConfig<unknown, {
|
|
136
|
+
[key: string]: {
|
|
137
|
+
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
138
|
+
title?: import("tailwind-merge").ClassNameValue;
|
|
139
|
+
container?: import("tailwind-merge").ClassNameValue;
|
|
140
|
+
category?: import("tailwind-merge").ClassNameValue;
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
} | {}>, {
|
|
144
|
+
[key: string]: {
|
|
145
|
+
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
146
|
+
title?: import("tailwind-merge").ClassNameValue;
|
|
147
|
+
container?: import("tailwind-merge").ClassNameValue;
|
|
148
|
+
category?: import("tailwind-merge").ClassNameValue;
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
} | {}, {
|
|
152
|
+
container: string;
|
|
153
|
+
title: string;
|
|
154
|
+
category: string;
|
|
155
|
+
}, import("tailwind-variants").TVReturnType<unknown, {
|
|
156
|
+
container: string;
|
|
157
|
+
title: string;
|
|
158
|
+
category: string;
|
|
159
|
+
}, undefined, import("tailwind-variants/dist/config").TVConfig<unknown, {
|
|
160
|
+
[key: string]: {
|
|
161
|
+
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
162
|
+
title?: import("tailwind-merge").ClassNameValue;
|
|
163
|
+
container?: import("tailwind-merge").ClassNameValue;
|
|
164
|
+
category?: import("tailwind-merge").ClassNameValue;
|
|
165
|
+
};
|
|
166
|
+
};
|
|
167
|
+
} | {}>, unknown, unknown, undefined>>;
|
|
168
|
+
export declare const item: import("tailwind-variants").TVReturnType<{
|
|
169
|
+
[key: string]: {
|
|
170
|
+
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
171
|
+
text?: import("tailwind-merge").ClassNameValue;
|
|
172
|
+
container?: import("tailwind-merge").ClassNameValue;
|
|
173
|
+
icon?: import("tailwind-merge").ClassNameValue;
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
} | {
|
|
177
|
+
[x: string]: {
|
|
178
|
+
[x: string]: import("tailwind-merge").ClassNameValue | {
|
|
179
|
+
text?: import("tailwind-merge").ClassNameValue;
|
|
180
|
+
container?: import("tailwind-merge").ClassNameValue;
|
|
181
|
+
icon?: import("tailwind-merge").ClassNameValue;
|
|
182
|
+
};
|
|
183
|
+
};
|
|
184
|
+
} | {}, {
|
|
185
|
+
container: string;
|
|
186
|
+
text: string;
|
|
187
|
+
icon: string;
|
|
188
|
+
}, undefined, import("tailwind-variants/dist/config").TVConfig<unknown, {
|
|
189
|
+
[key: string]: {
|
|
190
|
+
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
191
|
+
text?: import("tailwind-merge").ClassNameValue;
|
|
192
|
+
container?: import("tailwind-merge").ClassNameValue;
|
|
193
|
+
icon?: import("tailwind-merge").ClassNameValue;
|
|
194
|
+
};
|
|
195
|
+
};
|
|
196
|
+
} | {}>, {
|
|
197
|
+
[key: string]: {
|
|
198
|
+
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
199
|
+
text?: import("tailwind-merge").ClassNameValue;
|
|
200
|
+
container?: import("tailwind-merge").ClassNameValue;
|
|
201
|
+
icon?: import("tailwind-merge").ClassNameValue;
|
|
202
|
+
};
|
|
203
|
+
};
|
|
204
|
+
} | {}, {
|
|
205
|
+
container: string;
|
|
206
|
+
text: string;
|
|
207
|
+
icon: string;
|
|
208
|
+
}, import("tailwind-variants").TVReturnType<unknown, {
|
|
209
|
+
container: string;
|
|
210
|
+
text: string;
|
|
211
|
+
icon: string;
|
|
212
|
+
}, undefined, import("tailwind-variants/dist/config").TVConfig<unknown, {
|
|
213
|
+
[key: string]: {
|
|
214
|
+
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
215
|
+
text?: import("tailwind-merge").ClassNameValue;
|
|
216
|
+
container?: import("tailwind-merge").ClassNameValue;
|
|
217
|
+
icon?: import("tailwind-merge").ClassNameValue;
|
|
218
|
+
};
|
|
219
|
+
};
|
|
220
|
+
} | {}>, unknown, unknown, undefined>>;
|
|
221
|
+
export declare const category: import("tailwind-variants").TVReturnType<{
|
|
222
|
+
[key: string]: {
|
|
223
|
+
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
224
|
+
hr?: import("tailwind-merge").ClassNameValue;
|
|
225
|
+
text?: import("tailwind-merge").ClassNameValue;
|
|
226
|
+
container?: import("tailwind-merge").ClassNameValue;
|
|
227
|
+
};
|
|
228
|
+
};
|
|
229
|
+
} | {
|
|
230
|
+
[x: string]: {
|
|
231
|
+
[x: string]: import("tailwind-merge").ClassNameValue | {
|
|
232
|
+
hr?: import("tailwind-merge").ClassNameValue;
|
|
233
|
+
text?: import("tailwind-merge").ClassNameValue;
|
|
234
|
+
container?: import("tailwind-merge").ClassNameValue;
|
|
235
|
+
};
|
|
236
|
+
};
|
|
237
|
+
} | {}, {
|
|
238
|
+
text: string;
|
|
239
|
+
hr: string;
|
|
240
|
+
container: string;
|
|
241
|
+
}, undefined, import("tailwind-variants/dist/config").TVConfig<unknown, {
|
|
242
|
+
[key: string]: {
|
|
243
|
+
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
244
|
+
hr?: import("tailwind-merge").ClassNameValue;
|
|
245
|
+
text?: import("tailwind-merge").ClassNameValue;
|
|
246
|
+
container?: import("tailwind-merge").ClassNameValue;
|
|
247
|
+
};
|
|
248
|
+
};
|
|
249
|
+
} | {}>, {
|
|
250
|
+
[key: string]: {
|
|
251
|
+
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
252
|
+
hr?: import("tailwind-merge").ClassNameValue;
|
|
253
|
+
text?: import("tailwind-merge").ClassNameValue;
|
|
254
|
+
container?: import("tailwind-merge").ClassNameValue;
|
|
255
|
+
};
|
|
256
|
+
};
|
|
257
|
+
} | {}, {
|
|
258
|
+
text: string;
|
|
259
|
+
hr: string;
|
|
260
|
+
container: string;
|
|
261
|
+
}, import("tailwind-variants").TVReturnType<unknown, {
|
|
262
|
+
text: string;
|
|
263
|
+
hr: string;
|
|
264
|
+
container: string;
|
|
265
|
+
}, undefined, import("tailwind-variants/dist/config").TVConfig<unknown, {
|
|
266
|
+
[key: string]: {
|
|
267
|
+
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
268
|
+
hr?: import("tailwind-merge").ClassNameValue;
|
|
269
|
+
text?: import("tailwind-merge").ClassNameValue;
|
|
270
|
+
container?: import("tailwind-merge").ClassNameValue;
|
|
271
|
+
};
|
|
272
|
+
};
|
|
273
|
+
} | {}>, unknown, unknown, undefined>>;
|
|
274
|
+
export declare const subItem: import("tailwind-variants").TVReturnType<{
|
|
275
|
+
[key: string]: {
|
|
276
|
+
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
277
|
+
container?: import("tailwind-merge").ClassNameValue;
|
|
278
|
+
};
|
|
279
|
+
};
|
|
280
|
+
} | {
|
|
281
|
+
[x: string]: {
|
|
282
|
+
[x: string]: import("tailwind-merge").ClassNameValue | {
|
|
283
|
+
container?: import("tailwind-merge").ClassNameValue;
|
|
284
|
+
};
|
|
285
|
+
};
|
|
286
|
+
} | {}, {
|
|
287
|
+
container: string;
|
|
288
|
+
}, undefined, import("tailwind-variants/dist/config").TVConfig<unknown, {
|
|
289
|
+
[key: string]: {
|
|
290
|
+
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
291
|
+
container?: import("tailwind-merge").ClassNameValue;
|
|
292
|
+
};
|
|
293
|
+
};
|
|
294
|
+
} | {}>, {
|
|
295
|
+
[key: string]: {
|
|
296
|
+
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
297
|
+
container?: import("tailwind-merge").ClassNameValue;
|
|
298
|
+
};
|
|
299
|
+
};
|
|
300
|
+
} | {}, {
|
|
301
|
+
container: string;
|
|
302
|
+
}, import("tailwind-variants").TVReturnType<unknown, {
|
|
303
|
+
container: string;
|
|
304
|
+
}, undefined, import("tailwind-variants/dist/config").TVConfig<unknown, {
|
|
305
|
+
[key: string]: {
|
|
306
|
+
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
307
|
+
container?: import("tailwind-merge").ClassNameValue;
|
|
308
|
+
};
|
|
309
|
+
};
|
|
310
|
+
} | {}>, unknown, unknown, undefined>>;
|
|
311
|
+
export declare const animate: import("tailwind-variants").TVReturnType<{
|
|
312
|
+
show: {
|
|
313
|
+
true: string;
|
|
314
|
+
false: string;
|
|
315
|
+
};
|
|
316
|
+
}, undefined, "transition-all ease-in-out duration-250", import("tailwind-variants/dist/config").TVConfig<{
|
|
317
|
+
show: {
|
|
318
|
+
true: string;
|
|
319
|
+
false: string;
|
|
320
|
+
};
|
|
321
|
+
}, {
|
|
322
|
+
show: {
|
|
323
|
+
true: string;
|
|
324
|
+
false: string;
|
|
325
|
+
};
|
|
326
|
+
}>, {
|
|
327
|
+
show: {
|
|
328
|
+
true: string;
|
|
329
|
+
false: string;
|
|
330
|
+
};
|
|
331
|
+
}, undefined, import("tailwind-variants").TVReturnType<{
|
|
332
|
+
show: {
|
|
333
|
+
true: string;
|
|
334
|
+
false: string;
|
|
335
|
+
};
|
|
336
|
+
}, undefined, "transition-all ease-in-out duration-250", import("tailwind-variants/dist/config").TVConfig<{
|
|
337
|
+
show: {
|
|
338
|
+
true: string;
|
|
339
|
+
false: string;
|
|
340
|
+
};
|
|
341
|
+
}, {
|
|
342
|
+
show: {
|
|
343
|
+
true: string;
|
|
344
|
+
false: string;
|
|
345
|
+
};
|
|
346
|
+
}>, unknown, unknown, undefined>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tecsinapse/cortex-react",
|
|
3
|
-
"version": "1.3.0-beta.
|
|
3
|
+
"version": "1.3.0-beta.5",
|
|
4
4
|
"description": "React components based in @tecsinapse/cortex-core",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/esm/index.js",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"react-dom": ">=18.0.0",
|
|
43
43
|
"tailwind": ">=3.3.0"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "074abd70d396a15cab7475f4cec4e0c93502a1d9"
|
|
46
46
|
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var PopoverRoot = require('./PopoverRoot.js');
|
|
4
|
-
var PopoverTrigger = require('./PopoverTrigger.js');
|
|
5
|
-
var PopoverContent = require('./PopoverContent.js');
|
|
6
|
-
|
|
7
|
-
const Popover = {
|
|
8
|
-
Root: PopoverRoot,
|
|
9
|
-
Trigger: PopoverTrigger,
|
|
10
|
-
Content: PopoverContent
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
exports.Popover = Popover;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var React = require('react');
|
|
4
|
-
require('@internationalized/date');
|
|
5
|
-
require('react-aria');
|
|
6
|
-
require('react-stately');
|
|
7
|
-
var useFloatingLogic = require('../../hooks/useFloatingLogic.js');
|
|
8
|
-
|
|
9
|
-
const PopoverContext = React.createContext(
|
|
10
|
-
void 0
|
|
11
|
-
);
|
|
12
|
-
const usePopoverContext = () => {
|
|
13
|
-
const context = React.useContext(PopoverContext);
|
|
14
|
-
if (!context) {
|
|
15
|
-
throw new Error("usePopoverContext must be used within a PopoverProvider");
|
|
16
|
-
}
|
|
17
|
-
return context;
|
|
18
|
-
};
|
|
19
|
-
const PopoverProvider = ({
|
|
20
|
-
children,
|
|
21
|
-
placement,
|
|
22
|
-
trigger
|
|
23
|
-
}) => {
|
|
24
|
-
const floatingLogic = useFloatingLogic.useFloatingLogic({ placement, trigger });
|
|
25
|
-
return /* @__PURE__ */ React.createElement(PopoverContext.Provider, { value: { ...floatingLogic } }, children);
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
exports.PopoverProvider = PopoverProvider;
|
|
29
|
-
exports.usePopoverContext = usePopoverContext;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var React = require('react');
|
|
4
|
-
var PopoverContext = require('./PopoverContext.js');
|
|
5
|
-
|
|
6
|
-
const PopoverRoot = ({ children, placement, trigger }) => {
|
|
7
|
-
return /* @__PURE__ */ React.createElement(PopoverContext.PopoverProvider, { placement, trigger }, children);
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
module.exports = PopoverRoot;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var React = require('react');
|
|
4
|
-
var PopoverContext = require('./PopoverContext.js');
|
|
5
|
-
|
|
6
|
-
const PopoverTrigger = ({ children }) => {
|
|
7
|
-
const { triggerProps } = PopoverContext.usePopoverContext();
|
|
8
|
-
return React.cloneElement(children, triggerProps);
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
module.exports = PopoverTrigger;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import PopoverRoot from './PopoverRoot.js';
|
|
2
|
-
import PopoverTrigger from './PopoverTrigger.js';
|
|
3
|
-
import PopoverContent from './PopoverContent.js';
|
|
4
|
-
|
|
5
|
-
const Popover = {
|
|
6
|
-
Root: PopoverRoot,
|
|
7
|
-
Trigger: PopoverTrigger,
|
|
8
|
-
Content: PopoverContent
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
export { Popover };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import React, { createContext, useContext } from 'react';
|
|
2
|
-
import '@internationalized/date';
|
|
3
|
-
import 'react-aria';
|
|
4
|
-
import 'react-stately';
|
|
5
|
-
import { useFloatingLogic } from '../../hooks/useFloatingLogic.js';
|
|
6
|
-
|
|
7
|
-
const PopoverContext = createContext(
|
|
8
|
-
void 0
|
|
9
|
-
);
|
|
10
|
-
const usePopoverContext = () => {
|
|
11
|
-
const context = useContext(PopoverContext);
|
|
12
|
-
if (!context) {
|
|
13
|
-
throw new Error("usePopoverContext must be used within a PopoverProvider");
|
|
14
|
-
}
|
|
15
|
-
return context;
|
|
16
|
-
};
|
|
17
|
-
const PopoverProvider = ({
|
|
18
|
-
children,
|
|
19
|
-
placement,
|
|
20
|
-
trigger
|
|
21
|
-
}) => {
|
|
22
|
-
const floatingLogic = useFloatingLogic({ placement, trigger });
|
|
23
|
-
return /* @__PURE__ */ React.createElement(PopoverContext.Provider, { value: { ...floatingLogic } }, children);
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
export { PopoverProvider, usePopoverContext };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { PopoverProvider } from './PopoverContext.js';
|
|
3
|
-
|
|
4
|
-
const PopoverRoot = ({ children, placement, trigger }) => {
|
|
5
|
-
return /* @__PURE__ */ React.createElement(PopoverProvider, { placement, trigger }, children);
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
export { PopoverRoot as default };
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare const Popover: {
|
|
2
|
-
Root: ({ children, placement, trigger }: import("./PopoverRoot").PopoverRootProps) => JSX.Element;
|
|
3
|
-
Trigger: ({ children }: import("./PopoverTrigger").PopoverTriggerProps) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
4
|
-
Content: ({ children, className }: import("./PopoverContent").PopoverContentProps) => JSX.Element;
|
|
5
|
-
};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface PopoverTriggerProps {
|
|
3
|
-
children: React.ReactElement;
|
|
4
|
-
}
|
|
5
|
-
declare const PopoverTrigger: ({ children }: PopoverTriggerProps) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
6
|
-
export default PopoverTrigger;
|