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,12 @@
|
|
|
1
|
+
import { j as e } from "../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as m } from "../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import l from "./Default.js";
|
|
4
|
+
import i from "../internals/colorStyles.js";
|
|
5
|
+
const c = (r) => {
|
|
6
|
+
const t = m.c(2);
|
|
7
|
+
let o;
|
|
8
|
+
return t[0] !== r ? (o = /* @__PURE__ */ e.jsx(l, { ...r, colorStyle: i.PRIMARY }), t[0] = r, t[1] = o) : o = t[1], o;
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
c as default
|
|
12
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { j as r } from "../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as l } from "../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import m from "./Default.js";
|
|
4
|
+
import s from "../internals/colorStyles.js";
|
|
5
|
+
const n = (e) => {
|
|
6
|
+
const t = l.c(2);
|
|
7
|
+
let o;
|
|
8
|
+
return t[0] !== e ? (o = /* @__PURE__ */ r.jsx(m, { ...e, colorStyle: s.SUCCESS }), t[0] = e, t[1] = o) : o = t[1], o;
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
n as default
|
|
12
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { j as l } from "../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as a } from "../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import m from "../toolbar/index.js";
|
|
4
|
+
const p = (s) => {
|
|
5
|
+
const o = a.c(3), {
|
|
6
|
+
children: e
|
|
7
|
+
} = s;
|
|
8
|
+
let t;
|
|
9
|
+
o[0] === Symbol.for("react.memo_cache_sentinel") ? (t = {
|
|
10
|
+
width: "auto",
|
|
11
|
+
backgroundColor: "transparent",
|
|
12
|
+
border: 0
|
|
13
|
+
}, o[0] = t) : t = o[0];
|
|
14
|
+
let r;
|
|
15
|
+
return o[1] !== e ? (r = /* @__PURE__ */ l.jsx(m, { style: t, children: e }), o[1] = e, o[2] = r) : r = o[2], r;
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
p as default
|
|
19
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { j as e } from "../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as l } from "../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import m from "./Default.js";
|
|
4
|
+
import i from "../internals/colorStyles.js";
|
|
5
|
+
const c = (r) => {
|
|
6
|
+
const t = l.c(2);
|
|
7
|
+
let o;
|
|
8
|
+
return t[0] !== r ? (o = /* @__PURE__ */ e.jsx(m, { ...r, colorStyle: i.WARNING }), t[0] = r, t[1] = o) : o = t[1], o;
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
c as default
|
|
12
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ContextProps } from './types';
|
|
3
|
+
export declare function getCurrentThreshold(scrollableElement: HTMLDivElement, scrollThreshold: number): number;
|
|
4
|
+
declare const PanelContext: React.Context<ContextProps>;
|
|
5
|
+
export default PanelContext;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import a from "react";
|
|
2
|
+
function M(o, t) {
|
|
3
|
+
if (t < 0) return 0;
|
|
4
|
+
if (t > 1) return 1;
|
|
5
|
+
const {
|
|
6
|
+
scrollHeight: e,
|
|
7
|
+
clientHeight: r
|
|
8
|
+
} = o, n = e - r, H = Math.round(e * t), c = Math.round(n - n * 0.3);
|
|
9
|
+
return Math.min(H, c);
|
|
10
|
+
}
|
|
11
|
+
const h = a.createContext({});
|
|
12
|
+
export {
|
|
13
|
+
h as default,
|
|
14
|
+
M as getCurrentThreshold
|
|
15
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as Panel } from './Default';
|
|
2
|
+
import { default as PrimaryPanel } from './PrimaryPanel';
|
|
3
|
+
import { default as DangerPanel } from './DangerPanel';
|
|
4
|
+
import { default as WarningPanel } from './WarningPanel';
|
|
5
|
+
import { default as SuccessPanel } from './SuccessPanel';
|
|
6
|
+
import { default as InfoPanel } from './InfoPanel';
|
|
7
|
+
import { default as PanelHeader } from './Header';
|
|
8
|
+
import { default as PanelContent } from './Content';
|
|
9
|
+
export default Panel;
|
|
10
|
+
export { PanelHeader, PanelContent, PrimaryPanel, DangerPanel, SuccessPanel, InfoPanel, WarningPanel, };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import a from "./Default.js";
|
|
2
|
+
import { default as f } from "./PrimaryPanel.js";
|
|
3
|
+
import { default as n } from "./DangerPanel.js";
|
|
4
|
+
import { default as p } from "./WarningPanel.js";
|
|
5
|
+
import { default as u } from "./SuccessPanel.js";
|
|
6
|
+
import { default as P } from "./InfoPanel.js";
|
|
7
|
+
import { default as i } from "./Header.js";
|
|
8
|
+
import { default as g } from "./Content.js";
|
|
9
|
+
import '../assets/panel.css';/* empty css */
|
|
10
|
+
export {
|
|
11
|
+
n as DangerPanel,
|
|
12
|
+
P as InfoPanel,
|
|
13
|
+
g as PanelContent,
|
|
14
|
+
i as PanelHeader,
|
|
15
|
+
f as PrimaryPanel,
|
|
16
|
+
u as SuccessPanel,
|
|
17
|
+
p as WarningPanel,
|
|
18
|
+
a as default
|
|
19
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactElement, ReactNode } from 'react';
|
|
2
|
+
import { PermissionAttr } from '../@types/PermissionAttr';
|
|
3
|
+
import { default as ColorStyles } from '../internals/colorStyles';
|
|
4
|
+
import { IconNames } from '../@types/Icon';
|
|
5
|
+
export type Func = () => void;
|
|
6
|
+
export type AsyncFunc = () => Promise<void>;
|
|
7
|
+
export interface IPanelProps extends Omit<ComponentPropsWithoutRef<'div'>, 'className'> {
|
|
8
|
+
customClass?: string;
|
|
9
|
+
startOpened?: boolean;
|
|
10
|
+
toggleable?: boolean;
|
|
11
|
+
children?: ReactNode;
|
|
12
|
+
colorStyle?: typeof ColorStyles | string;
|
|
13
|
+
gridCols?: string;
|
|
14
|
+
title?: string;
|
|
15
|
+
onEndReached?: Func | AsyncFunc;
|
|
16
|
+
onEndReachedThreshold?: number;
|
|
17
|
+
permissionAttr?: PermissionAttr | PermissionAttr[];
|
|
18
|
+
}
|
|
19
|
+
export interface IPanelContentProps extends Omit<ComponentPropsWithoutRef<'div'>, 'className'> {
|
|
20
|
+
customClass?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface IPanelHeaderProps extends Omit<ComponentPropsWithoutRef<'div'>, 'className'> {
|
|
23
|
+
title?: string;
|
|
24
|
+
icon?: ReactElement;
|
|
25
|
+
titleIcon?: IconNames;
|
|
26
|
+
customClass?: string;
|
|
27
|
+
styleForTitle?: object;
|
|
28
|
+
customClassForTitle?: string;
|
|
29
|
+
headerColored?: boolean;
|
|
30
|
+
}
|
|
31
|
+
export type ContextProps = {
|
|
32
|
+
toggleable: boolean;
|
|
33
|
+
handlerToggleable: () => void;
|
|
34
|
+
opened: boolean;
|
|
35
|
+
hideContent: boolean;
|
|
36
|
+
onEndReached?: Func | AsyncFunc;
|
|
37
|
+
onEndReachedThreshold: number;
|
|
38
|
+
};
|
|
39
|
+
export interface IParameterFunction {
|
|
40
|
+
props: any;
|
|
41
|
+
propName: string | number;
|
|
42
|
+
componentName: string;
|
|
43
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PermissionAttr } from './@types/PermissionAttr';
|
|
2
|
+
declare const checkPermissionFromStorage: (permissionAttr?: PermissionAttr | PermissionAttr[]) => boolean;
|
|
3
|
+
export declare const actionsOnPermissionDenied: (options: string[], permissionAttr?: PermissionAttr | PermissionAttr[]) => {
|
|
4
|
+
[option: string]: boolean;
|
|
5
|
+
};
|
|
6
|
+
export declare const OPTIONS_ON_DENIED: {
|
|
7
|
+
disabled: string;
|
|
8
|
+
unvisible: string;
|
|
9
|
+
readOnly: string;
|
|
10
|
+
hideContent: string;
|
|
11
|
+
};
|
|
12
|
+
export default checkPermissionFromStorage;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
const a = (e) => {
|
|
2
|
+
if (!e) return [];
|
|
3
|
+
const n = JSON.parse(sessionStorage.getItem("permissionsStorage") || "{}");
|
|
4
|
+
return n && n[e] ? n[e] : [];
|
|
5
|
+
}, c = (e, n) => e.some((t) => t.codigo === n), i = (e, n, t) => {
|
|
6
|
+
for (let r = 0; r < e.length; r += 1) {
|
|
7
|
+
const s = e[r];
|
|
8
|
+
if (s.codigo === n && s.permissoes.length > 0)
|
|
9
|
+
return c(s.permissoes, t);
|
|
10
|
+
if (s.itens.length > 0) {
|
|
11
|
+
if (i(s.itens, n, t)) return !0;
|
|
12
|
+
if (r === e.length - 1) return !1;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
return !1;
|
|
16
|
+
}, l = (e) => {
|
|
17
|
+
if (!e) return !0;
|
|
18
|
+
const n = Array.isArray(e) ? e : [e];
|
|
19
|
+
for (let t = 0; t < n.length; t += 1) {
|
|
20
|
+
const {
|
|
21
|
+
module: r,
|
|
22
|
+
feature: s,
|
|
23
|
+
operation: o
|
|
24
|
+
} = n[t];
|
|
25
|
+
if (i(a(r), s, o)) return !0;
|
|
26
|
+
}
|
|
27
|
+
return !1;
|
|
28
|
+
}, d = (e, n) => {
|
|
29
|
+
const t = l(n), r = n && !Array.isArray(n) ? [n] : n;
|
|
30
|
+
if (r && r[0].onDenied && !e.includes(r[0].onDenied))
|
|
31
|
+
throw new Error("in property onDenied from permissionAttr it`s not a valid option. Look for valid options in the component documentation.");
|
|
32
|
+
const s = {};
|
|
33
|
+
return e.forEach((o) => {
|
|
34
|
+
s[o] = t ? !1 : o === r?.[0].onDenied;
|
|
35
|
+
}), s;
|
|
36
|
+
}, f = {
|
|
37
|
+
disabled: "disabled",
|
|
38
|
+
unvisible: "unvisible",
|
|
39
|
+
readOnly: "readOnly",
|
|
40
|
+
hideContent: "hideContent"
|
|
41
|
+
};
|
|
42
|
+
export {
|
|
43
|
+
f as OPTIONS_ON_DENIED,
|
|
44
|
+
d as actionsOnPermissionDenied,
|
|
45
|
+
l as default
|
|
46
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { j as m } from "../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as p } from "../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import { forwardRef as a } from "react";
|
|
4
|
+
const i = a((s, e) => {
|
|
5
|
+
const t = p.c(3), {
|
|
6
|
+
children: r
|
|
7
|
+
} = s;
|
|
8
|
+
let o;
|
|
9
|
+
return t[0] !== r || t[1] !== e ? (o = /* @__PURE__ */ m.jsx("p", { className: "text", ref: e, children: r }), t[0] = r, t[1] = e, t[2] = o) : o = t[2], o;
|
|
10
|
+
});
|
|
11
|
+
i.displayName = "PopoverText";
|
|
12
|
+
export {
|
|
13
|
+
i as default
|
|
14
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { j as r } from "../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as i } from "../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
const m = (s) => {
|
|
4
|
+
const t = i.c(2), {
|
|
5
|
+
children: o
|
|
6
|
+
} = s;
|
|
7
|
+
let e;
|
|
8
|
+
return t[0] !== o ? (e = /* @__PURE__ */ r.jsx("h1", { className: "title", children: o }), t[0] = o, t[1] = e) : e = t[1], e;
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
m as default
|
|
12
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { default as PopoverText } from './PopoverText';
|
|
2
|
+
import { default as PopoverTitle } from './PopoverTitle';
|
|
3
|
+
import { IPopoverProps } from './types';
|
|
4
|
+
declare const Popover: ({ children, align, theme, iconName, iconSize, iconColor, customClass, style, customStyle, ...rest }: IPopoverProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export default Popover;
|
|
6
|
+
export { PopoverText, PopoverTitle };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { j } from "../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as b } from "../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import z from "../buttons/Button.js";
|
|
4
|
+
import I from "../icons/index.js";
|
|
5
|
+
import '../assets/button.css';import '../assets/index3.css';/* empty css */
|
|
6
|
+
import { default as B } from "./PopoverText.js";
|
|
7
|
+
import { default as q } from "./PopoverTitle.js";
|
|
8
|
+
const N = (i) => {
|
|
9
|
+
const o = b.c(25);
|
|
10
|
+
let t, e, f, n, s, c, a, m, p, d;
|
|
11
|
+
o[0] !== i ? ({
|
|
12
|
+
children: t,
|
|
13
|
+
align: c,
|
|
14
|
+
theme: a,
|
|
15
|
+
iconName: f,
|
|
16
|
+
iconSize: m,
|
|
17
|
+
iconColor: p,
|
|
18
|
+
customClass: d,
|
|
19
|
+
style: s,
|
|
20
|
+
customStyle: e,
|
|
21
|
+
...n
|
|
22
|
+
} = i, o[0] = i, o[1] = t, o[2] = e, o[3] = f, o[4] = n, o[5] = s, o[6] = c, o[7] = a, o[8] = m, o[9] = p, o[10] = d) : (t = o[1], e = o[2], f = o[3], n = o[4], s = o[5], c = o[6], a = o[7], m = o[8], p = o[9], d = o[10]);
|
|
23
|
+
const v = c === void 0 ? "left" : c, w = a === void 0 ? "dark" : a, x = m === void 0 ? 16 : m, y = p === void 0 ? "" : p, S = d === void 0 ? "" : d, C = f || "information", h = y || "gray";
|
|
24
|
+
let r;
|
|
25
|
+
o[11] !== x || o[12] !== C || o[13] !== h ? (r = /* @__PURE__ */ j.jsx(I, { customClass: "buttonicon", name: C, color: h, size: x }), o[11] = x, o[12] = C, o[13] = h, o[14] = r) : r = o[14];
|
|
26
|
+
const g = `popovercontainer -${w} ${S}`;
|
|
27
|
+
let l;
|
|
28
|
+
o[15] !== t || o[16] !== e || o[17] !== g ? (l = /* @__PURE__ */ j.jsx("div", { className: g, "data-testid": "popover-container", style: e, children: t }), o[15] = t, o[16] = e, o[17] = g, o[18] = l) : l = o[18];
|
|
29
|
+
let u;
|
|
30
|
+
return o[19] !== v || o[20] !== n || o[21] !== s || o[22] !== l || o[23] !== r ? (u = /* @__PURE__ */ j.jsx(z, { round: !0, dropdown: !0, transparent: !0, tabIndex: -1, boxShadow: !1, iconAlign: "center", dropdownAlign: v, showIconDropdown: !1, customClass: "popover-component", style: s, icon: r, onClick: P, ...n, children: l }), o[19] = v, o[20] = n, o[21] = s, o[22] = l, o[23] = r, o[24] = u) : u = o[24], u;
|
|
31
|
+
};
|
|
32
|
+
function P(i) {
|
|
33
|
+
i.preventDefault();
|
|
34
|
+
}
|
|
35
|
+
export {
|
|
36
|
+
B as PopoverText,
|
|
37
|
+
q as PopoverTitle,
|
|
38
|
+
N as default
|
|
39
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
import { Position } from '../@types/Position';
|
|
3
|
+
import { SizePixels } from '../@types/SizePixels';
|
|
4
|
+
import { IconNames } from '../@types/Icon';
|
|
5
|
+
import { PermissionAttr } from '../@types/PermissionAttr';
|
|
6
|
+
export interface PopoverTitleProps {
|
|
7
|
+
children?: ReactNode;
|
|
8
|
+
}
|
|
9
|
+
export interface PopoverTextProps {
|
|
10
|
+
children?: ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export interface IPopoverProps {
|
|
13
|
+
iconName?: IconNames;
|
|
14
|
+
iconColor?: string;
|
|
15
|
+
customClass?: string;
|
|
16
|
+
children?: ReactNode;
|
|
17
|
+
theme?: 'light' | 'dark';
|
|
18
|
+
align?: Extract<Position, 'left' | 'right'>;
|
|
19
|
+
iconSize?: Extract<SizePixels, 10 | 16 | 24 | 32 | 40 | 64>;
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
customStyle?: CSSProperties;
|
|
22
|
+
isLoading?: boolean;
|
|
23
|
+
visible?: boolean;
|
|
24
|
+
skeletonize?: boolean;
|
|
25
|
+
tooltipPosition?: Exclude<Position, 'center'>;
|
|
26
|
+
tooltipWidth?: string | number;
|
|
27
|
+
tooltip?: string;
|
|
28
|
+
handlerClose?: (cb: () => void) => void;
|
|
29
|
+
permissionAttr?: PermissionAttr | PermissionAttr[];
|
|
30
|
+
style?: CSSProperties;
|
|
31
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { j as h } from "../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as g } from "../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
const v = 1e3, b = ({
|
|
4
|
+
max: t = 100,
|
|
5
|
+
min: e = 0,
|
|
6
|
+
value: a = 0
|
|
7
|
+
}) => {
|
|
8
|
+
const i = (a - e) / (t - e) * 100;
|
|
9
|
+
return Math.round(i * v) / v;
|
|
10
|
+
}, x = (t) => {
|
|
11
|
+
let e = "bar";
|
|
12
|
+
return t.customClass && (e += `${t.customClass}`), t.type && (e += ` -${t.type}`), t.effect && (e += " -effect"), t.animated && (e += " -animated"), t.indeterminate && (e += " -indeterminate"), e;
|
|
13
|
+
}, y = (t) => {
|
|
14
|
+
let e = t.label;
|
|
15
|
+
return t.label || (e = `${b(t)}%`), /* @__PURE__ */ h.jsx("span", { className: "progressbar-label ", children: e });
|
|
16
|
+
}, $ = (t) => {
|
|
17
|
+
const {
|
|
18
|
+
indeterminate: e,
|
|
19
|
+
indeterminateDelay: a = 1,
|
|
20
|
+
indeterminateDuration: i = 1.5,
|
|
21
|
+
progressWidth: c = "100%",
|
|
22
|
+
height: r = "100%"
|
|
23
|
+
} = t;
|
|
24
|
+
return e ? {
|
|
25
|
+
width: c,
|
|
26
|
+
height: r,
|
|
27
|
+
animationDuration: `${i}s`,
|
|
28
|
+
animationDelay: `${a}s`
|
|
29
|
+
} : {
|
|
30
|
+
width: `${b(t)}%`,
|
|
31
|
+
height: r
|
|
32
|
+
};
|
|
33
|
+
}, j = (t) => {
|
|
34
|
+
const e = g.c(14), {
|
|
35
|
+
value: a,
|
|
36
|
+
min: i,
|
|
37
|
+
max: c,
|
|
38
|
+
showLabel: r
|
|
39
|
+
} = t, o = a === void 0 ? 0 : a, u = i === void 0 ? 0 : i, d = c === void 0 ? 100 : c, f = r === void 0 ? !0 : r;
|
|
40
|
+
let n;
|
|
41
|
+
e[0] !== t ? (n = x(t), e[0] = t, e[1] = n) : n = e[1];
|
|
42
|
+
let l;
|
|
43
|
+
e[2] !== t ? (l = $(t), e[2] = t, e[3] = l) : l = e[3];
|
|
44
|
+
let s;
|
|
45
|
+
e[4] !== t || e[5] !== f ? (s = f && !t.indeterminate && y(t), e[4] = t, e[5] = f, e[6] = s) : s = e[6];
|
|
46
|
+
let m;
|
|
47
|
+
return e[7] !== d || e[8] !== u || e[9] !== n || e[10] !== l || e[11] !== s || e[12] !== o ? (m = /* @__PURE__ */ h.jsx("div", { role: "progressbar", className: n, style: l, "aria-valuenow": o, "aria-valuemin": u, "aria-valuemax": d, children: s }), e[7] = d, e[8] = u, e[9] = n, e[10] = l, e[11] = s, e[12] = o, e[13] = m) : m = e[13], m;
|
|
48
|
+
};
|
|
49
|
+
export {
|
|
50
|
+
j as default
|
|
51
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { j as h } from "../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as f } from "../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import x from "./Bar.js";
|
|
4
|
+
import '../assets/index9.css';const p = (s) => {
|
|
5
|
+
const t = f.c(10), {
|
|
6
|
+
style: o,
|
|
7
|
+
children: l,
|
|
8
|
+
width: m,
|
|
9
|
+
height: d
|
|
10
|
+
} = s, c = m === void 0 ? "100%" : m, n = d === void 0 ? "24px" : d;
|
|
11
|
+
let r;
|
|
12
|
+
t[0] !== n || t[1] !== o || t[2] !== c ? (r = {
|
|
13
|
+
...o,
|
|
14
|
+
width: c,
|
|
15
|
+
height: n
|
|
16
|
+
}, t[0] = n, t[1] = o, t[2] = c, t[3] = r) : r = t[3];
|
|
17
|
+
const a = r;
|
|
18
|
+
let e;
|
|
19
|
+
t[4] !== l || t[5] !== s ? (e = l || /* @__PURE__ */ h.jsx(x, { ...s }), t[4] = l, t[5] = s, t[6] = e) : e = t[6];
|
|
20
|
+
let i;
|
|
21
|
+
return t[7] !== a || t[8] !== e ? (i = /* @__PURE__ */ h.jsx("div", { className: "container-progress", style: a, children: e }), t[7] = a, t[8] = e, t[9] = i) : i = t[9], i;
|
|
22
|
+
};
|
|
23
|
+
export {
|
|
24
|
+
x as Bar,
|
|
25
|
+
p as default
|
|
26
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
export interface IBarProps {
|
|
3
|
+
label?: string;
|
|
4
|
+
min?: number;
|
|
5
|
+
value?: number;
|
|
6
|
+
max?: number;
|
|
7
|
+
progressWidth?: string | number;
|
|
8
|
+
height?: string | number;
|
|
9
|
+
showLabel?: boolean;
|
|
10
|
+
effect?: boolean;
|
|
11
|
+
type?: string;
|
|
12
|
+
customClass?: string;
|
|
13
|
+
animated?: boolean;
|
|
14
|
+
indeterminate?: boolean;
|
|
15
|
+
indeterminateDuration?: number;
|
|
16
|
+
indeterminateDelay?: number;
|
|
17
|
+
}
|
|
18
|
+
export interface IProgressBarProps extends IBarProps {
|
|
19
|
+
width?: string | number;
|
|
20
|
+
height?: string | number;
|
|
21
|
+
style?: CSSProperties;
|
|
22
|
+
children?: ReactNode;
|
|
23
|
+
}
|
|
24
|
+
export interface IPercentageParams {
|
|
25
|
+
max?: number;
|
|
26
|
+
min?: number;
|
|
27
|
+
value?: number;
|
|
28
|
+
}
|
|
29
|
+
export interface ILabelParams {
|
|
30
|
+
label?: string;
|
|
31
|
+
max?: number;
|
|
32
|
+
min?: number;
|
|
33
|
+
value?: number;
|
|
34
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IRadioProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* IMPORTANTE: Caso seja necessário alterar o nome do componente, deverá ser refatorado
|
|
4
|
+
* o componente Field dentro do componente Form, pois o mesmo leva em consideração o tipo do
|
|
5
|
+
* componente para gerar propriedades customizadas.
|
|
6
|
+
*/
|
|
7
|
+
declare const Radio: ({ id, label, value, checked, onChange, name, disabled, required, skeletonize, defaultChecked, inputRef, size, customClassForLabel, labelUppercase, hint, hintPosition, themePopover, popoverAlign, permissionAttr, }: IRadioProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
8
|
+
export default Radio;
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { j as i } from "../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as ae } from "../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import { useState as te, useEffect as ce } from "react";
|
|
4
|
+
import '../assets/radio.css';/* empty css */
|
|
5
|
+
import { OPTIONS_ON_DENIED as se, actionsOnPermissionDenied as de } from "../permissionValidations.js";
|
|
6
|
+
import re from "../popover/index.js";
|
|
7
|
+
import ie from "../textContent/index.js";
|
|
8
|
+
const ge = (oe) => {
|
|
9
|
+
const e = ae.c(58), {
|
|
10
|
+
id: o,
|
|
11
|
+
label: S,
|
|
12
|
+
value: $,
|
|
13
|
+
checked: t,
|
|
14
|
+
onChange: v,
|
|
15
|
+
name: H,
|
|
16
|
+
disabled: J,
|
|
17
|
+
required: M,
|
|
18
|
+
skeletonize: Q,
|
|
19
|
+
defaultChecked: V,
|
|
20
|
+
inputRef: O,
|
|
21
|
+
size: W,
|
|
22
|
+
customClassForLabel: A,
|
|
23
|
+
labelUppercase: L,
|
|
24
|
+
hint: x,
|
|
25
|
+
hintPosition: X,
|
|
26
|
+
themePopover: Y,
|
|
27
|
+
popoverAlign: Z,
|
|
28
|
+
permissionAttr: q
|
|
29
|
+
} = oe, w = H === void 0 ? "" : H, g = J === void 0 ? !1 : J, l = M === void 0 ? !1 : M, k = Q === void 0 ? !1 : Q, C = V === void 0 ? !1 : V, ee = W === void 0 ? "medium" : W, F = X === void 0 ? "onLabelRight" : X, T = Y === void 0 ? "light" : Y, K = Z === void 0 ? "left" : Z, [n, le] = te(t);
|
|
30
|
+
let P, j;
|
|
31
|
+
if (e[0] !== q) {
|
|
32
|
+
const b = [se.disabled, se.unvisible];
|
|
33
|
+
P = te, j = de(b, q), e[0] = q, e[1] = P, e[2] = j;
|
|
34
|
+
} else
|
|
35
|
+
P = e[1], j = e[2];
|
|
36
|
+
const [N] = P(j);
|
|
37
|
+
let y;
|
|
38
|
+
e[3] !== t || e[4] !== n ? (y = () => {
|
|
39
|
+
t !== n && le(t);
|
|
40
|
+
}, e[3] = t, e[4] = n, e[5] = y) : y = e[5];
|
|
41
|
+
let z;
|
|
42
|
+
e[6] !== t ? (z = [t], e[6] = t, e[7] = z) : z = e[7], ce(y, z);
|
|
43
|
+
let D;
|
|
44
|
+
e[8] !== g || e[9] !== N.disabled || e[10] !== k ? (D = () => g || !!N.disabled || k, e[8] = g, e[9] = N.disabled, e[10] = k, e[11] = D) : D = e[11];
|
|
45
|
+
const s = D;
|
|
46
|
+
let R;
|
|
47
|
+
e[12] !== t || e[13] !== C || e[14] !== n || e[15] !== v || e[16] !== s ? (R = () => {
|
|
48
|
+
let b;
|
|
49
|
+
return b = {
|
|
50
|
+
...C && !t ? {
|
|
51
|
+
defaultChecked: C
|
|
52
|
+
} : {
|
|
53
|
+
checked: n
|
|
54
|
+
}
|
|
55
|
+
}, v && !s() && (b = {
|
|
56
|
+
...b,
|
|
57
|
+
onChange: (ne) => v(ne),
|
|
58
|
+
onKeyDown: null,
|
|
59
|
+
role: "button",
|
|
60
|
+
tabIndex: "0"
|
|
61
|
+
}), b;
|
|
62
|
+
}, e[12] = t, e[13] = C, e[14] = n, e[15] = v, e[16] = s, e[17] = R) : R = e[17];
|
|
63
|
+
const U = R;
|
|
64
|
+
if (N.unvisible)
|
|
65
|
+
return null;
|
|
66
|
+
let _;
|
|
67
|
+
e[18] === Symbol.for("react.memo_cache_sentinel") ? (_ = {
|
|
68
|
+
display: "flex",
|
|
69
|
+
alignItems: "center"
|
|
70
|
+
}, e[18] = _) : _ = e[18];
|
|
71
|
+
const B = `radio-button ${g ? "disabled" : ""} ${k ? "-skeletonized" : ""}`;
|
|
72
|
+
let a;
|
|
73
|
+
e[19] !== U ? (a = U(), e[19] = U, e[20] = a) : a = e[20];
|
|
74
|
+
let c;
|
|
75
|
+
e[21] !== s ? (c = s(), e[21] = s, e[22] = c) : c = e[22];
|
|
76
|
+
let d;
|
|
77
|
+
e[23] !== o || e[24] !== O || e[25] !== w || e[26] !== l || e[27] !== a || e[28] !== c || e[29] !== $ ? (d = /* @__PURE__ */ i.jsx("input", { ...a, ref: O, className: "radio-component", type: "radio", value: $, id: o, name: w, required: l, disabled: c }), e[23] = o, e[24] = O, e[25] = w, e[26] = l, e[27] = a, e[28] = c, e[29] = $, e[30] = d) : d = e[30];
|
|
78
|
+
const G = `description ${ee && `-${ee}`}`;
|
|
79
|
+
let r;
|
|
80
|
+
e[31] !== s ? (r = s(), e[31] = s, e[32] = r) : r = e[32];
|
|
81
|
+
let m;
|
|
82
|
+
e[33] !== A || e[34] !== L || e[35] !== l || e[36] !== r ? (m = /* @__PURE__ */ i.jsx(ie, { required: l, disabled: r, className: A, labelUppercase: L }), e[33] = A, e[34] = L, e[35] = l, e[36] = r, e[37] = m) : m = e[37];
|
|
83
|
+
let E;
|
|
84
|
+
e[38] === Symbol.for("react.memo_cache_sentinel") ? (E = /* @__PURE__ */ i.jsx(ie, {}), e[38] = E) : E = e[38];
|
|
85
|
+
let f;
|
|
86
|
+
e[39] !== S || e[40] !== m ? (f = /* @__PURE__ */ i.jsxs("span", { children: [
|
|
87
|
+
m,
|
|
88
|
+
S,
|
|
89
|
+
E
|
|
90
|
+
] }), e[39] = S, e[40] = m, e[41] = f) : f = e[41];
|
|
91
|
+
let p;
|
|
92
|
+
e[42] !== o || e[43] !== G || e[44] !== f ? (p = /* @__PURE__ */ i.jsx("label", { className: G, htmlFor: o, children: f }), e[42] = o, e[43] = G, e[44] = f, e[45] = p) : p = e[45];
|
|
93
|
+
let h;
|
|
94
|
+
e[46] !== B || e[47] !== d || e[48] !== p ? (h = /* @__PURE__ */ i.jsxs("div", { className: B, children: [
|
|
95
|
+
d,
|
|
96
|
+
p
|
|
97
|
+
] }), e[46] = B, e[47] = d, e[48] = p, e[49] = h) : h = e[49];
|
|
98
|
+
let u;
|
|
99
|
+
e[50] !== x || e[51] !== F || e[52] !== K || e[53] !== T ? (u = !!x && F === "onLabelRight" && /* @__PURE__ */ i.jsx(re, { theme: T, align: K, customClass: "-hint", iconColor: "#03bde2", iconSize: 16, style: {
|
|
100
|
+
margin: "0px 5px",
|
|
101
|
+
height: "auto",
|
|
102
|
+
width: 20
|
|
103
|
+
}, children: x }), e[50] = x, e[51] = F, e[52] = K, e[53] = T, e[54] = u) : u = e[54];
|
|
104
|
+
let I;
|
|
105
|
+
return e[55] !== h || e[56] !== u ? (I = /* @__PURE__ */ i.jsxs("div", { className: "radio-input", style: _, children: [
|
|
106
|
+
h,
|
|
107
|
+
u
|
|
108
|
+
] }), e[55] = h, e[56] = u, e[57] = I) : I = e[57], I;
|
|
109
|
+
};
|
|
110
|
+
export {
|
|
111
|
+
ge as default
|
|
112
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ChangeEvent, Ref, RefObject } from 'react';
|
|
2
|
+
import { PermissionAttr } from '../@types/PermissionAttr';
|
|
3
|
+
import { Size } from '../@types/Size';
|
|
4
|
+
export interface IRadioProps {
|
|
5
|
+
label?: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
defaultChecked?: boolean;
|
|
8
|
+
value?: string;
|
|
9
|
+
name?: string;
|
|
10
|
+
id?: string;
|
|
11
|
+
required?: boolean;
|
|
12
|
+
size?: Extract<Size, 'small' | 'medium' | 'large'>;
|
|
13
|
+
onChange?: (value: ChangeEvent<HTMLInputElement>) => void;
|
|
14
|
+
checked?: boolean;
|
|
15
|
+
permissionAttr?: PermissionAttr | PermissionAttr;
|
|
16
|
+
skeletonize?: boolean;
|
|
17
|
+
forwardedRef?: Ref<HTMLInputElement>;
|
|
18
|
+
inputRef?: RefObject<HTMLInputElement>;
|
|
19
|
+
customClassForLabel?: string;
|
|
20
|
+
labelUppercase?: boolean;
|
|
21
|
+
hint?: string;
|
|
22
|
+
hintPosition?: 'below' | 'onLabelRight';
|
|
23
|
+
themePopover?: 'light' | 'dark';
|
|
24
|
+
popoverAlign?: 'right' | 'left';
|
|
25
|
+
}
|