@fluentui/react-text 0.0.0-nightly-20230222-0421.1 → 0.0.0-nightly-20230223-2115.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (186) hide show
  1. package/.swcrc +33 -0
  2. package/CHANGELOG.json +9 -9
  3. package/CHANGELOG.md +7 -7
  4. package/lib/Body1.js.map +1 -1
  5. package/lib/Body1Strong.js.map +1 -1
  6. package/lib/Body1Stronger.js.map +1 -1
  7. package/lib/Body2.js.map +1 -1
  8. package/lib/Caption1.js.map +1 -1
  9. package/lib/Caption1Strong.js.map +1 -1
  10. package/lib/Caption1Stronger.js.map +1 -1
  11. package/lib/Caption2.js.map +1 -1
  12. package/lib/Caption2Strong.js.map +1 -1
  13. package/lib/Display.js.map +1 -1
  14. package/lib/LargeTitle.js.map +1 -1
  15. package/lib/Subtitle1.js.map +1 -1
  16. package/lib/Subtitle2.js.map +1 -1
  17. package/lib/Subtitle2Stronger.js.map +1 -1
  18. package/lib/Text.js.map +1 -1
  19. package/lib/Title1.js.map +1 -1
  20. package/lib/Title2.js.map +1 -1
  21. package/lib/Title3.js.map +1 -1
  22. package/lib/components/Text/Text.js.map +1 -1
  23. package/lib/components/Text/Text.types.js.map +1 -1
  24. package/lib/components/Text/index.js.map +1 -1
  25. package/lib/components/Text/renderText.js +2 -3
  26. package/lib/components/Text/renderText.js.map +1 -1
  27. package/lib/components/Text/useText.js +12 -12
  28. package/lib/components/Text/useText.js.map +1 -1
  29. package/lib/components/Text/useTextStyles.js.map +1 -1
  30. package/lib/components/presets/Body1/Body1.js.map +1 -1
  31. package/lib/components/presets/Body1/index.js.map +1 -1
  32. package/lib/components/presets/Body1Strong/Body1Strong.js.map +1 -1
  33. package/lib/components/presets/Body1Strong/index.js.map +1 -1
  34. package/lib/components/presets/Body1Stronger/Body1Stronger.js.map +1 -1
  35. package/lib/components/presets/Body1Stronger/index.js.map +1 -1
  36. package/lib/components/presets/Body2/Body2.js.map +1 -1
  37. package/lib/components/presets/Body2/index.js.map +1 -1
  38. package/lib/components/presets/Caption1/Caption1.js.map +1 -1
  39. package/lib/components/presets/Caption1/index.js.map +1 -1
  40. package/lib/components/presets/Caption1Strong/Caption1Strong.js.map +1 -1
  41. package/lib/components/presets/Caption1Strong/index.js.map +1 -1
  42. package/lib/components/presets/Caption1Stronger/Caption1Stronger.js.map +1 -1
  43. package/lib/components/presets/Caption1Stronger/index.js.map +1 -1
  44. package/lib/components/presets/Caption2/Caption2.js.map +1 -1
  45. package/lib/components/presets/Caption2/index.js.map +1 -1
  46. package/lib/components/presets/Caption2Strong/Caption2Strong.js.map +1 -1
  47. package/lib/components/presets/Caption2Strong/index.js.map +1 -1
  48. package/lib/components/presets/Display/Display.js.map +1 -1
  49. package/lib/components/presets/Display/index.js.map +1 -1
  50. package/lib/components/presets/LargeTitle/LargeTitle.js.map +1 -1
  51. package/lib/components/presets/LargeTitle/index.js.map +1 -1
  52. package/lib/components/presets/Subtitle1/Subtitle1.js.map +1 -1
  53. package/lib/components/presets/Subtitle1/index.js.map +1 -1
  54. package/lib/components/presets/Subtitle2/Subtitle2.js.map +1 -1
  55. package/lib/components/presets/Subtitle2/index.js.map +1 -1
  56. package/lib/components/presets/Subtitle2Stronger/Subtitle2Stronger.js.map +1 -1
  57. package/lib/components/presets/Subtitle2Stronger/index.js.map +1 -1
  58. package/lib/components/presets/Title1/Title1.js.map +1 -1
  59. package/lib/components/presets/Title1/index.js.map +1 -1
  60. package/lib/components/presets/Title2/Title2.js.map +1 -1
  61. package/lib/components/presets/Title2/index.js.map +1 -1
  62. package/lib/components/presets/Title3/Title3.js.map +1 -1
  63. package/lib/components/presets/Title3/index.js.map +1 -1
  64. package/lib/components/presets/createPreset.js.map +1 -1
  65. package/lib/index.js.map +1 -1
  66. package/lib-commonjs/Body1.js +5 -4
  67. package/lib-commonjs/Body1.js.map +1 -1
  68. package/lib-commonjs/Body1Strong.js +5 -4
  69. package/lib-commonjs/Body1Strong.js.map +1 -1
  70. package/lib-commonjs/Body1Stronger.js +5 -4
  71. package/lib-commonjs/Body1Stronger.js.map +1 -1
  72. package/lib-commonjs/Body2.js +5 -4
  73. package/lib-commonjs/Body2.js.map +1 -1
  74. package/lib-commonjs/Caption1.js +5 -4
  75. package/lib-commonjs/Caption1.js.map +1 -1
  76. package/lib-commonjs/Caption1Strong.js +5 -4
  77. package/lib-commonjs/Caption1Strong.js.map +1 -1
  78. package/lib-commonjs/Caption1Stronger.js +5 -4
  79. package/lib-commonjs/Caption1Stronger.js.map +1 -1
  80. package/lib-commonjs/Caption2.js +5 -4
  81. package/lib-commonjs/Caption2.js.map +1 -1
  82. package/lib-commonjs/Caption2Strong.js +5 -4
  83. package/lib-commonjs/Caption2Strong.js.map +1 -1
  84. package/lib-commonjs/Display.js +5 -4
  85. package/lib-commonjs/Display.js.map +1 -1
  86. package/lib-commonjs/LargeTitle.js +5 -4
  87. package/lib-commonjs/LargeTitle.js.map +1 -1
  88. package/lib-commonjs/Subtitle1.js +5 -4
  89. package/lib-commonjs/Subtitle1.js.map +1 -1
  90. package/lib-commonjs/Subtitle2.js +5 -4
  91. package/lib-commonjs/Subtitle2.js.map +1 -1
  92. package/lib-commonjs/Subtitle2Stronger.js +5 -4
  93. package/lib-commonjs/Subtitle2Stronger.js.map +1 -1
  94. package/lib-commonjs/Text.js +5 -4
  95. package/lib-commonjs/Text.js.map +1 -1
  96. package/lib-commonjs/Title1.js +5 -4
  97. package/lib-commonjs/Title1.js.map +1 -1
  98. package/lib-commonjs/Title2.js +5 -4
  99. package/lib-commonjs/Title2.js.map +1 -1
  100. package/lib-commonjs/Title3.js +5 -4
  101. package/lib-commonjs/Title3.js.map +1 -1
  102. package/lib-commonjs/components/Text/Text.js +16 -16
  103. package/lib-commonjs/components/Text/Text.js.map +1 -1
  104. package/lib-commonjs/components/Text/Text.types.js +3 -2
  105. package/lib-commonjs/components/Text/Text.types.js.map +1 -1
  106. package/lib-commonjs/components/Text/index.js +9 -8
  107. package/lib-commonjs/components/Text/index.js.map +1 -1
  108. package/lib-commonjs/components/Text/renderText.js +15 -18
  109. package/lib-commonjs/components/Text/renderText.js.map +1 -1
  110. package/lib-commonjs/components/Text/useText.js +34 -51
  111. package/lib-commonjs/components/Text/useText.js.map +1 -1
  112. package/lib-commonjs/components/Text/useTextStyles.js +163 -114
  113. package/lib-commonjs/components/Text/useTextStyles.js.map +1 -1
  114. package/lib-commonjs/components/presets/Body1/Body1.js +34 -25
  115. package/lib-commonjs/components/presets/Body1/Body1.js.map +1 -1
  116. package/lib-commonjs/components/presets/Body1/index.js +5 -4
  117. package/lib-commonjs/components/presets/Body1/index.js.map +1 -1
  118. package/lib-commonjs/components/presets/Body1Strong/Body1Strong.js +34 -25
  119. package/lib-commonjs/components/presets/Body1Strong/Body1Strong.js.map +1 -1
  120. package/lib-commonjs/components/presets/Body1Strong/index.js +5 -4
  121. package/lib-commonjs/components/presets/Body1Strong/index.js.map +1 -1
  122. package/lib-commonjs/components/presets/Body1Stronger/Body1Stronger.js +34 -25
  123. package/lib-commonjs/components/presets/Body1Stronger/Body1Stronger.js.map +1 -1
  124. package/lib-commonjs/components/presets/Body1Stronger/index.js +5 -4
  125. package/lib-commonjs/components/presets/Body1Stronger/index.js.map +1 -1
  126. package/lib-commonjs/components/presets/Body2/Body2.js +34 -25
  127. package/lib-commonjs/components/presets/Body2/Body2.js.map +1 -1
  128. package/lib-commonjs/components/presets/Body2/index.js +5 -4
  129. package/lib-commonjs/components/presets/Body2/index.js.map +1 -1
  130. package/lib-commonjs/components/presets/Caption1/Caption1.js +34 -25
  131. package/lib-commonjs/components/presets/Caption1/Caption1.js.map +1 -1
  132. package/lib-commonjs/components/presets/Caption1/index.js +5 -4
  133. package/lib-commonjs/components/presets/Caption1/index.js.map +1 -1
  134. package/lib-commonjs/components/presets/Caption1Strong/Caption1Strong.js +34 -25
  135. package/lib-commonjs/components/presets/Caption1Strong/Caption1Strong.js.map +1 -1
  136. package/lib-commonjs/components/presets/Caption1Strong/index.js +5 -4
  137. package/lib-commonjs/components/presets/Caption1Strong/index.js.map +1 -1
  138. package/lib-commonjs/components/presets/Caption1Stronger/Caption1Stronger.js +34 -25
  139. package/lib-commonjs/components/presets/Caption1Stronger/Caption1Stronger.js.map +1 -1
  140. package/lib-commonjs/components/presets/Caption1Stronger/index.js +5 -4
  141. package/lib-commonjs/components/presets/Caption1Stronger/index.js.map +1 -1
  142. package/lib-commonjs/components/presets/Caption2/Caption2.js +34 -25
  143. package/lib-commonjs/components/presets/Caption2/Caption2.js.map +1 -1
  144. package/lib-commonjs/components/presets/Caption2/index.js +5 -4
  145. package/lib-commonjs/components/presets/Caption2/index.js.map +1 -1
  146. package/lib-commonjs/components/presets/Caption2Strong/Caption2Strong.js +34 -25
  147. package/lib-commonjs/components/presets/Caption2Strong/Caption2Strong.js.map +1 -1
  148. package/lib-commonjs/components/presets/Caption2Strong/index.js +5 -4
  149. package/lib-commonjs/components/presets/Caption2Strong/index.js.map +1 -1
  150. package/lib-commonjs/components/presets/Display/Display.js +34 -25
  151. package/lib-commonjs/components/presets/Display/Display.js.map +1 -1
  152. package/lib-commonjs/components/presets/Display/index.js +5 -4
  153. package/lib-commonjs/components/presets/Display/index.js.map +1 -1
  154. package/lib-commonjs/components/presets/LargeTitle/LargeTitle.js +34 -25
  155. package/lib-commonjs/components/presets/LargeTitle/LargeTitle.js.map +1 -1
  156. package/lib-commonjs/components/presets/LargeTitle/index.js +5 -4
  157. package/lib-commonjs/components/presets/LargeTitle/index.js.map +1 -1
  158. package/lib-commonjs/components/presets/Subtitle1/Subtitle1.js +34 -25
  159. package/lib-commonjs/components/presets/Subtitle1/Subtitle1.js.map +1 -1
  160. package/lib-commonjs/components/presets/Subtitle1/index.js +5 -4
  161. package/lib-commonjs/components/presets/Subtitle1/index.js.map +1 -1
  162. package/lib-commonjs/components/presets/Subtitle2/Subtitle2.js +34 -25
  163. package/lib-commonjs/components/presets/Subtitle2/Subtitle2.js.map +1 -1
  164. package/lib-commonjs/components/presets/Subtitle2/index.js +5 -4
  165. package/lib-commonjs/components/presets/Subtitle2/index.js.map +1 -1
  166. package/lib-commonjs/components/presets/Subtitle2Stronger/Subtitle2Stronger.js +34 -25
  167. package/lib-commonjs/components/presets/Subtitle2Stronger/Subtitle2Stronger.js.map +1 -1
  168. package/lib-commonjs/components/presets/Subtitle2Stronger/index.js +5 -4
  169. package/lib-commonjs/components/presets/Subtitle2Stronger/index.js.map +1 -1
  170. package/lib-commonjs/components/presets/Title1/Title1.js +34 -25
  171. package/lib-commonjs/components/presets/Title1/Title1.js.map +1 -1
  172. package/lib-commonjs/components/presets/Title1/index.js +5 -4
  173. package/lib-commonjs/components/presets/Title1/index.js.map +1 -1
  174. package/lib-commonjs/components/presets/Title2/Title2.js +34 -25
  175. package/lib-commonjs/components/presets/Title2/Title2.js.map +1 -1
  176. package/lib-commonjs/components/presets/Title2/index.js +5 -4
  177. package/lib-commonjs/components/presets/Title2/index.js.map +1 -1
  178. package/lib-commonjs/components/presets/Title3/Title3.js +34 -25
  179. package/lib-commonjs/components/presets/Title3/Title3.js.map +1 -1
  180. package/lib-commonjs/components/presets/Title3/index.js +5 -4
  181. package/lib-commonjs/components/presets/Title3/index.js.map +1 -1
  182. package/lib-commonjs/components/presets/createPreset.js +21 -22
  183. package/lib-commonjs/components/presets/createPreset.js.map +1 -1
  184. package/lib-commonjs/index.js +69 -256
  185. package/lib-commonjs/index.js.map +1 -1
  186. package/package.json +6 -6
@@ -1 +1 @@
1
- {"version":3,"mappings":";;;;;;AAAA;AACA;AACA;AACA;AAIA;;;AAGaA,YAAI,gBAAmCC,KAAK,CAACC,UAAU,CAAC,CAACC,KAAK,EAAEC,GAAG,KAAI;EAClF,MAAMC,KAAK,GAAGC,0BAAgB,CAACH,KAAK,EAAEC,GAAG,CAAC;EAE1CG,sCAAsB,CAACF,KAAK,CAAC;EAE7B,OAAOG,gCAAmB,CAACH,KAAK,CAAC;EACjC;AACF,CAAC,CAAmC;;AAEpCL,YAAI,CAACS,WAAW,GAAG,MAAM","names":["exports","React","forwardRef","props","ref","state","useText_1","useTextStyles_1","renderText_1","displayName"],"sourceRoot":"","sources":["../../../../../../../../../packages/react-components/react-text/src/components/Text/Text.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useText_unstable } from './useText';\nimport { renderText_unstable } from './renderText';\nimport { useTextStyles_unstable } from './useTextStyles';\nimport type { TextProps } from './Text.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\n\n/**\n * Typography and styling abstraction component used to ensure consistency of text.\n */\nexport const Text: ForwardRefComponent<TextProps> = React.forwardRef((props, ref) => {\n const state = useText_unstable(props, ref);\n\n useTextStyles_unstable(state);\n\n return renderText_unstable(state);\n // Work around some small mismatches in inferred types which don't matter in practice\n}) as ForwardRefComponent<TextProps>;\n\nText.displayName = 'Text';\n"]}
1
+ {"version":3,"sources":["../../../lib/components/Text/Text.js"],"sourcesContent":["import * as React from 'react';\nimport { useText_unstable } from './useText';\nimport { renderText_unstable } from './renderText';\nimport { useTextStyles_unstable } from './useTextStyles';\n/**\n * Typography and styling abstraction component used to ensure consistency of text.\n */\nexport const Text = /*#__PURE__*/React.forwardRef((props, ref) => {\n const state = useText_unstable(props, ref);\n useTextStyles_unstable(state);\n return renderText_unstable(state);\n // Work around some small mismatches in inferred types which don't matter in practice\n});\n\nText.displayName = 'Text';\n//# sourceMappingURL=Text.js.map"],"names":["Text","React","forwardRef","props","ref","state","useText_unstable","useTextStyles_unstable","renderText_unstable","displayName"],"mappings":";;;;+BAOaA;;aAAAA;;;6DAPU;yBACU;4BACG;+BACG;AAIhC,MAAMA,OAAO,WAAW,GAAEC,OAAMC,UAAU,CAAC,CAACC,OAAOC,MAAQ;IAChE,MAAMC,QAAQC,IAAAA,yBAAgB,EAACH,OAAOC;IACtCG,IAAAA,qCAAsB,EAACF;IACvB,OAAOG,IAAAA,+BAAmB,EAACH;AAC3B,qFAAqF;AACvF;AAEAL,KAAKS,WAAW,GAAG,QACnB,gCAAgC"}
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
-
3
2
  Object.defineProperty(exports, "__esModule", {
4
- value: true
3
+ value: true
5
4
  });
5
+ //# sourceMappingURL=Text.types.js.map
6
+
6
7
  //# sourceMappingURL=Text.types.js.map
@@ -1 +1 @@
1
- {"version":3,"mappings":"","names":[],"sourceRoot":"","sources":[],"sourcesContent":[]}
1
+ {"version":3,"sources":["../../../lib/components/Text/Text.types.js"],"sourcesContent":["export {};\n//# sourceMappingURL=Text.types.js.map"],"names":[],"mappings":";;;;CACA,sCAAsC"}
@@ -1,12 +1,13 @@
1
1
  "use strict";
2
-
3
2
  Object.defineProperty(exports, "__esModule", {
4
- value: true
3
+ value: true
5
4
  });
6
- const tslib_1 = /*#__PURE__*/require("tslib");
7
- tslib_1.__exportStar(require("./Text"), exports);
8
- tslib_1.__exportStar(require("./Text.types"), exports);
9
- tslib_1.__exportStar(require("./renderText"), exports);
10
- tslib_1.__exportStar(require("./useText"), exports);
11
- tslib_1.__exportStar(require("./useTextStyles"), exports);
5
+ const _exportStar = require("@swc/helpers/lib/_export_star.js").default;
6
+ _exportStar(require("./Text"), exports);
7
+ _exportStar(require("./Text.types"), exports);
8
+ _exportStar(require("./renderText"), exports);
9
+ _exportStar(require("./useText"), exports);
10
+ _exportStar(require("./useTextStyles"), exports);
11
+ //# sourceMappingURL=index.js.map
12
+
12
13
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"mappings":";;;;;;AAAAA;AACAA;AACAA;AACAA;AACAA","names":["tslib_1"],"sourceRoot":"","sources":["../../../../../../../../../packages/react-components/react-text/src/components/Text/index.ts"],"sourcesContent":["export * from './Text';\nexport * from './Text.types';\nexport * from './renderText';\nexport * from './useText';\nexport * from './useTextStyles';\n"]}
1
+ {"version":3,"sources":["../../../lib/components/Text/index.js"],"sourcesContent":["export * from './Text';\nexport * from './Text.types';\nexport * from './renderText';\nexport * from './useText';\nexport * from './useTextStyles';\n//# sourceMappingURL=index.js.map"],"names":[],"mappings":";;;;;oBAAc;oBACA;oBACA;oBACA;oBACA;CACd,iCAAiC"}
@@ -1,22 +1,19 @@
1
1
  "use strict";
2
-
3
2
  Object.defineProperty(exports, "__esModule", {
4
- value: true
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "renderText_unstable", {
6
+ enumerable: true,
7
+ get: ()=>renderText_unstable
5
8
  });
6
- exports.renderText_unstable = void 0;
7
- const React = /*#__PURE__*/require("react");
8
- const react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
9
- /**
10
- * Render the final JSX of Text
11
- */
12
- const renderText_unstable = state => {
13
- const {
14
- slots,
15
- slotProps
16
- } = react_utilities_1.getSlots(state);
17
- return React.createElement(slots.root, {
18
- ...slotProps.root
19
- });
20
- };
21
- exports.renderText_unstable = renderText_unstable;
9
+ const _interopRequireDefault = require("@swc/helpers/lib/_interop_require_default.js").default;
10
+ const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
11
+ const _extends = require("@swc/helpers/lib/_extends.js").default;
12
+ const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
13
+ const _reactUtilities = require("@fluentui/react-utilities");
14
+ const renderText_unstable = (state)=>{
15
+ const { slots , slotProps } = (0, _reactUtilities.getSlots)(state);
16
+ return /*#__PURE__*/ _react.createElement(slots.root, _extends({}, slotProps.root));
17
+ }; //# sourceMappingURL=renderText.js.map
18
+
22
19
  //# sourceMappingURL=renderText.js.map
@@ -1 +1 @@
1
- {"version":3,"mappings":";;;;;;AAAA;AACA;AAGA;;;AAGO,MAAMA,mBAAmB,GAAIC,KAAgB,IAAI;EACtD,MAAM;IAAEC,KAAK;IAAEC;EAAS,CAAE,GAAGC,0BAAQ,CAAYH,KAAK,CAAC;EAEvD,OAAOI,oBAACH,KAAK,CAACI,IAAI;IAAA,GAAKH,SAAS,CAACG;EAAI,EAAI;AAC3C,CAAC;AAJYC,2BAAmB","names":["renderText_unstable","state","slots","slotProps","react_utilities_1","React","root","exports"],"sourceRoot":"","sources":["../../../../../../../../../packages/react-components/react-text/src/components/Text/renderText.tsx"],"sourcesContent":["import * as React from 'react';\nimport { getSlots } from '@fluentui/react-utilities';\nimport type { TextSlots, TextState } from './Text.types';\n\n/**\n * Render the final JSX of Text\n */\nexport const renderText_unstable = (state: TextState) => {\n const { slots, slotProps } = getSlots<TextSlots>(state);\n\n return <slots.root {...slotProps.root} />;\n};\n"]}
1
+ {"version":3,"sources":["../../../lib/components/Text/renderText.js"],"sourcesContent":["import _extends from \"@swc/helpers/src/_extends.mjs\";\nimport * as React from 'react';\nimport { getSlots } from '@fluentui/react-utilities';\n/**\n * Render the final JSX of Text\n */\nexport const renderText_unstable = state => {\n const {\n slots,\n slotProps\n } = getSlots(state);\n return /*#__PURE__*/React.createElement(slots.root, _extends({}, slotProps.root));\n};\n//# sourceMappingURL=renderText.js.map"],"names":["renderText_unstable","state","slots","slotProps","getSlots","React","createElement","root","_extends"],"mappings":";;;;+BAMaA;;aAAAA;;;;yBANQ;6DACE;gCACE;AAIlB,MAAMA,sBAAsBC,CAAAA,QAAS;IAC1C,MAAM,EACJC,MAAK,EACLC,UAAS,EACV,GAAGC,IAAAA,wBAAQ,EAACH;IACb,OAAO,WAAW,GAAEI,OAAMC,aAAa,CAACJ,MAAMK,IAAI,EAAEC,SAAS,CAAC,GAAGL,UAAUI,IAAI;AACjF,GACA,sCAAsC"}
@@ -1,55 +1,38 @@
1
1
  "use strict";
2
-
3
2
  Object.defineProperty(exports, "__esModule", {
4
- value: true
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "useText_unstable", {
6
+ enumerable: true,
7
+ get: ()=>useText_unstable
5
8
  });
6
- exports.useText_unstable = void 0;
7
- const react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
8
- /**
9
- * Create the state required to render Text.
10
- *
11
- * The returned state can be modified with hooks such as useTextStyles_unstable,
12
- * before being passed to renderText_unstable.
13
- *
14
- * @param props - props from this instance of Text
15
- * @param ref - reference to root HTMLElement of Text
16
- */
17
- const useText_unstable = (props, ref) => {
18
- var _a;
19
- const {
20
- wrap,
21
- truncate,
22
- block,
23
- italic,
24
- underline,
25
- strikethrough,
26
- size,
27
- font,
28
- weight,
29
- align
30
- } = props;
31
- const as = (_a = props.as) !== null && _a !== void 0 ? _a : 'span';
32
- const state = {
33
- align: align !== null && align !== void 0 ? align : 'start',
34
- block: block !== null && block !== void 0 ? block : false,
35
- font: font !== null && font !== void 0 ? font : 'base',
36
- italic: italic !== null && italic !== void 0 ? italic : false,
37
- size: size !== null && size !== void 0 ? size : 300,
38
- strikethrough: strikethrough !== null && strikethrough !== void 0 ? strikethrough : false,
39
- truncate: truncate !== null && truncate !== void 0 ? truncate : false,
40
- underline: underline !== null && underline !== void 0 ? underline : false,
41
- weight: weight !== null && weight !== void 0 ? weight : 'regular',
42
- wrap: wrap !== null && wrap !== void 0 ? wrap : true,
43
- components: {
44
- root: 'span'
45
- },
46
- root: react_utilities_1.getNativeElementProps(as, {
47
- ref,
48
- ...props,
49
- as
50
- })
51
- };
52
- return state;
53
- };
54
- exports.useText_unstable = useText_unstable;
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 useText_unstable = (props, ref)=>{
13
+ const { wrap , truncate , block , italic , underline , strikethrough , size , font , weight , align } = props;
14
+ const as = props.as ?? 'span';
15
+ const state = {
16
+ align: align ?? 'start',
17
+ block: block ?? false,
18
+ font: font ?? 'base',
19
+ italic: italic ?? false,
20
+ size: size ?? 300,
21
+ strikethrough: strikethrough ?? false,
22
+ truncate: truncate ?? false,
23
+ underline: underline ?? false,
24
+ weight: weight ?? 'regular',
25
+ wrap: wrap ?? true,
26
+ components: {
27
+ root: 'span'
28
+ },
29
+ root: (0, _reactUtilities.getNativeElementProps)(as, {
30
+ ref,
31
+ ...props,
32
+ as
33
+ })
34
+ };
35
+ return state;
36
+ }; //# sourceMappingURL=useText.js.map
37
+
55
38
  //# sourceMappingURL=useText.js.map
@@ -1 +1 @@
1
- {"version":3,"mappings":";;;;;;AACA;AAGA;;;;;;;;;AASO,MAAMA,gBAAgB,GAAG,CAACC,KAAgB,EAAEC,GAA2B,KAAe;;EAC3F,MAAM;IAAEC,IAAI;IAAEC,QAAQ;IAAEC,KAAK;IAAEC,MAAM;IAAEC,SAAS;IAAEC,aAAa;IAAEC,IAAI;IAAEC,IAAI;IAAEC,MAAM;IAAEC;EAAK,CAAE,GAAGX,KAAK;EACpG,MAAMY,EAAE,GAAG,WAAK,CAACA,EAAE,mCAAI,MAAM;EAE7B,MAAMC,KAAK,GAAc;IACvBF,KAAK,EAAEA,KAAK,aAALA,KAAK,cAALA,KAAK,GAAI,OAAO;IACvBP,KAAK,EAAEA,KAAK,aAALA,KAAK,cAALA,KAAK,GAAI,KAAK;IACrBK,IAAI,EAAEA,IAAI,aAAJA,IAAI,cAAJA,IAAI,GAAI,MAAM;IACpBJ,MAAM,EAAEA,MAAM,aAANA,MAAM,cAANA,MAAM,GAAI,KAAK;IACvBG,IAAI,EAAEA,IAAI,aAAJA,IAAI,cAAJA,IAAI,GAAI,GAAG;IACjBD,aAAa,EAAEA,aAAa,aAAbA,aAAa,cAAbA,aAAa,GAAI,KAAK;IACrCJ,QAAQ,EAAEA,QAAQ,aAARA,QAAQ,cAARA,QAAQ,GAAI,KAAK;IAC3BG,SAAS,EAAEA,SAAS,aAATA,SAAS,cAATA,SAAS,GAAI,KAAK;IAC7BI,MAAM,EAAEA,MAAM,aAANA,MAAM,cAANA,MAAM,GAAI,SAAS;IAC3BR,IAAI,EAAEA,IAAI,aAAJA,IAAI,cAAJA,IAAI,GAAI,IAAI;IAElBY,UAAU,EAAE;MAAEC,IAAI,EAAE;IAAM,CAAE;IAE5BA,IAAI,EAAEC,uCAAqB,CAACJ,EAAE,EAAE;MAC9BX,GAAG;MACH,GAAGD,KAAK;MACRY;KACD;GACF;EAED,OAAOC,KAAK;AACd,CAAC;AA1BYI,wBAAgB","names":["useText_unstable","props","ref","wrap","truncate","block","italic","underline","strikethrough","size","font","weight","align","as","state","components","root","react_utilities_1","exports"],"sourceRoot":"","sources":["../../../../../../../../../packages/react-components/react-text/src/components/Text/useText.ts"],"sourcesContent":["import * as React from 'react';\nimport { getNativeElementProps } from '@fluentui/react-utilities';\nimport type { TextProps, TextState } from './Text.types';\n\n/**\n * Create the state required to render Text.\n *\n * The returned state can be modified with hooks such as useTextStyles_unstable,\n * before being passed to renderText_unstable.\n *\n * @param props - props from this instance of Text\n * @param ref - reference to root HTMLElement of Text\n */\nexport const useText_unstable = (props: TextProps, ref: React.Ref<HTMLElement>): TextState => {\n const { wrap, truncate, block, italic, underline, strikethrough, size, font, weight, align } = props;\n const as = props.as ?? 'span';\n\n const state: TextState = {\n align: align ?? 'start',\n block: block ?? false,\n font: font ?? 'base',\n italic: italic ?? false,\n size: size ?? 300,\n strikethrough: strikethrough ?? false,\n truncate: truncate ?? false,\n underline: underline ?? false,\n weight: weight ?? 'regular',\n wrap: wrap ?? true,\n\n components: { root: 'span' },\n\n root: getNativeElementProps(as, {\n ref,\n ...props,\n as,\n }),\n };\n\n return state;\n};\n"]}
1
+ {"version":3,"sources":["../../../lib/components/Text/useText.js"],"sourcesContent":["import * as React from 'react';\nimport { getNativeElementProps } from '@fluentui/react-utilities';\n/**\n * Create the state required to render Text.\n *\n * The returned state can be modified with hooks such as useTextStyles_unstable,\n * before being passed to renderText_unstable.\n *\n * @param props - props from this instance of Text\n * @param ref - reference to root HTMLElement of Text\n */\nexport const useText_unstable = (props, ref) => {\n const {\n wrap,\n truncate,\n block,\n italic,\n underline,\n strikethrough,\n size,\n font,\n weight,\n align\n } = props;\n const as = props.as ?? 'span';\n const state = {\n align: align ?? 'start',\n block: block ?? false,\n font: font ?? 'base',\n italic: italic ?? false,\n size: size ?? 300,\n strikethrough: strikethrough ?? false,\n truncate: truncate ?? false,\n underline: underline ?? false,\n weight: weight ?? 'regular',\n wrap: wrap ?? true,\n components: {\n root: 'span'\n },\n root: getNativeElementProps(as, {\n ref,\n ...props,\n as\n })\n };\n return state;\n};\n//# sourceMappingURL=useText.js.map"],"names":["useText_unstable","props","ref","wrap","truncate","block","italic","underline","strikethrough","size","font","weight","align","as","state","components","root","getNativeElementProps"],"mappings":";;;;+BAWaA;;aAAAA;;;6DAXU;gCACe;AAU/B,MAAMA,mBAAmB,CAACC,OAAOC,MAAQ;IAC9C,MAAM,EACJC,KAAI,EACJC,SAAQ,EACRC,MAAK,EACLC,OAAM,EACNC,UAAS,EACTC,cAAa,EACbC,KAAI,EACJC,KAAI,EACJC,OAAM,EACNC,MAAK,EACN,GAAGX;IACJ,MAAMY,KAAKZ,MAAMY,EAAE,IAAI;IACvB,MAAMC,QAAQ;QACZF,OAAOA,SAAS;QAChBP,OAAOA,SAAS,KAAK;QACrBK,MAAMA,QAAQ;QACdJ,QAAQA,UAAU,KAAK;QACvBG,MAAMA,QAAQ;QACdD,eAAeA,iBAAiB,KAAK;QACrCJ,UAAUA,YAAY,KAAK;QAC3BG,WAAWA,aAAa,KAAK;QAC7BI,QAAQA,UAAU;QAClBR,MAAMA,QAAQ,IAAI;QAClBY,YAAY;YACVC,MAAM;QACR;QACAA,MAAMC,IAAAA,qCAAqB,EAACJ,IAAI;YAC9BX;YACA,GAAGD,KAAK;YACRY;QACF;IACF;IACA,OAAOC;AACT,GACA,mCAAmC"}
@@ -1,123 +1,172 @@
1
1
  "use strict";
2
-
3
2
  Object.defineProperty(exports, "__esModule", {
4
- value: true
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
+ textClassNames: ()=>textClassNames,
13
+ useTextStyles_unstable: ()=>useTextStyles_unstable
5
14
  });
6
- exports.useTextStyles_unstable = exports.textClassNames = void 0;
7
- const react_1 = /*#__PURE__*/require("@griffel/react");
8
- const react_theme_1 = /*#__PURE__*/require("@fluentui/react-theme");
9
- exports.textClassNames = {
10
- root: 'fui-Text'
15
+ const _react = require("@griffel/react");
16
+ const textClassNames = {
17
+ root: 'fui-Text'
11
18
  };
12
19
  /**
13
20
  * Styles for the root slot
14
- */
15
- const useStyles = /*#__PURE__*/react_1.__styles({
16
- root: {
17
- Bahqtrf: "fk6fouc",
18
- Be2twd7: "fkhj508",
19
- Bg96gwp: "f1i3iumi",
20
- Bhrd7zp: "figsok6",
21
- fsow6f: "fpgzoln",
22
- mc9l5x: "f1w7gpdv",
23
- Huce71: "f6juhto",
24
- B68tc82: "f1mtd64y",
25
- Bmxbyg5: "f1y7q3j9",
26
- ygn44y: "f2jf649"
27
- },
28
- nowrap: {
29
- Huce71: "fz5stix",
30
- B68tc82: "f1p9o1ba",
31
- Bmxbyg5: "f1sil6mw"
32
- },
33
- truncate: {
34
- ygn44y: "f1cmbuwj"
35
- },
36
- block: {
37
- mc9l5x: "ftgm304"
38
- },
39
- italic: {
40
- B80ckks: "f1j4dglz"
41
- },
42
- underline: {
43
- w71qe1: "f13mvf36"
44
- },
45
- strikethrough: {
46
- w71qe1: "fv5q2k7"
47
- },
48
- strikethroughUnderline: {
49
- w71qe1: "f1drk4o6"
50
- },
51
- base100: {
52
- Be2twd7: "f13mqy1h",
53
- Bg96gwp: "fcpl73t"
54
- },
55
- base200: {
56
- Be2twd7: "fy9rknc",
57
- Bg96gwp: "fwrc4pm"
58
- },
59
- base400: {
60
- Be2twd7: "fod5ikn",
61
- Bg96gwp: "faaz57k"
62
- },
63
- base500: {
64
- Be2twd7: "f1pp30po",
65
- Bg96gwp: "f106mvju"
66
- },
67
- base600: {
68
- Be2twd7: "f1x0m3f5",
69
- Bg96gwp: "fb86gi6"
70
- },
71
- hero700: {
72
- Be2twd7: "fojgt09",
73
- Bg96gwp: "fcen8rp"
74
- },
75
- hero800: {
76
- Be2twd7: "fccw675",
77
- Bg96gwp: "f1ebx5kk"
78
- },
79
- hero900: {
80
- Be2twd7: "f15afnhw",
81
- Bg96gwp: "fr3w3wp"
82
- },
83
- hero1000: {
84
- Be2twd7: "fpyltcb",
85
- Bg96gwp: "f1ivgwrt"
86
- },
87
- monospace: {
88
- Bahqtrf: "f1fedwem"
89
- },
90
- numeric: {
91
- Bahqtrf: "f1uq0ln5"
92
- },
93
- weightMedium: {
94
- Bhrd7zp: "fdj6btp"
95
- },
96
- weightSemibold: {
97
- Bhrd7zp: "fl43uef"
98
- },
99
- weightBold: {
100
- Bhrd7zp: "flh3ekv"
101
- },
102
- alignCenter: {
103
- fsow6f: "f17mccla"
104
- },
105
- alignEnd: {
106
- fsow6f: "f12ymhq5"
107
- },
108
- alignJustify: {
109
- fsow6f: "f1j59e10"
110
- }
21
+ */ const useStyles = /*#__PURE__*/ (0, _react["__styles"])({
22
+ root: {
23
+ Bahqtrf: "fk6fouc",
24
+ Be2twd7: "fkhj508",
25
+ Bg96gwp: "f1i3iumi",
26
+ Bhrd7zp: "figsok6",
27
+ fsow6f: "fpgzoln",
28
+ mc9l5x: "f1w7gpdv",
29
+ Huce71: "f6juhto",
30
+ B68tc82: "f1mtd64y",
31
+ Bmxbyg5: "f1y7q3j9",
32
+ ygn44y: "f2jf649"
33
+ },
34
+ nowrap: {
35
+ Huce71: "fz5stix",
36
+ B68tc82: "f1p9o1ba",
37
+ Bmxbyg5: "f1sil6mw"
38
+ },
39
+ truncate: {
40
+ ygn44y: "f1cmbuwj"
41
+ },
42
+ block: {
43
+ mc9l5x: "ftgm304"
44
+ },
45
+ italic: {
46
+ B80ckks: "f1j4dglz"
47
+ },
48
+ underline: {
49
+ w71qe1: "f13mvf36"
50
+ },
51
+ strikethrough: {
52
+ w71qe1: "fv5q2k7"
53
+ },
54
+ strikethroughUnderline: {
55
+ w71qe1: "f1drk4o6"
56
+ },
57
+ base100: {
58
+ Be2twd7: "f13mqy1h",
59
+ Bg96gwp: "fcpl73t"
60
+ },
61
+ base200: {
62
+ Be2twd7: "fy9rknc",
63
+ Bg96gwp: "fwrc4pm"
64
+ },
65
+ base400: {
66
+ Be2twd7: "fod5ikn",
67
+ Bg96gwp: "faaz57k"
68
+ },
69
+ base500: {
70
+ Be2twd7: "f1pp30po",
71
+ Bg96gwp: "f106mvju"
72
+ },
73
+ base600: {
74
+ Be2twd7: "f1x0m3f5",
75
+ Bg96gwp: "fb86gi6"
76
+ },
77
+ hero700: {
78
+ Be2twd7: "fojgt09",
79
+ Bg96gwp: "fcen8rp"
80
+ },
81
+ hero800: {
82
+ Be2twd7: "fccw675",
83
+ Bg96gwp: "f1ebx5kk"
84
+ },
85
+ hero900: {
86
+ Be2twd7: "f15afnhw",
87
+ Bg96gwp: "fr3w3wp"
88
+ },
89
+ hero1000: {
90
+ Be2twd7: "fpyltcb",
91
+ Bg96gwp: "f1ivgwrt"
92
+ },
93
+ monospace: {
94
+ Bahqtrf: "f1fedwem"
95
+ },
96
+ numeric: {
97
+ Bahqtrf: "f1uq0ln5"
98
+ },
99
+ weightMedium: {
100
+ Bhrd7zp: "fdj6btp"
101
+ },
102
+ weightSemibold: {
103
+ Bhrd7zp: "fl43uef"
104
+ },
105
+ weightBold: {
106
+ Bhrd7zp: "flh3ekv"
107
+ },
108
+ alignCenter: {
109
+ fsow6f: "f17mccla"
110
+ },
111
+ alignEnd: {
112
+ fsow6f: "f12ymhq5"
113
+ },
114
+ alignJustify: {
115
+ fsow6f: "f1j59e10"
116
+ }
111
117
  }, {
112
- d: [".fk6fouc{font-family:var(--fontFamilyBase);}", ".fkhj508{font-size:var(--fontSizeBase300);}", ".f1i3iumi{line-height:var(--lineHeightBase300);}", ".figsok6{font-weight:var(--fontWeightRegular);}", ".fpgzoln{text-align:start;}", ".f1w7gpdv{display:inline;}", ".f6juhto{white-space:normal;}", ".f1mtd64y{overflow-x:visible;}", ".f1y7q3j9{overflow-y:visible;}", ".f2jf649{text-overflow:clip;}", ".fz5stix{white-space:nowrap;}", ".f1p9o1ba{overflow-x:hidden;}", ".f1sil6mw{overflow-y:hidden;}", ".f1cmbuwj{text-overflow:ellipsis;}", ".ftgm304{display:block;}", ".f1j4dglz{font-style:italic;}", ".f13mvf36{text-decoration-line:underline;}", ".fv5q2k7{text-decoration-line:line-through;}", ".f1drk4o6{text-decoration-line:line-through underline;}", ".f13mqy1h{font-size:var(--fontSizeBase100);}", ".fcpl73t{line-height:var(--lineHeightBase100);}", ".fy9rknc{font-size:var(--fontSizeBase200);}", ".fwrc4pm{line-height:var(--lineHeightBase200);}", ".fod5ikn{font-size:var(--fontSizeBase400);}", ".faaz57k{line-height:var(--lineHeightBase400);}", ".f1pp30po{font-size:var(--fontSizeBase500);}", ".f106mvju{line-height:var(--lineHeightBase500);}", ".f1x0m3f5{font-size:var(--fontSizeBase600);}", ".fb86gi6{line-height:var(--lineHeightBase600);}", ".fojgt09{font-size:var(--fontSizeHero700);}", ".fcen8rp{line-height:var(--lineHeightHero700);}", ".fccw675{font-size:var(--fontSizeHero800);}", ".f1ebx5kk{line-height:var(--lineHeightHero800);}", ".f15afnhw{font-size:var(--fontSizeHero900);}", ".fr3w3wp{line-height:var(--lineHeightHero900);}", ".fpyltcb{font-size:var(--fontSizeHero1000);}", ".f1ivgwrt{line-height:var(--lineHeightHero1000);}", ".f1fedwem{font-family:var(--fontFamilyMonospace);}", ".f1uq0ln5{font-family:var(--fontFamilyNumeric);}", ".fdj6btp{font-weight:var(--fontWeightMedium);}", ".fl43uef{font-weight:var(--fontWeightSemibold);}", ".flh3ekv{font-weight:var(--fontWeightBold);}", ".f17mccla{text-align:center;}", ".f12ymhq5{text-align:end;}", ".f1j59e10{text-align:justify;}"]
118
+ d: [
119
+ ".fk6fouc{font-family:var(--fontFamilyBase);}",
120
+ ".fkhj508{font-size:var(--fontSizeBase300);}",
121
+ ".f1i3iumi{line-height:var(--lineHeightBase300);}",
122
+ ".figsok6{font-weight:var(--fontWeightRegular);}",
123
+ ".fpgzoln{text-align:start;}",
124
+ ".f1w7gpdv{display:inline;}",
125
+ ".f6juhto{white-space:normal;}",
126
+ ".f1mtd64y{overflow-x:visible;}",
127
+ ".f1y7q3j9{overflow-y:visible;}",
128
+ ".f2jf649{text-overflow:clip;}",
129
+ ".fz5stix{white-space:nowrap;}",
130
+ ".f1p9o1ba{overflow-x:hidden;}",
131
+ ".f1sil6mw{overflow-y:hidden;}",
132
+ ".f1cmbuwj{text-overflow:ellipsis;}",
133
+ ".ftgm304{display:block;}",
134
+ ".f1j4dglz{font-style:italic;}",
135
+ ".f13mvf36{text-decoration-line:underline;}",
136
+ ".fv5q2k7{text-decoration-line:line-through;}",
137
+ ".f1drk4o6{text-decoration-line:line-through underline;}",
138
+ ".f13mqy1h{font-size:var(--fontSizeBase100);}",
139
+ ".fcpl73t{line-height:var(--lineHeightBase100);}",
140
+ ".fy9rknc{font-size:var(--fontSizeBase200);}",
141
+ ".fwrc4pm{line-height:var(--lineHeightBase200);}",
142
+ ".fod5ikn{font-size:var(--fontSizeBase400);}",
143
+ ".faaz57k{line-height:var(--lineHeightBase400);}",
144
+ ".f1pp30po{font-size:var(--fontSizeBase500);}",
145
+ ".f106mvju{line-height:var(--lineHeightBase500);}",
146
+ ".f1x0m3f5{font-size:var(--fontSizeBase600);}",
147
+ ".fb86gi6{line-height:var(--lineHeightBase600);}",
148
+ ".fojgt09{font-size:var(--fontSizeHero700);}",
149
+ ".fcen8rp{line-height:var(--lineHeightHero700);}",
150
+ ".fccw675{font-size:var(--fontSizeHero800);}",
151
+ ".f1ebx5kk{line-height:var(--lineHeightHero800);}",
152
+ ".f15afnhw{font-size:var(--fontSizeHero900);}",
153
+ ".fr3w3wp{line-height:var(--lineHeightHero900);}",
154
+ ".fpyltcb{font-size:var(--fontSizeHero1000);}",
155
+ ".f1ivgwrt{line-height:var(--lineHeightHero1000);}",
156
+ ".f1fedwem{font-family:var(--fontFamilyMonospace);}",
157
+ ".f1uq0ln5{font-family:var(--fontFamilyNumeric);}",
158
+ ".fdj6btp{font-weight:var(--fontWeightMedium);}",
159
+ ".fl43uef{font-weight:var(--fontWeightSemibold);}",
160
+ ".flh3ekv{font-weight:var(--fontWeightBold);}",
161
+ ".f17mccla{text-align:center;}",
162
+ ".f12ymhq5{text-align:end;}",
163
+ ".f1j59e10{text-align:justify;}"
164
+ ]
113
165
  });
114
- /**
115
- * Apply styling to the Text slots based on the state
116
- */
117
- const useTextStyles_unstable = state => {
118
- const styles = useStyles();
119
- state.root.className = react_1.mergeClasses(exports.textClassNames.root, styles.root, state.wrap === false && styles.nowrap, state.truncate && styles.truncate, state.block && styles.block, state.italic && styles.italic, state.underline && styles.underline, state.strikethrough && styles.strikethrough, state.underline && state.strikethrough && styles.strikethroughUnderline, state.size === 100 && styles.base100, state.size === 200 && styles.base200, state.size === 400 && styles.base400, state.size === 500 && styles.base500, state.size === 600 && styles.base600, state.size === 700 && styles.hero700, state.size === 800 && styles.hero800, state.size === 900 && styles.hero900, state.size === 1000 && styles.hero1000, state.font === 'monospace' && styles.monospace, state.font === 'numeric' && styles.numeric, state.weight === 'medium' && styles.weightMedium, state.weight === 'semibold' && styles.weightSemibold, state.weight === 'bold' && styles.weightBold, state.align === 'center' && styles.alignCenter, state.align === 'end' && styles.alignEnd, state.align === 'justify' && styles.alignJustify, state.root.className);
120
- return state;
121
- };
122
- exports.useTextStyles_unstable = useTextStyles_unstable;
166
+ const useTextStyles_unstable = (state)=>{
167
+ const styles = useStyles();
168
+ state.root.className = (0, _react.mergeClasses)(textClassNames.root, styles.root, state.wrap === false && styles.nowrap, state.truncate && styles.truncate, state.block && styles.block, state.italic && styles.italic, state.underline && styles.underline, state.strikethrough && styles.strikethrough, state.underline && state.strikethrough && styles.strikethroughUnderline, state.size === 100 && styles.base100, state.size === 200 && styles.base200, state.size === 400 && styles.base400, state.size === 500 && styles.base500, state.size === 600 && styles.base600, state.size === 700 && styles.hero700, state.size === 800 && styles.hero800, state.size === 900 && styles.hero900, state.size === 1000 && styles.hero1000, state.font === 'monospace' && styles.monospace, state.font === 'numeric' && styles.numeric, state.weight === 'medium' && styles.weightMedium, state.weight === 'semibold' && styles.weightSemibold, state.weight === 'bold' && styles.weightBold, state.align === 'center' && styles.alignCenter, state.align === 'end' && styles.alignEnd, state.align === 'justify' && styles.alignJustify, state.root.className);
169
+ return state;
170
+ }; //# sourceMappingURL=useTextStyles.js.map
171
+
123
172
  //# sourceMappingURL=useTextStyles.js.map
@@ -1 +1 @@
1
- {"version":3,"mappings":";;;;;;AAAA;AACA;AAIaA,sBAAc,GAA8B;EACvDC,IAAI,EAAE;CACP;AAED;;;AAGA,MAAMC,SAAS,gBAAGC,gBAAU;EAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;EAAA;EAAA;IAAA;IAAA;IAAA;EAAA;EAAA;IAAA;EAAA;EAAA;IAAA;EAAA;EAAA;IAAA;EAAA;EAAA;IAAA;EAAA;EAAA;IAAA;EAAA;EAAA;IAAA;EAAA;EAAA;IAAA;IAAA;EAAA;EAAA;IAAA;IAAA;EAAA;EAAA;IAAA;IAAA;EAAA;EAAA;IAAA;IAAA;EAAA;EAAA;IAAA;IAAA;EAAA;EAAA;IAAA;IAAA;EAAA;EAAA;IAAA;IAAA;EAAA;EAAA;IAAA;IAAA;EAAA;EAAA;IAAA;IAAA;EAAA;EAAA;IAAA;EAAA;EAAA;IAAA;EAAA;EAAA;IAAA;EAAA;EAAA;IAAA;EAAA;EAAA;IAAA;EAAA;EAAA;IAAA;EAAA;EAAA;IAAA;EAAA;EAAA;IAAA;EAAA;AAAA;EAAA;AAAA,EA8F1B;AAEF;;;AAGO,MAAMC,sBAAsB,GAAIC,KAAgB,IAAe;EACpE,MAAMC,MAAM,GAAGJ,SAAS,EAAE;EAE1BG,KAAK,CAACJ,IAAI,CAACM,SAAS,GAAGJ,oBAAY,CACjCH,sBAAc,CAACC,IAAI,EACnBK,MAAM,CAACL,IAAI,EACXI,KAAK,CAACG,IAAI,KAAK,KAAK,IAAIF,MAAM,CAACG,MAAM,EACrCJ,KAAK,CAACK,QAAQ,IAAIJ,MAAM,CAACI,QAAQ,EACjCL,KAAK,CAACM,KAAK,IAAIL,MAAM,CAACK,KAAK,EAC3BN,KAAK,CAACO,MAAM,IAAIN,MAAM,CAACM,MAAM,EAC7BP,KAAK,CAACQ,SAAS,IAAIP,MAAM,CAACO,SAAS,EACnCR,KAAK,CAACS,aAAa,IAAIR,MAAM,CAACQ,aAAa,EAC3CT,KAAK,CAACQ,SAAS,IAAIR,KAAK,CAACS,aAAa,IAAIR,MAAM,CAACS,sBAAsB,EACvEV,KAAK,CAACW,IAAI,KAAK,GAAG,IAAIV,MAAM,CAACW,OAAO,EACpCZ,KAAK,CAACW,IAAI,KAAK,GAAG,IAAIV,MAAM,CAACY,OAAO,EACpCb,KAAK,CAACW,IAAI,KAAK,GAAG,IAAIV,MAAM,CAACa,OAAO,EACpCd,KAAK,CAACW,IAAI,KAAK,GAAG,IAAIV,MAAM,CAACc,OAAO,EACpCf,KAAK,CAACW,IAAI,KAAK,GAAG,IAAIV,MAAM,CAACe,OAAO,EACpChB,KAAK,CAACW,IAAI,KAAK,GAAG,IAAIV,MAAM,CAACgB,OAAO,EACpCjB,KAAK,CAACW,IAAI,KAAK,GAAG,IAAIV,MAAM,CAACiB,OAAO,EACpClB,KAAK,CAACW,IAAI,KAAK,GAAG,IAAIV,MAAM,CAACkB,OAAO,EACpCnB,KAAK,CAACW,IAAI,KAAK,IAAI,IAAIV,MAAM,CAACmB,QAAQ,EACtCpB,KAAK,CAACqB,IAAI,KAAK,WAAW,IAAIpB,MAAM,CAACqB,SAAS,EAC9CtB,KAAK,CAACqB,IAAI,KAAK,SAAS,IAAIpB,MAAM,CAACsB,OAAO,EAC1CvB,KAAK,CAACwB,MAAM,KAAK,QAAQ,IAAIvB,MAAM,CAACwB,YAAY,EAChDzB,KAAK,CAACwB,MAAM,KAAK,UAAU,IAAIvB,MAAM,CAACyB,cAAc,EACpD1B,KAAK,CAACwB,MAAM,KAAK,MAAM,IAAIvB,MAAM,CAAC0B,UAAU,EAC5C3B,KAAK,CAAC4B,KAAK,KAAK,QAAQ,IAAI3B,MAAM,CAAC4B,WAAW,EAC9C7B,KAAK,CAAC4B,KAAK,KAAK,KAAK,IAAI3B,MAAM,CAAC6B,QAAQ,EACxC9B,KAAK,CAAC4B,KAAK,KAAK,SAAS,IAAI3B,MAAM,CAAC8B,YAAY,EAChD/B,KAAK,CAACJ,IAAI,CAACM,SAAS,CACrB;EAED,OAAOF,KAAK;AACd,CAAC;AAlCYL,8BAAsB","names":["exports","root","useStyles","react_1","useTextStyles_unstable","state","styles","className","wrap","nowrap","truncate","block","italic","underline","strikethrough","strikethroughUnderline","size","base100","base200","base400","base500","base600","hero700","hero800","hero900","hero1000","font","monospace","numeric","weight","weightMedium","weightSemibold","weightBold","align","alignCenter","alignEnd","alignJustify"],"sourceRoot":"","sources":["../../../../../../../../../packages/react-components/react-text/src/components/Text/useTextStyles.ts"],"sourcesContent":["import { makeStyles, mergeClasses, shorthands } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nimport type { TextSlots, TextState } from './Text.types';\nimport { SlotClassNames } from '@fluentui/react-utilities';\n\nexport const textClassNames: SlotClassNames<TextSlots> = {\n root: 'fui-Text',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: {\n fontFamily: tokens.fontFamilyBase,\n fontSize: tokens.fontSizeBase300,\n lineHeight: tokens.lineHeightBase300,\n fontWeight: tokens.fontWeightRegular,\n textAlign: 'start',\n display: 'inline',\n whiteSpace: 'normal',\n ...shorthands.overflow('visible'),\n textOverflow: 'clip',\n },\n nowrap: {\n whiteSpace: 'nowrap',\n ...shorthands.overflow('hidden'),\n },\n truncate: {\n textOverflow: 'ellipsis',\n },\n block: {\n display: 'block',\n },\n italic: {\n fontStyle: 'italic',\n },\n underline: {\n textDecorationLine: 'underline',\n },\n strikethrough: {\n textDecorationLine: 'line-through',\n },\n strikethroughUnderline: {\n textDecorationLine: 'line-through underline',\n },\n base100: {\n fontSize: tokens.fontSizeBase100,\n lineHeight: tokens.lineHeightBase100,\n },\n base200: {\n fontSize: tokens.fontSizeBase200,\n lineHeight: tokens.lineHeightBase200,\n },\n base400: {\n fontSize: tokens.fontSizeBase400,\n lineHeight: tokens.lineHeightBase400,\n },\n base500: {\n fontSize: tokens.fontSizeBase500,\n lineHeight: tokens.lineHeightBase500,\n },\n base600: {\n fontSize: tokens.fontSizeBase600,\n lineHeight: tokens.lineHeightBase600,\n },\n hero700: {\n fontSize: tokens.fontSizeHero700,\n lineHeight: tokens.lineHeightHero700,\n },\n hero800: {\n fontSize: tokens.fontSizeHero800,\n lineHeight: tokens.lineHeightHero800,\n },\n hero900: {\n fontSize: tokens.fontSizeHero900,\n lineHeight: tokens.lineHeightHero900,\n },\n hero1000: {\n fontSize: tokens.fontSizeHero1000,\n lineHeight: tokens.lineHeightHero1000,\n },\n monospace: {\n fontFamily: tokens.fontFamilyMonospace,\n },\n numeric: {\n fontFamily: tokens.fontFamilyNumeric,\n },\n weightMedium: {\n fontWeight: tokens.fontWeightMedium,\n },\n weightSemibold: {\n fontWeight: tokens.fontWeightSemibold,\n },\n weightBold: {\n fontWeight: tokens.fontWeightBold,\n },\n alignCenter: {\n textAlign: 'center',\n },\n alignEnd: {\n textAlign: 'end',\n },\n alignJustify: {\n textAlign: 'justify',\n },\n});\n\n/**\n * Apply styling to the Text slots based on the state\n */\nexport const useTextStyles_unstable = (state: TextState): TextState => {\n const styles = useStyles();\n\n state.root.className = mergeClasses(\n textClassNames.root,\n styles.root,\n state.wrap === false && styles.nowrap,\n state.truncate && styles.truncate,\n state.block && styles.block,\n state.italic && styles.italic,\n state.underline && styles.underline,\n state.strikethrough && styles.strikethrough,\n state.underline && state.strikethrough && styles.strikethroughUnderline,\n state.size === 100 && styles.base100,\n state.size === 200 && styles.base200,\n state.size === 400 && styles.base400,\n state.size === 500 && styles.base500,\n state.size === 600 && styles.base600,\n state.size === 700 && styles.hero700,\n state.size === 800 && styles.hero800,\n state.size === 900 && styles.hero900,\n state.size === 1000 && styles.hero1000,\n state.font === 'monospace' && styles.monospace,\n state.font === 'numeric' && styles.numeric,\n state.weight === 'medium' && styles.weightMedium,\n state.weight === 'semibold' && styles.weightSemibold,\n state.weight === 'bold' && styles.weightBold,\n state.align === 'center' && styles.alignCenter,\n state.align === 'end' && styles.alignEnd,\n state.align === 'justify' && styles.alignJustify,\n state.root.className,\n );\n\n return state;\n};\n"]}
1
+ {"version":3,"sources":["../../../lib/components/Text/useTextStyles.js"],"sourcesContent":["import { __styles, mergeClasses, shorthands } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nexport const textClassNames = {\n root: 'fui-Text'\n};\n/**\n * Styles for the root slot\n */\nconst useStyles = /*#__PURE__*/__styles({\n root: {\n Bahqtrf: \"fk6fouc\",\n Be2twd7: \"fkhj508\",\n Bg96gwp: \"f1i3iumi\",\n Bhrd7zp: \"figsok6\",\n fsow6f: \"fpgzoln\",\n mc9l5x: \"f1w7gpdv\",\n Huce71: \"f6juhto\",\n B68tc82: \"f1mtd64y\",\n Bmxbyg5: \"f1y7q3j9\",\n ygn44y: \"f2jf649\"\n },\n nowrap: {\n Huce71: \"fz5stix\",\n B68tc82: \"f1p9o1ba\",\n Bmxbyg5: \"f1sil6mw\"\n },\n truncate: {\n ygn44y: \"f1cmbuwj\"\n },\n block: {\n mc9l5x: \"ftgm304\"\n },\n italic: {\n B80ckks: \"f1j4dglz\"\n },\n underline: {\n w71qe1: \"f13mvf36\"\n },\n strikethrough: {\n w71qe1: \"fv5q2k7\"\n },\n strikethroughUnderline: {\n w71qe1: \"f1drk4o6\"\n },\n base100: {\n Be2twd7: \"f13mqy1h\",\n Bg96gwp: \"fcpl73t\"\n },\n base200: {\n Be2twd7: \"fy9rknc\",\n Bg96gwp: \"fwrc4pm\"\n },\n base400: {\n Be2twd7: \"fod5ikn\",\n Bg96gwp: \"faaz57k\"\n },\n base500: {\n Be2twd7: \"f1pp30po\",\n Bg96gwp: \"f106mvju\"\n },\n base600: {\n Be2twd7: \"f1x0m3f5\",\n Bg96gwp: \"fb86gi6\"\n },\n hero700: {\n Be2twd7: \"fojgt09\",\n Bg96gwp: \"fcen8rp\"\n },\n hero800: {\n Be2twd7: \"fccw675\",\n Bg96gwp: \"f1ebx5kk\"\n },\n hero900: {\n Be2twd7: \"f15afnhw\",\n Bg96gwp: \"fr3w3wp\"\n },\n hero1000: {\n Be2twd7: \"fpyltcb\",\n Bg96gwp: \"f1ivgwrt\"\n },\n monospace: {\n Bahqtrf: \"f1fedwem\"\n },\n numeric: {\n Bahqtrf: \"f1uq0ln5\"\n },\n weightMedium: {\n Bhrd7zp: \"fdj6btp\"\n },\n weightSemibold: {\n Bhrd7zp: \"fl43uef\"\n },\n weightBold: {\n Bhrd7zp: \"flh3ekv\"\n },\n alignCenter: {\n fsow6f: \"f17mccla\"\n },\n alignEnd: {\n fsow6f: \"f12ymhq5\"\n },\n alignJustify: {\n fsow6f: \"f1j59e10\"\n }\n}, {\n d: [\".fk6fouc{font-family:var(--fontFamilyBase);}\", \".fkhj508{font-size:var(--fontSizeBase300);}\", \".f1i3iumi{line-height:var(--lineHeightBase300);}\", \".figsok6{font-weight:var(--fontWeightRegular);}\", \".fpgzoln{text-align:start;}\", \".f1w7gpdv{display:inline;}\", \".f6juhto{white-space:normal;}\", \".f1mtd64y{overflow-x:visible;}\", \".f1y7q3j9{overflow-y:visible;}\", \".f2jf649{text-overflow:clip;}\", \".fz5stix{white-space:nowrap;}\", \".f1p9o1ba{overflow-x:hidden;}\", \".f1sil6mw{overflow-y:hidden;}\", \".f1cmbuwj{text-overflow:ellipsis;}\", \".ftgm304{display:block;}\", \".f1j4dglz{font-style:italic;}\", \".f13mvf36{text-decoration-line:underline;}\", \".fv5q2k7{text-decoration-line:line-through;}\", \".f1drk4o6{text-decoration-line:line-through underline;}\", \".f13mqy1h{font-size:var(--fontSizeBase100);}\", \".fcpl73t{line-height:var(--lineHeightBase100);}\", \".fy9rknc{font-size:var(--fontSizeBase200);}\", \".fwrc4pm{line-height:var(--lineHeightBase200);}\", \".fod5ikn{font-size:var(--fontSizeBase400);}\", \".faaz57k{line-height:var(--lineHeightBase400);}\", \".f1pp30po{font-size:var(--fontSizeBase500);}\", \".f106mvju{line-height:var(--lineHeightBase500);}\", \".f1x0m3f5{font-size:var(--fontSizeBase600);}\", \".fb86gi6{line-height:var(--lineHeightBase600);}\", \".fojgt09{font-size:var(--fontSizeHero700);}\", \".fcen8rp{line-height:var(--lineHeightHero700);}\", \".fccw675{font-size:var(--fontSizeHero800);}\", \".f1ebx5kk{line-height:var(--lineHeightHero800);}\", \".f15afnhw{font-size:var(--fontSizeHero900);}\", \".fr3w3wp{line-height:var(--lineHeightHero900);}\", \".fpyltcb{font-size:var(--fontSizeHero1000);}\", \".f1ivgwrt{line-height:var(--lineHeightHero1000);}\", \".f1fedwem{font-family:var(--fontFamilyMonospace);}\", \".f1uq0ln5{font-family:var(--fontFamilyNumeric);}\", \".fdj6btp{font-weight:var(--fontWeightMedium);}\", \".fl43uef{font-weight:var(--fontWeightSemibold);}\", \".flh3ekv{font-weight:var(--fontWeightBold);}\", \".f17mccla{text-align:center;}\", \".f12ymhq5{text-align:end;}\", \".f1j59e10{text-align:justify;}\"]\n});\n/**\n * Apply styling to the Text slots based on the state\n */\nexport const useTextStyles_unstable = state => {\n const styles = useStyles();\n state.root.className = mergeClasses(textClassNames.root, styles.root, state.wrap === false && styles.nowrap, state.truncate && styles.truncate, state.block && styles.block, state.italic && styles.italic, state.underline && styles.underline, state.strikethrough && styles.strikethrough, state.underline && state.strikethrough && styles.strikethroughUnderline, state.size === 100 && styles.base100, state.size === 200 && styles.base200, state.size === 400 && styles.base400, state.size === 500 && styles.base500, state.size === 600 && styles.base600, state.size === 700 && styles.hero700, state.size === 800 && styles.hero800, state.size === 900 && styles.hero900, state.size === 1000 && styles.hero1000, state.font === 'monospace' && styles.monospace, state.font === 'numeric' && styles.numeric, state.weight === 'medium' && styles.weightMedium, state.weight === 'semibold' && styles.weightSemibold, state.weight === 'bold' && styles.weightBold, state.align === 'center' && styles.alignCenter, state.align === 'end' && styles.alignEnd, state.align === 'justify' && styles.alignJustify, state.root.className);\n return state;\n};\n//# sourceMappingURL=useTextStyles.js.map"],"names":["textClassNames","useTextStyles_unstable","root","useStyles","__styles","Bahqtrf","Be2twd7","Bg96gwp","Bhrd7zp","fsow6f","mc9l5x","Huce71","B68tc82","Bmxbyg5","ygn44y","nowrap","truncate","block","italic","B80ckks","underline","w71qe1","strikethrough","strikethroughUnderline","base100","base200","base400","base500","base600","hero700","hero800","hero900","hero1000","monospace","numeric","weightMedium","weightSemibold","weightBold","alignCenter","alignEnd","alignJustify","d","state","styles","className","mergeClasses","wrap","size","font","weight","align"],"mappings":"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"}
@@ -1,34 +1,43 @@
1
1
  "use strict";
2
-
3
2
  Object.defineProperty(exports, "__esModule", {
4
- value: true
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
+ body1ClassNames: ()=>body1ClassNames,
13
+ Body1: ()=>Body1
5
14
  });
6
- exports.Body1 = exports.body1ClassNames = void 0;
7
- const react_1 = /*#__PURE__*/require("@griffel/react");
8
- const createPreset_1 = /*#__PURE__*/require("../createPreset");
9
- const react_theme_1 = /*#__PURE__*/require("@fluentui/react-theme");
10
- exports.body1ClassNames = {
11
- root: 'fui-Body1'
15
+ const _react = require("@griffel/react");
16
+ const _createPreset = require("../createPreset");
17
+ const body1ClassNames = {
18
+ root: 'fui-Body1'
12
19
  };
13
20
  /**
14
21
  * Styles for the root slot
15
- */
16
- const useStyles = /*#__PURE__*/react_1.__styles({
17
- root: {
18
- Bahqtrf: "fk6fouc",
19
- Be2twd7: "fkhj508",
20
- Bhrd7zp: "figsok6",
21
- Bg96gwp: "f1i3iumi"
22
- }
22
+ */ const useStyles = /*#__PURE__*/ (0, _react["__styles"])({
23
+ root: {
24
+ Bahqtrf: "fk6fouc",
25
+ Be2twd7: "fkhj508",
26
+ Bhrd7zp: "figsok6",
27
+ Bg96gwp: "f1i3iumi"
28
+ }
23
29
  }, {
24
- d: [".fk6fouc{font-family:var(--fontFamilyBase);}", ".fkhj508{font-size:var(--fontSizeBase300);}", ".figsok6{font-weight:var(--fontWeightRegular);}", ".f1i3iumi{line-height:var(--lineHeightBase300);}"]
25
- });
26
- /**
27
- * Text preset component for the Body1 typography variant
28
- */
29
- exports.Body1 = /*#__PURE__*/createPreset_1.createPreset({
30
- useStyles,
31
- className: exports.body1ClassNames.root,
32
- displayName: 'Body1'
30
+ d: [
31
+ ".fk6fouc{font-family:var(--fontFamilyBase);}",
32
+ ".fkhj508{font-size:var(--fontSizeBase300);}",
33
+ ".figsok6{font-weight:var(--fontWeightRegular);}",
34
+ ".f1i3iumi{line-height:var(--lineHeightBase300);}"
35
+ ]
33
36
  });
37
+ const Body1 = /*#__PURE__*/ (0, _createPreset.createPreset)({
38
+ useStyles,
39
+ className: body1ClassNames.root,
40
+ displayName: 'Body1'
41
+ }); //# sourceMappingURL=Body1.js.map
42
+
34
43
  //# sourceMappingURL=Body1.js.map