@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,75 +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/Tabs/Tabs.tsx
6
- import { Box } from "@ttoss/ui";
7
- import { Tab, TabList, TabPanel, Tabs as ReactTabs } from "react-tabs";
8
- var Tabs = /* @__PURE__ */__name(props => {
9
- const {
10
- sx: customSx,
11
- ...restProps
12
- } = props;
13
- return /* @__PURE__ */React.createElement(Box, {
14
- sx: /* @__PURE__ */__name(({
15
- colors
16
- }) => {
17
- const themeColors = colors;
18
- return {
19
- /**
20
- * Tabs
21
- */
22
- ".react-tabs": {
23
- WebkitTapHighlightColor: "transparent"
24
- },
25
- ".react-tabs__tab-list": {
26
- borderBottom: "md",
27
- borderColor: themeColors?.input?.border?.muted?.default,
28
- paddingLeft: 0
29
- },
30
- ".react-tabs__tab--selected": {
31
- backgroundColor: "transparent",
32
- border: "none",
33
- borderBottom: "lg",
34
- borderColor: themeColors?.input?.border?.accent?.default
35
- },
36
- ".react-tabs__tab": {
37
- color: themeColors?.input?.text?.secondary?.default,
38
- display: "inline-flex",
39
- alignItems: "center",
40
- gap: "2",
41
- padding: "3",
42
- cursor: "pointer",
43
- position: "relative",
44
- listStyle: "none"
45
- },
46
- ".react-tabs__tab--disabled": {
47
- cursor: "not-allowed",
48
- color: themeColors?.input?.text?.muted?.default
49
- },
50
- ".react-tabs__tab:focus": {
51
- outline: "none"
52
- },
53
- ".react-tabs__tab:focus:after": {
54
- position: "absolute",
55
- height: "min",
56
- left: "-2",
57
- right: "-2",
58
- bottom: "-3"
59
- },
60
- ".react-tabs__tab-panel": {
61
- display: "none"
62
- },
63
- ".react-tabs__tab-panel--selected": {
64
- display: "block"
65
- },
66
- ...customSx
67
- };
68
- }, "sx"),
69
- ...restProps
70
- }, /* @__PURE__ */React.createElement(ReactTabs, restProps, props.children));
71
- }, "Tabs");
72
- Tabs.TabList = TabList;
73
- Tabs.Tab = Tab;
74
- Tabs.TabPanel = TabPanel;
75
- export { Tabs };
@@ -1,38 +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/Toast/Toast.tsx
5
- import { css as createClassName } from "@emotion/css";
6
- import { css as transformStyleObject } from "@theme-ui/css";
7
- import { Box, useTheme } from "@ttoss/ui";
8
- import * as React from "react";
9
- import { toast as toastReactToastify, ToastContainer as ReactToastifyToastContainer } from "react-toastify";
10
- var ToastContainer = /* @__PURE__ */__name(props => {
11
- const {
12
- theme
13
- } = useTheme();
14
- const className = React.useMemo(() => {
15
- const styles = transformStyleObject({
16
- ".Toastify__toast-container": {}
17
- })(theme);
18
- return createClassName(styles);
19
- }, [theme]);
20
- return /* @__PURE__ */React.createElement(Box, {
21
- className,
22
- sx: /* @__PURE__ */__name(({
23
- colors,
24
- fonts
25
- }) => {
26
- const themeColors = colors;
27
- return {
28
- "--toastify-font-family": fonts?.body,
29
- "--toastify-color-light": themeColors?.feedback?.background?.primary?.default
30
- };
31
- }, "sx")
32
- }, /* @__PURE__ */React.createElement(ReactToastifyToastContainer, {
33
- className,
34
- ...props
35
- }));
36
- }, "ToastContainer");
37
- var toast = toastReactToastify;
38
- export { ToastContainer, toast };