@tecsinapse/cortex-react 1.3.0-beta.2 → 1.3.0-beta.21
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/Calendar.js +1 -0
- package/dist/cjs/components/CalendarCell.js +1 -0
- package/dist/cjs/components/CalendarGrid.js +1 -0
- package/dist/cjs/components/DatePickerInput.js +1 -0
- package/dist/cjs/components/DatePickerInputBase.js +2 -2
- package/dist/cjs/components/DateRangePickerInput.js +1 -0
- package/dist/cjs/components/Divider.js +10 -0
- package/dist/cjs/components/Input/Box.js +32 -0
- package/dist/cjs/components/Input/Face.js +30 -0
- package/dist/cjs/components/Input/Left.js +12 -0
- package/dist/cjs/components/Input/Mask.js +53 -0
- package/dist/cjs/components/Input/Right.js +12 -0
- package/dist/cjs/components/Input/Root.js +13 -0
- package/dist/cjs/components/Input/Search.js +25 -0
- package/dist/cjs/components/Input/index.js +23 -0
- 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 +25 -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 +63 -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/Content.js +31 -0
- 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/RadioButton.js +22 -0
- package/dist/cjs/components/RangeCalendar.js +1 -0
- package/dist/cjs/components/Select/Content.js +21 -0
- package/dist/cjs/components/Select/GroupedOptions.js +7 -4
- package/dist/cjs/components/Select/MultiCheckAllOptions.js +47 -0
- package/dist/cjs/components/Select/MultiGroupedOptions.js +44 -0
- package/dist/cjs/components/Select/MultiOption.js +43 -0
- package/dist/cjs/components/Select/MultiOptions.js +26 -0
- package/dist/cjs/components/Select/Option.js +4 -2
- package/dist/cjs/components/Select/Options.js +7 -3
- package/dist/cjs/components/Select/Popover.js +2 -5
- package/dist/cjs/components/Select/Root.js +3 -17
- package/dist/cjs/components/Select/Trigger.js +10 -8
- package/dist/cjs/components/Select/context.js +4 -0
- package/dist/cjs/components/Select/index.js +9 -1
- package/dist/cjs/components/Select/utils.js +16 -0
- package/dist/cjs/components/TimeFieldInput.js +2 -2
- package/dist/cjs/components/Tooltip.js +55 -0
- package/dist/cjs/components/utils.js +5 -0
- package/dist/cjs/hooks/useFloatingLogic.js +53 -0
- package/dist/cjs/index.js +30 -27
- package/dist/cjs/provider/MenubarProvider.js +22 -0
- package/dist/cjs/provider/SnackbarProvider.js +56 -0
- package/dist/cjs/service/SnackbarSonner.js +25 -5
- package/dist/cjs/styles/menubar.js +70 -0
- package/dist/esm/components/Calendar.js +1 -0
- package/dist/esm/components/CalendarCell.js +1 -0
- package/dist/esm/components/CalendarGrid.js +1 -0
- package/dist/esm/components/DatePickerInput.js +1 -0
- package/dist/esm/components/DatePickerInputBase.js +1 -1
- package/dist/esm/components/DateRangePickerInput.js +1 -0
- package/dist/esm/components/Divider.js +8 -0
- package/dist/esm/components/Input/Box.js +30 -0
- package/dist/esm/components/Input/Face.js +28 -0
- package/dist/esm/components/Input/Left.js +10 -0
- package/dist/esm/components/Input/Mask.js +49 -0
- package/dist/esm/components/Input/Right.js +10 -0
- package/dist/esm/components/Input/Root.js +11 -0
- package/dist/esm/components/Input/Search.js +23 -0
- package/dist/esm/components/Input/index.js +21 -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 +23 -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 +61 -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/Content.js +29 -0
- 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/Trigger.js +9 -0
- package/dist/esm/components/Popover/index.js +13 -0
- package/dist/esm/components/RadioButton.js +20 -0
- package/dist/esm/components/RangeCalendar.js +1 -0
- package/dist/esm/components/Select/Content.js +19 -0
- package/dist/esm/components/Select/GroupedOptions.js +7 -4
- package/dist/esm/components/Select/MultiCheckAllOptions.js +45 -0
- package/dist/esm/components/Select/MultiGroupedOptions.js +42 -0
- package/dist/esm/components/Select/MultiOption.js +41 -0
- package/dist/esm/components/Select/MultiOptions.js +24 -0
- package/dist/esm/components/Select/Option.js +4 -2
- package/dist/esm/components/Select/Options.js +7 -3
- package/dist/esm/components/Select/Popover.js +3 -6
- package/dist/esm/components/Select/Root.js +4 -18
- package/dist/esm/components/Select/Trigger.js +10 -8
- package/dist/esm/components/Select/context.js +4 -1
- package/dist/esm/components/Select/index.js +9 -1
- package/dist/esm/components/Select/utils.js +14 -0
- package/dist/esm/components/TimeFieldInput.js +1 -1
- package/dist/esm/components/Tooltip.js +50 -0
- package/dist/esm/components/utils.js +5 -1
- package/dist/esm/hooks/useFloatingLogic.js +51 -0
- package/dist/esm/index.js +14 -12
- package/dist/esm/provider/MenubarProvider.js +19 -0
- package/dist/esm/provider/SnackbarProvider.js +54 -0
- package/dist/esm/service/SnackbarSonner.js +25 -5
- package/dist/esm/styles/menubar.js +62 -0
- package/dist/types/components/Card.d.ts +3 -4
- package/dist/types/components/Divider.d.ts +5 -0
- package/dist/types/components/Drawer.d.ts +1 -2
- package/dist/types/components/Input/Box.d.ts +3 -0
- package/dist/types/components/Input/Face.d.ts +3 -0
- package/dist/types/components/Input/Left.d.ts +3 -0
- package/dist/types/components/Input/Mask.d.ts +5 -0
- package/dist/types/components/Input/Right.d.ts +3 -0
- package/dist/types/components/Input/Root.d.ts +3 -0
- package/dist/types/components/Input/Search.d.ts +3 -0
- package/dist/types/components/Input/index.d.ts +12 -0
- package/dist/types/components/Input/types.d.ts +27 -0
- 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/Context.d.ts +18 -0
- package/dist/types/components/Popover/Provider.d.ts +8 -0
- package/dist/types/components/Popover/Root.d.ts +8 -0
- package/dist/types/components/Popover/Trigger.d.ts +5 -0
- package/dist/types/components/Popover/index.d.ts +6 -0
- package/dist/types/components/RadioButton.d.ts +6 -0
- package/dist/types/components/SearchInput.d.ts +0 -11
- package/dist/types/components/Select/Content.d.ts +6 -0
- package/dist/types/components/Select/MultiCheckAllOptions.d.ts +4 -0
- package/dist/types/components/Select/MultiGroupedOptions.d.ts +8 -0
- package/dist/types/components/Select/MultiOption.d.ts +6 -0
- package/dist/types/components/Select/MultiOptions.d.ts +7 -0
- package/dist/types/components/Select/Option.d.ts +2 -1
- package/dist/types/components/Select/Root.d.ts +1 -1
- package/dist/types/components/Select/context.d.ts +6 -4
- package/dist/types/components/Select/index.d.ts +5 -1
- package/dist/types/components/Select/utils.d.ts +1 -0
- package/dist/types/components/Tooltip.d.ts +13 -0
- package/dist/types/components/index.d.ts +5 -1
- package/dist/types/components/utils.d.ts +2 -0
- package/dist/types/hooks/index.d.ts +1 -0
- package/dist/types/hooks/useFloatingLogic.d.ts +46 -0
- 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 +350 -0
- package/dist/types/tests/Input/Face.test.d.ts +1 -0
- package/dist/types/tests/Input/Left.test.d.ts +1 -0
- package/dist/types/tests/Input/Mask.test.d.ts +1 -0
- package/dist/types/tests/Input/Right.test.d.ts +1 -0
- package/dist/types/tests/Input/Root.test.d.ts +1 -0
- package/dist/types/tests/Input/Search.test.d.ts +1 -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/dist/types/tests/Popover.test.d.ts +1 -0
- package/dist/types/tests/RadioButton.test.d.ts +1 -0
- package/dist/types/tests/Tooltip.test.d.ts +1 -0
- package/package.json +5 -3
- package/dist/cjs/components/Input.js +0 -81
- package/dist/esm/components/Input.js +0 -74
- package/dist/types/components/Input.d.ts +0 -34
- /package/dist/types/tests/{Input.test.d.ts → Divider.test.d.ts} +0 -0
- /package/dist/types/tests/{SearchInput.test.d.ts → Input/Box.test.d.ts} +0 -0
|
@@ -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
|
+
header: 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
|
+
header: 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
|
+
header: 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
|
+
export {};
|
|
@@ -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';
|
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.21",
|
|
4
4
|
"description": "React components based in @tecsinapse/cortex-core",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/esm/index.js",
|
|
@@ -18,11 +18,13 @@
|
|
|
18
18
|
"test:watch": "jest --watch"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
+
"@floating-ui/react": "^0.26.18",
|
|
21
22
|
"@internationalized/date": "*",
|
|
22
|
-
"@tecsinapse/cortex-core": "0.3.0-beta.
|
|
23
|
+
"@tecsinapse/cortex-core": "0.3.0-beta.12",
|
|
23
24
|
"clsx": "*",
|
|
24
25
|
"react-aria": "^3.33.1",
|
|
25
26
|
"react-icons": "^5.2.1",
|
|
27
|
+
"react-imask": "7.6.1",
|
|
26
28
|
"react-stately": "^3.31.1",
|
|
27
29
|
"sonner": "^1.5.0",
|
|
28
30
|
"tailwind-merge": "*"
|
|
@@ -41,5 +43,5 @@
|
|
|
41
43
|
"react-dom": ">=18.0.0",
|
|
42
44
|
"tailwind": ">=3.3.0"
|
|
43
45
|
},
|
|
44
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "c6722ce5d39bf6f0152ce2041106b511947edee9"
|
|
45
47
|
}
|
|
@@ -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 InputBox = 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 InputFace = 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 InputRoot = React.forwardRef(
|
|
54
|
-
({ variants, className, ...rest }, ref) => {
|
|
55
|
-
return /* @__PURE__ */ React.createElement(InputFace, { variants, className }, /* @__PURE__ */ React.createElement(InputBox, { ...rest, ref }));
|
|
56
|
-
}
|
|
57
|
-
);
|
|
58
|
-
const InputLeft = 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 InputRight = 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: InputRoot,
|
|
70
|
-
Face: InputFace,
|
|
71
|
-
Box: InputBox,
|
|
72
|
-
Left: InputLeft,
|
|
73
|
-
Right: InputRight
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
exports.Input = Input;
|
|
77
|
-
exports.InputBox = InputBox;
|
|
78
|
-
exports.InputFace = InputFace;
|
|
79
|
-
exports.InputLeft = InputLeft;
|
|
80
|
-
exports.InputRight = InputRight;
|
|
81
|
-
exports.InputRoot = InputRoot;
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { inputBox, labelStyle, input } from '@tecsinapse/cortex-core';
|
|
2
|
-
import { clsx } from 'clsx';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
|
|
5
|
-
const getValidChildren = (children) => {
|
|
6
|
-
return React.Children.toArray(children).filter(
|
|
7
|
-
(el) => React.isValidElement(el)
|
|
8
|
-
);
|
|
9
|
-
};
|
|
10
|
-
const InputBox = React.forwardRef(
|
|
11
|
-
({ id, name, variants, label, placeholder, className, ...rest }, ref) => {
|
|
12
|
-
return /* @__PURE__ */ React.createElement("div", { className: "flex w-full flex-col" }, /* @__PURE__ */ React.createElement(
|
|
13
|
-
"input",
|
|
14
|
-
{
|
|
15
|
-
id: id ?? name,
|
|
16
|
-
name,
|
|
17
|
-
placeholder: placeholder ?? " ",
|
|
18
|
-
className: clsx(inputBox(placeholder, label, className)),
|
|
19
|
-
...rest,
|
|
20
|
-
ref,
|
|
21
|
-
"data-testid": "input-input"
|
|
22
|
-
}
|
|
23
|
-
), /* @__PURE__ */ React.createElement(
|
|
24
|
-
"label",
|
|
25
|
-
{
|
|
26
|
-
htmlFor: id ?? name,
|
|
27
|
-
className: labelStyle({ intent: variants?.intent, placeholder }),
|
|
28
|
-
"data-testid": "input-label"
|
|
29
|
-
},
|
|
30
|
-
label
|
|
31
|
-
));
|
|
32
|
-
}
|
|
33
|
-
);
|
|
34
|
-
const InputFace = React.forwardRef(
|
|
35
|
-
({ children, variants, className, ...rest }, ref) => {
|
|
36
|
-
const clones = getValidChildren(children).map((el) => {
|
|
37
|
-
return React.cloneElement(el, { ...el.props, variants });
|
|
38
|
-
});
|
|
39
|
-
return /* @__PURE__ */ React.createElement(
|
|
40
|
-
"div",
|
|
41
|
-
{
|
|
42
|
-
...rest,
|
|
43
|
-
className: clsx(input(variants), className),
|
|
44
|
-
id: "input-face",
|
|
45
|
-
ref
|
|
46
|
-
},
|
|
47
|
-
clones
|
|
48
|
-
);
|
|
49
|
-
}
|
|
50
|
-
);
|
|
51
|
-
const InputRoot = React.forwardRef(
|
|
52
|
-
({ variants, className, ...rest }, ref) => {
|
|
53
|
-
return /* @__PURE__ */ React.createElement(InputFace, { variants, className }, /* @__PURE__ */ React.createElement(InputBox, { ...rest, ref }));
|
|
54
|
-
}
|
|
55
|
-
);
|
|
56
|
-
const InputLeft = React.forwardRef(
|
|
57
|
-
({ children, className, ...rest }, ref) => {
|
|
58
|
-
return /* @__PURE__ */ React.createElement("div", { className: clsx(className, "mr-2.5"), ...rest, ref }, children);
|
|
59
|
-
}
|
|
60
|
-
);
|
|
61
|
-
const InputRight = React.forwardRef(
|
|
62
|
-
({ children, className, ...rest }, ref) => {
|
|
63
|
-
return /* @__PURE__ */ React.createElement("div", { className: clsx(className, "ml-2.5"), ...rest, ref }, children);
|
|
64
|
-
}
|
|
65
|
-
);
|
|
66
|
-
const Input = {
|
|
67
|
-
Root: InputRoot,
|
|
68
|
-
Face: InputFace,
|
|
69
|
-
Box: InputBox,
|
|
70
|
-
Left: InputLeft,
|
|
71
|
-
Right: InputRight
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
export { Input, InputBox, InputFace, InputLeft, InputRight, InputRoot };
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { InputBaseVariants } from '@tecsinapse/cortex-core';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
export interface InputPropsBase {
|
|
4
|
-
variants?: InputBaseVariants;
|
|
5
|
-
label?: string;
|
|
6
|
-
}
|
|
7
|
-
export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement>, InputPropsBase {
|
|
8
|
-
}
|
|
9
|
-
export declare const InputBox: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
10
|
-
type DivBaseProps = React.HTMLAttributes<HTMLDivElement>;
|
|
11
|
-
export declare const InputFace: React.ForwardRefExoticComponent<DivBaseProps & Pick<InputPropsBase, "variants"> & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
-
export declare const InputRoot: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
13
|
-
export declare const InputLeft: React.ForwardRefExoticComponent<DivBaseProps & {
|
|
14
|
-
children: React.ReactNode;
|
|
15
|
-
className?: string | undefined;
|
|
16
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
-
export declare const InputRight: React.ForwardRefExoticComponent<DivBaseProps & {
|
|
18
|
-
children: React.ReactNode;
|
|
19
|
-
className?: string | undefined;
|
|
20
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
|
21
|
-
export declare const Input: {
|
|
22
|
-
Root: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
23
|
-
Face: React.ForwardRefExoticComponent<DivBaseProps & Pick<InputPropsBase, "variants"> & React.RefAttributes<HTMLDivElement>>;
|
|
24
|
-
Box: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
25
|
-
Left: React.ForwardRefExoticComponent<DivBaseProps & {
|
|
26
|
-
children: React.ReactNode;
|
|
27
|
-
className?: string | undefined;
|
|
28
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
|
29
|
-
Right: React.ForwardRefExoticComponent<DivBaseProps & {
|
|
30
|
-
children: React.ReactNode;
|
|
31
|
-
className?: string | undefined;
|
|
32
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
|
33
|
-
};
|
|
34
|
-
export {};
|
|
File without changes
|
|
File without changes
|