@ttoss/components 2.14.18 → 2.14.20

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/package.json CHANGED
@@ -1,17 +1,22 @@
1
1
  {
2
2
  "name": "@ttoss/components",
3
- "version": "2.14.18",
3
+ "version": "2.14.20",
4
4
  "description": "React components for ttoss ecosystem.",
5
- "license": "MIT",
6
- "author": "ttoss",
7
- "contributors": [
8
- "Pedro Arantes <pedro@arantespp.com> (https://arantespp.com/contact)"
5
+ "keywords": [
6
+ "React",
7
+ "components"
9
8
  ],
10
9
  "repository": {
11
10
  "type": "git",
12
11
  "url": "https://github.com/ttoss/ttoss.git",
13
12
  "directory": "packages/components"
14
13
  },
14
+ "license": "MIT",
15
+ "author": "ttoss",
16
+ "contributors": [
17
+ "Pedro Arantes <pedro@arantespp.com> (https://arantespp.com/contact)"
18
+ ],
19
+ "sideEffects": false,
15
20
  "type": "module",
16
21
  "exports": {
17
22
  "./Accordion": {
@@ -106,7 +111,6 @@
106
111
  "files": [
107
112
  "dist"
108
113
  ],
109
- "sideEffects": false,
110
114
  "dependencies": {
111
115
  "@emotion/css": "^11.13.5",
112
116
  "@tanstack/react-table": "^8.21.3",
@@ -123,13 +127,6 @@
123
127
  "rehype-raw": "^7.0.0",
124
128
  "remark-gfm": "^4.0.1"
125
129
  },
126
- "peerDependencies": {
127
- "react": ">=16.8.0",
128
- "@ttoss/react-icons": "^0.7.11",
129
- "@ttoss/ui": "^6.9.17",
130
- "@ttoss/react-i18n": "^2.2.11",
131
- "@ttoss/react-hooks": "^2.3.10"
132
- },
133
130
  "devDependencies": {
134
131
  "@types/jest": "^30.0.0",
135
132
  "@types/react": "^19.2.14",
@@ -137,18 +134,21 @@
137
134
  "react": "^19.2.4",
138
135
  "tsup": "^8.5.1",
139
136
  "tsx": "^4.21.0",
140
- "@ttoss/config": "^1.37.10",
141
- "@ttoss/i18n-cli": "^0.8.10",
142
- "@ttoss/react-hooks": "^2.3.10",
143
- "@ttoss/react-i18n": "^2.2.11",
144
- "@ttoss/react-icons": "^0.7.11",
145
- "@ttoss/test-utils": "^4.2.10",
146
- "@ttoss/ui": "^6.9.17"
137
+ "@ttoss/config": "^1.37.12",
138
+ "@ttoss/i18n-cli": "^0.8.12",
139
+ "@ttoss/react-hooks": "^2.3.12",
140
+ "@ttoss/react-i18n": "^2.2.13",
141
+ "@ttoss/react-icons": "^0.7.13",
142
+ "@ttoss/test-utils": "^4.2.12",
143
+ "@ttoss/ui": "^6.9.19"
144
+ },
145
+ "peerDependencies": {
146
+ "react": ">=16.8.0",
147
+ "@ttoss/react-hooks": "^2.3.12",
148
+ "@ttoss/react-icons": "^0.7.13",
149
+ "@ttoss/ui": "^6.9.19",
150
+ "@ttoss/react-i18n": "^2.2.13"
147
151
  },
148
- "keywords": [
149
- "React",
150
- "components"
151
- ],
152
152
  "publishConfig": {
153
153
  "access": "public",
154
154
  "provenance": true
@@ -1,55 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import * as React from 'react';
3
-
4
- type UploadResult = {
5
- url: string;
6
- id: string | number;
7
- };
8
- type FileUploadState = {
9
- file: File;
10
- status: 'pending' | 'uploading' | 'completed' | 'error';
11
- progress?: number;
12
- result?: UploadResult;
13
- error?: Error;
14
- };
15
- type OnUpload = (file: File, onProgress?: (progress: number) => void) => Promise<UploadResult>;
16
- type OnUploadStart = (file: File) => void;
17
- type OnUploadProgress = (file: File, progress: number) => void;
18
- type OnUploadComplete = (file: File, result: UploadResult) => void;
19
- type OnUploadError = (file: File, error: Error) => void;
20
- type OnFilesChange = (files: FileUploadState[]) => void;
21
- type OnRemove = (file: UploadedFile, index: number) => void;
22
- type UploadedFile = {
23
- id: string | number;
24
- name: string;
25
- imageUrl?: string;
26
- url: string;
27
- };
28
- type FileUploaderProps = {
29
- onUpload: OnUpload;
30
- onUploadStart?: OnUploadStart;
31
- onUploadProgress?: OnUploadProgress;
32
- onUploadComplete?: OnUploadComplete;
33
- onUploadError?: OnUploadError;
34
- onFilesChange?: OnFilesChange;
35
- onRemove?: OnRemove;
36
- accept?: string;
37
- multiple?: boolean;
38
- maxSize?: number;
39
- maxFiles?: number;
40
- disabled?: boolean;
41
- autoUpload?: boolean;
42
- retryAttempts?: number;
43
- placeholder?: string;
44
- error?: string;
45
- children?: React.ReactNode;
46
- showFileList?: boolean;
47
- FileListComponent?: (props: {
48
- files: UploadedFile[];
49
- onRemove: (index: number) => void;
50
- }) => React.ReactNode;
51
- files?: UploadedFile[];
52
- };
53
- declare const FileUploader: ({ onUpload, onUploadStart, onUploadProgress, onUploadComplete, onUploadError, onFilesChange, onRemove, accept, multiple, maxSize, maxFiles, disabled, autoUpload, retryAttempts, placeholder, error, children, showFileList, FileListComponent, files: uploadedFiles, }: FileUploaderProps) => react_jsx_runtime.JSX.Element;
54
-
55
- export { type FileUploadState, FileUploader, type FileUploaderProps, type OnFilesChange, type OnRemove, type OnUpload, type OnUploadComplete, type OnUploadError, type OnUploadProgress, type OnUploadStart, type UploadResult, type UploadedFile };
@@ -1,10 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import * as React from 'react';
3
-
4
- type InstallPwaUiProps = {
5
- onInstall: React.MouseEventHandler<HTMLButtonElement>;
6
- };
7
- declare const InstallPwaUi: ({ onInstall }: InstallPwaUiProps) => react_jsx_runtime.JSX.Element;
8
- declare const InstallPwa: () => react_jsx_runtime.JSX.Element | null;
9
-
10
- export { InstallPwa, InstallPwaUi, type InstallPwaUiProps };
@@ -1,2 +0,0 @@
1
- export { JsonEditor } from 'json-edit-react';
2
- import 'react-json-view-lite';
@@ -1 +0,0 @@
1
- export { JsonView } from 'react-json-view-lite';
@@ -1,18 +0,0 @@
1
- import * as react from 'react';
2
- import * as react_jsx_runtime from 'react/jsx-runtime';
3
- import { BoxProps } from '@ttoss/ui';
4
- import { TabsProps, TabListProps, TabProps, TabPanelProps } from 'react-tabs';
5
- export { TabListProps, TabPanelProps, TabProps, TabsProps } from 'react-tabs';
6
-
7
- declare const Tabs: {
8
- (props: BoxProps & TabsProps): react_jsx_runtime.JSX.Element;
9
- TabList: react.FunctionComponent<TabListProps>;
10
- /**
11
- * Tab default props
12
- * https://github.com/reactjs/react-tabs/blob/main/src/components/Tab.js
13
- */
14
- Tab: react.FunctionComponent<TabProps>;
15
- TabPanel: react.FunctionComponent<TabPanelProps>;
16
- };
17
-
18
- export { Tabs };
@@ -1,8 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { ToastContainerProps, toast as toast$1 } from 'react-toastify';
3
- export { ToastContainerProps, ToastOptions } from 'react-toastify';
4
-
5
- declare const ToastContainer: (props: ToastContainerProps) => react_jsx_runtime.JSX.Element;
6
- declare const toast: typeof toast$1;
7
-
8
- export { ToastContainer, toast };