jclib-ui 1.1.18 → 1.2.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jclib-ui",
3
- "version": "1.1.18",
3
+ "version": "1.2.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "dependencies": {
@@ -1,19 +0,0 @@
1
- import { ReactNode } from 'react';
2
-
3
-
4
- type Props = {
5
- isOpen: boolean
6
- setOpen: (isOpen: boolean) => void
7
- title?: string
8
- placeHolder?: string
9
- searchInit?: string
10
- route: string
11
- keyField: string
12
- fields: string[]
13
- renderLine?: (item) => ReactNode
14
- onClick: (keyValue, item) => void
15
- maxWidth?: number
16
- helpLink?: string
17
- }
18
-
19
- export default function BoxSearch(props: Props)
@@ -1,11 +0,0 @@
1
- type Props = {
2
- title: string
3
- items: any[]
4
- size: string
5
- children: React.ReactNode
6
- direction?: string
7
- color?: string
8
- dados?: any[]
9
- }
10
-
11
- export default function DropDownButton(props: Props)
@@ -1,3 +0,0 @@
1
- type Props = React.InputHTMLAttributes<HTMLInputElement> & { autoSelect?: boolean }
2
-
3
- export default function InputPassword(props: Props): JSX.Element
@@ -1,14 +0,0 @@
1
- import { ReactNode } from 'react';
2
-
3
-
4
- type Props = {
5
- type: number
6
- onConfirm: () => void
7
- onCancel: () => void
8
- title?: string
9
- text?: string
10
- children?: ReactNode
11
- defaultBtn?: number
12
- }
13
-
14
- export function JCAlert(props: Props): ReactNode
@@ -1,11 +0,0 @@
1
- type BotaoSalvarProps = {
2
- loading?: boolean
3
- saveInfo?: boolean
4
- link?: string
5
- fixed?: boolean
6
- modalFixed?: boolean
7
- btnSaveDisabled?: boolean
8
- onCancel?: () => void
9
- onConfirm?: () => void
10
- }
11
- export default function BotaoSalvar(props: BotaoSalvarProps): JSX.Element
@@ -1,7 +0,0 @@
1
- export type Props = {
2
- title?: string
3
- url: string
4
- timerInMilliSeconds?: number
5
- }
6
-
7
- export default function ClipboardArea(props: Props)
@@ -1,32 +0,0 @@
1
- import { default as axios, AxiosRequestConfig, AxiosResponse } from 'axios';
2
- import { globalApiConfig } from './useApi';
3
- import { ReactNode } from 'react';
4
-
5
-
6
- export type ApiRequestConfig = AxiosRequestConfig & {
7
- cache?: boolean
8
- report?: boolean
9
- onTerminated?: (res: AxiosResponse & { error: any; data: any }) => void
10
- onBefore?: (config: ApiRequestConfig) => void
11
- }
12
-
13
- export type ApiResponseConfig = {
14
- isError: boolean //deprecated
15
- message: string | ReactNode | null //deprecated
16
- loading: boolean
17
- headers: any
18
- data: any
19
- error: string | ReactNode | null
20
- code: number
21
- status: number
22
- report: boolean
23
- onBefore: (config: ApiRequestConfig) => void
24
- }
25
-
26
- export type ApiReturn = [
27
- callRequest: (config?: ApiRequestConfig) => Promise<ApiResponseConfig>,
28
- requestInto: ApiResponseConfig,
29
- callCancel: () => void,
30
- ]
31
-
32
- export default function useApi(initialConfig: ApiRequestConfig): ApiReturn
@@ -1,10 +0,0 @@
1
- type Props = React.InputHTMLAttributes<HTMLInputElement> & {
2
- search?: string
3
- setSearch?: (value: string) => void
4
- fnSearch?: () => void
5
- fnFilter?: () => void
6
- fnValidateFilter?: () => boolean
7
- placeHolder?: string
8
- }
9
-
10
- export default function InputPesquisa(props: Props): JSX.Element
@@ -1,19 +0,0 @@
1
- import { default as React } from 'react';
2
-
3
-
4
- type Props = {
5
- title: string
6
- visible: boolean
7
- setVisible: (value: boolean) => void
8
- id?: string
9
- codigo: number
10
- maxWidth?: number
11
- hideScrollBar?: boolean
12
- id?: string
13
- children: React.ReactNode
14
- paddingBottom?: number
15
- alignTop?: boolean
16
- helpLink?: string
17
- }
18
-
19
- export default function ModalBox(props: Props)
@@ -1,11 +0,0 @@
1
- type Props = {
2
- title?: string
3
- maxWidth: number
4
- children: React.ReactNode
5
- setVisible: (value: boolean) => void
6
- fnApplyFilter: (filtered: boolean) => void
7
- alignTop?: boolean
8
- helpLink?: string
9
- }
10
-
11
- export default function ModalFilter(props: Props)
@@ -1,9 +0,0 @@
1
- import { MenusConfig } from './OpcoesMenu';
2
-
3
-
4
- export type NavbarProps = {
5
- menusConfig: MenusConfig
6
- helpLink?: string
7
- }
8
-
9
- export default function Navbar(props: NavbarProps): ReactNode
@@ -1,91 +0,0 @@
1
- export namespace lightColors {
2
- let bgColor1: string;
3
- let bgColor2: string;
4
- let bgColorHover: string;
5
- let fgColor: string;
6
- let brandColor: string;
7
- let empColor: string;
8
- let empDocColor: string;
9
- let btnColor: string;
10
- let btnBorderColor: string;
11
- let menuBgColor: string;
12
- let menuFgColor: string;
13
- let menuBorderColor: string;
14
- let menuHoverColor: string;
15
- let menuGroupBg: string;
16
- let iconColor: string;
17
- let iconSairColor: string;
18
- let iconFavColor: string;
19
- }
20
- export namespace darkColors {
21
- let bgColor1_1: string;
22
- export { bgColor1_1 as bgColor1 };
23
- let bgColor2_1: string;
24
- export { bgColor2_1 as bgColor2 };
25
- let bgColorHover_1: string;
26
- export { bgColorHover_1 as bgColorHover };
27
- let fgColor_1: string;
28
- export { fgColor_1 as fgColor };
29
- let brandColor_1: string;
30
- export { brandColor_1 as brandColor };
31
- let empColor_1: string;
32
- export { empColor_1 as empColor };
33
- let empDocColor_1: string;
34
- export { empDocColor_1 as empDocColor };
35
- let btnColor_1: string;
36
- export { btnColor_1 as btnColor };
37
- let btnBorderColor_1: string;
38
- export { btnBorderColor_1 as btnBorderColor };
39
- let menuBgColor_1: string;
40
- export { menuBgColor_1 as menuBgColor };
41
- let menuFgColor_1: string;
42
- export { menuFgColor_1 as menuFgColor };
43
- let menuBorderColor_1: string;
44
- export { menuBorderColor_1 as menuBorderColor };
45
- let menuHoverColor_1: string;
46
- export { menuHoverColor_1 as menuHoverColor };
47
- let menuGroupBg_1: string;
48
- export { menuGroupBg_1 as menuGroupBg };
49
- let iconColor_1: string;
50
- export { iconColor_1 as iconColor };
51
- let iconSairColor_1: string;
52
- export { iconSairColor_1 as iconSairColor };
53
- let iconFavColor_1: string;
54
- export { iconFavColor_1 as iconFavColor };
55
- }
56
- export namespace darkLightColors {
57
- let bgColor1_2: string;
58
- export { bgColor1_2 as bgColor1 };
59
- let bgColor2_2: string;
60
- export { bgColor2_2 as bgColor2 };
61
- let bgColorHover_2: string;
62
- export { bgColorHover_2 as bgColorHover };
63
- let fgColor_2: string;
64
- export { fgColor_2 as fgColor };
65
- let brandColor_2: string;
66
- export { brandColor_2 as brandColor };
67
- let empColor_2: string;
68
- export { empColor_2 as empColor };
69
- let empDocColor_2: string;
70
- export { empDocColor_2 as empDocColor };
71
- let btnColor_2: string;
72
- export { btnColor_2 as btnColor };
73
- let btnBorderColor_2: string;
74
- export { btnBorderColor_2 as btnBorderColor };
75
- let menuBgColor_2: string;
76
- export { menuBgColor_2 as menuBgColor };
77
- let menuFgColor_2: string;
78
- export { menuFgColor_2 as menuFgColor };
79
- let menuBorderColor_2: string;
80
- export { menuBorderColor_2 as menuBorderColor };
81
- let menuHoverColor_2: string;
82
- export { menuHoverColor_2 as menuHoverColor };
83
- let menuGroupBg_2: string;
84
- export { menuGroupBg_2 as menuGroupBg };
85
- let iconColor_2: string;
86
- export { iconColor_2 as iconColor };
87
- let iconSairColor_2: string;
88
- export { iconSairColor_2 as iconSairColor };
89
- let iconFavColor_2: string;
90
- export { iconFavColor_2 as iconFavColor };
91
- }
@@ -1,39 +0,0 @@
1
- import * as React from 'react'
2
-
3
- export interface InputMaskSelection {
4
- start: number | null
5
- end: number | null
6
- }
7
-
8
- export interface InputMaskState {
9
- value: string
10
- selection: InputMaskSelection | null
11
- }
12
-
13
- export interface BeforeMaskedStateChangeStates {
14
- previousState?: InputMaskState
15
- currentState?: InputMaskState
16
- nextState: InputMaskState
17
- }
18
-
19
- export interface InputMaskProps
20
- extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'children'> {
21
- /** `9` dígito, `a` letra, `*` letra ou dígito; `\` escapa um caractere. Array aceita strings (fixas) e RegExp. */
22
- mask?: string | Array<string | RegExp> | null
23
- /** Um caractere (repetido nas posições editáveis) ou string do mesmo tamanho da máscara. `null` oculta o placeholder. */
24
- maskPlaceholder?: string | null
25
- /** Mantém a máscara visível mesmo sem foco e com valor vazio. */
26
- alwaysShowMask?: boolean
27
- /** Permite alterar o próximo estado (valor/seleção) antes de ser aplicado. */
28
- beforeMaskedStateChange?: (
29
- states: BeforeMaskedStateChangeStates
30
- ) => InputMaskState
31
- /** Elemento de input customizado; `value`, `onChange`, `onFocus`, `onBlur`, `onMouseDown`, `disabled` e `readOnly` devem ir no InputMask. */
32
- children?: React.ReactElement
33
- }
34
-
35
- declare const InputMask: React.ForwardRefExoticComponent<
36
- InputMaskProps & React.RefAttributes<HTMLInputElement>
37
- >
38
-
39
- export default InputMask