@loja-integrada/admin-components 1.0.0-beta.0 → 1.0.1
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 +17 -0
- 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-FLXTIRDF.js +10 -0
- package/dist/chunk-GWT7XT76.js +7 -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-WEYSRHTX.js +6 -0
- package/dist/chunk-WEZVMEBK.js +7 -0
- package/dist/chunk-YDYMRCXH.js +8 -0
- package/dist/chunk-YTHY4XI2.js +9 -0
- package/dist/components/Button/Button.d.ts +3 -7
- package/dist/components/Button/index.d.ts +1 -6
- package/dist/components/Button/index.js +4 -3
- package/dist/components/DataTable/DataTable.d.ts +74 -0
- package/dist/components/DataTable/index.d.ts +1 -0
- package/dist/components/DataTable/index.js +6 -0
- package/dist/components/Icon/Icon.d.ts +1 -98
- package/dist/components/Icon/index.d.ts +1 -3
- package/dist/components/Icon/index.js +3 -1
- package/dist/components/IconCircular/IconCircular.d.ts +4 -7
- package/dist/components/IconCircular/index.d.ts +1 -4
- package/dist/components/IconCircular/index.js +4 -3
- package/dist/components/LoadingPlaceholder/LoadingPlaceholder.d.ts +9 -0
- package/dist/components/LoadingPlaceholder/index.d.ts +1 -0
- package/dist/components/LoadingPlaceholder/index.js +2 -0
- package/dist/components/Modal/Modal.d.ts +54 -0
- package/dist/components/Modal/index.css +1 -0
- package/dist/components/Modal/index.d.ts +1 -0
- package/dist/components/Modal/index.js +5 -0
- package/dist/components/SidebarFixed/SidebarFixed.d.ts +34 -0
- package/dist/components/SidebarFixed/index.d.ts +1 -0
- package/dist/components/SidebarFixed/index.js +5 -0
- package/dist/components/Table/Table.d.ts +10 -0
- package/dist/components/Table/index.d.ts +1 -0
- package/dist/components/Table/index.js +2 -0
- package/dist/components/Tabs/Tabs.d.ts +21 -0
- package/dist/components/Tabs/TabsItem.d.ts +34 -0
- package/dist/components/Tabs/index.d.ts +1 -0
- package/dist/components/Tabs/index.js +2 -0
- package/dist/components/index.css +1 -0
- package/dist/components/index.d.ts +9 -0
- package/dist/components/index.js +15 -0
- package/dist/forms/Checkbox/Checkbox.d.ts +28 -0
- package/dist/forms/Checkbox/index.d.ts +1 -0
- package/dist/forms/Checkbox/index.js +3 -0
- package/dist/forms/Input/Input.d.ts +41 -0
- package/dist/forms/Input/index.d.ts +1 -0
- package/dist/forms/Input/index.js +4 -0
- package/dist/forms/InputHelpText/InputHelpText.d.ts +17 -0
- package/dist/forms/InputHelpText/index.d.ts +1 -0
- package/dist/forms/InputHelpText/index.js +2 -0
- package/dist/forms/InputLabel/InputLabel.d.ts +29 -0
- package/dist/forms/InputLabel/index.d.ts +1 -0
- package/dist/forms/InputLabel/index.js +2 -0
- package/dist/forms/InputMask/InputMask.d.ts +20 -0
- package/dist/forms/InputMask/index.d.ts +1 -0
- package/dist/forms/InputMask/index.js +5 -0
- package/dist/forms/InputMask/maskDate.d.ts +7 -0
- package/dist/forms/InputMask/utils.d.ts +6 -0
- package/dist/forms/index.d.ts +5 -0
- package/dist/forms/index.js +7 -0
- package/dist/icons-path/Adjust.d.ts +1 -0
- package/dist/icons-path/AngleDiagonal.d.ts +1 -0
- package/dist/icons-path/AngleDown.d.ts +1 -0
- package/dist/icons-path/AngleHeight.d.ts +1 -0
- package/dist/icons-path/AngleLeft.d.ts +1 -0
- package/dist/icons-path/AngleRight.d.ts +1 -0
- package/dist/icons-path/AngleWidth.d.ts +1 -0
- package/dist/icons-path/App.d.ts +1 -0
- package/dist/icons-path/Arrow.d.ts +1 -0
- package/dist/icons-path/ArrowLeft.d.ts +1 -0
- package/dist/icons-path/ArrowRight.d.ts +1 -0
- package/dist/icons-path/Back.d.ts +1 -0
- package/dist/icons-path/Ban.d.ts +1 -0
- package/dist/icons-path/BarcodeRead.d.ts +1 -0
- package/dist/icons-path/Bell.d.ts +1 -0
- package/dist/icons-path/Blog.d.ts +1 -0
- package/dist/icons-path/Bullhorn.d.ts +1 -0
- package/dist/icons-path/Calculator.d.ts +1 -0
- package/dist/icons-path/CalendarAlt.d.ts +1 -0
- package/dist/icons-path/Camera.d.ts +1 -0
- package/dist/icons-path/Check.d.ts +1 -0
- package/dist/icons-path/CheckCircle.d.ts +1 -0
- package/dist/icons-path/Clock.d.ts +1 -0
- package/dist/icons-path/Clockwise.d.ts +1 -0
- package/dist/icons-path/Close.d.ts +1 -0
- package/dist/icons-path/Cog.d.ts +1 -0
- package/dist/icons-path/Copy.d.ts +1 -0
- package/dist/icons-path/CreditCard.d.ts +1 -0
- package/dist/icons-path/DashedCircle.d.ts +1 -0
- package/dist/icons-path/DefaultCursor.d.ts +1 -0
- package/dist/icons-path/Desktop.d.ts +1 -0
- package/dist/icons-path/Discount.d.ts +1 -0
- package/dist/icons-path/DotsThree.d.ts +1 -0
- package/dist/icons-path/Download.d.ts +1 -0
- package/dist/icons-path/Edit.d.ts +1 -0
- package/dist/icons-path/Envelope.d.ts +1 -0
- package/dist/icons-path/Exchange.d.ts +1 -0
- package/dist/icons-path/ExchangeY.d.ts +1 -0
- package/dist/icons-path/Exclamation.d.ts +1 -0
- package/dist/icons-path/ExclamationCircle.d.ts +1 -0
- package/dist/icons-path/ExclamationTriangle.d.ts +1 -0
- package/dist/icons-path/ExternalLink.d.ts +1 -0
- package/dist/icons-path/Eye.d.ts +1 -0
- package/dist/icons-path/EyeSlash.d.ts +1 -0
- package/dist/icons-path/Filter.d.ts +1 -0
- package/dist/icons-path/HalfBack.d.ts +1 -0
- package/dist/icons-path/Hashtag.d.ts +1 -0
- package/dist/icons-path/Home.d.ts +1 -0
- package/dist/icons-path/IconSolidEnviali.d.ts +1 -0
- package/dist/icons-path/IconSolidLI.d.ts +1 -0
- package/dist/icons-path/IdentificationBadge.d.ts +1 -0
- package/dist/icons-path/Image.d.ts +1 -0
- package/dist/icons-path/InfoCircle.d.ts +1 -0
- package/dist/icons-path/Lightbulb.d.ts +1 -0
- package/dist/icons-path/Link.d.ts +1 -0
- package/dist/icons-path/ListItems.d.ts +1 -0
- package/dist/icons-path/Loading.d.ts +1 -0
- package/dist/icons-path/Minus.d.ts +1 -0
- package/dist/icons-path/MinusCircle.d.ts +1 -0
- package/dist/icons-path/MinusCircleSolid.d.ts +1 -0
- package/dist/icons-path/Mobile.d.ts +1 -0
- package/dist/icons-path/MoneyBill.d.ts +1 -0
- package/dist/icons-path/Move.d.ts +1 -0
- package/dist/icons-path/Nav.d.ts +1 -0
- package/dist/icons-path/Order.d.ts +1 -0
- package/dist/icons-path/Pagali.d.ts +1 -0
- package/dist/icons-path/PaperList.d.ts +1 -0
- package/dist/icons-path/PieChart.d.ts +1 -0
- package/dist/icons-path/Pix.d.ts +1 -0
- package/dist/icons-path/Plus.d.ts +1 -0
- package/dist/icons-path/PlusCircle.d.ts +1 -0
- package/dist/icons-path/Print.d.ts +1 -0
- package/dist/icons-path/Product.d.ts +1 -0
- package/dist/icons-path/QuestionCircle.d.ts +1 -0
- package/dist/icons-path/Reload.d.ts +1 -0
- package/dist/icons-path/Rocket.d.ts +1 -0
- package/dist/icons-path/Search.d.ts +1 -0
- package/dist/icons-path/ShoppingCart.d.ts +1 -0
- package/dist/icons-path/SortDown.d.ts +1 -0
- package/dist/icons-path/Store.d.ts +1 -0
- package/dist/icons-path/Sync.d.ts +1 -0
- package/dist/icons-path/ThinAngleRight.d.ts +1 -0
- package/dist/icons-path/TimesCircle.d.ts +1 -0
- package/dist/icons-path/Trash.d.ts +1 -0
- package/dist/icons-path/Trophy.d.ts +1 -0
- package/dist/icons-path/Truck.d.ts +1 -0
- package/dist/icons-path/Tv.d.ts +1 -0
- package/dist/icons-path/Upload.d.ts +1 -0
- package/dist/icons-path/UsdCircle.d.ts +1 -0
- package/dist/icons-path/User.d.ts +1 -0
- package/dist/icons-path/WhatsApp.d.ts +1 -0
- package/dist/icons-path/index.d.ts +94 -0
- package/dist/icons-path/index.js +1 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +5 -7
- package/dist/index.js +31 -5
- package/dist/indicators/Alert/Alert.d.ts +47 -0
- package/dist/indicators/Alert/index.d.ts +1 -0
- package/dist/indicators/Alert/index.js +5 -0
- package/dist/indicators/Badge/Badge.d.ts +29 -0
- package/dist/indicators/Badge/index.d.ts +1 -0
- package/dist/indicators/Badge/index.js +2 -0
- package/dist/indicators/Tag/Tag.d.ts +32 -0
- package/dist/indicators/Tag/index.css +1 -0
- package/dist/indicators/Tag/index.d.ts +1 -0
- package/dist/indicators/Tag/index.js +16 -0
- package/dist/indicators/Tooltip/Tooltip.d.ts +54 -0
- package/dist/indicators/Tooltip/index.css +1 -0
- package/dist/indicators/Tooltip/index.d.ts +1 -0
- package/dist/indicators/Tooltip/index.js +1 -0
- package/dist/indicators/index.css +1 -0
- package/dist/indicators/index.d.ts +4 -0
- package/dist/indicators/index.js +20 -0
- package/dist/layout/ActionBar/ActionBar.d.ts +15 -0
- package/dist/layout/ActionBar/index.d.ts +1 -0
- package/dist/layout/ActionBar/index.js +7 -0
- package/dist/layout/Box/Box.d.ts +68 -0
- package/dist/layout/Box/index.d.ts +1 -0
- package/dist/layout/Box/index.js +4 -0
- package/dist/layout/Container/Container.d.ts +15 -0
- package/dist/layout/Container/index.d.ts +1 -0
- package/dist/layout/Container/index.js +3 -0
- package/dist/layout/constants.d.ts +4 -0
- package/dist/layout/index.d.ts +3 -0
- package/dist/layout/index.js +10 -0
- package/dist/lib/utils.d.ts +5 -0
- package/dist/navigation/Breadcrumb/Breadcrumb.d.ts +43 -0
- package/dist/navigation/Breadcrumb/index.d.ts +1 -0
- package/dist/navigation/Breadcrumb/index.js +6 -0
- package/dist/navigation/HelpLink/HelpLink.d.ts +30 -0
- package/dist/navigation/HelpLink/index.d.ts +1 -0
- package/dist/navigation/HelpLink/index.js +5 -0
- package/dist/navigation/Stepper/Stepper.d.ts +29 -0
- package/dist/navigation/Stepper/index.d.ts +1 -0
- package/dist/navigation/Stepper/index.js +7 -0
- package/dist/navigation/index.d.ts +2 -0
- package/dist/navigation/index.js +7 -0
- package/package.json +114 -20
- package/dist/chunk-7RSXJRXE.js +0 -7
- package/dist/chunk-YV57ZIX5.js +0 -7
- package/dist/chunk-YXT4UVSS.js +0 -6
- package/dist/components/Button/Button.js +0 -3
- package/dist/components/Icon/Icon.js +0 -1
- 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
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { ColumnDef } from '@tanstack/react-table';
|
|
2
|
+
declare const DataTable: <TData>({ columns: columnsProps, data, isLoading, error, selectable, showSelectAll, showCountSelected, onChange, selectedIds, disabledIds, id, emptyText, errorText }: DataTableProps<TData>) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
type DataTableColumn<TData> = ColumnDef<TData> & {
|
|
4
|
+
className?: {
|
|
5
|
+
header?: string;
|
|
6
|
+
cell?: string;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
interface DataTableProps<TData> {
|
|
10
|
+
/**
|
|
11
|
+
* Array of columns to be displayed in the table
|
|
12
|
+
*/
|
|
13
|
+
columns: DataTableColumn<TData>[];
|
|
14
|
+
/**
|
|
15
|
+
* Array of data to be displayed in the table
|
|
16
|
+
*/
|
|
17
|
+
data?: TData[];
|
|
18
|
+
/**
|
|
19
|
+
* Table is loading
|
|
20
|
+
* @default false
|
|
21
|
+
*/
|
|
22
|
+
isLoading?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Table has an error
|
|
25
|
+
* @default false
|
|
26
|
+
*/
|
|
27
|
+
error?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Makes rows selectable.
|
|
30
|
+
* @default false
|
|
31
|
+
*/
|
|
32
|
+
selectable?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Show select all checkbox in the header,
|
|
35
|
+
* when the table is selectable.
|
|
36
|
+
* @default true
|
|
37
|
+
*/
|
|
38
|
+
showSelectAll?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Show count of selected rows in the header
|
|
41
|
+
* @default true
|
|
42
|
+
*/
|
|
43
|
+
showCountSelected?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Content to show when table is empty
|
|
46
|
+
* @default 'Nenhum registro encontrado'
|
|
47
|
+
*/
|
|
48
|
+
emptyText?: string | React.ReactNode;
|
|
49
|
+
/**
|
|
50
|
+
* Content to show when an error occurs
|
|
51
|
+
* @default 'Ocorreu um erro ao carregar os itens.'
|
|
52
|
+
*/
|
|
53
|
+
errorText?: string | React.ReactNode;
|
|
54
|
+
/**
|
|
55
|
+
* Fired when the row is selectable and the Checkbox of the header/row is clicked
|
|
56
|
+
*/
|
|
57
|
+
onChange?: (selectedRows: string[]) => void;
|
|
58
|
+
/**
|
|
59
|
+
* Array containing the id of selected rows.
|
|
60
|
+
* @default undefined
|
|
61
|
+
*/
|
|
62
|
+
selectedIds?: string[];
|
|
63
|
+
/**
|
|
64
|
+
* Array containing the id of disabled rows.
|
|
65
|
+
* @default []
|
|
66
|
+
*/
|
|
67
|
+
disabledIds?: string[];
|
|
68
|
+
/**
|
|
69
|
+
* Id of the table.
|
|
70
|
+
* @default undefined
|
|
71
|
+
*/
|
|
72
|
+
id?: string;
|
|
73
|
+
}
|
|
74
|
+
export { DataTable, type DataTableColumn, type DataTableProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './DataTable';
|
|
@@ -1,101 +1,5 @@
|
|
|
1
1
|
import { FunctionComponent } from 'react';
|
|
2
|
-
import
|
|
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
|
-
|
|
2
|
+
import { icons } from '@/icons-path';
|
|
99
3
|
declare const iconSizes: {
|
|
100
4
|
1: string;
|
|
101
5
|
2: string;
|
|
@@ -123,5 +27,4 @@ interface IconProps {
|
|
|
123
27
|
*/
|
|
124
28
|
className?: string;
|
|
125
29
|
}
|
|
126
|
-
|
|
127
30
|
export { Icon, type IconProps };
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { FunctionComponent } from 'react';
|
|
2
|
-
import { IconProps } from '
|
|
3
|
-
import 'react/jsx-runtime';
|
|
4
|
-
|
|
2
|
+
import { IconProps } from '@/components/Icon';
|
|
5
3
|
type variantType = 'success' | 'warning' | 'danger';
|
|
6
|
-
declare const IconCircular: FunctionComponent<IconCircularProps>;
|
|
7
|
-
interface IconCircularProps {
|
|
4
|
+
export declare const IconCircular: FunctionComponent<IconCircularProps>;
|
|
5
|
+
export interface IconCircularProps {
|
|
8
6
|
/** Icon circular variant
|
|
9
7
|
* @default success
|
|
10
8
|
* */
|
|
@@ -18,5 +16,4 @@ interface IconCircularProps {
|
|
|
18
16
|
*/
|
|
19
17
|
bgClass?: string;
|
|
20
18
|
}
|
|
21
|
-
|
|
22
|
-
export { IconCircular, type IconCircularProps };
|
|
19
|
+
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
export { a as IconCircular } from '../../chunk-YV57ZIX5.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,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const LoadingPlaceholder: React.MemoExoticComponent<({ className }: LoadingPlaceholderProps) => import("react/jsx-runtime").JSX.Element>;
|
|
3
|
+
interface LoadingPlaceholderProps {
|
|
4
|
+
/**
|
|
5
|
+
* Custom class name
|
|
6
|
+
*/
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
export { LoadingPlaceholder, type LoadingPlaceholderProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './LoadingPlaceholder';
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import './style.scss';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
declare const Modal: React.MemoExoticComponent<({ className, isOpen, preventClose, size, headerStep, headerTitle, headerClose, footerActions, onClose, closeTimeout, parentSelector, children }: ModalProps) => import("react/jsx-runtime").JSX.Element>;
|
|
4
|
+
interface ModalProps {
|
|
5
|
+
/**
|
|
6
|
+
* Custom class name
|
|
7
|
+
* */
|
|
8
|
+
className?: string;
|
|
9
|
+
/** Modal is open
|
|
10
|
+
* @default false
|
|
11
|
+
*/
|
|
12
|
+
isOpen?: boolean;
|
|
13
|
+
/** Prevent modal close
|
|
14
|
+
* @default false
|
|
15
|
+
*/
|
|
16
|
+
preventClose?: boolean;
|
|
17
|
+
/** Modal width
|
|
18
|
+
* @default 'default'
|
|
19
|
+
* */
|
|
20
|
+
size?: 'default' | 'large' | 'small';
|
|
21
|
+
/**
|
|
22
|
+
* Modal step, above the title
|
|
23
|
+
* */
|
|
24
|
+
headerStep?: string | React.ReactNode;
|
|
25
|
+
/**
|
|
26
|
+
* Modal title
|
|
27
|
+
* */
|
|
28
|
+
headerTitle?: string | React.ReactNode;
|
|
29
|
+
/** Close text at header
|
|
30
|
+
* @default ''
|
|
31
|
+
* */
|
|
32
|
+
headerClose?: string | false;
|
|
33
|
+
/**
|
|
34
|
+
* Call when modal is closed
|
|
35
|
+
* */
|
|
36
|
+
onClose?: () => void;
|
|
37
|
+
/**
|
|
38
|
+
* Number indicating the milliseconds to wait before closing the modal
|
|
39
|
+
* */
|
|
40
|
+
closeTimeout?: number;
|
|
41
|
+
/**
|
|
42
|
+
* React children
|
|
43
|
+
*/
|
|
44
|
+
children?: React.ReactNode;
|
|
45
|
+
/**
|
|
46
|
+
* React children
|
|
47
|
+
*/
|
|
48
|
+
footerActions?: React.ReactNode;
|
|
49
|
+
/** The parent element that the modal will be attached to
|
|
50
|
+
* @default 'document.body'
|
|
51
|
+
*/
|
|
52
|
+
parentSelector?: HTMLElement | null;
|
|
53
|
+
}
|
|
54
|
+
export { Modal, type ModalProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ReactModal__Overlay--after-open{@apply opacity-100;}.ReactModal__Overlay--before-close{@apply opacity-0;}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Modal';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const SidebarFixedComponent: React.FC<SidebarFixedProps>;
|
|
3
|
+
declare const SidebarFixed: React.NamedExoticComponent<SidebarFixedProps>;
|
|
4
|
+
interface SidebarFixedProps {
|
|
5
|
+
/**
|
|
6
|
+
* React children
|
|
7
|
+
*/
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
/**
|
|
10
|
+
* Bottom actions
|
|
11
|
+
*/
|
|
12
|
+
footerActions?: React.ReactNode;
|
|
13
|
+
/** Sidebar is open
|
|
14
|
+
* @default false
|
|
15
|
+
*/
|
|
16
|
+
isOpen?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Call when sidebar is closed
|
|
19
|
+
* */
|
|
20
|
+
onClose?: () => void;
|
|
21
|
+
/**
|
|
22
|
+
* Title displayed in header
|
|
23
|
+
*/
|
|
24
|
+
title?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Help external link
|
|
27
|
+
*/
|
|
28
|
+
helpLink?: string;
|
|
29
|
+
/** The parent element that the sidebar will be attached to
|
|
30
|
+
* @default 'document.body'
|
|
31
|
+
*/
|
|
32
|
+
parentSelector?: HTMLElement | null;
|
|
33
|
+
}
|
|
34
|
+
export { SidebarFixed, type SidebarFixedProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SidebarFixed';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare const Table: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableElement> & React.RefAttributes<HTMLTableElement>>;
|
|
3
|
+
declare const TableHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
4
|
+
declare const TableHead: React.ForwardRefExoticComponent<React.ThHTMLAttributes<HTMLTableCellElement> & React.RefAttributes<HTMLTableCellElement>>;
|
|
5
|
+
declare const TableBody: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
6
|
+
declare const TableFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
7
|
+
declare const TableRow: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableRowElement> & React.RefAttributes<HTMLTableRowElement>>;
|
|
8
|
+
declare const TableCell: React.ForwardRefExoticComponent<React.TdHTMLAttributes<HTMLTableCellElement> & React.RefAttributes<HTMLTableCellElement>>;
|
|
9
|
+
declare const TableCaption: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableCaptionElement> & React.RefAttributes<HTMLTableCaptionElement>>;
|
|
10
|
+
export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Table';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { TabsItemInterface } from './TabsItem';
|
|
2
|
+
declare const Tabs: import("react").MemoExoticComponent<({ className, items, activeItem, onChange }: TabsProps) => import("react/jsx-runtime").JSX.Element | null>;
|
|
3
|
+
interface TabsProps {
|
|
4
|
+
/**
|
|
5
|
+
* Custom class name
|
|
6
|
+
* */
|
|
7
|
+
className?: string;
|
|
8
|
+
/**
|
|
9
|
+
* ID of the active item
|
|
10
|
+
*/
|
|
11
|
+
activeItem?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Tab item
|
|
14
|
+
*/
|
|
15
|
+
items?: TabsItemInterface[];
|
|
16
|
+
/**
|
|
17
|
+
* Callback handle when selected item change
|
|
18
|
+
* */
|
|
19
|
+
onChange?: (activeTabId: string) => void;
|
|
20
|
+
}
|
|
21
|
+
export { Tabs, type TabsProps };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
interface TabsItemProps extends TabsItemInterface {
|
|
2
|
+
/**
|
|
3
|
+
* Item is active
|
|
4
|
+
*/
|
|
5
|
+
active?: boolean;
|
|
6
|
+
/**
|
|
7
|
+
* Call on tab change
|
|
8
|
+
*/
|
|
9
|
+
onChange: (arg0: string) => void;
|
|
10
|
+
}
|
|
11
|
+
declare const TabsItem: import("react").MemoExoticComponent<({ id, title, titleComplement, active, disabled, onChange, className }: TabsItemProps) => import("react/jsx-runtime").JSX.Element>;
|
|
12
|
+
interface TabsItemInterface {
|
|
13
|
+
/**
|
|
14
|
+
* Custom class name
|
|
15
|
+
*/
|
|
16
|
+
className?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Item identification
|
|
19
|
+
*/
|
|
20
|
+
id: string;
|
|
21
|
+
/**
|
|
22
|
+
* Item visible title
|
|
23
|
+
*/
|
|
24
|
+
title: string;
|
|
25
|
+
/**
|
|
26
|
+
* Complement to title
|
|
27
|
+
* */
|
|
28
|
+
titleComplement?: string | React.ReactNode | ((isActive: boolean) => React.ReactNode);
|
|
29
|
+
/**
|
|
30
|
+
* Disabled a specific tab
|
|
31
|
+
*/
|
|
32
|
+
disabled?: boolean;
|
|
33
|
+
}
|
|
34
|
+
export { TabsItem, type TabsItemInterface };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Tabs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ReactModal__Overlay--after-open{@apply opacity-100;}.ReactModal__Overlay--before-close{@apply opacity-0;}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './Button';
|
|
2
|
+
export * from './DataTable';
|
|
3
|
+
export * from './Icon';
|
|
4
|
+
export * from './IconCircular';
|
|
5
|
+
export * from './LoadingPlaceholder';
|
|
6
|
+
export * from './Modal';
|
|
7
|
+
export * from './SidebarFixed';
|
|
8
|
+
export * from './Table';
|
|
9
|
+
export * from './Tabs';
|
|
@@ -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-FLXTIRDF.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,28 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { InputHelpTextProps } from '@/forms/InputHelpText';
|
|
3
|
+
declare const Checkbox: React.MemoExoticComponent<React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLInputElement>>>;
|
|
4
|
+
interface CheckboxProps extends InputHelpTextProps, React.InputHTMLAttributes<HTMLInputElement> {
|
|
5
|
+
/**
|
|
6
|
+
* Custom class name
|
|
7
|
+
* */
|
|
8
|
+
className?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Text label of the checkbox
|
|
11
|
+
* */
|
|
12
|
+
label?: string | React.ReactNode;
|
|
13
|
+
/**
|
|
14
|
+
* Checkbox box isn't selected nwither unselected
|
|
15
|
+
* @default false
|
|
16
|
+
* */
|
|
17
|
+
indeterminate?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Item align
|
|
20
|
+
* @default 'baseline'
|
|
21
|
+
* */
|
|
22
|
+
boxAlign?: 'start' | 'end' | 'center' | 'baseline' | 'stretch';
|
|
23
|
+
/**
|
|
24
|
+
* Error message to display
|
|
25
|
+
* */
|
|
26
|
+
errorMessage?: string;
|
|
27
|
+
}
|
|
28
|
+
export { Checkbox, type CheckboxProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Checkbox';
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { InputHelpTextProps } from '../InputHelpText';
|
|
3
|
+
import { InputLabelProps } from '../InputLabel';
|
|
4
|
+
declare const Input: React.MemoExoticComponent<React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>>;
|
|
5
|
+
interface InputProps extends InputLabelProps, InputHelpTextProps, Omit<React.InputHTMLAttributes<HTMLInputElement>, 'prefix'> {
|
|
6
|
+
/**
|
|
7
|
+
* Input custom class name
|
|
8
|
+
* */
|
|
9
|
+
className?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Form group custom class name
|
|
12
|
+
* */
|
|
13
|
+
formGroupClassName?: string;
|
|
14
|
+
/** Input size
|
|
15
|
+
* @default default
|
|
16
|
+
* */
|
|
17
|
+
variant?: 'default' | 'small' | 'large' | 'xlarge';
|
|
18
|
+
/**
|
|
19
|
+
* Error message to display
|
|
20
|
+
* */
|
|
21
|
+
errorMessage?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Custom element to append at the start of input
|
|
24
|
+
* */
|
|
25
|
+
prefix?: React.ReactNode | string | null;
|
|
26
|
+
/**
|
|
27
|
+
* Custom element to append at the end of input
|
|
28
|
+
* */
|
|
29
|
+
sufix?: React.ReactNode | string | null;
|
|
30
|
+
/**
|
|
31
|
+
* Set visibility of input prefix border
|
|
32
|
+
* @default true
|
|
33
|
+
* */
|
|
34
|
+
prefixBorder?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Set visibility of input sufix border
|
|
37
|
+
* @default true
|
|
38
|
+
* */
|
|
39
|
+
sufixBorder?: boolean;
|
|
40
|
+
}
|
|
41
|
+
export { Input, type InputProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Input';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const InputHelpText: React.MemoExoticComponent<({ className, helpText, hasError }: InputHelpTextProps) => import("react/jsx-runtime").JSX.Element | null>;
|
|
3
|
+
interface InputHelpTextProps {
|
|
4
|
+
/**
|
|
5
|
+
* Custom class name
|
|
6
|
+
* */
|
|
7
|
+
className?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Help text
|
|
10
|
+
* */
|
|
11
|
+
helpText?: string;
|
|
12
|
+
/** Should render error state
|
|
13
|
+
* @default false
|
|
14
|
+
* */
|
|
15
|
+
hasError?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export { InputHelpText, type InputHelpTextProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './InputHelpText';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const InputLabel: React.MemoExoticComponent<({ className, label, labelComplement, hasError, required, htmlFor }: InputLabelProps) => import("react/jsx-runtime").JSX.Element | null>;
|
|
3
|
+
interface InputLabelProps {
|
|
4
|
+
/**
|
|
5
|
+
* Custom class name
|
|
6
|
+
* */
|
|
7
|
+
className?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Label title
|
|
10
|
+
* */
|
|
11
|
+
label?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Complement to label title
|
|
14
|
+
* */
|
|
15
|
+
labelComplement?: string | React.ReactNode;
|
|
16
|
+
/** Should render error state
|
|
17
|
+
* @default false
|
|
18
|
+
* */
|
|
19
|
+
hasError?: boolean;
|
|
20
|
+
/** Input is required
|
|
21
|
+
* @default false
|
|
22
|
+
* */
|
|
23
|
+
required?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Input this label is for
|
|
26
|
+
* */
|
|
27
|
+
htmlFor?: string;
|
|
28
|
+
}
|
|
29
|
+
export { InputLabel, type InputLabelProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './InputLabel';
|