@fluentui/react-migration-v0-v9 9.75.2-experimental.css-modules.20261113-ba13c87438.0 → 9.75.2-experimental.css-modules-subpath.20261120-0eb82b7e7e.0

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 (154) hide show
  1. package/CHANGELOG.md +13 -13
  2. package/dist/css-modules.d.cts +2 -0
  3. package/dist/css-modules.d.ts +2 -0
  4. package/lib/components/Attachment/AttachmentIcon.module.css +2 -2
  5. package/lib/components/Attachment/AttachmentIcon.styles.js +4 -4
  6. package/lib/components/Attachment/AttachmentIcon.styles.js.map +1 -1
  7. package/lib/components/Attachment/AttachmentIcon.styles.raw.js +3 -3
  8. package/lib/components/Attachment/AttachmentIcon.styles.raw.js.map +1 -1
  9. package/lib/components/List/List/List.module.css +0 -1
  10. package/lib/components/List/ListItem/ListItem.module.css +0 -1
  11. package/lib/css-modules/components/Attachment/Attachment.js +36 -0
  12. package/lib/css-modules/components/Attachment/Attachment.js.map +1 -0
  13. package/lib/css-modules/components/Attachment/AttachmentAction.js +44 -0
  14. package/lib/css-modules/components/Attachment/AttachmentAction.js.map +1 -0
  15. package/lib/css-modules/components/Attachment/AttachmentBody.js +15 -0
  16. package/lib/css-modules/components/Attachment/AttachmentBody.js.map +1 -0
  17. package/lib/css-modules/components/Attachment/AttachmentDescription.js +15 -0
  18. package/lib/css-modules/components/Attachment/AttachmentDescription.js.map +1 -0
  19. package/lib/css-modules/components/Attachment/AttachmentHeader.js +15 -0
  20. package/lib/css-modules/components/Attachment/AttachmentHeader.js.map +1 -0
  21. package/lib/css-modules/components/Attachment/AttachmentIcon.js +15 -0
  22. package/lib/css-modules/components/Attachment/AttachmentIcon.js.map +1 -0
  23. package/lib/css-modules/components/Attachment/index.js +6 -0
  24. package/lib/css-modules/components/Attachment/index.js.map +1 -0
  25. package/lib/css-modules/components/Flex/Flex.js +60 -0
  26. package/lib/css-modules/components/Flex/Flex.js.map +1 -0
  27. package/lib/css-modules/components/Flex/index.js +3 -0
  28. package/lib/css-modules/components/Flex/index.js.map +1 -0
  29. package/lib/css-modules/components/FormField/FormFieldShim.js +42 -0
  30. package/lib/css-modules/components/FormField/FormFieldShim.js.map +1 -0
  31. package/lib/css-modules/components/FormField/index.js +1 -0
  32. package/lib/css-modules/components/FormField/index.js.map +1 -0
  33. package/lib/css-modules/components/Grid/GridShim.js +30 -0
  34. package/lib/css-modules/components/Grid/GridShim.js.map +1 -0
  35. package/lib/css-modules/components/Grid/index.js +3 -0
  36. package/lib/css-modules/components/Grid/index.js.map +1 -0
  37. package/lib/css-modules/components/Input/Input.mixins.js +19 -0
  38. package/lib/css-modules/components/Input/Input.mixins.js.map +1 -0
  39. package/lib/css-modules/components/Input/index.js +1 -0
  40. package/lib/css-modules/components/Input/index.js.map +1 -0
  41. package/lib/css-modules/components/ItemLayout/ItemLayout.js +79 -0
  42. package/lib/css-modules/components/ItemLayout/ItemLayout.js.map +1 -0
  43. package/lib/css-modules/components/ItemLayout/index.js +2 -0
  44. package/lib/css-modules/components/ItemLayout/index.js.map +1 -0
  45. package/lib/css-modules/components/List/List/List.js +15 -0
  46. package/lib/css-modules/components/List/List/List.js.map +1 -0
  47. package/lib/css-modules/components/List/List/index.js +4 -0
  48. package/lib/css-modules/components/List/List/index.js.map +1 -0
  49. package/lib/css-modules/components/List/ListItem/ListItem.js +13 -0
  50. package/lib/css-modules/components/List/ListItem/ListItem.js.map +1 -0
  51. package/lib/css-modules/components/List/ListItem/index.js +4 -0
  52. package/lib/css-modules/components/List/ListItem/index.js.map +1 -0
  53. package/lib/css-modules/components/List/ListItem/renderListItem.js +19 -0
  54. package/lib/css-modules/components/List/ListItem/renderListItem.js.map +1 -0
  55. package/lib/css-modules/components/List/index.js +3 -0
  56. package/lib/css-modules/components/List/index.js.map +1 -0
  57. package/lib/css-modules/components/Primitive/Primitive.js +16 -0
  58. package/lib/css-modules/components/Primitive/Primitive.js.map +1 -0
  59. package/lib/css-modules/components/Primitive/index.js +1 -0
  60. package/lib/css-modules/components/Primitive/index.js.map +1 -0
  61. package/lib/css-modules/components/Segment/Segment.js +16 -0
  62. package/lib/css-modules/components/Segment/Segment.js.map +1 -0
  63. package/lib/css-modules/components/Segment/index.js +1 -0
  64. package/lib/css-modules/components/Segment/index.js.map +1 -0
  65. package/lib/css-modules/components/Spinner/SpinnerMigration.mixins.js +14 -0
  66. package/lib/css-modules/components/Spinner/SpinnerMigration.mixins.js.map +1 -0
  67. package/lib/css-modules/components/Spinner/index.js +1 -0
  68. package/lib/css-modules/components/Spinner/index.js.map +1 -0
  69. package/lib/css-modules/components/StyledText/StyledText.js +40 -0
  70. package/lib/css-modules/components/StyledText/StyledText.js.map +1 -0
  71. package/lib/css-modules/components/StyledText/index.js +2 -0
  72. package/lib/css-modules/components/StyledText/index.js.map +1 -0
  73. package/lib/css-modules/components/Video/Video.js +42 -0
  74. package/lib/css-modules/components/Video/Video.js.map +1 -0
  75. package/lib/css-modules/components/Video/index.js +1 -0
  76. package/lib/css-modules/components/Video/index.js.map +1 -0
  77. package/lib/css-modules/index.js +14 -0
  78. package/lib/css-modules/index.js.map +1 -0
  79. package/lib-commonjs/components/Attachment/AttachmentIcon.module.css +2 -2
  80. package/lib-commonjs/components/Attachment/AttachmentIcon.styles.cjs +6 -6
  81. package/lib-commonjs/components/Attachment/AttachmentIcon.styles.cjs.map +1 -1
  82. package/lib-commonjs/components/Attachment/AttachmentIcon.styles.raw.cjs +2 -2
  83. package/lib-commonjs/components/Attachment/AttachmentIcon.styles.raw.cjs.map +1 -1
  84. package/lib-commonjs/components/List/List/List.module.css +0 -1
  85. package/lib-commonjs/components/List/ListItem/ListItem.module.css +0 -1
  86. package/lib-commonjs/css-modules/components/Attachment/Attachment.cjs +61 -0
  87. package/lib-commonjs/css-modules/components/Attachment/Attachment.cjs.map +1 -0
  88. package/lib-commonjs/css-modules/components/Attachment/AttachmentAction.cjs +63 -0
  89. package/lib-commonjs/css-modules/components/Attachment/AttachmentAction.cjs.map +1 -0
  90. package/lib-commonjs/css-modules/components/Attachment/AttachmentBody.cjs +34 -0
  91. package/lib-commonjs/css-modules/components/Attachment/AttachmentBody.cjs.map +1 -0
  92. package/lib-commonjs/css-modules/components/Attachment/AttachmentDescription.cjs +34 -0
  93. package/lib-commonjs/css-modules/components/Attachment/AttachmentDescription.cjs.map +1 -0
  94. package/lib-commonjs/css-modules/components/Attachment/AttachmentHeader.cjs +34 -0
  95. package/lib-commonjs/css-modules/components/Attachment/AttachmentHeader.cjs.map +1 -0
  96. package/lib-commonjs/css-modules/components/Attachment/AttachmentIcon.cjs +34 -0
  97. package/lib-commonjs/css-modules/components/Attachment/AttachmentIcon.cjs.map +1 -0
  98. package/lib-commonjs/css-modules/components/Attachment/index.cjs +60 -0
  99. package/lib-commonjs/css-modules/components/Attachment/index.cjs.map +1 -0
  100. package/lib-commonjs/css-modules/components/Flex/Flex.cjs +79 -0
  101. package/lib-commonjs/css-modules/components/Flex/Flex.cjs.map +1 -0
  102. package/lib-commonjs/css-modules/components/Flex/index.cjs +27 -0
  103. package/lib-commonjs/css-modules/components/Flex/index.cjs.map +1 -0
  104. package/lib-commonjs/css-modules/components/FormField/FormFieldShim.cjs +53 -0
  105. package/lib-commonjs/css-modules/components/FormField/FormFieldShim.cjs.map +1 -0
  106. package/lib-commonjs/css-modules/components/FormField/index.cjs +11 -0
  107. package/lib-commonjs/css-modules/components/FormField/index.cjs.map +1 -0
  108. package/lib-commonjs/css-modules/components/Grid/GridShim.cjs +49 -0
  109. package/lib-commonjs/css-modules/components/Grid/GridShim.cjs.map +1 -0
  110. package/lib-commonjs/css-modules/components/Grid/index.cjs +27 -0
  111. package/lib-commonjs/css-modules/components/Grid/index.cjs.map +1 -0
  112. package/lib-commonjs/css-modules/components/Input/Input.mixins.cjs +29 -0
  113. package/lib-commonjs/css-modules/components/Input/Input.mixins.cjs.map +1 -0
  114. package/lib-commonjs/css-modules/components/Input/index.cjs +11 -0
  115. package/lib-commonjs/css-modules/components/Input/index.cjs.map +1 -0
  116. package/lib-commonjs/css-modules/components/ItemLayout/ItemLayout.cjs +98 -0
  117. package/lib-commonjs/css-modules/components/ItemLayout/ItemLayout.cjs.map +1 -0
  118. package/lib-commonjs/css-modules/components/ItemLayout/index.cjs +23 -0
  119. package/lib-commonjs/css-modules/components/ItemLayout/index.cjs.map +1 -0
  120. package/lib-commonjs/css-modules/components/List/List/List.cjs +26 -0
  121. package/lib-commonjs/css-modules/components/List/List/List.cjs.map +1 -0
  122. package/lib-commonjs/css-modules/components/List/List/index.cjs +31 -0
  123. package/lib-commonjs/css-modules/components/List/List/index.cjs.map +1 -0
  124. package/lib-commonjs/css-modules/components/List/ListItem/ListItem.cjs +24 -0
  125. package/lib-commonjs/css-modules/components/List/ListItem/ListItem.cjs.map +1 -0
  126. package/lib-commonjs/css-modules/components/List/ListItem/index.cjs +31 -0
  127. package/lib-commonjs/css-modules/components/List/ListItem/index.cjs.map +1 -0
  128. package/lib-commonjs/css-modules/components/List/ListItem/renderListItem.cjs +27 -0
  129. package/lib-commonjs/css-modules/components/List/ListItem/renderListItem.cjs.map +1 -0
  130. package/lib-commonjs/css-modules/components/List/index.cjs +48 -0
  131. package/lib-commonjs/css-modules/components/List/index.cjs.map +1 -0
  132. package/lib-commonjs/css-modules/components/Primitive/Primitive.cjs +35 -0
  133. package/lib-commonjs/css-modules/components/Primitive/Primitive.cjs.map +1 -0
  134. package/lib-commonjs/css-modules/components/Primitive/index.cjs +19 -0
  135. package/lib-commonjs/css-modules/components/Primitive/index.cjs.map +1 -0
  136. package/lib-commonjs/css-modules/components/Segment/Segment.cjs +35 -0
  137. package/lib-commonjs/css-modules/components/Segment/Segment.cjs.map +1 -0
  138. package/lib-commonjs/css-modules/components/Segment/index.cjs +19 -0
  139. package/lib-commonjs/css-modules/components/Segment/index.cjs.map +1 -0
  140. package/lib-commonjs/css-modules/components/Spinner/SpinnerMigration.mixins.cjs +24 -0
  141. package/lib-commonjs/css-modules/components/Spinner/SpinnerMigration.mixins.cjs.map +1 -0
  142. package/lib-commonjs/css-modules/components/Spinner/index.cjs +11 -0
  143. package/lib-commonjs/css-modules/components/Spinner/index.cjs.map +1 -0
  144. package/lib-commonjs/css-modules/components/StyledText/StyledText.cjs +59 -0
  145. package/lib-commonjs/css-modules/components/StyledText/StyledText.cjs.map +1 -0
  146. package/lib-commonjs/css-modules/components/StyledText/index.cjs +29 -0
  147. package/lib-commonjs/css-modules/components/StyledText/index.cjs.map +1 -0
  148. package/lib-commonjs/css-modules/components/Video/Video.cjs +61 -0
  149. package/lib-commonjs/css-modules/components/Video/Video.cjs.map +1 -0
  150. package/lib-commonjs/css-modules/components/Video/index.cjs +19 -0
  151. package/lib-commonjs/css-modules/components/Video/index.cjs.map +1 -0
  152. package/lib-commonjs/css-modules/index.cjs +182 -0
  153. package/lib-commonjs/css-modules/index.cjs.map +1 -0
  154. package/package.json +19 -9
@@ -0,0 +1,79 @@
1
+ 'use client';
2
+ import { jsx as _jsx, jsxs as _jsxs } from "@fluentui/react-jsx-runtime/jsx-runtime";
3
+ import * as React from "react";
4
+ import { mergeClasses } from "@fluentui/react-components/css-modules";
5
+ import { getIntrinsicElementProps, slot, assertSlots } from "@fluentui/react-utilities";
6
+ import { useItemLayoutStyles } from "../../../components/ItemLayout/ItemLayout.styles.css.js";
7
+ export const itemLayoutClassName = 'fui-ItemLayout';
8
+ export const ItemLayout = /*#__PURE__*/ React.forwardRef((props, ref)=>{
9
+ const state = {
10
+ components: {
11
+ root: 'div',
12
+ contentWrapper: 'div',
13
+ contentMedia: 'div',
14
+ header: 'div',
15
+ headerMedia: 'div',
16
+ startMedia: 'div',
17
+ endMedia: 'div'
18
+ },
19
+ root: slot.always(getIntrinsicElementProps('div', {
20
+ ...props,
21
+ ref
22
+ }), {
23
+ elementType: 'div'
24
+ }),
25
+ contentMedia: slot.optional(props.contentMedia, {
26
+ elementType: 'div'
27
+ }),
28
+ contentWrapper: slot.optional(props.contentWrapper, {
29
+ renderByDefault: true,
30
+ elementType: 'div'
31
+ }),
32
+ header: slot.optional(props.header, {
33
+ elementType: 'div'
34
+ }),
35
+ headerMedia: slot.optional(props.headerMedia, {
36
+ elementType: 'div'
37
+ }),
38
+ startMedia: slot.optional(props.startMedia, {
39
+ elementType: 'div'
40
+ }),
41
+ endMedia: slot.optional(props.endMedia, {
42
+ elementType: 'div'
43
+ })
44
+ };
45
+ const styles = useItemLayoutStyles();
46
+ state.root.className = mergeClasses(itemLayoutClassName, styles.root, state.root.className);
47
+ if (state.contentWrapper) {
48
+ state.contentWrapper.className = mergeClasses(styles.contentWrapper, state.contentWrapper.className);
49
+ }
50
+ if (state.contentMedia) {
51
+ state.contentMedia.className = mergeClasses(styles.contentMedia, state.contentMedia.className);
52
+ }
53
+ if (state.header) {
54
+ state.header.className = mergeClasses(styles.header, state.header.className);
55
+ }
56
+ if (state.headerMedia) {
57
+ state.headerMedia.className = mergeClasses(styles.headerMedia, state.headerMedia.className);
58
+ }
59
+ if (state.startMedia) {
60
+ state.startMedia.className = mergeClasses(styles.startMedia, state.startMedia.className);
61
+ }
62
+ if (state.endMedia) {
63
+ state.endMedia.className = mergeClasses(styles.endMedia, state.endMedia.className);
64
+ }
65
+ assertSlots(state);
66
+ return /*#__PURE__*/ _jsxs(state.root, {
67
+ children: [
68
+ state.startMedia && /*#__PURE__*/ _jsx(state.startMedia, {}),
69
+ state.header && /*#__PURE__*/ _jsx(state.header, {}),
70
+ state.headerMedia && /*#__PURE__*/ _jsx(state.headerMedia, {}),
71
+ state.contentWrapper && /*#__PURE__*/ _jsx(state.contentWrapper, {
72
+ children: state.root.children
73
+ }),
74
+ state.contentMedia && /*#__PURE__*/ _jsx(state.contentMedia, {}),
75
+ state.endMedia && /*#__PURE__*/ _jsx(state.endMedia, {})
76
+ ]
77
+ });
78
+ });
79
+ ItemLayout.displayName = 'ItemLayout';
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/components/ItemLayout/ItemLayout.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\n\n'use client';\n\nimport * as React from 'react';\nimport { mergeClasses } from '@fluentui/react-components';\nimport type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\nimport { getIntrinsicElementProps, slot, assertSlots } from '@fluentui/react-utilities';\n\nimport { useItemLayoutStyles } from './ItemLayout.styles';\n\ntype ItemLayoutSlots = {\n root: Slot<'div'>;\n\n contentMedia?: Slot<'div'>;\n contentWrapper?: Slot<'div'>;\n\n header?: Slot<'div'>;\n headerMedia?: Slot<'div'>;\n\n startMedia?: Slot<'div'>;\n endMedia?: Slot<'div'>;\n};\n\ntype ItemLayoutProps = ComponentProps<ItemLayoutSlots>;\n\ntype ItemLayoutState = ComponentState<ItemLayoutSlots>;\n\nexport const itemLayoutClassName = 'fui-ItemLayout';\n\nexport const ItemLayout = React.forwardRef<HTMLDivElement, ItemLayoutProps>((props, ref) => {\n const state: ItemLayoutState = {\n components: {\n root: 'div',\n contentWrapper: 'div',\n contentMedia: 'div',\n header: 'div',\n headerMedia: 'div',\n startMedia: 'div',\n endMedia: 'div',\n },\n root: slot.always(getIntrinsicElementProps('div', { ...props, ref }), { elementType: 'div' }),\n contentMedia: slot.optional(props.contentMedia, { elementType: 'div' }),\n contentWrapper: slot.optional(props.contentWrapper, { renderByDefault: true, elementType: 'div' }),\n header: slot.optional(props.header, { elementType: 'div' }),\n headerMedia: slot.optional(props.headerMedia, { elementType: 'div' }),\n startMedia: slot.optional(props.startMedia, { elementType: 'div' }),\n endMedia: slot.optional(props.endMedia, { elementType: 'div' }),\n };\n const styles = useItemLayoutStyles();\n\n state.root.className = mergeClasses(itemLayoutClassName, styles.root, state.root.className);\n if (state.contentWrapper) {\n state.contentWrapper.className = mergeClasses(styles.contentWrapper, state.contentWrapper.className);\n }\n\n if (state.contentMedia) {\n state.contentMedia.className = mergeClasses(styles.contentMedia, state.contentMedia.className);\n }\n\n if (state.header) {\n state.header.className = mergeClasses(styles.header, state.header.className);\n }\n\n if (state.headerMedia) {\n state.headerMedia.className = mergeClasses(styles.headerMedia, state.headerMedia.className);\n }\n\n if (state.startMedia) {\n state.startMedia.className = mergeClasses(styles.startMedia, state.startMedia.className);\n }\n\n if (state.endMedia) {\n state.endMedia.className = mergeClasses(styles.endMedia, state.endMedia.className);\n }\n\n assertSlots<ItemLayoutSlots>(state);\n\n return (\n <state.root>\n {state.startMedia && <state.startMedia />}\n {state.header && <state.header />}\n {state.headerMedia && <state.headerMedia />}\n {state.contentWrapper && <state.contentWrapper>{state.root.children}</state.contentWrapper>}\n {state.contentMedia && <state.contentMedia />}\n {state.endMedia && <state.endMedia />}\n </state.root>\n );\n});\n\nItemLayout.displayName = 'ItemLayout';\n"],"names":["React","mergeClasses","getIntrinsicElementProps","slot","assertSlots","useItemLayoutStyles","itemLayoutClassName","ItemLayout","forwardRef","props","ref","state","components","root","contentWrapper","contentMedia","header","headerMedia","startMedia","endMedia","always","elementType","optional","renderByDefault","styles","className","children","displayName"],"mappings":"AAAA,0BAA0B,GAC1B,iDAAiD,GAEjD;;AAEA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,YAAY,QAAQ,6BAA6B;AAE1D,SAASC,wBAAwB,EAAEC,IAAI,EAAEC,WAAW,QAAQ,4BAA4B;AAExF,SAASC,mBAAmB,QAAQ,yBAAsB;AAmB1D,OAAO,MAAMC,sBAAsB,iBAAiB;AAEpD,OAAO,MAAMC,2BAAaP,MAAMQ,UAAU,CAAkC,CAACC,OAAOC;IAClF,MAAMC,QAAyB;QAC7BC,YAAY;YACVC,MAAM;YACNC,gBAAgB;YAChBC,cAAc;YACdC,QAAQ;YACRC,aAAa;YACbC,YAAY;YACZC,UAAU;QACZ;QACAN,MAAMV,KAAKiB,MAAM,CAAClB,yBAAyB,OAAO;YAAE,GAAGO,KAAK;YAAEC;QAAI,IAAI;YAAEW,aAAa;QAAM;QAC3FN,cAAcZ,KAAKmB,QAAQ,CAACb,MAAMM,YAAY,EAAE;YAAEM,aAAa;QAAM;QACrEP,gBAAgBX,KAAKmB,QAAQ,CAACb,MAAMK,cAAc,EAAE;YAAES,iBAAiB;YAAMF,aAAa;QAAM;QAChGL,QAAQb,KAAKmB,QAAQ,CAACb,MAAMO,MAAM,EAAE;YAAEK,aAAa;QAAM;QACzDJ,aAAad,KAAKmB,QAAQ,CAACb,MAAMQ,WAAW,EAAE;YAAEI,aAAa;QAAM;QACnEH,YAAYf,KAAKmB,QAAQ,CAACb,MAAMS,UAAU,EAAE;YAAEG,aAAa;QAAM;QACjEF,UAAUhB,KAAKmB,QAAQ,CAACb,MAAMU,QAAQ,EAAE;YAAEE,aAAa;QAAM;IAC/D;IACA,MAAMG,SAASnB;IAEfM,MAAME,IAAI,CAACY,SAAS,GAAGxB,aAAaK,qBAAqBkB,OAAOX,IAAI,EAAEF,MAAME,IAAI,CAACY,SAAS;IAC1F,IAAId,MAAMG,cAAc,EAAE;QACxBH,MAAMG,cAAc,CAACW,SAAS,GAAGxB,aAAauB,OAAOV,cAAc,EAAEH,MAAMG,cAAc,CAACW,SAAS;IACrG;IAEA,IAAId,MAAMI,YAAY,EAAE;QACtBJ,MAAMI,YAAY,CAACU,SAAS,GAAGxB,aAAauB,OAAOT,YAAY,EAAEJ,MAAMI,YAAY,CAACU,SAAS;IAC/F;IAEA,IAAId,MAAMK,MAAM,EAAE;QAChBL,MAAMK,MAAM,CAACS,SAAS,GAAGxB,aAAauB,OAAOR,MAAM,EAAEL,MAAMK,MAAM,CAACS,SAAS;IAC7E;IAEA,IAAId,MAAMM,WAAW,EAAE;QACrBN,MAAMM,WAAW,CAACQ,SAAS,GAAGxB,aAAauB,OAAOP,WAAW,EAAEN,MAAMM,WAAW,CAACQ,SAAS;IAC5F;IAEA,IAAId,MAAMO,UAAU,EAAE;QACpBP,MAAMO,UAAU,CAACO,SAAS,GAAGxB,aAAauB,OAAON,UAAU,EAAEP,MAAMO,UAAU,CAACO,SAAS;IACzF;IAEA,IAAId,MAAMQ,QAAQ,EAAE;QAClBR,MAAMQ,QAAQ,CAACM,SAAS,GAAGxB,aAAauB,OAAOL,QAAQ,EAAER,MAAMQ,QAAQ,CAACM,SAAS;IACnF;IAEArB,YAA6BO;IAE7B,qBACE,MAACA,MAAME,IAAI;;YACRF,MAAMO,UAAU,kBAAI,KAACP,MAAMO,UAAU;YACrCP,MAAMK,MAAM,kBAAI,KAACL,MAAMK,MAAM;YAC7BL,MAAMM,WAAW,kBAAI,KAACN,MAAMM,WAAW;YACvCN,MAAMG,cAAc,kBAAI,KAACH,MAAMG,cAAc;0BAAEH,MAAME,IAAI,CAACa,QAAQ;;YAClEf,MAAMI,YAAY,kBAAI,KAACJ,MAAMI,YAAY;YACzCJ,MAAMQ,QAAQ,kBAAI,KAACR,MAAMQ,QAAQ;;;AAGxC,GAAG;AAEHZ,WAAWoB,WAAW,GAAG"}
@@ -0,0 +1,2 @@
1
+ export { ItemLayout, itemLayoutClassName } from "./ItemLayout.js";
2
+ export { useItemLayoutStyles } from "../../../components/ItemLayout/ItemLayout.styles.css.js";
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/components/ItemLayout/index.tsx"],"sourcesContent":["export { ItemLayout, itemLayoutClassName } from './ItemLayout';\nexport { useItemLayoutStyles } from './ItemLayout.styles';\n"],"names":["ItemLayout","itemLayoutClassName","useItemLayoutStyles"],"mappings":"AAAA,SAASA,UAAU,EAAEC,mBAAmB,QAAQ,kBAAe;AAC/D,SAASC,mBAAmB,QAAQ,yBAAsB"}
@@ -0,0 +1,15 @@
1
+ 'use client';
2
+ import * as React from "react";
3
+ import { useCustomStyleHook_unstable } from "@fluentui/react-shared-contexts";
4
+ import { useList_unstable } from "../../../../components/List/List/useList.js";
5
+ import { renderList_unstable } from "../../../../components/List/List/renderList.js";
6
+ import { useListStyles_unstable } from "../../../../components/List/List/useListStyles.styles.css.js";
7
+ import { useListContextValues_unstable } from "../../../../components/List/List/useListContextValues.js";
8
+ export const List = /*#__PURE__*/ React.forwardRef((props, ref)=>{
9
+ const state = useList_unstable(props, ref);
10
+ const contextValues = useListContextValues_unstable(state);
11
+ useListStyles_unstable(state);
12
+ useCustomStyleHook_unstable('useListStyles_unstable')(state);
13
+ return renderList_unstable(state, contextValues);
14
+ });
15
+ List.displayName = 'List';
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/components/List/List/List.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\nimport { useList_unstable } from './useList';\nimport { renderList_unstable } from './renderList';\nimport { useListStyles_unstable } from './useListStyles.styles';\nimport type { ListProps } from './List.types';\nimport { useListContextValues_unstable } from './useListContextValues';\n\nexport const List: ForwardRefComponent<ListProps> = React.forwardRef((props, ref) => {\n const state = useList_unstable(props, ref);\n const contextValues = useListContextValues_unstable(state);\n\n useListStyles_unstable(state);\n useCustomStyleHook_unstable('useListStyles_unstable')(state);\n\n return renderList_unstable(state, contextValues);\n});\n\nList.displayName = 'List';\n"],"names":["React","useCustomStyleHook_unstable","useList_unstable","renderList_unstable","useListStyles_unstable","useListContextValues_unstable","List","forwardRef","props","ref","state","contextValues","displayName"],"mappings":"AAAA;AAEA,YAAYA,WAAW,QAAQ;AAE/B,SAASC,2BAA2B,QAAQ,kCAAkC;AAC9E,SAASC,gBAAgB,QAAQ,eAAY;AAC7C,SAASC,mBAAmB,QAAQ,kBAAe;AACnD,SAASC,sBAAsB,QAAQ,4BAAyB;AAEhE,SAASC,6BAA6B,QAAQ,4BAAyB;AAEvE,OAAO,MAAMC,qBAAuCN,MAAMO,UAAU,CAAC,CAACC,OAAOC;IAC3E,MAAMC,QAAQR,iBAAiBM,OAAOC;IACtC,MAAME,gBAAgBN,8BAA8BK;IAEpDN,uBAAuBM;IACvBT,4BAA4B,0BAA0BS;IAEtD,OAAOP,oBAAoBO,OAAOC;AACpC,GAAG;AAEHL,KAAKM,WAAW,GAAG"}
@@ -0,0 +1,4 @@
1
+ export { List } from "./List.js";
2
+ export { renderList_unstable } from "../../../../components/List/List/renderList.js";
3
+ export { useList_unstable } from "../../../../components/List/List/useList.js";
4
+ export { listClassNames, useListStyles_unstable } from "../../../../components/List/List/useListStyles.styles.css.js";
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/components/List/List/index.ts"],"sourcesContent":["export { List } from './List';\nexport type { ListContextValue, ListContextValues, ListProps, ListSlots, ListState } from './List.types';\nexport { renderList_unstable } from './renderList';\nexport { useList_unstable } from './useList';\nexport { listClassNames, useListStyles_unstable } from './useListStyles.styles';\n"],"names":["List","renderList_unstable","useList_unstable","listClassNames","useListStyles_unstable"],"mappings":"AAAA,SAASA,IAAI,QAAQ,YAAS;AAE9B,SAASC,mBAAmB,QAAQ,kBAAe;AACnD,SAASC,gBAAgB,QAAQ,eAAY;AAC7C,SAASC,cAAc,EAAEC,sBAAsB,QAAQ,4BAAyB"}
@@ -0,0 +1,13 @@
1
+ 'use client';
2
+ import * as React from "react";
3
+ import { useCustomStyleHook_unstable } from "@fluentui/react-shared-contexts";
4
+ import { useListItem_unstable } from "../../../../components/List/ListItem/useListItem.js";
5
+ import { renderListItem_unstable } from "./renderListItem.js";
6
+ import { useListItemStyles_unstable } from "../../../../components/List/ListItem/useListItemStyles.styles.css.js";
7
+ export const ListItem = /*#__PURE__*/ React.forwardRef((props, ref)=>{
8
+ const state = useListItem_unstable(props, ref);
9
+ useListItemStyles_unstable(state);
10
+ useCustomStyleHook_unstable('useListItemStyles_unstable')(state);
11
+ return renderListItem_unstable(state);
12
+ });
13
+ ListItem.displayName = 'ListItem';
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/components/List/ListItem/ListItem.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\nimport { useListItem_unstable } from './useListItem';\nimport { renderListItem_unstable } from './renderListItem';\nimport { useListItemStyles_unstable } from './useListItemStyles.styles';\nimport type { ListItemProps } from './ListItem.types';\n\nexport const ListItem: ForwardRefComponent<ListItemProps> = React.forwardRef<HTMLLIElement | HTMLDivElement>(\n (props, ref) => {\n const state = useListItem_unstable(props, ref);\n\n useListItemStyles_unstable(state);\n useCustomStyleHook_unstable('useListItemStyles_unstable')(state);\n return renderListItem_unstable(state);\n },\n);\n\nListItem.displayName = 'ListItem';\n"],"names":["React","useCustomStyleHook_unstable","useListItem_unstable","renderListItem_unstable","useListItemStyles_unstable","ListItem","forwardRef","props","ref","state","displayName"],"mappings":"AAAA;AAEA,YAAYA,WAAW,QAAQ;AAE/B,SAASC,2BAA2B,QAAQ,kCAAkC;AAC9E,SAASC,oBAAoB,QAAQ,mBAAgB;AACrD,SAASC,uBAAuB,QAAQ,sBAAmB;AAC3D,SAASC,0BAA0B,QAAQ,gCAA6B;AAGxE,OAAO,MAAMC,yBAA+CL,MAAMM,UAAU,CAC1E,CAACC,OAAOC;IACN,MAAMC,QAAQP,qBAAqBK,OAAOC;IAE1CJ,2BAA2BK;IAC3BR,4BAA4B,8BAA8BQ;IAC1D,OAAON,wBAAwBM;AACjC,GACA;AAEFJ,SAASK,WAAW,GAAG"}
@@ -0,0 +1,4 @@
1
+ export { ListItem } from "./ListItem.js";
2
+ export { renderListItem_unstable } from "./renderListItem.js";
3
+ export { useListItem_unstable } from "../../../../components/List/ListItem/useListItem.js";
4
+ export { listItemClassNames, useListItemStyles_unstable } from "../../../../components/List/ListItem/useListItemStyles.styles.css.js";
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/components/List/ListItem/index.ts"],"sourcesContent":["export { ListItem } from './ListItem';\nexport type { ListItemProps, ListItemSlots, ListItemState } from './ListItem.types';\nexport { renderListItem_unstable } from './renderListItem';\nexport { useListItem_unstable } from './useListItem';\nexport { listItemClassNames, useListItemStyles_unstable } from './useListItemStyles.styles';\n"],"names":["ListItem","renderListItem_unstable","useListItem_unstable","listItemClassNames","useListItemStyles_unstable"],"mappings":"AAAA,SAASA,QAAQ,QAAQ,gBAAa;AAEtC,SAASC,uBAAuB,QAAQ,sBAAmB;AAC3D,SAASC,oBAAoB,QAAQ,mBAAgB;AACrD,SAASC,kBAAkB,EAAEC,0BAA0B,QAAQ,gCAA6B"}
@@ -0,0 +1,19 @@
1
+ import { jsx as _jsx } from "@fluentui/react-jsx-runtime/jsx-runtime";
2
+ import { ItemLayout } from "../../ItemLayout/index.js";
3
+ import { assertSlots } from "@fluentui/react-utilities";
4
+ /**
5
+ * Render the final JSX of ListItem
6
+ */ export const renderListItem_unstable = (state)=>{
7
+ assertSlots(state);
8
+ return /*#__PURE__*/ _jsx(state.root, {
9
+ children: /*#__PURE__*/ _jsx(ItemLayout, {
10
+ startMedia: state.media,
11
+ header: state.header,
12
+ headerMedia: state.headerMedia,
13
+ contentWrapper: state.contentWrapper,
14
+ contentMedia: state.contentMedia,
15
+ endMedia: state.endMedia,
16
+ children: state.root.children
17
+ })
18
+ });
19
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/components/List/ListItem/renderListItem.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\n\nimport { ItemLayout } from '../../ItemLayout';\nimport { assertSlots } from '@fluentui/react-utilities';\nimport type { JSXElement } from '@fluentui/react-utilities';\nimport type { ListItemSlots, ListItemState } from './ListItem.types';\n/**\n * Render the final JSX of ListItem\n */\nexport const renderListItem_unstable = (state: ListItemState): JSXElement => {\n assertSlots<ListItemSlots>(state);\n\n return (\n <state.root>\n <ItemLayout\n startMedia={state.media}\n header={state.header}\n headerMedia={state.headerMedia}\n contentWrapper={state.contentWrapper}\n contentMedia={state.contentMedia}\n endMedia={state.endMedia}\n >\n {state.root.children}\n </ItemLayout>\n </state.root>\n );\n};\n"],"names":["ItemLayout","assertSlots","renderListItem_unstable","state","root","startMedia","media","header","headerMedia","contentWrapper","contentMedia","endMedia","children"],"mappings":";AAAA,0BAA0B,GAC1B,iDAAiD,GAEjD,SAASA,UAAU,QAAQ,4BAAmB;AAC9C,SAASC,WAAW,QAAQ,4BAA4B;AAGxD;;CAEC,GACD,OAAO,MAAMC,0BAA0B,CAACC;IACtCF,YAA2BE;IAE3B,qBACE,KAACA,MAAMC,IAAI;kBACT,cAAA,KAACJ;YACCK,YAAYF,MAAMG,KAAK;YACvBC,QAAQJ,MAAMI,MAAM;YACpBC,aAAaL,MAAMK,WAAW;YAC9BC,gBAAgBN,MAAMM,cAAc;YACpCC,cAAcP,MAAMO,YAAY;YAChCC,UAAUR,MAAMQ,QAAQ;sBAEvBR,MAAMC,IAAI,CAACQ,QAAQ;;;AAI5B,EAAE"}
@@ -0,0 +1,3 @@
1
+ export { List, listClassNames, renderList_unstable, useListStyles_unstable, useList_unstable } from "./List/index.js";
2
+ export { ListItem, listItemClassNames, renderListItem_unstable, useListItemStyles_unstable, useListItem_unstable } from "./ListItem/index.js";
3
+ export { useListSelection } from "../../../components/List/hooks/index.js";
@@ -0,0 +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":"AAAA,SAASA,IAAI,EAAEC,cAAc,EAAEC,mBAAmB,EAAEC,sBAAsB,EAAEC,gBAAgB,QAAQ,kBAAS;AAG7G,SACEC,QAAQ,EACRC,kBAAkB,EAClBC,uBAAuB,EACvBC,0BAA0B,EAC1BC,oBAAoB,QACf,sBAAa;AAGpB,SAASC,gBAAgB,QAAQ,mBAAU"}
@@ -0,0 +1,16 @@
1
+ 'use client';
2
+ import * as React from "react";
3
+ import { mergeClasses } from "@fluentui/react-components/css-modules";
4
+ export const primitiveClassName = 'fui-Primitive';
5
+ export const Primitive = /*#__PURE__*/ React.forwardRef((props, ref)=>{
6
+ const { as: Component = 'div', ...rest } = props;
7
+ const dir = typeof props.children === 'string' ? 'auto' : undefined;
8
+ const className = mergeClasses(primitiveClassName, props.className);
9
+ return /*#__PURE__*/ React.createElement(Component, {
10
+ dir: dir,
11
+ ...rest,
12
+ className: className,
13
+ ref: ref
14
+ });
15
+ });
16
+ Primitive.displayName = 'Primitive';
@@ -0,0 +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;AAEA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,YAAY,QAAQ,6BAA6B;AAc1D,OAAO,MAAMC,qBAAqB,gBAAgB;AAElD,OAAO,MAAMC,0BAAYH,MAAMI,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,YAAYZ,aAAaC,oBAAoBG,MAAMQ,SAAS;IAElE,qBAAO,oBAACL;QAAUE,KAAKA;QAAM,GAAGD,IAAI;QAAEI,WAAWA;QAAWP,KAAKA;;AACnE,GACsB;AAExBH,UAAUW,WAAW,GAAG"}
@@ -0,0 +1 @@
1
+ export { Primitive, primitiveClassName } from "./Primitive.js";
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/components/Primitive/index.tsx"],"sourcesContent":["export { Primitive, primitiveClassName } from './Primitive';\n"],"names":["Primitive","primitiveClassName"],"mappings":"AAAA,SAASA,SAAS,EAAEC,kBAAkB,QAAQ,iBAAc"}
@@ -0,0 +1,16 @@
1
+ 'use client';
2
+ import { mergeClasses } from "@fluentui/react-components/css-modules";
3
+ import * as React from "react";
4
+ import { useSegmentStyles } from "../../../components/Segment/Segment.styles.css.js";
5
+ export const segmentClassName = 'fui-Segment';
6
+ export const Segment = /*#__PURE__*/ React.forwardRef((props, ref)=>{
7
+ const { children, className, ...rest } = props;
8
+ const classes = useSegmentStyles();
9
+ const segmentClasses = mergeClasses(segmentClassName, classes.segment, className);
10
+ return /*#__PURE__*/ React.createElement("div", {
11
+ ref: ref,
12
+ className: segmentClasses,
13
+ ...rest
14
+ }, children);
15
+ });
16
+ Segment.displayName = 'Segment';
@@ -0,0 +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;AAEA,SAASA,YAAY,QAAQ,6BAA6B;AAC1D,YAAYC,WAAW,QAAQ;AAE/B,SAASC,gBAAgB,QAAQ,sBAAmB;AAEpD,OAAO,MAAMC,mBAAmB,cAAc;AAE9C,OAAO,MAAMC,wBAAUH,MAAMI,UAAU,CAAoD,CAACC,OAAOC;IACjG,MAAM,EAAEC,QAAQ,EAAEC,SAAS,EAAE,GAAGC,MAAM,GAAGJ;IACzC,MAAMK,UAAUT;IAEhB,MAAMU,iBAAiBZ,aAAaG,kBAAkBQ,QAAQE,OAAO,EAAEJ;IAEvE,qBACE,oBAACK;QAAIP,KAAKA;QAAKE,WAAWG;QAAiB,GAAGF,IAAI;OAC/CF;AAGP,GAAG;AAEHJ,QAAQW,WAAW,GAAG"}
@@ -0,0 +1 @@
1
+ export { Segment, segmentClassName } from "./Segment.js";
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/components/Segment/index.ts"],"sourcesContent":["export { Segment, segmentClassName } from './Segment';\n"],"names":["Segment","segmentClassName"],"mappings":"AAAA,SAASA,OAAO,EAAEC,gBAAgB,QAAQ,eAAY"}
@@ -0,0 +1,14 @@
1
+ import { tokens, labelClassNames } from "@fluentui/react-components/css-modules";
2
+ const v0Inline = ()=>({
3
+ display: 'inline-flex'
4
+ });
5
+ const v0SpinnerLabelStyle = ()=>({
6
+ [`& .${labelClassNames.root}`]: {
7
+ fontSize: '14px',
8
+ fontWeight: tokens.fontWeightMedium
9
+ }
10
+ });
11
+ export const spinner = {
12
+ v0Inline,
13
+ v0SpinnerLabelStyle
14
+ };
@@ -0,0 +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":"AACA,SAASA,MAAM,EAAEC,eAAe,QAAQ,6BAA6B;AAErE,MAAMC,WAAW,IAAqB,CAAA;QAAEC,SAAS;IAAc,CAAA;AAE/D,MAAMC,sBAAsB,IAAqB,CAAA;QAC/C,CAAC,CAAC,GAAG,EAAEH,gBAAgBI,IAAI,EAAE,CAAC,EAAE;YAC9BC,UAAU;YACVC,YAAYP,OAAOQ,gBAAgB;QACrC;IACF,CAAA;AAEA,OAAO,MAAMC,UAAU;IACrBP;IACAE;AACF,EAAE"}
@@ -0,0 +1 @@
1
+ export { spinner } from "./SpinnerMigration.mixins.js";
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/components/Spinner/index.tsx"],"sourcesContent":["export { spinner } from './SpinnerMigration.mixins';\n"],"names":["spinner"],"mappings":"AAAA,SAASA,OAAO,QAAQ,+BAA4B"}
@@ -0,0 +1,40 @@
1
+ 'use client';
2
+ import { jsx as _jsx } from "@fluentui/react-jsx-runtime/jsx-runtime";
3
+ import * as React from "react";
4
+ import { getIntrinsicElementProps, mergeClasses, slot } from "@fluentui/react-components/css-modules";
5
+ import { useSizeStyles, useStyles, useWeightStyles } from "../../../components/StyledText/StyledText.styles.css.js";
6
+ export const styledTextClassName = 'fui-StyledText';
7
+ const sizeMap = {
8
+ '100': 'base100',
9
+ '200': 'base200',
10
+ '300': 'base300',
11
+ '400': 'base400',
12
+ '500': 'base500',
13
+ '600': 'base600',
14
+ '700': 'hero700',
15
+ smaller: 'base100',
16
+ small: 'base200',
17
+ medium: 'base300',
18
+ large: 'base400',
19
+ large500: 'base500',
20
+ larger: 'base600',
21
+ largest: 'hero700'
22
+ };
23
+ export const StyledText = /*#__PURE__*/ React.forwardRef((props, ref)=>{
24
+ const { align, atMention, disabled, error, important, success, temporary, timestamp, truncate, weight, wrap = true } = props;
25
+ const dir = typeof props.children === 'string' ? 'auto' : undefined;
26
+ const sizeStyles = useSizeStyles();
27
+ const weightStyles = useWeightStyles();
28
+ const styles = useStyles();
29
+ const size = props.size ? sizeMap[props.size] : props.size;
30
+ const RootSlot = slot.always(getIntrinsicElementProps('span', {
31
+ ref,
32
+ ...props,
33
+ dir,
34
+ className: mergeClasses(styledTextClassName, size && sizeStyles[size], weight && weightStyles[weight], wrap === false && styles.nowrap, truncate && styles.truncate, align === 'center' && styles.alignCenter, align === 'end' && styles.alignEnd, align === 'justify' && styles.alignJustify, atMention && styles.mention, atMention === 'me' && styles.mentionMe, disabled && styles.disabled, error && styles.error, important && styles.important, success && styles.success, temporary && styles.temporary, timestamp && styles.timestamp, props.className)
35
+ }), {
36
+ elementType: 'span'
37
+ });
38
+ return /*#__PURE__*/ _jsx(RootSlot, {});
39
+ });
40
+ StyledText.displayName = 'StyledText';
@@ -0,0 +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,0BAA0B,GAC1B,iDAAiD,GAEjD;;AAEA,YAAYA,WAAW,QAAQ;AAE/B,SAASC,wBAAwB,EAAEC,YAAY,EAAEC,IAAI,QAAQ,6BAA6B;AAC1F,SAASC,aAAa,EAAEC,SAAS,EAAEC,eAAe,QAAQ,yBAAsB;AAqFhF,OAAO,MAAMC,sBAAsB,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;AAEA,OAAO,MAAMC,2BAAahB,MAAMiB,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,aAAa9B;IACnB,MAAM+B,eAAe7B;IACrB,MAAM8B,SAAS/B;IAEf,MAAMgC,OAAOnB,MAAMmB,IAAI,GAAG7B,OAAO,CAACU,MAAMmB,IAAI,CAAC,GAAGnB,MAAMmB,IAAI;IAE1D,MAAMC,WAAWnC,KAAKoC,MAAM,CAC1BtC,yBAAyB,QAAQ;QAC/BkB;QACA,GAAGD,KAAK;QACRa;QACAS,WAAWtC,aACTK,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,qBAAO,KAACT;AACV,GAAG;AAEHtB,WAAWgC,WAAW,GAAG"}
@@ -0,0 +1,2 @@
1
+ export { StyledText, styledTextClassName } from "./StyledText.js";
2
+ export { useSizeStyles, useStyles, useWeightStyles } from "../../../components/StyledText/StyledText.styles.css.js";
@@ -0,0 +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":"AACA,SAASA,UAAU,EAAEC,mBAAmB,QAAQ,kBAAe;AAC/D,SAASC,aAAa,EAAEC,SAAS,EAAEC,eAAe,QAAQ,yBAAsB"}
@@ -0,0 +1,42 @@
1
+ 'use client';
2
+ import { mergeClasses, useMergedRefs } from "@fluentui/react-components/css-modules";
3
+ import * as React from "react";
4
+ import { useVideoStyles } from "../../../components/Video/Video.styles.css.js";
5
+ export const videoClassName = 'fui-Video';
6
+ export const Video = /*#__PURE__*/ React.forwardRef((props, ref)=>{
7
+ const { className, muted, ...rest } = props;
8
+ const videoRef = React.useRef(null);
9
+ const classes = useVideoStyles();
10
+ React.useEffect(()=>{
11
+ // this is a workaround for a potential memory leak in Chromium which retains a Detached HTMLVideoElement when <video autoplay> is unmounted
12
+ // https://bugs.chromium.org/p/chromium/issues/detail?id=969049
13
+ return ()=>{
14
+ if (videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) {
15
+ // we want to perform the cleanup on the latest element rendered
16
+ // eslint-disable-next-line react-hooks/exhaustive-deps
17
+ videoRef.current.src = '';
18
+ }
19
+ };
20
+ }, [
21
+ videoRef
22
+ ]);
23
+ React.useEffect(()=>{
24
+ // React doesn't guarantee that props will be set:
25
+ // https://github.com/facebook/react/issues/10389
26
+ if (videoRef.current) {
27
+ videoRef.current.muted = !!muted;
28
+ }
29
+ }, [
30
+ muted
31
+ ]);
32
+ return /*#__PURE__*/ React.createElement("video", {
33
+ ref: useMergedRefs(ref, videoRef),
34
+ role: "application",
35
+ className: mergeClasses(videoClassName, classes.root, className),
36
+ controls: true,
37
+ autoPlay: false,
38
+ muted: muted,
39
+ ...rest
40
+ });
41
+ });
42
+ Video.displayName = 'Video';
@@ -0,0 +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;AAEA,SAASA,YAAY,EAAEC,aAAa,QAAQ,6BAA6B;AACzE,YAAYC,WAAW,QAAQ;AAC/B,SAASC,cAAc,QAAQ,oBAAiB;AAEhD,OAAO,MAAMC,iBAAiB,YAAY;AAuC1C,OAAO,MAAMC,sBAAQH,MAAMI,UAAU,CAA+B,CAACC,OAAOC;IAC1E,MAAM,EAAEC,SAAS,EAAEC,KAAK,EAAE,GAAGC,MAAM,GAAGJ;IAEtC,MAAMK,WAAWV,MAAMW,MAAM,CAAmB;IAEhD,MAAMC,UAAUX;IAChBD,MAAMa,SAAS,CAAC;QACd,4IAA4I;QAC5I,+DAA+D;QAC/D,OAAO;YACL,IAAIH,qBAAAA,+BAAAA,SAAUI,OAAO,EAAE;gBACrB,gEAAgE;gBAChE,uDAAuD;gBACvDJ,SAASI,OAAO,CAACC,GAAG,GAAG;YACzB;QACF;IACF,GAAG;QAACL;KAAS;IAEbV,MAAMa,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,qBACE,oBAACQ;QACCV,KAAKP,cAAcO,KAAKI;QACxBO,MAAK;QACLV,WAAWT,aAAaI,gBAAgBU,QAAQM,IAAI,EAAEX;QACtDY,UAAU;QACVC,UAAU;QACVZ,OAAOA;QACN,GAAGC,IAAI;;AAGd,GAAG;AAEHN,MAAMkB,WAAW,GAAG"}
@@ -0,0 +1 @@
1
+ export { Video, videoClassName } from "./Video.js";
@@ -0,0 +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":"AACA,SAASA,KAAK,EAAEC,cAAc,QAAQ,aAAU"}
@@ -0,0 +1,14 @@
1
+ export { GridShim, grid, gridClassName, useGridStyles } from "./components/Grid/index.js";
2
+ export { FormFieldShim } from "./components/FormField/index.js";
3
+ export { Segment } from "./components/Segment/index.js";
4
+ export { slider } from "../components/Slider/index.js";
5
+ export { Video, videoClassName } from "./components/Video/index.js";
6
+ export { input } from "./components/Input/index.js";
7
+ export { v0Icon, v9CustomSizeIcon, v9DisabledCursor, v9HoverClasses, v9Icon } from "../components/Button/index.js";
8
+ export { spinner } from "./components/Spinner/index.js";
9
+ export { StyledText, styledTextClassName } from "./components/StyledText/index.js";
10
+ export { Primitive, primitiveClassName } from "./components/Primitive/index.js";
11
+ export { ItemLayout, itemLayoutClassName, useItemLayoutStyles } from "./components/ItemLayout/index.js";
12
+ export { Flex, flexClassName, flexItem, useFlexStyles } from "./components/Flex/index.js";
13
+ export { List, ListItem, listClassNames, listItemClassNames, renderListItem_unstable, renderList_unstable, useListItemStyles_unstable, useListItem_unstable, useListSelection, useListStyles_unstable, useList_unstable } from "./components/List/index.js";
14
+ export { Attachment, AttachmentAction, AttachmentBody, AttachmentDescription, AttachmentHeader, AttachmentIcon, attachmentClassName, attachmentActionClassName, attachmentBodyClassName, attachmentDescriptionClassName, attachmentHeaderClassName, attachmentIconClassName, attachmentProgressBarClassName, attachmentProgressContainerClassName } from "./components/Attachment/index.js";
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/index.ts"],"sourcesContent":["export { GridShim, grid, gridClassName, useGridStyles } from './components/Grid/index';\nexport type { GridShimProps } from './components/Grid/index';\nexport { FormFieldShim } from './components/FormField';\nexport { Segment } from './components/Segment';\nexport { slider } from './components/Slider';\nexport { Video, videoClassName } from './components/Video';\nexport { type VideoProps } from './components/Video';\nexport { input } from './components/Input';\nexport { v0Icon, v9CustomSizeIcon, v9DisabledCursor, v9HoverClasses, v9Icon } from './components/Button';\nexport { spinner } from './components/Spinner';\nexport { StyledText, styledTextClassName } from './components/StyledText';\nexport type { StyledTextProps, StyledTextSlots } from './components/StyledText';\nexport { Primitive, primitiveClassName } from './components/Primitive';\nexport { ItemLayout, itemLayoutClassName, useItemLayoutStyles } from './components/ItemLayout';\nexport { Flex, flexClassName, flexItem, useFlexStyles } from './components/Flex';\nexport {\n List,\n ListItem,\n listClassNames,\n listItemClassNames,\n renderListItem_unstable,\n renderList_unstable,\n useListItemStyles_unstable,\n useListItem_unstable,\n useListSelection,\n useListStyles_unstable,\n useList_unstable,\n} from './components/List';\nexport type { ListItemProps, ListItemSlots, ListItemState, ListProps, ListSlots, ListState } from './components/List';\nexport {\n Attachment,\n AttachmentAction,\n AttachmentBody,\n AttachmentDescription,\n AttachmentHeader,\n AttachmentIcon,\n attachmentClassName,\n attachmentActionClassName,\n attachmentBodyClassName,\n attachmentDescriptionClassName,\n attachmentHeaderClassName,\n attachmentIconClassName,\n attachmentProgressBarClassName,\n attachmentProgressContainerClassName,\n} from './components/Attachment';\n\nexport type {\n AttachmentProps,\n AttachmentActionProps,\n AttachmentBodyProps,\n AttachmentDescriptionProps,\n AttachmentHeaderProps,\n AttachmentIconProps,\n} from './components/Attachment';\n"],"names":["GridShim","grid","gridClassName","useGridStyles","FormFieldShim","Segment","slider","Video","videoClassName","input","v0Icon","v9CustomSizeIcon","v9DisabledCursor","v9HoverClasses","v9Icon","spinner","StyledText","styledTextClassName","Primitive","primitiveClassName","ItemLayout","itemLayoutClassName","useItemLayoutStyles","Flex","flexClassName","flexItem","useFlexStyles","List","ListItem","listClassNames","listItemClassNames","renderListItem_unstable","renderList_unstable","useListItemStyles_unstable","useListItem_unstable","useListSelection","useListStyles_unstable","useList_unstable","Attachment","AttachmentAction","AttachmentBody","AttachmentDescription","AttachmentHeader","AttachmentIcon","attachmentClassName","attachmentActionClassName","attachmentBodyClassName","attachmentDescriptionClassName","attachmentHeaderClassName","attachmentIconClassName","attachmentProgressBarClassName","attachmentProgressContainerClassName"],"mappings":"AAAA,SAASA,QAAQ,EAAEC,IAAI,EAAEC,aAAa,EAAEC,aAAa,QAAQ,6BAA0B;AAEvF,SAASC,aAAa,QAAQ,kCAAyB;AACvD,SAASC,OAAO,QAAQ,gCAAuB;AAC/C,SAASC,MAAM,QAAQ,+BAAsB;AAC7C,SAASC,KAAK,EAAEC,cAAc,QAAQ,8BAAqB;AAE3D,SAASC,KAAK,QAAQ,8BAAqB;AAC3C,SAASC,MAAM,EAAEC,gBAAgB,EAAEC,gBAAgB,EAAEC,cAAc,EAAEC,MAAM,QAAQ,+BAAsB;AACzG,SAASC,OAAO,QAAQ,gCAAuB;AAC/C,SAASC,UAAU,EAAEC,mBAAmB,QAAQ,mCAA0B;AAE1E,SAASC,SAAS,EAAEC,kBAAkB,QAAQ,kCAAyB;AACvE,SAASC,UAAU,EAAEC,mBAAmB,EAAEC,mBAAmB,QAAQ,mCAA0B;AAC/F,SAASC,IAAI,EAAEC,aAAa,EAAEC,QAAQ,EAAEC,aAAa,QAAQ,6BAAoB;AACjF,SACEC,IAAI,EACJC,QAAQ,EACRC,cAAc,EACdC,kBAAkB,EAClBC,uBAAuB,EACvBC,mBAAmB,EACnBC,0BAA0B,EAC1BC,oBAAoB,EACpBC,gBAAgB,EAChBC,sBAAsB,EACtBC,gBAAgB,QACX,6BAAoB;AAE3B,SACEC,UAAU,EACVC,gBAAgB,EAChBC,cAAc,EACdC,qBAAqB,EACrBC,gBAAgB,EAChBC,cAAc,EACdC,mBAAmB,EACnBC,yBAAyB,EACzBC,uBAAuB,EACvBC,8BAA8B,EAC9BC,yBAAyB,EACzBC,uBAAuB,EACvBC,8BAA8B,EAC9BC,oCAAoC,QAC/B,mCAA0B"}
@@ -1,7 +1,7 @@
1
1
  .root {
2
2
  height: 32px;
3
3
  width: 32px;
4
- margin-inline-end: 12px;
4
+ margin-inline-end: var(--spacingHorizontalM);
5
5
  display: inline-flex;
6
6
  align-items: center;
7
7
  justify-content: center;
@@ -16,5 +16,5 @@
16
16
  height: 100%;
17
17
  width: 100%;
18
18
  /* stylelint-disable-next-line declaration-no-important -- mirrors the Griffel source, which forces the icon font size */
19
- font-size: 32px !important;
19
+ font-size: var(--fontSizeHero800) !important;
20
20
  }
@@ -16,27 +16,27 @@ const useAttachmentIconStyles = /*#__PURE__*/ (0, _reactcomponents.__styles)({
16
16
  Bqenvij: "f1d2rq10",
17
17
  a9b677: "f1szoe96",
18
18
  t21cq0: [
19
- "f1x4n1mu",
20
- "f1hf5xhj"
19
+ "fkujibs",
20
+ "f199hnxi"
21
21
  ],
22
22
  mc9l5x: "ftuwxu6",
23
23
  Bt984gj: "f122n59",
24
24
  Brf1p80: "f4d9j23",
25
25
  r2e3yl: "fqaw56w",
26
26
  Bt7ks8d: "fjizfa5",
27
- Bdewejq: "fxoqbmi"
27
+ Bdewejq: "fgmsalq"
28
28
  }
29
29
  }, {
30
30
  d: [
31
31
  ".f1d2rq10{height:32px;}",
32
32
  ".f1szoe96{width:32px;}",
33
- ".f1x4n1mu{margin-right:12px;}",
34
- ".f1hf5xhj{margin-left:12px;}",
33
+ ".fkujibs{margin-right:var(--spacingHorizontalM);}",
34
+ ".f199hnxi{margin-left:var(--spacingHorizontalM);}",
35
35
  ".ftuwxu6{display:inline-flex;}",
36
36
  ".f122n59{align-items:center;}",
37
37
  ".f4d9j23{justify-content:center;}",
38
38
  ".fqaw56w svg,.fqaw56w .fui-Icon-font{height:100%;}",
39
39
  ".fjizfa5 svg,.fjizfa5 .fui-Icon-font{width:100%;}",
40
- ".fxoqbmi .fui-Icon-font{font-size:32px!important;}"
40
+ ".fgmsalq .fui-Icon-font{font-size:var(--fontSizeHero800)!important;}"
41
41
  ]
42
42
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["AttachmentIcon.styles.js"],"sourcesContent":["'use client';\nimport { makeStyles } from \"@fluentui/react-components\";\nconst iconSize = '32px';\nexport const useAttachmentIconStyles = makeStyles({\n root: {\n height: iconSize,\n width: iconSize,\n marginRight: '12px',\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'center',\n '& svg, & .fui-Icon-font': {\n height: '100%',\n width: '100%'\n },\n '& .fui-Icon-font': {\n fontSize: `${iconSize} !important`\n }\n }\n});\n"],"names":["__styles","iconSize","useAttachmentIconStyles","root","Bqenvij","a9b677","t21cq0","mc9l5x","Bt984gj","Brf1p80","r2e3yl","Bt7ks8d","Bdewejq","d"],"mappings":"AAAA,YAAY;;;;;;;;;;;iCACe,4BAA4B;AACvD,MAAMC,QAAQ,GAAG,MAAM;AAChB,MAAMC,uBAAuB,GAAA,WAAA,OAAGF,yBAAA,EAAA;IAAAG,IAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,MAAA,EAAA;QAAAC,MAAA,EAAA;YAAA;YAAA;SAAA;QAAAC,MAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,MAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,OAAA,EAAA;IAAA;AAAA,GAAA;IAAAC,CAAA,EAAA;QAAA;QAAA;QAAA;QAAA;QAAA;QAAA;QAAA;QAAA;QAAA;QAAA;KAAA;AAAA,CAgBtC,CAAC"}
1
+ {"version":3,"sources":["AttachmentIcon.styles.js"],"sourcesContent":["'use client';\nimport { makeStyles, tokens } from \"@fluentui/react-components\";\nconst iconSize = '32px';\nexport const useAttachmentIconStyles = makeStyles({\n root: {\n height: iconSize,\n width: iconSize,\n marginRight: tokens.spacingHorizontalM,\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'center',\n '& svg, & .fui-Icon-font': {\n height: '100%',\n width: '100%'\n },\n '& .fui-Icon-font': {\n fontSize: `${tokens.fontSizeHero800} !important`\n }\n }\n});\n"],"names":["__styles","tokens","iconSize","useAttachmentIconStyles","root","Bqenvij","a9b677","t21cq0","mc9l5x","Bt984gj","Brf1p80","r2e3yl","Bt7ks8d","Bdewejq","d"],"mappings":"AAAA,YAAY;;;;;;;;;;;iCACuB,4BAA4B;AAC/D,MAAME,QAAQ,GAAG,MAAM;AAChB,MAAMC,uBAAuB,GAAA,WAAA,OAAGH,yBAAA,EAAA;IAAAI,IAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,MAAA,EAAA;QAAAC,MAAA,EAAA;YAAA;YAAA;SAAA;QAAAC,MAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,MAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,OAAA,EAAA;IAAA;AAAA,GAAA;IAAAC,CAAA,EAAA;QAAA;QAAA;QAAA;QAAA;QAAA;QAAA;QAAA;QAAA;QAAA;QAAA;KAAA;AAAA,CAgBtC,CAAC"}
@@ -15,7 +15,7 @@ const useAttachmentIconStyles = (0, _reactcomponents.makeStyles)({
15
15
  root: {
16
16
  height: iconSize,
17
17
  width: iconSize,
18
- marginRight: '12px',
18
+ marginRight: _reactcomponents.tokens.spacingHorizontalM,
19
19
  display: 'inline-flex',
20
20
  alignItems: 'center',
21
21
  justifyContent: 'center',
@@ -24,7 +24,7 @@ const useAttachmentIconStyles = (0, _reactcomponents.makeStyles)({
24
24
  width: '100%'
25
25
  },
26
26
  '& .fui-Icon-font': {
27
- fontSize: `${iconSize} !important`
27
+ fontSize: `${_reactcomponents.tokens.fontSizeHero800} !important`
28
28
  }
29
29
  }
30
30
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Attachment/AttachmentIcon.styles.ts"],"sourcesContent":["'use client';\n\nimport { makeStyles } from '@fluentui/react-components';\n\nconst iconSize = '32px';\n\nexport const useAttachmentIconStyles = makeStyles({\n root: {\n height: iconSize,\n width: iconSize,\n marginRight: '12px',\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'center',\n '& svg, & .fui-Icon-font': {\n height: '100%',\n width: '100%',\n },\n '& .fui-Icon-font': {\n fontSize: `${iconSize} !important`,\n },\n },\n});\n"],"names":["makeStyles","iconSize","useAttachmentIconStyles","root","height","width","marginRight","display","alignItems","justifyContent","fontSize"],"mappings":"AAAA;;;;;;;;;;;iCAE2B,6BAA6B;AAExD,MAAMC,WAAW;AAEV,MAAMC,8BAA0BF,2BAAAA,EAAW;IAChDG,MAAM;QACJC,QAAQH;QACRI,OAAOJ;QACPK,aAAa;QACbC,SAAS;QACTC,YAAY;QACZC,gBAAgB;QAChB,2BAA2B;YACzBL,QAAQ;YACRC,OAAO;QACT;QACA,oBAAoB;YAClBK,UAAU,GAAGT,SAAS,WAAW,CAAC;QACpC;IACF;AACF,GAAG"}
1
+ {"version":3,"sources":["../../../src/components/Attachment/AttachmentIcon.styles.ts"],"sourcesContent":["'use client';\n\nimport { makeStyles, tokens } from '@fluentui/react-components';\n\nconst iconSize = '32px';\n\nexport const useAttachmentIconStyles = makeStyles({\n root: {\n height: iconSize,\n width: iconSize,\n marginRight: tokens.spacingHorizontalM,\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'center',\n '& svg, & .fui-Icon-font': {\n height: '100%',\n width: '100%',\n },\n '& .fui-Icon-font': {\n fontSize: `${tokens.fontSizeHero800} !important`,\n },\n },\n});\n"],"names":["makeStyles","tokens","iconSize","useAttachmentIconStyles","root","height","width","marginRight","spacingHorizontalM","display","alignItems","justifyContent","fontSize","fontSizeHero800"],"mappings":"AAAA;;;;;;;;;;;iCAEmC,6BAA6B;AAEhE,MAAME,WAAW;AAEV,MAAMC,8BAA0BH,2BAAAA,EAAW;IAChDI,MAAM;QACJC,QAAQH;QACRI,OAAOJ;QACPK,aAAaN,uBAAAA,CAAOO,kBAAkB;QACtCC,SAAS;QACTC,YAAY;QACZC,gBAAgB;QAChB,2BAA2B;YACzBN,QAAQ;YACRC,OAAO;QACT;QACA,oBAAoB;YAClBM,UAAU,GAAGX,uBAAAA,CAAOY,eAAe,CAAC,WAAW,CAAC;QAClD;IACF;AACF,GAAG"}
@@ -1,4 +1,3 @@
1
- /* @griffel-buckets reset: .root */
2
1
  .root {
3
2
  padding: 0;
4
3
  margin: 0;
@@ -1,4 +1,3 @@
1
- /* @griffel-buckets reset: .root */
2
1
  .root {
3
2
  padding: 0 10px;
4
3
  margin: 0;