@lobehub/ui 4.3.2 → 4.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (622) hide show
  1. package/es/Accordion/Accordion.d.mts +2 -2
  2. package/es/Accordion/Accordion.mjs +2 -2
  3. package/es/Accordion/Accordion.mjs.map +1 -1
  4. package/es/Accordion/AccordionItem.d.mts +2 -2
  5. package/es/Accordion/AccordionItem.mjs +11 -2
  6. package/es/Accordion/AccordionItem.mjs.map +1 -1
  7. package/es/Accordion/style.mjs +12 -9
  8. package/es/Accordion/style.mjs.map +1 -1
  9. package/es/ActionIcon/ActionIcon.d.mts +2 -2
  10. package/es/ActionIcon/ActionIcon.mjs +2 -57
  11. package/es/ActionIcon/ActionIcon.mjs.map +1 -1
  12. package/es/ActionIcon/style.mjs +76 -20
  13. package/es/ActionIcon/style.mjs.map +1 -1
  14. package/es/ActionIconGroup/ActionIconGroup.mjs +2 -30
  15. package/es/ActionIconGroup/ActionIconGroup.mjs.map +1 -1
  16. package/es/ActionIconGroup/style.mjs +39 -10
  17. package/es/ActionIconGroup/style.mjs.map +1 -1
  18. package/es/Alert/Alert.d.mts +2 -2
  19. package/es/Alert/Alert.mjs +17 -60
  20. package/es/Alert/Alert.mjs.map +1 -1
  21. package/es/Alert/style.mjs +318 -82
  22. package/es/Alert/style.mjs.map +1 -1
  23. package/es/AutoComplete/Select.d.mts +2 -2
  24. package/es/AutoComplete/Select.mjs +7 -21
  25. package/es/AutoComplete/Select.mjs.map +1 -1
  26. package/es/AutoComplete/style.mjs +32 -15
  27. package/es/AutoComplete/style.mjs.map +1 -1
  28. package/es/Avatar/Avatar.mjs +12 -24
  29. package/es/Avatar/Avatar.mjs.map +1 -1
  30. package/es/Avatar/AvatarGroup/index.d.mts +2 -2
  31. package/es/Avatar/AvatarGroup/index.mjs +3 -3
  32. package/es/Avatar/AvatarGroup/index.mjs.map +1 -1
  33. package/es/Avatar/AvatarGroup/style.mjs +9 -8
  34. package/es/Avatar/AvatarGroup/style.mjs.map +1 -1
  35. package/es/Avatar/style.mjs +30 -10
  36. package/es/Avatar/style.mjs.map +1 -1
  37. package/es/Block/Block.mjs +3 -48
  38. package/es/Block/Block.mjs.map +1 -1
  39. package/es/Block/style.mjs +58 -12
  40. package/es/Block/style.mjs.map +1 -1
  41. package/es/Burger/Burger.d.mts +2 -2
  42. package/es/Burger/Burger.mjs +21 -8
  43. package/es/Burger/Burger.mjs.map +1 -1
  44. package/es/Burger/style.mjs +115 -96
  45. package/es/Burger/style.mjs.map +1 -1
  46. package/es/Button/Button.mjs +6 -21
  47. package/es/Button/Button.mjs.map +1 -1
  48. package/es/Button/style.mjs +25 -7
  49. package/es/Button/style.mjs.map +1 -1
  50. package/es/Checkbox/Checkbox.mjs +2 -2
  51. package/es/Checkbox/Checkbox.mjs.map +1 -1
  52. package/es/Checkbox/style.mjs +12 -13
  53. package/es/Checkbox/style.mjs.map +1 -1
  54. package/es/CodeEditor/CodeEditor.d.mts +2 -2
  55. package/es/CodeEditor/CodeEditor.mjs +5 -13
  56. package/es/CodeEditor/CodeEditor.mjs.map +1 -1
  57. package/es/CodeEditor/style.mjs +21 -12
  58. package/es/CodeEditor/style.mjs.map +1 -1
  59. package/es/Collapse/Collapse.d.mts +2 -2
  60. package/es/Collapse/Collapse.mjs +4 -29
  61. package/es/Collapse/Collapse.mjs.map +1 -1
  62. package/es/Collapse/style.mjs +78 -18
  63. package/es/Collapse/style.mjs.map +1 -1
  64. package/es/ColorSwatches/ColorSwatches.mjs +20 -14
  65. package/es/ColorSwatches/ColorSwatches.mjs.map +1 -1
  66. package/es/ColorSwatches/style.mjs +35 -34
  67. package/es/ColorSwatches/style.mjs.map +1 -1
  68. package/es/ConfigProvider/index.d.mts +2 -2
  69. package/es/CopyButton/CopyButton.d.mts +2 -2
  70. package/es/DatePicker/DatePicker.d.mts +2 -2
  71. package/es/DatePicker/DatePicker.mjs +7 -21
  72. package/es/DatePicker/DatePicker.mjs.map +1 -1
  73. package/es/DatePicker/style.mjs +24 -7
  74. package/es/DatePicker/style.mjs.map +1 -1
  75. package/es/DraggablePanel/DraggablePanel.mjs +19 -62
  76. package/es/DraggablePanel/DraggablePanel.mjs.map +1 -1
  77. package/es/DraggablePanel/components/DraggablePanelBody.d.mts +2 -2
  78. package/es/DraggablePanel/components/DraggablePanelBody.mjs +2 -2
  79. package/es/DraggablePanel/components/DraggablePanelBody.mjs.map +1 -1
  80. package/es/DraggablePanel/components/DraggablePanelContainer.d.mts +2 -2
  81. package/es/DraggablePanel/components/DraggablePanelContainer.mjs +2 -2
  82. package/es/DraggablePanel/components/DraggablePanelContainer.mjs.map +1 -1
  83. package/es/DraggablePanel/components/DraggablePanelFooter.d.mts +2 -2
  84. package/es/DraggablePanel/components/DraggablePanelFooter.mjs +2 -2
  85. package/es/DraggablePanel/components/DraggablePanelFooter.mjs.map +1 -1
  86. package/es/DraggablePanel/components/DraggablePanelHeader.d.mts +2 -2
  87. package/es/DraggablePanel/components/DraggablePanelHeader.mjs +2 -2
  88. package/es/DraggablePanel/components/DraggablePanelHeader.mjs.map +1 -1
  89. package/es/DraggablePanel/components/style.mjs +6 -6
  90. package/es/DraggablePanel/components/style.mjs.map +1 -1
  91. package/es/DraggablePanel/style.mjs +336 -194
  92. package/es/DraggablePanel/style.mjs.map +1 -1
  93. package/es/DraggableSideNav/DraggableSideNav.d.mts +2 -2
  94. package/es/DraggableSideNav/DraggableSideNav.mjs +11 -8
  95. package/es/DraggableSideNav/DraggableSideNav.mjs.map +1 -1
  96. package/es/DraggableSideNav/style.mjs +192 -181
  97. package/es/DraggableSideNav/style.mjs.map +1 -1
  98. package/es/Drawer/Drawer.d.mts +2 -2
  99. package/es/Drawer/Drawer.mjs +11 -13
  100. package/es/Drawer/Drawer.mjs.map +1 -1
  101. package/es/Dropdown/Dropdown.d.mts +2 -2
  102. package/es/EditableText/EditableText.d.mts +2 -2
  103. package/es/EditableText/EditableText.mjs +1 -1
  104. package/es/EmojiPicker/AvatarUploader.mjs +3 -4
  105. package/es/EmojiPicker/AvatarUploader.mjs.map +1 -1
  106. package/es/EmojiPicker/EmojiPicker.d.mts +2 -2
  107. package/es/EmojiPicker/EmojiPicker.mjs +11 -4
  108. package/es/EmojiPicker/EmojiPicker.mjs.map +1 -1
  109. package/es/EmojiPicker/style.mjs +9 -9
  110. package/es/EmojiPicker/style.mjs.map +1 -1
  111. package/es/Empty/Empty.mjs +4 -4
  112. package/es/Empty/Empty.mjs.map +1 -1
  113. package/es/FileTypeIcon/FileTypeIcon.mjs +5 -6
  114. package/es/FileTypeIcon/FileTypeIcon.mjs.map +1 -1
  115. package/es/FileTypeIcon/components/FileIcon.mjs +5 -5
  116. package/es/FileTypeIcon/components/FileIcon.mjs.map +1 -1
  117. package/es/FileTypeIcon/components/FolderIcon.mjs +4 -4
  118. package/es/FileTypeIcon/components/FolderIcon.mjs.map +1 -1
  119. package/es/FileTypeIcon/style.mjs +3 -3
  120. package/es/FileTypeIcon/style.mjs.map +1 -1
  121. package/es/Flex/FlexBasic.d.mts +2 -2
  122. package/es/FluentEmoji/FluentEmoji.mjs +2 -2
  123. package/es/FluentEmoji/FluentEmoji.mjs.map +1 -1
  124. package/es/FluentEmoji/style.mjs +3 -3
  125. package/es/FluentEmoji/style.mjs.map +1 -1
  126. package/es/FontLoader/index.d.mts +2 -2
  127. package/es/Footer/Footer.d.mts +2 -2
  128. package/es/Footer/Footer.mjs +10 -8
  129. package/es/Footer/Footer.mjs.map +1 -1
  130. package/es/Footer/style.mjs +169 -133
  131. package/es/Footer/style.mjs.map +1 -1
  132. package/es/Form/Form.mjs +4 -14
  133. package/es/Form/Form.mjs.map +1 -1
  134. package/es/Form/components/FormDivider.mjs +3 -4
  135. package/es/Form/components/FormDivider.mjs.map +1 -1
  136. package/es/Form/components/FormFlatGroup.mjs +4 -14
  137. package/es/Form/components/FormFlatGroup.mjs.map +1 -1
  138. package/es/Form/components/FormGroup.d.mts +2 -2
  139. package/es/Form/components/FormGroup.mjs +5 -13
  140. package/es/Form/components/FormGroup.mjs.map +1 -1
  141. package/es/Form/components/FormItem.d.mts +2 -2
  142. package/es/Form/components/FormItem.mjs +12 -27
  143. package/es/Form/components/FormItem.mjs.map +1 -1
  144. package/es/Form/components/FormSubmitFooter.d.mts +2 -2
  145. package/es/Form/components/FormSubmitFooter.mjs +5 -4
  146. package/es/Form/components/FormSubmitFooter.mjs.map +1 -1
  147. package/es/Form/components/FormTitle.mjs +5 -5
  148. package/es/Form/components/FormTitle.mjs.map +1 -1
  149. package/es/Form/style.mjs +120 -72
  150. package/es/Form/style.mjs.map +1 -1
  151. package/es/FormModal/FormModal.d.mts +2 -2
  152. package/es/FormModal/FormModal.mjs +7 -8
  153. package/es/FormModal/FormModal.mjs.map +1 -1
  154. package/es/FormModal/style.mjs +7 -7
  155. package/es/FormModal/style.mjs.map +1 -1
  156. package/es/Grid/Grid.mjs +17 -4
  157. package/es/Grid/Grid.mjs.map +1 -1
  158. package/es/Grid/style.mjs +15 -16
  159. package/es/Grid/style.mjs.map +1 -1
  160. package/es/GroupAvatar/GroupAvatar.mjs +2 -14
  161. package/es/GroupAvatar/GroupAvatar.mjs.map +1 -1
  162. package/es/GroupAvatar/style.mjs +27 -16
  163. package/es/GroupAvatar/style.mjs.map +1 -1
  164. package/es/GuideCard/GuideCard.mjs +5 -21
  165. package/es/GuideCard/GuideCard.mjs.map +1 -1
  166. package/es/GuideCard/style.mjs +57 -15
  167. package/es/GuideCard/style.mjs.map +1 -1
  168. package/es/Header/Header.d.mts +2 -2
  169. package/es/Header/Header.mjs +6 -7
  170. package/es/Header/Header.mjs.map +1 -1
  171. package/es/Header/style.mjs +8 -10
  172. package/es/Header/style.mjs.map +1 -1
  173. package/es/Highlighter/FullFeatured.mjs +2 -40
  174. package/es/Highlighter/FullFeatured.mjs.map +1 -1
  175. package/es/Highlighter/Highlighter.d.mts +2 -2
  176. package/es/Highlighter/Highlighter.mjs +2 -25
  177. package/es/Highlighter/Highlighter.mjs.map +1 -1
  178. package/es/Highlighter/SyntaxHighlighter/StaticRenderer.mjs +1 -1
  179. package/es/Highlighter/SyntaxHighlighter/StaticRenderer.mjs.map +1 -1
  180. package/es/Highlighter/SyntaxHighlighter/StreamRenderer.mjs +11 -31
  181. package/es/Highlighter/SyntaxHighlighter/StreamRenderer.mjs.map +1 -1
  182. package/es/Highlighter/SyntaxHighlighter/index.d.mts +2 -2
  183. package/es/Highlighter/SyntaxHighlighter/index.mjs +3 -31
  184. package/es/Highlighter/SyntaxHighlighter/index.mjs.map +1 -1
  185. package/es/Highlighter/SyntaxHighlighter/style.mjs +43 -16
  186. package/es/Highlighter/SyntaxHighlighter/style.mjs.map +1 -1
  187. package/es/Highlighter/style.mjs +64 -25
  188. package/es/Highlighter/style.mjs.map +1 -1
  189. package/es/Highlighter/theme/lobe-theme.d.mts +60 -0
  190. package/es/Highlighter/theme/lobe-theme.mjs +370 -0
  191. package/es/Highlighter/theme/lobe-theme.mjs.map +1 -0
  192. package/es/Hotkey/Hotkey.d.mts +2 -2
  193. package/es/Hotkey/Hotkey.mjs +5 -20
  194. package/es/Hotkey/Hotkey.mjs.map +1 -1
  195. package/es/Hotkey/style.mjs +53 -17
  196. package/es/Hotkey/style.mjs.map +1 -1
  197. package/es/HotkeyInput/HotkeyInput.d.mts +2 -2
  198. package/es/HotkeyInput/HotkeyInput.mjs +5 -36
  199. package/es/HotkeyInput/HotkeyInput.mjs.map +1 -1
  200. package/es/HotkeyInput/style.mjs +46 -14
  201. package/es/HotkeyInput/style.mjs.map +1 -1
  202. package/es/Icon/Icon.d.mts +2 -2
  203. package/es/Icon/Icon.mjs +2 -10
  204. package/es/Icon/Icon.mjs.map +1 -1
  205. package/es/Icon/components/IconProvider.d.mts +3 -3
  206. package/es/Icon/style.mjs +15 -6
  207. package/es/Icon/style.mjs.map +1 -1
  208. package/es/Image/Image.mjs +8 -15
  209. package/es/Image/Image.mjs.map +1 -1
  210. package/es/Image/PreviewGroup.d.mts +2 -2
  211. package/es/Image/components/Toolbar.mjs +1 -2
  212. package/es/Image/components/Toolbar.mjs.map +1 -1
  213. package/es/Image/components/usePreview.mjs +2 -2
  214. package/es/Image/components/usePreview.mjs.map +1 -1
  215. package/es/Image/components/usePreviewGroup.mjs +4 -4
  216. package/es/Image/components/usePreviewGroup.mjs.map +1 -1
  217. package/es/Image/style.mjs +79 -54
  218. package/es/Image/style.mjs.map +1 -1
  219. package/es/ImageSelect/ImageSelect.mjs +2 -2
  220. package/es/ImageSelect/ImageSelect.mjs.map +1 -1
  221. package/es/ImageSelect/styles.mjs +11 -10
  222. package/es/ImageSelect/styles.mjs.map +1 -1
  223. package/es/Input/Input.mjs +7 -21
  224. package/es/Input/Input.mjs.map +1 -1
  225. package/es/Input/InputNumber.mjs +7 -21
  226. package/es/Input/InputNumber.mjs.map +1 -1
  227. package/es/Input/InputOPT.mjs +7 -22
  228. package/es/Input/InputOPT.mjs.map +1 -1
  229. package/es/Input/InputPassword.mjs +6 -21
  230. package/es/Input/InputPassword.mjs.map +1 -1
  231. package/es/Input/TextArea.mjs +6 -21
  232. package/es/Input/TextArea.mjs.map +1 -1
  233. package/es/Input/style.mjs +57 -25
  234. package/es/Input/style.mjs.map +1 -1
  235. package/es/Layout/Layout.mjs +36 -33
  236. package/es/Layout/Layout.mjs.map +1 -1
  237. package/es/Layout/components/LayoutFooter.d.mts +2 -2
  238. package/es/Layout/components/LayoutFooter.mjs +2 -2
  239. package/es/Layout/components/LayoutFooter.mjs.map +1 -1
  240. package/es/Layout/components/LayoutHeader.d.mts +2 -2
  241. package/es/Layout/components/LayoutHeader.mjs +2 -2
  242. package/es/Layout/components/LayoutHeader.mjs.map +1 -1
  243. package/es/Layout/components/LayoutMain.d.mts +2 -2
  244. package/es/Layout/components/LayoutMain.mjs +2 -2
  245. package/es/Layout/components/LayoutMain.mjs.map +1 -1
  246. package/es/Layout/components/LayoutSidebar.d.mts +2 -2
  247. package/es/Layout/components/LayoutSidebar.mjs +3 -3
  248. package/es/Layout/components/LayoutSidebar.mjs.map +1 -1
  249. package/es/Layout/components/LayoutSidebarInner.d.mts +2 -2
  250. package/es/Layout/components/LayoutSidebarInner.mjs +2 -2
  251. package/es/Layout/components/LayoutSidebarInner.mjs.map +1 -1
  252. package/es/Layout/components/LayoutToc.d.mts +2 -2
  253. package/es/Layout/components/LayoutToc.mjs +2 -2
  254. package/es/Layout/components/LayoutToc.mjs.map +1 -1
  255. package/es/Layout/style.mjs +6 -5
  256. package/es/Layout/style.mjs.map +1 -1
  257. package/es/List/ListItem/index.d.mts +2 -2
  258. package/es/List/ListItem/index.mjs +2 -2
  259. package/es/List/ListItem/index.mjs.map +1 -1
  260. package/es/List/ListItem/style.mjs +12 -11
  261. package/es/List/ListItem/style.mjs.map +1 -1
  262. package/es/Markdown/Markdown.d.mts +2 -2
  263. package/es/Markdown/Markdown.mjs +3 -25
  264. package/es/Markdown/Markdown.mjs.map +1 -1
  265. package/es/Markdown/SyntaxMarkdown/StreamdownRender.mjs +1 -2
  266. package/es/Markdown/SyntaxMarkdown/StreamdownRender.mjs.map +1 -1
  267. package/es/Markdown/SyntaxMarkdown/style.mjs +3 -3
  268. package/es/Markdown/SyntaxMarkdown/style.mjs.map +1 -1
  269. package/es/Markdown/Typography.d.mts +2 -2
  270. package/es/Markdown/Typography.mjs +2 -2
  271. package/es/Markdown/Typography.mjs.map +1 -1
  272. package/es/Markdown/components/CodeBlock.mjs +1 -0
  273. package/es/Markdown/components/CodeBlock.mjs.map +1 -1
  274. package/es/Markdown/components/SearchResultCards/SearchResultCard.mjs +1 -2
  275. package/es/Markdown/components/SearchResultCards/SearchResultCard.mjs.map +1 -1
  276. package/es/Markdown/components/SearchResultCards/index.d.mts +2 -2
  277. package/es/Markdown/components/SearchResultCards/style.mjs +3 -3
  278. package/es/Markdown/components/SearchResultCards/style.mjs.map +1 -1
  279. package/es/Markdown/markdown.style.mjs +23 -23
  280. package/es/Markdown/markdown.style.mjs.map +1 -1
  281. package/es/Markdown/style.mjs +48 -26
  282. package/es/Markdown/style.mjs.map +1 -1
  283. package/es/MaskShadow/MaskShadow.d.mts +2 -2
  284. package/es/MaskShadow/MaskShadow.mjs +8 -12
  285. package/es/MaskShadow/MaskShadow.mjs.map +1 -1
  286. package/es/MaskShadow/style.mjs +33 -8
  287. package/es/MaskShadow/style.mjs.map +1 -1
  288. package/es/Menu/Menu.d.mts +2 -2
  289. package/es/Menu/Menu.mjs +3 -25
  290. package/es/Menu/Menu.mjs.map +1 -1
  291. package/es/Menu/style.mjs +40 -15
  292. package/es/Menu/style.mjs.map +1 -1
  293. package/es/Mermaid/FullFeatured.mjs +2 -35
  294. package/es/Mermaid/FullFeatured.mjs.map +1 -1
  295. package/es/Mermaid/Mermaid.d.mts +2 -2
  296. package/es/Mermaid/Mermaid.mjs +5 -28
  297. package/es/Mermaid/Mermaid.mjs.map +1 -1
  298. package/es/Mermaid/SyntaxMermaid/StaticMermaid.mjs +82 -0
  299. package/es/Mermaid/SyntaxMermaid/StaticMermaid.mjs.map +1 -0
  300. package/es/Mermaid/SyntaxMermaid/StreamMermaid.mjs +94 -0
  301. package/es/Mermaid/SyntaxMermaid/StreamMermaid.mjs.map +1 -0
  302. package/es/Mermaid/SyntaxMermaid/index.d.mts +2 -2
  303. package/es/Mermaid/SyntaxMermaid/index.mjs +36 -58
  304. package/es/Mermaid/SyntaxMermaid/index.mjs.map +1 -1
  305. package/es/Mermaid/SyntaxMermaid/style.mjs +80 -0
  306. package/es/Mermaid/SyntaxMermaid/style.mjs.map +1 -0
  307. package/es/Mermaid/type.d.mts +3 -2
  308. package/es/Modal/Modal.d.mts +2 -2
  309. package/es/Modal/Modal.mjs +8 -9
  310. package/es/Modal/Modal.mjs.map +1 -1
  311. package/es/Modal/style.mjs +13 -11
  312. package/es/Modal/style.mjs.map +1 -1
  313. package/es/MotionProvider/index.d.mts +2 -2
  314. package/es/ScrollShadow/ScrollShadow.mjs +20 -43
  315. package/es/ScrollShadow/ScrollShadow.mjs.map +1 -1
  316. package/es/ScrollShadow/style.mjs +54 -12
  317. package/es/ScrollShadow/style.mjs.map +1 -1
  318. package/es/SearchBar/SearchBar.d.mts +2 -2
  319. package/es/SearchBar/SearchBar.mjs +2 -2
  320. package/es/SearchBar/SearchBar.mjs.map +1 -1
  321. package/es/SearchBar/style.mjs +7 -6
  322. package/es/SearchBar/style.mjs.map +1 -1
  323. package/es/Segmented/Segmented.d.mts +2 -2
  324. package/es/Segmented/Segmented.mjs +4 -26
  325. package/es/Segmented/Segmented.mjs.map +1 -1
  326. package/es/Segmented/style.mjs +33 -9
  327. package/es/Segmented/style.mjs.map +1 -1
  328. package/es/Select/Select.d.mts +2 -2
  329. package/es/Select/Select.mjs +7 -21
  330. package/es/Select/Select.mjs.map +1 -1
  331. package/es/Select/style.mjs +36 -19
  332. package/es/Select/style.mjs.map +1 -1
  333. package/es/SideNav/SideNav.mjs +2 -2
  334. package/es/SideNav/SideNav.mjs.map +1 -1
  335. package/es/SideNav/style.mjs +5 -5
  336. package/es/SideNav/style.mjs.map +1 -1
  337. package/es/Skeleton/Skeleton.mjs +2 -2
  338. package/es/Skeleton/Skeleton.mjs.map +1 -1
  339. package/es/Skeleton/SkeletonAvatar.mjs +3 -3
  340. package/es/Skeleton/SkeletonAvatar.mjs.map +1 -1
  341. package/es/Skeleton/SkeletonBlock.mjs +2 -2
  342. package/es/Skeleton/SkeletonBlock.mjs.map +1 -1
  343. package/es/Skeleton/SkeletonButton.mjs +5 -6
  344. package/es/Skeleton/SkeletonButton.mjs.map +1 -1
  345. package/es/Skeleton/SkeletonTags.mjs +5 -5
  346. package/es/Skeleton/SkeletonTags.mjs.map +1 -1
  347. package/es/Skeleton/SkeletonTitle.mjs +2 -2
  348. package/es/Skeleton/SkeletonTitle.mjs.map +1 -1
  349. package/es/Skeleton/style.mjs +7 -8
  350. package/es/Skeleton/style.mjs.map +1 -1
  351. package/es/SliderWithInput/SliderWithInput.d.mts +2 -2
  352. package/es/Snippet/Snippet.mjs +2 -21
  353. package/es/Snippet/Snippet.mjs.map +1 -1
  354. package/es/Snippet/style.mjs +27 -9
  355. package/es/Snippet/style.mjs.map +1 -1
  356. package/es/SortableList/SortableList.mjs +1 -2
  357. package/es/SortableList/SortableList.mjs.map +1 -1
  358. package/es/SortableList/components/SortableItem.mjs +3 -22
  359. package/es/SortableList/components/SortableItem.mjs.map +1 -1
  360. package/es/SortableList/style.mjs +24 -7
  361. package/es/SortableList/style.mjs.map +1 -1
  362. package/es/Tabs/Tabs.mjs +3 -26
  363. package/es/Tabs/Tabs.mjs.map +1 -1
  364. package/es/Tabs/style.mjs +34 -10
  365. package/es/Tabs/style.mjs.map +1 -1
  366. package/es/Tag/Tag.mjs +3 -21
  367. package/es/Tag/Tag.mjs.map +1 -1
  368. package/es/Tag/styles.mjs +36 -10
  369. package/es/Tag/styles.mjs.map +1 -1
  370. package/es/Text/Text.mjs +2 -35
  371. package/es/Text/Text.mjs.map +1 -1
  372. package/es/Text/styles.mjs +49 -17
  373. package/es/Text/styles.mjs.map +1 -1
  374. package/es/ThemeProvider/ConfigProvider.mjs +11 -12
  375. package/es/ThemeProvider/ConfigProvider.mjs.map +1 -1
  376. package/es/ThemeProvider/ThemeProvider.d.mts +2 -2
  377. package/es/ThemeProvider/ThemeProvider.mjs +1 -1
  378. package/es/Toc/Toc.d.mts +2 -2
  379. package/es/Toc/Toc.mjs +8 -6
  380. package/es/Toc/Toc.mjs.map +1 -1
  381. package/es/Toc/TocMobile.mjs +1 -5
  382. package/es/Toc/TocMobile.mjs.map +1 -1
  383. package/es/Toc/style.mjs +52 -52
  384. package/es/Toc/style.mjs.map +1 -1
  385. package/es/Tooltip/TooltipFloating.mjs +2 -2
  386. package/es/Tooltip/TooltipFloating.mjs.map +1 -1
  387. package/es/Tooltip/TooltipPortal.mjs +3 -1
  388. package/es/Tooltip/TooltipPortal.mjs.map +1 -1
  389. package/es/Tooltip/style.mjs +7 -7
  390. package/es/Tooltip/style.mjs.map +1 -1
  391. package/es/Video/index.d.mts +2 -2
  392. package/es/Video/index.mjs +13 -13
  393. package/es/Video/index.mjs.map +1 -1
  394. package/es/Video/style.mjs +49 -42
  395. package/es/Video/style.mjs.map +1 -1
  396. package/es/awesome/AuroraBackground/AuroraBackground.d.mts +2 -2
  397. package/es/awesome/AuroraBackground/AuroraBackground.mjs +4 -3
  398. package/es/awesome/AuroraBackground/AuroraBackground.mjs.map +1 -1
  399. package/es/awesome/AuroraBackground/style.mjs +129 -90
  400. package/es/awesome/AuroraBackground/style.mjs.map +1 -1
  401. package/es/awesome/BottomGradientButton/BottomGradientButton.d.mts +2 -2
  402. package/es/awesome/BottomGradientButton/BottomGradientButton.mjs +2 -2
  403. package/es/awesome/BottomGradientButton/BottomGradientButton.mjs.map +1 -1
  404. package/es/awesome/BottomGradientButton/style.mjs +6 -5
  405. package/es/awesome/BottomGradientButton/style.mjs.map +1 -1
  406. package/es/awesome/Features/FeatureItem.mjs +10 -7
  407. package/es/awesome/Features/FeatureItem.mjs.map +1 -1
  408. package/es/awesome/Features/Features.d.mts +2 -2
  409. package/es/awesome/Features/style.mjs +141 -90
  410. package/es/awesome/Features/style.mjs.map +1 -1
  411. package/es/awesome/Giscus/Giscus.d.mts +2 -2
  412. package/es/awesome/GradientButton/GradientButton.d.mts +2 -2
  413. package/es/awesome/GradientButton/GradientButton.mjs +26 -5
  414. package/es/awesome/GradientButton/GradientButton.mjs.map +1 -1
  415. package/es/awesome/GradientButton/style.mjs +93 -63
  416. package/es/awesome/GradientButton/style.mjs.map +1 -1
  417. package/es/awesome/GridBackground/GridBackground.d.mts +2 -2
  418. package/es/awesome/GridBackground/GridBackground.mjs +30 -9
  419. package/es/awesome/GridBackground/GridBackground.mjs.map +1 -1
  420. package/es/awesome/GridBackground/GridShowcase.d.mts +2 -2
  421. package/es/awesome/GridBackground/style.mjs +70 -62
  422. package/es/awesome/GridBackground/style.mjs.map +1 -1
  423. package/es/awesome/Hero/Hero.d.mts +2 -2
  424. package/es/awesome/Hero/Hero.mjs +1 -2
  425. package/es/awesome/Hero/Hero.mjs.map +1 -1
  426. package/es/awesome/Hero/style.mjs +11 -10
  427. package/es/awesome/Hero/style.mjs.map +1 -1
  428. package/es/awesome/Spline/ParentSize.mjs +1 -1
  429. package/es/awesome/Spline/Spine.d.mts +2 -2
  430. package/es/awesome/Spotlight/Spotlight.d.mts +2 -2
  431. package/es/awesome/Spotlight/Spotlight.mjs +15 -7
  432. package/es/awesome/Spotlight/Spotlight.mjs.map +1 -1
  433. package/es/awesome/Spotlight/style.mjs +76 -23
  434. package/es/awesome/Spotlight/style.mjs.map +1 -1
  435. package/es/awesome/SpotlightCard/SpotlightCard.d.mts +2 -2
  436. package/es/awesome/SpotlightCard/SpotlightCard.mjs +11 -7
  437. package/es/awesome/SpotlightCard/SpotlightCard.mjs.map +1 -1
  438. package/es/awesome/SpotlightCard/SpotlightCardItem.mjs +10 -7
  439. package/es/awesome/SpotlightCard/SpotlightCardItem.mjs.map +1 -1
  440. package/es/awesome/SpotlightCard/style.mjs +121 -69
  441. package/es/awesome/SpotlightCard/style.mjs.map +1 -1
  442. package/es/awesome/TypewriterEffect/TypewriterEffect.d.mts +2 -2
  443. package/es/awesome/TypewriterEffect/TypewriterEffect.mjs +6 -5
  444. package/es/awesome/TypewriterEffect/TypewriterEffect.mjs.map +1 -1
  445. package/es/awesome/TypewriterEffect/style.mjs +8 -8
  446. package/es/awesome/TypewriterEffect/style.mjs.map +1 -1
  447. package/es/brand/BrandLoading/{style-Cz42xGgB.css → style-DX648z7a.css} +1 -1
  448. package/es/brand/BrandLoading/{style-Cz42xGgB.css.map → style-DX648z7a.css.map} +1 -1
  449. package/es/brand/LobeChat/index.d.mts +2 -2
  450. package/es/brand/LobeChat/index.mjs +5 -7
  451. package/es/brand/LobeChat/index.mjs.map +1 -1
  452. package/es/brand/LobeHub/index.d.mts +2 -2
  453. package/es/brand/LobeHub/index.mjs +5 -7
  454. package/es/brand/LobeHub/index.mjs.map +1 -1
  455. package/es/brand/LobeHub/style.mjs +3 -3
  456. package/es/brand/LobeHub/style.mjs.map +1 -1
  457. package/es/brand/LogoFlat/index.d.mts +3 -6
  458. package/es/brand/LogoFlat/index.mjs +2 -76
  459. package/es/brand/LogoFlat/index.mjs.map +1 -1
  460. package/es/brand/LogoMono/index.d.mts +2 -10
  461. package/es/brand/LogoMono/index.mjs +2 -84
  462. package/es/brand/LogoThree/LogoSpline.d.mts +2 -2
  463. package/es/brand/LogoThree/index.d.mts +2 -2
  464. package/es/brand/index.d.mts +3 -3
  465. package/es/brand/index.mjs +2 -2
  466. package/es/chat/BackBottom/BackBottom.d.mts +2 -2
  467. package/es/chat/BackBottom/BackBottom.mjs +3 -3
  468. package/es/chat/BackBottom/BackBottom.mjs.map +1 -1
  469. package/es/chat/BackBottom/style.mjs +27 -8
  470. package/es/chat/BackBottom/style.mjs.map +1 -1
  471. package/es/chat/ChatHeader/ChatHeader.mjs +2 -2
  472. package/es/chat/ChatHeader/ChatHeader.mjs.map +1 -1
  473. package/es/chat/ChatHeader/ChatHeaderTitle.mjs +8 -9
  474. package/es/chat/ChatHeader/ChatHeaderTitle.mjs.map +1 -1
  475. package/es/chat/ChatHeader/style.mjs +7 -7
  476. package/es/chat/ChatHeader/style.mjs.map +1 -1
  477. package/es/chat/ChatInputArea/ChatInputArea.mjs +1 -2
  478. package/es/chat/ChatInputArea/ChatInputArea.mjs.map +1 -1
  479. package/es/chat/ChatInputArea/components/ChatInputActionBar.mjs +4 -5
  480. package/es/chat/ChatInputArea/components/ChatInputActionBar.mjs.map +1 -1
  481. package/es/chat/ChatInputArea/components/ChatInputAreaInner.d.mts +2 -2
  482. package/es/chat/ChatInputArea/components/ChatSendButton.mjs +2 -3
  483. package/es/chat/ChatInputArea/components/ChatSendButton.mjs.map +1 -1
  484. package/es/chat/ChatInputArea/style.mjs +6 -5
  485. package/es/chat/ChatInputArea/style.mjs.map +1 -1
  486. package/es/chat/ChatItem/ChatItem.d.mts +2 -2
  487. package/es/chat/ChatItem/ChatItem.mjs +19 -16
  488. package/es/chat/ChatItem/ChatItem.mjs.map +1 -1
  489. package/es/chat/ChatItem/components/Actions.mjs +8 -8
  490. package/es/chat/ChatItem/components/Actions.mjs.map +1 -1
  491. package/es/chat/ChatItem/components/Avatar.mjs +7 -3
  492. package/es/chat/ChatItem/components/Avatar.mjs.map +1 -1
  493. package/es/chat/ChatItem/components/ErrorContent.mjs +2 -3
  494. package/es/chat/ChatItem/components/ErrorContent.mjs.map +1 -1
  495. package/es/chat/ChatItem/components/Loading.mjs +3 -4
  496. package/es/chat/ChatItem/components/Loading.mjs.map +1 -1
  497. package/es/chat/ChatItem/components/MessageContent.mjs +11 -10
  498. package/es/chat/ChatItem/components/MessageContent.mjs.map +1 -1
  499. package/es/chat/ChatItem/components/Title.mjs +3 -8
  500. package/es/chat/ChatItem/components/Title.mjs.map +1 -1
  501. package/es/chat/ChatItem/style.mjs +294 -142
  502. package/es/chat/ChatItem/style.mjs.map +1 -1
  503. package/es/chat/ChatList/ChatList.d.mts +2 -2
  504. package/es/chat/ChatList/ChatList.mjs +2 -2
  505. package/es/chat/ChatList/ChatList.mjs.map +1 -1
  506. package/es/chat/ChatList/style.mjs +3 -3
  507. package/es/chat/ChatList/style.mjs.map +1 -1
  508. package/es/chat/EditableMessage/EditableMessage.d.mts +2 -2
  509. package/es/chat/EditableMessage/EditableMessage.mjs +1 -1
  510. package/es/chat/EditableMessageList/EditableMessageList.d.mts +2 -2
  511. package/es/chat/LoadingDots/LoadingDots.mjs +17 -10
  512. package/es/chat/LoadingDots/LoadingDots.mjs.map +1 -1
  513. package/es/chat/LoadingDots/style.mjs +117 -116
  514. package/es/chat/LoadingDots/style.mjs.map +1 -1
  515. package/es/chat/LoadingDots/type.d.mts +6 -0
  516. package/es/chat/MessageInput/MessageInput.d.mts +2 -2
  517. package/es/chat/MessageInput/MessageInput.mjs +4 -5
  518. package/es/chat/MessageInput/MessageInput.mjs.map +1 -1
  519. package/es/chat/MessageInput/style.mjs +4 -4
  520. package/es/chat/MessageInput/style.mjs.map +1 -1
  521. package/es/chat/MessageModal/MessageModal.d.mts +2 -2
  522. package/es/chat/MessageModal/MessageModal.mjs +4 -5
  523. package/es/chat/MessageModal/MessageModal.mjs.map +1 -1
  524. package/es/chat/TokenTag/TokenTag.mjs +5 -6
  525. package/es/chat/TokenTag/TokenTag.mjs.map +1 -1
  526. package/es/color/ColorScales/ScaleRow.mjs +1 -2
  527. package/es/color/ColorScales/ScaleRow.mjs.map +1 -1
  528. package/es/color/ColorScales/index.d.mts +2 -2
  529. package/es/color/ColorScales/index.mjs +1 -2
  530. package/es/color/ColorScales/index.mjs.map +1 -1
  531. package/es/color/ColorScales/style.mjs +4 -4
  532. package/es/color/ColorScales/style.mjs.map +1 -1
  533. package/es/hooks/useHighlight.mjs +84 -227
  534. package/es/hooks/useHighlight.mjs.map +1 -1
  535. package/es/hooks/useMermaid.mjs +104 -57
  536. package/es/hooks/useMermaid.mjs.map +1 -1
  537. package/es/hooks/useStreamHighlight.mjs +221 -0
  538. package/es/hooks/useStreamHighlight.mjs.map +1 -0
  539. package/es/hooks/useStreamMermaid.mjs +87 -0
  540. package/es/hooks/useStreamMermaid.mjs.map +1 -0
  541. package/es/i18n/context.d.mts +2 -2
  542. package/es/icons/lucideExtra/GlobeOffIcon.d.mts +3 -3
  543. package/es/icons/lucideExtra/GroupBotIcon.d.mts +3 -3
  544. package/es/icons/lucideExtra/GroupBotSquareIcon.d.mts +3 -3
  545. package/es/icons/lucideExtra/LeftClickIcon.d.mts +3 -3
  546. package/es/icons/lucideExtra/LeftDoubleClickIcon.d.mts +3 -3
  547. package/es/icons/lucideExtra/McpIcon.d.mts +3 -3
  548. package/es/icons/lucideExtra/ProviderIcon.d.mts +3 -3
  549. package/es/icons/lucideExtra/RightClickIcon.d.mts +3 -3
  550. package/es/icons/lucideExtra/RightDoubleClickIcon.d.mts +3 -3
  551. package/es/icons/lucideExtra/ShapesUploadIcon.d.mts +3 -3
  552. package/es/icons/lucideExtra/TreeDownRightIcon.d.mts +3 -3
  553. package/es/icons/lucideExtra/TreeUpDownRightIcon.d.mts +3 -3
  554. package/es/index.d.mts +3 -1
  555. package/es/index.mjs +10 -8
  556. package/es/mdx/Callout/index.mjs +8 -7
  557. package/es/mdx/Callout/index.mjs.map +1 -1
  558. package/es/mdx/Callout/style.mjs +3 -4
  559. package/es/mdx/Callout/style.mjs.map +1 -1
  560. package/es/mdx/Cards/Card.mjs +14 -16
  561. package/es/mdx/Cards/Card.mjs.map +1 -1
  562. package/es/mdx/Cards/index.mjs +2 -2
  563. package/es/mdx/Cards/index.mjs.map +1 -1
  564. package/es/mdx/Cards/style.mjs +3 -3
  565. package/es/mdx/Cards/style.mjs.map +1 -1
  566. package/es/mdx/FileTree/Folder.mjs +1 -16
  567. package/es/mdx/FileTree/Folder.mjs.map +1 -1
  568. package/es/mdx/FileTree/index.mjs +2 -2
  569. package/es/mdx/FileTree/index.mjs.map +1 -1
  570. package/es/mdx/FileTree/style.mjs +19 -7
  571. package/es/mdx/FileTree/style.mjs.map +1 -1
  572. package/es/mdx/Mdx/index.d.mts +2 -2
  573. package/es/mdx/Mdx/index.mjs +2 -2
  574. package/es/mdx/Mdx/index.mjs.map +1 -1
  575. package/es/mdx/Steps/index.mjs +2 -2
  576. package/es/mdx/Steps/index.mjs.map +1 -1
  577. package/es/mdx/Steps/style.mjs +8 -8
  578. package/es/mdx/Steps/style.mjs.map +1 -1
  579. package/es/mdx/Tabs/Tab.mjs +3 -12
  580. package/es/mdx/Tabs/Tab.mjs.map +1 -1
  581. package/es/mdx/Tabs/index.mjs +2 -2
  582. package/es/mdx/Tabs/index.mjs.map +1 -1
  583. package/es/mdx/Tabs/style.mjs +12 -14
  584. package/es/mdx/Tabs/style.mjs.map +1 -1
  585. package/es/mdx/mdxComponents/Citation/PopoverPanel.mjs +1 -22
  586. package/es/mdx/mdxComponents/Citation/PopoverPanel.mjs.map +1 -1
  587. package/es/mdx/mdxComponents/Citation/index.mjs +3 -17
  588. package/es/mdx/mdxComponents/Citation/index.mjs.map +1 -1
  589. package/es/mdx/mdxComponents/Citation/style.mjs +39 -0
  590. package/es/mdx/mdxComponents/Citation/style.mjs.map +1 -0
  591. package/es/mdx/mdxComponents/Pre.mjs +7 -9
  592. package/es/mdx/mdxComponents/Pre.mjs.map +1 -1
  593. package/es/mobile/ChatHeader/ChatHeader.mjs +2 -2
  594. package/es/mobile/ChatHeader/ChatHeader.mjs.map +1 -1
  595. package/es/mobile/ChatHeader/ChatHeaderTitle.mjs +7 -8
  596. package/es/mobile/ChatHeader/ChatHeaderTitle.mjs.map +1 -1
  597. package/es/mobile/ChatHeader/style.mjs +6 -6
  598. package/es/mobile/ChatHeader/style.mjs.map +1 -1
  599. package/es/mobile/ChatInputArea/ChatInputArea.mjs +2 -2
  600. package/es/mobile/ChatInputArea/ChatInputArea.mjs.map +1 -1
  601. package/es/mobile/ChatInputArea/style.mjs +5 -5
  602. package/es/mobile/ChatInputArea/style.mjs.map +1 -1
  603. package/es/mobile/SafeArea/SafeArea.mjs +2 -2
  604. package/es/mobile/SafeArea/SafeArea.mjs.map +1 -1
  605. package/es/mobile/SafeArea/style.mjs +3 -3
  606. package/es/mobile/SafeArea/style.mjs.map +1 -1
  607. package/es/mobile/TabBar/TabBar.mjs +2 -2
  608. package/es/mobile/TabBar/TabBar.mjs.map +1 -1
  609. package/es/mobile/TabBar/style.mjs +7 -7
  610. package/es/mobile/TabBar/style.mjs.map +1 -1
  611. package/es/storybook/StoryBook/index.d.mts +2 -2
  612. package/es/storybook/StoryBook/index.mjs +4 -5
  613. package/es/storybook/StoryBook/index.mjs.map +1 -1
  614. package/es/storybook/StoryBook/style.mjs +27 -24
  615. package/es/storybook/StoryBook/style.mjs.map +1 -1
  616. package/es/styles/index.d.mts +2 -1
  617. package/es/styles/index.mjs +2 -1
  618. package/es/styles/theme/customStylishStatic.d.mts +7 -0
  619. package/es/styles/theme/customStylishStatic.mjs +161 -0
  620. package/es/styles/theme/customStylishStatic.mjs.map +1 -0
  621. package/package.json +3 -2
  622. package/es/brand/LogoMono/index.mjs.map +0 -1
@@ -1,7 +1,7 @@
1
- import { createStyles } from "antd-style";
1
+ import { createStaticStyles } from "antd-style";
2
2
 
3
3
  //#region src/mobile/ChatHeader/style.ts
4
- const useStyles = createStyles(({ css: css$1, token }) => {
4
+ const styles = createStaticStyles(({ css: css$1, cssVar: cssVar$1 }) => {
5
5
  return {
6
6
  center: css$1`
7
7
  height: 100%;
@@ -10,7 +10,7 @@ const useStyles = createStyles(({ css: css$1, token }) => {
10
10
  overflow: hidden;
11
11
  flex: none;
12
12
  width: 100vw;
13
- background: ${token.colorBgLayout};
13
+ background: ${cssVar$1.colorBgLayout};
14
14
  `,
15
15
  inner: css$1`
16
16
  position: relative;
@@ -32,7 +32,7 @@ const useStyles = createStyles(({ css: css$1, token }) => {
32
32
  `
33
33
  };
34
34
  });
35
- const useTitleStyles = createStyles(({ css: css$1, token }) => ({
35
+ const titleStyles = createStaticStyles(({ css: css$1, cssVar: cssVar$1 }) => ({
36
36
  desc: css$1`
37
37
  overflow: hidden;
38
38
 
@@ -40,7 +40,7 @@ const useTitleStyles = createStyles(({ css: css$1, token }) => ({
40
40
 
41
41
  font-size: 12px;
42
42
  line-height: 1;
43
- color: ${token.colorTextTertiary};
43
+ color: ${cssVar$1.colorTextTertiary};
44
44
  text-overflow: ellipsis;
45
45
  white-space: nowrap;
46
46
  `,
@@ -70,5 +70,5 @@ const useTitleStyles = createStyles(({ css: css$1, token }) => ({
70
70
  }));
71
71
 
72
72
  //#endregion
73
- export { useStyles, useTitleStyles };
73
+ export { styles, titleStyles };
74
74
  //# sourceMappingURL=style.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"style.mjs","names":[],"sources":["../../../src/mobile/ChatHeader/style.ts"],"sourcesContent":["import { createStyles } from 'antd-style';\n\nexport const useStyles = createStyles(({ css, token }) => {\n return {\n center: css`\n height: 100%;\n `,\n container: css`\n overflow: hidden;\n flex: none;\n width: 100vw;\n background: ${token.colorBgLayout};\n `,\n\n inner: css`\n position: relative;\n\n width: 100%;\n height: 44px;\n min-height: 44px;\n max-height: 44px;\n padding-block: 0;\n padding-inline: 6px;\n `,\n left: css`\n justify-content: flex-start;\n height: 100%;\n `,\n right: css`\n justify-content: flex-end;\n height: 100%;\n `,\n };\n});\n\nexport const useTitleStyles = createStyles(({ css, token }) => ({\n desc: css`\n overflow: hidden;\n\n width: 100%;\n\n font-size: 12px;\n line-height: 1;\n color: ${token.colorTextTertiary};\n text-overflow: ellipsis;\n white-space: nowrap;\n `,\n tag: css`\n flex: none;\n `,\n title: css`\n overflow: hidden;\n\n font-size: 16px;\n font-weight: bold;\n line-height: 1;\n text-overflow: ellipsis;\n white-space: nowrap;\n `,\n titleContainer: css`\n flex: 1;\n `,\n titleWithDesc: css`\n overflow: hidden;\n\n font-weight: bold;\n line-height: 1;\n text-overflow: ellipsis;\n white-space: nowrap;\n `,\n}));\n"],"mappings":";;;AAEA,MAAa,YAAY,cAAc,EAAE,YAAK,YAAY;AACxD,QAAO;EACL,QAAQ,KAAG;;;EAGX,WAAW,KAAG;;;;oBAIE,MAAM,cAAc;;EAGpC,OAAO,KAAG;;;;;;;;;;EAUV,MAAM,KAAG;;;;EAIT,OAAO,KAAG;;;;EAIX;EACD;AAEF,MAAa,iBAAiB,cAAc,EAAE,YAAK,aAAa;CAC9D,MAAM,KAAG;;;;;;;aAOE,MAAM,kBAAkB;;;;CAInC,KAAK,KAAG;;;CAGR,OAAO,KAAG;;;;;;;;;CASV,gBAAgB,KAAG;;;CAGnB,eAAe,KAAG;;;;;;;;CAQnB,EAAE"}
1
+ {"version":3,"file":"style.mjs","names":["cssVar"],"sources":["../../../src/mobile/ChatHeader/style.ts"],"sourcesContent":["import { createStaticStyles } from 'antd-style';\n\nexport const styles = createStaticStyles(({ css, cssVar }) => {\n return {\n center: css`\n height: 100%;\n `,\n container: css`\n overflow: hidden;\n flex: none;\n width: 100vw;\n background: ${cssVar.colorBgLayout};\n `,\n\n inner: css`\n position: relative;\n\n width: 100%;\n height: 44px;\n min-height: 44px;\n max-height: 44px;\n padding-block: 0;\n padding-inline: 6px;\n `,\n left: css`\n justify-content: flex-start;\n height: 100%;\n `,\n right: css`\n justify-content: flex-end;\n height: 100%;\n `,\n };\n});\n\nexport const titleStyles = createStaticStyles(({ css, cssVar }) => ({\n desc: css`\n overflow: hidden;\n\n width: 100%;\n\n font-size: 12px;\n line-height: 1;\n color: ${cssVar.colorTextTertiary};\n text-overflow: ellipsis;\n white-space: nowrap;\n `,\n tag: css`\n flex: none;\n `,\n title: css`\n overflow: hidden;\n\n font-size: 16px;\n font-weight: bold;\n line-height: 1;\n text-overflow: ellipsis;\n white-space: nowrap;\n `,\n titleContainer: css`\n flex: 1;\n `,\n titleWithDesc: css`\n overflow: hidden;\n\n font-weight: bold;\n line-height: 1;\n text-overflow: ellipsis;\n white-space: nowrap;\n `,\n}));\n"],"mappings":";;;AAEA,MAAa,SAAS,oBAAoB,EAAE,YAAK,uBAAa;AAC5D,QAAO;EACL,QAAQ,KAAG;;;EAGX,WAAW,KAAG;;;;oBAIEA,SAAO,cAAc;;EAGrC,OAAO,KAAG;;;;;;;;;;EAUV,MAAM,KAAG;;;;EAIT,OAAO,KAAG;;;;EAIX;EACD;AAEF,MAAa,cAAc,oBAAoB,EAAE,YAAK,wBAAc;CAClE,MAAM,KAAG;;;;;;;aAOEA,SAAO,kBAAkB;;;;CAIpC,KAAK,KAAG;;;CAGR,OAAO,KAAG;;;;;;;;;CASV,gBAAgB,KAAG;;;CAGnB,eAAe,KAAG;;;;;;;;CAQnB,EAAE"}
@@ -4,16 +4,16 @@ import FlexBasic_default from "../../Flex/FlexBasic.mjs";
4
4
  import ActionIcon_default from "../../ActionIcon/ActionIcon.mjs";
5
5
  import ChatInputAreaInner_default from "../../chat/ChatInputArea/components/ChatInputAreaInner.mjs";
6
6
  import SafeArea_default from "../SafeArea/SafeArea.mjs";
7
- import { useStyles } from "./style.mjs";
7
+ import { styles } from "./style.mjs";
8
8
  import { memo, useCallback, useEffect, useRef, useState } from "react";
9
9
  import { jsx, jsxs } from "react/jsx-runtime";
10
+ import { cx } from "antd-style";
10
11
  import { useSize } from "ahooks";
11
12
  import { ChevronDown, ChevronUp } from "lucide-react";
12
13
 
13
14
  //#region src/mobile/ChatInputArea/ChatInputArea.tsx
14
15
  const ChatInputArea = memo(({ ref, className, style, topAddons, textAreaLeftAddons, textAreaRightAddons, bottomAddons, expand = false, setExpand, onSend, onInput, loading, value, safeArea }) => {
15
16
  const containerRef = useRef(null);
16
- const { cx, styles } = useStyles();
17
17
  const size = useSize(containerRef);
18
18
  const [showFullscreen, setShowFullscreen] = useState(false);
19
19
  const [isFocused, setIsFocused] = useState(false);
@@ -1 +1 @@
1
- {"version":3,"file":"ChatInputArea.mjs","names":["InnerContainer: FC<\n PropsWithChildren & {\n bottomAddons?: ReactNode;\n textAreaLeftAddons?: ReactNode;\n textAreaRightAddons?: ReactNode;\n topAddons?: ReactNode;\n }\n >","Flexbox","ActionIcon","ChatInputAreaInner","SafeArea"],"sources":["../../../src/mobile/ChatInputArea/ChatInputArea.tsx"],"sourcesContent":["'use client';\n\nimport { useSize } from 'ahooks';\nimport { ChevronDown, ChevronUp } from 'lucide-react';\nimport {\n FC,\n PropsWithChildren,\n ReactNode,\n memo,\n useCallback,\n useEffect,\n useRef,\n useState,\n} from 'react';\n\nimport ActionIcon from '@/ActionIcon';\nimport { Flexbox } from '@/Flex';\nimport ChatInputAreaInner from '@/chat/ChatInputArea/components/ChatInputAreaInner';\nimport SafeArea from '@/mobile/SafeArea';\n\nimport { useStyles } from './style';\nimport type { ChatInputAreaProps } from './type';\n\nconst ChatInputArea = memo<ChatInputAreaProps>(\n ({\n ref,\n className,\n style,\n topAddons,\n textAreaLeftAddons,\n textAreaRightAddons,\n bottomAddons,\n expand = false,\n setExpand,\n onSend,\n onInput,\n loading,\n value,\n safeArea,\n }) => {\n const containerRef = useRef<HTMLDivElement>(null);\n const { cx, styles } = useStyles();\n const size = useSize(containerRef);\n const [showFullscreen, setShowFullscreen] = useState<boolean>(false);\n const [isFocused, setIsFocused] = useState<boolean>(false);\n\n useEffect(() => {\n if (!size?.height) return;\n setShowFullscreen(size.height > 72);\n }, [size]);\n\n const InnerContainer: FC<\n PropsWithChildren & {\n bottomAddons?: ReactNode;\n textAreaLeftAddons?: ReactNode;\n textAreaRightAddons?: ReactNode;\n topAddons?: ReactNode;\n }\n > = useCallback(\n ({ children, ...r }) =>\n expand ? (\n <Flexbox className={styles.inner} gap={8}>\n <Flexbox gap={8} horizontal justify={'flex-end'}>\n {r.textAreaLeftAddons}\n {r.textAreaRightAddons}\n </Flexbox>\n {children}\n {r.topAddons}\n {r.bottomAddons}\n </Flexbox>\n ) : (\n <Flexbox align={'flex-end'} className={styles.inner} gap={8} horizontal>\n {r.textAreaLeftAddons}\n {children}\n {r.textAreaRightAddons}\n </Flexbox>\n ),\n [expand, loading],\n );\n\n const showAddons = !expand && !isFocused;\n\n return (\n <Flexbox\n className={cx(styles.container, expand && styles.expand, className)}\n gap={12}\n style={style}\n >\n {topAddons && <Flexbox style={showAddons ? {} : { display: 'none' }}>{topAddons}</Flexbox>}\n <Flexbox\n className={cx(expand && styles.expand)}\n ref={containerRef}\n style={{ position: 'relative' }}\n >\n {showFullscreen && (\n <ActionIcon\n active\n className={styles.expandButton}\n icon={expand ? ChevronDown : ChevronUp}\n id={'sssssss'}\n onClick={() => setExpand?.(!expand)}\n size={{ blockSize: 24, borderRadius: '50%', size: 14 }}\n style={expand ? { top: 6 } : {}}\n />\n )}\n <InnerContainer\n bottomAddons={bottomAddons}\n textAreaLeftAddons={textAreaLeftAddons}\n textAreaRightAddons={textAreaRightAddons}\n topAddons={topAddons}\n >\n <ChatInputAreaInner\n autoSize={expand ? false : { maxRows: 6, minRows: 1 }}\n className={styles.expandTextArea}\n loading={loading}\n onBlur={() => setIsFocused(false)}\n onFocus={() => setIsFocused(true)}\n onInput={onInput}\n onSend={onSend}\n ref={ref}\n style={{ height: 36, paddingBlock: 6 }}\n value={value}\n variant={expand ? 'borderless' : 'filled'}\n />\n </InnerContainer>\n </Flexbox>\n {bottomAddons && (\n <Flexbox style={showAddons ? {} : { display: 'none' }}>{bottomAddons}</Flexbox>\n )}\n {safeArea && !isFocused && <SafeArea position={'bottom'} />}\n </Flexbox>\n );\n },\n);\n\nChatInputArea.displayName = 'ChatInputArea';\n\nexport default ChatInputArea;\n"],"mappings":";;;;;;;;;;;;;AAuBA,MAAM,gBAAgB,MACnB,EACC,KACA,WACA,OACA,WACA,oBACA,qBACA,cACA,SAAS,OACT,WACA,QACA,SACA,SACA,OACA,eACI;CACJ,MAAM,eAAe,OAAuB,KAAK;CACjD,MAAM,EAAE,IAAI,WAAW,WAAW;CAClC,MAAM,OAAO,QAAQ,aAAa;CAClC,MAAM,CAAC,gBAAgB,qBAAqB,SAAkB,MAAM;CACpE,MAAM,CAAC,WAAW,gBAAgB,SAAkB,MAAM;AAE1D,iBAAgB;AACd,MAAI,CAAC,MAAM,OAAQ;AACnB,oBAAkB,KAAK,SAAS,GAAG;IAClC,CAAC,KAAK,CAAC;CAEV,MAAMA,iBAOF,aACD,EAAE,UAAU,GAAG,QACd,SACE,qBAACC;EAAQ,WAAW,OAAO;EAAO,KAAK;;GACrC,qBAACA;IAAQ,KAAK;IAAG;IAAW,SAAS;eAClC,EAAE,oBACF,EAAE;KACK;GACT;GACA,EAAE;GACF,EAAE;;GACK,GAEV,qBAACA;EAAQ,OAAO;EAAY,WAAW,OAAO;EAAO,KAAK;EAAG;;GAC1D,EAAE;GACF;GACA,EAAE;;GACK,EAEd,CAAC,QAAQ,QAAQ,CAClB;CAED,MAAM,aAAa,CAAC,UAAU,CAAC;AAE/B,QACE,qBAACA;EACC,WAAW,GAAG,OAAO,WAAW,UAAU,OAAO,QAAQ,UAAU;EACnE,KAAK;EACE;;GAEN,aAAa,oBAACA;IAAQ,OAAO,aAAa,EAAE,GAAG,EAAE,SAAS,QAAQ;cAAG;KAAoB;GAC1F,qBAACA;IACC,WAAW,GAAG,UAAU,OAAO,OAAO;IACtC,KAAK;IACL,OAAO,EAAE,UAAU,YAAY;eAE9B,kBACC,oBAACC;KACC;KACA,WAAW,OAAO;KAClB,MAAM,SAAS,cAAc;KAC7B,IAAI;KACJ,eAAe,YAAY,CAAC,OAAO;KACnC,MAAM;MAAE,WAAW;MAAI,cAAc;MAAO,MAAM;MAAI;KACtD,OAAO,SAAS,EAAE,KAAK,GAAG,GAAG,EAAE;MAC/B,EAEJ,oBAAC;KACe;KACM;KACC;KACV;eAEX,oBAACC;MACC,UAAU,SAAS,QAAQ;OAAE,SAAS;OAAG,SAAS;OAAG;MACrD,WAAW,OAAO;MACT;MACT,cAAc,aAAa,MAAM;MACjC,eAAe,aAAa,KAAK;MACxB;MACD;MACH;MACL,OAAO;OAAE,QAAQ;OAAI,cAAc;OAAG;MAC/B;MACP,SAAS,SAAS,eAAe;OACjC;MACa;KACT;GACT,gBACC,oBAACF;IAAQ,OAAO,aAAa,EAAE,GAAG,EAAE,SAAS,QAAQ;cAAG;KAAuB;GAEhF,YAAY,CAAC,aAAa,oBAACG,oBAAS,UAAU,WAAY;;GACnD;EAGf;AAED,cAAc,cAAc;AAE5B,4BAAe"}
1
+ {"version":3,"file":"ChatInputArea.mjs","names":["InnerContainer: FC<\n PropsWithChildren & {\n bottomAddons?: ReactNode;\n textAreaLeftAddons?: ReactNode;\n textAreaRightAddons?: ReactNode;\n topAddons?: ReactNode;\n }\n >","Flexbox","ActionIcon","ChatInputAreaInner","SafeArea"],"sources":["../../../src/mobile/ChatInputArea/ChatInputArea.tsx"],"sourcesContent":["'use client';\n\nimport { useSize } from 'ahooks';\nimport { cx } from 'antd-style';\nimport { ChevronDown, ChevronUp } from 'lucide-react';\nimport {\n FC,\n PropsWithChildren,\n ReactNode,\n memo,\n useCallback,\n useEffect,\n useRef,\n useState,\n} from 'react';\n\nimport ActionIcon from '@/ActionIcon';\nimport { Flexbox } from '@/Flex';\nimport ChatInputAreaInner from '@/chat/ChatInputArea/components/ChatInputAreaInner';\nimport SafeArea from '@/mobile/SafeArea';\n\nimport { styles } from './style';\nimport type { ChatInputAreaProps } from './type';\n\nconst ChatInputArea = memo<ChatInputAreaProps>(\n ({\n ref,\n className,\n style,\n topAddons,\n textAreaLeftAddons,\n textAreaRightAddons,\n bottomAddons,\n expand = false,\n setExpand,\n onSend,\n onInput,\n loading,\n value,\n safeArea,\n }) => {\n const containerRef = useRef<HTMLDivElement>(null);\n const size = useSize(containerRef);\n const [showFullscreen, setShowFullscreen] = useState<boolean>(false);\n const [isFocused, setIsFocused] = useState<boolean>(false);\n\n useEffect(() => {\n if (!size?.height) return;\n setShowFullscreen(size.height > 72);\n }, [size]);\n\n const InnerContainer: FC<\n PropsWithChildren & {\n bottomAddons?: ReactNode;\n textAreaLeftAddons?: ReactNode;\n textAreaRightAddons?: ReactNode;\n topAddons?: ReactNode;\n }\n > = useCallback(\n ({ children, ...r }) =>\n expand ? (\n <Flexbox className={styles.inner} gap={8}>\n <Flexbox gap={8} horizontal justify={'flex-end'}>\n {r.textAreaLeftAddons}\n {r.textAreaRightAddons}\n </Flexbox>\n {children}\n {r.topAddons}\n {r.bottomAddons}\n </Flexbox>\n ) : (\n <Flexbox align={'flex-end'} className={styles.inner} gap={8} horizontal>\n {r.textAreaLeftAddons}\n {children}\n {r.textAreaRightAddons}\n </Flexbox>\n ),\n [expand, loading],\n );\n\n const showAddons = !expand && !isFocused;\n\n return (\n <Flexbox\n className={cx(styles.container, expand && styles.expand, className)}\n gap={12}\n style={style}\n >\n {topAddons && <Flexbox style={showAddons ? {} : { display: 'none' }}>{topAddons}</Flexbox>}\n <Flexbox\n className={cx(expand && styles.expand)}\n ref={containerRef}\n style={{ position: 'relative' }}\n >\n {showFullscreen && (\n <ActionIcon\n active\n className={styles.expandButton}\n icon={expand ? ChevronDown : ChevronUp}\n id={'sssssss'}\n onClick={() => setExpand?.(!expand)}\n size={{ blockSize: 24, borderRadius: '50%', size: 14 }}\n style={expand ? { top: 6 } : {}}\n />\n )}\n <InnerContainer\n bottomAddons={bottomAddons}\n textAreaLeftAddons={textAreaLeftAddons}\n textAreaRightAddons={textAreaRightAddons}\n topAddons={topAddons}\n >\n <ChatInputAreaInner\n autoSize={expand ? false : { maxRows: 6, minRows: 1 }}\n className={styles.expandTextArea}\n loading={loading}\n onBlur={() => setIsFocused(false)}\n onFocus={() => setIsFocused(true)}\n onInput={onInput}\n onSend={onSend}\n ref={ref}\n style={{ height: 36, paddingBlock: 6 }}\n value={value}\n variant={expand ? 'borderless' : 'filled'}\n />\n </InnerContainer>\n </Flexbox>\n {bottomAddons && (\n <Flexbox style={showAddons ? {} : { display: 'none' }}>{bottomAddons}</Flexbox>\n )}\n {safeArea && !isFocused && <SafeArea position={'bottom'} />}\n </Flexbox>\n );\n },\n);\n\nChatInputArea.displayName = 'ChatInputArea';\n\nexport default ChatInputArea;\n"],"mappings":";;;;;;;;;;;;;;AAwBA,MAAM,gBAAgB,MACnB,EACC,KACA,WACA,OACA,WACA,oBACA,qBACA,cACA,SAAS,OACT,WACA,QACA,SACA,SACA,OACA,eACI;CACJ,MAAM,eAAe,OAAuB,KAAK;CACjD,MAAM,OAAO,QAAQ,aAAa;CAClC,MAAM,CAAC,gBAAgB,qBAAqB,SAAkB,MAAM;CACpE,MAAM,CAAC,WAAW,gBAAgB,SAAkB,MAAM;AAE1D,iBAAgB;AACd,MAAI,CAAC,MAAM,OAAQ;AACnB,oBAAkB,KAAK,SAAS,GAAG;IAClC,CAAC,KAAK,CAAC;CAEV,MAAMA,iBAOF,aACD,EAAE,UAAU,GAAG,QACd,SACE,qBAACC;EAAQ,WAAW,OAAO;EAAO,KAAK;;GACrC,qBAACA;IAAQ,KAAK;IAAG;IAAW,SAAS;eAClC,EAAE,oBACF,EAAE;KACK;GACT;GACA,EAAE;GACF,EAAE;;GACK,GAEV,qBAACA;EAAQ,OAAO;EAAY,WAAW,OAAO;EAAO,KAAK;EAAG;;GAC1D,EAAE;GACF;GACA,EAAE;;GACK,EAEd,CAAC,QAAQ,QAAQ,CAClB;CAED,MAAM,aAAa,CAAC,UAAU,CAAC;AAE/B,QACE,qBAACA;EACC,WAAW,GAAG,OAAO,WAAW,UAAU,OAAO,QAAQ,UAAU;EACnE,KAAK;EACE;;GAEN,aAAa,oBAACA;IAAQ,OAAO,aAAa,EAAE,GAAG,EAAE,SAAS,QAAQ;cAAG;KAAoB;GAC1F,qBAACA;IACC,WAAW,GAAG,UAAU,OAAO,OAAO;IACtC,KAAK;IACL,OAAO,EAAE,UAAU,YAAY;eAE9B,kBACC,oBAACC;KACC;KACA,WAAW,OAAO;KAClB,MAAM,SAAS,cAAc;KAC7B,IAAI;KACJ,eAAe,YAAY,CAAC,OAAO;KACnC,MAAM;MAAE,WAAW;MAAI,cAAc;MAAO,MAAM;MAAI;KACtD,OAAO,SAAS,EAAE,KAAK,GAAG,GAAG,EAAE;MAC/B,EAEJ,oBAAC;KACe;KACM;KACC;KACV;eAEX,oBAACC;MACC,UAAU,SAAS,QAAQ;OAAE,SAAS;OAAG,SAAS;OAAG;MACrD,WAAW,OAAO;MACT;MACT,cAAc,aAAa,MAAM;MACjC,eAAe,aAAa,KAAK;MACxB;MACD;MACH;MACL,OAAO;OAAE,QAAQ;OAAI,cAAc;OAAG;MAC/B;MACP,SAAS,SAAS,eAAe;OACjC;MACa;KACT;GACT,gBACC,oBAACF;IAAQ,OAAO,aAAa,EAAE,GAAG,EAAE,SAAS,QAAQ;cAAG;KAAuB;GAEhF,YAAY,CAAC,aAAa,oBAACG,oBAAS,UAAU,WAAY;;GACnD;EAGf;AAED,cAAc,cAAc;AAE5B,4BAAe"}
@@ -1,13 +1,13 @@
1
- import { createStyles } from "antd-style";
1
+ import { createStaticStyles } from "antd-style";
2
2
 
3
3
  //#region src/mobile/ChatInputArea/style.ts
4
- const useStyles = createStyles(({ css: css$1, token }) => {
4
+ const styles = createStaticStyles(({ css: css$1, cssVar: cssVar$1 }) => {
5
5
  return {
6
6
  container: css$1`
7
7
  flex: none;
8
8
  padding-block: 12px;
9
- background: ${token.colorFillQuaternary};
10
- border-block-start: 1px solid ${token.colorFillTertiary};
9
+ border-block-start: 1px solid ${cssVar$1.colorFillTertiary};
10
+ background: ${cssVar$1.colorFillQuaternary};
11
11
  `,
12
12
  expand: css$1`
13
13
  position: absolute;
@@ -30,5 +30,5 @@ const useStyles = createStyles(({ css: css$1, token }) => {
30
30
  });
31
31
 
32
32
  //#endregion
33
- export { useStyles };
33
+ export { styles };
34
34
  //# sourceMappingURL=style.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"style.mjs","names":[],"sources":["../../../src/mobile/ChatInputArea/style.ts"],"sourcesContent":["import { createStyles } from 'antd-style';\n\nexport const useStyles = createStyles(({ css, token }) => {\n return {\n container: css`\n flex: none;\n padding-block: 12px;\n background: ${token.colorFillQuaternary};\n border-block-start: 1px solid ${token.colorFillTertiary};\n `,\n expand: css`\n position: absolute;\n width: 100%;\n height: 100%;\n `,\n expandButton: css`\n position: absolute;\n inset-inline-end: 14px;\n `,\n expandTextArea: css`\n flex: 1;\n `,\n inner: css`\n height: inherit;\n padding-block: 0;\n padding-inline: 8px;\n `,\n };\n});\n"],"mappings":";;;AAEA,MAAa,YAAY,cAAc,EAAE,YAAK,YAAY;AACxD,QAAO;EACL,WAAW,KAAG;;;oBAGE,MAAM,oBAAoB;sCACR,MAAM,kBAAkB;;EAE1D,QAAQ,KAAG;;;;;EAKX,cAAc,KAAG;;;;EAIjB,gBAAgB,KAAG;;;EAGnB,OAAO,KAAG;;;;;EAKX;EACD"}
1
+ {"version":3,"file":"style.mjs","names":["cssVar"],"sources":["../../../src/mobile/ChatInputArea/style.ts"],"sourcesContent":["import { createStaticStyles } from 'antd-style';\n\nexport const styles = createStaticStyles(({ css, cssVar }) => {\n return {\n container: css`\n flex: none;\n padding-block: 12px;\n border-block-start: 1px solid ${cssVar.colorFillTertiary};\n background: ${cssVar.colorFillQuaternary};\n `,\n expand: css`\n position: absolute;\n width: 100%;\n height: 100%;\n `,\n expandButton: css`\n position: absolute;\n inset-inline-end: 14px;\n `,\n expandTextArea: css`\n flex: 1;\n `,\n inner: css`\n height: inherit;\n padding-block: 0;\n padding-inline: 8px;\n `,\n };\n});\n"],"mappings":";;;AAEA,MAAa,SAAS,oBAAoB,EAAE,YAAK,uBAAa;AAC5D,QAAO;EACL,WAAW,KAAG;;;sCAGoBA,SAAO,kBAAkB;oBAC3CA,SAAO,oBAAoB;;EAE3C,QAAQ,KAAG;;;;;EAKX,cAAc,KAAG;;;;EAIjB,gBAAgB,KAAG;;;EAGnB,OAAO,KAAG;;;;;EAKX;EACD"}
@@ -1,11 +1,11 @@
1
1
  'use client';
2
2
 
3
- import { useStyles } from "./style.mjs";
3
+ import { styles } from "./style.mjs";
4
4
  import { jsx } from "react/jsx-runtime";
5
+ import { cx } from "antd-style";
5
6
 
6
7
  //#region src/mobile/SafeArea/SafeArea.tsx
7
8
  const SafeArea = ({ position, className, ...rest }) => {
8
- const { styles, cx } = useStyles();
9
9
  return /* @__PURE__ */ jsx("div", {
10
10
  className: cx(styles.container, styles[position], className),
11
11
  ...rest
@@ -1 +1 @@
1
- {"version":3,"file":"SafeArea.mjs","names":["SafeArea: FC<SafeAreaProps>"],"sources":["../../../src/mobile/SafeArea/SafeArea.tsx"],"sourcesContent":["'use client';\n\nimport { type FC } from 'react';\n\nimport { useStyles } from './style';\nimport { SafeAreaProps } from './type';\n\nconst SafeArea: FC<SafeAreaProps> = ({ position, className, ...rest }) => {\n const { styles, cx } = useStyles();\n return <div className={cx(styles.container, styles[position], className)} {...rest} />;\n};\n\nSafeArea.displayName = 'SafeArea';\n\nexport default SafeArea;\n"],"mappings":";;;;;;AAOA,MAAMA,YAA+B,EAAE,UAAU,WAAW,GAAG,WAAW;CACxE,MAAM,EAAE,QAAQ,OAAO,WAAW;AAClC,QAAO,oBAAC;EAAI,WAAW,GAAG,OAAO,WAAW,OAAO,WAAW,UAAU;EAAE,GAAI;GAAQ;;AAGxF,SAAS,cAAc;AAEvB,uBAAe"}
1
+ {"version":3,"file":"SafeArea.mjs","names":["SafeArea: FC<SafeAreaProps>"],"sources":["../../../src/mobile/SafeArea/SafeArea.tsx"],"sourcesContent":["'use client';\n\nimport { cx } from 'antd-style';\nimport { type FC } from 'react';\n\nimport { styles } from './style';\nimport { SafeAreaProps } from './type';\n\nconst SafeArea: FC<SafeAreaProps> = ({ position, className, ...rest }) => {\n return <div className={cx(styles.container, styles[position], className)} {...rest} />;\n};\n\nSafeArea.displayName = 'SafeArea';\n\nexport default SafeArea;\n"],"mappings":";;;;;;;AAQA,MAAMA,YAA+B,EAAE,UAAU,WAAW,GAAG,WAAW;AACxE,QAAO,oBAAC;EAAI,WAAW,GAAG,OAAO,WAAW,OAAO,WAAW,UAAU;EAAE,GAAI;GAAQ;;AAGxF,SAAS,cAAc;AAEvB,uBAAe"}
@@ -1,7 +1,7 @@
1
- import { createStyles } from "antd-style";
1
+ import { createStaticStyles } from "antd-style";
2
2
 
3
3
  //#region src/mobile/SafeArea/style.ts
4
- const useStyles = createStyles(({ css: css$1 }) => {
4
+ const styles = createStaticStyles(({ css: css$1 }) => {
5
5
  return {
6
6
  bottom: css$1`
7
7
  padding-block-end: env(safe-area-inset-bottom);
@@ -18,5 +18,5 @@ const useStyles = createStyles(({ css: css$1 }) => {
18
18
  });
19
19
 
20
20
  //#endregion
21
- export { useStyles };
21
+ export { styles };
22
22
  //# sourceMappingURL=style.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"style.mjs","names":[],"sources":["../../../src/mobile/SafeArea/style.ts"],"sourcesContent":["import { createStyles } from 'antd-style';\n\nexport const useStyles = createStyles(({ css }) => {\n return {\n bottom: css`\n padding-block-end: env(safe-area-inset-bottom);\n `,\n container: css`\n overflow: hidden;\n flex: none;\n width: 100vw;\n `,\n top: css`\n padding-block-start: env(safe-area-inset-top);\n `,\n };\n});\n"],"mappings":";;;AAEA,MAAa,YAAY,cAAc,EAAE,iBAAU;AACjD,QAAO;EACL,QAAQ,KAAG;;;EAGX,WAAW,KAAG;;;;;EAKd,KAAK,KAAG;;;EAGT;EACD"}
1
+ {"version":3,"file":"style.mjs","names":[],"sources":["../../../src/mobile/SafeArea/style.ts"],"sourcesContent":["import { createStaticStyles } from 'antd-style';\n\nexport const styles = createStaticStyles(({ css }) => {\n return {\n bottom: css`\n padding-block-end: env(safe-area-inset-bottom);\n `,\n container: css`\n overflow: hidden;\n flex: none;\n width: 100vw;\n `,\n top: css`\n padding-block-start: env(safe-area-inset-top);\n `,\n };\n});\n"],"mappings":";;;AAEA,MAAa,SAAS,oBAAoB,EAAE,iBAAU;AACpD,QAAO;EACL,QAAQ,KAAG;;;EAGX,WAAW,KAAG;;;;;EAKd,KAAK,KAAG;;;EAGT;EACD"}
@@ -2,9 +2,10 @@
2
2
 
3
3
  import FlexBasic_default from "../../Flex/FlexBasic.mjs";
4
4
  import SafeArea_default from "../SafeArea/SafeArea.mjs";
5
- import { useStyles } from "./style.mjs";
5
+ import { styles } from "./style.mjs";
6
6
  import { memo } from "react";
7
7
  import { jsx, jsxs } from "react/jsx-runtime";
8
+ import { cx } from "antd-style";
8
9
  import useMergeState from "use-merge-value";
9
10
 
10
11
  //#region src/mobile/TabBar/TabBar.tsx
@@ -14,7 +15,6 @@ const TabBar = memo(({ ref, className, safeArea, items, activeKey, defaultActive
14
15
  onChange,
15
16
  value: activeKey
16
17
  });
17
- const { styles, cx } = useStyles();
18
18
  return /* @__PURE__ */ jsxs(FlexBasic_default, {
19
19
  as: "footer",
20
20
  className: cx(styles.container, className),
@@ -1 +1 @@
1
- {"version":3,"file":"TabBar.mjs","names":["Flexbox","SafeArea"],"sources":["../../../src/mobile/TabBar/TabBar.tsx"],"sourcesContent":["'use client';\n\nimport { memo } from 'react';\nimport useMergeState from 'use-merge-value';\n\nimport { Flexbox } from '@/Flex';\nimport SafeArea from '@/mobile/SafeArea';\n\nimport { useStyles } from './style';\nimport type { TabBarProps } from './type';\n\nconst TabBar = memo<TabBarProps>(\n ({ ref, className, safeArea, items, activeKey, defaultActiveKey, onChange, ...rest }) => {\n const [currentActive, setCurrentActive] = useMergeState<string>(\n defaultActiveKey || items[0].key,\n {\n defaultValue: defaultActiveKey,\n onChange,\n value: activeKey,\n },\n );\n const { styles, cx } = useStyles();\n\n return (\n <Flexbox as={'footer'} className={cx(styles.container, className)} ref={ref} {...rest}>\n <Flexbox\n align={'center'}\n className={cx(styles.inner, className)}\n horizontal\n justify={'space-around'}\n >\n {items.map((item) => {\n const active = item.key === currentActive;\n return (\n <Flexbox\n align={'center'}\n className={cx(styles.tab, active && styles.active)}\n gap={4}\n justify={'center'}\n key={item.key}\n onClick={() => {\n setCurrentActive(item.key);\n item?.onClick?.();\n }}\n >\n <Flexbox align={'center'} className={styles.icon} justify={'center'}>\n {typeof item.icon === 'function' ? item.icon(active) : item.icon}\n </Flexbox>\n <div className={styles.title}>\n {typeof item.title === 'function' ? item.title(active) : item.title}\n </div>\n </Flexbox>\n );\n })}\n </Flexbox>\n {safeArea && <SafeArea position={'bottom'} />}\n </Flexbox>\n );\n },\n);\n\nTabBar.displayName = 'MobileTabBar';\n\nexport default TabBar;\n"],"mappings":";;;;;;;;;;AAWA,MAAM,SAAS,MACZ,EAAE,KAAK,WAAW,UAAU,OAAO,WAAW,kBAAkB,UAAU,GAAG,WAAW;CACvF,MAAM,CAAC,eAAe,oBAAoB,cACxC,oBAAoB,MAAM,GAAG,KAC7B;EACE,cAAc;EACd;EACA,OAAO;EACR,CACF;CACD,MAAM,EAAE,QAAQ,OAAO,WAAW;AAElC,QACE,qBAACA;EAAQ,IAAI;EAAU,WAAW,GAAG,OAAO,WAAW,UAAU;EAAO;EAAK,GAAI;aAC/E,oBAACA;GACC,OAAO;GACP,WAAW,GAAG,OAAO,OAAO,UAAU;GACtC;GACA,SAAS;aAER,MAAM,KAAK,SAAS;IACnB,MAAM,SAAS,KAAK,QAAQ;AAC5B,WACE,qBAACA;KACC,OAAO;KACP,WAAW,GAAG,OAAO,KAAK,UAAU,OAAO,OAAO;KAClD,KAAK;KACL,SAAS;KAET,eAAe;AACb,uBAAiB,KAAK,IAAI;AAC1B,YAAM,WAAW;;gBAGnB,oBAACA;MAAQ,OAAO;MAAU,WAAW,OAAO;MAAM,SAAS;gBACxD,OAAO,KAAK,SAAS,aAAa,KAAK,KAAK,OAAO,GAAG,KAAK;OACpD,EACV,oBAAC;MAAI,WAAW,OAAO;gBACpB,OAAO,KAAK,UAAU,aAAa,KAAK,MAAM,OAAO,GAAG,KAAK;OAC1D;OAXD,KAAK,IAYF;KAEZ;IACM,EACT,YAAY,oBAACC,oBAAS,UAAU,WAAY;GACrC;EAGf;AAED,OAAO,cAAc;AAErB,qBAAe"}
1
+ {"version":3,"file":"TabBar.mjs","names":["Flexbox","SafeArea"],"sources":["../../../src/mobile/TabBar/TabBar.tsx"],"sourcesContent":["'use client';\n\nimport { cx } from 'antd-style';\nimport { memo } from 'react';\nimport useMergeState from 'use-merge-value';\n\nimport { Flexbox } from '@/Flex';\nimport SafeArea from '@/mobile/SafeArea';\n\nimport { styles } from './style';\nimport type { TabBarProps } from './type';\n\nconst TabBar = memo<TabBarProps>(\n ({ ref, className, safeArea, items, activeKey, defaultActiveKey, onChange, ...rest }) => {\n const [currentActive, setCurrentActive] = useMergeState<string>(\n defaultActiveKey || items[0].key,\n {\n defaultValue: defaultActiveKey,\n onChange,\n value: activeKey,\n },\n );\n\n return (\n <Flexbox as={'footer'} className={cx(styles.container, className)} ref={ref} {...rest}>\n <Flexbox\n align={'center'}\n className={cx(styles.inner, className)}\n horizontal\n justify={'space-around'}\n >\n {items.map((item) => {\n const active = item.key === currentActive;\n return (\n <Flexbox\n align={'center'}\n className={cx(styles.tab, active && styles.active)}\n gap={4}\n justify={'center'}\n key={item.key}\n onClick={() => {\n setCurrentActive(item.key);\n item?.onClick?.();\n }}\n >\n <Flexbox align={'center'} className={styles.icon} justify={'center'}>\n {typeof item.icon === 'function' ? item.icon(active) : item.icon}\n </Flexbox>\n <div className={styles.title}>\n {typeof item.title === 'function' ? item.title(active) : item.title}\n </div>\n </Flexbox>\n );\n })}\n </Flexbox>\n {safeArea && <SafeArea position={'bottom'} />}\n </Flexbox>\n );\n },\n);\n\nTabBar.displayName = 'MobileTabBar';\n\nexport default TabBar;\n"],"mappings":";;;;;;;;;;;AAYA,MAAM,SAAS,MACZ,EAAE,KAAK,WAAW,UAAU,OAAO,WAAW,kBAAkB,UAAU,GAAG,WAAW;CACvF,MAAM,CAAC,eAAe,oBAAoB,cACxC,oBAAoB,MAAM,GAAG,KAC7B;EACE,cAAc;EACd;EACA,OAAO;EACR,CACF;AAED,QACE,qBAACA;EAAQ,IAAI;EAAU,WAAW,GAAG,OAAO,WAAW,UAAU;EAAO;EAAK,GAAI;aAC/E,oBAACA;GACC,OAAO;GACP,WAAW,GAAG,OAAO,OAAO,UAAU;GACtC;GACA,SAAS;aAER,MAAM,KAAK,SAAS;IACnB,MAAM,SAAS,KAAK,QAAQ;AAC5B,WACE,qBAACA;KACC,OAAO;KACP,WAAW,GAAG,OAAO,KAAK,UAAU,OAAO,OAAO;KAClD,KAAK;KACL,SAAS;KAET,eAAe;AACb,uBAAiB,KAAK,IAAI;AAC1B,YAAM,WAAW;;gBAGnB,oBAACA;MAAQ,OAAO;MAAU,WAAW,OAAO;MAAM,SAAS;gBACxD,OAAO,KAAK,SAAS,aAAa,KAAK,KAAK,OAAO,GAAG,KAAK;OACpD,EACV,oBAAC;MAAI,WAAW,OAAO;gBACpB,OAAO,KAAK,UAAU,aAAa,KAAK,MAAM,OAAO,GAAG,KAAK;OAC1D;OAXD,KAAK,IAYF;KAEZ;IACM,EACT,YAAY,oBAACC,oBAAS,UAAU,WAAY;GACrC;EAGf;AAED,OAAO,cAAc;AAErB,qBAAe"}
@@ -1,10 +1,10 @@
1
- import { createStyles } from "antd-style";
1
+ import { createStaticStyles } from "antd-style";
2
2
 
3
3
  //#region src/mobile/TabBar/style.ts
4
- const useStyles = createStyles(({ css: css$1, token }) => {
4
+ const styles = createStaticStyles(({ css: css$1, cssVar: cssVar$1 }) => {
5
5
  return {
6
6
  active: css$1`
7
- color: ${token.colorPrimary};
7
+ color: ${cssVar$1.colorPrimary};
8
8
  `,
9
9
  container: css$1`
10
10
  user-select: none;
@@ -13,9 +13,9 @@ const useStyles = createStyles(({ css: css$1, token }) => {
13
13
  flex: none;
14
14
 
15
15
  width: 100vw;
16
+ border-block-start: 1px solid ${cssVar$1.colorFillTertiary};
16
17
 
17
- background: ${token.colorBgLayout};
18
- border-block-start: 1px solid ${token.colorFillTertiary};
18
+ background: ${cssVar$1.colorBgLayout};
19
19
  `,
20
20
  icon: css$1`
21
21
  width: 24px;
@@ -31,7 +31,7 @@ const useStyles = createStyles(({ css: css$1, token }) => {
31
31
  cursor: pointer;
32
32
  width: 48px;
33
33
  height: 48px;
34
- color: ${token.colorTextDescription};
34
+ color: ${cssVar$1.colorTextDescription};
35
35
  `,
36
36
  title: css$1`
37
37
  overflow: hidden;
@@ -49,5 +49,5 @@ const useStyles = createStyles(({ css: css$1, token }) => {
49
49
  });
50
50
 
51
51
  //#endregion
52
- export { useStyles };
52
+ export { styles };
53
53
  //# sourceMappingURL=style.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"style.mjs","names":[],"sources":["../../../src/mobile/TabBar/style.ts"],"sourcesContent":["import { createStyles } from 'antd-style';\n\nexport const useStyles = createStyles(({ css, token }) => {\n return {\n active: css`\n color: ${token.colorPrimary};\n `,\n container: css`\n user-select: none;\n\n overflow: hidden;\n flex: none;\n\n width: 100vw;\n\n background: ${token.colorBgLayout};\n border-block-start: 1px solid ${token.colorFillTertiary};\n `,\n\n icon: css`\n width: 24px;\n height: 24px;\n font-size: 24px;\n `,\n inner: css`\n position: relative;\n width: 100%;\n height: 48px;\n `,\n tab: css`\n cursor: pointer;\n width: 48px;\n height: 48px;\n color: ${token.colorTextDescription};\n `,\n title: css`\n overflow: hidden;\n\n width: 100%;\n margin-block-start: -0.125em;\n\n font-size: 12px;\n line-height: 1.125em;\n text-align: center;\n text-overflow: ellipsis;\n white-space: nowrap;\n `,\n };\n});\n"],"mappings":";;;AAEA,MAAa,YAAY,cAAc,EAAE,YAAK,YAAY;AACxD,QAAO;EACL,QAAQ,KAAG;eACA,MAAM,aAAa;;EAE9B,WAAW,KAAG;;;;;;;;oBAQE,MAAM,cAAc;sCACF,MAAM,kBAAkB;;EAG1D,MAAM,KAAG;;;;;EAKT,OAAO,KAAG;;;;;EAKV,KAAK,KAAG;;;;eAIG,MAAM,qBAAqB;;EAEtC,OAAO,KAAG;;;;;;;;;;;;EAYX;EACD"}
1
+ {"version":3,"file":"style.mjs","names":["cssVar"],"sources":["../../../src/mobile/TabBar/style.ts"],"sourcesContent":["import { createStaticStyles } from 'antd-style';\n\nexport const styles = createStaticStyles(({ css, cssVar }) => {\n return {\n active: css`\n color: ${cssVar.colorPrimary};\n `,\n container: css`\n user-select: none;\n\n overflow: hidden;\n flex: none;\n\n width: 100vw;\n border-block-start: 1px solid ${cssVar.colorFillTertiary};\n\n background: ${cssVar.colorBgLayout};\n `,\n\n icon: css`\n width: 24px;\n height: 24px;\n font-size: 24px;\n `,\n inner: css`\n position: relative;\n width: 100%;\n height: 48px;\n `,\n tab: css`\n cursor: pointer;\n width: 48px;\n height: 48px;\n color: ${cssVar.colorTextDescription};\n `,\n title: css`\n overflow: hidden;\n\n width: 100%;\n margin-block-start: -0.125em;\n\n font-size: 12px;\n line-height: 1.125em;\n text-align: center;\n text-overflow: ellipsis;\n white-space: nowrap;\n `,\n };\n});\n"],"mappings":";;;AAEA,MAAa,SAAS,oBAAoB,EAAE,YAAK,uBAAa;AAC5D,QAAO;EACL,QAAQ,KAAG;eACAA,SAAO,aAAa;;EAE/B,WAAW,KAAG;;;;;;;sCAOoBA,SAAO,kBAAkB;;oBAE3CA,SAAO,cAAc;;EAGrC,MAAM,KAAG;;;;;EAKT,OAAO,KAAG;;;;;EAKV,KAAK,KAAG;;;;eAIGA,SAAO,qBAAqB;;EAEvC,OAAO,KAAG;;;;;;;;;;;;EAYX;EACD"}
@@ -1,6 +1,6 @@
1
1
  import { FlexboxProps } from "../../Flex/type.mjs";
2
2
  import "../../Flex/index.mjs";
3
- import * as react0 from "react";
3
+ import * as react19 from "react";
4
4
  import { Ref } from "react";
5
5
  import { useControls, useCreateStore } from "leva";
6
6
 
@@ -10,7 +10,7 @@ interface StoryBookProps extends FlexboxProps {
10
10
  noPadding?: boolean;
11
11
  ref?: Ref<HTMLDivElement>;
12
12
  }
13
- declare const StoryBook: react0.NamedExoticComponent<StoryBookProps>;
13
+ declare const StoryBook: react19.NamedExoticComponent<StoryBookProps>;
14
14
  //#endregion
15
15
  export { StoryBook, StoryBookProps, useControls, useCreateStore };
16
16
  //# sourceMappingURL=index.d.mts.map
@@ -3,24 +3,23 @@
3
3
  import FlexBasic_default from "../../Flex/FlexBasic.mjs";
4
4
  import Center_default from "../../Flex/Center.mjs";
5
5
  import DraggablePanel_default from "../../DraggablePanel/index.mjs";
6
- import { useStyles } from "./style.mjs";
6
+ import { styles } from "./style.mjs";
7
7
  import { memo } from "react";
8
8
  import { jsx, jsxs } from "react/jsx-runtime";
9
- import { useResponsive } from "antd-style";
9
+ import { cx, useResponsive } from "antd-style";
10
10
  import { LevaPanel, useControls, useCreateStore } from "leva";
11
11
 
12
12
  //#region src/storybook/StoryBook/index.tsx
13
13
  const StoryBook = memo(({ ref, levaStore, noPadding, className, children, ...rest }) => {
14
14
  const { mobile } = useResponsive();
15
- const { styles, cx: cx$1 } = useStyles(Boolean(noPadding));
16
15
  return /* @__PURE__ */ jsxs(FlexBasic_default, {
17
16
  align: "stretch",
18
- className: cx$1(styles.editor, className),
17
+ className: cx(styles.editor, className),
19
18
  horizontal: !mobile,
20
19
  justify: "stretch",
21
20
  ref,
22
21
  children: [/* @__PURE__ */ jsx(Center_default, {
23
- className: styles.left,
22
+ className: cx(noPadding ? styles.left : styles.leftWithPadding),
24
23
  flex: 1,
25
24
  ...rest,
26
25
  children
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","names":["Flexbox","cx","Center","DraggablePanel"],"sources":["../../../src/storybook/StoryBook/index.tsx"],"sourcesContent":["'use client';\n\nimport { useResponsive } from 'antd-style';\nimport { LevaPanel } from 'leva';\nimport { Ref, memo } from 'react';\n\nimport DraggablePanel from '@/DraggablePanel';\nimport { Center, Flexbox, FlexboxProps } from '@/Flex';\n\nimport { useStyles } from './style';\n\nexport interface StoryBookProps extends FlexboxProps {\n levaStore: any;\n noPadding?: boolean;\n ref?: Ref<HTMLDivElement>;\n}\n\nexport const StoryBook = memo<StoryBookProps>(\n ({ ref, levaStore, noPadding, className, children, ...rest }) => {\n const { mobile } = useResponsive();\n const { styles, cx } = useStyles(Boolean(noPadding));\n\n return (\n <Flexbox\n align={'stretch'}\n className={cx(styles.editor, className)}\n horizontal={!mobile}\n justify={'stretch'}\n ref={ref}\n >\n <Center className={styles.left} flex={1} {...rest}>\n {children}\n </Center>\n <DraggablePanel\n className={styles.right}\n minWidth={280}\n placement={mobile ? 'bottom' : 'right'}\n >\n <div className={styles.leva}>\n <LevaPanel fill flat store={levaStore} titleBar={false} />{' '}\n </div>\n </DraggablePanel>\n </Flexbox>\n );\n },\n);\n\nStoryBook.displayName = 'StoryBook';\n\nexport default StoryBook;\n\nexport { useControls, useCreateStore } from 'leva';\n"],"mappings":";;;;;;;;;;;;AAiBA,MAAa,YAAY,MACtB,EAAE,KAAK,WAAW,WAAW,WAAW,UAAU,GAAG,WAAW;CAC/D,MAAM,EAAE,WAAW,eAAe;CAClC,MAAM,EAAE,QAAQ,aAAO,UAAU,QAAQ,UAAU,CAAC;AAEpD,QACE,qBAACA;EACC,OAAO;EACP,WAAWC,KAAG,OAAO,QAAQ,UAAU;EACvC,YAAY,CAAC;EACb,SAAS;EACJ;aAEL,oBAACC;GAAO,WAAW,OAAO;GAAM,MAAM;GAAG,GAAI;GAC1C;IACM,EACT,oBAACC;GACC,WAAW,OAAO;GAClB,UAAU;GACV,WAAW,SAAS,WAAW;aAE/B,qBAAC;IAAI,WAAW,OAAO;eACrB,oBAAC;KAAU;KAAK;KAAK,OAAO;KAAW,UAAU;MAAS,EAAC;KACvD;IACS;GACT;EAGf;AAED,UAAU,cAAc;AAExB,wBAAe"}
1
+ {"version":3,"file":"index.mjs","names":["Flexbox","Center","DraggablePanel"],"sources":["../../../src/storybook/StoryBook/index.tsx"],"sourcesContent":["'use client';\n\nimport { cx, useResponsive } from 'antd-style';\nimport { LevaPanel } from 'leva';\nimport { Ref, memo } from 'react';\n\nimport DraggablePanel from '@/DraggablePanel';\nimport { Center, Flexbox, FlexboxProps } from '@/Flex';\n\nimport { styles } from './style';\n\nexport interface StoryBookProps extends FlexboxProps {\n levaStore: any;\n noPadding?: boolean;\n ref?: Ref<HTMLDivElement>;\n}\n\nexport const StoryBook = memo<StoryBookProps>(\n ({ ref, levaStore, noPadding, className, children, ...rest }) => {\n const { mobile } = useResponsive();\n\n return (\n <Flexbox\n align={'stretch'}\n className={cx(styles.editor, className)}\n horizontal={!mobile}\n justify={'stretch'}\n ref={ref}\n >\n <Center className={cx(noPadding ? styles.left : styles.leftWithPadding)} flex={1} {...rest}>\n {children}\n </Center>\n <DraggablePanel\n className={styles.right}\n minWidth={280}\n placement={mobile ? 'bottom' : 'right'}\n >\n <div className={styles.leva}>\n <LevaPanel fill flat store={levaStore} titleBar={false} />{' '}\n </div>\n </DraggablePanel>\n </Flexbox>\n );\n },\n);\n\nStoryBook.displayName = 'StoryBook';\n\nexport default StoryBook;\n\nexport { useControls, useCreateStore } from 'leva';\n"],"mappings":";;;;;;;;;;;;AAiBA,MAAa,YAAY,MACtB,EAAE,KAAK,WAAW,WAAW,WAAW,UAAU,GAAG,WAAW;CAC/D,MAAM,EAAE,WAAW,eAAe;AAElC,QACE,qBAACA;EACC,OAAO;EACP,WAAW,GAAG,OAAO,QAAQ,UAAU;EACvC,YAAY,CAAC;EACb,SAAS;EACJ;aAEL,oBAACC;GAAO,WAAW,GAAG,YAAY,OAAO,OAAO,OAAO,gBAAgB;GAAE,MAAM;GAAG,GAAI;GACnF;IACM,EACT,oBAACC;GACC,WAAW,OAAO;GAClB,UAAU;GACV,WAAW,SAAS,WAAW;aAE/B,qBAAC;IAAI,WAAW,OAAO;eACrB,oBAAC;KAAU;KAAK;KAAK,OAAO;KAAW,UAAU;MAAS,EAAC;KACvD;IACS;GACT;EAGf;AAED,UAAU,cAAc;AAExB,wBAAe"}
@@ -1,34 +1,37 @@
1
- import { createStyles } from "antd-style";
1
+ import { createStaticStyles } from "antd-style";
2
2
 
3
3
  //#region src/storybook/StoryBook/style.ts
4
- const useStyles = createStyles(({ cx: cx$1, css: css$1, token, responsive }, noPadding) => {
4
+ const styles = createStaticStyles(({ css: css$1, cssVar: cssVar$1, responsive: responsive$1 }) => {
5
5
  return {
6
6
  editor: css$1`
7
7
  width: inherit;
8
8
  min-height: inherit;
9
9
  `,
10
- left: cx$1(css$1`
11
- position: relative;
12
- overflow: auto;
13
- `, !noPadding && css$1`
14
- padding-block: 40px;
15
- padding-inline: 24px;
16
- `),
10
+ left: css$1`
11
+ position: relative;
12
+ overflow: auto;
13
+ `,
14
+ leftWithPadding: css$1`
15
+ position: relative;
16
+ overflow: auto;
17
+ padding-block: 40px;
18
+ padding-inline: 24px;
19
+ `,
17
20
  leva: css$1`
18
21
  --leva-sizes-controlWidth: 66%;
19
- --leva-colors-elevation1: ${token.colorFillSecondary};
22
+ --leva-colors-elevation1: ${cssVar$1.colorFillSecondary};
20
23
  --leva-colors-elevation2: transparent;
21
- --leva-colors-elevation3: ${token.colorFillSecondary};
22
- --leva-colors-accent1: ${token.colorPrimary};
23
- --leva-colors-accent2: ${token.colorPrimaryHover};
24
- --leva-colors-accent3: ${token.colorPrimaryActive};
25
- --leva-colors-highlight1: ${token.colorTextTertiary};
26
- --leva-colors-highlight2: ${token.colorTextSecondary};
27
- --leva-colors-highlight3: ${token.colorText};
28
- --leva-colors-vivid1: ${token.colorWarning};
24
+ --leva-colors-elevation3: ${cssVar$1.colorFillSecondary};
25
+ --leva-colors-accent1: ${cssVar$1.colorPrimary};
26
+ --leva-colors-accent2: ${cssVar$1.colorPrimaryHover};
27
+ --leva-colors-accent3: ${cssVar$1.colorPrimaryActive};
28
+ --leva-colors-highlight1: ${cssVar$1.colorTextTertiary};
29
+ --leva-colors-highlight2: ${cssVar$1.colorTextSecondary};
30
+ --leva-colors-highlight3: ${cssVar$1.colorText};
31
+ --leva-colors-vivid1: ${cssVar$1.colorWarning};
29
32
  --leva-shadows-level1: unset;
30
33
  --leva-shadows-level2: unset;
31
- --leva-fonts-mono: ${token.fontFamilyCode};
34
+ --leva-fonts-mono: ${cssVar$1.fontFamilyCode};
32
35
 
33
36
  overflow: auto;
34
37
 
@@ -46,17 +49,17 @@ const useStyles = createStyles(({ cx: cx$1, css: css$1, token, responsive }, noP
46
49
  }
47
50
 
48
51
  input:checked + label > svg {
49
- stroke: ${token.colorBgLayout};
52
+ stroke: ${cssVar$1.colorBgLayout};
50
53
  }
51
54
 
52
55
  button {
53
- --leva-colors-accent2: ${token.colorFillSecondary};
56
+ --leva-colors-accent2: ${cssVar$1.colorFillSecondary};
54
57
  }
55
58
  `,
56
59
  right: css$1`
57
- background: ${token.colorBgLayout};
60
+ background: ${cssVar$1.colorBgLayout};
58
61
 
59
- ${responsive.mobile} {
62
+ ${responsive$1.sm} {
60
63
  .draggable-panel-fixed {
61
64
  width: 100% !important;
62
65
  }
@@ -66,5 +69,5 @@ const useStyles = createStyles(({ cx: cx$1, css: css$1, token, responsive }, noP
66
69
  });
67
70
 
68
71
  //#endregion
69
- export { useStyles };
72
+ export { styles };
70
73
  //# sourceMappingURL=style.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"style.mjs","names":["cx"],"sources":["../../../src/storybook/StoryBook/style.ts"],"sourcesContent":["import { createStyles } from 'antd-style';\n\nexport const useStyles = createStyles(({ cx, css, token, responsive }, noPadding: boolean) => {\n return {\n editor: css`\n width: inherit;\n min-height: inherit;\n `,\n left: cx(\n css`\n position: relative;\n overflow: auto;\n `,\n !noPadding &&\n css`\n padding-block: 40px;\n padding-inline: 24px;\n `,\n ),\n leva: css`\n --leva-sizes-controlWidth: 66%;\n --leva-colors-elevation1: ${token.colorFillSecondary};\n --leva-colors-elevation2: transparent;\n --leva-colors-elevation3: ${token.colorFillSecondary};\n --leva-colors-accent1: ${token.colorPrimary};\n --leva-colors-accent2: ${token.colorPrimaryHover};\n --leva-colors-accent3: ${token.colorPrimaryActive};\n --leva-colors-highlight1: ${token.colorTextTertiary};\n --leva-colors-highlight2: ${token.colorTextSecondary};\n --leva-colors-highlight3: ${token.colorText};\n --leva-colors-vivid1: ${token.colorWarning};\n --leva-shadows-level1: unset;\n --leva-shadows-level2: unset;\n --leva-fonts-mono: ${token.fontFamilyCode};\n\n overflow: auto;\n\n width: 100%;\n height: 100%;\n padding-block: 6px;\n padding-inline: 0;\n\n > div {\n background: transparent;\n\n > div {\n background: transparent;\n }\n }\n\n input:checked + label > svg {\n stroke: ${token.colorBgLayout};\n }\n\n button {\n --leva-colors-accent2: ${token.colorFillSecondary};\n }\n `,\n right: css`\n background: ${token.colorBgLayout};\n\n ${responsive.mobile} {\n .draggable-panel-fixed {\n width: 100% !important;\n }\n }\n `,\n };\n});\n"],"mappings":";;;AAEA,MAAa,YAAY,cAAc,EAAE,UAAI,YAAK,OAAO,cAAc,cAAuB;AAC5F,QAAO;EACL,QAAQ,KAAG;;;;EAIX,MAAMA,KACJ,KAAG;;;SAIH,CAAC,aACC,KAAG;;;UAIN;EACD,MAAM,KAAG;;kCAEqB,MAAM,mBAAmB;;kCAEzB,MAAM,mBAAmB;+BAC5B,MAAM,aAAa;+BACnB,MAAM,kBAAkB;+BACxB,MAAM,mBAAmB;kCACtB,MAAM,kBAAkB;kCACxB,MAAM,mBAAmB;kCACzB,MAAM,UAAU;8BACpB,MAAM,aAAa;;;2BAGtB,MAAM,eAAe;;;;;;;;;;;;;;;;;;kBAkB9B,MAAM,cAAc;;;;iCAIL,MAAM,mBAAmB;;;EAGtD,OAAO,KAAG;oBACM,MAAM,cAAc;;QAEhC,WAAW,OAAO;;;;;;EAMvB;EACD"}
1
+ {"version":3,"file":"style.mjs","names":["cssVar","responsive"],"sources":["../../../src/storybook/StoryBook/style.ts"],"sourcesContent":["import { createStaticStyles } from 'antd-style';\n\nexport const styles = createStaticStyles(({ css, cssVar, responsive }) => {\n return {\n editor: css`\n width: inherit;\n min-height: inherit;\n `,\n left: css`\n position: relative;\n overflow: auto;\n `,\n leftWithPadding: css`\n position: relative;\n overflow: auto;\n padding-block: 40px;\n padding-inline: 24px;\n `,\n leva: css`\n --leva-sizes-controlWidth: 66%;\n --leva-colors-elevation1: ${cssVar.colorFillSecondary};\n --leva-colors-elevation2: transparent;\n --leva-colors-elevation3: ${cssVar.colorFillSecondary};\n --leva-colors-accent1: ${cssVar.colorPrimary};\n --leva-colors-accent2: ${cssVar.colorPrimaryHover};\n --leva-colors-accent3: ${cssVar.colorPrimaryActive};\n --leva-colors-highlight1: ${cssVar.colorTextTertiary};\n --leva-colors-highlight2: ${cssVar.colorTextSecondary};\n --leva-colors-highlight3: ${cssVar.colorText};\n --leva-colors-vivid1: ${cssVar.colorWarning};\n --leva-shadows-level1: unset;\n --leva-shadows-level2: unset;\n --leva-fonts-mono: ${cssVar.fontFamilyCode};\n\n overflow: auto;\n\n width: 100%;\n height: 100%;\n padding-block: 6px;\n padding-inline: 0;\n\n > div {\n background: transparent;\n\n > div {\n background: transparent;\n }\n }\n\n input:checked + label > svg {\n stroke: ${cssVar.colorBgLayout};\n }\n\n button {\n --leva-colors-accent2: ${cssVar.colorFillSecondary};\n }\n `,\n right: css`\n background: ${cssVar.colorBgLayout};\n\n ${responsive.sm} {\n .draggable-panel-fixed {\n width: 100% !important;\n }\n }\n `,\n };\n});\n"],"mappings":";;;AAEA,MAAa,SAAS,oBAAoB,EAAE,YAAK,kBAAQ,+BAAiB;AACxE,QAAO;EACL,QAAQ,KAAG;;;;EAIX,MAAM,KAAG;;;;EAIT,iBAAiB,KAAG;;;;;;EAMpB,MAAM,KAAG;;kCAEqBA,SAAO,mBAAmB;;kCAE1BA,SAAO,mBAAmB;+BAC7BA,SAAO,aAAa;+BACpBA,SAAO,kBAAkB;+BACzBA,SAAO,mBAAmB;kCACvBA,SAAO,kBAAkB;kCACzBA,SAAO,mBAAmB;kCAC1BA,SAAO,UAAU;8BACrBA,SAAO,aAAa;;;2BAGvBA,SAAO,eAAe;;;;;;;;;;;;;;;;;;kBAkB/BA,SAAO,cAAc;;;;iCAINA,SAAO,mBAAmB;;;EAGvD,OAAO,KAAG;oBACMA,SAAO,cAAc;;QAEjCC,aAAW,GAAG;;;;;;EAMnB;EACD"}
@@ -1,5 +1,6 @@
1
1
  import { NeutralColors, NeutralColorsObj, PrimaryColors, PrimaryColorsObj, findCustomThemeName, neutralColors, neutralColorsSwatches, primaryColors, primaryColorsSwatches } from "./customTheme.mjs";
2
2
  import { generateCustomStylish } from "./theme/customStylish.mjs";
3
+ import { staticStylish } from "./theme/customStylishStatic.mjs";
3
4
  import { generateCustomToken } from "./theme/customToken.mjs";
4
5
  import { generateColorNeutralPalette, generateColorPalette } from "./theme/generateColorPalette.mjs";
5
- export { NeutralColors, NeutralColorsObj, PrimaryColors, PrimaryColorsObj, findCustomThemeName, generateColorNeutralPalette, generateColorPalette, generateCustomStylish as lobeCustomStylish, generateCustomToken as lobeCustomToken, neutralColors, neutralColorsSwatches, primaryColors, primaryColorsSwatches };
6
+ export { NeutralColors, NeutralColorsObj, PrimaryColors, PrimaryColorsObj, findCustomThemeName, generateColorNeutralPalette, generateColorPalette, generateCustomStylish as lobeCustomStylish, generateCustomToken as lobeCustomToken, staticStylish as lobeStaticStylish, neutralColors, neutralColorsSwatches, primaryColors, primaryColorsSwatches };
@@ -1,6 +1,7 @@
1
1
  import { findCustomThemeName, neutralColors, neutralColorsSwatches, primaryColors, primaryColorsSwatches } from "./customTheme.mjs";
2
2
  import { generateCustomStylish } from "./theme/customStylish.mjs";
3
+ import { staticStylish } from "./theme/customStylishStatic.mjs";
3
4
  import { generateCustomToken } from "./theme/customToken.mjs";
4
5
  import { generateColorNeutralPalette, generateColorPalette } from "./theme/generateColorPalette.mjs";
5
6
 
6
- export { findCustomThemeName, generateColorNeutralPalette, generateColorPalette, generateCustomStylish as lobeCustomStylish, generateCustomToken as lobeCustomToken, neutralColors, neutralColorsSwatches, primaryColors, primaryColorsSwatches };
7
+ export { findCustomThemeName, generateColorNeutralPalette, generateColorPalette, generateCustomStylish as lobeCustomStylish, generateCustomToken as lobeCustomToken, staticStylish as lobeStaticStylish, neutralColors, neutralColorsSwatches, primaryColors, primaryColorsSwatches };
@@ -0,0 +1,7 @@
1
+ import { LobeCustomStylish } from "../../types/customStylish.mjs";
2
+
3
+ //#region src/styles/theme/customStylishStatic.d.ts
4
+ declare const staticStylish: LobeCustomStylish;
5
+ //#endregion
6
+ export { staticStylish };
7
+ //# sourceMappingURL=customStylishStatic.d.mts.map
@@ -0,0 +1,161 @@
1
+ import { createStaticStyles, keyframes } from "antd-style";
2
+
3
+ //#region src/styles/theme/customStylishStatic.ts
4
+ /**
5
+ * Static version of custom stylish utilities.
6
+ * This can be used with createStaticStyles for better performance.
7
+ *
8
+ * Note: Some styles that depend on isDarkMode or custom tokens may have limitations.
9
+ * For full dynamic support, use the regular customStylish from './customStylish'.
10
+ */
11
+ const gradient = keyframes`
12
+ 0% {
13
+ background-position: 0% 50%;
14
+ }
15
+ 50% {
16
+ background-position: 100% 50%;
17
+ }
18
+ 100% {
19
+ background-position: 0% 50%;
20
+ }
21
+ `;
22
+ const staticStylish = createStaticStyles(({ css: css$1, cssVar: cssVar$1 }) => ({
23
+ active: css$1`
24
+ color: ${cssVar$1.colorText};
25
+ background: ${cssVar$1.colorFillSecondary};
26
+
27
+ &:hover {
28
+ color: ${cssVar$1.colorText};
29
+ background: ${cssVar$1.colorFill};
30
+ }
31
+ `,
32
+ blur: css$1`
33
+ backdrop-filter: saturate(150%) blur(10px);
34
+ `,
35
+ blurStrong: css$1`
36
+ backdrop-filter: saturate(150%) blur(36px);
37
+ `,
38
+ bottomScrollbar: css$1`
39
+ ::-webkit-scrollbar {
40
+ width: 0;
41
+ height: 4px;
42
+ background-color: transparent;
43
+
44
+ &-thumb {
45
+ border-radius: 4px;
46
+ background-color: ${cssVar$1.colorFill};
47
+ transition: background-color 500ms ${cssVar$1.motionEaseOut};
48
+ }
49
+
50
+ &-corner {
51
+ display: none;
52
+ width: 0;
53
+ height: 0;
54
+ }
55
+ }
56
+ `,
57
+ disabled: css$1`
58
+ cursor: not-allowed;
59
+ opacity: 0.5;
60
+ `,
61
+ gradientAnimation: css$1`
62
+ border-radius: inherit;
63
+ background-image: linear-gradient(
64
+ -45deg,
65
+ ${cssVar$1.gold},
66
+ ${cssVar$1.magenta},
67
+ ${cssVar$1.geekblue},
68
+ ${cssVar$1.cyan}
69
+ );
70
+ background-size: 400% 400%;
71
+ animation: 5s ${gradient} 5s ease infinite;
72
+ `,
73
+ noScrollbar: css$1`
74
+ ::-webkit-scrollbar {
75
+ display: none;
76
+ width: 0;
77
+ height: 0;
78
+ background-color: transparent;
79
+ }
80
+ `,
81
+ resetLinkColor: css$1`
82
+ cursor: pointer;
83
+ color: ${cssVar$1.colorTextSecondary};
84
+
85
+ &:hover {
86
+ color: ${cssVar$1.colorText};
87
+ }
88
+ `,
89
+ shadow: css$1`
90
+ box-shadow:
91
+ 0 1px 0 -1px ${cssVar$1.colorBorder},
92
+ 0 1px 2px -0.5px ${cssVar$1.colorBorder},
93
+ 0 2px 2px -1px ${cssVar$1.colorBorderSecondary},
94
+ 0 3px 6px -4px ${cssVar$1.colorBorderSecondary};
95
+ `,
96
+ variantBorderless: css$1`
97
+ border: none;
98
+ background: none;
99
+ box-shadow: none;
100
+
101
+ &:hover {
102
+ background: ${cssVar$1.colorFillTertiary};
103
+ }
104
+ `,
105
+ variantBorderlessDanger: css$1`
106
+ border: none;
107
+ background: none;
108
+ box-shadow: none;
109
+
110
+ &:hover {
111
+ background: ${cssVar$1.colorErrorBg};
112
+ box-shadow: inset 0 0 0 1px ${cssVar$1.colorErrorBg};
113
+ }
114
+ `,
115
+ variantBorderlessWithoutHover: css$1`
116
+ border: none;
117
+ background: none;
118
+ box-shadow: none;
119
+ `,
120
+ variantFilled: css$1`
121
+ background: ${cssVar$1.colorFillTertiary};
122
+
123
+ &:hover {
124
+ background: ${cssVar$1.colorFillSecondary};
125
+ }
126
+ `,
127
+ variantFilledDanger: css$1`
128
+ background: ${cssVar$1.colorErrorBg};
129
+
130
+ &:hover {
131
+ background: ${cssVar$1.colorErrorBgHover};
132
+ }
133
+ `,
134
+ variantFilledWithoutHover: css$1`
135
+ background: ${cssVar$1.colorFillTertiary};
136
+ `,
137
+ variantOutlined: css$1`
138
+ border: 1px solid ${cssVar$1.colorBorderSecondary};
139
+ background: ${cssVar$1.colorBgContainer};
140
+
141
+ &:hover {
142
+ border: 1px solid ${cssVar$1.colorBorder};
143
+ background: ${cssVar$1.colorBgContainer};
144
+ }
145
+ `,
146
+ variantOutlinedDanger: css$1`
147
+ border: 1px solid ${cssVar$1.colorErrorBorder};
148
+
149
+ &:hover {
150
+ border: 1px solid ${cssVar$1.colorErrorBorder};
151
+ }
152
+ `,
153
+ variantOutlinedWithoutHover: css$1`
154
+ border: 1px solid ${cssVar$1.colorBorderSecondary};
155
+ background: ${cssVar$1.colorBgContainer};
156
+ `
157
+ }));
158
+
159
+ //#endregion
160
+ export { staticStylish };
161
+ //# sourceMappingURL=customStylishStatic.mjs.map