@app-studio/web 0.1.13 → 0.1.14
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/App.d.ts +3 -0
- package/dist/GlobalStyle.d.ts +2 -0
- package/dist/StyleGuideWrapper.d.ts +6 -0
- package/dist/components/Button/Button/Button.props.d.ts +1 -1
- package/dist/components/Button/examples/index.d.ts +9 -9
- package/dist/components/Form/Checkbox/Checkbox/Checkbox.props.d.ts +1 -1
- package/dist/components/Form/Checkbox/examples/index.d.ts +11 -11
- package/dist/components/Form/CountryPicker/CountryPicker/CountryPicker.props.d.ts +1 -1
- package/dist/components/Form/CountryPicker/examples/index.d.ts +12 -12
- package/dist/components/Form/DatePicker/DatePicker/DatePicker.props.d.ts +1 -1
- package/dist/components/Form/DatePicker/examples/index.d.ts +11 -11
- package/dist/components/Form/Password/Password/Password.props.d.ts +1 -1
- package/dist/components/Form/Select/Select/Select.props.d.ts +1 -1
- package/dist/components/Form/Switch/Switch/Switch.props.d.ts +1 -1
- package/dist/components/Form/TextArea/TextArea/TextArea.props.d.ts +1 -1
- package/dist/components/Form/TextArea/examples/index.d.ts +15 -15
- package/dist/components/Form/TextField/TextField/TextField.props.d.ts +1 -1
- package/dist/components/Form/TextField/examples/index.d.ts +17 -17
- package/dist/components/Layout/Horizontal/examples/index.d.ts +4 -4
- package/dist/components/Layout/Input/FieldContainer/FieldContainer/FieldContainer.props.d.ts +1 -1
- package/dist/components/Layout/Input/FieldContent/FieldContent/FieldContent.props.d.ts +2 -2
- package/dist/components/Layout/Input/FieldLabel/FieldLabel/FieldLabel.props.d.ts +1 -1
- package/dist/components/Layout/Input/FieldLayout/FieldLayout/FieldLayout.props.d.ts +1 -1
- package/dist/components/Layout/Input/HelperText/HelperText.props.d.ts +1 -1
- package/dist/components/Layout/Input/index.d.ts +7 -7
- package/dist/components/Loader/examples/index.d.ts +7 -7
- package/dist/components/Modal/Examples/index.d.ts +9 -9
- package/dist/components/Modal/Modal/Modal.props.d.ts +1 -1
- package/dist/features.d.ts +6 -0
- package/dist/index.d.ts +1 -0
- package/dist/pages/button.page.d.ts +3 -0
- package/dist/pages/center.page.d.ts +3 -0
- package/dist/pages/checkbox.page.d.ts +3 -0
- package/dist/pages/components.page.d.ts +3 -0
- package/dist/pages/countryPicker.page.d.ts +3 -0
- package/dist/pages/datePicker.page.d.ts +3 -0
- package/dist/pages/home.page.d.ts +3 -0
- package/dist/pages/horizontal.page.d.ts +3 -0
- package/dist/pages/input.page.d.ts +3 -0
- package/dist/pages/link.page.d.ts +3 -0
- package/dist/pages/loader.page.d.ts +3 -0
- package/dist/pages/modal.page.d.ts +3 -0
- package/dist/pages/password.page.d.ts +3 -0
- package/dist/pages/select.page.d.ts +3 -0
- package/dist/pages/switch.page.d.ts +3 -0
- package/dist/pages/text.page.d.ts +3 -0
- package/dist/pages/textArea.page.d.ts +3 -0
- package/dist/pages/vertical.page.d.ts +3 -0
- package/dist/providers/Router.d.ts +6 -0
- package/dist/providers/index.d.ts +6 -0
- package/dist/routes/routes.d.ts +6 -0
- package/dist/setupTests.d.ts +1 -0
- package/dist/store/useModalStore.d.ts +1 -0
- package/dist/utils/colors.d.ts +14 -0
- package/dist/utils/elevation.d.ts +3 -0
- package/dist/utils/scriptTypography.d.ts +4 -0
- package/dist/web.cjs.development.js +2 -2
- package/dist/web.cjs.production.min.js +1 -1
- package/dist/web.esm.js +2 -2
- package/package.json +1 -1
package/dist/App.d.ts
ADDED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { CSSProperties } from 'react';
|
|
2
2
|
import { Shadow } from 'app-studio';
|
|
3
|
-
import { Elevation } from '
|
|
3
|
+
import { Elevation } from '../../../utils/elevation';
|
|
4
4
|
import { IconPosition, Shape, Size, Variant } from './Button.type';
|
|
5
5
|
/**
|
|
6
6
|
* Represents the properties for the Button component.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export * from '
|
|
2
|
-
export * from '
|
|
3
|
-
export * from '
|
|
4
|
-
export * from '
|
|
5
|
-
export * from '
|
|
6
|
-
export * from '
|
|
7
|
-
export * from '
|
|
8
|
-
export * from '
|
|
9
|
-
export * from '
|
|
1
|
+
export * from '../../../components/Button/examples/BorderedButtons';
|
|
2
|
+
export * from '../../../components/Button/examples/ColoredButtons';
|
|
3
|
+
export * from '../../../components/Button/examples/DefaultButton';
|
|
4
|
+
export * from '../../../components/Button/examples/DisabledButton';
|
|
5
|
+
export * from '../../../components/Button/examples/IconButtons';
|
|
6
|
+
export * from '../../../components/Button/examples/LoadingButtons';
|
|
7
|
+
export * from '../../../components/Button/examples/ShadowButton';
|
|
8
|
+
export * from '../../../components/Button/examples/SizeButtons';
|
|
9
|
+
export * from '../../../components/Button/examples/VariantButtons';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export * from '
|
|
2
|
-
export * from '
|
|
3
|
-
export * from '
|
|
4
|
-
export * from '
|
|
5
|
-
export * from '
|
|
6
|
-
export * from '
|
|
7
|
-
export * from '
|
|
8
|
-
export * from '
|
|
9
|
-
export * from '
|
|
10
|
-
export * from '
|
|
11
|
-
export * from '
|
|
1
|
+
export * from '../../../../components/Form/Checkbox/examples/ColorScheme';
|
|
2
|
+
export * from '../../../../components/Form/Checkbox/examples/Default';
|
|
3
|
+
export * from '../../../../components/Form/Checkbox/examples/DisabledInput';
|
|
4
|
+
export * from '../../../../components/Form/Checkbox/examples/ErrorCheckbox';
|
|
5
|
+
export * from '../../../../components/Form/Checkbox/examples/FormCheckout';
|
|
6
|
+
export * from '../../../../components/Form/Checkbox/examples/IconCheckbox';
|
|
7
|
+
export * from '../../../../components/Form/Checkbox/examples/IndeterminateCheckbox';
|
|
8
|
+
export * from '../../../../components/Form/Checkbox/examples/ReadOnlyInput';
|
|
9
|
+
export * from '../../../../components/Form/Checkbox/examples/Shadow';
|
|
10
|
+
export * from '../../../../components/Form/Checkbox/examples/SizeInput';
|
|
11
|
+
export * from '../../../../components/Form/Checkbox/examples/StylesInput';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
|
-
import { Elevation } from '
|
|
2
|
+
import { Elevation } from '../../../../utils/elevation';
|
|
3
3
|
import { Shadow } from 'app-studio';
|
|
4
4
|
import { Country, CountryPickerStyles, Shape, Size, Variant } from './CountryPicker.type';
|
|
5
5
|
export interface CountryPickerProps {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export * from '
|
|
2
|
-
export * from '
|
|
3
|
-
export * from '
|
|
4
|
-
export * from '
|
|
5
|
-
export * from '
|
|
6
|
-
export * from '
|
|
7
|
-
export * from '
|
|
8
|
-
export * from '
|
|
9
|
-
export * from '
|
|
10
|
-
export * from '
|
|
11
|
-
export * from '
|
|
12
|
-
export * from '
|
|
1
|
+
export * from '../../../../components/Form/CountryPicker/examples/Color';
|
|
2
|
+
export * from '../../../../components/Form/CountryPicker/examples/Default';
|
|
3
|
+
export * from '../../../../components/Form/CountryPicker/examples/Disabled';
|
|
4
|
+
export * from '../../../../components/Form/CountryPicker/examples/Error';
|
|
5
|
+
export * from '../../../../components/Form/CountryPicker/examples/Form';
|
|
6
|
+
export * from '../../../../components/Form/CountryPicker/examples/HelperText';
|
|
7
|
+
export * from '../../../../components/Form/CountryPicker/examples/ReadOnlyInput';
|
|
8
|
+
export * from '../../../../components/Form/CountryPicker/examples/Shadow';
|
|
9
|
+
export * from '../../../../components/Form/CountryPicker/examples/Shape';
|
|
10
|
+
export * from '../../../../components/Form/CountryPicker/examples/SizeInput';
|
|
11
|
+
export * from '../../../../components/Form/CountryPicker/examples/StylesInput';
|
|
12
|
+
export * from '../../../../components/Form/CountryPicker/examples/Variant';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { CSSProperties } from 'react';
|
|
2
|
-
import { Elevation } from '
|
|
2
|
+
import { Elevation } from '../../../../utils/elevation';
|
|
3
3
|
import { Shadow } from 'app-studio';
|
|
4
4
|
import { DatePickerStyles, Shape, Size, Variant } from './DatePicker.type';
|
|
5
5
|
export interface DatePickerProps {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export * from '
|
|
2
|
-
export * from '
|
|
3
|
-
export * from '
|
|
4
|
-
export * from '
|
|
5
|
-
export * from '
|
|
6
|
-
export * from '
|
|
7
|
-
export * from '
|
|
8
|
-
export * from '
|
|
9
|
-
export * from '
|
|
10
|
-
export * from '
|
|
11
|
-
export * from '
|
|
1
|
+
export * from '../../../../components/Form/DatePicker/examples/ColorScheme';
|
|
2
|
+
export * from '../../../../components/Form/DatePicker/examples/Default';
|
|
3
|
+
export * from '../../../../components/Form/DatePicker/examples/DisabledInput';
|
|
4
|
+
export * from '../../../../components/Form/DatePicker/examples/ErrorCheckbox';
|
|
5
|
+
export * from '../../../../components/Form/DatePicker/examples/FormCheckout';
|
|
6
|
+
export * from '../../../../components/Form/DatePicker/examples/Formik';
|
|
7
|
+
export * from '../../../../components/Form/DatePicker/examples/helperTextDatePicker';
|
|
8
|
+
export * from '../../../../components/Form/DatePicker/examples/ReadOnlyInput';
|
|
9
|
+
export * from '../../../../components/Form/DatePicker/examples/Shadow';
|
|
10
|
+
export * from '../../../../components/Form/DatePicker/examples/SizeInput';
|
|
11
|
+
export * from '../../../../components/Form/DatePicker/examples/StylesInput';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { TextFieldProps } from '
|
|
2
|
+
import { TextFieldProps } from '../../../../components/Form/TextField/TextField/TextField.props';
|
|
3
3
|
export interface PasswordProps extends TextFieldProps {
|
|
4
4
|
/**
|
|
5
5
|
* The name of the input field
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
|
-
import { Elevation } from '
|
|
2
|
+
import { Elevation } from '../../../../utils/elevation';
|
|
3
3
|
import { Shadow } from 'app-studio';
|
|
4
4
|
import { SelectStyles, Shape, Size, Variant } from './Select.type';
|
|
5
5
|
export interface SelectProps {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
|
-
import { Elevation } from '
|
|
2
|
+
import { Elevation } from '../../../../utils/elevation';
|
|
3
3
|
import { Shadow } from 'app-studio';
|
|
4
4
|
import { Size, SwitchStyles } from './Switch.type';
|
|
5
5
|
export interface SwitchProps {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
2
|
import { Shadow } from 'app-studio';
|
|
3
|
-
import { Elevation } from '
|
|
3
|
+
import { Elevation } from '../../../../utils/elevation';
|
|
4
4
|
import { Shape, Size, TextAreaStyles, Variant } from './TextArea.type';
|
|
5
5
|
export interface TextAreaProps {
|
|
6
6
|
/**
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export { ColorArea } from '
|
|
2
|
-
export { DefaultArea } from '
|
|
3
|
-
export { DisabledArea } from '
|
|
4
|
-
export { ErrorArea } from '
|
|
5
|
-
export { FormikErrorArea } from '
|
|
6
|
-
export { FormikHelperTextArea } from '
|
|
7
|
-
export { HelperTextArea } from '
|
|
8
|
-
export { LabelArea } from '
|
|
9
|
-
export { MaxArea } from '
|
|
10
|
-
export { PlaceholderArea } from '
|
|
11
|
-
export { ReadOnlyArea } from '
|
|
12
|
-
export { ShapesArea } from '
|
|
13
|
-
export { SizeArea } from '
|
|
14
|
-
export { StyledArea } from '
|
|
15
|
-
export { VariantsArea } from '
|
|
1
|
+
export { ColorArea } from '../../../../components/Form/TextArea/examples/ColorScheme';
|
|
2
|
+
export { DefaultArea } from '../../../../components/Form/TextArea/examples/Default';
|
|
3
|
+
export { DisabledArea } from '../../../../components/Form/TextArea/examples/DisabledInput';
|
|
4
|
+
export { ErrorArea } from '../../../../components/Form/TextArea/examples/ErrorInput';
|
|
5
|
+
export { FormikErrorArea } from '../../../../components/Form/TextArea/examples/FormikErrorInput';
|
|
6
|
+
export { FormikHelperTextArea } from '../../../../components/Form/TextArea/examples/FormikHelperText';
|
|
7
|
+
export { HelperTextArea } from '../../../../components/Form/TextArea/examples/HelperText';
|
|
8
|
+
export { LabelArea } from '../../../../components/Form/TextArea/examples/LabelInput';
|
|
9
|
+
export { MaxArea } from '../../../../components/Form/TextArea/examples/MaxRowCol';
|
|
10
|
+
export { PlaceholderArea } from '../../../../components/Form/TextArea/examples/Placeholder';
|
|
11
|
+
export { ReadOnlyArea } from '../../../../components/Form/TextArea/examples/ReadOnlyInput';
|
|
12
|
+
export { ShapesArea } from '../../../../components/Form/TextArea/examples/ShapeInput';
|
|
13
|
+
export { SizeArea } from '../../../../components/Form/TextArea/examples/SizeInput';
|
|
14
|
+
export { StyledArea } from '../../../../components/Form/TextArea/examples/StylesInput';
|
|
15
|
+
export { VariantsArea } from '../../../../components/Form/TextArea/examples/VariantsInputs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { CSSProperties } from 'react';
|
|
2
2
|
import { Shadow } from 'app-studio';
|
|
3
|
-
import { Elevation } from '
|
|
3
|
+
import { Elevation } from '../../../../utils/elevation';
|
|
4
4
|
import { Shape, Size, TextFieldStyles, Variant } from './TextField.type';
|
|
5
5
|
export interface TextFieldProps {
|
|
6
6
|
/**
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
export * from '
|
|
2
|
-
export * from '
|
|
3
|
-
export * from '
|
|
4
|
-
export * from '
|
|
5
|
-
export * from '
|
|
6
|
-
export * from '
|
|
7
|
-
export * from '
|
|
8
|
-
export * from '
|
|
9
|
-
export * from '
|
|
10
|
-
export * from '
|
|
11
|
-
export * from '
|
|
12
|
-
export * from '
|
|
13
|
-
export * from '
|
|
14
|
-
export * from '
|
|
15
|
-
export * from '
|
|
16
|
-
export * from '
|
|
17
|
-
export * from '
|
|
1
|
+
export * from '../../../../components/Form/TextField/examples/ClearInput';
|
|
2
|
+
export * from '../../../../components/Form/TextField/examples/ColorScheme';
|
|
3
|
+
export * from '../../../../components/Form/TextField/examples/Default';
|
|
4
|
+
export * from '../../../../components/Form/TextField/examples/DisabledInput';
|
|
5
|
+
export * from '../../../../components/Form/TextField/examples/ErrorInput';
|
|
6
|
+
export * from '../../../../components/Form/TextField/examples/FormikErrorInput';
|
|
7
|
+
export * from '../../../../components/Form/TextField/examples/FormikHelperText';
|
|
8
|
+
export * from '../../../../components/Form/TextField/examples/HelperText';
|
|
9
|
+
export * from '../../../../components/Form/TextField/examples/LabelInput';
|
|
10
|
+
export * from '../../../../components/Form/TextField/examples/LeftChild';
|
|
11
|
+
export * from '../../../../components/Form/TextField/examples/Placeholder';
|
|
12
|
+
export * from '../../../../components/Form/TextField/examples/ReadOnlyInput';
|
|
13
|
+
export * from '../../../../components/Form/TextField/examples/RightChild';
|
|
14
|
+
export * from '../../../../components/Form/TextField/examples/ShapeInput';
|
|
15
|
+
export * from '../../../../components/Form/TextField/examples/SizeInput';
|
|
16
|
+
export * from '../../../../components/Form/TextField/examples/StylesInput';
|
|
17
|
+
export * from '../../../../components/Form/TextField/examples/VariantsInputs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from '
|
|
2
|
-
export * from '
|
|
3
|
-
export * from '
|
|
4
|
-
export * from '
|
|
1
|
+
export * from '../../../../components/Layout/Horizontal/examples/Default';
|
|
2
|
+
export * from '../../../../components/Layout/Horizontal/examples/Justify';
|
|
3
|
+
export * from '../../../../components/Layout/Horizontal/examples/Reversed';
|
|
4
|
+
export * from '../../../../components/Layout/Horizontal/examples/Wrap';
|
package/dist/components/Layout/Input/FieldContainer/FieldContainer/FieldContainer.props.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { TextFieldStyles } from '
|
|
2
|
+
import { TextFieldStyles } from '../../../../../components/Layout/configs/Input.type';
|
|
3
3
|
export interface ContainerProps {
|
|
4
4
|
/**
|
|
5
5
|
* The content to be rendered inside the container.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { CSSProperties } from 'react';
|
|
2
|
-
import { Shape, Size, TextFieldStyles, Variant } from '
|
|
3
|
-
import { Elevation } from '
|
|
2
|
+
import { Shape, Size, TextFieldStyles, Variant } from '../../../../../components/Layout/configs/Input.type';
|
|
3
|
+
import { Elevation } from '../../../../../utils/elevation';
|
|
4
4
|
import { Shadow } from 'app-studio';
|
|
5
5
|
export interface ContentProps {
|
|
6
6
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Size, TextFieldStyles } from '
|
|
2
|
+
import { Size, TextFieldStyles } from '../../../../../components/Layout/configs/Input.type';
|
|
3
3
|
export interface FieldProps {
|
|
4
4
|
/**
|
|
5
5
|
* The content to be rendered inside the Field.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { TextFieldStyles } from '
|
|
2
|
+
import { TextFieldStyles } from '../../../../components/Layout/configs/Input.type';
|
|
3
3
|
export interface HelperTextProps {
|
|
4
4
|
/**
|
|
5
5
|
* The content to be rendered inside the HelperText.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from '
|
|
2
|
-
export * from '
|
|
3
|
-
export * from '
|
|
4
|
-
export * from '
|
|
5
|
-
export * from '
|
|
6
|
-
export * from '
|
|
7
|
-
export * from '
|
|
1
|
+
export * from '../../../components/Layout/Input/FieldContainer/FieldContainer';
|
|
2
|
+
export * from '../../../components/Layout/Input/FieldContent/FieldContent';
|
|
3
|
+
export * from '../../../components/Layout/Input/FieldIcons/FieldIcons';
|
|
4
|
+
export * from '../../../components/Layout/Input/FieldLabel/FieldLabel';
|
|
5
|
+
export * from '../../../components/Layout/Input/FieldLayout/FieldLayout';
|
|
6
|
+
export * from '../../../components/Layout/Input/FieldWrapper/FieldWrapper';
|
|
7
|
+
export * from '../../../components/Layout/Input/HelperText/HelperText';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { StyleLoader } from '
|
|
2
|
-
export { DefaultLoader } from '
|
|
3
|
-
export { PositionLoader } from '
|
|
4
|
-
export { SizeLoader } from '
|
|
5
|
-
export { SpeedLoader } from '
|
|
6
|
-
export { TextLoader } from '
|
|
7
|
-
export { TypeLoader } from '
|
|
1
|
+
export { StyleLoader } from '../../../components/Loader/examples/ColorLoader';
|
|
2
|
+
export { DefaultLoader } from '../../../components/Loader/examples/DefaultLoader';
|
|
3
|
+
export { PositionLoader } from '../../../components/Loader/examples/PositionLoader';
|
|
4
|
+
export { SizeLoader } from '../../../components/Loader/examples/SizeLoader';
|
|
5
|
+
export { SpeedLoader } from '../../../components/Loader/examples/SpeedLoader';
|
|
6
|
+
export { TextLoader } from '../../../components/Loader/examples/TextLoader';
|
|
7
|
+
export { TypeLoader } from '../../../components/Loader/examples/VariantLoader';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export * from '
|
|
2
|
-
export * from '
|
|
3
|
-
export * from '
|
|
4
|
-
export * from '
|
|
5
|
-
export * from '
|
|
6
|
-
export * from '
|
|
7
|
-
export * from '
|
|
8
|
-
export * from '
|
|
9
|
-
export * from '
|
|
1
|
+
export * from '../../../components/Modal/Examples/BlurModal';
|
|
2
|
+
export * from '../../../components/Modal/Examples/CloseButtonModal';
|
|
3
|
+
export * from '../../../components/Modal/Examples/DefaultModal';
|
|
4
|
+
export * from '../../../components/Modal/Examples/FullScreenModal';
|
|
5
|
+
export * from '../../../components/Modal/Examples/ModalPosition';
|
|
6
|
+
export * from '../../../components/Modal/Examples/PreventCloseModal';
|
|
7
|
+
export * from '../../../components/Modal/Examples/ScrollModal';
|
|
8
|
+
export * from '../../../components/Modal/Examples/ShadowModal';
|
|
9
|
+
export * from '../../../components/Modal/Examples/VariantModal';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { CSSProperties } from 'react';
|
|
2
|
-
import { Elevation } from '
|
|
2
|
+
import { Elevation } from '../../../utils/elevation';
|
|
3
3
|
import { Shadow } from 'app-studio';
|
|
4
4
|
import { CloseButtonPosition, Position, Shape, Size } from './Modal.type';
|
|
5
5
|
export interface ModalProps {
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useModalStore: any;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare type ColorPalette = Record<string, Record<number, string>>;
|
|
2
|
+
export declare type ColorSingleton = Record<string, {
|
|
3
|
+
50: string;
|
|
4
|
+
100: string;
|
|
5
|
+
200: string;
|
|
6
|
+
300: string;
|
|
7
|
+
400: string;
|
|
8
|
+
500: string;
|
|
9
|
+
600: string;
|
|
10
|
+
700: string;
|
|
11
|
+
800: string;
|
|
12
|
+
900: string;
|
|
13
|
+
} | string>;
|
|
14
|
+
export declare const palette: ColorPalette;
|
|
@@ -8,7 +8,7 @@ require('core-js/modules/es6.object.assign.js');
|
|
|
8
8
|
var React = require('react');
|
|
9
9
|
var React__default = _interopDefault(React);
|
|
10
10
|
var appStudio = require('app-studio');
|
|
11
|
-
var components = require('
|
|
11
|
+
var components = require('./components');
|
|
12
12
|
var Label = require('./components/Form/Label/Label');
|
|
13
13
|
var Svg = require('./components/Svg');
|
|
14
14
|
require('core-js/modules/es6.array.map.js');
|
|
@@ -27,7 +27,7 @@ require('core-js/modules/es7.array.includes.js');
|
|
|
27
27
|
var FieldIcons = require('./components/Layout/Input/FieldIcons/FieldIcons');
|
|
28
28
|
var View = require('./components/Layout/View/View');
|
|
29
29
|
var reactRouterDom = require('react-router-dom');
|
|
30
|
-
var useModalStore = require('
|
|
30
|
+
var useModalStore = require('./store/useModalStore');
|
|
31
31
|
require('core-js/modules/es6.array.slice.js');
|
|
32
32
|
|
|
33
33
|
var useButtonState = function useButtonState() {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0}),require("core-js/modules/es6.object.assign.js");var o=require("react"),i=e(o),n=require("app-studio"),a=require("src/components"),t=require("./components/Form/Label/Label"),d=require("./components/Svg");require("core-js/modules/es6.array.map.js"),require("core-js/modules/es6.array.filter.js"),require("core-js/modules/es6.string.starts-with.js");var r=require("./components/Layout/Input"),l=require("./components/Svg/ArrowDown"),c=require("./components/Svg/ArrowUp"),s=e(require("date-fns/format")),m=require("./components/Layout/Input/FieldContainer/FieldContainer"),u=require("./components/Layout/Input/FieldContent/FieldContent"),h=require("./components/Layout/Input/FieldLabel/FieldLabel"),g=require("./components/Layout/Input/FieldWrapper/FieldWrapper");require("core-js/modules/es6.string.includes.js"),require("core-js/modules/es7.array.includes.js");var p=require("./components/Layout/Input/FieldIcons/FieldIcons"),v=require("./components/Layout/View/View"),f=require("react-router-dom"),j=require("src/store/useModalStore");function b(e,o){if(null==e)return{};var i,n,a={},t=Object.keys(e);for(n=0;n<t.length;n++)o.indexOf(i=t[n])>=0||(a[i]=e[i]);return a}require("core-js/modules/es6.array.slice.js");var x={xs:{width:79,paddingTop:8,paddingBottom:8,paddingLeft:12,paddingRight:12,fontWeight:600,fontSize:"xs",lineHeight:16,letterSpacing:1.25},sm:{width:128,paddingTop:10,paddingBottom:10,paddingLeft:16,paddingRight:16,fontWeight:600,fontSize:"sm",lineHeight:20,letterSpacing:1.25},md:{width:144,paddingTop:12,paddingBottom:12,paddingLeft:18,paddingRight:18,fontWeight:600,fontSize:"md",lineHeight:24,letterSpacing:1.25},lg:{width:178,paddingTop:14,paddingBottom:14,paddingLeft:22,paddingRight:22,fontWeight:600,fontSize:"lg",lineHeight:24,letterSpacing:1.25},xl:{width:220,paddingTop:16,paddingBottom:16,paddingLeft:26,paddingRight:26,fontWeight:600,fontSize:"xl",lineHeight:24,letterSpacing:1.25}},_={sharp:0,rounded:4,pillShaped:24},y={xs:{width:24,height:24,padding:12},sm:{width:24,height:24,padding:15},md:{width:36,height:36,padding:15},lg:{width:36,height:36,padding:18},xl:{width:36,height:36,padding:24}},S=["icon","shadow","children","ariaLabel","externalHref","isAuto","isFilled","isIconRounded","isLoading","isDisabled","size","variant","iconPosition","colorScheme","shape","onClick"],C=function(e){var o,t=e.icon,d=e.shadow,r=e.children,l=e.ariaLabel,c=e.externalHref,s=e.isAuto,m=void 0!==s&&s,u=e.isFilled,h=void 0!==u&&u,g=e.isIconRounded,p=void 0!==g&&g,v=e.isLoading,f=void 0!==v&&v,j=e.isDisabled,C=void 0!==j&&j,w=e.size,E=void 0===w?"md":w,I=e.variant,O=void 0===I?"filled":I,H=e.iconPosition,F=void 0===H?"left":H,z=e.colorScheme,T=void 0===z?"theme.primary":z,M=e.shape,k=void 0===M?"rounded":M,L=e.onClick,R=void 0===L?function(){}:L,V=b(e,S),D=!(C||f),A={disabled:!D},G=D?T:"theme.disabled",B=x[E],P={filled:{backgroundColor:G,color:"color.white"},outline:{backgroundColor:"transparent",borderWidth:1,borderStyle:"solid",borderColor:T,color:G},link:{backgroundColor:"transparent",border:"none",color:G,textDecorationLine:"underline"},ghost:{backgroundColor:"transparent",border:"none",color:G}}[O],N={width:m?"fit-content":h?"100%":B.width},W={padding:p?y[E].padding:x[E].padding},K=i.createElement(i.Fragment,null,t&&"left"===F&&!f&&t,r,t&&"right"===F&&!f&&t);return i.createElement(n.Element,Object.assign({gap:8,as:"button",role:"button",border:"none",color:"color.white",display:"flex",alignItems:"center",justifyContent:"center",ariaLabel:l,backgroundColor:G,borderRadius:_[k],onClick:null!=(o=V.onClick)?o:R,cursor:D?"pointer":"default"},A,B,P,N,W,d,V),"link"===O&&c?i.createElement(a.Link,{href:c,textDecorationColor:T,colorScheme:T,isExternal:!0},K):K)},w={xs:{height:8,width:8},sm:{height:12,width:12},md:{height:18,width:18},lg:{height:24,width:24},xl:{height:30,width:30},"2xl":{height:36,width:36},"3xl":{height:42,width:42},"4xl":{height:48,width:48},"5xl":{height:54,width:54},"6xl":{height:60,width:60}},E={xs:6,sm:12,md:18,lg:24,xl:30,"2xl":36,"3xl":42,"4xl":48,"5xl":54,"6xl":60},I=["id","icon","name","label","isChecked","onChange","onValueChange","shadow","size","colorScheme","error","isSelected","isHovered","isDisabled","isReadOnly","isIndeterminate","defaultIsSelected","setIsSelected","setIsHovered","styles"],O=function(e){var o=e.id,r=e.icon,l=e.label,c=e.isChecked,s=e.onChange,m=e.onValueChange,u=e.shadow,h=void 0===u?{}:u,g=e.size,p=void 0===g?"md":g,v=e.colorScheme,f=void 0===v?"theme.primary":v,j=e.error,x=void 0!==j&&j,_=e.isSelected,y=void 0!==_&&_,S=e.isHovered,C=void 0!==S&&S,O=e.isDisabled,H=void 0!==O&&O,F=e.isReadOnly,z=void 0!==F&&F,T=e.isIndeterminate,M=void 0!==T&&T,k=e.setIsSelected,L=void 0===k?function(){}:k,R=e.setIsHovered,V=void 0===R?function(){}:R,D=e.styles,A=void 0===D?{checkbox:{},label:{}}:D,G=b(e,I),B=function(){return V(!C)},P={container:Object.assign({gap:10,display:"flex",alignItems:"center",height:"fit-content",width:"fit-content",color:x?"theme.error":H?"theme.disabled":"color.blueGray.700",cursor:H?"not-allowed":z?"default":"pointer"},A.label),checkbox:Object.assign({},H?{backgroundColor:"theme.disabled"}:(c||y)&&!M||M?{backgroundColor:f}:{borderWidth:2,borderColor:x?"theme.error":C?"color.gray.500":"color.gray.300",borderStyle:"solid"},{borderRadius:3,filter:C?"brightness(0.9)":void 0},w[p],h,A.checkbox)};return i.createElement(t.Label,Object.assign({htmlFor:o,as:"div",onClick:function(){z||H||(void 0===c?L(!y):(s&&s(!c),m&&m(!c)))},onMouseEnter:B,onMouseLeave:B,size:n.Typography.fontSizes[p]},P.container,G),i.createElement(a.Center,Object.assign({},P.checkbox),M?i.createElement(d.IndeterminateSvg,null):(c||y)&&(null!=r?r:i.createElement(d.CheckSvg,{size:E[p]}))),l)},H=[{name:"Afghanistan",dial_code:"+93",emoji:"🇦🇫",code:"AF"},{name:"Aland Islands",dial_code:"+358",emoji:"🇦🇽",code:"AX"},{name:"Albania",dial_code:"+355",emoji:"🇦🇱",code:"AL"},{name:"Algeria",dial_code:"+213",emoji:"🇩🇿",code:"DZ"},{name:"AmericanSamoa",dial_code:"+1684",emoji:"🇦🇸",code:"AS"},{name:"Andorra",dial_code:"+376",emoji:"🇦🇩",code:"AD"},{name:"Angola",dial_code:"+244",emoji:"🇦🇴",code:"AO"},{name:"Anguilla",dial_code:"+1264",emoji:"🇦🇮",code:"AI"},{name:"Antarctica",dial_code:"+672",emoji:"🇦🇶",code:"AQ"},{name:"Antigua and Barbuda",dial_code:"+1268",emoji:"🇦🇬",code:"AG"},{name:"Argentina",dial_code:"+54",emoji:"🇦🇷",code:"AR"},{name:"Armenia",dial_code:"+374",emoji:"🇦🇲",code:"AM"},{name:"Aruba",dial_code:"+297",emoji:"🇦🇼",code:"AW"},{name:"Australia",dial_code:"+61",emoji:"🇦🇺",code:"AU"},{name:"Austria",dial_code:"+43",emoji:"🇦🇹",code:"AT"},{name:"Azerbaijan",dial_code:"+994",emoji:"🇦🇿",code:"AZ"},{name:"Bahamas",dial_code:"+1242",emoji:"🇧🇸",code:"BS"},{name:"Bahrain",dial_code:"+973",emoji:"🇧🇭",code:"BH"},{name:"Bangladesh",dial_code:"+880",emoji:"🇧🇩",code:"BD"},{name:"Barbados",dial_code:"+1246",emoji:"🇧🇧",code:"BB"},{name:"Belarus",dial_code:"+375",emoji:"🇧🇾",code:"BY"},{name:"Belgium",dial_code:"+32",emoji:"🇧🇪",code:"BE"},{name:"Belize",dial_code:"+501",emoji:"🇧🇿",code:"BZ"},{name:"Benin",dial_code:"+229",emoji:"🇧🇯",code:"BJ"},{name:"Bermuda",dial_code:"+1441",emoji:"🇧🇲",code:"BM"},{name:"Bhutan",dial_code:"+975",emoji:"🇧🇹",code:"BT"},{name:"Bolivia, Plurinational State of",dial_code:"+591",emoji:"🇧🇴",code:"BO"},{name:"Bosnia and Herzegovina",dial_code:"+387",emoji:"🇧🇦",code:"BA"},{name:"Botswana",dial_code:"+267",emoji:"🇧🇼",code:"BW"},{name:"Brazil",dial_code:"+55",emoji:"🇧🇷",code:"BR"},{name:"British Indian Ocean Territory",dial_code:"+246",emoji:"🇮🇴",code:"IO"},{name:"Brunei Darussalam",dial_code:"+673",emoji:"🇧🇳",code:"BN"},{name:"Bulgaria",dial_code:"+359",emoji:"🇧🇬",code:"BG"},{name:"Burkina Faso",dial_code:"+226",emoji:"🇧🇫",code:"BF"},{name:"Burundi",dial_code:"+257",emoji:"🇧🇮",code:"BI"},{name:"Cambodia",dial_code:"+855",emoji:"🇰🇭",code:"KH"},{name:"Cameroon",dial_code:"+237",emoji:"🇨🇲",code:"CM"},{name:"Canada",dial_code:"+1",emoji:"🇨🇦",code:"CA"},{name:"Cape Verde",dial_code:"+238",emoji:"🇨🇻",code:"CV"},{name:"Cayman Islands",dial_code:"+345",emoji:"🇰🇾",code:"KY"},{name:"Central African Republic",dial_code:"+236",emoji:"🇨🇫",code:"CF"},{name:"Chad",dial_code:"+235",emoji:"🇹🇩",code:"TD"},{name:"Chile",dial_code:"+56",emoji:"🇨🇱",code:"CL"},{name:"China",dial_code:"+86",emoji:"🇨🇳",code:"CN"},{name:"Christmas Island",dial_code:"+61",emoji:"🇨🇽",code:"CX"},{name:"Cocos (Keeling) Islands",dial_code:"+61",emoji:"🇨🇨",code:"CC"},{name:"Colombia",dial_code:"+57",emoji:"🇨🇴",code:"CO"},{name:"Comoros",dial_code:"+269",emoji:"🇰🇲",code:"KM"},{name:"Congo",dial_code:"+242",emoji:"🇨🇬",code:"CG"},{name:"Congo, The Democratic Republic of the Congo",dial_code:"+243",emoji:"🇨🇩",code:"CD"},{name:"Cook Islands",dial_code:"+682",emoji:"🇨🇰",code:"CK"},{name:"Costa Rica",dial_code:"+506",emoji:"🇨🇷",code:"CR"},{name:"Cote d'Ivoire",dial_code:"+225",emoji:"🇨🇮",code:"CI"},{name:"Croatia",dial_code:"+385",emoji:"🇭🇷",code:"HR"},{name:"Cuba",dial_code:"+53",emoji:"🇨🇺",code:"CU"},{name:"Cyprus",dial_code:"+357",emoji:"🇨🇾",code:"CY"},{name:"Czech Republic",dial_code:"+420",emoji:"🇨🇿",code:"CZ"},{name:"Denmark",dial_code:"+45",emoji:"🇩🇰",code:"DK"},{name:"Djibouti",dial_code:"+253",emoji:"🇩🇯",code:"DJ"},{name:"Dominica",dial_code:"+1767",emoji:"🇩🇲",code:"DM"},{name:"Dominican Republic",dial_code:"+1849",emoji:"🇩🇴",code:"DO"},{name:"Ecuador",dial_code:"+593",emoji:"🇪🇨",code:"EC"},{name:"Egypt",dial_code:"+20",emoji:"🇪🇬",code:"EG"},{name:"El Salvador",dial_code:"+503",emoji:"🇸🇻",code:"SV"},{name:"Equatorial Guinea",dial_code:"+240",emoji:"🇬🇶",code:"GQ"},{name:"Eritrea",dial_code:"+291",emoji:"🇪🇷",code:"ER"},{name:"Estonia",dial_code:"+372",emoji:"🇪🇪",code:"EE"},{name:"Ethiopia",dial_code:"+251",emoji:"🇪🇹",code:"ET"},{name:"Falkland Islands (Malvinas)",dial_code:"+500",emoji:"🇫🇰",code:"FK"},{name:"Faroe Islands",dial_code:"+298",emoji:"🇫🇴",code:"FO"},{name:"Fiji",dial_code:"+679",emoji:"🇫🇯",code:"FJ"},{name:"Finland",dial_code:"+358",emoji:"🇫🇮",code:"FI"},{name:"France",dial_code:"+33",emoji:"🇫🇷",code:"FR"},{name:"French Guiana",dial_code:"+594",emoji:"🇬🇫",code:"GF"},{name:"French Polynesia",dial_code:"+689",emoji:"🇵🇫",code:"PF"},{name:"Gabon",dial_code:"+241",emoji:"🇬🇦",code:"GA"},{name:"Gambia",dial_code:"+220",emoji:"🇬🇲",code:"GM"},{name:"Georgia",dial_code:"+995",emoji:"🇬🇪",code:"GE"},{name:"Germany",dial_code:"+49",emoji:"🇩🇪",code:"DE"},{name:"Ghana",dial_code:"+233",emoji:"🇬🇭",code:"GH"},{name:"Gibraltar",dial_code:"+350",emoji:"🇬🇮",code:"GI"},{name:"Greece",dial_code:"+30",emoji:"🇬🇷",code:"GR"},{name:"Greenland",dial_code:"+299",emoji:"🇬🇱",code:"GL"},{name:"Grenada",dial_code:"+1473",emoji:"🇬🇩",code:"GD"},{name:"Guadeloupe",dial_code:"+590",emoji:"🇬🇵",code:"GP"},{name:"Guam",dial_code:"+1671",emoji:"🇬🇺",code:"GU"},{name:"Guatemala",dial_code:"+502",emoji:"🇬🇹",code:"GT"},{name:"Guernsey",dial_code:"+44",emoji:"🇬🇬",code:"GG"},{name:"Guinea",dial_code:"+224",emoji:"🇬🇳",code:"GN"},{name:"Guinea-Bissau",dial_code:"+245",emoji:"🇬🇼",code:"GW"},{name:"Guyana",dial_code:"+595",emoji:"🇬🇾",code:"GY"},{name:"Haiti",dial_code:"+509",emoji:"🇭🇹",code:"HT"},{name:"Holy See (Vatican City State)",dial_code:"+379",emoji:"🇻🇦",code:"VA"},{name:"Honduras",dial_code:"+504",emoji:"🇭🇳",code:"HN"},{name:"Hong Kong",dial_code:"+852",emoji:"🇭🇰",code:"HK"},{name:"Hungary",dial_code:"+36",emoji:"🇭🇺",code:"HU"},{name:"Iceland",dial_code:"+354",emoji:"🇮🇸",code:"IS"},{name:"India",dial_code:"+91",emoji:"🇮🇳",code:"IN"},{name:"Indonesia",dial_code:"+62",emoji:"🇮🇩",code:"ID"},{name:"Iran, Islamic Republic of Persian Gulf",dial_code:"+98",emoji:"🇮🇷",code:"IR"},{name:"Iraq",dial_code:"+964",emoji:"🇮🇷",code:"IQ"},{name:"Ireland",dial_code:"+353",emoji:"🇮🇪",code:"IE"},{name:"Isle of Man",dial_code:"+44",emoji:"🇮🇲",code:"IM"},{name:"Israel",dial_code:"+972",emoji:"🇮🇱",code:"IL"},{name:"Italy",dial_code:"+39",emoji:"🇮🇹",code:"IT"},{name:"Jamaica",dial_code:"+1876",emoji:"🇯🇲",code:"JM"},{name:"Japan",dial_code:"+81",emoji:"🇯🇵",code:"JP"},{name:"Jersey",dial_code:"+44",emoji:"🇯🇪",code:"JE"},{name:"Jordan",dial_code:"+962",emoji:"🇯🇴",code:"JO"},{name:"Kazakhstan",dial_code:"+77",emoji:"🇰🇿",code:"KZ"},{name:"Kenya",dial_code:"+254",emoji:"🇰🇪",code:"KE"},{name:"Kiribati",dial_code:"+686",emoji:"🇰🇮",code:"KI"},{name:"Korea, Democratic People's Republic of Korea",dial_code:"+850",emoji:"🇰🇵",code:"KP"},{name:"Korea, Republic of South Korea",dial_code:"+82",emoji:"🇰🇷",code:"KR"},{name:"Kuwait",dial_code:"+965",emoji:"🇰🇼",code:"KW"},{name:"Kyrgyzstan",dial_code:"+996",emoji:"🇰🇬",code:"KG"},{name:"Laos",dial_code:"+856",emoji:"🇱🇦",code:"LA"},{name:"Latvia",dial_code:"+371",emoji:"🇱🇻",code:"LV"},{name:"Lebanon",dial_code:"+961",emoji:"🇱🇧",code:"LB"},{name:"Lesotho",dial_code:"+266",emoji:"🇱🇸",code:"LS"},{name:"Liberia",dial_code:"+231",emoji:"🇱🇷",code:"LR"},{name:"Libyan Arab Jamahiriya",dial_code:"+218",emoji:"🇱🇾",code:"LY"},{name:"Liechtenstein",dial_code:"+423",emoji:"🇱🇮",code:"LI"},{name:"Lithuania",dial_code:"+370",emoji:"🇱🇹",code:"LT"},{name:"Luxembourg",dial_code:"+352",emoji:"🇱🇺",code:"LU"},{name:"Macao",dial_code:"+853",emoji:"🇲🇴",code:"MO"},{name:"Macedonia",dial_code:"+389",emoji:"🇲🇰",code:"MK"},{name:"Madagascar",dial_code:"+261",emoji:"🇲🇬",code:"MG"},{name:"Malawi",dial_code:"+265",emoji:"🇲🇼",code:"MW"},{name:"Malaysia",dial_code:"+60",emoji:"🇲🇾",code:"MY"},{name:"Maldives",dial_code:"+960",emoji:"🇲🇻",code:"MV"},{name:"Mali",dial_code:"+223",emoji:"🇲🇱",code:"ML"},{name:"Malta",dial_code:"+356",emoji:"🇲🇹",code:"MT"},{name:"Marshall Islands",dial_code:"+692",emoji:"🇲🇭",code:"MH"},{name:"Martinique",dial_code:"+596",emoji:"🇲🇶",code:"MQ"},{name:"Mauritania",dial_code:"+222",emoji:"🇲🇷",code:"MR"},{name:"Mauritius",dial_code:"+230",emoji:"🇲🇺",code:"MU"},{name:"Mayotte",dial_code:"+262",emoji:"🇾🇹",code:"YT"},{name:"Mexico",dial_code:"+52",emoji:"🇲🇽",code:"MX"},{name:"Micronesia, Federated States of Micronesia",dial_code:"+691",emoji:"🇫🇲",code:"FM"},{name:"Moldova",dial_code:"+373",emoji:"🇲🇩",code:"MD"},{name:"Monaco",dial_code:"+377",emoji:"🇲🇨",code:"MC"},{name:"Mongolia",dial_code:"+976",emoji:"🇲🇳",code:"MN"},{name:"Montenegro",dial_code:"+382",emoji:"🇲🇪",code:"ME"},{name:"Montserrat",dial_code:"+1664",emoji:"🇲🇸",code:"MS"},{name:"Morocco",dial_code:"+212",emoji:"🇲🇦",code:"MA"},{name:"Mozambique",dial_code:"+258",emoji:"🇲🇿",code:"MZ"},{name:"Myanmar",dial_code:"+95",emoji:"🇲🇲",code:"MM"},{name:"Namibia",emoji:"🇳🇦",dial_code:"+264",code:"NA"},{name:"Nauru",dial_code:"+674",emoji:"🇳🇷",code:"NR"},{name:"Nepal",dial_code:"+977",emoji:"🇳🇵",code:"NP"},{name:"Netherlands",dial_code:"+31",emoji:"🇳🇱",code:"NL"},{name:"Netherlands Antilles",dial_code:"+599",emoji:"🇧🇶",code:"AN"},{name:"New Caledonia",dial_code:"+687",emoji:"🇳🇨",code:"NC"},{name:"New Zealand",dial_code:"+64",emoji:"🇳🇿",code:"NZ"},{name:"Nicaragua",dial_code:"+505",emoji:"🇳🇮",code:"NI"},{name:"Niger",dial_code:"+227",emoji:"🇳🇪",code:"NE"},{name:"Nigeria",dial_code:"+234",emoji:"🇳🇬",code:"NG"},{name:"Niue",dial_code:"+683",emoji:"🇳🇺",code:"NU"},{name:"Norfolk Island",dial_code:"+672",emoji:"🇳🇫",code:"NF"},{name:"Northern Mariana Islands",dial_code:"+1670",emoji:"🇲🇵",code:"MP"},{name:"Norway",dial_code:"+47",emoji:"🇳🇴",code:"NO"},{name:"Oman",dial_code:"+968",emoji:"🇴🇲",code:"OM"},{name:"Pakistan",dial_code:"+92",emoji:"🇵🇰",code:"PK"},{name:"Palau",dial_code:"+680",emoji:"🇵🇼",code:"PW"},{name:"Palestinian Territory, Occupied",dial_code:"+970",emoji:"🇵🇸",code:"PS"},{name:"Panama",dial_code:"+507",emoji:"🇵🇦",code:"PA"},{name:"Papua New Guinea",dial_code:"+675",emoji:"🇵🇬",code:"PG"},{name:"Paraguay",dial_code:"+595",emoji:"🇵🇾",code:"PY"},{name:"Peru",dial_code:"+51",emoji:"🇵🇪",code:"PE"},{name:"Philippines",dial_code:"+63",emoji:"🇵🇭",code:"PH"},{name:"Pitcairn",dial_code:"+872",emoji:"🇵🇳",code:"PN"},{name:"Poland",dial_code:"+48",emoji:"🇵🇱",code:"PL"},{name:"Portugal",dial_code:"+351",emoji:"🇵🇹",code:"PT"},{name:"Puerto Rico",dial_code:"+1939",emoji:"🇵🇷",code:"PR"},{name:"Qatar",dial_code:"+974",emoji:"🇶🇦",code:"QA"},{name:"Romania",dial_code:"+40",emoji:"🇷🇴",code:"RO"},{name:"Russia",dial_code:"+7",emoji:"🇷🇺",code:"RU"},{name:"Rwanda",dial_code:"+250",emoji:"🇷🇼",code:"RW"},{name:"Reunion",dial_code:"+262",emoji:"🇷🇪",code:"RE"},{name:"Saint Barthelemy",dial_code:"+590",emoji:"🇧🇱",code:"BL"},{name:"Saint Helena, Ascension and Tristan Da Cunha",dial_code:"+290",emoji:"🇸🇭",code:"SH"},{name:"Saint Kitts and Nevis",dial_code:"+1869",emoji:"🇰🇳",code:"KN"},{name:"Saint Lucia",dial_code:"+1758",emoji:"🇱🇨",code:"LC"},{name:"Saint Martin",dial_code:"+590",emoji:"🇲🇫",code:"MF"},{name:"Saint Pierre and Miquelon",dial_code:"+508",emoji:"🇵🇲",code:"PM"},{name:"Saint Vincent and the Grenadines",dial_code:"+1784",emoji:"🇻🇨",code:"VC"},{name:"Samoa",dial_code:"+685",emoji:"🇼🇸",code:"WS"},{name:"San Marino",dial_code:"+378",emoji:"🇸🇲",code:"SM"},{name:"Sao Tome and Principe",dial_code:"+239",emoji:"🇸🇹",code:"ST"},{name:"Saudi Arabia",dial_code:"+966",emoji:"🇸🇦",code:"SA"},{name:"Senegal",dial_code:"+221",emoji:"🇸🇳",code:"SN"},{name:"Serbia",dial_code:"+381",emoji:"🇷🇸",code:"RS"},{name:"Seychelles",dial_code:"+248",emoji:"🇸🇨",code:"SC"},{name:"Sierra Leone",dial_code:"+232",emoji:"🇸🇱",code:"SL"},{name:"Singapore",dial_code:"+65",emoji:"🇸🇬",code:"SG"},{name:"Slovakia",dial_code:"+421",emoji:"🇸🇰",code:"SK"},{name:"Slovenia",dial_code:"+386",emoji:"🇸🇮",code:"SI"},{name:"Solomon Islands",dial_code:"+677",emoji:"🇸🇧",code:"SB"},{name:"Somalia",dial_code:"+252",emoji:"🇸🇴",code:"SO"},{name:"South Africa",dial_code:"+27",emoji:"🇿🇦",code:"ZA"},{name:"South Sudan",dial_code:"+211",emoji:"🇸🇸",code:"SS"},{name:"South Georgia and the South Sandwich Islands",dial_code:"+500",emoji:"🇬🇸",code:"GS"},{name:"Spain",dial_code:"+34",emoji:"🇪🇸",code:"ES"},{name:"Sri Lanka",dial_code:"+94",emoji:"🇱🇰",code:"LK"},{name:"Sudan",dial_code:"+249",emoji:"🇸🇩",code:"SD"},{name:"Suriname",dial_code:"+597",emoji:"🇸🇷",code:"SR"},{name:"Svalbard and Jan Mayen",dial_code:"+47",emoji:"🇸🇯",code:"SJ"},{name:"Swaziland",dial_code:"+268",emoji:"🇸🇿",code:"SZ"},{name:"Sweden",dial_code:"+46",emoji:"🇸🇪",code:"SE"},{name:"Switzerland",dial_code:"+41",emoji:"🇨🇭",code:"CH"},{name:"Syrian Arab Republic",dial_code:"+963",emoji:"🇸🇾",code:"SY"},{name:"Taiwan",dial_code:"+886",emoji:"🇹🇼",code:"TW"},{name:"Tajikistan",dial_code:"+992",emoji:"🇹🇯",code:"TJ"},{name:"Tanzania, United Republic of Tanzania",dial_code:"+255",emoji:"🇹🇿",code:"TZ"},{name:"Thailand",dial_code:"+66",emoji:"🇹🇭",code:"TH"},{name:"Timor-Leste",dial_code:"+670",emoji:"🇹🇱",code:"TL"},{name:"Togo",dial_code:"+228",emoji:"🇹🇬",code:"TG"},{name:"Tokelau",dial_code:"+690",emoji:"🇹🇰",code:"TK"},{name:"Tonga",dial_code:"+676",emoji:"🇹🇴",code:"TO"},{name:"Trinidad and Tobago",dial_code:"+1868",emoji:"🇹🇹",code:"TT"},{name:"Tunisia",dial_code:"+216",emoji:"🇹🇳",code:"TN"},{name:"Turkey",dial_code:"+90",emoji:"🇹🇷",code:"TR"},{name:"Turkmenistan",dial_code:"+993",emoji:"🇹🇲",code:"TM"},{name:"Turks and Caicos Islands",dial_code:"+1649",emoji:"🇹🇨",code:"TC"},{name:"Tuvalu",dial_code:"+688",emoji:"🇹🇻",code:"TV"},{name:"Uganda",dial_code:"+256",emoji:"🇺🇬",code:"UG"},{name:"Ukraine",dial_code:"+380",emoji:"🇺🇦",code:"UA"},{name:"United Arab Emirates",dial_code:"+971",emoji:"🇦🇪",code:"AE"},{name:"United Kingdom",dial_code:"+44",emoji:"🇬🇧",code:"GB"},{name:"United States",dial_code:"+1",emoji:"🇺🇸",code:"US"},{name:"Uruguay",dial_code:"+598",emoji:"🇺🇾",code:"UY"},{name:"Uzbekistan",dial_code:"+998",emoji:"🇺🇿",code:"UZ"},{name:"Vanuatu",dial_code:"+678",emoji:"🇻🇺",code:"VU"},{name:"Venezuela, Bolivarian Republic of Venezuela",dial_code:"+58",emoji:"🇻🇪",code:"VE"},{name:"Vietnam",dial_code:"+84",emoji:"🇻🇳",code:"VN"},{name:"Virgin Islands, British",dial_code:"+1284",emoji:"🇻🇬",code:"VG"},{name:"Virgin Islands, U.S.",dial_code:"+1340",emoji:"🇻🇮",code:"VI"},{name:"Wallis and Futuna",dial_code:"+681",emoji:"🇼🇫",code:"WF"},{name:"Yemen",dial_code:"+967",emoji:"🇾🇪",code:"YE"},{name:"Zambia",dial_code:"+260",emoji:"🇿🇲",code:"ZM"},{name:"Zimbabwe",dial_code:"+263",emoji:"🇿🇼",code:"ZW"}],F={xs:8,sm:10,md:12,lg:14,xl:16},z=["id","name","label","selected","placeholder","helperText","hide","error","isHovered","isFocused","isAutoFocus","isDisabled","isReadOnly","shadow","newOptions","size","variant","shape","colorScheme","onChange","onBlur","setHide","setNewOptions","setIsHovered","setIsFocused","setSelected","styles"],T=function(e){return i.createElement(n.Element,Object.assign({as:"ul"},e))},M=function(e){return i.createElement(n.Input,Object.assign({type:"country"},e))},k=function(e){return i.createElement(n.Element,Object.assign({as:"li"},e))},L=function(e){var a=e.option,t=e.size,d=void 0===t?"md":t,r=e.callback,l=void 0===r?function(){}:r,c=e.styles,s=void 0===c?{text:{}}:c,m=o.useState(!1),u=m[0],h=m[1],g=function(){return h(!u)};return i.createElement(k,Object.assign({margin:0,role:"DropDownItem",listStyleType:"none",paddingVertical:6,paddingHorizontal:12,onMouseEnter:g,onMouseLeave:g,onClick:function(e){e.stopPropagation(),l(a)},fontSize:n.Typography.fontSizes[d],backgroundColor:u?"trueGray.100":"transparent"},s.text),a)},R=function(e){var o=e.size,n=e.styles,a=void 0===n?{dropDown:{}}:n,t=e.options,d=e.callback,r=void 0===d?function(){}:d,l=function(e){return r(e)};return i.createElement(T,Object.assign({role:"dropDown",margin:0,padding:0,top:"100%",width:"100%",display:"flex",zIndex:1e3,overflow:"auto",maxHeight:"300px",borderRadius:4,position:"absolute",flexDirection:"column",backgroundColor:"white",boxShadow:"rgba(0, 0, 0, 0.07) 0px 1px 1px, rgba(0, 0, 0, 0.07) 0px 2px 2px, rgba(0, 0, 0, 0.07) 0px 4px 4px, rgba(0, 0, 0, 0.07) 0px 8px 8px, rgba(0, 0, 0, 0.07) 0px 16px 16px"},a.dropDown),t.map((function(e){return i.createElement(L,Object.assign({key:e.code,size:o,option:e.name,callback:l},a.text))})))},V=function(e){var a=e.id,t=e.name,d=e.label,s=e.selected,m=e.placeholder,u=e.helperText,h=e.hide,g=void 0!==h&&h,p=e.error,v=void 0!==p&&p,f=e.isHovered,j=void 0!==f&&f,x=e.isFocused,_=void 0!==x&&x,y=e.isAutoFocus,S=void 0!==y&&y,C=e.isDisabled,w=void 0!==C&&C,E=e.isReadOnly,I=void 0!==E&&E,O=e.shadow,T=void 0===O?{}:O,k=e.newOptions,L=void 0===k?[]:k,V=e.size,D=void 0===V?"md":V,A=e.variant,G=void 0===A?"default":A,B=e.shape,P=void 0===B?"default":B,N=e.colorScheme,W=void 0===N?"theme.primary":N,K=e.onChange,q=e.onBlur,U=void 0===q?function(){}:q,Z=e.setHide,J=void 0===Z?function(){}:Z,Y=e.setNewOptions,Q=void 0===Y?function(){}:Y,X=e.setIsHovered,$=void 0===X?function(){}:X,ee=e.setIsFocused,oe=void 0===ee?function(){}:ee,ie=e.setSelected,ne=void 0===ie?function(){}:ie,ae=e.styles,te=void 0===ae?{text:{},icon:{},label:{},dropDown:{},helperText:{},box:{}}:ae,de=b(e,z),re=(0,n.useTheme().getColor)("color.blueGray.700"),le=function(){return $(!j)};o.useEffect((function(){K&&K(s)}),[K,s]);var ce=!(!_||!d),se=Object.assign({margin:0,paddingVerical:8,paddingHorizonatl:0,width:"100%",heigth:"100%",border:"none",on:{focus:{outline:"none"}},fontSize:n.Typography.fontSizes[D],backgroundColor:"transparent",color:w?"color.trueGray.600":"color.blueGray.700",cursor:w?"not-allowed":"auto"},te.field);return i.createElement(r.FieldContainer,{helperText:u,error:v,styles:te,onClick:function(){w||I||J(!g)}},i.createElement(r.FieldContent,{label:d,size:D,error:v,shape:P,styles:te,shadow:T,variant:G,value:s,color:W,isHovered:j,isDisabled:w,isReadOnly:I,isFocused:_,isWithLabel:ce,colorScheme:W,onMouseEnter:le,onMouseLeave:le},i.createElement(r.FieldWrapper,null,ce&&i.createElement(r.FieldLabel,Object.assign({htmlFor:a,color:W,error:v},te),d),i.createElement(M,Object.assign({id:a,name:t,placeholder:m,readOnly:I,disabled:w,autoFocus:S,onBlur:function(e){U(e),oe(!1)},onFocus:function(){return oe(!0)}},se,de,{value:s,onChange:function(e){var o=e.target.value,i=H.filter((function(e){return e.name.toLowerCase().startsWith(o.toLowerCase())}));g&&J(!1),ne(e.target.value),Q(i),K&&K(e)}}))),i.createElement(r.FieldIcons,null,i.createElement(g?l.ArrowDownSvg:c.ArrowUpSvg,{size:F[D],color:re,style:te.icon}))),!g&&i.createElement(R,{size:D,styles:te,options:L,callback:function(e){J(!g),ne(e)}}))},D=["id","icon","name","label","date","children","helperText","shadow","size","variant","shape","colorScheme","styles","error","isHovered","isFocused","isDisabled","isReadOnly","setDate","setIsFocused","setIsHovered","onChange","onChangeText"],A=function(e){return i.createElement(n.Input,Object.assign({type:"date"},e))},G=function(e){var o=e.id,a=e.name,t=e.label,d=e.date,r=e.helperText,l=e.shadow,c=void 0===l?{}:l,s=e.size,p=void 0===s?"md":s,v=e.variant,f=void 0===v?"default":v,j=e.shape,x=void 0===j?"default":j,_=e.colorScheme,y=void 0===_?"theme.primary":_,S=e.styles,C=void 0===S?{box:{},label:{},helperText:{},text:{},field:{}}:S,w=e.error,E=void 0!==w&&w,I=e.isHovered,O=void 0!==I&&I,H=e.isFocused,F=void 0!==H&&H,z=e.isDisabled,T=void 0!==z&&z,M=e.isReadOnly,k=void 0!==M&&M,L=e.setDate,R=void 0===L?function(){}:L,V=e.setIsFocused,G=void 0===V?function(){}:V,B=e.setIsHovered,P=void 0===B?function(){}:B,N=e.onChange,W=e.onChangeText,K=b(e,D),q=!(!F||!t),U=function(){return P(!O)},Z=function(e){"string"==typeof e?(R(e),W&&W(e)):(R(e.target.value),N&&N(e))},J=Object.assign({margin:0,paddingVertical:8,paddingHorizontal:0,width:"100%",heigth:"100%",border:"none",on:{focus:{outline:"none",backgroundColor:"transparent"}},fontSize:n.Typography.fontSizes[p],backgroundColor:"transparent",color:T?"trueGray.600":"blueGray.700",cursor:T?"not-allowed":k?"auto":"pointer"},C.field);return i.createElement(m.FieldContainer,{helperText:r,error:E,styles:C},i.createElement(u.FieldContent,{label:t,size:p,error:E,shape:x,styles:C,shadow:c,variant:f,value:d,color:y,isHovered:O,isDisabled:T,isReadOnly:k,isFocused:F,isWithLabel:q,colorScheme:y,onMouseEnter:U,onMouseLeave:U},i.createElement(g.FieldWrapper,null,q&&i.createElement(h.FieldLabel,Object.assign({htmlFor:o,color:y,error:E},C),t),i.createElement(A,Object.assign({id:o,name:a,value:d,onFocus:function(){return G(!0)},onChange:Z,disabled:T,readOnly:k},J,W&&{onChangeText:Z},K)))))},B=["name","visibleIcon","hiddenIcon","isDisabled","isVisible","setIsVisible"],P=function(e){var o=e.name,n=e.visibleIcon,t=e.hiddenIcon,d=e.isDisabled,r=void 0!==d&&d,l=e.isVisible,c=void 0!==l&&l,s=e.setIsVisible,m=void 0===s?function(){}:s,u=b(e,B);return i.createElement(a.TextField,Object.assign({name:o,type:c?"text":"password",rightChild:i.createElement(a.View,{onClick:function(){r||m(!c)}},c?n:t),isClearable:!1},u))},N={xs:8,sm:10,md:12,lg:14,xl:16},W=["isHovered","setIsHovered","option","size","callback"],K=["id","name","selected","onChange","isMulti","isDisabled","isReadOnly","options"],q=["option","size","removeOption"],U=["id","name","label","selected","placeholder","helperText","hide","error","isMulti","isFocused","isHovered","isDisabled","isReadOnly","options","shadow","size","colorScheme","shape","variant","styles","onChange","setHide","setSelected","setIsHovered","setIsFocused"],Z=function(e){var o=e.isHovered,a=e.setIsHovered,t=e.option,d=e.size,r=void 0===d?"md":d,l=e.callback,c=void 0===l?function(){}:l,s=b(e,W),m=function(){return a(!o)};return i.createElement(n.Element,Object.assign({as:"li",margin:0,paddingVertical:8,paddingHorizontal:12,listStyleType:"none",onMouseEnter:m,onMouseLeave:m,fontSize:n.Typography.fontSizes[r],onClick:function(){return function(e){return c(e)}(t)},backgroundColor:o?"trueGray.100":"transparent"},s),t)},J=function(e){var o=e.size,t=e.styles,d=void 0===t?{field:{},text:{}}:t,r=e.selected,l=e.isDisabled,c=e.placeholder,s=e.removeOption,m=void 0===s?function(){}:s,u=Object.assign({margin:0,width:"95%",heigth:"100%",border:"none",paddingVertical:8,paddingHorizontal:0,fontSize:n.Typography.fontSizes[void 0===o?"md":o],backgroundColor:"transparent",color:l?"trueGray.600":"blueGray.700",cursor:l?"not-allowed":"auto"},d.field,d.text);return i.createElement(a.Text,Object.assign({},u),(""===r||r&&0===r.length)&&c?c:i.createElement(i.Fragment,null,"string"==typeof r?r:r&&r.length>0&&i.createElement(a.Horizontal,{gap:6},r.map((function(e){return i.createElement(X,{key:e,option:e,removeOption:m})})))))},Y=function(e){var o=e.id,a=e.name,t=e.selected,d=e.onChange,r=e.isMulti,l=void 0!==r&&r,c=e.isDisabled,s=void 0!==c&&c,m=e.isReadOnly,u=void 0!==m&&m,h=e.options,g=void 0===h?[]:h,p=b(e,K);return i.createElement(n.Element,Object.assign({id:o,name:a,as:"select",opacity:0,width:0,height:0,position:"absolute",value:t,disabled:s,readOnly:u,onChange:function(e){d&&d(e)},multiple:l},p),g.map((function(e){return i.createElement("option",{key:e,value:e},e)})))},Q=function(e){var o,a=e.size,t=e.styles,d=void 0===t?{dropDown:{}}:t,r=e.options,l=e.callback,c=void 0===l?function(){}:l,s={isHovered:(o=i.useState(!1))[0],setIsHovered:o[1]},m=function(e){return c(e)},u=void 0!==typeof document?{boxShadow:"rgba(0, 0, 0, 0.07) 0px 1px 1px, rgba(0, 0, 0, 0.07) 0px 2px 2px, rgba(0, 0, 0, 0.07) 0px 4px 4px, rgba(0, 0, 0, 0.07) 0px 8px 8px, rgba(0, 0, 0, 0.07) 0px 16px 16px"}:{elevation:2,shadowColor:"rgba(0, 0, 0, 0.07)",shadowOffset:{width:0,height:1},shadowOpacity:1,shadowRadius:1};return i.createElement(n.Element,Object.assign({as:"ul",role:"dropdown",top:"100%",width:"100%",display:"flex",zIndex:1e3,overflowY:"auto",marginTop:5,marginLeft:0,marginRight:0,marginBottom:0,padding:0,borderRadius:4,position:"absolute",flexDirection:"column",backgroundColor:"white",justifyContent:"space-evenly"},u,d.dropDown),r.map((function(e){return i.createElement(Z,Object.assign({key:e,size:a,option:e,callback:m},s,d.text))})))},X=function(e){var o=e.option,t=e.size,r=void 0===t?"md":t,l=e.removeOption,c=void 0===l?function(){}:l,s=b(e,q);return i.createElement(a.Horizontal,Object.assign({gap:10,padding:6,borderRadius:4,alignItems:"center",fontSize:n.Typography.fontSizes[r],backgroundColor:"trueGray.300",onClick:function(e){return e.stopPropagation()}},s),i.createElement(a.Text,{size:r},o),i.createElement(d.CloseSvg,{role:"close-button",color:"inherit",size:N[r],onClick:function(){return c(o)}}))},$=function(e){var n=e.id,a=e.name,t=e.label,r=e.selected,l=e.placeholder,c=e.helperText,s=e.hide,v=void 0!==s&&s,f=e.error,j=void 0!==f&&f,x=e.isMulti,_=void 0!==x&&x,y=e.isFocused,S=void 0!==y&&y,C=e.isHovered,w=void 0!==C&&C,E=e.isDisabled,I=void 0!==E&&E,O=e.isReadOnly,H=void 0!==O&&O,F=e.options,z=void 0===F?[]:F,T=e.shadow,M=void 0===T?{}:T,k=e.size,L=void 0===k?"md":k,R=e.colorScheme,V=void 0===R?"theme.primary":R,D=e.shape,A=void 0===D?"default":D,G=e.variant,B=void 0===G?"default":G,P=e.styles,W=void 0===P?{text:{},icon:{},dropDown:{},selectBox:{},label:{},helperText:{}}:P,K=e.onChange,q=void 0===K?function(){}:K,Z=e.setHide,X=void 0===Z?function(){}:Z,$=e.setSelected,ee=void 0===$?function(){}:$,oe=e.setIsHovered,ie=void 0===oe?function(){}:oe,ne=e.setIsFocused,ae=void 0===ne?function(){}:ne,te=b(e,U),de=!(!S||!t),re=function(){return ie(!w)},le=o.useCallback((function(e){X(!v),_&&Array.isArray(r)?!r.includes(e)&&ee([].concat(r,[e])):ee(e)}),[v,_,r]);return i.createElement(m.FieldContainer,{role:"SelectBox",helperText:c,error:j,styles:W,onClick:I||H?function(){}:function(e){e.stopPropagation(),X(!v),ae(!S)}},i.createElement(u.FieldContent,{label:t,size:L,error:j,shape:A,styles:W,shadow:M,variant:B,value:r,color:V,isHovered:w,isDisabled:I,isReadOnly:H,isFocused:S,isWithLabel:de,colorScheme:V,onMouseEnter:re,onMouseLeave:re},i.createElement(g.FieldWrapper,null,de&&i.createElement(h.FieldLabel,Object.assign({htmlFor:n,color:V,error:j},W),t),i.createElement(Y,Object.assign({id:n,name:a,options:z,onChange:q,selected:r,isDisabled:I,isReadOnly:H,isMulti:_,onFocus:function(){return ae(!0)}},te)),i.createElement(J,{size:L,styles:W,selected:r,isDisabled:I,placeholder:l,removeOption:function(e){if(Array.isArray(r)&&r.includes(e)){var o=r.filter((function(o){return o!==e}));ee(0===o.length?[]:o)}}})),i.createElement(p.FieldIcons,null,!H&&!I&&i.createElement(i.Fragment,null,i.createElement(v?d.ArrowDownSvg:d.ArrowUpSvg,{color:"inherit",size:N[L],style:W.icon})))),!v&&i.createElement(Q,{size:L,styles:W,options:z,callback:le}))},ee={xs:{height:6,width:6},sm:{height:9,width:9},md:{height:12,width:12},lg:{height:15,width:15},xl:{height:18,width:18},"2xl":{height:21,width:21},"3xl":{height:24,width:24},"4xl":{height:27,width:27},"5xl":{height:30,width:30},"6xl":{height:33,width:33}},oe={xs:{height:16,width:28},sm:{height:20,width:36},md:{height:24,width:44},lg:{height:28,width:52},xl:{height:32,width:60},"2xl":{height:36,width:68},"3xl":{height:40,width:76},"4xl":{height:44,width:84},"5xl":{height:48,width:92},"6xl":{height:52,width:100}},ie={xs:{paddingVertical:0,paddingHorizontal:2},sm:{paddingVertical:0,paddingHorizontal:3},md:{paddingVertical:0,paddingHorizontal:5},lg:{paddingVertical:0,paddingHorizontal:6},xl:{paddingVertical:0,paddingHorizontal:8},"2xl":{paddingVertical:0,paddingHorizontal:9},"3xl":{paddingVertical:0,paddingHorizontal:10},"4xl":{paddingVertical:0,paddingHorizontal:13},"5xl":{paddingVertical:0,paddingHorizontal:15},"6xl":{paddingVertical:0,paddingHorizontal:16}},ne=["id","name","inActiveChild","activeChild","shadow","size","colorScheme","on","isHovered","isChecked","isDisabled","isReadOnly","onChange","onValueChange","setOn","setIsHovered","styles"],ae=function(e){return i.createElement(n.Input,Object.assign({type:"checkbox"},e))},te=function(e){var o=e.id,n=e.name,a=e.inActiveChild,d=e.activeChild,r=e.shadow,l=void 0===r?{}:r,c=e.size,s=void 0===c?"sm":c,m=e.colorScheme,u=void 0===m?"theme.primary":m,h=e.on,g=void 0!==h&&h,p=e.isHovered,f=void 0!==p&&p,j=e.isDisabled,x=void 0!==j&&j,_=e.isReadOnly,y=void 0!==_&&_,S=e.onChange,C=e.onValueChange,w=e.setOn,E=void 0===w?function(){}:w,I=e.setIsHovered,O=void 0===I?function(){}:I,H=e.styles,F=void 0===H?{slider:{},circle:{}}:H,z=b(e,ne),T=function(e){y||(E(!g),S&&S(e))},M=function(){return O(!f)};return i.createElement(t.Label,{htmlFor:o,onMouseEnter:M,onMouseLeave:M},i.createElement(ae,Object.assign({id:o,name:n,opacity:0,width:0,height:0,checked:g,onChange:T,disabled:x,readOnly:y},C&&{onValueChange:T},z)),i.createElement(v.View,Object.assign({display:"flex",cursor:"pointer",alignItems:"center",borderRadius:24,filter:f&&g?"brightness(0.9)":"brightness(1)",transition:"justify-content 0.3s cubic-bezier(0.4, 0, 0.2, 1)",backgroundColor:x?"disabled":g?u:"lightgray",justifyContent:d?"space-between":g?"flex-end":"flex-start"},l,ie[s],oe[s],F.slider),d&&g&&i.createElement(v.View,null,d),i.createElement(v.View,Object.assign({borderRadius:"50%",backgroundColor:"white"},ee[s],F.circle)),a&&!g&&i.createElement(v.View,null,a)))},de=["id","name","hint","error","value","label","shadow","inputValue","helperText","placeholder","defaultValue","size","shape","variant","colorScheme","isHovered","isFocused","isEditable","isReadOnly","isDisabled","isAutoFocus","isMultiline","maxRows","maxCols","onBlur","onChange","onFocus","onChangeText","setHint","setInputValue","setIsFocused","setIsHovered","styles"],re=function(e){var a=e.id,t=e.name,d=e.hint,l=e.error,c=e.label,s=e.shadow,m=e.inputValue,u=e.helperText,h=e.placeholder,g=e.size,p=void 0===g?"sm":g,v=e.shape,f=void 0===v?"default":v,j=e.variant,x=void 0===j?"default":j,_=e.colorScheme,y=void 0===_?"theme.primary":_,S=e.isHovered,C=void 0!==S&&S,w=e.isFocused,E=void 0!==w&&w,I=e.isEditable,O=void 0!==I&&I,H=e.isReadOnly,F=void 0!==H&&H,z=e.isDisabled,T=void 0!==z&&z,M=e.isAutoFocus,k=void 0!==M&&M,L=e.isMultiline,R=void 0!==L&&L,V=e.maxRows,D=void 0===V?3:V,A=e.maxCols,G=void 0===A?30:A,B=e.onBlur,P=void 0===B?function(){}:B,N=e.onChange,W=e.onFocus,K=e.onChangeText,q=e.setHint,U=void 0===q?function(){}:q,Z=e.setInputValue,J=void 0===Z?function(){}:Z,Y=e.setIsFocused,Q=void 0===Y?function(){}:Y,X=e.setIsHovered,$=void 0===X?function(){}:X,ee=e.styles,oe=void 0===ee?{box:{},text:{},label:{},helperText:{},field:{}}:ee,ie=b(e,de),ne=!(!E||!c);o.useMemo((function(){U(E&&!m?null!=h?h:"":null!=c?c:h)}),[m,E,c,h]);var ae=Object.assign({margin:0,paddingVertical:8,paddingHorizontal:0,width:"100%",heigth:"100%",border:"none",on:{focus:{outline:"none"}},fontSize:n.Typography.fontSizes[p],backgroundColor:"transparent",color:T?"trueGray.600":"blueGray.700",cursor:T?"not-allowed":"auto"},oe.field),te=function(){return $(!C)},re=function(e){"string"==typeof e?(J(e),K&&K(e)):(J(e.target.value),N&&N(e))};return i.createElement(r.FieldContainer,{helperText:u,error:l,styles:oe},i.createElement(r.FieldContent,{label:c,size:p,error:l,shape:f,styles:oe,shadow:s,variant:x,value:m,color:y,isHovered:C,isDisabled:T,isReadOnly:F,isFocused:E,isWithLabel:ne,colorScheme:y,onMouseEnter:te,onMouseLeave:te},i.createElement(r.FieldWrapper,null,ne&&i.createElement(r.FieldLabel,Object.assign({htmlFor:a,color:y,error:l},oe),c),i.createElement(n.Element,Object.assign({as:"textarea",id:a,name:t,rows:D,cols:G,value:m,readOnly:F,disabled:T,autoFocus:k,editable:O,placeholder:d,onBlur:function(e){P(e),Q(!1)},onFocus:function(){Q(!0),W&&W()},onChange:re,multiline:R},ae,ie,K&&{onChangeText:re})))))},le=["id","name","label","value","hint","inputValue","onChange","leftChild","rightChild","helperText","placeholder","onChangeText","shadow","styles","size","shape","variant","colorScheme","error","isFocused","isHovered","isDisabled","isReadOnly","isClearable","isAutoFocus","setHint","setIsFocused","setIsHovered","setInputValue","onClick","onFocus","onBlur"],ce=function(e){return i.createElement(n.Input,Object.assign({type:"text"},e))},se=function(e){var a=e.id,t=e.name,r=e.label,l=e.hint,c=e.inputValue,s=e.onChange,v=e.leftChild,f=e.rightChild,j=e.helperText,x=e.placeholder,_=e.onChangeText,y=e.shadow,S=void 0===y?{}:y,C=e.styles,w=void 0===C?{box:{},field:{},label:{},helperText:{},text:{}}:C,E=e.size,I=void 0===E?"md":E,O=e.shape,H=void 0===O?"default":O,F=e.variant,z=void 0===F?"default":F,T=e.colorScheme,M=void 0===T?"theme.primary":T,k=e.error,L=void 0!==k&&k,R=e.isFocused,V=void 0!==R&&R,D=e.isHovered,A=void 0!==D&&D,G=e.isDisabled,B=void 0!==G&&G,P=e.isReadOnly,N=void 0!==P&&P,W=e.isClearable,K=void 0===W||W,q=e.isAutoFocus,U=void 0!==q&&q,Z=e.setHint,J=void 0===Z?function(){}:Z,Y=e.setIsFocused,Q=void 0===Y?function(){}:Y,X=e.setIsHovered,$=void 0===X?function(){}:X,ee=e.setInputValue,oe=void 0===ee?function(){}:ee,ie=e.onFocus,ne=e.onBlur,ae=void 0===ne?function(){}:ne,te=b(e,le),de=(0,n.useTheme().getColor)("color.blueGray.700"),re=!(!V||!r);o.useMemo((function(){J(V&&!c?null!=x?x:"":null!=r?r:x)}),[c,V,r,x]);var se=Object.assign({margin:0,paddingVertical:8,padddingHorizontal:0,width:"100%",heigth:"100%",border:"none",on:{focus:{outline:"none"}},fontSize:n.Typography.fontSizes[I],backgroundColor:"transparent",color:B?"color.trueGray.600":"color.blueGray.700",cursor:B?"not-allowed":"auto"},w.field),me=function(){return $(!A)},ue=function(e){"string"==typeof e?(oe(e),_&&_(e)):(oe(e.target.value),s&&s(e))};return i.createElement(m.FieldContainer,{helperText:j,error:L,styles:w},i.createElement(u.FieldContent,{label:r,size:I,error:L,shape:H,styles:w,shadow:S,variant:z,value:c,color:M,isHovered:A,isDisabled:B,isReadOnly:N,isFocused:V,isWithLabel:re,colorScheme:M,onMouseEnter:me,onMouseLeave:me},v,i.createElement(g.FieldWrapper,null,re&&i.createElement(h.FieldLabel,Object.assign({htmlFor:a,color:M,error:L},w),r),i.createElement(ce,Object.assign({id:a,name:t,value:c,readOnly:N,disabled:B,autoFocus:U,placeholder:l,onFocus:function(){Q(!0),ie&&ie()},onBlur:function(e){ae(e),Q(!1)},autoComplete:"off"},se,te,{onChange:ue},_&&{onChangeText:ue}))),(f||K&&c)&&i.createElement(p.FieldIcons,null,f&&i.createElement(i.Fragment,null,f),K&&c&&!N&&!B&&i.createElement(d.CloseSvg,{size:n.Typography.fontSizes[I],color:de,onClick:function(){oe(""),s&&(ae({target:{name:t}}),s({target:{name:t,value:""}})),"undefined"==typeof document&&_&&_("")}}))))},me=["children","wrap"],ue=function(e){var o=e.children,n=e.wrap,a=b(e,me);return i.createElement(v.View,Object.assign({display:"flex",justifyContent:"center",alignItems:"center",flexWrap:n},a),o)},he=["children","wrap","justify","isReversed"],ge=function(e){var o=e.children,n=e.wrap,t=void 0===n?"wrap":n,d=e.justify,r=void 0===d?"flex-start":d,l=e.isReversed,c=void 0!==l&&l,s=b(e,he);return i.createElement(a.View,Object.assign({display:"flex",flexWrap:t,flexDirection:c?"row-reverse":"row",justifyContent:r},s),o)},pe=["children","wrap","justify","isReversed"],ve=function(e){var o=e.children,a=e.wrap,t=void 0===a?"nowrap":a,d=e.justify,r=void 0===d?"flex-start":d,l=e.isReversed,c=void 0!==l&&l,s=b(e,pe);return i.createElement(n.View,Object.assign({display:"flex",flexWrap:t,flexDirection:c?"column-reverse":"column",justifyContent:r},s),o)},fe={xs:12,sm:14,md:16,lg:18,xl:20,"2xl":24,"3xl":30,"4xl":36,"5xl":48,"6xl":64},je=["children","href","iconSize","underline","isHovered","isExternal","colorScheme","styles","setIsHovered"],be=function(e){var o=e.children,t=e.href,r=void 0===t?"/":t,l=e.iconSize,c=void 0===l?"sm":l,s=e.underline,m=void 0===s?"default":s,u=e.isHovered,h=void 0!==u&&u,g=e.isExternal,p=void 0!==g&&g,v=e.colorScheme,j=void 0===v?"#0072F5":v,x=e.styles,_=void 0===x?{icon:{},text:{}}:x,y=e.setIsHovered,S=void 0===y?function(){}:y,C=b(e,je),w=function(){"hover"===m&&S(!0)};return i.createElement(f.Link,{to:r,target:p?"_blank":"_self"},i.createElement(n.Element,Object.assign({color:j,onMouseEnter:w,onMouseLeave:w,textDecoration:h||"underline"===m?"underline !important":"none"},_.text,C),i.createElement(a.Horizontal,{gap:3,alignItems:"center",wrap:"nowrap"},o,p&&i.createElement(d.ExternalLinkSvg,{color:j,size:fe[c],style:_.icon}))))},xe={xs:14,sm:18,md:22,lg:26,xl:30,"2xl":40,"3xl":50,"4xl":60,"5xl":70,"6xl":80},_e={fast:50,normal:100,slow:300},ye=["size","speed","color"],Se=["size","speed","color"],Ce=["size","speed","color"],we=["size","children","textColor","loaderColor","type","speed","textPosition"],Ee=function(e){var a=e.size,t=void 0===a?"md":a,d=e.speed,r=void 0===d?"normal":d,l=e.color,c=void 0===l?"theme.loading":l,s=b(e,ye),m=n.useTheme().getColor(c),u="number"==typeof t?t:xe[t],h=o.useState(0),g=h[0],p=h[1];return o.useEffect((function(){var e=setInterval((function(){p((function(e){return e+45}))}),_e[r]);return function(){return clearInterval(e)}}),[r]),i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:u+"px",height:u+"px",viewBox:"0 0 24 24",fill:"none",stroke:m,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:{transform:"rotate("+g+"deg)"}},s),i.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),i.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("g",{id:"SVGRepo_iconCarrier"},i.createElement("path",{d:"M21 12a9 9 0 11-6.219-8.56"})))},Ie=function(e){var a=e.size,t=void 0===a?"md":a,d=e.speed,r=void 0===d?"normal":d,l=e.color,c=void 0===l?"theme.loading":l,s=b(e,Se),m=n.useTheme().getColor(c),u="number"==typeof t?t:xe[t],h=o.useState(0),g=h[0],p=h[1];return o.useEffect((function(){var e=setInterval((function(){p((function(e){return e+45}))}),_e[r]);return function(){return clearInterval(e)}}),[r]),i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50",width:u+"px",height:u+"px",style:{transform:"rotate("+g+"deg)"}},s),i.createElement("circle",{cx:"10",cy:"25",r:"4",fill:m}),i.createElement("circle",{cx:"25",cy:"25",r:"4",fill:m}),i.createElement("circle",{cx:"40",cy:"25",r:"4",fill:m}))},Oe=function(e){var a=e.size,t=void 0===a?"md":a,d=e.speed,r=void 0===d?"normal":d,l=e.color,c=void 0===l?"theme.loading":l,s=b(e,Ce),m=n.useTheme().getColor(c),u="number"==typeof t?t:xe[t],h=o.useState(0),g=h[0],p=h[1];return o.useEffect((function(){var e=setInterval((function(){p((function(e){return e+45}))}),_e[r]);return function(){return clearInterval(e)}}),[r]),i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50",width:u+"px",height:u+"px",style:{transform:"rotate("+g+"deg)"}},s),i.createElement("circle",{cx:"25",cy:"25",r:"20",fill:"none",stroke:m,strokeWidth:"5",strokeDasharray:"1,10"}))},He=function(e){var o=e.size,n=e.children,t=e.textColor,d=e.loaderColor,r=e.type,l=void 0===r?"default":r,c=e.speed,s=void 0===c?"normal":c,m=e.textPosition,u=void 0===m?"right":m,h=b(e,we),g={size:o,speed:s,color:d},p={default:i.createElement(Ee,Object.assign({},g)),dotted:i.createElement(Ie,Object.assign({},g)),quarter:i.createElement(Oe,Object.assign({},g))};return i.createElement(a.Center,Object.assign({gap:10,flexDirection:"top"===u||"bottom"===u?"column":"row"},h),("left"===u||"top"===u)&&n&&i.createElement(a.View,{color:t},n),p[l],("right"===u||"bottom"===u)&&n&&i.createElement(a.View,{color:t},n))},Fe={sharp:{borderRadius:0},rounded:{borderRadius:4}},ze={center:{justifyContent:"center",alignItems:"center"},top:{justifyContent:"center"},right:{justifyContent:"flex-end",alignItems:"center"},bottom:{justifyContent:"center",alignItems:"flex-end"},left:{alignItems:"center"}},Te={xs:12,sm:16,md:20,lg:24,xl:28},Me=["children","blur","isOpen","isClosePrevented","onClose","position"],ke=["children","shadow","isFullScreen","shape"],Le=["children","buttonColor","iconSize","buttonPosition"],Re=["children"],Ve=["children"],De=function(e){return i.createElement(i.Fragment,null,e.children)};De.Overlay=function(e){var n=e.children,t=e.blur,d=e.isOpen,r=void 0!==d&&d,l=e.isClosePrevented,c=void 0!==l&&l,s=e.onClose,m=void 0===s?function(){}:s,u=e.position,h=void 0===u?"center":u,g=b(e,Me),p=j.useModalStore((function(e){return e.setOpen})),f=j.useModalStore((function(e){return e.setOnClose}));if(o.useEffect((function(){f(m),r&&p()})),!r)return null;var x=function(){c||m()};return i.createElement(a.Center,{position:"fixed",top:0,left:0,width:"100%",height:"100%",zIndex:1e3,onClick:x,visibility:r?"visible":"hidden"},i.createElement(v.View,Object.assign({cursor:"pointer",position:"absolute",top:0,left:0,zIndex:1e3,width:"100vw",height:"100vh",display:"flex",backgroundColor:"blackAlpha.500",backdropFilter:t?"blur("+t+"px)":void 0,onClick:x},ze[h],g),n))},De.Container=function(e){var o=e.children,n=e.shadow,t=e.isFullScreen,d=void 0!==t&&t,r=e.shape,l=void 0===r?"rounded":r,c=b(e,ke),s=void 0!==typeof document?{boxShadow:"0px 2px 8px rgba(0, 0, 0, 0.3)"}:{elevation:5,shadowColor:"rgba(0, 0, 0, 0.3)",shadowOffset:{width:0,height:2},shadowOpacity:1,shadowRadius:8};return i.createElement(a.Vertical,Object.assign({cursor:"default",overflow:"hidden",backgroundColor:"white",width:d?"100%":600,height:d?"100%":"fit-content",onClick:function(e){return e.stopPropagation()}},n||s,Fe[l],c),o)},De.Header=function(e){var o=e.children,n=e.buttonColor,t=void 0===n?"theme.primary":n,r=e.iconSize,l=void 0===r?"md":r,c=e.buttonPosition,s=void 0===c?"right":c,m=b(e,Le),u=j.useModalStore((function(e){return e.onClose})),h=i.createElement(a.Button,{onClick:u,colorScheme:"transparent",icon:i.createElement(d.CloseSvg,{size:Te[l],color:t}),padding:0,margin:0,filter:"none",isAuto:!0});return i.createElement(a.Horizontal,Object.assign({justifyContent:"none"===s?"center":"space-between",alignItems:"center",paddingVertical:15,paddingHorizontal:20},m),"left"===s&&h,o,"right"===s&&h)},De.Body=function(e){var o=e.children,n=b(e,Re);return i.createElement(v.View,Object.assign({overflowY:"auto",paddingVertical:15,paddingHorizontal:20},{borderBottomWidth:2,borderTopWidth:2,borderColor:"rgba(250, 250, 250, 1)",borderStyle:"solid"},n),o)},De.Footer=function(e){var o=e.children,n=b(e,Ve);return i.createElement(a.Horizontal,Object.assign({marginTop:"auto",alignItems:"center",justifyContent:"flex-end",paddingVertical:15,paddingHorizontal:20},n),o)};var Ae={h1:{fontSize:96,lineHeight:112,letterSpacing:-1.5},h2:{fontSize:60,lineHeight:71,letterSpacing:-.5},h3:{fontSize:48,lineHeight:57,letterSpacing:0},h4:{fontSize:34,lineHeight:40,letterSpacing:.25},h5:{fontSize:24,lineHeight:28,letterSpacing:0},h6:{fontSize:20,lineHeight:24,letterSpacing:.15}},Ge=["children","heading","maxLines","isItalic","isUnderlined","isSub","isSup","isStriked","isTruncated","weight","size"],Be=function(e){var o=e.children,n=e.isSub,a=e.isSup;return i.createElement(i.Fragment,null,"string"==typeof o?i.createElement(i.Fragment,null,n&&i.createElement("sup",null,o),a&&i.createElement("sup",null,o),!n&&!a&&i.createElement(i.Fragment,null,o)):o)},Pe=function(e){var n=e.text,a=e.maxLines,t=void 0===a?1:a,d=o.useRef(null),r=o.useState(n),l=r[0],c=r[1];return o.useEffect((function(){var e=l,o=d.current;if(o){var i=o.offsetHeight,a=getComputedStyle(o).lineHeight,r="normal"!==a?parseFloat(a):20,s=Math.ceil(r*t);i>s?e=e.slice(0,-1):i===s&&l.length!==n.length&&(e=e.slice(0,-3)+"..."),c(e)}}),[t,n,d,l]),i.createElement("div",{ref:d},l)},Ne=function(e){var o=e.children,a=e.heading,t=e.maxLines,d=e.isItalic,r=void 0!==d&&d,l=e.isUnderlined,c=void 0!==l&&l,s=e.isSub,m=void 0!==s&&s,u=e.isSup,h=void 0!==u&&u,g=e.isStriked,p=void 0!==g&&g,v=e.isTruncated,f=void 0!==v&&v,j=e.weight,x=void 0===j?"normal":j,_=e.size,y=void 0===_?"md":_,S=b(e,Ge);return i.createElement(n.Element,Object.assign({role:"text",fontSize:n.Typography.fontSizes[y],lineHeight:n.Typography.lineHeights[y],fontStyle:r?"italic":"normal",fontWeight:n.Typography.fontWeights[x],textDecoration:p?"line-through":c?"underline":"none"},m||h?{display:"inline"}:{},a?Ae[a]:{},S),f&&t&&"string"==typeof o?i.createElement(Pe,{text:o,maxLines:t}):i.createElement(Be,Object.assign({isSub:m,isSup:h},S),o))};Object.defineProperty(exports,"View",{enumerable:!0,get:function(){return n.View}}),exports.Button=function(e){var o,n={isHovered:(o=i.useState(!1))[0],setIsHovered:o[1]},a=n.isHovered,t=n.setIsHovered,d=function(){return t(!a)};return i.createElement(C,Object.assign({onMouseEnter:d,onMouseLeave:d,filter:a?"brightness(0.85)":"brightness(1)"},e))},exports.Center=function(e){return i.createElement(ue,Object.assign({},e))},exports.Checkbox=function(e){var o,n,a,t,d=(n=void 0!==(o=e.defaultIsSelected)&&o,{isHovered:(a=i.useState(!1))[0],setIsHovered:a[1],isSelected:(t=i.useState(n))[0],setIsSelected:t[1]});return i.createElement(O,Object.assign({},d,e))},exports.CountryPicker=function(e){var o,n,a,t,d,r,l,c,s,m,u,h,g,p,v=(o=e.placeholder,a=(n=i.useState(H))[0],t=n[1],r=(d=i.useState(null!=o?o:H[0].name))[0],l=d[1],s=(c=i.useState(!0))[0],m=c[1],h=(u=i.useState(!1))[0],g=u[1],{hide:s,setHide:m,newOptions:a,setNewOptions:t,isHovered:(p=i.useState(!1))[0],setIsHovered:p[1],isFocused:h,setIsFocused:g,selected:r,setSelected:l});return i.createElement(V,Object.assign({},v,e))},exports.DatePicker=function(e){var o,n,a,t,d,r,l,c=(n=(o=i.useState(!1))[0],a=o[1],d=(t=i.useState(!1))[0],r=t[1],{date:(l=i.useState(s(new Date,"yyyy-MM-dd")))[0],setDate:l[1],isHovered:n,setIsHovered:a,isFocused:d,setIsFocused:r});return i.createElement(G,Object.assign({},c,e))},exports.Horizontal=function(e){return i.createElement(ge,Object.assign({},e))},exports.Link=function(e){var n,a={isHovered:(n=o.useState(!1))[0],setIsHovered:n[1]};return i.createElement(be,Object.assign({},a,e))},exports.Loading=function(e){return i.createElement(He,Object.assign({},e))},exports.Modal=De,exports.Password=function(e){var n,a={isVisible:(n=o.useState(!1))[0],setIsVisible:n[1]};return i.createElement(P,Object.assign({},a,e))},exports.Select=function(e){var o,n,a,t,d,r,l,c,s,m,u,h,g=(n=(o=e).placeholder?o.isMulti?[]:"":o.options[0],t=(a=i.useState(!0))[0],d=a[1],l=(r=i.useState(!1))[0],c=r[1],m=(s=i.useState(!1))[0],u=s[1],{selected:(h=i.useState(n))[0],setSelected:h[1],hide:t,setHide:d,isHovered:l,setIsHovered:c,isFocused:m,setIsFocused:u});return i.createElement($,Object.assign({},g,e))},exports.Switch=function(e){var o,n,a,t,d,r=(n=(o=e).isDisabled,a=o.isChecked,{isHovered:(t=i.useState(!1))[0],setIsHovered:t[1],on:(d=i.useState(n?!n:a))[0],setOn:d[1]});return i.createElement(te,Object.assign({},r,e))},exports.Text=function(e){return i.createElement(Ne,Object.assign({},e))},exports.TextArea=function(e){var n,a,t,d,r,l,c,s,m=(t=(n=e).defaultValue,d=n.value,{hint:(r=o.useState(null!=(a=n.label)?a:n.placeholder))[0],setHint:r[1],isHovered:(l=o.useState(!1))[0],setIsHovered:l[1],inputValue:(c=o.useState(d||t||""))[0],setInputValue:c[1],isFocused:(s=o.useState(!1))[0],setIsFocused:s[1]});return i.createElement(re,Object.assign({},m,e))},exports.TextField=function(e){var n,a,t,d,r,l,c,s=(t=(n=e).value,{hint:(d=o.useState(null!=(a=n.label)?a:n.placeholder))[0],setHint:d[1],isFocused:(r=o.useState(!1))[0],setIsFocused:r[1],isHovered:(l=o.useState(!1))[0],setIsHovered:l[1],inputValue:(c=o.useState(t||""))[0],setInputValue:c[1]});return i.createElement(se,Object.assign({},s,e))},exports.Vertical=function(e){return i.createElement(ve,Object.assign({},e))};
|
|
1
|
+
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0}),require("core-js/modules/es6.object.assign.js");var o=require("react"),i=e(o),n=require("app-studio"),a=require("./components"),t=require("./components/Form/Label/Label"),d=require("./components/Svg");require("core-js/modules/es6.array.map.js"),require("core-js/modules/es6.array.filter.js"),require("core-js/modules/es6.string.starts-with.js");var r=require("./components/Layout/Input"),l=require("./components/Svg/ArrowDown"),c=require("./components/Svg/ArrowUp"),s=e(require("date-fns/format")),m=require("./components/Layout/Input/FieldContainer/FieldContainer"),u=require("./components/Layout/Input/FieldContent/FieldContent"),h=require("./components/Layout/Input/FieldLabel/FieldLabel"),g=require("./components/Layout/Input/FieldWrapper/FieldWrapper");require("core-js/modules/es6.string.includes.js"),require("core-js/modules/es7.array.includes.js");var p=require("./components/Layout/Input/FieldIcons/FieldIcons"),v=require("./components/Layout/View/View"),f=require("react-router-dom"),j=require("./store/useModalStore");function b(e,o){if(null==e)return{};var i,n,a={},t=Object.keys(e);for(n=0;n<t.length;n++)o.indexOf(i=t[n])>=0||(a[i]=e[i]);return a}require("core-js/modules/es6.array.slice.js");var x={xs:{width:79,paddingTop:8,paddingBottom:8,paddingLeft:12,paddingRight:12,fontWeight:600,fontSize:"xs",lineHeight:16,letterSpacing:1.25},sm:{width:128,paddingTop:10,paddingBottom:10,paddingLeft:16,paddingRight:16,fontWeight:600,fontSize:"sm",lineHeight:20,letterSpacing:1.25},md:{width:144,paddingTop:12,paddingBottom:12,paddingLeft:18,paddingRight:18,fontWeight:600,fontSize:"md",lineHeight:24,letterSpacing:1.25},lg:{width:178,paddingTop:14,paddingBottom:14,paddingLeft:22,paddingRight:22,fontWeight:600,fontSize:"lg",lineHeight:24,letterSpacing:1.25},xl:{width:220,paddingTop:16,paddingBottom:16,paddingLeft:26,paddingRight:26,fontWeight:600,fontSize:"xl",lineHeight:24,letterSpacing:1.25}},_={sharp:0,rounded:4,pillShaped:24},y={xs:{width:24,height:24,padding:12},sm:{width:24,height:24,padding:15},md:{width:36,height:36,padding:15},lg:{width:36,height:36,padding:18},xl:{width:36,height:36,padding:24}},S=["icon","shadow","children","ariaLabel","externalHref","isAuto","isFilled","isIconRounded","isLoading","isDisabled","size","variant","iconPosition","colorScheme","shape","onClick"],C=function(e){var o,t=e.icon,d=e.shadow,r=e.children,l=e.ariaLabel,c=e.externalHref,s=e.isAuto,m=void 0!==s&&s,u=e.isFilled,h=void 0!==u&&u,g=e.isIconRounded,p=void 0!==g&&g,v=e.isLoading,f=void 0!==v&&v,j=e.isDisabled,C=void 0!==j&&j,w=e.size,E=void 0===w?"md":w,I=e.variant,O=void 0===I?"filled":I,H=e.iconPosition,F=void 0===H?"left":H,z=e.colorScheme,T=void 0===z?"theme.primary":z,M=e.shape,k=void 0===M?"rounded":M,L=e.onClick,R=void 0===L?function(){}:L,V=b(e,S),D=!(C||f),A={disabled:!D},G=D?T:"theme.disabled",B=x[E],P={filled:{backgroundColor:G,color:"color.white"},outline:{backgroundColor:"transparent",borderWidth:1,borderStyle:"solid",borderColor:T,color:G},link:{backgroundColor:"transparent",border:"none",color:G,textDecorationLine:"underline"},ghost:{backgroundColor:"transparent",border:"none",color:G}}[O],N={width:m?"fit-content":h?"100%":B.width},W={padding:p?y[E].padding:x[E].padding},K=i.createElement(i.Fragment,null,t&&"left"===F&&!f&&t,r,t&&"right"===F&&!f&&t);return i.createElement(n.Element,Object.assign({gap:8,as:"button",role:"button",border:"none",color:"color.white",display:"flex",alignItems:"center",justifyContent:"center",ariaLabel:l,backgroundColor:G,borderRadius:_[k],onClick:null!=(o=V.onClick)?o:R,cursor:D?"pointer":"default"},A,B,P,N,W,d,V),"link"===O&&c?i.createElement(a.Link,{href:c,textDecorationColor:T,colorScheme:T,isExternal:!0},K):K)},w={xs:{height:8,width:8},sm:{height:12,width:12},md:{height:18,width:18},lg:{height:24,width:24},xl:{height:30,width:30},"2xl":{height:36,width:36},"3xl":{height:42,width:42},"4xl":{height:48,width:48},"5xl":{height:54,width:54},"6xl":{height:60,width:60}},E={xs:6,sm:12,md:18,lg:24,xl:30,"2xl":36,"3xl":42,"4xl":48,"5xl":54,"6xl":60},I=["id","icon","name","label","isChecked","onChange","onValueChange","shadow","size","colorScheme","error","isSelected","isHovered","isDisabled","isReadOnly","isIndeterminate","defaultIsSelected","setIsSelected","setIsHovered","styles"],O=function(e){var o=e.id,r=e.icon,l=e.label,c=e.isChecked,s=e.onChange,m=e.onValueChange,u=e.shadow,h=void 0===u?{}:u,g=e.size,p=void 0===g?"md":g,v=e.colorScheme,f=void 0===v?"theme.primary":v,j=e.error,x=void 0!==j&&j,_=e.isSelected,y=void 0!==_&&_,S=e.isHovered,C=void 0!==S&&S,O=e.isDisabled,H=void 0!==O&&O,F=e.isReadOnly,z=void 0!==F&&F,T=e.isIndeterminate,M=void 0!==T&&T,k=e.setIsSelected,L=void 0===k?function(){}:k,R=e.setIsHovered,V=void 0===R?function(){}:R,D=e.styles,A=void 0===D?{checkbox:{},label:{}}:D,G=b(e,I),B=function(){return V(!C)},P={container:Object.assign({gap:10,display:"flex",alignItems:"center",height:"fit-content",width:"fit-content",color:x?"theme.error":H?"theme.disabled":"color.blueGray.700",cursor:H?"not-allowed":z?"default":"pointer"},A.label),checkbox:Object.assign({},H?{backgroundColor:"theme.disabled"}:(c||y)&&!M||M?{backgroundColor:f}:{borderWidth:2,borderColor:x?"theme.error":C?"color.gray.500":"color.gray.300",borderStyle:"solid"},{borderRadius:3,filter:C?"brightness(0.9)":void 0},w[p],h,A.checkbox)};return i.createElement(t.Label,Object.assign({htmlFor:o,as:"div",onClick:function(){z||H||(void 0===c?L(!y):(s&&s(!c),m&&m(!c)))},onMouseEnter:B,onMouseLeave:B,size:n.Typography.fontSizes[p]},P.container,G),i.createElement(a.Center,Object.assign({},P.checkbox),M?i.createElement(d.IndeterminateSvg,null):(c||y)&&(null!=r?r:i.createElement(d.CheckSvg,{size:E[p]}))),l)},H=[{name:"Afghanistan",dial_code:"+93",emoji:"🇦🇫",code:"AF"},{name:"Aland Islands",dial_code:"+358",emoji:"🇦🇽",code:"AX"},{name:"Albania",dial_code:"+355",emoji:"🇦🇱",code:"AL"},{name:"Algeria",dial_code:"+213",emoji:"🇩🇿",code:"DZ"},{name:"AmericanSamoa",dial_code:"+1684",emoji:"🇦🇸",code:"AS"},{name:"Andorra",dial_code:"+376",emoji:"🇦🇩",code:"AD"},{name:"Angola",dial_code:"+244",emoji:"🇦🇴",code:"AO"},{name:"Anguilla",dial_code:"+1264",emoji:"🇦🇮",code:"AI"},{name:"Antarctica",dial_code:"+672",emoji:"🇦🇶",code:"AQ"},{name:"Antigua and Barbuda",dial_code:"+1268",emoji:"🇦🇬",code:"AG"},{name:"Argentina",dial_code:"+54",emoji:"🇦🇷",code:"AR"},{name:"Armenia",dial_code:"+374",emoji:"🇦🇲",code:"AM"},{name:"Aruba",dial_code:"+297",emoji:"🇦🇼",code:"AW"},{name:"Australia",dial_code:"+61",emoji:"🇦🇺",code:"AU"},{name:"Austria",dial_code:"+43",emoji:"🇦🇹",code:"AT"},{name:"Azerbaijan",dial_code:"+994",emoji:"🇦🇿",code:"AZ"},{name:"Bahamas",dial_code:"+1242",emoji:"🇧🇸",code:"BS"},{name:"Bahrain",dial_code:"+973",emoji:"🇧🇭",code:"BH"},{name:"Bangladesh",dial_code:"+880",emoji:"🇧🇩",code:"BD"},{name:"Barbados",dial_code:"+1246",emoji:"🇧🇧",code:"BB"},{name:"Belarus",dial_code:"+375",emoji:"🇧🇾",code:"BY"},{name:"Belgium",dial_code:"+32",emoji:"🇧🇪",code:"BE"},{name:"Belize",dial_code:"+501",emoji:"🇧🇿",code:"BZ"},{name:"Benin",dial_code:"+229",emoji:"🇧🇯",code:"BJ"},{name:"Bermuda",dial_code:"+1441",emoji:"🇧🇲",code:"BM"},{name:"Bhutan",dial_code:"+975",emoji:"🇧🇹",code:"BT"},{name:"Bolivia, Plurinational State of",dial_code:"+591",emoji:"🇧🇴",code:"BO"},{name:"Bosnia and Herzegovina",dial_code:"+387",emoji:"🇧🇦",code:"BA"},{name:"Botswana",dial_code:"+267",emoji:"🇧🇼",code:"BW"},{name:"Brazil",dial_code:"+55",emoji:"🇧🇷",code:"BR"},{name:"British Indian Ocean Territory",dial_code:"+246",emoji:"🇮🇴",code:"IO"},{name:"Brunei Darussalam",dial_code:"+673",emoji:"🇧🇳",code:"BN"},{name:"Bulgaria",dial_code:"+359",emoji:"🇧🇬",code:"BG"},{name:"Burkina Faso",dial_code:"+226",emoji:"🇧🇫",code:"BF"},{name:"Burundi",dial_code:"+257",emoji:"🇧🇮",code:"BI"},{name:"Cambodia",dial_code:"+855",emoji:"🇰🇭",code:"KH"},{name:"Cameroon",dial_code:"+237",emoji:"🇨🇲",code:"CM"},{name:"Canada",dial_code:"+1",emoji:"🇨🇦",code:"CA"},{name:"Cape Verde",dial_code:"+238",emoji:"🇨🇻",code:"CV"},{name:"Cayman Islands",dial_code:"+345",emoji:"🇰🇾",code:"KY"},{name:"Central African Republic",dial_code:"+236",emoji:"🇨🇫",code:"CF"},{name:"Chad",dial_code:"+235",emoji:"🇹🇩",code:"TD"},{name:"Chile",dial_code:"+56",emoji:"🇨🇱",code:"CL"},{name:"China",dial_code:"+86",emoji:"🇨🇳",code:"CN"},{name:"Christmas Island",dial_code:"+61",emoji:"🇨🇽",code:"CX"},{name:"Cocos (Keeling) Islands",dial_code:"+61",emoji:"🇨🇨",code:"CC"},{name:"Colombia",dial_code:"+57",emoji:"🇨🇴",code:"CO"},{name:"Comoros",dial_code:"+269",emoji:"🇰🇲",code:"KM"},{name:"Congo",dial_code:"+242",emoji:"🇨🇬",code:"CG"},{name:"Congo, The Democratic Republic of the Congo",dial_code:"+243",emoji:"🇨🇩",code:"CD"},{name:"Cook Islands",dial_code:"+682",emoji:"🇨🇰",code:"CK"},{name:"Costa Rica",dial_code:"+506",emoji:"🇨🇷",code:"CR"},{name:"Cote d'Ivoire",dial_code:"+225",emoji:"🇨🇮",code:"CI"},{name:"Croatia",dial_code:"+385",emoji:"🇭🇷",code:"HR"},{name:"Cuba",dial_code:"+53",emoji:"🇨🇺",code:"CU"},{name:"Cyprus",dial_code:"+357",emoji:"🇨🇾",code:"CY"},{name:"Czech Republic",dial_code:"+420",emoji:"🇨🇿",code:"CZ"},{name:"Denmark",dial_code:"+45",emoji:"🇩🇰",code:"DK"},{name:"Djibouti",dial_code:"+253",emoji:"🇩🇯",code:"DJ"},{name:"Dominica",dial_code:"+1767",emoji:"🇩🇲",code:"DM"},{name:"Dominican Republic",dial_code:"+1849",emoji:"🇩🇴",code:"DO"},{name:"Ecuador",dial_code:"+593",emoji:"🇪🇨",code:"EC"},{name:"Egypt",dial_code:"+20",emoji:"🇪🇬",code:"EG"},{name:"El Salvador",dial_code:"+503",emoji:"🇸🇻",code:"SV"},{name:"Equatorial Guinea",dial_code:"+240",emoji:"🇬🇶",code:"GQ"},{name:"Eritrea",dial_code:"+291",emoji:"🇪🇷",code:"ER"},{name:"Estonia",dial_code:"+372",emoji:"🇪🇪",code:"EE"},{name:"Ethiopia",dial_code:"+251",emoji:"🇪🇹",code:"ET"},{name:"Falkland Islands (Malvinas)",dial_code:"+500",emoji:"🇫🇰",code:"FK"},{name:"Faroe Islands",dial_code:"+298",emoji:"🇫🇴",code:"FO"},{name:"Fiji",dial_code:"+679",emoji:"🇫🇯",code:"FJ"},{name:"Finland",dial_code:"+358",emoji:"🇫🇮",code:"FI"},{name:"France",dial_code:"+33",emoji:"🇫🇷",code:"FR"},{name:"French Guiana",dial_code:"+594",emoji:"🇬🇫",code:"GF"},{name:"French Polynesia",dial_code:"+689",emoji:"🇵🇫",code:"PF"},{name:"Gabon",dial_code:"+241",emoji:"🇬🇦",code:"GA"},{name:"Gambia",dial_code:"+220",emoji:"🇬🇲",code:"GM"},{name:"Georgia",dial_code:"+995",emoji:"🇬🇪",code:"GE"},{name:"Germany",dial_code:"+49",emoji:"🇩🇪",code:"DE"},{name:"Ghana",dial_code:"+233",emoji:"🇬🇭",code:"GH"},{name:"Gibraltar",dial_code:"+350",emoji:"🇬🇮",code:"GI"},{name:"Greece",dial_code:"+30",emoji:"🇬🇷",code:"GR"},{name:"Greenland",dial_code:"+299",emoji:"🇬🇱",code:"GL"},{name:"Grenada",dial_code:"+1473",emoji:"🇬🇩",code:"GD"},{name:"Guadeloupe",dial_code:"+590",emoji:"🇬🇵",code:"GP"},{name:"Guam",dial_code:"+1671",emoji:"🇬🇺",code:"GU"},{name:"Guatemala",dial_code:"+502",emoji:"🇬🇹",code:"GT"},{name:"Guernsey",dial_code:"+44",emoji:"🇬🇬",code:"GG"},{name:"Guinea",dial_code:"+224",emoji:"🇬🇳",code:"GN"},{name:"Guinea-Bissau",dial_code:"+245",emoji:"🇬🇼",code:"GW"},{name:"Guyana",dial_code:"+595",emoji:"🇬🇾",code:"GY"},{name:"Haiti",dial_code:"+509",emoji:"🇭🇹",code:"HT"},{name:"Holy See (Vatican City State)",dial_code:"+379",emoji:"🇻🇦",code:"VA"},{name:"Honduras",dial_code:"+504",emoji:"🇭🇳",code:"HN"},{name:"Hong Kong",dial_code:"+852",emoji:"🇭🇰",code:"HK"},{name:"Hungary",dial_code:"+36",emoji:"🇭🇺",code:"HU"},{name:"Iceland",dial_code:"+354",emoji:"🇮🇸",code:"IS"},{name:"India",dial_code:"+91",emoji:"🇮🇳",code:"IN"},{name:"Indonesia",dial_code:"+62",emoji:"🇮🇩",code:"ID"},{name:"Iran, Islamic Republic of Persian Gulf",dial_code:"+98",emoji:"🇮🇷",code:"IR"},{name:"Iraq",dial_code:"+964",emoji:"🇮🇷",code:"IQ"},{name:"Ireland",dial_code:"+353",emoji:"🇮🇪",code:"IE"},{name:"Isle of Man",dial_code:"+44",emoji:"🇮🇲",code:"IM"},{name:"Israel",dial_code:"+972",emoji:"🇮🇱",code:"IL"},{name:"Italy",dial_code:"+39",emoji:"🇮🇹",code:"IT"},{name:"Jamaica",dial_code:"+1876",emoji:"🇯🇲",code:"JM"},{name:"Japan",dial_code:"+81",emoji:"🇯🇵",code:"JP"},{name:"Jersey",dial_code:"+44",emoji:"🇯🇪",code:"JE"},{name:"Jordan",dial_code:"+962",emoji:"🇯🇴",code:"JO"},{name:"Kazakhstan",dial_code:"+77",emoji:"🇰🇿",code:"KZ"},{name:"Kenya",dial_code:"+254",emoji:"🇰🇪",code:"KE"},{name:"Kiribati",dial_code:"+686",emoji:"🇰🇮",code:"KI"},{name:"Korea, Democratic People's Republic of Korea",dial_code:"+850",emoji:"🇰🇵",code:"KP"},{name:"Korea, Republic of South Korea",dial_code:"+82",emoji:"🇰🇷",code:"KR"},{name:"Kuwait",dial_code:"+965",emoji:"🇰🇼",code:"KW"},{name:"Kyrgyzstan",dial_code:"+996",emoji:"🇰🇬",code:"KG"},{name:"Laos",dial_code:"+856",emoji:"🇱🇦",code:"LA"},{name:"Latvia",dial_code:"+371",emoji:"🇱🇻",code:"LV"},{name:"Lebanon",dial_code:"+961",emoji:"🇱🇧",code:"LB"},{name:"Lesotho",dial_code:"+266",emoji:"🇱🇸",code:"LS"},{name:"Liberia",dial_code:"+231",emoji:"🇱🇷",code:"LR"},{name:"Libyan Arab Jamahiriya",dial_code:"+218",emoji:"🇱🇾",code:"LY"},{name:"Liechtenstein",dial_code:"+423",emoji:"🇱🇮",code:"LI"},{name:"Lithuania",dial_code:"+370",emoji:"🇱🇹",code:"LT"},{name:"Luxembourg",dial_code:"+352",emoji:"🇱🇺",code:"LU"},{name:"Macao",dial_code:"+853",emoji:"🇲🇴",code:"MO"},{name:"Macedonia",dial_code:"+389",emoji:"🇲🇰",code:"MK"},{name:"Madagascar",dial_code:"+261",emoji:"🇲🇬",code:"MG"},{name:"Malawi",dial_code:"+265",emoji:"🇲🇼",code:"MW"},{name:"Malaysia",dial_code:"+60",emoji:"🇲🇾",code:"MY"},{name:"Maldives",dial_code:"+960",emoji:"🇲🇻",code:"MV"},{name:"Mali",dial_code:"+223",emoji:"🇲🇱",code:"ML"},{name:"Malta",dial_code:"+356",emoji:"🇲🇹",code:"MT"},{name:"Marshall Islands",dial_code:"+692",emoji:"🇲🇭",code:"MH"},{name:"Martinique",dial_code:"+596",emoji:"🇲🇶",code:"MQ"},{name:"Mauritania",dial_code:"+222",emoji:"🇲🇷",code:"MR"},{name:"Mauritius",dial_code:"+230",emoji:"🇲🇺",code:"MU"},{name:"Mayotte",dial_code:"+262",emoji:"🇾🇹",code:"YT"},{name:"Mexico",dial_code:"+52",emoji:"🇲🇽",code:"MX"},{name:"Micronesia, Federated States of Micronesia",dial_code:"+691",emoji:"🇫🇲",code:"FM"},{name:"Moldova",dial_code:"+373",emoji:"🇲🇩",code:"MD"},{name:"Monaco",dial_code:"+377",emoji:"🇲🇨",code:"MC"},{name:"Mongolia",dial_code:"+976",emoji:"🇲🇳",code:"MN"},{name:"Montenegro",dial_code:"+382",emoji:"🇲🇪",code:"ME"},{name:"Montserrat",dial_code:"+1664",emoji:"🇲🇸",code:"MS"},{name:"Morocco",dial_code:"+212",emoji:"🇲🇦",code:"MA"},{name:"Mozambique",dial_code:"+258",emoji:"🇲🇿",code:"MZ"},{name:"Myanmar",dial_code:"+95",emoji:"🇲🇲",code:"MM"},{name:"Namibia",emoji:"🇳🇦",dial_code:"+264",code:"NA"},{name:"Nauru",dial_code:"+674",emoji:"🇳🇷",code:"NR"},{name:"Nepal",dial_code:"+977",emoji:"🇳🇵",code:"NP"},{name:"Netherlands",dial_code:"+31",emoji:"🇳🇱",code:"NL"},{name:"Netherlands Antilles",dial_code:"+599",emoji:"🇧🇶",code:"AN"},{name:"New Caledonia",dial_code:"+687",emoji:"🇳🇨",code:"NC"},{name:"New Zealand",dial_code:"+64",emoji:"🇳🇿",code:"NZ"},{name:"Nicaragua",dial_code:"+505",emoji:"🇳🇮",code:"NI"},{name:"Niger",dial_code:"+227",emoji:"🇳🇪",code:"NE"},{name:"Nigeria",dial_code:"+234",emoji:"🇳🇬",code:"NG"},{name:"Niue",dial_code:"+683",emoji:"🇳🇺",code:"NU"},{name:"Norfolk Island",dial_code:"+672",emoji:"🇳🇫",code:"NF"},{name:"Northern Mariana Islands",dial_code:"+1670",emoji:"🇲🇵",code:"MP"},{name:"Norway",dial_code:"+47",emoji:"🇳🇴",code:"NO"},{name:"Oman",dial_code:"+968",emoji:"🇴🇲",code:"OM"},{name:"Pakistan",dial_code:"+92",emoji:"🇵🇰",code:"PK"},{name:"Palau",dial_code:"+680",emoji:"🇵🇼",code:"PW"},{name:"Palestinian Territory, Occupied",dial_code:"+970",emoji:"🇵🇸",code:"PS"},{name:"Panama",dial_code:"+507",emoji:"🇵🇦",code:"PA"},{name:"Papua New Guinea",dial_code:"+675",emoji:"🇵🇬",code:"PG"},{name:"Paraguay",dial_code:"+595",emoji:"🇵🇾",code:"PY"},{name:"Peru",dial_code:"+51",emoji:"🇵🇪",code:"PE"},{name:"Philippines",dial_code:"+63",emoji:"🇵🇭",code:"PH"},{name:"Pitcairn",dial_code:"+872",emoji:"🇵🇳",code:"PN"},{name:"Poland",dial_code:"+48",emoji:"🇵🇱",code:"PL"},{name:"Portugal",dial_code:"+351",emoji:"🇵🇹",code:"PT"},{name:"Puerto Rico",dial_code:"+1939",emoji:"🇵🇷",code:"PR"},{name:"Qatar",dial_code:"+974",emoji:"🇶🇦",code:"QA"},{name:"Romania",dial_code:"+40",emoji:"🇷🇴",code:"RO"},{name:"Russia",dial_code:"+7",emoji:"🇷🇺",code:"RU"},{name:"Rwanda",dial_code:"+250",emoji:"🇷🇼",code:"RW"},{name:"Reunion",dial_code:"+262",emoji:"🇷🇪",code:"RE"},{name:"Saint Barthelemy",dial_code:"+590",emoji:"🇧🇱",code:"BL"},{name:"Saint Helena, Ascension and Tristan Da Cunha",dial_code:"+290",emoji:"🇸🇭",code:"SH"},{name:"Saint Kitts and Nevis",dial_code:"+1869",emoji:"🇰🇳",code:"KN"},{name:"Saint Lucia",dial_code:"+1758",emoji:"🇱🇨",code:"LC"},{name:"Saint Martin",dial_code:"+590",emoji:"🇲🇫",code:"MF"},{name:"Saint Pierre and Miquelon",dial_code:"+508",emoji:"🇵🇲",code:"PM"},{name:"Saint Vincent and the Grenadines",dial_code:"+1784",emoji:"🇻🇨",code:"VC"},{name:"Samoa",dial_code:"+685",emoji:"🇼🇸",code:"WS"},{name:"San Marino",dial_code:"+378",emoji:"🇸🇲",code:"SM"},{name:"Sao Tome and Principe",dial_code:"+239",emoji:"🇸🇹",code:"ST"},{name:"Saudi Arabia",dial_code:"+966",emoji:"🇸🇦",code:"SA"},{name:"Senegal",dial_code:"+221",emoji:"🇸🇳",code:"SN"},{name:"Serbia",dial_code:"+381",emoji:"🇷🇸",code:"RS"},{name:"Seychelles",dial_code:"+248",emoji:"🇸🇨",code:"SC"},{name:"Sierra Leone",dial_code:"+232",emoji:"🇸🇱",code:"SL"},{name:"Singapore",dial_code:"+65",emoji:"🇸🇬",code:"SG"},{name:"Slovakia",dial_code:"+421",emoji:"🇸🇰",code:"SK"},{name:"Slovenia",dial_code:"+386",emoji:"🇸🇮",code:"SI"},{name:"Solomon Islands",dial_code:"+677",emoji:"🇸🇧",code:"SB"},{name:"Somalia",dial_code:"+252",emoji:"🇸🇴",code:"SO"},{name:"South Africa",dial_code:"+27",emoji:"🇿🇦",code:"ZA"},{name:"South Sudan",dial_code:"+211",emoji:"🇸🇸",code:"SS"},{name:"South Georgia and the South Sandwich Islands",dial_code:"+500",emoji:"🇬🇸",code:"GS"},{name:"Spain",dial_code:"+34",emoji:"🇪🇸",code:"ES"},{name:"Sri Lanka",dial_code:"+94",emoji:"🇱🇰",code:"LK"},{name:"Sudan",dial_code:"+249",emoji:"🇸🇩",code:"SD"},{name:"Suriname",dial_code:"+597",emoji:"🇸🇷",code:"SR"},{name:"Svalbard and Jan Mayen",dial_code:"+47",emoji:"🇸🇯",code:"SJ"},{name:"Swaziland",dial_code:"+268",emoji:"🇸🇿",code:"SZ"},{name:"Sweden",dial_code:"+46",emoji:"🇸🇪",code:"SE"},{name:"Switzerland",dial_code:"+41",emoji:"🇨🇭",code:"CH"},{name:"Syrian Arab Republic",dial_code:"+963",emoji:"🇸🇾",code:"SY"},{name:"Taiwan",dial_code:"+886",emoji:"🇹🇼",code:"TW"},{name:"Tajikistan",dial_code:"+992",emoji:"🇹🇯",code:"TJ"},{name:"Tanzania, United Republic of Tanzania",dial_code:"+255",emoji:"🇹🇿",code:"TZ"},{name:"Thailand",dial_code:"+66",emoji:"🇹🇭",code:"TH"},{name:"Timor-Leste",dial_code:"+670",emoji:"🇹🇱",code:"TL"},{name:"Togo",dial_code:"+228",emoji:"🇹🇬",code:"TG"},{name:"Tokelau",dial_code:"+690",emoji:"🇹🇰",code:"TK"},{name:"Tonga",dial_code:"+676",emoji:"🇹🇴",code:"TO"},{name:"Trinidad and Tobago",dial_code:"+1868",emoji:"🇹🇹",code:"TT"},{name:"Tunisia",dial_code:"+216",emoji:"🇹🇳",code:"TN"},{name:"Turkey",dial_code:"+90",emoji:"🇹🇷",code:"TR"},{name:"Turkmenistan",dial_code:"+993",emoji:"🇹🇲",code:"TM"},{name:"Turks and Caicos Islands",dial_code:"+1649",emoji:"🇹🇨",code:"TC"},{name:"Tuvalu",dial_code:"+688",emoji:"🇹🇻",code:"TV"},{name:"Uganda",dial_code:"+256",emoji:"🇺🇬",code:"UG"},{name:"Ukraine",dial_code:"+380",emoji:"🇺🇦",code:"UA"},{name:"United Arab Emirates",dial_code:"+971",emoji:"🇦🇪",code:"AE"},{name:"United Kingdom",dial_code:"+44",emoji:"🇬🇧",code:"GB"},{name:"United States",dial_code:"+1",emoji:"🇺🇸",code:"US"},{name:"Uruguay",dial_code:"+598",emoji:"🇺🇾",code:"UY"},{name:"Uzbekistan",dial_code:"+998",emoji:"🇺🇿",code:"UZ"},{name:"Vanuatu",dial_code:"+678",emoji:"🇻🇺",code:"VU"},{name:"Venezuela, Bolivarian Republic of Venezuela",dial_code:"+58",emoji:"🇻🇪",code:"VE"},{name:"Vietnam",dial_code:"+84",emoji:"🇻🇳",code:"VN"},{name:"Virgin Islands, British",dial_code:"+1284",emoji:"🇻🇬",code:"VG"},{name:"Virgin Islands, U.S.",dial_code:"+1340",emoji:"🇻🇮",code:"VI"},{name:"Wallis and Futuna",dial_code:"+681",emoji:"🇼🇫",code:"WF"},{name:"Yemen",dial_code:"+967",emoji:"🇾🇪",code:"YE"},{name:"Zambia",dial_code:"+260",emoji:"🇿🇲",code:"ZM"},{name:"Zimbabwe",dial_code:"+263",emoji:"🇿🇼",code:"ZW"}],F={xs:8,sm:10,md:12,lg:14,xl:16},z=["id","name","label","selected","placeholder","helperText","hide","error","isHovered","isFocused","isAutoFocus","isDisabled","isReadOnly","shadow","newOptions","size","variant","shape","colorScheme","onChange","onBlur","setHide","setNewOptions","setIsHovered","setIsFocused","setSelected","styles"],T=function(e){return i.createElement(n.Element,Object.assign({as:"ul"},e))},M=function(e){return i.createElement(n.Input,Object.assign({type:"country"},e))},k=function(e){return i.createElement(n.Element,Object.assign({as:"li"},e))},L=function(e){var a=e.option,t=e.size,d=void 0===t?"md":t,r=e.callback,l=void 0===r?function(){}:r,c=e.styles,s=void 0===c?{text:{}}:c,m=o.useState(!1),u=m[0],h=m[1],g=function(){return h(!u)};return i.createElement(k,Object.assign({margin:0,role:"DropDownItem",listStyleType:"none",paddingVertical:6,paddingHorizontal:12,onMouseEnter:g,onMouseLeave:g,onClick:function(e){e.stopPropagation(),l(a)},fontSize:n.Typography.fontSizes[d],backgroundColor:u?"trueGray.100":"transparent"},s.text),a)},R=function(e){var o=e.size,n=e.styles,a=void 0===n?{dropDown:{}}:n,t=e.options,d=e.callback,r=void 0===d?function(){}:d,l=function(e){return r(e)};return i.createElement(T,Object.assign({role:"dropDown",margin:0,padding:0,top:"100%",width:"100%",display:"flex",zIndex:1e3,overflow:"auto",maxHeight:"300px",borderRadius:4,position:"absolute",flexDirection:"column",backgroundColor:"white",boxShadow:"rgba(0, 0, 0, 0.07) 0px 1px 1px, rgba(0, 0, 0, 0.07) 0px 2px 2px, rgba(0, 0, 0, 0.07) 0px 4px 4px, rgba(0, 0, 0, 0.07) 0px 8px 8px, rgba(0, 0, 0, 0.07) 0px 16px 16px"},a.dropDown),t.map((function(e){return i.createElement(L,Object.assign({key:e.code,size:o,option:e.name,callback:l},a.text))})))},V=function(e){var a=e.id,t=e.name,d=e.label,s=e.selected,m=e.placeholder,u=e.helperText,h=e.hide,g=void 0!==h&&h,p=e.error,v=void 0!==p&&p,f=e.isHovered,j=void 0!==f&&f,x=e.isFocused,_=void 0!==x&&x,y=e.isAutoFocus,S=void 0!==y&&y,C=e.isDisabled,w=void 0!==C&&C,E=e.isReadOnly,I=void 0!==E&&E,O=e.shadow,T=void 0===O?{}:O,k=e.newOptions,L=void 0===k?[]:k,V=e.size,D=void 0===V?"md":V,A=e.variant,G=void 0===A?"default":A,B=e.shape,P=void 0===B?"default":B,N=e.colorScheme,W=void 0===N?"theme.primary":N,K=e.onChange,q=e.onBlur,U=void 0===q?function(){}:q,Z=e.setHide,J=void 0===Z?function(){}:Z,Y=e.setNewOptions,Q=void 0===Y?function(){}:Y,X=e.setIsHovered,$=void 0===X?function(){}:X,ee=e.setIsFocused,oe=void 0===ee?function(){}:ee,ie=e.setSelected,ne=void 0===ie?function(){}:ie,ae=e.styles,te=void 0===ae?{text:{},icon:{},label:{},dropDown:{},helperText:{},box:{}}:ae,de=b(e,z),re=(0,n.useTheme().getColor)("color.blueGray.700"),le=function(){return $(!j)};o.useEffect((function(){K&&K(s)}),[K,s]);var ce=!(!_||!d),se=Object.assign({margin:0,paddingVerical:8,paddingHorizonatl:0,width:"100%",heigth:"100%",border:"none",on:{focus:{outline:"none"}},fontSize:n.Typography.fontSizes[D],backgroundColor:"transparent",color:w?"color.trueGray.600":"color.blueGray.700",cursor:w?"not-allowed":"auto"},te.field);return i.createElement(r.FieldContainer,{helperText:u,error:v,styles:te,onClick:function(){w||I||J(!g)}},i.createElement(r.FieldContent,{label:d,size:D,error:v,shape:P,styles:te,shadow:T,variant:G,value:s,color:W,isHovered:j,isDisabled:w,isReadOnly:I,isFocused:_,isWithLabel:ce,colorScheme:W,onMouseEnter:le,onMouseLeave:le},i.createElement(r.FieldWrapper,null,ce&&i.createElement(r.FieldLabel,Object.assign({htmlFor:a,color:W,error:v},te),d),i.createElement(M,Object.assign({id:a,name:t,placeholder:m,readOnly:I,disabled:w,autoFocus:S,onBlur:function(e){U(e),oe(!1)},onFocus:function(){return oe(!0)}},se,de,{value:s,onChange:function(e){var o=e.target.value,i=H.filter((function(e){return e.name.toLowerCase().startsWith(o.toLowerCase())}));g&&J(!1),ne(e.target.value),Q(i),K&&K(e)}}))),i.createElement(r.FieldIcons,null,i.createElement(g?l.ArrowDownSvg:c.ArrowUpSvg,{size:F[D],color:re,style:te.icon}))),!g&&i.createElement(R,{size:D,styles:te,options:L,callback:function(e){J(!g),ne(e)}}))},D=["id","icon","name","label","date","children","helperText","shadow","size","variant","shape","colorScheme","styles","error","isHovered","isFocused","isDisabled","isReadOnly","setDate","setIsFocused","setIsHovered","onChange","onChangeText"],A=function(e){return i.createElement(n.Input,Object.assign({type:"date"},e))},G=function(e){var o=e.id,a=e.name,t=e.label,d=e.date,r=e.helperText,l=e.shadow,c=void 0===l?{}:l,s=e.size,p=void 0===s?"md":s,v=e.variant,f=void 0===v?"default":v,j=e.shape,x=void 0===j?"default":j,_=e.colorScheme,y=void 0===_?"theme.primary":_,S=e.styles,C=void 0===S?{box:{},label:{},helperText:{},text:{},field:{}}:S,w=e.error,E=void 0!==w&&w,I=e.isHovered,O=void 0!==I&&I,H=e.isFocused,F=void 0!==H&&H,z=e.isDisabled,T=void 0!==z&&z,M=e.isReadOnly,k=void 0!==M&&M,L=e.setDate,R=void 0===L?function(){}:L,V=e.setIsFocused,G=void 0===V?function(){}:V,B=e.setIsHovered,P=void 0===B?function(){}:B,N=e.onChange,W=e.onChangeText,K=b(e,D),q=!(!F||!t),U=function(){return P(!O)},Z=function(e){"string"==typeof e?(R(e),W&&W(e)):(R(e.target.value),N&&N(e))},J=Object.assign({margin:0,paddingVertical:8,paddingHorizontal:0,width:"100%",heigth:"100%",border:"none",on:{focus:{outline:"none",backgroundColor:"transparent"}},fontSize:n.Typography.fontSizes[p],backgroundColor:"transparent",color:T?"trueGray.600":"blueGray.700",cursor:T?"not-allowed":k?"auto":"pointer"},C.field);return i.createElement(m.FieldContainer,{helperText:r,error:E,styles:C},i.createElement(u.FieldContent,{label:t,size:p,error:E,shape:x,styles:C,shadow:c,variant:f,value:d,color:y,isHovered:O,isDisabled:T,isReadOnly:k,isFocused:F,isWithLabel:q,colorScheme:y,onMouseEnter:U,onMouseLeave:U},i.createElement(g.FieldWrapper,null,q&&i.createElement(h.FieldLabel,Object.assign({htmlFor:o,color:y,error:E},C),t),i.createElement(A,Object.assign({id:o,name:a,value:d,onFocus:function(){return G(!0)},onChange:Z,disabled:T,readOnly:k},J,W&&{onChangeText:Z},K)))))},B=["name","visibleIcon","hiddenIcon","isDisabled","isVisible","setIsVisible"],P=function(e){var o=e.name,n=e.visibleIcon,t=e.hiddenIcon,d=e.isDisabled,r=void 0!==d&&d,l=e.isVisible,c=void 0!==l&&l,s=e.setIsVisible,m=void 0===s?function(){}:s,u=b(e,B);return i.createElement(a.TextField,Object.assign({name:o,type:c?"text":"password",rightChild:i.createElement(a.View,{onClick:function(){r||m(!c)}},c?n:t),isClearable:!1},u))},N={xs:8,sm:10,md:12,lg:14,xl:16},W=["isHovered","setIsHovered","option","size","callback"],K=["id","name","selected","onChange","isMulti","isDisabled","isReadOnly","options"],q=["option","size","removeOption"],U=["id","name","label","selected","placeholder","helperText","hide","error","isMulti","isFocused","isHovered","isDisabled","isReadOnly","options","shadow","size","colorScheme","shape","variant","styles","onChange","setHide","setSelected","setIsHovered","setIsFocused"],Z=function(e){var o=e.isHovered,a=e.setIsHovered,t=e.option,d=e.size,r=void 0===d?"md":d,l=e.callback,c=void 0===l?function(){}:l,s=b(e,W),m=function(){return a(!o)};return i.createElement(n.Element,Object.assign({as:"li",margin:0,paddingVertical:8,paddingHorizontal:12,listStyleType:"none",onMouseEnter:m,onMouseLeave:m,fontSize:n.Typography.fontSizes[r],onClick:function(){return function(e){return c(e)}(t)},backgroundColor:o?"trueGray.100":"transparent"},s),t)},J=function(e){var o=e.size,t=e.styles,d=void 0===t?{field:{},text:{}}:t,r=e.selected,l=e.isDisabled,c=e.placeholder,s=e.removeOption,m=void 0===s?function(){}:s,u=Object.assign({margin:0,width:"95%",heigth:"100%",border:"none",paddingVertical:8,paddingHorizontal:0,fontSize:n.Typography.fontSizes[void 0===o?"md":o],backgroundColor:"transparent",color:l?"trueGray.600":"blueGray.700",cursor:l?"not-allowed":"auto"},d.field,d.text);return i.createElement(a.Text,Object.assign({},u),(""===r||r&&0===r.length)&&c?c:i.createElement(i.Fragment,null,"string"==typeof r?r:r&&r.length>0&&i.createElement(a.Horizontal,{gap:6},r.map((function(e){return i.createElement(X,{key:e,option:e,removeOption:m})})))))},Y=function(e){var o=e.id,a=e.name,t=e.selected,d=e.onChange,r=e.isMulti,l=void 0!==r&&r,c=e.isDisabled,s=void 0!==c&&c,m=e.isReadOnly,u=void 0!==m&&m,h=e.options,g=void 0===h?[]:h,p=b(e,K);return i.createElement(n.Element,Object.assign({id:o,name:a,as:"select",opacity:0,width:0,height:0,position:"absolute",value:t,disabled:s,readOnly:u,onChange:function(e){d&&d(e)},multiple:l},p),g.map((function(e){return i.createElement("option",{key:e,value:e},e)})))},Q=function(e){var o,a=e.size,t=e.styles,d=void 0===t?{dropDown:{}}:t,r=e.options,l=e.callback,c=void 0===l?function(){}:l,s={isHovered:(o=i.useState(!1))[0],setIsHovered:o[1]},m=function(e){return c(e)},u=void 0!==typeof document?{boxShadow:"rgba(0, 0, 0, 0.07) 0px 1px 1px, rgba(0, 0, 0, 0.07) 0px 2px 2px, rgba(0, 0, 0, 0.07) 0px 4px 4px, rgba(0, 0, 0, 0.07) 0px 8px 8px, rgba(0, 0, 0, 0.07) 0px 16px 16px"}:{elevation:2,shadowColor:"rgba(0, 0, 0, 0.07)",shadowOffset:{width:0,height:1},shadowOpacity:1,shadowRadius:1};return i.createElement(n.Element,Object.assign({as:"ul",role:"dropdown",top:"100%",width:"100%",display:"flex",zIndex:1e3,overflowY:"auto",marginTop:5,marginLeft:0,marginRight:0,marginBottom:0,padding:0,borderRadius:4,position:"absolute",flexDirection:"column",backgroundColor:"white",justifyContent:"space-evenly"},u,d.dropDown),r.map((function(e){return i.createElement(Z,Object.assign({key:e,size:a,option:e,callback:m},s,d.text))})))},X=function(e){var o=e.option,t=e.size,r=void 0===t?"md":t,l=e.removeOption,c=void 0===l?function(){}:l,s=b(e,q);return i.createElement(a.Horizontal,Object.assign({gap:10,padding:6,borderRadius:4,alignItems:"center",fontSize:n.Typography.fontSizes[r],backgroundColor:"trueGray.300",onClick:function(e){return e.stopPropagation()}},s),i.createElement(a.Text,{size:r},o),i.createElement(d.CloseSvg,{role:"close-button",color:"inherit",size:N[r],onClick:function(){return c(o)}}))},$=function(e){var n=e.id,a=e.name,t=e.label,r=e.selected,l=e.placeholder,c=e.helperText,s=e.hide,v=void 0!==s&&s,f=e.error,j=void 0!==f&&f,x=e.isMulti,_=void 0!==x&&x,y=e.isFocused,S=void 0!==y&&y,C=e.isHovered,w=void 0!==C&&C,E=e.isDisabled,I=void 0!==E&&E,O=e.isReadOnly,H=void 0!==O&&O,F=e.options,z=void 0===F?[]:F,T=e.shadow,M=void 0===T?{}:T,k=e.size,L=void 0===k?"md":k,R=e.colorScheme,V=void 0===R?"theme.primary":R,D=e.shape,A=void 0===D?"default":D,G=e.variant,B=void 0===G?"default":G,P=e.styles,W=void 0===P?{text:{},icon:{},dropDown:{},selectBox:{},label:{},helperText:{}}:P,K=e.onChange,q=void 0===K?function(){}:K,Z=e.setHide,X=void 0===Z?function(){}:Z,$=e.setSelected,ee=void 0===$?function(){}:$,oe=e.setIsHovered,ie=void 0===oe?function(){}:oe,ne=e.setIsFocused,ae=void 0===ne?function(){}:ne,te=b(e,U),de=!(!S||!t),re=function(){return ie(!w)},le=o.useCallback((function(e){X(!v),_&&Array.isArray(r)?!r.includes(e)&&ee([].concat(r,[e])):ee(e)}),[v,_,r]);return i.createElement(m.FieldContainer,{role:"SelectBox",helperText:c,error:j,styles:W,onClick:I||H?function(){}:function(e){e.stopPropagation(),X(!v),ae(!S)}},i.createElement(u.FieldContent,{label:t,size:L,error:j,shape:A,styles:W,shadow:M,variant:B,value:r,color:V,isHovered:w,isDisabled:I,isReadOnly:H,isFocused:S,isWithLabel:de,colorScheme:V,onMouseEnter:re,onMouseLeave:re},i.createElement(g.FieldWrapper,null,de&&i.createElement(h.FieldLabel,Object.assign({htmlFor:n,color:V,error:j},W),t),i.createElement(Y,Object.assign({id:n,name:a,options:z,onChange:q,selected:r,isDisabled:I,isReadOnly:H,isMulti:_,onFocus:function(){return ae(!0)}},te)),i.createElement(J,{size:L,styles:W,selected:r,isDisabled:I,placeholder:l,removeOption:function(e){if(Array.isArray(r)&&r.includes(e)){var o=r.filter((function(o){return o!==e}));ee(0===o.length?[]:o)}}})),i.createElement(p.FieldIcons,null,!H&&!I&&i.createElement(i.Fragment,null,i.createElement(v?d.ArrowDownSvg:d.ArrowUpSvg,{color:"inherit",size:N[L],style:W.icon})))),!v&&i.createElement(Q,{size:L,styles:W,options:z,callback:le}))},ee={xs:{height:6,width:6},sm:{height:9,width:9},md:{height:12,width:12},lg:{height:15,width:15},xl:{height:18,width:18},"2xl":{height:21,width:21},"3xl":{height:24,width:24},"4xl":{height:27,width:27},"5xl":{height:30,width:30},"6xl":{height:33,width:33}},oe={xs:{height:16,width:28},sm:{height:20,width:36},md:{height:24,width:44},lg:{height:28,width:52},xl:{height:32,width:60},"2xl":{height:36,width:68},"3xl":{height:40,width:76},"4xl":{height:44,width:84},"5xl":{height:48,width:92},"6xl":{height:52,width:100}},ie={xs:{paddingVertical:0,paddingHorizontal:2},sm:{paddingVertical:0,paddingHorizontal:3},md:{paddingVertical:0,paddingHorizontal:5},lg:{paddingVertical:0,paddingHorizontal:6},xl:{paddingVertical:0,paddingHorizontal:8},"2xl":{paddingVertical:0,paddingHorizontal:9},"3xl":{paddingVertical:0,paddingHorizontal:10},"4xl":{paddingVertical:0,paddingHorizontal:13},"5xl":{paddingVertical:0,paddingHorizontal:15},"6xl":{paddingVertical:0,paddingHorizontal:16}},ne=["id","name","inActiveChild","activeChild","shadow","size","colorScheme","on","isHovered","isChecked","isDisabled","isReadOnly","onChange","onValueChange","setOn","setIsHovered","styles"],ae=function(e){return i.createElement(n.Input,Object.assign({type:"checkbox"},e))},te=function(e){var o=e.id,n=e.name,a=e.inActiveChild,d=e.activeChild,r=e.shadow,l=void 0===r?{}:r,c=e.size,s=void 0===c?"sm":c,m=e.colorScheme,u=void 0===m?"theme.primary":m,h=e.on,g=void 0!==h&&h,p=e.isHovered,f=void 0!==p&&p,j=e.isDisabled,x=void 0!==j&&j,_=e.isReadOnly,y=void 0!==_&&_,S=e.onChange,C=e.onValueChange,w=e.setOn,E=void 0===w?function(){}:w,I=e.setIsHovered,O=void 0===I?function(){}:I,H=e.styles,F=void 0===H?{slider:{},circle:{}}:H,z=b(e,ne),T=function(e){y||(E(!g),S&&S(e))},M=function(){return O(!f)};return i.createElement(t.Label,{htmlFor:o,onMouseEnter:M,onMouseLeave:M},i.createElement(ae,Object.assign({id:o,name:n,opacity:0,width:0,height:0,checked:g,onChange:T,disabled:x,readOnly:y},C&&{onValueChange:T},z)),i.createElement(v.View,Object.assign({display:"flex",cursor:"pointer",alignItems:"center",borderRadius:24,filter:f&&g?"brightness(0.9)":"brightness(1)",transition:"justify-content 0.3s cubic-bezier(0.4, 0, 0.2, 1)",backgroundColor:x?"disabled":g?u:"lightgray",justifyContent:d?"space-between":g?"flex-end":"flex-start"},l,ie[s],oe[s],F.slider),d&&g&&i.createElement(v.View,null,d),i.createElement(v.View,Object.assign({borderRadius:"50%",backgroundColor:"white"},ee[s],F.circle)),a&&!g&&i.createElement(v.View,null,a)))},de=["id","name","hint","error","value","label","shadow","inputValue","helperText","placeholder","defaultValue","size","shape","variant","colorScheme","isHovered","isFocused","isEditable","isReadOnly","isDisabled","isAutoFocus","isMultiline","maxRows","maxCols","onBlur","onChange","onFocus","onChangeText","setHint","setInputValue","setIsFocused","setIsHovered","styles"],re=function(e){var a=e.id,t=e.name,d=e.hint,l=e.error,c=e.label,s=e.shadow,m=e.inputValue,u=e.helperText,h=e.placeholder,g=e.size,p=void 0===g?"sm":g,v=e.shape,f=void 0===v?"default":v,j=e.variant,x=void 0===j?"default":j,_=e.colorScheme,y=void 0===_?"theme.primary":_,S=e.isHovered,C=void 0!==S&&S,w=e.isFocused,E=void 0!==w&&w,I=e.isEditable,O=void 0!==I&&I,H=e.isReadOnly,F=void 0!==H&&H,z=e.isDisabled,T=void 0!==z&&z,M=e.isAutoFocus,k=void 0!==M&&M,L=e.isMultiline,R=void 0!==L&&L,V=e.maxRows,D=void 0===V?3:V,A=e.maxCols,G=void 0===A?30:A,B=e.onBlur,P=void 0===B?function(){}:B,N=e.onChange,W=e.onFocus,K=e.onChangeText,q=e.setHint,U=void 0===q?function(){}:q,Z=e.setInputValue,J=void 0===Z?function(){}:Z,Y=e.setIsFocused,Q=void 0===Y?function(){}:Y,X=e.setIsHovered,$=void 0===X?function(){}:X,ee=e.styles,oe=void 0===ee?{box:{},text:{},label:{},helperText:{},field:{}}:ee,ie=b(e,de),ne=!(!E||!c);o.useMemo((function(){U(E&&!m?null!=h?h:"":null!=c?c:h)}),[m,E,c,h]);var ae=Object.assign({margin:0,paddingVertical:8,paddingHorizontal:0,width:"100%",heigth:"100%",border:"none",on:{focus:{outline:"none"}},fontSize:n.Typography.fontSizes[p],backgroundColor:"transparent",color:T?"trueGray.600":"blueGray.700",cursor:T?"not-allowed":"auto"},oe.field),te=function(){return $(!C)},re=function(e){"string"==typeof e?(J(e),K&&K(e)):(J(e.target.value),N&&N(e))};return i.createElement(r.FieldContainer,{helperText:u,error:l,styles:oe},i.createElement(r.FieldContent,{label:c,size:p,error:l,shape:f,styles:oe,shadow:s,variant:x,value:m,color:y,isHovered:C,isDisabled:T,isReadOnly:F,isFocused:E,isWithLabel:ne,colorScheme:y,onMouseEnter:te,onMouseLeave:te},i.createElement(r.FieldWrapper,null,ne&&i.createElement(r.FieldLabel,Object.assign({htmlFor:a,color:y,error:l},oe),c),i.createElement(n.Element,Object.assign({as:"textarea",id:a,name:t,rows:D,cols:G,value:m,readOnly:F,disabled:T,autoFocus:k,editable:O,placeholder:d,onBlur:function(e){P(e),Q(!1)},onFocus:function(){Q(!0),W&&W()},onChange:re,multiline:R},ae,ie,K&&{onChangeText:re})))))},le=["id","name","label","value","hint","inputValue","onChange","leftChild","rightChild","helperText","placeholder","onChangeText","shadow","styles","size","shape","variant","colorScheme","error","isFocused","isHovered","isDisabled","isReadOnly","isClearable","isAutoFocus","setHint","setIsFocused","setIsHovered","setInputValue","onClick","onFocus","onBlur"],ce=function(e){return i.createElement(n.Input,Object.assign({type:"text"},e))},se=function(e){var a=e.id,t=e.name,r=e.label,l=e.hint,c=e.inputValue,s=e.onChange,v=e.leftChild,f=e.rightChild,j=e.helperText,x=e.placeholder,_=e.onChangeText,y=e.shadow,S=void 0===y?{}:y,C=e.styles,w=void 0===C?{box:{},field:{},label:{},helperText:{},text:{}}:C,E=e.size,I=void 0===E?"md":E,O=e.shape,H=void 0===O?"default":O,F=e.variant,z=void 0===F?"default":F,T=e.colorScheme,M=void 0===T?"theme.primary":T,k=e.error,L=void 0!==k&&k,R=e.isFocused,V=void 0!==R&&R,D=e.isHovered,A=void 0!==D&&D,G=e.isDisabled,B=void 0!==G&&G,P=e.isReadOnly,N=void 0!==P&&P,W=e.isClearable,K=void 0===W||W,q=e.isAutoFocus,U=void 0!==q&&q,Z=e.setHint,J=void 0===Z?function(){}:Z,Y=e.setIsFocused,Q=void 0===Y?function(){}:Y,X=e.setIsHovered,$=void 0===X?function(){}:X,ee=e.setInputValue,oe=void 0===ee?function(){}:ee,ie=e.onFocus,ne=e.onBlur,ae=void 0===ne?function(){}:ne,te=b(e,le),de=(0,n.useTheme().getColor)("color.blueGray.700"),re=!(!V||!r);o.useMemo((function(){J(V&&!c?null!=x?x:"":null!=r?r:x)}),[c,V,r,x]);var se=Object.assign({margin:0,paddingVertical:8,padddingHorizontal:0,width:"100%",heigth:"100%",border:"none",on:{focus:{outline:"none"}},fontSize:n.Typography.fontSizes[I],backgroundColor:"transparent",color:B?"color.trueGray.600":"color.blueGray.700",cursor:B?"not-allowed":"auto"},w.field),me=function(){return $(!A)},ue=function(e){"string"==typeof e?(oe(e),_&&_(e)):(oe(e.target.value),s&&s(e))};return i.createElement(m.FieldContainer,{helperText:j,error:L,styles:w},i.createElement(u.FieldContent,{label:r,size:I,error:L,shape:H,styles:w,shadow:S,variant:z,value:c,color:M,isHovered:A,isDisabled:B,isReadOnly:N,isFocused:V,isWithLabel:re,colorScheme:M,onMouseEnter:me,onMouseLeave:me},v,i.createElement(g.FieldWrapper,null,re&&i.createElement(h.FieldLabel,Object.assign({htmlFor:a,color:M,error:L},w),r),i.createElement(ce,Object.assign({id:a,name:t,value:c,readOnly:N,disabled:B,autoFocus:U,placeholder:l,onFocus:function(){Q(!0),ie&&ie()},onBlur:function(e){ae(e),Q(!1)},autoComplete:"off"},se,te,{onChange:ue},_&&{onChangeText:ue}))),(f||K&&c)&&i.createElement(p.FieldIcons,null,f&&i.createElement(i.Fragment,null,f),K&&c&&!N&&!B&&i.createElement(d.CloseSvg,{size:n.Typography.fontSizes[I],color:de,onClick:function(){oe(""),s&&(ae({target:{name:t}}),s({target:{name:t,value:""}})),"undefined"==typeof document&&_&&_("")}}))))},me=["children","wrap"],ue=function(e){var o=e.children,n=e.wrap,a=b(e,me);return i.createElement(v.View,Object.assign({display:"flex",justifyContent:"center",alignItems:"center",flexWrap:n},a),o)},he=["children","wrap","justify","isReversed"],ge=function(e){var o=e.children,n=e.wrap,t=void 0===n?"wrap":n,d=e.justify,r=void 0===d?"flex-start":d,l=e.isReversed,c=void 0!==l&&l,s=b(e,he);return i.createElement(a.View,Object.assign({display:"flex",flexWrap:t,flexDirection:c?"row-reverse":"row",justifyContent:r},s),o)},pe=["children","wrap","justify","isReversed"],ve=function(e){var o=e.children,a=e.wrap,t=void 0===a?"nowrap":a,d=e.justify,r=void 0===d?"flex-start":d,l=e.isReversed,c=void 0!==l&&l,s=b(e,pe);return i.createElement(n.View,Object.assign({display:"flex",flexWrap:t,flexDirection:c?"column-reverse":"column",justifyContent:r},s),o)},fe={xs:12,sm:14,md:16,lg:18,xl:20,"2xl":24,"3xl":30,"4xl":36,"5xl":48,"6xl":64},je=["children","href","iconSize","underline","isHovered","isExternal","colorScheme","styles","setIsHovered"],be=function(e){var o=e.children,t=e.href,r=void 0===t?"/":t,l=e.iconSize,c=void 0===l?"sm":l,s=e.underline,m=void 0===s?"default":s,u=e.isHovered,h=void 0!==u&&u,g=e.isExternal,p=void 0!==g&&g,v=e.colorScheme,j=void 0===v?"#0072F5":v,x=e.styles,_=void 0===x?{icon:{},text:{}}:x,y=e.setIsHovered,S=void 0===y?function(){}:y,C=b(e,je),w=function(){"hover"===m&&S(!0)};return i.createElement(f.Link,{to:r,target:p?"_blank":"_self"},i.createElement(n.Element,Object.assign({color:j,onMouseEnter:w,onMouseLeave:w,textDecoration:h||"underline"===m?"underline !important":"none"},_.text,C),i.createElement(a.Horizontal,{gap:3,alignItems:"center",wrap:"nowrap"},o,p&&i.createElement(d.ExternalLinkSvg,{color:j,size:fe[c],style:_.icon}))))},xe={xs:14,sm:18,md:22,lg:26,xl:30,"2xl":40,"3xl":50,"4xl":60,"5xl":70,"6xl":80},_e={fast:50,normal:100,slow:300},ye=["size","speed","color"],Se=["size","speed","color"],Ce=["size","speed","color"],we=["size","children","textColor","loaderColor","type","speed","textPosition"],Ee=function(e){var a=e.size,t=void 0===a?"md":a,d=e.speed,r=void 0===d?"normal":d,l=e.color,c=void 0===l?"theme.loading":l,s=b(e,ye),m=n.useTheme().getColor(c),u="number"==typeof t?t:xe[t],h=o.useState(0),g=h[0],p=h[1];return o.useEffect((function(){var e=setInterval((function(){p((function(e){return e+45}))}),_e[r]);return function(){return clearInterval(e)}}),[r]),i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:u+"px",height:u+"px",viewBox:"0 0 24 24",fill:"none",stroke:m,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:{transform:"rotate("+g+"deg)"}},s),i.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),i.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("g",{id:"SVGRepo_iconCarrier"},i.createElement("path",{d:"M21 12a9 9 0 11-6.219-8.56"})))},Ie=function(e){var a=e.size,t=void 0===a?"md":a,d=e.speed,r=void 0===d?"normal":d,l=e.color,c=void 0===l?"theme.loading":l,s=b(e,Se),m=n.useTheme().getColor(c),u="number"==typeof t?t:xe[t],h=o.useState(0),g=h[0],p=h[1];return o.useEffect((function(){var e=setInterval((function(){p((function(e){return e+45}))}),_e[r]);return function(){return clearInterval(e)}}),[r]),i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50",width:u+"px",height:u+"px",style:{transform:"rotate("+g+"deg)"}},s),i.createElement("circle",{cx:"10",cy:"25",r:"4",fill:m}),i.createElement("circle",{cx:"25",cy:"25",r:"4",fill:m}),i.createElement("circle",{cx:"40",cy:"25",r:"4",fill:m}))},Oe=function(e){var a=e.size,t=void 0===a?"md":a,d=e.speed,r=void 0===d?"normal":d,l=e.color,c=void 0===l?"theme.loading":l,s=b(e,Ce),m=n.useTheme().getColor(c),u="number"==typeof t?t:xe[t],h=o.useState(0),g=h[0],p=h[1];return o.useEffect((function(){var e=setInterval((function(){p((function(e){return e+45}))}),_e[r]);return function(){return clearInterval(e)}}),[r]),i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50",width:u+"px",height:u+"px",style:{transform:"rotate("+g+"deg)"}},s),i.createElement("circle",{cx:"25",cy:"25",r:"20",fill:"none",stroke:m,strokeWidth:"5",strokeDasharray:"1,10"}))},He=function(e){var o=e.size,n=e.children,t=e.textColor,d=e.loaderColor,r=e.type,l=void 0===r?"default":r,c=e.speed,s=void 0===c?"normal":c,m=e.textPosition,u=void 0===m?"right":m,h=b(e,we),g={size:o,speed:s,color:d},p={default:i.createElement(Ee,Object.assign({},g)),dotted:i.createElement(Ie,Object.assign({},g)),quarter:i.createElement(Oe,Object.assign({},g))};return i.createElement(a.Center,Object.assign({gap:10,flexDirection:"top"===u||"bottom"===u?"column":"row"},h),("left"===u||"top"===u)&&n&&i.createElement(a.View,{color:t},n),p[l],("right"===u||"bottom"===u)&&n&&i.createElement(a.View,{color:t},n))},Fe={sharp:{borderRadius:0},rounded:{borderRadius:4}},ze={center:{justifyContent:"center",alignItems:"center"},top:{justifyContent:"center"},right:{justifyContent:"flex-end",alignItems:"center"},bottom:{justifyContent:"center",alignItems:"flex-end"},left:{alignItems:"center"}},Te={xs:12,sm:16,md:20,lg:24,xl:28},Me=["children","blur","isOpen","isClosePrevented","onClose","position"],ke=["children","shadow","isFullScreen","shape"],Le=["children","buttonColor","iconSize","buttonPosition"],Re=["children"],Ve=["children"],De=function(e){return i.createElement(i.Fragment,null,e.children)};De.Overlay=function(e){var n=e.children,t=e.blur,d=e.isOpen,r=void 0!==d&&d,l=e.isClosePrevented,c=void 0!==l&&l,s=e.onClose,m=void 0===s?function(){}:s,u=e.position,h=void 0===u?"center":u,g=b(e,Me),p=j.useModalStore((function(e){return e.setOpen})),f=j.useModalStore((function(e){return e.setOnClose}));if(o.useEffect((function(){f(m),r&&p()})),!r)return null;var x=function(){c||m()};return i.createElement(a.Center,{position:"fixed",top:0,left:0,width:"100%",height:"100%",zIndex:1e3,onClick:x,visibility:r?"visible":"hidden"},i.createElement(v.View,Object.assign({cursor:"pointer",position:"absolute",top:0,left:0,zIndex:1e3,width:"100vw",height:"100vh",display:"flex",backgroundColor:"blackAlpha.500",backdropFilter:t?"blur("+t+"px)":void 0,onClick:x},ze[h],g),n))},De.Container=function(e){var o=e.children,n=e.shadow,t=e.isFullScreen,d=void 0!==t&&t,r=e.shape,l=void 0===r?"rounded":r,c=b(e,ke),s=void 0!==typeof document?{boxShadow:"0px 2px 8px rgba(0, 0, 0, 0.3)"}:{elevation:5,shadowColor:"rgba(0, 0, 0, 0.3)",shadowOffset:{width:0,height:2},shadowOpacity:1,shadowRadius:8};return i.createElement(a.Vertical,Object.assign({cursor:"default",overflow:"hidden",backgroundColor:"white",width:d?"100%":600,height:d?"100%":"fit-content",onClick:function(e){return e.stopPropagation()}},n||s,Fe[l],c),o)},De.Header=function(e){var o=e.children,n=e.buttonColor,t=void 0===n?"theme.primary":n,r=e.iconSize,l=void 0===r?"md":r,c=e.buttonPosition,s=void 0===c?"right":c,m=b(e,Le),u=j.useModalStore((function(e){return e.onClose})),h=i.createElement(a.Button,{onClick:u,colorScheme:"transparent",icon:i.createElement(d.CloseSvg,{size:Te[l],color:t}),padding:0,margin:0,filter:"none",isAuto:!0});return i.createElement(a.Horizontal,Object.assign({justifyContent:"none"===s?"center":"space-between",alignItems:"center",paddingVertical:15,paddingHorizontal:20},m),"left"===s&&h,o,"right"===s&&h)},De.Body=function(e){var o=e.children,n=b(e,Re);return i.createElement(v.View,Object.assign({overflowY:"auto",paddingVertical:15,paddingHorizontal:20},{borderBottomWidth:2,borderTopWidth:2,borderColor:"rgba(250, 250, 250, 1)",borderStyle:"solid"},n),o)},De.Footer=function(e){var o=e.children,n=b(e,Ve);return i.createElement(a.Horizontal,Object.assign({marginTop:"auto",alignItems:"center",justifyContent:"flex-end",paddingVertical:15,paddingHorizontal:20},n),o)};var Ae={h1:{fontSize:96,lineHeight:112,letterSpacing:-1.5},h2:{fontSize:60,lineHeight:71,letterSpacing:-.5},h3:{fontSize:48,lineHeight:57,letterSpacing:0},h4:{fontSize:34,lineHeight:40,letterSpacing:.25},h5:{fontSize:24,lineHeight:28,letterSpacing:0},h6:{fontSize:20,lineHeight:24,letterSpacing:.15}},Ge=["children","heading","maxLines","isItalic","isUnderlined","isSub","isSup","isStriked","isTruncated","weight","size"],Be=function(e){var o=e.children,n=e.isSub,a=e.isSup;return i.createElement(i.Fragment,null,"string"==typeof o?i.createElement(i.Fragment,null,n&&i.createElement("sup",null,o),a&&i.createElement("sup",null,o),!n&&!a&&i.createElement(i.Fragment,null,o)):o)},Pe=function(e){var n=e.text,a=e.maxLines,t=void 0===a?1:a,d=o.useRef(null),r=o.useState(n),l=r[0],c=r[1];return o.useEffect((function(){var e=l,o=d.current;if(o){var i=o.offsetHeight,a=getComputedStyle(o).lineHeight,r="normal"!==a?parseFloat(a):20,s=Math.ceil(r*t);i>s?e=e.slice(0,-1):i===s&&l.length!==n.length&&(e=e.slice(0,-3)+"..."),c(e)}}),[t,n,d,l]),i.createElement("div",{ref:d},l)},Ne=function(e){var o=e.children,a=e.heading,t=e.maxLines,d=e.isItalic,r=void 0!==d&&d,l=e.isUnderlined,c=void 0!==l&&l,s=e.isSub,m=void 0!==s&&s,u=e.isSup,h=void 0!==u&&u,g=e.isStriked,p=void 0!==g&&g,v=e.isTruncated,f=void 0!==v&&v,j=e.weight,x=void 0===j?"normal":j,_=e.size,y=void 0===_?"md":_,S=b(e,Ge);return i.createElement(n.Element,Object.assign({role:"text",fontSize:n.Typography.fontSizes[y],lineHeight:n.Typography.lineHeights[y],fontStyle:r?"italic":"normal",fontWeight:n.Typography.fontWeights[x],textDecoration:p?"line-through":c?"underline":"none"},m||h?{display:"inline"}:{},a?Ae[a]:{},S),f&&t&&"string"==typeof o?i.createElement(Pe,{text:o,maxLines:t}):i.createElement(Be,Object.assign({isSub:m,isSup:h},S),o))};Object.defineProperty(exports,"View",{enumerable:!0,get:function(){return n.View}}),exports.Button=function(e){var o,n={isHovered:(o=i.useState(!1))[0],setIsHovered:o[1]},a=n.isHovered,t=n.setIsHovered,d=function(){return t(!a)};return i.createElement(C,Object.assign({onMouseEnter:d,onMouseLeave:d,filter:a?"brightness(0.85)":"brightness(1)"},e))},exports.Center=function(e){return i.createElement(ue,Object.assign({},e))},exports.Checkbox=function(e){var o,n,a,t,d=(n=void 0!==(o=e.defaultIsSelected)&&o,{isHovered:(a=i.useState(!1))[0],setIsHovered:a[1],isSelected:(t=i.useState(n))[0],setIsSelected:t[1]});return i.createElement(O,Object.assign({},d,e))},exports.CountryPicker=function(e){var o,n,a,t,d,r,l,c,s,m,u,h,g,p,v=(o=e.placeholder,a=(n=i.useState(H))[0],t=n[1],r=(d=i.useState(null!=o?o:H[0].name))[0],l=d[1],s=(c=i.useState(!0))[0],m=c[1],h=(u=i.useState(!1))[0],g=u[1],{hide:s,setHide:m,newOptions:a,setNewOptions:t,isHovered:(p=i.useState(!1))[0],setIsHovered:p[1],isFocused:h,setIsFocused:g,selected:r,setSelected:l});return i.createElement(V,Object.assign({},v,e))},exports.DatePicker=function(e){var o,n,a,t,d,r,l,c=(n=(o=i.useState(!1))[0],a=o[1],d=(t=i.useState(!1))[0],r=t[1],{date:(l=i.useState(s(new Date,"yyyy-MM-dd")))[0],setDate:l[1],isHovered:n,setIsHovered:a,isFocused:d,setIsFocused:r});return i.createElement(G,Object.assign({},c,e))},exports.Horizontal=function(e){return i.createElement(ge,Object.assign({},e))},exports.Link=function(e){var n,a={isHovered:(n=o.useState(!1))[0],setIsHovered:n[1]};return i.createElement(be,Object.assign({},a,e))},exports.Loading=function(e){return i.createElement(He,Object.assign({},e))},exports.Modal=De,exports.Password=function(e){var n,a={isVisible:(n=o.useState(!1))[0],setIsVisible:n[1]};return i.createElement(P,Object.assign({},a,e))},exports.Select=function(e){var o,n,a,t,d,r,l,c,s,m,u,h,g=(n=(o=e).placeholder?o.isMulti?[]:"":o.options[0],t=(a=i.useState(!0))[0],d=a[1],l=(r=i.useState(!1))[0],c=r[1],m=(s=i.useState(!1))[0],u=s[1],{selected:(h=i.useState(n))[0],setSelected:h[1],hide:t,setHide:d,isHovered:l,setIsHovered:c,isFocused:m,setIsFocused:u});return i.createElement($,Object.assign({},g,e))},exports.Switch=function(e){var o,n,a,t,d,r=(n=(o=e).isDisabled,a=o.isChecked,{isHovered:(t=i.useState(!1))[0],setIsHovered:t[1],on:(d=i.useState(n?!n:a))[0],setOn:d[1]});return i.createElement(te,Object.assign({},r,e))},exports.Text=function(e){return i.createElement(Ne,Object.assign({},e))},exports.TextArea=function(e){var n,a,t,d,r,l,c,s,m=(t=(n=e).defaultValue,d=n.value,{hint:(r=o.useState(null!=(a=n.label)?a:n.placeholder))[0],setHint:r[1],isHovered:(l=o.useState(!1))[0],setIsHovered:l[1],inputValue:(c=o.useState(d||t||""))[0],setInputValue:c[1],isFocused:(s=o.useState(!1))[0],setIsFocused:s[1]});return i.createElement(re,Object.assign({},m,e))},exports.TextField=function(e){var n,a,t,d,r,l,c,s=(t=(n=e).value,{hint:(d=o.useState(null!=(a=n.label)?a:n.placeholder))[0],setHint:d[1],isFocused:(r=o.useState(!1))[0],setIsFocused:r[1],isHovered:(l=o.useState(!1))[0],setIsHovered:l[1],inputValue:(c=o.useState(t||""))[0],setInputValue:c[1]});return i.createElement(se,Object.assign({},s,e))},exports.Vertical=function(e){return i.createElement(ve,Object.assign({},e))};
|
|
2
2
|
//# sourceMappingURL=web.cjs.production.min.js.map
|
package/dist/web.esm.js
CHANGED
|
@@ -2,7 +2,7 @@ import 'core-js/modules/es6.object.assign.js';
|
|
|
2
2
|
import React, { useEffect, useState, useCallback, useMemo, useRef } from 'react';
|
|
3
3
|
import { Element, Typography, useTheme, Input, View as View$2 } from 'app-studio';
|
|
4
4
|
export { View } from 'app-studio';
|
|
5
|
-
import { Link as Link$1, Center as Center$1, TextField as TextField$1, View, Text as Text$1, Horizontal as Horizontal$1, Vertical as Vertical$1, Button as Button$1 } from '
|
|
5
|
+
import { Link as Link$1, Center as Center$1, TextField as TextField$1, View, Text as Text$1, Horizontal as Horizontal$1, Vertical as Vertical$1, Button as Button$1 } from './components';
|
|
6
6
|
import { Label } from './components/Form/Label/Label';
|
|
7
7
|
import { IndeterminateSvg, CheckSvg, ArrowDownSvg as ArrowDownSvg$1, ArrowUpSvg as ArrowUpSvg$1, CloseSvg, ExternalLinkSvg } from './components/Svg';
|
|
8
8
|
import 'core-js/modules/es6.array.map.js';
|
|
@@ -21,7 +21,7 @@ import 'core-js/modules/es7.array.includes.js';
|
|
|
21
21
|
import { FieldIcons as FieldIcons$1 } from './components/Layout/Input/FieldIcons/FieldIcons';
|
|
22
22
|
import { View as View$1 } from './components/Layout/View/View';
|
|
23
23
|
import { Link as Link$2 } from 'react-router-dom';
|
|
24
|
-
import { useModalStore } from '
|
|
24
|
+
import { useModalStore } from './store/useModalStore';
|
|
25
25
|
import 'core-js/modules/es6.array.slice.js';
|
|
26
26
|
|
|
27
27
|
var useButtonState = function useButtonState() {
|