@react-fabric/core 1.0.0-beta.5 → 1.0.0-beta.52
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} +8 -8
- 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 +26 -8
- package/dist/cjs/components/animations/Animations.js +118 -24
- package/dist/cjs/components/avatar/Avatar.js +43 -16
- package/dist/cjs/components/avatar/AvatarGroup.js +22 -4
- package/dist/cjs/components/badge/Badge.js +35 -6
- package/dist/cjs/components/breadcrumbs/Breadcrumbs.js +39 -8
- package/dist/cjs/components/button/Button.js +42 -15
- package/dist/cjs/components/button/ButtonGroup.js +30 -3
- package/dist/cjs/components/button/ConfirmButton.js +32 -4
- package/dist/cjs/components/button/ToggleButtonGroup.js +41 -15
- package/dist/cjs/components/callout/Callout.js +44 -4
- package/dist/cjs/components/card/Card.js +48 -10
- package/dist/cjs/components/card/CardCover.js +36 -5
- package/dist/cjs/components/card/FlipContent.js +56 -0
- package/dist/cjs/components/chip/Chip.js +32 -7
- package/dist/cjs/components/collapsable/Collapsable.js +32 -6
- package/dist/cjs/components/divider/Divider.js +30 -7
- package/dist/cjs/components/dropdown/Dropdown.js +48 -9
- package/dist/cjs/components/dropdown/DropdownTool.js +4 -3
- package/dist/cjs/components/empty/EmptyContent.js +35 -5
- package/dist/cjs/components/icon/Icon.js +44 -16
- package/dist/cjs/components/media/Media.js +172 -75
- package/dist/cjs/components/menu/ContextMenu.js +49 -10
- package/dist/cjs/components/menu/Menu.js +74 -21
- package/dist/cjs/components/menu/MenuItem.js +51 -16
- package/dist/cjs/components/meter/Meter.js +26 -3
- package/dist/cjs/components/navigator/Navigator.js +48 -13
- package/dist/cjs/components/panel/Panel.js +47 -9
- package/dist/cjs/components/panel/PanelGroup.js +25 -2
- package/dist/cjs/components/panel/PanelStack.js +31 -0
- package/dist/cjs/components/progress/ProgressBar.js +31 -9
- package/dist/cjs/components/progress/ProgressCircle.js +29 -7
- package/dist/cjs/components/tabpanel/Tab.js +89 -38
- package/dist/cjs/components/tabpanel/TabPanel.js +53 -16
- package/dist/cjs/context/Global.js +28 -1
- package/dist/cjs/context/NotificationCenter.js +3 -3
- package/dist/cjs/core/aside/Aside.js +49 -11
- package/dist/cjs/core/boundary/ErrorBoundary.js +23 -8
- package/dist/cjs/core/boundary/ErrorIcon.js +1 -2
- package/dist/cjs/core/content/Content.js +15 -8
- package/dist/cjs/core/headfoot/HeadFoot.js +44 -20
- package/dist/cjs/core/page/Page.js +40 -29
- package/dist/cjs/core/responsive/Responsive.js +59 -6
- package/dist/cjs/core/section/Section.js +1 -2
- package/dist/cjs/core/theme/ThemeProvider.js +32 -10
- package/dist/cjs/core/viewport/Viewport.js +18 -2
- package/dist/cjs/hooks/useControlledValue.js +12 -0
- package/dist/cjs/hooks/useDebounce.js +14 -1
- package/dist/cjs/hooks/useEffectDebugger.js +54 -2
- package/dist/cjs/hooks/useIsDark.js +8 -0
- package/dist/cjs/hooks/useIsRtl.js +12 -0
- package/dist/cjs/hooks/useNavigator.js +6 -4
- package/dist/cjs/hooks/useOverlayService.js +24 -0
- package/dist/cjs/hooks/usePropToggle.js +16 -5
- package/dist/cjs/hooks/useResize.js +18 -0
- package/dist/cjs/hooks/useResizeObserver.js +20 -1
- package/dist/cjs/hooks/useStorage.js +39 -0
- 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 +10 -1
- package/dist/cjs/typography/Abbr.js +32 -6
- package/dist/cjs/typography/{Link.js → Anchor.js} +23 -5
- package/dist/cjs/typography/Mark.js +22 -4
- package/dist/cjs/typography/Text.js +30 -5
- package/dist/cjs/typography/Title.js +19 -4
- package/dist/cjs/utils/cloneElement.js +47 -0
- package/dist/cjs/utils/getColor.js +1 -18
- package/dist/esm/components/actionLabel/ActionLabel.js +26 -8
- package/dist/esm/components/animations/Animations.js +119 -25
- package/dist/esm/components/avatar/Avatar.js +44 -17
- package/dist/esm/components/avatar/AvatarGroup.js +22 -4
- package/dist/esm/components/badge/Badge.js +36 -7
- package/dist/esm/components/breadcrumbs/Breadcrumbs.js +39 -8
- package/dist/esm/components/button/Button.js +42 -15
- package/dist/esm/components/button/ButtonGroup.js +31 -4
- package/dist/esm/components/button/ConfirmButton.js +32 -4
- package/dist/esm/components/button/ToggleButtonGroup.js +42 -16
- package/dist/esm/components/callout/Callout.js +44 -4
- package/dist/esm/components/card/Card.js +49 -11
- package/dist/esm/components/card/CardCover.js +36 -5
- package/dist/esm/components/card/FlipContent.js +56 -0
- package/dist/esm/components/chip/Chip.js +33 -8
- package/dist/esm/components/collapsable/Collapsable.js +32 -6
- package/dist/esm/components/divider/Divider.js +31 -8
- package/dist/esm/components/dropdown/Dropdown.js +48 -9
- package/dist/esm/components/dropdown/DropdownTool.js +4 -3
- package/dist/esm/components/empty/EmptyContent.js +35 -5
- package/dist/esm/components/icon/Icon.js +44 -16
- package/dist/esm/components/media/Media.js +173 -76
- package/dist/esm/components/menu/ContextMenu.js +51 -12
- package/dist/esm/components/menu/Menu.js +76 -23
- package/dist/esm/components/menu/MenuItem.js +45 -10
- package/dist/esm/components/meter/Meter.js +26 -3
- package/dist/esm/components/navigator/Navigator.js +48 -13
- package/dist/esm/components/panel/Panel.js +47 -9
- package/dist/esm/components/panel/PanelGroup.js +25 -2
- package/dist/esm/components/panel/PanelStack.js +31 -0
- package/dist/esm/components/progress/ProgressBar.js +31 -9
- package/dist/esm/components/progress/ProgressCircle.js +29 -7
- package/dist/esm/components/tabpanel/Tab.js +90 -39
- package/dist/esm/components/tabpanel/TabPanel.js +53 -16
- package/dist/esm/context/Global.js +28 -1
- package/dist/esm/context/NotificationCenter.js +3 -3
- package/dist/esm/core/aside/Aside.js +49 -11
- package/dist/esm/core/boundary/ErrorBoundary.js +23 -8
- package/dist/esm/core/boundary/ErrorIcon.js +1 -2
- package/dist/esm/core/content/Content.js +15 -8
- package/dist/esm/core/headfoot/HeadFoot.js +44 -20
- package/dist/esm/core/page/Page.js +40 -29
- package/dist/esm/core/responsive/Responsive.js +59 -6
- package/dist/esm/core/section/Section.js +1 -2
- package/dist/esm/core/theme/ThemeProvider.js +32 -10
- package/dist/esm/core/viewport/Viewport.js +18 -2
- package/dist/esm/hooks/useControlledValue.js +12 -0
- package/dist/esm/hooks/useDebounce.js +14 -1
- package/dist/esm/hooks/useEffectDebugger.js +54 -2
- package/dist/esm/hooks/useIsDark.js +8 -0
- package/dist/esm/hooks/useIsRtl.js +12 -0
- package/dist/esm/hooks/useNavigator.js +7 -5
- package/dist/esm/hooks/useOverlayService.js +24 -0
- package/dist/esm/hooks/usePropToggle.js +16 -5
- package/dist/esm/hooks/useResize.js +18 -0
- package/dist/esm/hooks/useResizeObserver.js +20 -1
- package/dist/esm/hooks/useStorage.js +39 -0
- 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 +10 -1
- package/dist/esm/typography/Abbr.js +32 -6
- package/dist/esm/typography/{Link.js → Anchor.js} +24 -6
- package/dist/esm/typography/Mark.js +22 -4
- package/dist/esm/typography/Text.js +31 -6
- package/dist/esm/typography/Title.js +20 -5
- package/dist/esm/utils/cloneElement.js +47 -0
- package/dist/esm/utils/getColor.js +2 -16
- package/dist/types/components/actionLabel/ActionLabel.d.ts +23 -4
- package/dist/types/components/animations/Animations.d.ts +84 -5
- package/dist/types/components/avatar/Avatar.d.ts +29 -5
- package/dist/types/components/avatar/AvatarGroup.d.ts +19 -1
- package/dist/types/components/badge/Badge.d.ts +30 -1
- package/dist/types/components/breadcrumbs/Breadcrumbs.d.ts +31 -2
- package/dist/types/components/button/Button.d.ts +29 -6
- package/dist/types/components/button/ButtonGroup.d.ts +28 -3
- package/dist/types/components/button/ConfirmButton.d.ts +28 -3
- package/dist/types/components/button/ToggleButtonGroup.d.ts +39 -11
- package/dist/types/components/callout/Callout.d.ts +29 -3
- package/dist/types/components/card/Card.d.ts +42 -4
- package/dist/types/components/card/CardCover.d.ts +25 -0
- package/dist/types/components/card/FlipContent.d.ts +28 -0
- package/dist/types/components/chip/Chip.d.ts +24 -4
- package/dist/types/components/collapsable/Collapsable.d.ts +33 -3
- package/dist/types/components/divider/Divider.d.ts +30 -7
- package/dist/types/components/dropdown/Dropdown.d.ts +40 -1
- package/dist/types/components/dropdown/DropdownTool.d.ts +27 -1
- package/dist/types/components/empty/EmptyContent.d.ts +32 -3
- package/dist/types/components/icon/Icon.d.ts +32 -6
- package/dist/types/components/index.d.ts +2 -1
- package/dist/types/components/media/Media.d.ts +56 -2
- package/dist/types/components/menu/ContextMenu.d.ts +21 -2
- package/dist/types/components/menu/Menu.d.ts +29 -0
- package/dist/types/components/menu/MenuItem.d.ts +22 -2
- package/dist/types/components/menu/types.d.ts +3 -2
- package/dist/types/components/meter/Meter.d.ts +24 -0
- package/dist/types/components/navigator/Navigator.d.ts +29 -4
- package/dist/types/components/panel/Panel.d.ts +37 -1
- package/dist/types/components/panel/PanelGroup.d.ts +24 -0
- package/dist/types/components/panel/PanelStack.d.ts +31 -0
- package/dist/types/components/progress/ProgressBar.d.ts +23 -3
- package/dist/types/components/progress/ProgressCircle.d.ts +22 -3
- package/dist/types/components/tabpanel/Tab.d.ts +36 -5
- package/dist/types/components/tabpanel/TabPanel.d.ts +43 -1
- package/dist/types/context/Global.d.ts +24 -1
- package/dist/types/core/aside/Aside.d.ts +38 -1
- package/dist/types/core/boundary/ErrorBoundary.d.ts +18 -2
- package/dist/types/core/content/Content.d.ts +9 -3
- package/dist/types/core/headfoot/HeadFoot.d.ts +41 -9
- package/dist/types/core/page/Page.d.ts +29 -4
- package/dist/types/core/responsive/Responsive.d.ts +58 -3
- package/dist/types/core/section/Section.d.ts +16 -1
- package/dist/types/core/theme/ThemeProvider.d.ts +25 -5
- package/dist/types/core/viewport/Viewport.d.ts +15 -1
- package/dist/types/hooks/useControlledValue.d.ts +13 -2
- package/dist/types/hooks/useDebounce.d.ts +12 -0
- package/dist/types/hooks/useEffectDebugger.d.ts +49 -0
- package/dist/types/hooks/useIsDark.d.ts +8 -0
- package/dist/types/hooks/useIsRtl.d.ts +12 -0
- package/dist/types/hooks/useNavigator.d.ts +18 -1
- package/dist/types/hooks/useOverlayService.d.ts +28 -9
- package/dist/types/hooks/usePropToggle.d.ts +16 -5
- package/dist/types/hooks/useResize.d.ts +19 -1
- package/dist/types/hooks/useResizeObserver.d.ts +20 -1
- package/dist/types/hooks/useStorage.d.ts +38 -0
- 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 +10 -1
- package/dist/types/types/index.d.ts +26 -6
- package/dist/types/typography/Abbr.d.ts +34 -4
- package/dist/types/typography/Anchor.d.ts +42 -0
- package/dist/types/typography/Copy.d.ts +15 -0
- package/dist/types/typography/Mark.d.ts +22 -4
- package/dist/types/typography/Text.d.ts +27 -1
- package/dist/types/typography/Title.d.ts +16 -1
- 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 +38 -11
- package/src/components/animations/Animations.tsx +118 -33
- package/src/components/avatar/Avatar.tsx +106 -91
- package/src/components/avatar/AvatarGroup.tsx +23 -5
- package/src/components/badge/Badge.tsx +41 -9
- package/src/components/breadcrumbs/Breadcrumbs.tsx +42 -9
- package/src/components/button/Button.tsx +50 -23
- package/src/components/button/ButtonGroup.tsx +33 -7
- package/src/components/button/ConfirmButton.tsx +41 -7
- package/src/components/button/ToggleButtonGroup.tsx +74 -47
- package/src/components/callout/Callout.tsx +55 -12
- package/src/components/card/Card.tsx +64 -15
- package/src/components/card/CardCover.tsx +36 -6
- package/src/components/card/FlipContent.tsx +90 -0
- package/src/components/chip/Chip.tsx +39 -13
- package/src/components/collapsable/Collapsable.tsx +38 -7
- package/src/components/divider/Divider.tsx +42 -16
- package/src/components/dropdown/Dropdown.tsx +46 -11
- package/src/components/dropdown/DropdownTool.tsx +30 -3
- package/src/components/empty/EmptyContent.tsx +47 -6
- package/src/components/icon/Icon.tsx +85 -68
- package/src/components/index.ts +2 -1
- package/src/components/media/Media.tsx +195 -106
- package/src/components/menu/ContextMenu.tsx +55 -11
- package/src/components/menu/Menu.tsx +85 -30
- package/src/components/menu/MenuItem.tsx +40 -9
- package/src/components/menu/types.ts +3 -2
- package/src/components/meter/Meter.tsx +26 -3
- package/src/components/navigator/Navigator.tsx +58 -7
- package/src/components/panel/Panel.tsx +47 -9
- package/src/components/panel/PanelGroup.tsx +25 -2
- package/src/components/panel/PanelStack.tsx +31 -0
- package/src/components/progress/ProgressBar.tsx +33 -14
- package/src/components/progress/ProgressCircle.tsx +29 -13
- package/src/components/tabpanel/Tab.tsx +112 -64
- package/src/components/tabpanel/TabPanel.tsx +67 -12
- package/src/context/Global.tsx +28 -1
- package/src/context/NotificationCenter.tsx +3 -3
- package/src/core/aside/Aside.tsx +50 -12
- package/src/core/boundary/ErrorBoundary.tsx +25 -8
- package/src/core/boundary/ErrorIcon.tsx +1 -2
- package/src/core/content/Content.tsx +23 -13
- package/src/core/headfoot/HeadFoot.tsx +42 -35
- package/src/core/page/Page.tsx +44 -6
- package/src/core/responsive/Responsive.tsx +66 -8
- package/src/core/section/Section.tsx +17 -3
- package/src/core/theme/ThemeProvider.tsx +35 -14
- package/src/core/viewport/Viewport.tsx +16 -3
- package/src/hooks/useControlledValue.tsx +12 -0
- package/src/hooks/useDebounce.ts +13 -1
- package/src/hooks/useEffectDebugger.ts +50 -2
- package/src/hooks/useIsDark.ts +8 -0
- package/src/hooks/useIsRtl.ts +12 -0
- package/src/hooks/useNavigator.tsx +28 -5
- package/src/hooks/useOverlayService.tsx +36 -6
- package/src/hooks/usePropToggle.ts +16 -5
- package/src/hooks/useResize.ts +19 -1
- package/src/hooks/useResizeObserver.ts +32 -9
- package/src/hooks/useStorage.ts +38 -0
- 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 +18 -3
- package/src/types/index.ts +268 -27
- package/src/typography/Abbr.tsx +44 -11
- package/src/typography/{Link.tsx → Anchor.tsx} +26 -14
- package/src/typography/Copy.tsx +15 -0
- package/src/typography/Mark.tsx +24 -10
- package/src/typography/Text.tsx +31 -13
- package/src/typography/Title.tsx +18 -7
- 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
|
@@ -10,17 +10,38 @@ import { useEffectDebugger } from '../../hooks/useEffectDebugger.js';
|
|
|
10
10
|
import { HotKey } from '../../hotkeys/HotKey.js';
|
|
11
11
|
import { HotKeyLabel } from '../../hotkeys/HotKeyLabel.js';
|
|
12
12
|
import { Tooltip } from '../../overlays/tooltip/Tooltip.js';
|
|
13
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
14
|
+
import { getColor } from '../../utils/getColor.js';
|
|
13
15
|
import { AnimationIndicator } from '../animations/Animations.js';
|
|
14
16
|
import { getBadgeProps, Badge } from '../badge/Badge.js';
|
|
15
17
|
import { Icon } from '../icon/Icon.js';
|
|
16
|
-
import classes from './Button.module.css';
|
|
17
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
18
18
|
|
|
19
19
|
var _excluded = ["as", "ref", "children", "className", "active", "color", "icon", "iconBg", "iconColor", "iconAlign", "altIcon", "rtlFlip", "rounded", "size", "disabled", "loading", "variant", "badge", "fullWidth", "spinOnHover", "onClick", "actionMessage", "stopPropagation", "type", "hotKey", "showActionDone", "showActionDoneEvent", "tabIndex", "data-ref"];
|
|
20
20
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
21
21
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* A versatile button component that supports various styles, icons, and actions.
|
|
24
|
+
* It can be used as a primary action button, with options for loading states, action messages, and more.
|
|
25
|
+
* It supports polymorphic rendering, allowing it to be used as different HTML elements (e.g., button, a, div).
|
|
26
|
+
* It also includes features like after action tooltips, badges, and keyboard shortcuts.
|
|
27
|
+
*
|
|
28
|
+
* @param {ButtonProps} props - The properties for the Button component.
|
|
29
|
+
* @returns {JSX.Element} The rendered Button component.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```jsx
|
|
33
|
+
* <Button
|
|
34
|
+
* color="primary"
|
|
35
|
+
* size="md"
|
|
36
|
+
* variant="solid"
|
|
37
|
+
* icon="check"
|
|
38
|
+
* onClick={() => console.log("Button clicked!")}
|
|
39
|
+
* >
|
|
40
|
+
* Click Me
|
|
41
|
+
* </Button>
|
|
42
|
+
* ```
|
|
43
|
+
*
|
|
44
|
+
* @see {@link https://adarshpastakia.github.io/react-fabric/?path=/docs/core-components-button--docs} for more details.
|
|
24
45
|
*/
|
|
25
46
|
var Button = function Button(_ref) {
|
|
26
47
|
var as = _ref.as,
|
|
@@ -67,6 +88,8 @@ var Button = function Button(_ref) {
|
|
|
67
88
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
68
89
|
actionDone = _useState4[0],
|
|
69
90
|
setActionDone = _useState4[1];
|
|
91
|
+
|
|
92
|
+
// Handle click events
|
|
70
93
|
var clickHandler = useCallback(function (e) {
|
|
71
94
|
setBusy(true);
|
|
72
95
|
stopPropagation && e.stopPropagation();
|
|
@@ -101,7 +124,7 @@ var Button = function Button(_ref) {
|
|
|
101
124
|
return {
|
|
102
125
|
content: actionMessage,
|
|
103
126
|
placement: "top",
|
|
104
|
-
color: color,
|
|
127
|
+
color: "".concat(color, "-100"),
|
|
105
128
|
open: true
|
|
106
129
|
};
|
|
107
130
|
}
|
|
@@ -109,24 +132,25 @@ var Button = function Button(_ref) {
|
|
|
109
132
|
var badgeProps = useMemo(function () {
|
|
110
133
|
return getBadgeProps(badge);
|
|
111
134
|
}, [badge]);
|
|
135
|
+
var hotKeyHandler = useRef(function () {
|
|
136
|
+
var _refEl$current;
|
|
137
|
+
!disabled && ((_refEl$current = refEl.current) === null || _refEl$current === void 0 ? void 0 : _refEl$current.click());
|
|
138
|
+
});
|
|
112
139
|
var E = as !== null && as !== void 0 ? as : "button";
|
|
113
140
|
return /*#__PURE__*/jsxs("div", {
|
|
114
|
-
className: classNames(
|
|
141
|
+
className: classNames("fabric-buttonWrapper", className, "relative align-text-top select-none focus-within:z-1", fullWidth ? "block w-full" : "inline-block"),
|
|
115
142
|
"data-ref": dataRef !== null && dataRef !== void 0 ? dataRef : "button",
|
|
116
143
|
"data-size": size,
|
|
117
144
|
"data-loading": busy || loading,
|
|
118
145
|
"data-disabled": disabled,
|
|
119
146
|
children: [hotKey && /*#__PURE__*/jsx(HotKey, {
|
|
120
147
|
keyCombo: hotKey,
|
|
121
|
-
handler:
|
|
122
|
-
var _refEl$current;
|
|
123
|
-
return !disabled && ((_refEl$current = refEl.current) === null || _refEl$current === void 0 ? void 0 : _refEl$current.click());
|
|
124
|
-
}
|
|
148
|
+
handler: hotKeyHandler.current
|
|
125
149
|
}), /*#__PURE__*/jsx(TooltipWrapper, _objectSpread(_objectSpread({}, tooltipProps), {}, {
|
|
126
150
|
children: /*#__PURE__*/jsxs(E, _objectSpread(_objectSpread({
|
|
127
151
|
ref: mergeRefs(ref, refEl),
|
|
128
152
|
role: "button",
|
|
129
|
-
className: classNames(
|
|
153
|
+
className: classNames("fabric-button", "pointer-events-auto cursor-pointer select-none flex flex-nowrap w-full h-full items-center border-0 -outline-offset-1 justify-center max-w-72 p-0 font-sans font-medium appearance-none", "focus-visible:ring-2 focus-visible:ring-offset-2 buttonInner", fullWidth && "max-w-full w-full", rounded && "rounded-full", spinOnHover && "fabric-spinOnHover"),
|
|
130
154
|
type: type,
|
|
131
155
|
disabled: disabled,
|
|
132
156
|
tabIndex: tabIndex,
|
|
@@ -137,29 +161,32 @@ var Button = function Button(_ref) {
|
|
|
137
161
|
"data-variant": variant
|
|
138
162
|
}, aria), {}, {
|
|
139
163
|
children: [icon && /*#__PURE__*/jsx(Icon, {
|
|
140
|
-
className:
|
|
164
|
+
className: "fabric-buttonIcon",
|
|
141
165
|
icon: icon,
|
|
142
166
|
bg: iconBg,
|
|
143
167
|
color: iconColor,
|
|
144
168
|
rtlFlip: rtlFlip,
|
|
145
169
|
"data-align": iconAlign
|
|
146
170
|
}), /*#__PURE__*/isValidElement(children) && /*#__PURE__*/jsx("div", {
|
|
147
|
-
className:
|
|
171
|
+
className: "fabric-buttonChild",
|
|
148
172
|
children: children
|
|
149
173
|
}), isString(children) && /*#__PURE__*/jsx("label", {
|
|
150
|
-
className: classNames(
|
|
174
|
+
className: classNames("fabric-buttonLabel", "truncate"),
|
|
151
175
|
"data-colored-icon": !!iconBg,
|
|
152
176
|
children: children
|
|
153
177
|
}), !isNil(badge) && /*#__PURE__*/jsx(Badge, _objectSpread({}, badgeProps)), hotKey && /*#__PURE__*/jsx(HotKeyLabel, {
|
|
154
178
|
keyCombo: hotKey
|
|
155
179
|
}), altIcon && /*#__PURE__*/jsx(Icon, {
|
|
156
|
-
className:
|
|
180
|
+
className: "fabric-altIcon",
|
|
157
181
|
icon: altIcon,
|
|
158
182
|
rtlFlip: true
|
|
159
183
|
})]
|
|
160
184
|
}))
|
|
161
185
|
})), actionDone && /*#__PURE__*/jsx("div", {
|
|
162
|
-
className: classNames("absolute inset-0 overflow-hidden flex justify-center items-center",
|
|
186
|
+
className: classNames("absolute inset-0 overflow-hidden flex justify-center items-center", rounded ? "rounded-full" : "rounded"),
|
|
187
|
+
style: {
|
|
188
|
+
backgroundColor: getColor("".concat(color, "-300"))
|
|
189
|
+
},
|
|
163
190
|
children: /*#__PURE__*/jsx(AnimationIndicator, {
|
|
164
191
|
type: "check",
|
|
165
192
|
color: color
|
|
@@ -3,13 +3,40 @@
|
|
|
3
3
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
4
4
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
5
5
|
import classNames from 'classnames';
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
6
|
+
import { cloneElement } from 'react';
|
|
7
|
+
import { cloneChildren } from '../../utils/cloneElement.js';
|
|
8
|
+
import '@react-fabric/utilities';
|
|
8
9
|
import { jsx } from 'react/jsx-runtime';
|
|
9
10
|
|
|
10
11
|
var _excluded = ["vertical", "className", "children", "variant", "rounded", "disabled", "fullWidth", "color", "size"];
|
|
11
12
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
12
13
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
14
|
+
/**
|
|
15
|
+
* A component that groups buttons together, allowing for consistent styling and behavior across multiple buttons.
|
|
16
|
+
* It supports vertical orientation, various button styles, and can handle properties like size, color, and disabled state.
|
|
17
|
+
* This component is useful for creating button groups that maintain a uniform appearance and functionality,
|
|
18
|
+
* such as toolbars, action groups, or navigation buttons.
|
|
19
|
+
*
|
|
20
|
+
* @param {ButtonGroupProps} props - The properties for the ButtonGroup component.
|
|
21
|
+
* @returns {JSX.Element} The rendered ButtonGroup component.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```jsx
|
|
25
|
+
* <ButtonGroup
|
|
26
|
+
* variant="solid"
|
|
27
|
+
* color="primary"
|
|
28
|
+
* className="my-custom-class"
|
|
29
|
+
* aria-label="Button Group"
|
|
30
|
+
* vertical
|
|
31
|
+
* >
|
|
32
|
+
* <Button>Button 1</Button>
|
|
33
|
+
* <Button>Button 2</Button>
|
|
34
|
+
* <Button>Button 3</Button>
|
|
35
|
+
* </ButtonGroup>
|
|
36
|
+
* ```
|
|
37
|
+
*
|
|
38
|
+
* @see {@link https://adarshpastakia.github.io/react-fabric/?path=/docs/core-components-buttongroup--docs} for more details.
|
|
39
|
+
*/
|
|
13
40
|
var ButtonGroup = function ButtonGroup(_ref) {
|
|
14
41
|
var vertical = _ref.vertical,
|
|
15
42
|
className = _ref.className,
|
|
@@ -23,9 +50,9 @@ var ButtonGroup = function ButtonGroup(_ref) {
|
|
|
23
50
|
aria = _objectWithoutProperties(_ref, _excluded);
|
|
24
51
|
return /*#__PURE__*/jsx("div", _objectSpread(_objectSpread({
|
|
25
52
|
"data-ref": "buttonGroup",
|
|
26
|
-
className: classNames(
|
|
53
|
+
className: classNames("fabric-buttonGroup", className, fullWidth ? "flex" : "inline-flex", "flex-nowrap align-middle rounded", vertical && "vertical", vertical && "flex-col items-stretch")
|
|
27
54
|
}, aria), {}, {
|
|
28
|
-
children:
|
|
55
|
+
children: cloneChildren(children, function (child) {
|
|
29
56
|
return /*#__PURE__*/cloneElement(child, _objectSpread({
|
|
30
57
|
color: color,
|
|
31
58
|
size: size,
|
|
@@ -11,12 +11,33 @@ import { useTranslation } from 'react-i18next';
|
|
|
11
11
|
import { Button } from './Button.js';
|
|
12
12
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
13
13
|
|
|
14
|
-
var _excluded = ["ref", "message", "color", "okLabel", "cancelLabel", "onClick", "loading", "actionMessage", "showActionDone", "showActionDoneEvent"],
|
|
14
|
+
var _excluded = ["ref", "message", "color", "okLabel", "cancelLabel", "onClick", "loading", "placement", "actionMessage", "showActionDone", "showActionDoneEvent"],
|
|
15
15
|
_excluded2 = ["ref"];
|
|
16
16
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
17
17
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* A button that shows a confirmation dialog when clicked, allowing the user to confirm or cancel an action.
|
|
20
|
+
* It supports custom messages, labels, and loading states.
|
|
21
|
+
* This component is useful for actions that require user confirmation, such as deleting items or submitting forms.
|
|
22
|
+
* It uses the Floating UI library to manage the positioning of the confirmation dialog, ensuring it appears correctly relative to the button.
|
|
23
|
+
* It also supports custom placement of the dialog, and can display an action message when the action is completed.
|
|
24
|
+
*
|
|
25
|
+
* @param {ConfirmButtonProps} props - The properties for the ConfirmButton component.
|
|
26
|
+
* @returns {JSX.Element} The rendered ConfirmButton component.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```jsx
|
|
30
|
+
* <ConfirmButton
|
|
31
|
+
* message="Are you sure you want to delete this item?"
|
|
32
|
+
* onClick={(confirmed) => {
|
|
33
|
+
* if (confirmed) {
|
|
34
|
+
* // Perform action
|
|
35
|
+
* }
|
|
36
|
+
* }}
|
|
37
|
+
* />
|
|
38
|
+
* ```
|
|
39
|
+
*
|
|
40
|
+
* @see {@link https://adarshpastakia.github.io/react-fabric/?path=/docs/core-components-confirmbutton--docs} for more details.
|
|
20
41
|
*/
|
|
21
42
|
var ConfirmButton = function ConfirmButton(_ref) {
|
|
22
43
|
var ref = _ref.ref,
|
|
@@ -26,6 +47,8 @@ var ConfirmButton = function ConfirmButton(_ref) {
|
|
|
26
47
|
cancelLabel = _ref.cancelLabel,
|
|
27
48
|
onClick = _ref.onClick,
|
|
28
49
|
loading = _ref.loading,
|
|
50
|
+
_ref$placement = _ref.placement,
|
|
51
|
+
placement = _ref$placement === void 0 ? "bottom" : _ref$placement,
|
|
29
52
|
actionMessage = _ref.actionMessage,
|
|
30
53
|
showActionDone = _ref.showActionDone,
|
|
31
54
|
_ref$showActionDoneEv = _ref.showActionDoneEvent,
|
|
@@ -77,7 +100,7 @@ var ConfirmButton = function ConfirmButton(_ref) {
|
|
|
77
100
|
}
|
|
78
101
|
},
|
|
79
102
|
strategy: "fixed",
|
|
80
|
-
placement:
|
|
103
|
+
placement: placement,
|
|
81
104
|
whileElementsMounted: autoUpdate,
|
|
82
105
|
middleware: [shift({
|
|
83
106
|
padding: 8
|
|
@@ -123,18 +146,22 @@ var ConfirmButton = function ConfirmButton(_ref) {
|
|
|
123
146
|
"data-color": color,
|
|
124
147
|
className: classNames("select-none not-italic rounded-capped shadow-lg outline outline-muted bg-base"),
|
|
125
148
|
ref: refs.setFloating,
|
|
126
|
-
style:
|
|
149
|
+
style: _objectSpread({
|
|
150
|
+
zIndex: "var(--z-popover)"
|
|
151
|
+
}, floatingStyles)
|
|
127
152
|
}, getFloatingProps()), {}, {
|
|
128
153
|
children: [/*#__PURE__*/jsxs("div", {
|
|
129
154
|
className: "font-medium ",
|
|
130
155
|
children: [/*#__PURE__*/jsx("p", {
|
|
131
156
|
className: "py-2 px-4",
|
|
157
|
+
"data-ref": "confirmMessage",
|
|
132
158
|
children: message
|
|
133
159
|
}), /*#__PURE__*/jsxs("div", {
|
|
134
160
|
className: "flex justify-end py-2 px-4 gap-2",
|
|
135
161
|
children: [/*#__PURE__*/jsx(Button, {
|
|
136
162
|
size: "sm",
|
|
137
163
|
variant: "link",
|
|
164
|
+
"data-ref": "confirmCancel",
|
|
138
165
|
color: color,
|
|
139
166
|
onClick: function onClick() {
|
|
140
167
|
return [clickHandler(false), setIsOpen(false)];
|
|
@@ -145,6 +172,7 @@ var ConfirmButton = function ConfirmButton(_ref) {
|
|
|
145
172
|
variant: "solid",
|
|
146
173
|
color: color,
|
|
147
174
|
autoFocus: true,
|
|
175
|
+
"data-ref": "confirmOk",
|
|
148
176
|
onClick: function onClick() {
|
|
149
177
|
return [clickHandler(true), setIsOpen(false)];
|
|
150
178
|
},
|
|
@@ -5,14 +5,42 @@ import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
|
5
5
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
6
6
|
import { isArray, EMPTY_ARRAY } from '@react-fabric/utilities';
|
|
7
7
|
import classNames from 'classnames';
|
|
8
|
-
import {
|
|
8
|
+
import { useCallback, cloneElement } from 'react';
|
|
9
9
|
import { useControlledValue } from '../../hooks/useControlledValue.js';
|
|
10
|
-
import
|
|
10
|
+
import { cloneChildren } from '../../utils/cloneElement.js';
|
|
11
11
|
import { jsx } from 'react/jsx-runtime';
|
|
12
12
|
|
|
13
13
|
var _excluded = ["vertical", "className", "children", "variant", "rounded", "disabled", "fullWidth", "color", "size", "value", "onChange"];
|
|
14
14
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
15
15
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
16
|
+
/**
|
|
17
|
+
* A component that groups toggle buttons together, allowing for consistent styling and behavior across multiple toggle buttons.
|
|
18
|
+
* It supports vertical orientation, various button styles, and can handle properties like size, color, and disabled state.
|
|
19
|
+
* This component is useful for creating toggle button groups that maintain a uniform appearance and functionality,
|
|
20
|
+
* such as toggle switches, selection groups, or multi-select options.
|
|
21
|
+
*
|
|
22
|
+
* @param {ToggleButtonGroupProps} props - The properties for the ToggleButtonGroup component.
|
|
23
|
+
* @returns {JSX.Element} The rendered ToggleButtonGroup component.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```jsx
|
|
27
|
+
* <ToggleButtonGroup
|
|
28
|
+
* value={selectedValues}
|
|
29
|
+
* onChange={(newValues) => setSelectedValues(newValues)}
|
|
30
|
+
* variant="outline"
|
|
31
|
+
* color="primary"
|
|
32
|
+
* size="md"
|
|
33
|
+
* rounded
|
|
34
|
+
* fullWidth
|
|
35
|
+
* >
|
|
36
|
+
* <Button value="option1">Option 1</Button>
|
|
37
|
+
* <Button value="option2">Option 2</Button>
|
|
38
|
+
* <Button value="option3">Option 3</Button>
|
|
39
|
+
* </ToggleButtonGroup>
|
|
40
|
+
* ```
|
|
41
|
+
*
|
|
42
|
+
* @see {@link https://adarshpastakia.github.io/react-fabric/?path=/docs/core-components-togglebuttongroup--docs} for more details.
|
|
43
|
+
*/
|
|
16
44
|
var ToggleButtonGroup = function ToggleButtonGroup(_ref) {
|
|
17
45
|
var vertical = _ref.vertical,
|
|
18
46
|
className = _ref.className,
|
|
@@ -26,19 +54,18 @@ var ToggleButtonGroup = function ToggleButtonGroup(_ref) {
|
|
|
26
54
|
value = _ref.value,
|
|
27
55
|
onChange = _ref.onChange,
|
|
28
56
|
aria = _objectWithoutProperties(_ref, _excluded);
|
|
29
|
-
var
|
|
30
|
-
return isArray(value);
|
|
31
|
-
}, [value]);
|
|
32
|
-
var _useControlledValue = useControlledValue(value, isArray(value) ? EMPTY_ARRAY : ""),
|
|
57
|
+
var _useControlledValue = useControlledValue(value, isArray(value) ? EMPTY_ARRAY : null),
|
|
33
58
|
currentValue = _useControlledValue.currentValue,
|
|
34
59
|
updateValue = _useControlledValue.updateValue;
|
|
35
|
-
var clickHandler = useCallback(function (cb) {
|
|
60
|
+
var clickHandler = useCallback(function (cb, childValue) {
|
|
36
61
|
return function (e) {
|
|
37
|
-
var newValue
|
|
62
|
+
var newValue;
|
|
38
63
|
if (isArray(currentValue)) {
|
|
39
|
-
if (currentValue.includes(
|
|
40
|
-
return v !==
|
|
41
|
-
});else newValue = [].concat(_toConsumableArray(currentValue), [
|
|
64
|
+
if (currentValue.includes(childValue)) newValue = currentValue.filter(function (v) {
|
|
65
|
+
return v !== childValue;
|
|
66
|
+
});else newValue = [].concat(_toConsumableArray(currentValue), [childValue]);
|
|
67
|
+
} else {
|
|
68
|
+
newValue = childValue;
|
|
42
69
|
}
|
|
43
70
|
updateValue(newValue);
|
|
44
71
|
onChange === null || onChange === void 0 || onChange(newValue);
|
|
@@ -46,9 +73,9 @@ var ToggleButtonGroup = function ToggleButtonGroup(_ref) {
|
|
|
46
73
|
};
|
|
47
74
|
}, [currentValue, onChange]);
|
|
48
75
|
return /*#__PURE__*/jsx("div", _objectSpread(_objectSpread({
|
|
49
|
-
className: classNames(
|
|
76
|
+
className: classNames("fabric-buttonGroup", className, fullWidth ? "flex" : "inline-flex", "flex-nowrap align-middle", vertical && "vertical", vertical && "flex-col")
|
|
50
77
|
}, aria), {}, {
|
|
51
|
-
children:
|
|
78
|
+
children: cloneChildren(children, function (child) {
|
|
52
79
|
return /*#__PURE__*/cloneElement(child, _objectSpread(_objectSpread({
|
|
53
80
|
color: color,
|
|
54
81
|
size: size,
|
|
@@ -57,9 +84,8 @@ var ToggleButtonGroup = function ToggleButtonGroup(_ref) {
|
|
|
57
84
|
rounded: rounded,
|
|
58
85
|
fullWidth: fullWidth
|
|
59
86
|
}, child.props), {}, {
|
|
60
|
-
onClick: clickHandler(child.props.onClick),
|
|
61
|
-
"data-
|
|
62
|
-
"data-checked": isMultiple ? currentValue.includes(child.props.value) : currentValue === child.props.value
|
|
87
|
+
onClick: clickHandler(child.props.onClick, child.props.value),
|
|
88
|
+
"data-checked": isArray(currentValue) ? currentValue === null || currentValue === void 0 ? void 0 : currentValue.includes(child.props.value) : currentValue === child.props.value
|
|
63
89
|
}));
|
|
64
90
|
})
|
|
65
91
|
}));
|
|
@@ -4,14 +4,50 @@ import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
|
4
4
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
5
5
|
import classNames from 'classnames';
|
|
6
6
|
import { CoreIcons } from '../../types/icons.js';
|
|
7
|
-
import { getBgClass, getColorClass, getBorderClass } from '../../utils/getColor.js';
|
|
8
|
-
import '@react-fabric/utilities';
|
|
9
7
|
import { Icon } from '../icon/Icon.js';
|
|
10
8
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
11
9
|
|
|
12
10
|
var _excluded = ["children", "color", "legend", "title", "icon", "border", "onClose", "className"];
|
|
13
11
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
14
12
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
13
|
+
// colors for different callout types
|
|
14
|
+
var colors = {
|
|
15
|
+
none: "bg-base text-tint-900 border-tint-100",
|
|
16
|
+
tint: "bg-tint-50/50 text-tint-800 border-tint-300",
|
|
17
|
+
primary: "bg-primary-50/50 text-primary-800 border-primary-300",
|
|
18
|
+
accent: "bg-accent-50/50 text-accent-800 border-accent-300",
|
|
19
|
+
info: "bg-info-50/50 text-info-800 border-info-300",
|
|
20
|
+
danger: "bg-danger-50/50 text-danger-800 border-danger-300",
|
|
21
|
+
success: "bg-success-50/50 text-success-800 border-success-300",
|
|
22
|
+
warning: "bg-warning-50/50 text-warning-800 border-warning-300"
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* A component that displays a callout box with an optional title, icon, and legend.
|
|
27
|
+
* It can be used to highlight important information, warnings, or notices.
|
|
28
|
+
* The callout can be styled with different colors and border styles, and it supports a close action.
|
|
29
|
+
* This component is useful for drawing attention to specific content within a page or application,
|
|
30
|
+
* such as alerts, notifications, or important messages.
|
|
31
|
+
*
|
|
32
|
+
* @param {CalloutProps} props - The properties for the Callout component.
|
|
33
|
+
* @returns {JSX.Element} The rendered Callout component.
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```jsx
|
|
37
|
+
* <Callout
|
|
38
|
+
* color="primary"
|
|
39
|
+
* legend="Important Notice"
|
|
40
|
+
* title="Attention Required"
|
|
41
|
+
* icon="info"
|
|
42
|
+
* onClose={() => console.log("Callout closed")}
|
|
43
|
+
* >
|
|
44
|
+
* This is an important message that requires your attention.
|
|
45
|
+
* </Callout>
|
|
46
|
+
* // Renders a callout box with a primary color, an icon, a title, and a close button.
|
|
47
|
+
* ```
|
|
48
|
+
*
|
|
49
|
+
* @see {@link https://adarshpastakia.github.io/react-fabric/?path=/story/core-components-callout--docs} for more details.
|
|
50
|
+
*/
|
|
15
51
|
var Callout = function Callout(_ref) {
|
|
16
52
|
var children = _ref.children,
|
|
17
53
|
_ref$color = _ref.color,
|
|
@@ -24,19 +60,22 @@ var Callout = function Callout(_ref) {
|
|
|
24
60
|
className = _ref.className,
|
|
25
61
|
aria = _objectWithoutProperties(_ref, _excluded);
|
|
26
62
|
return /*#__PURE__*/jsxs("fieldset", _objectSpread(_objectSpread({
|
|
27
|
-
className: classNames(
|
|
63
|
+
className: classNames("block rounded-capped border max-w-full relative overflow-hidden mb-4", colors[color], className, border === "dashed" && "border-dashed", border === "dotted" && "border-dotted")
|
|
28
64
|
}, aria), {}, {
|
|
29
65
|
children: [legend && /*#__PURE__*/jsx("legend", {
|
|
30
66
|
className: "px-2 mx-4 font-medium",
|
|
67
|
+
"data-ref": "calloutLegend",
|
|
31
68
|
children: legend
|
|
32
69
|
}), /*#__PURE__*/jsxs("div", {
|
|
33
70
|
className: classNames("break-words whitespace-break-spaces p-2"),
|
|
34
71
|
children: [/*#__PURE__*/jsxs("div", {
|
|
35
72
|
className: "flex flex-nowrap items-center text-xl pe-4 gap-2 mb-4 empty:mb-0",
|
|
36
73
|
children: [icon && /*#__PURE__*/jsx(Icon, {
|
|
37
|
-
icon: icon
|
|
74
|
+
icon: icon,
|
|
75
|
+
"data-ref": "calloutIcon"
|
|
38
76
|
}), title && /*#__PURE__*/jsx("p", {
|
|
39
77
|
className: "flex-1",
|
|
78
|
+
"data-ref": "calloutTitle",
|
|
40
79
|
children: title
|
|
41
80
|
})]
|
|
42
81
|
}), /*#__PURE__*/jsx("div", {
|
|
@@ -45,6 +84,7 @@ var Callout = function Callout(_ref) {
|
|
|
45
84
|
})]
|
|
46
85
|
}), onClose && /*#__PURE__*/jsx(Icon, {
|
|
47
86
|
size: "md",
|
|
87
|
+
"data-ref": "calloutClose",
|
|
48
88
|
className: classNames("absolute end-2", legend ? "top-0" : "top-2"),
|
|
49
89
|
icon: CoreIcons.close,
|
|
50
90
|
onClick: onClose
|
|
@@ -4,17 +4,50 @@ import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
|
4
4
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
5
5
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
6
6
|
import classNames from 'classnames';
|
|
7
|
-
import { useMemo, Children } from 'react';
|
|
7
|
+
import { useMemo, Children, useCallback } from 'react';
|
|
8
8
|
import { ErrorBoundary } from '../../core/boundary/ErrorBoundary.js';
|
|
9
9
|
import { Header, Footer } from '../../core/headfoot/HeadFoot.js';
|
|
10
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
10
11
|
import '@react-fabric/utilities';
|
|
11
12
|
import { nodeCheck } from '../../utils/nodeCheck.js';
|
|
12
|
-
import classes from './Card.module.css';
|
|
13
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
14
13
|
|
|
15
|
-
var _excluded = ["children", "className", "bodyClassName", "selected", "selectedRibbon", "onClick", "flex", "draggable", "dragKey", "dragData"];
|
|
14
|
+
var _excluded = ["children", "className", "bodyClassName", "selected", "selectedRibbon", "onClick", "onDragStart", "flex", "draggable", "dragKey", "dragData", "ref"];
|
|
16
15
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
17
16
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
17
|
+
/**
|
|
18
|
+
* A component that displays a card with a header, body, and footer. It can be used to display content in a structured format.
|
|
19
|
+
* It supports various features such as click handling, drag-and-drop functionality, and customizable styles.
|
|
20
|
+
* The Card component is designed to be flexible and can be used in various contexts, such as displaying user profiles, product information, or any other content that benefits from a card layout.
|
|
21
|
+
* The component accepts children that can include a Header, body content, and a Footer.
|
|
22
|
+
* It also supports additional properties for styling, accessibility, and interaction.
|
|
23
|
+
* It can be styled with custom CSS classes and supports features like selection indication and drag-and-drop functionality.
|
|
24
|
+
*
|
|
25
|
+
* @param {CardProps} props - The properties for the Card component.
|
|
26
|
+
* @returns {JSX.Element} The rendered Card component.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```jsx
|
|
30
|
+
* <Card
|
|
31
|
+
* className="my-custom-class"
|
|
32
|
+
* bodyClassName="my-body-class"
|
|
33
|
+
* selected={true}
|
|
34
|
+
* selectedRibbon={true}
|
|
35
|
+
* onClick={() => console.log("Card clicked")}
|
|
36
|
+
* onDragStart={(event, key, data) => console.log("Drag started", key, data)}
|
|
37
|
+
* flex={true}
|
|
38
|
+
* draggable={true}
|
|
39
|
+
* dragKey="my-drag-key"
|
|
40
|
+
* dragData={{ id: 1, name: "Card Data" }}
|
|
41
|
+
* aria-label="My Card"
|
|
42
|
+
* >
|
|
43
|
+
* <Header>Card Header</Header>
|
|
44
|
+
* <div>Card Body Content</div>
|
|
45
|
+
* <Footer>Card Footer</Footer>
|
|
46
|
+
* </Card>
|
|
47
|
+
* ```
|
|
48
|
+
*
|
|
49
|
+
* @see {@link https://adarshpastakia.github.io/react-fabric/?path=/docs/core-components-card--docs} for more details.
|
|
50
|
+
*/
|
|
18
51
|
var Card = function Card(_ref) {
|
|
19
52
|
var children = _ref.children,
|
|
20
53
|
className = _ref.className,
|
|
@@ -22,10 +55,12 @@ var Card = function Card(_ref) {
|
|
|
22
55
|
selected = _ref.selected,
|
|
23
56
|
selectedRibbon = _ref.selectedRibbon,
|
|
24
57
|
onClick = _ref.onClick,
|
|
58
|
+
onDragStart = _ref.onDragStart,
|
|
25
59
|
flex = _ref.flex,
|
|
26
60
|
draggable = _ref.draggable,
|
|
27
61
|
dragKey = _ref.dragKey,
|
|
28
62
|
dragData = _ref.dragData,
|
|
63
|
+
ref = _ref.ref,
|
|
29
64
|
aria = _objectWithoutProperties(_ref, _excluded);
|
|
30
65
|
var _useMemo = useMemo(function () {
|
|
31
66
|
return Children.toArray(children).reduce(function (ret, node) {
|
|
@@ -37,20 +72,23 @@ var Card = function Card(_ref) {
|
|
|
37
72
|
header = _useMemo2[0],
|
|
38
73
|
body = _useMemo2[1],
|
|
39
74
|
footer = _useMemo2[2];
|
|
75
|
+
var handleDragStart = useCallback(function (event) {
|
|
76
|
+
var _event$dataTransfer;
|
|
77
|
+
dragKey && ((_event$dataTransfer = event.dataTransfer) === null || _event$dataTransfer === void 0 ? void 0 : _event$dataTransfer.setData(dragKey, JSON.stringify(dragData)));
|
|
78
|
+
dragKey && (onDragStart === null || onDragStart === void 0 ? void 0 : onDragStart(event, dragKey, dragData));
|
|
79
|
+
}, [onDragStart, dragKey, dragData]);
|
|
40
80
|
return /*#__PURE__*/jsx("div", {
|
|
41
|
-
className: classNames(
|
|
81
|
+
className: classNames("fabric-cardWrapper", "rounded-capped relative grid", flex && "flex-1", selected && selectedRibbon && "selected", selected && "outline-2 outline-accent-500 outline-offset-2"),
|
|
42
82
|
children: /*#__PURE__*/jsx(ErrorBoundary, {
|
|
43
83
|
children: /*#__PURE__*/jsxs("div", _objectSpread(_objectSpread({
|
|
44
|
-
className: classNames(
|
|
84
|
+
className: classNames("fabric-card", className, "rounded-capped flex flex-col flex-nowrap overflow-hidden", onClick && "clickable"),
|
|
45
85
|
draggable: draggable,
|
|
46
|
-
onDragStart: !draggable ? undefined :
|
|
47
|
-
|
|
48
|
-
return dragKey && ((_e$dataTransfer = e.dataTransfer) === null || _e$dataTransfer === void 0 ? void 0 : _e$dataTransfer.setData(dragKey, JSON.stringify(dragData)));
|
|
49
|
-
}
|
|
86
|
+
onDragStart: !draggable ? undefined : handleDragStart,
|
|
87
|
+
ref: ref
|
|
50
88
|
}, aria), {}, {
|
|
51
89
|
children: [header, /*#__PURE__*/jsx("div", {
|
|
52
90
|
role: "none",
|
|
53
|
-
className: classNames(
|
|
91
|
+
className: classNames("fabric-cardBody", bodyClassName, "flex-1"),
|
|
54
92
|
onClick: onClick,
|
|
55
93
|
children: body
|
|
56
94
|
}), footer]
|
|
@@ -5,15 +5,45 @@ import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
|
5
5
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
6
6
|
import classNames from 'classnames';
|
|
7
7
|
import { useMemo, Children } from 'react';
|
|
8
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
8
9
|
import '@react-fabric/utilities';
|
|
9
10
|
import { nodeCheck } from '../../utils/nodeCheck.js';
|
|
10
11
|
import { Image, Video } from '../media/Media.js';
|
|
11
|
-
import classes from './Card.module.css';
|
|
12
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
13
12
|
|
|
14
13
|
var _excluded = ["className", "children", "height", "justify", "colorScheme"];
|
|
15
14
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
16
15
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
16
|
+
var scheme = {
|
|
17
|
+
inheritScheme: "inheritScheme",
|
|
18
|
+
light: "light",
|
|
19
|
+
dark: "dark"
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* A cover component for cards that can contain media and content.
|
|
24
|
+
* It allows for flexible layout options and supports different color schemes.
|
|
25
|
+
* It can be used to create visually appealing card layouts with media content.
|
|
26
|
+
*
|
|
27
|
+
* @param {CardCoverProps} props - The properties for the CardCover component.
|
|
28
|
+
* @returns {JSX.Element} The rendered CardCover component.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```jsx
|
|
32
|
+
* <CardCover
|
|
33
|
+
* height={200}
|
|
34
|
+
* colorScheme="light"
|
|
35
|
+
* justify="center"
|
|
36
|
+
* className="my-custom-class"
|
|
37
|
+
* aria-label="Card Cover"
|
|
38
|
+
* >
|
|
39
|
+
* <Image src="image.jpg" alt="Card Image" />
|
|
40
|
+
* <div>Card Content</div>
|
|
41
|
+
* </CardCover>
|
|
42
|
+
* // Renders a card cover with a height of 200px, light color scheme, centered content, and a custom class name.
|
|
43
|
+
* ```
|
|
44
|
+
*
|
|
45
|
+
* @see {@link https://adarshpastakia.github.io/react-fabric/?path=/story/core-components-card--docs} for more details.
|
|
46
|
+
*/
|
|
17
47
|
var CardCover = function CardCover(_ref) {
|
|
18
48
|
var className = _ref.className,
|
|
19
49
|
children = _ref.children,
|
|
@@ -21,7 +51,8 @@ var CardCover = function CardCover(_ref) {
|
|
|
21
51
|
height = _ref$height === void 0 ? 120 : _ref$height,
|
|
22
52
|
_ref$justify = _ref.justify,
|
|
23
53
|
justify = _ref$justify === void 0 ? "end" : _ref$justify,
|
|
24
|
-
colorScheme = _ref.colorScheme,
|
|
54
|
+
_ref$colorScheme = _ref.colorScheme,
|
|
55
|
+
colorScheme = _ref$colorScheme === void 0 ? "inheritScheme" : _ref$colorScheme,
|
|
25
56
|
aria = _objectWithoutProperties(_ref, _excluded);
|
|
26
57
|
var _useMemo = useMemo(function () {
|
|
27
58
|
return Children.toArray(children).reduce(function (ret, node) {
|
|
@@ -36,10 +67,10 @@ var CardCover = function CardCover(_ref) {
|
|
|
36
67
|
style: {
|
|
37
68
|
height: height
|
|
38
69
|
},
|
|
39
|
-
className: classNames(
|
|
70
|
+
className: classNames("fabric-cardCover", scheme[colorScheme], "relative z-0")
|
|
40
71
|
}, aria), {}, {
|
|
41
72
|
children: [media, /*#__PURE__*/jsx("div", {
|
|
42
|
-
className: classNames(
|
|
73
|
+
className: classNames("fabric-cardCoverContent", "relative pointer-events-none z-1 flex flex-col flex-nowrap p-4 h-full", "justify-".concat(justify), className),
|
|
43
74
|
children: body
|
|
44
75
|
})]
|
|
45
76
|
}));
|