linear-react-components-ui 0.4.77-beta.23 → 0.4.77-beta.26
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/.eslintrc.json +99 -0
- package/.gitlab-ci.yml +19 -0
- package/.husky/pre-push +4 -0
- package/.vscode/launch.json +15 -0
- package/.vscode/settings.json +5 -3
- package/babel.config.json +11 -0
- package/config/getHttpsConfig.js +56 -0
- package/config/paths.js +140 -0
- package/config/webpackDevServer.config.js +128 -0
- package/dist/main.js +14 -0
- package/jest.config.js +3 -3
- package/lib/@types/Align.d.ts +3 -0
- package/lib/@types/Align.js +5 -0
- package/lib/@types/ButtonTypes.d.ts +3 -0
- package/lib/@types/ButtonTypes.js +5 -0
- package/lib/@types/ColorStyles.d.ts +3 -0
- package/lib/@types/ColorStyles.js +5 -0
- package/lib/@types/DataCombo.d.ts +3 -0
- package/lib/@types/DataCombo.js +5 -0
- package/lib/@types/Icon.d.ts +5 -0
- package/lib/@types/Icon.js +5 -0
- package/lib/@types/LabelStyles.d.ts +3 -0
- package/lib/@types/LabelStyles.js +5 -0
- package/lib/@types/Period.d.ts +6 -0
- package/lib/@types/Period.js +5 -0
- package/lib/@types/PermissionAttr.d.ts +14 -0
- package/lib/@types/PermissionAttr.js +5 -0
- package/lib/@types/PointerEvents.d.ts +3 -0
- package/lib/@types/PointerEvents.js +5 -0
- package/lib/@types/Position.d.ts +3 -0
- package/lib/@types/Position.js +5 -0
- package/lib/@types/PositionAlert.d.ts +3 -0
- package/lib/@types/PositionAlert.js +5 -0
- package/lib/@types/Size.d.ts +3 -0
- package/lib/@types/Size.js +5 -0
- package/lib/@types/SizePixels.d.ts +3 -0
- package/lib/@types/SizePixels.js +5 -0
- package/lib/@types/StorageMock.d.ts +5 -0
- package/lib/@types/StorageMock.js +5 -0
- package/lib/alerts/AlertContainer.d.ts +16 -0
- package/lib/alerts/AlertContainer.js +28 -26
- package/lib/alerts/AlertProvider.d.ts +7 -0
- package/lib/alerts/AlertProvider.js +30 -25
- package/lib/alerts/BaseAlert.d.ts +7 -0
- package/lib/alerts/BaseAlert.js +22 -15
- package/lib/alerts/Message.d.ts +7 -0
- package/lib/alerts/Message.js +41 -50
- package/lib/alerts/alert.spec.js +36 -59
- package/lib/alerts/helpers.d.ts +7 -0
- package/lib/alerts/helpers.js +4 -7
- package/lib/alerts/index.d.ts +6 -0
- package/lib/alerts/index.js +6 -6
- package/lib/alerts/types.d.ts +48 -0
- package/lib/alerts/types.js +5 -0
- package/lib/alerts/withAlert.d.ts +7 -0
- package/lib/alerts/withAlert.js +10 -10
- package/lib/assets/styles/commons.scss +0 -10
- package/lib/assets/styles/dropdown.scss +0 -1
- package/lib/assets/styles/list.scss +0 -8
- package/lib/assets/styles/table.scss +7 -2
- package/lib/assets/styles/treetable.scss +10 -12
- package/lib/avatar/avatar.spec.js +63 -95
- package/lib/avatar/index.d.ts +12 -0
- package/lib/avatar/index.js +24 -69
- package/lib/avatar/types.d.ts +31 -0
- package/lib/avatar/types.js +5 -0
- package/lib/badge/badge.spec.js +33 -55
- package/lib/badge/index.d.ts +6 -0
- package/lib/badge/index.js +12 -28
- package/lib/badge/types.d.ts +13 -0
- package/lib/badge/types.js +5 -0
- package/lib/buttons/ActivateButton.d.ts +9 -0
- package/lib/buttons/ActivateButton.js +8 -8
- package/lib/buttons/AddButton.d.ts +9 -0
- package/lib/buttons/AddButton.js +8 -8
- package/lib/buttons/Button.d.ts +12 -0
- package/lib/buttons/Button.js +22 -14
- package/lib/buttons/ButtonGroups.d.ts +8 -0
- package/lib/buttons/ButtonGroups.js +4 -9
- package/lib/buttons/CancelButton.d.ts +9 -0
- package/lib/buttons/CancelButton.js +20 -7
- package/lib/buttons/DangerButton.d.ts +9 -0
- package/lib/buttons/DangerButton.js +18 -23
- package/lib/buttons/DefaultButton.d.ts +12 -0
- package/lib/buttons/DefaultButton.js +90 -142
- package/lib/buttons/DestroyButton.d.ts +9 -0
- package/lib/buttons/DestroyButton.js +18 -9
- package/lib/buttons/EditButton.d.ts +9 -0
- package/lib/buttons/EditButton.js +8 -8
- package/lib/buttons/InactivateButton.d.ts +9 -0
- package/lib/buttons/InactivateButton.js +8 -8
- package/lib/buttons/InfoButton.d.ts +9 -0
- package/lib/buttons/InfoButton.js +18 -23
- package/lib/buttons/PrimaryButton.d.ts +9 -0
- package/lib/buttons/PrimaryButton.js +18 -23
- package/lib/buttons/RestoreButton.d.ts +9 -0
- package/lib/buttons/RestoreButton.js +8 -8
- package/lib/buttons/SaveButton.d.ts +9 -0
- package/lib/buttons/SaveButton.js +19 -6
- package/lib/buttons/SpinnerLoading.js +2 -2
- package/lib/buttons/SuccessButton.d.ts +9 -0
- package/lib/buttons/SuccessButton.js +17 -22
- package/lib/buttons/WarningButton.d.ts +9 -0
- package/lib/buttons/WarningButton.js +17 -22
- package/lib/buttons/button_container/index.d.ts +12 -0
- package/lib/buttons/button_container/index.js +12 -25
- package/lib/buttons/buttons.spec.js +184 -258
- package/lib/buttons/index.d.ts +21 -0
- package/lib/buttons/index.js +33 -33
- package/lib/buttons/split_button/index.d.ts +9 -0
- package/lib/buttons/split_button/index.js +20 -37
- package/lib/buttons/types.d.ts +44 -0
- package/lib/buttons/types.js +5 -0
- package/lib/calendar/DangerCalendar.d.ts +7 -0
- package/lib/calendar/DangerCalendar.js +17 -8
- package/lib/calendar/InfoCalendar.d.ts +7 -0
- package/lib/calendar/InfoCalendar.js +17 -8
- package/lib/calendar/PrimaryCalendar.d.ts +7 -0
- package/lib/calendar/PrimaryCalendar.js +17 -8
- package/lib/calendar/SuccessCalendar.d.ts +7 -0
- package/lib/calendar/SuccessCalendar.js +17 -8
- package/lib/calendar/WarningCalendar.d.ts +7 -0
- package/lib/calendar/WarningCalendar.js +17 -8
- package/lib/calendar/base/Day.d.ts +7 -0
- package/lib/calendar/base/Day.js +9 -15
- package/lib/calendar/base/Month.d.ts +7 -0
- package/lib/calendar/base/Month.js +19 -14
- package/lib/calendar/base/Week.d.ts +7 -0
- package/lib/calendar/base/Week.js +19 -15
- package/lib/calendar/base/helpers.d.ts +62 -0
- package/lib/calendar/base/helpers.js +16 -16
- package/lib/calendar/base/index.d.ts +7 -0
- package/lib/calendar/base/index.js +58 -51
- package/lib/calendar/calendar.spec.js +44 -75
- package/lib/calendar/index.d.ts +10 -0
- package/lib/calendar/index.js +15 -15
- package/lib/calendar/types.d.ts +25 -0
- package/lib/calendar/types.js +5 -0
- package/lib/checkbox/Label.d.ts +11 -0
- package/lib/checkbox/Label.js +8 -18
- package/lib/checkbox/checkbox.spec.js +43 -84
- package/lib/checkbox/index.d.ts +13 -0
- package/lib/checkbox/index.js +68 -95
- package/lib/checkbox/types.d.ts +42 -0
- package/lib/checkbox/types.js +5 -0
- package/lib/dialog/Alert.d.ts +6 -0
- package/lib/dialog/Alert.js +11 -16
- package/lib/dialog/Custom.d.ts +6 -0
- package/lib/dialog/Custom.js +28 -36
- package/lib/dialog/Error.d.ts +6 -0
- package/lib/dialog/Error.js +9 -14
- package/lib/dialog/Information.d.ts +6 -0
- package/lib/dialog/Information.js +9 -14
- package/lib/dialog/Question.d.ts +6 -0
- package/lib/dialog/Question.js +16 -27
- package/lib/dialog/Warning.d.ts +6 -0
- package/lib/dialog/Warning.js +9 -14
- package/lib/dialog/base/Content.d.ts +6 -0
- package/lib/dialog/base/Content.js +5 -14
- package/lib/dialog/base/Footer.d.ts +6 -0
- package/lib/dialog/base/Footer.js +6 -12
- package/lib/dialog/base/Header.d.ts +6 -0
- package/lib/dialog/base/Header.js +17 -31
- package/lib/dialog/base/index.d.ts +6 -0
- package/lib/dialog/base/index.js +14 -36
- package/lib/dialog/base/style.js +2 -2
- package/lib/dialog/dialog.spec.js +95 -169
- package/lib/dialog/form/index.d.ts +6 -0
- package/lib/dialog/form/index.js +37 -47
- package/lib/dialog/index.d.ts +10 -0
- package/lib/dialog/index.js +16 -16
- package/lib/dialog/types.d.ts +68 -0
- package/lib/dialog/types.js +5 -0
- package/lib/drawer/Content.d.ts +7 -0
- package/lib/drawer/Content.js +8 -17
- package/lib/drawer/Drawer.d.ts +7 -0
- package/lib/drawer/Drawer.js +51 -62
- package/lib/drawer/Drawer.spec.js +62 -105
- package/lib/drawer/Header.d.ts +7 -0
- package/lib/drawer/Header.js +29 -48
- package/lib/drawer/helpers.d.ts +7 -0
- package/lib/drawer/helpers.js +5 -5
- package/lib/drawer/index.d.ts +9 -0
- package/lib/drawer/index.js +9 -9
- package/lib/drawer/types.d.ts +34 -0
- package/lib/drawer/types.js +5 -0
- package/lib/dropdown/Popup.d.ts +6 -0
- package/lib/dropdown/Popup.js +37 -21
- package/lib/dropdown/dropdown.spec.js +41 -65
- package/lib/dropdown/helper.d.ts +4 -0
- package/lib/dropdown/helper.js +2 -2
- package/lib/dropdown/types.d.ts +43 -0
- package/lib/dropdown/types.js +5 -0
- package/lib/dropdown/withDropdown.d.ts +10 -0
- package/lib/dropdown/withDropdown.js +37 -52
- package/lib/fieldset/fieldset.spec.js +80 -126
- package/lib/fieldset/index.d.ts +8 -0
- package/lib/fieldset/index.js +35 -56
- package/lib/fieldset/types.d.ts +28 -0
- package/lib/fieldset/types.js +5 -0
- package/lib/form/Field.d.ts +6 -0
- package/lib/form/Field.js +37 -54
- package/lib/form/FieldArray.d.ts +6 -0
- package/lib/form/FieldArray.js +31 -61
- package/lib/form/FieldNumber.d.ts +6 -0
- package/lib/form/FieldNumber.js +11 -35
- package/lib/form/FieldPeriod.d.ts +6 -0
- package/lib/form/FieldPeriod.js +31 -53
- package/lib/form/form.spec.js +63 -105
- package/lib/form/helpers.d.ts +11 -0
- package/lib/form/helpers.js +26 -21
- package/lib/form/index.d.ts +9 -0
- package/lib/form/index.js +100 -118
- package/lib/form/types.d.ts +168 -0
- package/lib/form/types.js +5 -0
- package/lib/form/withFieldHOC.d.ts +6 -0
- package/lib/form/withFieldHOC.js +51 -125
- package/lib/form/withFormSecurity.d.ts +7 -0
- package/lib/form/withFormSecurity.js +31 -39
- package/lib/gridlayout/GridCol.d.ts +6 -0
- package/lib/gridlayout/GridCol.js +8 -23
- package/lib/gridlayout/GridRow.d.ts +6 -0
- package/lib/gridlayout/GridRow.js +9 -29
- package/lib/gridlayout/gridLayout.spec.js +47 -74
- package/lib/gridlayout/index.d.ts +5 -0
- package/lib/gridlayout/index.js +6 -6
- package/lib/gridlayout/types.d.ts +20 -0
- package/lib/gridlayout/types.js +5 -0
- package/lib/icons/helper.d.ts +560 -0
- package/lib/icons/helper.js +560 -563
- package/lib/icons/icons.spec.js +29 -45
- package/lib/icons/index.d.ts +8 -0
- package/lib/icons/index.js +29 -46
- package/lib/icons/types.d.ts +28 -0
- package/lib/icons/types.js +5 -0
- package/lib/index.d.ts +35 -0
- package/lib/index.js +18 -18
- package/lib/inputs/base/InputTextBase.d.ts +8 -0
- package/lib/inputs/base/InputTextBase.js +58 -157
- package/lib/inputs/base/base.spec.js +187 -302
- package/lib/inputs/base/helpers.d.ts +14 -0
- package/lib/inputs/base/helpers.js +11 -11
- package/lib/inputs/base/types.d.ts +68 -0
- package/lib/inputs/base/types.js +5 -0
- package/lib/inputs/color/color_input.spec.js +37 -71
- package/lib/inputs/color/index.d.ts +7 -0
- package/lib/inputs/color/index.js +55 -43
- package/lib/inputs/color/types.d.ts +14 -0
- package/lib/inputs/color/types.js +5 -0
- package/lib/inputs/date/Dialog.d.ts +10 -0
- package/lib/inputs/date/Dialog.js +5 -12
- package/lib/inputs/date/Dropdown.d.ts +10 -0
- package/lib/inputs/date/Dropdown.js +21 -63
- package/lib/inputs/date/date.spec.js +79 -160
- package/lib/inputs/date/helpers.d.ts +14 -0
- package/lib/inputs/date/helpers.js +6 -6
- package/lib/inputs/date/index.d.ts +10 -0
- package/lib/inputs/date/index.js +265 -415
- package/lib/inputs/date/types.d.ts +53 -0
- package/lib/inputs/date/types.js +5 -0
- package/lib/inputs/inputHOC.d.ts +11 -0
- package/lib/inputs/inputHOC.js +53 -99
- package/lib/inputs/mask/BaseMask.d.ts +12 -0
- package/lib/inputs/mask/BaseMask.js +14 -25
- package/lib/inputs/mask/Cnpj.d.ts +12 -0
- package/lib/inputs/mask/Cnpj.js +32 -29
- package/lib/inputs/mask/Cpf.d.ts +12 -0
- package/lib/inputs/mask/Cpf.js +33 -31
- package/lib/inputs/mask/Phone.d.ts +9 -0
- package/lib/inputs/mask/Phone.js +7 -15
- package/lib/inputs/mask/ZipCode.d.ts +9 -0
- package/lib/inputs/mask/ZipCode.js +7 -7
- package/lib/inputs/mask/helpers.d.ts +14 -0
- package/lib/inputs/mask/helpers.js +25 -40
- package/lib/inputs/mask/imaskHOC.d.ts +14 -0
- package/lib/inputs/mask/imaskHOC.js +189 -251
- package/lib/inputs/mask/index.d.ts +11 -0
- package/lib/inputs/mask/index.js +11 -11
- package/lib/inputs/mask/input_mask.spec.js +193 -306
- package/lib/inputs/mask/types.d.ts +66 -0
- package/lib/inputs/mask/types.js +5 -0
- package/lib/inputs/multiSelect/ActionButtons.d.ts +10 -0
- package/lib/inputs/multiSelect/ActionButtons.js +10 -22
- package/lib/inputs/multiSelect/Dropdown.d.ts +10 -0
- package/lib/inputs/multiSelect/Dropdown.js +76 -93
- package/lib/inputs/multiSelect/helper.d.ts +9 -0
- package/lib/inputs/multiSelect/helper.js +2 -2
- package/lib/inputs/multiSelect/index.d.ts +10 -0
- package/lib/inputs/multiSelect/index.js +107 -107
- package/lib/inputs/multiSelect/types.d.ts +49 -0
- package/lib/inputs/multiSelect/types.js +5 -0
- package/lib/inputs/number/BaseNumber.d.ts +12 -0
- package/lib/inputs/number/BaseNumber.js +17 -29
- package/lib/inputs/number/Currency.d.ts +12 -0
- package/lib/inputs/number/Currency.js +10 -20
- package/lib/inputs/number/Decimal.d.ts +12 -0
- package/lib/inputs/number/Decimal.js +5 -5
- package/lib/inputs/number/format_number.d.ts +4 -0
- package/lib/inputs/number/format_number.js +1 -1
- package/lib/inputs/number/index.d.ts +14 -0
- package/lib/inputs/number/index.js +16 -22
- package/lib/inputs/number/numberfield.spec.js +47 -88
- package/lib/inputs/number/types.d.ts +30 -0
- package/lib/inputs/number/types.js +5 -0
- package/lib/inputs/period/Dialog.d.ts +11 -0
- package/lib/inputs/period/Dialog.js +5 -12
- package/lib/inputs/period/Dropdown.d.ts +11 -0
- package/lib/inputs/period/Dropdown.js +19 -63
- package/lib/inputs/period/PeriodList.d.ts +11 -0
- package/lib/inputs/period/PeriodList.js +12 -25
- package/lib/inputs/period/helper.d.ts +19 -0
- package/lib/inputs/period/helper.js +34 -74
- package/lib/inputs/period/index.d.ts +11 -0
- package/lib/inputs/period/index.js +158 -198
- package/lib/inputs/period/types.d.ts +58 -0
- package/lib/inputs/period/types.js +5 -0
- package/lib/inputs/search/index.d.ts +11 -0
- package/lib/inputs/search/index.js +147 -263
- package/lib/inputs/search/search_input.spec.js +50 -90
- package/lib/inputs/select/ActionButtons.d.ts +11 -0
- package/lib/inputs/select/ActionButtons.js +20 -26
- package/lib/inputs/select/Dropdown.d.ts +11 -0
- package/lib/inputs/select/Dropdown.js +59 -82
- package/lib/inputs/select/helper.d.ts +25 -0
- package/lib/inputs/select/helper.js +19 -15
- package/lib/inputs/select/index.d.ts +10 -0
- package/lib/inputs/select/index.js +25 -21
- package/lib/inputs/select/multiple/Selecteds.d.ts +10 -0
- package/lib/inputs/select/multiple/Selecteds.js +9 -17
- package/lib/inputs/select/multiple/index.d.ts +10 -0
- package/lib/inputs/select/multiple/index.js +299 -408
- package/lib/inputs/select/select.spec.js +135 -186
- package/lib/inputs/select/simple/index.d.ts +10 -0
- package/lib/inputs/select/simple/index.js +310 -457
- package/lib/inputs/select/types.d.ts +94 -0
- package/lib/inputs/select/types.js +5 -0
- package/lib/inputs/text/index.d.ts +11 -0
- package/lib/inputs/text/index.js +6 -5
- package/lib/inputs/text/textfield.spec.js +46 -87
- package/lib/inputs/text/types.d.ts +25 -0
- package/lib/inputs/text/types.js +5 -0
- package/lib/inputs/textarea/index.d.ts +9 -0
- package/lib/inputs/textarea/index.js +11 -21
- package/lib/inputs/textarea/textarea.spec.js +16 -29
- package/lib/inputs/textarea/types.d.ts +13 -0
- package/lib/inputs/textarea/types.js +5 -0
- package/lib/inputs/types.d.ts +146 -0
- package/lib/inputs/types.js +5 -0
- package/lib/internals/colorStyles.d.ts +9 -0
- package/lib/internals/colorStyles.js +2 -2
- package/lib/internals/constants.d.ts +11 -0
- package/lib/internals/constants.js +1 -1
- package/lib/internals/types.d.ts +21 -0
- package/lib/internals/types.js +5 -0
- package/lib/internals/withTooltip.d.ts +11 -0
- package/lib/internals/withTooltip.js +50 -48
- package/lib/labelMessages/index.d.ts +7 -0
- package/lib/labelMessages/index.js +48 -56
- package/lib/labelMessages/labelMessages.spec.js +44 -77
- package/lib/labelMessages/types.d.ts +18 -0
- package/lib/labelMessages/types.js +5 -0
- package/lib/labels/DangerLabel.d.ts +9 -0
- package/lib/labels/DangerLabel.js +18 -9
- package/lib/labels/DefaultLabel.d.ts +12 -0
- package/lib/labels/DefaultLabel.js +46 -68
- package/lib/labels/InfoLabel.d.ts +9 -0
- package/lib/labels/InfoLabel.js +18 -9
- package/lib/labels/PrimaryLabel.d.ts +9 -0
- package/lib/labels/PrimaryLabel.js +18 -9
- package/lib/labels/SuccessLabel.d.ts +9 -0
- package/lib/labels/SuccessLabel.js +18 -9
- package/lib/labels/WarningLabel.d.ts +9 -0
- package/lib/labels/WarningLabel.js +18 -9
- package/lib/labels/index.d.ts +13 -0
- package/lib/labels/index.js +16 -16
- package/lib/labels/label.spec.js +59 -86
- package/lib/labels/label_container/index.d.ts +12 -0
- package/lib/labels/label_container/index.js +7 -17
- package/lib/labels/types.d.ts +24 -0
- package/lib/labels/types.js +5 -0
- package/lib/list/Header.d.ts +7 -0
- package/lib/list/Header.js +5 -18
- package/lib/list/Item.d.ts +7 -0
- package/lib/list/Item.js +54 -82
- package/lib/list/Separator.d.ts +3 -0
- package/lib/list/Separator.js +5 -5
- package/lib/list/helpers.d.ts +12 -0
- package/lib/list/helpers.js +4 -4
- package/lib/list/index.d.ts +10 -0
- package/lib/list/index.js +63 -72
- package/lib/list/list.spec.js +225 -371
- package/lib/list/types.d.ts +64 -0
- package/lib/list/types.js +5 -0
- package/lib/menus/float/MenuItem.d.ts +7 -0
- package/lib/menus/float/MenuItem.js +18 -38
- package/lib/menus/float/float-menu.spec.js +38 -72
- package/lib/menus/float/helpers.d.ts +7 -0
- package/lib/menus/float/helpers.js +5 -5
- package/lib/menus/float/index.d.ts +8 -0
- package/lib/menus/float/index.js +18 -38
- package/lib/menus/float/types.d.ts +27 -0
- package/lib/menus/float/types.js +5 -0
- package/lib/menus/index.d.ts +6 -0
- package/lib/menus/index.js +5 -5
- package/lib/menus/sidenav/ExpandMenu.d.ts +10 -0
- package/lib/menus/sidenav/ExpandMenu.js +7 -19
- package/lib/menus/sidenav/MenuLink.d.ts +13 -0
- package/lib/menus/sidenav/MenuLink.js +6 -20
- package/lib/menus/sidenav/NavMenuGroup.d.ts +10 -0
- package/lib/menus/sidenav/NavMenuGroup.js +6 -17
- package/lib/menus/sidenav/NavMenuItem.d.ts +13 -0
- package/lib/menus/sidenav/NavMenuItem.js +47 -63
- package/lib/menus/sidenav/NavSubMenuItem.d.ts +10 -0
- package/lib/menus/sidenav/NavSubMenuItem.js +24 -25
- package/lib/menus/sidenav/helpers.d.ts +12 -0
- package/lib/menus/sidenav/helpers.js +6 -6
- package/lib/menus/sidenav/index.d.ts +14 -0
- package/lib/menus/sidenav/index.js +71 -83
- package/lib/menus/sidenav/popup_menu_search/EmptyList.d.ts +10 -0
- package/lib/menus/sidenav/popup_menu_search/EmptyList.js +10 -19
- package/lib/menus/sidenav/popup_menu_search/index.d.ts +10 -0
- package/lib/menus/sidenav/popup_menu_search/index.js +41 -28
- package/lib/menus/sidenav/sidenav.spec.js +40 -89
- package/lib/menus/sidenav/types.d.ts +82 -0
- package/lib/menus/sidenav/types.js +5 -0
- package/lib/noPermission/index.d.ts +3 -0
- package/lib/noPermission/index.js +8 -8
- package/lib/panel/Content.d.ts +8 -0
- package/lib/panel/Content.js +15 -27
- package/lib/panel/DangerPanel.d.ts +8 -0
- package/lib/panel/DangerPanel.js +8 -8
- package/lib/panel/Default.d.ts +8 -0
- package/lib/panel/Default.js +41 -58
- package/lib/panel/Header.d.ts +8 -0
- package/lib/panel/Header.js +19 -41
- package/lib/panel/InfoPanel.d.ts +8 -0
- package/lib/panel/InfoPanel.js +8 -8
- package/lib/panel/PrimaryPanel.d.ts +8 -0
- package/lib/panel/PrimaryPanel.js +8 -8
- package/lib/panel/SuccessPanel.d.ts +8 -0
- package/lib/panel/SuccessPanel.js +8 -8
- package/lib/panel/ToolBar.d.ts +8 -0
- package/lib/panel/ToolBar.js +5 -10
- package/lib/panel/WarningPanel.d.ts +8 -0
- package/lib/panel/WarningPanel.js +8 -8
- package/lib/panel/helpers.d.ts +4 -0
- package/lib/panel/helpers.js +10 -6
- package/lib/panel/index.d.ts +13 -0
- package/lib/panel/index.js +19 -19
- package/lib/panel/panel.spec.js +76 -113
- package/lib/panel/types.d.ts +4 -0
- package/lib/panel/types.js +5 -0
- package/lib/permissionValidations.d.ts +14 -0
- package/lib/permissionValidations.js +14 -12
- package/lib/popover/PopoverText.d.ts +8 -0
- package/lib/popover/PopoverText.js +4 -9
- package/lib/popover/PopoverTitle.d.ts +8 -0
- package/lib/popover/PopoverTitle.js +4 -9
- package/lib/popover/index.d.ts +13 -0
- package/lib/popover/index.js +35 -49
- package/lib/popover/popover.spec.js +44 -74
- package/lib/popover/types.d.ts +21 -0
- package/lib/popover/types.js +5 -0
- package/lib/progress/Bar.d.ts +6 -0
- package/lib/progress/Bar.js +42 -52
- package/lib/progress/index.d.ts +7 -0
- package/lib/progress/index.js +19 -27
- package/lib/progress/progress.spec.js +38 -46
- package/lib/progress/types.d.ts +37 -0
- package/lib/progress/types.js +5 -0
- package/lib/radio/index.d.ts +12 -0
- package/lib/radio/index.js +45 -59
- package/lib/radio/radio.spec.js +51 -78
- package/lib/radio/types.d.ts +18 -0
- package/lib/radio/types.js +5 -0
- package/lib/skeleton/SkeletonContainer.d.ts +7 -0
- package/lib/skeleton/SkeletonContainer.js +4 -17
- package/lib/skeleton/index.d.ts +8 -0
- package/lib/skeleton/index.js +16 -35
- package/lib/skeleton/types.d.ts +21 -0
- package/lib/skeleton/types.js +5 -0
- package/lib/spinner/SpinnerLoading.d.ts +7 -0
- package/lib/spinner/SpinnerLoading.js +45 -53
- package/lib/spinner/index.d.ts +7 -0
- package/lib/spinner/index.js +42 -37
- package/lib/spinner/spinner.spec.js +47 -69
- package/lib/spinner/types.d.ts +20 -0
- package/lib/spinner/types.js +5 -0
- package/lib/split/Split.d.ts +6 -0
- package/lib/split/Split.js +83 -90
- package/lib/split/SplitSide.d.ts +6 -0
- package/lib/split/SplitSide.js +8 -28
- package/lib/split/helpers.d.ts +10 -0
- package/lib/split/helpers.js +5 -5
- package/lib/split/index.d.ts +5 -0
- package/lib/split/index.js +6 -6
- package/lib/split/split.spec.js +60 -73
- package/lib/split/types.d.ts +34 -0
- package/lib/split/types.js +5 -0
- package/lib/table/Body.d.ts +6 -0
- package/lib/table/Body.js +25 -32
- package/lib/table/Header.d.ts +6 -0
- package/lib/table/Header.js +52 -31
- package/lib/table/HeaderColumn.d.ts +6 -0
- package/lib/table/HeaderColumn.js +14 -28
- package/lib/table/Row.d.ts +6 -0
- package/lib/table/Row.js +15 -36
- package/lib/table/RowColumn.d.ts +6 -0
- package/lib/table/RowColumn.js +21 -39
- package/lib/table/helpers.d.ts +8 -0
- package/lib/table/helpers.js +6 -6
- package/lib/table/index.d.ts +11 -0
- package/lib/table/index.js +45 -71
- package/lib/table/table.spec.js +108 -163
- package/lib/table/types.d.ts +84 -0
- package/lib/table/types.js +5 -0
- package/lib/tabs/DropdownItems.d.ts +9 -0
- package/lib/tabs/DropdownItems.js +21 -31
- package/lib/tabs/Menu.d.ts +9 -0
- package/lib/tabs/Menu.js +22 -26
- package/lib/tabs/MenuItems.d.ts +9 -0
- package/lib/tabs/MenuItems.js +34 -48
- package/lib/tabs/Panel.d.ts +9 -0
- package/lib/tabs/Panel.js +38 -61
- package/lib/tabs/index.d.ts +10 -0
- package/lib/tabs/index.js +125 -99
- package/lib/tabs/tabHelpers.d.ts +21 -0
- package/lib/tabs/tabHelpers.js +13 -11
- package/lib/tabs/tabs.spec.js +121 -212
- package/lib/tabs/types.d.ts +63 -0
- package/lib/tabs/types.js +5 -0
- package/lib/toolbar/ButtonBar.d.ts +10 -0
- package/lib/toolbar/ButtonBar.js +54 -35
- package/lib/toolbar/LabelBar.d.ts +10 -0
- package/lib/toolbar/LabelBar.js +45 -32
- package/lib/toolbar/Separator.d.ts +3 -0
- package/lib/toolbar/Separator.js +5 -5
- package/lib/toolbar/ToolBarGroup.d.ts +10 -0
- package/lib/toolbar/ToolBarGroup.js +10 -16
- package/lib/toolbar/helpers.d.ts +10 -0
- package/lib/toolbar/helpers.js +3 -3
- package/lib/toolbar/index.d.ts +14 -0
- package/lib/toolbar/index.js +35 -41
- package/lib/toolbar/toolbar.spec.js +142 -190
- package/lib/toolbar/types.d.ts +43 -0
- package/lib/toolbar/types.js +5 -0
- package/lib/tooltip/index.d.ts +6 -0
- package/lib/tooltip/index.js +35 -44
- package/lib/tooltip/tooltip.spec.js +40 -55
- package/lib/tooltip/types.d.ts +16 -0
- package/lib/tooltip/types.js +5 -0
- package/lib/treetable/Body.js +46 -0
- package/lib/treetable/Header.js +27 -0
- package/lib/treetable/Row.js +261 -0
- package/lib/treetable/helpers.js +30 -61
- package/lib/treetable/index.js +13 -112
- package/lib/treetable/types.d.js +5 -0
- package/lib/treeview/Header.d.ts +7 -0
- package/lib/treeview/Header.js +5 -17
- package/lib/treeview/Node.d.ts +7 -0
- package/lib/treeview/Node.js +281 -391
- package/lib/treeview/constants.d.ts +7 -0
- package/lib/treeview/constants.js +3 -4
- package/lib/treeview/index.d.ts +9 -0
- package/lib/treeview/index.js +386 -555
- package/lib/treeview/treeview.spec.js +65 -102
- package/lib/treeview/types.d.ts +104 -0
- package/lib/treeview/types.js +5 -0
- package/lib/treeview_old/Header.js +8 -8
- package/lib/treeview_old/Node.js +38 -32
- package/lib/treeview_old/index.js +10 -10
- package/lib/types-3c6f1c20.d.ts +46 -0
- package/lib/uitour/helpers.d.ts +8 -0
- package/lib/uitour/helpers.js +1 -1
- package/lib/uitour/index.d.ts +6 -0
- package/lib/uitour/index.js +54 -59
- package/lib/uitour/types.d.ts +30 -0
- package/lib/uitour/types.js +5 -0
- package/lib/uitour/uitour.spec.js +63 -85
- package/package.json +57 -18
- package/scripts/start.js +135 -0
- package/tsconfig.json +32 -0
- package/tsup.config.ts +10 -0
- package/.eslintrc.js +0 -26
- package/.husky/pre-commit +0 -4
- package/lib/treetable/TRow.js +0 -255
- package/lib/treetable/treetable.spec.js +0 -302
package/lib/inputs/mask/Phone.js
CHANGED
|
@@ -1,32 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
3
|
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
8
|
-
exports
|
|
9
|
-
|
|
10
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
6
|
+
exports.default = void 0;
|
|
11
7
|
|
|
12
8
|
var _react = _interopRequireDefault(require("react"));
|
|
13
9
|
|
|
14
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
15
|
-
|
|
16
10
|
var _BaseMask = _interopRequireDefault(require("./BaseMask"));
|
|
17
11
|
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
+
|
|
14
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
15
|
+
|
|
18
16
|
var PhoneField = function PhoneField(props) {
|
|
19
17
|
var cellNumber = props.cellNumber;
|
|
20
|
-
return /*#__PURE__*/_react
|
|
18
|
+
return /*#__PURE__*/_react.default.createElement(_BaseMask.default, _extends({}, props, {
|
|
21
19
|
mask: cellNumber ? '(00) 00000-0000' : '(00) 0000-0000'
|
|
22
20
|
}));
|
|
23
21
|
};
|
|
24
22
|
|
|
25
|
-
PhoneField.propTypes = {
|
|
26
|
-
cellNumber: _propTypes["default"].bool
|
|
27
|
-
};
|
|
28
|
-
PhoneField.defaultProps = {
|
|
29
|
-
cellNumber: false
|
|
30
|
-
};
|
|
31
23
|
var _default = PhoneField;
|
|
32
|
-
exports
|
|
24
|
+
exports.default = _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IZipCode } from './types.js';
|
|
2
|
+
import 'react';
|
|
3
|
+
import '../../@types/PermissionAttr.js';
|
|
4
|
+
import '../base/types.js';
|
|
5
|
+
import '../../@types/Period.js';
|
|
6
|
+
|
|
7
|
+
declare const ZipCodeField: (props: IZipCode) => JSX.Element;
|
|
8
|
+
|
|
9
|
+
export { ZipCodeField as default };
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
3
|
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
8
|
-
exports
|
|
9
|
-
|
|
10
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
6
|
+
exports.default = void 0;
|
|
11
7
|
|
|
12
8
|
var _react = _interopRequireDefault(require("react"));
|
|
13
9
|
|
|
14
10
|
var _BaseMask = _interopRequireDefault(require("./BaseMask"));
|
|
15
11
|
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
+
|
|
14
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
15
|
+
|
|
16
16
|
var ZipCodeField = function ZipCodeField(props) {
|
|
17
|
-
return /*#__PURE__*/_react
|
|
17
|
+
return /*#__PURE__*/_react.default.createElement(_BaseMask.default, _extends({}, props, {
|
|
18
18
|
mask: "00000-000"
|
|
19
19
|
}));
|
|
20
20
|
};
|
|
21
21
|
|
|
22
22
|
var _default = ZipCodeField;
|
|
23
|
-
exports
|
|
23
|
+
exports.default = _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AnyMaskedOptions } from 'imask';
|
|
2
|
+
import { IMaskHOCProps } from '../types.js';
|
|
3
|
+
import 'react';
|
|
4
|
+
import '../../@types/PermissionAttr.js';
|
|
5
|
+
import '../../@types/DataCombo.js';
|
|
6
|
+
import '../select/types.js';
|
|
7
|
+
import '../base/types.js';
|
|
8
|
+
import '../../@types/Period.js';
|
|
9
|
+
|
|
10
|
+
declare function extractNonMaskProps(props: IMaskHOCProps, maskProps: AnyMaskedOptions): any;
|
|
11
|
+
declare function CPFValidation(cpf?: string, returnMessage?: (msg: string) => void): void | "CPF inválido";
|
|
12
|
+
declare function CNPJValidation(cnpj?: string, returnMessage?: (msg: string) => void): void | "CNPJ inválido";
|
|
13
|
+
|
|
14
|
+
export { CNPJValidation, CPFValidation, extractNonMaskProps };
|
|
@@ -1,79 +1,64 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
3
|
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
8
|
-
exports.extractNonMaskProps = extractNonMaskProps;
|
|
9
|
-
exports.extractOptionsFromProps = extractOptionsFromProps;
|
|
10
|
-
exports.CPFValidation = CPFValidation;
|
|
11
6
|
exports.CNPJValidation = CNPJValidation;
|
|
7
|
+
exports.CPFValidation = CPFValidation;
|
|
8
|
+
exports.extractNonMaskProps = extractNonMaskProps;
|
|
9
|
+
|
|
10
|
+
var _lodash = require("lodash");
|
|
12
11
|
|
|
13
|
-
var
|
|
12
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
14
13
|
|
|
15
14
|
/* eslint-disable no-plusplus */
|
|
16
|
-
function extractNonMaskProps(props,
|
|
17
|
-
var nonMask = (
|
|
18
|
-
|
|
15
|
+
function extractNonMaskProps(props, maskProps) {
|
|
16
|
+
var nonMask = _extends({}, props);
|
|
17
|
+
|
|
18
|
+
Object.keys(maskProps).forEach(function (maskProp) {
|
|
19
19
|
delete nonMask[maskProp];
|
|
20
20
|
});
|
|
21
|
+
delete nonMask.value;
|
|
22
|
+
delete nonMask.onChange;
|
|
21
23
|
return nonMask;
|
|
22
24
|
}
|
|
23
25
|
|
|
24
|
-
function extractOptionsFromProps(props, maskedPropTypes) {
|
|
25
|
-
var optionsProps = (0, _extends2["default"])({}, props); // Remove todas as propriedades que tenham sido passadas que nao são do componente.
|
|
26
|
-
|
|
27
|
-
Object.keys(optionsProps).filter(function (prop) {
|
|
28
|
-
return !Object.prototype.hasOwnProperty.call(maskedPropTypes, prop);
|
|
29
|
-
}).forEach(function (nonMaskProp) {
|
|
30
|
-
delete optionsProps[nonMaskProp];
|
|
31
|
-
});
|
|
32
|
-
delete optionsProps.value;
|
|
33
|
-
delete optionsProps.unmask;
|
|
34
|
-
return optionsProps;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
26
|
var allEqualDigits = function allEqualDigits(input) {
|
|
38
|
-
return input.split('').every(function (
|
|
39
|
-
return
|
|
27
|
+
return input.split('').every(function (char) {
|
|
28
|
+
return char === input[0];
|
|
40
29
|
});
|
|
41
30
|
};
|
|
42
31
|
|
|
43
|
-
function CPFValidation() {
|
|
44
|
-
var
|
|
45
|
-
var returnMessage = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;
|
|
46
|
-
var stringCpf = cpf.replace(/[^\d]+/g, '');
|
|
32
|
+
function CPFValidation(cpf, returnMessage) {
|
|
33
|
+
var stringCpf = cpf ? cpf.replace(/[^\d]+/g, '') : '';
|
|
47
34
|
var sum = 0;
|
|
48
35
|
var splitRest;
|
|
49
36
|
if (stringCpf === '' || stringCpf.length < 11) return returnMessage ? returnMessage('CPF inválido') : 'CPF inválido';
|
|
50
37
|
if (allEqualDigits(stringCpf)) return returnMessage ? returnMessage('CPF inválido') : 'CPF inválido'; // 1st digit validation
|
|
51
38
|
|
|
52
39
|
for (var i = 0; i < 9; i++) {
|
|
53
|
-
sum += parseInt(stringCpf.charAt(i), 10) * (10 - i);
|
|
40
|
+
sum += (0, _lodash.parseInt)(stringCpf.charAt(i), 10) * (10 - i);
|
|
54
41
|
}
|
|
55
42
|
|
|
56
43
|
splitRest = sum * 10 % 11;
|
|
57
44
|
if (splitRest === 10 || splitRest === 11) splitRest = 0;
|
|
58
|
-
if (splitRest !== parseInt(stringCpf.charAt(9), 10)) return returnMessage ? returnMessage('CPF inválido') : 'CPF inválido'; // 2nd digit validation
|
|
45
|
+
if (splitRest !== (0, _lodash.parseInt)(stringCpf.charAt(9), 10)) return returnMessage ? returnMessage('CPF inválido') : 'CPF inválido'; // 2nd digit validation
|
|
59
46
|
|
|
60
47
|
sum = 0;
|
|
61
48
|
splitRest = 0;
|
|
62
49
|
|
|
63
50
|
for (var _i = 0; _i < 10; _i++) {
|
|
64
|
-
sum += parseInt(stringCpf.charAt(_i), 10) * (11 - _i);
|
|
51
|
+
sum += (0, _lodash.parseInt)(stringCpf.charAt(_i), 10) * (11 - _i);
|
|
65
52
|
}
|
|
66
53
|
|
|
67
54
|
splitRest = sum * 10 % 11;
|
|
68
55
|
if (splitRest === 10 || splitRest === 11) splitRest = 0;
|
|
69
|
-
if (splitRest !== parseInt(stringCpf.charAt(10), 10)) return returnMessage ? returnMessage('CPF inválido') : 'CPF inválido';
|
|
70
|
-
return returnMessage ? returnMessage(
|
|
56
|
+
if (splitRest !== (0, _lodash.parseInt)(stringCpf.charAt(10), 10)) return returnMessage ? returnMessage('CPF inválido') : 'CPF inválido';
|
|
57
|
+
return returnMessage ? returnMessage('') : undefined;
|
|
71
58
|
}
|
|
72
59
|
|
|
73
|
-
function CNPJValidation() {
|
|
74
|
-
var
|
|
75
|
-
var returnMessage = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;
|
|
76
|
-
var stringCnpj = cnpj.replace(/[^\d]+/g, '');
|
|
60
|
+
function CNPJValidation(cnpj, returnMessage) {
|
|
61
|
+
var stringCnpj = cnpj ? cnpj.replace(/[^\d]+/g, '') : '';
|
|
77
62
|
if (stringCnpj === '' || stringCnpj.length !== 14) return returnMessage ? returnMessage('CNPJ inválido') : 'CNPJ inválido';
|
|
78
63
|
if (allEqualDigits(stringCnpj)) return returnMessage ? returnMessage('CNPJ inválido') : 'CNPJ inválido';
|
|
79
64
|
var length = stringCnpj.length - 2;
|
|
@@ -83,7 +68,7 @@ function CNPJValidation() {
|
|
|
83
68
|
var pos = length - 7; // 1° digit validation
|
|
84
69
|
|
|
85
70
|
for (var i = length; i >= 1; i--) {
|
|
86
|
-
sum += numbers.charAt(length - i) * pos--;
|
|
71
|
+
sum += (0, _lodash.parseInt)(numbers.charAt(length - i)) * pos--;
|
|
87
72
|
if (pos < 2) pos = 9;
|
|
88
73
|
}
|
|
89
74
|
|
|
@@ -95,11 +80,11 @@ function CNPJValidation() {
|
|
|
95
80
|
pos = length - 7; // 2° digit validation
|
|
96
81
|
|
|
97
82
|
for (var _i2 = length; _i2 >= 1; _i2--) {
|
|
98
|
-
sum += numbers.charAt(length - _i2) * pos--;
|
|
83
|
+
sum += (0, _lodash.parseInt)(numbers.charAt(length - _i2)) * pos--;
|
|
99
84
|
if (pos < 2) pos = 9;
|
|
100
85
|
}
|
|
101
86
|
|
|
102
87
|
result = sum % 11 < 2 ? 0 : 11 - sum % 11;
|
|
103
88
|
if (result.toString() !== digits.charAt(1)) return returnMessage ? returnMessage('CNPJ inválido') : 'CNPJ inválido';
|
|
104
|
-
return returnMessage ? returnMessage(
|
|
89
|
+
return returnMessage ? returnMessage('') : undefined;
|
|
105
90
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { IMaskHOCProps } from '../types.js';
|
|
3
|
+
import '../../@types/PermissionAttr.js';
|
|
4
|
+
import '../../@types/DataCombo.js';
|
|
5
|
+
import '../select/types.js';
|
|
6
|
+
import '../base/types.js';
|
|
7
|
+
import '../../@types/Period.js';
|
|
8
|
+
|
|
9
|
+
declare const IMaskHOC: <ComponentProps extends IMaskHOCProps>(ComposedComponent: React__default.ComponentType<ComponentProps>) => {
|
|
10
|
+
(props: ComponentProps): JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export { IMaskHOC as default };
|