naive-ui 2.18.1 → 2.19.2
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 +64 -56
- 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 -8
- package/es/_internal/selection/styles/_common.js +2 -9
- package/es/_internal/selection/styles/dark.js +10 -2
- package/es/_internal/selection/styles/light.d.ts +18 -16
- package/es/_internal/selection/styles/light.js +10 -2
- package/es/_mixins/use-rtl.js +1 -1
- package/es/_styles/common/light.js +1 -1
- package/es/_utils/naive/mutable.d.ts +2 -2
- package/es/alert/src/Alert.js +15 -16
- 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 +100 -80
- package/es/cascader/src/Cascader.js +28 -19
- package/es/cascader/src/CascaderMenu.js +17 -15
- package/es/cascader/src/CascaderOption.d.ts +10 -8
- package/es/cascader/src/CascaderSelectMenu.d.ts +10 -8
- package/es/cascader/src/CascaderSubmenu.d.ts +10 -8
- 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 +10 -8
- package/es/checkbox/src/Checkbox.d.ts +1 -0
- package/es/checkbox/src/Checkbox.js +5 -3
- package/es/checkbox/src/CheckboxGroup.js +1 -1
- 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 +110 -88
- package/es/data-table/src/HeaderButton/FilterButton.d.ts +20 -16
- package/es/data-table/src/HeaderButton/FilterMenu.d.ts +20 -16
- package/es/data-table/src/TableParts/Body.d.ts +20 -16
- package/es/data-table/src/TableParts/Cell.d.ts +40 -32
- package/es/data-table/src/TableParts/Header.d.ts +20 -16
- package/es/data-table/styles/light.d.ts +10 -8
- 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/DialogProvider.d.ts +20 -20
- package/es/drawer/src/styles/index.cssr.js +2 -0
- 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/global-style/src/GlobalStyle.js +13 -3
- 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 +8 -3
- package/es/input-number/src/InputNumber.js +4 -4
- package/es/jest-setup.js +3 -1
- 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/ukUA.d.ts +3 -0
- package/es/locales/common/ukUA.js +92 -0
- package/es/locales/common/zhCN.js +1 -1
- package/es/locales/date/ukUA.d.ts +3 -0
- package/es/locales/date/ukUA.js +6 -0
- package/es/locales/index.d.ts +2 -0
- package/es/locales/index.js +2 -0
- 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 +5 -0
- package/es/modal/src/Modal.d.ts +36 -55
- package/es/modal/src/Modal.js +18 -39
- package/es/modal/src/presetProps.d.ts +2 -1
- 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 +111 -100
- package/es/pagination/styles/light.d.ts +10 -8
- 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 +111 -83
- package/es/select/src/Select.js +55 -56
- package/es/select/src/interface.d.ts +2 -2
- package/es/select/styles/light.d.ts +10 -8
- 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/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/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 +103 -81
- 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 +9 -8
- 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 +64 -56
- 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 -8
- package/lib/_internal/selection/styles/_common.js +2 -9
- package/lib/_internal/selection/styles/dark.js +10 -2
- package/lib/_internal/selection/styles/light.d.ts +18 -16
- package/lib/_internal/selection/styles/light.js +10 -2
- package/lib/_mixins/use-rtl.js +1 -1
- package/lib/_styles/common/light.js +1 -1
- package/lib/_utils/naive/mutable.d.ts +2 -2
- package/lib/alert/src/Alert.js +15 -16
- 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 +100 -80
- package/lib/cascader/src/Cascader.js +28 -19
- package/lib/cascader/src/CascaderMenu.js +16 -14
- package/lib/cascader/src/CascaderOption.d.ts +10 -8
- package/lib/cascader/src/CascaderSelectMenu.d.ts +10 -8
- package/lib/cascader/src/CascaderSubmenu.d.ts +10 -8
- 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 +10 -8
- package/lib/checkbox/src/Checkbox.d.ts +1 -0
- package/lib/checkbox/src/Checkbox.js +5 -3
- package/lib/checkbox/src/CheckboxGroup.js +1 -1
- 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 +110 -88
- package/lib/data-table/src/HeaderButton/FilterButton.d.ts +20 -16
- package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +20 -16
- package/lib/data-table/src/TableParts/Body.d.ts +20 -16
- package/lib/data-table/src/TableParts/Cell.d.ts +40 -32
- package/lib/data-table/src/TableParts/Header.d.ts +20 -16
- package/lib/data-table/styles/light.d.ts +10 -8
- 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/DialogProvider.d.ts +20 -20
- package/lib/drawer/src/styles/index.cssr.js +2 -0
- 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/global-style/src/GlobalStyle.js +13 -3
- 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 +8 -3
- package/lib/input-number/src/InputNumber.js +4 -4
- package/lib/jest-setup.js +3 -1
- 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/ukUA.d.ts +3 -0
- package/lib/locales/common/ukUA.js +94 -0
- package/lib/locales/common/zhCN.js +1 -1
- package/lib/locales/date/ukUA.d.ts +3 -0
- package/lib/locales/date/ukUA.js +8 -0
- package/lib/locales/index.d.ts +2 -0
- package/lib/locales/index.js +5 -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 +5 -0
- package/lib/modal/src/Modal.d.ts +36 -55
- package/lib/modal/src/Modal.js +17 -38
- package/lib/modal/src/presetProps.d.ts +2 -1
- 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 +111 -100
- package/lib/pagination/styles/light.d.ts +10 -8
- 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 +111 -83
- package/lib/select/src/Select.js +55 -56
- package/lib/select/src/interface.d.ts +2 -2
- package/lib/select/styles/light.d.ts +10 -8
- 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/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/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 +103 -81
- 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 +9 -8
- 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 +9 -7
- package/web-types.json +239 -13
|
@@ -16,18 +16,31 @@ const cssr_1 = require("../../../_utils/cssr"); // vars:
|
|
|
16
16
|
// --rail-color-active
|
|
17
17
|
// --rail-width
|
|
18
18
|
// --link-padding
|
|
19
|
+
// --link-border-radius
|
|
19
20
|
|
|
20
21
|
|
|
21
22
|
exports.default = (0, cssr_1.cB)('anchor', `
|
|
22
|
-
padding-left: var(--rail-width);
|
|
23
23
|
position: relative;
|
|
24
|
-
`, [(0, cssr_1.
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
`, [(0, cssr_1.cNotM)('block', `
|
|
25
|
+
padding-left: var(--rail-width);
|
|
26
|
+
`, [(0, cssr_1.cB)('anchor-link', [(0, cssr_1.c)('+, >', [(0, cssr_1.cB)('anchor-link', `
|
|
27
|
+
margin-top: .5em;
|
|
28
|
+
`)])]), (0, cssr_1.cB)('anchor-link-background', `
|
|
28
29
|
max-width: 0;
|
|
29
30
|
border-top-right-radius: 10.5px;
|
|
30
31
|
border-bottom-right-radius: 10.5px;
|
|
32
|
+
`), (0, cssr_1.cNotM)('show-rail', [(0, cssr_1.c)('>', [(0, cssr_1.cB)('anchor-link', 'padding-left: 0;')])])]), (0, cssr_1.cM)('block', [(0, cssr_1.cB)('anchor-link', `
|
|
33
|
+
margin-bottom: 4px;
|
|
34
|
+
padding: 2px 8px;
|
|
35
|
+
transition: background-color .3s var(--bezier);
|
|
36
|
+
background-color: transparent;
|
|
37
|
+
border-radius: var(--link-border-radius);
|
|
38
|
+
`, [(0, cssr_1.cM)('active', `
|
|
39
|
+
background-color: var(--link-color);
|
|
40
|
+
`)])]), (0, cssr_1.cB)('anchor-link-background', `
|
|
41
|
+
position: absolute;
|
|
42
|
+
left: calc(var(--rail-width) / 2);
|
|
43
|
+
width: 100%;
|
|
31
44
|
background-color: var(--link-color);
|
|
32
45
|
transition:
|
|
33
46
|
top .15s var(--bezier),
|
|
@@ -54,8 +67,6 @@ exports.default = (0, cssr_1.cB)('anchor', `
|
|
|
54
67
|
background-color .3s var(--bezier);
|
|
55
68
|
`, [(0, cssr_1.cM)('active', {
|
|
56
69
|
backgroundColor: 'var(--rail-color-active)'
|
|
57
|
-
})])]), (0, cssr_1.cNotM)('show-rail', [(0, cssr_1.c)('>', [(0, cssr_1.cB)('anchor-link', {
|
|
58
|
-
paddingLeft: 0
|
|
59
70
|
})])]), (0, cssr_1.cB)('anchor-link', `
|
|
60
71
|
padding: var(--link-padding);
|
|
61
72
|
position: relative;
|
|
@@ -64,8 +75,12 @@ exports.default = (0, cssr_1.cB)('anchor', `
|
|
|
64
75
|
min-height: 1.5em;
|
|
65
76
|
display: flex;
|
|
66
77
|
flex-direction: column;
|
|
67
|
-
`, [(0, cssr_1.
|
|
68
|
-
|
|
78
|
+
`, [(0, cssr_1.cM)('active', [(0, cssr_1.cE)('title', `
|
|
79
|
+
color: var(--link-text-color-active);
|
|
80
|
+
`)]), (0, cssr_1.c)('&:hover, &:focus', [(0, cssr_1.cE)('title', `
|
|
81
|
+
color: var(--link-text-color-hover);
|
|
82
|
+
`)]), (0, cssr_1.c)('&:active', [(0, cssr_1.cE)('title', `
|
|
83
|
+
color: var(--link-text-color-pressed);
|
|
69
84
|
`)]), (0, cssr_1.cE)('title', `
|
|
70
85
|
outline: none;
|
|
71
86
|
max-width: 100%;
|
|
@@ -78,10 +93,4 @@ exports.default = (0, cssr_1.cB)('anchor', `
|
|
|
78
93
|
padding-right: 16px;
|
|
79
94
|
transition: color .3s var(--bezier);
|
|
80
95
|
color: var(--link-text-color);
|
|
81
|
-
|
|
82
|
-
color: 'var(--link-text-color-hover)'
|
|
83
|
-
}), (0, cssr_1.c)('&:active', {
|
|
84
|
-
color: 'var(--link-text-color-pressed)'
|
|
85
|
-
}), (0, cssr_1.cM)('active', {
|
|
86
|
-
color: 'var(--link-text-color-active)'
|
|
87
|
-
})])])]);
|
|
96
|
+
`)])]);
|
|
@@ -72,6 +72,7 @@ declare const autoCompleteProps: {
|
|
|
72
72
|
optionOpacityDisabled: string;
|
|
73
73
|
optionCheckColor: string;
|
|
74
74
|
optionColorPending: string;
|
|
75
|
+
optionColorActive: string;
|
|
75
76
|
actionTextColor: string;
|
|
76
77
|
loadingColor: string;
|
|
77
78
|
height: string;
|
|
@@ -187,6 +188,7 @@ declare const autoCompleteProps: {
|
|
|
187
188
|
optionOpacityDisabled: string;
|
|
188
189
|
optionCheckColor: string;
|
|
189
190
|
optionColorPending: string;
|
|
191
|
+
optionColorActive: string;
|
|
190
192
|
actionTextColor: string;
|
|
191
193
|
loadingColor: string;
|
|
192
194
|
height: string;
|
|
@@ -302,6 +304,7 @@ declare const autoCompleteProps: {
|
|
|
302
304
|
optionOpacityDisabled: string;
|
|
303
305
|
optionCheckColor: string;
|
|
304
306
|
optionColorPending: string;
|
|
307
|
+
optionColorActive: string;
|
|
305
308
|
actionTextColor: string;
|
|
306
309
|
loadingColor: string;
|
|
307
310
|
height: string;
|
|
@@ -464,6 +467,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
464
467
|
optionOpacityDisabled: string;
|
|
465
468
|
optionCheckColor: string;
|
|
466
469
|
optionColorPending: string;
|
|
470
|
+
optionColorActive: string;
|
|
467
471
|
actionTextColor: string;
|
|
468
472
|
loadingColor: string;
|
|
469
473
|
height: string;
|
|
@@ -579,6 +583,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
579
583
|
optionOpacityDisabled: string;
|
|
580
584
|
optionCheckColor: string;
|
|
581
585
|
optionColorPending: string;
|
|
586
|
+
optionColorActive: string;
|
|
582
587
|
actionTextColor: string;
|
|
583
588
|
loadingColor: string;
|
|
584
589
|
height: string;
|
|
@@ -694,6 +699,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
694
699
|
optionOpacityDisabled: string;
|
|
695
700
|
optionCheckColor: string;
|
|
696
701
|
optionColorPending: string;
|
|
702
|
+
optionColorActive: string;
|
|
697
703
|
actionTextColor: string;
|
|
698
704
|
loadingColor: string;
|
|
699
705
|
height: string;
|
|
@@ -935,6 +941,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
935
941
|
optionOpacityDisabled: string;
|
|
936
942
|
optionCheckColor: string;
|
|
937
943
|
optionColorPending: string;
|
|
944
|
+
optionColorActive: string;
|
|
938
945
|
actionTextColor: string;
|
|
939
946
|
loadingColor: string;
|
|
940
947
|
height: string;
|
|
@@ -1125,6 +1132,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1125
1132
|
optionOpacityDisabled: string;
|
|
1126
1133
|
optionCheckColor: string;
|
|
1127
1134
|
optionColorPending: string;
|
|
1135
|
+
optionColorActive: string;
|
|
1128
1136
|
actionTextColor: string;
|
|
1129
1137
|
loadingColor: string;
|
|
1130
1138
|
height: string;
|
|
@@ -1240,6 +1248,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1240
1248
|
optionOpacityDisabled: string;
|
|
1241
1249
|
optionCheckColor: string;
|
|
1242
1250
|
optionColorPending: string;
|
|
1251
|
+
optionColorActive: string;
|
|
1243
1252
|
actionTextColor: string;
|
|
1244
1253
|
loadingColor: string;
|
|
1245
1254
|
height: string;
|
|
@@ -1355,6 +1364,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1355
1364
|
optionOpacityDisabled: string;
|
|
1356
1365
|
optionCheckColor: string;
|
|
1357
1366
|
optionColorPending: string;
|
|
1367
|
+
optionColorActive: string;
|
|
1358
1368
|
actionTextColor: string;
|
|
1359
1369
|
loadingColor: string;
|
|
1360
1370
|
height: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SelectGroupOption, SelectBaseOption } from '../../select/src/interface';
|
|
2
2
|
export declare type AutoCompleteOption = SelectBaseOption<string, string>;
|
|
3
3
|
export interface AutoCompleteGroupOption extends Omit<SelectGroupOption, 'children'> {
|
|
4
|
-
children:
|
|
4
|
+
children: AutoCompleteOptions;
|
|
5
5
|
}
|
|
6
6
|
export declare type AutoCompleteOptions = Array<AutoCompleteOption | AutoCompleteGroupOption | string>;
|
|
7
7
|
export declare type OnUpdateValue = (value: string & (string | null)) => void;
|
|
@@ -25,6 +25,7 @@ declare const autoCompleteLight: import("../../_mixins").Theme<"AutoComplete", {
|
|
|
25
25
|
optionOpacityDisabled: string;
|
|
26
26
|
optionCheckColor: string;
|
|
27
27
|
optionColorPending: string;
|
|
28
|
+
optionColorActive: string;
|
|
28
29
|
actionTextColor: string;
|
|
29
30
|
loadingColor: string;
|
|
30
31
|
height: string;
|
|
@@ -63,6 +63,7 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.c)('@keyframes badge-wave-spread', {
|
|
|
63
63
|
left: 100%;
|
|
64
64
|
bottom: calc(100% - 9px);
|
|
65
65
|
font-variant-numeric: tabular-nums;
|
|
66
|
+
z-index: 1;
|
|
66
67
|
`, [(0, fade_in_scale_up_cssr_1.default)({
|
|
67
68
|
transformOrigin: 'left bottom',
|
|
68
69
|
originalTransform: 'translateX(-50%)'
|
package/lib/card/src/Card.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export declare const cardBaseProps: {
|
|
|
10
10
|
readonly contentStyle: PropType<string | CSSProperties>;
|
|
11
11
|
readonly headerStyle: PropType<string | CSSProperties>;
|
|
12
12
|
readonly footerStyle: PropType<string | CSSProperties>;
|
|
13
|
+
readonly embedded: BooleanConstructor;
|
|
13
14
|
readonly segmented: {
|
|
14
15
|
readonly type: PropType<boolean | Segmented>;
|
|
15
16
|
readonly default: false;
|
|
@@ -29,12 +30,13 @@ export declare const cardBaseProps: {
|
|
|
29
30
|
readonly hoverable: BooleanConstructor;
|
|
30
31
|
readonly onClose: PropType<MaybeArray<() => void>>;
|
|
31
32
|
};
|
|
32
|
-
export declare const cardBasePropKeys: ("size" | "title" | "contentStyle" | "bordered" | "onClose" | "closable" | "hoverable" | "headerStyle" | "footerStyle" | "segmented")[];
|
|
33
|
+
export declare const cardBasePropKeys: ("size" | "title" | "contentStyle" | "bordered" | "onClose" | "closable" | "hoverable" | "headerStyle" | "footerStyle" | "embedded" | "segmented")[];
|
|
33
34
|
declare const cardProps: {
|
|
34
35
|
title: StringConstructor;
|
|
35
36
|
contentStyle: PropType<string | CSSProperties>;
|
|
36
37
|
headerStyle: PropType<string | CSSProperties>;
|
|
37
38
|
footerStyle: PropType<string | CSSProperties>;
|
|
39
|
+
embedded: BooleanConstructor;
|
|
38
40
|
segmented: {
|
|
39
41
|
readonly type: PropType<boolean | Segmented>;
|
|
40
42
|
readonly default: false;
|
|
@@ -59,6 +61,7 @@ declare const cardProps: {
|
|
|
59
61
|
colorModal: string;
|
|
60
62
|
colorPopover: string;
|
|
61
63
|
colorTarget: string;
|
|
64
|
+
colorEmbedded: string;
|
|
62
65
|
textColor: string;
|
|
63
66
|
titleTextColor: string;
|
|
64
67
|
borderColor: string;
|
|
@@ -89,6 +92,7 @@ declare const cardProps: {
|
|
|
89
92
|
colorModal: string;
|
|
90
93
|
colorPopover: string;
|
|
91
94
|
colorTarget: string;
|
|
95
|
+
colorEmbedded: string;
|
|
92
96
|
textColor: string;
|
|
93
97
|
titleTextColor: string;
|
|
94
98
|
borderColor: string;
|
|
@@ -119,6 +123,7 @@ declare const cardProps: {
|
|
|
119
123
|
colorModal: string;
|
|
120
124
|
colorPopover: string;
|
|
121
125
|
colorTarget: string;
|
|
126
|
+
colorEmbedded: string;
|
|
122
127
|
textColor: string;
|
|
123
128
|
titleTextColor: string;
|
|
124
129
|
borderColor: string;
|
|
@@ -150,6 +155,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
150
155
|
contentStyle: PropType<string | CSSProperties>;
|
|
151
156
|
headerStyle: PropType<string | CSSProperties>;
|
|
152
157
|
footerStyle: PropType<string | CSSProperties>;
|
|
158
|
+
embedded: BooleanConstructor;
|
|
153
159
|
segmented: {
|
|
154
160
|
readonly type: PropType<boolean | Segmented>;
|
|
155
161
|
readonly default: false;
|
|
@@ -174,6 +180,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
174
180
|
colorModal: string;
|
|
175
181
|
colorPopover: string;
|
|
176
182
|
colorTarget: string;
|
|
183
|
+
colorEmbedded: string;
|
|
177
184
|
textColor: string;
|
|
178
185
|
titleTextColor: string;
|
|
179
186
|
borderColor: string;
|
|
@@ -204,6 +211,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
204
211
|
colorModal: string;
|
|
205
212
|
colorPopover: string;
|
|
206
213
|
colorTarget: string;
|
|
214
|
+
colorEmbedded: string;
|
|
207
215
|
textColor: string;
|
|
208
216
|
titleTextColor: string;
|
|
209
217
|
borderColor: string;
|
|
@@ -234,6 +242,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
234
242
|
colorModal: string;
|
|
235
243
|
colorPopover: string;
|
|
236
244
|
colorTarget: string;
|
|
245
|
+
colorEmbedded: string;
|
|
237
246
|
textColor: string;
|
|
238
247
|
titleTextColor: string;
|
|
239
248
|
borderColor: string;
|
|
@@ -367,6 +376,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
367
376
|
colorModal: string;
|
|
368
377
|
colorPopover: string;
|
|
369
378
|
colorTarget: string;
|
|
379
|
+
colorEmbedded: string;
|
|
370
380
|
textColor: string;
|
|
371
381
|
titleTextColor: string;
|
|
372
382
|
borderColor: string;
|
|
@@ -426,6 +436,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
426
436
|
contentStyle?: unknown;
|
|
427
437
|
headerStyle?: unknown;
|
|
428
438
|
footerStyle?: unknown;
|
|
439
|
+
embedded?: unknown;
|
|
429
440
|
segmented?: unknown;
|
|
430
441
|
size?: unknown;
|
|
431
442
|
bordered?: unknown;
|
|
@@ -440,6 +451,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
440
451
|
bordered: boolean;
|
|
441
452
|
closable: boolean;
|
|
442
453
|
hoverable: boolean;
|
|
454
|
+
embedded: boolean;
|
|
443
455
|
segmented: boolean | Segmented;
|
|
444
456
|
} & {
|
|
445
457
|
title?: string | undefined;
|
|
@@ -449,6 +461,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
449
461
|
colorModal: string;
|
|
450
462
|
colorPopover: string;
|
|
451
463
|
colorTarget: string;
|
|
464
|
+
colorEmbedded: string;
|
|
452
465
|
textColor: string;
|
|
453
466
|
titleTextColor: string;
|
|
454
467
|
borderColor: string;
|
|
@@ -479,6 +492,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
479
492
|
colorModal: string;
|
|
480
493
|
colorPopover: string;
|
|
481
494
|
colorTarget: string;
|
|
495
|
+
colorEmbedded: string;
|
|
482
496
|
textColor: string;
|
|
483
497
|
titleTextColor: string;
|
|
484
498
|
borderColor: string;
|
|
@@ -509,6 +523,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
509
523
|
colorModal: string;
|
|
510
524
|
colorPopover: string;
|
|
511
525
|
colorTarget: string;
|
|
526
|
+
colorEmbedded: string;
|
|
512
527
|
textColor: string;
|
|
513
528
|
titleTextColor: string;
|
|
514
529
|
borderColor: string;
|
|
@@ -542,6 +557,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
542
557
|
bordered: boolean;
|
|
543
558
|
closable: boolean;
|
|
544
559
|
hoverable: boolean;
|
|
560
|
+
embedded: boolean;
|
|
545
561
|
segmented: boolean | Segmented;
|
|
546
562
|
}>;
|
|
547
563
|
export default _default;
|
package/lib/card/src/Card.js
CHANGED
|
@@ -14,6 +14,7 @@ exports.cardBaseProps = {
|
|
|
14
14
|
contentStyle: [Object, String],
|
|
15
15
|
headerStyle: [Object, String],
|
|
16
16
|
footerStyle: [Object, String],
|
|
17
|
+
embedded: Boolean,
|
|
17
18
|
segmented: {
|
|
18
19
|
type: [Boolean, Object],
|
|
19
20
|
default: false
|
|
@@ -54,12 +55,12 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
54
55
|
handleCloseClick,
|
|
55
56
|
cssVars: (0, vue_1.computed)(() => {
|
|
56
57
|
const { size } = props;
|
|
57
|
-
const { self: { color, colorModal, colorTarget, textColor, titleTextColor, titleFontWeight, borderColor, actionColor, borderRadius, closeColor, closeColorHover, closeColorPressed, lineHeight, closeSize, boxShadow, colorPopover, [(0, _utils_1.createKey)('padding', size)]: padding, [(0, _utils_1.createKey)('fontSize', size)]: fontSize, [(0, _utils_1.createKey)('titleFontSize', size)]: titleFontSize }, common: { cubicBezierEaseInOut } } = themeRef.value;
|
|
58
|
+
const { self: { color, colorModal, colorTarget, textColor, titleTextColor, titleFontWeight, borderColor, actionColor, borderRadius, closeColor, closeColorHover, closeColorPressed, lineHeight, closeSize, boxShadow, colorPopover, colorEmbedded, [(0, _utils_1.createKey)('padding', size)]: padding, [(0, _utils_1.createKey)('fontSize', size)]: fontSize, [(0, _utils_1.createKey)('titleFontSize', size)]: titleFontSize }, common: { cubicBezierEaseInOut } } = themeRef.value;
|
|
58
59
|
const { top: paddingTop, left: paddingLeft, bottom: paddingBottom } = (0, seemly_1.getPadding)(padding);
|
|
59
60
|
return {
|
|
60
61
|
'--bezier': cubicBezierEaseInOut,
|
|
61
62
|
'--border-radius': borderRadius,
|
|
62
|
-
'--color': color,
|
|
63
|
+
'--color': props.embedded ? colorEmbedded : color,
|
|
63
64
|
'--color-modal': colorModal,
|
|
64
65
|
'--color-popover': colorPopover,
|
|
65
66
|
'--color-target': colorTarget,
|
package/lib/card/styles/dark.js
CHANGED
|
@@ -5,6 +5,11 @@ const light_1 = require("./light");
|
|
|
5
5
|
const cardDark = {
|
|
6
6
|
name: 'Card',
|
|
7
7
|
common: common_1.commonDark,
|
|
8
|
-
self
|
|
8
|
+
self(vars) {
|
|
9
|
+
const commonSelf = (0, light_1.self)(vars);
|
|
10
|
+
const { cardColor } = vars;
|
|
11
|
+
commonSelf.colorEmbedded = cardColor;
|
|
12
|
+
return commonSelf;
|
|
13
|
+
}
|
|
9
14
|
};
|
|
10
15
|
exports.default = cardDark;
|
package/lib/card/styles/light.js
CHANGED
|
@@ -4,8 +4,8 @@ exports.self = void 0;
|
|
|
4
4
|
const common_1 = require("../../_styles/common");
|
|
5
5
|
const _common_1 = require("./_common");
|
|
6
6
|
const self = (vars) => {
|
|
7
|
-
const { primaryColor, borderRadius, lineHeight, fontSize, cardColor, textColor2, textColor1, dividerColor,
|
|
8
|
-
return Object.assign(Object.assign({}, _common_1.default), { lineHeight, color: cardColor, colorModal: modalColor, colorPopover: popoverColor, colorTarget: primaryColor, textColor: textColor2, titleTextColor: textColor1, borderColor: dividerColor, actionColor: actionColor, titleFontWeight: fontWeightStrong, closeColor: closeColor, closeColorHover: closeColorHover, closeColorPressed: closeColorPressed, fontSizeSmall: fontSize, fontSizeMedium: fontSize, fontSizeLarge: fontSize, fontSizeHuge: fontSize, boxShadow: boxShadow1, borderRadius });
|
|
7
|
+
const { primaryColor, borderRadius, lineHeight, fontSize, cardColor, textColor2, textColor1, dividerColor, fontWeightStrong, closeColor, closeColorHover, closeColorPressed, modalColor, boxShadow1, popoverColor, actionColor } = vars;
|
|
8
|
+
return Object.assign(Object.assign({}, _common_1.default), { lineHeight, color: cardColor, colorModal: modalColor, colorPopover: popoverColor, colorTarget: primaryColor, colorEmbedded: actionColor, textColor: textColor2, titleTextColor: textColor1, borderColor: dividerColor, actionColor: actionColor, titleFontWeight: fontWeightStrong, closeColor: closeColor, closeColorHover: closeColorHover, closeColorPressed: closeColorPressed, fontSizeSmall: fontSize, fontSizeMedium: fontSize, fontSizeLarge: fontSize, fontSizeHuge: fontSize, boxShadow: boxShadow1, borderRadius });
|
|
9
9
|
};
|
|
10
10
|
exports.self = self;
|
|
11
11
|
const cardLight = {
|