@fluentui/react-infolabel 9.1.5 → 9.2.1

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
@@ -1,12 +1,33 @@
1
1
  # Change Log - @fluentui/react-infolabel
2
2
 
3
- This log was last generated on Wed, 16 Apr 2025 19:37:27 GMT and should not be manually modified.
3
+ This log was last generated on Wed, 14 May 2025 18:45:49 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [9.2.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-infolabel_v9.2.1)
8
+
9
+ Wed, 14 May 2025 18:45:49 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-infolabel_v9.2.0..@fluentui/react-infolabel_v9.2.1)
11
+
12
+ ### Patches
13
+
14
+ - Bump @fluentui/react-popover to v9.10.7 ([PR #34449](https://github.com/microsoft/fluentui/pull/34449) by beachball)
15
+ - Bump @fluentui/react-tabster to v9.24.7 ([PR #34449](https://github.com/microsoft/fluentui/pull/34449) by beachball)
16
+
17
+ ## [9.2.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-infolabel_v9.2.0)
18
+
19
+ Thu, 24 Apr 2025 09:59:44 GMT
20
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-infolabel_v9.1.5..@fluentui/react-infolabel_v9.2.0)
21
+
22
+ ### Minor changes
23
+
24
+ - Feat: Exported InfoButton types and component ([PR #34255](https://github.com/microsoft/fluentui/pull/34255) by terynkum@microsoft.com)
25
+ - Bump @fluentui/react-popover to v9.10.6 ([PR #34315](https://github.com/microsoft/fluentui/pull/34315) by beachball)
26
+ - Bump @fluentui/react-tabster to v9.24.6 ([PR #34315](https://github.com/microsoft/fluentui/pull/34315) by beachball)
27
+
7
28
  ## [9.1.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-infolabel_v9.1.5)
8
29
 
9
- Wed, 16 Apr 2025 19:37:27 GMT
30
+ Wed, 16 Apr 2025 19:42:18 GMT
10
31
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-infolabel_v9.1.4..@fluentui/react-infolabel_v9.1.5)
11
32
 
12
33
  ### Patches
package/dist/index.d.ts CHANGED
@@ -13,12 +13,14 @@ import type { SlotClassNames } from '@fluentui/react-utilities';
13
13
  /**
14
14
  * InfoButtons provide a way to display additional information about a form field or an area in the UI.
15
15
  */
16
- declare const InfoButton: ForwardRefComponent<InfoButtonProps>;
16
+ export declare const InfoButton: ForwardRefComponent<InfoButtonProps>;
17
+
18
+ export declare const infoButtonClassNames: SlotClassNames<InfoButtonSlots>;
17
19
 
18
20
  /**
19
21
  * InfoButton Props
20
22
  */
21
- declare type InfoButtonProps = Omit<ComponentProps<Partial<InfoButtonSlots>>, 'disabled'> & {
23
+ export declare type InfoButtonProps = Omit<ComponentProps<Partial<InfoButtonSlots>>, 'disabled'> & {
22
24
  /**
23
25
  * Size of the InfoButton.
24
26
  *
@@ -33,7 +35,7 @@ declare type InfoButtonProps = Omit<ComponentProps<Partial<InfoButtonSlots>>, 'd
33
35
  inline?: boolean;
34
36
  };
35
37
 
36
- declare type InfoButtonSlots = {
38
+ export declare type InfoButtonSlots = {
37
39
  root: NonNullable<Slot<'button'>>;
38
40
  /**
39
41
  * The Popover element that wraps the info and root slots. Use this slot to pass props to the Popover.
@@ -45,6 +47,11 @@ declare type InfoButtonSlots = {
45
47
  info: NonNullable<Slot<typeof PopoverSurface>>;
46
48
  };
47
49
 
50
+ /**
51
+ * State used in rendering InfoButton
52
+ */
53
+ export declare type InfoButtonState = ComponentState<InfoButtonSlots> & Required<Pick<InfoButtonProps, 'inline' | 'size'>>;
54
+
48
55
  /**
49
56
  * InfoLabel component
50
57
  */
@@ -87,11 +94,32 @@ export declare type InfoLabelSlots = {
87
94
  */
88
95
  export declare type InfoLabelState = ComponentState<InfoLabelSlots> & Pick<InfoLabelProps, 'size'>;
89
96
 
97
+ /**
98
+ * Render the final JSX of InfoButton
99
+ */
100
+ export declare const renderInfoButton_unstable: (state: InfoButtonState) => JSX.Element;
101
+
90
102
  /**
91
103
  * Render the final JSX of InfoLabel
92
104
  */
93
105
  export declare const renderInfoLabel_unstable: (state: InfoLabelState) => JSX.Element;
94
106
 
107
+ /**
108
+ * Create the state required to render InfoButton.
109
+ *
110
+ * The returned state can be modified with hooks such as useInfoButtonStyles_unstable,
111
+ * before being passed to renderInfoButton_unstable.
112
+ *
113
+ * @param props - props from this instance of InfoButton
114
+ * @param ref - reference to root HTMLButtonElement of InfoButton
115
+ */
116
+ export declare const useInfoButton_unstable: (props: InfoButtonProps, ref: React_2.Ref<HTMLButtonElement>) => InfoButtonState;
117
+
118
+ /**
119
+ * Apply styling to the InfoButton slots based on the state
120
+ */
121
+ export declare const useInfoButtonStyles_unstable: (state: InfoButtonState) => InfoButtonState;
122
+
95
123
  /**
96
124
  * Create the state required to render InfoLabel.
97
125
  *
package/lib/index.js CHANGED
@@ -1 +1,2 @@
1
1
  export { InfoLabel, infoLabelClassNames, renderInfoLabel_unstable, useInfoLabelStyles_unstable, useInfoLabel_unstable } from './InfoLabel';
2
+ export { InfoButton, infoButtonClassNames, renderInfoButton_unstable, useInfoButtonStyles_unstable, useInfoButton_unstable } from './InfoButton';
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export {\n InfoLabel,\n infoLabelClassNames,\n renderInfoLabel_unstable,\n useInfoLabelStyles_unstable,\n useInfoLabel_unstable,\n} from './InfoLabel';\nexport type { InfoLabelProps, InfoLabelSlots, InfoLabelState } from './InfoLabel';\n"],"names":["InfoLabel","infoLabelClassNames","renderInfoLabel_unstable","useInfoLabelStyles_unstable","useInfoLabel_unstable"],"rangeMappings":"","mappings":"AAAA,SACEA,SAAS,EACTC,mBAAmB,EACnBC,wBAAwB,EACxBC,2BAA2B,EAC3BC,qBAAqB,QAChB,cAAc"}
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export {\n InfoLabel,\n infoLabelClassNames,\n renderInfoLabel_unstable,\n useInfoLabelStyles_unstable,\n useInfoLabel_unstable,\n} from './InfoLabel';\nexport type { InfoLabelProps, InfoLabelSlots, InfoLabelState } from './InfoLabel';\n\nexport {\n InfoButton,\n infoButtonClassNames,\n renderInfoButton_unstable,\n useInfoButtonStyles_unstable,\n useInfoButton_unstable,\n} from './InfoButton';\nexport type { InfoButtonProps, InfoButtonSlots, InfoButtonState } from './InfoButton';\n"],"names":["InfoLabel","infoLabelClassNames","renderInfoLabel_unstable","useInfoLabelStyles_unstable","useInfoLabel_unstable","InfoButton","infoButtonClassNames","renderInfoButton_unstable","useInfoButtonStyles_unstable","useInfoButton_unstable"],"rangeMappings":";","mappings":"AAAA,SACEA,SAAS,EACTC,mBAAmB,EACnBC,wBAAwB,EACxBC,2BAA2B,EAC3BC,qBAAqB,QAChB,cAAc;AAGrB,SACEC,UAAU,EACVC,oBAAoB,EACpBC,yBAAyB,EACzBC,4BAA4B,EAC5BC,sBAAsB,QACjB,eAAe"}
@@ -9,15 +9,30 @@ function _export(target, all) {
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
+ InfoButton: function() {
13
+ return _InfoButton.InfoButton;
14
+ },
12
15
  InfoLabel: function() {
13
16
  return _InfoLabel.InfoLabel;
14
17
  },
18
+ infoButtonClassNames: function() {
19
+ return _InfoButton.infoButtonClassNames;
20
+ },
15
21
  infoLabelClassNames: function() {
16
22
  return _InfoLabel.infoLabelClassNames;
17
23
  },
24
+ renderInfoButton_unstable: function() {
25
+ return _InfoButton.renderInfoButton_unstable;
26
+ },
18
27
  renderInfoLabel_unstable: function() {
19
28
  return _InfoLabel.renderInfoLabel_unstable;
20
29
  },
30
+ useInfoButtonStyles_unstable: function() {
31
+ return _InfoButton.useInfoButtonStyles_unstable;
32
+ },
33
+ useInfoButton_unstable: function() {
34
+ return _InfoButton.useInfoButton_unstable;
35
+ },
21
36
  useInfoLabelStyles_unstable: function() {
22
37
  return _InfoLabel.useInfoLabelStyles_unstable;
23
38
  },
@@ -26,3 +41,4 @@ _export(exports, {
26
41
  }
27
42
  });
28
43
  const _InfoLabel = require("./InfoLabel");
44
+ const _InfoButton = require("./InfoButton");
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export {\n InfoLabel,\n infoLabelClassNames,\n renderInfoLabel_unstable,\n useInfoLabelStyles_unstable,\n useInfoLabel_unstable,\n} from './InfoLabel';\nexport type { InfoLabelProps, InfoLabelSlots, InfoLabelState } from './InfoLabel';\n"],"names":["InfoLabel","infoLabelClassNames","renderInfoLabel_unstable","useInfoLabelStyles_unstable","useInfoLabel_unstable"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IACEA,SAAS;eAATA,oBAAS;;IACTC,mBAAmB;eAAnBA,8BAAmB;;IACnBC,wBAAwB;eAAxBA,mCAAwB;;IACxBC,2BAA2B;eAA3BA,sCAA2B;;IAC3BC,qBAAqB;eAArBA,gCAAqB;;;2BAChB"}
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export {\n InfoLabel,\n infoLabelClassNames,\n renderInfoLabel_unstable,\n useInfoLabelStyles_unstable,\n useInfoLabel_unstable,\n} from './InfoLabel';\nexport type { InfoLabelProps, InfoLabelSlots, InfoLabelState } from './InfoLabel';\n\nexport {\n InfoButton,\n infoButtonClassNames,\n renderInfoButton_unstable,\n useInfoButtonStyles_unstable,\n useInfoButton_unstable,\n} from './InfoButton';\nexport type { InfoButtonProps, InfoButtonSlots, InfoButtonState } from './InfoButton';\n"],"names":["InfoButton","InfoLabel","infoButtonClassNames","infoLabelClassNames","renderInfoButton_unstable","renderInfoLabel_unstable","useInfoButtonStyles_unstable","useInfoButton_unstable","useInfoLabelStyles_unstable","useInfoLabel_unstable"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAUEA,UAAU;eAAVA,sBAAU;;IATVC,SAAS;eAATA,oBAAS;;IAUTC,oBAAoB;eAApBA,gCAAoB;;IATpBC,mBAAmB;eAAnBA,8BAAmB;;IAUnBC,yBAAyB;eAAzBA,qCAAyB;;IATzBC,wBAAwB;eAAxBA,mCAAwB;;IAUxBC,4BAA4B;eAA5BA,wCAA4B;;IAC5BC,sBAAsB;eAAtBA,kCAAsB;;IAVtBC,2BAA2B;eAA3BA,sCAA2B;;IAC3BC,qBAAqB;eAArBA,gCAAqB;;;2BAChB;4BASA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/react-infolabel",
3
- "version": "9.1.5",
3
+ "version": "9.2.1",
4
4
  "description": "InfoLabel component for Fluent UI v9",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
@@ -23,8 +23,8 @@
23
23
  "@fluentui/react-icons": "^2.0.245",
24
24
  "@fluentui/react-shared-contexts": "^9.23.1",
25
25
  "@fluentui/react-label": "^9.1.87",
26
- "@fluentui/react-popover": "^9.10.5",
27
- "@fluentui/react-tabster": "^9.24.5",
26
+ "@fluentui/react-popover": "^9.10.7",
27
+ "@fluentui/react-tabster": "^9.24.7",
28
28
  "@fluentui/react-jsx-runtime": "^9.0.54",
29
29
  "@fluentui/react-theme": "^9.1.24",
30
30
  "@fluentui/react-utilities": "^9.19.0",