@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
|
@@ -2,15 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
4
4
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
5
|
+
import { isString } from '@react-fabric/utilities';
|
|
5
6
|
import classNames from 'classnames';
|
|
6
|
-
import { useMemo } from 'react';
|
|
7
|
+
import { useMemo, Fragment } from 'react';
|
|
8
|
+
import '@babel/runtime/helpers/slicedToArray';
|
|
9
|
+
import '@floating-ui/react';
|
|
10
|
+
import 'react-i18next';
|
|
11
|
+
import '../../hooks/useEffectDebugger.js';
|
|
12
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
13
|
+
import '../../hotkeys/HotKeyWrapper.js';
|
|
14
|
+
import { Tooltip } from '../../overlays/tooltip/Tooltip.js';
|
|
7
15
|
import { getBadgeProps, Badge } from '../badge/Badge.js';
|
|
8
|
-
import { DropdownTool } from '../dropdown/DropdownTool.js';
|
|
9
16
|
import { Icon } from '../icon/Icon.js';
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
17
|
+
import '../../types/icons.js';
|
|
18
|
+
import { DropdownTool } from '../dropdown/DropdownTool.js';
|
|
12
19
|
|
|
13
|
-
var _excluded = ["ref", "as", "id", "className", "label", "icon", "iconBg", "iconColor", "rtlFlip", "badge", "disabled", "onClose", "active", "
|
|
20
|
+
var _excluded = ["ref", "as", "id", "className", "label", "icon", "iconBg", "iconColor", "rtlFlip", "badge", "disabled", "onClose", "active", "onClick", "tabFlex", "color", "actions", "tooltip", "activeClassName"];
|
|
14
21
|
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
22
|
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
23
|
var Tab = function Tab(_ref) {
|
|
@@ -27,51 +34,64 @@ var Tab = function Tab(_ref) {
|
|
|
27
34
|
disabled = _ref.disabled,
|
|
28
35
|
onClose = _ref.onClose,
|
|
29
36
|
active = _ref.active,
|
|
30
|
-
minimal = _ref.minimal,
|
|
31
37
|
_onClick = _ref.onClick,
|
|
32
38
|
tabFlex = _ref.tabFlex,
|
|
33
39
|
color = _ref.color,
|
|
34
40
|
actions = _ref.actions,
|
|
41
|
+
tooltip = _ref.tooltip,
|
|
35
42
|
activeClassName = _ref.activeClassName,
|
|
36
43
|
aria = _objectWithoutProperties(_ref, _excluded);
|
|
37
44
|
var badgeProps = useMemo(function () {
|
|
38
45
|
return getBadgeProps(badge);
|
|
39
46
|
}, [badge]);
|
|
47
|
+
var minimal = useMemo(function () {
|
|
48
|
+
return !label;
|
|
49
|
+
}, [label]);
|
|
50
|
+
var tooltipProps = useMemo(function () {
|
|
51
|
+
if (isString(tooltip)) return {
|
|
52
|
+
content: tooltip
|
|
53
|
+
};
|
|
54
|
+
return tooltip !== null && tooltip !== void 0 ? tooltip : {};
|
|
55
|
+
}, [tooltip]);
|
|
40
56
|
var E = as !== null && as !== void 0 ? as : "button";
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
children: [icon && /*#__PURE__*/jsx(Icon, {
|
|
52
|
-
icon: icon,
|
|
53
|
-
bg: iconBg,
|
|
54
|
-
color: iconColor,
|
|
55
|
-
rtlFlip: rtlFlip,
|
|
56
|
-
className: "flex-content"
|
|
57
|
-
}), !minimal && /*#__PURE__*/jsx("label", {
|
|
58
|
-
className: "flex-initial truncate text-center px-1 py-1",
|
|
59
|
-
children: label
|
|
60
|
-
}), badge && /*#__PURE__*/jsx(Badge, _objectSpread(_objectSpread({}, badgeProps), {}, {
|
|
61
|
-
placement: minimal ? "end" : "",
|
|
62
|
-
className: classNames("me-1", badgeProps.className)
|
|
63
|
-
})), actions && active && /*#__PURE__*/jsx(DropdownTool, {
|
|
64
|
-
className: "bg-base/20 me-1 z-5",
|
|
65
|
-
children: actions
|
|
66
|
-
}), onClose && /*#__PURE__*/jsx("span", {
|
|
67
|
-
role: "none",
|
|
68
|
-
className: classNames("cursor-pointer me-1 opacity-65 hover:opacity-90 pointer-events-auto"),
|
|
69
|
-
onClick: function onClick(e) {
|
|
70
|
-
onClose === null || onClose === void 0 || onClose();
|
|
71
|
-
e.stopPropagation();
|
|
57
|
+
var W = tooltip ? Tooltip : Fragment;
|
|
58
|
+
return /*#__PURE__*/jsx(W, _objectSpread(_objectSpread({}, tooltipProps), {}, {
|
|
59
|
+
children: /*#__PURE__*/jsxs(E, _objectSpread(_objectSpread({
|
|
60
|
+
"data-id": id,
|
|
61
|
+
disabled: disabled,
|
|
62
|
+
"data-color": color,
|
|
63
|
+
"data-inner-clickable": true,
|
|
64
|
+
className: classNames("fabric-tabButton", className, active && "active pointer-events-none", active && activeClassName, disabled && "text-tint-500 pointer-events-none", tabFlex ? "flex-1" : "flex-initial max-w-36", minimal ? "min-w-6" : "min-w-18", "flex items-center justify-center px-1 rounded overflow-hidden cursor-pointer"),
|
|
65
|
+
onClick: function onClick() {
|
|
66
|
+
return !active && (_onClick === null || _onClick === void 0 ? void 0 : _onClick(id));
|
|
72
67
|
},
|
|
73
|
-
|
|
74
|
-
})
|
|
68
|
+
ref: ref
|
|
69
|
+
}, aria), {}, {
|
|
70
|
+
children: [icon && /*#__PURE__*/jsx(Icon, {
|
|
71
|
+
icon: icon,
|
|
72
|
+
bg: iconBg,
|
|
73
|
+
color: iconColor,
|
|
74
|
+
rtlFlip: rtlFlip,
|
|
75
|
+
className: "flex-content p-2"
|
|
76
|
+
}), !minimal && /*#__PURE__*/jsx("label", {
|
|
77
|
+
className: "flex-initial truncate text-center px-1 py-1",
|
|
78
|
+
children: label
|
|
79
|
+
}), badge && /*#__PURE__*/jsx(Badge, _objectSpread(_objectSpread({}, badgeProps), {}, {
|
|
80
|
+
placement: minimal ? "end" : "",
|
|
81
|
+
className: classNames("me-1", badgeProps.className)
|
|
82
|
+
})), actions && active && /*#__PURE__*/jsx(DropdownTool, {
|
|
83
|
+
className: "bg-tint-50/20 me-1 z-5",
|
|
84
|
+
children: actions
|
|
85
|
+
}), onClose && /*#__PURE__*/jsx("span", {
|
|
86
|
+
role: "none",
|
|
87
|
+
className: classNames("cursor-pointer me-1 opacity-65 hover:opacity-90 pointer-events-auto"),
|
|
88
|
+
onClick: function onClick(e) {
|
|
89
|
+
onClose === null || onClose === void 0 || onClose();
|
|
90
|
+
e.stopPropagation();
|
|
91
|
+
},
|
|
92
|
+
children: "\xD7"
|
|
93
|
+
})]
|
|
94
|
+
}))
|
|
75
95
|
}));
|
|
76
96
|
};
|
|
77
97
|
|
|
@@ -3,11 +3,10 @@
|
|
|
3
3
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
4
4
|
import classNames from 'classnames';
|
|
5
5
|
import { useState, useMemo, Children, useEffect, useCallback, cloneElement } from 'react';
|
|
6
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
6
7
|
import '@react-fabric/utilities';
|
|
7
8
|
import { nodeCheck } from '../../utils/nodeCheck.js';
|
|
8
9
|
import { Tab } from './Tab.js';
|
|
9
|
-
import classes from './TabPanel.module.css';
|
|
10
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
11
10
|
|
|
12
11
|
// TODO: implement append/prepend tab-bar items
|
|
13
12
|
|
|
@@ -20,6 +19,8 @@ var TabPanel = function TabPanel(_ref) {
|
|
|
20
19
|
justify = _ref.justify,
|
|
21
20
|
variant = _ref.variant,
|
|
22
21
|
tabFlex = _ref.tabFlex,
|
|
22
|
+
append = _ref.append,
|
|
23
|
+
prepend = _ref.prepend,
|
|
23
24
|
gap = _ref.gap,
|
|
24
25
|
onBeforeChange = _ref.onBeforeChange,
|
|
25
26
|
onChange = _ref.onChange;
|
|
@@ -54,22 +55,25 @@ var TabPanel = function TabPanel(_ref) {
|
|
|
54
55
|
});
|
|
55
56
|
}, [onBeforeChange, onChange, active]);
|
|
56
57
|
return /*#__PURE__*/jsxs("div", {
|
|
57
|
-
className: classNames(
|
|
58
|
+
className: classNames("fabric-tabPanel", "area-content grid bg-base overflow-hidden"),
|
|
58
59
|
"data-orientation": orientation,
|
|
59
60
|
"data-variant": variant !== null && variant !== void 0 ? variant : "default",
|
|
60
|
-
children: [/*#__PURE__*/
|
|
61
|
-
className: classNames(
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
61
|
+
children: [/*#__PURE__*/jsxs("div", {
|
|
62
|
+
className: classNames("fabric-tabHeader", headerClassName, justify && "justify-".concat(justify), ["start", "end"].includes(orientation) && "flex-col", "flex flex-nowrap overflow-hidden items-center"),
|
|
63
|
+
children: [prepend, /*#__PURE__*/jsx("div", {
|
|
64
|
+
className: classNames("fabric-tabList", justify && "justify-".concat(justify), ["start", "end"].includes(orientation) && "flex-col", ["bottom", "end"].includes(orientation) ? "self-start" : "self-end", "flex flex-1 flex-nowrap overflow-auto scroll-thin"),
|
|
65
|
+
style: {
|
|
66
|
+
gap: gap
|
|
67
|
+
},
|
|
68
|
+
children: tabs.map(function (node) {
|
|
69
|
+
var _node$props$tabFlex;
|
|
70
|
+
return /*#__PURE__*/cloneElement(node, {
|
|
71
|
+
tabFlex: (_node$props$tabFlex = node.props.tabFlex) !== null && _node$props$tabFlex !== void 0 ? _node$props$tabFlex : tabFlex,
|
|
72
|
+
onClick: handleClick,
|
|
73
|
+
active: node.props.id === active
|
|
74
|
+
});
|
|
75
|
+
})
|
|
76
|
+
}), append]
|
|
73
77
|
}), rest, activeTabPanel]
|
|
74
78
|
});
|
|
75
79
|
};
|
|
@@ -68,6 +68,9 @@ var ApplicationProvider = function ApplicationProvider(_ref3) {
|
|
|
68
68
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
69
69
|
locale = _useState8[0],
|
|
70
70
|
setLocale = _useState8[1];
|
|
71
|
+
useEffect(function () {
|
|
72
|
+
defaultColorScheme && setColorScheme(defaultColorScheme);
|
|
73
|
+
}, [defaultColorScheme]);
|
|
71
74
|
|
|
72
75
|
/** ***************** set initial theme and locale dir *******************/
|
|
73
76
|
useEffect(function () {
|
|
@@ -221,7 +221,7 @@ var NotificationManager = function NotificationManager(_ref) {
|
|
|
221
221
|
style: {
|
|
222
222
|
zIndex: "var(--z-overlay)"
|
|
223
223
|
},
|
|
224
|
-
className: "
|
|
224
|
+
className: "fabric-container__overlays pointer-events-none fixed inset-0 p-4 bg-transparent",
|
|
225
225
|
children: Object.values(alerts).map(function (_ref7) {
|
|
226
226
|
var _ref8 = _slicedToArray(_ref7, 1),
|
|
227
227
|
el = _ref8[0];
|
|
@@ -231,7 +231,7 @@ var NotificationManager = function NotificationManager(_ref) {
|
|
|
231
231
|
style: {
|
|
232
232
|
zIndex: "var(--z-notifications)"
|
|
233
233
|
},
|
|
234
|
-
className: "
|
|
234
|
+
className: "fabric-container__notifs flex flex-nowrap pointer-events-none fixed inset-0 p-2 bg-transparent flex-col-reverse items-center justify-end",
|
|
235
235
|
children: Object.values(messages).map(function (_ref9) {
|
|
236
236
|
var _ref10 = _slicedToArray(_ref9, 1),
|
|
237
237
|
el = _ref10[0];
|
|
@@ -241,7 +241,7 @@ var NotificationManager = function NotificationManager(_ref) {
|
|
|
241
241
|
style: {
|
|
242
242
|
zIndex: "var(--z-notifications)"
|
|
243
243
|
},
|
|
244
|
-
className: "
|
|
244
|
+
className: "fabric-container__toasts flex flex-nowrap pointer-events-none fixed inset-0 p-4 bg-transparent flex-col items-end justify-end overflow-auto scroll-hide",
|
|
245
245
|
children: Object.values(toasts).map(function (_ref11) {
|
|
246
246
|
var _ref12 = _slicedToArray(_ref11, 1),
|
|
247
247
|
el = _ref12[0];
|
|
@@ -11,7 +11,6 @@ import { usePropToggle } from '../../hooks/usePropToggle.js';
|
|
|
11
11
|
import { useResize } from '../../hooks/useResize.js';
|
|
12
12
|
import { CoreIcons } from '../../types/icons.js';
|
|
13
13
|
import { ErrorBoundary } from '../boundary/ErrorBoundary.js';
|
|
14
|
-
import classes from './Aside.module.css';
|
|
15
14
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
16
15
|
|
|
17
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; }
|
|
@@ -103,21 +102,23 @@ var Aside = function Aside(_ref) {
|
|
|
103
102
|
};
|
|
104
103
|
}, [width, minWidth, maxWidth]);
|
|
105
104
|
return /*#__PURE__*/jsxs("aside", {
|
|
106
|
-
className: classNames(
|
|
105
|
+
className: classNames("fabric-aside", className, "overflow-hidden grid"),
|
|
107
106
|
"data-align": align,
|
|
108
107
|
"data-flyout": peek,
|
|
108
|
+
"data-loading": loading,
|
|
109
109
|
"data-collapsed": isCollapsed,
|
|
110
110
|
style: isCollapsed ? undefined : widthStyles,
|
|
111
111
|
"data-testid": testId,
|
|
112
112
|
"data-test-value": testValue,
|
|
113
113
|
children: [/*#__PURE__*/jsxs("header", {
|
|
114
|
-
className: classNames(
|
|
114
|
+
className: classNames("fabric-asideHeader", headerClassName, "grid area-head items-center"),
|
|
115
|
+
"data-ref": "asideHeader",
|
|
115
116
|
children: [title && /*#__PURE__*/jsx("div", {
|
|
116
|
-
className: classNames(
|
|
117
|
+
className: classNames("fabric-asideTitle", "truncate py-0.5 px-1 select-none pointer-events-none"),
|
|
117
118
|
children: title
|
|
118
119
|
}), collapsable && /*#__PURE__*/jsx(Icon, {
|
|
119
120
|
"aria-label": isCollapsed ? "expand" : "collapse",
|
|
120
|
-
className: classNames(
|
|
121
|
+
className: classNames("fabric-asideCollapse", "p-2 select-none"),
|
|
121
122
|
icon: CoreIcons.chevronLeft,
|
|
122
123
|
rtlFlip: true,
|
|
123
124
|
onClick: toggleCollapse,
|
|
@@ -127,26 +128,26 @@ var Aside = function Aside(_ref) {
|
|
|
127
128
|
bg: iconBg,
|
|
128
129
|
color: iconColor,
|
|
129
130
|
rtlFlip: rtlFlip,
|
|
130
|
-
className: classNames(
|
|
131
|
+
className: classNames("fabric-asideIcon", "p-1 text-lg select-none pointer-events-none")
|
|
131
132
|
}), actions && /*#__PURE__*/jsx("div", {
|
|
132
|
-
className:
|
|
133
|
+
className: "fabric-asideActions",
|
|
133
134
|
children: actions
|
|
134
135
|
})]
|
|
135
136
|
}), loading && /*#__PURE__*/jsx(Loading, {}), isCollapsed && /*#__PURE__*/jsx("div", {
|
|
136
137
|
role: "none",
|
|
137
138
|
onClick: tryPeek,
|
|
138
139
|
"data-ref": "asidePlaceholder",
|
|
139
|
-
className:
|
|
140
|
+
className: "fabric-asidePlaceholder"
|
|
140
141
|
}), /*#__PURE__*/jsx("section", {
|
|
141
142
|
ref: elementRef,
|
|
142
143
|
"data-ref": "asideBody",
|
|
143
|
-
className: classNames(
|
|
144
|
+
className: classNames("fabric-asideBody", bodyClassName, "overflow-hidden grid"),
|
|
144
145
|
style: isCollapsed ? widthStyles : undefined,
|
|
145
146
|
children: /*#__PURE__*/jsx(ErrorBoundary, {
|
|
146
147
|
children: children
|
|
147
148
|
})
|
|
148
149
|
}), resizeable && /*#__PURE__*/jsx("div", _objectSpread(_objectSpread({}, resizeHandleProps), {}, {
|
|
149
|
-
className: classNames(
|
|
150
|
+
className: classNames("fabric-asideResizer", "before:absolute before:inset-0 before:w-1 before:top-1/2 before:-translate-y-1/2 before:transition-all")
|
|
150
151
|
}))]
|
|
151
152
|
});
|
|
152
153
|
};
|
|
@@ -13,7 +13,6 @@ import { useTranslation } from 'react-i18next';
|
|
|
13
13
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
14
14
|
import { useMemoDebugger } from '../../hooks/useEffectDebugger.js';
|
|
15
15
|
import { usePropToggle } from '../../hooks/usePropToggle.js';
|
|
16
|
-
import classes from './ErrorBoundary.module.css';
|
|
17
16
|
import { ErrorIcon } from './ErrorIcon.js';
|
|
18
17
|
import { useGlobals } from '../../context/Global.js';
|
|
19
18
|
|
|
@@ -43,7 +42,7 @@ var ErrorMessage = function ErrorMessage(_ref2) {
|
|
|
43
42
|
}, [], "ErrorBoundary element");
|
|
44
43
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
45
44
|
children: [/*#__PURE__*/jsx(ErrorIcon, {}), /*#__PURE__*/jsx("div", {
|
|
46
|
-
className: classNames(
|
|
45
|
+
className: classNames("fabric-boundaryMessage", "p-2"),
|
|
47
46
|
children: /*#__PURE__*/jsx(EE, {
|
|
48
47
|
error: error
|
|
49
48
|
})
|
|
@@ -59,9 +58,9 @@ var ErrorStack = function ErrorStack(_ref4) {
|
|
|
59
58
|
toggleShow = _usePropToggle2[1];
|
|
60
59
|
useLogger().error(error, {}, stack);
|
|
61
60
|
return /*#__PURE__*/jsxs("div", {
|
|
62
|
-
className: classNames(
|
|
61
|
+
className: classNames("fabric-boundaryDetail", "overflow-hidden grid"),
|
|
63
62
|
children: [/*#__PURE__*/jsx("div", {
|
|
64
|
-
className: classNames(
|
|
63
|
+
className: classNames("fabric-boundaryLink", "px-2 py-1 text-xs text-end"),
|
|
65
64
|
children: /*#__PURE__*/jsx("span", {
|
|
66
65
|
role: "link",
|
|
67
66
|
tabIndex: 0,
|
|
@@ -70,7 +69,7 @@ var ErrorStack = function ErrorStack(_ref4) {
|
|
|
70
69
|
children: show ? "Hide Detail" : "Show Detail"
|
|
71
70
|
})
|
|
72
71
|
}), show && /*#__PURE__*/jsx("div", {
|
|
73
|
-
className: classNames(
|
|
72
|
+
className: classNames("fabric-boundaryStack", "overflow-auto p-2 text-xs border-t"),
|
|
74
73
|
children: /*#__PURE__*/jsx("pre", {
|
|
75
74
|
className: "whitespace-pre-wrap",
|
|
76
75
|
children: stack
|
|
@@ -110,9 +109,9 @@ var ErrorBoundary = /*#__PURE__*/function (_Component) {
|
|
|
110
109
|
var E = this.props.errorElement;
|
|
111
110
|
// You can render any custom fallback UI
|
|
112
111
|
return /*#__PURE__*/jsx("div", {
|
|
113
|
-
className: classNames(
|
|
112
|
+
className: classNames("fabric-errorBoundary", "grid grid-rows-1 overflow-hidden p-0.5 rounded-capped"),
|
|
114
113
|
children: /*#__PURE__*/jsxs("div", {
|
|
115
|
-
className: classNames(
|
|
114
|
+
className: classNames("fabric-boundaryContent", "overflow-hidden grid rounded-capped"),
|
|
116
115
|
children: [/*#__PURE__*/jsx(ErrorMessage, {
|
|
117
116
|
error: this.state.error,
|
|
118
117
|
errorElement: E
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import classNames from 'classnames';
|
|
4
|
-
import classes from './ErrorBoundary.module.css';
|
|
5
4
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
6
5
|
|
|
7
6
|
/*
|
|
@@ -31,7 +30,7 @@ var ErrorIcon = function ErrorIcon() {
|
|
|
31
30
|
return /*#__PURE__*/jsxs("svg", {
|
|
32
31
|
xmlns: "http://www.w3.org/2000/svg",
|
|
33
32
|
viewBox: "0 0 64 64",
|
|
34
|
-
className: classNames(
|
|
33
|
+
className: classNames("fabric-boundaryIcon", "size-6 m-2"),
|
|
35
34
|
children: [/*#__PURE__*/jsx("path", {
|
|
36
35
|
fill: "#808080",
|
|
37
36
|
d: "M64 32c0 17.673-14.327 32-32 32s-32-14.327-32-32 14.327-32 32-32 32 14.327 32 32z"
|
|
@@ -5,7 +5,6 @@ import { useImperativeHandle } from 'react';
|
|
|
5
5
|
import { useDebounce } from '../../hooks/useDebounce.js';
|
|
6
6
|
import { useResizeObserver } from '../../hooks/useResizeObserver.js';
|
|
7
7
|
import { ErrorBoundary } from '../boundary/ErrorBoundary.js';
|
|
8
|
-
import classes from './Content.module.css';
|
|
9
8
|
import { jsx } from 'react/jsx-runtime';
|
|
10
9
|
|
|
11
10
|
/*
|
|
@@ -44,12 +43,15 @@ var Content = function Content(_ref) {
|
|
|
44
43
|
testValue = _ref["data-test-value"];
|
|
45
44
|
var resizeHandle = useResizeObserver(onResize);
|
|
46
45
|
var scrollHandler = useDebounce(function (e) {
|
|
46
|
+
var el = e.target;
|
|
47
47
|
onScroll === null || onScroll === void 0 || onScroll({
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
48
|
+
left: el.scrollLeft,
|
|
49
|
+
top: el.scrollTop,
|
|
50
|
+
scrollHeight: el.scrollHeight,
|
|
51
|
+
scrollWidth: el.scrollWidth,
|
|
52
|
+
width: el.offsetWidth,
|
|
53
|
+
height: el.offsetHeight
|
|
54
|
+
}, e);
|
|
53
55
|
}, [onScroll]);
|
|
54
56
|
useImperativeHandle(ref, function () {
|
|
55
57
|
return resizeHandle.current;
|
|
@@ -60,7 +62,7 @@ var Content = function Content(_ref) {
|
|
|
60
62
|
"data-test-value": testValue,
|
|
61
63
|
ref: resizeHandle,
|
|
62
64
|
onScroll: scrollHandler,
|
|
63
|
-
className: classNames(
|
|
65
|
+
className: classNames("fabric-content", "area-content", className),
|
|
64
66
|
children: /*#__PURE__*/jsx(ErrorBoundary, {
|
|
65
67
|
children: children
|
|
66
68
|
})
|
|
@@ -3,21 +3,15 @@
|
|
|
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 { useMemoDebugger } from '../../hooks/useEffectDebugger.js';
|
|
7
|
-
import { getColor, getBgClass, getColorClass } from '../../utils/getColor.js';
|
|
8
|
-
import '@react-fabric/utilities';
|
|
9
|
-
import classes from './HeadFoot.module.css';
|
|
10
6
|
import { jsx } from 'react/jsx-runtime';
|
|
11
7
|
|
|
12
|
-
var _excluded = ["as", "children", "className", "
|
|
8
|
+
var _excluded = ["as", "children", "className", "flex", "area", "dir", "align", "justify"];
|
|
13
9
|
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
10
|
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; }
|
|
15
11
|
var HeadFoot = function HeadFoot(_ref) {
|
|
16
12
|
var E = _ref.as,
|
|
17
13
|
children = _ref.children,
|
|
18
14
|
className = _ref.className,
|
|
19
|
-
bg = _ref.bg,
|
|
20
|
-
color = _ref.color,
|
|
21
15
|
flex = _ref.flex,
|
|
22
16
|
area = _ref.area,
|
|
23
17
|
dir = _ref.dir,
|
|
@@ -26,21 +20,9 @@ var HeadFoot = function HeadFoot(_ref) {
|
|
|
26
20
|
_ref$justify = _ref.justify,
|
|
27
21
|
justify = _ref$justify === void 0 ? "start" : _ref$justify,
|
|
28
22
|
aria = _objectWithoutProperties(_ref, _excluded);
|
|
29
|
-
/** ***************** style map *******************/
|
|
30
|
-
var styles = useMemoDebugger(function () {
|
|
31
|
-
var s = {};
|
|
32
|
-
if (bg) {
|
|
33
|
-
s.backgroundColor = getColor(bg);
|
|
34
|
-
}
|
|
35
|
-
if (color) {
|
|
36
|
-
s.color = getColor(color);
|
|
37
|
-
}
|
|
38
|
-
return s;
|
|
39
|
-
}, [bg], "HeadFoot styles");
|
|
40
23
|
return /*#__PURE__*/jsx(E, _objectSpread(_objectSpread({
|
|
41
24
|
dir: dir,
|
|
42
|
-
className: classNames(
|
|
43
|
-
style: styles
|
|
25
|
+
className: classNames("fabric-headfoot", className, area === "head" ? "area-head" : "area-foot", "leading-none", flex && "flex flex-nowrap", align && "items-".concat(align), justify && "justify-".concat(justify))
|
|
44
26
|
}, aria), {}, {
|
|
45
27
|
children: children
|
|
46
28
|
}));
|
|
@@ -1,39 +1,21 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
+
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
4
|
+
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
5
|
import classNames from 'classnames';
|
|
4
6
|
import { Loading } from '../../components/animations/Animations.js';
|
|
5
7
|
import { Icon } from '../../components/icon/Icon.js';
|
|
6
|
-
import classes from './Page.module.css';
|
|
7
8
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
8
9
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* The MIT License (MIT)
|
|
15
|
-
* Copyright (c) 2024 Adarsh Pastakia
|
|
16
|
-
*
|
|
17
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software
|
|
18
|
-
* and associated documentation files (the "Software"), to deal in the Software without restriction,
|
|
19
|
-
* including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
20
|
-
* and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
|
|
21
|
-
* subject to the following conditions:
|
|
22
|
-
*
|
|
23
|
-
* The above copyright notice and this permission notice shall be included in all copies or substantial
|
|
24
|
-
* portions of the Software.
|
|
25
|
-
*
|
|
26
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
|
|
27
|
-
* TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
28
|
-
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
29
|
-
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
30
|
-
*/
|
|
31
|
-
|
|
10
|
+
var _excluded = ["ref", "children", "paper", "title", "titleClassName", "icon", "rtlFlip", "iconBg", "iconColor", "loading", "data-testid", "data-test-value"];
|
|
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; }
|
|
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; }
|
|
32
13
|
/**
|
|
33
14
|
* 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.
|
|
34
15
|
*/
|
|
35
16
|
var Page = function Page(_ref) {
|
|
36
|
-
var
|
|
17
|
+
var ref = _ref.ref,
|
|
18
|
+
children = _ref.children,
|
|
37
19
|
paper = _ref.paper,
|
|
38
20
|
title = _ref.title,
|
|
39
21
|
titleClassName = _ref.titleClassName,
|
|
@@ -43,14 +25,18 @@ var Page = function Page(_ref) {
|
|
|
43
25
|
iconColor = _ref.iconColor,
|
|
44
26
|
loading = _ref.loading,
|
|
45
27
|
testId = _ref["data-testid"],
|
|
46
|
-
testValue = _ref["data-test-value"]
|
|
47
|
-
|
|
28
|
+
testValue = _ref["data-test-value"],
|
|
29
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
30
|
+
return /*#__PURE__*/jsxs("div", _objectSpread(_objectSpread({
|
|
48
31
|
"data-testid": testId,
|
|
49
32
|
"data-test-value": testValue,
|
|
50
|
-
|
|
33
|
+
"data-loading": loading,
|
|
34
|
+
className: classNames("fabric-page relative", "overflow-hidden grid area-content", paper && "shadow-paper m-[6px] rounded-capped"),
|
|
35
|
+
ref: ref
|
|
36
|
+
}, rest), {}, {
|
|
51
37
|
children: [title && /*#__PURE__*/jsxs("div", {
|
|
52
38
|
"data-ref": "pageTitle",
|
|
53
|
-
className: classNames(
|
|
39
|
+
className: classNames("fabric-pageTitle", "select-none flex gap-1 items-center justify-center px-1 py-0.5 font-medium text-center", titleClassName),
|
|
54
40
|
children: [icon && /*#__PURE__*/jsx(Icon, {
|
|
55
41
|
icon: icon,
|
|
56
42
|
size: "1.25em",
|
|
@@ -59,7 +45,7 @@ var Page = function Page(_ref) {
|
|
|
59
45
|
color: iconColor
|
|
60
46
|
}), title]
|
|
61
47
|
}), loading && /*#__PURE__*/jsx(Loading, {}), children]
|
|
62
|
-
});
|
|
48
|
+
}));
|
|
63
49
|
};
|
|
64
50
|
|
|
65
51
|
export { Page };
|
|
@@ -3,12 +3,11 @@
|
|
|
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 classes from './Responsive.module.css';
|
|
7
6
|
import { jsx } from 'react/jsx-runtime';
|
|
8
7
|
|
|
9
8
|
var _excluded = ["children", "fullWidth", "className", "gutter"],
|
|
10
9
|
_excluded2 = ["children", "gutter", "noWrap", "orient", "align", "justify", "className"],
|
|
11
|
-
_excluded3 = ["children", "flex", "align", "className", "stretchContent"];
|
|
10
|
+
_excluded3 = ["children", "flex", "align", "truncate", "className", "stretchContent"];
|
|
12
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; }
|
|
13
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; }
|
|
14
13
|
/**
|
|
@@ -21,7 +20,7 @@ var Container = function Container(_ref) {
|
|
|
21
20
|
gutter = _ref.gutter,
|
|
22
21
|
aria = _objectWithoutProperties(_ref, _excluded);
|
|
23
22
|
return /*#__PURE__*/jsx("div", _objectSpread(_objectSpread({
|
|
24
|
-
className: classNames(
|
|
23
|
+
className: classNames("fabric-container", className, !fullWidth && "container mx-auto"),
|
|
25
24
|
"data-gutter": gutter
|
|
26
25
|
}, aria), {}, {
|
|
27
26
|
children: children
|
|
@@ -39,7 +38,7 @@ var Row = function Row(_ref2) {
|
|
|
39
38
|
className = _ref2.className,
|
|
40
39
|
aria = _objectWithoutProperties(_ref2, _excluded2);
|
|
41
40
|
return /*#__PURE__*/jsx("div", _objectSpread(_objectSpread({
|
|
42
|
-
className: classNames(
|
|
41
|
+
className: classNames("fabric-row", className, "flex", orient === "row" && "flex-row", orient === "col" && "flex-col", orient === "row-reverse" && "flex-row-reverse", orient === "col-reverse" && "flex-col-reverse", noWrap ? "flex-nowrap" : "flex-wrap", "justify-".concat(justify), "items-".concat(align)),
|
|
43
42
|
"data-gutter": gutter
|
|
44
43
|
}, aria), {}, {
|
|
45
44
|
children: children
|
|
@@ -49,11 +48,12 @@ var Col = function Col(_ref3) {
|
|
|
49
48
|
var children = _ref3.children,
|
|
50
49
|
flex = _ref3.flex,
|
|
51
50
|
align = _ref3.align,
|
|
51
|
+
truncate = _ref3.truncate,
|
|
52
52
|
className = _ref3.className,
|
|
53
53
|
stretchContent = _ref3.stretchContent,
|
|
54
54
|
aria = _objectWithoutProperties(_ref3, _excluded3);
|
|
55
55
|
return /*#__PURE__*/jsx("div", _objectSpread(_objectSpread({
|
|
56
|
-
className: classNames(
|
|
56
|
+
className: classNames("fabric-col", className, stretchContent && "stretchContent", flex === "fill" && "flex-1", flex === "full" && "flex-full", flex === "auto" && "flex-auto", flex === "initial" && "flex-initial", flex === "content" && "flex-none", align && "self-".concat(align), truncate && "truncate")
|
|
57
57
|
}, aria), {}, {
|
|
58
58
|
children: children
|
|
59
59
|
}));
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import { ErrorBoundary } from '../boundary/ErrorBoundary.js';
|
|
5
|
-
import classes from './Section.module.css';
|
|
6
5
|
import { jsx } from 'react/jsx-runtime';
|
|
7
6
|
|
|
8
7
|
/*
|
|
@@ -37,7 +36,7 @@ var Section = function Section(_ref) {
|
|
|
37
36
|
"data-ref": "section",
|
|
38
37
|
dir: dir,
|
|
39
38
|
ref: ref,
|
|
40
|
-
className: classNames(
|
|
39
|
+
className: classNames("fabric-section", className, "grid area-content overflow-hidden"),
|
|
41
40
|
children: /*#__PURE__*/jsx(ErrorBoundary, {
|
|
42
41
|
children: children
|
|
43
42
|
})
|