@apexhub/apex-ui-react-source 0.0.0-stage → 1.2.1
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.
- package/LICENSE +21 -0
- package/README.md +111 -2
- package/bin/apex-ui-react-source.mjs +901 -0
- package/dist/files/AGENTS.md +89 -0
- package/dist/files/LICENSE +21 -0
- package/dist/files/_assets/adapt-to-page.raw.ts +3 -0
- package/dist/files/_assets/adapt-to-page.url.ts +3 -0
- package/dist/files/_assets/calendar.raw.ts +3 -0
- package/dist/files/_assets/doc-format.raw.ts +3 -0
- package/dist/files/_assets/docx-format.raw.ts +3 -0
- package/dist/files/_assets/full-screen.raw.ts +3 -0
- package/dist/files/_assets/full-screen.url.ts +3 -0
- package/dist/files/_assets/gif-format.raw.ts +3 -0
- package/dist/files/_assets/jpeg-format.raw.ts +3 -0
- package/dist/files/_assets/jpg-format.raw.ts +3 -0
- package/dist/files/_assets/ofd-format.raw.ts +3 -0
- package/dist/files/_assets/one-to-one.raw.ts +3 -0
- package/dist/files/_assets/one-to-one.url.ts +3 -0
- package/dist/files/_assets/pdf-format.raw.ts +3 -0
- package/dist/files/_assets/png-format.raw.ts +3 -0
- package/dist/files/_assets/rotate-left.raw.ts +3 -0
- package/dist/files/_assets/rotate-left.url.ts +3 -0
- package/dist/files/_assets/rotate-right.raw.ts +3 -0
- package/dist/files/_assets/rotate-right.url.ts +3 -0
- package/dist/files/_assets/table-empty.url.ts +3 -0
- package/dist/files/_assets/txt-format.raw.ts +3 -0
- package/dist/files/_assets/upload-file-doc-20.raw.ts +3 -0
- package/dist/files/_assets/upload-file-docx-20.raw.ts +3 -0
- package/dist/files/_assets/upload-file-gif-20.raw.ts +3 -0
- package/dist/files/_assets/upload-file-jpeg-20.raw.ts +3 -0
- package/dist/files/_assets/upload-file-jpg-20.raw.ts +3 -0
- package/dist/files/_assets/upload-file-ofd-20.raw.ts +3 -0
- package/dist/files/_assets/upload-file-pdf-20.raw.ts +3 -0
- package/dist/files/_assets/upload-file-png-20.raw.ts +3 -0
- package/dist/files/_assets/upload-file-txt-20.raw.ts +3 -0
- package/dist/files/_assets/upload-file-xlsx-20.raw.ts +3 -0
- package/dist/files/_assets/xlsx-format.raw.ts +3 -0
- package/dist/files/_assets/zoom-in.raw.ts +3 -0
- package/dist/files/_assets/zoom-in.url.ts +3 -0
- package/dist/files/_assets/zoom-out.raw.ts +3 -0
- package/dist/files/_assets/zoom-out.url.ts +3 -0
- package/dist/files/_headless/dismiss-intent.ts +1 -0
- package/dist/files/_headless/placement.ts +1 -0
- package/dist/files/_headless/use-embedded-scroll-lock-guard.ts +47 -0
- package/dist/files/_headless/use-floating-overlay.tsx +3 -0
- package/dist/files/_namespace/constants.ts +23 -0
- package/dist/files/_namespace/index.ts +1 -0
- package/dist/files/_overlay/auto-update-anchored-overlay.ts +11 -0
- package/dist/files/_overlay/collision-boundary.ts +78 -0
- package/dist/files/_overlay/dismiss-intent.ts +107 -0
- package/dist/files/_overlay/get-overlay-root.ts +157 -0
- package/dist/files/_overlay/index.ts +57 -0
- package/dist/files/_overlay/observe-anchor-lifecycle.ts +72 -0
- package/dist/files/_overlay/overlay-theme.ts +91 -0
- package/dist/files/_overlay/overlay-trigger.ts +100 -0
- package/dist/files/_overlay/overlay.css +29 -0
- package/dist/files/_overlay/placement.ts +18 -0
- package/dist/files/_overlay/resolve-portal-container.ts +13 -0
- package/dist/files/_overlay/use-anchored-overlay.tsx +493 -0
- package/dist/files/_overlay/zIndex.ts +17 -0
- package/dist/files/_tags/MaxTagList.tsx +336 -0
- package/dist/files/_tags/OverflowTagPopover.tsx +315 -0
- package/dist/files/_tags/get-max-tag-display.ts +26 -0
- package/dist/files/_tags/index.ts +15 -0
- package/dist/files/_tags/resolve-max-tag-popover.ts +28 -0
- package/dist/files/_tags/tags.css +126 -0
- package/dist/files/_tags/types.ts +46 -0
- package/dist/files/_tags/use-responsive-max-tag-count.ts +165 -0
- package/dist/files/alert/Alert.tsx +100 -0
- package/dist/files/alert/alert.css +85 -0
- package/dist/files/alert/index.ts +2 -0
- package/dist/files/alert/interface.ts +59 -0
- package/dist/files/alert/llm.txt +160 -0
- package/dist/files/alert/tokens.txt +44 -0
- package/dist/files/alert/variants.ts +17 -0
- package/dist/files/apex-env.d.ts +2 -0
- package/dist/files/apex-provider/ApexProvider.tsx +53 -0
- package/dist/files/apex-provider/apex-provider.css +0 -0
- package/dist/files/apex-provider/context.ts +17 -0
- package/dist/files/apex-provider/index.ts +18 -0
- package/dist/files/apex-provider/interface.ts +181 -0
- package/dist/files/apex-provider/llm.txt +367 -0
- package/dist/files/apex-provider/localeKind.ts +20 -0
- package/dist/files/auto-complete/AutoComplete.tsx +419 -0
- package/dist/files/auto-complete/auto-complete.css +108 -0
- package/dist/files/auto-complete/auto-complete.stories.css +17 -0
- package/dist/files/auto-complete/index.ts +8 -0
- package/dist/files/auto-complete/interface.ts +77 -0
- package/dist/files/auto-complete/llm.txt +374 -0
- package/dist/files/auto-complete/tokens.txt +77 -0
- package/dist/files/auto-complete/variants.ts +19 -0
- package/dist/files/avatar/Avatar.tsx +277 -0
- package/dist/files/avatar/avatar.css +159 -0
- package/dist/files/avatar/index.ts +2 -0
- package/dist/files/avatar/interface.ts +147 -0
- package/dist/files/avatar/llm.txt +195 -0
- package/dist/files/avatar/tokens.txt +38 -0
- package/dist/files/avatar/use-responsive-size.ts +66 -0
- package/dist/files/avatar/variants.ts +41 -0
- package/dist/files/breadcrumb/Breadcrumb.stories.css +5 -0
- package/dist/files/breadcrumb/Breadcrumb.tsx +238 -0
- package/dist/files/breadcrumb/BreadcrumbLink.tsx +63 -0
- package/dist/files/breadcrumb/BreadcrumbSeparatorIcon.tsx +30 -0
- package/dist/files/breadcrumb/breadcrumb.css +113 -0
- package/dist/files/breadcrumb/index.ts +12 -0
- package/dist/files/breadcrumb/interface.ts +81 -0
- package/dist/files/breadcrumb/llm.txt +249 -0
- package/dist/files/breadcrumb/tokens.txt +193 -0
- package/dist/files/breadcrumb/variants.ts +8 -0
- package/dist/files/button/Button.tsx +235 -0
- package/dist/files/button/button.css +261 -0
- package/dist/files/button/index.ts +2 -0
- package/dist/files/button/interface.ts +145 -0
- package/dist/files/button/llm.txt +254 -0
- package/dist/files/button/tokens.txt +470 -0
- package/dist/files/button/variants.ts +89 -0
- package/dist/files/card/Card.tsx +63 -0
- package/dist/files/card/card.css +66 -0
- package/dist/files/card/index.ts +2 -0
- package/dist/files/card/interface.ts +25 -0
- package/dist/files/card/llm.txt +93 -0
- package/dist/files/card/tokens.txt +27 -0
- package/dist/files/cascader/Cascader.tsx +955 -0
- package/dist/files/cascader/_adapter/locale.ts +4 -0
- package/dist/files/cascader/cascader-data.ts +354 -0
- package/dist/files/cascader/cascader.css +382 -0
- package/dist/files/cascader/index.ts +16 -0
- package/dist/files/cascader/interface.ts +358 -0
- package/dist/files/cascader/llm.txt +897 -0
- package/dist/files/cascader/tokens.txt +253 -0
- package/dist/files/cascader/variants.ts +35 -0
- package/dist/files/checkbox/Checkbox.tsx +477 -0
- package/dist/files/checkbox/checkbox.css +196 -0
- package/dist/files/checkbox/index.ts +9 -0
- package/dist/files/checkbox/interface.ts +162 -0
- package/dist/files/checkbox/llm.txt +326 -0
- package/dist/files/checkbox/tokens.txt +28 -0
- package/dist/files/checkbox/variants.ts +29 -0
- package/dist/files/clear/Clear.tsx +49 -0
- package/dist/files/clear/clear.css +60 -0
- package/dist/files/clear/index.ts +2 -0
- package/dist/files/clear/interface.ts +8 -0
- package/dist/files/collapse/Collapse.tsx +163 -0
- package/dist/files/collapse/collapse.css +174 -0
- package/dist/files/collapse/index.ts +2 -0
- package/dist/files/collapse/interface.ts +132 -0
- package/dist/files/collapse/llm.txt +328 -0
- package/dist/files/collapse/tokens.txt +84 -0
- package/dist/files/core/date-picker/index.ts +191 -0
- package/dist/files/core/form/index.ts +212 -0
- package/dist/files/core/index.ts +11 -0
- package/dist/files/core/input-number/index.ts +112 -0
- package/dist/files/core/namespace/index.ts +14 -0
- package/dist/files/core/overlay/index.ts +40 -0
- package/dist/files/core/pagination/index.ts +128 -0
- package/dist/files/core/table/access.ts +37 -0
- package/dist/files/core/table/columns.ts +4 -0
- package/dist/files/core/table/data-model.ts +58 -0
- package/dist/files/core/table/fixed-offset.ts +29 -0
- package/dist/files/core/table/grouped-header.ts +24 -0
- package/dist/files/core/table/index.ts +11 -0
- package/dist/files/core/table/merge.ts +132 -0
- package/dist/files/core/table/pagination.ts +51 -0
- package/dist/files/core/table/rowModel.ts +4 -0
- package/dist/files/core/table/types.ts +14 -0
- package/dist/files/core/typography/index.ts +125 -0
- package/dist/files/core/upload/file-type.ts +160 -0
- package/dist/files/core/upload/format-size.ts +17 -0
- package/dist/files/core/upload/index.ts +19 -0
- package/dist/files/core/upload/limits.ts +76 -0
- package/dist/files/core/utils/cn.ts +6 -0
- package/dist/files/core/utils/index.ts +2 -0
- package/dist/files/core/utils/svg.ts +101 -0
- package/dist/files/date-picker/DatePicker.tsx +601 -0
- package/dist/files/date-picker/RangePicker.tsx +1047 -0
- package/dist/files/date-picker/Trigger.tsx +115 -0
- package/dist/files/date-picker/_adapter/calendar.ts +136 -0
- package/dist/files/date-picker/_adapter/disable.ts +89 -0
- package/dist/files/date-picker/_adapter/format.ts +54 -0
- package/dist/files/date-picker/_adapter/keymap.ts +17 -0
- package/dist/files/date-picker/_adapter/locale.ts +4 -0
- package/dist/files/date-picker/_adapter/presets.ts +30 -0
- package/dist/files/date-picker/_adapter/range.ts +44 -0
- package/dist/files/date-picker/_adapter/types.ts +29 -0
- package/dist/files/date-picker/context.ts +60 -0
- package/dist/files/date-picker/date-picker.css +1093 -0
- package/dist/files/date-picker/index.ts +26 -0
- package/dist/files/date-picker/interface.ts +135 -0
- package/dist/files/date-picker/llm.txt +422 -0
- package/dist/files/date-picker/panels/DatePanel.tsx +110 -0
- package/dist/files/date-picker/panels/DecadePanel.tsx +49 -0
- package/dist/files/date-picker/panels/Footer.tsx +109 -0
- package/dist/files/date-picker/panels/Header.tsx +228 -0
- package/dist/files/date-picker/panels/MonthPanel.tsx +83 -0
- package/dist/files/date-picker/panels/Panel.tsx +339 -0
- package/dist/files/date-picker/panels/QuarterPanel.tsx +70 -0
- package/dist/files/date-picker/panels/TimePanel.tsx +171 -0
- package/dist/files/date-picker/panels/WeekPanel.tsx +145 -0
- package/dist/files/date-picker/panels/YearPanel.tsx +89 -0
- package/dist/files/date-picker/panels/time-panel-utils.ts +33 -0
- package/dist/files/date-picker/tokens.txt +171 -0
- package/dist/files/date-picker/variants.ts +20 -0
- package/dist/files/divider/Divider.tsx +80 -0
- package/dist/files/divider/divider.css +66 -0
- package/dist/files/divider/index.ts +7 -0
- package/dist/files/divider/interface.ts +58 -0
- package/dist/files/divider/llm.txt +158 -0
- package/dist/files/divider/tokens.txt +22 -0
- package/dist/files/drawer/Drawer.tsx +491 -0
- package/dist/files/drawer/drawer.css +201 -0
- package/dist/files/drawer/index.ts +13 -0
- package/dist/files/drawer/interface.ts +172 -0
- package/dist/files/drawer/llm.txt +374 -0
- package/dist/files/drawer/tokens.txt +71 -0
- package/dist/files/drawer/variants.ts +14 -0
- package/dist/files/dropdown/Dropdown.tsx +629 -0
- package/dist/files/dropdown/dropdown.css +243 -0
- package/dist/files/dropdown/index.ts +12 -0
- package/dist/files/dropdown/interface.ts +91 -0
- package/dist/files/dropdown/lib.ts +78 -0
- package/dist/files/dropdown/llm.txt +427 -0
- package/dist/files/dropdown/tokens.txt +59 -0
- package/dist/files/form/Form.tsx +229 -0
- package/dist/files/form/FormItem.tsx +526 -0
- package/dist/files/form/_adapter/bindField.ts +189 -0
- package/dist/files/form/_adapter/compileRules.ts +185 -0
- package/dist/files/form/_adapter/controlStatus.ts +23 -0
- package/dist/files/form/_adapter/deriveStatus.ts +42 -0
- package/dist/files/form/_adapter/instance.ts +281 -0
- package/dist/files/form/_adapter/messages.ts +15 -0
- package/dist/files/form/_adapter/types.ts +82 -0
- package/dist/files/form/_adapter/validationMeta.ts +29 -0
- package/dist/files/form/_adapter/validationTransaction.ts +69 -0
- package/dist/files/form/context.ts +38 -0
- package/dist/files/form/form.css +268 -0
- package/dist/files/form/index.ts +13 -0
- package/dist/files/form/interface.ts +99 -0
- package/dist/files/form/llm.txt +346 -0
- package/dist/files/form/tokens.txt +26 -0
- package/dist/files/form/useForm.ts +150 -0
- package/dist/files/form/utils.ts +28 -0
- package/dist/files/form/variants.ts +30 -0
- package/dist/files/global.css +8 -0
- package/dist/files/grid/Col.tsx +104 -0
- package/dist/files/grid/Grid.tsx +18 -0
- package/dist/files/grid/Row.tsx +129 -0
- package/dist/files/grid/grid.css +990 -0
- package/dist/files/grid/index.ts +12 -0
- package/dist/files/grid/interface.ts +109 -0
- package/dist/files/grid/llm.txt +419 -0
- package/dist/files/grid/useBreakpoint.ts +67 -0
- package/dist/files/icon/Icon.tsx +16 -0
- package/dist/files/icon/icon.css +26 -0
- package/dist/files/icon/icons-map.ts +1 -0
- package/dist/files/icon/index.ts +2 -0
- package/dist/files/icon/interface.ts +9 -0
- package/dist/files/icons/ActionIcons.tsx +105 -0
- package/dist/files/icons/AlertCloseIcon.tsx +21 -0
- package/dist/files/icons/CalendarIcon.tsx +6 -0
- package/dist/files/icons/CaretIcons.tsx +43 -0
- package/dist/files/icons/FileFormatIcons.tsx +27 -0
- package/dist/files/icons/Icons.tsx +10 -0
- package/dist/files/icons/MagnifyingGlassIcon.tsx +26 -0
- package/dist/files/icons/MessageIcons.tsx +111 -0
- package/dist/files/icons/NavigationIcons.tsx +126 -0
- package/dist/files/icons/PreviewIcons.tsx +18 -0
- package/dist/files/icons/StarIcons.tsx +71 -0
- package/dist/files/icons/UploadIcons.tsx +167 -0
- package/dist/files/icons/XCloseIcon.tsx +26 -0
- package/dist/files/icons/createAssetIcon.tsx +64 -0
- package/dist/files/icons/icons.css +4 -0
- package/dist/files/icons/index.ts +36 -0
- package/dist/files/icons/interface.ts +9 -0
- package/dist/files/icons/registry.ts +94 -0
- package/dist/files/image/Image.tsx +328 -0
- package/dist/files/image/ImageActionIcons.tsx +60 -0
- package/dist/files/image/ImagePreview.tsx +684 -0
- package/dist/files/image/_adapter/locale.ts +4 -0
- package/dist/files/image/image.css +451 -0
- package/dist/files/image/index.ts +7 -0
- package/dist/files/image/interface.ts +139 -0
- package/dist/files/image/llm.txt +429 -0
- package/dist/files/image/tokens.txt +28 -0
- package/dist/files/input/Input.tsx +261 -0
- package/dist/files/input/icons.tsx +3 -0
- package/dist/files/input/index.ts +12 -0
- package/dist/files/input/input-clear.stories.css +12 -0
- package/dist/files/input/input-size.ts +36 -0
- package/dist/files/input/input.css +366 -0
- package/dist/files/input/interface.ts +204 -0
- package/dist/files/input/lib.ts +51 -0
- package/dist/files/input/llm.txt +419 -0
- package/dist/files/input/tokens.txt +136 -0
- package/dist/files/input/variants.ts +17 -0
- package/dist/files/input-number/InputNumber.tsx +510 -0
- package/dist/files/input-number/icons.tsx +28 -0
- package/dist/files/input-number/index.ts +15 -0
- package/dist/files/input-number/input-number.css +440 -0
- package/dist/files/input-number/interface.ts +269 -0
- package/dist/files/input-number/lib.ts +128 -0
- package/dist/files/input-number/llm.txt +484 -0
- package/dist/files/input-number/tokens.txt +159 -0
- package/dist/files/input-number/variants.ts +27 -0
- package/dist/files/layout/Layout.tsx +360 -0
- package/dist/files/layout/index.ts +21 -0
- package/dist/files/layout/interface.ts +106 -0
- package/dist/files/layout/layout.css +278 -0
- package/dist/files/layout/llm.txt +296 -0
- package/dist/files/layout/tokens.txt +29 -0
- package/dist/files/llms-theme.txt +32 -0
- package/dist/files/llms.txt +895 -0
- package/dist/files/locale/en_US.ts +167 -0
- package/dist/files/locale/zh_CN.ts +166 -0
- package/dist/files/menu/Menu.stories.shared.tsx +85 -0
- package/dist/files/menu/Menu.tsx +713 -0
- package/dist/files/menu/demo/menu-sliding-panel.css +71 -0
- package/dist/files/menu/demo/use-sliding-panel.ts +35 -0
- package/dist/files/menu/icons.tsx +92 -0
- package/dist/files/menu/index.ts +17 -0
- package/dist/files/menu/interface.ts +229 -0
- package/dist/files/menu/lib.ts +160 -0
- package/dist/files/menu/llm.txt +686 -0
- package/dist/files/menu/menu.css +455 -0
- package/dist/files/menu/tokens.txt +87 -0
- package/dist/files/message/Message.tsx +217 -0
- package/dist/files/message/index.ts +2 -0
- package/dist/files/message/interface.ts +149 -0
- package/dist/files/message/lib/constants.ts +18 -0
- package/dist/files/message/lib/helpers.ts +26 -0
- package/dist/files/message/lib/motion.ts +117 -0
- package/dist/files/message/lib/store.ts +72 -0
- package/dist/files/message/llm.txt +301 -0
- package/dist/files/message/message.css +178 -0
- package/dist/files/message/tokens.txt +25 -0
- package/dist/files/modal/Modal.tsx +547 -0
- package/dist/files/modal/_adapter/locale.ts +4 -0
- package/dist/files/modal/index.ts +16 -0
- package/dist/files/modal/interface.ts +368 -0
- package/dist/files/modal/lib/ConfirmDialog.tsx +229 -0
- package/dist/files/modal/lib/confirm.tsx +112 -0
- package/dist/files/modal/lib/confirmIcons.tsx +21 -0
- package/dist/files/modal/lib/useModal.tsx +130 -0
- package/dist/files/modal/llm.txt +586 -0
- package/dist/files/modal/modal-padding.stories.css +22 -0
- package/dist/files/modal/modal.css +322 -0
- package/dist/files/modal/tokens.txt +96 -0
- package/dist/files/modal/variants.ts +41 -0
- package/dist/files/notification/Notification.tsx +354 -0
- package/dist/files/notification/index.ts +8 -0
- package/dist/files/notification/interface.ts +140 -0
- package/dist/files/notification/lib/constants.ts +40 -0
- package/dist/files/notification/lib/helpers.ts +31 -0
- package/dist/files/notification/lib/motion.ts +148 -0
- package/dist/files/notification/lib/store.ts +149 -0
- package/dist/files/notification/llm.txt +386 -0
- package/dist/files/notification/notification.css +416 -0
- package/dist/files/notification/tokens.txt +79 -0
- package/dist/files/pagination/PageButton.tsx +48 -0
- package/dist/files/pagination/PageSizeChanger.tsx +42 -0
- package/dist/files/pagination/Pagination.tsx +308 -0
- package/dist/files/pagination/QuickJumper.tsx +52 -0
- package/dist/files/pagination/TotalText.tsx +28 -0
- package/dist/files/pagination/_adapter/calculate.ts +33 -0
- package/dist/files/pagination/_adapter/locale.ts +4 -0
- package/dist/files/pagination/_adapter/responsive.ts +22 -0
- package/dist/files/pagination/_adapter/types.ts +27 -0
- package/dist/files/pagination/context.ts +15 -0
- package/dist/files/pagination/index.ts +3 -0
- package/dist/files/pagination/interface.ts +55 -0
- package/dist/files/pagination/llm.txt +204 -0
- package/dist/files/pagination/pagination.css +241 -0
- package/dist/files/pagination/tokens.txt +33 -0
- package/dist/files/pagination/useResizeObserver.ts +40 -0
- package/dist/files/pagination/variants.ts +3 -0
- package/dist/files/popover/Popover.tsx +353 -0
- package/dist/files/popover/index.ts +2 -0
- package/dist/files/popover/interface.ts +124 -0
- package/dist/files/popover/llm.txt +235 -0
- package/dist/files/popover/placement.ts +39 -0
- package/dist/files/popover/popover.css +65 -0
- package/dist/files/popover/popover.stories.css +42 -0
- package/dist/files/popover/tokens.txt +28 -0
- package/dist/files/progress/Progress.tsx +213 -0
- package/dist/files/progress/index.ts +4 -0
- package/dist/files/progress/interface.ts +89 -0
- package/dist/files/progress/llm.txt +277 -0
- package/dist/files/progress/progress.css +192 -0
- package/dist/files/progress/tokens.txt +83 -0
- package/dist/files/radio/Radio.tsx +315 -0
- package/dist/files/radio/context.tsx +16 -0
- package/dist/files/radio/helpers.ts +163 -0
- package/dist/files/radio/index.ts +13 -0
- package/dist/files/radio/interface.ts +207 -0
- package/dist/files/radio/llm.txt +344 -0
- package/dist/files/radio/radio.css +137 -0
- package/dist/files/radio/tokens.txt +21 -0
- package/dist/files/radio/variants.ts +20 -0
- package/dist/files/rate/Rate.tsx +199 -0
- package/dist/files/rate/RateItem.tsx +113 -0
- package/dist/files/rate/StarFilled.tsx +19 -0
- package/dist/files/rate/index.ts +11 -0
- package/dist/files/rate/interface.ts +116 -0
- package/dist/files/rate/lib.ts +72 -0
- package/dist/files/rate/llm.txt +237 -0
- package/dist/files/rate/rate.css +126 -0
- package/dist/files/rate/tokens.txt +20 -0
- package/dist/files/rate/variants.ts +19 -0
- package/dist/files/scrollbar.css +148 -0
- package/dist/files/select/Select.tsx +1366 -0
- package/dist/files/select/_adapter/locale.ts +4 -0
- package/dist/files/select/index.ts +17 -0
- package/dist/files/select/interface.ts +494 -0
- package/dist/files/select/llm.txt +828 -0
- package/dist/files/select/select-overflow.stories.css +3 -0
- package/dist/files/select/select.css +443 -0
- package/dist/files/select/tokens.txt +160 -0
- package/dist/files/select/variants.ts +63 -0
- package/dist/files/skeleton/Skeleton.tsx +345 -0
- package/dist/files/skeleton/index.ts +19 -0
- package/dist/files/skeleton/interface.ts +101 -0
- package/dist/files/skeleton/llm.txt +274 -0
- package/dist/files/skeleton/skeleton.css +171 -0
- package/dist/files/skeleton/tokens.txt +15 -0
- package/dist/files/skeleton/variants.ts +40 -0
- package/dist/files/spin/Spin.tsx +197 -0
- package/dist/files/spin/index.ts +2 -0
- package/dist/files/spin/interface.ts +69 -0
- package/dist/files/spin/llm.txt +294 -0
- package/dist/files/spin/spin.css +111 -0
- package/dist/files/spin/tokens.txt +21 -0
- package/dist/files/spin/variants.ts +19 -0
- package/dist/files/steps/Steps.tsx +211 -0
- package/dist/files/steps/index.ts +11 -0
- package/dist/files/steps/interface.ts +155 -0
- package/dist/files/steps/lib.ts +46 -0
- package/dist/files/steps/llm.txt +296 -0
- package/dist/files/steps/steps.css +268 -0
- package/dist/files/steps/tokens.txt +30 -0
- package/dist/files/steps/variants.ts +15 -0
- package/dist/files/switch/Switch.tsx +131 -0
- package/dist/files/switch/index.ts +2 -0
- package/dist/files/switch/interface.ts +92 -0
- package/dist/files/switch/llm.txt +212 -0
- package/dist/files/switch/switch.css +198 -0
- package/dist/files/switch/tokens.txt +38 -0
- package/dist/files/switch/variants.ts +15 -0
- package/dist/files/table/Table.stories.css +56 -0
- package/dist/files/table/Table.tsx +481 -0
- package/dist/files/table/_adapter/locale.ts +4 -0
- package/dist/files/table/constants.ts +7 -0
- package/dist/files/table/context.ts +46 -0
- package/dist/files/table/hooks/useColumnControl.ts +135 -0
- package/dist/files/table/hooks/useColumns.ts +87 -0
- package/dist/files/table/hooks/useExpandable.tsx +271 -0
- package/dist/files/table/hooks/useOverlayScrollbar.ts +304 -0
- package/dist/files/table/hooks/usePagination.ts +110 -0
- package/dist/files/table/hooks/useRowSelection.tsx +250 -0
- package/dist/files/table/hooks/useScrollShadow.ts +66 -0
- package/dist/files/table/hooks/useSkeletonRowCount.ts +78 -0
- package/dist/files/table/hooks/useTableLayoutScale.ts +38 -0
- package/dist/files/table/hooks/useTableModel.ts +91 -0
- package/dist/files/table/index.ts +24 -0
- package/dist/files/table/interface.ts +407 -0
- package/dist/files/table/llm.txt +1050 -0
- package/dist/files/table/parts/TableBody.tsx +396 -0
- package/dist/files/table/parts/TableCell.tsx +123 -0
- package/dist/files/table/parts/TableColgroup.tsx +35 -0
- package/dist/files/table/parts/TableEmpty.tsx +48 -0
- package/dist/files/table/parts/TableEmptyIllustration.tsx +27 -0
- package/dist/files/table/parts/TableHeader.tsx +102 -0
- package/dist/files/table/parts/TablePagination.tsx +46 -0
- package/dist/files/table/parts/TableRow.tsx +42 -0
- package/dist/files/table/parts/TableScrollbars.tsx +79 -0
- package/dist/files/table/parts/TableSkeleton.tsx +47 -0
- package/dist/files/table/parts/TableSummary.tsx +121 -0
- package/dist/files/table/table.css +850 -0
- package/dist/files/table/tokenScopes.ts +28 -0
- package/dist/files/table/tokens.txt +94 -0
- package/dist/files/table/utils/computeMergeGrid.ts +41 -0
- package/dist/files/table/utils/dataModel.ts +45 -0
- package/dist/files/table/utils/getCellValue.ts +7 -0
- package/dist/files/table/utils/getGroupedHeaderSpan.ts +73 -0
- package/dist/files/table/utils/getRowKey.ts +31 -0
- package/dist/files/table/utils/paginationState.ts +31 -0
- package/dist/files/table/utils/prefixSvgIds.ts +6 -0
- package/dist/files/table/utils/scaleFixedOffset.ts +19 -0
- package/dist/files/tabs/Tabs.tsx +140 -0
- package/dist/files/tabs/index.ts +2 -0
- package/dist/files/tabs/interface.ts +117 -0
- package/dist/files/tabs/llm.txt +305 -0
- package/dist/files/tabs/tabs.css +299 -0
- package/dist/files/tabs/tokens.txt +78 -0
- package/dist/files/tabs/variants.ts +51 -0
- package/dist/files/tag/Tag.tsx +180 -0
- package/dist/files/tag/index.ts +8 -0
- package/dist/files/tag/interface.ts +68 -0
- package/dist/files/tag/llm.txt +301 -0
- package/dist/files/tag/tag.css +96 -0
- package/dist/files/tag/tokens.txt +76 -0
- package/dist/files/tag/variants.ts +71 -0
- package/dist/files/theme/aliases.css +217 -0
- package/dist/files/theme/component-tokens.css +2211 -0
- package/dist/files/theme/index.css +4 -0
- package/dist/files/theme/primitives.css +182 -0
- package/dist/files/theme/static.css +13 -0
- package/dist/files/tooltip/Tooltip.tsx +362 -0
- package/dist/files/tooltip/index.ts +7 -0
- package/dist/files/tooltip/interface.ts +118 -0
- package/dist/files/tooltip/llm.txt +308 -0
- package/dist/files/tooltip/placement.ts +51 -0
- package/dist/files/tooltip/tokens.txt +22 -0
- package/dist/files/tooltip/tooltip.css +78 -0
- package/dist/files/tree/Tree.tsx +1069 -0
- package/dist/files/tree/constants.ts +2 -0
- package/dist/files/tree/index.ts +22 -0
- package/dist/files/tree/interface.ts +447 -0
- package/dist/files/tree/llm.txt +501 -0
- package/dist/files/tree/tokens.txt +36 -0
- package/dist/files/tree/tree-data.ts +260 -0
- package/dist/files/tree/tree.css +231 -0
- package/dist/files/tree/variants.ts +25 -0
- package/dist/files/tree-select/TreeSelect.tsx +864 -0
- package/dist/files/tree-select/_adapter/locale.ts +4 -0
- package/dist/files/tree-select/index.ts +23 -0
- package/dist/files/tree-select/interface.ts +415 -0
- package/dist/files/tree-select/llm.txt +754 -0
- package/dist/files/tree-select/tokens.txt +174 -0
- package/dist/files/tree-select/tree-select-data.ts +294 -0
- package/dist/files/tree-select/tree-select.css +303 -0
- package/dist/files/tree-select/variants.ts +42 -0
- package/dist/files/typography/Typography.tsx +739 -0
- package/dist/files/typography/_adapter/locale.ts +4 -0
- package/dist/files/typography/canvasTextMeasure.ts +148 -0
- package/dist/files/typography/index.ts +21 -0
- package/dist/files/typography/interface.ts +154 -0
- package/dist/files/typography/llm.txt +412 -0
- package/dist/files/typography/tokens.txt +60 -0
- package/dist/files/typography/typography.css +312 -0
- package/dist/files/typography/useEllipsisSuffix.ts +245 -0
- package/dist/files/typography/variants.ts +24 -0
- package/dist/files/upload/Upload.stories.css +54 -0
- package/dist/files/upload/Upload.stories.shared.ts +21 -0
- package/dist/files/upload/Upload.tsx +1108 -0
- package/dist/files/upload/UploadActionIcons.tsx +13 -0
- package/dist/files/upload/UploadFileIcon.tsx +52 -0
- package/dist/files/upload/_adapter/locale.ts +4 -0
- package/dist/files/upload/constants.ts +46 -0
- package/dist/files/upload/index.ts +38 -0
- package/dist/files/upload/interface.ts +302 -0
- package/dist/files/upload/lib/file-type.ts +60 -0
- package/dist/files/upload/lib/format-size.ts +6 -0
- package/dist/files/upload/lib/limits.ts +46 -0
- package/dist/files/upload/llm.txt +705 -0
- package/dist/files/upload/tokens.txt +201 -0
- package/dist/files/upload/upload.css +460 -0
- package/dist/files/utils/cn.ts +16 -0
- package/dist/files/utils/env.ts +16 -0
- package/dist/files/utils/normalizeRawSvg.ts +12 -0
- package/dist/manifest.json +580 -0
- package/package.json +29 -4
- package/template/_gitignore +5 -0
- package/template/index.html +12 -0
- package/template/src/App.tsx +25 -0
- package/template/src/main.tsx +14 -0
- package/template/tsconfig.app.json +22 -0
- package/template/tsconfig.json +4 -0
- package/template/tsconfig.node.json +16 -0
- package/template/vite.config.ts +8 -0
|
@@ -0,0 +1,1093 @@
|
|
|
1
|
+
/* ==========================================================================
|
|
2
|
+
DatePicker — 消费 .apex-datepicker.apex-default-datepicker 域内的 --datepicker-* token
|
|
3
|
+
(由 theme/src/component-tokens.css 生成,不在此文件重定义)
|
|
4
|
+
遵循 ADR-0004(data-slot 边界)/ ADR-0005(三层 token chain)
|
|
5
|
+
|
|
6
|
+
hole-1:面板阴影由 theme/src/static.css 的 `.shadow` 类提供(Figma 无法导出)
|
|
7
|
+
hole-2:weekday 表头色无专用 token → 暂用 --datepicker-button-text-disabled
|
|
8
|
+
hole-4:range hover 预览底色无专用 token → 暂复用 --datepicker-button-fill-active
|
|
9
|
+
hole-5:当前指示圆点在格外 4px,避开选中/聚焦框,又不落到下一行
|
|
10
|
+
========================================================================== */
|
|
11
|
+
|
|
12
|
+
@import '../input/input.css';
|
|
13
|
+
|
|
14
|
+
/* ==========================================================================
|
|
15
|
+
§1 根容器 · DatePicker(.apex-datepicker 触发器 wrapper)
|
|
16
|
+
.apex-datepicker.apex-default-datepicker 双 class 是面板 token 作用域来源;
|
|
17
|
+
触发器视觉(padding / fill / stroke / 各态)复用 input.css 的 .apex-input__inner。
|
|
18
|
+
========================================================================== */
|
|
19
|
+
|
|
20
|
+
:where(.apex-datepicker.apex-input) {
|
|
21
|
+
position: relative;
|
|
22
|
+
box-sizing: border-box;
|
|
23
|
+
cursor: pointer;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/* 单日期选择器:root 即布局壳 + .apex-input.apex-default-input,默认宽度在此层解析
|
|
27
|
+
(--input-spacing-width-min,见 component-tokens.css .apex-md-input / .apex-sm-input)。
|
|
28
|
+
min-width:0 覆盖 input.css 的 --input-spacing-width-min,让 root 上的 style={{ width }} 可向下收窄。
|
|
29
|
+
子级 __inner / trigger 填满可用宽度。 */
|
|
30
|
+
.apex-datepicker.apex-input:is(.apex-default-input, .apex-elevated-input):not(.apex-datepicker--range) {
|
|
31
|
+
width: calc(1.1 * var(--input-spacing-width-min));
|
|
32
|
+
height: var(--input-spacing-height);
|
|
33
|
+
min-width: 0;
|
|
34
|
+
max-width: 100%;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/* RangePicker 触发器默认宽度 200px(missing token,待 UI 补 --datepicker-width-range-trigger) */
|
|
38
|
+
.apex-datepicker.apex-input:is(.apex-default-input, .apex-elevated-input).apex-datepicker--range {
|
|
39
|
+
width: calc(2 * var(--input-spacing-width-min));
|
|
40
|
+
height: var(--input-spacing-height);
|
|
41
|
+
min-width: 0;
|
|
42
|
+
max-width: 100%;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.apex-datepicker.apex-input:focus {
|
|
46
|
+
outline: none;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.apex-datepicker__inner.apex-input__inner {
|
|
50
|
+
display: flex;
|
|
51
|
+
align-items: center;
|
|
52
|
+
justify-content: center;
|
|
53
|
+
cursor: pointer;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.apex-datepicker[data-readonly]:not([data-disabled]) .apex-datepicker__inner.apex-input__inner {
|
|
57
|
+
cursor: default;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/* 面板展开态映射到 Input focused 视觉(Popover 打开时焦点在 __inner 外) */
|
|
61
|
+
.apex-datepicker[data-open]:not([data-disabled]):not([data-readonly]) .apex-input__inner,
|
|
62
|
+
.apex-datepicker .apex-input__inner:focus-within:not([data-disabled]):not([data-readonly]) {
|
|
63
|
+
background-color: var(--input-fill-focused);
|
|
64
|
+
border-color: var(--input-stroke-focused);
|
|
65
|
+
color: var(--input-text-filled-focused);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.apex-datepicker[data-open]:not([data-disabled]):not([data-readonly]) .apex-input__inner .apex-input__prefix,
|
|
69
|
+
.apex-datepicker[data-open]:not([data-disabled]):not([data-readonly]) .apex-input__inner .apex-input__suffix,
|
|
70
|
+
.apex-datepicker[data-open]:not([data-disabled]):not([data-readonly]) .apex-input__inner .apex-clear,
|
|
71
|
+
.apex-datepicker
|
|
72
|
+
.apex-input__inner:focus-within:not([data-disabled]):not([data-readonly])
|
|
73
|
+
.apex-input__prefix,
|
|
74
|
+
.apex-datepicker
|
|
75
|
+
.apex-input__inner:focus-within:not([data-disabled]):not([data-readonly])
|
|
76
|
+
.apex-input__suffix,
|
|
77
|
+
.apex-datepicker
|
|
78
|
+
.apex-input__inner:focus-within:not([data-disabled]):not([data-readonly])
|
|
79
|
+
.apex-clear {
|
|
80
|
+
color: var(--input-icon-focused);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/* 只读:focus / hover 保持 default */
|
|
84
|
+
.apex-datepicker[data-readonly]:not([data-disabled]) .apex-input__inner,
|
|
85
|
+
.apex-datepicker[data-readonly]:not([data-disabled]):hover .apex-input__inner,
|
|
86
|
+
.apex-datepicker[data-readonly]:not([data-disabled]) .apex-input__inner:focus-within {
|
|
87
|
+
background-color: var(--input-fill-default);
|
|
88
|
+
border-color: var(--input-stroke-default);
|
|
89
|
+
color: var(--input-text-filled-default);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.apex-datepicker__trigger[data-readonly] {
|
|
93
|
+
cursor: default;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/* ==========================================================================
|
|
97
|
+
§2 触发器 button(字段区,布局对齐 .apex-input__field)
|
|
98
|
+
========================================================================== */
|
|
99
|
+
|
|
100
|
+
/* 双 class 提权:填满 __inner 中 clear / suffix 之外的区域,整块可点 */
|
|
101
|
+
.apex-datepicker__trigger.apex-input__field {
|
|
102
|
+
flex: 1 1 auto;
|
|
103
|
+
min-width: 0;
|
|
104
|
+
width: auto;
|
|
105
|
+
display: flex;
|
|
106
|
+
align-items: center;
|
|
107
|
+
justify-content: flex-start;
|
|
108
|
+
text-align: start;
|
|
109
|
+
cursor: pointer;
|
|
110
|
+
white-space: nowrap;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.apex-datepicker__trigger.apex-input__field:disabled {
|
|
114
|
+
cursor: not-allowed;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.apex-datepicker__trigger--start.apex-input__field,
|
|
118
|
+
.apex-datepicker__trigger--end.apex-input__field {
|
|
119
|
+
flex: 1 1 0;
|
|
120
|
+
min-width: 0;
|
|
121
|
+
width: auto;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/* ==========================================================================
|
|
125
|
+
§3 value / separator / clear(suffix 用 .apex-input__suffix)
|
|
126
|
+
========================================================================== */
|
|
127
|
+
|
|
128
|
+
.apex-datepicker__value {
|
|
129
|
+
display: block;
|
|
130
|
+
flex: 1 1 auto;
|
|
131
|
+
min-width: 0;
|
|
132
|
+
overflow: hidden;
|
|
133
|
+
text-overflow: ellipsis;
|
|
134
|
+
white-space: nowrap;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.apex-datepicker__value--placeholder {
|
|
138
|
+
color: var(--input-text-placeholder-default);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.apex-datepicker .apex-input__inner:hover:not([data-disabled]):not([data-readonly])
|
|
142
|
+
.apex-datepicker__value--placeholder {
|
|
143
|
+
color: var(--input-text-placeholder-hover);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.apex-datepicker .apex-input__inner[data-status='error']:not([data-disabled]):not([data-readonly])
|
|
147
|
+
.apex-datepicker__value--placeholder {
|
|
148
|
+
color: var(--input-text-placeholder-error);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.apex-datepicker .apex-input__inner[data-status='loading']:not([data-disabled]):not([data-readonly])
|
|
152
|
+
.apex-datepicker__value--placeholder {
|
|
153
|
+
color: var(--input-text-placeholder-disabled);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.apex-datepicker .apex-input__inner[data-disabled] .apex-datepicker__value--placeholder {
|
|
157
|
+
color: var(--input-text-placeholder-disabled);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.apex-datepicker .apex-input__inner[data-readonly]:not([data-disabled])
|
|
161
|
+
.apex-datepicker__value--placeholder {
|
|
162
|
+
color: var(--input-text-placeholder-default);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.apex-datepicker__separator {
|
|
166
|
+
flex-shrink: 0;
|
|
167
|
+
padding: 0 var(--input-spacing-gap-x);
|
|
168
|
+
user-select: none;
|
|
169
|
+
color: inherit;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/* Icon 默认渲染 16px,但 DatePicker 尾部槽位应遵循 Input 的 --input-icon-icon。
|
|
173
|
+
与 14px Clear 保持同宽,避免 hover 互换时触发器宽度重排、文字横向跳动。 */
|
|
174
|
+
.apex-datepicker .apex-input__suffix,
|
|
175
|
+
.apex-datepicker .apex-input__suffix .apex-icon,
|
|
176
|
+
.apex-datepicker .apex-input__suffix .apex-icon svg {
|
|
177
|
+
width: var(--input-icon-icon);
|
|
178
|
+
height: var(--input-icon-icon);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
/* Icon 自带默认 color;改为继承 suffix,才能响应 Input 的 hover / focus / error / disabled 色。 */
|
|
182
|
+
.apex-datepicker .apex-input__suffix .apex-icon {
|
|
183
|
+
color: inherit;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
/* RangePicker showTime 打开时:仅拉伸当前编辑字段绘制底部 active bar。
|
|
187
|
+
inner 保持 Input 默认的纵向居中,避免固定高度的 clear / suffix icon 贴到顶部。 */
|
|
188
|
+
.apex-datepicker--range[data-show-time][data-open]:not([data-disabled]):not([data-readonly])
|
|
189
|
+
.apex-datepicker__trigger--start,
|
|
190
|
+
.apex-datepicker--range[data-show-time][data-open]:not([data-disabled]):not([data-readonly])
|
|
191
|
+
.apex-datepicker__trigger--end {
|
|
192
|
+
position: relative;
|
|
193
|
+
align-self: stretch;
|
|
194
|
+
margin-block: 0;
|
|
195
|
+
padding-block: 0;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.apex-datepicker--range[data-show-time][data-open]:not([data-disabled]):not([data-readonly])
|
|
199
|
+
.apex-datepicker__trigger--start[data-active]::after,
|
|
200
|
+
.apex-datepicker--range[data-show-time][data-open]:not([data-disabled]):not([data-readonly])
|
|
201
|
+
.apex-datepicker__trigger--end[data-active]::after {
|
|
202
|
+
content: '';
|
|
203
|
+
position: absolute;
|
|
204
|
+
inset-inline: 0;
|
|
205
|
+
bottom: 0;
|
|
206
|
+
height: 2px;
|
|
207
|
+
background: var(--input-stroke-focused);
|
|
208
|
+
border-radius: var(--apex-radius-1, 1px);
|
|
209
|
+
pointer-events: none;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.apex-datepicker--range[data-show-time][data-open]:not([data-disabled]):not([data-readonly])
|
|
213
|
+
.apex-datepicker__trigger--start[data-active]
|
|
214
|
+
.apex-datepicker__value,
|
|
215
|
+
.apex-datepicker--range[data-show-time][data-open]:not([data-disabled]):not([data-readonly])
|
|
216
|
+
.apex-datepicker__trigger--end[data-active]
|
|
217
|
+
.apex-datepicker__value {
|
|
218
|
+
color: var(--input-text-filled-focused);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.apex-datepicker--range[data-show-time][data-open]:not([data-disabled]):not([data-readonly])
|
|
222
|
+
.apex-datepicker__trigger--start[data-active]
|
|
223
|
+
.apex-datepicker__value--placeholder,
|
|
224
|
+
.apex-datepicker--range[data-show-time][data-open]:not([data-disabled]):not([data-readonly])
|
|
225
|
+
.apex-datepicker__trigger--end[data-active]
|
|
226
|
+
.apex-datepicker__value--placeholder {
|
|
227
|
+
color: var(--input-text-placeholder-focused);
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
/* 有值且 hover 时显示 clear,与日历图标共用尾部槽。 */
|
|
231
|
+
.apex-datepicker .apex-clear {
|
|
232
|
+
display: none;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.apex-datepicker:hover:not([data-disabled]):not([data-readonly]) .apex-clear {
|
|
236
|
+
display: inline-flex;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
/* 显示 clear 时隐藏日历图标 */
|
|
240
|
+
.apex-datepicker:hover:not([data-disabled]):not([data-readonly]) .apex-clear ~ .apex-input__suffix {
|
|
241
|
+
display: none;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
/* Popover portal shell — above Modal/Drawer (default z-index 1000); align with Select dropdown */
|
|
245
|
+
.apex-datepicker__popup {
|
|
246
|
+
z-index: var(--apex-z-index-date-picker, 1050);
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
/* ==========================================================================
|
|
250
|
+
§4 面板根 .apex-datepicker-panel
|
|
251
|
+
面板经 Radix Popover.Portal 挂到 <body>,但 Panel.tsx 已将
|
|
252
|
+
apex-datepicker + apex-default-datepicker 类加到面板根上,
|
|
253
|
+
从而让 component-tokens.css 的 --datepicker-* 在面板内可达。
|
|
254
|
+
========================================================================== */
|
|
255
|
+
|
|
256
|
+
.apex-datepicker-panel {
|
|
257
|
+
display: flex;
|
|
258
|
+
flex-direction: column;
|
|
259
|
+
box-sizing: border-box;
|
|
260
|
+
width: 280px;
|
|
261
|
+
background: var(--datepicker-fill-container-default);
|
|
262
|
+
border: var(--datepicker-stroke-stroke-container) solid var(--datepicker-stroke-container-default);
|
|
263
|
+
border-radius: var(--datepicker-radius-radius-container);
|
|
264
|
+
overflow: hidden;
|
|
265
|
+
outline: none;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
/* showTime:左侧日历固定 280px(与 Basic 一致),右侧时间列额外追加宽度 */
|
|
269
|
+
.apex-datepicker-panel--with-time {
|
|
270
|
+
width: fit-content;
|
|
271
|
+
/* 与左侧日历 body 等高:weekday 1 行 + 6 周行 + 6 段 gap-content */
|
|
272
|
+
--datepicker-time-body-height: calc(
|
|
273
|
+
32px * 7 + var(--datepicker-spacing-gap-content) * 6 + var(--datepicker-spacing-padding-y-content) * 2
|
|
274
|
+
);
|
|
275
|
+
--datepicker-time-col-scrollbar-gap: var(--apex-spacing-2);
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.apex-datepicker-panel__body-row {
|
|
279
|
+
display: flex;
|
|
280
|
+
align-items: stretch;
|
|
281
|
+
width: fit-content;
|
|
282
|
+
flex: 1 1 auto;
|
|
283
|
+
min-height: 0;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.apex-datepicker-panel__calendar-column {
|
|
287
|
+
flex: 0 0 280px;
|
|
288
|
+
width: 280px;
|
|
289
|
+
max-width: 280px;
|
|
290
|
+
display: flex;
|
|
291
|
+
flex-direction: column;
|
|
292
|
+
min-height: 0;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
.apex-datepicker-panel__calendar-column .apex-datepicker-panel__header {
|
|
296
|
+
flex-shrink: 0;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
.apex-datepicker-panel__calendar-column .apex-datepicker-panel__body {
|
|
300
|
+
flex: 1 1 auto;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.apex-datepicker-panel__time-rail {
|
|
304
|
+
display: flex;
|
|
305
|
+
flex-direction: column;
|
|
306
|
+
flex: 0 0 auto;
|
|
307
|
+
width: fit-content;
|
|
308
|
+
align-self: stretch;
|
|
309
|
+
min-height: 0;
|
|
310
|
+
overflow: hidden;
|
|
311
|
+
border-left: var(--datepicker-stroke-stroke-container) solid var(--datepicker-stroke-container-default);
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
.apex-datepicker-panel__time-rail--time-empty::before {
|
|
315
|
+
content: '';
|
|
316
|
+
display: block;
|
|
317
|
+
flex: 0 0 var(--datepicker-spacing-height-header);
|
|
318
|
+
box-sizing: border-box;
|
|
319
|
+
border-bottom: var(--datepicker-stroke-stroke-container) solid var(--datepicker-stroke-container-default);
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
.apex-datepicker-panel__time-shortcut {
|
|
323
|
+
display: flex;
|
|
324
|
+
align-items: center;
|
|
325
|
+
justify-content: center;
|
|
326
|
+
flex: 0 0 var(--datepicker-spacing-height-header);
|
|
327
|
+
box-sizing: border-box;
|
|
328
|
+
width: 100%;
|
|
329
|
+
padding: var(--datepicker-spacing-gap-content) var(--datepicker-spacing-gap-content);
|
|
330
|
+
border-bottom: var(--datepicker-stroke-stroke-container) solid var(--datepicker-stroke-container-default);
|
|
331
|
+
font-size: var(--apex-fontsize-14, 14px);
|
|
332
|
+
line-height: 20px;
|
|
333
|
+
color: var(--datepicker-text-content-default);
|
|
334
|
+
white-space: nowrap;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
/* RangePicker 双面板:纵向外壳 + 横向双栏,总宽 = 单面板 × 2 */
|
|
338
|
+
.apex-datepicker-panel--range {
|
|
339
|
+
flex-direction: column;
|
|
340
|
+
width: calc(280px * 2);
|
|
341
|
+
padding: 0;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
/* Missing width token: Figma shortcut rail is 126px including padding. */
|
|
345
|
+
.apex-datepicker-panel--with-presets {
|
|
346
|
+
--datepicker-width-shortcuts: 126px;
|
|
347
|
+
width: fit-content;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
.apex-datepicker-panel__preset-layout {
|
|
351
|
+
display: flex;
|
|
352
|
+
align-items: stretch;
|
|
353
|
+
min-height: 0;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
/* Absolute list keeps its item count out of the panel's intrinsic height. */
|
|
357
|
+
.apex-datepicker-panel__shortcuts {
|
|
358
|
+
position: relative;
|
|
359
|
+
box-sizing: border-box;
|
|
360
|
+
flex: 0 0 var(--datepicker-width-shortcuts);
|
|
361
|
+
width: var(--datepicker-width-shortcuts);
|
|
362
|
+
min-height: 0;
|
|
363
|
+
border-right: var(--datepicker-stroke-stroke-container) solid var(--datepicker-stroke-container-default);
|
|
364
|
+
border-radius: var(--datepicker-radius-radius-shortcuts) 0 0 var(--datepicker-radius-radius-shortcuts);
|
|
365
|
+
overflow: hidden;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
.apex-datepicker-panel__shortcut-list {
|
|
369
|
+
position: absolute;
|
|
370
|
+
inset: 0;
|
|
371
|
+
display: flex;
|
|
372
|
+
flex-direction: column;
|
|
373
|
+
gap: var(--datepicker-spacing-gap-shortcuts);
|
|
374
|
+
box-sizing: border-box;
|
|
375
|
+
overflow-y: auto;
|
|
376
|
+
/* Token axis names are reversed relative to the confirmed Figma spacing. */
|
|
377
|
+
padding: var(--datepicker-spacing-padding-x-shortcuts) var(--datepicker-spacing-padding-y-shortcuts);
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
.apex-datepicker-panel__shortcut.apex-button {
|
|
381
|
+
flex: 0 0 var(--button-size-height);
|
|
382
|
+
width: 100%;
|
|
383
|
+
min-width: 0;
|
|
384
|
+
justify-content: center;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
.apex-datepicker-panel__shortcut > .apex-button__content {
|
|
388
|
+
min-width: 0;
|
|
389
|
+
max-width: 100%;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
.apex-datepicker-panel__shortcut.apex-button[data-selected]:not(:disabled) {
|
|
393
|
+
background: var(--datepicker-button-fill-selected);
|
|
394
|
+
border-color: var(--datepicker-button-stroke-selected);
|
|
395
|
+
color: var(--datepicker-button-text-selected);
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
.apex-datepicker-panel__shortcut-label {
|
|
399
|
+
display: block;
|
|
400
|
+
min-width: 0;
|
|
401
|
+
overflow: hidden;
|
|
402
|
+
text-overflow: ellipsis;
|
|
403
|
+
white-space: nowrap;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
.apex-datepicker-panel__preset-content {
|
|
407
|
+
display: flex;
|
|
408
|
+
flex-direction: column;
|
|
409
|
+
flex: 0 0 auto;
|
|
410
|
+
min-width: 0;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
/* 嵌套日期时间面板由外层弹窗统一提供边框、圆角和阴影。 */
|
|
414
|
+
.apex-datepicker__popup.apex-datepicker-panel > .apex-datepicker-panel,
|
|
415
|
+
.apex-datepicker-panel__preset-content > .apex-datepicker-panel {
|
|
416
|
+
border: none;
|
|
417
|
+
border-radius: 0;
|
|
418
|
+
box-shadow: none;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
.apex-datepicker-panel--range .apex-datepicker-panel__preset-content {
|
|
422
|
+
width: calc(280px * 2);
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
.apex-datepicker-panel--range.apex-datepicker-panel--with-time {
|
|
426
|
+
width: fit-content;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
.apex-datepicker-panel__range-body {
|
|
430
|
+
display: flex;
|
|
431
|
+
flex-direction: row;
|
|
432
|
+
align-items: stretch;
|
|
433
|
+
flex: 1 1 auto;
|
|
434
|
+
min-width: 0;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
/* ==========================================================================
|
|
438
|
+
§5 双面板 half(RangePicker)
|
|
439
|
+
========================================================================== */
|
|
440
|
+
|
|
441
|
+
.apex-datepicker-panel__half {
|
|
442
|
+
display: flex;
|
|
443
|
+
flex-direction: column;
|
|
444
|
+
flex: 1 1 50%;
|
|
445
|
+
/* 单 half 设计宽 280px;禁止 flex 收缩,否则 decade 等长文案格会被挤爆 */
|
|
446
|
+
min-width: 280px;
|
|
447
|
+
box-sizing: border-box;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
/* 嵌套 Panel 去掉独立面板 chrome,填满 half */
|
|
451
|
+
.apex-datepicker-panel__half > .apex-datepicker-panel {
|
|
452
|
+
width: 100%;
|
|
453
|
+
min-width: 280px;
|
|
454
|
+
flex: 1 1 auto;
|
|
455
|
+
align-self: stretch;
|
|
456
|
+
border: none;
|
|
457
|
+
border-radius: 0;
|
|
458
|
+
box-shadow: none;
|
|
459
|
+
padding: 0;
|
|
460
|
+
overflow: hidden;
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
.apex-datepicker-panel__half--left {
|
|
464
|
+
border-right: var(--datepicker-stroke-stroke-container) solid
|
|
465
|
+
var(--datepicker-stroke-container-default);
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
/* ==========================================================================
|
|
469
|
+
§6 header
|
|
470
|
+
========================================================================== */
|
|
471
|
+
|
|
472
|
+
.apex-datepicker-panel__header {
|
|
473
|
+
display: flex;
|
|
474
|
+
align-items: center;
|
|
475
|
+
justify-content: space-between;
|
|
476
|
+
width: 100%;
|
|
477
|
+
height: var(--datepicker-spacing-height-header);
|
|
478
|
+
padding: 0 var(--datepicker-spacing-padding-x-header);
|
|
479
|
+
border-bottom: var(--datepicker-stroke-stroke-container) solid var(--datepicker-stroke-container-default);
|
|
480
|
+
box-sizing: border-box;
|
|
481
|
+
flex-shrink: 0;
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
.apex-datepicker-panel__header-nav-group {
|
|
485
|
+
display: flex;
|
|
486
|
+
align-items: center;
|
|
487
|
+
gap: var(--datepicker-spacing-gap-icon-header);
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
.apex-datepicker-panel__header-title {
|
|
491
|
+
flex: 1;
|
|
492
|
+
display: flex;
|
|
493
|
+
align-items: center;
|
|
494
|
+
justify-content: center;
|
|
495
|
+
gap: 4px;
|
|
496
|
+
font-size: var(--apex-fontsize-14, 14px);
|
|
497
|
+
font-weight: 400;
|
|
498
|
+
color: var(--datepicker-text-content-default);
|
|
499
|
+
white-space: nowrap;
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
/* nav buttons:外观由 Button type=text size=small 承担,此处仅保留布局 hook */
|
|
503
|
+
.apex-datepicker-panel__nav {
|
|
504
|
+
flex-shrink: 0;
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
/* view-label buttons(点击切换视图层级) */
|
|
508
|
+
.apex-datepicker-panel__view-year,
|
|
509
|
+
.apex-datepicker-panel__view-month,
|
|
510
|
+
.apex-datepicker-panel__view-decade {
|
|
511
|
+
background: none;
|
|
512
|
+
border: 0;
|
|
513
|
+
padding: 0 2px;
|
|
514
|
+
margin: 0;
|
|
515
|
+
cursor: pointer;
|
|
516
|
+
font-size: var(--apex-fontsize-14, 14px);
|
|
517
|
+
font-weight: 400;
|
|
518
|
+
color: var(--datepicker-text-content-default);
|
|
519
|
+
border-radius: var(--apex-radius-4, 4px);
|
|
520
|
+
outline: none;
|
|
521
|
+
transition: background-color 0.15s;
|
|
522
|
+
white-space: nowrap;
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
.apex-datepicker-panel__view-year:hover,
|
|
526
|
+
.apex-datepicker-panel__view-month:hover,
|
|
527
|
+
.apex-datepicker-panel__view-decade:hover {
|
|
528
|
+
background: var(--datepicker-button-fill-hover);
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
.apex-datepicker-panel__header-sep {
|
|
532
|
+
color: var(--datepicker-text-content-default);
|
|
533
|
+
font-size: var(--apex-fontsize-14, 14px);
|
|
534
|
+
font-weight: 400;
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
/* ==========================================================================
|
|
538
|
+
§7 body
|
|
539
|
+
========================================================================== */
|
|
540
|
+
|
|
541
|
+
.apex-datepicker-panel__body {
|
|
542
|
+
display: flex;
|
|
543
|
+
flex-direction: column;
|
|
544
|
+
width: 100%;
|
|
545
|
+
box-sizing: border-box;
|
|
546
|
+
overflow: visible;
|
|
547
|
+
padding: var(--datepicker-spacing-padding-y-content) var(--datepicker-spacing-padding-x-content);
|
|
548
|
+
/* date/week:表头与周行之间、周行之间;今日圆点落在该缝中垂直居中 */
|
|
549
|
+
gap: var(--datepicker-spacing-gap-content);
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
/* ==========================================================================
|
|
553
|
+
§8 date / week 视图:weekdays 表头 + week 行 + day 格
|
|
554
|
+
========================================================================== */
|
|
555
|
+
|
|
556
|
+
.apex-datepicker-panel__weekdays {
|
|
557
|
+
display: grid;
|
|
558
|
+
grid-template-columns: repeat(7, 32px);
|
|
559
|
+
justify-content: space-between;
|
|
560
|
+
align-items: center;
|
|
561
|
+
width: 100%;
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
.apex-datepicker-panel__weekday {
|
|
565
|
+
display: flex;
|
|
566
|
+
align-items: center;
|
|
567
|
+
justify-content: center;
|
|
568
|
+
height: 32px;
|
|
569
|
+
/* hole-2:weekday 表头色无专用 token → 暂用 outside-month */
|
|
570
|
+
color: var(--datepicker-button-text-disabled);
|
|
571
|
+
font-size: var(--apex-fontsize-12, 12px);
|
|
572
|
+
min-width: 0;
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
.apex-datepicker-panel__week {
|
|
576
|
+
display: grid;
|
|
577
|
+
grid-template-columns: repeat(7, 32px);
|
|
578
|
+
justify-content: space-between;
|
|
579
|
+
align-items: center;
|
|
580
|
+
width: 100%;
|
|
581
|
+
overflow: visible;
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
.apex-datepicker-panel__week .apex-datepicker-panel__day {
|
|
585
|
+
width: 32px;
|
|
586
|
+
height: 32px;
|
|
587
|
+
justify-self: center;
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
/* Week 视图:周号 24px + 7×32 日格(248 内容宽刚好排满,与 date 同格宽) */
|
|
591
|
+
.apex-datepicker-panel__weekdays--week,
|
|
592
|
+
.apex-datepicker-panel__week.apex-datepicker-panel__week--week-row {
|
|
593
|
+
grid-template-columns: 24px repeat(7, 32px);
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
.apex-datepicker-panel__week--week-row {
|
|
597
|
+
cursor: pointer;
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
/* 周序号格 */
|
|
601
|
+
.apex-datepicker-panel__weeknum {
|
|
602
|
+
display: flex;
|
|
603
|
+
align-items: center;
|
|
604
|
+
justify-content: center;
|
|
605
|
+
width: 24px;
|
|
606
|
+
height: 32px;
|
|
607
|
+
font-size: var(--apex-fontsize-12, 12px);
|
|
608
|
+
color: var(--datepicker-button-text-disabled);
|
|
609
|
+
flex-shrink: 0;
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
/* day 格:32×32 容器(规格写死,非 token) */
|
|
613
|
+
.apex-datepicker-panel__day {
|
|
614
|
+
position: relative;
|
|
615
|
+
display: inline-flex;
|
|
616
|
+
align-items: center;
|
|
617
|
+
justify-content: center;
|
|
618
|
+
width: 32px;
|
|
619
|
+
height: 32px;
|
|
620
|
+
border-radius: 2px;
|
|
621
|
+
background: transparent;
|
|
622
|
+
border: 0;
|
|
623
|
+
padding: 0;
|
|
624
|
+
margin: 0;
|
|
625
|
+
cursor: pointer;
|
|
626
|
+
font-size: var(--apex-fontsize-14, 14px);
|
|
627
|
+
color: var(--datepicker-text-content-default);
|
|
628
|
+
box-sizing: border-box;
|
|
629
|
+
outline: none;
|
|
630
|
+
flex-shrink: 0;
|
|
631
|
+
overflow: visible;
|
|
632
|
+
transition: color 0.15s;
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
/* 内层 bg 伪元素:24×24 inset box(规格写死 4px inset) */
|
|
636
|
+
.apex-datepicker-panel__day::before {
|
|
637
|
+
content: '';
|
|
638
|
+
position: absolute;
|
|
639
|
+
inset: 4px;
|
|
640
|
+
border-radius: 4px;
|
|
641
|
+
background: transparent;
|
|
642
|
+
transition: background-color 0.15s;
|
|
643
|
+
z-index: 0;
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
/* 文字层在 bg 之上 */
|
|
647
|
+
.apex-datepicker-panel__day-text {
|
|
648
|
+
position: relative;
|
|
649
|
+
z-index: 1;
|
|
650
|
+
line-height: 1;
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
.apex-datepicker-panel__day:hover:not([data-disabled]):not([data-selected]):not(
|
|
654
|
+
[data-range-start]
|
|
655
|
+
):not([data-range-end])::before {
|
|
656
|
+
background: var(--datepicker-button-fill-hover);
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
/* 非本月日 */
|
|
660
|
+
.apex-datepicker-panel__day:not([data-in-month]) {
|
|
661
|
+
color: var(--datepicker-button-text-disabled);
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
/* 今日 / 当前月年:指示圆点。行缝内垂直居中时用 --datepicker-spacing-gap-content */
|
|
665
|
+
.apex-datepicker-panel__day[data-today]::after,
|
|
666
|
+
.apex-datepicker-panel__month[data-current]::after,
|
|
667
|
+
.apex-datepicker-panel__year[data-current]::after,
|
|
668
|
+
.apex-datepicker-panel__quarter[data-current]::after {
|
|
669
|
+
content: '';
|
|
670
|
+
position: absolute;
|
|
671
|
+
left: 50%;
|
|
672
|
+
transform: translateX(-50%);
|
|
673
|
+
width: 4px;
|
|
674
|
+
height: 4px;
|
|
675
|
+
border-radius: 50%;
|
|
676
|
+
background: var(--datepicker-button-fill-selected);
|
|
677
|
+
z-index: 1;
|
|
678
|
+
pointer-events: none;
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
/* date / week 格:圆点在行间 gap-content 内垂直居中(格本身不含该缝) */
|
|
682
|
+
.apex-datepicker-panel__day[data-today]::after {
|
|
683
|
+
top: 100%;
|
|
684
|
+
margin-top: calc((var(--datepicker-spacing-gap-content) - 4px) / 2);
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
/* month / year / quarter pill:圆点在格下方(单行时落入 body 底 padding) */
|
|
688
|
+
.apex-datepicker-panel__month[data-current]::after,
|
|
689
|
+
.apex-datepicker-panel__year[data-current]::after,
|
|
690
|
+
.apex-datepicker-panel__quarter[data-current]::after {
|
|
691
|
+
top: 100%;
|
|
692
|
+
margin-top: calc((var(--datepicker-spacing-padding-y-content) - 4px) / 2);
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
/* 选中态(DatePicker 单日)— 不覆盖 week-pos 的更具体规则 */
|
|
696
|
+
.apex-datepicker-panel__day[data-selected]:not([data-week-pos])::before {
|
|
697
|
+
background: var(--datepicker-button-fill-selected);
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
/* 选中文字色 */
|
|
701
|
+
.apex-datepicker-panel__day[data-selected] {
|
|
702
|
+
color: var(--datepicker-button-text-selected);
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
/* 禁用态 */
|
|
706
|
+
.apex-datepicker-panel__day[data-disabled] {
|
|
707
|
+
color: var(--datepicker-button-text-disabled);
|
|
708
|
+
cursor: not-allowed;
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
.apex-datepicker-panel__day[data-disabled]::before {
|
|
712
|
+
background: transparent;
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
/* 键盘焦点:周选中条带上不画单日描边,否则会切在整周胶囊上 */
|
|
716
|
+
.apex-datepicker-panel__day[data-focused]:not([data-week-pos])::before {
|
|
717
|
+
outline: 2px solid var(--datepicker-button-fill-selected);
|
|
718
|
+
outline-offset: 0;
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
/* ==========================================================================
|
|
722
|
+
§9 RangePicker 范围状态(day 格)
|
|
723
|
+
格 32×32、列间距 4px(248 内容宽);单日高亮 24×24。区间 ::before 向两侧各延伸 2px 填缝。
|
|
724
|
+
========================================================================== */
|
|
725
|
+
|
|
726
|
+
/* 范围起点:左圆端 */
|
|
727
|
+
.apex-datepicker-panel__day[data-range-start] {
|
|
728
|
+
color: var(--datepicker-button-text-selected);
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
.apex-datepicker-panel__day[data-range-start]::before {
|
|
732
|
+
inset: 0 -2px 0 0;
|
|
733
|
+
border-radius: 32px 0 0 32px;
|
|
734
|
+
background: var(--datepicker-button-fill-selected);
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
/* 范围终点:右圆端 */
|
|
738
|
+
.apex-datepicker-panel__day[data-range-end] {
|
|
739
|
+
color: var(--datepicker-button-text-selected);
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
.apex-datepicker-panel__day[data-range-end]::before {
|
|
743
|
+
inset: 0 0 0 -2px;
|
|
744
|
+
border-radius: 0 32px 32px 0;
|
|
745
|
+
background: var(--datepicker-button-fill-selected);
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
/* 起止同一天 */
|
|
749
|
+
.apex-datepicker-panel__day[data-range-start][data-range-end]::before {
|
|
750
|
+
inset: 0;
|
|
751
|
+
border-radius: 32px;
|
|
752
|
+
background: var(--datepicker-button-fill-selected);
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
/* 区间内 / hover 预览:满格方块,无圆角 */
|
|
756
|
+
.apex-datepicker-panel__day[data-in-range]::before,
|
|
757
|
+
.apex-datepicker-panel__day[data-hover-in-range]::before {
|
|
758
|
+
inset: 0 -2px;
|
|
759
|
+
border-radius: 0;
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
.apex-datepicker-panel__day[data-in-range]::before {
|
|
763
|
+
background: var(--datepicker-button-fill-active);
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
/* hover 预览区间(hole-4:暂复用 active-range) */
|
|
767
|
+
.apex-datepicker-panel__day[data-hover-in-range]::before {
|
|
768
|
+
background: var(--datepicker-button-fill-active);
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
/* ==========================================================================
|
|
772
|
+
§9b 周视图选中整行条带
|
|
773
|
+
========================================================================== */
|
|
774
|
+
|
|
775
|
+
/* 周选中:整行文字 selected 色 */
|
|
776
|
+
.apex-datepicker-panel__day[data-selected][data-week-pos] {
|
|
777
|
+
color: var(--datepicker-button-text-selected);
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
/* 周选中:行内 7×32 无列缝,拼成 24px 高连续胶囊 */
|
|
781
|
+
.apex-datepicker-panel__day[data-week-pos='start']::before {
|
|
782
|
+
inset: 4px 0 4px 4px;
|
|
783
|
+
border-radius: 4px 0 0 4px;
|
|
784
|
+
background: var(--datepicker-button-fill-selected);
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
.apex-datepicker-panel__day[data-week-pos='mid']::before {
|
|
788
|
+
inset: 4px 0;
|
|
789
|
+
border-radius: 0;
|
|
790
|
+
background: var(--datepicker-button-fill-selected);
|
|
791
|
+
}
|
|
792
|
+
|
|
793
|
+
.apex-datepicker-panel__day[data-week-pos='end']::before {
|
|
794
|
+
inset: 4px 4px 4px 0;
|
|
795
|
+
border-radius: 0 4px 4px 0;
|
|
796
|
+
background: var(--datepicker-button-fill-selected);
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
/* 覆盖默认 selected::before(防止 inset:4px 覆盖 week-pos 规则) */
|
|
800
|
+
.apex-datepicker-panel__day[data-selected][data-week-pos]::before {
|
|
801
|
+
background: var(--datepicker-button-fill-selected);
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
/* ==========================================================================
|
|
805
|
+
§10 month / year / quarter / decade 视图(pill 样式)
|
|
806
|
+
========================================================================== */
|
|
807
|
+
|
|
808
|
+
/* month: 3 列 × 4 行;64×24。行距与 Figma gap-md-content 同值,复用已有 padding-y-content */
|
|
809
|
+
.apex-datepicker-panel__body--month {
|
|
810
|
+
display: grid;
|
|
811
|
+
grid-template-columns: repeat(3, 64px);
|
|
812
|
+
justify-content: space-between;
|
|
813
|
+
row-gap: var(--datepicker-spacing-padding-y-content);
|
|
814
|
+
column-gap: 0;
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
/* year: 4 列,格宽不超过 64;行距与 month 一致 */
|
|
818
|
+
.apex-datepicker-panel__body--year {
|
|
819
|
+
display: grid;
|
|
820
|
+
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
821
|
+
justify-items: center;
|
|
822
|
+
row-gap: var(--datepicker-spacing-padding-y-content);
|
|
823
|
+
column-gap: var(--datepicker-spacing-gap-content);
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
/* quarter: Figma 1704:2355,单行 4 格 × 64×24。4×64=256,比 248 内容宽多 8px,向两侧各扩 4px */
|
|
827
|
+
.apex-datepicker-panel__body--quarter {
|
|
828
|
+
display: grid;
|
|
829
|
+
grid-template-columns: repeat(4, 64px);
|
|
830
|
+
justify-content: space-between;
|
|
831
|
+
align-items: start;
|
|
832
|
+
width: calc(100% + 8px);
|
|
833
|
+
margin-inline: -4px;
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
/* decade: 3 列 × 4 行(10 格) */
|
|
837
|
+
.apex-datepicker-panel__body--decade {
|
|
838
|
+
display: grid;
|
|
839
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
840
|
+
justify-items: center;
|
|
841
|
+
row-gap: var(--datepicker-spacing-padding-y-content);
|
|
842
|
+
column-gap: var(--datepicker-spacing-gap-content);
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
.apex-datepicker-panel__month,
|
|
846
|
+
.apex-datepicker-panel__year,
|
|
847
|
+
.apex-datepicker-panel__quarter,
|
|
848
|
+
.apex-datepicker-panel__decade {
|
|
849
|
+
position: relative;
|
|
850
|
+
display: inline-flex;
|
|
851
|
+
align-items: center;
|
|
852
|
+
justify-content: center;
|
|
853
|
+
height: 24px;
|
|
854
|
+
border-radius: var(--datepicker-radius-radius-container);
|
|
855
|
+
background: transparent;
|
|
856
|
+
border: 0;
|
|
857
|
+
padding: 0 4px;
|
|
858
|
+
margin: 0;
|
|
859
|
+
cursor: pointer;
|
|
860
|
+
color: var(--datepicker-text-content-default);
|
|
861
|
+
box-sizing: border-box;
|
|
862
|
+
outline: none;
|
|
863
|
+
overflow: visible;
|
|
864
|
+
transition:
|
|
865
|
+
color 0.15s,
|
|
866
|
+
background-color 0.15s;
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
.apex-datepicker-panel__month {
|
|
870
|
+
width: 100%;
|
|
871
|
+
font-size: var(--apex-fontsize-14, 14px);
|
|
872
|
+
line-height: 20px;
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
/* year 格规格 64×24(写死,非 token);列不足 64 时随列宽收缩 */
|
|
876
|
+
.apex-datepicker-panel__year {
|
|
877
|
+
width: 64px;
|
|
878
|
+
max-width: 100%;
|
|
879
|
+
height: 24px;
|
|
880
|
+
}
|
|
881
|
+
|
|
882
|
+
.apex-datepicker-panel__quarter {
|
|
883
|
+
width: 64px;
|
|
884
|
+
max-width: 100%;
|
|
885
|
+
height: 24px;
|
|
886
|
+
white-space: nowrap;
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
/* decade 格:更宽文案,略增高 + 缩小字号(hole:decade-size 待 UI 补 token) */
|
|
890
|
+
.apex-datepicker-panel__decade {
|
|
891
|
+
width: 100%;
|
|
892
|
+
height: 32px;
|
|
893
|
+
font-size: var(--apex-fontsize-12, 12px);
|
|
894
|
+
white-space: nowrap;
|
|
895
|
+
}
|
|
896
|
+
|
|
897
|
+
.apex-datepicker-panel__month:hover:not([data-disabled]):not([data-selected]):not(
|
|
898
|
+
[data-range-start]
|
|
899
|
+
):not([data-range-end]),
|
|
900
|
+
.apex-datepicker-panel__year:hover:not([data-disabled]):not([data-selected]):not(
|
|
901
|
+
[data-range-start]
|
|
902
|
+
):not([data-range-end]),
|
|
903
|
+
.apex-datepicker-panel__quarter:hover:not([data-disabled]):not([data-selected]),
|
|
904
|
+
.apex-datepicker-panel__decade:hover:not([data-disabled]):not([data-selected]) {
|
|
905
|
+
background: var(--datepicker-button-fill-hover);
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
.apex-datepicker-panel__month[data-selected],
|
|
909
|
+
.apex-datepicker-panel__year[data-selected],
|
|
910
|
+
.apex-datepicker-panel__quarter[data-selected],
|
|
911
|
+
.apex-datepicker-panel__decade[data-selected] {
|
|
912
|
+
background: var(--datepicker-button-fill-selected);
|
|
913
|
+
color: var(--datepicker-button-text-selected);
|
|
914
|
+
}
|
|
915
|
+
|
|
916
|
+
/* year / month range(pill 格,无 day 格延伸条带) */
|
|
917
|
+
.apex-datepicker-panel__year[data-range-start],
|
|
918
|
+
.apex-datepicker-panel__year[data-range-end],
|
|
919
|
+
.apex-datepicker-panel__month[data-range-start],
|
|
920
|
+
.apex-datepicker-panel__month[data-range-end] {
|
|
921
|
+
background: var(--datepicker-button-fill-selected);
|
|
922
|
+
color: var(--datepicker-button-text-selected);
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
.apex-datepicker-panel__year[data-in-range],
|
|
926
|
+
.apex-datepicker-panel__year[data-hover-in-range],
|
|
927
|
+
.apex-datepicker-panel__month[data-in-range],
|
|
928
|
+
.apex-datepicker-panel__month[data-hover-in-range] {
|
|
929
|
+
background: var(--datepicker-button-fill-active);
|
|
930
|
+
color: var(--datepicker-button-text-selected);
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
/* 当前十年:用文字色标当前,不用圆点 */
|
|
934
|
+
.apex-datepicker-panel__decade[data-current] {
|
|
935
|
+
color: var(--datepicker-button-fill-selected);
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
.apex-datepicker-panel__month[data-disabled],
|
|
939
|
+
.apex-datepicker-panel__year[data-disabled],
|
|
940
|
+
.apex-datepicker-panel__quarter[data-disabled],
|
|
941
|
+
.apex-datepicker-panel__decade[data-disabled] {
|
|
942
|
+
color: var(--datepicker-button-text-disabled);
|
|
943
|
+
cursor: not-allowed;
|
|
944
|
+
background: transparent;
|
|
945
|
+
}
|
|
946
|
+
|
|
947
|
+
.apex-datepicker-panel__year:not([data-in-decade]):not([data-selected]) {
|
|
948
|
+
color: var(--datepicker-button-text-disabled);
|
|
949
|
+
}
|
|
950
|
+
|
|
951
|
+
.apex-datepicker-panel__month[data-focused],
|
|
952
|
+
.apex-datepicker-panel__year[data-focused],
|
|
953
|
+
.apex-datepicker-panel__quarter[data-focused],
|
|
954
|
+
.apex-datepicker-panel__decade[data-focused] {
|
|
955
|
+
outline: 2px solid var(--datepicker-button-fill-selected);
|
|
956
|
+
outline-offset: -2px;
|
|
957
|
+
}
|
|
958
|
+
|
|
959
|
+
/* ==========================================================================
|
|
960
|
+
§11 time 视图(showTime 启用)
|
|
961
|
+
========================================================================== */
|
|
962
|
+
|
|
963
|
+
.apex-datepicker-panel__time-panel {
|
|
964
|
+
display: flex;
|
|
965
|
+
flex: 0 0 var(--datepicker-time-body-height);
|
|
966
|
+
height: var(--datepicker-time-body-height);
|
|
967
|
+
gap: 0;
|
|
968
|
+
min-height: 0;
|
|
969
|
+
padding: var(--datepicker-time-col-scrollbar-gap) 0;
|
|
970
|
+
box-sizing: border-box;
|
|
971
|
+
align-items: stretch;
|
|
972
|
+
overflow: hidden;
|
|
973
|
+
}
|
|
974
|
+
|
|
975
|
+
.apex-datepicker-panel__time-col {
|
|
976
|
+
flex: 0 0 calc(32px + var(--datepicker-spacing-gap-content) * 2);
|
|
977
|
+
width: calc(32px + var(--datepicker-spacing-gap-content) * 2);
|
|
978
|
+
height: 100%;
|
|
979
|
+
min-height: 0;
|
|
980
|
+
box-sizing: border-box;
|
|
981
|
+
overflow-y: scroll;
|
|
982
|
+
overflow-x: hidden;
|
|
983
|
+
scroll-behavior: smooth;
|
|
984
|
+
scroll-padding-block: var(--datepicker-time-col-scrollbar-gap);
|
|
985
|
+
margin-right: var(--datepicker-time-col-scrollbar-gap);
|
|
986
|
+
/* 盖过 scrollbar.css 的 scrollbar-color: auto + dark color-scheme 原生黑轨 */
|
|
987
|
+
scrollbar-width: thin;
|
|
988
|
+
scrollbar-color: var(--scrollbar-fill-thumb-default, var(--apex-fill-neutral-quinary)) transparent;
|
|
989
|
+
}
|
|
990
|
+
|
|
991
|
+
.apex-datepicker-panel .apex-datepicker-panel__time-col.apex-scrollbar::-webkit-scrollbar,
|
|
992
|
+
.apex-datepicker-panel .apex-datepicker-panel__time-col.apex-scrollbar::-webkit-scrollbar-track,
|
|
993
|
+
.apex-datepicker-panel .apex-datepicker-panel__time-col.apex-scrollbar::-webkit-scrollbar-corner {
|
|
994
|
+
background-color: transparent;
|
|
995
|
+
}
|
|
996
|
+
|
|
997
|
+
@media (prefers-reduced-motion: reduce) {
|
|
998
|
+
.apex-datepicker-panel__time-col {
|
|
999
|
+
scroll-behavior: auto;
|
|
1000
|
+
}
|
|
1001
|
+
}
|
|
1002
|
+
|
|
1003
|
+
.apex-datepicker-panel__time-col-divider {
|
|
1004
|
+
flex: 0 0 var(--datepicker-stroke-stroke-container);
|
|
1005
|
+
width: var(--datepicker-stroke-stroke-container);
|
|
1006
|
+
align-self: stretch;
|
|
1007
|
+
background: var(--datepicker-stroke-container-default);
|
|
1008
|
+
}
|
|
1009
|
+
|
|
1010
|
+
.apex-datepicker-panel__time-list {
|
|
1011
|
+
list-style: none;
|
|
1012
|
+
margin: 0;
|
|
1013
|
+
padding: 0;
|
|
1014
|
+
/* 底部留白 = 列高 - 单行高,使 59 等末项也能滚到第一行(对齐 antd) */
|
|
1015
|
+
padding-bottom: calc(
|
|
1016
|
+
var(--datepicker-time-body-height) - var(--datepicker-time-col-scrollbar-gap) * 2 - 32px
|
|
1017
|
+
);
|
|
1018
|
+
width: 100%;
|
|
1019
|
+
display: flex;
|
|
1020
|
+
flex-direction: column;
|
|
1021
|
+
align-items: center;
|
|
1022
|
+
box-sizing: border-box;
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
/* 与 date 网格 __day 一致:32×32、无 margin,选中/hover 复用 __day 规则。
|
|
1026
|
+
时间格没有 data-in-month,需覆盖「非本月」灰色,默认用 content-default(暗色主题即白色)。 */
|
|
1027
|
+
.apex-datepicker-panel__time-list .apex-datepicker-panel__day {
|
|
1028
|
+
width: 32px;
|
|
1029
|
+
height: 32px;
|
|
1030
|
+
margin: 0;
|
|
1031
|
+
flex-shrink: 0;
|
|
1032
|
+
color: var(--datepicker-text-content-default);
|
|
1033
|
+
}
|
|
1034
|
+
|
|
1035
|
+
.apex-datepicker-panel__time-list .apex-datepicker-panel__day[data-selected] {
|
|
1036
|
+
color: var(--datepicker-button-text-selected);
|
|
1037
|
+
}
|
|
1038
|
+
|
|
1039
|
+
/* ==========================================================================
|
|
1040
|
+
§12 footer
|
|
1041
|
+
========================================================================== */
|
|
1042
|
+
|
|
1043
|
+
.apex-datepicker-panel__footer {
|
|
1044
|
+
display: flex;
|
|
1045
|
+
align-items: center;
|
|
1046
|
+
justify-content: flex-end;
|
|
1047
|
+
width: 100%;
|
|
1048
|
+
border-top: var(--datepicker-stroke-stroke-container) solid var(--datepicker-stroke-container-default);
|
|
1049
|
+
padding: var(--datepicker-spacing-padding-y-footer) var(--datepicker-spacing-padding-x-footer);
|
|
1050
|
+
box-sizing: border-box;
|
|
1051
|
+
flex-shrink: 0;
|
|
1052
|
+
min-height: var(--datepicker-spacing-height-footer);
|
|
1053
|
+
}
|
|
1054
|
+
|
|
1055
|
+
.apex-datepicker-panel__footer--today-only {
|
|
1056
|
+
justify-content: center;
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1059
|
+
.apex-datepicker-panel__footer--with-today {
|
|
1060
|
+
justify-content: space-between;
|
|
1061
|
+
}
|
|
1062
|
+
|
|
1063
|
+
.apex-datepicker-panel__footer-actions {
|
|
1064
|
+
display: flex;
|
|
1065
|
+
align-items: center;
|
|
1066
|
+
gap: var(--datepicker-spacing-gap-content);
|
|
1067
|
+
flex-shrink: 0;
|
|
1068
|
+
}
|
|
1069
|
+
|
|
1070
|
+
.apex-datepicker-panel__today {
|
|
1071
|
+
background: none;
|
|
1072
|
+
border: 0;
|
|
1073
|
+
padding: 1px 4px;
|
|
1074
|
+
margin: 0;
|
|
1075
|
+
cursor: pointer;
|
|
1076
|
+
font-size: var(--apex-fontsize-14, 14px);
|
|
1077
|
+
border-radius: var(--apex-radius-2, 2px);
|
|
1078
|
+
outline: none;
|
|
1079
|
+
transition: background-color 0.15s;
|
|
1080
|
+
}
|
|
1081
|
+
|
|
1082
|
+
/* 今天:下划线链接样式 */
|
|
1083
|
+
.apex-datepicker-panel__today {
|
|
1084
|
+
color: var(--datepicker-text-content-default);
|
|
1085
|
+
text-decoration: underline;
|
|
1086
|
+
text-underline-offset: 2px;
|
|
1087
|
+
}
|
|
1088
|
+
|
|
1089
|
+
.apex-datepicker-panel__today:hover {
|
|
1090
|
+
background: var(--datepicker-button-fill-hover);
|
|
1091
|
+
}
|
|
1092
|
+
|
|
1093
|
+
/* confirm 使用 apex-button type=primary,视觉由 Button 组件承担 */
|