@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
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
|
|
4
|
+
declare const InputLabel: React__default.MemoExoticComponent<({ className, label, labelComplement, hasError, required, htmlFor }: InputLabelProps) => react_jsx_runtime.JSX.Element | null>;
|
|
5
|
+
interface InputLabelProps {
|
|
6
|
+
/**
|
|
7
|
+
* Custom class name
|
|
8
|
+
* */
|
|
9
|
+
className?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Label title
|
|
12
|
+
* */
|
|
13
|
+
label?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Complement to label title
|
|
16
|
+
* */
|
|
17
|
+
labelComplement?: string | React__default.ReactNode;
|
|
18
|
+
/** Should render error state
|
|
19
|
+
* @default false
|
|
20
|
+
* */
|
|
21
|
+
hasError?: boolean;
|
|
22
|
+
/** Input is required
|
|
23
|
+
* @default false
|
|
24
|
+
* */
|
|
25
|
+
required?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Input this label is for
|
|
28
|
+
* */
|
|
29
|
+
htmlFor?: string;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export { InputLabel, type InputLabelProps };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { MaskedInputProps } from 'react-text-mask';
|
|
3
|
+
import { InputProps } from '../Input/index.js';
|
|
4
|
+
import '../InputHelpText/index.js';
|
|
5
|
+
import 'react/jsx-runtime';
|
|
6
|
+
import '../InputLabel/index.js';
|
|
7
|
+
|
|
8
|
+
interface IPatterns extends MaskedInputProps {
|
|
9
|
+
inputMode?: 'text' | 'decimal';
|
|
10
|
+
}
|
|
11
|
+
declare const formatValuePatterns: Record<string, IPatterns>;
|
|
12
|
+
|
|
13
|
+
declare const InputMask: React__default.ForwardRefExoticComponent<InputMaskProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
14
|
+
interface InputMaskProps extends InputProps {
|
|
15
|
+
/**
|
|
16
|
+
* Predefined masks. When used, will replace passed `mask` attr
|
|
17
|
+
* @default 'onlyAlphanumeric'
|
|
18
|
+
* */
|
|
19
|
+
formatValue?: keyof typeof formatValuePatterns;
|
|
20
|
+
mask?: MaskedInputProps['mask'];
|
|
21
|
+
guide?: MaskedInputProps['guide'];
|
|
22
|
+
placeholderChar?: MaskedInputProps['placeholderChar'];
|
|
23
|
+
keepCharPositions?: MaskedInputProps['keepCharPositions'];
|
|
24
|
+
pipe?: MaskedInputProps['pipe'];
|
|
25
|
+
showMask?: MaskedInputProps['showMask'];
|
|
26
|
+
}
|
|
27
|
+
type InputMaskType = MaskedInputProps['mask'];
|
|
28
|
+
|
|
29
|
+
export { InputMask, type InputMaskProps, type InputMaskType, formatValuePatterns };
|
|
@@ -0,0 +1,7 @@
|
|
|
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
|
+
export { a as Checkbox } from '../chunk-22FGINA5.js';
|
|
6
|
+
export { a as InputHelpText } from '../chunk-3OHDGUPG.js';
|
|
7
|
+
import '../chunk-WEYSRHTX.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { a as icons } from '../chunk-2H2JX2FG.js';
|
package/dist/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.ReactModal__Overlay--after-open{
|
|
1
|
+
.ReactModal__Overlay--after-open{opacity:1}.ReactModal__Overlay--before-close{opacity:0}.tippy-box{font-size:.75rem;letter-spacing:-.025em;line-height:1.063rem;position:relative;border-radius:.25rem;--tw-bg-opacity:1;background-color:rgb(var(--color-inverted-1) / var(--tw-bg-opacity));--tw-text-opacity:1;color:rgb(var(--color-base-1) / var(--tw-text-opacity));outline-width:0px;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.2s}.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}.tippy-box [data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-.5rem;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-.5rem;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{right:-.5rem;border-width:8px 0 8px 8px;border-left-color:initial;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-.5rem;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{height:1rem;width:1rem;--tw-text-opacity:1;color:rgb(var(--color-inverted-1) / var(--tw-text-opacity))}.tippy-box .tippy-arrow:before{position:absolute;border-style:solid;border-color:transparent;content:""}.tippy-box .tippy-content{position:relative;z-index:1;padding:.75rem .5rem}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,243 +1,30 @@
|
|
|
1
|
-
export { Button, ButtonProps } from './components/Button/
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
export { Button, ButtonProps } from './components/Button/index.js';
|
|
2
|
+
export { DataTable, DataTableColumn, DataTableProps } from './components/DataTable/index.js';
|
|
3
|
+
export { Icon, IconProps } from './components/Icon/index.js';
|
|
4
|
+
export { IconCircular, IconCircularProps } from './components/IconCircular/index.js';
|
|
5
|
+
export { LoadingPlaceholder, LoadingPlaceholderProps } from './components/LoadingPlaceholder/index.js';
|
|
6
|
+
export { Modal, ModalProps } from './components/Modal/index.js';
|
|
7
|
+
export { SidebarFixed, SidebarFixedComponent, SidebarFixedProps } from './components/SidebarFixed/index.js';
|
|
8
|
+
export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow } from './components/Table/index.js';
|
|
9
|
+
export { Tabs, TabsProps } from './components/Tabs/index.js';
|
|
10
|
+
export { Checkbox, CheckboxProps } from './forms/Checkbox/index.js';
|
|
11
|
+
export { Input, InputProps } from './forms/Input/index.js';
|
|
12
|
+
export { InputHelpText, InputHelpTextProps } from './forms/InputHelpText/index.js';
|
|
13
|
+
export { InputLabel, InputLabelProps } from './forms/InputLabel/index.js';
|
|
14
|
+
export { InputMask, InputMaskProps, InputMaskType, formatValuePatterns } from './forms/InputMask/index.js';
|
|
15
|
+
export { Alert, AlertProps } from './indicators/Alert/index.js';
|
|
16
|
+
export { Badge, BadgeProps } from './indicators/Badge/index.js';
|
|
17
|
+
export { Tag, TagProps } from './indicators/Tag/index.js';
|
|
18
|
+
export { Tooltip, TooltipProps } from './indicators/Tooltip/index.js';
|
|
19
|
+
export { ActionBar, ActionBarProps } from './layout/ActionBar/index.js';
|
|
20
|
+
export { Box, BoxContent, BoxContentProps, BoxHeader, BoxHeaderProps, BoxProps, BoxSeparator } from './layout/Box/index.js';
|
|
21
|
+
export { Container, ContainerHeader, ContainerProps } from './layout/Container/index.js';
|
|
22
|
+
export { Breadcrumb, BreadcrumbProps } from './navigation/Breadcrumb/index.js';
|
|
23
|
+
export { HelpLink, HelpLinkProps } from './navigation/HelpLink/index.js';
|
|
8
24
|
import 'class-variance-authority/types';
|
|
9
25
|
import 'class-variance-authority';
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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 };
|
|
26
|
+
import 'react';
|
|
27
|
+
import 'react/jsx-runtime';
|
|
28
|
+
import '@tanstack/react-table';
|
|
29
|
+
import 'react-text-mask';
|
|
30
|
+
import '@tippyjs/react';
|
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-TZI6YTCW.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-V3MWWR5B.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,50 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
import { IconProps } from '../../components/Icon/index.js';
|
|
4
|
+
|
|
5
|
+
type alertVariantsOptions = 'success' | 'warning' | 'danger' | 'info' | 'primary';
|
|
6
|
+
interface AlertProps {
|
|
7
|
+
/** Alert color
|
|
8
|
+
* @default info
|
|
9
|
+
* */
|
|
10
|
+
variant?: alertVariantsOptions;
|
|
11
|
+
/** Alert is visible
|
|
12
|
+
* @default true
|
|
13
|
+
*/
|
|
14
|
+
isOpen?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Alert main text
|
|
17
|
+
*/
|
|
18
|
+
title: string | React__default.ReactNode;
|
|
19
|
+
/**
|
|
20
|
+
* Alert text below title
|
|
21
|
+
*/
|
|
22
|
+
subtitle?: string | React__default.ReactNode;
|
|
23
|
+
/**
|
|
24
|
+
* Function to close alert (also activate `showClose`)
|
|
25
|
+
*/
|
|
26
|
+
onClose?: () => void;
|
|
27
|
+
/** Show button close
|
|
28
|
+
* @default false
|
|
29
|
+
*/
|
|
30
|
+
showClose?: boolean;
|
|
31
|
+
/** Hide alert icon
|
|
32
|
+
* @default false
|
|
33
|
+
*/
|
|
34
|
+
hideIcon?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Custom icon
|
|
37
|
+
*/
|
|
38
|
+
customIcon?: IconProps['icon'];
|
|
39
|
+
/**
|
|
40
|
+
* Action for the alert, like button and hiperlinks
|
|
41
|
+
* */
|
|
42
|
+
actions?: React__default.ReactNode;
|
|
43
|
+
/**
|
|
44
|
+
* Custom className for the Alert container
|
|
45
|
+
* */
|
|
46
|
+
className?: string;
|
|
47
|
+
}
|
|
48
|
+
declare const Alert: React__default.MemoExoticComponent<({ variant, isOpen, title, subtitle, actions, showClose, onClose, hideIcon, customIcon, className, }: AlertProps) => react_jsx_runtime.JSX.Element | null>;
|
|
49
|
+
|
|
50
|
+
export { Alert, type AlertProps };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
|
|
4
|
+
declare const Badge: React__default.MemoExoticComponent<({ type, text, size, expanded, rounded, className }: BadgeProps) => react_jsx_runtime.JSX.Element>;
|
|
5
|
+
interface BadgeProps {
|
|
6
|
+
/**
|
|
7
|
+
* Custom class name
|
|
8
|
+
* */
|
|
9
|
+
className?: string;
|
|
10
|
+
/** Badge color
|
|
11
|
+
* @default neutral
|
|
12
|
+
* */
|
|
13
|
+
type?: 'neutral' | 'neutralLight' | 'primary' | 'danger' | 'success' | 'warning' | 'focus';
|
|
14
|
+
/**
|
|
15
|
+
* Badge text
|
|
16
|
+
* */
|
|
17
|
+
text?: string;
|
|
18
|
+
/** Size of the badge
|
|
19
|
+
* @default default
|
|
20
|
+
* */
|
|
21
|
+
size?: 'default' | 'small' | 'xsmall';
|
|
22
|
+
/**
|
|
23
|
+
* Enlarge width of the badge
|
|
24
|
+
* */
|
|
25
|
+
expanded?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Style of rounded corners
|
|
28
|
+
* @default full
|
|
29
|
+
* */
|
|
30
|
+
rounded?: 'full' | 'small' | 'none';
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export { Badge, type BadgeProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ReactModal__Overlay--after-open{opacity:1}.ReactModal__Overlay--before-close{opacity:0}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
|
|
4
|
+
interface TagProps {
|
|
5
|
+
/** Tag's color
|
|
6
|
+
* @default neutral
|
|
7
|
+
* */
|
|
8
|
+
variant?: 'neutral' | 'primary' | 'danger' | 'success' | 'warning';
|
|
9
|
+
/**
|
|
10
|
+
* Tag's content
|
|
11
|
+
* */
|
|
12
|
+
content: string | React__default.ReactNode;
|
|
13
|
+
/**
|
|
14
|
+
* Enlarge Tag's width
|
|
15
|
+
* */
|
|
16
|
+
fullWidth?: boolean;
|
|
17
|
+
/** Adittional Tag's classes
|
|
18
|
+
* @default ''
|
|
19
|
+
* */
|
|
20
|
+
className?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Tag's action, like a button or an icon
|
|
23
|
+
* */
|
|
24
|
+
action?: React__default.ReactNode;
|
|
25
|
+
/**
|
|
26
|
+
* Icon to remove Tag on click
|
|
27
|
+
* */
|
|
28
|
+
removeTag?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Handler called when close icon is clicked
|
|
31
|
+
* */
|
|
32
|
+
onClose?: () => void;
|
|
33
|
+
}
|
|
34
|
+
declare const Tag: React__default.MemoExoticComponent<({ variant, content, fullWidth, className, action, removeTag, onClose, }: TagProps) => react_jsx_runtime.JSX.Element>;
|
|
35
|
+
|
|
36
|
+
export { Tag, type TagProps };
|
|
@@ -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-V3MWWR5B.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 @@
|
|
|
1
|
+
.tippy-box{font-size:.75rem;letter-spacing:-.025em;line-height:1.063rem;position:relative;border-radius:.25rem;--tw-bg-opacity:1;background-color:rgb(var(--color-inverted-1) / var(--tw-bg-opacity));--tw-text-opacity:1;color:rgb(var(--color-base-1) / var(--tw-text-opacity));outline-width:0px;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.2s}.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}.tippy-box [data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-.5rem;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-.5rem;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{right:-.5rem;border-width:8px 0 8px 8px;border-left-color:initial;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-.5rem;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{height:1rem;width:1rem;--tw-text-opacity:1;color:rgb(var(--color-inverted-1) / var(--tw-text-opacity))}.tippy-box .tippy-arrow:before{position:absolute;border-style:solid;border-color:transparent;content:""}.tippy-box .tippy-content{position:relative;z-index:1;padding:.75rem .5rem}
|