@fluentui/react-migration-v0-v9 9.6.38 → 9.6.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 (175) hide show
  1. package/CHANGELOG.md +25 -2
  2. package/dist/index.d.cts +1 -1
  3. package/dist/index.d.ts +1 -1
  4. package/lib/components/Attachment/Attachment.js.map +1 -1
  5. package/lib/components/Attachment/Attachment.styles.raw.js.map +1 -1
  6. package/lib/components/Attachment/AttachmentAction.js.map +1 -1
  7. package/lib/components/Attachment/AttachmentAction.styles.raw.js.map +1 -1
  8. package/lib/components/Attachment/AttachmentBody.js.map +1 -1
  9. package/lib/components/Attachment/AttachmentBody.styles.raw.js.map +1 -1
  10. package/lib/components/Attachment/AttachmentDescription.js.map +1 -1
  11. package/lib/components/Attachment/AttachmentDescription.styles.raw.js.map +1 -1
  12. package/lib/components/Attachment/AttachmentHeader.js.map +1 -1
  13. package/lib/components/Attachment/AttachmentHeader.styles.raw.js.map +1 -1
  14. package/lib/components/Attachment/AttachmentIcon.js.map +1 -1
  15. package/lib/components/Attachment/AttachmentIcon.styles.raw.js.map +1 -1
  16. package/lib/components/Attachment/index.js.map +1 -1
  17. package/lib/components/Button/ButtonMigration.mixins.js.map +1 -1
  18. package/lib/components/Button/index.js.map +1 -1
  19. package/lib/components/Flex/Flex.js.map +1 -1
  20. package/lib/components/Flex/Flex.styles.raw.js.map +1 -1
  21. package/lib/components/Flex/FlexItem.mixins.js.map +1 -1
  22. package/lib/components/Flex/index.js.map +1 -1
  23. package/lib/components/FormField/FormFieldShim.js.map +1 -1
  24. package/lib/components/FormField/index.js.map +1 -1
  25. package/lib/components/Grid/Grid.mixins.js.map +1 -1
  26. package/lib/components/Grid/Grid.styles.raw.js.map +1 -1
  27. package/lib/components/Grid/GridShim.js.map +1 -1
  28. package/lib/components/Grid/index.js.map +1 -1
  29. package/lib/components/Input/Input.mixins.js.map +1 -1
  30. package/lib/components/Input/index.js.map +1 -1
  31. package/lib/components/ItemLayout/ItemLayout.js.map +1 -1
  32. package/lib/components/ItemLayout/ItemLayout.styles.raw.js.map +1 -1
  33. package/lib/components/ItemLayout/index.js.map +1 -1
  34. package/lib/components/List/List/List.js.map +1 -1
  35. package/lib/components/List/List/List.types.js.map +1 -1
  36. package/lib/components/List/List/index.js.map +1 -1
  37. package/lib/components/List/List/listContext.js.map +1 -1
  38. package/lib/components/List/List/renderList.js +2 -2
  39. package/lib/components/List/List/renderList.js.map +1 -1
  40. package/lib/components/List/List/useList.js.map +1 -1
  41. package/lib/components/List/List/useListContextValues.js.map +1 -1
  42. package/lib/components/List/List/useListStyles.styles.raw.js.map +1 -1
  43. package/lib/components/List/ListItem/ListItem.js.map +1 -1
  44. package/lib/components/List/ListItem/ListItem.types.js.map +1 -1
  45. package/lib/components/List/ListItem/index.js.map +1 -1
  46. package/lib/components/List/ListItem/renderListItem.js +2 -2
  47. package/lib/components/List/ListItem/renderListItem.js.map +1 -1
  48. package/lib/components/List/ListItem/useListItem.js.map +1 -1
  49. package/lib/components/List/ListItem/useListItemStyles.styles.js +5 -1
  50. package/lib/components/List/ListItem/useListItemStyles.styles.js.map +1 -1
  51. package/lib/components/List/ListItem/useListItemStyles.styles.raw.js.map +1 -1
  52. package/lib/components/List/hooks/index.js.map +1 -1
  53. package/lib/components/List/hooks/types.js.map +1 -1
  54. package/lib/components/List/hooks/useListSelection.js.map +1 -1
  55. package/lib/components/List/index.js.map +1 -1
  56. package/lib/components/Primitive/Primitive.js.map +1 -1
  57. package/lib/components/Primitive/index.js.map +1 -1
  58. package/lib/components/Segment/Segment.js.map +1 -1
  59. package/lib/components/Segment/Segment.styles.raw.js.map +1 -1
  60. package/lib/components/Segment/index.js.map +1 -1
  61. package/lib/components/Slider/Slider.mixins.js.map +1 -1
  62. package/lib/components/Slider/index.js.map +1 -1
  63. package/lib/components/Spinner/SpinnerMigration.mixins.js.map +1 -1
  64. package/lib/components/Spinner/index.js.map +1 -1
  65. package/lib/components/StyledText/StyledText.js.map +1 -1
  66. package/lib/components/StyledText/StyledText.styles.raw.js.map +1 -1
  67. package/lib/components/StyledText/index.js.map +1 -1
  68. package/lib/components/Video/Video.js.map +1 -1
  69. package/lib/components/Video/Video.styles.raw.js.map +1 -1
  70. package/lib/components/Video/index.js.map +1 -1
  71. package/lib-commonjs/components/Attachment/Attachment.cjs +5 -5
  72. package/lib-commonjs/components/Attachment/Attachment.cjs.map +1 -1
  73. package/lib-commonjs/components/Attachment/Attachment.styles.cjs +3 -3
  74. package/lib-commonjs/components/Attachment/Attachment.styles.cjs.map +1 -1
  75. package/lib-commonjs/components/Attachment/Attachment.styles.raw.cjs +3 -3
  76. package/lib-commonjs/components/Attachment/Attachment.styles.raw.cjs.map +1 -1
  77. package/lib-commonjs/components/Attachment/AttachmentAction.cjs +3 -3
  78. package/lib-commonjs/components/Attachment/AttachmentAction.cjs.map +1 -1
  79. package/lib-commonjs/components/Attachment/AttachmentAction.styles.raw.cjs.map +1 -1
  80. package/lib-commonjs/components/Attachment/AttachmentBody.cjs +3 -3
  81. package/lib-commonjs/components/Attachment/AttachmentBody.cjs.map +1 -1
  82. package/lib-commonjs/components/Attachment/AttachmentBody.styles.raw.cjs.map +1 -1
  83. package/lib-commonjs/components/Attachment/AttachmentDescription.cjs +3 -3
  84. package/lib-commonjs/components/Attachment/AttachmentDescription.cjs.map +1 -1
  85. package/lib-commonjs/components/Attachment/AttachmentDescription.styles.raw.cjs.map +1 -1
  86. package/lib-commonjs/components/Attachment/AttachmentHeader.cjs +3 -3
  87. package/lib-commonjs/components/Attachment/AttachmentHeader.cjs.map +1 -1
  88. package/lib-commonjs/components/Attachment/AttachmentHeader.styles.raw.cjs.map +1 -1
  89. package/lib-commonjs/components/Attachment/AttachmentIcon.cjs +3 -3
  90. package/lib-commonjs/components/Attachment/AttachmentIcon.cjs.map +1 -1
  91. package/lib-commonjs/components/Attachment/AttachmentIcon.styles.raw.cjs.map +1 -1
  92. package/lib-commonjs/components/Attachment/index.cjs +15 -15
  93. package/lib-commonjs/components/Attachment/index.cjs.map +1 -1
  94. package/lib-commonjs/components/Button/ButtonMigration.mixins.cjs +6 -6
  95. package/lib-commonjs/components/Button/ButtonMigration.mixins.cjs.map +1 -1
  96. package/lib-commonjs/components/Button/index.cjs +6 -6
  97. package/lib-commonjs/components/Button/index.cjs.map +1 -1
  98. package/lib-commonjs/components/Flex/Flex.cjs +3 -3
  99. package/lib-commonjs/components/Flex/Flex.cjs.map +1 -1
  100. package/lib-commonjs/components/Flex/Flex.styles.raw.cjs.map +1 -1
  101. package/lib-commonjs/components/Flex/FlexItem.mixins.cjs.map +1 -1
  102. package/lib-commonjs/components/Flex/index.cjs +5 -5
  103. package/lib-commonjs/components/Flex/index.cjs.map +1 -1
  104. package/lib-commonjs/components/FormField/FormFieldShim.cjs.map +1 -1
  105. package/lib-commonjs/components/FormField/index.cjs.map +1 -1
  106. package/lib-commonjs/components/Grid/Grid.mixins.cjs.map +1 -1
  107. package/lib-commonjs/components/Grid/Grid.styles.raw.cjs.map +1 -1
  108. package/lib-commonjs/components/Grid/GridShim.cjs +3 -3
  109. package/lib-commonjs/components/Grid/GridShim.cjs.map +1 -1
  110. package/lib-commonjs/components/Grid/index.cjs +5 -5
  111. package/lib-commonjs/components/Grid/index.cjs.map +1 -1
  112. package/lib-commonjs/components/Input/Input.mixins.cjs.map +1 -1
  113. package/lib-commonjs/components/Input/index.cjs.map +1 -1
  114. package/lib-commonjs/components/ItemLayout/ItemLayout.cjs +3 -3
  115. package/lib-commonjs/components/ItemLayout/ItemLayout.cjs.map +1 -1
  116. package/lib-commonjs/components/ItemLayout/ItemLayout.styles.raw.cjs.map +1 -1
  117. package/lib-commonjs/components/ItemLayout/index.cjs +4 -4
  118. package/lib-commonjs/components/ItemLayout/index.cjs.map +1 -1
  119. package/lib-commonjs/components/List/List/List.cjs.map +1 -1
  120. package/lib-commonjs/components/List/List/List.types.cjs.map +1 -1
  121. package/lib-commonjs/components/List/List/index.cjs +6 -6
  122. package/lib-commonjs/components/List/List/index.cjs.map +1 -1
  123. package/lib-commonjs/components/List/List/listContext.cjs +4 -4
  124. package/lib-commonjs/components/List/List/listContext.cjs.map +1 -1
  125. package/lib-commonjs/components/List/List/renderList.cjs.map +1 -1
  126. package/lib-commonjs/components/List/List/useList.cjs.map +1 -1
  127. package/lib-commonjs/components/List/List/useListContextValues.cjs.map +1 -1
  128. package/lib-commonjs/components/List/List/useListStyles.styles.cjs +3 -3
  129. package/lib-commonjs/components/List/List/useListStyles.styles.cjs.map +1 -1
  130. package/lib-commonjs/components/List/List/useListStyles.styles.raw.cjs +3 -3
  131. package/lib-commonjs/components/List/List/useListStyles.styles.raw.cjs.map +1 -1
  132. package/lib-commonjs/components/List/ListItem/ListItem.cjs.map +1 -1
  133. package/lib-commonjs/components/List/ListItem/ListItem.types.cjs.map +1 -1
  134. package/lib-commonjs/components/List/ListItem/index.cjs +6 -6
  135. package/lib-commonjs/components/List/ListItem/index.cjs.map +1 -1
  136. package/lib-commonjs/components/List/ListItem/renderListItem.cjs.map +1 -1
  137. package/lib-commonjs/components/List/ListItem/useListItem.cjs.map +1 -1
  138. package/lib-commonjs/components/List/ListItem/useListItemStyles.styles.cjs +11 -4
  139. package/lib-commonjs/components/List/ListItem/useListItemStyles.styles.cjs.map +1 -1
  140. package/lib-commonjs/components/List/ListItem/useListItemStyles.styles.raw.cjs +3 -3
  141. package/lib-commonjs/components/List/ListItem/useListItemStyles.styles.raw.cjs.map +1 -1
  142. package/lib-commonjs/components/List/hooks/index.cjs.map +1 -1
  143. package/lib-commonjs/components/List/hooks/types.cjs.map +1 -1
  144. package/lib-commonjs/components/List/hooks/useListSelection.cjs.map +1 -1
  145. package/lib-commonjs/components/List/index.cjs +12 -12
  146. package/lib-commonjs/components/List/index.cjs.map +1 -1
  147. package/lib-commonjs/components/Primitive/Primitive.cjs +3 -3
  148. package/lib-commonjs/components/Primitive/Primitive.cjs.map +1 -1
  149. package/lib-commonjs/components/Primitive/index.cjs +3 -3
  150. package/lib-commonjs/components/Primitive/index.cjs.map +1 -1
  151. package/lib-commonjs/components/Segment/Segment.cjs +3 -3
  152. package/lib-commonjs/components/Segment/Segment.cjs.map +1 -1
  153. package/lib-commonjs/components/Segment/Segment.styles.raw.cjs.map +1 -1
  154. package/lib-commonjs/components/Segment/index.cjs +3 -3
  155. package/lib-commonjs/components/Segment/index.cjs.map +1 -1
  156. package/lib-commonjs/components/Slider/Slider.mixins.cjs.map +1 -1
  157. package/lib-commonjs/components/Slider/index.cjs.map +1 -1
  158. package/lib-commonjs/components/Spinner/SpinnerMigration.mixins.cjs.map +1 -1
  159. package/lib-commonjs/components/Spinner/index.cjs.map +1 -1
  160. package/lib-commonjs/components/StyledText/StyledText.cjs +3 -3
  161. package/lib-commonjs/components/StyledText/StyledText.cjs.map +1 -1
  162. package/lib-commonjs/components/StyledText/StyledText.styles.cjs +4 -4
  163. package/lib-commonjs/components/StyledText/StyledText.styles.cjs.map +1 -1
  164. package/lib-commonjs/components/StyledText/StyledText.styles.raw.cjs +4 -4
  165. package/lib-commonjs/components/StyledText/StyledText.styles.raw.cjs.map +1 -1
  166. package/lib-commonjs/components/StyledText/index.cjs +6 -6
  167. package/lib-commonjs/components/StyledText/index.cjs.map +1 -1
  168. package/lib-commonjs/components/Video/Video.cjs +3 -3
  169. package/lib-commonjs/components/Video/Video.cjs.map +1 -1
  170. package/lib-commonjs/components/Video/Video.styles.raw.cjs.map +1 -1
  171. package/lib-commonjs/components/Video/index.cjs +3 -3
  172. package/lib-commonjs/components/Video/index.cjs.map +1 -1
  173. package/lib-commonjs/index.cjs +53 -53
  174. package/lib-commonjs/index.cjs.map +1 -1
  175. package/package.json +7 -7
@@ -6,14 +6,14 @@ Object.defineProperty(exports, "__esModule", {
6
6
  function _export(target, all) {
7
7
  for(var name in all)Object.defineProperty(target, name, {
8
8
  enumerable: true,
9
- get: all[name]
9
+ get: Object.getOwnPropertyDescriptor(all, name).get
10
10
  });
11
11
  }
12
12
  _export(exports, {
13
- listItemClassNames: function() {
13
+ get listItemClassNames () {
14
14
  return listItemClassNames;
15
15
  },
16
- useListItemStyles_unstable: function() {
16
+ get useListItemStyles_unstable () {
17
17
  return useListItemStyles_unstable;
18
18
  }
19
19
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/List/ListItem/useListItemStyles.styles.ts"],"sourcesContent":["'use client';\n\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport { makeStyles, makeResetStyles, mergeClasses } from '@griffel/react';\nimport { createCustomFocusIndicatorStyle } from '@fluentui/react-tabster';\nimport type { ListItemSlots, ListItemState } from './ListItem.types';\nimport { tokens } from '@fluentui/react-theme';\n\nexport const listItemClassNames: SlotClassNames<ListItemSlots> = {\n root: 'fui-ListItem',\n media: 'fui-ListItem__media',\n header: 'fui-ListItem__header',\n contentWrapper: 'fui-ListItem__contentWrapper',\n headerMedia: 'fui-ListItem__headerMedia',\n contentMedia: 'fui-ListItem__contentMedia',\n endMedia: 'fui-ListItem__endMedia',\n};\n\nconst useRootBaseStyles = makeResetStyles({\n padding: '0 10px',\n margin: 0,\n textIndent: 0,\n listStyleType: 'none',\n ...createCustomFocusIndicatorStyle(\n {\n outline: `${tokens.strokeWidthThick} solid ${tokens.colorStrokeFocus2}`,\n borderRadius: tokens.borderRadiusMedium,\n },\n { selector: 'focus' },\n ),\n});\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n contentWrapper: {\n fontSize: tokens.fontSizeBase200,\n },\n\n // The content should go all the way to the end if the content media is not present\n contentWrapperWithoutMedia: {\n gridColumnEnd: 4,\n },\n truncate: {\n overflow: 'hidden',\n textWrap: 'nowrap',\n textOverflow: 'ellipsis',\n },\n rootSelected: {\n backgroundColor: tokens.colorNeutralBackground1Selected,\n },\n rootClickable: {\n cursor: 'pointer',\n\n '&:hover': {\n backgroundColor: tokens.colorNeutralBackground1Hover,\n },\n },\n});\n\n/**\n * Apply styling to the ListItem slots based on the state\n */\nexport const useListItemStyles_unstable = (state: ListItemState): ListItemState => {\n const rootBaseStyles = useRootBaseStyles();\n const styles = useStyles();\n\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = mergeClasses(\n listItemClassNames.root,\n rootBaseStyles,\n (state.selectable || state.navigable) && styles.rootClickable,\n state.selected && styles.rootSelected,\n state.root.className,\n );\n\n if (state.header) {\n // eslint-disable-next-line react-hooks/immutability\n state.header.className = mergeClasses(state.truncateHeader && styles.truncate, state.header?.className);\n }\n\n if (state.contentWrapper) {\n // eslint-disable-next-line react-hooks/immutability\n state.contentWrapper.className = mergeClasses(\n styles.contentWrapper,\n state.truncateContent && styles.truncate,\n !state.contentMedia && styles.contentWrapperWithoutMedia,\n state.contentWrapper?.className,\n );\n }\n\n return state;\n};\n"],"names":["makeStyles","makeResetStyles","mergeClasses","createCustomFocusIndicatorStyle","tokens","listItemClassNames","root","media","header","contentWrapper","headerMedia","contentMedia","endMedia","useRootBaseStyles","padding","margin","textIndent","listStyleType","outline","strokeWidthThick","colorStrokeFocus2","borderRadius","borderRadiusMedium","selector","useStyles","fontSize","fontSizeBase200","contentWrapperWithoutMedia","gridColumnEnd","truncate","overflow","textWrap","textOverflow","rootSelected","backgroundColor","colorNeutralBackground1Selected","rootClickable","cursor","colorNeutralBackground1Hover","useListItemStyles_unstable","state","rootBaseStyles","styles","className","selectable","navigable","selected","truncateHeader","truncateContent"],"mappings":"AAAA;;;;;;;;;;;;IAQaK,kBAAAA;;;IAwDAkC,0BAAAA;;;;uBA7D6C,iBAAiB;8BAC3B,0BAA0B;4BAEnD,wBAAwB;AAExC,2BAA0D;IAC/DjC,MAAM;IACNC,OAAO;IACPC,QAAQ;IACRC,gBAAgB;IAChBC,aAAa;IACbC,cAAc;IACdC,UAAU;AACZ,EAAE;AAEF,MAAMC,wBAAoBZ,sBAAAA,EAAgB;IACxCa,SAAS;IACTC,QAAQ;IACRC,YAAY;IACZC,eAAe;IACf,OAAGd,6CAAAA,EACD;QACEe,SAAS,GAAGd,kBAAAA,CAAOe,gBAAgB,CAAC,O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,eAAe,IAAIN,OAAOb,QAAQ,EACxC,CAACW,MAAM7B,YAAY,IAAI+B,OAAOf,0BAA0B,EAAA,CACxDa,wBAAAA,MAAM/B,cAAAA,AAAc,MAAA,QAApB+B,0BAAAA,KAAAA,IAAAA,KAAAA,IAAAA,sBAAsBG,SAAS;IAEnC;IAEA,OAAOH;AACT,EAAE"}
1
+ {"version":3,"sources":["../../../../src/components/List/ListItem/useListItemStyles.styles.ts"],"sourcesContent":["'use client';\n\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport { makeStyles, makeResetStyles, mergeClasses } from '@griffel/react';\nimport { createCustomFocusIndicatorStyle } from '@fluentui/react-tabster';\nimport type { ListItemSlots, ListItemState } from './ListItem.types';\nimport { tokens } from '@fluentui/react-theme';\n\nexport const listItemClassNames: SlotClassNames<ListItemSlots> = {\n root: 'fui-ListItem',\n media: 'fui-ListItem__media',\n header: 'fui-ListItem__header',\n contentWrapper: 'fui-ListItem__contentWrapper',\n headerMedia: 'fui-ListItem__headerMedia',\n contentMedia: 'fui-ListItem__contentMedia',\n endMedia: 'fui-ListItem__endMedia',\n};\n\nconst useRootBaseStyles = makeResetStyles({\n padding: '0 10px',\n margin: 0,\n textIndent: 0,\n listStyleType: 'none',\n ...createCustomFocusIndicatorStyle(\n {\n outline: `${tokens.strokeWidthThick} solid ${tokens.colorStrokeFocus2}`,\n borderRadius: tokens.borderRadiusMedium,\n },\n { selector: 'focus' },\n ),\n});\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n contentWrapper: {\n fontSize: tokens.fontSizeBase200,\n },\n\n // The content should go all the way to the end if the content media is not present\n contentWrapperWithoutMedia: {\n gridColumnEnd: 4,\n },\n truncate: {\n overflow: 'hidden',\n textWrap: 'nowrap',\n textOverflow: 'ellipsis',\n },\n rootSelected: {\n backgroundColor: tokens.colorNeutralBackground1Selected,\n },\n rootClickable: {\n cursor: 'pointer',\n\n '&:hover': {\n backgroundColor: tokens.colorNeutralBackground1Hover,\n },\n },\n});\n\n/**\n * Apply styling to the ListItem slots based on the state\n */\nexport const useListItemStyles_unstable = (state: ListItemState): ListItemState => {\n const rootBaseStyles = useRootBaseStyles();\n const styles = useStyles();\n\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = mergeClasses(\n listItemClassNames.root,\n rootBaseStyles,\n (state.selectable || state.navigable) && styles.rootClickable,\n state.selected && styles.rootSelected,\n state.root.className,\n );\n\n if (state.header) {\n // eslint-disable-next-line react-hooks/immutability\n state.header.className = mergeClasses(state.truncateHeader && styles.truncate, state.header?.className);\n }\n\n if (state.contentWrapper) {\n // eslint-disable-next-line react-hooks/immutability\n state.contentWrapper.className = mergeClasses(\n styles.contentWrapper,\n state.truncateContent && styles.truncate,\n !state.contentMedia && styles.contentWrapperWithoutMedia,\n state.contentWrapper?.className,\n );\n }\n\n return state;\n};\n"],"names":["makeStyles","makeResetStyles","mergeClasses","createCustomFocusIndicatorStyle","tokens","listItemClassNames","root","media","header","contentWrapper","headerMedia","contentMedia","endMedia","useRootBaseStyles","padding","margin","textIndent","listStyleType","outline","strokeWidthThick","colorStrokeFocus2","borderRadius","borderRadiusMedium","selector","useStyles","fontSize","fontSizeBase200","contentWrapperWithoutMedia","gridColumnEnd","truncate","overflow","textWrap","textOverflow","rootSelected","backgroundColor","colorNeutralBackground1Selected","rootClickable","cursor","colorNeutralBackground1Hover","useListItemStyles_unstable","state","rootBaseStyles","styles","className","selectable","navigable","selected","truncateHeader","truncateContent"],"mappings":"AAAA;;;;;;;;;;;;QAQaK;;;;eAwDAkC;;;uBA7D6C,iBAAiB;8BAC3B,0BAA0B;4BAEnD,wBAAwB;AAExC,2BAA0D;IAC/DjC,MAAM;IACNC,OAAO;IACPC,QAAQ;IACRC,gBAAgB;IAChBC,aAAa;IACbC,cAAc;IACdC,UAAU;AACZ,EAAE;AAEF,MAAMC,oBAAoBZ,0BAAAA,EAAgB;IACxCa,SAAS;IACTC,QAAQ;IACRC,YAAY;IACZC,eAAe;IACf,OAAGd,6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OAAGzC,mBAAAA,EAC/BwC,OAAOjC,cAAc,EACrB+B,MAAMQ,eAAe,IAAIN,OAAOb,QAAQ,EACxC,CAACW,MAAM7B,YAAY,IAAI+B,OAAOf,0BAA0B,EAAA,CACxDa,wBAAAA,MAAM/B,cAAAA,AAAc,MAAA,QAApB+B,0BAAAA,KAAAA,IAAAA,KAAAA,IAAAA,sBAAsBG,SAAS;IAEnC;IAEA,OAAOH;AACT,EAAE"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/List/hooks/index.ts"],"sourcesContent":["export { useListSelection } from './useListSelection';\n"],"names":["useListSelection"],"mappings":";;;;;;;eAASA,kCAAgB;;;kCAAQ,wBAAqB"}
1
+ {"version":3,"sources":["../../../../src/components/List/hooks/index.ts"],"sourcesContent":["export { useListSelection } from './useListSelection';\n"],"names":["useListSelection"],"mappings":";;;;;;;eAASA,kCAAgB;;;kCAAQ,wBAAqB"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/List/hooks/types.ts"],"sourcesContent":["import type { SelectionItemId } from '@fluentui/react-utilities';\nimport type * as React from 'react';\n\nexport type ListSelectionState = {\n isSelected: (item: string | number) => boolean;\n toggleItem: (e: React.SyntheticEvent, id: string | number) => void;\n deselectItem: (e: React.SyntheticEvent, id: string | number) => void;\n selectItem: (e: React.SyntheticEvent, id: string | number) => void;\n clearSelection: (e: React.SyntheticEvent) => void;\n toggleAllItems: (e: React.SyntheticEvent, itemIds: string[] | number[]) => void;\n setSelectedItems: React.Dispatch<React.SetStateAction<Iterable<SelectionItemId>>>;\n selectedItems: SelectionItemId[];\n};\n"],"names":[],"mappings":""}
1
+ {"version":3,"sources":["../../../../src/components/List/hooks/types.ts"],"sourcesContent":["import type { SelectionItemId } from '@fluentui/react-utilities';\nimport type * as React from 'react';\n\nexport type ListSelectionState = {\n isSelected: (item: string | number) => boolean;\n toggleItem: (e: React.SyntheticEvent, id: string | number) => void;\n deselectItem: (e: React.SyntheticEvent, id: string | number) => void;\n selectItem: (e: React.SyntheticEvent, id: string | number) => void;\n clearSelection: (e: React.SyntheticEvent) => void;\n toggleAllItems: (e: React.SyntheticEvent, itemIds: string[] | number[]) => void;\n setSelectedItems: React.Dispatch<React.SetStateAction<Iterable<SelectionItemId>>>;\n selectedItems: SelectionItemId[];\n};\n"],"names":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/List/hooks/useListSelection.tsx"],"sourcesContent":["'use client';\n\nimport type { SelectionHookParams } from '@fluentui/react-utilities';\nimport { useControllableState, useEventCallback, useSelection } from '@fluentui/react-utilities';\nimport * as React from 'react';\nimport type { ListSelectionState } from './types';\n\nexport function useListSelection(options: SelectionHookParams = { selectionMode: 'multiselect' }): ListSelectionState {\n const { selectionMode, defaultSelectedItems, onSelectionChange } = options;\n\n const [selectedItems, setSelectedItems] = useControllableState({\n state: options.selectedItems,\n defaultState: defaultSelectedItems,\n initialState: [],\n });\n\n const [selected, selectionMethods] = useSelection({\n selectionMode,\n defaultSelectedItems,\n selectedItems,\n onSelectionChange: (e, data) => {\n setSelectedItems(data.selectedItems);\n onSelectionChange?.(e, data);\n },\n });\n\n const toggleItem: ListSelectionState['toggleItem'] = useEventCallback((e, itemId) =>\n selectionMethods.toggleItem(e, itemId),\n );\n\n const toggleAllItems: ListSelectionState['toggleAllItems'] = useEventCallback((e, itemIds) => {\n selectionMethods.toggleAllItems(e, itemIds);\n });\n\n const deselectItem: ListSelectionState['deselectItem'] = useEventCallback((e, itemId: string | number) =>\n selectionMethods.deselectItem(e, itemId),\n );\n\n const selectItem: ListSelectionState['selectItem'] = useEventCallback((e, itemId: string | number) =>\n selectionMethods.selectItem(e, itemId),\n );\n\n const clearSelection: ListSelectionState['clearSelection'] = useEventCallback(e => selectionMethods.clearItems(e));\n\n const selectedArray = React.useMemo(() => Array.from(selected), [selected]);\n\n return {\n selectedItems: selectedArray,\n toggleItem,\n toggleAllItems,\n deselectItem,\n selectItem,\n setSelectedItems,\n isSelected: (id: string | number) => selectionMethods.isSelected(id),\n clearSelection,\n };\n}\n"],"names":["useControllableState","useEventCallback","useSelection","React","useListSelection","options","selectionMode","defaultSelectedItems","onSelectionChange","selectedItems","setSelectedItems","state","defaultState","initialState","selected","selectionMethods","e","data","toggleItem","itemId","toggleAllItems","itemIds","deselectItem","selectItem","clearSelection","clearItems","selectedArray","useMemo","Array","from","isSelected","id"],"mappings":"AAAA;;;;;+BAOgBI;;;;;;;gCAJqD,4BAA4B;iEAC1E,QAAQ;AAGxB,0BAA0BC,UAA+B;IAAEC,eAAe;AAAc,CAAC;IAC9F,MAAM,EAAEA,aAAa,EAAEC,oBAAoB,EAAEC,iBAAiB,EAAE,GAAGH;IAEnE,MAAM,CAACI,eAAeC,iBAAiB,GAAGV,wCAAAA,EAAqB;QAC7DW,OAAON,QAAQI,aAAa;QAC5BG,cAAcL;QACdM,cAAc,EAAE;IAClB;IAEA,MAAM,CAACC,UAAUC,iBAAiB,OAAGb,4BAAAA,EAAa;QAChDI;QACAC;QACAE;QACAD,mBAAmB,CAACQ,GAAGC;YACrBP,iBAAiBO,KAAKR,aAAa;YACnCD,sBAAAA,QAAAA,sBAAAA,KAAAA,IAAAA,KAAAA,IAAAA,kBAAoBQ,GAAGC;QACzB;IACF;IAEA,MAAMC,iBAA+CjB,gCAAAA,EAAiB,CAACe,GAAGG,SACxEJ,iBAAiBG,UAAU,CAACF,GAAGG;IAGjC,MAAMC,qBAAuDnB,gCAAAA,EAAiB,CAACe,GAAGK;QAChFN,iBAAiBK,cAAc,CAACJ,GAAGK;IACrC;IAEA,MAAMC,mBAAmDrB,gCAAAA,EAAiB,CAACe,GAAGG,SAC5EJ,iBAAiBO,YAAY,CAACN,GAAGG;IAGnC,MAAMI,iBAA+CtB,gCAAAA,EAAiB,CAACe,GAAGG,SACxEJ,iBAAiBQ,UAAU,CAACP,GAAGG;IAGjC,MAAMK,qBAAuDvB,gCAAAA,EAAiBe,CAAAA,IAAKD,iBAAiBU,UAAU,CAACT;IAE/G,MAAMU,gBAAgBvB,OAAMwB,OAAO,CAAC,IAAMC,MAAMC,IAAI,CAACf,WAAW;QAACA;KAAS;IAE1E,OAAO;QACLL,eAAeiB;QACfR;QACAE;QACAE;QACAC;QACAb;QACAoB,YAAY,CAACC,KAAwBhB,iBAAiBe,UAAU,CAACC;QACjEP;IACF;AACF"}
1
+ {"version":3,"sources":["../../../../src/components/List/hooks/useListSelection.tsx"],"sourcesContent":["'use client';\n\nimport type { SelectionHookParams } from '@fluentui/react-utilities';\nimport { useControllableState, useEventCallback, useSelection } from '@fluentui/react-utilities';\nimport * as React from 'react';\nimport type { ListSelectionState } from './types';\n\nexport function useListSelection(options: SelectionHookParams = { selectionMode: 'multiselect' }): ListSelectionState {\n const { selectionMode, defaultSelectedItems, onSelectionChange } = options;\n\n const [selectedItems, setSelectedItems] = useControllableState({\n state: options.selectedItems,\n defaultState: defaultSelectedItems,\n initialState: [],\n });\n\n const [selected, selectionMethods] = useSelection({\n selectionMode,\n defaultSelectedItems,\n selectedItems,\n onSelectionChange: (e, data) => {\n setSelectedItems(data.selectedItems);\n onSelectionChange?.(e, data);\n },\n });\n\n const toggleItem: ListSelectionState['toggleItem'] = useEventCallback((e, itemId) =>\n selectionMethods.toggleItem(e, itemId),\n );\n\n const toggleAllItems: ListSelectionState['toggleAllItems'] = useEventCallback((e, itemIds) => {\n selectionMethods.toggleAllItems(e, itemIds);\n });\n\n const deselectItem: ListSelectionState['deselectItem'] = useEventCallback((e, itemId: string | number) =>\n selectionMethods.deselectItem(e, itemId),\n );\n\n const selectItem: ListSelectionState['selectItem'] = useEventCallback((e, itemId: string | number) =>\n selectionMethods.selectItem(e, itemId),\n );\n\n const clearSelection: ListSelectionState['clearSelection'] = useEventCallback(e => selectionMethods.clearItems(e));\n\n const selectedArray = React.useMemo(() => Array.from(selected), [selected]);\n\n return {\n selectedItems: selectedArray,\n toggleItem,\n toggleAllItems,\n deselectItem,\n selectItem,\n setSelectedItems,\n isSelected: (id: string | number) => selectionMethods.isSelected(id),\n clearSelection,\n };\n}\n"],"names":["useControllableState","useEventCallback","useSelection","React","useListSelection","options","selectionMode","defaultSelectedItems","onSelectionChange","selectedItems","setSelectedItems","state","defaultState","initialState","selected","selectionMethods","e","data","toggleItem","itemId","toggleAllItems","itemIds","deselectItem","selectItem","clearSelection","clearItems","selectedArray","useMemo","Array","from","isSelected","id"],"mappings":"AAAA;;;;;+BAOgBI;;;;;;;gCAJqD,4BAA4B;iEAC1E,QAAQ;AAGxB,0BAA0BC,UAA+B;IAAEC,eAAe;AAAc,CAAC;IAC9F,MAAM,EAAEA,aAAa,EAAEC,oBAAoB,EAAEC,iBAAiB,EAAE,GAAGH;IAEnE,MAAM,CAACI,eAAeC,iBAAiB,GAAGV,wCAAAA,EAAqB;QAC7DW,OAAON,QAAQI,aAAa;QAC5BG,cAAcL;QACdM,cAAc,EAAE;IAClB;IAEA,MAAM,CAACC,UAAUC,iBAAiB,OAAGb,4BAAAA,EAAa;QAChDI;QACAC;QACAE;QACAD,mBAAmB,CAACQ,GAAGC;YACrBP,iBAAiBO,KAAKR,aAAa;YACnCD,sBAAAA,QAAAA,sBAAAA,KAAAA,IAAAA,KAAAA,IAAAA,kBAAoBQ,GAAGC;QACzB;IACF;IAEA,MAAMC,iBAA+CjB,gCAAAA,EAAiB,CAACe,GAAGG,SACxEJ,iBAAiBG,UAAU,CAACF,GAAGG;IAGjC,MAAMC,qBAAuDnB,gCAAAA,EAAiB,CAACe,GAAGK;QAChFN,iBAAiBK,cAAc,CAACJ,GAAGK;IACrC;IAEA,MAAMC,mBAAmDrB,gCAAAA,EAAiB,CAACe,GAAGG,SAC5EJ,iBAAiBO,YAAY,CAACN,GAAGG;IAGnC,MAAMI,iBAA+CtB,gCAAAA,EAAiB,CAACe,GAAGG,SACxEJ,iBAAiBQ,UAAU,CAACP,GAAGG;IAGjC,MAAMK,qBAAuDvB,gCAAAA,EAAiBe,CAAAA,IAAKD,iBAAiBU,UAAU,CAACT;IAE/G,MAAMU,gBAAgBvB,OAAMwB,OAAO,CAAC,IAAMC,MAAMC,IAAI,CAACf,WAAW;QAACA;KAAS;IAE1E,OAAO;QACLL,eAAeiB;QACfR;QACAE;QACAE;QACAC;QACAb;QACAoB,YAAY,CAACC,KAAwBhB,iBAAiBe,UAAU,CAACC;QACjEP;IACF;AACF"}
@@ -5,41 +5,41 @@ Object.defineProperty(exports, "__esModule", {
5
5
  function _export(target, all) {
6
6
  for(var name in all)Object.defineProperty(target, name, {
7
7
  enumerable: true,
8
- get: all[name]
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- List: function() {
12
+ get List () {
13
13
  return _index.List;
14
14
  },
15
- ListItem: function() {
15
+ get ListItem () {
16
16
  return _index1.ListItem;
17
17
  },
18
- listClassNames: function() {
18
+ get listClassNames () {
19
19
  return _index.listClassNames;
20
20
  },
21
- listItemClassNames: function() {
21
+ get listItemClassNames () {
22
22
  return _index1.listItemClassNames;
23
23
  },
24
- renderListItem_unstable: function() {
24
+ get renderListItem_unstable () {
25
25
  return _index1.renderListItem_unstable;
26
26
  },
27
- renderList_unstable: function() {
27
+ get renderList_unstable () {
28
28
  return _index.renderList_unstable;
29
29
  },
30
- useListItemStyles_unstable: function() {
30
+ get useListItemStyles_unstable () {
31
31
  return _index1.useListItemStyles_unstable;
32
32
  },
33
- useListItem_unstable: function() {
33
+ get useListItem_unstable () {
34
34
  return _index1.useListItem_unstable;
35
35
  },
36
- useListSelection: function() {
36
+ get useListSelection () {
37
37
  return _index2.useListSelection;
38
38
  },
39
- useListStyles_unstable: function() {
39
+ get useListStyles_unstable () {
40
40
  return _index.useListStyles_unstable;
41
41
  },
42
- useList_unstable: function() {
42
+ get useList_unstable () {
43
43
  return _index.useList_unstable;
44
44
  }
45
45
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/List/index.ts"],"sourcesContent":["export { List, listClassNames, renderList_unstable, useListStyles_unstable, useList_unstable } from './List';\nexport type { ListProps, ListSlots, ListState } from './List';\n\nexport {\n ListItem,\n listItemClassNames,\n renderListItem_unstable,\n useListItemStyles_unstable,\n useListItem_unstable,\n} from './ListItem';\nexport type { ListItemProps, ListItemSlots, ListItemState } from './ListItem';\n\nexport { useListSelection } from './hooks';\n"],"names":["List","listClassNames","renderList_unstable","useListStyles_unstable","useList_unstable","ListItem","listItemClassNames","renderListItem_unstable","useListItemStyles_unstable","useListItem_unstable","useListSelection"],"mappings":";;;;;;;;;;;IAASA;0BAAI;;IAIXK;+BAAQ;;;eAJKJ,qBAAc;;sBAKT;eAAlBK;;;eACAC,+BAAuB;;;eANML,0BAAmB;;;eAOhDM,kCAA0B;;;eAC1BC,4BAAoB;;;eAIbC,wBAAgB;;;eAZ2BP,6BAAsB;;;eAAEC,uBAAgB;;;uBAAQ,kBAAS;wBAStG,sBAAa;wBAGa,mBAAU"}
1
+ {"version":3,"sources":["../../../src/components/List/index.ts"],"sourcesContent":["export { List, listClassNames, renderList_unstable, useListStyles_unstable, useList_unstable } from './List';\nexport type { ListProps, ListSlots, ListState } from './List';\n\nexport {\n ListItem,\n listItemClassNames,\n renderListItem_unstable,\n useListItemStyles_unstable,\n useListItem_unstable,\n} from './ListItem';\nexport type { ListItemProps, ListItemSlots, ListItemState } from './ListItem';\n\nexport { useListSelection } from './hooks';\n"],"names":["List","listClassNames","renderList_unstable","useListStyles_unstable","useList_unstable","ListItem","listItemClassNames","renderListItem_unstable","useListItemStyles_unstable","useListItem_unstable","useListSelection"],"mappings":";;;;;;;;;;;QAASA;0BAAI;;QAIXK;+BAAQ;;;eAJKJ,qBAAc;;;eAK3BK,0BAAkB;;;eAClBC,+BAAuB;;QANML;yCAAmB;;;eAOhDM,kCAA0B;;;eAC1BC,4BAAoB;;;eAIbC,wBAAgB;;;eAZ2BP,6BAAsB;;;eAAEC,uBAAgB;;;uBAAQ,kBAAS;wBAStG,sBAAa;wBAGa,mBAAU"}
@@ -6,14 +6,14 @@ Object.defineProperty(exports, "__esModule", {
6
6
  function _export(target, all) {
7
7
  for(var name in all)Object.defineProperty(target, name, {
8
8
  enumerable: true,
9
- get: all[name]
9
+ get: Object.getOwnPropertyDescriptor(all, name).get
10
10
  });
11
11
  }
12
12
  _export(exports, {
13
- Primitive: function() {
13
+ get Primitive () {
14
14
  return Primitive;
15
15
  },
16
- primitiveClassName: function() {
16
+ get primitiveClassName () {
17
17
  return primitiveClassName;
18
18
  }
19
19
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/Primitive/Primitive.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { mergeClasses } from '@fluentui/react-components';\nimport type { JSXIntrinsicElement, JSXIntrinsicElementKeys } from '@fluentui/react-utilities';\n\n// Simplified version from https://github.com/reach/reach-ui/blob/55d28eda39afc4c667e97f5f62a48d1de034b93f/packages/utils/src/polymorphic.ts\ninterface PrimitiveComponent {\n /**\n * Infers props from JSX.IntrinsicElements based on \"as\" value. Explicitly avoids `React.ElementType` and manually\n * narrow the prop types so that events are typed when using JSX.IntrinsicElements.\n */\n <As extends JSXIntrinsicElementKeys>(props: { as?: As } & JSXIntrinsicElement<As>): React.ReactElement | null;\n\n displayName: string;\n}\n\nexport const primitiveClassName = 'fui-Primitive';\n\nexport const Primitive = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLElement> & { as: 'div' }>(\n (props, ref) => {\n const { as: Component = 'div', ...rest } = props;\n\n const dir = typeof props.children === 'string' ? 'auto' : undefined;\n\n const className = mergeClasses(primitiveClassName, props.className);\n\n return <Component dir={dir} {...rest} className={className} ref={ref} />;\n },\n) as PrimitiveComponent;\n\nPrimitive.displayName = 'Primitive';\n"],"names":["React","mergeClasses","primitiveClassName","Primitive","forwardRef","props","ref","as","Component","rest","dir","children","undefined","className","displayName"],"mappings":"AAAA;;;;;;;;;;;;IAmBaG,SAAAA;;;sBAFAD;;;;;iEAfU,QAAQ;iCACF,6BAA6B;AAcnD,MAAMA,qBAAqB,gBAAgB;AAE3C,kBAAMC,WAAAA,GAAYH,OAAMI,UAAU,CACvC,CAACC,OAAOC;IACN,MAAM,EAAEC,IAAIC,YAAY,KAAK,EAAE,GAAGC,MAAM,GAAGJ;IAE3C,MAAMK,MAAM,OAAOL,MAAMM,QAAQ,KAAK,WAAW,SAASC;IAE1D,MAAMC,gBAAYZ,6BAAAA,EAAaC,oBAAoBG,MAAMQ,SAAS;IAElE,OAAA,WAAA,GAAO,OAAA,aAAA,CAACL,WAAAA;QAAUE,KAAKA;QAAM,GAAGD,IAAI;QAAEI,WAAWA;QAAWP,KAAKA;;AACnE,GACsB;AAExBH,UAAUW,WAAW,GAAG"}
1
+ {"version":3,"sources":["../../../src/components/Primitive/Primitive.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { mergeClasses } from '@fluentui/react-components';\nimport type { JSXIntrinsicElement, JSXIntrinsicElementKeys } from '@fluentui/react-utilities';\n\n// Simplified version from https://github.com/reach/reach-ui/blob/55d28eda39afc4c667e97f5f62a48d1de034b93f/packages/utils/src/polymorphic.ts\ninterface PrimitiveComponent {\n /**\n * Infers props from JSX.IntrinsicElements based on \"as\" value. Explicitly avoids `React.ElementType` and manually\n * narrow the prop types so that events are typed when using JSX.IntrinsicElements.\n */\n <As extends JSXIntrinsicElementKeys>(props: { as?: As } & JSXIntrinsicElement<As>): React.ReactElement | null;\n\n displayName: string;\n}\n\nexport const primitiveClassName = 'fui-Primitive';\n\nexport const Primitive = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLElement> & { as: 'div' }>(\n (props, ref) => {\n const { as: Component = 'div', ...rest } = props;\n\n const dir = typeof props.children === 'string' ? 'auto' : undefined;\n\n const className = mergeClasses(primitiveClassName, props.className);\n\n return <Component dir={dir} {...rest} className={className} ref={ref} />;\n },\n) as PrimitiveComponent;\n\nPrimitive.displayName = 'Primitive';\n"],"names":["React","mergeClasses","primitiveClassName","Primitive","forwardRef","props","ref","as","Component","rest","dir","children","undefined","className","displayName"],"mappings":"AAAA;;;;;;;;;;;;QAmBaG;;;;;;;;iEAjBU,QAAQ;iCACF,6BAA6B;AAcnD,MAAMD,qBAAqB,gBAAgB;AAE3C,kBAAMC,WAAAA,GAAYH,OAAMI,UAAU,CACvC,CAACC,OAAOC;IACN,MAAM,EAAEC,IAAIC,YAAY,KAAK,EAAE,GAAGC,MAAM,GAAGJ;IAE3C,MAAMK,MAAM,OAAOL,MAAMM,QAAQ,KAAK,WAAW,SAASC;IAE1D,MAAMC,gBAAYZ,6BAAAA,EAAaC,oBAAoBG,MAAMQ,SAAS;IAElE,OAAA,WAAA,GAAO,OAAA,aAAA,CAACL,WAAAA;QAAUE,KAAKA;QAAM,GAAGD,IAAI;QAAEI,WAAWA;QAAWP,KAAKA;;AACnE,GACsB;AAExBH,UAAUW,WAAW,GAAG"}
@@ -5,14 +5,14 @@ Object.defineProperty(exports, "__esModule", {
5
5
  function _export(target, all) {
6
6
  for(var name in all)Object.defineProperty(target, name, {
7
7
  enumerable: true,
8
- get: all[name]
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- Primitive: function() {
12
+ get Primitive () {
13
13
  return _Primitive.Primitive;
14
14
  },
15
- primitiveClassName: function() {
15
+ get primitiveClassName () {
16
16
  return _Primitive.primitiveClassName;
17
17
  }
18
18
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/Primitive/index.tsx"],"sourcesContent":["export { Primitive, primitiveClassName } from './Primitive';\n"],"names":["Primitive","primitiveClassName"],"mappings":";;;;;;;;;;;;eAASA,oBAAS;;;eAAEC,6BAAkB;;;2BAAQ,iBAAc"}
1
+ {"version":3,"sources":["../../../src/components/Primitive/index.tsx"],"sourcesContent":["export { Primitive, primitiveClassName } from './Primitive';\n"],"names":["Primitive","primitiveClassName"],"mappings":";;;;;;;;;;;;eAASA,oBAAS;;;eAAEC,6BAAkB;;;2BAAQ,iBAAc"}
@@ -6,14 +6,14 @@ Object.defineProperty(exports, "__esModule", {
6
6
  function _export(target, all) {
7
7
  for(var name in all)Object.defineProperty(target, name, {
8
8
  enumerable: true,
9
- get: all[name]
9
+ get: Object.getOwnPropertyDescriptor(all, name).get
10
10
  });
11
11
  }
12
12
  _export(exports, {
13
- Segment: function() {
13
+ get Segment () {
14
14
  return Segment;
15
15
  },
16
- segmentClassName: function() {
16
+ get segmentClassName () {
17
17
  return segmentClassName;
18
18
  }
19
19
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/Segment/Segment.tsx"],"sourcesContent":["'use client';\n\nimport { mergeClasses } from '@fluentui/react-components';\nimport * as React from 'react';\n\nimport { useSegmentStyles } from './Segment.styles';\n\nexport const segmentClassName = 'fui-Segment';\n\nexport const Segment = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLElement>>((props, ref) => {\n const { children, className, ...rest } = props;\n const classes = useSegmentStyles();\n\n const segmentClasses = mergeClasses(segmentClassName, classes.segment, className);\n\n return (\n <div ref={ref} className={segmentClasses} {...rest}>\n {children}\n </div>\n );\n});\n\nSegment.displayName = 'Segment';\n"],"names":["mergeClasses","React","useSegmentStyles","segmentClassName","Segment","forwardRef","props","ref","children","className","rest","classes","segmentClasses","segment","div","displayName"],"mappings":"AAAA;;;;;;;;;;;;IASaI,OAAAA;;;oBAFAD;;;;;iCALgB,6BAA6B;iEACnC,QAAQ;+BAEE,sBAAmB;AAE7C,MAAMA,mBAAmB,cAAc;AAEvC,gBAAMC,WAAAA,GAAUH,OAAMI,UAAU,CAAoD,CAACC,OAAOC;IACjG,MAAM,EAAEC,QAAQ,EAAEC,SAAS,EAAE,GAAGC,MAAM,GAAGJ;IACzC,MAAMK,UAAUT,mCAAAA;IAEhB,MAAMU,qBAAiBZ,6BAAAA,EAAaG,kBAAkBQ,QAAQE,OAAO,EAAEJ;IAEvE,OAAA,WAAA,GACE,OAAA,aAAA,CAACK,OAAAA;QAAIP,KAAKA;QAAKE,WAAWG;QAAiB,GAAGF,IAAI;OAC/CF;AAGP,GAAG;AAEHJ,QAAQW,WAAW,GAAG"}
1
+ {"version":3,"sources":["../../../src/components/Segment/Segment.tsx"],"sourcesContent":["'use client';\n\nimport { mergeClasses } from '@fluentui/react-components';\nimport * as React from 'react';\n\nimport { useSegmentStyles } from './Segment.styles';\n\nexport const segmentClassName = 'fui-Segment';\n\nexport const Segment = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLElement>>((props, ref) => {\n const { children, className, ...rest } = props;\n const classes = useSegmentStyles();\n\n const segmentClasses = mergeClasses(segmentClassName, classes.segment, className);\n\n return (\n <div ref={ref} className={segmentClasses} {...rest}>\n {children}\n </div>\n );\n});\n\nSegment.displayName = 'Segment';\n"],"names":["mergeClasses","React","useSegmentStyles","segmentClassName","Segment","forwardRef","props","ref","children","className","rest","classes","segmentClasses","segment","div","displayName"],"mappings":"AAAA;;;;;;;;;;;;QASaI;;;;;;;;iCAPgB,6BAA6B;iEACnC,QAAQ;+BAEE,sBAAmB;AAE7C,MAAMD,mBAAmB,cAAc;AAEvC,gBAAMC,WAAAA,GAAUH,OAAMI,UAAU,CAAoD,CAACC,OAAOC;IACjG,MAAM,EAAEC,QAAQ,EAAEC,SAAS,EAAE,GAAGC,MAAM,GAAGJ;IACzC,MAAMK,cAAUT,+BAAAA;IAEhB,MAAMU,qBAAiBZ,6BAAAA,EAAaG,kBAAkBQ,QAAQE,OAAO,EAAEJ;IAEvE,OAAA,WAAA,GACE,OAAA,aAAA,CAACK,OAAAA;QAAIP,KAAKA;QAAKE,WAAWG;QAAiB,GAAGF,IAAI;OAC/CF;AAGP,GAAG;AAEHJ,QAAQW,WAAW,GAAG"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/Segment/Segment.styles.ts"],"sourcesContent":["'use client';\n\nimport { makeStyles, shorthands, tokens } from '@fluentui/react-components';\n\nexport const useSegmentStyles = makeStyles({\n segment: {\n padding: '1em',\n ...shorthands.borderWidth('2px', 0, 0),\n ...shorthands.borderColor('transparent'),\n ...shorthands.borderStyle('solid'),\n backgroundColor: tokens.colorNeutralBackground1,\n boxShadow: `0 1px 1px 1px ${tokens.colorNeutralShadowKey}`,\n },\n});\n"],"names":["makeStyles","shorthands","tokens","useSegmentStyles","segment","padding","borderWidth","borderColor","borderStyle","backgroundColor","colorNeutralBackground1","boxShadow","colorNeutralShadowKey"],"mappings":"AAAA;;;;;;;;;;;iCAE+C,6BAA6B;AAErE,MAAMG,uBAAmBH,2BAAAA,EAAW;IACzCI,SAAS;QACPC,SAAS;QACT,GAAGJ,2BAAAA,CAAWK,WAAW,CAAC,OAAO,GAAG,EAAE;QACtC,GAAGL,2BAAAA,CAAWM,WAAW,CAAC,cAAc;QACxC,GAAGN,2BAAAA,CAAWO,WAAW,CAAC,QAAQ;QAClCC,iBAAiBP,uBAAAA,CAAOQ,uBAAuB;QAC/CC,WAAW,CAAC,cAAc,EAAET,uBAAAA,CAAOU,qBAAqB,EAAE;IAC5D;AACF,GAAG"}
1
+ {"version":3,"sources":["../../../src/components/Segment/Segment.styles.ts"],"sourcesContent":["'use client';\n\nimport { makeStyles, shorthands, tokens } from '@fluentui/react-components';\n\nexport const useSegmentStyles = makeStyles({\n segment: {\n padding: '1em',\n ...shorthands.borderWidth('2px', 0, 0),\n ...shorthands.borderColor('transparent'),\n ...shorthands.borderStyle('solid'),\n backgroundColor: tokens.colorNeutralBackground1,\n boxShadow: `0 1px 1px 1px ${tokens.colorNeutralShadowKey}`,\n },\n});\n"],"names":["makeStyles","shorthands","tokens","useSegmentStyles","segment","padding","borderWidth","borderColor","borderStyle","backgroundColor","colorNeutralBackground1","boxShadow","colorNeutralShadowKey"],"mappings":"AAAA;;;;;;;;;;;iCAE+C,6BAA6B;AAErE,MAAMG,uBAAmBH,2BAAAA,EAAW;IACzCI,SAAS;QACPC,SAAS;QACT,GAAGJ,2BAAAA,CAAWK,WAAW,CAAC,OAAO,GAAG,EAAE;QACtC,GAAGL,2BAAAA,CAAWM,WAAW,CAAC,cAAc;QACxC,GAAGN,2BAAAA,CAAWO,WAAW,CAAC,QAAQ;QAClCC,iBAAiBP,uBAAAA,CAAOQ,uBAAuB;QAC/CC,WAAW,CAAC,cAAc,EAAET,uBAAAA,CAAOU,qBAAqB,EAAE;IAC5D;AACF,GAAG"}
@@ -5,14 +5,14 @@ Object.defineProperty(exports, "__esModule", {
5
5
  function _export(target, all) {
6
6
  for(var name in all)Object.defineProperty(target, name, {
7
7
  enumerable: true,
8
- get: all[name]
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- Segment: function() {
12
+ get Segment () {
13
13
  return _Segment.Segment;
14
14
  },
15
- segmentClassName: function() {
15
+ get segmentClassName () {
16
16
  return _Segment.segmentClassName;
17
17
  }
18
18
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/Segment/index.ts"],"sourcesContent":["export { Segment, segmentClassName } from './Segment';\n"],"names":["Segment","segmentClassName"],"mappings":";;;;;;;;;;;;eAASA,gBAAO;;;eAAEC,yBAAgB;;;yBAAQ,eAAY"}
1
+ {"version":3,"sources":["../../../src/components/Segment/index.ts"],"sourcesContent":["export { Segment, segmentClassName } from './Segment';\n"],"names":["Segment","segmentClassName"],"mappings":";;;;;;;;;;;;eAASA,gBAAO;;;eAAEC,yBAAgB;;;yBAAQ,eAAY"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/Slider/Slider.mixins.ts"],"sourcesContent":["import type { GriffelStyle } from '@fluentui/react-components';\n\nconst fluid = (): GriffelStyle => ({ width: '100%' });\n\nexport const slider = {\n fluid,\n};\n"],"names":["fluid","width","slider"],"mappings":";;;;;;;;;;AAEA,MAAMA,QAAQ,IAAqB,CAAA;QAAEC,OAAO;KAAO,CAAA;AAE5C,MAAMC,SAAS;IACpBF;AACF,EAAE"}
1
+ {"version":3,"sources":["../../../src/components/Slider/Slider.mixins.ts"],"sourcesContent":["import type { GriffelStyle } from '@fluentui/react-components';\n\nconst fluid = (): GriffelStyle => ({ width: '100%' });\n\nexport const slider = {\n fluid,\n};\n"],"names":["fluid","width","slider"],"mappings":";;;;;;;;;;AAEA,MAAMA,QAAQ,IAAqB,CAAA;QAAEC,OAAO;KAAO,CAAA;AAE5C,MAAMC,SAAS;IACpBF;AACF,EAAE"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/Slider/index.ts"],"sourcesContent":["export { slider } from './Slider.mixins';\n"],"names":["slider"],"mappings":";;;;;;;eAASA,oBAAM;;;8BAAQ,qBAAkB"}
1
+ {"version":3,"sources":["../../../src/components/Slider/index.ts"],"sourcesContent":["export { slider } from './Slider.mixins';\n"],"names":["slider"],"mappings":";;;;;;;eAASA,oBAAM;;;8BAAQ,qBAAkB"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/Spinner/SpinnerMigration.mixins.ts"],"sourcesContent":["import type { GriffelStyle } from '@fluentui/react-components';\nimport { tokens, labelClassNames } from '@fluentui/react-components';\n\nconst v0Inline = (): GriffelStyle => ({ display: 'inline-flex' });\n\nconst v0SpinnerLabelStyle = (): GriffelStyle => ({\n [`& .${labelClassNames.root}`]: {\n fontSize: '14px',\n fontWeight: tokens.fontWeightMedium,\n },\n});\n\nexport const spinner = {\n v0Inline,\n v0SpinnerLabelStyle,\n};\n"],"names":["tokens","labelClassNames","v0Inline","display","v0SpinnerLabelStyle","root","fontSize","fontWeight","fontWeightMedium","spinner"],"mappings":";;;;;;;;;;iCACwC,6BAA6B;AAErE,MAAME,WAAW,IAAqB,CAAA;QAAEC,SAAS;KAAc,CAAA;AAE/D,MAAMC,sBAAsB,IAAqB,CAAA;QAC/C,CAAC,CAAC,GAAG,EAAEH,gCAAAA,CAAgBI,IAAI,EAAE,CAAC,EAAE;YAC9BC,UAAU;YACVC,YAAYP,uBAAAA,CAAOQ,gBAAgB;QACrC;KACF,CAAA;AAEO,MAAMC,UAAU;IACrBP;IACAE;AACF,EAAE"}
1
+ {"version":3,"sources":["../../../src/components/Spinner/SpinnerMigration.mixins.ts"],"sourcesContent":["import type { GriffelStyle } from '@fluentui/react-components';\nimport { tokens, labelClassNames } from '@fluentui/react-components';\n\nconst v0Inline = (): GriffelStyle => ({ display: 'inline-flex' });\n\nconst v0SpinnerLabelStyle = (): GriffelStyle => ({\n [`& .${labelClassNames.root}`]: {\n fontSize: '14px',\n fontWeight: tokens.fontWeightMedium,\n },\n});\n\nexport const spinner = {\n v0Inline,\n v0SpinnerLabelStyle,\n};\n"],"names":["tokens","labelClassNames","v0Inline","display","v0SpinnerLabelStyle","root","fontSize","fontWeight","fontWeightMedium","spinner"],"mappings":";;;;;;;;;;iCACwC,6BAA6B;AAErE,MAAME,WAAW,IAAqB,CAAA;QAAEC,SAAS;KAAc,CAAA;AAE/D,MAAMC,sBAAsB,IAAqB,CAAA;QAC/C,CAAC,CAAC,GAAG,EAAEH,gCAAAA,CAAgBI,IAAI,EAAE,CAAC,EAAE;YAC9BC,UAAU;YACVC,YAAYP,uBAAAA,CAAOQ,gBAAgB;QACrC;KACF,CAAA;AAEO,MAAMC,UAAU;IACrBP;IACAE;AACF,EAAE"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/Spinner/index.tsx"],"sourcesContent":["export { spinner } from './SpinnerMigration.mixins';\n"],"names":["spinner"],"mappings":";;;;;;;eAASA,+BAAO;;;wCAAQ,+BAA4B"}
1
+ {"version":3,"sources":["../../../src/components/Spinner/index.tsx"],"sourcesContent":["export { spinner } from './SpinnerMigration.mixins';\n"],"names":["spinner"],"mappings":";;;;;;;eAASA,+BAAO;;;wCAAQ,+BAA4B"}
@@ -6,14 +6,14 @@ Object.defineProperty(exports, "__esModule", {
6
6
  function _export(target, all) {
7
7
  for(var name in all)Object.defineProperty(target, name, {
8
8
  enumerable: true,
9
- get: all[name]
9
+ get: Object.getOwnPropertyDescriptor(all, name).get
10
10
  });
11
11
  }
12
12
  _export(exports, {
13
- StyledText: function() {
13
+ get StyledText () {
14
14
  return StyledText;
15
15
  },
16
- styledTextClassName: function() {
16
+ get styledTextClassName () {
17
17
  return styledTextClassName;
18
18
  }
19
19
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/StyledText/StyledText.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\n\n'use client';\n\nimport * as React from 'react';\nimport type { Slot, ComponentProps } from '@fluentui/react-components';\nimport { getIntrinsicElementProps, mergeClasses, slot } from '@fluentui/react-components';\nimport { useSizeStyles, useStyles, useWeightStyles } from './StyledText.styles';\n\nexport type StyledTextSlots = {\n root: Slot<'span', 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'pre' | 'time'>;\n};\n\nexport type StyledTextProps = ComponentProps<StyledTextSlots> & {\n /**\n * Aligns text based on the parent container.\n */\n align?: 'start' | 'center' | 'end' | 'justify';\n\n /**\n * At mentions can be formatted to draw users' attention.\n * Mentions for \"me\" can be formatted to appear differently.\n */\n atMention?: 'me' | boolean;\n\n /**\n * Set as disabled StyledText component\n */\n disabled?: boolean;\n\n /**\n * Set as error StyledText component\n */\n error?: boolean;\n\n /**\n * The StyledText can appear more important and draw user's attention\n */\n important?: boolean;\n\n /**\n * Applies font size and line height based on the theme tokens.\n */\n size?:\n | 'smaller'\n | 'small'\n | 'medium'\n | 'large'\n | 'large500'\n | 'larger'\n | 'largest'\n | 100\n | 200\n | 300\n | 400\n | 500\n | 600\n | 700;\n\n /**\n * Set as success StyledText component\n */\n success?: boolean;\n\n /**\n * The text can signify a temporary state\n */\n temporary?: boolean;\n\n /**\n * Set as timestamp StyledText component\n */\n timestamp?: boolean;\n\n /**\n * Truncate overflowing text for block displays.\n */\n truncate?: boolean;\n\n /**\n * Applies font weight to the content.\n */\n weight?: 'light' | 'semilight' | 'regular' | 'medium' | 'semibold' | 'bold';\n\n /**\n * Wraps the text content on white spaces.\n *\n * @default true\n */\n wrap?: boolean;\n};\n\nexport const styledTextClassName = 'fui-StyledText';\n\nconst sizeMap: Record<string, 'base100' | 'base200' | 'base300' | 'base400' | 'base500' | 'base600' | 'hero700'> = {\n '100': 'base100',\n '200': 'base200',\n '300': 'base300',\n '400': 'base400',\n '500': 'base500',\n '600': 'base600',\n '700': 'hero700',\n smaller: 'base100',\n small: 'base200',\n medium: 'base300',\n large: 'base400',\n large500: 'base500',\n larger: 'base600',\n largest: 'hero700',\n};\n\nexport const StyledText = React.forwardRef<HTMLSpanElement, StyledTextProps>((props, ref) => {\n const {\n align,\n atMention,\n disabled,\n error,\n important,\n success,\n temporary,\n timestamp,\n truncate,\n weight,\n wrap = true,\n } = props;\n\n const dir = typeof props.children === 'string' ? 'auto' : undefined;\n\n const sizeStyles = useSizeStyles();\n const weightStyles = useWeightStyles();\n const styles = useStyles();\n\n const size = props.size ? sizeMap[props.size] : props.size;\n\n const RootSlot = slot.always(\n getIntrinsicElementProps('span', {\n ref,\n ...props,\n dir,\n className: mergeClasses(\n styledTextClassName,\n size && sizeStyles[size],\n weight && weightStyles[weight],\n wrap === false && styles.nowrap,\n truncate && styles.truncate,\n align === 'center' && styles.alignCenter,\n align === 'end' && styles.alignEnd,\n align === 'justify' && styles.alignJustify,\n\n atMention && styles.mention,\n atMention === 'me' && styles.mentionMe,\n disabled && styles.disabled,\n error && styles.error,\n important && styles.important,\n success && styles.success,\n temporary && styles.temporary,\n timestamp && styles.timestamp,\n props.className,\n ),\n }),\n { elementType: 'span' },\n );\n\n return <RootSlot />;\n});\n\nStyledText.displayName = 'StyledText';\n"],"names":["React","getIntrinsicElementProps","mergeClasses","slot","useSizeStyles","useStyles","useWeightStyles","styledTextClassName","sizeMap","smaller","small","medium","large","large500","larger","largest","StyledText","forwardRef","props","ref","align","atMention","disabled","error","important","success","temporary","timestamp","truncate","weight","wrap","dir","children","undefined","sizeStyles","weightStyles","styles","size","RootSlot","always","className","nowrap","alignCenter","alignEnd","alignJustify","mention","mentionMe","elementType","displayName"],"mappings":"AAAA,wBAA0B,GAC1B,iDAAiD,GAEjD;;;;;;;;;;;;IA6GagB,UAAAA;;;uBAnBAT;;;;;;iEAxFU,QAAQ;iCAE8B,6BAA6B;kC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C,aAAaY,OAAOZ,SAAS,EAC7BC,WAAWW,OAAOX,OAAO,EACzBC,aAAaU,OAAOV,SAAS,EAC7BC,aAAaS,OAAOT,SAAS,EAC7BT,MAAMsB,SAAS;IAEnB,IACA;QAAEO,aAAa;IAAO;IAGxB,OAAA,WAAA,OAAO,eAAA,EAACT,UAAAA,CAAAA;AACV,GAAG;AAEHtB,WAAWgC,WAAW,GAAG"}
1
+ {"version":3,"sources":["../../../src/components/StyledText/StyledText.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\n\n'use client';\n\nimport * as React from 'react';\nimport type { Slot, ComponentProps } from '@fluentui/react-components';\nimport { getIntrinsicElementProps, mergeClasses, slot } from '@fluentui/react-components';\nimport { useSizeStyles, useStyles, useWeightStyles } from './StyledText.styles';\n\nexport type StyledTextSlots = {\n root: Slot<'span', 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'pre' | 'time'>;\n};\n\nexport type StyledTextProps = ComponentProps<StyledTextSlots> & {\n /**\n * Aligns text based on the parent container.\n */\n align?: 'start' | 'center' | 'end' | 'justify';\n\n /**\n * At mentions can be formatted to draw users' attention.\n * Mentions for \"me\" can be formatted to appear differently.\n */\n atMention?: 'me' | boolean;\n\n /**\n * Set as disabled StyledText component\n */\n disabled?: boolean;\n\n /**\n * Set as error StyledText component\n */\n error?: boolean;\n\n /**\n * The StyledText can appear more important and draw user's attention\n */\n important?: boolean;\n\n /**\n * Applies font size and line height based on the theme tokens.\n */\n size?:\n | 'smaller'\n | 'small'\n | 'medium'\n | 'large'\n | 'large500'\n | 'larger'\n | 'largest'\n | 100\n | 200\n | 300\n | 400\n | 500\n | 600\n | 700;\n\n /**\n * Set as success StyledText component\n */\n success?: boolean;\n\n /**\n * The text can signify a temporary state\n */\n temporary?: boolean;\n\n /**\n * Set as timestamp StyledText component\n */\n timestamp?: boolean;\n\n /**\n * Truncate overflowing text for block displays.\n */\n truncate?: boolean;\n\n /**\n * Applies font weight to the content.\n */\n weight?: 'light' | 'semilight' | 'regular' | 'medium' | 'semibold' | 'bold';\n\n /**\n * Wraps the text content on white spaces.\n *\n * @default true\n */\n wrap?: boolean;\n};\n\nexport const styledTextClassName = 'fui-StyledText';\n\nconst sizeMap: Record<string, 'base100' | 'base200' | 'base300' | 'base400' | 'base500' | 'base600' | 'hero700'> = {\n '100': 'base100',\n '200': 'base200',\n '300': 'base300',\n '400': 'base400',\n '500': 'base500',\n '600': 'base600',\n '700': 'hero700',\n smaller: 'base100',\n small: 'base200',\n medium: 'base300',\n large: 'base400',\n large500: 'base500',\n larger: 'base600',\n largest: 'hero700',\n};\n\nexport const StyledText = React.forwardRef<HTMLSpanElement, StyledTextProps>((props, ref) => {\n const {\n align,\n atMention,\n disabled,\n error,\n important,\n success,\n temporary,\n timestamp,\n truncate,\n weight,\n wrap = true,\n } = props;\n\n const dir = typeof props.children === 'string' ? 'auto' : undefined;\n\n const sizeStyles = useSizeStyles();\n const weightStyles = useWeightStyles();\n const styles = useStyles();\n\n const size = props.size ? sizeMap[props.size] : props.size;\n\n const RootSlot = slot.always(\n getIntrinsicElementProps('span', {\n ref,\n ...props,\n dir,\n className: mergeClasses(\n styledTextClassName,\n size && sizeStyles[size],\n weight && weightStyles[weight],\n wrap === false && styles.nowrap,\n truncate && styles.truncate,\n align === 'center' && styles.alignCenter,\n align === 'end' && styles.alignEnd,\n align === 'justify' && styles.alignJustify,\n\n atMention && styles.mention,\n atMention === 'me' && styles.mentionMe,\n disabled && styles.disabled,\n error && styles.error,\n important && styles.important,\n success && styles.success,\n temporary && styles.temporary,\n timestamp && styles.timestamp,\n props.className,\n ),\n }),\n { elementType: 'span' },\n );\n\n return <RootSlot />;\n});\n\nStyledText.displayName = 'StyledText';\n"],"names":["React","getIntrinsicElementProps","mergeClasses","slot","useSizeStyles","useStyles","useWeightStyles","styledTextClassName","sizeMap","smaller","small","medium","large","large500","larger","largest","StyledText","forwardRef","props","ref","align","atMention","disabled","error","important","success","temporary","timestamp","truncate","weight","wrap","dir","children","undefined","sizeStyles","weightStyles","styles","size","RootSlot","always","className","nowrap","alignCenter","alignEnd","alignJustify","mention","mentionMe","elementType","displayName"],"mappings":"AAAA,wBAA0B,GAC1B,iDAAiD,GAEjD;;;;;;;;;;;;;eA6GagB;;QAnBAT;;;;;;iEAxFU,QAAQ;iCAE8B,6BAA6B;kCAChC,yBAAsB;AAqFzE,4BAA4B,iBAAiB;AAEpD,MAAMC,UAA6G;IACjH,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACPC,SAAS;IACTC,OAAO;IACPC,QAAQ;IACRC,OAAO;IACPC,UAAU;IACVC,QAAQ;IACRC,SAAS;AACX;AAEO,mBAAMC,WAAAA,GAAahB,OAAMiB,UAAU,CAAmC,CAACC,OAAOC;IACnF,MAAM,EACJC,KAAK,EACLC,SAAS,EACTC,QAAQ,EACRC,KAAK,EACLC,SAAS,EACTC,OAAO,EACPC,SAAS,EACTC,SAAS,EACTC,QAAQ,EACRC,MAAM,EACNC,OAAO,IAAI,EACZ,GAAGZ;IAEJ,MAAMa,MAAM,OAAOb,MAAMc,QAAQ,KAAK,WAAW,SAASC;IAE1D,MAAMC,iBAAa9B,+BAAAA;IACnB,MAAM+B,mBAAe7B,iCAAAA;IACrB,MAAM8B,aAAS/B,2BAAAA;IAEf,MAAMgC,OAAOnB,MAAMmB,IAAI,GAAG7B,OAAO,CAACU,MAAMmB,IAAI,CAAC,GAAGnB,MAAMmB,IAAI;IAE1D,MAAMC,WAAWnC,qBAAAA,CAAKoC,MAAM,CAC1BtC,6CAAAA,EAAyB,QAAQ;QAC/BkB;QACA,GAAGD,KAAK;QACRa;QACAS,eAAWtC,6BAAAA,EACTK,qBACA8B,QAAQH,UAAU,CAACG,KAAK,EACxBR,UAAUM,YAAY,CAACN,OAAO,EAC9BC,SAAS,SAASM,OAAOK,MAAM,EAC/Bb,YAAYQ,OAAOR,QAAQ,EAC3BR,UAAU,YAAYgB,OAAOM,WAAW,EACxCtB,UAAU,SAASgB,OAAOO,QAAQ,EAClCvB,UAAU,aAAagB,OAAOQ,YAAY,EAE1CvB,aAAae,OAAOS,OAAO,EAC3BxB,cAAc,QAAQe,OAAOU,SAAS,EACtCxB,YAAYc,OAAOd,QAAQ,EAC3BC,SAASa,OAAOb,KAAK,EACrBC,aAAaY,OAAOZ,SAAS,EAC7BC,WAAWW,OAAOX,OAAO,EACzBC,aAAaU,OAAOV,SAAS,EAC7BC,aAAaS,OAAOT,SAAS,EAC7BT,MAAMsB,SAAS;IAEnB,IACA;QAAEO,aAAa;IAAO;IAGxB,OAAA,WAAA,OAAO,eAAA,EAACT,UAAAA,CAAAA;AACV,GAAG;AAEHtB,WAAWgC,WAAW,GAAG"}
@@ -6,17 +6,17 @@ Object.defineProperty(exports, "__esModule", {
6
6
  function _export(target, all) {
7
7
  for(var name in all)Object.defineProperty(target, name, {
8
8
  enumerable: true,
9
- get: all[name]
9
+ get: Object.getOwnPropertyDescriptor(all, name).get
10
10
  });
11
11
  }
12
12
  _export(exports, {
13
- useSizeStyles: function() {
13
+ get useSizeStyles () {
14
14
  return useSizeStyles;
15
15
  },
16
- useStyles: function() {
16
+ get useStyles () {
17
17
  return useStyles;
18
18
  },
19
- useWeightStyles: function() {
19
+ get useWeightStyles () {
20
20
  return useWeightStyles;
21
21
  }
22
22
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["StyledText.styles.js"],"sourcesContent":["'use client';\nimport { makeStyles, tokens } from \"@fluentui/react-components\";\nexport const useSizeStyles = makeStyles({\n base100: {\n fontSize: tokens.fontSizeBase100,\n lineHeight: tokens.lineHeightBase100\n },\n base200: {\n fontSize: tokens.fontSizeBase200,\n lineHeight: tokens.lineHeightBase200\n },\n base300: {\n fontSize: tokens.fontSizeBase300,\n lineHeight: tokens.lineHeightBase300\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});\nexport const useWeightStyles = makeStyles({\n light: {\n fontWeight: 200\n },\n semilight: {\n fontWeight: 300\n },\n regular: {\n fontWeight: 400\n },\n medium: {\n fontWeight: 500\n },\n semibold: {\n fontWeight: 600\n },\n bold: {\n fontWeight: 700\n }\n});\nexport const useStyles = makeStyles({\n mention: {\n color: tokens.colorBrandForegroundLink\n },\n mentionMe: {\n color: tokens.colorPalettePumpkinBorderActive,\n fontWeight: 700\n },\n disabled: {\n color: tokens.colorNeutralForegroundDisabled\n },\n error: {\n color: tokens.colorPaletteRedForeground3\n },\n important: {\n color: tokens.colorPaletteDarkOrangeForeground3,\n fontWeight: 700\n },\n success: {\n color: tokens.colorPaletteGreenForeground3\n },\n temporary: {\n fontStyle: 'italic'\n },\n timestamp: {\n color: tokens.colorNeutralForeground3\n },\n nowrap: {\n whiteSpace: 'nowrap',\n overflow: 'hidden'\n },\n truncate: {\n textOverflow: 'ellipsis'\n },\n alignCenter: {\n textAlign: 'center'\n },\n alignEnd: {\n textAlign: 'end'\n },\n alignJustify: {\n textAlign: 'justify'\n }\n});\n"],"names":["__styles","tokens","useSizeStyles","base100","Be2twd7","Bg96gwp","base200","base300","base400","base500","base600","hero700","d","useWeightStyles","light","Bhrd7zp","semilight","regular","medium","semibold","bold","useStyles","mention","sj55zd","mentionMe","disabled","error","important","success","temporary","B80ckks","timestamp","nowrap","Huce71","B68tc82","Bmxbyg5","Bpg54ce","truncate","ygn44y","alignCenter","fsow6f","alignEnd","alignJustify","p"],"mappings":"AAAA,YAAY;;;;;;;;;;;;IAECE,aAAa;;;aAkDJ;eAATmB;;mBApBe;eAAfR;;;iCA/BsB,4BAA4B;AACxD,sBAAmB,WAAA,OAAGb,yBAAA,EAAA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IAAAI,SAAA,EAAA;QAAAJ,MAAA,EAAA;QAAAR,OAAA,EAAA;IAAA;IAAAa,OAAA,EAAA;QAAAL,MAAA,EAAA;IAAA;IAAAM,SAAA,EAAA;QAAAC,OAAA,EAAA;IAAA;IAAAC,SAAA,EAAA;QAAAR,MAAA,EAAA;IAAA;IAAAS,MAAA,EAAA;QAAAC,MAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,OAAA,EAAA;IAAA;IAAAC,QAAA,EAAA;QAAAC,MAAA,EAAA;IAAA;IAAAC,WAAA,EAAA;QAAAC,MAAA,EAAA;IAAA;IAAAC,QAAA,EAAA;QAAAD,MAAA,EAAA;IAAA;IAAAE,YAAA,EAAA;QAAAF,MAAA,EAAA;IAAA;AAAA,GAAA;IAAA5B,CAAA,EAAA;QAAA;QAAA;QAAA;QAAA;QAAA;QAAA;QAAA;QAAA;QAAA;QAAA;QAAA;YAAA;YAAA;gBAAA+B,CAAA,EAAA,CAAA;YAAA;SAAA;QAAA;QAAA;QAAA;QAAA;KAAA;AAAA,CA2CxB,CAAC"}
1
+ {"version":3,"sources":["StyledText.styles.js"],"sourcesContent":["'use client';\nimport { makeStyles, tokens } from \"@fluentui/react-components\";\nexport const useSizeStyles = makeStyles({\n base100: {\n fontSize: tokens.fontSizeBase100,\n lineHeight: tokens.lineHeightBase100\n },\n base200: {\n fontSize: tokens.fontSizeBase200,\n lineHeight: tokens.lineHeightBase200\n },\n base300: {\n fontSize: tokens.fontSizeBase300,\n lineHeight: tokens.lineHeightBase300\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});\nexport const useWeightStyles = makeStyles({\n light: {\n fontWeight: 200\n },\n semilight: {\n fontWeight: 300\n },\n regular: {\n fontWeight: 400\n },\n medium: {\n fontWeight: 500\n },\n semibold: {\n fontWeight: 600\n },\n bold: {\n fontWeight: 700\n }\n});\nexport const useStyles = makeStyles({\n mention: {\n color: tokens.colorBrandForegroundLink\n },\n mentionMe: {\n color: tokens.colorPalettePumpkinBorderActive,\n fontWeight: 700\n },\n disabled: {\n color: tokens.colorNeutralForegroundDisabled\n },\n error: {\n color: tokens.colorPaletteRedForeground3\n },\n important: {\n color: tokens.colorPaletteDarkOrangeForeground3,\n fontWeight: 700\n },\n success: {\n color: tokens.colorPaletteGreenForeground3\n },\n temporary: {\n fontStyle: 'italic'\n },\n timestamp: {\n color: tokens.colorNeutralForeground3\n },\n nowrap: {\n whiteSpace: 'nowrap',\n overflow: 'hidden'\n },\n truncate: {\n textOverflow: 'ellipsis'\n },\n alignCenter: {\n textAlign: 'center'\n },\n alignEnd: {\n textAlign: 'end'\n },\n alignJustify: {\n textAlign: 'justify'\n }\n});\n"],"names":["__styles","tokens","useSizeStyles","base100","Be2twd7","Bg96gwp","base200","base300","base400","base500","base600","hero700","d","useWeightStyles","light","Bhrd7zp","semilight","regular","medium","semibold","bold","useStyles","mention","sj55zd","mentionMe","disabled","error","important","success","temporary","B80ckks","timestamp","nowrap","Huce71","B68tc82","Bmxbyg5","Bpg54ce","truncate","ygn44y","alignCenter","fsow6f","alignEnd","alignJustify","p"],"mappings":"AAAA,YAAY;;;;;;;;;;;;QAECE,aAAa;;;QAkDbmB,SAAS;;;;eApBTR,eAAe;;;iCA/BO,4BAA4B;AACxD,sBAAmB,WAAA,OAAGb,yBAAA,EAAA;IAAAG,OAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,OAAA,EAAA;IAAA;IAAAC,OAAA,EAAA;QAAAF,OAAA,EAAA;QAAAC,OAAA,EAAA;IAAA;IAAAE,OAAA,EAAA;QAAAH,OAAA,EAAA;QAAAC,OAAA,EAAA;IAAA;IAAAG,OA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AS,MAAA,EAAA;QAAAC,MAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,OAAA,EAAA;IAAA;IAAAC,QAAA,EAAA;QAAAC,MAAA,EAAA;IAAA;IAAAC,WAAA,EAAA;QAAAC,MAAA,EAAA;IAAA;IAAAC,QAAA,EAAA;QAAAD,MAAA,EAAA;IAAA;IAAAE,YAAA,EAAA;QAAAF,MAAA,EAAA;IAAA;AAAA,GAAA;IAAA5B,CAAA,EAAA;QAAA;QAAA;QAAA;QAAA;QAAA;QAAA;QAAA;QAAA;QAAA;QAAA;QAAA;YAAA;YAAA;gBAAA+B,CAAA,EAAA,CAAA;YAAA;SAAA;QAAA;QAAA;QAAA;QAAA;KAAA;AAAA,CA2CxB,CAAC"}
@@ -6,17 +6,17 @@ Object.defineProperty(exports, "__esModule", {
6
6
  function _export(target, all) {
7
7
  for(var name in all)Object.defineProperty(target, name, {
8
8
  enumerable: true,
9
- get: all[name]
9
+ get: Object.getOwnPropertyDescriptor(all, name).get
10
10
  });
11
11
  }
12
12
  _export(exports, {
13
- useSizeStyles: function() {
13
+ get useSizeStyles () {
14
14
  return useSizeStyles;
15
15
  },
16
- useStyles: function() {
16
+ get useStyles () {
17
17
  return useStyles;
18
18
  },
19
- useWeightStyles: function() {
19
+ get useWeightStyles () {
20
20
  return useWeightStyles;
21
21
  }
22
22
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/StyledText/StyledText.styles.ts"],"sourcesContent":["'use client';\n\nimport { makeStyles, tokens } from '@fluentui/react-components';\n\nexport const useSizeStyles = makeStyles({\n base100: {\n fontSize: tokens.fontSizeBase100,\n lineHeight: tokens.lineHeightBase100,\n },\n base200: {\n fontSize: tokens.fontSizeBase200,\n lineHeight: tokens.lineHeightBase200,\n },\n base300: {\n fontSize: tokens.fontSizeBase300,\n lineHeight: tokens.lineHeightBase300,\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});\n\nexport const useWeightStyles = makeStyles({\n light: {\n fontWeight: 200,\n },\n semilight: {\n fontWeight: 300,\n },\n regular: {\n fontWeight: 400,\n },\n medium: {\n fontWeight: 500,\n },\n semibold: {\n fontWeight: 600,\n },\n bold: {\n fontWeight: 700,\n },\n});\n\nexport const useStyles = makeStyles({\n mention: {\n color: tokens.colorBrandForegroundLink,\n },\n mentionMe: {\n color: tokens.colorPalettePumpkinBorderActive,\n fontWeight: 700,\n },\n disabled: {\n color: tokens.colorNeutralForegroundDisabled,\n },\n error: {\n color: tokens.colorPaletteRedForeground3,\n },\n important: {\n color: tokens.colorPaletteDarkOrangeForeground3,\n fontWeight: 700,\n },\n success: {\n color: tokens.colorPaletteGreenForeground3,\n },\n temporary: {\n fontStyle: 'italic',\n },\n timestamp: {\n color: tokens.colorNeutralForeground3,\n },\n nowrap: {\n whiteSpace: 'nowrap',\n overflow: 'hidden',\n },\n truncate: {\n textOverflow: 'ellipsis',\n },\n alignCenter: {\n textAlign: 'center',\n },\n alignEnd: {\n textAlign: 'end',\n },\n alignJustify: {\n textAlign: 'justify',\n },\n});\n"],"names":["makeStyles","tokens","useSizeStyles","base100","fontSize","fontSizeBase100","lineHeight","lineHeightBase100","base200","fontSizeBase200","lineHeightBase200","base300","fontSizeBase300","lineHeightBase300","base400","fontSizeBase400","lineHeightBase400","base500","fontSizeBase500","lineHeightBase500","base600","fontSizeBase600","lineHeightBase600","hero700","fontSizeHero700","lineHeightHero700","useWeightStyles","light","fontWeight","semilight","regular","medium","semibold","bold","useStyles","mention","color","colorBrandForegroundLink","mentionMe","colorPalettePumpkinBorderActive","disabled","colorNeutralForegroundDisabled","error","colorPaletteRedForeground3","important","colorPaletteDarkOrangeForeground3","success","colorPaletteGreenForeground3","temporary","fontStyle","timestamp","colorNeutralForeground3","nowrap","whiteSpace","overflow","truncate","textOverflow","alignCenter","textAlign","alignEnd","alignJustify"],"mappings":"AAAA;;;;;;;;;;;;IAIaE,aAAAA;;;IAoDAgC,SAAAA;;;mBArBAR;;;;iCAjCsB,6BAA6B;AAEzD,0BAAsB1B,2BAAAA,EAAW;IACtCG,SAAS;QACPC,UAAUH,uBAAAA,CAAOI,eAAe;QAChCC,YAAYL,uBAAAA,CAAOM,iBAAiB;IACtC;IACAC,SAAS;QACPJ,UAAUH,uBAAAA,CAAOQ,eAAe;QAChCH,YAAYL,uBAAAA,CAAOS,iBAAiB;IACtC;IACAC,SAAS;QACPP,UAAUH,uBAAAA,CAAOW,eAAe;QAChCN,YAAYL,uBAAAA,CAAOY,iBAAiB;IACtC;IACAC,SAAS;QACPV,UAAUH,uBAAAA,CAAOc,eAAe;QAChCT,YAAYL,uBAAAA,CAAOe,iBAAiB;IACtC;IACAC,SAAS;QACPb,UAAUH,uBAAAA,CAAOiB,eAAe;QAChCZ,YAAYL,uBAAAA,CAAOkB,iBAAiB;IACtC;IACAC,SAAS;QACPhB,UAAUH,uBAAAA,CAAOoB,eAAe;QAChCf,YAAYL,uBAAAA,CAAOqB,iBAAiB;IACtC;IACAC,SAAS;QACPnB,UAAUH,uBAAAA,CAAOuB,eAAe;QAChClB,YAAYL,uBAAAA,CAAOwB,iBAAiB;IACtC;AACF,GAAG;AAEI,MAAMC,sBAAkB1B,2BAAAA,EAAW;IACxC2B,OAAO;QACLC,YAAY;IACd;IACAC,WAAW;QACTD,YAAY;IACd;IACAE,SAAS;QACPF,YAAY;IACd;IACAG,QAAQ;QACNH,YAAY;IACd;IACAI,UAAU;QACRJ,YAAY;IACd;IACAK,MAAM;QACJL,YAAY;IACd;AACF,GAAG;AAEI,sBAAkB5B,2BAAAA,EAAW;IAClCmC,SAAS;QACPC,OAAOnC,uBAAAA,CAAOoC,wBAAwB;IACxC;IACAC,WAAW;QACTF,OAAOnC,uBAAAA,CAAOsC,+BAA+B;QAC7CX,YAAY;IACd;IACAY,UAAU;QACRJ,OAAOnC,uBAAAA,CAAOwC,8BAA8B;IAC9C;IACAC,OAAO;QACLN,OAAOnC,uBAAAA,CAAO0C,0BAA0B;IAC1C;IACAC,WAAW;QACTR,OAAOnC,uBAAAA,CAAO4C,iCAAiC;QAC/CjB,YAAY;IACd;IACAkB,SAAS;QACPV,OAAOnC,uBAAAA,CAAO8C,4BAA4B;IAC5C;IACAC,WAAW;QACTC,WAAW;IACb;IACAC,WAAW;QACTd,OAAOnC,uBAAAA,CAAOkD,uBAAuB;IACvC;IACAC,QAAQ;QACNC,YAAY;QACZC,UAAU;IACZ;IACAC,UAAU;QACRC,cAAc;IAChB;IACAC,aAAa;QACXC,WAAW;IACb;IACAC,UAAU;QACRD,WAAW;IACb;IACAE,cAAc;QACZF,WAAW;IACb;AACF,GAAG"}
1
+ {"version":3,"sources":["../../../src/components/StyledText/StyledText.styles.ts"],"sourcesContent":["'use client';\n\nimport { makeStyles, tokens } from '@fluentui/react-components';\n\nexport const useSizeStyles = makeStyles({\n base100: {\n fontSize: tokens.fontSizeBase100,\n lineHeight: tokens.lineHeightBase100,\n },\n base200: {\n fontSize: tokens.fontSizeBase200,\n lineHeight: tokens.lineHeightBase200,\n },\n base300: {\n fontSize: tokens.fontSizeBase300,\n lineHeight: tokens.lineHeightBase300,\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});\n\nexport const useWeightStyles = makeStyles({\n light: {\n fontWeight: 200,\n },\n semilight: {\n fontWeight: 300,\n },\n regular: {\n fontWeight: 400,\n },\n medium: {\n fontWeight: 500,\n },\n semibold: {\n fontWeight: 600,\n },\n bold: {\n fontWeight: 700,\n },\n});\n\nexport const useStyles = makeStyles({\n mention: {\n color: tokens.colorBrandForegroundLink,\n },\n mentionMe: {\n color: tokens.colorPalettePumpkinBorderActive,\n fontWeight: 700,\n },\n disabled: {\n color: tokens.colorNeutralForegroundDisabled,\n },\n error: {\n color: tokens.colorPaletteRedForeground3,\n },\n important: {\n color: tokens.colorPaletteDarkOrangeForeground3,\n fontWeight: 700,\n },\n success: {\n color: tokens.colorPaletteGreenForeground3,\n },\n temporary: {\n fontStyle: 'italic',\n },\n timestamp: {\n color: tokens.colorNeutralForeground3,\n },\n nowrap: {\n whiteSpace: 'nowrap',\n overflow: 'hidden',\n },\n truncate: {\n textOverflow: 'ellipsis',\n },\n alignCenter: {\n textAlign: 'center',\n },\n alignEnd: {\n textAlign: 'end',\n },\n alignJustify: {\n textAlign: 'justify',\n },\n});\n"],"names":["makeStyles","tokens","useSizeStyles","base100","fontSize","fontSizeBase100","lineHeight","lineHeightBase100","base200","fontSizeBase200","lineHeightBase200","base300","fontSizeBase300","lineHeightBase300","base400","fontSizeBase400","lineHeightBase400","base500","fontSizeBase500","lineHeightBase500","base600","fontSizeBase600","lineHeightBase600","hero700","fontSizeHero700","lineHeightHero700","useWeightStyles","light","fontWeight","semilight","regular","medium","semibold","bold","useStyles","mention","color","colorBrandForegroundLink","mentionMe","colorPalettePumpkinBorderActive","disabled","colorNeutralForegroundDisabled","error","colorPaletteRedForeground3","important","colorPaletteDarkOrangeForeground3","success","colorPaletteGreenForeground3","temporary","fontStyle","timestamp","colorNeutralForeground3","nowrap","whiteSpace","overflow","truncate","textOverflow","alignCenter","textAlign","alignEnd","alignJustify"],"mappings":"AAAA;;;;;;;;;;;;QAIaE;;;QAoDAgC;;;;eArBAR;;;iCAjCsB,6BAA6B;AAEzD,0BAAsB1B,2BAAAA,EAAW;IACtCG,SAAS;QACPC,UAAUH,uBAAAA,CAAOI,eAAe;QA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,4BAA4B;IAC5C;IACAC,WAAW;QACTC,WAAW;IACb;IACAC,WAAW;QACTd,OAAOnC,uBAAAA,CAAOkD,uBAAuB;IACvC;IACAC,QAAQ;QACNC,YAAY;QACZC,UAAU;IACZ;IACAC,UAAU;QACRC,cAAc;IAChB;IACAC,aAAa;QACXC,WAAW;IACb;IACAC,UAAU;QACRD,WAAW;IACb;IACAE,cAAc;QACZF,WAAW;IACb;AACF,GAAG"}
@@ -5,23 +5,23 @@ Object.defineProperty(exports, "__esModule", {
5
5
  function _export(target, all) {
6
6
  for(var name in all)Object.defineProperty(target, name, {
7
7
  enumerable: true,
8
- get: all[name]
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- StyledText: function() {
12
+ get StyledText () {
13
13
  return _StyledText.StyledText;
14
14
  },
15
- styledTextClassName: function() {
15
+ get styledTextClassName () {
16
16
  return _StyledText.styledTextClassName;
17
17
  },
18
- useSizeStyles: function() {
18
+ get useSizeStyles () {
19
19
  return _StyledTextstyles.useSizeStyles;
20
20
  },
21
- useStyles: function() {
21
+ get useStyles () {
22
22
  return _StyledTextstyles.useStyles;
23
23
  },
24
- useWeightStyles: function() {
24
+ get useWeightStyles () {
25
25
  return _StyledTextstyles.useWeightStyles;
26
26
  }
27
27
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/StyledText/index.tsx"],"sourcesContent":["export type { StyledTextProps, StyledTextSlots } from './StyledText';\nexport { StyledText, styledTextClassName } from './StyledText';\nexport { useSizeStyles, useStyles, useWeightStyles } from './StyledText.styles';\n"],"names":["StyledText","styledTextClassName","useSizeStyles","useStyles","useWeightStyles"],"mappings":";;;;;;;;;;;;eACSA,sBAAU;;;eAAEC,+BAAmB;;;eAC/BC,+BAAa;;;eAAEC,2BAAS;;;eAAEC,iCAAe;;;4BADF,kBAAe;kCACL,yBAAsB"}
1
+ {"version":3,"sources":["../../../src/components/StyledText/index.tsx"],"sourcesContent":["export type { StyledTextProps, StyledTextSlots } from './StyledText';\nexport { StyledText, styledTextClassName } from './StyledText';\nexport { useSizeStyles, useStyles, useWeightStyles } from './StyledText.styles';\n"],"names":["StyledText","styledTextClassName","useSizeStyles","useStyles","useWeightStyles"],"mappings":";;;;;;;;;;;;eACSA,sBAAU;;;eAAEC,+BAAmB;;;eAC/BC,+BAAa;;;eAAEC,2BAAS;;;eAAEC,iCAAe;;;4BADF,kBAAe;kCACL,yBAAsB"}
@@ -6,14 +6,14 @@ Object.defineProperty(exports, "__esModule", {
6
6
  function _export(target, all) {
7
7
  for(var name in all)Object.defineProperty(target, name, {
8
8
  enumerable: true,
9
- get: all[name]
9
+ get: Object.getOwnPropertyDescriptor(all, name).get
10
10
  });
11
11
  }
12
12
  _export(exports, {
13
- Video: function() {
13
+ get Video () {
14
14
  return Video;
15
15
  },
16
- videoClassName: function() {
16
+ get videoClassName () {
17
17
  return videoClassName;
18
18
  }
19
19
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/Video/Video.tsx"],"sourcesContent":["'use client';\n\nimport { mergeClasses, useMergedRefs } from '@fluentui/react-components';\nimport * as React from 'react';\nimport { useVideoStyles } from './Video.styles';\n\nexport const videoClassName = 'fui-Video';\n\n/**\n * Video component props\n */\nexport interface VideoProps extends React.VideoHTMLAttributes<HTMLVideoElement> {\n /**\n * The source URL of the video\n */\n src: string;\n\n /**\n * Whether the video should start playing automatically\n * @default false\n */\n autoPlay?: boolean;\n\n /**\n * Whether the video should display controls\n * @default true\n */\n controls?: boolean;\n\n /**\n * Whether the video should loop\n */\n loop?: boolean;\n\n /**\n * Whether the video should be muted\n */\n muted?: boolean;\n\n /**\n * The URL of an image to display while the video is loading\n */\n poster?: string;\n}\n\nexport const Video = React.forwardRef<HTMLVideoElement, VideoProps>((props, ref) => {\n const { className, muted, ...rest } = props;\n\n const videoRef = React.useRef<HTMLVideoElement>(null);\n\n const classes = useVideoStyles();\n React.useEffect(() => {\n // this is a workaround for a potential memory leak in Chromium which retains a Detached HTMLVideoElement when <video autoplay> is unmounted\n // https://bugs.chromium.org/p/chromium/issues/detail?id=969049\n return () => {\n if (videoRef?.current) {\n // we want to perform the cleanup on the latest element rendered\n // eslint-disable-next-line react-hooks/exhaustive-deps\n videoRef.current.src = '';\n }\n };\n }, [videoRef]);\n\n React.useEffect(() => {\n // React doesn't guarantee that props will be set:\n // https://github.com/facebook/react/issues/10389\n if (videoRef.current) {\n videoRef.current.muted = !!muted;\n }\n }, [muted]);\n\n return (\n <video\n ref={useMergedRefs(ref, videoRef) as React.Ref<HTMLVideoElement>}\n role=\"application\"\n className={mergeClasses(videoClassName, classes.root, className)}\n controls={true}\n autoPlay={false}\n muted={muted}\n {...rest}\n />\n );\n});\n\nVideo.displayName = 'Video';\n"],"names":["mergeClasses","useMergedRefs","React","useVideoStyles","videoClassName","Video","forwardRef","props","ref","className","muted","rest","videoRef","useRef","classes","useEffect","current","src","video","role","root","controls","autoPlay","displayName"],"mappings":"AAAA;;;;;;;;;;;;IA6CaK,KAAAA;;;kBAvCAD;;;;;iCAJ+B,6BAA6B;iEAClD,QAAQ;6BACA,oBAAiB;AAEzC,MAAMA,iBAAiB,YAAY;AAuCnC,cAAMC,WAAAA,GAAQH,OAAMI,UAAU,CAA+B,CAACC,OAAOC;IAC1E,MAAM,EAAEC,SAAS,EAAEC,KAAK,EAAE,GAAGC,MAAM,GAAGJ;IAEtC,MAAMK,WAAWV,OAAMW,MAAM,CAAmB;IAEhD,MAAMC,cAAUX,2BAAAA;IAChBD,OAAMa,SAAS,CAAC;QACd,4IAA4I;QAC5I,+DAA+D;QAC/D,OAAO;YACL,IAAIH,aAAAA,QAAAA,aAAAA,KAAAA,IAAAA,KAAAA,IAAAA,SAAUI,OAAO,EAAE;gBACrB,gEAAgE;gBAChE,uDAAuD;gBACvDJ,SAASI,OAAO,CAACC,GAAG,GAAG;YACzB;QACF;IACF,GAAG;QAACL;KAAS;IAEbV,OAAMa,SAAS,CAAC;QACd,kDAAkD;QAClD,iDAAiD;QACjD,IAAIH,SAASI,OAAO,EAAE;YACpBJ,SAASI,OAAO,CAACN,KAAK,GAAG,CAAC,CAACA;QAC7B;IACF,GAAG;QAACA;KAAM;IAEV,OAAA,WAAA,GACE,OAAA,aAAA,CAACQ,SAAAA;QACCV,SAAKP,8BAAAA,EAAcO,KAAKI;QACxBO,MAAK;QACLV,eAAWT,6BAAAA,EAAaI,gBAAgBU,QAAQM,IAAI,EAAEX;QACtDY,UAAU;QACVC,UAAU;QACVZ,OAAOA;QACN,GAAGC,IAAI;;AAGd,GAAG;AAEHN,MAAMkB,WAAW,GAAG"}
1
+ {"version":3,"sources":["../../../src/components/Video/Video.tsx"],"sourcesContent":["'use client';\n\nimport { mergeClasses, useMergedRefs } from '@fluentui/react-components';\nimport * as React from 'react';\nimport { useVideoStyles } from './Video.styles';\n\nexport const videoClassName = 'fui-Video';\n\n/**\n * Video component props\n */\nexport interface VideoProps extends React.VideoHTMLAttributes<HTMLVideoElement> {\n /**\n * The source URL of the video\n */\n src: string;\n\n /**\n * Whether the video should start playing automatically\n * @default false\n */\n autoPlay?: boolean;\n\n /**\n * Whether the video should display controls\n * @default true\n */\n controls?: boolean;\n\n /**\n * Whether the video should loop\n */\n loop?: boolean;\n\n /**\n * Whether the video should be muted\n */\n muted?: boolean;\n\n /**\n * The URL of an image to display while the video is loading\n */\n poster?: string;\n}\n\nexport const Video = React.forwardRef<HTMLVideoElement, VideoProps>((props, ref) => {\n const { className, muted, ...rest } = props;\n\n const videoRef = React.useRef<HTMLVideoElement>(null);\n\n const classes = useVideoStyles();\n React.useEffect(() => {\n // this is a workaround for a potential memory leak in Chromium which retains a Detached HTMLVideoElement when <video autoplay> is unmounted\n // https://bugs.chromium.org/p/chromium/issues/detail?id=969049\n return () => {\n if (videoRef?.current) {\n // we want to perform the cleanup on the latest element rendered\n // eslint-disable-next-line react-hooks/exhaustive-deps\n videoRef.current.src = '';\n }\n };\n }, [videoRef]);\n\n React.useEffect(() => {\n // React doesn't guarantee that props will be set:\n // https://github.com/facebook/react/issues/10389\n if (videoRef.current) {\n videoRef.current.muted = !!muted;\n }\n }, [muted]);\n\n return (\n <video\n ref={useMergedRefs(ref, videoRef) as React.Ref<HTMLVideoElement>}\n role=\"application\"\n className={mergeClasses(videoClassName, classes.root, className)}\n controls={true}\n autoPlay={false}\n muted={muted}\n {...rest}\n />\n );\n});\n\nVideo.displayName = 'Video';\n"],"names":["mergeClasses","useMergedRefs","React","useVideoStyles","videoClassName","Video","forwardRef","props","ref","className","muted","rest","videoRef","useRef","classes","useEffect","current","src","video","role","root","controls","autoPlay","displayName"],"mappings":"AAAA;;;;;;;;;;;;QA6CaK;;;;;;;;iCA3C+B,6BAA6B;iEAClD,QAAQ;6BACA,oBAAiB;AAEzC,MAAMD,iBAAiB,YAAY;AAuCnC,cAAMC,WAAAA,GAAQH,OAAMI,UAAU,CAA+B,CAACC,OAAOC;IAC1E,MAAM,EAAEC,SAAS,EAAEC,KAAK,EAAE,GAAGC,MAAM,GAAGJ;IAEtC,MAAMK,WAAWV,OAAMW,MAAM,CAAmB;IAEhD,MAAMC,cAAUX,2BAAAA;IAChBD,OAAMa,SAAS,CAAC;QACd,4IAA4I;QAC5I,+DAA+D;QAC/D,OAAO;YACL,IAAIH,aAAAA,QAAAA,aAAAA,KAAAA,IAAAA,KAAAA,IAAAA,SAAUI,OAAO,EAAE;gBACrB,gEAAgE;gBAChE,uDAAuD;gBACvDJ,SAASI,OAAO,CAACC,GAAG,GAAG;YACzB;QACF;IACF,GAAG;QAACL;KAAS;IAEbV,OAAMa,SAAS,CAAC;QACd,kDAAkD;QAClD,iDAAiD;QACjD,IAAIH,SAASI,OAAO,EAAE;YACpBJ,SAASI,OAAO,CAACN,KAAK,GAAG,CAAC,CAACA;QAC7B;IACF,GAAG;QAACA;KAAM;IAEV,OAAA,WAAA,GACE,OAAA,aAAA,CAACQ,SAAAA;QACCV,SAAKP,8BAAAA,EAAcO,KAAKI;QACxBO,MAAK;QACLV,eAAWT,6BAAAA,EAAaI,gBAAgBU,QAAQM,IAAI,EAAEX;QACtDY,UAAU;QACVC,UAAU;QACVZ,OAAOA;QACN,GAAGC,IAAI;;AAGd,GAAG;AAEHN,MAAMkB,WAAW,GAAG"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/Video/Video.styles.ts"],"sourcesContent":["'use client';\n\nimport { makeStyles } from '@fluentui/react-components';\n\nexport const useVideoStyles = makeStyles({\n root: {\n display: 'inline-block',\n verticalAlign: 'middle',\n width: '100%',\n height: 'auto',\n },\n});\n"],"names":["makeStyles","useVideoStyles","root","display","verticalAlign","width","height"],"mappings":"AAAA;;;;;;;;;;;iCAE2B,6BAA6B;AAEjD,MAAMC,qBAAiBD,2BAAAA,EAAW;IACvCE,MAAM;QACJC,SAAS;QACTC,eAAe;QACfC,OAAO;QACPC,QAAQ;IACV;AACF,GAAG"}
1
+ {"version":3,"sources":["../../../src/components/Video/Video.styles.ts"],"sourcesContent":["'use client';\n\nimport { makeStyles } from '@fluentui/react-components';\n\nexport const useVideoStyles = makeStyles({\n root: {\n display: 'inline-block',\n verticalAlign: 'middle',\n width: '100%',\n height: 'auto',\n },\n});\n"],"names":["makeStyles","useVideoStyles","root","display","verticalAlign","width","height"],"mappings":"AAAA;;;;;;;;;;;iCAE2B,6BAA6B;AAEjD,MAAMC,qBAAiBD,2BAAAA,EAAW;IACvCE,MAAM;QACJC,SAAS;QACTC,eAAe;QACfC,OAAO;QACPC,QAAQ;IACV;AACF,GAAG"}
@@ -5,14 +5,14 @@ Object.defineProperty(exports, "__esModule", {
5
5
  function _export(target, all) {
6
6
  for(var name in all)Object.defineProperty(target, name, {
7
7
  enumerable: true,
8
- get: all[name]
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- Video: function() {
12
+ get Video () {
13
13
  return _Video.Video;
14
14
  },
15
- videoClassName: function() {
15
+ get videoClassName () {
16
16
  return _Video.videoClassName;
17
17
  }
18
18
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/Video/index.ts"],"sourcesContent":["export type { VideoProps } from './Video';\nexport { Video, videoClassName } from './Video';\n"],"names":["Video","videoClassName"],"mappings":";;;;;;;;;;;;eACSA,YAAK;;;eAAEC,qBAAc;;;uBAAQ,aAAU"}
1
+ {"version":3,"sources":["../../../src/components/Video/index.ts"],"sourcesContent":["export type { VideoProps } from './Video';\nexport { Video, videoClassName } from './Video';\n"],"names":["Video","videoClassName"],"mappings":";;;;;;;;;;;;eACSA,YAAK;;;eAAEC,qBAAc;;;uBAAQ,aAAU"}