@tecsinapse/cortex-react 1.3.0-beta.1 → 1.3.0-beta.11

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 (199) hide show
  1. package/dist/cjs/components/Calendar.js +1 -0
  2. package/dist/cjs/components/CalendarCell.js +1 -0
  3. package/dist/cjs/components/CalendarGrid.js +1 -0
  4. package/dist/cjs/components/DatePickerInput.js +1 -0
  5. package/dist/cjs/components/DatePickerInputBase.js +2 -2
  6. package/dist/cjs/components/DateRangePickerInput.js +1 -0
  7. package/dist/cjs/components/Divider.js +10 -0
  8. package/dist/cjs/components/Input/Box.js +32 -0
  9. package/dist/cjs/components/Input/Face.js +30 -0
  10. package/dist/cjs/components/Input/Left.js +12 -0
  11. package/dist/cjs/components/Input/Right.js +12 -0
  12. package/dist/cjs/components/Input/Root.js +13 -0
  13. package/dist/cjs/components/Input/Search.js +25 -0
  14. package/dist/cjs/components/Input/index.js +19 -0
  15. package/dist/cjs/components/Masonry.js +49 -0
  16. package/dist/cjs/components/Menubar/Categories.js +10 -0
  17. package/dist/cjs/components/Menubar/Category.js +11 -0
  18. package/dist/cjs/components/Menubar/Dropdown.js +23 -0
  19. package/dist/cjs/components/Menubar/DropdownRoot.js +38 -0
  20. package/dist/cjs/components/Menubar/Header.js +25 -0
  21. package/dist/cjs/components/Menubar/IconControlSubItem.js +19 -0
  22. package/dist/cjs/components/Menubar/Item.js +22 -0
  23. package/dist/cjs/components/Menubar/ItemLink.js +18 -0
  24. package/dist/cjs/components/Menubar/Left.js +11 -0
  25. package/dist/cjs/components/Menubar/MostUsed.js +11 -0
  26. package/dist/cjs/components/Menubar/MostUsedItem.js +31 -0
  27. package/dist/cjs/components/Menubar/MostUsedList.js +58 -0
  28. package/dist/cjs/components/Menubar/Right.js +11 -0
  29. package/dist/cjs/components/Menubar/Root.js +11 -0
  30. package/dist/cjs/components/Menubar/Search.js +21 -0
  31. package/dist/cjs/components/Menubar/SubItem.js +20 -0
  32. package/dist/cjs/components/Menubar/index.js +33 -0
  33. package/dist/cjs/components/Popover/Content.js +31 -0
  34. package/dist/cjs/components/Popover/Context.js +15 -0
  35. package/dist/cjs/components/Popover/Provider.js +19 -0
  36. package/dist/cjs/components/Popover/Root.js +14 -0
  37. package/dist/cjs/components/Popover/Trigger.js +11 -0
  38. package/dist/cjs/components/Popover/index.js +15 -0
  39. package/dist/cjs/components/RangeCalendar.js +1 -0
  40. package/dist/cjs/components/Select/Content.js +27 -0
  41. package/dist/cjs/components/Select/GroupedOptions.js +34 -0
  42. package/dist/cjs/components/Select/Option.js +25 -0
  43. package/dist/cjs/components/Select/Options.js +31 -0
  44. package/dist/cjs/components/Select/Popover.js +10 -0
  45. package/dist/cjs/components/Select/Root.js +24 -0
  46. package/dist/cjs/components/Select/Trigger.js +28 -0
  47. package/dist/cjs/components/Select/context.js +10 -0
  48. package/dist/cjs/components/Select/index.js +19 -0
  49. package/dist/cjs/components/TimeFieldInput.js +2 -2
  50. package/dist/cjs/components/Tooltip.js +54 -0
  51. package/dist/cjs/hooks/useFloatingLogic.js +53 -0
  52. package/dist/cjs/hooks/useOutsideClickListener.js +22 -0
  53. package/dist/cjs/index.js +16 -9
  54. package/dist/cjs/provider/MenubarProvider.js +22 -0
  55. package/dist/cjs/provider/SnackbarProvider.js +51 -0
  56. package/dist/cjs/service/SnackbarSonner.js +23 -2
  57. package/dist/cjs/styles/menubar.js +70 -0
  58. package/dist/esm/components/Calendar.js +1 -0
  59. package/dist/esm/components/CalendarCell.js +1 -0
  60. package/dist/esm/components/CalendarGrid.js +1 -0
  61. package/dist/esm/components/DatePickerInput.js +1 -0
  62. package/dist/esm/components/DatePickerInputBase.js +1 -1
  63. package/dist/esm/components/DateRangePickerInput.js +1 -0
  64. package/dist/esm/components/Divider.js +8 -0
  65. package/dist/esm/components/Input/Box.js +30 -0
  66. package/dist/esm/components/Input/Face.js +28 -0
  67. package/dist/esm/components/Input/Left.js +10 -0
  68. package/dist/esm/components/Input/Right.js +10 -0
  69. package/dist/esm/components/Input/Root.js +11 -0
  70. package/dist/esm/components/Input/Search.js +23 -0
  71. package/dist/esm/components/Input/index.js +17 -0
  72. package/dist/esm/components/Masonry.js +47 -0
  73. package/dist/esm/components/Menubar/Categories.js +8 -0
  74. package/dist/esm/components/Menubar/Category.js +9 -0
  75. package/dist/esm/components/Menubar/Dropdown.js +21 -0
  76. package/dist/esm/components/Menubar/DropdownRoot.js +36 -0
  77. package/dist/esm/components/Menubar/Header.js +23 -0
  78. package/dist/esm/components/Menubar/IconControlSubItem.js +17 -0
  79. package/dist/esm/components/Menubar/Item.js +20 -0
  80. package/dist/esm/components/Menubar/ItemLink.js +16 -0
  81. package/dist/esm/components/Menubar/Left.js +9 -0
  82. package/dist/esm/components/Menubar/MostUsed.js +9 -0
  83. package/dist/esm/components/Menubar/MostUsedItem.js +29 -0
  84. package/dist/esm/components/Menubar/MostUsedList.js +56 -0
  85. package/dist/esm/components/Menubar/Right.js +9 -0
  86. package/dist/esm/components/Menubar/Root.js +9 -0
  87. package/dist/esm/components/Menubar/Search.js +19 -0
  88. package/dist/esm/components/Menubar/SubItem.js +18 -0
  89. package/dist/esm/components/Menubar/index.js +31 -0
  90. package/dist/esm/components/Popover/Content.js +29 -0
  91. package/dist/esm/components/Popover/Context.js +12 -0
  92. package/dist/esm/components/Popover/Provider.js +17 -0
  93. package/dist/esm/components/Popover/Root.js +12 -0
  94. package/dist/esm/components/Popover/Trigger.js +9 -0
  95. package/dist/esm/components/Popover/index.js +13 -0
  96. package/dist/esm/components/RangeCalendar.js +1 -0
  97. package/dist/esm/components/Select/Content.js +25 -0
  98. package/dist/esm/components/Select/GroupedOptions.js +32 -0
  99. package/dist/esm/components/Select/Option.js +23 -0
  100. package/dist/esm/components/Select/Options.js +29 -0
  101. package/dist/esm/components/Select/Popover.js +8 -0
  102. package/dist/esm/components/Select/Root.js +22 -0
  103. package/dist/esm/components/Select/Trigger.js +26 -0
  104. package/dist/esm/components/Select/context.js +8 -0
  105. package/dist/esm/components/Select/index.js +17 -0
  106. package/dist/esm/components/TimeFieldInput.js +1 -1
  107. package/dist/esm/components/Tooltip.js +49 -0
  108. package/dist/esm/hooks/useFloatingLogic.js +51 -0
  109. package/dist/esm/hooks/useOutsideClickListener.js +20 -0
  110. package/dist/esm/index.js +8 -2
  111. package/dist/esm/provider/MenubarProvider.js +19 -0
  112. package/dist/esm/provider/SnackbarProvider.js +49 -0
  113. package/dist/esm/service/SnackbarSonner.js +23 -2
  114. package/dist/esm/styles/menubar.js +62 -0
  115. package/dist/types/components/Card.d.ts +3 -4
  116. package/dist/types/components/Divider.d.ts +5 -0
  117. package/dist/types/components/Input/Box.d.ts +3 -0
  118. package/dist/types/components/Input/Face.d.ts +3 -0
  119. package/dist/types/components/Input/Left.d.ts +3 -0
  120. package/dist/types/components/Input/Right.d.ts +3 -0
  121. package/dist/types/components/Input/Root.d.ts +3 -0
  122. package/dist/types/components/Input/Search.d.ts +3 -0
  123. package/dist/types/components/Input/index.d.ts +9 -0
  124. package/dist/types/components/Input/types.d.ts +20 -0
  125. package/dist/types/components/Masonry.d.ts +7 -0
  126. package/dist/types/components/Menubar/Categories.d.ts +3 -0
  127. package/dist/types/components/Menubar/Category.d.ts +8 -0
  128. package/dist/types/components/Menubar/Dropdown.d.ts +3 -0
  129. package/dist/types/components/Menubar/DropdownRoot.d.ts +17 -0
  130. package/dist/types/components/Menubar/Header.d.ts +6 -0
  131. package/dist/types/components/Menubar/IconControlSubItem.d.ts +6 -0
  132. package/dist/types/components/Menubar/Item.d.ts +10 -0
  133. package/dist/types/components/Menubar/ItemLink.d.ts +8 -0
  134. package/dist/types/components/Menubar/Left.d.ts +3 -0
  135. package/dist/types/components/Menubar/MostUsed.d.ts +8 -0
  136. package/dist/types/components/Menubar/MostUsedItem.d.ts +8 -0
  137. package/dist/types/components/Menubar/MostUsedList.d.ts +3 -0
  138. package/dist/types/components/Menubar/Right.d.ts +3 -0
  139. package/dist/types/components/Menubar/Root.d.ts +6 -0
  140. package/dist/types/components/Menubar/Search.d.ts +3 -0
  141. package/dist/types/components/Menubar/SubItem.d.ts +6 -0
  142. package/dist/types/components/Menubar/index.d.ts +15 -0
  143. package/dist/types/components/Menubar/interface.d.ts +4 -0
  144. package/dist/types/components/Popover/Content.d.ts +6 -0
  145. package/dist/types/components/Popover/Context.d.ts +18 -0
  146. package/dist/types/components/Popover/Provider.d.ts +8 -0
  147. package/dist/types/components/Popover/Root.d.ts +8 -0
  148. package/dist/types/components/Popover/Trigger.d.ts +5 -0
  149. package/dist/types/components/Popover/index.d.ts +6 -0
  150. package/dist/types/components/SearchInput.d.ts +0 -10
  151. package/dist/types/components/Select/Content.d.ts +9 -0
  152. package/dist/types/components/Select/GroupedOptions.d.ts +6 -0
  153. package/dist/types/components/Select/Option.d.ts +5 -0
  154. package/dist/types/components/Select/Options.d.ts +5 -0
  155. package/dist/types/components/Select/Popover.d.ts +5 -0
  156. package/dist/types/components/Select/Root.d.ts +8 -0
  157. package/dist/types/components/Select/Trigger.d.ts +5 -0
  158. package/dist/types/components/Select/context.d.ts +7 -0
  159. package/dist/types/components/Select/index.d.ts +8 -0
  160. package/dist/types/components/Tooltip.d.ts +13 -0
  161. package/dist/types/components/index.d.ts +5 -1
  162. package/dist/types/hooks/index.d.ts +2 -0
  163. package/dist/types/hooks/useFloatingLogic.d.ts +46 -0
  164. package/dist/types/hooks/useOutsideClickListener.d.ts +7 -0
  165. package/dist/types/provider/MenubarProvider.d.ts +8 -0
  166. package/dist/types/provider/index.d.ts +2 -0
  167. package/dist/types/styles/menubar.d.ts +350 -0
  168. package/dist/types/tests/Input/Face.test.d.ts +1 -0
  169. package/dist/types/tests/Input/Left.test.d.ts +1 -0
  170. package/dist/types/tests/Input/Right.test.d.ts +1 -0
  171. package/dist/types/tests/Input/Root.test.d.ts +1 -0
  172. package/dist/types/tests/Input/Search.test.d.ts +1 -0
  173. package/dist/types/tests/Menubar/Categories.test.d.ts +1 -0
  174. package/dist/types/tests/Menubar/Category.test.d.ts +1 -0
  175. package/dist/types/tests/Menubar/Dropdown.test.d.ts +1 -0
  176. package/dist/types/tests/Menubar/DropdownRoot.test.d.ts +1 -0
  177. package/dist/types/tests/Menubar/Header.test.d.ts +1 -0
  178. package/dist/types/tests/Menubar/HeaderLeft.test.d.ts +1 -0
  179. package/dist/types/tests/Menubar/HeaderRigth.test.d.ts +1 -0
  180. package/dist/types/tests/Menubar/Item.test.d.ts +1 -0
  181. package/dist/types/tests/Menubar/MostUsed.test.d.ts +1 -0
  182. package/dist/types/tests/Menubar/MostUsedItem.test.d.ts +1 -0
  183. package/dist/types/tests/Menubar/MostUsedList.test.d.ts +1 -0
  184. package/dist/types/tests/Menubar/Root.test.d.ts +1 -0
  185. package/dist/types/tests/Menubar/SubItem.test.d.ts +1 -0
  186. package/dist/types/tests/Popover.test.d.ts +1 -0
  187. package/dist/types/tests/Tooltip.test.d.ts +1 -0
  188. package/dist/types/tests/useOutsideClickListener.test.d.ts +1 -0
  189. package/package.json +7 -4
  190. package/dist/cjs/components/Input.js +0 -81
  191. package/dist/cjs/components/SearchInput.js +0 -83
  192. package/dist/cjs/components/Select.js +0 -101
  193. package/dist/esm/components/Input.js +0 -74
  194. package/dist/esm/components/SearchInput.js +0 -81
  195. package/dist/esm/components/Select.js +0 -96
  196. package/dist/types/components/Input.d.ts +0 -34
  197. package/dist/types/components/Select.d.ts +0 -27
  198. /package/dist/types/tests/{Input.test.d.ts → Divider.test.d.ts} +0 -0
  199. /package/dist/types/tests/{SearchInput.test.d.ts → Input/Box.test.d.ts} +0 -0
@@ -0,0 +1,46 @@
1
+ import { RefObject } from 'react';
2
+ import { Placement } from '@floating-ui/react';
3
+ interface FloatingLogicProps {
4
+ placement?: Placement;
5
+ trigger?: 'hover' | 'click';
6
+ arrowRef?: RefObject<SVGSVGElement>;
7
+ }
8
+ export declare const useFloatingLogic: ({ placement, trigger, arrowRef, }: FloatingLogicProps) => {
9
+ isOpen: boolean;
10
+ setIsOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
11
+ x: number;
12
+ y: number;
13
+ strategy: import("@floating-ui/utils").Strategy;
14
+ refs: {
15
+ reference: import("react").MutableRefObject<import("@floating-ui/react-dom").ReferenceType | null>;
16
+ floating: import("react").MutableRefObject<HTMLElement | null>;
17
+ setReference: (node: import("@floating-ui/react-dom").ReferenceType | null) => void;
18
+ setFloating: (node: HTMLElement | null) => void;
19
+ } & import("@floating-ui/react").ExtendedRefs<import("@floating-ui/react").ReferenceType>;
20
+ context: {
21
+ placement: Placement;
22
+ strategy: import("@floating-ui/utils").Strategy;
23
+ x: number;
24
+ y: number;
25
+ middlewareData: import("@floating-ui/core").MiddlewareData;
26
+ isPositioned: boolean;
27
+ update: () => void;
28
+ floatingStyles: import("react").CSSProperties;
29
+ open: boolean;
30
+ onOpenChange: (open: boolean, event?: Event | undefined, reason?: import("@floating-ui/react").OpenChangeReason | undefined) => void;
31
+ events: import("@floating-ui/react").FloatingEvents;
32
+ dataRef: import("react").MutableRefObject<import("@floating-ui/react").ContextData>;
33
+ nodeId: string | undefined;
34
+ floatingId: string;
35
+ refs: import("@floating-ui/react").ExtendedRefs<import("@floating-ui/react").ReferenceType>;
36
+ elements: import("@floating-ui/react").ExtendedElements<import("@floating-ui/react").ReferenceType>;
37
+ };
38
+ floatingStyles: import("react").CSSProperties;
39
+ triggerProps: {
40
+ onClick?: (() => void) | undefined;
41
+ onMouseEnter?: (() => void) | undefined;
42
+ onMouseLeave?: (() => void) | undefined;
43
+ ref: ((node: import("@floating-ui/react-dom").ReferenceType | null) => void) & ((node: import("@floating-ui/react").ReferenceType | null) => void);
44
+ };
45
+ };
46
+ export {};
@@ -0,0 +1,7 @@
1
+ import { MutableRefObject } from 'react';
2
+ interface useOutsideClickListenerProps {
3
+ ref: MutableRefObject<any>;
4
+ onClickOutside?: () => void;
5
+ }
6
+ export declare const useOutsideClickListener: ({ ref, onClickOutside, }: useOutsideClickListenerProps) => void;
7
+ export {};
@@ -0,0 +1,8 @@
1
+ import { ReactNode } from 'react';
2
+ export declare const MenubarProvider: ({ children }: {
3
+ children: ReactNode;
4
+ }) => JSX.Element;
5
+ export declare const useMenubar: () => [
6
+ show: boolean,
7
+ setShow: (show: boolean) => void
8
+ ];
@@ -0,0 +1,2 @@
1
+ export * from './MenubarProvider';
2
+ export * from './SnackbarProvider';
@@ -0,0 +1,350 @@
1
+ export declare const menubar: import("tailwind-variants").TVReturnType<{
2
+ show: {
3
+ true: {
4
+ dropdown: string;
5
+ false: string;
6
+ };
7
+ };
8
+ }, {
9
+ root: string;
10
+ left: string;
11
+ right: string;
12
+ dropdown: string;
13
+ }, undefined, import("tailwind-variants/dist/config").TVConfig<{
14
+ show: {
15
+ true: {
16
+ dropdown: string;
17
+ false: string;
18
+ };
19
+ };
20
+ }, {
21
+ show: {
22
+ true: {
23
+ dropdown: string;
24
+ false: string;
25
+ };
26
+ };
27
+ }>, {
28
+ show: {
29
+ true: {
30
+ dropdown: string;
31
+ false: string;
32
+ };
33
+ };
34
+ }, {
35
+ root: string;
36
+ left: string;
37
+ right: string;
38
+ dropdown: string;
39
+ }, import("tailwind-variants").TVReturnType<{
40
+ show: {
41
+ true: {
42
+ dropdown: string;
43
+ false: string;
44
+ };
45
+ };
46
+ }, {
47
+ root: string;
48
+ left: string;
49
+ right: string;
50
+ dropdown: string;
51
+ }, undefined, import("tailwind-variants/dist/config").TVConfig<{
52
+ show: {
53
+ true: {
54
+ dropdown: string;
55
+ false: string;
56
+ };
57
+ };
58
+ }, {
59
+ show: {
60
+ true: {
61
+ dropdown: string;
62
+ false: string;
63
+ };
64
+ };
65
+ }>, unknown, unknown, undefined>>;
66
+ export declare const mostUsed: import("tailwind-variants").TVReturnType<{
67
+ [key: string]: {
68
+ [key: string]: import("tailwind-merge").ClassNameValue | {
69
+ label?: import("tailwind-merge").ClassNameValue;
70
+ container?: import("tailwind-merge").ClassNameValue;
71
+ containerList?: import("tailwind-merge").ClassNameValue;
72
+ };
73
+ };
74
+ } | {
75
+ [x: string]: {
76
+ [x: string]: import("tailwind-merge").ClassNameValue | {
77
+ label?: import("tailwind-merge").ClassNameValue;
78
+ container?: import("tailwind-merge").ClassNameValue;
79
+ containerList?: import("tailwind-merge").ClassNameValue;
80
+ };
81
+ };
82
+ } | {}, {
83
+ container: string;
84
+ label: string;
85
+ containerList: string;
86
+ }, undefined, import("tailwind-variants/dist/config").TVConfig<unknown, {
87
+ [key: string]: {
88
+ [key: string]: import("tailwind-merge").ClassNameValue | {
89
+ label?: import("tailwind-merge").ClassNameValue;
90
+ container?: import("tailwind-merge").ClassNameValue;
91
+ containerList?: import("tailwind-merge").ClassNameValue;
92
+ };
93
+ };
94
+ } | {}>, {
95
+ [key: string]: {
96
+ [key: string]: import("tailwind-merge").ClassNameValue | {
97
+ label?: import("tailwind-merge").ClassNameValue;
98
+ container?: import("tailwind-merge").ClassNameValue;
99
+ containerList?: import("tailwind-merge").ClassNameValue;
100
+ };
101
+ };
102
+ } | {}, {
103
+ container: string;
104
+ label: string;
105
+ containerList: string;
106
+ }, import("tailwind-variants").TVReturnType<unknown, {
107
+ container: string;
108
+ label: string;
109
+ containerList: string;
110
+ }, undefined, import("tailwind-variants/dist/config").TVConfig<unknown, {
111
+ [key: string]: {
112
+ [key: string]: import("tailwind-merge").ClassNameValue | {
113
+ label?: import("tailwind-merge").ClassNameValue;
114
+ container?: import("tailwind-merge").ClassNameValue;
115
+ containerList?: import("tailwind-merge").ClassNameValue;
116
+ };
117
+ };
118
+ } | {}>, unknown, unknown, undefined>>;
119
+ export declare const mostUsedItem: import("tailwind-variants").TVReturnType<{
120
+ [key: string]: {
121
+ [key: string]: import("tailwind-merge").ClassNameValue | {
122
+ title?: import("tailwind-merge").ClassNameValue;
123
+ container?: import("tailwind-merge").ClassNameValue;
124
+ category?: import("tailwind-merge").ClassNameValue;
125
+ };
126
+ };
127
+ } | {
128
+ [x: string]: {
129
+ [x: string]: import("tailwind-merge").ClassNameValue | {
130
+ title?: import("tailwind-merge").ClassNameValue;
131
+ container?: import("tailwind-merge").ClassNameValue;
132
+ category?: import("tailwind-merge").ClassNameValue;
133
+ };
134
+ };
135
+ } | {}, {
136
+ container: string;
137
+ title: string;
138
+ category: string;
139
+ }, undefined, import("tailwind-variants/dist/config").TVConfig<unknown, {
140
+ [key: string]: {
141
+ [key: string]: import("tailwind-merge").ClassNameValue | {
142
+ title?: import("tailwind-merge").ClassNameValue;
143
+ container?: import("tailwind-merge").ClassNameValue;
144
+ category?: import("tailwind-merge").ClassNameValue;
145
+ };
146
+ };
147
+ } | {}>, {
148
+ [key: string]: {
149
+ [key: string]: import("tailwind-merge").ClassNameValue | {
150
+ title?: import("tailwind-merge").ClassNameValue;
151
+ container?: import("tailwind-merge").ClassNameValue;
152
+ category?: import("tailwind-merge").ClassNameValue;
153
+ };
154
+ };
155
+ } | {}, {
156
+ container: string;
157
+ title: string;
158
+ category: string;
159
+ }, import("tailwind-variants").TVReturnType<unknown, {
160
+ container: string;
161
+ title: string;
162
+ category: string;
163
+ }, undefined, import("tailwind-variants/dist/config").TVConfig<unknown, {
164
+ [key: string]: {
165
+ [key: string]: import("tailwind-merge").ClassNameValue | {
166
+ title?: import("tailwind-merge").ClassNameValue;
167
+ container?: import("tailwind-merge").ClassNameValue;
168
+ category?: import("tailwind-merge").ClassNameValue;
169
+ };
170
+ };
171
+ } | {}>, unknown, unknown, undefined>>;
172
+ export declare const item: import("tailwind-variants").TVReturnType<{
173
+ [key: string]: {
174
+ [key: string]: import("tailwind-merge").ClassNameValue | {
175
+ text?: import("tailwind-merge").ClassNameValue;
176
+ container?: import("tailwind-merge").ClassNameValue;
177
+ icon?: import("tailwind-merge").ClassNameValue;
178
+ };
179
+ };
180
+ } | {
181
+ [x: string]: {
182
+ [x: string]: import("tailwind-merge").ClassNameValue | {
183
+ text?: import("tailwind-merge").ClassNameValue;
184
+ container?: import("tailwind-merge").ClassNameValue;
185
+ icon?: import("tailwind-merge").ClassNameValue;
186
+ };
187
+ };
188
+ } | {}, {
189
+ container: string;
190
+ text: string;
191
+ icon: string;
192
+ }, undefined, import("tailwind-variants/dist/config").TVConfig<unknown, {
193
+ [key: string]: {
194
+ [key: string]: import("tailwind-merge").ClassNameValue | {
195
+ text?: import("tailwind-merge").ClassNameValue;
196
+ container?: import("tailwind-merge").ClassNameValue;
197
+ icon?: import("tailwind-merge").ClassNameValue;
198
+ };
199
+ };
200
+ } | {}>, {
201
+ [key: string]: {
202
+ [key: string]: import("tailwind-merge").ClassNameValue | {
203
+ text?: import("tailwind-merge").ClassNameValue;
204
+ container?: import("tailwind-merge").ClassNameValue;
205
+ icon?: import("tailwind-merge").ClassNameValue;
206
+ };
207
+ };
208
+ } | {}, {
209
+ container: string;
210
+ text: string;
211
+ icon: string;
212
+ }, import("tailwind-variants").TVReturnType<unknown, {
213
+ container: string;
214
+ text: string;
215
+ icon: string;
216
+ }, undefined, import("tailwind-variants/dist/config").TVConfig<unknown, {
217
+ [key: string]: {
218
+ [key: string]: import("tailwind-merge").ClassNameValue | {
219
+ text?: import("tailwind-merge").ClassNameValue;
220
+ container?: import("tailwind-merge").ClassNameValue;
221
+ icon?: import("tailwind-merge").ClassNameValue;
222
+ };
223
+ };
224
+ } | {}>, unknown, unknown, undefined>>;
225
+ export declare const category: import("tailwind-variants").TVReturnType<{
226
+ [key: string]: {
227
+ [key: string]: import("tailwind-merge").ClassNameValue | {
228
+ hr?: import("tailwind-merge").ClassNameValue;
229
+ text?: import("tailwind-merge").ClassNameValue;
230
+ container?: import("tailwind-merge").ClassNameValue;
231
+ };
232
+ };
233
+ } | {
234
+ [x: string]: {
235
+ [x: string]: import("tailwind-merge").ClassNameValue | {
236
+ hr?: import("tailwind-merge").ClassNameValue;
237
+ text?: import("tailwind-merge").ClassNameValue;
238
+ container?: import("tailwind-merge").ClassNameValue;
239
+ };
240
+ };
241
+ } | {}, {
242
+ text: string;
243
+ hr: string;
244
+ container: string;
245
+ }, undefined, import("tailwind-variants/dist/config").TVConfig<unknown, {
246
+ [key: string]: {
247
+ [key: string]: import("tailwind-merge").ClassNameValue | {
248
+ hr?: import("tailwind-merge").ClassNameValue;
249
+ text?: import("tailwind-merge").ClassNameValue;
250
+ container?: import("tailwind-merge").ClassNameValue;
251
+ };
252
+ };
253
+ } | {}>, {
254
+ [key: string]: {
255
+ [key: string]: import("tailwind-merge").ClassNameValue | {
256
+ hr?: import("tailwind-merge").ClassNameValue;
257
+ text?: import("tailwind-merge").ClassNameValue;
258
+ container?: import("tailwind-merge").ClassNameValue;
259
+ };
260
+ };
261
+ } | {}, {
262
+ text: string;
263
+ hr: string;
264
+ container: string;
265
+ }, import("tailwind-variants").TVReturnType<unknown, {
266
+ text: string;
267
+ hr: string;
268
+ container: string;
269
+ }, undefined, import("tailwind-variants/dist/config").TVConfig<unknown, {
270
+ [key: string]: {
271
+ [key: string]: import("tailwind-merge").ClassNameValue | {
272
+ hr?: import("tailwind-merge").ClassNameValue;
273
+ text?: import("tailwind-merge").ClassNameValue;
274
+ container?: import("tailwind-merge").ClassNameValue;
275
+ };
276
+ };
277
+ } | {}>, unknown, unknown, undefined>>;
278
+ export declare const subItem: import("tailwind-variants").TVReturnType<{
279
+ [key: string]: {
280
+ [key: string]: import("tailwind-merge").ClassNameValue | {
281
+ container?: import("tailwind-merge").ClassNameValue;
282
+ };
283
+ };
284
+ } | {
285
+ [x: string]: {
286
+ [x: string]: import("tailwind-merge").ClassNameValue | {
287
+ container?: import("tailwind-merge").ClassNameValue;
288
+ };
289
+ };
290
+ } | {}, {
291
+ container: string;
292
+ }, undefined, import("tailwind-variants/dist/config").TVConfig<unknown, {
293
+ [key: string]: {
294
+ [key: string]: import("tailwind-merge").ClassNameValue | {
295
+ container?: import("tailwind-merge").ClassNameValue;
296
+ };
297
+ };
298
+ } | {}>, {
299
+ [key: string]: {
300
+ [key: string]: import("tailwind-merge").ClassNameValue | {
301
+ container?: import("tailwind-merge").ClassNameValue;
302
+ };
303
+ };
304
+ } | {}, {
305
+ container: string;
306
+ }, import("tailwind-variants").TVReturnType<unknown, {
307
+ container: string;
308
+ }, undefined, import("tailwind-variants/dist/config").TVConfig<unknown, {
309
+ [key: string]: {
310
+ [key: string]: import("tailwind-merge").ClassNameValue | {
311
+ container?: import("tailwind-merge").ClassNameValue;
312
+ };
313
+ };
314
+ } | {}>, unknown, unknown, undefined>>;
315
+ export declare const animate: import("tailwind-variants").TVReturnType<{
316
+ show: {
317
+ true: string;
318
+ false: string;
319
+ };
320
+ }, undefined, "transition-all ease-in-out duration-250", import("tailwind-variants/dist/config").TVConfig<{
321
+ show: {
322
+ true: string;
323
+ false: string;
324
+ };
325
+ }, {
326
+ show: {
327
+ true: string;
328
+ false: string;
329
+ };
330
+ }>, {
331
+ show: {
332
+ true: string;
333
+ false: string;
334
+ };
335
+ }, undefined, import("tailwind-variants").TVReturnType<{
336
+ show: {
337
+ true: string;
338
+ false: string;
339
+ };
340
+ }, undefined, "transition-all ease-in-out duration-250", import("tailwind-variants/dist/config").TVConfig<{
341
+ show: {
342
+ true: string;
343
+ false: string;
344
+ };
345
+ }, {
346
+ show: {
347
+ true: string;
348
+ false: string;
349
+ };
350
+ }>, 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';
@@ -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
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tecsinapse/cortex-react",
3
- "version": "1.3.0-beta.1",
3
+ "version": "1.3.0-beta.11",
4
4
  "description": "React components based in @tecsinapse/cortex-core",
5
5
  "license": "MIT",
6
6
  "main": "dist/esm/index.js",
@@ -18,12 +18,15 @@
18
18
  "test:watch": "jest --watch"
19
19
  },
20
20
  "dependencies": {
21
- "@tecsinapse/cortex-core": "0.2.2-beta.2",
21
+ "@floating-ui/react": "^0.26.18",
22
+ "@internationalized/date": "*",
23
+ "@tecsinapse/cortex-core": "0.3.0-beta.5",
22
24
  "clsx": "*",
23
25
  "react-aria": "^3.33.1",
24
26
  "react-icons": "^5.2.1",
25
27
  "react-stately": "^3.31.1",
26
- "sonner": "^1.5.0"
28
+ "sonner": "^1.5.0",
29
+ "tailwind-merge": "*"
27
30
  },
28
31
  "repository": {
29
32
  "type": "git",
@@ -39,5 +42,5 @@
39
42
  "react-dom": ">=18.0.0",
40
43
  "tailwind": ">=3.3.0"
41
44
  },
42
- "gitHead": "db686bfbca61f00d03a355fbb00cfa88646b68ed"
45
+ "gitHead": "95c7d9f718b4ec1c8ba8a537e7edb139aa8c1fd4"
43
46
  }
@@ -1,81 +0,0 @@
1
- 'use strict';
2
-
3
- var cortexCore = require('@tecsinapse/cortex-core');
4
- var clsx = require('clsx');
5
- var React = require('react');
6
-
7
- const getValidChildren = (children) => {
8
- return React.Children.toArray(children).filter(
9
- (el) => React.isValidElement(el)
10
- );
11
- };
12
- const Box = React.forwardRef(
13
- ({ id, name, variants, label, placeholder, className, ...rest }, ref) => {
14
- return /* @__PURE__ */ React.createElement("div", { className: "flex w-full flex-col" }, /* @__PURE__ */ React.createElement(
15
- "input",
16
- {
17
- id: id ?? name,
18
- name,
19
- placeholder: placeholder ?? " ",
20
- className: clsx.clsx(cortexCore.inputBox(placeholder, label, className)),
21
- ...rest,
22
- ref,
23
- "data-testid": "input-input"
24
- }
25
- ), /* @__PURE__ */ React.createElement(
26
- "label",
27
- {
28
- htmlFor: id ?? name,
29
- className: cortexCore.labelStyle({ intent: variants?.intent, placeholder }),
30
- "data-testid": "input-label"
31
- },
32
- label
33
- ));
34
- }
35
- );
36
- const Face = React.forwardRef(
37
- ({ children, variants, className, ...rest }, ref) => {
38
- const clones = getValidChildren(children).map((el) => {
39
- return React.cloneElement(el, { ...el.props, variants });
40
- });
41
- return /* @__PURE__ */ React.createElement(
42
- "div",
43
- {
44
- ...rest,
45
- className: clsx.clsx(cortexCore.input(variants), className),
46
- id: "input-face",
47
- ref
48
- },
49
- clones
50
- );
51
- }
52
- );
53
- const Root = React.forwardRef(
54
- ({ variants, className, ...rest }, ref) => {
55
- return /* @__PURE__ */ React.createElement(Face, { variants, className }, /* @__PURE__ */ React.createElement(Box, { ...rest, ref }));
56
- }
57
- );
58
- const Left = React.forwardRef(
59
- ({ children, className, ...rest }, ref) => {
60
- return /* @__PURE__ */ React.createElement("div", { className: clsx.clsx(className, "mr-2.5"), ...rest, ref }, children);
61
- }
62
- );
63
- const Right = React.forwardRef(
64
- ({ children, className, ...rest }, ref) => {
65
- return /* @__PURE__ */ React.createElement("div", { className: clsx.clsx(className, "ml-2.5"), ...rest, ref }, children);
66
- }
67
- );
68
- const Input = {
69
- Root,
70
- Face,
71
- Box,
72
- Left,
73
- Right
74
- };
75
-
76
- exports.Box = Box;
77
- exports.Face = Face;
78
- exports.Input = Input;
79
- exports.Left = Left;
80
- exports.Right = Right;
81
- exports.Root = Root;