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

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 (129) hide show
  1. package/CHANGELOG.json +1222 -1
  2. package/CHANGELOG.md +424 -2
  3. package/dist/index.d.ts +152 -4
  4. package/lib/InfoButton.js +0 -1
  5. package/lib/InfoButton.js.map +1 -1
  6. package/lib/InfoIcon.js +1 -0
  7. package/lib/InfoIcon.js.map +1 -0
  8. package/lib/InfoIconLabel.js +1 -0
  9. package/lib/InfoIconLabel.js.map +1 -0
  10. package/lib/InfoLabel.js +1 -0
  11. package/lib/InfoLabel.js.map +1 -0
  12. package/lib/components/InfoButton/DefaultInfoButtonIcons.js +3 -4
  13. package/lib/components/InfoButton/DefaultInfoButtonIcons.js.map +1 -1
  14. package/lib/components/InfoButton/InfoButton.js +5 -8
  15. package/lib/components/InfoButton/InfoButton.js.map +1 -1
  16. package/lib/components/InfoButton/InfoButton.types.js +1 -2
  17. package/lib/components/InfoButton/InfoButton.types.js.map +1 -1
  18. package/lib/components/InfoButton/index.js +1 -2
  19. package/lib/components/InfoButton/index.js.map +1 -1
  20. package/lib/components/InfoButton/renderInfoButton.js +5 -14
  21. package/lib/components/InfoButton/renderInfoButton.js.map +1 -1
  22. package/lib/components/InfoButton/useInfoButton.js +46 -50
  23. package/lib/components/InfoButton/useInfoButton.js.map +1 -1
  24. package/lib/components/InfoButton/useInfoButtonStyles.styles.js +153 -0
  25. package/lib/components/InfoButton/useInfoButtonStyles.styles.js.map +1 -0
  26. package/lib/components/InfoIcon/InfoIcon.js +12 -0
  27. package/lib/components/InfoIcon/InfoIcon.js.map +1 -0
  28. package/lib/components/InfoIcon/InfoIcon.types.js +2 -0
  29. package/lib/components/InfoIcon/InfoIcon.types.js.map +1 -0
  30. package/lib/components/InfoIcon/index.js +5 -0
  31. package/lib/components/InfoIcon/index.js.map +1 -0
  32. package/lib/components/InfoIcon/renderInfoIcon.js +9 -0
  33. package/lib/components/InfoIcon/renderInfoIcon.js.map +1 -0
  34. package/lib/components/InfoIcon/useInfoIcon.js +25 -0
  35. package/lib/components/InfoIcon/useInfoIcon.js.map +1 -0
  36. package/lib/components/InfoIcon/useInfoIconStyles.styles.js +21 -0
  37. package/lib/components/InfoIcon/useInfoIconStyles.styles.js.map +1 -0
  38. package/lib/components/InfoIconLabel/InfoIconLabel.js +12 -0
  39. package/lib/components/InfoIconLabel/InfoIconLabel.js.map +1 -0
  40. package/lib/components/InfoIconLabel/InfoIconLabel.types.js +2 -0
  41. package/lib/components/InfoIconLabel/InfoIconLabel.types.js.map +1 -0
  42. package/lib/components/InfoIconLabel/index.js +5 -0
  43. package/lib/components/InfoIconLabel/index.js.map +1 -0
  44. package/lib/components/InfoIconLabel/renderInfoIconLabel.js +9 -0
  45. package/lib/components/InfoIconLabel/renderInfoIconLabel.js.map +1 -0
  46. package/lib/components/InfoIconLabel/useInfoIconLabel.js +25 -0
  47. package/lib/components/InfoIconLabel/useInfoIconLabel.js.map +1 -0
  48. package/lib/components/InfoIconLabel/useInfoIconLabelStyles.styles.js +21 -0
  49. package/lib/components/InfoIconLabel/useInfoIconLabelStyles.styles.js.map +1 -0
  50. package/lib/components/InfoLabel/InfoLabel.js +12 -0
  51. package/lib/components/InfoLabel/InfoLabel.js.map +1 -0
  52. package/lib/components/InfoLabel/InfoLabel.types.js +1 -0
  53. package/lib/components/InfoLabel/InfoLabel.types.js.map +1 -0
  54. package/lib/components/InfoLabel/index.js +5 -0
  55. package/lib/components/InfoLabel/index.js.map +1 -0
  56. package/lib/components/InfoLabel/renderInfoLabel.js +8 -0
  57. package/lib/components/InfoLabel/renderInfoLabel.js.map +1 -0
  58. package/lib/components/InfoLabel/useInfoLabel.js +64 -0
  59. package/lib/components/InfoLabel/useInfoLabel.js.map +1 -0
  60. package/lib/components/InfoLabel/useInfoLabelStyles.styles.js +43 -0
  61. package/lib/components/InfoLabel/useInfoLabelStyles.styles.js.map +1 -0
  62. package/lib/index.js +3 -1
  63. package/lib/index.js.map +1 -1
  64. package/lib-commonjs/InfoButton.js +3 -7
  65. package/lib-commonjs/InfoButton.js.map +1 -1
  66. package/lib-commonjs/InfoIcon.js +6 -0
  67. package/lib-commonjs/InfoIcon.js.map +1 -0
  68. package/lib-commonjs/InfoIconLabel.js +6 -0
  69. package/lib-commonjs/InfoIconLabel.js.map +1 -0
  70. package/lib-commonjs/InfoLabel.js +6 -0
  71. package/lib-commonjs/InfoLabel.js.map +1 -0
  72. package/lib-commonjs/components/InfoButton/DefaultInfoButtonIcons.js +16 -10
  73. package/lib-commonjs/components/InfoButton/DefaultInfoButtonIcons.js.map +1 -1
  74. package/lib-commonjs/components/InfoButton/InfoButton.js +15 -22
  75. package/lib-commonjs/components/InfoButton/InfoButton.js.map +1 -1
  76. package/lib-commonjs/components/InfoButton/InfoButton.types.js +1 -3
  77. package/lib-commonjs/components/InfoButton/InfoButton.types.js.map +1 -1
  78. package/lib-commonjs/components/InfoButton/index.js +7 -15
  79. package/lib-commonjs/components/InfoButton/index.js.map +1 -1
  80. package/lib-commonjs/components/InfoButton/renderInfoButton.js +12 -27
  81. package/lib-commonjs/components/InfoButton/renderInfoButton.js.map +1 -1
  82. package/lib-commonjs/components/InfoButton/useInfoButton.js +56 -74
  83. package/lib-commonjs/components/InfoButton/useInfoButton.js.map +1 -1
  84. package/lib-commonjs/components/InfoButton/useInfoButtonStyles.styles.js +340 -0
  85. package/lib-commonjs/components/InfoButton/useInfoButtonStyles.styles.js.map +1 -0
  86. package/lib-commonjs/components/InfoIcon/InfoIcon.js +19 -0
  87. package/lib-commonjs/components/InfoIcon/InfoIcon.js.map +1 -0
  88. package/lib-commonjs/components/InfoIcon/InfoIcon.types.js +6 -0
  89. package/lib-commonjs/components/InfoIcon/InfoIcon.types.js.map +1 -0
  90. package/lib-commonjs/components/InfoIcon/index.js +10 -0
  91. package/lib-commonjs/components/InfoIcon/index.js.map +1 -0
  92. package/lib-commonjs/components/InfoIcon/renderInfoIcon.js +15 -0
  93. package/lib-commonjs/components/InfoIcon/renderInfoIcon.js.map +1 -0
  94. package/lib-commonjs/components/InfoIcon/useInfoIcon.js +26 -0
  95. package/lib-commonjs/components/InfoIcon/useInfoIcon.js.map +1 -0
  96. package/lib-commonjs/components/InfoIcon/useInfoIconStyles.styles.js +30 -0
  97. package/lib-commonjs/components/InfoIcon/useInfoIconStyles.styles.js.map +1 -0
  98. package/lib-commonjs/components/InfoIconLabel/InfoIconLabel.js +19 -0
  99. package/lib-commonjs/components/InfoIconLabel/InfoIconLabel.js.map +1 -0
  100. package/lib-commonjs/components/InfoIconLabel/InfoIconLabel.types.js +6 -0
  101. package/lib-commonjs/components/InfoIconLabel/InfoIconLabel.types.js.map +1 -0
  102. package/lib-commonjs/components/InfoIconLabel/index.js +10 -0
  103. package/lib-commonjs/components/InfoIconLabel/index.js.map +1 -0
  104. package/lib-commonjs/components/InfoIconLabel/renderInfoIconLabel.js +15 -0
  105. package/lib-commonjs/components/InfoIconLabel/renderInfoIconLabel.js.map +1 -0
  106. package/lib-commonjs/components/InfoIconLabel/useInfoIconLabel.js +26 -0
  107. package/lib-commonjs/components/InfoIconLabel/useInfoIconLabel.js.map +1 -0
  108. package/lib-commonjs/components/InfoIconLabel/useInfoIconLabelStyles.styles.js +30 -0
  109. package/lib-commonjs/components/InfoIconLabel/useInfoIconLabelStyles.styles.js.map +1 -0
  110. package/lib-commonjs/components/InfoLabel/InfoLabel.js +19 -0
  111. package/lib-commonjs/components/InfoLabel/InfoLabel.js.map +1 -0
  112. package/lib-commonjs/components/InfoLabel/InfoLabel.types.js +4 -0
  113. package/lib-commonjs/components/InfoLabel/InfoLabel.types.js.map +1 -0
  114. package/lib-commonjs/components/InfoLabel/index.js +10 -0
  115. package/lib-commonjs/components/InfoLabel/index.js.map +1 -0
  116. package/lib-commonjs/components/InfoLabel/renderInfoLabel.js +14 -0
  117. package/lib-commonjs/components/InfoLabel/renderInfoLabel.js.map +1 -0
  118. package/lib-commonjs/components/InfoLabel/useInfoLabel.js +65 -0
  119. package/lib-commonjs/components/InfoLabel/useInfoLabel.js.map +1 -0
  120. package/lib-commonjs/components/InfoLabel/useInfoLabelStyles.styles.js +62 -0
  121. package/lib-commonjs/components/InfoLabel/useInfoLabelStyles.styles.js.map +1 -0
  122. package/lib-commonjs/index.js +32 -36
  123. package/lib-commonjs/index.js.map +1 -1
  124. package/package.json +17 -12
  125. package/Spec.md +0 -143
  126. package/lib/components/InfoButton/useInfoButtonStyles.js +0 -187
  127. package/lib/components/InfoButton/useInfoButtonStyles.js.map +0 -1
  128. package/lib-commonjs/components/InfoButton/useInfoButtonStyles.js +0 -200
  129. package/lib-commonjs/components/InfoButton/useInfoButtonStyles.js.map +0 -1
@@ -0,0 +1,30 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,19 @@
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';
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,6 @@
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'>>
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,10 @@
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);
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,15 @@
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
+ };
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,26 @@
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
+ };
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,30 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "InfoLabel", {
6
+ enumerable: true,
7
+ get: ()=>InfoLabel
8
+ });
9
+ const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
10
+ const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
11
+ const _renderInfoLabel = require("./renderInfoLabel");
12
+ const _useInfoLabel = require("./useInfoLabel");
13
+ const _useInfoLabelStylesStyles = require("./useInfoLabelStyles.styles");
14
+ const InfoLabel = /*#__PURE__*/ _react.forwardRef((props, ref)=>{
15
+ const state = (0, _useInfoLabel.useInfoLabel_unstable)(props, ref);
16
+ (0, _useInfoLabelStylesStyles.useInfoLabelStyles_unstable)(state);
17
+ return (0, _renderInfoLabel.renderInfoLabel_unstable)(state);
18
+ });
19
+ InfoLabel.displayName = 'InfoLabel';
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["InfoLabel.js"],"sourcesContent":["import * as React from 'react';\nimport { renderInfoLabel_unstable } from './renderInfoLabel';\nimport { useInfoLabel_unstable } from './useInfoLabel';\nimport { useInfoLabelStyles_unstable } from './useInfoLabelStyles.styles';\n/**\n * InfoLabel component\n */ export const InfoLabel = /*#__PURE__*/ React.forwardRef((props, ref)=>{\n const state = useInfoLabel_unstable(props, ref);\n useInfoLabelStyles_unstable(state);\n return renderInfoLabel_unstable(state);\n});\nInfoLabel.displayName = 'InfoLabel';\n"],"names":["InfoLabel","React","forwardRef","props","ref","state","useInfoLabel_unstable","useInfoLabelStyles_unstable","renderInfoLabel_unstable","displayName"],"mappings":";;;;+BAMiBA;;aAAAA;;;6DANM;iCACkB;8BACH;0CACM;AAGjC,MAAMA,YAAY,WAAW,GAAGC,OAAMC,UAAU,CAAC,CAACC,OAAOC,MAAM;IACtE,MAAMC,QAAQC,IAAAA,mCAAqB,EAACH,OAAOC;IAC3CG,IAAAA,qDAA2B,EAACF;IAC5B,OAAOG,IAAAA,yCAAwB,EAACH;AACpC;AACAL,UAAUS,WAAW,GAAG"}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
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("./InfoLabel"), exports);
7
+ _exportStar(require("./InfoLabel.types"), exports);
8
+ _exportStar(require("./renderInfoLabel"), exports);
9
+ _exportStar(require("./useInfoLabel"), exports);
10
+ _exportStar(require("./useInfoLabelStyles.styles"), exports);
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["index.js"],"sourcesContent":["export * from './InfoLabel';\nexport * from './InfoLabel.types';\nexport * from './renderInfoLabel';\nexport * from './useInfoLabel';\nexport * from './useInfoLabelStyles.styles';\n"],"names":[],"mappings":";;;;;oBAAc;oBACA;oBACA;oBACA;oBACA"}
@@ -0,0 +1,14 @@
1
+ /** @jsxRuntime classic */ /** @jsx createElement */ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "renderInfoLabel_unstable", {
6
+ enumerable: true,
7
+ get: ()=>renderInfoLabel_unstable
8
+ });
9
+ const _reactJsxRuntime = require("@fluentui/react-jsx-runtime");
10
+ const _reactUtilities = require("@fluentui/react-utilities");
11
+ const renderInfoLabel_unstable = (state)=>{
12
+ const { slots , slotProps } = (0, _reactUtilities.getSlotsNext)(state);
13
+ return /*#__PURE__*/ (0, _reactJsxRuntime.createElement)(slots.root, slotProps.root, /*#__PURE__*/ (0, _reactJsxRuntime.createElement)(slots.label, slotProps.label), slots.infoButton && /*#__PURE__*/ (0, _reactJsxRuntime.createElement)(slots.infoButton, slotProps.infoButton));
14
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["renderInfoLabel.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 InfoLabel\n */ export const renderInfoLabel_unstable = (state)=>{\n const { slots , slotProps } = getSlotsNext(state);\n return /*#__PURE__*/ createElement(slots.root, slotProps.root, /*#__PURE__*/ createElement(slots.label, slotProps.label), slots.infoButton && /*#__PURE__*/ createElement(slots.infoButton, slotProps.infoButton));\n};\n"],"names":["renderInfoLabel_unstable","state","slots","slotProps","getSlotsNext","createElement","root","label","infoButton"],"mappings":"AAAA,wBAAwB,GAAG,uBAAuB;;;;+BAIjCA;;aAAAA;;iCAJkE;gCACtD;AAGlB,MAAMA,2BAA2B,CAACC,QAAQ;IACjD,MAAM,EAAEC,MAAK,EAAGC,UAAS,EAAG,GAAGC,IAAAA,4BAAY,EAACH;IAC5C,OAAO,WAAW,GAAGI,IAAAA,8BAAa,EAACH,MAAMI,IAAI,EAAEH,UAAUG,IAAI,EAAE,WAAW,GAAGD,IAAAA,8BAAa,EAACH,MAAMK,KAAK,EAAEJ,UAAUI,KAAK,GAAGL,MAAMM,UAAU,IAAI,WAAW,GAAGH,IAAAA,8BAAa,EAACH,MAAMM,UAAU,EAAEL,UAAUK,UAAU;AACpN"}
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "useInfoLabel_unstable", {
6
+ enumerable: true,
7
+ get: ()=>useInfoLabel_unstable
8
+ });
9
+ const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
10
+ const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
11
+ const _reactLabel = require("@fluentui/react-label");
12
+ const _reactUtilities = require("@fluentui/react-utilities");
13
+ const _infoButton = require("../InfoButton/InfoButton");
14
+ var _infoButton1, _arialabelledby, _root, _ariaowns;
15
+ const useInfoLabel_unstable = (props, ref)=>{
16
+ const { root: rootShorthand , label: labelShorthand , infoButton: infoButtonShorthand , info , size , className , style , ...labelProps } = props;
17
+ const baseId = (0, _reactUtilities.useId)('infolabel-');
18
+ const root = (0, _reactUtilities.resolveShorthand)(rootShorthand, {
19
+ required: true,
20
+ defaultProps: {
21
+ className,
22
+ style
23
+ }
24
+ });
25
+ const label = (0, _reactUtilities.resolveShorthand)(labelShorthand, {
26
+ required: true,
27
+ defaultProps: {
28
+ id: baseId + '__label',
29
+ ref,
30
+ size,
31
+ ...labelProps
32
+ }
33
+ });
34
+ const infoButton = (0, _reactUtilities.resolveShorthand)(infoButtonShorthand, {
35
+ required: !!info,
36
+ defaultProps: {
37
+ id: baseId + '__infoButton',
38
+ size,
39
+ info
40
+ }
41
+ });
42
+ if (infoButton) {
43
+ var _infoButton_info;
44
+ infoButton.info = (0, _reactUtilities.resolveShorthand)(infoButton === null || infoButton === void 0 ? void 0 : infoButton.info, {
45
+ defaultProps: {
46
+ id: baseId + '__info'
47
+ }
48
+ });
49
+ var _;
50
+ (_ = (_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;
53
+ }
54
+ return {
55
+ size,
56
+ components: {
57
+ root: 'span',
58
+ label: _reactLabel.Label,
59
+ infoButton: _infoButton.InfoButton
60
+ },
61
+ root,
62
+ label,
63
+ infoButton
64
+ };
65
+ };
@@ -0,0 +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"}
@@ -0,0 +1,62 @@
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
+ infoLabelClassNames: ()=>infoLabelClassNames,
13
+ useInfoLabelStyles_unstable: ()=>useInfoLabelStyles_unstable
14
+ });
15
+ const _react = require("@griffel/react");
16
+ const infoLabelClassNames = {
17
+ root: 'fui-InfoLabel',
18
+ label: 'fui-InfoLabel__label',
19
+ infoButton: 'fui-InfoLabel__infoButton'
20
+ };
21
+ const useLabelStyles = /*#__PURE__*/ (0, _react["__styles"])({
22
+ base: {
23
+ ha4doy: "f12kltsn",
24
+ Bceei9c: "fpo1scq",
25
+ sj55zd: "f1ym3bx4"
26
+ }
27
+ }, {
28
+ d: [
29
+ ".f12kltsn{vertical-align:top;}",
30
+ ".fpo1scq{cursor:inherit;}",
31
+ ".f1ym3bx4{color:inherit;}"
32
+ ]
33
+ });
34
+ const useInfoButtonStyles = /*#__PURE__*/ (0, _react["__styles"])({
35
+ base: {
36
+ ha4doy: "f12kltsn",
37
+ B6of3ja: "f1bmzb36",
38
+ jrapky: "f1nyzk09"
39
+ },
40
+ large: {
41
+ B6of3ja: "fkrn0sh",
42
+ jrapky: "fmxx68s"
43
+ }
44
+ }, {
45
+ d: [
46
+ ".f12kltsn{vertical-align:top;}",
47
+ ".f1bmzb36{margin-top:calc(0px - var(--spacingVerticalXXS));}",
48
+ ".f1nyzk09{margin-bottom:calc(0px - var(--spacingVerticalXXS));}",
49
+ ".fkrn0sh{margin-top:-1px;}",
50
+ ".fmxx68s{margin-bottom:-1px;}"
51
+ ]
52
+ });
53
+ const useInfoLabelStyles_unstable = (state)=>{
54
+ state.root.className = (0, _react.mergeClasses)(infoLabelClassNames.root, state.root.className);
55
+ const labelStyles = useLabelStyles();
56
+ state.label.className = (0, _react.mergeClasses)(infoLabelClassNames.label, labelStyles.base, state.label.className);
57
+ const infoButtonStyles = useInfoButtonStyles();
58
+ if (state.infoButton) {
59
+ state.infoButton.className = (0, _react.mergeClasses)(infoLabelClassNames.infoButton, infoButtonStyles.base, state.size === 'large' && infoButtonStyles.large, state.infoButton.className);
60
+ }
61
+ return state;
62
+ }; //# sourceMappingURL=useInfoLabelStyles.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["useInfoLabelStyles.styles.js"],"sourcesContent":["import { tokens } from '@fluentui/react-theme';\nimport { __styles, mergeClasses } from '@griffel/react';\nexport const infoLabelClassNames = {\n root: 'fui-InfoLabel',\n label: 'fui-InfoLabel__label',\n infoButton: 'fui-InfoLabel__infoButton'\n};\nconst useLabelStyles = /*#__PURE__*/__styles({\n base: {\n ha4doy: \"f12kltsn\",\n Bceei9c: \"fpo1scq\",\n sj55zd: \"f1ym3bx4\"\n }\n}, {\n d: [\".f12kltsn{vertical-align:top;}\", \".fpo1scq{cursor:inherit;}\", \".f1ym3bx4{color:inherit;}\"]\n});\nconst useInfoButtonStyles = /*#__PURE__*/__styles({\n base: {\n ha4doy: \"f12kltsn\",\n B6of3ja: \"f1bmzb36\",\n jrapky: \"f1nyzk09\"\n },\n large: {\n B6of3ja: \"fkrn0sh\",\n jrapky: \"fmxx68s\"\n }\n}, {\n d: [\".f12kltsn{vertical-align:top;}\", \".f1bmzb36{margin-top:calc(0px - var(--spacingVerticalXXS));}\", \".f1nyzk09{margin-bottom:calc(0px - var(--spacingVerticalXXS));}\", \".fkrn0sh{margin-top:-1px;}\", \".fmxx68s{margin-bottom:-1px;}\"]\n});\n/**\n * Apply styling to the InfoLabel slots based on the state\n */\nexport const useInfoLabelStyles_unstable = state => {\n state.root.className = mergeClasses(infoLabelClassNames.root, state.root.className);\n const labelStyles = useLabelStyles();\n state.label.className = mergeClasses(infoLabelClassNames.label, labelStyles.base, state.label.className);\n const infoButtonStyles = useInfoButtonStyles();\n if (state.infoButton) {\n state.infoButton.className = mergeClasses(infoLabelClassNames.infoButton, infoButtonStyles.base, state.size === 'large' && infoButtonStyles.large, state.infoButton.className);\n }\n return state;\n};\n//# sourceMappingURL=useInfoLabelStyles.styles.js.map"],"names":["infoLabelClassNames","useInfoLabelStyles_unstable","root","label","infoButton","useLabelStyles","__styles","base","ha4doy","Bceei9c","sj55zd","d","useInfoButtonStyles","B6of3ja","jrapky","large","state","className","mergeClasses","labelStyles","infoButtonStyles","size"],"mappings":";;;;;;;;;;;IAEaA,mBAAmB,MAAnBA;IA8BAC,2BAA2B,MAA3BA;;uBA/B0B;AAChC,MAAMD,sBAAsB;IACjCE,MAAM;IACNC,OAAO;IACPC,YAAY;AACd;AACA,MAAMC,iBAAiB,WAAW,GAAEC,IAAAA,kBAAQ,EAAC;IAC3CC,MAAM;QACJC,QAAQ;QACRC,SAAS;QACTC,QAAQ;IACV;AACF,GAAG;IACDC,GAAG;QAAC;QAAkC;QAA6B;KAA4B;AACjG;AACA,MAAMC,sBAAsB,WAAW,GAAEN,IAAAA,kBAAQ,EAAC;IAChDC,MAAM;QACJC,QAAQ;QACRK,SAAS;QACTC,QAAQ;IACV;IACAC,OAAO;QACLF,SAAS;QACTC,QAAQ;IACV;AACF,GAAG;IACDH,GAAG;QAAC;QAAkC;QAAgE;QAAmE;QAA8B;KAAgC;AACzO;AAIO,MAAMV,8BAA8Be,CAAAA,QAAS;IAClDA,MAAMd,IAAI,CAACe,SAAS,GAAGC,IAAAA,mBAAY,EAAClB,oBAAoBE,IAAI,EAAEc,MAAMd,IAAI,CAACe,SAAS;IAClF,MAAME,cAAcd;IACpBW,MAAMb,KAAK,CAACc,SAAS,GAAGC,IAAAA,mBAAY,EAAClB,oBAAoBG,KAAK,EAAEgB,YAAYZ,IAAI,EAAES,MAAMb,KAAK,CAACc,SAAS;IACvG,MAAMG,mBAAmBR;IACzB,IAAII,MAAMZ,UAAU,EAAE;QACpBY,MAAMZ,UAAU,CAACa,SAAS,GAAGC,IAAAA,mBAAY,EAAClB,oBAAoBI,UAAU,EAAEgB,iBAAiBb,IAAI,EAAES,MAAMK,IAAI,KAAK,WAAWD,iBAAiBL,KAAK,EAAEC,MAAMZ,UAAU,CAACa,SAAS;IAC/K,CAAC;IACD,OAAOD;AACT,GACA,qDAAqD"}
@@ -1,40 +1,36 @@
1
1
  "use strict";
2
-
3
2
  Object.defineProperty(exports, "__esModule", {
4
- value: true
3
+ value: true
5
4
  });
6
- exports.useInfoButton_unstable = exports.useInfoButtonStyles_unstable = exports.renderInfoButton_unstable = exports.infoButtonClassNames = exports.InfoButton = void 0;
7
-
8
- var InfoButton_1 = /*#__PURE__*/require("./InfoButton");
9
-
10
- Object.defineProperty(exports, "InfoButton", {
11
- enumerable: true,
12
- get: function () {
13
- return InfoButton_1.InfoButton;
14
- }
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
+ InfoButton: ()=>_infoButton.InfoButton,
13
+ infoButtonClassNames: ()=>_infoButton.infoButtonClassNames,
14
+ renderInfoButton_unstable: ()=>_infoButton.renderInfoButton_unstable,
15
+ useInfoButtonStyles_unstable: ()=>_infoButton.useInfoButtonStyles_unstable,
16
+ useInfoButton_unstable: ()=>_infoButton.useInfoButton_unstable,
17
+ InfoLabel: ()=>_infoLabel.InfoLabel,
18
+ infoLabelClassNames: ()=>_infoLabel.infoLabelClassNames,
19
+ renderInfoLabel_unstable: ()=>_infoLabel.renderInfoLabel_unstable,
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
15
32
  });
16
- Object.defineProperty(exports, "infoButtonClassNames", {
17
- enumerable: true,
18
- get: function () {
19
- return InfoButton_1.infoButtonClassNames;
20
- }
21
- });
22
- Object.defineProperty(exports, "renderInfoButton_unstable", {
23
- enumerable: true,
24
- get: function () {
25
- return InfoButton_1.renderInfoButton_unstable;
26
- }
27
- });
28
- Object.defineProperty(exports, "useInfoButtonStyles_unstable", {
29
- enumerable: true,
30
- get: function () {
31
- return InfoButton_1.useInfoButtonStyles_unstable;
32
- }
33
- });
34
- Object.defineProperty(exports, "useInfoButton_unstable", {
35
- enumerable: true,
36
- get: function () {
37
- return InfoButton_1.useInfoButton_unstable;
38
- }
39
- });
40
- //# sourceMappingURL=index.js.map
33
+ const _infoButton = require("./InfoButton");
34
+ const _infoLabel = require("./InfoLabel");
35
+ const _infoIcon = require("./InfoIcon");
36
+ const _infoIconLabel = require("./InfoIconLabel");
@@ -1 +1 @@
1
- {"version":3,"sources":["packages/react-components/react-infobutton/src/index.ts"],"names":[],"mappings":";;;;;;;AAAA,IAAA,YAAA,gBAAA,OAAA,CAAA,cAAA,CAAA;;AACE,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,YAAA,EAAA;EAAA,UAAA,EAAA,IAAA;EAAA,GAAA,EAAA,YAAA;IAAA,OAAA,YAAA,CAAA,UAAA;EAAU;AAAV,CAAA;AACA,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,sBAAA,EAAA;EAAA,UAAA,EAAA,IAAA;EAAA,GAAA,EAAA,YAAA;IAAA,OAAA,YAAA,CAAA,oBAAA;EAAoB;AAApB,CAAA;AACA,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,2BAAA,EAAA;EAAA,UAAA,EAAA,IAAA;EAAA,GAAA,EAAA,YAAA;IAAA,OAAA,YAAA,CAAA,yBAAA;EAAyB;AAAzB,CAAA;AACA,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,8BAAA,EAAA;EAAA,UAAA,EAAA,IAAA;EAAA,GAAA,EAAA,YAAA;IAAA,OAAA,YAAA,CAAA,4BAAA;EAA4B;AAA5B,CAAA;AACA,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,wBAAA,EAAA;EAAA,UAAA,EAAA,IAAA;EAAA,GAAA,EAAA,YAAA;IAAA,OAAA,YAAA,CAAA,sBAAA;EAAsB;AAAtB,CAAA","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';\n"],"sourceRoot":"../src/"}
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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/react-infobutton",
3
- "version": "9.0.0-beta.4",
3
+ "version": "9.0.0-beta.40",
4
4
  "description": "React components for building web experiences",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
@@ -19,25 +19,29 @@
19
19
  "just": "just-scripts",
20
20
  "lint": "just-scripts lint",
21
21
  "test": "jest --passWithNoTests",
22
- "generate-api": "tsc -p ./tsconfig.lib.json --emitDeclarationOnly && just-scripts api-extractor",
22
+ "generate-api": "just-scripts generate-api",
23
23
  "type-check": "tsc -b tsconfig.json",
24
24
  "storybook": "start-storybook",
25
- "start": "yarn storybook"
25
+ "start": "yarn storybook",
26
+ "test-ssr": "test-ssr \"./stories/**/*.stories.tsx\""
26
27
  },
27
28
  "devDependencies": {
28
29
  "@fluentui/eslint-plugin": "*",
29
30
  "@fluentui/react-conformance": "*",
30
- "@fluentui/react-conformance-griffel": "9.0.0-beta.18",
31
- "@fluentui/scripts": "^1.0.0"
31
+ "@fluentui/react-conformance-griffel": "9.0.0-beta.23",
32
+ "@fluentui/scripts-api-extractor": "*",
33
+ "@fluentui/scripts-tasks": "*"
32
34
  },
33
35
  "dependencies": {
34
- "@fluentui/react-icons": "^2.0.175",
35
- "@fluentui/react-popover": "^9.3.5",
36
- "@fluentui/react-tabster": "^9.3.4",
37
- "@fluentui/react-theme": "^9.1.5",
38
- "@fluentui/react-utilities": "^9.3.0",
39
- "@griffel/react": "^1.4.2",
40
- "tslib": "^2.1.0"
36
+ "@fluentui/react-icons": "^2.0.203",
37
+ "@fluentui/react-label": "^9.1.19",
38
+ "@fluentui/react-popover": "^9.7.5",
39
+ "@fluentui/react-tabster": "^9.10.0",
40
+ "@fluentui/react-theme": "^9.1.9",
41
+ "@fluentui/react-utilities": "^9.10.1",
42
+ "@fluentui/react-jsx-runtime": "9.0.0-alpha.10",
43
+ "@griffel/react": "^1.5.7",
44
+ "@swc/helpers": "^0.4.14"
41
45
  },
42
46
  "peerDependencies": {
43
47
  "@types/react": ">=16.8.0 <19.0.0",
@@ -55,6 +59,7 @@
55
59
  "exports": {
56
60
  ".": {
57
61
  "types": "./dist/index.d.ts",
62
+ "node": "./lib-commonjs/index.js",
58
63
  "import": "./lib/index.js",
59
64
  "require": "./lib-commonjs/index.js"
60
65
  },