@mittwald/flow-react-components 0.2.0-alpha.381 → 0.2.0-alpha.382
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 +6 -0
- package/dist/assets/doc-properties.json +422 -422
- package/dist/js/components/src/components/NumberField/NumberField.mjs +3 -9
- package/dist/js/components/src/components/NumberField/NumberField.mjs.map +1 -1
- package/dist/types/components/NumberField/NumberField.d.ts.map +1 -1
- package/dist/types/integrations/react-hook-form/components/Field/stories/NumberField.stories.d.ts.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [0.2.0-alpha.382](https://github.com/mittwald/flow/compare/0.2.0-alpha.381...0.2.0-alpha.382) (2025-08-04)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **NumberField:** fix incorrect defaultValue prop ([#1819](https://github.com/mittwald/flow/issues/1819)) ([0919c7b](https://github.com/mittwald/flow/commit/0919c7bc70f5e605a8c93b63bcabc5fe3dcb5bb6))
|
|
11
|
+
|
|
6
12
|
# [0.2.0-alpha.381](https://github.com/mittwald/flow/compare/0.2.0-alpha.380...0.2.0-alpha.381) (2025-08-04)
|
|
7
13
|
|
|
8
14
|
**Note:** Version bump only for package @mittwald/flow-react-components
|
|
@@ -90941,6 +90941,165 @@
|
|
|
90941
90941
|
}
|
|
90942
90942
|
}
|
|
90943
90943
|
},
|
|
90944
|
+
{
|
|
90945
|
+
"tags": {},
|
|
90946
|
+
"filePath": "/home/runner/work/flow/flow/packages/components/src/components/LightBox/LightBox.tsx",
|
|
90947
|
+
"description": "",
|
|
90948
|
+
"displayName": "LightBox",
|
|
90949
|
+
"methods": [],
|
|
90950
|
+
"props": {
|
|
90951
|
+
"controller": {
|
|
90952
|
+
"defaultValue": null,
|
|
90953
|
+
"description": "An overlay controller to control the light box state.",
|
|
90954
|
+
"name": "controller",
|
|
90955
|
+
"parent": {
|
|
90956
|
+
"fileName": "components/src/components/LightBox/LightBox.tsx",
|
|
90957
|
+
"name": "LightBoxProps"
|
|
90958
|
+
},
|
|
90959
|
+
"declarations": [
|
|
90960
|
+
{
|
|
90961
|
+
"fileName": "components/src/components/LightBox/LightBox.tsx",
|
|
90962
|
+
"name": "LightBoxProps"
|
|
90963
|
+
}
|
|
90964
|
+
],
|
|
90965
|
+
"required": false,
|
|
90966
|
+
"type": {
|
|
90967
|
+
"name": "OverlayController"
|
|
90968
|
+
}
|
|
90969
|
+
},
|
|
90970
|
+
"fitScreen": {
|
|
90971
|
+
"defaultValue": {
|
|
90972
|
+
"value": "true"
|
|
90973
|
+
},
|
|
90974
|
+
"description": "Whether content can be displayed larger than the available space in the\nscreen.",
|
|
90975
|
+
"name": "fitScreen",
|
|
90976
|
+
"parent": {
|
|
90977
|
+
"fileName": "components/src/components/LightBox/LightBox.tsx",
|
|
90978
|
+
"name": "LightBoxProps"
|
|
90979
|
+
},
|
|
90980
|
+
"declarations": [
|
|
90981
|
+
{
|
|
90982
|
+
"fileName": "components/src/components/LightBox/LightBox.tsx",
|
|
90983
|
+
"name": "LightBoxProps"
|
|
90984
|
+
}
|
|
90985
|
+
],
|
|
90986
|
+
"required": false,
|
|
90987
|
+
"type": {
|
|
90988
|
+
"name": "boolean"
|
|
90989
|
+
}
|
|
90990
|
+
},
|
|
90991
|
+
"children": {
|
|
90992
|
+
"defaultValue": null,
|
|
90993
|
+
"description": "",
|
|
90994
|
+
"name": "children",
|
|
90995
|
+
"declarations": [
|
|
90996
|
+
{
|
|
90997
|
+
"fileName": "flow/node_modules/.pnpm/@types+react@19.1.8/node_modules/@types/react/index.d.ts",
|
|
90998
|
+
"name": "TypeLiteral"
|
|
90999
|
+
}
|
|
91000
|
+
],
|
|
91001
|
+
"required": false,
|
|
91002
|
+
"type": {
|
|
91003
|
+
"name": "ReactNode"
|
|
91004
|
+
}
|
|
91005
|
+
},
|
|
91006
|
+
"wrapWith": {
|
|
91007
|
+
"defaultValue": null,
|
|
91008
|
+
"description": "",
|
|
91009
|
+
"name": "wrapWith",
|
|
91010
|
+
"parent": {
|
|
91011
|
+
"fileName": "components/src/lib/componentFactory/flowComponent.tsx",
|
|
91012
|
+
"name": "FlowComponentProps"
|
|
91013
|
+
},
|
|
91014
|
+
"declarations": [
|
|
91015
|
+
{
|
|
91016
|
+
"fileName": "components/src/lib/componentFactory/flowComponent.tsx",
|
|
91017
|
+
"name": "FlowComponentProps"
|
|
91018
|
+
}
|
|
91019
|
+
],
|
|
91020
|
+
"required": false,
|
|
91021
|
+
"type": {
|
|
91022
|
+
"name": "ReactElement<unknown, string | JSXElementConstructor<any>>"
|
|
91023
|
+
}
|
|
91024
|
+
},
|
|
91025
|
+
"tunnelId": {
|
|
91026
|
+
"defaultValue": null,
|
|
91027
|
+
"description": "@internal",
|
|
91028
|
+
"name": "tunnelId",
|
|
91029
|
+
"parent": {
|
|
91030
|
+
"fileName": "components/src/lib/types/props.ts",
|
|
91031
|
+
"name": "PropsWithTunnel"
|
|
91032
|
+
},
|
|
91033
|
+
"declarations": [
|
|
91034
|
+
{
|
|
91035
|
+
"fileName": "components/src/lib/types/props.ts",
|
|
91036
|
+
"name": "PropsWithTunnel"
|
|
91037
|
+
}
|
|
91038
|
+
],
|
|
91039
|
+
"required": false,
|
|
91040
|
+
"type": {
|
|
91041
|
+
"name": "string | null"
|
|
91042
|
+
}
|
|
91043
|
+
},
|
|
91044
|
+
"ref": {
|
|
91045
|
+
"defaultValue": null,
|
|
91046
|
+
"description": "Allows getting a ref to the component instance.\nOnce the component unmounts, React will set `ref.current` to `null`\n(or call the ref with `null` if you passed a callback ref).\n@see {@link https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom React Docs}",
|
|
91047
|
+
"name": "ref",
|
|
91048
|
+
"parent": {
|
|
91049
|
+
"fileName": "flow/node_modules/.pnpm/@types+react@19.1.8/node_modules/@types/react/index.d.ts",
|
|
91050
|
+
"name": "RefAttributes"
|
|
91051
|
+
},
|
|
91052
|
+
"declarations": [
|
|
91053
|
+
{
|
|
91054
|
+
"fileName": "flow/node_modules/.pnpm/@types+react@19.1.8/node_modules/@types/react/index.d.ts",
|
|
91055
|
+
"name": "RefAttributes"
|
|
91056
|
+
}
|
|
91057
|
+
],
|
|
91058
|
+
"required": false,
|
|
91059
|
+
"type": {
|
|
91060
|
+
"name": "Ref<HTMLInputElement>"
|
|
91061
|
+
}
|
|
91062
|
+
},
|
|
91063
|
+
"key": {
|
|
91064
|
+
"defaultValue": null,
|
|
91065
|
+
"description": "",
|
|
91066
|
+
"name": "key",
|
|
91067
|
+
"parent": {
|
|
91068
|
+
"fileName": "flow/node_modules/.pnpm/@types+react@19.1.8/node_modules/@types/react/index.d.ts",
|
|
91069
|
+
"name": "Attributes"
|
|
91070
|
+
},
|
|
91071
|
+
"declarations": [
|
|
91072
|
+
{
|
|
91073
|
+
"fileName": "flow/node_modules/.pnpm/@types+react@19.1.8/node_modules/@types/react/index.d.ts",
|
|
91074
|
+
"name": "Attributes"
|
|
91075
|
+
}
|
|
91076
|
+
],
|
|
91077
|
+
"required": false,
|
|
91078
|
+
"type": {
|
|
91079
|
+
"name": "Key | null"
|
|
91080
|
+
}
|
|
91081
|
+
},
|
|
91082
|
+
"className": {
|
|
91083
|
+
"defaultValue": null,
|
|
91084
|
+
"description": "The elements class name.",
|
|
91085
|
+
"name": "className",
|
|
91086
|
+
"parent": {
|
|
91087
|
+
"fileName": "components/src/lib/types/props.ts",
|
|
91088
|
+
"name": "PropsWithClassName"
|
|
91089
|
+
},
|
|
91090
|
+
"declarations": [
|
|
91091
|
+
{
|
|
91092
|
+
"fileName": "components/src/lib/types/props.ts",
|
|
91093
|
+
"name": "PropsWithClassName"
|
|
91094
|
+
}
|
|
91095
|
+
],
|
|
91096
|
+
"required": false,
|
|
91097
|
+
"type": {
|
|
91098
|
+
"name": "string"
|
|
91099
|
+
}
|
|
91100
|
+
}
|
|
91101
|
+
}
|
|
91102
|
+
},
|
|
90944
91103
|
{
|
|
90945
91104
|
"tags": {
|
|
90946
91105
|
"flr-generate": "all",
|
|
@@ -93022,165 +93181,6 @@
|
|
|
93022
93181
|
}
|
|
93023
93182
|
}
|
|
93024
93183
|
},
|
|
93025
|
-
{
|
|
93026
|
-
"tags": {},
|
|
93027
|
-
"filePath": "/home/runner/work/flow/flow/packages/components/src/components/LightBox/LightBox.tsx",
|
|
93028
|
-
"description": "",
|
|
93029
|
-
"displayName": "LightBox",
|
|
93030
|
-
"methods": [],
|
|
93031
|
-
"props": {
|
|
93032
|
-
"controller": {
|
|
93033
|
-
"defaultValue": null,
|
|
93034
|
-
"description": "An overlay controller to control the light box state.",
|
|
93035
|
-
"name": "controller",
|
|
93036
|
-
"parent": {
|
|
93037
|
-
"fileName": "components/src/components/LightBox/LightBox.tsx",
|
|
93038
|
-
"name": "LightBoxProps"
|
|
93039
|
-
},
|
|
93040
|
-
"declarations": [
|
|
93041
|
-
{
|
|
93042
|
-
"fileName": "components/src/components/LightBox/LightBox.tsx",
|
|
93043
|
-
"name": "LightBoxProps"
|
|
93044
|
-
}
|
|
93045
|
-
],
|
|
93046
|
-
"required": false,
|
|
93047
|
-
"type": {
|
|
93048
|
-
"name": "OverlayController"
|
|
93049
|
-
}
|
|
93050
|
-
},
|
|
93051
|
-
"fitScreen": {
|
|
93052
|
-
"defaultValue": {
|
|
93053
|
-
"value": "true"
|
|
93054
|
-
},
|
|
93055
|
-
"description": "Whether content can be displayed larger than the available space in the\nscreen.",
|
|
93056
|
-
"name": "fitScreen",
|
|
93057
|
-
"parent": {
|
|
93058
|
-
"fileName": "components/src/components/LightBox/LightBox.tsx",
|
|
93059
|
-
"name": "LightBoxProps"
|
|
93060
|
-
},
|
|
93061
|
-
"declarations": [
|
|
93062
|
-
{
|
|
93063
|
-
"fileName": "components/src/components/LightBox/LightBox.tsx",
|
|
93064
|
-
"name": "LightBoxProps"
|
|
93065
|
-
}
|
|
93066
|
-
],
|
|
93067
|
-
"required": false,
|
|
93068
|
-
"type": {
|
|
93069
|
-
"name": "boolean"
|
|
93070
|
-
}
|
|
93071
|
-
},
|
|
93072
|
-
"children": {
|
|
93073
|
-
"defaultValue": null,
|
|
93074
|
-
"description": "",
|
|
93075
|
-
"name": "children",
|
|
93076
|
-
"declarations": [
|
|
93077
|
-
{
|
|
93078
|
-
"fileName": "flow/node_modules/.pnpm/@types+react@19.1.8/node_modules/@types/react/index.d.ts",
|
|
93079
|
-
"name": "TypeLiteral"
|
|
93080
|
-
}
|
|
93081
|
-
],
|
|
93082
|
-
"required": false,
|
|
93083
|
-
"type": {
|
|
93084
|
-
"name": "ReactNode"
|
|
93085
|
-
}
|
|
93086
|
-
},
|
|
93087
|
-
"wrapWith": {
|
|
93088
|
-
"defaultValue": null,
|
|
93089
|
-
"description": "",
|
|
93090
|
-
"name": "wrapWith",
|
|
93091
|
-
"parent": {
|
|
93092
|
-
"fileName": "components/src/lib/componentFactory/flowComponent.tsx",
|
|
93093
|
-
"name": "FlowComponentProps"
|
|
93094
|
-
},
|
|
93095
|
-
"declarations": [
|
|
93096
|
-
{
|
|
93097
|
-
"fileName": "components/src/lib/componentFactory/flowComponent.tsx",
|
|
93098
|
-
"name": "FlowComponentProps"
|
|
93099
|
-
}
|
|
93100
|
-
],
|
|
93101
|
-
"required": false,
|
|
93102
|
-
"type": {
|
|
93103
|
-
"name": "ReactElement<unknown, string | JSXElementConstructor<any>>"
|
|
93104
|
-
}
|
|
93105
|
-
},
|
|
93106
|
-
"tunnelId": {
|
|
93107
|
-
"defaultValue": null,
|
|
93108
|
-
"description": "@internal",
|
|
93109
|
-
"name": "tunnelId",
|
|
93110
|
-
"parent": {
|
|
93111
|
-
"fileName": "components/src/lib/types/props.ts",
|
|
93112
|
-
"name": "PropsWithTunnel"
|
|
93113
|
-
},
|
|
93114
|
-
"declarations": [
|
|
93115
|
-
{
|
|
93116
|
-
"fileName": "components/src/lib/types/props.ts",
|
|
93117
|
-
"name": "PropsWithTunnel"
|
|
93118
|
-
}
|
|
93119
|
-
],
|
|
93120
|
-
"required": false,
|
|
93121
|
-
"type": {
|
|
93122
|
-
"name": "string | null"
|
|
93123
|
-
}
|
|
93124
|
-
},
|
|
93125
|
-
"ref": {
|
|
93126
|
-
"defaultValue": null,
|
|
93127
|
-
"description": "Allows getting a ref to the component instance.\nOnce the component unmounts, React will set `ref.current` to `null`\n(or call the ref with `null` if you passed a callback ref).\n@see {@link https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom React Docs}",
|
|
93128
|
-
"name": "ref",
|
|
93129
|
-
"parent": {
|
|
93130
|
-
"fileName": "flow/node_modules/.pnpm/@types+react@19.1.8/node_modules/@types/react/index.d.ts",
|
|
93131
|
-
"name": "RefAttributes"
|
|
93132
|
-
},
|
|
93133
|
-
"declarations": [
|
|
93134
|
-
{
|
|
93135
|
-
"fileName": "flow/node_modules/.pnpm/@types+react@19.1.8/node_modules/@types/react/index.d.ts",
|
|
93136
|
-
"name": "RefAttributes"
|
|
93137
|
-
}
|
|
93138
|
-
],
|
|
93139
|
-
"required": false,
|
|
93140
|
-
"type": {
|
|
93141
|
-
"name": "Ref<HTMLInputElement>"
|
|
93142
|
-
}
|
|
93143
|
-
},
|
|
93144
|
-
"key": {
|
|
93145
|
-
"defaultValue": null,
|
|
93146
|
-
"description": "",
|
|
93147
|
-
"name": "key",
|
|
93148
|
-
"parent": {
|
|
93149
|
-
"fileName": "flow/node_modules/.pnpm/@types+react@19.1.8/node_modules/@types/react/index.d.ts",
|
|
93150
|
-
"name": "Attributes"
|
|
93151
|
-
},
|
|
93152
|
-
"declarations": [
|
|
93153
|
-
{
|
|
93154
|
-
"fileName": "flow/node_modules/.pnpm/@types+react@19.1.8/node_modules/@types/react/index.d.ts",
|
|
93155
|
-
"name": "Attributes"
|
|
93156
|
-
}
|
|
93157
|
-
],
|
|
93158
|
-
"required": false,
|
|
93159
|
-
"type": {
|
|
93160
|
-
"name": "Key | null"
|
|
93161
|
-
}
|
|
93162
|
-
},
|
|
93163
|
-
"className": {
|
|
93164
|
-
"defaultValue": null,
|
|
93165
|
-
"description": "The elements class name.",
|
|
93166
|
-
"name": "className",
|
|
93167
|
-
"parent": {
|
|
93168
|
-
"fileName": "components/src/lib/types/props.ts",
|
|
93169
|
-
"name": "PropsWithClassName"
|
|
93170
|
-
},
|
|
93171
|
-
"declarations": [
|
|
93172
|
-
{
|
|
93173
|
-
"fileName": "components/src/lib/types/props.ts",
|
|
93174
|
-
"name": "PropsWithClassName"
|
|
93175
|
-
}
|
|
93176
|
-
],
|
|
93177
|
-
"required": false,
|
|
93178
|
-
"type": {
|
|
93179
|
-
"name": "string"
|
|
93180
|
-
}
|
|
93181
|
-
}
|
|
93182
|
-
}
|
|
93183
|
-
},
|
|
93184
93184
|
{
|
|
93185
93185
|
"tags": {
|
|
93186
93186
|
"flr-generate": "all"
|
|
@@ -294960,131 +294960,269 @@
|
|
|
294960
294960
|
}
|
|
294961
294961
|
}
|
|
294962
294962
|
},
|
|
294963
|
-
{
|
|
294964
|
-
"tags": {},
|
|
294965
|
-
"filePath": "/home/runner/work/flow/flow/packages/components/src/components/List/components/ListItemView/ListItemView.tsx",
|
|
294966
|
-
"description": "",
|
|
294967
|
-
"displayName": "ListItemView",
|
|
294968
|
-
"methods": [],
|
|
294969
|
-
"props": {
|
|
294970
|
-
"children": {
|
|
294971
|
-
"defaultValue": null,
|
|
294972
|
-
"description": "",
|
|
294973
|
-
"name": "children",
|
|
294974
|
-
"declarations": [
|
|
294975
|
-
{
|
|
294976
|
-
"fileName": "flow/node_modules/.pnpm/@types+react@19.1.8/node_modules/@types/react/index.d.ts",
|
|
294977
|
-
"name": "TypeLiteral"
|
|
294978
|
-
}
|
|
294979
|
-
],
|
|
294980
|
-
"required": false,
|
|
294981
|
-
"type": {
|
|
294982
|
-
"name": "ReactNode"
|
|
294983
|
-
}
|
|
294984
|
-
},
|
|
294985
|
-
"s": {
|
|
294986
|
-
"defaultValue": null,
|
|
294987
|
-
"description": "Column layout for container size s.",
|
|
294988
|
-
"name": "s",
|
|
294989
|
-
"parent": {
|
|
294990
|
-
"fileName": "components/src/components/ColumnLayout/ColumnLayout.tsx",
|
|
294991
|
-
"name": "ColumnLayoutProps"
|
|
294992
|
-
},
|
|
294993
|
-
"declarations": [
|
|
294994
|
-
{
|
|
294995
|
-
"fileName": "components/src/components/ColumnLayout/ColumnLayout.tsx",
|
|
294996
|
-
"name": "ColumnLayoutProps"
|
|
294997
|
-
}
|
|
294998
|
-
],
|
|
294999
|
-
"required": false,
|
|
295000
|
-
"type": {
|
|
295001
|
-
"name": "(number | null)[]"
|
|
295002
|
-
}
|
|
295003
|
-
},
|
|
295004
|
-
"m": {
|
|
295005
|
-
"defaultValue": null,
|
|
295006
|
-
"description": "Column layout for container size m.",
|
|
295007
|
-
"name": "m",
|
|
295008
|
-
"parent": {
|
|
295009
|
-
"fileName": "components/src/components/ColumnLayout/ColumnLayout.tsx",
|
|
295010
|
-
"name": "ColumnLayoutProps"
|
|
295011
|
-
},
|
|
295012
|
-
"declarations": [
|
|
295013
|
-
{
|
|
295014
|
-
"fileName": "components/src/components/ColumnLayout/ColumnLayout.tsx",
|
|
295015
|
-
"name": "ColumnLayoutProps"
|
|
295016
|
-
}
|
|
295017
|
-
],
|
|
295018
|
-
"required": false,
|
|
295019
|
-
"type": {
|
|
295020
|
-
"name": "(number | null)[]"
|
|
295021
|
-
}
|
|
295022
|
-
},
|
|
295023
|
-
"l": {
|
|
295024
|
-
"defaultValue": null,
|
|
295025
|
-
"description": "Column layout for container size l.",
|
|
295026
|
-
"name": "l",
|
|
295027
|
-
"parent": {
|
|
295028
|
-
"fileName": "components/src/components/ColumnLayout/ColumnLayout.tsx",
|
|
295029
|
-
"name": "ColumnLayoutProps"
|
|
295030
|
-
},
|
|
295031
|
-
"declarations": [
|
|
295032
|
-
{
|
|
295033
|
-
"fileName": "components/src/components/ColumnLayout/ColumnLayout.tsx",
|
|
295034
|
-
"name": "ColumnLayoutProps"
|
|
295035
|
-
}
|
|
295036
|
-
],
|
|
295037
|
-
"required": false,
|
|
295038
|
-
"type": {
|
|
295039
|
-
"name": "(number | null)[]"
|
|
295040
|
-
}
|
|
295041
|
-
}
|
|
295042
|
-
}
|
|
295043
|
-
},
|
|
295044
|
-
{
|
|
295045
|
-
"tags": {},
|
|
295046
|
-
"filePath": "/home/runner/work/flow/flow/packages/components/src/components/List/components/Items/Items.tsx",
|
|
295047
|
-
"description": "",
|
|
295048
|
-
"displayName": "Items",
|
|
295049
|
-
"methods": [],
|
|
295050
|
-
"props": {}
|
|
295051
|
-
},
|
|
295052
|
-
{
|
|
295053
|
-
"tags": {},
|
|
295054
|
-
"filePath": "/home/runner/work/flow/flow/packages/components/src/components/List/components/Header/Header.tsx",
|
|
295055
|
-
"description": "",
|
|
295056
|
-
"displayName": "Header",
|
|
295057
|
-
"methods": [],
|
|
295058
|
-
"props": {
|
|
295059
|
-
"className": {
|
|
295060
|
-
"defaultValue": null,
|
|
295061
|
-
"description": "The elements class name.",
|
|
295062
|
-
"name": "className",
|
|
295063
|
-
"parent": {
|
|
295064
|
-
"fileName": "components/src/lib/types/props.ts",
|
|
295065
|
-
"name": "PropsWithClassName"
|
|
295066
|
-
},
|
|
295067
|
-
"declarations": [
|
|
295068
|
-
{
|
|
295069
|
-
"fileName": "components/src/lib/types/props.ts",
|
|
295070
|
-
"name": "PropsWithClassName"
|
|
295071
|
-
}
|
|
295072
|
-
],
|
|
295073
|
-
"required": false,
|
|
295074
|
-
"type": {
|
|
295075
|
-
"name": "string"
|
|
295076
|
-
}
|
|
295077
|
-
}
|
|
295078
|
-
}
|
|
295079
|
-
},
|
|
295080
|
-
{
|
|
295081
|
-
"tags": {},
|
|
295082
|
-
"filePath": "/home/runner/work/flow/flow/packages/components/src/components/List/components/Footer/Footer.tsx",
|
|
295083
|
-
"description": "",
|
|
295084
|
-
"displayName": "Footer",
|
|
295085
|
-
"methods": [],
|
|
295086
|
-
"props": {}
|
|
295087
|
-
},
|
|
294963
|
+
{
|
|
294964
|
+
"tags": {},
|
|
294965
|
+
"filePath": "/home/runner/work/flow/flow/packages/components/src/components/List/components/ListItemView/ListItemView.tsx",
|
|
294966
|
+
"description": "",
|
|
294967
|
+
"displayName": "ListItemView",
|
|
294968
|
+
"methods": [],
|
|
294969
|
+
"props": {
|
|
294970
|
+
"children": {
|
|
294971
|
+
"defaultValue": null,
|
|
294972
|
+
"description": "",
|
|
294973
|
+
"name": "children",
|
|
294974
|
+
"declarations": [
|
|
294975
|
+
{
|
|
294976
|
+
"fileName": "flow/node_modules/.pnpm/@types+react@19.1.8/node_modules/@types/react/index.d.ts",
|
|
294977
|
+
"name": "TypeLiteral"
|
|
294978
|
+
}
|
|
294979
|
+
],
|
|
294980
|
+
"required": false,
|
|
294981
|
+
"type": {
|
|
294982
|
+
"name": "ReactNode"
|
|
294983
|
+
}
|
|
294984
|
+
},
|
|
294985
|
+
"s": {
|
|
294986
|
+
"defaultValue": null,
|
|
294987
|
+
"description": "Column layout for container size s.",
|
|
294988
|
+
"name": "s",
|
|
294989
|
+
"parent": {
|
|
294990
|
+
"fileName": "components/src/components/ColumnLayout/ColumnLayout.tsx",
|
|
294991
|
+
"name": "ColumnLayoutProps"
|
|
294992
|
+
},
|
|
294993
|
+
"declarations": [
|
|
294994
|
+
{
|
|
294995
|
+
"fileName": "components/src/components/ColumnLayout/ColumnLayout.tsx",
|
|
294996
|
+
"name": "ColumnLayoutProps"
|
|
294997
|
+
}
|
|
294998
|
+
],
|
|
294999
|
+
"required": false,
|
|
295000
|
+
"type": {
|
|
295001
|
+
"name": "(number | null)[]"
|
|
295002
|
+
}
|
|
295003
|
+
},
|
|
295004
|
+
"m": {
|
|
295005
|
+
"defaultValue": null,
|
|
295006
|
+
"description": "Column layout for container size m.",
|
|
295007
|
+
"name": "m",
|
|
295008
|
+
"parent": {
|
|
295009
|
+
"fileName": "components/src/components/ColumnLayout/ColumnLayout.tsx",
|
|
295010
|
+
"name": "ColumnLayoutProps"
|
|
295011
|
+
},
|
|
295012
|
+
"declarations": [
|
|
295013
|
+
{
|
|
295014
|
+
"fileName": "components/src/components/ColumnLayout/ColumnLayout.tsx",
|
|
295015
|
+
"name": "ColumnLayoutProps"
|
|
295016
|
+
}
|
|
295017
|
+
],
|
|
295018
|
+
"required": false,
|
|
295019
|
+
"type": {
|
|
295020
|
+
"name": "(number | null)[]"
|
|
295021
|
+
}
|
|
295022
|
+
},
|
|
295023
|
+
"l": {
|
|
295024
|
+
"defaultValue": null,
|
|
295025
|
+
"description": "Column layout for container size l.",
|
|
295026
|
+
"name": "l",
|
|
295027
|
+
"parent": {
|
|
295028
|
+
"fileName": "components/src/components/ColumnLayout/ColumnLayout.tsx",
|
|
295029
|
+
"name": "ColumnLayoutProps"
|
|
295030
|
+
},
|
|
295031
|
+
"declarations": [
|
|
295032
|
+
{
|
|
295033
|
+
"fileName": "components/src/components/ColumnLayout/ColumnLayout.tsx",
|
|
295034
|
+
"name": "ColumnLayoutProps"
|
|
295035
|
+
}
|
|
295036
|
+
],
|
|
295037
|
+
"required": false,
|
|
295038
|
+
"type": {
|
|
295039
|
+
"name": "(number | null)[]"
|
|
295040
|
+
}
|
|
295041
|
+
}
|
|
295042
|
+
}
|
|
295043
|
+
},
|
|
295044
|
+
{
|
|
295045
|
+
"tags": {},
|
|
295046
|
+
"filePath": "/home/runner/work/flow/flow/packages/components/src/components/List/components/Items/Items.tsx",
|
|
295047
|
+
"description": "",
|
|
295048
|
+
"displayName": "Items",
|
|
295049
|
+
"methods": [],
|
|
295050
|
+
"props": {}
|
|
295051
|
+
},
|
|
295052
|
+
{
|
|
295053
|
+
"tags": {},
|
|
295054
|
+
"filePath": "/home/runner/work/flow/flow/packages/components/src/components/List/components/Header/Header.tsx",
|
|
295055
|
+
"description": "",
|
|
295056
|
+
"displayName": "Header",
|
|
295057
|
+
"methods": [],
|
|
295058
|
+
"props": {
|
|
295059
|
+
"className": {
|
|
295060
|
+
"defaultValue": null,
|
|
295061
|
+
"description": "The elements class name.",
|
|
295062
|
+
"name": "className",
|
|
295063
|
+
"parent": {
|
|
295064
|
+
"fileName": "components/src/lib/types/props.ts",
|
|
295065
|
+
"name": "PropsWithClassName"
|
|
295066
|
+
},
|
|
295067
|
+
"declarations": [
|
|
295068
|
+
{
|
|
295069
|
+
"fileName": "components/src/lib/types/props.ts",
|
|
295070
|
+
"name": "PropsWithClassName"
|
|
295071
|
+
}
|
|
295072
|
+
],
|
|
295073
|
+
"required": false,
|
|
295074
|
+
"type": {
|
|
295075
|
+
"name": "string"
|
|
295076
|
+
}
|
|
295077
|
+
}
|
|
295078
|
+
}
|
|
295079
|
+
},
|
|
295080
|
+
{
|
|
295081
|
+
"tags": {},
|
|
295082
|
+
"filePath": "/home/runner/work/flow/flow/packages/components/src/components/List/components/Footer/Footer.tsx",
|
|
295083
|
+
"description": "",
|
|
295084
|
+
"displayName": "Footer",
|
|
295085
|
+
"methods": [],
|
|
295086
|
+
"props": {}
|
|
295087
|
+
},
|
|
295088
|
+
{
|
|
295089
|
+
"tags": {},
|
|
295090
|
+
"filePath": "/home/runner/work/flow/flow/packages/components/src/components/LightBox/components/LightBoxTrigger/LightBoxTrigger.tsx",
|
|
295091
|
+
"description": "",
|
|
295092
|
+
"displayName": "LightBoxTrigger",
|
|
295093
|
+
"methods": [],
|
|
295094
|
+
"props": {
|
|
295095
|
+
"isDefaultOpen": {
|
|
295096
|
+
"defaultValue": null,
|
|
295097
|
+
"description": "Whether the overlay should be open initially.",
|
|
295098
|
+
"name": "isDefaultOpen",
|
|
295099
|
+
"parent": {
|
|
295100
|
+
"fileName": "components/src/components/OverlayTrigger/OverlayTrigger.tsx",
|
|
295101
|
+
"name": "OverlayTriggerProps"
|
|
295102
|
+
},
|
|
295103
|
+
"declarations": [
|
|
295104
|
+
{
|
|
295105
|
+
"fileName": "components/src/components/OverlayTrigger/OverlayTrigger.tsx",
|
|
295106
|
+
"name": "OverlayTriggerProps"
|
|
295107
|
+
}
|
|
295108
|
+
],
|
|
295109
|
+
"required": false,
|
|
295110
|
+
"type": {
|
|
295111
|
+
"name": "boolean"
|
|
295112
|
+
}
|
|
295113
|
+
},
|
|
295114
|
+
"controller": {
|
|
295115
|
+
"defaultValue": null,
|
|
295116
|
+
"description": "A controller to control the state of the overlay.",
|
|
295117
|
+
"name": "controller",
|
|
295118
|
+
"parent": {
|
|
295119
|
+
"fileName": "components/src/components/OverlayTrigger/OverlayTrigger.tsx",
|
|
295120
|
+
"name": "OverlayTriggerProps"
|
|
295121
|
+
},
|
|
295122
|
+
"declarations": [
|
|
295123
|
+
{
|
|
295124
|
+
"fileName": "components/src/components/OverlayTrigger/OverlayTrigger.tsx",
|
|
295125
|
+
"name": "OverlayTriggerProps"
|
|
295126
|
+
}
|
|
295127
|
+
],
|
|
295128
|
+
"required": false,
|
|
295129
|
+
"type": {
|
|
295130
|
+
"name": "OverlayController"
|
|
295131
|
+
}
|
|
295132
|
+
},
|
|
295133
|
+
"wrapWith": {
|
|
295134
|
+
"defaultValue": null,
|
|
295135
|
+
"description": "",
|
|
295136
|
+
"name": "wrapWith",
|
|
295137
|
+
"parent": {
|
|
295138
|
+
"fileName": "components/src/lib/componentFactory/flowComponent.tsx",
|
|
295139
|
+
"name": "FlowComponentProps"
|
|
295140
|
+
},
|
|
295141
|
+
"declarations": [
|
|
295142
|
+
{
|
|
295143
|
+
"fileName": "components/src/lib/componentFactory/flowComponent.tsx",
|
|
295144
|
+
"name": "FlowComponentProps"
|
|
295145
|
+
}
|
|
295146
|
+
],
|
|
295147
|
+
"required": false,
|
|
295148
|
+
"type": {
|
|
295149
|
+
"name": "ReactElement<unknown, string | JSXElementConstructor<any>>"
|
|
295150
|
+
}
|
|
295151
|
+
},
|
|
295152
|
+
"tunnelId": {
|
|
295153
|
+
"defaultValue": null,
|
|
295154
|
+
"description": "@internal",
|
|
295155
|
+
"name": "tunnelId",
|
|
295156
|
+
"parent": {
|
|
295157
|
+
"fileName": "components/src/lib/types/props.ts",
|
|
295158
|
+
"name": "PropsWithTunnel"
|
|
295159
|
+
},
|
|
295160
|
+
"declarations": [
|
|
295161
|
+
{
|
|
295162
|
+
"fileName": "components/src/lib/types/props.ts",
|
|
295163
|
+
"name": "PropsWithTunnel"
|
|
295164
|
+
}
|
|
295165
|
+
],
|
|
295166
|
+
"required": false,
|
|
295167
|
+
"type": {
|
|
295168
|
+
"name": "string | null"
|
|
295169
|
+
}
|
|
295170
|
+
},
|
|
295171
|
+
"ref": {
|
|
295172
|
+
"defaultValue": null,
|
|
295173
|
+
"description": "Allows getting a ref to the component instance.\nOnce the component unmounts, React will set `ref.current` to `null`\n(or call the ref with `null` if you passed a callback ref).\n@see {@link https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom React Docs}",
|
|
295174
|
+
"name": "ref",
|
|
295175
|
+
"parent": {
|
|
295176
|
+
"fileName": "flow/node_modules/.pnpm/@types+react@19.1.8/node_modules/@types/react/index.d.ts",
|
|
295177
|
+
"name": "RefAttributes"
|
|
295178
|
+
},
|
|
295179
|
+
"declarations": [
|
|
295180
|
+
{
|
|
295181
|
+
"fileName": "flow/node_modules/.pnpm/@types+react@19.1.8/node_modules/@types/react/index.d.ts",
|
|
295182
|
+
"name": "RefAttributes"
|
|
295183
|
+
}
|
|
295184
|
+
],
|
|
295185
|
+
"required": false,
|
|
295186
|
+
"type": {
|
|
295187
|
+
"name": "Ref<HTMLInputElement>"
|
|
295188
|
+
}
|
|
295189
|
+
},
|
|
295190
|
+
"key": {
|
|
295191
|
+
"defaultValue": null,
|
|
295192
|
+
"description": "",
|
|
295193
|
+
"name": "key",
|
|
295194
|
+
"parent": {
|
|
295195
|
+
"fileName": "flow/node_modules/.pnpm/@types+react@19.1.8/node_modules/@types/react/index.d.ts",
|
|
295196
|
+
"name": "Attributes"
|
|
295197
|
+
},
|
|
295198
|
+
"declarations": [
|
|
295199
|
+
{
|
|
295200
|
+
"fileName": "flow/node_modules/.pnpm/@types+react@19.1.8/node_modules/@types/react/index.d.ts",
|
|
295201
|
+
"name": "Attributes"
|
|
295202
|
+
}
|
|
295203
|
+
],
|
|
295204
|
+
"required": false,
|
|
295205
|
+
"type": {
|
|
295206
|
+
"name": "Key | null"
|
|
295207
|
+
}
|
|
295208
|
+
},
|
|
295209
|
+
"children": {
|
|
295210
|
+
"defaultValue": null,
|
|
295211
|
+
"description": "",
|
|
295212
|
+
"name": "children",
|
|
295213
|
+
"declarations": [
|
|
295214
|
+
{
|
|
295215
|
+
"fileName": "flow/node_modules/.pnpm/@types+react@19.1.8/node_modules/@types/react/index.d.ts",
|
|
295216
|
+
"name": "TypeLiteral"
|
|
295217
|
+
}
|
|
295218
|
+
],
|
|
295219
|
+
"required": false,
|
|
295220
|
+
"type": {
|
|
295221
|
+
"name": "ReactNode"
|
|
295222
|
+
}
|
|
295223
|
+
}
|
|
295224
|
+
}
|
|
295225
|
+
},
|
|
295088
295226
|
{
|
|
295089
295227
|
"tags": {},
|
|
295090
295228
|
"filePath": "/home/runner/work/flow/flow/packages/components/src/components/Link/components/LinkIcon/LinkIcon.tsx",
|
|
@@ -297163,144 +297301,6 @@
|
|
|
297163
297301
|
}
|
|
297164
297302
|
}
|
|
297165
297303
|
},
|
|
297166
|
-
{
|
|
297167
|
-
"tags": {},
|
|
297168
|
-
"filePath": "/home/runner/work/flow/flow/packages/components/src/components/LightBox/components/LightBoxTrigger/LightBoxTrigger.tsx",
|
|
297169
|
-
"description": "",
|
|
297170
|
-
"displayName": "LightBoxTrigger",
|
|
297171
|
-
"methods": [],
|
|
297172
|
-
"props": {
|
|
297173
|
-
"isDefaultOpen": {
|
|
297174
|
-
"defaultValue": null,
|
|
297175
|
-
"description": "Whether the overlay should be open initially.",
|
|
297176
|
-
"name": "isDefaultOpen",
|
|
297177
|
-
"parent": {
|
|
297178
|
-
"fileName": "components/src/components/OverlayTrigger/OverlayTrigger.tsx",
|
|
297179
|
-
"name": "OverlayTriggerProps"
|
|
297180
|
-
},
|
|
297181
|
-
"declarations": [
|
|
297182
|
-
{
|
|
297183
|
-
"fileName": "components/src/components/OverlayTrigger/OverlayTrigger.tsx",
|
|
297184
|
-
"name": "OverlayTriggerProps"
|
|
297185
|
-
}
|
|
297186
|
-
],
|
|
297187
|
-
"required": false,
|
|
297188
|
-
"type": {
|
|
297189
|
-
"name": "boolean"
|
|
297190
|
-
}
|
|
297191
|
-
},
|
|
297192
|
-
"controller": {
|
|
297193
|
-
"defaultValue": null,
|
|
297194
|
-
"description": "A controller to control the state of the overlay.",
|
|
297195
|
-
"name": "controller",
|
|
297196
|
-
"parent": {
|
|
297197
|
-
"fileName": "components/src/components/OverlayTrigger/OverlayTrigger.tsx",
|
|
297198
|
-
"name": "OverlayTriggerProps"
|
|
297199
|
-
},
|
|
297200
|
-
"declarations": [
|
|
297201
|
-
{
|
|
297202
|
-
"fileName": "components/src/components/OverlayTrigger/OverlayTrigger.tsx",
|
|
297203
|
-
"name": "OverlayTriggerProps"
|
|
297204
|
-
}
|
|
297205
|
-
],
|
|
297206
|
-
"required": false,
|
|
297207
|
-
"type": {
|
|
297208
|
-
"name": "OverlayController"
|
|
297209
|
-
}
|
|
297210
|
-
},
|
|
297211
|
-
"wrapWith": {
|
|
297212
|
-
"defaultValue": null,
|
|
297213
|
-
"description": "",
|
|
297214
|
-
"name": "wrapWith",
|
|
297215
|
-
"parent": {
|
|
297216
|
-
"fileName": "components/src/lib/componentFactory/flowComponent.tsx",
|
|
297217
|
-
"name": "FlowComponentProps"
|
|
297218
|
-
},
|
|
297219
|
-
"declarations": [
|
|
297220
|
-
{
|
|
297221
|
-
"fileName": "components/src/lib/componentFactory/flowComponent.tsx",
|
|
297222
|
-
"name": "FlowComponentProps"
|
|
297223
|
-
}
|
|
297224
|
-
],
|
|
297225
|
-
"required": false,
|
|
297226
|
-
"type": {
|
|
297227
|
-
"name": "ReactElement<unknown, string | JSXElementConstructor<any>>"
|
|
297228
|
-
}
|
|
297229
|
-
},
|
|
297230
|
-
"tunnelId": {
|
|
297231
|
-
"defaultValue": null,
|
|
297232
|
-
"description": "@internal",
|
|
297233
|
-
"name": "tunnelId",
|
|
297234
|
-
"parent": {
|
|
297235
|
-
"fileName": "components/src/lib/types/props.ts",
|
|
297236
|
-
"name": "PropsWithTunnel"
|
|
297237
|
-
},
|
|
297238
|
-
"declarations": [
|
|
297239
|
-
{
|
|
297240
|
-
"fileName": "components/src/lib/types/props.ts",
|
|
297241
|
-
"name": "PropsWithTunnel"
|
|
297242
|
-
}
|
|
297243
|
-
],
|
|
297244
|
-
"required": false,
|
|
297245
|
-
"type": {
|
|
297246
|
-
"name": "string | null"
|
|
297247
|
-
}
|
|
297248
|
-
},
|
|
297249
|
-
"ref": {
|
|
297250
|
-
"defaultValue": null,
|
|
297251
|
-
"description": "Allows getting a ref to the component instance.\nOnce the component unmounts, React will set `ref.current` to `null`\n(or call the ref with `null` if you passed a callback ref).\n@see {@link https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom React Docs}",
|
|
297252
|
-
"name": "ref",
|
|
297253
|
-
"parent": {
|
|
297254
|
-
"fileName": "flow/node_modules/.pnpm/@types+react@19.1.8/node_modules/@types/react/index.d.ts",
|
|
297255
|
-
"name": "RefAttributes"
|
|
297256
|
-
},
|
|
297257
|
-
"declarations": [
|
|
297258
|
-
{
|
|
297259
|
-
"fileName": "flow/node_modules/.pnpm/@types+react@19.1.8/node_modules/@types/react/index.d.ts",
|
|
297260
|
-
"name": "RefAttributes"
|
|
297261
|
-
}
|
|
297262
|
-
],
|
|
297263
|
-
"required": false,
|
|
297264
|
-
"type": {
|
|
297265
|
-
"name": "Ref<HTMLInputElement>"
|
|
297266
|
-
}
|
|
297267
|
-
},
|
|
297268
|
-
"key": {
|
|
297269
|
-
"defaultValue": null,
|
|
297270
|
-
"description": "",
|
|
297271
|
-
"name": "key",
|
|
297272
|
-
"parent": {
|
|
297273
|
-
"fileName": "flow/node_modules/.pnpm/@types+react@19.1.8/node_modules/@types/react/index.d.ts",
|
|
297274
|
-
"name": "Attributes"
|
|
297275
|
-
},
|
|
297276
|
-
"declarations": [
|
|
297277
|
-
{
|
|
297278
|
-
"fileName": "flow/node_modules/.pnpm/@types+react@19.1.8/node_modules/@types/react/index.d.ts",
|
|
297279
|
-
"name": "Attributes"
|
|
297280
|
-
}
|
|
297281
|
-
],
|
|
297282
|
-
"required": false,
|
|
297283
|
-
"type": {
|
|
297284
|
-
"name": "Key | null"
|
|
297285
|
-
}
|
|
297286
|
-
},
|
|
297287
|
-
"children": {
|
|
297288
|
-
"defaultValue": null,
|
|
297289
|
-
"description": "",
|
|
297290
|
-
"name": "children",
|
|
297291
|
-
"declarations": [
|
|
297292
|
-
{
|
|
297293
|
-
"fileName": "flow/node_modules/.pnpm/@types+react@19.1.8/node_modules/@types/react/index.d.ts",
|
|
297294
|
-
"name": "TypeLiteral"
|
|
297295
|
-
}
|
|
297296
|
-
],
|
|
297297
|
-
"required": false,
|
|
297298
|
-
"type": {
|
|
297299
|
-
"name": "ReactNode"
|
|
297300
|
-
}
|
|
297301
|
-
}
|
|
297302
|
-
}
|
|
297303
|
-
},
|
|
297304
297304
|
{
|
|
297305
297305
|
"tags": {},
|
|
297306
297306
|
"filePath": "/home/runner/work/flow/flow/packages/components/src/components/Legend/components/LegendItem/LegendItem.tsx",
|
|
@@ -46,8 +46,9 @@ const NumberField = flowComponent("NumberField", (props) => {
|
|
|
46
46
|
return /* @__PURE__ */ jsx(ClearPropsContext, { children: /* @__PURE__ */ jsxs(
|
|
47
47
|
Aria.NumberField,
|
|
48
48
|
{
|
|
49
|
-
isWheelDisabled,
|
|
50
49
|
...rest,
|
|
50
|
+
isWheelDisabled,
|
|
51
|
+
defaultValue,
|
|
51
52
|
className: rootClassName,
|
|
52
53
|
children: [
|
|
53
54
|
/* @__PURE__ */ jsxs(Aria.Group, { className: styles.group, children: [
|
|
@@ -70,14 +71,7 @@ const NumberField = flowComponent("NumberField", (props) => {
|
|
|
70
71
|
{
|
|
71
72
|
inputContext: Aria.InputContext,
|
|
72
73
|
props,
|
|
73
|
-
children: /* @__PURE__ */ jsx(
|
|
74
|
-
Aria.Input,
|
|
75
|
-
{
|
|
76
|
-
className: styles.input,
|
|
77
|
-
ref,
|
|
78
|
-
defaultValue
|
|
79
|
-
}
|
|
80
|
-
)
|
|
74
|
+
children: /* @__PURE__ */ jsx(Aria.Input, { className: styles.input, ref })
|
|
81
75
|
}
|
|
82
76
|
),
|
|
83
77
|
/* @__PURE__ */ jsxs(
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NumberField.mjs","sources":["../../../../../../src/components/NumberField/NumberField.tsx"],"sourcesContent":["import type { PropsWithChildren } from \"react\";\nimport * as Aria from \"react-aria-components\";\nimport formFieldStyles from \"../FormField/FormField.module.scss\";\nimport styles from \"./NumberField.module.scss\";\nimport clsx from \"clsx\";\nimport type { PropsContext } from \"@/lib/propsContext\";\nimport ClearPropsContext from \"@/components/ClearPropsContext/ClearPropsContext\";\nimport { PropsContextProvider } from \"@/lib/propsContext\";\nimport { FieldError } from \"@/components/FieldError\";\nimport { Button } from \"@/components/Button\";\nimport {\n IconChevronDown,\n IconChevronUp,\n IconMinus,\n IconPlus,\n} from \"@/components/Icon/components/icons\";\nimport type { FlowComponentProps } from \"@/lib/componentFactory/flowComponent\";\nimport { flowComponent } from \"@/lib/componentFactory/flowComponent\";\nimport { ReactAriaControlledValueFix } from \"@/lib/react/ReactAriaControlledValueFix\";\n\nexport interface NumberFieldProps\n extends PropsWithChildren<Omit<Aria.NumberFieldProps, \"children\">>,\n FlowComponentProps<HTMLInputElement> {}\n\n/**\n * @flr-generate all\n * @flr-clear-props-context\n */\nexport const NumberField = flowComponent(\"NumberField\", (props) => {\n const {\n children,\n className,\n ref,\n defaultValue,\n isWheelDisabled = true,\n ...rest\n } = props;\n\n const rootClassName = clsx(formFieldStyles.formField, className);\n\n const propsContext: PropsContext = {\n Label: {\n className: formFieldStyles.label,\n optional: !props.isRequired,\n },\n FieldDescription: {\n className: formFieldStyles.fieldDescription,\n },\n FieldError: {\n className: formFieldStyles.customFieldError,\n },\n };\n\n return (\n <ClearPropsContext>\n <Aria.NumberField\n isWheelDisabled={isWheelDisabled}\n {
|
|
1
|
+
{"version":3,"file":"NumberField.mjs","sources":["../../../../../../src/components/NumberField/NumberField.tsx"],"sourcesContent":["import type { PropsWithChildren } from \"react\";\nimport * as Aria from \"react-aria-components\";\nimport formFieldStyles from \"../FormField/FormField.module.scss\";\nimport styles from \"./NumberField.module.scss\";\nimport clsx from \"clsx\";\nimport type { PropsContext } from \"@/lib/propsContext\";\nimport ClearPropsContext from \"@/components/ClearPropsContext/ClearPropsContext\";\nimport { PropsContextProvider } from \"@/lib/propsContext\";\nimport { FieldError } from \"@/components/FieldError\";\nimport { Button } from \"@/components/Button\";\nimport {\n IconChevronDown,\n IconChevronUp,\n IconMinus,\n IconPlus,\n} from \"@/components/Icon/components/icons\";\nimport type { FlowComponentProps } from \"@/lib/componentFactory/flowComponent\";\nimport { flowComponent } from \"@/lib/componentFactory/flowComponent\";\nimport { ReactAriaControlledValueFix } from \"@/lib/react/ReactAriaControlledValueFix\";\n\nexport interface NumberFieldProps\n extends PropsWithChildren<Omit<Aria.NumberFieldProps, \"children\">>,\n FlowComponentProps<HTMLInputElement> {}\n\n/**\n * @flr-generate all\n * @flr-clear-props-context\n */\nexport const NumberField = flowComponent(\"NumberField\", (props) => {\n const {\n children,\n className,\n ref,\n defaultValue,\n isWheelDisabled = true,\n ...rest\n } = props;\n\n const rootClassName = clsx(formFieldStyles.formField, className);\n\n const propsContext: PropsContext = {\n Label: {\n className: formFieldStyles.label,\n optional: !props.isRequired,\n },\n FieldDescription: {\n className: formFieldStyles.fieldDescription,\n },\n FieldError: {\n className: formFieldStyles.customFieldError,\n },\n };\n\n return (\n <ClearPropsContext>\n <Aria.NumberField\n {...rest}\n isWheelDisabled={isWheelDisabled}\n defaultValue={defaultValue}\n className={rootClassName}\n >\n <Aria.Group className={styles.group}>\n <Button\n ariaSlot=\"decrement\"\n className={styles.decrementButton}\n size=\"s\"\n variant=\"plain\"\n color=\"secondary\"\n >\n <IconChevronDown />\n <IconMinus className={styles.coarsePointerIcon} />\n </Button>\n <ReactAriaControlledValueFix\n inputContext={Aria.InputContext}\n props={props}\n >\n <Aria.Input className={styles.input} ref={ref} />\n </ReactAriaControlledValueFix>\n <Button\n ariaSlot=\"increment\"\n className={styles.incrementButton}\n size=\"s\"\n variant=\"plain\"\n color=\"secondary\"\n >\n <IconChevronUp />\n <IconPlus className={styles.coarsePointerIcon} />\n </Button>\n </Aria.Group>\n <PropsContextProvider props={propsContext}>\n {children}\n </PropsContextProvider>\n <FieldError className={formFieldStyles.fieldError} />\n </Aria.NumberField>\n </ClearPropsContext>\n );\n});\n\nexport default NumberField;\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AA4BO,MAAM,WAAc,GAAA,aAAA,CAAc,aAAe,EAAA,CAAC,KAAU,KAAA;AACjE,EAAM,MAAA;AAAA,IACJ,QAAA;AAAA,IACA,SAAA;AAAA,IACA,GAAA;AAAA,IACA,YAAA;AAAA,IACA,eAAkB,GAAA,IAAA;AAAA,IAClB,GAAG;AAAA,GACD,GAAA,KAAA;AAEJ,EAAA,MAAM,aAAgB,GAAA,IAAA,CAAK,eAAgB,CAAA,SAAA,EAAW,SAAS,CAAA;AAE/D,EAAA,MAAM,YAA6B,GAAA;AAAA,IACjC,KAAO,EAAA;AAAA,MACL,WAAW,eAAgB,CAAA,KAAA;AAAA,MAC3B,QAAA,EAAU,CAAC,KAAM,CAAA;AAAA,KACnB;AAAA,IACA,gBAAkB,EAAA;AAAA,MAChB,WAAW,eAAgB,CAAA;AAAA,KAC7B;AAAA,IACA,UAAY,EAAA;AAAA,MACV,WAAW,eAAgB,CAAA;AAAA;AAC7B,GACF;AAEA,EAAA,2BACG,iBACC,EAAA,EAAA,QAAA,kBAAA,IAAA;AAAA,IAAC,IAAK,CAAA,WAAA;AAAA,IAAL;AAAA,MACE,GAAG,IAAA;AAAA,MACJ,eAAA;AAAA,MACA,YAAA;AAAA,MACA,SAAW,EAAA,aAAA;AAAA,MAEX,QAAA,EAAA;AAAA,wBAAA,IAAA,CAAC,IAAK,CAAA,KAAA,EAAL,EAAW,SAAA,EAAW,OAAO,KAC5B,EAAA,QAAA,EAAA;AAAA,0BAAA,IAAA;AAAA,YAAC,MAAA;AAAA,YAAA;AAAA,cACC,QAAS,EAAA,WAAA;AAAA,cACT,WAAW,MAAO,CAAA,eAAA;AAAA,cAClB,IAAK,EAAA,GAAA;AAAA,cACL,OAAQ,EAAA,OAAA;AAAA,cACR,KAAM,EAAA,WAAA;AAAA,cAEN,QAAA,EAAA;AAAA,gCAAA,GAAA,CAAC,eAAgB,EAAA,EAAA,CAAA;AAAA,gCAChB,GAAA,CAAA,SAAA,EAAA,EAAU,SAAW,EAAA,MAAA,CAAO,iBAAmB,EAAA;AAAA;AAAA;AAAA,WAClD;AAAA,0BACA,GAAA;AAAA,YAAC,2BAAA;AAAA,YAAA;AAAA,cACC,cAAc,IAAK,CAAA,YAAA;AAAA,cACnB,KAAA;AAAA,cAEA,8BAAC,IAAK,CAAA,KAAA,EAAL,EAAW,SAAW,EAAA,MAAA,CAAO,OAAO,GAAU,EAAA;AAAA;AAAA,WACjD;AAAA,0BACA,IAAA;AAAA,YAAC,MAAA;AAAA,YAAA;AAAA,cACC,QAAS,EAAA,WAAA;AAAA,cACT,WAAW,MAAO,CAAA,eAAA;AAAA,cAClB,IAAK,EAAA,GAAA;AAAA,cACL,OAAQ,EAAA,OAAA;AAAA,cACR,KAAM,EAAA,WAAA;AAAA,cAEN,QAAA,EAAA;AAAA,gCAAA,GAAA,CAAC,aAAc,EAAA,EAAA,CAAA;AAAA,gCACd,GAAA,CAAA,QAAA,EAAA,EAAS,SAAW,EAAA,MAAA,CAAO,iBAAmB,EAAA;AAAA;AAAA;AAAA;AACjD,SACF,EAAA,CAAA;AAAA,wBACC,GAAA,CAAA,oBAAA,EAAA,EAAqB,KAAO,EAAA,YAAA,EAC1B,QACH,EAAA,CAAA;AAAA,wBACC,GAAA,CAAA,UAAA,EAAA,EAAW,SAAW,EAAA,eAAA,CAAgB,UAAY,EAAA;AAAA;AAAA;AAAA,GAEvD,EAAA,CAAA;AAEJ,CAAC;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NumberField.d.ts","sourceRoot":"","sources":["../../../../src/components/NumberField/NumberField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,KAAK,IAAI,MAAM,uBAAuB,CAAC;AAe9C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAI/E,MAAM,WAAW,gBACf,SAAQ,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,EAAE,UAAU,CAAC,CAAC,EAChE,kBAAkB,CAAC,gBAAgB,CAAC;CAAG;AAE3C;;;GAGG;AACH,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"NumberField.d.ts","sourceRoot":"","sources":["../../../../src/components/NumberField/NumberField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,KAAK,IAAI,MAAM,uBAAuB,CAAC;AAe9C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAI/E,MAAM,WAAW,gBACf,SAAQ,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,EAAE,UAAU,CAAC,CAAC,EAChE,kBAAkB,CAAC,gBAAgB,CAAC;CAAG;AAE3C;;;GAGG;AACH,eAAO,MAAM,WAAW,uGAoEtB,CAAC;AAEH,eAAe,WAAW,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NumberField.stories.d.ts","sourceRoot":"","sources":["../../../../../../../src/integrations/react-hook-form/components/Field/stories/NumberField.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAKvD,OAAO,EAAE,KAAK,EAAoB,MAAM,gCAAgC,CAAC;AAUzE,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"NumberField.stories.d.ts","sourceRoot":"","sources":["../../../../../../../src/integrations/react-hook-form/components/Field/stories/NumberField.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAKvD,OAAO,EAAE,KAAK,EAAoB,MAAM,gCAAgC,CAAC;AAUzE,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,KAAK,CAoE5B,CAAC;AACF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,KAAK,CAAC,CAAC;AAEpC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mittwald/flow-react-components",
|
|
3
|
-
"version": "0.2.0-alpha.
|
|
3
|
+
"version": "0.2.0-alpha.382",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A React implementation of Flow, mittwald’s design system",
|
|
6
6
|
"homepage": "https://mittwald.github.io/flow",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"@chakra-ui/live-region": "^2.1.0",
|
|
59
59
|
"@internationalized/string-compiler": "^3.2.6",
|
|
60
60
|
"@mittwald/password-tools-js": "3.0.0-alpha.12",
|
|
61
|
-
"@mittwald/react-tunnel": "0.2.0-alpha.
|
|
61
|
+
"@mittwald/react-tunnel": "0.2.0-alpha.382",
|
|
62
62
|
"@mittwald/react-use-promise": "^3.0.4",
|
|
63
63
|
"@react-aria/form": "^3.1.0",
|
|
64
64
|
"@react-aria/utils": "^3.30.0",
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"@faker-js/faker": "^9.9.0",
|
|
100
100
|
"@internationalized/date": "^3.8.2",
|
|
101
101
|
"@mittwald/flow-core": "",
|
|
102
|
-
"@mittwald/flow-design-tokens": "0.2.0-alpha.
|
|
102
|
+
"@mittwald/flow-design-tokens": "0.2.0-alpha.382",
|
|
103
103
|
"@mittwald/react-use-promise": "^3.0.4",
|
|
104
104
|
"@mittwald/remote-dom-react": "1.2.2-mittwald.3",
|
|
105
105
|
"@mittwald/typescript-config": "",
|
|
@@ -172,5 +172,5 @@
|
|
|
172
172
|
"optional": true
|
|
173
173
|
}
|
|
174
174
|
},
|
|
175
|
-
"gitHead": "
|
|
175
|
+
"gitHead": "e2fdd6ff3e8b3746419823ef0dc7d97789a24fd1"
|
|
176
176
|
}
|