linear-react-components-ui 1.0.10-beta.1 → 1.0.10-beta.11
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/demo/06c001f4d19c06397d470bb43ff3fe49.png +0 -0
- package/demo/270084ef02ed3bddc3f735fd91ee3cae.png +0 -0
- package/demo/882f8e819d18f5f2dc08d23ebd28a7d5.png +0 -0
- package/demo/bundle.js +2 -0
- package/demo/bundle.js.LICENSE.txt +65 -0
- package/demo/cbc3b4bd6342c551db7afafe26dc458c.jpg +0 -0
- package/demo/edc9476523b940deab91951066981a31.png +0 -0
- package/demo/fb44e7c36db6d95bb85a745d4f060fb2.png +0 -0
- package/demo/fonts/Roboto-Black.woff +0 -0
- package/demo/fonts/Roboto-Black.woff2 +0 -0
- package/demo/fonts/Roboto-Bold.woff +0 -0
- package/demo/fonts/Roboto-Bold.woff2 +0 -0
- package/demo/fonts/Roboto-Light.woff +0 -0
- package/demo/fonts/Roboto-Light.woff2 +0 -0
- package/demo/fonts/Roboto-Medium.woff +0 -0
- package/demo/fonts/Roboto-Medium.woff2 +0 -0
- package/demo/fonts/Roboto-Regular.woff +0 -0
- package/demo/fonts/Roboto-Regular.woff2 +0 -0
- package/demo/fonts/Roboto-Thin.woff +0 -0
- package/demo/fonts/Roboto-Thin.woff2 +0 -0
- package/demo/fonts/TitilliumWeb-Black.woff +0 -0
- package/demo/fonts/TitilliumWeb-Black.woff2 +0 -0
- package/demo/fonts/TitilliumWeb-Bold.woff +0 -0
- package/demo/fonts/TitilliumWeb-Bold.woff2 +0 -0
- package/demo/fonts/TitilliumWeb-ExtraLight.woff +0 -0
- package/demo/fonts/TitilliumWeb-ExtraLight.woff2 +0 -0
- package/demo/fonts/TitilliumWeb-Light.woff +0 -0
- package/demo/fonts/TitilliumWeb-Light.woff2 +0 -0
- package/demo/fonts/TitilliumWeb-Regular.woff +0 -0
- package/demo/fonts/TitilliumWeb-Regular.woff2 +0 -0
- package/demo/fonts/TitilliumWeb-SemiBold.woff +0 -0
- package/demo/fonts/TitilliumWeb-SemiBold.woff2 +0 -0
- package/demo/index.html +1 -0
- package/lib/@types/Align.d.ts +3 -2
- package/lib/@types/ButtonTypes.d.ts +1 -1
- package/lib/@types/ColorStyles.d.ts +1 -1
- package/lib/@types/DataCombo.d.ts +1 -1
- package/lib/@types/Icon.d.ts +1 -1
- package/lib/@types/LabelStyles.d.ts +1 -1
- package/lib/@types/Period.d.ts +1 -1
- package/lib/@types/PermissionAttr.d.ts +2 -2
- package/lib/@types/PointerEvents.d.ts +1 -1
- package/lib/@types/Position.d.ts +1 -1
- package/lib/@types/PositionAlert.d.ts +1 -1
- package/lib/@types/Size.d.ts +1 -1
- package/lib/@types/SizePixels.d.ts +1 -1
- package/lib/alerts/AlertContainer.d.ts +2 -0
- package/lib/alerts/AlertContainer.js +21 -5
- package/lib/alerts/AlertProvider.d.ts +2 -0
- package/lib/alerts/AlertProvider.js +45 -15
- package/lib/alerts/BaseAlert.d.ts +2 -0
- package/lib/alerts/BaseAlert.js +20 -4
- package/lib/alerts/Message.d.ts +2 -0
- package/lib/alerts/Message.js +32 -21
- package/lib/alerts/helpers.d.ts +2 -0
- package/lib/alerts/helpers.js +2 -0
- package/lib/alerts/index.d.ts +3 -4
- package/lib/alerts/index.js +4 -0
- package/lib/alerts/types.d.ts +7 -5
- package/lib/alerts/withAlert.d.ts +2 -0
- package/lib/alerts/withAlert.js +12 -1
- package/lib/assets/styles/dialog.scss +0 -2
- package/lib/assets/styles/drawers.scss +9 -0
- package/lib/assets/styles/table.scss +30 -0
- package/lib/assets/styles/tooltip.scss +42 -2
- package/lib/avatar/index.js +35 -20
- package/lib/badge/index.js +14 -9
- package/lib/buttons/ActivateButton.d.ts +2 -0
- package/lib/buttons/ActivateButton.js +6 -0
- package/lib/buttons/AddButton.d.ts +2 -0
- package/lib/buttons/AddButton.js +7 -0
- package/lib/buttons/Button.d.ts +2 -0
- package/lib/buttons/Button.js +15 -2
- package/lib/buttons/ButtonGroups.js +4 -0
- package/lib/buttons/CancelButton.d.ts +2 -0
- package/lib/buttons/CancelButton.js +11 -1
- package/lib/buttons/DangerButton.d.ts +2 -0
- package/lib/buttons/DangerButton.js +11 -1
- package/lib/buttons/DefaultButton.d.ts +2 -0
- package/lib/buttons/DefaultButton.js +97 -49
- package/lib/buttons/DestroyButton.d.ts +2 -0
- package/lib/buttons/DestroyButton.js +12 -1
- package/lib/buttons/EditButton.d.ts +2 -0
- package/lib/buttons/EditButton.js +6 -0
- package/lib/buttons/InactivateButton.d.ts +2 -0
- package/lib/buttons/InactivateButton.js +6 -0
- package/lib/buttons/InfoButton.d.ts +2 -0
- package/lib/buttons/InfoButton.js +11 -1
- package/lib/buttons/PrimaryButton.d.ts +2 -0
- package/lib/buttons/PrimaryButton.js +11 -1
- package/lib/buttons/RestoreButton.d.ts +2 -0
- package/lib/buttons/RestoreButton.js +6 -0
- package/lib/buttons/SaveButton.d.ts +2 -0
- package/lib/buttons/SaveButton.js +11 -1
- package/lib/buttons/SuccessButton.d.ts +2 -0
- package/lib/buttons/SuccessButton.js +11 -1
- package/lib/buttons/WarningButton.d.ts +2 -0
- package/lib/buttons/WarningButton.js +11 -1
- package/lib/buttons/button_container/index.js +11 -5
- package/lib/buttons/index.d.ts +3 -4
- package/lib/buttons/index.js +18 -0
- package/lib/buttons/split_button/index.d.ts +2 -0
- package/lib/buttons/split_button/index.js +17 -11
- package/lib/buttons/types.d.ts +6 -2
- package/lib/calendar/DangerCalendar.js +11 -1
- package/lib/calendar/InfoCalendar.js +11 -1
- package/lib/calendar/PrimaryCalendar.js +11 -1
- package/lib/calendar/SuccessCalendar.js +11 -1
- package/lib/calendar/WarningCalendar.js +11 -1
- package/lib/calendar/base/Day.js +13 -2
- package/lib/calendar/base/Month.js +18 -1
- package/lib/calendar/base/Week.js +18 -2
- package/lib/calendar/base/helpers.js +24 -8
- package/lib/calendar/base/index.js +37 -13
- package/lib/calendar/index.d.ts +1 -4
- package/lib/calendar/index.js +8 -0
- package/lib/checkbox/Label.js +7 -1
- package/lib/checkbox/index.js +54 -28
- package/lib/checkbox/types.d.ts +2 -2
- package/lib/dialog/Alert.d.ts +3 -0
- package/lib/dialog/Alert.js +8 -0
- package/lib/dialog/Custom.d.ts +3 -0
- package/lib/dialog/Custom.js +17 -5
- package/lib/dialog/Error.d.ts +3 -0
- package/lib/dialog/Error.js +8 -0
- package/lib/dialog/Information.d.ts +3 -0
- package/lib/dialog/Information.js +8 -0
- package/lib/dialog/Question.d.ts +3 -0
- package/lib/dialog/Question.js +15 -4
- package/lib/dialog/Warning.d.ts +3 -0
- package/lib/dialog/Warning.js +8 -0
- package/lib/dialog/base/Content.d.ts +3 -0
- package/lib/dialog/base/Content.js +6 -1
- package/lib/dialog/base/Footer.d.ts +3 -0
- package/lib/dialog/base/Footer.js +4 -0
- package/lib/dialog/base/Header.d.ts +3 -0
- package/lib/dialog/base/Header.js +13 -5
- package/lib/dialog/base/index.d.ts +3 -0
- package/lib/dialog/base/index.js +33 -9
- package/lib/dialog/base/style.js +2 -0
- package/lib/dialog/form/index.d.ts +3 -0
- package/lib/dialog/form/index.js +29 -9
- package/lib/dialog/index.d.ts +4 -4
- package/lib/dialog/index.js +9 -0
- package/lib/dialog/types.d.ts +6 -3
- package/lib/drawer/Content.d.ts +2 -0
- package/lib/drawer/Content.js +13 -2
- package/lib/drawer/Drawer.d.ts +3 -1
- package/lib/drawer/Drawer.js +83 -24
- package/lib/drawer/Header.d.ts +2 -0
- package/lib/drawer/Header.js +27 -10
- package/lib/drawer/helpers.d.ts +2 -0
- package/lib/drawer/helpers.js +4 -0
- package/lib/drawer/index.d.ts +2 -0
- package/lib/drawer/index.js +8 -0
- package/lib/drawer/types.d.ts +4 -1
- package/lib/dropdown/Popup.js +39 -19
- package/lib/dropdown/helper.js +4 -0
- package/lib/dropdown/withDropdown.js +47 -18
- package/lib/fieldset/index.js +46 -21
- package/lib/form/Field.d.ts +6 -0
- package/lib/form/Field.js +60 -25
- package/lib/form/FieldArray.d.ts +6 -0
- package/lib/form/FieldArray.js +32 -15
- package/lib/form/FieldNumber.d.ts +6 -0
- package/lib/form/FieldNumber.js +20 -6
- package/lib/form/FieldPeriod.d.ts +6 -0
- package/lib/form/FieldPeriod.js +21 -9
- package/lib/form/helpers.d.ts +6 -0
- package/lib/form/helpers.js +30 -5
- package/lib/form/index.d.ts +8 -1
- package/lib/form/index.js +101 -37
- package/lib/form/types.d.ts +16 -6
- package/lib/form/withFieldHOC.d.ts +6 -0
- package/lib/form/withFieldHOC.js +34 -15
- package/lib/form/withFormSecurity.d.ts +6 -0
- package/lib/form/withFormSecurity.js +30 -6
- package/lib/gridlayout/GridCol.js +11 -5
- package/lib/gridlayout/GridRow.js +9 -3
- package/lib/gridlayout/index.d.ts +1 -4
- package/lib/gridlayout/index.js +4 -0
- package/lib/hint/index.js +11 -6
- package/lib/icons/index.d.ts +2 -0
- package/lib/icons/index.js +26 -16
- package/lib/icons/types.d.ts +4 -2
- package/lib/index.d.ts +4 -1
- package/lib/index.js +10 -0
- package/lib/inputs/base/InputTextBase.d.ts +1 -0
- package/lib/inputs/base/InputTextBase.js +85 -51
- package/lib/inputs/base/helpers.d.ts +2 -1
- package/lib/inputs/base/helpers.js +19 -6
- package/lib/inputs/base/types.d.ts +2 -1
- package/lib/inputs/color/index.js +38 -11
- package/lib/inputs/date/Dialog.d.ts +1 -0
- package/lib/inputs/date/Dialog.js +7 -2
- package/lib/inputs/date/Dropdown.d.ts +1 -0
- package/lib/inputs/date/Dropdown.js +8 -1
- package/lib/inputs/date/helpers.d.ts +1 -0
- package/lib/inputs/date/helpers.js +11 -2
- package/lib/inputs/date/index.d.ts +1 -0
- package/lib/inputs/date/index.js +101 -48
- package/lib/inputs/date/types.d.ts +1 -0
- package/lib/inputs/file/DefaultFile.d.ts +1 -0
- package/lib/inputs/file/DefaultFile.js +42 -13
- package/lib/inputs/file/DragDropFile.d.ts +1 -0
- package/lib/inputs/file/DragDropFile.js +90 -37
- package/lib/inputs/file/File.d.ts +1 -0
- package/lib/inputs/file/File.js +25 -4
- package/lib/inputs/file/FileButtonSettings.d.ts +1 -0
- package/lib/inputs/file/FileButtonSettings.js +11 -5
- package/lib/inputs/file/helpers.d.ts +1 -0
- package/lib/inputs/file/helpers.js +5 -0
- package/lib/inputs/file/index.d.ts +2 -4
- package/lib/inputs/file/index.js +6 -0
- package/lib/inputs/file/types.d.ts +2 -1
- package/lib/inputs/inputHOC.d.ts +3 -0
- package/lib/inputs/inputHOC.js +34 -10
- package/lib/inputs/mask/BaseMask.d.ts +1 -0
- package/lib/inputs/mask/BaseMask.js +17 -1
- package/lib/inputs/mask/Cnpj.d.ts +1 -0
- package/lib/inputs/mask/Cnpj.js +37 -12
- package/lib/inputs/mask/Cpf.d.ts +1 -0
- package/lib/inputs/mask/Cpf.js +33 -10
- package/lib/inputs/mask/Phone.d.ts +1 -0
- package/lib/inputs/mask/Phone.js +6 -0
- package/lib/inputs/mask/ZipCode.d.ts +1 -0
- package/lib/inputs/mask/ZipCode.js +6 -0
- package/lib/inputs/mask/helpers.d.ts +3 -0
- package/lib/inputs/mask/helpers.js +20 -8
- package/lib/inputs/mask/imaskHOC.d.ts +3 -0
- package/lib/inputs/mask/imaskHOC.js +83 -52
- package/lib/inputs/mask/index.d.ts +2 -4
- package/lib/inputs/mask/index.js +7 -0
- package/lib/inputs/mask/types.d.ts +2 -1
- package/lib/inputs/multiSelect/ActionButtons.d.ts +2 -1
- package/lib/inputs/multiSelect/ActionButtons.js +16 -4
- package/lib/inputs/multiSelect/Dropdown.d.ts +1 -0
- package/lib/inputs/multiSelect/Dropdown.js +46 -23
- package/lib/inputs/multiSelect/helper.d.ts +8 -6
- package/lib/inputs/multiSelect/helper.js +11 -3
- package/lib/inputs/multiSelect/index.d.ts +1 -0
- package/lib/inputs/multiSelect/index.js +108 -41
- package/lib/inputs/multiSelect/types.d.ts +12 -3
- package/lib/inputs/number/BaseNumber.d.ts +3 -0
- package/lib/inputs/number/BaseNumber.js +16 -3
- package/lib/inputs/number/Currency.d.ts +3 -0
- package/lib/inputs/number/Currency.js +7 -1
- package/lib/inputs/number/Decimal.d.ts +3 -0
- package/lib/inputs/number/Decimal.js +5 -0
- package/lib/inputs/number/format_number.js +7 -0
- package/lib/inputs/number/index.d.ts +3 -0
- package/lib/inputs/number/index.js +13 -3
- package/lib/inputs/number/types.d.ts +3 -1
- package/lib/inputs/period/Dialog.d.ts +1 -0
- package/lib/inputs/period/Dialog.js +7 -2
- package/lib/inputs/period/Dropdown.d.ts +1 -0
- package/lib/inputs/period/Dropdown.js +7 -0
- package/lib/inputs/period/PeriodList.d.ts +1 -0
- package/lib/inputs/period/PeriodList.js +7 -1
- package/lib/inputs/period/helper.d.ts +1 -0
- package/lib/inputs/period/helper.js +12 -2
- package/lib/inputs/period/index.d.ts +1 -0
- package/lib/inputs/period/index.js +120 -49
- package/lib/inputs/period/types.d.ts +4 -3
- package/lib/inputs/search/index.d.ts +3 -0
- package/lib/inputs/search/index.js +63 -18
- package/lib/inputs/select/ActionButtons.d.ts +3 -0
- package/lib/inputs/select/ActionButtons.js +12 -4
- package/lib/inputs/select/Dropdown.d.ts +3 -0
- package/lib/inputs/select/Dropdown.js +49 -29
- package/lib/inputs/select/helper.d.ts +7 -9
- package/lib/inputs/select/helper.js +41 -11
- package/lib/inputs/select/index.d.ts +1 -0
- package/lib/inputs/select/index.js +24 -8
- package/lib/inputs/select/multiple/Selecteds.d.ts +1 -0
- package/lib/inputs/select/multiple/Selecteds.js +8 -4
- package/lib/inputs/select/multiple/index.d.ts +1 -0
- package/lib/inputs/select/multiple/index.js +109 -47
- package/lib/inputs/select/simple/index.d.ts +1 -0
- package/lib/inputs/select/simple/index.js +157 -69
- package/lib/inputs/select/types.d.ts +28 -12
- package/lib/inputs/text/index.d.ts +1 -0
- package/lib/inputs/text/index.js +5 -1
- package/lib/inputs/text/types.d.ts +2 -2
- package/lib/inputs/textarea/index.d.ts +1 -0
- package/lib/inputs/textarea/index.js +10 -4
- package/lib/inputs/textarea/types.d.ts +1 -0
- package/lib/inputs/types.d.ts +7 -3
- package/lib/internals/types.d.ts +1 -0
- package/lib/internals/withTooltip.js +82 -30
- package/lib/labelMessages/index.d.ts +2 -0
- package/lib/labelMessages/index.js +46 -27
- package/lib/labelMessages/types.d.ts +3 -1
- package/lib/labels/DangerLabel.d.ts +2 -0
- package/lib/labels/DangerLabel.js +11 -1
- package/lib/labels/DefaultLabel.d.ts +2 -0
- package/lib/labels/DefaultLabel.js +41 -19
- package/lib/labels/InfoLabel.d.ts +2 -0
- package/lib/labels/InfoLabel.js +11 -1
- package/lib/labels/PrimaryLabel.d.ts +2 -0
- package/lib/labels/PrimaryLabel.js +11 -1
- package/lib/labels/SuccessLabel.d.ts +2 -0
- package/lib/labels/SuccessLabel.js +11 -1
- package/lib/labels/WarningLabel.d.ts +2 -0
- package/lib/labels/WarningLabel.js +11 -1
- package/lib/labels/index.d.ts +3 -4
- package/lib/labels/index.js +10 -0
- package/lib/labels/label_container/index.js +7 -3
- package/lib/labels/types.d.ts +3 -1
- package/lib/list/Header.d.ts +2 -0
- package/lib/list/Header.js +7 -3
- package/lib/list/Item.d.ts +2 -0
- package/lib/list/Item.js +68 -33
- package/lib/list/Separator.js +4 -0
- package/lib/list/helpers.d.ts +2 -0
- package/lib/list/helpers.js +4 -0
- package/lib/list/index.d.ts +2 -0
- package/lib/list/index.js +60 -25
- package/lib/list/types.d.ts +5 -3
- package/lib/menus/float/MenuItem.d.ts +2 -0
- package/lib/menus/float/MenuItem.js +26 -9
- package/lib/menus/float/SubMenuContainer.js +17 -5
- package/lib/menus/float/helpers.d.ts +2 -0
- package/lib/menus/float/helpers.js +4 -0
- package/lib/menus/float/index.d.ts +2 -0
- package/lib/menus/float/index.js +21 -8
- package/lib/menus/float/types.d.ts +3 -1
- package/lib/menus/index.d.ts +3 -4
- package/lib/menus/index.js +3 -0
- package/lib/menus/sidenav/ExpandMenu.d.ts +2 -0
- package/lib/menus/sidenav/ExpandMenu.js +7 -2
- package/lib/menus/sidenav/MenuLink.d.ts +2 -0
- package/lib/menus/sidenav/MenuLink.js +12 -3
- package/lib/menus/sidenav/NavMenuGroup.d.ts +2 -0
- package/lib/menus/sidenav/NavMenuGroup.js +12 -3
- package/lib/menus/sidenav/NavMenuItem.d.ts +2 -0
- package/lib/menus/sidenav/NavMenuItem.js +56 -27
- package/lib/menus/sidenav/NavSubMenuItem.d.ts +2 -0
- package/lib/menus/sidenav/NavSubMenuItem.js +27 -8
- package/lib/menus/sidenav/helpers.d.ts +2 -0
- package/lib/menus/sidenav/helpers.js +9 -0
- package/lib/menus/sidenav/index.d.ts +2 -0
- package/lib/menus/sidenav/index.js +75 -26
- package/lib/menus/sidenav/popup_menu_search/EmptyList.d.ts +2 -0
- package/lib/menus/sidenav/popup_menu_search/EmptyList.js +7 -2
- package/lib/menus/sidenav/popup_menu_search/index.d.ts +2 -0
- package/lib/menus/sidenav/popup_menu_search/index.js +45 -15
- package/lib/menus/sidenav/types.d.ts +5 -3
- package/lib/noPermission/index.js +6 -0
- package/lib/panel/Content.d.ts +3 -1
- package/lib/panel/Content.js +22 -7
- package/lib/panel/DangerPanel.d.ts +3 -1
- package/lib/panel/DangerPanel.js +7 -0
- package/lib/panel/Default.d.ts +3 -1
- package/lib/panel/Default.js +44 -20
- package/lib/panel/Header.d.ts +3 -1
- package/lib/panel/Header.js +29 -15
- package/lib/panel/InfoPanel.d.ts +3 -1
- package/lib/panel/InfoPanel.js +7 -0
- package/lib/panel/PrimaryPanel.d.ts +3 -1
- package/lib/panel/PrimaryPanel.js +7 -0
- package/lib/panel/SuccessPanel.d.ts +3 -1
- package/lib/panel/SuccessPanel.js +7 -0
- package/lib/panel/ToolBar.d.ts +3 -1
- package/lib/panel/ToolBar.js +5 -0
- package/lib/panel/WarningPanel.d.ts +3 -1
- package/lib/panel/WarningPanel.js +7 -0
- package/lib/panel/helpers.d.ts +3 -1
- package/lib/panel/helpers.js +10 -2
- package/lib/panel/index.d.ts +4 -5
- package/lib/panel/index.js +11 -0
- package/lib/panel/types.d.ts +3 -1
- package/lib/permissionValidations.js +15 -3
- package/lib/popover/PopoverText.d.ts +2 -0
- package/lib/popover/PopoverText.js +4 -0
- package/lib/popover/PopoverTitle.d.ts +2 -0
- package/lib/popover/PopoverTitle.js +4 -0
- package/lib/popover/index.d.ts +2 -0
- package/lib/popover/index.js +22 -12
- package/lib/popover/types.d.ts +3 -1
- package/lib/progress/Bar.js +33 -20
- package/lib/progress/index.js +14 -5
- package/lib/radio/index.js +46 -23
- package/lib/skeleton/SkeletonContainer.js +9 -3
- package/lib/skeleton/index.js +22 -10
- package/lib/spinner/SpinnerLoading.js +7 -3
- package/lib/spinner/index.js +40 -18
- package/lib/split/Split.js +83 -32
- package/lib/split/SplitSide.js +18 -6
- package/lib/split/helpers.d.ts +1 -1
- package/lib/split/helpers.js +4 -0
- package/lib/split/index.d.ts +1 -4
- package/lib/split/index.js +5 -0
- package/lib/table/Body.js +29 -15
- package/lib/table/Header.js +26 -5
- package/lib/table/HeaderColumn.js +21 -10
- package/lib/table/Row.js +47 -20
- package/lib/table/RowColumn.js +29 -12
- package/lib/table/helpers.js +7 -0
- package/lib/table/index.js +62 -32
- package/lib/table/types.d.ts +6 -1
- package/lib/tabs/DropdownItems.d.ts +2 -0
- package/lib/tabs/DropdownItems.js +21 -12
- package/lib/tabs/Menu.d.ts +2 -0
- package/lib/tabs/Menu.js +15 -5
- package/lib/tabs/MenuItems.d.ts +2 -0
- package/lib/tabs/MenuItems.js +33 -23
- package/lib/tabs/Panel.d.ts +2 -0
- package/lib/tabs/Panel.js +39 -14
- package/lib/tabs/index.d.ts +2 -0
- package/lib/tabs/index.js +113 -46
- package/lib/tabs/tabHelpers.d.ts +2 -0
- package/lib/tabs/tabHelpers.js +16 -3
- package/lib/tabs/types.d.ts +3 -1
- package/lib/toolbar/ButtonBar.d.ts +2 -0
- package/lib/toolbar/ButtonBar.js +29 -13
- package/lib/toolbar/LabelBar.d.ts +2 -0
- package/lib/toolbar/LabelBar.js +28 -11
- package/lib/toolbar/Separator.js +4 -0
- package/lib/toolbar/ToolBarGroup.d.ts +2 -0
- package/lib/toolbar/ToolBarGroup.js +6 -2
- package/lib/toolbar/helpers.d.ts +2 -0
- package/lib/toolbar/helpers.js +2 -0
- package/lib/toolbar/index.d.ts +2 -0
- package/lib/toolbar/index.js +23 -7
- package/lib/toolbar/types.d.ts +4 -2
- package/lib/tooltip/index.d.ts +1 -1
- package/lib/tooltip/index.js +30 -11
- package/lib/tooltip/types.d.ts +2 -1
- package/lib/treetable/Body.js +27 -9
- package/lib/treetable/Header.js +11 -1
- package/lib/treetable/Row.js +113 -58
- package/lib/treetable/helpers.js +10 -0
- package/lib/treetable/index.js +11 -0
- package/lib/treeview/Header.js +6 -2
- package/lib/treeview/Node.js +111 -47
- package/lib/treeview/constants.js +4 -0
- package/lib/treeview/index.js +134 -54
- package/lib/treeview/types.d.ts +2 -2
- package/lib/treeview_old/Header.js +6 -1
- package/lib/treeview_old/Node.js +32 -5
- package/lib/treeview_old/index.js +9 -1
- package/lib/{types-90c43ae1.d.ts → types-c1d83632.d.ts} +3 -2
- package/lib/uitour/index.js +73 -33
- package/lib/uitour/types.d.ts +1 -1
- package/package.json +1 -1
package/lib/alerts/Message.js
CHANGED
|
@@ -1,20 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
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
|
Object.defineProperty(exports, "__esModule", {
|
|
5
6
|
value: true
|
|
6
7
|
});
|
|
7
8
|
exports.default = void 0;
|
|
9
|
+
|
|
8
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
9
12
|
var _icons = _interopRequireDefault(require("../icons"));
|
|
13
|
+
|
|
10
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
+
|
|
11
16
|
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); }
|
|
17
|
+
|
|
12
18
|
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; }
|
|
19
|
+
|
|
13
20
|
var getClass = function getClass(_ref) {
|
|
14
21
|
var customClass = _ref.customClass,
|
|
15
|
-
|
|
22
|
+
className = _ref.className;
|
|
16
23
|
return "".concat(className, " ").concat(customClass);
|
|
17
24
|
};
|
|
25
|
+
|
|
18
26
|
var getIcon = function getIcon(icon, iconName, color) {
|
|
19
27
|
if (icon !== null) {
|
|
20
28
|
return icon;
|
|
@@ -25,30 +33,32 @@ var getIcon = function getIcon(icon, iconName, color) {
|
|
|
25
33
|
size: 32
|
|
26
34
|
});
|
|
27
35
|
}
|
|
36
|
+
|
|
28
37
|
return null;
|
|
29
38
|
};
|
|
39
|
+
|
|
30
40
|
var Message = function Message(_ref2) {
|
|
31
41
|
var _ref2$handleClose = _ref2.handleClose,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
42
|
+
handleClose = _ref2$handleClose === void 0 ? function () {} : _ref2$handleClose,
|
|
43
|
+
message = _ref2.message,
|
|
44
|
+
_ref2$id = _ref2.id,
|
|
45
|
+
id = _ref2$id === void 0 ? 0 : _ref2$id,
|
|
46
|
+
_ref2$color = _ref2.color,
|
|
47
|
+
color = _ref2$color === void 0 ? '' : _ref2$color,
|
|
48
|
+
_ref2$icon = _ref2.icon,
|
|
49
|
+
icon = _ref2$icon === void 0 ? null : _ref2$icon,
|
|
50
|
+
_ref2$iconName = _ref2.iconName,
|
|
51
|
+
iconName = _ref2$iconName === void 0 ? null : _ref2$iconName,
|
|
52
|
+
_ref2$timeout = _ref2.timeout,
|
|
53
|
+
timeout = _ref2$timeout === void 0 ? 3000 : _ref2$timeout,
|
|
54
|
+
_ref2$customClass = _ref2.customClass,
|
|
55
|
+
customClass = _ref2$customClass === void 0 ? '' : _ref2$customClass,
|
|
56
|
+
_ref2$closeButton = _ref2.closeButton,
|
|
57
|
+
closeButton = _ref2$closeButton === void 0 ? false : _ref2$closeButton,
|
|
58
|
+
_ref2$className = _ref2.className,
|
|
59
|
+
className = _ref2$className === void 0 ? 'message' : _ref2$className,
|
|
60
|
+
_ref2$position = _ref2.position,
|
|
61
|
+
position = _ref2$position === void 0 ? 'centerTop' : _ref2$position;
|
|
52
62
|
(0, _react.useEffect)(function () {
|
|
53
63
|
if (timeout > 0) {
|
|
54
64
|
setTimeout(function () {
|
|
@@ -77,5 +87,6 @@ var Message = function Message(_ref2) {
|
|
|
77
87
|
}
|
|
78
88
|
}, "x") : null));
|
|
79
89
|
};
|
|
90
|
+
|
|
80
91
|
var _default = Message;
|
|
81
92
|
exports.default = _default;
|
package/lib/alerts/helpers.d.ts
CHANGED
package/lib/alerts/helpers.js
CHANGED
|
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
+
|
|
7
8
|
var _react = require("react");
|
|
9
|
+
|
|
8
10
|
var AlertProviderContext = /*#__PURE__*/(0, _react.createContext)({});
|
|
9
11
|
var _default = AlertProviderContext;
|
|
10
12
|
exports.default = _default;
|
package/lib/alerts/index.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import withAlert from './withAlert.js';
|
|
2
|
+
export { default } from './withAlert.js';
|
|
2
3
|
export { default as AlertProvider } from './AlertProvider.js';
|
|
3
4
|
import 'react';
|
|
4
5
|
import './types.js';
|
|
5
6
|
import '../@types/PositionAlert.js';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export { withAlert as default };
|
|
7
|
+
import '../@types/Icon.js';
|
|
8
|
+
import '../icons/helper.js';
|
package/lib/alerts/index.js
CHANGED
|
@@ -10,8 +10,12 @@ Object.defineProperty(exports, "AlertProvider", {
|
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
exports.default = void 0;
|
|
13
|
+
|
|
13
14
|
var _withAlert = _interopRequireDefault(require("./withAlert"));
|
|
15
|
+
|
|
14
16
|
var _AlertProvider = _interopRequireDefault(require("./AlertProvider"));
|
|
17
|
+
|
|
15
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
|
+
|
|
16
20
|
var _default = _withAlert.default;
|
|
17
21
|
exports.default = _default;
|
package/lib/alerts/types.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { PositionAlert } from '../@types/PositionAlert.js';
|
|
3
|
+
import { IconNames } from '../@types/Icon.js';
|
|
4
|
+
import '../icons/helper.js';
|
|
3
5
|
|
|
4
|
-
type AlertContainerMethods = {
|
|
6
|
+
declare type AlertContainerMethods = {
|
|
5
7
|
default: (messageConfig: DefaultMessageConfigType) => void;
|
|
6
8
|
info: (message: string, options: IMessageProps) => void;
|
|
7
9
|
custom: (message: string, options: IMessageProps) => void;
|
|
@@ -9,7 +11,7 @@ type AlertContainerMethods = {
|
|
|
9
11
|
warning: (message: string, options: IMessageProps) => void;
|
|
10
12
|
success: (message: string, options: IMessageProps) => void;
|
|
11
13
|
};
|
|
12
|
-
type DefaultMessageConfigType = {
|
|
14
|
+
declare type DefaultMessageConfigType = {
|
|
13
15
|
message: string;
|
|
14
16
|
options: IMessageProps & {
|
|
15
17
|
type: 'info' | 'warning' | 'danger' | 'success';
|
|
@@ -25,7 +27,7 @@ interface IMessageProps {
|
|
|
25
27
|
color?: string;
|
|
26
28
|
customClass?: string;
|
|
27
29
|
icon?: ReactNode | null;
|
|
28
|
-
iconName?:
|
|
30
|
+
iconName?: IconNames | null;
|
|
29
31
|
timeout?: number;
|
|
30
32
|
}
|
|
31
33
|
interface IBaseAlertProps {
|
|
@@ -37,11 +39,11 @@ interface IAlertProviderProps {
|
|
|
37
39
|
interface WithAlertContextProps {
|
|
38
40
|
alert?: AlertContainerMethods;
|
|
39
41
|
}
|
|
40
|
-
type GetClassParams = {
|
|
42
|
+
declare type GetClassParams = {
|
|
41
43
|
customClass?: string;
|
|
42
44
|
className?: string;
|
|
43
45
|
};
|
|
44
|
-
type MessagesState = {
|
|
46
|
+
declare type MessagesState = {
|
|
45
47
|
[key: string]: Array<IMessageProps>;
|
|
46
48
|
};
|
|
47
49
|
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
2
|
import { WithAlertContextProps } from './types.js';
|
|
3
3
|
import '../@types/PositionAlert.js';
|
|
4
|
+
import '../@types/Icon.js';
|
|
5
|
+
import '../icons/helper.js';
|
|
4
6
|
|
|
5
7
|
declare const withAlert: <ComponentProps extends WithAlertContextProps>(WrapperComponent: React__default.ComponentType<ComponentProps>) => (props: ComponentProps) => JSX.Element;
|
|
6
8
|
|
package/lib/alerts/withAlert.js
CHANGED
|
@@ -1,25 +1,36 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
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
|
Object.defineProperty(exports, "__esModule", {
|
|
5
6
|
value: true
|
|
6
7
|
});
|
|
7
8
|
exports.default = void 0;
|
|
9
|
+
|
|
8
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
9
12
|
var _helpers = _interopRequireDefault(require("./helpers"));
|
|
13
|
+
|
|
10
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
+
|
|
11
16
|
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); }
|
|
17
|
+
|
|
12
18
|
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; }
|
|
19
|
+
|
|
13
20
|
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); }
|
|
21
|
+
|
|
14
22
|
var withAlert = function withAlert(WrapperComponent) {
|
|
15
23
|
var GetAlert = function GetAlert(props) {
|
|
16
24
|
var _useContext = (0, _react.useContext)(_helpers.default),
|
|
17
|
-
|
|
25
|
+
alert = _useContext.alert;
|
|
26
|
+
|
|
18
27
|
return /*#__PURE__*/_react.default.createElement(WrapperComponent, _extends({}, props, {
|
|
19
28
|
alert: alert
|
|
20
29
|
}));
|
|
21
30
|
};
|
|
31
|
+
|
|
22
32
|
return GetAlert;
|
|
23
33
|
};
|
|
34
|
+
|
|
24
35
|
var _default = withAlert;
|
|
25
36
|
exports.default = _default;
|
|
@@ -26,12 +26,18 @@
|
|
|
26
26
|
&.skeleton-transparency::before {
|
|
27
27
|
@extend %skeleton-transparency;
|
|
28
28
|
}
|
|
29
|
+
&.-disabled{
|
|
30
|
+
@extend %component-disabled;
|
|
31
|
+
}
|
|
29
32
|
}
|
|
30
33
|
> .headercontainer > .innertable > .theader > .trow,
|
|
31
34
|
> .bodycontainer > .innertable > .tbody > .trow,
|
|
32
35
|
> .theader > .trow,
|
|
33
36
|
> .tbody > .trow {
|
|
34
37
|
height: 45px;
|
|
38
|
+
}
|
|
39
|
+
> .tbody > .trow-divider {
|
|
40
|
+
height: 45px;
|
|
35
41
|
}
|
|
36
42
|
> .headercontainer > .innertable > .theader > .trow > .headercolumn,
|
|
37
43
|
> .bodycontainer > .innertable > .tbody > .trow > .rowcolumn,
|
|
@@ -60,6 +66,30 @@
|
|
|
60
66
|
background-color: $component-bg-selected-color !important;
|
|
61
67
|
color: $font-selected-color;
|
|
62
68
|
}
|
|
69
|
+
.-divider {
|
|
70
|
+
color: $font-color-second;
|
|
71
|
+
font-family: 'Titillium Web';
|
|
72
|
+
font-weight: 700;
|
|
73
|
+
font-size: 16px;
|
|
74
|
+
text-align: center;
|
|
75
|
+
padding: .35rem;
|
|
76
|
+
&.-primary {
|
|
77
|
+
background-color: $primary-color;
|
|
78
|
+
}
|
|
79
|
+
&.-warning {
|
|
80
|
+
background-color: $warning-color;
|
|
81
|
+
}
|
|
82
|
+
&.-danger {
|
|
83
|
+
background-color: $danger-color;
|
|
84
|
+
}
|
|
85
|
+
&.-success {
|
|
86
|
+
background-color: $success-color;
|
|
87
|
+
}
|
|
88
|
+
&.-info {
|
|
89
|
+
background-color: $info-color;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
63
93
|
&:hover {
|
|
64
94
|
> .rowcolumn > .rowhover {
|
|
65
95
|
display: table;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@import "colors.scss";
|
|
2
|
+
|
|
1
3
|
.tooltip-component {
|
|
2
4
|
font-family: 'Roboto', sans-serif;
|
|
3
5
|
position: absolute;
|
|
@@ -5,7 +7,7 @@
|
|
|
5
7
|
background: rgba(black, 0.85);
|
|
6
8
|
border-radius: 5px;
|
|
7
9
|
color: white;
|
|
8
|
-
box-shadow: 2px 2px 3px rgba(0
|
|
10
|
+
box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.3);
|
|
9
11
|
text-align: center;
|
|
10
12
|
font-size: 13px;
|
|
11
13
|
z-index: 999999;
|
|
@@ -45,11 +47,49 @@
|
|
|
45
47
|
&.bottom::after {
|
|
46
48
|
content: " ";
|
|
47
49
|
position: absolute;
|
|
48
|
-
bottom: 100%;
|
|
50
|
+
bottom: 100%;
|
|
49
51
|
left: 50%;
|
|
50
52
|
margin-left: -5px;
|
|
51
53
|
border-width: 5px;
|
|
52
54
|
border-style: solid;
|
|
53
55
|
border-color: transparent transparent rgba(black, 0.85) transparent;
|
|
54
56
|
}
|
|
57
|
+
&.tooltip-error {
|
|
58
|
+
background: $danger-hover-color;
|
|
59
|
+
color: $default-color;
|
|
60
|
+
z-index: 99999;
|
|
61
|
+
&::before {
|
|
62
|
+
content: '';
|
|
63
|
+
position: absolute;
|
|
64
|
+
left: 0;
|
|
65
|
+
top: 0;
|
|
66
|
+
right: 0;
|
|
67
|
+
bottom: 0;
|
|
68
|
+
height: 100%;
|
|
69
|
+
width: 100%;
|
|
70
|
+
background: inherit;
|
|
71
|
+
border-radius: inherit;
|
|
72
|
+
z-index: -1;
|
|
73
|
+
opacity: 0.7;
|
|
74
|
+
animation: tooltip-component 2s ease-out infinite;
|
|
75
|
+
}
|
|
76
|
+
@keyframes tooltip-component {
|
|
77
|
+
100% {
|
|
78
|
+
transform: scale(1.05, 1.25);
|
|
79
|
+
opacity: 0;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
&.left::after {
|
|
83
|
+
border-color: transparent transparent transparent $danger-hover-color;
|
|
84
|
+
}
|
|
85
|
+
&.right::after {
|
|
86
|
+
border-color: transparent $danger-hover-color transparent transparent;
|
|
87
|
+
}
|
|
88
|
+
&.top::after {
|
|
89
|
+
border-color: $danger-hover-color transparent transparent transparent;
|
|
90
|
+
}
|
|
91
|
+
&.bottom::after {
|
|
92
|
+
border-color: transparent transparent $danger-hover-color transparent;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
55
95
|
}
|
package/lib/avatar/index.js
CHANGED
|
@@ -1,26 +1,37 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
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
|
Object.defineProperty(exports, "__esModule", {
|
|
5
6
|
value: true
|
|
6
7
|
});
|
|
7
8
|
exports.default = void 0;
|
|
9
|
+
|
|
8
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
9
12
|
var _icons = _interopRequireDefault(require("../../lib/icons"));
|
|
13
|
+
|
|
10
14
|
require("../assets/styles/avatar.scss");
|
|
15
|
+
|
|
11
16
|
var _withDropdown = _interopRequireDefault(require("../dropdown/withDropdown"));
|
|
17
|
+
|
|
12
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
|
+
|
|
13
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); }
|
|
21
|
+
|
|
14
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; }
|
|
23
|
+
|
|
15
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); }
|
|
25
|
+
|
|
16
26
|
var getClass = function getClass(_ref) {
|
|
17
27
|
var className = _ref.className,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
28
|
+
square = _ref.square,
|
|
29
|
+
disabled = _ref.disabled,
|
|
30
|
+
_ref$size = _ref.size,
|
|
31
|
+
size = _ref$size === void 0 ? 'default' : _ref$size;
|
|
22
32
|
return "avatar-component ".concat(className).concat(disabled && '-disabled', " \n ").concat(square && '-square', " ").concat(size && "-".concat(size));
|
|
23
33
|
};
|
|
34
|
+
|
|
24
35
|
var getIcon = function getIcon(iconName, icon) {
|
|
25
36
|
if (icon) {
|
|
26
37
|
return icon;
|
|
@@ -30,26 +41,28 @@ var getIcon = function getIcon(iconName, icon) {
|
|
|
30
41
|
size: 16
|
|
31
42
|
});
|
|
32
43
|
}
|
|
44
|
+
|
|
33
45
|
return null;
|
|
34
46
|
};
|
|
47
|
+
|
|
35
48
|
var Avatar = function Avatar(props) {
|
|
36
49
|
var width = props.width,
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
50
|
+
height = props.height,
|
|
51
|
+
_onClick = props.onClick,
|
|
52
|
+
color = props.color,
|
|
53
|
+
iconName = props.iconName,
|
|
54
|
+
icon = props.icon,
|
|
55
|
+
src = props.src,
|
|
56
|
+
_props$srcAlt = props.srcAlt,
|
|
57
|
+
srcAlt = _props$srcAlt === void 0 ? 'Avatar' : _props$srcAlt,
|
|
58
|
+
customClass = props.customClass,
|
|
59
|
+
targetRef = props.targetRef,
|
|
60
|
+
label = props.label,
|
|
61
|
+
dropdown = props.dropdown,
|
|
62
|
+
showDropdown = props.showDropdown,
|
|
63
|
+
getDropdownPopup = props.getDropdownPopup,
|
|
64
|
+
style = props.style,
|
|
65
|
+
id = props.id;
|
|
53
66
|
var dropdownRef = (0, _react.useRef)(null);
|
|
54
67
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
55
68
|
"data-testid": "avatar",
|
|
@@ -82,5 +95,7 @@ var Avatar = function Avatar(props) {
|
|
|
82
95
|
alt: srcAlt
|
|
83
96
|
}), label), dropdown && getDropdownPopup && getDropdownPopup(dropdownRef.current));
|
|
84
97
|
};
|
|
98
|
+
|
|
85
99
|
var _default = (0, _withDropdown.default)(Avatar);
|
|
100
|
+
|
|
86
101
|
exports.default = _default;
|
package/lib/badge/index.js
CHANGED
|
@@ -4,20 +4,24 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
+
|
|
7
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
8
10
|
require("../assets/styles/badge.scss");
|
|
11
|
+
|
|
9
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
+
|
|
10
14
|
var Badge = function Badge(props) {
|
|
11
15
|
var _props$color = props.color,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
color = _props$color === void 0 ? 'default' : _props$color,
|
|
17
|
+
customClass = props.customClass,
|
|
18
|
+
customClassForBadge = props.customClassForBadge,
|
|
19
|
+
children = props.children,
|
|
20
|
+
content = props.content,
|
|
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;
|
|
21
25
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
22
26
|
className: "badge-component ".concat(customClass)
|
|
23
27
|
}, children, /*#__PURE__*/_react.default.createElement("span", {
|
|
@@ -28,5 +32,6 @@ var Badge = function Badge(props) {
|
|
|
28
32
|
}
|
|
29
33
|
}, content));
|
|
30
34
|
};
|
|
35
|
+
|
|
31
36
|
var _default = Badge;
|
|
32
37
|
exports.default = _default;
|
|
@@ -4,14 +4,20 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
+
|
|
7
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
8
10
|
var _Button = _interopRequireDefault(require("./Button"));
|
|
11
|
+
|
|
9
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
+
|
|
10
14
|
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); }
|
|
15
|
+
|
|
11
16
|
var ActivateButton = function ActivateButton(props) {
|
|
12
17
|
return /*#__PURE__*/_react.default.createElement(_Button.default, _extends({}, props, {
|
|
13
18
|
iconName: "undo"
|
|
14
19
|
}));
|
|
15
20
|
};
|
|
21
|
+
|
|
16
22
|
var _default = ActivateButton;
|
|
17
23
|
exports.default = _default;
|
package/lib/buttons/AddButton.js
CHANGED
|
@@ -4,11 +4,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
+
|
|
7
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
8
10
|
var _SuccessButton = _interopRequireDefault(require("./SuccessButton"));
|
|
11
|
+
|
|
9
12
|
var _icons = _interopRequireDefault(require("../icons"));
|
|
13
|
+
|
|
10
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
+
|
|
11
16
|
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); }
|
|
17
|
+
|
|
12
18
|
var AddButton = function AddButton(props) {
|
|
13
19
|
return /*#__PURE__*/_react.default.createElement(_SuccessButton.default, _extends({}, props, {
|
|
14
20
|
icon: /*#__PURE__*/_react.default.createElement(_icons.default, {
|
|
@@ -17,5 +23,6 @@ var AddButton = function AddButton(props) {
|
|
|
17
23
|
})
|
|
18
24
|
}));
|
|
19
25
|
};
|
|
26
|
+
|
|
20
27
|
var _default = AddButton;
|
|
21
28
|
exports.default = _default;
|
package/lib/buttons/Button.d.ts
CHANGED
package/lib/buttons/Button.js
CHANGED
|
@@ -1,24 +1,37 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
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
|
Object.defineProperty(exports, "__esModule", {
|
|
5
6
|
value: true
|
|
6
7
|
});
|
|
7
8
|
exports.default = void 0;
|
|
9
|
+
|
|
8
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
9
12
|
var _DefaultButton = _interopRequireDefault(require("./DefaultButton"));
|
|
13
|
+
|
|
10
14
|
var _split_button = _interopRequireDefault(require("./split_button"));
|
|
15
|
+
|
|
11
16
|
var _excluded = ["split"];
|
|
17
|
+
|
|
12
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
|
+
|
|
13
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); }
|
|
21
|
+
|
|
14
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; }
|
|
23
|
+
|
|
15
24
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
25
|
+
|
|
16
26
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
27
|
+
|
|
17
28
|
var Button = function Button(_ref) {
|
|
18
29
|
var _ref$split = _ref.split,
|
|
19
|
-
|
|
20
|
-
|
|
30
|
+
split = _ref$split === void 0 ? false : _ref$split,
|
|
31
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
32
|
+
|
|
21
33
|
return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, split ? /*#__PURE__*/_react.default.createElement(_split_button.default, rest) : /*#__PURE__*/_react.default.createElement(_DefaultButton.default, rest));
|
|
22
34
|
};
|
|
35
|
+
|
|
23
36
|
var _default = Button;
|
|
24
37
|
exports.default = _default;
|
|
@@ -4,13 +4,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
+
|
|
7
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
8
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
|
|
9
12
|
var ButtonsGroup = function ButtonsGroup(_ref) {
|
|
10
13
|
var children = _ref.children;
|
|
11
14
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
12
15
|
className: "btn-group"
|
|
13
16
|
}, children);
|
|
14
17
|
};
|
|
18
|
+
|
|
15
19
|
var _default = ButtonsGroup;
|
|
16
20
|
exports.default = _default;
|