@apple-pie/slice 0.1.2 → 0.1.4

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 (149) hide show
  1. package/README.md +89 -27
  2. package/dist/cjs/chunks/{Button-TfMwGVI5.js → Button-krf4dQeL.js} +4 -2
  3. package/dist/cjs/chunks/{ButtonBar-BqGC6sad.js → ButtonBar-C9Nm9faU.js} +1 -1
  4. package/dist/cjs/chunks/{Camera-om1AA2D0.js → Camera-Dx_PT3pS.js} +63 -46
  5. package/dist/cjs/chunks/{Card-Ctwbhu26.js → Card-AgEMKJ4O.js} +1 -1
  6. package/dist/cjs/chunks/{CheckBox-CeDIiSvi.js → CheckBox-CLMxlUff.js} +1 -1
  7. package/dist/cjs/chunks/{Chip-DdTtB57x.js → Chip-CIy_Xe3i.js} +1 -1
  8. package/dist/cjs/chunks/{DropDown-CC90XfyD.js → DropDown-FZb52YxR.js} +1 -1
  9. package/dist/cjs/chunks/{FileList-ClTfGKIL.js → FileList-CkpMj-os.js} +1 -1
  10. package/dist/cjs/chunks/{Grouper-jiYhVC82.js → Grouper-Bgc1wrQM.js} +1 -1
  11. package/dist/cjs/chunks/{IconButton-BiUfqoPb.js → IconButton-CBWmUZxR.js} +1 -1
  12. package/dist/cjs/chunks/{ProgressIndicator-B3-OxGYF.js → ProgressIndicator-DVD-gD3T.js} +1 -1
  13. package/dist/cjs/chunks/{PromptInput-Dsziepzs.js → PromptInput-DULf5ock.js} +1 -1
  14. package/dist/cjs/chunks/{RadioButton-i5n_nNV5.js → RadioButton-Ce9uf54a.js} +1 -1
  15. package/dist/cjs/chunks/{RadioButtonList-BCdk-5aD.js → RadioButtonList-dhPr-Uhs.js} +1 -1
  16. package/dist/cjs/chunks/SSEConnection-B_yE8cXz.js +140 -0
  17. package/dist/cjs/chunks/{TabBar-BF5CvZ-v.js → TabBar-DuwypMB6.js} +1 -1
  18. package/dist/cjs/chunks/{TextArea-BmOomEKp.js → TextArea-BJCjRUEG.js} +1 -1
  19. package/dist/cjs/chunks/{TextField-CXMyCClp.js → TextField-CjT26H_6.js} +18 -16
  20. package/dist/cjs/chunks/{Toast-CQ0-yuzl.js → Toast-DMUM1wuL.js} +1 -1
  21. package/dist/cjs/chunks/{UploadArea-B5Xvp0H4.js → UploadArea-BE6but3t.js} +1 -1
  22. package/dist/cjs/chunks/WSConnection-DCBuJGmb.js +206 -0
  23. package/dist/cjs/chunks/{_types-Cxk9tRiB.js → _types-C_zOsCbB.js} +57 -50
  24. package/dist/cjs/chunks/colors-uej0anrN.js +27 -0
  25. package/dist/cjs/chunks/sseStore-CIIeshjm.js +59 -0
  26. package/dist/cjs/chunks/windowStore-CCxCOUqa.js +156 -0
  27. package/dist/cjs/components/Button/index.js +3 -3
  28. package/dist/cjs/components/ButtonBar/index.js +3 -3
  29. package/dist/cjs/components/Camera/index.js +4 -4
  30. package/dist/cjs/components/Card/index.js +2 -2
  31. package/dist/cjs/components/CheckBox/index.js +2 -2
  32. package/dist/cjs/components/Chip/index.js +2 -2
  33. package/dist/cjs/components/DropDown/index.js +2 -2
  34. package/dist/cjs/components/FileList/index.js +3 -3
  35. package/dist/cjs/components/Grouper/index.js +2 -2
  36. package/dist/cjs/components/Icon/index.js +1 -1
  37. package/dist/cjs/components/IconButton/index.js +2 -2
  38. package/dist/cjs/components/Progress/index.js +2 -2
  39. package/dist/cjs/components/PromptInput/index.js +5 -5
  40. package/dist/cjs/components/RadioButton/index.js +2 -2
  41. package/dist/cjs/components/RadioButtonList/index.js +3 -3
  42. package/dist/cjs/components/TabBar/index.js +3 -3
  43. package/dist/cjs/components/TextArea/index.js +4 -4
  44. package/dist/cjs/components/Textfield/index.js +5 -5
  45. package/dist/cjs/components/Toast/index.js +2 -2
  46. package/dist/cjs/components/UploadArea/index.js +4 -4
  47. package/dist/cjs/hooks/useWindow.js +46 -11
  48. package/dist/cjs/index.js +2 -2
  49. package/dist/cjs/stores/SSE.js +9 -0
  50. package/dist/cjs/stores/WS.js +62 -0
  51. package/dist/cjs/stores/window.js +14 -3
  52. package/dist/cjs/stores.js +20 -5
  53. package/dist/cjs/utils/index.js +4 -26
  54. package/dist/cjs/utils/objects/index.js +6 -0
  55. package/dist/esm/chunks/{Avatar-BQT1r-Ge.mjs → Avatar-CDMV6f9w.mjs} +1 -1
  56. package/dist/esm/chunks/{AvatarGroup-B787aNtD.mjs → AvatarGroup-BZ18GwhK.mjs} +1 -1
  57. package/dist/esm/chunks/{Button-1MgE-kl9.mjs → Button-kXFJmcKv.mjs} +5 -3
  58. package/dist/esm/chunks/{ButtonBar-Eahfd-40.mjs → ButtonBar-DIsqJmrS.mjs} +1 -1
  59. package/dist/esm/chunks/{Camera-Bvoug1KF.mjs → Camera-BvJJ5cd-.mjs} +65 -48
  60. package/dist/esm/chunks/{Card-RSZhXncV.mjs → Card-DjHdCav5.mjs} +1 -1
  61. package/dist/esm/chunks/{CheckBox-CfLedK0e.mjs → CheckBox-C1LPehvl.mjs} +1 -1
  62. package/dist/esm/chunks/{Chip-Db4N0WVH.mjs → Chip-ByaaWpFx.mjs} +1 -1
  63. package/dist/esm/chunks/{DivInput-BEpjdfu4.mjs → DivInput-B7BliU1p.mjs} +1 -1
  64. package/dist/esm/chunks/{DrggablePanel-DJm1Mx5u.mjs → DrggablePanel-DvactFf5.mjs} +1 -1
  65. package/dist/esm/chunks/{DropDown-ryz3GK81.mjs → DropDown-CM01mO_W.mjs} +1 -1
  66. package/dist/esm/chunks/{FileIcon-_mK2EcB2.mjs → FileIcon-CC_k5dUW.mjs} +1 -1
  67. package/dist/esm/chunks/{FileList-hCMTALyN.mjs → FileList-Bon537-t.mjs} +4 -4
  68. package/dist/esm/chunks/{Grouper-B1gjd3Sx.mjs → Grouper-DNmAYWdR.mjs} +1 -1
  69. package/dist/esm/chunks/{IconButton-SyRu990z.mjs → IconButton-C8RBNFzh.mjs} +1 -1
  70. package/dist/esm/chunks/{Label-DGOkB_Px.mjs → Label-DOvquc82.mjs} +1 -1
  71. package/dist/esm/chunks/{Pager-BA0lD9mI.mjs → Pager-BX4TMwD_.mjs} +1 -1
  72. package/dist/esm/chunks/{ProgressIndicator-BayyosKr.mjs → ProgressIndicator-D2eairZl.mjs} +1 -1
  73. package/dist/esm/chunks/{PromptInput-CUXCuYVA.mjs → PromptInput-DXFAZspz.mjs} +2 -2
  74. package/dist/esm/chunks/{RadioButton-BRFSVtmm.mjs → RadioButton-_lo_FJ8g.mjs} +2 -2
  75. package/dist/esm/chunks/{RadioButtonList-D6a_EcB6.mjs → RadioButtonList-CLHJxrI_.mjs} +1 -1
  76. package/dist/esm/chunks/SSEConnection-Dj9P0SWE.mjs +140 -0
  77. package/dist/esm/chunks/{Slider-D2XVyi2g.mjs → Slider-Bih21QiT.mjs} +1 -1
  78. package/dist/esm/chunks/{TabBar-BqajqueL.mjs → TabBar-CDDzA_m1.mjs} +2 -2
  79. package/dist/esm/chunks/{TextArea-C5EbLAN1.mjs → TextArea-DBmM6aQm.mjs} +1 -1
  80. package/dist/esm/chunks/{TextField-DnQxDxus.mjs → TextField-DyUTMegV.mjs} +20 -18
  81. package/dist/esm/chunks/{Tip-B64Pa9eq.mjs → Tip-B-cDOFvV.mjs} +1 -1
  82. package/dist/esm/chunks/{Toast-B3GgzcTW.mjs → Toast-ovxR12_-.mjs} +2 -2
  83. package/dist/esm/chunks/{UploadArea-DpWT-5DA.mjs → UploadArea-tT5V8q23.mjs} +4 -4
  84. package/dist/esm/chunks/WSConnection-DlYSitff.mjs +206 -0
  85. package/dist/esm/chunks/{_types-DGDKmYIh.mjs → _types-CTmvSEX0.mjs} +36 -29
  86. package/dist/esm/chunks/colors-DR9fLI5X.mjs +30 -0
  87. package/dist/esm/chunks/{misc-Osk7tIah.mjs → misc-cg9I7drO.mjs} +1 -1
  88. package/dist/esm/chunks/sseStore-DdqmnAAf.mjs +56 -0
  89. package/dist/esm/chunks/windowStore-BOTh1g37.mjs +148 -0
  90. package/dist/esm/components/Avatar/index.mjs +2 -2
  91. package/dist/esm/components/AvatarGroup/index.mjs +3 -3
  92. package/dist/esm/components/Button/index.mjs +4 -4
  93. package/dist/esm/components/ButtonBar/index.mjs +4 -4
  94. package/dist/esm/components/Camera/index.mjs +5 -5
  95. package/dist/esm/components/Card/index.mjs +3 -3
  96. package/dist/esm/components/CheckBox/index.mjs +3 -3
  97. package/dist/esm/components/Chip/index.mjs +3 -3
  98. package/dist/esm/components/DivInput/index.mjs +2 -2
  99. package/dist/esm/components/DraggablePanel/index.mjs +2 -2
  100. package/dist/esm/components/DropDown/index.mjs +3 -3
  101. package/dist/esm/components/FileIcon/index.mjs +2 -2
  102. package/dist/esm/components/FileList/index.mjs +5 -5
  103. package/dist/esm/components/Grouper/index.mjs +3 -3
  104. package/dist/esm/components/Icon/index.mjs +2 -2
  105. package/dist/esm/components/IconButton/index.mjs +3 -3
  106. package/dist/esm/components/Label/index.mjs +2 -2
  107. package/dist/esm/components/Pager/index.mjs +2 -2
  108. package/dist/esm/components/Progress/index.mjs +3 -3
  109. package/dist/esm/components/PromptInput/index.mjs +7 -7
  110. package/dist/esm/components/RadioButton/index.mjs +3 -3
  111. package/dist/esm/components/RadioButtonList/index.mjs +4 -4
  112. package/dist/esm/components/Slider/index.mjs +2 -2
  113. package/dist/esm/components/TabBar/index.mjs +4 -4
  114. package/dist/esm/components/TextArea/index.mjs +5 -5
  115. package/dist/esm/components/Textfield/index.mjs +6 -6
  116. package/dist/esm/components/Tip/index.mjs +2 -2
  117. package/dist/esm/components/Toast/index.mjs +3 -3
  118. package/dist/esm/components/UploadArea/index.mjs +6 -6
  119. package/dist/esm/hooks/useTrackRenders.mjs +1 -1
  120. package/dist/esm/hooks/useWindow.mjs +47 -11
  121. package/dist/esm/index.mjs +31 -31
  122. package/dist/esm/stores/SSE.mjs +7 -0
  123. package/dist/esm/stores/WS.mjs +59 -0
  124. package/dist/esm/stores/window.mjs +3 -1
  125. package/dist/esm/stores.mjs +6 -2
  126. package/dist/esm/utils/index.mjs +6 -30
  127. package/dist/esm/utils/objects/index.mjs +5 -0
  128. package/dist/types/components/Camera/_types.d.ts +1 -0
  129. package/dist/types/components/Icon/_types.d.ts +1 -0
  130. package/dist/types/hooks/index.d.ts +1 -1
  131. package/dist/types/hooks/useWindow/useWindow.d.ts +19 -0
  132. package/dist/types/index.d.ts +1 -1
  133. package/dist/types/stores/SSE/_types.d.ts +17 -0
  134. package/dist/types/stores/SSE/index.d.ts +2 -0
  135. package/dist/types/stores/SSE/sseStore.d.ts +28 -0
  136. package/dist/types/stores/WS/_types.d.ts +17 -0
  137. package/dist/types/stores/WS/index.d.ts +2 -0
  138. package/dist/types/stores/WS/wsStore.d.ts +19 -0
  139. package/dist/types/stores/index.d.ts +1 -0
  140. package/dist/types/stores/window/_types.d.ts +5 -0
  141. package/dist/types/stores/window/index.d.ts +3 -2
  142. package/dist/types/stores/window/windowStore.d.ts +8 -0
  143. package/dist/types/utils/index.d.ts +2 -0
  144. package/dist/types/utils/objects/SSEConnection/SSEConnection.d.ts +166 -0
  145. package/dist/types/utils/objects/WSConnection/WSConnection.d.ts +147 -0
  146. package/dist/types/utils/objects/index.d.ts +4 -0
  147. package/package.json +6 -1
  148. package/dist/cjs/chunks/windowStore-RaJswiHM.js +0 -70
  149. package/dist/esm/chunks/windowStore-CwW0i_le.mjs +0 -71
@@ -0,0 +1,140 @@
1
+ class SSEConnection {
2
+ /**
3
+ * Whether the underlying EventSource is currently open.
4
+ */
5
+ get connected() {
6
+ var _a;
7
+ return (null === (_a = this.sseConnection) || void 0 === _a ? void 0 : _a.readyState) === EventSource.OPEN;
8
+ }
9
+ /**
10
+ * Direct access to the underlying EventSource instance.
11
+ */ get connection() {
12
+ return this.sseConnection;
13
+ }
14
+ /**
15
+ * Create an SEE connection instance
16
+ */ constructor(options) {
17
+ var _a, _b, _c;
18
+ this.sseConnection = null, this.customEventHandlers = new Map, this.unifiedOnMessage = !1,
19
+ /**
20
+ * One message received
21
+ */
22
+ this.onMessage = event => {
23
+ const data = this.parseEventData(event.data);
24
+ this.emitUnifiedMessage({
25
+ type: "message",
26
+ data: data,
27
+ event: event
28
+ }), this.emitParsedMessage(data), this.shouldCloseFromMessage(event.data, data) && this.closeFromConnectionEvent();
29
+ },
30
+ /**
31
+ * On error event
32
+ */
33
+ this.onError = event => {
34
+ var _a;
35
+ null === (_a = this.onErrorCallback) || void 0 === _a || _a.call(this, event), this.emitUnifiedMessage({
36
+ type: "error",
37
+ event: event
38
+ });
39
+ },
40
+ /**
41
+ * On open event
42
+ */
43
+ this.onOpen = event => {
44
+ var _a;
45
+ null === (_a = this.onOpenCallback) || void 0 === _a || _a.call(this, event), this.emitUnifiedMessage({
46
+ type: "open",
47
+ event: event
48
+ });
49
+ },
50
+ /**
51
+ * Close the SSE connection and release resources.
52
+ */
53
+ this.close = () => {
54
+ this.sseConnection && (this.detachAllEventListeners(this.sseConnection), this.sseConnection.close(),
55
+ this.sseConnection = null);
56
+ }, this.url = null !== (_a = null == options ? void 0 : options.url) && void 0 !== _a ? _a : "",
57
+ this.options = null !== (_b = null == options ? void 0 : options.options) && void 0 !== _b ? _b : void 0,
58
+ this.unifiedOnMessage = null !== (_c = null == options ? void 0 : options.unifiedOnMessage) && void 0 !== _c && _c,
59
+ this.onMessageCallback = null == options ? void 0 : options.onMessageCallback, this.onErrorCallback = null == options ? void 0 : options.onErrorCallback,
60
+ this.onOpenCallback = null == options ? void 0 : options.onOpenCallback, this.onCloseCallback = null == options ? void 0 : options.onCloseCallback,
61
+ this.connectionClose = null == options ? void 0 : options.connectionClose, (null == options ? void 0 : options.customEvents) ? this.customEvents = Array.isArray(null == options ? void 0 : options.customEvents) ? options.customEvents : [ options.customEvents ] : this.customEvents = [],
62
+ this.sseConnection = new EventSource(this.url, this.options), this.attachDefaultEventListeners(this.sseConnection),
63
+ this.customEvents.length > 0 && this.attachCustomEventListeners(this.customEvents);
64
+ }
65
+ /**
66
+ * Safely parse SSE event data. Falls back to the raw string when the payload is not JSON.
67
+ */ parseEventData(rawData) {
68
+ try {
69
+ return JSON.parse(rawData);
70
+ } catch (_a) {
71
+ return rawData;
72
+ }
73
+ }
74
+ /**
75
+ * Attach default SEE events
76
+ */ attachDefaultEventListeners(connection) {
77
+ connection.addEventListener("message", this.onMessage), connection.addEventListener("error", this.onError),
78
+ connection.addEventListener("open", this.onOpen);
79
+ }
80
+ emitParsedMessage(data) {
81
+ var _a;
82
+ this.unifiedOnMessage || null === (_a = this.onMessageCallback) || void 0 === _a || _a.call(this, data);
83
+ }
84
+ emitUnifiedMessage(message) {
85
+ var _a;
86
+ this.unifiedOnMessage && (null === (_a = this.onMessageCallback) || void 0 === _a || _a.call(this, message));
87
+ }
88
+ emitCloseEvent(event) {
89
+ var _a;
90
+ null === (_a = this.onCloseCallback) || void 0 === _a || _a.call(this, event), this.emitUnifiedMessage({
91
+ type: "close",
92
+ event: event
93
+ });
94
+ }
95
+ closeFromConnectionEvent() {
96
+ const closeEvent = new Event("close");
97
+ this.emitCloseEvent(closeEvent), this.close();
98
+ }
99
+ shouldCloseFromMessage(rawData, data) {
100
+ var _a;
101
+ return !!(null === (_a = this.connectionClose) || void 0 === _a ? void 0 : _a.message) && (rawData === this.connectionClose.message || data === this.connectionClose.message);
102
+ }
103
+ emitUnifiedCustomMessage(customEvent, data, event) {
104
+ this.emitUnifiedMessage({
105
+ type: customEvent.name,
106
+ data: data,
107
+ event: event
108
+ });
109
+ }
110
+ /**
111
+ * Attach custom event listeners to the SSE connection
112
+ */ attachCustomEventListener(customEvent) {
113
+ var _a;
114
+ if (!this.sseConnection) return;
115
+ const handler = eventInfo => {
116
+ var _a, _b;
117
+ const data = this.parseEventData(eventInfo.data);
118
+ null === (_a = customEvent.handler) || void 0 === _a || _a.call(customEvent, data),
119
+ this.emitUnifiedCustomMessage(customEvent, data, eventInfo), (null === (_b = this.connectionClose) || void 0 === _b ? void 0 : _b.event) === customEvent.name && this.closeFromConnectionEvent();
120
+ }, currentHandlers = null !== (_a = this.customEventHandlers.get(customEvent.name)) && void 0 !== _a ? _a : [];
121
+ currentHandlers.push(handler), this.customEventHandlers.set(customEvent.name, currentHandlers),
122
+ this.sseConnection.addEventListener(customEvent.name, handler);
123
+ }
124
+ /**
125
+ * Attach custom event listeners to the SSE connection
126
+ */ attachCustomEventListeners(customEvents) {
127
+ const events = Array.isArray(customEvents) ? customEvents : [ customEvents ];
128
+ for (const event of events) this.attachCustomEventListener(event);
129
+ }
130
+ /**
131
+ * Clean up listeners
132
+ */ detachAllEventListeners(connection) {
133
+ connection.removeEventListener("message", this.onMessage), connection.removeEventListener("error", this.onError),
134
+ connection.removeEventListener("open", this.onOpen);
135
+ for (const [eventName, handlers] of this.customEventHandlers.entries()) for (const handler of handlers) connection.removeEventListener(eventName, handler);
136
+ this.customEventHandlers.clear();
137
+ }
138
+ }
139
+
140
+ export { SSEConnection as S };
@@ -6,7 +6,7 @@ import React, { useRef, useMemo, useCallback, useEffect } from "react";
6
6
 
7
7
  import { useObserveResize } from "../hooks/useObserveResize.mjs";
8
8
 
9
- import { p as pointerPosition } from "./misc-Osk7tIah.mjs";
9
+ import { p as pointerPosition } from "./misc-cg9I7drO.mjs";
10
10
 
11
11
  import { s as styleInject } from "./style-inject.es-D0BjEaN8.mjs";
12
12
 
@@ -12,9 +12,9 @@ import "../hooks/useWindow.mjs";
12
12
 
13
13
  import { B as Badge } from "./Badge-DyICxZP2.mjs";
14
14
 
15
- import { I as Icon } from "./_types-DGDKmYIh.mjs";
15
+ import { I as Icon } from "./_types-CTmvSEX0.mjs";
16
16
 
17
- import { I as IconButton } from "./IconButton-SyRu990z.mjs";
17
+ import { I as IconButton } from "./IconButton-C8RBNFzh.mjs";
18
18
 
19
19
  import { T as ToolTipType } from "./sharedTypes-tn9-uJvb.mjs";
20
20
 
@@ -4,7 +4,7 @@ import { jsxs, jsx } from "react/jsx-runtime";
4
4
 
5
5
  import React, { useState, useRef, useCallback, useEffect, useMemo } from "react";
6
6
 
7
- import { B as Button } from "./Button-1MgE-kl9.mjs";
7
+ import { B as Button } from "./Button-kXFJmcKv.mjs";
8
8
 
9
9
  import { s as styleInject } from "./style-inject.es-D0BjEaN8.mjs";
10
10
 
@@ -12,11 +12,11 @@ import "../theme/colors.mjs";
12
12
 
13
13
  import "../hooks/useWindow.mjs";
14
14
 
15
- import { B as Button } from "./Button-1MgE-kl9.mjs";
15
+ import { B as Button } from "./Button-kXFJmcKv.mjs";
16
16
 
17
- import { I as Icon } from "./_types-DGDKmYIh.mjs";
17
+ import { I as Icon } from "./_types-CTmvSEX0.mjs";
18
18
 
19
- import { I as IconButton } from "./IconButton-SyRu990z.mjs";
19
+ import { I as IconButton } from "./IconButton-C8RBNFzh.mjs";
20
20
 
21
21
  import { s as styleInject } from "./style-inject.es-D0BjEaN8.mjs";
22
22
 
@@ -66,7 +66,7 @@ const MOTION_CONFIG = {
66
66
  error: "var(--feedback-warning)",
67
67
  placeholder: "var(--core-text-disabled)",
68
68
  disabled: "var(--core-text-disabled)",
69
- label: "var(--core-text-tertiary)"
69
+ label: "var(--core-text-primary)"
70
70
  }, iconLeft: iconLeft = null, clearButton: clearButton = {
71
71
  size: 20
72
72
  }, clearBlurs: clearBlurs = !1, disabled: disabled = !1, inputType: inputType = "text"} = props, divAttributes = __rest(props, [ "name", "value", "label", "labelSize", "textSize", "placeholder", "focused", "onSubmit", "onChange", "onBlur", "onFocus", "onKeydown", "onAction", "onPaste", "onClear", "onValidate", "actionButton", "maxLength", "size", "padding", "borderRadius", "editable", "textAlign", "isValid", "inline", "noShow", "borderType", "validate", "borderColor", "backgroundColor", "color", "iconLeft", "clearButton", "clearBlurs", "disabled", "inputType" ]), {id: divId, className: className, style: style} = divAttributes, rest = __rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", input = useRef(null), [text, setText] = useState(value), [isFocused, setIsFocused] = useState(focused), [valid, setValid] = useState(isValid), [show, setShow] = useState(!1);
@@ -85,17 +85,19 @@ const MOTION_CONFIG = {
85
85
  (null == input ? void 0 : input.current) && (clearBlurs || input.current.focus(),
86
86
  setText(""), textIsValid("")), onChange(""), onClear();
87
87
  }, [ clearBlurs, onChange, onClear, textIsValid ]), handleValueChange = useCallback(newValue => {
88
- setText(newValue), onChange(newValue), valid || textIsValid(text);
89
- }, [ onChange, textIsValid, text, valid ]), handleBlur = useCallback(() => {
90
- textIsValid(text), setIsFocused(!1), onBlur(text);
91
- }, [ text, onBlur, textIsValid ]), handleKeyDown = useCallback(e => {
88
+ disabled || (setText(newValue), onChange(newValue), valid || textIsValid(text));
89
+ }, [ onChange, textIsValid, text, valid, disabled ]), handleBlur = useCallback(() => {
90
+ disabled || (textIsValid(text), setIsFocused(!1), onBlur(text));
91
+ }, [ text, onBlur, textIsValid, disabled ]), handleKeyDown = useCallback(e => {
92
92
  var _a;
93
- if ("Enter" === e.key && (handleBlur(), onSubmit(text), null === (_a = input.current) || void 0 === _a || _a.blur()),
94
- disabled) return e.preventDefault(), !0;
95
- onKeydown(e.key, e);
93
+ if (!disabled) {
94
+ if ("Enter" === e.key && (handleBlur(), onSubmit(text), null === (_a = input.current) || void 0 === _a || _a.blur()),
95
+ disabled) return e.preventDefault(), !0;
96
+ onKeydown(e.key, e);
97
+ }
96
98
  }, [ text, disabled, onSubmit, onKeydown, handleBlur ]), handleFocus = useCallback(() => {
97
- setIsFocused(!0), onFocus(text);
98
- }, [ text, onFocus ]), toggleShow = useCallback(() => {
99
+ disabled || (setIsFocused(!0), onFocus(text));
100
+ }, [ text, onFocus, disabled ]), toggleShow = useCallback(() => {
99
101
  setShow(prev => !prev);
100
102
  }, []), iconContainerStyle = useMemo(() => iconLeft ? {
101
103
  width: iconLeft.size,
@@ -113,7 +115,7 @@ const MOTION_CONFIG = {
113
115
  var _a, _b, _c;
114
116
  return validate && !valid ? null !== (_a = color.error) && void 0 !== _a ? _a : "var(--core-text-primary)" : isFocused ? null !== (_b = color.focused) && void 0 !== _b ? _b : "var(--core-text-primary)" : null !== (_c = color.blurred) && void 0 !== _c ? _c : "var(--core-text-primary)";
115
117
  }, [ isFocused, valid, color, validate ]), setTextAlign = useMemo(() => null != textAlign ? textAlign : "left", [ textAlign ]), setShowOpacity = useMemo(() => "password" !== inputType ? "0" : isFocused ? "1" : "0.5", [ inputType, isFocused ]), cssVars = useMemo(() => {
116
- var _a, _b;
118
+ var _a;
117
119
  return {
118
120
  "--tf-width": setStyleValue(size.width),
119
121
  "--tf-height": setStyleValue(size.height),
@@ -123,12 +125,12 @@ const MOTION_CONFIG = {
123
125
  "--tf-bg-color": setBackgroundColor,
124
126
  "--tf-box-shadow": setBoxShadow,
125
127
  "--tf-color": textColor,
126
- "--tf-label-color": null !== (_a = color.label) && void 0 !== _a ? _a : "var(--core-text-disabled)",
128
+ "--tf-label-color": disabled ? "var(--core-text-disabled)" : color.label,
127
129
  "--tf-text-align": setTextAlign,
128
130
  "--tf-show-opacity": setShowOpacity,
129
- "--tf-placeholder-color": null !== (_b = color.placeholder) && void 0 !== _b ? _b : "var(--core-text-disabled)"
131
+ "--tf-placeholder-color": null !== (_a = color.placeholder) && void 0 !== _a ? _a : "var(--core-text-disabled)"
130
132
  };
131
- }, [ size, padding, label, borderRadius, setStyleValue, setBackgroundColor, setBoxShadow, textColor, setTextAlign, setShowOpacity, color ]);
133
+ }, [ size, padding, label, borderRadius, setStyleValue, setBackgroundColor, setBoxShadow, textColor, setTextAlign, setShowOpacity, color, disabled ]);
132
134
  return jsxs("div", Object.assign({
133
135
  id: divId,
134
136
  className: `${css.wrapper}${divClass}`,
@@ -163,7 +165,7 @@ const MOTION_CONFIG = {
163
165
  onFocus: handleFocus,
164
166
  onBlur: handleBlur,
165
167
  onMouseDown: e => e.stopPropagation(),
166
- disabled: !editable,
168
+ disabled: !editable || disabled,
167
169
  maxLength: maxLength
168
170
  }), jsx(AnimatePresence, {
169
171
  initial: !1,
@@ -6,7 +6,7 @@ import { motion } from "motion/react";
6
6
 
7
7
  import React, { useState, useRef, useEffect, useMemo } from "react";
8
8
 
9
- import { f as filterClasses } from "./misc-Osk7tIah.mjs";
9
+ import { f as filterClasses } from "./misc-cg9I7drO.mjs";
10
10
 
11
11
  import { s as styleInject } from "./style-inject.es-D0BjEaN8.mjs";
12
12
 
@@ -12,9 +12,9 @@ import "../theme/colors.mjs";
12
12
 
13
13
  import "../hooks/useWindow.mjs";
14
14
 
15
- import { s as setStyle, f as filterClasses, a as accessibleKeyDown } from "./misc-Osk7tIah.mjs";
15
+ import { s as setStyle, f as filterClasses, a as accessibleKeyDown } from "./misc-cg9I7drO.mjs";
16
16
 
17
- import { I as Icon } from "./_types-DGDKmYIh.mjs";
17
+ import { I as Icon } from "./_types-CTmvSEX0.mjs";
18
18
 
19
19
  import { s as styleInject } from "./style-inject.es-D0BjEaN8.mjs";
20
20
 
@@ -2,15 +2,15 @@ import { jsxs, jsx } from "react/jsx-runtime";
2
2
 
3
3
  import React, { useState, useRef, useCallback, useMemo } from "react";
4
4
 
5
- import { s as setStyle, a as accessibleKeyDown } from "./misc-Osk7tIah.mjs";
5
+ import { s as setStyle, a as accessibleKeyDown } from "./misc-cg9I7drO.mjs";
6
6
 
7
- import { I as Icon } from "./_types-DGDKmYIh.mjs";
7
+ import { I as Icon } from "./_types-CTmvSEX0.mjs";
8
8
 
9
- import { P as ProgressIndicator } from "./ProgressIndicator-BayyosKr.mjs";
9
+ import { P as ProgressIndicator } from "./ProgressIndicator-D2eairZl.mjs";
10
10
 
11
11
  import { s as styleInject } from "./style-inject.es-D0BjEaN8.mjs";
12
12
 
13
- import { F as FileList } from "./FileList-hCMTALyN.mjs";
13
+ import { F as FileList } from "./FileList-Bon537-t.mjs";
14
14
 
15
15
  var css = {
16
16
  wrapper: "UploadArea-module_wrapper__aircC flexBox-module_column__ezvMq",
@@ -0,0 +1,206 @@
1
+ import { a as __awaiter } from "./tslib.es6-c-7TIv71.mjs";
2
+
3
+ class WSConnection {
4
+ get connected() {
5
+ var _a;
6
+ return (null === (_a = this.socket) || void 0 === _a ? void 0 : _a.readyState) === WebSocket.OPEN;
7
+ }
8
+ get connection() {
9
+ return this.socket;
10
+ }
11
+ constructor(options) {
12
+ var _a, _b, _c, _d, _e, _f, _g, _h;
13
+ if (this.socket = null, this.keepAliveTimer = null, this.reconnectIntervalTimer = null,
14
+ this.reconnectAttemptsCount = 0, this.manuallyClosed = !1,
15
+ /**
16
+ * Open handler
17
+ */
18
+ this.onOpen = event => __awaiter(this, void 0, void 0, function*() {
19
+ var _a;
20
+ if (this.clearReconnectTimer(), this.reconnectAttemptsCount = 0, this.manuallyClosed = !1,
21
+ null === (_a = this.onOpenCallback) || void 0 === _a || _a.call(this, event), this.emitUnifiedMessage({
22
+ type: "open",
23
+ event: event
24
+ }), this.token) try {
25
+ const token = "string" == typeof this.token ? this.token : yield this.token();
26
+ if (!token) return void this.closeSocket({
27
+ code: 1e3,
28
+ reason: "Access token not provided"
29
+ });
30
+ this.send({
31
+ token: token
32
+ });
33
+ } catch (error) {
34
+ const errorEvent = new ErrorEvent("token error", {
35
+ message: "Failed to resolve access token",
36
+ error: error
37
+ });
38
+ return this.emitErrorEvent(errorEvent), void this.closeSocket({
39
+ code: 1011,
40
+ reason: "Access token resolution failed"
41
+ });
42
+ }
43
+ this.keepAlive && this.setKeepAlive();
44
+ }),
45
+ /**
46
+ * Message handler
47
+ */
48
+ this.onMessage = event => {
49
+ const data = this.parseEventData(event.data);
50
+ void 0 !== data && (this.emitParsedMessage(data), this.emitUnifiedMessage({
51
+ type: "message",
52
+ data: data,
53
+ event: event
54
+ }));
55
+ },
56
+ /**
57
+ * Close handler with the reconnection logic as needed
58
+ */
59
+ this.onClose = event => {
60
+ var _a;
61
+ null === (_a = this.onCloseCallback) || void 0 === _a || _a.call(this, event), this.emitUnifiedMessage({
62
+ type: "close",
63
+ event: event
64
+ }), this.closeSocket(event), this.shouldReconnect(event) && this.reconnect();
65
+ },
66
+ /**
67
+ * Error handler
68
+ */
69
+ this.onError = event => {
70
+ const error = event instanceof ErrorEvent ? event : new ErrorEvent("websocket error", {
71
+ message: "WebSocket connection error"
72
+ });
73
+ this.emitErrorEvent(error);
74
+ }, this.url = options.url, this.autoReconnect = null === (_a = options.autoReconnect) || void 0 === _a || _a,
75
+ this.reconnectInterval = null !== (_b = options.reconnectInterval) && void 0 !== _b ? _b : 1e3,
76
+ this.reconnectAttempts = null !== (_c = options.reconnectAttempts) && void 0 !== _c ? _c : 5,
77
+ this.reconnectFalloff = null === (_d = options.reconnectFalloff) || void 0 === _d || _d,
78
+ this.keepAlive = null === (_e = options.keepAlive) || void 0 === _e || _e, this.keepAliveInterval = null !== (_f = options.keepAliveInterval) && void 0 !== _f ? _f : 3e4,
79
+ this.unifiedMessages = null !== (_g = options.unifiedMessages) && void 0 !== _g && _g,
80
+ this.token = null !== (_h = options.token) && void 0 !== _h ? _h : "", this.onMessageCallback = options.onMessageCallback,
81
+ this.onOpenCallback = options.onOpenCallback, this.onCloseCallback = options.onCloseCallback,
82
+ this.onErrorCallback = options.onErrorCallback, "undefined" == typeof WebSocket) throw new TypeError("WebSocket is not supported in this environment.");
83
+ this.connect();
84
+ }
85
+ /**
86
+ * Gracefully handle sending messages
87
+ */ send(message) {
88
+ var _a;
89
+ const data = "string" == typeof message ? message : JSON.stringify(message);
90
+ null === (_a = this.socket) || void 0 === _a || _a.send(data);
91
+ }
92
+ /**
93
+ * Gracefully expose socket close
94
+ */ close(closeEvent) {
95
+ this.manuallyClosed = !0, this.clearReconnectTimer(), this.reconnectAttemptsCount = 0,
96
+ this.closeSocket(closeEvent);
97
+ }
98
+ /**
99
+ * Emit the parsed message content for standard mode
100
+ */ emitParsedMessage(data) {
101
+ if (this.unifiedMessages) return;
102
+ const callback = this.onMessageCallback;
103
+ null == callback || callback(data);
104
+ }
105
+ /**
106
+ * Emit a unified message if the unified flag is on
107
+ */ emitUnifiedMessage(message) {
108
+ if (!this.unifiedMessages) return;
109
+ const callback = this.onMessageCallback;
110
+ null == callback || callback(message);
111
+ }
112
+ /**
113
+ * Emit error
114
+ */ emitErrorEvent(error) {
115
+ var _a;
116
+ null === (_a = this.onErrorCallback) || void 0 === _a || _a.call(this, error), this.emitUnifiedMessage({
117
+ type: "error",
118
+ event: error
119
+ });
120
+ }
121
+ /**
122
+ * Safe JSON parse message content
123
+ */ parseEventData(rawData) {
124
+ if (rawData instanceof Blob || rawData instanceof ArrayBuffer || "string" == typeof rawData) {
125
+ if ("string" != typeof rawData) return rawData;
126
+ try {
127
+ return JSON.parse(rawData);
128
+ } catch (_a) {
129
+ return rawData;
130
+ }
131
+ }
132
+ this.emitErrorEvent(new ErrorEvent("parse error", {
133
+ message: "Unsupported websocket message data format"
134
+ }));
135
+ }
136
+ /**
137
+ * Attach socket listeners
138
+ */ attachEventListeners() {
139
+ this.socket && (this.socket.addEventListener("open", this.onOpen), this.socket.addEventListener("message", this.onMessage),
140
+ this.socket.addEventListener("close", this.onClose), this.socket.addEventListener("error", this.onError));
141
+ }
142
+ /**
143
+ * set keep alive pings
144
+ */ setKeepAlive() {
145
+ this.socket && this.keepAlive && (this.keepAliveTimer && clearInterval(this.keepAliveTimer),
146
+ this.keepAliveTimer = setInterval(() => {
147
+ var _a;
148
+ (null === (_a = this.socket) || void 0 === _a ? void 0 : _a.readyState) === WebSocket.OPEN && this.socket.send("ping");
149
+ }, this.keepAliveInterval));
150
+ }
151
+ /**
152
+ * Clear keep alive pings
153
+ */ clearKeepAliveTimer() {
154
+ this.keepAliveTimer && (clearInterval(this.keepAliveTimer), this.keepAliveTimer = null);
155
+ }
156
+ /**
157
+ * Clear reconnect timer
158
+ */ clearReconnectTimer() {
159
+ this.reconnectIntervalTimer && (clearTimeout(this.reconnectIntervalTimer), this.reconnectIntervalTimer = null);
160
+ }
161
+ /**
162
+ * detach all event listeners
163
+ */ detachEventListeners() {
164
+ this.socket && (this.socket.removeEventListener("open", this.onOpen), this.socket.removeEventListener("message", this.onMessage),
165
+ this.socket.removeEventListener("close", this.onClose), this.socket.removeEventListener("error", this.onError));
166
+ }
167
+ /**
168
+ * Connect the socket
169
+ */ connect() {
170
+ var _a, _b;
171
+ (null === (_a = this.socket) || void 0 === _a ? void 0 : _a.readyState) !== WebSocket.OPEN && (null === (_b = this.socket) || void 0 === _b ? void 0 : _b.readyState) !== WebSocket.CONNECTING && (this.socket = new WebSocket(this.url),
172
+ this.attachEventListeners());
173
+ }
174
+ /**
175
+ * Reconnect logic
176
+ */ reconnect() {
177
+ if (!this.autoReconnect || this.manuallyClosed) return;
178
+ if (this.reconnectIntervalTimer) return;
179
+ const nextAttempt = this.reconnectAttemptsCount + 1;
180
+ if (nextAttempt > this.reconnectAttempts) return;
181
+ this.reconnectAttemptsCount = nextAttempt;
182
+ const delay = this.getReconnectDelay(nextAttempt);
183
+ this.reconnectIntervalTimer = setTimeout(() => {
184
+ this.reconnectIntervalTimer = null, this.manuallyClosed || this.connect();
185
+ }, delay);
186
+ }
187
+ /**
188
+ * Calculate reconnect delay with fall off
189
+ */ getReconnectDelay(attempt) {
190
+ return this.reconnectFalloff ? this.reconnectInterval * Math.pow(2, attempt - 1) : this.reconnectInterval;
191
+ }
192
+ /**
193
+ * Determine if should reconnect based on the close event and props
194
+ */ shouldReconnect(event) {
195
+ var _a, _b;
196
+ return (null === (_a = this.socket) || void 0 === _a ? void 0 : _a.readyState) !== WebSocket.CONNECTING && (null === (_b = this.socket) || void 0 === _b ? void 0 : _b.readyState) !== WebSocket.OPEN && (this.autoReconnect && !this.manuallyClosed && !event.wasClean);
197
+ }
198
+ /**
199
+ * Internal close socket - does not reset retry logic
200
+ */ closeSocket(closeEvent) {
201
+ this.socket && (this.clearKeepAliveTimer(), this.detachEventListeners(), this.socket.readyState !== WebSocket.CLOSED && this.socket.readyState !== WebSocket.CLOSING && this.socket.close(closeEvent.code || 1e3, closeEvent.reason || "Clean shutdown"),
202
+ this.socket = null, this.keepAliveTimer = null);
203
+ }
204
+ }
205
+
206
+ export { WSConnection as W };
@@ -10,7 +10,7 @@ import "../theme/colors.mjs";
10
10
 
11
11
  import "../hooks/useWindow.mjs";
12
12
 
13
- import { a as accessibleKeyDown } from "./misc-Osk7tIah.mjs";
13
+ import { a as accessibleKeyDown } from "./misc-cg9I7drO.mjs";
14
14
 
15
15
  import { s as styleInject } from "./style-inject.es-D0BjEaN8.mjs";
16
16
 
@@ -22,14 +22,27 @@ styleInject(".Icon-module_icon__szG-X {\n\tcursor: var(--cursor);\n\tuser-select
22
22
  * Static icon registry created once at module load.
23
23
  * Each entry stores only icon line content renderers.
24
24
  */
25
- const STATIC_ICON_REGISTRY = new Map([ [ "video", {
25
+ const STATIC_ICON_REGISTRY = new Map([ [ "video off", {
26
26
  line: ({strokeColor: strokeColor}) => jsxs(Fragment, {
27
27
  children: [ jsx("path", {
28
- d: "M17.47,5.52c-.23,0-.46.07-.66.21l-2.82,2.07v-2.68c0-.89-.72-1.62-1.62-1.62H3.12c-.89,0-1.62.72-1.62,1.62v9.77c0,.89.72,1.62,1.62,1.62h9.27c.89,0,1.62-.72,1.62-1.62v-2.68l2.82,2.07c.2.15.43.21.66.21.53,0,1.03-.35,1.03-.88v-7.2c0-.52-.5-.88-1.03-.88ZM12.5,14.88c0,.06-.05.12-.12.12H3.12c-.06,0-.12-.05-.12-.12V5.12c0-.06.05-.12.12-.12h9.27c.06,0,.12.05.12.12v9.77ZM17,12.54l-2.25-1.65v-1.78l2.25-1.65v5.08Z",
28
+ d: "M10.97,14.75H3.04c-.16,0-.29-.11-.29-.25v-6.79l-1.5-1.29v8.08c0,.96.8,1.75,1.79,1.75h9.68l-1.75-1.5Z",
29
+ fill: strokeColor
30
+ }), jsx("path", {
31
+ d: "M18.39,5.86c-.23-.13-.51-.14-.74-.02l-2.9,1.55v-1.38c0-.97-.81-1.76-1.8-1.76H4.87l1.75,1.5h6.33c.17,0,.3.12.3.26v5.43l2.7,2.32,1.69.91c.11.06.23.09.35.09.13,0,.27-.04.39-.11.23-.14.36-.38.36-.64v-7.5c0-.26-.14-.51-.36-.64ZM17.25,12.75l-2.5-1.34v-2.32l2.5-1.34v4.99Z",
32
+ fill: strokeColor
33
+ }), jsx("path", {
34
+ d: "M15.21,16.5c-.17,0-.35-.06-.49-.18L1.3,4.82c-.31-.27-.35-.74-.08-1.06.27-.31.74-.35,1.06-.08l13.42,11.5c.31.27.35.74.08,1.06-.15.17-.36.26-.57.26Z",
35
+ fill: strokeColor
36
+ }) ]
37
+ })
38
+ } ], [ "video", {
39
+ line: ({strokeColor: strokeColor}) => jsxs(Fragment, {
40
+ children: [ jsx("path", {
41
+ d: "M18.39,5.86c-.23-.13-.51-.14-.74-.02l-2.9,1.55v-1.38c0-.97-.81-1.76-1.8-1.76H3.04c-.99,0-1.79.79-1.79,1.75v8.5c0,.96.8,1.75,1.79,1.75h9.91c.99,0,1.79-.79,1.79-1.75v-1.39l2.9,1.55c.11.06.23.09.35.09.13,0,.27-.04.39-.11.23-.14.36-.38.36-.64v-7.5c0-.26-.14-.51-.36-.64ZM13.25,14.5c0,.14-.13.25-.29.25H3.04c-.16,0-.29-.11-.29-.25V6c0-.14.13-.25.29-.25h9.91c.17,0,.3.12.3.26v8.49ZM17.25,12.75l-2.5-1.34v-2.32l2.5-1.34v4.99Z",
29
42
  fill: strokeColor
30
43
  }), jsx("circle", {
31
- cx: "9",
32
- cy: "8",
44
+ cx: "8",
45
+ cy: "10.25",
33
46
  r: "1",
34
47
  fill: strokeColor
35
48
  }) ]
@@ -37,49 +50,43 @@ const STATIC_ICON_REGISTRY = new Map([ [ "video", {
37
50
  } ], [ "mic", {
38
51
  line: ({strokeColor: strokeColor}) => jsxs(Fragment, {
39
52
  children: [ jsx("path", {
40
- d: "M11,11.75h-1.5c-1.24,0-2.25-1.01-2.25-2.25V3.5c0-1.24,1.01-2.25,2.25-2.25h1.5c1.24,0,2.25,1.01,2.25,2.25v6c0,1.24-1.01,2.25-2.25,2.25ZM9.5,2.75c-.41,0-.75.34-.75.75v6c0,.41.34.75.75.75h1.5c.41,0,.75-.34.75-.75V3.5c0-.41-.34-.75-.75-.75h-1.5Z",
53
+ d: "M10.25,11.75c1.65,0,3-1.35,3-3v-4.5c0-1.65-1.35-3-3-3s-3,1.35-3,3v4.5c0,1.65,1.35,3,3,3ZM8.75,4.25c0-.83.67-1.5,1.5-1.5s1.5.67,1.5,1.5v4.5c0,.83-.67,1.5-1.5,1.5s-1.5-.67-1.5-1.5v-4.5Z",
41
54
  fill: strokeColor
42
55
  }), jsx("path", {
43
- d: "M12,14.5c2.34,0,4.25-1.91,4.25-4.25v-3c0-.41-.34-.75-.75-.75s-.75.34-.75.75v3c0,1.52-1.23,2.75-2.75,2.75h-3.5c-1.52,0-2.75-1.23-2.75-2.75v-3c0-.41-.34-.75-.75-.75s-.75.34-.75.75v3c0,2.34,1.91,4.25,4.25,4.25h1.06v2.75h-3.59c-.41,0-.75.34-.75.75s.34.75.75.75h8.48c.41,0,.75-.34.75-.75s-.34-.75-.75-.75h-3.39v-2.75h.94Z",
56
+ d: "M14.75,7.25v1.25c0,2.48-2.02,4.5-4.5,4.5s-4.5-2.02-4.5-4.5v-1.25h-1.5v1.25c0,3.08,2.33,5.62,5.31,5.96v2.79h-3.59v1.5h8.48v-1.5h-3.39v-2.81c2.92-.4,5.19-2.91,5.19-5.94v-1.25h-1.5Z",
44
57
  fill: strokeColor
45
58
  }) ]
46
59
  })
47
60
  } ], [ "mic muted", {
48
- line: ({strokeColor: strokeColor, stroke: stroke}) => jsxs(Fragment, {
61
+ line: ({strokeColor: strokeColor}) => jsxs(Fragment, {
49
62
  children: [ jsx("path", {
50
- d: "M14.46,17.25h-3.39v-2.75h.94c.42,0,.81-.08,1.19-.19l-1.31-1.31h-3.38c-1.52,0-2.75-1.23-2.75-2.75v-3c0-.41-.34-.75-.75-.75s-.75.34-.75.75v3c0,2.34,1.91,4.25,4.25,4.25h1.06v2.75h-3.59c-.41,0-.75.34-.75.75s.34.75.75.75h8.48c.41,0,.75-.34.75-.75s-.34-.75-.75-.75Z",
63
+ d: "M8.78,3.95c.14-.68.74-1.2,1.47-1.2.83,0,1.5.67,1.5,1.5v2.67l1.5,1.5v-4.17c0-1.65-1.35-3-3-3-1.13,0-2.1.63-2.61,1.56l1.14,1.14Z",
51
64
  fill: strokeColor
52
65
  }), jsx("path", {
53
- d: "M15.6,12.48c.4-.65.65-1.41.65-2.23v-3c0-.41-.34-.75-.75-.75s-.75.34-.75.75v3c0,.4-.09.78-.25,1.13l1.1,1.1Z",
66
+ d: "M7.25,8.08v.67c0,1.65,1.35,3,3,3,.21,0,.41-.02.61-.06l-3.61-3.61Z",
54
67
  fill: strokeColor
55
68
  }), jsx("path", {
56
- d: "M8.75,5.63v-2.13c0-.41.34-.75.75-.75h1.5c.41,0,.75.34.75.75v5.13l1.42,1.42c.05-.18.08-.36.08-.55V3.5c0-1.24-1.01-2.25-2.25-2.25h-1.5c-1.24,0-2.25,1.01-2.25,2.25v.63l1.5,1.5Z",
69
+ d: "M14.75,7.25v1.25c0,.43-.08.84-.19,1.23l1.17,1.17c.33-.74.52-1.54.52-2.4v-1.25h-1.5Z",
57
70
  fill: strokeColor
58
71
  }), jsx("path", {
59
- d: "M7.25,8.37v1.13c0,1.24,1.01,2.25,2.25,2.25h1.13l-3.38-3.38Z",
72
+ d: "M11.06,14.44c.69-.09,1.33-.31,1.93-.62l-1.13-1.13c-.5.19-1.04.31-1.61.31-2.48,0-4.5-2.02-4.5-4.5v-1.25h-1.5v1.25c0,3.08,2.33,5.62,5.31,5.96v2.79h-3.59v1.5h8.48v-1.5h-3.39v-2.81Z",
73
+ fill: strokeColor
74
+ }), jsx("path", {
75
+ d: "M16.75,15.5c-.19,0-.38-.07-.53-.22L3.72,2.78c-.29-.29-.29-.77,0-1.06s.77-.29,1.06,0l12.5,12.5c.29.29.29.77,0,1.06-.15.15-.34.22-.53.22Z",
60
76
  fill: strokeColor
61
- }), jsx("line", {
62
- x1: "3.5",
63
- y1: "2.5",
64
- x2: "16",
65
- y2: "15",
66
- stroke: strokeColor,
67
- strokeLinecap: "round",
68
- strokeLinejoin: "round",
69
- strokeWidth: stroke
70
77
  }) ]
71
78
  })
72
79
  } ], [ "camera", {
73
80
  line: ({strokeColor: strokeColor}) => jsxs(Fragment, {
74
81
  children: [ jsx("path", {
75
- d: "M16.85,4c.35,0,.65.31.65.68v10.68c0,.36-.28.65-.62.65H3.13c-.34,0-.62-.29-.62-.64V4.65c0-.24.11-.39.18-.46.07-.07.21-.18.43-.18h13.73M16.85,2.5H3.12c-1.17,0-2.12.96-2.12,2.15v10.71c0,1.18.96,2.14,2.13,2.14h13.75c1.17,0,2.12-.96,2.12-2.15V4.68c0-1.2-.97-2.18-2.15-2.18h0Z",
82
+ d: "M16.75,16.25H3.25c-.96,0-1.75-.79-1.75-1.75V5.5c0-.96.79-1.75,1.75-1.75h13.5c.96,0,1.75.79,1.75,1.75v9c0,.96-.79,1.75-1.75,1.75ZM3.25,5.25c-.14,0-.25.11-.25.25v9c0,.14.11.25.25.25h13.5c.14,0,.25-.11.25-.25V5.5c0-.14-.11-.25-.25-.25H3.25Z",
76
83
  fill: strokeColor
77
84
  }), jsx("path", {
78
- d: "M10,8c1.52,0,2.75,1.23,2.75,2.75s-1.23,2.75-2.75,2.75-2.75-1.23-2.75-2.75,1.23-2.75,2.75-2.75M10,7c-2.07,0-3.75,1.68-3.75,3.75s1.68,3.75,3.75,3.75,3.75-1.68,3.75-3.75-1.68-3.75-3.75-3.75h0Z",
85
+ d: "M11.94,13.75c-2.03,0-3.69-1.65-3.69-3.69s1.65-3.69,3.69-3.69,3.69,1.65,3.69,3.69-1.65,3.69-3.69,3.69ZM11.94,7.88c-1.21,0-2.19.98-2.19,2.19s.98,2.19,2.19,2.19,2.19-.98,2.19-2.19-.98-2.19-2.19-2.19Z",
79
86
  fill: strokeColor
80
87
  }), jsx("circle", {
81
- cx: "15",
82
- cy: "6.5",
88
+ cx: "6",
89
+ cy: "8",
83
90
  r: "1",
84
91
  fill: strokeColor
85
92
  }) ]
@@ -1040,10 +1047,10 @@ var IconNames;
1040
1047
 
1041
1048
  Icon.displayName = "Icon", function(IconNames) {
1042
1049
  IconNames.video = "video", IconNames.mic = "mic", IconNames.micMuted = "mic muted",
1043
- IconNames.camera = "camera", IconNames.home = "home", IconNames.inbox = "inbox",
1044
- IconNames.sparkle = "sparkle", IconNames.people = "people", IconNames.wallet = "wallet",
1045
- IconNames.invoice = "invoice", IconNames.payment = "payment", IconNames.heart = "heart",
1046
- IconNames.clock = "clock", IconNames.book = "book", IconNames.search = "search",
1050
+ IconNames.camera = "camera", IconNames.videoOff = "video off", IconNames.home = "home",
1051
+ IconNames.inbox = "inbox", IconNames.sparkle = "sparkle", IconNames.people = "people",
1052
+ IconNames.wallet = "wallet", IconNames.invoice = "invoice", IconNames.payment = "payment",
1053
+ IconNames.heart = "heart", IconNames.clock = "clock", IconNames.book = "book", IconNames.search = "search",
1047
1054
  IconNames.filter = "filter", IconNames.more = "more", IconNames.checkbox = "checkbox",
1048
1055
  IconNames.checkboxChecked = "checkbox checked", IconNames.checkboxPartial = "checkbox partial",
1049
1056
  IconNames.chevronDown = "chevron down", IconNames.chevronUp = "chevron up", IconNames.plus = "plus",