linear-react-components-ui 0.4.77-beta.8 → 1.0.0-rc.1
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/.eslintrc.json +99 -0
- package/.gitlab-ci.yml +19 -0
- package/.husky/pre-push +4 -0
- package/.vscode/launch.json +15 -0
- package/.vscode/settings.json +5 -2
- package/babel.config.json +11 -0
- package/config/getHttpsConfig.js +56 -0
- package/config/paths.js +140 -0
- package/config/webpackDevServer.config.js +128 -0
- package/jest.config.js +3 -3
- package/lib/@types/Align.d.ts +3 -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/Period.d.ts +6 -0
- package/lib/@types/Period.js +5 -0
- package/lib/@types/PermissionAttr.d.ts +14 -0
- package/lib/@types/PointerEvents.d.ts +3 -0
- package/lib/@types/Position.d.ts +3 -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/SizePixels.d.ts +3 -0
- package/lib/@types/StorageMock.d.ts +5 -0
- package/lib/@types/StorageMock.js +5 -0
- package/lib/alerts/AlertContainer.d.ts +16 -0
- package/lib/alerts/AlertContainer.js +16 -21
- package/lib/alerts/AlertProvider.d.ts +7 -0
- package/lib/alerts/AlertProvider.js +13 -18
- package/lib/alerts/BaseAlert.d.ts +7 -0
- package/lib/alerts/BaseAlert.js +8 -11
- package/lib/alerts/Message.d.ts +7 -0
- package/lib/alerts/Message.js +41 -50
- package/lib/alerts/helpers.d.ts +7 -0
- package/lib/alerts/helpers.js +4 -7
- package/lib/alerts/index.d.ts +6 -0
- package/lib/alerts/index.js +5 -5
- package/lib/alerts/types.d.ts +48 -0
- package/lib/alerts/types.js +5 -0
- package/lib/alerts/withAlert.d.ts +7 -0
- package/lib/alerts/withAlert.js +8 -8
- package/lib/assets/styles/commons.scss +0 -10
- package/lib/assets/styles/dropdown.scss +0 -1
- package/lib/assets/styles/list.scss +0 -8
- package/lib/assets/styles/sidenav.scss +42 -93
- package/lib/assets/styles/table.scss +7 -2
- package/lib/avatar/index.d.ts +12 -0
- package/lib/avatar/index.js +21 -66
- 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 +11 -27
- package/lib/badge/types.d.ts +13 -0
- package/lib/badge/types.js +5 -0
- package/lib/buttons/ActivateButton.d.ts +9 -0
- package/lib/buttons/ActivateButton.js +6 -6
- package/lib/buttons/AddButton.d.ts +9 -0
- package/lib/buttons/AddButton.js +6 -6
- package/lib/buttons/Button.d.ts +12 -0
- package/lib/buttons/Button.js +22 -14
- package/lib/buttons/ButtonGroups.d.ts +8 -0
- package/lib/buttons/ButtonGroups.js +4 -9
- package/lib/buttons/CancelButton.d.ts +9 -0
- package/lib/buttons/CancelButton.js +19 -6
- package/lib/buttons/DangerButton.d.ts +9 -0
- package/lib/buttons/DangerButton.js +16 -21
- package/lib/buttons/DefaultButton.d.ts +12 -0
- package/lib/buttons/DefaultButton.js +73 -135
- package/lib/buttons/DestroyButton.d.ts +9 -0
- package/lib/buttons/DestroyButton.js +16 -7
- package/lib/buttons/EditButton.d.ts +9 -0
- package/lib/buttons/EditButton.js +6 -6
- package/lib/buttons/InactivateButton.d.ts +9 -0
- package/lib/buttons/InactivateButton.js +6 -6
- package/lib/buttons/InfoButton.d.ts +9 -0
- package/lib/buttons/InfoButton.js +16 -21
- package/lib/buttons/PrimaryButton.d.ts +9 -0
- package/lib/buttons/PrimaryButton.js +16 -21
- package/lib/buttons/RestoreButton.d.ts +9 -0
- package/lib/buttons/RestoreButton.js +6 -6
- package/lib/buttons/SaveButton.d.ts +9 -0
- package/lib/buttons/SaveButton.js +18 -5
- package/lib/buttons/SuccessButton.d.ts +9 -0
- package/lib/buttons/SuccessButton.js +15 -20
- package/lib/buttons/WarningButton.d.ts +9 -0
- package/lib/buttons/WarningButton.js +15 -20
- package/lib/buttons/button_container/index.d.ts +12 -0
- package/lib/buttons/button_container/index.js +10 -23
- package/lib/buttons/index.d.ts +21 -0
- package/lib/buttons/index.js +18 -18
- package/lib/buttons/split_button/index.d.ts +9 -0
- package/lib/buttons/split_button/index.js +18 -35
- package/lib/buttons/types.d.ts +44 -0
- package/lib/calendar/DangerCalendar.d.ts +7 -0
- package/lib/calendar/DangerCalendar.js +15 -6
- package/lib/calendar/InfoCalendar.d.ts +7 -0
- package/lib/calendar/InfoCalendar.js +15 -6
- package/lib/calendar/PrimaryCalendar.d.ts +7 -0
- package/lib/calendar/PrimaryCalendar.js +15 -6
- package/lib/calendar/SuccessCalendar.d.ts +7 -0
- package/lib/calendar/SuccessCalendar.js +15 -6
- package/lib/calendar/WarningCalendar.d.ts +7 -0
- package/lib/calendar/WarningCalendar.js +15 -6
- package/lib/calendar/base/Day.d.ts +7 -0
- package/lib/calendar/base/Day.js +8 -14
- package/lib/calendar/base/Month.d.ts +7 -0
- package/lib/calendar/base/Month.js +5 -10
- package/lib/calendar/base/Week.d.ts +7 -0
- package/lib/calendar/base/Week.js +5 -11
- package/lib/calendar/base/helpers.d.ts +62 -0
- package/lib/calendar/base/helpers.js +9 -9
- package/lib/calendar/base/index.d.ts +7 -0
- package/lib/calendar/base/index.js +44 -47
- package/lib/calendar/index.d.ts +10 -0
- package/lib/calendar/index.js +9 -9
- package/lib/calendar/types.d.ts +25 -0
- package/lib/calendar/types.js +5 -0
- package/lib/checkbox/Label.d.ts +11 -0
- package/lib/checkbox/Label.js +7 -17
- package/lib/checkbox/index.d.ts +13 -0
- package/lib/checkbox/index.js +52 -89
- package/lib/checkbox/types.d.ts +42 -0
- package/lib/dialog/Alert.d.ts +6 -0
- package/lib/dialog/Alert.js +9 -14
- package/lib/dialog/Custom.d.ts +6 -0
- package/lib/dialog/Custom.js +26 -34
- package/lib/dialog/Error.d.ts +6 -0
- package/lib/dialog/Error.js +7 -12
- package/lib/dialog/Information.d.ts +6 -0
- package/lib/dialog/Information.js +7 -12
- package/lib/dialog/Question.d.ts +6 -0
- package/lib/dialog/Question.js +14 -25
- package/lib/dialog/Warning.d.ts +6 -0
- package/lib/dialog/Warning.js +7 -12
- package/lib/dialog/base/Content.d.ts +6 -0
- package/lib/dialog/base/Content.js +4 -13
- package/lib/dialog/base/Footer.d.ts +6 -0
- package/lib/dialog/base/Footer.js +6 -12
- package/lib/dialog/base/Header.d.ts +6 -0
- package/lib/dialog/base/Header.js +17 -31
- package/lib/dialog/base/index.d.ts +6 -0
- package/lib/dialog/base/index.js +13 -35
- package/lib/dialog/base/style.js +2 -2
- package/lib/dialog/form/index.d.ts +6 -0
- package/lib/dialog/form/index.js +34 -44
- package/lib/dialog/index.d.ts +10 -0
- package/lib/dialog/index.js +10 -10
- package/lib/dialog/types.d.ts +68 -0
- package/lib/dialog/types.js +5 -0
- package/lib/drawer/Content.d.ts +7 -0
- package/lib/drawer/Content.js +7 -16
- package/lib/drawer/Drawer.d.ts +7 -0
- package/lib/drawer/Drawer.js +36 -57
- package/lib/drawer/Header.d.ts +7 -0
- package/lib/drawer/Header.js +28 -47
- package/lib/drawer/helpers.d.ts +7 -0
- package/lib/drawer/helpers.js +4 -4
- package/lib/drawer/index.d.ts +9 -0
- package/lib/drawer/index.js +6 -6
- package/lib/drawer/types.d.ts +34 -0
- package/lib/drawer/types.js +5 -0
- package/lib/dropdown/Popup.d.ts +6 -0
- package/lib/dropdown/Popup.js +36 -20
- package/lib/dropdown/helper.d.ts +4 -0
- package/lib/dropdown/helper.js +2 -2
- package/lib/dropdown/types.d.ts +43 -0
- package/lib/dropdown/withDropdown.d.ts +10 -0
- package/lib/dropdown/withDropdown.js +22 -47
- package/lib/fieldset/index.d.ts +8 -0
- package/lib/fieldset/index.js +19 -50
- package/lib/fieldset/types.d.ts +28 -0
- package/lib/fieldset/types.js +5 -0
- package/lib/form/Field.d.ts +6 -0
- package/lib/form/Field.js +22 -49
- package/lib/form/FieldArray.d.ts +6 -0
- package/lib/form/FieldArray.js +27 -57
- package/lib/form/FieldNumber.d.ts +6 -0
- package/lib/form/FieldNumber.js +10 -32
- package/lib/form/FieldPeriod.d.ts +6 -0
- package/lib/form/FieldPeriod.js +29 -51
- package/lib/form/helpers.d.ts +11 -0
- package/lib/form/helpers.js +11 -17
- package/lib/form/index.d.ts +9 -0
- package/lib/form/index.js +68 -103
- package/lib/form/types.d.ts +167 -0
- package/lib/form/types.js +5 -0
- package/lib/form/withFieldHOC.d.ts +6 -0
- package/lib/form/withFieldHOC.js +45 -125
- package/lib/form/withFormSecurity.d.ts +7 -0
- package/lib/form/withFormSecurity.js +20 -41
- package/lib/gridlayout/GridCol.d.ts +6 -0
- package/lib/gridlayout/GridCol.js +7 -22
- package/lib/gridlayout/GridRow.d.ts +6 -0
- package/lib/gridlayout/GridRow.js +8 -28
- package/lib/gridlayout/index.d.ts +5 -0
- package/lib/gridlayout/index.js +5 -5
- package/lib/gridlayout/types.d.ts +20 -0
- package/lib/gridlayout/types.js +5 -0
- package/lib/icons/helper.d.ts +560 -0
- package/lib/icons/helper.js +560 -563
- package/lib/icons/index.d.ts +8 -0
- package/lib/icons/index.js +28 -45
- package/lib/icons/types.d.ts +28 -0
- package/lib/index.d.ts +50 -0
- package/lib/index.js +140 -14
- package/lib/inputs/base/InputTextBase.d.ts +8 -0
- package/lib/inputs/base/InputTextBase.js +54 -163
- package/lib/inputs/base/helpers.d.ts +14 -0
- package/lib/inputs/base/helpers.js +9 -9
- package/lib/inputs/base/types.d.ts +68 -0
- package/lib/inputs/base/types.js +5 -0
- package/lib/inputs/color/index.d.ts +7 -0
- package/lib/inputs/color/index.js +40 -38
- package/lib/inputs/color/types.d.ts +14 -0
- package/lib/inputs/color/types.js +5 -0
- package/lib/inputs/date/Dialog.d.ts +10 -0
- package/lib/inputs/date/Dialog.js +4 -11
- package/lib/inputs/date/Dropdown.d.ts +10 -0
- package/lib/inputs/date/Dropdown.js +21 -73
- package/lib/inputs/date/helpers.d.ts +14 -0
- package/lib/inputs/date/helpers.js +4 -4
- package/lib/inputs/date/index.d.ts +10 -0
- package/lib/inputs/date/index.js +259 -415
- package/lib/inputs/date/types.d.ts +53 -0
- package/lib/inputs/date/types.js +5 -0
- package/lib/inputs/inputHOC.d.ts +11 -0
- package/lib/inputs/inputHOC.js +48 -100
- package/lib/inputs/mask/BaseMask.d.ts +12 -0
- package/lib/inputs/mask/BaseMask.js +6 -20
- package/lib/inputs/mask/Cnpj.d.ts +12 -0
- package/lib/inputs/mask/Cnpj.js +17 -24
- package/lib/inputs/mask/Cpf.d.ts +12 -0
- package/lib/inputs/mask/Cpf.js +18 -26
- package/lib/inputs/mask/Phone.d.ts +9 -0
- package/lib/inputs/mask/Phone.js +5 -13
- package/lib/inputs/mask/ZipCode.d.ts +9 -0
- package/lib/inputs/mask/ZipCode.js +5 -5
- package/lib/inputs/mask/helpers.d.ts +14 -0
- package/lib/inputs/mask/helpers.js +21 -36
- package/lib/inputs/mask/imaskHOC.d.ts +14 -0
- package/lib/inputs/mask/imaskHOC.js +188 -257
- package/lib/inputs/mask/index.d.ts +11 -0
- package/lib/inputs/mask/index.js +8 -8
- package/lib/inputs/mask/types.d.ts +66 -0
- package/lib/inputs/mask/types.js +5 -0
- package/lib/inputs/multiSelect/ActionButtons.d.ts +10 -0
- package/lib/inputs/multiSelect/ActionButtons.js +9 -21
- package/lib/inputs/multiSelect/Dropdown.d.ts +10 -0
- package/lib/inputs/multiSelect/Dropdown.js +60 -87
- package/lib/inputs/multiSelect/helper.d.ts +9 -0
- package/lib/inputs/multiSelect/helper.js +2 -2
- package/lib/inputs/multiSelect/index.d.ts +10 -0
- package/lib/inputs/multiSelect/index.js +67 -90
- package/lib/inputs/multiSelect/types.d.ts +49 -0
- package/lib/inputs/multiSelect/types.js +5 -0
- package/lib/inputs/number/BaseNumber.d.ts +9 -0
- package/lib/inputs/number/BaseNumber.js +15 -27
- package/lib/inputs/number/Currency.d.ts +9 -0
- package/lib/inputs/number/Currency.js +8 -18
- package/lib/inputs/number/Decimal.d.ts +9 -0
- package/lib/inputs/number/Decimal.js +4 -4
- package/lib/inputs/number/format_number.d.ts +4 -0
- package/lib/inputs/number/index.d.ts +11 -0
- package/lib/inputs/number/index.js +14 -20
- package/lib/inputs/number/types.d.ts +27 -0
- package/lib/inputs/number/types.js +5 -0
- package/lib/inputs/period/Dialog.d.ts +11 -0
- package/lib/inputs/period/Dialog.js +4 -11
- package/lib/inputs/period/Dropdown.d.ts +11 -0
- package/lib/inputs/period/Dropdown.js +19 -73
- package/lib/inputs/period/PeriodList.d.ts +11 -0
- package/lib/inputs/period/PeriodList.js +12 -25
- package/lib/inputs/period/helper.d.ts +19 -0
- package/lib/inputs/period/helper.js +33 -74
- package/lib/inputs/period/index.d.ts +11 -0
- package/lib/inputs/period/index.js +136 -186
- package/lib/inputs/period/types.d.ts +58 -0
- package/lib/inputs/period/types.js +5 -0
- package/lib/inputs/search/index.d.ts +11 -0
- package/lib/inputs/search/index.js +133 -265
- package/lib/inputs/select/ActionButtons.d.ts +11 -0
- package/lib/inputs/select/ActionButtons.js +19 -25
- package/lib/inputs/select/Dropdown.d.ts +11 -0
- package/lib/inputs/select/Dropdown.js +42 -75
- package/lib/inputs/select/helper.d.ts +25 -0
- package/lib/inputs/select/helper.js +18 -14
- package/lib/inputs/select/index.d.ts +10 -0
- package/lib/inputs/select/index.js +15 -16
- package/lib/inputs/select/multiple/Selecteds.d.ts +10 -0
- package/lib/inputs/select/multiple/Selecteds.js +9 -17
- package/lib/inputs/select/multiple/index.d.ts +10 -0
- package/lib/inputs/select/multiple/index.js +293 -418
- package/lib/inputs/select/simple/index.d.ts +10 -0
- package/lib/inputs/select/simple/index.js +310 -463
- package/lib/inputs/select/types.d.ts +97 -0
- package/lib/inputs/select/types.js +5 -0
- package/lib/inputs/text/index.d.ts +9 -0
- package/lib/inputs/text/index.js +5 -4
- package/lib/inputs/text/types.d.ts +22 -0
- package/lib/inputs/text/types.js +5 -0
- package/lib/inputs/textarea/index.d.ts +5 -0
- package/lib/inputs/textarea/index.js +9 -19
- package/lib/inputs/textarea/types.d.ts +8 -0
- package/lib/inputs/textarea/types.js +5 -0
- package/lib/inputs/types.d.ts +146 -0
- package/lib/inputs/types.js +5 -0
- package/lib/internals/colorStyles.d.ts +9 -0
- package/lib/internals/colorStyles.js +2 -2
- package/lib/internals/constants.d.ts +11 -0
- package/lib/internals/types.d.ts +21 -0
- package/lib/internals/withTooltip.d.ts +11 -0
- package/lib/internals/withTooltip.js +32 -40
- package/lib/labelMessages/index.d.ts +7 -0
- package/lib/labelMessages/index.js +34 -52
- package/lib/labelMessages/types.d.ts +18 -0
- package/lib/labels/DangerLabel.d.ts +9 -0
- package/lib/labels/DangerLabel.js +16 -7
- package/lib/labels/DefaultLabel.d.ts +12 -0
- package/lib/labels/DefaultLabel.js +31 -63
- package/lib/labels/InfoLabel.d.ts +9 -0
- package/lib/labels/InfoLabel.js +16 -7
- package/lib/labels/PrimaryLabel.d.ts +9 -0
- package/lib/labels/PrimaryLabel.js +16 -7
- package/lib/labels/SuccessLabel.d.ts +9 -0
- package/lib/labels/SuccessLabel.js +16 -7
- package/lib/labels/WarningLabel.d.ts +9 -0
- package/lib/labels/WarningLabel.js +16 -7
- package/lib/labels/index.d.ts +13 -0
- package/lib/labels/index.js +10 -10
- package/lib/labels/label_container/index.d.ts +12 -0
- package/lib/labels/label_container/index.js +7 -17
- package/lib/labels/types.d.ts +24 -0
- package/lib/labels/types.js +5 -0
- package/lib/list/Header.d.ts +7 -0
- package/lib/list/Header.js +5 -18
- package/lib/list/Item.d.ts +7 -0
- package/lib/list/Item.js +39 -77
- package/lib/list/Separator.d.ts +3 -0
- package/lib/list/Separator.js +4 -4
- package/lib/list/helpers.d.ts +12 -0
- package/lib/list/helpers.js +2 -2
- package/lib/list/index.d.ts +10 -0
- package/lib/list/index.js +47 -66
- package/lib/list/types.d.ts +64 -0
- package/lib/list/types.js +5 -0
- package/lib/menus/float/MenuItem.d.ts +7 -0
- package/lib/menus/float/MenuItem.js +17 -37
- package/lib/menus/float/helpers.d.ts +7 -0
- package/lib/menus/float/helpers.js +4 -4
- package/lib/menus/float/index.d.ts +8 -0
- package/lib/menus/float/index.js +17 -37
- package/lib/menus/float/types.d.ts +27 -0
- package/lib/menus/float/types.js +5 -0
- package/lib/menus/index.d.ts +6 -0
- package/lib/menus/index.js +4 -4
- package/lib/menus/sidenav/ExpandMenu.d.ts +10 -0
- package/lib/menus/sidenav/ExpandMenu.js +6 -18
- package/lib/menus/sidenav/MenuLink.d.ts +13 -0
- package/lib/menus/sidenav/MenuLink.js +5 -19
- package/lib/menus/sidenav/NavMenuGroup.d.ts +10 -0
- package/lib/menus/sidenav/NavMenuGroup.js +6 -17
- package/lib/menus/sidenav/NavMenuItem.d.ts +13 -0
- package/lib/menus/sidenav/NavMenuItem.js +30 -56
- package/lib/menus/sidenav/NavSubMenuItem.d.ts +10 -0
- package/lib/menus/sidenav/NavSubMenuItem.js +10 -21
- package/lib/menus/sidenav/helpers.d.ts +12 -0
- package/lib/menus/sidenav/helpers.js +5 -5
- package/lib/menus/sidenav/index.d.ts +14 -0
- package/lib/menus/sidenav/index.js +39 -69
- package/lib/menus/sidenav/popup_menu_search/EmptyList.d.ts +10 -0
- package/lib/menus/sidenav/popup_menu_search/EmptyList.js +9 -18
- package/lib/menus/sidenav/popup_menu_search/index.d.ts +10 -0
- package/lib/menus/sidenav/popup_menu_search/index.js +25 -24
- package/lib/menus/sidenav/types.d.ts +82 -0
- package/lib/menus/sidenav/types.js +5 -0
- package/lib/noPermission/index.d.ts +3 -0
- package/lib/noPermission/index.js +7 -7
- package/lib/panel/Content.d.ts +8 -0
- package/lib/panel/Content.js +14 -26
- package/lib/panel/DangerPanel.d.ts +8 -0
- package/lib/panel/DangerPanel.js +6 -6
- package/lib/panel/Default.d.ts +8 -0
- package/lib/panel/Default.js +25 -52
- package/lib/panel/Header.d.ts +8 -0
- package/lib/panel/Header.js +18 -40
- package/lib/panel/InfoPanel.d.ts +8 -0
- package/lib/panel/InfoPanel.js +6 -6
- package/lib/panel/PrimaryPanel.d.ts +8 -0
- package/lib/panel/PrimaryPanel.js +6 -6
- package/lib/panel/SuccessPanel.d.ts +8 -0
- package/lib/panel/SuccessPanel.js +6 -6
- package/lib/panel/ToolBar.d.ts +8 -0
- package/lib/panel/ToolBar.js +4 -9
- package/lib/panel/WarningPanel.d.ts +8 -0
- package/lib/panel/WarningPanel.js +6 -6
- package/lib/panel/helpers.d.ts +4 -0
- package/lib/panel/helpers.js +9 -5
- package/lib/panel/index.d.ts +13 -0
- package/lib/panel/index.js +11 -11
- package/lib/panel/types.d.ts +4 -0
- package/lib/panel/types.js +5 -0
- package/lib/permissionValidations.d.ts +14 -0
- package/lib/permissionValidations.js +14 -12
- package/lib/popover/PopoverText.d.ts +8 -0
- package/lib/popover/PopoverText.js +4 -9
- package/lib/popover/PopoverTitle.d.ts +8 -0
- package/lib/popover/PopoverTitle.js +4 -9
- package/lib/popover/index.d.ts +13 -0
- package/lib/popover/index.js +35 -49
- package/lib/popover/types.d.ts +21 -0
- package/lib/popover/types.js +5 -0
- package/lib/progress/Bar.d.ts +6 -0
- package/lib/progress/Bar.js +42 -52
- package/lib/progress/index.d.ts +7 -0
- package/lib/progress/index.js +14 -24
- package/lib/progress/types.d.ts +37 -0
- package/lib/progress/types.js +5 -0
- package/lib/radio/index.d.ts +12 -0
- package/lib/radio/index.js +28 -52
- package/lib/radio/types.d.ts +18 -0
- package/lib/skeleton/SkeletonContainer.d.ts +7 -0
- package/lib/skeleton/SkeletonContainer.js +4 -17
- package/lib/skeleton/index.d.ts +8 -0
- package/lib/skeleton/index.js +13 -32
- 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 +45 -53
- package/lib/spinner/index.d.ts +7 -0
- package/lib/spinner/index.js +28 -33
- 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 +52 -69
- package/lib/split/SplitSide.d.ts +6 -0
- package/lib/split/SplitSide.js +7 -27
- package/lib/split/helpers.d.ts +10 -0
- package/lib/split/helpers.js +4 -4
- package/lib/split/index.d.ts +5 -0
- package/lib/split/index.js +5 -5
- 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 +21 -28
- package/lib/table/Header.d.ts +6 -0
- package/lib/table/Header.js +18 -25
- package/lib/table/HeaderColumn.d.ts +6 -0
- package/lib/table/HeaderColumn.js +13 -27
- package/lib/table/Row.d.ts +6 -0
- package/lib/table/Row.js +13 -34
- package/lib/table/RowColumn.d.ts +6 -0
- package/lib/table/RowColumn.js +18 -36
- package/lib/table/helpers.d.ts +8 -0
- package/lib/table/helpers.js +5 -5
- package/lib/table/index.d.ts +11 -0
- package/lib/table/index.js +19 -57
- package/lib/table/types.d.ts +77 -0
- package/lib/table/types.js +5 -0
- package/lib/tabs/DropdownItems.d.ts +9 -0
- package/lib/tabs/DropdownItems.js +20 -30
- package/lib/tabs/Menu.d.ts +9 -0
- package/lib/tabs/Menu.js +21 -25
- package/lib/tabs/MenuItems.d.ts +9 -0
- package/lib/tabs/MenuItems.js +33 -47
- package/lib/tabs/Panel.d.ts +9 -0
- package/lib/tabs/Panel.js +24 -57
- package/lib/tabs/index.d.ts +10 -0
- package/lib/tabs/index.js +89 -83
- package/lib/tabs/tabHelpers.d.ts +21 -0
- package/lib/tabs/tabHelpers.js +10 -9
- package/lib/tabs/types.d.ts +63 -0
- package/lib/tabs/types.js +5 -0
- package/lib/toolbar/ButtonBar.d.ts +10 -0
- package/lib/toolbar/ButtonBar.js +51 -32
- package/lib/toolbar/LabelBar.d.ts +10 -0
- package/lib/toolbar/LabelBar.js +42 -29
- package/lib/toolbar/Separator.d.ts +3 -0
- package/lib/toolbar/Separator.js +4 -4
- package/lib/toolbar/ToolBarGroup.d.ts +10 -0
- package/lib/toolbar/ToolBarGroup.js +10 -16
- package/lib/toolbar/helpers.d.ts +10 -0
- package/lib/toolbar/helpers.js +3 -3
- package/lib/toolbar/index.d.ts +14 -0
- package/lib/toolbar/index.js +26 -34
- package/lib/toolbar/types.d.ts +43 -0
- package/lib/toolbar/types.js +5 -0
- package/lib/tooltip/index.d.ts +6 -0
- package/lib/tooltip/index.js +34 -43
- package/lib/tooltip/types.d.ts +16 -0
- package/lib/tooltip/types.js +5 -0
- package/lib/treeview/Header.d.ts +7 -0
- package/lib/treeview/Header.js +5 -17
- package/lib/treeview/Node.d.ts +7 -0
- package/lib/treeview/Node.js +265 -391
- package/lib/treeview/constants.d.ts +7 -0
- package/lib/treeview/constants.js +2 -3
- package/lib/treeview/index.d.ts +9 -0
- package/lib/treeview/index.js +369 -554
- package/lib/treeview/types.d.ts +104 -0
- package/lib/treeview/types.js +5 -0
- package/lib/treeview_old/Header.js +7 -7
- package/lib/treeview_old/Node.js +18 -18
- package/lib/treeview_old/index.js +9 -9
- package/lib/types-3c6f1c20.d.ts +46 -0
- package/lib/uitour/helpers.d.ts +8 -0
- package/lib/uitour/index.d.ts +6 -0
- package/lib/uitour/index.js +28 -45
- package/lib/uitour/types.d.ts +30 -0
- package/lib/uitour/types.js +5 -0
- package/package.json +57 -18
- package/scripts/start.js +135 -0
- package/tsconfig.json +32 -0
- package/tsup.config.ts +10 -0
- package/.eslintrc.js +0 -26
- package/.husky/pre-commit +0 -4
- package/lib/alerts/alert.spec.js +0 -133
- package/lib/avatar/avatar.spec.js +0 -190
- package/lib/badge/badge.spec.js +0 -127
- package/lib/buttons/SpinnerLoading.js +0 -230
- package/lib/buttons/buttons.spec.js +0 -504
- package/lib/calendar/calendar.spec.js +0 -171
- package/lib/checkbox/checkbox.spec.js +0 -215
- package/lib/dialog/dialog.spec.js +0 -488
- package/lib/drawer/Drawer.spec.js +0 -258
- package/lib/dropdown/dropdown.spec.js +0 -168
- package/lib/fieldset/fieldset.spec.js +0 -329
- package/lib/form/form.spec.js +0 -293
- package/lib/gridlayout/gridLayout.spec.js +0 -169
- package/lib/icons/icons.spec.js +0 -86
- package/lib/inputs/base/base.spec.js +0 -690
- package/lib/inputs/base/index.js +0 -1
- package/lib/inputs/color/color_input.spec.js +0 -174
- package/lib/inputs/date/date.spec.js +0 -354
- package/lib/inputs/mask/input_mask.spec.js +0 -607
- package/lib/inputs/number/numberfield.spec.js +0 -215
- package/lib/inputs/search/search_input.spec.js +0 -209
- package/lib/inputs/select/select.spec.js +0 -391
- package/lib/inputs/text/textfield.spec.js +0 -215
- package/lib/inputs/textarea/textarea.spec.js +0 -59
- package/lib/labelMessages/labelMessages.spec.js +0 -176
- package/lib/labels/label.spec.js +0 -162
- package/lib/list/list.spec.js +0 -768
- package/lib/menus/float/float-menu.spec.js +0 -221
- package/lib/menus/sidenav/sidenav.spec.js +0 -379
- package/lib/panel/panel.spec.js +0 -216
- package/lib/popover/popover.spec.js +0 -146
- package/lib/progress/progress.spec.js +0 -86
- package/lib/radio/radio.spec.js +0 -189
- package/lib/spinner/spinner.spec.js +0 -152
- package/lib/split/split.spec.js +0 -151
- package/lib/table/table.spec.js +0 -352
- package/lib/tabs/tabs.spec.js +0 -349
- package/lib/toolbar/toolbar.spec.js +0 -394
- package/lib/tooltip/tooltip.spec.js +0 -203
- package/lib/treeview/treeview.spec.js +0 -279
- package/lib/uitour/uitour.spec.js +0 -176
|
@@ -6,37 +6,31 @@ que utilizam. Em caso de mudança, ficar atento para os refatores.
|
|
|
6
6
|
@import "commons.scss";
|
|
7
7
|
@import "effects.scss";
|
|
8
8
|
@import "colors.scss";
|
|
9
|
-
|
|
10
9
|
.sidenav-component {
|
|
11
10
|
height: 100%;
|
|
12
11
|
width: 100%;
|
|
13
12
|
overflow: hidden;
|
|
14
13
|
background-color: transparent;
|
|
15
14
|
border: 1px solid #eee;
|
|
16
|
-
|
|
17
15
|
&.-blocked {
|
|
18
16
|
opacity: 0.4;
|
|
19
17
|
pointer-events: none;
|
|
20
18
|
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
>.collapsedmenu {
|
|
19
|
+
> .expandedmenu,
|
|
20
|
+
> .collapsedmenu {
|
|
24
21
|
height: auto;
|
|
25
22
|
width: 100%;
|
|
26
|
-
|
|
27
|
-
>.item {
|
|
23
|
+
> .item {
|
|
28
24
|
cursor: pointer;
|
|
29
25
|
border-bottom: 1px solid #eee;
|
|
30
26
|
width: 100%;
|
|
31
27
|
transition: all 0.2s ease-in-out;
|
|
32
|
-
|
|
33
28
|
&.-customsidenavitem {
|
|
34
29
|
display: flex;
|
|
35
30
|
align-items: center;
|
|
36
31
|
justify-content: center;
|
|
37
32
|
padding-left: 0px;
|
|
38
|
-
|
|
39
|
-
>.searchmenubutton {
|
|
33
|
+
> .searchmenubutton {
|
|
40
34
|
width: 100%;
|
|
41
35
|
height: 100%;
|
|
42
36
|
display: flex;
|
|
@@ -44,57 +38,46 @@ que utilizam. Em caso de mudança, ficar atento para os refatores.
|
|
|
44
38
|
justify-content: center;
|
|
45
39
|
}
|
|
46
40
|
}
|
|
47
|
-
|
|
48
41
|
&.-customsidenavitem:hover {
|
|
49
42
|
background-color: white;
|
|
50
43
|
}
|
|
51
|
-
|
|
52
44
|
&.-disabled {
|
|
53
45
|
@extend %component-disabled;
|
|
54
46
|
}
|
|
55
47
|
}
|
|
56
|
-
|
|
57
|
-
>.item:hover {
|
|
48
|
+
> .item:hover {
|
|
58
49
|
background-color: #eee;
|
|
59
50
|
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
>.item:hover>.menulink .searchmenuicon {
|
|
51
|
+
> .item:hover > .menuicon,
|
|
52
|
+
> .item:hover .searchmenuicon,
|
|
53
|
+
> .item:hover > .menulink > .menuicon,
|
|
54
|
+
> .item:hover > .menulink .searchmenuicon {
|
|
65
55
|
fill: rgb(114, 114, 114);
|
|
66
56
|
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
>.item:hover>.menulink>.title {
|
|
57
|
+
> .item:hover > .title,
|
|
58
|
+
> .item:hover > .menulink > .title {
|
|
70
59
|
color: rgb(114, 114, 114);
|
|
71
60
|
}
|
|
72
61
|
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
>.collapsedmenu.customscroll {
|
|
62
|
+
> .expandedmenu.customscroll,
|
|
63
|
+
> .collapsedmenu.customscroll {
|
|
76
64
|
overflow-y: auto;
|
|
77
65
|
height: 100%;
|
|
78
|
-
|
|
79
66
|
&::-webkit-scrollbar {
|
|
80
67
|
width: 5px;
|
|
81
68
|
}
|
|
82
|
-
|
|
83
69
|
&::-webkit-scrollbar-track {
|
|
84
70
|
background: rgba(196, 222, 247, 0.5);
|
|
85
71
|
border-radius: 10px;
|
|
86
72
|
}
|
|
87
|
-
|
|
88
73
|
&::-webkit-scrollbar-thumb {
|
|
89
74
|
box-shadow: inset 0 0 5px #cecece;
|
|
90
75
|
border-radius: 10px;
|
|
91
76
|
}
|
|
92
|
-
|
|
93
77
|
&::-webkit-scrollbar-thumb:hover {
|
|
94
78
|
background: rgb(0, 195, 255);
|
|
95
79
|
}
|
|
96
80
|
}
|
|
97
|
-
|
|
98
81
|
.openclosemenu {
|
|
99
82
|
background: #f5f5f5;
|
|
100
83
|
width: 100%;
|
|
@@ -106,17 +89,14 @@ que utilizam. Em caso de mudança, ficar atento para os refatores.
|
|
|
106
89
|
align-content: center;
|
|
107
90
|
text-align: center;
|
|
108
91
|
transition: all 0.2s ease-in-out;
|
|
109
|
-
|
|
110
92
|
&:hover {
|
|
111
93
|
background: $border-container;
|
|
112
94
|
}
|
|
113
|
-
|
|
114
95
|
.icon-component {
|
|
115
96
|
justify-self: center;
|
|
116
97
|
width: 12px;
|
|
117
98
|
}
|
|
118
99
|
}
|
|
119
|
-
|
|
120
100
|
&.closefromexpanded {
|
|
121
101
|
background: transparent;
|
|
122
102
|
margin-top: 2px;
|
|
@@ -126,7 +106,7 @@ que utilizam. Em caso de mudança, ficar atento para os refatores.
|
|
|
126
106
|
}
|
|
127
107
|
}
|
|
128
108
|
|
|
129
|
-
.sidenav-component
|
|
109
|
+
.sidenav-component > .expandedmenu {
|
|
130
110
|
animation: revealelement 0.3s;
|
|
131
111
|
background-color: #fff;
|
|
132
112
|
overflow: none;
|
|
@@ -134,32 +114,27 @@ que utilizam. Em caso de mudança, ficar atento para os refatores.
|
|
|
134
114
|
-webkit-box-flex: 0;
|
|
135
115
|
-ms-flex: 0 0 70px;
|
|
136
116
|
flex: 0 0 70px;
|
|
137
|
-
|
|
138
|
-
>.item {
|
|
117
|
+
> .item {
|
|
139
118
|
align-content: center;
|
|
140
119
|
background-color: #fff;
|
|
141
120
|
display: grid;
|
|
142
121
|
grid-template-columns: 30px 1fr;
|
|
143
122
|
height: 45px;
|
|
144
123
|
padding-left: 5px;
|
|
145
|
-
|
|
146
124
|
&.-withlink {
|
|
147
125
|
grid-template-columns: 1fr;
|
|
148
126
|
}
|
|
149
|
-
|
|
150
127
|
.menulink {
|
|
151
128
|
display: grid;
|
|
152
129
|
grid-template-columns: 30px 1fr;
|
|
153
130
|
align-items: center;
|
|
154
131
|
text-decoration: none;
|
|
155
132
|
}
|
|
156
|
-
|
|
157
|
-
>.menuicon {
|
|
133
|
+
> .menuicon {
|
|
158
134
|
justify-self: center;
|
|
159
135
|
}
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
>.menulink>.title {
|
|
136
|
+
> .title,
|
|
137
|
+
> .menulink > .title {
|
|
163
138
|
color: #666;
|
|
164
139
|
align-self: center;
|
|
165
140
|
justify-self: left;
|
|
@@ -168,75 +143,62 @@ que utilizam. Em caso de mudança, ficar atento para os refatores.
|
|
|
168
143
|
}
|
|
169
144
|
}
|
|
170
145
|
|
|
171
|
-
.sidenav-component
|
|
146
|
+
.sidenav-component > .collapsedmenu {
|
|
172
147
|
display: flex;
|
|
173
148
|
flex-wrap: wrap;
|
|
174
149
|
align-content: flex-start;
|
|
175
|
-
|
|
176
|
-
>.item {
|
|
150
|
+
> .item {
|
|
177
151
|
height: 50px;
|
|
178
152
|
display: grid;
|
|
179
153
|
grid-template-rows: 1fr;
|
|
180
154
|
align-items: center;
|
|
181
|
-
align-content: center;
|
|
182
|
-
|
|
155
|
+
align-content: center;
|
|
183
156
|
&.-withlink {
|
|
184
157
|
align-items: stretch;
|
|
185
158
|
}
|
|
186
|
-
|
|
187
|
-
>.menulink {
|
|
159
|
+
> .menulink {
|
|
188
160
|
display: grid;
|
|
189
161
|
grid-template-rows: 1fr;
|
|
190
162
|
align-items: center;
|
|
191
163
|
}
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
>.menulink>.menuicon {
|
|
164
|
+
> .menuicon,
|
|
165
|
+
> .menulink > .menuicon {
|
|
195
166
|
justify-self: center;
|
|
196
167
|
}
|
|
197
168
|
}
|
|
198
|
-
|
|
199
169
|
&.-small {
|
|
200
170
|
width: 55px;
|
|
201
|
-
|
|
202
|
-
>.item {
|
|
171
|
+
> .item {
|
|
203
172
|
height: 40px;
|
|
204
173
|
}
|
|
205
|
-
|
|
206
174
|
.-iconcenter {
|
|
207
175
|
width: 55px !important;
|
|
208
176
|
}
|
|
209
177
|
}
|
|
210
|
-
|
|
211
178
|
&.-medium {
|
|
212
179
|
width: 55px;
|
|
213
|
-
|
|
214
|
-
>.item {
|
|
180
|
+
> .item {
|
|
215
181
|
height: 50px;
|
|
216
182
|
}
|
|
217
|
-
|
|
218
183
|
.-iconcenter {
|
|
219
184
|
width: 65px !important;
|
|
220
185
|
}
|
|
221
186
|
}
|
|
222
|
-
|
|
223
187
|
&.-large {
|
|
224
188
|
width: 75px;
|
|
225
|
-
|
|
226
|
-
>.item {
|
|
189
|
+
> .item {
|
|
227
190
|
height: 60px;
|
|
228
191
|
}
|
|
229
|
-
|
|
230
192
|
.-iconcenter {
|
|
231
193
|
width: 75px !important;
|
|
232
194
|
}
|
|
233
195
|
}
|
|
234
196
|
}
|
|
235
197
|
|
|
236
|
-
.sidenav-component
|
|
237
|
-
.sidenav-component
|
|
198
|
+
.sidenav-component > .collapsedmenu > .item > .submenu-container,
|
|
199
|
+
.sidenav-component > .expandedmenu > .item > .submenu-container {
|
|
238
200
|
animation: 0.5s ease-in 0s 1 slideLeft;
|
|
239
|
-
background-color: #eee;
|
|
201
|
+
background-color: #eee ;
|
|
240
202
|
height: auto;
|
|
241
203
|
width: auto;
|
|
242
204
|
float: right;
|
|
@@ -246,8 +208,7 @@ que utilizam. Em caso de mudança, ficar atento para os refatores.
|
|
|
246
208
|
-moz-box-shadow: 3px 1px 6px 0px rgba(50, 50, 50, 0.35);
|
|
247
209
|
box-shadow: 3px 1px 6px 0px rgba(50, 50, 50, 0.35);
|
|
248
210
|
z-index: 9999999;
|
|
249
|
-
|
|
250
|
-
>.title {
|
|
211
|
+
> .title {
|
|
251
212
|
color: #777777;
|
|
252
213
|
font-size: 24px;
|
|
253
214
|
font-weight: bold;
|
|
@@ -255,33 +216,28 @@ que utilizam. Em caso de mudança, ficar atento para os refatores.
|
|
|
255
216
|
height: 36px;
|
|
256
217
|
line-height: 36px;
|
|
257
218
|
}
|
|
258
|
-
|
|
259
219
|
.submenu {
|
|
260
220
|
color: #808080;
|
|
261
221
|
display: grid;
|
|
262
222
|
grid-template-columns: repeat(2, 1fr);
|
|
263
223
|
align-content: center;
|
|
264
224
|
align-items: flex-start;
|
|
265
|
-
|
|
266
|
-
>.item {
|
|
225
|
+
> .item {
|
|
267
226
|
display: grid;
|
|
268
227
|
min-height: 40px;
|
|
269
228
|
/* height: 40px; */
|
|
270
229
|
align-content: center;
|
|
271
230
|
display: grid;
|
|
272
231
|
margin-left: 20px;
|
|
273
|
-
|
|
274
232
|
&.-disabled {
|
|
275
233
|
@extend %component-disabled;
|
|
276
234
|
background-color: #eee !important;
|
|
277
235
|
}
|
|
278
236
|
}
|
|
279
|
-
|
|
280
|
-
>.item:hover {
|
|
237
|
+
> .item:hover {
|
|
281
238
|
color: #333;
|
|
282
239
|
}
|
|
283
|
-
|
|
284
|
-
>.item:before {
|
|
240
|
+
> .item:before {
|
|
285
241
|
position: absolute;
|
|
286
242
|
content: '';
|
|
287
243
|
left: -15px;
|
|
@@ -290,27 +246,24 @@ que utilizam. Em caso de mudança, ficar atento para os refatores.
|
|
|
290
246
|
border-bottom: 5px solid transparent;
|
|
291
247
|
border-left: 5px solid #808080;
|
|
292
248
|
}
|
|
293
|
-
|
|
294
|
-
>.item:nth-child(even) {
|
|
249
|
+
> .item:nth-child(even) {
|
|
295
250
|
padding-left: 5px;
|
|
296
251
|
}
|
|
297
|
-
|
|
298
|
-
>.item>.menulink {
|
|
252
|
+
> .item > .menulink {
|
|
299
253
|
grid-template-columns: 1fr;
|
|
300
254
|
text-decoration: none;
|
|
301
255
|
}
|
|
302
256
|
}
|
|
303
257
|
}
|
|
304
|
-
|
|
258
|
+
|
|
305
259
|
.searchmenu {
|
|
306
|
-
background-color: #fff;
|
|
260
|
+
background-color: #fff ;
|
|
307
261
|
border: solid 1px $component-border-color;
|
|
308
262
|
border-radius: 4px;
|
|
309
263
|
width: 300px;
|
|
310
264
|
position: absolute;
|
|
311
265
|
padding: 20px;
|
|
312
|
-
|
|
313
|
-
>.closebutton {
|
|
266
|
+
> .closebutton {
|
|
314
267
|
cursor: pointer;
|
|
315
268
|
float: right;
|
|
316
269
|
margin: -21px -33px 15px 0px;
|
|
@@ -324,19 +277,15 @@ que utilizam. Em caso de mudança, ficar atento para os refatores.
|
|
|
324
277
|
justify-content: center;
|
|
325
278
|
height: 100%;
|
|
326
279
|
width: 100%;
|
|
327
|
-
|
|
328
|
-
>.text,
|
|
329
|
-
.subtext {
|
|
280
|
+
> .text, .subtext {
|
|
330
281
|
color: #a8a8a8;
|
|
331
282
|
text-align: center;
|
|
332
283
|
}
|
|
333
|
-
|
|
334
|
-
>.text {
|
|
284
|
+
> .text {
|
|
335
285
|
font-size: 26px;
|
|
336
286
|
margin-top: 20px;
|
|
337
287
|
}
|
|
338
|
-
|
|
339
|
-
>.subtext {
|
|
288
|
+
> .subtext {
|
|
340
289
|
font-size: 15px;
|
|
341
290
|
margin-top: 5px;
|
|
342
291
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
@import "colors.scss";
|
|
2
2
|
@import "effects.scss";
|
|
3
|
-
@import "commons.scss";
|
|
4
3
|
|
|
5
4
|
.table-component {
|
|
6
5
|
width: 100%;
|
|
@@ -24,7 +23,13 @@
|
|
|
24
23
|
> .tbody {
|
|
25
24
|
position: relative;
|
|
26
25
|
&.skeleton-transparency::before {
|
|
27
|
-
|
|
26
|
+
content: '';
|
|
27
|
+
position: absolute;
|
|
28
|
+
width: 100%;
|
|
29
|
+
height: 100%;
|
|
30
|
+
background: rgb(255,255,255);
|
|
31
|
+
background: linear-gradient( 180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 30%,
|
|
32
|
+
rgba(255,255,255,0.6) 70%,rgba(255,255,255,0.8) 100%);
|
|
28
33
|
}
|
|
29
34
|
}
|
|
30
35
|
> .headercontainer > .innertable > .theader > .trow,
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IAvatarProps } from './types.js';
|
|
2
|
+
import 'react';
|
|
3
|
+
import '../@types/Icon.js';
|
|
4
|
+
import '../icons/helper.js';
|
|
5
|
+
import '../@types/Size.js';
|
|
6
|
+
|
|
7
|
+
declare const _default: {
|
|
8
|
+
(props: IAvatarProps): JSX.Element;
|
|
9
|
+
displayName: string;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export { _default as default };
|
package/lib/avatar/index.js
CHANGED
|
@@ -1,43 +1,42 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
4
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports
|
|
8
|
+
exports.default = void 0;
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
12
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
|
-
|
|
14
12
|
var _icons = _interopRequireDefault(require("../../lib/icons"));
|
|
15
13
|
|
|
16
14
|
require("../assets/styles/avatar.scss");
|
|
17
15
|
|
|
18
16
|
var _withDropdown = _interopRequireDefault(require("../dropdown/withDropdown"));
|
|
19
17
|
|
|
20
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : {
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
19
|
|
|
22
20
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
23
21
|
|
|
24
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return {
|
|
22
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
25
23
|
|
|
26
|
-
function _extends() { _extends = Object.assign
|
|
24
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
27
25
|
|
|
28
26
|
var getClass = function getClass(_ref) {
|
|
29
27
|
var className = _ref.className,
|
|
30
28
|
square = _ref.square,
|
|
31
29
|
disabled = _ref.disabled,
|
|
32
|
-
size = _ref.size
|
|
30
|
+
_ref$size = _ref.size,
|
|
31
|
+
size = _ref$size === void 0 ? 'default' : _ref$size;
|
|
33
32
|
return "avatar-component ".concat(className).concat(disabled && '-disabled', " \n ").concat(square && '-square', " ").concat(size && "-".concat(size));
|
|
34
33
|
};
|
|
35
34
|
|
|
36
35
|
var getIcon = function getIcon(iconName, icon) {
|
|
37
|
-
if (icon
|
|
36
|
+
if (icon) {
|
|
38
37
|
return icon;
|
|
39
|
-
} else if (iconName
|
|
40
|
-
return /*#__PURE__*/_react
|
|
38
|
+
} else if (iconName) {
|
|
39
|
+
return /*#__PURE__*/_react.default.createElement(_icons.default, {
|
|
41
40
|
name: iconName,
|
|
42
41
|
size: 16
|
|
43
42
|
});
|
|
@@ -54,7 +53,8 @@ var Avatar = function Avatar(props) {
|
|
|
54
53
|
iconName = props.iconName,
|
|
55
54
|
icon = props.icon,
|
|
56
55
|
src = props.src,
|
|
57
|
-
srcAlt = props.srcAlt,
|
|
56
|
+
_props$srcAlt = props.srcAlt,
|
|
57
|
+
srcAlt = _props$srcAlt === void 0 ? 'Avatar' : _props$srcAlt,
|
|
58
58
|
customClass = props.customClass,
|
|
59
59
|
targetRef = props.targetRef,
|
|
60
60
|
label = props.label,
|
|
@@ -64,15 +64,15 @@ var Avatar = function Avatar(props) {
|
|
|
64
64
|
style = props.style,
|
|
65
65
|
id = props.id;
|
|
66
66
|
var dropdownRef = (0, _react.useRef)(null);
|
|
67
|
-
return /*#__PURE__*/_react
|
|
67
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
68
68
|
"data-testid": "avatar",
|
|
69
69
|
id: id,
|
|
70
|
-
onKeyPress:
|
|
70
|
+
onKeyPress: function onKeyPress() {},
|
|
71
71
|
role: "button",
|
|
72
72
|
tabIndex: -1,
|
|
73
|
-
onClick: function onClick() {
|
|
74
|
-
if (_onClick) _onClick();
|
|
75
|
-
if (dropdown) showDropdown();
|
|
73
|
+
onClick: function onClick(event) {
|
|
74
|
+
if (_onClick) _onClick(event);
|
|
75
|
+
if (dropdown && showDropdown) showDropdown();
|
|
76
76
|
},
|
|
77
77
|
ref: function ref(r) {
|
|
78
78
|
if (targetRef) targetRef(r);
|
|
@@ -85,7 +85,7 @@ var Avatar = function Avatar(props) {
|
|
|
85
85
|
backgroundColor: "".concat(color),
|
|
86
86
|
cursor: "".concat(dropdown ? 'pointer' : 'normal')
|
|
87
87
|
}, style)
|
|
88
|
-
}, (iconName || icon) && !src && getIcon(iconName, icon), src && /*#__PURE__*/_react
|
|
88
|
+
}, (iconName || icon) && !src && getIcon(iconName, icon), src && /*#__PURE__*/_react.default.createElement("img", {
|
|
89
89
|
className: "imgavatar",
|
|
90
90
|
style: {
|
|
91
91
|
width: "".concat(width),
|
|
@@ -93,54 +93,9 @@ var Avatar = function Avatar(props) {
|
|
|
93
93
|
},
|
|
94
94
|
src: src,
|
|
95
95
|
alt: srcAlt
|
|
96
|
-
}), label), dropdown && getDropdownPopup(dropdownRef.current));
|
|
97
|
-
};
|
|
98
|
-
|
|
99
|
-
Avatar.propTypes = {
|
|
100
|
-
onClick: _propTypes["default"].func,
|
|
101
|
-
size: _propTypes["default"].string,
|
|
102
|
-
width: _propTypes["default"].string,
|
|
103
|
-
height: _propTypes["default"].string,
|
|
104
|
-
color: _propTypes["default"].string,
|
|
105
|
-
iconName: _propTypes["default"].string,
|
|
106
|
-
icon: _propTypes["default"].instanceOf(Object),
|
|
107
|
-
src: _propTypes["default"].string,
|
|
108
|
-
srcAlt: _propTypes["default"].string,
|
|
109
|
-
children: _propTypes["default"].element,
|
|
110
|
-
square: _propTypes["default"].bool,
|
|
111
|
-
customClass: _propTypes["default"].string,
|
|
112
|
-
dropdown: _propTypes["default"].bool,
|
|
113
|
-
dropdownOnHover: _propTypes["default"].bool,
|
|
114
|
-
targetRef: _propTypes["default"].func,
|
|
115
|
-
label: _propTypes["default"].string,
|
|
116
|
-
showDropdown: _propTypes["default"].func,
|
|
117
|
-
getDropdownPopup: _propTypes["default"].func,
|
|
118
|
-
style: _propTypes["default"].object,
|
|
119
|
-
id: _propTypes["default"].string
|
|
120
|
-
};
|
|
121
|
-
Avatar.defaultProps = {
|
|
122
|
-
label: '',
|
|
123
|
-
size: 'default',
|
|
124
|
-
width: '',
|
|
125
|
-
height: '',
|
|
126
|
-
color: '',
|
|
127
|
-
iconName: '',
|
|
128
|
-
icon: null,
|
|
129
|
-
src: '',
|
|
130
|
-
srcAlt: 'Avatar',
|
|
131
|
-
customClass: '',
|
|
132
|
-
children: null,
|
|
133
|
-
square: false,
|
|
134
|
-
dropdown: false,
|
|
135
|
-
dropdownOnHover: false,
|
|
136
|
-
targetRef: undefined,
|
|
137
|
-
showDropdown: undefined,
|
|
138
|
-
getDropdownPopup: undefined,
|
|
139
|
-
onClick: undefined,
|
|
140
|
-
style: {},
|
|
141
|
-
id: undefined
|
|
96
|
+
}), label), dropdown && getDropdownPopup && getDropdownPopup(dropdownRef.current));
|
|
142
97
|
};
|
|
143
98
|
|
|
144
|
-
var _default = (0, _withDropdown
|
|
99
|
+
var _default = (0, _withDropdown.default)(Avatar);
|
|
145
100
|
|
|
146
|
-
exports
|
|
101
|
+
exports.default = _default;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { MouseEvent, ReactElement, ReactNode, CSSProperties } from 'react';
|
|
2
|
+
import { IconNames } from '../@types/Icon.js';
|
|
3
|
+
import { Size } from '../@types/Size.js';
|
|
4
|
+
import '../icons/helper.js';
|
|
5
|
+
|
|
6
|
+
interface IAvatarProps {
|
|
7
|
+
onClick?: (event: MouseEvent) => void;
|
|
8
|
+
size?: Size;
|
|
9
|
+
width?: string;
|
|
10
|
+
height?: string;
|
|
11
|
+
color?: string;
|
|
12
|
+
iconName?: IconNames;
|
|
13
|
+
icon?: ReactElement;
|
|
14
|
+
src?: string;
|
|
15
|
+
srcAlt?: string;
|
|
16
|
+
children?: ReactNode;
|
|
17
|
+
square?: boolean;
|
|
18
|
+
customClass?: string;
|
|
19
|
+
className?: string;
|
|
20
|
+
targetRef?: (ref: HTMLDivElement | null) => void;
|
|
21
|
+
dropdown?: boolean;
|
|
22
|
+
dropdownOnHover?: boolean;
|
|
23
|
+
showDropdown?: () => void;
|
|
24
|
+
getDropdownPopup?: (ref: HTMLDivElement | null) => ReactNode;
|
|
25
|
+
label?: string;
|
|
26
|
+
style?: CSSProperties;
|
|
27
|
+
id?: string;
|
|
28
|
+
disabled?: boolean;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { IAvatarProps };
|
package/lib/badge/index.js
CHANGED
|
@@ -3,27 +3,28 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
6
|
+
exports.default = void 0;
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
10
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
-
|
|
12
10
|
require("../assets/styles/badge.scss");
|
|
13
11
|
|
|
14
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : {
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
13
|
|
|
16
14
|
var Badge = function Badge(props) {
|
|
17
|
-
var color = props.color,
|
|
15
|
+
var _props$color = props.color,
|
|
16
|
+
color = _props$color === void 0 ? 'default' : _props$color,
|
|
18
17
|
customClass = props.customClass,
|
|
19
18
|
customClassForBadge = props.customClassForBadge,
|
|
20
19
|
children = props.children,
|
|
21
20
|
content = props.content,
|
|
22
|
-
top = props.top,
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
_props$top = props.top,
|
|
22
|
+
top = _props$top === void 0 ? '-16px' : _props$top,
|
|
23
|
+
_props$right = props.right,
|
|
24
|
+
right = _props$right === void 0 ? '-11px' : _props$right;
|
|
25
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
25
26
|
className: "badge-component ".concat(customClass)
|
|
26
|
-
}, children, /*#__PURE__*/_react
|
|
27
|
+
}, children, /*#__PURE__*/_react.default.createElement("span", {
|
|
27
28
|
className: "badge -".concat(color, " ").concat(customClassForBadge),
|
|
28
29
|
style: {
|
|
29
30
|
top: "".concat(top),
|
|
@@ -32,22 +33,5 @@ var Badge = function Badge(props) {
|
|
|
32
33
|
}, content));
|
|
33
34
|
};
|
|
34
35
|
|
|
35
|
-
Badge.defaultProps = {
|
|
36
|
-
color: 'default',
|
|
37
|
-
top: '-16px',
|
|
38
|
-
right: '-11',
|
|
39
|
-
customClass: '',
|
|
40
|
-
customClassForBadge: '',
|
|
41
|
-
content: null
|
|
42
|
-
};
|
|
43
|
-
Badge.propTypes = {
|
|
44
|
-
color: _propTypes["default"].string,
|
|
45
|
-
top: _propTypes["default"].string,
|
|
46
|
-
right: _propTypes["default"].string,
|
|
47
|
-
children: _propTypes["default"].element.isRequired,
|
|
48
|
-
customClass: _propTypes["default"].string,
|
|
49
|
-
customClassForBadge: _propTypes["default"].string,
|
|
50
|
-
content: _propTypes["default"].oneOfType([_propTypes["default"].object, _propTypes["default"].string])
|
|
51
|
-
};
|
|
52
36
|
var _default = Badge;
|
|
53
|
-
exports
|
|
37
|
+
exports.default = _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
interface IBadgeProps {
|
|
4
|
+
color?: 'default' | 'primary' | 'danger' | 'warning' | 'success' | 'info';
|
|
5
|
+
top?: string;
|
|
6
|
+
right?: string;
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
customClass?: string;
|
|
9
|
+
customClassForBadge?: string;
|
|
10
|
+
content?: ReactNode;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export { IBadgeProps };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IButtonProps } from './types.js';
|
|
2
|
+
import 'react';
|
|
3
|
+
import '../@types/PermissionAttr.js';
|
|
4
|
+
import '../@types/Position.js';
|
|
5
|
+
import '../@types/Size.js';
|
|
6
|
+
|
|
7
|
+
declare const ActivateButton: (props: IButtonProps) => JSX.Element;
|
|
8
|
+
|
|
9
|
+
export { ActivateButton as default };
|