linear-react-components-ui 1.1.20-beta.33 → 1.1.20-beta.34
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 +4 -0
- package/lib/@types/Align.js +5 -0
- package/lib/@types/ButtonTypes.d.ts +3 -0
- package/lib/@types/ButtonTypes.js +5 -0
- package/lib/@types/ColorStyles.d.ts +3 -0
- package/lib/@types/ColorStyles.js +5 -0
- package/lib/@types/DataCombo.d.ts +3 -0
- package/lib/@types/DataCombo.js +5 -0
- package/lib/@types/Icon.d.ts +5 -0
- package/lib/@types/Icon.js +5 -0
- package/lib/@types/LabelStyles.d.ts +3 -0
- package/lib/@types/LabelStyles.js +5 -0
- package/lib/@types/Period.d.ts +6 -0
- package/lib/@types/Period.js +5 -0
- package/lib/@types/PermissionAttr.d.ts +14 -0
- package/lib/@types/PermissionAttr.js +5 -0
- package/lib/@types/PointerEvents.d.ts +3 -0
- package/lib/@types/PointerEvents.js +5 -0
- package/lib/@types/Position.d.ts +3 -0
- package/lib/@types/Position.js +5 -0
- package/lib/@types/PositionAlert.d.ts +3 -0
- package/lib/@types/PositionAlert.js +5 -0
- package/lib/@types/Size.d.ts +3 -0
- package/lib/@types/Size.js +5 -0
- package/lib/@types/SizePixels.d.ts +3 -0
- package/lib/@types/SizePixels.js +5 -0
- package/lib/@types/StorageMock.d.ts +5 -0
- package/lib/@types/StorageMock.js +5 -0
- package/lib/alerts/AlertContainer.d.ts +18 -0
- package/lib/alerts/AlertContainer.js +80 -0
- package/lib/alerts/AlertProvider.d.ts +9 -0
- package/lib/alerts/AlertProvider.js +73 -0
- package/lib/alerts/BaseAlert.d.ts +9 -0
- package/lib/alerts/BaseAlert.js +34 -0
- package/lib/alerts/Message.d.ts +9 -0
- package/lib/alerts/Message.js +114 -0
- package/lib/alerts/helpers.d.ts +9 -0
- package/lib/alerts/helpers.js +9 -0
- package/lib/alerts/index.d.ts +11 -0
- package/lib/alerts/index.js +16 -0
- package/lib/alerts/types.d.ts +51 -0
- package/lib/alerts/types.js +5 -0
- package/lib/alerts/withAlert.d.ts +9 -0
- package/lib/alerts/withAlert.js +24 -0
- package/lib/assets/fonts/Roboto-Black.woff +0 -0
- package/lib/assets/fonts/Roboto-Black.woff2 +0 -0
- package/lib/assets/fonts/Roboto-Bold.woff +0 -0
- package/lib/assets/fonts/Roboto-Bold.woff2 +0 -0
- package/lib/assets/fonts/Roboto-Light.woff +0 -0
- package/lib/assets/fonts/Roboto-Light.woff2 +0 -0
- package/lib/assets/fonts/Roboto-Medium.woff +0 -0
- package/lib/assets/fonts/Roboto-Medium.woff2 +0 -0
- package/lib/assets/fonts/Roboto-Regular.woff +0 -0
- package/lib/assets/fonts/Roboto-Regular.woff2 +0 -0
- package/lib/assets/fonts/Roboto-Thin.woff +0 -0
- package/lib/assets/fonts/Roboto-Thin.woff2 +0 -0
- package/lib/assets/fonts/TitilliumWeb-Black.woff +0 -0
- package/lib/assets/fonts/TitilliumWeb-Black.woff2 +0 -0
- package/lib/assets/fonts/TitilliumWeb-Bold.woff +0 -0
- package/lib/assets/fonts/TitilliumWeb-Bold.woff2 +0 -0
- package/lib/assets/fonts/TitilliumWeb-ExtraLight.woff +0 -0
- package/lib/assets/fonts/TitilliumWeb-ExtraLight.woff2 +0 -0
- package/lib/assets/fonts/TitilliumWeb-Light.woff +0 -0
- package/lib/assets/fonts/TitilliumWeb-Light.woff2 +0 -0
- package/lib/assets/fonts/TitilliumWeb-Regular.woff +0 -0
- package/lib/assets/fonts/TitilliumWeb-Regular.woff2 +0 -0
- package/lib/assets/fonts/TitilliumWeb-SemiBold.woff +0 -0
- package/lib/assets/fonts/TitilliumWeb-SemiBold.woff2 +0 -0
- package/lib/assets/images/logo.png +0 -0
- package/lib/assets/styles/alerts.scss +149 -0
- package/lib/assets/styles/avatar.scss +42 -0
- package/lib/assets/styles/badge.scss +48 -0
- package/lib/assets/styles/button.scss +345 -0
- package/lib/assets/styles/calendar.scss +172 -0
- package/lib/assets/styles/checkbox.scss +108 -0
- package/lib/assets/styles/colorpicker.scss +17 -0
- package/lib/assets/styles/colors.scss +144 -0
- package/lib/assets/styles/commons.scss +138 -0
- package/lib/assets/styles/datepicker.scss +16 -0
- package/lib/assets/styles/dialog.scss +200 -0
- package/lib/assets/styles/drawers.scss +159 -0
- package/lib/assets/styles/dropdown.scss +179 -0
- package/lib/assets/styles/effects.scss +823 -0
- package/lib/assets/styles/error.scss +9 -0
- package/lib/assets/styles/fieldset.scss +96 -0
- package/lib/assets/styles/file.scss +224 -0
- package/lib/assets/styles/floatMenu.scss +17 -0
- package/lib/assets/styles/fonts.scss +86 -0
- package/lib/assets/styles/form.scss +23 -0
- package/lib/assets/styles/gridlayout.scss +2054 -0
- package/lib/assets/styles/hint.scss +30 -0
- package/lib/assets/styles/icon.scss +42 -0
- package/lib/assets/styles/input.scss +156 -0
- package/lib/assets/styles/label.scss +116 -0
- package/lib/assets/styles/labelMessages.scss +81 -0
- package/lib/assets/styles/list.scss +124 -0
- package/lib/assets/styles/multiSelect.scss +125 -0
- package/lib/assets/styles/noPermission.scss +25 -0
- package/lib/assets/styles/numbers.scss +5 -0
- package/lib/assets/styles/panel.scss +95 -0
- package/lib/assets/styles/periodpicker.scss +69 -0
- package/lib/assets/styles/popover.scss +44 -0
- package/lib/assets/styles/progress.scss +72 -0
- package/lib/assets/styles/radio.scss +156 -0
- package/lib/assets/styles/search.scss +13 -0
- package/lib/assets/styles/select.scss +155 -0
- package/lib/assets/styles/shortcuts.scss +59 -0
- package/lib/assets/styles/sidenav.scss +408 -0
- package/lib/assets/styles/skeleton.scss +48 -0
- package/lib/assets/styles/spinner.scss +34 -0
- package/lib/assets/styles/split.scss +80 -0
- package/lib/assets/styles/table.scss +179 -0
- package/lib/assets/styles/tabs.scss +266 -0
- package/lib/assets/styles/textContent.scss +9 -0
- package/lib/assets/styles/toolbar.scss +74 -0
- package/lib/assets/styles/tooltip.scss +95 -0
- package/lib/assets/styles/treetable.scss +100 -0
- package/lib/assets/styles/treeview.scss +96 -0
- package/lib/assets/styles/uitour.scss +112 -0
- package/lib/assets/styles/wizard.scss +125 -0
- package/lib/avatar/index.d.ts +12 -0
- package/lib/avatar/index.js +91 -0
- package/lib/avatar/types.d.ts +31 -0
- package/lib/avatar/types.js +5 -0
- package/lib/badge/index.d.ts +6 -0
- package/lib/badge/index.js +30 -0
- package/lib/badge/types.d.ts +13 -0
- package/lib/badge/types.js +5 -0
- package/lib/buttons/ActivateButton.d.ts +11 -0
- package/lib/buttons/ActivateButton.js +14 -0
- package/lib/buttons/AddButton.d.ts +11 -0
- package/lib/buttons/AddButton.js +18 -0
- package/lib/buttons/Button.d.ts +14 -0
- package/lib/buttons/Button.js +23 -0
- package/lib/buttons/ButtonGroups.d.ts +8 -0
- package/lib/buttons/ButtonGroups.js +17 -0
- package/lib/buttons/CancelButton.d.ts +11 -0
- package/lib/buttons/CancelButton.js +23 -0
- package/lib/buttons/DangerButton.d.ts +11 -0
- package/lib/buttons/DangerButton.js +23 -0
- package/lib/buttons/DefaultButton.d.ts +14 -0
- package/lib/buttons/DefaultButton.js +176 -0
- package/lib/buttons/DestroyButton.d.ts +11 -0
- package/lib/buttons/DestroyButton.js +27 -0
- package/lib/buttons/EditButton.d.ts +11 -0
- package/lib/buttons/EditButton.js +14 -0
- package/lib/buttons/InactivateButton.d.ts +11 -0
- package/lib/buttons/InactivateButton.js +14 -0
- package/lib/buttons/InfoButton.d.ts +11 -0
- package/lib/buttons/InfoButton.js +23 -0
- package/lib/buttons/PrimaryButton.d.ts +11 -0
- package/lib/buttons/PrimaryButton.js +23 -0
- package/lib/buttons/RestoreButton.d.ts +11 -0
- package/lib/buttons/RestoreButton.js +14 -0
- package/lib/buttons/SaveButton.d.ts +11 -0
- package/lib/buttons/SaveButton.js +23 -0
- package/lib/buttons/SuccessButton.d.ts +11 -0
- package/lib/buttons/SuccessButton.js +23 -0
- package/lib/buttons/WarningButton.d.ts +11 -0
- package/lib/buttons/WarningButton.js +23 -0
- package/lib/buttons/button_container/index.d.ts +12 -0
- package/lib/buttons/button_container/index.js +30 -0
- package/lib/buttons/index.d.ts +26 -0
- package/lib/buttons/index.js +108 -0
- package/lib/buttons/split_button/index.d.ts +11 -0
- package/lib/buttons/split_button/index.js +57 -0
- package/lib/buttons/types.d.ts +49 -0
- package/lib/buttons/types.js +5 -0
- package/lib/calendar/DangerCalendar.d.ts +7 -0
- package/lib/calendar/DangerCalendar.js +23 -0
- package/lib/calendar/InfoCalendar.d.ts +7 -0
- package/lib/calendar/InfoCalendar.js +23 -0
- package/lib/calendar/PrimaryCalendar.d.ts +7 -0
- package/lib/calendar/PrimaryCalendar.js +23 -0
- package/lib/calendar/SuccessCalendar.d.ts +7 -0
- package/lib/calendar/SuccessCalendar.js +23 -0
- package/lib/calendar/WarningCalendar.d.ts +7 -0
- package/lib/calendar/WarningCalendar.js +23 -0
- package/lib/calendar/base/Day.d.ts +7 -0
- package/lib/calendar/base/Day.js +32 -0
- package/lib/calendar/base/Month.d.ts +7 -0
- package/lib/calendar/base/Month.js +37 -0
- package/lib/calendar/base/Week.d.ts +7 -0
- package/lib/calendar/base/Week.js +35 -0
- package/lib/calendar/base/helpers.d.ts +62 -0
- package/lib/calendar/base/helpers.js +117 -0
- package/lib/calendar/base/index.d.ts +7 -0
- package/lib/calendar/base/index.js +79 -0
- package/lib/calendar/index.d.ts +13 -0
- package/lib/calendar/index.js +44 -0
- package/lib/calendar/types.d.ts +25 -0
- package/lib/calendar/types.js +5 -0
- package/lib/checkbox/index.d.ts +13 -0
- package/lib/checkbox/index.js +145 -0
- package/lib/checkbox/types.d.ts +47 -0
- package/lib/checkbox/types.js +5 -0
- package/lib/dialog/Alert.d.ts +9 -0
- package/lib/dialog/Alert.js +28 -0
- package/lib/dialog/Custom.d.ts +9 -0
- package/lib/dialog/Custom.js +56 -0
- package/lib/dialog/Error.d.ts +9 -0
- package/lib/dialog/Error.js +28 -0
- package/lib/dialog/Information.d.ts +9 -0
- package/lib/dialog/Information.js +28 -0
- package/lib/dialog/Question.d.ts +9 -0
- package/lib/dialog/Question.js +60 -0
- package/lib/dialog/Warning.d.ts +9 -0
- package/lib/dialog/Warning.js +28 -0
- package/lib/dialog/base/Content.d.ts +9 -0
- package/lib/dialog/base/Content.js +22 -0
- package/lib/dialog/base/Footer.d.ts +9 -0
- package/lib/dialog/base/Footer.js +12 -0
- package/lib/dialog/base/Header.d.ts +9 -0
- package/lib/dialog/base/Header.js +59 -0
- package/lib/dialog/base/index.d.ts +15 -0
- package/lib/dialog/base/index.js +157 -0
- package/lib/dialog/base/style.js +13 -0
- package/lib/dialog/form/index.d.ts +10 -0
- package/lib/dialog/form/index.js +84 -0
- package/lib/dialog/index.d.ts +16 -0
- package/lib/dialog/index.js +51 -0
- package/lib/dialog/types.d.ts +105 -0
- package/lib/dialog/types.js +5 -0
- package/lib/dialog/wizard/index.d.ts +13 -0
- package/lib/dialog/wizard/index.js +74 -0
- package/lib/dialog/wizard/progressbar.d.ts +13 -0
- package/lib/dialog/wizard/progressbar.js +36 -0
- package/lib/dialog/wizard/step.d.ts +9 -0
- package/lib/dialog/wizard/step.js +22 -0
- package/lib/dialog/wizard/useWizard.d.ts +9 -0
- package/lib/dialog/wizard/useWizard.js +48 -0
- package/lib/drawer/Content.d.ts +10 -0
- package/lib/drawer/Content.js +26 -0
- package/lib/drawer/Drawer.d.ts +10 -0
- package/lib/drawer/Drawer.js +138 -0
- package/lib/drawer/Header.d.ts +10 -0
- package/lib/drawer/Header.js +76 -0
- package/lib/drawer/helpers.d.ts +10 -0
- package/lib/drawer/helpers.js +10 -0
- package/lib/drawer/index.d.ts +12 -0
- package/lib/drawer/index.js +25 -0
- package/lib/drawer/types.d.ts +41 -0
- package/lib/drawer/types.js +5 -0
- package/lib/dropdown/Popup.d.ts +6 -0
- package/lib/dropdown/Popup.js +69 -0
- package/lib/dropdown/helper.d.ts +4 -0
- package/lib/dropdown/helper.js +16 -0
- package/lib/dropdown/types.d.ts +44 -0
- package/lib/dropdown/types.js +5 -0
- package/lib/dropdown/withDropdown.d.ts +10 -0
- package/lib/dropdown/withDropdown.js +92 -0
- package/lib/fieldset/index.d.ts +8 -0
- package/lib/fieldset/index.js +83 -0
- package/lib/fieldset/types.d.ts +30 -0
- package/lib/fieldset/types.js +5 -0
- package/lib/form/Field.d.ts +14 -0
- package/lib/form/Field.js +118 -0
- package/lib/form/FieldArray.d.ts +14 -0
- package/lib/form/FieldArray.js +105 -0
- package/lib/form/FieldNumber.d.ts +14 -0
- package/lib/form/FieldNumber.js +68 -0
- package/lib/form/FieldPeriod.d.ts +14 -0
- package/lib/form/FieldPeriod.js +98 -0
- package/lib/form/helpers.d.ts +19 -0
- package/lib/form/helpers.js +50 -0
- package/lib/form/index.d.ts +18 -0
- package/lib/form/index.js +283 -0
- package/lib/form/types.d.ts +243 -0
- package/lib/form/types.js +5 -0
- package/lib/form/withFieldHOC.d.ts +14 -0
- package/lib/form/withFieldHOC.js +71 -0
- package/lib/form/withFormSecurity.d.ts +15 -0
- package/lib/form/withFormSecurity.js +55 -0
- package/lib/gridlayout/GridCol.d.ts +6 -0
- package/lib/gridlayout/GridCol.js +34 -0
- package/lib/gridlayout/GridRow.d.ts +6 -0
- package/lib/gridlayout/GridRow.js +34 -0
- package/lib/gridlayout/index.d.ts +8 -0
- package/lib/gridlayout/index.js +16 -0
- package/lib/gridlayout/types.d.ts +20 -0
- package/lib/gridlayout/types.js +5 -0
- package/lib/hint/helpers.d.ts +3 -0
- package/lib/hint/helpers.js +21 -0
- package/lib/hint/index.d.ts +7 -0
- package/lib/hint/index.js +36 -0
- package/lib/hint/types.d.ts +14 -0
- package/lib/hint/types.js +5 -0
- package/lib/icons/helper.d.ts +636 -0
- package/lib/icons/helper.js +640 -0
- package/lib/icons/index.d.ts +15 -0
- package/lib/icons/index.js +71 -0
- package/lib/icons/types.d.ts +49 -0
- package/lib/icons/types.js +5 -0
- package/lib/index.d.ts +39 -0
- package/lib/index.js +69 -0
- package/lib/inputs/base/InputTextBase.d.ts +11 -0
- package/lib/inputs/base/InputTextBase.js +261 -0
- package/lib/inputs/base/Label.d.ts +14 -0
- package/lib/inputs/base/Label.js +35 -0
- package/lib/inputs/base/helpers.d.ts +17 -0
- package/lib/inputs/base/helpers.js +46 -0
- package/lib/inputs/base/types.d.ts +100 -0
- package/lib/inputs/base/types.js +5 -0
- package/lib/inputs/color/index.d.ts +7 -0
- package/lib/inputs/color/index.js +95 -0
- package/lib/inputs/color/types.d.ts +19 -0
- package/lib/inputs/color/types.js +5 -0
- package/lib/inputs/date/Dialog.d.ts +13 -0
- package/lib/inputs/date/Dialog.js +25 -0
- package/lib/inputs/date/Dropdown.d.ts +13 -0
- package/lib/inputs/date/Dropdown.js +32 -0
- package/lib/inputs/date/helpers.d.ts +17 -0
- package/lib/inputs/date/helpers.js +31 -0
- package/lib/inputs/date/index.d.ts +13 -0
- package/lib/inputs/date/index.js +251 -0
- package/lib/inputs/date/types.d.ts +62 -0
- package/lib/inputs/date/types.js +5 -0
- package/lib/inputs/errorMessage/index.d.ts +16 -0
- package/lib/inputs/errorMessage/index.js +26 -0
- package/lib/inputs/file/DefaultFile.d.ts +13 -0
- package/lib/inputs/file/DefaultFile.js +80 -0
- package/lib/inputs/file/DragDropFile.d.ts +13 -0
- package/lib/inputs/file/DragDropFile.js +272 -0
- package/lib/inputs/file/File.d.ts +13 -0
- package/lib/inputs/file/File.js +63 -0
- package/lib/inputs/file/FileButtonSettings.d.ts +13 -0
- package/lib/inputs/file/FileButtonSettings.js +34 -0
- package/lib/inputs/file/helpers.d.ts +13 -0
- package/lib/inputs/file/helpers.js +21 -0
- package/lib/inputs/file/index.d.ts +16 -0
- package/lib/inputs/file/index.js +24 -0
- package/lib/inputs/file/types.d.ts +57 -0
- package/lib/inputs/file/types.js +5 -0
- package/lib/inputs/inputHOC.d.ts +16 -0
- package/lib/inputs/inputHOC.js +44 -0
- package/lib/inputs/mask/BaseMask.d.ts +12 -0
- package/lib/inputs/mask/BaseMask.js +167 -0
- package/lib/inputs/mask/Cnpj.d.ts +15 -0
- package/lib/inputs/mask/Cnpj.js +60 -0
- package/lib/inputs/mask/Cpf.d.ts +15 -0
- package/lib/inputs/mask/Cpf.js +57 -0
- package/lib/inputs/mask/Phone.d.ts +12 -0
- package/lib/inputs/mask/Phone.js +19 -0
- package/lib/inputs/mask/ZipCode.d.ts +12 -0
- package/lib/inputs/mask/ZipCode.js +14 -0
- package/lib/inputs/mask/helpers.d.ts +62 -0
- package/lib/inputs/mask/helpers.js +138 -0
- package/lib/inputs/mask/index.d.ts +17 -0
- package/lib/inputs/mask/index.js +37 -0
- package/lib/inputs/mask/types.d.ts +79 -0
- package/lib/inputs/mask/types.js +5 -0
- package/lib/inputs/multiSelect/ActionButtons.d.ts +13 -0
- package/lib/inputs/multiSelect/ActionButtons.js +51 -0
- package/lib/inputs/multiSelect/Dropdown.d.ts +13 -0
- package/lib/inputs/multiSelect/Dropdown.js +136 -0
- package/lib/inputs/multiSelect/helper.d.ts +13 -0
- package/lib/inputs/multiSelect/helper.js +20 -0
- package/lib/inputs/multiSelect/index.d.ts +13 -0
- package/lib/inputs/multiSelect/index.js +218 -0
- package/lib/inputs/multiSelect/types.d.ts +65 -0
- package/lib/inputs/multiSelect/types.js +5 -0
- package/lib/inputs/number/BaseNumber.d.ts +17 -0
- package/lib/inputs/number/BaseNumber.js +70 -0
- package/lib/inputs/number/Currency.d.ts +17 -0
- package/lib/inputs/number/Currency.js +22 -0
- package/lib/inputs/number/Decimal.d.ts +17 -0
- package/lib/inputs/number/Decimal.js +11 -0
- package/lib/inputs/number/format_number.d.ts +5 -0
- package/lib/inputs/number/format_number.js +27 -0
- package/lib/inputs/number/index.d.ts +19 -0
- package/lib/inputs/number/index.js +64 -0
- package/lib/inputs/number/types.d.ts +39 -0
- package/lib/inputs/number/types.js +5 -0
- package/lib/inputs/period/Dialog.d.ts +14 -0
- package/lib/inputs/period/Dialog.js +25 -0
- package/lib/inputs/period/Dropdown.d.ts +14 -0
- package/lib/inputs/period/Dropdown.js +28 -0
- package/lib/inputs/period/PeriodList.d.ts +14 -0
- package/lib/inputs/period/PeriodList.js +61 -0
- package/lib/inputs/period/helper.d.ts +22 -0
- package/lib/inputs/period/helper.js +66 -0
- package/lib/inputs/period/index.d.ts +14 -0
- package/lib/inputs/period/index.js +423 -0
- package/lib/inputs/period/types.d.ts +73 -0
- package/lib/inputs/period/types.js +5 -0
- package/lib/inputs/search/index.d.ts +16 -0
- package/lib/inputs/search/index.js +129 -0
- package/lib/inputs/select/ActionButtons.d.ts +16 -0
- package/lib/inputs/select/ActionButtons.js +38 -0
- package/lib/inputs/select/Dropdown.d.ts +16 -0
- package/lib/inputs/select/Dropdown.js +112 -0
- package/lib/inputs/select/helper.d.ts +25 -0
- package/lib/inputs/select/helper.js +108 -0
- package/lib/inputs/select/index.d.ts +13 -0
- package/lib/inputs/select/index.js +42 -0
- package/lib/inputs/select/multiple/Selecteds.d.ts +13 -0
- package/lib/inputs/select/multiple/Selecteds.js +25 -0
- package/lib/inputs/select/multiple/index.d.ts +13 -0
- package/lib/inputs/select/multiple/index.js +276 -0
- package/lib/inputs/select/simple/index.d.ts +13 -0
- package/lib/inputs/select/simple/index.js +302 -0
- package/lib/inputs/select/types.d.ts +119 -0
- package/lib/inputs/select/types.js +5 -0
- package/lib/inputs/text/index.d.ts +12 -0
- package/lib/inputs/text/index.js +13 -0
- package/lib/inputs/text/types.d.ts +25 -0
- package/lib/inputs/text/types.js +5 -0
- package/lib/inputs/textarea/index.d.ts +12 -0
- package/lib/inputs/textarea/index.js +25 -0
- package/lib/inputs/textarea/types.d.ts +16 -0
- package/lib/inputs/textarea/types.js +5 -0
- package/lib/inputs/types.d.ts +157 -0
- package/lib/inputs/types.js +5 -0
- package/lib/internals/colorStyles.d.ts +9 -0
- package/lib/internals/colorStyles.js +14 -0
- package/lib/internals/constants.d.ts +11 -0
- package/lib/internals/constants.js +15 -0
- package/lib/internals/types.d.ts +25 -0
- package/lib/internals/types.js +5 -0
- package/lib/internals/withTooltip.d.ts +12 -0
- package/lib/internals/withTooltip.js +172 -0
- package/lib/labelMessages/index.d.ts +9 -0
- package/lib/labelMessages/index.js +60 -0
- package/lib/labelMessages/types.d.ts +20 -0
- package/lib/labelMessages/types.js +5 -0
- package/lib/labels/DangerLabel.d.ts +11 -0
- package/lib/labels/DangerLabel.js +23 -0
- package/lib/labels/DefaultLabel.d.ts +14 -0
- package/lib/labels/DefaultLabel.js +55 -0
- package/lib/labels/InfoLabel.d.ts +11 -0
- package/lib/labels/InfoLabel.js +23 -0
- package/lib/labels/PrimaryLabel.d.ts +11 -0
- package/lib/labels/PrimaryLabel.js +23 -0
- package/lib/labels/SuccessLabel.d.ts +11 -0
- package/lib/labels/SuccessLabel.js +23 -0
- package/lib/labels/WarningLabel.d.ts +11 -0
- package/lib/labels/WarningLabel.js +23 -0
- package/lib/labels/index.d.ts +18 -0
- package/lib/labels/index.js +52 -0
- package/lib/labels/label_container/index.d.ts +12 -0
- package/lib/labels/label_container/index.js +22 -0
- package/lib/labels/types.d.ts +26 -0
- package/lib/labels/types.js +5 -0
- package/lib/list/Header.d.ts +10 -0
- package/lib/list/Header.js +23 -0
- package/lib/list/Item.d.ts +13 -0
- package/lib/list/Item.js +162 -0
- package/lib/list/Separator.d.ts +3 -0
- package/lib/list/Separator.js +12 -0
- package/lib/list/helpers.d.ts +15 -0
- package/lib/list/helpers.js +14 -0
- package/lib/list/index.d.ts +13 -0
- package/lib/list/index.js +182 -0
- package/lib/list/types.d.ts +73 -0
- package/lib/list/types.js +5 -0
- package/lib/menus/float/MenuItem.d.ts +9 -0
- package/lib/menus/float/MenuItem.js +69 -0
- package/lib/menus/float/SubMenuContainer.js +77 -0
- package/lib/menus/float/helpers.d.ts +9 -0
- package/lib/menus/float/helpers.js +10 -0
- package/lib/menus/float/index.d.ts +40 -0
- package/lib/menus/float/index.js +68 -0
- package/lib/menus/float/types.d.ts +30 -0
- package/lib/menus/float/types.js +5 -0
- package/lib/menus/index.d.ts +12 -0
- package/lib/menus/index.js +9 -0
- package/lib/menus/sidenav/ExpandMenu.d.ts +12 -0
- package/lib/menus/sidenav/ExpandMenu.js +27 -0
- package/lib/menus/sidenav/MenuLink.d.ts +15 -0
- package/lib/menus/sidenav/MenuLink.js +29 -0
- package/lib/menus/sidenav/NavMenuGroup.d.ts +12 -0
- package/lib/menus/sidenav/NavMenuGroup.js +26 -0
- package/lib/menus/sidenav/NavMenuItem.d.ts +15 -0
- package/lib/menus/sidenav/NavMenuItem.js +150 -0
- package/lib/menus/sidenav/NavSubMenuItem.d.ts +12 -0
- package/lib/menus/sidenav/NavSubMenuItem.js +43 -0
- package/lib/menus/sidenav/helpers.d.ts +14 -0
- package/lib/menus/sidenav/helpers.js +18 -0
- package/lib/menus/sidenav/index.d.ts +16 -0
- package/lib/menus/sidenav/index.js +184 -0
- package/lib/menus/sidenav/popup_menu_search/EmptyList.d.ts +12 -0
- package/lib/menus/sidenav/popup_menu_search/EmptyList.js +26 -0
- package/lib/menus/sidenav/popup_menu_search/index.d.ts +12 -0
- package/lib/menus/sidenav/popup_menu_search/index.js +116 -0
- package/lib/menus/sidenav/types.d.ts +90 -0
- package/lib/menus/sidenav/types.js +5 -0
- package/lib/noPermission/index.d.ts +3 -0
- package/lib/noPermission/index.js +23 -0
- package/lib/panel/Content.d.ts +10 -0
- package/lib/panel/Content.js +79 -0
- package/lib/panel/DangerPanel.d.ts +10 -0
- package/lib/panel/DangerPanel.js +15 -0
- package/lib/panel/Default.d.ts +10 -0
- package/lib/panel/Default.js +67 -0
- package/lib/panel/Header.d.ts +10 -0
- package/lib/panel/Header.js +77 -0
- package/lib/panel/InfoPanel.d.ts +10 -0
- package/lib/panel/InfoPanel.js +15 -0
- package/lib/panel/PrimaryPanel.d.ts +10 -0
- package/lib/panel/PrimaryPanel.js +15 -0
- package/lib/panel/SuccessPanel.d.ts +10 -0
- package/lib/panel/SuccessPanel.js +15 -0
- package/lib/panel/ToolBar.d.ts +10 -0
- package/lib/panel/ToolBar.js +22 -0
- package/lib/panel/WarningPanel.d.ts +10 -0
- package/lib/panel/WarningPanel.js +15 -0
- package/lib/panel/helpers.d.ts +11 -0
- package/lib/panel/helpers.js +25 -0
- package/lib/panel/index.d.ts +18 -0
- package/lib/panel/index.js +59 -0
- package/lib/panel/types.d.ts +47 -0
- package/lib/panel/types.js +5 -0
- package/lib/permissionValidations.d.ts +14 -0
- package/lib/permissionValidations.js +59 -0
- package/lib/popover/PopoverText.d.ts +10 -0
- package/lib/popover/PopoverText.js +20 -0
- package/lib/popover/PopoverTitle.d.ts +10 -0
- package/lib/popover/PopoverTitle.js +17 -0
- package/lib/popover/index.d.ts +15 -0
- package/lib/popover/index.js +63 -0
- package/lib/popover/types.d.ts +24 -0
- package/lib/popover/types.js +5 -0
- package/lib/progress/Bar.d.ts +6 -0
- package/lib/progress/Bar.js +74 -0
- package/lib/progress/index.d.ts +7 -0
- package/lib/progress/index.js +38 -0
- package/lib/progress/types.d.ts +37 -0
- package/lib/progress/types.js +5 -0
- package/lib/radio/index.d.ts +13 -0
- package/lib/radio/index.js +113 -0
- package/lib/radio/types.d.ts +28 -0
- package/lib/radio/types.js +5 -0
- package/lib/shortcuts/index.d.ts +7 -0
- package/lib/shortcuts/index.js +28 -0
- package/lib/shortcuts/types.d.ts +12 -0
- package/lib/shortcuts/types.js +5 -0
- package/lib/skeleton/SkeletonContainer.d.ts +7 -0
- package/lib/skeleton/SkeletonContainer.js +23 -0
- package/lib/skeleton/index.d.ts +8 -0
- package/lib/skeleton/index.js +54 -0
- package/lib/skeleton/types.d.ts +21 -0
- package/lib/skeleton/types.js +5 -0
- package/lib/spinner/SpinnerLoading.d.ts +7 -0
- package/lib/spinner/SpinnerLoading.js +219 -0
- package/lib/spinner/index.d.ts +7 -0
- package/lib/spinner/index.js +60 -0
- package/lib/spinner/types.d.ts +20 -0
- package/lib/spinner/types.js +5 -0
- package/lib/split/Split.d.ts +6 -0
- package/lib/split/Split.js +292 -0
- package/lib/split/SplitSide.d.ts +6 -0
- package/lib/split/SplitSide.js +42 -0
- package/lib/split/helpers.d.ts +10 -0
- package/lib/split/helpers.js +10 -0
- package/lib/split/index.d.ts +8 -0
- package/lib/split/index.js +17 -0
- package/lib/split/types.d.ts +34 -0
- package/lib/split/types.js +5 -0
- package/lib/table/Body.d.ts +6 -0
- package/lib/table/Body.js +71 -0
- package/lib/table/Header.d.ts +6 -0
- package/lib/table/Header.js +90 -0
- package/lib/table/HeaderColumn.d.ts +6 -0
- package/lib/table/HeaderColumn.js +55 -0
- package/lib/table/Row.d.ts +6 -0
- package/lib/table/Row.js +78 -0
- package/lib/table/RowColumn.d.ts +6 -0
- package/lib/table/RowColumn.js +81 -0
- package/lib/table/helpers.d.ts +8 -0
- package/lib/table/helpers.js +15 -0
- package/lib/table/index.d.ts +11 -0
- package/lib/table/index.js +154 -0
- package/lib/table/types.d.ts +97 -0
- package/lib/table/types.js +5 -0
- package/lib/tabs/DropdownTabs.d.ts +11 -0
- package/lib/tabs/DropdownTabs.js +73 -0
- package/lib/tabs/Menu.d.ts +11 -0
- package/lib/tabs/Menu.js +46 -0
- package/lib/tabs/MenuTabs.d.ts +11 -0
- package/lib/tabs/MenuTabs.js +84 -0
- package/lib/tabs/Panel.d.ts +11 -0
- package/lib/tabs/Panel.js +84 -0
- package/lib/tabs/context.d.ts +12 -0
- package/lib/tabs/context.js +127 -0
- package/lib/tabs/index.d.ts +12 -0
- package/lib/tabs/index.js +70 -0
- package/lib/tabs/tabHelpers.d.ts +12 -0
- package/lib/tabs/tabHelpers.js +75 -0
- package/lib/tabs/types.d.ts +98 -0
- package/lib/tabs/types.js +5 -0
- package/lib/tabs/useTabs.d.ts +11 -0
- package/lib/tabs/useTabs.js +11 -0
- package/lib/textContent/index.d.ts +22 -0
- package/lib/textContent/index.js +42 -0
- package/lib/toolbar/ButtonBar.d.ts +12 -0
- package/lib/toolbar/ButtonBar.js +66 -0
- package/lib/toolbar/LabelBar.d.ts +12 -0
- package/lib/toolbar/LabelBar.js +58 -0
- package/lib/toolbar/Separator.d.ts +3 -0
- package/lib/toolbar/Separator.js +12 -0
- package/lib/toolbar/ToolBarGroup.d.ts +12 -0
- package/lib/toolbar/ToolBarGroup.js +19 -0
- package/lib/toolbar/helpers.d.ts +12 -0
- package/lib/toolbar/helpers.js +9 -0
- package/lib/toolbar/index.d.ts +16 -0
- package/lib/toolbar/index.js +65 -0
- package/lib/toolbar/types.d.ts +46 -0
- package/lib/toolbar/types.js +5 -0
- package/lib/tooltip/index.d.ts +6 -0
- package/lib/tooltip/index.js +63 -0
- package/lib/tooltip/types.d.ts +17 -0
- package/lib/tooltip/types.js +5 -0
- package/lib/treetable/Body.d.ts +3 -0
- package/lib/treetable/Body.js +34 -0
- package/lib/treetable/Header.d.ts +3 -0
- package/lib/treetable/Header.js +24 -0
- package/lib/treetable/Row.d.ts +7 -0
- package/lib/treetable/Row.js +209 -0
- package/lib/treetable/helpers.d.ts +19 -0
- package/lib/treetable/helpers.js +32 -0
- package/lib/treetable/index.d.ts +8 -0
- package/lib/treetable/index.js +28 -0
- package/lib/treetable/types.d.js +5 -0
- package/lib/treeview/Header.d.ts +7 -0
- package/lib/treeview/Header.js +21 -0
- package/lib/treeview/Node.d.ts +7 -0
- package/lib/treeview/Node.js +245 -0
- package/lib/treeview/constants.d.ts +7 -0
- package/lib/treeview/constants.js +9 -0
- package/lib/treeview/index.d.ts +9 -0
- package/lib/treeview/index.js +320 -0
- package/lib/treeview/types.d.ts +108 -0
- package/lib/treeview/types.js +5 -0
- package/lib/types.d-73cece43.d.ts +46 -0
- package/lib/uitour/helpers.d.ts +8 -0
- package/lib/uitour/helpers.js +12 -0
- package/lib/uitour/index.d.ts +7 -0
- package/lib/uitour/index.js +255 -0
- package/lib/uitour/types.d.ts +38 -0
- package/lib/uitour/types.js +5 -0
- package/package.json +1 -1
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _gridlayout = _interopRequireDefault(require("../gridlayout"));
|
|
9
|
+
var _Header = _interopRequireDefault(require("./Header"));
|
|
10
|
+
var _helpers = _interopRequireDefault(require("./helpers"));
|
|
11
|
+
var _permissionValidations = require("../permissionValidations");
|
|
12
|
+
const _excluded = ["startOpened", "toggleable", "customClass", "children", "title", "gridCols", "onEndReached", "onEndReachedThreshold", "permissionAttr", "colorStyle"];
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
15
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
16
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
17
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
18
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
|
|
19
|
+
const DefaultPanel = _ref => {
|
|
20
|
+
let {
|
|
21
|
+
startOpened = true,
|
|
22
|
+
toggleable,
|
|
23
|
+
customClass,
|
|
24
|
+
children,
|
|
25
|
+
title,
|
|
26
|
+
gridCols,
|
|
27
|
+
onEndReached,
|
|
28
|
+
onEndReachedThreshold = 0.1,
|
|
29
|
+
permissionAttr,
|
|
30
|
+
colorStyle
|
|
31
|
+
} = _ref,
|
|
32
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
33
|
+
const [opened, setOpened] = (0, _react.useState)(startOpened);
|
|
34
|
+
const {
|
|
35
|
+
hideContent,
|
|
36
|
+
unvisible
|
|
37
|
+
} = _permissionValidations.OPTIONS_ON_DENIED;
|
|
38
|
+
const [onDenied] = (0, _react.useState)((0, _permissionValidations.actionsOnPermissionDenied)([hideContent, unvisible], permissionAttr));
|
|
39
|
+
const getCssClass = () => {
|
|
40
|
+
let cssClass = `panel-component ${customClass}`;
|
|
41
|
+
cssClass += colorStyle !== '' ? ` -${colorStyle}` : '';
|
|
42
|
+
return cssClass;
|
|
43
|
+
};
|
|
44
|
+
const renderContent = () => /*#__PURE__*/_react.default.createElement("div", _extends({
|
|
45
|
+
className: getCssClass()
|
|
46
|
+
}, rest), title && /*#__PURE__*/_react.default.createElement(_Header.default, {
|
|
47
|
+
title: title
|
|
48
|
+
}), children);
|
|
49
|
+
const contextValues = () => ({
|
|
50
|
+
toggleable,
|
|
51
|
+
handlerToggleable: () => {
|
|
52
|
+
setOpened(!opened);
|
|
53
|
+
},
|
|
54
|
+
opened,
|
|
55
|
+
onEndReached,
|
|
56
|
+
onEndReachedThreshold,
|
|
57
|
+
hideContent: onDenied.hideContent,
|
|
58
|
+
unvisible: onDenied.unvisible
|
|
59
|
+
});
|
|
60
|
+
if (onDenied.unvisible) return null;
|
|
61
|
+
return /*#__PURE__*/_react.default.createElement(_helpers.default.Provider, {
|
|
62
|
+
value: contextValues()
|
|
63
|
+
}, gridCols ? /*#__PURE__*/_react.default.createElement(_gridlayout.default, {
|
|
64
|
+
cols: gridCols
|
|
65
|
+
}, renderContent()) : renderContent());
|
|
66
|
+
};
|
|
67
|
+
var _default = exports.default = DefaultPanel;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IPanelHeaderProps } from './types.js';
|
|
2
|
+
import 'react';
|
|
3
|
+
import '../@types/PermissionAttr.js';
|
|
4
|
+
import '../internals/colorStyles.js';
|
|
5
|
+
import '../@types/Icon.js';
|
|
6
|
+
import '../icons/helper.js';
|
|
7
|
+
|
|
8
|
+
declare const PanelHeader: (props: IPanelHeaderProps) => JSX.Element;
|
|
9
|
+
|
|
10
|
+
export { PanelHeader as default };
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _icons = _interopRequireDefault(require("../icons"));
|
|
9
|
+
var _buttons = _interopRequireWildcard(require("../buttons"));
|
|
10
|
+
var _helpers = _interopRequireDefault(require("./helpers"));
|
|
11
|
+
const _excluded = ["titleIcon", "icon", "title", "children", "customClass", "headerColored", "styleForTitle", "customClassForTitle"];
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
14
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
15
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
16
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
17
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
|
|
18
|
+
const getIcon = (titleIcon, icon) => {
|
|
19
|
+
if (icon) {
|
|
20
|
+
return icon;
|
|
21
|
+
} else if (titleIcon) {
|
|
22
|
+
return /*#__PURE__*/_react.default.createElement(_icons.default, {
|
|
23
|
+
name: titleIcon,
|
|
24
|
+
color: "#000",
|
|
25
|
+
size: 16
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
return null;
|
|
29
|
+
};
|
|
30
|
+
const getClassName = _ref => {
|
|
31
|
+
let {
|
|
32
|
+
customClass,
|
|
33
|
+
headerColored = true
|
|
34
|
+
} = _ref;
|
|
35
|
+
let className = `panel-header ${customClass ?? ''}`;
|
|
36
|
+
if (!headerColored) className += ' -uncolored';
|
|
37
|
+
return className;
|
|
38
|
+
};
|
|
39
|
+
const PanelHeader = props => {
|
|
40
|
+
const {
|
|
41
|
+
titleIcon,
|
|
42
|
+
icon,
|
|
43
|
+
title,
|
|
44
|
+
children,
|
|
45
|
+
customClass,
|
|
46
|
+
headerColored,
|
|
47
|
+
styleForTitle,
|
|
48
|
+
customClassForTitle
|
|
49
|
+
} = props,
|
|
50
|
+
rest = _objectWithoutProperties(props, _excluded);
|
|
51
|
+
const {
|
|
52
|
+
toggleable,
|
|
53
|
+
handlerToggleable,
|
|
54
|
+
opened
|
|
55
|
+
} = (0, _react.useContext)(_helpers.default);
|
|
56
|
+
return /*#__PURE__*/_react.default.createElement("div", _extends({
|
|
57
|
+
className: getClassName(props)
|
|
58
|
+
}, rest), (icon || titleIcon) && /*#__PURE__*/_react.default.createElement("div", {
|
|
59
|
+
className: `${icon !== null || titleIcon !== null ? 'icon-left-panel' : ''}`
|
|
60
|
+
}, getIcon(titleIcon, icon)), title && /*#__PURE__*/_react.default.createElement("h1", {
|
|
61
|
+
className: `title ${customClassForTitle ?? ''}`,
|
|
62
|
+
style: styleForTitle
|
|
63
|
+
}, title), toggleable && /*#__PURE__*/_react.default.createElement(_buttons.ButtonContainer, {
|
|
64
|
+
position: "right"
|
|
65
|
+
}, /*#__PURE__*/_react.default.createElement(_buttons.default, {
|
|
66
|
+
boxShadow: false,
|
|
67
|
+
transparent: true,
|
|
68
|
+
onClick: () => {
|
|
69
|
+
handlerToggleable();
|
|
70
|
+
},
|
|
71
|
+
icon: /*#__PURE__*/_react.default.createElement(_icons.default, {
|
|
72
|
+
name: opened ? 'up' : 'down',
|
|
73
|
+
size: 16
|
|
74
|
+
})
|
|
75
|
+
})), children);
|
|
76
|
+
};
|
|
77
|
+
var _default = exports.default = PanelHeader;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IPanelProps } from './types.js';
|
|
2
|
+
import 'react';
|
|
3
|
+
import '../@types/PermissionAttr.js';
|
|
4
|
+
import '../internals/colorStyles.js';
|
|
5
|
+
import '../@types/Icon.js';
|
|
6
|
+
import '../icons/helper.js';
|
|
7
|
+
|
|
8
|
+
declare const InfoPanel: (props: IPanelProps) => JSX.Element;
|
|
9
|
+
|
|
10
|
+
export { InfoPanel as default };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _Default = _interopRequireDefault(require("./Default"));
|
|
9
|
+
var _colorStyles = _interopRequireDefault(require("../internals/colorStyles"));
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
12
|
+
const InfoPanel = props => /*#__PURE__*/_react.default.createElement(_Default.default, _extends({}, props, {
|
|
13
|
+
colorStyle: _colorStyles.default.INFO
|
|
14
|
+
}));
|
|
15
|
+
var _default = exports.default = InfoPanel;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IPanelProps } from './types.js';
|
|
2
|
+
import 'react';
|
|
3
|
+
import '../@types/PermissionAttr.js';
|
|
4
|
+
import '../internals/colorStyles.js';
|
|
5
|
+
import '../@types/Icon.js';
|
|
6
|
+
import '../icons/helper.js';
|
|
7
|
+
|
|
8
|
+
declare const PrimaryPanel: (props: IPanelProps) => JSX.Element;
|
|
9
|
+
|
|
10
|
+
export { PrimaryPanel as default };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _Default = _interopRequireDefault(require("./Default"));
|
|
9
|
+
var _colorStyles = _interopRequireDefault(require("../internals/colorStyles"));
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
12
|
+
const PrimaryPanel = props => /*#__PURE__*/_react.default.createElement(_Default.default, _extends({}, props, {
|
|
13
|
+
colorStyle: _colorStyles.default.PRIMARY
|
|
14
|
+
}));
|
|
15
|
+
var _default = exports.default = PrimaryPanel;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IPanelProps } from './types.js';
|
|
2
|
+
import 'react';
|
|
3
|
+
import '../@types/PermissionAttr.js';
|
|
4
|
+
import '../internals/colorStyles.js';
|
|
5
|
+
import '../@types/Icon.js';
|
|
6
|
+
import '../icons/helper.js';
|
|
7
|
+
|
|
8
|
+
declare const SuccessPanel: (props: IPanelProps) => JSX.Element;
|
|
9
|
+
|
|
10
|
+
export { SuccessPanel as default };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _Default = _interopRequireDefault(require("./Default"));
|
|
9
|
+
var _colorStyles = _interopRequireDefault(require("../internals/colorStyles"));
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
12
|
+
const SuccessPanel = props => /*#__PURE__*/_react.default.createElement(_Default.default, _extends({}, props, {
|
|
13
|
+
colorStyle: _colorStyles.default.SUCCESS
|
|
14
|
+
}));
|
|
15
|
+
var _default = exports.default = SuccessPanel;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IPanelProps } from './types.js';
|
|
2
|
+
import 'react';
|
|
3
|
+
import '../@types/PermissionAttr.js';
|
|
4
|
+
import '../internals/colorStyles.js';
|
|
5
|
+
import '../@types/Icon.js';
|
|
6
|
+
import '../icons/helper.js';
|
|
7
|
+
|
|
8
|
+
declare const ToolBar: ({ children }: IPanelProps) => JSX.Element;
|
|
9
|
+
|
|
10
|
+
export { ToolBar as default };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _toolbar = _interopRequireDefault(require("../toolbar"));
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
+
const ToolBar = _ref => {
|
|
11
|
+
let {
|
|
12
|
+
children
|
|
13
|
+
} = _ref;
|
|
14
|
+
return /*#__PURE__*/_react.default.createElement(_toolbar.default, {
|
|
15
|
+
style: {
|
|
16
|
+
width: 'auto',
|
|
17
|
+
backgroundColor: 'transparent',
|
|
18
|
+
border: 0
|
|
19
|
+
}
|
|
20
|
+
}, children);
|
|
21
|
+
};
|
|
22
|
+
var _default = exports.default = ToolBar;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IPanelProps } from './types.js';
|
|
2
|
+
import 'react';
|
|
3
|
+
import '../@types/PermissionAttr.js';
|
|
4
|
+
import '../internals/colorStyles.js';
|
|
5
|
+
import '../@types/Icon.js';
|
|
6
|
+
import '../icons/helper.js';
|
|
7
|
+
|
|
8
|
+
declare const WarningPanel: (props: IPanelProps) => JSX.Element;
|
|
9
|
+
|
|
10
|
+
export { WarningPanel as default };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _Default = _interopRequireDefault(require("./Default"));
|
|
9
|
+
var _colorStyles = _interopRequireDefault(require("../internals/colorStyles"));
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
12
|
+
const WarningPanel = props => /*#__PURE__*/_react.default.createElement(_Default.default, _extends({}, props, {
|
|
13
|
+
colorStyle: _colorStyles.default.WARNING
|
|
14
|
+
}));
|
|
15
|
+
var _default = exports.default = WarningPanel;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { ContextProps } from './types.js';
|
|
3
|
+
import '../@types/PermissionAttr.js';
|
|
4
|
+
import '../internals/colorStyles.js';
|
|
5
|
+
import '../@types/Icon.js';
|
|
6
|
+
import '../icons/helper.js';
|
|
7
|
+
|
|
8
|
+
declare function getCurrentThreshold(scrollableElement: HTMLDivElement, scrollThreshold: number): number;
|
|
9
|
+
declare const PanelContext: React__default.Context<ContextProps>;
|
|
10
|
+
|
|
11
|
+
export { PanelContext as default, getCurrentThreshold };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
exports.getCurrentThreshold = getCurrentThreshold;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
+
function getCurrentThreshold(scrollableElement, scrollThreshold) {
|
|
11
|
+
const MIN_THRESHOLD = 0;
|
|
12
|
+
const MAX_THRESHOLD = 1;
|
|
13
|
+
if (scrollThreshold < MIN_THRESHOLD) return MIN_THRESHOLD;
|
|
14
|
+
if (scrollThreshold > MAX_THRESHOLD) return MAX_THRESHOLD;
|
|
15
|
+
const {
|
|
16
|
+
scrollHeight,
|
|
17
|
+
clientHeight
|
|
18
|
+
} = scrollableElement;
|
|
19
|
+
const offsetHeight = scrollHeight - clientHeight;
|
|
20
|
+
const calculatedScrollThreshold = Math.round(scrollHeight * scrollThreshold);
|
|
21
|
+
const maxScrollThreshold = Math.round(offsetHeight - offsetHeight * 0.3);
|
|
22
|
+
return Math.min(calculatedScrollThreshold, maxScrollThreshold);
|
|
23
|
+
}
|
|
24
|
+
const PanelContext = /*#__PURE__*/_react.default.createContext({});
|
|
25
|
+
var _default = exports.default = PanelContext;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import DefaultPanel from './Default.js';
|
|
2
|
+
export { default as PrimaryPanel } from './PrimaryPanel.js';
|
|
3
|
+
export { default as DangerPanel } from './DangerPanel.js';
|
|
4
|
+
export { default as WarningPanel } from './WarningPanel.js';
|
|
5
|
+
export { default as SuccessPanel } from './SuccessPanel.js';
|
|
6
|
+
export { default as InfoPanel } from './InfoPanel.js';
|
|
7
|
+
export { default as PanelHeader } from './Header.js';
|
|
8
|
+
export { default as PanelContent } from './Content.js';
|
|
9
|
+
import './types.js';
|
|
10
|
+
import 'react';
|
|
11
|
+
import '../@types/PermissionAttr.js';
|
|
12
|
+
import '../internals/colorStyles.js';
|
|
13
|
+
import '../@types/Icon.js';
|
|
14
|
+
import '../icons/helper.js';
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
export { DefaultPanel as default };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "DangerPanel", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _DangerPanel.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "InfoPanel", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _InfoPanel.default;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "PanelContent", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () {
|
|
21
|
+
return _Content.default;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "PanelHeader", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () {
|
|
27
|
+
return _Header.default;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(exports, "PrimaryPanel", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function () {
|
|
33
|
+
return _PrimaryPanel.default;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(exports, "SuccessPanel", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function () {
|
|
39
|
+
return _SuccessPanel.default;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
Object.defineProperty(exports, "WarningPanel", {
|
|
43
|
+
enumerable: true,
|
|
44
|
+
get: function () {
|
|
45
|
+
return _WarningPanel.default;
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
exports.default = void 0;
|
|
49
|
+
var _Default = _interopRequireDefault(require("./Default"));
|
|
50
|
+
var _PrimaryPanel = _interopRequireDefault(require("./PrimaryPanel"));
|
|
51
|
+
var _DangerPanel = _interopRequireDefault(require("./DangerPanel"));
|
|
52
|
+
var _WarningPanel = _interopRequireDefault(require("./WarningPanel"));
|
|
53
|
+
var _SuccessPanel = _interopRequireDefault(require("./SuccessPanel"));
|
|
54
|
+
var _InfoPanel = _interopRequireDefault(require("./InfoPanel"));
|
|
55
|
+
var _Header = _interopRequireDefault(require("./Header"));
|
|
56
|
+
var _Content = _interopRequireDefault(require("./Content"));
|
|
57
|
+
require("../assets/styles/panel.scss");
|
|
58
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
59
|
+
var _default = exports.default = _Default.default;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode, ReactElement } from 'react';
|
|
2
|
+
import { PermissionAttr } from '../@types/PermissionAttr.js';
|
|
3
|
+
import ColorStyles from '../internals/colorStyles.js';
|
|
4
|
+
import { IconNames } from '../@types/Icon.js';
|
|
5
|
+
import '../icons/helper.js';
|
|
6
|
+
|
|
7
|
+
type Func = () => void;
|
|
8
|
+
type AsyncFunc = () => Promise<void>;
|
|
9
|
+
interface IPanelProps extends Omit<ComponentPropsWithoutRef<'div'>, 'className'> {
|
|
10
|
+
customClass?: string;
|
|
11
|
+
startOpened?: boolean;
|
|
12
|
+
toggleable?: boolean;
|
|
13
|
+
children?: ReactNode;
|
|
14
|
+
colorStyle?: typeof ColorStyles | string;
|
|
15
|
+
gridCols?: string;
|
|
16
|
+
title?: string;
|
|
17
|
+
onEndReached?: Func | AsyncFunc;
|
|
18
|
+
onEndReachedThreshold?: number;
|
|
19
|
+
permissionAttr?: PermissionAttr | PermissionAttr[];
|
|
20
|
+
}
|
|
21
|
+
interface IPanelContentProps extends Omit<ComponentPropsWithoutRef<'div'>, 'className'> {
|
|
22
|
+
customClass?: string;
|
|
23
|
+
}
|
|
24
|
+
interface IPanelHeaderProps extends Omit<ComponentPropsWithoutRef<'div'>, 'className'> {
|
|
25
|
+
title?: string;
|
|
26
|
+
icon?: ReactElement;
|
|
27
|
+
titleIcon?: IconNames;
|
|
28
|
+
customClass?: string;
|
|
29
|
+
styleForTitle?: object;
|
|
30
|
+
customClassForTitle?: string;
|
|
31
|
+
headerColored?: boolean;
|
|
32
|
+
}
|
|
33
|
+
type ContextProps = {
|
|
34
|
+
toggleable: boolean;
|
|
35
|
+
handlerToggleable: () => void;
|
|
36
|
+
opened: boolean;
|
|
37
|
+
hideContent: boolean;
|
|
38
|
+
onEndReached?: Func | AsyncFunc;
|
|
39
|
+
onEndReachedThreshold: number;
|
|
40
|
+
};
|
|
41
|
+
interface IParameterFunction {
|
|
42
|
+
props: any;
|
|
43
|
+
propName: string | number;
|
|
44
|
+
componentName: string;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export { AsyncFunc, ContextProps, Func, IPanelContentProps, IPanelHeaderProps, IPanelProps, IParameterFunction };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { PermissionAttr } from './@types/PermissionAttr.js';
|
|
2
|
+
|
|
3
|
+
declare const checkPermissionFromStorage: (permissionAttr?: PermissionAttr | PermissionAttr[]) => boolean;
|
|
4
|
+
declare const actionsOnPermissionDenied: (options: string[], permissionAttr?: PermissionAttr | PermissionAttr[]) => {
|
|
5
|
+
[option: string]: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare const OPTIONS_ON_DENIED: {
|
|
8
|
+
disabled: string;
|
|
9
|
+
unvisible: string;
|
|
10
|
+
readOnly: string;
|
|
11
|
+
hideContent: string;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export { OPTIONS_ON_DENIED, actionsOnPermissionDenied, checkPermissionFromStorage as default };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.actionsOnPermissionDenied = exports.OPTIONS_ON_DENIED = void 0;
|
|
7
|
+
const getModuleFeaturesFromStorage = module => {
|
|
8
|
+
if (!module) return [];
|
|
9
|
+
const permissionsStorage = JSON.parse(sessionStorage.getItem('permissionsStorage') || '{}');
|
|
10
|
+
return permissionsStorage && permissionsStorage[module] ? permissionsStorage[module] : [];
|
|
11
|
+
};
|
|
12
|
+
const checkOperationPermitted = (featureOperations, operationCode) => featureOperations.some(o => o.codigo === operationCode);
|
|
13
|
+
const scanFeatures = (moduleFeatures, featureCode, operationCode) => {
|
|
14
|
+
for (let index = 0; index < moduleFeatures.length; index += 1) {
|
|
15
|
+
const moduleFeature = moduleFeatures[index];
|
|
16
|
+
if (moduleFeature.codigo === featureCode && moduleFeature.permissoes.length > 0) {
|
|
17
|
+
return checkOperationPermitted(moduleFeature.permissoes, operationCode);
|
|
18
|
+
} else if (moduleFeature.itens.length > 0) {
|
|
19
|
+
const result = scanFeatures(moduleFeature.itens, featureCode, operationCode);
|
|
20
|
+
if (result) return true;
|
|
21
|
+
if (index === moduleFeatures.length - 1) return false;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
return false;
|
|
25
|
+
};
|
|
26
|
+
const checkPermissionFromStorage = permissionAttr => {
|
|
27
|
+
if (!permissionAttr) return true;
|
|
28
|
+
const permissionsAttr = !Array.isArray(permissionAttr) ? [permissionAttr] : permissionAttr;
|
|
29
|
+
for (let i = 0; i < permissionsAttr.length; i += 1) {
|
|
30
|
+
const {
|
|
31
|
+
module,
|
|
32
|
+
feature,
|
|
33
|
+
operation
|
|
34
|
+
} = permissionsAttr[i];
|
|
35
|
+
const permission = scanFeatures(getModuleFeaturesFromStorage(module), feature, operation);
|
|
36
|
+
if (permission) return true;
|
|
37
|
+
}
|
|
38
|
+
return false;
|
|
39
|
+
};
|
|
40
|
+
const actionsOnPermissionDenied = (options, permissionAttr) => {
|
|
41
|
+
const hasPermission = checkPermissionFromStorage(permissionAttr);
|
|
42
|
+
const permissionsAttr = permissionAttr && !Array.isArray(permissionAttr) ? [permissionAttr] : permissionAttr;
|
|
43
|
+
if (permissionsAttr && permissionsAttr[0].onDenied && !options.includes(permissionsAttr[0].onDenied)) {
|
|
44
|
+
throw new Error('in property onDenied from permissionAttr it`s not a valid option. Look for valid options in the component documentation.');
|
|
45
|
+
}
|
|
46
|
+
const result = {};
|
|
47
|
+
options.forEach(option => {
|
|
48
|
+
result[option] = hasPermission ? false : option === permissionsAttr?.[0].onDenied;
|
|
49
|
+
});
|
|
50
|
+
return result;
|
|
51
|
+
};
|
|
52
|
+
exports.actionsOnPermissionDenied = actionsOnPermissionDenied;
|
|
53
|
+
const OPTIONS_ON_DENIED = exports.OPTIONS_ON_DENIED = {
|
|
54
|
+
disabled: 'disabled',
|
|
55
|
+
unvisible: 'unvisible',
|
|
56
|
+
readOnly: 'readOnly',
|
|
57
|
+
hideContent: 'hideContent'
|
|
58
|
+
};
|
|
59
|
+
var _default = exports.default = checkPermissionFromStorage;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { PopoverTextProps } from './types.js';
|
|
3
|
+
import '../@types/Position.js';
|
|
4
|
+
import '../@types/SizePixels.js';
|
|
5
|
+
import '../@types/Icon.js';
|
|
6
|
+
import '../icons/helper.js';
|
|
7
|
+
|
|
8
|
+
declare const PopoverText: React__default.ForwardRefExoticComponent<PopoverTextProps & React__default.RefAttributes<HTMLParagraphElement>>;
|
|
9
|
+
|
|
10
|
+
export { PopoverText as default };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
9
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
10
|
+
const PopoverText = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
11
|
+
let {
|
|
12
|
+
children
|
|
13
|
+
} = _ref;
|
|
14
|
+
return /*#__PURE__*/_react.default.createElement("p", {
|
|
15
|
+
className: "text",
|
|
16
|
+
ref: ref
|
|
17
|
+
}, children);
|
|
18
|
+
});
|
|
19
|
+
PopoverText.displayName = 'PopoverText';
|
|
20
|
+
var _default = exports.default = PopoverText;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PopoverTitleProps } from './types.js';
|
|
2
|
+
import 'react';
|
|
3
|
+
import '../@types/Position.js';
|
|
4
|
+
import '../@types/SizePixels.js';
|
|
5
|
+
import '../@types/Icon.js';
|
|
6
|
+
import '../icons/helper.js';
|
|
7
|
+
|
|
8
|
+
declare const PopoverTitle: ({ children }: PopoverTitleProps) => JSX.Element;
|
|
9
|
+
|
|
10
|
+
export { PopoverTitle as default };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
|
+
const PopoverTitle = _ref => {
|
|
10
|
+
let {
|
|
11
|
+
children
|
|
12
|
+
} = _ref;
|
|
13
|
+
return /*#__PURE__*/_react.default.createElement("h1", {
|
|
14
|
+
className: "title"
|
|
15
|
+
}, children);
|
|
16
|
+
};
|
|
17
|
+
var _default = exports.default = PopoverTitle;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export { default as PopoverText } from './PopoverText.js';
|
|
2
|
+
export { default as PopoverTitle } from './PopoverTitle.js';
|
|
3
|
+
import { IPopoverProps } from './types.js';
|
|
4
|
+
import 'react';
|
|
5
|
+
import '../@types/Position.js';
|
|
6
|
+
import '../@types/SizePixels.js';
|
|
7
|
+
import '../@types/Icon.js';
|
|
8
|
+
import '../icons/helper.js';
|
|
9
|
+
|
|
10
|
+
declare const _default: {
|
|
11
|
+
(props: IPopoverProps): JSX.Element;
|
|
12
|
+
displayName: string;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export { _default as default };
|