@react-fabric/core 1.0.0-beta.4 → 1.0.0-beta.40
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} +68 -78
- package/{src/components/card/Card.module.css → css/components/_card.css} +32 -28
- package/{src/components/chip/Chip.module.css → css/components/_chip.css} +15 -11
- package/{src/components/collapsable/Collapsable.module.css → css/components/_collapsable.css} +3 -3
- package/css/components/_divider.css +32 -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} +15 -16
- package/{src/overlays/message/Message.module.css → css/components/_message.css} +2 -2
- package/{src/components/meter/Meter.module.css → css/components/_meter.css} +10 -10
- package/{src/overlays/modal/Modal.module.css → css/components/_modal.css} +6 -6
- package/{src/components/panel/Panel.module.css → css/components/_panel.css} +17 -17
- package/{src/components/progress/Progress.module.css → css/components/_progress.css} +7 -10
- package/{src/components/tabpanel/TabPanel.module.css → css/components/_tabPanel.css} +73 -84
- package/{src/overlays/toast/Toast.module.css → css/components/_toast.css} +2 -2
- package/css/components/_tooltip.css +29 -0
- package/{src/core/content/Content.module.css → css/components/index.css} +25 -18
- package/{src/core/aside/Aside.module.css → css/core/_aside.css} +42 -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 +41 -223
- package/css/reset/_text.css +14 -29
- package/css/reset/_theme.css +315 -32
- 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 +44 -0
- package/dist/cjs/components/actionLabel/ActionLabel.js +3 -3
- package/dist/cjs/components/animations/Animations.js +29 -18
- package/dist/cjs/components/avatar/Avatar.js +10 -13
- package/dist/cjs/components/avatar/AvatarGroup.js +3 -3
- package/dist/cjs/components/badge/Badge.js +5 -5
- package/dist/cjs/components/breadcrumbs/Breadcrumbs.js +10 -8
- package/dist/cjs/components/button/Button.js +18 -14
- package/dist/cjs/components/button/ButtonGroup.js +4 -3
- package/dist/cjs/components/button/ConfirmButton.js +7 -2
- package/dist/cjs/components/button/ToggleButtonGroup.js +3 -3
- package/dist/cjs/components/callout/Callout.js +15 -4
- package/dist/cjs/components/card/Card.js +8 -7
- package/dist/cjs/components/card/CardCover.js +10 -5
- package/dist/cjs/components/chip/Chip.js +11 -7
- package/dist/cjs/components/collapsable/Collapsable.js +5 -5
- package/dist/cjs/components/divider/Divider.js +10 -7
- package/dist/cjs/components/dropdown/Dropdown.js +5 -4
- package/dist/cjs/components/dropdown/DropdownTool.js +4 -3
- package/dist/cjs/components/icon/Icon.js +15 -14
- package/dist/cjs/components/media/Media.js +116 -75
- package/dist/cjs/components/menu/ContextMenu.js +30 -10
- package/dist/cjs/components/menu/Menu.js +39 -20
- package/dist/cjs/components/menu/MenuItem.js +30 -16
- package/dist/cjs/components/meter/Meter.js +2 -3
- package/dist/cjs/components/navigator/Navigator.js +16 -9
- package/dist/cjs/components/panel/Panel.js +10 -9
- package/dist/cjs/components/panel/PanelGroup.js +1 -2
- package/dist/cjs/components/progress/ProgressBar.js +6 -5
- package/dist/cjs/components/progress/ProgressCircle.js +6 -4
- package/dist/cjs/components/tabpanel/Tab.js +58 -38
- package/dist/cjs/components/tabpanel/TabPanel.js +20 -16
- package/dist/cjs/core/aside/Aside.js +11 -10
- package/dist/cjs/core/boundary/ErrorBoundary.js +6 -7
- package/dist/cjs/core/boundary/ErrorIcon.js +1 -2
- package/dist/cjs/core/content/Content.js +9 -7
- package/dist/cjs/core/headfoot/HeadFoot.js +2 -20
- package/dist/cjs/core/page/Page.js +3 -3
- package/dist/cjs/core/responsive/Responsive.js +3 -4
- package/dist/cjs/core/section/Section.js +1 -2
- package/dist/cjs/core/theme/ThemeProvider.js +7 -8
- package/dist/cjs/core/viewport/Viewport.js +4 -2
- package/dist/cjs/hooks/useNavigator.js +6 -4
- package/dist/cjs/hotkeys/HotKeyLabel.js +1 -1
- package/dist/cjs/hotkeys/HotKeyWrapper.js +3 -1
- package/dist/cjs/index.js +6 -2
- package/dist/cjs/overlays/alert/Alert.js +19 -13
- package/dist/cjs/overlays/flyout/Flyout.js +42 -44
- package/dist/cjs/overlays/message/Message.js +6 -3
- package/dist/cjs/overlays/modal/Modal.js +9 -10
- package/dist/cjs/overlays/toast/Toast.js +17 -9
- package/dist/cjs/overlays/tooltip/Tooltip.js +20 -8
- package/dist/cjs/types/icons.js +4 -0
- package/dist/cjs/typography/Abbr.js +2 -3
- package/dist/cjs/typography/{Link.js → Anchor.js} +5 -4
- package/dist/cjs/typography/Mark.js +2 -3
- package/dist/cjs/typography/Text.js +3 -4
- package/dist/cjs/typography/Title.js +3 -3
- package/dist/cjs/utils/cloneElement.js +44 -0
- package/dist/cjs/utils/getColor.js +1 -18
- package/dist/esm/components/actionLabel/ActionLabel.js +3 -3
- package/dist/esm/components/animations/Animations.js +30 -19
- package/dist/esm/components/avatar/Avatar.js +11 -14
- package/dist/esm/components/avatar/AvatarGroup.js +3 -3
- package/dist/esm/components/badge/Badge.js +5 -5
- package/dist/esm/components/breadcrumbs/Breadcrumbs.js +10 -8
- package/dist/esm/components/button/Button.js +18 -14
- package/dist/esm/components/button/ButtonGroup.js +5 -4
- package/dist/esm/components/button/ConfirmButton.js +7 -2
- package/dist/esm/components/button/ToggleButtonGroup.js +4 -4
- package/dist/esm/components/callout/Callout.js +15 -4
- package/dist/esm/components/card/Card.js +8 -7
- package/dist/esm/components/card/CardCover.js +10 -5
- package/dist/esm/components/chip/Chip.js +12 -8
- package/dist/esm/components/collapsable/Collapsable.js +5 -5
- package/dist/esm/components/divider/Divider.js +11 -8
- package/dist/esm/components/dropdown/Dropdown.js +5 -4
- package/dist/esm/components/dropdown/DropdownTool.js +4 -3
- package/dist/esm/components/icon/Icon.js +15 -14
- package/dist/esm/components/media/Media.js +117 -76
- package/dist/esm/components/menu/ContextMenu.js +32 -12
- package/dist/esm/components/menu/Menu.js +41 -22
- package/dist/esm/components/menu/MenuItem.js +24 -10
- package/dist/esm/components/meter/Meter.js +2 -3
- package/dist/esm/components/navigator/Navigator.js +16 -9
- package/dist/esm/components/panel/Panel.js +10 -9
- package/dist/esm/components/panel/PanelGroup.js +1 -2
- package/dist/esm/components/progress/ProgressBar.js +6 -5
- package/dist/esm/components/progress/ProgressCircle.js +6 -4
- package/dist/esm/components/tabpanel/Tab.js +59 -39
- package/dist/esm/components/tabpanel/TabPanel.js +20 -16
- package/dist/esm/core/aside/Aside.js +11 -10
- package/dist/esm/core/boundary/ErrorBoundary.js +6 -7
- package/dist/esm/core/boundary/ErrorIcon.js +1 -2
- package/dist/esm/core/content/Content.js +9 -7
- package/dist/esm/core/headfoot/HeadFoot.js +2 -20
- package/dist/esm/core/page/Page.js +3 -3
- package/dist/esm/core/responsive/Responsive.js +3 -4
- package/dist/esm/core/section/Section.js +1 -2
- package/dist/esm/core/theme/ThemeProvider.js +7 -8
- package/dist/esm/core/viewport/Viewport.js +4 -2
- package/dist/esm/hooks/useNavigator.js +7 -5
- package/dist/esm/hotkeys/HotKeyLabel.js +1 -1
- package/dist/esm/hotkeys/HotKeyWrapper.js +3 -1
- package/dist/esm/index.js +3 -1
- package/dist/esm/overlays/alert/Alert.js +20 -14
- package/dist/esm/overlays/flyout/Flyout.js +43 -45
- package/dist/esm/overlays/message/Message.js +7 -4
- package/dist/esm/overlays/modal/Modal.js +10 -11
- package/dist/esm/overlays/toast/Toast.js +18 -10
- package/dist/esm/overlays/tooltip/Tooltip.js +20 -8
- package/dist/esm/types/icons.js +4 -0
- package/dist/esm/typography/Abbr.js +2 -3
- package/dist/esm/typography/{Link.js → Anchor.js} +6 -5
- package/dist/esm/typography/Mark.js +2 -3
- package/dist/esm/typography/Text.js +4 -5
- package/dist/esm/typography/Title.js +4 -4
- package/dist/esm/utils/cloneElement.js +44 -0
- package/dist/esm/utils/getColor.js +2 -16
- package/dist/types/components/actionLabel/ActionLabel.d.ts +2 -2
- package/dist/types/components/animations/Animations.d.ts +5 -5
- package/dist/types/components/avatar/Avatar.d.ts +3 -3
- package/dist/types/components/badge/Badge.d.ts +5 -1
- package/dist/types/components/breadcrumbs/Breadcrumbs.d.ts +2 -2
- package/dist/types/components/button/Button.d.ts +7 -5
- package/dist/types/components/button/ButtonGroup.d.ts +2 -2
- package/dist/types/components/button/ConfirmButton.d.ts +6 -1
- package/dist/types/components/callout/Callout.d.ts +2 -2
- package/dist/types/components/card/Card.d.ts +3 -3
- package/dist/types/components/chip/Chip.d.ts +3 -3
- package/dist/types/components/collapsable/Collapsable.d.ts +5 -1
- package/dist/types/components/divider/Divider.d.ts +7 -3
- package/dist/types/components/dropdown/DropdownTool.d.ts +2 -1
- package/dist/types/components/icon/Icon.d.ts +3 -3
- package/dist/types/components/media/Media.d.ts +2 -2
- package/dist/types/components/menu/ContextMenu.d.ts +2 -1
- package/dist/types/components/menu/MenuItem.d.ts +1 -1
- package/dist/types/components/menu/types.d.ts +2 -2
- package/dist/types/components/navigator/Navigator.d.ts +4 -4
- package/dist/types/components/progress/ProgressBar.d.ts +2 -2
- package/dist/types/components/progress/ProgressCircle.d.ts +2 -2
- package/dist/types/components/tabpanel/Tab.d.ts +5 -5
- package/dist/types/components/tabpanel/TabPanel.d.ts +10 -1
- package/dist/types/core/content/Content.d.ts +3 -2
- package/dist/types/core/headfoot/HeadFoot.d.ts +1 -9
- package/dist/types/core/responsive/Responsive.d.ts +1 -1
- package/dist/types/core/theme/ThemeProvider.d.ts +4 -4
- package/dist/types/hooks/useOverlayService.d.ts +3 -5
- package/dist/types/index.d.ts +3 -0
- package/dist/types/overlays/alert/Alert.d.ts +2 -2
- package/dist/types/overlays/flyout/Flyout.d.ts +3 -2
- package/dist/types/overlays/message/Message.d.ts +2 -2
- package/dist/types/overlays/modal/Modal.d.ts +4 -3
- package/dist/types/overlays/toast/Toast.d.ts +2 -2
- package/dist/types/overlays/tooltip/Tooltip.d.ts +1 -1
- package/dist/types/types/icons.d.ts +4 -0
- package/dist/types/types/index.d.ts +18 -6
- package/dist/types/typography/Abbr.d.ts +6 -2
- package/dist/types/typography/Anchor.d.ts +25 -0
- package/dist/types/typography/Mark.d.ts +2 -2
- 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 +7 -9
- package/src/components/actionLabel/ActionLabel.tsx +15 -6
- package/src/components/animations/Animations.tsx +29 -23
- package/src/components/avatar/Avatar.tsx +74 -88
- package/src/components/avatar/AvatarGroup.tsx +4 -4
- package/src/components/badge/Badge.tsx +11 -7
- package/src/components/breadcrumbs/Breadcrumbs.tsx +13 -9
- package/src/components/button/Button.tsx +27 -22
- package/src/components/button/ButtonGroup.tsx +7 -7
- package/src/components/button/ConfirmButton.tsx +15 -5
- package/src/components/button/ToggleButtonGroup.tsx +5 -5
- package/src/components/callout/Callout.tsx +26 -11
- package/src/components/card/Card.tsx +10 -7
- package/src/components/card/CardCover.tsx +11 -6
- package/src/components/chip/Chip.tsx +17 -13
- package/src/components/collapsable/Collapsable.tsx +9 -4
- package/src/components/divider/Divider.tsx +15 -10
- package/src/components/dropdown/Dropdown.tsx +5 -5
- package/src/components/dropdown/DropdownTool.tsx +5 -3
- package/src/components/icon/Icon.tsx +55 -67
- package/src/components/media/Media.tsx +141 -106
- package/src/components/menu/ContextMenu.tsx +36 -11
- package/src/components/menu/Menu.tsx +51 -30
- package/src/components/menu/MenuItem.tsx +19 -9
- package/src/components/menu/types.ts +2 -2
- package/src/components/meter/Meter.tsx +2 -3
- package/src/components/navigator/Navigator.tsx +19 -5
- package/src/components/panel/Panel.tsx +10 -9
- package/src/components/panel/PanelGroup.tsx +1 -2
- package/src/components/progress/ProgressBar.tsx +8 -9
- package/src/components/progress/ProgressCircle.tsx +6 -9
- package/src/components/tabpanel/Tab.tsx +81 -64
- package/src/components/tabpanel/TabPanel.tsx +34 -12
- package/src/core/aside/Aside.tsx +11 -10
- package/src/core/boundary/ErrorBoundary.tsx +8 -7
- package/src/core/boundary/ErrorIcon.tsx +1 -2
- package/src/core/content/Content.tsx +17 -12
- package/src/core/headfoot/HeadFoot.tsx +2 -35
- package/src/core/page/Page.tsx +3 -3
- package/src/core/responsive/Responsive.tsx +8 -7
- package/src/core/section/Section.tsx +1 -2
- package/src/core/theme/ThemeProvider.tsx +11 -12
- package/src/core/viewport/Viewport.tsx +1 -2
- package/src/hooks/useNavigator.tsx +10 -5
- package/src/hooks/useOverlayService.tsx +12 -6
- 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 +25 -31
- package/src/overlays/flyout/Flyout.tsx +65 -64
- package/src/overlays/message/Message.tsx +10 -7
- package/src/overlays/modal/Modal.tsx +18 -13
- package/src/overlays/toast/Toast.tsx +18 -27
- package/src/overlays/tooltip/Tooltip.tsx +30 -9
- package/src/types/icons.ts +9 -0
- package/src/types/index.ts +240 -27
- package/src/typography/Abbr.tsx +15 -9
- package/src/typography/{Link.tsx → Anchor.tsx} +8 -13
- package/src/typography/Mark.tsx +4 -9
- package/src/typography/Text.tsx +4 -12
- package/src/typography/Title.tsx +2 -6
- package/src/typography/index.ts +1 -1
- package/src/utils/cloneElement.ts +44 -0
- 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
- package/src/overlays/tooltip/Tooltip.module.css +0 -53
|
@@ -30,11 +30,14 @@ import {
|
|
|
30
30
|
useInteractions,
|
|
31
31
|
useRole,
|
|
32
32
|
} from "@floating-ui/react";
|
|
33
|
+
import { isString } from "@react-fabric/utilities";
|
|
33
34
|
import classNames from "classnames";
|
|
34
35
|
import {
|
|
35
36
|
Fragment,
|
|
37
|
+
isValidElement,
|
|
36
38
|
useCallback,
|
|
37
39
|
useEffect,
|
|
40
|
+
type ElementType,
|
|
38
41
|
type PropsWithChildren,
|
|
39
42
|
} from "react";
|
|
40
43
|
import { Loading } from "../../components/animations/Animations";
|
|
@@ -50,13 +53,13 @@ import {
|
|
|
50
53
|
type TestProps,
|
|
51
54
|
} from "../../types";
|
|
52
55
|
import { CoreIcons } from "../../types/icons";
|
|
53
|
-
import classes from "./Flyout.module.css";
|
|
54
56
|
|
|
55
57
|
export interface FlyoutProps
|
|
56
58
|
extends AriaProps,
|
|
57
59
|
TestProps,
|
|
58
|
-
IconProps,
|
|
60
|
+
Omit<IconProps, "icon">,
|
|
59
61
|
ChildrenProp {
|
|
62
|
+
icon?: string | ElementType<IconProps>;
|
|
60
63
|
/**
|
|
61
64
|
* flyout alignment
|
|
62
65
|
*/
|
|
@@ -140,6 +143,7 @@ export const Flyout = ({
|
|
|
140
143
|
});
|
|
141
144
|
const dismiss = useDismiss(context, {
|
|
142
145
|
outsidePressEvent: "mousedown",
|
|
146
|
+
outsidePress: !hideMask,
|
|
143
147
|
escapeKey: true,
|
|
144
148
|
});
|
|
145
149
|
const role = useRole(context);
|
|
@@ -173,9 +177,6 @@ export const Flyout = ({
|
|
|
173
177
|
useEffect(() => {
|
|
174
178
|
setTimeout(() => {
|
|
175
179
|
refs.floating.current && (refs.floating.current.dataset.show = "true");
|
|
176
|
-
refs.floating.current
|
|
177
|
-
?.querySelector<HTMLElement>('[role="dialog"]')
|
|
178
|
-
?.focus();
|
|
179
180
|
}, 50);
|
|
180
181
|
}, []);
|
|
181
182
|
|
|
@@ -201,7 +202,7 @@ export const Flyout = ({
|
|
|
201
202
|
<FloatingOverlay
|
|
202
203
|
lockScroll
|
|
203
204
|
style={{ zIndex: "var(--z-overlay-mask)" }}
|
|
204
|
-
className="bg-
|
|
205
|
+
className="bg-tint-100/10 backdrop-blur-sm transition-all"
|
|
205
206
|
>
|
|
206
207
|
{children}
|
|
207
208
|
</FloatingOverlay>
|
|
@@ -214,68 +215,68 @@ export const Flyout = ({
|
|
|
214
215
|
<FloatingPortal>
|
|
215
216
|
<Wrapper>
|
|
216
217
|
<FloatingFocusManager context={context}>
|
|
217
|
-
<
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
>
|
|
239
|
-
<
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
<Icon
|
|
246
|
-
icon={icon}
|
|
247
|
-
bg={iconBg}
|
|
248
|
-
color={iconColor}
|
|
249
|
-
className={classNames(iconClassName, "p-1")}
|
|
250
|
-
rtlFlip={rtlFlip}
|
|
251
|
-
/>
|
|
252
|
-
)}
|
|
253
|
-
<label className="flex-1 truncate py-2 px-1">{title}</label>
|
|
254
|
-
{actions}
|
|
218
|
+
<div
|
|
219
|
+
data-align={align}
|
|
220
|
+
className={classNames(
|
|
221
|
+
"fabric-flyout",
|
|
222
|
+
"fixed inset-y-0 overflow-hidden flex flex-col flex-nowrap pointer-events-auto shadow-xl",
|
|
223
|
+
align === "start" ? "start-0" : "end-0",
|
|
224
|
+
size === "sm" && "w-[20rem]",
|
|
225
|
+
size === "md" && "w-[40rem]",
|
|
226
|
+
size === "lg" && "w-[60vw]",
|
|
227
|
+
size === "xl" && "w-[80vw]",
|
|
228
|
+
)}
|
|
229
|
+
style={{
|
|
230
|
+
width,
|
|
231
|
+
minWidth,
|
|
232
|
+
}}
|
|
233
|
+
onMouseUpCapture={tryClosing}
|
|
234
|
+
ref={refs.setFloating}
|
|
235
|
+
{...getFloatingProps()}
|
|
236
|
+
{...aria}
|
|
237
|
+
{...aria}
|
|
238
|
+
>
|
|
239
|
+
<HotKeyWrapper>
|
|
240
|
+
<Header
|
|
241
|
+
flex
|
|
242
|
+
align="center"
|
|
243
|
+
className={classNames("fabric-flyoutHeader", headerClassName)}
|
|
244
|
+
>
|
|
245
|
+
{isString(icon) && (
|
|
255
246
|
<Icon
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
icon={CoreIcons.close}
|
|
262
|
-
onClick={() => handleClose(false)}
|
|
247
|
+
icon={icon}
|
|
248
|
+
bg={iconBg}
|
|
249
|
+
color={iconColor}
|
|
250
|
+
className={classNames(iconClassName, "p-1")}
|
|
251
|
+
rtlFlip={rtlFlip}
|
|
263
252
|
/>
|
|
264
|
-
|
|
265
|
-
{
|
|
266
|
-
<
|
|
267
|
-
|
|
253
|
+
)}
|
|
254
|
+
{isValidElement(icon) && icon}
|
|
255
|
+
<label className="flex-1 truncate py-2 px-1">{title}</label>
|
|
256
|
+
{actions}
|
|
257
|
+
<Icon
|
|
258
|
+
data-ref="panelClose"
|
|
268
259
|
className={classNames(
|
|
269
|
-
|
|
270
|
-
"
|
|
260
|
+
"fabric-panelAction",
|
|
261
|
+
"cursor-pointer p-1 text-xl self-stretch",
|
|
271
262
|
)}
|
|
272
|
-
{
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
263
|
+
icon={CoreIcons.close}
|
|
264
|
+
onClick={() => handleClose(false)}
|
|
265
|
+
/>
|
|
266
|
+
</Header>
|
|
267
|
+
{loading && <Loading />}
|
|
268
|
+
<div
|
|
269
|
+
role="dialog"
|
|
270
|
+
className={classNames(
|
|
271
|
+
"fabric-flyoutBody",
|
|
272
|
+
"flex-1 grid overflow-hidden",
|
|
273
|
+
)}
|
|
274
|
+
{...({ tabIndex: 0 } as AnyObject)}
|
|
275
|
+
>
|
|
276
|
+
{children}
|
|
277
|
+
</div>
|
|
278
|
+
</HotKeyWrapper>
|
|
279
|
+
</div>
|
|
279
280
|
</FloatingFocusManager>
|
|
280
281
|
</Wrapper>
|
|
281
282
|
</FloatingPortal>
|
|
@@ -24,9 +24,8 @@
|
|
|
24
24
|
import classNames from "classnames";
|
|
25
25
|
import { useCallback, useLayoutEffect, useRef } from "react";
|
|
26
26
|
import { Icon } from "../../components/icon/Icon";
|
|
27
|
-
import { type
|
|
28
|
-
import {
|
|
29
|
-
import classes from "./Message.module.css";
|
|
27
|
+
import { type ColorState, type Elements, type IconProps } from "../../types";
|
|
28
|
+
import { getColor } from "../../utils";
|
|
30
29
|
|
|
31
30
|
export interface MessageProps extends Omit<IconProps, "iconBg" | "iconColor"> {
|
|
32
31
|
/**
|
|
@@ -40,7 +39,7 @@ export interface MessageProps extends Omit<IconProps, "iconBg" | "iconColor"> {
|
|
|
40
39
|
/**
|
|
41
40
|
* theme color
|
|
42
41
|
*/
|
|
43
|
-
color?:
|
|
42
|
+
color?: ColorState;
|
|
44
43
|
/**
|
|
45
44
|
* extra action button
|
|
46
45
|
*/
|
|
@@ -77,11 +76,15 @@ export const Message = ({
|
|
|
77
76
|
return (
|
|
78
77
|
<div
|
|
79
78
|
className={classNames(
|
|
80
|
-
|
|
81
|
-
color ? getBgClass(color + "-300") : "bg-invert",
|
|
82
|
-
color ? getColorClass(color + "-900") : "text-invert",
|
|
79
|
+
"fabric-message",
|
|
83
80
|
"flex flex-nowrap gap-1 px-8 relative justify-center max-w-md pointer-events-auto rounded mb-2 select-none",
|
|
84
81
|
)}
|
|
82
|
+
style={{
|
|
83
|
+
backgroundColor: color
|
|
84
|
+
? getColor(color + "-300")
|
|
85
|
+
: "var(--bg-color-invert)",
|
|
86
|
+
color: color ? getColor(color + "-900") : "var(--text-color-invert)",
|
|
87
|
+
}}
|
|
85
88
|
ref={elRef}
|
|
86
89
|
>
|
|
87
90
|
{icon && <Icon icon={icon} size="md" rtlFlip={rtlFlip} />}
|
|
@@ -30,8 +30,14 @@ import {
|
|
|
30
30
|
useInteractions,
|
|
31
31
|
useRole,
|
|
32
32
|
} from "@floating-ui/react";
|
|
33
|
+
import { isString } from "@react-fabric/utilities";
|
|
33
34
|
import classNames from "classnames";
|
|
34
|
-
import {
|
|
35
|
+
import {
|
|
36
|
+
type ElementType,
|
|
37
|
+
isValidElement,
|
|
38
|
+
useCallback,
|
|
39
|
+
useEffect,
|
|
40
|
+
} from "react";
|
|
35
41
|
import { Loading } from "../../components/animations/Animations";
|
|
36
42
|
import { Icon } from "../../components/icon/Icon";
|
|
37
43
|
import { Header } from "../../core/headfoot/HeadFoot";
|
|
@@ -45,13 +51,13 @@ import {
|
|
|
45
51
|
type TestProps,
|
|
46
52
|
} from "../../types";
|
|
47
53
|
import { CoreIcons } from "../../types/icons";
|
|
48
|
-
import classes from "./Modal.module.css";
|
|
49
54
|
|
|
50
55
|
export interface ModalProps
|
|
51
56
|
extends AriaProps,
|
|
52
57
|
TestProps,
|
|
53
|
-
IconProps,
|
|
58
|
+
Omit<IconProps, "icon">,
|
|
54
59
|
ChildrenProp {
|
|
60
|
+
icon?: string | ElementType<IconProps>;
|
|
55
61
|
/**
|
|
56
62
|
* header className
|
|
57
63
|
*/
|
|
@@ -95,7 +101,7 @@ export interface ModalProps
|
|
|
95
101
|
/**
|
|
96
102
|
* close handler
|
|
97
103
|
*/
|
|
98
|
-
onClose
|
|
104
|
+
onClose?: (...args: AnyObject) => void;
|
|
99
105
|
/**
|
|
100
106
|
* before close handler, return false to prevent close
|
|
101
107
|
*/
|
|
@@ -163,9 +169,6 @@ export const Modal = ({
|
|
|
163
169
|
useEffect(() => {
|
|
164
170
|
setTimeout(() => {
|
|
165
171
|
refs.floating.current && (refs.floating.current.dataset.show = "true");
|
|
166
|
-
refs.floating.current
|
|
167
|
-
?.querySelector<HTMLElement>("[role='dialog']")
|
|
168
|
-
?.focus();
|
|
169
172
|
}, 50);
|
|
170
173
|
}, []);
|
|
171
174
|
|
|
@@ -174,12 +177,12 @@ export const Modal = ({
|
|
|
174
177
|
<FloatingOverlay
|
|
175
178
|
lockScroll
|
|
176
179
|
style={{ zIndex: "var(--z-overlay-mask)" }}
|
|
177
|
-
className="bg-
|
|
180
|
+
className="bg-tint-100/20 backdrop-blur-sm grid place-items-center"
|
|
178
181
|
>
|
|
179
182
|
<FloatingFocusManager context={context}>
|
|
180
183
|
<dialog
|
|
181
184
|
className={classNames(
|
|
182
|
-
|
|
185
|
+
"fabric-modal",
|
|
183
186
|
"rounded-capped relative overflow-hidden flex flex-col flex-nowrap",
|
|
184
187
|
"ring-1 ring-tint-100 ring-offset-1 focus-within:ring-primary-300 shadow-xl",
|
|
185
188
|
size === "sm" && "w-[20rem]",
|
|
@@ -201,9 +204,10 @@ export const Modal = ({
|
|
|
201
204
|
<HotKeyWrapper>
|
|
202
205
|
<Header
|
|
203
206
|
flex
|
|
204
|
-
|
|
207
|
+
align="center"
|
|
208
|
+
className={classNames("fabric-modalHeader", headerClassName)}
|
|
205
209
|
>
|
|
206
|
-
{icon && (
|
|
210
|
+
{isString(icon) && (
|
|
207
211
|
<Icon
|
|
208
212
|
icon={icon}
|
|
209
213
|
bg={iconBg}
|
|
@@ -212,12 +216,13 @@ export const Modal = ({
|
|
|
212
216
|
rtlFlip={rtlFlip}
|
|
213
217
|
/>
|
|
214
218
|
)}
|
|
219
|
+
{isValidElement(icon) && icon}
|
|
215
220
|
<label className="flex-1 truncate py-2 px-1">{title}</label>
|
|
216
221
|
{actions}
|
|
217
222
|
<Icon
|
|
218
223
|
data-ref="panelClose"
|
|
219
224
|
className={classNames(
|
|
220
|
-
|
|
225
|
+
"fabric-panelAction",
|
|
221
226
|
"cursor-pointer p-1 text-xl self-stretch",
|
|
222
227
|
)}
|
|
223
228
|
icon={CoreIcons.close}
|
|
@@ -228,7 +233,7 @@ export const Modal = ({
|
|
|
228
233
|
<div
|
|
229
234
|
role="dialog"
|
|
230
235
|
className={classNames(
|
|
231
|
-
|
|
236
|
+
"fabric-modalBody",
|
|
232
237
|
"flex-1 grid overflow-hidden",
|
|
233
238
|
)}
|
|
234
239
|
{...({ tabIndex: 0 } as AnyObject)}
|
|
@@ -27,10 +27,9 @@ import { useTranslation } from "react-i18next";
|
|
|
27
27
|
import { AnimationIndicator } from "../../components/animations/Animations";
|
|
28
28
|
import { Button } from "../../components/button/Button";
|
|
29
29
|
import { Icon } from "../../components/icon/Icon";
|
|
30
|
-
import { type
|
|
30
|
+
import { type ColorState, type Elements, type IconProps } from "../../types";
|
|
31
31
|
import { CoreIcons } from "../../types/icons";
|
|
32
|
-
import {
|
|
33
|
-
import classes from "./Toast.module.css";
|
|
32
|
+
import { getColor } from "../../utils";
|
|
34
33
|
|
|
35
34
|
export interface ToastProps extends Omit<IconProps, "iconBg" | "iconColor"> {
|
|
36
35
|
/**
|
|
@@ -48,7 +47,7 @@ export interface ToastProps extends Omit<IconProps, "iconBg" | "iconColor"> {
|
|
|
48
47
|
/**
|
|
49
48
|
* theme color
|
|
50
49
|
*/
|
|
51
|
-
color?:
|
|
50
|
+
color?: ColorState;
|
|
52
51
|
/**
|
|
53
52
|
* extra action button
|
|
54
53
|
*/
|
|
@@ -87,31 +86,16 @@ export const Toast = ({
|
|
|
87
86
|
);
|
|
88
87
|
switch (color) {
|
|
89
88
|
case "danger":
|
|
90
|
-
return
|
|
91
|
-
<AnimationIndicator
|
|
92
|
-
type="cross"
|
|
93
|
-
className={getColorClass(color + "-600")}
|
|
94
|
-
/>
|
|
95
|
-
);
|
|
89
|
+
return <AnimationIndicator type="cross" color={"danger-600"} />;
|
|
96
90
|
case "success":
|
|
97
|
-
return
|
|
98
|
-
<AnimationIndicator
|
|
99
|
-
type="check"
|
|
100
|
-
className={getColorClass(color + "-600")}
|
|
101
|
-
/>
|
|
102
|
-
);
|
|
91
|
+
return <AnimationIndicator type="check" color={"success-600"} />;
|
|
103
92
|
case "warning":
|
|
104
|
-
return
|
|
105
|
-
<AnimationIndicator
|
|
106
|
-
type="exclaim"
|
|
107
|
-
className={getColorClass(color + "-600")}
|
|
108
|
-
/>
|
|
109
|
-
);
|
|
93
|
+
return <AnimationIndicator type="exclaim" color={"warning-600"} />;
|
|
110
94
|
default:
|
|
111
95
|
return (
|
|
112
96
|
<AnimationIndicator
|
|
113
97
|
type={type === "confirm" ? "question" : "info"}
|
|
114
|
-
|
|
98
|
+
color={`${color}-600`}
|
|
115
99
|
/>
|
|
116
100
|
);
|
|
117
101
|
}
|
|
@@ -138,22 +122,29 @@ export const Toast = ({
|
|
|
138
122
|
<div
|
|
139
123
|
role="alert"
|
|
140
124
|
className={classNames(
|
|
141
|
-
|
|
142
|
-
getBorderClass(color + "-300"),
|
|
125
|
+
"fabric-toast",
|
|
143
126
|
"flex flex-nowrap max-w-sm bg-base min-w-72 border pointer-events-auto relative overflow-hidden rounded-capped mt-4 select-none",
|
|
144
127
|
)}
|
|
128
|
+
style={{
|
|
129
|
+
borderColor: getColor(color + "-300"),
|
|
130
|
+
}}
|
|
145
131
|
ref={elRef}
|
|
146
132
|
>
|
|
147
133
|
<div
|
|
148
|
-
className={classNames("flex-initial p-2"
|
|
134
|
+
className={classNames("flex-initial p-2")}
|
|
135
|
+
style={{
|
|
136
|
+
backgroundColor: getColor(color + "-300"),
|
|
137
|
+
}}
|
|
149
138
|
>
|
|
150
139
|
{iconType}
|
|
151
140
|
</div>
|
|
152
141
|
<div
|
|
153
142
|
className={classNames(
|
|
154
|
-
getBgClass(color + "-50/50"),
|
|
155
143
|
"flex flex-col flex-1 flex-nowrap overflow-hidden p-2",
|
|
156
144
|
)}
|
|
145
|
+
style={{
|
|
146
|
+
backgroundColor: getColor(color + "-50"),
|
|
147
|
+
}}
|
|
157
148
|
>
|
|
158
149
|
<div className="flex flex-nowrap gap-2 items-start">
|
|
159
150
|
<div className="font-medium flex-1">{title}</div>
|
|
@@ -51,7 +51,7 @@ import { Icon } from "../../components/icon/Icon";
|
|
|
51
51
|
import { useIsRtl } from "../../hooks/useIsRtl";
|
|
52
52
|
import { type RefProp, type TooltipType } from "../../types";
|
|
53
53
|
import { CoreIcons } from "../../types/icons";
|
|
54
|
-
import
|
|
54
|
+
import { getColor } from "../../utils";
|
|
55
55
|
|
|
56
56
|
export interface TooltipProps extends TooltipType, RefProp {
|
|
57
57
|
/**
|
|
@@ -82,6 +82,7 @@ export const Tooltip = ({
|
|
|
82
82
|
ref,
|
|
83
83
|
children,
|
|
84
84
|
color,
|
|
85
|
+
textColor,
|
|
85
86
|
content,
|
|
86
87
|
open,
|
|
87
88
|
copyContent,
|
|
@@ -153,7 +154,7 @@ export const Tooltip = ({
|
|
|
153
154
|
return (
|
|
154
155
|
<span
|
|
155
156
|
role="none"
|
|
156
|
-
className="ms-2 cursor-pointer text-
|
|
157
|
+
className="ms-2 cursor-pointer text-dimmed flex-content opacity-75 hover:opacity-90 active:opacity-60"
|
|
157
158
|
onClick={handler}
|
|
158
159
|
>
|
|
159
160
|
<Icon icon={CoreIcons.copy} />
|
|
@@ -173,25 +174,45 @@ export const Tooltip = ({
|
|
|
173
174
|
<FloatingPortal>
|
|
174
175
|
<dfn
|
|
175
176
|
data-ref="tooltip"
|
|
176
|
-
data-color={color}
|
|
177
177
|
className={classNames(
|
|
178
|
-
|
|
179
|
-
"select-none text-sm not-italic flex py-1 px-2 rounded shadow-md bg-
|
|
178
|
+
"fabric-tooltip z-(--z-tooltip)",
|
|
179
|
+
"select-none text-sm not-italic flex py-1 px-2 !max-w-lg rounded shadow-md bg-muted",
|
|
180
180
|
)}
|
|
181
181
|
ref={refs.setFloating}
|
|
182
|
-
style={
|
|
182
|
+
style={{
|
|
183
|
+
color: textColor ? getColor(textColor) : undefined,
|
|
184
|
+
backgroundColor: color ? getColor(color) : undefined,
|
|
185
|
+
...floatingStyles,
|
|
186
|
+
}}
|
|
183
187
|
{...getFloatingProps()}
|
|
184
188
|
>
|
|
185
189
|
<span
|
|
186
190
|
className={classNames(
|
|
187
|
-
"font-medium
|
|
188
|
-
|
|
191
|
+
"font-medium flex-1 break-all",
|
|
192
|
+
!textColor && "contrast",
|
|
193
|
+
isString(content) && "whitespace-pre-wrap mixed-lang",
|
|
189
194
|
)}
|
|
195
|
+
style={{
|
|
196
|
+
color: textColor
|
|
197
|
+
? undefined
|
|
198
|
+
: color
|
|
199
|
+
? getColor(color)
|
|
200
|
+
: "var(--bg-color-muted)",
|
|
201
|
+
}}
|
|
190
202
|
>
|
|
191
203
|
{content}
|
|
192
204
|
</span>
|
|
193
205
|
{copyEl}
|
|
194
|
-
<FloatingArrow
|
|
206
|
+
<FloatingArrow
|
|
207
|
+
ref={arrowRef}
|
|
208
|
+
context={context}
|
|
209
|
+
strokeWidth={0.5}
|
|
210
|
+
className="fill-muted stroke-dimmed"
|
|
211
|
+
style={{
|
|
212
|
+
stroke: color ? getColor(color) : undefined,
|
|
213
|
+
fill: color ? getColor(color) : undefined,
|
|
214
|
+
}}
|
|
215
|
+
/>
|
|
195
216
|
</dfn>
|
|
196
217
|
</FloatingPortal>
|
|
197
218
|
)}
|
package/src/types/icons.ts
CHANGED
|
@@ -100,6 +100,11 @@ export module CoreIcons {
|
|
|
100
100
|
export const colapseAll =
|
|
101
101
|
"M18.707 21.293l-6-6c-0.391-0.391-1.024-0.391-1.414 0l-6 6c-0.391 0.391-0.391 1.024 0 1.414s1.024 0.391 1.414 0l5.293-5.293 5.293 5.293c0.391 0.391 1.024 0.391 1.414 0s0.391-1.024 0-1.414zM5.293 2.707l6 6c0.391 0.391 1.024 0.391 1.414 0l6-6c0.391-0.391 0.391-1.024 0-1.414s-1.024-0.391-1.414 0l-5.293 5.293-5.293-5.293c-0.391-0.391-1.024-0.391-1.414 0s-0.391 1.024 0 1.414z";
|
|
102
102
|
|
|
103
|
+
export const expandAllVar =
|
|
104
|
+
"M13,9V15H16L12,19L8,15H11V9H8L12,5L16,9H13M4,2H20V4H4V2M4,20H20V22H4V20Z";
|
|
105
|
+
export const colapseAllVar =
|
|
106
|
+
"M4,12H20V14H4V12M4,9H20V11H4V9M16,4L12,8L8,4H11V1H13V4H16M8,19L12,15L16,19H13V22H11V19H8Z";
|
|
107
|
+
|
|
103
108
|
export const folderClosed =
|
|
104
109
|
"M20,18H4V8H20M20,6H12L10,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V8C22,6.89 21.1,6 20,6Z";
|
|
105
110
|
export const folderOpen =
|
|
@@ -249,6 +254,7 @@ export module CoreIcons {
|
|
|
249
254
|
"M5.541 2.159c-0.153-0.1-0.34-0.159-0.541-0.159-0.552 0-1 0.448-1 1v18c-0.001 0.182 0.050 0.372 0.159 0.541 0.299 0.465 0.917 0.599 1.382 0.3l14-9c0.114-0.072 0.219-0.174 0.3-0.3 0.299-0.465 0.164-1.083-0.3-1.382zM6 4.832l11.151 7.168-11.151 7.168z";
|
|
250
255
|
export const pause =
|
|
251
256
|
"M6 3c-0.552 0-1 0.448-1 1v16c0 0.552 0.448 1 1 1h4c0.552 0 1-0.448 1-1v-16c0-0.552-0.448-1-1-1zM7 5h2v14h-2zM14 3c-0.552 0-1 0.448-1 1v16c0 0.552 0.448 1 1 1h4c0.552 0 1-0.448 1-1v-16c0-0.552-0.448-1-1-1zM15 5h2v14h-2z";
|
|
257
|
+
export const stop = "M18,18H6V6H18V18Z";
|
|
252
258
|
export const volumeOn =
|
|
253
259
|
"M10 7.081v9.839l-3.375-2.7c-0.17-0.137-0.388-0.22-0.625-0.22h-3v-4h3c0.218 0.001 0.439-0.071 0.625-0.219zM10.375 4.219l-4.726 3.781h-3.649c-0.552 0-1 0.448-1 1v6c0 0.552 0.448 1 1 1h3.649l4.726 3.781c0.431 0.345 1.061 0.275 1.406-0.156 0.148-0.185 0.22-0.407 0.219-0.625v-14c0-0.552-0.448-1-1-1-0.237 0-0.455 0.083-0.625 0.219zM18.363 5.637c1.757 1.758 2.635 4.059 2.635 6.364 0 2.304-0.878 4.605-2.635 6.362-0.39 0.391-0.39 1.024 0 1.414s1.024 0.39 1.414 0c2.147-2.147 3.22-4.963 3.221-7.776s-1.074-5.63-3.221-7.778c-0.39-0.391-1.024-0.391-1.414 0s-0.391 1.024 0 1.414zM14.833 9.167c0.781 0.781 1.171 1.803 1.171 2.828s-0.39 2.047-1.171 2.828c-0.39 0.391-0.39 1.024 0 1.414s1.024 0.39 1.414 0c1.171-1.171 1.757-2.708 1.757-4.242s-0.586-3.071-1.757-4.242c-0.39-0.391-1.024-0.391-1.414 0s-0.391 1.024 0 1.414z";
|
|
254
260
|
export const volumeOff =
|
|
@@ -348,6 +354,9 @@ export module CoreIcons {
|
|
|
348
354
|
export const colorPicker =
|
|
349
355
|
"M19.35,11.72L17.22,13.85L15.81,12.43L8.1,20.14L3.5,22L2,20.5L3.86,15.9L11.57,8.19L10.15,6.78L12.28,4.65L19.35,11.72M16.76,3C17.93,1.83 19.83,1.83 21,3C22.17,4.17 22.17,6.07 21,7.24L19.08,9.16L14.84,4.92L16.76,3M5.56,17.03L4.5,19.5L6.97,18.44L14.4,11L13,9.6L5.56,17.03Z";
|
|
350
356
|
|
|
357
|
+
export const list =
|
|
358
|
+
"M11 15H17V17H11V15M9 7H7V9H9V7M11 13H17V11H11V13M11 9H17V7H11V9M9 11H7V13H9V11M21 5V19C21 20.1 20.1 21 19 21H5C3.9 21 3 20.1 3 19V5C3 3.9 3.9 3 5 3H19C20.1 3 21 3.9 21 5M19 5H5V19H19V5M9 15H7V17H9V15Z";
|
|
359
|
+
|
|
351
360
|
/**
|
|
352
361
|
* alert icons
|
|
353
362
|
*/
|