@mittwald/flow-react-components 0.1.0-alpha.371 → 0.1.0-alpha.372
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 +9 -0
- package/dist/js/{Accordion-C2hIJ7YE.js → Accordion-Btnh1ek-.js} +3 -3
- package/dist/js/Accordion.js +1 -1
- package/dist/js/{Action-CoAr9soG.js → Action-Bm7dBV7s.js} +1 -1
- package/dist/js/Action.js +1 -1
- package/dist/js/{ActionGroup-Clp0n0zU.js → ActionGroup-Bd0aZvbX.js} +1 -1
- package/dist/js/ActionGroup.js +1 -1
- package/dist/js/Alert.js +2 -2
- package/dist/js/AlertBadge.js +3 -3
- package/dist/js/{AlertIcon-PAf5cYzT.js → AlertIcon-CWlD--Fm.js} +4 -4
- package/dist/js/AlertIcon.js +1 -1
- package/dist/js/Align.js +1 -1
- package/dist/js/{Avatar-qAB7Of-8.js → Avatar-BnqM-jbR.js} +1 -1
- package/dist/js/Avatar.js +1 -1
- package/dist/js/{Badge-CTJUmwtS.js → Badge-CIT6Z_E_.js} +4 -4
- package/dist/js/Badge.js +1 -1
- package/dist/js/Breadcrumb.js +2 -2
- package/dist/js/{Button-BWusarCg.js → Button-BTc_iJae.js} +5 -5
- package/dist/js/Button.js +1 -1
- package/dist/js/{CalendarHeader-BUz0ekXP.js → CalendarHeader-Dwo-04iM.js} +4 -4
- package/dist/js/{Checkbox-WFQQR-OW.js → Checkbox-BU4YHXyk.js} +4 -4
- package/dist/js/Checkbox.js +1 -1
- package/dist/js/{CheckboxButton-xdeKio9Y.js → CheckboxButton-D9_lyK15.js} +2 -2
- package/dist/js/CheckboxButton.js +1 -1
- package/dist/js/CheckboxGroup.js +3 -3
- package/dist/js/{CodeBlock-EIPjKMfC.js → CodeBlock-wbZE1ePG.js} +1 -1
- package/dist/js/CodeBlock.js +1 -1
- package/dist/js/{Content-DHdinfp8.js → Content-BHs6Idqq.js} +1 -1
- package/dist/js/Content.js +1 -1
- package/dist/js/ContextMenu.js +3 -3
- package/dist/js/{ContextMenuTrigger-hgBQbWcZ.js → ContextMenuTrigger-CsnzKkVf.js} +3 -3
- package/dist/js/ContextualHelp.js +4 -4
- package/dist/js/{CopyButton-DGh9PSAb.js → CopyButton-AoMPrhM7.js} +5 -5
- package/dist/js/CopyButton.js +1 -1
- package/dist/js/CounterBadge.js +1 -1
- package/dist/js/DatePicker.js +7 -7
- package/dist/js/DateRangePicker.js +7 -7
- package/dist/js/{FieldDescription-Cd3lRw7h.js → FieldDescription-XOhjsupq.js} +2 -2
- package/dist/js/FieldDescription.js +1 -1
- package/dist/js/{FieldError-1vrCcwXu.js → FieldError-B_3nLHFz.js} +3 -3
- package/dist/js/FieldError.js +1 -1
- package/dist/js/FileCard.js +9 -9
- package/dist/js/FileField.js +1 -1
- package/dist/js/{Header-DWDC4J-e.js → Header-DfOH31lw.js} +1 -1
- package/dist/js/Header.js +1 -1
- package/dist/js/HeaderNavigation.js +1 -1
- package/dist/js/{Heading-B8EYcl-r.js → Heading-C61IpDy1.js} +1 -1
- package/dist/js/Heading.js +1 -1
- package/dist/js/{Icon-Czc5vOtx.js → Icon--OEo4TjW.js} +1 -1
- package/dist/js/Icon.js +1 -1
- package/dist/js/{IconCalendar-CacKT2Kt.js → IconCalendar-C5CRRRyg.js} +1 -1
- package/dist/js/{IconCheck-B_G6dwez.js → IconCheck-s8wGBc30.js} +1 -1
- package/dist/js/{IconCheckboxEmpty-DgdZkOz9.js → IconCheckboxEmpty-CZrD3f3O.js} +1 -1
- package/dist/js/{IconCheckboxIndeterminate-CSfbHQbH.js → IconCheckboxIndeterminate-CmpwByDj.js} +1 -1
- package/dist/js/{IconChevronDown-C_jKhk_x.js → IconChevronDown-wKRgAuyR.js} +1 -1
- package/dist/js/{IconChevronRight-M4cC2dFn.js → IconChevronRight-DkfNRCtw.js} +1 -1
- package/dist/js/{IconChevronUp-SK9JZwbe.js → IconChevronUp-C2rq4v--.js} +1 -1
- package/dist/js/{IconClose-Cczxm95W.js → IconClose-Bf4k99aq.js} +1 -1
- package/dist/js/{IconContextMenu-qp3vdZ_f.js → IconContextMenu-x1p9NcUF.js} +1 -1
- package/dist/js/{IconCopy-DfWYL8oQ.js → IconCopy-Ig2YhkQv.js} +1 -1
- package/dist/js/{IconDanger-Bm53DCTg.js → IconDanger-BwFfgysk.js} +1 -1
- package/dist/js/{IconExternalLink-DRkRQEd3.js → IconExternalLink-CN5WgFKj.js} +1 -1
- package/dist/js/{IconImage-KRg2_926.js → IconImage-CaXFaBpx.js} +1 -1
- package/dist/js/{IconInfo-HXrweZ3Z.js → IconInfo-BQ-pXsUh.js} +1 -1
- package/dist/js/{IconPending-a3qUa34r.js → IconPending-DVqDmv2n.js} +1 -1
- package/dist/js/{IconPlus-CfhsvvQB.js → IconPlus-CccQXOjh.js} +1 -1
- package/dist/js/{IconRadioOn-D24Zr8bP.js → IconRadioOn-D7w6KLWm.js} +1 -1
- package/dist/js/{IconSearch-BE56nMOe.js → IconSearch-9xESFc33.js} +1 -1
- package/dist/js/{IconSucceeded-C7cQH_b1.js → IconSucceeded-SyLL7w9B.js} +1 -1
- package/dist/js/{IconView-DKba1B4t.js → IconView-CSIFhlza.js} +1 -1
- package/dist/js/{IconWarning-Bi91PP3-.js → IconWarning-BQcw4Db0.js} +1 -1
- package/dist/js/Icons.js +22 -22
- package/dist/js/{Image-7Aa5OZPs.js → Image-BIFROw6f.js} +1 -1
- package/dist/js/Image.js +1 -1
- package/dist/js/Initials.js +1 -1
- package/dist/js/{Label-CUPc2dA6.js → Label-BK8Njoxm.js} +1 -1
- package/dist/js/Label.js +1 -1
- package/dist/js/LayoutCard.js +1 -1
- package/dist/js/LightBox.js +4 -4
- package/dist/js/{Link-B-ss8Inh.js → Link-CN3Wa-yA.js} +3 -3
- package/dist/js/Link.js +1 -1
- package/dist/js/List.js +16 -16
- package/dist/js/{LoadingSpinner-HntiYurC.js → LoadingSpinner-CcTq8PRj.js} +2 -2
- package/dist/js/LoadingSpinner.js +1 -1
- package/dist/js/Markdown.js +4 -4
- package/dist/js/{MenuItem-CEzmbX2U.js → MenuItem-a7BWfwHo.js} +6 -6
- package/dist/js/MenuItem.js +1 -1
- package/dist/js/Message.js +2 -2
- package/dist/js/Modal.js +6 -6
- package/dist/js/Navigation.js +2 -2
- package/dist/js/Notification.js +5 -5
- package/dist/js/NumberField.js +7 -7
- package/dist/js/{Popover-DO6LcoKP.js → Popover-3qM_-J3x.js} +1 -1
- package/dist/js/Popover.js +2 -2
- package/dist/js/RadioGroup.js +4 -4
- package/dist/js/{SearchField-DbuaeZzD.js → SearchField-BGdC1K9_.js} +6 -6
- package/dist/js/SearchField.js +1 -1
- package/dist/js/{Section-C1aEVQli.js → Section-7khrqgxc.js} +1 -1
- package/dist/js/Section.js +1 -1
- package/dist/js/SegmentedControl.js +4 -4
- package/dist/js/Select.js +582 -62
- package/dist/js/Slider.js +4 -4
- package/dist/js/Switch.js +5 -5
- package/dist/js/Tabs.js +7 -7
- package/dist/js/{Text-B2VXg-aU.js → Text-Dh4iy9qD.js} +1 -1
- package/dist/js/Text.js +1 -1
- package/dist/js/TextArea.js +2 -2
- package/dist/js/TextField.js +2 -2
- package/dist/js/{TextFieldBase-xxRlR0ZU.js → TextFieldBase-DJLq39K8.js} +2 -2
- package/dist/js/TimeField.js +2 -2
- package/dist/js/{flowComponent-Bs2i5Rrn.js → flowComponent-BQs9wMX_.js} +6 -5
- package/dist/js/react-hook-form.js +2 -2
- package/dist/js/types/components/List/typedList.d.ts +1 -1
- package/dist/js/types/components/Select/components/CountryOptions/CountryOptions.d.ts +19 -0
- package/dist/js/types/components/Select/components/CountryOptions/index.d.ts +4 -0
- package/dist/js/types/components/Select/components/CountryOptions/lib/sortBy.d.ts +2 -0
- package/dist/js/types/components/Select/index.d.ts +1 -0
- package/dist/js/types/components/Select/stories/Default.stories.d.ts +2 -0
- package/dist/js/types/components/propTypes/index.d.ts +2 -0
- package/dist/js/types/lib/propsContext/propsContext.d.ts +2 -0
- package/package.json +4 -4
package/dist/js/Slider.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
3
|
import e from "react";
|
|
4
|
-
import { f as E } from "./flowComponent-
|
|
4
|
+
import { f as E } from "./flowComponent-BQs9wMX_.js";
|
|
5
5
|
import * as n from "react-aria-components";
|
|
6
6
|
import h from "clsx";
|
|
7
7
|
import "./propsContext-DzAKlmhS.js";
|
|
8
8
|
import { PropsContextProvider as v } from "./PropsContextProvider.js";
|
|
9
9
|
import "@react-aria/utils";
|
|
10
10
|
import "remeda";
|
|
11
|
-
import { B as i } from "./Button-
|
|
11
|
+
import { B as i } from "./Button-BTc_iJae.js";
|
|
12
12
|
import "@tabler/icons-react";
|
|
13
|
-
import "./Icon
|
|
14
|
-
import { I as w, a as N } from "./IconPlus-
|
|
13
|
+
import "./Icon--OEo4TjW.js";
|
|
14
|
+
import { I as w, a as N } from "./IconPlus-CccQXOjh.js";
|
|
15
15
|
import { useLocalizedStringFormatter as k } from "react-aria";
|
|
16
16
|
const x = "flow--slider", P = "flow--slider--text", S = "flow--slider--value", T = "flow--slider--track", g = "flow--slider--fill", y = "flow--slider--initial-marker", F = "flow--slider--thumb", I = "flow--slider--increment", M = "flow--slider--decrement", C = "flow--slider--disabled", r = {
|
|
17
17
|
slider: x,
|
package/dist/js/Switch.js
CHANGED
|
@@ -4,16 +4,16 @@ import e from "react";
|
|
|
4
4
|
import * as n from "react-aria-components";
|
|
5
5
|
import f from "clsx";
|
|
6
6
|
import "@tabler/icons-react";
|
|
7
|
-
import "./Icon
|
|
8
|
-
import { I as p } from "./IconCheck-
|
|
9
|
-
import { I as h } from "./IconClose-
|
|
10
|
-
import { L as w } from "./Label-
|
|
7
|
+
import "./Icon--OEo4TjW.js";
|
|
8
|
+
import { I as p } from "./IconCheck-s8wGBc30.js";
|
|
9
|
+
import { I as h } from "./IconClose-Bf4k99aq.js";
|
|
10
|
+
import { L as w } from "./Label-BK8Njoxm.js";
|
|
11
11
|
import { C as d } from "./ClearPropsContext-CUvsbMn8.js";
|
|
12
12
|
import "./propsContext-DzAKlmhS.js";
|
|
13
13
|
import "@react-aria/utils";
|
|
14
14
|
import "remeda";
|
|
15
15
|
import "dot-prop";
|
|
16
|
-
import { f as b } from "./flowComponent-
|
|
16
|
+
import { f as b } from "./flowComponent-BQs9wMX_.js";
|
|
17
17
|
const E = "flow--switch--track", C = "flow--switch--handle", N = "flow--switch--label", t = {
|
|
18
18
|
switch: "flow--switch",
|
|
19
19
|
"label-leading": "flow--switch--label-leading",
|
package/dist/js/Tabs.js
CHANGED
|
@@ -4,15 +4,15 @@ import e, { useRef as h, useState as w, useEffect as M, useId as N, createContex
|
|
|
4
4
|
import * as C from "react-aria-components";
|
|
5
5
|
import u from "clsx";
|
|
6
6
|
import { TunnelExit as E, TunnelProvider as P, TunnelEntry as f } from "@mittwald/react-tunnel";
|
|
7
|
-
import { f as O } from "./flowComponent-
|
|
7
|
+
import { f as O } from "./flowComponent-BQs9wMX_.js";
|
|
8
8
|
import { useCallbackRef as S } from "use-callback-ref";
|
|
9
|
-
import { a as A, C as B } from "./ContextMenuTrigger-
|
|
10
|
-
import { M as K } from "./MenuItem-
|
|
11
|
-
import { B as L } from "./Button-
|
|
9
|
+
import { a as A, C as B } from "./ContextMenuTrigger-CsnzKkVf.js";
|
|
10
|
+
import { M as K } from "./MenuItem-a7BWfwHo.js";
|
|
11
|
+
import { B as L } from "./Button-BTc_iJae.js";
|
|
12
12
|
import "@tabler/icons-react";
|
|
13
|
-
import "./Icon
|
|
14
|
-
import { I as W } from "./IconContextMenu-
|
|
15
|
-
import { T as F } from "./Text-
|
|
13
|
+
import "./Icon--OEo4TjW.js";
|
|
14
|
+
import { I as W } from "./IconContextMenu-x1p9NcUF.js";
|
|
15
|
+
import { T as F } from "./Text-Dh4iy9qD.js";
|
|
16
16
|
import "./propsContext-DzAKlmhS.js";
|
|
17
17
|
import { PropsContextProvider as R } from "./PropsContextProvider.js";
|
|
18
18
|
import "@react-aria/utils";
|
|
@@ -8,7 +8,7 @@ import "@react-aria/utils";
|
|
|
8
8
|
import "./propsContext-DzAKlmhS.js";
|
|
9
9
|
import "remeda";
|
|
10
10
|
import C from "invariant";
|
|
11
|
-
import { f as h } from "./flowComponent-
|
|
11
|
+
import { f as h } from "./flowComponent-BQs9wMX_.js";
|
|
12
12
|
import { E as g } from "./EmulatedBoldText-Dtox8Wd1.js";
|
|
13
13
|
import { W as y } from "./Wrap-DGT1h1o3.js";
|
|
14
14
|
import P from "clsx";
|
package/dist/js/Text.js
CHANGED
package/dist/js/TextArea.js
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
/* */
|
|
3
3
|
import o, { useRef as h } from "react";
|
|
4
4
|
import * as x from "react-aria-components";
|
|
5
|
-
import { T as g } from "./TextFieldBase-
|
|
5
|
+
import { T as g } from "./TextFieldBase-DJLq39K8.js";
|
|
6
6
|
import { C as u } from "./ClearPropsContext-CUvsbMn8.js";
|
|
7
7
|
import "./propsContext-DzAKlmhS.js";
|
|
8
8
|
import { mergeRefs as d } from "@react-aria/utils";
|
|
9
9
|
import "remeda";
|
|
10
10
|
import "dot-prop";
|
|
11
|
-
import { f as A } from "./flowComponent-
|
|
11
|
+
import { f as A } from "./flowComponent-BQs9wMX_.js";
|
|
12
12
|
const H = "flow--text-area", R = {
|
|
13
13
|
textArea: H
|
|
14
14
|
}, B = A("TextArea", (n) => {
|
package/dist/js/TextField.js
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
/* */
|
|
3
3
|
import e from "react";
|
|
4
4
|
import * as s from "react-aria-components";
|
|
5
|
-
import { T as a } from "./TextFieldBase-
|
|
5
|
+
import { T as a } from "./TextFieldBase-DJLq39K8.js";
|
|
6
6
|
import { C as n } from "./ClearPropsContext-CUvsbMn8.js";
|
|
7
7
|
import "./propsContext-DzAKlmhS.js";
|
|
8
8
|
import "@react-aria/utils";
|
|
9
9
|
import "remeda";
|
|
10
10
|
import "dot-prop";
|
|
11
|
-
import { f as p } from "./flowComponent-
|
|
11
|
+
import { f as p } from "./flowComponent-BQs9wMX_.js";
|
|
12
12
|
const c = "flow--text-field", f = {
|
|
13
13
|
textField: c
|
|
14
14
|
}, w = p("TextField", (t) => {
|
|
@@ -9,8 +9,8 @@ import { PropsContextProvider as B } from "./PropsContextProvider.js";
|
|
|
9
9
|
import "@react-aria/utils";
|
|
10
10
|
import "./propsContext-DzAKlmhS.js";
|
|
11
11
|
import "remeda";
|
|
12
|
-
import { F as R } from "./FieldError-
|
|
13
|
-
import { F as g } from "./FieldDescription-
|
|
12
|
+
import { F as R } from "./FieldError-B_3nLHFz.js";
|
|
13
|
+
import { F as g } from "./FieldDescription-XOhjsupq.js";
|
|
14
14
|
import { useLocalizedStringFormatter as L } from "react-aria";
|
|
15
15
|
const P = { "de-DE": {
|
|
16
16
|
"textFieldBase.characters": (e, r) => `${r.select({ 0: () => `${e.count}`, other: () => `${e.count}/${e.maxCount}` }, e.maxCount)} Zeichen`
|
package/dist/js/TimeField.js
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
/* */
|
|
3
3
|
import e from "react";
|
|
4
4
|
import * as r from "react-aria-components";
|
|
5
|
-
import { f as p } from "./flowComponent-
|
|
5
|
+
import { f as p } from "./flowComponent-BQs9wMX_.js";
|
|
6
6
|
import "./propsContext-DzAKlmhS.js";
|
|
7
7
|
import { PropsContextProvider as d } from "./PropsContextProvider.js";
|
|
8
8
|
import "@react-aria/utils";
|
|
9
9
|
import "remeda";
|
|
10
10
|
import { f as t } from "./FormField.module-CqWpTQKP.js";
|
|
11
|
-
import { F as f } from "./FieldError-
|
|
11
|
+
import { F as f } from "./FieldError-B_3nLHFz.js";
|
|
12
12
|
import u from "clsx";
|
|
13
13
|
const F = "flow--time-field--date-input", E = {
|
|
14
14
|
dateInput: F
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
|
-
import s, { isValidElement as x, createContext as f, useContext as P, forwardRef as
|
|
3
|
+
import s, { isValidElement as x, createContext as f, useContext as P, forwardRef as y, cloneElement as g } from "react";
|
|
4
4
|
import { u as h } from "./propsContext-DzAKlmhS.js";
|
|
5
5
|
import { mergeProps as T } from "@react-aria/utils";
|
|
6
6
|
import { pickBy as v, omitBy as S } from "remeda";
|
|
@@ -28,6 +28,7 @@ const F = {
|
|
|
28
28
|
ContextualHelpTrigger: !0,
|
|
29
29
|
CopyButton: !0,
|
|
30
30
|
CounterBadge: !0,
|
|
31
|
+
CountryOptions: !0,
|
|
31
32
|
DatePicker: !0,
|
|
32
33
|
DateRangePicker: !0,
|
|
33
34
|
FieldDescription: !0,
|
|
@@ -123,8 +124,8 @@ const w = (t) => v(t, (o, r) => d(r)), I = (t, o) => {
|
|
|
123
124
|
};
|
|
124
125
|
return /* @__PURE__ */ s.createElement(m.Provider, { value: i }, e);
|
|
125
126
|
};
|
|
126
|
-
function
|
|
127
|
-
return
|
|
127
|
+
function G(t, o) {
|
|
128
|
+
return y((r, e) => {
|
|
128
129
|
const { tunnelId: n, wrapWith: i, ...c } = M(
|
|
129
130
|
t,
|
|
130
131
|
r
|
|
@@ -133,10 +134,10 @@ function O(t, o) {
|
|
|
133
134
|
...c
|
|
134
135
|
};
|
|
135
136
|
let u = /* @__PURE__ */ s.createElement(o, { ...C });
|
|
136
|
-
return "slot" in r && r.slot && (u = /* @__PURE__ */ s.createElement(D, { slot: r.slot, component: t }, u)), i && (u =
|
|
137
|
+
return "slot" in r && r.slot && (u = /* @__PURE__ */ s.createElement(D, { slot: r.slot, component: t }, u)), i && (u = g(i, void 0, u)), n && (u = /* @__PURE__ */ s.createElement(E, { id: n }, u)), u;
|
|
137
138
|
});
|
|
138
139
|
}
|
|
139
140
|
export {
|
|
140
|
-
|
|
141
|
+
G as f,
|
|
141
142
|
R as u
|
|
142
143
|
};
|
|
@@ -7,8 +7,8 @@ import { PropsContextProvider as b } from "./PropsContextProvider.js";
|
|
|
7
7
|
import "@react-aria/utils";
|
|
8
8
|
import "remeda";
|
|
9
9
|
import { d as F } from "./dynamic-ClpUSmEt.js";
|
|
10
|
-
import { F as A } from "./FieldError-
|
|
11
|
-
import { a as P, A as y } from "./Action-
|
|
10
|
+
import { F as A } from "./FieldError-B_3nLHFz.js";
|
|
11
|
+
import { a as P, A as y } from "./Action-Bm7dBV7s.js";
|
|
12
12
|
const C = x({}), V = C.Provider, f = () => v(C);
|
|
13
13
|
function D(t) {
|
|
14
14
|
var i;
|
|
@@ -42,13 +42,13 @@ export declare const typedList: <T>() => {
|
|
|
42
42
|
onHoverStart?: ((e: import('react-aria').HoverEvent) => void) | undefined;
|
|
43
43
|
onHoverEnd?: ((e: import('react-aria').HoverEvent) => void) | undefined;
|
|
44
44
|
onHoverChange?: ((isHovering: boolean) => void) | undefined;
|
|
45
|
+
dependencies?: any[] | undefined;
|
|
45
46
|
download?: boolean | string | undefined;
|
|
46
47
|
hrefLang?: string | undefined;
|
|
47
48
|
ping?: string | undefined;
|
|
48
49
|
referrerPolicy?: import('react').HTMLAttributeReferrerPolicy | undefined;
|
|
49
50
|
routerOptions?: import('@react-types/shared').RouterOptions | undefined;
|
|
50
51
|
textValue?: string | undefined;
|
|
51
|
-
dependencies?: any[] | undefined;
|
|
52
52
|
columns?: Iterable<never> | undefined;
|
|
53
53
|
}) => null;
|
|
54
54
|
TableCell: (ignoredProps: Omit<import('./model/table/types').TableCellShape<T>, "renderFn"> & {
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { PropsWithChildren, default as React } from 'react';
|
|
2
|
+
import { ListBoxProps } from 'react-aria-components';
|
|
3
|
+
import { FlowComponentProps } from '../../../../lib/componentFactory/flowComponent';
|
|
4
|
+
export interface Country {
|
|
5
|
+
code: string;
|
|
6
|
+
name: string;
|
|
7
|
+
}
|
|
8
|
+
export type CountryFilterFn = (country: Country) => boolean;
|
|
9
|
+
export type CountrySortFn = (left: Country, right: Country) => number;
|
|
10
|
+
export interface CountryOptionsProps<T = object> extends PropsWithChildren<Omit<ListBoxProps<T>, "children">>, FlowComponentProps {
|
|
11
|
+
filterBy?: CountryFilterFn;
|
|
12
|
+
sortBy?: CountrySortFn;
|
|
13
|
+
}
|
|
14
|
+
export interface CountryOptionsProps<T = object> extends PropsWithChildren<Omit<ListBoxProps<T>, "children">>, FlowComponentProps {
|
|
15
|
+
filterBy?: CountryFilterFn;
|
|
16
|
+
sortBy?: CountrySortFn;
|
|
17
|
+
}
|
|
18
|
+
export declare const CountryOptions: React.ForwardRefExoticComponent<CountryOptionsProps<object> & React.RefAttributes<never>>;
|
|
19
|
+
export default CountryOptions;
|
|
@@ -10,3 +10,5 @@ export declare const WithFieldDescription: Story;
|
|
|
10
10
|
export declare const WithDefaultValue: Story;
|
|
11
11
|
export declare const WithFieldError: Story;
|
|
12
12
|
export declare const WithNumbers: Story;
|
|
13
|
+
export declare const WithCountryOptions: Story;
|
|
14
|
+
export declare const WithCountryOptionsAndCustomSort: Story;
|
|
@@ -51,6 +51,7 @@ import { SegmentProps } from '../SegmentedControl/components/Segment';
|
|
|
51
51
|
import { FileCardProps } from '../FileCard';
|
|
52
52
|
import { FileFieldProps } from '../FileField';
|
|
53
53
|
import { AlignProps } from '../Align';
|
|
54
|
+
import { CountryOptionsProps } from '../Select/components/CountryOptions';
|
|
54
55
|
import type * as Aria from "react-aria-components";
|
|
55
56
|
export * from './types';
|
|
56
57
|
export interface FlowComponentPropsTypes {
|
|
@@ -74,6 +75,7 @@ export interface FlowComponentPropsTypes {
|
|
|
74
75
|
ContextualHelpTrigger: OverlayTriggerProps;
|
|
75
76
|
CopyButton: CopyButtonProps;
|
|
76
77
|
CounterBadge: CounterBadgeProps;
|
|
78
|
+
CountryOptions: CountryOptionsProps;
|
|
77
79
|
DatePicker: DatePickerProps<Aria.DateValue>;
|
|
78
80
|
DateRangePicker: DateRangePickerProps<Aria.DateValue>;
|
|
79
81
|
FieldDescription: FieldDescriptionProps;
|
|
@@ -20,6 +20,7 @@ export declare const propsContext: import('react').Context<Partial<{
|
|
|
20
20
|
ContextualHelpTrigger: import('./types').ComponentPropsContext<"ContextualHelpTrigger">;
|
|
21
21
|
CopyButton: import('./types').ComponentPropsContext<"CopyButton">;
|
|
22
22
|
CounterBadge: import('./types').ComponentPropsContext<"CounterBadge">;
|
|
23
|
+
CountryOptions: import('./types').ComponentPropsContext<"CountryOptions">;
|
|
23
24
|
DatePicker: import('./types').ComponentPropsContext<"DatePicker">;
|
|
24
25
|
DateRangePicker: import('./types').ComponentPropsContext<"DateRangePicker">;
|
|
25
26
|
FieldDescription: import('./types').ComponentPropsContext<"FieldDescription">;
|
|
@@ -83,6 +84,7 @@ export declare const PropsContextProvider: import('react').Provider<Partial<{
|
|
|
83
84
|
ContextualHelpTrigger: import('./types').ComponentPropsContext<"ContextualHelpTrigger">;
|
|
84
85
|
CopyButton: import('./types').ComponentPropsContext<"CopyButton">;
|
|
85
86
|
CounterBadge: import('./types').ComponentPropsContext<"CounterBadge">;
|
|
87
|
+
CountryOptions: import('./types').ComponentPropsContext<"CountryOptions">;
|
|
86
88
|
DatePicker: import('./types').ComponentPropsContext<"DatePicker">;
|
|
87
89
|
DateRangePicker: import('./types').ComponentPropsContext<"DateRangePicker">;
|
|
88
90
|
FieldDescription: import('./types').ComponentPropsContext<"FieldDescription">;
|
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.372",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A React implementation of Flow, mittwald’s design system",
|
|
6
6
|
"homepage": "https://mittwald.github.io/flow",
|
|
@@ -425,7 +425,7 @@
|
|
|
425
425
|
"@chakra-ui/live-region": "^2.1.0",
|
|
426
426
|
"@internationalized/date": "^3.6.0",
|
|
427
427
|
"@internationalized/string-compiler": "^3.2.6",
|
|
428
|
-
"@mittwald/react-tunnel": "^0.1.0-alpha.
|
|
428
|
+
"@mittwald/react-tunnel": "^0.1.0-alpha.372",
|
|
429
429
|
"@mittwald/react-use-promise": "^2.6.0",
|
|
430
430
|
"@react-aria/form": "^3.0.11",
|
|
431
431
|
"@react-aria/utils": "^3.26.0",
|
|
@@ -456,7 +456,7 @@
|
|
|
456
456
|
},
|
|
457
457
|
"devDependencies": {
|
|
458
458
|
"@faker-js/faker": "^9.2.0",
|
|
459
|
-
"@mittwald/flow-design-tokens": "^0.1.0-alpha.
|
|
459
|
+
"@mittwald/flow-design-tokens": "^0.1.0-alpha.372",
|
|
460
460
|
"@mittwald/react-use-promise": "^2.6.0",
|
|
461
461
|
"@nx/storybook": "^20.1.3",
|
|
462
462
|
"@storybook/addon-a11y": "^8.4.5",
|
|
@@ -551,5 +551,5 @@
|
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
553
|
},
|
|
554
|
-
"gitHead": "
|
|
554
|
+
"gitHead": "6e7c4a4852f98fa02afbd31a4d6cc9fd96a66669"
|
|
555
555
|
}
|