@tecsinapse/cortex-react 1.2.2 → 1.3.0-beta.0

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 (150) hide show
  1. package/dist/cjs/components/Avatar.js +3 -2
  2. package/dist/cjs/components/BaseSnackbar.js +13 -0
  3. package/dist/cjs/components/BreadcrumbItem.js +2 -1
  4. package/dist/cjs/components/Breadcrumbs.js +1 -1
  5. package/dist/cjs/components/Button.js +10 -1
  6. package/dist/cjs/components/Calendar.js +22 -0
  7. package/dist/cjs/components/CalendarCell.js +51 -0
  8. package/dist/cjs/components/CalendarGrid.js +23 -0
  9. package/dist/cjs/components/CalendarGridBodyRows.js +12 -0
  10. package/dist/cjs/components/CalendarGridHeaderRow.js +12 -0
  11. package/dist/cjs/components/CalendarHeader.js +40 -0
  12. package/dist/cjs/components/Card.js +1 -1
  13. package/dist/cjs/components/DateSegment.js +12 -0
  14. package/dist/cjs/components/DefaultSnack.js +27 -0
  15. package/dist/cjs/components/Drawer.js +3 -1
  16. package/dist/cjs/components/GroupButton.js +43 -0
  17. package/dist/cjs/components/Input.js +5 -3
  18. package/dist/cjs/components/Modal.js +6 -13
  19. package/dist/cjs/components/ProgressBar.js +71 -0
  20. package/dist/cjs/components/RangeCalendar.js +44 -0
  21. package/dist/cjs/components/SearchInput.js +19 -9
  22. package/dist/cjs/components/Select.js +4 -4
  23. package/dist/cjs/components/Skeleton.js +4 -1
  24. package/dist/cjs/components/Table.js +8 -14
  25. package/dist/cjs/components/TextArea.js +2 -0
  26. package/dist/cjs/components/TimeField.js +12 -0
  27. package/dist/cjs/components/TimeFieldInput.js +22 -0
  28. package/dist/cjs/components/Toggle.js +17 -9
  29. package/dist/cjs/components/utils.js +5 -4
  30. package/dist/cjs/hooks/useCalendar.js +27 -0
  31. package/dist/cjs/hooks/useCalendarCell.js +35 -0
  32. package/dist/cjs/hooks/useCalendarGrid.js +14 -0
  33. package/dist/cjs/hooks/useTimeField.js +32 -0
  34. package/dist/cjs/index.js +37 -16
  35. package/dist/cjs/service/SnackbarSonner.js +54 -0
  36. package/dist/cjs/styles/calendar-cell.js +40 -0
  37. package/dist/cjs/styles/groupButton.js +16 -0
  38. package/dist/cjs/styles/progressBar.js +21 -0
  39. package/dist/esm/components/Avatar.js +4 -3
  40. package/dist/esm/components/BaseSnackbar.js +11 -0
  41. package/dist/esm/components/BreadcrumbItem.js +2 -1
  42. package/dist/esm/components/Breadcrumbs.js +1 -1
  43. package/dist/esm/components/Button.js +10 -1
  44. package/dist/esm/components/Calendar.js +20 -0
  45. package/dist/esm/components/CalendarCell.js +49 -0
  46. package/dist/esm/components/CalendarGrid.js +21 -0
  47. package/dist/esm/components/CalendarGridBodyRows.js +10 -0
  48. package/dist/esm/components/CalendarGridHeaderRow.js +10 -0
  49. package/dist/esm/components/CalendarHeader.js +38 -0
  50. package/dist/esm/components/Card.js +1 -1
  51. package/dist/esm/components/DateSegment.js +10 -0
  52. package/dist/esm/components/DefaultSnack.js +25 -0
  53. package/dist/esm/components/Drawer.js +3 -1
  54. package/dist/esm/components/GroupButton.js +41 -0
  55. package/dist/esm/components/Input.js +5 -3
  56. package/dist/esm/components/Modal.js +6 -13
  57. package/dist/esm/components/ProgressBar.js +69 -0
  58. package/dist/esm/components/RangeCalendar.js +42 -0
  59. package/dist/esm/components/SearchInput.js +19 -9
  60. package/dist/esm/components/Select.js +4 -4
  61. package/dist/esm/components/Skeleton.js +4 -1
  62. package/dist/esm/components/Table.js +9 -14
  63. package/dist/esm/components/TextArea.js +2 -0
  64. package/dist/esm/components/TimeField.js +10 -0
  65. package/dist/esm/components/TimeFieldInput.js +20 -0
  66. package/dist/esm/components/Toggle.js +17 -9
  67. package/dist/esm/components/utils.js +5 -4
  68. package/dist/esm/hooks/useCalendar.js +25 -0
  69. package/dist/esm/hooks/useCalendarCell.js +33 -0
  70. package/dist/esm/hooks/useCalendarGrid.js +12 -0
  71. package/dist/esm/hooks/useTimeField.js +30 -0
  72. package/dist/esm/index.js +18 -7
  73. package/dist/esm/service/SnackbarSonner.js +52 -0
  74. package/dist/esm/styles/calendar-cell.js +38 -0
  75. package/dist/esm/styles/groupButton.js +14 -0
  76. package/dist/esm/styles/progressBar.js +19 -0
  77. package/dist/types/components/BaseSnackbar.d.ts +9 -0
  78. package/dist/types/components/BreadcrumbItem.d.ts +1 -3
  79. package/dist/types/components/Calendar.d.ts +6 -0
  80. package/dist/types/components/CalendarCell.d.ts +8 -0
  81. package/dist/types/components/CalendarGrid.d.ts +6 -0
  82. package/dist/types/components/CalendarGridBodyRows.d.ts +6 -0
  83. package/dist/types/components/CalendarGridHeaderRow.d.ts +5 -0
  84. package/dist/types/components/CalendarHeader.d.ts +6 -0
  85. package/dist/types/components/DateSegment.d.ts +7 -0
  86. package/dist/types/components/DefaultSnack.d.ts +6 -0
  87. package/dist/types/components/Drawer.d.ts +1 -1
  88. package/dist/types/components/GroupButton.d.ts +19 -0
  89. package/dist/types/components/Input.d.ts +2 -2
  90. package/dist/types/components/Modal.d.ts +2 -2
  91. package/dist/types/components/ProgressBar.d.ts +9 -0
  92. package/dist/types/components/RangeCalendar.d.ts +10 -0
  93. package/dist/types/components/SearchInput.d.ts +0 -1
  94. package/dist/types/components/Select.d.ts +0 -1
  95. package/dist/types/components/Skeleton.d.ts +4 -2
  96. package/dist/types/components/Table.d.ts +0 -1
  97. package/dist/types/components/TimeField.d.ts +7 -0
  98. package/dist/types/components/TimeFieldInput.d.ts +10 -0
  99. package/dist/types/components/index.d.ts +13 -7
  100. package/dist/types/components/utils.d.ts +1 -1
  101. package/dist/types/hooks/index.d.ts +3 -0
  102. package/dist/types/hooks/useCalendar.d.ts +10 -0
  103. package/dist/types/hooks/useCalendarCell.d.ts +18 -0
  104. package/dist/types/hooks/useCalendarGrid.d.ts +10 -0
  105. package/dist/types/hooks/useTimeField.d.ts +7 -0
  106. package/dist/types/index.d.ts +2 -0
  107. package/dist/types/provider/SnackbarProvider.d.ts +10 -0
  108. package/dist/types/service/ISnackbar.d.ts +7 -0
  109. package/dist/types/service/SnackbarSonner.d.ts +7 -0
  110. package/dist/types/service/index.d.ts +2 -0
  111. package/dist/types/styles/calendar-cell.d.ts +199 -0
  112. package/dist/types/styles/groupButton.d.ts +77 -0
  113. package/dist/types/styles/index.d.ts +3 -0
  114. package/dist/types/styles/progressBar.d.ts +78 -0
  115. package/dist/types/tests/Avatar.test.d.ts +1 -0
  116. package/dist/types/tests/Badge.test.d.ts +1 -0
  117. package/dist/types/tests/BreadcrumbItem.test.d.ts +1 -0
  118. package/dist/types/tests/Breadcrumbs.test.d.ts +1 -0
  119. package/dist/types/tests/Button.test.d.ts +1 -0
  120. package/dist/types/tests/Calendar.test.d.ts +1 -0
  121. package/dist/types/tests/CalendarCell.test.d.ts +1 -0
  122. package/dist/types/tests/CalendarGridBodyRows.test.d.ts +1 -0
  123. package/dist/types/tests/CalendarGridHeaderRow.test.d.ts +1 -0
  124. package/dist/types/tests/CalendarHeader.test.d.ts +1 -0
  125. package/dist/types/tests/Card.test.d.ts +1 -0
  126. package/dist/types/tests/DateSegment.test.d.ts +1 -0
  127. package/dist/types/tests/DefaultSnack.test.d.ts +1 -0
  128. package/dist/types/tests/Drawer.test.d.ts +1 -0
  129. package/dist/types/tests/GroupButton.test.d.ts +1 -0
  130. package/dist/types/tests/Hint.test.d.ts +1 -0
  131. package/dist/types/tests/Input.test.d.ts +1 -0
  132. package/dist/types/tests/Modal.test.d.ts +1 -0
  133. package/dist/types/tests/ProgressBar.test.d.ts +1 -0
  134. package/dist/types/tests/SearchInput.test.d.ts +1 -0
  135. package/dist/types/tests/Select.test.d.ts +1 -0
  136. package/dist/types/tests/Skeleton.test.d.ts +1 -0
  137. package/dist/types/tests/Snackbar.test.d.ts +1 -0
  138. package/dist/types/tests/Table.test.d.ts +1 -0
  139. package/dist/types/tests/Tag.test.d.ts +1 -0
  140. package/dist/types/tests/TextArea.test.d.ts +1 -0
  141. package/dist/types/tests/TimeField.test.d.ts +1 -0
  142. package/dist/types/tests/TimeFieldInput.test.d.ts +1 -0
  143. package/dist/types/tests/Toggle.test.d.ts +1 -0
  144. package/dist/types/tests/useCalendarCell.test.d.ts +1 -0
  145. package/dist/types/tests/useDebouncedState.test.d.ts +1 -0
  146. package/dist/types/tests/utils.test.d.ts +1 -0
  147. package/package.json +10 -5
  148. package/dist/cjs/components/Snackbar.js +0 -18
  149. package/dist/esm/components/Snackbar.js +0 -16
  150. package/dist/types/components/Snackbar.d.ts +0 -9
@@ -0,0 +1,199 @@
1
+ export declare const calendarCell: import("tailwind-variants").TVReturnType<{
2
+ isSelected: {
3
+ true: {
4
+ cell: string;
5
+ };
6
+ };
7
+ isSelectionStart: {
8
+ true: {
9
+ cell: string;
10
+ };
11
+ };
12
+ isSelectionEnd: {
13
+ true: {
14
+ cell: string;
15
+ };
16
+ };
17
+ inRange: {
18
+ true: {
19
+ cell: string;
20
+ };
21
+ };
22
+ isOutsideVisibleRange: {
23
+ true: {
24
+ cell: string;
25
+ button: string;
26
+ };
27
+ };
28
+ }, {
29
+ cell: string;
30
+ button: string;
31
+ }, undefined, import("tailwind-variants/dist/config").TVConfig<{
32
+ isSelected: {
33
+ true: {
34
+ cell: string;
35
+ };
36
+ };
37
+ isSelectionStart: {
38
+ true: {
39
+ cell: string;
40
+ };
41
+ };
42
+ isSelectionEnd: {
43
+ true: {
44
+ cell: string;
45
+ };
46
+ };
47
+ inRange: {
48
+ true: {
49
+ cell: string;
50
+ };
51
+ };
52
+ isOutsideVisibleRange: {
53
+ true: {
54
+ cell: string;
55
+ button: string;
56
+ };
57
+ };
58
+ }, {
59
+ isSelected: {
60
+ true: {
61
+ cell: string;
62
+ };
63
+ };
64
+ isSelectionStart: {
65
+ true: {
66
+ cell: string;
67
+ };
68
+ };
69
+ isSelectionEnd: {
70
+ true: {
71
+ cell: string;
72
+ };
73
+ };
74
+ inRange: {
75
+ true: {
76
+ cell: string;
77
+ };
78
+ };
79
+ isOutsideVisibleRange: {
80
+ true: {
81
+ cell: string;
82
+ button: string;
83
+ };
84
+ };
85
+ }>, {
86
+ isSelected: {
87
+ true: {
88
+ cell: string;
89
+ };
90
+ };
91
+ isSelectionStart: {
92
+ true: {
93
+ cell: string;
94
+ };
95
+ };
96
+ isSelectionEnd: {
97
+ true: {
98
+ cell: string;
99
+ };
100
+ };
101
+ inRange: {
102
+ true: {
103
+ cell: string;
104
+ };
105
+ };
106
+ isOutsideVisibleRange: {
107
+ true: {
108
+ cell: string;
109
+ button: string;
110
+ };
111
+ };
112
+ }, {
113
+ cell: string;
114
+ button: string;
115
+ }, import("tailwind-variants").TVReturnType<{
116
+ isSelected: {
117
+ true: {
118
+ cell: string;
119
+ };
120
+ };
121
+ isSelectionStart: {
122
+ true: {
123
+ cell: string;
124
+ };
125
+ };
126
+ isSelectionEnd: {
127
+ true: {
128
+ cell: string;
129
+ };
130
+ };
131
+ inRange: {
132
+ true: {
133
+ cell: string;
134
+ };
135
+ };
136
+ isOutsideVisibleRange: {
137
+ true: {
138
+ cell: string;
139
+ button: string;
140
+ };
141
+ };
142
+ }, {
143
+ cell: string;
144
+ button: string;
145
+ }, undefined, import("tailwind-variants/dist/config").TVConfig<{
146
+ isSelected: {
147
+ true: {
148
+ cell: string;
149
+ };
150
+ };
151
+ isSelectionStart: {
152
+ true: {
153
+ cell: string;
154
+ };
155
+ };
156
+ isSelectionEnd: {
157
+ true: {
158
+ cell: string;
159
+ };
160
+ };
161
+ inRange: {
162
+ true: {
163
+ cell: string;
164
+ };
165
+ };
166
+ isOutsideVisibleRange: {
167
+ true: {
168
+ cell: string;
169
+ button: string;
170
+ };
171
+ };
172
+ }, {
173
+ isSelected: {
174
+ true: {
175
+ cell: string;
176
+ };
177
+ };
178
+ isSelectionStart: {
179
+ true: {
180
+ cell: string;
181
+ };
182
+ };
183
+ isSelectionEnd: {
184
+ true: {
185
+ cell: string;
186
+ };
187
+ };
188
+ inRange: {
189
+ true: {
190
+ cell: string;
191
+ };
192
+ };
193
+ isOutsideVisibleRange: {
194
+ true: {
195
+ cell: string;
196
+ button: string;
197
+ };
198
+ };
199
+ }>, unknown, unknown, undefined>>;
@@ -0,0 +1,77 @@
1
+ export declare const groupButton: import("tailwind-variants").TVReturnType<{
2
+ [key: string]: {
3
+ [key: string]: import("tailwind-merge").ClassNameValue | {
4
+ button?: import("tailwind-merge").ClassNameValue;
5
+ inactive?: import("tailwind-merge").ClassNameValue;
6
+ firstButton?: import("tailwind-merge").ClassNameValue;
7
+ lastButton?: import("tailwind-merge").ClassNameValue;
8
+ container?: import("tailwind-merge").ClassNameValue;
9
+ active?: import("tailwind-merge").ClassNameValue;
10
+ };
11
+ };
12
+ } | {
13
+ [x: string]: {
14
+ [x: string]: import("tailwind-merge").ClassNameValue | {
15
+ button?: import("tailwind-merge").ClassNameValue;
16
+ inactive?: import("tailwind-merge").ClassNameValue;
17
+ firstButton?: import("tailwind-merge").ClassNameValue;
18
+ lastButton?: import("tailwind-merge").ClassNameValue;
19
+ container?: import("tailwind-merge").ClassNameValue;
20
+ active?: import("tailwind-merge").ClassNameValue;
21
+ };
22
+ };
23
+ } | {}, {
24
+ button: string;
25
+ inactive: string;
26
+ firstButton: string;
27
+ lastButton: string;
28
+ container: string;
29
+ active: string;
30
+ }, undefined, import("tailwind-variants/dist/config").TVConfig<unknown, {
31
+ [key: string]: {
32
+ [key: string]: import("tailwind-merge").ClassNameValue | {
33
+ button?: import("tailwind-merge").ClassNameValue;
34
+ inactive?: import("tailwind-merge").ClassNameValue;
35
+ firstButton?: import("tailwind-merge").ClassNameValue;
36
+ lastButton?: import("tailwind-merge").ClassNameValue;
37
+ container?: import("tailwind-merge").ClassNameValue;
38
+ active?: import("tailwind-merge").ClassNameValue;
39
+ };
40
+ };
41
+ } | {}>, {
42
+ [key: string]: {
43
+ [key: string]: import("tailwind-merge").ClassNameValue | {
44
+ button?: import("tailwind-merge").ClassNameValue;
45
+ inactive?: import("tailwind-merge").ClassNameValue;
46
+ firstButton?: import("tailwind-merge").ClassNameValue;
47
+ lastButton?: import("tailwind-merge").ClassNameValue;
48
+ container?: import("tailwind-merge").ClassNameValue;
49
+ active?: import("tailwind-merge").ClassNameValue;
50
+ };
51
+ };
52
+ } | {}, {
53
+ button: string;
54
+ inactive: string;
55
+ firstButton: string;
56
+ lastButton: string;
57
+ container: string;
58
+ active: string;
59
+ }, import("tailwind-variants").TVReturnType<unknown, {
60
+ button: string;
61
+ inactive: string;
62
+ firstButton: string;
63
+ lastButton: string;
64
+ container: string;
65
+ active: string;
66
+ }, undefined, import("tailwind-variants/dist/config").TVConfig<unknown, {
67
+ [key: string]: {
68
+ [key: string]: import("tailwind-merge").ClassNameValue | {
69
+ button?: import("tailwind-merge").ClassNameValue;
70
+ inactive?: import("tailwind-merge").ClassNameValue;
71
+ firstButton?: import("tailwind-merge").ClassNameValue;
72
+ lastButton?: import("tailwind-merge").ClassNameValue;
73
+ container?: import("tailwind-merge").ClassNameValue;
74
+ active?: import("tailwind-merge").ClassNameValue;
75
+ };
76
+ };
77
+ } | {}>, unknown, unknown, undefined>>;
@@ -0,0 +1,3 @@
1
+ export * from './calendar-cell';
2
+ export * from './groupButton';
3
+ export * from './progressBar';
@@ -0,0 +1,78 @@
1
+ export declare const progressBarFilled: import("tailwind-variants").TVReturnType<{
2
+ intentProgress: {
3
+ default: string;
4
+ error: string;
5
+ info: string;
6
+ warning: string;
7
+ success: string;
8
+ };
9
+ showAnimation: {
10
+ true: string;
11
+ };
12
+ }, undefined, "h-full first:rounded-l-pill last:rounded-r-pill", import("tailwind-variants/dist/config").TVConfig<{
13
+ intentProgress: {
14
+ default: string;
15
+ error: string;
16
+ info: string;
17
+ warning: string;
18
+ success: string;
19
+ };
20
+ showAnimation: {
21
+ true: string;
22
+ };
23
+ }, {
24
+ intentProgress: {
25
+ default: string;
26
+ error: string;
27
+ info: string;
28
+ warning: string;
29
+ success: string;
30
+ };
31
+ showAnimation: {
32
+ true: string;
33
+ };
34
+ }>, {
35
+ intentProgress: {
36
+ default: string;
37
+ error: string;
38
+ info: string;
39
+ warning: string;
40
+ success: string;
41
+ };
42
+ showAnimation: {
43
+ true: string;
44
+ };
45
+ }, undefined, import("tailwind-variants").TVReturnType<{
46
+ intentProgress: {
47
+ default: string;
48
+ error: string;
49
+ info: string;
50
+ warning: string;
51
+ success: string;
52
+ };
53
+ showAnimation: {
54
+ true: string;
55
+ };
56
+ }, undefined, "h-full first:rounded-l-pill last:rounded-r-pill", import("tailwind-variants/dist/config").TVConfig<{
57
+ intentProgress: {
58
+ default: string;
59
+ error: string;
60
+ info: string;
61
+ warning: string;
62
+ success: string;
63
+ };
64
+ showAnimation: {
65
+ true: string;
66
+ };
67
+ }, {
68
+ intentProgress: {
69
+ default: string;
70
+ error: string;
71
+ info: string;
72
+ warning: string;
73
+ success: string;
74
+ };
75
+ showAnimation: {
76
+ true: string;
77
+ };
78
+ }>, 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
+ 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 {};
@@ -0,0 +1 @@
1
+ export {};
@@ -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.2.2",
3
+ "version": "1.3.0-beta.0",
4
4
  "description": "React components based in @tecsinapse/cortex-core",
5
5
  "license": "MIT",
6
6
  "main": "dist/esm/index.js",
@@ -13,12 +13,17 @@
13
13
  "dev": "rollup --config --watch",
14
14
  "dev:dts": "tsc --project tsconfig.build.json --watch",
15
15
  "build:es": "rollup --config",
16
- "build:dts": "tsc --project tsconfig.build.json"
16
+ "build:dts": "tsc --project tsconfig.build.json",
17
+ "test": "jest",
18
+ "test:watch": "jest --watch"
17
19
  },
18
20
  "dependencies": {
19
- "@tecsinapse/cortex-core": "0.2.1",
21
+ "@tecsinapse/cortex-core": "0.2.2-beta.2",
20
22
  "clsx": "*",
21
- "react-icons": "^5.2.1"
23
+ "react-aria": "^3.33.1",
24
+ "react-icons": "^5.2.1",
25
+ "react-stately": "^3.31.1",
26
+ "sonner": "^1.5.0"
22
27
  },
23
28
  "repository": {
24
29
  "type": "git",
@@ -34,5 +39,5 @@
34
39
  "react-dom": ">=18.0.0",
35
40
  "tailwind": ">=3.3.0"
36
41
  },
37
- "gitHead": "6d7f265c8000b3a2a970efb0116483e5af4828b0"
42
+ "gitHead": "0ecb7949c627cb5d2fe9395f148e48a0bb071599"
38
43
  }
@@ -1,18 +0,0 @@
1
- 'use strict';
2
-
3
- var React = require('react');
4
- var cortexCore = require('@tecsinapse/cortex-core');
5
-
6
- const Snackbar = React.forwardRef((props, ref) => {
7
- const { children, show, variants } = props;
8
- return /* @__PURE__ */ React.createElement(React.Fragment, null, show ? /* @__PURE__ */ React.createElement(
9
- "div",
10
- {
11
- className: cortexCore.snackbar(variants),
12
- ref
13
- },
14
- children
15
- ) : /* @__PURE__ */ React.createElement(React.Fragment, null));
16
- });
17
-
18
- exports.Snackbar = Snackbar;
@@ -1,16 +0,0 @@
1
- import React, { forwardRef } from 'react';
2
- import { snackbar } from '@tecsinapse/cortex-core';
3
-
4
- const Snackbar = forwardRef((props, ref) => {
5
- const { children, show, variants } = props;
6
- return /* @__PURE__ */ React.createElement(React.Fragment, null, show ? /* @__PURE__ */ React.createElement(
7
- "div",
8
- {
9
- className: snackbar(variants),
10
- ref
11
- },
12
- children
13
- ) : /* @__PURE__ */ React.createElement(React.Fragment, null));
14
- });
15
-
16
- export { Snackbar };
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import { SnackbarVariants } from '@tecsinapse/cortex-core';
3
- interface SnackbarProps {
4
- variants?: SnackbarVariants;
5
- children: JSX.Element;
6
- show: boolean;
7
- }
8
- export declare const Snackbar: React.ForwardRefExoticComponent<SnackbarProps & React.RefAttributes<HTMLDivElement>>;
9
- export {};