linear-react-components-ui 1.1.26-beta.7 → 1.1.26-beta.8
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 +2 -0
- package/lib/@types/ButtonTypes.d.ts +1 -0
- package/lib/@types/ColorStyles.d.ts +1 -0
- package/lib/@types/DataCombo.d.ts +1 -0
- package/lib/@types/Icon.d.ts +2 -0
- package/lib/@types/LabelStyles.d.ts +1 -0
- package/lib/@types/Period.d.ts +4 -0
- package/lib/@types/PermissionAttr.d.ts +12 -0
- package/lib/@types/PointerEvents.d.ts +1 -0
- package/lib/@types/Position.d.ts +1 -0
- package/lib/@types/PositionAlert.d.ts +1 -0
- package/lib/@types/Size.d.ts +1 -0
- package/lib/@types/SizePixels.d.ts +1 -0
- package/lib/@types/StorageMock.d.ts +3 -0
- package/lib/alerts/AlertContainer.d.ts +12 -0
- package/lib/alerts/AlertContainer.js +70 -0
- package/lib/alerts/AlertProvider.d.ts +3 -0
- package/lib/alerts/AlertProvider.js +46 -0
- package/lib/alerts/BaseAlert.d.ts +3 -0
- package/lib/alerts/BaseAlert.js +20 -0
- package/lib/alerts/Message.d.ts +3 -0
- package/lib/alerts/Message.js +94 -0
- package/lib/alerts/alert.spec.d.ts +0 -0
- package/lib/alerts/helpers.d.ts +3 -0
- package/lib/alerts/helpers.js +5 -0
- package/lib/alerts/index.d.ts +4 -0
- package/lib/alerts/index.js +6 -0
- package/lib/alerts/types.d.ts +47 -0
- package/lib/alerts/withAlert.d.ts +4 -0
- package/lib/alerts/withAlert.js +14 -0
- package/lib/assets/BaseAlert.css +1 -0
- package/lib/assets/Content.css +1 -0
- package/lib/assets/DefaultFile.css +1 -0
- package/lib/assets/Drawer.css +1 -0
- package/lib/assets/InputTextBase.css +1 -0
- package/lib/assets/button.css +1 -0
- package/lib/assets/gridlayout.css +1 -0
- package/lib/assets/index.css +1 -0
- package/lib/assets/index10.css +1 -0
- package/lib/assets/index11.css +1 -0
- package/lib/assets/index12.css +1 -0
- package/lib/assets/index13.css +1 -0
- package/lib/assets/index14.css +1 -0
- package/lib/assets/index15.css +1 -0
- package/lib/assets/index16.css +1 -0
- package/lib/assets/index17.css +1 -0
- package/lib/assets/index18.css +1 -0
- package/lib/assets/index19.css +1 -0
- package/lib/assets/index2.css +1 -0
- package/lib/assets/index20.css +1 -0
- package/lib/assets/index21.css +1 -0
- package/lib/assets/index22.css +1 -0
- package/lib/assets/index23.css +1 -0
- package/lib/assets/index24.css +1 -0
- package/lib/assets/index25.css +1 -0
- package/lib/assets/index26.css +1 -0
- package/lib/assets/index27.css +1 -0
- package/lib/assets/index28.css +1 -0
- package/lib/assets/index3.css +1 -0
- package/lib/assets/index4.css +1 -0
- package/lib/assets/index5.css +1 -0
- package/lib/assets/index6.css +1 -0
- package/lib/assets/index7.css +1 -0
- package/lib/assets/index8.css +1 -0
- package/lib/assets/index9.css +1 -0
- package/lib/assets/label.css +1 -0
- package/lib/assets/noPermission.css +1 -0
- package/lib/assets/panel.css +1 -0
- package/lib/assets/progressbar.css +1 -0
- package/lib/assets/radio.css +1 -0
- package/lib/assets/skeleton.css +1 -0
- package/lib/assets/table.css +1 -0
- package/lib/assets/tabs.css +1 -0
- package/lib/assets/toolbar.css +1 -0
- package/lib/assets/withDropdown.css +1 -0
- package/lib/avatar/avatar.spec.d.ts +1 -0
- package/lib/avatar/index.d.ts +6 -0
- package/lib/avatar/index.js +55 -0
- package/lib/avatar/types.d.ts +27 -0
- package/lib/badge/badge.spec.d.ts +1 -0
- package/lib/badge/index.d.ts +3 -0
- package/lib/badge/index.js +28 -0
- package/lib/badge/types.d.ts +10 -0
- package/lib/buttons/ActivateButton.d.ts +3 -0
- package/lib/buttons/ActivateButton.js +11 -0
- package/lib/buttons/AddButton.d.ts +3 -0
- package/lib/buttons/AddButton.js +14 -0
- package/lib/buttons/Button.d.ts +6 -0
- package/lib/buttons/Button.js +19 -0
- package/lib/buttons/ButtonGroups.d.ts +6 -0
- package/lib/buttons/ButtonGroups.js +12 -0
- package/lib/buttons/CancelButton.d.ts +3 -0
- package/lib/buttons/CancelButton.js +16 -0
- package/lib/buttons/DangerButton.d.ts +3 -0
- package/lib/buttons/DangerButton.js +17 -0
- package/lib/buttons/DefaultButton.d.ts +6 -0
- package/lib/buttons/DefaultButton.js +95 -0
- package/lib/buttons/DestroyButton.d.ts +3 -0
- package/lib/buttons/DestroyButton.js +23 -0
- package/lib/buttons/EditButton.d.ts +3 -0
- package/lib/buttons/EditButton.js +11 -0
- package/lib/buttons/InactivateButton.d.ts +3 -0
- package/lib/buttons/InactivateButton.js +11 -0
- package/lib/buttons/InfoButton.d.ts +3 -0
- package/lib/buttons/InfoButton.js +17 -0
- package/lib/buttons/PrimaryButton.d.ts +3 -0
- package/lib/buttons/PrimaryButton.js +17 -0
- package/lib/buttons/RestoreButton.d.ts +3 -0
- package/lib/buttons/RestoreButton.js +11 -0
- package/lib/buttons/SaveButton.d.ts +3 -0
- package/lib/buttons/SaveButton.js +16 -0
- package/lib/buttons/SuccessButton.d.ts +3 -0
- package/lib/buttons/SuccessButton.js +17 -0
- package/lib/buttons/WarningButton.d.ts +3 -0
- package/lib/buttons/WarningButton.js +17 -0
- package/lib/buttons/button_container/index.d.ts +10 -0
- package/lib/buttons/button_container/index.js +23 -0
- package/lib/buttons/buttons.spec.d.ts +0 -0
- package/lib/buttons/index.d.ts +17 -0
- package/lib/buttons/index.js +33 -0
- package/lib/buttons/split_button/index.d.ts +3 -0
- package/lib/buttons/split_button/index.js +58 -0
- package/lib/buttons/types.d.ts +46 -0
- package/lib/calendar/DangerCalendar.d.ts +3 -0
- package/lib/calendar/DangerCalendar.js +20 -0
- package/lib/calendar/InfoCalendar.d.ts +3 -0
- package/lib/calendar/InfoCalendar.js +20 -0
- package/lib/calendar/PrimaryCalendar.d.ts +3 -0
- package/lib/calendar/PrimaryCalendar.js +20 -0
- package/lib/calendar/SuccessCalendar.d.ts +3 -0
- package/lib/calendar/SuccessCalendar.js +20 -0
- package/lib/calendar/WarningCalendar.d.ts +3 -0
- package/lib/calendar/WarningCalendar.js +20 -0
- package/lib/calendar/base/Day.d.ts +3 -0
- package/lib/calendar/base/Day.js +37 -0
- package/lib/calendar/base/Month.d.ts +3 -0
- package/lib/calendar/base/Month.js +28 -0
- package/lib/calendar/base/Week.d.ts +3 -0
- package/lib/calendar/base/Week.js +24 -0
- package/lib/calendar/base/helpers.d.ts +59 -0
- package/lib/calendar/base/helpers.js +100 -0
- package/lib/calendar/base/index.d.ts +3 -0
- package/lib/calendar/base/index.js +137 -0
- package/lib/calendar/calendar.spec.d.ts +0 -0
- package/lib/calendar/index.d.ts +8 -0
- package/lib/calendar/index.js +14 -0
- package/lib/calendar/types.d.ts +27 -0
- package/lib/checkbox/checkbox.spec.d.ts +1 -0
- package/lib/checkbox/index.d.ts +9 -0
- package/lib/checkbox/index.js +32 -0
- package/lib/checkbox/types.d.ts +45 -0
- package/lib/chunks/compiler-runtime.Cu50tn6L.js +54 -0
- package/lib/chunks/index.Df3kt2LQ.js +667 -0
- package/lib/chunks/index.aw0XaUkg.js +266 -0
- package/lib/chunks/jsx-runtime.D1SHvdVE.js +282 -0
- package/lib/chunks/lodash.CIAK_hAg.js +3684 -0
- package/lib/chunks/moment.DMLRxgRE.js +2589 -0
- package/lib/chunks/tabs.BvKfeA6Y.js +244 -0
- package/lib/chunks/v1.Ds1rkxUj.js +49 -0
- package/lib/dialog/Alert.d.ts +3 -0
- package/lib/dialog/Alert.js +24 -0
- package/lib/dialog/Custom.d.ts +3 -0
- package/lib/dialog/Custom.js +47 -0
- package/lib/dialog/Error.d.ts +3 -0
- package/lib/dialog/Error.js +24 -0
- package/lib/dialog/Information.d.ts +3 -0
- package/lib/dialog/Information.js +24 -0
- package/lib/dialog/Question.d.ts +3 -0
- package/lib/dialog/Question.js +47 -0
- package/lib/dialog/Warning.d.ts +3 -0
- package/lib/dialog/Warning.js +24 -0
- package/lib/dialog/base/Content.d.ts +3 -0
- package/lib/dialog/base/Content.js +15 -0
- package/lib/dialog/base/Footer.d.ts +3 -0
- package/lib/dialog/base/Footer.js +10 -0
- package/lib/dialog/base/Header.d.ts +3 -0
- package/lib/dialog/base/Header.js +8 -0
- package/lib/dialog/base/index.d.ts +10 -0
- package/lib/dialog/base/index.js +10 -0
- package/lib/dialog/base/style.d.ts +7 -0
- package/lib/dialog/dialog.spec.d.ts +0 -0
- package/lib/dialog/form/index.d.ts +5 -0
- package/lib/dialog/form/index.js +16 -0
- package/lib/dialog/index.d.ts +9 -0
- package/lib/dialog/index.js +16 -0
- package/lib/dialog/types.d.ts +107 -0
- package/lib/dialog/wizard/index.d.ts +9 -0
- package/lib/dialog/wizard/index.js +15 -0
- package/lib/dialog/wizard/progressbar.d.ts +11 -0
- package/lib/dialog/wizard/progressbar.js +98 -0
- package/lib/dialog/wizard/step.d.ts +2 -0
- package/lib/dialog/wizard/step.js +6 -0
- package/lib/dialog/wizard/useWizard.d.ts +2 -0
- package/lib/dialog/wizard/useWizard.js +45 -0
- package/lib/dialog/wizard/wizard.spec.d.ts +0 -0
- package/lib/drawer/Content.d.ts +3 -0
- package/lib/drawer/Content.js +18 -0
- package/lib/drawer/Drawer.d.ts +4 -0
- package/lib/drawer/Drawer.js +75 -0
- package/lib/drawer/Drawer.spec.d.ts +1 -0
- package/lib/drawer/Header.d.ts +3 -0
- package/lib/drawer/Header.js +56 -0
- package/lib/drawer/helpers.d.ts +4 -0
- package/lib/drawer/helpers.js +5 -0
- package/lib/drawer/index.d.ts +5 -0
- package/lib/drawer/index.js +10 -0
- package/lib/drawer/types.d.ts +37 -0
- package/lib/dropdown/Popup.d.ts +3 -0
- package/lib/dropdown/Popup.js +51 -0
- package/lib/dropdown/dropdown.spec.d.ts +1 -0
- package/lib/dropdown/helper.d.ts +2 -0
- package/lib/dropdown/helper.js +8 -0
- package/lib/dropdown/types.d.ts +45 -0
- package/lib/dropdown/withDropdown.d.ts +9 -0
- package/lib/dropdown/withDropdown.js +80 -0
- package/lib/fieldset/fieldset.spec.d.ts +1 -0
- package/lib/fieldset/index.d.ts +3 -0
- package/lib/fieldset/index.js +70 -0
- package/lib/fieldset/types.d.ts +27 -0
- package/lib/form/Field.d.ts +2 -0
- package/lib/form/Field.js +98 -0
- package/lib/form/FieldArray.d.ts +2 -0
- package/lib/form/FieldArray.js +68 -0
- package/lib/form/FieldNumber.d.ts +2 -0
- package/lib/form/FieldNumber.js +48 -0
- package/lib/form/FieldPeriod.d.ts +2 -0
- package/lib/form/FieldPeriod.js +95 -0
- package/lib/form/form.spec.d.ts +0 -0
- package/lib/form/helpers.d.ts +8 -0
- package/lib/form/helpers.js +28 -0
- package/lib/form/index.d.ts +8 -0
- package/lib/form/index.js +150 -0
- package/lib/form/types.d.ts +233 -0
- package/lib/form/withFieldHOC.d.ts +4 -0
- package/lib/form/withFieldHOC.js +62 -0
- package/lib/form/withFormSecurity.d.ts +6 -0
- package/lib/form/withFormSecurity.js +30 -0
- package/lib/gridlayout/GridCol.d.ts +3 -0
- package/lib/gridlayout/GridCol.js +27 -0
- package/lib/gridlayout/GridRow.d.ts +3 -0
- package/lib/gridlayout/GridRow.js +26 -0
- package/lib/gridlayout/gridLayout.spec.d.ts +1 -0
- package/lib/gridlayout/index.d.ts +4 -0
- package/lib/gridlayout/index.js +6 -0
- package/lib/gridlayout/types.d.ts +17 -0
- package/lib/hint/helpers.d.ts +1 -0
- package/lib/hint/helpers.js +12 -0
- package/lib/hint/hint.spec.d.ts +1 -0
- package/lib/hint/index.d.ts +3 -0
- package/lib/hint/index.js +30 -0
- package/lib/hint/types.d.ts +11 -0
- package/lib/icons/helper.d.ts +635 -0
- package/lib/icons/helper.js +637 -0
- package/lib/icons/icons.spec.d.ts +1 -0
- package/lib/icons/index.d.ts +6 -0
- package/lib/icons/index.js +66 -0
- package/lib/icons/types.d.ts +46 -0
- package/lib/index.d.ts +10 -0
- package/lib/index.js +28 -0
- package/lib/inputs/base/InputTextBase.d.ts +3 -0
- package/lib/inputs/base/InputTextBase.js +183 -0
- package/lib/inputs/base/Label.d.ts +6 -0
- package/lib/inputs/base/Label.js +30 -0
- package/lib/inputs/base/base.spec.d.ts +1 -0
- package/lib/inputs/base/helpers.d.ts +10 -0
- package/lib/inputs/base/helpers.js +30 -0
- package/lib/inputs/base/types.d.ts +98 -0
- package/lib/inputs/color/color_input.spec.d.ts +0 -0
- package/lib/inputs/color/index.d.ts +3 -0
- package/lib/inputs/color/index.js +57 -0
- package/lib/inputs/color/types.d.ts +16 -0
- package/lib/inputs/date/Dialog.d.ts +3 -0
- package/lib/inputs/date/Dialog.js +17 -0
- package/lib/inputs/date/Dropdown.d.ts +3 -0
- package/lib/inputs/date/Dropdown.js +19 -0
- package/lib/inputs/date/date.spec.d.ts +1 -0
- package/lib/inputs/date/helpers.d.ts +5 -0
- package/lib/inputs/date/helpers.js +10 -0
- package/lib/inputs/date/index.d.ts +3 -0
- package/lib/inputs/date/index.js +136 -0
- package/lib/inputs/date/types.d.ts +56 -0
- package/lib/inputs/errorMessage/error.spec.d.ts +1 -0
- package/lib/inputs/errorMessage/index.d.ts +4 -0
- package/lib/inputs/errorMessage/index.js +24 -0
- package/lib/inputs/file/DefaultFile.d.ts +3 -0
- package/lib/inputs/file/DefaultFile.js +68 -0
- package/lib/inputs/file/DragDropFile.d.ts +3 -0
- package/lib/inputs/file/DragDropFile.js +135 -0
- package/lib/inputs/file/File.d.ts +3 -0
- package/lib/inputs/file/File.js +31 -0
- package/lib/inputs/file/FileButtonSettings.d.ts +3 -0
- package/lib/inputs/file/FileButtonSettings.js +24 -0
- package/lib/inputs/file/filefield.spec.d.ts +1 -0
- package/lib/inputs/file/helpers.d.ts +2 -0
- package/lib/inputs/file/helpers.js +11 -0
- package/lib/inputs/file/index.d.ts +5 -0
- package/lib/inputs/file/index.js +8 -0
- package/lib/inputs/file/types.d.ts +49 -0
- package/lib/inputs/inputHOC.d.ts +4 -0
- package/lib/inputs/inputHOC.js +42 -0
- package/lib/inputs/mask/BaseMask.d.ts +3 -0
- package/lib/inputs/mask/BaseMask.js +2672 -0
- package/lib/inputs/mask/Cnpj.d.ts +6 -0
- package/lib/inputs/mask/Cnpj.js +46 -0
- package/lib/inputs/mask/Cpf.d.ts +6 -0
- package/lib/inputs/mask/Cpf.js +48 -0
- package/lib/inputs/mask/Phone.d.ts +3 -0
- package/lib/inputs/mask/Phone.js +13 -0
- package/lib/inputs/mask/ZipCode.d.ts +3 -0
- package/lib/inputs/mask/ZipCode.js +11 -0
- package/lib/inputs/mask/helpers.d.ts +52 -0
- package/lib/inputs/mask/helpers.js +63 -0
- package/lib/inputs/mask/index.d.ts +7 -0
- package/lib/inputs/mask/index.js +12 -0
- package/lib/inputs/mask/input_mask.spec.d.ts +0 -0
- package/lib/inputs/mask/types.d.ts +73 -0
- package/lib/inputs/multiSelect/ActionButtons.d.ts +3 -0
- package/lib/inputs/multiSelect/ActionButtons.js +39 -0
- package/lib/inputs/multiSelect/Dropdown.d.ts +3 -0
- package/lib/inputs/multiSelect/Dropdown.js +98 -0
- package/lib/inputs/multiSelect/helper.d.ts +3 -0
- package/lib/inputs/multiSelect/helper.js +8 -0
- package/lib/inputs/multiSelect/index.d.ts +3 -0
- package/lib/inputs/multiSelect/index.js +180 -0
- package/lib/inputs/multiSelect/multiSelect.spec.d.ts +1 -0
- package/lib/inputs/multiSelect/types.d.ts +57 -0
- package/lib/inputs/number/BaseNumber.d.ts +3 -0
- package/lib/inputs/number/BaseNumber.js +59 -0
- package/lib/inputs/number/Currency.d.ts +3 -0
- package/lib/inputs/number/Currency.js +22 -0
- package/lib/inputs/number/Decimal.d.ts +3 -0
- package/lib/inputs/number/Decimal.js +11 -0
- package/lib/inputs/number/format_number.d.ts +3 -0
- package/lib/inputs/number/format_number.js +9 -0
- package/lib/inputs/number/index.d.ts +6 -0
- package/lib/inputs/number/index.js +34 -0
- package/lib/inputs/number/numberfield.spec.d.ts +1 -0
- package/lib/inputs/number/types.d.ts +28 -0
- package/lib/inputs/period/Dialog.d.ts +3 -0
- package/lib/inputs/period/Dialog.js +18 -0
- package/lib/inputs/period/Dropdown.d.ts +3 -0
- package/lib/inputs/period/Dropdown.js +18 -0
- package/lib/inputs/period/PeriodList.d.ts +3 -0
- package/lib/inputs/period/PeriodList.js +43 -0
- package/lib/inputs/period/helper.d.ts +11 -0
- package/lib/inputs/period/helper.js +39 -0
- package/lib/inputs/period/index.d.ts +3 -0
- package/lib/inputs/period/index.js +213 -0
- package/lib/inputs/period/types.d.ts +69 -0
- package/lib/inputs/search/index.d.ts +3 -0
- package/lib/inputs/search/index.js +104 -0
- package/lib/inputs/search/search_input.spec.d.ts +1 -0
- package/lib/inputs/select/ActionButtons.d.ts +3 -0
- package/lib/inputs/select/ActionButtons.js +28 -0
- package/lib/inputs/select/Dropdown.d.ts +3 -0
- package/lib/inputs/select/Dropdown.js +70 -0
- package/lib/inputs/select/helper.d.ts +11 -0
- package/lib/inputs/select/helper.js +48 -0
- package/lib/inputs/select/index.d.ts +3 -0
- package/lib/inputs/select/index.js +27 -0
- package/lib/inputs/select/multiple/Selecteds.d.ts +3 -0
- package/lib/inputs/select/multiple/Selecteds.js +25 -0
- package/lib/inputs/select/multiple/index.d.ts +3 -0
- package/lib/inputs/select/multiple/index.js +126 -0
- package/lib/inputs/select/select.spec.d.ts +1 -0
- package/lib/inputs/select/simple/index.d.ts +3 -0
- package/lib/inputs/select/simple/index.js +156 -0
- package/lib/inputs/select/types.d.ts +117 -0
- package/lib/inputs/text/index.d.ts +3 -0
- package/lib/inputs/text/index.js +11 -0
- package/lib/inputs/text/textfield.spec.d.ts +1 -0
- package/lib/inputs/text/types.d.ts +21 -0
- package/lib/inputs/textarea/index.d.ts +3 -0
- package/lib/inputs/textarea/index.js +16 -0
- package/lib/inputs/textarea/textarea.spec.d.ts +1 -0
- package/lib/inputs/textarea/types.d.ts +7 -0
- package/lib/inputs/types.d.ts +151 -0
- package/lib/internals/colorStyles.d.ts +8 -0
- package/lib/internals/colorStyles.js +10 -0
- package/lib/internals/constants.d.ts +9 -0
- package/lib/internals/constants.js +12 -0
- package/lib/internals/types.d.ts +22 -0
- package/lib/internals/withTooltip.d.ts +8 -0
- package/lib/internals/withTooltip.js +122 -0
- package/lib/labelMessages/index.d.ts +3 -0
- package/lib/labelMessages/index.js +53 -0
- package/lib/labelMessages/labelMessages.spec.d.ts +1 -0
- package/lib/labelMessages/types.d.ts +16 -0
- package/lib/labels/DangerLabel.d.ts +3 -0
- package/lib/labels/DangerLabel.js +20 -0
- package/lib/labels/DefaultLabel.d.ts +6 -0
- package/lib/labels/DefaultLabel.js +55 -0
- package/lib/labels/InfoLabel.d.ts +3 -0
- package/lib/labels/InfoLabel.js +20 -0
- package/lib/labels/PrimaryLabel.d.ts +3 -0
- package/lib/labels/PrimaryLabel.js +20 -0
- package/lib/labels/SuccessLabel.d.ts +3 -0
- package/lib/labels/SuccessLabel.js +20 -0
- package/lib/labels/WarningLabel.d.ts +3 -0
- package/lib/labels/WarningLabel.js +20 -0
- package/lib/labels/index.d.ts +9 -0
- package/lib/labels/index.js +17 -0
- package/lib/labels/label.spec.d.ts +1 -0
- package/lib/labels/label_container/index.d.ts +10 -0
- package/lib/labels/label_container/index.js +18 -0
- package/lib/labels/types.d.ts +22 -0
- package/lib/list/Header.d.ts +3 -0
- package/lib/list/Header.js +20 -0
- package/lib/list/Item.d.ts +6 -0
- package/lib/list/Item.js +14 -0
- package/lib/list/Separator.d.ts +2 -0
- package/lib/list/Separator.js +10 -0
- package/lib/list/helpers.d.ts +9 -0
- package/lib/list/helpers.js +10 -0
- package/lib/list/index.d.ts +7 -0
- package/lib/list/index.js +104 -0
- package/lib/list/list.spec.d.ts +1 -0
- package/lib/list/types.d.ts +69 -0
- package/lib/menus/float/MenuItem.d.ts +3 -0
- package/lib/menus/float/MenuItem.js +55 -0
- package/lib/menus/float/SubMenuContainer.d.ts +29 -0
- package/lib/menus/float/float-menu.spec.d.ts +0 -0
- package/lib/menus/float/helpers.d.ts +4 -0
- package/lib/menus/float/helpers.js +5 -0
- package/lib/menus/float/index.d.ts +6 -0
- package/lib/menus/float/index.js +113 -0
- package/lib/menus/float/types.d.ts +26 -0
- package/lib/menus/index.d.ts +2 -0
- package/lib/menus/index.js +4 -0
- package/lib/menus/sidenav/ExpandMenu.d.ts +3 -0
- package/lib/menus/sidenav/ExpandMenu.js +19 -0
- package/lib/menus/sidenav/MenuLink.d.ts +6 -0
- package/lib/menus/sidenav/MenuLink.js +24 -0
- package/lib/menus/sidenav/NavMenuGroup.d.ts +3 -0
- package/lib/menus/sidenav/NavMenuGroup.js +22 -0
- package/lib/menus/sidenav/NavMenuItem.d.ts +6 -0
- package/lib/menus/sidenav/NavMenuItem.js +136 -0
- package/lib/menus/sidenav/NavSubMenuItem.d.ts +3 -0
- package/lib/menus/sidenav/NavSubMenuItem.js +39 -0
- package/lib/menus/sidenav/helpers.d.ts +6 -0
- package/lib/menus/sidenav/helpers.js +10 -0
- package/lib/menus/sidenav/index.d.ts +8 -0
- package/lib/menus/sidenav/index.js +150 -0
- package/lib/menus/sidenav/popup_menu_search/EmptyList.d.ts +3 -0
- package/lib/menus/sidenav/popup_menu_search/EmptyList.js +23 -0
- package/lib/menus/sidenav/popup_menu_search/index.d.ts +4 -0
- package/lib/menus/sidenav/popup_menu_search/index.js +56 -0
- package/lib/menus/sidenav/sidenav.spec.d.ts +1 -0
- package/lib/menus/sidenav/types.d.ts +85 -0
- package/lib/noPermission/index.d.ts +2 -0
- package/lib/noPermission/index.js +16 -0
- package/lib/panel/Content.d.ts +3 -0
- package/lib/panel/Content.js +55 -0
- package/lib/panel/DangerPanel.d.ts +3 -0
- package/lib/panel/DangerPanel.js +12 -0
- package/lib/panel/Default.d.ts +3 -0
- package/lib/panel/Default.js +68 -0
- package/lib/panel/Header.d.ts +3 -0
- package/lib/panel/Header.js +58 -0
- package/lib/panel/InfoPanel.d.ts +3 -0
- package/lib/panel/InfoPanel.js +12 -0
- package/lib/panel/PrimaryPanel.d.ts +3 -0
- package/lib/panel/PrimaryPanel.js +12 -0
- package/lib/panel/SuccessPanel.d.ts +3 -0
- package/lib/panel/SuccessPanel.js +12 -0
- package/lib/panel/ToolBar.d.ts +3 -0
- package/lib/panel/ToolBar.js +19 -0
- package/lib/panel/WarningPanel.d.ts +3 -0
- package/lib/panel/WarningPanel.js +12 -0
- package/lib/panel/helpers.d.ts +5 -0
- package/lib/panel/helpers.js +15 -0
- package/lib/panel/index.d.ts +10 -0
- package/lib/panel/index.js +19 -0
- package/lib/panel/panel.spec.d.ts +0 -0
- package/lib/panel/types.d.ts +43 -0
- package/lib/permissionValidations.d.ts +12 -0
- package/lib/permissionValidations.js +46 -0
- package/lib/popover/PopoverText.d.ts +4 -0
- package/lib/popover/PopoverText.js +14 -0
- package/lib/popover/PopoverTitle.d.ts +3 -0
- package/lib/popover/PopoverTitle.js +12 -0
- package/lib/popover/index.d.ts +6 -0
- package/lib/popover/index.js +39 -0
- package/lib/popover/popover.spec.d.ts +1 -0
- package/lib/popover/types.d.ts +31 -0
- package/lib/progress/Bar.d.ts +3 -0
- package/lib/progress/Bar.js +51 -0
- package/lib/progress/index.d.ts +5 -0
- package/lib/progress/index.js +26 -0
- package/lib/progress/progress.spec.d.ts +1 -0
- package/lib/progress/types.d.ts +34 -0
- package/lib/radio/index.d.ts +8 -0
- package/lib/radio/index.js +112 -0
- package/lib/radio/radio.spec.d.ts +1 -0
- package/lib/radio/types.d.ts +25 -0
- package/lib/shortcuts/index.d.ts +3 -0
- package/lib/shortcuts/index.js +22 -0
- package/lib/shortcuts/shortcuts.spec.d.ts +0 -0
- package/lib/shortcuts/types.d.ts +9 -0
- package/lib/skeleton/SkeletonContainer.d.ts +3 -0
- package/lib/skeleton/SkeletonContainer.js +19 -0
- package/lib/skeleton/index.d.ts +5 -0
- package/lib/skeleton/index.js +49 -0
- package/lib/skeleton/types.d.ts +18 -0
- package/lib/spinner/SpinnerLoading.d.ts +3 -0
- package/lib/spinner/SpinnerLoading.js +55 -0
- package/lib/spinner/index.d.ts +3 -0
- package/lib/spinner/index.js +51 -0
- package/lib/spinner/spinner.spec.d.ts +1 -0
- package/lib/spinner/types.d.ts +17 -0
- package/lib/split/Split.d.ts +3 -0
- package/lib/split/Split.js +193 -0
- package/lib/split/SplitSide.d.ts +3 -0
- package/lib/split/SplitSide.js +27 -0
- package/lib/split/helpers.d.ts +8 -0
- package/lib/split/helpers.js +5 -0
- package/lib/split/index.d.ts +4 -0
- package/lib/split/index.js +6 -0
- package/lib/split/split.spec.d.ts +0 -0
- package/lib/split/types.d.ts +31 -0
- package/lib/table/Body.d.ts +3 -0
- package/lib/table/Body.js +46 -0
- package/lib/table/Header.d.ts +3 -0
- package/lib/table/Header.js +52 -0
- package/lib/table/HeaderColumn.d.ts +3 -0
- package/lib/table/HeaderColumn.js +43 -0
- package/lib/table/Row.d.ts +3 -0
- package/lib/table/Row.js +53 -0
- package/lib/table/RowColumn.d.ts +3 -0
- package/lib/table/RowColumn.js +58 -0
- package/lib/table/helpers.d.ts +7 -0
- package/lib/table/helpers.js +9 -0
- package/lib/table/index.d.ts +9 -0
- package/lib/table/index.js +106 -0
- package/lib/table/table.spec.d.ts +1 -0
- package/lib/table/types.d.ts +94 -0
- package/lib/tabs/DropdownTabs.d.ts +3 -0
- package/lib/tabs/DropdownTabs.js +84 -0
- package/lib/tabs/Menu.d.ts +3 -0
- package/lib/tabs/Menu.js +38 -0
- package/lib/tabs/MenuTabs.d.ts +4 -0
- package/lib/tabs/MenuTabs.js +64 -0
- package/lib/tabs/Panel.d.ts +3 -0
- package/lib/tabs/Panel.js +62 -0
- package/lib/tabs/context.d.ts +4 -0
- package/lib/tabs/context.js +64 -0
- package/lib/tabs/index.d.ts +5 -0
- package/lib/tabs/index.js +73 -0
- package/lib/tabs/tabHelpers.d.ts +9 -0
- package/lib/tabs/tabHelpers.js +48 -0
- package/lib/tabs/tabs.spec.d.ts +0 -0
- package/lib/tabs/types.d.ts +95 -0
- package/lib/tabs/useTabs.d.ts +1 -0
- package/lib/tabs/useTabs.js +8 -0
- package/lib/textContent/index.d.ts +18 -0
- package/lib/textContent/index.js +33 -0
- package/lib/textContent/textContent.spec.d.ts +1 -0
- package/lib/toolbar/ButtonBar.d.ts +3 -0
- package/lib/toolbar/ButtonBar.js +67 -0
- package/lib/toolbar/LabelBar.d.ts +3 -0
- package/lib/toolbar/LabelBar.js +51 -0
- package/lib/toolbar/Separator.d.ts +2 -0
- package/lib/toolbar/Separator.js +10 -0
- package/lib/toolbar/ToolBarGroup.d.ts +3 -0
- package/lib/toolbar/ToolBarGroup.js +16 -0
- package/lib/toolbar/helpers.d.ts +3 -0
- package/lib/toolbar/helpers.js +5 -0
- package/lib/toolbar/index.d.ts +8 -0
- package/lib/toolbar/index.js +39 -0
- package/lib/toolbar/toolbar.spec.d.ts +1 -0
- package/lib/toolbar/types.d.ts +43 -0
- package/lib/tooltip/index.d.ts +4 -0
- package/lib/tooltip/index.js +39 -0
- package/lib/tooltip/tooltip.spec.d.ts +1 -0
- package/lib/tooltip/types.d.ts +15 -0
- package/lib/treetable/Body.d.ts +2 -0
- package/lib/treetable/Body.js +34 -0
- package/lib/treetable/Header.d.ts +2 -0
- package/lib/treetable/Header.js +30 -0
- package/lib/treetable/Row.d.ts +3 -0
- package/lib/treetable/Row.js +220 -0
- package/lib/treetable/helpers.d.ts +13 -0
- package/lib/treetable/helpers.js +17 -0
- package/lib/treetable/index.d.ts +4 -0
- package/lib/treetable/index.js +28 -0
- package/lib/treeview/Header.d.ts +3 -0
- package/lib/treeview/Header.js +16 -0
- package/lib/treeview/Node.d.ts +3 -0
- package/lib/treeview/Node.js +206 -0
- package/lib/treeview/constants.d.ts +3 -0
- package/lib/treeview/constants.js +5 -0
- package/lib/treeview/index.d.ts +6 -0
- package/lib/treeview/index.js +268 -0
- package/lib/treeview/treeview.spec.d.ts +0 -0
- package/lib/treeview/types.d.ts +106 -0
- package/lib/uitour/helpers.d.ts +7 -0
- package/lib/uitour/helpers.js +9 -0
- package/lib/uitour/index.d.ts +4 -0
- package/lib/uitour/index.js +187 -0
- package/lib/uitour/types.d.ts +35 -0
- package/lib/uitour/uitour.spec.d.ts +0 -0
- package/package.json +1 -1
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { j } from "../../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as x } from "../../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import { useState as E, useEffect as F } from "react";
|
|
4
|
+
import { _ as M } from "../../chunks/lodash.CIAK_hAg.js";
|
|
5
|
+
import _ from "./BaseMask.js";
|
|
6
|
+
import { CNPJValidation as V } from "./helpers.js";
|
|
7
|
+
const S = (t) => {
|
|
8
|
+
const e = x.c(19), {
|
|
9
|
+
value: h,
|
|
10
|
+
enableValidation: v,
|
|
11
|
+
handlerSetComponentValidator: n
|
|
12
|
+
} = t, d = h === void 0 ? "" : h, o = v === void 0 ? !0 : v, [i, b] = E("");
|
|
13
|
+
let l;
|
|
14
|
+
e[0] !== o || e[1] !== n ? (l = () => {
|
|
15
|
+
o && n && n(k);
|
|
16
|
+
}, e[0] = o, e[1] = n, e[2] = l) : l = e[2];
|
|
17
|
+
let r;
|
|
18
|
+
e[3] === Symbol.for("react.memo_cache_sentinel") ? (r = [], e[3] = r) : r = e[3], F(l, r);
|
|
19
|
+
let s;
|
|
20
|
+
e[4] !== o || e[5] !== n || e[6] !== t ? (s = (c) => {
|
|
21
|
+
if (o && c) {
|
|
22
|
+
let C;
|
|
23
|
+
C || (C = M.debounce(() => {
|
|
24
|
+
V(c.target.value, n ? void 0 : b);
|
|
25
|
+
}, 300)), C(), t.onChange && t.onChange(c);
|
|
26
|
+
}
|
|
27
|
+
t.onChange && t.onChange(c);
|
|
28
|
+
}, e[4] = o, e[5] = n, e[6] = t, e[7] = s) : s = e[7];
|
|
29
|
+
const u = s;
|
|
30
|
+
let m;
|
|
31
|
+
e[8] !== o || e[9] !== n || e[10] !== i ? (m = () => o && !n && i ? {
|
|
32
|
+
errorMessages: [i]
|
|
33
|
+
} : {}, e[8] = o, e[9] = n, e[10] = i, e[11] = m) : m = e[11];
|
|
34
|
+
const g = m;
|
|
35
|
+
let a;
|
|
36
|
+
e[12] !== g ? (a = g(), e[12] = g, e[13] = a) : a = e[13];
|
|
37
|
+
let f;
|
|
38
|
+
return e[14] !== u || e[15] !== t || e[16] !== a || e[17] !== d ? (f = /* @__PURE__ */ j.jsx(_, { ...t, value: d, mask: "00.000.000/0000-00", onChange: u, ...a }), e[14] = u, e[15] = t, e[16] = a, e[17] = d, e[18] = f) : f = e[18], f;
|
|
39
|
+
};
|
|
40
|
+
S.displayName = "CnpjField";
|
|
41
|
+
function k() {
|
|
42
|
+
return V;
|
|
43
|
+
}
|
|
44
|
+
export {
|
|
45
|
+
S as default
|
|
46
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { j as E } from "../../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as M } from "../../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import { useState as S, useEffect as _ } from "react";
|
|
4
|
+
import { _ as j } from "../../chunks/lodash.CIAK_hAg.js";
|
|
5
|
+
import v from "./BaseMask.js";
|
|
6
|
+
import { CPFValidation as x } from "./helpers.js";
|
|
7
|
+
const y = (t) => {
|
|
8
|
+
const e = M.c(23), {
|
|
9
|
+
enableValidation: V,
|
|
10
|
+
handlerSetComponentValidator: n
|
|
11
|
+
} = t, a = V === void 0 ? !0 : V, [s, F] = S("");
|
|
12
|
+
let r;
|
|
13
|
+
e[0] !== a || e[1] !== n ? (r = () => {
|
|
14
|
+
a && n && n(k);
|
|
15
|
+
}, e[0] = a, e[1] = n, e[2] = r) : r = e[2];
|
|
16
|
+
let f;
|
|
17
|
+
e[3] === Symbol.for("react.memo_cache_sentinel") ? (f = [], e[3] = f) : f = e[3], _(r, f);
|
|
18
|
+
let m;
|
|
19
|
+
e[4] !== n ? (m = j.debounce((i) => {
|
|
20
|
+
x(i, n ? void 0 : F);
|
|
21
|
+
}, 300), e[4] = n, e[5] = m) : m = e[5];
|
|
22
|
+
const o = m;
|
|
23
|
+
let c;
|
|
24
|
+
e[6] !== o.cancel ? (c = () => o.cancel, e[6] = o.cancel, e[7] = c) : c = e[7];
|
|
25
|
+
let d;
|
|
26
|
+
e[8] === Symbol.for("react.memo_cache_sentinel") ? (d = [], e[8] = d) : d = e[8], _(c, d);
|
|
27
|
+
let u;
|
|
28
|
+
e[9] !== o || e[10] !== a || e[11] !== t ? (u = (i) => {
|
|
29
|
+
a && o(i.target.value), t.onChange && t.onChange(i);
|
|
30
|
+
}, e[9] = o, e[10] = a, e[11] = t, e[12] = u) : u = e[12];
|
|
31
|
+
const h = u;
|
|
32
|
+
let g;
|
|
33
|
+
e[13] !== a || e[14] !== n || e[15] !== s ? (g = () => a && !n && s ? {
|
|
34
|
+
errorMessages: [s]
|
|
35
|
+
} : {}, e[13] = a, e[14] = n, e[15] = s, e[16] = g) : g = e[16];
|
|
36
|
+
const b = g;
|
|
37
|
+
let l;
|
|
38
|
+
e[17] !== b ? (l = b(), e[17] = b, e[18] = l) : l = e[18];
|
|
39
|
+
let C;
|
|
40
|
+
return e[19] !== h || e[20] !== t || e[21] !== l ? (C = /* @__PURE__ */ E.jsx(v, { ...t, onChange: h, mask: "000.000.000-00", ...l }), e[19] = h, e[20] = t, e[21] = l, e[22] = C) : C = e[22], C;
|
|
41
|
+
};
|
|
42
|
+
y.displayName = "CpfField";
|
|
43
|
+
function k() {
|
|
44
|
+
return x;
|
|
45
|
+
}
|
|
46
|
+
export {
|
|
47
|
+
y as default
|
|
48
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { j as r } from "../../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c } from "../../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import i from "./BaseMask.js";
|
|
4
|
+
const f = (e) => {
|
|
5
|
+
const t = c.c(3), {
|
|
6
|
+
cellNumber: m
|
|
7
|
+
} = e, s = m ? "(00) 00000-0000" : "(00) 0000-0000";
|
|
8
|
+
let o;
|
|
9
|
+
return t[0] !== e || t[1] !== s ? (o = /* @__PURE__ */ r.jsx(i, { ...e, mask: s }), t[0] = e, t[1] = s, t[2] = o) : o = t[2], o;
|
|
10
|
+
};
|
|
11
|
+
export {
|
|
12
|
+
f as default
|
|
13
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { j as s } from "../../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as m } from "../../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import r from "./BaseMask.js";
|
|
4
|
+
const f = (o) => {
|
|
5
|
+
const t = m.c(2);
|
|
6
|
+
let e;
|
|
7
|
+
return t[0] !== o ? (e = /* @__PURE__ */ s.jsx(r, { ...o, mask: "00000-000" }), t[0] = o, t[1] = e) : e = t[1], e;
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
f as default
|
|
11
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { IBaseMaskProps } from './types';
|
|
2
|
+
export declare const getMaskOptions: ({ isDateField, placeholderChar, min, max, lazy, pattern, radix, thousandsSeparator, mapToRadix, scale, normalizeZeros, padFractionalZeros, rightElements, leftElements, ...rest }: IBaseMaskProps) => {
|
|
3
|
+
value?: string | number;
|
|
4
|
+
onBlur?: (e: import('../base/types').CustomInputEvent) => void;
|
|
5
|
+
onKeyDown?: (e: import('../base/types').CustomInputEvent | import('react').KeyboardEvent<Element>) => void;
|
|
6
|
+
defaultValue?: string;
|
|
7
|
+
isNumeric?: boolean;
|
|
8
|
+
blocks?: any;
|
|
9
|
+
handlerSetOnDenied?: (onDeniedValue: import('../../@types/PermissionAttr').OnDenied) => void;
|
|
10
|
+
onChange?: (e: import('../base/types').CustomInputEvent, maskValue?: string, date?: string) => void;
|
|
11
|
+
onComplete?: (e: import('../base/types').CustomInputEvent, maskValue?: string, date?: string) => void;
|
|
12
|
+
inputRef?: import('react').MutableRefObject<HTMLInputElement | HTMLTextAreaElement | null> | ((ref: HTMLInputElement | HTMLTextAreaElement | null) => void);
|
|
13
|
+
permissionAttr?: import('../../@types/PermissionAttr').PermissionAttr;
|
|
14
|
+
errorMessages?: string[];
|
|
15
|
+
rounded?: boolean;
|
|
16
|
+
textAlign?: import('../../@types/Align').TextAlign;
|
|
17
|
+
customClassForInputContent?: string;
|
|
18
|
+
label?: string;
|
|
19
|
+
name?: string;
|
|
20
|
+
customClassForLabel?: string;
|
|
21
|
+
customClass?: string;
|
|
22
|
+
gridLayout?: string;
|
|
23
|
+
placeHolder?: string;
|
|
24
|
+
readOnly?: boolean;
|
|
25
|
+
labelUppercase?: boolean;
|
|
26
|
+
disabled?: boolean;
|
|
27
|
+
unmask?: boolean;
|
|
28
|
+
onFocus?: (e: import('../base/types').CustomInputEvent) => void;
|
|
29
|
+
required?: boolean;
|
|
30
|
+
returnFormattedValueOnBlur?: boolean;
|
|
31
|
+
returnFormattedValueOnKeyDown?: boolean;
|
|
32
|
+
autoCompleteMask?: "left" | "right";
|
|
33
|
+
definitions?: any;
|
|
34
|
+
mask?: any;
|
|
35
|
+
hint?: string | string[];
|
|
36
|
+
hintPosition?: "below" | "onLabelRight";
|
|
37
|
+
themePopover?: "light" | "dark";
|
|
38
|
+
popoverAlign?: "right" | "left";
|
|
39
|
+
placeholderChar: string;
|
|
40
|
+
min: any;
|
|
41
|
+
max: any;
|
|
42
|
+
lazy: boolean;
|
|
43
|
+
pattern: string;
|
|
44
|
+
radix: string;
|
|
45
|
+
thousandsSeparator: string;
|
|
46
|
+
mapToRadix: string[];
|
|
47
|
+
scale: number;
|
|
48
|
+
normalizeZeros: boolean;
|
|
49
|
+
padFractionalZeros: boolean;
|
|
50
|
+
};
|
|
51
|
+
export declare function CPFValidation(cpf?: string, returnMessage?: (msg: string) => void): void | "CPF inválido";
|
|
52
|
+
export declare function CNPJValidation(cnpj?: string, returnMessage?: (msg: string) => void): void | "CNPJ inválido";
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { l as v } from "../../chunks/lodash.CIAK_hAg.js";
|
|
2
|
+
const A = ({
|
|
3
|
+
isDateField: d,
|
|
4
|
+
placeholderChar: i = "_",
|
|
5
|
+
min: l,
|
|
6
|
+
max: t,
|
|
7
|
+
lazy: n = !1,
|
|
8
|
+
pattern: o = "",
|
|
9
|
+
radix: r = " ",
|
|
10
|
+
thousandsSeparator: f = "",
|
|
11
|
+
mapToRadix: P = [],
|
|
12
|
+
scale: C = 2,
|
|
13
|
+
normalizeZeros: h = !0,
|
|
14
|
+
padFractionalZeros: p = !0,
|
|
15
|
+
rightElements: a,
|
|
16
|
+
leftElements: J,
|
|
17
|
+
...F
|
|
18
|
+
}) => ({
|
|
19
|
+
placeholderChar: i === "" ? " " : i,
|
|
20
|
+
min: l,
|
|
21
|
+
max: t,
|
|
22
|
+
lazy: n,
|
|
23
|
+
pattern: o,
|
|
24
|
+
radix: r,
|
|
25
|
+
thousandsSeparator: f,
|
|
26
|
+
mapToRadix: P,
|
|
27
|
+
scale: C,
|
|
28
|
+
normalizeZeros: h,
|
|
29
|
+
padFractionalZeros: p,
|
|
30
|
+
...F
|
|
31
|
+
}), c = (d) => d.split("").every((i) => i === d[0]);
|
|
32
|
+
function m(d, i) {
|
|
33
|
+
const l = d ? d.replace(/[^\d]+/g, "") : "";
|
|
34
|
+
let t = 0, n;
|
|
35
|
+
if (l === "" || l.length < 11 || c(l)) return i ? i("CPF inválido") : "CPF inválido";
|
|
36
|
+
for (let o = 0; o < 9; o++)
|
|
37
|
+
t += v.parseInt(l.charAt(o), 10) * (10 - o);
|
|
38
|
+
if (n = t * 10 % 11, (n === 10 || n === 11) && (n = 0), n !== v.parseInt(l.charAt(9), 10)) return i ? i("CPF inválido") : "CPF inválido";
|
|
39
|
+
t = 0, n = 0;
|
|
40
|
+
for (let o = 0; o < 10; o++)
|
|
41
|
+
t += v.parseInt(l.charAt(o), 10) * (11 - o);
|
|
42
|
+
return n = t * 10 % 11, (n === 10 || n === 11) && (n = 0), n !== v.parseInt(l.charAt(10), 10) ? i ? i("CPF inválido") : "CPF inválido" : i ? i("") : void 0;
|
|
43
|
+
}
|
|
44
|
+
function I(d, i) {
|
|
45
|
+
const l = d ? d.replace(/[^\d]+/g, "") : "";
|
|
46
|
+
if (l === "" || l.length !== 14 || c(l)) return i ? i("CNPJ inválido") : "CNPJ inválido";
|
|
47
|
+
let t = l.length - 2, n = l.substring(0, t);
|
|
48
|
+
const o = l.substring(t);
|
|
49
|
+
let r = 0, f = t - 7;
|
|
50
|
+
for (let C = t; C >= 1; C--)
|
|
51
|
+
r += v.parseInt(n.charAt(t - C)) * f--, f < 2 && (f = 9);
|
|
52
|
+
let P = r % 11 < 2 ? 0 : 11 - r % 11;
|
|
53
|
+
if (P.toString() !== o.charAt(0)) return i ? i("CNPJ inválido") : "CNPJ inválido";
|
|
54
|
+
t += 1, n = l.substring(0, t), r = 0, f = t - 7;
|
|
55
|
+
for (let C = t; C >= 1; C--)
|
|
56
|
+
r += v.parseInt(n.charAt(t - C)) * f--, f < 2 && (f = 9);
|
|
57
|
+
return P = r % 11 < 2 ? 0 : 11 - r % 11, P.toString() !== o.charAt(1) ? i ? i("CNPJ inválido") : "CNPJ inválido" : i ? i("") : void 0;
|
|
58
|
+
}
|
|
59
|
+
export {
|
|
60
|
+
I as CNPJValidation,
|
|
61
|
+
m as CPFValidation,
|
|
62
|
+
A as getMaskOptions
|
|
63
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { default as MaskField } from './BaseMask';
|
|
2
|
+
import { default as CpfField } from './Cpf';
|
|
3
|
+
import { default as CnpjField } from './Cnpj';
|
|
4
|
+
import { default as PhoneField } from './Phone';
|
|
5
|
+
import { default as ZipCodeField } from './ZipCode';
|
|
6
|
+
export default MaskField;
|
|
7
|
+
export { CpfField, CnpjField, PhoneField, ZipCodeField, };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import o from "./BaseMask.js";
|
|
2
|
+
import { default as r } from "./Cpf.js";
|
|
3
|
+
import { default as d } from "./Cnpj.js";
|
|
4
|
+
import { default as p } from "./Phone.js";
|
|
5
|
+
import { default as i } from "./ZipCode.js";
|
|
6
|
+
export {
|
|
7
|
+
d as CnpjField,
|
|
8
|
+
r as CpfField,
|
|
9
|
+
p as PhoneField,
|
|
10
|
+
i as ZipCodeField,
|
|
11
|
+
o as default
|
|
12
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { JSX, KeyboardEvent, MutableRefObject } from 'react';
|
|
2
|
+
import { TextAlign } from 'src/lib/@types/Align';
|
|
3
|
+
import { OnDenied, PermissionAttr } from '../../@types/PermissionAttr';
|
|
4
|
+
import { CustomInputEvent } from '../base/types';
|
|
5
|
+
export type IBaseMaskProps = {
|
|
6
|
+
value?: string | number;
|
|
7
|
+
onBlur?: (e: CustomInputEvent) => void;
|
|
8
|
+
onKeyDown?: (e: CustomInputEvent | KeyboardEvent<Element>) => void;
|
|
9
|
+
defaultValue?: string;
|
|
10
|
+
isNumeric?: boolean;
|
|
11
|
+
scale?: number;
|
|
12
|
+
radix?: string;
|
|
13
|
+
blocks?: any;
|
|
14
|
+
thousandsSeparator?: string;
|
|
15
|
+
rightElements?: JSX.Element | JSX.Element[];
|
|
16
|
+
leftElements?: JSX.Element | JSX.Element[];
|
|
17
|
+
handlerSetOnDenied?: (onDeniedValue: OnDenied) => void;
|
|
18
|
+
onChange?: (e: CustomInputEvent, maskValue?: string, date?: string) => void;
|
|
19
|
+
padFractionalZeros?: boolean;
|
|
20
|
+
onComplete?: (e: CustomInputEvent, maskValue?: string, date?: string) => void;
|
|
21
|
+
inputRef?: MutableRefObject<HTMLInputElement | HTMLTextAreaElement | null> | ((ref: HTMLInputElement | HTMLTextAreaElement | null) => void);
|
|
22
|
+
permissionAttr?: PermissionAttr;
|
|
23
|
+
errorMessages?: string[];
|
|
24
|
+
rounded?: boolean;
|
|
25
|
+
textAlign?: TextAlign;
|
|
26
|
+
customClassForInputContent?: string;
|
|
27
|
+
label?: string;
|
|
28
|
+
name?: string;
|
|
29
|
+
customClassForLabel?: string;
|
|
30
|
+
customClass?: string;
|
|
31
|
+
gridLayout?: string;
|
|
32
|
+
placeHolder?: string;
|
|
33
|
+
readOnly?: boolean;
|
|
34
|
+
labelUppercase?: boolean;
|
|
35
|
+
disabled?: boolean;
|
|
36
|
+
unmask?: boolean;
|
|
37
|
+
lazy?: boolean;
|
|
38
|
+
placeholderChar?: string;
|
|
39
|
+
onFocus?: (e: CustomInputEvent) => void;
|
|
40
|
+
required?: boolean;
|
|
41
|
+
returnFormattedValueOnBlur?: boolean;
|
|
42
|
+
returnFormattedValueOnKeyDown?: boolean;
|
|
43
|
+
isDateField?: boolean;
|
|
44
|
+
autoCompleteMask?: 'left' | 'right';
|
|
45
|
+
definitions?: any;
|
|
46
|
+
mask?: any;
|
|
47
|
+
min?: any;
|
|
48
|
+
max?: any;
|
|
49
|
+
hint?: string | string[];
|
|
50
|
+
hintPosition?: 'below' | 'onLabelRight';
|
|
51
|
+
themePopover?: 'light' | 'dark';
|
|
52
|
+
popoverAlign?: 'right' | 'left';
|
|
53
|
+
pattern?: string;
|
|
54
|
+
mapToRadix?: string[];
|
|
55
|
+
normalizeZeros?: boolean;
|
|
56
|
+
};
|
|
57
|
+
export type ICnpjFieldProps = IBaseMaskProps & {
|
|
58
|
+
value?: string;
|
|
59
|
+
enableValidation?: boolean;
|
|
60
|
+
handlerSetComponentValidator?: (validator: () => void) => void;
|
|
61
|
+
};
|
|
62
|
+
export type ICpfProps = IBaseMaskProps & {
|
|
63
|
+
value?: string;
|
|
64
|
+
enableValidation?: boolean;
|
|
65
|
+
handlerSetComponentValidator?: (validator: () => void) => void;
|
|
66
|
+
};
|
|
67
|
+
export type IPhoneFieldProps = IBaseMaskProps & {
|
|
68
|
+
value?: string;
|
|
69
|
+
cellNumber?: boolean;
|
|
70
|
+
};
|
|
71
|
+
export type IZipCode = IBaseMaskProps & {
|
|
72
|
+
value?: string;
|
|
73
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { IActionButtonsProps } from './types';
|
|
2
|
+
declare const ActionButtons: ({ disabled, dropdownOpened, handleOpenClose, handleCheckAll, handleUncheckAll, dropdownAlignButton, }: IActionButtonsProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default ActionButtons;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { j as i } from "../../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as b } from "../../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import { Fragment as C } from "react";
|
|
4
|
+
import x from "../../buttons/Button.js";
|
|
5
|
+
import "../../icons/index.js";
|
|
6
|
+
import '../../assets/button.css';/* empty css */
|
|
7
|
+
import A from "../../list/index.js";
|
|
8
|
+
import { L as h } from "../../chunks/tabs.BvKfeA6Y.js";
|
|
9
|
+
const O = (w) => {
|
|
10
|
+
const t = b.c(18), {
|
|
11
|
+
disabled: o,
|
|
12
|
+
dropdownOpened: j,
|
|
13
|
+
handleOpenClose: d,
|
|
14
|
+
handleCheckAll: m,
|
|
15
|
+
handleUncheckAll: c,
|
|
16
|
+
dropdownAlignButton: u
|
|
17
|
+
} = w, p = u === void 0 ? "left" : u, f = j ? "up" : "down";
|
|
18
|
+
let e;
|
|
19
|
+
t[0] !== o || t[1] !== d || t[2] !== f ? (e = /* @__PURE__ */ i.jsx(x, { transparent: !0, tabIndex: -1, disabled: o, boxShadow: !1, size: "small", onClick: d, customClass: "actionbutton", iconName: f }), t[0] = o, t[1] = d, t[2] = f, t[3] = e) : e = t[3];
|
|
20
|
+
let n;
|
|
21
|
+
t[4] !== m ? (n = /* @__PURE__ */ i.jsx(h, { itemId: "1", text: "Marcar Todos", onClick: m }), t[4] = m, t[5] = n) : n = t[5];
|
|
22
|
+
let s;
|
|
23
|
+
t[6] !== c ? (s = /* @__PURE__ */ i.jsx(h, { itemId: "2", text: "Desmarcar Todos", onClick: c }), t[6] = c, t[7] = s) : s = t[7];
|
|
24
|
+
let r;
|
|
25
|
+
t[8] !== n || t[9] !== s ? (r = /* @__PURE__ */ i.jsxs(A, { children: [
|
|
26
|
+
n,
|
|
27
|
+
s
|
|
28
|
+
] }), t[8] = n, t[9] = s, t[10] = r) : r = t[10];
|
|
29
|
+
let l;
|
|
30
|
+
t[11] !== o || t[12] !== p || t[13] !== r ? (l = /* @__PURE__ */ i.jsx(x, { dropdown: !0, transparent: !0, disabled: o, tabIndex: -1, boxShadow: !1, showIconDropdown: !1, iconName: "more1", customClass: "actionbutton", dropdownAlign: p, children: r }), t[11] = o, t[12] = p, t[13] = r, t[14] = l) : l = t[14];
|
|
31
|
+
let a;
|
|
32
|
+
return t[15] !== e || t[16] !== l ? (a = /* @__PURE__ */ i.jsxs(C, { children: [
|
|
33
|
+
e,
|
|
34
|
+
l
|
|
35
|
+
] }), t[15] = e, t[16] = l, t[17] = a) : a = t[17], a;
|
|
36
|
+
};
|
|
37
|
+
export {
|
|
38
|
+
O as default
|
|
39
|
+
};
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { j as t } from "../../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as _ } from "../../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import { useState as q } from "react";
|
|
4
|
+
import M from "../../avatar/index.js";
|
|
5
|
+
import D from "../../icons/index.js";
|
|
6
|
+
const P = (j, e) => {
|
|
7
|
+
const l = j?.current?.getBoundingClientRect(), i = l?.bottom ? l?.bottom : 0, n = j?.current?.offsetTop ? j?.current?.offsetTop : 0, k = window.innerHeight - i;
|
|
8
|
+
let r = 200, s = e, a;
|
|
9
|
+
return !s || s <= 0 ? k < r ? (s = l?.top ? l.top : 0, a = window.innerHeight - n + 10) : s = k : (r = s, k < r && (a = window.innerHeight - n + 10)), {
|
|
10
|
+
maxHeight: `${s - 30}px`,
|
|
11
|
+
bottom: `${a}px`
|
|
12
|
+
};
|
|
13
|
+
}, Q = (j) => {
|
|
14
|
+
const e = _.c(42), {
|
|
15
|
+
imageAlign: l,
|
|
16
|
+
descriptionKey: i,
|
|
17
|
+
idKey: n,
|
|
18
|
+
dropdownMaxHeight: k,
|
|
19
|
+
selectFieldRef: r,
|
|
20
|
+
isAllChecked: s,
|
|
21
|
+
dropdownWidth: a,
|
|
22
|
+
inputValue: d,
|
|
23
|
+
gridWrapperStyle: E,
|
|
24
|
+
onFocus: A,
|
|
25
|
+
onFilter: B,
|
|
26
|
+
onBlur: H,
|
|
27
|
+
dataCombo: c,
|
|
28
|
+
opened: $,
|
|
29
|
+
onUncheckAll: F,
|
|
30
|
+
onCheckAll: I,
|
|
31
|
+
selecteds: y,
|
|
32
|
+
onSelect: K
|
|
33
|
+
} = j, C = l === void 0 ? "left" : l, T = k || 0;
|
|
34
|
+
let N;
|
|
35
|
+
e[0] !== r || e[1] !== T ? (N = P(r, T), e[0] = r, e[1] = T, e[2] = N) : N = e[2];
|
|
36
|
+
const [R] = q(N), U = E ? E.paddingLeft : "0";
|
|
37
|
+
let m;
|
|
38
|
+
e[3] !== R || e[4] !== a || e[5] !== U ? (m = {
|
|
39
|
+
width: a,
|
|
40
|
+
marginLeft: U,
|
|
41
|
+
...R
|
|
42
|
+
}, e[3] = R, e[4] = a, e[5] = U, e[6] = m) : m = e[6];
|
|
43
|
+
let p;
|
|
44
|
+
e[7] !== A ? (p = () => {
|
|
45
|
+
A();
|
|
46
|
+
}, e[7] = A, e[8] = p) : p = e[8];
|
|
47
|
+
let u;
|
|
48
|
+
e[9] !== H ? (u = (o) => {
|
|
49
|
+
H(o);
|
|
50
|
+
}, e[9] = H, e[10] = u) : u = e[10];
|
|
51
|
+
let f;
|
|
52
|
+
e[11] !== B ? (f = (o) => {
|
|
53
|
+
B(o.target.value);
|
|
54
|
+
}, e[11] = B, e[12] = f) : f = e[12];
|
|
55
|
+
let h;
|
|
56
|
+
e[13] !== d || e[14] !== $ || e[15] !== p || e[16] !== u || e[17] !== f ? (h = /* @__PURE__ */ t.jsx("input", { className: "filterinput", type: "text", value: d, onFocus: p, onBlur: u, onChange: f, autoFocus: $ }), e[13] = d, e[14] = $, e[15] = p, e[16] = u, e[17] = f, e[18] = h) : h = e[18];
|
|
57
|
+
let v;
|
|
58
|
+
e[19] === Symbol.for("react.memo_cache_sentinel") ? (v = /* @__PURE__ */ t.jsx(D, { customClass: "filtericon", name: "search", viewBox: "0 0 32 32" }), e[19] = v) : v = e[19];
|
|
59
|
+
let x;
|
|
60
|
+
e[20] !== h ? (x = /* @__PURE__ */ t.jsxs("div", { className: "filtercontainer", children: [
|
|
61
|
+
h,
|
|
62
|
+
v
|
|
63
|
+
] }), e[20] = h, e[21] = x) : x = e[21];
|
|
64
|
+
let g;
|
|
65
|
+
e[22] !== c || e[23] !== d || e[24] !== s || e[25] !== I || e[26] !== F ? (g = c && c.length > 0 && /* @__PURE__ */ t.jsx("div", { className: "item selectall", children: /* @__PURE__ */ t.jsxs("button", { className: "menubutton", tabIndex: -1, onClick: () => s ? F(!0) : I(!0), children: [
|
|
66
|
+
/* @__PURE__ */ t.jsx(D, { name: s && c.length > 0 ? "checkboxChecked2" : "checkboxUnchecked2", customClass: "checkboxicon" }),
|
|
67
|
+
/* @__PURE__ */ t.jsx("span", { className: "label", children: d !== "" ? "Selecionar todos pesquisados" : "Selecionar Todos" })
|
|
68
|
+
] }) }), e[22] = c, e[23] = d, e[24] = s, e[25] = I, e[26] = F, e[27] = g) : g = e[27];
|
|
69
|
+
let b;
|
|
70
|
+
e[28] !== c || e[29] !== i || e[30] !== n || e[31] !== C || e[32] !== K || e[33] !== y ? (b = c?.map((o) => {
|
|
71
|
+
const L = y ? y.find((W) => W[n] === o[n]) : void 0;
|
|
72
|
+
return /* @__PURE__ */ t.jsx("div", { className: `item ${L && "-selected"}`, children: /* @__PURE__ */ t.jsxs("button", { className: "menubutton", tabIndex: -1, onClick: () => {
|
|
73
|
+
K(o);
|
|
74
|
+
}, children: [
|
|
75
|
+
/* @__PURE__ */ t.jsx(D, { name: L ? "checkboxChecked2" : "checkboxUnchecked2", customClass: "checkboxicon" }),
|
|
76
|
+
o.iconName && /* @__PURE__ */ t.jsx(D, { name: o.iconName, customClass: "menuicon", style: {
|
|
77
|
+
order: C === "left" ? 0 : 1
|
|
78
|
+
} }),
|
|
79
|
+
o.imgSrcKey && /* @__PURE__ */ t.jsx(M, { src: o.imgSrcKey, customClass: "menuicon", style: {
|
|
80
|
+
order: C === "left" ? 0 : 1
|
|
81
|
+
} }),
|
|
82
|
+
/* @__PURE__ */ t.jsx("span", { className: "label", children: typeof i == "string" ? o[i] : i(o) })
|
|
83
|
+
] }) }, `dropdowmItem ${o[n]}}`);
|
|
84
|
+
}), e[28] = c, e[29] = i, e[30] = n, e[31] = C, e[32] = K, e[33] = y, e[34] = b) : b = e[34];
|
|
85
|
+
let w;
|
|
86
|
+
e[35] !== g || e[36] !== b ? (w = /* @__PURE__ */ t.jsxs("div", { className: "listcontainer", children: [
|
|
87
|
+
g,
|
|
88
|
+
b
|
|
89
|
+
] }), e[35] = g, e[36] = b, e[37] = w) : w = e[37];
|
|
90
|
+
let S;
|
|
91
|
+
return e[38] !== x || e[39] !== w || e[40] !== m ? (S = /* @__PURE__ */ t.jsxs("div", { className: "dropdown", style: m, children: [
|
|
92
|
+
x,
|
|
93
|
+
w
|
|
94
|
+
] }), e[38] = x, e[39] = w, e[40] = m, e[41] = S) : S = e[41], S;
|
|
95
|
+
};
|
|
96
|
+
export {
|
|
97
|
+
Q as default
|
|
98
|
+
};
|