@apple-pie/slice 0.1.8 → 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 +4 -3
  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
@@ -12,7 +12,7 @@ import { D as Dot } from "./Dot-CLGwQu-i.mjs";
12
12
 
13
13
  import { I as Icon } from "./Icon-C92f63Ib.mjs";
14
14
 
15
- import { P as ProgressIndicator } from "./ProgressIndicator-BVwQNOcV.mjs";
15
+ import { P as ProgressIndicator } from "./ProgressIndicator-CfM2c4ty.mjs";
16
16
 
17
17
  import { T as ToolTipType } from "./sharedTypes-tn9-uJvb.mjs";
18
18
 
@@ -28,16 +28,18 @@ var css = {
28
28
  s: "Button-module_s__dSKOL type-module_body-s-regular__vRHSP"
29
29
  };
30
30
 
31
- 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.Button-module_button__2ZuB7 {\n\tposition: relative;\n\tuser-select: none;\n\tmin-width: var(--ui-button-min-width);\n\t-webkit-user-select: none;\n\tappearance: none;\n\t-webkit-appearance: none;\n\tbackground-image: none;\n\toutline: none;\n}\n\n.Button-module_label__UJ3Zt {\n\tuser-select: none;\n\t-webkit-user-select: none;\n\ttext-overflow: ellipsis;\n\toverflow: hidden;\n\twhite-space: nowrap;\n\tword-break: break-all;\n\tdisplay: -webkit-box;\n\t-webkit-line-clamp: 1;\n\t-webkit-box-orient: vertical;\n\t&:hover {\n\t\ttext-decoration: var(--ui-button-decoration);\n\t}\n}\n\n.Button-module_count__DFxVB {\n\tposition: absolute;\n\ttop: 0;\n\tright: 0;\n\ttransform: translateX(10px) translateY(-2px);\n}\n\n.Button-module_icon__-43u5 {\n\tmin-width: var(--ui-button-icon-size);\n\tmin-height: var(--ui-button-icon-size);\n\theight: var(--ui-button-icon-size);\n\twidth: var(--ui-button-icon-size);\n}\n\n.Button-module_m__DR-gs {\n}\n\n.Button-module_l__0E0yI {\n}\n\n.Button-module_s__dSKOL {\n}\n");
31
+ 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.Button-module_button__2ZuB7 {\n\tposition: relative;\n\tuser-select: none;\n\t-webkit-user-select: none;\n\tappearance: none;\n\t-webkit-appearance: none;\n\tbackground-image: none;\n\toutline: none;\n}\n\n.Button-module_label__UJ3Zt {\n\tuser-select: none;\n\t-webkit-user-select: none;\n\ttext-overflow: ellipsis;\n\toverflow: hidden;\n\twhite-space: nowrap;\n\tword-break: break-all;\n\tdisplay: -webkit-box;\n\t-webkit-line-clamp: 1;\n\t-webkit-box-orient: vertical;\n\t&:hover {\n\t\ttext-decoration: var(--ui-button-decoration);\n\t}\n}\n\n.Button-module_count__DFxVB {\n\tposition: absolute;\n\ttop: 0;\n\tright: 0;\n\ttransform: translateX(10px) translateY(-2px);\n}\n\n.Button-module_icon__-43u5 {\n\tmin-width: var(--ui-button-icon-size);\n\tmin-height: var(--ui-button-icon-size);\n\theight: var(--ui-button-icon-size);\n\twidth: var(--ui-button-icon-size);\n}\n\n.Button-module_m__DR-gs {\n}\n\n.Button-module_l__0E0yI {\n}\n\n.Button-module_s__dSKOL {\n}\n");
32
32
 
33
33
  const ButtonComponent = forwardRef((props, buttonRef) => {
34
- const {size: size = "medium", variant: variant = "outline", label: label, labelSize: labelSize = "m", iconRight: iconRight, iconLeft: iconLeft, count: count = (void 0 === props.count ? void 0 : Number(props.count)), showDot: showDot, tooltip: tooltip, round: round = !1, state: state = "normal", fill: fill = !1, iconSize: iconSize = (void 0 === props.iconSize ? 20 : Number(props.iconSize)), width: width = "min-content", underline: underline = !1, borderRadius: borderRadius, iconColor: iconColor, bgColor: bgColor, bgColorDisabled: bgColorDisabled, labelColor: labelColor, transition: transition, variants: variants, initial: initial, animate: animate, exit: exit, paddingRight: paddingRight, paddingLeft: paddingLeft, progress: progress = !1, working: working = !1, duration: duration, trigger: trigger = !1, destructive: destructive = !1, onClick: onClick = () => null, onToolTip: onToolTip = () => null} = props, divAttributes = __rest(props, [ "size", "variant", "label", "labelSize", "iconRight", "iconLeft", "count", "showDot", "tooltip", "round", "state", "fill", "iconSize", "width", "underline", "borderRadius", "iconColor", "bgColor", "bgColorDisabled", "labelColor", "transition", "variants", "initial", "animate", "exit", "paddingRight", "paddingLeft", "progress", "working", "duration", "trigger", "destructive", "onClick", "onToolTip" ]), {id: divId, className: className, style: style} = divAttributes, rest = __rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", [btnState, setBtnState] = useState(state), [btnWidth, setBtnWidth] = useState(void 0), [playing, setPlaying] = useState(working), ref = useRef(null), handleClick = useCallback(e => {
35
- onToolTip(null), "disabled" !== btnState && (progress && duration ? setPlaying(!0) : onClick(e));
36
- }, [ onToolTip, btnState, progress, duration, onClick ]);
37
- useEffect(() => setBtnState(state), [ state ]), useEffect(() => setPlaying(working), [ working ]),
38
- useEffect(() => {
39
- variant && size && labelSize && ((null == ref ? void 0 : ref.current) ? setBtnWidth(ref.current.offsetWidth) : setBtnWidth(width));
40
- }, [ width, variant, labelSize, size ]), useImperativeHandle(buttonRef, () => ({
34
+ const {children: children, size: size = "medium", variant: variant = "outline", label: label, labelSize: labelSize = "m", iconRight: iconRight, iconLeft: iconLeft, count: count = (void 0 === props.count ? void 0 : Number(props.count)), showDot: showDot, tooltip: tooltip, round: round = !1, state: state = "normal", fill: fill = !1, iconSize: iconSize = (void 0 === props.iconSize ? 20 : Number(props.iconSize)), width: width = "min-content", underline: underline = !1, borderRadius: borderRadius, iconColor: iconColor, bgColor: bgColor, bgColorDisabled: bgColorDisabled, labelColor: labelColor, transition: transition, variants: variants, initial: initial, animate: animate, exit: exit, paddingRight: paddingRight, paddingLeft: paddingLeft, progress: progress = !1, working: working = !1, duration: duration, trigger: trigger = !1, destructive: destructive = !1, onClick: onClick = () => null, onToolTip: onToolTip = () => null} = props, divAttributes = __rest(props, [ "children", "size", "variant", "label", "labelSize", "iconRight", "iconLeft", "count", "showDot", "tooltip", "round", "state", "fill", "iconSize", "width", "underline", "borderRadius", "iconColor", "bgColor", "bgColorDisabled", "labelColor", "transition", "variants", "initial", "animate", "exit", "paddingRight", "paddingLeft", "progress", "working", "duration", "trigger", "destructive", "onClick", "onToolTip" ]), {id: divId, className: className, style: style} = divAttributes, rest = __rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", [btnState, setBtnState] = useState(state), [lockedWidth, setLockedWidth] = useState(void 0), [playing, setPlaying] = useState(working), ref = useRef(null), lockCurrentWidth = useCallback(() => {
35
+ ref.current && setLockedWidth(ref.current.offsetWidth);
36
+ }, []), handleClick = useCallback(e => {
37
+ onToolTip(null), "disabled" !== btnState && (progress && duration ? (lockCurrentWidth(),
38
+ setPlaying(!0)) : onClick(e));
39
+ }, [ onToolTip, btnState, progress, duration, lockCurrentWidth, onClick ]);
40
+ useEffect(() => setBtnState(state), [ state ]), useEffect(() => {
41
+ working ? lockCurrentWidth() : setLockedWidth(void 0), setPlaying(working);
42
+ }, [ working, lockCurrentWidth ]), useImperativeHandle(buttonRef, () => ({
41
43
  triggerClick: () => handleClick(void 0)
42
44
  })), useEffect(() => {
43
45
  trigger && handleClick(void 0);
@@ -118,14 +120,20 @@ const ButtonComponent = forwardRef((props, buttonRef) => {
118
120
  solid: solid,
119
121
  outline: outline,
120
122
  text: text
121
- }), [ solid, outline, text ]), setPadding = useCallback(side => round ? 0 : "left" === side && iconLeft || "right" === side && iconRight ? 20 : 24, [ round, iconLeft, iconRight ]), sizingStyles = useMemo(() => ({
123
+ }), [ solid, outline, text ]), setPadding = useCallback(side => {
124
+ if (round) return 0;
125
+ let padding = 20;
126
+ return "text" === variant && (padding = 0), "small" === size && (padding = 12),
127
+ "left" === side && iconLeft || "right" === side && iconRight ? padding : padding + 4;
128
+ }, [ round, variant, size, iconLeft, iconRight ]), sizingStyles = useMemo(() => ({
122
129
  large: {
123
130
  height: 48,
124
131
  gap: 8,
125
132
  iconSize: iconSize,
126
133
  paddingLeft: setPadding("left"),
127
134
  paddingRight: setPadding("right"),
128
- width: round ? "48px" : btnWidth || "auto",
135
+ paddingTop: 0,
136
+ paddingBottom: 0,
129
137
  borderRadius: null != borderRadius ? borderRadius : "500px"
130
138
  },
131
139
  medium: {
@@ -134,19 +142,21 @@ const ButtonComponent = forwardRef((props, buttonRef) => {
134
142
  iconSize: iconSize,
135
143
  paddingLeft: setPadding("left"),
136
144
  paddingRight: setPadding("right"),
137
- width: round ? "36px" : btnWidth || "auto",
145
+ paddingTop: 0,
146
+ paddingBottom: 0,
138
147
  borderRadius: null != borderRadius ? borderRadius : "500px"
139
148
  },
140
- text: {
141
- height: 20,
149
+ small: {
150
+ height: "auto",
142
151
  gap: 8,
143
152
  iconSize: iconSize,
144
- paddingLeft: 0,
145
- paddingRight: 0,
146
- btnWidth: btnWidth,
147
- borderRadius: 0
153
+ paddingLeft: setPadding("left"),
154
+ paddingRight: setPadding("right"),
155
+ paddingTop: 4,
156
+ paddingBottom: 4,
157
+ borderRadius: null != borderRadius ? borderRadius : "500px"
148
158
  }
149
- }), [ iconSize, btnWidth, round, borderRadius, setPadding ]), handleMouseEnter = useCallback(e => {
159
+ }), [ iconSize, borderRadius, setPadding ]), handleMouseEnter = useCallback(e => {
150
160
  if ("disabled" !== btnState && setBtnState("hover"), !(null == ref ? void 0 : ref.current) || !tooltip) return;
151
161
  const tip = {
152
162
  type: ToolTipType.button,
@@ -160,34 +170,35 @@ const ButtonComponent = forwardRef((props, buttonRef) => {
160
170
  }, [ btnState, tooltip, onToolTip ]), handleMouseLeave = useCallback(() => {
161
171
  "disabled" !== btnState && setBtnState("normal"), tooltip && onToolTip(null);
162
172
  }, [ btnState, tooltip, onToolTip ]), handleDidStop = useCallback(() => {
163
- setPlaying(!1), onClick(void 0);
164
- }, [ onClick ]), shouldShowLabel = useMemo(() => !(playing && !iconLeft && !iconRight) && Boolean(label), [ playing, iconLeft, iconRight, label ]), buttonStyle = useMemo(() => ({
173
+ setPlaying(!1), setLockedWidth(void 0), onClick(void 0);
174
+ }, [ onClick ]), buttonContent = null != children ? children : label, shouldShowLabel = useMemo(() => !(playing && !iconLeft && !iconRight) && Boolean(buttonContent), [ playing, iconLeft, iconRight, buttonContent ]), setStyle = useCallback(value => void 0 === value ? "unset" : "number" == typeof value ? `${value}px` : value, []), buttonStyle = useMemo(() => ({
165
175
  color: colorStyles[variant].color[btnState],
166
176
  background: fill ? "var(--core-surface-primary)" : colorStyles[variant].background[state],
167
177
  paddingRight: null != paddingRight ? paddingRight : sizingStyles[size].paddingRight,
168
178
  paddingLeft: null != paddingLeft ? paddingLeft : sizingStyles[size].paddingLeft,
179
+ paddingTop: "text" === variant ? 0 : sizingStyles[size].paddingTop,
180
+ paddingBottom: "text" === variant ? 0 : sizingStyles[size].paddingBottom,
169
181
  borderRadius: sizingStyles[size].borderRadius,
170
182
  height: sizingStyles[size].height,
171
183
  maxHeight: sizingStyles[size].height,
172
184
  minHeight: sizingStyles[size].height,
173
185
  flex: "fill" === width ? 1 : "unset",
174
- width: width && "fill" !== width ? width : "min-content",
175
- maxWidth: width && "fill" !== width ? width : "min-content",
186
+ width: playing && lockedWidth && "min-content" === width ? setStyle(lockedWidth) : width && "fill" !== width ? width : "min-content",
187
+ maxWidth: playing && lockedWidth && "min-content" === width ? setStyle(lockedWidth) : width && "fill" !== width ? width : "min-content",
176
188
  gap: sizingStyles[size].gap,
177
189
  borderWidth: colorStyles[variant].border,
178
190
  borderStyle: "solid",
179
191
  borderColor: colorStyles[variant].borderColor[btnState],
180
192
  cursor: "disabled" === state ? "default" : "pointer",
181
193
  transition: "all var(--motion-water-duration) var(--motion-water) 0s"
182
- }), [ colorStyles, variant, btnState, fill, state, paddingRight, paddingLeft, sizingStyles, size, width ]), progressColor = useMemo(() => destructive ? "var(feedback-warning)" : colorStyles[variant].color[btnState], [ destructive, colorStyles, variant, btnState ]), setStyle = useCallback(value => void 0 === value ? "unset" : "number" == typeof value ? `${value}px` : value, []), iconDivSize = useMemo(() => round ? `${buttonStyle.minHeight}px` : iconSize ? setStyle(iconSize) : "unset", [ round, iconSize, buttonStyle, setStyle ]), cssVars = useMemo(() => ({
194
+ }), [ colorStyles, variant, btnState, fill, state, paddingRight, paddingLeft, sizingStyles, size, playing, lockedWidth, setStyle, width ]), progressColor = useMemo(() => destructive ? "var(feedback-warning)" : colorStyles[variant].color[btnState], [ destructive, colorStyles, variant, btnState ]), iconDivSize = useMemo(() => round ? `${buttonStyle.minHeight}px` : iconSize ? setStyle(iconSize) : "unset", [ round, iconSize, buttonStyle, setStyle ]), cssVars = useMemo(() => ({
183
195
  "--ui-button-decoration": underline ? "underline" : "unset",
184
- "--ui-button-min-width": btnWidth ? setStyle(btnWidth) : "unset",
185
196
  "--ui-button-icon-size": iconDivSize
186
- }), [ underline, btnWidth, setStyle, iconDivSize ]);
197
+ }), [ underline, iconDivSize ]);
187
198
  return jsxs(motion.button, Object.assign({
188
199
  id: divId,
189
200
  type: "button",
190
- className: `${css.button}${divClass}`,
201
+ className: `${css.button} ${css[labelSize]}${divClass}`,
191
202
  ref: ref,
192
203
  onMouseEnter: handleMouseEnter,
193
204
  onMouseLeave: handleMouseLeave,
@@ -230,8 +241,8 @@ const ButtonComponent = forwardRef((props, buttonRef) => {
230
241
  inline: !1
231
242
  })
232
243
  }), shouldShowLabel && jsx("div", {
233
- className: `${css.label} ${css[labelSize]}`,
234
- children: label
244
+ className: css.label,
245
+ children: buttonContent
235
246
  }), playing && iconRight && jsx("div", {
236
247
  className: css.icon,
237
248
  children: jsx(ProgressIndicator, {
@@ -0,0 +1,83 @@
1
+ import { _ as __rest } from "./tslib.es6-c-7TIv71.mjs";
2
+
3
+ import { jsx } from "react/jsx-runtime";
4
+
5
+ import React, { useState, useEffect, useCallback, useMemo, useRef } from "react";
6
+
7
+ import { s as setStyle } from "./misc-N8KLjOXc.mjs";
8
+
9
+ import { I as Icon } from "./Icon-C92f63Ib.mjs";
10
+
11
+ import { s as styleInject } from "./style-inject.es-D0BjEaN8.mjs";
12
+
13
+ var css_wrapper = "ButtonBar-module_wrapper__FYZ3s flexBox-module_rowStart__4tcxS", css_button = "ButtonBar-module_button__bMR3h flexBox-module_row__z24tF", css_selected = "ButtonBar-module_selected__wKvmi";
14
+
15
+ 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.ButtonBar-module_wrapper__FYZ3s {\n\tborder-radius: var(--bb-border-radius);\n\tborder: var(--bb-border-size) solid var(--bb-border-color);\n\toverflow: hidden;\n}\n\n.ButtonBar-module_label__UcAS1 {\n\tcolor: var(--bb-label-color);\n\tpadding-right: 4px;\n}\n\n.ButtonBar-module_button__bMR3h {\n\theight: var(--bb-button-size);\n\twidth: var(--bb-button-size);\n\tmin-height: var(--bb-button-size);\n\tmin-width: var(--bb-button-size);\n\tcursor: pointer;\n\tbackground: var(--bb-bg-color);\n\tborder: 0;\n\tborder-right: var(--bb-border-size) solid var(--bb-border-color);\n\tuser-select: none;\n\t-webkit-user-select: none;\n\tappearance: none;\n\t-webkit-appearance: none;\n\t&:first-child {\n\t\tpadding-left: 4px;\n\t}\n\t&:last-child {\n\t\tborder-right: none;\n\t\tpadding-right: 4px;\n\t}\n\t&:hover {\n\t\tbackground: var(--bb-bg-color-hover);\n\t}\n}\n\n.ButtonBar-module_selected__wKvmi {\n\tbackground: var(--bb-bg-color-active);\n\tcolor: var(--core-link-primary);\n}\n");
16
+
17
+ const ButtonBar = React.memo(function(props) {
18
+ const {buttons: buttons = [], selected: selected, toggle: toggle = !0, buttonSize: buttonSize = 44, iconSize: iconSize = 20, borderSize: borderSize = 1, borderRadius: borderRadius = 100, borderColor: borderColor = "var(--core-outline-primary)", bgColor: bgColor = "var(--core-surface-primary)", bgColorHover: bgColorHover = "var(--core-surface-secondary)", bgColorActive: bgColorActive = "var(--core-surface-secondary)", labelColor: labelColor = "var(--core-text-primary)", onClick: onClick = button => null, onChange: onChange = button => null, onToolTip: onToolTip = () => null} = props, divAttributes = __rest(props, [ "buttons", "selected", "toggle", "buttonSize", "iconSize", "borderSize", "borderRadius", "borderColor", "bgColor", "bgColorHover", "bgColorActive", "labelColor", "onClick", "onChange", "onToolTip" ]), {id: divId, className: className, style: style} = divAttributes, rest = __rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", [hovered, setHovered] = useState(-1), [selectedIndex, setSelectedIndex] = useState(selected);
19
+ useEffect(() => setSelectedIndex(selected), [ selected ]);
20
+ const handleMouseEnter = useCallback(index => {
21
+ setHovered(index);
22
+ }, []), handleMouseLeave = useCallback(() => {
23
+ setHovered(-1);
24
+ }, []), handleClick = useCallback((button, index) => {
25
+ onClick(button), toggle && (setSelectedIndex(index), onChange(button));
26
+ }, [ onChange, onClick, toggle ]), buttonClass = useCallback(index => toggle && selectedIndex === index ? css_selected : "", [ selectedIndex, toggle ]), iconColor = useCallback(index => toggle && selectedIndex === index ? "var(--core-text-special)" : hovered === index ? "var(--core-text-primary)" : "var(--core-text-secondary)", [ selectedIndex, hovered, toggle ]), cssVars = useMemo(() => ({
27
+ "--bb-border-size": `${borderSize}px`,
28
+ "--bb-border-radius": setStyle(borderRadius),
29
+ "--bb-border-color": borderColor,
30
+ "--bb-bg-color": bgColor,
31
+ "--bb-bg-color-hover": bgColorHover,
32
+ "--bb-bg-color-active": bgColorActive,
33
+ "--bb-label-color": labelColor,
34
+ "--bb-button-size": `${buttonSize}px`
35
+ }), [ borderSize, borderRadius, borderColor, bgColor, labelColor, bgColorHover, buttonSize, bgColorActive ]), barButtons = useMemo(() => null == buttons ? void 0 : buttons.map((button, index) => jsx(BarButton, {
36
+ classNames: `${css_button} ${buttonClass(index)}`,
37
+ onMouseEnter: () => handleMouseEnter(index),
38
+ onMouseLeave: handleMouseLeave,
39
+ onClick: () => handleClick(button, index),
40
+ onToolTip: onToolTip,
41
+ toolTip: button.tip,
42
+ iconSize: iconSize,
43
+ icon: button.icon,
44
+ iconColor: iconColor(index)
45
+ }, `button-bar-${button.icon}-${index}`)), [ buttons, buttonClass, handleMouseEnter, handleMouseLeave, handleClick, onToolTip, iconSize, iconColor ]);
46
+ return jsx("div", Object.assign({
47
+ id: divId,
48
+ className: `${css_wrapper}${divClass}`,
49
+ style: Object.assign(Object.assign({}, cssVars), divStyle)
50
+ }, rest, {
51
+ children: barButtons
52
+ }));
53
+ }), BarButton = React.memo(function(props) {
54
+ const {classNames: classNames, icon: icon, iconSize: iconSize, iconColor: iconColor, toolTip: toolTip, onClick: onClick, onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, onToolTip: onToolTip} = props, ref = useRef(null), handleMouseEnter = useCallback(e => {
55
+ const tip = {
56
+ payload: {
57
+ label: null != toolTip ? toolTip : "Button"
58
+ },
59
+ ref: ref,
60
+ event: e
61
+ };
62
+ null == onMouseEnter || onMouseEnter(), null == onToolTip || onToolTip(tip);
63
+ }, [ toolTip, onMouseEnter, onToolTip ]), handleMouseLeave = useCallback(() => {
64
+ null == onMouseLeave || onMouseLeave(), null == onToolTip || onToolTip(null);
65
+ }, [ onMouseLeave, onToolTip ]), handleClick = useCallback(() => {
66
+ null == onClick || onClick(), null == onToolTip || onToolTip(null);
67
+ }, [ onClick, onToolTip ]);
68
+ return jsx("button", {
69
+ ref: ref,
70
+ type: "button",
71
+ className: classNames,
72
+ onMouseEnter: handleMouseEnter,
73
+ onMouseLeave: handleMouseLeave,
74
+ onClick: handleClick,
75
+ children: jsx(Icon, {
76
+ name: icon,
77
+ size: iconSize,
78
+ strokeColor: iconColor
79
+ })
80
+ });
81
+ });
82
+
83
+ export { ButtonBar as B };
@@ -14,7 +14,7 @@ import { a as accessibleKeyDown } from "./misc-N8KLjOXc.mjs";
14
14
 
15
15
  import { a as addOpacity } from "./colors-FQ0uNQcW.mjs";
16
16
 
17
- import { A as Avatar } from "./Avatar-DGRMsHdO.mjs";
17
+ import { A as Avatar } from "./Avatar-DCCbj2eA.mjs";
18
18
 
19
19
  import { I as Icon } from "./Icon-C92f63Ib.mjs";
20
20
 
@@ -204,7 +204,11 @@ const Camera = React.memo(React.forwardRef((props, ref) => {
204
204
  "--camera-height": height,
205
205
  "--camera-controls-bg": controlsBg,
206
206
  "--camera-controls-transform": setControlBarVisible
207
- }), [ controlsBg, height, setControlBarVisible, width ]);
207
+ }), [ controlsBg, height, setControlBarVisible, width ]), handleMouseClick = useCallback(() => {
208
+ setHovered(!1);
209
+ }, []), handleControlsClick = useCallback(e => {
210
+ e.stopPropagation();
211
+ }, []);
208
212
  return useEffect(() => {
209
213
  startCameraOff ? stopCamera().then(() => null) : startCamera().then(() => null);
210
214
  }, [ startCamera, startCameraOff, stopCamera ]), useEffect(() => {
@@ -229,6 +233,8 @@ const Camera = React.memo(React.forwardRef((props, ref) => {
229
233
  hovered || (setHovered(!0), controlsTimer.current && clearTimeout(controlsTimer.current),
230
234
  controlsTimer.current = setTimeout(() => setHovered(!1), 3e3));
231
235
  },
236
+ onClick: handleMouseClick,
237
+ onKeyDown: e => accessibleKeyDown(e, handleMouseClick),
232
238
  children: [ pipSnapshot && snapshot && jsxs("div", {
233
239
  className: css_snapshotFrame,
234
240
  children: [ jsx("div", {
@@ -275,6 +281,8 @@ const Camera = React.memo(React.forwardRef((props, ref) => {
275
281
  e.stopPropagation(), controlsTimer.current && clearTimeout(controlsTimer.current),
276
282
  controlsTimer.current = setTimeout(() => setHovered(!1), 3e3);
277
283
  },
284
+ onClick: handleControlsClick,
285
+ onKeyDown: e => accessibleKeyDown(e, () => handleControlsClick),
278
286
  children: [ jsx("div", {
279
287
  className: css_controlsLeft,
280
288
  children: jsx(ToolbarButton, {
@@ -373,8 +381,8 @@ const Camera = React.memo(React.forwardRef((props, ref) => {
373
381
  const {size: size = .75, user: user, message: message = "Video is off"} = props;
374
382
  return user ? jsx(Avatar, {
375
383
  image: null == user ? void 0 : user.avatar,
376
- first: null == user ? void 0 : user.first,
377
- last: null == user ? void 0 : user.last,
384
+ name: `${null == user ? void 0 : user.name}`,
385
+ email: `${null == user ? void 0 : user.email}`,
378
386
  size: "50%",
379
387
  fontSize: "25%"
380
388
  }) : message;
@@ -14,7 +14,7 @@ import { s as styleInject } from "./style-inject.es-D0BjEaN8.mjs";
14
14
 
15
15
  var css_wrapper = "CheckBox-module_wrapper__uRsjI flexBox-module_row__z24tF", css_icon = "CheckBox-module_icon__FoDJN flexBox-module_row__z24tF", css_label = "CheckBox-module_label__0AiBp type-module_body-m-regular__LuQBA";
16
16
 
17
- 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.CheckBox-module_wrapper__uRsjI {\n\tmin-height: var(--cb-size);\n\theight: var(--cb-size);\n\twidth: auto;\n\tgap: 6px;\n\tcursor: pointer;\n\toverflow: hidden;\n\tuser-select: none;\n\t-webkit-user-select: none;\n\toutline: none;\n\tborder: 0;\n}\n\n.CheckBox-module_icon__FoDJN {\n\tmin-width: var(--cb-size);\n\tmax-width: var(--cb-size);\n\tmin-height: var(--cb-size);\n\tmax-height: var(--cb-size);\n}\n\n.CheckBox-module_label__0AiBp {\n\tcolor: var(--cb-label-color);\n}\n");
17
+ 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.CheckBox-module_wrapper__uRsjI {\n\tmin-height: var(--cb-size);\n\theight: var(--cb-size);\n\twidth: auto;\n\tgap: 6px;\n\tcursor: pointer;\n\toverflow: hidden;\n\tuser-select: none;\n\t-webkit-user-select: none;\n\toutline: none;\n\tborder: 0;\n}\n\n.CheckBox-module_icon__FoDJN {\n\tmin-width: var(--cb-size);\n\tmax-width: var(--cb-size);\n\tmin-height: var(--cb-size);\n\tmax-height: var(--cb-size);\n}\n\n.CheckBox-module_label__0AiBp {\n\tcolor: var(--cb-label-color);\n\ttransition: color var(--motion-water-duration) var(--motion-water-easing) 0s;\n}\n");
18
18
 
19
19
  const CheckBox = React.memo(props => {
20
20
  const {size: size = 20, checked: checked = !1, disabled: disabled = !1, color: color, children: children, onChange: onChange = () => null} = props, divAttributes = __rest(props, [ "size", "checked", "disabled", "color", "children", "onChange" ]), {id: divId, className: className, style: style} = divAttributes, rest = __rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", [state, setState] = useState(checked);
@@ -2,15 +2,9 @@ import { _ as __rest } from "./tslib.es6-c-7TIv71.mjs";
2
2
 
3
3
  import { jsxs, jsx } from "react/jsx-runtime";
4
4
 
5
- import React, { useState, useEffect, useCallback, useMemo } from "react";
5
+ import React, { useState, useCallback, useMemo } from "react";
6
6
 
7
- import { useTheme } from "../hooks/useTheme.mjs";
8
-
9
- import "../theme/colors.mjs";
10
-
11
- import "../hooks/useWindow.mjs";
12
-
13
- import { a as accessibleKeyDown } from "./misc-N8KLjOXc.mjs";
7
+ import { s as setStyle, a as accessibleKeyDown } from "./misc-N8KLjOXc.mjs";
14
8
 
15
9
  import { I as Icon } from "./Icon-C92f63Ib.mjs";
16
10
 
@@ -26,16 +20,12 @@ var css = {
26
20
  l: "Chip-module_l__3MqPN type-module_body-l-regular__lOYbg"
27
21
  };
28
22
 
29
- 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");
23
+ 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");
30
24
 
31
25
  const Chip = React.memo(props => {
32
- const theme = 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 = __rest(props, [ "label", "icon", "background", "disabled", "focused", "variant", "unframed", "iconRight", "labelSize", "tooltip", "iconColor", "onToolTip", "onClick", "onMouseDown" ]), {id: divId, className: className, style: style} = divAttributes, rest = __rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", [isFocused, setIsFocused] = useState(focused), [isHovered, setIsHovered] = useState(!1);
33
- useEffect(() => setIsFocused(focused), [ focused ]);
34
- const handleClick = useCallback(e => {
26
+ 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 = __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 = __rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", [isHovered, setIsHovered] = useState(!1), handleClick = useCallback(e => {
35
27
  disabled || onClick(e);
36
- }, [ disabled, onClick ]), handleMouseDown = useCallback(e => {
37
- disabled || onMouseDown(e);
38
- }, [ disabled, onMouseDown ]), handleMouseEnter = useCallback((enter, event) => {
28
+ }, [ disabled, onClick ]), handleMouseEnter = useCallback((enter, event) => {
39
29
  if (enter) {
40
30
  if (tooltip) {
41
31
  const tip = {
@@ -51,44 +41,45 @@ const Chip = React.memo(props => {
51
41
  setIsHovered(!0);
52
42
  } else onToolTip(null), setIsHovered(!1);
53
43
  }, [ tooltip, onToolTip ]), padding = useMemo(() => {
54
- const isSmall = "small" === variant;
55
- 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";
56
- }, [ variant, icon, iconRight ]), computedIconColor = 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 = useMemo(() => ({
44
+ if (!icon) return `${paddingTops}px ${paddingSides}px`;
45
+ return `${paddingTops}px ${"right" === iconPosition ? paddingSides - 4 : paddingSides}px ${paddingTops}px ${"right" === iconPosition ? paddingSides : paddingSides - 4}px`;
46
+ }, [ icon, iconPosition, paddingTops, paddingSides ]), computedIconColor = 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 = useMemo(() => ({
57
47
  "--ui-chip-padding": padding,
58
- "--ui-chip-background": background || "transparent",
59
- "--ui-chip-gap": "small" === variant ? "4px" : "8px",
60
- "--ui-chip-color": computedIconColor,
61
- "--ui-chip-border-radius": "small" === variant ? "4px" : "8px",
62
- "--ui-chip-border": unframed ? "0" : "1px",
63
- "--ui-chip-border-color": unframed ? "transparent" : computedIconColor
64
- }), [ padding, background, variant, unframed, computedIconColor ]);
48
+ "--ui-chip-gap": setStyle(gap),
49
+ "--ui-chip-border-radius": setStyle(borderRadius),
50
+ "--ui-chip-border-size": setStyle(borderSize),
51
+ "--ui-chip-border-color": disabled ? borderColorDisabled : borderColor,
52
+ "--ui-chip-border-color-hover": disabled ? borderColorDisabled : borderColorHover,
53
+ "--ui-chip-bg-color": bgColor,
54
+ "--ui-chip-bg-color-hover": disabled ? bgColor : bgColorHover,
55
+ "--ui-chip-label-color": disabled ? "var(--core-text-disabled)" : labelColor,
56
+ "--ui-chip-label-color-hover": disabled ? "var(--core-text-disabled)" : labelColorHover,
57
+ "--ui-chip-cursor": disabled ? "default" : "pointer"
58
+ }), [ padding, bgColor, borderColor, borderColorDisabled, borderColorHover, borderSize, bgColorHover, labelColorHover, labelColor, gap, borderRadius, disabled ]);
65
59
  return jsxs("div", Object.assign({
66
60
  id: divId,
67
61
  className: `${css.chip}${divClass}`,
68
62
  style: Object.assign(Object.assign({}, divStyle), cssVars),
69
- onMouseDown: handleMouseDown,
70
63
  onKeyDown: e => accessibleKeyDown(e, () => handleClick(e)),
71
64
  onClick: handleClick,
72
65
  onMouseEnter: e => handleMouseEnter(!0, e),
73
- onMouseLeave: e => handleMouseEnter(!1, e),
74
- onFocus: () => setIsFocused(!0),
75
- onBlur: () => setIsFocused(!1)
66
+ onMouseLeave: e => handleMouseEnter(!1, e)
76
67
  }, rest, {
77
- children: [ icon && !iconRight && jsx("div", {
68
+ children: [ icon && "right" !== iconPosition && jsx("div", {
78
69
  className: css.icon,
79
70
  children: jsx(Icon, {
80
71
  name: icon,
81
- size: "regular" === variant ? 20 : 16,
72
+ size: iconSize,
82
73
  strokeColor: computedIconColor
83
74
  })
84
75
  }), jsx("div", {
85
76
  className: css[labelSize],
86
- children: label
87
- }), icon && iconRight && jsx("div", {
77
+ children: null != children ? children : label
78
+ }), icon && "right" === iconPosition && jsx("div", {
88
79
  className: css.icon,
89
80
  children: jsx(Icon, {
90
81
  name: icon,
91
- size: "regular" === variant ? 20 : 16,
82
+ size: iconSize,
92
83
  strokeColor: computedIconColor
93
84
  })
94
85
  }) ]
@@ -10,7 +10,7 @@ import { F as FileIcon } from "./FileIcon-ePouoJpT.mjs";
10
10
 
11
11
  import { I as Icon } from "./Icon-C92f63Ib.mjs";
12
12
 
13
- import { P as ProgressIndicator } from "./ProgressIndicator-BVwQNOcV.mjs";
13
+ import { P as ProgressIndicator } from "./ProgressIndicator-CfM2c4ty.mjs";
14
14
 
15
15
  import { s as styleInject } from "./style-inject.es-D0BjEaN8.mjs";
16
16