linear-react-components-ui 1.1.26-beta.6 → 1.1.26-beta.7
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/package.json +11 -10
- package/lib/@types/Align.d.ts +0 -2
- package/lib/@types/ButtonTypes.d.ts +0 -1
- package/lib/@types/ColorStyles.d.ts +0 -1
- package/lib/@types/DataCombo.d.ts +0 -1
- package/lib/@types/Icon.d.ts +0 -2
- package/lib/@types/LabelStyles.d.ts +0 -1
- package/lib/@types/Period.d.ts +0 -4
- package/lib/@types/PermissionAttr.d.ts +0 -12
- package/lib/@types/PointerEvents.d.ts +0 -1
- package/lib/@types/Position.d.ts +0 -1
- package/lib/@types/PositionAlert.d.ts +0 -1
- package/lib/@types/Size.d.ts +0 -1
- package/lib/@types/SizePixels.d.ts +0 -1
- package/lib/@types/StorageMock.d.ts +0 -3
- package/lib/alerts/AlertContainer.d.ts +0 -12
- package/lib/alerts/AlertContainer.js +0 -64
- package/lib/alerts/AlertProvider.d.ts +0 -3
- package/lib/alerts/AlertProvider.js +0 -40
- package/lib/alerts/BaseAlert.d.ts +0 -3
- package/lib/alerts/BaseAlert.js +0 -18
- package/lib/alerts/Message.d.ts +0 -3
- package/lib/alerts/Message.js +0 -67
- package/lib/alerts/alert.spec.d.ts +0 -0
- package/lib/alerts/helpers.d.ts +0 -3
- package/lib/alerts/helpers.js +0 -5
- package/lib/alerts/index.d.ts +0 -4
- package/lib/alerts/index.js +0 -6
- package/lib/alerts/types.d.ts +0 -47
- package/lib/alerts/withAlert.d.ts +0 -4
- package/lib/alerts/withAlert.js +0 -10
- package/lib/assets/BaseAlert.css +0 -1
- package/lib/assets/Content.css +0 -1
- package/lib/assets/DefaultFile.css +0 -1
- package/lib/assets/Drawer.css +0 -1
- package/lib/assets/InputTextBase.css +0 -1
- package/lib/assets/button.css +0 -1
- package/lib/assets/gridlayout.css +0 -1
- package/lib/assets/index.css +0 -1
- package/lib/assets/index10.css +0 -1
- package/lib/assets/index11.css +0 -1
- package/lib/assets/index12.css +0 -1
- package/lib/assets/index13.css +0 -1
- package/lib/assets/index14.css +0 -1
- package/lib/assets/index15.css +0 -1
- package/lib/assets/index16.css +0 -1
- package/lib/assets/index17.css +0 -1
- package/lib/assets/index18.css +0 -1
- package/lib/assets/index19.css +0 -1
- package/lib/assets/index2.css +0 -1
- package/lib/assets/index20.css +0 -1
- package/lib/assets/index21.css +0 -1
- package/lib/assets/index22.css +0 -1
- package/lib/assets/index23.css +0 -1
- package/lib/assets/index24.css +0 -1
- package/lib/assets/index25.css +0 -1
- package/lib/assets/index26.css +0 -1
- package/lib/assets/index27.css +0 -1
- package/lib/assets/index28.css +0 -1
- package/lib/assets/index3.css +0 -1
- package/lib/assets/index4.css +0 -1
- package/lib/assets/index5.css +0 -1
- package/lib/assets/index6.css +0 -1
- package/lib/assets/index7.css +0 -1
- package/lib/assets/index8.css +0 -1
- package/lib/assets/index9.css +0 -1
- package/lib/assets/label.css +0 -1
- package/lib/assets/noPermission.css +0 -1
- package/lib/assets/panel.css +0 -1
- package/lib/assets/progressbar.css +0 -1
- package/lib/assets/radio.css +0 -1
- package/lib/assets/skeleton.css +0 -1
- package/lib/assets/table.css +0 -1
- package/lib/assets/tabs.css +0 -1
- package/lib/assets/toolbar.css +0 -1
- package/lib/assets/withDropdown.css +0 -1
- package/lib/avatar/avatar.spec.d.ts +0 -1
- package/lib/avatar/index.d.ts +0 -6
- package/lib/avatar/index.js +0 -77
- package/lib/avatar/types.d.ts +0 -27
- package/lib/badge/badge.spec.d.ts +0 -1
- package/lib/badge/index.d.ts +0 -3
- package/lib/badge/index.js +0 -26
- package/lib/badge/types.d.ts +0 -10
- package/lib/buttons/ActivateButton.d.ts +0 -3
- package/lib/buttons/ActivateButton.js +0 -6
- package/lib/buttons/AddButton.d.ts +0 -3
- package/lib/buttons/AddButton.js +0 -7
- package/lib/buttons/Button.d.ts +0 -6
- package/lib/buttons/Button.js +0 -8
- package/lib/buttons/ButtonGroups.d.ts +0 -6
- package/lib/buttons/ButtonGroups.js +0 -5
- package/lib/buttons/CancelButton.d.ts +0 -3
- package/lib/buttons/CancelButton.js +0 -6
- package/lib/buttons/DangerButton.d.ts +0 -3
- package/lib/buttons/DangerButton.js +0 -6
- package/lib/buttons/DefaultButton.d.ts +0 -6
- package/lib/buttons/DefaultButton.js +0 -129
- package/lib/buttons/DestroyButton.d.ts +0 -3
- package/lib/buttons/DestroyButton.js +0 -7
- package/lib/buttons/EditButton.d.ts +0 -3
- package/lib/buttons/EditButton.js +0 -6
- package/lib/buttons/InactivateButton.d.ts +0 -3
- package/lib/buttons/InactivateButton.js +0 -6
- package/lib/buttons/InfoButton.d.ts +0 -3
- package/lib/buttons/InfoButton.js +0 -6
- package/lib/buttons/PrimaryButton.d.ts +0 -3
- package/lib/buttons/PrimaryButton.js +0 -6
- package/lib/buttons/RestoreButton.d.ts +0 -3
- package/lib/buttons/RestoreButton.js +0 -6
- package/lib/buttons/SaveButton.d.ts +0 -3
- package/lib/buttons/SaveButton.js +0 -6
- package/lib/buttons/SuccessButton.d.ts +0 -3
- package/lib/buttons/SuccessButton.js +0 -6
- package/lib/buttons/WarningButton.d.ts +0 -3
- package/lib/buttons/WarningButton.js +0 -6
- package/lib/buttons/button_container/index.d.ts +0 -10
- package/lib/buttons/button_container/index.js +0 -18
- package/lib/buttons/buttons.spec.d.ts +0 -0
- package/lib/buttons/index.d.ts +0 -17
- package/lib/buttons/index.js +0 -33
- package/lib/buttons/split_button/index.d.ts +0 -3
- package/lib/buttons/split_button/index.js +0 -60
- package/lib/buttons/types.d.ts +0 -46
- package/lib/calendar/DangerCalendar.d.ts +0 -3
- package/lib/calendar/DangerCalendar.js +0 -6
- package/lib/calendar/InfoCalendar.d.ts +0 -3
- package/lib/calendar/InfoCalendar.js +0 -6
- package/lib/calendar/PrimaryCalendar.d.ts +0 -3
- package/lib/calendar/PrimaryCalendar.js +0 -6
- package/lib/calendar/SuccessCalendar.d.ts +0 -3
- package/lib/calendar/SuccessCalendar.js +0 -6
- package/lib/calendar/WarningCalendar.d.ts +0 -3
- package/lib/calendar/WarningCalendar.js +0 -6
- package/lib/calendar/base/Day.d.ts +0 -3
- package/lib/calendar/base/Day.js +0 -27
- package/lib/calendar/base/Month.d.ts +0 -3
- package/lib/calendar/base/Month.js +0 -25
- package/lib/calendar/base/Week.d.ts +0 -3
- package/lib/calendar/base/Week.js +0 -23
- package/lib/calendar/base/helpers.d.ts +0 -59
- package/lib/calendar/base/helpers.js +0 -108
- package/lib/calendar/base/index.d.ts +0 -3
- package/lib/calendar/base/index.js +0 -103
- package/lib/calendar/calendar.spec.d.ts +0 -0
- package/lib/calendar/index.d.ts +0 -8
- package/lib/calendar/index.js +0 -14
- package/lib/calendar/types.d.ts +0 -27
- package/lib/checkbox/checkbox.spec.d.ts +0 -1
- package/lib/checkbox/index.d.ts +0 -9
- package/lib/checkbox/index.js +0 -31
- package/lib/checkbox/types.d.ts +0 -45
- package/lib/chunks/index.CM1aLH2W.js +0 -205
- package/lib/chunks/index.Df3kt2LQ.js +0 -667
- package/lib/chunks/jsx-runtime.C7wFtzyj.js +0 -284
- package/lib/chunks/lodash.CIAK_hAg.js +0 -3684
- package/lib/chunks/moment.DMLRxgRE.js +0 -2589
- package/lib/chunks/tabs.D0L_nVfP.js +0 -245
- package/lib/chunks/v1.Ds1rkxUj.js +0 -49
- package/lib/dialog/Alert.d.ts +0 -3
- package/lib/dialog/Alert.js +0 -23
- package/lib/dialog/Custom.d.ts +0 -3
- package/lib/dialog/Custom.js +0 -33
- package/lib/dialog/Error.d.ts +0 -3
- package/lib/dialog/Error.js +0 -23
- package/lib/dialog/Information.d.ts +0 -3
- package/lib/dialog/Information.js +0 -23
- package/lib/dialog/Question.d.ts +0 -3
- package/lib/dialog/Question.js +0 -60
- package/lib/dialog/Warning.d.ts +0 -3
- package/lib/dialog/Warning.js +0 -23
- package/lib/dialog/base/Content.d.ts +0 -3
- package/lib/dialog/base/Content.js +0 -6
- package/lib/dialog/base/Footer.d.ts +0 -3
- package/lib/dialog/base/Footer.js +0 -5
- package/lib/dialog/base/Header.d.ts +0 -3
- package/lib/dialog/base/Header.js +0 -7
- package/lib/dialog/base/index.d.ts +0 -10
- package/lib/dialog/base/index.js +0 -9
- package/lib/dialog/base/style.d.ts +0 -7
- package/lib/dialog/dialog.spec.d.ts +0 -0
- package/lib/dialog/form/index.d.ts +0 -5
- package/lib/dialog/form/index.js +0 -15
- package/lib/dialog/index.d.ts +0 -9
- package/lib/dialog/index.js +0 -16
- package/lib/dialog/types.d.ts +0 -107
- package/lib/dialog/wizard/index.d.ts +0 -9
- package/lib/dialog/wizard/index.js +0 -14
- package/lib/dialog/wizard/progressbar.d.ts +0 -11
- package/lib/dialog/wizard/progressbar.js +0 -89
- package/lib/dialog/wizard/step.d.ts +0 -2
- package/lib/dialog/wizard/step.js +0 -5
- package/lib/dialog/wizard/useWizard.d.ts +0 -2
- package/lib/dialog/wizard/useWizard.js +0 -32
- package/lib/dialog/wizard/wizard.spec.d.ts +0 -0
- package/lib/drawer/Content.d.ts +0 -3
- package/lib/drawer/Content.js +0 -11
- package/lib/drawer/Drawer.d.ts +0 -4
- package/lib/drawer/Drawer.js +0 -72
- package/lib/drawer/Drawer.spec.d.ts +0 -1
- package/lib/drawer/Header.d.ts +0 -3
- package/lib/drawer/Header.js +0 -43
- package/lib/drawer/helpers.d.ts +0 -4
- package/lib/drawer/helpers.js +0 -5
- package/lib/drawer/index.d.ts +0 -5
- package/lib/drawer/index.js +0 -10
- package/lib/drawer/types.d.ts +0 -37
- package/lib/dropdown/Popup.d.ts +0 -3
- package/lib/dropdown/Popup.js +0 -49
- package/lib/dropdown/dropdown.spec.d.ts +0 -1
- package/lib/dropdown/helper.d.ts +0 -2
- package/lib/dropdown/helper.js +0 -8
- package/lib/dropdown/types.d.ts +0 -45
- package/lib/dropdown/withDropdown.d.ts +0 -9
- package/lib/dropdown/withDropdown.js +0 -55
- package/lib/fieldset/fieldset.spec.d.ts +0 -1
- package/lib/fieldset/index.d.ts +0 -3
- package/lib/fieldset/index.js +0 -51
- package/lib/fieldset/types.d.ts +0 -27
- package/lib/form/Field.d.ts +0 -2
- package/lib/form/Field.js +0 -72
- package/lib/form/FieldArray.d.ts +0 -2
- package/lib/form/FieldArray.js +0 -89
- package/lib/form/FieldNumber.d.ts +0 -2
- package/lib/form/FieldNumber.js +0 -44
- package/lib/form/FieldPeriod.d.ts +0 -2
- package/lib/form/FieldPeriod.js +0 -64
- package/lib/form/form.spec.d.ts +0 -0
- package/lib/form/helpers.d.ts +0 -8
- package/lib/form/helpers.js +0 -25
- package/lib/form/index.d.ts +0 -8
- package/lib/form/index.js +0 -162
- package/lib/form/types.d.ts +0 -233
- package/lib/form/withFieldHOC.d.ts +0 -4
- package/lib/form/withFieldHOC.js +0 -53
- package/lib/form/withFormSecurity.d.ts +0 -6
- package/lib/form/withFormSecurity.js +0 -33
- package/lib/gridlayout/GridCol.d.ts +0 -3
- package/lib/gridlayout/GridCol.js +0 -26
- package/lib/gridlayout/GridRow.d.ts +0 -3
- package/lib/gridlayout/GridRow.js +0 -24
- package/lib/gridlayout/gridLayout.spec.d.ts +0 -1
- package/lib/gridlayout/index.d.ts +0 -4
- package/lib/gridlayout/index.js +0 -6
- package/lib/gridlayout/types.d.ts +0 -17
- package/lib/hint/helpers.d.ts +0 -1
- package/lib/hint/helpers.js +0 -8
- package/lib/hint/hint.spec.d.ts +0 -1
- package/lib/hint/index.d.ts +0 -3
- package/lib/hint/index.js +0 -28
- package/lib/hint/types.d.ts +0 -11
- package/lib/icons/helper.d.ts +0 -635
- package/lib/icons/helper.js +0 -1064
- package/lib/icons/icons.spec.d.ts +0 -1
- package/lib/icons/index.d.ts +0 -6
- package/lib/icons/index.js +0 -58
- package/lib/icons/types.d.ts +0 -46
- package/lib/index.d.ts +0 -10
- package/lib/index.js +0 -27
- package/lib/inputs/base/InputTextBase.d.ts +0 -3
- package/lib/inputs/base/InputTextBase.js +0 -267
- package/lib/inputs/base/Label.d.ts +0 -6
- package/lib/inputs/base/Label.js +0 -32
- package/lib/inputs/base/base.spec.d.ts +0 -1
- package/lib/inputs/base/helpers.d.ts +0 -10
- package/lib/inputs/base/helpers.js +0 -28
- package/lib/inputs/base/types.d.ts +0 -98
- package/lib/inputs/color/color_input.spec.d.ts +0 -0
- package/lib/inputs/color/index.d.ts +0 -3
- package/lib/inputs/color/index.js +0 -78
- package/lib/inputs/color/types.d.ts +0 -16
- package/lib/inputs/date/Dialog.d.ts +0 -3
- package/lib/inputs/date/Dialog.js +0 -18
- package/lib/inputs/date/Dropdown.d.ts +0 -3
- package/lib/inputs/date/Dropdown.js +0 -13
- package/lib/inputs/date/date.spec.d.ts +0 -1
- package/lib/inputs/date/helpers.d.ts +0 -5
- package/lib/inputs/date/helpers.js +0 -10
- package/lib/inputs/date/index.d.ts +0 -3
- package/lib/inputs/date/index.js +0 -170
- package/lib/inputs/date/types.d.ts +0 -56
- package/lib/inputs/errorMessage/error.spec.d.ts +0 -1
- package/lib/inputs/errorMessage/index.d.ts +0 -4
- package/lib/inputs/errorMessage/index.js +0 -16
- package/lib/inputs/file/DefaultFile.d.ts +0 -3
- package/lib/inputs/file/DefaultFile.js +0 -70
- package/lib/inputs/file/DragDropFile.d.ts +0 -3
- package/lib/inputs/file/DragDropFile.js +0 -189
- package/lib/inputs/file/File.d.ts +0 -3
- package/lib/inputs/file/File.js +0 -45
- package/lib/inputs/file/FileButtonSettings.d.ts +0 -3
- package/lib/inputs/file/FileButtonSettings.js +0 -21
- package/lib/inputs/file/filefield.spec.d.ts +0 -1
- package/lib/inputs/file/helpers.d.ts +0 -2
- package/lib/inputs/file/helpers.js +0 -11
- package/lib/inputs/file/index.d.ts +0 -5
- package/lib/inputs/file/index.js +0 -8
- package/lib/inputs/file/types.d.ts +0 -49
- package/lib/inputs/inputHOC.d.ts +0 -4
- package/lib/inputs/inputHOC.js +0 -24
- package/lib/inputs/mask/BaseMask.d.ts +0 -3
- package/lib/inputs/mask/BaseMask.js +0 -2651
- package/lib/inputs/mask/Cnpj.d.ts +0 -6
- package/lib/inputs/mask/Cnpj.js +0 -40
- package/lib/inputs/mask/Cpf.d.ts +0 -6
- package/lib/inputs/mask/Cpf.js +0 -36
- package/lib/inputs/mask/Phone.d.ts +0 -3
- package/lib/inputs/mask/Phone.js +0 -9
- package/lib/inputs/mask/ZipCode.d.ts +0 -3
- package/lib/inputs/mask/ZipCode.js +0 -6
- package/lib/inputs/mask/helpers.d.ts +0 -52
- package/lib/inputs/mask/helpers.js +0 -63
- package/lib/inputs/mask/index.d.ts +0 -7
- package/lib/inputs/mask/index.js +0 -12
- package/lib/inputs/mask/input_mask.spec.d.ts +0 -0
- package/lib/inputs/mask/types.d.ts +0 -73
- package/lib/inputs/multiSelect/ActionButtons.d.ts +0 -3
- package/lib/inputs/multiSelect/ActionButtons.js +0 -50
- package/lib/inputs/multiSelect/Dropdown.d.ts +0 -3
- package/lib/inputs/multiSelect/Dropdown.js +0 -136
- package/lib/inputs/multiSelect/helper.d.ts +0 -3
- package/lib/inputs/multiSelect/helper.js +0 -8
- package/lib/inputs/multiSelect/index.d.ts +0 -3
- package/lib/inputs/multiSelect/index.js +0 -138
- package/lib/inputs/multiSelect/multiSelect.spec.d.ts +0 -1
- package/lib/inputs/multiSelect/types.d.ts +0 -57
- package/lib/inputs/number/BaseNumber.d.ts +0 -3
- package/lib/inputs/number/BaseNumber.js +0 -47
- package/lib/inputs/number/Currency.d.ts +0 -3
- package/lib/inputs/number/Currency.js +0 -15
- package/lib/inputs/number/Decimal.d.ts +0 -3
- package/lib/inputs/number/Decimal.js +0 -6
- package/lib/inputs/number/format_number.d.ts +0 -3
- package/lib/inputs/number/format_number.js +0 -9
- package/lib/inputs/number/index.d.ts +0 -6
- package/lib/inputs/number/index.js +0 -38
- package/lib/inputs/number/numberfield.spec.d.ts +0 -1
- package/lib/inputs/number/types.d.ts +0 -28
- package/lib/inputs/period/Dialog.d.ts +0 -3
- package/lib/inputs/period/Dialog.js +0 -18
- package/lib/inputs/period/Dropdown.d.ts +0 -3
- package/lib/inputs/period/Dropdown.js +0 -13
- package/lib/inputs/period/PeriodList.d.ts +0 -3
- package/lib/inputs/period/PeriodList.js +0 -29
- package/lib/inputs/period/helper.d.ts +0 -11
- package/lib/inputs/period/helper.js +0 -35
- package/lib/inputs/period/index.d.ts +0 -3
- package/lib/inputs/period/index.js +0 -335
- package/lib/inputs/period/types.d.ts +0 -69
- package/lib/inputs/search/index.d.ts +0 -3
- package/lib/inputs/search/index.js +0 -80
- package/lib/inputs/search/search_input.spec.d.ts +0 -1
- package/lib/inputs/select/ActionButtons.d.ts +0 -3
- package/lib/inputs/select/ActionButtons.js +0 -49
- package/lib/inputs/select/Dropdown.d.ts +0 -3
- package/lib/inputs/select/Dropdown.js +0 -119
- package/lib/inputs/select/helper.d.ts +0 -11
- package/lib/inputs/select/helper.js +0 -44
- package/lib/inputs/select/index.d.ts +0 -3
- package/lib/inputs/select/index.js +0 -29
- package/lib/inputs/select/multiple/Selecteds.d.ts +0 -3
- package/lib/inputs/select/multiple/Selecteds.js +0 -21
- package/lib/inputs/select/multiple/index.d.ts +0 -3
- package/lib/inputs/select/multiple/index.js +0 -192
- package/lib/inputs/select/select.spec.d.ts +0 -1
- package/lib/inputs/select/simple/index.d.ts +0 -3
- package/lib/inputs/select/simple/index.js +0 -219
- package/lib/inputs/select/types.d.ts +0 -117
- package/lib/inputs/text/index.d.ts +0 -3
- package/lib/inputs/text/index.js +0 -6
- package/lib/inputs/text/textfield.spec.d.ts +0 -1
- package/lib/inputs/text/types.d.ts +0 -21
- package/lib/inputs/textarea/index.d.ts +0 -3
- package/lib/inputs/textarea/index.js +0 -18
- package/lib/inputs/textarea/textarea.spec.d.ts +0 -1
- package/lib/inputs/textarea/types.d.ts +0 -7
- package/lib/inputs/types.d.ts +0 -151
- package/lib/internals/colorStyles.d.ts +0 -8
- package/lib/internals/colorStyles.js +0 -10
- package/lib/internals/constants.d.ts +0 -9
- package/lib/internals/constants.js +0 -12
- package/lib/internals/types.d.ts +0 -22
- package/lib/internals/withTooltip.d.ts +0 -8
- package/lib/internals/withTooltip.js +0 -75
- package/lib/labelMessages/index.d.ts +0 -3
- package/lib/labelMessages/index.js +0 -48
- package/lib/labelMessages/labelMessages.spec.d.ts +0 -1
- package/lib/labelMessages/types.d.ts +0 -16
- package/lib/labels/DangerLabel.d.ts +0 -3
- package/lib/labels/DangerLabel.js +0 -6
- package/lib/labels/DefaultLabel.d.ts +0 -6
- package/lib/labels/DefaultLabel.js +0 -41
- package/lib/labels/InfoLabel.d.ts +0 -3
- package/lib/labels/InfoLabel.js +0 -6
- package/lib/labels/PrimaryLabel.d.ts +0 -3
- package/lib/labels/PrimaryLabel.js +0 -6
- package/lib/labels/SuccessLabel.d.ts +0 -3
- package/lib/labels/SuccessLabel.js +0 -6
- package/lib/labels/WarningLabel.d.ts +0 -3
- package/lib/labels/WarningLabel.js +0 -6
- package/lib/labels/index.d.ts +0 -9
- package/lib/labels/index.js +0 -17
- package/lib/labels/label.spec.d.ts +0 -1
- package/lib/labels/label_container/index.d.ts +0 -10
- package/lib/labels/label_container/index.js +0 -12
- package/lib/labels/types.d.ts +0 -22
- package/lib/list/Header.d.ts +0 -3
- package/lib/list/Header.js +0 -8
- package/lib/list/Item.d.ts +0 -6
- package/lib/list/Item.js +0 -13
- package/lib/list/Separator.d.ts +0 -2
- package/lib/list/Separator.js +0 -5
- package/lib/list/helpers.d.ts +0 -9
- package/lib/list/helpers.js +0 -10
- package/lib/list/index.d.ts +0 -7
- package/lib/list/index.js +0 -101
- package/lib/list/list.spec.d.ts +0 -1
- package/lib/list/types.d.ts +0 -69
- package/lib/menus/float/MenuItem.d.ts +0 -3
- package/lib/menus/float/MenuItem.js +0 -58
- package/lib/menus/float/SubMenuContainer.d.ts +0 -29
- package/lib/menus/float/float-menu.spec.d.ts +0 -0
- package/lib/menus/float/helpers.d.ts +0 -4
- package/lib/menus/float/helpers.js +0 -5
- package/lib/menus/float/index.d.ts +0 -6
- package/lib/menus/float/index.js +0 -92
- package/lib/menus/float/types.d.ts +0 -26
- package/lib/menus/index.d.ts +0 -2
- package/lib/menus/index.js +0 -4
- package/lib/menus/sidenav/ExpandMenu.d.ts +0 -3
- package/lib/menus/sidenav/ExpandMenu.js +0 -17
- package/lib/menus/sidenav/MenuLink.d.ts +0 -6
- package/lib/menus/sidenav/MenuLink.js +0 -17
- package/lib/menus/sidenav/NavMenuGroup.d.ts +0 -3
- package/lib/menus/sidenav/NavMenuGroup.js +0 -17
- package/lib/menus/sidenav/NavMenuItem.d.ts +0 -6
- package/lib/menus/sidenav/NavMenuItem.js +0 -114
- package/lib/menus/sidenav/NavSubMenuItem.d.ts +0 -3
- package/lib/menus/sidenav/NavSubMenuItem.js +0 -23
- package/lib/menus/sidenav/helpers.d.ts +0 -6
- package/lib/menus/sidenav/helpers.js +0 -10
- package/lib/menus/sidenav/index.d.ts +0 -8
- package/lib/menus/sidenav/index.js +0 -128
- package/lib/menus/sidenav/popup_menu_search/EmptyList.d.ts +0 -3
- package/lib/menus/sidenav/popup_menu_search/EmptyList.js +0 -19
- package/lib/menus/sidenav/popup_menu_search/index.d.ts +0 -4
- package/lib/menus/sidenav/popup_menu_search/index.js +0 -90
- package/lib/menus/sidenav/sidenav.spec.d.ts +0 -1
- package/lib/menus/sidenav/types.d.ts +0 -85
- package/lib/noPermission/index.d.ts +0 -2
- package/lib/noPermission/index.js +0 -11
- package/lib/panel/Content.d.ts +0 -3
- package/lib/panel/Content.js +0 -45
- package/lib/panel/DangerPanel.d.ts +0 -3
- package/lib/panel/DangerPanel.js +0 -7
- package/lib/panel/Default.d.ts +0 -3
- package/lib/panel/Default.js +0 -42
- package/lib/panel/Header.d.ts +0 -3
- package/lib/panel/Header.js +0 -42
- package/lib/panel/InfoPanel.d.ts +0 -3
- package/lib/panel/InfoPanel.js +0 -7
- package/lib/panel/PrimaryPanel.d.ts +0 -3
- package/lib/panel/PrimaryPanel.js +0 -7
- package/lib/panel/SuccessPanel.d.ts +0 -3
- package/lib/panel/SuccessPanel.js +0 -7
- package/lib/panel/ToolBar.d.ts +0 -3
- package/lib/panel/ToolBar.js +0 -6
- package/lib/panel/WarningPanel.d.ts +0 -3
- package/lib/panel/WarningPanel.js +0 -7
- package/lib/panel/helpers.d.ts +0 -5
- package/lib/panel/helpers.js +0 -12
- package/lib/panel/index.d.ts +0 -10
- package/lib/panel/index.js +0 -19
- package/lib/panel/panel.spec.d.ts +0 -0
- package/lib/panel/types.d.ts +0 -43
- package/lib/permissionValidations.d.ts +0 -12
- package/lib/permissionValidations.js +0 -42
- package/lib/popover/PopoverText.d.ts +0 -4
- package/lib/popover/PopoverText.js +0 -7
- package/lib/popover/PopoverTitle.d.ts +0 -3
- package/lib/popover/PopoverTitle.js +0 -5
- package/lib/popover/index.d.ts +0 -6
- package/lib/popover/index.js +0 -59
- package/lib/popover/popover.spec.d.ts +0 -1
- package/lib/popover/types.d.ts +0 -31
- package/lib/progress/Bar.d.ts +0 -3
- package/lib/progress/Bar.js +0 -42
- package/lib/progress/index.d.ts +0 -5
- package/lib/progress/index.js +0 -21
- package/lib/progress/progress.spec.d.ts +0 -1
- package/lib/progress/types.d.ts +0 -34
- package/lib/radio/index.d.ts +0 -8
- package/lib/radio/index.js +0 -96
- package/lib/radio/radio.spec.d.ts +0 -1
- package/lib/radio/types.d.ts +0 -25
- package/lib/shortcuts/index.d.ts +0 -3
- package/lib/shortcuts/index.js +0 -9
- package/lib/shortcuts/shortcuts.spec.d.ts +0 -0
- package/lib/shortcuts/types.d.ts +0 -9
- package/lib/skeleton/SkeletonContainer.d.ts +0 -3
- package/lib/skeleton/SkeletonContainer.js +0 -9
- package/lib/skeleton/index.d.ts +0 -5
- package/lib/skeleton/index.js +0 -25
- package/lib/skeleton/types.d.ts +0 -18
- package/lib/spinner/SpinnerLoading.d.ts +0 -3
- package/lib/spinner/SpinnerLoading.js +0 -18
- package/lib/spinner/index.d.ts +0 -3
- package/lib/spinner/index.js +0 -41
- package/lib/spinner/spinner.spec.d.ts +0 -1
- package/lib/spinner/types.d.ts +0 -17
- package/lib/split/Split.d.ts +0 -3
- package/lib/split/Split.js +0 -189
- package/lib/split/SplitSide.d.ts +0 -3
- package/lib/split/SplitSide.js +0 -19
- package/lib/split/helpers.d.ts +0 -8
- package/lib/split/helpers.js +0 -5
- package/lib/split/index.d.ts +0 -4
- package/lib/split/index.js +0 -6
- package/lib/split/split.spec.d.ts +0 -0
- package/lib/split/types.d.ts +0 -31
- package/lib/table/Body.d.ts +0 -3
- package/lib/table/Body.js +0 -59
- package/lib/table/Header.d.ts +0 -3
- package/lib/table/Header.js +0 -39
- package/lib/table/HeaderColumn.d.ts +0 -3
- package/lib/table/HeaderColumn.js +0 -30
- package/lib/table/Row.d.ts +0 -3
- package/lib/table/Row.js +0 -54
- package/lib/table/RowColumn.d.ts +0 -3
- package/lib/table/RowColumn.js +0 -46
- package/lib/table/helpers.d.ts +0 -7
- package/lib/table/helpers.js +0 -7
- package/lib/table/index.d.ts +0 -9
- package/lib/table/index.js +0 -109
- package/lib/table/table.spec.d.ts +0 -1
- package/lib/table/types.d.ts +0 -94
- package/lib/tabs/DropdownTabs.d.ts +0 -3
- package/lib/tabs/DropdownTabs.js +0 -81
- package/lib/tabs/Menu.d.ts +0 -3
- package/lib/tabs/Menu.js +0 -52
- package/lib/tabs/MenuTabs.d.ts +0 -4
- package/lib/tabs/MenuTabs.js +0 -89
- package/lib/tabs/Panel.d.ts +0 -3
- package/lib/tabs/Panel.js +0 -51
- package/lib/tabs/context.d.ts +0 -4
- package/lib/tabs/context.js +0 -64
- package/lib/tabs/index.d.ts +0 -5
- package/lib/tabs/index.js +0 -68
- package/lib/tabs/tabHelpers.d.ts +0 -9
- package/lib/tabs/tabHelpers.js +0 -46
- package/lib/tabs/tabs.spec.d.ts +0 -0
- package/lib/tabs/types.d.ts +0 -95
- package/lib/tabs/useTabs.d.ts +0 -1
- package/lib/tabs/useTabs.js +0 -8
- package/lib/textContent/index.d.ts +0 -18
- package/lib/textContent/index.js +0 -35
- package/lib/textContent/textContent.spec.d.ts +0 -1
- package/lib/toolbar/ButtonBar.d.ts +0 -3
- package/lib/toolbar/ButtonBar.js +0 -63
- package/lib/toolbar/LabelBar.d.ts +0 -3
- package/lib/toolbar/LabelBar.js +0 -43
- package/lib/toolbar/Separator.d.ts +0 -2
- package/lib/toolbar/Separator.js +0 -5
- package/lib/toolbar/ToolBarGroup.d.ts +0 -3
- package/lib/toolbar/ToolBarGroup.js +0 -5
- package/lib/toolbar/helpers.d.ts +0 -3
- package/lib/toolbar/helpers.js +0 -5
- package/lib/toolbar/index.d.ts +0 -8
- package/lib/toolbar/index.js +0 -33
- package/lib/toolbar/toolbar.spec.d.ts +0 -1
- package/lib/toolbar/types.d.ts +0 -43
- package/lib/tooltip/index.d.ts +0 -4
- package/lib/tooltip/index.js +0 -39
- package/lib/tooltip/tooltip.spec.d.ts +0 -1
- package/lib/tooltip/types.d.ts +0 -15
- package/lib/treetable/Body.d.ts +0 -2
- package/lib/treetable/Body.js +0 -35
- package/lib/treetable/Header.d.ts +0 -2
- package/lib/treetable/Header.js +0 -26
- package/lib/treetable/Row.d.ts +0 -3
- package/lib/treetable/Row.js +0 -157
- package/lib/treetable/helpers.d.ts +0 -13
- package/lib/treetable/helpers.js +0 -25
- package/lib/treetable/index.d.ts +0 -4
- package/lib/treetable/index.js +0 -18
- package/lib/treeview/Header.d.ts +0 -3
- package/lib/treeview/Header.js +0 -8
- package/lib/treeview/Node.d.ts +0 -3
- package/lib/treeview/Node.js +0 -183
- package/lib/treeview/constants.d.ts +0 -3
- package/lib/treeview/constants.js +0 -5
- package/lib/treeview/index.d.ts +0 -6
- package/lib/treeview/index.js +0 -185
- package/lib/treeview/treeview.spec.d.ts +0 -0
- package/lib/treeview/types.d.ts +0 -106
- package/lib/uitour/helpers.d.ts +0 -7
- package/lib/uitour/helpers.js +0 -9
- package/lib/uitour/index.d.ts +0 -4
- package/lib/uitour/index.js +0 -186
- package/lib/uitour/types.d.ts +0 -35
- package/lib/uitour/uitour.spec.d.ts +0 -0
package/lib/dialog/types.d.ts
DELETED
|
@@ -1,107 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
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;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import "../../chunks/jsx-runtime.C7wFtzyj.js";
|
|
2
|
-
import "react";
|
|
3
|
-
import "../../chunks/lodash.CIAK_hAg.js";
|
|
4
|
-
import "../../chunks/index.CM1aLH2W.js";
|
|
5
|
-
import { b as p, W as s, a as m, b as d, u as n } from "./progressbar.js";
|
|
6
|
-
import { useWizard as x } from "./useWizard.js";
|
|
7
|
-
export {
|
|
8
|
-
p as Container,
|
|
9
|
-
s as Step,
|
|
10
|
-
m as WizardContext,
|
|
11
|
-
d as default,
|
|
12
|
-
x as useWizard,
|
|
13
|
-
n as useWizardContext
|
|
14
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
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;
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { j as t } from "../../chunks/jsx-runtime.C7wFtzyj.js";
|
|
2
|
-
import m, { useEffect as b } from "react";
|
|
3
|
-
import { _ as f } from "../../chunks/lodash.CIAK_hAg.js";
|
|
4
|
-
import { F as j } from "../../chunks/index.CM1aLH2W.js";
|
|
5
|
-
import "./useWizard.js";
|
|
6
|
-
import '../../assets/progressbar.css';function W({
|
|
7
|
-
customClass: s,
|
|
8
|
-
customStyle: e,
|
|
9
|
-
stepsTitle: a,
|
|
10
|
-
position: n = "top"
|
|
11
|
-
}) {
|
|
12
|
-
const o = u();
|
|
13
|
-
if (!o)
|
|
14
|
-
throw new Error("WizardProgressbar must be used within a Wizard component");
|
|
15
|
-
const { currentStep: c } = o;
|
|
16
|
-
return /* @__PURE__ */ t.jsx(
|
|
17
|
-
"div",
|
|
18
|
-
{
|
|
19
|
-
className: `wizard-progressbar ${s}`,
|
|
20
|
-
style: e,
|
|
21
|
-
"data-position": n,
|
|
22
|
-
children: a.map((r) => /* @__PURE__ */ t.jsxs(
|
|
23
|
-
"div",
|
|
24
|
-
{
|
|
25
|
-
className: "title",
|
|
26
|
-
"data-completed": r.completed,
|
|
27
|
-
"data-disabled": r.number > c,
|
|
28
|
-
children: [
|
|
29
|
-
/* @__PURE__ */ t.jsx("div", { className: "step", children: /* @__PURE__ */ t.jsx("span", { className: "number", children: r.number }) }),
|
|
30
|
-
/* @__PURE__ */ t.jsx("span", { className: "step-title", children: r.title })
|
|
31
|
-
]
|
|
32
|
-
},
|
|
33
|
-
r.number
|
|
34
|
-
))
|
|
35
|
-
}
|
|
36
|
-
);
|
|
37
|
-
}
|
|
38
|
-
function C({ children: s, customClass: e = "", customStyle: a }) {
|
|
39
|
-
if (!u())
|
|
40
|
-
throw new Error("WizardStep must be used within a Wizard component");
|
|
41
|
-
return /* @__PURE__ */ t.jsx("div", { className: `wizard-step-component ${e}`, style: a, children: s });
|
|
42
|
-
}
|
|
43
|
-
const p = m.createContext(null), u = () => m.useContext(p);
|
|
44
|
-
function E({
|
|
45
|
-
children: s,
|
|
46
|
-
controls: e,
|
|
47
|
-
showProgressbar: a = !0,
|
|
48
|
-
customStyleForProgressBar: n,
|
|
49
|
-
customStyleForBody: o,
|
|
50
|
-
progressBarPosition: c = "top",
|
|
51
|
-
...r
|
|
52
|
-
}) {
|
|
53
|
-
const { currentStep: l, setTotalSteps: h } = e, i = m.Children.toArray(s), x = i.map((z, d) => ({
|
|
54
|
-
title: String(z.props.title),
|
|
55
|
-
number: d + 1,
|
|
56
|
-
completed: d < l - 1 && d !== l
|
|
57
|
-
})), w = i[l - 1];
|
|
58
|
-
if (!e || f.isEmpty(e))
|
|
59
|
-
throw new Error("Wizard must be have controls by using useWizard hook or creating manually.");
|
|
60
|
-
return b(() => {
|
|
61
|
-
h(i.length);
|
|
62
|
-
}, [i.length]), /* @__PURE__ */ t.jsx(p.Provider, { value: e, children: /* @__PURE__ */ t.jsxs(
|
|
63
|
-
j,
|
|
64
|
-
{
|
|
65
|
-
className: "wizard-dialog",
|
|
66
|
-
wrapperClassName: "wizard-wrapper",
|
|
67
|
-
contentClassName: "wizard-content",
|
|
68
|
-
...r,
|
|
69
|
-
children: [
|
|
70
|
-
a && /* @__PURE__ */ t.jsx(
|
|
71
|
-
W,
|
|
72
|
-
{
|
|
73
|
-
stepsTitle: x,
|
|
74
|
-
customStyle: n,
|
|
75
|
-
position: c
|
|
76
|
-
}
|
|
77
|
-
),
|
|
78
|
-
/* @__PURE__ */ t.jsx("div", { className: "wizard-body", style: o, children: w })
|
|
79
|
-
]
|
|
80
|
-
}
|
|
81
|
-
) });
|
|
82
|
-
}
|
|
83
|
-
export {
|
|
84
|
-
W as Progressbar,
|
|
85
|
-
C as W,
|
|
86
|
-
p as a,
|
|
87
|
-
E as b,
|
|
88
|
-
u
|
|
89
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import i, { useState as f } from "react";
|
|
2
|
-
const l = () => {
|
|
3
|
-
const [s, p] = f(0), [t, S] = i.useState(1), o = t < s, n = t > 1, e = (a) => {
|
|
4
|
-
S((u) => u + a);
|
|
5
|
-
}, r = () => {
|
|
6
|
-
o && e(1);
|
|
7
|
-
}, c = () => {
|
|
8
|
-
n && e(-1);
|
|
9
|
-
};
|
|
10
|
-
return {
|
|
11
|
-
changeStep: e,
|
|
12
|
-
nextStep: r,
|
|
13
|
-
hasNextStep: o,
|
|
14
|
-
previousStep: c,
|
|
15
|
-
hasPreviousStep: n,
|
|
16
|
-
currentStep: t,
|
|
17
|
-
totalSteps: s,
|
|
18
|
-
controls: {
|
|
19
|
-
changeStep: e,
|
|
20
|
-
nextStep: r,
|
|
21
|
-
hasNextStep: o,
|
|
22
|
-
previousStep: c,
|
|
23
|
-
hasPreviousStep: n,
|
|
24
|
-
currentStep: t,
|
|
25
|
-
totalSteps: s,
|
|
26
|
-
setTotalSteps: p
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
export {
|
|
31
|
-
l as useWizard
|
|
32
|
-
};
|
|
File without changes
|
package/lib/drawer/Content.d.ts
DELETED
package/lib/drawer/Content.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { j as o } from "../chunks/jsx-runtime.C7wFtzyj.js";
|
|
2
|
-
import { useContext as s } from "react";
|
|
3
|
-
import m from "./helpers.js";
|
|
4
|
-
import n from "../noPermission/index.js";
|
|
5
|
-
const d = ({ children: t, style: r }) => {
|
|
6
|
-
const { hideContent: e } = s(m);
|
|
7
|
-
return e ? /* @__PURE__ */ o.jsx(n, {}) : /* @__PURE__ */ o.jsx("div", { className: "drawerbody", style: r, children: t });
|
|
8
|
-
};
|
|
9
|
-
export {
|
|
10
|
-
d as default
|
|
11
|
-
};
|
package/lib/drawer/Drawer.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
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;
|
package/lib/drawer/Drawer.js
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { j as n } from "../chunks/jsx-runtime.C7wFtzyj.js";
|
|
2
|
-
import { useRef as f, useState as R, useEffect as v, Suspense as M } from "react";
|
|
3
|
-
import _ 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 = { ...S, title: u }, s = f(document.createElement("div"));
|
|
29
|
-
s.current.className = "drawercontainer";
|
|
30
|
-
const a = f(null), { hideContent: O } = V, [P] = R(q([O], N)), B = p ? { opacity: 0.4, pointerEvent: "none", placeContent: "center" } : {}, g = () => p ? /* @__PURE__ */ n.jsx("div", { className: "waitingspinner", children: /* @__PURE__ */ n.jsx(F, { style: { width: 60 }, delayTime: 0 }) }) : null, k = (e, r) => {
|
|
31
|
-
const t = document.createElement("div");
|
|
32
|
-
t.className = "drawer-component", t.id = String(r), e.appendChild(t), t.appendChild(s.current), a.current = t;
|
|
33
|
-
}, T = (e) => {
|
|
34
|
-
const r = document.createElement("div");
|
|
35
|
-
r.className = "drawer-overlay", r.dataset.testid = "drawer-overlay", e.appendChild(r);
|
|
36
|
-
}, i = (e) => {
|
|
37
|
-
d && e.key === "Escape" && (m?.(), e.stopPropagation());
|
|
38
|
-
};
|
|
39
|
-
v(() => {
|
|
40
|
-
let e;
|
|
41
|
-
const r = Math.round(+/* @__PURE__ */ new Date() / 1e3);
|
|
42
|
-
return o === void 0 ? e = document.getElementsByTagName("body")[0] : e = document.getElementById(o), e && k(e, r), D && !o && e && T(e), () => {
|
|
43
|
-
const t = document.getElementsByClassName("drawer-overlay")[0];
|
|
44
|
-
if (d && document.body.removeEventListener("keydown", i), o) {
|
|
45
|
-
const y = document.getElementById(o);
|
|
46
|
-
y && a.current && y.removeChild(a.current);
|
|
47
|
-
} else a.current && document.body.removeChild(a.current);
|
|
48
|
-
t && !o && e && e.removeChild(t);
|
|
49
|
-
};
|
|
50
|
-
}, []), v(() => (d && document.body.addEventListener("keydown", i), () => document.body.removeEventListener("keydown", i)), [d]);
|
|
51
|
-
const $ = {
|
|
52
|
-
handlerClose: m,
|
|
53
|
-
hideContent: P.hideContent,
|
|
54
|
-
skeletonize: c
|
|
55
|
-
}, L = () => /* @__PURE__ */ n.jsx(H.Provider, { value: $, children: /* @__PURE__ */ n.jsx("div", { "data-testid": "drawercontainer-component", className: `${w} ${C}`, style: E, children: /* @__PURE__ */ n.jsxs(
|
|
56
|
-
"div",
|
|
57
|
-
{
|
|
58
|
-
style: B,
|
|
59
|
-
"data-testid": "drawercontent",
|
|
60
|
-
className: `drawercontent ${c ? "-skeletonized" : ""} ${x}`,
|
|
61
|
-
children: [
|
|
62
|
-
u && /* @__PURE__ */ n.jsx(z, { ...b, customClass: j }),
|
|
63
|
-
/* @__PURE__ */ n.jsx(M, { children: l ? /* @__PURE__ */ n.jsx(A, { children: l }) : h }),
|
|
64
|
-
g()
|
|
65
|
-
]
|
|
66
|
-
}
|
|
67
|
-
) }) });
|
|
68
|
-
return _.createPortal(L(), s.current);
|
|
69
|
-
};
|
|
70
|
-
export {
|
|
71
|
-
W as default
|
|
72
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/lib/drawer/Header.d.ts
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
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;
|
package/lib/drawer/Header.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { j as e } from "../chunks/jsx-runtime.C7wFtzyj.js";
|
|
2
|
-
import { useContext as p, Fragment as t } from "react";
|
|
3
|
-
import h from "../icons/index.js";
|
|
4
|
-
import N from "./helpers.js";
|
|
5
|
-
const b = (r) => /* @__PURE__ */ e.jsx(
|
|
6
|
-
"span",
|
|
7
|
-
{
|
|
8
|
-
"data-testid": "header-closebutton",
|
|
9
|
-
className: "closebutton",
|
|
10
|
-
onClick: r,
|
|
11
|
-
role: "button",
|
|
12
|
-
tabIndex: 0,
|
|
13
|
-
children: /* @__PURE__ */ e.jsx(h, { name: "cancel2" })
|
|
14
|
-
}
|
|
15
|
-
), o = (r, s) => r || s ? /* @__PURE__ */ e.jsx("span", { "data-testid": "icon-header", className: "icon-header", children: s || r && /* @__PURE__ */ e.jsx(h, { name: r, color: "#000", size: 24 }) }) : /* @__PURE__ */ e.jsx("noscript", {}), k = ({
|
|
16
|
-
showCloseButton: r = !0,
|
|
17
|
-
title: s,
|
|
18
|
-
subTitle: a,
|
|
19
|
-
icon: n,
|
|
20
|
-
titleIcon: d,
|
|
21
|
-
customClass: m,
|
|
22
|
-
titleContent: c,
|
|
23
|
-
subTitleContent: l,
|
|
24
|
-
titleRightContent: x
|
|
25
|
-
}) => {
|
|
26
|
-
const { handlerClose: i } = p(N), u = () => c ? /* @__PURE__ */ e.jsx(t, { children: c }) : /* @__PURE__ */ e.jsxs(t, { children: [
|
|
27
|
-
n ? o(d, n) : o(d, null),
|
|
28
|
-
/* @__PURE__ */ e.jsx("h2", { className: "drawer-title", children: s }),
|
|
29
|
-
x
|
|
30
|
-
] }), j = () => l ? /* @__PURE__ */ e.jsx(t, { children: l }) : a && /* @__PURE__ */ e.jsx("h3", { className: "drawer-subtitle", children: a }), f = () => i ? i() : void 0;
|
|
31
|
-
return /* @__PURE__ */ e.jsxs("div", { className: `drawerheader ${m}`, "data-testid": "drawerheader", children: [
|
|
32
|
-
/* @__PURE__ */ e.jsxs("div", { className: "left", children: [
|
|
33
|
-
/* @__PURE__ */ e.jsx("div", { className: "title-subtitle", children: u() }),
|
|
34
|
-
j()
|
|
35
|
-
] }),
|
|
36
|
-
/* @__PURE__ */ e.jsx("div", { className: "right", children: r && b(() => {
|
|
37
|
-
f();
|
|
38
|
-
}) })
|
|
39
|
-
] });
|
|
40
|
-
};
|
|
41
|
-
export {
|
|
42
|
-
k as default
|
|
43
|
-
};
|
package/lib/drawer/helpers.d.ts
DELETED
package/lib/drawer/helpers.js
DELETED
package/lib/drawer/index.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
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 };
|
package/lib/drawer/index.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
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
|
-
};
|
package/lib/drawer/types.d.ts
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
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
|
-
}
|
package/lib/dropdown/Popup.d.ts
DELETED
package/lib/dropdown/Popup.js
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
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
|
-
}, { body: g } = document, D = ({
|
|
21
|
-
id: s,
|
|
22
|
-
customClassForDropdown: r = "",
|
|
23
|
-
align: c = "left",
|
|
24
|
-
isFloatMenu: i = !1,
|
|
25
|
-
topPosition: d = 0,
|
|
26
|
-
leftPosition: e = 0,
|
|
27
|
-
rightPosition: a = 0,
|
|
28
|
-
minWidth: p = 0,
|
|
29
|
-
targetRef: f,
|
|
30
|
-
...n
|
|
31
|
-
}) => {
|
|
32
|
-
const t = w(document.createElement("div"));
|
|
33
|
-
if (t.current.className = `dropdown-component ${r}`, t.current.dataset.testid = "dropdown-component", t && t.current) {
|
|
34
|
-
const o = document.body.getElementsByClassName("modalcontainer"), h = o[o.length - 1];
|
|
35
|
-
t.current.style.zIndex = `${o.length ? Number(h.style.zIndex) + 1 : 99999}`;
|
|
36
|
-
}
|
|
37
|
-
return x(() => (g.appendChild(t.current), t.current.id = s || `dropdown-component-${v()}`, t.current.style.cssText = y({
|
|
38
|
-
align: c,
|
|
39
|
-
isFloatMenu: i,
|
|
40
|
-
minWidth: p,
|
|
41
|
-
container: t.current,
|
|
42
|
-
target: f
|
|
43
|
-
}), () => {
|
|
44
|
-
g.removeChild(t.current);
|
|
45
|
-
}), []), P.createPortal(n.children, t.current);
|
|
46
|
-
};
|
|
47
|
-
export {
|
|
48
|
-
D as default
|
|
49
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/lib/dropdown/helper.d.ts
DELETED
package/lib/dropdown/helper.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
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
|
-
};
|
package/lib/dropdown/types.d.ts
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { ReactElement, ReactNode, Ref } from 'react';
|
|
2
|
-
export interface WithDropdownProps {
|
|
3
|
-
dropdown?: boolean;
|
|
4
|
-
dropdownOpened?: boolean;
|
|
5
|
-
dropdownAlign?: 'left' | 'right';
|
|
6
|
-
isDropdownOpened?: boolean;
|
|
7
|
-
children?: ReactNode;
|
|
8
|
-
customClassForDropdown?: string;
|
|
9
|
-
closeDropdownOnClickOutside?: boolean;
|
|
10
|
-
showDropdown?: () => void;
|
|
11
|
-
isFloatMenu?: boolean;
|
|
12
|
-
handlerClose?: (cb: () => void) => void;
|
|
13
|
-
}
|
|
14
|
-
export interface WrappedComponentProps extends WithDropdownProps {
|
|
15
|
-
getDropdownPopup?: (ref: Ref<HTMLElement | null>) => ReactElement;
|
|
16
|
-
}
|
|
17
|
-
export interface GetDisplayNameParams {
|
|
18
|
-
displayName?: string;
|
|
19
|
-
name?: string;
|
|
20
|
-
}
|
|
21
|
-
export interface WithDropdownContextProps {
|
|
22
|
-
handleDropdownClose: () => void;
|
|
23
|
-
}
|
|
24
|
-
export interface IPopupProps {
|
|
25
|
-
id?: string;
|
|
26
|
-
children?: ReactNode;
|
|
27
|
-
customClassForDropdown?: string;
|
|
28
|
-
align: 'left' | 'right';
|
|
29
|
-
isFloatMenu?: boolean;
|
|
30
|
-
topPosition?: number;
|
|
31
|
-
leftPosition?: number;
|
|
32
|
-
rightPosition?: number;
|
|
33
|
-
minWidth?: number;
|
|
34
|
-
targetRef?: HTMLElement | HTMLInputElement | null;
|
|
35
|
-
}
|
|
36
|
-
export interface GetDropdownStyleParams {
|
|
37
|
-
align: 'left' | 'right';
|
|
38
|
-
minWidth: number;
|
|
39
|
-
isFloatMenu: boolean;
|
|
40
|
-
topPosition: number;
|
|
41
|
-
leftPosition: number;
|
|
42
|
-
rightPosition: number;
|
|
43
|
-
container?: HTMLDivElement;
|
|
44
|
-
target?: HTMLElement | HTMLInputElement | null;
|
|
45
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { WithDropdownProps, WithDropdownContextProps } from './types';
|
|
3
|
-
declare const WithDropdownContext: React.Context<WithDropdownContextProps>;
|
|
4
|
-
declare const withDropdown: <ComponentProps extends WithDropdownProps>(WrappedComponent: React.ComponentType<ComponentProps>) => {
|
|
5
|
-
(props: ComponentProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
displayName: string;
|
|
7
|
-
};
|
|
8
|
-
export default withDropdown;
|
|
9
|
-
export { WithDropdownContext };
|