@mittwald/flow-react-components 0.1.0-alpha.303 → 0.1.0-alpha.305
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/CHANGELOG.md +29 -0
- package/dist/css/Header.css +1 -1
- package/dist/css/Section.css +1 -1
- package/dist/css/Select.css +1 -1
- package/dist/js/List.js +55 -55
- package/dist/js/Section-DszRJOuI.js +55 -0
- package/dist/js/Section.js +1 -1
- package/dist/js/all.css +1 -1
- package/dist/js/types/components/Select/Select.d.ts +1 -1
- package/dist/js/types/components/Select/components/Option/Option.d.ts +1 -1
- package/dist/js/types/components/Select/stories/Default.stories.d.ts +1 -0
- package/dist/js/types/components/Select/stories/EdgeCases.stories.d.ts +2 -1
- package/package.json +4 -4
- package/dist/js/Section-BXIIRoBN.js +0 -53
|
@@ -6,7 +6,7 @@ import * as Aria from "react-aria-components";
|
|
|
6
6
|
export interface SelectProps extends PropsWithChildren<Omit<Aria.SelectProps<{
|
|
7
7
|
example: string;
|
|
8
8
|
}>, "children" | "className">>, FlowComponentProps, PropsWithClassName {
|
|
9
|
-
onChange?: (value: string) => void;
|
|
9
|
+
onChange?: (value: string | number) => void;
|
|
10
10
|
controller?: OverlayController;
|
|
11
11
|
}
|
|
12
12
|
export declare const Select: React.ForwardRefExoticComponent<SelectProps & React.RefAttributes<never>>;
|
|
@@ -2,7 +2,7 @@ import { PropsWithChildren, default as React } from 'react';
|
|
|
2
2
|
import { FlowComponentProps } from '../../../../lib/componentFactory/flowComponent';
|
|
3
3
|
import * as Aria from "react-aria-components";
|
|
4
4
|
export interface OptionProps extends Omit<Aria.ListBoxItemProps, "children" | "value" | "id">, PropsWithChildren, FlowComponentProps {
|
|
5
|
-
value?: string;
|
|
5
|
+
value?: string | number;
|
|
6
6
|
}
|
|
7
7
|
export declare const Option: React.ForwardRefExoticComponent<OptionProps & React.RefAttributes<never>>;
|
|
8
8
|
export default Option;
|
|
@@ -3,4 +3,5 @@ import { default as Select } from '../index';
|
|
|
3
3
|
declare const meta: Meta<typeof Select>;
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof Select>;
|
|
6
|
-
export declare const
|
|
6
|
+
export declare const ManyOptions: Story;
|
|
7
|
+
export declare const LongTexts: Story;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mittwald/flow-react-components",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.305",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A React implementation of Flow, mittwald’s design system",
|
|
6
6
|
"homepage": "https://mittwald.github.io/flow",
|
|
@@ -384,7 +384,7 @@
|
|
|
384
384
|
"@chakra-ui/live-region": "^2.1.0",
|
|
385
385
|
"@internationalized/date": "^3.5.6",
|
|
386
386
|
"@internationalized/string-compiler": "^3.2.5",
|
|
387
|
-
"@mittwald/react-tunnel": "^0.1.0-alpha.
|
|
387
|
+
"@mittwald/react-tunnel": "^0.1.0-alpha.305",
|
|
388
388
|
"@mittwald/react-use-promise": "^2.5.0",
|
|
389
389
|
"@react-aria/utils": "^3.25.3",
|
|
390
390
|
"@react-types/shared": "^3.25.0",
|
|
@@ -412,7 +412,7 @@
|
|
|
412
412
|
},
|
|
413
413
|
"devDependencies": {
|
|
414
414
|
"@faker-js/faker": "^9.0.3",
|
|
415
|
-
"@mittwald/flow-design-tokens": "^0.1.0-alpha.
|
|
415
|
+
"@mittwald/flow-design-tokens": "^0.1.0-alpha.305",
|
|
416
416
|
"@mittwald/react-use-promise": "^2.5.0",
|
|
417
417
|
"@nx/storybook": "^20.0.0",
|
|
418
418
|
"@storybook/addon-a11y": "^8.3.5",
|
|
@@ -491,5 +491,5 @@
|
|
|
491
491
|
"optional": true
|
|
492
492
|
}
|
|
493
493
|
},
|
|
494
|
-
"gitHead": "
|
|
494
|
+
"gitHead": "9aa19d24ecb93c2557d948bf80233740a9bd12a8"
|
|
495
495
|
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use client"
|
|
2
|
-
/* */
|
|
3
|
-
import e, { useId as u } from "react";
|
|
4
|
-
import f from "clsx";
|
|
5
|
-
import "./propsContext-DzAKlmhS.js";
|
|
6
|
-
import { P as c } from "./PropsContextProvider-C6Z4XGp6.js";
|
|
7
|
-
import "@react-aria/utils";
|
|
8
|
-
import "remeda";
|
|
9
|
-
import { f as i } from "./flowComponent-uZXy7sF4.js";
|
|
10
|
-
import * as s from "react-aria-components";
|
|
11
|
-
import { s as x } from "./ContextMenu.module-BZingr2B.js";
|
|
12
|
-
const C = "flow--section", S = {
|
|
13
|
-
section: C
|
|
14
|
-
}, E = i(
|
|
15
|
-
"ContextMenuSection",
|
|
16
|
-
(r) => {
|
|
17
|
-
const { children: t } = r, n = {
|
|
18
|
-
Heading: {
|
|
19
|
-
level: 5,
|
|
20
|
-
wrapWith: /* @__PURE__ */ e.createElement(s.Header, null)
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
return /* @__PURE__ */ e.createElement(s.Section, { className: x.section }, /* @__PURE__ */ e.createElement(c, { props: n, mergeInParentContext: !0 }, t));
|
|
24
|
-
}
|
|
25
|
-
), y = i("Section", (r) => {
|
|
26
|
-
const {
|
|
27
|
-
children: t,
|
|
28
|
-
className: n,
|
|
29
|
-
refProp: a,
|
|
30
|
-
renderContextMenuSection: l,
|
|
31
|
-
...m
|
|
32
|
-
} = r;
|
|
33
|
-
if (!t)
|
|
34
|
-
return null;
|
|
35
|
-
if (l)
|
|
36
|
-
return /* @__PURE__ */ e.createElement(E, null, t);
|
|
37
|
-
const p = f(S.section, n), o = u(), d = {
|
|
38
|
-
Heading: {
|
|
39
|
-
level: 2,
|
|
40
|
-
id: o
|
|
41
|
-
},
|
|
42
|
-
Header: {
|
|
43
|
-
renderSectionHeader: !0
|
|
44
|
-
},
|
|
45
|
-
List: {
|
|
46
|
-
"aria-labelledby": o
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
return /* @__PURE__ */ e.createElement("section", { ...m, className: p, ref: a }, /* @__PURE__ */ e.createElement(c, { props: d, mergeInParentContext: !0 }, t));
|
|
50
|
-
});
|
|
51
|
-
export {
|
|
52
|
-
y as S
|
|
53
|
-
};
|