@mittwald/flow-react-components 1.2.0-next.61 → 1.2.0-next.62
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/dist/assets/component-index.json +1 -1
- package/dist/assets/doc-properties.json +1 -1
- package/dist/css/all-layered.css +1 -1
- package/dist/css/all.css +1 -1
- package/dist/js/default.mjs +2 -1
- package/dist/js/packages/components/src/components/CoachMark/CoachMark.mjs +101 -0
- package/dist/js/packages/components/src/components/CoachMark/CoachMark.mjs.map +1 -0
- package/dist/js/packages/components/src/components/CoachMark/CoachMark.module.mjs +13 -0
- package/dist/js/packages/components/src/components/CoachMark/CoachMark.module.mjs.map +1 -0
- package/dist/js/packages/components/src/components/ContextMenu/ContextMenu.mjs.map +1 -1
- package/dist/js/packages/components/src/components/ContextualHelp/ContextualHelp.mjs.map +1 -1
- package/dist/js/packages/components/src/components/Popover/Popover.mjs.map +1 -1
- package/dist/js/packages/components/src/components/Popover/Popover.module.mjs +1 -0
- package/dist/js/packages/components/src/components/Popover/Popover.module.mjs.map +1 -1
- package/dist/js/packages/components/src/components/Popover/components/NonModalPopoverContent/NonModalPopoverContent.mjs +116 -0
- package/dist/js/packages/components/src/components/Popover/components/NonModalPopoverContent/NonModalPopoverContent.mjs.map +1 -0
- package/dist/js/packages/components/src/components/Popover/components/PopoverContent/PopoverContent.mjs +26 -2
- package/dist/js/packages/components/src/components/Popover/components/PopoverContent/PopoverContent.mjs.map +1 -1
- package/dist/js/packages/components/src/components/propTypes/index.mjs +1 -0
- package/dist/js/packages/components/src/components/propTypes/index.mjs.map +1 -1
- package/dist/js/packages/components/src/lib/react/getPropsMerger.mjs +2 -2
- package/dist/js/packages/components/src/lib/react/getPropsMerger.mjs.map +1 -1
- package/dist/js/packages/components/src/status/component-status.mjs +4 -0
- package/dist/js/packages/components/src/status/component-status.mjs.map +1 -1
- package/dist/js/packages/design-tokens/dist/json-runtime/all-dark.mjs +4 -0
- package/dist/js/packages/design-tokens/dist/json-runtime/all-dark.mjs.map +1 -1
- package/dist/js/packages/design-tokens/dist/json-runtime/all-light.mjs +4 -0
- package/dist/js/packages/design-tokens/dist/json-runtime/all-light.mjs.map +1 -1
- package/dist/types/components/CoachMark/CoachMark.d.ts +32 -0
- package/dist/types/components/CoachMark/index.d.ts +3 -0
- package/dist/types/components/CoachMark/view.d.ts +7 -0
- package/dist/types/components/ContextMenu/ContextMenu.d.ts +1 -1
- package/dist/types/components/ContextualHelp/ContextualHelp.d.ts +1 -1
- package/dist/types/components/Popover/components/NonModalPopoverContent/NonModalPopoverContent.d.ts +24 -0
- package/dist/types/components/Popover/components/NonModalPopoverContent/index.d.ts +2 -0
- package/dist/types/components/Popover/components/PopoverContent/PopoverContent.d.ts +4 -1
- package/dist/types/components/propTypes/index.d.ts +2 -0
- package/dist/types/components/public.d.ts +1 -0
- package/dist/types/lib/theming/hooks/useDesignTokens.d.ts +6 -0
- package/dist/types/status/component-status.json.d.ts +4 -0
- package/dist/types/views/CoachMarkView.d.ts +4 -0
- package/package.json +9 -9
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
import { PopoverProps } from '../Popover/Popover';
|
|
3
|
+
export interface CoachMarkProps extends Omit<PopoverProps, "withTip" | "modality" | "isNonModal" | "isDialogContent" | "triggerRef" | "getTargetRect" | "shouldCloseOnInteractOutside" | "maxHeight" | "isKeyboardDismissDisabled" | "UNSTABLE_portalContainer" | "defaultOpen"> {
|
|
4
|
+
/**
|
|
5
|
+
* The element the coach mark points at. It is an anchor, not a trigger —
|
|
6
|
+
* nothing about it opens the coach mark. Give it either this or `anchor`.
|
|
7
|
+
*/
|
|
8
|
+
anchorRef?: RefObject<Element | null>;
|
|
9
|
+
/**
|
|
10
|
+
* The `id` of the element the coach mark points at, looked up once the
|
|
11
|
+
* element exists. Use it where a ref cannot be shared — an mStudio extension
|
|
12
|
+
* renders in a different context than the host, so a ref never arrives, while
|
|
13
|
+
* an id does.
|
|
14
|
+
*/
|
|
15
|
+
anchor?: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Points at a control the user did not ask about — a feature that is new, moved
|
|
19
|
+
* or easy to miss. It opens on its own, so it stays out of the way: the page
|
|
20
|
+
* below keeps scrolling, focus is left alone, and the coach mark rides along
|
|
21
|
+
* with its anchor instead of closing at the first scroll.
|
|
22
|
+
*
|
|
23
|
+
* Nothing announces it. It renders where it is written, so put it directly
|
|
24
|
+
* behind the element it points at — then it follows that element in the reading
|
|
25
|
+
* order, and its anchor refers to it through `aria-details`.
|
|
26
|
+
*
|
|
27
|
+
* @flr-generate all
|
|
28
|
+
* @flr-ignore-props anchorRef
|
|
29
|
+
* @flowStatus beta, new
|
|
30
|
+
*/
|
|
31
|
+
export declare const CoachMark: import('react').FunctionComponent<CoachMarkProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
32
|
+
export default CoachMark;
|
|
@@ -3,7 +3,7 @@ import { MenuItemProps } from '../MenuItem';
|
|
|
3
3
|
import { PopoverProps } from '../Popover/Popover';
|
|
4
4
|
import { FlowComponentProps } from '../../lib/componentFactory/flowComponent';
|
|
5
5
|
import type * as Aria from "react-aria-components";
|
|
6
|
-
export interface ContextMenuProps extends Omit<PopoverProps, "withTip">, Pick<Aria.MenuProps<MenuItemProps>, "onAction" | "selectedKeys" | "defaultSelectedKeys" | "onSelectionChange" | "disabledKeys" | "renderEmptyState">, FlowComponentProps {
|
|
6
|
+
export interface ContextMenuProps extends Omit<PopoverProps, "withTip" | "modality">, Pick<Aria.MenuProps<MenuItemProps>, "onAction" | "selectedKeys" | "defaultSelectedKeys" | "onSelectionChange" | "disabledKeys" | "renderEmptyState">, FlowComponentProps {
|
|
7
7
|
/** The type of selection that is allowed in the context menu. */
|
|
8
8
|
selectionMode?: ContextMenuSelectionMode;
|
|
9
9
|
/** Sets the context menu to a fixed width. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PopoverProps } from '../Popover/Popover';
|
|
2
|
-
export type ContextualHelpProps = Omit<PopoverProps, "withTip">;
|
|
2
|
+
export type ContextualHelpProps = Omit<PopoverProps, "withTip" | "modality">;
|
|
3
3
|
/** @flr-generate all */
|
|
4
4
|
export declare const ContextualHelp: import('react').FunctionComponent<ContextualHelpProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
5
5
|
export default ContextualHelp;
|
package/dist/types/components/Popover/components/NonModalPopoverContent/NonModalPopoverContent.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { FC, PropsWithChildren, Ref, RefObject } from 'react';
|
|
2
|
+
import { Placement } from 'react-aria';
|
|
3
|
+
import { PropsWithClassName } from '../../../../lib/types/props';
|
|
4
|
+
export interface NonModalPopoverContentProps extends PropsWithChildren, PropsWithClassName {
|
|
5
|
+
withTip?: boolean;
|
|
6
|
+
isOpen?: boolean;
|
|
7
|
+
width?: string | number;
|
|
8
|
+
placement?: Placement;
|
|
9
|
+
offset?: number;
|
|
10
|
+
crossOffset?: number;
|
|
11
|
+
/** Swallowed on purpose — the stylesheet overrides `max-height` here. */
|
|
12
|
+
maxHeight?: number;
|
|
13
|
+
shouldFlip?: boolean;
|
|
14
|
+
shouldUpdatePosition?: boolean;
|
|
15
|
+
arrowBoundaryOffset?: number;
|
|
16
|
+
boundaryElement?: Element;
|
|
17
|
+
/** The id react-aria's trigger points its `aria-controls` at. */
|
|
18
|
+
id?: string;
|
|
19
|
+
onOpenChange: (isOpen: boolean) => void;
|
|
20
|
+
ref?: Ref<HTMLElement>;
|
|
21
|
+
triggerRef: RefObject<Element | null>;
|
|
22
|
+
}
|
|
23
|
+
export declare const NonModalPopoverContent: FC<NonModalPopoverContentProps>;
|
|
24
|
+
export default NonModalPopoverContent;
|
|
@@ -9,6 +9,9 @@ export interface PopoverContentProps extends PropsWithChildren, PropsWithClassNa
|
|
|
9
9
|
ref?: Ref<HTMLElement>;
|
|
10
10
|
triggerRef?: RefObject<Element | null>;
|
|
11
11
|
}
|
|
12
|
-
/**
|
|
12
|
+
/**
|
|
13
|
+
* @flr-generate all
|
|
14
|
+
* @flr-ignore-props modality
|
|
15
|
+
*/
|
|
13
16
|
export declare const PopoverContent: FC<PopoverContentProps>;
|
|
14
17
|
export default PopoverContent;
|
|
@@ -36,6 +36,7 @@ import { SliderProps } from '../Slider';
|
|
|
36
36
|
import { CounterBadgeProps } from '../CounterBadge';
|
|
37
37
|
import { FlowComponentName } from './types';
|
|
38
38
|
import { ContextualHelpProps, ContextualHelpTriggerProps } from '../ContextualHelp';
|
|
39
|
+
import { CoachMarkProps } from '../CoachMark';
|
|
39
40
|
import { PopoverProps, PopoverTriggerProps } from '../Popover';
|
|
40
41
|
import { ContextMenuSectionProps } from '../ContextMenu/components/ContextMenuSection';
|
|
41
42
|
import { ListItemViewContentProps, ListProps } from '../List';
|
|
@@ -106,6 +107,7 @@ export interface FlowComponentPropsTypes {
|
|
|
106
107
|
ContextMenu: ContextMenuProps;
|
|
107
108
|
ContextMenuSection: ContextMenuSectionProps;
|
|
108
109
|
ContextMenuTrigger: ContextMenuTriggerProps;
|
|
110
|
+
CoachMark: CoachMarkProps;
|
|
109
111
|
ContextualHelp: ContextualHelpProps;
|
|
110
112
|
ContextualHelpTrigger: ContextualHelpTriggerProps;
|
|
111
113
|
CopyButton: CopyButtonProps;
|
|
@@ -33,6 +33,7 @@ export * from './ComponentDefaultsProvider';
|
|
|
33
33
|
export * from './ComponentPropsContextProvider';
|
|
34
34
|
export * from './Content';
|
|
35
35
|
export * from './ContextMenu';
|
|
36
|
+
export * from './CoachMark';
|
|
36
37
|
export * from './ContextualHelp';
|
|
37
38
|
export * from './CopyButton';
|
|
38
39
|
export * from './CounterBadge';
|
|
@@ -5023,6 +5023,12 @@ export declare const useDesignTokens: () => {
|
|
|
5023
5023
|
path: string[];
|
|
5024
5024
|
};
|
|
5025
5025
|
};
|
|
5026
|
+
"coach-mark": {
|
|
5027
|
+
"max-width": {
|
|
5028
|
+
value: string;
|
|
5029
|
+
path: string[];
|
|
5030
|
+
};
|
|
5031
|
+
};
|
|
5026
5032
|
"contextual-help": {
|
|
5027
5033
|
"max-width": {
|
|
5028
5034
|
value: string;
|
|
@@ -96,6 +96,10 @@ declare const _default: {
|
|
|
96
96
|
"level": "stable",
|
|
97
97
|
"isNew": false
|
|
98
98
|
},
|
|
99
|
+
"@mittwald/flow-react-components#CoachMark": {
|
|
100
|
+
"level": "beta",
|
|
101
|
+
"isNew": true
|
|
102
|
+
},
|
|
99
103
|
"@mittwald/flow-react-components#CodeBlock": {
|
|
100
104
|
"level": "stable",
|
|
101
105
|
"isNew": false
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mittwald/flow-react-components",
|
|
3
|
-
"version": "1.2.0-next.
|
|
3
|
+
"version": "1.2.0-next.62",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A React implementation of Flow, mittwald’s design system",
|
|
6
6
|
"homepage": "https://flow.mittwald.de",
|
|
@@ -83,9 +83,9 @@
|
|
|
83
83
|
"@internationalized/string-compiler": "^3.4.1",
|
|
84
84
|
"@lezer/common": "^1.5.2",
|
|
85
85
|
"@lezer/highlight": "^1.2.3",
|
|
86
|
-
"@mittwald/flow-icons": "^1.2.0-next.
|
|
86
|
+
"@mittwald/flow-icons": "^1.2.0-next.62",
|
|
87
87
|
"@mittwald/password-tools-js": "^3.0.0",
|
|
88
|
-
"@mittwald/react-tunnel": "^1.2.0-next.
|
|
88
|
+
"@mittwald/react-tunnel": "^1.2.0-next.62",
|
|
89
89
|
"@mittwald/react-use-promise": "^4.2.2",
|
|
90
90
|
"@react-aria/form": "^3.2.1",
|
|
91
91
|
"@react-aria/i18n": "^3.13.1",
|
|
@@ -138,12 +138,12 @@
|
|
|
138
138
|
"@internationalized/date": "^3.12.3",
|
|
139
139
|
"@lezer/generator": "^1.8.0",
|
|
140
140
|
"@lezer/lr": "^1.4.10",
|
|
141
|
-
"@mittwald/flow-core": "1.2.0-next.
|
|
142
|
-
"@mittwald/flow-design-tokens": "1.2.0-next.
|
|
143
|
-
"@mittwald/flow-icons-base": "1.2.0-next.
|
|
141
|
+
"@mittwald/flow-core": "1.2.0-next.62",
|
|
142
|
+
"@mittwald/flow-design-tokens": "1.2.0-next.62",
|
|
143
|
+
"@mittwald/flow-icons-base": "1.2.0-next.62",
|
|
144
144
|
"@mittwald/react-use-promise": "^4.2.2",
|
|
145
145
|
"@mittwald/remote-dom-react": "1.2.2-mittwald.10",
|
|
146
|
-
"@mittwald/typescript-config": "1.2.0-next.
|
|
146
|
+
"@mittwald/typescript-config": "1.2.0-next.62",
|
|
147
147
|
"@nx/storybook": "^22.7.6",
|
|
148
148
|
"@storybook/addon-a11y": "^10.5.10",
|
|
149
149
|
"@storybook/addon-actions": "^9.0.8",
|
|
@@ -195,7 +195,7 @@
|
|
|
195
195
|
},
|
|
196
196
|
"peerDependencies": {
|
|
197
197
|
"@internationalized/date": "^3.12.2",
|
|
198
|
-
"@mittwald/flow-icons-pro": "1.2.0-next.
|
|
198
|
+
"@mittwald/flow-icons-pro": "1.2.0-next.62",
|
|
199
199
|
"@mittwald/react-use-promise": "^4.2.2",
|
|
200
200
|
"next": "^16.2.3",
|
|
201
201
|
"react": "^19.2.0",
|
|
@@ -219,5 +219,5 @@
|
|
|
219
219
|
"browserslist": [
|
|
220
220
|
"baseline widely available"
|
|
221
221
|
],
|
|
222
|
-
"gitHead": "
|
|
222
|
+
"gitHead": "75b21ea1df1a24b8cc753246020e8befaf9dbefe"
|
|
223
223
|
}
|