@loja-integrada/admin-components 1.0.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/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-W64HPITJ.js → chunk-YTHY4XI2.js} +3 -2
- package/dist/components/Button/Button.d.ts +5 -9
- 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 -1
- package/dist/index.d.ts +5 -243
- package/dist/index.js +31 -18
- 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 +81 -23
- package/dist/chunk-3IB6AR7I.js +0 -8
- package/dist/chunk-C3ECJWEX.js +0 -7
- 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
package/dist/index.d.ts
CHANGED
|
@@ -1,243 +1,5 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
import * as React$1 from 'react';
|
|
7
|
-
import React__default from 'react';
|
|
8
|
-
import 'class-variance-authority/types';
|
|
9
|
-
import 'class-variance-authority';
|
|
10
|
-
|
|
11
|
-
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;
|
|
12
|
-
type DataTableColumn<TData> = ColumnDef<TData> & {
|
|
13
|
-
className?: {
|
|
14
|
-
header?: string;
|
|
15
|
-
cell?: string;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
interface DataTableProps<TData> {
|
|
19
|
-
/**
|
|
20
|
-
* Array of columns to be displayed in the table
|
|
21
|
-
*/
|
|
22
|
-
columns: DataTableColumn<TData>[];
|
|
23
|
-
/**
|
|
24
|
-
* Array of data to be displayed in the table
|
|
25
|
-
*/
|
|
26
|
-
data?: TData[];
|
|
27
|
-
/**
|
|
28
|
-
* Table is loading
|
|
29
|
-
* @default false
|
|
30
|
-
*/
|
|
31
|
-
isLoading?: boolean;
|
|
32
|
-
/**
|
|
33
|
-
* Table has an error
|
|
34
|
-
* @default false
|
|
35
|
-
*/
|
|
36
|
-
error?: boolean;
|
|
37
|
-
/**
|
|
38
|
-
* Makes rows selectable.
|
|
39
|
-
* @default false
|
|
40
|
-
*/
|
|
41
|
-
selectable?: boolean;
|
|
42
|
-
/**
|
|
43
|
-
* Show select all checkbox in the header,
|
|
44
|
-
* when the table is selectable.
|
|
45
|
-
* @default true
|
|
46
|
-
*/
|
|
47
|
-
showSelectAll?: boolean;
|
|
48
|
-
/**
|
|
49
|
-
* Show count of selected rows in the header
|
|
50
|
-
* @default true
|
|
51
|
-
*/
|
|
52
|
-
showCountSelected?: boolean;
|
|
53
|
-
/**
|
|
54
|
-
* Content to show when table is empty
|
|
55
|
-
* @default 'Nenhum registro encontrado'
|
|
56
|
-
*/
|
|
57
|
-
emptyText?: string | React.ReactNode;
|
|
58
|
-
/**
|
|
59
|
-
* Content to show when an error occurs
|
|
60
|
-
* @default 'Ocorreu um erro ao carregar os itens.'
|
|
61
|
-
*/
|
|
62
|
-
errorText?: string | React.ReactNode;
|
|
63
|
-
/**
|
|
64
|
-
* Fired when the row is selectable and the Checkbox of the header/row is clicked
|
|
65
|
-
*/
|
|
66
|
-
onChange?: (selectedRows: string[]) => void;
|
|
67
|
-
/**
|
|
68
|
-
* Array containing the id of selected rows.
|
|
69
|
-
* @default undefined
|
|
70
|
-
*/
|
|
71
|
-
selectedIds?: string[];
|
|
72
|
-
/**
|
|
73
|
-
* Array containing the id of disabled rows.
|
|
74
|
-
* @default []
|
|
75
|
-
*/
|
|
76
|
-
disabledIds?: string[];
|
|
77
|
-
/**
|
|
78
|
-
* Id of the table.
|
|
79
|
-
* @default undefined
|
|
80
|
-
*/
|
|
81
|
-
id?: string;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
declare const LoadingPlaceholder: React__default.MemoExoticComponent<({ className }: LoadingPlaceholderProps) => react_jsx_runtime.JSX.Element>;
|
|
85
|
-
interface LoadingPlaceholderProps {
|
|
86
|
-
/**
|
|
87
|
-
* Custom class name
|
|
88
|
-
*/
|
|
89
|
-
className?: string;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
declare const Modal: React__default.MemoExoticComponent<({ className, isOpen, preventClose, size, headerStep, headerTitle, headerClose, footerActions, onClose, closeTimeout, parentSelector, children }: ModalProps) => react_jsx_runtime.JSX.Element>;
|
|
93
|
-
interface ModalProps {
|
|
94
|
-
/**
|
|
95
|
-
* Custom class name
|
|
96
|
-
* */
|
|
97
|
-
className?: string;
|
|
98
|
-
/** Modal is open
|
|
99
|
-
* @default false
|
|
100
|
-
*/
|
|
101
|
-
isOpen?: boolean;
|
|
102
|
-
/** Prevent modal close
|
|
103
|
-
* @default false
|
|
104
|
-
*/
|
|
105
|
-
preventClose?: boolean;
|
|
106
|
-
/** Modal width
|
|
107
|
-
* @default 'default'
|
|
108
|
-
* */
|
|
109
|
-
size?: 'default' | 'large' | 'small';
|
|
110
|
-
/**
|
|
111
|
-
* Modal step, above the title
|
|
112
|
-
* */
|
|
113
|
-
headerStep?: string | React__default.ReactNode;
|
|
114
|
-
/**
|
|
115
|
-
* Modal title
|
|
116
|
-
* */
|
|
117
|
-
headerTitle?: string | React__default.ReactNode;
|
|
118
|
-
/** Close text at header
|
|
119
|
-
* @default ''
|
|
120
|
-
* */
|
|
121
|
-
headerClose?: string | false;
|
|
122
|
-
/**
|
|
123
|
-
* Call when modal is closed
|
|
124
|
-
* */
|
|
125
|
-
onClose?: () => void;
|
|
126
|
-
/**
|
|
127
|
-
* Number indicating the milliseconds to wait before closing the modal
|
|
128
|
-
* */
|
|
129
|
-
closeTimeout?: number;
|
|
130
|
-
/**
|
|
131
|
-
* React children
|
|
132
|
-
*/
|
|
133
|
-
children?: React__default.ReactNode;
|
|
134
|
-
/**
|
|
135
|
-
* React children
|
|
136
|
-
*/
|
|
137
|
-
footerActions?: React__default.ReactNode;
|
|
138
|
-
/** The parent element that the modal will be attached to
|
|
139
|
-
* @default 'document.body'
|
|
140
|
-
*/
|
|
141
|
-
parentSelector?: HTMLElement | null;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
declare const SidebarFixedComponent: React__default.FC<SidebarFixedProps>;
|
|
145
|
-
declare const SidebarFixed: React__default.NamedExoticComponent<SidebarFixedProps>;
|
|
146
|
-
interface SidebarFixedProps {
|
|
147
|
-
/**
|
|
148
|
-
* React children
|
|
149
|
-
*/
|
|
150
|
-
children?: React__default.ReactNode;
|
|
151
|
-
/**
|
|
152
|
-
* Bottom actions
|
|
153
|
-
*/
|
|
154
|
-
footerActions?: React__default.ReactNode;
|
|
155
|
-
/** Sidebar is open
|
|
156
|
-
* @default false
|
|
157
|
-
*/
|
|
158
|
-
isOpen?: boolean;
|
|
159
|
-
/**
|
|
160
|
-
* Call when sidebar is closed
|
|
161
|
-
* */
|
|
162
|
-
onClose?: () => void;
|
|
163
|
-
/**
|
|
164
|
-
* Title displayed in header
|
|
165
|
-
*/
|
|
166
|
-
title?: string;
|
|
167
|
-
/**
|
|
168
|
-
* Help external link
|
|
169
|
-
*/
|
|
170
|
-
helpLink?: string;
|
|
171
|
-
/** The parent element that the sidebar will be attached to
|
|
172
|
-
* @default 'document.body'
|
|
173
|
-
*/
|
|
174
|
-
parentSelector?: HTMLElement | null;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
declare const Table: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableElement> & React$1.RefAttributes<HTMLTableElement>>;
|
|
178
|
-
declare const TableHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
179
|
-
declare const TableHead: React$1.ForwardRefExoticComponent<React$1.ThHTMLAttributes<HTMLTableCellElement> & React$1.RefAttributes<HTMLTableCellElement>>;
|
|
180
|
-
declare const TableBody: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
181
|
-
declare const TableFooter: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
182
|
-
declare const TableRow: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableRowElement> & React$1.RefAttributes<HTMLTableRowElement>>;
|
|
183
|
-
declare const TableCell: React$1.ForwardRefExoticComponent<React$1.TdHTMLAttributes<HTMLTableCellElement> & React$1.RefAttributes<HTMLTableCellElement>>;
|
|
184
|
-
declare const TableCaption: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableCaptionElement> & React$1.RefAttributes<HTMLTableCaptionElement>>;
|
|
185
|
-
|
|
186
|
-
declare const InputHelpText: React__default.MemoExoticComponent<({ className, helpText, hasError }: InputHelpTextProps) => react_jsx_runtime.JSX.Element | null>;
|
|
187
|
-
interface InputHelpTextProps {
|
|
188
|
-
/**
|
|
189
|
-
* Custom class name
|
|
190
|
-
* */
|
|
191
|
-
className?: string;
|
|
192
|
-
/**
|
|
193
|
-
* Help text
|
|
194
|
-
* */
|
|
195
|
-
helpText?: string;
|
|
196
|
-
/** Should render error state
|
|
197
|
-
* @default false
|
|
198
|
-
* */
|
|
199
|
-
hasError?: boolean;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
declare const Checkbox: React__default.MemoExoticComponent<React__default.ForwardRefExoticComponent<CheckboxProps & React__default.RefAttributes<HTMLInputElement>>>;
|
|
203
|
-
interface CheckboxProps extends InputHelpTextProps, React__default.InputHTMLAttributes<HTMLInputElement> {
|
|
204
|
-
/**
|
|
205
|
-
* Custom class name
|
|
206
|
-
* */
|
|
207
|
-
className?: string;
|
|
208
|
-
/**
|
|
209
|
-
* Text label of the checkbox
|
|
210
|
-
* */
|
|
211
|
-
label?: string | React__default.ReactNode;
|
|
212
|
-
/**
|
|
213
|
-
* Checkbox box isn't selected nwither unselected
|
|
214
|
-
* @default false
|
|
215
|
-
* */
|
|
216
|
-
indeterminate?: boolean;
|
|
217
|
-
/**
|
|
218
|
-
* Item align
|
|
219
|
-
* @default 'baseline'
|
|
220
|
-
* */
|
|
221
|
-
boxAlign?: 'start' | 'end' | 'center' | 'baseline' | 'stretch';
|
|
222
|
-
/**
|
|
223
|
-
* Error message to display
|
|
224
|
-
* */
|
|
225
|
-
errorMessage?: string;
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
declare const Container: React$1.MemoExoticComponent<({ children, expanded, className }: ContainerProps) => JSX.Element>;
|
|
229
|
-
declare const ContainerHeader: React$1.MemoExoticComponent<({ children, className }: ContainerProps) => JSX.Element>;
|
|
230
|
-
interface ContainerProps {
|
|
231
|
-
/**
|
|
232
|
-
* Container expanded
|
|
233
|
-
* @default false
|
|
234
|
-
*/
|
|
235
|
-
expanded?: boolean;
|
|
236
|
-
/**
|
|
237
|
-
* Custom class name
|
|
238
|
-
*/
|
|
239
|
-
className?: string;
|
|
240
|
-
children?: React.ReactNode;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
export { Checkbox, type CheckboxProps, Container, ContainerHeader, type ContainerProps, DataTable, type DataTableColumn, type DataTableProps, InputHelpText, type InputHelpTextProps, LoadingPlaceholder, type LoadingPlaceholderProps, Modal, type ModalProps, SidebarFixed, SidebarFixedComponent, type SidebarFixedProps, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow };
|
|
1
|
+
export * from './components';
|
|
2
|
+
export * from './forms';
|
|
3
|
+
export * from './indicators';
|
|
4
|
+
export * from './layout';
|
|
5
|
+
export * from './navigation';
|
package/dist/index.js
CHANGED
|
@@ -1,19 +1,32 @@
|
|
|
1
|
-
import './chunk-
|
|
2
|
-
export { a as
|
|
3
|
-
|
|
4
|
-
export { a as
|
|
1
|
+
import './chunk-IA7GSQNX.js';
|
|
2
|
+
export { b as InputMask, a as formatValuePatterns } from './chunk-IPSRY3RR.js';
|
|
3
|
+
export { a as Input } from './chunk-LJS4TVL3.js';
|
|
4
|
+
export { a as InputLabel } from './chunk-WEZVMEBK.js';
|
|
5
|
+
import './chunk-AKA4VSQF.js';
|
|
6
|
+
import './chunk-DBWOW4GL.js';
|
|
7
|
+
import './chunk-27G6ETZK.js';
|
|
8
|
+
export { a as ActionBar } from './chunk-AZI2H7OT.js';
|
|
9
|
+
export { b as Box, d as BoxContent, c as BoxHeader, a as BoxSeparator } from './chunk-K5XL557B.js';
|
|
10
|
+
export { a as Container, b as ContainerHeader } from './chunk-24UC33BJ.js';
|
|
11
|
+
import './chunk-L6H2NDVS.js';
|
|
12
|
+
export { a as Alert } from './chunk-QNBPXACD.js';
|
|
13
|
+
export { a as Badge } from './chunk-YDYMRCXH.js';
|
|
14
|
+
export { a as Tag } from './chunk-NHDLQM42.js';
|
|
15
|
+
import './chunk-DIFKNF3L.js';
|
|
16
|
+
export { a as IconCircular } from './chunk-BW2HQVCT.js';
|
|
17
|
+
export { a as Button } from './chunk-YTHY4XI2.js';
|
|
18
|
+
export { a as Tooltip } from './chunk-GWT7XT76.js';
|
|
19
|
+
export { a as Breadcrumb } from './chunk-767NPRMO.js';
|
|
20
|
+
export { a as HelpLink } from './chunk-N73XF5FY.js';
|
|
21
|
+
export { a as DataTable } from './chunk-KEVA65S5.js';
|
|
22
|
+
export { a as LoadingPlaceholder } from './chunk-LTHYFCE7.js';
|
|
23
|
+
export { a as Modal } from './chunk-FLXTIRDF.js';
|
|
24
|
+
export { b as SidebarFixed, a as SidebarFixedComponent } from './chunk-RGSYU4MA.js';
|
|
5
25
|
import './chunk-LTWCICTK.js';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
import
|
|
13
|
-
import Me from 'react-modal';
|
|
14
|
-
|
|
15
|
-
var ne=({className:t=""})=>jsx("div",{className:a("animate-pulse bg-inverted-2/20 h-4 w-full rounded",t)}),q=v__default.memo(ne);q.displayName="LoadingPlaceholder";var B=v.forwardRef(({className:t,...e},a$1)=>jsx("div",{className:a("overflow-hidden rounded lg:border-t lg:border-b border-card-stroke w-full [&:has(caption)]:border-b-0",t),children:jsx("div",{className:"lg:bg-on-base-1 relative w-full overflow-auto",children:jsx("table",{ref:a$1,className:"text-f6 w-full caption-bottom",...e})})}));B.displayName="Table";var W=v.forwardRef(({className:t,...e},a$1)=>jsx("thead",{ref:a$1,className:a("hidden lg:table-header-group bg-base-2 [&_tr]:border-b",t),...e}));W.displayName="TableHeader";var $=v.forwardRef(({className:t,...e},a$1)=>jsx("th",{ref:a$1,className:a("text-left align-middle text-f7 font-semibold text-inverted-2 lg:p-2 lg:first:pl-4",t),...e}));$.displayName="TableHead";var X=v.forwardRef(({className:t,...e},a$1)=>jsx("tbody",{ref:a$1,className:a("flex flex-col gap-3 lg:table-row-group lg:[&>tr:last-child]:border-b-0",t),...e}));X.displayName="TableBody";var de=v.forwardRef(({className:t,...e},a$1)=>jsx("tfoot",{ref:a$1,className:a("font-semibold [&>tr]:last:hover:bg-transparent lg:bg-base-2 lg:border-t lg:mt-0 mt-3 block lg:table-footer-group border-card-stroke last:[&>tr:last-child]:border-b-0 max-lg:[&>tr]:p-0 max-lg:[&>tr]:border-0",t),...e}));de.displayName="TableFooter";var P=v.forwardRef(({className:t,...e},a$1)=>jsx("tr",{ref:a$1,className:a("relative flex flex-col rounded border border-card-stroke bg-on-base-1 p-2 transition-all data-[checked=true]:bg-primary-light hover:data-[checked=true]:bg-base-2 hover:bg-base-2 lg:table-row lg:rounded-none lg:border-b lg:border-t-0 lg:p-0",t),...e}));P.displayName="TableRow";var y=v.forwardRef(({className:t,...e},a$1)=>jsx("td",{ref:a$1,className:a("align-middle lg:p-2 lg:first:pl-4",t),...e}));y.displayName="TableCell";var ce=v.forwardRef(({className:t,...e},a$1)=>jsx("caption",{ref:a$1,className:a("lg:mt-0 mt-3 py-2 text-f6 text-on-base-3 lg:border border-card-stroke rounded-b",t),...e}));ce.displayName="TableCaption";var Z=v__default.memo(({className:t="",helpText:e,hasError:a$1=!1})=>e?jsx("div",{className:a(`input-help-text text-f7 ${a$1?"text-danger":"text-on-base-2"}`,t),children:e}):null);Z.displayName="InputHelpText";var be=({className:t="",label:e,id:a,name:b,onChange:l,checked:d,disabled:f,readOnly:c,indeterminate:n=!1,boxAlign:w="baseline",helpText:T,hasError:I=!1,errorMessage:S,...m},C)=>{let u=v__default.useRef(null),g=a||b,[h,p]=v__default.useState(!!d||!1),[R,L]=v__default.useState(!!n||!1),F=I||!!S,E=f||c;v__default.useEffect(()=>{p(!!d),d&&L(!1);},[d]),v__default.useEffect(()=>{L(!!n),n&&p(!1),u.current&&(u.current.indeterminate=!!n);},[n]);let o=J=>{E||(p(J.target.checked),L(!1),l&&l(J));},r=`transition duration-200 ease-in-out ${h||R?"scale-100":"scale-0"}`,V=`border border-card-stroke transition duration-200 ease-in-out
|
|
16
|
-
${E?"bg-base-4":h||R?"bg-primary border-primary":"bg-base-1"}
|
|
17
|
-
items-center rounded w-4 h-4 flex justify-center m-px`,oe=`ml-1 input-label text-f6 tracking-4 leading-6 ${F?"text-danger":E?"text-inverted-2":""}`,le={start:"items-start",end:"items-end",center:"items-center",baseline:"items-baseline",stretch:"items-stretch"},re=jsx(Z,{helpText:S||T,hasError:F,className:"mt-2"});return jsxs("div",{className:`inline-block ${t}`,children:[jsxs("label",{htmlFor:g,className:`inline-flex ${le[w]} cursor-pointer`,children:[jsxs("span",{className:"relative z-10 flex items-center justify-center rounded ring-focus focus-within:ring-2",children:[jsx("input",{ref:C||u,type:"checkbox",id:g,name:b,className:"absolute z-10 size-4 cursor-pointer opacity-0",checked:h,onChange:o,disabled:!!f,readOnly:!!c,...m}),jsx("div",{className:V,children:jsx("svg",{width:"12",height:"12",viewBox:`0 0 10 ${h?"10":"2"}`,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:r,children:h||h&&E?jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.33353 8.86651C3.10353 8.86651 2.88353 8.77518 2.72087 8.61318L0.0541992 5.94651L1.27953 4.72051L3.31753 6.75851L9.03887 0.736511L10.2949 1.93051L3.96153 8.59718C3.80087 8.76651 3.5782 8.86384 3.34487 8.86651H3.33353Z",fill:"white"}):R&&jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 1.99998H10V0.333313H0V1.99998Z",fill:"white"})})})]}),e?jsx("span",{className:oe,children:e}):null]}),re]})},fe=v__default.forwardRef(be),D=v__default.memo(fe);D.displayName="Checkbox";var Y=t=>typeof t=="string"?jsx("div",{className:"text-f4 py-4 text-center font-semibold text-on-base-2 lg:py-10",children:t}):t,Ne=({columns:t,data:e=[],isLoading:a=!1,error:b=!1,selectable:l=!1,showSelectAll:d=!0,showCountSelected:f=!0,onChange:c,selectedIds:n,disabledIds:w=[],id:T="",emptyText:I="Nenhum registro encontrado",errorText:S="Ocorreu um erro ao carregar os itens."})=>{let[m,C]=useState({}),u=useMemo(()=>t.map(o=>({...o,accessorKey:o?.id||""})),[t]);useEffect(()=>{n&&C(n.reduce((o,r)=>({...o,[r]:!0}),{})||{});},[n]),useEffect(()=>{c&&c(Object.keys(m));},[m,c]);let g=useMemo(()=>T?`table${T.charAt(0).toUpperCase()}${T.slice(1)}`:"table",[T]),h=useMemo(()=>l?w.length===0?!0:o=>!w.includes(o.id.toString()):!1,[l,w]),p=useReactTable({data:e,columns:u,state:{rowSelection:m},getRowId:o=>o?.id,enableRowSelection:h,onRowSelectionChange:C,getCoreRowModel:getCoreRowModel(),getPaginationRowModel:getPaginationRowModel(),getFilteredRowModel:getFilteredRowModel(),getFacetedUniqueValues:getFacetedUniqueValues()}),R=p.getIsAllRowsSelected(),L=p.getIsSomeRowsSelected(),F=useMemo(()=>p.getHeaderGroups().map(o=>jsxs(P,{children:[l?jsx($,{className:"w-8",children:d?jsx(D,{checked:R,indeterminate:!R&&L,onChange:p.getToggleAllRowsSelectedHandler(),id:`checkboxSelectAllRows${g}`}):null}):null,o.headers.map((r,V)=>jsx($,{colSpan:r.colSpan,className:r.column.columnDef?.className?.header||"",children:f&&V===0&&Object.keys(m).length>0?jsxs("span",{className:"min-w-28 text-primary-dark",id:"tableCountSelected",children:[Object.keys(m).length," selecionado",Object.keys(m).length>1?"s":""]}):r.isPlaceholder?null:flexRender(r.column.columnDef.header,r.getContext())},r.id))]},o.id)),[p,l,g,R,L,d,m,f]),E=useMemo(()=>l?u.length+1:u.length,[u,l]);return jsxs(B,{id:g,children:[jsx(W,{children:F}),jsx(X,{className:"flex flex-col gap-2 lg:table-row-group",children:a||b||e.length===0?jsx(P,{className:b||e.length===0?"p-0 hover:bg-transparent max-lg:border-none":"flex-row flex-wrap items-center",children:a?jsxs(Fragment,{children:[l?jsx(y,{className:"mr-2",children:jsx(D,{disabled:!0,className:"animate-pulse"})}):null,u.map((o,r)=>jsx(y,{className:`${r===0?"w-10/12":"w-full"} lg:w-auto`,children:jsx(q,{className:"mb-1 lg:mb-0"})},`${o.id}-${r}`))]}):b||e.length===0?jsx(y,{colSpan:E||1,children:Y(b?S:I)}):null}):p.getRowModel().rows.map(o=>jsxs(P,{"data-checked":o.getIsSelected(),className:l?"flex-row flex-wrap items-center":"",children:[l?jsx(y,{children:jsx(D,{onChange:o.getToggleSelectedHandler(),checked:o.getIsSelected(),disabled:!o.getCanSelect(),indeterminate:o.getIsSomeSelected(),id:`checkboxRow${o.id}${g}`,className:"mr-2 lg:mr-0"})}):null,o.getVisibleCells().map(r=>jsx(y,{className:r.column.columnDef?.className?.cell||"",children:flexRender(r.column.columnDef.cell,r.getContext())},r.id))]},o.id))})]})},ht=memo(Ne);var ke=cva("relative flex max-h-full w-full flex-col break-words rounded-t-xl border border-card-stroke bg-base-1 p-8 shadow-lg outline-none transition-all focus:outline-none sm:rounded-xl sm:p-10",{variants:{size:{small:"sm:max-w-[600px]",default:"sm:max-w-4xl",large:"sm:max-w-6xl"}},defaultVariants:{size:"default"}}),Se=({className:t="",isOpen:e=!1,preventClose:a$1=!1,size:b$1="default",headerStep:l="",headerTitle:d="",headerClose:f="",footerActions:c,onClose:n,closeTimeout:w=200,parentSelector:T,children:I})=>{let[S,m]=useState(!1),[C,u]=useState(!1);useEffect(()=>{m(e),u(a$1);},[e,a$1]);let g=()=>{m(!1);};return jsx(Me,{isOpen:S,onAfterClose:()=>{n&&n();},onRequestClose:g,closeTimeoutMS:w,ariaHideApp:!1,shouldCloseOnOverlayClick:!C,shouldCloseOnEsc:!C,overlayClassName:"opacity-0 justify-center items-end sm:items-center flex overflow-hidden w-screen h-full fixed inset-0 z-50 outline-none bg-black/50 pt-16 sm:p-3 focus:outline-none transition-opacity ease-in-out",className:a(ke({size:b$1,className:t})),bodyOpenClassName:"ReactModal__Body--open overflow-hidden",testId:"modal-component",parentSelector:()=>T||document.body,contentElement:(p,R)=>jsxs("div",{...p,children:[jsxs("div",{className:"ReactModal__Header flex w-full items-start justify-between",children:[jsxs("div",{children:[l?jsx("div",{className:"text-f7 min-w-0 break-words pb-3 font-semibold uppercase text-inverted-2",children:l}):null,d?jsx("h2",{className:"text-f4 mb-4 break-words font-semibold text-on-base",children:d}):null]}),jsxs("button",{type:"button",id:"btnCloseModal",className:`${a$1?"hidden":"flex"} -mr-2 -mt-3 items-center p-2 pb-1 text-sm font-semibold text-inverted-2 transition-colors hover:text-inverted-1`,onClick:g,children:[f?jsx("span",{className:"pr-2",children:f}):null,jsx(b,{icon:"close",size:4})]})]}),jsx("div",{className:"ReactModal__innerContent -mx-8 min-w-0 flex-auto overflow-x-auto overscroll-none break-words px-8 sm:-mx-10 sm:px-10",children:R}),c?jsx("div",{className:"ReactModal__footer pt-5",children:c}):null]}),children:I})},Le=v__default.memo(Se);Le.displayName="Modal";var Pe=["[background:linear-gradient(theme(colors.base-1/100)_33%,rgba(255,255,255,0)),linear-gradient(rgba(255,255,255,0),theme(colors.base-1/100)_66%)_0_100%,radial-gradient(farthest-side_at_50%_0,rgba(156,156,156,0.5),rgba(0,0,0,0)),radial-gradient(farthest-side_at_50%_100%,_rgba(156,156,156,0.5),rgba(0,0,0,0))_0_100%]","[background-size:100%_15px,100%_15px,100%_5px,100%_5px]","[background-attachment:local,local,scroll,scroll]","[background-repeat:no-repeat]","[background-color:theme(colors.base-1/100)]","[&_.form-group_.bg-base-1]:bg-transparent"],De=({children:t,footerActions:e,isOpen:a=!1,onClose:b$1,title:l,helpLink:d})=>{let[f,c]=useState(!1);useEffect(()=>{c(a);},[a]);let n=()=>{c(!1),b$1?.();};return jsxs("div",{className:`sidebar-fixed fixed bottom-0 right-0 z-40 size-full overflow-x-hidden transition-all ease-in-out lg:z-20 ${f?"pointer-events-auto opacity-100":"pointer-events-none opacity-0"}`,children:[jsx("div",{className:"sidebar-fixed-backdrop fixed inset-0 -z-1 size-full bg-black/50",onClick:n}),jsxs("div",{className:`sidebar-fixed-inner absolute inset-y-0 right-0 mt-10 flex h-auto w-full flex-col justify-between rounded-t-lg bg-base-1 shadow transition-transform sm:ml-16 sm:mt-0 sm:max-w-[410px] sm:rounded-none ${f?"translate-x-0":"translate-x-10"}`,children:[jsxs("div",{className:"sidebar-fixed-header flex items-center justify-between p-3 text-inverted-2 lg:px-5",children:[l?jsx("div",{className:"sidebar-fixed-title text-f5 p-2 font-semibold text-inverted-1 sm:text-f4 sm:py-5",children:l}):null,jsxs("div",{className:`flex justify-between${l?"":" flex-1"}`,children:[jsx("button",{"aria-label":"Fechar",type:"button",className:"sidebar-fixed-close p-2 text-inverted-2 transition-colors hover:text-inverted-1",onClick:n,children:jsx(b,{icon:"close",size:4,className:"block"})}),d?jsx("a",{"aria-label":"Ajuda",className:"sidebar-fixed-help p-2 text-inverted-2 transition-colors hover:text-inverted-1",href:d,target:"_blank",rel:"noreferrer",children:jsx(b,{icon:"questionCircle",size:4,className:"block"})}):null]})]}),jsx("div",{className:`sidebar-fixed-content w-full flex-1 grow overflow-auto overscroll-none break-words px-5 lg:px-7 ${Pe.join(" ")}`,children:t}),e?jsx("div",{className:"sidebar-fixed-footer flex items-center justify-between p-5 lg:p-7 lg:pt-6",children:e}):null]})]})},Ae=v__default.memo(De);Ae.displayName="SidebarFixed";var U={default:"max-w-[964px]",expanded:"max-w-[1204px]"};var Oe=({children:t,expanded:e=!1,className:a$1=""})=>jsx("div",{className:a(`${e?U.expanded:U.default} page-container mx-auto mb-16 mt-6 px-5 pb-3 lg:mb-10 lg:px-8 lg:pb-0`,a$1),"data-expanded":e,children:t}),Fe=({children:t,className:e=""})=>jsx("div",{className:a("flex w-full items-baseline justify-between",e),children:t}),$e=memo(Oe);$e.displayName="Container";var ze=memo(Fe);ze.displayName="ContainerHeader";
|
|
18
|
-
|
|
19
|
-
export { D as Checkbox, $e as Container, ze as ContainerHeader, ht as DataTable, Z as InputHelpText, q as LoadingPlaceholder, Le as Modal, Ae as SidebarFixed, De as SidebarFixedComponent, B as Table, X as TableBody, ce as TableCaption, y as TableCell, de as TableFooter, $ as TableHead, W as TableHeader, P as TableRow };
|
|
26
|
+
export { a as Icon } from './chunk-RPTUERXQ.js';
|
|
27
|
+
import './chunk-2H2JX2FG.js';
|
|
28
|
+
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';
|
|
29
|
+
export { a as Tabs } from './chunk-63ACUGSG.js';
|
|
30
|
+
export { a as Checkbox } from './chunk-22FGINA5.js';
|
|
31
|
+
export { a as InputHelpText } from './chunk-3OHDGUPG.js';
|
|
32
|
+
import './chunk-WEYSRHTX.js';
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IconProps } from '@/components/Icon/';
|
|
3
|
+
type alertVariantsOptions = 'success' | 'warning' | 'danger' | 'info' | 'primary';
|
|
4
|
+
export interface AlertProps {
|
|
5
|
+
/** Alert color
|
|
6
|
+
* @default info
|
|
7
|
+
* */
|
|
8
|
+
variant?: alertVariantsOptions;
|
|
9
|
+
/** Alert is visible
|
|
10
|
+
* @default true
|
|
11
|
+
*/
|
|
12
|
+
isOpen?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Alert main text
|
|
15
|
+
*/
|
|
16
|
+
title: string | React.ReactNode;
|
|
17
|
+
/**
|
|
18
|
+
* Alert text below title
|
|
19
|
+
*/
|
|
20
|
+
subtitle?: string | React.ReactNode;
|
|
21
|
+
/**
|
|
22
|
+
* Function to close alert (also activate `showClose`)
|
|
23
|
+
*/
|
|
24
|
+
onClose?: () => void;
|
|
25
|
+
/** Show button close
|
|
26
|
+
* @default false
|
|
27
|
+
*/
|
|
28
|
+
showClose?: boolean;
|
|
29
|
+
/** Hide alert icon
|
|
30
|
+
* @default false
|
|
31
|
+
*/
|
|
32
|
+
hideIcon?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Custom icon
|
|
35
|
+
*/
|
|
36
|
+
customIcon?: IconProps['icon'];
|
|
37
|
+
/**
|
|
38
|
+
* Action for the alert, like button and hiperlinks
|
|
39
|
+
* */
|
|
40
|
+
actions?: React.ReactNode;
|
|
41
|
+
/**
|
|
42
|
+
* Custom className for the Alert container
|
|
43
|
+
* */
|
|
44
|
+
className?: string;
|
|
45
|
+
}
|
|
46
|
+
export declare const Alert: React.MemoExoticComponent<({ variant, isOpen, title, subtitle, actions, showClose, onClose, hideIcon, customIcon, className, }: AlertProps) => import("react/jsx-runtime").JSX.Element | null>;
|
|
47
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Alert';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const Badge: React.MemoExoticComponent<({ type, text, size, expanded, rounded, className }: BadgeProps) => import("react/jsx-runtime").JSX.Element>;
|
|
3
|
+
export interface BadgeProps {
|
|
4
|
+
/**
|
|
5
|
+
* Custom class name
|
|
6
|
+
* */
|
|
7
|
+
className?: string;
|
|
8
|
+
/** Badge color
|
|
9
|
+
* @default neutral
|
|
10
|
+
* */
|
|
11
|
+
type?: 'neutral' | 'neutralLight' | 'primary' | 'danger' | 'success' | 'warning' | 'focus';
|
|
12
|
+
/**
|
|
13
|
+
* Badge text
|
|
14
|
+
* */
|
|
15
|
+
text?: string;
|
|
16
|
+
/** Size of the badge
|
|
17
|
+
* @default default
|
|
18
|
+
* */
|
|
19
|
+
size?: 'default' | 'small' | 'xsmall';
|
|
20
|
+
/**
|
|
21
|
+
* Enlarge width of the badge
|
|
22
|
+
* */
|
|
23
|
+
expanded?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Style of rounded corners
|
|
26
|
+
* @default full
|
|
27
|
+
* */
|
|
28
|
+
rounded?: 'full' | 'small' | 'none';
|
|
29
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Badge';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface TagProps {
|
|
3
|
+
/** Tag's color
|
|
4
|
+
* @default neutral
|
|
5
|
+
* */
|
|
6
|
+
variant?: 'neutral' | 'primary' | 'danger' | 'success' | 'warning';
|
|
7
|
+
/**
|
|
8
|
+
* Tag's content
|
|
9
|
+
* */
|
|
10
|
+
content: string | React.ReactNode;
|
|
11
|
+
/**
|
|
12
|
+
* Enlarge Tag's width
|
|
13
|
+
* */
|
|
14
|
+
fullWidth?: boolean;
|
|
15
|
+
/** Adittional Tag's classes
|
|
16
|
+
* @default ''
|
|
17
|
+
* */
|
|
18
|
+
className?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Tag's action, like a button or an icon
|
|
21
|
+
* */
|
|
22
|
+
action?: React.ReactNode;
|
|
23
|
+
/**
|
|
24
|
+
* Icon to remove Tag on click
|
|
25
|
+
* */
|
|
26
|
+
removeTag?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Handler called when close icon is clicked
|
|
29
|
+
* */
|
|
30
|
+
onClose?: () => void;
|
|
31
|
+
}
|
|
32
|
+
export declare const Tag: React.MemoExoticComponent<({ variant, content, fullWidth, className, action, removeTag, onClose, }: TagProps) => import("react/jsx-runtime").JSX.Element>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ReactModal__Overlay--after-open{@apply opacity-100;}.ReactModal__Overlay--before-close{@apply opacity-0;}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Tag';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export { a as Tag } from '../../chunk-NHDLQM42.js';
|
|
2
|
+
import '../../chunk-DIFKNF3L.js';
|
|
3
|
+
import '../../chunk-BW2HQVCT.js';
|
|
4
|
+
import '../../chunk-YTHY4XI2.js';
|
|
5
|
+
import '../../chunk-KEVA65S5.js';
|
|
6
|
+
import '../../chunk-LTHYFCE7.js';
|
|
7
|
+
import '../../chunk-FLXTIRDF.js';
|
|
8
|
+
import '../../chunk-RGSYU4MA.js';
|
|
9
|
+
import '../../chunk-LTWCICTK.js';
|
|
10
|
+
import '../../chunk-RPTUERXQ.js';
|
|
11
|
+
import '../../chunk-2H2JX2FG.js';
|
|
12
|
+
import '../../chunk-RL2XPX57.js';
|
|
13
|
+
import '../../chunk-63ACUGSG.js';
|
|
14
|
+
import '../../chunk-22FGINA5.js';
|
|
15
|
+
import '../../chunk-3OHDGUPG.js';
|
|
16
|
+
import '../../chunk-WEYSRHTX.js';
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import './style.scss';
|
|
2
|
+
import { TippyProps } from '@tippyjs/react';
|
|
3
|
+
declare const Tooltip: import("react").MemoExoticComponent<({ isVisible, appendTo, hideOnClick, trigger, hideInMobile, duration, interactive, allowHTML, maxWidth, touch, placement, content, children, ...props }: TooltipProps) => import("react/jsx-runtime").JSX.Element>;
|
|
4
|
+
interface TooltipProps extends TippyProps {
|
|
5
|
+
/**
|
|
6
|
+
* Controls tooltip visibility
|
|
7
|
+
* @default true
|
|
8
|
+
*/
|
|
9
|
+
isVisible?: boolean;
|
|
10
|
+
/** Tooltip append
|
|
11
|
+
* @default 'document.body'
|
|
12
|
+
* */
|
|
13
|
+
appendTo?: TippyProps['appendTo'];
|
|
14
|
+
/** Tooltip hide on click
|
|
15
|
+
* @default false
|
|
16
|
+
* */
|
|
17
|
+
hideOnClick?: TippyProps['hideOnClick'];
|
|
18
|
+
/** Tooltip trigger
|
|
19
|
+
* @default 'mouseenter'
|
|
20
|
+
* */
|
|
21
|
+
trigger?: TippyProps['trigger'];
|
|
22
|
+
/** Tooltip action on touch
|
|
23
|
+
* @default ['hold', 400]
|
|
24
|
+
* */
|
|
25
|
+
touch?: TippyProps['touch'];
|
|
26
|
+
/**
|
|
27
|
+
* Hide tooltip in mobile screen
|
|
28
|
+
* @default false
|
|
29
|
+
*/
|
|
30
|
+
hideInMobile?: boolean;
|
|
31
|
+
/** Tooltip duration
|
|
32
|
+
* @default 150
|
|
33
|
+
* */
|
|
34
|
+
duration?: TippyProps['duration'];
|
|
35
|
+
/** Tooltip position
|
|
36
|
+
* @default 'top'
|
|
37
|
+
* */
|
|
38
|
+
placement?: TippyProps['placement'];
|
|
39
|
+
/** Tooltip can be hovered over and clicked inside
|
|
40
|
+
* @default false
|
|
41
|
+
* */
|
|
42
|
+
interactive?: TippyProps['interactive'];
|
|
43
|
+
/**
|
|
44
|
+
* Allow use HTML in content
|
|
45
|
+
* @default true
|
|
46
|
+
*/
|
|
47
|
+
allowHTML?: TippyProps['allowHTML'];
|
|
48
|
+
/**
|
|
49
|
+
* Tooltip max width
|
|
50
|
+
* @default 250
|
|
51
|
+
*/
|
|
52
|
+
maxWidth?: TippyProps['maxWidth'];
|
|
53
|
+
}
|
|
54
|
+
export { Tooltip, type TooltipProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.tippy-box{@apply relative bg-inverted-1 text-base-1 rounded text-f7 outline-0 transition-all;}.tippy-box[data-animation=fade][data-state=hidden]{@apply opacity-0;}.tippy-box [data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box[data-placement^=top]>.tippy-arrow{@apply bottom-0;}.tippy-box[data-placement^=top]>.tippy-arrow:before{@apply -bottom-2 left-0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{@apply top-0;}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{@apply -top-2 left-0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{@apply right-0;}.tippy-box[data-placement^=left]>.tippy-arrow:before{@apply -right-2;border-width:8px 0 8px 8px;border-left-color:initial;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{@apply left-0;}.tippy-box[data-placement^=right]>.tippy-arrow:before{@apply -left-2;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-box .tippy-arrow{@apply text-inverted-1 w-4 h-4;}.tippy-box .tippy-arrow:before{@apply absolute border-transparent border-solid;content:""}.tippy-box .tippy-content{@apply relative py-3 px-2 z-1;}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Tooltip';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { a as Tooltip } from '../../chunk-GWT7XT76.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ReactModal__Overlay--after-open{@apply opacity-100;}.ReactModal__Overlay--before-close{@apply opacity-0;}.tippy-box{@apply relative bg-inverted-1 text-base-1 rounded text-f7 outline-0 transition-all;}.tippy-box[data-animation=fade][data-state=hidden]{@apply opacity-0;}.tippy-box [data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box[data-placement^=top]>.tippy-arrow{@apply bottom-0;}.tippy-box[data-placement^=top]>.tippy-arrow:before{@apply -bottom-2 left-0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{@apply top-0;}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{@apply -top-2 left-0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{@apply right-0;}.tippy-box[data-placement^=left]>.tippy-arrow:before{@apply -right-2;border-width:8px 0 8px 8px;border-left-color:initial;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{@apply left-0;}.tippy-box[data-placement^=right]>.tippy-arrow:before{@apply -left-2;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-box .tippy-arrow{@apply text-inverted-1 w-4 h-4;}.tippy-box .tippy-arrow:before{@apply absolute border-transparent border-solid;content:""}.tippy-box .tippy-content{@apply relative py-3 px-2 z-1;}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import '../chunk-AKA4VSQF.js';
|
|
2
|
+
export { a as Alert } from '../chunk-QNBPXACD.js';
|
|
3
|
+
export { a as Badge } from '../chunk-YDYMRCXH.js';
|
|
4
|
+
export { a as Tag } from '../chunk-NHDLQM42.js';
|
|
5
|
+
import '../chunk-DIFKNF3L.js';
|
|
6
|
+
import '../chunk-BW2HQVCT.js';
|
|
7
|
+
import '../chunk-YTHY4XI2.js';
|
|
8
|
+
export { a as Tooltip } from '../chunk-GWT7XT76.js';
|
|
9
|
+
import '../chunk-KEVA65S5.js';
|
|
10
|
+
import '../chunk-LTHYFCE7.js';
|
|
11
|
+
import '../chunk-FLXTIRDF.js';
|
|
12
|
+
import '../chunk-RGSYU4MA.js';
|
|
13
|
+
import '../chunk-LTWCICTK.js';
|
|
14
|
+
import '../chunk-RPTUERXQ.js';
|
|
15
|
+
import '../chunk-2H2JX2FG.js';
|
|
16
|
+
import '../chunk-RL2XPX57.js';
|
|
17
|
+
import '../chunk-63ACUGSG.js';
|
|
18
|
+
import '../chunk-22FGINA5.js';
|
|
19
|
+
import '../chunk-3OHDGUPG.js';
|
|
20
|
+
import '../chunk-WEYSRHTX.js';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ButtonProps } from '@/components/Button';
|
|
3
|
+
declare const ActionBar: React.MemoExoticComponent<({ onlyMobile, children }: ActionBarProps) => import("react/jsx-runtime").JSX.Element>;
|
|
4
|
+
interface ActionBarProps {
|
|
5
|
+
/**
|
|
6
|
+
* Show component only on Mobile
|
|
7
|
+
* @default false
|
|
8
|
+
*/
|
|
9
|
+
onlyMobile?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* React children
|
|
12
|
+
*/
|
|
13
|
+
children: React.ReactElement<ButtonProps> | React.ReactElement<ButtonProps>[];
|
|
14
|
+
}
|
|
15
|
+
export { ActionBar, type ActionBarProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ActionBar';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { a as ActionBar } from '../../chunk-AZI2H7OT.js';
|
|
2
|
+
import '../../chunk-L6H2NDVS.js';
|
|
3
|
+
import '../../chunk-YTHY4XI2.js';
|
|
4
|
+
import '../../chunk-LTWCICTK.js';
|
|
5
|
+
import '../../chunk-RPTUERXQ.js';
|
|
6
|
+
import '../../chunk-2H2JX2FG.js';
|
|
7
|
+
import '../../chunk-WEYSRHTX.js';
|