@imfusion/web-ui 0.11.1-dev.35.g0028b4dd → 0.11.1-dev.37.gdba3f9f4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@imfusion/web-ui",
3
- "version": "0.11.1-dev.35.g0028b4dd",
3
+ "version": "0.11.1-dev.37.gdba3f9f4",
4
4
  "description": "The official Web UI component library for ImFusion web apps",
5
5
  "author": "ImFusion GmbH",
6
6
  "homepage": "https://imfusion.com",
@@ -8553,6 +8553,243 @@
8553
8553
  }
8554
8554
  ]
8555
8555
  },
8556
+ "progress": {
8557
+ "root": {
8558
+ "name": "Progress.Root",
8559
+ "description": "Progress.Root — completion of a running task, such as an upload or export.\n\n`value={null}` is indeterminate. Without a visible `Progress.Label`, name the bar with `aria-label`. Base UI hides\n`Progress.Value` from assistive tech, so custom Value text needs a matching `aria-valuetext`.",
8560
+ "props": [
8561
+ {
8562
+ "name": "aria-valuetext",
8563
+ "required": false,
8564
+ "type": "string",
8565
+ "defaultValue": null,
8566
+ "description": "A string value that provides a user-friendly name for `aria-valuenow`, the current value of the progress bar."
8567
+ },
8568
+ {
8569
+ "name": "className",
8570
+ "required": false,
8571
+ "type": "string | ((state: ProgressRootState) => string)",
8572
+ "defaultValue": null,
8573
+ "description": "CSS class applied to the element, or a function that\nreturns a class based on the component's state."
8574
+ },
8575
+ {
8576
+ "name": "format",
8577
+ "required": false,
8578
+ "type": "NumberFormatOptions",
8579
+ "defaultValue": null,
8580
+ "description": "Options to format the value."
8581
+ },
8582
+ {
8583
+ "name": "getAriaValueText",
8584
+ "required": false,
8585
+ "type": "(\n formattedValue: string | null,\n value: number | null\n) => string",
8586
+ "defaultValue": null,
8587
+ "description": "Accepts a function which returns a string value that provides a human-readable text alternative for the current value of the progress bar."
8588
+ },
8589
+ {
8590
+ "name": "layout",
8591
+ "required": false,
8592
+ "type": "\"stacked\" | \"inline\" | null",
8593
+ "defaultValue": "stacked",
8594
+ "description": ""
8595
+ },
8596
+ {
8597
+ "name": "locale",
8598
+ "required": false,
8599
+ "type": "LocalesArgument",
8600
+ "defaultValue": null,
8601
+ "description": "The locale used by `Intl.NumberFormat` when formatting the value.\nDefaults to the user's runtime locale."
8602
+ },
8603
+ {
8604
+ "name": "max",
8605
+ "required": false,
8606
+ "type": "number",
8607
+ "defaultValue": "100",
8608
+ "description": "The maximum value."
8609
+ },
8610
+ {
8611
+ "name": "min",
8612
+ "required": false,
8613
+ "type": "number",
8614
+ "defaultValue": "0",
8615
+ "description": "The minimum value."
8616
+ },
8617
+ {
8618
+ "name": "ref",
8619
+ "required": false,
8620
+ "type": "Ref<HTMLDivElement>",
8621
+ "defaultValue": null,
8622
+ "description": "Allows getting a ref to the component instance.\nOnce the component unmounts, React will set `ref.current` to `null`\n(or call the ref with `null` if you passed a callback ref).\n@see {@link https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom React Docs}"
8623
+ },
8624
+ {
8625
+ "name": "render",
8626
+ "required": false,
8627
+ "type": "| ReactElement<\n unknown,\n string | JSXElementConstructor<any>\n >\n| ComponentRenderFn<HTMLProps, ProgressRootState>",
8628
+ "defaultValue": null,
8629
+ "description": "Allows you to replace the component's HTML element\nwith a different tag, or compose it with another component.\n\nAccepts a `ReactElement` or a function that returns the element to render."
8630
+ },
8631
+ {
8632
+ "name": "size",
8633
+ "required": false,
8634
+ "type": "\"xs\" | \"sm\" | \"md\" | \"lg\" | null",
8635
+ "defaultValue": "md",
8636
+ "description": ""
8637
+ },
8638
+ {
8639
+ "name": "style",
8640
+ "required": false,
8641
+ "type": "| CSSProperties\n| ((state: ProgressRootState) => CSSProperties)",
8642
+ "defaultValue": null,
8643
+ "description": "Style applied to the element, or a function that\nreturns a style object based on the component's state."
8644
+ },
8645
+ {
8646
+ "name": "value",
8647
+ "required": true,
8648
+ "type": "number | null",
8649
+ "defaultValue": "null",
8650
+ "description": "The current value. The component is indeterminate when value is `null`."
8651
+ }
8652
+ ]
8653
+ },
8654
+ "subComponents": [
8655
+ {
8656
+ "name": "Progress.Indicator",
8657
+ "description": "Progress.Indicator — filled portion of the track up to the value.",
8658
+ "props": [
8659
+ {
8660
+ "name": "className",
8661
+ "required": false,
8662
+ "type": "| string\n| ((state: ProgressIndicatorState) => string)",
8663
+ "defaultValue": null,
8664
+ "description": "CSS class applied to the element, or a function that\nreturns a class based on the component's state."
8665
+ },
8666
+ {
8667
+ "name": "ref",
8668
+ "required": false,
8669
+ "type": "Ref<HTMLDivElement>",
8670
+ "defaultValue": null,
8671
+ "description": "Allows getting a ref to the component instance.\nOnce the component unmounts, React will set `ref.current` to `null`\n(or call the ref with `null` if you passed a callback ref).\n@see {@link https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom React Docs}"
8672
+ },
8673
+ {
8674
+ "name": "render",
8675
+ "required": false,
8676
+ "type": "| ReactElement<\n unknown,\n string | JSXElementConstructor<any>\n >\n| ComponentRenderFn<HTMLProps, ProgressIndicatorState>",
8677
+ "defaultValue": null,
8678
+ "description": "Allows you to replace the component's HTML element\nwith a different tag, or compose it with another component.\n\nAccepts a `ReactElement` or a function that returns the element to render."
8679
+ },
8680
+ {
8681
+ "name": "style",
8682
+ "required": false,
8683
+ "type": "| CSSProperties\n| ((state: ProgressIndicatorState) => CSSProperties)",
8684
+ "defaultValue": null,
8685
+ "description": "Style applied to the element, or a function that\nreturns a style object based on the component's state."
8686
+ }
8687
+ ]
8688
+ },
8689
+ {
8690
+ "name": "Progress.Label",
8691
+ "description": "Progress.Label — accessible label for the progress bar.",
8692
+ "props": [
8693
+ {
8694
+ "name": "className",
8695
+ "required": false,
8696
+ "type": "string | ((state: ProgressLabelState) => string)",
8697
+ "defaultValue": null,
8698
+ "description": "CSS class applied to the element, or a function that\nreturns a class based on the component's state."
8699
+ },
8700
+ {
8701
+ "name": "ref",
8702
+ "required": false,
8703
+ "type": "Ref<HTMLDivElement>",
8704
+ "defaultValue": null,
8705
+ "description": "Allows getting a ref to the component instance.\nOnce the component unmounts, React will set `ref.current` to `null`\n(or call the ref with `null` if you passed a callback ref).\n@see {@link https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom React Docs}"
8706
+ },
8707
+ {
8708
+ "name": "render",
8709
+ "required": false,
8710
+ "type": "| ReactElement<\n unknown,\n string | JSXElementConstructor<any>\n >\n| ComponentRenderFn<HTMLProps, ProgressLabelState>",
8711
+ "defaultValue": null,
8712
+ "description": "Allows you to replace the component's HTML element\nwith a different tag, or compose it with another component.\n\nAccepts a `ReactElement` or a function that returns the element to render."
8713
+ },
8714
+ {
8715
+ "name": "style",
8716
+ "required": false,
8717
+ "type": "| CSSProperties\n| ((state: ProgressLabelState) => CSSProperties)",
8718
+ "defaultValue": null,
8719
+ "description": "Style applied to the element, or a function that\nreturns a style object based on the component's state."
8720
+ }
8721
+ ]
8722
+ },
8723
+ {
8724
+ "name": "Progress.Track",
8725
+ "description": "Progress.Track — the full range.",
8726
+ "props": [
8727
+ {
8728
+ "name": "className",
8729
+ "required": false,
8730
+ "type": "string | ((state: ProgressTrackState) => string)",
8731
+ "defaultValue": null,
8732
+ "description": "CSS class applied to the element, or a function that\nreturns a class based on the component's state."
8733
+ },
8734
+ {
8735
+ "name": "ref",
8736
+ "required": false,
8737
+ "type": "Ref<HTMLDivElement>",
8738
+ "defaultValue": null,
8739
+ "description": "Allows getting a ref to the component instance.\nOnce the component unmounts, React will set `ref.current` to `null`\n(or call the ref with `null` if you passed a callback ref).\n@see {@link https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom React Docs}"
8740
+ },
8741
+ {
8742
+ "name": "render",
8743
+ "required": false,
8744
+ "type": "| ReactElement<\n unknown,\n string | JSXElementConstructor<any>\n >\n| ComponentRenderFn<HTMLProps, ProgressTrackState>",
8745
+ "defaultValue": null,
8746
+ "description": "Allows you to replace the component's HTML element\nwith a different tag, or compose it with another component.\n\nAccepts a `ReactElement` or a function that returns the element to render."
8747
+ },
8748
+ {
8749
+ "name": "style",
8750
+ "required": false,
8751
+ "type": "| CSSProperties\n| ((state: ProgressTrackState) => CSSProperties)",
8752
+ "defaultValue": null,
8753
+ "description": "Style applied to the element, or a function that\nreturns a style object based on the component's state."
8754
+ }
8755
+ ]
8756
+ },
8757
+ {
8758
+ "name": "Progress.Value",
8759
+ "description": "Progress.Value — formatted readout of the current value. Renders nothing while indeterminate.",
8760
+ "props": [
8761
+ {
8762
+ "name": "className",
8763
+ "required": false,
8764
+ "type": "string | ((state: ProgressValueState) => string)",
8765
+ "defaultValue": null,
8766
+ "description": "CSS class applied to the element, or a function that\nreturns a class based on the component's state."
8767
+ },
8768
+ {
8769
+ "name": "ref",
8770
+ "required": false,
8771
+ "type": "Ref<HTMLDivElement>",
8772
+ "defaultValue": null,
8773
+ "description": "Allows getting a ref to the component instance.\nOnce the component unmounts, React will set `ref.current` to `null`\n(or call the ref with `null` if you passed a callback ref).\n@see {@link https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom React Docs}"
8774
+ },
8775
+ {
8776
+ "name": "render",
8777
+ "required": false,
8778
+ "type": "| ReactElement<\n unknown,\n string | JSXElementConstructor<any>\n >\n| ComponentRenderFn<HTMLProps, ProgressValueState>",
8779
+ "defaultValue": null,
8780
+ "description": "Allows you to replace the component's HTML element\nwith a different tag, or compose it with another component.\n\nAccepts a `ReactElement` or a function that returns the element to render."
8781
+ },
8782
+ {
8783
+ "name": "style",
8784
+ "required": false,
8785
+ "type": "| CSSProperties\n| ((state: ProgressValueState) => CSSProperties)",
8786
+ "defaultValue": null,
8787
+ "description": "Style applied to the element, or a function that\nreturns a style object based on the component's state."
8788
+ }
8789
+ ]
8790
+ }
8791
+ ]
8792
+ },
8556
8793
  "prose": {
8557
8794
  "root": {
8558
8795
  "name": "Prose",
@@ -181,6 +181,12 @@ Floating panel anchored to a trigger for contextual content, quick forms, or act
181
181
  - props: node_modules/@imfusion/web-ui/src/docgen/doc.gen.json -> .popover (jq: jq '.popover' node_modules/@imfusion/web-ui/src/docgen/doc.gen.json)
182
182
  - further reading (usage/anatomy, not props): https://base-ui.com/react/components/popover.md
183
183
 
184
+ ## Progress
185
+ - category: Display, status: experimental
186
+ Bar for the completion of a running task, such as an upload or export. Also called a progress bar. Indeterminate when the amount is unknown. Use Meter for a static measure within a range.
187
+ - props: node_modules/@imfusion/web-ui/src/docgen/doc.gen.json -> .progress (jq: jq '.progress' node_modules/@imfusion/web-ui/src/docgen/doc.gen.json)
188
+ - further reading (usage/anatomy, not props): https://base-ui.com/react/components/progress.md
189
+
184
190
  ## Prose
185
191
  - category: Layout, status: experimental
186
192
  Flow container that spaces long-form text and the blocks inside it. Also called an article or rich-text container. Use Stack or Row for UI layout.