@loja-integrada/admin-components 1.0.0 → 1.0.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.
- package/README.md +89 -2
- package/dist/chunk-22FGINA5.js +9 -0
- package/dist/chunk-24UC33BJ.js +8 -0
- package/dist/chunk-2H2JX2FG.js +5 -0
- package/dist/chunk-3OHDGUPG.js +7 -0
- package/dist/chunk-63ACUGSG.js +7 -0
- package/dist/chunk-767NPRMO.js +10 -0
- package/dist/chunk-AZI2H7OT.js +9 -0
- package/dist/chunk-BW2HQVCT.js +7 -0
- package/dist/chunk-DBWOW4GL.js +1 -0
- package/dist/chunk-DIFKNF3L.js +1 -0
- package/dist/chunk-IA7GSQNX.js +1 -0
- package/dist/chunk-IPSRY3RR.js +9 -0
- package/dist/chunk-K5XL557B.js +9 -0
- package/dist/chunk-KEVA65S5.js +10 -0
- package/dist/chunk-L6H2NDVS.js +3 -0
- package/dist/chunk-LJS4TVL3.js +10 -0
- package/dist/chunk-LTHYFCE7.js +7 -0
- package/dist/chunk-N73XF5FY.js +10 -0
- package/dist/chunk-NHDLQM42.js +10 -0
- package/dist/chunk-QNBPXACD.js +8 -0
- package/dist/chunk-RGSYU4MA.js +7 -0
- package/dist/chunk-RL2XPX57.js +7 -0
- package/dist/chunk-RPTUERXQ.js +8 -0
- package/dist/chunk-TZI6YTCW.js +7 -0
- package/dist/chunk-V3MWWR5B.js +10 -0
- package/dist/chunk-WEYSRHTX.js +6 -0
- package/dist/chunk-WEZVMEBK.js +7 -0
- package/dist/chunk-YDYMRCXH.js +8 -0
- package/dist/{chunk-W64HPITJ.js → chunk-YTHY4XI2.js} +3 -2
- package/dist/components/Button/index.d.ts +51 -5
- package/dist/components/Button/index.js +4 -3
- package/dist/components/DataTable/index.d.ts +77 -0
- package/dist/components/DataTable/index.js +6 -0
- package/dist/components/Icon/index.d.ts +127 -3
- package/dist/components/Icon/index.js +3 -1
- package/dist/components/IconCircular/index.d.ts +21 -3
- package/dist/components/IconCircular/index.js +4 -3
- package/dist/components/LoadingPlaceholder/index.d.ts +12 -0
- package/dist/components/LoadingPlaceholder/index.js +2 -0
- package/dist/components/Modal/index.css +1 -0
- package/dist/components/Modal/index.d.ts +56 -0
- package/dist/components/Modal/index.js +5 -0
- package/dist/components/SidebarFixed/index.d.ts +36 -0
- package/dist/components/SidebarFixed/index.js +5 -0
- package/dist/components/Table/index.d.ts +12 -0
- package/dist/components/Table/index.js +2 -0
- package/dist/components/Tabs/index.d.ts +47 -0
- package/dist/components/Tabs/index.js +2 -0
- package/dist/components/index.css +1 -0
- package/dist/components/index.js +15 -0
- package/dist/forms/Checkbox/index.d.ts +31 -0
- package/dist/forms/Checkbox/index.js +3 -0
- package/dist/forms/Input/index.d.ts +44 -0
- package/dist/forms/Input/index.js +4 -0
- package/dist/forms/InputHelpText/index.d.ts +20 -0
- package/dist/forms/InputHelpText/index.js +2 -0
- package/dist/forms/InputLabel/index.d.ts +32 -0
- package/dist/forms/InputLabel/index.js +2 -0
- package/dist/forms/InputMask/index.d.ts +29 -0
- package/dist/forms/InputMask/index.js +5 -0
- package/dist/forms/index.js +7 -0
- package/dist/icons-path/index.js +1 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +28 -241
- package/dist/index.js +31 -18
- package/dist/indicators/Alert/index.d.ts +50 -0
- package/dist/indicators/Alert/index.js +5 -0
- package/dist/indicators/Badge/index.d.ts +33 -0
- package/dist/indicators/Badge/index.js +2 -0
- package/dist/indicators/Tag/index.css +1 -0
- package/dist/indicators/Tag/index.d.ts +36 -0
- package/dist/indicators/Tag/index.js +16 -0
- package/dist/indicators/Tooltip/index.css +1 -0
- package/dist/indicators/Tooltip/index.d.ts +57 -0
- package/dist/indicators/Tooltip/index.js +1 -0
- package/dist/indicators/index.css +1 -0
- package/dist/indicators/index.js +20 -0
- package/dist/layout/ActionBar/index.d.ts +21 -0
- package/dist/layout/ActionBar/index.js +7 -0
- package/dist/layout/Box/index.d.ts +71 -0
- package/dist/layout/Box/index.js +4 -0
- package/dist/layout/Container/index.d.ts +18 -0
- package/dist/layout/Container/index.js +3 -0
- package/dist/layout/index.js +10 -0
- package/dist/navigation/Breadcrumb/index.d.ts +45 -0
- package/dist/navigation/Breadcrumb/index.js +6 -0
- package/dist/navigation/HelpLink/index.d.ts +32 -0
- package/dist/navigation/HelpLink/index.js +5 -0
- package/dist/navigation/Stepper/index.d.ts +31 -0
- package/dist/navigation/Stepper/index.js +7 -0
- package/dist/navigation/index.js +7 -0
- package/package.json +95 -34
- package/dist/chunk-3IB6AR7I.js +0 -8
- package/dist/chunk-C3ECJWEX.js +0 -7
- package/dist/components/Button/Button.d.ts +0 -52
- package/dist/components/Button/Button.js +0 -3
- package/dist/components/Icon/Icon.d.ts +0 -127
- package/dist/components/Icon/Icon.js +0 -1
- package/dist/components/IconCircular/IconCircular.d.ts +0 -22
- package/dist/components/IconCircular/IconCircular.js +0 -3
- /package/dist/{chunk-AYBQ5B4L.js → chunk-27G6ETZK.js} +0 -0
- /package/dist/{chunk-QCTWLTAA.js → chunk-AKA4VSQF.js} +0 -0
|
@@ -1,6 +1,52 @@
|
|
|
1
|
-
|
|
2
|
-
import 'class-variance-authority
|
|
3
|
-
import '
|
|
4
|
-
import '
|
|
5
|
-
import '../Icon/Icon.js';
|
|
1
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
|
+
import React__default from 'react';
|
|
4
|
+
import { IconProps } from '../Icon/index.js';
|
|
6
5
|
import 'react/jsx-runtime';
|
|
6
|
+
|
|
7
|
+
declare const buttonVariants: (props?: ({
|
|
8
|
+
variant?: "primary" | "secondary" | "tertiary" | "warning" | "danger" | "outline" | "outlineSecondary" | "onlyText" | null | undefined;
|
|
9
|
+
size?: "small" | "default" | "large" | null | undefined;
|
|
10
|
+
disabled?: boolean | null | undefined;
|
|
11
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
12
|
+
declare const Button: React__default.MemoExoticComponent<React__default.ForwardRefExoticComponent<ButtonProps & React__default.RefAttributes<HTMLButtonAnchorElement>>>;
|
|
13
|
+
type ButtonAnchorProps = React__default.ButtonHTMLAttributes<HTMLButtonElement> & React__default.AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
14
|
+
type HTMLButtonAnchorElement = HTMLButtonElement & HTMLAnchorElement;
|
|
15
|
+
type ButtonVariantsType = VariantProps<typeof buttonVariants>;
|
|
16
|
+
interface ButtonProps extends ButtonAnchorProps, ButtonVariantsType {
|
|
17
|
+
/** Type of component to use
|
|
18
|
+
* @default button
|
|
19
|
+
* */
|
|
20
|
+
as?: 'a' | 'button';
|
|
21
|
+
/**
|
|
22
|
+
* Custom class
|
|
23
|
+
*/
|
|
24
|
+
className?: string;
|
|
25
|
+
/** Button variant
|
|
26
|
+
* @default primary
|
|
27
|
+
* */
|
|
28
|
+
variant?: 'primary' | 'secondary' | 'outlineSecondary' | 'tertiary' | 'warning' | 'danger' | 'outline' | 'onlyText';
|
|
29
|
+
/** Size of the button
|
|
30
|
+
* @default default
|
|
31
|
+
* */
|
|
32
|
+
size?: 'small' | 'default' | 'large';
|
|
33
|
+
/**
|
|
34
|
+
* Button is loading
|
|
35
|
+
* */
|
|
36
|
+
loading?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Button is disabled
|
|
39
|
+
* */
|
|
40
|
+
disabled?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Icon of the button
|
|
43
|
+
*/
|
|
44
|
+
icon?: IconProps['icon'];
|
|
45
|
+
/**
|
|
46
|
+
* Icon of the button
|
|
47
|
+
* @default 'right'
|
|
48
|
+
*/
|
|
49
|
+
iconPosition?: 'left' | 'right';
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export { Button, type ButtonProps };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
export { a as Button } from '../../chunk-W64HPITJ.js';
|
|
1
|
+
export { a as Button } from '../../chunk-YTHY4XI2.js';
|
|
3
2
|
import '../../chunk-LTWCICTK.js';
|
|
4
|
-
import '../../chunk-
|
|
3
|
+
import '../../chunk-RPTUERXQ.js';
|
|
4
|
+
import '../../chunk-2H2JX2FG.js';
|
|
5
|
+
import '../../chunk-WEYSRHTX.js';
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ColumnDef } from '@tanstack/react-table';
|
|
3
|
+
|
|
4
|
+
declare const DataTable: <TData>({ columns: columnsProps, data, isLoading, error, selectable, showSelectAll, showCountSelected, onChange, selectedIds, disabledIds, id, emptyText, errorText }: DataTableProps<TData>) => react_jsx_runtime.JSX.Element;
|
|
5
|
+
type DataTableColumn<TData> = ColumnDef<TData> & {
|
|
6
|
+
className?: {
|
|
7
|
+
header?: string;
|
|
8
|
+
cell?: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
interface DataTableProps<TData> {
|
|
12
|
+
/**
|
|
13
|
+
* Array of columns to be displayed in the table
|
|
14
|
+
*/
|
|
15
|
+
columns: DataTableColumn<TData>[];
|
|
16
|
+
/**
|
|
17
|
+
* Array of data to be displayed in the table
|
|
18
|
+
*/
|
|
19
|
+
data?: TData[];
|
|
20
|
+
/**
|
|
21
|
+
* Table is loading
|
|
22
|
+
* @default false
|
|
23
|
+
*/
|
|
24
|
+
isLoading?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Table has an error
|
|
27
|
+
* @default false
|
|
28
|
+
*/
|
|
29
|
+
error?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Makes rows selectable.
|
|
32
|
+
* @default false
|
|
33
|
+
*/
|
|
34
|
+
selectable?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Show select all checkbox in the header,
|
|
37
|
+
* when the table is selectable.
|
|
38
|
+
* @default true
|
|
39
|
+
*/
|
|
40
|
+
showSelectAll?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Show count of selected rows in the header
|
|
43
|
+
* @default true
|
|
44
|
+
*/
|
|
45
|
+
showCountSelected?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Content to show when table is empty
|
|
48
|
+
* @default 'Nenhum registro encontrado'
|
|
49
|
+
*/
|
|
50
|
+
emptyText?: string | React.ReactNode;
|
|
51
|
+
/**
|
|
52
|
+
* Content to show when an error occurs
|
|
53
|
+
* @default 'Ocorreu um erro ao carregar os itens.'
|
|
54
|
+
*/
|
|
55
|
+
errorText?: string | React.ReactNode;
|
|
56
|
+
/**
|
|
57
|
+
* Fired when the row is selectable and the Checkbox of the header/row is clicked
|
|
58
|
+
*/
|
|
59
|
+
onChange?: (selectedRows: string[]) => void;
|
|
60
|
+
/**
|
|
61
|
+
* Array containing the id of selected rows.
|
|
62
|
+
* @default undefined
|
|
63
|
+
*/
|
|
64
|
+
selectedIds?: string[];
|
|
65
|
+
/**
|
|
66
|
+
* Array containing the id of disabled rows.
|
|
67
|
+
* @default []
|
|
68
|
+
*/
|
|
69
|
+
disabledIds?: string[];
|
|
70
|
+
/**
|
|
71
|
+
* Id of the table.
|
|
72
|
+
* @default undefined
|
|
73
|
+
*/
|
|
74
|
+
id?: string;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export { DataTable, type DataTableColumn, type DataTableProps };
|
|
@@ -1,3 +1,127 @@
|
|
|
1
|
-
|
|
2
|
-
import 'react';
|
|
3
|
-
|
|
1
|
+
import { FunctionComponent } from 'react';
|
|
2
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
+
|
|
4
|
+
declare const icons: {
|
|
5
|
+
adjust: () => react_jsx_runtime.JSX.Element;
|
|
6
|
+
angleDiagonal: () => react_jsx_runtime.JSX.Element;
|
|
7
|
+
angleDown: () => react_jsx_runtime.JSX.Element;
|
|
8
|
+
angleHeight: () => react_jsx_runtime.JSX.Element;
|
|
9
|
+
angleLeft: () => react_jsx_runtime.JSX.Element;
|
|
10
|
+
angleRight: () => react_jsx_runtime.JSX.Element;
|
|
11
|
+
angleWidth: () => react_jsx_runtime.JSX.Element;
|
|
12
|
+
app: () => react_jsx_runtime.JSX.Element;
|
|
13
|
+
arrow: () => react_jsx_runtime.JSX.Element;
|
|
14
|
+
arrowLeft: () => react_jsx_runtime.JSX.Element;
|
|
15
|
+
arrowRight: () => react_jsx_runtime.JSX.Element;
|
|
16
|
+
back: () => react_jsx_runtime.JSX.Element;
|
|
17
|
+
ban: () => react_jsx_runtime.JSX.Element;
|
|
18
|
+
barcodeRead: () => react_jsx_runtime.JSX.Element;
|
|
19
|
+
bell: () => react_jsx_runtime.JSX.Element;
|
|
20
|
+
blog: () => react_jsx_runtime.JSX.Element;
|
|
21
|
+
bullhorn: () => react_jsx_runtime.JSX.Element;
|
|
22
|
+
calculator: () => react_jsx_runtime.JSX.Element;
|
|
23
|
+
calendarAlt: () => react_jsx_runtime.JSX.Element;
|
|
24
|
+
camera: () => react_jsx_runtime.JSX.Element;
|
|
25
|
+
check: () => react_jsx_runtime.JSX.Element;
|
|
26
|
+
checkCircle: () => react_jsx_runtime.JSX.Element;
|
|
27
|
+
clock: () => react_jsx_runtime.JSX.Element;
|
|
28
|
+
close: () => react_jsx_runtime.JSX.Element;
|
|
29
|
+
cog: () => react_jsx_runtime.JSX.Element;
|
|
30
|
+
copy: () => react_jsx_runtime.JSX.Element;
|
|
31
|
+
creditcard: () => react_jsx_runtime.JSX.Element;
|
|
32
|
+
discount: () => react_jsx_runtime.JSX.Element;
|
|
33
|
+
desktop: () => react_jsx_runtime.JSX.Element;
|
|
34
|
+
download: () => react_jsx_runtime.JSX.Element;
|
|
35
|
+
edit: () => react_jsx_runtime.JSX.Element;
|
|
36
|
+
exchange: () => react_jsx_runtime.JSX.Element;
|
|
37
|
+
exclamation: () => react_jsx_runtime.JSX.Element;
|
|
38
|
+
exclamationCircle: () => react_jsx_runtime.JSX.Element;
|
|
39
|
+
exclamationTriangle: () => react_jsx_runtime.JSX.Element;
|
|
40
|
+
externalLink: () => react_jsx_runtime.JSX.Element;
|
|
41
|
+
eye: () => react_jsx_runtime.JSX.Element;
|
|
42
|
+
eyeSlash: () => react_jsx_runtime.JSX.Element;
|
|
43
|
+
filter: () => react_jsx_runtime.JSX.Element;
|
|
44
|
+
halfBack: () => react_jsx_runtime.JSX.Element;
|
|
45
|
+
home: () => react_jsx_runtime.JSX.Element;
|
|
46
|
+
iconSolidEnviali: () => react_jsx_runtime.JSX.Element;
|
|
47
|
+
iconSolidLI: () => react_jsx_runtime.JSX.Element;
|
|
48
|
+
image: () => react_jsx_runtime.JSX.Element;
|
|
49
|
+
infoCircle: () => react_jsx_runtime.JSX.Element;
|
|
50
|
+
lightbulb: () => react_jsx_runtime.JSX.Element;
|
|
51
|
+
link: () => react_jsx_runtime.JSX.Element;
|
|
52
|
+
loading: () => react_jsx_runtime.JSX.Element;
|
|
53
|
+
minus: () => react_jsx_runtime.JSX.Element;
|
|
54
|
+
mobile: () => react_jsx_runtime.JSX.Element;
|
|
55
|
+
moneyBill: () => react_jsx_runtime.JSX.Element;
|
|
56
|
+
move: () => react_jsx_runtime.JSX.Element;
|
|
57
|
+
nav: () => react_jsx_runtime.JSX.Element;
|
|
58
|
+
order: () => react_jsx_runtime.JSX.Element;
|
|
59
|
+
pagali: () => react_jsx_runtime.JSX.Element;
|
|
60
|
+
paperList: () => react_jsx_runtime.JSX.Element;
|
|
61
|
+
pieChart: () => react_jsx_runtime.JSX.Element;
|
|
62
|
+
pix: () => react_jsx_runtime.JSX.Element;
|
|
63
|
+
plus: () => react_jsx_runtime.JSX.Element;
|
|
64
|
+
plusCircle: () => react_jsx_runtime.JSX.Element;
|
|
65
|
+
print: () => react_jsx_runtime.JSX.Element;
|
|
66
|
+
product: () => react_jsx_runtime.JSX.Element;
|
|
67
|
+
questionCircle: () => react_jsx_runtime.JSX.Element;
|
|
68
|
+
reload: () => react_jsx_runtime.JSX.Element;
|
|
69
|
+
rocket: () => react_jsx_runtime.JSX.Element;
|
|
70
|
+
search: () => react_jsx_runtime.JSX.Element;
|
|
71
|
+
shoppingCart: () => react_jsx_runtime.JSX.Element;
|
|
72
|
+
sortDown: () => react_jsx_runtime.JSX.Element;
|
|
73
|
+
sync: () => react_jsx_runtime.JSX.Element;
|
|
74
|
+
thinAngleRight: () => react_jsx_runtime.JSX.Element;
|
|
75
|
+
times: () => react_jsx_runtime.JSX.Element;
|
|
76
|
+
timesCircle: () => react_jsx_runtime.JSX.Element;
|
|
77
|
+
trash: () => react_jsx_runtime.JSX.Element;
|
|
78
|
+
truck: () => react_jsx_runtime.JSX.Element;
|
|
79
|
+
tv: () => react_jsx_runtime.JSX.Element;
|
|
80
|
+
upload: () => react_jsx_runtime.JSX.Element;
|
|
81
|
+
usdCircle: () => react_jsx_runtime.JSX.Element;
|
|
82
|
+
user: () => react_jsx_runtime.JSX.Element;
|
|
83
|
+
whatsapp: () => react_jsx_runtime.JSX.Element;
|
|
84
|
+
clockwise: () => react_jsx_runtime.JSX.Element;
|
|
85
|
+
defaultCursor: () => react_jsx_runtime.JSX.Element;
|
|
86
|
+
envelope: () => react_jsx_runtime.JSX.Element;
|
|
87
|
+
exchangeY: () => react_jsx_runtime.JSX.Element;
|
|
88
|
+
hashtag: () => react_jsx_runtime.JSX.Element;
|
|
89
|
+
identificationBadge: () => react_jsx_runtime.JSX.Element;
|
|
90
|
+
listItems: () => react_jsx_runtime.JSX.Element;
|
|
91
|
+
store: () => react_jsx_runtime.JSX.Element;
|
|
92
|
+
trophy: () => react_jsx_runtime.JSX.Element;
|
|
93
|
+
dashedCircle: () => react_jsx_runtime.JSX.Element;
|
|
94
|
+
minusCircle: () => react_jsx_runtime.JSX.Element;
|
|
95
|
+
minusCircleSolid: () => react_jsx_runtime.JSX.Element;
|
|
96
|
+
dotsThree: () => react_jsx_runtime.JSX.Element;
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
declare const iconSizes: {
|
|
100
|
+
1: string;
|
|
101
|
+
2: string;
|
|
102
|
+
3: string;
|
|
103
|
+
4: string;
|
|
104
|
+
5: string;
|
|
105
|
+
6: string;
|
|
106
|
+
7: string;
|
|
107
|
+
8: string;
|
|
108
|
+
9: string;
|
|
109
|
+
10: string;
|
|
110
|
+
};
|
|
111
|
+
declare const Icon: FunctionComponent<IconProps>;
|
|
112
|
+
interface IconProps {
|
|
113
|
+
/**
|
|
114
|
+
* Icon variation
|
|
115
|
+
*/
|
|
116
|
+
icon: keyof typeof icons;
|
|
117
|
+
/** Icon size, number between 1 and 10
|
|
118
|
+
* @default 5
|
|
119
|
+
*/
|
|
120
|
+
size?: keyof typeof iconSizes;
|
|
121
|
+
/**
|
|
122
|
+
* Additional classes for icon
|
|
123
|
+
*/
|
|
124
|
+
className?: string;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export { Icon, type IconProps };
|
|
@@ -1,4 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
import '
|
|
3
|
-
import '../Icon/Icon.js';
|
|
1
|
+
import { FunctionComponent } from 'react';
|
|
2
|
+
import { IconProps } from '../Icon/index.js';
|
|
4
3
|
import 'react/jsx-runtime';
|
|
4
|
+
|
|
5
|
+
type variantType = 'success' | 'warning' | 'danger';
|
|
6
|
+
declare const IconCircular: FunctionComponent<IconCircularProps>;
|
|
7
|
+
interface IconCircularProps {
|
|
8
|
+
/** Icon circular variant
|
|
9
|
+
* @default success
|
|
10
|
+
* */
|
|
11
|
+
variant?: variantType;
|
|
12
|
+
/**
|
|
13
|
+
* Icon variation
|
|
14
|
+
*/
|
|
15
|
+
icon?: IconProps['icon'];
|
|
16
|
+
/**
|
|
17
|
+
* Custom class for background
|
|
18
|
+
*/
|
|
19
|
+
bgClass?: string;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export { IconCircular, type IconCircularProps };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
export { a as IconCircular } from '../../chunk-C3ECJWEX.js';
|
|
1
|
+
export { a as IconCircular } from '../../chunk-BW2HQVCT.js';
|
|
3
2
|
import '../../chunk-LTWCICTK.js';
|
|
4
|
-
import '../../chunk-
|
|
3
|
+
import '../../chunk-RPTUERXQ.js';
|
|
4
|
+
import '../../chunk-2H2JX2FG.js';
|
|
5
|
+
import '../../chunk-WEYSRHTX.js';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
|
|
4
|
+
declare const LoadingPlaceholder: React__default.MemoExoticComponent<({ className }: LoadingPlaceholderProps) => react_jsx_runtime.JSX.Element>;
|
|
5
|
+
interface LoadingPlaceholderProps {
|
|
6
|
+
/**
|
|
7
|
+
* Custom class name
|
|
8
|
+
*/
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export { LoadingPlaceholder, type LoadingPlaceholderProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ReactModal__Overlay--after-open{opacity:1}.ReactModal__Overlay--before-close{opacity:0}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
|
|
4
|
+
declare const Modal: React__default.MemoExoticComponent<({ className, isOpen, preventClose, size, headerStep, headerTitle, headerClose, footerActions, onClose, closeTimeout, parentSelector, children }: ModalProps) => react_jsx_runtime.JSX.Element>;
|
|
5
|
+
interface ModalProps {
|
|
6
|
+
/**
|
|
7
|
+
* Custom class name
|
|
8
|
+
* */
|
|
9
|
+
className?: string;
|
|
10
|
+
/** Modal is open
|
|
11
|
+
* @default false
|
|
12
|
+
*/
|
|
13
|
+
isOpen?: boolean;
|
|
14
|
+
/** Prevent modal close
|
|
15
|
+
* @default false
|
|
16
|
+
*/
|
|
17
|
+
preventClose?: boolean;
|
|
18
|
+
/** Modal width
|
|
19
|
+
* @default 'default'
|
|
20
|
+
* */
|
|
21
|
+
size?: 'default' | 'large' | 'small';
|
|
22
|
+
/**
|
|
23
|
+
* Modal step, above the title
|
|
24
|
+
* */
|
|
25
|
+
headerStep?: string | React__default.ReactNode;
|
|
26
|
+
/**
|
|
27
|
+
* Modal title
|
|
28
|
+
* */
|
|
29
|
+
headerTitle?: string | React__default.ReactNode;
|
|
30
|
+
/** Close text at header
|
|
31
|
+
* @default ''
|
|
32
|
+
* */
|
|
33
|
+
headerClose?: string | false;
|
|
34
|
+
/**
|
|
35
|
+
* Call when modal is closed
|
|
36
|
+
* */
|
|
37
|
+
onClose?: () => void;
|
|
38
|
+
/**
|
|
39
|
+
* Number indicating the milliseconds to wait before closing the modal
|
|
40
|
+
* */
|
|
41
|
+
closeTimeout?: number;
|
|
42
|
+
/**
|
|
43
|
+
* React children
|
|
44
|
+
*/
|
|
45
|
+
children?: React__default.ReactNode;
|
|
46
|
+
/**
|
|
47
|
+
* React children
|
|
48
|
+
*/
|
|
49
|
+
footerActions?: React__default.ReactNode;
|
|
50
|
+
/** The parent element that the modal will be attached to
|
|
51
|
+
* @default 'document.body'
|
|
52
|
+
*/
|
|
53
|
+
parentSelector?: HTMLElement | null;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export { Modal, type ModalProps };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
|
|
3
|
+
declare const SidebarFixedComponent: React__default.FC<SidebarFixedProps>;
|
|
4
|
+
declare const SidebarFixed: React__default.NamedExoticComponent<SidebarFixedProps>;
|
|
5
|
+
interface SidebarFixedProps {
|
|
6
|
+
/**
|
|
7
|
+
* React children
|
|
8
|
+
*/
|
|
9
|
+
children?: React__default.ReactNode;
|
|
10
|
+
/**
|
|
11
|
+
* Bottom actions
|
|
12
|
+
*/
|
|
13
|
+
footerActions?: React__default.ReactNode;
|
|
14
|
+
/** Sidebar is open
|
|
15
|
+
* @default false
|
|
16
|
+
*/
|
|
17
|
+
isOpen?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Call when sidebar is closed
|
|
20
|
+
* */
|
|
21
|
+
onClose?: () => void;
|
|
22
|
+
/**
|
|
23
|
+
* Title displayed in header
|
|
24
|
+
*/
|
|
25
|
+
title?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Help external link
|
|
28
|
+
*/
|
|
29
|
+
helpLink?: string;
|
|
30
|
+
/** The parent element that the sidebar will be attached to
|
|
31
|
+
* @default 'document.body'
|
|
32
|
+
*/
|
|
33
|
+
parentSelector?: HTMLElement | null;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export { SidebarFixed, SidebarFixedComponent, type SidebarFixedProps };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
declare const Table: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableElement> & React.RefAttributes<HTMLTableElement>>;
|
|
4
|
+
declare const TableHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
5
|
+
declare const TableHead: React.ForwardRefExoticComponent<React.ThHTMLAttributes<HTMLTableCellElement> & React.RefAttributes<HTMLTableCellElement>>;
|
|
6
|
+
declare const TableBody: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
7
|
+
declare const TableFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
8
|
+
declare const TableRow: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableRowElement> & React.RefAttributes<HTMLTableRowElement>>;
|
|
9
|
+
declare const TableCell: React.ForwardRefExoticComponent<React.TdHTMLAttributes<HTMLTableCellElement> & React.RefAttributes<HTMLTableCellElement>>;
|
|
10
|
+
declare const TableCaption: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableCaptionElement> & React.RefAttributes<HTMLTableCaptionElement>>;
|
|
11
|
+
|
|
12
|
+
export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import * as React$1 from 'react';
|
|
2
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
+
|
|
4
|
+
interface TabsItemInterface {
|
|
5
|
+
/**
|
|
6
|
+
* Custom class name
|
|
7
|
+
*/
|
|
8
|
+
className?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Item identification
|
|
11
|
+
*/
|
|
12
|
+
id: string;
|
|
13
|
+
/**
|
|
14
|
+
* Item visible title
|
|
15
|
+
*/
|
|
16
|
+
title: string;
|
|
17
|
+
/**
|
|
18
|
+
* Complement to title
|
|
19
|
+
* */
|
|
20
|
+
titleComplement?: string | React.ReactNode | ((isActive: boolean) => React.ReactNode);
|
|
21
|
+
/**
|
|
22
|
+
* Disabled a specific tab
|
|
23
|
+
*/
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
declare const Tabs: React$1.MemoExoticComponent<({ className, items, activeItem, onChange }: TabsProps) => react_jsx_runtime.JSX.Element | null>;
|
|
28
|
+
interface TabsProps {
|
|
29
|
+
/**
|
|
30
|
+
* Custom class name
|
|
31
|
+
* */
|
|
32
|
+
className?: string;
|
|
33
|
+
/**
|
|
34
|
+
* ID of the active item
|
|
35
|
+
*/
|
|
36
|
+
activeItem?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Tab item
|
|
39
|
+
*/
|
|
40
|
+
items?: TabsItemInterface[];
|
|
41
|
+
/**
|
|
42
|
+
* Callback handle when selected item change
|
|
43
|
+
* */
|
|
44
|
+
onChange?: (activeTabId: string) => void;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export { Tabs, type TabsProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ReactModal__Overlay--after-open{opacity:1}.ReactModal__Overlay--before-close{opacity:0}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import '../chunk-DIFKNF3L.js';
|
|
2
|
+
export { a as IconCircular } from '../chunk-BW2HQVCT.js';
|
|
3
|
+
export { a as Button } from '../chunk-YTHY4XI2.js';
|
|
4
|
+
export { a as DataTable } from '../chunk-KEVA65S5.js';
|
|
5
|
+
export { a as LoadingPlaceholder } from '../chunk-LTHYFCE7.js';
|
|
6
|
+
export { a as Modal } from '../chunk-V3MWWR5B.js';
|
|
7
|
+
export { b as SidebarFixed, a as SidebarFixedComponent } from '../chunk-RGSYU4MA.js';
|
|
8
|
+
import '../chunk-LTWCICTK.js';
|
|
9
|
+
export { a as Icon } from '../chunk-RPTUERXQ.js';
|
|
10
|
+
import '../chunk-2H2JX2FG.js';
|
|
11
|
+
export { a as Table, d as TableBody, h as TableCaption, g as TableCell, e as TableFooter, c as TableHead, b as TableHeader, f as TableRow } from '../chunk-RL2XPX57.js';
|
|
12
|
+
export { a as Tabs } from '../chunk-63ACUGSG.js';
|
|
13
|
+
import '../chunk-22FGINA5.js';
|
|
14
|
+
import '../chunk-3OHDGUPG.js';
|
|
15
|
+
import '../chunk-WEYSRHTX.js';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { InputHelpTextProps } from '../InputHelpText/index.js';
|
|
3
|
+
import 'react/jsx-runtime';
|
|
4
|
+
|
|
5
|
+
declare const Checkbox: React__default.MemoExoticComponent<React__default.ForwardRefExoticComponent<CheckboxProps & React__default.RefAttributes<HTMLInputElement>>>;
|
|
6
|
+
interface CheckboxProps extends InputHelpTextProps, React__default.InputHTMLAttributes<HTMLInputElement> {
|
|
7
|
+
/**
|
|
8
|
+
* Custom class name
|
|
9
|
+
* */
|
|
10
|
+
className?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Text label of the checkbox
|
|
13
|
+
* */
|
|
14
|
+
label?: string | React__default.ReactNode;
|
|
15
|
+
/**
|
|
16
|
+
* Checkbox box isn't selected nwither unselected
|
|
17
|
+
* @default false
|
|
18
|
+
* */
|
|
19
|
+
indeterminate?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Item align
|
|
22
|
+
* @default 'baseline'
|
|
23
|
+
* */
|
|
24
|
+
boxAlign?: 'start' | 'end' | 'center' | 'baseline' | 'stretch';
|
|
25
|
+
/**
|
|
26
|
+
* Error message to display
|
|
27
|
+
* */
|
|
28
|
+
errorMessage?: string;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { Checkbox, type CheckboxProps };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { InputHelpTextProps } from '../InputHelpText/index.js';
|
|
3
|
+
import { InputLabelProps } from '../InputLabel/index.js';
|
|
4
|
+
import 'react/jsx-runtime';
|
|
5
|
+
|
|
6
|
+
declare const Input: React__default.MemoExoticComponent<React__default.ForwardRefExoticComponent<InputProps & React__default.RefAttributes<HTMLInputElement>>>;
|
|
7
|
+
interface InputProps extends InputLabelProps, InputHelpTextProps, Omit<React__default.InputHTMLAttributes<HTMLInputElement>, 'prefix'> {
|
|
8
|
+
/**
|
|
9
|
+
* Input custom class name
|
|
10
|
+
* */
|
|
11
|
+
className?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Form group custom class name
|
|
14
|
+
* */
|
|
15
|
+
formGroupClassName?: string;
|
|
16
|
+
/** Input size
|
|
17
|
+
* @default default
|
|
18
|
+
* */
|
|
19
|
+
variant?: 'default' | 'small' | 'large' | 'xlarge';
|
|
20
|
+
/**
|
|
21
|
+
* Error message to display
|
|
22
|
+
* */
|
|
23
|
+
errorMessage?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Custom element to append at the start of input
|
|
26
|
+
* */
|
|
27
|
+
prefix?: React__default.ReactNode | string | null;
|
|
28
|
+
/**
|
|
29
|
+
* Custom element to append at the end of input
|
|
30
|
+
* */
|
|
31
|
+
sufix?: React__default.ReactNode | string | null;
|
|
32
|
+
/**
|
|
33
|
+
* Set visibility of input prefix border
|
|
34
|
+
* @default true
|
|
35
|
+
* */
|
|
36
|
+
prefixBorder?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Set visibility of input sufix border
|
|
39
|
+
* @default true
|
|
40
|
+
* */
|
|
41
|
+
sufixBorder?: boolean;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export { Input, type InputProps };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
|
|
4
|
+
declare const InputHelpText: React__default.MemoExoticComponent<({ className, helpText, hasError }: InputHelpTextProps) => react_jsx_runtime.JSX.Element | null>;
|
|
5
|
+
interface InputHelpTextProps {
|
|
6
|
+
/**
|
|
7
|
+
* Custom class name
|
|
8
|
+
* */
|
|
9
|
+
className?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Help text
|
|
12
|
+
* */
|
|
13
|
+
helpText?: string;
|
|
14
|
+
/** Should render error state
|
|
15
|
+
* @default false
|
|
16
|
+
* */
|
|
17
|
+
hasError?: boolean;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export { InputHelpText, type InputHelpTextProps };
|