@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
|
@@ -7,10 +7,9 @@ var Animations = require('../../components/animations/Animations.js');
|
|
|
7
7
|
var Button = require('../../components/button/Button.js');
|
|
8
8
|
var Icon = require('../../components/icon/Icon.js');
|
|
9
9
|
var icons = require('../../types/icons.js');
|
|
10
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
10
11
|
var getColor = require('../../utils/getColor.js');
|
|
11
12
|
require('@react-fabric/utilities');
|
|
12
|
-
var Toast_module = require('./Toast.module.css');
|
|
13
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
14
13
|
|
|
15
14
|
/*
|
|
16
15
|
* React Fabric
|
|
@@ -61,22 +60,22 @@ var Toast = function Toast(_ref) {
|
|
|
61
60
|
case "danger":
|
|
62
61
|
return /*#__PURE__*/jsxRuntime.jsx(Animations.AnimationIndicator, {
|
|
63
62
|
type: "cross",
|
|
64
|
-
|
|
63
|
+
color: "danger-600"
|
|
65
64
|
});
|
|
66
65
|
case "success":
|
|
67
66
|
return /*#__PURE__*/jsxRuntime.jsx(Animations.AnimationIndicator, {
|
|
68
67
|
type: "check",
|
|
69
|
-
|
|
68
|
+
color: "success-600"
|
|
70
69
|
});
|
|
71
70
|
case "warning":
|
|
72
71
|
return /*#__PURE__*/jsxRuntime.jsx(Animations.AnimationIndicator, {
|
|
73
72
|
type: "exclaim",
|
|
74
|
-
|
|
73
|
+
color: "warning-600"
|
|
75
74
|
});
|
|
76
75
|
default:
|
|
77
76
|
return /*#__PURE__*/jsxRuntime.jsx(Animations.AnimationIndicator, {
|
|
78
77
|
type: type === "confirm" ? "question" : "info",
|
|
79
|
-
|
|
78
|
+
color: "".concat(color, "-600")
|
|
80
79
|
});
|
|
81
80
|
}
|
|
82
81
|
}, [color, type, icon]);
|
|
@@ -94,13 +93,22 @@ var Toast = function Toast(_ref) {
|
|
|
94
93
|
}, []);
|
|
95
94
|
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
96
95
|
role: "alert",
|
|
97
|
-
className: classNames(
|
|
96
|
+
className: classNames("fabric-toast", "flex flex-nowrap max-w-sm bg-base min-w-72 border pointer-events-auto relative overflow-hidden rounded-capped mt-4 select-none"),
|
|
97
|
+
style: {
|
|
98
|
+
borderColor: getColor.getColor(color + "-300")
|
|
99
|
+
},
|
|
98
100
|
ref: elRef,
|
|
99
101
|
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
100
|
-
className: classNames("flex-initial p-2"
|
|
102
|
+
className: classNames("flex-initial p-2"),
|
|
103
|
+
style: {
|
|
104
|
+
backgroundColor: getColor.getColor(color + "-300")
|
|
105
|
+
},
|
|
101
106
|
children: iconType
|
|
102
107
|
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
103
|
-
className: classNames(
|
|
108
|
+
className: classNames("flex flex-col flex-1 flex-nowrap overflow-hidden p-2"),
|
|
109
|
+
style: {
|
|
110
|
+
backgroundColor: getColor.getColor(color + "-50")
|
|
111
|
+
},
|
|
104
112
|
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
105
113
|
className: "flex flex-nowrap gap-2 items-start",
|
|
106
114
|
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
@@ -10,10 +10,10 @@ var react = require('react');
|
|
|
10
10
|
var Icon = require('../../components/icon/Icon.js');
|
|
11
11
|
var useIsRtl = require('../../hooks/useIsRtl.js');
|
|
12
12
|
var icons = require('../../types/icons.js');
|
|
13
|
-
var Tooltip_module = require('./Tooltip.module.css');
|
|
14
13
|
var jsxRuntime = require('react/jsx-runtime');
|
|
14
|
+
var getColor = require('../../utils/getColor.js');
|
|
15
15
|
|
|
16
|
-
var _excluded = ["ref", "children", "color", "content", "open", "copyContent", "disabled", "placement"];
|
|
16
|
+
var _excluded = ["ref", "children", "color", "textColor", "content", "open", "copyContent", "disabled", "placement"];
|
|
17
17
|
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; }
|
|
18
18
|
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; }
|
|
19
19
|
var getTooltipProps = function getTooltipProps(tooltip, innerRef) {
|
|
@@ -35,6 +35,7 @@ var Tooltip = function Tooltip(_ref) {
|
|
|
35
35
|
var ref = _ref.ref,
|
|
36
36
|
children = _ref.children,
|
|
37
37
|
color = _ref.color,
|
|
38
|
+
textColor = _ref.textColor,
|
|
38
39
|
content = _ref.content,
|
|
39
40
|
open = _ref.open,
|
|
40
41
|
copyContent = _ref.copyContent,
|
|
@@ -71,7 +72,7 @@ var Tooltip = function Tooltip(_ref) {
|
|
|
71
72
|
floatingStyles = _useFloating.floatingStyles,
|
|
72
73
|
context = _useFloating.context;
|
|
73
74
|
var hover = react$1.useHover(context, {
|
|
74
|
-
restMs:
|
|
75
|
+
restMs: 500,
|
|
75
76
|
delay: {
|
|
76
77
|
open: 1000
|
|
77
78
|
},
|
|
@@ -91,13 +92,14 @@ var Tooltip = function Tooltip(_ref) {
|
|
|
91
92
|
var copyEl = react.useMemo(function () {
|
|
92
93
|
if (copyContent) {
|
|
93
94
|
var copyText = utilities.isString(copyContent) ? copyContent : content;
|
|
94
|
-
var handler = function handler() {
|
|
95
|
+
var handler = function handler(e) {
|
|
95
96
|
setIsOpen(false);
|
|
97
|
+
e.stopPropagation();
|
|
96
98
|
void navigator.clipboard.writeText(copyText.toString());
|
|
97
99
|
};
|
|
98
100
|
return /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
99
101
|
role: "none",
|
|
100
|
-
className: "ms-2 cursor-pointer text-
|
|
102
|
+
className: "ms-2 cursor-pointer text-dimmed flex-content opacity-75 hover:opacity-90 active:opacity-60",
|
|
101
103
|
onClick: handler,
|
|
102
104
|
children: /*#__PURE__*/jsxRuntime.jsx(Icon.Icon, {
|
|
103
105
|
icon: icons.CoreIcons.copy
|
|
@@ -112,17 +114,28 @@ var Tooltip = function Tooltip(_ref) {
|
|
|
112
114
|
}, open ? {} : getReferenceProps(rest))), isOpen && content && /*#__PURE__*/jsxRuntime.jsx(react$1.FloatingPortal, {
|
|
113
115
|
children: /*#__PURE__*/jsxRuntime.jsxs("dfn", _objectSpread(_objectSpread({
|
|
114
116
|
"data-ref": "tooltip",
|
|
115
|
-
"
|
|
116
|
-
className: classNames(Tooltip_module.tooltip, "select-none text-sm not-italic flex py-1 px-2 rounded shadow-md bg-current"),
|
|
117
|
+
className: classNames("fabric-tooltip z-(--z-tooltip)", "select-none text-sm not-italic flex py-1 px-2 !max-w-lg rounded shadow-md bg-muted"),
|
|
117
118
|
ref: refs.setFloating,
|
|
118
|
-
style:
|
|
119
|
+
style: _objectSpread({
|
|
120
|
+
color: textColor ? getColor.getColor(textColor) : undefined,
|
|
121
|
+
backgroundColor: color ? getColor.getColor(color) : undefined
|
|
122
|
+
}, floatingStyles)
|
|
119
123
|
}, getFloatingProps()), {}, {
|
|
120
|
-
children: [/*#__PURE__*/jsxRuntime.jsx("span", {
|
|
121
|
-
className: classNames("font-medium
|
|
124
|
+
children: [/*#__PURE__*/react.isValidElement(content) && content, utilities.isString(content) && /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
125
|
+
className: classNames("font-medium flex-1 break-all whitespace-pre-wrap mixed-lang", !textColor && "contrast"),
|
|
126
|
+
style: {
|
|
127
|
+
color: textColor ? undefined : color ? getColor.getColor(color) : "var(--bg-color-muted)"
|
|
128
|
+
},
|
|
122
129
|
children: content
|
|
123
130
|
}), copyEl, /*#__PURE__*/jsxRuntime.jsx(react$1.FloatingArrow, {
|
|
124
131
|
ref: arrowRef,
|
|
125
|
-
context: context
|
|
132
|
+
context: context,
|
|
133
|
+
strokeWidth: 0.5,
|
|
134
|
+
className: "fill-muted stroke-dimmed",
|
|
135
|
+
style: {
|
|
136
|
+
stroke: color ? getColor.getColor(color) : undefined,
|
|
137
|
+
fill: color ? getColor.getColor(color) : undefined
|
|
138
|
+
}
|
|
126
139
|
})]
|
|
127
140
|
}))
|
|
128
141
|
})]
|
package/dist/cjs/types/icons.js
CHANGED
|
@@ -56,6 +56,8 @@ exports.CoreIcons = void 0;
|
|
|
56
56
|
_CoreIcons.collapseActive = "M17,13H7V11H17M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z";
|
|
57
57
|
_CoreIcons.expandAll = "M5.293 16.707l6 6c0.391 0.391 1.024 0.391 1.414 0l6-6c0.391-0.391 0.391-1.024 0-1.414s-1.024-0.391-1.414 0l-5.293 5.293-5.293-5.293c-0.391-0.391-1.024-0.391-1.414 0s-0.391 1.024 0 1.414zM18.707 7.293l-6-6c-0.391-0.391-1.024-0.391-1.414 0l-6 6c-0.391 0.391-0.391 1.024 0 1.414s1.024 0.391 1.414 0l5.293-5.293 5.293 5.293c0.391 0.391 1.024 0.391 1.414 0s0.391-1.024 0-1.414z";
|
|
58
58
|
_CoreIcons.colapseAll = "M18.707 21.293l-6-6c-0.391-0.391-1.024-0.391-1.414 0l-6 6c-0.391 0.391-0.391 1.024 0 1.414s1.024 0.391 1.414 0l5.293-5.293 5.293 5.293c0.391 0.391 1.024 0.391 1.414 0s0.391-1.024 0-1.414zM5.293 2.707l6 6c0.391 0.391 1.024 0.391 1.414 0l6-6c0.391-0.391 0.391-1.024 0-1.414s-1.024-0.391-1.414 0l-5.293 5.293-5.293-5.293c-0.391-0.391-1.024-0.391-1.414 0s-0.391 1.024 0 1.414z";
|
|
59
|
+
_CoreIcons.expandAllVar = "M13,9V15H16L12,19L8,15H11V9H8L12,5L16,9H13M4,2H20V4H4V2M4,20H20V22H4V20Z";
|
|
60
|
+
_CoreIcons.colapseAllVar = "M4,12H20V14H4V12M4,9H20V11H4V9M16,4L12,8L8,4H11V1H13V4H16M8,19L12,15L16,19H13V22H11V19H8Z";
|
|
59
61
|
_CoreIcons.folderClosed = "M20,18H4V8H20M20,6H12L10,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V8C22,6.89 21.1,6 20,6Z";
|
|
60
62
|
_CoreIcons.folderOpen = "M6.1,10L4,18V8H21A2,2 0 0,0 19,6H12L10,4H4A2,2 0 0,0 2,6V18A2,2 0 0,0 4,20H19C19.9,20 20.7,19.4 20.9,18.5L23.2,10H6.1M19,18H6L7.6,12H20.6L19,18Z";
|
|
61
63
|
_CoreIcons.zoomIn = "M16.041 15.856c-0.034 0.026-0.067 0.055-0.099 0.087s-0.060 0.064-0.087 0.099c-1.258 1.213-2.969 1.958-4.855 1.958-1.933 0-3.682-0.782-4.95-2.050s-2.050-3.017-2.050-4.95 0.782-3.682 2.050-4.95 3.017-2.050 4.95-2.050 3.682 0.782 4.95 2.050 2.050 3.017 2.050 4.95c0 1.886-0.745 3.597-1.959 4.856zM21.707 20.293l-3.675-3.675c1.231-1.54 1.968-3.493 1.968-5.618 0-2.485-1.008-4.736-2.636-6.364s-3.879-2.636-6.364-2.636-4.736 1.008-6.364 2.636-2.636 3.879-2.636 6.364 1.008 4.736 2.636 6.364 3.879 2.636 6.364 2.636c2.125 0 4.078-0.737 5.618-1.968l3.675 3.675c0.391 0.391 1.024 0.391 1.414 0s0.391-1.024 0-1.414zM8 12h2v2c0 0.552 0.448 1 1 1s1-0.448 1-1v-2h2c0.552 0 1-0.448 1-1s-0.448-1-1-1h-2v-2c0-0.552-0.448-1-1-1s-1 0.448-1 1v2h-2c-0.552 0-1 0.448-1 1s0.448 1 1 1z";
|
|
@@ -64,9 +66,10 @@ exports.CoreIcons = void 0;
|
|
|
64
66
|
_CoreIcons.sortAsc = "M19 7H22L18 3L14 7H17V21H19M2 17H12V19H2M6 5V7H2V5M2 11H9V13H2V11Z";
|
|
65
67
|
_CoreIcons.refresh = "M19.547 14.667c-0.736 2.083-2.245 3.67-4.094 4.553s-4.031 1.061-6.114 0.325-3.67-2.245-4.553-4.094-1.061-4.031-0.325-6.114 2.245-3.67 4.094-4.553 4.031-1.061 6.114-0.325c1.188 0.42 2.209 1.088 2.987 1.882l2.824 2.659h-3.48c-0.552 0-1 0.448-1 1s0.448 1 1 1h5.997c0.004 0 0.009 0 0.013 0 0.137-0.001 0.267-0.030 0.386-0.082 0.119-0.051 0.229-0.126 0.324-0.225 0.012-0.012 0.023-0.025 0.034-0.038 0.076-0.087 0.134-0.184 0.175-0.287s0.065-0.213 0.069-0.328c0.002-0.014 0.002-0.028 0.002-0.042v-5.998c0-0.552-0.448-1-1-1s-1 0.448-1 1v3.685l-2.916-2.745c-0.993-1.012-2.274-1.846-3.748-2.366-2.604-0.921-5.336-0.698-7.644 0.405s-4.197 3.088-5.117 5.692-0.696 5.335 0.406 7.643 3.088 4.197 5.692 5.117 5.335 0.697 7.643-0.406 4.197-3.088 5.117-5.692c0.184-0.521-0.089-1.092-0.61-1.276s-1.092 0.089-1.276 0.61z";
|
|
66
68
|
_CoreIcons.search = "M16.041 15.856c-0.034 0.026-0.067 0.055-0.099 0.087s-0.060 0.064-0.087 0.099c-1.258 1.213-2.969 1.958-4.855 1.958-1.933 0-3.682-0.782-4.95-2.050s-2.050-3.017-2.050-4.95 0.782-3.682 2.050-4.95 3.017-2.050 4.95-2.050 3.682 0.782 4.95 2.050 2.050 3.017 2.050 4.95c0 1.886-0.745 3.597-1.959 4.856zM21.707 20.293l-3.675-3.675c1.231-1.54 1.968-3.493 1.968-5.618 0-2.485-1.008-4.736-2.636-6.364s-3.879-2.636-6.364-2.636-4.736 1.008-6.364 2.636-2.636 3.879-2.636 6.364 1.008 4.736 2.636 6.364 3.879 2.636 6.364 2.636c2.125 0 4.078-0.737 5.618-1.968l3.675 3.675c0.391 0.391 1.024 0.391 1.414 0s0.391-1.024 0-1.414z";
|
|
69
|
+
_CoreIcons.ellipsis = "M14 12c0-0.552-0.225-1.053-0.586-1.414s-0.862-0.586-1.414-0.586-1.053 0.225-1.414 0.586-0.586 0.862-0.586 1.414 0.225 1.053 0.586 1.414 0.862 0.586 1.414 0.586 1.053-0.225 1.414-0.586 0.586-0.862 0.586-1.414zM14 5c0-0.552-0.225-1.053-0.586-1.414s-0.862-0.586-1.414-0.586-1.053 0.225-1.414 0.586-0.586 0.862-0.586 1.414 0.225 1.053 0.586 1.414 0.862 0.586 1.414 0.586 1.053-0.225 1.414-0.586 0.586-0.862 0.586-1.414zM14 19c0-0.552-0.225-1.053-0.586-1.414s-0.862-0.586-1.414-0.586-1.053 0.225-1.414 0.586-0.586 0.862-0.586 1.414 0.225 1.053 0.586 1.414 0.862 0.586 1.414 0.586 1.053-0.225 1.414-0.586 0.586-0.862 0.586-1.414z";
|
|
67
70
|
_CoreIcons.filter = "M6,13H18V11H6M3,6V8H21V6M10,18H14V16H10V18Z";
|
|
68
71
|
_CoreIcons.funnel = "M19.845 4l-6.609 7.814c-0.147 0.173-0.236 0.399-0.236 0.646v6.922l-2-1v-5.922c0.001-0.227-0.077-0.457-0.236-0.646l-6.609-7.814zM22 2h-20c-0.552 0-1 0.448-1 1 0 0.247 0.089 0.473 0.236 0.646l7.764 9.18v6.174c0 0.389 0.222 0.727 0.553 0.894l4 2c0.494 0.247 1.095 0.047 1.342-0.447 0.072-0.146 0.106-0.301 0.105-0.447v-8.174l7.764-9.18c0.357-0.422 0.304-1.053-0.118-1.409-0.189-0.16-0.419-0.238-0.646-0.237z";
|
|
69
|
-
_CoreIcons.
|
|
72
|
+
_CoreIcons.funnelFull = "M14,12V19.88C14.04,20.18 13.94,20.5 13.71,20.71C13.32,21.1 12.69,21.1 12.3,20.71L10.29,18.7C10.06,18.47 9.96,18.16 10,17.87V12H9.97L4.21,4.62C3.87,4.19 3.95,3.56 4.38,3.22C4.57,3.08 4.78,3 5,3V3H19V3C19.22,3 19.43,3.08 19.62,3.22C20.05,3.56 20.13,4.19 19.79,4.62L14.03,12H14Z";
|
|
70
73
|
_CoreIcons.funnelPlus = "M15 17H18V14H20V17H23V19H20V22H18V19H15V17M13 19.88C13.04 20.18 12.94 20.5 12.72 20.71C12.32 21.1 11.69 21.1 11.3 20.71L7.29 16.7C7.06 16.47 6.96 16.16 7 15.87V10.75L2.21 4.62C1.87 4.19 1.95 3.56 2.38 3.22C2.57 3.08 2.78 3 3 3V3H17V3C17.22 3 17.43 3.08 17.62 3.22C18.05 3.56 18.13 4.19 17.79 4.62L13 10.75V19.88M5.04 5L9 10.07V15.58L11 17.58V10.05L14.96 5H5.04Z";
|
|
71
74
|
_CoreIcons.funnelRemove = "M14.73,20.83L17.58,18L14.73,15.17L16.15,13.76L19,16.57L21.8,13.76L23.22,15.17L20.41,18L23.22,20.83L21.8,22.24L19,19.4L16.15,22.24L14.73,20.83M13,19.88C13.04,20.18 12.94,20.5 12.71,20.71C12.32,21.1 11.69,21.1 11.3,20.71L7.29,16.7C7.06,16.47 6.96,16.16 7,15.87V10.75L2.21,4.62C1.87,4.19 1.95,3.56 2.38,3.22C2.57,3.08 2.78,3 3,3V3H17V3C17.22,3 17.43,3.08 17.62,3.22C18.05,3.56 18.13,4.19 17.79,4.62L13,10.75V19.88M5.04,5L9,10.06V15.58L11,17.58V10.05L14.96,5H5.04Z";
|
|
72
75
|
_CoreIcons.funnelMinus = "M15 17H23V19H15V17M13 19.88C13.04 20.18 12.94 20.5 12.72 20.71C12.32 21.1 11.69 21.1 11.3 20.71L7.29 16.7C7.06 16.47 6.96 16.16 7 15.87V10.75L2.21 4.62C1.87 4.19 1.95 3.56 2.38 3.22C2.57 3.08 2.78 3 3 3V3H17V3C17.22 3 17.43 3.08 17.62 3.22C18.05 3.56 18.13 4.19 17.79 4.62L13 10.75V19.88M5.04 5L9 10.07V15.58L11 17.58V10.05L14.96 5H5.04Z";
|
|
@@ -120,6 +123,7 @@ exports.CoreIcons = void 0;
|
|
|
120
123
|
_CoreIcons.mic = "M12 2c0.553 0 1.051 0.223 1.414 0.586s0.586 0.861 0.586 1.414v8c0 0.553-0.223 1.051-0.586 1.414s-0.861 0.586-1.414 0.586-1.051-0.223-1.414-0.586-0.586-0.861-0.586-1.414v-8c0-0.553 0.223-1.051 0.586-1.414s0.861-0.586 1.414-0.586zM12 0c-1.104 0-2.106 0.449-2.828 1.172s-1.172 1.724-1.172 2.828v8c0 1.104 0.449 2.106 1.172 2.828s1.724 1.172 2.828 1.172 2.106-0.449 2.828-1.172 1.172-1.724 1.172-2.828v-8c0-1.104-0.449-2.106-1.172-2.828s-1.724-1.172-2.828-1.172zM8 24h8c0.552 0 1-0.448 1-1s-0.448-1-1-1h-3v-2.062c1.809-0.226 3.432-1.056 4.657-2.281 1.446-1.447 2.343-3.448 2.343-5.657v-2c0-0.552-0.448-1-1-1s-1 0.448-1 1v2c0 1.657-0.67 3.156-1.757 4.243s-2.586 1.757-4.243 1.757-3.156-0.67-4.243-1.757-1.757-2.586-1.757-4.243v-2c0-0.552-0.448-1-1-1s-1 0.448-1 1v2c0 2.209 0.897 4.21 2.343 5.657 1.225 1.225 2.847 2.055 4.657 2.281v2.062h-3c-0.552 0-1 0.448-1 1s0.448 1 1 1z";
|
|
121
124
|
_CoreIcons.play = "M5.541 2.159c-0.153-0.1-0.34-0.159-0.541-0.159-0.552 0-1 0.448-1 1v18c-0.001 0.182 0.050 0.372 0.159 0.541 0.299 0.465 0.917 0.599 1.382 0.3l14-9c0.114-0.072 0.219-0.174 0.3-0.3 0.299-0.465 0.164-1.083-0.3-1.382zM6 4.832l11.151 7.168-11.151 7.168z";
|
|
122
125
|
_CoreIcons.pause = "M6 3c-0.552 0-1 0.448-1 1v16c0 0.552 0.448 1 1 1h4c0.552 0 1-0.448 1-1v-16c0-0.552-0.448-1-1-1zM7 5h2v14h-2zM14 3c-0.552 0-1 0.448-1 1v16c0 0.552 0.448 1 1 1h4c0.552 0 1-0.448 1-1v-16c0-0.552-0.448-1-1-1zM15 5h2v14h-2z";
|
|
126
|
+
_CoreIcons.stop = "M18,18H6V6H18V18Z";
|
|
123
127
|
_CoreIcons.volumeOn = "M10 7.081v9.839l-3.375-2.7c-0.17-0.137-0.388-0.22-0.625-0.22h-3v-4h3c0.218 0.001 0.439-0.071 0.625-0.219zM10.375 4.219l-4.726 3.781h-3.649c-0.552 0-1 0.448-1 1v6c0 0.552 0.448 1 1 1h3.649l4.726 3.781c0.431 0.345 1.061 0.275 1.406-0.156 0.148-0.185 0.22-0.407 0.219-0.625v-14c0-0.552-0.448-1-1-1-0.237 0-0.455 0.083-0.625 0.219zM18.363 5.637c1.757 1.758 2.635 4.059 2.635 6.364 0 2.304-0.878 4.605-2.635 6.362-0.39 0.391-0.39 1.024 0 1.414s1.024 0.39 1.414 0c2.147-2.147 3.22-4.963 3.221-7.776s-1.074-5.63-3.221-7.778c-0.39-0.391-1.024-0.391-1.414 0s-0.391 1.024 0 1.414zM14.833 9.167c0.781 0.781 1.171 1.803 1.171 2.828s-0.39 2.047-1.171 2.828c-0.39 0.391-0.39 1.024 0 1.414s1.024 0.39 1.414 0c1.171-1.171 1.757-2.708 1.757-4.242s-0.586-3.071-1.757-4.242c-0.39-0.391-1.024-0.391-1.414 0s-0.391 1.024 0 1.414z";
|
|
124
128
|
_CoreIcons.volumeOff = "M10 7.081v9.839l-3.375-2.7c-0.17-0.137-0.388-0.22-0.625-0.22h-3v-4h3c0.218 0.001 0.439-0.071 0.625-0.219zM10.375 4.219l-4.726 3.781h-3.649c-0.552 0-1 0.448-1 1v6c0 0.552 0.448 1 1 1h3.649l4.726 3.781c0.431 0.345 1.061 0.275 1.406-0.156 0.148-0.185 0.22-0.407 0.219-0.625v-14c0-0.552-0.448-1-1-1-0.237 0-0.455 0.083-0.625 0.219zM16.293 9.707l2.293 2.293-2.293 2.293c-0.391 0.391-0.391 1.024 0 1.414s1.024 0.391 1.414 0l2.293-2.293 2.293 2.293c0.391 0.391 1.024 0.391 1.414 0s0.391-1.024 0-1.414l-2.293-2.293 2.293-2.293c0.391-0.391 0.391-1.024 0-1.414s-1.024-0.391-1.414 0l-2.293 2.293-2.293-2.293c-0.391-0.391-1.024-0.391-1.414 0s-0.391 1.024 0 1.414z";
|
|
125
129
|
_CoreIcons.alignLeft = "M3,3H21V5H3V3M3,7H15V9H3V7M3,11H21V13H3V11M3,15H15V17H3V15M3,19H21V21H3V19Z";
|
|
@@ -161,6 +165,7 @@ exports.CoreIcons = void 0;
|
|
|
161
165
|
_CoreIcons.radioOn = "M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,7A5,5 0 0,0 7,12A5,5 0 0,0 12,17A5,5 0 0,0 17,12A5,5 0 0,0 12,7Z";
|
|
162
166
|
_CoreIcons.colorSwatch = "M16 14V12H17.61C17.85 12.71 18 13.39 18 14H16M15.58 8C15.12 7.29 14.65 6.61 14.2 6H14V8H15.58M16 12V10H14V12H16M16 8.68V10H16.74C16.5 9.56 16.26 9.11 16 8.68M12 16V14H14V12H12V10H14V8H12V6H14V5.73C12.9 4.26 12 3.25 12 3.25S6 10 6 14C6 17.31 8.69 20 12 20V18H14V16H12M14 19.65C14.75 19.39 15.42 19 16 18.46V18H14V19.65M14 16H16V14H14V16M16 18H16.46C17 17.42 17.39 16.75 17.65 16H16V18Z";
|
|
163
167
|
_CoreIcons.colorPicker = "M19.35,11.72L17.22,13.85L15.81,12.43L8.1,20.14L3.5,22L2,20.5L3.86,15.9L11.57,8.19L10.15,6.78L12.28,4.65L19.35,11.72M16.76,3C17.93,1.83 19.83,1.83 21,3C22.17,4.17 22.17,6.07 21,7.24L19.08,9.16L14.84,4.92L16.76,3M5.56,17.03L4.5,19.5L6.97,18.44L14.4,11L13,9.6L5.56,17.03Z";
|
|
168
|
+
_CoreIcons.list = "M11 15H17V17H11V15M9 7H7V9H9V7M11 13H17V11H11V13M11 9H17V7H11V9M9 11H7V13H9V11M21 5V19C21 20.1 20.1 21 19 21H5C3.9 21 3 20.1 3 19V5C3 3.9 3.9 3 5 3H19C20.1 3 21 3.9 21 5M19 5H5V19H19V5M9 15H7V17H9V15Z";
|
|
164
169
|
_CoreIcons.info = "M23 12c0-3.037-1.232-5.789-3.222-7.778s-4.741-3.222-7.778-3.222-5.789 1.232-7.778 3.222-3.222 4.741-3.222 7.778 1.232 5.789 3.222 7.778 4.741 3.222 7.778 3.222 5.789-1.232 7.778-3.222 3.222-4.741 3.222-7.778zM21 12c0 2.486-1.006 4.734-2.636 6.364s-3.878 2.636-6.364 2.636-4.734-1.006-6.364-2.636-2.636-3.878-2.636-6.364 1.006-4.734 2.636-6.364 3.878-2.636 6.364-2.636 4.734 1.006 6.364 2.636 2.636 3.878 2.636 6.364zM13 16v-4c0-0.552-0.448-1-1-1s-1 0.448-1 1v4c0 0.552 0.448 1 1 1s1-0.448 1-1zM12 9c0.552 0 1-0.448 1-1s-0.448-1-1-1-1 0.448-1 1 0.448 1 1 1z";
|
|
165
170
|
_CoreIcons.alert = "M23 12c0-3.037-1.232-5.789-3.222-7.778s-4.741-3.222-7.778-3.222-5.789 1.232-7.778 3.222-3.222 4.741-3.222 7.778 1.232 5.789 3.222 7.778 4.741 3.222 7.778 3.222 5.789-1.232 7.778-3.222 3.222-4.741 3.222-7.778zM21 12c0 2.486-1.006 4.734-2.636 6.364s-3.878 2.636-6.364 2.636-4.734-1.006-6.364-2.636-2.636-3.878-2.636-6.364 1.006-4.734 2.636-6.364 3.878-2.636 6.364-2.636 4.734 1.006 6.364 2.636 2.636 3.878 2.636 6.364zM11 8v4c0 0.552 0.448 1 1 1s1-0.448 1-1v-4c0-0.552-0.448-1-1-1s-1 0.448-1 1zM12 17c0.552 0 1-0.448 1-1s-0.448-1-1-1-1 0.448-1 1 0.448 1 1 1z";
|
|
166
171
|
_CoreIcons.error = "M23 12c0-3.037-1.232-5.789-3.222-7.778s-4.741-3.222-7.778-3.222-5.789 1.232-7.778 3.222-3.222 4.741-3.222 7.778 1.232 5.789 3.222 7.778 4.741 3.222 7.778 3.222 5.789-1.232 7.778-3.222 3.222-4.741 3.222-7.778zM21 12c0 2.486-1.006 4.734-2.636 6.364s-3.878 2.636-6.364 2.636-4.734-1.006-6.364-2.636-2.636-3.878-2.636-6.364 1.006-4.734 2.636-6.364 3.878-2.636 6.364-2.636 4.734 1.006 6.364 2.636 2.636 3.878 2.636 6.364zM8.293 9.707l2.293 2.293-2.293 2.293c-0.391 0.391-0.391 1.024 0 1.414s1.024 0.391 1.414 0l2.293-2.293 2.293 2.293c0.391 0.391 1.024 0.391 1.414 0s0.391-1.024 0-1.414l-2.293-2.293 2.293-2.293c0.391-0.391 0.391-1.024 0-1.414s-1.024-0.391-1.414 0l-2.293 2.293-2.293-2.293c-0.391-0.391-1.024-0.391-1.414 0s-0.391 1.024 0 1.414z";
|
|
@@ -7,9 +7,8 @@ var classNames = require('classnames');
|
|
|
7
7
|
var react = require('react');
|
|
8
8
|
var useEffectDebugger = require('../hooks/useEffectDebugger.js');
|
|
9
9
|
var Tooltip = require('../overlays/tooltip/Tooltip.js');
|
|
10
|
-
var getColor = require('../utils/getColor.js');
|
|
11
|
-
var Typography_module = require('./Typography.module.css');
|
|
12
10
|
var jsxRuntime = require('react/jsx-runtime');
|
|
11
|
+
var getColor = require('../utils/getColor.js');
|
|
13
12
|
|
|
14
13
|
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
14
|
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,13 +21,13 @@ var AbbrText = function AbbrText(_ref) {
|
|
|
22
21
|
return tooltip ? Tooltip.Tooltip : react.Fragment;
|
|
23
22
|
}, [tooltip]);
|
|
24
23
|
var tooltipProps = react.useMemo(function () {
|
|
25
|
-
return _objectSpread(_objectSpread({}, Tooltip.getTooltipProps(tooltip)), {}, {
|
|
24
|
+
return tooltip ? _objectSpread(_objectSpread({}, Tooltip.getTooltipProps(tooltip)), {}, {
|
|
26
25
|
copyContent: content
|
|
27
|
-
});
|
|
26
|
+
}) : {};
|
|
28
27
|
}, [tooltip, content]);
|
|
29
28
|
return /*#__PURE__*/jsxRuntime.jsx(TooltipWrapper, _objectSpread(_objectSpread({}, tooltipProps), {}, {
|
|
30
29
|
children: /*#__PURE__*/jsxRuntime.jsx("abbr", {
|
|
31
|
-
className: classNames(
|
|
30
|
+
className: classNames("fabric-abbr", "whitespace-nowrap"),
|
|
32
31
|
style: color ? {
|
|
33
32
|
"--abbr-color": getColor.getColor(color)
|
|
34
33
|
} : undefined,
|
|
@@ -4,10 +4,11 @@ var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
|
4
4
|
var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
|
|
5
5
|
var classNames = require('classnames');
|
|
6
6
|
var useEffectDebugger = require('../hooks/useEffectDebugger.js');
|
|
7
|
+
require('react');
|
|
8
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
7
9
|
var getColor = require('../utils/getColor.js');
|
|
8
10
|
require('@react-fabric/utilities');
|
|
9
11
|
var types = require('./types.js');
|
|
10
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
11
12
|
|
|
12
13
|
var _excluded = ["ref", "as", "children", "className", "bg", "color", "family", "size"];
|
|
13
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,7 +16,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
15
16
|
/**
|
|
16
17
|
* Typography link component
|
|
17
18
|
*/
|
|
18
|
-
var
|
|
19
|
+
var Anchor = function Anchor(_ref) {
|
|
19
20
|
var ref = _ref.ref,
|
|
20
21
|
as = _ref.as,
|
|
21
22
|
children = _ref.children,
|
|
@@ -44,7 +45,7 @@ var Link = function Link(_ref) {
|
|
|
44
45
|
}, [bg, color, size, family], "Link styles");
|
|
45
46
|
var E = as !== null && as !== void 0 ? as : "a";
|
|
46
47
|
return /*#__PURE__*/jsxRuntime.jsx(E, _objectSpread(_objectSpread({
|
|
47
|
-
className: classNames("link", className, family && "font-".concat(family)
|
|
48
|
+
className: classNames("link", className, family && "font-".concat(family)),
|
|
48
49
|
style: styles,
|
|
49
50
|
ref: ref
|
|
50
51
|
}, aria), {}, {
|
|
@@ -52,4 +53,4 @@ var Link = function Link(_ref) {
|
|
|
52
53
|
}));
|
|
53
54
|
};
|
|
54
55
|
|
|
55
|
-
exports.
|
|
56
|
+
exports.Anchor = Anchor;
|
|
@@ -6,9 +6,8 @@ var utilities = require('@react-fabric/utilities');
|
|
|
6
6
|
var classNames = require('classnames');
|
|
7
7
|
var react = require('react');
|
|
8
8
|
var useEffectDebugger = require('../hooks/useEffectDebugger.js');
|
|
9
|
-
var getColor = require('../utils/getColor.js');
|
|
10
|
-
var Typography_module = require('./Typography.module.css');
|
|
11
9
|
var jsxRuntime = require('react/jsx-runtime');
|
|
10
|
+
var getColor = require('../utils/getColor.js');
|
|
12
11
|
|
|
13
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; }
|
|
14
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; }
|
|
@@ -16,7 +15,7 @@ var MarkText = function MarkText(_ref) {
|
|
|
16
15
|
var color = _ref.color,
|
|
17
16
|
children = _ref.children;
|
|
18
17
|
return /*#__PURE__*/jsxRuntime.jsx("mark", {
|
|
19
|
-
className: classNames(
|
|
18
|
+
className: classNames("fabric-mark", "whitespace-nowrap"),
|
|
20
19
|
style: color ? {
|
|
21
20
|
"--mark-color": getColor.getColor(color)
|
|
22
21
|
} : undefined,
|
|
@@ -10,10 +10,9 @@ var reactI18next = require('react-i18next');
|
|
|
10
10
|
var useEffectDebugger = require('../hooks/useEffectDebugger.js');
|
|
11
11
|
var usePropToggle = require('../hooks/usePropToggle.js');
|
|
12
12
|
var calculateDimensions = require('../utils/calculateDimensions.js');
|
|
13
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
13
14
|
var getColor = require('../utils/getColor.js');
|
|
14
|
-
var Typography_module = require('./Typography.module.css');
|
|
15
15
|
var types = require('./types.js');
|
|
16
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
17
16
|
|
|
18
17
|
var _excluded = ["children", "className", "inline", "bg", "color", "family", "size", "clamp", "align"];
|
|
19
18
|
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; }
|
|
@@ -98,13 +97,13 @@ var Text = function Text(_ref) {
|
|
|
98
97
|
"--text-clamp": showMore ? "unset" : clamp !== null && clamp !== void 0 ? clamp : "unset"
|
|
99
98
|
},
|
|
100
99
|
children: /*#__PURE__*/jsxRuntime.jsx("div", _objectSpread(_objectSpread({
|
|
101
|
-
className: classNames(
|
|
100
|
+
className: classNames("fabric-text", "mixed-lang px-[2px] whitespace-pre-wrap", family && "font-".concat(family), clamp && "line-clamp-1"),
|
|
102
101
|
style: styles
|
|
103
102
|
}, aria), {}, {
|
|
104
103
|
children: children
|
|
105
104
|
}))
|
|
106
105
|
}), clipped && /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
107
|
-
className:
|
|
106
|
+
className: "fabric-moreLink",
|
|
108
107
|
children: /*#__PURE__*/jsxRuntime.jsxs("span", {
|
|
109
108
|
role: "link",
|
|
110
109
|
tabIndex: 0,
|
|
@@ -4,11 +4,11 @@ var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
|
4
4
|
var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
|
|
5
5
|
var classNames = require('classnames');
|
|
6
6
|
var useEffectDebugger = require('../hooks/useEffectDebugger.js');
|
|
7
|
+
require('react');
|
|
8
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
7
9
|
var getColor = require('../utils/getColor.js');
|
|
8
10
|
require('@react-fabric/utilities');
|
|
9
11
|
var types = require('./types.js');
|
|
10
|
-
var Typography_module = require('./Typography.module.css');
|
|
11
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
12
12
|
|
|
13
13
|
var _excluded = ["children", "className", "as", "bg", "color", "size", "align", "family"];
|
|
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; }
|
|
@@ -48,7 +48,7 @@ var Title = function Title(_ref) {
|
|
|
48
48
|
}, [bg, color, size, align], "Title styles");
|
|
49
49
|
var E = as !== null && as !== void 0 ? as : "p";
|
|
50
50
|
return /*#__PURE__*/jsxRuntime.jsx(E, _objectSpread(_objectSpread({
|
|
51
|
-
className: classNames(
|
|
51
|
+
className: classNames("fabric-title", className, family && "font-".concat(family), !as && "text-lg"),
|
|
52
52
|
style: styles
|
|
53
53
|
}, aria), {}, {
|
|
54
54
|
children: children
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var react = require('react');
|
|
4
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
5
|
+
|
|
6
|
+
/*
|
|
7
|
+
* React Fabric
|
|
8
|
+
* @version: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* The MIT License (MIT)
|
|
12
|
+
* Copyright (c) 2024 Adarsh Pastakia
|
|
13
|
+
*
|
|
14
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software
|
|
15
|
+
* and associated documentation files (the "Software"), to deal in the Software without restriction,
|
|
16
|
+
* including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
17
|
+
* and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
|
|
18
|
+
* subject to the following conditions:
|
|
19
|
+
*
|
|
20
|
+
* The above copyright notice and this permission notice shall be included in all copies or substantial
|
|
21
|
+
* portions of the Software.
|
|
22
|
+
*
|
|
23
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
|
|
24
|
+
* TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
25
|
+
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
26
|
+
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
27
|
+
*/
|
|
28
|
+
|
|
29
|
+
var cloneChildren = function cloneChildren(children, callback) {
|
|
30
|
+
var _Children$map;
|
|
31
|
+
return (_Children$map = react.Children.map(children, function (c) {
|
|
32
|
+
if ( /*#__PURE__*/react.isValidElement(c)) {
|
|
33
|
+
if (c.type === jsxRuntime.Fragment) {
|
|
34
|
+
var _c$props;
|
|
35
|
+
// just compare to `Fragment`
|
|
36
|
+
return cloneChildren((_c$props = c.props) === null || _c$props === void 0 ? void 0 : _c$props.children, callback);
|
|
37
|
+
}
|
|
38
|
+
return c;
|
|
39
|
+
}
|
|
40
|
+
if (c instanceof Promise) {
|
|
41
|
+
return undefined;
|
|
42
|
+
}
|
|
43
|
+
return c;
|
|
44
|
+
})) === null || _Children$map === void 0 ? void 0 : _Children$map.flat().filter(Boolean).map(callback);
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
exports.cloneChildren = cloneChildren;
|
|
@@ -29,24 +29,7 @@ var getColor = function getColor(color) {
|
|
|
29
29
|
if (color && utilities.isColor(color)) {
|
|
30
30
|
return color;
|
|
31
31
|
}
|
|
32
|
-
|
|
33
|
-
var getBgClass = function getBgClass(bg) {
|
|
34
|
-
if (bg && !utilities.isColor(bg)) {
|
|
35
|
-
return "bg-".concat(bg);
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
var getColorClass = function getColorClass(color) {
|
|
39
|
-
if (color && !utilities.isColor(color)) {
|
|
40
|
-
return "text-".concat(color);
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
var getBorderClass = function getBorderClass(color) {
|
|
44
|
-
if (color && !utilities.isColor(color)) {
|
|
45
|
-
return "border-".concat(color);
|
|
46
|
-
}
|
|
32
|
+
return "var(--color-".concat(color, ")");
|
|
47
33
|
};
|
|
48
34
|
|
|
49
|
-
exports.getBgClass = getBgClass;
|
|
50
|
-
exports.getBorderClass = getBorderClass;
|
|
51
35
|
exports.getColor = getColor;
|
|
52
|
-
exports.getColorClass = getColorClass;
|
|
@@ -5,7 +5,6 @@ import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProper
|
|
|
5
5
|
import classNames from 'classnames';
|
|
6
6
|
import { useCallback } from 'react';
|
|
7
7
|
import { ButtonGroup } from '../button/ButtonGroup.js';
|
|
8
|
-
import classes from './ActionLabel.module.css';
|
|
9
8
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
10
9
|
|
|
11
10
|
var _excluded = ["children", "className", "align", "actions", "disabled"];
|
|
@@ -39,12 +38,13 @@ var ActionLabel = function ActionLabel(_ref) {
|
|
|
39
38
|
}
|
|
40
39
|
}, []);
|
|
41
40
|
return /*#__PURE__*/jsxs("div", _objectSpread(_objectSpread({
|
|
42
|
-
className: classNames(className,
|
|
41
|
+
className: classNames(className, "fabric-actionLabel", "flex overflow-hidden gap-1 items-center cursor-default select-none"),
|
|
43
42
|
"data-disabled": disabled
|
|
44
43
|
}, rest), {}, {
|
|
45
44
|
children: [/*#__PURE__*/jsx(ButtonGroup, {
|
|
46
45
|
ref: calculateBasis,
|
|
47
|
-
|
|
46
|
+
"data-inner-clickable": true,
|
|
47
|
+
className: classNames("fabric-actions", "overflow-hidden flex-content", align === "end" && "order-2"),
|
|
48
48
|
children: actions
|
|
49
49
|
}), /*#__PURE__*/jsx("div", {
|
|
50
50
|
className: "flex-initial truncate",
|
|
@@ -5,12 +5,12 @@ import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProper
|
|
|
5
5
|
import classNames from 'classnames';
|
|
6
6
|
import { useMemo } from 'react';
|
|
7
7
|
import { useMemoDebugger } from '../../hooks/useEffectDebugger.js';
|
|
8
|
-
import { getColor, getColorClass } from '../../utils/getColor.js';
|
|
9
|
-
import '@react-fabric/utilities';
|
|
10
|
-
import classes from './Animations.module.css';
|
|
11
8
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
9
|
+
import { getColor } from '../../utils/getColor.js';
|
|
10
|
+
import '@react-fabric/utilities';
|
|
12
11
|
|
|
13
|
-
var _excluded = ["className", "color", "strokeColor", "type"]
|
|
12
|
+
var _excluded = ["className", "color", "strokeColor", "type"],
|
|
13
|
+
_excluded2 = ["className"];
|
|
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
16
|
var AnimationIndicator = function AnimationIndicator(_ref) {
|
|
@@ -39,36 +39,40 @@ var AnimationIndicator = function AnimationIndicator(_ref) {
|
|
|
39
39
|
/** ***************** component *******************/
|
|
40
40
|
return /*#__PURE__*/jsxs("svg", _objectSpread(_objectSpread({
|
|
41
41
|
"data-ref": "animated-indicator",
|
|
42
|
-
className: classNames(
|
|
42
|
+
className: classNames("fabric-checkAnimation", className, "inline-block rounded-full"),
|
|
43
43
|
style: styles,
|
|
44
44
|
xmlns: "http://www.w3.org/2000/svg",
|
|
45
45
|
viewBox: "0 0 52 52",
|
|
46
46
|
"aria-hidden": "true"
|
|
47
47
|
}, aria), {}, {
|
|
48
48
|
children: [/*#__PURE__*/jsx("circle", {
|
|
49
|
-
className:
|
|
49
|
+
className: "fabric-circlePart",
|
|
50
50
|
cx: "26",
|
|
51
51
|
cy: "26",
|
|
52
52
|
r: "25"
|
|
53
53
|
}), /*#__PURE__*/jsx("path", {
|
|
54
|
-
className: classNames(
|
|
54
|
+
className: classNames("fabric-iconPart"),
|
|
55
|
+
style: {
|
|
56
|
+
color: strokeColor ? getColor(strokeColor) : "var(--text-color-invert)"
|
|
57
|
+
},
|
|
55
58
|
d: path
|
|
56
59
|
})]
|
|
57
60
|
}));
|
|
58
61
|
};
|
|
59
62
|
var AnimationBars = function AnimationBars(_ref2) {
|
|
60
63
|
var _ref2$color = _ref2.color,
|
|
61
|
-
color = _ref2$color === void 0 ? "tint" : _ref2$color,
|
|
64
|
+
color = _ref2$color === void 0 ? "tint-500" : _ref2$color,
|
|
62
65
|
_ref2$size = _ref2.size,
|
|
63
66
|
size = _ref2$size === void 0 ? "2rem" : _ref2$size;
|
|
64
67
|
return /*#__PURE__*/jsx("div", {
|
|
65
68
|
className: classNames("absolute inset-0 z-10 flex justify-center items-center cursor-wait"),
|
|
66
69
|
children: /*#__PURE__*/jsx("div", {
|
|
67
|
-
className: classNames("outline outline-tint-500/20 p-4 bg-
|
|
70
|
+
className: classNames("outline outline-tint-500/20 p-4 bg-tint-50/50 backdrop-blur-sm rounded"),
|
|
68
71
|
children: /*#__PURE__*/jsx("div", {
|
|
69
|
-
className: classNames(
|
|
72
|
+
className: classNames("fabric-bars"),
|
|
70
73
|
style: {
|
|
71
|
-
width: size
|
|
74
|
+
width: size,
|
|
75
|
+
color: getColor(color)
|
|
72
76
|
}
|
|
73
77
|
})
|
|
74
78
|
})
|
|
@@ -81,12 +85,14 @@ var AnimationSpinner = function AnimationSpinner(_ref3) {
|
|
|
81
85
|
size = _ref3$size === void 0 ? "2rem" : _ref3$size;
|
|
82
86
|
return /*#__PURE__*/jsx("div", {
|
|
83
87
|
className: classNames("absolute inset-0 z-10 flex justify-center items-center cursor-wait"),
|
|
88
|
+
"data-ref": "spinner",
|
|
84
89
|
children: /*#__PURE__*/jsx("div", {
|
|
85
|
-
className: classNames("outline outline-tint-500/20 p-4 bg-
|
|
90
|
+
className: classNames("outline outline-tint-500/20 p-4 bg-tint-50/50 backdrop-blur-sm rounded"),
|
|
86
91
|
children: /*#__PURE__*/jsx("div", {
|
|
87
|
-
className: classNames(
|
|
92
|
+
className: classNames("fabric-spinner"),
|
|
88
93
|
style: {
|
|
89
|
-
width: size
|
|
94
|
+
width: size,
|
|
95
|
+
color: getColor(color)
|
|
90
96
|
}
|
|
91
97
|
})
|
|
92
98
|
})
|
|
@@ -94,15 +100,20 @@ var AnimationSpinner = function AnimationSpinner(_ref3) {
|
|
|
94
100
|
};
|
|
95
101
|
var Loading = function Loading() {
|
|
96
102
|
return /*#__PURE__*/jsx("div", {
|
|
97
|
-
className: classNames(
|
|
103
|
+
className: classNames("fabric-loader", "area-[loader] relative overflow-x-clip"),
|
|
104
|
+
"data-ref": "loading",
|
|
98
105
|
children: /*#__PURE__*/jsx("div", {
|
|
99
106
|
className: "absolute z-10 py-px inset-x-0 top-0 after:h-0.5 after:block after:bg-primary-500"
|
|
100
107
|
})
|
|
101
108
|
});
|
|
102
109
|
};
|
|
103
|
-
var Skeleton = function Skeleton() {
|
|
104
|
-
|
|
105
|
-
|
|
110
|
+
var Skeleton = function Skeleton(_ref4) {
|
|
111
|
+
var className = _ref4.className,
|
|
112
|
+
rest = _objectWithoutProperties(_ref4, _excluded2);
|
|
113
|
+
return /*#__PURE__*/jsxs("div", _objectSpread(_objectSpread({
|
|
114
|
+
className: classNames(className, "p-2 animate-pulse flex gap-2 max-w-lg"),
|
|
115
|
+
"data-ref": "skeleton"
|
|
116
|
+
}, rest), {}, {
|
|
106
117
|
children: [/*#__PURE__*/jsx("div", {
|
|
107
118
|
className: "bg-tint-100 rounded aspect-square h-12"
|
|
108
119
|
}), /*#__PURE__*/jsxs("div", {
|
|
@@ -125,7 +136,7 @@ var Skeleton = function Skeleton() {
|
|
|
125
136
|
})]
|
|
126
137
|
})]
|
|
127
138
|
})]
|
|
128
|
-
});
|
|
139
|
+
}));
|
|
129
140
|
};
|
|
130
141
|
|
|
131
142
|
export { AnimationBars, AnimationIndicator, AnimationSpinner, Loading, Skeleton };
|