@pushwoosh/dumb-components 1.0.0 → 1.0.2
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/ActionsGroup/ActionsGroup.d.ts +3 -0
- package/ActionsGroup/ActionsGroup.js +18 -0
- package/ActionsGroup/ActionsGroupItem.d.ts +3 -0
- package/ActionsGroup/ActionsGroupItem.js +12 -0
- package/ActionsGroup/index.d.ts +3 -0
- package/ActionsGroup/index.js +2 -0
- package/ActionsGroup/styles.d.ts +7 -0
- package/ActionsGroup/styles.js +22 -0
- package/ActionsGroup/types.d.ts +12 -0
- package/Badge/Badge.d.ts +3 -0
- package/Badge/Badge.js +16 -0
- package/Badge/index.d.ts +2 -0
- package/Badge/index.js +1 -0
- package/Badge/maps.d.ts +19 -0
- package/Badge/maps.js +19 -0
- package/Badge/styles.d.ts +5 -0
- package/Badge/styles.js +14 -0
- package/Badge/types.d.ts +8 -0
- package/Banner/Banner.d.ts +3 -0
- package/Banner/Banner.js +82 -0
- package/Banner/colors.d.ts +12 -0
- package/Banner/colors.js +115 -0
- package/Banner/index.d.ts +2 -0
- package/Banner/index.js +1 -0
- package/Banner/maps.d.ts +27 -0
- package/Banner/maps.js +19 -0
- package/Banner/styles.d.ts +29 -0
- package/Banner/styles.js +45 -0
- package/Banner/types.d.ts +20 -0
- package/Button/Button.d.ts +5 -0
- package/Button/Button.js +48 -0
- package/Button/GhostButton.d.ts +1 -0
- package/Button/GhostButton.js +5 -0
- package/Button/colors.d.ts +16 -0
- package/Button/colors.js +130 -0
- package/Button/index.d.ts +3 -0
- package/Button/index.js +2 -0
- package/Button/maps.d.ts +132 -0
- package/Button/maps.js +37 -0
- package/Button/styles.d.ts +120 -0
- package/Button/styles.js +103 -0
- package/Button/types.d.ts +26 -0
- package/CardMetric/CardChildren.d.ts +3 -0
- package/CardMetric/CardChildren.js +25 -0
- package/CardMetric/CardCollapse.d.ts +3 -0
- package/CardMetric/CardCollapse.js +13 -0
- package/CardMetric/CardMetric.d.ts +3 -0
- package/CardMetric/CardMetric.js +62 -0
- package/CardMetric/index.d.ts +2 -0
- package/CardMetric/index.js +1 -0
- package/CardMetric/styles.d.ts +13 -0
- package/CardMetric/styles.js +74 -0
- package/CardMetric/types.d.ts +34 -0
- package/Checkbox/Checkbox.d.ts +3 -0
- package/Checkbox/Checkbox.js +47 -0
- package/Checkbox/index.d.ts +2 -0
- package/Checkbox/index.js +1 -0
- package/Checkbox/maps.d.ts +3 -0
- package/Checkbox/maps.js +7 -0
- package/Checkbox/styles.d.ts +9 -0
- package/Checkbox/styles.js +17 -0
- package/Checkbox/types.d.ts +15 -0
- package/Drawer/Drawer.d.ts +3 -0
- package/Drawer/Drawer.js +62 -0
- package/Drawer/index.d.ts +1 -0
- package/Drawer/index.js +1 -0
- package/Drawer/maps.d.ts +6 -0
- package/Drawer/maps.js +6 -0
- package/Drawer/styles.d.ts +11 -0
- package/Drawer/styles.js +57 -0
- package/Drawer/types.d.ts +18 -0
- package/DropdownMenu/components/DropdownMenu/DropdownMenu.d.ts +3 -0
- package/DropdownMenu/components/DropdownMenu/DropdownMenu.js +27 -0
- package/DropdownMenu/components/DropdownMenu/hooks.d.ts +4 -0
- package/DropdownMenu/components/DropdownMenu/hooks.js +10 -0
- package/DropdownMenu/components/DropdownMenu/index.d.ts +2 -0
- package/DropdownMenu/components/DropdownMenu/index.js +2 -0
- package/DropdownMenu/components/DropdownMenu/types.d.ts +23 -0
- package/DropdownMenu/components/DropdownMenuContainer/DropdownMenuContainer.d.ts +3 -0
- package/DropdownMenu/components/DropdownMenuContainer/DropdownMenuContainer.js +79 -0
- package/DropdownMenu/components/DropdownMenuContainer/index.d.ts +1 -0
- package/DropdownMenu/components/DropdownMenuContainer/index.js +1 -0
- package/DropdownMenu/components/DropdownMenuContainer/maps.d.ts +26 -0
- package/DropdownMenu/components/DropdownMenuContainer/maps.js +11 -0
- package/DropdownMenu/components/DropdownMenuContainer/styles.d.ts +35 -0
- package/DropdownMenu/components/DropdownMenuContainer/styles.js +109 -0
- package/DropdownMenu/components/DropdownMenuContainer/types.d.ts +19 -0
- package/DropdownMenu/components/DropdownMenuGroup/DropdownMenuGroup.d.ts +3 -0
- package/DropdownMenu/components/DropdownMenuGroup/DropdownMenuGroup.js +12 -0
- package/DropdownMenu/components/DropdownMenuGroup/index.d.ts +1 -0
- package/DropdownMenu/components/DropdownMenuGroup/index.js +1 -0
- package/DropdownMenu/components/DropdownMenuGroup/styles.d.ts +1 -0
- package/DropdownMenu/components/DropdownMenuGroup/styles.js +7 -0
- package/DropdownMenu/components/DropdownMenuGroup/types.d.ts +5 -0
- package/DropdownMenu/components/DropdownMenuGroup/types.js +1 -0
- package/DropdownMenu/components/DropdownMenuItem/DropdownMenuItem.d.ts +5 -0
- package/DropdownMenu/components/DropdownMenuItem/DropdownMenuItem.js +38 -0
- package/DropdownMenu/components/DropdownMenuItem/index.d.ts +2 -0
- package/DropdownMenu/components/DropdownMenuItem/index.js +2 -0
- package/DropdownMenu/components/DropdownMenuItem/styles.d.ts +5 -0
- package/DropdownMenu/components/DropdownMenuItem/styles.js +73 -0
- package/DropdownMenu/components/DropdownMenuItem/types.d.ts +24 -0
- package/DropdownMenu/components/DropdownMenuItem/types.js +1 -0
- package/DropdownMenu/components/DropdownMenuItemCheckbox/DropdownMenuItemCheckbox.d.ts +3 -0
- package/DropdownMenu/components/DropdownMenuItemCheckbox/DropdownMenuItemCheckbox.js +9 -0
- package/DropdownMenu/components/DropdownMenuItemCheckbox/index.d.ts +1 -0
- package/DropdownMenu/components/DropdownMenuItemCheckbox/index.js +1 -0
- package/DropdownMenu/components/DropdownMenuItemCheckbox/styles.d.ts +1 -0
- package/DropdownMenu/components/DropdownMenuItemCheckbox/styles.js +8 -0
- package/DropdownMenu/components/DropdownMenuItemPick/DropdownMenuItemPick.d.ts +3 -0
- package/DropdownMenu/components/DropdownMenuItemPick/DropdownMenuItemPick.js +16 -0
- package/DropdownMenu/components/DropdownMenuItemPick/index.d.ts +1 -0
- package/DropdownMenu/components/DropdownMenuItemPick/index.js +1 -0
- package/DropdownMenu/components/DropdownMenuItemPick/styles.d.ts +3 -0
- package/DropdownMenu/components/DropdownMenuItemPick/styles.js +8 -0
- package/DropdownMenu/components/DropdownMenuItemPick/types.d.ts +2 -0
- package/DropdownMenu/components/DropdownMenuItemPick/types.js +1 -0
- package/DropdownMenu/components/DropdownMenuItemRadio/DropdownMenuItemRadio.d.ts +3 -0
- package/DropdownMenu/components/DropdownMenuItemRadio/DropdownMenuItemRadio.js +9 -0
- package/DropdownMenu/components/DropdownMenuItemRadio/index.d.ts +1 -0
- package/DropdownMenu/components/DropdownMenuItemRadio/index.js +1 -0
- package/DropdownMenu/components/DropdownMenuItemRadio/styles.d.ts +1 -0
- package/DropdownMenu/components/DropdownMenuItemRadio/styles.js +8 -0
- package/DropdownMenu/components/DropdownMenuNested/DropdownMenuNested.d.ts +3 -0
- package/DropdownMenu/components/DropdownMenuNested/DropdownMenuNested.js +69 -0
- package/DropdownMenu/components/DropdownMenuNested/index.d.ts +1 -0
- package/DropdownMenu/components/DropdownMenuNested/index.js +1 -0
- package/DropdownMenu/components/DropdownMenuNested/styles.d.ts +8 -0
- package/DropdownMenu/components/DropdownMenuNested/styles.js +35 -0
- package/DropdownMenu/components/DropdownMenuNested/types.d.ts +6 -0
- package/DropdownMenu/components/DropdownMenuNested/types.js +1 -0
- package/DropdownMenu/components/DropdownMenuWindow/DropdownMenuWindow.d.ts +3 -0
- package/DropdownMenu/components/DropdownMenuWindow/DropdownMenuWindow.js +12 -0
- package/DropdownMenu/components/DropdownMenuWindow/index.d.ts +1 -0
- package/DropdownMenu/components/DropdownMenuWindow/index.js +1 -0
- package/DropdownMenu/components/DropdownMenuWindow/styles.d.ts +1 -0
- package/DropdownMenu/components/DropdownMenuWindow/styles.js +7 -0
- package/DropdownMenu/components/DropdownMenuWindow/types.d.ts +5 -0
- package/DropdownMenu/components/DropdownMenuWindow/types.js +1 -0
- package/DropdownMenu/index.d.ts +9 -0
- package/DropdownMenu/index.js +9 -0
- package/EditableField/EditableField.d.ts +3 -0
- package/EditableField/EditableField.js +61 -0
- package/EditableField/index.d.ts +2 -0
- package/EditableField/index.js +1 -0
- package/EditableField/styles.d.ts +8 -0
- package/EditableField/styles.js +25 -0
- package/EditableField/types.d.ts +15 -0
- package/EditableField/types.js +1 -0
- package/EmailTemplatePreview/EmailTemplatePreview.d.ts +3 -11
- package/EmailTemplatePreview/EmailTemplatePreview.js +11 -10
- package/EmailTemplatePreview/components/NoEmailTemplatePreview/NoEmailTemplatePreview.d.ts +2 -2
- package/EmailTemplatePreview/components/NoEmailTemplatePreview/NoEmailTemplatePreview.js +3 -3
- package/EmailTemplatePreview/components/NoEmailTemplatePreview/assets/PW_logo.svg +1 -5
- package/EmailTemplatePreview/components/NoEmailTemplatePreview/{styled.js → styles.js} +2 -2
- package/EmailTemplatePreview/{styled.js → styles.js} +1 -1
- package/EmailTemplatePreview/types.d.ts +8 -0
- package/EmailTemplatePreview/types.js +1 -0
- package/ExportResult/ExportResult.d.ts +2 -2
- package/ExportResult/ExportResult.js +11 -10
- package/ExportResult/{styled.js → styles.js} +5 -5
- package/FieldBox/FieldBox.d.ts +3 -3
- package/FieldBox/FieldBox.js +8 -7
- package/FieldBox/index.d.ts +1 -1
- package/FieldBox/types.js +1 -0
- package/InputFile/InputFile.d.ts +3 -0
- package/InputFile/InputFile.js +88 -0
- package/InputFile/index.d.ts +1 -0
- package/InputFile/index.js +1 -0
- package/InputFile/styles.d.ts +5 -0
- package/InputFile/styles.js +29 -0
- package/InputFile/types.d.ts +25 -0
- package/InputFile/types.js +1 -0
- package/Link/Link.d.ts +5 -0
- package/Link/Link.js +12 -0
- package/Link/index.d.ts +1 -0
- package/Link/index.js +1 -0
- package/Link/styles.d.ts +1 -0
- package/Link/styles.js +7 -0
- package/Link/types.d.ts +21 -0
- package/Link/types.js +1 -0
- package/Modal/components/Modal/Modal.d.ts +3 -0
- package/Modal/components/Modal/Modal.js +51 -0
- package/Modal/components/Modal/index.d.ts +1 -0
- package/Modal/components/Modal/index.js +1 -0
- package/Modal/components/Modal/maps.d.ts +6 -0
- package/Modal/components/Modal/maps.js +6 -0
- package/Modal/components/Modal/styles.d.ts +13 -0
- package/Modal/components/Modal/styles.js +45 -0
- package/Modal/components/Modal/types.d.ts +13 -0
- package/Modal/components/Modal/types.js +1 -0
- package/Modal/components/ModalConfirm/ModalConfirm.d.ts +3 -0
- package/Modal/components/ModalConfirm/ModalConfirm.js +54 -0
- package/Modal/components/ModalConfirm/ModalConfirmProvider.d.ts +4 -0
- package/Modal/components/ModalConfirm/ModalConfirmProvider.js +35 -0
- package/Modal/components/ModalConfirm/hooks.d.ts +2 -0
- package/Modal/components/ModalConfirm/hooks.js +9 -0
- package/Modal/components/ModalConfirm/index.d.ts +3 -0
- package/Modal/components/ModalConfirm/index.js +3 -0
- package/Modal/components/ModalConfirm/types.d.ts +20 -0
- package/Modal/components/ModalConfirm/types.js +1 -0
- package/Modal/components/ModalContent/index.d.ts +1 -0
- package/Modal/components/ModalContent/index.js +1 -0
- package/Modal/components/ModalContent/styled.d.ts +19 -0
- package/Modal/components/ModalContent/styled.js +29 -0
- package/Modal/components/ModalTitle/ModalTitle.d.ts +3 -0
- package/Modal/components/ModalTitle/ModalTitle.js +18 -0
- package/Modal/components/ModalTitle/index.d.ts +1 -0
- package/Modal/components/ModalTitle/index.js +1 -0
- package/Modal/components/ModalTitle/styles.d.ts +1 -0
- package/Modal/components/ModalTitle/styles.js +8 -0
- package/Modal/components/ModalTitle/types.d.ts +5 -0
- package/Modal/components/ModalTitle/types.js +1 -0
- package/Modal/index.d.ts +4 -0
- package/Modal/index.js +4 -0
- package/NumberPicker/NumberPicker.js +2 -2
- package/NumberPicker/{AutosizeInput.d.ts → components/AutosizeInput/AutosizeInput.d.ts} +1 -1
- package/NumberPicker/{AutosizeInput.js → components/AutosizeInput/AutosizeInput.js} +3 -3
- package/NumberPicker/components/AutosizeInput/index.d.ts +1 -0
- package/NumberPicker/components/AutosizeInput/index.js +1 -0
- package/NumberPicker/{AutosizeInput.styled.js → components/AutosizeInput/styles.js} +1 -1
- package/NumberPicker/components/AutosizeInput/types.js +1 -0
- package/NumberPicker/{styled.js → styles.js} +3 -3
- package/PageHeader/components/AutosizeInput/AutosizeInput.d.ts +3 -0
- package/PageHeader/components/AutosizeInput/AutosizeInput.js +80 -0
- package/PageHeader/components/AutosizeInput/constants.d.ts +2 -0
- package/PageHeader/components/AutosizeInput/constants.js +2 -0
- package/PageHeader/components/AutosizeInput/index.d.ts +1 -0
- package/PageHeader/components/AutosizeInput/index.js +1 -0
- package/PageHeader/components/AutosizeInput/styles.d.ts +5 -0
- package/PageHeader/components/AutosizeInput/styles.js +20 -0
- package/PageHeader/components/AutosizeInput/types.d.ts +10 -0
- package/PageHeader/components/AutosizeInput/types.js +1 -0
- package/PageHeader/components/PageHeader/PageHeader.d.ts +3 -0
- package/PageHeader/components/PageHeader/PageHeader.js +51 -0
- package/PageHeader/components/PageHeader/index.d.ts +1 -0
- package/PageHeader/components/PageHeader/index.js +1 -0
- package/PageHeader/components/PageHeader/styles.d.ts +9 -0
- package/PageHeader/components/PageHeader/styles.js +29 -0
- package/PageHeader/components/PageHeader/types.d.ts +15 -0
- package/PageHeader/components/PageHeader/types.js +1 -0
- package/PageHeader/components/PageHeaderEditable/PageHeaderEditable.d.ts +3 -0
- package/PageHeader/components/PageHeaderEditable/PageHeaderEditable.js +67 -0
- package/PageHeader/components/PageHeaderEditable/index.d.ts +1 -0
- package/PageHeader/components/PageHeaderEditable/index.js +1 -0
- package/PageHeader/components/PageHeaderEditable/styles.d.ts +10 -0
- package/PageHeader/components/PageHeaderEditable/styles.js +33 -0
- package/PageHeader/components/PageHeaderEditable/types.d.ts +21 -0
- package/PageHeader/components/PageHeaderEditable/types.js +1 -0
- package/PageHeader/components/PageHeaderError/PageHeaderError.d.ts +3 -0
- package/PageHeader/components/PageHeaderError/PageHeaderError.js +19 -0
- package/PageHeader/components/PageHeaderError/index.d.ts +1 -0
- package/PageHeader/components/PageHeaderError/index.js +1 -0
- package/PageHeader/components/PageHeaderError/styles.d.ts +6 -0
- package/PageHeader/components/PageHeaderError/styles.js +20 -0
- package/PageHeader/components/PageHeaderError/types.d.ts +5 -0
- package/PageHeader/components/PageHeaderError/types.js +1 -0
- package/PageHeader/components/PageHeaderSkeleton/PageHeaderSkeleton.d.ts +2 -0
- package/PageHeader/components/PageHeaderSkeleton/PageHeaderSkeleton.js +20 -0
- package/PageHeader/components/PageHeaderSkeleton/index.d.ts +1 -0
- package/PageHeader/components/PageHeaderSkeleton/index.js +1 -0
- package/PageHeader/components/PageHeaderSkeleton/styles.d.ts +5 -0
- package/PageHeader/components/PageHeaderSkeleton/styles.js +15 -0
- package/PageHeader/index.d.ts +3 -0
- package/PageHeader/index.js +3 -0
- package/Pagination/Pagination.d.ts +3 -0
- package/Pagination/Pagination.js +85 -0
- package/Pagination/helpers.d.ts +1 -0
- package/Pagination/helpers.js +4 -0
- package/Pagination/index.d.ts +1 -0
- package/Pagination/index.js +1 -0
- package/Pagination/styles.d.ts +8 -0
- package/Pagination/styles.js +35 -0
- package/Pagination/types.d.ts +9 -0
- package/Pagination/types.js +1 -0
- package/Popover/Popover.d.ts +3 -0
- package/Popover/Popover.js +44 -0
- package/Popover/index.d.ts +4 -0
- package/Popover/index.js +2 -0
- package/Popover/styles.d.ts +6 -0
- package/Popover/styles.js +19 -0
- package/Popover/types.d.ts +12 -0
- package/Popover/types.js +1 -0
- package/ProgressBar/ProgressBar.d.ts +2 -2
- package/ProgressBar/ProgressBar.js +20 -17
- package/ProgressBar/{styled.js → styles.js} +10 -10
- package/PushPreview/PushPreview.js +4 -4
- package/PushPreview/{styled.js → styles.js} +8 -8
- package/Radio/Radio.d.ts +3 -0
- package/Radio/Radio.js +37 -0
- package/Radio/index.d.ts +2 -0
- package/Radio/index.js +1 -0
- package/Radio/maps.d.ts +3 -0
- package/Radio/maps.js +8 -0
- package/Radio/styled.d.ts +5 -0
- package/Radio/styled.js +13 -0
- package/Radio/types.d.ts +12 -0
- package/Radio/types.js +1 -0
- package/ReCaptcha/ReCaptcha.d.ts +2 -0
- package/ReCaptcha/ReCaptcha.js +8 -0
- package/ReCaptcha/constants.d.ts +3 -0
- package/ReCaptcha/constants.js +4 -0
- package/ReCaptcha/helpers.d.ts +1 -0
- package/ReCaptcha/helpers.js +15 -0
- package/ReCaptcha/hooks.d.ts +2 -0
- package/ReCaptcha/hooks.js +66 -0
- package/ReCaptcha/index.d.ts +3 -0
- package/ReCaptcha/index.js +3 -0
- package/ReCaptcha/styles.d.ts +1 -0
- package/ReCaptcha/styles.js +5 -0
- package/ReCaptcha/types.d.ts +8 -0
- package/ReCaptcha/types.js +1 -0
- package/Skeleton/TextSkeleton.d.ts +3 -0
- package/Skeleton/TextSkeleton.js +16 -0
- package/Skeleton/index.d.ts +2 -0
- package/Skeleton/index.js +2 -0
- package/Skeleton/styles.d.ts +4 -0
- package/Skeleton/styles.js +33 -0
- package/Skeleton/types.d.ts +16 -0
- package/Skeleton/types.js +1 -0
- package/SortButton/SortButton.d.ts +6 -0
- package/SortButton/SortButton.js +33 -0
- package/SortButton/constants.d.ts +2 -0
- package/SortButton/constants.js +1 -0
- package/SortButton/index.d.ts +1 -0
- package/SortButton/index.js +1 -0
- package/SortButton/maps.d.ts +10 -0
- package/SortButton/maps.js +15 -0
- package/SortButton/styles.d.ts +3 -0
- package/SortButton/styles.js +9 -0
- package/SortButton/types.d.ts +14 -0
- package/SortButton/types.js +1 -0
- package/Spinner/Spinner.d.ts +3 -0
- package/Spinner/Spinner.js +20 -0
- package/Spinner/assets/index.d.ts +4 -0
- package/Spinner/assets/index.js +6 -0
- package/Spinner/assets/spinner.medium.svg +1 -0
- package/Spinner/assets/spinner.small.svg +1 -0
- package/Spinner/index.d.ts +2 -0
- package/Spinner/index.js +1 -0
- package/Spinner/maps.d.ts +5 -0
- package/Spinner/maps.js +5 -0
- package/Spinner/styles.d.ts +5 -0
- package/Spinner/styles.js +20 -0
- package/Spinner/types.d.ts +6 -0
- package/Spinner/types.js +1 -0
- package/StatisticCard/StatisticCard.d.ts +2 -2
- package/StatisticCard/StatisticCard.js +16 -15
- package/Switch/Switch.d.ts +3 -0
- package/Switch/Switch.js +23 -0
- package/Switch/index.d.ts +1 -0
- package/Switch/index.js +1 -0
- package/Switch/styles.d.ts +5 -0
- package/Switch/styles.js +62 -0
- package/Switch/types.d.ts +15 -0
- package/Switch/types.js +1 -0
- package/Tabs/{tab/tab.d.ts → components/Tab/Tab.d.ts} +2 -2
- package/Tabs/{tab/tab.js → components/Tab/Tab.js} +2 -2
- package/Tabs/components/Tab/index.d.ts +1 -0
- package/Tabs/components/Tab/index.js +1 -0
- package/Tabs/{tab/tab.types.d.ts → components/Tab/types.d.ts} +1 -1
- package/Tabs/components/Tab/types.js +1 -0
- package/Tabs/{tab-bar/tab-bar.js → components/TabBar/TabBar.js} +2 -2
- package/Tabs/components/TabBar/index.d.ts +1 -0
- package/Tabs/components/TabBar/index.js +1 -0
- package/Tabs/{tab-bar/tab-bar.styles.js → components/TabBar/styles.js} +2 -2
- package/Tabs/components/TabBar/types.js +1 -0
- package/Tabs/{tabs-list-slide-frame/tabs-list-slide-frame.d.ts → components/TabBarScrollableFrame/TabBarScrollableFrame.d.ts} +1 -1
- package/Tabs/{tabs-list-slide-frame/tabs-list-slide-frame.js → components/TabBarScrollableFrame/TabBarScrollableFrame.js} +2 -2
- package/Tabs/components/TabBarScrollableFrame/index.d.ts +1 -0
- package/Tabs/components/TabBarScrollableFrame/index.js +1 -0
- package/Tabs/{tabs-list-slide-frame/tabs-list-slide-frame.styles.js → components/TabBarScrollableFrame/styles.js} +5 -5
- package/Tabs/components/TabBarScrollableFrame/types.js +1 -0
- package/Tabs/{tab-base/tab-base.js → components/TabBase/TabBase.js} +1 -1
- package/Tabs/components/TabBase/index.d.ts +1 -0
- package/Tabs/components/TabBase/index.js +1 -0
- package/Tabs/{tab-base/tab-base.styles.js → components/TabBase/styles.js} +4 -4
- package/Tabs/components/TabBase/types.js +1 -0
- package/Tabs/{tab-panel/tab-panel.d.ts → components/TabPanel/TabPanel.d.ts} +1 -1
- package/Tabs/{tab-panel/tab-panel.js → components/TabPanel/TabPanel.js} +1 -1
- package/Tabs/components/TabPanel/index.d.ts +1 -0
- package/Tabs/components/TabPanel/index.js +1 -0
- package/Tabs/{tab-panel → components/TabPanel}/styles.js +1 -1
- package/Tabs/{tab-panel/tab-panel.types.d.ts → components/TabPanel/types.d.ts} +1 -1
- package/Tabs/components/TabPanel/types.js +1 -0
- package/Tabs/{tabs/tabs.d.ts → components/Tabs/Tabs.d.ts} +1 -1
- package/Tabs/{tabs/tabs.js → components/Tabs/Tabs.js} +1 -1
- package/Tabs/components/Tabs/index.d.ts +1 -0
- package/Tabs/components/Tabs/index.js +1 -0
- package/Tabs/{tabs → components/Tabs}/styles.js +1 -1
- package/Tabs/{tabs/tabs.types.d.ts → components/Tabs/types.d.ts} +1 -1
- package/Tabs/components/Tabs/types.js +1 -0
- package/Tabs/{tabs.context.d.ts → context.d.ts} +1 -1
- package/Tabs/index.d.ts +5 -5
- package/Tabs/index.js +4 -5
- package/Tabs/types.js +1 -0
- package/Toast/Toast.d.ts +3 -0
- package/Toast/Toast.js +62 -0
- package/Toast/ToastProvider.d.ts +4 -0
- package/Toast/ToastProvider.js +45 -0
- package/Toast/constants.d.ts +8 -0
- package/Toast/constants.js +8 -0
- package/Toast/hooks.d.ts +2 -0
- package/Toast/hooks.js +9 -0
- package/Toast/index.d.ts +3 -0
- package/Toast/index.js +3 -0
- package/Toast/styles.d.ts +8 -0
- package/Toast/styles.js +23 -0
- package/Toast/types.d.ts +28 -0
- package/Toast/types.js +1 -0
- package/Tooltip/Tooltip.d.ts +3 -0
- package/Tooltip/Tooltip.js +47 -0
- package/Tooltip/index.d.ts +2 -0
- package/Tooltip/index.js +1 -0
- package/Tooltip/maps.d.ts +48 -0
- package/Tooltip/maps.js +161 -0
- package/Tooltip/styles.d.ts +5 -0
- package/Tooltip/styles.js +22 -0
- package/Tooltip/types.d.ts +14 -0
- package/Tooltip/types.js +1 -0
- package/hooks/index.d.ts +2 -0
- package/hooks/index.js +2 -0
- package/hooks/useElementWidth.d.ts +11 -0
- package/hooks/useElementWidth.js +27 -0
- package/hooks/useOnClickOutside.d.ts +4 -0
- package/hooks/useOnClickOutside.js +23 -0
- package/index.d.ts +24 -3
- package/index.js +22 -1
- package/package.json +6 -5
- package/Tabs/tab/index.d.ts +0 -2
- package/Tabs/tab/index.js +0 -2
- package/Tabs/tab-bar/index.d.ts +0 -2
- package/Tabs/tab-bar/index.js +0 -2
- package/Tabs/tab-base/index.d.ts +0 -3
- package/Tabs/tab-base/index.js +0 -3
- package/Tabs/tab-panel/index.d.ts +0 -2
- package/Tabs/tab-panel/index.js +0 -2
- package/Tabs/tabs/index.d.ts +0 -2
- package/Tabs/tabs/index.js +0 -2
- package/Tabs/tabs-list-slide-frame/index.d.ts +0 -3
- package/Tabs/tabs-list-slide-frame/index.js +0 -3
- package/{FieldBox/FieldBox.types.js → ActionsGroup/types.js} +0 -0
- package/{NumberPicker/AutosizeInput.types.js → Badge/types.js} +0 -0
- package/{Tabs/tab-bar/tab-bar.types.js → Banner/types.js} +0 -0
- package/{Tabs/tab-base/tab-base.types.js → Button/types.js} +0 -0
- package/{Tabs/tab-panel/tab-panel.types.js → CardMetric/types.js} +0 -0
- package/{Tabs/tab/tab.types.js → Checkbox/types.js} +0 -0
- package/{Tabs/tabs-list-slide-frame/tabs-list-slide-frame.types.js → Drawer/types.js} +0 -0
- package/{Tabs/tabs.types.js → DropdownMenu/components/DropdownMenu/types.js} +0 -0
- package/{Tabs/tabs/tabs.types.js → DropdownMenu/components/DropdownMenuContainer/types.js} +0 -0
- package/EmailTemplatePreview/components/NoEmailTemplatePreview/{styled.d.ts → styles.d.ts} +0 -0
- package/EmailTemplatePreview/{styled.d.ts → styles.d.ts} +0 -0
- package/ExportResult/{styled.d.ts → styles.d.ts} +0 -0
- package/FieldBox/{FieldBox.types.d.ts → types.d.ts} +0 -0
- package/NumberPicker/{AutosizeInput.constants.d.ts → components/AutosizeInput/constants.d.ts} +0 -0
- package/NumberPicker/{AutosizeInput.constants.js → components/AutosizeInput/constants.js} +0 -0
- package/NumberPicker/{AutosizeInput.styled.d.ts → components/AutosizeInput/styles.d.ts} +0 -0
- package/NumberPicker/{AutosizeInput.types.d.ts → components/AutosizeInput/types.d.ts} +0 -0
- package/NumberPicker/{styled.d.ts → styles.d.ts} +0 -0
- package/ProgressBar/{styled.d.ts → styles.d.ts} +0 -0
- package/PushPreview/{constants/urls.d.ts → constants.d.ts} +0 -0
- package/PushPreview/{constants/urls.js → constants.js} +0 -0
- package/PushPreview/{helpers/helpers.d.ts → helpers.d.ts} +0 -0
- package/PushPreview/{helpers/helpers.js → helpers.js} +0 -0
- package/PushPreview/{styled.d.ts → styles.d.ts} +0 -0
- package/Tabs/{tab-bar/tab-bar.d.ts → components/TabBar/TabBar.d.ts} +0 -0
- package/Tabs/{tab-bar/tab-bar.styles.d.ts → components/TabBar/styles.d.ts} +0 -0
- package/Tabs/{tab-bar/tab-bar.types.d.ts → components/TabBar/types.d.ts} +0 -0
- package/Tabs/{tabs-list-slide-frame/tabs-list-slide-frame.styles.d.ts → components/TabBarScrollableFrame/styles.d.ts} +0 -0
- package/Tabs/{tabs-list-slide-frame/tabs-list-slide-frame.types.d.ts → components/TabBarScrollableFrame/types.d.ts} +0 -0
- package/Tabs/{tab-base/tab-base.d.ts → components/TabBase/TabBase.d.ts} +1 -1
- package/Tabs/{tab-base/tab-base.styles.d.ts → components/TabBase/styles.d.ts} +0 -0
- package/Tabs/{tab-base/tab-base.types.d.ts → components/TabBase/types.d.ts} +1 -1
- /package/Tabs/{tab-panel → components/TabPanel}/styles.d.ts +0 -0
- /package/Tabs/{tabs → components/Tabs}/styles.d.ts +0 -0
- /package/Tabs/{tabs.context.js → context.js} +0 -0
- /package/Tabs/{tabs.helpers.d.ts → helpers.d.ts} +0 -0
- /package/Tabs/{tabs.helpers.js → helpers.js} +0 -0
- /package/Tabs/{tabs.types.d.ts → types.d.ts} +0 -0
package/Tooltip/maps.js
ADDED
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
export const TooltipPositionToTippyPlacementMap = {
|
|
2
|
+
'top-start': 'top-start',
|
|
3
|
+
'top-middle': 'top',
|
|
4
|
+
'top-end': 'top-end',
|
|
5
|
+
'right-start': 'right-start',
|
|
6
|
+
'right-middle': 'right',
|
|
7
|
+
'right-end': 'right-end',
|
|
8
|
+
'bottom-start': 'bottom-start',
|
|
9
|
+
'bottom-middle': 'bottom',
|
|
10
|
+
'bottom-end': 'bottom-end',
|
|
11
|
+
'left-start': 'left-start',
|
|
12
|
+
'left-middle': 'left',
|
|
13
|
+
'left-end': 'left-end'
|
|
14
|
+
};
|
|
15
|
+
export const TooltipPositionToTippyOffsetMap = {
|
|
16
|
+
'top-start': [-6, 8],
|
|
17
|
+
'top-middle': [0, 8],
|
|
18
|
+
'top-end': [6, 8],
|
|
19
|
+
'right-start': [-6, 8],
|
|
20
|
+
'right-middle': [0, 8],
|
|
21
|
+
'right-end': [6, 8],
|
|
22
|
+
'bottom-start': [-6, 8],
|
|
23
|
+
'bottom-middle': [0, 8],
|
|
24
|
+
'bottom-end': [6, 8],
|
|
25
|
+
'left-start': [-6, 8],
|
|
26
|
+
'left-middle': [0, 8],
|
|
27
|
+
'left-end': [6, 8]
|
|
28
|
+
};
|
|
29
|
+
export const TooltipPositionToArrowOffsetMap = {
|
|
30
|
+
'top-start': '24px',
|
|
31
|
+
'top-middle': '50%',
|
|
32
|
+
'top-end': '24px',
|
|
33
|
+
'right-start': '24px',
|
|
34
|
+
'right-middle': '50%',
|
|
35
|
+
'right-end': '24px',
|
|
36
|
+
'bottom-start': '24px',
|
|
37
|
+
'bottom-middle': '50%',
|
|
38
|
+
'bottom-end': '24px',
|
|
39
|
+
'left-start': '24px',
|
|
40
|
+
'left-middle': '50%',
|
|
41
|
+
'left-end': '24px'
|
|
42
|
+
};
|
|
43
|
+
export function getTransform(position) {
|
|
44
|
+
switch (position) {
|
|
45
|
+
case 'top-start':
|
|
46
|
+
return 'translateX(-50%) translateY(50%) rotate(45deg);';
|
|
47
|
+
case 'top-middle':
|
|
48
|
+
return 'translateX(-50%) translateY(50%) rotate(45deg);';
|
|
49
|
+
case 'top-end':
|
|
50
|
+
return 'translateX(50%) translateY(50%) rotate(45deg);';
|
|
51
|
+
case 'right-start':
|
|
52
|
+
return 'translateX(-50%) translateY(-50%) rotate(45deg);';
|
|
53
|
+
case 'right-middle':
|
|
54
|
+
return 'translateX(-50%) translateY(-50%) rotate(45deg);';
|
|
55
|
+
case 'right-end':
|
|
56
|
+
return 'translateX(-50%) translateY(50%) rotate(45deg);';
|
|
57
|
+
case 'bottom-start':
|
|
58
|
+
return 'translateX(-50%) translateY(-50%) rotate(45deg);';
|
|
59
|
+
case 'bottom-middle':
|
|
60
|
+
return 'translateX(-50%) translateY(-50%) rotate(45deg);';
|
|
61
|
+
case 'bottom-end':
|
|
62
|
+
return 'translateX(50%) translateY(-50%) rotate(45deg);';
|
|
63
|
+
case 'left-start':
|
|
64
|
+
return 'translateX(50%) translateY(-50%) rotate(45deg);';
|
|
65
|
+
case 'left-middle':
|
|
66
|
+
return 'translateX(50%) translateY(-50%) rotate(45deg);';
|
|
67
|
+
case 'left-end':
|
|
68
|
+
return 'translateX(50%) translateY(50%) rotate(45deg);';
|
|
69
|
+
default:
|
|
70
|
+
console.error(`[Tooltip]: unknown position: ${position}!`);
|
|
71
|
+
return 'none';
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
export function getTopPosition(position, offset) {
|
|
75
|
+
switch (position) {
|
|
76
|
+
case 'top-start':
|
|
77
|
+
case 'top-middle':
|
|
78
|
+
case 'top-end':
|
|
79
|
+
case 'right-end':
|
|
80
|
+
case 'left-end':
|
|
81
|
+
return 'auto';
|
|
82
|
+
case 'right-start':
|
|
83
|
+
case 'right-middle':
|
|
84
|
+
case 'left-start':
|
|
85
|
+
case 'left-middle':
|
|
86
|
+
return offset;
|
|
87
|
+
case 'bottom-start':
|
|
88
|
+
case 'bottom-middle':
|
|
89
|
+
case 'bottom-end':
|
|
90
|
+
return '0';
|
|
91
|
+
default:
|
|
92
|
+
console.error(`[Tooltip]: unknown position: ${position}!`);
|
|
93
|
+
return 'auto';
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
export function getRightPosition(position, offset) {
|
|
97
|
+
switch (position) {
|
|
98
|
+
case 'top-start':
|
|
99
|
+
case 'top-middle':
|
|
100
|
+
case 'right-start':
|
|
101
|
+
case 'right-middle':
|
|
102
|
+
case 'right-end':
|
|
103
|
+
case 'bottom-start':
|
|
104
|
+
case 'bottom-middle':
|
|
105
|
+
return 'auto';
|
|
106
|
+
case 'top-end':
|
|
107
|
+
case 'bottom-end':
|
|
108
|
+
return offset;
|
|
109
|
+
case 'left-end':
|
|
110
|
+
case 'left-start':
|
|
111
|
+
case 'left-middle':
|
|
112
|
+
return '0';
|
|
113
|
+
default:
|
|
114
|
+
console.error(`[Tooltip]: unknown position: ${position}!`);
|
|
115
|
+
return 'auto';
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
export function getBottomPosition(position, offset) {
|
|
119
|
+
switch (position) {
|
|
120
|
+
case 'top-start':
|
|
121
|
+
case 'top-middle':
|
|
122
|
+
case 'top-end':
|
|
123
|
+
return '0';
|
|
124
|
+
case 'right-end':
|
|
125
|
+
case 'left-end':
|
|
126
|
+
return offset;
|
|
127
|
+
case 'bottom-start':
|
|
128
|
+
case 'bottom-middle':
|
|
129
|
+
case 'bottom-end':
|
|
130
|
+
case 'right-start':
|
|
131
|
+
case 'right-middle':
|
|
132
|
+
case 'left-start':
|
|
133
|
+
case 'left-middle':
|
|
134
|
+
return 'auto';
|
|
135
|
+
default:
|
|
136
|
+
console.error(`[Tooltip]: unknown position: ${position}!`);
|
|
137
|
+
return 'auto';
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
export function getLeftPosition(position, offset) {
|
|
141
|
+
switch (position) {
|
|
142
|
+
case 'top-start':
|
|
143
|
+
case 'top-middle':
|
|
144
|
+
case 'bottom-start':
|
|
145
|
+
case 'bottom-middle':
|
|
146
|
+
return offset;
|
|
147
|
+
case 'top-end':
|
|
148
|
+
case 'bottom-end':
|
|
149
|
+
case 'left-end':
|
|
150
|
+
case 'left-start':
|
|
151
|
+
case 'left-middle':
|
|
152
|
+
return 'auto';
|
|
153
|
+
case 'right-start':
|
|
154
|
+
case 'right-end':
|
|
155
|
+
case 'right-middle':
|
|
156
|
+
return '0';
|
|
157
|
+
default:
|
|
158
|
+
console.error(`[Tooltip]: unknown position: ${position}!`);
|
|
159
|
+
return 'auto';
|
|
160
|
+
}
|
|
161
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { TooltipPosition } from './types';
|
|
2
|
+
export declare const TooltipBox: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@tippyjs/react").TippyProps>, any, {
|
|
3
|
+
$arrowOffset: string;
|
|
4
|
+
$position: TooltipPosition;
|
|
5
|
+
}, never>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import Tippy from '@tippyjs/react';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import { Color, FontSize, ShapeRadius, Spacing } from '@pushwoosh/kit-constants';
|
|
4
|
+
import { getBottomPosition, getLeftPosition, getRightPosition, getTopPosition, getTransform } from './maps';
|
|
5
|
+
export const TooltipBox = styled(Tippy).withConfig({
|
|
6
|
+
displayName: "TooltipBox",
|
|
7
|
+
componentId: "sc-1hariht-0"
|
|
8
|
+
})(["&::after{content:\"\";position:absolute;top:", ";right:", ";bottom:", ";left:", ";width:10px;height:10px;margin:auto;border-radius:2px;background-color:", ";transform:", ";}&.tippy-box{position:static;display:block;padding:", ";color:", ";background-color:", ";border-radius:", ";font-size:", ";line-height:inherit;outline:0;transition:none;}.tippy-content{position:static;padding:0;z-index:auto;}.tippy-arrow{display:none;}"], ({
|
|
9
|
+
$position,
|
|
10
|
+
$arrowOffset
|
|
11
|
+
}) => getTopPosition($position, $arrowOffset), ({
|
|
12
|
+
$position,
|
|
13
|
+
$arrowOffset
|
|
14
|
+
}) => getRightPosition($position, $arrowOffset), ({
|
|
15
|
+
$position,
|
|
16
|
+
$arrowOffset
|
|
17
|
+
}) => getBottomPosition($position, $arrowOffset), ({
|
|
18
|
+
$position,
|
|
19
|
+
$arrowOffset
|
|
20
|
+
}) => getLeftPosition($position, $arrowOffset), Color.MAIN, ({
|
|
21
|
+
$position
|
|
22
|
+
}) => getTransform($position), Spacing.S4, Color.CLEAR, Color.MAIN, ShapeRadius.DIALOG, FontSize.REGULAR);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { RefObject, ReactElement, ReactNode } from 'react';
|
|
2
|
+
export type TooltipPosition = 'top-start' | 'top-middle' | 'top-end' | 'right-start' | 'right-middle' | 'right-end' | 'bottom-start' | 'bottom-middle' | 'bottom-end' | 'left-start' | 'left-middle' | 'left-end';
|
|
3
|
+
export type TooltipProps = {
|
|
4
|
+
readonly content: ReactNode;
|
|
5
|
+
readonly position?: TooltipPosition;
|
|
6
|
+
readonly offset?: [number, number];
|
|
7
|
+
readonly arrowOffset?: string;
|
|
8
|
+
readonly maxWidth?: number | 'none';
|
|
9
|
+
readonly zIndex?: number;
|
|
10
|
+
readonly isDisabled?: boolean;
|
|
11
|
+
readonly isVisible?: boolean;
|
|
12
|
+
readonly reference?: RefObject<Element>;
|
|
13
|
+
readonly children?: ReactElement<unknown>;
|
|
14
|
+
};
|
package/Tooltip/types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/hooks/index.d.ts
ADDED
package/hooks/index.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type RefObject } from 'react';
|
|
2
|
+
type ForceUpdate = () => void;
|
|
3
|
+
type ElementWidth = number | null;
|
|
4
|
+
/**
|
|
5
|
+
* Хук для получения размера элемента
|
|
6
|
+
*
|
|
7
|
+
* @param { RefObject<HTMLElement> } ref - ссылка на элемент
|
|
8
|
+
* @return { [ElementWidth, ForceUpdate] } - размер элемента и функция для принудительного пересчета
|
|
9
|
+
*/
|
|
10
|
+
export declare function useElementWidth(ref: RefObject<HTMLElement>): [ElementWidth, ForceUpdate];
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { useCallback, useEffect, useState } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Хук для получения размера элемента
|
|
4
|
+
*
|
|
5
|
+
* @param { RefObject<HTMLElement> } ref - ссылка на элемент
|
|
6
|
+
* @return { [ElementWidth, ForceUpdate] } - размер элемента и функция для принудительного пересчета
|
|
7
|
+
*/
|
|
8
|
+
export function useElementWidth(ref) {
|
|
9
|
+
const [elementWidth, setElementWidth] = useState(null);
|
|
10
|
+
useEffect(() => {
|
|
11
|
+
if (ref.current) {
|
|
12
|
+
const {
|
|
13
|
+
width
|
|
14
|
+
} = ref.current.getBoundingClientRect();
|
|
15
|
+
setElementWidth(width);
|
|
16
|
+
}
|
|
17
|
+
}, [ref]);
|
|
18
|
+
const forceUpdate = useCallback(() => {
|
|
19
|
+
if (ref.current) {
|
|
20
|
+
const {
|
|
21
|
+
width
|
|
22
|
+
} = ref.current.getBoundingClientRect();
|
|
23
|
+
setElementWidth(width);
|
|
24
|
+
}
|
|
25
|
+
}, [ref]);
|
|
26
|
+
return [elementWidth, forceUpdate];
|
|
27
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { useEffect } from 'react';
|
|
2
|
+
export function useOnClickOutside(ref, handler) {
|
|
3
|
+
useEffect(() => {
|
|
4
|
+
const references = Array.isArray(ref) ? ref : [ref];
|
|
5
|
+
function listener({
|
|
6
|
+
target
|
|
7
|
+
}) {
|
|
8
|
+
const isClickInArea = references.some(reference => {
|
|
9
|
+
var _reference$current;
|
|
10
|
+
return (_reference$current = reference.current) === null || _reference$current === void 0 ? void 0 : _reference$current.contains(target);
|
|
11
|
+
});
|
|
12
|
+
if (!isClickInArea) {
|
|
13
|
+
handler();
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
document.addEventListener('mousedown', listener);
|
|
17
|
+
document.addEventListener('touchstart', listener);
|
|
18
|
+
return () => {
|
|
19
|
+
document.removeEventListener('mousedown', listener);
|
|
20
|
+
document.removeEventListener('touchstart', listener);
|
|
21
|
+
};
|
|
22
|
+
}, [ref, handler]);
|
|
23
|
+
}
|
package/index.d.ts
CHANGED
|
@@ -1,9 +1,30 @@
|
|
|
1
|
+
export { ActionsGroup } from './ActionsGroup';
|
|
2
|
+
export { Badge, type BadgeColor } from './Badge';
|
|
3
|
+
export { Banner, type BannerType } from './Banner';
|
|
4
|
+
export { Button, GhostButton } from './Button';
|
|
5
|
+
export { CardMetric } from './CardMetric';
|
|
6
|
+
export { Checkbox } from './Checkbox';
|
|
7
|
+
export { DropdownMenu, DropdownMenuProvider, useDropdownMenuContext, DropdownMenuContainer, DropdownMenuGroup, DropdownMenuItem, DropdownMenuItemBox, DropdownMenuItemCheckbox, DropdownMenuItemPick, DropdownMenuItemRadio, DropdownMenuNested, DropdownMenuWindow, } from './DropdownMenu';
|
|
8
|
+
export { EditableField } from './EditableField';
|
|
9
|
+
export { InputFile } from './InputFile';
|
|
10
|
+
export { Modal, ModalTitle, ModalConfirm, ModalConfirmProvider, useModalConfirm, ModalHeader, ModalBodyGroup, ModalBodyItem, ModalBody, ModalFooter, } from './Modal';
|
|
11
|
+
export { Pagination } from './Pagination';
|
|
1
12
|
export { ProgressBar } from './ProgressBar';
|
|
2
|
-
export
|
|
13
|
+
export { Popover } from './Popover';
|
|
14
|
+
export { Radio } from './Radio';
|
|
15
|
+
export { ReCaptcha, useRecaptcha, asyncScriptLoad } from './ReCaptcha';
|
|
16
|
+
export { Spinner } from './Spinner';
|
|
17
|
+
export { SortButton } from './SortButton';
|
|
18
|
+
export { Switch } from './Switch';
|
|
19
|
+
export { Tooltip, type TooltipPosition } from './Tooltip';
|
|
20
|
+
export { Tab, TabBar, TabPanel, Tabs, type TabCode } from './Tabs';
|
|
21
|
+
export { Link } from './Link';
|
|
3
22
|
export { StatisticCard } from './StatisticCard';
|
|
4
|
-
export { EmailTemplatePreview, NoEmailTemplatePreview
|
|
23
|
+
export { EmailTemplatePreview, NoEmailTemplatePreview } from './EmailTemplatePreview';
|
|
5
24
|
export { PushPreview } from './PushPreview';
|
|
25
|
+
export { Toast, ToastProvider, useToast } from './Toast';
|
|
26
|
+
export { AutosizeInput, PageHeader, PageHeaderEditable } from './PageHeader';
|
|
6
27
|
export { ExportResult } from './ExportResult';
|
|
7
|
-
export { NativeInput, NativeTextarea, NativeSelect
|
|
28
|
+
export { NativeInput, NativeTextarea, NativeSelect } from './native';
|
|
8
29
|
export { FieldBox } from './FieldBox';
|
|
9
30
|
export { NumberPicker } from './NumberPicker';
|
package/index.js
CHANGED
|
@@ -1,8 +1,29 @@
|
|
|
1
|
+
export { ActionsGroup } from './ActionsGroup';
|
|
2
|
+
export { Badge } from './Badge';
|
|
3
|
+
export { Banner } from './Banner';
|
|
4
|
+
export { Button, GhostButton } from './Button';
|
|
5
|
+
export { CardMetric } from './CardMetric';
|
|
6
|
+
export { Checkbox } from './Checkbox';
|
|
7
|
+
export { DropdownMenu, DropdownMenuProvider, useDropdownMenuContext, DropdownMenuContainer, DropdownMenuGroup, DropdownMenuItem, DropdownMenuItemBox, DropdownMenuItemCheckbox, DropdownMenuItemPick, DropdownMenuItemRadio, DropdownMenuNested, DropdownMenuWindow } from './DropdownMenu';
|
|
8
|
+
export { EditableField } from './EditableField';
|
|
9
|
+
export { InputFile } from './InputFile';
|
|
10
|
+
export { Modal, ModalTitle, ModalConfirm, ModalConfirmProvider, useModalConfirm, ModalHeader, ModalBodyGroup, ModalBodyItem, ModalBody, ModalFooter } from './Modal';
|
|
11
|
+
export { Pagination } from './Pagination';
|
|
1
12
|
export { ProgressBar } from './ProgressBar';
|
|
2
|
-
export
|
|
13
|
+
export { Popover } from './Popover';
|
|
14
|
+
export { Radio } from './Radio';
|
|
15
|
+
export { ReCaptcha, useRecaptcha, asyncScriptLoad } from './ReCaptcha';
|
|
16
|
+
export { Spinner } from './Spinner';
|
|
17
|
+
export { SortButton } from './SortButton';
|
|
18
|
+
export { Switch } from './Switch';
|
|
19
|
+
export { Tooltip } from './Tooltip';
|
|
20
|
+
export { Tab, TabBar, TabPanel, Tabs } from './Tabs';
|
|
21
|
+
export { Link } from './Link';
|
|
3
22
|
export { StatisticCard } from './StatisticCard';
|
|
4
23
|
export { EmailTemplatePreview, NoEmailTemplatePreview } from './EmailTemplatePreview';
|
|
5
24
|
export { PushPreview } from './PushPreview';
|
|
25
|
+
export { Toast, ToastProvider, useToast } from './Toast';
|
|
26
|
+
export { AutosizeInput, PageHeader, PageHeaderEditable } from './PageHeader';
|
|
6
27
|
export { ExportResult } from './ExportResult';
|
|
7
28
|
export { NativeInput, NativeTextarea, NativeSelect } from './native';
|
|
8
29
|
export { FieldBox } from './FieldBox';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pushwoosh/dumb-components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "React components to build Pushwoosh products",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "index.js",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"build": "pushwoosh-engine lib:build",
|
|
12
12
|
"playground": "`pushwoosh-engine lib:command:playground`",
|
|
13
13
|
"check": "npm run check:lint && npm run check:types",
|
|
14
|
-
"check:lint": "echo \"Run check:lint\" && eslint
|
|
14
|
+
"check:lint": "echo \"Run check:lint\" && eslint src",
|
|
15
15
|
"check:types": "echo \"Run check:types\" && pushwoosh-engine lib:check-types"
|
|
16
16
|
},
|
|
17
17
|
"pre-commit": "check",
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"@types/lodash": "^4.17.13",
|
|
23
23
|
"@types/react": "^18.2.69",
|
|
24
24
|
"@types/react-dom": "^18.2.22",
|
|
25
|
+
"@types/react-transition-group": "^4.4.12",
|
|
25
26
|
"@types/styled-components": "^5.1.34",
|
|
26
27
|
"pre-commit": "^1.2.2",
|
|
27
28
|
"react": "^18.2.0",
|
|
@@ -39,12 +40,12 @@
|
|
|
39
40
|
"npm": ">= 7"
|
|
40
41
|
},
|
|
41
42
|
"dependencies": {
|
|
42
|
-
"@pushwoosh/kit-button": "^2.3.5",
|
|
43
43
|
"@pushwoosh/kit-helpers": "^4.6.2",
|
|
44
44
|
"@pushwoosh/kit-icons": "^2.1.1",
|
|
45
|
-
"@pushwoosh/kit-spinner": "^1.5.1",
|
|
46
45
|
"@pushwoosh/kit-typography": "^1.7.1",
|
|
47
46
|
"liquidjs": "^10.18.0",
|
|
48
|
-
"lodash": "^4.17.21"
|
|
47
|
+
"lodash": "^4.17.21",
|
|
48
|
+
"polished": "^4.3.1",
|
|
49
|
+
"react-transition-group": "^4.4.5"
|
|
49
50
|
}
|
|
50
51
|
}
|
package/Tabs/tab/index.d.ts
DELETED
package/Tabs/tab/index.js
DELETED
package/Tabs/tab-bar/index.d.ts
DELETED
package/Tabs/tab-bar/index.js
DELETED
package/Tabs/tab-base/index.d.ts
DELETED
package/Tabs/tab-base/index.js
DELETED
package/Tabs/tab-panel/index.js
DELETED
package/Tabs/tabs/index.d.ts
DELETED
package/Tabs/tabs/index.js
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/NumberPicker/{AutosizeInput.constants.d.ts → components/AutosizeInput/constants.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|