@mittwald/flow-react-components 0.2.0-alpha.694 → 0.2.0-alpha.696

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 CHANGED
@@ -3,6 +3,16 @@
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.696](https://github.com/mittwald/flow/compare/0.2.0-alpha.695...0.2.0-alpha.696) (2026-02-23)
7
+
8
+ **Note:** Version bump only for package @mittwald/flow-react-components
9
+
10
+ # [0.2.0-alpha.695](https://github.com/mittwald/flow/compare/0.2.0-alpha.694...0.2.0-alpha.695) (2026-02-20)
11
+
12
+ ### Bug Fixes
13
+
14
+ * **Tab:** fix tab does not change in controlled-mode ([2d206d4](https://github.com/mittwald/flow/commit/2d206d4ea3f4a0bf68501ca8c27ded67b9919a07))
15
+
6
16
  # [0.2.0-alpha.694](https://github.com/mittwald/flow/compare/0.2.0-alpha.693...0.2.0-alpha.694) (2026-02-19)
7
17
 
8
18
  **Note:** Version bump only for package @mittwald/flow-react-components
@@ -219991,30 +219991,6 @@
219991
219991
  "methods": [],
219992
219992
  "props": {}
219993
219993
  },
219994
- {
219995
- "tags": {},
219996
- "filePath": "src/components/BrowserOnly/BrowserOnly.tsx",
219997
- "description": "",
219998
- "displayName": "BrowserOnly",
219999
- "methods": [],
220000
- "props": {
220001
- "children": {
220002
- "defaultValue": null,
220003
- "description": "",
220004
- "name": "children",
220005
- "declarations": [
220006
- {
220007
- "fileName": "flow/node_modules/.pnpm/@types+react@19.2.10/node_modules/@types/react/index.d.ts",
220008
- "name": "TypeLiteral"
220009
- }
220010
- ],
220011
- "required": false,
220012
- "type": {
220013
- "name": "ReactNode"
220014
- }
220015
- }
220016
- }
220017
- },
220018
219994
  {
220019
219995
  "tags": {
220020
219996
  "flr-generate": "all"
@@ -222373,6 +222349,30 @@
222373
222349
  }
222374
222350
  }
222375
222351
  },
222352
+ {
222353
+ "tags": {},
222354
+ "filePath": "src/components/BrowserOnly/BrowserOnly.tsx",
222355
+ "description": "",
222356
+ "displayName": "BrowserOnly",
222357
+ "methods": [],
222358
+ "props": {
222359
+ "children": {
222360
+ "defaultValue": null,
222361
+ "description": "",
222362
+ "name": "children",
222363
+ "declarations": [
222364
+ {
222365
+ "fileName": "flow/node_modules/.pnpm/@types+react@19.2.10/node_modules/@types/react/index.d.ts",
222366
+ "name": "TypeLiteral"
222367
+ }
222368
+ ],
222369
+ "required": false,
222370
+ "type": {
222371
+ "name": "ReactNode"
222372
+ }
222373
+ }
222374
+ }
222375
+ },
222376
222376
  {
222377
222377
  "tags": {
222378
222378
  "flr-generate": "all"
@@ -276791,6 +276791,30 @@
276791
276791
  }
276792
276792
  }
276793
276793
  },
276794
+ {
276795
+ "tags": {},
276796
+ "filePath": "src/integrations/nextjs/components/RouterProvider/RouterProvider.tsx",
276797
+ "description": "",
276798
+ "displayName": "RouterProvider",
276799
+ "methods": [],
276800
+ "props": {
276801
+ "children": {
276802
+ "defaultValue": null,
276803
+ "description": "",
276804
+ "name": "children",
276805
+ "declarations": [
276806
+ {
276807
+ "fileName": "flow/node_modules/.pnpm/@types+react@19.2.10/node_modules/@types/react/index.d.ts",
276808
+ "name": "TypeLiteral"
276809
+ }
276810
+ ],
276811
+ "required": false,
276812
+ "type": {
276813
+ "name": "ReactNode"
276814
+ }
276815
+ }
276816
+ }
276817
+ },
276794
276818
  {
276795
276819
  "tags": {
276796
276820
  "deprecated": "Use RouterProvider instead"
@@ -282319,30 +282343,6 @@
282319
282343
  }
282320
282344
  }
282321
282345
  },
282322
- {
282323
- "tags": {},
282324
- "filePath": "src/integrations/nextjs/components/RouterProvider/RouterProvider.tsx",
282325
- "description": "",
282326
- "displayName": "RouterProvider",
282327
- "methods": [],
282328
- "props": {
282329
- "children": {
282330
- "defaultValue": null,
282331
- "description": "",
282332
- "name": "children",
282333
- "declarations": [
282334
- {
282335
- "fileName": "flow/node_modules/.pnpm/@types+react@19.2.10/node_modules/@types/react/index.d.ts",
282336
- "name": "TypeLiteral"
282337
- }
282338
- ],
282339
- "required": false,
282340
- "type": {
282341
- "name": "ReactNode"
282342
- }
282343
- }
282344
- }
282345
- },
282346
282346
  {
282347
282347
  "tags": {
282348
282348
  "flr-generate": "all"
@@ -301247,34 +301247,6 @@
301247
301247
  }
301248
301248
  }
301249
301249
  },
301250
- {
301251
- "tags": {},
301252
- "filePath": "src/components/Popover/components/PopoverTip/PopoverTip.tsx",
301253
- "description": "",
301254
- "displayName": "PopoverTip",
301255
- "methods": [],
301256
- "props": {
301257
- "className": {
301258
- "defaultValue": null,
301259
- "description": "The elements class name.",
301260
- "name": "className",
301261
- "parent": {
301262
- "fileName": "components/src/lib/types/props.ts",
301263
- "name": "PropsWithClassName"
301264
- },
301265
- "declarations": [
301266
- {
301267
- "fileName": "components/src/lib/types/props.ts",
301268
- "name": "PropsWithClassName"
301269
- }
301270
- ],
301271
- "required": false,
301272
- "type": {
301273
- "name": "string"
301274
- }
301275
- }
301276
- }
301277
- },
301278
301250
  {
301279
301251
  "tags": {},
301280
301252
  "filePath": "/home/runner/work/flow/flow/packages/components/src/components/Popover/components/PopoverTrigger/PopoverTrigger.tsx",
@@ -301413,6 +301385,34 @@
301413
301385
  }
301414
301386
  }
301415
301387
  },
301388
+ {
301389
+ "tags": {},
301390
+ "filePath": "src/components/Popover/components/PopoverTip/PopoverTip.tsx",
301391
+ "description": "",
301392
+ "displayName": "PopoverTip",
301393
+ "methods": [],
301394
+ "props": {
301395
+ "className": {
301396
+ "defaultValue": null,
301397
+ "description": "The elements class name.",
301398
+ "name": "className",
301399
+ "parent": {
301400
+ "fileName": "components/src/lib/types/props.ts",
301401
+ "name": "PropsWithClassName"
301402
+ },
301403
+ "declarations": [
301404
+ {
301405
+ "fileName": "components/src/lib/types/props.ts",
301406
+ "name": "PropsWithClassName"
301407
+ }
301408
+ ],
301409
+ "required": false,
301410
+ "type": {
301411
+ "name": "string"
301412
+ }
301413
+ }
301414
+ }
301415
+ },
301416
301416
  {
301417
301417
  "tags": {
301418
301418
  "flr-generate": "all"
@@ -301948,93 +301948,6 @@
301948
301948
  }
301949
301949
  }
301950
301950
  },
301951
- {
301952
- "tags": {
301953
- "flr-generate": "all"
301954
- },
301955
- "filePath": "/home/runner/work/flow/flow/packages/components/src/components/OverlayTrigger/components/DialogTrigger/DialogTrigger.tsx",
301956
- "description": "",
301957
- "displayName": "DialogTrigger",
301958
- "methods": [],
301959
- "props": {
301960
- "children": {
301961
- "defaultValue": null,
301962
- "description": "The elements that make up the table. Includes the TableHeader, TableBody, Columns, and Rows.",
301963
- "name": "children",
301964
- "parent": {
301965
- "fileName": "flow/node_modules/.pnpm/react-aria-components@1.14.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/react-aria-components/dist/types.d.ts",
301966
- "name": "TableProps"
301967
- },
301968
- "declarations": [
301969
- {
301970
- "fileName": "flow/node_modules/.pnpm/react-aria-components@1.14.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/react-aria-components/dist/types.d.ts",
301971
- "name": "TableProps"
301972
- }
301973
- ],
301974
- "required": false,
301975
- "type": {
301976
- "name": "ReactNode"
301977
- }
301978
- },
301979
- "isOpen": {
301980
- "defaultValue": null,
301981
- "description": "Whether the element is rendered.",
301982
- "name": "isOpen",
301983
- "parent": {
301984
- "fileName": "flow/node_modules/.pnpm/@react-types+overlays@3.9.2_react@19.2.4/node_modules/@react-types/overlays/src/index.d.ts",
301985
- "name": "PositionProps"
301986
- },
301987
- "declarations": [
301988
- {
301989
- "fileName": "flow/node_modules/.pnpm/@react-types+overlays@3.9.2_react@19.2.4/node_modules/@react-types/overlays/src/index.d.ts",
301990
- "name": "PositionProps"
301991
- }
301992
- ],
301993
- "required": false,
301994
- "type": {
301995
- "name": "boolean"
301996
- }
301997
- },
301998
- "defaultOpen": {
301999
- "defaultValue": null,
302000
- "description": "Whether the overlay is open by default (uncontrolled).",
302001
- "name": "defaultOpen",
302002
- "parent": {
302003
- "fileName": "flow/node_modules/.pnpm/@react-types+overlays@3.9.2_react@19.2.4/node_modules/@react-types/overlays/src/index.d.ts",
302004
- "name": "OverlayTriggerProps"
302005
- },
302006
- "declarations": [
302007
- {
302008
- "fileName": "flow/node_modules/.pnpm/@react-types+overlays@3.9.2_react@19.2.4/node_modules/@react-types/overlays/src/index.d.ts",
302009
- "name": "OverlayTriggerProps"
302010
- }
302011
- ],
302012
- "required": false,
302013
- "type": {
302014
- "name": "boolean"
302015
- }
302016
- },
302017
- "onOpenChange": {
302018
- "defaultValue": null,
302019
- "description": "Handler that is called when the overlay's open state changes.",
302020
- "name": "onOpenChange",
302021
- "parent": {
302022
- "fileName": "flow/node_modules/.pnpm/@react-types+overlays@3.9.2_react@19.2.4/node_modules/@react-types/overlays/src/index.d.ts",
302023
- "name": "OverlayTriggerProps"
302024
- },
302025
- "declarations": [
302026
- {
302027
- "fileName": "flow/node_modules/.pnpm/@react-types+overlays@3.9.2_react@19.2.4/node_modules/@react-types/overlays/src/index.d.ts",
302028
- "name": "OverlayTriggerProps"
302029
- }
302030
- ],
302031
- "required": false,
302032
- "type": {
302033
- "name": "((isOpen: boolean) => void)"
302034
- }
302035
- }
302036
- }
302037
- },
302038
301951
  {
302039
301952
  "tags": {
302040
301953
  "flr-generate": "all"
@@ -302219,6 +302132,93 @@
302219
302132
  }
302220
302133
  }
302221
302134
  },
302135
+ {
302136
+ "tags": {
302137
+ "flr-generate": "all"
302138
+ },
302139
+ "filePath": "/home/runner/work/flow/flow/packages/components/src/components/OverlayTrigger/components/DialogTrigger/DialogTrigger.tsx",
302140
+ "description": "",
302141
+ "displayName": "DialogTrigger",
302142
+ "methods": [],
302143
+ "props": {
302144
+ "children": {
302145
+ "defaultValue": null,
302146
+ "description": "The elements that make up the table. Includes the TableHeader, TableBody, Columns, and Rows.",
302147
+ "name": "children",
302148
+ "parent": {
302149
+ "fileName": "flow/node_modules/.pnpm/react-aria-components@1.14.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/react-aria-components/dist/types.d.ts",
302150
+ "name": "TableProps"
302151
+ },
302152
+ "declarations": [
302153
+ {
302154
+ "fileName": "flow/node_modules/.pnpm/react-aria-components@1.14.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/react-aria-components/dist/types.d.ts",
302155
+ "name": "TableProps"
302156
+ }
302157
+ ],
302158
+ "required": false,
302159
+ "type": {
302160
+ "name": "ReactNode"
302161
+ }
302162
+ },
302163
+ "isOpen": {
302164
+ "defaultValue": null,
302165
+ "description": "Whether the element is rendered.",
302166
+ "name": "isOpen",
302167
+ "parent": {
302168
+ "fileName": "flow/node_modules/.pnpm/@react-types+overlays@3.9.2_react@19.2.4/node_modules/@react-types/overlays/src/index.d.ts",
302169
+ "name": "PositionProps"
302170
+ },
302171
+ "declarations": [
302172
+ {
302173
+ "fileName": "flow/node_modules/.pnpm/@react-types+overlays@3.9.2_react@19.2.4/node_modules/@react-types/overlays/src/index.d.ts",
302174
+ "name": "PositionProps"
302175
+ }
302176
+ ],
302177
+ "required": false,
302178
+ "type": {
302179
+ "name": "boolean"
302180
+ }
302181
+ },
302182
+ "defaultOpen": {
302183
+ "defaultValue": null,
302184
+ "description": "Whether the overlay is open by default (uncontrolled).",
302185
+ "name": "defaultOpen",
302186
+ "parent": {
302187
+ "fileName": "flow/node_modules/.pnpm/@react-types+overlays@3.9.2_react@19.2.4/node_modules/@react-types/overlays/src/index.d.ts",
302188
+ "name": "OverlayTriggerProps"
302189
+ },
302190
+ "declarations": [
302191
+ {
302192
+ "fileName": "flow/node_modules/.pnpm/@react-types+overlays@3.9.2_react@19.2.4/node_modules/@react-types/overlays/src/index.d.ts",
302193
+ "name": "OverlayTriggerProps"
302194
+ }
302195
+ ],
302196
+ "required": false,
302197
+ "type": {
302198
+ "name": "boolean"
302199
+ }
302200
+ },
302201
+ "onOpenChange": {
302202
+ "defaultValue": null,
302203
+ "description": "Handler that is called when the overlay's open state changes.",
302204
+ "name": "onOpenChange",
302205
+ "parent": {
302206
+ "fileName": "flow/node_modules/.pnpm/@react-types+overlays@3.9.2_react@19.2.4/node_modules/@react-types/overlays/src/index.d.ts",
302207
+ "name": "OverlayTriggerProps"
302208
+ },
302209
+ "declarations": [
302210
+ {
302211
+ "fileName": "flow/node_modules/.pnpm/@react-types+overlays@3.9.2_react@19.2.4/node_modules/@react-types/overlays/src/index.d.ts",
302212
+ "name": "OverlayTriggerProps"
302213
+ }
302214
+ ],
302215
+ "required": false,
302216
+ "type": {
302217
+ "name": "((isOpen: boolean) => void)"
302218
+ }
302219
+ }
302220
+ }
302221
+ },
302222
302222
  {
302223
302223
  "tags": {
302224
302224
  "flr-generate": "all"
@@ -337226,6 +337226,53 @@
337226
337226
  "methods": [],
337227
337227
  "props": {}
337228
337228
  },
337229
+ {
337230
+ "tags": {},
337231
+ "filePath": "/home/runner/work/flow/flow/packages/components/src/components/List/components/Header/components/SearchField/SearchField.tsx",
337232
+ "description": "",
337233
+ "displayName": "SearchField",
337234
+ "methods": [],
337235
+ "props": {
337236
+ "search": {
337237
+ "defaultValue": null,
337238
+ "description": "",
337239
+ "name": "search",
337240
+ "parent": {
337241
+ "fileName": "components/src/components/List/components/Header/components/SearchField/SearchField.tsx",
337242
+ "name": "Props"
337243
+ },
337244
+ "declarations": [
337245
+ {
337246
+ "fileName": "components/src/components/List/components/Header/components/SearchField/SearchField.tsx",
337247
+ "name": "Props"
337248
+ }
337249
+ ],
337250
+ "required": true,
337251
+ "type": {
337252
+ "name": "Search<never>"
337253
+ }
337254
+ },
337255
+ "className": {
337256
+ "defaultValue": null,
337257
+ "description": "The elements class name.",
337258
+ "name": "className",
337259
+ "parent": {
337260
+ "fileName": "components/src/lib/types/props.ts",
337261
+ "name": "PropsWithClassName"
337262
+ },
337263
+ "declarations": [
337264
+ {
337265
+ "fileName": "components/src/lib/types/props.ts",
337266
+ "name": "PropsWithClassName"
337267
+ }
337268
+ ],
337269
+ "required": false,
337270
+ "type": {
337271
+ "name": "string"
337272
+ }
337273
+ }
337274
+ }
337275
+ },
337229
337276
  {
337230
337277
  "tags": {},
337231
337278
  "filePath": "/home/runner/work/flow/flow/packages/components/src/components/List/components/Header/components/FilterContextMenu/FilterMenuItem.tsx",
@@ -337350,53 +337397,6 @@
337350
337397
  "methods": [],
337351
337398
  "props": {}
337352
337399
  },
337353
- {
337354
- "tags": {},
337355
- "filePath": "/home/runner/work/flow/flow/packages/components/src/components/List/components/Header/components/SearchField/SearchField.tsx",
337356
- "description": "",
337357
- "displayName": "SearchField",
337358
- "methods": [],
337359
- "props": {
337360
- "search": {
337361
- "defaultValue": null,
337362
- "description": "",
337363
- "name": "search",
337364
- "parent": {
337365
- "fileName": "components/src/components/List/components/Header/components/SearchField/SearchField.tsx",
337366
- "name": "Props"
337367
- },
337368
- "declarations": [
337369
- {
337370
- "fileName": "components/src/components/List/components/Header/components/SearchField/SearchField.tsx",
337371
- "name": "Props"
337372
- }
337373
- ],
337374
- "required": true,
337375
- "type": {
337376
- "name": "Search<never>"
337377
- }
337378
- },
337379
- "className": {
337380
- "defaultValue": null,
337381
- "description": "The elements class name.",
337382
- "name": "className",
337383
- "parent": {
337384
- "fileName": "components/src/lib/types/props.ts",
337385
- "name": "PropsWithClassName"
337386
- },
337387
- "declarations": [
337388
- {
337389
- "fileName": "components/src/lib/types/props.ts",
337390
- "name": "PropsWithClassName"
337391
- }
337392
- ],
337393
- "required": false,
337394
- "type": {
337395
- "name": "string"
337396
- }
337397
- }
337398
- }
337399
- },
337400
337400
  {
337401
337401
  "tags": {},
337402
337402
  "filePath": "/home/runner/work/flow/flow/packages/components/src/components/List/components/Footer/components/ShowNextBatchButton/ShowNextBatchButton.tsx",
@@ -46,7 +46,7 @@ const SortingAccordion = () => {
46
46
  {
47
47
  value: s.id,
48
48
  onPress: () => list.getSorting(s.id).enable(),
49
- children: s.name ?? s.property
49
+ children: `${s.name ?? s.property} ${s.directionName ?? ""}`.trim()
50
50
  },
51
51
  s.id
52
52
  )) }) })
@@ -1 +1 @@
1
- {"version":3,"file":"SortingAccordion.mjs","sources":["../../../../../../../../../../src/components/List/components/Header/components/AllFiltersModal/SortingAccordion.tsx"],"sourcesContent":["import React, { type FC } from \"react\";\nimport AccordionView from \"@/views/AccordionView\";\nimport HeadingView from \"@/views/HeadingView\";\nimport { useLocalizedStringFormatter } from \"react-aria\";\nimport ContentView from \"@/views/ContentView\";\nimport RadioGroupView from \"@/views/RadioGroupView\";\nimport RadioView from \"@/views/RadioView\";\nimport { useList } from \"@/components/List\";\nimport locales from \"../../../../locales/*.locale.json\";\n\nexport const SortingAccordion: FC = () => {\n const list = useList();\n const stringFormatter = useLocalizedStringFormatter(locales);\n\n const sorting = list.visibleSorting;\n const activeSorting = sorting.find((s) => s.isSorted());\n\n if (sorting.length === 0) {\n return null;\n }\n\n return (\n <AccordionView>\n <HeadingView>{stringFormatter.format(\"list.sorting\")}</HeadingView>\n <ContentView>\n <RadioGroupView value={activeSorting?.id} m={[1, 1]}>\n {sorting.map((s) => (\n <RadioView\n key={s.id}\n value={s.id}\n onPress={() => list.getSorting(s.id).enable()}\n >\n {s.name ?? s.property}\n </RadioView>\n ))}\n </RadioGroupView>\n </ContentView>\n </AccordionView>\n );\n};\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUO,MAAM,mBAAuB,MAAM;AACxC,EAAA,MAAM,OAAO,OAAA,EAAQ;AACrB,EAAA,MAAM,eAAA,GAAkB,4BAA4B,OAAO,CAAA;AAE3D,EAAA,MAAM,UAAU,IAAA,CAAK,cAAA;AACrB,EAAA,MAAM,gBAAgB,OAAA,CAAQ,IAAA,CAAK,CAAC,CAAA,KAAM,CAAA,CAAE,UAAU,CAAA;AAEtD,EAAA,IAAI,OAAA,CAAQ,WAAW,CAAA,EAAG;AACxB,IAAA,OAAO,IAAA;AAAA,EACT;AAEA,EAAA,4BACG,aAAA,EAAA,EACC,QAAA,EAAA;AAAA,oBAAA,GAAA,CAAC,WAAA,EAAA,EAAa,QAAA,EAAA,eAAA,CAAgB,MAAA,CAAO,cAAc,CAAA,EAAE,CAAA;AAAA,oBACrD,GAAA,CAAC,WAAA,EAAA,EACC,QAAA,kBAAA,GAAA,CAAC,cAAA,EAAA,EAAe,OAAO,aAAA,EAAe,EAAA,EAAI,CAAA,EAAG,CAAC,GAAG,CAAC,CAAA,EAC/C,QAAA,EAAA,OAAA,CAAQ,GAAA,CAAI,CAAC,CAAA,qBACZ,GAAA;AAAA,MAAC,SAAA;AAAA,MAAA;AAAA,QAEC,OAAO,CAAA,CAAE,EAAA;AAAA,QACT,SAAS,MAAM,IAAA,CAAK,WAAW,CAAA,CAAE,EAAE,EAAE,MAAA,EAAO;AAAA,QAE3C,QAAA,EAAA,CAAA,CAAE,QAAQ,CAAA,CAAE;AAAA,OAAA;AAAA,MAJR,CAAA,CAAE;AAAA,KAMV,GACH,CAAA,EACF;AAAA,GAAA,EACF,CAAA;AAEJ;;;;"}
1
+ {"version":3,"file":"SortingAccordion.mjs","sources":["../../../../../../../../../../src/components/List/components/Header/components/AllFiltersModal/SortingAccordion.tsx"],"sourcesContent":["import React, { type FC } from \"react\";\nimport AccordionView from \"@/views/AccordionView\";\nimport HeadingView from \"@/views/HeadingView\";\nimport { useLocalizedStringFormatter } from \"react-aria\";\nimport ContentView from \"@/views/ContentView\";\nimport RadioGroupView from \"@/views/RadioGroupView\";\nimport RadioView from \"@/views/RadioView\";\nimport { useList } from \"@/components/List\";\nimport locales from \"../../../../locales/*.locale.json\";\n\nexport const SortingAccordion: FC = () => {\n const list = useList();\n const stringFormatter = useLocalizedStringFormatter(locales);\n\n const sorting = list.visibleSorting;\n const activeSorting = sorting.find((s) => s.isSorted());\n\n if (sorting.length === 0) {\n return null;\n }\n\n return (\n <AccordionView>\n <HeadingView>{stringFormatter.format(\"list.sorting\")}</HeadingView>\n <ContentView>\n <RadioGroupView value={activeSorting?.id} m={[1, 1]}>\n {sorting.map((s) => (\n <RadioView\n key={s.id}\n value={s.id}\n onPress={() => list.getSorting(s.id).enable()}\n >\n {`${s.name ?? s.property} ${s.directionName ?? \"\"}`.trim()}\n </RadioView>\n ))}\n </RadioGroupView>\n </ContentView>\n </AccordionView>\n );\n};\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUO,MAAM,mBAAuB,MAAM;AACxC,EAAA,MAAM,OAAO,OAAA,EAAQ;AACrB,EAAA,MAAM,eAAA,GAAkB,4BAA4B,OAAO,CAAA;AAE3D,EAAA,MAAM,UAAU,IAAA,CAAK,cAAA;AACrB,EAAA,MAAM,gBAAgB,OAAA,CAAQ,IAAA,CAAK,CAAC,CAAA,KAAM,CAAA,CAAE,UAAU,CAAA;AAEtD,EAAA,IAAI,OAAA,CAAQ,WAAW,CAAA,EAAG;AACxB,IAAA,OAAO,IAAA;AAAA,EACT;AAEA,EAAA,4BACG,aAAA,EAAA,EACC,QAAA,EAAA;AAAA,oBAAA,GAAA,CAAC,WAAA,EAAA,EAAa,QAAA,EAAA,eAAA,CAAgB,MAAA,CAAO,cAAc,CAAA,EAAE,CAAA;AAAA,oBACrD,GAAA,CAAC,WAAA,EAAA,EACC,QAAA,kBAAA,GAAA,CAAC,cAAA,EAAA,EAAe,OAAO,aAAA,EAAe,EAAA,EAAI,CAAA,EAAG,CAAC,GAAG,CAAC,CAAA,EAC/C,QAAA,EAAA,OAAA,CAAQ,GAAA,CAAI,CAAC,CAAA,qBACZ,GAAA;AAAA,MAAC,SAAA;AAAA,MAAA;AAAA,QAEC,OAAO,CAAA,CAAE,EAAA;AAAA,QACT,SAAS,MAAM,IAAA,CAAK,WAAW,CAAA,CAAE,EAAE,EAAE,MAAA,EAAO;AAAA,QAE3C,QAAA,EAAA,CAAA,EAAG,CAAA,CAAE,IAAA,IAAQ,CAAA,CAAE,QAAQ,IAAI,CAAA,CAAE,aAAA,IAAiB,EAAE,CAAA,CAAA,CAAG,IAAA;AAAK,OAAA;AAAA,MAJpD,CAAA,CAAE;AAAA,KAMV,GACH,CAAA,EACF;AAAA,GAAA,EACF,CAAA;AAEJ;;;;"}
@@ -14,16 +14,15 @@ const Tabs = flowComponent("Tabs", (props) => {
14
14
  children,
15
15
  className,
16
16
  defaultSelectedKey,
17
- selectedKey,
17
+ selectedKey: selectedKeyProps,
18
18
  disabledKeys,
19
19
  ref,
20
20
  onSelectionChange,
21
21
  ...rest
22
22
  } = props;
23
23
  const rootClassName = clsx(styles.tabs, className);
24
- const [selection, setSelection] = useState(
25
- selectedKey ?? defaultSelectedKey
26
- );
24
+ const [selectedKeyState, setSelectedKeyState] = useState(defaultSelectedKey);
25
+ const selectedKey = selectedKeyProps ?? selectedKeyState;
27
26
  return /* @__PURE__ */ jsxs(TunnelProvider, { children: [
28
27
  children,
29
28
  /* @__PURE__ */ jsxs(
@@ -32,9 +31,9 @@ const Tabs = flowComponent("Tabs", (props) => {
32
31
  slot: null,
33
32
  className: rootClassName,
34
33
  ...rest,
35
- selectedKey: selection,
34
+ selectedKey,
36
35
  onSelectionChange: (key) => {
37
- setSelection(key);
36
+ setSelectedKeyState(key);
38
37
  if (onSelectionChange) {
39
38
  onSelectionChange(key);
40
39
  }
@@ -45,9 +44,9 @@ const Tabs = flowComponent("Tabs", (props) => {
45
44
  /* @__PURE__ */ jsx(
46
45
  TabList,
47
46
  {
48
- selection,
47
+ selection: selectedKey,
49
48
  onContextMenuSelectionChange: (key) => {
50
- setSelection(key);
49
+ setSelectedKeyState(key);
51
50
  if (onSelectionChange) {
52
51
  onSelectionChange(key);
53
52
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Tabs.mjs","sources":["../../../../../../src/components/Tabs/Tabs.tsx"],"sourcesContent":["import { TabList } from \"@/components/Tabs/components/TabList\";\nimport type { FlowComponentProps } from \"@/lib/componentFactory/flowComponent\";\nimport { flowComponent } from \"@/lib/componentFactory/flowComponent\";\nimport { TunnelExit, TunnelProvider } from \"@mittwald/react-tunnel\";\nimport clsx from \"clsx\";\nimport type { PropsWithChildren } from \"react\";\nimport { useState } from \"react\";\nimport * as Aria from \"react-aria-components\";\nimport styles from \"./Tabs.module.scss\";\n\nexport interface TabsProps\n extends\n Omit<Aria.TabsProps, \"children\">,\n PropsWithChildren,\n FlowComponentProps {}\n\n/** @flr-generate all */\nexport const Tabs = flowComponent(\"Tabs\", (props) => {\n const {\n children,\n className,\n defaultSelectedKey,\n selectedKey,\n disabledKeys,\n ref,\n onSelectionChange,\n ...rest\n } = props;\n\n const rootClassName = clsx(styles.tabs, className);\n const [selection, setSelection] = useState<Aria.Key | undefined>(\n selectedKey ?? defaultSelectedKey,\n );\n\n return (\n <TunnelProvider>\n {children}\n <Aria.Tabs\n slot={null}\n className={rootClassName}\n {...rest}\n selectedKey={selection}\n onSelectionChange={(key) => {\n setSelection(key);\n if (onSelectionChange) {\n onSelectionChange(key);\n }\n }}\n disabledKeys={disabledKeys}\n ref={ref}\n >\n <TabList\n selection={selection}\n onContextMenuSelectionChange={(key) => {\n setSelection(key);\n if (onSelectionChange) {\n onSelectionChange(key);\n }\n }}\n disabledKeys={disabledKeys}\n />\n <TunnelExit id=\"Panels\" />\n </Aria.Tabs>\n </TunnelProvider>\n );\n});\n\nexport default Tabs;\n"],"names":[],"mappings":";;;;;;;;;AAiBO,MAAM,IAAA,GAAO,aAAA,CAAc,MAAA,EAAQ,CAAC,KAAA,KAAU;AACnD,EAAA,MAAM;AAAA,IACJ,QAAA;AAAA,IACA,SAAA;AAAA,IACA,kBAAA;AAAA,IACA,WAAA;AAAA,IACA,YAAA;AAAA,IACA,GAAA;AAAA,IACA,iBAAA;AAAA,IACA,GAAG;AAAA,GACL,GAAI,KAAA;AAEJ,EAAA,MAAM,aAAA,GAAgB,IAAA,CAAK,MAAA,CAAO,IAAA,EAAM,SAAS,CAAA;AACjD,EAAA,MAAM,CAAC,SAAA,EAAW,YAAY,CAAA,GAAI,QAAA;AAAA,IAChC,WAAA,IAAe;AAAA,GACjB;AAEA,EAAA,4BACG,cAAA,EAAA,EACE,QAAA,EAAA;AAAA,IAAA,QAAA;AAAA,oBACD,IAAA;AAAA,MAAC,IAAA,CAAK,IAAA;AAAA,MAAL;AAAA,QACC,IAAA,EAAM,IAAA;AAAA,QACN,SAAA,EAAW,aAAA;AAAA,QACV,GAAG,IAAA;AAAA,QACJ,WAAA,EAAa,SAAA;AAAA,QACb,iBAAA,EAAmB,CAAC,GAAA,KAAQ;AAC1B,UAAA,YAAA,CAAa,GAAG,CAAA;AAChB,UAAA,IAAI,iBAAA,EAAmB;AACrB,YAAA,iBAAA,CAAkB,GAAG,CAAA;AAAA,UACvB;AAAA,QACF,CAAA;AAAA,QACA,YAAA;AAAA,QACA,GAAA;AAAA,QAEA,QAAA,EAAA;AAAA,0BAAA,GAAA;AAAA,YAAC,OAAA;AAAA,YAAA;AAAA,cACC,SAAA;AAAA,cACA,4BAAA,EAA8B,CAAC,GAAA,KAAQ;AACrC,gBAAA,YAAA,CAAa,GAAG,CAAA;AAChB,gBAAA,IAAI,iBAAA,EAAmB;AACrB,kBAAA,iBAAA,CAAkB,GAAG,CAAA;AAAA,gBACvB;AAAA,cACF,CAAA;AAAA,cACA;AAAA;AAAA,WACF;AAAA,0BACA,GAAA,CAAC,UAAA,EAAA,EAAW,EAAA,EAAG,QAAA,EAAS;AAAA;AAAA;AAAA;AAC1B,GAAA,EACF,CAAA;AAEJ,CAAC;;;;"}
1
+ {"version":3,"file":"Tabs.mjs","sources":["../../../../../../src/components/Tabs/Tabs.tsx"],"sourcesContent":["import { TabList } from \"@/components/Tabs/components/TabList\";\nimport type { FlowComponentProps } from \"@/lib/componentFactory/flowComponent\";\nimport { flowComponent } from \"@/lib/componentFactory/flowComponent\";\nimport { TunnelExit, TunnelProvider } from \"@mittwald/react-tunnel\";\nimport clsx from \"clsx\";\nimport type { PropsWithChildren } from \"react\";\nimport { useState } from \"react\";\nimport * as Aria from \"react-aria-components\";\nimport styles from \"./Tabs.module.scss\";\n\nexport interface TabsProps\n extends\n Omit<Aria.TabsProps, \"children\">,\n PropsWithChildren,\n FlowComponentProps {}\n\n/** @flr-generate all */\nexport const Tabs = flowComponent(\"Tabs\", (props) => {\n const {\n children,\n className,\n defaultSelectedKey,\n selectedKey: selectedKeyProps,\n disabledKeys,\n ref,\n onSelectionChange,\n ...rest\n } = props;\n\n const rootClassName = clsx(styles.tabs, className);\n const [selectedKeyState, setSelectedKeyState] = useState<\n Aria.Key | undefined\n >(defaultSelectedKey);\n\n const selectedKey = selectedKeyProps ?? selectedKeyState;\n\n return (\n <TunnelProvider>\n {children}\n <Aria.Tabs\n slot={null}\n className={rootClassName}\n {...rest}\n selectedKey={selectedKey}\n onSelectionChange={(key) => {\n setSelectedKeyState(key);\n if (onSelectionChange) {\n onSelectionChange(key);\n }\n }}\n disabledKeys={disabledKeys}\n ref={ref}\n >\n <TabList\n selection={selectedKey}\n onContextMenuSelectionChange={(key) => {\n setSelectedKeyState(key);\n if (onSelectionChange) {\n onSelectionChange(key);\n }\n }}\n disabledKeys={disabledKeys}\n />\n <TunnelExit id=\"Panels\" />\n </Aria.Tabs>\n </TunnelProvider>\n );\n});\n\nexport default Tabs;\n"],"names":[],"mappings":";;;;;;;;;AAiBO,MAAM,IAAA,GAAO,aAAA,CAAc,MAAA,EAAQ,CAAC,KAAA,KAAU;AACnD,EAAA,MAAM;AAAA,IACJ,QAAA;AAAA,IACA,SAAA;AAAA,IACA,kBAAA;AAAA,IACA,WAAA,EAAa,gBAAA;AAAA,IACb,YAAA;AAAA,IACA,GAAA;AAAA,IACA,iBAAA;AAAA,IACA,GAAG;AAAA,GACL,GAAI,KAAA;AAEJ,EAAA,MAAM,aAAA,GAAgB,IAAA,CAAK,MAAA,CAAO,IAAA,EAAM,SAAS,CAAA;AACjD,EAAA,MAAM,CAAC,gBAAA,EAAkB,mBAAmB,CAAA,GAAI,SAE9C,kBAAkB,CAAA;AAEpB,EAAA,MAAM,cAAc,gBAAA,IAAoB,gBAAA;AAExC,EAAA,4BACG,cAAA,EAAA,EACE,QAAA,EAAA;AAAA,IAAA,QAAA;AAAA,oBACD,IAAA;AAAA,MAAC,IAAA,CAAK,IAAA;AAAA,MAAL;AAAA,QACC,IAAA,EAAM,IAAA;AAAA,QACN,SAAA,EAAW,aAAA;AAAA,QACV,GAAG,IAAA;AAAA,QACJ,WAAA;AAAA,QACA,iBAAA,EAAmB,CAAC,GAAA,KAAQ;AAC1B,UAAA,mBAAA,CAAoB,GAAG,CAAA;AACvB,UAAA,IAAI,iBAAA,EAAmB;AACrB,YAAA,iBAAA,CAAkB,GAAG,CAAA;AAAA,UACvB;AAAA,QACF,CAAA;AAAA,QACA,YAAA;AAAA,QACA,GAAA;AAAA,QAEA,QAAA,EAAA;AAAA,0BAAA,GAAA;AAAA,YAAC,OAAA;AAAA,YAAA;AAAA,cACC,SAAA,EAAW,WAAA;AAAA,cACX,4BAAA,EAA8B,CAAC,GAAA,KAAQ;AACrC,gBAAA,mBAAA,CAAoB,GAAG,CAAA;AACvB,gBAAA,IAAI,iBAAA,EAAmB;AACrB,kBAAA,iBAAA,CAAkB,GAAG,CAAA;AAAA,gBACvB;AAAA,cACF,CAAA;AAAA,cACA;AAAA;AAAA,WACF;AAAA,0BACA,GAAA,CAAC,UAAA,EAAA,EAAW,EAAA,EAAG,QAAA,EAAS;AAAA;AAAA;AAAA;AAC1B,GAAA,EACF,CAAA;AAEJ,CAAC;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../../src/components/Tabs/Tabs.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAI/E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE/C,OAAO,KAAK,IAAI,MAAM,uBAAuB,CAAC;AAG9C,MAAM,WAAW,SACf,SACE,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,EAChC,iBAAiB,EACjB,kBAAkB;CAAG;AAEzB,wBAAwB;AACxB,eAAO,MAAM,IAAI,8FAgDf,CAAC;AAEH,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../../src/components/Tabs/Tabs.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAI/E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE/C,OAAO,KAAK,IAAI,MAAM,uBAAuB,CAAC;AAG9C,MAAM,WAAW,SACf,SACE,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,EAChC,iBAAiB,EACjB,kBAAkB;CAAG;AAEzB,wBAAwB;AACxB,eAAO,MAAM,IAAI,8FAkDf,CAAC;AAEH,eAAe,IAAI,CAAC"}
@@ -6,4 +6,5 @@ type Story = StoryObj<typeof Tabs>;
6
6
  export declare const Default: Story;
7
7
  export declare const SmallSpace: Story;
8
8
  export declare const Controlled: Story;
9
+ export declare const WithLinks: Story;
9
10
  //# sourceMappingURL=Default.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Default.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Tabs/stories/Default.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAO,IAAI,EAAY,MAAM,mBAAmB,CAAC;AAWxD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,IAAI,CA6C3B,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,eAAO,MAAM,UAAU,EAAE,KAExB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAExB,CAAC"}
1
+ {"version":3,"file":"Default.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Tabs/stories/Default.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAO,IAAI,EAAY,MAAM,mBAAmB,CAAC;AAaxD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,IAAI,CA6C3B,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,eAAO,MAAM,UAAU,EAAE,KAExB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAmBxB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAsBvB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mittwald/flow-react-components",
3
- "version": "0.2.0-alpha.694",
3
+ "version": "0.2.0-alpha.696",
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
  "dependencies": {
59
59
  "@internationalized/string-compiler": "^3.2.6",
60
60
  "@mittwald/password-tools-js": "3.0.0-alpha.18",
61
- "@mittwald/react-tunnel": "0.2.0-alpha.694",
61
+ "@mittwald/react-tunnel": "0.2.0-alpha.696",
62
62
  "@mittwald/react-use-promise": "^4.2.2",
63
63
  "@react-aria/form": "^3.1.3",
64
64
  "@react-aria/live-announcer": "^3.4.4",
@@ -104,7 +104,7 @@
104
104
  "@faker-js/faker": "^10.2.0",
105
105
  "@internationalized/date": "^3.10.1",
106
106
  "@mittwald/flow-core": "",
107
- "@mittwald/flow-design-tokens": "0.2.0-alpha.694",
107
+ "@mittwald/flow-design-tokens": "0.2.0-alpha.696",
108
108
  "@mittwald/react-use-promise": "^4.2.2",
109
109
  "@mittwald/remote-dom-react": "1.2.2-mittwald.10",
110
110
  "@mittwald/typescript-config": "",
@@ -172,5 +172,5 @@
172
172
  "optional": true
173
173
  }
174
174
  },
175
- "gitHead": "cc159503ebfa74607030c9bf45209bec1c88a4c3"
175
+ "gitHead": "a7073e143908b5260393318a34f5e53f64a2cfe9"
176
176
  }