@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
|
@@ -21,14 +21,14 @@
|
|
|
21
21
|
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
22
22
|
*/
|
|
23
23
|
|
|
24
|
-
@layer
|
|
25
|
-
.buttonWrapper {
|
|
26
|
-
--color:
|
|
24
|
+
@layer components {
|
|
25
|
+
.fabric-buttonWrapper {
|
|
26
|
+
--color: var(--color-primary-500);
|
|
27
27
|
|
|
28
28
|
font-size: 1rem;
|
|
29
29
|
border-radius: var(--rounding);
|
|
30
30
|
|
|
31
|
-
& .button {
|
|
31
|
+
& .fabric-button {
|
|
32
32
|
color: var(--text);
|
|
33
33
|
|
|
34
34
|
background-color: var(--bg);
|
|
@@ -36,10 +36,8 @@
|
|
|
36
36
|
border-radius: inherit;
|
|
37
37
|
outline: 1px solid var(--outline);
|
|
38
38
|
|
|
39
|
-
&.spinOnHover:hover .buttonIcon {
|
|
40
|
-
|
|
41
|
-
animation: spin 2s linear infinite;
|
|
42
|
-
}
|
|
39
|
+
&.spinOnHover:hover .fabric-buttonIcon {
|
|
40
|
+
animation: spin 2s linear infinite;
|
|
43
41
|
}
|
|
44
42
|
|
|
45
43
|
& > * {
|
|
@@ -57,11 +55,7 @@
|
|
|
57
55
|
}
|
|
58
56
|
}
|
|
59
57
|
|
|
60
|
-
& .
|
|
61
|
-
border-radius: 9999px;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
& .buttonLabel {
|
|
58
|
+
& .fabric-buttonLabel {
|
|
65
59
|
order: 1;
|
|
66
60
|
padding: 0.5em 1em;
|
|
67
61
|
line-height: 1;
|
|
@@ -71,23 +65,23 @@
|
|
|
71
65
|
}
|
|
72
66
|
}
|
|
73
67
|
|
|
74
|
-
& .buttonChild {
|
|
68
|
+
& .fabric-buttonChild {
|
|
75
69
|
order: 1;
|
|
76
70
|
padding: 0.5em;
|
|
77
71
|
line-height: 1;
|
|
78
72
|
}
|
|
79
73
|
|
|
80
|
-
& .buttonIcon {
|
|
74
|
+
& .fabric-buttonIcon {
|
|
81
75
|
padding: 0.3889em;
|
|
82
76
|
font-size: 1.125em;
|
|
83
77
|
}
|
|
84
78
|
|
|
85
|
-
&
|
|
79
|
+
& .hotkey-label {
|
|
86
80
|
align-self: center;
|
|
87
81
|
order: 3;
|
|
88
82
|
}
|
|
89
83
|
|
|
90
|
-
& .altIcon {
|
|
84
|
+
& .fabric-altIcon {
|
|
91
85
|
align-self: center;
|
|
92
86
|
order: 4;
|
|
93
87
|
padding: 0.125em 0.5em;
|
|
@@ -100,8 +94,8 @@
|
|
|
100
94
|
}
|
|
101
95
|
}
|
|
102
96
|
|
|
103
|
-
.buttonGroup {
|
|
104
|
-
& > .buttonWrapper {
|
|
97
|
+
.fabric-buttonGroup {
|
|
98
|
+
& > .fabric-buttonWrapper {
|
|
105
99
|
flex: 0 1 1em;
|
|
106
100
|
}
|
|
107
101
|
|
|
@@ -111,8 +105,8 @@
|
|
|
111
105
|
}
|
|
112
106
|
}
|
|
113
107
|
|
|
114
|
-
@layer
|
|
115
|
-
.buttonWrapper {
|
|
108
|
+
@layer utilities {
|
|
109
|
+
.fabric-buttonWrapper {
|
|
116
110
|
&[data-size="xs"] {
|
|
117
111
|
font-size: 0.625rem;
|
|
118
112
|
}
|
|
@@ -134,49 +128,56 @@
|
|
|
134
128
|
}
|
|
135
129
|
}
|
|
136
130
|
|
|
137
|
-
.button {
|
|
138
|
-
--bg: color-mix(in lab, var(--fabric-bg) 99%, var(--tint));
|
|
131
|
+
.fabric-button {
|
|
132
|
+
--bg: color-mix(in lab, var(--fabric-bg) 99%, var(--color-tint));
|
|
139
133
|
--outline: color-mix(in lab, var(--bg) 90%, var(--fabric-text));
|
|
140
134
|
--text: color-mix(in lab, var(--color) 80%, var(--fabric-text));
|
|
141
135
|
--bg-hover: color-mix(in lab, var(--color) 18%, var(--fabric-bg));
|
|
142
136
|
--bg-click: color-mix(in lab, var(--color) 25%, var(--fabric-bg));
|
|
143
|
-
--bg-active: color-mix(in lab, var(--color)
|
|
137
|
+
--bg-active: color-mix(in lab, var(--color) 24%, var(--fabric-bg));
|
|
144
138
|
|
|
145
139
|
&[data-color="accent"] {
|
|
146
|
-
--color:
|
|
140
|
+
--color: var(--color-accent-500);
|
|
147
141
|
}
|
|
148
142
|
|
|
149
143
|
&[data-color="info"] {
|
|
150
|
-
--color:
|
|
144
|
+
--color: var(--color-info-500);
|
|
151
145
|
}
|
|
152
146
|
|
|
153
147
|
&[data-color="danger"] {
|
|
154
|
-
--color:
|
|
148
|
+
--color: var(--color-danger-500);
|
|
155
149
|
}
|
|
156
150
|
|
|
157
151
|
&[data-color="success"] {
|
|
158
|
-
--color:
|
|
152
|
+
--color: var(--color-success-500);
|
|
159
153
|
}
|
|
160
154
|
|
|
161
155
|
&[data-color="warning"] {
|
|
162
|
-
--color:
|
|
156
|
+
--color: var(--color-warning-500);
|
|
163
157
|
}
|
|
164
158
|
|
|
165
159
|
&[data-variant="outline"] {
|
|
166
160
|
--outline: var(--color);
|
|
167
161
|
}
|
|
168
162
|
|
|
163
|
+
&[data-variant="soft"] {
|
|
164
|
+
--bg: color-mix(in lab, var(--color) 25%, var(--fabric-bg));
|
|
165
|
+
--bg-hover: color-mix(in lab, var(--color) 35%, var(--fabric-bg));
|
|
166
|
+
--bg-click: color-mix(in lab, var(--color) 50%, var(--color-tint-50));
|
|
167
|
+
--bg-active: color-mix(in lab, var(--color) 50%, var(--color-tint-50));
|
|
168
|
+
}
|
|
169
|
+
|
|
169
170
|
&[data-variant="solid"] {
|
|
170
171
|
--outline: var(--color);
|
|
171
172
|
--bg: color-mix(in lab, var(--color) 96%, var(--fabric-text));
|
|
172
|
-
--text:
|
|
173
|
+
--text: var(--color-white);
|
|
173
174
|
--bg-hover: color-mix(in lab, var(--color) 90%, var(--fabric-bg));
|
|
174
|
-
--bg-click: color-mix(in lab, var(--color) 80%,
|
|
175
|
-
--bg-active: color-mix(in lab, var(--color) 70%,
|
|
175
|
+
--bg-click: color-mix(in lab, var(--color) 80%, var(--color-black));
|
|
176
|
+
--bg-active: color-mix(in lab, var(--color) 70%, var(--color-black));
|
|
176
177
|
|
|
177
|
-
&
|
|
178
|
-
color:
|
|
179
|
-
background-color:
|
|
178
|
+
& .hotkey-label {
|
|
179
|
+
color: --alpha(var(--color-white) / 70%);
|
|
180
|
+
background-color: --alpha(var(--bg-color-dark) / 30%);
|
|
180
181
|
}
|
|
181
182
|
}
|
|
182
183
|
|
|
@@ -189,47 +190,39 @@
|
|
|
189
190
|
}
|
|
190
191
|
|
|
191
192
|
&[data-color="invert"] {
|
|
192
|
-
--bg:
|
|
193
|
-
--text: color-mix(in lab, var(--color) 90%,
|
|
194
|
-
--bg-hover: color-mix(
|
|
195
|
-
|
|
196
|
-
var(--color) 15%,
|
|
197
|
-
theme(backgroundColor.invert)
|
|
198
|
-
);
|
|
199
|
-
--bg-click: color-mix(
|
|
200
|
-
in lab,
|
|
201
|
-
var(--color) 35%,
|
|
202
|
-
theme(backgroundColor.invert)
|
|
203
|
-
);
|
|
193
|
+
--bg: var(--bg-color-invert);
|
|
194
|
+
--text: color-mix(in lab, var(--color) 90%, var(--text-color-invert));
|
|
195
|
+
--bg-hover: color-mix(in lab, var(--color) 15%, var(--bg-color-invert));
|
|
196
|
+
--bg-click: color-mix(in lab, var(--color) 35%, var(--bg-color-invert));
|
|
204
197
|
}
|
|
205
198
|
}
|
|
206
199
|
|
|
207
|
-
.buttonIcon[data-align="start"] {
|
|
200
|
+
.fabric-buttonIcon[data-align="start"] {
|
|
208
201
|
order: 0;
|
|
209
202
|
|
|
210
|
-
& + .buttonLabel[data-colored-icon="false"] {
|
|
203
|
+
& + .fabric-buttonLabel[data-colored-icon="false"] {
|
|
211
204
|
margin-inline-start: -1em;
|
|
212
205
|
}
|
|
213
206
|
}
|
|
214
207
|
|
|
215
|
-
.buttonIcon[data-align="end"] {
|
|
208
|
+
.fabric-buttonIcon[data-align="end"] {
|
|
216
209
|
order: 2;
|
|
217
210
|
|
|
218
|
-
& ~ .buttonLabel[data-colored-icon="false"] {
|
|
211
|
+
& ~ .fabric-buttonLabel[data-colored-icon="false"] {
|
|
219
212
|
margin-inline-end: -1em;
|
|
220
213
|
}
|
|
221
214
|
}
|
|
222
215
|
}
|
|
223
216
|
|
|
224
|
-
@layer
|
|
225
|
-
.buttonWrapper {
|
|
217
|
+
@layer variants {
|
|
218
|
+
.fabric-buttonWrapper {
|
|
226
219
|
height: unset;
|
|
227
220
|
padding: unset;
|
|
228
221
|
|
|
229
222
|
&[data-disabled="true"] {
|
|
230
223
|
cursor: not-allowed;
|
|
231
224
|
|
|
232
|
-
& .button {
|
|
225
|
+
& .fabric-button {
|
|
233
226
|
pointer-events: none;
|
|
234
227
|
opacity: 0.5;
|
|
235
228
|
background-image: var(--active-gradient);
|
|
@@ -239,34 +232,31 @@
|
|
|
239
232
|
&[data-loading="true"] {
|
|
240
233
|
cursor: wait;
|
|
241
234
|
|
|
242
|
-
& .button {
|
|
235
|
+
& .fabric-button {
|
|
243
236
|
pointer-events: none;
|
|
244
237
|
background-image: var(--progress-gradient);
|
|
245
238
|
background-size: 1em 1em;
|
|
246
|
-
|
|
247
|
-
& :global {
|
|
248
|
-
animation: bgprogress 750ms linear infinite;
|
|
249
|
-
}
|
|
239
|
+
animation: bgprogress 750ms linear infinite;
|
|
250
240
|
}
|
|
251
241
|
|
|
252
|
-
& .button:not([data-variant="solid"]) {
|
|
242
|
+
& .fabric-button:not([data-variant="solid"]) {
|
|
253
243
|
background-color: color-mix(in lab, var(--color) 15%, var(--fabric-bg));
|
|
254
244
|
}
|
|
255
245
|
}
|
|
256
246
|
|
|
257
|
-
|
|
258
|
-
color:
|
|
259
|
-
outline: 1px dashed
|
|
247
|
+
&.btn-dashed > .fabric-button {
|
|
248
|
+
color: var(--color-tint-600);
|
|
249
|
+
outline: 1px dashed var(--color-tint-600);
|
|
260
250
|
|
|
261
251
|
&[data-invalid="true"] {
|
|
262
|
-
color:
|
|
263
|
-
background-color:
|
|
264
|
-
outline: 1px dashed
|
|
252
|
+
color: var(--color-danger-600);
|
|
253
|
+
background-color: var(--color-danger-100);
|
|
254
|
+
outline: 1px dashed var(--color-danger-600);
|
|
265
255
|
}
|
|
266
256
|
}
|
|
267
257
|
}
|
|
268
258
|
|
|
269
|
-
.button {
|
|
259
|
+
.fabric-button {
|
|
270
260
|
--tw-ring-color: var(--color);
|
|
271
261
|
|
|
272
262
|
&:hover {
|
|
@@ -277,8 +267,8 @@
|
|
|
277
267
|
background-color: var(--bg-click);
|
|
278
268
|
background-image: var(--active-gradient);
|
|
279
269
|
|
|
280
|
-
.buttonIcon,
|
|
281
|
-
.buttonLabel {
|
|
270
|
+
.fabric-buttonIcon,
|
|
271
|
+
.fabric-buttonLabel {
|
|
282
272
|
transform: translateY(1px);
|
|
283
273
|
}
|
|
284
274
|
}
|
|
@@ -299,12 +289,12 @@
|
|
|
299
289
|
}
|
|
300
290
|
}
|
|
301
291
|
|
|
302
|
-
.buttonGroup {
|
|
303
|
-
& > .buttonWrapper {
|
|
292
|
+
.fabric-buttonGroup {
|
|
293
|
+
& > .fabric-buttonWrapper {
|
|
304
294
|
margin: 0;
|
|
305
295
|
|
|
306
|
-
& .button[data-variant="link"] {
|
|
307
|
-
--outline:
|
|
296
|
+
& .fabric-button[data-variant="link"] {
|
|
297
|
+
--outline: var(--bg-color-base);
|
|
308
298
|
}
|
|
309
299
|
}
|
|
310
300
|
|
|
@@ -317,7 +307,7 @@
|
|
|
317
307
|
inset-block: 5%;
|
|
318
308
|
inset-inline-start: -0.5px;
|
|
319
309
|
|
|
320
|
-
border-inline-start: 0.5px solid
|
|
310
|
+
border-inline-start: 0.5px solid var(--border-color-base);
|
|
321
311
|
}
|
|
322
312
|
}
|
|
323
313
|
|
|
@@ -329,12 +319,12 @@
|
|
|
329
319
|
}
|
|
330
320
|
}
|
|
331
321
|
|
|
332
|
-
& > :not(:last-child) .button {
|
|
322
|
+
& > :not(:last-child) .fabric-button {
|
|
333
323
|
border-start-end-radius: 0;
|
|
334
324
|
border-end-end-radius: 0;
|
|
335
325
|
}
|
|
336
326
|
|
|
337
|
-
& > :not(:first-child) .button {
|
|
327
|
+
& > :not(:first-child) .fabric-button {
|
|
338
328
|
border-start-start-radius: 0;
|
|
339
329
|
border-end-start-radius: 0;
|
|
340
330
|
}
|
|
@@ -349,7 +339,7 @@
|
|
|
349
339
|
inset-block-start: -0.5px;
|
|
350
340
|
inset-inline: 5%;
|
|
351
341
|
|
|
352
|
-
border-block-start: 0.5px solid
|
|
342
|
+
border-block-start: 0.5px solid var(--border-color-base);
|
|
353
343
|
}
|
|
354
344
|
}
|
|
355
345
|
|
|
@@ -361,12 +351,12 @@
|
|
|
361
351
|
}
|
|
362
352
|
}
|
|
363
353
|
|
|
364
|
-
& > :not(:last-child) .button {
|
|
354
|
+
& > :not(:last-child) .fabric-button {
|
|
365
355
|
border-end-start-radius: 0;
|
|
366
356
|
border-end-end-radius: 0;
|
|
367
357
|
}
|
|
368
358
|
|
|
369
|
-
& > :not(:first-child) .button {
|
|
359
|
+
& > :not(:first-child) .fabric-button {
|
|
370
360
|
border-start-start-radius: 0;
|
|
371
361
|
border-start-end-radius: 0;
|
|
372
362
|
}
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
22
22
|
*/
|
|
23
23
|
|
|
24
|
-
@layer
|
|
25
|
-
.cardWrapper.selected {
|
|
24
|
+
@layer components {
|
|
25
|
+
.fabric-cardWrapper.selected {
|
|
26
26
|
&::before {
|
|
27
27
|
content: "";
|
|
28
28
|
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
top: -4px;
|
|
32
32
|
inset-inline-start: -4px;
|
|
33
33
|
|
|
34
|
-
border-top: 1rem solid
|
|
34
|
+
border-top: 1rem solid var(--color-accent-500);
|
|
35
35
|
border-bottom: 1rem solid transparent;
|
|
36
|
-
border-inline-start: 1rem solid
|
|
36
|
+
border-inline-start: 1rem solid var(--color-accent-500);
|
|
37
37
|
border-inline-end: 1rem solid transparent;
|
|
38
38
|
border-start-start-radius: var(--rounding-cap);
|
|
39
39
|
}
|
|
@@ -49,59 +49,63 @@
|
|
|
49
49
|
padding: 4px;
|
|
50
50
|
|
|
51
51
|
line-height: 1;
|
|
52
|
-
color:
|
|
52
|
+
color: var(--color-white);
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
.card {
|
|
56
|
+
.fabric-card {
|
|
57
57
|
background-color: var(--fabric-bg);
|
|
58
|
-
box-shadow: 0 0 0 1px
|
|
58
|
+
box-shadow: 0 0 0 1px var(--border-color-muted);
|
|
59
59
|
|
|
60
60
|
& > * {
|
|
61
61
|
background-color: transparent;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
& .cardCover {
|
|
65
|
-
&.inheritScheme:has([data-colorset="dark"]) > .cardCoverContent,
|
|
66
|
-
&.dark > .cardCoverContent {
|
|
67
|
-
color: var(--white);
|
|
68
|
-
text-shadow: 0 0 2px var(--black);
|
|
64
|
+
& .fabric-cardCover {
|
|
65
|
+
&.inheritScheme:has([data-colorset="dark"]) > .fabric-cardCoverContent,
|
|
66
|
+
&.dark > .fabric-cardCoverContent {
|
|
67
|
+
color: var(--color-white);
|
|
68
|
+
text-shadow: 0 0 2px var(--color-black);
|
|
69
69
|
background-image: linear-gradient(to bottom, #0000 0, #0006 100%);
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
&.inheritScheme:has([data-colorset="light"]) > .cardCoverContent,
|
|
73
|
-
&.light > .cardCoverContent {
|
|
74
|
-
color: var(--black);
|
|
75
|
-
text-shadow: 0 0 2px var(--white);
|
|
72
|
+
&.inheritScheme:has([data-colorset="light"]) > .fabric-cardCoverContent,
|
|
73
|
+
&.light > .fabric-cardCoverContent {
|
|
74
|
+
color: var(--color-black);
|
|
75
|
+
text-shadow: 0 0 2px var(--color-white);
|
|
76
76
|
background-image: linear-gradient(to bottom, #fff0 0, #fff6 100%);
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
& .cardBody {
|
|
80
|
+
& .fabric-cardBody {
|
|
81
81
|
padding: 1rem;
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
&.clickable {
|
|
85
85
|
box-shadow:
|
|
86
|
-
0 0 0 1px
|
|
86
|
+
0 0 0 1px var(--border-color-dimmed),
|
|
87
87
|
0 1px 2px 0 var(--fabric-shadow);
|
|
88
88
|
transition: box-shadow 0ms;
|
|
89
89
|
|
|
90
|
-
&:has(.cardBody:hover):not(
|
|
90
|
+
&:has(.fabric-cardBody:hover):not(
|
|
91
|
+
:has([data-inner-clickable="true"]:hover)
|
|
92
|
+
) {
|
|
91
93
|
box-shadow:
|
|
92
|
-
0 0 0 1px
|
|
94
|
+
0 0 0 1px var(--border-color-dimmed),
|
|
93
95
|
0 1px 4px 0 var(--fabric-shadow),
|
|
94
96
|
0 8px 16px 0 color-mix(in lab, var(--fabric-shadow) 35%, #0000);
|
|
95
97
|
transition-delay: 150ms;
|
|
96
98
|
}
|
|
97
99
|
|
|
98
|
-
&:has(.cardBody:active):not(
|
|
100
|
+
&:has(.fabric-cardBody:active):not(
|
|
101
|
+
:has([data-inner-clickable="true"]:hover)
|
|
102
|
+
) {
|
|
99
103
|
transform: translateY(1px);
|
|
100
|
-
box-shadow: 0 0 0 1px
|
|
104
|
+
box-shadow: 0 0 0 1px var(--border-color-dimmed);
|
|
101
105
|
transition-delay: 0ms;
|
|
102
106
|
}
|
|
103
107
|
|
|
104
|
-
& .cardBody {
|
|
108
|
+
& .fabric-cardBody {
|
|
105
109
|
cursor: pointer;
|
|
106
110
|
|
|
107
111
|
&::after {
|
|
@@ -125,16 +129,16 @@
|
|
|
125
129
|
}
|
|
126
130
|
}
|
|
127
131
|
|
|
128
|
-
@layer
|
|
129
|
-
.card {
|
|
130
|
-
& .cardBody {
|
|
132
|
+
@layer utilities {
|
|
133
|
+
.fabric-card {
|
|
134
|
+
& .fabric-cardBody {
|
|
131
135
|
& > * {
|
|
132
136
|
grid-area: unset;
|
|
133
137
|
background-color: transparent;
|
|
134
138
|
}
|
|
135
139
|
}
|
|
136
140
|
|
|
137
|
-
& .cardCover {
|
|
141
|
+
& .fabric-cardCover {
|
|
138
142
|
& > [data-ref="image"],
|
|
139
143
|
& > [data-ref="video"] {
|
|
140
144
|
position: absolute;
|
|
@@ -142,11 +146,29 @@
|
|
|
142
146
|
inset: 0;
|
|
143
147
|
}
|
|
144
148
|
|
|
145
|
-
& .cardCoverContent {
|
|
149
|
+
& .fabric-cardCoverContent {
|
|
146
150
|
& > * {
|
|
147
151
|
flex: 0 0 auto;
|
|
148
152
|
}
|
|
149
153
|
}
|
|
150
154
|
}
|
|
151
155
|
}
|
|
156
|
+
|
|
157
|
+
[data-card-flip-face="front"] {
|
|
158
|
+
backface-visibility: hidden;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
[data-card-flip-face="back"] {
|
|
162
|
+
transform: rotateY(180deg);
|
|
163
|
+
backface-visibility: hidden;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
[data-card-flip] {
|
|
167
|
+
transform-style: preserve-3d;
|
|
168
|
+
transition: transform 0.5s;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
[data-card-flip="true"] {
|
|
172
|
+
transform: rotateY(180deg);
|
|
173
|
+
}
|
|
152
174
|
}
|
|
@@ -21,26 +21,29 @@
|
|
|
21
21
|
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
22
22
|
*/
|
|
23
23
|
|
|
24
|
-
@layer
|
|
25
|
-
.chip {
|
|
24
|
+
@layer components {
|
|
25
|
+
.fabric-chip {
|
|
26
26
|
--blank-gradient: linear-gradient(to bottom, #00000005 0%, #0000 10%);
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
font-size: 0.875rem;
|
|
29
|
+
color: var(--color-tint-500);
|
|
30
|
+
|
|
29
31
|
background-image: var(--blank-gradient);
|
|
30
32
|
outline: 1px solid color-mix(in lab, currentcolor 20%, var(--fabric-bg));
|
|
31
33
|
outline-offset: -1px;
|
|
32
34
|
|
|
33
|
-
& > .chipLabel {
|
|
35
|
+
& > .fabric-chipLabel {
|
|
34
36
|
padding: 0 0.5em;
|
|
37
|
+
line-height: 1.5;
|
|
35
38
|
}
|
|
36
39
|
|
|
37
|
-
& > .chipIcon {
|
|
38
|
-
& + .chipLabel {
|
|
40
|
+
& > .fabric-chipIcon {
|
|
41
|
+
& + .fabric-chipLabel {
|
|
39
42
|
margin-inline-start: -0.5em;
|
|
40
43
|
}
|
|
41
44
|
}
|
|
42
45
|
|
|
43
|
-
& > .chipRemove {
|
|
46
|
+
& > .fabric-chipRemove {
|
|
44
47
|
/* mayble add styles later */
|
|
45
48
|
}
|
|
46
49
|
|
|
@@ -56,15 +59,16 @@
|
|
|
56
59
|
}
|
|
57
60
|
}
|
|
58
61
|
|
|
59
|
-
@layer
|
|
60
|
-
.chip {
|
|
62
|
+
@layer variants {
|
|
63
|
+
.fabric-chip {
|
|
61
64
|
height: unset;
|
|
62
65
|
padding: unset;
|
|
63
66
|
background-color: color-mix(in lab, currentcolor 10%, var(--fabric-bg));
|
|
64
67
|
|
|
65
68
|
&[data-variant="outline"] {
|
|
66
69
|
outline-color: color-mix(in lab, currentcolor 50%, var(--fabric-bg));
|
|
67
|
-
box-shadow: 0 0 2px color-mix(in lab, currentcolor 50%, var(--tint))
|
|
70
|
+
box-shadow: 0 0 2px color-mix(in lab, currentcolor 50%, var(--color-tint))
|
|
71
|
+
inset;
|
|
68
72
|
}
|
|
69
73
|
|
|
70
74
|
> * {
|
package/{src/components/collapsable/Collapsable.module.css → css/components/_collapsable.css}
RENAMED
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
22
22
|
*/
|
|
23
23
|
|
|
24
|
-
@layer
|
|
25
|
-
.collapsable {
|
|
24
|
+
@layer components {
|
|
25
|
+
.fabric-collapsable {
|
|
26
26
|
& + & {
|
|
27
|
-
border-top: 1px solid
|
|
27
|
+
border-top: 1px solid var(--border-color-base);
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
@layer components {
|
|
25
|
+
.fabric-divider {
|
|
26
|
+
hr {
|
|
27
|
+
margin: 0;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.fabric-divider-label--vertical {
|
|
31
|
+
padding-inline: 0.25rem;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.fabric-divider-label--horizontal {
|
|
35
|
+
padding-block: 0.25rem;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
22
22
|
*/
|
|
23
23
|
|
|
24
|
-
@layer
|
|
25
|
-
.dropdownBody {
|
|
24
|
+
@layer variants {
|
|
25
|
+
.fabric-dropdownBody {
|
|
26
26
|
grid-template: 1fr /1fr;
|
|
27
27
|
|
|
28
28
|
& [data-ref="card"],
|
|
@@ -21,19 +21,19 @@
|
|
|
21
21
|
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
22
22
|
*/
|
|
23
23
|
|
|
24
|
-
@layer
|
|
25
|
-
.flyout {
|
|
24
|
+
@layer components {
|
|
25
|
+
.fabric-flyout {
|
|
26
26
|
z-index: var(--z-overlay);
|
|
27
27
|
width: 32rem;
|
|
28
28
|
max-width: 70vw;
|
|
29
29
|
transition: margin 0.5s;
|
|
30
30
|
|
|
31
|
-
& .flyoutHeader {
|
|
32
|
-
background-color:
|
|
33
|
-
border-bottom: 0.5px solid
|
|
31
|
+
& .fabric-flyoutHeader {
|
|
32
|
+
background-color: var(--bg-color-base);
|
|
33
|
+
border-bottom: 0.5px solid var(--border-color-dimmed);
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
& .flyoutBody {
|
|
36
|
+
& .fabric-flyoutBody {
|
|
37
37
|
grid-template: "head head head" auto ". loader ." auto "side-s content side-e" 1fr "foot foot foot" auto / auto 1fr auto;
|
|
38
38
|
}
|
|
39
39
|
|
|
@@ -21,11 +21,15 @@
|
|
|
21
21
|
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
22
22
|
*/
|
|
23
23
|
|
|
24
|
-
@layer
|
|
25
|
-
.icon {
|
|
24
|
+
@layer components {
|
|
25
|
+
.fabric-icon {
|
|
26
26
|
position: relative;
|
|
27
|
+
|
|
28
|
+
display: inline-block;
|
|
29
|
+
|
|
27
30
|
width: 1em;
|
|
28
31
|
height: 1em;
|
|
32
|
+
|
|
29
33
|
vertical-align: -0.125em;
|
|
30
34
|
|
|
31
35
|
& > i,
|
|
@@ -42,7 +46,6 @@
|
|
|
42
46
|
line-height: 1;
|
|
43
47
|
|
|
44
48
|
object-fit: cover;
|
|
45
|
-
border-radius: inherit;
|
|
46
49
|
|
|
47
50
|
fill: currentcolor;
|
|
48
51
|
}
|
|
@@ -56,7 +59,7 @@
|
|
|
56
59
|
|
|
57
60
|
&:hover {
|
|
58
61
|
opacity: 0.9;
|
|
59
|
-
background-color:
|
|
62
|
+
background-color: --alpha(var(--text-color-base) / 10%);
|
|
60
63
|
}
|
|
61
64
|
|
|
62
65
|
&:active {
|
|
@@ -65,7 +68,7 @@
|
|
|
65
68
|
}
|
|
66
69
|
}
|
|
67
70
|
|
|
68
|
-
[dir="rtl"] .icon[data-flip="true"] {
|
|
71
|
+
[dir="rtl"] .fabric-icon[data-flip="true"] {
|
|
69
72
|
transform: scaleX(-1);
|
|
70
73
|
}
|
|
71
74
|
}
|