@react-fabric/core 1.0.0-beta.6 → 1.0.0-beta.60
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} +52 -47
- package/{src/components/button/Button.module.css → css/components/_button.css} +77 -83
- package/{src/components/card/Card.module.css → css/components/_card.css} +54 -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} +11 -8
- package/{src/components/media/Media.module.css → css/components/_media.css} +17 -17
- package/{src/components/menu/Menu.module.css → css/components/_menu.css} +21 -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/css/components/_stepper.css +86 -0
- package/{src/components/tabpanel/TabPanel.module.css → css/components/_tabPanel.css} +130 -85
- 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} +26 -18
- package/{src/core/aside/Aside.module.css → css/core/_aside.css} +60 -48
- 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 +56 -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 +541 -0
- package/css/theme/index.css +45 -0
- package/dist/cjs/components/actionLabel/ActionLabel.js +26 -8
- package/dist/cjs/components/animations/Animations.js +110 -23
- package/dist/cjs/components/avatar/Avatar.js +46 -13
- package/dist/cjs/components/avatar/AvatarGroup.js +22 -4
- package/dist/cjs/components/badge/Badge.js +36 -15
- package/dist/cjs/components/breadcrumbs/Breadcrumbs.js +40 -9
- package/dist/cjs/components/button/Button.js +50 -28
- package/dist/cjs/components/button/ButtonGroup.js +30 -3
- package/dist/cjs/components/button/ConfirmButton.js +28 -2
- 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 +60 -18
- 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 +40 -20
- package/dist/cjs/components/collapsable/Collapsable.js +30 -5
- 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 +1 -1
- package/dist/cjs/components/empty/EmptyContent.js +37 -7
- package/dist/cjs/components/icon/Icon.js +76 -13
- package/dist/cjs/components/media/Media.js +172 -75
- package/dist/cjs/components/menu/ContextMenu.js +19 -0
- package/dist/cjs/components/menu/Menu.js +76 -21
- package/dist/cjs/components/menu/MenuItem.js +54 -26
- package/dist/cjs/components/meter/Meter.js +26 -3
- package/dist/cjs/components/navigator/Navigator.js +48 -15
- package/dist/cjs/components/panel/Panel.js +53 -22
- package/dist/cjs/components/panel/PanelGroup.js +25 -2
- package/dist/cjs/components/panel/PanelStack.js +31 -2
- 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 +39 -15
- package/dist/cjs/components/tabpanel/TabPanel.js +56 -16
- package/dist/cjs/context/Global.js +28 -1
- package/dist/cjs/context/NotificationCenter.js +3 -3
- package/dist/cjs/core/aside/Aside.js +48 -22
- package/dist/cjs/core/boundary/ErrorBoundary.js +25 -8
- package/dist/cjs/core/boundary/ErrorIcon.js +1 -2
- package/dist/cjs/core/content/Content.js +7 -3
- package/dist/cjs/core/headfoot/HeadFoot.js +48 -22
- package/dist/cjs/core/page/Page.js +40 -39
- package/dist/cjs/core/responsive/Responsive.js +59 -6
- package/dist/cjs/core/section/Section.js +12 -29
- 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/useStepper.js +75 -0
- 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 +11 -2
- package/dist/cjs/overlays/alert/Alert.js +23 -15
- package/dist/cjs/overlays/flyout/Flyout.js +48 -64
- package/dist/cjs/overlays/message/Message.js +8 -3
- package/dist/cjs/overlays/modal/Modal.js +17 -20
- package/dist/cjs/overlays/toast/Toast.js +20 -10
- package/dist/cjs/overlays/tooltip/Tooltip.js +24 -11
- package/dist/cjs/types/icons.js +17 -4
- package/dist/cjs/typography/Abbr.js +35 -7
- package/dist/cjs/typography/{Link.js → Anchor.js} +23 -5
- package/dist/cjs/typography/Mark.js +25 -5
- 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 +111 -24
- package/dist/esm/components/avatar/Avatar.js +46 -13
- package/dist/esm/components/avatar/AvatarGroup.js +22 -4
- package/dist/esm/components/badge/Badge.js +38 -17
- package/dist/esm/components/breadcrumbs/Breadcrumbs.js +40 -9
- package/dist/esm/components/button/Button.js +52 -30
- package/dist/esm/components/button/ButtonGroup.js +31 -4
- package/dist/esm/components/button/ConfirmButton.js +28 -2
- 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 +61 -19
- 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 +42 -22
- package/dist/esm/components/collapsable/Collapsable.js +30 -5
- 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 +1 -1
- package/dist/esm/components/empty/EmptyContent.js +37 -7
- package/dist/esm/components/icon/Icon.js +78 -16
- package/dist/esm/components/media/Media.js +173 -76
- package/dist/esm/components/menu/ContextMenu.js +19 -0
- package/dist/esm/components/menu/Menu.js +78 -23
- package/dist/esm/components/menu/MenuItem.js +49 -21
- package/dist/esm/components/meter/Meter.js +26 -3
- package/dist/esm/components/navigator/Navigator.js +48 -15
- package/dist/esm/components/panel/Panel.js +54 -23
- package/dist/esm/components/panel/PanelGroup.js +25 -2
- package/dist/esm/components/panel/PanelStack.js +31 -2
- 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 +40 -16
- package/dist/esm/components/tabpanel/TabPanel.js +56 -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 -23
- package/dist/esm/core/boundary/ErrorBoundary.js +25 -8
- package/dist/esm/core/boundary/ErrorIcon.js +1 -2
- package/dist/esm/core/content/Content.js +7 -3
- package/dist/esm/core/headfoot/HeadFoot.js +48 -22
- package/dist/esm/core/page/Page.js +41 -40
- package/dist/esm/core/responsive/Responsive.js +59 -6
- package/dist/esm/core/section/Section.js +12 -29
- 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/useStepper.js +75 -0
- 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 +6 -2
- package/dist/esm/overlays/alert/Alert.js +24 -16
- package/dist/esm/overlays/flyout/Flyout.js +52 -68
- package/dist/esm/overlays/message/Message.js +9 -4
- package/dist/esm/overlays/modal/Modal.js +19 -22
- package/dist/esm/overlays/toast/Toast.js +21 -11
- package/dist/esm/overlays/tooltip/Tooltip.js +24 -11
- package/dist/esm/types/icons.js +17 -4
- package/dist/esm/typography/Abbr.js +35 -7
- package/dist/esm/typography/{Link.js → Anchor.js} +24 -6
- package/dist/esm/typography/Mark.js +25 -5
- 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 +21 -2
- package/dist/types/components/animations/Animations.d.ts +84 -5
- package/dist/types/components/avatar/Avatar.d.ts +34 -6
- package/dist/types/components/avatar/AvatarGroup.d.ts +19 -1
- package/dist/types/components/badge/Badge.d.ts +37 -3
- package/dist/types/components/breadcrumbs/Breadcrumbs.d.ts +31 -2
- package/dist/types/components/button/Button.d.ts +39 -7
- package/dist/types/components/button/ButtonGroup.d.ts +28 -3
- package/dist/types/components/button/ConfirmButton.d.ts +23 -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 +44 -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 +34 -5
- package/dist/types/components/collapsable/Collapsable.d.ts +28 -2
- 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 +25 -0
- package/dist/types/components/empty/EmptyContent.d.ts +32 -3
- package/dist/types/components/icon/Icon.d.ts +40 -8
- package/dist/types/components/index.d.ts +3 -2
- package/dist/types/components/media/Media.d.ts +54 -0
- package/dist/types/components/menu/ContextMenu.d.ts +19 -1
- 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 +9 -3
- 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 +43 -4
- 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 +38 -4
- package/dist/types/components/tabpanel/TabPanel.d.ts +51 -2
- package/dist/types/context/Global.d.ts +24 -1
- package/dist/types/core/aside/Aside.d.ts +45 -6
- package/dist/types/core/boundary/ErrorBoundary.d.ts +18 -2
- package/dist/types/core/content/Content.d.ts +6 -1
- package/dist/types/core/headfoot/HeadFoot.d.ts +41 -9
- package/dist/types/core/page/Page.d.ts +32 -4
- package/dist/types/core/responsive/Responsive.d.ts +58 -3
- package/dist/types/core/section/Section.d.ts +18 -3
- 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/useStepper.d.ts +14 -0
- package/dist/types/hooks/useStorage.d.ts +38 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/overlays/alert/Alert.d.ts +16 -5
- package/dist/types/overlays/flyout/Flyout.d.ts +9 -4
- package/dist/types/overlays/message/Message.d.ts +16 -5
- package/dist/types/overlays/modal/Modal.d.ts +13 -4
- package/dist/types/overlays/toast/Toast.d.ts +16 -5
- package/dist/types/overlays/tooltip/Tooltip.d.ts +2 -2
- package/dist/types/types/icons.d.ts +17 -3
- package/dist/types/types/index.d.ts +20 -22
- 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 +1 -0
- package/dist/types/utils/getColor.d.ts +1 -4
- package/dist/types/utils/index.d.ts +1 -0
- package/package.json +14 -16
- package/src/components/actionLabel/ActionLabel.tsx +26 -8
- package/src/components/animations/Animations.tsx +115 -36
- package/src/components/avatar/Avatar.tsx +51 -15
- package/src/components/avatar/AvatarGroup.tsx +23 -5
- package/src/components/badge/Badge.tsx +50 -22
- package/src/components/breadcrumbs/Breadcrumbs.tsx +43 -10
- package/src/components/button/Button.tsx +74 -42
- package/src/components/button/ButtonGroup.tsx +33 -7
- package/src/components/button/ConfirmButton.tsx +31 -3
- package/src/components/button/ToggleButtonGroup.tsx +74 -47
- package/src/components/callout/Callout.tsx +55 -12
- package/src/components/card/Card.tsx +84 -25
- package/src/components/card/CardCover.tsx +36 -6
- package/src/components/card/FlipContent.tsx +90 -0
- package/src/components/chip/Chip.tsx +53 -25
- package/src/components/collapsable/Collapsable.tsx +33 -8
- package/src/components/divider/Divider.tsx +42 -16
- package/src/components/dropdown/Dropdown.tsx +47 -12
- package/src/components/dropdown/DropdownTool.tsx +27 -2
- package/src/components/empty/EmptyContent.tsx +49 -8
- package/src/components/icon/Icon.tsx +96 -18
- package/src/components/index.ts +3 -2
- package/src/components/media/Media.tsx +193 -104
- package/src/components/menu/ContextMenu.tsx +19 -0
- package/src/components/menu/Menu.tsx +87 -30
- package/src/components/menu/MenuItem.tsx +44 -19
- package/src/components/menu/types.ts +9 -8
- package/src/components/meter/Meter.tsx +27 -4
- package/src/components/navigator/Navigator.tsx +58 -9
- package/src/components/panel/Panel.tsx +53 -21
- package/src/components/panel/PanelGroup.tsx +25 -2
- package/src/components/panel/PanelStack.tsx +33 -2
- package/src/components/progress/ProgressBar.tsx +33 -14
- package/src/components/progress/ProgressCircle.tsx +29 -13
- package/src/components/tabpanel/Tab.tsx +47 -24
- package/src/components/tabpanel/TabPanel.tsx +79 -13
- package/src/context/Global.tsx +28 -1
- package/src/context/NotificationCenter.tsx +3 -3
- package/src/core/aside/Aside.tsx +56 -34
- package/src/core/boundary/ErrorBoundary.tsx +26 -8
- package/src/core/boundary/ErrorIcon.tsx +1 -2
- package/src/core/content/Content.tsx +7 -3
- package/src/core/headfoot/HeadFoot.tsx +44 -37
- package/src/core/page/Page.tsx +42 -20
- package/src/core/responsive/Responsive.tsx +66 -8
- package/src/core/section/Section.tsx +26 -4
- 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 +33 -8
- package/src/hooks/usePropToggle.ts +16 -5
- package/src/hooks/useResize.ts +19 -1
- package/src/hooks/useResizeObserver.ts +32 -9
- package/src/hooks/useStepper.tsx +68 -0
- 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 +5 -0
- package/src/overlays/alert/Alert.tsx +50 -34
- package/src/overlays/flyout/Flyout.tsx +73 -97
- package/src/overlays/message/Message.tsx +28 -9
- package/src/overlays/modal/Modal.tsx +36 -30
- package/src/overlays/toast/Toast.tsx +42 -30
- package/src/overlays/tooltip/Tooltip.tsx +43 -18
- package/src/types/global.d.ts +8 -0
- package/src/types/icons.ts +32 -6
- package/src/types/index.ts +261 -45
- package/src/typography/Abbr.tsx +45 -11
- package/src/typography/{Link.tsx → Anchor.tsx} +26 -14
- package/src/typography/Copy.tsx +15 -0
- package/src/typography/Mark.tsx +25 -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,19 +94,15 @@
|
|
|
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
|
-
|
|
108
|
-
&:not(.flex) + &:not(.flex) {
|
|
109
|
-
margin-inline-start: 0.5rem;
|
|
110
|
-
}
|
|
111
101
|
}
|
|
112
102
|
}
|
|
113
103
|
|
|
114
|
-
@layer
|
|
115
|
-
.buttonWrapper {
|
|
104
|
+
@layer utilities {
|
|
105
|
+
.fabric-buttonWrapper {
|
|
116
106
|
&[data-size="xs"] {
|
|
117
107
|
font-size: 0.625rem;
|
|
118
108
|
}
|
|
@@ -134,49 +124,56 @@
|
|
|
134
124
|
}
|
|
135
125
|
}
|
|
136
126
|
|
|
137
|
-
.button {
|
|
138
|
-
--bg: color-mix(in lab, var(--fabric-bg) 99%, var(--tint));
|
|
127
|
+
.fabric-button {
|
|
128
|
+
--bg: color-mix(in lab, var(--fabric-bg) 99%, var(--color-tint));
|
|
139
129
|
--outline: color-mix(in lab, var(--bg) 90%, var(--fabric-text));
|
|
140
130
|
--text: color-mix(in lab, var(--color) 80%, var(--fabric-text));
|
|
141
131
|
--bg-hover: color-mix(in lab, var(--color) 18%, var(--fabric-bg));
|
|
142
132
|
--bg-click: color-mix(in lab, var(--color) 25%, var(--fabric-bg));
|
|
143
|
-
--bg-active: color-mix(in lab, var(--color)
|
|
133
|
+
--bg-active: color-mix(in lab, var(--color) 24%, var(--fabric-bg));
|
|
144
134
|
|
|
145
135
|
&[data-color="accent"] {
|
|
146
|
-
--color:
|
|
136
|
+
--color: var(--color-accent-500);
|
|
147
137
|
}
|
|
148
138
|
|
|
149
139
|
&[data-color="info"] {
|
|
150
|
-
--color:
|
|
140
|
+
--color: var(--color-info-500);
|
|
151
141
|
}
|
|
152
142
|
|
|
153
143
|
&[data-color="danger"] {
|
|
154
|
-
--color:
|
|
144
|
+
--color: var(--color-danger-500);
|
|
155
145
|
}
|
|
156
146
|
|
|
157
147
|
&[data-color="success"] {
|
|
158
|
-
--color:
|
|
148
|
+
--color: var(--color-success-500);
|
|
159
149
|
}
|
|
160
150
|
|
|
161
151
|
&[data-color="warning"] {
|
|
162
|
-
--color:
|
|
152
|
+
--color: var(--color-warning-500);
|
|
163
153
|
}
|
|
164
154
|
|
|
165
155
|
&[data-variant="outline"] {
|
|
166
156
|
--outline: var(--color);
|
|
167
157
|
}
|
|
168
158
|
|
|
159
|
+
&[data-variant="soft"] {
|
|
160
|
+
--bg: color-mix(in lab, var(--color) 25%, var(--fabric-bg));
|
|
161
|
+
--bg-hover: color-mix(in lab, var(--color) 35%, var(--fabric-bg));
|
|
162
|
+
--bg-click: color-mix(in lab, var(--color) 50%, var(--color-tint-50));
|
|
163
|
+
--bg-active: color-mix(in lab, var(--color) 50%, var(--color-tint-50));
|
|
164
|
+
}
|
|
165
|
+
|
|
169
166
|
&[data-variant="solid"] {
|
|
170
167
|
--outline: var(--color);
|
|
171
168
|
--bg: color-mix(in lab, var(--color) 96%, var(--fabric-text));
|
|
172
|
-
--text:
|
|
169
|
+
--text: var(--color-white);
|
|
173
170
|
--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%,
|
|
171
|
+
--bg-click: color-mix(in lab, var(--color) 80%, var(--color-black));
|
|
172
|
+
--bg-active: color-mix(in lab, var(--color) 70%, var(--color-black));
|
|
176
173
|
|
|
177
|
-
&
|
|
178
|
-
color:
|
|
179
|
-
background-color:
|
|
174
|
+
& .hotkey-label {
|
|
175
|
+
color: --alpha(var(--color-white) / 70%);
|
|
176
|
+
background-color: --alpha(var(--bg-color-dark) / 30%);
|
|
180
177
|
}
|
|
181
178
|
}
|
|
182
179
|
|
|
@@ -189,47 +186,39 @@
|
|
|
189
186
|
}
|
|
190
187
|
|
|
191
188
|
&[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
|
-
);
|
|
189
|
+
--bg: var(--bg-color-invert);
|
|
190
|
+
--text: color-mix(in lab, var(--color) 90%, var(--text-color-invert));
|
|
191
|
+
--bg-hover: color-mix(in lab, var(--color) 15%, var(--bg-color-invert));
|
|
192
|
+
--bg-click: color-mix(in lab, var(--color) 35%, var(--bg-color-invert));
|
|
204
193
|
}
|
|
205
194
|
}
|
|
206
195
|
|
|
207
|
-
.buttonIcon[data-align="start"] {
|
|
196
|
+
.fabric-buttonIcon[data-align="start"] {
|
|
208
197
|
order: 0;
|
|
209
198
|
|
|
210
|
-
& + .buttonLabel[data-colored-icon="false"] {
|
|
199
|
+
& + .fabric-buttonLabel[data-colored-icon="false"] {
|
|
211
200
|
margin-inline-start: -1em;
|
|
212
201
|
}
|
|
213
202
|
}
|
|
214
203
|
|
|
215
|
-
.buttonIcon[data-align="end"] {
|
|
204
|
+
.fabric-buttonIcon[data-align="end"] {
|
|
216
205
|
order: 2;
|
|
217
206
|
|
|
218
|
-
& ~ .buttonLabel[data-colored-icon="false"] {
|
|
207
|
+
& ~ .fabric-buttonLabel[data-colored-icon="false"] {
|
|
219
208
|
margin-inline-end: -1em;
|
|
220
209
|
}
|
|
221
210
|
}
|
|
222
211
|
}
|
|
223
212
|
|
|
224
|
-
@layer
|
|
225
|
-
.buttonWrapper {
|
|
213
|
+
@layer variants {
|
|
214
|
+
.fabric-buttonWrapper {
|
|
226
215
|
height: unset;
|
|
227
216
|
padding: unset;
|
|
228
217
|
|
|
229
218
|
&[data-disabled="true"] {
|
|
230
219
|
cursor: not-allowed;
|
|
231
220
|
|
|
232
|
-
& .button {
|
|
221
|
+
& .fabric-button {
|
|
233
222
|
pointer-events: none;
|
|
234
223
|
opacity: 0.5;
|
|
235
224
|
background-image: var(--active-gradient);
|
|
@@ -239,34 +228,31 @@
|
|
|
239
228
|
&[data-loading="true"] {
|
|
240
229
|
cursor: wait;
|
|
241
230
|
|
|
242
|
-
& .button {
|
|
231
|
+
& .fabric-button {
|
|
243
232
|
pointer-events: none;
|
|
244
233
|
background-image: var(--progress-gradient);
|
|
245
234
|
background-size: 1em 1em;
|
|
246
|
-
|
|
247
|
-
& :global {
|
|
248
|
-
animation: bgprogress 750ms linear infinite;
|
|
249
|
-
}
|
|
235
|
+
animation: bgprogress 750ms linear infinite;
|
|
250
236
|
}
|
|
251
237
|
|
|
252
|
-
& .button:not([data-variant="solid"]) {
|
|
238
|
+
& .fabric-button:not([data-variant="solid"]) {
|
|
253
239
|
background-color: color-mix(in lab, var(--color) 15%, var(--fabric-bg));
|
|
254
240
|
}
|
|
255
241
|
}
|
|
256
242
|
|
|
257
|
-
|
|
258
|
-
color:
|
|
259
|
-
outline: 1px dashed
|
|
243
|
+
&.btn-dashed > .fabric-button {
|
|
244
|
+
color: var(--color-tint-600);
|
|
245
|
+
outline: 1px dashed var(--color-tint-600);
|
|
260
246
|
|
|
261
247
|
&[data-invalid="true"] {
|
|
262
|
-
color:
|
|
263
|
-
background-color:
|
|
264
|
-
outline: 1px dashed
|
|
248
|
+
color: var(--color-danger-600);
|
|
249
|
+
background-color: var(--color-danger-100);
|
|
250
|
+
outline: 1px dashed var(--color-danger-600);
|
|
265
251
|
}
|
|
266
252
|
}
|
|
267
253
|
}
|
|
268
254
|
|
|
269
|
-
.button {
|
|
255
|
+
.fabric-button {
|
|
270
256
|
--tw-ring-color: var(--color);
|
|
271
257
|
|
|
272
258
|
&:hover {
|
|
@@ -277,8 +263,8 @@
|
|
|
277
263
|
background-color: var(--bg-click);
|
|
278
264
|
background-image: var(--active-gradient);
|
|
279
265
|
|
|
280
|
-
.buttonIcon,
|
|
281
|
-
.buttonLabel {
|
|
266
|
+
.fabric-buttonIcon,
|
|
267
|
+
.fabric-buttonLabel {
|
|
282
268
|
transform: translateY(1px);
|
|
283
269
|
}
|
|
284
270
|
}
|
|
@@ -299,12 +285,12 @@
|
|
|
299
285
|
}
|
|
300
286
|
}
|
|
301
287
|
|
|
302
|
-
.buttonGroup {
|
|
303
|
-
& > .buttonWrapper {
|
|
288
|
+
.fabric-buttonGroup {
|
|
289
|
+
& > .fabric-buttonWrapper {
|
|
304
290
|
margin: 0;
|
|
305
291
|
|
|
306
|
-
& .button[data-variant="link"] {
|
|
307
|
-
--outline:
|
|
292
|
+
& .fabric-button[data-variant="link"] {
|
|
293
|
+
--outline: var(--bg-color-base);
|
|
308
294
|
}
|
|
309
295
|
}
|
|
310
296
|
|
|
@@ -317,7 +303,7 @@
|
|
|
317
303
|
inset-block: 5%;
|
|
318
304
|
inset-inline-start: -0.5px;
|
|
319
305
|
|
|
320
|
-
border-inline-start: 0.5px solid
|
|
306
|
+
border-inline-start: 0.5px solid var(--border-color-base);
|
|
321
307
|
}
|
|
322
308
|
}
|
|
323
309
|
|
|
@@ -329,15 +315,19 @@
|
|
|
329
315
|
}
|
|
330
316
|
}
|
|
331
317
|
|
|
332
|
-
& > :not(:last-child) .button {
|
|
318
|
+
& > :not(:last-child) .fabric-button {
|
|
333
319
|
border-start-end-radius: 0;
|
|
334
320
|
border-end-end-radius: 0;
|
|
335
321
|
}
|
|
336
322
|
|
|
337
|
-
& > :not(:first-child) .button {
|
|
323
|
+
& > :not(:first-child) .fabric-button {
|
|
338
324
|
border-start-start-radius: 0;
|
|
339
325
|
border-end-start-radius: 0;
|
|
340
326
|
}
|
|
327
|
+
|
|
328
|
+
&:not(.flex) + &:not(.flex) {
|
|
329
|
+
margin-inline-start: 0.5rem;
|
|
330
|
+
}
|
|
341
331
|
}
|
|
342
332
|
|
|
343
333
|
&.vertical {
|
|
@@ -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,15 +351,19 @@
|
|
|
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
|
}
|
|
363
|
+
|
|
364
|
+
&:not(.flex) + &:not(.flex) {
|
|
365
|
+
margin-top: 0.5rem;
|
|
366
|
+
}
|
|
373
367
|
}
|
|
374
368
|
}
|
|
375
369
|
}
|
|
@@ -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,67 @@
|
|
|
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
|
+
--tw-shadow-color: var(--border-color-muted);
|
|
58
|
+
|
|
57
59
|
background-color: var(--fabric-bg);
|
|
58
|
-
box-shadow: 0 0 0 1px
|
|
60
|
+
box-shadow: 0 0 0 1px var(--tw-shadow-color);
|
|
59
61
|
|
|
60
62
|
& > * {
|
|
61
63
|
background-color: transparent;
|
|
62
64
|
}
|
|
63
65
|
|
|
64
|
-
& .cardCover {
|
|
65
|
-
&.inheritScheme:has([data-colorset="dark"]) > .cardCoverContent,
|
|
66
|
-
&.dark > .cardCoverContent {
|
|
67
|
-
color: var(--white);
|
|
68
|
-
text-shadow: 0 0 2px var(--black);
|
|
66
|
+
& .fabric-cardCover {
|
|
67
|
+
&.inheritScheme:has([data-colorset="dark"]) > .fabric-cardCoverContent,
|
|
68
|
+
&.dark > .fabric-cardCoverContent {
|
|
69
|
+
color: var(--color-white);
|
|
70
|
+
text-shadow: 0 0 2px var(--color-black);
|
|
69
71
|
background-image: linear-gradient(to bottom, #0000 0, #0006 100%);
|
|
70
72
|
}
|
|
71
73
|
|
|
72
|
-
&.inheritScheme:has([data-colorset="light"]) > .cardCoverContent,
|
|
73
|
-
&.light > .cardCoverContent {
|
|
74
|
-
color: var(--black);
|
|
75
|
-
text-shadow: 0 0 2px var(--white);
|
|
74
|
+
&.inheritScheme:has([data-colorset="light"]) > .fabric-cardCoverContent,
|
|
75
|
+
&.light > .fabric-cardCoverContent {
|
|
76
|
+
color: var(--color-black);
|
|
77
|
+
text-shadow: 0 0 2px var(--color-white);
|
|
76
78
|
background-image: linear-gradient(to bottom, #fff0 0, #fff6 100%);
|
|
77
79
|
}
|
|
78
80
|
}
|
|
79
81
|
|
|
80
|
-
& .cardBody {
|
|
82
|
+
& .fabric-cardBody {
|
|
81
83
|
padding: 1rem;
|
|
82
84
|
}
|
|
83
85
|
|
|
84
86
|
&.clickable {
|
|
87
|
+
--tw-shadow-color: var(--border-color-dimmed);
|
|
88
|
+
|
|
85
89
|
box-shadow:
|
|
86
|
-
0 0 0 1px
|
|
90
|
+
0 0 0 1px var(--tw-shadow-color),
|
|
87
91
|
0 1px 2px 0 var(--fabric-shadow);
|
|
88
92
|
transition: box-shadow 0ms;
|
|
89
93
|
|
|
90
|
-
&:has(.cardBody:hover):not(
|
|
94
|
+
&:has(.fabric-cardBody:hover):not(
|
|
95
|
+
:has([data-inner-clickable="true"]:hover)
|
|
96
|
+
) {
|
|
91
97
|
box-shadow:
|
|
92
|
-
0 0 0 1px
|
|
98
|
+
0 0 0 1px var(--tw-shadow-color),
|
|
93
99
|
0 1px 4px 0 var(--fabric-shadow),
|
|
94
100
|
0 8px 16px 0 color-mix(in lab, var(--fabric-shadow) 35%, #0000);
|
|
95
101
|
transition-delay: 150ms;
|
|
96
102
|
}
|
|
97
103
|
|
|
98
|
-
&:has(.cardBody:active):not(
|
|
104
|
+
&:has(.fabric-cardBody:active):not(
|
|
105
|
+
:has([data-inner-clickable="true"]:hover)
|
|
106
|
+
) {
|
|
99
107
|
transform: translateY(1px);
|
|
100
|
-
box-shadow: 0 0 0 1px
|
|
108
|
+
box-shadow: 0 0 0 1px var(--tw-shadow-color);
|
|
101
109
|
transition-delay: 0ms;
|
|
102
110
|
}
|
|
103
111
|
|
|
104
|
-
& .cardBody {
|
|
112
|
+
& .fabric-cardBody {
|
|
105
113
|
cursor: pointer;
|
|
106
114
|
|
|
107
115
|
&::after {
|
|
@@ -125,16 +133,16 @@
|
|
|
125
133
|
}
|
|
126
134
|
}
|
|
127
135
|
|
|
128
|
-
@layer
|
|
129
|
-
.card {
|
|
130
|
-
& .cardBody {
|
|
136
|
+
@layer utilities {
|
|
137
|
+
.fabric-card {
|
|
138
|
+
& .fabric-cardBody {
|
|
131
139
|
& > * {
|
|
132
140
|
grid-area: unset;
|
|
133
141
|
background-color: transparent;
|
|
134
142
|
}
|
|
135
143
|
}
|
|
136
144
|
|
|
137
|
-
& .cardCover {
|
|
145
|
+
& .fabric-cardCover {
|
|
138
146
|
& > [data-ref="image"],
|
|
139
147
|
& > [data-ref="video"] {
|
|
140
148
|
position: absolute;
|
|
@@ -142,11 +150,29 @@
|
|
|
142
150
|
inset: 0;
|
|
143
151
|
}
|
|
144
152
|
|
|
145
|
-
& .cardCoverContent {
|
|
153
|
+
& .fabric-cardCoverContent {
|
|
146
154
|
& > * {
|
|
147
155
|
flex: 0 0 auto;
|
|
148
156
|
}
|
|
149
157
|
}
|
|
150
158
|
}
|
|
151
159
|
}
|
|
160
|
+
|
|
161
|
+
[data-card-flip-face="front"] {
|
|
162
|
+
backface-visibility: hidden;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
[data-card-flip-face="back"] {
|
|
166
|
+
transform: rotateY(180deg);
|
|
167
|
+
backface-visibility: hidden;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
[data-card-flip] {
|
|
171
|
+
transform-style: preserve-3d;
|
|
172
|
+
transition: transform 0.5s;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
[data-card-flip="true"] {
|
|
176
|
+
transform: rotateY(180deg);
|
|
177
|
+
}
|
|
152
178
|
}
|
|
@@ -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
|
|