linear-react-components-ui 1.1.26-beta.9 → 1.1.27-rc.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/lib/@types/Align.d.ts +4 -2
- package/lib/@types/Align.js +5 -0
- package/lib/@types/ButtonTypes.d.ts +3 -1
- package/lib/@types/ButtonTypes.js +5 -0
- package/lib/@types/ColorStyles.d.ts +4 -1
- package/lib/@types/ColorStyles.js +5 -0
- package/lib/@types/DataCombo.d.ts +3 -1
- package/lib/@types/DataCombo.js +5 -0
- package/lib/@types/Icon.d.ts +5 -2
- package/lib/@types/Icon.js +5 -0
- package/lib/@types/LabelStyles.d.ts +3 -1
- package/lib/@types/LabelStyles.js +5 -0
- package/lib/@types/Period.d.ts +3 -1
- package/lib/@types/Period.js +5 -0
- package/lib/@types/PermissionAttr.d.ts +4 -2
- package/lib/@types/PermissionAttr.js +5 -0
- package/lib/@types/PointerEvents.d.ts +3 -1
- package/lib/@types/PointerEvents.js +5 -0
- package/lib/@types/Position.d.ts +4 -1
- package/lib/@types/Position.js +5 -0
- package/lib/@types/PositionAlert.d.ts +3 -1
- package/lib/@types/PositionAlert.js +5 -0
- package/lib/@types/Size.d.ts +3 -1
- package/lib/@types/Size.js +5 -0
- package/lib/@types/SizePixels.d.ts +3 -1
- package/lib/@types/SizePixels.js +5 -0
- package/lib/@types/StorageMock.d.ts +3 -1
- package/lib/@types/StorageMock.js +5 -0
- package/lib/BaseMask-78847f45.d.ts +24 -0
- package/lib/Cnpj-8366781f.d.ts +18 -0
- package/lib/Cpf-3dfd54eb.d.ts +18 -0
- package/lib/Phone-1962c0f2.d.ts +18 -0
- package/lib/ZipCode-be9c5b3b.d.ts +13 -0
- package/lib/alerts/AlertContainer.d.ts +8 -2
- package/lib/alerts/AlertContainer.js +70 -60
- package/lib/alerts/AlertProvider.d.ts +9 -3
- package/lib/alerts/AlertProvider.js +63 -37
- package/lib/alerts/BaseAlert.d.ts +9 -3
- package/lib/alerts/BaseAlert.js +31 -17
- package/lib/alerts/Message.d.ts +9 -3
- package/lib/alerts/Message.js +111 -92
- package/lib/alerts/helpers.d.ts +9 -3
- package/lib/alerts/helpers.js +9 -5
- package/lib/alerts/index.d.ts +11 -4
- package/lib/alerts/index.js +16 -6
- package/lib/alerts/types.d.ts +14 -10
- package/lib/alerts/types.js +5 -0
- package/lib/alerts/withAlert.d.ts +9 -4
- package/lib/alerts/withAlert.js +22 -13
- package/lib/assets/fonts/Roboto-Black.woff +0 -0
- package/lib/assets/fonts/Roboto-Black.woff2 +0 -0
- package/lib/assets/fonts/Roboto-Bold.woff +0 -0
- package/lib/assets/fonts/Roboto-Bold.woff2 +0 -0
- package/lib/assets/fonts/Roboto-Light.woff +0 -0
- package/lib/assets/fonts/Roboto-Light.woff2 +0 -0
- package/lib/assets/fonts/Roboto-Medium.woff +0 -0
- package/lib/assets/fonts/Roboto-Medium.woff2 +0 -0
- package/lib/assets/fonts/Roboto-Regular.woff +0 -0
- package/lib/assets/fonts/Roboto-Regular.woff2 +0 -0
- package/lib/assets/fonts/Roboto-Thin.woff +0 -0
- package/lib/assets/fonts/Roboto-Thin.woff2 +0 -0
- package/lib/assets/fonts/TitilliumWeb-Black.woff +0 -0
- package/lib/assets/fonts/TitilliumWeb-Black.woff2 +0 -0
- package/lib/assets/fonts/TitilliumWeb-Bold.woff +0 -0
- package/lib/assets/fonts/TitilliumWeb-Bold.woff2 +0 -0
- package/lib/assets/fonts/TitilliumWeb-ExtraLight.woff +0 -0
- package/lib/assets/fonts/TitilliumWeb-ExtraLight.woff2 +0 -0
- package/lib/assets/fonts/TitilliumWeb-Light.woff +0 -0
- package/lib/assets/fonts/TitilliumWeb-Light.woff2 +0 -0
- package/lib/assets/fonts/TitilliumWeb-Regular.woff +0 -0
- package/lib/assets/fonts/TitilliumWeb-Regular.woff2 +0 -0
- package/lib/assets/fonts/TitilliumWeb-SemiBold.woff +0 -0
- package/lib/assets/fonts/TitilliumWeb-SemiBold.woff2 +0 -0
- package/lib/assets/images/logo.png +0 -0
- package/lib/assets/styles/alerts.scss +149 -0
- package/lib/assets/styles/avatar.scss +42 -0
- package/lib/assets/styles/badge.scss +48 -0
- package/lib/assets/styles/button.scss +373 -0
- package/lib/assets/styles/calendar.scss +311 -0
- package/lib/assets/styles/checkbox.scss +108 -0
- package/lib/assets/styles/checkbox2.scss +199 -0
- package/lib/assets/styles/colorpicker.scss +12 -0
- package/lib/assets/styles/colors.scss +180 -0
- package/lib/assets/styles/commons.scss +138 -0
- package/lib/assets/styles/datepicker.scss +36 -0
- package/lib/assets/styles/datepicker2.scss +336 -0
- package/lib/assets/styles/dialog.scss +200 -0
- package/lib/assets/styles/drawers.scss +158 -0
- package/lib/assets/styles/dropdown.scss +179 -0
- package/lib/assets/styles/effects.scss +821 -0
- package/lib/assets/styles/error.scss +9 -0
- package/lib/assets/styles/fieldset.scss +96 -0
- package/lib/assets/styles/file.scss +229 -0
- package/lib/assets/styles/filefield.scss +42 -0
- package/lib/assets/styles/floatMenu.scss +15 -0
- package/lib/assets/styles/fonts.scss +86 -0
- package/lib/assets/styles/form.scss +23 -0
- package/lib/assets/styles/gridlayout.scss +2055 -0
- package/lib/assets/styles/hint.scss +30 -0
- package/lib/assets/styles/icon.scss +42 -0
- package/lib/assets/styles/input.scss +156 -0
- package/lib/assets/styles/label.scss +118 -0
- package/lib/assets/styles/labelMessages.scss +81 -0
- package/lib/assets/styles/list.scss +124 -0
- package/lib/assets/styles/multiSelect.scss +125 -0
- package/lib/assets/styles/noPermission.scss +25 -0
- package/lib/assets/styles/numberfield.scss +18 -0
- package/lib/assets/styles/numbers.scss +5 -0
- package/lib/assets/styles/panel.scss +95 -0
- package/lib/assets/styles/periodpicker.scss +109 -0
- package/lib/assets/styles/popover.scss +44 -0
- package/lib/assets/styles/progress.scss +72 -0
- package/lib/assets/styles/radio.scss +156 -0
- package/lib/assets/styles/radiofield.scss +185 -0
- package/lib/assets/styles/search.scss +13 -0
- package/lib/assets/styles/select.scss +159 -0
- package/lib/assets/styles/selectfield.scss +411 -0
- package/lib/assets/styles/shortcuts.scss +59 -0
- package/lib/assets/styles/sidenav.scss +409 -0
- package/lib/assets/styles/skeleton.scss +48 -0
- package/lib/assets/styles/slot.scss +34 -0
- package/lib/assets/styles/spinner.scss +34 -0
- package/lib/assets/styles/split.scss +80 -0
- package/lib/assets/styles/table.scss +185 -0
- package/lib/assets/styles/tabs.scss +308 -0
- package/lib/assets/styles/textContent.scss +9 -0
- package/lib/assets/styles/textfield.scss +186 -0
- package/lib/assets/styles/toolbar.scss +74 -0
- package/lib/assets/styles/tooltip.scss +96 -0
- package/lib/assets/styles/treetable.scss +100 -0
- package/lib/assets/styles/treeview.scss +112 -0
- package/lib/assets/styles/uitour.scss +112 -0
- package/lib/assets/styles/wizard.scss +186 -0
- package/lib/avatar/index.d.ts +9 -3
- package/lib/avatar/index.js +87 -53
- package/lib/avatar/types.d.ts +8 -4
- package/lib/avatar/types.js +5 -0
- package/lib/badge/index.d.ts +6 -3
- package/lib/badge/index.js +29 -27
- package/lib/badge/types.d.ts +4 -1
- package/lib/badge/types.js +5 -0
- package/lib/buttons/ActivateButton.d.ts +12 -3
- package/lib/buttons/ActivateButton.js +14 -11
- package/lib/buttons/AddButton.d.ts +12 -3
- package/lib/buttons/AddButton.js +18 -14
- package/lib/buttons/Button.d.ts +12 -3
- package/lib/buttons/Button.js +21 -18
- package/lib/buttons/ButtonGroups.d.ts +4 -2
- package/lib/buttons/ButtonGroups.js +16 -11
- package/lib/buttons/CancelButton.d.ts +12 -3
- package/lib/buttons/CancelButton.js +22 -15
- package/lib/buttons/DangerButton.d.ts +12 -3
- package/lib/buttons/DangerButton.js +22 -16
- package/lib/buttons/DefaultButton.d.ts +12 -3
- package/lib/buttons/DefaultButton.js +180 -91
- package/lib/buttons/DestroyButton.d.ts +12 -3
- package/lib/buttons/DestroyButton.js +21 -22
- package/lib/buttons/EditButton.d.ts +12 -3
- package/lib/buttons/EditButton.js +14 -11
- package/lib/buttons/InactivateButton.d.ts +12 -3
- package/lib/buttons/InactivateButton.js +14 -11
- package/lib/buttons/InfoButton.d.ts +12 -3
- package/lib/buttons/InfoButton.js +22 -16
- package/lib/buttons/PrimaryButton.d.ts +12 -3
- package/lib/buttons/PrimaryButton.js +22 -16
- package/lib/buttons/RestoreButton.d.ts +12 -3
- package/lib/buttons/RestoreButton.js +14 -11
- package/lib/buttons/SaveButton.d.ts +12 -3
- package/lib/buttons/SaveButton.js +22 -15
- package/lib/buttons/SuccessButton.d.ts +12 -3
- package/lib/buttons/SuccessButton.js +22 -16
- package/lib/buttons/WarningButton.d.ts +12 -3
- package/lib/buttons/WarningButton.js +22 -16
- package/lib/buttons/button_container/index.d.ts +6 -4
- package/lib/buttons/button_container/index.js +29 -22
- package/lib/buttons/index.d.ts +27 -17
- package/lib/buttons/index.js +108 -33
- package/lib/buttons/split_button/index.d.ts +12 -3
- package/lib/buttons/split_button/index.js +62 -57
- package/lib/buttons/types.d.ts +16 -12
- package/lib/buttons/types.js +5 -0
- package/lib/calendar/DangerCalendar.d.ts +8 -3
- package/lib/calendar/DangerCalendar.js +17 -19
- package/lib/calendar/InfoCalendar.d.ts +8 -3
- package/lib/calendar/InfoCalendar.js +17 -19
- package/lib/calendar/PrimaryCalendar.d.ts +8 -3
- package/lib/calendar/PrimaryCalendar.js +17 -19
- package/lib/calendar/SuccessCalendar.d.ts +8 -3
- package/lib/calendar/SuccessCalendar.js +17 -19
- package/lib/calendar/WarningCalendar.d.ts +8 -3
- package/lib/calendar/WarningCalendar.js +17 -19
- package/lib/calendar/base/helpers.d.ts +18 -15
- package/lib/calendar/base/helpers.js +96 -79
- package/lib/calendar/base/index.d.ts +8 -3
- package/lib/calendar/base/index.js +204 -135
- package/lib/calendar/index.d.ts +14 -8
- package/lib/calendar/index.js +44 -14
- package/lib/calendar/types.d.ts +8 -5
- package/lib/calendar/types.js +5 -0
- package/lib/checkbox/index.d.ts +8 -4
- package/lib/checkbox/index.js +146 -32
- package/lib/checkbox/types.d.ts +8 -5
- package/lib/checkbox/types.js +5 -0
- package/lib/dialog/Alert.d.ts +9 -3
- package/lib/dialog/Alert.js +31 -23
- package/lib/dialog/Custom.d.ts +9 -3
- package/lib/dialog/Custom.js +53 -45
- package/lib/dialog/Error.d.ts +9 -3
- package/lib/dialog/Error.js +31 -23
- package/lib/dialog/Information.d.ts +9 -3
- package/lib/dialog/Information.js +31 -23
- package/lib/dialog/Question.d.ts +9 -3
- package/lib/dialog/Question.js +62 -46
- package/lib/dialog/Warning.d.ts +9 -3
- package/lib/dialog/Warning.js +31 -23
- package/lib/dialog/base/Content.d.ts +9 -3
- package/lib/dialog/base/Content.js +21 -14
- package/lib/dialog/base/Footer.d.ts +9 -3
- package/lib/dialog/base/Footer.js +12 -10
- package/lib/dialog/base/Header.d.ts +9 -3
- package/lib/dialog/base/Header.js +56 -7
- package/lib/dialog/base/index.d.ts +10 -5
- package/lib/dialog/base/index.js +202 -9
- package/lib/dialog/base/style.js +13 -0
- package/lib/dialog/form/index.d.ts +10 -5
- package/lib/dialog/form/index.js +126 -15
- package/lib/dialog/index.d.ts +16 -9
- package/lib/dialog/index.js +51 -16
- package/lib/dialog/types.d.ts +25 -16
- package/lib/dialog/types.js +5 -0
- package/lib/dialog/wizard/index.d.ts +13 -9
- package/lib/dialog/wizard/index.js +79 -15
- package/lib/dialog/wizard/progressbar.d.ts +5 -2
- package/lib/dialog/wizard/progressbar.js +37 -97
- package/lib/dialog/wizard/step.d.ts +9 -2
- package/lib/dialog/wizard/step.js +22 -6
- package/lib/dialog/wizard/useWizard.d.ts +9 -2
- package/lib/dialog/wizard/useWizard.js +46 -44
- package/lib/drawer/Content.d.ts +10 -3
- package/lib/drawer/Content.js +24 -17
- package/lib/drawer/Drawer.d.ts +10 -4
- package/lib/drawer/Drawer.js +140 -71
- package/lib/drawer/Header.d.ts +10 -3
- package/lib/drawer/Header.js +73 -54
- package/lib/drawer/helpers.d.ts +10 -4
- package/lib/drawer/helpers.js +10 -5
- package/lib/drawer/index.d.ts +12 -5
- package/lib/drawer/index.js +25 -10
- package/lib/drawer/types.d.ts +12 -7
- package/lib/drawer/types.js +5 -0
- package/lib/dropdown/Popup.d.ts +6 -3
- package/lib/dropdown/Popup.js +86 -47
- package/lib/dropdown/helper.d.ts +4 -2
- package/lib/dropdown/helper.js +15 -7
- package/lib/dropdown/types.d.ts +10 -7
- package/lib/dropdown/types.js +5 -0
- package/lib/dropdown/withDropdown.d.ts +8 -7
- package/lib/dropdown/withDropdown.js +89 -77
- package/lib/fieldset/index.d.ts +8 -3
- package/lib/fieldset/index.js +80 -68
- package/lib/fieldset/types.d.ts +8 -5
- package/lib/fieldset/types.js +5 -0
- package/lib/form/Field.d.ts +14 -2
- package/lib/form/Field.js +126 -90
- package/lib/form/FieldArray.d.ts +14 -2
- package/lib/form/FieldArray.js +94 -61
- package/lib/form/FieldNumber.d.ts +14 -2
- package/lib/form/FieldNumber.js +75 -47
- package/lib/form/FieldPeriod.d.ts +14 -2
- package/lib/form/FieldPeriod.js +97 -92
- package/lib/form/helpers.d.ts +19 -8
- package/lib/form/helpers.js +47 -25
- package/lib/form/index.d.ts +18 -8
- package/lib/form/index.js +297 -140
- package/lib/form/types.d.ts +45 -23
- package/lib/form/types.js +5 -0
- package/lib/form/withFieldHOC.d.ts +14 -4
- package/lib/form/withFieldHOC.js +69 -59
- package/lib/form/withFormSecurity.d.ts +15 -6
- package/lib/form/withFormSecurity.js +52 -28
- package/lib/form2/helpers.d.ts +8 -0
- package/lib/form2/helpers.js +41 -0
- package/lib/form2/index.d.ts +9 -0
- package/lib/form2/index.js +36 -0
- package/lib/form2/types.d.ts +129 -0
- package/lib/form2/types.js +5 -0
- package/lib/form2/useForm/index.d.ts +5 -0
- package/lib/form2/useForm/index.js +210 -0
- package/lib/gridlayout/GridCol.d.ts +6 -3
- package/lib/gridlayout/GridCol.js +32 -25
- package/lib/gridlayout/GridRow.d.ts +6 -3
- package/lib/gridlayout/GridRow.js +30 -25
- package/lib/gridlayout/index.d.ts +8 -4
- package/lib/gridlayout/index.js +16 -6
- package/lib/gridlayout/types.d.ts +6 -3
- package/lib/gridlayout/types.js +5 -0
- package/lib/hint/helpers.d.ts +3 -1
- package/lib/hint/helpers.js +21 -12
- package/lib/hint/index.d.ts +7 -3
- package/lib/hint/index.js +29 -29
- package/lib/hint/types.d.ts +5 -2
- package/lib/hint/types.js +5 -0
- package/lib/icons/helper.d.ts +34 -1
- package/lib/icons/helper.js +356 -321
- package/lib/icons/index.d.ts +13 -6
- package/lib/icons/index.js +77 -65
- package/lib/icons/types.d.ts +13 -13
- package/lib/icons/types.js +5 -0
- package/lib/index-02a27c19.d.ts +26 -0
- package/lib/index-053f615b.d.ts +26 -0
- package/lib/index-25b80f32.d.ts +22 -0
- package/lib/index-368f781f.d.ts +15 -0
- package/lib/index-696662fe.d.ts +15 -0
- package/lib/index-6f5c772d.d.ts +23 -0
- package/lib/index-6fcf446c.d.ts +26 -0
- package/lib/index-7159df18.d.ts +21 -0
- package/lib/index-c9247c1f.d.ts +15 -0
- package/lib/index-ecafc8c6.d.ts +30 -0
- package/lib/index.d.ts +40 -10
- package/lib/index.js +69 -28
- package/lib/inputs/base/InputTextBase.d.ts +11 -3
- package/lib/inputs/base/InputTextBase.js +267 -172
- package/lib/inputs/base/helpers.d.ts +16 -9
- package/lib/inputs/base/helpers.js +39 -27
- package/lib/inputs/base/types.d.ts +14 -20
- package/lib/inputs/base/types.js +5 -0
- package/lib/inputs/color/index.d.ts +7 -3
- package/lib/inputs/color/index.js +89 -52
- package/lib/inputs/color/types.d.ts +6 -3
- package/lib/inputs/color/types.js +5 -0
- package/lib/inputs/date/Dialog.d.ts +13 -3
- package/lib/inputs/date/Dialog.js +25 -16
- package/lib/inputs/date/Dropdown.d.ts +13 -3
- package/lib/inputs/date/Dropdown.js +38 -17
- package/lib/inputs/date/helpers.d.ts +34 -2
- package/lib/inputs/date/helpers.js +47 -9
- package/lib/inputs/date/index.d.ts +13 -3
- package/lib/inputs/date/index.js +284 -120
- package/lib/inputs/date/types.d.ts +15 -7
- package/lib/inputs/date/types.js +5 -0
- package/lib/inputs/errorMessage/index.d.ts +16 -4
- package/lib/inputs/errorMessage/index.js +24 -23
- package/lib/inputs/file/DefaultFile.d.ts +13 -3
- package/lib/inputs/file/DefaultFile.js +79 -67
- package/lib/inputs/file/DragDropFile.d.ts +13 -3
- package/lib/inputs/file/DragDropFile.js +266 -128
- package/lib/inputs/file/File.d.ts +13 -3
- package/lib/inputs/file/File.js +62 -29
- package/lib/inputs/file/FileButtonSettings.d.ts +13 -3
- package/lib/inputs/file/FileButtonSettings.js +32 -23
- package/lib/inputs/file/helpers.d.ts +13 -2
- package/lib/inputs/file/helpers.js +19 -9
- package/lib/inputs/file/index.d.ts +16 -5
- package/lib/inputs/file/index.js +23 -8
- package/lib/inputs/file/types.d.ts +16 -8
- package/lib/inputs/file/types.js +5 -0
- package/lib/inputs/inputHOC.d.ts +16 -4
- package/lib/inputs/inputHOC.js +42 -41
- package/lib/inputs/mask/BaseMask.d.ts +12 -3
- package/lib/inputs/mask/BaseMask.js +148 -2649
- package/lib/inputs/mask/Cnpj.d.ts +12 -3
- package/lib/inputs/mask/Cnpj.js +57 -44
- package/lib/inputs/mask/Cpf.d.ts +12 -3
- package/lib/inputs/mask/Cpf.js +55 -47
- package/lib/inputs/mask/Phone.d.ts +12 -3
- package/lib/inputs/mask/Phone.js +18 -12
- package/lib/inputs/mask/ZipCode.d.ts +12 -3
- package/lib/inputs/mask/ZipCode.js +14 -11
- package/lib/inputs/mask/helpers.d.ts +15 -52
- package/lib/inputs/mask/helpers.js +118 -62
- package/lib/inputs/mask/index.d.ts +17 -7
- package/lib/inputs/mask/index.js +37 -12
- package/lib/inputs/mask/types.d.ts +17 -10
- package/lib/inputs/mask/types.js +5 -0
- package/lib/inputs/multiSelect/ActionButtons.d.ts +13 -3
- package/lib/inputs/multiSelect/ActionButtons.js +49 -38
- package/lib/inputs/multiSelect/Dropdown.d.ts +13 -3
- package/lib/inputs/multiSelect/Dropdown.js +134 -95
- package/lib/inputs/multiSelect/helper.d.ts +12 -2
- package/lib/inputs/multiSelect/helper.js +20 -7
- package/lib/inputs/multiSelect/index.d.ts +13 -3
- package/lib/inputs/multiSelect/index.js +231 -174
- package/lib/inputs/multiSelect/types.d.ts +18 -8
- package/lib/inputs/multiSelect/types.js +5 -0
- package/lib/inputs/number/BaseNumber.d.ts +17 -3
- package/lib/inputs/number/BaseNumber.js +66 -47
- package/lib/inputs/number/Currency.d.ts +17 -3
- package/lib/inputs/number/Currency.js +27 -20
- package/lib/inputs/number/Decimal.d.ts +17 -3
- package/lib/inputs/number/Decimal.js +11 -11
- package/lib/inputs/number/format_number.d.ts +5 -3
- package/lib/inputs/number/format_number.js +28 -8
- package/lib/inputs/number/index.d.ts +19 -6
- package/lib/inputs/number/index.js +63 -33
- package/lib/inputs/number/types.d.ts +21 -10
- package/lib/inputs/number/types.js +5 -0
- package/lib/inputs/period/Dialog.d.ts +14 -3
- package/lib/inputs/period/Dialog.js +26 -17
- package/lib/inputs/period/Dropdown.d.ts +14 -3
- package/lib/inputs/period/Dropdown.js +37 -16
- package/lib/inputs/period/PeriodList.d.ts +14 -3
- package/lib/inputs/period/PeriodList.js +45 -36
- package/lib/inputs/period/helper.d.ts +16 -5
- package/lib/inputs/period/helper.js +55 -30
- package/lib/inputs/period/index.d.ts +14 -3
- package/lib/inputs/period/index.js +529 -198
- package/lib/inputs/period/types.d.ts +22 -13
- package/lib/inputs/period/types.js +5 -0
- package/lib/inputs/search/index.d.ts +16 -3
- package/lib/inputs/search/index.js +125 -97
- package/lib/inputs/select/ActionButtons.d.ts +16 -3
- package/lib/inputs/select/ActionButtons.js +38 -27
- package/lib/inputs/select/Dropdown.d.ts +16 -3
- package/lib/inputs/select/Dropdown.js +111 -68
- package/lib/inputs/select/helper.d.ts +21 -7
- package/lib/inputs/select/helper.js +109 -46
- package/lib/inputs/select/index.d.ts +13 -3
- package/lib/inputs/select/index.js +40 -25
- package/lib/inputs/select/multiple/Selecteds.d.ts +13 -3
- package/lib/inputs/select/multiple/Selecteds.js +26 -24
- package/lib/inputs/select/multiple/index.d.ts +13 -3
- package/lib/inputs/select/multiple/index.js +279 -116
- package/lib/inputs/select/simple/index.d.ts +13 -3
- package/lib/inputs/select/simple/index.js +297 -135
- package/lib/inputs/select/types.d.ts +22 -14
- package/lib/inputs/select/types.js +5 -0
- package/lib/inputs/text/index.d.ts +12 -3
- package/lib/inputs/text/index.js +13 -11
- package/lib/inputs/text/types.d.ts +11 -8
- package/lib/inputs/text/types.js +5 -0
- package/lib/inputs/textarea/index.d.ts +12 -3
- package/lib/inputs/textarea/index.js +24 -15
- package/lib/inputs/textarea/types.d.ts +11 -2
- package/lib/inputs/textarea/types.js +5 -0
- package/lib/inputs/types.d.ts +25 -17
- package/lib/inputs/types.js +5 -0
- package/lib/inputs2/checkboxfield/base.d.ts +29 -0
- package/lib/inputs2/checkboxfield/base.js +134 -0
- package/lib/inputs2/checkboxfield/index.d.ts +8 -0
- package/lib/inputs2/checkboxfield/index.js +57 -0
- package/lib/inputs2/colorfield/index.d.ts +10 -0
- package/lib/inputs2/colorfield/index.js +119 -0
- package/lib/inputs2/date/base/constants.d.ts +7 -0
- package/lib/inputs2/date/base/constants.js +44 -0
- package/lib/inputs2/date/base/index.d.ts +12 -0
- package/lib/inputs2/date/base/index.js +177 -0
- package/lib/inputs2/date/datefield/base.d.ts +13 -0
- package/lib/inputs2/date/datefield/base.js +330 -0
- package/lib/inputs2/date/datefield/calendarbox.d.ts +7 -0
- package/lib/inputs2/date/datefield/calendarbox.js +116 -0
- package/lib/inputs2/date/datefield/context.d.ts +14 -0
- package/lib/inputs2/date/datefield/context.js +15 -0
- package/lib/inputs2/date/datefield/index.d.ts +10 -0
- package/lib/inputs2/date/datefield/index.js +57 -0
- package/lib/inputs2/date/datefield/triggers.d.ts +8 -0
- package/lib/inputs2/date/datefield/triggers.js +46 -0
- package/lib/inputs2/date/datefield/types.d.ts +65 -0
- package/lib/inputs2/date/datefield/types.js +5 -0
- package/lib/inputs2/date/dateperiodfield/base.d.ts +13 -0
- package/lib/inputs2/date/dateperiodfield/base.js +595 -0
- package/lib/inputs2/date/dateperiodfield/calendarbox.d.ts +7 -0
- package/lib/inputs2/date/dateperiodfield/calendarbox.js +138 -0
- package/lib/inputs2/date/dateperiodfield/context.d.ts +14 -0
- package/lib/inputs2/date/dateperiodfield/context.js +17 -0
- package/lib/inputs2/date/dateperiodfield/index.d.ts +10 -0
- package/lib/inputs2/date/dateperiodfield/index.js +57 -0
- package/lib/inputs2/date/dateperiodfield/triggers.d.ts +6 -0
- package/lib/inputs2/date/dateperiodfield/triggers.js +125 -0
- package/lib/inputs2/date/dateperiodfield/types.d.ts +103 -0
- package/lib/inputs2/date/dateperiodfield/types.js +19 -0
- package/lib/inputs2/date/helpers.d.ts +21 -0
- package/lib/inputs2/date/helpers.js +62 -0
- package/lib/inputs2/date/types.d.ts +60 -0
- package/lib/inputs2/date/types.js +19 -0
- package/lib/inputs2/filefield/index.d.ts +10 -0
- package/lib/inputs2/filefield/index.js +174 -0
- package/lib/inputs2/index.d.ts +38 -0
- package/lib/inputs2/index.js +37 -0
- package/lib/inputs2/mask/BaseMask.d.ts +11 -0
- package/lib/inputs2/mask/BaseMask.js +95 -0
- package/lib/inputs2/mask/Cnpj.d.ts +12 -0
- package/lib/inputs2/mask/Cnpj.js +56 -0
- package/lib/inputs2/mask/Cpf.d.ts +12 -0
- package/lib/inputs2/mask/Cpf.js +52 -0
- package/lib/inputs2/mask/Phone.d.ts +12 -0
- package/lib/inputs2/mask/Phone.js +25 -0
- package/lib/inputs2/mask/ZipCode.d.ts +12 -0
- package/lib/inputs2/mask/ZipCode.js +22 -0
- package/lib/inputs2/mask/helpers.d.ts +4 -0
- package/lib/inputs2/mask/helpers.js +57 -0
- package/lib/inputs2/numberfield/currency.d.ts +14 -0
- package/lib/inputs2/numberfield/currency.js +91 -0
- package/lib/inputs2/numberfield/decimal.d.ts +14 -0
- package/lib/inputs2/numberfield/decimal.js +85 -0
- package/lib/inputs2/numberfield/helpers.d.ts +30 -0
- package/lib/inputs2/numberfield/helpers.js +53 -0
- package/lib/inputs2/numberfield/index.d.ts +13 -0
- package/lib/inputs2/numberfield/index.js +121 -0
- package/lib/inputs2/numberfield/types.d.ts +37 -0
- package/lib/inputs2/numberfield/types.js +5 -0
- package/lib/inputs2/radiofield/base.d.ts +12 -0
- package/lib/inputs2/radiofield/base.js +156 -0
- package/lib/inputs2/radiofield/index.d.ts +9 -0
- package/lib/inputs2/radiofield/index.js +55 -0
- package/lib/inputs2/radiofield/types.d.ts +36 -0
- package/lib/inputs2/radiofield/types.js +5 -0
- package/lib/inputs2/selectfield/base.d.ts +11 -0
- package/lib/inputs2/selectfield/base.js +513 -0
- package/lib/inputs2/selectfield/context.d.ts +39 -0
- package/lib/inputs2/selectfield/context.js +15 -0
- package/lib/inputs2/selectfield/helpers.d.ts +6 -0
- package/lib/inputs2/selectfield/helpers.js +25 -0
- package/lib/inputs2/selectfield/index.d.ts +11 -0
- package/lib/inputs2/selectfield/index.js +84 -0
- package/lib/inputs2/selectfield/item.d.ts +12 -0
- package/lib/inputs2/selectfield/item.js +89 -0
- package/lib/inputs2/selectfield/listbox.d.ts +7 -0
- package/lib/inputs2/selectfield/listbox.js +117 -0
- package/lib/inputs2/selectfield/options.d.ts +9 -0
- package/lib/inputs2/selectfield/options.js +26 -0
- package/lib/inputs2/selectfield/search.d.ts +7 -0
- package/lib/inputs2/selectfield/search.js +70 -0
- package/lib/inputs2/selectfield/selections.d.ts +10 -0
- package/lib/inputs2/selectfield/selections.js +87 -0
- package/lib/inputs2/selectfield/triggers.d.ts +8 -0
- package/lib/inputs2/selectfield/triggers.js +109 -0
- package/lib/inputs2/selectfield/types.d.ts +56 -0
- package/lib/inputs2/selectfield/types.js +21 -0
- package/lib/inputs2/slot/index.d.ts +14 -0
- package/lib/inputs2/slot/index.js +47 -0
- package/lib/inputs2/textareafield/base.d.ts +26 -0
- package/lib/inputs2/textareafield/base.js +166 -0
- package/lib/inputs2/textareafield/index.d.ts +9 -0
- package/lib/inputs2/textareafield/index.js +70 -0
- package/lib/inputs2/textfield/base.d.ts +26 -0
- package/lib/inputs2/textfield/base.js +131 -0
- package/lib/inputs2/textfield/index.d.ts +9 -0
- package/lib/inputs2/textfield/index.js +70 -0
- package/lib/internals/colorStyles.d.ts +2 -1
- package/lib/internals/colorStyles.js +13 -9
- package/lib/internals/constants.d.ts +7 -2
- package/lib/internals/constants.js +11 -5
- package/lib/internals/types.d.ts +4 -17
- package/lib/internals/types.js +5 -0
- package/lib/labelMessages/index.d.ts +9 -3
- package/lib/labelMessages/index.js +56 -51
- package/lib/labelMessages/types.d.ts +7 -3
- package/lib/labelMessages/types.js +5 -0
- package/lib/labels/DangerLabel.d.ts +12 -3
- package/lib/labels/DangerLabel.js +17 -19
- package/lib/labels/DefaultLabel.d.ts +12 -6
- package/lib/labels/DefaultLabel.js +57 -53
- package/lib/labels/InfoLabel.d.ts +12 -3
- package/lib/labels/InfoLabel.js +17 -19
- package/lib/labels/PrimaryLabel.d.ts +12 -3
- package/lib/labels/PrimaryLabel.js +17 -19
- package/lib/labels/SuccessLabel.d.ts +12 -3
- package/lib/labels/SuccessLabel.js +17 -19
- package/lib/labels/WarningLabel.d.ts +12 -3
- package/lib/labels/WarningLabel.js +17 -19
- package/lib/labels/index.d.ts +19 -9
- package/lib/labels/index.js +52 -17
- package/lib/labels/label_container/index.d.ts +6 -4
- package/lib/labels/label_container/index.js +21 -17
- package/lib/labels/types.d.ts +10 -9
- package/lib/labels/types.js +5 -0
- package/lib/list/Header.d.ts +11 -3
- package/lib/list/Header.js +22 -19
- package/lib/list/Item.d.ts +11 -6
- package/lib/list/Item.js +164 -13
- package/lib/list/Separator.d.ts +3 -2
- package/lib/list/Separator.js +12 -10
- package/lib/list/helpers.d.ts +11 -4
- package/lib/list/helpers.js +14 -10
- package/lib/list/index.d.ts +14 -7
- package/lib/list/index.js +171 -95
- package/lib/list/types.d.ts +16 -14
- package/lib/list/types.js +5 -0
- package/lib/menus/float/MenuItem.d.ts +9 -3
- package/lib/menus/float/MenuItem.js +65 -52
- package/lib/menus/float/SubMenuContainer.js +76 -0
- package/lib/menus/float/helpers.d.ts +9 -4
- package/lib/menus/float/helpers.js +10 -5
- package/lib/menus/float/index.d.ts +40 -6
- package/lib/menus/float/index.js +66 -111
- package/lib/menus/float/types.d.ts +9 -5
- package/lib/menus/float/types.js +5 -0
- package/lib/menus/index.d.ts +12 -2
- package/lib/menus/index.js +9 -4
- package/lib/menus/sidenav/ExpandMenu.d.ts +12 -3
- package/lib/menus/sidenav/ExpandMenu.js +26 -18
- package/lib/menus/sidenav/MenuLink.d.ts +12 -6
- package/lib/menus/sidenav/MenuLink.js +35 -22
- package/lib/menus/sidenav/NavMenuGroup.d.ts +12 -3
- package/lib/menus/sidenav/NavMenuGroup.js +24 -21
- package/lib/menus/sidenav/NavMenuItem.d.ts +12 -6
- package/lib/menus/sidenav/NavMenuItem.js +148 -133
- package/lib/menus/sidenav/NavSubMenuItem.d.ts +12 -3
- package/lib/menus/sidenav/NavSubMenuItem.js +41 -38
- package/lib/menus/sidenav/helpers.d.ts +13 -5
- package/lib/menus/sidenav/helpers.js +17 -9
- package/lib/menus/sidenav/index.d.ts +16 -8
- package/lib/menus/sidenav/index.js +179 -146
- package/lib/menus/sidenav/popup_menu_search/EmptyList.d.ts +12 -3
- package/lib/menus/sidenav/popup_menu_search/EmptyList.js +25 -22
- package/lib/menus/sidenav/popup_menu_search/index.d.ts +12 -4
- package/lib/menus/sidenav/popup_menu_search/index.js +109 -50
- package/lib/menus/sidenav/types.d.ts +25 -20
- package/lib/menus/sidenav/types.js +5 -0
- package/lib/noPermission/index.d.ts +3 -2
- package/lib/noPermission/index.js +23 -16
- package/lib/panel/Content.d.ts +10 -3
- package/lib/panel/Content.js +78 -50
- package/lib/panel/DangerPanel.d.ts +10 -3
- package/lib/panel/DangerPanel.js +15 -12
- package/lib/panel/Default.d.ts +10 -3
- package/lib/panel/Default.js +63 -65
- package/lib/panel/Header.d.ts +10 -3
- package/lib/panel/Header.js +72 -56
- package/lib/panel/InfoPanel.d.ts +10 -3
- package/lib/panel/InfoPanel.js +15 -12
- package/lib/panel/PrimaryPanel.d.ts +10 -3
- package/lib/panel/PrimaryPanel.js +15 -12
- package/lib/panel/SuccessPanel.d.ts +10 -3
- package/lib/panel/SuccessPanel.js +15 -12
- package/lib/panel/ToolBar.d.ts +10 -3
- package/lib/panel/ToolBar.js +21 -18
- package/lib/panel/WarningPanel.d.ts +10 -3
- package/lib/panel/WarningPanel.js +15 -12
- package/lib/panel/helpers.d.ts +11 -5
- package/lib/panel/helpers.js +23 -13
- package/lib/panel/index.d.ts +18 -10
- package/lib/panel/index.js +59 -19
- package/lib/panel/types.d.ts +15 -11
- package/lib/panel/types.js +5 -0
- package/lib/permissionValidations.d.ts +6 -4
- package/lib/permissionValidations.js +53 -40
- package/lib/popover/PopoverText.d.ts +11 -4
- package/lib/popover/PopoverText.js +27 -13
- package/lib/popover/PopoverTitle.d.ts +11 -3
- package/lib/popover/PopoverTitle.js +16 -11
- package/lib/popover/index.d.ts +13 -6
- package/lib/popover/index.js +69 -38
- package/lib/popover/types.d.ts +13 -8
- package/lib/popover/types.js +5 -0
- package/lib/progress/Bar.d.ts +6 -3
- package/lib/progress/Bar.js +70 -47
- package/lib/progress/index.d.ts +7 -5
- package/lib/progress/index.js +37 -25
- package/lib/progress/types.d.ts +7 -4
- package/lib/progress/types.js +5 -0
- package/lib/radio/index.d.ts +11 -3
- package/lib/radio/index.js +112 -111
- package/lib/radio/types.d.ts +6 -3
- package/lib/radio/types.js +5 -0
- package/lib/shortcuts/index.d.ts +7 -3
- package/lib/shortcuts/index.js +27 -21
- package/lib/shortcuts/types.d.ts +5 -2
- package/lib/shortcuts/types.js +5 -0
- package/lib/skeleton/SkeletonContainer.d.ts +7 -3
- package/lib/skeleton/SkeletonContainer.js +21 -18
- package/lib/skeleton/index.d.ts +8 -5
- package/lib/skeleton/index.js +50 -48
- package/lib/skeleton/types.d.ts +6 -3
- package/lib/skeleton/types.js +5 -0
- package/lib/spinner/SpinnerLoading.d.ts +7 -3
- package/lib/spinner/SpinnerLoading.js +219 -54
- package/lib/spinner/index.d.ts +7 -3
- package/lib/spinner/index.js +57 -49
- package/lib/spinner/types.d.ts +8 -5
- package/lib/spinner/types.js +5 -0
- package/lib/split/Split.d.ts +6 -3
- package/lib/split/Split.js +272 -174
- package/lib/split/SplitSide.d.ts +6 -3
- package/lib/split/SplitSide.js +40 -26
- package/lib/split/helpers.d.ts +6 -4
- package/lib/split/helpers.js +10 -5
- package/lib/split/index.d.ts +8 -4
- package/lib/split/index.js +17 -6
- package/lib/split/types.d.ts +6 -3
- package/lib/split/types.js +5 -0
- package/lib/table/Body.d.ts +8 -3
- package/lib/table/Body.js +67 -43
- package/lib/table/Header.d.ts +8 -3
- package/lib/table/Header.js +88 -48
- package/lib/table/HeaderColumn.d.ts +8 -3
- package/lib/table/HeaderColumn.js +53 -42
- package/lib/table/Row.d.ts +8 -3
- package/lib/table/Row.js +87 -52
- package/lib/table/RowColumn.d.ts +8 -3
- package/lib/table/RowColumn.js +76 -54
- package/lib/table/helpers.d.ts +9 -6
- package/lib/table/helpers.js +15 -9
- package/lib/table/index.d.ts +13 -9
- package/lib/table/index.js +148 -102
- package/lib/table/types.d.ts +14 -8
- package/lib/table/types.js +5 -0
- package/lib/tabs/DropdownTabs.d.ts +11 -3
- package/lib/tabs/DropdownTabs.js +84 -82
- package/lib/tabs/Menu.d.ts +11 -3
- package/lib/tabs/Menu.js +47 -37
- package/lib/tabs/MenuTabs.d.ts +11 -4
- package/lib/tabs/MenuTabs.js +88 -62
- package/lib/tabs/Panel.d.ts +11 -3
- package/lib/tabs/Panel.js +81 -58
- package/lib/tabs/context.d.ts +12 -4
- package/lib/tabs/context.js +126 -59
- package/lib/tabs/index.d.ts +12 -5
- package/lib/tabs/index.js +74 -72
- package/lib/tabs/tabHelpers.d.ts +10 -7
- package/lib/tabs/tabHelpers.js +62 -40
- package/lib/tabs/types.d.ts +24 -14
- package/lib/tabs/types.js +5 -0
- package/lib/tabs/useTabs.d.ts +11 -1
- package/lib/tabs/useTabs.js +11 -8
- package/lib/textContent/index.d.ts +10 -11
- package/lib/textContent/index.js +45 -32
- package/lib/toolbar/ButtonBar.d.ts +12 -3
- package/lib/toolbar/ButtonBar.js +64 -66
- package/lib/toolbar/LabelBar.d.ts +12 -3
- package/lib/toolbar/LabelBar.js +56 -50
- package/lib/toolbar/Separator.d.ts +3 -2
- package/lib/toolbar/Separator.js +12 -10
- package/lib/toolbar/ToolBarGroup.d.ts +12 -3
- package/lib/toolbar/ToolBarGroup.js +18 -15
- package/lib/toolbar/helpers.d.ts +12 -3
- package/lib/toolbar/helpers.js +9 -5
- package/lib/toolbar/index.d.ts +16 -8
- package/lib/toolbar/index.js +64 -38
- package/lib/toolbar/types.d.ts +15 -11
- package/lib/toolbar/types.js +5 -0
- package/lib/tooltip/TooltipContent.d.ts +7 -0
- package/lib/tooltip/TooltipContent.js +64 -0
- package/lib/tooltip/index.d.ts +7 -4
- package/lib/tooltip/index.js +46 -39
- package/lib/tooltip/types.d.ts +28 -4
- package/lib/tooltip/types.js +5 -0
- package/lib/tooltip/useTooltip.d.ts +30 -0
- package/lib/tooltip/useTooltip.js +153 -0
- package/lib/treetable/Body.d.ts +3 -2
- package/lib/treetable/Body.js +32 -33
- package/lib/treetable/Header.d.ts +3 -2
- package/lib/treetable/Header.js +22 -29
- package/lib/treetable/Row.d.ts +9 -3
- package/lib/treetable/Row.js +228 -212
- package/lib/treetable/helpers.d.ts +13 -5
- package/lib/treetable/helpers.js +30 -15
- package/lib/treetable/index.d.ts +10 -4
- package/lib/treetable/index.js +27 -27
- package/lib/treetable/types.d.js +5 -0
- package/lib/treeview/Header.d.ts +7 -3
- package/lib/treeview/Header.js +20 -15
- package/lib/treeview/Node.d.ts +7 -3
- package/lib/treeview/Node.js +235 -197
- package/lib/treeview/constants.d.ts +7 -3
- package/lib/treeview/constants.js +9 -5
- package/lib/treeview/index.d.ts +9 -6
- package/lib/treeview/index.js +307 -256
- package/lib/treeview/types.d.ts +14 -12
- package/lib/treeview/types.js +5 -0
- package/lib/types.d-b477e076.d.ts +47 -0
- package/lib/uitour/helpers.d.ts +2 -1
- package/lib/uitour/helpers.js +12 -9
- package/lib/uitour/index.d.ts +7 -4
- package/lib/uitour/index.js +237 -168
- package/lib/uitour/types.d.ts +10 -7
- package/lib/uitour/types.js +5 -0
- package/package.json +82 -45
- package/lib/alerts/alert.spec.d.ts +0 -0
- package/lib/assets/BaseAlert.css +0 -1
- package/lib/assets/Content.css +0 -1
- package/lib/assets/DefaultFile.css +0 -1
- package/lib/assets/Drawer.css +0 -1
- package/lib/assets/InputTextBase.css +0 -1
- package/lib/assets/button.css +0 -1
- package/lib/assets/gridlayout.css +0 -1
- package/lib/assets/index.css +0 -1
- package/lib/assets/index10.css +0 -1
- package/lib/assets/index11.css +0 -1
- package/lib/assets/index12.css +0 -1
- package/lib/assets/index13.css +0 -1
- package/lib/assets/index14.css +0 -1
- package/lib/assets/index15.css +0 -1
- package/lib/assets/index16.css +0 -1
- package/lib/assets/index17.css +0 -1
- package/lib/assets/index18.css +0 -1
- package/lib/assets/index19.css +0 -1
- package/lib/assets/index2.css +0 -1
- package/lib/assets/index20.css +0 -1
- package/lib/assets/index21.css +0 -1
- package/lib/assets/index22.css +0 -1
- package/lib/assets/index23.css +0 -1
- package/lib/assets/index24.css +0 -1
- package/lib/assets/index25.css +0 -1
- package/lib/assets/index26.css +0 -1
- package/lib/assets/index27.css +0 -1
- package/lib/assets/index28.css +0 -1
- package/lib/assets/index3.css +0 -1
- package/lib/assets/index4.css +0 -1
- package/lib/assets/index5.css +0 -1
- package/lib/assets/index6.css +0 -1
- package/lib/assets/index7.css +0 -1
- package/lib/assets/index8.css +0 -1
- package/lib/assets/index9.css +0 -1
- package/lib/assets/label.css +0 -1
- package/lib/assets/noPermission.css +0 -1
- package/lib/assets/panel.css +0 -1
- package/lib/assets/progressbar.css +0 -1
- package/lib/assets/radio.css +0 -1
- package/lib/assets/skeleton.css +0 -1
- package/lib/assets/table.css +0 -1
- package/lib/assets/tabs.css +0 -1
- package/lib/assets/toolbar.css +0 -1
- package/lib/assets/withDropdown.css +0 -1
- package/lib/avatar/avatar.spec.d.ts +0 -1
- package/lib/badge/badge.spec.d.ts +0 -1
- package/lib/buttons/buttons.spec.d.ts +0 -0
- package/lib/calendar/base/Day.d.ts +0 -3
- package/lib/calendar/base/Day.js +0 -37
- package/lib/calendar/base/Month.d.ts +0 -3
- package/lib/calendar/base/Month.js +0 -28
- package/lib/calendar/base/Week.d.ts +0 -3
- package/lib/calendar/base/Week.js +0 -24
- package/lib/calendar/calendar.spec.d.ts +0 -0
- package/lib/checkbox/checkbox.spec.d.ts +0 -1
- package/lib/chunks/compiler-runtime.Cu50tn6L.js +0 -54
- package/lib/chunks/index.Df3kt2LQ.js +0 -667
- package/lib/chunks/index.aw0XaUkg.js +0 -266
- package/lib/chunks/jsx-runtime.D1SHvdVE.js +0 -282
- package/lib/chunks/lodash.CIAK_hAg.js +0 -3684
- package/lib/chunks/moment.DMLRxgRE.js +0 -2589
- package/lib/chunks/tabs.BvKfeA6Y.js +0 -244
- package/lib/chunks/v1.Ds1rkxUj.js +0 -49
- package/lib/dialog/base/style.d.ts +0 -7
- package/lib/dialog/dialog.spec.d.ts +0 -0
- package/lib/dialog/wizard/wizard.spec.d.ts +0 -0
- package/lib/drawer/Drawer.spec.d.ts +0 -1
- package/lib/dropdown/dropdown.spec.d.ts +0 -1
- package/lib/fieldset/fieldset.spec.d.ts +0 -1
- package/lib/form/form.spec.d.ts +0 -0
- package/lib/gridlayout/gridLayout.spec.d.ts +0 -1
- package/lib/hint/hint.spec.d.ts +0 -1
- package/lib/icons/icons.spec.d.ts +0 -1
- package/lib/inputs/base/Label.d.ts +0 -6
- package/lib/inputs/base/Label.js +0 -30
- package/lib/inputs/base/base.spec.d.ts +0 -1
- package/lib/inputs/color/color_input.spec.d.ts +0 -0
- package/lib/inputs/date/date.spec.d.ts +0 -1
- package/lib/inputs/errorMessage/error.spec.d.ts +0 -1
- package/lib/inputs/file/filefield.spec.d.ts +0 -1
- package/lib/inputs/mask/input_mask.spec.d.ts +0 -0
- package/lib/inputs/multiSelect/multiSelect.spec.d.ts +0 -1
- package/lib/inputs/number/numberfield.spec.d.ts +0 -1
- package/lib/inputs/search/search_input.spec.d.ts +0 -1
- package/lib/inputs/select/select.spec.d.ts +0 -1
- package/lib/inputs/text/textfield.spec.d.ts +0 -1
- package/lib/inputs/textarea/textarea.spec.d.ts +0 -1
- package/lib/internals/withTooltip.d.ts +0 -8
- package/lib/internals/withTooltip.js +0 -122
- package/lib/labelMessages/labelMessages.spec.d.ts +0 -1
- package/lib/labels/label.spec.d.ts +0 -1
- package/lib/list/list.spec.d.ts +0 -1
- package/lib/menus/float/SubMenuContainer.d.ts +0 -29
- package/lib/menus/float/float-menu.spec.d.ts +0 -0
- package/lib/menus/sidenav/sidenav.spec.d.ts +0 -1
- package/lib/panel/panel.spec.d.ts +0 -0
- package/lib/popover/popover.spec.d.ts +0 -1
- package/lib/progress/progress.spec.d.ts +0 -1
- package/lib/radio/radio.spec.d.ts +0 -1
- package/lib/shortcuts/shortcuts.spec.d.ts +0 -0
- package/lib/spinner/spinner.spec.d.ts +0 -1
- package/lib/split/split.spec.d.ts +0 -0
- package/lib/table/table.spec.d.ts +0 -1
- package/lib/tabs/tabs.spec.d.ts +0 -0
- package/lib/textContent/textContent.spec.d.ts +0 -1
- package/lib/toolbar/toolbar.spec.d.ts +0 -1
- package/lib/tooltip/tooltip.spec.d.ts +0 -1
- package/lib/treeview/treeview.spec.d.ts +0 -0
- package/lib/uitour/uitour.spec.d.ts +0 -0
package/lib/dialog/form/index.js
CHANGED
|
@@ -1,16 +1,127 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.FormDialogContext = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _base = _interopRequireDefault(require("../base"));
|
|
9
|
+
var _Header = _interopRequireDefault(require("../base/Header"));
|
|
10
|
+
var _index = require("../../buttons/index");
|
|
11
|
+
var _Content = _interopRequireDefault(require("../base/Content"));
|
|
12
|
+
var _Footer = _interopRequireDefault(require("../base/Footer"));
|
|
13
|
+
var _spinner = _interopRequireDefault(require("../../spinner"));
|
|
14
|
+
var _withFormSecurity = _interopRequireWildcard(require("../../form/withFormSecurity"));
|
|
15
|
+
var _Question = _interopRequireDefault(require("../Question"));
|
|
16
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
17
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
18
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
19
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
20
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
21
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
22
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
23
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
24
|
+
const FormDialogContext = exports.FormDialogContext = /*#__PURE__*/(0, _react.createContext)({});
|
|
25
|
+
const ModalForm = props => {
|
|
26
|
+
const {
|
|
27
|
+
showFooter = true,
|
|
28
|
+
isWaiting = false,
|
|
29
|
+
width = '50%',
|
|
30
|
+
height = '50%',
|
|
31
|
+
content,
|
|
32
|
+
children,
|
|
33
|
+
className = '',
|
|
34
|
+
wrapperClassName = '',
|
|
35
|
+
contentClassName = '',
|
|
36
|
+
headerClassName = '',
|
|
37
|
+
closeOnEsc = true,
|
|
38
|
+
securityBeforeUnload = false,
|
|
39
|
+
securityTitle = 'Dados Alterados',
|
|
40
|
+
securityText = 'Você possui dados alterados, confirma o fechamento?'
|
|
41
|
+
} = props;
|
|
42
|
+
const headerRef = (0, _react.useRef)(null);
|
|
43
|
+
const context = (0, _react.useContext)(_withFormSecurity.FormSecurityContext);
|
|
44
|
+
const [showSecurityDialog, setShowSecurityDialog] = (0, _react.useState)(false);
|
|
45
|
+
const overlayStyle = isWaiting ? {
|
|
46
|
+
opacity: 0.4,
|
|
47
|
+
pointerEvent: 'none'
|
|
48
|
+
} : {};
|
|
49
|
+
const handlerClose = (0, _react.useCallback)(() => {
|
|
50
|
+
if (securityBeforeUnload) {
|
|
51
|
+
setShowSecurityDialog(true);
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
if (props.handlerClose) {
|
|
55
|
+
props.handlerClose();
|
|
56
|
+
}
|
|
57
|
+
}, [securityBeforeUnload, props.handlerClose]);
|
|
58
|
+
const onConfirmSecurity = () => {
|
|
59
|
+
var _props$handlerClose;
|
|
60
|
+
(_props$handlerClose = props.handlerClose) === null || _props$handlerClose === void 0 ? void 0 : _props$handlerClose.call(props);
|
|
61
|
+
setShowSecurityDialog(false);
|
|
62
|
+
};
|
|
63
|
+
const onUnconfirmClick = () => {
|
|
64
|
+
setShowSecurityDialog(false);
|
|
65
|
+
};
|
|
66
|
+
const getSpinner = () => {
|
|
67
|
+
if (!isWaiting) return null;
|
|
68
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
69
|
+
className: "waitingspinner"
|
|
70
|
+
}, /*#__PURE__*/_react.default.createElement(_spinner.default, {
|
|
71
|
+
style: {
|
|
72
|
+
width: 60
|
|
73
|
+
},
|
|
74
|
+
delayTime: 0
|
|
75
|
+
}));
|
|
76
|
+
};
|
|
77
|
+
(0, _react.useEffect)(() => {
|
|
78
|
+
const onBeforeUnload = e => {
|
|
79
|
+
e === null || e === void 0 ? void 0 : e.preventDefault();
|
|
80
|
+
};
|
|
81
|
+
if (securityBeforeUnload) {
|
|
82
|
+
window.addEventListener('beforeunload', onBeforeUnload);
|
|
83
|
+
}
|
|
84
|
+
return () => {
|
|
85
|
+
window.removeEventListener('beforeunload', onBeforeUnload);
|
|
86
|
+
};
|
|
87
|
+
}, [securityBeforeUnload]);
|
|
88
|
+
return /*#__PURE__*/_react.default.createElement(FormDialogContext.Provider, {
|
|
89
|
+
value: {
|
|
90
|
+
headerRef
|
|
91
|
+
}
|
|
92
|
+
}, /*#__PURE__*/_react.default.createElement(_base.default, _extends({}, props, {
|
|
93
|
+
width: width,
|
|
94
|
+
height: height,
|
|
95
|
+
className: className,
|
|
96
|
+
wrapperClassName: "dialog-form-wrapper ".concat(wrapperClassName),
|
|
97
|
+
handlerClose: handlerClose,
|
|
98
|
+
closeOnEsc: closeOnEsc,
|
|
99
|
+
securityBeforeUnload: securityBeforeUnload
|
|
100
|
+
}), props.title && /*#__PURE__*/_react.default.createElement("div", {
|
|
101
|
+
className: "header-form ".concat(headerClassName)
|
|
102
|
+
}, /*#__PURE__*/_react.default.createElement(_Header.default, {
|
|
103
|
+
title: props.title,
|
|
104
|
+
handlerClose: handlerClose,
|
|
105
|
+
icon: props.icon
|
|
106
|
+
})), /*#__PURE__*/_react.default.createElement(_Content.default, {
|
|
107
|
+
styleForContent: _objectSpread(_objectSpread({}, props.styleForContent), overlayStyle),
|
|
108
|
+
className: contentClassName
|
|
109
|
+
}, content || children), getSpinner(), showFooter && props.buttons && /*#__PURE__*/_react.default.createElement(_Footer.default, null, /*#__PURE__*/_react.default.createElement(_index.ButtonContainer, _extends({}, props, {
|
|
110
|
+
style: _objectSpread({}, overlayStyle)
|
|
111
|
+
}), _react.default.Children.toArray(props.buttons.map(button => {
|
|
112
|
+
if (context && (context.securityBeforeUnload || securityBeforeUnload) && button && button.type && button.type.name === 'CancelButton') {
|
|
113
|
+
return /*#__PURE__*/_react.default.cloneElement(button, {
|
|
114
|
+
onClick: handlerClose
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
return /*#__PURE__*/_react.default.cloneElement(button);
|
|
118
|
+
}))))), /*#__PURE__*/_react.default.createElement(_Question.default, {
|
|
119
|
+
zIndex: "99999999",
|
|
120
|
+
title: securityTitle,
|
|
121
|
+
text: securityText,
|
|
122
|
+
visible: showSecurityDialog,
|
|
123
|
+
onConfirmClick: onConfirmSecurity,
|
|
124
|
+
onUnconfirmClick: onUnconfirmClick
|
|
125
|
+
}));
|
|
16
126
|
};
|
|
127
|
+
var _default = exports.default = (0, _withFormSecurity.default)(ModalForm);
|
package/lib/dialog/index.d.ts
CHANGED
|
@@ -1,9 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import BaseDialog from './base/index.js';
|
|
2
|
+
export { default as DialogAlert } from './Alert.js';
|
|
3
|
+
export { default as DialogError } from './Error.js';
|
|
4
|
+
export { default as DialogInformation } from './Information.js';
|
|
5
|
+
export { default as DialogQuestion } from './Question.js';
|
|
6
|
+
export { default as DialogWarning } from './Warning.js';
|
|
7
|
+
export { default as DialogCustom } from './Custom.js';
|
|
8
|
+
import 'react';
|
|
9
|
+
import './types.js';
|
|
10
|
+
import '../@types/Align.js';
|
|
11
|
+
import '../@types/Icon.js';
|
|
12
|
+
import '../icons/helper.js';
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
export { BaseDialog as default };
|
package/lib/dialog/index.js
CHANGED
|
@@ -1,16 +1,51 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "DialogAlert", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _Alert.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "DialogCustom", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _Custom.default;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "DialogError", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () {
|
|
21
|
+
return _Error.default;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "DialogInformation", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () {
|
|
27
|
+
return _Information.default;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(exports, "DialogQuestion", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function () {
|
|
33
|
+
return _Question.default;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(exports, "DialogWarning", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function () {
|
|
39
|
+
return _Warning.default;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
exports.default = void 0;
|
|
43
|
+
var _base = _interopRequireDefault(require("./base/"));
|
|
44
|
+
var _Alert = _interopRequireDefault(require("./Alert"));
|
|
45
|
+
var _Error = _interopRequireDefault(require("./Error"));
|
|
46
|
+
var _Information = _interopRequireDefault(require("./Information"));
|
|
47
|
+
var _Question = _interopRequireDefault(require("./Question"));
|
|
48
|
+
var _Warning = _interopRequireDefault(require("./Warning"));
|
|
49
|
+
var _Custom = _interopRequireDefault(require("./Custom"));
|
|
50
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
51
|
+
var _default = exports.default = _base.default;
|
package/lib/dialog/types.d.ts
CHANGED
|
@@ -1,22 +1,24 @@
|
|
|
1
|
-
import { ReactNode, CSSProperties, ReactElement, Dispatch
|
|
2
|
-
import { TextAlign } from '../@types/Align';
|
|
3
|
-
import { IconNames } from '../@types/Icon';
|
|
4
|
-
|
|
1
|
+
import { ReactNode, CSSProperties, ReactElement, Dispatch } from 'react';
|
|
2
|
+
import { TextAlign } from '../@types/Align.js';
|
|
3
|
+
import { IconNames } from '../@types/Icon.js';
|
|
4
|
+
import '../icons/helper.js';
|
|
5
|
+
|
|
6
|
+
interface IContentProps {
|
|
5
7
|
children: ReactNode | ReactNode[];
|
|
6
8
|
styleForContent?: CSSProperties;
|
|
7
9
|
className?: string;
|
|
8
10
|
}
|
|
9
|
-
|
|
11
|
+
interface IFooterProps {
|
|
10
12
|
children: ReactElement | ReactElement[];
|
|
11
13
|
}
|
|
12
|
-
|
|
14
|
+
interface IHeaderProps {
|
|
13
15
|
handlerClose?: () => void;
|
|
14
16
|
showCloseButton?: boolean;
|
|
15
17
|
title?: string;
|
|
16
18
|
icon?: JSX.Element;
|
|
17
19
|
titleIcon?: IconNames;
|
|
18
20
|
}
|
|
19
|
-
|
|
21
|
+
interface IBaseProps {
|
|
20
22
|
wrapperClassName?: string;
|
|
21
23
|
width?: string;
|
|
22
24
|
height?: string;
|
|
@@ -31,8 +33,9 @@ export interface IBaseProps {
|
|
|
31
33
|
onOpenChange?: (open: boolean) => void;
|
|
32
34
|
handlerClose?: () => void;
|
|
33
35
|
id?: string;
|
|
36
|
+
securityBeforeUnload?: boolean;
|
|
34
37
|
}
|
|
35
|
-
|
|
38
|
+
interface IFormProps extends Omit<IBaseProps, 'textAlign' | 'zIndex'> {
|
|
36
39
|
buttons?: JSX.Element[];
|
|
37
40
|
styleForContent?: CSSProperties;
|
|
38
41
|
title?: string;
|
|
@@ -41,14 +44,18 @@ export interface IFormProps extends Omit<IBaseProps, 'textAlign' | 'zIndex'> {
|
|
|
41
44
|
icon?: JSX.Element;
|
|
42
45
|
content?: ReactNode;
|
|
43
46
|
contentClassName?: string;
|
|
47
|
+
headerClassName?: string;
|
|
48
|
+
securityBeforeUnload?: boolean;
|
|
49
|
+
securityTitle?: string;
|
|
50
|
+
securityText?: string;
|
|
44
51
|
}
|
|
45
|
-
|
|
52
|
+
interface ICommonDialogProps {
|
|
46
53
|
onConfirmClick?: () => void;
|
|
47
54
|
text?: string;
|
|
48
55
|
title?: string;
|
|
49
56
|
confirmLabel?: string;
|
|
50
57
|
}
|
|
51
|
-
|
|
58
|
+
interface IQuestionProps {
|
|
52
59
|
onUnconfirmClick: () => void;
|
|
53
60
|
onConfirmClick?: () => void;
|
|
54
61
|
visible?: boolean;
|
|
@@ -60,7 +67,7 @@ export interface IQuestionProps {
|
|
|
60
67
|
confirmLabel?: string;
|
|
61
68
|
declineLabel?: string;
|
|
62
69
|
}
|
|
63
|
-
|
|
70
|
+
interface ICustomProps {
|
|
64
71
|
icon: ReactElement;
|
|
65
72
|
buttons?: JSX.Element[];
|
|
66
73
|
title?: string;
|
|
@@ -72,10 +79,10 @@ export interface ICustomProps {
|
|
|
72
79
|
closeOnEsc?: boolean;
|
|
73
80
|
handlerClose?: () => void;
|
|
74
81
|
}
|
|
75
|
-
|
|
82
|
+
interface IFormDialogContext {
|
|
76
83
|
headerRef?: React.RefObject<HTMLDivElement>;
|
|
77
84
|
}
|
|
78
|
-
|
|
85
|
+
interface WizardComponentProps extends Omit<IFormProps, 'content'> {
|
|
79
86
|
children: React.ReactNode;
|
|
80
87
|
buttons?: JSX.Element[];
|
|
81
88
|
showProgressbar?: boolean;
|
|
@@ -86,16 +93,16 @@ export interface WizardComponentProps extends Omit<IFormProps, 'content'> {
|
|
|
86
93
|
customStyleForBody?: CSSProperties;
|
|
87
94
|
progressBarPosition?: 'top' | 'left';
|
|
88
95
|
}
|
|
89
|
-
|
|
96
|
+
interface WizardStepComponentProps {
|
|
90
97
|
children: React.ReactNode;
|
|
91
98
|
title: string;
|
|
92
99
|
customClass?: string;
|
|
93
100
|
customStyle?: CSSProperties;
|
|
94
101
|
}
|
|
95
|
-
|
|
102
|
+
interface WizardControls extends Omit<UseWizardReturn, 'controls'> {
|
|
96
103
|
setTotalSteps: Dispatch<React.SetStateAction<number>>;
|
|
97
104
|
}
|
|
98
|
-
|
|
105
|
+
interface UseWizardReturn {
|
|
99
106
|
changeStep: (nextStep: number) => void;
|
|
100
107
|
nextStep: () => void;
|
|
101
108
|
hasNextStep: boolean;
|
|
@@ -105,3 +112,5 @@ export interface UseWizardReturn {
|
|
|
105
112
|
totalSteps: number;
|
|
106
113
|
controls: WizardControls;
|
|
107
114
|
}
|
|
115
|
+
|
|
116
|
+
export { IBaseProps, ICommonDialogProps, IContentProps, ICustomProps, IFooterProps, IFormDialogContext, IFormProps, IHeaderProps, IQuestionProps, UseWizardReturn, WizardComponentProps, WizardControls, WizardStepComponentProps };
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { WizardControls, WizardComponentProps } from '../types.js';
|
|
3
|
+
export { WizardStep as Step } from './step.js';
|
|
4
|
+
export { useWizard } from './useWizard.js';
|
|
5
|
+
import '../../@types/Align.js';
|
|
6
|
+
import '../../@types/Icon.js';
|
|
7
|
+
import '../../icons/helper.js';
|
|
8
|
+
|
|
9
|
+
declare const WizardContext: React__default.Context<WizardControls | null>;
|
|
10
|
+
declare const useWizardContext: () => WizardControls | null;
|
|
11
|
+
declare function Wizard({ children, controls, showProgressbar, customStyleForProgressBar, customStyleForBody, progressBarPosition, ...dialogProps }: Readonly<WizardComponentProps>): JSX.Element;
|
|
12
|
+
|
|
13
|
+
export { Wizard as Container, WizardContext, Wizard as default, useWizardContext };
|
|
@@ -1,15 +1,79 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Container = Wizard;
|
|
7
|
+
Object.defineProperty(exports, "Step", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () {
|
|
10
|
+
return _step.WizardStep;
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
exports.default = exports.WizardContext = void 0;
|
|
14
|
+
Object.defineProperty(exports, "useWizard", {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function () {
|
|
17
|
+
return _useWizard.useWizard;
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
exports.useWizardContext = void 0;
|
|
21
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
22
|
+
var _lodash = _interopRequireDefault(require("lodash"));
|
|
23
|
+
var _form = _interopRequireDefault(require("../form/"));
|
|
24
|
+
var _progressbar = require("./progressbar");
|
|
25
|
+
require("../../assets/styles/wizard.scss");
|
|
26
|
+
var _step = require("./step");
|
|
27
|
+
var _useWizard = require("./useWizard");
|
|
28
|
+
const _excluded = ["children", "controls", "showProgressbar", "customStyleForProgressBar", "customStyleForBody", "progressBarPosition"];
|
|
29
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
30
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
31
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
32
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
33
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
34
|
+
const WizardContext = exports.WizardContext = /*#__PURE__*/_react.default.createContext(null);
|
|
35
|
+
const useWizardContext = () => _react.default.useContext(WizardContext);
|
|
36
|
+
exports.useWizardContext = useWizardContext;
|
|
37
|
+
function Wizard(_ref) {
|
|
38
|
+
let {
|
|
39
|
+
children,
|
|
40
|
+
controls,
|
|
41
|
+
showProgressbar = true,
|
|
42
|
+
customStyleForProgressBar,
|
|
43
|
+
customStyleForBody,
|
|
44
|
+
progressBarPosition = 'top'
|
|
45
|
+
} = _ref,
|
|
46
|
+
dialogProps = _objectWithoutProperties(_ref, _excluded);
|
|
47
|
+
const {
|
|
48
|
+
currentStep,
|
|
49
|
+
setTotalSteps
|
|
50
|
+
} = controls;
|
|
51
|
+
const steps = _react.default.Children.toArray(children);
|
|
52
|
+
const stepsTitle = steps.map((step, index) => {
|
|
53
|
+
return {
|
|
54
|
+
title: String(step.props.title),
|
|
55
|
+
number: index + 1,
|
|
56
|
+
completed: index < currentStep - 1 && index !== currentStep
|
|
57
|
+
};
|
|
58
|
+
});
|
|
59
|
+
const currentStepElement = steps[currentStep - 1];
|
|
60
|
+
if (!controls || _lodash.default.isEmpty(controls)) throw new Error('Wizard must be have controls by using useWizard hook or creating manually.');
|
|
61
|
+
(0, _react.useEffect)(() => {
|
|
62
|
+
setTotalSteps(steps.length);
|
|
63
|
+
}, [steps.length]);
|
|
64
|
+
return /*#__PURE__*/_react.default.createElement(WizardContext.Provider, {
|
|
65
|
+
value: controls
|
|
66
|
+
}, /*#__PURE__*/_react.default.createElement(_form.default, _extends({
|
|
67
|
+
className: "wizard-dialog",
|
|
68
|
+
wrapperClassName: "wizard-wrapper",
|
|
69
|
+
contentClassName: "wizard-content"
|
|
70
|
+
}, dialogProps), showProgressbar && /*#__PURE__*/_react.default.createElement(_progressbar.Progressbar, {
|
|
71
|
+
stepsTitle: stepsTitle,
|
|
72
|
+
customStyle: customStyleForProgressBar,
|
|
73
|
+
position: progressBarPosition
|
|
74
|
+
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
75
|
+
className: "wizard-body",
|
|
76
|
+
style: customStyleForBody
|
|
77
|
+
}, currentStepElement)));
|
|
78
|
+
}
|
|
79
|
+
var _default = exports.default = Wizard;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
declare function Progressbar({ customClass, customStyle, stepsTitle, position, }: Readonly<{
|
|
3
4
|
customClass?: string;
|
|
4
5
|
stepsTitle: {
|
|
5
6
|
title: string;
|
|
@@ -8,4 +9,6 @@ export declare function Progressbar({ customClass, customStyle, stepsTitle, posi
|
|
|
8
9
|
}[];
|
|
9
10
|
customStyle?: CSSProperties;
|
|
10
11
|
position?: 'top' | 'left';
|
|
11
|
-
}>):
|
|
12
|
+
}>): JSX.Element;
|
|
13
|
+
|
|
14
|
+
export { Progressbar };
|
|
@@ -1,98 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Progressbar = Progressbar;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _ = require(".");
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
+
function Progressbar(_ref) {
|
|
11
|
+
let {
|
|
12
|
+
customClass,
|
|
13
|
+
customStyle,
|
|
14
|
+
stepsTitle,
|
|
15
|
+
position = 'top'
|
|
16
|
+
} = _ref;
|
|
17
|
+
const context = (0, _.useWizardContext)();
|
|
18
|
+
if (!context) throw new Error('WizardProgressbar must be used within a Wizard component');
|
|
16
19
|
const {
|
|
17
|
-
currentStep
|
|
18
|
-
} =
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
} = u, a = s === void 0 ? "" : s;
|
|
37
|
-
if (!E())
|
|
38
|
-
throw new Error("WizardStep must be used within a Wizard component");
|
|
39
|
-
const i = `wizard-step-component ${a}`;
|
|
40
|
-
let o;
|
|
41
|
-
return t[0] !== l || t[1] !== r || t[2] !== i ? (o = /* @__PURE__ */ d.jsx("div", { className: i, style: r, children: l }), t[0] = l, t[1] = r, t[2] = i, t[3] = o) : o = t[3], o;
|
|
42
|
-
}
|
|
43
|
-
const P = N.createContext(null), E = () => N.useContext(P);
|
|
44
|
-
function I(u) {
|
|
45
|
-
const t = C.c(34);
|
|
46
|
-
let l, s, r, a, c, i, o;
|
|
47
|
-
t[0] !== u ? ({
|
|
48
|
-
children: l,
|
|
49
|
-
controls: s,
|
|
50
|
-
showProgressbar: i,
|
|
51
|
-
customStyleForProgressBar: a,
|
|
52
|
-
customStyleForBody: r,
|
|
53
|
-
progressBarPosition: o,
|
|
54
|
-
...c
|
|
55
|
-
} = u, t[0] = u, t[1] = l, t[2] = s, t[3] = r, t[4] = a, t[5] = c, t[6] = i, t[7] = o) : (l = t[1], s = t[2], r = t[3], a = t[4], c = t[5], i = t[6], o = t[7]);
|
|
56
|
-
const f = i === void 0 ? !0 : i, m = o === void 0 ? "top" : o, {
|
|
57
|
-
currentStep: n,
|
|
58
|
-
setTotalSteps: p
|
|
59
|
-
} = s;
|
|
60
|
-
let e, w;
|
|
61
|
-
if (t[8] !== l || t[9] !== n) {
|
|
62
|
-
e = N.Children.toArray(l);
|
|
63
|
-
let j;
|
|
64
|
-
t[12] !== n ? (j = ($, W) => ({
|
|
65
|
-
title: String($.props.title),
|
|
66
|
-
number: W + 1,
|
|
67
|
-
completed: W < n - 1 && W !== n
|
|
68
|
-
}), t[12] = n, t[13] = j) : j = t[13], w = e.map(j), t[8] = l, t[9] = n, t[10] = e, t[11] = w;
|
|
69
|
-
} else
|
|
70
|
-
e = t[10], w = t[11];
|
|
71
|
-
const v = w, S = e[n - 1];
|
|
72
|
-
if (!s || F.isEmpty(s))
|
|
73
|
-
throw new Error("Wizard must be have controls by using useWizard hook or creating manually.");
|
|
74
|
-
let b;
|
|
75
|
-
t[14] !== p || t[15] !== e.length ? (b = () => {
|
|
76
|
-
p(e.length);
|
|
77
|
-
}, t[14] = p, t[15] = e.length, t[16] = b) : b = t[16];
|
|
78
|
-
let z;
|
|
79
|
-
t[17] !== e.length ? (z = [e.length], t[17] = e.length, t[18] = z) : z = t[18], B(b, z);
|
|
80
|
-
let h;
|
|
81
|
-
t[19] !== a || t[20] !== m || t[21] !== f || t[22] !== v ? (h = f && /* @__PURE__ */ d.jsx(T, { stepsTitle: v, customStyle: a, position: m }), t[19] = a, t[20] = m, t[21] = f, t[22] = v, t[23] = h) : h = t[23];
|
|
82
|
-
let g;
|
|
83
|
-
t[24] !== S || t[25] !== r ? (g = /* @__PURE__ */ d.jsx("div", { className: "wizard-body", style: r, children: S }), t[24] = S, t[25] = r, t[26] = g) : g = t[26];
|
|
84
|
-
let x;
|
|
85
|
-
t[27] !== c || t[28] !== h || t[29] !== g ? (x = /* @__PURE__ */ d.jsxs(R, { className: "wizard-dialog", wrapperClassName: "wizard-wrapper", contentClassName: "wizard-content", ...c, children: [
|
|
86
|
-
h,
|
|
87
|
-
g
|
|
88
|
-
] }), t[27] = c, t[28] = h, t[29] = g, t[30] = x) : x = t[30];
|
|
89
|
-
let y;
|
|
90
|
-
return t[31] !== s || t[32] !== x ? (y = /* @__PURE__ */ d.jsx(P.Provider, { value: s, children: x }), t[31] = s, t[32] = x, t[33] = y) : y = t[33], y;
|
|
91
|
-
}
|
|
92
|
-
export {
|
|
93
|
-
T as Progressbar,
|
|
94
|
-
H as W,
|
|
95
|
-
P as a,
|
|
96
|
-
I as b,
|
|
97
|
-
E as u
|
|
98
|
-
};
|
|
20
|
+
currentStep
|
|
21
|
+
} = context;
|
|
22
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
23
|
+
className: "wizard-progressbar ".concat(customClass),
|
|
24
|
+
style: customStyle,
|
|
25
|
+
"data-position": position
|
|
26
|
+
}, stepsTitle.map(step => /*#__PURE__*/_react.default.createElement("div", {
|
|
27
|
+
key: step.number,
|
|
28
|
+
className: "title",
|
|
29
|
+
"data-completed": step.completed,
|
|
30
|
+
"data-disabled": step.number > currentStep
|
|
31
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
32
|
+
className: "step"
|
|
33
|
+
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
34
|
+
className: "number"
|
|
35
|
+
}, step.number)), /*#__PURE__*/_react.default.createElement("span", {
|
|
36
|
+
className: "step-title"
|
|
37
|
+
}, step.title))));
|
|
38
|
+
}
|
|
@@ -1,2 +1,9 @@
|
|
|
1
|
-
import { WizardStepComponentProps } from '../types';
|
|
2
|
-
|
|
1
|
+
import { WizardStepComponentProps } from '../types.js';
|
|
2
|
+
import 'react';
|
|
3
|
+
import '../../@types/Align.js';
|
|
4
|
+
import '../../@types/Icon.js';
|
|
5
|
+
import '../../icons/helper.js';
|
|
6
|
+
|
|
7
|
+
declare function WizardStep({ children, customClass, customStyle }: Readonly<WizardStepComponentProps>): JSX.Element;
|
|
8
|
+
|
|
9
|
+
export { WizardStep };
|