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,16 @@
|
|
|
1
|
+
import { B as a } from "../chunks/index.aw0XaUkg.js";
|
|
2
|
+
import { default as e } from "./Alert.js";
|
|
3
|
+
import { default as l } from "./Error.js";
|
|
4
|
+
import { default as s } from "./Information.js";
|
|
5
|
+
import { default as u } from "./Question.js";
|
|
6
|
+
import { default as p } from "./Warning.js";
|
|
7
|
+
import { default as x } from "./Custom.js";
|
|
8
|
+
export {
|
|
9
|
+
e as DialogAlert,
|
|
10
|
+
x as DialogCustom,
|
|
11
|
+
l as DialogError,
|
|
12
|
+
s as DialogInformation,
|
|
13
|
+
u as DialogQuestion,
|
|
14
|
+
p as DialogWarning,
|
|
15
|
+
a as default
|
|
16
|
+
};
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { ReactNode, CSSProperties, ReactElement, Dispatch, JSX } from 'react';
|
|
2
|
+
import { TextAlign } from '../@types/Align';
|
|
3
|
+
import { IconNames } from '../@types/Icon';
|
|
4
|
+
export interface IContentProps {
|
|
5
|
+
children: ReactNode | ReactNode[];
|
|
6
|
+
styleForContent?: CSSProperties;
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface IFooterProps {
|
|
10
|
+
children: ReactElement | ReactElement[];
|
|
11
|
+
}
|
|
12
|
+
export interface IHeaderProps {
|
|
13
|
+
handlerClose?: () => void;
|
|
14
|
+
showCloseButton?: boolean;
|
|
15
|
+
title?: string;
|
|
16
|
+
icon?: JSX.Element;
|
|
17
|
+
titleIcon?: IconNames;
|
|
18
|
+
}
|
|
19
|
+
export interface IBaseProps {
|
|
20
|
+
wrapperClassName?: string;
|
|
21
|
+
width?: string;
|
|
22
|
+
height?: string;
|
|
23
|
+
children: ReactNode | ReactNode[];
|
|
24
|
+
className?: string;
|
|
25
|
+
closeOnEsc?: boolean;
|
|
26
|
+
closeOnOutsideClick?: boolean;
|
|
27
|
+
overlay?: boolean;
|
|
28
|
+
textAlign?: TextAlign;
|
|
29
|
+
zIndex?: number | string;
|
|
30
|
+
open?: boolean;
|
|
31
|
+
onOpenChange?: (open: boolean) => void;
|
|
32
|
+
handlerClose?: () => void;
|
|
33
|
+
id?: string;
|
|
34
|
+
}
|
|
35
|
+
export interface IFormProps extends Omit<IBaseProps, 'textAlign' | 'zIndex'> {
|
|
36
|
+
buttons?: JSX.Element[];
|
|
37
|
+
styleForContent?: CSSProperties;
|
|
38
|
+
title?: string;
|
|
39
|
+
showFooter?: boolean;
|
|
40
|
+
isWaiting?: boolean;
|
|
41
|
+
icon?: JSX.Element;
|
|
42
|
+
content?: ReactNode;
|
|
43
|
+
contentClassName?: string;
|
|
44
|
+
}
|
|
45
|
+
export interface ICommonDialogProps {
|
|
46
|
+
onConfirmClick?: () => void;
|
|
47
|
+
text?: string;
|
|
48
|
+
title?: string;
|
|
49
|
+
confirmLabel?: string;
|
|
50
|
+
}
|
|
51
|
+
export interface IQuestionProps {
|
|
52
|
+
onUnconfirmClick: () => void;
|
|
53
|
+
onConfirmClick?: () => void;
|
|
54
|
+
visible?: boolean;
|
|
55
|
+
isWaiting?: boolean;
|
|
56
|
+
text?: string;
|
|
57
|
+
title?: string;
|
|
58
|
+
zIndex?: number | string;
|
|
59
|
+
closeOnEsc?: boolean;
|
|
60
|
+
confirmLabel?: string;
|
|
61
|
+
declineLabel?: string;
|
|
62
|
+
}
|
|
63
|
+
export interface ICustomProps {
|
|
64
|
+
icon: ReactElement;
|
|
65
|
+
buttons?: JSX.Element[];
|
|
66
|
+
title?: string;
|
|
67
|
+
text?: string;
|
|
68
|
+
height?: string;
|
|
69
|
+
width?: string;
|
|
70
|
+
iconName?: IconNames | null;
|
|
71
|
+
open?: boolean;
|
|
72
|
+
closeOnEsc?: boolean;
|
|
73
|
+
handlerClose?: () => void;
|
|
74
|
+
}
|
|
75
|
+
export interface IFormDialogContext {
|
|
76
|
+
headerRef?: React.RefObject<HTMLDivElement>;
|
|
77
|
+
}
|
|
78
|
+
export interface WizardComponentProps extends Omit<IFormProps, 'content'> {
|
|
79
|
+
children: React.ReactNode;
|
|
80
|
+
buttons?: JSX.Element[];
|
|
81
|
+
showProgressbar?: boolean;
|
|
82
|
+
title?: string;
|
|
83
|
+
handlerClose?: () => void;
|
|
84
|
+
controls: WizardControls;
|
|
85
|
+
customStyleForProgressBar?: CSSProperties;
|
|
86
|
+
customStyleForBody?: CSSProperties;
|
|
87
|
+
progressBarPosition?: 'top' | 'left';
|
|
88
|
+
}
|
|
89
|
+
export interface WizardStepComponentProps {
|
|
90
|
+
children: React.ReactNode;
|
|
91
|
+
title: string;
|
|
92
|
+
customClass?: string;
|
|
93
|
+
customStyle?: CSSProperties;
|
|
94
|
+
}
|
|
95
|
+
export interface WizardControls extends Omit<UseWizardReturn, 'controls'> {
|
|
96
|
+
setTotalSteps: Dispatch<React.SetStateAction<number>>;
|
|
97
|
+
}
|
|
98
|
+
export interface UseWizardReturn {
|
|
99
|
+
changeStep: (nextStep: number) => void;
|
|
100
|
+
nextStep: () => void;
|
|
101
|
+
hasNextStep: boolean;
|
|
102
|
+
previousStep: () => void;
|
|
103
|
+
hasPreviousStep: boolean;
|
|
104
|
+
currentStep: number;
|
|
105
|
+
totalSteps: number;
|
|
106
|
+
controls: WizardControls;
|
|
107
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { WizardComponentProps, WizardControls } from '../types';
|
|
3
|
+
export declare const WizardContext: React.Context<WizardControls | null>;
|
|
4
|
+
export declare const useWizardContext: () => WizardControls | null;
|
|
5
|
+
declare function Wizard({ children, controls, showProgressbar, customStyleForProgressBar, customStyleForBody, progressBarPosition, ...dialogProps }: Readonly<WizardComponentProps>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export { WizardStep as Step } from './step';
|
|
7
|
+
export { Wizard as Container };
|
|
8
|
+
export { useWizard } from './useWizard';
|
|
9
|
+
export default Wizard;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import "../../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import "../../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import "../../chunks/lodash.CIAK_hAg.js";
|
|
5
|
+
import "../../chunks/index.aw0XaUkg.js";
|
|
6
|
+
import { b as m, W as s, a as d, b as n, u } from "./progressbar.js";
|
|
7
|
+
import { useWizard as W } from "./useWizard.js";
|
|
8
|
+
export {
|
|
9
|
+
m as Container,
|
|
10
|
+
s as Step,
|
|
11
|
+
d as WizardContext,
|
|
12
|
+
n as default,
|
|
13
|
+
W as useWizard,
|
|
14
|
+
u as useWizardContext
|
|
15
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
export declare function Progressbar({ customClass, customStyle, stepsTitle, position, }: Readonly<{
|
|
3
|
+
customClass?: string;
|
|
4
|
+
stepsTitle: {
|
|
5
|
+
title: string;
|
|
6
|
+
number: number;
|
|
7
|
+
completed: boolean;
|
|
8
|
+
}[];
|
|
9
|
+
customStyle?: CSSProperties;
|
|
10
|
+
position?: 'top' | 'left';
|
|
11
|
+
}>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { j as d } from "../../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as C } from "../../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import N, { useEffect as B } from "react";
|
|
4
|
+
import { _ as F } from "../../chunks/lodash.CIAK_hAg.js";
|
|
5
|
+
import { F as R } from "../../chunks/index.aw0XaUkg.js";
|
|
6
|
+
import "./useWizard.js";
|
|
7
|
+
import '../../assets/progressbar.css';function T(u) {
|
|
8
|
+
const t = C.c(10), {
|
|
9
|
+
customClass: l,
|
|
10
|
+
customStyle: s,
|
|
11
|
+
stepsTitle: r,
|
|
12
|
+
position: a
|
|
13
|
+
} = u, c = a === void 0 ? "top" : a, i = E();
|
|
14
|
+
if (!i)
|
|
15
|
+
throw new Error("WizardProgressbar must be used within a Wizard component");
|
|
16
|
+
const {
|
|
17
|
+
currentStep: o
|
|
18
|
+
} = i, f = `wizard-progressbar ${l}`;
|
|
19
|
+
let m;
|
|
20
|
+
if (t[0] !== o || t[1] !== r) {
|
|
21
|
+
let p;
|
|
22
|
+
t[3] !== o ? (p = (e) => /* @__PURE__ */ d.jsxs("div", { className: "title", "data-completed": e.completed, "data-disabled": e.number > o, children: [
|
|
23
|
+
/* @__PURE__ */ d.jsx("div", { className: "step", children: /* @__PURE__ */ d.jsx("span", { className: "number", children: e.number }) }),
|
|
24
|
+
/* @__PURE__ */ d.jsx("span", { className: "step-title", children: e.title })
|
|
25
|
+
] }, e.number), t[3] = o, t[4] = p) : p = t[4], m = r.map(p), t[0] = o, t[1] = r, t[2] = m;
|
|
26
|
+
} else
|
|
27
|
+
m = t[2];
|
|
28
|
+
let n;
|
|
29
|
+
return t[5] !== s || t[6] !== c || t[7] !== f || t[8] !== m ? (n = /* @__PURE__ */ d.jsx("div", { className: f, style: s, "data-position": c, children: m }), t[5] = s, t[6] = c, t[7] = f, t[8] = m, t[9] = n) : n = t[9], n;
|
|
30
|
+
}
|
|
31
|
+
function H(u) {
|
|
32
|
+
const t = C.c(4), {
|
|
33
|
+
children: l,
|
|
34
|
+
customClass: s,
|
|
35
|
+
customStyle: r
|
|
36
|
+
} = u, a = s === void 0 ? "" : s;
|
|
37
|
+
if (!E())
|
|
38
|
+
throw new Error("WizardStep must be used within a Wizard component");
|
|
39
|
+
const i = `wizard-step-component ${a}`;
|
|
40
|
+
let o;
|
|
41
|
+
return t[0] !== l || t[1] !== r || t[2] !== i ? (o = /* @__PURE__ */ d.jsx("div", { className: i, style: r, children: l }), t[0] = l, t[1] = r, t[2] = i, t[3] = o) : o = t[3], o;
|
|
42
|
+
}
|
|
43
|
+
const P = N.createContext(null), E = () => N.useContext(P);
|
|
44
|
+
function I(u) {
|
|
45
|
+
const t = C.c(34);
|
|
46
|
+
let l, s, r, a, c, i, o;
|
|
47
|
+
t[0] !== u ? ({
|
|
48
|
+
children: l,
|
|
49
|
+
controls: s,
|
|
50
|
+
showProgressbar: i,
|
|
51
|
+
customStyleForProgressBar: a,
|
|
52
|
+
customStyleForBody: r,
|
|
53
|
+
progressBarPosition: o,
|
|
54
|
+
...c
|
|
55
|
+
} = u, t[0] = u, t[1] = l, t[2] = s, t[3] = r, t[4] = a, t[5] = c, t[6] = i, t[7] = o) : (l = t[1], s = t[2], r = t[3], a = t[4], c = t[5], i = t[6], o = t[7]);
|
|
56
|
+
const f = i === void 0 ? !0 : i, m = o === void 0 ? "top" : o, {
|
|
57
|
+
currentStep: n,
|
|
58
|
+
setTotalSteps: p
|
|
59
|
+
} = s;
|
|
60
|
+
let e, w;
|
|
61
|
+
if (t[8] !== l || t[9] !== n) {
|
|
62
|
+
e = N.Children.toArray(l);
|
|
63
|
+
let j;
|
|
64
|
+
t[12] !== n ? (j = ($, W) => ({
|
|
65
|
+
title: String($.props.title),
|
|
66
|
+
number: W + 1,
|
|
67
|
+
completed: W < n - 1 && W !== n
|
|
68
|
+
}), t[12] = n, t[13] = j) : j = t[13], w = e.map(j), t[8] = l, t[9] = n, t[10] = e, t[11] = w;
|
|
69
|
+
} else
|
|
70
|
+
e = t[10], w = t[11];
|
|
71
|
+
const v = w, S = e[n - 1];
|
|
72
|
+
if (!s || F.isEmpty(s))
|
|
73
|
+
throw new Error("Wizard must be have controls by using useWizard hook or creating manually.");
|
|
74
|
+
let b;
|
|
75
|
+
t[14] !== p || t[15] !== e.length ? (b = () => {
|
|
76
|
+
p(e.length);
|
|
77
|
+
}, t[14] = p, t[15] = e.length, t[16] = b) : b = t[16];
|
|
78
|
+
let z;
|
|
79
|
+
t[17] !== e.length ? (z = [e.length], t[17] = e.length, t[18] = z) : z = t[18], B(b, z);
|
|
80
|
+
let h;
|
|
81
|
+
t[19] !== a || t[20] !== m || t[21] !== f || t[22] !== v ? (h = f && /* @__PURE__ */ d.jsx(T, { stepsTitle: v, customStyle: a, position: m }), t[19] = a, t[20] = m, t[21] = f, t[22] = v, t[23] = h) : h = t[23];
|
|
82
|
+
let g;
|
|
83
|
+
t[24] !== S || t[25] !== r ? (g = /* @__PURE__ */ d.jsx("div", { className: "wizard-body", style: r, children: S }), t[24] = S, t[25] = r, t[26] = g) : g = t[26];
|
|
84
|
+
let x;
|
|
85
|
+
t[27] !== c || t[28] !== h || t[29] !== g ? (x = /* @__PURE__ */ d.jsxs(R, { className: "wizard-dialog", wrapperClassName: "wizard-wrapper", contentClassName: "wizard-content", ...c, children: [
|
|
86
|
+
h,
|
|
87
|
+
g
|
|
88
|
+
] }), t[27] = c, t[28] = h, t[29] = g, t[30] = x) : x = t[30];
|
|
89
|
+
let y;
|
|
90
|
+
return t[31] !== s || t[32] !== x ? (y = /* @__PURE__ */ d.jsx(P.Provider, { value: s, children: x }), t[31] = s, t[32] = x, t[33] = y) : y = t[33], y;
|
|
91
|
+
}
|
|
92
|
+
export {
|
|
93
|
+
T as Progressbar,
|
|
94
|
+
H as W,
|
|
95
|
+
P as a,
|
|
96
|
+
I as b,
|
|
97
|
+
E as u
|
|
98
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { c as _ } from "../../chunks/compiler-runtime.Cu50tn6L.js";
|
|
2
|
+
import v, { useState as R } from "react";
|
|
3
|
+
const g = () => {
|
|
4
|
+
const t = _.c(20), [n, m] = R(0), [o, u] = v.useState(1), e = o < n, s = o > 1;
|
|
5
|
+
let l;
|
|
6
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (l = (x) => {
|
|
7
|
+
u((h) => h + x);
|
|
8
|
+
}, t[0] = l) : l = t[0];
|
|
9
|
+
const i = l;
|
|
10
|
+
let S;
|
|
11
|
+
t[1] !== e ? (S = () => {
|
|
12
|
+
e && i(1);
|
|
13
|
+
}, t[1] = e, t[2] = S) : S = t[2];
|
|
14
|
+
const c = S;
|
|
15
|
+
let a;
|
|
16
|
+
t[3] !== s ? (a = () => {
|
|
17
|
+
s && i(-1);
|
|
18
|
+
}, t[3] = s, t[4] = a) : a = t[4];
|
|
19
|
+
const r = a;
|
|
20
|
+
let p;
|
|
21
|
+
t[5] !== o || t[6] !== e || t[7] !== s || t[8] !== c || t[9] !== r || t[10] !== n ? (p = {
|
|
22
|
+
changeStep: i,
|
|
23
|
+
nextStep: c,
|
|
24
|
+
hasNextStep: e,
|
|
25
|
+
previousStep: r,
|
|
26
|
+
hasPreviousStep: s,
|
|
27
|
+
currentStep: o,
|
|
28
|
+
totalSteps: n,
|
|
29
|
+
setTotalSteps: m
|
|
30
|
+
}, t[5] = o, t[6] = e, t[7] = s, t[8] = c, t[9] = r, t[10] = n, t[11] = p) : p = t[11];
|
|
31
|
+
let f;
|
|
32
|
+
return t[12] !== o || t[13] !== e || t[14] !== s || t[15] !== c || t[16] !== r || t[17] !== p || t[18] !== n ? (f = {
|
|
33
|
+
changeStep: i,
|
|
34
|
+
nextStep: c,
|
|
35
|
+
hasNextStep: e,
|
|
36
|
+
previousStep: r,
|
|
37
|
+
hasPreviousStep: s,
|
|
38
|
+
currentStep: o,
|
|
39
|
+
totalSteps: n,
|
|
40
|
+
controls: p
|
|
41
|
+
}, t[12] = o, t[13] = e, t[14] = s, t[15] = c, t[16] = r, t[17] = p, t[18] = n, t[19] = f) : f = t[19], f;
|
|
42
|
+
};
|
|
43
|
+
export {
|
|
44
|
+
g as useWizard
|
|
45
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { j as m } from "../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as i } from "../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import { useContext as c } from "react";
|
|
4
|
+
import p from "./helpers.js";
|
|
5
|
+
import a from "../noPermission/index.js";
|
|
6
|
+
const j = (n) => {
|
|
7
|
+
const t = i.c(4), {
|
|
8
|
+
children: r,
|
|
9
|
+
style: e
|
|
10
|
+
} = n, {
|
|
11
|
+
hideContent: s
|
|
12
|
+
} = c(p);
|
|
13
|
+
let o;
|
|
14
|
+
return t[0] !== r || t[1] !== s || t[2] !== e ? (o = s ? /* @__PURE__ */ m.jsx(a, {}) : /* @__PURE__ */ m.jsx("div", { className: "drawerbody", style: e, children: r }), t[0] = r, t[1] = s, t[2] = e, t[3] = o) : o = t[3], o;
|
|
15
|
+
};
|
|
16
|
+
export {
|
|
17
|
+
j as default
|
|
18
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IDrawerProps } from './types';
|
|
3
|
+
declare const BaseDrawer: ({ position, customClass, children, style, customClassForContent, targetId, closeOnEsc, overlay, permissionAttr, skeletonize, handlerClose, customClassForDrawer, content, title, isWaiting, ...rest }: IDrawerProps) => React.ReactPortal;
|
|
4
|
+
export default BaseDrawer;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { j as n } from "../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { useRef as f, useState as L, useEffect as v, Suspense as R } from "react";
|
|
3
|
+
import M from "react-dom";
|
|
4
|
+
import H from "./helpers.js";
|
|
5
|
+
import { OPTIONS_ON_DENIED as V, actionsOnPermissionDenied as q } from "../permissionValidations.js";
|
|
6
|
+
import z from "./Header.js";
|
|
7
|
+
import A from "./Content.js";
|
|
8
|
+
import "../form/withFormSecurity.js";
|
|
9
|
+
import F from "../spinner/index.js";
|
|
10
|
+
import '../assets/Drawer.css';const W = ({
|
|
11
|
+
position: w = "left",
|
|
12
|
+
customClass: C = "",
|
|
13
|
+
children: h,
|
|
14
|
+
style: E,
|
|
15
|
+
customClassForContent: x = "",
|
|
16
|
+
targetId: o,
|
|
17
|
+
closeOnEsc: d,
|
|
18
|
+
overlay: D,
|
|
19
|
+
permissionAttr: N,
|
|
20
|
+
skeletonize: c,
|
|
21
|
+
handlerClose: m,
|
|
22
|
+
customClassForDrawer: j = "",
|
|
23
|
+
content: l,
|
|
24
|
+
title: u,
|
|
25
|
+
isWaiting: p = !1,
|
|
26
|
+
...S
|
|
27
|
+
}) => {
|
|
28
|
+
const b = {
|
|
29
|
+
...S,
|
|
30
|
+
title: u
|
|
31
|
+
}, s = f(document.createElement("div"));
|
|
32
|
+
s.current.className = "drawercontainer";
|
|
33
|
+
const a = f(null), {
|
|
34
|
+
hideContent: O
|
|
35
|
+
} = V, [P] = L(q([O], N)), B = p ? {
|
|
36
|
+
opacity: 0.4,
|
|
37
|
+
pointerEvent: "none",
|
|
38
|
+
placeContent: "center"
|
|
39
|
+
} : {}, _ = () => p ? /* @__PURE__ */ n.jsx("div", { className: "waitingspinner", children: /* @__PURE__ */ n.jsx(F, { style: {
|
|
40
|
+
width: 60
|
|
41
|
+
}, delayTime: 0 }) }) : null, g = (e, r) => {
|
|
42
|
+
const t = document.createElement("div");
|
|
43
|
+
t.className = "drawer-component", t.id = String(r), e.appendChild(t), t.appendChild(s.current), a.current = t;
|
|
44
|
+
}, k = (e) => {
|
|
45
|
+
const r = document.createElement("div");
|
|
46
|
+
r.className = "drawer-overlay", r.dataset.testid = "drawer-overlay", e.appendChild(r);
|
|
47
|
+
}, i = (e) => {
|
|
48
|
+
d && e.key === "Escape" && (m?.(), e.stopPropagation());
|
|
49
|
+
};
|
|
50
|
+
v(() => {
|
|
51
|
+
let e;
|
|
52
|
+
const r = Math.round(+/* @__PURE__ */ new Date() / 1e3);
|
|
53
|
+
return o === void 0 ? e = document.getElementsByTagName("body")[0] : e = document.getElementById(o), e && g(e, r), D && !o && e && k(e), () => {
|
|
54
|
+
const t = document.getElementsByClassName("drawer-overlay")[0];
|
|
55
|
+
if (d && document.body.removeEventListener("keydown", i), o) {
|
|
56
|
+
const y = document.getElementById(o);
|
|
57
|
+
y && a.current && y.removeChild(a.current);
|
|
58
|
+
} else a.current && document.body.removeChild(a.current);
|
|
59
|
+
t && !o && e && e.removeChild(t);
|
|
60
|
+
};
|
|
61
|
+
}, []), v(() => (d && document.body.addEventListener("keydown", i), () => document.body.removeEventListener("keydown", i)), [d]);
|
|
62
|
+
const T = {
|
|
63
|
+
handlerClose: m,
|
|
64
|
+
hideContent: P.hideContent,
|
|
65
|
+
skeletonize: c
|
|
66
|
+
}, $ = () => /* @__PURE__ */ n.jsx(H.Provider, { value: T, children: /* @__PURE__ */ n.jsx("div", { "data-testid": "drawercontainer-component", className: `${w} ${C}`, style: E, children: /* @__PURE__ */ n.jsxs("div", { style: B, "data-testid": "drawercontent", className: `drawercontent ${c ? "-skeletonized" : ""} ${x}`, children: [
|
|
67
|
+
u && /* @__PURE__ */ n.jsx(z, { ...b, customClass: j }),
|
|
68
|
+
/* @__PURE__ */ n.jsx(R, { children: l ? /* @__PURE__ */ n.jsx(A, { children: l }) : h }),
|
|
69
|
+
_()
|
|
70
|
+
] }) }) });
|
|
71
|
+
return M.createPortal($(), s.current);
|
|
72
|
+
};
|
|
73
|
+
export {
|
|
74
|
+
W as default
|
|
75
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { IDrawerHeaderProps } from './types';
|
|
2
|
+
declare const Header: ({ showCloseButton, title, subTitle, icon, titleIcon, customClass, titleContent, subTitleContent, titleRightContent, }: IDrawerHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default Header;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { j as t } from "../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as I } from "../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import { useContext as $, Fragment as R } from "react";
|
|
4
|
+
import E from "../icons/index.js";
|
|
5
|
+
import z from "./helpers.js";
|
|
6
|
+
const D = (s) => /* @__PURE__ */ t.jsx("span", { "data-testid": "header-closebutton", className: "closebutton", onClick: s, role: "button", tabIndex: 0, children: /* @__PURE__ */ t.jsx(E, { name: "cancel2" }) }), k = (s, e) => s || e ? /* @__PURE__ */ t.jsx("span", { "data-testid": "icon-header", className: "icon-header", children: e || s && /* @__PURE__ */ t.jsx(E, { name: s, color: "#000", size: 24 }) }) : /* @__PURE__ */ t.jsx("noscript", {}), G = (s) => {
|
|
7
|
+
const e = I.c(27), {
|
|
8
|
+
showCloseButton: T,
|
|
9
|
+
title: C,
|
|
10
|
+
subTitle: a,
|
|
11
|
+
icon: c,
|
|
12
|
+
titleIcon: d,
|
|
13
|
+
customClass: H,
|
|
14
|
+
titleContent: m,
|
|
15
|
+
subTitleContent: u,
|
|
16
|
+
titleRightContent: b
|
|
17
|
+
} = s, N = T === void 0 ? !0 : T, {
|
|
18
|
+
handlerClose: h
|
|
19
|
+
} = $(z);
|
|
20
|
+
let x;
|
|
21
|
+
e[0] !== c || e[1] !== C || e[2] !== m || e[3] !== d || e[4] !== b ? (x = () => m ? /* @__PURE__ */ t.jsx(R, { children: m }) : /* @__PURE__ */ t.jsxs(R, { children: [
|
|
22
|
+
c ? k(d, c) : k(d, null),
|
|
23
|
+
/* @__PURE__ */ t.jsx("h2", { className: "drawer-title", children: C }),
|
|
24
|
+
b
|
|
25
|
+
] }), e[0] = c, e[1] = C, e[2] = m, e[3] = d, e[4] = b, e[5] = x) : x = e[5];
|
|
26
|
+
const w = x;
|
|
27
|
+
let f;
|
|
28
|
+
e[6] !== a || e[7] !== u ? (f = () => u ? /* @__PURE__ */ t.jsx(R, { children: u }) : a && /* @__PURE__ */ t.jsx("h3", { className: "drawer-subtitle", children: a }), e[6] = a, e[7] = u, e[8] = f) : f = e[8];
|
|
29
|
+
const v = f;
|
|
30
|
+
let j;
|
|
31
|
+
e[9] !== h ? (j = () => h ? h() : void 0, e[9] = h, e[10] = j) : j = e[10];
|
|
32
|
+
const g = j, B = `drawerheader ${H}`;
|
|
33
|
+
let r;
|
|
34
|
+
e[11] !== w ? (r = /* @__PURE__ */ t.jsx("div", { className: "title-subtitle", children: w() }), e[11] = w, e[12] = r) : r = e[12];
|
|
35
|
+
let l;
|
|
36
|
+
e[13] !== v ? (l = v(), e[13] = v, e[14] = l) : l = e[14];
|
|
37
|
+
let n;
|
|
38
|
+
e[15] !== r || e[16] !== l ? (n = /* @__PURE__ */ t.jsxs("div", { className: "left", children: [
|
|
39
|
+
r,
|
|
40
|
+
l
|
|
41
|
+
] }), e[15] = r, e[16] = l, e[17] = n) : n = e[17];
|
|
42
|
+
let i;
|
|
43
|
+
e[18] !== g || e[19] !== N ? (i = N && D(() => {
|
|
44
|
+
g();
|
|
45
|
+
}), e[18] = g, e[19] = N, e[20] = i) : i = e[20];
|
|
46
|
+
let o;
|
|
47
|
+
e[21] !== i ? (o = /* @__PURE__ */ t.jsx("div", { className: "right", children: i }), e[21] = i, e[22] = o) : o = e[22];
|
|
48
|
+
let p;
|
|
49
|
+
return e[23] !== o || e[24] !== B || e[25] !== n ? (p = /* @__PURE__ */ t.jsxs("div", { className: B, "data-testid": "drawerheader", children: [
|
|
50
|
+
n,
|
|
51
|
+
o
|
|
52
|
+
] }), e[23] = o, e[24] = B, e[25] = n, e[26] = p) : p = e[26], p;
|
|
53
|
+
};
|
|
54
|
+
export {
|
|
55
|
+
G as default
|
|
56
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { default as DrawerHeader } from './Header';
|
|
2
|
+
import { default as DrawerContent } from './Content';
|
|
3
|
+
declare const _default: (props: import('./types').IDrawerProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export default _default;
|
|
5
|
+
export { DrawerHeader, DrawerContent };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import r from "./Drawer.js";
|
|
2
|
+
import { default as p } from "./Header.js";
|
|
3
|
+
import { default as w } from "./Content.js";
|
|
4
|
+
import e from "../form/withFormSecurity.js";
|
|
5
|
+
const o = e(r);
|
|
6
|
+
export {
|
|
7
|
+
w as DrawerContent,
|
|
8
|
+
p as DrawerHeader,
|
|
9
|
+
o as default
|
|
10
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { default as React, ReactElement, ReactNode } from 'react';
|
|
2
|
+
import { PermissionAttr } from '../@types/PermissionAttr';
|
|
3
|
+
import { Position } from '../@types/Position';
|
|
4
|
+
import { IconNames } from '../@types/Icon';
|
|
5
|
+
export interface IDrawerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
6
|
+
overlay?: boolean;
|
|
7
|
+
children?: ReactNode;
|
|
8
|
+
customClass?: string;
|
|
9
|
+
customClassForContent?: string;
|
|
10
|
+
customClassForDrawer?: string;
|
|
11
|
+
position?: Exclude<Position, 'center'>;
|
|
12
|
+
handlerClose?: () => void;
|
|
13
|
+
closeOnEsc?: boolean;
|
|
14
|
+
targetId?: string;
|
|
15
|
+
permissionAttr?: PermissionAttr | PermissionAttr[];
|
|
16
|
+
skeletonize?: boolean;
|
|
17
|
+
closeOnOutsideClick?: boolean;
|
|
18
|
+
content?: string;
|
|
19
|
+
title?: string;
|
|
20
|
+
isWaiting?: boolean;
|
|
21
|
+
}
|
|
22
|
+
export interface IDrawerHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
23
|
+
showCloseButton?: boolean;
|
|
24
|
+
customClass?: string;
|
|
25
|
+
title?: string;
|
|
26
|
+
titleRightContent?: ReactElement;
|
|
27
|
+
titleContent?: ReactElement;
|
|
28
|
+
subTitle?: string;
|
|
29
|
+
subTitleContent?: ReactElement;
|
|
30
|
+
icon?: ReactElement;
|
|
31
|
+
titleIcon?: IconNames;
|
|
32
|
+
}
|
|
33
|
+
export interface IDrawerContext {
|
|
34
|
+
handlerClose?: () => void;
|
|
35
|
+
hideContent?: boolean;
|
|
36
|
+
skeletonize?: boolean;
|
|
37
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { useRef as w, useEffect as x } from "react";
|
|
2
|
+
import P from "react-dom";
|
|
3
|
+
import { v } from "../chunks/v1.Ds1rkxUj.js";
|
|
4
|
+
const y = ({
|
|
5
|
+
align: s,
|
|
6
|
+
isFloatMenu: r,
|
|
7
|
+
minWidth: c,
|
|
8
|
+
container: i,
|
|
9
|
+
target: d
|
|
10
|
+
}) => {
|
|
11
|
+
if (!i || !d) return "";
|
|
12
|
+
const e = d.getBoundingClientRect(), a = r ? void 0 : window.innerWidth - e.x - e.width - 4, p = e.left;
|
|
13
|
+
let n = e.top + window.scrollY + e.height + (r ? 6 : 2), t, o = !1;
|
|
14
|
+
if (n + i.scrollHeight > window.innerHeight) {
|
|
15
|
+
const m = e.top, u = i.scrollHeight;
|
|
16
|
+
o = u > m, t = o ? m - 10 : u, n = n - t - e.height - (r ? 6 : 2) - 5;
|
|
17
|
+
}
|
|
18
|
+
let l = `top: ${n}px; min-width: ${c}px;`;
|
|
19
|
+
return o && (l += `max-height: ${t}px; overflow-y: scroll;`), s === "left" ? l += `left: ${p}px;` : s === "right" && (l += `right: ${a}px;`), l;
|
|
20
|
+
}, {
|
|
21
|
+
body: g
|
|
22
|
+
} = document, D = ({
|
|
23
|
+
id: s,
|
|
24
|
+
customClassForDropdown: r = "",
|
|
25
|
+
align: c = "left",
|
|
26
|
+
isFloatMenu: i = !1,
|
|
27
|
+
topPosition: d = 0,
|
|
28
|
+
leftPosition: e = 0,
|
|
29
|
+
rightPosition: a = 0,
|
|
30
|
+
minWidth: p = 0,
|
|
31
|
+
targetRef: f,
|
|
32
|
+
...n
|
|
33
|
+
}) => {
|
|
34
|
+
const t = w(document.createElement("div"));
|
|
35
|
+
if (t.current.className = `dropdown-component ${r}`, t.current.dataset.testid = "dropdown-component", t && t.current) {
|
|
36
|
+
const o = document.body.getElementsByClassName("modalcontainer"), h = o[o.length - 1];
|
|
37
|
+
t.current.style.zIndex = `${o.length ? Number(h.style.zIndex) + 1 : 99999}`;
|
|
38
|
+
}
|
|
39
|
+
return x(() => (g.appendChild(t.current), t.current.id = s || `dropdown-component-${v()}`, t.current.style.cssText = y({
|
|
40
|
+
align: c,
|
|
41
|
+
isFloatMenu: i,
|
|
42
|
+
minWidth: p,
|
|
43
|
+
container: t.current,
|
|
44
|
+
target: f
|
|
45
|
+
}), () => {
|
|
46
|
+
g.removeChild(t.current);
|
|
47
|
+
}), []), P.createPortal(n.children, t.current);
|
|
48
|
+
};
|
|
49
|
+
export {
|
|
50
|
+
D as default
|
|
51
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
const o = (t) => `content ${t ? "" : "noclear"}`, c = (t, s, n) => {
|
|
2
|
+
let e = "item";
|
|
3
|
+
return e += t && !s ? " -selected " : "", e += s ? " -disabled" : "", e += !t && !s && n ? " -striped " : "", e;
|
|
4
|
+
};
|
|
5
|
+
export {
|
|
6
|
+
o as contentClass,
|
|
7
|
+
c as getDropdownItemCssClass
|
|
8
|
+
};
|