@fluentui/react-infobutton 9.0.0-beta.40 → 9.0.0-beta.42

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.
Files changed (68) hide show
  1. package/CHANGELOG.json +70 -1
  2. package/CHANGELOG.md +24 -2
  3. package/dist/index.d.ts +0 -84
  4. package/lib/components/InfoLabel/useInfoLabel.js +14 -4
  5. package/lib/components/InfoLabel/useInfoLabel.js.map +1 -1
  6. package/lib/index.js +0 -2
  7. package/lib/index.js.map +1 -1
  8. package/lib-commonjs/components/InfoLabel/useInfoLabel.js +13 -3
  9. package/lib-commonjs/components/InfoLabel/useInfoLabel.js.map +1 -1
  10. package/lib-commonjs/index.js +1 -13
  11. package/lib-commonjs/index.js.map +1 -1
  12. package/package.json +5 -5
  13. package/lib/InfoIcon.js +0 -1
  14. package/lib/InfoIcon.js.map +0 -1
  15. package/lib/InfoIconLabel.js +0 -1
  16. package/lib/InfoIconLabel.js.map +0 -1
  17. package/lib/components/InfoIcon/InfoIcon.js +0 -12
  18. package/lib/components/InfoIcon/InfoIcon.js.map +0 -1
  19. package/lib/components/InfoIcon/InfoIcon.types.js +0 -2
  20. package/lib/components/InfoIcon/InfoIcon.types.js.map +0 -1
  21. package/lib/components/InfoIcon/index.js +0 -5
  22. package/lib/components/InfoIcon/index.js.map +0 -1
  23. package/lib/components/InfoIcon/renderInfoIcon.js +0 -9
  24. package/lib/components/InfoIcon/renderInfoIcon.js.map +0 -1
  25. package/lib/components/InfoIcon/useInfoIcon.js +0 -25
  26. package/lib/components/InfoIcon/useInfoIcon.js.map +0 -1
  27. package/lib/components/InfoIcon/useInfoIconStyles.styles.js +0 -21
  28. package/lib/components/InfoIcon/useInfoIconStyles.styles.js.map +0 -1
  29. package/lib/components/InfoIconLabel/InfoIconLabel.js +0 -12
  30. package/lib/components/InfoIconLabel/InfoIconLabel.js.map +0 -1
  31. package/lib/components/InfoIconLabel/InfoIconLabel.types.js +0 -2
  32. package/lib/components/InfoIconLabel/InfoIconLabel.types.js.map +0 -1
  33. package/lib/components/InfoIconLabel/index.js +0 -5
  34. package/lib/components/InfoIconLabel/index.js.map +0 -1
  35. package/lib/components/InfoIconLabel/renderInfoIconLabel.js +0 -9
  36. package/lib/components/InfoIconLabel/renderInfoIconLabel.js.map +0 -1
  37. package/lib/components/InfoIconLabel/useInfoIconLabel.js +0 -25
  38. package/lib/components/InfoIconLabel/useInfoIconLabel.js.map +0 -1
  39. package/lib/components/InfoIconLabel/useInfoIconLabelStyles.styles.js +0 -21
  40. package/lib/components/InfoIconLabel/useInfoIconLabelStyles.styles.js.map +0 -1
  41. package/lib-commonjs/InfoIcon.js +0 -6
  42. package/lib-commonjs/InfoIcon.js.map +0 -1
  43. package/lib-commonjs/InfoIconLabel.js +0 -6
  44. package/lib-commonjs/InfoIconLabel.js.map +0 -1
  45. package/lib-commonjs/components/InfoIcon/InfoIcon.js +0 -19
  46. package/lib-commonjs/components/InfoIcon/InfoIcon.js.map +0 -1
  47. package/lib-commonjs/components/InfoIcon/InfoIcon.types.js +0 -6
  48. package/lib-commonjs/components/InfoIcon/InfoIcon.types.js.map +0 -1
  49. package/lib-commonjs/components/InfoIcon/index.js +0 -10
  50. package/lib-commonjs/components/InfoIcon/index.js.map +0 -1
  51. package/lib-commonjs/components/InfoIcon/renderInfoIcon.js +0 -15
  52. package/lib-commonjs/components/InfoIcon/renderInfoIcon.js.map +0 -1
  53. package/lib-commonjs/components/InfoIcon/useInfoIcon.js +0 -26
  54. package/lib-commonjs/components/InfoIcon/useInfoIcon.js.map +0 -1
  55. package/lib-commonjs/components/InfoIcon/useInfoIconStyles.styles.js +0 -30
  56. package/lib-commonjs/components/InfoIcon/useInfoIconStyles.styles.js.map +0 -1
  57. package/lib-commonjs/components/InfoIconLabel/InfoIconLabel.js +0 -19
  58. package/lib-commonjs/components/InfoIconLabel/InfoIconLabel.js.map +0 -1
  59. package/lib-commonjs/components/InfoIconLabel/InfoIconLabel.types.js +0 -6
  60. package/lib-commonjs/components/InfoIconLabel/InfoIconLabel.types.js.map +0 -1
  61. package/lib-commonjs/components/InfoIconLabel/index.js +0 -10
  62. package/lib-commonjs/components/InfoIconLabel/index.js.map +0 -1
  63. package/lib-commonjs/components/InfoIconLabel/renderInfoIconLabel.js +0 -15
  64. package/lib-commonjs/components/InfoIconLabel/renderInfoIconLabel.js.map +0 -1
  65. package/lib-commonjs/components/InfoIconLabel/useInfoIconLabel.js +0 -26
  66. package/lib-commonjs/components/InfoIconLabel/useInfoIconLabel.js.map +0 -1
  67. package/lib-commonjs/components/InfoIconLabel/useInfoIconLabelStyles.styles.js +0 -30
  68. package/lib-commonjs/components/InfoIconLabel/useInfoIconLabelStyles.styles.js.map +0 -1
package/CHANGELOG.json CHANGED
@@ -2,7 +2,76 @@
2
2
  "name": "@fluentui/react-infobutton",
3
3
  "entries": [
4
4
  {
5
- "date": "Mon, 03 Jul 2023 13:32:38 GMT",
5
+ "date": "Mon, 17 Jul 2023 21:26:50 GMT",
6
+ "tag": "@fluentui/react-infobutton_v9.0.0-beta.42",
7
+ "version": "9.0.0-beta.42",
8
+ "comments": {
9
+ "prerelease": [
10
+ {
11
+ "author": "esteban.230@hotmail.com",
12
+ "package": "@fluentui/react-infobutton",
13
+ "commit": "d2c19695a05ff0adcab100c05d75cfa32e0994a9",
14
+ "comment": "fix(react-infobutton): Make InfoLabel only add aria-owns when the popover is open."
15
+ },
16
+ {
17
+ "author": "esteban.230@hotmail.com",
18
+ "package": "@fluentui/react-infobutton",
19
+ "commit": "bffeca38807f5cd9230e6dbbc4ef1be1766e29d5",
20
+ "comment": "feat(react-infobutton): Remove InfoIcon files from react-infobutton."
21
+ }
22
+ ]
23
+ }
24
+ },
25
+ {
26
+ "date": "Thu, 13 Jul 2023 21:25:41 GMT",
27
+ "tag": "@fluentui/react-infobutton_v9.0.0-beta.41",
28
+ "version": "9.0.0-beta.41",
29
+ "comments": {
30
+ "none": [
31
+ {
32
+ "author": "martinhochel@microsoft.com",
33
+ "package": "@fluentui/react-infobutton",
34
+ "commit": "8a9e1018f2abb2c7608c49d32acf44e93c43cba6",
35
+ "comment": "chore: update devDependencies to use * for inner workspace dependencies"
36
+ }
37
+ ]
38
+ }
39
+ },
40
+ {
41
+ "date": "Tue, 11 Jul 2023 18:46:36 GMT",
42
+ "tag": "@fluentui/react-infobutton_v9.0.0-beta.41",
43
+ "version": "9.0.0-beta.41",
44
+ "comments": {
45
+ "prerelease": [
46
+ {
47
+ "author": "beachball",
48
+ "package": "@fluentui/react-infobutton",
49
+ "comment": "Bump @fluentui/react-label to v9.1.20",
50
+ "commit": "f958e7e175264e289a6ecdc5b108e826f6b34e74"
51
+ },
52
+ {
53
+ "author": "beachball",
54
+ "package": "@fluentui/react-infobutton",
55
+ "comment": "Bump @fluentui/react-popover to v9.7.6",
56
+ "commit": "f958e7e175264e289a6ecdc5b108e826f6b34e74"
57
+ },
58
+ {
59
+ "author": "beachball",
60
+ "package": "@fluentui/react-infobutton",
61
+ "comment": "Bump @fluentui/react-jsx-runtime to v9.0.0-alpha.11",
62
+ "commit": "f958e7e175264e289a6ecdc5b108e826f6b34e74"
63
+ },
64
+ {
65
+ "author": "beachball",
66
+ "package": "@fluentui/react-infobutton",
67
+ "comment": "Bump @fluentui/react-conformance-griffel to v9.0.0",
68
+ "commit": "f958e7e175264e289a6ecdc5b108e826f6b34e74"
69
+ }
70
+ ]
71
+ }
72
+ },
73
+ {
74
+ "date": "Mon, 03 Jul 2023 13:34:28 GMT",
6
75
  "tag": "@fluentui/react-infobutton_v9.0.0-beta.40",
7
76
  "version": "9.0.0-beta.40",
8
77
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,34 @@
1
1
  # Change Log - @fluentui/react-infobutton
2
2
 
3
- This log was last generated on Mon, 03 Jul 2023 13:32:38 GMT and should not be manually modified.
3
+ This log was last generated on Mon, 17 Jul 2023 21:26:50 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [9.0.0-beta.42](https://github.com/microsoft/fluentui/tree/@fluentui/react-infobutton_v9.0.0-beta.42)
8
+
9
+ Mon, 17 Jul 2023 21:26:50 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-infobutton_v9.0.0-beta.41..@fluentui/react-infobutton_v9.0.0-beta.42)
11
+
12
+ ### Changes
13
+
14
+ - fix(react-infobutton): Make InfoLabel only add aria-owns when the popover is open. ([PR #28463](https://github.com/microsoft/fluentui/pull/28463) by esteban.230@hotmail.com)
15
+ - feat(react-infobutton): Remove InfoIcon files from react-infobutton. ([PR #28534](https://github.com/microsoft/fluentui/pull/28534) by esteban.230@hotmail.com)
16
+
17
+ ## [9.0.0-beta.41](https://github.com/microsoft/fluentui/tree/@fluentui/react-infobutton_v9.0.0-beta.41)
18
+
19
+ Tue, 11 Jul 2023 18:46:36 GMT
20
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-infobutton_v9.0.0-beta.40..@fluentui/react-infobutton_v9.0.0-beta.41)
21
+
22
+ ### Changes
23
+
24
+ - Bump @fluentui/react-label to v9.1.20 ([PR #28491](https://github.com/microsoft/fluentui/pull/28491) by beachball)
25
+ - Bump @fluentui/react-popover to v9.7.6 ([PR #28491](https://github.com/microsoft/fluentui/pull/28491) by beachball)
26
+ - Bump @fluentui/react-jsx-runtime to v9.0.0-alpha.11 ([PR #28491](https://github.com/microsoft/fluentui/pull/28491) by beachball)
27
+ - Bump @fluentui/react-conformance-griffel to v9.0.0 ([PR #28491](https://github.com/microsoft/fluentui/pull/28491) by beachball)
28
+
7
29
  ## [9.0.0-beta.40](https://github.com/microsoft/fluentui/tree/@fluentui/react-infobutton_v9.0.0-beta.40)
8
30
 
9
- Mon, 03 Jul 2023 13:32:38 GMT
31
+ Mon, 03 Jul 2023 13:34:28 GMT
10
32
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-infobutton_v9.0.0-beta.39..@fluentui/react-infobutton_v9.0.0-beta.40)
11
33
 
12
34
  ### Changes
package/dist/index.d.ts CHANGED
@@ -46,48 +46,6 @@ export declare type InfoButtonSlots = {
46
46
  */
47
47
  export declare type InfoButtonState = ComponentState<InfoButtonSlots> & Required<Pick<InfoButtonProps, 'size'>>;
48
48
 
49
- /**
50
- * InfoIcon component - TODO: add more docs
51
- */
52
- export declare const InfoIcon: ForwardRefComponent<InfoIconProps>;
53
-
54
- export declare const infoIconClassNames: SlotClassNames<InfoIconSlots>;
55
-
56
- /**
57
- * InfoIconLabel component - TODO: add more docs
58
- */
59
- export declare const InfoIconLabel: ForwardRefComponent<InfoIconLabelProps>;
60
-
61
- export declare const infoIconLabelClassNames: SlotClassNames<InfoIconLabelSlots>;
62
-
63
- /**
64
- * InfoIconLabel Props
65
- */
66
- export declare type InfoIconLabelProps = ComponentProps<InfoIconLabelSlots> & {};
67
-
68
- export declare type InfoIconLabelSlots = {
69
- root: Slot<'div'>;
70
- };
71
-
72
- /**
73
- * State used in rendering InfoIconLabel
74
- */
75
- export declare type InfoIconLabelState = ComponentState<InfoIconLabelSlots>;
76
-
77
- /**
78
- * InfoIcon Props
79
- */
80
- export declare type InfoIconProps = ComponentProps<InfoIconSlots> & {};
81
-
82
- export declare type InfoIconSlots = {
83
- root: Slot<'div'>;
84
- };
85
-
86
- /**
87
- * State used in rendering InfoIcon
88
- */
89
- export declare type InfoIconState = ComponentState<InfoIconSlots>;
90
-
91
49
  /**
92
50
  * InfoLabel component
93
51
  */
@@ -135,16 +93,6 @@ export declare type InfoLabelState = ComponentState<InfoLabelSlots> & Pick<InfoL
135
93
  */
136
94
  export declare const renderInfoButton_unstable: (state: InfoButtonState) => JSX.Element;
137
95
 
138
- /**
139
- * Render the final JSX of InfoIcon
140
- */
141
- export declare const renderInfoIcon_unstable: (state: InfoIconState) => JSX.Element;
142
-
143
- /**
144
- * Render the final JSX of InfoIconLabel
145
- */
146
- export declare const renderInfoIconLabel_unstable: (state: InfoIconLabelState) => JSX.Element;
147
-
148
96
  /**
149
97
  * Render the final JSX of InfoLabel
150
98
  */
@@ -166,38 +114,6 @@ export declare const useInfoButton_unstable: (props: InfoButtonProps, ref: React
166
114
  */
167
115
  export declare const useInfoButtonStyles_unstable: (state: InfoButtonState) => InfoButtonState;
168
116
 
169
- /**
170
- * Create the state required to render InfoIcon.
171
- *
172
- * The returned state can be modified with hooks such as useInfoIconStyles_unstable,
173
- * before being passed to renderInfoIcon_unstable.
174
- *
175
- * @param props - props from this instance of InfoIcon
176
- * @param ref - reference to root HTMLElement of InfoIcon
177
- */
178
- export declare const useInfoIcon_unstable: (props: InfoIconProps, ref: React_2.Ref<HTMLElement>) => InfoIconState;
179
-
180
- /**
181
- * Create the state required to render InfoIconLabel.
182
- *
183
- * The returned state can be modified with hooks such as useInfoIconLabelStyles_unstable,
184
- * before being passed to renderInfoIconLabel_unstable.
185
- *
186
- * @param props - props from this instance of InfoIconLabel
187
- * @param ref - reference to root HTMLElement of InfoIconLabel
188
- */
189
- export declare const useInfoIconLabel_unstable: (props: InfoIconLabelProps, ref: React_2.Ref<HTMLElement>) => InfoIconLabelState;
190
-
191
- /**
192
- * Apply styling to the InfoIconLabel slots based on the state
193
- */
194
- export declare const useInfoIconLabelStyles_unstable: (state: InfoIconLabelState) => InfoIconLabelState;
195
-
196
- /**
197
- * Apply styling to the InfoIcon slots based on the state
198
- */
199
- export declare const useInfoIconStyles_unstable: (state: InfoIconState) => InfoIconState;
200
-
201
117
  /**
202
118
  * Create the state required to render InfoLabel.
203
119
  *
@@ -1,7 +1,7 @@
1
1
  var _infoButton, _arialabelledby, _root, _ariaowns;
2
2
  import * as React from 'react';
3
3
  import { Label } from '@fluentui/react-label';
4
- import { resolveShorthand, useId } from '@fluentui/react-utilities';
4
+ import { mergeCallbacks, resolveShorthand, useEventCallback, useId } from '@fluentui/react-utilities';
5
5
  import { InfoButton } from '../InfoButton/InfoButton';
6
6
  /**
7
7
  * Create the state required to render InfoLabel.
@@ -14,6 +14,7 @@ import { InfoButton } from '../InfoButton/InfoButton';
14
14
  */ export const useInfoLabel_unstable = (props, ref)=>{
15
15
  const { root: rootShorthand , label: labelShorthand , infoButton: infoButtonShorthand , info , size , className , style , ...labelProps } = props;
16
16
  const baseId = useId('infolabel-');
17
+ const [open, setOpen] = React.useState(false);
17
18
  const root = resolveShorthand(rootShorthand, {
18
19
  required: true,
19
20
  defaultProps: {
@@ -38,8 +39,14 @@ import { InfoButton } from '../InfoButton/InfoButton';
38
39
  info
39
40
  }
40
41
  });
42
+ const infoButtonPopover = resolveShorthand(infoButton === null || infoButton === void 0 ? void 0 : infoButton.popover, {
43
+ required: true
44
+ });
45
+ infoButtonPopover.onOpenChange = useEventCallback(mergeCallbacks(infoButtonPopover.onOpenChange, (e, data)=>{
46
+ setOpen(data.open);
47
+ }));
41
48
  if (infoButton) {
42
- var _infoButton_info;
49
+ infoButton.popover = infoButtonPopover;
43
50
  infoButton.info = resolveShorthand(infoButton === null || infoButton === void 0 ? void 0 : infoButton.info, {
44
51
  defaultProps: {
45
52
  id: baseId + '__info'
@@ -47,8 +54,11 @@ import { InfoButton } from '../InfoButton/InfoButton';
47
54
  });
48
55
  var _;
49
56
  (_ = (_infoButton = infoButton)[_arialabelledby = 'aria-labelledby']) !== null && _ !== void 0 ? _ : _infoButton[_arialabelledby] = `${label.id} ${infoButton.id}`;
50
- var _1;
51
- (_1 = (_root = root)[_ariaowns = 'aria-owns']) !== null && _1 !== void 0 ? _1 : _root[_ariaowns] = (_infoButton_info = infoButton.info) === null || _infoButton_info === void 0 ? void 0 : _infoButton_info.id;
57
+ if (open) {
58
+ var _infoButton_info;
59
+ var _1;
60
+ (_1 = (_root = root)[_ariaowns = 'aria-owns']) !== null && _1 !== void 0 ? _1 : _root[_ariaowns] = (_infoButton_info = infoButton.info) === null || _infoButton_info === void 0 ? void 0 : _infoButton_info.id;
61
+ }
52
62
  }
53
63
  return {
54
64
  size,
@@ -1 +1 @@
1
- {"version":3,"sources":["useInfoLabel.ts"],"sourcesContent":["import * as React from 'react';\n\nimport { Label } from '@fluentui/react-label';\nimport { resolveShorthand, useId } from '@fluentui/react-utilities';\nimport { InfoButton } from '../InfoButton/InfoButton';\nimport type { InfoLabelProps, InfoLabelState } from './InfoLabel.types';\n\n/**\n * Create the state required to render InfoLabel.\n *\n * The returned state can be modified with hooks such as useInfoLabelStyles_unstable,\n * before being passed to renderInfoLabel_unstable.\n *\n * @param props - props from this instance of InfoLabel\n * @param ref - reference to label element of InfoLabel\n */\nexport const useInfoLabel_unstable = (props: InfoLabelProps, ref: React.Ref<HTMLLabelElement>): InfoLabelState => {\n const {\n root: rootShorthand,\n label: labelShorthand,\n infoButton: infoButtonShorthand,\n info,\n size,\n className,\n style,\n ...labelProps\n } = props;\n const baseId = useId('infolabel-');\n\n const root = resolveShorthand(rootShorthand, {\n required: true,\n defaultProps: {\n className,\n style,\n },\n });\n\n const label = resolveShorthand(labelShorthand, {\n required: true,\n defaultProps: {\n id: baseId + '__label',\n ref,\n size,\n ...labelProps,\n },\n });\n\n const infoButton = resolveShorthand(infoButtonShorthand, {\n required: !!info,\n defaultProps: {\n id: baseId + '__infoButton',\n size,\n info,\n },\n });\n\n if (infoButton) {\n infoButton.info = resolveShorthand(infoButton?.info, {\n defaultProps: {\n id: baseId + '__info',\n },\n });\n\n infoButton['aria-labelledby'] ??= `${label.id} ${infoButton.id}`;\n root['aria-owns'] ??= infoButton.info?.id;\n }\n\n return {\n size,\n components: {\n root: 'span',\n label: Label,\n infoButton: InfoButton,\n },\n root,\n label,\n infoButton,\n };\n};\n"],"names":["infoButton","root","React","Label","resolveShorthand","useId","InfoButton","useInfoLabel_unstable","props","ref","rootShorthand","label","labelShorthand","infoButtonShorthand","info","size","className","style","labelProps","baseId","required","defaultProps","id","components"],"mappings":"IA+DIA,aAAW,iBACXC,OAAK;AAhET,YAAYC,WAAW,QAAQ;AAE/B,SAASC,KAAK,QAAQ,wBAAwB;AAC9C,SAASC,gBAAgB,EAAEC,KAAK,QAAQ,4BAA4B;AACpE,SAASC,UAAU,QAAQ,2BAA2B;AAGtD;;;;;;;;CAQC,GACD,OAAO,MAAMC,wBAAwB,CAACC,OAAuBC,MAAqD;IAChH,MAAM,EACJR,MAAMS,cAAa,EACnBC,OAAOC,eAAc,EACrBZ,YAAYa,oBAAmB,EAC/BC,KAAI,EACJC,KAAI,EACJC,UAAS,EACTC,MAAK,EACL,GAAGC,YACJ,GAAGV;IACJ,MAAMW,SAASd,MAAM;IAErB,MAAMJ,OAAOG,iBAAiBM,eAAe;QAC3CU,UAAU,IAAI;QACdC,cAAc;YACZL;YACAC;QACF;IACF;IAEA,MAAMN,QAAQP,iBAAiBQ,gBAAgB;QAC7CQ,UAAU,IAAI;QACdC,cAAc;YACZC,IAAIH,SAAS;YACbV;YACAM;YACA,GAAGG,UAAU;QACf;IACF;IAEA,MAAMlB,aAAaI,iBAAiBS,qBAAqB;QACvDO,UAAU,CAAC,CAACN;QACZO,cAAc;YACZC,IAAIH,SAAS;YACbJ;YACAD;QACF;IACF;IAEA,IAAId,YAAY;YAQQA;QAPtBA,WAAWc,IAAI,GAAGV,iBAAiBJ,uBAAAA,wBAAAA,KAAAA,IAAAA,WAAYc,IAAI,EAAE;YACnDO,cAAc;gBACZC,IAAIH,SAAS;YACf;QACF;;QAEAnB,MAAAA,cAAAA,WAAU,CAAC,kBAAA,kBAAkB,iCAA7BA,WAAU,CAAC,gBAAkB,GAAK,CAAC,EAAEW,MAAMW,EAAE,CAAC,CAAC,EAAEtB,WAAWsB,EAAE,CAAC,CAAC;;QAChErB,OAAAA,QAAAA,KAAI,CAAC,YAAA,YAAY,mCAAjBA,KAAI,CAAC,UAAY,GAAKD,CAAAA,mBAAAA,WAAWc,IAAI,cAAfd,8BAAAA,KAAAA,IAAAA,iBAAiBsB,EAAE;IAC3C,CAAC;IAED,OAAO;QACLP;QACAQ,YAAY;YACVtB,MAAM;YACNU,OAAOR;YACPH,YAAYM;QACd;QACAL;QACAU;QACAX;IACF;AACF,EAAE"}
1
+ {"version":3,"sources":["useInfoLabel.ts"],"sourcesContent":["import * as React from 'react';\n\nimport { Label } from '@fluentui/react-label';\nimport { mergeCallbacks, resolveShorthand, useEventCallback, useId } from '@fluentui/react-utilities';\nimport { InfoButton } from '../InfoButton/InfoButton';\nimport type { InfoLabelProps, InfoLabelState } from './InfoLabel.types';\n\n/**\n * Create the state required to render InfoLabel.\n *\n * The returned state can be modified with hooks such as useInfoLabelStyles_unstable,\n * before being passed to renderInfoLabel_unstable.\n *\n * @param props - props from this instance of InfoLabel\n * @param ref - reference to label element of InfoLabel\n */\nexport const useInfoLabel_unstable = (props: InfoLabelProps, ref: React.Ref<HTMLLabelElement>): InfoLabelState => {\n const {\n root: rootShorthand,\n label: labelShorthand,\n infoButton: infoButtonShorthand,\n info,\n size,\n className,\n style,\n ...labelProps\n } = props;\n const baseId = useId('infolabel-');\n const [open, setOpen] = React.useState(false);\n\n const root = resolveShorthand(rootShorthand, {\n required: true,\n defaultProps: {\n className,\n style,\n },\n });\n\n const label = resolveShorthand(labelShorthand, {\n required: true,\n defaultProps: {\n id: baseId + '__label',\n ref,\n size,\n ...labelProps,\n },\n });\n\n const infoButton = resolveShorthand(infoButtonShorthand, {\n required: !!info,\n defaultProps: {\n id: baseId + '__infoButton',\n size,\n info,\n },\n });\n\n const infoButtonPopover = resolveShorthand(infoButton?.popover, { required: true });\n infoButtonPopover.onOpenChange = useEventCallback(\n mergeCallbacks(infoButtonPopover.onOpenChange, (e, data) => {\n setOpen(data.open);\n }),\n );\n\n if (infoButton) {\n infoButton.popover = infoButtonPopover;\n infoButton.info = resolveShorthand(infoButton?.info, {\n defaultProps: {\n id: baseId + '__info',\n },\n });\n\n infoButton['aria-labelledby'] ??= `${label.id} ${infoButton.id}`;\n\n if (open) {\n root['aria-owns'] ??= infoButton.info?.id;\n }\n }\n\n return {\n size,\n components: {\n root: 'span',\n label: Label,\n infoButton: InfoButton,\n },\n root,\n label,\n infoButton,\n };\n};\n"],"names":["infoButton","root","React","Label","mergeCallbacks","resolveShorthand","useEventCallback","useId","InfoButton","useInfoLabel_unstable","props","ref","rootShorthand","label","labelShorthand","infoButtonShorthand","info","size","className","style","labelProps","baseId","open","setOpen","useState","required","defaultProps","id","infoButtonPopover","popover","onOpenChange","e","data","components"],"mappings":"IAwEIA,aAAW,iBAGTC,OAAK;AA3EX,YAAYC,WAAW,QAAQ;AAE/B,SAASC,KAAK,QAAQ,wBAAwB;AAC9C,SAASC,cAAc,EAAEC,gBAAgB,EAAEC,gBAAgB,EAAEC,KAAK,QAAQ,4BAA4B;AACtG,SAASC,UAAU,QAAQ,2BAA2B;AAGtD;;;;;;;;CAQC,GACD,OAAO,MAAMC,wBAAwB,CAACC,OAAuBC,MAAqD;IAChH,MAAM,EACJV,MAAMW,cAAa,EACnBC,OAAOC,eAAc,EACrBd,YAAYe,oBAAmB,EAC/BC,KAAI,EACJC,KAAI,EACJC,UAAS,EACTC,MAAK,EACL,GAAGC,YACJ,GAAGV;IACJ,MAAMW,SAASd,MAAM;IACrB,MAAM,CAACe,MAAMC,QAAQ,GAAGrB,MAAMsB,QAAQ,CAAC,KAAK;IAE5C,MAAMvB,OAAOI,iBAAiBO,eAAe;QAC3Ca,UAAU,IAAI;QACdC,cAAc;YACZR;YACAC;QACF;IACF;IAEA,MAAMN,QAAQR,iBAAiBS,gBAAgB;QAC7CW,UAAU,IAAI;QACdC,cAAc;YACZC,IAAIN,SAAS;YACbV;YACAM;YACA,GAAGG,UAAU;QACf;IACF;IAEA,MAAMpB,aAAaK,iBAAiBU,qBAAqB;QACvDU,UAAU,CAAC,CAACT;QACZU,cAAc;YACZC,IAAIN,SAAS;YACbJ;YACAD;QACF;IACF;IAEA,MAAMY,oBAAoBvB,iBAAiBL,uBAAAA,wBAAAA,KAAAA,IAAAA,WAAY6B,OAAO,EAAE;QAAEJ,UAAU,IAAI;IAAC;IACjFG,kBAAkBE,YAAY,GAAGxB,iBAC/BF,eAAewB,kBAAkBE,YAAY,EAAE,CAACC,GAAGC,OAAS;QAC1DT,QAAQS,KAAKV,IAAI;IACnB;IAGF,IAAItB,YAAY;QACdA,WAAW6B,OAAO,GAAGD;QACrB5B,WAAWgB,IAAI,GAAGX,iBAAiBL,uBAAAA,wBAAAA,KAAAA,IAAAA,WAAYgB,IAAI,EAAE;YACnDU,cAAc;gBACZC,IAAIN,SAAS;YACf;QACF;;QAEArB,MAAAA,cAAAA,WAAU,CAAC,kBAAA,kBAAkB,iCAA7BA,WAAU,CAAC,gBAAkB,GAAK,CAAC,EAAEa,MAAMc,EAAE,CAAC,CAAC,EAAE3B,WAAW2B,EAAE,CAAC,CAAC;QAEhE,IAAIL,MAAM;gBACctB;;YAAtBC,OAAAA,QAAAA,KAAI,CAAC,YAAA,YAAY,mCAAjBA,KAAI,CAAC,UAAY,GAAKD,CAAAA,mBAAAA,WAAWgB,IAAI,cAAfhB,8BAAAA,KAAAA,IAAAA,iBAAiB2B,EAAE;QAC3C,CAAC;IACH,CAAC;IAED,OAAO;QACLV;QACAgB,YAAY;YACVhC,MAAM;YACNY,OAAOV;YACPH,YAAYQ;QACd;QACAP;QACAY;QACAb;IACF;AACF,EAAE"}
package/lib/index.js CHANGED
@@ -1,4 +1,2 @@
1
1
  export { InfoButton, infoButtonClassNames, renderInfoButton_unstable, useInfoButtonStyles_unstable, useInfoButton_unstable } from './InfoButton';
2
2
  export { InfoLabel, infoLabelClassNames, renderInfoLabel_unstable, useInfoLabelStyles_unstable, useInfoLabel_unstable } from './InfoLabel';
3
- export { InfoIcon, infoIconClassNames, renderInfoIcon_unstable, useInfoIconStyles_unstable, useInfoIcon_unstable } from './InfoIcon';
4
- export { InfoIconLabel, infoIconLabelClassNames, renderInfoIconLabel_unstable, useInfoIconLabelStyles_unstable, useInfoIconLabel_unstable } from './InfoIconLabel';
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"sourcesContent":["export {\n InfoButton,\n infoButtonClassNames,\n renderInfoButton_unstable,\n useInfoButtonStyles_unstable,\n useInfoButton_unstable,\n} from './InfoButton';\nexport type { InfoButtonProps, InfoButtonSlots, InfoButtonState } from './InfoButton';\nexport {\n InfoLabel,\n infoLabelClassNames,\n renderInfoLabel_unstable,\n useInfoLabelStyles_unstable,\n useInfoLabel_unstable,\n} from './InfoLabel';\nexport type { InfoLabelProps, InfoLabelSlots, InfoLabelState } from './InfoLabel';\nexport {\n InfoIcon,\n infoIconClassNames,\n renderInfoIcon_unstable,\n useInfoIconStyles_unstable,\n useInfoIcon_unstable,\n} from './InfoIcon';\nexport type { InfoIconProps, InfoIconSlots, InfoIconState } from './InfoIcon';\nexport {\n InfoIconLabel,\n infoIconLabelClassNames,\n renderInfoIconLabel_unstable,\n useInfoIconLabelStyles_unstable,\n useInfoIconLabel_unstable,\n} from './InfoIconLabel';\nexport type { InfoIconLabelProps, InfoIconLabelSlots, InfoIconLabelState } from './InfoIconLabel';\n"],"names":["InfoButton","infoButtonClassNames","renderInfoButton_unstable","useInfoButtonStyles_unstable","useInfoButton_unstable","InfoLabel","infoLabelClassNames","renderInfoLabel_unstable","useInfoLabelStyles_unstable","useInfoLabel_unstable","InfoIcon","infoIconClassNames","renderInfoIcon_unstable","useInfoIconStyles_unstable","useInfoIcon_unstable","InfoIconLabel","infoIconLabelClassNames","renderInfoIconLabel_unstable","useInfoIconLabelStyles_unstable","useInfoIconLabel_unstable"],"mappings":"AAAA,SACEA,UAAU,EACVC,oBAAoB,EACpBC,yBAAyB,EACzBC,4BAA4B,EAC5BC,sBAAsB,QACjB,eAAe;AAEtB,SACEC,SAAS,EACTC,mBAAmB,EACnBC,wBAAwB,EACxBC,2BAA2B,EAC3BC,qBAAqB,QAChB,cAAc;AAErB,SACEC,QAAQ,EACRC,kBAAkB,EAClBC,uBAAuB,EACvBC,0BAA0B,EAC1BC,oBAAoB,QACf,aAAa;AAEpB,SACEC,aAAa,EACbC,uBAAuB,EACvBC,4BAA4B,EAC5BC,+BAA+B,EAC/BC,yBAAyB,QACpB,kBAAkB"}
1
+ {"version":3,"sources":["index.ts"],"sourcesContent":["export {\n InfoButton,\n infoButtonClassNames,\n renderInfoButton_unstable,\n useInfoButtonStyles_unstable,\n useInfoButton_unstable,\n} from './InfoButton';\nexport type { InfoButtonProps, InfoButtonSlots, InfoButtonState } from './InfoButton';\nexport {\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":["InfoButton","infoButtonClassNames","renderInfoButton_unstable","useInfoButtonStyles_unstable","useInfoButton_unstable","InfoLabel","infoLabelClassNames","renderInfoLabel_unstable","useInfoLabelStyles_unstable","useInfoLabel_unstable"],"mappings":"AAAA,SACEA,UAAU,EACVC,oBAAoB,EACpBC,yBAAyB,EACzBC,4BAA4B,EAC5BC,sBAAsB,QACjB,eAAe;AAEtB,SACEC,SAAS,EACTC,mBAAmB,EACnBC,wBAAwB,EACxBC,2BAA2B,EAC3BC,qBAAqB,QAChB,cAAc"}
@@ -15,6 +15,7 @@ var _infoButton1, _arialabelledby, _root, _ariaowns;
15
15
  const useInfoLabel_unstable = (props, ref)=>{
16
16
  const { root: rootShorthand , label: labelShorthand , infoButton: infoButtonShorthand , info , size , className , style , ...labelProps } = props;
17
17
  const baseId = (0, _reactUtilities.useId)('infolabel-');
18
+ const [open, setOpen] = _react.useState(false);
18
19
  const root = (0, _reactUtilities.resolveShorthand)(rootShorthand, {
19
20
  required: true,
20
21
  defaultProps: {
@@ -39,8 +40,14 @@ const useInfoLabel_unstable = (props, ref)=>{
39
40
  info
40
41
  }
41
42
  });
43
+ const infoButtonPopover = (0, _reactUtilities.resolveShorthand)(infoButton === null || infoButton === void 0 ? void 0 : infoButton.popover, {
44
+ required: true
45
+ });
46
+ infoButtonPopover.onOpenChange = (0, _reactUtilities.useEventCallback)((0, _reactUtilities.mergeCallbacks)(infoButtonPopover.onOpenChange, (e, data)=>{
47
+ setOpen(data.open);
48
+ }));
42
49
  if (infoButton) {
43
- var _infoButton_info;
50
+ infoButton.popover = infoButtonPopover;
44
51
  infoButton.info = (0, _reactUtilities.resolveShorthand)(infoButton === null || infoButton === void 0 ? void 0 : infoButton.info, {
45
52
  defaultProps: {
46
53
  id: baseId + '__info'
@@ -48,8 +55,11 @@ const useInfoLabel_unstable = (props, ref)=>{
48
55
  });
49
56
  var _;
50
57
  (_ = (_infoButton1 = infoButton)[_arialabelledby = 'aria-labelledby']) !== null && _ !== void 0 ? _ : _infoButton1[_arialabelledby] = `${label.id} ${infoButton.id}`;
51
- var _1;
52
- (_1 = (_root = root)[_ariaowns = 'aria-owns']) !== null && _1 !== void 0 ? _1 : _root[_ariaowns] = (_infoButton_info = infoButton.info) === null || _infoButton_info === void 0 ? void 0 : _infoButton_info.id;
58
+ if (open) {
59
+ var _infoButton_info;
60
+ var _1;
61
+ (_1 = (_root = root)[_ariaowns = 'aria-owns']) !== null && _1 !== void 0 ? _1 : _root[_ariaowns] = (_infoButton_info = infoButton.info) === null || _infoButton_info === void 0 ? void 0 : _infoButton_info.id;
62
+ }
53
63
  }
54
64
  return {
55
65
  size,
@@ -1 +1 @@
1
- {"version":3,"sources":["useInfoLabel.js"],"sourcesContent":["var _infoButton, _arialabelledby, _root, _ariaowns;\nimport * as React from 'react';\nimport { Label } from '@fluentui/react-label';\nimport { resolveShorthand, useId } from '@fluentui/react-utilities';\nimport { InfoButton } from '../InfoButton/InfoButton';\n/**\n * Create the state required to render InfoLabel.\n *\n * The returned state can be modified with hooks such as useInfoLabelStyles_unstable,\n * before being passed to renderInfoLabel_unstable.\n *\n * @param props - props from this instance of InfoLabel\n * @param ref - reference to label element of InfoLabel\n */ export const useInfoLabel_unstable = (props, ref)=>{\n const { root: rootShorthand , label: labelShorthand , infoButton: infoButtonShorthand , info , size , className , style , ...labelProps } = props;\n const baseId = useId('infolabel-');\n const root = resolveShorthand(rootShorthand, {\n required: true,\n defaultProps: {\n className,\n style\n }\n });\n const label = resolveShorthand(labelShorthand, {\n required: true,\n defaultProps: {\n id: baseId + '__label',\n ref,\n size,\n ...labelProps\n }\n });\n const infoButton = resolveShorthand(infoButtonShorthand, {\n required: !!info,\n defaultProps: {\n id: baseId + '__infoButton',\n size,\n info\n }\n });\n if (infoButton) {\n var _infoButton_info;\n infoButton.info = resolveShorthand(infoButton === null || infoButton === void 0 ? void 0 : infoButton.info, {\n defaultProps: {\n id: baseId + '__info'\n }\n });\n var _;\n (_ = (_infoButton = infoButton)[_arialabelledby = 'aria-labelledby']) !== null && _ !== void 0 ? _ : _infoButton[_arialabelledby] = `${label.id} ${infoButton.id}`;\n var _1;\n (_1 = (_root = root)[_ariaowns = 'aria-owns']) !== null && _1 !== void 0 ? _1 : _root[_ariaowns] = (_infoButton_info = infoButton.info) === null || _infoButton_info === void 0 ? void 0 : _infoButton_info.id;\n }\n return {\n size,\n components: {\n root: 'span',\n label: Label,\n infoButton: InfoButton\n },\n root,\n label,\n infoButton\n };\n};\n"],"names":["useInfoLabel_unstable","_infoButton","_arialabelledby","_root","_ariaowns","props","ref","root","rootShorthand","label","labelShorthand","infoButton","infoButtonShorthand","info","size","className","style","labelProps","baseId","useId","resolveShorthand","required","defaultProps","id","_infoButton_info","_","_1","components","Label","InfoButton"],"mappings":";;;;+BAaiBA;;aAAAA;;;6DAZM;4BACD;gCACkB;4BACb;AAJ3B,IAAIC,cAAaC,iBAAiBC,OAAOC;AAa9B,MAAMJ,wBAAwB,CAACK,OAAOC,MAAM;IACnD,MAAM,EAAEC,MAAMC,cAAa,EAAGC,OAAOC,eAAc,EAAGC,YAAYC,oBAAmB,EAAGC,KAAI,EAAGC,KAAI,EAAGC,UAAS,EAAGC,MAAK,EAAG,GAAGC,YAAY,GAAGZ;IAC5I,MAAMa,SAASC,IAAAA,qBAAK,EAAC;IACrB,MAAMZ,OAAOa,IAAAA,gCAAgB,EAACZ,eAAe;QACzCa,UAAU,IAAI;QACdC,cAAc;YACVP;YACAC;QACJ;IACJ;IACA,MAAMP,QAAQW,IAAAA,gCAAgB,EAACV,gBAAgB;QAC3CW,UAAU,IAAI;QACdC,cAAc;YACVC,IAAIL,SAAS;YACbZ;YACAQ;YACA,GAAGG,UAAU;QACjB;IACJ;IACA,MAAMN,aAAaS,IAAAA,gCAAgB,EAACR,qBAAqB;QACrDS,UAAU,CAAC,CAACR;QACZS,cAAc;YACVC,IAAIL,SAAS;YACbJ;YACAD;QACJ;IACJ;IACA,IAAIF,YAAY;QACZ,IAAIa;QACJb,WAAWE,IAAI,GAAGO,IAAAA,gCAAgB,EAACT,eAAe,IAAI,IAAIA,eAAe,KAAK,IAAI,KAAK,IAAIA,WAAWE,IAAI,EAAE;YACxGS,cAAc;gBACVC,IAAIL,SAAS;YACjB;QACJ;QACA,IAAIO;QACHA,CAAAA,IAAI,AAACxB,CAAAA,eAAcU,UAAS,CAAE,CAACT,kBAAkB,kBAAkB,AAAD,MAAO,IAAI,IAAIuB,MAAM,KAAK,IAAIA,IAAIxB,YAAW,CAACC,gBAAgB,GAAG,CAAC,EAAEO,MAAMc,EAAE,CAAC,CAAC,EAAEZ,WAAWY,EAAE,CAAC,CAAC;QAClK,IAAIG;QACHA,CAAAA,KAAK,AAACvB,CAAAA,QAAQI,IAAG,CAAE,CAACH,YAAY,YAAY,AAAD,MAAO,IAAI,IAAIsB,OAAO,KAAK,IAAIA,KAAKvB,KAAK,CAACC,UAAU,GAAG,AAACoB,CAAAA,mBAAmBb,WAAWE,IAAI,AAAD,MAAO,IAAI,IAAIW,qBAAqB,KAAK,IAAI,KAAK,IAAIA,iBAAiBD,EAAE;IAClN,CAAC;IACD,OAAO;QACHT;QACAa,YAAY;YACRpB,MAAM;YACNE,OAAOmB,iBAAK;YACZjB,YAAYkB,sBAAU;QAC1B;QACAtB;QACAE;QACAE;IACJ;AACJ"}
1
+ {"version":3,"sources":["useInfoLabel.js"],"sourcesContent":["var _infoButton, _arialabelledby, _root, _ariaowns;\nimport * as React from 'react';\nimport { Label } from '@fluentui/react-label';\nimport { mergeCallbacks, resolveShorthand, useEventCallback, useId } from '@fluentui/react-utilities';\nimport { InfoButton } from '../InfoButton/InfoButton';\n/**\n * Create the state required to render InfoLabel.\n *\n * The returned state can be modified with hooks such as useInfoLabelStyles_unstable,\n * before being passed to renderInfoLabel_unstable.\n *\n * @param props - props from this instance of InfoLabel\n * @param ref - reference to label element of InfoLabel\n */ export const useInfoLabel_unstable = (props, ref)=>{\n const { root: rootShorthand , label: labelShorthand , infoButton: infoButtonShorthand , info , size , className , style , ...labelProps } = props;\n const baseId = useId('infolabel-');\n const [open, setOpen] = React.useState(false);\n const root = resolveShorthand(rootShorthand, {\n required: true,\n defaultProps: {\n className,\n style\n }\n });\n const label = resolveShorthand(labelShorthand, {\n required: true,\n defaultProps: {\n id: baseId + '__label',\n ref,\n size,\n ...labelProps\n }\n });\n const infoButton = resolveShorthand(infoButtonShorthand, {\n required: !!info,\n defaultProps: {\n id: baseId + '__infoButton',\n size,\n info\n }\n });\n const infoButtonPopover = resolveShorthand(infoButton === null || infoButton === void 0 ? void 0 : infoButton.popover, {\n required: true\n });\n infoButtonPopover.onOpenChange = useEventCallback(mergeCallbacks(infoButtonPopover.onOpenChange, (e, data)=>{\n setOpen(data.open);\n }));\n if (infoButton) {\n infoButton.popover = infoButtonPopover;\n infoButton.info = resolveShorthand(infoButton === null || infoButton === void 0 ? void 0 : infoButton.info, {\n defaultProps: {\n id: baseId + '__info'\n }\n });\n var _;\n (_ = (_infoButton = infoButton)[_arialabelledby = 'aria-labelledby']) !== null && _ !== void 0 ? _ : _infoButton[_arialabelledby] = `${label.id} ${infoButton.id}`;\n if (open) {\n var _infoButton_info;\n var _1;\n (_1 = (_root = root)[_ariaowns = 'aria-owns']) !== null && _1 !== void 0 ? _1 : _root[_ariaowns] = (_infoButton_info = infoButton.info) === null || _infoButton_info === void 0 ? void 0 : _infoButton_info.id;\n }\n }\n return {\n size,\n components: {\n root: 'span',\n label: Label,\n infoButton: InfoButton\n },\n root,\n label,\n infoButton\n };\n};\n"],"names":["useInfoLabel_unstable","_infoButton","_arialabelledby","_root","_ariaowns","props","ref","root","rootShorthand","label","labelShorthand","infoButton","infoButtonShorthand","info","size","className","style","labelProps","baseId","useId","open","setOpen","React","useState","resolveShorthand","required","defaultProps","id","infoButtonPopover","popover","onOpenChange","useEventCallback","mergeCallbacks","e","data","_","_infoButton_info","_1","components","Label","InfoButton"],"mappings":";;;;+BAaiBA;;aAAAA;;;6DAZM;4BACD;gCACoD;4BAC/C;AAJ3B,IAAIC,cAAaC,iBAAiBC,OAAOC;AAa9B,MAAMJ,wBAAwB,CAACK,OAAOC,MAAM;IACnD,MAAM,EAAEC,MAAMC,cAAa,EAAGC,OAAOC,eAAc,EAAGC,YAAYC,oBAAmB,EAAGC,KAAI,EAAGC,KAAI,EAAGC,UAAS,EAAGC,MAAK,EAAG,GAAGC,YAAY,GAAGZ;IAC5I,MAAMa,SAASC,IAAAA,qBAAK,EAAC;IACrB,MAAM,CAACC,MAAMC,QAAQ,GAAGC,OAAMC,QAAQ,CAAC,KAAK;IAC5C,MAAMhB,OAAOiB,IAAAA,gCAAgB,EAAChB,eAAe;QACzCiB,UAAU,IAAI;QACdC,cAAc;YACVX;YACAC;QACJ;IACJ;IACA,MAAMP,QAAQe,IAAAA,gCAAgB,EAACd,gBAAgB;QAC3Ce,UAAU,IAAI;QACdC,cAAc;YACVC,IAAIT,SAAS;YACbZ;YACAQ;YACA,GAAGG,UAAU;QACjB;IACJ;IACA,MAAMN,aAAaa,IAAAA,gCAAgB,EAACZ,qBAAqB;QACrDa,UAAU,CAAC,CAACZ;QACZa,cAAc;YACVC,IAAIT,SAAS;YACbJ;YACAD;QACJ;IACJ;IACA,MAAMe,oBAAoBJ,IAAAA,gCAAgB,EAACb,eAAe,IAAI,IAAIA,eAAe,KAAK,IAAI,KAAK,IAAIA,WAAWkB,OAAO,EAAE;QACnHJ,UAAU,IAAI;IAClB;IACAG,kBAAkBE,YAAY,GAAGC,IAAAA,gCAAgB,EAACC,IAAAA,8BAAc,EAACJ,kBAAkBE,YAAY,EAAE,CAACG,GAAGC,OAAO;QACxGb,QAAQa,KAAKd,IAAI;IACrB;IACA,IAAIT,YAAY;QACZA,WAAWkB,OAAO,GAAGD;QACrBjB,WAAWE,IAAI,GAAGW,IAAAA,gCAAgB,EAACb,eAAe,IAAI,IAAIA,eAAe,KAAK,IAAI,KAAK,IAAIA,WAAWE,IAAI,EAAE;YACxGa,cAAc;gBACVC,IAAIT,SAAS;YACjB;QACJ;QACA,IAAIiB;QACHA,CAAAA,IAAI,AAAClC,CAAAA,eAAcU,UAAS,CAAE,CAACT,kBAAkB,kBAAkB,AAAD,MAAO,IAAI,IAAIiC,MAAM,KAAK,IAAIA,IAAIlC,YAAW,CAACC,gBAAgB,GAAG,CAAC,EAAEO,MAAMkB,EAAE,CAAC,CAAC,EAAEhB,WAAWgB,EAAE,CAAC,CAAC;QAClK,IAAIP,MAAM;YACN,IAAIgB;YACJ,IAAIC;YACHA,CAAAA,KAAK,AAAClC,CAAAA,QAAQI,IAAG,CAAE,CAACH,YAAY,YAAY,AAAD,MAAO,IAAI,IAAIiC,OAAO,KAAK,IAAIA,KAAKlC,KAAK,CAACC,UAAU,GAAG,AAACgC,CAAAA,mBAAmBzB,WAAWE,IAAI,AAAD,MAAO,IAAI,IAAIuB,qBAAqB,KAAK,IAAI,KAAK,IAAIA,iBAAiBT,EAAE;QAClN,CAAC;IACL,CAAC;IACD,OAAO;QACHb;QACAwB,YAAY;YACR/B,MAAM;YACNE,OAAO8B,iBAAK;YACZ5B,YAAY6B,sBAAU;QAC1B;QACAjC;QACAE;QACAE;IACJ;AACJ"}
@@ -18,19 +18,7 @@ _export(exports, {
18
18
  infoLabelClassNames: ()=>_infoLabel.infoLabelClassNames,
19
19
  renderInfoLabel_unstable: ()=>_infoLabel.renderInfoLabel_unstable,
20
20
  useInfoLabelStyles_unstable: ()=>_infoLabel.useInfoLabelStyles_unstable,
21
- useInfoLabel_unstable: ()=>_infoLabel.useInfoLabel_unstable,
22
- InfoIcon: ()=>_infoIcon.InfoIcon,
23
- infoIconClassNames: ()=>_infoIcon.infoIconClassNames,
24
- renderInfoIcon_unstable: ()=>_infoIcon.renderInfoIcon_unstable,
25
- useInfoIconStyles_unstable: ()=>_infoIcon.useInfoIconStyles_unstable,
26
- useInfoIcon_unstable: ()=>_infoIcon.useInfoIcon_unstable,
27
- InfoIconLabel: ()=>_infoIconLabel.InfoIconLabel,
28
- infoIconLabelClassNames: ()=>_infoIconLabel.infoIconLabelClassNames,
29
- renderInfoIconLabel_unstable: ()=>_infoIconLabel.renderInfoIconLabel_unstable,
30
- useInfoIconLabelStyles_unstable: ()=>_infoIconLabel.useInfoIconLabelStyles_unstable,
31
- useInfoIconLabel_unstable: ()=>_infoIconLabel.useInfoIconLabel_unstable
21
+ useInfoLabel_unstable: ()=>_infoLabel.useInfoLabel_unstable
32
22
  });
33
23
  const _infoButton = require("./InfoButton");
34
24
  const _infoLabel = require("./InfoLabel");
35
- const _infoIcon = require("./InfoIcon");
36
- const _infoIconLabel = require("./InfoIconLabel");
@@ -1 +1 @@
1
- {"version":3,"sources":["index.js"],"sourcesContent":["export { InfoButton, infoButtonClassNames, renderInfoButton_unstable, useInfoButtonStyles_unstable, useInfoButton_unstable } from './InfoButton';\nexport { InfoLabel, infoLabelClassNames, renderInfoLabel_unstable, useInfoLabelStyles_unstable, useInfoLabel_unstable } from './InfoLabel';\nexport { InfoIcon, infoIconClassNames, renderInfoIcon_unstable, useInfoIconStyles_unstable, useInfoIcon_unstable } from './InfoIcon';\nexport { InfoIconLabel, infoIconLabelClassNames, renderInfoIconLabel_unstable, useInfoIconLabelStyles_unstable, useInfoIconLabel_unstable } from './InfoIconLabel';\n"],"names":["InfoButton","infoButtonClassNames","renderInfoButton_unstable","useInfoButtonStyles_unstable","useInfoButton_unstable","InfoLabel","infoLabelClassNames","renderInfoLabel_unstable","useInfoLabelStyles_unstable","useInfoLabel_unstable","InfoIcon","infoIconClassNames","renderInfoIcon_unstable","useInfoIconStyles_unstable","useInfoIcon_unstable","InfoIconLabel","infoIconLabelClassNames","renderInfoIconLabel_unstable","useInfoIconLabelStyles_unstable","useInfoIconLabel_unstable"],"mappings":";;;;;;;;;;;IAASA,UAAU,MAAVA,sBAAU;IAAEC,oBAAoB,MAApBA,gCAAoB;IAAEC,yBAAyB,MAAzBA,qCAAyB;IAAEC,4BAA4B,MAA5BA,wCAA4B;IAAEC,sBAAsB,MAAtBA,kCAAsB;IACjHC,SAAS,MAATA,oBAAS;IAAEC,mBAAmB,MAAnBA,8BAAmB;IAAEC,wBAAwB,MAAxBA,mCAAwB;IAAEC,2BAA2B,MAA3BA,sCAA2B;IAAEC,qBAAqB,MAArBA,gCAAqB;IAC5GC,QAAQ,MAARA,kBAAQ;IAAEC,kBAAkB,MAAlBA,4BAAkB;IAAEC,uBAAuB,MAAvBA,iCAAuB;IAAEC,0BAA0B,MAA1BA,oCAA0B;IAAEC,oBAAoB,MAApBA,8BAAoB;IACvGC,aAAa,MAAbA,4BAAa;IAAEC,uBAAuB,MAAvBA,sCAAuB;IAAEC,4BAA4B,MAA5BA,2CAA4B;IAAEC,+BAA+B,MAA/BA,8CAA+B;IAAEC,yBAAyB,MAAzBA,wCAAyB;;4BAHP;2BACL;0BACL;+BACyB"}
1
+ {"version":3,"sources":["index.js"],"sourcesContent":["export { InfoButton, infoButtonClassNames, renderInfoButton_unstable, useInfoButtonStyles_unstable, useInfoButton_unstable } from './InfoButton';\nexport { InfoLabel, infoLabelClassNames, renderInfoLabel_unstable, useInfoLabelStyles_unstable, useInfoLabel_unstable } from './InfoLabel';\n"],"names":["InfoButton","infoButtonClassNames","renderInfoButton_unstable","useInfoButtonStyles_unstable","useInfoButton_unstable","InfoLabel","infoLabelClassNames","renderInfoLabel_unstable","useInfoLabelStyles_unstable","useInfoLabel_unstable"],"mappings":";;;;;;;;;;;IAASA,UAAU,MAAVA,sBAAU;IAAEC,oBAAoB,MAApBA,gCAAoB;IAAEC,yBAAyB,MAAzBA,qCAAyB;IAAEC,4BAA4B,MAA5BA,wCAA4B;IAAEC,sBAAsB,MAAtBA,kCAAsB;IACjHC,SAAS,MAATA,oBAAS;IAAEC,mBAAmB,MAAnBA,8BAAmB;IAAEC,wBAAwB,MAAxBA,mCAAwB;IAAEC,2BAA2B,MAA3BA,sCAA2B;IAAEC,qBAAqB,MAArBA,gCAAqB;;4BADa;2BACL"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/react-infobutton",
3
- "version": "9.0.0-beta.40",
3
+ "version": "9.0.0-beta.42",
4
4
  "description": "React components for building web experiences",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
@@ -28,18 +28,18 @@
28
28
  "devDependencies": {
29
29
  "@fluentui/eslint-plugin": "*",
30
30
  "@fluentui/react-conformance": "*",
31
- "@fluentui/react-conformance-griffel": "9.0.0-beta.23",
31
+ "@fluentui/react-conformance-griffel": "*",
32
32
  "@fluentui/scripts-api-extractor": "*",
33
33
  "@fluentui/scripts-tasks": "*"
34
34
  },
35
35
  "dependencies": {
36
36
  "@fluentui/react-icons": "^2.0.203",
37
- "@fluentui/react-label": "^9.1.19",
38
- "@fluentui/react-popover": "^9.7.5",
37
+ "@fluentui/react-label": "^9.1.20",
38
+ "@fluentui/react-popover": "^9.7.6",
39
39
  "@fluentui/react-tabster": "^9.10.0",
40
40
  "@fluentui/react-theme": "^9.1.9",
41
41
  "@fluentui/react-utilities": "^9.10.1",
42
- "@fluentui/react-jsx-runtime": "9.0.0-alpha.10",
42
+ "@fluentui/react-jsx-runtime": "9.0.0-alpha.11",
43
43
  "@griffel/react": "^1.5.7",
44
44
  "@swc/helpers": "^0.4.14"
45
45
  },
package/lib/InfoIcon.js DELETED
@@ -1 +0,0 @@
1
- export * from './components/InfoIcon/index';
@@ -1 +0,0 @@
1
- {"version":3,"sources":["InfoIcon.ts"],"sourcesContent":["export * from './components/InfoIcon/index';\n"],"names":[],"mappings":"AAAA,cAAc,8BAA8B"}
@@ -1 +0,0 @@
1
- export * from './components/InfoIconLabel/index';
@@ -1 +0,0 @@
1
- {"version":3,"sources":["InfoIconLabel.ts"],"sourcesContent":["export * from './components/InfoIconLabel/index';\n"],"names":[],"mappings":"AAAA,cAAc,mCAAmC"}
@@ -1,12 +0,0 @@
1
- import * as React from 'react';
2
- import { useInfoIcon_unstable } from './useInfoIcon';
3
- import { renderInfoIcon_unstable } from './renderInfoIcon';
4
- import { useInfoIconStyles_unstable } from './useInfoIconStyles.styles';
5
- /**
6
- * InfoIcon component - TODO: add more docs
7
- */ export const InfoIcon = /*#__PURE__*/ React.forwardRef((props, ref)=>{
8
- const state = useInfoIcon_unstable(props, ref);
9
- useInfoIconStyles_unstable(state);
10
- return renderInfoIcon_unstable(state);
11
- });
12
- InfoIcon.displayName = 'InfoIcon';
@@ -1 +0,0 @@
1
- {"version":3,"sources":["InfoIcon.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useInfoIcon_unstable } from './useInfoIcon';\nimport { renderInfoIcon_unstable } from './renderInfoIcon';\nimport { useInfoIconStyles_unstable } from './useInfoIconStyles.styles';\nimport type { InfoIconProps } from './InfoIcon.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\n\n/**\n * InfoIcon component - TODO: add more docs\n */\nexport const InfoIcon: ForwardRefComponent<InfoIconProps> = React.forwardRef((props, ref) => {\n const state = useInfoIcon_unstable(props, ref);\n\n useInfoIconStyles_unstable(state);\n return renderInfoIcon_unstable(state);\n});\n\nInfoIcon.displayName = 'InfoIcon';\n"],"names":["React","useInfoIcon_unstable","renderInfoIcon_unstable","useInfoIconStyles_unstable","InfoIcon","forwardRef","props","ref","state","displayName"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,oBAAoB,QAAQ,gBAAgB;AACrD,SAASC,uBAAuB,QAAQ,mBAAmB;AAC3D,SAASC,0BAA0B,QAAQ,6BAA6B;AAIxE;;CAEC,GACD,OAAO,MAAMC,yBAA+CJ,MAAMK,UAAU,CAAC,CAACC,OAAOC,MAAQ;IAC3F,MAAMC,QAAQP,qBAAqBK,OAAOC;IAE1CJ,2BAA2BK;IAC3B,OAAON,wBAAwBM;AACjC,GAAG;AAEHJ,SAASK,WAAW,GAAG"}
@@ -1,2 +0,0 @@
1
- export { }; // TODO: Remove semicolon from previous line, uncomment next line, and provide union of props to pick from InfoIconProps.
2
- // & Required<Pick<InfoIconProps, 'propName'>>
@@ -1 +0,0 @@
1
- {"version":3,"sources":["InfoIcon.types.ts"],"sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\n\nexport type InfoIconSlots = {\n root: Slot<'div'>;\n};\n\n/**\n * InfoIcon Props\n */\nexport type InfoIconProps = ComponentProps<InfoIconSlots> & {};\n\n/**\n * State used in rendering InfoIcon\n */\nexport type InfoIconState = ComponentState<InfoIconSlots>;\n// TODO: Remove semicolon from previous line, uncomment next line, and provide union of props to pick from InfoIconProps.\n// & Required<Pick<InfoIconProps, 'propName'>>\n"],"names":[],"mappings":"AAAA,WAc0D,CAC1D,yHAAyH;CACzH,8CAA8C"}
@@ -1,5 +0,0 @@
1
- export * from './InfoIcon';
2
- export * from './InfoIcon.types';
3
- export * from './renderInfoIcon';
4
- export * from './useInfoIcon';
5
- export * from './useInfoIconStyles.styles';
@@ -1 +0,0 @@
1
- {"version":3,"sources":["index.ts"],"sourcesContent":["export * from './InfoIcon';\nexport * from './InfoIcon.types';\nexport * from './renderInfoIcon';\nexport * from './useInfoIcon';\nexport * from './useInfoIconStyles.styles';\n"],"names":[],"mappings":"AAAA,cAAc,aAAa;AAC3B,cAAc,mBAAmB;AACjC,cAAc,mBAAmB;AACjC,cAAc,gBAAgB;AAC9B,cAAc,6BAA6B"}
@@ -1,9 +0,0 @@
1
- /** @jsxRuntime classic */ /** @jsx createElement */ import { createElement } from '@fluentui/react-jsx-runtime';
2
- import { getSlotsNext } from '@fluentui/react-utilities';
3
- /**
4
- * Render the final JSX of InfoIcon
5
- */ export const renderInfoIcon_unstable = (state)=>{
6
- const { slots , slotProps } = getSlotsNext(state);
7
- // TODO Add additional slots in the appropriate place
8
- return /*#__PURE__*/ createElement(slots.root, slotProps.root);
9
- };
@@ -1 +0,0 @@
1
- {"version":3,"sources":["renderInfoIcon.tsx"],"sourcesContent":["/** @jsxRuntime classic */\n/** @jsx createElement */\n\nimport { createElement } from '@fluentui/react-jsx-runtime';\nimport { getSlotsNext } from '@fluentui/react-utilities';\nimport type { InfoIconState, InfoIconSlots } from './InfoIcon.types';\n\n/**\n * Render the final JSX of InfoIcon\n */\nexport const renderInfoIcon_unstable = (state: InfoIconState) => {\n const { slots, slotProps } = getSlotsNext<InfoIconSlots>(state);\n\n // TODO Add additional slots in the appropriate place\n return <slots.root {...slotProps.root} />;\n};\n"],"names":["createElement","getSlotsNext","renderInfoIcon_unstable","state","slots","slotProps","root"],"mappings":"AAAA,wBAAwB,GACxB,uBAAuB,GAEvB,SAASA,aAAa,QAAQ,8BAA8B;AAC5D,SAASC,YAAY,QAAQ,4BAA4B;AAGzD;;CAEC,GACD,OAAO,MAAMC,0BAA0B,CAACC,QAAyB;IAC/D,MAAM,EAAEC,MAAK,EAAEC,UAAS,EAAE,GAAGJ,aAA4BE;IAEzD,qDAAqD;IACrD,qBAAO,AAbT,cAaUC,MAAME,IAAI,EAAKD,UAAUC,IAAI;AACvC,EAAE"}
@@ -1,25 +0,0 @@
1
- import * as React from 'react';
2
- import { getNativeElementProps } from '@fluentui/react-utilities';
3
- /**
4
- * Create the state required to render InfoIcon.
5
- *
6
- * The returned state can be modified with hooks such as useInfoIconStyles_unstable,
7
- * before being passed to renderInfoIcon_unstable.
8
- *
9
- * @param props - props from this instance of InfoIcon
10
- * @param ref - reference to root HTMLElement of InfoIcon
11
- */ export const useInfoIcon_unstable = (props, ref)=>{
12
- return {
13
- // TODO add appropriate props/defaults
14
- components: {
15
- // TODO add each slot's element type or component
16
- root: 'div'
17
- },
18
- // TODO add appropriate slots, for example:
19
- // mySlot: resolveShorthand(props.mySlot),
20
- root: getNativeElementProps('div', {
21
- ref,
22
- ...props
23
- })
24
- };
25
- };
@@ -1 +0,0 @@
1
- {"version":3,"sources":["useInfoIcon.ts"],"sourcesContent":["import * as React from 'react';\nimport { getNativeElementProps } from '@fluentui/react-utilities';\nimport type { InfoIconProps, InfoIconState } from './InfoIcon.types';\n\n/**\n * Create the state required to render InfoIcon.\n *\n * The returned state can be modified with hooks such as useInfoIconStyles_unstable,\n * before being passed to renderInfoIcon_unstable.\n *\n * @param props - props from this instance of InfoIcon\n * @param ref - reference to root HTMLElement of InfoIcon\n */\nexport const useInfoIcon_unstable = (props: InfoIconProps, ref: React.Ref<HTMLElement>): InfoIconState => {\n return {\n // TODO add appropriate props/defaults\n components: {\n // TODO add each slot's element type or component\n root: 'div',\n },\n // TODO add appropriate slots, for example:\n // mySlot: resolveShorthand(props.mySlot),\n root: getNativeElementProps('div', {\n ref,\n ...props,\n }),\n };\n};\n"],"names":["React","getNativeElementProps","useInfoIcon_unstable","props","ref","components","root"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,qBAAqB,QAAQ,4BAA4B;AAGlE;;;;;;;;CAQC,GACD,OAAO,MAAMC,uBAAuB,CAACC,OAAsBC,MAA+C;IACxG,OAAO;QACL,sCAAsC;QACtCC,YAAY;YACV,iDAAiD;YACjDC,MAAM;QACR;QACA,2CAA2C;QAC3C,0CAA0C;QAC1CA,MAAML,sBAAsB,OAAO;YACjCG;YACA,GAAGD,KAAK;QACV;IACF;AACF,EAAE"}
@@ -1,21 +0,0 @@
1
- import { __styles, mergeClasses } from '@griffel/react';
2
- export const infoIconClassNames = {
3
- root: 'fui-InfoIcon'
4
- };
5
- /**
6
- * Styles for the root slot
7
- */
8
- const useStyles = /*#__PURE__*/__styles({
9
- root: {}
10
- }, {});
11
- /**
12
- * Apply styling to the InfoIcon slots based on the state
13
- */
14
- export const useInfoIconStyles_unstable = state => {
15
- const styles = useStyles();
16
- state.root.className = mergeClasses(infoIconClassNames.root, styles.root, state.root.className);
17
- // TODO Add class names to slots, for example:
18
- // state.mySlot.className = mergeClasses(styles.mySlot, state.mySlot.className);
19
- return state;
20
- };
21
- //# sourceMappingURL=useInfoIconStyles.styles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["__styles","mergeClasses","infoIconClassNames","root","useStyles","useInfoIconStyles_unstable","state","styles","className"],"sources":["useInfoIconStyles.styles.js"],"sourcesContent":["import { makeStyles, mergeClasses } from '@griffel/react';\nexport const infoIconClassNames = {\n root: 'fui-InfoIcon'\n};\n/**\n * Styles for the root slot\n */ const useStyles = makeStyles({\n root: {\n }\n});\n/**\n * Apply styling to the InfoIcon slots based on the state\n */ export const useInfoIconStyles_unstable = (state)=>{\n const styles = useStyles();\n state.root.className = mergeClasses(infoIconClassNames.root, styles.root, state.root.className);\n // TODO Add class names to slots, for example:\n // state.mySlot.className = mergeClasses(styles.mySlot, state.mySlot.className);\n return state;\n};\n"],"mappings":"AAAA,SAAAA,QAAA,EAAqBC,YAAY,QAAQ,gBAAgB;AACzD,OAAO,MAAMC,kBAAkB,GAAG;EAC9BC,IAAI,EAAE;AACV,CAAC;AACD;AACA;AACA;AAAI,MAAMC,SAAS,gBAAGJ,QAAA;EAAAG,IAAA;AAAA,KAGrB,CAAC;AACF;AACA;AACA;AAAI,OAAO,MAAME,0BAA0B,GAAIC,KAAK,IAAG;EACnD,MAAMC,MAAM,GAAGH,SAAS,CAAC,CAAC;EAC1BE,KAAK,CAACH,IAAI,CAACK,SAAS,GAAGP,YAAY,CAACC,kBAAkB,CAACC,IAAI,EAAEI,MAAM,CAACJ,IAAI,EAAEG,KAAK,CAACH,IAAI,CAACK,SAAS,CAAC;EAC/F;EACA;EACA,OAAOF,KAAK;AAChB,CAAC"}
@@ -1,12 +0,0 @@
1
- import * as React from 'react';
2
- import { useInfoIconLabel_unstable } from './useInfoIconLabel';
3
- import { renderInfoIconLabel_unstable } from './renderInfoIconLabel';
4
- import { useInfoIconLabelStyles_unstable } from './useInfoIconLabelStyles.styles';
5
- /**
6
- * InfoIconLabel component - TODO: add more docs
7
- */ export const InfoIconLabel = /*#__PURE__*/ React.forwardRef((props, ref)=>{
8
- const state = useInfoIconLabel_unstable(props, ref);
9
- useInfoIconLabelStyles_unstable(state);
10
- return renderInfoIconLabel_unstable(state);
11
- });
12
- InfoIconLabel.displayName = 'InfoIconLabel';
@@ -1 +0,0 @@
1
- {"version":3,"sources":["InfoIconLabel.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useInfoIconLabel_unstable } from './useInfoIconLabel';\nimport { renderInfoIconLabel_unstable } from './renderInfoIconLabel';\nimport { useInfoIconLabelStyles_unstable } from './useInfoIconLabelStyles.styles';\nimport type { InfoIconLabelProps } from './InfoIconLabel.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\n\n/**\n * InfoIconLabel component - TODO: add more docs\n */\nexport const InfoIconLabel: ForwardRefComponent<InfoIconLabelProps> = React.forwardRef((props, ref) => {\n const state = useInfoIconLabel_unstable(props, ref);\n\n useInfoIconLabelStyles_unstable(state);\n return renderInfoIconLabel_unstable(state);\n});\n\nInfoIconLabel.displayName = 'InfoIconLabel';\n"],"names":["React","useInfoIconLabel_unstable","renderInfoIconLabel_unstable","useInfoIconLabelStyles_unstable","InfoIconLabel","forwardRef","props","ref","state","displayName"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,yBAAyB,QAAQ,qBAAqB;AAC/D,SAASC,4BAA4B,QAAQ,wBAAwB;AACrE,SAASC,+BAA+B,QAAQ,kCAAkC;AAIlF;;CAEC,GACD,OAAO,MAAMC,8BAAyDJ,MAAMK,UAAU,CAAC,CAACC,OAAOC,MAAQ;IACrG,MAAMC,QAAQP,0BAA0BK,OAAOC;IAE/CJ,gCAAgCK;IAChC,OAAON,6BAA6BM;AACtC,GAAG;AAEHJ,cAAcK,WAAW,GAAG"}
@@ -1,2 +0,0 @@
1
- export { }; // TODO: Remove semicolon from previous line, uncomment next line, and provide union of props to pick from InfoIconLabelProps.
2
- // & Required<Pick<InfoIconLabelProps, 'propName'>>
@@ -1 +0,0 @@
1
- {"version":3,"sources":["InfoIconLabel.types.ts"],"sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\n\nexport type InfoIconLabelSlots = {\n root: Slot<'div'>;\n};\n\n/**\n * InfoIconLabel Props\n */\nexport type InfoIconLabelProps = ComponentProps<InfoIconLabelSlots> & {};\n\n/**\n * State used in rendering InfoIconLabel\n */\nexport type InfoIconLabelState = ComponentState<InfoIconLabelSlots>;\n// TODO: Remove semicolon from previous line, uncomment next line, and provide union of props to pick from InfoIconLabelProps.\n// & Required<Pick<InfoIconLabelProps, 'propName'>>\n"],"names":[],"mappings":"AAAA,WAcoE,CACpE,8HAA8H;CAC9H,mDAAmD"}
@@ -1,5 +0,0 @@
1
- export * from './InfoIconLabel';
2
- export * from './InfoIconLabel.types';
3
- export * from './renderInfoIconLabel';
4
- export * from './useInfoIconLabel';
5
- export * from './useInfoIconLabelStyles.styles';
@@ -1 +0,0 @@
1
- {"version":3,"sources":["index.ts"],"sourcesContent":["export * from './InfoIconLabel';\nexport * from './InfoIconLabel.types';\nexport * from './renderInfoIconLabel';\nexport * from './useInfoIconLabel';\nexport * from './useInfoIconLabelStyles.styles';\n"],"names":[],"mappings":"AAAA,cAAc,kBAAkB;AAChC,cAAc,wBAAwB;AACtC,cAAc,wBAAwB;AACtC,cAAc,qBAAqB;AACnC,cAAc,kCAAkC"}
@@ -1,9 +0,0 @@
1
- /** @jsxRuntime classic */ /** @jsx createElement */ import { createElement } from '@fluentui/react-jsx-runtime';
2
- import { getSlotsNext } from '@fluentui/react-utilities';
3
- /**
4
- * Render the final JSX of InfoIconLabel
5
- */ export const renderInfoIconLabel_unstable = (state)=>{
6
- const { slots , slotProps } = getSlotsNext(state);
7
- // TODO Add additional slots in the appropriate place
8
- return /*#__PURE__*/ createElement(slots.root, slotProps.root);
9
- };
@@ -1 +0,0 @@
1
- {"version":3,"sources":["renderInfoIconLabel.tsx"],"sourcesContent":["/** @jsxRuntime classic */\n/** @jsx createElement */\n\nimport { createElement } from '@fluentui/react-jsx-runtime';\nimport { getSlotsNext } from '@fluentui/react-utilities';\nimport type { InfoIconLabelState, InfoIconLabelSlots } from './InfoIconLabel.types';\n\n/**\n * Render the final JSX of InfoIconLabel\n */\nexport const renderInfoIconLabel_unstable = (state: InfoIconLabelState) => {\n const { slots, slotProps } = getSlotsNext<InfoIconLabelSlots>(state);\n\n // TODO Add additional slots in the appropriate place\n return <slots.root {...slotProps.root} />;\n};\n"],"names":["createElement","getSlotsNext","renderInfoIconLabel_unstable","state","slots","slotProps","root"],"mappings":"AAAA,wBAAwB,GACxB,uBAAuB,GAEvB,SAASA,aAAa,QAAQ,8BAA8B;AAC5D,SAASC,YAAY,QAAQ,4BAA4B;AAGzD;;CAEC,GACD,OAAO,MAAMC,+BAA+B,CAACC,QAA8B;IACzE,MAAM,EAAEC,MAAK,EAAEC,UAAS,EAAE,GAAGJ,aAAiCE;IAE9D,qDAAqD;IACrD,qBAAO,AAbT,cAaUC,MAAME,IAAI,EAAKD,UAAUC,IAAI;AACvC,EAAE"}
@@ -1,25 +0,0 @@
1
- import * as React from 'react';
2
- import { getNativeElementProps } from '@fluentui/react-utilities';
3
- /**
4
- * Create the state required to render InfoIconLabel.
5
- *
6
- * The returned state can be modified with hooks such as useInfoIconLabelStyles_unstable,
7
- * before being passed to renderInfoIconLabel_unstable.
8
- *
9
- * @param props - props from this instance of InfoIconLabel
10
- * @param ref - reference to root HTMLElement of InfoIconLabel
11
- */ export const useInfoIconLabel_unstable = (props, ref)=>{
12
- return {
13
- // TODO add appropriate props/defaults
14
- components: {
15
- // TODO add each slot's element type or component
16
- root: 'div'
17
- },
18
- // TODO add appropriate slots, for example:
19
- // mySlot: resolveShorthand(props.mySlot),
20
- root: getNativeElementProps('div', {
21
- ref,
22
- ...props
23
- })
24
- };
25
- };
@@ -1 +0,0 @@
1
- {"version":3,"sources":["useInfoIconLabel.ts"],"sourcesContent":["import * as React from 'react';\nimport { getNativeElementProps } from '@fluentui/react-utilities';\nimport type { InfoIconLabelProps, InfoIconLabelState } from './InfoIconLabel.types';\n\n/**\n * Create the state required to render InfoIconLabel.\n *\n * The returned state can be modified with hooks such as useInfoIconLabelStyles_unstable,\n * before being passed to renderInfoIconLabel_unstable.\n *\n * @param props - props from this instance of InfoIconLabel\n * @param ref - reference to root HTMLElement of InfoIconLabel\n */\nexport const useInfoIconLabel_unstable = (\n props: InfoIconLabelProps,\n ref: React.Ref<HTMLElement>,\n): InfoIconLabelState => {\n return {\n // TODO add appropriate props/defaults\n components: {\n // TODO add each slot's element type or component\n root: 'div',\n },\n // TODO add appropriate slots, for example:\n // mySlot: resolveShorthand(props.mySlot),\n root: getNativeElementProps('div', {\n ref,\n ...props,\n }),\n };\n};\n"],"names":["React","getNativeElementProps","useInfoIconLabel_unstable","props","ref","components","root"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,qBAAqB,QAAQ,4BAA4B;AAGlE;;;;;;;;CAQC,GACD,OAAO,MAAMC,4BAA4B,CACvCC,OACAC,MACuB;IACvB,OAAO;QACL,sCAAsC;QACtCC,YAAY;YACV,iDAAiD;YACjDC,MAAM;QACR;QACA,2CAA2C;QAC3C,0CAA0C;QAC1CA,MAAML,sBAAsB,OAAO;YACjCG;YACA,GAAGD,KAAK;QACV;IACF;AACF,EAAE"}
@@ -1,21 +0,0 @@
1
- import { __styles, mergeClasses } from '@griffel/react';
2
- export const infoIconLabelClassNames = {
3
- root: 'fui-InfoIconLabel'
4
- };
5
- /**
6
- * Styles for the root slot
7
- */
8
- const useStyles = /*#__PURE__*/__styles({
9
- root: {}
10
- }, {});
11
- /**
12
- * Apply styling to the InfoIconLabel slots based on the state
13
- */
14
- export const useInfoIconLabelStyles_unstable = state => {
15
- const styles = useStyles();
16
- state.root.className = mergeClasses(infoIconLabelClassNames.root, styles.root, state.root.className);
17
- // TODO Add class names to slots, for example:
18
- // state.mySlot.className = mergeClasses(styles.mySlot, state.mySlot.className);
19
- return state;
20
- };
21
- //# sourceMappingURL=useInfoIconLabelStyles.styles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["__styles","mergeClasses","infoIconLabelClassNames","root","useStyles","useInfoIconLabelStyles_unstable","state","styles","className"],"sources":["useInfoIconLabelStyles.styles.js"],"sourcesContent":["import { makeStyles, mergeClasses } from '@griffel/react';\nexport const infoIconLabelClassNames = {\n root: 'fui-InfoIconLabel'\n};\n/**\n * Styles for the root slot\n */ const useStyles = makeStyles({\n root: {\n }\n});\n/**\n * Apply styling to the InfoIconLabel slots based on the state\n */ export const useInfoIconLabelStyles_unstable = (state)=>{\n const styles = useStyles();\n state.root.className = mergeClasses(infoIconLabelClassNames.root, styles.root, state.root.className);\n // TODO Add class names to slots, for example:\n // state.mySlot.className = mergeClasses(styles.mySlot, state.mySlot.className);\n return state;\n};\n"],"mappings":"AAAA,SAAAA,QAAA,EAAqBC,YAAY,QAAQ,gBAAgB;AACzD,OAAO,MAAMC,uBAAuB,GAAG;EACnCC,IAAI,EAAE;AACV,CAAC;AACD;AACA;AACA;AAAI,MAAMC,SAAS,gBAAGJ,QAAA;EAAAG,IAAA;AAAA,KAGrB,CAAC;AACF;AACA;AACA;AAAI,OAAO,MAAME,+BAA+B,GAAIC,KAAK,IAAG;EACxD,MAAMC,MAAM,GAAGH,SAAS,CAAC,CAAC;EAC1BE,KAAK,CAACH,IAAI,CAACK,SAAS,GAAGP,YAAY,CAACC,uBAAuB,CAACC,IAAI,EAAEI,MAAM,CAACJ,IAAI,EAAEG,KAAK,CAACH,IAAI,CAACK,SAAS,CAAC;EACpG;EACA;EACA,OAAOF,KAAK;AAChB,CAAC"}
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- const _exportStar = require("@swc/helpers/lib/_export_star.js").default;
6
- _exportStar(require("./components/InfoIcon/index"), exports);
@@ -1 +0,0 @@
1
- {"version":3,"sources":["InfoIcon.js"],"sourcesContent":["export * from './components/InfoIcon/index';\n"],"names":[],"mappings":";;;;;oBAAc"}
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- const _exportStar = require("@swc/helpers/lib/_export_star.js").default;
6
- _exportStar(require("./components/InfoIconLabel/index"), exports);
@@ -1 +0,0 @@
1
- {"version":3,"sources":["InfoIconLabel.js"],"sourcesContent":["export * from './components/InfoIconLabel/index';\n"],"names":[],"mappings":";;;;;oBAAc"}
@@ -1,19 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "InfoIcon", {
6
- enumerable: true,
7
- get: ()=>InfoIcon
8
- });
9
- const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
10
- const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
11
- const _useInfoIcon = require("./useInfoIcon");
12
- const _renderInfoIcon = require("./renderInfoIcon");
13
- const _useInfoIconStylesStyles = require("./useInfoIconStyles.styles");
14
- const InfoIcon = /*#__PURE__*/ _react.forwardRef((props, ref)=>{
15
- const state = (0, _useInfoIcon.useInfoIcon_unstable)(props, ref);
16
- (0, _useInfoIconStylesStyles.useInfoIconStyles_unstable)(state);
17
- return (0, _renderInfoIcon.renderInfoIcon_unstable)(state);
18
- });
19
- InfoIcon.displayName = 'InfoIcon';
@@ -1 +0,0 @@
1
- {"version":3,"sources":["InfoIcon.js"],"sourcesContent":["import * as React from 'react';\nimport { useInfoIcon_unstable } from './useInfoIcon';\nimport { renderInfoIcon_unstable } from './renderInfoIcon';\nimport { useInfoIconStyles_unstable } from './useInfoIconStyles.styles';\n/**\n * InfoIcon component - TODO: add more docs\n */ export const InfoIcon = /*#__PURE__*/ React.forwardRef((props, ref)=>{\n const state = useInfoIcon_unstable(props, ref);\n useInfoIconStyles_unstable(state);\n return renderInfoIcon_unstable(state);\n});\nInfoIcon.displayName = 'InfoIcon';\n"],"names":["InfoIcon","React","forwardRef","props","ref","state","useInfoIcon_unstable","useInfoIconStyles_unstable","renderInfoIcon_unstable","displayName"],"mappings":";;;;+BAMiBA;;aAAAA;;;6DANM;6BACc;gCACG;yCACG;AAGhC,MAAMA,WAAW,WAAW,GAAGC,OAAMC,UAAU,CAAC,CAACC,OAAOC,MAAM;IACrE,MAAMC,QAAQC,IAAAA,iCAAoB,EAACH,OAAOC;IAC1CG,IAAAA,mDAA0B,EAACF;IAC3B,OAAOG,IAAAA,uCAAuB,EAACH;AACnC;AACAL,SAASS,WAAW,GAAG"}
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- // TODO: Remove semicolon from previous line, uncomment next line, and provide union of props to pick from InfoIconProps.
6
- // & Required<Pick<InfoIconProps, 'propName'>>
@@ -1 +0,0 @@
1
- {"version":3,"sources":["InfoIcon.types.js"],"sourcesContent":["export { }; // TODO: Remove semicolon from previous line, uncomment next line, and provide union of props to pick from InfoIconProps.\n // & Required<Pick<InfoIconProps, 'propName'>>\n"],"names":[],"mappings":";;;;CAAY,yHAAyH;CACpI,8CAA8C"}
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- const _exportStar = require("@swc/helpers/lib/_export_star.js").default;
6
- _exportStar(require("./InfoIcon"), exports);
7
- _exportStar(require("./InfoIcon.types"), exports);
8
- _exportStar(require("./renderInfoIcon"), exports);
9
- _exportStar(require("./useInfoIcon"), exports);
10
- _exportStar(require("./useInfoIconStyles.styles"), exports);
@@ -1 +0,0 @@
1
- {"version":3,"sources":["index.js"],"sourcesContent":["export * from './InfoIcon';\nexport * from './InfoIcon.types';\nexport * from './renderInfoIcon';\nexport * from './useInfoIcon';\nexport * from './useInfoIconStyles.styles';\n"],"names":[],"mappings":";;;;;oBAAc;oBACA;oBACA;oBACA;oBACA"}
@@ -1,15 +0,0 @@
1
- /** @jsxRuntime classic */ /** @jsx createElement */ "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "renderInfoIcon_unstable", {
6
- enumerable: true,
7
- get: ()=>renderInfoIcon_unstable
8
- });
9
- const _reactJsxRuntime = require("@fluentui/react-jsx-runtime");
10
- const _reactUtilities = require("@fluentui/react-utilities");
11
- const renderInfoIcon_unstable = (state)=>{
12
- const { slots , slotProps } = (0, _reactUtilities.getSlotsNext)(state);
13
- // TODO Add additional slots in the appropriate place
14
- return /*#__PURE__*/ (0, _reactJsxRuntime.createElement)(slots.root, slotProps.root);
15
- };
@@ -1 +0,0 @@
1
- {"version":3,"sources":["renderInfoIcon.js"],"sourcesContent":["/** @jsxRuntime classic */ /** @jsx createElement */ import { createElement } from '@fluentui/react-jsx-runtime';\nimport { getSlotsNext } from '@fluentui/react-utilities';\n/**\n * Render the final JSX of InfoIcon\n */ export const renderInfoIcon_unstable = (state)=>{\n const { slots , slotProps } = getSlotsNext(state);\n // TODO Add additional slots in the appropriate place\n return /*#__PURE__*/ createElement(slots.root, slotProps.root);\n};\n"],"names":["renderInfoIcon_unstable","state","slots","slotProps","getSlotsNext","createElement","root"],"mappings":"AAAA,wBAAwB,GAAG,uBAAuB;;;;+BAIjCA;;aAAAA;;iCAJkE;gCACtD;AAGlB,MAAMA,0BAA0B,CAACC,QAAQ;IAChD,MAAM,EAAEC,MAAK,EAAGC,UAAS,EAAG,GAAGC,IAAAA,4BAAY,EAACH;IAC5C,qDAAqD;IACrD,OAAO,WAAW,GAAGI,IAAAA,8BAAa,EAACH,MAAMI,IAAI,EAAEH,UAAUG,IAAI;AACjE"}
@@ -1,26 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "useInfoIcon_unstable", {
6
- enumerable: true,
7
- get: ()=>useInfoIcon_unstable
8
- });
9
- const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
10
- const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
11
- const _reactUtilities = require("@fluentui/react-utilities");
12
- const useInfoIcon_unstable = (props, ref)=>{
13
- return {
14
- // TODO add appropriate props/defaults
15
- components: {
16
- // TODO add each slot's element type or component
17
- root: 'div'
18
- },
19
- // TODO add appropriate slots, for example:
20
- // mySlot: resolveShorthand(props.mySlot),
21
- root: (0, _reactUtilities.getNativeElementProps)('div', {
22
- ref,
23
- ...props
24
- })
25
- };
26
- };
@@ -1 +0,0 @@
1
- {"version":3,"sources":["useInfoIcon.js"],"sourcesContent":["import * as React from 'react';\nimport { getNativeElementProps } from '@fluentui/react-utilities';\n/**\n * Create the state required to render InfoIcon.\n *\n * The returned state can be modified with hooks such as useInfoIconStyles_unstable,\n * before being passed to renderInfoIcon_unstable.\n *\n * @param props - props from this instance of InfoIcon\n * @param ref - reference to root HTMLElement of InfoIcon\n */ export const useInfoIcon_unstable = (props, ref)=>{\n return {\n // TODO add appropriate props/defaults\n components: {\n // TODO add each slot's element type or component\n root: 'div'\n },\n // TODO add appropriate slots, for example:\n // mySlot: resolveShorthand(props.mySlot),\n root: getNativeElementProps('div', {\n ref,\n ...props\n })\n };\n};\n"],"names":["useInfoIcon_unstable","props","ref","components","root","getNativeElementProps"],"mappings":";;;;+BAUiBA;;aAAAA;;;6DAVM;gCACe;AAS3B,MAAMA,uBAAuB,CAACC,OAAOC,MAAM;IAClD,OAAO;QACH,sCAAsC;QACtCC,YAAY;YACR,iDAAiD;YACjDC,MAAM;QACV;QACA,2CAA2C;QAC3C,0CAA0C;QAC1CA,MAAMC,IAAAA,qCAAqB,EAAC,OAAO;YAC/BH;YACA,GAAGD,KAAK;QACZ;IACJ;AACJ"}
@@ -1,30 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- function _export(target, all) {
6
- for(var name in all)Object.defineProperty(target, name, {
7
- enumerable: true,
8
- get: all[name]
9
- });
10
- }
11
- _export(exports, {
12
- infoIconClassNames: ()=>infoIconClassNames,
13
- useInfoIconStyles_unstable: ()=>useInfoIconStyles_unstable
14
- });
15
- const _react = require("@griffel/react");
16
- const infoIconClassNames = {
17
- root: 'fui-InfoIcon'
18
- };
19
- /**
20
- * Styles for the root slot
21
- */ const useStyles = /*#__PURE__*/ (0, _react["__styles"])({
22
- root: {}
23
- }, {});
24
- const useInfoIconStyles_unstable = (state)=>{
25
- const styles = useStyles();
26
- state.root.className = (0, _react.mergeClasses)(infoIconClassNames.root, styles.root, state.root.className);
27
- // TODO Add class names to slots, for example:
28
- // state.mySlot.className = mergeClasses(styles.mySlot, state.mySlot.className);
29
- return state;
30
- }; //# sourceMappingURL=useInfoIconStyles.styles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["useInfoIconStyles.styles.js"],"sourcesContent":["import { __styles, mergeClasses } from '@griffel/react';\nexport const infoIconClassNames = {\n root: 'fui-InfoIcon'\n};\n/**\n * Styles for the root slot\n */\nconst useStyles = /*#__PURE__*/__styles({\n root: {}\n}, {});\n/**\n * Apply styling to the InfoIcon slots based on the state\n */\nexport const useInfoIconStyles_unstable = state => {\n const styles = useStyles();\n state.root.className = mergeClasses(infoIconClassNames.root, styles.root, state.root.className);\n // TODO Add class names to slots, for example:\n // state.mySlot.className = mergeClasses(styles.mySlot, state.mySlot.className);\n return state;\n};\n//# sourceMappingURL=useInfoIconStyles.styles.js.map"],"names":["infoIconClassNames","useInfoIconStyles_unstable","root","useStyles","__styles","state","styles","className","mergeClasses"],"mappings":";;;;;;;;;;;IACaA,kBAAkB,MAAlBA;IAYAC,0BAA0B,MAA1BA;;uBAb0B;AAChC,MAAMD,qBAAqB;IAChCE,MAAM;AACR;AACA;;CAEC,GACD,MAAMC,YAAY,WAAW,GAAEC,IAAAA,kBAAQ,EAAC;IACtCF,MAAM,CAAC;AACT,GAAG,CAAC;AAIG,MAAMD,6BAA6BI,CAAAA,QAAS;IACjD,MAAMC,SAASH;IACfE,MAAMH,IAAI,CAACK,SAAS,GAAGC,IAAAA,mBAAY,EAACR,mBAAmBE,IAAI,EAAEI,OAAOJ,IAAI,EAAEG,MAAMH,IAAI,CAACK,SAAS;IAC9F,8CAA8C;IAC9C,gFAAgF;IAChF,OAAOF;AACT,GACA,oDAAoD"}
@@ -1,19 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "InfoIconLabel", {
6
- enumerable: true,
7
- get: ()=>InfoIconLabel
8
- });
9
- const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
10
- const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
11
- const _useInfoIconLabel = require("./useInfoIconLabel");
12
- const _renderInfoIconLabel = require("./renderInfoIconLabel");
13
- const _useInfoIconLabelStylesStyles = require("./useInfoIconLabelStyles.styles");
14
- const InfoIconLabel = /*#__PURE__*/ _react.forwardRef((props, ref)=>{
15
- const state = (0, _useInfoIconLabel.useInfoIconLabel_unstable)(props, ref);
16
- (0, _useInfoIconLabelStylesStyles.useInfoIconLabelStyles_unstable)(state);
17
- return (0, _renderInfoIconLabel.renderInfoIconLabel_unstable)(state);
18
- });
19
- InfoIconLabel.displayName = 'InfoIconLabel';
@@ -1 +0,0 @@
1
- {"version":3,"sources":["InfoIconLabel.js"],"sourcesContent":["import * as React from 'react';\nimport { useInfoIconLabel_unstable } from './useInfoIconLabel';\nimport { renderInfoIconLabel_unstable } from './renderInfoIconLabel';\nimport { useInfoIconLabelStyles_unstable } from './useInfoIconLabelStyles.styles';\n/**\n * InfoIconLabel component - TODO: add more docs\n */ export const InfoIconLabel = /*#__PURE__*/ React.forwardRef((props, ref)=>{\n const state = useInfoIconLabel_unstable(props, ref);\n useInfoIconLabelStyles_unstable(state);\n return renderInfoIconLabel_unstable(state);\n});\nInfoIconLabel.displayName = 'InfoIconLabel';\n"],"names":["InfoIconLabel","React","forwardRef","props","ref","state","useInfoIconLabel_unstable","useInfoIconLabelStyles_unstable","renderInfoIconLabel_unstable","displayName"],"mappings":";;;;+BAMiBA;;aAAAA;;;6DANM;kCACmB;qCACG;8CACG;AAGrC,MAAMA,gBAAgB,WAAW,GAAGC,OAAMC,UAAU,CAAC,CAACC,OAAOC,MAAM;IAC1E,MAAMC,QAAQC,IAAAA,2CAAyB,EAACH,OAAOC;IAC/CG,IAAAA,6DAA+B,EAACF;IAChC,OAAOG,IAAAA,iDAA4B,EAACH;AACxC;AACAL,cAAcS,WAAW,GAAG"}
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- // TODO: Remove semicolon from previous line, uncomment next line, and provide union of props to pick from InfoIconLabelProps.
6
- // & Required<Pick<InfoIconLabelProps, 'propName'>>
@@ -1 +0,0 @@
1
- {"version":3,"sources":["InfoIconLabel.types.js"],"sourcesContent":["export { }; // TODO: Remove semicolon from previous line, uncomment next line, and provide union of props to pick from InfoIconLabelProps.\n // & Required<Pick<InfoIconLabelProps, 'propName'>>\n"],"names":[],"mappings":";;;;CAAY,8HAA8H;CACzI,mDAAmD"}
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- const _exportStar = require("@swc/helpers/lib/_export_star.js").default;
6
- _exportStar(require("./InfoIconLabel"), exports);
7
- _exportStar(require("./InfoIconLabel.types"), exports);
8
- _exportStar(require("./renderInfoIconLabel"), exports);
9
- _exportStar(require("./useInfoIconLabel"), exports);
10
- _exportStar(require("./useInfoIconLabelStyles.styles"), exports);
@@ -1 +0,0 @@
1
- {"version":3,"sources":["index.js"],"sourcesContent":["export * from './InfoIconLabel';\nexport * from './InfoIconLabel.types';\nexport * from './renderInfoIconLabel';\nexport * from './useInfoIconLabel';\nexport * from './useInfoIconLabelStyles.styles';\n"],"names":[],"mappings":";;;;;oBAAc;oBACA;oBACA;oBACA;oBACA"}
@@ -1,15 +0,0 @@
1
- /** @jsxRuntime classic */ /** @jsx createElement */ "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "renderInfoIconLabel_unstable", {
6
- enumerable: true,
7
- get: ()=>renderInfoIconLabel_unstable
8
- });
9
- const _reactJsxRuntime = require("@fluentui/react-jsx-runtime");
10
- const _reactUtilities = require("@fluentui/react-utilities");
11
- const renderInfoIconLabel_unstable = (state)=>{
12
- const { slots , slotProps } = (0, _reactUtilities.getSlotsNext)(state);
13
- // TODO Add additional slots in the appropriate place
14
- return /*#__PURE__*/ (0, _reactJsxRuntime.createElement)(slots.root, slotProps.root);
15
- };
@@ -1 +0,0 @@
1
- {"version":3,"sources":["renderInfoIconLabel.js"],"sourcesContent":["/** @jsxRuntime classic */ /** @jsx createElement */ import { createElement } from '@fluentui/react-jsx-runtime';\nimport { getSlotsNext } from '@fluentui/react-utilities';\n/**\n * Render the final JSX of InfoIconLabel\n */ export const renderInfoIconLabel_unstable = (state)=>{\n const { slots , slotProps } = getSlotsNext(state);\n // TODO Add additional slots in the appropriate place\n return /*#__PURE__*/ createElement(slots.root, slotProps.root);\n};\n"],"names":["renderInfoIconLabel_unstable","state","slots","slotProps","getSlotsNext","createElement","root"],"mappings":"AAAA,wBAAwB,GAAG,uBAAuB;;;;+BAIjCA;;aAAAA;;iCAJkE;gCACtD;AAGlB,MAAMA,+BAA+B,CAACC,QAAQ;IACrD,MAAM,EAAEC,MAAK,EAAGC,UAAS,EAAG,GAAGC,IAAAA,4BAAY,EAACH;IAC5C,qDAAqD;IACrD,OAAO,WAAW,GAAGI,IAAAA,8BAAa,EAACH,MAAMI,IAAI,EAAEH,UAAUG,IAAI;AACjE"}
@@ -1,26 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "useInfoIconLabel_unstable", {
6
- enumerable: true,
7
- get: ()=>useInfoIconLabel_unstable
8
- });
9
- const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
10
- const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
11
- const _reactUtilities = require("@fluentui/react-utilities");
12
- const useInfoIconLabel_unstable = (props, ref)=>{
13
- return {
14
- // TODO add appropriate props/defaults
15
- components: {
16
- // TODO add each slot's element type or component
17
- root: 'div'
18
- },
19
- // TODO add appropriate slots, for example:
20
- // mySlot: resolveShorthand(props.mySlot),
21
- root: (0, _reactUtilities.getNativeElementProps)('div', {
22
- ref,
23
- ...props
24
- })
25
- };
26
- };
@@ -1 +0,0 @@
1
- {"version":3,"sources":["useInfoIconLabel.js"],"sourcesContent":["import * as React from 'react';\nimport { getNativeElementProps } from '@fluentui/react-utilities';\n/**\n * Create the state required to render InfoIconLabel.\n *\n * The returned state can be modified with hooks such as useInfoIconLabelStyles_unstable,\n * before being passed to renderInfoIconLabel_unstable.\n *\n * @param props - props from this instance of InfoIconLabel\n * @param ref - reference to root HTMLElement of InfoIconLabel\n */ export const useInfoIconLabel_unstable = (props, ref)=>{\n return {\n // TODO add appropriate props/defaults\n components: {\n // TODO add each slot's element type or component\n root: 'div'\n },\n // TODO add appropriate slots, for example:\n // mySlot: resolveShorthand(props.mySlot),\n root: getNativeElementProps('div', {\n ref,\n ...props\n })\n };\n};\n"],"names":["useInfoIconLabel_unstable","props","ref","components","root","getNativeElementProps"],"mappings":";;;;+BAUiBA;;aAAAA;;;6DAVM;gCACe;AAS3B,MAAMA,4BAA4B,CAACC,OAAOC,MAAM;IACvD,OAAO;QACH,sCAAsC;QACtCC,YAAY;YACR,iDAAiD;YACjDC,MAAM;QACV;QACA,2CAA2C;QAC3C,0CAA0C;QAC1CA,MAAMC,IAAAA,qCAAqB,EAAC,OAAO;YAC/BH;YACA,GAAGD,KAAK;QACZ;IACJ;AACJ"}
@@ -1,30 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- function _export(target, all) {
6
- for(var name in all)Object.defineProperty(target, name, {
7
- enumerable: true,
8
- get: all[name]
9
- });
10
- }
11
- _export(exports, {
12
- infoIconLabelClassNames: ()=>infoIconLabelClassNames,
13
- useInfoIconLabelStyles_unstable: ()=>useInfoIconLabelStyles_unstable
14
- });
15
- const _react = require("@griffel/react");
16
- const infoIconLabelClassNames = {
17
- root: 'fui-InfoIconLabel'
18
- };
19
- /**
20
- * Styles for the root slot
21
- */ const useStyles = /*#__PURE__*/ (0, _react["__styles"])({
22
- root: {}
23
- }, {});
24
- const useInfoIconLabelStyles_unstable = (state)=>{
25
- const styles = useStyles();
26
- state.root.className = (0, _react.mergeClasses)(infoIconLabelClassNames.root, styles.root, state.root.className);
27
- // TODO Add class names to slots, for example:
28
- // state.mySlot.className = mergeClasses(styles.mySlot, state.mySlot.className);
29
- return state;
30
- }; //# sourceMappingURL=useInfoIconLabelStyles.styles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["useInfoIconLabelStyles.styles.js"],"sourcesContent":["import { __styles, mergeClasses } from '@griffel/react';\nexport const infoIconLabelClassNames = {\n root: 'fui-InfoIconLabel'\n};\n/**\n * Styles for the root slot\n */\nconst useStyles = /*#__PURE__*/__styles({\n root: {}\n}, {});\n/**\n * Apply styling to the InfoIconLabel slots based on the state\n */\nexport const useInfoIconLabelStyles_unstable = state => {\n const styles = useStyles();\n state.root.className = mergeClasses(infoIconLabelClassNames.root, styles.root, state.root.className);\n // TODO Add class names to slots, for example:\n // state.mySlot.className = mergeClasses(styles.mySlot, state.mySlot.className);\n return state;\n};\n//# sourceMappingURL=useInfoIconLabelStyles.styles.js.map"],"names":["infoIconLabelClassNames","useInfoIconLabelStyles_unstable","root","useStyles","__styles","state","styles","className","mergeClasses"],"mappings":";;;;;;;;;;;IACaA,uBAAuB,MAAvBA;IAYAC,+BAA+B,MAA/BA;;uBAb0B;AAChC,MAAMD,0BAA0B;IACrCE,MAAM;AACR;AACA;;CAEC,GACD,MAAMC,YAAY,WAAW,GAAEC,IAAAA,kBAAQ,EAAC;IACtCF,MAAM,CAAC;AACT,GAAG,CAAC;AAIG,MAAMD,kCAAkCI,CAAAA,QAAS;IACtD,MAAMC,SAASH;IACfE,MAAMH,IAAI,CAACK,SAAS,GAAGC,IAAAA,mBAAY,EAACR,wBAAwBE,IAAI,EAAEI,OAAOJ,IAAI,EAAEG,MAAMH,IAAI,CAACK,SAAS;IACnG,8CAA8C;IAC9C,gFAAgF;IAChF,OAAOF;AACT,GACA,yDAAyD"}