nexaas-ui-components 1.0.11 → 1.0.13
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/index.cjs +188 -135
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +17 -2
- package/dist/index.d.ts +17 -2
- package/dist/index.js +187 -135
- package/dist/index.js.map +1 -1
- package/package.json +3 -1
package/dist/index.d.cts
CHANGED
|
@@ -222,7 +222,10 @@ type InputMoneyProps = DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>,
|
|
|
222
222
|
isWeightField?: boolean;
|
|
223
223
|
minFractionDigits?: number;
|
|
224
224
|
};
|
|
225
|
-
declare
|
|
225
|
+
declare function InputMoney({ label, type, onClick, error, onBlur, onChangeValue, inputProps, icon, clearField, name, required, disabled, value, placeholder, control, defaultValue, isWeightField, minFractionDigits, }: InputMoneyProps): react_jsx_runtime.JSX.Element;
|
|
226
|
+
declare namespace InputMoney {
|
|
227
|
+
var displayName: string;
|
|
228
|
+
}
|
|
226
229
|
|
|
227
230
|
type InputNumberProps = DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement> & {
|
|
228
231
|
label?: string;
|
|
@@ -283,6 +286,18 @@ type MaskedInputProps = {
|
|
|
283
286
|
};
|
|
284
287
|
declare const MaskedInput: ({ type, name, label, placeholder, error, mask, control, required, onKeyUp, maskChar, alwaysShowMask, defaultValue, disabled, }: MaskedInputProps) => react_jsx_runtime.JSX.Element;
|
|
285
288
|
|
|
289
|
+
type InputTestProps = DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement> & {
|
|
290
|
+
label?: string;
|
|
291
|
+
control: Control<any>;
|
|
292
|
+
name: string;
|
|
293
|
+
error?: FieldError;
|
|
294
|
+
required?: boolean;
|
|
295
|
+
};
|
|
296
|
+
declare function InputTest({ label, name, control, error, required, placeholder, disabled, defaultValue, }: InputTestProps): react_jsx_runtime.JSX.Element;
|
|
297
|
+
declare namespace InputTest {
|
|
298
|
+
var displayName: string;
|
|
299
|
+
}
|
|
300
|
+
|
|
286
301
|
type ModalProps = {
|
|
287
302
|
open?: boolean;
|
|
288
303
|
onOpen?: () => void;
|
|
@@ -451,4 +466,4 @@ interface DataTablePaginationProps<TData> {
|
|
|
451
466
|
}
|
|
452
467
|
declare function DataTablePagination<TData>({ table, footer, totalData, selectAllOption, onSelectAll, rowsSelected, onRemoveAll, tableRef, paginationScroll, pageSizeOptions, }: DataTablePaginationProps<TData>): react_jsx_runtime.JSX.Element;
|
|
453
468
|
|
|
454
|
-
export { Badge, Button, Calendar, Checkbox, type CheckboxProps, DataTable, DataTablePagination, DatePickerInput, FilterCalendar, FilterOptions, Input, InputMoney, InputNumber, InputPercentage, Logo, MaskedInput, ModalDialog, type ModalProps, type OptionType, PaginationSelect, Popover, Radio, RocketIcon, SelectField, SpinnerIcon, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Toggle, ValueContainer };
|
|
469
|
+
export { Badge, Button, Calendar, Checkbox, type CheckboxProps, DataTable, DataTablePagination, DatePickerInput, FilterCalendar, FilterOptions, Input, InputMoney, InputNumber, InputPercentage, InputTest, Logo, MaskedInput, ModalDialog, type ModalProps, type OptionType, PaginationSelect, Popover, Radio, RocketIcon, SelectField, SpinnerIcon, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Toggle, ValueContainer };
|
package/dist/index.d.ts
CHANGED
|
@@ -222,7 +222,10 @@ type InputMoneyProps = DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>,
|
|
|
222
222
|
isWeightField?: boolean;
|
|
223
223
|
minFractionDigits?: number;
|
|
224
224
|
};
|
|
225
|
-
declare
|
|
225
|
+
declare function InputMoney({ label, type, onClick, error, onBlur, onChangeValue, inputProps, icon, clearField, name, required, disabled, value, placeholder, control, defaultValue, isWeightField, minFractionDigits, }: InputMoneyProps): react_jsx_runtime.JSX.Element;
|
|
226
|
+
declare namespace InputMoney {
|
|
227
|
+
var displayName: string;
|
|
228
|
+
}
|
|
226
229
|
|
|
227
230
|
type InputNumberProps = DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement> & {
|
|
228
231
|
label?: string;
|
|
@@ -283,6 +286,18 @@ type MaskedInputProps = {
|
|
|
283
286
|
};
|
|
284
287
|
declare const MaskedInput: ({ type, name, label, placeholder, error, mask, control, required, onKeyUp, maskChar, alwaysShowMask, defaultValue, disabled, }: MaskedInputProps) => react_jsx_runtime.JSX.Element;
|
|
285
288
|
|
|
289
|
+
type InputTestProps = DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement> & {
|
|
290
|
+
label?: string;
|
|
291
|
+
control: Control<any>;
|
|
292
|
+
name: string;
|
|
293
|
+
error?: FieldError;
|
|
294
|
+
required?: boolean;
|
|
295
|
+
};
|
|
296
|
+
declare function InputTest({ label, name, control, error, required, placeholder, disabled, defaultValue, }: InputTestProps): react_jsx_runtime.JSX.Element;
|
|
297
|
+
declare namespace InputTest {
|
|
298
|
+
var displayName: string;
|
|
299
|
+
}
|
|
300
|
+
|
|
286
301
|
type ModalProps = {
|
|
287
302
|
open?: boolean;
|
|
288
303
|
onOpen?: () => void;
|
|
@@ -451,4 +466,4 @@ interface DataTablePaginationProps<TData> {
|
|
|
451
466
|
}
|
|
452
467
|
declare function DataTablePagination<TData>({ table, footer, totalData, selectAllOption, onSelectAll, rowsSelected, onRemoveAll, tableRef, paginationScroll, pageSizeOptions, }: DataTablePaginationProps<TData>): react_jsx_runtime.JSX.Element;
|
|
453
468
|
|
|
454
|
-
export { Badge, Button, Calendar, Checkbox, type CheckboxProps, DataTable, DataTablePagination, DatePickerInput, FilterCalendar, FilterOptions, Input, InputMoney, InputNumber, InputPercentage, Logo, MaskedInput, ModalDialog, type ModalProps, type OptionType, PaginationSelect, Popover, Radio, RocketIcon, SelectField, SpinnerIcon, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Toggle, ValueContainer };
|
|
469
|
+
export { Badge, Button, Calendar, Checkbox, type CheckboxProps, DataTable, DataTablePagination, DatePickerInput, FilterCalendar, FilterOptions, Input, InputMoney, InputNumber, InputPercentage, InputTest, Logo, MaskedInput, ModalDialog, type ModalProps, type OptionType, PaginationSelect, Popover, Radio, RocketIcon, SelectField, SpinnerIcon, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Toggle, ValueContainer };
|
package/dist/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import { create } from 'zustand';
|
|
|
8
8
|
import { parse, format, set, startOfWeek, endOfWeek, startOfMonth, endOfMonth, sub, subYears } from 'date-fns';
|
|
9
9
|
import { Switch, Popover, PopoverButton, PopoverPanel, Listbox, ListboxOptions, Combobox, ListboxOption } from '@headlessui/react';
|
|
10
10
|
import { Float } from '@headlessui-float/react';
|
|
11
|
-
import
|
|
11
|
+
import IntlCurrencyInputRaw from 'react-intl-currency-input';
|
|
12
12
|
import _debounce from 'lodash/debounce';
|
|
13
13
|
import InputMask from 'react-input-mask';
|
|
14
14
|
import * as ReactModalNamespace from 'react-modal';
|
|
@@ -1703,143 +1703,142 @@ var FilterOptions = ({
|
|
|
1703
1703
|
}
|
|
1704
1704
|
);
|
|
1705
1705
|
};
|
|
1706
|
-
var
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1706
|
+
var IntlCurrencyInput = IntlCurrencyInputRaw.default || IntlCurrencyInputRaw;
|
|
1707
|
+
var intl_currency_input_default = IntlCurrencyInput;
|
|
1708
|
+
function InputMoney({
|
|
1709
|
+
label,
|
|
1710
|
+
type,
|
|
1711
|
+
onClick,
|
|
1712
|
+
error,
|
|
1713
|
+
onBlur,
|
|
1714
|
+
onChangeValue,
|
|
1715
|
+
inputProps,
|
|
1716
|
+
icon,
|
|
1717
|
+
clearField,
|
|
1718
|
+
name,
|
|
1719
|
+
required,
|
|
1720
|
+
disabled,
|
|
1721
|
+
value,
|
|
1722
|
+
placeholder,
|
|
1723
|
+
control,
|
|
1724
|
+
defaultValue,
|
|
1725
|
+
isWeightField,
|
|
1726
|
+
minFractionDigits = 2
|
|
1727
|
+
}) {
|
|
1728
|
+
const numberConfig = isWeightField ? {
|
|
1729
|
+
currency: "BRL",
|
|
1730
|
+
minimumFractionDigits: minFractionDigits,
|
|
1731
|
+
maximumFractionDigits: minFractionDigits,
|
|
1732
|
+
useGrouping: false
|
|
1733
|
+
} : {
|
|
1734
|
+
style: "currency",
|
|
1735
|
+
currency: "BRL",
|
|
1736
|
+
minimumFractionDigits: minFractionDigits,
|
|
1737
|
+
maximumFractionDigits: minFractionDigits
|
|
1738
|
+
};
|
|
1739
|
+
const currencyConfig = {
|
|
1740
|
+
locale: "pt-BR",
|
|
1741
|
+
formats: {
|
|
1742
|
+
number: {
|
|
1743
|
+
BRL: numberConfig
|
|
1744
1744
|
}
|
|
1745
|
-
}
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1745
|
+
}
|
|
1746
|
+
};
|
|
1747
|
+
const fieldValidationMessages = [error == null ? void 0 : error.message];
|
|
1748
|
+
const hasError = fieldValidationMessages.some((item) => item !== void 0);
|
|
1749
|
+
const styles = {
|
|
1750
|
+
input: `text-p-md pl-2 peer text-paragraph shadow-input border rounded-lg outline-none block pb-[10px] h-[46px] w-full disabled:bg-neutral-100 focus-visible:border ${label ? "pt-[22px]" : "pt-[10px]"} ${hasError ? "border-dangerous-500 text-dangerous-500" : "border-neutral-300 focus-visible:border-blue-500"}`,
|
|
1751
|
+
icon: `absolute bg-neutral-100 h-[44px] top-[1px] left-[1px] w-[38px] rounded-l-lg ${hasError ? "text-dangerous-500" : "text-label"}
|
|
1751
1752
|
`,
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1753
|
+
label: "absolute text-label top-[0.80rem] z-10 origin-[0] transform -translate-y-3 scale-75 duration-300 text-sm peer-focus:text-blue-500 peer-focus:scale-75 peer-focus:-translate-y-3 peer-placeholder-shown:scale-100 peer-placeholder-shown:translate-y-0"};
|
|
1754
|
+
return /* @__PURE__ */ jsx(
|
|
1755
|
+
Controller,
|
|
1756
|
+
{
|
|
1757
|
+
control,
|
|
1758
|
+
name,
|
|
1759
|
+
defaultValue,
|
|
1760
|
+
render: ({ field }) => {
|
|
1761
|
+
const handleChange = (event, value2, maskedValue) => {
|
|
1762
|
+
event.preventDefault();
|
|
1763
|
+
field.onChange(value2);
|
|
1764
|
+
if (onChangeValue) {
|
|
1765
|
+
onChangeValue(value2);
|
|
1766
|
+
}
|
|
1767
|
+
};
|
|
1768
|
+
if (typeof field.value === "string")
|
|
1769
|
+
field.value = Number(field.value);
|
|
1770
|
+
return /* @__PURE__ */ jsxs("div", { children: [
|
|
1771
|
+
/* @__PURE__ */ jsxs("div", { className: "relative outline-none", children: [
|
|
1772
|
+
icon && /* @__PURE__ */ jsx(
|
|
1773
|
+
"div",
|
|
1774
|
+
{
|
|
1775
|
+
className: clsx7(
|
|
1776
|
+
styles.icon,
|
|
1777
|
+
"flex justify-center items-center"
|
|
1778
|
+
),
|
|
1779
|
+
children: icon
|
|
1780
|
+
}
|
|
1781
|
+
),
|
|
1782
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
1783
|
+
/* @__PURE__ */ jsx(
|
|
1784
|
+
intl_currency_input_default,
|
|
1785
|
+
{
|
|
1786
|
+
...inputProps,
|
|
1787
|
+
...field,
|
|
1788
|
+
type: "text",
|
|
1789
|
+
className: clsx7({
|
|
1790
|
+
[styles.input]: true,
|
|
1791
|
+
["pr-10"]: clearField,
|
|
1792
|
+
["pr-2"]: !clearField,
|
|
1793
|
+
["pl-[46px]"]: !label && placeholder && icon || icon
|
|
1794
|
+
}),
|
|
1795
|
+
placeholder: !label && placeholder ? placeholder : " ",
|
|
1796
|
+
onClick,
|
|
1797
|
+
disabled,
|
|
1798
|
+
currency: "BRL",
|
|
1799
|
+
config: currencyConfig,
|
|
1800
|
+
onChange: handleChange,
|
|
1801
|
+
onBlur: () => {
|
|
1802
|
+
if (onBlur) {
|
|
1803
|
+
onBlur(field.value);
|
|
1804
|
+
}
|
|
1805
|
+
}
|
|
1806
|
+
}
|
|
1807
|
+
),
|
|
1808
|
+
/* @__PURE__ */ jsxs(
|
|
1809
|
+
"label",
|
|
1773
1810
|
{
|
|
1774
1811
|
className: clsx7(
|
|
1775
|
-
|
|
1776
|
-
|
|
1812
|
+
{
|
|
1813
|
+
[styles.label]: true,
|
|
1814
|
+
["left-[46px]"]: icon,
|
|
1815
|
+
["left-2.5"]: !icon
|
|
1816
|
+
},
|
|
1817
|
+
"cursor-text"
|
|
1777
1818
|
),
|
|
1778
|
-
children:
|
|
1819
|
+
children: [
|
|
1820
|
+
label,
|
|
1821
|
+
required && label && /* @__PURE__ */ jsx("strong", { className: "text-dangerous-500", children: "\xA0*" })
|
|
1822
|
+
]
|
|
1779
1823
|
}
|
|
1780
|
-
)
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
}),
|
|
1795
|
-
placeholder: !label && placeholder ? placeholder : " ",
|
|
1796
|
-
onClick,
|
|
1797
|
-
disabled,
|
|
1798
|
-
currency: "BRL",
|
|
1799
|
-
config: currencyConfig,
|
|
1800
|
-
onChange: handleChange,
|
|
1801
|
-
onBlur: () => {
|
|
1802
|
-
if (onBlur) {
|
|
1803
|
-
onBlur(field.value);
|
|
1804
|
-
}
|
|
1805
|
-
}
|
|
1806
|
-
}
|
|
1807
|
-
),
|
|
1808
|
-
/* @__PURE__ */ jsxs(
|
|
1809
|
-
"label",
|
|
1810
|
-
{
|
|
1811
|
-
className: clsx7(
|
|
1812
|
-
{
|
|
1813
|
-
[styles.label]: true,
|
|
1814
|
-
["left-[46px]"]: icon,
|
|
1815
|
-
["left-2.5"]: !icon
|
|
1816
|
-
},
|
|
1817
|
-
"cursor-text"
|
|
1818
|
-
),
|
|
1819
|
-
children: [
|
|
1820
|
-
label,
|
|
1821
|
-
required && label && /* @__PURE__ */ jsx("strong", { className: "text-dangerous-500", children: "\xA0*" })
|
|
1822
|
-
]
|
|
1823
|
-
}
|
|
1824
|
-
)
|
|
1825
|
-
] })
|
|
1826
|
-
] }),
|
|
1827
|
-
fieldValidationMessages.map((message, index) => /* @__PURE__ */ jsx(
|
|
1828
|
-
"div",
|
|
1829
|
-
{
|
|
1830
|
-
className: "text-dangerous-500 text-xs mt-1 ml-[2px]",
|
|
1831
|
-
role: "alert",
|
|
1832
|
-
"aria-label": message,
|
|
1833
|
-
children: message
|
|
1834
|
-
},
|
|
1835
|
-
index
|
|
1836
|
-
))
|
|
1837
|
-
] });
|
|
1838
|
-
}
|
|
1824
|
+
)
|
|
1825
|
+
] })
|
|
1826
|
+
] }),
|
|
1827
|
+
fieldValidationMessages.map((message, index) => /* @__PURE__ */ jsx(
|
|
1828
|
+
"div",
|
|
1829
|
+
{
|
|
1830
|
+
className: "text-dangerous-500 text-xs mt-1 ml-[2px]",
|
|
1831
|
+
role: "alert",
|
|
1832
|
+
"aria-label": message,
|
|
1833
|
+
children: message
|
|
1834
|
+
},
|
|
1835
|
+
index
|
|
1836
|
+
))
|
|
1837
|
+
] });
|
|
1839
1838
|
}
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1839
|
+
}
|
|
1840
|
+
);
|
|
1841
|
+
}
|
|
1843
1842
|
InputMoney.displayName = "InputMoney";
|
|
1844
1843
|
function InputNumber({
|
|
1845
1844
|
label,
|
|
@@ -2078,7 +2077,6 @@ function InputPercentage({
|
|
|
2078
2077
|
}
|
|
2079
2078
|
}
|
|
2080
2079
|
};
|
|
2081
|
-
let inputRef = useRef(null);
|
|
2082
2080
|
const fieldValidationMessages = [error == null ? void 0 : error.message];
|
|
2083
2081
|
const hasError = fieldValidationMessages.some((item) => item !== void 0);
|
|
2084
2082
|
const styles = {
|
|
@@ -2116,12 +2114,11 @@ function InputPercentage({
|
|
|
2116
2114
|
),
|
|
2117
2115
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
2118
2116
|
/* @__PURE__ */ jsx(
|
|
2119
|
-
|
|
2117
|
+
intl_currency_input_default,
|
|
2120
2118
|
{
|
|
2121
2119
|
...inputProps,
|
|
2122
2120
|
...field,
|
|
2123
2121
|
type: "text",
|
|
2124
|
-
ref: inputRef,
|
|
2125
2122
|
className: clsx7({
|
|
2126
2123
|
[styles.input]: true,
|
|
2127
2124
|
["pr-10"]: clearField,
|
|
@@ -2251,6 +2248,61 @@ var MaskedInput = ({
|
|
|
2251
2248
|
}
|
|
2252
2249
|
);
|
|
2253
2250
|
};
|
|
2251
|
+
function InputTest({
|
|
2252
|
+
label,
|
|
2253
|
+
name,
|
|
2254
|
+
control,
|
|
2255
|
+
error,
|
|
2256
|
+
required,
|
|
2257
|
+
placeholder,
|
|
2258
|
+
disabled,
|
|
2259
|
+
defaultValue
|
|
2260
|
+
}) {
|
|
2261
|
+
const fieldValidationMessages = [error == null ? void 0 : error.message];
|
|
2262
|
+
const hasError = fieldValidationMessages.some((item) => item !== void 0);
|
|
2263
|
+
const styles = {
|
|
2264
|
+
input: `text-p-md pl-2 peer shadow-input border rounded-lg outline-none block pb-[10px] h-[46px] w-full disabled:bg-neutral-100 focus-visible:border-1 ${label ? "pt-[22px]" : "pt-[10px]"} ${hasError ? "border-dangerous-500 text-dangerous-500" : "border-neutral-300 focus-visible:border-blue-500"}`,
|
|
2265
|
+
label: "absolute text-label top-[0.80rem] z-10 origin-[0] transform -translate-y-3 scale-75 duration-300 text-sm peer-focus:text-blue-500 peer-focus:scale-75 peer-focus:-translate-y-3 peer-placeholder-shown:scale-100 peer-placeholder-shown:translate-y-0 left-2.5 cursor-text"
|
|
2266
|
+
};
|
|
2267
|
+
return /* @__PURE__ */ jsx(
|
|
2268
|
+
Controller,
|
|
2269
|
+
{
|
|
2270
|
+
control,
|
|
2271
|
+
name,
|
|
2272
|
+
defaultValue,
|
|
2273
|
+
render: ({ field }) => {
|
|
2274
|
+
return /* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
2275
|
+
/* @__PURE__ */ jsx(
|
|
2276
|
+
"input",
|
|
2277
|
+
{
|
|
2278
|
+
...field,
|
|
2279
|
+
type: "text",
|
|
2280
|
+
id: name,
|
|
2281
|
+
className: clsx7(styles.input),
|
|
2282
|
+
placeholder: !label && placeholder ? placeholder : " ",
|
|
2283
|
+
disabled
|
|
2284
|
+
}
|
|
2285
|
+
),
|
|
2286
|
+
/* @__PURE__ */ jsxs("label", { className: clsx7(styles.label), children: [
|
|
2287
|
+
label,
|
|
2288
|
+
required && label && /* @__PURE__ */ jsx("strong", { className: "text-dangerous-500", children: "\xA0*" })
|
|
2289
|
+
] }),
|
|
2290
|
+
fieldValidationMessages.map((message, index) => /* @__PURE__ */ jsx(
|
|
2291
|
+
"div",
|
|
2292
|
+
{
|
|
2293
|
+
className: "text-dangerous-500 text-xs mt-1 ml-[2px]",
|
|
2294
|
+
role: "alert",
|
|
2295
|
+
"aria-label": message,
|
|
2296
|
+
children: message
|
|
2297
|
+
},
|
|
2298
|
+
index
|
|
2299
|
+
))
|
|
2300
|
+
] });
|
|
2301
|
+
}
|
|
2302
|
+
}
|
|
2303
|
+
);
|
|
2304
|
+
}
|
|
2305
|
+
InputTest.displayName = "InputTest";
|
|
2254
2306
|
var Modal = ReactModalNamespace.default || ReactModalNamespace;
|
|
2255
2307
|
var alertTypes = {
|
|
2256
2308
|
success: "text-success-500",
|
|
@@ -3705,6 +3757,6 @@ function DataTable({
|
|
|
3705
3757
|
] });
|
|
3706
3758
|
}
|
|
3707
3759
|
|
|
3708
|
-
export { Badge, Button, Calendar, Checkbox, DataTable, DataTablePagination, DatePickerInput, FilterCalendar, FilterOptions, Input, InputMoney, InputNumber, InputPercentage, Logo, MaskedInput, ModalDialog, PaginationSelect, Popover3 as Popover, Radio, RocketIcon, SelectField, SpinnerIcon, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Toggle, ValueContainer };
|
|
3760
|
+
export { Badge, Button, Calendar, Checkbox, DataTable, DataTablePagination, DatePickerInput, FilterCalendar, FilterOptions, Input, InputMoney, InputNumber, InputPercentage, InputTest, Logo, MaskedInput, ModalDialog, PaginationSelect, Popover3 as Popover, Radio, RocketIcon, SelectField, SpinnerIcon, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Toggle, ValueContainer };
|
|
3709
3761
|
//# sourceMappingURL=index.js.map
|
|
3710
3762
|
//# sourceMappingURL=index.js.map
|