naive-ui 2.18.0 → 2.19.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/es/_internal/clear/src/Clear.d.ts +1 -4
- package/es/_internal/clear/src/Clear.js +1 -4
- package/es/_internal/icons/Checkmark.js +3 -2
- package/es/_internal/select-menu/src/SelectMenu.d.ts +173 -0
- package/es/_internal/select-menu/src/SelectMenu.js +9 -6
- package/es/_internal/select-menu/src/SelectOption.js +2 -1
- package/es/_internal/select-menu/src/styles/index.cssr.js +32 -28
- package/es/_internal/select-menu/styles/light.d.ts +2 -0
- package/es/_internal/select-menu/styles/light.js +1 -1
- package/es/_internal/selection/src/Selection.d.ts +8 -0
- package/es/_internal/selection/src/Selection.js +34 -14
- package/es/_internal/selection/src/styles/index.cssr.js +16 -14
- package/es/_internal/selection/styles/_common.d.ts +1 -0
- package/es/_internal/selection/styles/_common.js +2 -1
- package/es/_internal/selection/styles/light.d.ts +2 -0
- package/es/_styles/common/light.js +1 -1
- package/es/_utils/naive/mutable.d.ts +2 -2
- package/es/anchor/src/AnchorAdapter.d.ts +13 -8
- package/es/anchor/src/AnchorAdapter.js +3 -5
- package/es/anchor/src/BaseAnchor.d.ts +14 -1
- package/es/anchor/src/BaseAnchor.js +20 -7
- package/es/anchor/src/Link.js +5 -5
- package/es/anchor/src/styles/index.cssr.js +25 -16
- package/es/auto-complete/index.d.ts +1 -0
- package/es/auto-complete/src/AutoComplete.d.ts +10 -0
- package/es/auto-complete/src/interface.d.ts +1 -1
- package/es/auto-complete/styles/light.d.ts +1 -0
- package/es/badge/src/styles/index.cssr.js +1 -0
- package/es/card/src/Card.d.ts +17 -1
- package/es/card/src/Card.js +3 -2
- package/es/card/styles/dark.js +6 -1
- package/es/card/styles/light.d.ts +1 -0
- package/es/card/styles/light.js +2 -2
- package/es/cascader/src/Cascader.d.ts +20 -0
- package/es/cascader/src/Cascader.js +28 -19
- package/es/cascader/src/CascaderMenu.js +17 -15
- package/es/cascader/src/CascaderOption.d.ts +2 -0
- package/es/cascader/src/CascaderSelectMenu.d.ts +2 -0
- package/es/cascader/src/CascaderSubmenu.d.ts +2 -0
- package/es/cascader/src/interface.d.ts +2 -2
- package/es/cascader/src/styles/index.cssr.js +6 -1
- package/es/cascader/styles/light.d.ts +2 -0
- package/es/composables/use-theme-vars.js +5 -5
- package/es/config-provider/src/internal-interface.d.ts +2 -0
- package/es/data-table/src/DataTable.d.ts +22 -0
- package/es/data-table/src/HeaderButton/FilterButton.d.ts +4 -0
- package/es/data-table/src/HeaderButton/FilterMenu.d.ts +4 -0
- package/es/data-table/src/TableParts/Body.d.ts +4 -0
- package/es/data-table/src/TableParts/Cell.d.ts +8 -0
- package/es/data-table/src/TableParts/Header.d.ts +4 -0
- package/es/data-table/styles/light.d.ts +2 -0
- package/es/date-picker/src/DatePicker.d.ts +8 -3
- package/es/date-picker/src/DatePicker.js +2 -2
- package/es/date-picker/src/panel/date.d.ts +3 -3
- package/es/date-picker/src/panel/date.js +10 -1
- package/es/date-picker/src/panel/daterange.js +10 -1
- package/es/date-picker/src/panel/datetimerange.js +10 -1
- package/es/descriptions/src/Descriptions.d.ts +4 -17
- package/es/descriptions/src/Descriptions.js +2 -8
- package/es/dialog/src/Dialog.d.ts +4 -16
- package/es/dialog/src/Dialog.js +2 -8
- package/es/dialog/src/DialogEnvironment.d.ts +28 -36
- package/es/dialog/src/DialogEnvironment.js +2 -2
- package/es/dialog/src/DialogProvider.d.ts +18 -15
- package/es/dialog/src/DialogProvider.js +2 -1
- package/es/dropdown/src/Dropdown.d.ts +9 -23
- package/es/dynamic-tags/src/DynamicTags.js +2 -1
- package/es/empty/src/Empty.d.ts +6 -1
- package/es/empty/src/Empty.js +16 -4
- package/es/form/src/FormItemGridItem.d.ts +1 -1
- package/es/form/src/FormItemGridItem.js +2 -2
- package/es/grid/src/GridItem.d.ts +2 -2
- package/es/grid/src/GridItem.js +1 -1
- package/es/input-number/src/InputNumber.d.ts +5 -0
- package/es/input-number/src/InputNumber.js +9 -8
- package/es/layout/src/Layout.d.ts +18 -4
- package/es/layout/src/LayoutContent.d.ts +9 -2
- package/es/layout/src/LayoutFooter.d.ts +9 -0
- package/es/layout/src/LayoutHeader.d.ts +6 -0
- package/es/layout/src/LayoutSider.d.ts +11 -0
- package/es/layout/src/LayoutSider.js +4 -2
- package/es/layout/src/ToggleButton.js +7 -3
- package/es/layout/src/styles/layout-sider.cssr.js +31 -15
- package/es/layout/styles/dark.js +3 -2
- package/es/layout/styles/light.d.ts +2 -0
- package/es/layout/styles/light.js +3 -2
- package/es/locales/common/enUS.js +1 -1
- package/es/locales/common/ruRU.js +1 -1
- package/es/locales/common/zhCN.js +1 -1
- package/es/mention/src/Mention.d.ts +10 -0
- package/es/mention/styles/light.d.ts +1 -0
- package/es/menu/src/Menu.d.ts +6 -1
- package/es/menu/src/Menu.js +10 -1
- package/es/menu/src/MenuOption.d.ts +3 -1
- package/es/menu/src/MenuOptionContent.d.ts +3 -1
- package/es/menu/src/Submenu.d.ts +3 -1
- package/es/modal/src/BodyWrapper.d.ts +7 -8
- package/es/modal/src/Modal.d.ts +40 -71
- package/es/modal/src/Modal.js +18 -39
- package/es/modal/src/presetProps.d.ts +4 -9
- package/es/modal/styles/light.d.ts +1 -0
- package/es/notification/src/Notification.d.ts +1 -1
- package/es/notification/src/NotificationEnvironment.d.ts +1 -1
- package/es/notification/src/NotificationProvider.d.ts +16 -16
- package/es/page-header/src/PageHeader.d.ts +1 -0
- package/es/page-header/src/PageHeader.js +8 -2
- package/es/page-header/src/styles/rtl.cssr.d.ts +2 -0
- package/es/page-header/src/styles/rtl.cssr.js +19 -0
- package/es/page-header/styles/index.d.ts +1 -0
- package/es/page-header/styles/index.js +1 -0
- package/es/page-header/styles/rtl.d.ts +5 -0
- package/es/page-header/styles/rtl.js +5 -0
- package/es/pagination/src/Pagination.d.ts +23 -1
- package/es/pagination/styles/light.d.ts +2 -0
- package/es/popconfirm/src/Popconfirm.d.ts +8 -22
- package/es/popover/src/Popover.d.ts +12 -32
- package/es/popover/src/Popover.js +25 -18
- package/es/popover/src/PopoverBody.d.ts +2 -2
- package/es/popover/src/PopoverBody.js +4 -2
- package/es/popselect/src/Popselect.d.ts +18 -22
- package/es/popselect/src/PopselectPanel.d.ts +1 -0
- package/es/popselect/src/PopselectPanel.js +38 -19
- package/es/popselect/styles/light.d.ts +1 -0
- package/es/select/src/Select.d.ts +31 -3
- package/es/select/src/Select.js +55 -56
- package/es/select/src/interface.d.ts +2 -2
- package/es/select/styles/light.d.ts +2 -0
- package/es/spin/src/Spin.d.ts +34 -25
- package/es/spin/src/Spin.js +27 -20
- package/es/spin/src/styles/index.cssr.js +23 -9
- package/es/spin/styles/light.d.ts +2 -0
- package/es/spin/styles/light.js +3 -1
- package/es/steps/src/Steps.js +2 -2
- package/es/styles.d.ts +1 -0
- package/es/styles.js +1 -0
- package/es/tabs/src/Tab.d.ts +1 -1
- package/es/tabs/src/Tab.js +4 -6
- package/es/tabs/src/Tabs.d.ts +133 -42
- package/es/tabs/src/Tabs.js +37 -38
- package/es/tabs/src/interface.d.ts +2 -1
- package/es/tabs/src/styles/index.cssr.js +34 -10
- package/es/tabs/styles/_common.d.ts +6 -0
- package/es/tabs/styles/_common.js +6 -0
- package/es/tabs/styles/dark.js +7 -1
- package/es/tabs/styles/light.d.ts +13 -0
- package/es/tabs/styles/light.js +3 -3
- package/es/tag/src/styles/index.cssr.js +1 -1
- package/es/time/src/Time.d.ts +14 -22
- package/es/time/src/Time.js +32 -18
- package/es/time-picker/src/TimePicker.d.ts +5 -0
- package/es/time-picker/src/TimePicker.js +2 -2
- package/es/timeline/src/Timeline.d.ts +67 -0
- package/es/timeline/src/Timeline.js +1 -1
- package/es/timeline/src/TimelineItem.d.ts +2 -0
- package/es/timeline/src/TimelineItem.js +11 -11
- package/es/timeline/src/styles/index.cssr.js +26 -17
- package/es/timeline/styles/_common.d.ts +2 -0
- package/es/timeline/styles/_common.js +3 -1
- package/es/timeline/styles/dark.js +1 -1
- package/es/timeline/styles/light.d.ts +7 -0
- package/es/timeline/styles/light.js +1 -1
- package/es/tooltip/src/Tooltip.d.ts +8 -22
- package/es/transfer/src/TransferList.d.ts +1 -1
- package/es/tree/src/Tree.d.ts +25 -10
- package/es/tree/src/Tree.js +34 -11
- package/es/tree/src/TreeNode.js +5 -2
- package/es/tree/src/interface.d.ts +2 -2
- package/es/tree-select/src/TreeSelect.d.ts +23 -1
- package/es/tree-select/src/TreeSelect.js +36 -40
- package/es/tree-select/src/interface.d.ts +2 -2
- package/es/tree-select/styles/light.d.ts +1 -0
- package/es/typography/src/blockquote.d.ts +2 -8
- package/es/typography/src/blockquote.js +1 -4
- package/es/typography/src/ol.d.ts +2 -8
- package/es/typography/src/ol.js +1 -4
- package/es/typography/src/p.d.ts +2 -2
- package/es/typography/src/p.js +1 -1
- package/es/typography/src/text.d.ts +14 -58
- package/es/typography/src/text.js +2 -23
- package/es/typography/src/ul.d.ts +2 -8
- package/es/typography/src/ul.js +1 -4
- package/es/upload/index.d.ts +2 -0
- package/es/upload/index.js +2 -0
- package/es/upload/src/Upload.d.ts +16 -68
- package/es/upload/src/Upload.js +71 -98
- package/es/upload/src/UploadDragger.js +7 -1
- package/es/upload/src/UploadFileList.d.ts +2 -0
- package/es/upload/src/UploadFileList.js +34 -0
- package/es/upload/src/UploadProgress.d.ts +0 -7
- package/es/upload/src/UploadProgress.js +1 -5
- package/es/upload/src/UploadTrigger.d.ts +12 -0
- package/es/upload/src/UploadTrigger.js +63 -0
- package/es/upload/src/interface.d.ts +13 -2
- package/es/upload/src/styles/index.cssr.js +40 -32
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/_internal/clear/src/Clear.d.ts +1 -4
- package/lib/_internal/clear/src/Clear.js +1 -4
- package/lib/_internal/icons/Checkmark.js +3 -2
- package/lib/_internal/select-menu/src/SelectMenu.d.ts +173 -0
- package/lib/_internal/select-menu/src/SelectMenu.js +9 -6
- package/lib/_internal/select-menu/src/SelectOption.js +2 -1
- package/lib/_internal/select-menu/src/styles/index.cssr.js +32 -28
- package/lib/_internal/select-menu/styles/light.d.ts +2 -0
- package/lib/_internal/select-menu/styles/light.js +1 -1
- package/lib/_internal/selection/src/Selection.d.ts +8 -0
- package/lib/_internal/selection/src/Selection.js +34 -14
- package/lib/_internal/selection/src/styles/index.cssr.js +16 -14
- package/lib/_internal/selection/styles/_common.d.ts +1 -0
- package/lib/_internal/selection/styles/_common.js +2 -1
- package/lib/_internal/selection/styles/light.d.ts +2 -0
- package/lib/_styles/common/light.js +1 -1
- package/lib/_utils/naive/mutable.d.ts +2 -2
- package/lib/anchor/src/AnchorAdapter.d.ts +13 -8
- package/lib/anchor/src/AnchorAdapter.js +3 -5
- package/lib/anchor/src/BaseAnchor.d.ts +14 -1
- package/lib/anchor/src/BaseAnchor.js +19 -6
- package/lib/anchor/src/Link.js +5 -5
- package/lib/anchor/src/styles/index.cssr.js +25 -16
- package/lib/auto-complete/index.d.ts +1 -0
- package/lib/auto-complete/src/AutoComplete.d.ts +10 -0
- package/lib/auto-complete/src/interface.d.ts +1 -1
- package/lib/auto-complete/styles/light.d.ts +1 -0
- package/lib/badge/src/styles/index.cssr.js +1 -0
- package/lib/card/src/Card.d.ts +17 -1
- package/lib/card/src/Card.js +3 -2
- package/lib/card/styles/dark.js +6 -1
- package/lib/card/styles/light.d.ts +1 -0
- package/lib/card/styles/light.js +2 -2
- package/lib/cascader/src/Cascader.d.ts +20 -0
- package/lib/cascader/src/Cascader.js +28 -19
- package/lib/cascader/src/CascaderMenu.js +16 -14
- package/lib/cascader/src/CascaderOption.d.ts +2 -0
- package/lib/cascader/src/CascaderSelectMenu.d.ts +2 -0
- package/lib/cascader/src/CascaderSubmenu.d.ts +2 -0
- package/lib/cascader/src/interface.d.ts +2 -2
- package/lib/cascader/src/styles/index.cssr.js +6 -1
- package/lib/cascader/styles/light.d.ts +2 -0
- package/lib/composables/use-theme-vars.js +5 -5
- package/lib/config-provider/src/internal-interface.d.ts +2 -0
- package/lib/data-table/src/DataTable.d.ts +22 -0
- package/lib/data-table/src/HeaderButton/FilterButton.d.ts +4 -0
- package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +4 -0
- package/lib/data-table/src/TableParts/Body.d.ts +4 -0
- package/lib/data-table/src/TableParts/Cell.d.ts +8 -0
- package/lib/data-table/src/TableParts/Header.d.ts +4 -0
- package/lib/data-table/styles/light.d.ts +2 -0
- package/lib/date-picker/src/DatePicker.d.ts +8 -3
- package/lib/date-picker/src/DatePicker.js +2 -2
- package/lib/date-picker/src/panel/date.d.ts +3 -3
- package/lib/date-picker/src/panel/date.js +9 -0
- package/lib/date-picker/src/panel/daterange.js +9 -0
- package/lib/date-picker/src/panel/datetimerange.js +9 -0
- package/lib/descriptions/src/Descriptions.d.ts +4 -17
- package/lib/descriptions/src/Descriptions.js +2 -8
- package/lib/dialog/src/Dialog.d.ts +4 -16
- package/lib/dialog/src/Dialog.js +2 -8
- package/lib/dialog/src/DialogEnvironment.d.ts +28 -36
- package/lib/dialog/src/DialogEnvironment.js +2 -2
- package/lib/dialog/src/DialogProvider.d.ts +18 -15
- package/lib/dialog/src/DialogProvider.js +2 -1
- package/lib/dropdown/src/Dropdown.d.ts +9 -23
- package/lib/dynamic-tags/src/DynamicTags.js +2 -1
- package/lib/empty/src/Empty.d.ts +6 -1
- package/lib/empty/src/Empty.js +15 -3
- package/lib/form/src/FormItemGridItem.d.ts +1 -1
- package/lib/form/src/FormItemGridItem.js +2 -2
- package/lib/grid/src/GridItem.d.ts +2 -2
- package/lib/grid/src/GridItem.js +1 -1
- package/lib/input-number/src/InputNumber.d.ts +5 -0
- package/lib/input-number/src/InputNumber.js +9 -8
- package/lib/layout/src/Layout.d.ts +18 -4
- package/lib/layout/src/LayoutContent.d.ts +9 -2
- package/lib/layout/src/LayoutFooter.d.ts +9 -0
- package/lib/layout/src/LayoutHeader.d.ts +6 -0
- package/lib/layout/src/LayoutSider.d.ts +11 -0
- package/lib/layout/src/LayoutSider.js +4 -2
- package/lib/layout/src/ToggleButton.js +7 -3
- package/lib/layout/src/styles/layout-sider.cssr.js +31 -15
- package/lib/layout/styles/dark.js +3 -2
- package/lib/layout/styles/light.d.ts +2 -0
- package/lib/layout/styles/light.js +3 -2
- package/lib/locales/common/enUS.js +1 -1
- package/lib/locales/common/ruRU.js +1 -1
- package/lib/locales/common/zhCN.js +1 -1
- package/lib/mention/src/Mention.d.ts +10 -0
- package/lib/mention/styles/light.d.ts +1 -0
- package/lib/menu/src/Menu.d.ts +6 -1
- package/lib/menu/src/Menu.js +10 -1
- package/lib/menu/src/MenuOption.d.ts +3 -1
- package/lib/menu/src/MenuOptionContent.d.ts +3 -1
- package/lib/menu/src/Submenu.d.ts +3 -1
- package/lib/modal/src/BodyWrapper.d.ts +7 -8
- package/lib/modal/src/Modal.d.ts +40 -71
- package/lib/modal/src/Modal.js +17 -38
- package/lib/modal/src/presetProps.d.ts +4 -9
- package/lib/modal/styles/light.d.ts +1 -0
- package/lib/notification/src/Notification.d.ts +1 -1
- package/lib/notification/src/NotificationEnvironment.d.ts +1 -1
- package/lib/notification/src/NotificationProvider.d.ts +16 -16
- package/lib/page-header/src/PageHeader.d.ts +1 -0
- package/lib/page-header/src/PageHeader.js +8 -2
- package/lib/page-header/src/styles/rtl.cssr.d.ts +2 -0
- package/lib/page-header/src/styles/rtl.cssr.js +26 -0
- package/lib/page-header/styles/index.d.ts +1 -0
- package/lib/page-header/styles/index.js +3 -1
- package/lib/page-header/styles/rtl.d.ts +5 -0
- package/lib/page-header/styles/rtl.js +7 -0
- package/lib/pagination/src/Pagination.d.ts +23 -1
- package/lib/pagination/styles/light.d.ts +2 -0
- package/lib/popconfirm/src/Popconfirm.d.ts +8 -22
- package/lib/popover/src/Popover.d.ts +12 -32
- package/lib/popover/src/Popover.js +23 -16
- package/lib/popover/src/PopoverBody.d.ts +2 -2
- package/lib/popover/src/PopoverBody.js +4 -2
- package/lib/popselect/src/Popselect.d.ts +18 -22
- package/lib/popselect/src/PopselectPanel.d.ts +1 -0
- package/lib/popselect/src/PopselectPanel.js +38 -19
- package/lib/popselect/styles/light.d.ts +1 -0
- package/lib/select/src/Select.d.ts +31 -3
- package/lib/select/src/Select.js +55 -56
- package/lib/select/src/interface.d.ts +2 -2
- package/lib/select/styles/light.d.ts +2 -0
- package/lib/spin/src/Spin.d.ts +34 -25
- package/lib/spin/src/Spin.js +25 -18
- package/lib/spin/src/styles/index.cssr.js +23 -9
- package/lib/spin/styles/light.d.ts +2 -0
- package/lib/spin/styles/light.js +3 -1
- package/lib/steps/src/Steps.js +1 -1
- package/lib/styles.d.ts +1 -0
- package/lib/styles.js +63 -61
- package/lib/tabs/src/Tab.d.ts +1 -1
- package/lib/tabs/src/Tab.js +4 -6
- package/lib/tabs/src/Tabs.d.ts +133 -42
- package/lib/tabs/src/Tabs.js +36 -37
- package/lib/tabs/src/interface.d.ts +2 -1
- package/lib/tabs/src/styles/index.cssr.js +34 -10
- package/lib/tabs/styles/_common.d.ts +6 -0
- package/lib/tabs/styles/_common.js +6 -0
- package/lib/tabs/styles/dark.js +7 -1
- package/lib/tabs/styles/light.d.ts +13 -0
- package/lib/tabs/styles/light.js +3 -3
- package/lib/tag/src/styles/index.cssr.js +1 -1
- package/lib/time/src/Time.d.ts +14 -22
- package/lib/time/src/Time.js +31 -17
- package/lib/time-picker/src/TimePicker.d.ts +5 -0
- package/lib/time-picker/src/TimePicker.js +2 -2
- package/lib/timeline/src/Timeline.d.ts +67 -0
- package/lib/timeline/src/Timeline.js +1 -1
- package/lib/timeline/src/TimelineItem.d.ts +2 -0
- package/lib/timeline/src/TimelineItem.js +10 -10
- package/lib/timeline/src/styles/index.cssr.js +27 -18
- package/lib/timeline/styles/_common.d.ts +2 -0
- package/lib/timeline/styles/_common.js +3 -1
- package/lib/timeline/styles/dark.js +1 -1
- package/lib/timeline/styles/light.d.ts +7 -0
- package/lib/timeline/styles/light.js +1 -1
- package/lib/tooltip/src/Tooltip.d.ts +8 -22
- package/lib/transfer/src/TransferList.d.ts +1 -1
- package/lib/tree/src/Tree.d.ts +25 -10
- package/lib/tree/src/Tree.js +34 -11
- package/lib/tree/src/TreeNode.js +5 -2
- package/lib/tree/src/interface.d.ts +2 -2
- package/lib/tree-select/src/TreeSelect.d.ts +23 -1
- package/lib/tree-select/src/TreeSelect.js +36 -40
- package/lib/tree-select/src/interface.d.ts +2 -2
- package/lib/tree-select/styles/light.d.ts +1 -0
- package/lib/typography/src/blockquote.d.ts +2 -8
- package/lib/typography/src/blockquote.js +1 -4
- package/lib/typography/src/ol.d.ts +2 -8
- package/lib/typography/src/ol.js +1 -4
- package/lib/typography/src/p.d.ts +2 -2
- package/lib/typography/src/p.js +1 -1
- package/lib/typography/src/text.d.ts +14 -58
- package/lib/typography/src/text.js +2 -23
- package/lib/typography/src/ul.d.ts +2 -8
- package/lib/typography/src/ul.js +1 -4
- package/lib/upload/index.d.ts +2 -0
- package/lib/upload/index.js +5 -1
- package/lib/upload/src/Upload.d.ts +16 -68
- package/lib/upload/src/Upload.js +68 -95
- package/lib/upload/src/UploadDragger.js +7 -1
- package/lib/upload/src/UploadFileList.d.ts +2 -0
- package/lib/upload/src/UploadFileList.js +36 -0
- package/lib/upload/src/UploadProgress.d.ts +0 -7
- package/lib/upload/src/UploadProgress.js +1 -5
- package/lib/upload/src/UploadTrigger.d.ts +12 -0
- package/lib/upload/src/UploadTrigger.js +65 -0
- package/lib/upload/src/interface.d.ts +13 -2
- package/lib/upload/src/styles/index.cssr.js +40 -32
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +8 -6
- package/web-types.json +248 -13
|
@@ -18,13 +18,41 @@ import { c, cM, cB, cE, cNotM } from '../../../_utils/cssr'; // vars:
|
|
|
18
18
|
// --tab-gap
|
|
19
19
|
// --tab-padding
|
|
20
20
|
// --pane-padding
|
|
21
|
+
// --color-segment
|
|
22
|
+
// --font-weight-strong
|
|
23
|
+
// --tab-color-segment
|
|
21
24
|
|
|
22
25
|
export default cB('tabs', `
|
|
23
26
|
width: 100%;
|
|
24
27
|
transition:
|
|
25
28
|
background-color .3s var(--bezier),
|
|
26
29
|
border-color .3s var(--bezier);
|
|
27
|
-
`, [
|
|
30
|
+
`, [cB('tabs-rail', `
|
|
31
|
+
padding: 3px;
|
|
32
|
+
border-radius: var(--tab-border-radius);
|
|
33
|
+
width: 100%;
|
|
34
|
+
background-color: var(--color-segment);
|
|
35
|
+
transition: background-color .3s var(--bezier);
|
|
36
|
+
display: flex;
|
|
37
|
+
align-items: center;
|
|
38
|
+
`, [cB('tabs-tab-wrapper', `
|
|
39
|
+
flex-basis: 0;
|
|
40
|
+
flex-grow: 1;
|
|
41
|
+
display: flex;
|
|
42
|
+
align-items: center;
|
|
43
|
+
justify-content: center;
|
|
44
|
+
`, [cB('tabs-tab', `
|
|
45
|
+
overflow: hidden;
|
|
46
|
+
border-radius: var(--tab-border-radius);
|
|
47
|
+
width: 100%;
|
|
48
|
+
display: flex;
|
|
49
|
+
align-items: center;
|
|
50
|
+
justify-content: center;
|
|
51
|
+
`, [cM('active', `
|
|
52
|
+
font-weight: var(--font-weight-strong);
|
|
53
|
+
background-color: var(--tab-color-segment);
|
|
54
|
+
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .08);
|
|
55
|
+
`)])])]), cM('flex', [cB('tabs-nav', {
|
|
28
56
|
width: '100%'
|
|
29
57
|
}, [cB('tabs-wrapper', {
|
|
30
58
|
width: '100%'
|
|
@@ -46,24 +74,19 @@ export default cB('tabs', `
|
|
|
46
74
|
box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, .12);
|
|
47
75
|
`)]), cM('shadow-after', [c('&::after', `
|
|
48
76
|
box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, .12);
|
|
49
|
-
`)]), c('&::before', `
|
|
77
|
+
`)]), c('&::before, &::after', `
|
|
50
78
|
transition: box-shadow .3s var(--bezier);
|
|
51
79
|
pointer-events: none;
|
|
52
80
|
content: "";
|
|
53
81
|
position: absolute;
|
|
54
|
-
left: 0;
|
|
55
82
|
top: 0;
|
|
56
83
|
bottom: 0;
|
|
57
84
|
width: 20px;
|
|
85
|
+
z-index: 1;
|
|
86
|
+
`), c('&::before', `
|
|
87
|
+
left: 0;
|
|
58
88
|
`), c('&::after', `
|
|
59
|
-
transition: box-shadow .3s var(--bezier);
|
|
60
|
-
pointer-events: none;
|
|
61
|
-
content: "";
|
|
62
|
-
position: absolute;
|
|
63
89
|
right: 0;
|
|
64
|
-
top: 0;
|
|
65
|
-
bottom: 0;
|
|
66
|
-
width: 20px;
|
|
67
90
|
`)]), cB('tabs-nav-scroll-content', `
|
|
68
91
|
display: flex;
|
|
69
92
|
position: relative;
|
|
@@ -87,6 +110,7 @@ export default cB('tabs', `
|
|
|
87
110
|
background-clip: padding-box;
|
|
88
111
|
padding: var(--tab-padding);
|
|
89
112
|
transition:
|
|
113
|
+
box-shadow .3s var(--bezier),
|
|
90
114
|
color .3s var(--bezier),
|
|
91
115
|
background-color .3s var(--bezier),
|
|
92
116
|
border-color .3s var(--bezier);
|
|
@@ -20,6 +20,12 @@ declare const _default: {
|
|
|
20
20
|
tabPaddingSmallCard: string;
|
|
21
21
|
tabPaddingMediumCard: string;
|
|
22
22
|
tabPaddingLargeCard: string;
|
|
23
|
+
tabPaddingSmallSegment: string;
|
|
24
|
+
tabPaddingMediumSegment: string;
|
|
25
|
+
tabPaddingLargeSegment: string;
|
|
26
|
+
tabGapSmallSegment: string;
|
|
27
|
+
tabGapMediumSegment: string;
|
|
28
|
+
tabGapLargeSegment: string;
|
|
23
29
|
panePaddingSmall: string;
|
|
24
30
|
panePaddingMedium: string;
|
|
25
31
|
panePaddingLarge: string;
|
|
@@ -20,6 +20,12 @@ export default {
|
|
|
20
20
|
tabPaddingSmallCard: '6px 10px',
|
|
21
21
|
tabPaddingMediumCard: '8px 12px',
|
|
22
22
|
tabPaddingLargeCard: '8px 16px',
|
|
23
|
+
tabPaddingSmallSegment: '4px 0',
|
|
24
|
+
tabPaddingMediumSegment: '6px 0',
|
|
25
|
+
tabPaddingLargeSegment: '8px 0',
|
|
26
|
+
tabGapSmallSegment: '0',
|
|
27
|
+
tabGapMediumSegment: '0',
|
|
28
|
+
tabGapLargeSegment: '0',
|
|
23
29
|
panePaddingSmall: '8px 0 0 0',
|
|
24
30
|
panePaddingMedium: '12px 0 0 0',
|
|
25
31
|
panePaddingLarge: '16px 0 0 0'
|
package/es/tabs/styles/dark.js
CHANGED
|
@@ -3,6 +3,12 @@ import { self } from './light';
|
|
|
3
3
|
const tabsDark = {
|
|
4
4
|
name: 'Tabs',
|
|
5
5
|
common: commonDark,
|
|
6
|
-
self
|
|
6
|
+
self(vars) {
|
|
7
|
+
const commonSelf = self(vars);
|
|
8
|
+
const { inputColor } = vars;
|
|
9
|
+
commonSelf.colorSegment = inputColor;
|
|
10
|
+
commonSelf.tabColorSegment = inputColor;
|
|
11
|
+
return commonSelf;
|
|
12
|
+
}
|
|
7
13
|
};
|
|
8
14
|
export default tabsDark;
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import type { ThemeCommonVars } from '../../_styles/common';
|
|
2
2
|
import { Theme } from '../../_mixins';
|
|
3
3
|
export declare const self: (vars: ThemeCommonVars) => {
|
|
4
|
+
colorSegment: string;
|
|
4
5
|
tabFontSizeCard: string;
|
|
5
6
|
tabTextColorLine: string;
|
|
6
7
|
tabTextColorActiveLine: string;
|
|
7
8
|
tabTextColorHoverLine: string;
|
|
8
9
|
tabTextColorDisabledLine: string;
|
|
10
|
+
tabTextColorSegment: string;
|
|
11
|
+
tabTextColorActiveSegment: string;
|
|
12
|
+
tabTextColorHoverSegment: string;
|
|
13
|
+
tabTextColorDisabledSegment: string;
|
|
9
14
|
tabTextColorBar: string;
|
|
10
15
|
tabTextColorActiveBar: string;
|
|
11
16
|
tabTextColorHoverBar: string;
|
|
@@ -19,11 +24,13 @@ export declare const self: (vars: ThemeCommonVars) => {
|
|
|
19
24
|
closeColorHover: string;
|
|
20
25
|
closeColorPressed: string;
|
|
21
26
|
tabColor: string;
|
|
27
|
+
tabColorSegment: string;
|
|
22
28
|
tabBorderColor: string;
|
|
23
29
|
tabFontWeightActive: string;
|
|
24
30
|
tabFontWeight: string;
|
|
25
31
|
tabBorderRadius: string;
|
|
26
32
|
paneTextColor: string;
|
|
33
|
+
fontWeightStrong: string;
|
|
27
34
|
tabFontSizeSmall: string;
|
|
28
35
|
tabFontSizeMedium: string;
|
|
29
36
|
tabFontSizeLarge: string;
|
|
@@ -45,6 +52,12 @@ export declare const self: (vars: ThemeCommonVars) => {
|
|
|
45
52
|
tabPaddingSmallCard: string;
|
|
46
53
|
tabPaddingMediumCard: string;
|
|
47
54
|
tabPaddingLargeCard: string;
|
|
55
|
+
tabPaddingSmallSegment: string;
|
|
56
|
+
tabPaddingMediumSegment: string;
|
|
57
|
+
tabPaddingLargeSegment: string;
|
|
58
|
+
tabGapSmallSegment: string;
|
|
59
|
+
tabGapMediumSegment: string;
|
|
60
|
+
tabGapLargeSegment: string;
|
|
48
61
|
panePaddingSmall: string;
|
|
49
62
|
panePaddingMedium: string;
|
|
50
63
|
panePaddingLarge: string;
|
package/es/tabs/styles/light.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import sizeVariables from './_common';
|
|
2
2
|
import { commonLight } from '../../_styles/common';
|
|
3
3
|
export const self = (vars) => {
|
|
4
|
-
const { textColor2, primaryColor, textColorDisabled, closeColor, closeColorHover, closeColorPressed, tabColor, dividerColor, fontWeight, textColor1, borderRadius, fontSize } = vars;
|
|
5
|
-
return Object.assign(Object.assign({}, sizeVariables), { tabFontSizeCard: fontSize, tabTextColorLine: textColor1, tabTextColorActiveLine: primaryColor, tabTextColorHoverLine: primaryColor, tabTextColorDisabledLine: textColorDisabled, tabTextColorBar: textColor1, tabTextColorActiveBar: primaryColor, tabTextColorHoverBar: primaryColor, tabTextColorDisabledBar: textColorDisabled, tabTextColorCard: textColor1, tabTextColorHoverCard: textColor1, tabTextColorActiveCard: primaryColor, tabTextColorDisabledCard: textColorDisabled, barColor: primaryColor, closeColor,
|
|
4
|
+
const { textColor2, primaryColor, textColorDisabled, closeColor, closeColorHover, closeColorPressed, tabColor, baseColor, dividerColor, fontWeight, textColor1, borderRadius, fontSize, fontWeightStrong } = vars;
|
|
5
|
+
return Object.assign(Object.assign({}, sizeVariables), { colorSegment: tabColor, tabFontSizeCard: fontSize, tabTextColorLine: textColor1, tabTextColorActiveLine: primaryColor, tabTextColorHoverLine: primaryColor, tabTextColorDisabledLine: textColorDisabled, tabTextColorSegment: textColor1, tabTextColorActiveSegment: primaryColor, tabTextColorHoverSegment: primaryColor, tabTextColorDisabledSegment: textColorDisabled, tabTextColorBar: textColor1, tabTextColorActiveBar: primaryColor, tabTextColorHoverBar: primaryColor, tabTextColorDisabledBar: textColorDisabled, tabTextColorCard: textColor1, tabTextColorHoverCard: textColor1, tabTextColorActiveCard: primaryColor, tabTextColorDisabledCard: textColorDisabled, barColor: primaryColor, closeColor,
|
|
6
6
|
closeColorHover,
|
|
7
7
|
closeColorPressed,
|
|
8
|
-
tabColor, tabBorderColor: dividerColor, tabFontWeightActive: fontWeight, tabFontWeight: fontWeight, tabBorderRadius: borderRadius, paneTextColor: textColor2 });
|
|
8
|
+
tabColor, tabColorSegment: baseColor, tabBorderColor: dividerColor, tabFontWeightActive: fontWeight, tabFontWeight: fontWeight, tabBorderRadius: borderRadius, paneTextColor: textColor2, fontWeightStrong });
|
|
9
9
|
};
|
|
10
10
|
const tabsLight = {
|
|
11
11
|
name: 'Tabs',
|
package/es/time/src/Time.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { ExtractPublicPropTypes } from '../../_utils';
|
|
|
3
3
|
declare const timeProps: {
|
|
4
4
|
readonly time: {
|
|
5
5
|
readonly type: PropType<number | Date>;
|
|
6
|
-
readonly default:
|
|
6
|
+
readonly default: undefined;
|
|
7
7
|
};
|
|
8
8
|
readonly type: {
|
|
9
9
|
readonly type: PropType<"relative" | "date" | "datetime">;
|
|
@@ -11,23 +11,18 @@ declare const timeProps: {
|
|
|
11
11
|
};
|
|
12
12
|
readonly to: {
|
|
13
13
|
readonly type: PropType<number | Date>;
|
|
14
|
-
readonly default:
|
|
15
|
-
};
|
|
16
|
-
readonly unix: {
|
|
17
|
-
readonly type: BooleanConstructor;
|
|
18
|
-
readonly default: false;
|
|
14
|
+
readonly default: undefined;
|
|
19
15
|
};
|
|
16
|
+
readonly unix: BooleanConstructor;
|
|
20
17
|
readonly format: StringConstructor;
|
|
21
|
-
readonly text:
|
|
22
|
-
|
|
23
|
-
readonly default: false;
|
|
24
|
-
};
|
|
18
|
+
readonly text: BooleanConstructor;
|
|
19
|
+
readonly timezone: StringConstructor;
|
|
25
20
|
};
|
|
26
21
|
export declare type TimeProps = ExtractPublicPropTypes<typeof timeProps>;
|
|
27
22
|
declare const _default: import("vue").DefineComponent<{
|
|
28
23
|
readonly time: {
|
|
29
24
|
readonly type: PropType<number | Date>;
|
|
30
|
-
readonly default:
|
|
25
|
+
readonly default: undefined;
|
|
31
26
|
};
|
|
32
27
|
readonly type: {
|
|
33
28
|
readonly type: PropType<"relative" | "date" | "datetime">;
|
|
@@ -35,17 +30,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
35
30
|
};
|
|
36
31
|
readonly to: {
|
|
37
32
|
readonly type: PropType<number | Date>;
|
|
38
|
-
readonly default:
|
|
39
|
-
};
|
|
40
|
-
readonly unix: {
|
|
41
|
-
readonly type: BooleanConstructor;
|
|
42
|
-
readonly default: false;
|
|
33
|
+
readonly default: undefined;
|
|
43
34
|
};
|
|
35
|
+
readonly unix: BooleanConstructor;
|
|
44
36
|
readonly format: StringConstructor;
|
|
45
|
-
readonly text:
|
|
46
|
-
|
|
47
|
-
readonly default: false;
|
|
48
|
-
};
|
|
37
|
+
readonly text: BooleanConstructor;
|
|
38
|
+
readonly timezone: StringConstructor;
|
|
49
39
|
}, {
|
|
50
40
|
renderedTime: import("vue").ComputedRef<string>;
|
|
51
41
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
@@ -55,14 +45,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
55
45
|
readonly unix?: unknown;
|
|
56
46
|
readonly format?: unknown;
|
|
57
47
|
readonly text?: unknown;
|
|
48
|
+
readonly timezone?: unknown;
|
|
58
49
|
} & {
|
|
59
50
|
type: "relative" | "date" | "datetime";
|
|
60
51
|
text: boolean;
|
|
61
|
-
time: number | Date;
|
|
62
|
-
to: number | Date;
|
|
63
52
|
unix: boolean;
|
|
64
53
|
} & {
|
|
54
|
+
time?: number | Date | undefined;
|
|
65
55
|
format?: string | undefined;
|
|
56
|
+
to?: number | Date | undefined;
|
|
57
|
+
timezone?: string | undefined;
|
|
66
58
|
}>, {
|
|
67
59
|
type: "relative" | "date" | "datetime";
|
|
68
60
|
text: boolean;
|
package/es/time/src/Time.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { h, createTextVNode, defineComponent, computed } from 'vue';
|
|
2
|
-
import { format, formatDistance, fromUnixTime } from 'date-fns';
|
|
2
|
+
import { format, formatDistance, fromUnixTime, getTime } from 'date-fns';
|
|
3
|
+
import { getTimezoneOffset } from 'date-fns-tz';
|
|
3
4
|
import { useLocale } from '../../_mixins';
|
|
4
5
|
const timeProps = {
|
|
5
6
|
time: {
|
|
6
7
|
type: [Number, Date],
|
|
7
|
-
default:
|
|
8
|
+
default: undefined // For unix or non unix mode, it should be different default value
|
|
8
9
|
},
|
|
9
10
|
type: {
|
|
10
11
|
type: String,
|
|
@@ -12,49 +13,62 @@ const timeProps = {
|
|
|
12
13
|
},
|
|
13
14
|
to: {
|
|
14
15
|
type: [Number, Date],
|
|
15
|
-
default:
|
|
16
|
-
},
|
|
17
|
-
unix: {
|
|
18
|
-
type: Boolean,
|
|
19
|
-
default: false
|
|
16
|
+
default: undefined // the same as `time` prop
|
|
20
17
|
},
|
|
18
|
+
unix: Boolean,
|
|
21
19
|
format: String,
|
|
22
|
-
text:
|
|
23
|
-
|
|
24
|
-
default: false
|
|
25
|
-
}
|
|
20
|
+
text: Boolean,
|
|
21
|
+
timezone: String
|
|
26
22
|
};
|
|
27
23
|
export default defineComponent({
|
|
28
24
|
name: 'Time',
|
|
29
25
|
props: timeProps,
|
|
30
26
|
setup(props) {
|
|
27
|
+
const now = Date.now();
|
|
31
28
|
const { localeRef, dateLocaleRef } = useLocale('Time');
|
|
29
|
+
const mergedFormatRef = computed(() => {
|
|
30
|
+
const { timezone } = props;
|
|
31
|
+
if (timezone) {
|
|
32
|
+
return (time, _format) => {
|
|
33
|
+
return format(getTime(time) +
|
|
34
|
+
-getTimezoneOffset(Intl.DateTimeFormat().resolvedOptions().timeZone, time) +
|
|
35
|
+
getTimezoneOffset(timezone, time), _format);
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
return format;
|
|
39
|
+
});
|
|
32
40
|
const dateFnsOptionsRef = computed(() => {
|
|
33
41
|
return {
|
|
34
42
|
locale: dateLocaleRef.value.locale
|
|
35
43
|
};
|
|
36
44
|
});
|
|
37
45
|
const mergedTimeRef = computed(() => {
|
|
46
|
+
const { time } = props;
|
|
38
47
|
if (props.unix) {
|
|
39
|
-
|
|
48
|
+
if (time === undefined)
|
|
49
|
+
return now;
|
|
50
|
+
return fromUnixTime(typeof time === 'number' ? time : time.valueOf());
|
|
40
51
|
}
|
|
41
|
-
return
|
|
52
|
+
return time !== null && time !== void 0 ? time : now;
|
|
42
53
|
});
|
|
43
54
|
const mergedToRef = computed(() => {
|
|
55
|
+
const { to } = props;
|
|
44
56
|
if (props.unix) {
|
|
45
|
-
|
|
57
|
+
if (to === undefined)
|
|
58
|
+
return now;
|
|
59
|
+
return fromUnixTime(typeof to === 'number' ? to : to.valueOf());
|
|
46
60
|
}
|
|
47
|
-
return
|
|
61
|
+
return to !== null && to !== void 0 ? to : now;
|
|
48
62
|
});
|
|
49
63
|
const renderedTimeRef = computed(() => {
|
|
50
64
|
if (props.format) {
|
|
51
|
-
return
|
|
65
|
+
return mergedFormatRef.value(mergedTimeRef.value, props.format, dateFnsOptionsRef.value);
|
|
52
66
|
}
|
|
53
67
|
else if (props.type === 'date') {
|
|
54
|
-
return
|
|
68
|
+
return mergedFormatRef.value(mergedTimeRef.value, localeRef.value.dateFormat, dateFnsOptionsRef.value);
|
|
55
69
|
}
|
|
56
70
|
else if (props.type === 'datetime') {
|
|
57
|
-
return
|
|
71
|
+
return mergedFormatRef.value(mergedTimeRef.value, localeRef.value.dateTimeFormat, dateFnsOptionsRef.value);
|
|
58
72
|
}
|
|
59
73
|
else {
|
|
60
74
|
return formatDistance(mergedTimeRef.value, mergedToRef.value, {
|
|
@@ -29,6 +29,7 @@ declare const timePickerProps: {
|
|
|
29
29
|
size: PropType<Size>;
|
|
30
30
|
isMinuteDisabled: PropType<IsMinuteDisabled>;
|
|
31
31
|
isSecondDisabled: PropType<IsSecondDisabled>;
|
|
32
|
+
inputReadonly: BooleanConstructor;
|
|
32
33
|
clearable: BooleanConstructor;
|
|
33
34
|
'onUpdate:value': PropType<MaybeArray<OnUpdateValue>>;
|
|
34
35
|
onUpdateValue: PropType<MaybeArray<OnUpdateValue>>;
|
|
@@ -921,6 +922,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
921
922
|
size: PropType<Size>;
|
|
922
923
|
isMinuteDisabled: PropType<IsMinuteDisabled>;
|
|
923
924
|
isSecondDisabled: PropType<IsSecondDisabled>;
|
|
925
|
+
inputReadonly: BooleanConstructor;
|
|
924
926
|
clearable: BooleanConstructor;
|
|
925
927
|
'onUpdate:value': PropType<MaybeArray<OnUpdateValue>>;
|
|
926
928
|
onUpdateValue: PropType<MaybeArray<OnUpdateValue>>;
|
|
@@ -2290,6 +2292,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2290
2292
|
size?: unknown;
|
|
2291
2293
|
isMinuteDisabled?: unknown;
|
|
2292
2294
|
isSecondDisabled?: unknown;
|
|
2295
|
+
inputReadonly?: unknown;
|
|
2293
2296
|
clearable?: unknown;
|
|
2294
2297
|
'onUpdate:value'?: unknown;
|
|
2295
2298
|
onUpdateValue?: unknown;
|
|
@@ -2312,6 +2315,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2312
2315
|
defaultValue: number | null;
|
|
2313
2316
|
stateful: boolean;
|
|
2314
2317
|
showIcon: boolean;
|
|
2318
|
+
inputReadonly: boolean;
|
|
2315
2319
|
} & {
|
|
2316
2320
|
value?: number | null | undefined;
|
|
2317
2321
|
size?: Size | undefined;
|
|
@@ -3170,5 +3174,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3170
3174
|
defaultValue: number | null;
|
|
3171
3175
|
stateful: boolean;
|
|
3172
3176
|
showIcon: boolean;
|
|
3177
|
+
inputReadonly: boolean;
|
|
3173
3178
|
}>;
|
|
3174
3179
|
export default _default;
|
|
@@ -39,7 +39,7 @@ const timePickerProps = Object.assign(Object.assign({}, useTheme.props), { to: u
|
|
|
39
39
|
}, value: Number, format: {
|
|
40
40
|
type: String,
|
|
41
41
|
default: 'HH:mm:ss'
|
|
42
|
-
}, isHourDisabled: Function, size: String, isMinuteDisabled: Function, isSecondDisabled: Function, clearable: Boolean, 'onUpdate:value': [Function, Array], onUpdateValue: [Function, Array], onBlur: [Function, Array], onFocus: [Function, Array],
|
|
42
|
+
}, isHourDisabled: Function, size: String, isMinuteDisabled: Function, isSecondDisabled: Function, inputReadonly: Boolean, clearable: Boolean, 'onUpdate:value': [Function, Array], onUpdateValue: [Function, Array], onBlur: [Function, Array], onFocus: [Function, Array],
|
|
43
43
|
// private
|
|
44
44
|
stateful: {
|
|
45
45
|
type: Boolean,
|
|
@@ -519,7 +519,7 @@ export default defineComponent({
|
|
|
519
519
|
h(VBinder, null, {
|
|
520
520
|
default: () => [
|
|
521
521
|
h(VTarget, null, {
|
|
522
|
-
default: () => (h(NInput, { ref: "inputInstRef", value: this.displayTimeString, bordered: this.mergedBordered, passivelyActivated: true, attrSize: this.mergedAttrSize, theme: this.mergedTheme.peers.Input, themeOverrides: this.mergedTheme.peerOverrides.Input, stateful: this.stateful, size: this.mergedSize, placeholder: this.localizedPlaceholder, clearable: this.clearable, disabled: this.mergedDisabled, textDecoration: this.isValueInvalid ? 'line-through' : undefined, onFocus: this.handleTimeInputFocus, onBlur: this.handleTimeInputBlur, onActivate: this.handleTimeInputActivate, onDeactivate: this.handleTimeInputDeactivate, onUpdateValue: this.handleTimeInputUpdateValue, onClear: this.handleTimeInputClear, internalDeactivateOnEnter: true, internalForceFocus: this.active, onClick: this.handleTriggerClick }, this.showIcon
|
|
522
|
+
default: () => (h(NInput, { ref: "inputInstRef", value: this.displayTimeString, bordered: this.mergedBordered, passivelyActivated: true, attrSize: this.mergedAttrSize, theme: this.mergedTheme.peers.Input, themeOverrides: this.mergedTheme.peerOverrides.Input, stateful: this.stateful, size: this.mergedSize, placeholder: this.localizedPlaceholder, clearable: this.clearable, disabled: this.mergedDisabled, textDecoration: this.isValueInvalid ? 'line-through' : undefined, onFocus: this.handleTimeInputFocus, onBlur: this.handleTimeInputBlur, onActivate: this.handleTimeInputActivate, onDeactivate: this.handleTimeInputDeactivate, onUpdateValue: this.handleTimeInputUpdateValue, onClear: this.handleTimeInputClear, internalDeactivateOnEnter: true, internalForceFocus: this.active, readonly: this.inputReadonly || this.mergedDisabled, onClick: this.handleTriggerClick }, this.showIcon
|
|
523
523
|
? {
|
|
524
524
|
[this.clearable ? 'clear' : 'suffix']: () => (h(NBaseIcon, { clsPrefix: mergedClsPrefix, class: `${mergedClsPrefix}-time-picker-icon` }, {
|
|
525
525
|
default: () => h(TimeIcon, null)
|
|
@@ -12,6 +12,7 @@ declare const timelineProps: {
|
|
|
12
12
|
readonly type: PropType<"medium" | "large">;
|
|
13
13
|
readonly default: "medium";
|
|
14
14
|
};
|
|
15
|
+
readonly iconSize: NumberConstructor;
|
|
15
16
|
readonly theme: PropType<import("../../_mixins").Theme<"Timeline", {
|
|
16
17
|
contentFontSize: string;
|
|
17
18
|
titleFontWeight: string;
|
|
@@ -20,6 +21,11 @@ declare const timelineProps: {
|
|
|
20
21
|
circleBorderError: string;
|
|
21
22
|
circleBorderSuccess: string;
|
|
22
23
|
circleBorderWarning: string;
|
|
24
|
+
iconColor: string;
|
|
25
|
+
iconColorInfo: string;
|
|
26
|
+
iconColorError: string;
|
|
27
|
+
iconColorSuccess: string;
|
|
28
|
+
iconColorWarning: string;
|
|
23
29
|
titleTextColor: string;
|
|
24
30
|
contentTextColor: string;
|
|
25
31
|
metaTextColor: string;
|
|
@@ -28,6 +34,8 @@ declare const timelineProps: {
|
|
|
28
34
|
titleMarginLarge: string;
|
|
29
35
|
titleFontSizeMedium: string;
|
|
30
36
|
titleFontSizeLarge: string;
|
|
37
|
+
iconSizeMedium: string;
|
|
38
|
+
iconSizeLarge: string;
|
|
31
39
|
}, any>>;
|
|
32
40
|
readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Timeline", {
|
|
33
41
|
contentFontSize: string;
|
|
@@ -37,6 +45,11 @@ declare const timelineProps: {
|
|
|
37
45
|
circleBorderError: string;
|
|
38
46
|
circleBorderSuccess: string;
|
|
39
47
|
circleBorderWarning: string;
|
|
48
|
+
iconColor: string;
|
|
49
|
+
iconColorInfo: string;
|
|
50
|
+
iconColorError: string;
|
|
51
|
+
iconColorSuccess: string;
|
|
52
|
+
iconColorWarning: string;
|
|
40
53
|
titleTextColor: string;
|
|
41
54
|
contentTextColor: string;
|
|
42
55
|
metaTextColor: string;
|
|
@@ -45,6 +58,8 @@ declare const timelineProps: {
|
|
|
45
58
|
titleMarginLarge: string;
|
|
46
59
|
titleFontSizeMedium: string;
|
|
47
60
|
titleFontSizeLarge: string;
|
|
61
|
+
iconSizeMedium: string;
|
|
62
|
+
iconSizeLarge: string;
|
|
48
63
|
}, any>>>;
|
|
49
64
|
readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Timeline", {
|
|
50
65
|
contentFontSize: string;
|
|
@@ -54,6 +69,11 @@ declare const timelineProps: {
|
|
|
54
69
|
circleBorderError: string;
|
|
55
70
|
circleBorderSuccess: string;
|
|
56
71
|
circleBorderWarning: string;
|
|
72
|
+
iconColor: string;
|
|
73
|
+
iconColorInfo: string;
|
|
74
|
+
iconColorError: string;
|
|
75
|
+
iconColorSuccess: string;
|
|
76
|
+
iconColorWarning: string;
|
|
57
77
|
titleTextColor: string;
|
|
58
78
|
contentTextColor: string;
|
|
59
79
|
metaTextColor: string;
|
|
@@ -62,6 +82,8 @@ declare const timelineProps: {
|
|
|
62
82
|
titleMarginLarge: string;
|
|
63
83
|
titleFontSizeMedium: string;
|
|
64
84
|
titleFontSizeLarge: string;
|
|
85
|
+
iconSizeMedium: string;
|
|
86
|
+
iconSizeLarge: string;
|
|
65
87
|
}, any>>>;
|
|
66
88
|
};
|
|
67
89
|
export interface TimelineInjection {
|
|
@@ -81,6 +103,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
81
103
|
readonly type: PropType<"medium" | "large">;
|
|
82
104
|
readonly default: "medium";
|
|
83
105
|
};
|
|
106
|
+
readonly iconSize: NumberConstructor;
|
|
84
107
|
readonly theme: PropType<import("../../_mixins").Theme<"Timeline", {
|
|
85
108
|
contentFontSize: string;
|
|
86
109
|
titleFontWeight: string;
|
|
@@ -89,6 +112,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
89
112
|
circleBorderError: string;
|
|
90
113
|
circleBorderSuccess: string;
|
|
91
114
|
circleBorderWarning: string;
|
|
115
|
+
iconColor: string;
|
|
116
|
+
iconColorInfo: string;
|
|
117
|
+
iconColorError: string;
|
|
118
|
+
iconColorSuccess: string;
|
|
119
|
+
iconColorWarning: string;
|
|
92
120
|
titleTextColor: string;
|
|
93
121
|
contentTextColor: string;
|
|
94
122
|
metaTextColor: string;
|
|
@@ -97,6 +125,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
97
125
|
titleMarginLarge: string;
|
|
98
126
|
titleFontSizeMedium: string;
|
|
99
127
|
titleFontSizeLarge: string;
|
|
128
|
+
iconSizeMedium: string;
|
|
129
|
+
iconSizeLarge: string;
|
|
100
130
|
}, any>>;
|
|
101
131
|
readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Timeline", {
|
|
102
132
|
contentFontSize: string;
|
|
@@ -106,6 +136,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
106
136
|
circleBorderError: string;
|
|
107
137
|
circleBorderSuccess: string;
|
|
108
138
|
circleBorderWarning: string;
|
|
139
|
+
iconColor: string;
|
|
140
|
+
iconColorInfo: string;
|
|
141
|
+
iconColorError: string;
|
|
142
|
+
iconColorSuccess: string;
|
|
143
|
+
iconColorWarning: string;
|
|
109
144
|
titleTextColor: string;
|
|
110
145
|
contentTextColor: string;
|
|
111
146
|
metaTextColor: string;
|
|
@@ -114,6 +149,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
114
149
|
titleMarginLarge: string;
|
|
115
150
|
titleFontSizeMedium: string;
|
|
116
151
|
titleFontSizeLarge: string;
|
|
152
|
+
iconSizeMedium: string;
|
|
153
|
+
iconSizeLarge: string;
|
|
117
154
|
}, any>>>;
|
|
118
155
|
readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Timeline", {
|
|
119
156
|
contentFontSize: string;
|
|
@@ -123,6 +160,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
123
160
|
circleBorderError: string;
|
|
124
161
|
circleBorderSuccess: string;
|
|
125
162
|
circleBorderWarning: string;
|
|
163
|
+
iconColor: string;
|
|
164
|
+
iconColorInfo: string;
|
|
165
|
+
iconColorError: string;
|
|
166
|
+
iconColorSuccess: string;
|
|
167
|
+
iconColorWarning: string;
|
|
126
168
|
titleTextColor: string;
|
|
127
169
|
contentTextColor: string;
|
|
128
170
|
metaTextColor: string;
|
|
@@ -131,11 +173,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
131
173
|
titleMarginLarge: string;
|
|
132
174
|
titleFontSizeMedium: string;
|
|
133
175
|
titleFontSizeLarge: string;
|
|
176
|
+
iconSizeMedium: string;
|
|
177
|
+
iconSizeLarge: string;
|
|
134
178
|
}, any>>>;
|
|
135
179
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
136
180
|
readonly horizontal?: unknown;
|
|
137
181
|
readonly itemPlacement?: unknown;
|
|
138
182
|
readonly size?: unknown;
|
|
183
|
+
readonly iconSize?: unknown;
|
|
139
184
|
readonly theme?: unknown;
|
|
140
185
|
readonly themeOverrides?: unknown;
|
|
141
186
|
readonly builtinThemeOverrides?: unknown;
|
|
@@ -152,6 +197,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
152
197
|
circleBorderError: string;
|
|
153
198
|
circleBorderSuccess: string;
|
|
154
199
|
circleBorderWarning: string;
|
|
200
|
+
iconColor: string;
|
|
201
|
+
iconColorInfo: string;
|
|
202
|
+
iconColorError: string;
|
|
203
|
+
iconColorSuccess: string;
|
|
204
|
+
iconColorWarning: string;
|
|
155
205
|
titleTextColor: string;
|
|
156
206
|
contentTextColor: string;
|
|
157
207
|
metaTextColor: string;
|
|
@@ -160,6 +210,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
160
210
|
titleMarginLarge: string;
|
|
161
211
|
titleFontSizeMedium: string;
|
|
162
212
|
titleFontSizeLarge: string;
|
|
213
|
+
iconSizeMedium: string;
|
|
214
|
+
iconSizeLarge: string;
|
|
163
215
|
}, any> | undefined;
|
|
164
216
|
themeOverrides?: import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Timeline", {
|
|
165
217
|
contentFontSize: string;
|
|
@@ -169,6 +221,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
169
221
|
circleBorderError: string;
|
|
170
222
|
circleBorderSuccess: string;
|
|
171
223
|
circleBorderWarning: string;
|
|
224
|
+
iconColor: string;
|
|
225
|
+
iconColorInfo: string;
|
|
226
|
+
iconColorError: string;
|
|
227
|
+
iconColorSuccess: string;
|
|
228
|
+
iconColorWarning: string;
|
|
172
229
|
titleTextColor: string;
|
|
173
230
|
contentTextColor: string;
|
|
174
231
|
metaTextColor: string;
|
|
@@ -177,6 +234,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
177
234
|
titleMarginLarge: string;
|
|
178
235
|
titleFontSizeMedium: string;
|
|
179
236
|
titleFontSizeLarge: string;
|
|
237
|
+
iconSizeMedium: string;
|
|
238
|
+
iconSizeLarge: string;
|
|
180
239
|
}, any>> | undefined;
|
|
181
240
|
builtinThemeOverrides?: import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Timeline", {
|
|
182
241
|
contentFontSize: string;
|
|
@@ -186,6 +245,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
186
245
|
circleBorderError: string;
|
|
187
246
|
circleBorderSuccess: string;
|
|
188
247
|
circleBorderWarning: string;
|
|
248
|
+
iconColor: string;
|
|
249
|
+
iconColorInfo: string;
|
|
250
|
+
iconColorError: string;
|
|
251
|
+
iconColorSuccess: string;
|
|
252
|
+
iconColorWarning: string;
|
|
189
253
|
titleTextColor: string;
|
|
190
254
|
contentTextColor: string;
|
|
191
255
|
metaTextColor: string;
|
|
@@ -194,7 +258,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
194
258
|
titleMarginLarge: string;
|
|
195
259
|
titleFontSizeMedium: string;
|
|
196
260
|
titleFontSizeLarge: string;
|
|
261
|
+
iconSizeMedium: string;
|
|
262
|
+
iconSizeLarge: string;
|
|
197
263
|
}, any>> | undefined;
|
|
264
|
+
iconSize?: number | undefined;
|
|
198
265
|
}>, {
|
|
199
266
|
size: "medium" | "large";
|
|
200
267
|
horizontal: boolean;
|
|
@@ -8,7 +8,7 @@ const timelineProps = Object.assign(Object.assign({}, useTheme.props), { horizon
|
|
|
8
8
|
}, size: {
|
|
9
9
|
type: String,
|
|
10
10
|
default: 'medium'
|
|
11
|
-
} });
|
|
11
|
+
}, iconSize: Number });
|
|
12
12
|
export const timelineInjectionKey = Symbol('timeline');
|
|
13
13
|
export default defineComponent({
|
|
14
14
|
name: 'Timeline',
|
|
@@ -25,6 +25,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
25
25
|
cssVars: import("vue").ComputedRef<{
|
|
26
26
|
'--bezier': string;
|
|
27
27
|
'--circle-border': string;
|
|
28
|
+
'--icon-color': string;
|
|
28
29
|
'--content-font-size': string;
|
|
29
30
|
'--content-text-color': string;
|
|
30
31
|
'--line-color': string;
|
|
@@ -33,6 +34,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
33
34
|
'--title-font-weight': string;
|
|
34
35
|
'--title-margin': string | number;
|
|
35
36
|
'--title-text-color': string;
|
|
37
|
+
'--icon-size': string;
|
|
36
38
|
}>;
|
|
37
39
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
38
40
|
time?: unknown;
|