@apple-pie/slice 0.1.7 → 0.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (253) hide show
  1. package/README.md +5 -4
  2. package/dist/cjs/chunks/{Avatar-8XLnVICd.js → Avatar-Czt-12Ih.js} +26 -12
  3. package/dist/cjs/chunks/{AvatarGroup-BhKZvX8M.js → AvatarGroup-CGH2zY7a.js} +9 -7
  4. package/dist/cjs/chunks/{Button-D8_eyuOA.js → Button-mVVfNCqC.js} +40 -29
  5. package/dist/cjs/chunks/ButtonBar-CFAb4bfQ.js +73 -0
  6. package/dist/cjs/chunks/{Camera-CxHdYGEa.js → Camera-BGV_tNUP.js} +12 -4
  7. package/dist/cjs/chunks/{CheckBox-CmTQ6KW1.js → CheckBox-DyOgP15i.js} +1 -1
  8. package/dist/cjs/chunks/{Chip-CwMJOnBV.js → Chip-Z8erRdWG.js} +24 -31
  9. package/dist/cjs/chunks/{FileList-tivoUJSP.js → FileList-CCAtVNDo.js} +1 -1
  10. package/dist/cjs/chunks/IndexedDB-BxQn7aHU.js +146 -0
  11. package/dist/cjs/chunks/{ProgressIndicator-opbbADog.js → ProgressIndicator-CyFcr6Dk.js} +13 -4
  12. package/dist/cjs/chunks/{PromptInput-tA4fpOTk.js → PromptInput-B-Wlfnhx.js} +1 -1
  13. package/dist/cjs/chunks/{TextArea-DXcMRUfI.js → TextArea-D7E8loob.js} +1 -1
  14. package/dist/cjs/chunks/{TextField-CkfTNM6_.js → TextField-BAcYBHb1.js} +2 -2
  15. package/dist/cjs/chunks/{UploadArea-B8mJRc0a.js → UploadArea-Bfrwzo4O.js} +1 -1
  16. package/dist/cjs/chunks/localDBStore-Cl1YFPIe.js +182 -0
  17. package/dist/cjs/components/Avatar/index.js +1 -1
  18. package/dist/cjs/components/AvatarGroup/index.js +2 -2
  19. package/dist/cjs/components/Button/index.js +2 -2
  20. package/dist/cjs/components/ButtonBar/index.js +3 -5
  21. package/dist/cjs/components/Camera/index.js +2 -2
  22. package/dist/cjs/components/CheckBox/index.js +1 -1
  23. package/dist/cjs/components/Chip/index.js +2 -2
  24. package/dist/cjs/components/FileList/index.js +2 -2
  25. package/dist/cjs/components/Progress/index.js +1 -1
  26. package/dist/cjs/components/PromptInput/index.js +4 -4
  27. package/dist/cjs/components/TextArea/index.js +3 -3
  28. package/dist/cjs/components/Textfield/index.js +3 -3
  29. package/dist/cjs/components/UploadArea/index.js +3 -3
  30. package/dist/cjs/index.js +10 -11
  31. package/dist/cjs/stores/LocalDB.js +8 -0
  32. package/dist/cjs/stores.js +9 -5
  33. package/dist/cjs/utils/index.js +3 -3
  34. package/dist/cjs/utils/objects/index.js +3 -3
  35. package/dist/esm/chunks/{Avatar-DGRMsHdO.mjs → Avatar-DCCbj2eA.mjs} +26 -12
  36. package/dist/esm/chunks/{AvatarGroup-C9Ka1e9P.mjs → AvatarGroup-BaD2Xmda.mjs} +9 -7
  37. package/dist/esm/chunks/{Button-DAvVj4YV.mjs → Button-m0XAJsq5.mjs} +40 -29
  38. package/dist/esm/chunks/ButtonBar-CNQHRn77.mjs +83 -0
  39. package/dist/esm/chunks/{Camera-BrdJGlv6.mjs → Camera-7TuowjX_.mjs} +12 -4
  40. package/dist/esm/chunks/{CheckBox-B7UCZvRv.mjs → CheckBox-DO9hTdv8.mjs} +1 -1
  41. package/dist/esm/chunks/{Chip-BPF7fBba.mjs → Chip-BqneFUOR.mjs} +25 -34
  42. package/dist/esm/chunks/{FileList-BHCGzX_0.mjs → FileList-Ckix8gUY.mjs} +1 -1
  43. package/dist/esm/chunks/IndexedDB-CNOziQ6p.mjs +146 -0
  44. package/dist/esm/chunks/{ProgressIndicator-BVwQNOcV.mjs → ProgressIndicator-CfM2c4ty.mjs} +13 -4
  45. package/dist/esm/chunks/{PromptInput-pKwwzyAd.mjs → PromptInput-Cmist_vy.mjs} +2 -2
  46. package/dist/esm/chunks/{TextArea-yF2pGeel.mjs → TextArea-Ff5hxF1H.mjs} +1 -1
  47. package/dist/esm/chunks/{TextField-CgnPj6oK.mjs → TextField-CGOR6507.mjs} +2 -2
  48. package/dist/esm/chunks/{UploadArea-BNf1y8Ep.mjs → UploadArea-6z-mVZs3.mjs} +2 -2
  49. package/dist/esm/chunks/localDBStore-CbCoeN66.mjs +186 -0
  50. package/dist/esm/components/Avatar/index.mjs +1 -1
  51. package/dist/esm/components/AvatarGroup/index.mjs +2 -2
  52. package/dist/esm/components/Button/index.mjs +2 -2
  53. package/dist/esm/components/ButtonBar/index.mjs +5 -15
  54. package/dist/esm/components/Camera/index.mjs +2 -2
  55. package/dist/esm/components/CheckBox/index.mjs +1 -1
  56. package/dist/esm/components/Chip/index.mjs +5 -5
  57. package/dist/esm/components/FileList/index.mjs +2 -2
  58. package/dist/esm/components/Progress/index.mjs +1 -1
  59. package/dist/esm/components/PromptInput/index.mjs +4 -4
  60. package/dist/esm/components/TextArea/index.mjs +3 -3
  61. package/dist/esm/components/Textfield/index.mjs +3 -3
  62. package/dist/esm/components/UploadArea/index.mjs +3 -3
  63. package/dist/esm/index.mjs +13 -17
  64. package/dist/esm/stores/LocalDB.mjs +7 -0
  65. package/dist/esm/stores.mjs +4 -0
  66. package/dist/esm/utils/index.mjs +2 -0
  67. package/dist/esm/utils/objects/index.mjs +2 -0
  68. package/package.json +1 -1
  69. package/dist/cjs/chunks/ButtonBar-DwMLfvi8.js +0 -49
  70. package/dist/cjs/chunks/Card-D4YkmNC7.js +0 -34
  71. package/dist/cjs/chunks/DocIcons-BZI6JMyw.js +0 -108
  72. package/dist/cjs/components/Card/index.js +0 -10
  73. package/dist/cjs/components/DocIcon/index.js +0 -9
  74. package/dist/css/flexBox.module.css +0 -85
  75. package/dist/css/type.module.css +0 -206
  76. package/dist/esm/chunks/ButtonBar-Cw73kooJ.mjs +0 -62
  77. package/dist/esm/chunks/Card-DGlv1PII.mjs +0 -42
  78. package/dist/esm/chunks/DocIcons-B4xsPrXM.mjs +0 -114
  79. package/dist/esm/components/Card/index.mjs +0 -31
  80. package/dist/esm/components/DocIcon/index.mjs +0 -25
  81. package/dist/types/components/Avatar/Avatar.d.ts +0 -3
  82. package/dist/types/components/Avatar/_types.d.ts +0 -20
  83. package/dist/types/components/Avatar/index.d.ts +0 -2
  84. package/dist/types/components/AvatarGroup/AvatarGroup.d.ts +0 -3
  85. package/dist/types/components/AvatarGroup/_types.d.ts +0 -23
  86. package/dist/types/components/AvatarGroup/index.d.ts +0 -2
  87. package/dist/types/components/Badge/Badge.d.ts +0 -3
  88. package/dist/types/components/Badge/_types.d.ts +0 -8
  89. package/dist/types/components/Badge/index.d.ts +0 -2
  90. package/dist/types/components/Button/Button.d.ts +0 -74
  91. package/dist/types/components/Button/_types.d.ts +0 -44
  92. package/dist/types/components/Button/index.d.ts +0 -2
  93. package/dist/types/components/ButtonBar/ButtonBar.d.ts +0 -2
  94. package/dist/types/components/ButtonBar/_types.d.ts +0 -17
  95. package/dist/types/components/ButtonBar/index.d.ts +0 -2
  96. package/dist/types/components/Camera/Camera.d.ts +0 -11
  97. package/dist/types/components/Camera/_types.d.ts +0 -79
  98. package/dist/types/components/Camera/index.d.ts +0 -2
  99. package/dist/types/components/Card/Card.d.ts +0 -3
  100. package/dist/types/components/Card/_types.d.ts +0 -14
  101. package/dist/types/components/Card/index.d.ts +0 -2
  102. package/dist/types/components/CheckBox/CheckBox.d.ts +0 -3
  103. package/dist/types/components/CheckBox/_types.d.ts +0 -11
  104. package/dist/types/components/CheckBox/index.d.ts +0 -2
  105. package/dist/types/components/Chip/Chip.d.ts +0 -3
  106. package/dist/types/components/Chip/_types.d.ts +0 -20
  107. package/dist/types/components/Chip/index.d.ts +0 -3
  108. package/dist/types/components/DivInput/DivInput.d.ts +0 -3
  109. package/dist/types/components/DivInput/_types.d.ts +0 -23
  110. package/dist/types/components/DivInput/index.d.ts +0 -2
  111. package/dist/types/components/DocIcon/DocIcons.d.ts +0 -3
  112. package/dist/types/components/DocIcon/_types.d.ts +0 -7
  113. package/dist/types/components/DocIcon/index.d.ts +0 -2
  114. package/dist/types/components/Dot/Dot.d.ts +0 -3
  115. package/dist/types/components/Dot/_types.d.ts +0 -19
  116. package/dist/types/components/Dot/index.d.ts +0 -2
  117. package/dist/types/components/DraggablePanel/DrggablePanel.d.ts +0 -44
  118. package/dist/types/components/DraggablePanel/_types.d.ts +0 -5
  119. package/dist/types/components/DraggablePanel/index.d.ts +0 -1
  120. package/dist/types/components/DropDown/DropDown.d.ts +0 -4
  121. package/dist/types/components/DropDown/_types.d.ts +0 -34
  122. package/dist/types/components/DropDown/index.d.ts +0 -2
  123. package/dist/types/components/ErrorSummary/ErrorSummary.d.ts +0 -4
  124. package/dist/types/components/ErrorSummary/_types.d.ts +0 -12
  125. package/dist/types/components/ErrorSummary/index.d.ts +0 -2
  126. package/dist/types/components/FileIcon/FileIcon.d.ts +0 -3
  127. package/dist/types/components/FileIcon/_types.d.ts +0 -27
  128. package/dist/types/components/FileIcon/fileIconRegistry.d.ts +0 -4
  129. package/dist/types/components/FileIcon/index.d.ts +0 -3
  130. package/dist/types/components/FileList/FileList.d.ts +0 -3
  131. package/dist/types/components/FileList/_types.d.ts +0 -24
  132. package/dist/types/components/FileList/index.d.ts +0 -2
  133. package/dist/types/components/FlexDiv/FlexDiv.d.ts +0 -60
  134. package/dist/types/components/FlexDiv/_types.d.ts +0 -34
  135. package/dist/types/components/FlexDiv/index.d.ts +0 -2
  136. package/dist/types/components/Grouper/Grouper.d.ts +0 -3
  137. package/dist/types/components/Grouper/_types.d.ts +0 -20
  138. package/dist/types/components/Grouper/index.d.ts +0 -2
  139. package/dist/types/components/Icon/Icon.d.ts +0 -3
  140. package/dist/types/components/Icon/_types.d.ts +0 -131
  141. package/dist/types/components/Icon/iconRegistry.d.ts +0 -17
  142. package/dist/types/components/Icon/index.d.ts +0 -2
  143. package/dist/types/components/IconButton/IconButton.d.ts +0 -3
  144. package/dist/types/components/IconButton/_types.d.ts +0 -34
  145. package/dist/types/components/IconButton/index.d.ts +0 -2
  146. package/dist/types/components/Label/Label.d.ts +0 -2
  147. package/dist/types/components/Label/_types.d.ts +0 -16
  148. package/dist/types/components/Label/index.d.ts +0 -2
  149. package/dist/types/components/Overlay/Overlay.d.ts +0 -3
  150. package/dist/types/components/Overlay/_types.d.ts +0 -12
  151. package/dist/types/components/Overlay/index.d.ts +0 -2
  152. package/dist/types/components/Pager/Pager.d.ts +0 -3
  153. package/dist/types/components/Pager/_types.d.ts +0 -13
  154. package/dist/types/components/Pager/index.d.ts +0 -2
  155. package/dist/types/components/Progress/DoneCheck/DoneCheck.d.ts +0 -3
  156. package/dist/types/components/Progress/DoneCheck/_types.d.ts +0 -13
  157. package/dist/types/components/Progress/ProgressIndicator/ProgressIndicator.d.ts +0 -3
  158. package/dist/types/components/Progress/ProgressIndicator/_types.d.ts +0 -14
  159. package/dist/types/components/Progress/index.d.ts +0 -4
  160. package/dist/types/components/PromptInput/PromptInput.d.ts +0 -63
  161. package/dist/types/components/PromptInput/_types.d.ts +0 -35
  162. package/dist/types/components/PromptInput/index.d.ts +0 -2
  163. package/dist/types/components/RadioButton/RadioButton.d.ts +0 -3
  164. package/dist/types/components/RadioButton/_types.d.ts +0 -26
  165. package/dist/types/components/RadioButton/index.d.ts +0 -2
  166. package/dist/types/components/RadioButtonList/RadioButtonList.d.ts +0 -3
  167. package/dist/types/components/RadioButtonList/_types.d.ts +0 -24
  168. package/dist/types/components/RadioButtonList/index.d.ts +0 -2
  169. package/dist/types/components/Slider/Slider.d.ts +0 -3
  170. package/dist/types/components/Slider/_types.d.ts +0 -18
  171. package/dist/types/components/Slider/index.d.ts +0 -2
  172. package/dist/types/components/Spacer/Spacer.d.ts +0 -3
  173. package/dist/types/components/Spacer/_types.d.ts +0 -6
  174. package/dist/types/components/Spacer/index.d.ts +0 -2
  175. package/dist/types/components/Switch/Switch.d.ts +0 -3
  176. package/dist/types/components/Switch/Switch.stories.d.ts +0 -5
  177. package/dist/types/components/Switch/_types.d.ts +0 -13
  178. package/dist/types/components/Switch/index.d.ts +0 -2
  179. package/dist/types/components/TabBar/TabBar.d.ts +0 -3
  180. package/dist/types/components/TabBar/_types.d.ts +0 -52
  181. package/dist/types/components/TabBar/index.d.ts +0 -2
  182. package/dist/types/components/TextArea/TextArea.d.ts +0 -3
  183. package/dist/types/components/TextArea/_types.d.ts +0 -41
  184. package/dist/types/components/TextArea/index.d.ts +0 -2
  185. package/dist/types/components/Textfield/TextField.d.ts +0 -3
  186. package/dist/types/components/Textfield/_types.d.ts +0 -79
  187. package/dist/types/components/Textfield/index.d.ts +0 -2
  188. package/dist/types/components/Tip/Tip.d.ts +0 -3
  189. package/dist/types/components/Tip/_types.d.ts +0 -28
  190. package/dist/types/components/Tip/index.d.ts +0 -2
  191. package/dist/types/components/Toast/Toast.d.ts +0 -3
  192. package/dist/types/components/Toast/_types.d.ts +0 -24
  193. package/dist/types/components/Toast/index.d.ts +0 -2
  194. package/dist/types/components/UploadArea/UploadArea.d.ts +0 -54
  195. package/dist/types/components/UploadArea/_types.d.ts +0 -46
  196. package/dist/types/components/UploadArea/index.d.ts +0 -3
  197. package/dist/types/components/playHelpers.d.ts +0 -35
  198. package/dist/types/components/sharedTypes.d.ts +0 -21
  199. package/dist/types/hooks/index.d.ts +0 -9
  200. package/dist/types/hooks/useDoubleClick/useDoubleClick.d.ts +0 -1
  201. package/dist/types/hooks/useKeyboardShortcuts/useKeyboardShortcuts.d.ts +0 -9
  202. package/dist/types/hooks/useLastUpdated/useLastUpdated.d.ts +0 -4
  203. package/dist/types/hooks/useLocalStore/useLocalStore.d.ts +0 -1
  204. package/dist/types/hooks/useObserveResize/useObserveResize.d.ts +0 -9
  205. package/dist/types/hooks/useObserveTheme/useObserveTheme.d.ts +0 -2
  206. package/dist/types/hooks/useTheme/useTheme.d.ts +0 -47
  207. package/dist/types/hooks/useToolTip/useToolTip.d.ts +0 -6
  208. package/dist/types/hooks/useTrackRenders/useTrackRenders.d.ts +0 -5
  209. package/dist/types/hooks/useWindow/useWindow.d.ts +0 -43
  210. package/dist/types/index.d.ts +0 -78
  211. package/dist/types/providers/ThemeProvider.d.ts +0 -13
  212. package/dist/types/providers/index.d.ts +0 -1
  213. package/dist/types/stores/SSE/_types.d.ts +0 -17
  214. package/dist/types/stores/SSE/index.d.ts +0 -2
  215. package/dist/types/stores/SSE/sseStore.d.ts +0 -28
  216. package/dist/types/stores/WS/_types.d.ts +0 -17
  217. package/dist/types/stores/WS/index.d.ts +0 -2
  218. package/dist/types/stores/WS/wsStore.d.ts +0 -19
  219. package/dist/types/stores/index.d.ts +0 -5
  220. package/dist/types/stores/tip/_types.d.ts +0 -8
  221. package/dist/types/stores/tip/index.d.ts +0 -2
  222. package/dist/types/stores/tip/tipStore.d.ts +0 -12
  223. package/dist/types/stores/toast/_types.d.ts +0 -14
  224. package/dist/types/stores/toast/index.d.ts +0 -2
  225. package/dist/types/stores/toast/toastStore.d.ts +0 -12
  226. package/dist/types/stores/uploads/_types.d.ts +0 -16
  227. package/dist/types/stores/uploads/index.d.ts +0 -2
  228. package/dist/types/stores/uploads/uploadsStore.d.ts +0 -22
  229. package/dist/types/stores/window/_types.d.ts +0 -33
  230. package/dist/types/stores/window/index.d.ts +0 -3
  231. package/dist/types/stores/window/windowStore.d.ts +0 -25
  232. package/dist/types/theme/colors/colors.d.ts +0 -6
  233. package/dist/types/theme/colors/types.d.ts +0 -174
  234. package/dist/types/theme/corners/corners.d.ts +0 -2
  235. package/dist/types/theme/corners/types.d.ts +0 -10
  236. package/dist/types/theme/elevations/_types.d.ts +0 -10
  237. package/dist/types/theme/elevations/elevations.d.ts +0 -5
  238. package/dist/types/theme/index.d.ts +0 -9
  239. package/dist/types/theme/motion/_types.d.ts +0 -8
  240. package/dist/types/theme/motion/motion.d.ts +0 -5
  241. package/dist/types/theme/themes.d.ts +0 -16
  242. package/dist/types/theme/type/type.d.ts +0 -5
  243. package/dist/types/theme/type/types.d.ts +0 -25
  244. package/dist/types/utils/functions/colors.d.ts +0 -8
  245. package/dist/types/utils/functions/debounce.d.ts +0 -9
  246. package/dist/types/utils/functions/files.d.ts +0 -15
  247. package/dist/types/utils/functions/misc.d.ts +0 -61
  248. package/dist/types/utils/index.d.ts +0 -5
  249. package/dist/types/utils/objects/SSEConnection/SSEConnection.d.ts +0 -187
  250. package/dist/types/utils/objects/WSConnection/WSConnection.d.ts +0 -159
  251. package/dist/types/utils/objects/index.d.ts +0 -4
  252. package/dist/types/workers/uploads/uploads-worker.d.ts +0 -129
  253. package/dist/types/workers/uploads/uploads.d.ts +0 -1
@@ -1,4 +1,4 @@
1
- export { U as UploadArea, a as allTypes, b as audioTypes, d as documentTypes, i as imageTypes, t as textTypes, v as videoTypes } from "../../chunks/UploadArea-BNf1y8Ep.mjs";
1
+ export { U as UploadArea, a as allTypes, b as audioTypes, d as documentTypes, i as imageTypes, t as textTypes, v as videoTypes } from "../../chunks/UploadArea-6z-mVZs3.mjs";
2
2
 
3
3
  import "react/jsx-runtime";
4
4
 
@@ -8,7 +8,7 @@ import "../../chunks/misc-N8KLjOXc.mjs";
8
8
 
9
9
  import "../../chunks/tslib.es6-c-7TIv71.mjs";
10
10
 
11
- import "../../chunks/FileList-BHCGzX_0.mjs";
11
+ import "../../chunks/FileList-Ckix8gUY.mjs";
12
12
 
13
13
  import "../../chunks/FileIcon-ePouoJpT.mjs";
14
14
 
@@ -34,6 +34,6 @@ import "../../chunks/Icon-C92f63Ib.mjs";
34
34
 
35
35
  import "../../chunks/style-inject.es-D0BjEaN8.mjs";
36
36
 
37
- import "../../chunks/ProgressIndicator-BVwQNOcV.mjs";
37
+ import "../../chunks/ProgressIndicator-CfM2c4ty.mjs";
38
38
 
39
39
  import "motion/react";
@@ -26,22 +26,20 @@ export { useWindow } from "./hooks/useWindow.mjs";
26
26
 
27
27
  export { useObserveResize } from "./hooks/useObserveResize.mjs";
28
28
 
29
- export { A as Avatar } from "./chunks/Avatar-DGRMsHdO.mjs";
29
+ export { A as Avatar } from "./chunks/Avatar-DCCbj2eA.mjs";
30
30
 
31
- export { A as AvatarGroup } from "./chunks/AvatarGroup-C9Ka1e9P.mjs";
31
+ export { A as AvatarGroup } from "./chunks/AvatarGroup-BaD2Xmda.mjs";
32
32
 
33
33
  export { B as Badge } from "./chunks/Badge-DyICxZP2.mjs";
34
34
 
35
35
  export { I as IconButton } from "./chunks/IconButton-4O5S9S9G.mjs";
36
36
 
37
- export { C as Camera } from "./chunks/Camera-BrdJGlv6.mjs";
37
+ export { C as Camera } from "./chunks/Camera-7TuowjX_.mjs";
38
38
 
39
- export { C as CheckBox } from "./chunks/CheckBox-B7UCZvRv.mjs";
39
+ export { C as CheckBox } from "./chunks/CheckBox-DO9hTdv8.mjs";
40
40
 
41
41
  export { D as DivInput } from "./chunks/DivInput-Ch9XjfWd.mjs";
42
42
 
43
- export { D as DocIcons } from "./chunks/DocIcons-B4xsPrXM.mjs";
44
-
45
43
  export { D as Dot } from "./chunks/Dot-CLGwQu-i.mjs";
46
44
 
47
45
  export { D as DraggablePanel } from "./chunks/DrggablePanel-Ddi0vPRp.mjs";
@@ -58,9 +56,9 @@ export { F as FlexDiv } from "./chunks/FlexDiv-LGEGGrT0.mjs";
58
56
 
59
57
  export { P as Pager } from "./chunks/Pager-BlLYeA2F.mjs";
60
58
 
61
- export { P as PromptInput } from "./chunks/PromptInput-pKwwzyAd.mjs";
59
+ export { P as PromptInput } from "./chunks/PromptInput-Cmist_vy.mjs";
62
60
 
63
- export { D as DoneCheck, P as ProgressIndicator } from "./chunks/ProgressIndicator-BVwQNOcV.mjs";
61
+ export { D as DoneCheck, P as ProgressIndicator } from "./chunks/ProgressIndicator-CfM2c4ty.mjs";
64
62
 
65
63
  export { R as RadioButton } from "./chunks/RadioButton-COEnChNW.mjs";
66
64
 
@@ -74,9 +72,9 @@ export { S as Switch } from "./chunks/Switch-Cv6LABsW.mjs";
74
72
 
75
73
  export { T as TabBar } from "./chunks/TabBar-qiozE5zA.mjs";
76
74
 
77
- export { T as TextArea } from "./chunks/TextArea-yF2pGeel.mjs";
75
+ export { T as TextArea } from "./chunks/TextArea-Ff5hxF1H.mjs";
78
76
 
79
- export { T as TextField } from "./chunks/TextField-CgnPj6oK.mjs";
77
+ export { T as TextField } from "./chunks/TextField-CGOR6507.mjs";
80
78
 
81
79
  export { ThemeProvider } from "./providers/ThemeProvider.mjs";
82
80
 
@@ -84,9 +82,9 @@ export { T as Tip } from "./chunks/Tip-CroDIKO4.mjs";
84
82
 
85
83
  export { T as Toast, a as ToastType } from "./chunks/Toast-CM493gMR.mjs";
86
84
 
87
- export { B as Button } from "./chunks/Button-DAvVj4YV.mjs";
85
+ export { B as Button } from "./chunks/Button-m0XAJsq5.mjs";
88
86
 
89
- export { C as Chip } from "./chunks/Chip-BPF7fBba.mjs";
87
+ export { C as Chip } from "./chunks/Chip-BqneFUOR.mjs";
90
88
 
91
89
  export { F as FileIcon, a as FileIconNames } from "./chunks/FileIcon-ePouoJpT.mjs";
92
90
 
@@ -94,13 +92,11 @@ export { I as Icon } from "./chunks/Icon-C92f63Ib.mjs";
94
92
 
95
93
  export { S as SliceIcons } from "./chunks/_types-C2C2Zwd0.mjs";
96
94
 
97
- export { B as ButtonBar } from "./chunks/ButtonBar-Cw73kooJ.mjs";
98
-
99
- export { C as Card } from "./chunks/Card-DGlv1PII.mjs";
95
+ export { B as ButtonBar } from "./chunks/ButtonBar-CNQHRn77.mjs";
100
96
 
101
97
  export { L as Label } from "./chunks/Label-7ezP3eHw.mjs";
102
98
 
103
- export { U as UploadArea, a as allTypes, b as audioTypes, d as documentTypes, i as imageTypes, t as textTypes, v as videoTypes } from "./chunks/UploadArea-BNf1y8Ep.mjs";
99
+ export { U as UploadArea, a as allTypes, b as audioTypes, d as documentTypes, i as imageTypes, t as textTypes, v as videoTypes } from "./chunks/UploadArea-6z-mVZs3.mjs";
104
100
 
105
101
  import "./theme/corners.mjs";
106
102
 
@@ -120,6 +116,6 @@ import "motion/react";
120
116
 
121
117
  import "./chunks/colors-FQ0uNQcW.mjs";
122
118
 
123
- import "./chunks/FileList-BHCGzX_0.mjs";
119
+ import "./chunks/FileList-Ckix8gUY.mjs";
124
120
 
125
121
  import "./chunks/debounce-Bst1jxMS.mjs";
@@ -0,0 +1,7 @@
1
+ export { l as localDBActions, u as useLocalDB, a as useLocalDBError, b as useLocalDBStore, c as useLocalDBValues } from "../chunks/localDBStore-CbCoeN66.mjs";
2
+
3
+ import "../chunks/tslib.es6-c-7TIv71.mjs";
4
+
5
+ import "zustand";
6
+
7
+ import "../chunks/IndexedDB-CNOziQ6p.mjs";
@@ -6,6 +6,8 @@ export { g as getTip, t as tipActions, u as useTip, a as useTipActions, b as use
6
6
 
7
7
  export { g as getToast, t as toastActions, u as useToast, a as useToastActions, b as useToastStore } from "./chunks/toastStore-D2PEIqCo.mjs";
8
8
 
9
+ export { l as localDBActions, u as useLocalDB, a as useLocalDBError, b as useLocalDBStore, c as useLocalDBValues } from "./chunks/localDBStore-CbCoeN66.mjs";
10
+
9
11
  export { u as useConnectionClose, a as useConnectionMessage, b as useIsConnected, c as useLastSSEMessage, d as useMessage, e as useSSE, f as useSSEActions, g as useSSEStore } from "./chunks/sseStore-2JIpEKfz.mjs";
10
12
 
11
13
  import "./chunks/tslib.es6-c-7TIv71.mjs";
@@ -14,4 +16,6 @@ import "zustand";
14
16
 
15
17
  import "./chunks/uploads-worker-Dv-4zGnC.mjs";
16
18
 
19
+ import "./chunks/IndexedDB-CNOziQ6p.mjs";
20
+
17
21
  import "./chunks/SSEConnection-DcA3wFsO.mjs";
@@ -4,6 +4,8 @@ export { d as debounce } from "../chunks/debounce-Bst1jxMS.mjs";
4
4
 
5
5
  export { a as addOpacity, t as tintFromColor } from "../chunks/colors-FQ0uNQcW.mjs";
6
6
 
7
+ export { I as IndexedDB } from "../chunks/IndexedDB-CNOziQ6p.mjs";
8
+
7
9
  export { S as SSEConnection } from "../chunks/SSEConnection-DcA3wFsO.mjs";
8
10
 
9
11
  export { W as WSConnection } from "../chunks/WSConnection-D9mpsVdc.mjs";
@@ -1,3 +1,5 @@
1
+ export { I as IndexedDB } from "../../chunks/IndexedDB-CNOziQ6p.mjs";
2
+
1
3
  export { S as SSEConnection } from "../../chunks/SSEConnection-DcA3wFsO.mjs";
2
4
 
3
5
  export { W as WSConnection } from "../../chunks/WSConnection-D9mpsVdc.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apple-pie/slice",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.mjs",
6
6
  "exports": {
@@ -1,49 +0,0 @@
1
- "use strict";
2
-
3
- var tslib_es6 = require("./tslib.es6-C8dZW5nY.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react"), hooks_useTheme = require("../hooks/useTheme.js");
4
-
5
- require("../theme/colors.js"), require("../hooks/useWindow.js");
6
-
7
- var IconButton = require("./IconButton-BXotgG2u.js"), styleInject_es = require("./style-inject.es-CMuL-BfJ.js"), css_wrapper = "ButtonBar-module_wrapper__FYZ3s flexBox-module_rowStart__4tcxS", css_label = "ButtonBar-module_label__UcAS1 flexBox-module_rowStart__4tcxS type-module_body-s-regular__vRHSP", css_button = "ButtonBar-module_button__bMR3h flexBox-module_rowStart__4tcxS", css_selected = "ButtonBar-module_selected__wKvmi", css_divider = "ButtonBar-module_divider__HkWJw", css_last = "ButtonBar-module_last__S9VdD";
8
-
9
- styleInject_es.styleInject(".flexBox-module_row__z24tF {\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowBetween__5FEvi {\n\tdisplay: flex;\n\tjustify-content: space-between;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowStart__4tcxS {\n\tdisplay: flex;\n\tjustify-content: flex-start;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowEnd__rVdVm {\n\tdisplay: flex;\n\tjustify-content: flex-end;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_column__ezvMq {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: center;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnStart__C7P44 {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-start;\n\talign-items: flex-start;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnStartCenter__PKcrG {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-start;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnBetween__ERfp7 {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: space-between;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnEnd__lLJuc {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-end;\n\talign-items: flex-end;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.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.ButtonBar-module_wrapper__FYZ3s {\n}\n\n.ButtonBar-module_label__UcAS1 {\n\tcolor: var(--core-text-disabled);\n\tpadding-right: 4px;\n}\n\n.ButtonBar-module_button__bMR3h {\n\theight: 32px;\n\tgap: 0;\n\tcursor: pointer;\n\tbackground: var(--core-surface-primary);\n\tcolor: var(--core-text-disabled);\n\t&:last-child {\n\t\t&:hover {\n\t\t\tbackground: var(--core-surface-primary);\n\t\t}\n\t}\n\t&:first-child {\n\t\t&:hover {\n\t\t\tbackground: var(--core-surface-primary);\n\t\t}\n\t}\n\t&:hover {\n\t\tbackground: var(--core-surface-primary);\n\t\tcolor: var(--core-text-primary);\n\t}\n}\n\n.ButtonBar-module_selected__wKvmi {\n\tbackground: var(--core-surface-primary);\n\tcolor: var(--core-link-primary);\n}\n\n.ButtonBar-module_divider__HkWJw {\n\tdisplay: block;\n\tbackground: var(--core-outline-primary);\n\twidth: 1px;\n\theight: 16px;\n\tmargin: 0 4px;\n}\n\n.ButtonBar-module_last__S9VdD {\n\tdisplay: none;\n}\n"),
10
- exports.ButtonBar = function(props) {
11
- const theme = hooks_useTheme.useTheme(), {options: options = [], current: current = 0, label: label, onChange: onChange = () => null, onToolTip: onToolTip = () => null} = props, divAttributes = tslib_es6.__rest(props, [ "options", "current", "label", "onChange", "onToolTip" ]), {id: divId, className: className, style: style} = divAttributes, rest = tslib_es6.__rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", [hovered, setHovered] = React.useState(-1), [currentPage, setCurrentPage] = React.useState(current);
12
- React.useEffect(() => setCurrentPage(current), [ current ]);
13
- const handleMouseEnter = React.useCallback(index => {
14
- setHovered(index);
15
- }, []), handleMouseLeave = React.useCallback(() => {
16
- setHovered(-1);
17
- }, []), handleClick = React.useCallback((button, index) => {
18
- setCurrentPage(index), onChange(button);
19
- }, [ onChange ]), display = React.useCallback(index => index === options.length - 1 ? css_last : "", [ options.length ]), selected = React.useCallback(index => currentPage === index ? css_selected : "", [ currentPage ]), iconColor = React.useCallback(index => {
20
- const isHovered = hovered === index;
21
- return currentPage === index ? theme.current.colors["core-icon-primary"] : isHovered ? theme.current.colors["core-button-primary"] : theme.current.colors["core-text-disabled"];
22
- }, [ currentPage, hovered, theme ]);
23
- return jsxRuntime.jsxs("div", Object.assign({
24
- id: divId,
25
- className: `${css_wrapper}${divClass}`,
26
- style: divStyle
27
- }, rest, {
28
- children: [ label && jsxRuntime.jsx("div", {
29
- className: css_label,
30
- children: label
31
- }), null == options ? void 0 : options.map((button, index) => jsxRuntime.jsxs("div", {
32
- className: `${css_button} ${selected(index)}`,
33
- onMouseEnter: () => handleMouseEnter(index),
34
- onMouseLeave: () => handleMouseLeave(),
35
- children: [ jsxRuntime.jsx(IconButton.IconButton, {
36
- icon: button.icon,
37
- color: iconColor(index),
38
- label: button.label,
39
- tooltip: button.tip,
40
- onToolTip: onToolTip,
41
- onClick: () => handleClick(button, index),
42
- hover: !0,
43
- toggle: !1
44
- }), jsxRuntime.jsx("div", {
45
- className: `${css_divider} ${display(index)}`
46
- }) ]
47
- }, `button-bar-${button.icon}-${index}`)) ]
48
- }));
49
- };
@@ -1,34 +0,0 @@
1
- "use strict";
2
-
3
- var tslib_es6 = require("./tslib.es6-C8dZW5nY.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react"), Icon = require("./Icon-N0YJuKQf.js"), styleInject_es = require("./style-inject.es-CMuL-BfJ.js"), css_card = "Card-module_card__Cb1o4 flexBox-module_rowStart__4tcxS type-module_body-m-regular__LuQBA", css_icon = "Card-module_icon__jzes9 flexBox-module_row__z24tF", css_label = "Card-module_label__K9JXx";
4
-
5
- styleInject_es.styleInject(".flexBox-module_row__z24tF {\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowBetween__5FEvi {\n\tdisplay: flex;\n\tjustify-content: space-between;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowStart__4tcxS {\n\tdisplay: flex;\n\tjustify-content: flex-start;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowEnd__rVdVm {\n\tdisplay: flex;\n\tjustify-content: flex-end;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_column__ezvMq {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: center;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnStart__C7P44 {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-start;\n\talign-items: flex-start;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnStartCenter__PKcrG {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-start;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnBetween__ERfp7 {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: space-between;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnEnd__lLJuc {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-end;\n\talign-items: flex-end;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.type-module_body-xs-regular__ZAFft {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-xs);\n\tline-height: 133.33%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-xs-medium__s3KvF {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-xs);\n\tline-height: 133.33%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-xs-bold__Lhqqq {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-xs);\n\tline-height: 133.33%;\n\ttext-decoration: none;\n\tletter-spacing: 0.25px;\n}.type-module_body-s-regular__vRHSP {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-s);\n\tline-height: 142.86%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-s-medium__tjdFc {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-s);\n\tline-height: 142.86%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-s-bold__Iy-VX {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-s);\n\tline-height: 142.86%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-m-regular__LuQBA {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-m);\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-m-medium__uW1on {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-m);\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-m-bold__UBcvQ {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-m);\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-l-regular__lOYbg {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-l);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-l-medium__BqRC7 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-l);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-l-bold__Fh2dt {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-l);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-xl-regular__pF2kC {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-xl);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-xl-medium__BeyrH {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-xl);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-xl-bold__Ruknj {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-xl);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_heading-s-medium__z8L3G {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 20px;\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-s-bold__0O3g6 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 20px;\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-m-bold__KXxEB {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 24px;\n\tline-height: 116.67%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-m-medium__cJeEA {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 24px;\n\tline-height: 116.67%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-l-medium__eRe05 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 30px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-l-bold__Xmwtf {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 30px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-xl-medium__5q1m3 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 36px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-xl-bold__k9VFV {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 36px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}\n\n.Card-module_card__Cb1o4 {\n\tpadding: 8px 14px 8px 8px !important;\n\tcolor: var(--core-text-primary);\n\twidth: var(--card-width);\n\tmax-width: min-content;\n\tflex: var(--card-flex);\n\tgap: 8px;\n\tborder-radius: 8px;\n\tborder: 1px solid var(--core-outline-primary);\n\tcursor: pointer;\n\ttransition: all var(--motion-water-duration) var(--motion-water) 0s;\n\tappearance: none;\n\t-webkit-appearance: none;\n\tbackground-image: none;\n\toutline: none;\n\t&:hover {\n\t\tcolor: var(--core-button-primary);\n\t\tborder: 1px solid var(--core-button-primary);\n\t}\n}\n\n.Card-module_icon__jzes9 {\n\tmin-width: 20px;\n\tmin-height: 20px;\n\tmax-width: 20px;\n\tmax-height: 20px;\n}\n\n.Card-module_label__K9JXx {\n\tflex: 1;\n\tword-break: break-all;\n\ttext-overflow: ellipsis;\n\toverflow: hidden;\n\toverflow-wrap: anywhere;\n\tdisplay: -webkit-box;\n\twhite-space: nowrap;\n\t-webkit-line-clamp: 1;\n\t-webkit-box-orient: vertical;\n}\n");
6
-
7
- const Card = React.memo(function(props) {
8
- const {id: id, icon: icon, label: label, command: command, width: width, onCommand: onCommand = () => null} = props, divAttributes = tslib_es6.__rest(props, [ "id", "icon", "label", "command", "width", "onCommand" ]), {className: className, style: style} = divAttributes, rest = tslib_es6.__rest(divAttributes, [ "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", setStyle = React.useCallback(value => void 0 === value || "fill" === value ? "unset" : "string" == typeof value ? value : `${value}px`, []), cssVars = React.useMemo(() => ({
9
- "--card-width": setStyle(width),
10
- "--card-flex": "fill" === width ? "1" : "unset"
11
- }), [ setStyle, width ]);
12
- return jsxRuntime.jsxs("button", Object.assign({
13
- id: id,
14
- type: "button",
15
- className: `${css_card}${divClass}`,
16
- style: Object.assign(Object.assign({}, divStyle), cssVars),
17
- onClick: () => onCommand({
18
- id: id,
19
- command: command
20
- })
21
- }, rest, {
22
- children: [ icon && jsxRuntime.jsx("div", {
23
- className: css_icon,
24
- children: jsxRuntime.jsx(Icon.Icon, {
25
- name: icon
26
- })
27
- }), label && jsxRuntime.jsx("div", {
28
- className: css_label,
29
- children: label
30
- }) ]
31
- }));
32
- });
33
-
34
- exports.Card = Card;
@@ -1,108 +0,0 @@
1
- "use strict";
2
-
3
- var tslib_es6 = require("./tslib.es6-C8dZW5nY.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react"), hooks_useTheme = require("../hooks/useTheme.js");
4
-
5
- require("../theme/colors.js"), require("../hooks/useWindow.js");
6
-
7
- const DocIcons = React.memo(props => {
8
- const theme = hooks_useTheme.useTheme(), {type: type = "pdf", height: height = 36} = props, divAttributes = tslib_es6.__rest(props, [ "type", "height" ]), {id: divId, className: className, style: style} = divAttributes, rest = tslib_es6.__rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", renderIcon = React.useMemo(() => {
9
- const item = [ {
10
- name: "not supported",
11
- svg: jsxRuntime.jsxs("svg", {
12
- viewBox: "0 0 24 24",
13
- xmlns: "http://www.w3.org/2000/svg",
14
- height: height,
15
- "aria-label": "Not supported",
16
- children: [ jsxRuntime.jsx("title", {
17
- children: "Not supported"
18
- }), jsxRuntime.jsx("path", {
19
- d: "M 13.944 0 L 21.798 8 L 21.798 21.2 C 21.798 22.746 20.568 24 19.049 24 L 4.911 24 C 3.393 24 2.162 22.745 2.162 21.2 L 2.162 2.8 C 2.162 1.254 3.393 0 4.911 0 Z",
20
- fill: "rgb(102, 113, 127)"
21
- }), jsxRuntime.jsx("path", {
22
- d: "M 12.021 16.249 C 12.461 16.249 12.733 15.968 12.733 15.625 L 12.733 15.52 C 12.733 15.028 13.014 14.711 13.63 14.307 C 14.482 13.744 15.089 13.235 15.089 12.18 C 15.089 10.72 13.788 9.93 12.294 9.93 C 10.782 9.93 9.789 10.65 9.552 11.46 C 9.508 11.6 9.482 11.74 9.482 11.89 C 9.482 12.285 9.789 12.496 10.079 12.496 C 10.378 12.496 10.571 12.356 10.729 12.145 L 10.887 11.934 C 11.195 11.424 11.652 11.125 12.241 11.125 C 13.041 11.125 13.559 11.582 13.559 12.25 C 13.559 12.848 13.19 13.138 12.426 13.674 C 11.793 14.114 11.318 14.579 11.318 15.441 L 11.318 15.555 C 11.318 16.012 11.573 16.249 12.021 16.249 Z M 12.004 18.869 C 12.514 18.869 12.953 18.464 12.953 17.954 C 12.953 17.444 12.523 17.04 12.003 17.04 C 11.485 17.04 11.054 17.453 11.054 17.954 C 11.054 18.455 11.494 18.868 12.004 18.868 Z",
23
- fill: "rgb(255, 255, 255)"
24
- }), jsxRuntime.jsx("path", {
25
- d: "M 21.798 8 L 16.832 8 C 15.314 8 13.944 6.605 13.944 5.058 L 13.944 0 Z",
26
- fill: "rgba(255,255,255,0.4)"
27
- }) ]
28
- })
29
- }, {
30
- name: "text",
31
- svg: jsxRuntime.jsxs("svg", {
32
- viewBox: "0 0 1024 1024",
33
- xmlns: "http://www.w3.org/2000/svg",
34
- height: height,
35
- "aria-label": "Text document",
36
- children: [ jsxRuntime.jsx("title", {
37
- children: "Text document"
38
- }), jsxRuntime.jsx("path", {
39
- d: "M137.902 0a48.573 48.573 0 0 0-35.589 15.294 53.965 53.965 0 0 0-15.273 35.64v917.412a48.707 48.707 0 0 0 15.273 35.64 49.971 49.971 0 0 0 35.59 15.293h746.336a48.64 48.64 0 0 0 35.59-15.293 50.37 50.37 0 0 0 15.273-35.64V288.717L646.728 0H137.902z",
40
- fill: "#FD7541"
41
- }), jsxRuntime.jsx("path", {
42
- d: "M935.102 288.717H697.656c-27.822-.666-50.227-23.076-50.928-50.934V0l288.374 288.717z",
43
- fill: "#FFFFFF",
44
- opacity: .4
45
- }), jsxRuntime.jsx("path", {
46
- d: "M248.126 365.184h220.518a25.518 25.518 0 0 0 24.192-25.497 25.518 25.518 0 0 0-24.197-25.503H248.126a25.518 25.518 0 0 0-24.197 25.498 25.518 25.518 0 0 0 24.197 25.497zm0 169.825H773.95a25.446 25.446 0 0 0 25.43-25.466 25.446 25.446 0 0 0-25.43-25.467H248.126a25.446 25.446 0 0 0-25.431 25.467 25.446 25.446 0 0 0 25.43 25.466zM773.95 653.896H248.126a25.518 25.518 0 0 0-24.197 25.497 25.518 25.518 0 0 0 24.197 25.503H773.95a25.518 25.518 0 0 0 24.197-25.497A25.518 25.518 0 0 0 773.95 653.9z",
47
- fill: "#FFF"
48
- }) ]
49
- })
50
- }, {
51
- name: "docx",
52
- svg: jsxRuntime.jsxs("svg", {
53
- viewBox: "0 0 1024 1024",
54
- xmlns: "http://www.w3.org/2000/svg",
55
- height: height,
56
- "aria-label": "Word document",
57
- children: [ jsxRuntime.jsx("title", {
58
- children: "Word document"
59
- }), jsxRuntime.jsx("path", {
60
- d: "m594.944 0 335.124 341.32v563.2c0 65.996-52.5 119.48-117.294 119.48H209.546c-64.793 0-117.299-53.53-117.299-119.48V119.48C92.252 53.484 144.757 0 209.551 0h385.393z",
61
- fill: theme.current.colors["core-button-primary"]
62
- }), jsxRuntime.jsx("path", {
63
- d: "M930.068 341.32H718.152c-64.748 0-123.208-59.49-123.208-125.492V0l335.124 341.32z",
64
- fill: "#ffffff",
65
- fillOpacity: ".7"
66
- }), jsxRuntime.jsx("path", {
67
- d: "M427.377 725.32V768H259.814v-42.68h167.563zM594.944 640v42.68h-335.13V640h335.13zm0-85.32v42.64h-335.13v-42.64h335.13zm0-85.36V512h-335.13v-42.68h335.13z",
68
- fill: "#FFF"
69
- }) ]
70
- })
71
- }, {
72
- name: "pdf",
73
- svg: jsxRuntime.jsxs("svg", {
74
- viewBox: "0 0 1024 1024",
75
- xmlns: "http://www.w3.org/2000/svg",
76
- height: height,
77
- "aria-label": "PDF document",
78
- children: [ jsxRuntime.jsx("title", {
79
- children: "PDF document"
80
- }), jsxRuntime.jsx("path", {
81
- d: "m594.944 0 335.124 341.32v563.2c0 65.996-52.5 119.48-117.294 119.48H209.546c-64.793 0-117.299-53.53-117.299-119.48V119.48C92.252 53.484 144.757 0 209.551 0h385.393z",
82
- fill: "#E94848"
83
- }), jsxRuntime.jsx("path", {
84
- d: "M482.954 375.48a40.586 40.586 0 0 0-40.028 40.776c0 27.786 15.17 62.326 31.18 94.771-12.564 39.834-26.715 82.473-44.82 118.503-37.094 14.796-70.195 25.83-90.06 42.168a41.708 41.708 0 0 0-12.39 29.926c0 22.344 18.063 40.776 40.038 40.776a39.332 39.332 0 0 0 29.27-12.472c14.618-17.828 31.888-50.13 47.294-79.642 35.42-14.198 72.607-28.672 108.447-37.325 26.163 21.453 64.051 35.65 95.186 35.65 21.97 0 40.033-18.385 40.033-40.775a40.586 40.586 0 0 0-40.033-40.724c-24.991 0-61.297 9.072-89.037 18.616a301.338 301.338 0 0 1-58.092-76.984c10.66-33.332 23.04-66.658 23.04-92.488a40.586 40.586 0 0 0-40.028-40.776zm0 24.438c8.98 0 16.01 7.168 16.01 16.292 0 12.237-6.42 34.816-13.87 59.018-9.958-23.552-18.15-46.172-18.15-58.972 0-9.165 7.025-16.292 16.01-16.292v-.046zm6.887 139.546a323.574 323.574 0 0 0 41.523 53.76c-23.742 6.604-46.92 15.078-69.822 23.92 11.08-25.364 19.917-51.758 28.299-77.726v.046zm157.235 52.126c8.98 0 16.01 7.122 16.01 16.292 0 9.124-7.03 16.292-16.015 16.292-18.059 0-43.659-8.284-64.185-19.876 23.552-6.794 49.204-12.749 64.185-12.749v.041zM408.15 664.576c-11.264 20.48-22.436 39.562-30.26 49.152a15.078 15.078 0 0 1-11.028 4.188 15.964 15.964 0 0 1-16.01-16.292 17.707 17.707 0 0 1 4.234-11.356c9.4-7.398 29.835-16.292 53.064-25.692z",
85
- fill: "#FFF"
86
- }), jsxRuntime.jsx("path", {
87
- d: "M930.068 341.32H718.152c-64.748 0-123.208-59.49-123.208-125.492V0l335.124 341.32z",
88
- fill: "#FFF",
89
- fillOpacity: ".4"
90
- }) ]
91
- })
92
- } ].filter(data => type === data.name);
93
- return item ? item[0].svg : null;
94
- }, [ height, type, theme ]);
95
- return jsxRuntime.jsx("div", Object.assign({
96
- id: divId,
97
- className: divClass.trim(),
98
- style: Object.assign(Object.assign({}, divStyle), {
99
- display: "flex",
100
- justifyContent: "center",
101
- alignItems: "center"
102
- })
103
- }, rest, {
104
- children: renderIcon
105
- }));
106
- });
107
-
108
- exports.DocIcons = DocIcons;
@@ -1,10 +0,0 @@
1
- "use strict";
2
-
3
- var Card = require("../../chunks/Card-D4YkmNC7.js");
4
-
5
- require("../../chunks/tslib.es6-C8dZW5nY.js"), require("react/jsx-runtime"), require("react"),
6
- require("../../chunks/Icon-N0YJuKQf.js"), require("../../hooks/useTheme.js"), require("../../theme/themes.js"),
7
- require("../../theme/colors.js"), require("../../theme/corners.js"), require("../../theme/elevations.js"),
8
- require("../../theme/motion.js"), require("../../theme/type.js"), require("../../hooks/useObserveTheme.js"),
9
- require("../../hooks/useWindow.js"), require("../../chunks/misc-BTF7BCZW.js"), require("../../chunks/style-inject.es-CMuL-BfJ.js"),
10
- exports.Card = Card.Card;
@@ -1,9 +0,0 @@
1
- "use strict";
2
-
3
- var DocIcons = require("../../chunks/DocIcons-BZI6JMyw.js");
4
-
5
- require("../../chunks/tslib.es6-C8dZW5nY.js"), require("react/jsx-runtime"), require("react"),
6
- require("../../hooks/useTheme.js"), require("../../theme/themes.js"), require("../../theme/colors.js"),
7
- require("../../theme/corners.js"), require("../../theme/elevations.js"), require("../../theme/motion.js"),
8
- require("../../theme/type.js"), require("../../hooks/useObserveTheme.js"), require("../../hooks/useWindow.js"),
9
- exports.DocIcons = DocIcons.DocIcons;
@@ -1,85 +0,0 @@
1
- .row {
2
- display: flex;
3
- justify-content: center;
4
- align-items: center;
5
- box-sizing: border-box;
6
- padding: 0;
7
- margin: 0;
8
- }
9
-
10
- .rowBetween {
11
- display: flex;
12
- justify-content: space-between;
13
- align-items: center;
14
- box-sizing: border-box;
15
- padding: 0;
16
- margin: 0;
17
- }
18
-
19
- .rowStart {
20
- display: flex;
21
- justify-content: flex-start;
22
- align-items: center;
23
- box-sizing: border-box;
24
- padding: 0;
25
- margin: 0;
26
- }
27
-
28
- .rowEnd {
29
- display: flex;
30
- justify-content: flex-end;
31
- align-items: center;
32
- box-sizing: border-box;
33
- padding: 0;
34
- margin: 0;
35
- }
36
-
37
- .column {
38
- display: flex;
39
- flex-direction: column;
40
- justify-content: center;
41
- align-items: center;
42
- box-sizing: border-box;
43
- padding: 0;
44
- margin: 0;
45
- }
46
-
47
- .columnStart {
48
- display: flex;
49
- flex-direction: column;
50
- justify-content: flex-start;
51
- align-items: flex-start;
52
- box-sizing: border-box;
53
- padding: 0;
54
- margin: 0;
55
- }
56
-
57
- .columnStartCenter {
58
- display: flex;
59
- flex-direction: column;
60
- justify-content: flex-start;
61
- align-items: center;
62
- box-sizing: border-box;
63
- padding: 0;
64
- margin: 0;
65
- }
66
-
67
- .columnBetween {
68
- display: flex;
69
- flex-direction: column;
70
- justify-content: space-between;
71
- align-items: center;
72
- box-sizing: border-box;
73
- padding: 0;
74
- margin: 0;
75
- }
76
-
77
- .columnEnd {
78
- display: flex;
79
- flex-direction: column;
80
- justify-content: flex-end;
81
- align-items: flex-end;
82
- box-sizing: border-box;
83
- padding: 0;
84
- margin: 0;
85
- }