@swiftcrab/crab 0.0.3 → 0.0.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 (380) hide show
  1. package/es/_util/ActionButton.js +1 -1
  2. package/es/_util/ContextIsolator.js +1 -1
  3. package/es/_util/PurePanel.js +1 -1
  4. package/es/_util/hooks/useZIndex.js +1 -1
  5. package/es/_util/motion.js +1 -1
  6. package/es/_util/responsiveObserver.js +1 -1
  7. package/es/_util/wave/WaveEffect.js +1 -1
  8. package/es/_util/wave/index.js +1 -1
  9. package/es/_util/wave/interface.js +1 -1
  10. package/es/_util/wave/style.js +1 -1
  11. package/es/_util/wave/useWave.js +1 -1
  12. package/es/affix/index.js +1 -1
  13. package/es/affix/style/index.js +1 -1
  14. package/es/alert/Alert.js +1 -1
  15. package/es/alert/ErrorBoundary.js +1 -1
  16. package/es/alert/index.js +1 -1
  17. package/es/alert/style/index.js +1 -1
  18. package/es/anchor/Anchor.js +1 -1
  19. package/es/anchor/AnchorLink.js +1 -1
  20. package/es/anchor/index.js +1 -1
  21. package/es/anchor/style/index.js +1 -1
  22. package/es/app/index.js +1 -1
  23. package/es/app/style/index.js +1 -1
  24. package/es/auto-complete/index.js +1 -1
  25. package/es/avatar/avatar.js +1 -1
  26. package/es/avatar/group.js +1 -1
  27. package/es/avatar/index.js +1 -1
  28. package/es/avatar/style/index.js +1 -1
  29. package/es/badge/Ribbon.js +1 -1
  30. package/es/badge/ScrollNumber.js +1 -1
  31. package/es/badge/index.js +1 -1
  32. package/es/badge/style/index.js +1 -1
  33. package/es/badge/style/ribbon.js +1 -1
  34. package/es/breadcrumb/Breadcrumb.js +1 -1
  35. package/es/breadcrumb/BreadcrumbItem.js +1 -1
  36. package/es/breadcrumb/BreadcrumbSeparator.js +1 -1
  37. package/es/breadcrumb/index.js +1 -1
  38. package/es/breadcrumb/style/index.js +1 -1
  39. package/es/button/button-group.js +1 -1
  40. package/es/button/button.js +1 -1
  41. package/es/button/index.js +1 -1
  42. package/es/button/style/compact.js +1 -1
  43. package/es/button/style/index.js +1 -1
  44. package/es/button/style/token.js +1 -1
  45. package/es/calendar/Header.js +1 -1
  46. package/es/calendar/generateCalendar.js +1 -1
  47. package/es/calendar/index.js +1 -1
  48. package/es/calendar/style/index.js +1 -1
  49. package/es/calendar-panel/index.d.ts +7 -0
  50. package/es/calendar-panel/index.js +40 -0
  51. package/es/calendar-panel/style/index.d.ts +4 -0
  52. package/es/calendar-panel/style/index.js +35 -0
  53. package/es/calendar-panel/style/style.d.ts +1 -0
  54. package/es/calendar-panel/style/style.js +639 -0
  55. package/es/calendar-panel/types.d.ts +158 -0
  56. package/es/calendar-panel/types.js +0 -0
  57. package/es/calendar-panel/utils.d.ts +39 -0
  58. package/es/calendar-panel/utils.js +1 -0
  59. package/es/card/Card.js +1 -1
  60. package/es/card/Grid.js +1 -1
  61. package/es/card/Meta.js +1 -1
  62. package/es/card/index.js +1 -1
  63. package/es/card/style/index.js +1 -1
  64. package/es/carousel/index.js +1 -1
  65. package/es/carousel/style/index.js +1 -1
  66. package/es/cascader/Panel.js +1 -1
  67. package/es/cascader/hooks/useBase.js +1 -1
  68. package/es/cascader/index.js +1 -1
  69. package/es/cascader/style/columns.js +1 -1
  70. package/es/cascader/style/index.js +1 -1
  71. package/es/cascader/style/panel.js +1 -1
  72. package/es/checkbox/Checkbox.js +1 -1
  73. package/es/checkbox/Group.js +1 -1
  74. package/es/checkbox/index.js +1 -1
  75. package/es/checkbox/style/index.js +1 -1
  76. package/es/clap-overflow/index.d.ts +19 -0
  77. package/es/clap-overflow/index.js +40 -0
  78. package/es/clap-overflow/style/index.d.ts +16 -0
  79. package/es/clap-overflow/style/index.js +35 -0
  80. package/es/col/index.js +1 -1
  81. package/es/collapse/Collapse.js +1 -1
  82. package/es/collapse/CollapsePanel.js +1 -1
  83. package/es/collapse/index.js +1 -1
  84. package/es/collapse/style/index.js +1 -1
  85. package/es/color-picker/ColorPicker.js +1 -1
  86. package/es/color-picker/ColorPickerPanel.js +1 -1
  87. package/es/color-picker/components/ColorAlphaInput.js +1 -1
  88. package/es/color-picker/components/ColorHexInput.js +1 -1
  89. package/es/color-picker/components/ColorHsbInput.js +1 -1
  90. package/es/color-picker/components/ColorInput.js +1 -1
  91. package/es/color-picker/components/ColorPresets.js +1 -1
  92. package/es/color-picker/components/ColorRgbInput.js +1 -1
  93. package/es/color-picker/components/ColorSlider.js +1 -1
  94. package/es/color-picker/components/ColorSteppers.js +1 -1
  95. package/es/color-picker/components/PanelPicker/GradientColorBar.js +1 -1
  96. package/es/color-picker/components/PanelPicker/index.js +1 -1
  97. package/es/color-picker/components/PanelPresets.js +1 -1
  98. package/es/color-picker/index.js +1 -1
  99. package/es/color-picker/style/index.js +1 -1
  100. package/es/config-provider/MotionWrapper.js +1 -1
  101. package/es/config-provider/defaultRenderEmpty.js +1 -1
  102. package/es/config-provider/hooks/useCSSVarCls.js +1 -1
  103. package/es/config-provider/hooks/useTheme.js +1 -1
  104. package/es/config-provider/index.js +1 -1
  105. package/es/config-provider/style/index.js +1 -1
  106. package/es/date-picker/PickerButton.js +1 -1
  107. package/es/date-picker/generatePicker/generateRangePicker.js +1 -1
  108. package/es/date-picker/generatePicker/generateSinglePicker.js +1 -1
  109. package/es/date-picker/generatePicker/index.js +1 -1
  110. package/es/date-picker/generatePicker/useComponents.js +1 -1
  111. package/es/date-picker/index.js +1 -1
  112. package/es/date-picker/style/index.js +1 -1
  113. package/es/date-picker/style/multiple.js +1 -1
  114. package/es/date-picker/style/token.js +1 -1
  115. package/es/date-picker/style/variants.js +1 -1
  116. package/es/descriptions/hooks/useItems.js +1 -1
  117. package/es/descriptions/index.js +1 -1
  118. package/es/descriptions/style/index.js +1 -1
  119. package/es/divider/index.js +1 -1
  120. package/es/divider/style/index.js +1 -1
  121. package/es/drawer/DrawerPanel.js +1 -1
  122. package/es/drawer/index.js +1 -1
  123. package/es/drawer/style/index.js +1 -1
  124. package/es/dropdown/dropdown-button.js +1 -1
  125. package/es/dropdown/dropdown.js +1 -1
  126. package/es/dropdown/index.js +1 -1
  127. package/es/dropdown/style/index.js +1 -1
  128. package/es/empty/empty.js +1 -1
  129. package/es/empty/index.js +1 -1
  130. package/es/empty/simple.js +1 -1
  131. package/es/empty/style/index.js +1 -1
  132. package/es/flex/index.js +1 -1
  133. package/es/flex/style/index.js +1 -1
  134. package/es/form/ErrorList.js +1 -1
  135. package/es/form/Form.js +1 -1
  136. package/es/form/FormItem/ItemHolder.js +1 -1
  137. package/es/form/FormItem/index.js +1 -1
  138. package/es/form/FormItemInput.js +1 -1
  139. package/es/form/FormItemLabel.js +1 -1
  140. package/es/form/FormList.js +1 -1
  141. package/es/form/hooks/useVariants.js +1 -1
  142. package/es/form/index.js +1 -1
  143. package/es/form/style/fallbackCmp.js +1 -1
  144. package/es/form/style/index.js +1 -1
  145. package/es/form-area/ValidateTooltip.js +102 -102
  146. package/es/form-area/index.js +102 -102
  147. package/es/form-area/renderItemMap.js +102 -102
  148. package/es/gantt/index.d.ts +4 -0
  149. package/es/gantt/index.js +101 -0
  150. package/es/gantt/style/index.d.ts +4 -0
  151. package/es/gantt/style/index.js +35 -0
  152. package/es/gantt/style/style.d.ts +1 -0
  153. package/es/gantt/style/style.js +372 -0
  154. package/es/gantt/type.d.ts +138 -0
  155. package/es/gantt/type.js +0 -0
  156. package/es/gantt/utils.d.ts +36 -0
  157. package/es/gantt/utils.js +1 -0
  158. package/es/grid/col.js +1 -1
  159. package/es/grid/hooks/useBreakpoint.js +1 -1
  160. package/es/grid/index.js +1 -1
  161. package/es/grid/row.js +1 -1
  162. package/es/grid/style/index.js +1 -1
  163. package/es/hooks/index.js +102 -102
  164. package/es/hooks/useForm.d.ts +12 -33
  165. package/es/hooks/useForm.js +102 -102
  166. package/es/hour-panel/index.d.ts +4 -0
  167. package/es/hour-panel/index.js +99 -0
  168. package/es/hour-panel/style/index.d.ts +12 -0
  169. package/es/hour-panel/style/index.js +35 -0
  170. package/es/hour-panel/style/style.d.ts +1 -0
  171. package/es/hour-panel/style/style.js +351 -0
  172. package/es/hour-panel/types.d.ts +145 -0
  173. package/es/hour-panel/types.js +1 -0
  174. package/es/hour-panel/utils.d.ts +31 -0
  175. package/es/hour-panel/utils.js +1 -0
  176. package/es/image/PreviewGroup.js +1 -1
  177. package/es/image/index.js +1 -1
  178. package/es/image/style/index.js +1 -1
  179. package/es/index.d.ts +11 -1
  180. package/es/index.js +89 -89
  181. package/es/input/Group.js +1 -1
  182. package/es/input/Input.js +1 -1
  183. package/es/input/OTP/OTPInput.js +1 -1
  184. package/es/input/OTP/index.js +1 -1
  185. package/es/input/Password.js +1 -1
  186. package/es/input/Search.js +1 -1
  187. package/es/input/TextArea.js +1 -1
  188. package/es/input/index.js +1 -1
  189. package/es/input/style/index.js +1 -1
  190. package/es/input/style/otp.js +1 -1
  191. package/es/input/style/token.js +1 -1
  192. package/es/input/style/variants.js +1 -1
  193. package/es/input-number/index.js +1 -1
  194. package/es/input-number/style/index.js +1 -1
  195. package/es/input-number/style/token.js +1 -1
  196. package/es/layout/Sider.js +1 -1
  197. package/es/layout/hooks/useHasSider.js +1 -1
  198. package/es/layout/index.js +1 -1
  199. package/es/layout/layout.js +1 -1
  200. package/es/layout/style/index.js +1 -1
  201. package/es/layout/style/sider.js +1 -1
  202. package/es/list/Item.js +1 -1
  203. package/es/list/index.js +1 -1
  204. package/es/list/style/index.js +1 -1
  205. package/es/mentions/index.js +1 -1
  206. package/es/mentions/style/index.js +1 -1
  207. package/es/menu/MenuDivider.js +1 -1
  208. package/es/menu/MenuItem.js +1 -1
  209. package/es/menu/OverrideContext.js +1 -1
  210. package/es/menu/SubMenu.js +1 -1
  211. package/es/menu/index.js +1 -1
  212. package/es/menu/menu.js +1 -1
  213. package/es/menu/style/index.js +1 -1
  214. package/es/message/PurePanel.js +1 -1
  215. package/es/message/index.js +1 -1
  216. package/es/message/style/index.js +1 -1
  217. package/es/message/useMessage.js +1 -1
  218. package/es/modal/ConfirmDialog.js +1 -1
  219. package/es/modal/Modal.js +1 -1
  220. package/es/modal/PurePanel.js +1 -1
  221. package/es/modal/components/ConfirmCancelBtn.js +1 -1
  222. package/es/modal/components/ConfirmOkBtn.js +1 -1
  223. package/es/modal/components/NormalCancelBtn.js +1 -1
  224. package/es/modal/components/NormalOkBtn.js +1 -1
  225. package/es/modal/confirm.js +1 -1
  226. package/es/modal/index.js +1 -1
  227. package/es/modal/shared.js +1 -1
  228. package/es/modal/style/confirm.js +1 -1
  229. package/es/modal/style/index.js +1 -1
  230. package/es/modal/useModal/HookModal.js +1 -1
  231. package/es/modal/useModal/index.js +1 -1
  232. package/es/notification/PurePanel.js +1 -1
  233. package/es/notification/index.js +1 -1
  234. package/es/notification/style/index.js +1 -1
  235. package/es/notification/style/pure-panel.js +1 -1
  236. package/es/notification/useNotification.js +1 -1
  237. package/es/pagination/Pagination.js +1 -1
  238. package/es/pagination/index.js +1 -1
  239. package/es/pagination/style/bordered.js +1 -1
  240. package/es/pagination/style/index.js +1 -1
  241. package/es/popconfirm/PurePanel.js +1 -1
  242. package/es/popconfirm/index.js +1 -1
  243. package/es/popconfirm/style/index.js +1 -1
  244. package/es/popover/PurePanel.js +1 -1
  245. package/es/popover/index.js +1 -1
  246. package/es/popover/style/index.js +1 -1
  247. package/es/progress/Circle.js +1 -1
  248. package/es/progress/Line.js +1 -1
  249. package/es/progress/index.js +1 -1
  250. package/es/progress/progress.js +1 -1
  251. package/es/progress/style/index.js +1 -1
  252. package/es/qr-code/QrcodeStatus.js +1 -1
  253. package/es/qr-code/index.js +1 -1
  254. package/es/qr-code/style/index.js +1 -1
  255. package/es/qrcode/index.js +1 -1
  256. package/es/qrcode/style/index.js +1 -1
  257. package/es/radio/group.js +1 -1
  258. package/es/radio/index.js +1 -1
  259. package/es/radio/radio.js +1 -1
  260. package/es/radio/radioButton.js +1 -1
  261. package/es/radio/style/index.js +1 -1
  262. package/es/rate/index.js +1 -1
  263. package/es/rate/style/index.js +1 -1
  264. package/es/result/index.js +1 -1
  265. package/es/result/style/index.js +1 -1
  266. package/es/row/index.js +1 -1
  267. package/es/search-area/index.js +102 -102
  268. package/es/segmented/index.js +1 -1
  269. package/es/segmented/style/index.js +1 -1
  270. package/es/select/index.js +1 -1
  271. package/es/select/style/index.js +1 -1
  272. package/es/select/style/multiple.js +1 -1
  273. package/es/select/style/single.js +1 -1
  274. package/es/skeleton/Avatar.js +1 -1
  275. package/es/skeleton/Button.js +1 -1
  276. package/es/skeleton/Image.js +1 -1
  277. package/es/skeleton/Input.js +1 -1
  278. package/es/skeleton/Node.js +1 -1
  279. package/es/skeleton/Skeleton.js +1 -1
  280. package/es/skeleton/index.js +1 -1
  281. package/es/skeleton/style/index.js +1 -1
  282. package/es/slider/SliderTooltip.js +1 -1
  283. package/es/slider/index.js +1 -1
  284. package/es/slider/style/index.js +1 -1
  285. package/es/space/Compact.js +1 -1
  286. package/es/space/index.js +1 -1
  287. package/es/space/style/index.js +1 -1
  288. package/es/spin/index.js +1 -1
  289. package/es/spin/style/index.js +1 -1
  290. package/es/splitter/Splitter.js +1 -1
  291. package/es/splitter/index.js +1 -1
  292. package/es/splitter/style/index.js +1 -1
  293. package/es/statistic/Countdown.js +1 -1
  294. package/es/statistic/Statistic.js +1 -1
  295. package/es/statistic/index.js +1 -1
  296. package/es/statistic/style/index.js +1 -1
  297. package/es/steps/index.js +1 -1
  298. package/es/steps/style/index.js +1 -1
  299. package/es/switch/index.js +1 -1
  300. package/es/switch/style/index.js +1 -1
  301. package/es/table/InternalTable.js +1 -1
  302. package/es/table/Table.js +1 -1
  303. package/es/table/hooks/useFilter/FilterDropdown.js +1 -1
  304. package/es/table/hooks/useFilter/FilterSearch.js +1 -1
  305. package/es/table/hooks/useFilter/index.js +1 -1
  306. package/es/table/hooks/useSelection.js +1 -1
  307. package/es/table/hooks/useSorter.js +1 -1
  308. package/es/table/index.js +1 -1
  309. package/es/table/style/index.js +1 -1
  310. package/es/tabs/hooks/useAnimateConfig.js +1 -1
  311. package/es/tabs/index.js +1 -1
  312. package/es/tabs/style/index.js +1 -1
  313. package/es/tag/CheckableTag.js +1 -1
  314. package/es/tag/index.js +1 -1
  315. package/es/tag/style/index.js +1 -1
  316. package/es/tag/style/presetCmp.js +1 -1
  317. package/es/tag/style/statusCmp.js +1 -1
  318. package/es/theme/index.js +1 -1
  319. package/es/theme/interface/components.d.ts +11 -2
  320. package/es/theme/internal.js +1 -1
  321. package/es/theme/useToken.js +1 -1
  322. package/es/theme/util/genStyleUtils.js +1 -1
  323. package/es/theme/util/useResetIconStyle.js +1 -1
  324. package/es/time-out/index.d.ts +18 -0
  325. package/es/time-out/index.js +40 -0
  326. package/es/time-out/style/index.d.ts +31 -0
  327. package/es/time-out/style/index.js +35 -0
  328. package/es/time-out/style/style.d.ts +1 -0
  329. package/es/time-out/style/style.js +104 -0
  330. package/es/time-picker/index.js +1 -1
  331. package/es/timeline/Timeline.js +1 -1
  332. package/es/timeline/TimelineItem.js +1 -1
  333. package/es/timeline/TimelineItemList.js +1 -1
  334. package/es/timeline/index.js +1 -1
  335. package/es/timeline/style/index.js +1 -1
  336. package/es/tooltip/PurePanel.js +1 -1
  337. package/es/tooltip/index.js +1 -1
  338. package/es/tooltip/style/index.js +1 -1
  339. package/es/tour/PurePanel.js +1 -1
  340. package/es/tour/index.js +1 -1
  341. package/es/tour/panelRender.js +1 -1
  342. package/es/tour/style/index.js +1 -1
  343. package/es/transfer/ListBody.js +1 -1
  344. package/es/transfer/ListItem.js +1 -1
  345. package/es/transfer/index.js +1 -1
  346. package/es/transfer/list.js +1 -1
  347. package/es/transfer/operation.js +1 -1
  348. package/es/transfer/search.js +1 -1
  349. package/es/transfer/style/index.js +1 -1
  350. package/es/tree/DirectoryTree.js +1 -1
  351. package/es/tree/Tree.js +1 -1
  352. package/es/tree/index.js +1 -1
  353. package/es/tree/style/index.js +1 -1
  354. package/es/tree-select/index.js +1 -1
  355. package/es/tree-select/style/index.js +1 -1
  356. package/es/type/index.js +89 -89
  357. package/es/typography/Base/CopyBtn.js +1 -1
  358. package/es/typography/Base/EllipsisTooltip.js +1 -1
  359. package/es/typography/Base/index.js +1 -1
  360. package/es/typography/Editable.js +1 -1
  361. package/es/typography/Link.js +1 -1
  362. package/es/typography/Paragraph.js +1 -1
  363. package/es/typography/Text.js +1 -1
  364. package/es/typography/Title.js +1 -1
  365. package/es/typography/Typography.js +1 -1
  366. package/es/typography/index.js +1 -1
  367. package/es/typography/style/index.js +1 -1
  368. package/es/upload/Dragger.js +1 -1
  369. package/es/upload/Upload.js +1 -1
  370. package/es/upload/UploadList/ListItem.js +1 -1
  371. package/es/upload/UploadList/index.js +1 -1
  372. package/es/upload/index.js +1 -1
  373. package/es/upload/style/index.js +1 -1
  374. package/es/utils/common.d.ts +41 -0
  375. package/es/utils/common.js +4 -4
  376. package/es/utils/index.js +4 -4
  377. package/es/version/index.js +1 -1
  378. package/es/watermark/index.js +1 -1
  379. package/package.json +1 -1
  380. package/umd/index.min.js +147 -147
@@ -0,0 +1,639 @@
1
+ import a from'styled-components';var e=a.div`
2
+ --font-size: 14px;
3
+ --font-size-sm: 12px;
4
+ --font-size-lg: 16px;
5
+ --font-color: #333;
6
+ --font-color-secondary: #666;
7
+ --font-color-tertiary: #999;
8
+ --font-weight-strong: 600;
9
+ --color-border: #d9d9d9;
10
+ --color-border-secondary: #f0f0f0;
11
+ --border-radius: 0;
12
+ --border-small-radius: 4px;
13
+ --duration: 0.2s;
14
+ --color-bg: #f5f5f5;
15
+ --color-bg-container: #fff;
16
+ --color-brand: #1677ff;
17
+ --color-brand-opacity: rgba(22, 119, 255, 0.12);
18
+ --color-brand-text: #fff;
19
+ --opacity-disabled: 0.4;
20
+ --shadow-tertiary: 0 1px 3px rgba(0, 0, 0, 0.08);
21
+
22
+ .calendar-panel {
23
+ display: flex;
24
+ gap: 16px;
25
+ box-sizing: border-box;
26
+ }
27
+
28
+ .calendar-panel,
29
+ .calendar-panel * {
30
+ box-sizing: border-box;
31
+ }
32
+
33
+ /* ==================== 禁用模式 ==================== */
34
+ .calendar-panel.calendar-panel-disabled {
35
+ opacity: 0.45;
36
+ cursor: not-allowed;
37
+ user-select: none;
38
+ }
39
+
40
+ .calendar-panel.calendar-panel-disabled *,
41
+ .calendar-panel.calendar-panel-disabled *::before,
42
+ .calendar-panel.calendar-panel-disabled *::after {
43
+ cursor: not-allowed !important;
44
+ pointer-events: none;
45
+ }
46
+
47
+ /* ==================== 只读模式 ==================== */
48
+ .calendar-panel.calendar-panel-readonly .calendar-panel-nav-grid .calendar-panel-nav-day-cell {
49
+ cursor: default;
50
+ }
51
+
52
+ .calendar-panel.calendar-panel-readonly
53
+ .calendar-panel-nav-grid
54
+ .calendar-panel-nav-day-cell:hover {
55
+ color: inherit;
56
+ background-color: transparent;
57
+ }
58
+
59
+ .calendar-panel.calendar-panel-readonly
60
+ .calendar-panel-nav-grid
61
+ .calendar-panel-nav-day-cell.is-out:hover {
62
+ color: var(--font-color-secondary);
63
+ background-color: transparent;
64
+ }
65
+
66
+ .calendar-panel.calendar-panel-readonly
67
+ .calendar-panel-nav-grid
68
+ .calendar-panel-nav-day-cell.is-today:hover {
69
+ background-color: var(--color-brand-opacity);
70
+ color: var(--color-brand);
71
+ }
72
+
73
+ .calendar-panel.calendar-panel-readonly
74
+ .calendar-panel-nav-grid
75
+ .calendar-panel-nav-day-cell.is-selected:hover {
76
+ background-color: var(--color-brand);
77
+ color: var(--color-brand-text);
78
+ }
79
+
80
+ .calendar-panel.calendar-panel-readonly
81
+ .calendar-panel-month-grid
82
+ .calendar-panel-month-grid-cell {
83
+ cursor: default;
84
+ }
85
+
86
+ .calendar-panel.calendar-panel-readonly
87
+ .calendar-panel-month-grid
88
+ .calendar-panel-month-grid-cell:hover {
89
+ background-color: transparent;
90
+ }
91
+
92
+ .calendar-panel.calendar-panel-readonly
93
+ .calendar-panel-month-grid
94
+ .calendar-panel-month-grid-cell.is-out:hover {
95
+ background-color: var(--color-bg);
96
+ }
97
+
98
+ .calendar-panel.calendar-panel-readonly
99
+ .calendar-panel-month-grid
100
+ .calendar-panel-month-grid-cell.is-selected:hover {
101
+ background-color: var(--color-brand-opacity);
102
+ }
103
+
104
+ .calendar-panel.calendar-panel-readonly
105
+ .calendar-panel-hour-head
106
+ .calendar-panel-hour-head-cell.is-clickable {
107
+ cursor: default;
108
+ }
109
+
110
+ /* ==================== 左侧导航日历 ==================== */
111
+ .calendar-panel-left {
112
+ flex-shrink: 0;
113
+ }
114
+
115
+ .calendar-panel-nav-label {
116
+ display: flex;
117
+ align-items: center;
118
+ height: 24px;
119
+ font-size: var(--font-size);
120
+ font-weight: var(--font-weight-strong);
121
+ color: var(--font-color);
122
+ user-select: none;
123
+ margin-bottom: 12px;
124
+ }
125
+
126
+ .calendar-panel-nav-body {
127
+ width: 212px;
128
+ height: 240px;
129
+ background-color: var(--color-bg-container);
130
+ border: 1px solid var(--color-border-secondary);
131
+ border-radius: var(--border-radius);
132
+ overflow: hidden;
133
+ display: flex;
134
+ flex-direction: column;
135
+ }
136
+
137
+ .calendar-panel-nav-header {
138
+ display: flex;
139
+ align-items: center;
140
+ justify-content: space-between;
141
+ padding: 2px 8px;
142
+ flex-shrink: 0;
143
+ }
144
+
145
+ .calendar-panel-nav-year-oper {
146
+ display: inline-flex;
147
+ align-items: center;
148
+ justify-content: center;
149
+ cursor: pointer;
150
+ }
151
+
152
+ .calendar-panel-nav-year-oper .calendar-panel-nav-arrow {
153
+ color: var(--font-color-secondary);
154
+ transition: color var(--duration);
155
+ font-size: 12px;
156
+ }
157
+
158
+ .calendar-panel-nav-year-oper:hover .calendar-panel-nav-arrow {
159
+ color: var(--color-brand);
160
+ }
161
+
162
+ .calendar-panel-nav-oper {
163
+ cursor: pointer;
164
+ color: var(--font-color-secondary);
165
+ font-size: 12px;
166
+ transition: color var(--duration);
167
+ }
168
+
169
+ .calendar-panel-nav-oper:hover {
170
+ color: var(--color-brand);
171
+ }
172
+
173
+ .calendar-panel-nav-title {
174
+ display: inline-flex;
175
+ align-items: center;
176
+ justify-content: center;
177
+ height: 24px;
178
+ padding: 0 8px;
179
+ font-size: var(--font-size);
180
+ font-weight: var(--font-weight-strong);
181
+ color: var(--font-color-secondary);
182
+ border-radius: var(--border-radius);
183
+ cursor: pointer;
184
+ user-select: none;
185
+ transition: background-color var(--duration);
186
+ }
187
+
188
+ .calendar-panel-nav-title:hover {
189
+ background-color: var(--color-brand-opacity);
190
+ }
191
+
192
+ .calendar-panel-nav-grid {
193
+ display: grid;
194
+ grid-template-columns: repeat(7, minmax(0, 1fr));
195
+ text-align: center;
196
+ flex: 1;
197
+ }
198
+
199
+ .calendar-panel-nav-week-cell {
200
+ height: 24px;
201
+ line-height: 24px;
202
+ font-size: var(--font-size-sm);
203
+ color: var(--font-color-secondary);
204
+ background-color: var(--color-bg);
205
+ user-select: none;
206
+ }
207
+
208
+ .calendar-panel-nav-day-cell {
209
+ display: inline-flex;
210
+ align-items: center;
211
+ justify-content: center;
212
+ height: 24px;
213
+ width: 24px;
214
+ margin: 2px auto;
215
+ line-height: 24px;
216
+ font-size: var(--font-size-sm);
217
+ color: var(--font-color);
218
+ border-radius: 50%;
219
+ cursor: pointer;
220
+ user-select: none;
221
+ transition: all var(--duration);
222
+ }
223
+
224
+ .calendar-panel-nav-day-cell:hover {
225
+ color: var(--color-brand);
226
+ background-color: var(--color-brand-opacity);
227
+ }
228
+
229
+ .calendar-panel-nav-day-cell.is-out {
230
+ color: var(--font-color-secondary);
231
+ }
232
+
233
+ .calendar-panel-nav-day-cell.is-today {
234
+ background-color: var(--color-brand-opacity);
235
+ color: var(--color-brand);
236
+ }
237
+
238
+ .calendar-panel-nav-day-cell.is-selected,
239
+ .calendar-panel-nav-day-cell.is-selected:hover {
240
+ background-color: var(--color-brand);
241
+ color: var(--color-brand-text);
242
+ }
243
+
244
+ .calendar-panel-nav-day-cell.is-disabled,
245
+ .calendar-panel-nav-day-cell.is-disabled:hover {
246
+ opacity: var(--opacity-disabled);
247
+ cursor: not-allowed;
248
+ color: var(--font-color);
249
+ background-color: transparent;
250
+ }
251
+
252
+ /* ==================== 月份选择面板 ==================== */
253
+ .calendar-panel-nav-months {
254
+ display: grid;
255
+ grid-template-columns: repeat(3, minmax(0, 1fr));
256
+ grid-template-rows: repeat(4, minmax(0, 1fr));
257
+ flex: 1;
258
+ text-align: center;
259
+ }
260
+
261
+ .calendar-panel-nav-month-cell {
262
+ display: inline-flex;
263
+ align-items: center;
264
+ justify-content: center;
265
+ margin: 2px 8px;
266
+ font-size: var(--font-size);
267
+ border-radius: var(--border-radius);
268
+ cursor: pointer;
269
+ user-select: none;
270
+ transition: all var(--duration);
271
+ }
272
+
273
+ .calendar-panel-nav-month-cell:hover {
274
+ color: var(--color-brand);
275
+ background-color: var(--color-brand-opacity);
276
+ }
277
+
278
+ .calendar-panel-nav-month-cell.is-today {
279
+ background-color: var(--color-brand-opacity);
280
+ color: var(--color-brand);
281
+ }
282
+
283
+ .calendar-panel-nav-month-cell.is-selected,
284
+ .calendar-panel-nav-month-cell.is-selected:hover {
285
+ background-color: var(--color-brand);
286
+ color: var(--color-brand-text);
287
+ }
288
+
289
+ .calendar-panel-nav-month-cell.is-disabled,
290
+ .calendar-panel-nav-month-cell.is-disabled:hover {
291
+ opacity: var(--opacity-disabled);
292
+ cursor: not-allowed;
293
+ color: var(--font-color);
294
+ background-color: transparent;
295
+ }
296
+
297
+ /* ==================== 年份选择面板 ==================== */
298
+ .calendar-panel-nav-years {
299
+ display: grid;
300
+ grid-template-columns: repeat(3, minmax(0, 1fr));
301
+ grid-template-rows: repeat(4, minmax(0, 1fr));
302
+ flex: 1;
303
+ text-align: center;
304
+ }
305
+
306
+ .calendar-panel-nav-year-cell {
307
+ display: inline-flex;
308
+ align-items: center;
309
+ justify-content: center;
310
+ margin: 2px 8px;
311
+ font-size: var(--font-size);
312
+ border-radius: var(--border-radius);
313
+ cursor: pointer;
314
+ user-select: none;
315
+ transition: all var(--duration);
316
+ }
317
+
318
+ .calendar-panel-nav-year-cell:hover {
319
+ color: var(--color-brand);
320
+ background-color: var(--color-brand-opacity);
321
+ }
322
+
323
+ .calendar-panel-nav-year-cell.is-today {
324
+ background-color: var(--color-brand-opacity);
325
+ color: var(--color-brand);
326
+ }
327
+
328
+ .calendar-panel-nav-year-cell.is-selected,
329
+ .calendar-panel-nav-year-cell.is-selected:hover {
330
+ background-color: var(--color-brand);
331
+ color: var(--color-brand-text);
332
+ }
333
+
334
+ .calendar-panel-nav-year-cell.is-disabled,
335
+ .calendar-panel-nav-year-cell.is-disabled:hover {
336
+ opacity: var(--opacity-disabled);
337
+ cursor: not-allowed;
338
+ color: var(--font-color);
339
+ background-color: transparent;
340
+ }
341
+
342
+ /* ==================== 右侧面板 ==================== */
343
+ .calendar-panel-right {
344
+ flex: 1;
345
+ min-width: 0;
346
+ }
347
+
348
+ .calendar-panel-header {
349
+ display: flex;
350
+ align-items: center;
351
+ justify-content: space-between;
352
+ }
353
+
354
+ .calendar-panel-title {
355
+ display: flex;
356
+ align-items: center;
357
+ height: 24px;
358
+ gap: 8px;
359
+ }
360
+
361
+ .calendar-panel-range-icon {
362
+ cursor: pointer;
363
+ color: var(--font-color-secondary);
364
+ font-size: var(--font-size);
365
+ transition: color var(--duration);
366
+ }
367
+
368
+ .calendar-panel-range-icon:hover {
369
+ color: var(--color-brand);
370
+ }
371
+
372
+ .calendar-panel-title-text {
373
+ font-size: var(--font-size);
374
+ font-weight: var(--font-weight-strong);
375
+ color: var(--font-color);
376
+ user-select: none;
377
+ }
378
+
379
+ .calendar-panel-mode-tabs {
380
+ display: flex;
381
+ align-items: center;
382
+ gap: 2px;
383
+ background: var(--color-bg);
384
+ border-radius: 16px;
385
+ padding: 2px;
386
+ }
387
+
388
+ .calendar-panel-mode-tab {
389
+ padding: 2px 12px;
390
+ font-size: var(--font-size-sm);
391
+ color: var(--font-color-secondary);
392
+ cursor: pointer;
393
+ border-radius: 4px;
394
+ transition: all var(--duration);
395
+ user-select: none;
396
+ }
397
+
398
+ .calendar-panel-mode-tab:hover {
399
+ color: var(--font-color);
400
+ }
401
+
402
+ .calendar-panel-mode-tab.is-active {
403
+ background: var(--color-bg-container);
404
+ color: var(--color-brand);
405
+ box-shadow: var(--shadow-tertiary);
406
+ border-radius: 16px;
407
+ }
408
+
409
+ .calendar-panel-top-view {
410
+ margin-top: 12px;
411
+ }
412
+
413
+ /* ==================== 内容区域 ==================== */
414
+ .calendar-panel-content {
415
+ min-height: 240px;
416
+ margin-top: 12px;
417
+ border-radius: var(--border-radius);
418
+ border: 1px solid var(--color-border-secondary);
419
+ overflow: hidden;
420
+ }
421
+
422
+ /* ==================== 日/周视图 时段表头 ==================== */
423
+ .calendar-panel-hour-head {
424
+ display: grid;
425
+ grid-template-columns: 72px minmax(0, 1fr);
426
+ border-bottom: 1px solid var(--color-border-secondary);
427
+ }
428
+
429
+ .calendar-panel-hour-head-cell {
430
+ display: flex;
431
+ align-items: center;
432
+ justify-content: center;
433
+ flex-direction: row;
434
+ gap: 8px;
435
+ padding: 8px 0;
436
+ border-left: 1px solid var(--color-border-secondary);
437
+ font-size: var(--font-size-sm);
438
+ color: var(--font-color-secondary);
439
+ user-select: none;
440
+ }
441
+
442
+ .calendar-panel-hour-head-cell:first-child {
443
+ border-left: 0 none;
444
+ }
445
+
446
+ .calendar-panel-hour-head-cell.is-selected {
447
+ color: var(--color-brand);
448
+ }
449
+
450
+ .calendar-panel-hour-head-cell.is-clickable {
451
+ cursor: pointer;
452
+ }
453
+
454
+ .calendar-panel-hour-head-cell.is-disabled {
455
+ cursor: not-allowed;
456
+ }
457
+
458
+ .calendar-panel-hour-head-cell.is-disabled > * {
459
+ opacity: var(--opacity-disabled);
460
+ pointer-events: none;
461
+ }
462
+
463
+ .calendar-panel-week-date {
464
+ font-size: var(--font-size-lg);
465
+ font-weight: var(--font-weight-strong);
466
+ }
467
+
468
+ /* ==================== 日/周视图 时段主体 ==================== */
469
+ .calendar-panel-hour-main {
470
+ max-height: 520px;
471
+ overflow-y: auto;
472
+ scrollbar-width: none;
473
+ scrollbar-color: unset;
474
+ }
475
+
476
+ .calendar-panel-hour-main::-webkit-scrollbar {
477
+ display: none;
478
+ width: 0;
479
+ height: 0;
480
+ }
481
+
482
+ .calendar-panel-hour-main::-webkit-scrollbar-thumb {
483
+ background-color: transparent;
484
+ }
485
+
486
+ .calendar-panel-hour-row {
487
+ display: grid;
488
+ grid-template-columns: 72px minmax(0, 1fr);
489
+ border-bottom: 1px dashed var(--color-border-secondary);
490
+ }
491
+
492
+ .calendar-panel-hour-row:last-child {
493
+ border-bottom: 0 none;
494
+ }
495
+
496
+ .calendar-panel-hour-cell {
497
+ display: flex;
498
+ flex-direction: column;
499
+ justify-content: center;
500
+ align-items: center;
501
+ min-height: 40px;
502
+ padding: 0 8px;
503
+ color: var(--font-color-secondary);
504
+ font-size: var(--font-size-sm);
505
+ }
506
+
507
+ .calendar-panel-hour-slot {
508
+ display: flex;
509
+ flex-direction: column;
510
+ align-items: flex-start;
511
+ justify-content: center;
512
+ min-height: 40px;
513
+ height: auto;
514
+ padding: 4px;
515
+ border-left: 1px solid var(--color-border-secondary);
516
+ }
517
+
518
+ /* ==================== 月视图 ==================== */
519
+ .calendar-panel-month-head {
520
+ display: grid;
521
+ grid-template-columns: repeat(7, minmax(0, 1fr));
522
+ }
523
+
524
+ .calendar-panel-month-head-cell {
525
+ height: 32px;
526
+ line-height: 32px;
527
+ text-align: center;
528
+ color: var(--font-color-secondary);
529
+ border-right: 1px solid var(--color-border-secondary);
530
+ user-select: none;
531
+ }
532
+
533
+ .calendar-panel-month-head-cell:last-child {
534
+ border-right: 0 none;
535
+ }
536
+
537
+ .calendar-panel-month-grid {
538
+ display: grid;
539
+ grid-template-columns: repeat(7, minmax(0, 1fr));
540
+ }
541
+
542
+ .calendar-panel-month-grid-cell {
543
+ display: flex;
544
+ flex-direction: column;
545
+ height: 96px;
546
+ padding: 8px 0;
547
+ border-right: 1px solid var(--color-border-secondary);
548
+ border-top: 1px solid var(--color-border-secondary);
549
+ overflow-y: auto;
550
+ cursor: pointer;
551
+ transition: background-color var(--duration);
552
+ }
553
+
554
+ .calendar-panel-month-grid-cell:nth-child(7n) {
555
+ border-right: 0 none;
556
+ }
557
+
558
+ .calendar-panel-month-grid-cell:hover {
559
+ background-color: var(--color-bg);
560
+ }
561
+
562
+ .calendar-panel-month-grid-cell.is-out {
563
+ background: var(--color-bg);
564
+ }
565
+
566
+ .calendar-panel-month-grid-cell.is-selected {
567
+ background: var(--color-brand-opacity);
568
+ }
569
+
570
+ .calendar-panel-month-grid-cell.is-disabled {
571
+ cursor: not-allowed;
572
+ }
573
+
574
+ .calendar-panel-month-grid-cell.is-disabled > * {
575
+ opacity: var(--opacity-disabled);
576
+ pointer-events: none;
577
+ }
578
+
579
+ .calendar-panel-month-grid-title {
580
+ display: flex;
581
+ align-items: center;
582
+ height: 22px;
583
+ padding: 0 8px;
584
+ gap: 8px;
585
+ }
586
+
587
+ .calendar-panel-month-grid-date {
588
+ font-size: var(--font-size);
589
+ font-weight: var(--font-weight-strong);
590
+ }
591
+
592
+ .calendar-panel-month-grid-sub {
593
+ font-size: var(--font-size-sm);
594
+ color: var(--color-brand);
595
+ }
596
+
597
+ .calendar-panel-month-grid-cont {
598
+ flex: 1;
599
+ min-height: 0;
600
+ overflow-y: auto;
601
+ padding: 0 8px;
602
+ }
603
+
604
+ /* ==================== 事件项 ==================== */
605
+ .calendar-panel-event {
606
+ display: flex;
607
+ align-items: center;
608
+ gap: 2px;
609
+ padding: 0 4px;
610
+ margin-bottom: 2px;
611
+ font-size: 10px;
612
+ border-radius: var(--border-small-radius);
613
+ transition: background-color var(--duration);
614
+ }
615
+
616
+ .calendar-panel-event-dot {
617
+ width: 6px;
618
+ height: 6px;
619
+ border-radius: 50%;
620
+ flex-shrink: 0;
621
+ }
622
+
623
+ .calendar-panel-event-time {
624
+ color: var(--font-color-tertiary);
625
+ flex-shrink: 0;
626
+ }
627
+
628
+ .calendar-panel-event-title {
629
+ color: var(--font-color);
630
+ overflow: hidden;
631
+ text-overflow: ellipsis;
632
+ white-space: nowrap;
633
+ }
634
+
635
+ .calendar-panel-event.is-passed {
636
+ opacity: var(--opacity-disabled);
637
+ text-decoration: line-through;
638
+ }
639
+ `;export{e as CalendarPanelWrapper};