@mittwald/flow-react-components 0.2.0-alpha.626 → 0.2.0-alpha.628

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.628](https://github.com/mittwald/flow/compare/0.2.0-alpha.627...0.2.0-alpha.628) (2026-01-13)
7
+
8
+ ### Bug Fixes
9
+
10
+ * **List:** hide clear all if only one filter is selected ([#2244](https://github.com/mittwald/flow/issues/2244)) ([7f0dc68](https://github.com/mittwald/flow/commit/7f0dc6899abcdc591c72ea50e95bc74f40ccd8c2))
11
+
12
+ # [0.2.0-alpha.627](https://github.com/mittwald/flow/compare/0.2.0-alpha.626...0.2.0-alpha.627) (2026-01-13)
13
+
14
+ **Note:** Version bump only for package @mittwald/flow-react-components
15
+
6
16
  # [0.2.0-alpha.626](https://github.com/mittwald/flow/compare/0.2.0-alpha.625...0.2.0-alpha.626) (2026-01-12)
7
17
 
8
18
  **Note:** Version bump only for package @mittwald/flow-react-components
@@ -273112,7 +273112,33 @@
273112
273112
  "tags": {
273113
273113
  "deprecated": "Use RouterProvider instead"
273114
273114
  },
273115
- "filePath": "src/integrations/nextjs/components/Link/Link.tsx",
273115
+ "filePath": "src/integrations/nextjs/components/LinkProvider/LinkProvider.tsx",
273116
+ "description": "",
273117
+ "displayName": "LinkProvider",
273118
+ "methods": [],
273119
+ "props": {
273120
+ "children": {
273121
+ "defaultValue": null,
273122
+ "description": "",
273123
+ "name": "children",
273124
+ "declarations": [
273125
+ {
273126
+ "fileName": "flow/node_modules/.pnpm/@types+react@19.2.7/node_modules/@types/react/index.d.ts",
273127
+ "name": "TypeLiteral"
273128
+ }
273129
+ ],
273130
+ "required": false,
273131
+ "type": {
273132
+ "name": "ReactNode"
273133
+ }
273134
+ }
273135
+ }
273136
+ },
273137
+ {
273138
+ "tags": {
273139
+ "deprecated": "Use RouterProvider instead"
273140
+ },
273141
+ "filePath": "/home/runner/work/flow/flow/packages/components/src/integrations/nextjs/components/Link/Link.tsx",
273116
273142
  "description": "",
273117
273143
  "displayName": "Link",
273118
273144
  "methods": [],
@@ -273122,12 +273148,12 @@
273122
273148
  "description": "",
273123
273149
  "name": "ref",
273124
273150
  "parent": {
273125
- "fileName": "src/integrations/nextjs/components/Link/Link.tsx",
273151
+ "fileName": "components/src/integrations/nextjs/components/Link/Link.tsx",
273126
273152
  "name": "Props"
273127
273153
  },
273128
273154
  "declarations": [
273129
273155
  {
273130
- "fileName": "src/integrations/nextjs/components/Link/Link.tsx",
273156
+ "fileName": "components/src/integrations/nextjs/components/Link/Link.tsx",
273131
273157
  "name": "Props"
273132
273158
  }
273133
273159
  ],
@@ -273141,12 +273167,12 @@
273141
273167
  "description": "",
273142
273168
  "name": "isDisabled",
273143
273169
  "parent": {
273144
- "fileName": "src/integrations/nextjs/components/Link/Link.tsx",
273170
+ "fileName": "components/src/integrations/nextjs/components/Link/Link.tsx",
273145
273171
  "name": "Props"
273146
273172
  },
273147
273173
  "declarations": [
273148
273174
  {
273149
- "fileName": "src/integrations/nextjs/components/Link/Link.tsx",
273175
+ "fileName": "components/src/integrations/nextjs/components/Link/Link.tsx",
273150
273176
  "name": "Props"
273151
273177
  }
273152
273178
  ],
@@ -278610,32 +278636,6 @@
278610
278636
  }
278611
278637
  }
278612
278638
  },
278613
- {
278614
- "tags": {
278615
- "deprecated": "Use RouterProvider instead"
278616
- },
278617
- "filePath": "src/integrations/nextjs/components/LinkProvider/LinkProvider.tsx",
278618
- "description": "",
278619
- "displayName": "LinkProvider",
278620
- "methods": [],
278621
- "props": {
278622
- "children": {
278623
- "defaultValue": null,
278624
- "description": "",
278625
- "name": "children",
278626
- "declarations": [
278627
- {
278628
- "fileName": "flow/node_modules/.pnpm/@types+react@19.2.7/node_modules/@types/react/index.d.ts",
278629
- "name": "TypeLiteral"
278630
- }
278631
- ],
278632
- "required": false,
278633
- "type": {
278634
- "name": "ReactNode"
278635
- }
278636
- }
278637
- }
278638
- },
278639
278639
  {
278640
278640
  "tags": {
278641
278641
  "flr-generate": "all"
@@ -307268,24 +307268,47 @@
307268
307268
  "tags": {
307269
307269
  "flr-generate": "all"
307270
307270
  },
307271
- "filePath": "/home/runner/work/flow/flow/packages/components/src/components/ContextMenu/components/ContextMenuSection/ContextMenuSection.tsx",
307271
+ "filePath": "/home/runner/work/flow/flow/packages/components/src/components/ContextMenu/components/ContextMenuTrigger/ContextMenuTrigger.tsx",
307272
307272
  "description": "",
307273
- "displayName": "ContextMenuSection",
307273
+ "displayName": "ContextMenuTrigger",
307274
307274
  "methods": [],
307275
307275
  "props": {
307276
- "children": {
307276
+ "isDefaultOpen": {
307277
307277
  "defaultValue": null,
307278
- "description": "",
307279
- "name": "children",
307278
+ "description": "Whether the overlay should be open initially.",
307279
+ "name": "isDefaultOpen",
307280
+ "parent": {
307281
+ "fileName": "components/src/components/OverlayTrigger/OverlayTrigger.tsx",
307282
+ "name": "OverlayTriggerProps"
307283
+ },
307280
307284
  "declarations": [
307281
307285
  {
307282
- "fileName": "flow/node_modules/.pnpm/@types+react@19.2.7/node_modules/@types/react/index.d.ts",
307283
- "name": "TypeLiteral"
307286
+ "fileName": "components/src/components/OverlayTrigger/OverlayTrigger.tsx",
307287
+ "name": "OverlayTriggerProps"
307284
307288
  }
307285
307289
  ],
307286
307290
  "required": false,
307287
307291
  "type": {
307288
- "name": "ReactNode"
307292
+ "name": "boolean"
307293
+ }
307294
+ },
307295
+ "controller": {
307296
+ "defaultValue": null,
307297
+ "description": "A controller to control the state of the overlay.",
307298
+ "name": "controller",
307299
+ "parent": {
307300
+ "fileName": "components/src/components/OverlayTrigger/OverlayTrigger.tsx",
307301
+ "name": "OverlayTriggerProps"
307302
+ },
307303
+ "declarations": [
307304
+ {
307305
+ "fileName": "components/src/components/OverlayTrigger/OverlayTrigger.tsx",
307306
+ "name": "OverlayTriggerProps"
307307
+ }
307308
+ ],
307309
+ "required": false,
307310
+ "type": {
307311
+ "name": "OverlayController"
307289
307312
  }
307290
307313
  },
307291
307314
  "wrapWith": {
@@ -307364,57 +307387,19 @@
307364
307387
  "name": "Key | null"
307365
307388
  }
307366
307389
  },
307367
- "selectedKeys": {
307368
- "defaultValue": null,
307369
- "description": "The currently selected keys in the collection (controlled).",
307370
- "name": "selectedKeys",
307371
- "parent": {
307372
- "fileName": "flow/node_modules/.pnpm/@react-types+shared@3.32.1_react@19.2.1/node_modules/@react-types/shared/src/selection.d.ts",
307373
- "name": "MultipleSelection"
307374
- },
307375
- "declarations": [
307376
- {
307377
- "fileName": "flow/node_modules/.pnpm/@react-types+shared@3.32.1_react@19.2.1/node_modules/@react-types/shared/src/selection.d.ts",
307378
- "name": "MultipleSelection"
307379
- }
307380
- ],
307381
- "required": false,
307382
- "type": {
307383
- "name": "\"all\" | Iterable<Key>"
307384
- }
307385
- },
307386
- "defaultSelectedKeys": {
307387
- "defaultValue": null,
307388
- "description": "The initial selected keys in the collection (uncontrolled).",
307389
- "name": "defaultSelectedKeys",
307390
- "parent": {
307391
- "fileName": "flow/node_modules/.pnpm/@react-types+shared@3.32.1_react@19.2.1/node_modules/@react-types/shared/src/selection.d.ts",
307392
- "name": "MultipleSelection"
307393
- },
307394
- "declarations": [
307395
- {
307396
- "fileName": "flow/node_modules/.pnpm/@react-types+shared@3.32.1_react@19.2.1/node_modules/@react-types/shared/src/selection.d.ts",
307397
- "name": "MultipleSelection"
307398
- }
307399
- ],
307400
- "required": false,
307401
- "type": {
307402
- "name": "\"all\" | Iterable<Key>"
307403
- }
307404
- },
307405
- "selectionMode": {
307390
+ "children": {
307406
307391
  "defaultValue": null,
307407
307392
  "description": "",
307408
- "name": "selectionMode",
307393
+ "name": "children",
307409
307394
  "declarations": [
307410
307395
  {
307411
- "fileName": "components/src/components/ContextMenu/components/ContextMenuSection/ContextMenuSection.tsx",
307396
+ "fileName": "flow/node_modules/.pnpm/@types+react@19.2.7/node_modules/@types/react/index.d.ts",
307412
307397
  "name": "TypeLiteral"
307413
307398
  }
307414
307399
  ],
307415
307400
  "required": false,
307416
307401
  "type": {
307417
- "name": "ContextMenuSelectionMode"
307402
+ "name": "ReactNode"
307418
307403
  }
307419
307404
  }
307420
307405
  }
@@ -307423,47 +307408,24 @@
307423
307408
  "tags": {
307424
307409
  "flr-generate": "all"
307425
307410
  },
307426
- "filePath": "/home/runner/work/flow/flow/packages/components/src/components/ContextMenu/components/ContextMenuTrigger/ContextMenuTrigger.tsx",
307411
+ "filePath": "/home/runner/work/flow/flow/packages/components/src/components/ContextMenu/components/ContextMenuSection/ContextMenuSection.tsx",
307427
307412
  "description": "",
307428
- "displayName": "ContextMenuTrigger",
307413
+ "displayName": "ContextMenuSection",
307429
307414
  "methods": [],
307430
307415
  "props": {
307431
- "isDefaultOpen": {
307432
- "defaultValue": null,
307433
- "description": "Whether the overlay should be open initially.",
307434
- "name": "isDefaultOpen",
307435
- "parent": {
307436
- "fileName": "components/src/components/OverlayTrigger/OverlayTrigger.tsx",
307437
- "name": "OverlayTriggerProps"
307438
- },
307439
- "declarations": [
307440
- {
307441
- "fileName": "components/src/components/OverlayTrigger/OverlayTrigger.tsx",
307442
- "name": "OverlayTriggerProps"
307443
- }
307444
- ],
307445
- "required": false,
307446
- "type": {
307447
- "name": "boolean"
307448
- }
307449
- },
307450
- "controller": {
307416
+ "children": {
307451
307417
  "defaultValue": null,
307452
- "description": "A controller to control the state of the overlay.",
307453
- "name": "controller",
307454
- "parent": {
307455
- "fileName": "components/src/components/OverlayTrigger/OverlayTrigger.tsx",
307456
- "name": "OverlayTriggerProps"
307457
- },
307418
+ "description": "",
307419
+ "name": "children",
307458
307420
  "declarations": [
307459
307421
  {
307460
- "fileName": "components/src/components/OverlayTrigger/OverlayTrigger.tsx",
307461
- "name": "OverlayTriggerProps"
307422
+ "fileName": "flow/node_modules/.pnpm/@types+react@19.2.7/node_modules/@types/react/index.d.ts",
307423
+ "name": "TypeLiteral"
307462
307424
  }
307463
307425
  ],
307464
307426
  "required": false,
307465
307427
  "type": {
307466
- "name": "OverlayController"
307428
+ "name": "ReactNode"
307467
307429
  }
307468
307430
  },
307469
307431
  "wrapWith": {
@@ -307542,19 +307504,57 @@
307542
307504
  "name": "Key | null"
307543
307505
  }
307544
307506
  },
307545
- "children": {
307507
+ "selectedKeys": {
307508
+ "defaultValue": null,
307509
+ "description": "The currently selected keys in the collection (controlled).",
307510
+ "name": "selectedKeys",
307511
+ "parent": {
307512
+ "fileName": "flow/node_modules/.pnpm/@react-types+shared@3.32.1_react@19.2.1/node_modules/@react-types/shared/src/selection.d.ts",
307513
+ "name": "MultipleSelection"
307514
+ },
307515
+ "declarations": [
307516
+ {
307517
+ "fileName": "flow/node_modules/.pnpm/@react-types+shared@3.32.1_react@19.2.1/node_modules/@react-types/shared/src/selection.d.ts",
307518
+ "name": "MultipleSelection"
307519
+ }
307520
+ ],
307521
+ "required": false,
307522
+ "type": {
307523
+ "name": "\"all\" | Iterable<Key>"
307524
+ }
307525
+ },
307526
+ "defaultSelectedKeys": {
307527
+ "defaultValue": null,
307528
+ "description": "The initial selected keys in the collection (uncontrolled).",
307529
+ "name": "defaultSelectedKeys",
307530
+ "parent": {
307531
+ "fileName": "flow/node_modules/.pnpm/@react-types+shared@3.32.1_react@19.2.1/node_modules/@react-types/shared/src/selection.d.ts",
307532
+ "name": "MultipleSelection"
307533
+ },
307534
+ "declarations": [
307535
+ {
307536
+ "fileName": "flow/node_modules/.pnpm/@react-types+shared@3.32.1_react@19.2.1/node_modules/@react-types/shared/src/selection.d.ts",
307537
+ "name": "MultipleSelection"
307538
+ }
307539
+ ],
307540
+ "required": false,
307541
+ "type": {
307542
+ "name": "\"all\" | Iterable<Key>"
307543
+ }
307544
+ },
307545
+ "selectionMode": {
307546
307546
  "defaultValue": null,
307547
307547
  "description": "",
307548
- "name": "children",
307548
+ "name": "selectionMode",
307549
307549
  "declarations": [
307550
307550
  {
307551
- "fileName": "flow/node_modules/.pnpm/@types+react@19.2.7/node_modules/@types/react/index.d.ts",
307551
+ "fileName": "components/src/components/ContextMenu/components/ContextMenuSection/ContextMenuSection.tsx",
307552
307552
  "name": "TypeLiteral"
307553
307553
  }
307554
307554
  ],
307555
307555
  "required": false,
307556
307556
  "type": {
307557
- "name": "ReactNode"
307557
+ "name": "ContextMenuSelectionMode"
307558
307558
  }
307559
307559
  }
307560
307560
  }
@@ -59,7 +59,7 @@ const ActiveFilters = observer(() => {
59
59
  }
60
60
  )
61
61
  ] }) : void 0;
62
- const removeAllFiltersButton = activeFilters.length > 0 ? /* @__PURE__ */ jsxs(TooltipTrigger, { children: [
62
+ const removeAllFiltersButton = activeFilters.length > 1 ? /* @__PURE__ */ jsxs(TooltipTrigger, { children: [
63
63
  /* @__PURE__ */ jsx(TooltipView, { children: /* @__PURE__ */ jsx(Translate, { locales, children: "list.filters.clear" }) }),
64
64
  /* @__PURE__ */ jsx(
65
65
  ButtonView,
@@ -1 +1 @@
1
- {"version":3,"file":"ActiveFilters.mjs","sources":["../../../../../../../../../../src/components/List/components/Header/components/ActiveFilters/ActiveFilters.tsx"],"sourcesContent":["import type { FC } from \"react\";\nimport React from \"react\";\nimport { useList } from \"@/components/List/hooks/useList\";\nimport styles from \"./ActiveFilters.module.scss\";\nimport locales from \"../../../../locales/*.locale.json\";\nimport { Translate } from \"@/lib/react/components/Translate\";\nimport { observer } from \"mobx-react-lite\";\nimport { useLocalizedStringFormatter } from \"react-aria\";\nimport { TooltipTrigger } from \"@/components/Tooltip\";\nimport {\n IconClose,\n IconSave,\n IconUndo,\n} from \"@/components/Icon/components/icons\";\nimport ButtonView from \"@/views/ButtonView\";\nimport TooltipView from \"@/views/TooltipView\";\nimport DivView from \"@/views/DivView\";\nimport BadgeView from \"@/views/BadgeView\";\nimport TooltipTriggerView from \"@/views/TooltipTriggerView\";\nimport TextView from \"@/views/TextView\";\n\nexport const ActiveFilters: FC = observer(() => {\n const list = useList();\n const formatter = useLocalizedStringFormatter(locales);\n\n const activeFilterValues = list.filters\n .flatMap((f) => f.values)\n .filter((v) => v.isActive);\n\n const activeFilters = activeFilterValues.map((v) => (\n <BadgeView key={v.id} onClose={() => v.deactivate()}>\n <TextView>{v.render()}</TextView>\n </BadgeView>\n ));\n\n const someFiltersChanged =\n list.filters.filter((f) => f.hasChanged()).length > 0;\n\n const storeFiltersButton = list.supportsSettingsStorage &&\n someFiltersChanged && (\n <TooltipTriggerView>\n <TooltipView>\n <Translate locales={locales}>list.filters.store</Translate>\n </TooltipView>\n <ButtonView\n size=\"s\"\n variant=\"plain\"\n color=\"secondary\"\n onPress={() => list.storeFilterDefaultSettings()}\n aria-label={formatter.format(\"list.filters.store\")}\n >\n <IconSave />\n </ButtonView>\n </TooltipTriggerView>\n );\n\n const resetFiltersButton = someFiltersChanged ? (\n <TooltipTrigger>\n <TooltipView>\n <Translate locales={locales}>list.filters.reset</Translate>\n </TooltipView>\n <ButtonView\n size=\"s\"\n variant=\"plain\"\n color=\"secondary\"\n onPress={() => list.resetFilters()}\n aria-label={formatter.format(\"list.filters.reset\")}\n >\n <IconUndo />\n </ButtonView>\n </TooltipTrigger>\n ) : undefined;\n\n const removeAllFiltersButton =\n activeFilters.length > 0 ? (\n <TooltipTrigger>\n <TooltipView>\n <Translate locales={locales}>list.filters.clear</Translate>\n </TooltipView>\n <ButtonView\n size=\"s\"\n variant=\"plain\"\n color=\"secondary\"\n onPress={() => list.clearFilters()}\n >\n <IconClose />\n </ButtonView>\n </TooltipTrigger>\n ) : undefined;\n\n if (\n activeFilters.length === 0 &&\n !storeFiltersButton &&\n !resetFiltersButton\n ) {\n return null;\n }\n\n return (\n <DivView className={styles.activeFilters}>\n {activeFilters}\n {storeFiltersButton}\n {resetFiltersButton}\n {removeAllFiltersButton}\n </DivView>\n );\n});\n\nexport default ActiveFilters;\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAqBO,MAAM,aAAA,GAAoB,SAAS,MAA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IAAA,aAAA;AAAA,IACA,kBAAA;AAAA,IACA,kBAAA;AAAA,IACA;AAAA,GAAA,EACH,CAAA;AAEJ,CAAC;;;;"}
1
+ {"version":3,"file":"ActiveFilters.mjs","sources":["../../../../../../../../../../src/components/List/components/Header/components/ActiveFilters/ActiveFilters.tsx"],"sourcesContent":["import type { FC } from \"react\";\nimport React from \"react\";\nimport { useList } from \"@/components/List/hooks/useList\";\nimport styles from \"./ActiveFilters.module.scss\";\nimport locales from \"../../../../locales/*.locale.json\";\nimport { Translate } from \"@/lib/react/components/Translate\";\nimport { observer } from \"mobx-react-lite\";\nimport { useLocalizedStringFormatter } from \"react-aria\";\nimport { TooltipTrigger } from \"@/components/Tooltip\";\nimport {\n IconClose,\n IconSave,\n IconUndo,\n} from \"@/components/Icon/components/icons\";\nimport ButtonView from \"@/views/ButtonView\";\nimport TooltipView from \"@/views/TooltipView\";\nimport DivView from \"@/views/DivView\";\nimport BadgeView from \"@/views/BadgeView\";\nimport TooltipTriggerView from \"@/views/TooltipTriggerView\";\nimport TextView from \"@/views/TextView\";\n\nexport const ActiveFilters: FC = observer(() => {\n const list = useList();\n const formatter = useLocalizedStringFormatter(locales);\n\n const activeFilterValues = list.filters\n .flatMap((f) => f.values)\n .filter((v) => v.isActive);\n\n const activeFilters = activeFilterValues.map((v) => (\n <BadgeView key={v.id} onClose={() => v.deactivate()}>\n <TextView>{v.render()}</TextView>\n </BadgeView>\n ));\n\n const someFiltersChanged =\n list.filters.filter((f) => f.hasChanged()).length > 0;\n\n const storeFiltersButton = list.supportsSettingsStorage &&\n someFiltersChanged && (\n <TooltipTriggerView>\n <TooltipView>\n <Translate locales={locales}>list.filters.store</Translate>\n </TooltipView>\n <ButtonView\n size=\"s\"\n variant=\"plain\"\n color=\"secondary\"\n onPress={() => list.storeFilterDefaultSettings()}\n aria-label={formatter.format(\"list.filters.store\")}\n >\n <IconSave />\n </ButtonView>\n </TooltipTriggerView>\n );\n\n const resetFiltersButton = someFiltersChanged ? (\n <TooltipTrigger>\n <TooltipView>\n <Translate locales={locales}>list.filters.reset</Translate>\n </TooltipView>\n <ButtonView\n size=\"s\"\n variant=\"plain\"\n color=\"secondary\"\n onPress={() => list.resetFilters()}\n aria-label={formatter.format(\"list.filters.reset\")}\n >\n <IconUndo />\n </ButtonView>\n </TooltipTrigger>\n ) : undefined;\n\n const removeAllFiltersButton =\n activeFilters.length > 1 ? (\n <TooltipTrigger>\n <TooltipView>\n <Translate locales={locales}>list.filters.clear</Translate>\n </TooltipView>\n <ButtonView\n size=\"s\"\n variant=\"plain\"\n color=\"secondary\"\n onPress={() => list.clearFilters()}\n >\n <IconClose />\n </ButtonView>\n </TooltipTrigger>\n ) : undefined;\n\n if (\n activeFilters.length === 0 &&\n !storeFiltersButton &&\n !resetFiltersButton\n ) {\n return null;\n }\n\n return (\n <DivView className={styles.activeFilters}>\n {activeFilters}\n {storeFiltersButton}\n {resetFiltersButton}\n {removeAllFiltersButton}\n </DivView>\n );\n});\n\nexport default ActiveFilters;\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAqBO,MAAM,aAAA,GAAoB,SAAS,MAAM;AAC9C,EAAA,MAAM,OAAO,OAAA,EAAQ;AACrB,EAAA,MAAM,SAAA,GAAY,4BAA4B,OAAO,CAAA;AAErD,EAAA,MAAM,kBAAA,GAAqB,IAAA,CAAK,OAAA,CAC7B,OAAA,CAAQ,CAAC,CAAA,KAAM,CAAA,CAAE,MAAM,CAAA,CACvB,MAAA,CAAO,CAAC,CAAA,KAAM,EAAE,QAAQ,CAAA;AAE3B,EAAA,MAAM,aAAA,GAAgB,mBAAmB,GAAA,CAAI,CAAC,sBAC5C,GAAA,CAAC,SAAA,EAAA,EAAqB,SAAS,MAAM,CAAA,CAAE,YAAW,EAChD,QAAA,kBAAA,GAAA,CAAC,YAAU,QAAA,EAAA,CAAA,CAAE,MAAA,IAAS,CAAA,EAAA,EADR,CAAA,CAAE,EAElB,CACD,CAAA;AAED,EAAA,MAAM,kB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A,MAAM,sBAAA,GACJ,aAAA,CAAc,MAAA,GAAS,CAAA,wBACpB,cAAA,EAAA,EACC,QAAA,EAAA;AAAA,oBAAA,GAAA,CAAC,WAAA,EAAA,EACC,QAAA,kBAAA,GAAA,CAAC,SAAA,EAAA,EAAU,OAAA,EAAkB,gCAAkB,CAAA,EACjD,CAAA;AAAA,oBACA,GAAA;AAAA,MAAC,UAAA;AAAA,MAAA;AAAA,QACC,IAAA,EAAK,GAAA;AAAA,QACL,OAAA,EAAQ,OAAA;AAAA,QACR,KAAA,EAAM,WAAA;AAAA,QACN,OAAA,EAAS,MAAM,IAAA,CAAK,YAAA,EAAa;AAAA,QAEjC,8BAAC,SAAA,EAAA,EAAU;AAAA;AAAA;AACb,GAAA,EACF,CAAA,GACE,MAAA;AAEN,EAAA,IACE,cAAc,MAAA,KAAW,CAAA,IACzB,CAAC,kBAAA,IACD,CAAC,kBAAA,EACD;AACA,IAAA,OAAO,IAAA;AAAA,EACT;AAEA,EAAA,uBACE,IAAA,CAAC,OAAA,EAAA,EAAQ,SAAA,EAAW,MAAA,CAAO,aAAA,EACxB,QAAA,EAAA;AAAA,IAAA,aAAA;AAAA,IACA,kBAAA;AAAA,IACA,kBAAA;AAAA,IACA;AAAA,GAAA,EACH,CAAA;AAEJ,CAAC;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mittwald/flow-react-components",
3
- "version": "0.2.0-alpha.626",
3
+ "version": "0.2.0-alpha.628",
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.626",
61
+ "@mittwald/react-tunnel": "0.2.0-alpha.628",
62
62
  "@mittwald/react-use-promise": "^4.2.2",
63
63
  "@react-aria/form": "^3.1.2",
64
64
  "@react-aria/live-announcer": "^3.4.4",
@@ -103,7 +103,7 @@
103
103
  "@faker-js/faker": "^10.1.0",
104
104
  "@internationalized/date": "^3.10.0",
105
105
  "@mittwald/flow-core": "",
106
- "@mittwald/flow-design-tokens": "0.2.0-alpha.626",
106
+ "@mittwald/flow-design-tokens": "0.2.0-alpha.628",
107
107
  "@mittwald/react-use-promise": "^4.2.2",
108
108
  "@mittwald/remote-dom-react": "1.2.2-mittwald.10",
109
109
  "@mittwald/typescript-config": "",
@@ -172,5 +172,5 @@
172
172
  "optional": true
173
173
  }
174
174
  },
175
- "gitHead": "0f2bd46e071e835f7210327d2ee93069419ee604"
175
+ "gitHead": "fb8bb74e4e854a0d4a5b9b4c4dbf90e3cbef64da"
176
176
  }