@react-fabric/core 1.0.0-beta.5 → 1.0.0-beta.51
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/{src/components/actionLabel/ActionLabel.module.css → css/components/_actionLabel.css} +4 -4
- package/{src/overlays/alert/Alert.module.css → css/components/_alert.css} +3 -3
- package/{src/components/animations/Animations.module.css → css/components/_animations.css} +9 -9
- package/{src/components/avatar/Avatar.module.css → css/components/_avatar.css} +11 -11
- package/{src/components/badge/Badge.module.css → css/components/_badge.css} +19 -17
- package/{src/components/breadcrumbs/Breadcrumbs.module.css → css/components/_breadcrumbs.css} +49 -44
- package/{src/components/button/Button.module.css → css/components/_button.css} +69 -79
- package/{src/components/card/Card.module.css → css/components/_card.css} +50 -28
- package/{src/components/chip/Chip.module.css → css/components/_chip.css} +14 -10
- package/{src/components/collapsable/Collapsable.module.css → css/components/_collapsable.css} +3 -3
- package/css/components/_divider.css +38 -0
- package/{src/components/dropdown/Dropdown.module.css → css/components/_dropdown.css} +2 -2
- package/{src/overlays/flyout/Flyout.module.css → css/components/_flyout.css} +6 -6
- package/{src/components/icon/Icon.module.css → css/components/_icon.css} +8 -5
- package/{src/components/media/Media.module.css → css/components/_media.css} +17 -17
- package/{src/components/menu/Menu.module.css → css/components/_menu.css} +19 -20
- package/{src/overlays/message/Message.module.css → css/components/_message.css} +2 -2
- package/{src/components/meter/Meter.module.css → css/components/_meter.css} +10 -10
- package/{src/overlays/modal/Modal.module.css → css/components/_modal.css} +6 -6
- package/{src/components/panel/Panel.module.css → css/components/_panel.css} +17 -17
- package/{src/components/progress/Progress.module.css → css/components/_progress.css} +7 -10
- package/{src/components/tabpanel/TabPanel.module.css → css/components/_tabPanel.css} +73 -84
- package/{src/overlays/toast/Toast.module.css → css/components/_toast.css} +2 -2
- package/css/components/_tooltip.css +29 -0
- package/{src/core/content/Content.module.css → css/components/index.css} +25 -18
- package/{src/core/aside/Aside.module.css → css/core/_aside.css} +56 -42
- package/{src/core/section/Section.module.css → css/core/_content.css} +5 -3
- package/{src/core/boundary/ErrorBoundary.module.css → css/core/_errorboundary.css} +9 -9
- package/{src/core/headfoot/HeadFoot.module.css → css/core/_headfoot.css} +4 -10
- package/{src/core/page/Page.module.css → css/core/_page.css} +10 -14
- package/{src/core/responsive/Responsive.module.css → css/core/_responsive.css} +10 -10
- package/css/core/_section.css +28 -0
- package/{src/core/theme/Theme.module.css → css/core/_theme.css} +3 -3
- package/{src/typography/Typography.module.css → css/core/_typography.css} +14 -12
- package/{src/core/viewport/Viewport.module.css → css/core/_viewport.css} +7 -3
- package/css/core/index.css +33 -0
- package/css/reset/_gradients.css +8 -8
- package/css/reset/_reset.css +42 -224
- package/css/reset/_text.css +14 -29
- package/css/reset/_theme.css +331 -52
- package/css/reset/index.css +4 -4
- package/css/styles.css +7 -6
- package/css/theme/_colors.css +320 -0
- package/css/theme/_utilities.css +530 -0
- package/css/theme/index.css +45 -0
- package/dist/cjs/components/actionLabel/ActionLabel.js +3 -3
- package/dist/cjs/components/animations/Animations.js +29 -18
- package/dist/cjs/components/avatar/Avatar.js +10 -13
- package/dist/cjs/components/avatar/AvatarGroup.js +3 -3
- package/dist/cjs/components/badge/Badge.js +5 -5
- package/dist/cjs/components/breadcrumbs/Breadcrumbs.js +10 -8
- package/dist/cjs/components/button/Button.js +18 -14
- package/dist/cjs/components/button/ButtonGroup.js +4 -3
- package/dist/cjs/components/button/ConfirmButton.js +10 -3
- package/dist/cjs/components/button/ToggleButtonGroup.js +3 -3
- package/dist/cjs/components/callout/Callout.js +16 -4
- package/dist/cjs/components/card/Card.js +14 -10
- package/dist/cjs/components/card/CardCover.js +10 -5
- package/dist/cjs/components/card/FlipContent.js +35 -0
- package/dist/cjs/components/chip/Chip.js +11 -7
- package/dist/cjs/components/collapsable/Collapsable.js +6 -6
- package/dist/cjs/components/divider/Divider.js +11 -7
- package/dist/cjs/components/dropdown/Dropdown.js +6 -9
- package/dist/cjs/components/dropdown/DropdownTool.js +4 -3
- package/dist/cjs/components/empty/EmptyContent.js +8 -5
- package/dist/cjs/components/icon/Icon.js +17 -15
- package/dist/cjs/components/media/Media.js +116 -75
- package/dist/cjs/components/menu/ContextMenu.js +30 -10
- package/dist/cjs/components/menu/Menu.js +44 -21
- package/dist/cjs/components/menu/MenuItem.js +30 -16
- package/dist/cjs/components/meter/Meter.js +2 -3
- package/dist/cjs/components/navigator/Navigator.js +26 -13
- package/dist/cjs/components/panel/Panel.js +10 -9
- package/dist/cjs/components/panel/PanelGroup.js +1 -2
- package/dist/cjs/components/progress/ProgressBar.js +10 -9
- package/dist/cjs/components/progress/ProgressCircle.js +9 -7
- package/dist/cjs/components/tabpanel/Tab.js +58 -38
- package/dist/cjs/components/tabpanel/TabPanel.js +20 -16
- package/dist/cjs/context/Global.js +3 -0
- package/dist/cjs/context/NotificationCenter.js +3 -3
- package/dist/cjs/core/aside/Aside.js +11 -10
- package/dist/cjs/core/boundary/ErrorBoundary.js +6 -7
- package/dist/cjs/core/boundary/ErrorIcon.js +1 -2
- package/dist/cjs/core/content/Content.js +9 -7
- package/dist/cjs/core/headfoot/HeadFoot.js +2 -20
- package/dist/cjs/core/page/Page.js +16 -30
- package/dist/cjs/core/responsive/Responsive.js +5 -5
- package/dist/cjs/core/section/Section.js +1 -2
- package/dist/cjs/core/theme/ThemeProvider.js +11 -9
- package/dist/cjs/core/viewport/Viewport.js +4 -2
- package/dist/cjs/hooks/useDebounce.js +1 -1
- package/dist/cjs/hooks/useEffectDebugger.js +2 -2
- package/dist/cjs/hooks/useNavigator.js +6 -4
- package/dist/cjs/hooks/useResizeObserver.js +1 -1
- package/dist/cjs/hotkeys/HotKeyLabel.js +1 -1
- package/dist/cjs/hotkeys/HotKeyWrapper.js +3 -1
- package/dist/cjs/index.js +8 -2
- package/dist/cjs/overlays/alert/Alert.js +20 -14
- package/dist/cjs/overlays/flyout/Flyout.js +49 -60
- package/dist/cjs/overlays/message/Message.js +6 -3
- package/dist/cjs/overlays/modal/Modal.js +16 -12
- package/dist/cjs/overlays/toast/Toast.js +17 -9
- package/dist/cjs/overlays/tooltip/Tooltip.js +24 -11
- package/dist/cjs/types/icons.js +6 -1
- package/dist/cjs/typography/Abbr.js +4 -5
- package/dist/cjs/typography/{Link.js → Anchor.js} +5 -4
- package/dist/cjs/typography/Mark.js +2 -3
- package/dist/cjs/typography/Text.js +3 -4
- package/dist/cjs/typography/Title.js +3 -3
- package/dist/cjs/utils/cloneElement.js +47 -0
- package/dist/cjs/utils/getColor.js +1 -18
- package/dist/esm/components/actionLabel/ActionLabel.js +3 -3
- package/dist/esm/components/animations/Animations.js +30 -19
- package/dist/esm/components/avatar/Avatar.js +11 -14
- package/dist/esm/components/avatar/AvatarGroup.js +3 -3
- package/dist/esm/components/badge/Badge.js +5 -5
- package/dist/esm/components/breadcrumbs/Breadcrumbs.js +10 -8
- package/dist/esm/components/button/Button.js +18 -14
- package/dist/esm/components/button/ButtonGroup.js +5 -4
- package/dist/esm/components/button/ConfirmButton.js +10 -3
- package/dist/esm/components/button/ToggleButtonGroup.js +4 -4
- package/dist/esm/components/callout/Callout.js +16 -4
- package/dist/esm/components/card/Card.js +15 -11
- package/dist/esm/components/card/CardCover.js +10 -5
- package/dist/esm/components/card/FlipContent.js +35 -0
- package/dist/esm/components/chip/Chip.js +12 -8
- package/dist/esm/components/collapsable/Collapsable.js +6 -6
- package/dist/esm/components/divider/Divider.js +12 -8
- package/dist/esm/components/dropdown/Dropdown.js +6 -9
- package/dist/esm/components/dropdown/DropdownTool.js +4 -3
- package/dist/esm/components/empty/EmptyContent.js +8 -5
- package/dist/esm/components/icon/Icon.js +17 -15
- package/dist/esm/components/media/Media.js +117 -76
- package/dist/esm/components/menu/ContextMenu.js +32 -12
- package/dist/esm/components/menu/Menu.js +46 -23
- package/dist/esm/components/menu/MenuItem.js +24 -10
- package/dist/esm/components/meter/Meter.js +2 -3
- package/dist/esm/components/navigator/Navigator.js +26 -13
- package/dist/esm/components/panel/Panel.js +10 -9
- package/dist/esm/components/panel/PanelGroup.js +1 -2
- package/dist/esm/components/progress/ProgressBar.js +10 -9
- package/dist/esm/components/progress/ProgressCircle.js +9 -7
- package/dist/esm/components/tabpanel/Tab.js +59 -39
- package/dist/esm/components/tabpanel/TabPanel.js +20 -16
- package/dist/esm/context/Global.js +3 -0
- package/dist/esm/context/NotificationCenter.js +3 -3
- package/dist/esm/core/aside/Aside.js +11 -10
- package/dist/esm/core/boundary/ErrorBoundary.js +6 -7
- package/dist/esm/core/boundary/ErrorIcon.js +1 -2
- package/dist/esm/core/content/Content.js +9 -7
- package/dist/esm/core/headfoot/HeadFoot.js +2 -20
- package/dist/esm/core/page/Page.js +16 -30
- package/dist/esm/core/responsive/Responsive.js +5 -5
- package/dist/esm/core/section/Section.js +1 -2
- package/dist/esm/core/theme/ThemeProvider.js +11 -9
- package/dist/esm/core/viewport/Viewport.js +4 -2
- package/dist/esm/hooks/useDebounce.js +1 -1
- package/dist/esm/hooks/useEffectDebugger.js +2 -2
- package/dist/esm/hooks/useNavigator.js +7 -5
- package/dist/esm/hooks/useResizeObserver.js +1 -1
- package/dist/esm/hotkeys/HotKeyLabel.js +1 -1
- package/dist/esm/hotkeys/HotKeyWrapper.js +3 -1
- package/dist/esm/index.js +4 -1
- package/dist/esm/overlays/alert/Alert.js +21 -15
- package/dist/esm/overlays/flyout/Flyout.js +52 -63
- package/dist/esm/overlays/message/Message.js +7 -4
- package/dist/esm/overlays/modal/Modal.js +17 -13
- package/dist/esm/overlays/toast/Toast.js +18 -10
- package/dist/esm/overlays/tooltip/Tooltip.js +24 -11
- package/dist/esm/types/icons.js +6 -1
- package/dist/esm/typography/Abbr.js +4 -5
- package/dist/esm/typography/{Link.js → Anchor.js} +6 -5
- package/dist/esm/typography/Mark.js +2 -3
- package/dist/esm/typography/Text.js +4 -5
- package/dist/esm/typography/Title.js +4 -4
- package/dist/esm/utils/cloneElement.js +47 -0
- package/dist/esm/utils/getColor.js +2 -16
- package/dist/types/components/actionLabel/ActionLabel.d.ts +2 -2
- package/dist/types/components/animations/Animations.d.ts +5 -5
- package/dist/types/components/avatar/Avatar.d.ts +3 -3
- package/dist/types/components/badge/Badge.d.ts +5 -1
- package/dist/types/components/breadcrumbs/Breadcrumbs.d.ts +2 -2
- package/dist/types/components/button/Button.d.ts +7 -5
- package/dist/types/components/button/ButtonGroup.d.ts +2 -2
- package/dist/types/components/button/ConfirmButton.d.ts +6 -1
- package/dist/types/components/callout/Callout.d.ts +4 -3
- package/dist/types/components/card/Card.d.ts +8 -4
- package/dist/types/components/card/FlipContent.d.ts +7 -0
- package/dist/types/components/chip/Chip.d.ts +3 -3
- package/dist/types/components/collapsable/Collapsable.d.ts +7 -3
- package/dist/types/components/divider/Divider.d.ts +11 -7
- package/dist/types/components/dropdown/DropdownTool.d.ts +2 -1
- package/dist/types/components/empty/EmptyContent.d.ts +6 -2
- package/dist/types/components/icon/Icon.d.ts +5 -4
- package/dist/types/components/index.d.ts +2 -1
- package/dist/types/components/media/Media.d.ts +2 -2
- package/dist/types/components/menu/ContextMenu.d.ts +2 -1
- package/dist/types/components/menu/MenuItem.d.ts +1 -1
- package/dist/types/components/menu/types.d.ts +3 -2
- package/dist/types/components/navigator/Navigator.d.ts +7 -4
- package/dist/types/components/panel/Panel.d.ts +0 -1
- package/dist/types/components/progress/ProgressBar.d.ts +3 -3
- package/dist/types/components/progress/ProgressCircle.d.ts +3 -3
- package/dist/types/components/tabpanel/Tab.d.ts +5 -5
- package/dist/types/components/tabpanel/TabPanel.d.ts +10 -1
- package/dist/types/core/boundary/ErrorBoundary.d.ts +1 -1
- package/dist/types/core/content/Content.d.ts +3 -2
- package/dist/types/core/headfoot/HeadFoot.d.ts +1 -9
- package/dist/types/core/page/Page.d.ts +3 -3
- package/dist/types/core/responsive/Responsive.d.ts +6 -2
- package/dist/types/core/theme/ThemeProvider.d.ts +4 -4
- package/dist/types/hooks/useOverlayService.d.ts +3 -5
- package/dist/types/hooks/useResize.d.ts +1 -1
- package/dist/types/hooks/useResizeObserver.d.ts +1 -1
- package/dist/types/index.d.ts +3 -0
- package/dist/types/overlays/alert/Alert.d.ts +2 -3
- package/dist/types/overlays/flyout/Flyout.d.ts +3 -2
- package/dist/types/overlays/message/Message.d.ts +2 -3
- package/dist/types/overlays/modal/Modal.d.ts +12 -3
- package/dist/types/overlays/toast/Toast.d.ts +2 -3
- package/dist/types/overlays/tooltip/Tooltip.d.ts +2 -2
- package/dist/types/types/icons.d.ts +6 -1
- package/dist/types/types/index.d.ts +26 -6
- package/dist/types/typography/Abbr.d.ts +6 -3
- package/dist/types/typography/Anchor.d.ts +25 -0
- package/dist/types/typography/Mark.d.ts +2 -3
- package/dist/types/typography/index.d.ts +1 -1
- package/dist/types/utils/cloneElement.d.ts +2 -0
- package/dist/types/utils/getColor.d.ts +1 -4
- package/dist/types/utils/index.d.ts +1 -0
- package/package.json +11 -13
- package/src/components/actionLabel/ActionLabel.tsx +15 -6
- package/src/components/animations/Animations.tsx +29 -23
- package/src/components/avatar/Avatar.tsx +74 -88
- package/src/components/avatar/AvatarGroup.tsx +4 -4
- package/src/components/badge/Badge.tsx +11 -7
- package/src/components/breadcrumbs/Breadcrumbs.tsx +13 -9
- package/src/components/button/Button.tsx +27 -22
- package/src/components/button/ButtonGroup.tsx +7 -7
- package/src/components/button/ConfirmButton.tsx +19 -6
- package/src/components/button/ToggleButtonGroup.tsx +5 -5
- package/src/components/callout/Callout.tsx +28 -12
- package/src/components/card/Card.tsx +30 -15
- package/src/components/card/CardCover.tsx +11 -6
- package/src/components/card/FlipContent.tsx +69 -0
- package/src/components/chip/Chip.tsx +19 -13
- package/src/components/collapsable/Collapsable.tsx +12 -7
- package/src/components/divider/Divider.tsx +23 -16
- package/src/components/dropdown/Dropdown.tsx +6 -11
- package/src/components/dropdown/DropdownTool.tsx +5 -3
- package/src/components/empty/EmptyContent.tsx +21 -6
- package/src/components/icon/Icon.tsx +58 -67
- package/src/components/index.ts +2 -1
- package/src/components/media/Media.tsx +141 -106
- package/src/components/menu/ContextMenu.tsx +36 -11
- package/src/components/menu/Menu.tsx +56 -30
- package/src/components/menu/MenuItem.tsx +19 -9
- package/src/components/menu/types.ts +3 -2
- package/src/components/meter/Meter.tsx +2 -3
- package/src/components/navigator/Navigator.tsx +36 -7
- package/src/components/panel/Panel.tsx +10 -9
- package/src/components/panel/PanelGroup.tsx +1 -2
- package/src/components/progress/ProgressBar.tsx +13 -14
- package/src/components/progress/ProgressCircle.tsx +10 -13
- package/src/components/tabpanel/Tab.tsx +81 -64
- package/src/components/tabpanel/TabPanel.tsx +34 -12
- package/src/context/Global.tsx +4 -0
- package/src/context/NotificationCenter.tsx +3 -3
- package/src/core/aside/Aside.tsx +11 -10
- package/src/core/boundary/ErrorBoundary.tsx +8 -7
- package/src/core/boundary/ErrorIcon.tsx +1 -2
- package/src/core/content/Content.tsx +17 -12
- package/src/core/headfoot/HeadFoot.tsx +2 -35
- package/src/core/page/Page.tsx +18 -5
- package/src/core/responsive/Responsive.tsx +14 -7
- package/src/core/section/Section.tsx +1 -2
- package/src/core/theme/ThemeProvider.tsx +14 -13
- package/src/core/viewport/Viewport.tsx +1 -2
- package/src/hooks/useDebounce.ts +1 -1
- package/src/hooks/useEffectDebugger.ts +1 -2
- package/src/hooks/useNavigator.tsx +10 -5
- package/src/hooks/useOverlayService.tsx +12 -6
- package/src/hooks/useResize.ts +1 -1
- package/src/hooks/useResizeObserver.ts +13 -9
- package/src/hotkeys/HotKeyLabel.tsx +1 -1
- package/src/hotkeys/HotKeyWrapper.tsx +3 -1
- package/src/index.ts +4 -0
- package/src/overlays/alert/Alert.tsx +28 -32
- package/src/overlays/flyout/Flyout.tsx +71 -84
- package/src/overlays/message/Message.tsx +10 -7
- package/src/overlays/modal/Modal.tsx +37 -15
- package/src/overlays/toast/Toast.tsx +18 -27
- package/src/overlays/tooltip/Tooltip.tsx +43 -18
- package/src/types/icons.ts +13 -2
- package/src/types/index.ts +268 -27
- package/src/typography/Abbr.tsx +16 -10
- package/src/typography/{Link.tsx → Anchor.tsx} +8 -13
- package/src/typography/Mark.tsx +4 -9
- package/src/typography/Text.tsx +4 -12
- package/src/typography/Title.tsx +2 -6
- package/src/typography/index.ts +1 -1
- package/src/{overlays/tooltip/Tooltip.module.css → utils/cloneElement.ts} +21 -27
- package/src/utils/getColor.ts +1 -17
- package/src/utils/index.ts +1 -0
- package/css/index.js +0 -250
- package/css/tailwind/colors.ts +0 -158
- package/dist/cjs/components/actionLabel/ActionLabel.module.css +0 -1
- package/dist/cjs/components/animations/Animations.module.css +0 -1
- package/dist/cjs/components/avatar/Avatar.module.css +0 -1
- package/dist/cjs/components/badge/Badge.module.css +0 -1
- package/dist/cjs/components/breadcrumbs/Breadcrumbs.module.css +0 -1
- package/dist/cjs/components/button/Button.module.css +0 -1
- package/dist/cjs/components/card/Card.module.css +0 -1
- package/dist/cjs/components/chip/Chip.module.css +0 -1
- package/dist/cjs/components/collapsable/Collapsable.module.css +0 -1
- package/dist/cjs/components/dropdown/Dropdown.module.css +0 -1
- package/dist/cjs/components/icon/Icon.module.css +0 -1
- package/dist/cjs/components/media/Media.module.css +0 -1
- package/dist/cjs/components/menu/Menu.module.css +0 -1
- package/dist/cjs/components/meter/Meter.module.css +0 -1
- package/dist/cjs/components/panel/Panel.module.css +0 -1
- package/dist/cjs/components/progress/Progress.module.css +0 -1
- package/dist/cjs/components/tabpanel/TabPanel.module.css +0 -1
- package/dist/cjs/core/aside/Aside.module.css +0 -1
- package/dist/cjs/core/boundary/ErrorBoundary.module.css +0 -1
- package/dist/cjs/core/content/Content.module.css +0 -1
- package/dist/cjs/core/headfoot/HeadFoot.module.css +0 -1
- package/dist/cjs/core/page/Page.module.css +0 -1
- package/dist/cjs/core/responsive/Responsive.module.css +0 -1
- package/dist/cjs/core/section/Section.module.css +0 -1
- package/dist/cjs/core/theme/Theme.module.css +0 -1
- package/dist/cjs/core/viewport/Viewport.module.css +0 -1
- package/dist/cjs/overlays/alert/Alert.module.css +0 -1
- package/dist/cjs/overlays/flyout/Flyout.module.css +0 -1
- package/dist/cjs/overlays/message/Message.module.css +0 -1
- package/dist/cjs/overlays/modal/Modal.module.css +0 -1
- package/dist/cjs/overlays/toast/Toast.module.css +0 -1
- package/dist/cjs/overlays/tooltip/Tooltip.module.css +0 -1
- package/dist/cjs/typography/Typography.module.css +0 -1
- package/dist/esm/components/actionLabel/ActionLabel.module.css +0 -1
- package/dist/esm/components/animations/Animations.module.css +0 -1
- package/dist/esm/components/avatar/Avatar.module.css +0 -1
- package/dist/esm/components/badge/Badge.module.css +0 -1
- package/dist/esm/components/breadcrumbs/Breadcrumbs.module.css +0 -1
- package/dist/esm/components/button/Button.module.css +0 -1
- package/dist/esm/components/card/Card.module.css +0 -1
- package/dist/esm/components/chip/Chip.module.css +0 -1
- package/dist/esm/components/collapsable/Collapsable.module.css +0 -1
- package/dist/esm/components/dropdown/Dropdown.module.css +0 -1
- package/dist/esm/components/icon/Icon.module.css +0 -1
- package/dist/esm/components/media/Media.module.css +0 -1
- package/dist/esm/components/menu/Menu.module.css +0 -1
- package/dist/esm/components/meter/Meter.module.css +0 -1
- package/dist/esm/components/panel/Panel.module.css +0 -1
- package/dist/esm/components/progress/Progress.module.css +0 -1
- package/dist/esm/components/tabpanel/TabPanel.module.css +0 -1
- package/dist/esm/core/aside/Aside.module.css +0 -1
- package/dist/esm/core/boundary/ErrorBoundary.module.css +0 -1
- package/dist/esm/core/content/Content.module.css +0 -1
- package/dist/esm/core/headfoot/HeadFoot.module.css +0 -1
- package/dist/esm/core/page/Page.module.css +0 -1
- package/dist/esm/core/responsive/Responsive.module.css +0 -1
- package/dist/esm/core/section/Section.module.css +0 -1
- package/dist/esm/core/theme/Theme.module.css +0 -1
- package/dist/esm/core/viewport/Viewport.module.css +0 -1
- package/dist/esm/overlays/alert/Alert.module.css +0 -1
- package/dist/esm/overlays/flyout/Flyout.module.css +0 -1
- package/dist/esm/overlays/message/Message.module.css +0 -1
- package/dist/esm/overlays/modal/Modal.module.css +0 -1
- package/dist/esm/overlays/toast/Toast.module.css +0 -1
- package/dist/esm/overlays/tooltip/Tooltip.module.css +0 -1
- package/dist/esm/typography/Typography.module.css +0 -1
- package/dist/types/typography/Link.d.ts +0 -25
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { type MouseEventHandler } from "react";
|
|
1
|
+
import { type DragEvent, type MouseEventHandler } from "react";
|
|
2
2
|
import { type ContentProps } from "../../core/content/Content";
|
|
3
3
|
import { type HeadFootProps } from "../../core/headfoot/HeadFoot";
|
|
4
|
-
import { type AriaProps, type ChildrenProp, type CssProp, type TestProps } from "../../types";
|
|
5
|
-
export interface CardProps extends CssProp, AriaProps, TestProps, ChildrenProp<React.ReactElement<HeadFootProps | ContentProps>> {
|
|
4
|
+
import { type AriaProps, type ChildrenProp, type CssProp, type RefProp, type TestProps } from "../../types";
|
|
5
|
+
export interface CardProps extends CssProp, AriaProps, TestProps, RefProp<HTMLDivElement>, ChildrenProp<React.ReactElement<HeadFootProps | ContentProps>> {
|
|
6
6
|
/**
|
|
7
7
|
* apply flex fill styling
|
|
8
8
|
*/
|
|
@@ -11,6 +11,10 @@ export interface CardProps extends CssProp, AriaProps, TestProps, ChildrenProp<R
|
|
|
11
11
|
* click handler
|
|
12
12
|
*/
|
|
13
13
|
onClick?: MouseEventHandler;
|
|
14
|
+
/**
|
|
15
|
+
* drag start handler
|
|
16
|
+
*/
|
|
17
|
+
onDragStart?: (event: DragEvent, dragKey: string, dragData?: KeyValue) => void;
|
|
14
18
|
/**
|
|
15
19
|
* body css classname(s)
|
|
16
20
|
*/
|
|
@@ -36,4 +40,4 @@ export interface CardProps extends CssProp, AriaProps, TestProps, ChildrenProp<R
|
|
|
36
40
|
*/
|
|
37
41
|
dragData?: KeyValue;
|
|
38
42
|
}
|
|
39
|
-
export declare const Card: ({ children, className, bodyClassName, selected, selectedRibbon, onClick, flex, draggable, dragKey, dragData, ...aria }: CardProps) => import("react/jsx-runtime").JSX.Element;
|
|
43
|
+
export declare const Card: ({ children, className, bodyClassName, selected, selectedRibbon, onClick, onDragStart, flex, draggable, dragKey, dragData, ref, ...aria }: CardProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type ChildrenProp, type RefProp } from "../../types";
|
|
2
|
+
export interface FlipContentRef {
|
|
3
|
+
flipCard: () => void;
|
|
4
|
+
}
|
|
5
|
+
export interface Props extends ChildrenProp, RefProp<FlipContentRef> {
|
|
6
|
+
}
|
|
7
|
+
export declare const FlipContent: ({ ref, children }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { type ReactElement } from "react";
|
|
2
|
-
import { type AriaProps, type ChildProp, type ColorType, type CssProp, type IconProps, type PolymorphicProps, type RefProp, type SizeType, type TestProps } from "../../types";
|
|
2
|
+
import { type AriaProps, type ChildProp, type ColorType, type CssProp, type IconProps, type PaletteType, type PolymorphicProps, type RefProp, type SizeType, type TestProps } from "../../types";
|
|
3
3
|
export interface ChipProps extends CssProp, AriaProps, IconProps, TestProps, ChildProp<string | ReactElement>, RefProp<HTMLDivElement> {
|
|
4
4
|
/**
|
|
5
5
|
* chip size
|
|
6
6
|
*/
|
|
7
|
-
size?: SizeType;
|
|
7
|
+
size?: SizeType | number | string;
|
|
8
8
|
/**
|
|
9
9
|
* chip color (CSS color / tailwind color)
|
|
10
10
|
*/
|
|
11
|
-
color?: ColorType | string;
|
|
11
|
+
color?: ColorType | PaletteType | string;
|
|
12
12
|
/**
|
|
13
13
|
* chip styling
|
|
14
14
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type RefObject } from "react";
|
|
2
2
|
import { type AriaProps, type ChildrenProp, type CssProp, type RefProp, type TestProps } from "../../types";
|
|
3
3
|
interface CollapsableRef {
|
|
4
|
-
button: RefObject<HTMLElement>;
|
|
5
|
-
body: RefObject<HTMLElement>;
|
|
4
|
+
button: RefObject<HTMLElement | null>;
|
|
5
|
+
body: RefObject<HTMLElement | null>;
|
|
6
6
|
open: boolean;
|
|
7
7
|
}
|
|
8
8
|
export interface CollapsableProps extends CssProp, AriaProps, TestProps, RefProp<CollapsableRef>, ChildrenProp {
|
|
@@ -18,6 +18,10 @@ export interface CollapsableProps extends CssProp, AriaProps, TestProps, RefProp
|
|
|
18
18
|
* header button className
|
|
19
19
|
*/
|
|
20
20
|
headerClassName?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Header position sticky
|
|
23
|
+
*/
|
|
24
|
+
stickyHeader?: boolean;
|
|
21
25
|
/**
|
|
22
26
|
* open state icon
|
|
23
27
|
*/
|
|
@@ -43,5 +47,5 @@ export interface CollapsableProps extends CssProp, AriaProps, TestProps, RefProp
|
|
|
43
47
|
*/
|
|
44
48
|
onClose?: () => void;
|
|
45
49
|
}
|
|
46
|
-
export declare const Collapsable: ({ ref, disabled, className, bodyClassName, headerClassName, children, iconAlign, iconClosed, iconOpen, open, onClose, onOpen, ...aria }: CollapsableProps) => import("react/jsx-runtime").JSX.Element;
|
|
50
|
+
export declare const Collapsable: ({ ref, disabled, className, bodyClassName, headerClassName, children, iconAlign, stickyHeader, iconClosed, iconOpen, open, onClose, onOpen, ...aria }: CollapsableProps) => import("react/jsx-runtime").JSX.Element;
|
|
47
51
|
export {};
|
|
@@ -1,20 +1,24 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type ChildProp, type ColorType, type CssProp, type PaletteType } from "../../types";
|
|
2
2
|
export interface DividerProps extends CssProp, Partial<ChildProp> {
|
|
3
|
-
/**
|
|
4
|
-
* apply text bg
|
|
5
|
-
*/
|
|
6
|
-
fill?: boolean;
|
|
7
3
|
/**
|
|
8
4
|
* vertical rule
|
|
9
5
|
*/
|
|
10
6
|
vertical?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* divider label classname(s)
|
|
9
|
+
*/
|
|
10
|
+
labelClassName?: string;
|
|
11
11
|
/**
|
|
12
12
|
* rule color
|
|
13
13
|
*/
|
|
14
|
-
color?: ColorType | PaletteType |
|
|
14
|
+
color?: ColorType | PaletteType | string;
|
|
15
15
|
/**
|
|
16
16
|
* text alignment
|
|
17
17
|
*/
|
|
18
18
|
align?: "start" | "end" | "center";
|
|
19
|
+
/**
|
|
20
|
+
* divider style
|
|
21
|
+
*/
|
|
22
|
+
style?: "solid" | "dashed" | "dotted";
|
|
19
23
|
}
|
|
20
|
-
export declare const Divider: ({ children, color, vertical,
|
|
24
|
+
export declare const Divider: ({ children, color, vertical, labelClassName, style, align, className, }: DividerProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type ChildProp, type CssProp } from "../../types";
|
|
2
2
|
import { type DropdownProps } from "./Dropdown";
|
|
3
|
-
export declare const DropdownTool: ({ children, className, groupHover, ...props }: ChildProp & CssProp & Omit<DropdownProps, "children"> & {
|
|
3
|
+
export declare const DropdownTool: ({ children, className, groupHover, icon, ...props }: ChildProp & CssProp & Omit<DropdownProps, "children"> & {
|
|
4
|
+
icon?: string;
|
|
4
5
|
/**
|
|
5
6
|
* hide until group hovered
|
|
6
7
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { type ChildrenProp, type CssProp, type TestProps } from "../../types";
|
|
2
|
+
import { type ChildrenProp, type ColorType, type CssProp, type PaletteType, type TestProps } from "../../types";
|
|
3
3
|
export interface EmptyContentProps extends CssProp, TestProps, Partial<ChildrenProp> {
|
|
4
4
|
/**
|
|
5
5
|
* empty title
|
|
@@ -17,5 +17,9 @@ export interface EmptyContentProps extends CssProp, TestProps, Partial<ChildrenP
|
|
|
17
17
|
* empty icon
|
|
18
18
|
*/
|
|
19
19
|
icon?: string | React.ReactElement;
|
|
20
|
+
/**
|
|
21
|
+
* icon color
|
|
22
|
+
*/
|
|
23
|
+
iconColor?: ColorType | PaletteType;
|
|
20
24
|
}
|
|
21
|
-
export declare const EmptyContent: ({ children, title, message, icon, className, size, ...test }: EmptyContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export declare const EmptyContent: ({ children, title, message, icon, className, size, iconColor, ...test }: EmptyContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { type AriaProps, type ColorType, type CssProp, type RefProp, type SizeType, type TestProps } from "../../types";
|
|
2
|
+
import { type PaletteType, type AriaProps, type ColorType, type CssProp, type RefProp, type SizeType, type TestProps } from "../../types";
|
|
3
3
|
export interface IconProps extends CssProp, AriaProps, RefProp, TestProps {
|
|
4
4
|
/**
|
|
5
5
|
* svg path / webfont className / 1-4 letter text
|
|
@@ -8,11 +8,11 @@ export interface IconProps extends CssProp, AriaProps, RefProp, TestProps {
|
|
|
8
8
|
/**
|
|
9
9
|
* background color (CSS color / tailwind color)
|
|
10
10
|
*/
|
|
11
|
-
bg?: ColorType | string;
|
|
11
|
+
bg?: ColorType | PaletteType | string;
|
|
12
12
|
/**
|
|
13
13
|
* icon color (CSS color / tailwind color)
|
|
14
14
|
*/
|
|
15
|
-
color?: ColorType | string;
|
|
15
|
+
color?: ColorType | PaletteType | string;
|
|
16
16
|
/**
|
|
17
17
|
* flip icon in rtl
|
|
18
18
|
*/
|
|
@@ -33,6 +33,7 @@ export interface IconProps extends CssProp, AriaProps, RefProp, TestProps {
|
|
|
33
33
|
* apply animation
|
|
34
34
|
*/
|
|
35
35
|
animate?: "spin" | "pulse" | "bounce";
|
|
36
|
+
disabled?: boolean;
|
|
36
37
|
/**
|
|
37
38
|
* click handler
|
|
38
39
|
*/
|
|
@@ -41,4 +42,4 @@ export interface IconProps extends CssProp, AriaProps, RefProp, TestProps {
|
|
|
41
42
|
/**
|
|
42
43
|
* An icon is a display component for svg icon path / image
|
|
43
44
|
*/
|
|
44
|
-
export declare const Icon: ({ ref, icon, bg, color, size, rtlFlip, animate, rounded, viewBox, className, onClick, ...rest }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
45
|
+
export declare const Icon: ({ ref, icon, bg, color, size, rtlFlip, animate, rounded, disabled, viewBox, className, onClick, ...rest }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { ActionLabel } from "./actionLabel/ActionLabel";
|
|
2
|
-
export { AnimationBars, AnimationIndicator, AnimationSpinner,
|
|
2
|
+
export { AnimationBars, AnimationIndicator, AnimationSpinner, Loading, Skeleton, } from "./animations/Animations";
|
|
3
3
|
export { Avatar } from "./avatar/Avatar";
|
|
4
4
|
export { AvatarGroup } from "./avatar/AvatarGroup";
|
|
5
5
|
export { Badge, getBadgeProps } from "./badge/Badge";
|
|
@@ -11,6 +11,7 @@ export { ToggleButtonGroup } from "./button/ToggleButtonGroup";
|
|
|
11
11
|
export { Callout } from "./callout/Callout";
|
|
12
12
|
export { Card } from "./card/Card";
|
|
13
13
|
export { CardCover } from "./card/CardCover";
|
|
14
|
+
export { FlipContent, type FlipContentRef } from "./card/FlipContent";
|
|
14
15
|
export { Chip } from "./chip/Chip";
|
|
15
16
|
export { Collapsable } from "./collapsable/Collapsable";
|
|
16
17
|
export { Divider } from "./divider/Divider";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type AriaProps, type CssProp } from "../../types";
|
|
2
|
-
export interface BaseProps extends CssProp, AriaProps {
|
|
1
|
+
import { type AriaProps, type CssProp, type TestProps } from "../../types";
|
|
2
|
+
export interface BaseProps extends CssProp, TestProps, AriaProps {
|
|
3
3
|
/**
|
|
4
4
|
* media source
|
|
5
5
|
*/
|
|
@@ -3,5 +3,6 @@ import { type ChildrenProp } from "../../types";
|
|
|
3
3
|
import { type Menu } from "./Menu";
|
|
4
4
|
export interface ContextMenuProps extends ChildrenProp {
|
|
5
5
|
menu: React.ReactElement<typeof Menu>;
|
|
6
|
+
disabled?: boolean;
|
|
6
7
|
}
|
|
7
|
-
export declare const ContextMenu: ({ children, menu }: ContextMenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const ContextMenu: ({ children, menu, disabled }: ContextMenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type PolymorphicProps } from "../../types";
|
|
3
3
|
import { type MenuItemProps } from "./types";
|
|
4
|
-
export declare const MenuItem: <Tag extends import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> = "button">({ as, label, color, className, icon, iconBg, iconColor, appendLabel, rtlFlip, altIcon, id, active, disabled, onClick, badge, hotKey, minimal, "data-open": childOpen, ref, ...aria }: MenuItemProps & PolymorphicProps<Tag>) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare const MenuItem: <Tag extends import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> = "button">({ as, label, color, className, icon, iconBg, iconColor, appendLabel, rtlFlip, altIcon, id, active, disabled, onClick, badge, hotKey, tabIndex, minimal, "data-open": childOpen, ref, ...aria }: MenuItemProps & PolymorphicProps<Tag>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ElementType, type MouseEvent } from "react";
|
|
2
|
-
import { type AriaProps, type BadgeType, type CallbackReturn, type ChildrenProp, type
|
|
2
|
+
import { type AriaProps, type BadgeType, type CallbackReturn, type ChildrenProp, type ColorState, type CssProp, type IconProps, type TestProps } from "../../types";
|
|
3
3
|
export interface MenuItemProps extends CssProp, AriaProps, TestProps, IconProps {
|
|
4
4
|
/**
|
|
5
5
|
* menu id passed via menu.onClick
|
|
@@ -16,7 +16,7 @@ export interface MenuItemProps extends CssProp, AriaProps, TestProps, IconProps
|
|
|
16
16
|
/**
|
|
17
17
|
* menu color
|
|
18
18
|
*/
|
|
19
|
-
color?:
|
|
19
|
+
color?: ColorState;
|
|
20
20
|
/**
|
|
21
21
|
* item active
|
|
22
22
|
*/
|
|
@@ -51,6 +51,7 @@ export interface MenuRootProps extends CssProp {
|
|
|
51
51
|
export interface MenuInnerProps extends MenuItemProps {
|
|
52
52
|
label: string;
|
|
53
53
|
minimal?: never;
|
|
54
|
+
trigger?: "hover" | "click";
|
|
54
55
|
/**
|
|
55
56
|
* floating menu className
|
|
56
57
|
*/
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
import { type AriaProps, type ColorType, type CssProp, type TestProps } from "../../types";
|
|
2
|
-
export interface NavigatorProps extends CssProp, AriaProps, TestProps {
|
|
1
|
+
import { type AriaProps, type ChildProp, type ColorType, type CssProp, type PaletteType, type TestProps } from "../../types";
|
|
2
|
+
export interface NavigatorProps extends CssProp, AriaProps, TestProps, Partial<ChildProp> {
|
|
3
|
+
length?: number;
|
|
4
|
+
current?: number;
|
|
5
|
+
disableKeyHandlers?: boolean;
|
|
3
6
|
/**
|
|
4
7
|
* navigator button color
|
|
5
8
|
*/
|
|
6
|
-
color?: ColorType | string;
|
|
9
|
+
color?: ColorType | PaletteType | string;
|
|
7
10
|
/**
|
|
8
11
|
* navigation handler
|
|
9
12
|
*/
|
|
10
13
|
onNavigate: (dir: -1 | 1) => void;
|
|
11
14
|
}
|
|
12
|
-
export declare const Navigator: ({ className, onNavigate, color, ...aria }: NavigatorProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare const Navigator: ({ className, onNavigate, color, children, length, current, disableKeyHandlers, ...aria }: NavigatorProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { type ContentProps } from "../../core/content/Content";
|
|
3
2
|
import { type HeadFootProps } from "../../core/headfoot/HeadFoot";
|
|
4
3
|
import { type AriaProps, type ChildrenProp, type CollapseProps, type CssProp, type ExpandProps, type IconProps, type TestProps } from "../../types";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { type ColorType } from "../../types";
|
|
1
|
+
import { type PaletteType, type ColorType } from "../../types";
|
|
2
2
|
export interface ProgressProps {
|
|
3
3
|
/**
|
|
4
|
-
* progress value (0-
|
|
4
|
+
* progress value (0-1)
|
|
5
5
|
*/
|
|
6
6
|
value: number;
|
|
7
7
|
/**
|
|
@@ -11,7 +11,7 @@ export interface ProgressProps {
|
|
|
11
11
|
/**
|
|
12
12
|
* color
|
|
13
13
|
*/
|
|
14
|
-
color?: ColorType;
|
|
14
|
+
color?: ColorType | PaletteType;
|
|
15
15
|
/**
|
|
16
16
|
* animate
|
|
17
17
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { type ColorType } from "../../types";
|
|
1
|
+
import { type PaletteType, type ColorType } from "../../types";
|
|
2
2
|
export interface ProgressProps {
|
|
3
3
|
/**
|
|
4
|
-
* progress value (0-
|
|
4
|
+
* progress value (0-1)
|
|
5
5
|
*/
|
|
6
6
|
value: number;
|
|
7
7
|
/**
|
|
@@ -11,6 +11,6 @@ export interface ProgressProps {
|
|
|
11
11
|
/**
|
|
12
12
|
* color
|
|
13
13
|
*/
|
|
14
|
-
color?: ColorType;
|
|
14
|
+
color?: ColorType | PaletteType;
|
|
15
15
|
}
|
|
16
16
|
export declare const ProgressCircle: ({ value, size, color, }: ProgressProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ReactElement } from "react";
|
|
2
|
-
import { type AriaProps, type BadgeType, type CallbackReturn, type ChildrenProp, type
|
|
3
|
-
export interface TabProps extends Partial<ChildrenProp>, CssProp, RefProp, AriaProps, TestProps, IconProps {
|
|
2
|
+
import { type AriaProps, type BadgeType, type CallbackReturn, type ChildrenProp, type ColorState, type CssProp, type IconProps, type PolymorphicProps, type RefProp, type TestProps, type TooltipProp } from "../../types";
|
|
3
|
+
export interface TabProps extends Partial<ChildrenProp>, CssProp, RefProp, AriaProps, TestProps, IconProps, TooltipProp {
|
|
4
4
|
/**
|
|
5
5
|
* tab id
|
|
6
6
|
*/
|
|
@@ -12,11 +12,11 @@ export interface TabProps extends Partial<ChildrenProp>, CssProp, RefProp, AriaP
|
|
|
12
12
|
/**
|
|
13
13
|
* tab color
|
|
14
14
|
*/
|
|
15
|
-
color?:
|
|
15
|
+
color?: ColorState;
|
|
16
16
|
/**
|
|
17
17
|
* tab badge
|
|
18
18
|
*/
|
|
19
|
-
badge?: BadgeType;
|
|
19
|
+
badge?: string | number | BadgeType;
|
|
20
20
|
/**
|
|
21
21
|
* disabled
|
|
22
22
|
*/
|
|
@@ -42,4 +42,4 @@ export interface TabProps extends Partial<ChildrenProp>, CssProp, RefProp, AriaP
|
|
|
42
42
|
*/
|
|
43
43
|
onClick?: (id: string) => CallbackReturn;
|
|
44
44
|
}
|
|
45
|
-
export declare const Tab: <Tag extends import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> = "button">({ ref, as, id, className, label, icon, iconBg, iconColor, rtlFlip, badge, disabled, onClose, active,
|
|
45
|
+
export declare const Tab: <Tag extends import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> = "button">({ ref, as, id, className, label, icon, iconBg, iconColor, rtlFlip, badge, disabled, onClose, active, onClick, tabFlex, color, actions, tooltip, activeClassName, ...aria }: TabProps & PolymorphicProps<Tag>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
1
2
|
import { type CallbackReturn, type ChildrenProp } from "../../types";
|
|
2
3
|
import { Tab } from "./Tab";
|
|
3
4
|
export interface TabPanelProps extends ChildrenProp<typeof Tab> {
|
|
@@ -29,6 +30,14 @@ export interface TabPanelProps extends ChildrenProp<typeof Tab> {
|
|
|
29
30
|
* tab list className
|
|
30
31
|
*/
|
|
31
32
|
headerClassName?: string;
|
|
33
|
+
/**
|
|
34
|
+
* append element
|
|
35
|
+
*/
|
|
36
|
+
append?: ReactNode;
|
|
37
|
+
/**
|
|
38
|
+
* prepend element
|
|
39
|
+
*/
|
|
40
|
+
prepend?: ReactNode;
|
|
32
41
|
/**
|
|
33
42
|
* change handler
|
|
34
43
|
*/
|
|
@@ -38,4 +47,4 @@ export interface TabPanelProps extends ChildrenProp<typeof Tab> {
|
|
|
38
47
|
*/
|
|
39
48
|
onBeforeChange?: (nextTab: string, currentTab?: string) => CallbackReturn;
|
|
40
49
|
}
|
|
41
|
-
export declare const TabPanel: ({ children, headerClassName, orientation, activeTab, justify, variant, tabFlex, gap, onBeforeChange, onChange, }: TabPanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
50
|
+
export declare const TabPanel: ({ children, headerClassName, orientation, activeTab, justify, variant, tabFlex, append, prepend, gap, onBeforeChange, onChange, }: TabPanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -22,5 +22,5 @@ export declare class ErrorBoundary extends Component<{
|
|
|
22
22
|
};
|
|
23
23
|
constructor(props: AnyObject);
|
|
24
24
|
componentDidCatch(error: Error): void;
|
|
25
|
-
render(): string | number | boolean | Iterable<import("react").ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
|
|
25
|
+
render(): string | number | bigint | boolean | Iterable<import("react").ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | null | undefined> | import("react/jsx-runtime").JSX.Element | null | undefined;
|
|
26
26
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type MouseEvent } from "react";
|
|
2
|
+
import { type ChildrenProp, type CssProp, type RefProp, type ScrollObject, type SizeObject, type TestProps } from "../../types";
|
|
2
3
|
export interface ContentProps extends ChildrenProp, CssProp, RefProp, TestProps {
|
|
3
4
|
/**
|
|
4
5
|
* scroll vevent handler
|
|
5
6
|
*/
|
|
6
|
-
onScroll?: (event:
|
|
7
|
+
onScroll?: (scroll: ScrollObject, event: MouseEvent<HTMLDivElement>) => void;
|
|
7
8
|
/**
|
|
8
9
|
* scroll vevent handler
|
|
9
10
|
*/
|
|
@@ -1,14 +1,6 @@
|
|
|
1
|
-
import { type AriaProps, type ChildrenProp, type
|
|
1
|
+
import { type AriaProps, type ChildrenProp, type CssProp, type TestProps } from "../../types";
|
|
2
2
|
interface BaseProps extends CssProp, AriaProps, ChildrenProp, TestProps {
|
|
3
3
|
dir?: "ltr" | "rtl";
|
|
4
|
-
/**
|
|
5
|
-
* background color
|
|
6
|
-
*/
|
|
7
|
-
bg?: ColorWithGrays | string;
|
|
8
|
-
/**
|
|
9
|
-
* background color
|
|
10
|
-
*/
|
|
11
|
-
color?: ColorWithGrays | string;
|
|
12
4
|
}
|
|
13
5
|
type DefaultProps = BaseProps & {
|
|
14
6
|
flex?: false;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type ChildrenProp, type IconProps, type TestProps } from "../../types";
|
|
2
|
-
export interface PageProps extends IconProps, ChildrenProp, TestProps {
|
|
1
|
+
import { type ChildrenProp, type IconProps, type RefProp, type TestProps } from "../../types";
|
|
2
|
+
export interface PageProps extends IconProps, ChildrenProp, TestProps, RefProp<HTMLDivElement> {
|
|
3
3
|
/**
|
|
4
4
|
* page title
|
|
5
5
|
*/
|
|
@@ -20,4 +20,4 @@ export interface PageProps extends IconProps, ChildrenProp, TestProps {
|
|
|
20
20
|
/**
|
|
21
21
|
* The page component used typically for routes, is a structured layout used within an application to organize and display content in a sectioned format, ensuring a consistent and intuitive user experience.
|
|
22
22
|
*/
|
|
23
|
-
export declare const Page: ({ children, paper, title, titleClassName, icon, rtlFlip, iconBg, iconColor, loading, "data-testid": testId, "data-test-value": testValue, }: PageProps) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export declare const Page: ({ ref, children, paper, title, titleClassName, icon, rtlFlip, iconBg, iconColor, loading, "data-testid": testId, "data-test-value": testValue, ...rest }: PageProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -39,15 +39,19 @@ export interface ColProps extends AriaProps, CssProp, TestProps, Partial<Childre
|
|
|
39
39
|
/**
|
|
40
40
|
* column flex
|
|
41
41
|
*/
|
|
42
|
-
flex?: "auto" | "fill" | "full";
|
|
42
|
+
flex?: "auto" | "fill" | "full" | "initial" | "content";
|
|
43
43
|
/**
|
|
44
44
|
* stretch inner content
|
|
45
45
|
*/
|
|
46
46
|
stretchContent?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* truncate text
|
|
49
|
+
*/
|
|
50
|
+
truncate?: boolean;
|
|
47
51
|
}
|
|
48
52
|
/**
|
|
49
53
|
* Responsive layout container
|
|
50
54
|
*/
|
|
51
55
|
export declare const Container: ({ children, fullWidth, className, gutter, ...aria }: ContainerProps) => import("react/jsx-runtime").JSX.Element;
|
|
52
56
|
export declare const Row: ({ children, gutter, noWrap, orient, align, justify, className, ...aria }: RowProps) => import("react/jsx-runtime").JSX.Element;
|
|
53
|
-
export declare const Col: ({ children, flex, align, className, stretchContent, ...aria }: ColProps) => import("react/jsx-runtime").JSX.Element;
|
|
57
|
+
export declare const Col: ({ children, flex, align, truncate, className, stretchContent, ...aria }: ColProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -8,9 +8,9 @@ export interface ThemeProps {
|
|
|
8
8
|
* branding css className
|
|
9
9
|
*
|
|
10
10
|
* .branding {
|
|
11
|
-
* --primary: #color;
|
|
12
|
-
* --accent: #color;
|
|
13
|
-
* --tint: #color;
|
|
11
|
+
* --color-primary: #color;
|
|
12
|
+
* --color-accent: #color;
|
|
13
|
+
* --color-tint: #color;
|
|
14
14
|
* }
|
|
15
15
|
*/
|
|
16
16
|
branding?: string;
|
|
@@ -29,7 +29,7 @@ export interface ThemeProps {
|
|
|
29
29
|
/**
|
|
30
30
|
* component rounding
|
|
31
31
|
*/
|
|
32
|
-
rounding?: "
|
|
32
|
+
rounding?: "sm" | "md" | "full";
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
35
|
* Theme override
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
type
|
|
3
|
-
|
|
4
|
-
[key: string]: AnyObject;
|
|
5
|
-
}>;
|
|
1
|
+
import { type ElementType, type ReactNode } from "react";
|
|
2
|
+
import { type ModalProps } from "../types";
|
|
3
|
+
type OverlayComponent = ElementType<ModalProps<AnyObject>>;
|
|
6
4
|
export declare const useOverlayService: (ModalOrFlyout: OverlayComponent) => [
|
|
7
5
|
Overlay: ReactNode | null,
|
|
8
6
|
openOverlay: (props?: KeyValue) => Promise<AnyObject>
|
|
@@ -21,7 +21,7 @@ export declare const useResize: <T extends HTMLElement = HTMLDivElement>(onResiz
|
|
|
21
21
|
x: number;
|
|
22
22
|
y: number;
|
|
23
23
|
}) => void, { isReverse, isVertical, onStart, onEnd }: Options) => {
|
|
24
|
-
ref: RefObject<T>;
|
|
24
|
+
ref: RefObject<T | null>;
|
|
25
25
|
onMouseDown: React.MouseEventHandler;
|
|
26
26
|
};
|
|
27
27
|
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type RefObject } from "react";
|
|
2
2
|
import { type SizeObject } from "../types";
|
|
3
|
-
export declare const useResizeObserver: <T extends HTMLElement = HTMLDivElement>(onResize?: (size: SizeObject) => void) => RefObject<T>;
|
|
3
|
+
export declare const useResizeObserver: <T extends HTMLElement = HTMLDivElement>(onResize?: (size: SizeObject) => void) => RefObject<T | null>;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -15,5 +15,8 @@ export * from "./hooks/useResizeObserver";
|
|
|
15
15
|
export * from "./hooks/useStorage";
|
|
16
16
|
export { HotKey } from "./hotkeys/HotKey";
|
|
17
17
|
export { HotKeyLabel } from "./hotkeys/HotKeyLabel";
|
|
18
|
+
export { HotKeyWrapper } from "./hotkeys/HotKeyWrapper";
|
|
19
|
+
export { type ModalProps } from "./types";
|
|
18
20
|
export { CoreIcons } from "./types/icons";
|
|
21
|
+
export { cloneChildren } from "./utils";
|
|
19
22
|
export { ApplicationProvider, useApplicationContext, useGlobals, useNotificationService, } from "./context/Global";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { type ColorType, type Elements, type IconProps } from "../../types";
|
|
1
|
+
import { type ColorState, type Elements, type IconProps } from "../../types";
|
|
3
2
|
export interface AlertProps extends Omit<IconProps, "iconBg" | "iconColor"> {
|
|
4
3
|
/**
|
|
5
4
|
* toast type
|
|
@@ -16,7 +15,7 @@ export interface AlertProps extends Omit<IconProps, "iconBg" | "iconColor"> {
|
|
|
16
15
|
/**
|
|
17
16
|
* theme color
|
|
18
17
|
*/
|
|
19
|
-
color?:
|
|
18
|
+
color?: ColorState;
|
|
20
19
|
/**
|
|
21
20
|
* extra action button
|
|
22
21
|
*/
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import { type ElementType } from "react";
|
|
2
2
|
import { type AriaProps, type CallbackReturn, type ChildrenProp, type Elements, type IconProps, type TestProps } from "../../types";
|
|
3
|
-
export interface FlyoutProps extends AriaProps, TestProps, IconProps, ChildrenProp {
|
|
3
|
+
export interface FlyoutProps extends AriaProps, TestProps, Omit<IconProps, "icon">, ChildrenProp {
|
|
4
|
+
icon?: string | ElementType<IconProps>;
|
|
4
5
|
/**
|
|
5
6
|
* flyout alignment
|
|
6
7
|
*/
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { type ColorType, type Elements, type IconProps } from "../../types";
|
|
1
|
+
import { type ColorState, type Elements, type IconProps } from "../../types";
|
|
3
2
|
export interface MessageProps extends Omit<IconProps, "iconBg" | "iconColor"> {
|
|
4
3
|
/**
|
|
5
4
|
* message title
|
|
@@ -12,7 +11,7 @@ export interface MessageProps extends Omit<IconProps, "iconBg" | "iconColor"> {
|
|
|
12
11
|
/**
|
|
13
12
|
* theme color
|
|
14
13
|
*/
|
|
15
|
-
color?:
|
|
14
|
+
color?: ColorState;
|
|
16
15
|
/**
|
|
17
16
|
* extra action button
|
|
18
17
|
*/
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import { type ElementType } from "react";
|
|
2
2
|
import { type AriaProps, type CallbackReturn, type ChildrenProp, type Elements, type IconProps, type TestProps } from "../../types";
|
|
3
|
-
export interface ModalProps extends AriaProps, TestProps, IconProps, ChildrenProp {
|
|
3
|
+
export interface ModalProps extends AriaProps, TestProps, Omit<IconProps, "icon">, ChildrenProp {
|
|
4
|
+
icon?: string | ElementType<IconProps>;
|
|
4
5
|
/**
|
|
5
6
|
* header className
|
|
6
7
|
*/
|
|
@@ -41,6 +42,14 @@ export interface ModalProps extends AriaProps, TestProps, IconProps, ChildrenPro
|
|
|
41
42
|
* minimum width
|
|
42
43
|
*/
|
|
43
44
|
minWidth?: string | number;
|
|
45
|
+
/**
|
|
46
|
+
* portal root element
|
|
47
|
+
*/
|
|
48
|
+
root?: HTMLElement;
|
|
49
|
+
/**
|
|
50
|
+
* hide mask background
|
|
51
|
+
*/
|
|
52
|
+
noMask?: boolean;
|
|
44
53
|
/**
|
|
45
54
|
* close handler
|
|
46
55
|
*/
|
|
@@ -50,4 +59,4 @@ export interface ModalProps extends AriaProps, TestProps, IconProps, ChildrenPro
|
|
|
50
59
|
*/
|
|
51
60
|
onBeforeClose?: (...args: AnyObject) => CallbackReturn;
|
|
52
61
|
}
|
|
53
|
-
export declare const Modal: ({ icon, iconBg, iconColor, iconClassName, rtlFlip, title, actions, headerClassName, onClose, onBeforeClose, children, loading, size, width, height, minHeight, minWidth, ...aria }: ModalProps) => import("react/jsx-runtime").JSX.Element;
|
|
62
|
+
export declare const Modal: ({ icon, iconBg, iconColor, iconClassName, rtlFlip, title, actions, headerClassName, onClose, onBeforeClose, children, loading, root, size, noMask, width, height, minHeight, minWidth, ...aria }: ModalProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { type ColorType, type Elements, type IconProps } from "../../types";
|
|
1
|
+
import { type ColorState, type Elements, type IconProps } from "../../types";
|
|
3
2
|
export interface ToastProps extends Omit<IconProps, "iconBg" | "iconColor"> {
|
|
4
3
|
/**
|
|
5
4
|
* toast type
|
|
@@ -16,7 +15,7 @@ export interface ToastProps extends Omit<IconProps, "iconBg" | "iconColor"> {
|
|
|
16
15
|
/**
|
|
17
16
|
* theme color
|
|
18
17
|
*/
|
|
19
|
-
color?:
|
|
18
|
+
color?: ColorState;
|
|
20
19
|
/**
|
|
21
20
|
* extra action button
|
|
22
21
|
*/
|
|
@@ -10,9 +10,9 @@ export interface TooltipProps extends TooltipType, RefProp {
|
|
|
10
10
|
*/
|
|
11
11
|
copyContent?: boolean | string;
|
|
12
12
|
disabled?: boolean;
|
|
13
|
-
children: ReactElement
|
|
13
|
+
children: ReactElement<KeyValue>;
|
|
14
14
|
}
|
|
15
15
|
export declare const getTooltipProps: (tooltip?: string | TooltipType, innerRef?: AnyObject) => (TooltipType & {
|
|
16
16
|
ref: AnyObject;
|
|
17
17
|
}) | undefined;
|
|
18
|
-
export declare const Tooltip: ({ ref, children, color, content, open, copyContent, disabled, placement: _placement, ...rest }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export declare const Tooltip: ({ ref, children, color, textColor, content, open, copyContent, disabled, placement: _placement, ...rest }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
|