@apple-pie/slice 0.1.7 → 0.1.9

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 (253) hide show
  1. package/README.md +5 -4
  2. package/dist/cjs/chunks/{Avatar-8XLnVICd.js → Avatar-Czt-12Ih.js} +26 -12
  3. package/dist/cjs/chunks/{AvatarGroup-BhKZvX8M.js → AvatarGroup-CGH2zY7a.js} +9 -7
  4. package/dist/cjs/chunks/{Button-D8_eyuOA.js → Button-mVVfNCqC.js} +40 -29
  5. package/dist/cjs/chunks/ButtonBar-CFAb4bfQ.js +73 -0
  6. package/dist/cjs/chunks/{Camera-CxHdYGEa.js → Camera-BGV_tNUP.js} +12 -4
  7. package/dist/cjs/chunks/{CheckBox-CmTQ6KW1.js → CheckBox-DyOgP15i.js} +1 -1
  8. package/dist/cjs/chunks/{Chip-CwMJOnBV.js → Chip-Z8erRdWG.js} +24 -31
  9. package/dist/cjs/chunks/{FileList-tivoUJSP.js → FileList-CCAtVNDo.js} +1 -1
  10. package/dist/cjs/chunks/IndexedDB-BxQn7aHU.js +146 -0
  11. package/dist/cjs/chunks/{ProgressIndicator-opbbADog.js → ProgressIndicator-CyFcr6Dk.js} +13 -4
  12. package/dist/cjs/chunks/{PromptInput-tA4fpOTk.js → PromptInput-B-Wlfnhx.js} +1 -1
  13. package/dist/cjs/chunks/{TextArea-DXcMRUfI.js → TextArea-D7E8loob.js} +1 -1
  14. package/dist/cjs/chunks/{TextField-CkfTNM6_.js → TextField-BAcYBHb1.js} +2 -2
  15. package/dist/cjs/chunks/{UploadArea-B8mJRc0a.js → UploadArea-Bfrwzo4O.js} +1 -1
  16. package/dist/cjs/chunks/localDBStore-Cl1YFPIe.js +182 -0
  17. package/dist/cjs/components/Avatar/index.js +1 -1
  18. package/dist/cjs/components/AvatarGroup/index.js +2 -2
  19. package/dist/cjs/components/Button/index.js +2 -2
  20. package/dist/cjs/components/ButtonBar/index.js +3 -5
  21. package/dist/cjs/components/Camera/index.js +2 -2
  22. package/dist/cjs/components/CheckBox/index.js +1 -1
  23. package/dist/cjs/components/Chip/index.js +2 -2
  24. package/dist/cjs/components/FileList/index.js +2 -2
  25. package/dist/cjs/components/Progress/index.js +1 -1
  26. package/dist/cjs/components/PromptInput/index.js +4 -4
  27. package/dist/cjs/components/TextArea/index.js +3 -3
  28. package/dist/cjs/components/Textfield/index.js +3 -3
  29. package/dist/cjs/components/UploadArea/index.js +3 -3
  30. package/dist/cjs/index.js +10 -11
  31. package/dist/cjs/stores/LocalDB.js +8 -0
  32. package/dist/cjs/stores.js +9 -5
  33. package/dist/cjs/utils/index.js +3 -3
  34. package/dist/cjs/utils/objects/index.js +3 -3
  35. package/dist/esm/chunks/{Avatar-DGRMsHdO.mjs → Avatar-DCCbj2eA.mjs} +26 -12
  36. package/dist/esm/chunks/{AvatarGroup-C9Ka1e9P.mjs → AvatarGroup-BaD2Xmda.mjs} +9 -7
  37. package/dist/esm/chunks/{Button-DAvVj4YV.mjs → Button-m0XAJsq5.mjs} +40 -29
  38. package/dist/esm/chunks/ButtonBar-CNQHRn77.mjs +83 -0
  39. package/dist/esm/chunks/{Camera-BrdJGlv6.mjs → Camera-7TuowjX_.mjs} +12 -4
  40. package/dist/esm/chunks/{CheckBox-B7UCZvRv.mjs → CheckBox-DO9hTdv8.mjs} +1 -1
  41. package/dist/esm/chunks/{Chip-BPF7fBba.mjs → Chip-BqneFUOR.mjs} +25 -34
  42. package/dist/esm/chunks/{FileList-BHCGzX_0.mjs → FileList-Ckix8gUY.mjs} +1 -1
  43. package/dist/esm/chunks/IndexedDB-CNOziQ6p.mjs +146 -0
  44. package/dist/esm/chunks/{ProgressIndicator-BVwQNOcV.mjs → ProgressIndicator-CfM2c4ty.mjs} +13 -4
  45. package/dist/esm/chunks/{PromptInput-pKwwzyAd.mjs → PromptInput-Cmist_vy.mjs} +2 -2
  46. package/dist/esm/chunks/{TextArea-yF2pGeel.mjs → TextArea-Ff5hxF1H.mjs} +1 -1
  47. package/dist/esm/chunks/{TextField-CgnPj6oK.mjs → TextField-CGOR6507.mjs} +2 -2
  48. package/dist/esm/chunks/{UploadArea-BNf1y8Ep.mjs → UploadArea-6z-mVZs3.mjs} +2 -2
  49. package/dist/esm/chunks/localDBStore-CbCoeN66.mjs +186 -0
  50. package/dist/esm/components/Avatar/index.mjs +1 -1
  51. package/dist/esm/components/AvatarGroup/index.mjs +2 -2
  52. package/dist/esm/components/Button/index.mjs +2 -2
  53. package/dist/esm/components/ButtonBar/index.mjs +5 -15
  54. package/dist/esm/components/Camera/index.mjs +2 -2
  55. package/dist/esm/components/CheckBox/index.mjs +1 -1
  56. package/dist/esm/components/Chip/index.mjs +5 -5
  57. package/dist/esm/components/FileList/index.mjs +2 -2
  58. package/dist/esm/components/Progress/index.mjs +1 -1
  59. package/dist/esm/components/PromptInput/index.mjs +4 -4
  60. package/dist/esm/components/TextArea/index.mjs +3 -3
  61. package/dist/esm/components/Textfield/index.mjs +3 -3
  62. package/dist/esm/components/UploadArea/index.mjs +3 -3
  63. package/dist/esm/index.mjs +13 -17
  64. package/dist/esm/stores/LocalDB.mjs +7 -0
  65. package/dist/esm/stores.mjs +4 -0
  66. package/dist/esm/utils/index.mjs +2 -0
  67. package/dist/esm/utils/objects/index.mjs +2 -0
  68. package/package.json +1 -1
  69. package/dist/cjs/chunks/ButtonBar-DwMLfvi8.js +0 -49
  70. package/dist/cjs/chunks/Card-D4YkmNC7.js +0 -34
  71. package/dist/cjs/chunks/DocIcons-BZI6JMyw.js +0 -108
  72. package/dist/cjs/components/Card/index.js +0 -10
  73. package/dist/cjs/components/DocIcon/index.js +0 -9
  74. package/dist/css/flexBox.module.css +0 -85
  75. package/dist/css/type.module.css +0 -206
  76. package/dist/esm/chunks/ButtonBar-Cw73kooJ.mjs +0 -62
  77. package/dist/esm/chunks/Card-DGlv1PII.mjs +0 -42
  78. package/dist/esm/chunks/DocIcons-B4xsPrXM.mjs +0 -114
  79. package/dist/esm/components/Card/index.mjs +0 -31
  80. package/dist/esm/components/DocIcon/index.mjs +0 -25
  81. package/dist/types/components/Avatar/Avatar.d.ts +0 -3
  82. package/dist/types/components/Avatar/_types.d.ts +0 -20
  83. package/dist/types/components/Avatar/index.d.ts +0 -2
  84. package/dist/types/components/AvatarGroup/AvatarGroup.d.ts +0 -3
  85. package/dist/types/components/AvatarGroup/_types.d.ts +0 -23
  86. package/dist/types/components/AvatarGroup/index.d.ts +0 -2
  87. package/dist/types/components/Badge/Badge.d.ts +0 -3
  88. package/dist/types/components/Badge/_types.d.ts +0 -8
  89. package/dist/types/components/Badge/index.d.ts +0 -2
  90. package/dist/types/components/Button/Button.d.ts +0 -74
  91. package/dist/types/components/Button/_types.d.ts +0 -44
  92. package/dist/types/components/Button/index.d.ts +0 -2
  93. package/dist/types/components/ButtonBar/ButtonBar.d.ts +0 -2
  94. package/dist/types/components/ButtonBar/_types.d.ts +0 -17
  95. package/dist/types/components/ButtonBar/index.d.ts +0 -2
  96. package/dist/types/components/Camera/Camera.d.ts +0 -11
  97. package/dist/types/components/Camera/_types.d.ts +0 -79
  98. package/dist/types/components/Camera/index.d.ts +0 -2
  99. package/dist/types/components/Card/Card.d.ts +0 -3
  100. package/dist/types/components/Card/_types.d.ts +0 -14
  101. package/dist/types/components/Card/index.d.ts +0 -2
  102. package/dist/types/components/CheckBox/CheckBox.d.ts +0 -3
  103. package/dist/types/components/CheckBox/_types.d.ts +0 -11
  104. package/dist/types/components/CheckBox/index.d.ts +0 -2
  105. package/dist/types/components/Chip/Chip.d.ts +0 -3
  106. package/dist/types/components/Chip/_types.d.ts +0 -20
  107. package/dist/types/components/Chip/index.d.ts +0 -3
  108. package/dist/types/components/DivInput/DivInput.d.ts +0 -3
  109. package/dist/types/components/DivInput/_types.d.ts +0 -23
  110. package/dist/types/components/DivInput/index.d.ts +0 -2
  111. package/dist/types/components/DocIcon/DocIcons.d.ts +0 -3
  112. package/dist/types/components/DocIcon/_types.d.ts +0 -7
  113. package/dist/types/components/DocIcon/index.d.ts +0 -2
  114. package/dist/types/components/Dot/Dot.d.ts +0 -3
  115. package/dist/types/components/Dot/_types.d.ts +0 -19
  116. package/dist/types/components/Dot/index.d.ts +0 -2
  117. package/dist/types/components/DraggablePanel/DrggablePanel.d.ts +0 -44
  118. package/dist/types/components/DraggablePanel/_types.d.ts +0 -5
  119. package/dist/types/components/DraggablePanel/index.d.ts +0 -1
  120. package/dist/types/components/DropDown/DropDown.d.ts +0 -4
  121. package/dist/types/components/DropDown/_types.d.ts +0 -34
  122. package/dist/types/components/DropDown/index.d.ts +0 -2
  123. package/dist/types/components/ErrorSummary/ErrorSummary.d.ts +0 -4
  124. package/dist/types/components/ErrorSummary/_types.d.ts +0 -12
  125. package/dist/types/components/ErrorSummary/index.d.ts +0 -2
  126. package/dist/types/components/FileIcon/FileIcon.d.ts +0 -3
  127. package/dist/types/components/FileIcon/_types.d.ts +0 -27
  128. package/dist/types/components/FileIcon/fileIconRegistry.d.ts +0 -4
  129. package/dist/types/components/FileIcon/index.d.ts +0 -3
  130. package/dist/types/components/FileList/FileList.d.ts +0 -3
  131. package/dist/types/components/FileList/_types.d.ts +0 -24
  132. package/dist/types/components/FileList/index.d.ts +0 -2
  133. package/dist/types/components/FlexDiv/FlexDiv.d.ts +0 -60
  134. package/dist/types/components/FlexDiv/_types.d.ts +0 -34
  135. package/dist/types/components/FlexDiv/index.d.ts +0 -2
  136. package/dist/types/components/Grouper/Grouper.d.ts +0 -3
  137. package/dist/types/components/Grouper/_types.d.ts +0 -20
  138. package/dist/types/components/Grouper/index.d.ts +0 -2
  139. package/dist/types/components/Icon/Icon.d.ts +0 -3
  140. package/dist/types/components/Icon/_types.d.ts +0 -131
  141. package/dist/types/components/Icon/iconRegistry.d.ts +0 -17
  142. package/dist/types/components/Icon/index.d.ts +0 -2
  143. package/dist/types/components/IconButton/IconButton.d.ts +0 -3
  144. package/dist/types/components/IconButton/_types.d.ts +0 -34
  145. package/dist/types/components/IconButton/index.d.ts +0 -2
  146. package/dist/types/components/Label/Label.d.ts +0 -2
  147. package/dist/types/components/Label/_types.d.ts +0 -16
  148. package/dist/types/components/Label/index.d.ts +0 -2
  149. package/dist/types/components/Overlay/Overlay.d.ts +0 -3
  150. package/dist/types/components/Overlay/_types.d.ts +0 -12
  151. package/dist/types/components/Overlay/index.d.ts +0 -2
  152. package/dist/types/components/Pager/Pager.d.ts +0 -3
  153. package/dist/types/components/Pager/_types.d.ts +0 -13
  154. package/dist/types/components/Pager/index.d.ts +0 -2
  155. package/dist/types/components/Progress/DoneCheck/DoneCheck.d.ts +0 -3
  156. package/dist/types/components/Progress/DoneCheck/_types.d.ts +0 -13
  157. package/dist/types/components/Progress/ProgressIndicator/ProgressIndicator.d.ts +0 -3
  158. package/dist/types/components/Progress/ProgressIndicator/_types.d.ts +0 -14
  159. package/dist/types/components/Progress/index.d.ts +0 -4
  160. package/dist/types/components/PromptInput/PromptInput.d.ts +0 -63
  161. package/dist/types/components/PromptInput/_types.d.ts +0 -35
  162. package/dist/types/components/PromptInput/index.d.ts +0 -2
  163. package/dist/types/components/RadioButton/RadioButton.d.ts +0 -3
  164. package/dist/types/components/RadioButton/_types.d.ts +0 -26
  165. package/dist/types/components/RadioButton/index.d.ts +0 -2
  166. package/dist/types/components/RadioButtonList/RadioButtonList.d.ts +0 -3
  167. package/dist/types/components/RadioButtonList/_types.d.ts +0 -24
  168. package/dist/types/components/RadioButtonList/index.d.ts +0 -2
  169. package/dist/types/components/Slider/Slider.d.ts +0 -3
  170. package/dist/types/components/Slider/_types.d.ts +0 -18
  171. package/dist/types/components/Slider/index.d.ts +0 -2
  172. package/dist/types/components/Spacer/Spacer.d.ts +0 -3
  173. package/dist/types/components/Spacer/_types.d.ts +0 -6
  174. package/dist/types/components/Spacer/index.d.ts +0 -2
  175. package/dist/types/components/Switch/Switch.d.ts +0 -3
  176. package/dist/types/components/Switch/Switch.stories.d.ts +0 -5
  177. package/dist/types/components/Switch/_types.d.ts +0 -13
  178. package/dist/types/components/Switch/index.d.ts +0 -2
  179. package/dist/types/components/TabBar/TabBar.d.ts +0 -3
  180. package/dist/types/components/TabBar/_types.d.ts +0 -52
  181. package/dist/types/components/TabBar/index.d.ts +0 -2
  182. package/dist/types/components/TextArea/TextArea.d.ts +0 -3
  183. package/dist/types/components/TextArea/_types.d.ts +0 -41
  184. package/dist/types/components/TextArea/index.d.ts +0 -2
  185. package/dist/types/components/Textfield/TextField.d.ts +0 -3
  186. package/dist/types/components/Textfield/_types.d.ts +0 -79
  187. package/dist/types/components/Textfield/index.d.ts +0 -2
  188. package/dist/types/components/Tip/Tip.d.ts +0 -3
  189. package/dist/types/components/Tip/_types.d.ts +0 -28
  190. package/dist/types/components/Tip/index.d.ts +0 -2
  191. package/dist/types/components/Toast/Toast.d.ts +0 -3
  192. package/dist/types/components/Toast/_types.d.ts +0 -24
  193. package/dist/types/components/Toast/index.d.ts +0 -2
  194. package/dist/types/components/UploadArea/UploadArea.d.ts +0 -54
  195. package/dist/types/components/UploadArea/_types.d.ts +0 -46
  196. package/dist/types/components/UploadArea/index.d.ts +0 -3
  197. package/dist/types/components/playHelpers.d.ts +0 -35
  198. package/dist/types/components/sharedTypes.d.ts +0 -21
  199. package/dist/types/hooks/index.d.ts +0 -9
  200. package/dist/types/hooks/useDoubleClick/useDoubleClick.d.ts +0 -1
  201. package/dist/types/hooks/useKeyboardShortcuts/useKeyboardShortcuts.d.ts +0 -9
  202. package/dist/types/hooks/useLastUpdated/useLastUpdated.d.ts +0 -4
  203. package/dist/types/hooks/useLocalStore/useLocalStore.d.ts +0 -1
  204. package/dist/types/hooks/useObserveResize/useObserveResize.d.ts +0 -9
  205. package/dist/types/hooks/useObserveTheme/useObserveTheme.d.ts +0 -2
  206. package/dist/types/hooks/useTheme/useTheme.d.ts +0 -47
  207. package/dist/types/hooks/useToolTip/useToolTip.d.ts +0 -6
  208. package/dist/types/hooks/useTrackRenders/useTrackRenders.d.ts +0 -5
  209. package/dist/types/hooks/useWindow/useWindow.d.ts +0 -43
  210. package/dist/types/index.d.ts +0 -78
  211. package/dist/types/providers/ThemeProvider.d.ts +0 -13
  212. package/dist/types/providers/index.d.ts +0 -1
  213. package/dist/types/stores/SSE/_types.d.ts +0 -17
  214. package/dist/types/stores/SSE/index.d.ts +0 -2
  215. package/dist/types/stores/SSE/sseStore.d.ts +0 -28
  216. package/dist/types/stores/WS/_types.d.ts +0 -17
  217. package/dist/types/stores/WS/index.d.ts +0 -2
  218. package/dist/types/stores/WS/wsStore.d.ts +0 -19
  219. package/dist/types/stores/index.d.ts +0 -5
  220. package/dist/types/stores/tip/_types.d.ts +0 -8
  221. package/dist/types/stores/tip/index.d.ts +0 -2
  222. package/dist/types/stores/tip/tipStore.d.ts +0 -12
  223. package/dist/types/stores/toast/_types.d.ts +0 -14
  224. package/dist/types/stores/toast/index.d.ts +0 -2
  225. package/dist/types/stores/toast/toastStore.d.ts +0 -12
  226. package/dist/types/stores/uploads/_types.d.ts +0 -16
  227. package/dist/types/stores/uploads/index.d.ts +0 -2
  228. package/dist/types/stores/uploads/uploadsStore.d.ts +0 -22
  229. package/dist/types/stores/window/_types.d.ts +0 -33
  230. package/dist/types/stores/window/index.d.ts +0 -3
  231. package/dist/types/stores/window/windowStore.d.ts +0 -25
  232. package/dist/types/theme/colors/colors.d.ts +0 -6
  233. package/dist/types/theme/colors/types.d.ts +0 -174
  234. package/dist/types/theme/corners/corners.d.ts +0 -2
  235. package/dist/types/theme/corners/types.d.ts +0 -10
  236. package/dist/types/theme/elevations/_types.d.ts +0 -10
  237. package/dist/types/theme/elevations/elevations.d.ts +0 -5
  238. package/dist/types/theme/index.d.ts +0 -9
  239. package/dist/types/theme/motion/_types.d.ts +0 -8
  240. package/dist/types/theme/motion/motion.d.ts +0 -5
  241. package/dist/types/theme/themes.d.ts +0 -16
  242. package/dist/types/theme/type/type.d.ts +0 -5
  243. package/dist/types/theme/type/types.d.ts +0 -25
  244. package/dist/types/utils/functions/colors.d.ts +0 -8
  245. package/dist/types/utils/functions/debounce.d.ts +0 -9
  246. package/dist/types/utils/functions/files.d.ts +0 -15
  247. package/dist/types/utils/functions/misc.d.ts +0 -61
  248. package/dist/types/utils/index.d.ts +0 -5
  249. package/dist/types/utils/objects/SSEConnection/SSEConnection.d.ts +0 -187
  250. package/dist/types/utils/objects/WSConnection/WSConnection.d.ts +0 -159
  251. package/dist/types/utils/objects/index.d.ts +0 -4
  252. package/dist/types/workers/uploads/uploads-worker.d.ts +0 -129
  253. package/dist/types/workers/uploads/uploads.d.ts +0 -1
@@ -1,10 +1,6 @@
1
1
  "use strict";
2
2
 
3
- var tslib_es6 = require("./tslib.es6-C8dZW5nY.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react"), hooks_useTheme = require("../hooks/useTheme.js");
4
-
5
- require("../theme/colors.js"), require("../hooks/useWindow.js");
6
-
7
- var misc = require("./misc-BTF7BCZW.js"), Icon = require("./Icon-N0YJuKQf.js"), sharedTypes = require("./sharedTypes-gCECyn2N.js"), styleInject_es = require("./style-inject.es-CMuL-BfJ.js"), css = {
3
+ var tslib_es6 = require("./tslib.es6-C8dZW5nY.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react"), misc = require("./misc-BTF7BCZW.js"), Icon = require("./Icon-N0YJuKQf.js"), sharedTypes = require("./sharedTypes-gCECyn2N.js"), styleInject_es = require("./style-inject.es-CMuL-BfJ.js"), css = {
8
4
  chip: "Chip-module_chip__0nys- flexBox-module_row__z24tF",
9
5
  icon: "Chip-module_icon__dtR-K flexBox-module_row__z24tF",
10
6
  s: "Chip-module_s__2KTXi type-module_body-s-regular__vRHSP",
@@ -12,16 +8,12 @@ var misc = require("./misc-BTF7BCZW.js"), Icon = require("./Icon-N0YJuKQf.js"),
12
8
  l: "Chip-module_l__3MqPN type-module_body-l-regular__lOYbg"
13
9
  };
14
10
 
15
- styleInject_es.styleInject(".flexBox-module_row__z24tF {\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowBetween__5FEvi {\n\tdisplay: flex;\n\tjustify-content: space-between;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowStart__4tcxS {\n\tdisplay: flex;\n\tjustify-content: flex-start;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowEnd__rVdVm {\n\tdisplay: flex;\n\tjustify-content: flex-end;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_column__ezvMq {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: center;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnStart__C7P44 {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-start;\n\talign-items: flex-start;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnStartCenter__PKcrG {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-start;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnBetween__ERfp7 {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: space-between;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnEnd__lLJuc {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-end;\n\talign-items: flex-end;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.type-module_body-xs-regular__ZAFft {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-xs);\n\tline-height: 133.33%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-xs-medium__s3KvF {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-xs);\n\tline-height: 133.33%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-xs-bold__Lhqqq {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-xs);\n\tline-height: 133.33%;\n\ttext-decoration: none;\n\tletter-spacing: 0.25px;\n}.type-module_body-s-regular__vRHSP {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-s);\n\tline-height: 142.86%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-s-medium__tjdFc {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-s);\n\tline-height: 142.86%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-s-bold__Iy-VX {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-s);\n\tline-height: 142.86%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-m-regular__LuQBA {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-m);\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-m-medium__uW1on {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-m);\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-m-bold__UBcvQ {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-m);\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-l-regular__lOYbg {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-l);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-l-medium__BqRC7 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-l);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-l-bold__Fh2dt {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-l);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-xl-regular__pF2kC {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-xl);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-xl-medium__BeyrH {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-xl);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-xl-bold__Ruknj {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-xl);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_heading-s-medium__z8L3G {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 20px;\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-s-bold__0O3g6 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 20px;\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-m-bold__KXxEB {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 24px;\n\tline-height: 116.67%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-m-medium__cJeEA {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 24px;\n\tline-height: 116.67%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-l-medium__eRe05 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 30px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-l-bold__Xmwtf {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 30px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-xl-medium__5q1m3 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 36px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-xl-bold__k9VFV {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 36px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}\n\n.Chip-module_chip__0nys- {\n\tpadding: var(--ui-chip-padding) !important;\n\twidth: min-content;\n\tmin-height: 30px;\n\tgap: var(--ui-chip-gap);\n\tbackground: var(--ui-chip-background);\n\tline-height: 1em;\n\tcolor: var(--ui-chip-color);\n\tborder: var(--ui-chip-border) solid var(--ui-chip-border-color);\n\tborder-radius: var(--ui-chip-border-radius);\n\ttransition: all var(--motion-water-duration) var(--motion-water) 0s;\n\tcursor: pointer;\n\twhite-space: nowrap;\n\tuser-select: none;\n\t-webkit-user-select: none;\n}\n\n.Chip-module_icon__dtR-K {\n\theight: var(--ui-chip-icon-size);\n\tmin-height: var(--ui-chip-icon-size);\n\twidth: var(--ui-chip-icon-size);\n\tmin-width: var(--ui-chip-icon-size);\n}\n\n.Chip-module_s__2KTXi {\n}\n\n.Chip-module_m__l2u3N {\n}\n\n.Chip-module_l__3MqPN {\n}\n");
11
+ styleInject_es.styleInject(".flexBox-module_row__z24tF {\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowBetween__5FEvi {\n\tdisplay: flex;\n\tjustify-content: space-between;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowStart__4tcxS {\n\tdisplay: flex;\n\tjustify-content: flex-start;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowEnd__rVdVm {\n\tdisplay: flex;\n\tjustify-content: flex-end;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_column__ezvMq {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: center;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnStart__C7P44 {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-start;\n\talign-items: flex-start;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnStartCenter__PKcrG {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-start;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnBetween__ERfp7 {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: space-between;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnEnd__lLJuc {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-end;\n\talign-items: flex-end;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.type-module_body-xs-regular__ZAFft {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-xs);\n\tline-height: 133.33%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-xs-medium__s3KvF {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-xs);\n\tline-height: 133.33%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-xs-bold__Lhqqq {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-xs);\n\tline-height: 133.33%;\n\ttext-decoration: none;\n\tletter-spacing: 0.25px;\n}.type-module_body-s-regular__vRHSP {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-s);\n\tline-height: 142.86%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-s-medium__tjdFc {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-s);\n\tline-height: 142.86%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-s-bold__Iy-VX {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-s);\n\tline-height: 142.86%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-m-regular__LuQBA {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-m);\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-m-medium__uW1on {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-m);\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-m-bold__UBcvQ {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-m);\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-l-regular__lOYbg {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-l);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-l-medium__BqRC7 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-l);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-l-bold__Fh2dt {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-l);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-xl-regular__pF2kC {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-xl);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-xl-medium__BeyrH {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-xl);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-xl-bold__Ruknj {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-xl);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_heading-s-medium__z8L3G {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 20px;\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-s-bold__0O3g6 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 20px;\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-m-bold__KXxEB {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 24px;\n\tline-height: 116.67%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-m-medium__cJeEA {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 24px;\n\tline-height: 116.67%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-l-medium__eRe05 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 30px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-l-bold__Xmwtf {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 30px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-xl-medium__5q1m3 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 36px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-xl-bold__k9VFV {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 36px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}\n\n.Chip-module_chip__0nys- {\n\tpadding: var(--ui-chip-padding) !important;\n\twidth: min-content;\n\tmin-height: 30px;\n\tgap: var(--ui-chip-gap);\n\tbackground: var(--ui-chip-bg-color);\n\tline-height: 1em;\n\tcolor: var(--ui-chip-label-color);\n\tborder: var(--ui-chip-border-size) solid var(--ui-chip-border-color);\n\tborder-radius: var(--ui-chip-border-radius);\n\ttransition: all var(--motion-water-duration) var(--motion-water) 0s;\n\tcursor: var(--ui-chip-cursor);\n\twhite-space: nowrap;\n\tuser-select: none;\n\t-webkit-user-select: none;\n\t&:hover {\n\t\tborder-color: var(--ui-chip-border-color-hover);\n\t\tbackground: var(--ui-chip-bg-color-hover);\n\t\tcolor: var(--ui-chip-label-color-hover);\n\t}\n}\n\n.Chip-module_icon__dtR-K {\n\theight: var(--ui-chip-icon-size);\n\tmin-height: var(--ui-chip-icon-size);\n\twidth: var(--ui-chip-icon-size);\n\tmin-width: var(--ui-chip-icon-size);\n}\n\n.Chip-module_s__2KTXi {\n}\n\n.Chip-module_m__l2u3N {\n}\n\n.Chip-module_l__3MqPN {\n}\n");
16
12
 
17
13
  const Chip = React.memo(props => {
18
- const theme = hooks_useTheme.useTheme(), {label: label, icon: icon, background: background, disabled: disabled = !1, focused: focused = !1, variant: variant = "regular", unframed: unframed = !1, iconRight: iconRight = !1, labelSize: labelSize = "m", tooltip: tooltip, iconColor: iconColor, onToolTip: onToolTip = () => null, onClick: onClick = () => null, onMouseDown: onMouseDown = () => null} = props, divAttributes = tslib_es6.__rest(props, [ "label", "icon", "background", "disabled", "focused", "variant", "unframed", "iconRight", "labelSize", "tooltip", "iconColor", "onToolTip", "onClick", "onMouseDown" ]), {id: divId, className: className, style: style} = divAttributes, rest = tslib_es6.__rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", [isFocused, setIsFocused] = React.useState(focused), [isHovered, setIsHovered] = React.useState(!1);
19
- React.useEffect(() => setIsFocused(focused), [ focused ]);
20
- const handleClick = React.useCallback(e => {
14
+ const {children: children, label: label, icon: icon, tooltip: tooltip, iconSize: iconSize = 20, disabled: disabled = !1, focused: focused = !1, iconPosition: iconPosition = "left", labelSize: labelSize = "m", labelColor: labelColor = "var(--core-text-primary)", labelColorHover: labelColorHover = "var(--core-text-special)", iconColor: iconColor = "var(--core-text-primary)", iconColorHover: iconColorHover = "var(--core-text-special)", borderSize: borderSize = 1, borderColor: borderColor = "var(--core-text-primary)", borderColorHover: borderColorHover = "var(--core-text-special)", borderColorDisabled: borderColorDisabled = "var(--core-text-disabled)", bgColor: bgColor = "transparent", bgColorHover: bgColorHover = "var(--core-surface-secondary)", borderRadius: borderRadius = 8, paddingTops: paddingTops = 8, paddingSides: paddingSides = 16, gap: gap = 4, onToolTip: onToolTip = () => null, onClick: onClick = () => null} = props, divAttributes = tslib_es6.__rest(props, [ "children", "label", "icon", "tooltip", "iconSize", "disabled", "focused", "iconPosition", "labelSize", "labelColor", "labelColorHover", "iconColor", "iconColorHover", "borderSize", "borderColor", "borderColorHover", "borderColorDisabled", "bgColor", "bgColorHover", "borderRadius", "paddingTops", "paddingSides", "gap", "onToolTip", "onClick" ]), {id: divId, className: className, style: style} = divAttributes, rest = tslib_es6.__rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", [isHovered, setIsHovered] = React.useState(!1), handleClick = React.useCallback(e => {
21
15
  disabled || onClick(e);
22
- }, [ disabled, onClick ]), handleMouseDown = React.useCallback(e => {
23
- disabled || onMouseDown(e);
24
- }, [ disabled, onMouseDown ]), handleMouseEnter = React.useCallback((enter, event) => {
16
+ }, [ disabled, onClick ]), handleMouseEnter = React.useCallback((enter, event) => {
25
17
  if (enter) {
26
18
  if (tooltip) {
27
19
  const tip = {
@@ -37,44 +29,45 @@ const Chip = React.memo(props => {
37
29
  setIsHovered(!0);
38
30
  } else onToolTip(null), setIsHovered(!1);
39
31
  }, [ tooltip, onToolTip ]), padding = React.useMemo(() => {
40
- const isSmall = "small" === variant;
41
- return icon ? icon && iconRight ? isSmall ? "6px 6px 6px 10px" : "9px 12px 9px 16px" : isSmall ? "6px 10px 6px 6px" : "9px 16px 9px 12px" : isSmall ? "6px" : "9px 16px 9px 16px";
42
- }, [ variant, icon, iconRight ]), computedIconColor = React.useMemo(() => iconColor || (disabled ? theme.current.colors["core-icon-disabled"] : isHovered || isFocused ? theme.current.colors["core-link-primary"] : theme.current.colors["core-text-primary"]), [ iconColor, disabled, isFocused, isHovered, theme ]), cssVars = React.useMemo(() => ({
32
+ if (!icon) return `${paddingTops}px ${paddingSides}px`;
33
+ return `${paddingTops}px ${"right" === iconPosition ? paddingSides - 4 : paddingSides}px ${paddingTops}px ${"right" === iconPosition ? paddingSides : paddingSides - 4}px`;
34
+ }, [ icon, iconPosition, paddingTops, paddingSides ]), computedIconColor = React.useMemo(() => disabled ? "var(--core-text-disabled)" : isHovered ? null != iconColorHover ? iconColorHover : "var(--core-text-special)" : null != iconColor ? iconColor : "var(--core-text-primary)", [ iconColor, disabled, isHovered, iconColorHover ]), cssVars = React.useMemo(() => ({
43
35
  "--ui-chip-padding": padding,
44
- "--ui-chip-background": background || "transparent",
45
- "--ui-chip-gap": "small" === variant ? "4px" : "8px",
46
- "--ui-chip-color": computedIconColor,
47
- "--ui-chip-border-radius": "small" === variant ? "4px" : "8px",
48
- "--ui-chip-border": unframed ? "0" : "1px",
49
- "--ui-chip-border-color": unframed ? "transparent" : computedIconColor
50
- }), [ padding, background, variant, unframed, computedIconColor ]);
36
+ "--ui-chip-gap": misc.setStyle(gap),
37
+ "--ui-chip-border-radius": misc.setStyle(borderRadius),
38
+ "--ui-chip-border-size": misc.setStyle(borderSize),
39
+ "--ui-chip-border-color": disabled ? borderColorDisabled : borderColor,
40
+ "--ui-chip-border-color-hover": disabled ? borderColorDisabled : borderColorHover,
41
+ "--ui-chip-bg-color": bgColor,
42
+ "--ui-chip-bg-color-hover": disabled ? bgColor : bgColorHover,
43
+ "--ui-chip-label-color": disabled ? "var(--core-text-disabled)" : labelColor,
44
+ "--ui-chip-label-color-hover": disabled ? "var(--core-text-disabled)" : labelColorHover,
45
+ "--ui-chip-cursor": disabled ? "default" : "pointer"
46
+ }), [ padding, bgColor, borderColor, borderColorDisabled, borderColorHover, borderSize, bgColorHover, labelColorHover, labelColor, gap, borderRadius, disabled ]);
51
47
  return jsxRuntime.jsxs("div", Object.assign({
52
48
  id: divId,
53
49
  className: `${css.chip}${divClass}`,
54
50
  style: Object.assign(Object.assign({}, divStyle), cssVars),
55
- onMouseDown: handleMouseDown,
56
51
  onKeyDown: e => misc.accessibleKeyDown(e, () => handleClick(e)),
57
52
  onClick: handleClick,
58
53
  onMouseEnter: e => handleMouseEnter(!0, e),
59
- onMouseLeave: e => handleMouseEnter(!1, e),
60
- onFocus: () => setIsFocused(!0),
61
- onBlur: () => setIsFocused(!1)
54
+ onMouseLeave: e => handleMouseEnter(!1, e)
62
55
  }, rest, {
63
- children: [ icon && !iconRight && jsxRuntime.jsx("div", {
56
+ children: [ icon && "right" !== iconPosition && jsxRuntime.jsx("div", {
64
57
  className: css.icon,
65
58
  children: jsxRuntime.jsx(Icon.Icon, {
66
59
  name: icon,
67
- size: "regular" === variant ? 20 : 16,
60
+ size: iconSize,
68
61
  strokeColor: computedIconColor
69
62
  })
70
63
  }), jsxRuntime.jsx("div", {
71
64
  className: css[labelSize],
72
- children: label
73
- }), icon && iconRight && jsxRuntime.jsx("div", {
65
+ children: null != children ? children : label
66
+ }), icon && "right" === iconPosition && jsxRuntime.jsx("div", {
74
67
  className: css.icon,
75
68
  children: jsxRuntime.jsx(Icon.Icon, {
76
69
  name: icon,
77
- size: "regular" === variant ? 20 : 16,
70
+ size: iconSize,
78
71
  strokeColor: computedIconColor
79
72
  })
80
73
  }) ]
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- var tslib_es6 = require("./tslib.es6-C8dZW5nY.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react"), misc = require("./misc-BTF7BCZW.js"), FileIcon = require("./FileIcon-CZLe2S2l.js"), Icon = require("./Icon-N0YJuKQf.js"), ProgressIndicator = require("./ProgressIndicator-opbbADog.js"), styleInject_es = require("./style-inject.es-CMuL-BfJ.js");
3
+ var tslib_es6 = require("./tslib.es6-C8dZW5nY.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react"), misc = require("./misc-BTF7BCZW.js"), FileIcon = require("./FileIcon-CZLe2S2l.js"), Icon = require("./Icon-N0YJuKQf.js"), ProgressIndicator = require("./ProgressIndicator-CyFcr6Dk.js"), styleInject_es = require("./style-inject.es-CMuL-BfJ.js");
4
4
 
5
5
  var css = {
6
6
  wrapper: "FileList-module_wrapper__9-rrl flexBox-module_rowStart__4tcxS",
@@ -0,0 +1,146 @@
1
+ "use strict";
2
+
3
+ var tslib_es6 = require("./tslib.es6-C8dZW5nY.js");
4
+
5
+ exports.IndexedDB = class {
6
+ constructor(storeName, options = {}) {
7
+ var _a, _b, _c;
8
+ this.db = null, this.storeName = storeName, this.databaseName = null !== (_a = options.databaseName) && void 0 !== _a ? _a : storeName,
9
+ this.version = null !== (_b = options.version) && void 0 !== _b ? _b : 1, this.key = options.key,
10
+ this.autoIncrement = null !== (_c = options.autoIncrement) && void 0 !== _c && _c;
11
+ }
12
+ /**
13
+ * Initialize the IndexedDB connection.
14
+ */ initialize() {
15
+ return tslib_es6.__awaiter(this, arguments, void 0, function*(create = !0) {
16
+ if (!this.db) {
17
+ if ("undefined" == typeof indexedDB) throw new TypeError("IndexedDB is not supported in this environment.");
18
+ this.db = yield new Promise((resolve, reject) => {
19
+ const request = indexedDB.open(this.databaseName, this.version);
20
+ let settled = !1;
21
+ const rejectOnce = error => {
22
+ settled || (settled = !0, reject(error));
23
+ };
24
+ request.onerror = () => {
25
+ var _a;
26
+ rejectOnce(null !== (_a = request.error) && void 0 !== _a ? _a : new Error("Failed to open IndexedDB."));
27
+ }, request.onupgradeneeded = () => {
28
+ var _a;
29
+ const database = request.result;
30
+ database.objectStoreNames.contains(this.storeName) || (create ? database.createObjectStore(this.storeName, {
31
+ keyPath: this.key,
32
+ autoIncrement: this.autoIncrement
33
+ }) : (null === (_a = request.transaction) || void 0 === _a || _a.abort(), rejectOnce(new Error("IndexedDB does not exist."))));
34
+ }, request.onsuccess = () => {
35
+ var database;
36
+ database = request.result, settled ? database.close() : (settled = !0, resolve(database));
37
+ };
38
+ });
39
+ }
40
+ });
41
+ }
42
+ /**
43
+ * Get a single DB value by key.
44
+ */ get(key) {
45
+ return tslib_es6.__awaiter(this, void 0, void 0, function*() {
46
+ return this.runRequest("readonly", store => store.get(key));
47
+ });
48
+ }
49
+ /**
50
+ * Get all the values in the store.
51
+ */ getAll() {
52
+ return tslib_es6.__awaiter(this, void 0, void 0, function*() {
53
+ return this.runRequest("readonly", store => store.getAll());
54
+ });
55
+ }
56
+ /**
57
+ * Get all keys in the store.
58
+ */ getAllKeys() {
59
+ return tslib_es6.__awaiter(this, void 0, void 0, function*() {
60
+ return this.runRequest("readonly", store => store.getAllKeys());
61
+ });
62
+ }
63
+ set(key, value) {
64
+ return tslib_es6.__awaiter(this, void 0, void 0, function*() {
65
+ return this.runRequest("readwrite", store => store.put(value, key));
66
+ });
67
+ }
68
+ /**
69
+ * Adds a new value to the store with or without a key.
70
+ * If a key already exists it will error.
71
+ */ add(value, key) {
72
+ return tslib_es6.__awaiter(this, void 0, void 0, function*() {
73
+ return this.runRequest("readwrite", store => void 0 === key ? store.add(value) : store.add(value, key));
74
+ });
75
+ }
76
+ /**
77
+ * Updates a value by key. This uses IndexedDB put semantics.
78
+ */ update(key, value) {
79
+ return tslib_es6.__awaiter(this, void 0, void 0, function*() {
80
+ return this.set(key, value);
81
+ });
82
+ }
83
+ /**
84
+ * Removes a value from the store by key.
85
+ */ remove(key) {
86
+ return tslib_es6.__awaiter(this, void 0, void 0, function*() {
87
+ yield this.runRequest("readwrite", store => store.delete(key));
88
+ });
89
+ }
90
+ /**
91
+ * Clear all the store values
92
+ */ clear() {
93
+ return tslib_es6.__awaiter(this, void 0, void 0, function*() {
94
+ yield this.runRequest("readwrite", store => store.clear());
95
+ });
96
+ }
97
+ /**
98
+ * Cleanly close the IndexedDB connection.
99
+ */ close() {
100
+ return tslib_es6.__awaiter(this, void 0, void 0, function*() {
101
+ var _a;
102
+ null === (_a = this.db) || void 0 === _a || _a.close(), this.db = null;
103
+ });
104
+ }
105
+ /**
106
+ * Deletes an indexedDB database.
107
+ */ destroy() {
108
+ return tslib_es6.__awaiter(this, void 0, void 0, function*() {
109
+ if (yield this.close(), "undefined" == typeof indexedDB) throw new TypeError("IndexedDB is not supported in this environment.");
110
+ yield new Promise((resolve, reject) => {
111
+ const request = indexedDB.deleteDatabase(this.databaseName);
112
+ request.onerror = () => {
113
+ var _a;
114
+ reject(null !== (_a = request.error) && void 0 !== _a ? _a : new Error("Failed to delete IndexedDB."));
115
+ }, request.onsuccess = () => resolve(), request.onblocked = () => {
116
+ reject(new Error("Failed to delete IndexedDB because it is blocked."));
117
+ };
118
+ });
119
+ });
120
+ }
121
+ /**
122
+ * Helper method that returns the IDBObjectStore for the specified store name.
123
+ */ getStore(mode) {
124
+ return tslib_es6.__awaiter(this, void 0, void 0, function*() {
125
+ if (yield this.initialize(), !this.db) throw new Error("IndexedDB connection is not initialized.");
126
+ return this.db.transaction(this.storeName, mode).objectStore(this.storeName);
127
+ });
128
+ }
129
+ /**
130
+ * Private executor of request of the indexedDB
131
+ * Returns the result of the indexedDB request including the error if there is one
132
+ */ runRequest(mode, callback) {
133
+ return tslib_es6.__awaiter(this, void 0, void 0, function*() {
134
+ const store = yield this.getStore(mode);
135
+ return yield new Promise((resolve, reject) => {
136
+ const request = callback(store);
137
+ request.onerror = () => {
138
+ var _a;
139
+ reject(null !== (_a = request.error) && void 0 !== _a ? _a : new Error("IndexedDB request failed."));
140
+ }, request.onsuccess = () => {
141
+ resolve(request.result);
142
+ };
143
+ });
144
+ });
145
+ }
146
+ };
@@ -9,13 +9,22 @@ var tslib_es6 = require("./tslib.es6-C8dZW5nY.js"), Icon = require("./Icon-N0YJu
9
9
  styleInject_es.styleInject(".flexBox-module_row__z24tF {\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowBetween__5FEvi {\n\tdisplay: flex;\n\tjustify-content: space-between;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowStart__4tcxS {\n\tdisplay: flex;\n\tjustify-content: flex-start;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowEnd__rVdVm {\n\tdisplay: flex;\n\tjustify-content: flex-end;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_column__ezvMq {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: center;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnStart__C7P44 {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-start;\n\talign-items: flex-start;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnStartCenter__PKcrG {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-start;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnBetween__ERfp7 {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: space-between;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnEnd__lLJuc {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-end;\n\talign-items: flex-end;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}\n\n.DoneCheck-module_wrapper__AlISD {\n\theight: var(--icon-height);\n\tmax-height: var(--icon-height);\n\twidth: var(--icon-width);\n\tmax-width: var(--icon-width);\n\toverflow: visible;\n}\n\n.DoneCheck-module_icon__bKaFp {\n\theight: var(--icon-height);\n\tmax-height: var(--icon-height);\n\twidth: var(--icon-width);\n\tmax-width: var(--icon-width);\n\tscale: var(--icon-scale);\n\ttransition: var(--icon-transition);\n}\n");
10
10
 
11
11
  const DoneCheck = React.memo(props => {
12
- const theme = hooks_useTheme.useTheme(), {size: size = 88, stroke: stroke = 1.5, color: color = theme.current.colors["feedback-positive"], play: play = !0, delay: delay = 0, duration: duration = 1, didStart: didStart, didEnd: didEnd} = props, [playing, setPlaying] = React.useState(!1);
13
- React.useEffect(() => setPlaying(play), [ play ]);
12
+ const theme = hooks_useTheme.useTheme(), {size: size = 88, stroke: stroke = 1.5, color: color = theme.current.colors["feedback-positive"], play: play = !0, delay: delay = 5, duration: duration = 1, didStart: didStart, didEnd: didEnd} = props, [playing, setPlaying] = React.useState(!play);
13
+ React.useEffect(() => {
14
+ let frameOne = 0, frameTwo = 0;
15
+ return play ? (setPlaying(!1), frameOne = requestAnimationFrame(() => {
16
+ frameTwo = requestAnimationFrame(() => {
17
+ setPlaying(!0);
18
+ });
19
+ })) : setPlaying(!0), () => {
20
+ frameOne && cancelAnimationFrame(frameOne), frameTwo && cancelAnimationFrame(frameTwo);
21
+ };
22
+ }, [ play ]);
14
23
  const transition = React.useMemo(() => `scale ${duration}s var(--motion-spring) ${delay}s`, [ delay, duration ]), cssVars = React.useMemo(() => ({
15
24
  "--icon-size": `${size}px`,
16
25
  "--icon-scale": playing ? 1 : 0,
17
- "--icon-transition": playing ? transition : "unset"
18
- }), [ size, playing, transition ]);
26
+ "--icon-transition": play ? transition : "unset"
27
+ }), [ size, playing, play, transition ]);
19
28
  return jsxRuntime.jsx("div", {
20
29
  className: css$1_wrapper,
21
30
  role: "status",
@@ -4,7 +4,7 @@ var jsxRuntime = require("react/jsx-runtime"), React = require("react"), hooks_u
4
4
 
5
5
  require("../theme/colors.js"), require("../hooks/useWindow.js");
6
6
 
7
- var Button = require("./Button-D8_eyuOA.js"), FileList = require("./FileList-tivoUJSP.js"), styleInject_es = require("./style-inject.es-CMuL-BfJ.js"), css = {
7
+ var Button = require("./Button-mVVfNCqC.js"), FileList = require("./FileList-CCAtVNDo.js"), styleInject_es = require("./style-inject.es-CMuL-BfJ.js"), css = {
8
8
  wrapperBg: "PromptInput-module_wrapperBg__zabZq flexBox-module_columnStart__C7P44",
9
9
  bgRotate: "PromptInput-module_bgRotate__Um720",
10
10
  textareaWrapper: "PromptInput-module_textareaWrapper__KusiV flexBox-module_columnStart__C7P44",
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- var tslib_es6 = require("./tslib.es6-C8dZW5nY.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react"), Button = require("./Button-D8_eyuOA.js"), styleInject_es = require("./style-inject.es-CMuL-BfJ.js"), css_wrapper = "TextArea-module_wrapper__O0sWP flexBox-module_columnStart__C7P44", css_textarea = "TextArea-module_textarea__-R2n0", css_send = "TextArea-module_send__Cub13", css_s = "TextArea-module_s__Ac-fq type-module_body-s-regular__vRHSP", css_m = "TextArea-module_m__dod4R type-module_body-m-regular__LuQBA", css_l = "TextArea-module_l__-uLCG type-module_body-l-regular__lOYbg";
3
+ var tslib_es6 = require("./tslib.es6-C8dZW5nY.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react"), Button = require("./Button-mVVfNCqC.js"), styleInject_es = require("./style-inject.es-CMuL-BfJ.js"), css_wrapper = "TextArea-module_wrapper__O0sWP flexBox-module_columnStart__C7P44", css_textarea = "TextArea-module_textarea__-R2n0", css_send = "TextArea-module_send__Cub13", css_s = "TextArea-module_s__Ac-fq type-module_body-s-regular__vRHSP", css_m = "TextArea-module_m__dod4R type-module_body-m-regular__LuQBA", css_l = "TextArea-module_l__-uLCG type-module_body-l-regular__lOYbg";
4
4
 
5
5
  styleInject_es.styleInject(".flexBox-module_row__z24tF {\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowBetween__5FEvi {\n\tdisplay: flex;\n\tjustify-content: space-between;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowStart__4tcxS {\n\tdisplay: flex;\n\tjustify-content: flex-start;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowEnd__rVdVm {\n\tdisplay: flex;\n\tjustify-content: flex-end;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_column__ezvMq {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: center;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnStart__C7P44 {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-start;\n\talign-items: flex-start;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnStartCenter__PKcrG {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-start;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnBetween__ERfp7 {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: space-between;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnEnd__lLJuc {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-end;\n\talign-items: flex-end;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.type-module_body-xs-regular__ZAFft {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-xs);\n\tline-height: 133.33%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-xs-medium__s3KvF {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-xs);\n\tline-height: 133.33%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-xs-bold__Lhqqq {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-xs);\n\tline-height: 133.33%;\n\ttext-decoration: none;\n\tletter-spacing: 0.25px;\n}.type-module_body-s-regular__vRHSP {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-s);\n\tline-height: 142.86%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-s-medium__tjdFc {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-s);\n\tline-height: 142.86%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-s-bold__Iy-VX {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-s);\n\tline-height: 142.86%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-m-regular__LuQBA {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-m);\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-m-medium__uW1on {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-m);\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-m-bold__UBcvQ {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-m);\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-l-regular__lOYbg {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-l);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-l-medium__BqRC7 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-l);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-l-bold__Fh2dt {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-l);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-xl-regular__pF2kC {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-xl);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-xl-medium__BeyrH {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-xl);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-xl-bold__Ruknj {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-xl);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_heading-s-medium__z8L3G {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 20px;\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-s-bold__0O3g6 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 20px;\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-m-bold__KXxEB {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 24px;\n\tline-height: 116.67%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-m-medium__cJeEA {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 24px;\n\tline-height: 116.67%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-l-medium__eRe05 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 30px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-l-bold__Xmwtf {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 30px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-xl-medium__5q1m3 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 36px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-xl-bold__k9VFV {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 36px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}\n\n.TextArea-module_wrapper__O0sWP {\n\tposition: relative;\n\tpadding: var(--ta-padding) !important;\n\twidth: var(--ta-width);\n\theight: auto;\n\tborder-radius: var(--ta-border-radius);\n\tbackground-color: var(--ta-bg-color);\n\tbox-shadow: 0 0 0 1px var(--ta-border-color);\n\ttransition: all var(--motion-water-duration) var(--motion-water) 0s;\n}\n\n.TextArea-module_textarea__-R2n0 {\n\tborder: 0;\n\toutline: 0;\n\tpadding: 0 16px 0 0;\n\twidth: 100%;\n\theight: 100%;\n\tcolor: var(--core-text-primary);\n\tbackground-color: transparent;\n\tbox-sizing: border-box;\n\tresize: var(--ta-resize);\n\n\t&:disabled {\n\t\tcolor: var(--core-text-disabled);\n\t}\n\n\t&::placeholder {\n\t\tcolor: var(--core-text-disabled);\n\t}\n\n\toverflow-y: auto;\n\n\t&::-webkit-scrollbar {\n\t\tbackground-color: transparent;\n\t\twidth: 14px;\n\t}\n\n\t&::-webkit-scrollbar-track {\n\t\tbackground-color: transparent;\n\t}\n\n\t&::-webkit-scrollbar-thumb {\n\t\tbackground-color: var(--scroll-bar);\n\t\tborder-radius: 20px;\n\t\tborder: 4px solid var(--core-surface-primary);\n\t}\n\n\t&::-webkit-scrollbar-thumb:hover {\n\t\tbackground-color: var(--scroll-bar);\n\t\tborder-radius: 20px;\n\t\tborder: 4px solid var(--core-surface-primary);\n\t\tcursor: default;\n\t}\n}\n\n.TextArea-module_actions__yunQx {\n\twidth: 100%;\n\tmin-height: 30px;\n\tcolor: var(--core-text-disabled);\n\tgap: 16px;\n}\n\n.TextArea-module_option__2SFx5 {\n\tgap: 4px;\n\twhite-space: nowrap;\n\tuser-select: none;\n\t-webkit-user-select: none;\n\tcursor: default;\n}\n\n.TextArea-module_send__Cub13 {\n\tposition: absolute;\n\tbottom: var(--ta-send-icon-offset-bottom);\n\tright: var(--ta-send-icon-offset-right);\n}\n\n.TextArea-module_s__Ac-fq {\n}\n\n.TextArea-module_m__dod4R {\n}\n\n.TextArea-module_l__-uLCG {\n}\n");
6
6
 
@@ -4,7 +4,7 @@ var tslib_es6 = require("./tslib.es6-C8dZW5nY.js"), jsxRuntime = require("react/
4
4
 
5
5
  require("../theme/colors.js"), require("../hooks/useWindow.js");
6
6
 
7
- var Button = require("./Button-D8_eyuOA.js"), Icon = require("./Icon-N0YJuKQf.js"), IconButton = require("./IconButton-BXotgG2u.js"), styleInject_es = require("./style-inject.es-CMuL-BfJ.js"), css = {
7
+ var Button = require("./Button-mVVfNCqC.js"), Icon = require("./Icon-N0YJuKQf.js"), IconButton = require("./IconButton-BXotgG2u.js"), styleInject_es = require("./style-inject.es-CMuL-BfJ.js"), css = {
8
8
  wrapper: "TextField-module_wrapper__qZ-p- flexBox-module_rowStart__4tcxS",
9
9
  container: "TextField-module_container__5U9yK flexBox-module_rowStart__4tcxS",
10
10
  label: "TextField-module_label__jD8MR flexBox-module_rowStart__4tcxS",
@@ -184,7 +184,7 @@ const MOTION_CONFIG = {
184
184
  children: jsxRuntime.jsx(Button.Button, {
185
185
  label: "Translate",
186
186
  variant: "text",
187
- size: "text",
187
+ size: "small",
188
188
  state: "" === text ? "disabled" : "normal",
189
189
  labelColor: theme.current.colors["core-button-primary"],
190
190
  onClick: onAction
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- var jsxRuntime = require("react/jsx-runtime"), React = require("react"), misc = require("./misc-BTF7BCZW.js"), FileList = require("./FileList-tivoUJSP.js"), Icon = require("./Icon-N0YJuKQf.js"), ProgressIndicator = require("./ProgressIndicator-opbbADog.js"), styleInject_es = require("./style-inject.es-CMuL-BfJ.js"), css = {
3
+ var jsxRuntime = require("react/jsx-runtime"), React = require("react"), misc = require("./misc-BTF7BCZW.js"), FileList = require("./FileList-CCAtVNDo.js"), Icon = require("./Icon-N0YJuKQf.js"), ProgressIndicator = require("./ProgressIndicator-CyFcr6Dk.js"), styleInject_es = require("./style-inject.es-CMuL-BfJ.js"), css = {
4
4
  wrapper: "UploadArea-module_wrapper__aircC flexBox-module_column__ezvMq",
5
5
  icon: "UploadArea-module_icon__M7n-m flexBox-module_row__z24tF",
6
6
  title: "UploadArea-module_title__VbNGq type-module_body-l-bold__Fh2dt",
@@ -0,0 +1,182 @@
1
+ "use strict";
2
+
3
+ var tslib_es6 = require("./tslib.es6-C8dZW5nY.js"), zustand = require("zustand"), IndexedDB = require("./IndexedDB-BxQn7aHU.js");
4
+
5
+ function isValidIDBKey(key) {
6
+ return "string" == typeof key || "number" == typeof key || key instanceof Date || key instanceof ArrayBuffer || (Array.isArray(key) ? key.every(entry => isValidIDBKey(entry)) : ArrayBuffer.isView(key));
7
+ }
8
+
9
+ function areKeysEqual(left, right) {
10
+ return left instanceof Date && right instanceof Date ? left.getTime() === right.getTime() : Array.isArray(left) && Array.isArray(right) ? left.length === right.length && left.every((value, index) => areKeysEqual(value, right[index])) : left === right;
11
+ }
12
+
13
+ function normalizeValues(value) {
14
+ return Array.isArray(value) ? value : [ value ];
15
+ }
16
+
17
+ function readStoreRecords(connection) {
18
+ return tslib_es6.__awaiter(this, void 0, void 0, function*() {
19
+ const [keys, values] = yield Promise.all([ connection.getAllKeys(), connection.getAll() ]);
20
+ return keys.map((key, index) => {
21
+ var _a;
22
+ return {
23
+ key: key,
24
+ value: null !== (_a = values[index]) && void 0 !== _a ? _a : null
25
+ };
26
+ });
27
+ });
28
+ }
29
+
30
+ function getConnection(stores, name) {
31
+ const connection = stores.find(entry => entry.name === name);
32
+ if (!connection) throw new Error(`IndexedDB store "${name}" is not registered.`);
33
+ return connection;
34
+ }
35
+
36
+ function applyConnectionState(name, patch) {
37
+ useLocalDBStore.setState(state => ({
38
+ stores: state.stores.map(entry => entry.name === name ? Object.assign(Object.assign({}, entry), patch) : entry)
39
+ }));
40
+ }
41
+
42
+ function applyStoreError(name, error) {
43
+ applyConnectionState(name, {
44
+ error: error instanceof Error ? error.message : String(error)
45
+ });
46
+ }
47
+
48
+ function deriveRecordKey(store, value) {
49
+ const keyField = function(store) {
50
+ if (!store.key) throw new Error(`IndexedDB store "${store.name}" requires a configured key field for value-driven actions.`);
51
+ return store.key;
52
+ }(store);
53
+ if (!value || "object" != typeof value) throw new Error(`IndexedDB store "${store.name}" expects object values for value-driven actions.`);
54
+ const candidate = value[keyField];
55
+ if (void 0 === candidate) throw new Error(`IndexedDB store "${store.name}" expected field "${keyField}" on the provided value.`);
56
+ if (!isValidIDBKey(candidate)) throw new Error(`IndexedDB store "${store.name}" field "${keyField}" does not contain a valid IndexedDB key.`);
57
+ return candidate;
58
+ }
59
+
60
+ const useLocalDBStore = zustand.create((set, get) => ({
61
+ stores: [],
62
+ actions: {
63
+ addStore: (name_1, ...args_1) => tslib_es6.__awaiter(void 0, [ name_1, ...args_1 ], void 0, function*(name, options = {}) {
64
+ var _a;
65
+ const existing = get().stores.find(entry => entry.name === name);
66
+ yield null == existing ? void 0 : existing.connection.close();
67
+ const {create: create = !0} = options, connectionOptions = tslib_es6.__rest(options, [ "create" ]), connection = new IndexedDB.IndexedDB(name, connectionOptions);
68
+ yield connection.initialize(create);
69
+ const records = yield readStoreRecords(connection);
70
+ !function(connection) {
71
+ useLocalDBStore.setState(state => ({
72
+ stores: [ ...state.stores.filter(entry => entry.name !== connection.name), connection ]
73
+ }));
74
+ }({
75
+ name: name,
76
+ connection: connection,
77
+ key: null !== (_a = options.key) && void 0 !== _a ? _a : null,
78
+ records: records,
79
+ initialized: !0,
80
+ error: null
81
+ });
82
+ }),
83
+ removeStore: name => tslib_es6.__awaiter(void 0, void 0, void 0, function*() {
84
+ const existing = get().stores.find(entry => entry.name === name);
85
+ existing && (yield existing.connection.close(), set(state => ({
86
+ stores: state.stores.filter(entry => entry.name !== name)
87
+ })));
88
+ }),
89
+ refreshStore: name => tslib_es6.__awaiter(void 0, void 0, void 0, function*() {
90
+ const existing = getConnection(get().stores, name), records = yield readStoreRecords(existing.connection);
91
+ applyConnectionState(name, {
92
+ records: records,
93
+ initialized: !0,
94
+ error: null
95
+ });
96
+ }),
97
+ setValue: (name, value) => tslib_es6.__awaiter(void 0, void 0, void 0, function*() {
98
+ const existing = getConnection(get().stores, name);
99
+ try {
100
+ const values = normalizeValues(value), resolvedKeys = [];
101
+ for (const item of values) {
102
+ const key = deriveRecordKey(existing, item), resolvedKey = yield existing.connection.set(key, item);
103
+ resolvedKeys.push(resolvedKey);
104
+ }
105
+ const records = yield readStoreRecords(existing.connection);
106
+ return applyConnectionState(name, {
107
+ records: records,
108
+ error: null
109
+ }), Array.isArray(value) ? resolvedKeys : resolvedKeys[0];
110
+ } catch (error) {
111
+ throw applyStoreError(name, error), error;
112
+ }
113
+ }),
114
+ addValue: (name, value) => tslib_es6.__awaiter(void 0, void 0, void 0, function*() {
115
+ const existing = getConnection(get().stores, name);
116
+ try {
117
+ const values = normalizeValues(value), resolvedKeys = [];
118
+ for (const item of values) {
119
+ const resolvedKey = yield existing.connection.add(item);
120
+ resolvedKeys.push(resolvedKey);
121
+ }
122
+ const records = yield readStoreRecords(existing.connection);
123
+ return applyConnectionState(name, {
124
+ records: records,
125
+ error: null
126
+ }), Array.isArray(value) ? resolvedKeys : resolvedKeys[0];
127
+ } catch (error) {
128
+ throw applyStoreError(name, error), error;
129
+ }
130
+ }),
131
+ removeValue: (name, value) => tslib_es6.__awaiter(void 0, void 0, void 0, function*() {
132
+ const existing = getConnection(get().stores, name);
133
+ try {
134
+ const values = normalizeValues(value);
135
+ for (const item of values) {
136
+ const key = deriveRecordKey(existing, item);
137
+ yield existing.connection.remove(key);
138
+ }
139
+ const records = yield readStoreRecords(existing.connection);
140
+ applyConnectionState(name, {
141
+ records: records,
142
+ error: null
143
+ });
144
+ } catch (error) {
145
+ throw applyStoreError(name, error), error;
146
+ }
147
+ }),
148
+ clearStore: name => tslib_es6.__awaiter(void 0, void 0, void 0, function*() {
149
+ const existing = getConnection(get().stores, name);
150
+ yield existing.connection.clear(), applyConnectionState(name, {
151
+ records: [],
152
+ error: null
153
+ });
154
+ }),
155
+ destroyStore: name => tslib_es6.__awaiter(void 0, void 0, void 0, function*() {
156
+ const existing = get().stores.find(entry => entry.name === name);
157
+ existing && (yield existing.connection.destroy(), set(state => ({
158
+ stores: state.stores.filter(entry => entry.name !== name)
159
+ })));
160
+ })
161
+ }
162
+ }));
163
+
164
+ const localDBActions = useLocalDBStore.getState().actions;
165
+
166
+ exports.localDBActions = localDBActions, exports.useLocalDB = name => useLocalDBStore(state => ({
167
+ refresh: () => state.actions.refreshStore(name),
168
+ set: value => state.actions.setValue(name, value),
169
+ add: value => state.actions.addValue(name, value),
170
+ remove: value => state.actions.removeValue(name, value),
171
+ clear: () => state.actions.clearStore(name),
172
+ destroy: () => state.actions.destroyStore(name)
173
+ })), exports.useLocalDBError = name => useLocalDBStore(state => {
174
+ var _a, _b;
175
+ return null !== (_b = null === (_a = state.stores.find(entry => entry.name === name)) || void 0 === _a ? void 0 : _a.error) && void 0 !== _b ? _b : null;
176
+ }), exports.useLocalDBStore = useLocalDBStore, exports.useLocalDBValues = function(name, fieldOrKey, value) {
177
+ return useLocalDBStore(state => {
178
+ var _a, _b, _c, _d;
179
+ const records = null !== (_b = null === (_a = state.stores.find(entry => entry.name === name)) || void 0 === _a ? void 0 : _a.records) && void 0 !== _b ? _b : [], values = records.map(record => record.value);
180
+ return void 0 === fieldOrKey ? values : void 0 === value ? null !== (_d = null === (_c = records.find(record => areKeysEqual(record.key, fieldOrKey))) || void 0 === _c ? void 0 : _c.value) && void 0 !== _d ? _d : null : values.filter(entry => (null == entry ? void 0 : entry[fieldOrKey]) === value);
181
+ });
182
+ };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- var Avatar = require("../../chunks/Avatar-8XLnVICd.js");
3
+ var Avatar = require("../../chunks/Avatar-Czt-12Ih.js");
4
4
 
5
5
  require("../../chunks/tslib.es6-C8dZW5nY.js"), require("react/jsx-runtime"), require("react"),
6
6
  require("../../chunks/misc-BTF7BCZW.js"), require("../../chunks/style-inject.es-CMuL-BfJ.js"),
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
 
3
- var AvatarGroup = require("../../chunks/AvatarGroup-BhKZvX8M.js");
3
+ var AvatarGroup = require("../../chunks/AvatarGroup-CGH2zY7a.js");
4
4
 
5
5
  require("../../chunks/tslib.es6-C8dZW5nY.js"), require("react/jsx-runtime"), require("react"),
6
- require("../../chunks/Avatar-8XLnVICd.js"), require("../../chunks/misc-BTF7BCZW.js"),
6
+ require("../../chunks/Avatar-Czt-12Ih.js"), require("../../chunks/misc-BTF7BCZW.js"),
7
7
  require("../../chunks/style-inject.es-CMuL-BfJ.js"), exports.AvatarGroup = AvatarGroup.AvatarGroup;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- var Button = require("../../chunks/Button-D8_eyuOA.js");
3
+ var Button = require("../../chunks/Button-mVVfNCqC.js");
4
4
 
5
5
  require("../../chunks/tslib.es6-C8dZW5nY.js"), require("react/jsx-runtime"), require("motion/react"),
6
6
  require("react"), require("../../chunks/Badge-CY_DG6cD.js"), require("../../chunks/style-inject.es-CMuL-BfJ.js"),
@@ -8,5 +8,5 @@ require("../../chunks/Dot-_HCJ3qxd.js"), require("../../chunks/Icon-N0YJuKQf.js"
8
8
  require("../../hooks/useTheme.js"), require("../../theme/themes.js"), require("../../theme/colors.js"),
9
9
  require("../../theme/corners.js"), require("../../theme/elevations.js"), require("../../theme/motion.js"),
10
10
  require("../../theme/type.js"), require("../../hooks/useObserveTheme.js"), require("../../hooks/useWindow.js"),
11
- require("../../chunks/misc-BTF7BCZW.js"), require("../../chunks/ProgressIndicator-opbbADog.js"),
11
+ require("../../chunks/misc-BTF7BCZW.js"), require("../../chunks/ProgressIndicator-CyFcr6Dk.js"),
12
12
  require("../../chunks/sharedTypes-gCECyn2N.js"), exports.Button = Button.Button;