@react-fabric/core 1.0.0-beta.35 → 1.0.0-beta.37
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} +2 -2
- 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} +63 -80
- package/{src/components/card/Card.module.css → css/components/_card.css} +32 -28
- package/{src/components/chip/Chip.module.css → css/components/_chip.css} +11 -10
- package/{src/components/collapsable/Collapsable.module.css → css/components/_collapsable.css} +3 -3
- package/{src/components/divider/Divider.module.css → css/components/_divider.css} +3 -3
- 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 -4
- 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} +43 -43
- package/{src/overlays/toast/Toast.module.css → css/components/_toast.css} +2 -2
- package/css/components/_tooltip.css +29 -0
- package/css/components/index.css +47 -0
- package/{src/core/aside/Aside.module.css → css/core/_aside.css} +42 -42
- package/{src/core/content/Content.module.css → css/core/_content.css} +9 -5
- 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 -4
- package/{src/core/page/Page.module.css → css/core/_page.css} +12 -8
- package/{src/core/responsive/Responsive.module.css → css/core/_responsive.css} +10 -10
- package/{src/core/section/Section.module.css → css/core/_section.css} +2 -2
- package/{src/core/theme/Theme.module.css → css/core/_theme.css} +3 -3
- package/{src/typography/Typography.module.css → css/core/_typography.css} +12 -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 +314 -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 +512 -0
- package/css/theme/index.css +44 -0
- package/dist/cjs/components/actionLabel/ActionLabel.js +2 -3
- package/dist/cjs/components/animations/Animations.js +14 -10
- package/dist/cjs/components/avatar/Avatar.js +2 -3
- package/dist/cjs/components/avatar/AvatarGroup.js +2 -3
- package/dist/cjs/components/badge/Badge.js +2 -3
- package/dist/cjs/components/breadcrumbs/Breadcrumbs.js +5 -6
- package/dist/cjs/components/button/Button.js +13 -10
- package/dist/cjs/components/button/ButtonGroup.js +1 -2
- package/dist/cjs/components/button/ToggleButtonGroup.js +1 -2
- package/dist/cjs/components/callout/Callout.js +11 -5
- package/dist/cjs/components/card/Card.js +3 -4
- package/dist/cjs/components/card/CardCover.js +9 -4
- package/dist/cjs/components/chip/Chip.js +4 -5
- package/dist/cjs/components/collapsable/Collapsable.js +3 -4
- package/dist/cjs/components/divider/Divider.js +9 -7
- package/dist/cjs/components/dropdown/Dropdown.js +2 -3
- package/dist/cjs/components/dropdown/DropdownTool.js +1 -1
- package/dist/cjs/components/icon/Icon.js +1 -2
- package/dist/cjs/components/media/Media.js +15 -11
- package/dist/cjs/components/menu/Menu.js +1 -1
- package/dist/cjs/components/menu/MenuItem.js +2 -3
- package/dist/cjs/components/meter/Meter.js +2 -3
- package/dist/cjs/components/navigator/Navigator.js +1 -1
- package/dist/cjs/components/panel/Panel.js +7 -8
- package/dist/cjs/components/panel/PanelGroup.js +1 -2
- package/dist/cjs/components/progress/ProgressBar.js +4 -4
- package/dist/cjs/components/progress/ProgressCircle.js +4 -3
- package/dist/cjs/components/tabpanel/Tab.js +1 -2
- package/dist/cjs/components/tabpanel/TabPanel.js +3 -4
- package/dist/cjs/core/aside/Aside.js +9 -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 +1 -2
- package/dist/cjs/core/headfoot/HeadFoot.js +2 -21
- package/dist/cjs/core/page/Page.js +2 -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/overlays/alert/Alert.js +14 -8
- package/dist/cjs/overlays/flyout/Flyout.js +4 -5
- package/dist/cjs/overlays/message/Message.js +5 -2
- package/dist/cjs/overlays/modal/Modal.js +4 -5
- package/dist/cjs/overlays/toast/Toast.js +16 -8
- package/dist/cjs/overlays/tooltip/Tooltip.js +19 -7
- package/dist/cjs/typography/Abbr.js +1 -2
- package/dist/cjs/typography/Anchor.js +1 -1
- package/dist/cjs/typography/Mark.js +1 -2
- package/dist/cjs/typography/Text.js +2 -3
- package/dist/cjs/typography/Title.js +1 -2
- package/dist/cjs/utils/getColor.js +1 -18
- package/dist/esm/components/actionLabel/ActionLabel.js +2 -3
- package/dist/esm/components/animations/Animations.js +15 -11
- package/dist/esm/components/avatar/Avatar.js +3 -4
- package/dist/esm/components/avatar/AvatarGroup.js +2 -3
- package/dist/esm/components/badge/Badge.js +2 -3
- package/dist/esm/components/breadcrumbs/Breadcrumbs.js +5 -6
- package/dist/esm/components/button/Button.js +13 -10
- package/dist/esm/components/button/ButtonGroup.js +1 -2
- package/dist/esm/components/button/ToggleButtonGroup.js +1 -2
- package/dist/esm/components/callout/Callout.js +11 -5
- package/dist/esm/components/card/Card.js +3 -4
- package/dist/esm/components/card/CardCover.js +9 -4
- package/dist/esm/components/chip/Chip.js +5 -6
- package/dist/esm/components/collapsable/Collapsable.js +3 -4
- package/dist/esm/components/divider/Divider.js +10 -8
- package/dist/esm/components/dropdown/Dropdown.js +2 -3
- package/dist/esm/components/dropdown/DropdownTool.js +1 -1
- package/dist/esm/components/icon/Icon.js +2 -3
- package/dist/esm/components/media/Media.js +15 -11
- package/dist/esm/components/menu/Menu.js +1 -1
- package/dist/esm/components/menu/MenuItem.js +2 -3
- package/dist/esm/components/meter/Meter.js +2 -3
- package/dist/esm/components/navigator/Navigator.js +1 -1
- package/dist/esm/components/panel/Panel.js +7 -8
- package/dist/esm/components/panel/PanelGroup.js +1 -2
- package/dist/esm/components/progress/ProgressBar.js +5 -5
- package/dist/esm/components/progress/ProgressCircle.js +5 -4
- package/dist/esm/components/tabpanel/Tab.js +1 -2
- package/dist/esm/components/tabpanel/TabPanel.js +3 -4
- package/dist/esm/core/aside/Aside.js +9 -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 +1 -2
- package/dist/esm/core/headfoot/HeadFoot.js +2 -21
- package/dist/esm/core/page/Page.js +2 -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/overlays/alert/Alert.js +15 -9
- package/dist/esm/overlays/flyout/Flyout.js +4 -5
- package/dist/esm/overlays/message/Message.js +6 -3
- package/dist/esm/overlays/modal/Modal.js +4 -5
- package/dist/esm/overlays/toast/Toast.js +17 -9
- package/dist/esm/overlays/tooltip/Tooltip.js +19 -7
- package/dist/esm/typography/Abbr.js +2 -3
- package/dist/esm/typography/Anchor.js +2 -2
- package/dist/esm/typography/Mark.js +2 -3
- package/dist/esm/typography/Text.js +3 -4
- package/dist/esm/typography/Title.js +2 -3
- package/dist/esm/utils/getColor.js +2 -16
- package/dist/types/components/animations/Animations.d.ts +4 -4
- package/dist/types/components/avatar/Avatar.d.ts +3 -3
- package/dist/types/components/button/Button.d.ts +2 -2
- package/dist/types/components/button/ButtonGroup.d.ts +2 -2
- package/dist/types/components/callout/Callout.d.ts +2 -2
- package/dist/types/components/chip/Chip.d.ts +2 -2
- package/dist/types/components/divider/Divider.d.ts +7 -3
- package/dist/types/components/icon/Icon.d.ts +3 -3
- package/dist/types/components/menu/types.d.ts +2 -2
- package/dist/types/components/navigator/Navigator.d.ts +2 -2
- 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 +2 -2
- package/dist/types/core/headfoot/HeadFoot.d.ts +1 -9
- package/dist/types/core/theme/ThemeProvider.d.ts +3 -3
- package/dist/types/overlays/alert/Alert.d.ts +2 -2
- package/dist/types/overlays/message/Message.d.ts +2 -2
- package/dist/types/overlays/toast/Toast.d.ts +2 -2
- package/dist/types/overlays/tooltip/Tooltip.d.ts +1 -1
- package/dist/types/types/index.d.ts +10 -5
- package/dist/types/typography/Abbr.d.ts +6 -2
- package/dist/types/typography/Anchor.d.ts +3 -3
- package/dist/types/typography/Mark.d.ts +2 -2
- package/dist/types/utils/getColor.d.ts +1 -4
- package/package.json +16 -7
- package/src/components/actionLabel/ActionLabel.tsx +2 -3
- package/src/components/animations/Animations.tsx +19 -19
- package/src/components/avatar/Avatar.tsx +6 -8
- package/src/components/avatar/AvatarGroup.tsx +3 -4
- package/src/components/badge/Badge.tsx +3 -4
- package/src/components/breadcrumbs/Breadcrumbs.tsx +5 -6
- package/src/components/button/Button.tsx +15 -13
- package/src/components/button/ButtonGroup.tsx +4 -5
- package/src/components/button/ToggleButtonGroup.tsx +2 -3
- package/src/components/callout/Callout.tsx +14 -8
- package/src/components/card/Card.tsx +6 -7
- package/src/components/card/CardCover.tsx +11 -6
- package/src/components/chip/Chip.tsx +9 -10
- package/src/components/collapsable/Collapsable.tsx +3 -4
- package/src/components/divider/Divider.tsx +15 -11
- package/src/components/dropdown/Dropdown.tsx +2 -3
- package/src/components/dropdown/DropdownTool.tsx +1 -1
- package/src/components/icon/Icon.tsx +7 -9
- package/src/components/media/Media.tsx +19 -14
- package/src/components/menu/Menu.tsx +1 -1
- package/src/components/menu/MenuItem.tsx +5 -6
- package/src/components/menu/types.ts +2 -2
- package/src/components/meter/Meter.tsx +2 -3
- package/src/components/navigator/Navigator.tsx +4 -3
- package/src/components/panel/Panel.tsx +7 -8
- 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 +3 -4
- package/src/components/tabpanel/TabPanel.tsx +3 -4
- package/src/core/aside/Aside.tsx +9 -10
- package/src/core/boundary/ErrorBoundary.tsx +8 -7
- package/src/core/boundary/ErrorIcon.tsx +1 -2
- package/src/core/content/Content.tsx +1 -2
- package/src/core/headfoot/HeadFoot.tsx +1 -34
- package/src/core/page/Page.tsx +2 -3
- package/src/core/responsive/Responsive.tsx +4 -5
- package/src/core/section/Section.tsx +1 -2
- package/src/core/theme/ThemeProvider.tsx +10 -11
- package/src/core/viewport/Viewport.tsx +1 -2
- package/src/overlays/alert/Alert.tsx +19 -27
- package/src/overlays/flyout/Flyout.tsx +4 -5
- package/src/overlays/message/Message.tsx +10 -7
- package/src/overlays/modal/Modal.tsx +4 -5
- package/src/overlays/toast/Toast.tsx +18 -27
- package/src/overlays/tooltip/Tooltip.tsx +28 -7
- package/src/types/index.ts +230 -18
- package/src/typography/Abbr.tsx +15 -9
- package/src/typography/Anchor.tsx +5 -10
- package/src/typography/Mark.tsx +4 -9
- package/src/typography/Text.tsx +3 -11
- package/src/typography/Title.tsx +2 -5
- package/src/utils/getColor.ts +1 -17
- 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/divider/Divider.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/divider/Divider.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/src/overlays/tooltip/Tooltip.module.css +0 -53
|
@@ -7,7 +7,6 @@ import classNames from 'classnames';
|
|
|
7
7
|
import { useMemo, Children } from 'react';
|
|
8
8
|
import { Anchor } from '../../typography/Anchor.js';
|
|
9
9
|
import { Dropdown } from '../dropdown/Dropdown.js';
|
|
10
|
-
import classes from './Breadcrumbs.module.css';
|
|
11
10
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
12
11
|
|
|
13
12
|
var _excluded = ["variant", "className", "separator", "children", "color"];
|
|
@@ -37,11 +36,11 @@ var Breadcrumbs = function Breadcrumbs(_ref) {
|
|
|
37
36
|
"data-ref": "breadcrumbs",
|
|
38
37
|
"data-color": color,
|
|
39
38
|
"data-variant": variant,
|
|
40
|
-
className: classNames(
|
|
39
|
+
className: classNames("fabric-breadcrumbs", className, "flex flex-nowrap items-center")
|
|
41
40
|
}, aria), {}, {
|
|
42
41
|
children: [start.map(function (link, idx) {
|
|
43
42
|
return /*#__PURE__*/jsx("li", {
|
|
44
|
-
className:
|
|
43
|
+
className: "fabric-breadcrumbLink",
|
|
45
44
|
"data-separator": separator,
|
|
46
45
|
children: link
|
|
47
46
|
}, idx);
|
|
@@ -49,7 +48,7 @@ var Breadcrumbs = function Breadcrumbs(_ref) {
|
|
|
49
48
|
closeOnClick: true,
|
|
50
49
|
showArrow: true,
|
|
51
50
|
children: [/*#__PURE__*/jsx("li", {
|
|
52
|
-
className:
|
|
51
|
+
className: "fabric-breadcrumbLink",
|
|
53
52
|
"data-separator": separator,
|
|
54
53
|
"data-ref": "breadcrumbOverflow",
|
|
55
54
|
children: /*#__PURE__*/jsx(Anchor, {
|
|
@@ -58,12 +57,12 @@ var Breadcrumbs = function Breadcrumbs(_ref) {
|
|
|
58
57
|
})
|
|
59
58
|
}), /*#__PURE__*/jsx("div", {
|
|
60
59
|
"data-color": color,
|
|
61
|
-
className: classNames(
|
|
60
|
+
className: classNames("fabric-breadcrumbOverflow", "flex flex-col"),
|
|
62
61
|
children: overflow
|
|
63
62
|
})]
|
|
64
63
|
}), end === null || end === void 0 ? void 0 : end.map(function (link, idx) {
|
|
65
64
|
return /*#__PURE__*/jsx("li", {
|
|
66
|
-
className:
|
|
65
|
+
className: "fabric-breadcrumbLink",
|
|
67
66
|
"data-separator": separator,
|
|
68
67
|
children: link
|
|
69
68
|
}, idx);
|
|
@@ -10,11 +10,11 @@ import { useEffectDebugger } from '../../hooks/useEffectDebugger.js';
|
|
|
10
10
|
import { HotKey } from '../../hotkeys/HotKey.js';
|
|
11
11
|
import { HotKeyLabel } from '../../hotkeys/HotKeyLabel.js';
|
|
12
12
|
import { Tooltip } from '../../overlays/tooltip/Tooltip.js';
|
|
13
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
14
|
+
import { getColor } from '../../utils/getColor.js';
|
|
13
15
|
import { AnimationIndicator } from '../animations/Animations.js';
|
|
14
16
|
import { getBadgeProps, Badge } from '../badge/Badge.js';
|
|
15
17
|
import { Icon } from '../icon/Icon.js';
|
|
16
|
-
import classes from './Button.module.css';
|
|
17
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
18
18
|
|
|
19
19
|
var _excluded = ["as", "ref", "children", "className", "active", "color", "icon", "iconBg", "iconColor", "iconAlign", "altIcon", "rtlFlip", "rounded", "size", "disabled", "loading", "variant", "badge", "fullWidth", "spinOnHover", "onClick", "actionMessage", "stopPropagation", "type", "hotKey", "showActionDone", "showActionDoneEvent", "tabIndex", "data-ref"];
|
|
20
20
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -101,7 +101,7 @@ var Button = function Button(_ref) {
|
|
|
101
101
|
return {
|
|
102
102
|
content: actionMessage,
|
|
103
103
|
placement: "top",
|
|
104
|
-
color: color,
|
|
104
|
+
color: "".concat(color, "-100"),
|
|
105
105
|
open: true
|
|
106
106
|
};
|
|
107
107
|
}
|
|
@@ -115,7 +115,7 @@ var Button = function Button(_ref) {
|
|
|
115
115
|
});
|
|
116
116
|
var E = as !== null && as !== void 0 ? as : "button";
|
|
117
117
|
return /*#__PURE__*/jsxs("div", {
|
|
118
|
-
className: classNames(
|
|
118
|
+
className: classNames("fabric-buttonWrapper", className, "relative align-text-top select-none focus-within:z-1", fullWidth ? "block w-full" : "inline-block"),
|
|
119
119
|
"data-ref": dataRef !== null && dataRef !== void 0 ? dataRef : "button",
|
|
120
120
|
"data-size": size,
|
|
121
121
|
"data-loading": busy || loading,
|
|
@@ -127,7 +127,7 @@ var Button = function Button(_ref) {
|
|
|
127
127
|
children: /*#__PURE__*/jsxs(E, _objectSpread(_objectSpread({
|
|
128
128
|
ref: mergeRefs(ref, refEl),
|
|
129
129
|
role: "button",
|
|
130
|
-
className: classNames(
|
|
130
|
+
className: classNames("fabric-button", "pointer-events-auto cursor-pointer select-none flex flex-nowrap w-full h-full items-center border-0 -outline-offset-1 justify-center max-w-72 p-0 font-sans font-medium appearance-none", "focus-visible:ring-2 focus-visible:ring-offset-2 buttonInner", fullWidth && "max-w-full w-full", rounded && "rounded-full", spinOnHover && "fabric-spinOnHover"),
|
|
131
131
|
type: type,
|
|
132
132
|
disabled: disabled,
|
|
133
133
|
tabIndex: tabIndex,
|
|
@@ -138,29 +138,32 @@ var Button = function Button(_ref) {
|
|
|
138
138
|
"data-variant": variant
|
|
139
139
|
}, aria), {}, {
|
|
140
140
|
children: [icon && /*#__PURE__*/jsx(Icon, {
|
|
141
|
-
className:
|
|
141
|
+
className: "fabric-buttonIcon",
|
|
142
142
|
icon: icon,
|
|
143
143
|
bg: iconBg,
|
|
144
144
|
color: iconColor,
|
|
145
145
|
rtlFlip: rtlFlip,
|
|
146
146
|
"data-align": iconAlign
|
|
147
147
|
}), /*#__PURE__*/isValidElement(children) && /*#__PURE__*/jsx("div", {
|
|
148
|
-
className:
|
|
148
|
+
className: "fabric-buttonChild",
|
|
149
149
|
children: children
|
|
150
150
|
}), isString(children) && /*#__PURE__*/jsx("label", {
|
|
151
|
-
className: classNames(
|
|
151
|
+
className: classNames("fabric-buttonLabel", "truncate"),
|
|
152
152
|
"data-colored-icon": !!iconBg,
|
|
153
153
|
children: children
|
|
154
154
|
}), !isNil(badge) && /*#__PURE__*/jsx(Badge, _objectSpread({}, badgeProps)), hotKey && /*#__PURE__*/jsx(HotKeyLabel, {
|
|
155
155
|
keyCombo: hotKey
|
|
156
156
|
}), altIcon && /*#__PURE__*/jsx(Icon, {
|
|
157
|
-
className:
|
|
157
|
+
className: "fabric-altIcon",
|
|
158
158
|
icon: altIcon,
|
|
159
159
|
rtlFlip: true
|
|
160
160
|
})]
|
|
161
161
|
}))
|
|
162
162
|
})), actionDone && /*#__PURE__*/jsx("div", {
|
|
163
|
-
className: classNames("absolute inset-0 overflow-hidden flex justify-center items-center",
|
|
163
|
+
className: classNames("absolute inset-0 overflow-hidden flex justify-center items-center", rounded ? "rounded-full" : "rounded"),
|
|
164
|
+
style: {
|
|
165
|
+
backgroundColor: getColor("".concat(color, "-300"))
|
|
166
|
+
},
|
|
164
167
|
children: /*#__PURE__*/jsx(AnimationIndicator, {
|
|
165
168
|
type: "check",
|
|
166
169
|
color: color
|
|
@@ -6,7 +6,6 @@ import classNames from 'classnames';
|
|
|
6
6
|
import { cloneElement } from 'react';
|
|
7
7
|
import { cloneChildren } from '../../utils/cloneElement.js';
|
|
8
8
|
import '@react-fabric/utilities';
|
|
9
|
-
import classes from './Button.module.css';
|
|
10
9
|
import { jsx } from 'react/jsx-runtime';
|
|
11
10
|
|
|
12
11
|
var _excluded = ["vertical", "className", "children", "variant", "rounded", "disabled", "fullWidth", "color", "size"];
|
|
@@ -25,7 +24,7 @@ var ButtonGroup = function ButtonGroup(_ref) {
|
|
|
25
24
|
aria = _objectWithoutProperties(_ref, _excluded);
|
|
26
25
|
return /*#__PURE__*/jsx("div", _objectSpread(_objectSpread({
|
|
27
26
|
"data-ref": "buttonGroup",
|
|
28
|
-
className: classNames(
|
|
27
|
+
className: classNames("fabric-buttonGroup", className, fullWidth ? "flex" : "inline-flex", "flex-nowrap align-middle rounded", vertical && "vertical", vertical && "flex-col items-stretch")
|
|
29
28
|
}, aria), {}, {
|
|
30
29
|
children: cloneChildren(children, function (child) {
|
|
31
30
|
return /*#__PURE__*/cloneElement(child, _objectSpread({
|
|
@@ -8,7 +8,6 @@ import classNames from 'classnames';
|
|
|
8
8
|
import { useMemo, useCallback, cloneElement } from 'react';
|
|
9
9
|
import { useControlledValue } from '../../hooks/useControlledValue.js';
|
|
10
10
|
import { cloneChildren } from '../../utils/cloneElement.js';
|
|
11
|
-
import classes from './Button.module.css';
|
|
12
11
|
import { jsx } from 'react/jsx-runtime';
|
|
13
12
|
|
|
14
13
|
var _excluded = ["vertical", "className", "children", "variant", "rounded", "disabled", "fullWidth", "color", "size", "value", "onChange"];
|
|
@@ -47,7 +46,7 @@ var ToggleButtonGroup = function ToggleButtonGroup(_ref) {
|
|
|
47
46
|
};
|
|
48
47
|
}, [currentValue, onChange]);
|
|
49
48
|
return /*#__PURE__*/jsx("div", _objectSpread(_objectSpread({
|
|
50
|
-
className: classNames(
|
|
49
|
+
className: classNames("fabric-buttonGroup", className, fullWidth ? "flex" : "inline-flex", "flex-nowrap align-middle", vertical && "vertical", vertical && "flex-col")
|
|
51
50
|
}, aria), {}, {
|
|
52
51
|
children: cloneChildren(children, function (child) {
|
|
53
52
|
return /*#__PURE__*/cloneElement(child, _objectSpread(_objectSpread({
|
|
@@ -4,15 +4,21 @@ import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
|
4
4
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
5
5
|
import classNames from 'classnames';
|
|
6
6
|
import { CoreIcons } from '../../types/icons.js';
|
|
7
|
-
import 'react';
|
|
8
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
9
|
-
import { getBgClass, getColorClass, getBorderClass } from '../../utils/getColor.js';
|
|
10
|
-
import '@react-fabric/utilities';
|
|
11
7
|
import { Icon } from '../icon/Icon.js';
|
|
8
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
12
9
|
|
|
13
10
|
var _excluded = ["children", "color", "legend", "title", "icon", "border", "onClose", "className"];
|
|
14
11
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
15
12
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
13
|
+
var colors = {
|
|
14
|
+
tint: "bg-tint-50/50 text-tint-800 border-tint-300",
|
|
15
|
+
primary: "bg-primary-50/50 text-primary-800 border-primary-300",
|
|
16
|
+
accent: "bg-accent-50/50 text-accent-800 border-accent-300",
|
|
17
|
+
info: "bg-info-50/50 text-info-800 border-info-300",
|
|
18
|
+
danger: "bg-danger-50/50 text-danger-800 border-danger-300",
|
|
19
|
+
success: "bg-success-50/50 text-success-800 border-success-300",
|
|
20
|
+
warning: "bg-warning-50/50 text-warning-800 border-warning-300"
|
|
21
|
+
};
|
|
16
22
|
var Callout = function Callout(_ref) {
|
|
17
23
|
var children = _ref.children,
|
|
18
24
|
_ref$color = _ref.color,
|
|
@@ -25,7 +31,7 @@ var Callout = function Callout(_ref) {
|
|
|
25
31
|
className = _ref.className,
|
|
26
32
|
aria = _objectWithoutProperties(_ref, _excluded);
|
|
27
33
|
return /*#__PURE__*/jsxs("fieldset", _objectSpread(_objectSpread({
|
|
28
|
-
className: classNames(
|
|
34
|
+
className: classNames("block rounded-capped border max-w-full relative overflow-hidden mb-4", colors[color], className, border === "dashed" && "border-dashed", border === "dotted" && "border-dotted")
|
|
29
35
|
}, aria), {}, {
|
|
30
36
|
children: [legend && /*#__PURE__*/jsx("legend", {
|
|
31
37
|
className: "px-2 mx-4 font-medium",
|
|
@@ -10,7 +10,6 @@ import { Header, Footer } from '../../core/headfoot/HeadFoot.js';
|
|
|
10
10
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
11
11
|
import '@react-fabric/utilities';
|
|
12
12
|
import { nodeCheck } from '../../utils/nodeCheck.js';
|
|
13
|
-
import classes from './Card.module.css';
|
|
14
13
|
|
|
15
14
|
var _excluded = ["children", "className", "bodyClassName", "selected", "selectedRibbon", "onClick", "flex", "draggable", "dragKey", "dragData", "ref"];
|
|
16
15
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -39,10 +38,10 @@ var Card = function Card(_ref) {
|
|
|
39
38
|
body = _useMemo2[1],
|
|
40
39
|
footer = _useMemo2[2];
|
|
41
40
|
return /*#__PURE__*/jsx("div", {
|
|
42
|
-
className: classNames(
|
|
41
|
+
className: classNames("fabric-cardWrapper", "rounded-capped relative grid", flex && "flex-1", selected && selectedRibbon && "selected", selected && "outline-2 outline-accent-500 outline-offset-2"),
|
|
43
42
|
children: /*#__PURE__*/jsx(ErrorBoundary, {
|
|
44
43
|
children: /*#__PURE__*/jsxs("div", _objectSpread(_objectSpread({
|
|
45
|
-
className: classNames(
|
|
44
|
+
className: classNames("fabric-card", className, "rounded-capped flex flex-col flex-nowrap overflow-hidden", onClick && "clickable"),
|
|
46
45
|
draggable: draggable,
|
|
47
46
|
onDragStart: !draggable ? undefined : function (e) {
|
|
48
47
|
var _e$dataTransfer;
|
|
@@ -52,7 +51,7 @@ var Card = function Card(_ref) {
|
|
|
52
51
|
}, aria), {}, {
|
|
53
52
|
children: [header, /*#__PURE__*/jsx("div", {
|
|
54
53
|
role: "none",
|
|
55
|
-
className: classNames(
|
|
54
|
+
className: classNames("fabric-cardBody", bodyClassName, "flex-1"),
|
|
56
55
|
onClick: onClick,
|
|
57
56
|
children: body
|
|
58
57
|
}), footer]
|
|
@@ -9,11 +9,15 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
9
9
|
import '@react-fabric/utilities';
|
|
10
10
|
import { nodeCheck } from '../../utils/nodeCheck.js';
|
|
11
11
|
import { Image, Video } from '../media/Media.js';
|
|
12
|
-
import classes from './Card.module.css';
|
|
13
12
|
|
|
14
13
|
var _excluded = ["className", "children", "height", "justify", "colorScheme"];
|
|
15
14
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
16
15
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
16
|
+
var scheme = {
|
|
17
|
+
inheritScheme: "inheritScheme",
|
|
18
|
+
light: "light",
|
|
19
|
+
dark: "dark"
|
|
20
|
+
};
|
|
17
21
|
var CardCover = function CardCover(_ref) {
|
|
18
22
|
var className = _ref.className,
|
|
19
23
|
children = _ref.children,
|
|
@@ -21,7 +25,8 @@ var CardCover = function CardCover(_ref) {
|
|
|
21
25
|
height = _ref$height === void 0 ? 120 : _ref$height,
|
|
22
26
|
_ref$justify = _ref.justify,
|
|
23
27
|
justify = _ref$justify === void 0 ? "end" : _ref$justify,
|
|
24
|
-
colorScheme = _ref.colorScheme,
|
|
28
|
+
_ref$colorScheme = _ref.colorScheme,
|
|
29
|
+
colorScheme = _ref$colorScheme === void 0 ? "inheritScheme" : _ref$colorScheme,
|
|
25
30
|
aria = _objectWithoutProperties(_ref, _excluded);
|
|
26
31
|
var _useMemo = useMemo(function () {
|
|
27
32
|
return Children.toArray(children).reduce(function (ret, node) {
|
|
@@ -36,10 +41,10 @@ var CardCover = function CardCover(_ref) {
|
|
|
36
41
|
style: {
|
|
37
42
|
height: height
|
|
38
43
|
},
|
|
39
|
-
className: classNames(
|
|
44
|
+
className: classNames("fabric-cardCover", scheme[colorScheme], "relative z-0")
|
|
40
45
|
}, aria), {}, {
|
|
41
46
|
children: [media, /*#__PURE__*/jsx("div", {
|
|
42
|
-
className: classNames(
|
|
47
|
+
className: classNames("fabric-cardCoverContent", "relative pointer-events-none z-1 flex flex-col flex-nowrap p-4 h-full", "justify-".concat(justify), className),
|
|
43
48
|
children: body
|
|
44
49
|
})]
|
|
45
50
|
}));
|
|
@@ -6,10 +6,9 @@ import classNames from 'classnames';
|
|
|
6
6
|
import { useCallback } from 'react';
|
|
7
7
|
import { useMemoDebugger } from '../../hooks/useEffectDebugger.js';
|
|
8
8
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
9
|
-
import { getColor
|
|
9
|
+
import { getColor } from '../../utils/getColor.js';
|
|
10
10
|
import '@react-fabric/utilities';
|
|
11
11
|
import { Icon } from '../icon/Icon.js';
|
|
12
|
-
import classes from './Chip.module.css';
|
|
13
12
|
|
|
14
13
|
var _excluded = ["ref", "children", "className", "size", "color", "variant", "icon", "iconBg", "iconColor", "rtlFlip", "disabled", "onClick", "onIconClick", "onRemove", "rounded", "stopPropagation", "as"];
|
|
15
14
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -67,7 +66,7 @@ var Chip = function Chip(_ref) {
|
|
|
67
66
|
ref: ref,
|
|
68
67
|
role: "term",
|
|
69
68
|
"data-ref": "chip",
|
|
70
|
-
className: classNames(
|
|
69
|
+
className: classNames("fabric-chip", className, "select-none inline-flex flex-nowrap items-center align-middle max-w-72 rounded", rounded && "rounded-full", !!onClick && "clickable", disabled && "disabled"),
|
|
71
70
|
style: styles,
|
|
72
71
|
"data-variant": variant,
|
|
73
72
|
"data-inner-clickable": !!onClick,
|
|
@@ -75,7 +74,7 @@ var Chip = function Chip(_ref) {
|
|
|
75
74
|
}, aria), {}, {
|
|
76
75
|
children: [icon && /*#__PURE__*/jsx(Icon, {
|
|
77
76
|
"data-ref": "chipIcon",
|
|
78
|
-
className: classNames(
|
|
77
|
+
className: classNames("fabric-chipIcon", "m-1"),
|
|
79
78
|
icon: icon,
|
|
80
79
|
bg: iconBg,
|
|
81
80
|
onClick: onIconClick,
|
|
@@ -83,13 +82,13 @@ var Chip = function Chip(_ref) {
|
|
|
83
82
|
rtlFlip: rtlFlip
|
|
84
83
|
}), children && /*#__PURE__*/jsx("label", {
|
|
85
84
|
"data-ref": "chipLabel",
|
|
86
|
-
className: classNames(
|
|
85
|
+
className: classNames("fabric-chipLabel", "truncate"),
|
|
87
86
|
children: children
|
|
88
87
|
}), onRemove && /*#__PURE__*/jsx("span", {
|
|
89
88
|
role: "none",
|
|
90
89
|
"data-ref": "chipRemove",
|
|
91
90
|
"data-inner-cliackable": true,
|
|
92
|
-
className: classNames(
|
|
91
|
+
className: classNames("fabric-chipRemove", "cursor-pointer pe-1 opacity-65 hover:opacity-90"),
|
|
93
92
|
onClick: removeHandler,
|
|
94
93
|
children: "\xD7"
|
|
95
94
|
})]
|
|
@@ -8,7 +8,6 @@ import classNames from 'classnames';
|
|
|
8
8
|
import { useState, useRef, useImperativeHandle, useEffect, useMemo, Children } from 'react';
|
|
9
9
|
import { CoreIcons } from '../../types/icons.js';
|
|
10
10
|
import { Icon } from '../icon/Icon.js';
|
|
11
|
-
import classes from './Collapsable.module.css';
|
|
12
11
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
13
12
|
|
|
14
13
|
var _excluded = ["ref", "disabled", "className", "bodyClassName", "headerClassName", "children", "iconAlign", "stickyHeader", "iconClosed", "iconOpen", "open", "onClose", "onOpen"];
|
|
@@ -58,12 +57,12 @@ var Collapsable = function Collapsable(_ref) {
|
|
|
58
57
|
head = _useMemo2[0],
|
|
59
58
|
body = _useMemo2[1];
|
|
60
59
|
return /*#__PURE__*/jsxs("div", _objectSpread(_objectSpread({
|
|
61
|
-
className: classNames(
|
|
60
|
+
className: classNames("fabric-collapsable", className)
|
|
62
61
|
}, aria), {}, {
|
|
63
62
|
children: [/*#__PURE__*/jsxs("div", {
|
|
64
63
|
role: "none",
|
|
65
64
|
ref: headRef,
|
|
66
|
-
className: classNames(
|
|
65
|
+
className: classNames("fabric-collapsableHead", "flex gap-1 flex-nowrap py-2 font-medium cursor-pointer items-center select-none hover:opacity-70", headerClassName, stickyHeader && "bg-base sticky top-0 px-2 py-1 z-10", iconAlign === "end" ? "flex-row-reverse" : "flex-row"),
|
|
67
66
|
onClick: function onClick() {
|
|
68
67
|
return !disabled && setOpenState(!openState);
|
|
69
68
|
},
|
|
@@ -77,7 +76,7 @@ var Collapsable = function Collapsable(_ref) {
|
|
|
77
76
|
})]
|
|
78
77
|
}), openState && /*#__PURE__*/jsx("div", {
|
|
79
78
|
ref: bodyRef,
|
|
80
|
-
className: classNames(
|
|
79
|
+
className: classNames("fabric-collapsableBody", bodyClassName),
|
|
81
80
|
children: body
|
|
82
81
|
})]
|
|
83
82
|
}));
|
|
@@ -3,9 +3,8 @@
|
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import { useCallback } from 'react';
|
|
5
5
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
6
|
-
import {
|
|
6
|
+
import { getColor } from '../../utils/getColor.js';
|
|
7
7
|
import '@react-fabric/utilities';
|
|
8
|
-
import classes from './Divider.module.css';
|
|
9
8
|
|
|
10
9
|
/*
|
|
11
10
|
* React Fabric
|
|
@@ -32,10 +31,12 @@ import classes from './Divider.module.css';
|
|
|
32
31
|
|
|
33
32
|
var Divider = function Divider(_ref) {
|
|
34
33
|
var children = _ref.children,
|
|
35
|
-
color = _ref.color,
|
|
34
|
+
_ref$color = _ref.color,
|
|
35
|
+
color = _ref$color === void 0 ? "tint-300" : _ref$color,
|
|
36
36
|
vertical = _ref.vertical,
|
|
37
|
-
|
|
38
|
-
_ref
|
|
37
|
+
labelClassName = _ref.labelClassName;
|
|
38
|
+
_ref.fill;
|
|
39
|
+
var _ref$align = _ref.align,
|
|
39
40
|
align = _ref$align === void 0 ? "start" : _ref$align,
|
|
40
41
|
className = _ref.className;
|
|
41
42
|
var Rule = useCallback(function (_ref2) {
|
|
@@ -43,9 +44,10 @@ var Divider = function Divider(_ref) {
|
|
|
43
44
|
className = _ref2.className;
|
|
44
45
|
return /*#__PURE__*/jsx("hr", {
|
|
45
46
|
style: {
|
|
46
|
-
flex: flex
|
|
47
|
+
flex: flex,
|
|
48
|
+
borderColor: getColor(color)
|
|
47
49
|
},
|
|
48
|
-
className: classNames(className, vertical && "vertical", !flex && "self-stretch", vertical ?
|
|
50
|
+
className: classNames(className, vertical && "vertical", !flex && "self-stretch", vertical ? "fabric-divider--vertical" : "fabric-divider--horizontal")
|
|
49
51
|
});
|
|
50
52
|
}, [color, vertical]);
|
|
51
53
|
return children ? /*#__PURE__*/jsxs("div", {
|
|
@@ -53,7 +55,7 @@ var Divider = function Divider(_ref) {
|
|
|
53
55
|
children: [/*#__PURE__*/jsx(Rule, {
|
|
54
56
|
flex: align === "start" ? "0 0 1rem" : "1 1 1em"
|
|
55
57
|
}), /*#__PURE__*/jsx("div", {
|
|
56
|
-
className: classNames("px-2 whitespace-nowrap", vertical ?
|
|
58
|
+
className: classNames("px-2 whitespace-nowrap", vertical ? "fabric-divider--vertical" : "fabric-divider--horizontal", labelClassName, "rounded-full text-[0.75em]", vertical && "origin-center -rotate-90 z-1"),
|
|
57
59
|
children: children
|
|
58
60
|
}), /*#__PURE__*/jsx(Rule, {
|
|
59
61
|
flex: align === "end" ? "0 0 1rem" : "1 1 1em"
|
|
@@ -6,7 +6,6 @@ import { FloatingTree, useFloatingTree, useFloating, autoUpdate, shift, flip, of
|
|
|
6
6
|
import { mergeRefs } from '@react-fabric/utilities';
|
|
7
7
|
import classNames from 'classnames';
|
|
8
8
|
import { useRef, useState, useMemo, Children, useCallback, useEffect, Fragment, cloneElement } from 'react';
|
|
9
|
-
import classes from './Dropdown.module.css';
|
|
10
9
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
11
10
|
|
|
12
11
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -141,14 +140,14 @@ var DropdownElement = function DropdownElement(_ref) {
|
|
|
141
140
|
})), {}, {
|
|
142
141
|
children: [/*#__PURE__*/jsx("div", {
|
|
143
142
|
role: "none",
|
|
144
|
-
className: classNames(
|
|
143
|
+
className: classNames("fabric-dropdownBody", dropdownClassName, !plainDropdown && "shadow-lg bg-base ring-1 ring-tint-100", "rounded-capped overflow-auto scroll-thin grid max-h-[70vh]"),
|
|
145
144
|
onMouseUpCapture: tryClosing,
|
|
146
145
|
children: panel
|
|
147
146
|
}), showArrow && /*#__PURE__*/jsx(FloatingArrow, {
|
|
148
147
|
ref: arrowRef,
|
|
149
148
|
context: context,
|
|
150
149
|
strokeWidth: 0.5,
|
|
151
|
-
className: "fill-base stroke-
|
|
150
|
+
className: "fill-base stroke-dimmed"
|
|
152
151
|
})]
|
|
153
152
|
}))
|
|
154
153
|
})]
|
|
@@ -20,7 +20,7 @@ var DropdownTool = function DropdownTool(_ref) {
|
|
|
20
20
|
return /*#__PURE__*/jsxs(Dropdown, _objectSpread(_objectSpread({}, props), {}, {
|
|
21
21
|
children: [/*#__PURE__*/jsx(Icon, {
|
|
22
22
|
icon: icon !== null && icon !== void 0 ? icon : CoreIcons.caretDown,
|
|
23
|
-
className: classNames(className, "outline bg-base flex-content pointer-events-auto cursor-pointer", groupHover && "hidden group-hover/tool:inline-block data-[dropdown-open]:inline-block")
|
|
23
|
+
className: classNames(className, "outline bg-base/50 flex-content pointer-events-auto cursor-pointer", groupHover && "hidden group-hover/tool:inline-block data-[dropdown-open]:inline-block")
|
|
24
24
|
}), children]
|
|
25
25
|
}));
|
|
26
26
|
};
|
|
@@ -6,8 +6,7 @@ import { isSvgPath, isString } from '@react-fabric/utilities';
|
|
|
6
6
|
import classNames from 'classnames';
|
|
7
7
|
import { useMemo } from 'react';
|
|
8
8
|
import { jsx } from 'react/jsx-runtime';
|
|
9
|
-
import { getColor
|
|
10
|
-
import classes from './Icon.module.css';
|
|
9
|
+
import { getColor } from '../../utils/getColor.js';
|
|
11
10
|
|
|
12
11
|
var _excluded = ["ref", "icon", "bg", "color", "size", "rtlFlip", "animate", "rounded", "viewBox", "className", "onClick"];
|
|
13
12
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -95,7 +94,7 @@ var Icon = function Icon(_ref) {
|
|
|
95
94
|
ref: ref
|
|
96
95
|
}, rest), {}, {
|
|
97
96
|
role: "presentation",
|
|
98
|
-
className: classNames(
|
|
97
|
+
className: classNames("fabric-icon", "select-none overflow-hidden box-content leading-none not-italic text-center", !rounded && "rounded", rounded && "rounded-full", animate && "animate-".concat(animate), className),
|
|
99
98
|
onClick: onClick,
|
|
100
99
|
"data-flip": rtlFlip,
|
|
101
100
|
style: styles,
|
|
@@ -8,13 +8,17 @@ import classNames from 'classnames';
|
|
|
8
8
|
import { useState, useMemo, useRef } from 'react';
|
|
9
9
|
import { CoreIcons } from '../../types/icons.js';
|
|
10
10
|
import { Button } from '../button/Button.js';
|
|
11
|
-
import classes from './Media.module.css';
|
|
12
11
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
13
12
|
|
|
14
13
|
var _excluded = ["src", "alt", "reel", "fit", "className"],
|
|
15
14
|
_excluded2 = ["src", "poster", "reel", "autoPlay", "playOnHover", "fit", "className"];
|
|
16
15
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
17
16
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
17
|
+
var cover = {
|
|
18
|
+
fill: "object-fill",
|
|
19
|
+
cover: "object-cover",
|
|
20
|
+
contain: "object-contain"
|
|
21
|
+
};
|
|
18
22
|
var Image = function Image(_ref) {
|
|
19
23
|
var src = _ref.src,
|
|
20
24
|
alt = _ref.alt,
|
|
@@ -29,13 +33,13 @@ var Image = function Image(_ref) {
|
|
|
29
33
|
setColorSet = _useState2[1];
|
|
30
34
|
var loadIndicator = useMemo(function () {
|
|
31
35
|
return /*#__PURE__*/jsx("div", {
|
|
32
|
-
className: classNames(
|
|
36
|
+
className: classNames("fabric-mediaPlaceholder", "absolute z-1 top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 text-4xl text-gray animate-pulse"),
|
|
33
37
|
children: "\u25CF\u25CF\u25CF"
|
|
34
38
|
});
|
|
35
39
|
}, [src]);
|
|
36
40
|
return /*#__PURE__*/jsxs("div", _objectSpread(_objectSpread({
|
|
37
41
|
"data-ref": "image",
|
|
38
|
-
className: classNames(
|
|
42
|
+
className: classNames("fabric-mediaContainer", "relative overflow-hidden bg-gray inline-block", reel && "fabric-mediaReel", className),
|
|
39
43
|
"data-colorset": colorSet
|
|
40
44
|
}, aria), {}, {
|
|
41
45
|
children: [loadIndicator, /*#__PURE__*/jsx("img", {
|
|
@@ -43,7 +47,7 @@ var Image = function Image(_ref) {
|
|
|
43
47
|
src: src,
|
|
44
48
|
loading: "lazy",
|
|
45
49
|
crossOrigin: "anonymous",
|
|
46
|
-
className: classNames(
|
|
50
|
+
className: classNames("fabric-media", "pointer-events-none w-full h-full", cover[fit]),
|
|
47
51
|
onLoad: function onLoad(e) {
|
|
48
52
|
var _e$currentTarget$prev;
|
|
49
53
|
(_e$currentTarget$prev = e.currentTarget.previousElementSibling) === null || _e$currentTarget$prev === void 0 || _e$currentTarget$prev.remove();
|
|
@@ -73,7 +77,7 @@ var Video = function Video(_ref2) {
|
|
|
73
77
|
setVolume = _useState6[1];
|
|
74
78
|
return /*#__PURE__*/jsxs("div", _objectSpread(_objectSpread({
|
|
75
79
|
"data-ref": "video",
|
|
76
|
-
className: classNames(
|
|
80
|
+
className: classNames("fabric-mediaContainer", "relative overflow-hidden bg-gray inline-block", reel && "fabric-mediaReel", className),
|
|
77
81
|
onMouseEnter: function onMouseEnter() {
|
|
78
82
|
var _videoRef$current;
|
|
79
83
|
playOnHover && ((_videoRef$current = videoRef.current) === null || _videoRef$current === void 0 ? void 0 : _videoRef$current.play());
|
|
@@ -84,7 +88,7 @@ var Video = function Video(_ref2) {
|
|
|
84
88
|
}
|
|
85
89
|
}, aria), {}, {
|
|
86
90
|
children: [/*#__PURE__*/jsx("div", {
|
|
87
|
-
className: classNames(
|
|
91
|
+
className: classNames("fabric-mediaPlaceholder", "absolute z-1 top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 text-5xl animate-pulse"),
|
|
88
92
|
children: "\u25CF\u25CF\u25CF"
|
|
89
93
|
}), /*#__PURE__*/jsxs("video", {
|
|
90
94
|
loop: true,
|
|
@@ -92,7 +96,7 @@ var Video = function Video(_ref2) {
|
|
|
92
96
|
controls: false,
|
|
93
97
|
poster: poster,
|
|
94
98
|
autoPlay: autoPlay,
|
|
95
|
-
className: classNames(
|
|
99
|
+
className: classNames("fabric-media", "pointer-events-none w-full h-full", fit && "object-".concat(fit)),
|
|
96
100
|
onPlay: function onPlay() {
|
|
97
101
|
return setState(true);
|
|
98
102
|
},
|
|
@@ -114,18 +118,18 @@ var Video = function Video(_ref2) {
|
|
|
114
118
|
})]
|
|
115
119
|
}), /*#__PURE__*/jsxs("div", {
|
|
116
120
|
"data-inner-clickable": true,
|
|
117
|
-
className: classNames(
|
|
121
|
+
className: classNames("fabric-mediaControls", "absolute bottom-6 end-6 rounded-full flex flex-col"),
|
|
118
122
|
children: [/*#__PURE__*/jsx(Button, {
|
|
119
123
|
rounded: true,
|
|
120
124
|
variant: "link",
|
|
121
|
-
className:
|
|
125
|
+
className: "fabric-mediaControlPlaceholder",
|
|
122
126
|
icon: CoreIcons.ellipsis,
|
|
123
127
|
"aria-label": "controls"
|
|
124
128
|
}), /*#__PURE__*/jsx(Button, {
|
|
125
129
|
rounded: true,
|
|
126
130
|
variant: "link",
|
|
127
131
|
"aria-label": "controls",
|
|
128
|
-
className:
|
|
132
|
+
className: "fabric-mediaControlAction",
|
|
129
133
|
onClick: function onClick() {
|
|
130
134
|
videoRef.current && (videoRef.current.volume = videoRef.current.volume ? 0 : 1);
|
|
131
135
|
},
|
|
@@ -134,7 +138,7 @@ var Video = function Video(_ref2) {
|
|
|
134
138
|
rounded: true,
|
|
135
139
|
variant: "link",
|
|
136
140
|
"aria-label": "controls",
|
|
137
|
-
className:
|
|
141
|
+
className: "fabric-mediaControlAction",
|
|
138
142
|
onClick: function onClick() {
|
|
139
143
|
var _videoRef$current3, _videoRef$current4, _videoRef$current5;
|
|
140
144
|
(_videoRef$current3 = videoRef.current) !== null && _videoRef$current3 !== void 0 && _videoRef$current3.paused ? (_videoRef$current4 = videoRef.current) === null || _videoRef$current4 === void 0 ? void 0 : _videoRef$current4.play() : (_videoRef$current5 = videoRef.current) === null || _videoRef$current5 === void 0 ? void 0 : _videoRef$current5.pause();
|
|
@@ -175,7 +175,7 @@ var MenuComponent = function MenuComponent(_ref) {
|
|
|
175
175
|
initialFocus: isNested ? -1 : 0,
|
|
176
176
|
returnFocus: !isNested,
|
|
177
177
|
children: /*#__PURE__*/jsx("div", _objectSpread(_objectSpread({
|
|
178
|
-
className: classNames(menuClassName, "flex flex-col bg-base p-1 menu-list", isNested && "outline shadow-lg rounded-capped max-h-96 overflow-auto scroll-thin z-
|
|
178
|
+
className: classNames(menuClassName, "flex flex-col bg-base p-1 menu-list", isNested && "outline shadow-lg rounded-capped max-h-96 overflow-auto scroll-thin z-(--z-popover)"),
|
|
179
179
|
autoFocus: true,
|
|
180
180
|
ref: mergeRefs(isNested ? refs.setFloating : ref)
|
|
181
181
|
}, getFloatingProps({
|
|
@@ -17,7 +17,6 @@ import { getBadgeProps, Badge } from '../badge/Badge.js';
|
|
|
17
17
|
import { Icon } from '../icon/Icon.js';
|
|
18
18
|
import '../../types/icons.js';
|
|
19
19
|
import '../../hotkeys/HotKeyWrapper.js';
|
|
20
|
-
import classes from './Menu.module.css';
|
|
21
20
|
|
|
22
21
|
var _excluded = ["as", "label", "color", "className", "icon", "iconBg", "iconColor", "appendLabel", "rtlFlip", "altIcon", "id", "active", "disabled", "onClick", "badge", "hotKey", "tabIndex", "minimal", "data-open", "ref"],
|
|
23
22
|
_excluded2 = ["children"];
|
|
@@ -63,7 +62,7 @@ var MenuItem = function MenuItem(_ref) {
|
|
|
63
62
|
path = iconToken(label);
|
|
64
63
|
}
|
|
65
64
|
return /*#__PURE__*/jsx(Icon, {
|
|
66
|
-
className: classNames(
|
|
65
|
+
className: classNames("fabric-menuIcon", minimal && "minimal"),
|
|
67
66
|
icon: (_path = path) !== null && _path !== void 0 ? _path : "",
|
|
68
67
|
bg: iconBg,
|
|
69
68
|
color: iconColor,
|
|
@@ -110,7 +109,7 @@ var MenuItem = function MenuItem(_ref) {
|
|
|
110
109
|
ref: mergeRefs(ref, elRef),
|
|
111
110
|
"data-dropdown-dismiss": true,
|
|
112
111
|
"data-color": color,
|
|
113
|
-
className: classNames(
|
|
112
|
+
className: classNames("fabric-menuItem", className, active && "active", minimal && "minimal", disabled && "disabled", "rounded-capped relative max-w-[50vw] my-0.5"),
|
|
114
113
|
"data-active": active,
|
|
115
114
|
"data-open": childOpen,
|
|
116
115
|
disabled: disabled,
|
|
@@ -5,7 +5,6 @@ import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProper
|
|
|
5
5
|
import { Format } from '@react-fabric/utilities';
|
|
6
6
|
import classNames from 'classnames';
|
|
7
7
|
import { useMemoDebugger } from '../../hooks/useEffectDebugger.js';
|
|
8
|
-
import classes from './Meter.module.css';
|
|
9
8
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
10
9
|
|
|
11
10
|
var _excluded = ["value", "hideLabel", "className"];
|
|
@@ -21,11 +20,11 @@ var Meter = function Meter(_ref) {
|
|
|
21
20
|
return value / 16.67;
|
|
22
21
|
}, [value], "Meter activeCount");
|
|
23
22
|
return /*#__PURE__*/jsxs("div", _objectSpread(_objectSpread({
|
|
24
|
-
className: classNames(
|
|
23
|
+
className: classNames("fabric-meter", className, "flex flex-nowrap items-center gap-[2px]")
|
|
25
24
|
}, aria), {}, {
|
|
26
25
|
children: [[0, 1, 2, 3, 4, 5].map(function (step) {
|
|
27
26
|
return /*#__PURE__*/jsx("div", {
|
|
28
|
-
className: classNames(
|
|
27
|
+
className: classNames("fabric-meterBar", "first-of-type:rounded-s last-of-type:rounded-e bg-tint-100 relative outline -outline-offset-1 outline-muted overflow-hidden after:absolute after:inset-0"),
|
|
29
28
|
"data-active": activeCount >= step,
|
|
30
29
|
style: {
|
|
31
30
|
"--width": "".concat(Math.min((activeCount - step) * 100, 100), "%")
|