@arkyn/components 1.3.50 → 1.3.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle.js +1004 -1026
- package/dist/bundle.umd.cjs +12 -12
- package/dist/{newComponents → components}/Badge/index.d.ts +1 -1
- package/dist/components/Badge/index.d.ts.map +1 -0
- package/dist/{newComponents → components}/Badge/index.js +1 -1
- package/dist/components/Breadcrumb/BreadcrumbContainer/index.d.ts.map +1 -0
- package/dist/components/Breadcrumb/BreadcrumbLink/index.d.ts.map +1 -0
- package/dist/components/Breadcrumb/index.d.ts.map +1 -0
- package/dist/{newComponents → components}/Button/index.d.ts +1 -1
- package/dist/components/Button/index.d.ts.map +1 -0
- package/dist/{newComponents → components}/Button/index.js +1 -1
- package/dist/components/Checkbox/index.d.ts.map +1 -0
- package/dist/components/Divider/index.d.ts +5 -0
- package/dist/components/Divider/index.d.ts.map +1 -0
- package/dist/{newComponents → components}/Divider/index.js +2 -2
- package/dist/components/Drawer/Container/index.d.ts.map +1 -0
- package/dist/components/Drawer/Header/index.d.ts +5 -0
- package/dist/components/Drawer/Header/index.d.ts.map +1 -0
- package/dist/{newComponents → components}/Drawer/Header/index.js +2 -2
- package/dist/components/Drawer/index.d.ts.map +1 -0
- package/dist/{newComponents → components}/Form/FormController/index.d.ts +1 -1
- package/dist/components/Form/FormController/index.d.ts.map +1 -0
- package/dist/{newComponents → components}/Form/FormController/index.js +2 -2
- package/dist/components/Form/FormError/index.d.ts +5 -0
- package/dist/components/Form/FormError/index.d.ts.map +1 -0
- package/dist/{newComponents → components}/Form/FormError/index.js +2 -2
- package/dist/components/Form/FormLabel/index.d.ts.map +1 -0
- package/dist/components/Form/index.d.ts.map +1 -0
- package/dist/components/IconButton/index.d.ts +5 -0
- package/dist/components/IconButton/index.d.ts.map +1 -0
- package/dist/{newComponents → components}/IconButton/index.js +2 -2
- package/dist/{newComponents/Input/MaskInput → components/Input/CpfCpnjInput}/getConfig.d.ts.map +1 -1
- package/dist/components/Input/CpfCpnjInput/index.d.ts.map +1 -0
- package/dist/{newComponents → components}/Input/CpfCpnjInput/index.js +1 -1
- package/dist/components/Input/CpfCpnjInput/utils.d.ts.map +1 -0
- package/dist/components/Input/CurrencyInput/getConfig.d.ts.map +1 -0
- package/dist/components/Input/CurrencyInput/index.d.ts.map +1 -0
- package/dist/{newComponents → components}/Input/CurrencyInput/index.js +1 -1
- package/dist/components/Input/CurrencyInput/utils.d.ts.map +1 -0
- package/dist/components/Input/MaskInput/getConfig.d.ts.map +1 -0
- package/dist/components/Input/MaskInput/index.d.ts.map +1 -0
- package/dist/{newComponents → components}/Input/MaskInput/index.js +1 -1
- package/dist/{newComponents/Textarea → components/Input/SimpleInput}/getConfig.d.ts.map +1 -1
- package/dist/components/Input/SimpleInput/index.d.ts.map +1 -0
- package/dist/{newComponents → components}/Input/SimpleInput/index.js +1 -1
- package/dist/{newComponents → components}/Input/index.d.ts +1 -1
- package/dist/components/Input/index.d.ts.map +1 -0
- package/dist/components/{Select → Input}/utils/morpheme.d.ts +1 -1
- package/dist/components/Input/utils/morpheme.d.ts.map +1 -0
- package/dist/components/Modal/Container/index.d.ts.map +1 -0
- package/dist/components/Modal/Footer/index.d.ts.map +1 -0
- package/dist/components/Modal/Header/index.d.ts.map +1 -0
- package/dist/components/Modal/index.d.ts.map +1 -0
- package/dist/components/Pagination/index.d.ts +5 -0
- package/dist/components/Pagination/index.d.ts.map +1 -0
- package/dist/components/Pagination/index.js +21 -0
- package/dist/components/Select/getConfig.d.ts +1 -1
- package/dist/components/Select/getConfig.d.ts.map +1 -1
- package/dist/components/Select/getConfig.js +1 -1
- package/dist/components/Select/index.d.ts.map +1 -1
- package/dist/components/Select/index.js +27 -27
- package/dist/components/Skeleton/index.d.ts +5 -0
- package/dist/components/Skeleton/index.d.ts.map +1 -0
- package/dist/components/Skeleton/index.js +8 -0
- package/dist/components/Table/TableBody/index.d.ts +5 -0
- package/dist/components/Table/TableBody/index.d.ts.map +1 -0
- package/dist/{newComponents → components}/Table/TableBody/index.js +2 -2
- package/dist/components/Table/TableCaption/index.d.ts +5 -0
- package/dist/components/Table/TableCaption/index.d.ts.map +1 -0
- package/dist/{newComponents → components}/Table/TableCaption/index.js +2 -2
- package/dist/components/Table/TableContainer/index.d.ts +5 -0
- package/dist/components/Table/TableContainer/index.d.ts.map +1 -0
- package/dist/{newComponents → components}/Table/TableContainer/index.js +2 -2
- package/dist/components/Table/TableFooter/index.d.ts +5 -0
- package/dist/components/Table/TableFooter/index.d.ts.map +1 -0
- package/dist/{newComponents → components}/Table/TableFooter/index.js +2 -2
- package/dist/components/Table/TableHeader/index.d.ts +5 -0
- package/dist/components/Table/TableHeader/index.d.ts.map +1 -0
- package/dist/{newComponents → components}/Table/TableHeader/index.js +2 -2
- package/dist/components/Table/index.d.ts.map +1 -0
- package/dist/{newComponents → components}/Textarea/index.d.ts +1 -1
- package/dist/components/Textarea/index.d.ts.map +1 -0
- package/dist/{newComponents → components}/Textarea/index.js +7 -4
- package/dist/components/Toast/index.d.ts +5 -0
- package/dist/components/Toast/index.d.ts.map +1 -0
- package/dist/{newComponents → components}/Toast/index.js +2 -1
- package/dist/components/Tooltip/index.d.ts +5 -0
- package/dist/components/Tooltip/index.d.ts.map +1 -0
- package/dist/{newComponents → components}/Tooltip/index.js +2 -2
- package/dist/index.d.ts +16 -16
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +16 -16
- package/dist/provider/ToastProvider.js +1 -1
- package/dist/{utils → services}/generateIcon.d.ts +1 -1
- package/dist/services/generateIcon.d.ts.map +1 -0
- package/dist/services/generatePagerArray.d.ts.map +1 -0
- package/dist/services/getNextPages.d.ts +3 -0
- package/dist/services/getNextPages.d.ts.map +1 -0
- package/dist/services/getNextPages.js +7 -0
- package/dist/services/getPreviousPages.d.ts +3 -0
- package/dist/services/getPreviousPages.d.ts.map +1 -0
- package/dist/services/getPreviousPages.js +7 -0
- package/dist/services/index.d.ts +7 -0
- package/dist/services/index.d.ts.map +1 -0
- package/dist/services/index.js +6 -0
- package/dist/{newComponents/Input/utils → services}/morpheme.d.ts +1 -1
- package/dist/services/morpheme.d.ts.map +1 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/{newComponents → components}/Badge/index.tsx +2 -2
- package/src/{newComponents → components}/Button/index.tsx +2 -2
- package/src/{newComponents → components}/Divider/index.tsx +3 -4
- package/src/{newComponents → components}/Drawer/Header/index.tsx +3 -3
- package/src/{newComponents → components}/Form/FormController/index.tsx +2 -2
- package/src/{newComponents → components}/Form/FormError/index.tsx +2 -2
- package/src/{newComponents → components}/IconButton/index.tsx +2 -2
- package/src/{newComponents → components}/Input/CpfCpnjInput/index.tsx +1 -1
- package/src/{newComponents → components}/Input/CurrencyInput/index.tsx +1 -1
- package/src/{newComponents → components}/Input/MaskInput/index.tsx +1 -1
- package/src/{newComponents → components}/Input/SimpleInput/index.tsx +1 -1
- package/src/{newComponents → components}/Input/index.tsx +1 -1
- package/src/components/{Select → Input}/utils/morpheme.tsx +1 -1
- package/src/{newComponents → components}/Pagination/index.tsx +32 -41
- package/src/components/Select/getConfig.tsx +2 -2
- package/src/components/Select/index.tsx +22 -21
- package/src/components/Select/styles.css +37 -37
- package/src/components/Skeleton/index.tsx +11 -0
- package/src/{newComponents → components}/Table/TableBody/index.tsx +2 -2
- package/src/{newComponents → components}/Table/TableCaption/index.tsx +2 -2
- package/src/{newComponents → components}/Table/TableContainer/index.tsx +2 -2
- package/src/{newComponents → components}/Table/TableFooter/index.tsx +2 -2
- package/src/{newComponents → components}/Table/TableHeader/index.tsx +2 -2
- package/src/{newComponents → components}/Textarea/index.tsx +22 -17
- package/src/{newComponents → components}/Textarea/styles.css +2 -1
- package/src/{newComponents → components}/Toast/index.tsx +4 -2
- package/src/{newComponents → components}/Tooltip/index.tsx +2 -2
- package/src/index.ts +16 -23
- package/src/provider/ToastProvider.tsx +1 -1
- package/src/{utils → services}/generateIcon.tsx +1 -1
- package/src/services/getNextPages.ts +12 -0
- package/src/services/getPreviousPages.ts +8 -0
- package/src/services/index.ts +13 -0
- package/src/{newComponents/Input/utils → services}/morpheme.tsx +1 -1
- package/dist/components/Select/utils/morpheme.d.ts.map +0 -1
- package/dist/newComponents/Badge/index.d.ts.map +0 -1
- package/dist/newComponents/Breadcrumb/BreadcrumbContainer/index.d.ts.map +0 -1
- package/dist/newComponents/Breadcrumb/BreadcrumbLink/index.d.ts.map +0 -1
- package/dist/newComponents/Breadcrumb/index.d.ts.map +0 -1
- package/dist/newComponents/Button/index.d.ts.map +0 -1
- package/dist/newComponents/Checkbox/index.d.ts.map +0 -1
- package/dist/newComponents/Divider/index.d.ts +0 -5
- package/dist/newComponents/Divider/index.d.ts.map +0 -1
- package/dist/newComponents/Drawer/Container/index.d.ts.map +0 -1
- package/dist/newComponents/Drawer/Header/index.d.ts +0 -5
- package/dist/newComponents/Drawer/Header/index.d.ts.map +0 -1
- package/dist/newComponents/Drawer/index.d.ts.map +0 -1
- package/dist/newComponents/Form/FormController/index.d.ts.map +0 -1
- package/dist/newComponents/Form/FormError/index.d.ts +0 -5
- package/dist/newComponents/Form/FormError/index.d.ts.map +0 -1
- package/dist/newComponents/Form/FormLabel/index.d.ts.map +0 -1
- package/dist/newComponents/Form/index.d.ts.map +0 -1
- package/dist/newComponents/IconButton/index.d.ts +0 -5
- package/dist/newComponents/IconButton/index.d.ts.map +0 -1
- package/dist/newComponents/Input/CpfCpnjInput/getConfig.d.ts.map +0 -1
- package/dist/newComponents/Input/CpfCpnjInput/index.d.ts.map +0 -1
- package/dist/newComponents/Input/CpfCpnjInput/utils.d.ts.map +0 -1
- package/dist/newComponents/Input/CurrencyInput/getConfig.d.ts.map +0 -1
- package/dist/newComponents/Input/CurrencyInput/index.d.ts.map +0 -1
- package/dist/newComponents/Input/CurrencyInput/utils.d.ts.map +0 -1
- package/dist/newComponents/Input/MaskInput/index.d.ts.map +0 -1
- package/dist/newComponents/Input/SimpleInput/getConfig.d.ts.map +0 -1
- package/dist/newComponents/Input/SimpleInput/index.d.ts.map +0 -1
- package/dist/newComponents/Input/index.d.ts.map +0 -1
- package/dist/newComponents/Input/utils/morpheme.d.ts.map +0 -1
- package/dist/newComponents/Modal/Container/index.d.ts.map +0 -1
- package/dist/newComponents/Modal/Footer/index.d.ts.map +0 -1
- package/dist/newComponents/Modal/Header/index.d.ts.map +0 -1
- package/dist/newComponents/Modal/index.d.ts.map +0 -1
- package/dist/newComponents/Pagination/index.d.ts +0 -5
- package/dist/newComponents/Pagination/index.d.ts.map +0 -1
- package/dist/newComponents/Pagination/index.js +0 -31
- package/dist/newComponents/Skeleton/index.d.ts +0 -5
- package/dist/newComponents/Skeleton/index.d.ts.map +0 -1
- package/dist/newComponents/Skeleton/index.js +0 -7
- package/dist/newComponents/Table/TableBody/index.d.ts +0 -5
- package/dist/newComponents/Table/TableBody/index.d.ts.map +0 -1
- package/dist/newComponents/Table/TableCaption/index.d.ts +0 -5
- package/dist/newComponents/Table/TableCaption/index.d.ts.map +0 -1
- package/dist/newComponents/Table/TableContainer/index.d.ts +0 -5
- package/dist/newComponents/Table/TableContainer/index.d.ts.map +0 -1
- package/dist/newComponents/Table/TableFooter/index.d.ts +0 -5
- package/dist/newComponents/Table/TableFooter/index.d.ts.map +0 -1
- package/dist/newComponents/Table/TableHeader/index.d.ts +0 -5
- package/dist/newComponents/Table/TableHeader/index.d.ts.map +0 -1
- package/dist/newComponents/Table/index.d.ts.map +0 -1
- package/dist/newComponents/Textarea/getConfig.d.ts +0 -283
- package/dist/newComponents/Textarea/getConfig.js +0 -19
- package/dist/newComponents/Textarea/index.d.ts.map +0 -1
- package/dist/newComponents/Toast/index.d.ts +0 -5
- package/dist/newComponents/Toast/index.d.ts.map +0 -1
- package/dist/newComponents/Tooltip/index.d.ts +0 -5
- package/dist/newComponents/Tooltip/index.d.ts.map +0 -1
- package/dist/utils/generateIcon.d.ts.map +0 -1
- package/dist/utils/generatePagerArray.d.ts.map +0 -1
- package/src/newComponents/Skeleton/index.tsx +0 -9
- package/src/newComponents/Textarea/getConfig.tsx +0 -39
- /package/dist/{newComponents → components}/Breadcrumb/BreadcrumbContainer/index.d.ts +0 -0
- /package/dist/{newComponents → components}/Breadcrumb/BreadcrumbContainer/index.js +0 -0
- /package/dist/{newComponents → components}/Breadcrumb/BreadcrumbLink/index.d.ts +0 -0
- /package/dist/{newComponents → components}/Breadcrumb/BreadcrumbLink/index.js +0 -0
- /package/dist/{newComponents → components}/Breadcrumb/index.d.ts +0 -0
- /package/dist/{newComponents → components}/Breadcrumb/index.js +0 -0
- /package/dist/{newComponents → components}/Checkbox/index.d.ts +0 -0
- /package/dist/{newComponents → components}/Checkbox/index.js +0 -0
- /package/dist/{newComponents → components}/Drawer/Container/index.d.ts +0 -0
- /package/dist/{newComponents → components}/Drawer/Container/index.js +0 -0
- /package/dist/{newComponents → components}/Drawer/index.d.ts +0 -0
- /package/dist/{newComponents → components}/Drawer/index.js +0 -0
- /package/dist/{newComponents → components}/Form/FormLabel/index.d.ts +0 -0
- /package/dist/{newComponents → components}/Form/FormLabel/index.js +0 -0
- /package/dist/{newComponents → components}/Form/index.d.ts +0 -0
- /package/dist/{newComponents → components}/Form/index.js +0 -0
- /package/dist/{newComponents → components}/Input/CpfCpnjInput/getConfig.d.ts +0 -0
- /package/dist/{newComponents → components}/Input/CpfCpnjInput/getConfig.js +0 -0
- /package/dist/{newComponents → components}/Input/CpfCpnjInput/index.d.ts +0 -0
- /package/dist/{newComponents → components}/Input/CpfCpnjInput/utils.d.ts +0 -0
- /package/dist/{newComponents → components}/Input/CpfCpnjInput/utils.js +0 -0
- /package/dist/{newComponents → components}/Input/CurrencyInput/getConfig.d.ts +0 -0
- /package/dist/{newComponents → components}/Input/CurrencyInput/getConfig.js +0 -0
- /package/dist/{newComponents → components}/Input/CurrencyInput/index.d.ts +0 -0
- /package/dist/{newComponents → components}/Input/CurrencyInput/utils.d.ts +0 -0
- /package/dist/{newComponents → components}/Input/CurrencyInput/utils.js +0 -0
- /package/dist/{newComponents → components}/Input/MaskInput/getConfig.d.ts +0 -0
- /package/dist/{newComponents → components}/Input/MaskInput/getConfig.js +0 -0
- /package/dist/{newComponents → components}/Input/MaskInput/index.d.ts +0 -0
- /package/dist/{newComponents → components}/Input/SimpleInput/getConfig.d.ts +0 -0
- /package/dist/{newComponents → components}/Input/SimpleInput/getConfig.js +0 -0
- /package/dist/{newComponents → components}/Input/SimpleInput/index.d.ts +0 -0
- /package/dist/{newComponents → components}/Input/index.js +0 -0
- /package/dist/components/{Select → Input}/utils/morpheme.js +0 -0
- /package/dist/{newComponents → components}/Modal/Container/index.d.ts +0 -0
- /package/dist/{newComponents → components}/Modal/Container/index.js +0 -0
- /package/dist/{newComponents → components}/Modal/Footer/index.d.ts +0 -0
- /package/dist/{newComponents → components}/Modal/Footer/index.js +0 -0
- /package/dist/{newComponents → components}/Modal/Header/index.d.ts +0 -0
- /package/dist/{newComponents → components}/Modal/Header/index.js +0 -0
- /package/dist/{newComponents → components}/Modal/index.d.ts +0 -0
- /package/dist/{newComponents → components}/Modal/index.js +0 -0
- /package/dist/{newComponents → components}/Table/index.d.ts +0 -0
- /package/dist/{newComponents → components}/Table/index.js +0 -0
- /package/dist/{utils → services}/generateIcon.js +0 -0
- /package/dist/{utils → services}/generatePagerArray.d.ts +0 -0
- /package/dist/{utils → services}/generatePagerArray.js +0 -0
- /package/dist/{newComponents/Input/utils → services}/morpheme.js +0 -0
- /package/src/{newComponents → components}/Badge/styles.css +0 -0
- /package/src/{newComponents → components}/Breadcrumb/BreadcrumbContainer/index.tsx +0 -0
- /package/src/{newComponents → components}/Breadcrumb/BreadcrumbContainer/styles.css +0 -0
- /package/src/{newComponents → components}/Breadcrumb/BreadcrumbLink/index.tsx +0 -0
- /package/src/{newComponents → components}/Breadcrumb/BreadcrumbLink/styles.css +0 -0
- /package/src/{newComponents → components}/Breadcrumb/index.ts +0 -0
- /package/src/{newComponents → components}/Button/styles.css +0 -0
- /package/src/{newComponents → components}/Checkbox/index.tsx +0 -0
- /package/src/{newComponents → components}/Checkbox/styles.css +0 -0
- /package/src/{newComponents → components}/Divider/styles.css +0 -0
- /package/src/{newComponents → components}/Drawer/Container/index.tsx +0 -0
- /package/src/{newComponents → components}/Drawer/Container/styles.css +0 -0
- /package/src/{newComponents → components}/Drawer/Header/styles.css +0 -0
- /package/src/{newComponents → components}/Drawer/index.ts +0 -0
- /package/src/{newComponents → components}/Form/FormController/styles.css +0 -0
- /package/src/{newComponents → components}/Form/FormError/styles.css +0 -0
- /package/src/{newComponents → components}/Form/FormLabel/index.tsx +0 -0
- /package/src/{newComponents → components}/Form/FormLabel/styles.css +0 -0
- /package/src/{newComponents → components}/Form/index.ts +0 -0
- /package/src/{newComponents → components}/IconButton/styles.css +0 -0
- /package/src/{newComponents → components}/Input/CpfCpnjInput/getConfig.tsx +0 -0
- /package/src/{newComponents → components}/Input/CpfCpnjInput/utils.ts +0 -0
- /package/src/{newComponents → components}/Input/CurrencyInput/getConfig.tsx +0 -0
- /package/src/{newComponents → components}/Input/CurrencyInput/utils.ts +0 -0
- /package/src/{newComponents → components}/Input/MaskInput/getConfig.tsx +0 -0
- /package/src/{newComponents → components}/Input/SimpleInput/getConfig.tsx +0 -0
- /package/src/{newComponents → components}/Input/styles.css +0 -0
- /package/src/{newComponents → components}/Modal/Container/index.tsx +0 -0
- /package/src/{newComponents → components}/Modal/Container/styles.css +0 -0
- /package/src/{newComponents → components}/Modal/Footer/index.tsx +0 -0
- /package/src/{newComponents → components}/Modal/Footer/styles.css +0 -0
- /package/src/{newComponents → components}/Modal/Header/index.tsx +0 -0
- /package/src/{newComponents → components}/Modal/Header/styles.css +0 -0
- /package/src/{newComponents → components}/Modal/index.ts +0 -0
- /package/src/{newComponents → components}/Pagination/styles.css +0 -0
- /package/src/{newComponents → components}/Skeleton/styles.css +0 -0
- /package/src/{newComponents → components}/Table/TableBody/styles.css +0 -0
- /package/src/{newComponents → components}/Table/TableCaption/styles.css +0 -0
- /package/src/{newComponents → components}/Table/TableContainer/styles.css +0 -0
- /package/src/{newComponents → components}/Table/TableFooter/styles.css +0 -0
- /package/src/{newComponents → components}/Table/TableHeader/styles.css +0 -0
- /package/src/{newComponents → components}/Table/index.ts +0 -0
- /package/src/{newComponents → components}/Toast/styles.css +0 -0
- /package/src/{newComponents → components}/Tooltip/styles.css +0 -0
- /package/src/{utils → services}/generatePagerArray.ts +0 -0
package/dist/{newComponents/Input/MaskInput → components/Input/CpfCpnjInput}/getConfig.d.ts.map
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getConfig.d.ts","sourceRoot":"","sources":["../../../../src/
|
|
1
|
+
{"version":3,"file":"getConfig.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/CpfCpnjInput/getConfig.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAMtD,iBAAS,SAAS,CAAC,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkE9D;AAED,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/CpfCpnjInput/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAStD,iBAAS,YAAY,CAAC,KAAK,EAAE,iBAAiB,2CAmG7C;AAED,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useRef, useState } from "react";
|
|
3
|
-
import { useFormController } from "../../../
|
|
3
|
+
import { useFormController } from "../../../components/Form/FormController";
|
|
4
4
|
import { getConfig } from "./getConfig";
|
|
5
5
|
import { MAX_LENGTH, TYPES, applyMask, clear, getMask } from "./utils";
|
|
6
6
|
function CpfCnpjInput(props) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/CpfCpnjInput/utils.ts"],"names":[],"mappings":"AAAA,iBAAS,KAAK,CAAC,KAAK,EAAE,MAAM,UAE3B;AAED,iBAAS,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,GAAG,MAAM,UAYrD;AAED,iBAAS,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,KAAK,CAE9C;AAED,QAAA,MAAM,KAAK;;;CAGV,CAAC;AAEF,QAAA,MAAM,UAAU,QAA2B,CAAC;AAE5C,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getConfig.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/CurrencyInput/getConfig.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAKvD,iBAAS,SAAS,CAAC,KAAK,EAAE,kBAAkB,EAAE,SAAS,EAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwD/D;AAED,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/CurrencyInput/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AASvD,iBAAS,aAAa,CAAC,KAAK,EAAE,kBAAkB,2CA6F/C;AAED,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useRef, useState } from "react";
|
|
3
|
-
import { useFormController } from "../../../
|
|
3
|
+
import { useFormController } from "../../../components/Form/FormController";
|
|
4
4
|
import { getConfig } from "./getConfig";
|
|
5
5
|
import { currencyInputKeyDown, valueDisplay } from "./utils";
|
|
6
6
|
function CurrencyInput(props) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/CurrencyInput/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAM3C,KAAK,cAAc,GAAG;IACpB,KAAK,EAAE,aAAa,CAAC,cAAc,CAAC,CAAC;IACrC,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,iBAAS,YAAY,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,UAUzD;AAED,iBAAS,oBAAoB,CAAC,IAAI,EAAE,cAAc,QA4BjD;AAED,OAAO,EAAE,YAAY,EAAE,oBAAoB,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getConfig.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/MaskInput/getConfig.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAKrD,iBAAS,SAAS,CAAC,KAAK,EAAE,gBAAgB,EAAE,SAAS,EAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuD7D;AAED,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/MaskInput/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAgBrD,iBAAS,WAAW,CAAC,KAAK,EAAE,gBAAgB,2CA2E3C;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { InputMask } from "@react-input/mask";
|
|
3
3
|
import { forwardRef, useRef, useState } from "react";
|
|
4
|
-
import { useFormController } from "../../../
|
|
4
|
+
import { useFormController } from "../../../components/Form/FormController";
|
|
5
5
|
import { getConfig } from "./getConfig";
|
|
6
6
|
const BaseInput = forwardRef((props, ref) => {
|
|
7
7
|
return _jsx("input", { ref: ref, ...props });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getConfig.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"getConfig.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/SimpleInput/getConfig.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAKrD,iBAAS,SAAS,CAAC,KAAK,EAAE,gBAAgB,EAAE,SAAS,EAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoD7D;AAED,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/SimpleInput/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAQrD,iBAAS,WAAW,CAAC,KAAK,EAAE,gBAAgB,2CAkF3C;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useRef, useState } from "react";
|
|
3
|
-
import { useFormController } from "../../../
|
|
3
|
+
import { useFormController } from "../../../components/Form/FormController";
|
|
4
4
|
import { getConfig } from "./getConfig";
|
|
5
5
|
function SimpleInput(props) {
|
|
6
6
|
const [isFocused, setIsFocused] = useState(false);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Input/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAO1C,OAAO,cAAc,CAAC;AAEtB,iBAAS,KAAK,CAAC,KAAK,EAAE,UAAU,2CAK/B;AAED,OAAO,EAAE,KAAK,EAAE,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { LucideIcon } from "lucide-react";
|
|
2
2
|
declare function morpheme(data: LucideIcon | string | undefined, iconSize: number, type?: "prefix" | "sufix"): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export { morpheme };
|
|
4
4
|
//# sourceMappingURL=morpheme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"morpheme.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/utils/morpheme.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,iBAAS,QAAQ,CACf,IAAI,EAAE,UAAU,GAAG,MAAM,GAAG,SAAS,EACrC,QAAQ,EAAE,MAAM,EAChB,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,2CAW1B;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Modal/Container/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAInD,OAAO,cAAc,CAAC;AAEtB,KAAK,YAAY,GAAG;IAAE,aAAa,EAAE,MAAM,IAAI,CAAA;CAAE,CAAC;AAClD,QAAA,MAAM,YAAY,uCAAoC,CAAC;AAEvD,iBAAS,cAAc,CAAC,IAAI,EAAE,mBAAmB,2CAwChD;AAED,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Modal/Footer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,cAAc,CAAC;AAEtB,iBAAS,WAAW,CAAC,IAAI,EAAE,gBAAgB,2CAK1C;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Modal/Header/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAKhD,OAAO,cAAc,CAAC;AAEtB,iBAAS,WAAW,CAAC,IAAI,EAAE,gBAAgB,2CA2B1C;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvC,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Pagination/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAO/C,OAAO,cAAc,CAAC;AAEtB,iBAAS,UAAU,CAAC,KAAK,EAAE,eAAe,2CAoGzC;AAED,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useNavigate } from "@remix-run/react";
|
|
3
|
+
import { ChevronLeft, ChevronRight, Ellipsis } from "lucide-react";
|
|
4
|
+
import { useScopedParams } from "../../hooks/useScopedParams";
|
|
5
|
+
import { getNextPages, getPreviousPages } from "../../services";
|
|
6
|
+
import "./styles.css";
|
|
7
|
+
function Pagination(props) {
|
|
8
|
+
const { scope, totalCountRegisters, perPageKey = "per_page", pageKey = "page", siblingsCount = 2, ...rest } = props;
|
|
9
|
+
const navigate = useNavigate();
|
|
10
|
+
const { getParam, getScopedSearch } = useScopedParams(scope);
|
|
11
|
+
const currentPage = Number(getParam(pageKey)) || 1;
|
|
12
|
+
const registerPerPage = Number(getParam(perPageKey)) || 20;
|
|
13
|
+
const lastPage = Math.ceil(totalCountRegisters / registerPerPage);
|
|
14
|
+
const previosPages = getPreviousPages(currentPage, siblingsCount);
|
|
15
|
+
const nextPages = getNextPages(currentPage, siblingsCount, lastPage);
|
|
16
|
+
function handlePageChange(page) {
|
|
17
|
+
navigate(getScopedSearch({ page }));
|
|
18
|
+
}
|
|
19
|
+
return (_jsxs("div", { className: "arkyn_pagination", ...rest, children: [_jsx("button", { className: "arkyn_pagination-icon_button", disabled: currentPage <= 1, onClick: () => handlePageChange(currentPage - 1), children: _jsx(ChevronLeft, {}) }), currentPage > 1 + siblingsCount && (_jsxs(_Fragment, { children: [_jsx("button", { className: "arkyn_pagination-page_button", onClick: () => handlePageChange(1), children: "1" }), currentPage > 2 + siblingsCount && (_jsx("button", { disabled: true, className: "arkyn_pagination-spread", children: _jsx(Ellipsis, {}) }))] })), previosPages.map((page, index) => (_jsx("button", { onClick: () => handlePageChange(page), className: "arkyn_pagination-page_button", children: page }, index))), _jsx("button", { className: "arkyn_pagination-current", disabled: true, children: currentPage }), nextPages.map((page, index) => (_jsx("button", { onClick: () => handlePageChange(page), className: "arkyn_pagination-page_button", children: page }, index))), currentPage + siblingsCount < lastPage && (_jsxs(_Fragment, { children: [currentPage + 1 + siblingsCount < lastPage && (_jsx("button", { disabled: true, className: "arkyn_pagination-spread", children: _jsx(Ellipsis, {}) })), _jsx("button", { className: "arkyn_pagination-page_button", onClick: () => handlePageChange(lastPage), children: lastPage })] })), _jsx("button", { className: "arkyn_pagination-icon_button", disabled: currentPage >= lastPage, onClick: () => handlePageChange(currentPage + 1), children: _jsx(ChevronRight, {}) })] }));
|
|
20
|
+
}
|
|
21
|
+
export { Pagination };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getConfig.d.ts","sourceRoot":"","sources":["../../../src/components/Select/getConfig.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"getConfig.d.ts","sourceRoot":"","sources":["../../../src/components/Select/getConfig.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAK3C,iBAAS,SAAS,CAAC,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8CxD;AAED,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Loader2 } from "lucide-react";
|
|
3
|
-
import { morpheme } from "
|
|
3
|
+
import { morpheme } from "../../services";
|
|
4
4
|
function getConfig(props, isFocused) {
|
|
5
5
|
const { isLoading, isError, size = "md", className: baseClassName = "", variant = "solid", prefix: basePrefix, leftIcon: LeftIcon, disabled, readOnly, onFocus, onBlur, title, style, isSearchable = false, closeOnSelect = true, ...rest } = props;
|
|
6
6
|
const hasPrefix = !!basePrefix ? "hasPrefix" : "";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Select/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAQhD,OAAO,cAAc,CAAC;AAGtB,iBAAS,MAAM,CAAC,KAAK,EAAE,WAAW,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Select/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAQhD,OAAO,cAAc,CAAC;AAGtB,iBAAS,MAAM,CAAC,KAAK,EAAE,WAAW,2CAwKjC;AAED,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
|
@@ -3,14 +3,16 @@ import { Check, ChevronDown } from "lucide-react";
|
|
|
3
3
|
import { useRef, useState } from "react";
|
|
4
4
|
import { getConfig } from "./getConfig";
|
|
5
5
|
import "./styles.css";
|
|
6
|
-
import { useFormController } from "../../
|
|
6
|
+
import { useFormController } from "../../components/Form/FormController";
|
|
7
7
|
function Select(props) {
|
|
8
8
|
const [isFocused, setIsFocused] = useState(false);
|
|
9
9
|
const { inputRef, id, error } = useFormController();
|
|
10
10
|
const baseRef = useRef(null);
|
|
11
11
|
const ref = inputRef || baseRef;
|
|
12
12
|
const isError = props.isError || !!error;
|
|
13
|
-
const { disabled, title, style, className, prefix, iconSize, isLoading, LeftIcon, value: baseValue = null, defaultValue = "", readOnly, onFocus, onBlur, Spinner, name,
|
|
13
|
+
const { disabled, title, style, className, prefix, iconSize, isLoading, LeftIcon, value: baseValue = null, defaultValue = "", readOnly, onFocus, onBlur, Spinner, name,
|
|
14
|
+
// isSearchable,
|
|
15
|
+
placeholder, onSelect, options, optionMaxHeight, closeOnSelect, ...rest } = getConfig({ ...props, id, isError }, isFocused);
|
|
14
16
|
const [selectedValue, setSelectedValue] = useState(defaultValue);
|
|
15
17
|
const [searchValue, setSearchValue] = useState("");
|
|
16
18
|
function handleSectionClick() {
|
|
@@ -47,34 +49,32 @@ function Select(props) {
|
|
|
47
49
|
const currentValue = typeof baseValue === "string" ? baseValue : selectedValue;
|
|
48
50
|
const currentLabel = options.find((option) => option.value === currentValue)?.label || "";
|
|
49
51
|
const placeholderDark = () => {
|
|
50
|
-
if (isSearchable) {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
if (!
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
if (isFocused && !currentLabel)
|
|
66
|
-
return false;
|
|
67
|
-
}
|
|
52
|
+
// if (isSearchable) {
|
|
53
|
+
// if (!isFocused && !!currentLabel) return true;
|
|
54
|
+
// if (!isFocused && !currentLabel) return false;
|
|
55
|
+
// if (isFocused) return false;
|
|
56
|
+
// }
|
|
57
|
+
// if (!isSearchable) {
|
|
58
|
+
if (!isFocused && !!currentLabel)
|
|
59
|
+
return true;
|
|
60
|
+
if (!isFocused && !currentLabel)
|
|
61
|
+
return false;
|
|
62
|
+
if (isFocused && !!currentLabel)
|
|
63
|
+
return true;
|
|
64
|
+
if (isFocused && !currentLabel)
|
|
65
|
+
return false;
|
|
66
|
+
// }
|
|
68
67
|
};
|
|
69
68
|
const filteredOptions = options.filter((option) => {
|
|
70
|
-
if (isSearchable) {
|
|
71
|
-
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
}
|
|
69
|
+
// if (isSearchable) {
|
|
70
|
+
// return option.label.toLowerCase().includes(searchValue.toLowerCase());
|
|
71
|
+
// } else {
|
|
72
|
+
return true;
|
|
73
|
+
// }
|
|
76
74
|
});
|
|
77
|
-
return (_jsxs(_Fragment, { children: [_jsxs("section", { title: title, style: style, onClick: handleSectionClick, className: `${className} placeholder_dark_${placeholderDark()}`, children: [prefix, LeftIcon && _jsx(LeftIcon, { size: iconSize, strokeWidth: 2.5 }), _jsx("input", { disabled: disabled || isLoading,
|
|
75
|
+
return (_jsxs(_Fragment, { children: [_jsxs("section", { title: title, style: style, onClick: handleSectionClick, className: `${className} placeholder_dark_${placeholderDark()}`, children: [prefix, LeftIcon && _jsx(LeftIcon, { size: iconSize, strokeWidth: 2.5 }), _jsx("input", { disabled: disabled || isLoading,
|
|
76
|
+
// readOnly={!isSearchable}
|
|
77
|
+
readOnly: true, value: searchValue || "", placeholder: currentLabel || placeholder, onFocus: handleFocus, onBlur: () => setSearchValue(""), ...rest }), _jsx("input", { type: "hidden", ref: ref, name: name, value: currentValue || "", readOnly: true }), isFocused && (_jsxs("div", { className: "arkyn_select_content", style: { overflow: "auto", maxHeight: optionMaxHeight }, children: [filteredOptions.map(({ label, value }) => (_jsxs("div", { onClick: () => handleChangeValue({ label, value }), className: currentValue === value
|
|
78
78
|
? "arkyn_select_option active"
|
|
79
79
|
: "arkyn_select_option", children: [label, " ", _jsx(Check, {})] }, value))), filteredOptions.length <= 0 && _jsx("p", { children: "Sem op\u00E7\u00F5es dispon\u00EDveis" })] })), !isLoading && (_jsx(ChevronDown, { className: "arkyn_select_arrow", size: iconSize, strokeWidth: 2.5 })), isLoading && Spinner] }), isFocused && (_jsx("aside", { className: "arkyn_select_overlay", onClick: handleBlur }))] }));
|
|
80
80
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Skeleton/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,cAAc,CAAC;AAEtB,iBAAS,QAAQ,CAAC,KAAK,EAAE,aAAa,2CAKrC;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import "./styles.css";
|
|
3
|
+
function Skeleton(props) {
|
|
4
|
+
const { className: baseClassName, ...rest } = props;
|
|
5
|
+
const className = `arkyn_skeleton ${baseClassName}`;
|
|
6
|
+
return _jsx("aside", { className: className.trim(), ...rest });
|
|
7
|
+
}
|
|
8
|
+
export { Skeleton };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/TableBody/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,cAAc,CAAC;AAEtB,iBAAS,SAAS,CAAC,KAAK,EAAE,cAAc,2CAKvC;AAED,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import "./styles.css";
|
|
3
|
-
function TableBody(
|
|
4
|
-
const { className: baseClassName, ...rest } =
|
|
3
|
+
function TableBody(props) {
|
|
4
|
+
const { className: baseClassName, ...rest } = props;
|
|
5
5
|
const className = `arkyn_table_body ${baseClassName}`;
|
|
6
6
|
return _jsx("tbody", { className: className.trim(), ...rest });
|
|
7
7
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/TableCaption/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,cAAc,CAAC;AAEtB,iBAAS,YAAY,CAAC,KAAK,EAAE,iBAAiB,2CAS7C;AAED,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import "./styles.css";
|
|
3
|
-
function TableCaption(
|
|
4
|
-
const { className: baseClassName, children, ...rest } =
|
|
3
|
+
function TableCaption(props) {
|
|
4
|
+
const { className: baseClassName, children, ...rest } = props;
|
|
5
5
|
const className = `arkyn_table_caption ${baseClassName}`;
|
|
6
6
|
return (_jsx("caption", { className: className.trim(), ...rest, children: _jsx("div", { className: "arkyn_table_caption-content", children: children }) }));
|
|
7
7
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/TableContainer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,cAAc,CAAC;AAEtB,iBAAS,cAAc,CAAC,KAAK,EAAE,mBAAmB,2CASjD;AAED,OAAO,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import "./styles.css";
|
|
3
|
-
function TableContainer(
|
|
4
|
-
const { children, className: baseClassName, ...rest } =
|
|
3
|
+
function TableContainer(props) {
|
|
4
|
+
const { children, className: baseClassName, ...rest } = props;
|
|
5
5
|
const className = `arkyn_table_container ${baseClassName}`;
|
|
6
6
|
return (_jsx("div", { className: className.trim(), ...rest, children: _jsx("table", { children: children }) }));
|
|
7
7
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/TableFooter/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,cAAc,CAAC;AAEtB,iBAAS,WAAW,CAAC,KAAK,EAAE,gBAAgB,2CAc3C;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import "./styles.css";
|
|
3
|
-
function TableFooter(
|
|
4
|
-
const { className: baseClassName, children, ...rest } =
|
|
3
|
+
function TableFooter(props) {
|
|
4
|
+
const { className: baseClassName, children, ...rest } = props;
|
|
5
5
|
const className = `arkyn_table_footer ${baseClassName}`;
|
|
6
6
|
return (_jsxs("tfoot", { className: className.trim(), ...rest, children: [_jsx("tr", { className: "spacing-row" }), _jsx("tr", { children: _jsx("th", { colSpan: 100, children: _jsx("div", { className: "arkyn_table_footer-content", children: children }) }) })] }));
|
|
7
7
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/TableHeader/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,cAAc,CAAC;AAEtB,iBAAS,WAAW,CAAC,KAAK,EAAE,gBAAgB,2CAU3C;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import "./styles.css";
|
|
3
|
-
function TableHeader(
|
|
4
|
-
const { className: baseClassName, children, ...rest } =
|
|
3
|
+
function TableHeader(props) {
|
|
4
|
+
const { className: baseClassName, children, ...rest } = props;
|
|
5
5
|
const className = `arkyn_table_header ${baseClassName}`;
|
|
6
6
|
return (_jsxs("thead", { className: className.trim(), ...rest, children: [_jsx("tr", { children: children }), _jsx("tr", { className: "spacing-row" })] }));
|
|
7
7
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Table/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,cAAc,EAAE,WAAW,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Textarea/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAI7C,OAAO,cAAc,CAAC;AAEtB,iBAAS,QAAQ,CAAC,KAAK,EAAE,aAAa,2CA6DrC;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useRef, useState } from "react";
|
|
3
|
-
import { getConfig } from "./getConfig";
|
|
4
3
|
import { useFormController } from "../Form/FormController";
|
|
5
4
|
import "./styles.css";
|
|
6
5
|
function Textarea(props) {
|
|
6
|
+
const { variant = "solid", size = "md", className: baseClassName, disabled = false, readOnly = false, onFocus, onBlur, title, style, ...rest } = props;
|
|
7
7
|
const [isFocused, setIsFocused] = useState(false);
|
|
8
|
-
const baseRef = useRef(null);
|
|
9
8
|
const { inputRef, id, error } = useFormController();
|
|
9
|
+
const baseRef = useRef(null);
|
|
10
10
|
const ref = inputRef || baseRef;
|
|
11
11
|
const isError = props.isError || !!error;
|
|
12
|
-
const
|
|
12
|
+
const errored = isError ? "errored" : "";
|
|
13
|
+
const opacity = disabled || readOnly ? "opacity" : "";
|
|
14
|
+
const focused = isFocused ? "focused" : "";
|
|
15
|
+
const className = `arkyn_textarea ${variant} ${size} ${opacity} ${errored} ${focused} ${baseClassName}`;
|
|
13
16
|
function handleSectionClick() {
|
|
14
17
|
if (disabled || !ref?.current)
|
|
15
18
|
return;
|
|
@@ -26,6 +29,6 @@ function Textarea(props) {
|
|
|
26
29
|
if (onBlur)
|
|
27
30
|
onBlur(e);
|
|
28
31
|
}
|
|
29
|
-
return (_jsx("section", { title: title, style: style, onClick: handleSectionClick, className: className, children: _jsx("textarea", { disabled: disabled, readOnly: readOnly, ref: ref, onFocus: handleFocus, onBlur: handleBlur, ...rest }) }));
|
|
32
|
+
return (_jsx("section", { title: title, style: style, onClick: handleSectionClick, className: className, children: _jsx("textarea", { id: id, disabled: disabled, readOnly: readOnly, ref: ref, onFocus: handleFocus, onBlur: handleBlur, ...rest }) }));
|
|
30
33
|
}
|
|
31
34
|
export { Textarea };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Toast/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG1C,OAAO,cAAc,CAAC;AAEtB,iBAAS,KAAK,CAAC,KAAK,EAAE,UAAU,2CAgC/B;AAED,OAAO,EAAE,KAAK,EAAE,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { AlertCircle, CheckCircle2, Info, XCircle } from "lucide-react";
|
|
3
3
|
import "./styles.css";
|
|
4
|
-
function Toast(
|
|
4
|
+
function Toast(props) {
|
|
5
|
+
const { message, title, type, size = "lg" } = props;
|
|
5
6
|
const className = `arkyn_toast ${type} ${size}`;
|
|
6
7
|
function Icon() {
|
|
7
8
|
switch (type) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Tooltip/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,cAAc,CAAC;AAEtB,iBAAS,OAAO,CAAC,KAAK,EAAE,YAAY,2CAkBnC;AAED,OAAO,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import "./styles.css";
|
|
3
|
-
function Tooltip(
|
|
4
|
-
const { text, size = "lg", children, orientation = "top", className: baseClassName, ...rest } =
|
|
3
|
+
function Tooltip(props) {
|
|
4
|
+
const { text, size = "lg", children, orientation = "top", className: baseClassName, ...rest } = props;
|
|
5
5
|
const className = `arkyn_tooltip ${size} ${orientation} ${baseClassName}`;
|
|
6
6
|
return (_jsxs("div", { className: className.trim(), ...rest, children: [children, _jsx("div", { className: "arkyn_tooltip-text", children: text })] }));
|
|
7
7
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
export { Badge } from "./
|
|
2
|
-
export { Divider } from "./
|
|
3
|
-
export { Skeleton } from "./
|
|
4
|
-
export { TableBody, TableCaption, TableContainer, TableFooter, TableHeader, } from "./
|
|
1
|
+
export { Badge } from "./components/Badge";
|
|
2
|
+
export { Divider } from "./components/Divider";
|
|
3
|
+
export { Skeleton } from "./components/Skeleton";
|
|
4
|
+
export { TableBody, TableCaption, TableContainer, TableFooter, TableHeader, } from "./components/Table";
|
|
5
5
|
export { Select } from "./components/Select";
|
|
6
|
-
export { Button } from "./
|
|
7
|
-
export { Checkbox } from "./
|
|
8
|
-
export { FormController, FormError, FormLabel } from "./
|
|
9
|
-
export { IconButton } from "./
|
|
10
|
-
export { Input } from "./
|
|
11
|
-
export { Textarea } from "./
|
|
12
|
-
export { BreadcrumbContainer, BreadcrumbLink
|
|
13
|
-
export { Pagination } from "./
|
|
14
|
-
export { DrawerContainer, DrawerHeader } from "./
|
|
15
|
-
export { ModalContainer, ModalFooter, ModalHeader
|
|
16
|
-
export { Toast } from "./
|
|
17
|
-
export { Tooltip } from "./
|
|
6
|
+
export { Button } from "./components/Button";
|
|
7
|
+
export { Checkbox } from "./components/Checkbox";
|
|
8
|
+
export { FormController, FormError, FormLabel } from "./components/Form";
|
|
9
|
+
export { IconButton } from "./components/IconButton";
|
|
10
|
+
export { Input } from "./components/Input";
|
|
11
|
+
export { Textarea } from "./components/Textarea";
|
|
12
|
+
export { BreadcrumbContainer, BreadcrumbLink } from "./components/Breadcrumb";
|
|
13
|
+
export { Pagination } from "./components/Pagination";
|
|
14
|
+
export { DrawerContainer, DrawerHeader } from "./components/Drawer";
|
|
15
|
+
export { ModalContainer, ModalFooter, ModalHeader } from "./components/Modal";
|
|
16
|
+
export { Toast } from "./components/Toast";
|
|
17
|
+
export { Tooltip } from "./components/Tooltip";
|
|
18
18
|
export { useAutomation } from "./hooks/useAutomation";
|
|
19
19
|
export { useDrawer } from "./hooks/useDrawer";
|
|
20
20
|
export { useModal } from "./hooks/useModal";
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EACL,SAAS,EACT,YAAY,EACZ,cAAc,EACd,WAAW,EACX,WAAW,GACZ,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACzE,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAGjD,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9E,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAGrD,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAG/C,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAG5C,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
// Data Display
|
|
2
|
-
export { Badge } from "./
|
|
3
|
-
export { Divider } from "./
|
|
4
|
-
export { Skeleton } from "./
|
|
5
|
-
export { TableBody, TableCaption, TableContainer, TableFooter, TableHeader, } from "./
|
|
2
|
+
export { Badge } from "./components/Badge";
|
|
3
|
+
export { Divider } from "./components/Divider";
|
|
4
|
+
export { Skeleton } from "./components/Skeleton";
|
|
5
|
+
export { TableBody, TableCaption, TableContainer, TableFooter, TableHeader, } from "./components/Table";
|
|
6
6
|
// Form
|
|
7
7
|
export { Select } from "./components/Select";
|
|
8
|
-
export { Button } from "./
|
|
9
|
-
export { Checkbox } from "./
|
|
10
|
-
export { FormController, FormError, FormLabel } from "./
|
|
11
|
-
export { IconButton } from "./
|
|
12
|
-
export { Input } from "./
|
|
13
|
-
export { Textarea } from "./
|
|
8
|
+
export { Button } from "./components/Button";
|
|
9
|
+
export { Checkbox } from "./components/Checkbox";
|
|
10
|
+
export { FormController, FormError, FormLabel } from "./components/Form";
|
|
11
|
+
export { IconButton } from "./components/IconButton";
|
|
12
|
+
export { Input } from "./components/Input";
|
|
13
|
+
export { Textarea } from "./components/Textarea";
|
|
14
14
|
// Navigation
|
|
15
|
-
export { BreadcrumbContainer, BreadcrumbLink
|
|
16
|
-
export { Pagination } from "./
|
|
15
|
+
export { BreadcrumbContainer, BreadcrumbLink } from "./components/Breadcrumb";
|
|
16
|
+
export { Pagination } from "./components/Pagination";
|
|
17
17
|
// Overlay
|
|
18
|
-
export { DrawerContainer, DrawerHeader } from "./
|
|
19
|
-
export { ModalContainer, ModalFooter, ModalHeader
|
|
20
|
-
export { Toast } from "./
|
|
21
|
-
export { Tooltip } from "./
|
|
18
|
+
export { DrawerContainer, DrawerHeader } from "./components/Drawer";
|
|
19
|
+
export { ModalContainer, ModalFooter, ModalHeader } from "./components/Modal";
|
|
20
|
+
export { Toast } from "./components/Toast";
|
|
21
|
+
export { Tooltip } from "./components/Tooltip";
|
|
22
22
|
// Hooks
|
|
23
23
|
export { useAutomation } from "./hooks/useAutomation";
|
|
24
24
|
export { useDrawer } from "./hooks/useDrawer";
|