@mittwald/flow-react-components 0.2.0-alpha.166 → 0.2.0-alpha.167

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,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.167](https://github.com/mittwald/flow/compare/0.2.0-alpha.166...0.2.0-alpha.167) (2025-05-06)
7
+
8
+ ### Features
9
+
10
+ * **Remote:** Allow remote navigation ([#1355](https://github.com/mittwald/flow/issues/1355)) ([351e34b](https://github.com/mittwald/flow/commit/351e34b274eb9ea6176c4f2e74804810d4b8e69a))
11
+
6
12
  # [0.2.0-alpha.166](https://github.com/mittwald/flow/compare/0.2.0-alpha.165...0.2.0-alpha.166) (2025-05-05)
7
13
 
8
14
  **Note:** Version bump only for package @mittwald/flow-react-components
@@ -30738,6 +30738,78 @@
30738
30738
  }
30739
30739
  }
30740
30740
  },
30741
+ {
30742
+ "tags": {
30743
+ "flr-generate": "all"
30744
+ },
30745
+ "filePath": "src/components/Rating/Rating.tsx",
30746
+ "description": "",
30747
+ "displayName": "Rating",
30748
+ "methods": [],
30749
+ "props": {
30750
+ "value": {
30751
+ "defaultValue": {
30752
+ "value": ": 0"
30753
+ },
30754
+ "description": "The value sets the amount of filled stars.",
30755
+ "name": "value",
30756
+ "parent": {
30757
+ "fileName": "src/components/Rating/Rating.tsx",
30758
+ "name": "RatingProps"
30759
+ },
30760
+ "declarations": [
30761
+ {
30762
+ "fileName": "src/components/Rating/Rating.tsx",
30763
+ "name": "RatingProps"
30764
+ }
30765
+ ],
30766
+ "required": false,
30767
+ "type": {
30768
+ "name": "0 | 2 | 1 | 3 | 4 | 5"
30769
+ }
30770
+ },
30771
+ "size": {
30772
+ "defaultValue": {
30773
+ "value": ": \"m\""
30774
+ },
30775
+ "description": "The size of the component.",
30776
+ "name": "size",
30777
+ "parent": {
30778
+ "fileName": "src/components/Rating/Rating.tsx",
30779
+ "name": "RatingProps"
30780
+ },
30781
+ "declarations": [
30782
+ {
30783
+ "fileName": "src/components/Rating/Rating.tsx",
30784
+ "name": "RatingProps"
30785
+ }
30786
+ ],
30787
+ "required": false,
30788
+ "type": {
30789
+ "name": "\"s\" | \"m\""
30790
+ }
30791
+ },
30792
+ "className": {
30793
+ "defaultValue": null,
30794
+ "description": "The elements class name.",
30795
+ "name": "className",
30796
+ "parent": {
30797
+ "fileName": "components/src/lib/types/props.ts",
30798
+ "name": "PropsWithClassName"
30799
+ },
30800
+ "declarations": [
30801
+ {
30802
+ "fileName": "components/src/lib/types/props.ts",
30803
+ "name": "PropsWithClassName"
30804
+ }
30805
+ ],
30806
+ "required": false,
30807
+ "type": {
30808
+ "name": "string"
30809
+ }
30810
+ }
30811
+ }
30812
+ },
30741
30813
  {
30742
30814
  "tags": {
30743
30815
  "flr-generate": "all"
@@ -31338,474 +31410,6 @@
31338
31410
  }
31339
31411
  }
31340
31412
  },
31341
- {
31342
- "tags": {
31343
- "flr-generate": "all"
31344
- },
31345
- "filePath": "src/components/Rating/Rating.tsx",
31346
- "description": "",
31347
- "displayName": "Rating",
31348
- "methods": [],
31349
- "props": {
31350
- "value": {
31351
- "defaultValue": {
31352
- "value": ": 0"
31353
- },
31354
- "description": "The value sets the amount of filled stars.",
31355
- "name": "value",
31356
- "parent": {
31357
- "fileName": "src/components/Rating/Rating.tsx",
31358
- "name": "RatingProps"
31359
- },
31360
- "declarations": [
31361
- {
31362
- "fileName": "src/components/Rating/Rating.tsx",
31363
- "name": "RatingProps"
31364
- }
31365
- ],
31366
- "required": false,
31367
- "type": {
31368
- "name": "0 | 2 | 1 | 3 | 4 | 5"
31369
- }
31370
- },
31371
- "size": {
31372
- "defaultValue": {
31373
- "value": ": \"m\""
31374
- },
31375
- "description": "The size of the component.",
31376
- "name": "size",
31377
- "parent": {
31378
- "fileName": "src/components/Rating/Rating.tsx",
31379
- "name": "RatingProps"
31380
- },
31381
- "declarations": [
31382
- {
31383
- "fileName": "src/components/Rating/Rating.tsx",
31384
- "name": "RatingProps"
31385
- }
31386
- ],
31387
- "required": false,
31388
- "type": {
31389
- "name": "\"s\" | \"m\""
31390
- }
31391
- },
31392
- "className": {
31393
- "defaultValue": null,
31394
- "description": "The elements class name.",
31395
- "name": "className",
31396
- "parent": {
31397
- "fileName": "components/src/lib/types/props.ts",
31398
- "name": "PropsWithClassName"
31399
- },
31400
- "declarations": [
31401
- {
31402
- "fileName": "components/src/lib/types/props.ts",
31403
- "name": "PropsWithClassName"
31404
- }
31405
- ],
31406
- "required": false,
31407
- "type": {
31408
- "name": "string"
31409
- }
31410
- }
31411
- }
31412
- },
31413
- {
31414
- "tags": {
31415
- "flr-generate": "all",
31416
- "flr-clear-props-context": ""
31417
- },
31418
- "filePath": "src/components/ProgressBar/ProgressBar.tsx",
31419
- "description": "",
31420
- "displayName": "ProgressBar",
31421
- "methods": [],
31422
- "props": {
31423
- "showMaxValue": {
31424
- "defaultValue": null,
31425
- "description": "Whether the max value should be displayed.",
31426
- "name": "showMaxValue",
31427
- "parent": {
31428
- "fileName": "src/components/ProgressBar/ProgressBar.tsx",
31429
- "name": "ProgressBarProps"
31430
- },
31431
- "declarations": [
31432
- {
31433
- "fileName": "src/components/ProgressBar/ProgressBar.tsx",
31434
- "name": "ProgressBarProps"
31435
- }
31436
- ],
31437
- "required": false,
31438
- "type": {
31439
- "name": "boolean"
31440
- }
31441
- },
31442
- "size": {
31443
- "defaultValue": {
31444
- "value": "\"m\""
31445
- },
31446
- "description": "The size variant of the progress bar.",
31447
- "name": "size",
31448
- "parent": {
31449
- "fileName": "src/components/ProgressBar/ProgressBar.tsx",
31450
- "name": "ProgressBarProps"
31451
- },
31452
- "declarations": [
31453
- {
31454
- "fileName": "src/components/ProgressBar/ProgressBar.tsx",
31455
- "name": "ProgressBarProps"
31456
- }
31457
- ],
31458
- "required": false,
31459
- "type": {
31460
- "name": "\"s\" | \"m\" | \"l\""
31461
- }
31462
- },
31463
- "segments": {
31464
- "defaultValue": null,
31465
- "description": "Divides the fill of the progress bar into segments",
31466
- "name": "segments",
31467
- "parent": {
31468
- "fileName": "src/components/ProgressBar/ProgressBar.tsx",
31469
- "name": "ProgressBarProps"
31470
- },
31471
- "declarations": [
31472
- {
31473
- "fileName": "src/components/ProgressBar/ProgressBar.tsx",
31474
- "name": "ProgressBarProps"
31475
- }
31476
- ],
31477
- "required": false,
31478
- "type": {
31479
- "name": "{ value: number; title: string; color?: \"sea-green\" | \"palatinate-blue\" | \"tangerine\" | \"magenta\" | \"tropical-indigo\" | \"malachite\" | \"azure\" | \"violet\" | \"yellow\" | \"alloy-orange\" | \"green\" | \"lime\"; }[]"
31480
- }
31481
- },
31482
- "showLegend": {
31483
- "defaultValue": {
31484
- "value": ":\ntrue"
31485
- },
31486
- "description": "Whether the legend component is shown when segments are used.",
31487
- "name": "showLegend",
31488
- "parent": {
31489
- "fileName": "src/components/ProgressBar/ProgressBar.tsx",
31490
- "name": "ProgressBarProps"
31491
- },
31492
- "declarations": [
31493
- {
31494
- "fileName": "src/components/ProgressBar/ProgressBar.tsx",
31495
- "name": "ProgressBarProps"
31496
- }
31497
- ],
31498
- "required": false,
31499
- "type": {
31500
- "name": "boolean"
31501
- }
31502
- },
31503
- "className": {
31504
- "defaultValue": null,
31505
- "description": "The CSS [className](https://developer.mozilla.org/en-US/docs/Web/API/Element/className) for the element. A function may be provided to compute the class based on component state.",
31506
- "name": "className",
31507
- "parent": {
31508
- "fileName": "flow/node_modules/.pnpm/react-aria-components@1.7.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-aria-components/dist/types.d.ts",
31509
- "name": "StyleRenderProps"
31510
- },
31511
- "declarations": [
31512
- {
31513
- "fileName": "flow/node_modules/.pnpm/react-aria-components@1.7.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-aria-components/dist/types.d.ts",
31514
- "name": "StyleRenderProps"
31515
- }
31516
- ],
31517
- "required": false,
31518
- "type": {
31519
- "name": "string | ((values: ProgressBarRenderProps & { defaultClassName: string; }) => string)"
31520
- }
31521
- },
31522
- "id": {
31523
- "defaultValue": null,
31524
- "description": "The element's unique identifier. See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id).",
31525
- "name": "id",
31526
- "parent": {
31527
- "fileName": "flow/node_modules/.pnpm/@react-types+shared@3.28.0_react@19.1.0/node_modules/@react-types/shared/src/dom.d.ts",
31528
- "name": "DOMProps"
31529
- },
31530
- "declarations": [
31531
- {
31532
- "fileName": "flow/node_modules/.pnpm/@react-types+shared@3.28.0_react@19.1.0/node_modules/@react-types/shared/src/dom.d.ts",
31533
- "name": "DOMProps"
31534
- }
31535
- ],
31536
- "required": false,
31537
- "type": {
31538
- "name": "string"
31539
- }
31540
- },
31541
- "style": {
31542
- "defaultValue": null,
31543
- "description": "The inline [style](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/style) for the element. A function may be provided to compute the style based on component state.",
31544
- "name": "style",
31545
- "parent": {
31546
- "fileName": "flow/node_modules/.pnpm/react-aria-components@1.7.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-aria-components/dist/types.d.ts",
31547
- "name": "StyleRenderProps"
31548
- },
31549
- "declarations": [
31550
- {
31551
- "fileName": "flow/node_modules/.pnpm/react-aria-components@1.7.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-aria-components/dist/types.d.ts",
31552
- "name": "StyleRenderProps"
31553
- }
31554
- ],
31555
- "required": false,
31556
- "type": {
31557
- "name": "CSSProperties | ((values: ProgressBarRenderProps & { defaultStyle: CSSProperties; }) => CSSProperties)"
31558
- }
31559
- },
31560
- "aria-describedby": {
31561
- "defaultValue": null,
31562
- "description": "Identifies the element (or elements) that describes the object.",
31563
- "name": "aria-describedby",
31564
- "parent": {
31565
- "fileName": "flow/node_modules/.pnpm/@react-types+shared@3.28.0_react@19.1.0/node_modules/@react-types/shared/src/dom.d.ts",
31566
- "name": "AriaLabelingProps"
31567
- },
31568
- "declarations": [
31569
- {
31570
- "fileName": "flow/node_modules/.pnpm/@react-types+shared@3.28.0_react@19.1.0/node_modules/@react-types/shared/src/dom.d.ts",
31571
- "name": "AriaLabelingProps"
31572
- }
31573
- ],
31574
- "required": false,
31575
- "type": {
31576
- "name": "string"
31577
- }
31578
- },
31579
- "aria-details": {
31580
- "defaultValue": null,
31581
- "description": "Identifies the element (or elements) that provide a detailed, extended description for the object.",
31582
- "name": "aria-details",
31583
- "parent": {
31584
- "fileName": "flow/node_modules/.pnpm/@react-types+shared@3.28.0_react@19.1.0/node_modules/@react-types/shared/src/dom.d.ts",
31585
- "name": "AriaLabelingProps"
31586
- },
31587
- "declarations": [
31588
- {
31589
- "fileName": "flow/node_modules/.pnpm/@react-types+shared@3.28.0_react@19.1.0/node_modules/@react-types/shared/src/dom.d.ts",
31590
- "name": "AriaLabelingProps"
31591
- }
31592
- ],
31593
- "required": false,
31594
- "type": {
31595
- "name": "string"
31596
- }
31597
- },
31598
- "aria-label": {
31599
- "defaultValue": null,
31600
- "description": "Defines a string value that labels the current element.",
31601
- "name": "aria-label",
31602
- "parent": {
31603
- "fileName": "flow/node_modules/.pnpm/@react-types+shared@3.28.0_react@19.1.0/node_modules/@react-types/shared/src/dom.d.ts",
31604
- "name": "AriaLabelingProps"
31605
- },
31606
- "declarations": [
31607
- {
31608
- "fileName": "flow/node_modules/.pnpm/@react-types+shared@3.28.0_react@19.1.0/node_modules/@react-types/shared/src/dom.d.ts",
31609
- "name": "AriaLabelingProps"
31610
- }
31611
- ],
31612
- "required": false,
31613
- "type": {
31614
- "name": "string"
31615
- }
31616
- },
31617
- "aria-labelledby": {
31618
- "defaultValue": null,
31619
- "description": "Identifies the element (or elements) that labels the current element.",
31620
- "name": "aria-labelledby",
31621
- "parent": {
31622
- "fileName": "flow/node_modules/.pnpm/@react-types+shared@3.28.0_react@19.1.0/node_modules/@react-types/shared/src/dom.d.ts",
31623
- "name": "AriaLabelingProps"
31624
- },
31625
- "declarations": [
31626
- {
31627
- "fileName": "flow/node_modules/.pnpm/@react-types+shared@3.28.0_react@19.1.0/node_modules/@react-types/shared/src/dom.d.ts",
31628
- "name": "AriaLabelingProps"
31629
- }
31630
- ],
31631
- "required": false,
31632
- "type": {
31633
- "name": "string"
31634
- }
31635
- },
31636
- "minValue": {
31637
- "defaultValue": {
31638
- "value": "0"
31639
- },
31640
- "description": "The smallest value allowed for the input.",
31641
- "name": "minValue",
31642
- "parent": {
31643
- "fileName": "flow/node_modules/.pnpm/@react-types+progress@3.5.10_react@19.1.0/node_modules/@react-types/progress/src/index.d.ts",
31644
- "name": "ProgressBaseProps"
31645
- },
31646
- "declarations": [
31647
- {
31648
- "fileName": "flow/node_modules/.pnpm/@react-types+progress@3.5.10_react@19.1.0/node_modules/@react-types/progress/src/index.d.ts",
31649
- "name": "ProgressBaseProps"
31650
- }
31651
- ],
31652
- "required": false,
31653
- "type": {
31654
- "name": "number"
31655
- }
31656
- },
31657
- "maxValue": {
31658
- "defaultValue": {
31659
- "value": "100"
31660
- },
31661
- "description": "The largest value allowed for the input.",
31662
- "name": "maxValue",
31663
- "parent": {
31664
- "fileName": "flow/node_modules/.pnpm/@react-types+progress@3.5.10_react@19.1.0/node_modules/@react-types/progress/src/index.d.ts",
31665
- "name": "ProgressBaseProps"
31666
- },
31667
- "declarations": [
31668
- {
31669
- "fileName": "flow/node_modules/.pnpm/@react-types+progress@3.5.10_react@19.1.0/node_modules/@react-types/progress/src/index.d.ts",
31670
- "name": "ProgressBaseProps"
31671
- }
31672
- ],
31673
- "required": false,
31674
- "type": {
31675
- "name": "number"
31676
- }
31677
- },
31678
- "value": {
31679
- "defaultValue": {
31680
- "value": "0"
31681
- },
31682
- "description": "The current value (controlled).",
31683
- "name": "value",
31684
- "parent": {
31685
- "fileName": "flow/node_modules/.pnpm/@react-types+progress@3.5.10_react@19.1.0/node_modules/@react-types/progress/src/index.d.ts",
31686
- "name": "ProgressBaseProps"
31687
- },
31688
- "declarations": [
31689
- {
31690
- "fileName": "flow/node_modules/.pnpm/@react-types+progress@3.5.10_react@19.1.0/node_modules/@react-types/progress/src/index.d.ts",
31691
- "name": "ProgressBaseProps"
31692
- }
31693
- ],
31694
- "required": false,
31695
- "type": {
31696
- "name": "number"
31697
- }
31698
- },
31699
- "slot": {
31700
- "defaultValue": null,
31701
- "description": "A slot name for the component. Slots allow the component to receive props from a parent component.\nAn explicit `null` value indicates that the local props completely override all props received from a parent.",
31702
- "name": "slot",
31703
- "parent": {
31704
- "fileName": "flow/node_modules/.pnpm/react-aria-components@1.7.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-aria-components/dist/types.d.ts",
31705
- "name": "SlotProps"
31706
- },
31707
- "declarations": [
31708
- {
31709
- "fileName": "flow/node_modules/.pnpm/react-aria-components@1.7.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-aria-components/dist/types.d.ts",
31710
- "name": "SlotProps"
31711
- }
31712
- ],
31713
- "required": false,
31714
- "type": {
31715
- "name": "string | null"
31716
- }
31717
- },
31718
- "formatOptions": {
31719
- "defaultValue": {
31720
- "value": "{style: 'percent'}"
31721
- },
31722
- "description": "The display format of the value label.",
31723
- "name": "formatOptions",
31724
- "parent": {
31725
- "fileName": "flow/node_modules/.pnpm/@react-types+progress@3.5.10_react@19.1.0/node_modules/@react-types/progress/src/index.d.ts",
31726
- "name": "ProgressBarBaseProps"
31727
- },
31728
- "declarations": [
31729
- {
31730
- "fileName": "flow/node_modules/.pnpm/@react-types+progress@3.5.10_react@19.1.0/node_modules/@react-types/progress/src/index.d.ts",
31731
- "name": "ProgressBarBaseProps"
31732
- }
31733
- ],
31734
- "required": false,
31735
- "type": {
31736
- "name": "NumberFormatOptions"
31737
- }
31738
- },
31739
- "isIndeterminate": {
31740
- "defaultValue": null,
31741
- "description": "Whether presentation is indeterminate when progress isn't known.",
31742
- "name": "isIndeterminate",
31743
- "parent": {
31744
- "fileName": "flow/node_modules/.pnpm/@react-types+progress@3.5.10_react@19.1.0/node_modules/@react-types/progress/src/index.d.ts",
31745
- "name": "ProgressBarProps"
31746
- },
31747
- "declarations": [
31748
- {
31749
- "fileName": "flow/node_modules/.pnpm/@react-types+progress@3.5.10_react@19.1.0/node_modules/@react-types/progress/src/index.d.ts",
31750
- "name": "ProgressBarProps"
31751
- }
31752
- ],
31753
- "required": false,
31754
- "type": {
31755
- "name": "boolean"
31756
- }
31757
- },
31758
- "valueLabel": {
31759
- "defaultValue": null,
31760
- "description": "The content to display as the value's label (e.g. 1 of 4).",
31761
- "name": "valueLabel",
31762
- "parent": {
31763
- "fileName": "flow/node_modules/.pnpm/@react-types+progress@3.5.10_react@19.1.0/node_modules/@react-types/progress/src/index.d.ts",
31764
- "name": "ProgressBarBaseProps"
31765
- },
31766
- "declarations": [
31767
- {
31768
- "fileName": "flow/node_modules/.pnpm/@react-types+progress@3.5.10_react@19.1.0/node_modules/@react-types/progress/src/index.d.ts",
31769
- "name": "ProgressBarBaseProps"
31770
- }
31771
- ],
31772
- "required": false,
31773
- "type": {
31774
- "name": "ReactNode"
31775
- }
31776
- },
31777
- "children": {
31778
- "defaultValue": null,
31779
- "description": "",
31780
- "name": "children",
31781
- "declarations": [
31782
- {
31783
- "fileName": "flow/node_modules/.pnpm/@types+react@19.0.10/node_modules/@types/react/index.d.ts",
31784
- "name": "TypeLiteral"
31785
- }
31786
- ],
31787
- "required": false,
31788
- "type": {
31789
- "name": "ReactNode"
31790
- }
31791
- },
31792
- "status": {
31793
- "defaultValue": null,
31794
- "description": "The elements status",
31795
- "name": "status",
31796
- "declarations": [
31797
- {
31798
- "fileName": "components/src/lib/types/props.ts",
31799
- "name": "TypeLiteral"
31800
- }
31801
- ],
31802
- "required": false,
31803
- "type": {
31804
- "name": "Status"
31805
- }
31806
- }
31807
- }
31808
- },
31809
31413
  {
31810
31414
  "tags": {},
31811
31415
  "filePath": "/home/runner/work/flow/flow/packages/components/src/components/Popover/Popover.tsx",
@@ -32557,6 +32161,402 @@
32557
32161
  }
32558
32162
  }
32559
32163
  },
32164
+ {
32165
+ "tags": {
32166
+ "flr-generate": "all",
32167
+ "flr-clear-props-context": ""
32168
+ },
32169
+ "filePath": "src/components/ProgressBar/ProgressBar.tsx",
32170
+ "description": "",
32171
+ "displayName": "ProgressBar",
32172
+ "methods": [],
32173
+ "props": {
32174
+ "showMaxValue": {
32175
+ "defaultValue": null,
32176
+ "description": "Whether the max value should be displayed.",
32177
+ "name": "showMaxValue",
32178
+ "parent": {
32179
+ "fileName": "src/components/ProgressBar/ProgressBar.tsx",
32180
+ "name": "ProgressBarProps"
32181
+ },
32182
+ "declarations": [
32183
+ {
32184
+ "fileName": "src/components/ProgressBar/ProgressBar.tsx",
32185
+ "name": "ProgressBarProps"
32186
+ }
32187
+ ],
32188
+ "required": false,
32189
+ "type": {
32190
+ "name": "boolean"
32191
+ }
32192
+ },
32193
+ "size": {
32194
+ "defaultValue": {
32195
+ "value": "\"m\""
32196
+ },
32197
+ "description": "The size variant of the progress bar.",
32198
+ "name": "size",
32199
+ "parent": {
32200
+ "fileName": "src/components/ProgressBar/ProgressBar.tsx",
32201
+ "name": "ProgressBarProps"
32202
+ },
32203
+ "declarations": [
32204
+ {
32205
+ "fileName": "src/components/ProgressBar/ProgressBar.tsx",
32206
+ "name": "ProgressBarProps"
32207
+ }
32208
+ ],
32209
+ "required": false,
32210
+ "type": {
32211
+ "name": "\"s\" | \"m\" | \"l\""
32212
+ }
32213
+ },
32214
+ "segments": {
32215
+ "defaultValue": null,
32216
+ "description": "Divides the fill of the progress bar into segments",
32217
+ "name": "segments",
32218
+ "parent": {
32219
+ "fileName": "src/components/ProgressBar/ProgressBar.tsx",
32220
+ "name": "ProgressBarProps"
32221
+ },
32222
+ "declarations": [
32223
+ {
32224
+ "fileName": "src/components/ProgressBar/ProgressBar.tsx",
32225
+ "name": "ProgressBarProps"
32226
+ }
32227
+ ],
32228
+ "required": false,
32229
+ "type": {
32230
+ "name": "{ value: number; title: string; color?: \"sea-green\" | \"palatinate-blue\" | \"tangerine\" | \"magenta\" | \"tropical-indigo\" | \"malachite\" | \"azure\" | \"violet\" | \"yellow\" | \"alloy-orange\" | \"green\" | \"lime\"; }[]"
32231
+ }
32232
+ },
32233
+ "showLegend": {
32234
+ "defaultValue": {
32235
+ "value": ":\ntrue"
32236
+ },
32237
+ "description": "Whether the legend component is shown when segments are used.",
32238
+ "name": "showLegend",
32239
+ "parent": {
32240
+ "fileName": "src/components/ProgressBar/ProgressBar.tsx",
32241
+ "name": "ProgressBarProps"
32242
+ },
32243
+ "declarations": [
32244
+ {
32245
+ "fileName": "src/components/ProgressBar/ProgressBar.tsx",
32246
+ "name": "ProgressBarProps"
32247
+ }
32248
+ ],
32249
+ "required": false,
32250
+ "type": {
32251
+ "name": "boolean"
32252
+ }
32253
+ },
32254
+ "className": {
32255
+ "defaultValue": null,
32256
+ "description": "The CSS [className](https://developer.mozilla.org/en-US/docs/Web/API/Element/className) for the element. A function may be provided to compute the class based on component state.",
32257
+ "name": "className",
32258
+ "parent": {
32259
+ "fileName": "flow/node_modules/.pnpm/react-aria-components@1.7.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-aria-components/dist/types.d.ts",
32260
+ "name": "StyleRenderProps"
32261
+ },
32262
+ "declarations": [
32263
+ {
32264
+ "fileName": "flow/node_modules/.pnpm/react-aria-components@1.7.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-aria-components/dist/types.d.ts",
32265
+ "name": "StyleRenderProps"
32266
+ }
32267
+ ],
32268
+ "required": false,
32269
+ "type": {
32270
+ "name": "string | ((values: ProgressBarRenderProps & { defaultClassName: string; }) => string)"
32271
+ }
32272
+ },
32273
+ "id": {
32274
+ "defaultValue": null,
32275
+ "description": "The element's unique identifier. See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id).",
32276
+ "name": "id",
32277
+ "parent": {
32278
+ "fileName": "flow/node_modules/.pnpm/@react-types+shared@3.28.0_react@19.1.0/node_modules/@react-types/shared/src/dom.d.ts",
32279
+ "name": "DOMProps"
32280
+ },
32281
+ "declarations": [
32282
+ {
32283
+ "fileName": "flow/node_modules/.pnpm/@react-types+shared@3.28.0_react@19.1.0/node_modules/@react-types/shared/src/dom.d.ts",
32284
+ "name": "DOMProps"
32285
+ }
32286
+ ],
32287
+ "required": false,
32288
+ "type": {
32289
+ "name": "string"
32290
+ }
32291
+ },
32292
+ "style": {
32293
+ "defaultValue": null,
32294
+ "description": "The inline [style](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/style) for the element. A function may be provided to compute the style based on component state.",
32295
+ "name": "style",
32296
+ "parent": {
32297
+ "fileName": "flow/node_modules/.pnpm/react-aria-components@1.7.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-aria-components/dist/types.d.ts",
32298
+ "name": "StyleRenderProps"
32299
+ },
32300
+ "declarations": [
32301
+ {
32302
+ "fileName": "flow/node_modules/.pnpm/react-aria-components@1.7.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-aria-components/dist/types.d.ts",
32303
+ "name": "StyleRenderProps"
32304
+ }
32305
+ ],
32306
+ "required": false,
32307
+ "type": {
32308
+ "name": "CSSProperties | ((values: ProgressBarRenderProps & { defaultStyle: CSSProperties; }) => CSSProperties)"
32309
+ }
32310
+ },
32311
+ "aria-describedby": {
32312
+ "defaultValue": null,
32313
+ "description": "Identifies the element (or elements) that describes the object.",
32314
+ "name": "aria-describedby",
32315
+ "parent": {
32316
+ "fileName": "flow/node_modules/.pnpm/@react-types+shared@3.28.0_react@19.1.0/node_modules/@react-types/shared/src/dom.d.ts",
32317
+ "name": "AriaLabelingProps"
32318
+ },
32319
+ "declarations": [
32320
+ {
32321
+ "fileName": "flow/node_modules/.pnpm/@react-types+shared@3.28.0_react@19.1.0/node_modules/@react-types/shared/src/dom.d.ts",
32322
+ "name": "AriaLabelingProps"
32323
+ }
32324
+ ],
32325
+ "required": false,
32326
+ "type": {
32327
+ "name": "string"
32328
+ }
32329
+ },
32330
+ "aria-details": {
32331
+ "defaultValue": null,
32332
+ "description": "Identifies the element (or elements) that provide a detailed, extended description for the object.",
32333
+ "name": "aria-details",
32334
+ "parent": {
32335
+ "fileName": "flow/node_modules/.pnpm/@react-types+shared@3.28.0_react@19.1.0/node_modules/@react-types/shared/src/dom.d.ts",
32336
+ "name": "AriaLabelingProps"
32337
+ },
32338
+ "declarations": [
32339
+ {
32340
+ "fileName": "flow/node_modules/.pnpm/@react-types+shared@3.28.0_react@19.1.0/node_modules/@react-types/shared/src/dom.d.ts",
32341
+ "name": "AriaLabelingProps"
32342
+ }
32343
+ ],
32344
+ "required": false,
32345
+ "type": {
32346
+ "name": "string"
32347
+ }
32348
+ },
32349
+ "aria-label": {
32350
+ "defaultValue": null,
32351
+ "description": "Defines a string value that labels the current element.",
32352
+ "name": "aria-label",
32353
+ "parent": {
32354
+ "fileName": "flow/node_modules/.pnpm/@react-types+shared@3.28.0_react@19.1.0/node_modules/@react-types/shared/src/dom.d.ts",
32355
+ "name": "AriaLabelingProps"
32356
+ },
32357
+ "declarations": [
32358
+ {
32359
+ "fileName": "flow/node_modules/.pnpm/@react-types+shared@3.28.0_react@19.1.0/node_modules/@react-types/shared/src/dom.d.ts",
32360
+ "name": "AriaLabelingProps"
32361
+ }
32362
+ ],
32363
+ "required": false,
32364
+ "type": {
32365
+ "name": "string"
32366
+ }
32367
+ },
32368
+ "aria-labelledby": {
32369
+ "defaultValue": null,
32370
+ "description": "Identifies the element (or elements) that labels the current element.",
32371
+ "name": "aria-labelledby",
32372
+ "parent": {
32373
+ "fileName": "flow/node_modules/.pnpm/@react-types+shared@3.28.0_react@19.1.0/node_modules/@react-types/shared/src/dom.d.ts",
32374
+ "name": "AriaLabelingProps"
32375
+ },
32376
+ "declarations": [
32377
+ {
32378
+ "fileName": "flow/node_modules/.pnpm/@react-types+shared@3.28.0_react@19.1.0/node_modules/@react-types/shared/src/dom.d.ts",
32379
+ "name": "AriaLabelingProps"
32380
+ }
32381
+ ],
32382
+ "required": false,
32383
+ "type": {
32384
+ "name": "string"
32385
+ }
32386
+ },
32387
+ "minValue": {
32388
+ "defaultValue": {
32389
+ "value": "0"
32390
+ },
32391
+ "description": "The smallest value allowed for the input.",
32392
+ "name": "minValue",
32393
+ "parent": {
32394
+ "fileName": "flow/node_modules/.pnpm/@react-types+progress@3.5.10_react@19.1.0/node_modules/@react-types/progress/src/index.d.ts",
32395
+ "name": "ProgressBaseProps"
32396
+ },
32397
+ "declarations": [
32398
+ {
32399
+ "fileName": "flow/node_modules/.pnpm/@react-types+progress@3.5.10_react@19.1.0/node_modules/@react-types/progress/src/index.d.ts",
32400
+ "name": "ProgressBaseProps"
32401
+ }
32402
+ ],
32403
+ "required": false,
32404
+ "type": {
32405
+ "name": "number"
32406
+ }
32407
+ },
32408
+ "maxValue": {
32409
+ "defaultValue": {
32410
+ "value": "100"
32411
+ },
32412
+ "description": "The largest value allowed for the input.",
32413
+ "name": "maxValue",
32414
+ "parent": {
32415
+ "fileName": "flow/node_modules/.pnpm/@react-types+progress@3.5.10_react@19.1.0/node_modules/@react-types/progress/src/index.d.ts",
32416
+ "name": "ProgressBaseProps"
32417
+ },
32418
+ "declarations": [
32419
+ {
32420
+ "fileName": "flow/node_modules/.pnpm/@react-types+progress@3.5.10_react@19.1.0/node_modules/@react-types/progress/src/index.d.ts",
32421
+ "name": "ProgressBaseProps"
32422
+ }
32423
+ ],
32424
+ "required": false,
32425
+ "type": {
32426
+ "name": "number"
32427
+ }
32428
+ },
32429
+ "value": {
32430
+ "defaultValue": {
32431
+ "value": "0"
32432
+ },
32433
+ "description": "The current value (controlled).",
32434
+ "name": "value",
32435
+ "parent": {
32436
+ "fileName": "flow/node_modules/.pnpm/@react-types+progress@3.5.10_react@19.1.0/node_modules/@react-types/progress/src/index.d.ts",
32437
+ "name": "ProgressBaseProps"
32438
+ },
32439
+ "declarations": [
32440
+ {
32441
+ "fileName": "flow/node_modules/.pnpm/@react-types+progress@3.5.10_react@19.1.0/node_modules/@react-types/progress/src/index.d.ts",
32442
+ "name": "ProgressBaseProps"
32443
+ }
32444
+ ],
32445
+ "required": false,
32446
+ "type": {
32447
+ "name": "number"
32448
+ }
32449
+ },
32450
+ "slot": {
32451
+ "defaultValue": null,
32452
+ "description": "A slot name for the component. Slots allow the component to receive props from a parent component.\nAn explicit `null` value indicates that the local props completely override all props received from a parent.",
32453
+ "name": "slot",
32454
+ "parent": {
32455
+ "fileName": "flow/node_modules/.pnpm/react-aria-components@1.7.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-aria-components/dist/types.d.ts",
32456
+ "name": "SlotProps"
32457
+ },
32458
+ "declarations": [
32459
+ {
32460
+ "fileName": "flow/node_modules/.pnpm/react-aria-components@1.7.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-aria-components/dist/types.d.ts",
32461
+ "name": "SlotProps"
32462
+ }
32463
+ ],
32464
+ "required": false,
32465
+ "type": {
32466
+ "name": "string | null"
32467
+ }
32468
+ },
32469
+ "formatOptions": {
32470
+ "defaultValue": {
32471
+ "value": "{style: 'percent'}"
32472
+ },
32473
+ "description": "The display format of the value label.",
32474
+ "name": "formatOptions",
32475
+ "parent": {
32476
+ "fileName": "flow/node_modules/.pnpm/@react-types+progress@3.5.10_react@19.1.0/node_modules/@react-types/progress/src/index.d.ts",
32477
+ "name": "ProgressBarBaseProps"
32478
+ },
32479
+ "declarations": [
32480
+ {
32481
+ "fileName": "flow/node_modules/.pnpm/@react-types+progress@3.5.10_react@19.1.0/node_modules/@react-types/progress/src/index.d.ts",
32482
+ "name": "ProgressBarBaseProps"
32483
+ }
32484
+ ],
32485
+ "required": false,
32486
+ "type": {
32487
+ "name": "NumberFormatOptions"
32488
+ }
32489
+ },
32490
+ "isIndeterminate": {
32491
+ "defaultValue": null,
32492
+ "description": "Whether presentation is indeterminate when progress isn't known.",
32493
+ "name": "isIndeterminate",
32494
+ "parent": {
32495
+ "fileName": "flow/node_modules/.pnpm/@react-types+progress@3.5.10_react@19.1.0/node_modules/@react-types/progress/src/index.d.ts",
32496
+ "name": "ProgressBarProps"
32497
+ },
32498
+ "declarations": [
32499
+ {
32500
+ "fileName": "flow/node_modules/.pnpm/@react-types+progress@3.5.10_react@19.1.0/node_modules/@react-types/progress/src/index.d.ts",
32501
+ "name": "ProgressBarProps"
32502
+ }
32503
+ ],
32504
+ "required": false,
32505
+ "type": {
32506
+ "name": "boolean"
32507
+ }
32508
+ },
32509
+ "valueLabel": {
32510
+ "defaultValue": null,
32511
+ "description": "The content to display as the value's label (e.g. 1 of 4).",
32512
+ "name": "valueLabel",
32513
+ "parent": {
32514
+ "fileName": "flow/node_modules/.pnpm/@react-types+progress@3.5.10_react@19.1.0/node_modules/@react-types/progress/src/index.d.ts",
32515
+ "name": "ProgressBarBaseProps"
32516
+ },
32517
+ "declarations": [
32518
+ {
32519
+ "fileName": "flow/node_modules/.pnpm/@react-types+progress@3.5.10_react@19.1.0/node_modules/@react-types/progress/src/index.d.ts",
32520
+ "name": "ProgressBarBaseProps"
32521
+ }
32522
+ ],
32523
+ "required": false,
32524
+ "type": {
32525
+ "name": "ReactNode"
32526
+ }
32527
+ },
32528
+ "children": {
32529
+ "defaultValue": null,
32530
+ "description": "",
32531
+ "name": "children",
32532
+ "declarations": [
32533
+ {
32534
+ "fileName": "flow/node_modules/.pnpm/@types+react@19.0.10/node_modules/@types/react/index.d.ts",
32535
+ "name": "TypeLiteral"
32536
+ }
32537
+ ],
32538
+ "required": false,
32539
+ "type": {
32540
+ "name": "ReactNode"
32541
+ }
32542
+ },
32543
+ "status": {
32544
+ "defaultValue": null,
32545
+ "description": "The elements status",
32546
+ "name": "status",
32547
+ "declarations": [
32548
+ {
32549
+ "fileName": "components/src/lib/types/props.ts",
32550
+ "name": "TypeLiteral"
32551
+ }
32552
+ ],
32553
+ "required": false,
32554
+ "type": {
32555
+ "name": "Status"
32556
+ }
32557
+ }
32558
+ }
32559
+ },
32560
32560
  {
32561
32561
  "tags": {},
32562
32562
  "filePath": "/home/runner/work/flow/flow/packages/components/src/components/OverlayTrigger/OverlayTrigger.tsx",
@@ -146344,27 +146344,6 @@
146344
146344
  "name": "OverlayController"
146345
146345
  }
146346
146346
  },
146347
- "padding": {
146348
- "defaultValue": {
146349
- "value": "\"m\""
146350
- },
146351
- "description": "The popovers padding.",
146352
- "name": "padding",
146353
- "parent": {
146354
- "fileName": "components/src/components/Popover/Popover.tsx",
146355
- "name": "PopoverProps"
146356
- },
146357
- "declarations": [
146358
- {
146359
- "fileName": "components/src/components/Popover/Popover.tsx",
146360
- "name": "PopoverProps"
146361
- }
146362
- ],
146363
- "required": false,
146364
- "type": {
146365
- "name": "\"s\" | \"m\""
146366
- }
146367
- },
146368
146347
  "boundaryElement": {
146369
146348
  "defaultValue": {
146370
146349
  "value": "document.body"
@@ -146543,6 +146522,27 @@
146543
146522
  "type": {
146544
146523
  "name": "boolean"
146545
146524
  }
146525
+ },
146526
+ "padding": {
146527
+ "defaultValue": {
146528
+ "value": "\"m\""
146529
+ },
146530
+ "description": "The popovers padding.",
146531
+ "name": "padding",
146532
+ "parent": {
146533
+ "fileName": "components/src/components/Popover/Popover.tsx",
146534
+ "name": "PopoverProps"
146535
+ },
146536
+ "declarations": [
146537
+ {
146538
+ "fileName": "components/src/components/Popover/Popover.tsx",
146539
+ "name": "PopoverProps"
146540
+ }
146541
+ ],
146542
+ "required": false,
146543
+ "type": {
146544
+ "name": "\"s\" | \"m\""
146545
+ }
146546
146546
  }
146547
146547
  }
146548
146548
  },
@@ -147103,27 +147103,6 @@
147103
147103
  "name": "OverlayController"
147104
147104
  }
147105
147105
  },
147106
- "padding": {
147107
- "defaultValue": {
147108
- "value": "\"m\""
147109
- },
147110
- "description": "The popovers padding.",
147111
- "name": "padding",
147112
- "parent": {
147113
- "fileName": "components/src/components/Popover/Popover.tsx",
147114
- "name": "PopoverProps"
147115
- },
147116
- "declarations": [
147117
- {
147118
- "fileName": "components/src/components/Popover/Popover.tsx",
147119
- "name": "PopoverProps"
147120
- }
147121
- ],
147122
- "required": false,
147123
- "type": {
147124
- "name": "\"s\" | \"m\""
147125
- }
147126
- },
147127
147106
  "boundaryElement": {
147128
147107
  "defaultValue": {
147129
147108
  "value": "document.body"
@@ -147303,6 +147282,27 @@
147303
147282
  "name": "boolean"
147304
147283
  }
147305
147284
  },
147285
+ "padding": {
147286
+ "defaultValue": {
147287
+ "value": "\"m\""
147288
+ },
147289
+ "description": "The popovers padding.",
147290
+ "name": "padding",
147291
+ "parent": {
147292
+ "fileName": "components/src/components/Popover/Popover.tsx",
147293
+ "name": "PopoverProps"
147294
+ },
147295
+ "declarations": [
147296
+ {
147297
+ "fileName": "components/src/components/Popover/Popover.tsx",
147298
+ "name": "PopoverProps"
147299
+ }
147300
+ ],
147301
+ "required": false,
147302
+ "type": {
147303
+ "name": "\"s\" | \"m\""
147304
+ }
147305
+ },
147306
147306
  "onSelectionChange": {
147307
147307
  "defaultValue": null,
147308
147308
  "description": "Handler that is called when the selection changes.",
@@ -1 +1 @@
1
- {"version":3,"file":"FileField.mjs","sources":["../../../../../../src/components/FileField/FileField.tsx"],"sourcesContent":["import formFieldStyles from \"@/components/FormField/FormField.module.scss\";\nimport { useFormValidation } from \"@react-aria/form\";\nimport { useFormValidationState } from \"@react-stately/form\";\nimport type { PropsWithChildren } from \"react\";\nimport React, { useMemo, useRef } from \"react\";\nimport type * as Aria from \"react-aria-components\";\nimport { FieldErrorContext, InputContext } from \"react-aria-components\";\nimport type { FileInputOnChangeHandler } from \"@/components/FileField/components/FileInput\";\nimport { FileInput } from \"@/components/FileField/components/FileInput\";\nimport type { FlowComponentProps } from \"@/lib/componentFactory/flowComponent\";\nimport { flowComponent } from \"@/lib/componentFactory/flowComponent\";\nimport type { PropsContext } from \"@/lib/propsContext\";\nimport { PropsContextProvider } from \"@/lib/propsContext\";\n\nexport interface FileFieldProps\n extends PropsWithChildren,\n FlowComponentProps<HTMLInputElement>,\n Pick<Aria.InputProps, \"accept\" | \"multiple\" | \"name\">,\n Pick<\n Aria.TextFieldProps,\n \"isRequired\" | \"isInvalid\" | \"validationBehavior\" | \"isDisabled\"\n > {\n /** Handler that is called when the file input changes. */\n onChange?: FileInputOnChangeHandler;\n}\n\n/**\n * @flr-generate all\n * @flr-clear-props-context\n */\nexport const FileField = flowComponent(\"FileField\", (props) => {\n const {\n children,\n ref,\n isRequired,\n isInvalid,\n isDisabled,\n validationBehavior,\n onChange,\n ...restInputProps\n } = props;\n const inputRef = useRef<HTMLInputElement>(null);\n\n const formValidationState = useFormValidationState({\n value: undefined,\n validationBehavior,\n isInvalid,\n });\n\n useFormValidation({ validationBehavior }, formValidationState, inputRef);\n\n const inputProps = useMemo(\n () => ({\n ...restInputProps,\n ref: inputRef,\n \"aria-invalid\": formValidationState.displayValidation.isInvalid,\n value: undefined,\n }),\n [formValidationState, isRequired, ...Object.values(restInputProps)],\n );\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 <InputContext.Provider value={inputProps}>\n <FieldErrorContext.Provider value={formValidationState.displayValidation}>\n <PropsContextProvider props={propsContext}>\n <div\n data-required={!!isRequired || undefined}\n data-invalid={\n formValidationState.displayValidation.isInvalid || undefined\n }\n className={formFieldStyles.formField}\n >\n <FileInput ref={ref} onChange={onChange} isDisabled={isDisabled}>\n {children}\n </FileInput>\n </div>\n </PropsContextProvider>\n </FieldErrorContext.Provider>\n </InputContext.Provider>\n );\n});\nexport default FileField;\n"],"names":[],"mappings":";;;;;;;;;;;;AA8BO,MAAM,SAAY,GAAA,aAAA,CAAc,WAAa,EAAA,CAAC,KAAU,KAAA;AAC7D,EAAM,MAAA;AAAA,IACJ,QAAA;AAAA,IACA,GAAA;AAAA,IACA,UAAA;AAAA,IACA,SAAA;AAAA,IACA,UAAA;AAAA,IACA,kBAAA;AAAA,IACA,QAAA;AAAA,IACA,GAAG;AAAA,GACD,GAAA,KAAA;AACJ,EAAM,MAAA,QAAA,GAAW,OAAyB,IAAI,CAAA;AAE9C,EAAA,MAAM,sBAAsB,sBAAuB,CAAA;AAAA,IACjD,KAAO,EAAA,MAAA;AAAA,IACP,kBAAA;AAAA,IACA;AAAA,GACD,CAAA;AAED,EAAA,iBAAA,CAAkB,EAAE,kBAAA,EAAsB,EAAA,mBAAA,EAAqB,QAAQ,CAAA;AAEvE,EAAA,MAAM,UAAa,GAAA,OAAA;AAAA,IACjB,OAAO;AAAA,MACL,GAAG,cAAA;AAAA,MACH,GAAK,EAAA,QAAA;AAAA,MACL,cAAA,EAAgB,oBAAoB,iBAAkB,CAAA,SAAA;AAAA,MACtD,KAAO,EAAA;AAAA,KACT,CAAA;AAAA,IACA,CAAC,mBAAqB,EAAA,UAAA,EAAY,GAAG,MAAO,CAAA,MAAA,CAAO,cAAc,CAAC;AAAA,GACpE;AAEA,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,YAAa,CAAA,QAAA,EAAb,EAAsB,KAAA,EAAO,YAC5B,QAAC,kBAAA,GAAA,CAAA,iBAAA,CAAkB,QAAlB,EAAA,EAA2B,OAAO,mBAAoB,CAAA,iBAAA,EACrD,QAAC,kBAAA,GAAA,CAAA,oBAAA,EAAA,EAAqB,OAAO,YAC3B,EAAA,QAAA,kBAAA,GAAA;AAAA,IAAC,KAAA;AAAA,IAAA;AAAA,MACC,eAAA,EAAe,CAAC,CAAC,UAAc,IAAA,MAAA;AAAA,MAC/B,cAAA,EACE,mBAAoB,CAAA,iBAAA,CAAkB,SAAa,IAAA,MAAA;AAAA,MAErD,WAAW,eAAgB,CAAA,SAAA;AAAA,MAE3B,QAAC,kBAAA,GAAA,CAAA,SAAA,EAAA,EAAU,GAAU,EAAA,QAAA,EAAoB,YACtC,QACH,EAAA;AAAA;AAAA,GACF,EACF,GACF,CACF,EAAA,CAAA;AAEJ,CAAC;;;;"}
1
+ {"version":3,"file":"FileField.mjs","sources":["../../../../../../src/components/FileField/FileField.tsx"],"sourcesContent":["import formFieldStyles from \"@/components/FormField/FormField.module.scss\";\nimport { useFormValidation } from \"@react-aria/form\";\nimport { useFormValidationState } from \"@react-stately/form\";\nimport type { PropsWithChildren } from \"react\";\nimport { useMemo, useRef } from \"react\";\nimport type * as Aria from \"react-aria-components\";\nimport { FieldErrorContext, InputContext } from \"react-aria-components\";\nimport type { FileInputOnChangeHandler } from \"@/components/FileField/components/FileInput\";\nimport { FileInput } from \"@/components/FileField/components/FileInput\";\nimport type { FlowComponentProps } from \"@/lib/componentFactory/flowComponent\";\nimport { flowComponent } from \"@/lib/componentFactory/flowComponent\";\nimport type { PropsContext } from \"@/lib/propsContext\";\nimport { PropsContextProvider } from \"@/lib/propsContext\";\n\nexport interface FileFieldProps\n extends PropsWithChildren,\n FlowComponentProps<HTMLInputElement>,\n Pick<Aria.InputProps, \"accept\" | \"multiple\" | \"name\">,\n Pick<\n Aria.TextFieldProps,\n \"isRequired\" | \"isInvalid\" | \"validationBehavior\" | \"isDisabled\"\n > {\n /** Handler that is called when the file input changes. */\n onChange?: FileInputOnChangeHandler;\n}\n\n/**\n * @flr-generate all\n * @flr-clear-props-context\n */\nexport const FileField = flowComponent(\"FileField\", (props) => {\n const {\n children,\n ref,\n isRequired,\n isInvalid,\n isDisabled,\n validationBehavior,\n onChange,\n ...restInputProps\n } = props;\n const inputRef = useRef<HTMLInputElement>(null);\n\n const formValidationState = useFormValidationState({\n value: undefined,\n validationBehavior,\n isInvalid,\n });\n\n useFormValidation({ validationBehavior }, formValidationState, inputRef);\n\n const inputProps = useMemo(\n () => ({\n ...restInputProps,\n ref: inputRef,\n \"aria-invalid\": formValidationState.displayValidation.isInvalid,\n value: undefined,\n }),\n [formValidationState, isRequired, ...Object.values(restInputProps)],\n );\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 <InputContext.Provider value={inputProps}>\n <FieldErrorContext.Provider value={formValidationState.displayValidation}>\n <PropsContextProvider props={propsContext}>\n <div\n data-required={!!isRequired || undefined}\n data-invalid={\n formValidationState.displayValidation.isInvalid || undefined\n }\n className={formFieldStyles.formField}\n >\n <FileInput ref={ref} onChange={onChange} isDisabled={isDisabled}>\n {children}\n </FileInput>\n </div>\n </PropsContextProvider>\n </FieldErrorContext.Provider>\n </InputContext.Provider>\n );\n});\nexport default FileField;\n"],"names":[],"mappings":";;;;;;;;;;;;AA8BO,MAAM,SAAY,GAAA,aAAA,CAAc,WAAa,EAAA,CAAC,KAAU,KAAA;AAC7D,EAAM,MAAA;AAAA,IACJ,QAAA;AAAA,IACA,GAAA;AAAA,IACA,UAAA;AAAA,IACA,SAAA;AAAA,IACA,UAAA;AAAA,IACA,kBAAA;AAAA,IACA,QAAA;AAAA,IACA,GAAG;AAAA,GACD,GAAA,KAAA;AACJ,EAAM,MAAA,QAAA,GAAW,OAAyB,IAAI,CAAA;AAE9C,EAAA,MAAM,sBAAsB,sBAAuB,CAAA;AAAA,IACjD,KAAO,EAAA,MAAA;AAAA,IACP,kBAAA;AAAA,IACA;AAAA,GACD,CAAA;AAED,EAAA,iBAAA,CAAkB,EAAE,kBAAA,EAAsB,EAAA,mBAAA,EAAqB,QAAQ,CAAA;AAEvE,EAAA,MAAM,UAAa,GAAA,OAAA;AAAA,IACjB,OAAO;AAAA,MACL,GAAG,cAAA;AAAA,MACH,GAAK,EAAA,QAAA;AAAA,MACL,cAAA,EAAgB,oBAAoB,iBAAkB,CAAA,SAAA;AAAA,MACtD,KAAO,EAAA;AAAA,KACT,CAAA;AAAA,IACA,CAAC,mBAAqB,EAAA,UAAA,EAAY,GAAG,MAAO,CAAA,MAAA,CAAO,cAAc,CAAC;AAAA,GACpE;AAEA,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,YAAa,CAAA,QAAA,EAAb,EAAsB,KAAA,EAAO,YAC5B,QAAC,kBAAA,GAAA,CAAA,iBAAA,CAAkB,QAAlB,EAAA,EAA2B,OAAO,mBAAoB,CAAA,iBAAA,EACrD,QAAC,kBAAA,GAAA,CAAA,oBAAA,EAAA,EAAqB,OAAO,YAC3B,EAAA,QAAA,kBAAA,GAAA;AAAA,IAAC,KAAA;AAAA,IAAA;AAAA,MACC,eAAA,EAAe,CAAC,CAAC,UAAc,IAAA,MAAA;AAAA,MAC/B,cAAA,EACE,mBAAoB,CAAA,iBAAA,CAAkB,SAAa,IAAA,MAAA;AAAA,MAErD,WAAW,eAAgB,CAAA,SAAA;AAAA,MAE3B,QAAC,kBAAA,GAAA,CAAA,SAAA,EAAA,EAAU,GAAU,EAAA,QAAA,EAAoB,YACtC,QACH,EAAA;AAAA;AAAA,GACF,EACF,GACF,CACF,EAAA,CAAA;AAEJ,CAAC;;;;"}
@@ -1,4 +1,4 @@
1
- import { PropsWithChildren, default as React } from 'react';
1
+ import { PropsWithChildren } from 'react';
2
2
  import { FileInputOnChangeHandler } from './components/FileInput';
3
3
  import { FlowComponentProps } from '../../lib/componentFactory/flowComponent';
4
4
  import type * as Aria from "react-aria-components";
@@ -10,6 +10,6 @@ export interface FileFieldProps extends PropsWithChildren, FlowComponentProps<HT
10
10
  * @flr-generate all
11
11
  * @flr-clear-props-context
12
12
  */
13
- export declare const FileField: React.FunctionComponent<FileFieldProps & React.RefAttributes<HTMLInputElement>>;
13
+ export declare const FileField: import('react').FunctionComponent<FileFieldProps & import('react').RefAttributes<HTMLInputElement>>;
14
14
  export default FileField;
15
15
  //# sourceMappingURL=FileField.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FileField.d.ts","sourceRoot":"","sources":["../../../../src/components/FileField/FileField.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,KAA0B,MAAM,OAAO,CAAC;AAC/C,OAAO,KAAK,KAAK,IAAI,MAAM,uBAAuB,CAAC;AAEnD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,6CAA6C,CAAC;AAE5F,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAK/E,MAAM,WAAW,cACf,SAAQ,iBAAiB,EACvB,kBAAkB,CAAC,gBAAgB,CAAC,EACpC,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,QAAQ,GAAG,UAAU,GAAG,MAAM,CAAC,EACrD,IAAI,CACF,IAAI,CAAC,cAAc,EACnB,YAAY,GAAG,WAAW,GAAG,oBAAoB,GAAG,YAAY,CACjE;IACH,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,wBAAwB,CAAC;CACrC;AAED;;;GAGG;AACH,eAAO,MAAM,SAAS,iFA+DpB,CAAC;AACH,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"FileField.d.ts","sourceRoot":"","sources":["../../../../src/components/FileField/FileField.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE/C,OAAO,KAAK,KAAK,IAAI,MAAM,uBAAuB,CAAC;AAEnD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,6CAA6C,CAAC;AAE5F,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAK/E,MAAM,WAAW,cACf,SAAQ,iBAAiB,EACvB,kBAAkB,CAAC,gBAAgB,CAAC,EACpC,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,QAAQ,GAAG,UAAU,GAAG,MAAM,CAAC,EACrD,IAAI,CACF,IAAI,CAAC,cAAc,EACnB,YAAY,GAAG,WAAW,GAAG,oBAAoB,GAAG,YAAY,CACjE;IACH,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,wBAAwB,CAAC;CACrC;AAED;;;GAGG;AACH,eAAO,MAAM,SAAS,qGA+DpB,CAAC;AACH,eAAe,SAAS,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mittwald/flow-react-components",
3
- "version": "0.2.0-alpha.166",
3
+ "version": "0.2.0-alpha.167",
4
4
  "type": "module",
5
5
  "description": "A React implementation of Flow, mittwald’s design system",
6
6
  "homepage": "https://mittwald.github.io/flow",
@@ -53,7 +53,7 @@
53
53
  "dependencies": {
54
54
  "@chakra-ui/live-region": "^2.1.0",
55
55
  "@internationalized/string-compiler": "^3.2.6",
56
- "@mittwald/react-tunnel": "0.2.0-alpha.166",
56
+ "@mittwald/react-tunnel": "0.2.0-alpha.167",
57
57
  "@mittwald/react-use-promise": "^3.0.4",
58
58
  "@react-aria/form": "^3.0.14",
59
59
  "@react-aria/utils": "^3.28.1",
@@ -92,7 +92,7 @@
92
92
  "devDependencies": {
93
93
  "@faker-js/faker": "^9.6.0",
94
94
  "@internationalized/date": "^3.7.0",
95
- "@mittwald/flow-design-tokens": "0.2.0-alpha.166",
95
+ "@mittwald/flow-design-tokens": "0.2.0-alpha.167",
96
96
  "@mittwald/react-use-promise": "^2.6.0",
97
97
  "@mittwald/remote-dom-react": "1.2.2-mittwald.3",
98
98
  "@mittwald/typescript-config": "",
@@ -173,5 +173,5 @@
173
173
  "optional": true
174
174
  }
175
175
  },
176
- "gitHead": "f33379b5bd0a0f40818820c926264e2136ebbea5"
176
+ "gitHead": "1927f615a0de12f79fd3b7062161c91f6efa4d7c"
177
177
  }