naive-ui 2.20.3 → 2.21.3
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/scrollbar/src/ScrollBar.d.ts +1 -0
- package/es/_internal/scrollbar/src/ScrollBar.js +9 -4
- package/es/_internal/select-menu/src/SelectMenu.d.ts +4 -0
- package/es/_internal/selection/src/Selection.d.ts +4 -0
- package/es/_internal/suffix/src/Suffix.d.ts +4 -1
- package/es/_internal/suffix/src/Suffix.js +4 -1
- package/es/_styles/common/dark.js +2 -1
- package/es/_styles/common/light.d.ts +4 -0
- package/es/_styles/common/light.js +5 -2
- package/es/_styles/global/index.cssr.js +9 -4
- package/es/_styles/transitions/icon-switch.cssr.js +6 -2
- package/es/_utils/naive/extract-public-props.d.ts +1 -1
- package/es/alert/src/Alert.d.ts +4 -0
- package/es/auto-complete/src/AutoComplete.d.ts +9 -1
- package/es/auto-complete/src/AutoComplete.js +5 -2
- package/es/avatar/src/Avatar.d.ts +8 -1
- package/es/avatar/src/Avatar.js +41 -9
- package/es/avatar/src/styles/index.cssr.js +2 -2
- package/es/button/src/Button.d.ts +149 -52
- package/es/button/src/Button.js +128 -56
- package/es/button/src/interface.d.ts +1 -1
- package/es/button/styles/dark.js +3 -0
- package/es/button/styles/light.d.ts +14 -5
- package/es/button/styles/light.js +10 -3
- package/es/calendar/src/Calendar.d.ts +144 -50
- package/es/calendar/styles/light.d.ts +14 -5
- package/es/card/src/Card.d.ts +4 -0
- package/es/cascader/src/Cascader.d.ts +4 -0
- package/es/cascader/src/CascaderOption.d.ts +4 -0
- package/es/cascader/src/CascaderSelectMenu.d.ts +4 -0
- package/es/cascader/src/CascaderSubmenu.d.ts +4 -0
- package/es/checkbox/src/Checkbox.d.ts +9 -5
- package/es/checkbox/src/Checkbox.js +3 -3
- package/es/collapse/src/Collapse.d.ts +4 -0
- package/es/color-picker/src/ColorInputUnit.d.ts +18 -5
- package/es/color-picker/src/ColorPicker.d.ts +126 -45
- package/es/color-picker/styles/light.d.ts +14 -5
- package/es/data-table/src/DataTable.d.ts +184 -51
- package/es/data-table/src/DataTable.js +11 -6
- package/es/data-table/src/HeaderButton/FilterButton.d.ts +21 -5
- package/es/data-table/src/HeaderButton/FilterMenu.d.ts +22 -6
- package/es/data-table/src/TableParts/Body.d.ts +26 -6
- package/es/data-table/src/TableParts/Body.js +77 -39
- package/es/data-table/src/TableParts/BodyCheckbox.js +1 -1
- package/es/data-table/src/TableParts/Cell.d.ts +42 -10
- package/es/data-table/src/TableParts/Header.d.ts +21 -5
- package/es/data-table/src/TableParts/Header.js +1 -1
- package/es/data-table/src/interface.d.ts +4 -1
- package/es/data-table/src/styles/index.cssr.js +14 -19
- package/es/data-table/src/use-table-data.js +3 -3
- package/es/data-table/styles/light.d.ts +20 -5
- package/es/data-table/styles/light.js +4 -4
- package/es/date-picker/src/DatePicker.d.ts +299 -105
- package/es/date-picker/src/panel/date.d.ts +47 -16
- package/es/date-picker/src/panel/daterange.d.ts +48 -17
- package/es/date-picker/src/panel/datetime.d.ts +47 -16
- package/es/date-picker/src/panel/datetimerange.d.ts +48 -17
- package/es/date-picker/src/panel/month.d.ts +47 -16
- package/es/date-picker/src/panel/use-calendar.d.ts +47 -16
- package/es/date-picker/src/panel/use-calendar.js +2 -0
- package/es/date-picker/src/panel/use-dual-calendar.d.ts +48 -17
- package/es/date-picker/src/panel/use-dual-calendar.js +4 -0
- package/es/date-picker/src/panel/use-panel-common.d.ts +46 -15
- package/es/date-picker/styles/light.d.ts +28 -10
- package/es/dialog/src/Dialog.d.ts +102 -35
- package/es/dialog/src/styles/index.cssr.js +1 -0
- package/es/dialog/styles/light.d.ts +14 -5
- package/es/drawer/src/Drawer.d.ts +4 -0
- package/es/drawer/src/DrawerBodyWrapper.d.ts +4 -0
- package/es/drawer/src/DrawerContent.d.ts +4 -0
- package/es/dropdown/index.d.ts +1 -1
- package/es/dropdown/src/Dropdown.d.ts +11 -7
- package/es/dropdown/src/DropdownGroup.d.ts +2 -3
- package/es/dropdown/src/DropdownGroupHeader.js +3 -3
- package/es/dropdown/src/DropdownMenu.d.ts +3 -4
- package/es/dropdown/src/DropdownMenu.js +5 -4
- package/es/dropdown/src/DropdownOption.d.ts +3 -4
- package/es/dropdown/src/DropdownOption.js +5 -4
- package/es/dropdown/src/DropdownRenderOption.d.ts +2 -3
- package/es/dropdown/src/interface.d.ts +9 -30
- package/es/dynamic-input/src/DynamicInput.d.ts +144 -50
- package/es/dynamic-input/src/InputPreset.d.ts +18 -5
- package/es/dynamic-input/src/PairPreset.d.ts +18 -5
- package/es/dynamic-input/styles/light.d.ts +14 -5
- package/es/dynamic-tags/src/DynamicTags.d.ts +145 -50
- package/es/dynamic-tags/styles/light.d.ts +14 -5
- package/es/ellipsis/src/Ellipsis.d.ts +4 -0
- package/es/global-style/src/GlobalStyle.js +2 -0
- package/es/image/src/Image.d.ts +25 -16
- package/es/image/src/Image.js +33 -5
- package/es/image/src/ImageGroup.js +2 -2
- package/es/image/src/ImagePreview.d.ts +1 -0
- package/es/image/src/ImagePreview.js +51 -4
- package/es/image/src/interface.d.ts +6 -0
- package/es/image/src/interface.js +1 -0
- package/es/image/src/styles/index.cssr.js +4 -3
- package/es/input/src/Input.d.ts +5 -0
- package/es/input/src/Input.js +6 -0
- package/es/input/src/interface.d.ts +1 -0
- package/es/input/src/styles/input.cssr.js +2 -1
- package/es/input-number/src/InputNumber.d.ts +179 -50
- package/es/input-number/src/InputNumber.js +26 -7
- package/es/input-number/src/utils.d.ts +1 -0
- package/es/input-number/src/utils.js +4 -0
- package/es/input-number/styles/light.d.ts +14 -5
- package/es/layout/src/Layout.d.ts +8 -0
- package/es/layout/src/LayoutContent.d.ts +4 -0
- package/es/layout/src/LayoutSider.d.ts +4 -0
- package/es/log/src/Log.d.ts +10 -25
- package/es/log/src/Log.js +2 -11
- package/es/log/src/LogLine.d.ts +1 -0
- package/es/log/src/LogLine.js +12 -10
- package/es/mention/src/Mention.d.ts +5 -0
- package/es/menu/index.d.ts +1 -1
- package/es/menu/src/Menu.d.ts +20 -6
- package/es/menu/src/Menu.js +2 -1
- package/es/menu/src/MenuDivider.d.ts +2 -0
- package/es/menu/src/MenuDivider.js +11 -0
- package/es/menu/src/MenuOption.d.ts +9 -1
- package/es/menu/src/MenuOptionContent.d.ts +4 -1
- package/es/menu/src/Submenu.d.ts +18 -16
- package/es/menu/src/interface.d.ts +23 -4
- package/es/menu/src/styles/index.cssr.js +6 -1
- package/es/menu/src/utils.d.ts +4 -2
- package/es/menu/src/utils.js +16 -2
- package/es/menu/styles/light.d.ts +2 -0
- package/es/menu/styles/light.js +3 -2
- package/es/modal/src/BodyWrapper.d.ts +32 -10
- package/es/modal/src/Modal.d.ts +169 -61
- package/es/modal/styles/light.d.ts +14 -5
- package/es/notification/src/NotificationContainer.d.ts +11 -0
- package/es/notification/src/NotificationContainer.js +7 -2
- package/es/notification/src/NotificationProvider.d.ts +17 -0
- package/es/notification/src/NotificationProvider.js +38 -3
- package/es/notification/src/styles/index.cssr.d.ts +2 -1
- package/es/notification/src/styles/index.cssr.js +41 -12
- package/es/pagination/src/Pagination.d.ts +5 -0
- package/es/popconfirm/src/Popconfirm.d.ts +149 -55
- package/es/popconfirm/styles/light.d.ts +14 -5
- package/es/popover/src/Popover.d.ts +6 -6
- package/es/popover/src/Popover.js +2 -5
- package/es/popover/src/PopoverBody.d.ts +5 -5
- package/es/popover/src/PopoverBody.js +2 -1
- package/es/popover/src/styles/index.cssr.js +0 -1
- package/es/popselect/src/Popselect.d.ts +9 -5
- package/es/popselect/src/PopselectPanel.d.ts +4 -0
- package/es/radio/src/Radio.d.ts +3 -0
- package/es/radio/src/RadioButton.d.ts +3 -0
- package/es/radio/src/use-radio.d.ts +2 -0
- package/es/radio/src/use-radio.js +6 -3
- package/es/select/src/Select.d.ts +4 -0
- package/es/slider/src/Slider.d.ts +71 -91
- package/es/slider/src/Slider.js +342 -583
- package/es/slider/src/interface.d.ts +1 -1
- package/es/slider/src/styles/index.cssr.js +86 -16
- package/es/slider/src/utils.d.ts +10 -1
- package/es/slider/src/utils.js +9 -0
- package/es/slider/styles/_common.d.ts +1 -0
- package/es/slider/styles/_common.js +1 -0
- package/es/slider/styles/light.d.ts +1 -0
- package/es/space/src/Space.js +2 -0
- package/es/steps/src/Step.js +1 -1
- package/es/switch/src/Switch.d.ts +16 -1
- package/es/switch/src/Switch.js +17 -4
- package/es/switch/src/styles/index.cssr.js +1 -1
- package/es/table/src/Table.d.ts +35 -0
- package/es/table/src/Table.js +8 -4
- package/es/table/src/styles/index.cssr.js +1 -1
- package/es/table/styles/light.d.ts +3 -0
- package/es/table/styles/light.js +2 -2
- package/es/tabs/index.d.ts +2 -0
- package/es/tabs/index.js +1 -0
- package/es/tabs/src/Tab.d.ts +35 -18
- package/es/tabs/src/Tab.js +11 -12
- package/es/tabs/src/Tabs.js +58 -18
- package/es/tag/src/Tag.d.ts +8 -3
- package/es/tag/src/Tag.js +10 -2
- package/es/tag/src/styles/index.cssr.js +10 -5
- package/es/tag/src/styles/rtl.cssr.js +7 -1
- package/es/theme-editor/src/ThemeEditor.d.ts +4 -0
- package/es/theme-editor/src/ThemeEditor.js +9 -2
- package/es/time-picker/src/Panel.d.ts +18 -5
- package/es/time-picker/src/TimePicker.d.ts +145 -50
- package/es/time-picker/styles/light.d.ts +14 -5
- package/es/tooltip/src/Tooltip.d.ts +9 -5
- package/es/transfer/src/Transfer.d.ts +144 -50
- package/es/transfer/src/TransferFilter.d.ts +18 -5
- package/es/transfer/src/TransferList.d.ts +18 -5
- package/es/transfer/src/TransferListItem.d.ts +18 -5
- package/es/transfer/styles/light.d.ts +14 -5
- package/es/tree/src/Tree.d.ts +12 -4
- package/es/tree/src/Tree.js +32 -6
- package/es/tree/src/TreeNodeCheckbox.d.ts +4 -0
- package/es/tree-select/src/TreeSelect.d.ts +4 -0
- package/es/upload/index.d.ts +1 -2
- package/es/upload/src/Upload.d.ts +151 -59
- package/es/upload/src/Upload.js +69 -16
- package/es/upload/src/UploadFile.d.ts +18 -5
- package/es/upload/src/UploadProgress.d.ts +18 -5
- package/es/upload/src/interface.d.ts +14 -1
- package/es/upload/styles/light.d.ts +14 -5
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/_internal/scrollbar/src/ScrollBar.d.ts +1 -0
- package/lib/_internal/scrollbar/src/ScrollBar.js +9 -4
- package/lib/_internal/select-menu/src/SelectMenu.d.ts +4 -0
- package/lib/_internal/selection/src/Selection.d.ts +4 -0
- package/lib/_internal/suffix/src/Suffix.d.ts +4 -1
- package/lib/_internal/suffix/src/Suffix.js +4 -1
- package/lib/_styles/common/dark.js +2 -1
- package/lib/_styles/common/light.d.ts +4 -0
- package/lib/_styles/common/light.js +5 -2
- package/lib/_styles/global/index.cssr.js +10 -5
- package/lib/_styles/transitions/icon-switch.cssr.js +7 -2
- package/lib/_utils/naive/extract-public-props.d.ts +1 -1
- package/lib/alert/src/Alert.d.ts +4 -0
- package/lib/auto-complete/src/AutoComplete.d.ts +9 -1
- package/lib/auto-complete/src/AutoComplete.js +5 -2
- package/lib/avatar/src/Avatar.d.ts +8 -1
- package/lib/avatar/src/Avatar.js +40 -8
- package/lib/avatar/src/styles/index.cssr.js +2 -2
- package/lib/button/src/Button.d.ts +149 -52
- package/lib/button/src/Button.js +126 -54
- package/lib/button/src/interface.d.ts +1 -1
- package/lib/button/styles/dark.js +3 -0
- package/lib/button/styles/light.d.ts +14 -5
- package/lib/button/styles/light.js +10 -3
- package/lib/calendar/src/Calendar.d.ts +144 -50
- package/lib/calendar/styles/light.d.ts +14 -5
- package/lib/card/src/Card.d.ts +4 -0
- package/lib/cascader/src/Cascader.d.ts +4 -0
- package/lib/cascader/src/CascaderOption.d.ts +4 -0
- package/lib/cascader/src/CascaderSelectMenu.d.ts +4 -0
- package/lib/cascader/src/CascaderSubmenu.d.ts +4 -0
- package/lib/checkbox/src/Checkbox.d.ts +9 -5
- package/lib/checkbox/src/Checkbox.js +3 -3
- package/lib/collapse/src/Collapse.d.ts +4 -0
- package/lib/color-picker/src/ColorInputUnit.d.ts +18 -5
- package/lib/color-picker/src/ColorPicker.d.ts +126 -45
- package/lib/color-picker/styles/light.d.ts +14 -5
- package/lib/data-table/src/DataTable.d.ts +184 -51
- package/lib/data-table/src/DataTable.js +11 -6
- package/lib/data-table/src/HeaderButton/FilterButton.d.ts +21 -5
- package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +22 -6
- package/lib/data-table/src/TableParts/Body.d.ts +26 -6
- package/lib/data-table/src/TableParts/Body.js +77 -39
- package/lib/data-table/src/TableParts/BodyCheckbox.js +1 -1
- package/lib/data-table/src/TableParts/Cell.d.ts +42 -10
- package/lib/data-table/src/TableParts/Header.d.ts +21 -5
- package/lib/data-table/src/TableParts/Header.js +1 -1
- package/lib/data-table/src/interface.d.ts +4 -1
- package/lib/data-table/src/styles/index.cssr.js +14 -19
- package/lib/data-table/src/use-table-data.js +3 -3
- package/lib/data-table/styles/light.d.ts +20 -5
- package/lib/data-table/styles/light.js +4 -4
- package/lib/date-picker/src/DatePicker.d.ts +299 -105
- package/lib/date-picker/src/panel/date.d.ts +47 -16
- package/lib/date-picker/src/panel/daterange.d.ts +48 -17
- package/lib/date-picker/src/panel/datetime.d.ts +47 -16
- package/lib/date-picker/src/panel/datetimerange.d.ts +48 -17
- package/lib/date-picker/src/panel/month.d.ts +47 -16
- package/lib/date-picker/src/panel/use-calendar.d.ts +47 -16
- package/lib/date-picker/src/panel/use-calendar.js +2 -0
- package/lib/date-picker/src/panel/use-dual-calendar.d.ts +48 -17
- package/lib/date-picker/src/panel/use-dual-calendar.js +4 -0
- package/lib/date-picker/src/panel/use-panel-common.d.ts +46 -15
- package/lib/date-picker/styles/light.d.ts +28 -10
- package/lib/dialog/src/Dialog.d.ts +102 -35
- package/lib/dialog/src/styles/index.cssr.js +1 -0
- package/lib/dialog/styles/light.d.ts +14 -5
- package/lib/drawer/src/Drawer.d.ts +4 -0
- package/lib/drawer/src/DrawerBodyWrapper.d.ts +4 -0
- package/lib/drawer/src/DrawerContent.d.ts +4 -0
- package/lib/dropdown/index.d.ts +1 -1
- package/lib/dropdown/src/Dropdown.d.ts +11 -7
- package/lib/dropdown/src/DropdownGroup.d.ts +2 -3
- package/lib/dropdown/src/DropdownGroupHeader.js +3 -3
- package/lib/dropdown/src/DropdownMenu.d.ts +3 -4
- package/lib/dropdown/src/DropdownMenu.js +5 -4
- package/lib/dropdown/src/DropdownOption.d.ts +3 -4
- package/lib/dropdown/src/DropdownOption.js +5 -4
- package/lib/dropdown/src/DropdownRenderOption.d.ts +2 -3
- package/lib/dropdown/src/interface.d.ts +9 -30
- package/lib/dynamic-input/src/DynamicInput.d.ts +144 -50
- package/lib/dynamic-input/src/InputPreset.d.ts +18 -5
- package/lib/dynamic-input/src/PairPreset.d.ts +18 -5
- package/lib/dynamic-input/styles/light.d.ts +14 -5
- package/lib/dynamic-tags/src/DynamicTags.d.ts +145 -50
- package/lib/dynamic-tags/styles/light.d.ts +14 -5
- package/lib/ellipsis/src/Ellipsis.d.ts +4 -0
- package/lib/global-style/src/GlobalStyle.js +2 -0
- package/lib/image/src/Image.d.ts +25 -16
- package/lib/image/src/Image.js +32 -4
- package/lib/image/src/ImageGroup.js +2 -2
- package/lib/image/src/ImagePreview.d.ts +1 -0
- package/lib/image/src/ImagePreview.js +51 -4
- package/lib/image/src/interface.d.ts +6 -0
- package/lib/image/src/interface.js +2 -0
- package/lib/image/src/styles/index.cssr.js +3 -2
- package/lib/input/src/Input.d.ts +5 -0
- package/lib/input/src/Input.js +6 -0
- package/lib/input/src/interface.d.ts +1 -0
- package/lib/input/src/styles/input.cssr.js +2 -1
- package/lib/input-number/src/InputNumber.d.ts +179 -50
- package/lib/input-number/src/InputNumber.js +25 -6
- package/lib/input-number/src/utils.d.ts +1 -0
- package/lib/input-number/src/utils.js +6 -1
- package/lib/input-number/styles/light.d.ts +14 -5
- package/lib/layout/src/Layout.d.ts +8 -0
- package/lib/layout/src/LayoutContent.d.ts +4 -0
- package/lib/layout/src/LayoutSider.d.ts +4 -0
- package/lib/log/src/Log.d.ts +10 -25
- package/lib/log/src/Log.js +2 -11
- package/lib/log/src/LogLine.d.ts +1 -0
- package/lib/log/src/LogLine.js +11 -9
- package/lib/mention/src/Mention.d.ts +5 -0
- package/lib/menu/index.d.ts +1 -1
- package/lib/menu/src/Menu.d.ts +20 -6
- package/lib/menu/src/Menu.js +2 -1
- package/lib/menu/src/MenuDivider.d.ts +2 -0
- package/lib/menu/src/MenuDivider.js +13 -0
- package/lib/menu/src/MenuOption.d.ts +9 -1
- package/lib/menu/src/MenuOptionContent.d.ts +4 -1
- package/lib/menu/src/Submenu.d.ts +18 -16
- package/lib/menu/src/interface.d.ts +23 -4
- package/lib/menu/src/styles/index.cssr.js +6 -1
- package/lib/menu/src/utils.d.ts +4 -2
- package/lib/menu/src/utils.js +22 -3
- package/lib/menu/styles/light.d.ts +2 -0
- package/lib/menu/styles/light.js +3 -2
- package/lib/modal/src/BodyWrapper.d.ts +32 -10
- package/lib/modal/src/Modal.d.ts +169 -61
- package/lib/modal/styles/light.d.ts +14 -5
- package/lib/notification/src/NotificationContainer.d.ts +11 -0
- package/lib/notification/src/NotificationContainer.js +7 -2
- package/lib/notification/src/NotificationProvider.d.ts +17 -0
- package/lib/notification/src/NotificationProvider.js +38 -3
- package/lib/notification/src/styles/index.cssr.d.ts +2 -1
- package/lib/notification/src/styles/index.cssr.js +41 -12
- package/lib/pagination/src/Pagination.d.ts +5 -0
- package/lib/popconfirm/src/Popconfirm.d.ts +149 -55
- package/lib/popconfirm/styles/light.d.ts +14 -5
- package/lib/popover/src/Popover.d.ts +6 -6
- package/lib/popover/src/Popover.js +2 -5
- package/lib/popover/src/PopoverBody.d.ts +5 -5
- package/lib/popover/src/PopoverBody.js +2 -1
- package/lib/popover/src/styles/index.cssr.js +0 -1
- package/lib/popselect/src/Popselect.d.ts +9 -5
- package/lib/popselect/src/PopselectPanel.d.ts +4 -0
- package/lib/radio/src/Radio.d.ts +3 -0
- package/lib/radio/src/RadioButton.d.ts +3 -0
- package/lib/radio/src/use-radio.d.ts +2 -0
- package/lib/radio/src/use-radio.js +6 -3
- package/lib/select/src/Select.d.ts +4 -0
- package/lib/slider/src/Slider.d.ts +71 -91
- package/lib/slider/src/Slider.js +340 -581
- package/lib/slider/src/interface.d.ts +1 -1
- package/lib/slider/src/styles/index.cssr.js +86 -16
- package/lib/slider/src/utils.d.ts +10 -1
- package/lib/slider/src/utils.js +11 -1
- package/lib/slider/styles/_common.d.ts +1 -0
- package/lib/slider/styles/_common.js +1 -0
- package/lib/slider/styles/light.d.ts +1 -0
- package/lib/space/src/Space.js +2 -0
- package/lib/steps/src/Step.js +1 -1
- package/lib/switch/src/Switch.d.ts +16 -1
- package/lib/switch/src/Switch.js +17 -4
- package/lib/switch/src/styles/index.cssr.js +1 -1
- package/lib/table/src/Table.d.ts +35 -0
- package/lib/table/src/Table.js +8 -4
- package/lib/table/src/styles/index.cssr.js +1 -1
- package/lib/table/styles/light.d.ts +3 -0
- package/lib/table/styles/light.js +2 -2
- package/lib/tabs/index.d.ts +2 -0
- package/lib/tabs/index.js +3 -1
- package/lib/tabs/src/Tab.d.ts +35 -18
- package/lib/tabs/src/Tab.js +10 -11
- package/lib/tabs/src/Tabs.js +57 -17
- package/lib/tag/src/Tag.d.ts +8 -3
- package/lib/tag/src/Tag.js +10 -1
- package/lib/tag/src/styles/index.cssr.js +10 -5
- package/lib/tag/src/styles/rtl.cssr.js +7 -1
- package/lib/theme-editor/src/ThemeEditor.d.ts +4 -0
- package/lib/theme-editor/src/ThemeEditor.js +9 -2
- package/lib/time-picker/src/Panel.d.ts +18 -5
- package/lib/time-picker/src/TimePicker.d.ts +145 -50
- package/lib/time-picker/styles/light.d.ts +14 -5
- package/lib/tooltip/src/Tooltip.d.ts +9 -5
- package/lib/transfer/src/Transfer.d.ts +144 -50
- package/lib/transfer/src/TransferFilter.d.ts +18 -5
- package/lib/transfer/src/TransferList.d.ts +18 -5
- package/lib/transfer/src/TransferListItem.d.ts +18 -5
- package/lib/transfer/styles/light.d.ts +14 -5
- package/lib/tree/src/Tree.d.ts +12 -4
- package/lib/tree/src/Tree.js +32 -6
- package/lib/tree/src/TreeNodeCheckbox.d.ts +4 -0
- package/lib/tree-select/src/TreeSelect.d.ts +4 -0
- package/lib/upload/index.d.ts +1 -2
- package/lib/upload/src/Upload.d.ts +151 -59
- package/lib/upload/src/Upload.js +69 -16
- package/lib/upload/src/UploadFile.d.ts +18 -5
- package/lib/upload/src/UploadProgress.d.ts +18 -5
- package/lib/upload/src/interface.d.ts +14 -1
- package/lib/upload/styles/light.d.ts +14 -5
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +8 -7
- package/web-types.json +245 -14
package/lib/button/src/Button.js
CHANGED
|
@@ -14,7 +14,8 @@ const styles_1 = require("../styles");
|
|
|
14
14
|
const ButtonGroup_1 = require("./ButtonGroup");
|
|
15
15
|
const button_cssr_1 = __importDefault(require("./styles/button.cssr"));
|
|
16
16
|
const use_rtl_1 = __importDefault(require("../../_mixins/use-rtl"));
|
|
17
|
-
const
|
|
17
|
+
const seemly_1 = require("seemly");
|
|
18
|
+
const buttonProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), { color: String, textColor: String, text: Boolean, block: Boolean, loading: Boolean, disabled: Boolean, circle: Boolean, size: String, ghost: Boolean, round: Boolean, secondary: Boolean, tertiary: Boolean, quaternary: Boolean, strong: Boolean, focusable: {
|
|
18
19
|
type: Boolean,
|
|
19
20
|
default: true
|
|
20
21
|
}, keyboard: {
|
|
@@ -40,11 +41,23 @@ const Button = (0, vue_1.defineComponent)({
|
|
|
40
41
|
name: 'Button',
|
|
41
42
|
props: buttonProps,
|
|
42
43
|
setup(props) {
|
|
44
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
45
|
+
(0, vue_1.watchEffect)(() => {
|
|
46
|
+
const { dashed, ghost, text, secondary, tertiary, quaternary } = props;
|
|
47
|
+
if ((dashed || ghost || text) &&
|
|
48
|
+
(secondary || tertiary || quaternary)) {
|
|
49
|
+
(0, _utils_1.warnOnce)('button', "`dashed`, `ghost` and `text` props can't be used along with `secondary`, `tertiary` and `quaterary` props.");
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
}
|
|
43
53
|
const selfRef = (0, vue_1.ref)(null);
|
|
44
54
|
const waveRef = (0, vue_1.ref)(null);
|
|
45
55
|
const enterPressedRef = (0, vue_1.ref)(false);
|
|
46
56
|
const showBorderRef = (0, vooks_1.useMemo)(() => {
|
|
47
|
-
return (!props.
|
|
57
|
+
return (!props.quaternary &&
|
|
58
|
+
!props.tertiary &&
|
|
59
|
+
!props.secondary &&
|
|
60
|
+
!props.text &&
|
|
48
61
|
(!props.color || props.ghost || props.dashed) &&
|
|
49
62
|
props.bordered);
|
|
50
63
|
});
|
|
@@ -68,7 +81,7 @@ const Button = (0, vue_1.defineComponent)({
|
|
|
68
81
|
const mergedFocusableRef = (0, vue_1.computed)(() => {
|
|
69
82
|
return props.focusable && !props.disabled;
|
|
70
83
|
});
|
|
71
|
-
const
|
|
84
|
+
const handleMousedown = (e) => {
|
|
72
85
|
var _a;
|
|
73
86
|
e.preventDefault();
|
|
74
87
|
if (props.disabled) {
|
|
@@ -91,24 +104,17 @@ const Button = (0, vue_1.defineComponent)({
|
|
|
91
104
|
}
|
|
92
105
|
}
|
|
93
106
|
};
|
|
94
|
-
const
|
|
107
|
+
const handleKeyup = (e) => {
|
|
95
108
|
switch (e.code) {
|
|
96
109
|
case 'Enter':
|
|
97
110
|
case 'NumpadEnter':
|
|
98
111
|
if (!props.keyboard) {
|
|
99
|
-
e.preventDefault();
|
|
100
112
|
return;
|
|
101
113
|
}
|
|
102
114
|
enterPressedRef.value = false;
|
|
103
|
-
void (0, vue_1.nextTick)(() => {
|
|
104
|
-
var _a;
|
|
105
|
-
if (!props.disabled) {
|
|
106
|
-
(_a = selfRef.value) === null || _a === void 0 ? void 0 : _a.click();
|
|
107
|
-
}
|
|
108
|
-
});
|
|
109
115
|
}
|
|
110
116
|
};
|
|
111
|
-
const
|
|
117
|
+
const handleKeydown = (e) => {
|
|
112
118
|
switch (e.code) {
|
|
113
119
|
case 'Enter':
|
|
114
120
|
case 'NumpadEnter':
|
|
@@ -134,10 +140,10 @@ const Button = (0, vue_1.defineComponent)({
|
|
|
134
140
|
showBorder: showBorderRef,
|
|
135
141
|
enterPressed: enterPressedRef,
|
|
136
142
|
rtlEnabled: rtlEnabledRef,
|
|
137
|
-
|
|
138
|
-
|
|
143
|
+
handleMousedown,
|
|
144
|
+
handleKeydown,
|
|
139
145
|
handleBlur,
|
|
140
|
-
|
|
146
|
+
handleKeyup,
|
|
141
147
|
handleClick,
|
|
142
148
|
customColorCssVars: (0, vue_1.computed)(() => {
|
|
143
149
|
const { color } = props;
|
|
@@ -155,16 +161,12 @@ const Button = (0, vue_1.defineComponent)({
|
|
|
155
161
|
cssVars: (0, vue_1.computed)(() => {
|
|
156
162
|
const theme = themeRef.value;
|
|
157
163
|
const { common: { cubicBezierEaseInOut, cubicBezierEaseOut }, self } = theme;
|
|
158
|
-
const { rippleDuration, opacityDisabled,
|
|
164
|
+
const { rippleDuration, opacityDisabled, fontWeight, fontWeightStrong } = self;
|
|
159
165
|
const size = mergedSizeRef.value;
|
|
160
|
-
const { dashed, type, ghost, text, color, round, circle, textColor } = props;
|
|
166
|
+
const { dashed, type, ghost, text, color, round, circle, textColor, secondary, tertiary, quaternary, strong } = props;
|
|
161
167
|
// font
|
|
162
168
|
const fontProps = {
|
|
163
|
-
fontWeight:
|
|
164
|
-
? fontWeightText
|
|
165
|
-
: ghost
|
|
166
|
-
? fontWeighGhost
|
|
167
|
-
: fontWeight
|
|
169
|
+
fontWeight: strong ? fontWeightStrong : fontWeight
|
|
168
170
|
};
|
|
169
171
|
// color
|
|
170
172
|
let colorProps = {
|
|
@@ -180,13 +182,12 @@ const Button = (0, vue_1.defineComponent)({
|
|
|
180
182
|
'--text-color-focus': 'initial',
|
|
181
183
|
'--text-color-disabled': 'initial'
|
|
182
184
|
};
|
|
185
|
+
const typeIsTertiary = type === 'tertiary';
|
|
186
|
+
const typeIsDefault = type === 'default';
|
|
187
|
+
const mergedType = typeIsTertiary ? 'default' : type;
|
|
183
188
|
if (text) {
|
|
184
|
-
const { depth } = props;
|
|
185
189
|
const propTextColor = textColor || color;
|
|
186
|
-
const mergedTextColor = propTextColor ||
|
|
187
|
-
(type === 'default' && depth !== undefined
|
|
188
|
-
? self[(0, _utils_1.createKey)('textColorTextDepth', String(depth))]
|
|
189
|
-
: self[(0, _utils_1.createKey)('textColorText', type)]);
|
|
190
|
+
const mergedTextColor = propTextColor || self[(0, _utils_1.createKey)('textColorText', mergedType)];
|
|
190
191
|
colorProps = {
|
|
191
192
|
'--color': '#0000',
|
|
192
193
|
'--color-hover': '#0000',
|
|
@@ -197,14 +198,15 @@ const Button = (0, vue_1.defineComponent)({
|
|
|
197
198
|
'--text-color': mergedTextColor,
|
|
198
199
|
'--text-color-hover': propTextColor
|
|
199
200
|
? (0, index_1.createHoverColor)(propTextColor)
|
|
200
|
-
: self[(0, _utils_1.createKey)('textColorTextHover',
|
|
201
|
+
: self[(0, _utils_1.createKey)('textColorTextHover', mergedType)],
|
|
201
202
|
'--text-color-pressed': propTextColor
|
|
202
203
|
? (0, index_1.createPressedColor)(propTextColor)
|
|
203
|
-
: self[(0, _utils_1.createKey)('textColorTextPressed',
|
|
204
|
+
: self[(0, _utils_1.createKey)('textColorTextPressed', mergedType)],
|
|
204
205
|
'--text-color-focus': propTextColor
|
|
205
206
|
? (0, index_1.createHoverColor)(propTextColor)
|
|
206
|
-
: self[(0, _utils_1.createKey)('textColorTextHover',
|
|
207
|
-
'--text-color-disabled': propTextColor ||
|
|
207
|
+
: self[(0, _utils_1.createKey)('textColorTextHover', mergedType)],
|
|
208
|
+
'--text-color-disabled': propTextColor ||
|
|
209
|
+
self[(0, _utils_1.createKey)('textColorTextDisabled', mergedType)]
|
|
208
210
|
};
|
|
209
211
|
}
|
|
210
212
|
else if (ghost || dashed) {
|
|
@@ -215,54 +217,123 @@ const Button = (0, vue_1.defineComponent)({
|
|
|
215
217
|
'--color-pressed': '#0000',
|
|
216
218
|
'--color-focus': '#0000',
|
|
217
219
|
'--color-disabled': '#0000',
|
|
218
|
-
'--ripple-color': color || self[(0, _utils_1.createKey)('rippleColor',
|
|
219
|
-
'--text-color': mergedTextColor || self[(0, _utils_1.createKey)('textColorGhost',
|
|
220
|
+
'--ripple-color': color || self[(0, _utils_1.createKey)('rippleColor', mergedType)],
|
|
221
|
+
'--text-color': mergedTextColor || self[(0, _utils_1.createKey)('textColorGhost', mergedType)],
|
|
220
222
|
'--text-color-hover': mergedTextColor
|
|
221
223
|
? (0, index_1.createHoverColor)(mergedTextColor)
|
|
222
|
-
: self[(0, _utils_1.createKey)('textColorGhostHover',
|
|
224
|
+
: self[(0, _utils_1.createKey)('textColorGhostHover', mergedType)],
|
|
223
225
|
'--text-color-pressed': mergedTextColor
|
|
224
226
|
? (0, index_1.createPressedColor)(mergedTextColor)
|
|
225
|
-
: self[(0, _utils_1.createKey)('textColorGhostPressed',
|
|
227
|
+
: self[(0, _utils_1.createKey)('textColorGhostPressed', mergedType)],
|
|
226
228
|
'--text-color-focus': mergedTextColor
|
|
227
229
|
? (0, index_1.createHoverColor)(mergedTextColor)
|
|
228
|
-
: self[(0, _utils_1.createKey)('textColorGhostHover',
|
|
229
|
-
'--text-color-disabled': mergedTextColor ||
|
|
230
|
+
: self[(0, _utils_1.createKey)('textColorGhostHover', mergedType)],
|
|
231
|
+
'--text-color-disabled': mergedTextColor ||
|
|
232
|
+
self[(0, _utils_1.createKey)('textColorGhostDisabled', mergedType)]
|
|
233
|
+
};
|
|
234
|
+
}
|
|
235
|
+
else if (secondary) {
|
|
236
|
+
const typeTextColor = typeIsDefault
|
|
237
|
+
? self.textColor
|
|
238
|
+
: typeIsTertiary
|
|
239
|
+
? self.textColorTertiary
|
|
240
|
+
: self[(0, _utils_1.createKey)('color', mergedType)];
|
|
241
|
+
const mergedTextColor = color || typeTextColor;
|
|
242
|
+
const isColoredType = type !== 'default' && type !== 'tertiary';
|
|
243
|
+
colorProps = {
|
|
244
|
+
'--color': isColoredType
|
|
245
|
+
? (0, seemly_1.changeColor)(mergedTextColor, {
|
|
246
|
+
alpha: Number(self.colorOpacitySecondary)
|
|
247
|
+
})
|
|
248
|
+
: self.colorSecondary,
|
|
249
|
+
'--color-hover': isColoredType
|
|
250
|
+
? (0, seemly_1.changeColor)(mergedTextColor, {
|
|
251
|
+
alpha: Number(self.colorOpacitySecondaryHover)
|
|
252
|
+
})
|
|
253
|
+
: self.colorSecondaryHover,
|
|
254
|
+
'--color-pressed': isColoredType
|
|
255
|
+
? (0, seemly_1.changeColor)(mergedTextColor, {
|
|
256
|
+
alpha: Number(self.colorOpacitySecondaryPressed)
|
|
257
|
+
})
|
|
258
|
+
: self.colorSecondaryPressed,
|
|
259
|
+
'--color-focus': isColoredType
|
|
260
|
+
? (0, seemly_1.changeColor)(mergedTextColor, {
|
|
261
|
+
alpha: Number(self.colorOpacitySecondaryHover)
|
|
262
|
+
})
|
|
263
|
+
: self.colorSecondaryHover,
|
|
264
|
+
'--color-disabled': self.colorSecondary,
|
|
265
|
+
'--ripple-color': '#0000',
|
|
266
|
+
'--text-color': mergedTextColor,
|
|
267
|
+
'--text-color-hover': mergedTextColor,
|
|
268
|
+
'--text-color-pressed': mergedTextColor,
|
|
269
|
+
'--text-color-focus': mergedTextColor,
|
|
270
|
+
'--text-color-disabled': mergedTextColor
|
|
230
271
|
};
|
|
231
272
|
}
|
|
273
|
+
else if (tertiary || quaternary) {
|
|
274
|
+
const typeColor = typeIsDefault
|
|
275
|
+
? self.textColor
|
|
276
|
+
: typeIsTertiary
|
|
277
|
+
? self.textColorTertiary
|
|
278
|
+
: self[(0, _utils_1.createKey)('color', mergedType)];
|
|
279
|
+
const mergedColor = color || typeColor;
|
|
280
|
+
if (tertiary) {
|
|
281
|
+
colorProps['--color'] = self.colorTertiary;
|
|
282
|
+
colorProps['--color-hover'] = self.colorTertiaryHover;
|
|
283
|
+
colorProps['--color-pressed'] = self.colorTertiaryPressed;
|
|
284
|
+
colorProps['--color-focus'] = self.colorSecondaryHover;
|
|
285
|
+
colorProps['--color-disabled'] = self.colorTertiary;
|
|
286
|
+
}
|
|
287
|
+
else {
|
|
288
|
+
colorProps['--color'] = self.colorQuaternary;
|
|
289
|
+
colorProps['--color-hover'] = self.colorQuaternaryHover;
|
|
290
|
+
colorProps['--color-pressed'] = self.colorQuaternaryPressed;
|
|
291
|
+
colorProps['--color-focus'] = self.colorQuaternaryHover;
|
|
292
|
+
colorProps['--color-disabled'] = self.colorQuaternary;
|
|
293
|
+
}
|
|
294
|
+
colorProps['--ripple-color'] = '#0000';
|
|
295
|
+
colorProps['--text-color'] = mergedColor;
|
|
296
|
+
colorProps['--text-color-hover'] = mergedColor;
|
|
297
|
+
colorProps['--text-color-pressed'] = mergedColor;
|
|
298
|
+
colorProps['--text-color-focus'] = mergedColor;
|
|
299
|
+
colorProps['--text-color-disabled'] = mergedColor;
|
|
300
|
+
}
|
|
232
301
|
else {
|
|
233
302
|
colorProps = {
|
|
234
|
-
'--color': color || self[(0, _utils_1.createKey)('color',
|
|
303
|
+
'--color': color || self[(0, _utils_1.createKey)('color', mergedType)],
|
|
235
304
|
'--color-hover': color
|
|
236
305
|
? (0, index_1.createHoverColor)(color)
|
|
237
|
-
: self[(0, _utils_1.createKey)('colorHover',
|
|
306
|
+
: self[(0, _utils_1.createKey)('colorHover', mergedType)],
|
|
238
307
|
'--color-pressed': color
|
|
239
308
|
? (0, index_1.createPressedColor)(color)
|
|
240
|
-
: self[(0, _utils_1.createKey)('colorPressed',
|
|
309
|
+
: self[(0, _utils_1.createKey)('colorPressed', mergedType)],
|
|
241
310
|
'--color-focus': color
|
|
242
311
|
? (0, index_1.createHoverColor)(color)
|
|
243
|
-
: self[(0, _utils_1.createKey)('colorFocus',
|
|
244
|
-
'--color-disabled': color || self[(0, _utils_1.createKey)('colorDisabled',
|
|
245
|
-
'--ripple-color': color || self[(0, _utils_1.createKey)('rippleColor',
|
|
312
|
+
: self[(0, _utils_1.createKey)('colorFocus', mergedType)],
|
|
313
|
+
'--color-disabled': color || self[(0, _utils_1.createKey)('colorDisabled', mergedType)],
|
|
314
|
+
'--ripple-color': color || self[(0, _utils_1.createKey)('rippleColor', mergedType)],
|
|
246
315
|
'--text-color': textColor ||
|
|
247
316
|
(color
|
|
248
317
|
? self.textColorPrimary
|
|
249
|
-
:
|
|
318
|
+
: typeIsTertiary
|
|
319
|
+
? self.textColorTertiary
|
|
320
|
+
: self[(0, _utils_1.createKey)('textColor', mergedType)]),
|
|
250
321
|
'--text-color-hover': textColor ||
|
|
251
322
|
(color
|
|
252
323
|
? self.textColorHoverPrimary
|
|
253
|
-
: self[(0, _utils_1.createKey)('textColorHover',
|
|
324
|
+
: self[(0, _utils_1.createKey)('textColorHover', mergedType)]),
|
|
254
325
|
'--text-color-pressed': textColor ||
|
|
255
326
|
(color
|
|
256
327
|
? self.textColorPressedPrimary
|
|
257
|
-
: self[(0, _utils_1.createKey)('textColorPressed',
|
|
328
|
+
: self[(0, _utils_1.createKey)('textColorPressed', mergedType)]),
|
|
258
329
|
'--text-color-focus': textColor ||
|
|
259
330
|
(color
|
|
260
331
|
? self.textColorFocusPrimary
|
|
261
|
-
: self[(0, _utils_1.createKey)('textColorFocus',
|
|
332
|
+
: self[(0, _utils_1.createKey)('textColorFocus', mergedType)]),
|
|
262
333
|
'--text-color-disabled': textColor ||
|
|
263
334
|
(color
|
|
264
335
|
? self.textColorDisabledPrimary
|
|
265
|
-
: self[(0, _utils_1.createKey)('textColorDisabled',
|
|
336
|
+
: self[(0, _utils_1.createKey)('textColorDisabled', mergedType)])
|
|
266
337
|
};
|
|
267
338
|
}
|
|
268
339
|
// border
|
|
@@ -284,11 +355,11 @@ const Button = (0, vue_1.defineComponent)({
|
|
|
284
355
|
}
|
|
285
356
|
else {
|
|
286
357
|
borderProps = {
|
|
287
|
-
'--border': self[(0, _utils_1.createKey)('border',
|
|
288
|
-
'--border-hover': self[(0, _utils_1.createKey)('borderHover',
|
|
289
|
-
'--border-pressed': self[(0, _utils_1.createKey)('borderPressed',
|
|
290
|
-
'--border-focus': self[(0, _utils_1.createKey)('borderFocus',
|
|
291
|
-
'--border-disabled': self[(0, _utils_1.createKey)('borderDisabled',
|
|
358
|
+
'--border': self[(0, _utils_1.createKey)('border', mergedType)],
|
|
359
|
+
'--border-hover': self[(0, _utils_1.createKey)('borderHover', mergedType)],
|
|
360
|
+
'--border-pressed': self[(0, _utils_1.createKey)('borderPressed', mergedType)],
|
|
361
|
+
'--border-focus': self[(0, _utils_1.createKey)('borderFocus', mergedType)],
|
|
362
|
+
'--border-disabled': self[(0, _utils_1.createKey)('borderDisabled', mergedType)]
|
|
292
363
|
};
|
|
293
364
|
}
|
|
294
365
|
// size
|
|
@@ -328,8 +399,9 @@ const Button = (0, vue_1.defineComponent)({
|
|
|
328
399
|
this.enterPressed && `${mergedClsPrefix}-button--pressed`,
|
|
329
400
|
!this.text && this.dashed && `${mergedClsPrefix}-button--dashed`,
|
|
330
401
|
this.color && `${mergedClsPrefix}-button--color`,
|
|
402
|
+
this.secondary && `${mergedClsPrefix}-button--secondary`,
|
|
331
403
|
this.ghost && `${mergedClsPrefix}-button--ghost` // required for button group border collapse
|
|
332
|
-
], tabindex: this.mergedFocusable ? 0 : -1, type: this.attrType, style: this.cssVars, disabled: this.disabled, onClick: this.handleClick, onBlur: this.handleBlur, onMousedown: this.
|
|
404
|
+
], tabindex: this.mergedFocusable ? 0 : -1, type: this.attrType, style: this.cssVars, disabled: this.disabled, onClick: this.handleClick, onBlur: this.handleBlur, onMousedown: this.handleMousedown, onKeyup: this.handleKeyup, onKeydown: this.handleKeydown },
|
|
333
405
|
$slots.default && this.iconPlacement === 'right' ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-button__content` }, $slots)) : null,
|
|
334
406
|
(0, vue_1.h)(_internal_1.NFadeInExpandTransition, { width: true }, {
|
|
335
407
|
default: () => $slots.icon || this.loading ? ((0, vue_1.h)("span", { class: `${mergedClsPrefix}-button__icon`, style: {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare type Size = 'tiny' | 'small' | 'medium' | 'large';
|
|
2
|
-
export declare type Type = 'default' | 'primary' | 'info' | 'success' | 'warning' | 'error';
|
|
2
|
+
export declare type Type = 'default' | 'tertiary' | 'primary' | 'info' | 'success' | 'warning' | 'error';
|
|
@@ -8,6 +8,9 @@ const buttonDark = {
|
|
|
8
8
|
self(vars) {
|
|
9
9
|
const commonSelf = (0, light_1.self)(vars);
|
|
10
10
|
commonSelf.waveOpacity = '0.8';
|
|
11
|
+
commonSelf.colorOpacitySecondary = '0.16';
|
|
12
|
+
commonSelf.colorOpacitySecondaryHover = '0.2';
|
|
13
|
+
commonSelf.colorOpacitySecondaryPressed = '0.12';
|
|
11
14
|
return commonSelf;
|
|
12
15
|
}
|
|
13
16
|
};
|
|
@@ -14,20 +14,30 @@ export declare const self: (vars: ThemeCommonVars) => {
|
|
|
14
14
|
fontSizeMedium: string;
|
|
15
15
|
fontSizeLarge: string;
|
|
16
16
|
opacityDisabled: string;
|
|
17
|
+
colorOpacitySecondary: string;
|
|
18
|
+
colorOpacitySecondaryHover: string;
|
|
19
|
+
colorOpacitySecondaryPressed: string;
|
|
20
|
+
colorSecondary: string;
|
|
21
|
+
colorSecondaryHover: string;
|
|
22
|
+
colorSecondaryPressed: string;
|
|
23
|
+
colorTertiary: string;
|
|
24
|
+
colorTertiaryHover: string;
|
|
25
|
+
colorTertiaryPressed: string;
|
|
26
|
+
colorQuaternary: string;
|
|
27
|
+
colorQuaternaryHover: string;
|
|
28
|
+
colorQuaternaryPressed: string;
|
|
17
29
|
color: string;
|
|
18
30
|
colorHover: string;
|
|
19
31
|
colorPressed: string;
|
|
20
32
|
colorFocus: string;
|
|
21
33
|
colorDisabled: string;
|
|
22
34
|
textColor: string;
|
|
35
|
+
textColorTertiary: string;
|
|
23
36
|
textColorHover: string;
|
|
24
37
|
textColorPressed: string;
|
|
25
38
|
textColorFocus: string;
|
|
26
39
|
textColorDisabled: string;
|
|
27
40
|
textColorText: string;
|
|
28
|
-
textColorTextDepth1: string;
|
|
29
|
-
textColorTextDepth2: string;
|
|
30
|
-
textColorTextDepth3: string;
|
|
31
41
|
textColorTextHover: string;
|
|
32
42
|
textColorTextPressed: string;
|
|
33
43
|
textColorTextFocus: string;
|
|
@@ -174,9 +184,8 @@ export declare const self: (vars: ThemeCommonVars) => {
|
|
|
174
184
|
borderDisabledError: string;
|
|
175
185
|
rippleColorError: string;
|
|
176
186
|
waveOpacity: string;
|
|
177
|
-
fontWeightText: string;
|
|
178
187
|
fontWeight: string;
|
|
179
|
-
|
|
188
|
+
fontWeightStrong: string;
|
|
180
189
|
paddingTiny: string;
|
|
181
190
|
paddingSmall: string;
|
|
182
191
|
paddingMedium: string;
|
|
@@ -7,13 +7,19 @@ exports.self = void 0;
|
|
|
7
7
|
const _common_1 = __importDefault(require("./_common"));
|
|
8
8
|
const common_1 = require("../../_styles/common");
|
|
9
9
|
const self = (vars) => {
|
|
10
|
-
const { heightTiny, heightSmall, heightMedium, heightLarge, borderRadius, fontSizeTiny, fontSizeSmall, fontSizeMedium, fontSizeLarge, opacityDisabled,
|
|
10
|
+
const { heightTiny, heightSmall, heightMedium, heightLarge, borderRadius, fontSizeTiny, fontSizeSmall, fontSizeMedium, fontSizeLarge, opacityDisabled, textColor2, textColor3, primaryColorHover, primaryColorPressed, borderColor, primaryColor, baseColor, infoColor, infoColorHover, infoColorPressed, successColor, successColorHover, successColorPressed, warningColor, warningColorHover, warningColorPressed, errorColor, errorColorHover, errorColorPressed, fontWeight, buttonColor2, buttonColor2Hover, buttonColor2Pressed, fontWeightStrong } = vars;
|
|
11
11
|
return Object.assign(Object.assign({}, _common_1.default), { heightTiny,
|
|
12
12
|
heightSmall,
|
|
13
13
|
heightMedium,
|
|
14
14
|
heightLarge, borderRadiusTiny: borderRadius, borderRadiusSmall: borderRadius, borderRadiusMedium: borderRadius, borderRadiusLarge: borderRadius, fontSizeTiny: fontSizeTiny, fontSizeSmall: fontSizeSmall, fontSizeMedium: fontSizeMedium, fontSizeLarge: fontSizeLarge, opacityDisabled: opacityDisabled,
|
|
15
|
+
// secondary
|
|
16
|
+
colorOpacitySecondary: '0.16', colorOpacitySecondaryHover: '0.2', colorOpacitySecondaryPressed: '0.24', colorSecondary: buttonColor2, colorSecondaryHover: buttonColor2Hover, colorSecondaryPressed: buttonColor2Pressed,
|
|
17
|
+
// tertiary
|
|
18
|
+
colorTertiary: buttonColor2, colorTertiaryHover: buttonColor2Hover, colorTertiaryPressed: buttonColor2Pressed,
|
|
19
|
+
// quaternary
|
|
20
|
+
colorQuaternary: '#0000', colorQuaternaryHover: buttonColor2Hover, colorQuaternaryPressed: buttonColor2Pressed,
|
|
15
21
|
// default type
|
|
16
|
-
color: '#0000', colorHover: '#0000', colorPressed: '#0000', colorFocus: '#0000', colorDisabled: '#0000', textColor: textColor2, textColorHover: primaryColorHover, textColorPressed: primaryColorPressed, textColorFocus: primaryColorHover, textColorDisabled: textColor2, textColorText: textColor2,
|
|
22
|
+
color: '#0000', colorHover: '#0000', colorPressed: '#0000', colorFocus: '#0000', colorDisabled: '#0000', textColor: textColor2, textColorTertiary: textColor3, textColorHover: primaryColorHover, textColorPressed: primaryColorPressed, textColorFocus: primaryColorHover, textColorDisabled: textColor2, textColorText: textColor2, textColorTextHover: primaryColorHover, textColorTextPressed: primaryColorPressed, textColorTextFocus: primaryColorHover, textColorTextDisabled: textColor2, textColorGhost: textColor2, textColorGhostHover: primaryColorHover, textColorGhostPressed: primaryColorPressed, textColorGhostFocus: primaryColorHover, textColorGhostDisabled: textColor2, border: `1px solid ${borderColor}`, borderHover: `1px solid ${primaryColorHover}`, borderPressed: `1px solid ${primaryColorPressed}`, borderFocus: `1px solid ${primaryColorHover}`, borderDisabled: `1px solid ${borderColor}`, rippleColor: primaryColor,
|
|
17
23
|
// primary
|
|
18
24
|
colorPrimary: primaryColor, colorHoverPrimary: primaryColorHover, colorPressedPrimary: primaryColorPressed, colorFocusPrimary: primaryColorHover, colorDisabledPrimary: primaryColor, textColorPrimary: baseColor, textColorHoverPrimary: baseColor, textColorPressedPrimary: baseColor, textColorFocusPrimary: baseColor, textColorDisabledPrimary: baseColor, textColorTextPrimary: primaryColor, textColorTextHoverPrimary: primaryColorHover, textColorTextPressedPrimary: primaryColorPressed, textColorTextFocusPrimary: primaryColorHover, textColorTextDisabledPrimary: textColor2, textColorGhostPrimary: primaryColor, textColorGhostHoverPrimary: primaryColorHover, textColorGhostPressedPrimary: primaryColorPressed, textColorGhostFocusPrimary: primaryColorHover, textColorGhostDisabledPrimary: primaryColor, borderPrimary: `1px solid ${primaryColor}`, borderHoverPrimary: `1px solid ${primaryColorHover}`, borderPressedPrimary: `1px solid ${primaryColorPressed}`, borderFocusPrimary: `1px solid ${primaryColorHover}`, borderDisabledPrimary: `1px solid ${primaryColor}`, rippleColorPrimary: primaryColor,
|
|
19
25
|
// info
|
|
@@ -23,7 +29,8 @@ const self = (vars) => {
|
|
|
23
29
|
// warning
|
|
24
30
|
colorWarning: warningColor, colorHoverWarning: warningColorHover, colorPressedWarning: warningColorPressed, colorFocusWarning: warningColorHover, colorDisabledWarning: warningColor, textColorWarning: baseColor, textColorHoverWarning: baseColor, textColorPressedWarning: baseColor, textColorFocusWarning: baseColor, textColorDisabledWarning: baseColor, textColorTextWarning: warningColor, textColorTextHoverWarning: warningColorHover, textColorTextPressedWarning: warningColorPressed, textColorTextFocusWarning: warningColorHover, textColorTextDisabledWarning: textColor2, textColorGhostWarning: warningColor, textColorGhostHoverWarning: warningColorHover, textColorGhostPressedWarning: warningColorPressed, textColorGhostFocusWarning: warningColorHover, textColorGhostDisabledWarning: warningColor, borderWarning: `1px solid ${warningColor}`, borderHoverWarning: `1px solid ${warningColorHover}`, borderPressedWarning: `1px solid ${warningColorPressed}`, borderFocusWarning: `1px solid ${warningColorHover}`, borderDisabledWarning: `1px solid ${warningColor}`, rippleColorWarning: warningColor,
|
|
25
31
|
// error
|
|
26
|
-
colorError: errorColor, colorHoverError: errorColorHover, colorPressedError: errorColorPressed, colorFocusError: errorColorHover, colorDisabledError: errorColor, textColorError: baseColor, textColorHoverError: baseColor, textColorPressedError: baseColor, textColorFocusError: baseColor, textColorDisabledError: baseColor, textColorTextError: errorColor, textColorTextHoverError: errorColorHover, textColorTextPressedError: errorColorPressed, textColorTextFocusError: errorColorHover, textColorTextDisabledError: textColor2, textColorGhostError: errorColor, textColorGhostHoverError: errorColorHover, textColorGhostPressedError: errorColorPressed, textColorGhostFocusError: errorColorHover, textColorGhostDisabledError: errorColor, borderError: `1px solid ${errorColor}`, borderHoverError: `1px solid ${errorColorHover}`, borderPressedError: `1px solid ${errorColorPressed}`, borderFocusError: `1px solid ${errorColorHover}`, borderDisabledError: `1px solid ${errorColor}`, rippleColorError: errorColor, waveOpacity: '0.6',
|
|
32
|
+
colorError: errorColor, colorHoverError: errorColorHover, colorPressedError: errorColorPressed, colorFocusError: errorColorHover, colorDisabledError: errorColor, textColorError: baseColor, textColorHoverError: baseColor, textColorPressedError: baseColor, textColorFocusError: baseColor, textColorDisabledError: baseColor, textColorTextError: errorColor, textColorTextHoverError: errorColorHover, textColorTextPressedError: errorColorPressed, textColorTextFocusError: errorColorHover, textColorTextDisabledError: textColor2, textColorGhostError: errorColor, textColorGhostHoverError: errorColorHover, textColorGhostPressedError: errorColorPressed, textColorGhostFocusError: errorColorHover, textColorGhostDisabledError: errorColor, borderError: `1px solid ${errorColor}`, borderHoverError: `1px solid ${errorColorHover}`, borderPressedError: `1px solid ${errorColorPressed}`, borderFocusError: `1px solid ${errorColorHover}`, borderDisabledError: `1px solid ${errorColor}`, rippleColorError: errorColor, waveOpacity: '0.6', fontWeight,
|
|
33
|
+
fontWeightStrong });
|
|
27
34
|
};
|
|
28
35
|
exports.self = self;
|
|
29
36
|
const buttonLight = {
|