@loja-integrada/admin-components 1.0.1 → 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-TZI6YTCW.js +7 -0
- package/dist/{chunk-FLXTIRDF.js → chunk-V3MWWR5B.js} +1 -1
- package/dist/components/Button/index.d.ts +52 -1
- package/dist/components/DataTable/index.d.ts +77 -1
- package/dist/components/Icon/index.d.ts +127 -1
- package/dist/components/IconCircular/index.d.ts +22 -1
- package/dist/components/LoadingPlaceholder/index.d.ts +12 -1
- package/dist/components/Modal/index.css +1 -1
- package/dist/components/Modal/index.d.ts +56 -1
- package/dist/components/Modal/index.js +1 -1
- package/dist/components/SidebarFixed/index.d.ts +36 -1
- package/dist/components/Table/index.d.ts +12 -1
- package/dist/components/Tabs/index.d.ts +47 -1
- package/dist/components/index.css +1 -1
- package/dist/components/index.js +1 -1
- package/dist/forms/Checkbox/index.d.ts +31 -1
- package/dist/forms/Input/index.d.ts +44 -1
- package/dist/forms/InputHelpText/index.d.ts +20 -1
- package/dist/forms/InputLabel/index.d.ts +32 -1
- package/dist/forms/InputMask/index.d.ts +29 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +30 -5
- package/dist/index.js +2 -2
- package/dist/indicators/Alert/index.d.ts +50 -1
- package/dist/indicators/Badge/index.d.ts +33 -1
- package/dist/indicators/Tag/index.css +1 -1
- package/dist/indicators/Tag/index.d.ts +36 -1
- package/dist/indicators/Tag/index.js +1 -1
- package/dist/indicators/Tooltip/index.css +1 -1
- package/dist/indicators/Tooltip/index.d.ts +57 -1
- package/dist/indicators/Tooltip/index.js +1 -1
- package/dist/indicators/index.css +1 -1
- package/dist/indicators/index.js +2 -2
- package/dist/layout/ActionBar/index.d.ts +21 -1
- package/dist/layout/Box/index.d.ts +71 -1
- package/dist/layout/Container/index.d.ts +18 -1
- package/dist/navigation/Breadcrumb/index.d.ts +45 -1
- package/dist/navigation/HelpLink/index.d.ts +32 -1
- package/dist/navigation/Stepper/index.d.ts +31 -1
- package/package.json +56 -53
- package/dist/chunk-GWT7XT76.js +0 -7
- package/dist/components/Button/Button.d.ts +0 -48
- package/dist/components/DataTable/DataTable.d.ts +0 -74
- package/dist/components/Icon/Icon.d.ts +0 -30
- package/dist/components/IconCircular/IconCircular.d.ts +0 -19
- package/dist/components/LoadingPlaceholder/LoadingPlaceholder.d.ts +0 -9
- package/dist/components/Modal/Modal.d.ts +0 -54
- package/dist/components/SidebarFixed/SidebarFixed.d.ts +0 -34
- package/dist/components/Table/Table.d.ts +0 -10
- package/dist/components/Tabs/Tabs.d.ts +0 -21
- package/dist/components/Tabs/TabsItem.d.ts +0 -34
- package/dist/components/index.d.ts +0 -9
- package/dist/forms/Checkbox/Checkbox.d.ts +0 -28
- package/dist/forms/Input/Input.d.ts +0 -41
- package/dist/forms/InputHelpText/InputHelpText.d.ts +0 -17
- package/dist/forms/InputLabel/InputLabel.d.ts +0 -29
- package/dist/forms/InputMask/InputMask.d.ts +0 -20
- package/dist/forms/InputMask/maskDate.d.ts +0 -7
- package/dist/forms/InputMask/utils.d.ts +0 -6
- package/dist/forms/index.d.ts +0 -5
- package/dist/icons-path/Adjust.d.ts +0 -1
- package/dist/icons-path/AngleDiagonal.d.ts +0 -1
- package/dist/icons-path/AngleDown.d.ts +0 -1
- package/dist/icons-path/AngleHeight.d.ts +0 -1
- package/dist/icons-path/AngleLeft.d.ts +0 -1
- package/dist/icons-path/AngleRight.d.ts +0 -1
- package/dist/icons-path/AngleWidth.d.ts +0 -1
- package/dist/icons-path/App.d.ts +0 -1
- package/dist/icons-path/Arrow.d.ts +0 -1
- package/dist/icons-path/ArrowLeft.d.ts +0 -1
- package/dist/icons-path/ArrowRight.d.ts +0 -1
- package/dist/icons-path/Back.d.ts +0 -1
- package/dist/icons-path/Ban.d.ts +0 -1
- package/dist/icons-path/BarcodeRead.d.ts +0 -1
- package/dist/icons-path/Bell.d.ts +0 -1
- package/dist/icons-path/Blog.d.ts +0 -1
- package/dist/icons-path/Bullhorn.d.ts +0 -1
- package/dist/icons-path/Calculator.d.ts +0 -1
- package/dist/icons-path/CalendarAlt.d.ts +0 -1
- package/dist/icons-path/Camera.d.ts +0 -1
- package/dist/icons-path/Check.d.ts +0 -1
- package/dist/icons-path/CheckCircle.d.ts +0 -1
- package/dist/icons-path/Clock.d.ts +0 -1
- package/dist/icons-path/Clockwise.d.ts +0 -1
- package/dist/icons-path/Close.d.ts +0 -1
- package/dist/icons-path/Cog.d.ts +0 -1
- package/dist/icons-path/Copy.d.ts +0 -1
- package/dist/icons-path/CreditCard.d.ts +0 -1
- package/dist/icons-path/DashedCircle.d.ts +0 -1
- package/dist/icons-path/DefaultCursor.d.ts +0 -1
- package/dist/icons-path/Desktop.d.ts +0 -1
- package/dist/icons-path/Discount.d.ts +0 -1
- package/dist/icons-path/DotsThree.d.ts +0 -1
- package/dist/icons-path/Download.d.ts +0 -1
- package/dist/icons-path/Edit.d.ts +0 -1
- package/dist/icons-path/Envelope.d.ts +0 -1
- package/dist/icons-path/Exchange.d.ts +0 -1
- package/dist/icons-path/ExchangeY.d.ts +0 -1
- package/dist/icons-path/Exclamation.d.ts +0 -1
- package/dist/icons-path/ExclamationCircle.d.ts +0 -1
- package/dist/icons-path/ExclamationTriangle.d.ts +0 -1
- package/dist/icons-path/ExternalLink.d.ts +0 -1
- package/dist/icons-path/Eye.d.ts +0 -1
- package/dist/icons-path/EyeSlash.d.ts +0 -1
- package/dist/icons-path/Filter.d.ts +0 -1
- package/dist/icons-path/HalfBack.d.ts +0 -1
- package/dist/icons-path/Hashtag.d.ts +0 -1
- package/dist/icons-path/Home.d.ts +0 -1
- package/dist/icons-path/IconSolidEnviali.d.ts +0 -1
- package/dist/icons-path/IconSolidLI.d.ts +0 -1
- package/dist/icons-path/IdentificationBadge.d.ts +0 -1
- package/dist/icons-path/Image.d.ts +0 -1
- package/dist/icons-path/InfoCircle.d.ts +0 -1
- package/dist/icons-path/Lightbulb.d.ts +0 -1
- package/dist/icons-path/Link.d.ts +0 -1
- package/dist/icons-path/ListItems.d.ts +0 -1
- package/dist/icons-path/Loading.d.ts +0 -1
- package/dist/icons-path/Minus.d.ts +0 -1
- package/dist/icons-path/MinusCircle.d.ts +0 -1
- package/dist/icons-path/MinusCircleSolid.d.ts +0 -1
- package/dist/icons-path/Mobile.d.ts +0 -1
- package/dist/icons-path/MoneyBill.d.ts +0 -1
- package/dist/icons-path/Move.d.ts +0 -1
- package/dist/icons-path/Nav.d.ts +0 -1
- package/dist/icons-path/Order.d.ts +0 -1
- package/dist/icons-path/Pagali.d.ts +0 -1
- package/dist/icons-path/PaperList.d.ts +0 -1
- package/dist/icons-path/PieChart.d.ts +0 -1
- package/dist/icons-path/Pix.d.ts +0 -1
- package/dist/icons-path/Plus.d.ts +0 -1
- package/dist/icons-path/PlusCircle.d.ts +0 -1
- package/dist/icons-path/Print.d.ts +0 -1
- package/dist/icons-path/Product.d.ts +0 -1
- package/dist/icons-path/QuestionCircle.d.ts +0 -1
- package/dist/icons-path/Reload.d.ts +0 -1
- package/dist/icons-path/Rocket.d.ts +0 -1
- package/dist/icons-path/Search.d.ts +0 -1
- package/dist/icons-path/ShoppingCart.d.ts +0 -1
- package/dist/icons-path/SortDown.d.ts +0 -1
- package/dist/icons-path/Store.d.ts +0 -1
- package/dist/icons-path/Sync.d.ts +0 -1
- package/dist/icons-path/ThinAngleRight.d.ts +0 -1
- package/dist/icons-path/TimesCircle.d.ts +0 -1
- package/dist/icons-path/Trash.d.ts +0 -1
- package/dist/icons-path/Trophy.d.ts +0 -1
- package/dist/icons-path/Truck.d.ts +0 -1
- package/dist/icons-path/Tv.d.ts +0 -1
- package/dist/icons-path/Upload.d.ts +0 -1
- package/dist/icons-path/UsdCircle.d.ts +0 -1
- package/dist/icons-path/User.d.ts +0 -1
- package/dist/icons-path/WhatsApp.d.ts +0 -1
- package/dist/icons-path/index.d.ts +0 -94
- package/dist/indicators/Alert/Alert.d.ts +0 -47
- package/dist/indicators/Badge/Badge.d.ts +0 -29
- package/dist/indicators/Tag/Tag.d.ts +0 -32
- package/dist/indicators/Tooltip/Tooltip.d.ts +0 -54
- package/dist/indicators/index.d.ts +0 -4
- package/dist/layout/ActionBar/ActionBar.d.ts +0 -15
- package/dist/layout/Box/Box.d.ts +0 -68
- package/dist/layout/Container/Container.d.ts +0 -15
- package/dist/layout/constants.d.ts +0 -4
- package/dist/layout/index.d.ts +0 -3
- package/dist/lib/utils.d.ts +0 -5
- package/dist/navigation/Breadcrumb/Breadcrumb.d.ts +0 -43
- package/dist/navigation/HelpLink/HelpLink.d.ts +0 -30
- package/dist/navigation/Stepper/Stepper.d.ts +0 -29
- package/dist/navigation/index.d.ts +0 -2
package/README.md
CHANGED
|
@@ -1,8 +1,95 @@
|
|
|
1
1
|
# Admin-Components
|
|
2
2
|
|
|
3
|
+
[](https://www.npmjs.com/package/@loja-integrada/admin-components)
|
|
4
|
+
|
|
3
5
|
This package contains the admin components for the admin dashboard.
|
|
4
6
|
|
|
5
|
-
##
|
|
7
|
+
## Usage
|
|
8
|
+
|
|
9
|
+
### Installation
|
|
10
|
+
|
|
11
|
+
Install the package using your package manager:
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
npm install @loja-integrada/admin-components
|
|
15
|
+
yarn add @loja-integrada/admin-components
|
|
16
|
+
pnpm add @loja-integrada/admin-components
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
### Style
|
|
20
|
+
|
|
21
|
+
Import the CSS file in your project default CSS file (like globals.scss):
|
|
22
|
+
|
|
23
|
+
```css
|
|
24
|
+
@import '@loja-integrada/admin-components/style.css';
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### Configure TailwindCSS and PostCSS
|
|
28
|
+
|
|
29
|
+
The components are built using [TailwindCSS](https://tailwindcss.com/), you need to use the [@loja-integrada/tailwindcss-config](https://www.npmjs.com/package/@loja-integrada/tailwindcss-config) package to use `defaultPreset` and compile the CSS. [Learn more](../tailwindcss-config/README.md)
|
|
30
|
+
|
|
31
|
+
### Import components
|
|
32
|
+
|
|
33
|
+
You can import the components from the package:
|
|
34
|
+
|
|
35
|
+
```javascript
|
|
36
|
+
import { Button } from '@loja-integrada/admin-components'
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
or
|
|
40
|
+
|
|
41
|
+
```javascript
|
|
42
|
+
import { Button } from '@loja-integrada/admin-components/Button'
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## Development
|
|
46
|
+
|
|
47
|
+
### Create a new component
|
|
48
|
+
|
|
49
|
+
1 - Choose a category for the component (like `components`, `forms`, `indicators`, etc).
|
|
50
|
+
|
|
51
|
+
2 - Create a new folder inside `src/[category]` with the component name.
|
|
52
|
+
Example: `src/forms/InputCurrency`.
|
|
53
|
+
|
|
54
|
+
3 - Create the component file inside the folder.
|
|
55
|
+
Example: `src/forms/InputCurrency/InputCurrency.tsx`.
|
|
56
|
+
|
|
57
|
+
4 - Create the component story file inside the folder.
|
|
58
|
+
Example: `src/forms/InputCurrency/InputCurrency.stories.tsx`.
|
|
59
|
+
|
|
60
|
+
5 - Create the component test file inside the folder.
|
|
61
|
+
Example: `src/forms/InputCurrency/InputCurrency.test.tsx`.
|
|
62
|
+
|
|
63
|
+
6 - Create the component documentation file inside the folder.
|
|
64
|
+
Example: `src/forms/InputCurrency/InputCurrency.doc.mdx`.
|
|
65
|
+
|
|
66
|
+
7 - Create an `index.ts` file inside the folder to export the component, and export too in parent folder `src/forms/index.ts`.
|
|
67
|
+
Example: `export * from './InputCurrency';`.
|
|
68
|
+
|
|
69
|
+
You should have the following structure:
|
|
70
|
+
|
|
71
|
+
```
|
|
72
|
+
src/
|
|
73
|
+
forms/
|
|
74
|
+
InputCurrency/
|
|
75
|
+
InputCurrency.tsx
|
|
76
|
+
InputCurrency.stories.tsx
|
|
77
|
+
InputCurrency.test.tsx
|
|
78
|
+
InputCurrency.doc.mdx
|
|
79
|
+
index.ts
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
_Obs: If your component only works on the **client-side**, the component file name should be `*.client.tsx`. Example: `InputCurrency.client.tsx`_
|
|
83
|
+
|
|
84
|
+
### Preview
|
|
85
|
+
|
|
86
|
+
To preview the components, use the following commands to run Storybook:
|
|
87
|
+
|
|
88
|
+
```bash
|
|
89
|
+
pnpm dev
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
### Test
|
|
6
93
|
|
|
7
94
|
To run the tests, use the following commands:
|
|
8
95
|
|
|
@@ -13,5 +100,5 @@ pnpm test
|
|
|
13
100
|
To run the tests manually in browser, use the following commands:
|
|
14
101
|
|
|
15
102
|
```bash
|
|
16
|
-
pnpm
|
|
103
|
+
pnpm test-visual
|
|
17
104
|
```
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import x from '@tippyjs/react';
|
|
2
|
+
import { memo } from 'react';
|
|
3
|
+
import { jsx, Fragment } from 'react/jsx-runtime';
|
|
4
|
+
|
|
5
|
+
var g=({isVisible:p=!0,appendTo:i=typeof document<"u"?document.body:"parent",hideOnClick:r=!1,trigger:e="mouseenter",hideInMobile:a=!1,duration:n=150,interactive:d=!1,allowHTML:l=!0,maxWidth:c=250,touch:b=["hold",400],placement:m="top",content:y,children:o,...s})=>p?jsx(x,{...s,appendTo:i,hideOnClick:r,trigger:e,touch:a?["hold",999999]:b,duration:n,interactive:d,allowHTML:l,maxWidth:c,placement:m,content:jsx("div",{className:"break-words text-center",children:y}),children:o}):jsx(Fragment,{children:o}),h=memo(g);h.displayName="Tooltip";
|
|
6
|
+
|
|
7
|
+
export { h as a };
|
|
@@ -5,6 +5,6 @@ import _, { useState, useEffect } from 'react';
|
|
|
5
5
|
import O from 'react-modal';
|
|
6
6
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
7
7
|
|
|
8
|
-
var k=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"}}),z=({className:x="",isOpen:a$2=!1,preventClose:t=!1,size:b="default",headerStep:l="",headerTitle:s="",headerClose:n="",footerActions:d,onClose:r,closeTimeout:M=200,parentSelector:i,children:R})=>{let[
|
|
8
|
+
var k=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"}}),z=({className:x="",isOpen:a$2=!1,preventClose:t=!1,size:b="default",headerStep:l="",headerTitle:s="",headerClose:n="",footerActions:d,onClose:r,closeTimeout:M=200,parentSelector:i,children:R})=>{let[w,c]=useState(!1),[m,y]=useState(!1);useEffect(()=>{c(a$2),y(t);},[a$2,t]);let f=()=>{c(!1);};return jsx(O,{isOpen:w,onAfterClose:()=>{r&&r();},onRequestClose:f,closeTimeoutMS:M,ariaHideApp:!1,shouldCloseOnOverlayClick:!m,shouldCloseOnEsc:!m,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(k({size:b,className:x})),bodyOpenClassName:"ReactModal__Body--open overflow-hidden",testId:"modal-component",parentSelector:()=>i||document.body,contentElement:(N,h)=>jsxs("div",{...N,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,s?jsx("h2",{className:"text-f4 mb-4 break-words font-semibold text-on-base",children:s}):null]}),jsxs("button",{type:"button",id:"btnCloseModal",className:`${t?"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:f,children:[n?jsx("span",{className:"pr-2",children:n}):null,jsx(a$1,{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:h}),d?jsx("div",{className:"ReactModal__footer pt-5",children:d}):null]}),children:R})},P=_.memo(z);P.displayName="Modal";
|
|
9
9
|
|
|
10
10
|
export { P as a };
|
|
@@ -1 +1,52 @@
|
|
|
1
|
-
|
|
1
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
|
+
import React__default from 'react';
|
|
4
|
+
import { IconProps } from '../Icon/index.js';
|
|
5
|
+
import 'react/jsx-runtime';
|
|
6
|
+
|
|
7
|
+
declare const buttonVariants: (props?: ({
|
|
8
|
+
variant?: "primary" | "secondary" | "tertiary" | "warning" | "danger" | "outline" | "outlineSecondary" | "onlyText" | null | undefined;
|
|
9
|
+
size?: "small" | "default" | "large" | null | undefined;
|
|
10
|
+
disabled?: boolean | null | undefined;
|
|
11
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
12
|
+
declare const Button: React__default.MemoExoticComponent<React__default.ForwardRefExoticComponent<ButtonProps & React__default.RefAttributes<HTMLButtonAnchorElement>>>;
|
|
13
|
+
type ButtonAnchorProps = React__default.ButtonHTMLAttributes<HTMLButtonElement> & React__default.AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
14
|
+
type HTMLButtonAnchorElement = HTMLButtonElement & HTMLAnchorElement;
|
|
15
|
+
type ButtonVariantsType = VariantProps<typeof buttonVariants>;
|
|
16
|
+
interface ButtonProps extends ButtonAnchorProps, ButtonVariantsType {
|
|
17
|
+
/** Type of component to use
|
|
18
|
+
* @default button
|
|
19
|
+
* */
|
|
20
|
+
as?: 'a' | 'button';
|
|
21
|
+
/**
|
|
22
|
+
* Custom class
|
|
23
|
+
*/
|
|
24
|
+
className?: string;
|
|
25
|
+
/** Button variant
|
|
26
|
+
* @default primary
|
|
27
|
+
* */
|
|
28
|
+
variant?: 'primary' | 'secondary' | 'outlineSecondary' | 'tertiary' | 'warning' | 'danger' | 'outline' | 'onlyText';
|
|
29
|
+
/** Size of the button
|
|
30
|
+
* @default default
|
|
31
|
+
* */
|
|
32
|
+
size?: 'small' | 'default' | 'large';
|
|
33
|
+
/**
|
|
34
|
+
* Button is loading
|
|
35
|
+
* */
|
|
36
|
+
loading?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Button is disabled
|
|
39
|
+
* */
|
|
40
|
+
disabled?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Icon of the button
|
|
43
|
+
*/
|
|
44
|
+
icon?: IconProps['icon'];
|
|
45
|
+
/**
|
|
46
|
+
* Icon of the button
|
|
47
|
+
* @default 'right'
|
|
48
|
+
*/
|
|
49
|
+
iconPosition?: 'left' | 'right';
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export { Button, type ButtonProps };
|
|
@@ -1 +1,77 @@
|
|
|
1
|
-
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ColumnDef } from '@tanstack/react-table';
|
|
3
|
+
|
|
4
|
+
declare const DataTable: <TData>({ columns: columnsProps, data, isLoading, error, selectable, showSelectAll, showCountSelected, onChange, selectedIds, disabledIds, id, emptyText, errorText }: DataTableProps<TData>) => react_jsx_runtime.JSX.Element;
|
|
5
|
+
type DataTableColumn<TData> = ColumnDef<TData> & {
|
|
6
|
+
className?: {
|
|
7
|
+
header?: string;
|
|
8
|
+
cell?: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
interface DataTableProps<TData> {
|
|
12
|
+
/**
|
|
13
|
+
* Array of columns to be displayed in the table
|
|
14
|
+
*/
|
|
15
|
+
columns: DataTableColumn<TData>[];
|
|
16
|
+
/**
|
|
17
|
+
* Array of data to be displayed in the table
|
|
18
|
+
*/
|
|
19
|
+
data?: TData[];
|
|
20
|
+
/**
|
|
21
|
+
* Table is loading
|
|
22
|
+
* @default false
|
|
23
|
+
*/
|
|
24
|
+
isLoading?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Table has an error
|
|
27
|
+
* @default false
|
|
28
|
+
*/
|
|
29
|
+
error?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Makes rows selectable.
|
|
32
|
+
* @default false
|
|
33
|
+
*/
|
|
34
|
+
selectable?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Show select all checkbox in the header,
|
|
37
|
+
* when the table is selectable.
|
|
38
|
+
* @default true
|
|
39
|
+
*/
|
|
40
|
+
showSelectAll?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Show count of selected rows in the header
|
|
43
|
+
* @default true
|
|
44
|
+
*/
|
|
45
|
+
showCountSelected?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Content to show when table is empty
|
|
48
|
+
* @default 'Nenhum registro encontrado'
|
|
49
|
+
*/
|
|
50
|
+
emptyText?: string | React.ReactNode;
|
|
51
|
+
/**
|
|
52
|
+
* Content to show when an error occurs
|
|
53
|
+
* @default 'Ocorreu um erro ao carregar os itens.'
|
|
54
|
+
*/
|
|
55
|
+
errorText?: string | React.ReactNode;
|
|
56
|
+
/**
|
|
57
|
+
* Fired when the row is selectable and the Checkbox of the header/row is clicked
|
|
58
|
+
*/
|
|
59
|
+
onChange?: (selectedRows: string[]) => void;
|
|
60
|
+
/**
|
|
61
|
+
* Array containing the id of selected rows.
|
|
62
|
+
* @default undefined
|
|
63
|
+
*/
|
|
64
|
+
selectedIds?: string[];
|
|
65
|
+
/**
|
|
66
|
+
* Array containing the id of disabled rows.
|
|
67
|
+
* @default []
|
|
68
|
+
*/
|
|
69
|
+
disabledIds?: string[];
|
|
70
|
+
/**
|
|
71
|
+
* Id of the table.
|
|
72
|
+
* @default undefined
|
|
73
|
+
*/
|
|
74
|
+
id?: string;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export { DataTable, type DataTableColumn, type DataTableProps };
|
|
@@ -1 +1,127 @@
|
|
|
1
|
-
|
|
1
|
+
import { FunctionComponent } from 'react';
|
|
2
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
+
|
|
4
|
+
declare const icons: {
|
|
5
|
+
adjust: () => react_jsx_runtime.JSX.Element;
|
|
6
|
+
angleDiagonal: () => react_jsx_runtime.JSX.Element;
|
|
7
|
+
angleDown: () => react_jsx_runtime.JSX.Element;
|
|
8
|
+
angleHeight: () => react_jsx_runtime.JSX.Element;
|
|
9
|
+
angleLeft: () => react_jsx_runtime.JSX.Element;
|
|
10
|
+
angleRight: () => react_jsx_runtime.JSX.Element;
|
|
11
|
+
angleWidth: () => react_jsx_runtime.JSX.Element;
|
|
12
|
+
app: () => react_jsx_runtime.JSX.Element;
|
|
13
|
+
arrow: () => react_jsx_runtime.JSX.Element;
|
|
14
|
+
arrowLeft: () => react_jsx_runtime.JSX.Element;
|
|
15
|
+
arrowRight: () => react_jsx_runtime.JSX.Element;
|
|
16
|
+
back: () => react_jsx_runtime.JSX.Element;
|
|
17
|
+
ban: () => react_jsx_runtime.JSX.Element;
|
|
18
|
+
barcodeRead: () => react_jsx_runtime.JSX.Element;
|
|
19
|
+
bell: () => react_jsx_runtime.JSX.Element;
|
|
20
|
+
blog: () => react_jsx_runtime.JSX.Element;
|
|
21
|
+
bullhorn: () => react_jsx_runtime.JSX.Element;
|
|
22
|
+
calculator: () => react_jsx_runtime.JSX.Element;
|
|
23
|
+
calendarAlt: () => react_jsx_runtime.JSX.Element;
|
|
24
|
+
camera: () => react_jsx_runtime.JSX.Element;
|
|
25
|
+
check: () => react_jsx_runtime.JSX.Element;
|
|
26
|
+
checkCircle: () => react_jsx_runtime.JSX.Element;
|
|
27
|
+
clock: () => react_jsx_runtime.JSX.Element;
|
|
28
|
+
close: () => react_jsx_runtime.JSX.Element;
|
|
29
|
+
cog: () => react_jsx_runtime.JSX.Element;
|
|
30
|
+
copy: () => react_jsx_runtime.JSX.Element;
|
|
31
|
+
creditcard: () => react_jsx_runtime.JSX.Element;
|
|
32
|
+
discount: () => react_jsx_runtime.JSX.Element;
|
|
33
|
+
desktop: () => react_jsx_runtime.JSX.Element;
|
|
34
|
+
download: () => react_jsx_runtime.JSX.Element;
|
|
35
|
+
edit: () => react_jsx_runtime.JSX.Element;
|
|
36
|
+
exchange: () => react_jsx_runtime.JSX.Element;
|
|
37
|
+
exclamation: () => react_jsx_runtime.JSX.Element;
|
|
38
|
+
exclamationCircle: () => react_jsx_runtime.JSX.Element;
|
|
39
|
+
exclamationTriangle: () => react_jsx_runtime.JSX.Element;
|
|
40
|
+
externalLink: () => react_jsx_runtime.JSX.Element;
|
|
41
|
+
eye: () => react_jsx_runtime.JSX.Element;
|
|
42
|
+
eyeSlash: () => react_jsx_runtime.JSX.Element;
|
|
43
|
+
filter: () => react_jsx_runtime.JSX.Element;
|
|
44
|
+
halfBack: () => react_jsx_runtime.JSX.Element;
|
|
45
|
+
home: () => react_jsx_runtime.JSX.Element;
|
|
46
|
+
iconSolidEnviali: () => react_jsx_runtime.JSX.Element;
|
|
47
|
+
iconSolidLI: () => react_jsx_runtime.JSX.Element;
|
|
48
|
+
image: () => react_jsx_runtime.JSX.Element;
|
|
49
|
+
infoCircle: () => react_jsx_runtime.JSX.Element;
|
|
50
|
+
lightbulb: () => react_jsx_runtime.JSX.Element;
|
|
51
|
+
link: () => react_jsx_runtime.JSX.Element;
|
|
52
|
+
loading: () => react_jsx_runtime.JSX.Element;
|
|
53
|
+
minus: () => react_jsx_runtime.JSX.Element;
|
|
54
|
+
mobile: () => react_jsx_runtime.JSX.Element;
|
|
55
|
+
moneyBill: () => react_jsx_runtime.JSX.Element;
|
|
56
|
+
move: () => react_jsx_runtime.JSX.Element;
|
|
57
|
+
nav: () => react_jsx_runtime.JSX.Element;
|
|
58
|
+
order: () => react_jsx_runtime.JSX.Element;
|
|
59
|
+
pagali: () => react_jsx_runtime.JSX.Element;
|
|
60
|
+
paperList: () => react_jsx_runtime.JSX.Element;
|
|
61
|
+
pieChart: () => react_jsx_runtime.JSX.Element;
|
|
62
|
+
pix: () => react_jsx_runtime.JSX.Element;
|
|
63
|
+
plus: () => react_jsx_runtime.JSX.Element;
|
|
64
|
+
plusCircle: () => react_jsx_runtime.JSX.Element;
|
|
65
|
+
print: () => react_jsx_runtime.JSX.Element;
|
|
66
|
+
product: () => react_jsx_runtime.JSX.Element;
|
|
67
|
+
questionCircle: () => react_jsx_runtime.JSX.Element;
|
|
68
|
+
reload: () => react_jsx_runtime.JSX.Element;
|
|
69
|
+
rocket: () => react_jsx_runtime.JSX.Element;
|
|
70
|
+
search: () => react_jsx_runtime.JSX.Element;
|
|
71
|
+
shoppingCart: () => react_jsx_runtime.JSX.Element;
|
|
72
|
+
sortDown: () => react_jsx_runtime.JSX.Element;
|
|
73
|
+
sync: () => react_jsx_runtime.JSX.Element;
|
|
74
|
+
thinAngleRight: () => react_jsx_runtime.JSX.Element;
|
|
75
|
+
times: () => react_jsx_runtime.JSX.Element;
|
|
76
|
+
timesCircle: () => react_jsx_runtime.JSX.Element;
|
|
77
|
+
trash: () => react_jsx_runtime.JSX.Element;
|
|
78
|
+
truck: () => react_jsx_runtime.JSX.Element;
|
|
79
|
+
tv: () => react_jsx_runtime.JSX.Element;
|
|
80
|
+
upload: () => react_jsx_runtime.JSX.Element;
|
|
81
|
+
usdCircle: () => react_jsx_runtime.JSX.Element;
|
|
82
|
+
user: () => react_jsx_runtime.JSX.Element;
|
|
83
|
+
whatsapp: () => react_jsx_runtime.JSX.Element;
|
|
84
|
+
clockwise: () => react_jsx_runtime.JSX.Element;
|
|
85
|
+
defaultCursor: () => react_jsx_runtime.JSX.Element;
|
|
86
|
+
envelope: () => react_jsx_runtime.JSX.Element;
|
|
87
|
+
exchangeY: () => react_jsx_runtime.JSX.Element;
|
|
88
|
+
hashtag: () => react_jsx_runtime.JSX.Element;
|
|
89
|
+
identificationBadge: () => react_jsx_runtime.JSX.Element;
|
|
90
|
+
listItems: () => react_jsx_runtime.JSX.Element;
|
|
91
|
+
store: () => react_jsx_runtime.JSX.Element;
|
|
92
|
+
trophy: () => react_jsx_runtime.JSX.Element;
|
|
93
|
+
dashedCircle: () => react_jsx_runtime.JSX.Element;
|
|
94
|
+
minusCircle: () => react_jsx_runtime.JSX.Element;
|
|
95
|
+
minusCircleSolid: () => react_jsx_runtime.JSX.Element;
|
|
96
|
+
dotsThree: () => react_jsx_runtime.JSX.Element;
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
declare const iconSizes: {
|
|
100
|
+
1: string;
|
|
101
|
+
2: string;
|
|
102
|
+
3: string;
|
|
103
|
+
4: string;
|
|
104
|
+
5: string;
|
|
105
|
+
6: string;
|
|
106
|
+
7: string;
|
|
107
|
+
8: string;
|
|
108
|
+
9: string;
|
|
109
|
+
10: string;
|
|
110
|
+
};
|
|
111
|
+
declare const Icon: FunctionComponent<IconProps>;
|
|
112
|
+
interface IconProps {
|
|
113
|
+
/**
|
|
114
|
+
* Icon variation
|
|
115
|
+
*/
|
|
116
|
+
icon: keyof typeof icons;
|
|
117
|
+
/** Icon size, number between 1 and 10
|
|
118
|
+
* @default 5
|
|
119
|
+
*/
|
|
120
|
+
size?: keyof typeof iconSizes;
|
|
121
|
+
/**
|
|
122
|
+
* Additional classes for icon
|
|
123
|
+
*/
|
|
124
|
+
className?: string;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export { Icon, type IconProps };
|
|
@@ -1 +1,22 @@
|
|
|
1
|
-
|
|
1
|
+
import { FunctionComponent } from 'react';
|
|
2
|
+
import { IconProps } from '../Icon/index.js';
|
|
3
|
+
import 'react/jsx-runtime';
|
|
4
|
+
|
|
5
|
+
type variantType = 'success' | 'warning' | 'danger';
|
|
6
|
+
declare const IconCircular: FunctionComponent<IconCircularProps>;
|
|
7
|
+
interface IconCircularProps {
|
|
8
|
+
/** Icon circular variant
|
|
9
|
+
* @default success
|
|
10
|
+
* */
|
|
11
|
+
variant?: variantType;
|
|
12
|
+
/**
|
|
13
|
+
* Icon variation
|
|
14
|
+
*/
|
|
15
|
+
icon?: IconProps['icon'];
|
|
16
|
+
/**
|
|
17
|
+
* Custom class for background
|
|
18
|
+
*/
|
|
19
|
+
bgClass?: string;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export { IconCircular, type IconCircularProps };
|
|
@@ -1 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
|
|
4
|
+
declare const LoadingPlaceholder: React__default.MemoExoticComponent<({ className }: LoadingPlaceholderProps) => react_jsx_runtime.JSX.Element>;
|
|
5
|
+
interface LoadingPlaceholderProps {
|
|
6
|
+
/**
|
|
7
|
+
* Custom class name
|
|
8
|
+
*/
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export { LoadingPlaceholder, type LoadingPlaceholderProps };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ReactModal__Overlay--after-open{
|
|
1
|
+
.ReactModal__Overlay--after-open{opacity:1}.ReactModal__Overlay--before-close{opacity:0}
|
|
@@ -1 +1,56 @@
|
|
|
1
|
-
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
|
|
4
|
+
declare const Modal: React__default.MemoExoticComponent<({ className, isOpen, preventClose, size, headerStep, headerTitle, headerClose, footerActions, onClose, closeTimeout, parentSelector, children }: ModalProps) => react_jsx_runtime.JSX.Element>;
|
|
5
|
+
interface ModalProps {
|
|
6
|
+
/**
|
|
7
|
+
* Custom class name
|
|
8
|
+
* */
|
|
9
|
+
className?: string;
|
|
10
|
+
/** Modal is open
|
|
11
|
+
* @default false
|
|
12
|
+
*/
|
|
13
|
+
isOpen?: boolean;
|
|
14
|
+
/** Prevent modal close
|
|
15
|
+
* @default false
|
|
16
|
+
*/
|
|
17
|
+
preventClose?: boolean;
|
|
18
|
+
/** Modal width
|
|
19
|
+
* @default 'default'
|
|
20
|
+
* */
|
|
21
|
+
size?: 'default' | 'large' | 'small';
|
|
22
|
+
/**
|
|
23
|
+
* Modal step, above the title
|
|
24
|
+
* */
|
|
25
|
+
headerStep?: string | React__default.ReactNode;
|
|
26
|
+
/**
|
|
27
|
+
* Modal title
|
|
28
|
+
* */
|
|
29
|
+
headerTitle?: string | React__default.ReactNode;
|
|
30
|
+
/** Close text at header
|
|
31
|
+
* @default ''
|
|
32
|
+
* */
|
|
33
|
+
headerClose?: string | false;
|
|
34
|
+
/**
|
|
35
|
+
* Call when modal is closed
|
|
36
|
+
* */
|
|
37
|
+
onClose?: () => void;
|
|
38
|
+
/**
|
|
39
|
+
* Number indicating the milliseconds to wait before closing the modal
|
|
40
|
+
* */
|
|
41
|
+
closeTimeout?: number;
|
|
42
|
+
/**
|
|
43
|
+
* React children
|
|
44
|
+
*/
|
|
45
|
+
children?: React__default.ReactNode;
|
|
46
|
+
/**
|
|
47
|
+
* React children
|
|
48
|
+
*/
|
|
49
|
+
footerActions?: React__default.ReactNode;
|
|
50
|
+
/** The parent element that the modal will be attached to
|
|
51
|
+
* @default 'document.body'
|
|
52
|
+
*/
|
|
53
|
+
parentSelector?: HTMLElement | null;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export { Modal, type ModalProps };
|
|
@@ -1 +1,36 @@
|
|
|
1
|
-
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
|
|
3
|
+
declare const SidebarFixedComponent: React__default.FC<SidebarFixedProps>;
|
|
4
|
+
declare const SidebarFixed: React__default.NamedExoticComponent<SidebarFixedProps>;
|
|
5
|
+
interface SidebarFixedProps {
|
|
6
|
+
/**
|
|
7
|
+
* React children
|
|
8
|
+
*/
|
|
9
|
+
children?: React__default.ReactNode;
|
|
10
|
+
/**
|
|
11
|
+
* Bottom actions
|
|
12
|
+
*/
|
|
13
|
+
footerActions?: React__default.ReactNode;
|
|
14
|
+
/** Sidebar is open
|
|
15
|
+
* @default false
|
|
16
|
+
*/
|
|
17
|
+
isOpen?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Call when sidebar is closed
|
|
20
|
+
* */
|
|
21
|
+
onClose?: () => void;
|
|
22
|
+
/**
|
|
23
|
+
* Title displayed in header
|
|
24
|
+
*/
|
|
25
|
+
title?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Help external link
|
|
28
|
+
*/
|
|
29
|
+
helpLink?: string;
|
|
30
|
+
/** The parent element that the sidebar will be attached to
|
|
31
|
+
* @default 'document.body'
|
|
32
|
+
*/
|
|
33
|
+
parentSelector?: HTMLElement | null;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export { SidebarFixed, SidebarFixedComponent, type SidebarFixedProps };
|
|
@@ -1 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
declare const Table: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableElement> & React.RefAttributes<HTMLTableElement>>;
|
|
4
|
+
declare const TableHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
5
|
+
declare const TableHead: React.ForwardRefExoticComponent<React.ThHTMLAttributes<HTMLTableCellElement> & React.RefAttributes<HTMLTableCellElement>>;
|
|
6
|
+
declare const TableBody: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
7
|
+
declare const TableFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
8
|
+
declare const TableRow: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableRowElement> & React.RefAttributes<HTMLTableRowElement>>;
|
|
9
|
+
declare const TableCell: React.ForwardRefExoticComponent<React.TdHTMLAttributes<HTMLTableCellElement> & React.RefAttributes<HTMLTableCellElement>>;
|
|
10
|
+
declare const TableCaption: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableCaptionElement> & React.RefAttributes<HTMLTableCaptionElement>>;
|
|
11
|
+
|
|
12
|
+
export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow };
|
|
@@ -1 +1,47 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React$1 from 'react';
|
|
2
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
+
|
|
4
|
+
interface TabsItemInterface {
|
|
5
|
+
/**
|
|
6
|
+
* Custom class name
|
|
7
|
+
*/
|
|
8
|
+
className?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Item identification
|
|
11
|
+
*/
|
|
12
|
+
id: string;
|
|
13
|
+
/**
|
|
14
|
+
* Item visible title
|
|
15
|
+
*/
|
|
16
|
+
title: string;
|
|
17
|
+
/**
|
|
18
|
+
* Complement to title
|
|
19
|
+
* */
|
|
20
|
+
titleComplement?: string | React.ReactNode | ((isActive: boolean) => React.ReactNode);
|
|
21
|
+
/**
|
|
22
|
+
* Disabled a specific tab
|
|
23
|
+
*/
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
declare const Tabs: React$1.MemoExoticComponent<({ className, items, activeItem, onChange }: TabsProps) => react_jsx_runtime.JSX.Element | null>;
|
|
28
|
+
interface TabsProps {
|
|
29
|
+
/**
|
|
30
|
+
* Custom class name
|
|
31
|
+
* */
|
|
32
|
+
className?: string;
|
|
33
|
+
/**
|
|
34
|
+
* ID of the active item
|
|
35
|
+
*/
|
|
36
|
+
activeItem?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Tab item
|
|
39
|
+
*/
|
|
40
|
+
items?: TabsItemInterface[];
|
|
41
|
+
/**
|
|
42
|
+
* Callback handle when selected item change
|
|
43
|
+
* */
|
|
44
|
+
onChange?: (activeTabId: string) => void;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export { Tabs, type TabsProps };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ReactModal__Overlay--after-open{
|
|
1
|
+
.ReactModal__Overlay--after-open{opacity:1}.ReactModal__Overlay--before-close{opacity:0}
|
package/dist/components/index.js
CHANGED
|
@@ -3,7 +3,7 @@ export { a as IconCircular } from '../chunk-BW2HQVCT.js';
|
|
|
3
3
|
export { a as Button } from '../chunk-YTHY4XI2.js';
|
|
4
4
|
export { a as DataTable } from '../chunk-KEVA65S5.js';
|
|
5
5
|
export { a as LoadingPlaceholder } from '../chunk-LTHYFCE7.js';
|
|
6
|
-
export { a as Modal } from '../chunk-
|
|
6
|
+
export { a as Modal } from '../chunk-V3MWWR5B.js';
|
|
7
7
|
export { b as SidebarFixed, a as SidebarFixedComponent } from '../chunk-RGSYU4MA.js';
|
|
8
8
|
import '../chunk-LTWCICTK.js';
|
|
9
9
|
export { a as Icon } from '../chunk-RPTUERXQ.js';
|
|
@@ -1 +1,31 @@
|
|
|
1
|
-
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { InputHelpTextProps } from '../InputHelpText/index.js';
|
|
3
|
+
import 'react/jsx-runtime';
|
|
4
|
+
|
|
5
|
+
declare const Checkbox: React__default.MemoExoticComponent<React__default.ForwardRefExoticComponent<CheckboxProps & React__default.RefAttributes<HTMLInputElement>>>;
|
|
6
|
+
interface CheckboxProps extends InputHelpTextProps, React__default.InputHTMLAttributes<HTMLInputElement> {
|
|
7
|
+
/**
|
|
8
|
+
* Custom class name
|
|
9
|
+
* */
|
|
10
|
+
className?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Text label of the checkbox
|
|
13
|
+
* */
|
|
14
|
+
label?: string | React__default.ReactNode;
|
|
15
|
+
/**
|
|
16
|
+
* Checkbox box isn't selected nwither unselected
|
|
17
|
+
* @default false
|
|
18
|
+
* */
|
|
19
|
+
indeterminate?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Item align
|
|
22
|
+
* @default 'baseline'
|
|
23
|
+
* */
|
|
24
|
+
boxAlign?: 'start' | 'end' | 'center' | 'baseline' | 'stretch';
|
|
25
|
+
/**
|
|
26
|
+
* Error message to display
|
|
27
|
+
* */
|
|
28
|
+
errorMessage?: string;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { Checkbox, type CheckboxProps };
|