@loja-integrada/admin-components 1.0.1 → 1.0.3
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-QNBPXACD.js → chunk-243NQZV5.js} +2 -2
- package/dist/{chunk-AZI2H7OT.js → chunk-26ZK5M43.js} +2 -2
- package/dist/{chunk-YDYMRCXH.js → chunk-4BVRONPO.js} +2 -2
- package/dist/{chunk-FLXTIRDF.js → chunk-AHEXEKOY.js} +1 -1
- package/dist/{chunk-NHDLQM42.js → chunk-BQW67FSK.js} +2 -2
- package/dist/{chunk-RGSYU4MA.js → chunk-LSC6FNBR.js} +1 -1
- package/dist/chunk-LZI7QZWG.js +10 -0
- package/dist/chunk-SFPIOMYQ.js +7 -0
- package/dist/chunk-TZI6YTCW.js +7 -0
- package/dist/components/Button/index.d.ts +52 -1
- package/dist/components/DataTable/index.d.ts +77 -1
- package/dist/components/DataTable/index.js +2 -2
- 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 +35 -1
- package/dist/components/SidebarFixed/index.js +1 -1
- package/dist/components/Table/index.d.ts +12 -1
- package/dist/components/Tabs/index.d.ts +47 -1
- package/dist/components/Tabs/index.js +1 -1
- package/dist/components/index.css +1 -1
- package/dist/components/index.js +5 -5
- package/dist/forms/Checkbox/index.d.ts +31 -1
- package/dist/forms/Checkbox/index.js +1 -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/forms/InputMask/index.js +1 -1
- package/dist/forms/index.js +2 -2
- package/dist/index.css +1 -1
- package/dist/index.d.ts +31 -5
- package/dist/index.js +17 -16
- package/dist/indicators/Alert/index.d.ts +50 -1
- package/dist/indicators/Alert/index.js +1 -1
- package/dist/indicators/Badge/index.d.ts +33 -1
- package/dist/indicators/Badge/index.js +1 -1
- package/dist/indicators/Tag/index.d.ts +36 -1
- package/dist/indicators/Tag/index.js +1 -11
- 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 +4 -14
- package/dist/layout/ActionBar/index.d.ts +21 -1
- package/dist/layout/ActionBar/index.js +1 -1
- package/dist/layout/Box/index.d.ts +71 -1
- package/dist/layout/Container/index.d.ts +18 -1
- package/dist/layout/index.js +1 -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/dist/navigation/Stepper/index.js +2 -7
- package/dist/navigation/index.js +2 -1
- package/package.json +55 -52
- package/dist/chunk-GWT7XT76.js +0 -7
- package/dist/chunk-KEVA65S5.js +0 -10
- 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/Tag/index.css +0 -1
- 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/dist/{chunk-27G6ETZK.js → chunk-KOVXAJCN.js} +0 -0
- /package/dist/{chunk-22FGINA5.js → chunk-NXHQNIK2.js} +0 -0
- /package/dist/{chunk-63ACUGSG.js → chunk-PTCZDH6A.js} +0 -0
- /package/dist/{chunk-IPSRY3RR.js → chunk-ZYY5DINE.js} +0 -0
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
|
```
|
|
@@ -3,6 +3,6 @@ import { a as a$1 } from './chunk-WEYSRHTX.js';
|
|
|
3
3
|
import v, { useState, useEffect } from 'react';
|
|
4
4
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
5
5
|
|
|
6
|
-
var a={success:{class:"bg-success-light border-success",icon:"checkCircle",iconClass:"text-success"},warning:{class:"bg-warning-light border-warning",icon:"exclamationTriangle",iconClass:"text-warning"},danger:{class:"bg-danger-light border-danger",icon:"ban",iconClass:"text-danger"},info:{class:"bg-base-1 border-inverted-2",icon:"infoCircle",iconClass:"text-inverted-2"},primary:{class:"bg-primary-light border-primary",icon:"infoCircle",iconClass:"text-primary"}},N=({variant:s="info",isOpen:t=!0,title:p,subtitle:
|
|
6
|
+
var a={success:{class:"bg-success-light border-success",icon:"checkCircle",iconClass:"text-success"},warning:{class:"bg-warning-light border-warning",icon:"exclamationTriangle",iconClass:"text-warning"},danger:{class:"bg-danger-light border-danger",icon:"ban",iconClass:"text-danger"},info:{class:"bg-base-1 border-inverted-2",icon:"infoCircle",iconClass:"text-inverted-2"},primary:{class:"bg-primary-light border-primary",icon:"infoCircle",iconClass:"text-primary"}},N=({variant:s="info",isOpen:t=!0,title:p,subtitle:l,actions:o,showClose:f=!1,onClose:c,hideIcon:g=!1,customIcon:m,className:b})=>{let[x,d]=useState(t);useEffect(()=>{d(t);},[t]);let u=()=>{d(!1),c?.();};return x?jsxs("div",{className:a$1("alert relative flex w-full items-start rounded border border-l-4 px-5 py-4 sm:items-center",a[s].class,b),children:[!g&&jsx("div",{className:a$1("alert-icon mr-3 hidden shrink-0 sm:block",a[s].iconClass),children:jsx(a$2,{icon:m||a[s].icon,size:6})}),jsxs("div",{className:"flex min-w-0 grow flex-col items-start justify-between sm:flex-row sm:items-center",children:[jsxs("div",{className:"text-f6 flex min-w-0 flex-col justify-center break-words leading-5 tracking-4 text-on-base",children:[jsx("span",{className:"alert-title font-semibold",children:p}),l?jsx("span",{className:"alert-subtitle mt-1",children:l}):null]}),o?jsx("div",{className:"alert-actions mt-3 flex shrink-0 flex-row items-center space-x-3 sm:ml-5 sm:mt-0 sm:flex-row-reverse sm:space-x-reverse",children:o}):null]}),f||c?jsx("div",{className:"alert-close ml-5 flex shrink-0",children:jsx("button",{className:"-m-2 p-2 text-inverted-2 hover:text-inverted-1",onClick:u,type:"button","aria-label":"Close",children:jsx(a$2,{icon:"close",size:4,className:"mt-px sm:mt-0"})})}):null]}):null},h=v.memo(N);h.displayName="Alert";
|
|
7
7
|
|
|
8
|
-
export {
|
|
8
|
+
export { h as a };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { a } from './chunk-L6H2NDVS.js';
|
|
2
2
|
import { a as a$1 } from './chunk-YTHY4XI2.js';
|
|
3
3
|
import { a as a$2 } from './chunk-RPTUERXQ.js';
|
|
4
|
-
import
|
|
4
|
+
import c, { memo, useState, useEffect } from 'react';
|
|
5
5
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
6
6
|
|
|
7
|
-
var b=({onlyMobile:i=!1,children:l})=>{let[d,m]=useState(!0);return useEffect(()=>{if(typeof window<"u"){let e=window.parent.document.querySelector(".botbar"),t=window.document.querySelector(".page-container");return e&&(e.style.display="none"),t&&(t.classList.remove("lg:mb-10","lg:pb-0"),m(!!t.dataset.expanded)),()=>{e&&(e.style.display=""),t&&t.classList.add("lg:mb-10","lg:pb-0");}}},[]),jsx("div",{className:"action-bar fixed inset-x-0 bottom-0 h-12 lg:h-auto pb-0-safe bg-inverted-1 lg:bg-base-1 z-50 shadow"+(i?" lg:hidden":""),children:jsxs("div",{className:`${d?a.expanded:a.default} mx-auto flex size-full items-center justify-center px-8 lg:justify-end lg:px-0`,children:[!i&&jsx("div",{className:"my-2.5 mr-8 hidden grid-flow-col gap-x-4 lg:grid",children:
|
|
7
|
+
var b=({onlyMobile:i=!1,children:l})=>{let[d,m]=useState(!0);return useEffect(()=>{if(typeof window<"u"){let e=window.parent.document.querySelector(".botbar"),t=window.document.querySelector(".page-container");return e&&(e.style.display="none"),t&&(t.classList.remove("lg:mb-10","lg:pb-0"),m(!!t.dataset.expanded)),()=>{e&&(e.style.display=""),t&&t.classList.add("lg:mb-10","lg:pb-0");}}},[]),jsx("div",{className:"action-bar fixed inset-x-0 bottom-0 h-12 lg:h-auto pb-0-safe bg-inverted-1 lg:bg-base-1 z-50 shadow"+(i?" lg:hidden":""),children:jsxs("div",{className:`${d?a.expanded:a.default} mx-auto flex size-full items-center justify-center px-8 lg:justify-end lg:px-0`,children:[!i&&jsx("div",{className:"my-2.5 mr-8 hidden grid-flow-col gap-x-4 lg:grid",children:c.Children.map(l,({props:e})=>{let{...t}=e;return delete t?.icon,jsx(a$1,{...t})})}),jsx("div",{className:"lg:hidden",children:c.Children.map(l,({props:e})=>{if(e.children)return jsxs("button",{className:"px-4 py-1 text-base-1 active:text-base-4 transition-colors"+(e?.loading?" pointer-events-none":""),onClick:e?.onClick,type:e?.type||"button",children:[e?.loading?jsx(a$2,{icon:"loading",className:"p-px"}):e?.icon&&jsx(a$2,{icon:e?.icon,className:"mx-auto p-px"}),jsx("span",{className:"text-f8 mt-px block",children:e.children})]})})})]})})},x=memo(b);x.displayName="ActionBar";
|
|
8
8
|
|
|
9
9
|
export { x as a };
|
|
@@ -3,6 +3,6 @@ import { cva } from 'class-variance-authority';
|
|
|
3
3
|
import o from 'react';
|
|
4
4
|
import { jsx } from 'react/jsx-runtime';
|
|
5
5
|
|
|
6
|
-
var i=cva("badge items-center justify-center font-semibold",{variants:{type:{neutral:"bg-inverted-2 text-base-1",neutralLight:"bg-inverted-3 text-tertiary",primary:"bg-primary-dark text-base-1",danger:"bg-danger-dark text-base-1",success:"bg-success-dark text-base-1",warning:"bg-warning-dark text-base-1",focus:"bg-focus text-base-1"},size:{default:"px-2 py-0.5 text-xs",small:"px-1.5 text-[0.70rem]",xsmall:"text-f8 px-0.5 py-px"},expanded:{true:"flex w-full",false:"inline-flex"},rounded:{full:"rounded-full",small:"rounded",none:"rounded-none"}},defaultVariants:{type:"primary",size:"default"}}),u=({type:
|
|
6
|
+
var i=cva("badge items-center justify-center font-semibold",{variants:{type:{neutral:"bg-inverted-2 text-base-1",neutralLight:"bg-inverted-3 text-tertiary",primary:"bg-primary-dark text-base-1",danger:"bg-danger-dark text-base-1",success:"bg-success-dark text-base-1",warning:"bg-warning-dark text-base-1",focus:"bg-focus text-base-1"},size:{default:"px-2 py-0.5 text-xs",small:"px-1.5 text-[0.70rem]",xsmall:"text-f8 px-0.5 py-px"},expanded:{true:"flex w-full",false:"inline-flex"},rounded:{full:"rounded-full",small:"rounded",none:"rounded-none"}},defaultVariants:{type:"primary",size:"default"}}),u=({type:a$1="neutral",text:t,size:r="default",expanded:s=!1,rounded:n="full",className:l=""})=>jsx("div",{className:a(i({type:a$1,size:r,expanded:s,rounded:n}),l),children:t}),p=o.memo(u);p.displayName="Badge";
|
|
7
7
|
|
|
8
|
-
export {
|
|
8
|
+
export { p 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 };
|
|
@@ -5,6 +5,6 @@ import { cva } from 'class-variance-authority';
|
|
|
5
5
|
import g from 'react';
|
|
6
6
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
7
7
|
|
|
8
|
-
var p=cva("tag text-f6 items-center justify-between rounded border px-4 py-2 leading-6 tracking-4 text-primary-bold",{variants:{variant:{neutral:"border-inverted-2 bg-base-1",primary:"border-primary bg-primary-light",danger:"border-danger bg-danger-light",success:"border-success bg-success-light",warning:"border-warning bg-warning-light"},fullWidth:{true:"flex",false:"inline-flex"}},defaultVariants:{variant:"primary",fullWidth:!1}}),f=({variant:i="neutral",content:o,fullWidth:s=!1,className:l="",action:r,removeTag:c=!1,onClose:m})=>jsxs("div",{className:a(p({variant:i,fullWidth:s,className:l})),children:[jsx("div",{className:"content-container -my-px min-w-0 break-words",children:o}),r?jsx("div",{className:"action-container -my-px ml-3",children:r}):null,!r&&c?jsx("div",{className:"remove-tag-container -my-px ml-3 flex items-center justify-center",children:jsx(a$1,{title:"Remover",type:"button",onClick:m,variant:"onlyText",children:jsx(a$2,{icon:"timesCircle",size:4})})}):null]}),
|
|
8
|
+
var p=cva("tag text-f6 items-center justify-between rounded border px-4 py-2 leading-6 tracking-4 text-primary-bold",{variants:{variant:{neutral:"border-inverted-2 bg-base-1",primary:"border-primary bg-primary-light",danger:"border-danger bg-danger-light",success:"border-success bg-success-light",warning:"border-warning bg-warning-light"},fullWidth:{true:"flex",false:"inline-flex"}},defaultVariants:{variant:"primary",fullWidth:!1}}),f=({variant:i="neutral",content:o,fullWidth:s=!1,className:l="",action:r,removeTag:c=!1,onClose:m})=>jsxs("div",{className:a(p({variant:i,fullWidth:s,className:l})),children:[jsx("div",{className:"content-container -my-px min-w-0 break-words",children:o}),r?jsx("div",{className:"action-container -my-px ml-3",children:r}):null,!r&&c?jsx("div",{className:"remove-tag-container -my-px ml-3 flex items-center justify-center",children:jsx(a$1,{title:"Remover",type:"button",onClick:m,variant:"onlyText",className:"hover:text-on-base",children:jsx(a$2,{icon:"timesCircle",size:4})})}):null]}),N=g.memo(f);
|
|
9
9
|
|
|
10
|
-
export {
|
|
10
|
+
export { N as a };
|
|
@@ -4,4 +4,4 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
4
4
|
|
|
5
5
|
var p=["[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"],u=({children:c,footerActions:i,isOpen:s=!1,onClose:b,title:t,helpLink:o})=>{let[l,n]=useState(!1);useEffect(()=>{n(s);},[s]);let d=()=>{n(!1),b?.();};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 ${l?"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:d}),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 ${l?"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:[t?jsx("div",{className:"sidebar-fixed-title text-f5 p-2 font-semibold text-inverted-1 sm:text-f4 sm:py-5",children:t}):null,jsxs("div",{className:`flex justify-between${t?"":" 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:d,children:jsx(a,{icon:"close",size:4,className:"block"})}),o?jsx("a",{"aria-label":"Ajuda",className:"sidebar-fixed-help p-2 text-inverted-2 transition-colors hover:text-inverted-1",href:o,target:"_blank",rel:"noreferrer",children:jsx(a,{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 ${p.join(" ")}`,children:c}),i?jsx("div",{className:"sidebar-fixed-footer flex items-center justify-between p-5 lg:p-7 lg:pt-6",children:i}):null]})]})},g=f.memo(u);g.displayName="SidebarFixed";
|
|
6
6
|
|
|
7
|
-
export {
|
|
7
|
+
export { g as a };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { a as a$2 } from './chunk-LTHYFCE7.js';
|
|
2
|
+
import { f, c, a as a$1, b, d, g } from './chunk-RL2XPX57.js';
|
|
3
|
+
import { a } from './chunk-NXHQNIK2.js';
|
|
4
|
+
import { useReactTable, getCoreRowModel, getPaginationRowModel, getFilteredRowModel, getFacetedUniqueValues, flexRender } from '@tanstack/react-table';
|
|
5
|
+
import { memo, useState, useMemo, useEffect } from 'react';
|
|
6
|
+
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
7
|
+
|
|
8
|
+
var j=n=>typeof n=="string"?jsx("div",{className:"text-f4 py-4 text-center font-semibold text-on-base-2 lg:py-10",children:n}):n,J=({columns:n,data:d$1=[],isLoading:h=!1,error:g$1=!1,selectable:l=!1,showSelectAll:y=!0,showCountSelected:S=!0,onChange:f$1,selectedIds:R,disabledIds:w=[],id:b$1="",emptyText:A="Nenhum registro encontrado",errorText:v="Ocorreu um erro ao carregar os itens."})=>{let[o,N]=useState({}),r=useMemo(()=>n.map(e=>({...e,accessorKey:e?.id||""})),[n]);useEffect(()=>{R&&N(R.reduce((e,a)=>({...e,[a]:!0}),{})||{});},[R]),useEffect(()=>{f$1&&f$1(Object.keys(o));},[o,f$1]);let u=useMemo(()=>b$1?`table${b$1.charAt(0).toUpperCase()}${b$1.slice(1)}`:"table",[b$1]),F=useMemo(()=>l?w.length===0?!0:e=>!w.includes(e.id.toString()):!1,[l,w]),s=useReactTable({data:d$1,columns:r,state:{rowSelection:o},getRowId:e=>e?.id,enableRowSelection:F,onRowSelectionChange:N,getCoreRowModel:getCoreRowModel(),getPaginationRowModel:getPaginationRowModel(),getFilteredRowModel:getFilteredRowModel(),getFacetedUniqueValues:getFacetedUniqueValues()}),D=s.getIsAllRowsSelected(),x=s.getIsSomeRowsSelected(),E=useMemo(()=>s.getHeaderGroups().map(e=>jsxs(f,{children:[l?jsx(c,{className:"w-8",children:y?jsx(a,{checked:D,indeterminate:!D&&x,onChange:s.getToggleAllRowsSelectedHandler(),id:`checkboxSelectAllRows${u}`}):null}):null,e.headers.map((a,U)=>jsx(c,{colSpan:a.colSpan,className:a.column.columnDef?.className?.header||"",children:S&&U===0&&Object.keys(o).length>0?jsxs("span",{className:"min-w-28 text-primary-dark",id:"tableCountSelected",children:[Object.keys(o).length," selecionado",Object.keys(o).length>1?"s":""]}):a.isPlaceholder?null:flexRender(a.column.columnDef.header,a.getContext())},a.id))]},e.id)),[s,l,u,D,x,y,o,S]),G=useMemo(()=>l?r.length+1:r.length,[r,l]);return jsxs(a$1,{id:u,children:[jsx(b,{children:E}),jsx(d,{className:"flex flex-col gap-2 lg:table-row-group",children:h||g$1||d$1.length===0?jsx(f,{className:g$1||d$1.length===0?"p-0 hover:bg-transparent max-lg:border-none":"flex-row flex-wrap items-center",children:h?jsxs(Fragment,{children:[l?jsx(g,{className:"mr-2",children:jsx(a,{disabled:!0,className:"animate-pulse"})}):null,r.map((e,a)=>jsx(g,{className:`${a===0?"w-10/12":"w-full"} lg:w-auto`,children:jsx(a$2,{className:"mb-1 lg:mb-0"})},`${e.id}-${a}`))]}):g$1||d$1.length===0?jsx(g,{colSpan:G||1,children:j(g$1?v:A)}):null}):s.getRowModel().rows.map(e=>jsxs(f,{"data-checked":e.getIsSelected(),className:l?"flex-row flex-wrap items-center":"",children:[l?jsx(g,{children:jsx(a,{onChange:e.getToggleSelectedHandler(),checked:e.getIsSelected(),disabled:!e.getCanSelect(),indeterminate:e.getIsSomeSelected(),id:`checkboxRow${e.id}${u}`,className:"mr-2 lg:mr-0"})}):null,e.getVisibleCells().map(a=>jsx(g,{className:a.column.columnDef?.className?.cell||"",children:flexRender(a.column.columnDef.cell,a.getContext())},a.id))]},e.id))})]})},P=memo(J);P.displayName="DataTable";var te=P;
|
|
9
|
+
|
|
10
|
+
export { te as a };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { a } from './chunk-WEYSRHTX.js';
|
|
2
|
+
import d from 'react';
|
|
3
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
4
|
+
|
|
5
|
+
var c=d.memo(({className:n="",currentStep:a$1=0,steps:o=[],showText:i=!1})=>{let m=e=>a$1>e?"bg-primary border-primary":a$1===e?"bg-inverted-1 border-inverted-1":"bg-base-4 border-base-4";return jsx("div",{className:a("w-full flex flex-row justify-center gap-x-10 mb-6 relative",n),id:"stepsContainer",children:o.map(({step:e,handleClick:s,customClassName:p,text:b},l)=>jsxs("div",{id:`step${e}`,className:"relative z-10 flex flex-row items-center gap-x-3.5 gap-y-2.5",children:[!i&&l>0&&jsx("div",{id:`leftLinkStep${e}`,className:a("absolute -left-5 h-0.5 w-5",a$1>=e?"bg-primary":"bg-base-4")}),jsx("div",{id:`stepCircle${e}`,className:a("flex size-8 items-center justify-center rounded-full border-2 text-base-1",m(e),p),children:jsx("span",{onClick:s,className:a("font-semibold",s?"cursor-pointer":""),children:e})}),i?jsx("span",{onClick:s,className:a("my-auto text-center text-sm",e<2?"cursor-pointer":"",a$1===e?"font-semibold":""),children:b}):null,!i&&l<o.length-1&&jsx("div",{id:`rightLinkStep${e}`,className:a("absolute -right-5 h-0.5 w-5",a$1>e?"bg-primary":"bg-base-4")})]},e))})});c.displayName="Stepper";
|
|
6
|
+
|
|
7
|
+
export { c as a };
|
|
@@ -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 };
|
|
@@ -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,6 +1,6 @@
|
|
|
1
|
-
export { a as DataTable } from '../../chunk-
|
|
1
|
+
"use client";export { a as DataTable } from '../../chunk-LZI7QZWG.js';
|
|
2
2
|
import '../../chunk-LTHYFCE7.js';
|
|
3
3
|
import '../../chunk-RL2XPX57.js';
|
|
4
|
-
import '../../chunk-
|
|
4
|
+
import '../../chunk-NXHQNIK2.js';
|
|
5
5
|
import '../../chunk-3OHDGUPG.js';
|
|
6
6
|
import '../../chunk-WEYSRHTX.js';
|
|
@@ -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,35 @@
|
|
|
1
|
-
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
|
|
3
|
+
declare const SidebarFixed: React__default.NamedExoticComponent<SidebarFixedProps>;
|
|
4
|
+
interface SidebarFixedProps {
|
|
5
|
+
/**
|
|
6
|
+
* React children
|
|
7
|
+
*/
|
|
8
|
+
children?: React__default.ReactNode;
|
|
9
|
+
/**
|
|
10
|
+
* Bottom actions
|
|
11
|
+
*/
|
|
12
|
+
footerActions?: React__default.ReactNode;
|
|
13
|
+
/** Sidebar is open
|
|
14
|
+
* @default false
|
|
15
|
+
*/
|
|
16
|
+
isOpen?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Call when sidebar is closed
|
|
19
|
+
* */
|
|
20
|
+
onClose?: () => void;
|
|
21
|
+
/**
|
|
22
|
+
* Title displayed in header
|
|
23
|
+
*/
|
|
24
|
+
title?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Help external link
|
|
27
|
+
*/
|
|
28
|
+
helpLink?: string;
|
|
29
|
+
/** The parent element that the sidebar will be attached to
|
|
30
|
+
* @default 'document.body'
|
|
31
|
+
*/
|
|
32
|
+
parentSelector?: HTMLElement | null;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export { SidebarFixed, type SidebarFixedProps };
|