@app-studio/web 0.1.0
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/LICENSE +448 -0
- package/README.md +50 -0
- package/dist/App.d.ts +3 -0
- package/dist/components/Button/Button/Button.props.d.ts +77 -0
- package/dist/components/Button/Button/Button.state.d.ts +5 -0
- package/dist/components/Button/Button/Button.style.d.ts +5 -0
- package/dist/components/Button/Button/Button.view.d.ts +4 -0
- package/dist/components/Button/Button.d.ts +6 -0
- package/dist/components/Button/examples/AutoFocusButton.d.ts +2 -0
- package/dist/components/Button/examples/BorderedButtons.d.ts +2 -0
- package/dist/components/Button/examples/ColoredButtons.d.ts +2 -0
- package/dist/components/Button/examples/DefaultButton.d.ts +2 -0
- package/dist/components/Button/examples/DisabledButton.d.ts +2 -0
- package/dist/components/Button/examples/IconButtons.d.ts +2 -0
- package/dist/components/Button/examples/LoadingButtons.d.ts +2 -0
- package/dist/components/Button/examples/ShadowButton.d.ts +2 -0
- package/dist/components/Button/examples/SizeButtons.d.ts +2 -0
- package/dist/components/Button/examples/VariantButtons.d.ts +2 -0
- package/dist/components/Button/examples/index.d.ts +9 -0
- package/dist/components/Form/Checkbox/Checkbox/Checkbox.props.d.ts +97 -0
- package/dist/components/Form/Checkbox/Checkbox/Checkbox.state.d.ts +8 -0
- package/dist/components/Form/Checkbox/Checkbox/Checkbox.style.d.ts +4 -0
- package/dist/components/Form/Checkbox/Checkbox/Checkbox.view.d.ts +4 -0
- package/dist/components/Form/Checkbox/Checkbox.d.ts +6 -0
- package/dist/components/Form/Checkbox/examples/ColorScheme.d.ts +2 -0
- package/dist/components/Form/Checkbox/examples/Default.d.ts +2 -0
- package/dist/components/Form/Checkbox/examples/DisabledInput.d.ts +2 -0
- package/dist/components/Form/Checkbox/examples/ErrorCheckbox.d.ts +2 -0
- package/dist/components/Form/Checkbox/examples/FormCheckout.d.ts +2 -0
- package/dist/components/Form/Checkbox/examples/IconCheckbox.d.ts +2 -0
- package/dist/components/Form/Checkbox/examples/IndeterminateCheckbox.d.ts +2 -0
- package/dist/components/Form/Checkbox/examples/ReadOnlyInput.d.ts +2 -0
- package/dist/components/Form/Checkbox/examples/Shadow.d.ts +2 -0
- package/dist/components/Form/Checkbox/examples/SizeInput.d.ts +2 -0
- package/dist/components/Form/Checkbox/examples/StylesInput.d.ts +2 -0
- package/dist/components/Form/Checkbox/examples/index.d.ts +11 -0
- package/dist/components/Form/CountryPicker/CountryPicker/CountryPicker.props.d.ts +173 -0
- package/dist/components/Form/CountryPicker/CountryPicker/CountryPicker.state.d.ts +15 -0
- package/dist/components/Form/CountryPicker/CountryPicker/CountryPicker.style.d.ts +3 -0
- package/dist/components/Form/CountryPicker/CountryPicker/CountryPicker.view.d.ts +6 -0
- package/dist/components/Form/CountryPicker/CountryPicker.d.ts +6 -0
- package/dist/components/Form/CountryPicker/examples/Color.d.ts +2 -0
- package/dist/components/Form/CountryPicker/examples/Default.d.ts +2 -0
- package/dist/components/Form/CountryPicker/examples/Disabled.d.ts +2 -0
- package/dist/components/Form/CountryPicker/examples/Error.d.ts +2 -0
- package/dist/components/Form/CountryPicker/examples/Form.d.ts +2 -0
- package/dist/components/Form/CountryPicker/examples/Formik.d.ts +2 -0
- package/dist/components/Form/CountryPicker/examples/HelperText.d.ts +2 -0
- package/dist/components/Form/CountryPicker/examples/ReadOnlyInput.d.ts +2 -0
- package/dist/components/Form/CountryPicker/examples/Shadow.d.ts +2 -0
- package/dist/components/Form/CountryPicker/examples/Shape.d.ts +2 -0
- package/dist/components/Form/CountryPicker/examples/SizeInput.d.ts +2 -0
- package/dist/components/Form/CountryPicker/examples/StylesInput.d.ts +2 -0
- package/dist/components/Form/CountryPicker/examples/Variant.d.ts +2 -0
- package/dist/components/Form/CountryPicker/examples/index.d.ts +12 -0
- package/dist/components/Form/DatePicker/DatePicker/DatePicker.props.d.ts +103 -0
- package/dist/components/Form/DatePicker/DatePicker/DatePicker.state.d.ts +9 -0
- package/dist/components/Form/DatePicker/DatePicker/DatePicker.style.d.ts +3 -0
- package/dist/components/Form/DatePicker/DatePicker/DatePicker.view.d.ts +4 -0
- package/dist/components/Form/DatePicker/DatePicker.d.ts +6 -0
- package/dist/components/Form/DatePicker/examples/ColorScheme.d.ts +2 -0
- package/dist/components/Form/DatePicker/examples/Default.d.ts +2 -0
- package/dist/components/Form/DatePicker/examples/DisabledInput.d.ts +2 -0
- package/dist/components/Form/DatePicker/examples/ErrorCheckbox.d.ts +2 -0
- package/dist/components/Form/DatePicker/examples/FormCheckout.d.ts +2 -0
- package/dist/components/Form/DatePicker/examples/Formik.d.ts +2 -0
- package/dist/components/Form/DatePicker/examples/ReadOnlyInput.d.ts +2 -0
- package/dist/components/Form/DatePicker/examples/Shadow.d.ts +2 -0
- package/dist/components/Form/DatePicker/examples/SizeInput.d.ts +2 -0
- package/dist/components/Form/DatePicker/examples/StylesInput.d.ts +2 -0
- package/dist/components/Form/DatePicker/examples/helperTextDatePicker.d.ts +2 -0
- package/dist/components/Form/DatePicker/examples/index.d.ts +11 -0
- package/dist/components/Form/Label/Label/Label.props.d.ts +36 -0
- package/dist/components/Form/Label/Label/Label.style.d.ts +2 -0
- package/dist/components/Form/Label/Label/Label.type.d.ts +3 -0
- package/dist/components/Form/Label/Label/Label.view.d.ts +4 -0
- package/dist/components/Form/Label/Label.d.ts +3 -0
- package/dist/components/Form/Password/Password/Password.props.d.ts +34 -0
- package/dist/components/Form/Password/Password/Password.state.d.ts +5 -0
- package/dist/components/Form/Password/Password/Password.view.d.ts +4 -0
- package/dist/components/Form/Password/Password.d.ts +6 -0
- package/dist/components/Form/Password/example/Default.d.ts +2 -0
- package/dist/components/Form/Password/example/DisabledInput.d.ts +2 -0
- package/dist/components/Form/Password/example/ErrorInput.d.ts +2 -0
- package/dist/components/Form/Password/example/FormikErrorInput.d.ts +2 -0
- package/dist/components/Form/Password/example/FormikHelperText.d.ts +2 -0
- package/dist/components/Form/Password/example/HelperText.d.ts +2 -0
- package/dist/components/Form/Select/Select/Select.props.d.ts +234 -0
- package/dist/components/Form/Select/Select/Select.state.d.ts +16 -0
- package/dist/components/Form/Select/Select/Select.style.d.ts +4 -0
- package/dist/components/Form/Select/Select/Select.view.d.ts +5 -0
- package/dist/components/Form/Select/Select.d.ts +6 -0
- package/dist/components/Form/Select/examples/Color.d.ts +2 -0
- package/dist/components/Form/Select/examples/Default.d.ts +2 -0
- package/dist/components/Form/Select/examples/Disabled.d.ts +2 -0
- package/dist/components/Form/Select/examples/Error.d.ts +2 -0
- package/dist/components/Form/Select/examples/Form.d.ts +2 -0
- package/dist/components/Form/Select/examples/Formik.d.ts +2 -0
- package/dist/components/Form/Select/examples/HelperText.d.ts +2 -0
- package/dist/components/Form/Select/examples/Multiple.d.ts +2 -0
- package/dist/components/Form/Select/examples/ReadOnlyInput.d.ts +2 -0
- package/dist/components/Form/Select/examples/Shadow.d.ts +2 -0
- package/dist/components/Form/Select/examples/SizeInput.d.ts +2 -0
- package/dist/components/Form/Select/examples/StylesInput.d.ts +2 -0
- package/dist/components/Form/Switch/Switch/Switch.props.d.ts +72 -0
- package/dist/components/Form/Switch/Switch/Switch.state.d.ts +8 -0
- package/dist/components/Form/Switch/Switch/Switch.style.d.ts +5 -0
- package/dist/components/Form/Switch/Switch/Switch.view.d.ts +4 -0
- package/dist/components/Form/Switch/Switch.d.ts +3 -0
- package/dist/components/Form/Switch/examples/ChildSwitch.d.ts +2 -0
- package/dist/components/Form/Switch/examples/ColorScheme.d.ts +2 -0
- package/dist/components/Form/Switch/examples/Default.d.ts +2 -0
- package/dist/components/Form/Switch/examples/DisabledInput.d.ts +2 -0
- package/dist/components/Form/Switch/examples/FormSwitch.d.ts +2 -0
- package/dist/components/Form/Switch/examples/Formik.d.ts +2 -0
- package/dist/components/Form/Switch/examples/ReadOnlyInput.d.ts +2 -0
- package/dist/components/Form/Switch/examples/Shadow.d.ts +2 -0
- package/dist/components/Form/Switch/examples/SizeInput.d.ts +2 -0
- package/dist/components/Form/Switch/examples/StylesInput.d.ts +2 -0
- package/dist/components/Form/TextArea/TextArea/TextArea.props.d.ts +144 -0
- package/dist/components/Form/TextArea/TextArea/TextArea.state.d.ts +12 -0
- package/dist/components/Form/TextArea/TextArea/TextArea.type.d.ts +11 -0
- package/dist/components/Form/TextArea/TextArea/TextArea.view.d.ts +4 -0
- package/dist/components/Form/TextArea/TextArea.d.ts +6 -0
- package/dist/components/Form/TextArea/examples/ColorScheme.d.ts +2 -0
- package/dist/components/Form/TextArea/examples/Default.d.ts +2 -0
- package/dist/components/Form/TextArea/examples/DisabledInput.d.ts +2 -0
- package/dist/components/Form/TextArea/examples/ErrorInput.d.ts +2 -0
- package/dist/components/Form/TextArea/examples/FormikErrorInput.d.ts +2 -0
- package/dist/components/Form/TextArea/examples/FormikHelperText.d.ts +2 -0
- package/dist/components/Form/TextArea/examples/HelperText.d.ts +2 -0
- package/dist/components/Form/TextArea/examples/LabelInput.d.ts +2 -0
- package/dist/components/Form/TextArea/examples/MaxRowCol.d.ts +2 -0
- package/dist/components/Form/TextArea/examples/Placeholder.d.ts +2 -0
- package/dist/components/Form/TextArea/examples/ReadOnlyInput.d.ts +2 -0
- package/dist/components/Form/TextArea/examples/ShadowArea.d.ts +2 -0
- package/dist/components/Form/TextArea/examples/ShapeInput.d.ts +2 -0
- package/dist/components/Form/TextArea/examples/SizeInput.d.ts +2 -0
- package/dist/components/Form/TextArea/examples/StylesInput.d.ts +2 -0
- package/dist/components/Form/TextArea/examples/VariantsInputs.d.ts +2 -0
- package/dist/components/Form/TextArea/examples/index.d.ts +15 -0
- package/dist/components/Form/TextField/TextField/TextField.props.d.ts +124 -0
- package/dist/components/Form/TextField/TextField/TextField.state.d.ts +12 -0
- package/dist/components/Form/TextField/TextField/TextField.view.d.ts +4 -0
- package/dist/components/Form/TextField/TextField.d.ts +6 -0
- package/dist/components/Form/TextField/examples/ClearInput.d.ts +2 -0
- package/dist/components/Form/TextField/examples/ColorScheme.d.ts +2 -0
- package/dist/components/Form/TextField/examples/Default.d.ts +2 -0
- package/dist/components/Form/TextField/examples/DisabledInput.d.ts +2 -0
- package/dist/components/Form/TextField/examples/ErrorInput.d.ts +2 -0
- package/dist/components/Form/TextField/examples/FormikErrorInput.d.ts +2 -0
- package/dist/components/Form/TextField/examples/FormikHelperText.d.ts +2 -0
- package/dist/components/Form/TextField/examples/HelperText.d.ts +2 -0
- package/dist/components/Form/TextField/examples/LabelInput.d.ts +2 -0
- package/dist/components/Form/TextField/examples/LeftChild.d.ts +2 -0
- package/dist/components/Form/TextField/examples/Placeholder.d.ts +2 -0
- package/dist/components/Form/TextField/examples/ReadOnlyInput.d.ts +2 -0
- package/dist/components/Form/TextField/examples/RightChild.d.ts +2 -0
- package/dist/components/Form/TextField/examples/ShapeInput.d.ts +2 -0
- package/dist/components/Form/TextField/examples/SizeInput.d.ts +2 -0
- package/dist/components/Form/TextField/examples/StylesInput.d.ts +2 -0
- package/dist/components/Form/TextField/examples/VariantsInputs.d.ts +2 -0
- package/dist/components/Form/TextField/examples/index.d.ts +17 -0
- package/dist/components/Layout/Center/Center/Center.props.d.ts +16 -0
- package/dist/components/Layout/Center/Center/Center.view.d.ts +4 -0
- package/dist/components/Layout/Center/Center.d.ts +3 -0
- package/dist/components/Layout/Horizontal/Horizontal/Horizontal.props.d.ts +24 -0
- package/dist/components/Layout/Horizontal/Horizontal/Horizontal.view.d.ts +4 -0
- package/dist/components/Layout/Horizontal/Horizontal.d.ts +3 -0
- package/dist/components/Layout/Horizontal/examples/Default.d.ts +2 -0
- package/dist/components/Layout/Horizontal/examples/Justify.d.ts +2 -0
- package/dist/components/Layout/Horizontal/examples/Reversed.d.ts +2 -0
- package/dist/components/Layout/Horizontal/examples/Wrap.d.ts +2 -0
- package/dist/components/Layout/Horizontal/examples/index.d.ts +4 -0
- package/dist/components/Layout/Input/FieldContainer/FieldContainer/FieldContainer.props.d.ts +24 -0
- package/dist/components/Layout/Input/FieldContainer/FieldContainer.d.ts +3 -0
- package/dist/components/Layout/Input/FieldContent/FieldContent/FieldContent.props.d.ts +74 -0
- package/dist/components/Layout/Input/FieldContent/FieldContent.d.ts +3 -0
- package/dist/components/Layout/Input/FieldIcons/FieldIcons/FieldIcons.props.d.ts +11 -0
- package/dist/components/Layout/Input/FieldIcons/FieldIcons.d.ts +3 -0
- package/dist/components/Layout/Input/FieldLabel/FieldLabel/FieldLabel.props.d.ts +30 -0
- package/dist/components/Layout/Input/FieldLabel/FieldLabel.d.ts +3 -0
- package/dist/components/Layout/Input/FieldLayout/FieldLayout/FieldLayout.props.d.ts +28 -0
- package/dist/components/Layout/Input/FieldLayout/FieldLayout.d.ts +3 -0
- package/dist/components/Layout/Input/FieldWrapper/FieldWrapper.d.ts +3 -0
- package/dist/components/Layout/Input/FieldWrapper/FieldWrapper.props.d.ts +11 -0
- package/dist/components/Layout/Input/HelperText/HelperText.d.ts +3 -0
- package/dist/components/Layout/Input/HelperText/HelperText.props.d.ts +20 -0
- package/dist/components/Layout/Input/index.d.ts +7 -0
- package/dist/components/Layout/Vertical/Vertical/Vertical.props.d.ts +24 -0
- package/dist/components/Layout/Vertical/Vertical/Vertical.type.d.ts +2 -0
- package/dist/components/Layout/Vertical/Vertical/Vertical.view.d.ts +4 -0
- package/dist/components/Layout/Vertical/Vertical.d.ts +3 -0
- package/dist/components/Layout/Vertical/examples/Default.d.ts +2 -0
- package/dist/components/Layout/Vertical/examples/Justify.d.ts +2 -0
- package/dist/components/Layout/Vertical/examples/Reversed.d.ts +2 -0
- package/dist/components/Layout/Vertical/examples/Wrap.d.ts +2 -0
- package/dist/components/Layout/Vertical/examples/index.d.ts +5 -0
- package/dist/components/Layout/View/View.d.ts +2 -0
- package/dist/components/Layout/configs/Input.style.d.ts +16 -0
- package/dist/components/Layout/configs/Input.type.d.ts +12 -0
- package/dist/components/Link/Link/Link.props.d.ts +47 -0
- package/dist/components/Link/Link/Link.state.d.ts +5 -0
- package/dist/components/Link/Link/Link.style.d.ts +2 -0
- package/dist/components/Link/Link/Link.view.d.ts +4 -0
- package/dist/components/Link/Link.d.ts +6 -0
- package/dist/components/Link/examples/Default.d.ts +2 -0
- package/dist/components/Link/examples/IsExternal.d.ts +2 -0
- package/dist/components/Link/examples/Underline.d.ts +2 -0
- package/dist/components/Loader/Loader/Loader.props.d.ts +93 -0
- package/dist/components/Loader/Loader/Loader.style.d.ts +4 -0
- package/dist/components/Loader/Loader/Loader.view.d.ts +4 -0
- package/dist/components/Loader/Loader.d.ts +6 -0
- package/dist/components/Loader/examples/ColorLoader.d.ts +2 -0
- package/dist/components/Loader/examples/DefaultLoader.d.ts +2 -0
- package/dist/components/Loader/examples/PositionLoader.d.ts +2 -0
- package/dist/components/Loader/examples/SizeLoader.d.ts +2 -0
- package/dist/components/Loader/examples/SpeedLoader.d.ts +2 -0
- package/dist/components/Loader/examples/TextLoader.d.ts +2 -0
- package/dist/components/Loader/examples/VariantLoader.d.ts +2 -0
- package/dist/components/Loader/examples/index.d.ts +7 -0
- package/dist/components/Modal/Examples/BlurModal.d.ts +2 -0
- package/dist/components/Modal/Examples/CloseButtonModal.d.ts +2 -0
- package/dist/components/Modal/Examples/DefaultModal.d.ts +2 -0
- package/dist/components/Modal/Examples/FullScreenModal.d.ts +2 -0
- package/dist/components/Modal/Examples/ModalPosition.d.ts +2 -0
- package/dist/components/Modal/Examples/PreventCloseModal.d.ts +2 -0
- package/dist/components/Modal/Examples/ScrollModal.d.ts +2 -0
- package/dist/components/Modal/Examples/ShadowModal.d.ts +2 -0
- package/dist/components/Modal/Examples/VariantModal.d.ts +2 -0
- package/dist/components/Modal/Examples/index.d.ts +9 -0
- package/dist/components/Modal/Modal/Modal.props.d.ts +178 -0
- package/dist/components/Modal/Modal/Modal.style.d.ts +5 -0
- package/dist/components/Modal/Modal/Modal.view.d.ts +7 -0
- package/dist/components/Modal/Modal.d.ts +6 -0
- package/dist/components/Svg/ArrowDown.d.ts +8 -0
- package/dist/components/Svg/ArrowUp.d.ts +8 -0
- package/dist/components/Svg/Check.d.ts +8 -0
- package/dist/components/Svg/Close.d.ts +8 -0
- package/dist/components/Svg/CloseEye.d.ts +8 -0
- package/dist/components/Svg/DustBin.d.ts +7 -0
- package/dist/components/Svg/Edit.d.ts +8 -0
- package/dist/components/Svg/ExternalLink.d.ts +8 -0
- package/dist/components/Svg/Indeterminate.d.ts +8 -0
- package/dist/components/Svg/OpenEye.d.ts +8 -0
- package/dist/components/Svg/Profile.d.ts +8 -0
- package/dist/components/Svg/RightArrow.d.ts +8 -0
- package/dist/components/Svg/index.d.ts +12 -0
- package/dist/components/Text/Text/Text.props.d.ts +77 -0
- package/dist/components/Text/Text/Text.style.d.ts +2 -0
- package/dist/components/Text/Text/Text.view.d.ts +4 -0
- package/dist/components/Text/Text.d.ts +6 -0
- package/dist/components/Wrapper.d.ts +6 -0
- package/dist/components/index.d.ts +18 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +8 -0
- package/dist/web.cjs.development.js +27 -0
- package/dist/web.cjs.development.js.map +1 -0
- package/dist/web.cjs.production.min.js +2 -0
- package/dist/web.cjs.production.min.js.map +1 -0
- package/dist/web.esm.js +23 -0
- package/dist/web.esm.js.map +1 -0
- package/package.json +153 -0
- package/src/components/Button/Button/Button.props.ts +79 -0
- package/src/components/Button/Button/Button.state.ts +7 -0
- package/src/components/Button/Button/Button.style.ts +95 -0
- package/src/components/Button/Button/Button.type.d.ts +11 -0
- package/src/components/Button/Button/Button.view.tsx +116 -0
- package/src/components/Button/Button.md +165 -0
- package/src/components/Button/Button.tsx +24 -0
- package/src/components/Button/examples/AutoFocusButton.tsx +13 -0
- package/src/components/Button/examples/BorderedButtons.tsx +14 -0
- package/src/components/Button/examples/ColoredButtons.tsx +12 -0
- package/src/components/Button/examples/DefaultButton.tsx +4 -0
- package/src/components/Button/examples/DisabledButton.tsx +13 -0
- package/src/components/Button/examples/IconButtons.tsx +23 -0
- package/src/components/Button/examples/LoadingButtons.tsx +28 -0
- package/src/components/Button/examples/ShadowButton.tsx +6 -0
- package/src/components/Button/examples/SizeButtons.tsx +16 -0
- package/src/components/Button/examples/VariantButtons.tsx +20 -0
- package/src/components/Button/examples/index.ts +9 -0
- package/src/components/Form/Checkbox/Checkbox/Checkbox.props.ts +118 -0
- package/src/components/Form/Checkbox/Checkbox/Checkbox.state.ts +15 -0
- package/src/components/Form/Checkbox/Checkbox/Checkbox.style.ts +29 -0
- package/src/components/Form/Checkbox/Checkbox/Checkbox.type.d.ts +8 -0
- package/src/components/Form/Checkbox/Checkbox/Checkbox.view.tsx +98 -0
- package/src/components/Form/Checkbox/Checkbox.md +128 -0
- package/src/components/Form/Checkbox/Checkbox.tsx +15 -0
- package/src/components/Form/Checkbox/examples/ColorScheme.tsx +12 -0
- package/src/components/Form/Checkbox/examples/Default.tsx +5 -0
- package/src/components/Form/Checkbox/examples/DisabledInput.tsx +5 -0
- package/src/components/Form/Checkbox/examples/ErrorCheckbox.tsx +5 -0
- package/src/components/Form/Checkbox/examples/FormCheckout.tsx +46 -0
- package/src/components/Form/Checkbox/examples/IconCheckbox.tsx +8 -0
- package/src/components/Form/Checkbox/examples/IndeterminateCheckbox.tsx +5 -0
- package/src/components/Form/Checkbox/examples/ReadOnlyInput.tsx +5 -0
- package/src/components/Form/Checkbox/examples/Shadow.tsx +11 -0
- package/src/components/Form/Checkbox/examples/SizeInput.tsx +18 -0
- package/src/components/Form/Checkbox/examples/StylesInput.tsx +22 -0
- package/src/components/Form/Checkbox/examples/index.ts +11 -0
- package/src/components/Form/CountryPicker/CountryPicker/CountryPicker.props.ts +187 -0
- package/src/components/Form/CountryPicker/CountryPicker/CountryPicker.state.ts +28 -0
- package/src/components/Form/CountryPicker/CountryPicker/CountryPicker.style.ts +17 -0
- package/src/components/Form/CountryPicker/CountryPicker/CountryPicker.type.d.ts +22 -0
- package/src/components/Form/CountryPicker/CountryPicker/CountryPicker.view.tsx +234 -0
- package/src/components/Form/CountryPicker/CountryPicker.md +206 -0
- package/src/components/Form/CountryPicker/CountryPicker.tsx +16 -0
- package/src/components/Form/CountryPicker/countries.json +1453 -0
- package/src/components/Form/CountryPicker/examples/Color.tsx +12 -0
- package/src/components/Form/CountryPicker/examples/Default.tsx +4 -0
- package/src/components/Form/CountryPicker/examples/Disabled.tsx +5 -0
- package/src/components/Form/CountryPicker/examples/Error.tsx +4 -0
- package/src/components/Form/CountryPicker/examples/Form.tsx +23 -0
- package/src/components/Form/CountryPicker/examples/Formik.tsx +39 -0
- package/src/components/Form/CountryPicker/examples/HelperText.tsx +5 -0
- package/src/components/Form/CountryPicker/examples/ReadOnlyInput.tsx +5 -0
- package/src/components/Form/CountryPicker/examples/Shadow.tsx +4 -0
- package/src/components/Form/CountryPicker/examples/Shape.tsx +13 -0
- package/src/components/Form/CountryPicker/examples/SizeInput.tsx +16 -0
- package/src/components/Form/CountryPicker/examples/StylesInput.tsx +19 -0
- package/src/components/Form/CountryPicker/examples/Variant.tsx +13 -0
- package/src/components/Form/CountryPicker/examples/index.ts +12 -0
- package/src/components/Form/CountryPicker/styles.css +7 -0
- package/src/components/Form/DatePicker/DatePicker/DatePicker.props.ts +113 -0
- package/src/components/Form/DatePicker/DatePicker/DatePicker.state.ts +17 -0
- package/src/components/Form/DatePicker/DatePicker/DatePicker.style.ts +17 -0
- package/src/components/Form/DatePicker/DatePicker/DatePicker.type.d.ts +15 -0
- package/src/components/Form/DatePicker/DatePicker/DatePicker.view.tsx +118 -0
- package/src/components/Form/DatePicker/DatePicker.md +115 -0
- package/src/components/Form/DatePicker/DatePicker.tsx +15 -0
- package/src/components/Form/DatePicker/examples/ColorScheme.tsx +12 -0
- package/src/components/Form/DatePicker/examples/Default.tsx +4 -0
- package/src/components/Form/DatePicker/examples/DisabledInput.tsx +5 -0
- package/src/components/Form/DatePicker/examples/ErrorCheckbox.tsx +4 -0
- package/src/components/Form/DatePicker/examples/FormCheckout.tsx +23 -0
- package/src/components/Form/DatePicker/examples/Formik.tsx +35 -0
- package/src/components/Form/DatePicker/examples/ReadOnlyInput.tsx +5 -0
- package/src/components/Form/DatePicker/examples/Shadow.tsx +10 -0
- package/src/components/Form/DatePicker/examples/SizeInput.tsx +16 -0
- package/src/components/Form/DatePicker/examples/StylesInput.tsx +14 -0
- package/src/components/Form/DatePicker/examples/helperTextDatePicker.tsx +6 -0
- package/src/components/Form/DatePicker/examples/index.ts +11 -0
- package/src/components/Form/Label/Label/Label.props.ts +36 -0
- package/src/components/Form/Label/Label/Label.style.ts +35 -0
- package/src/components/Form/Label/Label/Label.type.ts +14 -0
- package/src/components/Form/Label/Label/Label.view.tsx +35 -0
- package/src/components/Form/Label/Label.tsx +8 -0
- package/src/components/Form/Password/Password/Password.props.ts +36 -0
- package/src/components/Form/Password/Password/Password.state.ts +6 -0
- package/src/components/Form/Password/Password/Password.type.d.ts +14 -0
- package/src/components/Form/Password/Password/Password.view.tsx +32 -0
- package/src/components/Form/Password/Password.md +108 -0
- package/src/components/Form/Password/Password.tsx +15 -0
- package/src/components/Form/Password/example/Default.tsx +9 -0
- package/src/components/Form/Password/example/DisabledInput.tsx +17 -0
- package/src/components/Form/Password/example/ErrorInput.tsx +66 -0
- package/src/components/Form/Password/example/FormikErrorInput.tsx +61 -0
- package/src/components/Form/Password/example/FormikHelperText.tsx +65 -0
- package/src/components/Form/Password/example/HelperText.tsx +65 -0
- package/src/components/Form/Select/Select/Select.props.ts +262 -0
- package/src/components/Form/Select/Select/Select.state.ts +19 -0
- package/src/components/Form/Select/Select/Select.style.ts +19 -0
- package/src/components/Form/Select/Select/Select.type.d.ts +15 -0
- package/src/components/Form/Select/Select/Select.view.tsx +342 -0
- package/src/components/Form/Select/Select.md +165 -0
- package/src/components/Form/Select/Select.tsx +16 -0
- package/src/components/Form/Select/examples/Color.tsx +12 -0
- package/src/components/Form/Select/examples/Default.tsx +4 -0
- package/src/components/Form/Select/examples/Disabled.tsx +5 -0
- package/src/components/Form/Select/examples/Error.tsx +4 -0
- package/src/components/Form/Select/examples/Form.tsx +23 -0
- package/src/components/Form/Select/examples/Formik.tsx +41 -0
- package/src/components/Form/Select/examples/HelperText.tsx +7 -0
- package/src/components/Form/Select/examples/Multiple.tsx +6 -0
- package/src/components/Form/Select/examples/ReadOnlyInput.tsx +5 -0
- package/src/components/Form/Select/examples/Shadow.tsx +11 -0
- package/src/components/Form/Select/examples/SizeInput.tsx +16 -0
- package/src/components/Form/Select/examples/StylesInput.tsx +15 -0
- package/src/components/Form/Switch/Switch/Switch.props.ts +91 -0
- package/src/components/Form/Switch/Switch/Switch.state.ts +11 -0
- package/src/components/Form/Switch/Switch/Switch.style.ts +72 -0
- package/src/components/Form/Switch/Switch/Switch.type.d.ts +6 -0
- package/src/components/Form/Switch/Switch/Switch.view.tsx +78 -0
- package/src/components/Form/Switch/Switch.md +148 -0
- package/src/components/Form/Switch/Switch.tsx +12 -0
- package/src/components/Form/Switch/examples/ChildSwitch.tsx +20 -0
- package/src/components/Form/Switch/examples/ColorScheme.tsx +5 -0
- package/src/components/Form/Switch/examples/Default.tsx +4 -0
- package/src/components/Form/Switch/examples/DisabledInput.tsx +7 -0
- package/src/components/Form/Switch/examples/FormSwitch.tsx +22 -0
- package/src/components/Form/Switch/examples/Formik.tsx +30 -0
- package/src/components/Form/Switch/examples/ReadOnlyInput.tsx +7 -0
- package/src/components/Form/Switch/examples/Shadow.tsx +11 -0
- package/src/components/Form/Switch/examples/SizeInput.tsx +21 -0
- package/src/components/Form/Switch/examples/StylesInput.tsx +34 -0
- package/src/components/Form/TextArea/TextArea/TextArea.props.ts +154 -0
- package/src/components/Form/TextArea/TextArea/TextArea.state.ts +21 -0
- package/src/components/Form/TextArea/TextArea/TextArea.type.ts +15 -0
- package/src/components/Form/TextArea/TextArea/TextArea.view.tsx +143 -0
- package/src/components/Form/TextArea/TextArea.md +169 -0
- package/src/components/Form/TextArea/TextArea.tsx +15 -0
- package/src/components/Form/TextArea/examples/ColorScheme.tsx +13 -0
- package/src/components/Form/TextArea/examples/Default.tsx +5 -0
- package/src/components/Form/TextArea/examples/DisabledInput.tsx +7 -0
- package/src/components/Form/TextArea/examples/ErrorInput.tsx +50 -0
- package/src/components/Form/TextArea/examples/FormikErrorInput.tsx +52 -0
- package/src/components/Form/TextArea/examples/FormikHelperText.tsx +51 -0
- package/src/components/Form/TextArea/examples/HelperText.tsx +49 -0
- package/src/components/Form/TextArea/examples/LabelInput.tsx +23 -0
- package/src/components/Form/TextArea/examples/MaxRowCol.tsx +7 -0
- package/src/components/Form/TextArea/examples/Placeholder.tsx +23 -0
- package/src/components/Form/TextArea/examples/ReadOnlyInput.tsx +7 -0
- package/src/components/Form/TextArea/examples/ShadowArea.tsx +28 -0
- package/src/components/Form/TextArea/examples/ShapeInput.tsx +15 -0
- package/src/components/Form/TextArea/examples/SizeInput.tsx +16 -0
- package/src/components/Form/TextArea/examples/StylesInput.tsx +34 -0
- package/src/components/Form/TextArea/examples/VariantsInputs.tsx +15 -0
- package/src/components/Form/TextArea/examples/index.ts +15 -0
- package/src/components/Form/TextArea/styles.css +7 -0
- package/src/components/Form/TextField/TextField/TextField.props.ts +134 -0
- package/src/components/Form/TextField/TextField/TextField.state.ts +21 -0
- package/src/components/Form/TextField/TextField/TextField.type.d.ts +15 -0
- package/src/components/Form/TextField/TextField/TextField.view.tsx +170 -0
- package/src/components/Form/TextField/TextField.md +193 -0
- package/src/components/Form/TextField/TextField.tsx +14 -0
- package/src/components/Form/TextField/examples/ClearInput.tsx +13 -0
- package/src/components/Form/TextField/examples/ColorScheme.tsx +13 -0
- package/src/components/Form/TextField/examples/Default.tsx +23 -0
- package/src/components/Form/TextField/examples/DisabledInput.tsx +7 -0
- package/src/components/Form/TextField/examples/ErrorInput.tsx +74 -0
- package/src/components/Form/TextField/examples/FormikErrorInput.tsx +76 -0
- package/src/components/Form/TextField/examples/FormikHelperText.tsx +62 -0
- package/src/components/Form/TextField/examples/HelperText.tsx +60 -0
- package/src/components/Form/TextField/examples/LabelInput.tsx +23 -0
- package/src/components/Form/TextField/examples/LeftChild.tsx +8 -0
- package/src/components/Form/TextField/examples/Placeholder.tsx +23 -0
- package/src/components/Form/TextField/examples/ReadOnlyInput.tsx +7 -0
- package/src/components/Form/TextField/examples/RightChild.tsx +8 -0
- package/src/components/Form/TextField/examples/ShapeInput.tsx +15 -0
- package/src/components/Form/TextField/examples/SizeInput.tsx +16 -0
- package/src/components/Form/TextField/examples/StylesInput.tsx +35 -0
- package/src/components/Form/TextField/examples/VariantsInputs.tsx +15 -0
- package/src/components/Form/TextField/examples/index.ts +17 -0
- package/src/components/Form/TextField/styles.css +7 -0
- package/src/components/Layout/Center/Center/Center.props.ts +18 -0
- package/src/components/Layout/Center/Center/Center.view.tsx +12 -0
- package/src/components/Layout/Center/Center.md +17 -0
- package/src/components/Layout/Center/Center.tsx +11 -0
- package/src/components/Layout/Horizontal/Horizontal/Horizontal.props.ts +26 -0
- package/src/components/Layout/Horizontal/Horizontal/Horizontal.view.tsx +24 -0
- package/src/components/Layout/Horizontal/Horizontal.md +107 -0
- package/src/components/Layout/Horizontal/Horizontal.tsx +11 -0
- package/src/components/Layout/Horizontal/examples/Default.tsx +11 -0
- package/src/components/Layout/Horizontal/examples/Justify.tsx +25 -0
- package/src/components/Layout/Horizontal/examples/Reversed.tsx +11 -0
- package/src/components/Layout/Horizontal/examples/Wrap.tsx +29 -0
- package/src/components/Layout/Horizontal/examples/index.ts +4 -0
- package/src/components/Layout/Input/FieldContainer/FieldContainer/FieldContainer.props.ts +25 -0
- package/src/components/Layout/Input/FieldContainer/FieldContainer.tsx +17 -0
- package/src/components/Layout/Input/FieldContent/FieldContent/FieldContent.props.ts +75 -0
- package/src/components/Layout/Input/FieldContent/FieldContent.tsx +55 -0
- package/src/components/Layout/Input/FieldIcons/FieldIcons/FieldIcons.props.ts +12 -0
- package/src/components/Layout/Input/FieldIcons/FieldIcons.tsx +19 -0
- package/src/components/Layout/Input/FieldLabel/FieldLabel/FieldLabel.props.ts +31 -0
- package/src/components/Layout/Input/FieldLabel/FieldLabel.tsx +30 -0
- package/src/components/Layout/Input/FieldLayout/FieldLayout/FieldLayout.props.ts +29 -0
- package/src/components/Layout/Input/FieldLayout/FieldLayout.tsx +33 -0
- package/src/components/Layout/Input/FieldWrapper/FieldWrapper.props.ts +12 -0
- package/src/components/Layout/Input/FieldWrapper/FieldWrapper.tsx +11 -0
- package/src/components/Layout/Input/HelperText/HelperText.props.ts +21 -0
- package/src/components/Layout/Input/HelperText/HelperText.tsx +22 -0
- package/src/components/Layout/Input/index.ts +7 -0
- package/src/components/Layout/Vertical/Vertical/Vertical.props.ts +26 -0
- package/src/components/Layout/Vertical/Vertical/Vertical.type.ts +3 -0
- package/src/components/Layout/Vertical/Vertical/Vertical.view.tsx +23 -0
- package/src/components/Layout/Vertical/Vertical.md +120 -0
- package/src/components/Layout/Vertical/Vertical.tsx +12 -0
- package/src/components/Layout/Vertical/examples/Default.tsx +11 -0
- package/src/components/Layout/Vertical/examples/Justify.tsx +26 -0
- package/src/components/Layout/Vertical/examples/Reversed.tsx +11 -0
- package/src/components/Layout/Vertical/examples/Wrap.tsx +30 -0
- package/src/components/Layout/Vertical/examples/index.tsx +5 -0
- package/src/components/Layout/View/View.tsx +2 -0
- package/src/components/Layout/configs/Input.style.ts +45 -0
- package/src/components/Layout/configs/Input.type.ts +18 -0
- package/src/components/Link/Link/Link.props.ts +50 -0
- package/src/components/Link/Link/Link.state.ts +6 -0
- package/src/components/Link/Link/Link.style.ts +14 -0
- package/src/components/Link/Link/Link.type.d.ts +8 -0
- package/src/components/Link/Link/Link.view.tsx +44 -0
- package/src/components/Link/Link.md +61 -0
- package/src/components/Link/Link.tsx +15 -0
- package/src/components/Link/examples/Default.tsx +5 -0
- package/src/components/Link/examples/IsExternal.tsx +10 -0
- package/src/components/Link/examples/Underline.tsx +23 -0
- package/src/components/Loader/Loader/Loader.props.ts +105 -0
- package/src/components/Loader/Loader/Loader.style.ts +25 -0
- package/src/components/Loader/Loader/Loader.type.d.ts +4 -0
- package/src/components/Loader/Loader/Loader.view.tsx +138 -0
- package/src/components/Loader/Loader.md +111 -0
- package/src/components/Loader/Loader.tsx +11 -0
- package/src/components/Loader/examples/ColorLoader.tsx +13 -0
- package/src/components/Loader/examples/DefaultLoader.tsx +4 -0
- package/src/components/Loader/examples/PositionLoader.tsx +19 -0
- package/src/components/Loader/examples/SizeLoader.tsx +12 -0
- package/src/components/Loader/examples/SpeedLoader.tsx +12 -0
- package/src/components/Loader/examples/TextLoader.tsx +8 -0
- package/src/components/Loader/examples/VariantLoader.tsx +12 -0
- package/src/components/Loader/examples/index.ts +7 -0
- package/src/components/Modal/Examples/BlurModal.tsx +38 -0
- package/src/components/Modal/Examples/CloseButtonModal.tsx +44 -0
- package/src/components/Modal/Examples/DefaultModal.tsx +38 -0
- package/src/components/Modal/Examples/FullScreenModal.tsx +28 -0
- package/src/components/Modal/Examples/ModalPosition.tsx +61 -0
- package/src/components/Modal/Examples/PreventCloseModal.tsx +27 -0
- package/src/components/Modal/Examples/ScrollModal.tsx +41 -0
- package/src/components/Modal/Examples/ShadowModal.tsx +29 -0
- package/src/components/Modal/Examples/VariantModal.tsx +48 -0
- package/src/components/Modal/Examples/index.ts +9 -0
- package/src/components/Modal/Modal/Modal.props.ts +202 -0
- package/src/components/Modal/Modal/Modal.style.ts +23 -0
- package/src/components/Modal/Modal/Modal.type.d.ts +7 -0
- package/src/components/Modal/Modal/Modal.view.tsx +169 -0
- package/src/components/Modal/Modal.md +509 -0
- package/src/components/Modal/Modal.tsx +18 -0
- package/src/components/Svg/ArrowDown.tsx +32 -0
- package/src/components/Svg/ArrowUp.tsx +32 -0
- package/src/components/Svg/Check.tsx +28 -0
- package/src/components/Svg/Close.tsx +31 -0
- package/src/components/Svg/CloseEye.tsx +26 -0
- package/src/components/Svg/DustBin.tsx +29 -0
- package/src/components/Svg/Edit.tsx +34 -0
- package/src/components/Svg/ExternalLink.tsx +31 -0
- package/src/components/Svg/Indeterminate.tsx +21 -0
- package/src/components/Svg/OpenEye.tsx +26 -0
- package/src/components/Svg/Profile.tsx +40 -0
- package/src/components/Svg/RightArrow.tsx +44 -0
- package/src/components/Svg/index.tsx +12 -0
- package/src/components/Text/Text/Text.props.ts +84 -0
- package/src/components/Text/Text/Text.style.ts +34 -0
- package/src/components/Text/Text/Text.type.d.ts +14 -0
- package/src/components/Text/Text/Text.view.tsx +96 -0
- package/src/components/Text/Text.md +163 -0
- package/src/components/Text/Text.tsx +13 -0
- package/src/components/Wrapper.tsx +19 -0
- package/src/components/index.tsx +18 -0
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import React, { CSSProperties } from 'react';
|
|
2
|
+
import { Elevation } from 'src/utils/elevation';
|
|
3
|
+
import { Shadow } from 'app-studio';
|
|
4
|
+
import { CloseButtonPosition, Position, Shape, Size } from './Modal.type';
|
|
5
|
+
export interface ModalProps {
|
|
6
|
+
/**
|
|
7
|
+
* The content to be displayed inside the modal.
|
|
8
|
+
*/
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
/**
|
|
11
|
+
* The color of the close button in the header.
|
|
12
|
+
*/
|
|
13
|
+
buttonColor?: string;
|
|
14
|
+
/**
|
|
15
|
+
* The size of the close button in the header.
|
|
16
|
+
*/
|
|
17
|
+
iconSize?: Size;
|
|
18
|
+
/**
|
|
19
|
+
* Determines whether the modal should have sharp or rounded edges.
|
|
20
|
+
*/
|
|
21
|
+
shape?: Shape;
|
|
22
|
+
/**
|
|
23
|
+
* If set to true, the modal will occupy the full width and height of the screen.
|
|
24
|
+
*/
|
|
25
|
+
isFullScreen?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Indicates the presence of a close button and its position within the header.
|
|
28
|
+
*/
|
|
29
|
+
buttonPosition?: CloseButtonPosition;
|
|
30
|
+
/**
|
|
31
|
+
* The callback function to be executed when the close button is clicked or pressed.
|
|
32
|
+
*/
|
|
33
|
+
onClose?: () => void;
|
|
34
|
+
/**
|
|
35
|
+
* The degree of blurriness applied to the overlay.
|
|
36
|
+
*/
|
|
37
|
+
blur?: number;
|
|
38
|
+
/**
|
|
39
|
+
* If set to true, the modal will be visible.
|
|
40
|
+
*/
|
|
41
|
+
isOpen?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* If set to true, the modal will remain open when the overlay is clicked.
|
|
44
|
+
*/
|
|
45
|
+
isClosePrevented?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* The positioning of the modal container.
|
|
48
|
+
*/
|
|
49
|
+
position?: Position;
|
|
50
|
+
/**
|
|
51
|
+
* Applies a shadow effect to the button.
|
|
52
|
+
*/
|
|
53
|
+
shadow?: Shadow | Elevation | CSSProperties;
|
|
54
|
+
/**
|
|
55
|
+
* Additional properties.
|
|
56
|
+
*/
|
|
57
|
+
[x: string]: any;
|
|
58
|
+
}
|
|
59
|
+
export interface ModalType extends React.FunctionComponent<ModalProps> {
|
|
60
|
+
/**
|
|
61
|
+
* The overlay component of the modal.
|
|
62
|
+
*/
|
|
63
|
+
Overlay: React.FC<OverlayProps>;
|
|
64
|
+
/**
|
|
65
|
+
* The container component of the modal.
|
|
66
|
+
*/
|
|
67
|
+
Container: React.FC<ContainerProps>;
|
|
68
|
+
/**
|
|
69
|
+
* The header component of the modal.
|
|
70
|
+
*/
|
|
71
|
+
Header: React.FC<HeaderProps>;
|
|
72
|
+
/**
|
|
73
|
+
* The body component of the modal.
|
|
74
|
+
*/
|
|
75
|
+
Body: React.FC<BodyProps>;
|
|
76
|
+
/**
|
|
77
|
+
* The footer component of the modal.
|
|
78
|
+
*/
|
|
79
|
+
Footer: React.FC<FooterProps>;
|
|
80
|
+
}
|
|
81
|
+
export interface OverlayProps {
|
|
82
|
+
/**
|
|
83
|
+
* The content of the Overlay
|
|
84
|
+
*/
|
|
85
|
+
children?: React.ReactNode;
|
|
86
|
+
/**
|
|
87
|
+
* The value of how much to blur the overlay
|
|
88
|
+
*/
|
|
89
|
+
blur?: number;
|
|
90
|
+
/**
|
|
91
|
+
* If true, the modal will be visible
|
|
92
|
+
*/
|
|
93
|
+
isOpen: boolean;
|
|
94
|
+
/**
|
|
95
|
+
* If true, the modal will not closed when the overlay is clicked
|
|
96
|
+
*/
|
|
97
|
+
isClosePrevented?: boolean;
|
|
98
|
+
/**
|
|
99
|
+
* To position the modal container
|
|
100
|
+
*/
|
|
101
|
+
position?: Position;
|
|
102
|
+
/**
|
|
103
|
+
* Action to be handled when the button close is clicked or pressed
|
|
104
|
+
*/
|
|
105
|
+
onClose: () => void;
|
|
106
|
+
/**
|
|
107
|
+
* Other properties
|
|
108
|
+
*/
|
|
109
|
+
[x: string]: any;
|
|
110
|
+
}
|
|
111
|
+
export interface HeaderProps {
|
|
112
|
+
/**
|
|
113
|
+
* The content of the header
|
|
114
|
+
*/
|
|
115
|
+
buttonColor?: string;
|
|
116
|
+
/**
|
|
117
|
+
* To set the close button size
|
|
118
|
+
*/
|
|
119
|
+
iconSize?: Size;
|
|
120
|
+
/**
|
|
121
|
+
* The content of the header
|
|
122
|
+
*/
|
|
123
|
+
children?: React.ReactNode;
|
|
124
|
+
/**
|
|
125
|
+
* Indicates if there is a button and where to position it
|
|
126
|
+
*/
|
|
127
|
+
buttonPosition?: CloseButtonPosition;
|
|
128
|
+
/**
|
|
129
|
+
* Action to be handled when the button close is clicked or pressed
|
|
130
|
+
*/
|
|
131
|
+
onClose?: () => void;
|
|
132
|
+
/**
|
|
133
|
+
* Other properties
|
|
134
|
+
*/
|
|
135
|
+
[x: string]: any;
|
|
136
|
+
}
|
|
137
|
+
export interface ContainerProps {
|
|
138
|
+
/**
|
|
139
|
+
* The content of the modal container
|
|
140
|
+
*/
|
|
141
|
+
children: React.ReactNode;
|
|
142
|
+
/**
|
|
143
|
+
* To give a sharp or rounded edges to the modal
|
|
144
|
+
*/
|
|
145
|
+
shape?: Shape;
|
|
146
|
+
/**
|
|
147
|
+
* If true, the modal will take the full width and height
|
|
148
|
+
*/
|
|
149
|
+
isFullScreen?: boolean;
|
|
150
|
+
/**
|
|
151
|
+
* Set a shadow effect on the button.
|
|
152
|
+
*/
|
|
153
|
+
shadow?: Shadow | Elevation | CSSProperties;
|
|
154
|
+
/**
|
|
155
|
+
* Other properties
|
|
156
|
+
*/
|
|
157
|
+
[x: string]: any;
|
|
158
|
+
}
|
|
159
|
+
export interface BodyProps {
|
|
160
|
+
/**
|
|
161
|
+
* The content of the Body
|
|
162
|
+
*/
|
|
163
|
+
children?: React.ReactNode;
|
|
164
|
+
/**
|
|
165
|
+
* Other properties
|
|
166
|
+
*/
|
|
167
|
+
[x: string]: any;
|
|
168
|
+
}
|
|
169
|
+
export interface FooterProps {
|
|
170
|
+
/**
|
|
171
|
+
* The content of the Footer
|
|
172
|
+
*/
|
|
173
|
+
children?: React.ReactNode;
|
|
174
|
+
/**
|
|
175
|
+
* Other properties
|
|
176
|
+
*/
|
|
177
|
+
[x: string]: any;
|
|
178
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import { Position, Shape, Size } from './Modal.type';
|
|
3
|
+
export declare const ContainerShapes: Record<Shape, CSSProperties>;
|
|
4
|
+
export declare const OverlayAlignments: Record<Position, CSSProperties>;
|
|
5
|
+
export declare const HeaderIconSizes: Record<Size, number>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BodyProps, ContainerProps, FooterProps, HeaderProps, OverlayProps } from '../Modal/Modal.props';
|
|
3
|
+
export declare const ModalOverlay: React.FC<OverlayProps>;
|
|
4
|
+
export declare const ModalContainer: React.FC<ContainerProps>;
|
|
5
|
+
export declare const ModalHeader: React.FC<HeaderProps>;
|
|
6
|
+
export declare const ModalBody: React.FC<BodyProps>;
|
|
7
|
+
export declare const ModalFooter: React.FC<FooterProps>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from './ArrowDown';
|
|
2
|
+
export * from './ArrowUp';
|
|
3
|
+
export * from './Check';
|
|
4
|
+
export * from './Close';
|
|
5
|
+
export * from './CloseEye';
|
|
6
|
+
export * from './DustBin';
|
|
7
|
+
export * from './Edit';
|
|
8
|
+
export * from './ExternalLink';
|
|
9
|
+
export * from './Indeterminate';
|
|
10
|
+
export * from './OpenEye';
|
|
11
|
+
export * from './Profile';
|
|
12
|
+
export * from './RightArrow';
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import type { TextProps as TextAppProps } from 'app-studio';
|
|
3
|
+
import { Headings, Size, TextWeights } from './Text.type';
|
|
4
|
+
export interface TextProps extends Omit<TextAppProps, 'children' | 'style' | 'pointerEvents'>, CSSProperties {
|
|
5
|
+
/**
|
|
6
|
+
* The content of the text.
|
|
7
|
+
*/
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
/**
|
|
10
|
+
* Specifies the HTML heading tag to use.
|
|
11
|
+
*/
|
|
12
|
+
heading?: Headings;
|
|
13
|
+
/**
|
|
14
|
+
* Determines whether the text should be displayed in italic style.
|
|
15
|
+
*/
|
|
16
|
+
isItalic?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Indicates that the text is no longer valid by applying a strikethrough style.
|
|
19
|
+
*/
|
|
20
|
+
isStriked?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Adds an underline to the text.
|
|
23
|
+
*/
|
|
24
|
+
isUnderlined?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Truncates the text and adds an ellipsis at the end if it exceeds the available space.
|
|
27
|
+
*/
|
|
28
|
+
isTruncated?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Displays the text slightly below the baseline of the surrounding text.
|
|
31
|
+
*/
|
|
32
|
+
isSub?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Displays the text slightly above the surrounding text.
|
|
35
|
+
*/
|
|
36
|
+
isSup?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* The maximum number of lines to display when using text truncation.
|
|
39
|
+
*/
|
|
40
|
+
maxLines?: number;
|
|
41
|
+
/**
|
|
42
|
+
* Adjusts the size of the text. Can be a predefined size or a custom number.
|
|
43
|
+
*/
|
|
44
|
+
size?: Size;
|
|
45
|
+
/**
|
|
46
|
+
* Specifies the font weight of the text.
|
|
47
|
+
*/
|
|
48
|
+
weight?: TextWeights;
|
|
49
|
+
/**
|
|
50
|
+
* Additional properties for customization and extension.
|
|
51
|
+
*/
|
|
52
|
+
[x: string]: any;
|
|
53
|
+
}
|
|
54
|
+
export interface ContentProps {
|
|
55
|
+
/**
|
|
56
|
+
* The content to be rendered within the component.
|
|
57
|
+
*/
|
|
58
|
+
children: React.ReactNode | string;
|
|
59
|
+
/**
|
|
60
|
+
* Optional prop indicating if the content should be displayed as a subtext.
|
|
61
|
+
*/
|
|
62
|
+
isSub?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Optional prop indicating if the content should be displayed as a supertext.
|
|
65
|
+
*/
|
|
66
|
+
isSup?: boolean;
|
|
67
|
+
}
|
|
68
|
+
export interface TruncateTextProps {
|
|
69
|
+
/**
|
|
70
|
+
* The text to be truncated.
|
|
71
|
+
*/
|
|
72
|
+
text: string;
|
|
73
|
+
/**
|
|
74
|
+
* The maximum number of lines to display before truncating the text.
|
|
75
|
+
*/
|
|
76
|
+
maxLines?: number;
|
|
77
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TextProps } from './Text/Text.props';
|
|
3
|
+
/**
|
|
4
|
+
* The Text component is a simple component that renders a text string or paragraphs as a DOM element in the UI. It is a <p> tag by default.
|
|
5
|
+
*/
|
|
6
|
+
export declare const Text: React.FC<TextProps>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export * from 'src/components/Button/Button';
|
|
2
|
+
export * from 'src/components/Form/Checkbox/Checkbox';
|
|
3
|
+
export * from 'src/components/Form/CountryPicker/CountryPicker';
|
|
4
|
+
export * from 'src/components/Form/DatePicker/DatePicker';
|
|
5
|
+
export * from 'src/components/Form/Password/Password';
|
|
6
|
+
export * from 'src/components/Form/Select/Select';
|
|
7
|
+
export * from 'src/components/Form/Switch/Switch';
|
|
8
|
+
export * from 'src/components/Form/Switch/Switch';
|
|
9
|
+
export * from 'src/components/Form/TextArea/TextArea';
|
|
10
|
+
export * from 'src/components/Form/TextField/TextField';
|
|
11
|
+
export * from 'src/components/Layout/Center/Center';
|
|
12
|
+
export * from 'src/components/Layout/Horizontal/Horizontal';
|
|
13
|
+
export * from 'src/components/Layout/Vertical/Vertical';
|
|
14
|
+
export * from 'src/components/Layout/View/View';
|
|
15
|
+
export * from 'src/components/Link/Link';
|
|
16
|
+
export * from 'src/components/Loader/Loader';
|
|
17
|
+
export * from 'src/components/Modal/Modal';
|
|
18
|
+
export * from 'src/components/Text/Text';
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
4
|
+
|
|
5
|
+
var React = _interopDefault(require('react'));
|
|
6
|
+
var ReactDOM = _interopDefault(require('react-dom/client'));
|
|
7
|
+
var Wrapper = _interopDefault(require('src/components/Wrapper'));
|
|
8
|
+
require('core-js/modules/es6.array.map.js');
|
|
9
|
+
var reactRouterDom = require('react-router-dom');
|
|
10
|
+
var routes = require('src/routes/routes');
|
|
11
|
+
|
|
12
|
+
var App = function App() {
|
|
13
|
+
var location = reactRouterDom.useLocation();
|
|
14
|
+
return /*#__PURE__*/React.createElement(reactRouterDom.Routes, {
|
|
15
|
+
location: location
|
|
16
|
+
}, routes.ComponentRouter.map(function (item, index) {
|
|
17
|
+
return /*#__PURE__*/React.createElement(reactRouterDom.Route, {
|
|
18
|
+
key: index,
|
|
19
|
+
path: item.path,
|
|
20
|
+
element: item.element
|
|
21
|
+
});
|
|
22
|
+
}));
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
var root = /*#__PURE__*/ReactDOM.createRoot( /*#__PURE__*/document.getElementById('root'));
|
|
26
|
+
root.render( /*#__PURE__*/React.createElement(React.StrictMode, null, /*#__PURE__*/React.createElement(Wrapper, null, /*#__PURE__*/React.createElement(App, null))));
|
|
27
|
+
//# sourceMappingURL=web.cjs.development.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"web.cjs.development.js","sources":["../src/App.tsx","../src/index.tsx"],"sourcesContent":["import React from 'react';\nimport { Route, Routes, useLocation } from 'react-router-dom';\nimport { ComponentRouter } from 'src/routes/routes';\n\nexport const App: React.FC = () => {\n const location = useLocation();\n return (\n <Routes location={location}>\n {ComponentRouter.map((item, index) => (\n <Route key={index} path={item.path} element={item.element} />\n ))}\n </Routes>\n );\n};\n\nexport default App;\n","import React from 'react';\nimport ReactDOM from 'react-dom/client';\nimport Wrapper from 'src/components/Wrapper';\n\nimport { App } from './App';\n\nconst root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement);\nroot.render(\n <React.StrictMode>\n <Wrapper>\n <App />\n </Wrapper>\n </React.StrictMode>\n);\n"],"names":["App","location","useLocation","React","Routes","ComponentRouter","map","item","index","Route","key","path","element","root","ReactDOM","createRoot","document","getElementById","render","StrictMode","Wrapper"],"mappings":";;;;;;;;;;;AAIO,IAAMA,GAAG,GAAa,SAAhBA,GAAGA;EACd,IAAMC,QAAQ,GAAGC,0BAAW,EAAE;EAC9B,oBACEC,oBAACC,qBAAM;IAACH,QAAQ,EAAEA;KACfI,sBAAe,CAACC,GAAG,CAAC,UAACC,IAAI,EAAEC,KAAK;IAAA,oBAC/BL,oBAACM,oBAAK;MAACC,GAAG,EAAEF,KAAK;MAAEG,IAAI,EAAEJ,IAAI,CAACI,IAAI;MAAEC,OAAO,EAAEL,IAAI,CAACK;MAAW;GAC9D,CAAC,CACK;AAEb,CAAC;;ACPD,IAAMC,IAAI,gBAAGC,QAAQ,CAACC,UAAU,eAACC,QAAQ,CAACC,cAAc,CAAC,MAAM,CAAgB,CAAC;AAChFJ,IAAI,CAACK,MAAM,eACTf,oBAACA,KAAK,CAACgB,UAAU,qBACfhB,oBAACiB,OAAO,qBACNjB,oBAACH,GAAG,OAAG,CACC,CACO,CACpB"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var t=e(require("react")),r=e(require("react-dom/client")),n=e(require("src/components/Wrapper"));require("core-js/modules/es6.array.map.js");var o=require("react-router-dom"),u=require("src/routes/routes"),a=function(){var e=o.useLocation();return t.createElement(o.Routes,{location:e},u.ComponentRouter.map((function(e,r){return t.createElement(o.Route,{key:r,path:e.path,element:e.element})})))};r.createRoot(document.getElementById("root")).render(t.createElement(t.StrictMode,null,t.createElement(n,null,t.createElement(a,null))));
|
|
2
|
+
//# sourceMappingURL=web.cjs.production.min.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"web.cjs.production.min.js","sources":["../src/App.tsx","../src/index.tsx"],"sourcesContent":["import React from 'react';\nimport { Route, Routes, useLocation } from 'react-router-dom';\nimport { ComponentRouter } from 'src/routes/routes';\n\nexport const App: React.FC = () => {\n const location = useLocation();\n return (\n <Routes location={location}>\n {ComponentRouter.map((item, index) => (\n <Route key={index} path={item.path} element={item.element} />\n ))}\n </Routes>\n );\n};\n\nexport default App;\n","import React from 'react';\nimport ReactDOM from 'react-dom/client';\nimport Wrapper from 'src/components/Wrapper';\n\nimport { App } from './App';\n\nconst root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement);\nroot.render(\n <React.StrictMode>\n <Wrapper>\n <App />\n </Wrapper>\n </React.StrictMode>\n);\n"],"names":["App","location","useLocation","React","Routes","ComponentRouter","map","item","index","Route","key","path","element","ReactDOM","createRoot","document","getElementById","render","StrictMode","Wrapper"],"mappings":"kSAIaA,EAAgB,WAC3B,IAAMC,EAAWC,gBACjB,OACEC,gBAACC,UAAOH,SAAUA,GACfI,kBAAgBC,KAAI,SAACC,EAAMC,GAAK,OAC/BL,gBAACM,SAAMC,IAAKF,EAAOG,KAAMJ,EAAKI,KAAMC,QAASL,EAAKK,eCH7CC,EAASC,WAAWC,SAASC,eAAe,SACpDC,OACHd,gBAACA,EAAMe,gBACLf,gBAACgB,OACChB,gBAACH"}
|
package/dist/web.esm.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import ReactDOM from 'react-dom/client';
|
|
3
|
+
import Wrapper from 'src/components/Wrapper';
|
|
4
|
+
import 'core-js/modules/es6.array.map.js';
|
|
5
|
+
import { useLocation, Routes, Route } from 'react-router-dom';
|
|
6
|
+
import { ComponentRouter } from 'src/routes/routes';
|
|
7
|
+
|
|
8
|
+
var App = function App() {
|
|
9
|
+
var location = useLocation();
|
|
10
|
+
return /*#__PURE__*/React.createElement(Routes, {
|
|
11
|
+
location: location
|
|
12
|
+
}, ComponentRouter.map(function (item, index) {
|
|
13
|
+
return /*#__PURE__*/React.createElement(Route, {
|
|
14
|
+
key: index,
|
|
15
|
+
path: item.path,
|
|
16
|
+
element: item.element
|
|
17
|
+
});
|
|
18
|
+
}));
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
var root = /*#__PURE__*/ReactDOM.createRoot( /*#__PURE__*/document.getElementById('root'));
|
|
22
|
+
root.render( /*#__PURE__*/React.createElement(React.StrictMode, null, /*#__PURE__*/React.createElement(Wrapper, null, /*#__PURE__*/React.createElement(App, null))));
|
|
23
|
+
//# sourceMappingURL=web.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"web.esm.js","sources":["../src/App.tsx","../src/index.tsx"],"sourcesContent":["import React from 'react';\nimport { Route, Routes, useLocation } from 'react-router-dom';\nimport { ComponentRouter } from 'src/routes/routes';\n\nexport const App: React.FC = () => {\n const location = useLocation();\n return (\n <Routes location={location}>\n {ComponentRouter.map((item, index) => (\n <Route key={index} path={item.path} element={item.element} />\n ))}\n </Routes>\n );\n};\n\nexport default App;\n","import React from 'react';\nimport ReactDOM from 'react-dom/client';\nimport Wrapper from 'src/components/Wrapper';\n\nimport { App } from './App';\n\nconst root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement);\nroot.render(\n <React.StrictMode>\n <Wrapper>\n <App />\n </Wrapper>\n </React.StrictMode>\n);\n"],"names":["App","location","useLocation","React","Routes","ComponentRouter","map","item","index","Route","key","path","element","root","ReactDOM","createRoot","document","getElementById","render","StrictMode","Wrapper"],"mappings":";;;;;;;AAIO,IAAMA,GAAG,GAAa,SAAhBA,GAAGA;EACd,IAAMC,QAAQ,GAAGC,WAAW,EAAE;EAC9B,oBACEC,oBAACC,MAAM;IAACH,QAAQ,EAAEA;KACfI,eAAe,CAACC,GAAG,CAAC,UAACC,IAAI,EAAEC,KAAK;IAAA,oBAC/BL,oBAACM,KAAK;MAACC,GAAG,EAAEF,KAAK;MAAEG,IAAI,EAAEJ,IAAI,CAACI,IAAI;MAAEC,OAAO,EAAEL,IAAI,CAACK;MAAW;GAC9D,CAAC,CACK;AAEb,CAAC;;ACPD,IAAMC,IAAI,gBAAGC,QAAQ,CAACC,UAAU,eAACC,QAAQ,CAACC,cAAc,CAAC,MAAM,CAAgB,CAAC;AAChFJ,IAAI,CAACK,MAAM,eACTf,oBAACA,KAAK,CAACgB,UAAU,qBACfhB,oBAACiB,OAAO,qBACNjB,oBAACH,GAAG,OAAG,CACC,CACO,CACpB"}
|