@react-fabric/core 1.0.0-beta.5 → 1.0.0-beta.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{src/components/actionLabel/ActionLabel.module.css → css/components/_actionLabel.css} +4 -4
- package/{src/overlays/alert/Alert.module.css → css/components/_alert.css} +3 -3
- package/{src/components/animations/Animations.module.css → css/components/_animations.css} +9 -9
- package/{src/components/avatar/Avatar.module.css → css/components/_avatar.css} +11 -11
- package/{src/components/badge/Badge.module.css → css/components/_badge.css} +19 -17
- package/{src/components/breadcrumbs/Breadcrumbs.module.css → css/components/_breadcrumbs.css} +49 -44
- package/{src/components/button/Button.module.css → css/components/_button.css} +69 -79
- package/{src/components/card/Card.module.css → css/components/_card.css} +50 -28
- package/{src/components/chip/Chip.module.css → css/components/_chip.css} +14 -10
- package/{src/components/collapsable/Collapsable.module.css → css/components/_collapsable.css} +3 -3
- package/css/components/_divider.css +38 -0
- package/{src/components/dropdown/Dropdown.module.css → css/components/_dropdown.css} +2 -2
- package/{src/overlays/flyout/Flyout.module.css → css/components/_flyout.css} +6 -6
- package/{src/components/icon/Icon.module.css → css/components/_icon.css} +8 -5
- package/{src/components/media/Media.module.css → css/components/_media.css} +17 -17
- package/{src/components/menu/Menu.module.css → css/components/_menu.css} +19 -20
- package/{src/overlays/message/Message.module.css → css/components/_message.css} +2 -2
- package/{src/components/meter/Meter.module.css → css/components/_meter.css} +10 -10
- package/{src/overlays/modal/Modal.module.css → css/components/_modal.css} +8 -8
- package/{src/components/panel/Panel.module.css → css/components/_panel.css} +17 -17
- package/{src/components/progress/Progress.module.css → css/components/_progress.css} +7 -10
- package/{src/components/tabpanel/TabPanel.module.css → css/components/_tabPanel.css} +73 -84
- package/{src/overlays/toast/Toast.module.css → css/components/_toast.css} +2 -2
- package/css/components/_tooltip.css +29 -0
- package/{src/core/content/Content.module.css → css/components/index.css} +25 -18
- package/{src/core/aside/Aside.module.css → css/core/_aside.css} +56 -42
- package/{src/core/section/Section.module.css → css/core/_content.css} +5 -3
- package/{src/core/boundary/ErrorBoundary.module.css → css/core/_errorboundary.css} +9 -9
- package/{src/core/headfoot/HeadFoot.module.css → css/core/_headfoot.css} +4 -10
- package/{src/core/page/Page.module.css → css/core/_page.css} +10 -14
- package/{src/core/responsive/Responsive.module.css → css/core/_responsive.css} +10 -10
- package/css/core/_section.css +28 -0
- package/{src/core/theme/Theme.module.css → css/core/_theme.css} +3 -3
- package/{src/typography/Typography.module.css → css/core/_typography.css} +14 -12
- package/{src/core/viewport/Viewport.module.css → css/core/_viewport.css} +7 -3
- package/css/core/index.css +33 -0
- package/css/reset/_gradients.css +8 -8
- package/css/reset/_reset.css +42 -224
- package/css/reset/_text.css +14 -29
- package/css/reset/_theme.css +331 -52
- package/css/reset/index.css +4 -4
- package/css/styles.css +7 -6
- package/css/theme/_colors.css +320 -0
- package/css/theme/_utilities.css +530 -0
- package/css/theme/index.css +45 -0
- package/dist/cjs/components/actionLabel/ActionLabel.js +26 -8
- package/dist/cjs/components/animations/Animations.js +118 -24
- package/dist/cjs/components/avatar/Avatar.js +43 -16
- package/dist/cjs/components/avatar/AvatarGroup.js +22 -4
- package/dist/cjs/components/badge/Badge.js +35 -6
- package/dist/cjs/components/breadcrumbs/Breadcrumbs.js +39 -8
- package/dist/cjs/components/button/Button.js +42 -15
- package/dist/cjs/components/button/ButtonGroup.js +30 -3
- package/dist/cjs/components/button/ConfirmButton.js +32 -4
- package/dist/cjs/components/button/ToggleButtonGroup.js +41 -15
- package/dist/cjs/components/callout/Callout.js +44 -4
- package/dist/cjs/components/card/Card.js +48 -10
- package/dist/cjs/components/card/CardCover.js +36 -5
- package/dist/cjs/components/card/FlipContent.js +56 -0
- package/dist/cjs/components/chip/Chip.js +32 -7
- package/dist/cjs/components/collapsable/Collapsable.js +32 -6
- package/dist/cjs/components/divider/Divider.js +30 -7
- package/dist/cjs/components/dropdown/Dropdown.js +48 -9
- package/dist/cjs/components/dropdown/DropdownTool.js +4 -3
- package/dist/cjs/components/empty/EmptyContent.js +35 -5
- package/dist/cjs/components/icon/Icon.js +44 -16
- package/dist/cjs/components/media/Media.js +172 -75
- package/dist/cjs/components/menu/ContextMenu.js +49 -10
- package/dist/cjs/components/menu/Menu.js +74 -21
- package/dist/cjs/components/menu/MenuItem.js +51 -16
- package/dist/cjs/components/meter/Meter.js +26 -3
- package/dist/cjs/components/navigator/Navigator.js +48 -13
- package/dist/cjs/components/panel/Panel.js +47 -9
- package/dist/cjs/components/panel/PanelGroup.js +25 -2
- package/dist/cjs/components/panel/PanelStack.js +31 -0
- package/dist/cjs/components/progress/ProgressBar.js +31 -9
- package/dist/cjs/components/progress/ProgressCircle.js +29 -7
- package/dist/cjs/components/tabpanel/Tab.js +89 -38
- package/dist/cjs/components/tabpanel/TabPanel.js +53 -16
- package/dist/cjs/context/Global.js +28 -1
- package/dist/cjs/context/NotificationCenter.js +3 -3
- package/dist/cjs/core/aside/Aside.js +49 -11
- package/dist/cjs/core/boundary/ErrorBoundary.js +23 -8
- package/dist/cjs/core/boundary/ErrorIcon.js +1 -2
- package/dist/cjs/core/content/Content.js +15 -8
- package/dist/cjs/core/headfoot/HeadFoot.js +44 -20
- package/dist/cjs/core/page/Page.js +40 -29
- package/dist/cjs/core/responsive/Responsive.js +59 -6
- package/dist/cjs/core/section/Section.js +1 -2
- package/dist/cjs/core/theme/ThemeProvider.js +32 -10
- package/dist/cjs/core/viewport/Viewport.js +18 -2
- package/dist/cjs/hooks/useControlledValue.js +12 -0
- package/dist/cjs/hooks/useDebounce.js +14 -1
- package/dist/cjs/hooks/useEffectDebugger.js +54 -2
- package/dist/cjs/hooks/useIsDark.js +8 -0
- package/dist/cjs/hooks/useIsRtl.js +12 -0
- package/dist/cjs/hooks/useNavigator.js +6 -4
- package/dist/cjs/hooks/useOverlayService.js +24 -0
- package/dist/cjs/hooks/usePropToggle.js +16 -5
- package/dist/cjs/hooks/useResize.js +18 -0
- package/dist/cjs/hooks/useResizeObserver.js +20 -1
- package/dist/cjs/hooks/useStorage.js +39 -0
- package/dist/cjs/hotkeys/HotKeyLabel.js +1 -1
- package/dist/cjs/hotkeys/HotKeyWrapper.js +3 -1
- package/dist/cjs/index.js +8 -2
- package/dist/cjs/overlays/alert/Alert.js +20 -14
- package/dist/cjs/overlays/flyout/Flyout.js +49 -60
- package/dist/cjs/overlays/message/Message.js +6 -3
- package/dist/cjs/overlays/modal/Modal.js +16 -12
- package/dist/cjs/overlays/toast/Toast.js +17 -9
- package/dist/cjs/overlays/tooltip/Tooltip.js +24 -11
- package/dist/cjs/types/icons.js +10 -1
- package/dist/cjs/typography/Abbr.js +32 -6
- package/dist/cjs/typography/{Link.js → Anchor.js} +23 -5
- package/dist/cjs/typography/Mark.js +22 -4
- package/dist/cjs/typography/Text.js +30 -5
- package/dist/cjs/typography/Title.js +19 -4
- package/dist/cjs/utils/cloneElement.js +47 -0
- package/dist/cjs/utils/getColor.js +1 -18
- package/dist/esm/components/actionLabel/ActionLabel.js +26 -8
- package/dist/esm/components/animations/Animations.js +119 -25
- package/dist/esm/components/avatar/Avatar.js +44 -17
- package/dist/esm/components/avatar/AvatarGroup.js +22 -4
- package/dist/esm/components/badge/Badge.js +36 -7
- package/dist/esm/components/breadcrumbs/Breadcrumbs.js +39 -8
- package/dist/esm/components/button/Button.js +42 -15
- package/dist/esm/components/button/ButtonGroup.js +31 -4
- package/dist/esm/components/button/ConfirmButton.js +32 -4
- package/dist/esm/components/button/ToggleButtonGroup.js +42 -16
- package/dist/esm/components/callout/Callout.js +44 -4
- package/dist/esm/components/card/Card.js +49 -11
- package/dist/esm/components/card/CardCover.js +36 -5
- package/dist/esm/components/card/FlipContent.js +56 -0
- package/dist/esm/components/chip/Chip.js +33 -8
- package/dist/esm/components/collapsable/Collapsable.js +32 -6
- package/dist/esm/components/divider/Divider.js +31 -8
- package/dist/esm/components/dropdown/Dropdown.js +48 -9
- package/dist/esm/components/dropdown/DropdownTool.js +4 -3
- package/dist/esm/components/empty/EmptyContent.js +35 -5
- package/dist/esm/components/icon/Icon.js +44 -16
- package/dist/esm/components/media/Media.js +173 -76
- package/dist/esm/components/menu/ContextMenu.js +51 -12
- package/dist/esm/components/menu/Menu.js +76 -23
- package/dist/esm/components/menu/MenuItem.js +45 -10
- package/dist/esm/components/meter/Meter.js +26 -3
- package/dist/esm/components/navigator/Navigator.js +48 -13
- package/dist/esm/components/panel/Panel.js +47 -9
- package/dist/esm/components/panel/PanelGroup.js +25 -2
- package/dist/esm/components/panel/PanelStack.js +31 -0
- package/dist/esm/components/progress/ProgressBar.js +31 -9
- package/dist/esm/components/progress/ProgressCircle.js +29 -7
- package/dist/esm/components/tabpanel/Tab.js +90 -39
- package/dist/esm/components/tabpanel/TabPanel.js +53 -16
- package/dist/esm/context/Global.js +28 -1
- package/dist/esm/context/NotificationCenter.js +3 -3
- package/dist/esm/core/aside/Aside.js +49 -11
- package/dist/esm/core/boundary/ErrorBoundary.js +23 -8
- package/dist/esm/core/boundary/ErrorIcon.js +1 -2
- package/dist/esm/core/content/Content.js +15 -8
- package/dist/esm/core/headfoot/HeadFoot.js +44 -20
- package/dist/esm/core/page/Page.js +40 -29
- package/dist/esm/core/responsive/Responsive.js +59 -6
- package/dist/esm/core/section/Section.js +1 -2
- package/dist/esm/core/theme/ThemeProvider.js +32 -10
- package/dist/esm/core/viewport/Viewport.js +18 -2
- package/dist/esm/hooks/useControlledValue.js +12 -0
- package/dist/esm/hooks/useDebounce.js +14 -1
- package/dist/esm/hooks/useEffectDebugger.js +54 -2
- package/dist/esm/hooks/useIsDark.js +8 -0
- package/dist/esm/hooks/useIsRtl.js +12 -0
- package/dist/esm/hooks/useNavigator.js +7 -5
- package/dist/esm/hooks/useOverlayService.js +24 -0
- package/dist/esm/hooks/usePropToggle.js +16 -5
- package/dist/esm/hooks/useResize.js +18 -0
- package/dist/esm/hooks/useResizeObserver.js +20 -1
- package/dist/esm/hooks/useStorage.js +39 -0
- package/dist/esm/hotkeys/HotKeyLabel.js +1 -1
- package/dist/esm/hotkeys/HotKeyWrapper.js +3 -1
- package/dist/esm/index.js +4 -1
- package/dist/esm/overlays/alert/Alert.js +21 -15
- package/dist/esm/overlays/flyout/Flyout.js +52 -63
- package/dist/esm/overlays/message/Message.js +7 -4
- package/dist/esm/overlays/modal/Modal.js +17 -13
- package/dist/esm/overlays/toast/Toast.js +18 -10
- package/dist/esm/overlays/tooltip/Tooltip.js +24 -11
- package/dist/esm/types/icons.js +10 -1
- package/dist/esm/typography/Abbr.js +32 -6
- package/dist/esm/typography/{Link.js → Anchor.js} +24 -6
- package/dist/esm/typography/Mark.js +22 -4
- package/dist/esm/typography/Text.js +31 -6
- package/dist/esm/typography/Title.js +20 -5
- package/dist/esm/utils/cloneElement.js +47 -0
- package/dist/esm/utils/getColor.js +2 -16
- package/dist/types/components/actionLabel/ActionLabel.d.ts +23 -4
- package/dist/types/components/animations/Animations.d.ts +84 -5
- package/dist/types/components/avatar/Avatar.d.ts +29 -5
- package/dist/types/components/avatar/AvatarGroup.d.ts +19 -1
- package/dist/types/components/badge/Badge.d.ts +30 -1
- package/dist/types/components/breadcrumbs/Breadcrumbs.d.ts +31 -2
- package/dist/types/components/button/Button.d.ts +29 -6
- package/dist/types/components/button/ButtonGroup.d.ts +28 -3
- package/dist/types/components/button/ConfirmButton.d.ts +28 -3
- package/dist/types/components/button/ToggleButtonGroup.d.ts +39 -11
- package/dist/types/components/callout/Callout.d.ts +29 -3
- package/dist/types/components/card/Card.d.ts +42 -4
- package/dist/types/components/card/CardCover.d.ts +25 -0
- package/dist/types/components/card/FlipContent.d.ts +28 -0
- package/dist/types/components/chip/Chip.d.ts +24 -4
- package/dist/types/components/collapsable/Collapsable.d.ts +33 -3
- package/dist/types/components/divider/Divider.d.ts +30 -7
- package/dist/types/components/dropdown/Dropdown.d.ts +40 -1
- package/dist/types/components/dropdown/DropdownTool.d.ts +27 -1
- package/dist/types/components/empty/EmptyContent.d.ts +32 -3
- package/dist/types/components/icon/Icon.d.ts +32 -6
- package/dist/types/components/index.d.ts +2 -1
- package/dist/types/components/media/Media.d.ts +56 -2
- package/dist/types/components/menu/ContextMenu.d.ts +21 -2
- package/dist/types/components/menu/Menu.d.ts +29 -0
- package/dist/types/components/menu/MenuItem.d.ts +22 -2
- package/dist/types/components/menu/types.d.ts +3 -2
- package/dist/types/components/meter/Meter.d.ts +24 -0
- package/dist/types/components/navigator/Navigator.d.ts +29 -4
- package/dist/types/components/panel/Panel.d.ts +37 -1
- package/dist/types/components/panel/PanelGroup.d.ts +24 -0
- package/dist/types/components/panel/PanelStack.d.ts +31 -0
- package/dist/types/components/progress/ProgressBar.d.ts +23 -3
- package/dist/types/components/progress/ProgressCircle.d.ts +22 -3
- package/dist/types/components/tabpanel/Tab.d.ts +36 -5
- package/dist/types/components/tabpanel/TabPanel.d.ts +43 -1
- package/dist/types/context/Global.d.ts +24 -1
- package/dist/types/core/aside/Aside.d.ts +38 -1
- package/dist/types/core/boundary/ErrorBoundary.d.ts +18 -2
- package/dist/types/core/content/Content.d.ts +9 -3
- package/dist/types/core/headfoot/HeadFoot.d.ts +41 -9
- package/dist/types/core/page/Page.d.ts +29 -4
- package/dist/types/core/responsive/Responsive.d.ts +58 -3
- package/dist/types/core/section/Section.d.ts +16 -1
- package/dist/types/core/theme/ThemeProvider.d.ts +25 -5
- package/dist/types/core/viewport/Viewport.d.ts +15 -1
- package/dist/types/hooks/useControlledValue.d.ts +13 -2
- package/dist/types/hooks/useDebounce.d.ts +12 -0
- package/dist/types/hooks/useEffectDebugger.d.ts +49 -0
- package/dist/types/hooks/useIsDark.d.ts +8 -0
- package/dist/types/hooks/useIsRtl.d.ts +12 -0
- package/dist/types/hooks/useNavigator.d.ts +18 -1
- package/dist/types/hooks/useOverlayService.d.ts +28 -9
- package/dist/types/hooks/usePropToggle.d.ts +16 -5
- package/dist/types/hooks/useResize.d.ts +19 -1
- package/dist/types/hooks/useResizeObserver.d.ts +20 -1
- package/dist/types/hooks/useStorage.d.ts +38 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/overlays/alert/Alert.d.ts +2 -3
- package/dist/types/overlays/flyout/Flyout.d.ts +3 -2
- package/dist/types/overlays/message/Message.d.ts +2 -3
- package/dist/types/overlays/modal/Modal.d.ts +12 -3
- package/dist/types/overlays/toast/Toast.d.ts +2 -3
- package/dist/types/overlays/tooltip/Tooltip.d.ts +2 -2
- package/dist/types/types/icons.d.ts +10 -1
- package/dist/types/types/index.d.ts +26 -6
- package/dist/types/typography/Abbr.d.ts +34 -4
- package/dist/types/typography/Anchor.d.ts +42 -0
- package/dist/types/typography/Copy.d.ts +15 -0
- package/dist/types/typography/Mark.d.ts +22 -4
- package/dist/types/typography/Text.d.ts +27 -1
- package/dist/types/typography/Title.d.ts +16 -1
- package/dist/types/typography/index.d.ts +1 -1
- package/dist/types/utils/cloneElement.d.ts +2 -0
- package/dist/types/utils/getColor.d.ts +1 -4
- package/dist/types/utils/index.d.ts +1 -0
- package/package.json +11 -13
- package/src/components/actionLabel/ActionLabel.tsx +38 -11
- package/src/components/animations/Animations.tsx +118 -33
- package/src/components/avatar/Avatar.tsx +106 -91
- package/src/components/avatar/AvatarGroup.tsx +23 -5
- package/src/components/badge/Badge.tsx +41 -9
- package/src/components/breadcrumbs/Breadcrumbs.tsx +42 -9
- package/src/components/button/Button.tsx +50 -23
- package/src/components/button/ButtonGroup.tsx +33 -7
- package/src/components/button/ConfirmButton.tsx +41 -7
- package/src/components/button/ToggleButtonGroup.tsx +74 -47
- package/src/components/callout/Callout.tsx +55 -12
- package/src/components/card/Card.tsx +64 -15
- package/src/components/card/CardCover.tsx +36 -6
- package/src/components/card/FlipContent.tsx +90 -0
- package/src/components/chip/Chip.tsx +39 -13
- package/src/components/collapsable/Collapsable.tsx +38 -7
- package/src/components/divider/Divider.tsx +42 -16
- package/src/components/dropdown/Dropdown.tsx +46 -11
- package/src/components/dropdown/DropdownTool.tsx +30 -3
- package/src/components/empty/EmptyContent.tsx +47 -6
- package/src/components/icon/Icon.tsx +85 -68
- package/src/components/index.ts +2 -1
- package/src/components/media/Media.tsx +195 -106
- package/src/components/menu/ContextMenu.tsx +55 -11
- package/src/components/menu/Menu.tsx +85 -30
- package/src/components/menu/MenuItem.tsx +40 -9
- package/src/components/menu/types.ts +3 -2
- package/src/components/meter/Meter.tsx +26 -3
- package/src/components/navigator/Navigator.tsx +58 -7
- package/src/components/panel/Panel.tsx +47 -9
- package/src/components/panel/PanelGroup.tsx +25 -2
- package/src/components/panel/PanelStack.tsx +31 -0
- package/src/components/progress/ProgressBar.tsx +33 -14
- package/src/components/progress/ProgressCircle.tsx +29 -13
- package/src/components/tabpanel/Tab.tsx +112 -64
- package/src/components/tabpanel/TabPanel.tsx +67 -12
- package/src/context/Global.tsx +28 -1
- package/src/context/NotificationCenter.tsx +3 -3
- package/src/core/aside/Aside.tsx +50 -12
- package/src/core/boundary/ErrorBoundary.tsx +25 -8
- package/src/core/boundary/ErrorIcon.tsx +1 -2
- package/src/core/content/Content.tsx +23 -13
- package/src/core/headfoot/HeadFoot.tsx +42 -35
- package/src/core/page/Page.tsx +44 -6
- package/src/core/responsive/Responsive.tsx +66 -8
- package/src/core/section/Section.tsx +17 -3
- package/src/core/theme/ThemeProvider.tsx +35 -14
- package/src/core/viewport/Viewport.tsx +16 -3
- package/src/hooks/useControlledValue.tsx +12 -0
- package/src/hooks/useDebounce.ts +13 -1
- package/src/hooks/useEffectDebugger.ts +50 -2
- package/src/hooks/useIsDark.ts +8 -0
- package/src/hooks/useIsRtl.ts +12 -0
- package/src/hooks/useNavigator.tsx +28 -5
- package/src/hooks/useOverlayService.tsx +36 -6
- package/src/hooks/usePropToggle.ts +16 -5
- package/src/hooks/useResize.ts +19 -1
- package/src/hooks/useResizeObserver.ts +32 -9
- package/src/hooks/useStorage.ts +38 -0
- package/src/hotkeys/HotKeyLabel.tsx +1 -1
- package/src/hotkeys/HotKeyWrapper.tsx +3 -1
- package/src/index.ts +4 -0
- package/src/overlays/alert/Alert.tsx +28 -32
- package/src/overlays/flyout/Flyout.tsx +71 -84
- package/src/overlays/message/Message.tsx +10 -7
- package/src/overlays/modal/Modal.tsx +37 -15
- package/src/overlays/toast/Toast.tsx +18 -27
- package/src/overlays/tooltip/Tooltip.tsx +43 -18
- package/src/types/icons.ts +18 -3
- package/src/types/index.ts +268 -27
- package/src/typography/Abbr.tsx +44 -11
- package/src/typography/{Link.tsx → Anchor.tsx} +26 -14
- package/src/typography/Copy.tsx +15 -0
- package/src/typography/Mark.tsx +24 -10
- package/src/typography/Text.tsx +31 -13
- package/src/typography/Title.tsx +18 -7
- package/src/typography/index.ts +1 -1
- package/src/{overlays/tooltip/Tooltip.module.css → utils/cloneElement.ts} +21 -27
- package/src/utils/getColor.ts +1 -17
- package/src/utils/index.ts +1 -0
- package/css/index.js +0 -250
- package/css/tailwind/colors.ts +0 -158
- package/dist/cjs/components/actionLabel/ActionLabel.module.css +0 -1
- package/dist/cjs/components/animations/Animations.module.css +0 -1
- package/dist/cjs/components/avatar/Avatar.module.css +0 -1
- package/dist/cjs/components/badge/Badge.module.css +0 -1
- package/dist/cjs/components/breadcrumbs/Breadcrumbs.module.css +0 -1
- package/dist/cjs/components/button/Button.module.css +0 -1
- package/dist/cjs/components/card/Card.module.css +0 -1
- package/dist/cjs/components/chip/Chip.module.css +0 -1
- package/dist/cjs/components/collapsable/Collapsable.module.css +0 -1
- package/dist/cjs/components/dropdown/Dropdown.module.css +0 -1
- package/dist/cjs/components/icon/Icon.module.css +0 -1
- package/dist/cjs/components/media/Media.module.css +0 -1
- package/dist/cjs/components/menu/Menu.module.css +0 -1
- package/dist/cjs/components/meter/Meter.module.css +0 -1
- package/dist/cjs/components/panel/Panel.module.css +0 -1
- package/dist/cjs/components/progress/Progress.module.css +0 -1
- package/dist/cjs/components/tabpanel/TabPanel.module.css +0 -1
- package/dist/cjs/core/aside/Aside.module.css +0 -1
- package/dist/cjs/core/boundary/ErrorBoundary.module.css +0 -1
- package/dist/cjs/core/content/Content.module.css +0 -1
- package/dist/cjs/core/headfoot/HeadFoot.module.css +0 -1
- package/dist/cjs/core/page/Page.module.css +0 -1
- package/dist/cjs/core/responsive/Responsive.module.css +0 -1
- package/dist/cjs/core/section/Section.module.css +0 -1
- package/dist/cjs/core/theme/Theme.module.css +0 -1
- package/dist/cjs/core/viewport/Viewport.module.css +0 -1
- package/dist/cjs/overlays/alert/Alert.module.css +0 -1
- package/dist/cjs/overlays/flyout/Flyout.module.css +0 -1
- package/dist/cjs/overlays/message/Message.module.css +0 -1
- package/dist/cjs/overlays/modal/Modal.module.css +0 -1
- package/dist/cjs/overlays/toast/Toast.module.css +0 -1
- package/dist/cjs/overlays/tooltip/Tooltip.module.css +0 -1
- package/dist/cjs/typography/Typography.module.css +0 -1
- package/dist/esm/components/actionLabel/ActionLabel.module.css +0 -1
- package/dist/esm/components/animations/Animations.module.css +0 -1
- package/dist/esm/components/avatar/Avatar.module.css +0 -1
- package/dist/esm/components/badge/Badge.module.css +0 -1
- package/dist/esm/components/breadcrumbs/Breadcrumbs.module.css +0 -1
- package/dist/esm/components/button/Button.module.css +0 -1
- package/dist/esm/components/card/Card.module.css +0 -1
- package/dist/esm/components/chip/Chip.module.css +0 -1
- package/dist/esm/components/collapsable/Collapsable.module.css +0 -1
- package/dist/esm/components/dropdown/Dropdown.module.css +0 -1
- package/dist/esm/components/icon/Icon.module.css +0 -1
- package/dist/esm/components/media/Media.module.css +0 -1
- package/dist/esm/components/menu/Menu.module.css +0 -1
- package/dist/esm/components/meter/Meter.module.css +0 -1
- package/dist/esm/components/panel/Panel.module.css +0 -1
- package/dist/esm/components/progress/Progress.module.css +0 -1
- package/dist/esm/components/tabpanel/TabPanel.module.css +0 -1
- package/dist/esm/core/aside/Aside.module.css +0 -1
- package/dist/esm/core/boundary/ErrorBoundary.module.css +0 -1
- package/dist/esm/core/content/Content.module.css +0 -1
- package/dist/esm/core/headfoot/HeadFoot.module.css +0 -1
- package/dist/esm/core/page/Page.module.css +0 -1
- package/dist/esm/core/responsive/Responsive.module.css +0 -1
- package/dist/esm/core/section/Section.module.css +0 -1
- package/dist/esm/core/theme/Theme.module.css +0 -1
- package/dist/esm/core/viewport/Viewport.module.css +0 -1
- package/dist/esm/overlays/alert/Alert.module.css +0 -1
- package/dist/esm/overlays/flyout/Flyout.module.css +0 -1
- package/dist/esm/overlays/message/Message.module.css +0 -1
- package/dist/esm/overlays/modal/Modal.module.css +0 -1
- package/dist/esm/overlays/toast/Toast.module.css +0 -1
- package/dist/esm/overlays/tooltip/Tooltip.module.css +0 -1
- package/dist/esm/typography/Typography.module.css +0 -1
- package/dist/types/typography/Link.d.ts +0 -25
|
@@ -0,0 +1,530 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* React Fabric
|
|
3
|
+
* @version: 1.0.0
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
* The MIT License (MIT)
|
|
7
|
+
* Copyright (c) 2025 Adarsh Pastakia
|
|
8
|
+
*
|
|
9
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software
|
|
10
|
+
* and associated documentation files (the Software), to deal in the Software without restriction,
|
|
11
|
+
* including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
12
|
+
* and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
|
|
13
|
+
* subject to the following conditions:
|
|
14
|
+
*
|
|
15
|
+
* The above copyright notice and this permission notice shall be included in all copies or substantial
|
|
16
|
+
* portions of the Software.
|
|
17
|
+
*
|
|
18
|
+
* THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
|
|
19
|
+
* TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
20
|
+
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
21
|
+
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
@keyframes cardpulse {
|
|
25
|
+
50% {
|
|
26
|
+
opacity: 0.5;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@keyframes bgprogress {
|
|
31
|
+
0% {
|
|
32
|
+
background-position-x: 0;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
100% {
|
|
36
|
+
background-position-x: 1rem;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@variant dark (&:where([data-color-scheme="dark"], [data-color-scheme="dark"] *));
|
|
41
|
+
|
|
42
|
+
@utility area-* {
|
|
43
|
+
grid-area: --value([ *]);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
@utility area-content {
|
|
47
|
+
grid-area: content;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@utility area-head {
|
|
51
|
+
grid-area: head;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
@utility area-foot {
|
|
55
|
+
grid-area: foot;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
@utility area-body {
|
|
59
|
+
grid-area: body;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
@utility area-side-s {
|
|
63
|
+
grid-area: side-s;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
@utility area-side-e {
|
|
67
|
+
grid-area: side-e;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
@utility overflow-wrap {
|
|
71
|
+
text-wrap: wrap;
|
|
72
|
+
word-break: normal;
|
|
73
|
+
overflow-wrap: anywhere;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
@utility fixed-numbers {
|
|
77
|
+
font-variant-numeric: tabular-nums;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
@utility mixed-lang {
|
|
81
|
+
unicode-bidi: plaintext;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
@utility flex-auto {
|
|
85
|
+
flex: 0 0 auto;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
@utility flex-full {
|
|
89
|
+
flex: 1 1 100%;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
@utility font-smallcaps {
|
|
93
|
+
font-variant: small-caps;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
@utility scroll-hide {
|
|
97
|
+
&::-webkit-scrollbar {
|
|
98
|
+
width: 0;
|
|
99
|
+
height: 0;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
@utility scroll-thin {
|
|
104
|
+
&::-webkit-scrollbar {
|
|
105
|
+
width: 3px;
|
|
106
|
+
height: 3px;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
@utility sectioned {
|
|
111
|
+
display: grid;
|
|
112
|
+
grid-template: "head head head" auto "side-s content side-e" 1fr "foot foot foot" auto / auto 1fr auto;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
@utility scroll-snap-start {
|
|
116
|
+
scroll-snap-type: both proximity;
|
|
117
|
+
|
|
118
|
+
& > * {
|
|
119
|
+
scroll-snap-align: start;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
@utility scroll-snap-center {
|
|
124
|
+
scroll-snap-type: both proximity;
|
|
125
|
+
|
|
126
|
+
& > * {
|
|
127
|
+
scroll-snap-align: center;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
@utility scroll-snap-end {
|
|
132
|
+
scroll-snap-type: both proximity;
|
|
133
|
+
|
|
134
|
+
& > * {
|
|
135
|
+
scroll-snap-align: end;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
@utility break-words {
|
|
140
|
+
word-break: break-word;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
@utility outline-thin {
|
|
144
|
+
outline-width: 0.5px;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
@utility link {
|
|
148
|
+
cursor: pointer;
|
|
149
|
+
user-select: none;
|
|
150
|
+
|
|
151
|
+
font-weight: 500;
|
|
152
|
+
color: var(--color-accent-600);
|
|
153
|
+
text-decoration: underline dotted;
|
|
154
|
+
|
|
155
|
+
&:hover {
|
|
156
|
+
text-decoration: underline solid;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
@utility bg-odd {
|
|
161
|
+
background-color: color-mix(
|
|
162
|
+
in oklab,
|
|
163
|
+
var(--fabric-bg) 99%,
|
|
164
|
+
var(--color-tint)
|
|
165
|
+
);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
@utility bg-even {
|
|
169
|
+
background-color: color-mix(
|
|
170
|
+
in oklab,
|
|
171
|
+
var(--fabric-bg) 92%,
|
|
172
|
+
var(--color-tint)
|
|
173
|
+
);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
@utility bg-alternate {
|
|
177
|
+
& > :nth-child(even) {
|
|
178
|
+
background-color: color-mix(
|
|
179
|
+
in oklab,
|
|
180
|
+
var(--fabric-bg) 92%,
|
|
181
|
+
var(--color-tint)
|
|
182
|
+
);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
& > :nth-child(odd) {
|
|
186
|
+
background-color: color-mix(
|
|
187
|
+
in oklab,
|
|
188
|
+
var(--fabric-bg) 99%,
|
|
189
|
+
var(--color-tint)
|
|
190
|
+
);
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
@utility bg-base {
|
|
195
|
+
background-color: var(--bg-color-base);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
@utility bg-content {
|
|
199
|
+
background-color: var(--bg-color-content);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
@utility bg-dimmed {
|
|
203
|
+
background-color: var(--bg-color-dimmed);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
@utility bg-muted {
|
|
207
|
+
background-color: var(--bg-color-muted);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
@utility bg-gray {
|
|
211
|
+
background-color: var(--bg-color-gray);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
@utility bg-dark {
|
|
215
|
+
background-color: var(--bg-color-dark);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
@utility bg-light {
|
|
219
|
+
background-color: var(--bg-color-light);
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
@utility bg-invert {
|
|
223
|
+
background-color: var(--bg-color-invert);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
@utility text-reset {
|
|
227
|
+
color: var(--text-color-base);
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
@utility text-dimmed {
|
|
231
|
+
color: var(--text-color-dimmed);
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
@utility text-muted {
|
|
235
|
+
color: var(--text-color-muted);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
@utility text-gray {
|
|
239
|
+
color: var(--text-color-gray);
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
@utility text-dark {
|
|
243
|
+
color: var(--text-color-dark);
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
@utility text-light {
|
|
247
|
+
color: var(--text-color-light);
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
@utility text-invert {
|
|
251
|
+
color: var(--text-color-invert);
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
@utility border-base {
|
|
255
|
+
border-color: var(--border-color-base);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
@utility border-dimmed {
|
|
259
|
+
border-color: var(--border-color-dimmed);
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
@utility border-muted {
|
|
263
|
+
border-color: var(--border-color-muted);
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
@utility border-gray {
|
|
267
|
+
border-color: var(--color-tint);
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
@utility border-dark {
|
|
271
|
+
border-color: var(--border-color-dark);
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
@utility border-light {
|
|
275
|
+
border-color: var(--border-color-light);
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
@utility outline-base {
|
|
279
|
+
outline-color: var(--border-color-base);
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
@utility outline-dimmed {
|
|
283
|
+
outline-color: var(--border-color-dimmed);
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
@utility outline-muted {
|
|
287
|
+
outline-color: var(--border-color-muted);
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
@utility outline-gray {
|
|
291
|
+
outline-color: var(--color-tint);
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
@utility outline-dark {
|
|
295
|
+
outline-color: var(--border-color-dark);
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
@utility outline-light {
|
|
299
|
+
outline-color: var(--border-color-light);
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
@utility stroke-base {
|
|
303
|
+
stroke: var(--border-color-base);
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
@utility stroke-dimmed {
|
|
307
|
+
stroke: var(--border-color-dimmed);
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
@utility stroke-muted {
|
|
311
|
+
stroke: var(--border-color-muted);
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
@utility stroke-gray {
|
|
315
|
+
stroke: var(--color-tint);
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
@utility stroke-dark {
|
|
319
|
+
stroke: var(--border-color-dark);
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
@utility stroke-light {
|
|
323
|
+
stroke: var(--border-color-light);
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
@utility fill-base {
|
|
327
|
+
fill: var(--bg-color-base);
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
@utility fill-dimmed {
|
|
331
|
+
fill: var(--bg-color-dimmed);
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
@utility fill-muted {
|
|
335
|
+
fill: var(--bg-color-muted);
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
@utility fill-gray {
|
|
339
|
+
fill: var(--bg-color-gray);
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
@utility fill-dark {
|
|
343
|
+
fill: var(--bg-color-dark);
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
@utility fill-light {
|
|
347
|
+
fill: var(--bg-color-light);
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
@utility fill-invert {
|
|
351
|
+
fill: var(--bg-color-invert);
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
@utility gap-* {
|
|
355
|
+
&:where(.fabric-row) {
|
|
356
|
+
--gutter: calc(var(--spacing) * --value(integer));
|
|
357
|
+
|
|
358
|
+
gap: 0 !important;
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
@utility span-* {
|
|
363
|
+
flex: 0 1 calc((--value(integer) / 12) * 100% - var(--gutter, 0px));
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
@media (min-width: theme(screens.xs)) {
|
|
367
|
+
.hide-xs {
|
|
368
|
+
@apply hidden;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
@media (max-width: theme(screens.sm)) {
|
|
372
|
+
.hide-xs-only {
|
|
373
|
+
@apply hidden;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
.show-sm-only,
|
|
377
|
+
.show-md-only,
|
|
378
|
+
.show-lg-only,
|
|
379
|
+
.show-xl-only,
|
|
380
|
+
.show-2xl-only {
|
|
381
|
+
@apply hidden;
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
@media (min-width: theme(screens.sm)) {
|
|
387
|
+
.hide-sm {
|
|
388
|
+
@apply hidden;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
@media (max-width: theme(screens.md)) {
|
|
392
|
+
.hide-sm-only {
|
|
393
|
+
@apply hidden;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
.show-xs-only,
|
|
397
|
+
.show-md-only,
|
|
398
|
+
.show-lg-only,
|
|
399
|
+
.show-xl-only,
|
|
400
|
+
.show-2xl-only {
|
|
401
|
+
@apply hidden;
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
@media (min-width: theme(screens.md)) {
|
|
407
|
+
.hide-md {
|
|
408
|
+
@apply hidden;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
@media (max-width: theme(screens.lg)) {
|
|
412
|
+
.hide-md-only {
|
|
413
|
+
@apply hidden;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
.show-xs-only,
|
|
417
|
+
.show-sm-only,
|
|
418
|
+
.show-lg-only,
|
|
419
|
+
.show-xl-only,
|
|
420
|
+
.show-2xl-only {
|
|
421
|
+
@apply hidden;
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
@media (min-width: theme(screens.lg)) {
|
|
427
|
+
.hide-lg {
|
|
428
|
+
@apply hidden;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
@media (max-width: theme(screens.xl)) {
|
|
432
|
+
.hide-lg-only {
|
|
433
|
+
@apply hidden;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
.show-xs-only,
|
|
437
|
+
.show-sm-only,
|
|
438
|
+
.show-md-only,
|
|
439
|
+
.show-xl-only,
|
|
440
|
+
.show-2xl-only {
|
|
441
|
+
@apply hidden;
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
@media (min-width: theme(screens.xl)) {
|
|
447
|
+
.hide-xl {
|
|
448
|
+
@apply hidden;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
@media (max-width: theme(screens.2xl)) {
|
|
452
|
+
.hide-xl-only {
|
|
453
|
+
@apply hidden;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
.show-xs-only,
|
|
457
|
+
.show-sm-only,
|
|
458
|
+
.show-md-only,
|
|
459
|
+
.show-lg-only,
|
|
460
|
+
.show-2xl-only {
|
|
461
|
+
@apply hidden;
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
@media (min-width: theme(screens.2xl)) {
|
|
467
|
+
.hide-2xl,
|
|
468
|
+
.hide-2xl-only {
|
|
469
|
+
@apply hidden;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
.show-xs-only,
|
|
473
|
+
.show-sm-only,
|
|
474
|
+
.show-md-only,
|
|
475
|
+
.show-lg-only,
|
|
476
|
+
.show-xl-only {
|
|
477
|
+
@apply hidden;
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
@media (max-width: theme(screens.xs)) {
|
|
482
|
+
.show-xs,
|
|
483
|
+
.show-sm,
|
|
484
|
+
.show-md,
|
|
485
|
+
.show-lg,
|
|
486
|
+
.show-xl,
|
|
487
|
+
.show-2xl {
|
|
488
|
+
@apply hidden;
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
@media (max-width: theme(screens.sm)) {
|
|
493
|
+
.show-sm,
|
|
494
|
+
.show-md,
|
|
495
|
+
.show-lg,
|
|
496
|
+
.show-xl,
|
|
497
|
+
.show-2xl {
|
|
498
|
+
@apply hidden;
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
@media (max-width: theme(screens.md)) {
|
|
503
|
+
.show-md,
|
|
504
|
+
.show-lg,
|
|
505
|
+
.show-xl,
|
|
506
|
+
.show-2xl {
|
|
507
|
+
@apply hidden;
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
@media (max-width: theme(screens.lg)) {
|
|
512
|
+
.show-lg,
|
|
513
|
+
.show-xl,
|
|
514
|
+
.show-2xl {
|
|
515
|
+
@apply hidden;
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
@media (max-width: theme(screens.xl)) {
|
|
520
|
+
.show-xl,
|
|
521
|
+
.show-2xl {
|
|
522
|
+
@apply hidden;
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
@media (max-width: theme(screens.2xl)) {
|
|
527
|
+
.show-2xl {
|
|
528
|
+
@apply hidden;
|
|
529
|
+
}
|
|
530
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* React Fabric
|
|
3
|
+
* @version: 1.0.0
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
* The MIT License (MIT)
|
|
7
|
+
* Copyright (c) 2024 Adarsh Pastakia
|
|
8
|
+
*
|
|
9
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software
|
|
10
|
+
* and associated documentation files (the "Software"), to deal in the Software without restriction,
|
|
11
|
+
* including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
12
|
+
* and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
|
|
13
|
+
* subject to the following conditions:
|
|
14
|
+
*
|
|
15
|
+
* The above copyright notice and this permission notice shall be included in all copies or substantial
|
|
16
|
+
* portions of the Software.
|
|
17
|
+
*
|
|
18
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
|
|
19
|
+
* TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
20
|
+
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
21
|
+
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
@import "./_colors.css";
|
|
25
|
+
@import "./_utilities.css";
|
|
26
|
+
|
|
27
|
+
@theme static {
|
|
28
|
+
--font-sans: "Avenir Next", Avenir, "Noto Sans", Roboto, "Helvetica Neue",
|
|
29
|
+
"Segoe UI", Arial, sans-serif, BlinkMacSystemFont, "Apple Color Emoji",
|
|
30
|
+
"Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
|
31
|
+
--font-serif: "Noto Serif", Georgia, Cambria, "Times New Roman", Times, serif;
|
|
32
|
+
--font-mono: "Noto Sans Mono", Menlo, Monaco, Consolas, "Liberation Mono",
|
|
33
|
+
"Courier New", monospace;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
@theme static {
|
|
37
|
+
--animate-pulse: cardpulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
|
38
|
+
--animate-progress: bgprogress 750ms linear infinite;
|
|
39
|
+
--breakpoint-xs: 320px;
|
|
40
|
+
--aspect-portrait: 3 / 4;
|
|
41
|
+
--aspect-screen: 4 / 3;
|
|
42
|
+
--radius: var(--rounding);
|
|
43
|
+
--radius-capped: var(--rounding-cap);
|
|
44
|
+
--shadow-paper: 0 1px 3px 0 var(--fabric-shadow);
|
|
45
|
+
}
|
|
@@ -5,15 +5,33 @@ var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProp
|
|
|
5
5
|
var classNames = require('classnames');
|
|
6
6
|
var react = require('react');
|
|
7
7
|
var ButtonGroup = require('../button/ButtonGroup.js');
|
|
8
|
-
var ActionLabel_module = require('./ActionLabel.module.css');
|
|
9
8
|
var jsxRuntime = require('react/jsx-runtime');
|
|
10
9
|
|
|
11
10
|
var _excluded = ["children", "className", "align", "actions", "disabled"];
|
|
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
|
/**
|
|
15
|
-
* A
|
|
16
|
-
* useful
|
|
14
|
+
* A label with action buttons that can be aligned to the start or end.
|
|
15
|
+
* This component is useful for displaying a label with associated actions, such as buttons, that can be aligned based on the design requirements.
|
|
16
|
+
* It automatically calculates the width of the action buttons to ensure that the label text does not overflow the container.
|
|
17
|
+
* It uses CSS variables to manage the width of the label text dynamically based on the action buttons' width.
|
|
18
|
+
* This component is designed to be flexible and can be used in various contexts where a label with actions is needed.
|
|
19
|
+
* It supports custom alignment, disabled states, and can be easily styled with additional CSS classes.
|
|
20
|
+
*
|
|
21
|
+
* @param {ActionLabelProps} props - The properties for the ActionLabel component.
|
|
22
|
+
* @returns {JSX.Element} The rendered ActionLabel component.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```jsx
|
|
26
|
+
* <ActionLabel
|
|
27
|
+
* actions={[<Button>Action 1</Button>, <Button>Action 2</Button>]}
|
|
28
|
+
* align="end"
|
|
29
|
+
* >
|
|
30
|
+
* Label Text
|
|
31
|
+
* </ActionLabel>
|
|
32
|
+
* ```
|
|
33
|
+
*
|
|
34
|
+
* @see {@link https://adarshpastakia.github.io/react-fabric/?path=/docs/core-components-action-label--docs} for more details.
|
|
17
35
|
*/
|
|
18
36
|
var ActionLabel = function ActionLabel(_ref) {
|
|
19
37
|
var children = _ref.children,
|
|
@@ -22,9 +40,8 @@ var ActionLabel = function ActionLabel(_ref) {
|
|
|
22
40
|
actions = _ref.actions,
|
|
23
41
|
disabled = _ref.disabled,
|
|
24
42
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
*/
|
|
43
|
+
// Calculate the width of the action buttons to set a CSS variable
|
|
44
|
+
// This is used to ensure the label text does not overflow the container
|
|
28
45
|
var calculateBasis = react.useCallback(function (el) {
|
|
29
46
|
if (el) {
|
|
30
47
|
var clone = el.cloneNode(true);
|
|
@@ -39,12 +56,13 @@ var ActionLabel = function ActionLabel(_ref) {
|
|
|
39
56
|
}
|
|
40
57
|
}, []);
|
|
41
58
|
return /*#__PURE__*/jsxRuntime.jsxs("div", _objectSpread(_objectSpread({
|
|
42
|
-
className: classNames(className,
|
|
59
|
+
className: classNames(className, "fabric-actionLabel", "flex overflow-hidden gap-1 items-center cursor-default select-none"),
|
|
43
60
|
"data-disabled": disabled
|
|
44
61
|
}, rest), {}, {
|
|
45
62
|
children: [/*#__PURE__*/jsxRuntime.jsx(ButtonGroup.ButtonGroup, {
|
|
46
63
|
ref: calculateBasis,
|
|
47
|
-
|
|
64
|
+
"data-inner-clickable": true,
|
|
65
|
+
className: classNames("fabric-actions", "overflow-hidden flex-content", align === "end" && "order-2"),
|
|
48
66
|
children: actions
|
|
49
67
|
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
50
68
|
className: "flex-initial truncate",
|