@ttoss/components 2.10.0 → 2.10.2

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 (39) hide show
  1. package/package.json +18 -11
  2. package/dist/Accordion/index.d.ts +0 -16
  3. package/dist/Drawer/index.d.ts +0 -12
  4. package/dist/FileUploader/index.d.ts +0 -55
  5. package/dist/InstallPwa/index.d.ts +0 -10
  6. package/dist/JsonEditor/index.d.ts +0 -2
  7. package/dist/JsonView/index.d.ts +0 -1
  8. package/dist/List/index.d.ts +0 -13
  9. package/dist/Markdown/index.d.ts +0 -11
  10. package/dist/Menu/index.d.ts +0 -11
  11. package/dist/Modal/index.d.ts +0 -10
  12. package/dist/NavList/index.d.ts +0 -55
  13. package/dist/NotificationCard/index.d.ts +0 -21
  14. package/dist/NotificationsMenu/index.d.ts +0 -36
  15. package/dist/Search/index.d.ts +0 -11
  16. package/dist/SpotlightCard/index.d.ts +0 -27
  17. package/dist/Table/index.d.ts +0 -16
  18. package/dist/Tabs/index.d.ts +0 -18
  19. package/dist/Toast/index.d.ts +0 -8
  20. package/dist/esm/Accordion/index.js +0 -49
  21. package/dist/esm/Drawer/index.js +0 -59
  22. package/dist/esm/FileUploader/index.js +0 -401
  23. package/dist/esm/InstallPwa/index.js +0 -61
  24. package/dist/esm/JsonEditor/index.js +0 -6
  25. package/dist/esm/JsonView/index.js +0 -6
  26. package/dist/esm/List/index.js +0 -30
  27. package/dist/esm/Markdown/index.js +0 -23
  28. package/dist/esm/Menu/index.js +0 -131
  29. package/dist/esm/Modal/index.js +0 -65
  30. package/dist/esm/NavList/index.js +0 -246
  31. package/dist/esm/NotificationCard/index.js +0 -156
  32. package/dist/esm/NotificationsMenu/index.js +0 -358
  33. package/dist/esm/Search/index.js +0 -29
  34. package/dist/esm/SpotlightCard/index.js +0 -212
  35. package/dist/esm/Table/index.js +0 -63
  36. package/dist/esm/Tabs/index.js +0 -75
  37. package/dist/esm/Toast/index.js +0 -38
  38. package/dist/esm/chunk-2R7AUPJL.js +0 -2176
  39. package/dist/esm/chunk-V4MHYKRI.js +0 -7
@@ -1,358 +0,0 @@
1
- /** Powered by @ttoss/config. https://ttoss.dev/docs/modules/packages/config/ */
2
- import { Icon } from "../chunk-2R7AUPJL.js";
3
- import { __name } from "../chunk-V4MHYKRI.js";
4
-
5
- // src/components/NotificationsMenu/NotificationsMenu.tsx
6
- import { Box as Box2, Button, Card as Card2, Flex, IconButton, Text as Text2 } from "@ttoss/ui";
7
- import * as React2 from "react";
8
-
9
- // src/components/NotificationCard/NotificationCard.tsx
10
- import { Box, Card, CloseButton, Link, Tag, Text } from "@ttoss/ui";
11
- import * as React from "react";
12
- var NotificationCard = /* @__PURE__ */__name(props => {
13
- const sxMap = {
14
- success: {
15
- card: {
16
- backgroundColor: "feedback.background.positive.default",
17
- borderColor: "feedback.border.positive.default"
18
- }
19
- },
20
- error: {
21
- card: {
22
- backgroundColor: "feedback.background.negative.default",
23
- borderColor: "feedback.border.negative.default"
24
- }
25
- },
26
- warning: {
27
- card: {
28
- backgroundColor: "feedback.background.caution.default",
29
- borderColor: "feedback.border.caution.default"
30
- }
31
- },
32
- info: {
33
- card: {
34
- backgroundColor: "feedback.background.primary.default",
35
- borderColor: "feedback.border.primary.default"
36
- }
37
- },
38
- neutral: {
39
- card: {
40
- backgroundColor: "feedback.background.primary.default",
41
- borderColor: "feedback.border.primary.default"
42
- }
43
- }
44
- };
45
- const icon = {
46
- success: "success-circle",
47
- error: "error",
48
- warning: "warning-alt",
49
- info: "info",
50
- neutral: "info"
51
- };
52
- const hasCaption = Boolean(props.caption);
53
- const hasActions = Boolean(props.actions && props.actions.length > 0);
54
- const hasTitle = Boolean(props.title);
55
- const shouldCenterVerticallyWithoutTitle = !hasCaption && !hasActions && !hasTitle;
56
- const shouldCenterVerticallyWithTitle = !hasCaption && !hasActions && hasTitle;
57
- const shouldAddMinHeight = !hasCaption && !hasActions;
58
- return /* @__PURE__ */React.createElement(Card, {
59
- sx: {
60
- ...sxMap[props.type].card,
61
- width: "full"
62
- }
63
- }, props.title && /* @__PURE__ */React.createElement(Card.Title, {
64
- sx: {
65
- display: "flex",
66
- justifyContent: "space-between",
67
- alignItems: "center",
68
- fontSize: ["md", "xl"],
69
- paddingY: ["1", "2", "4"],
70
- paddingX: ["2", "4", "8"]
71
- }
72
- }, /* @__PURE__ */React.createElement(Text, {
73
- sx: {
74
- display: "inline-flex",
75
- alignItems: "flex-start",
76
- gap: "2",
77
- flexDirection: "row",
78
- flexWrap: "wrap"
79
- }
80
- }, /* @__PURE__ */React.createElement(Box, {
81
- sx: {
82
- display: "flex",
83
- alignItems: "center",
84
- gap: "2"
85
- }
86
- }, /* @__PURE__ */React.createElement(Icon, {
87
- icon: icon[props.type]
88
- }), props.title), props.tags && (Array.isArray(props.tags) ? props.tags.length > 0 : true) && (Array.isArray(props.tags) ? props.tags.map((tag, index) => {
89
- return /* @__PURE__ */React.createElement(Tag, {
90
- key: index
91
- }, tag);
92
- }) : /* @__PURE__ */React.createElement(Tag, null, props.tags))), props.onClose && /* @__PURE__ */React.createElement(Box, {
93
- sx: {
94
- marginLeft: "auto"
95
- }
96
- }, /* @__PURE__ */React.createElement(CloseButton, {
97
- onClick: props.onClose
98
- }))), /* @__PURE__ */React.createElement(Card.Body, {
99
- sx: {
100
- ...sxMap[props.type].card,
101
- display: "flex",
102
- flexDirection: "column",
103
- gap: "2",
104
- paddingY: ["1", "2", "4"],
105
- paddingX: ["2", "4", "8"]
106
- }
107
- }, /* @__PURE__ */React.createElement(Box, {
108
- sx: {
109
- display: "flex",
110
- justifyContent: "space-between",
111
- minHeight: shouldAddMinHeight ? "40px" : "auto",
112
- alignItems: shouldCenterVerticallyWithoutTitle ? "center" : shouldCenterVerticallyWithTitle ? "center" : "flex-start",
113
- width: "100%",
114
- gap: "4"
115
- }
116
- }, /* @__PURE__ */React.createElement(Box, {
117
- sx: {
118
- flex: 1
119
- }
120
- }, /* @__PURE__ */React.createElement(Text, {
121
- sx: {
122
- fontSize: ["sm", "md"]
123
- }
124
- }, props.message))), props.actions && props.actions.length > 0 && /* @__PURE__ */React.createElement(Box, {
125
- sx: {
126
- display: "flex",
127
- flexDirection: "column",
128
- gap: 2,
129
- mt: 2
130
- }
131
- }, props.actions.map((action, index) => {
132
- return action.action === "open_url" ? /* @__PURE__ */React.createElement(Link, {
133
- key: index,
134
- href: action.url,
135
- target: "_blank",
136
- rel: "noopener noreferrer",
137
- sx: {
138
- color: "action.text.accent.default",
139
- cursor: "pointer"
140
- }
141
- }, action.label || "Acessar") : null;
142
- })), props.caption && /* @__PURE__ */React.createElement(Box, {
143
- sx: {
144
- whiteSpace: "nowrap",
145
- mt: 6
146
- }
147
- }, /* @__PURE__ */React.createElement(Text, {
148
- sx: {
149
- fontSize: "xs",
150
- color: "text.secondary"
151
- }
152
- }, props.caption)), !props.title && props.onClose && /* @__PURE__ */React.createElement(Box, {
153
- sx: {
154
- alignSelf: "flex-end"
155
- }
156
- }, /* @__PURE__ */React.createElement(CloseButton, {
157
- onClick: props.onClose
158
- }))));
159
- }, "NotificationCard");
160
-
161
- // src/components/NotificationsMenu/NotificationsMenu.tsx
162
- var NotificationsMenu = /* @__PURE__ */__name(({
163
- notifications,
164
- defaultOpen = false,
165
- hasMore = false,
166
- onLoadMore,
167
- onOpenChange,
168
- count,
169
- onClose,
170
- onClearAll
171
- }) => {
172
- const [isOpen, setIsOpen] = React2.useState(defaultOpen);
173
- const [openToLeft, setOpenToLeft] = React2.useState(false);
174
- const buttonRef = React2.useRef(null);
175
- const containerRef = React2.useRef(null);
176
- const loadMoreRef = React2.useRef(null);
177
- const [showCount, setShowCount] = React2.useState(true);
178
- const togglePanel = /* @__PURE__ */__name(() => {
179
- setIsOpen(prev => {
180
- const next = !prev;
181
- onOpenChange?.(next);
182
- return next;
183
- });
184
- }, "togglePanel");
185
- React2.useEffect(() => {
186
- if (!isOpen || !buttonRef.current) return;
187
- const rect = buttonRef.current.getBoundingClientRect();
188
- const spaceRight = window.innerWidth - rect.right;
189
- const spaceLeft = rect.left;
190
- setShowCount(false);
191
- setOpenToLeft(spaceRight < 500 && spaceLeft > spaceRight);
192
- }, [isOpen]);
193
- React2.useEffect(() => {
194
- if (!hasMore || !onLoadMore || !loadMoreRef.current) return;
195
- const observer = new IntersectionObserver(entries => {
196
- if (entries[0].isIntersecting) {
197
- onLoadMore();
198
- }
199
- }, {
200
- root: null,
201
- rootMargin: "0px",
202
- threshold: 1
203
- });
204
- observer.observe(loadMoreRef.current);
205
- return () => {
206
- if (loadMoreRef.current) {
207
- observer.unobserve(loadMoreRef.current);
208
- }
209
- };
210
- }, [hasMore, onLoadMore, notifications.length]);
211
- React2.useEffect(() => {
212
- if (!isOpen) return;
213
- const handleClickOutside = /* @__PURE__ */__name(event => {
214
- if (containerRef.current && !containerRef.current.contains(event.target) && buttonRef.current && !buttonRef.current.contains(event.target)) {
215
- setIsOpen(false);
216
- onOpenChange?.(false);
217
- onClose?.();
218
- }
219
- }, "handleClickOutside");
220
- document.addEventListener("mousedown", handleClickOutside);
221
- return () => {
222
- document.removeEventListener("mousedown", handleClickOutside);
223
- };
224
- }, [isOpen, onOpenChange, onClose]);
225
- return /* @__PURE__ */React2.createElement(Flex, {
226
- sx: {
227
- position: "relative",
228
- justifyContent: "flex-start"
229
- }
230
- }, /* @__PURE__ */React2.createElement(Box2, {
231
- sx: {
232
- position: "relative"
233
- }
234
- }, /* @__PURE__ */React2.createElement(IconButton, {
235
- ref: buttonRef,
236
- variant: "ghost",
237
- sx: {
238
- position: "relative",
239
- borderRadius: "full",
240
- padding: 1,
241
- transition: "background-color 0.3s ease",
242
- "&:hover": {
243
- backgroundColor: "action.background.muted.default"
244
- }
245
- },
246
- onClick: togglePanel
247
- }, /* @__PURE__ */React2.createElement(Box2, {
248
- sx: {
249
- color: "display.text.muted.default"
250
- }
251
- }, /* @__PURE__ */React2.createElement(Icon, {
252
- icon: "mdi:bell-outline",
253
- width: 22,
254
- height: 22
255
- })), count > 0 && showCount && /* @__PURE__ */React2.createElement(Box2, {
256
- sx: {
257
- position: "absolute",
258
- top: "-2px",
259
- right: "-2px",
260
- minWidth: "14px",
261
- height: "14px",
262
- paddingX: 1,
263
- borderRadius: "full",
264
- backgroundColor: "action.background.negative.default",
265
- color: "feedback.text.primary.default",
266
- fontSize: "10px",
267
- fontWeight: "bold",
268
- display: "flex",
269
- alignItems: "center",
270
- justifyContent: "center",
271
- lineHeight: 1
272
- }
273
- }, count > 99 ? "99+" : count)), isOpen && /* @__PURE__ */React2.createElement("div", {
274
- ref: containerRef
275
- }, /* @__PURE__ */React2.createElement(Card2, {
276
- sx: {
277
- position: "absolute",
278
- top: "calc(100% + 8px)",
279
- left: openToLeft ? "auto" : 0,
280
- right: openToLeft ? 0 : "auto",
281
- width: notifications.length === 0 ? ["60vw", "300px"] : ["90vw", "600px"],
282
- maxHeight: "550px",
283
- overflowY: "auto",
284
- zIndex: "modal",
285
- padding: 0,
286
- boxShadow: "xl",
287
- borderRadius: "2xl",
288
- backgroundColor: "display.background.secondary.default"
289
- }
290
- }, /* @__PURE__ */React2.createElement(Box2, {
291
- sx: {
292
- width: "100%"
293
- }
294
- }, /* @__PURE__ */React2.createElement(Flex, {
295
- sx: {
296
- flexDirection: "column",
297
- gap: 4
298
- }
299
- }, notifications.length > 0 && onClearAll && /* @__PURE__ */React2.createElement(Flex, {
300
- sx: {
301
- justifyContent: "flex-end",
302
- p: 2,
303
- marginBottom: -2
304
- }
305
- }, /* @__PURE__ */React2.createElement(Button, {
306
- variant: "ghost",
307
- sx: {
308
- borderRadius: "md",
309
- padding: 1,
310
- paddingLeft: 10,
311
- paddingRight: 10,
312
- fontSize: "md",
313
- color: "display.text.muted.default",
314
- border: "1px solid",
315
- borderColor: "display.border.default",
316
- transition: "all 0.2s ease",
317
- display: "flex",
318
- alignItems: "center",
319
- "&:hover": {
320
- backgroundColor: "action.background.muted.default",
321
- color: "display.text.default",
322
- borderColor: "action.border.default"
323
- }
324
- },
325
- onClick: onClearAll
326
- }, /* @__PURE__ */React2.createElement(Icon, {
327
- icon: "delete",
328
- width: 16,
329
- height: 16
330
- }), /* @__PURE__ */React2.createElement(Text2, {
331
- sx: {
332
- ml: -1,
333
- marginTop: -0.4,
334
- fontSize: "sm"
335
- }
336
- }, "Limpar Tudo"))), notifications.length === 0 ? /* @__PURE__ */React2.createElement(Text2, {
337
- sx: {
338
- color: "display.text.muted.default",
339
- textAlign: "center",
340
- p: 4
341
- }
342
- }, "Nenhuma notifica\xE7\xE3o") : notifications.map(notification => {
343
- return /* @__PURE__ */React2.createElement(NotificationCard, {
344
- key: notification.id,
345
- ...notification,
346
- onClose: /* @__PURE__ */__name(() => {
347
- notification.onClose?.();
348
- onClose?.();
349
- }, "onClose")
350
- });
351
- }), hasMore && /* @__PURE__ */React2.createElement("div", {
352
- ref: loadMoreRef,
353
- style: {
354
- height: 1
355
- }
356
- })))))));
357
- }, "NotificationsMenu");
358
- export { NotificationsMenu };
@@ -1,29 +0,0 @@
1
- /** Powered by @ttoss/config. https://ttoss.dev/docs/modules/packages/config/ */
2
- import { __name } from "../chunk-V4MHYKRI.js";
3
-
4
- // src/components/Search/Search.tsx
5
- import * as React from "react";
6
- import { Input } from "@ttoss/ui";
7
- import { useDebounce } from "@ttoss/react-hooks";
8
- var Search = /* @__PURE__ */__name(({
9
- value,
10
- defaultValue,
11
- loading,
12
- onChange,
13
- ...props
14
- }) => {
15
- const [text, setText] = React.useState(value ?? defaultValue);
16
- const debouncedValue = useDebounce(text, 500);
17
- React.useEffect(() => {
18
- onChange(debouncedValue);
19
- }, [debouncedValue, onChange]);
20
- return /* @__PURE__ */React.createElement(Input, {
21
- leadingIcon: loading ? "loading" : "search",
22
- defaultValue: text,
23
- onChange: /* @__PURE__ */__name(e => {
24
- return setText(e.target.value);
25
- }, "onChange"),
26
- ...props
27
- });
28
- }, "Search");
29
- export { Search };
@@ -1,212 +0,0 @@
1
- /** Powered by @ttoss/config. https://ttoss.dev/docs/modules/packages/config/ */
2
- import { Icon } from "../chunk-2R7AUPJL.js";
3
- import { __name } from "../chunk-V4MHYKRI.js";
4
-
5
- // src/components/SpotlightCard/SpotlightCard.tsx
6
- import { Box, Button, Card, Flex, keyframes, Text } from "@ttoss/ui";
7
- import * as React from "react";
8
- var SpotlightCard = /* @__PURE__ */__name(({
9
- icon,
10
- title,
11
- badge,
12
- description,
13
- firstButton,
14
- secondButton,
15
- variant = "accent"
16
- }) => {
17
- const gradientFlow = keyframes({
18
- "0%": {
19
- backgroundPosition: "0% 50%"
20
- },
21
- "50%": {
22
- backgroundPosition: "100% 50%"
23
- },
24
- "100%": {
25
- backgroundPosition: "0% 50%"
26
- }
27
- });
28
- const hasButtons = !!firstButton || !!secondButton;
29
- const isAccent = variant === "accent";
30
- const textColorToken = isAccent ? "action.text.accent.default" : "action.text.primary.default";
31
- const iconColorToken = isAccent ? "action.text.accent.default" : "display.text.accent.default";
32
- const iconBgToken = isAccent ? "rgba(255,255,255,0.3)" : "action.background.secondary.default";
33
- const badgeBgToken = isAccent ? "action.background.primary.default" : "action.background.accent.default";
34
- const badgeTextToken = isAccent ? "action.text.primary.default" : "action.text.accent.default";
35
- const btnPrimaryVariant = isAccent ? "primary" : "accent";
36
- const btnPrimaryColorToken = isAccent ? "action.text.primary.default" : "action.text.accent.default";
37
- const btnSecondaryColorToken = textColorToken;
38
- const btnSecondaryBorderColorToken = isAccent ? "currentColor" : "display.border.muted.default";
39
- const renderButton = /* @__PURE__ */__name((prop, config) => {
40
- if (!prop) return null;
41
- if (/* @__PURE__ */React.isValidElement(prop)) return prop;
42
- if (typeof prop !== "object") return prop;
43
- const {
44
- sx,
45
- ...rest
46
- } = prop;
47
- const {
48
- variant: defaultVariant,
49
- textColor,
50
- styles = {}
51
- } = config;
52
- return /* @__PURE__ */React.createElement(Button, {
53
- variant: defaultVariant,
54
- sx: {
55
- display: "flex",
56
- alignItems: "center",
57
- justifyContent: "center",
58
- gap: "2",
59
- px: "6",
60
- py: "3",
61
- fontSize: "15px",
62
- fontWeight: "bold",
63
- whiteSpace: "nowrap",
64
- transition: "all 0.2s",
65
- color: textColor,
66
- ...styles,
67
- ...sx
68
- },
69
- ...rest
70
- });
71
- }, "renderButton");
72
- return /* @__PURE__ */React.createElement(Card, {
73
- sx: {
74
- display: "flex",
75
- flexDirection: "row",
76
- flexWrap: "nowrap",
77
- alignItems: "center",
78
- justifyContent: "space-between",
79
- background: /* @__PURE__ */__name(t => {
80
- const theme = t;
81
- const bgStart = isAccent ? theme.colors?.action?.background?.accent?.default : theme.colors?.action?.background?.primary?.default;
82
- const bgMiddle = isAccent ? theme.colors?.action?.background?.accent?.active : theme.colors?.action?.background?.secondary?.default;
83
- if (isAccent) {
84
- return `linear-gradient(270deg, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%),
85
- linear-gradient(0deg, ${bgStart}, ${bgStart})`;
86
- }
87
- return `linear-gradient(270deg, ${bgStart}, ${bgMiddle}, ${bgStart})`;
88
- }, "background"),
89
- backgroundSize: isAccent ? "200% 100%, auto" : "400% 400%",
90
- animation: `${gradientFlow} 6s ease infinite`,
91
- width: "100%",
92
- minHeight: "104px",
93
- borderRadius: "xl",
94
- boxShadow: "0 4px 20px rgba(0,0,0,0.1)",
95
- py: "7",
96
- px: "8",
97
- gap: "5",
98
- color: textColorToken,
99
- overflow: "hidden",
100
- borderWidth: "1px",
101
- borderStyle: "solid",
102
- borderColor: isAccent ? "transparent" : "display.border.muted.default"
103
- },
104
- "data-testid": "spotlight-card"
105
- }, /* @__PURE__ */React.createElement(Flex, {
106
- sx: {
107
- alignItems: "center",
108
- gap: "5",
109
- flex: 1,
110
- minWidth: 0
111
- }
112
- }, /* @__PURE__ */React.createElement(Box, {
113
- sx: {
114
- width: 64,
115
- height: 64,
116
- borderRadius: "2xl",
117
- backgroundColor: iconBgToken,
118
- display: "flex",
119
- alignItems: "center",
120
- justifyContent: "center",
121
- flexShrink: 0,
122
- color: iconColorToken
123
- }
124
- }, /* @__PURE__ */React.createElement(Icon, {
125
- icon,
126
- width: 32
127
- })), /* @__PURE__ */React.createElement(Box, {
128
- sx: {
129
- minWidth: 0
130
- }
131
- }, /* @__PURE__ */React.createElement(Text, {
132
- as: "div",
133
- sx: {
134
- fontFamily: "mono",
135
- // Tamanho da fonte aumentado para dar mais presença ao OneClick
136
- fontSize: "32px",
137
- lineHeight: 1.1,
138
- color: "inherit",
139
- whiteSpace: "nowrap",
140
- display: "flex",
141
- alignItems: "center",
142
- gap: "3"
143
- }
144
- }, title, badge && /* @__PURE__ */React.createElement(Box, {
145
- as: "span",
146
- sx: {
147
- backgroundColor: badgeBgToken,
148
- color: badgeTextToken,
149
- fontFamily: "mono",
150
- fontWeight: "bold",
151
- fontSize: "11px",
152
- lineHeight: 1,
153
- paddingX: "6px",
154
- paddingY: "3px",
155
- borderRadius: "md",
156
- textTransform: "uppercase",
157
- letterSpacing: "0.05em",
158
- display: "inline-flex",
159
- alignItems: "center",
160
- boxShadow: "0 2px 4px rgba(0,0,0,0.1)",
161
- transform: "translateY(3px)"
162
- }
163
- }, badge)), /* @__PURE__ */React.createElement(Text, {
164
- as: "div",
165
- sx: {
166
- fontFamily: "body",
167
- fontWeight: 400,
168
- fontSize: "16px",
169
- color: "inherit",
170
- opacity: 0.9,
171
- mt: "1",
172
- overflow: "hidden",
173
- textOverflow: "ellipsis",
174
- display: "-webkit-box",
175
- WebkitLineClamp: 2,
176
- WebkitBoxOrient: "vertical"
177
- }
178
- }, description))), hasButtons && /* @__PURE__ */React.createElement(Flex, {
179
- sx: {
180
- gap: "4",
181
- alignItems: "center",
182
- flexShrink: 0,
183
- ml: "auto"
184
- }
185
- }, renderButton(firstButton, {
186
- variant: btnPrimaryVariant,
187
- textColor: btnPrimaryColorToken,
188
- styles: {
189
- ":hover": {
190
- transform: "translateY(-1px)"
191
- }
192
- }
193
- }), renderButton(secondButton, {
194
- variant: "secondary",
195
- textColor: btnSecondaryColorToken,
196
- styles: {
197
- backgroundColor: "transparent",
198
- borderWidth: "1px",
199
- borderStyle: "solid",
200
- borderColor: btnSecondaryBorderColorToken,
201
- opacity: isAccent ? 0.6 : 1,
202
- cursor: "pointer",
203
- ":hover": {
204
- backgroundColor: "rgba(255,255,255,0.2)",
205
- opacity: 1,
206
- borderColor: btnSecondaryBorderColorToken
207
- }
208
- }
209
- })));
210
- }, "SpotlightCard");
211
- SpotlightCard.displayName = "SpotlightCard";
212
- export { SpotlightCard };
@@ -1,63 +0,0 @@
1
- /** Powered by @ttoss/config. https://ttoss.dev/docs/modules/packages/config/ */
2
- import * as React from 'react';
3
- import { __name } from "../chunk-V4MHYKRI.js";
4
-
5
- // src/components/Table/Table.tsx
6
- import { Box } from "@ttoss/ui";
7
- import { createCell, createColumnHelper, flexRender, getCoreRowModel, useReactTable } from "@tanstack/react-table";
8
- var Table = /* @__PURE__ */__name(props => {
9
- return /* @__PURE__ */React.createElement(Box, {
10
- as: "table",
11
- ...props
12
- });
13
- }, "Table");
14
- var TableHead = /* @__PURE__ */__name(props => {
15
- return /* @__PURE__ */React.createElement(Box, {
16
- as: "thead",
17
- ...props
18
- });
19
- }, "TableHead");
20
- var TableBody = /* @__PURE__ */__name(props => {
21
- return /* @__PURE__ */React.createElement(Box, {
22
- as: "tbody",
23
- ...props
24
- });
25
- }, "TableBody");
26
- var TableRow = /* @__PURE__ */__name(props => {
27
- return /* @__PURE__ */React.createElement(Box, {
28
- as: "tr",
29
- ...props
30
- });
31
- }, "TableRow");
32
- var TableCell = /* @__PURE__ */__name(props => {
33
- return /* @__PURE__ */React.createElement(Box, {
34
- as: "td",
35
- ...props
36
- });
37
- }, "TableCell");
38
- var TableHeader = /* @__PURE__ */__name(props => {
39
- return /* @__PURE__ */React.createElement(Box, {
40
- as: "th",
41
- ...props
42
- });
43
- }, "TableHeader");
44
- var TableCaption = /* @__PURE__ */__name(props => {
45
- return /* @__PURE__ */React.createElement(Box, {
46
- as: "caption",
47
- ...props
48
- });
49
- }, "TableCaption");
50
- var TableFooter = /* @__PURE__ */__name(props => {
51
- return /* @__PURE__ */React.createElement(Box, {
52
- as: "tfoot",
53
- ...props
54
- });
55
- }, "TableFooter");
56
- Table.Head = TableHead;
57
- Table.Body = TableBody;
58
- Table.Row = TableRow;
59
- Table.Cell = TableCell;
60
- Table.Header = TableHeader;
61
- Table.Caption = TableCaption;
62
- Table.Footer = TableFooter;
63
- export { Table, createCell, createColumnHelper, flexRender, getCoreRowModel, useReactTable };