jclib-ui 0.0.22
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/README.md +8 -0
- package/dist/DropDownButton/DropDownButton.d.ts +15 -0
- package/dist/DropDownButton/DropDownButton.styles.d.ts +1 -0
- package/dist/LoadingReport/LoadingReport.d.ts +7 -0
- package/dist/LoadingReport/LoadingReport.styles.d.ts +1 -0
- package/dist/LoadingReport/PreviewReport.d.ts +6 -0
- package/dist/MainComponents.d.ts +30 -0
- package/dist/ScrollContainer/ScrollContainer.d.ts +3 -0
- package/dist/ScrollContainer/ScrollContainer.styles.d.ts +1 -0
- package/dist/alerta/Alerta.d.ts +7 -0
- package/dist/alerta/Aviso.d.ts +4 -0
- package/dist/alerta/Confirma.d.ts +6 -0
- package/dist/alerta/JCAlert.consts.d.ts +5 -0
- package/dist/alerta/JCAlert.d.ts +8 -0
- package/dist/alerta/JCAlert.styles.d.ts +1 -0
- package/dist/botaoClonar/botaoClonar.d.ts +1 -0
- package/dist/botaoEditar/botaoEditar.d.ts +1 -0
- package/dist/botaoExcluir/botaoExcluir.d.ts +1 -0
- package/dist/botaoIncluir/botaoIncluir.d.ts +4 -0
- package/dist/botaoSalvar/botaoSalvar.d.ts +7 -0
- package/dist/botaoSalvar/botaoSalvar.styles.d.ts +1 -0
- package/dist/boxColor/boxColor.d.ts +6 -0
- package/dist/boxColor/boxColor.styles.d.ts +1 -0
- package/dist/boxInfo/BoxInfo.d.ts +10 -0
- package/dist/boxInfo/BoxInfo.styles.d.ts +1 -0
- package/dist/buttonClose/buttonBack.d.ts +3 -0
- package/dist/buttonClose/buttonClose.d.ts +3 -0
- package/dist/buttonClose/buttonStyled.d.ts +1 -0
- package/dist/buttonOptions/buttonOptions.d.ts +6 -0
- package/dist/buttonOptions/buttonOptions.styles.d.ts +1 -0
- package/dist/buttonTop/ButtonTop.d.ts +1 -0
- package/dist/buttonTop/ButtonTop.styles.d.ts +1 -0
- package/dist/clipboardArea/ClipboardArea.d.ts +4 -0
- package/dist/clipboardArea/ClipboardArea.styles.d.ts +1 -0
- package/dist/context/modalContext.d.ts +6 -0
- package/dist/dataItem/DataItem.d.ts +7 -0
- package/dist/formEnter/formEnter.d.ts +3 -0
- package/dist/groupBox/GroupBox.d.ts +5 -0
- package/dist/groupBox/GroupBox.styles.d.ts +1 -0
- package/dist/hint/hint.d.ts +4 -0
- package/dist/hint/hint.styles.d.ts +1 -0
- package/dist/hooks/cache.d.ts +5 -0
- package/dist/hooks/useApi.d.ts +48 -0
- package/dist/hooks/useLocalForage.d.ts +1 -0
- package/dist/hooks/useParamId.d.ts +1 -0
- package/dist/hooks/useQuery.d.ts +1 -0
- package/dist/hooks/useStorage.d.ts +2 -0
- package/dist/iconSvg/iconClose.d.ts +2 -0
- package/dist/iconSvg/iconExitOutline.d.ts +2 -0
- package/dist/iconSvg/iconMenu.d.ts +2 -0
- package/dist/iconSvg/iconUserGear.d.ts +2 -0
- package/dist/icones/Icones.d.ts +30 -0
- package/dist/imports/globalImports.d.ts +1 -0
- package/dist/index.d.ts +71 -0
- package/dist/inputColor/inputColor.d.ts +5 -0
- package/dist/inputColor/inputColor.styles.d.ts +1 -0
- package/dist/inputPesquisa/inputPesquisa.d.ts +10 -0
- package/dist/inputQRCode/inputQRCode.d.ts +4 -0
- package/dist/inputs/CheckBox.d.ts +7 -0
- package/dist/inputs/Formats.d.ts +45 -0
- package/dist/inputs/InputCep.d.ts +6 -0
- package/dist/inputs/InputCepConst.d.ts +4 -0
- package/dist/inputs/InputCheckBox.d.ts +5 -0
- package/dist/inputs/InputFone.d.ts +6 -0
- package/dist/inputs/inputs.d.ts +49 -0
- package/dist/jclib-ui.es.js +21006 -0
- package/dist/jclib-ui.es.js.map +1 -0
- package/dist/jclib-ui.umd.js +1317 -0
- package/dist/jclib-ui.umd.js.map +1 -0
- package/dist/labelHint/LabelHint.d.ts +4 -0
- package/dist/labelHint/LabelHint.styles.d.ts +1 -0
- package/dist/links/Links.d.ts +28 -0
- package/dist/loading/Loading.d.ts +4 -0
- package/dist/loading/Loading.styles.d.ts +1 -0
- package/dist/modalBox/ModalBox.d.ts +9 -0
- package/dist/modalBox/ModalBox.styles.d.ts +1 -0
- package/dist/modalBoxDrag/ModalBoxDrag.d.ts +9 -0
- package/dist/modalBoxDrag/ModalBoxDrag.styles.d.ts +1 -0
- package/dist/modalFilter/modalFilter.d.ts +7 -0
- package/dist/navbar/MenuOption.d.ts +9 -0
- package/dist/navbar/MenuOption.styles.d.ts +4 -0
- package/dist/navbar/Navbar.d.ts +12 -0
- package/dist/navbar/Navbar.styles.d.ts +1 -0
- package/dist/navbar/NavbarColors.d.ts +91 -0
- package/dist/navbar/NavbarMenu.styles.d.ts +2 -0
- package/dist/navbar/OpcoesMenu.d.ts +2 -0
- package/dist/paginacao/Paginacao.d.ts +5 -0
- package/dist/paginacao/Paginacao.styles.d.ts +1 -0
- package/dist/panel/panel.d.ts +8 -0
- package/dist/panel/panel.styles.d.ts +1 -0
- package/dist/panel/panelHeader.d.ts +1 -0
- package/dist/panelDashboard/PanelDashboard.d.ts +9 -0
- package/dist/printButtons/printButtons.d.ts +3 -0
- package/dist/printButtons/printButtons.styles.d.ts +1 -0
- package/dist/qrCodeReader/qrCodeReader.d.ts +5 -0
- package/dist/radioGroup/RadioGroup.d.ts +9 -0
- package/dist/radioGroup/RadioGroup.styles.d.ts +1 -0
- package/dist/showIf/ShowIf.d.ts +4 -0
- package/dist/style.css +5 -0
- package/dist/table/table.d.ts +45 -0
- package/dist/table/table.styles.d.ts +3 -0
- package/dist/textHtml/textHtml.d.ts +3 -0
- package/dist/toggle/Toggle.d.ts +10 -0
- package/dist/toggle/Toggle.styles.d.ts +1 -0
- package/dist/update/update.d.ts +1 -0
- package/dist/update/update.styles.d.ts +1 -0
- package/package.json +69 -0
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { ReactNode } from 'react'
|
|
2
|
+
|
|
3
|
+
export type TableColumn = {
|
|
4
|
+
campo: string | ((item: Object) => string | ReactNode)
|
|
5
|
+
campo2: string | ReactNode
|
|
6
|
+
titulo: string
|
|
7
|
+
campoChave?: boolean
|
|
8
|
+
align?: 'center' | 'right' | 'left'
|
|
9
|
+
money?: boolean
|
|
10
|
+
visible: boolean
|
|
11
|
+
className?: string
|
|
12
|
+
tipo?:
|
|
13
|
+
| 'boolean'
|
|
14
|
+
| 'float'
|
|
15
|
+
| 'currency'
|
|
16
|
+
| 'integer'
|
|
17
|
+
| 'string'
|
|
18
|
+
| 'date'
|
|
19
|
+
| 'datetime'
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export type Action = {
|
|
23
|
+
botao: ReactNode
|
|
24
|
+
funcao: (id: any, line: Object) => void
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export type TableActions = {
|
|
28
|
+
campo: string
|
|
29
|
+
acoes: Action[]
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export type TableActions = TableAction[]
|
|
33
|
+
|
|
34
|
+
export type TableProps = {
|
|
35
|
+
colunas: TableColumn[]
|
|
36
|
+
acoes: TableActions
|
|
37
|
+
opcoes: any[]
|
|
38
|
+
dados: any[]
|
|
39
|
+
alignTop?: boolean
|
|
40
|
+
colorir?: boolean
|
|
41
|
+
border?: boolean
|
|
42
|
+
sizeBreak?: number = 767
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export default function Table(props: TableProps): ReactNode
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export const Container: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
+
export const TableContainer: import("styled-components").StyledComponent<"table", any, {}, never>;
|
|
3
|
+
export const CheckedArea: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export default function Toggle({ name, checked, disabled, onChange, children, toRight, className, ...rest }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
name: any;
|
|
4
|
+
checked: any;
|
|
5
|
+
disabled: any;
|
|
6
|
+
onChange: any;
|
|
7
|
+
children: any;
|
|
8
|
+
toRight: any;
|
|
9
|
+
className?: string | undefined;
|
|
10
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const Container: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function CheckUpdates(): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const Container: import("styled-components").StyledComponent<"div", any, {}, never>;
|
package/package.json
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "jclib-ui",
|
|
3
|
+
"version": "0.0.22",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"dev": "vite",
|
|
8
|
+
"build": "tsc && vite build",
|
|
9
|
+
"lint": "eslint . --ext ts,tsx,js,jsx --report-unused-disable-directives --max-warnings 0",
|
|
10
|
+
"preview": "vite preview"
|
|
11
|
+
},
|
|
12
|
+
"dependencies": {
|
|
13
|
+
"localforage": "^1.10.0"
|
|
14
|
+
},
|
|
15
|
+
"devDependencies": {
|
|
16
|
+
"@popperjs/core": "^2.11.8",
|
|
17
|
+
"@types/node": "^20.5.4",
|
|
18
|
+
"@types/react": "^18.2.15",
|
|
19
|
+
"@types/react-dom": "^18.2.7",
|
|
20
|
+
"@types/react-router-dom": "^5.3.3",
|
|
21
|
+
"@types/styled-components": "^5.1.26",
|
|
22
|
+
"@typescript-eslint/eslint-plugin": "^6.0.0",
|
|
23
|
+
"@typescript-eslint/parser": "^6.0.0",
|
|
24
|
+
"@vitejs/plugin-react": "^4.0.3",
|
|
25
|
+
"axios": "^1.5.0",
|
|
26
|
+
"bootstrap": "^5.3.1",
|
|
27
|
+
"eslint": "^8.45.0",
|
|
28
|
+
"eslint-plugin-react": "^7.32.2",
|
|
29
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
30
|
+
"eslint-plugin-react-refresh": "^0.4.3",
|
|
31
|
+
"framer-motion": "^10.16.1",
|
|
32
|
+
"jcinfo-utils": "^1.0.16",
|
|
33
|
+
"react": "^18.2.0",
|
|
34
|
+
"react-custom-scrollbars": "^4.2.1",
|
|
35
|
+
"react-dom": "^18.2.0",
|
|
36
|
+
"react-input-mask": "^2.0.4",
|
|
37
|
+
"react-number-format": "4.8.0",
|
|
38
|
+
"react-qr-reader": "^3.0.0-beta-1",
|
|
39
|
+
"react-router-dom": "5.x",
|
|
40
|
+
"reactstrap": "^9.2.0",
|
|
41
|
+
"sass": "^1.66.1",
|
|
42
|
+
"styled-components": "^5.3.6",
|
|
43
|
+
"vite": "^4.4.5",
|
|
44
|
+
"vite-plugin-dts": "^3.5.2"
|
|
45
|
+
},
|
|
46
|
+
"peerDependencies": {
|
|
47
|
+
"@popperjs/core": "^2.11.8",
|
|
48
|
+
"axios": "^1.5.0",
|
|
49
|
+
"bootstrap": "^5.3.1",
|
|
50
|
+
"framer-motion": "^10.16.1",
|
|
51
|
+
"jcinfo-utils": "^1.0.x",
|
|
52
|
+
"localforage": "^1.x",
|
|
53
|
+
"react": "^18.x",
|
|
54
|
+
"react-custom-scrollbars": "^4.2.1",
|
|
55
|
+
"react-dom": "^18.x",
|
|
56
|
+
"react-input-mask": "^2.0.4",
|
|
57
|
+
"react-number-format": "4.8.0",
|
|
58
|
+
"react-qr-reader": "^3.0.0-beta-1",
|
|
59
|
+
"react-router-dom": "5.x",
|
|
60
|
+
"reactstrap": "^9.2.0",
|
|
61
|
+
"styled-components": "^5.3.6"
|
|
62
|
+
},
|
|
63
|
+
"files": [
|
|
64
|
+
"dist"
|
|
65
|
+
],
|
|
66
|
+
"main": "./dist/jclib-ui.umd.js",
|
|
67
|
+
"module": "./dist/jclib-ui.es.js",
|
|
68
|
+
"types": "./dist/index.d.ts"
|
|
69
|
+
}
|