@100mslive/roomkit-react 0.3.23 → 0.3.24-alpha.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (194) hide show
  1. package/dist/Accordion/Accordion.d.ts +134 -322
  2. package/dist/Accordion/index.d.ts +134 -322
  3. package/dist/Avatar/Avatar.d.ts +47 -141
  4. package/dist/Button/Button.d.ts +47 -141
  5. package/dist/Checkbox/Checkbox.d.ts +134 -322
  6. package/dist/Collapsible/Collapsible.d.ts +201 -483
  7. package/dist/ConferenceScreen-CLPW3BGP.css +2780 -0
  8. package/dist/{HLSView-S4NJF7Q2.css.map → ConferenceScreen-CLPW3BGP.css.map} +1 -1
  9. package/dist/ConferenceScreen-M6RBPTAJ.js +1774 -0
  10. package/dist/ConferenceScreen-M6RBPTAJ.js.map +7 -0
  11. package/dist/Divider/Divider.d.ts +134 -322
  12. package/dist/Dropdown/Dropdown.d.ts +804 -1932
  13. package/dist/EmbedView-DDSO7ZCV.js +17 -0
  14. package/dist/EmbedView-DDSO7ZCV.js.map +7 -0
  15. package/dist/EmbedView-HGIUZHKA.css +2780 -0
  16. package/dist/EmbedView-HGIUZHKA.css.map +7 -0
  17. package/dist/EmojiReaction-23JDKJD4.js +11 -0
  18. package/dist/EmojiReaction-23JDKJD4.js.map +7 -0
  19. package/dist/Fieldset/Fieldset.d.ts +47 -141
  20. package/dist/Footer/Footer.d.ts +536 -1288
  21. package/dist/{HLSView-S4NJF7Q2.css → HLSView-OW77EAAO.css} +3 -3
  22. package/dist/HLSView-OW77EAAO.css.map +7 -0
  23. package/dist/{HLSView-HYI6LLL6.js → HLSView-Q6GEB3UM.js} +38 -24
  24. package/dist/HLSView-Q6GEB3UM.js.map +7 -0
  25. package/dist/IconButton/IconButton.d.ts +47 -141
  26. package/dist/Input/Input.d.ts +362 -926
  27. package/dist/Label/Label.d.ts +47 -141
  28. package/dist/Layout/Box.d.ts +47 -141
  29. package/dist/Layout/Flex.d.ts +47 -141
  30. package/dist/LeaveScreen-BYTE73MT.js +556 -0
  31. package/dist/LeaveScreen-BYTE73MT.js.map +7 -0
  32. package/dist/LeaveScreen-P7AATEIF.css +2780 -0
  33. package/dist/LeaveScreen-P7AATEIF.css.map +7 -0
  34. package/dist/Link/Link.d.ts +47 -141
  35. package/dist/Modal/Dialog.d.ts +329 -987
  36. package/dist/Modal/DialogContent.d.ts +469 -1127
  37. package/dist/MoreSettings-LV5X2U6K.css +2780 -0
  38. package/dist/MoreSettings-LV5X2U6K.css.map +7 -0
  39. package/dist/MoreSettings-WSHMMNOC.js +16 -0
  40. package/dist/MoreSettings-WSHMMNOC.js.map +7 -0
  41. package/dist/PDFView-RIPRIIH6.css +2780 -0
  42. package/dist/PDFView-RIPRIIH6.css.map +7 -0
  43. package/dist/PDFView-ZFSG2ESE.js +84 -0
  44. package/dist/PDFView-ZFSG2ESE.js.map +7 -0
  45. package/dist/Pagination/StyledPagination.d.ts +268 -644
  46. package/dist/Polls-QWW5LTTB.js +1584 -0
  47. package/dist/Polls-QWW5LTTB.js.map +7 -0
  48. package/dist/Polls-ULYGUPPF.css +2780 -0
  49. package/dist/Polls-ULYGUPPF.css.map +7 -0
  50. package/dist/Popover/index.d.ts +201 -483
  51. package/dist/Prebuilt/IconButton.d.ts +134 -322
  52. package/dist/Prebuilt/components/Chat/ChatBody.d.ts +134 -322
  53. package/dist/Prebuilt/components/Leave/LeaveAtoms.d.ts +335 -805
  54. package/dist/Prebuilt/components/Notifications/DeviceChangeNotifications.d.ts +1 -0
  55. package/dist/Prebuilt/components/Notifications/ErrorNotifications.d.ts +1 -0
  56. package/dist/Prebuilt/components/Notifications/MessageNotifications.d.ts +1 -0
  57. package/dist/Prebuilt/components/Notifications/PollNotificationModal.d.ts +1 -0
  58. package/dist/Prebuilt/components/Notifications/RoleChangeNotification.d.ts +1 -0
  59. package/dist/Prebuilt/components/Settings/common.d.ts +134 -322
  60. package/dist/Progress/index.d.ts +134 -322
  61. package/dist/RadioGroup/RadioGroup.d.ts +201 -483
  62. package/dist/RaiseHand-K7NFLH7H.js +10 -0
  63. package/dist/RaiseHand-K7NFLH7H.js.map +7 -0
  64. package/dist/ReactSelect/ReactSelect.d.ts +670 -1610
  65. package/dist/RoleProminence-235AFT7F.js +116 -0
  66. package/dist/RoleProminence-235AFT7F.js.map +7 -0
  67. package/dist/RoleProminence-6XN3POS5.css +2780 -0
  68. package/dist/RoleProminence-6XN3POS5.css.map +7 -0
  69. package/dist/RoomDetailsPane-O5TFMTPI.css +2780 -0
  70. package/dist/RoomDetailsPane-O5TFMTPI.css.map +7 -0
  71. package/dist/RoomDetailsPane-RF3D3TDR.js +53 -0
  72. package/dist/RoomDetailsPane-RF3D3TDR.js.map +7 -0
  73. package/dist/ScreenshareLayout-KNEB3AJJ.css +2780 -0
  74. package/dist/ScreenshareLayout-KNEB3AJJ.css.map +7 -0
  75. package/dist/ScreenshareLayout-PSQMS3NC.js +358 -0
  76. package/dist/ScreenshareLayout-PSQMS3NC.js.map +7 -0
  77. package/dist/Select/Select.d.ts +201 -483
  78. package/dist/Sheet/Sheet.d.ts +329 -987
  79. package/dist/SidePaneTabs-I6DECE5R.css +2780 -0
  80. package/dist/SidePaneTabs-I6DECE5R.css.map +7 -0
  81. package/dist/SidePaneTabs-NXHBI2JB.js +1354 -0
  82. package/dist/SidePaneTabs-NXHBI2JB.js.map +7 -0
  83. package/dist/Slider/Slider.d.ts +47 -141
  84. package/dist/Stats/StyledStats.d.ts +402 -966
  85. package/dist/Switch/Switch.d.ts +47 -141
  86. package/dist/Tabs/Tabs.d.ts +268 -644
  87. package/dist/Text/Text.d.ts +47 -141
  88. package/dist/TextArea/TextArea.d.ts +47 -141
  89. package/dist/Theme/base.config.d.ts +26 -78
  90. package/dist/Theme/stitches.config.d.ts +1046 -1493
  91. package/dist/TileMenu/StyledMenuTile.d.ts +469 -1127
  92. package/dist/Toast/Toast.d.ts +382 -946
  93. package/dist/VBPicker-2CQ3IIO7.js +322 -0
  94. package/dist/VBPicker-2CQ3IIO7.js.map +7 -0
  95. package/dist/VBPicker-DCNYGO23.css +2780 -0
  96. package/dist/VBPicker-DCNYGO23.css.map +7 -0
  97. package/dist/Video/Video.d.ts +47 -141
  98. package/dist/VideoList/StyledVideoList.d.ts +201 -483
  99. package/dist/VideoTile/StyledVideoTile.d.ts +670 -1610
  100. package/dist/WaitingView-NZIUOXBI.js +10 -0
  101. package/dist/WaitingView-NZIUOXBI.js.map +7 -0
  102. package/dist/WhiteboardLayout-4YLFM3EY.js +96 -0
  103. package/dist/WhiteboardLayout-4YLFM3EY.js.map +7 -0
  104. package/dist/WhiteboardLayout-JUOBDFKY.css +2780 -0
  105. package/dist/WhiteboardLayout-JUOBDFKY.css.map +7 -0
  106. package/dist/android-perm-1.png +0 -0
  107. package/dist/audio-level.png +0 -0
  108. package/dist/chunk-3C7IESSI.js +254 -0
  109. package/dist/chunk-3C7IESSI.js.map +7 -0
  110. package/dist/chunk-7FD3VT6Q.js +114 -0
  111. package/dist/chunk-7FD3VT6Q.js.map +7 -0
  112. package/dist/chunk-AHI4HCY3.js +62 -0
  113. package/dist/chunk-AHI4HCY3.js.map +7 -0
  114. package/dist/chunk-BGSYLCVD.js +6337 -0
  115. package/dist/chunk-BGSYLCVD.js.map +7 -0
  116. package/dist/chunk-DANANDDE.js +418 -0
  117. package/dist/chunk-DANANDDE.js.map +7 -0
  118. package/dist/chunk-ETRNLEWQ.js +2658 -0
  119. package/dist/chunk-ETRNLEWQ.js.map +7 -0
  120. package/dist/chunk-EWPHJFZJ.js +487 -0
  121. package/dist/chunk-EWPHJFZJ.js.map +7 -0
  122. package/dist/chunk-F63YJBI4.js +98 -0
  123. package/dist/chunk-F63YJBI4.js.map +7 -0
  124. package/dist/chunk-GLAJUP3O.js +576 -0
  125. package/dist/chunk-GLAJUP3O.js.map +7 -0
  126. package/dist/chunk-GOXRTCTY.js +90 -0
  127. package/dist/chunk-GOXRTCTY.js.map +7 -0
  128. package/dist/chunk-HMCBZI3A.js +59 -0
  129. package/dist/chunk-HMCBZI3A.js.map +7 -0
  130. package/dist/chunk-HVYTC3PX.js +171 -0
  131. package/dist/chunk-HVYTC3PX.js.map +7 -0
  132. package/dist/chunk-LJVP6AWF.js +262 -0
  133. package/dist/chunk-LJVP6AWF.js.map +7 -0
  134. package/dist/chunk-LXJGCRKM.js +30 -0
  135. package/dist/chunk-LXJGCRKM.js.map +7 -0
  136. package/dist/chunk-MG3UGW66.js +16800 -0
  137. package/dist/chunk-MG3UGW66.js.map +7 -0
  138. package/dist/chunk-MUKUP7JU.js +161 -0
  139. package/dist/chunk-MUKUP7JU.js.map +7 -0
  140. package/dist/chunk-OV6MVDCL.js +41 -0
  141. package/dist/chunk-OV6MVDCL.js.map +7 -0
  142. package/dist/chunk-P6NV2XO4.js +178 -0
  143. package/dist/chunk-P6NV2XO4.js.map +7 -0
  144. package/dist/chunk-REL3HBSD.js +71 -0
  145. package/dist/chunk-REL3HBSD.js.map +7 -0
  146. package/dist/chunk-U4SQBXPZ.js +830 -0
  147. package/dist/chunk-U4SQBXPZ.js.map +7 -0
  148. package/dist/chunk-YEL5ZTFU.js +136 -0
  149. package/dist/chunk-YEL5ZTFU.js.map +7 -0
  150. package/dist/empty-chat.svg +12 -0
  151. package/dist/index.cjs.css +2 -2
  152. package/dist/index.cjs.css.map +1 -1
  153. package/dist/index.cjs.js +21713 -21508
  154. package/dist/index.cjs.js.map +4 -4
  155. package/dist/index.css +2 -2
  156. package/dist/index.css.map +1 -1
  157. package/dist/index.js +25 -15
  158. package/dist/ios-perm-0.png +0 -0
  159. package/dist/meta.cjs.json +5515 -5153
  160. package/dist/meta.esbuild.json +8998 -6138
  161. package/dist/pdf-share.png +0 -0
  162. package/dist/screen-share.png +0 -0
  163. package/dist/transaction_error.svg +12 -0
  164. package/package.json +8 -8
  165. package/src/Avatar/Avatar.tsx +1 -1
  166. package/src/Popover/Popover.stories.tsx +1 -1
  167. package/src/Prebuilt/App.tsx +6 -2
  168. package/src/Prebuilt/components/Chat/Chat.tsx +12 -8
  169. package/src/Prebuilt/components/Chat/ChatFooter.tsx +1 -1
  170. package/src/Prebuilt/components/MoreSettings/SplitComponents/MwebOptions.tsx +14 -1
  171. package/src/Prebuilt/components/Notifications/DeviceChangeNotifications.tsx +18 -0
  172. package/src/Prebuilt/components/Notifications/ErrorNotifications.tsx +56 -0
  173. package/src/Prebuilt/components/Notifications/MessageNotifications.tsx +24 -0
  174. package/src/Prebuilt/components/Notifications/Notifications.tsx +13 -171
  175. package/src/Prebuilt/components/Notifications/PeerNotifications.tsx +9 -2
  176. package/src/Prebuilt/components/Notifications/PollNotificationModal.tsx +71 -0
  177. package/src/Prebuilt/components/Notifications/ReconnectNotifications.tsx +1 -5
  178. package/src/Prebuilt/components/Notifications/RoleChangeNotification.tsx +24 -0
  179. package/src/Prebuilt/components/Notifications/TrackBulkUnmuteModal.tsx +7 -5
  180. package/src/Prebuilt/components/Notifications/TrackNotifications.tsx +23 -1
  181. package/src/Prebuilt/components/Notifications/TrackUnmuteModal.tsx +13 -5
  182. package/src/Prebuilt/components/StatsForNerds.jsx +122 -9
  183. package/src/Prebuilt/components/VideoLayouts/GridLayout.tsx +43 -31
  184. package/src/Prebuilt/components/VideoLayouts/ProminenceLayout.tsx +2 -2
  185. package/src/Prebuilt/components/VirtualBackground/VBOption.tsx +3 -1
  186. package/src/Prebuilt/components/VirtualBackground/VBPicker.tsx +6 -0
  187. package/src/Prebuilt/layouts/HLSView.jsx +1 -0
  188. package/src/Prebuilt/layouts/PDFView.jsx +1 -0
  189. package/src/Prebuilt/layouts/SidePane.tsx +12 -6
  190. package/src/Prebuilt/layouts/VideoStreamingSection.tsx +35 -34
  191. package/src/Prebuilt/layouts/WaitingView.tsx +2 -2
  192. package/dist/HLSView-HYI6LLL6.js.map +0 -7
  193. package/dist/chunk-LRJSQMZ4.js +0 -34759
  194. package/dist/chunk-LRJSQMZ4.js.map +0 -7
@@ -0,0 +1,161 @@
1
+ import {
2
+ init_define_process_env,
3
+ styled
4
+ } from "./chunk-GLAJUP3O.js";
5
+
6
+ // src/Text/Text.tsx
7
+ init_define_process_env();
8
+ var textVariants = {
9
+ h1: {
10
+ fontWeight: "$semiBold",
11
+ letterSpacing: "-1.5px",
12
+ fontSize: "$h1",
13
+ lineHeight: "$h1",
14
+ "@md": {
15
+ fontSize: "4.5rem",
16
+ lineHeight: "4.75rem"
17
+ }
18
+ },
19
+ h2: {
20
+ fontSize: "$h2",
21
+ lineHeight: "$h2",
22
+ fontWeight: "$semiBold",
23
+ letterSpacing: "-0.5px",
24
+ "@md": {
25
+ fontSize: "3rem",
26
+ lineHeight: "3.25rem"
27
+ }
28
+ },
29
+ h3: {
30
+ fontSize: "$h3",
31
+ lineHeight: "$h3",
32
+ fontWeight: "$semiBold",
33
+ "@md": {
34
+ fontSize: "2.5rem",
35
+ lineHeight: "2.75rem"
36
+ }
37
+ },
38
+ h4: {
39
+ fontSize: "$h4",
40
+ lineHeight: "$h4",
41
+ fontWeight: "$semiBold",
42
+ letterSpacing: "0.25px",
43
+ "@md": {
44
+ fontSize: "1.75rem",
45
+ lineHeight: "2rem"
46
+ }
47
+ },
48
+ h5: {
49
+ fontSize: "$h5",
50
+ lineHeight: "$h5",
51
+ fontWeight: "$semiBold",
52
+ "@md": {
53
+ fontSize: "1.5rem",
54
+ lineHeight: "1.75rem"
55
+ }
56
+ },
57
+ h6: {
58
+ fontSize: "$h6",
59
+ lineHeight: "$h6",
60
+ fontWeight: "$semiBold",
61
+ letterSpacing: "0.15px",
62
+ "@md": {
63
+ fontSize: "1.25rem",
64
+ lineHeight: "1.5rem"
65
+ }
66
+ },
67
+ sub1: {
68
+ fontSize: "$md",
69
+ lineHeight: "$h5",
70
+ fontWeight: "$medium",
71
+ letterSpacing: "0.15px"
72
+ },
73
+ sub2: {
74
+ fontSize: "$sm",
75
+ lineHeight: "$sm",
76
+ fontWeight: "$medium",
77
+ letterSpacing: "0.1px"
78
+ },
79
+ body1: {
80
+ fontSize: "$md",
81
+ lineHeight: "$h6",
82
+ fontWeight: "$medium",
83
+ letterSpacing: "0.1px"
84
+ },
85
+ body2: {
86
+ fontSize: "0.875rem",
87
+ lineHeight: "1.25rem",
88
+ fontWeight: "$medium",
89
+ letterSpacing: "0.25px"
90
+ },
91
+ button: {
92
+ fontSize: "1rem",
93
+ lineHeight: "1.5rem",
94
+ fontWeight: "$semiBold",
95
+ letterSpacing: "0.5px"
96
+ },
97
+ caption: {
98
+ fontSize: "0.75rem",
99
+ lineHeight: "1rem",
100
+ letterSpacing: "0.4px",
101
+ fontWeight: "$regular"
102
+ },
103
+ overline: {
104
+ fontSize: "0.625rem",
105
+ lineHeight: "1rem",
106
+ letterSpacing: "1.5px",
107
+ fontWeight: "$medium"
108
+ },
109
+ tiny: {
110
+ fontSize: "$tiny",
111
+ lineHeight: "$tiny"
112
+ },
113
+ xs: {
114
+ fontSize: "$xs",
115
+ lineHeight: "$xs"
116
+ },
117
+ sm: {
118
+ fontSize: "$sm",
119
+ lineHeight: "$sm"
120
+ },
121
+ md: {
122
+ fontSize: "$md",
123
+ lineHeight: "$md"
124
+ },
125
+ lg: {
126
+ fontSize: "$lg",
127
+ lineHeight: "$md",
128
+ fontWeight: "$semiBold",
129
+ letterSpacing: "0.15px"
130
+ }
131
+ };
132
+ var Text = styled("p", {
133
+ fontFamily: "$sans",
134
+ fontWeight: "$regular",
135
+ margin: 0,
136
+ color: "$on_surface_high",
137
+ variants: {
138
+ variant: textVariants,
139
+ color: {
140
+ white: {
141
+ color: "$on_surface_high"
142
+ }
143
+ },
144
+ inline: {
145
+ true: {
146
+ display: "inline"
147
+ }
148
+ }
149
+ },
150
+ defaultVariants: {
151
+ variant: "md"
152
+ }
153
+ });
154
+
155
+ // src/Text/index.tsx
156
+ init_define_process_env();
157
+
158
+ export {
159
+ Text
160
+ };
161
+ //# sourceMappingURL=chunk-MUKUP7JU.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/Text/Text.tsx", "../src/Text/index.tsx"],
4
+ "sourcesContent": ["import { styled } from '../Theme';\n\nexport const textVariants = {\n h1: {\n fontWeight: '$semiBold',\n letterSpacing: '-1.5px',\n fontSize: '$h1',\n lineHeight: '$h1',\n '@md': {\n fontSize: '4.5rem',\n lineHeight: '4.75rem',\n },\n },\n h2: {\n fontSize: '$h2',\n lineHeight: '$h2',\n fontWeight: '$semiBold',\n letterSpacing: '-0.5px',\n '@md': {\n fontSize: '3rem',\n lineHeight: '3.25rem',\n },\n },\n h3: {\n fontSize: '$h3',\n lineHeight: '$h3',\n fontWeight: '$semiBold',\n '@md': {\n fontSize: '2.5rem',\n lineHeight: '2.75rem',\n },\n },\n h4: {\n fontSize: '$h4',\n lineHeight: '$h4',\n fontWeight: '$semiBold',\n letterSpacing: '0.25px',\n '@md': {\n fontSize: '1.75rem',\n lineHeight: '2rem',\n },\n },\n h5: {\n fontSize: '$h5',\n lineHeight: '$h5',\n fontWeight: '$semiBold',\n '@md': {\n fontSize: '1.5rem',\n lineHeight: '1.75rem',\n },\n },\n h6: {\n fontSize: '$h6',\n lineHeight: '$h6',\n fontWeight: '$semiBold',\n letterSpacing: '0.15px',\n '@md': {\n fontSize: '1.25rem',\n lineHeight: '1.5rem',\n },\n },\n sub1: {\n fontSize: '$md',\n lineHeight: '$h5',\n fontWeight: '$medium',\n letterSpacing: '0.15px',\n },\n sub2: {\n fontSize: '$sm',\n lineHeight: '$sm',\n fontWeight: '$medium',\n letterSpacing: '0.1px',\n },\n body1: {\n fontSize: '$md',\n lineHeight: '$h6',\n fontWeight: '$medium',\n letterSpacing: '0.1px',\n },\n body2: {\n fontSize: '0.875rem',\n lineHeight: '1.25rem',\n fontWeight: '$medium',\n letterSpacing: '0.25px',\n },\n button: {\n fontSize: '1rem',\n lineHeight: '1.5rem',\n fontWeight: '$semiBold',\n letterSpacing: '0.5px',\n },\n caption: {\n fontSize: '0.75rem',\n lineHeight: '1rem',\n letterSpacing: '0.4px',\n fontWeight: '$regular',\n },\n overline: {\n fontSize: '0.625rem',\n lineHeight: '1rem',\n letterSpacing: '1.5px',\n fontWeight: '$medium',\n },\n tiny: {\n fontSize: '$tiny',\n lineHeight: '$tiny',\n },\n xs: {\n fontSize: '$xs',\n lineHeight: '$xs',\n },\n sm: {\n fontSize: '$sm',\n lineHeight: '$sm',\n },\n md: {\n fontSize: '$md',\n lineHeight: '$md',\n },\n lg: {\n fontSize: '$lg',\n lineHeight: '$md',\n fontWeight: '$semiBold',\n letterSpacing: '0.15px',\n },\n};\n\nexport const Text = styled('p', {\n fontFamily: '$sans',\n fontWeight: '$regular',\n margin: 0,\n color: '$on_surface_high',\n variants: {\n variant: textVariants,\n color: {\n white: {\n color: '$on_surface_high',\n },\n },\n inline: {\n true: {\n display: 'inline',\n },\n },\n },\n defaultVariants: {\n variant: 'md',\n },\n});\n", "export { Text } from './Text';\n"],
5
+ "mappings": ";;;;;;AAAA;AAEO,IAAM,eAAe;AAAA,EAC1B,IAAI;AAAA,IACF,YAAY;AAAA,IACZ,eAAe;AAAA,IACf,UAAU;AAAA,IACV,YAAY;AAAA,IACZ,OAAO;AAAA,MACL,UAAU;AAAA,MACV,YAAY;AAAA,IACd;AAAA,EACF;AAAA,EACA,IAAI;AAAA,IACF,UAAU;AAAA,IACV,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,eAAe;AAAA,IACf,OAAO;AAAA,MACL,UAAU;AAAA,MACV,YAAY;AAAA,IACd;AAAA,EACF;AAAA,EACA,IAAI;AAAA,IACF,UAAU;AAAA,IACV,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,OAAO;AAAA,MACL,UAAU;AAAA,MACV,YAAY;AAAA,IACd;AAAA,EACF;AAAA,EACA,IAAI;AAAA,IACF,UAAU;AAAA,IACV,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,eAAe;AAAA,IACf,OAAO;AAAA,MACL,UAAU;AAAA,MACV,YAAY;AAAA,IACd;AAAA,EACF;AAAA,EACA,IAAI;AAAA,IACF,UAAU;AAAA,IACV,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,OAAO;AAAA,MACL,UA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jB;AACF;AAEO,IAAM,OAAO,OAAO,KAAK;AAAA,EAC9B,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,UAAU;AAAA,IACR,SAAS;AAAA,IACT,OAAO;AAAA,MACL,OAAO;AAAA,QACL,OAAO;AAAA,MACT;AAAA,IACF;AAAA,IACA,QAAQ;AAAA,MACN,MAAM;AAAA,QACJ,SAAS;AAAA,MACX;AAAA,IACF;AAAA,EACF;AAAA,EACA,iBAAiB;AAAA,IACf,SAAS;AAAA,EACX;AACF,CAAC;;;ACpJD;",
6
+ "names": []
7
+ }
@@ -0,0 +1,41 @@
1
+ import {
2
+ useMyMetadata
3
+ } from "./chunk-AHI4HCY3.js";
4
+ import {
5
+ IconButton_default,
6
+ Tooltip,
7
+ useRoomLayoutConferencingScreen
8
+ } from "./chunk-BGSYLCVD.js";
9
+ import {
10
+ __async,
11
+ init_define_process_env
12
+ } from "./chunk-GLAJUP3O.js";
13
+
14
+ // src/Prebuilt/components/RaiseHand.tsx
15
+ init_define_process_env();
16
+ import React from "react";
17
+ import { HandIcon, HandRaiseSlashedIcon } from "@100mslive/react-icons";
18
+ var RaiseHand = ({ css }) => {
19
+ const { isHandRaised, toggleHandRaise } = useMyMetadata();
20
+ const { elements } = useRoomLayoutConferencingScreen();
21
+ if (!elements.hand_raise) {
22
+ return null;
23
+ }
24
+ return /* @__PURE__ */ React.createElement(Tooltip, { title: isHandRaised ? "Lower hand" : "Raise hand" }, /* @__PURE__ */ React.createElement(
25
+ IconButton_default,
26
+ {
27
+ "data-testid": "hand_raise_btn",
28
+ css,
29
+ active: !isHandRaised,
30
+ onClick: () => __async(void 0, null, function* () {
31
+ return yield toggleHandRaise();
32
+ })
33
+ },
34
+ isHandRaised ? /* @__PURE__ */ React.createElement(HandRaiseSlashedIcon, null) : /* @__PURE__ */ React.createElement(HandIcon, null)
35
+ ));
36
+ };
37
+
38
+ export {
39
+ RaiseHand
40
+ };
41
+ //# sourceMappingURL=chunk-OV6MVDCL.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/Prebuilt/components/RaiseHand.tsx"],
4
+ "sourcesContent": ["import React from 'react';\nimport { HandIcon, HandRaiseSlashedIcon } from '@100mslive/react-icons';\nimport { CSS } from '../../Theme';\nimport { Tooltip } from '../../Tooltip';\n// @ts-ignore: No implicit Any\nimport IconButton from '../IconButton';\nimport { useRoomLayoutConferencingScreen } from '../provider/roomLayoutProvider/hooks/useRoomLayoutScreen';\nimport { useMyMetadata } from './hooks/useMetadata';\n\nexport const RaiseHand = ({ css }: { css?: CSS }) => {\n const { isHandRaised, toggleHandRaise } = useMyMetadata();\n const { elements } = useRoomLayoutConferencingScreen();\n\n if (!elements.hand_raise) {\n return null;\n }\n\n return (\n <Tooltip title={isHandRaised ? 'Lower hand' : 'Raise hand'}>\n <IconButton\n data-testid=\"hand_raise_btn\"\n css={css}\n active={!isHandRaised}\n onClick={async () => await toggleHandRaise()}\n >\n {isHandRaised ? <HandRaiseSlashedIcon /> : <HandIcon />}\n </IconButton>\n </Tooltip>\n );\n};\n"],
5
+ "mappings": ";;;;;;;;;;;;;;AAAA;AAAA,OAAO,WAAW;AAClB,SAAS,UAAU,4BAA4B;AAQxC,IAAM,YAAY,CAAC,EAAE,IAAI,MAAqB;AACnD,QAAM,EAAE,cAAc,gBAAgB,IAAI,cAAc;AACxD,QAAM,EAAE,SAAS,IAAI,gCAAgC;AAErD,MAAI,CAAC,SAAS,YAAY;AACxB,WAAO;AAAA,EACT;AAEA,SACE,oCAAC,WAAQ,OAAO,eAAe,eAAe,gBAC5C;AAAA,IAAC;AAAA;AAAA,MACC,eAAY;AAAA,MACZ;AAAA,MACA,QAAQ,CAAC;AAAA,MACT,SAAS,MAAS;AAAG,qBAAM,gBAAgB;AAAA;AAAA;AAAA,IAE1C,eAAe,oCAAC,0BAAqB,IAAK,oCAAC,cAAS;AAAA,EACvD,CACF;AAEJ;",
6
+ "names": []
7
+ }
@@ -0,0 +1,178 @@
1
+ import {
2
+ StyledPagination
3
+ } from "./chunk-MG3UGW66.js";
4
+ import {
5
+ config,
6
+ init_define_process_env
7
+ } from "./chunk-GLAJUP3O.js";
8
+
9
+ // src/Prebuilt/components/Pagination.tsx
10
+ init_define_process_env();
11
+ import React, { useEffect } from "react";
12
+ import { ChevronLeftIcon, ChevronRightIcon } from "@100mslive/react-icons";
13
+ var Pagination = ({
14
+ page,
15
+ onPageChange,
16
+ numPages
17
+ }) => {
18
+ const disableLeft = page === 0;
19
+ const disableRight = page === numPages - 1;
20
+ const nextPage = (e) => {
21
+ e.stopPropagation();
22
+ onPageChange(Math.min(page + 1, numPages - 1));
23
+ };
24
+ const prevPage = (e) => {
25
+ e.stopPropagation();
26
+ onPageChange(Math.max(page - 1, 0));
27
+ };
28
+ useEffect(() => {
29
+ if (page >= numPages) {
30
+ onPageChange(Math.max(0, numPages - 1));
31
+ }
32
+ }, [numPages, onPageChange, page]);
33
+ if (numPages <= 1) {
34
+ return null;
35
+ }
36
+ return /* @__PURE__ */ React.createElement(StyledPagination.Root, { css: { flexShrink: 0 } }, /* @__PURE__ */ React.createElement(StyledPagination.Chevron, { disabled: disableLeft, onClick: prevPage }, /* @__PURE__ */ React.createElement(ChevronLeftIcon, { width: 16, height: 16, style: { cursor: disableLeft ? "not-allowed" : "pointer" } })), numPages <= 5 ? /* @__PURE__ */ React.createElement(StyledPagination.Dots, null, [...Array(numPages)].map((_, i) => /* @__PURE__ */ React.createElement(
37
+ StyledPagination.Dot,
38
+ {
39
+ key: i,
40
+ active: page === i,
41
+ onClick: (e) => {
42
+ e.stopPropagation();
43
+ onPageChange(i);
44
+ }
45
+ }
46
+ ))) : null, /* @__PURE__ */ React.createElement(StyledPagination.Chevron, { disabled: disableRight, onClick: nextPage }, /* @__PURE__ */ React.createElement(ChevronRightIcon, { width: 16, height: 16, style: { cursor: disableRight ? "not-allowed" : "pointer" } })));
47
+ };
48
+
49
+ // src/Prebuilt/components/hooks/useTileLayout.tsx
50
+ init_define_process_env();
51
+ import { useEffect as useEffect2, useMemo, useState } from "react";
52
+ import { useMeasure, useMedia } from "react-use";
53
+ import {
54
+ getPeersWithTiles,
55
+ selectTracksMap,
56
+ useHMSVanillaStore
57
+ } from "@100mslive/react-sdk";
58
+ var aspectRatioConfig = { default: [1 / 1, 4 / 3, 16 / 9], mobile: [1 / 1, 3 / 4, 9 / 16] };
59
+ var usePagesWithTiles = ({ peers, maxTileCount }) => {
60
+ const vanillaStore = useHMSVanillaStore();
61
+ const tracksMap = vanillaStore.getState(selectTracksMap);
62
+ const peersWithTiles = useMemo(
63
+ () => getPeersWithTiles(peers, tracksMap, () => false),
64
+ [peers, tracksMap]
65
+ );
66
+ const noOfPages = Math.ceil(peersWithTiles.length / maxTileCount);
67
+ const pagesList = useMemo(() => {
68
+ let sliceStart = 0;
69
+ let remaining = peersWithTiles.length;
70
+ const list = [];
71
+ for (let i = 0; i < noOfPages; i++) {
72
+ const count = Math.min(remaining, maxTileCount);
73
+ list.push(peersWithTiles.slice(sliceStart, sliceStart + count));
74
+ remaining = remaining - count;
75
+ sliceStart += count;
76
+ }
77
+ return list;
78
+ }, [peersWithTiles, noOfPages, maxTileCount]);
79
+ return pagesList;
80
+ };
81
+ var useTileLayout = ({
82
+ pageList,
83
+ maxTileCount,
84
+ edgeToEdge = false
85
+ }) => {
86
+ const vanillaStore = useHMSVanillaStore();
87
+ const [ref, { width, height }] = useMeasure();
88
+ const isMobile = useMedia(config.media.lg);
89
+ const [pagesWithTiles, setPagesWithTiles] = useState([]);
90
+ useEffect2(() => {
91
+ if (width === 0 || height === 0) {
92
+ return;
93
+ }
94
+ for (const page of pageList) {
95
+ const noOfTilesInPage = page.length;
96
+ let maxCols = noOfTilesInPage > 2 && noOfTilesInPage < 9 ? Math.ceil(noOfTilesInPage / 2) : Math.ceil(Math.sqrt(noOfTilesInPage));
97
+ if (isMobile) {
98
+ maxCols = noOfTilesInPage < 4 ? 1 : Math.min(maxCols, 2);
99
+ }
100
+ const maxRows = Math.ceil(noOfTilesInPage / maxCols);
101
+ let index = 0;
102
+ const matrix = new Array(maxRows).fill(null).map((_, i) => {
103
+ const numCols = Math.min(maxCols, noOfTilesInPage - i * maxCols);
104
+ const rowElements = [];
105
+ for (let j = 0; j < numCols; j++) {
106
+ if (index < page.length) {
107
+ rowElements.push(page[index++]);
108
+ }
109
+ }
110
+ return rowElements;
111
+ });
112
+ const gap = edgeToEdge && isMobile ? 0 : 8;
113
+ const maxHeight = height - (maxRows - 1) * gap;
114
+ const maxRowHeight = maxHeight / matrix.length;
115
+ const aspectRatios = isMobile && (noOfTilesInPage === 1 || noOfTilesInPage > 3) ? aspectRatioConfig.mobile : aspectRatioConfig.default;
116
+ for (const row of matrix) {
117
+ let tileWidth = (width - (row.length - 1) * gap) / row.length;
118
+ let tileHeight = 0;
119
+ if (edgeToEdge) {
120
+ tileHeight = maxRowHeight;
121
+ } else {
122
+ const calcHeights = aspectRatios.map((aR) => tileWidth / aR);
123
+ for (const h of calcHeights) {
124
+ if (h < maxRowHeight) {
125
+ if (tileHeight < h) {
126
+ tileHeight = h;
127
+ }
128
+ }
129
+ }
130
+ if (tileHeight === 0) {
131
+ tileHeight = maxRowHeight;
132
+ const calcWidths = aspectRatios.map((aR) => tileHeight * aR);
133
+ tileWidth = 0;
134
+ for (const w of calcWidths) {
135
+ if (w < width) {
136
+ if (tileWidth < w) {
137
+ tileWidth = w;
138
+ }
139
+ }
140
+ }
141
+ }
142
+ }
143
+ for (let i = 0; i < row.length; i++) {
144
+ row[i].width = tileWidth;
145
+ row[i].height = tileHeight;
146
+ }
147
+ }
148
+ }
149
+ setPagesWithTiles([...pageList]);
150
+ }, [width, height, maxTileCount, pageList, vanillaStore, isMobile, edgeToEdge]);
151
+ return { pagesWithTiles, ref };
152
+ };
153
+
154
+ // src/Prebuilt/components/hooks/useVideoTileLayout.ts
155
+ init_define_process_env();
156
+ import React2, { useContext } from "react";
157
+ var VideoTileContext = React2.createContext({
158
+ enableSpotlightingPeer: true,
159
+ hideParticipantNameOnTile: false,
160
+ roundedVideoTile: true,
161
+ hideAudioMuteOnTile: false,
162
+ hideAudioLevelOnTile: false,
163
+ objectFit: "contain",
164
+ hideMetadataOnTile: false
165
+ });
166
+ var useVideoTileContext = () => {
167
+ const context = useContext(VideoTileContext);
168
+ return context;
169
+ };
170
+
171
+ export {
172
+ VideoTileContext,
173
+ useVideoTileContext,
174
+ Pagination,
175
+ usePagesWithTiles,
176
+ useTileLayout
177
+ };
178
+ //# sourceMappingURL=chunk-P6NV2XO4.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/Prebuilt/components/Pagination.tsx", "../src/Prebuilt/components/hooks/useTileLayout.tsx", "../src/Prebuilt/components/hooks/useVideoTileLayout.ts"],
4
+ "sourcesContent": ["import React, { useEffect } from 'react';\nimport { ChevronLeftIcon, ChevronRightIcon } from '@100mslive/react-icons';\nimport { StyledPagination } from '../../Pagination';\n\nexport const Pagination = ({\n page,\n onPageChange,\n numPages,\n}: {\n page: number;\n onPageChange: (page: number) => void;\n numPages: number;\n}) => {\n const disableLeft = page === 0;\n const disableRight = page === numPages - 1;\n const nextPage = (e: React.SyntheticEvent) => {\n e.stopPropagation();\n onPageChange(Math.min(page + 1, numPages - 1));\n };\n const prevPage = (e: React.SyntheticEvent) => {\n e.stopPropagation();\n onPageChange(Math.max(page - 1, 0));\n };\n\n useEffect(() => {\n // currentPageIndex should not exceed pages length\n if (page >= numPages) {\n onPageChange(Math.max(0, numPages - 1));\n }\n }, [numPages, onPageChange, page]);\n\n if (numPages <= 1) {\n return null;\n }\n\n return (\n <StyledPagination.Root css={{ flexShrink: 0 }}>\n <StyledPagination.Chevron disabled={disableLeft} onClick={prevPage}>\n <ChevronLeftIcon width={16} height={16} style={{ cursor: disableLeft ? 'not-allowed' : 'pointer' }} />\n </StyledPagination.Chevron>\n {numPages <= 5 ? (\n <StyledPagination.Dots>\n {[...Array(numPages)].map((_, i) => (\n <StyledPagination.Dot\n key={i}\n active={page === i}\n onClick={e => {\n e.stopPropagation();\n onPageChange(i);\n }}\n />\n ))}\n </StyledPagination.Dots>\n ) : null}\n <StyledPagination.Chevron disabled={disableRight} onClick={nextPage}>\n <ChevronRightIcon width={16} height={16} style={{ cursor: disableRight ? 'not-allowed' : 'pointer' }} />\n </StyledPagination.Chevron>\n </StyledPagination.Root>\n );\n};\n", "import { useEffect, useMemo, useState } from 'react';\nimport { useMeasure, useMedia } from 'react-use';\nimport {\n getPeersWithTiles,\n HMSPeer,\n selectTracksMap,\n TrackWithPeerAndDimensions,\n useHMSVanillaStore,\n} from '@100mslive/react-sdk';\nimport { config as cssConfig } from '../../../Theme';\n\nconst aspectRatioConfig = { default: [1 / 1, 4 / 3, 16 / 9], mobile: [1 / 1, 3 / 4, 9 / 16] };\n\nexport const usePagesWithTiles = ({ peers, maxTileCount }: { peers: HMSPeer[]; maxTileCount: number }) => {\n const vanillaStore = useHMSVanillaStore();\n const tracksMap = vanillaStore.getState(selectTracksMap);\n const peersWithTiles = useMemo(\n () => getPeersWithTiles(peers, tracksMap, () => false) as TrackWithPeerAndDimensions[],\n [peers, tracksMap],\n );\n const noOfPages = Math.ceil(peersWithTiles.length / maxTileCount);\n const pagesList = useMemo(() => {\n let sliceStart = 0;\n let remaining = peersWithTiles.length;\n const list = [];\n // split into pages\n for (let i = 0; i < noOfPages; i++) {\n const count = Math.min(remaining, maxTileCount);\n list.push(peersWithTiles.slice(sliceStart, sliceStart + count));\n remaining = remaining - count;\n sliceStart += count;\n }\n return list;\n }, [peersWithTiles, noOfPages, maxTileCount]);\n return pagesList;\n};\n\nexport const useTileLayout = ({\n pageList,\n maxTileCount,\n edgeToEdge = false,\n}: {\n pageList: TrackWithPeerAndDimensions[][];\n maxTileCount: number;\n edgeToEdge?: boolean;\n}) => {\n const vanillaStore = useHMSVanillaStore();\n const [ref, { width, height }] = useMeasure<HTMLDivElement>();\n const isMobile = useMedia(cssConfig.media.lg);\n const [pagesWithTiles, setPagesWithTiles] = useState<TrackWithPeerAndDimensions[][]>([]);\n\n useEffect(() => {\n if (width === 0 || height === 0) {\n return;\n }\n // calculate dimesions for each page\n for (const page of pageList) {\n const noOfTilesInPage = page.length;\n let maxCols =\n noOfTilesInPage > 2 && noOfTilesInPage < 9\n ? Math.ceil(noOfTilesInPage / 2)\n : Math.ceil(Math.sqrt(noOfTilesInPage));\n if (isMobile) {\n maxCols = noOfTilesInPage < 4 ? 1 : Math.min(maxCols, 2);\n }\n const maxRows = Math.ceil(noOfTilesInPage / maxCols);\n let index = 0;\n // convert the current page to a matrix(grid)\n const matrix = new Array(maxRows).fill(null).map((_, i) => {\n const numCols = Math.min(maxCols, noOfTilesInPage - i * maxCols);\n const rowElements = [];\n for (let j = 0; j < numCols; j++) {\n if (index < page.length) {\n rowElements.push(page[index++]);\n }\n }\n return rowElements;\n });\n\n const gap = edgeToEdge && isMobile ? 0 : 8; // gap between flex items\n const maxHeight = height - (maxRows - 1) * gap;\n const maxRowHeight = maxHeight / matrix.length;\n const aspectRatios =\n isMobile && (noOfTilesInPage === 1 || noOfTilesInPage > 3)\n ? aspectRatioConfig.mobile\n : aspectRatioConfig.default;\n // calculate height and width of each tile in a row\n for (const row of matrix) {\n let tileWidth = (width - (row.length - 1) * gap) / row.length;\n let tileHeight = 0;\n if (edgeToEdge) {\n tileHeight = maxRowHeight;\n } else {\n const calcHeights = aspectRatios.map(aR => tileWidth / aR);\n for (const h of calcHeights) {\n if (h < maxRowHeight) {\n if (tileHeight < h) {\n tileHeight = h;\n }\n }\n }\n\n // tileHeight is not calculated as it could be exceeding the max possible height\n // find the max possible width instead\n if (tileHeight === 0) {\n tileHeight = maxRowHeight;\n const calcWidths = aspectRatios.map(aR => tileHeight * aR);\n tileWidth = 0;\n for (const w of calcWidths) {\n if (w < width) {\n if (tileWidth < w) {\n tileWidth = w;\n }\n }\n }\n }\n }\n for (let i = 0; i < row.length; i++) {\n row[i].width = tileWidth;\n row[i].height = tileHeight;\n }\n }\n }\n setPagesWithTiles([...pageList]);\n }, [width, height, maxTileCount, pageList, vanillaStore, isMobile, edgeToEdge]);\n return { pagesWithTiles, ref };\n};\n", "import React, { useContext } from 'react';\n\ntype TileContextType = {\n enableSpotlightingPeer: boolean;\n hideParticipantNameOnTile?: boolean;\n roundedVideoTile?: boolean;\n hideAudioMuteOnTile?: boolean;\n hideAudioLevelOnTile?: boolean;\n objectFit?: 'cover' | 'contain';\n hideMetadataOnTile?: boolean;\n};\n\nexport const VideoTileContext = React.createContext<TileContextType>({\n enableSpotlightingPeer: true,\n hideParticipantNameOnTile: false,\n roundedVideoTile: true,\n hideAudioMuteOnTile: false,\n hideAudioLevelOnTile: false,\n objectFit: 'contain',\n hideMetadataOnTile: false,\n});\n\nexport const useVideoTileContext = () => {\n const context = useContext(VideoTileContext);\n return context;\n};\n"],
5
+ "mappings": ";;;;;;;;;AAAA;AAAA,OAAO,SAAS,iBAAiB;AACjC,SAAS,iBAAiB,wBAAwB;AAG3C,IAAM,aAAa,CAAC;AAAA,EACzB;AAAA,EACA;AAAA,EACA;AACF,MAIM;AACJ,QAAM,cAAc,SAAS;AAC7B,QAAM,eAAe,SAAS,WAAW;AACzC,QAAM,WAAW,CAAC,MAA4B;AAC5C,MAAE,gBAAgB;AAClB,iBAAa,KAAK,IAAI,OAAO,GAAG,WAAW,CAAC,CAAC;AAAA,EAC/C;AACA,QAAM,WAAW,CAAC,MAA4B;AAC5C,MAAE,gBAAgB;AAClB,iBAAa,KAAK,IAAI,OAAO,GAAG,CAAC,CAAC;AAAA,EACpC;AAEA,YAAU,MAAM;AAEd,QAAI,QAAQ,UAAU;AACpB,mBAAa,KAAK,IAAI,GAAG,WAAW,CAAC,CAAC;AAAA,IACxC;AAAA,EACF,GAAG,CAAC,UAAU,cAAc,IAAI,CAAC;AAEjC,MAAI,YAAY,GAAG;AACjB,WAAO;AAAA,EACT;AAEA,SACE,oCAAC,iBAAiB,MAAjB,EAAsB,KAAK,EAAE,YAA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EAClB,qBAAqB;AAAA,EACrB,sBAAsB;AAAA,EACtB,WAAW;AAAA,EACX,oBAAoB;AACtB,CAAC;AAEM,IAAM,sBAAsB,MAAM;AACvC,QAAM,UAAU,WAAW,gBAAgB;AAC3C,SAAO;AACT;",
6
+ "names": ["useEffect", "useEffect", "React"]
7
+ }
@@ -0,0 +1,71 @@
1
+ import {
2
+ Text
3
+ } from "./chunk-MUKUP7JU.js";
4
+ import {
5
+ Box,
6
+ Flex
7
+ } from "./chunk-GOXRTCTY.js";
8
+ import {
9
+ init_define_process_env
10
+ } from "./chunk-GLAJUP3O.js";
11
+
12
+ // src/Prebuilt/layouts/WaitingView.tsx
13
+ init_define_process_env();
14
+ import React from "react";
15
+ var WaitingView = React.memo(
16
+ ({ icon, title, subtitle }) => {
17
+ return /* @__PURE__ */ React.createElement(
18
+ Flex,
19
+ {
20
+ align: "center",
21
+ direction: "column",
22
+ css: {
23
+ textAlign: "center",
24
+ margin: "auto",
25
+ h: "100%",
26
+ justifyContent: "center",
27
+ gap: "$8"
28
+ }
29
+ },
30
+ /* @__PURE__ */ React.createElement(
31
+ Box,
32
+ {
33
+ css: {
34
+ backgroundColor: "$surface_default",
35
+ display: "flex",
36
+ alignItems: "center",
37
+ gap: "$4",
38
+ size: "$20",
39
+ r: "$round",
40
+ justifyContent: "center"
41
+ }
42
+ },
43
+ icon
44
+ ),
45
+ /* @__PURE__ */ React.createElement(
46
+ Flex,
47
+ {
48
+ direction: "column",
49
+ css: {
50
+ p: "$1",
51
+ gap: "$4"
52
+ }
53
+ },
54
+ /* @__PURE__ */ React.createElement(Text, { variant: "h4", css: { "@md": { fontSize: "$lg", color: "$on_surface_high" } } }, title),
55
+ /* @__PURE__ */ React.createElement(
56
+ Text,
57
+ {
58
+ variant: "body1",
59
+ css: { fontWeight: "$regular", color: "$on_surface_medium", "@md": { fontSize: "$md" } }
60
+ },
61
+ subtitle
62
+ )
63
+ )
64
+ );
65
+ }
66
+ );
67
+
68
+ export {
69
+ WaitingView
70
+ };
71
+ //# sourceMappingURL=chunk-REL3HBSD.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/Prebuilt/layouts/WaitingView.tsx"],
4
+ "sourcesContent": ["import React from 'react';\nimport { Box, Flex } from '../../Layout';\nimport { Text } from '../../Text';\n\nexport const WaitingView = React.memo(\n ({ icon, title, subtitle }: { icon: React.ReactNode; title: string; subtitle: string }) => {\n return (\n <Flex\n align=\"center\"\n direction=\"column\"\n css={{\n textAlign: 'center',\n margin: 'auto',\n h: '100%',\n justifyContent: 'center',\n gap: '$8',\n }}\n >\n <Box\n css={{\n backgroundColor: '$surface_default',\n display: 'flex',\n alignItems: 'center',\n gap: '$4',\n size: '$20',\n r: '$round',\n justifyContent: 'center',\n }}\n >\n {icon}\n </Box>\n <Flex\n direction=\"column\"\n css={{\n p: '$1',\n gap: '$4',\n }}\n >\n <Text variant=\"h4\" css={{ '@md': { fontSize: '$lg', color: '$on_surface_high' } }}>\n {title}\n </Text>\n <Text\n variant=\"body1\"\n css={{ fontWeight: '$regular', color: '$on_surface_medium', '@md': { fontSize: '$md' } }}\n >\n {subtitle}\n </Text>\n </Flex>\n </Flex>\n );\n },\n);\n"],
5
+ "mappings": ";;;;;;;;;;;;AAAA;AAAA,OAAO,WAAW;AAIX,IAAM,cAAc,MAAM;AAAA,EAC/B,CAAC,EAAE,MAAM,OAAO,SAAS,MAAkE;AACzF,WACE;AAAA,MAAC;AAAA;AAAA,QACC,OAAM;AAAA,QACN,WAAU;AAAA,QACV,KAAK;AAAA,UACH,WAAW;AAAA,UACX,QAAQ;AAAA,UACR,GAAG;AAAA,UACH,gBAAgB;AAAA,UAChB,KAAK;AAAA,QACP;AAAA;AAAA,MAEA;AAAA,QAAC;AAAA;AAAA,UACC,KAAK;AAAA,YACH,iBAAiB;AAAA,YACjB,SAAS;AAAA,YACT,YAAY;AAAA,YACZ,KAAK;AAAA,YACL,MAAM;AAAA,YACN,GAAG;AAAA,YACH,gBAAgB;AAAA,UAClB;AAAA;AAAA,QAEC;AAAA,MACH;AAAA,MACA;AAAA,QAAC;AAAA;AAAA,UACC,WAAU;AAAA,UACV,KAAK;AAAA,YACH,GAAG;AAAA,YACH,KAAK;AAAA,UACP;AAAA;AAAA,QAEA,oCAAC,QAAK,SAAQ,MAAK,KAAK,EAAE,OAAO,EAAE,UAAU,OAAO,OAAO,mBAAmB,EAAE,KAC7E,KACH;AAAA,QACA;AAAA,UAAC;AAAA;AAAA,YACC,SAAQ;AAAA,YACR,KAAK,EAAE,YAAY,YAAY,OAAO,sBAAsB,OAAO,EAAE,UAAU,MAAM,EAAE;AAAA;AAAA,UAEtF;AAAA,QACH;AAAA,MACF;AAAA,IACF;AAAA,EAEJ;AACF;",
6
+ "names": []
7
+ }