@uzum-tech/ui 0.1.2 → 1.0.0
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/README.md +0 -10
- package/dist/index.js +6610 -6311
- package/dist/index.prod.js +2 -2
- package/es/_internal/checkbox/index.d.ts +2 -0
- package/es/_internal/checkbox/index.js +1 -0
- package/es/_internal/checkbox/src/use-checkbox.d.ts +53 -0
- package/es/_internal/checkbox/src/use-checkbox.js +159 -0
- package/es/_internal/close/src/styles/index.cssr.js +2 -0
- package/es/_internal/icon/src/styles/index.cssr.js +2 -2
- package/es/_internal/icons/ChevronDown.js +2 -2
- package/es/_internal/icons/ChevronLeft.js +1 -1
- package/es/_internal/icons/ChevronRight.js +1 -1
- package/es/_internal/icons/Clear.js +2 -10
- package/es/_internal/icons/ClearSmall.d.ts +2 -0
- package/es/_internal/icons/ClearSmall.js +8 -0
- package/es/_internal/icons/Close.js +2 -4
- package/es/_internal/icons/Error.js +2 -4
- package/es/_internal/icons/Inactive.d.ts +2 -0
- package/es/_internal/icons/Inactive.js +8 -0
- package/es/_internal/icons/InfoOutline.d.ts +2 -0
- package/es/_internal/icons/InfoOutline.js +4 -0
- package/es/_internal/icons/Success.js +2 -4
- package/es/_internal/icons/Warning.js +2 -4
- package/es/_internal/icons/index.d.ts +3 -0
- package/es/_internal/icons/index.js +3 -0
- package/es/_internal/index.d.ts +4 -0
- package/es/_internal/index.js +2 -0
- package/es/_internal/radio/index.d.ts +2 -0
- package/es/_internal/radio/index.js +1 -0
- package/es/_internal/radio/src/interface.d.ts +12 -0
- package/{lib → es/_internal}/radio/src/use-radio.d.ts +6 -13
- package/es/{radio → _internal/radio}/src/use-radio.js +15 -19
- package/es/_internal/select-menu/src/SelectMenu.d.ts +180 -211
- package/es/_internal/select-menu/src/SelectMenu.js +3 -2
- package/es/_internal/select-menu/src/interface.d.ts +1 -1
- package/es/_internal/select-menu/src/styles/index.cssr.js +24 -18
- package/es/_internal/select-menu/styles/light.d.ts +17 -23
- package/es/_internal/select-menu/styles/light.js +34 -3
- package/es/_internal/selection/index.d.ts +1 -0
- package/es/_internal/selection/src/Selection.d.ts +583 -183
- package/es/_internal/selection/src/Selection.js +102 -28
- package/es/_internal/selection/src/interface.d.ts +1 -0
- package/es/_internal/selection/src/styles/index.cssr.d.ts +2 -1
- package/es/_internal/selection/src/styles/index.cssr.js +128 -35
- package/es/_internal/selection/styles/dark.js +2 -26
- package/es/_internal/selection/styles/light.d.ts +121 -17
- package/es/_internal/selection/styles/light.js +120 -20
- package/es/_internal/skeleton/src/styles/index.cssr.js +1 -1
- package/es/_internal/skeleton/styles/dark.js +2 -11
- package/es/_internal/skeleton/styles/light.d.ts +1 -2
- package/es/_internal/skeleton/styles/light.js +4 -4
- package/es/_styles/common/_common.d.ts +37 -12
- package/es/_styles/common/_common.js +44 -19
- package/es/_styles/common/dark.js +2 -98
- package/es/_styles/common/light.d.ts +88 -99
- package/es/_styles/common/light.js +1 -103
- package/es/_styles/global/index.cssr.js +4 -5
- package/es/_utils/index.d.ts +3 -0
- package/es/_utils/index.js +3 -0
- package/es/_utils/inject/index.d.ts +2 -0
- package/es/_utils/inject/index.js +7 -0
- package/es/_utils/themes/index.d.ts +1 -0
- package/es/_utils/themes/index.js +1 -0
- package/es/_utils/themes/rewrite-styles.d.ts +1 -0
- package/es/_utils/themes/rewrite-styles.js +6 -0
- package/es/_utils/types/index.d.ts +1 -0
- package/es/_utils/types/index.js +1 -0
- package/es/_utils/types/utility.types.d.ts +10 -0
- package/es/_utils/types/utility.types.js +1 -0
- package/es/_utils/uzum/prop.d.ts +2 -2
- package/es/_utils/uzum/prop.js +0 -2
- package/es/alert/src/Alert.d.ts +438 -271
- package/es/alert/src/Alert.js +53 -57
- package/es/alert/src/styles/index.cssr.js +92 -48
- package/es/alert/styles/_common.d.ts +7 -6
- package/es/alert/styles/_common.js +11 -8
- package/es/alert/styles/dark.js +2 -15
- package/es/alert/styles/light.d.ts +33 -16
- package/es/alert/styles/light.js +16 -9
- package/es/alert/styles/types.d.ts +4 -0
- package/es/alert/styles/types.js +1 -0
- package/es/anchor/src/AnchorAdapter.d.ts +30 -21
- package/es/anchor/src/AnchorAdapter.js +2 -1
- package/es/anchor/src/styles/index.cssr.js +2 -1
- package/es/anchor/styles/light.d.ts +4 -3
- package/es/anchor/styles/light.js +16 -5
- package/es/auto-complete/src/AutoComplete.d.ts +317 -327
- package/es/auto-complete/styles/light.d.ts +22 -22
- package/es/auto-complete/styles/light.js +2 -2
- package/es/avatar/src/Avatar.d.ts +0 -29
- package/es/avatar/src/Avatar.js +4 -7
- package/es/avatar/src/interface.d.ts +1 -1
- package/es/avatar/src/styles/index.cssr.js +2 -4
- package/es/avatar/styles/light.d.ts +0 -3
- package/es/avatar/styles/light.js +7 -11
- package/es/avatar-group/src/AvatarGroup.d.ts +88 -129
- package/es/avatar-group/styles/light.d.ts +0 -3
- package/es/back-top/src/BackTop.d.ts +24 -24
- package/es/back-top/styles/dark.js +2 -5
- package/es/back-top/styles/light.d.ts +5 -5
- package/es/back-top/styles/light.js +16 -4
- package/es/badge/src/Badge.d.ts +0 -10
- package/es/badge/src/Badge.js +1 -2
- package/es/badge/src/styles/index.cssr.js +0 -2
- package/es/badge/styles/dark.js +2 -12
- package/es/badge/styles/light.d.ts +1 -2
- package/es/badge/styles/light.js +8 -9
- package/es/breadcrumb/src/Breadcrumb.d.ts +10 -40
- package/es/breadcrumb/src/Breadcrumb.js +2 -5
- package/es/breadcrumb/src/styles/index.cssr.js +4 -9
- package/es/breadcrumb/styles/light.d.ts +1 -4
- package/es/breadcrumb/styles/light.js +11 -3
- package/es/button/src/Button.d.ts +11 -11
- package/es/button/src/Button.js +4 -4
- package/es/button/src/styles/index.cssr.js +4 -5
- package/es/button/styles/dark.js +1 -8
- package/es/button/styles/light.d.ts +1 -1
- package/es/button/styles/light.js +18 -18
- package/es/calendar/src/Calendar.d.ts +108 -119
- package/es/calendar/styles/light.d.ts +3 -3
- package/es/calendar/styles/light.js +23 -5
- package/es/card/src/Card.d.ts +295 -272
- package/es/card/src/Card.js +13 -16
- package/es/card/src/styles/index.cssr.js +6 -20
- package/es/card/styles/_common.d.ts +0 -6
- package/es/card/styles/_common.js +1 -7
- package/es/card/styles/dark.js +1 -8
- package/es/card/styles/light.d.ts +21 -17
- package/es/card/styles/light.js +2 -5
- package/es/cascader/src/Cascader.d.ts +1195 -555
- package/es/cascader/src/CascaderMenu.d.ts +207 -153
- package/es/cascader/src/CascaderOption.d.ts +207 -153
- package/es/cascader/src/CascaderSelectMenu.d.ts +207 -153
- package/es/cascader/src/CascaderSubmenu.d.ts +207 -153
- package/es/cascader/src/styles/index.cssr.js +3 -3
- package/es/cascader/styles/light.d.ts +109 -44
- package/es/cascader/styles/light.js +12 -12
- package/es/checkbox/index.d.ts +1 -1
- package/es/checkbox/src/Checkbox.d.ts +457 -304
- package/es/checkbox/src/Checkbox.js +45 -179
- package/es/checkbox/src/CheckboxGroup.d.ts +2 -12
- package/es/checkbox/src/CheckboxGroup.js +2 -2
- package/es/checkbox/src/styles/index.cssr.js +113 -190
- package/es/checkbox/styles/_common.d.ts +0 -3
- package/es/checkbox/styles/_common.js +3 -6
- package/es/checkbox/styles/dark.js +1 -7
- package/es/checkbox/styles/light.d.ts +29 -13
- package/es/checkbox/styles/light.js +2 -4
- package/es/code/styles/dark.js +7 -20
- package/es/code/styles/light.d.ts +1 -1
- package/es/code/styles/light.js +5 -5
- package/es/collapse/src/Collapse.d.ts +126 -104
- package/es/collapse/src/Collapse.js +4 -1
- package/es/collapse/src/CollapseItem.d.ts +2 -1
- package/es/collapse/src/CollapseItem.js +12 -11
- package/es/collapse/src/interface.d.ts +1 -0
- package/es/collapse/src/styles/index.cssr.js +7 -2
- package/es/collapse/styles/light.d.ts +3 -0
- package/es/collapse/styles/light.js +12 -9
- package/es/color-picker/src/ColorInputUnit.d.ts +103 -106
- package/es/color-picker/src/ColorPicker.d.ts +138 -63
- package/es/color-picker/src/ColorPicker.js +4 -1
- package/es/color-picker/src/ColorPickerTrigger.js +1 -6
- package/es/color-picker/src/styles/index.cssr.js +13 -1
- package/es/color-picker/styles/light.d.ts +20 -7
- package/es/color-picker/styles/light.js +15 -10
- package/es/components.d.ts +2 -0
- package/es/components.js +2 -0
- package/es/config-provider/src/internal-interface.d.ts +7 -2
- package/es/data-table/src/DataTable.d.ts +1978 -1437
- package/es/data-table/src/DataTable.js +2 -3
- package/es/data-table/src/HeaderButton/FilterButton.d.ts +457 -347
- package/es/data-table/src/HeaderButton/FilterMenu.d.ts +462 -352
- package/es/data-table/src/TableParts/Body.d.ts +457 -347
- package/es/data-table/src/TableParts/Body.js +3 -2
- package/es/data-table/src/TableParts/Cell.d.ts +914 -694
- package/es/data-table/src/TableParts/Header.d.ts +457 -347
- package/es/data-table/src/TableParts/Header.js +3 -1
- package/es/data-table/src/interface.d.ts +750 -534
- package/es/data-table/src/styles/index.cssr.js +29 -36
- package/es/data-table/styles/dark.js +1 -6
- package/es/data-table/styles/light.d.ts +254 -183
- package/es/data-table/styles/light.js +58 -10
- package/es/date-picker/src/DatePicker.d.ts +748 -433
- package/es/date-picker/src/DatePicker.js +55 -19
- package/es/date-picker/src/interface.d.ts +2 -2
- package/es/date-picker/src/panel/date.d.ts +166 -138
- package/es/date-picker/src/panel/daterange.d.ts +160 -138
- package/es/date-picker/src/panel/datetime.d.ts +160 -138
- package/es/date-picker/src/panel/datetimerange.d.ts +160 -138
- package/es/date-picker/src/panel/monthrange.d.ts +160 -138
- package/es/date-picker/src/panel/panelMonth.d.ts +320 -276
- package/es/date-picker/src/panel/panelMonth.js +3 -3
- package/es/date-picker/src/panel/panelMonthContent.d.ts +160 -138
- package/es/date-picker/src/panel/panelYear.d.ts +320 -276
- package/es/date-picker/src/panel/panelYear.js +3 -3
- package/es/date-picker/src/panel/panelYearContent.d.ts +160 -138
- package/es/date-picker/src/panel/use-calendar.d.ts +160 -138
- package/es/date-picker/src/panel/use-dual-calendar.d.ts +160 -138
- package/es/date-picker/src/panel/use-panel-common.d.ts +160 -138
- package/es/date-picker/src/styles/index.cssr.js +75 -64
- package/es/date-picker/styles/_common.d.ts +0 -1
- package/es/date-picker/styles/_common.js +0 -1
- package/es/date-picker/styles/dark.js +1 -9
- package/es/date-picker/styles/light.d.ts +97 -44
- package/es/date-picker/styles/light.js +12 -3
- package/es/descriptions/src/Descriptions.d.ts +48 -48
- package/es/descriptions/styles/light.d.ts +12 -12
- package/es/descriptions/styles/light.js +33 -7
- package/es/dialog/src/Dialog.d.ts +166 -159
- package/es/dialog/src/Dialog.js +20 -11
- package/es/dialog/src/DialogEnvironment.d.ts +6 -3
- package/es/dialog/src/DialogEnvironment.js +1 -1
- package/es/dialog/src/DialogProvider.d.ts +181 -202
- package/es/dialog/src/dialogProps.d.ts +3 -2
- package/es/dialog/src/dialogProps.js +2 -1
- package/es/dialog/src/styles/index.cssr.js +7 -5
- package/es/dialog/styles/_common.d.ts +1 -4
- package/es/dialog/styles/_common.js +6 -9
- package/es/dialog/styles/light.d.ts +19 -15
- package/es/dialog/styles/light.js +2 -7
- package/es/divider/src/Divider.d.ts +30 -0
- package/es/divider/src/Divider.js +5 -2
- package/es/divider/src/styles/index.cssr.js +7 -3
- package/es/divider/styles/light.d.ts +3 -0
- package/es/divider/styles/light.js +7 -4
- package/es/drawer/index.d.ts +1 -0
- package/es/drawer/src/Drawer.d.ts +312 -250
- package/es/drawer/src/Drawer.js +67 -31
- package/es/drawer/src/DrawerBodyWrapper.d.ts +107 -119
- package/es/drawer/src/DrawerBodyWrapper.js +6 -30
- package/es/drawer/src/DrawerContent.d.ts +158 -122
- package/es/drawer/src/DrawerContent.js +80 -11
- package/es/drawer/src/interface.d.ts +6 -1
- package/es/drawer/src/styles/index.cssr.js +57 -28
- package/es/drawer/styles/_common.d.ts +11 -0
- package/es/drawer/styles/_common.js +10 -0
- package/es/drawer/styles/light.d.ts +38 -24
- package/es/drawer/styles/light.js +3 -24
- package/es/dropdown/src/Dropdown.d.ts +322 -333
- package/es/dropdown/styles/dark.js +1 -10
- package/es/dropdown/styles/light.d.ts +34 -34
- package/es/dropdown/styles/light.js +57 -9
- package/es/dynamic-input/src/DynamicInput.d.ts +189 -170
- package/es/dynamic-input/src/InputPreset.d.ts +98 -106
- package/es/dynamic-input/src/PairPreset.d.ts +98 -106
- package/es/dynamic-input/styles/light.d.ts +10 -7
- package/es/dynamic-tags/src/DynamicTags.d.ts +375 -325
- package/es/dynamic-tags/src/DynamicTags.js +8 -3
- package/es/dynamic-tags/styles/light.d.ts +28 -22
- package/es/ellipsis/src/Ellipsis.d.ts +184 -195
- package/es/ellipsis/src/PerformantEllipsis.d.ts +54 -54
- package/es/ellipsis/styles/light.d.ts +9 -9
- package/es/empty/src/Empty.d.ts +24 -24
- package/es/empty/styles/light.d.ts +4 -4
- package/es/empty/styles/light.js +14 -6
- package/es/form/src/Form.d.ts +117 -99
- package/es/form/src/FormItem.d.ts +119 -102
- package/es/form/src/FormItem.js +3 -4
- package/es/form/src/FormItemCol.d.ts +117 -99
- package/es/form/src/FormItemGridItem.d.ts +117 -99
- package/es/form/src/FormItemRow.d.ts +117 -99
- package/es/form/src/styles/form-item.cssr.js +15 -18
- package/es/form/styles/light.d.ts +17 -15
- package/es/form/styles/light.js +35 -3
- package/es/global-style/src/GlobalStyle.js +5 -5
- package/es/gradient-text/src/styles/index.cssr.js +1 -0
- package/es/gradient-text/styles/dark.js +2 -17
- package/es/gradient-text/styles/light.d.ts +1 -1
- package/es/gradient-text/styles/light.js +13 -13
- package/es/icon/styles/light.js +7 -7
- package/es/icon-wrapper/styles/light.js +3 -3
- package/es/image/src/Image.d.ts +90 -81
- package/es/image/src/ImageGroup.d.ts +90 -81
- package/es/image/src/ImagePreview.d.ts +61 -54
- package/es/image/src/ImagePreview.js +3 -2
- package/es/image/src/interface.d.ts +30 -27
- package/es/image/src/styles/index.cssr.js +1 -1
- package/es/image/styles/dark.js +2 -9
- package/es/image/styles/light.d.ts +13 -11
- package/es/image/styles/light.js +7 -5
- package/es/input/index.d.ts +1 -1
- package/es/input/src/Input.d.ts +166 -147
- package/es/input/src/Input.js +8 -5
- package/es/input/src/InputGroupLabel.d.ts +68 -41
- package/es/input/src/interface.d.ts +1 -1
- package/es/input/src/styles/input.cssr.js +5 -6
- package/es/input/styles/dark.js +2 -20
- package/es/input/styles/light.d.ts +10 -7
- package/es/input/styles/light.js +70 -15
- package/es/input-number/src/InputNumber.d.ts +204 -208
- package/es/input-number/src/InputNumber.js +4 -12
- package/es/input-number/src/interface.d.ts +0 -1
- package/es/input-number/styles/dark.js +2 -6
- package/es/input-number/styles/light.d.ts +12 -13
- package/es/input-number/styles/light.js +2 -5
- package/es/layout/src/Layout.d.ts +204 -198
- package/es/layout/src/LayoutContent.d.ts +102 -99
- package/es/layout/src/LayoutFooter.d.ts +18 -0
- package/es/layout/src/LayoutHeader.d.ts +12 -0
- package/es/layout/src/LayoutSider.d.ts +102 -99
- package/es/layout/src/LayoutSider.js +5 -3
- package/es/layout/src/ToggleButton.d.ts +2 -2
- package/es/layout/styles/dark.js +2 -29
- package/es/layout/styles/light.d.ts +4 -0
- package/es/layout/styles/light.js +25 -24
- package/es/legacy-transfer/src/Transfer.d.ts +538 -359
- package/es/legacy-transfer/src/TransferFilter.d.ts +133 -125
- package/es/legacy-transfer/src/TransferList.d.ts +133 -125
- package/es/legacy-transfer/src/TransferListItem.d.ts +133 -125
- package/es/legacy-transfer/styles/dark.js +2 -9
- package/es/legacy-transfer/styles/light.d.ts +48 -29
- package/es/legacy-transfer/styles/light.js +25 -9
- package/es/list/index.d.ts +3 -2
- package/es/list/index.js +2 -1
- package/es/list/src/List.d.ts +218 -83
- package/es/list/src/List.js +37 -22
- package/es/list/src/ListItem.d.ts +122 -3
- package/es/list/src/ListItem.js +184 -12
- package/es/list/src/interface.d.ts +35 -0
- package/es/list/src/interface.js +1 -0
- package/es/list/src/props.d.ts +228 -0
- package/es/list/src/props.js +59 -0
- package/es/list/src/styles/index.cssr.js +142 -48
- package/es/list/styles/light.d.ts +15 -0
- package/es/list/styles/light.js +27 -13
- package/es/loading-bar/styles/dark.js +2 -8
- package/es/loading-bar/styles/light.d.ts +1 -1
- package/es/loading-bar/styles/light.js +4 -4
- package/es/log/src/Log.d.ts +88 -99
- package/es/log/styles/dark.js +2 -10
- package/es/log/styles/light.d.ts +1 -1
- package/es/log/styles/light.js +7 -7
- package/es/mention/src/Mention.d.ts +314 -325
- package/es/mention/styles/dark.js +2 -6
- package/es/mention/styles/light.d.ts +23 -23
- package/es/mention/styles/light.js +3 -3
- package/es/menu/src/Menu.d.ts +490 -501
- package/es/menu/src/MenuOption.d.ts +138 -149
- package/es/menu/src/Submenu.d.ts +138 -149
- package/es/menu/styles/dark.js +1 -14
- package/es/menu/styles/light.d.ts +38 -38
- package/es/menu/styles/light.js +2 -4
- package/es/message/src/Message.d.ts +3 -7
- package/es/message/src/Message.js +10 -24
- package/es/message/src/MessageProvider.d.ts +195 -258
- package/es/message/src/MessageProvider.js +1 -1
- package/es/message/src/styles/index.cssr.js +10 -10
- package/es/message/styles/_common.d.ts +0 -5
- package/es/message/styles/_common.js +3 -8
- package/es/message/styles/light.d.ts +23 -30
- package/es/message/styles/light.js +14 -7
- package/es/message/styles/types.d.ts +4 -0
- package/es/message/styles/types.js +1 -0
- package/es/modal/src/BodyWrapper.d.ts +140 -173
- package/es/modal/src/BodyWrapper.js +7 -13
- package/es/modal/src/Modal.d.ts +340 -303
- package/es/modal/src/Modal.js +8 -6
- package/es/modal/src/presetProps.d.ts +20 -32
- package/es/modal/src/presetProps.js +4 -2
- package/es/modal/src/styles/index.cssr.js +2 -3
- package/es/modal/styles/light.d.ts +39 -27
- package/es/modal/styles/light.js +7 -4
- package/es/notification/src/Notification.d.ts +15 -7
- package/es/notification/src/Notification.js +14 -16
- package/es/notification/src/NotificationContainer.d.ts +159 -115
- package/es/notification/src/NotificationEnvironment.d.ts +8 -7
- package/es/notification/src/NotificationProvider.d.ts +644 -146
- package/es/notification/src/NotificationProvider.js +2 -1
- package/es/notification/src/styles/index.cssr.js +20 -25
- package/es/notification/styles/_common.d.ts +1 -6
- package/es/notification/styles/_common.js +2 -7
- package/es/notification/styles/light.d.ts +142 -32
- package/es/notification/styles/light.js +14 -7
- package/es/page-header/src/PageHeader.d.ts +18 -18
- package/es/page-header/styles/light.d.ts +4 -4
- package/es/page-header/styles/light.js +12 -3
- package/es/pagination/src/Pagination.d.ts +1564 -1039
- package/es/pagination/src/Pagination.js +1 -2
- package/es/pagination/src/styles/index.cssr.js +2 -4
- package/es/pagination/styles/dark.js +1 -11
- package/es/pagination/styles/light.d.ts +140 -91
- package/es/pagination/styles/light.js +73 -7
- package/es/popconfirm/src/Popconfirm.d.ts +172 -183
- package/es/popconfirm/styles/light.d.ts +9 -9
- package/es/popconfirm/styles/light.js +6 -3
- package/es/popover/src/Popover.d.ts +35 -35
- package/es/popover/src/Popover.js +2 -4
- package/es/popover/src/PopoverBody.d.ts +30 -30
- package/es/popover/src/PopoverBody.js +1 -6
- package/es/popover/styles/light.d.ts +6 -6
- package/es/popover/styles/light.js +15 -4
- package/es/popselect/src/Popselect.d.ts +286 -327
- package/es/popselect/src/PopselectPanel.d.ts +112 -126
- package/es/popselect/src/interface.d.ts +1 -1
- package/es/popselect/styles/light.d.ts +19 -22
- package/es/popselect/styles/light.js +2 -2
- package/es/progress/styles/dark.js +1 -7
- package/es/progress/styles/light.js +18 -18
- package/es/radio/src/Radio.d.ts +129 -50
- package/es/radio/src/Radio.js +17 -6
- package/es/radio/src/RadioButton.d.ts +5 -2
- package/es/radio/src/RadioButton.js +2 -2
- package/es/radio/src/RadioGroup.d.ts +121 -49
- package/es/radio/src/RadioGroup.js +1 -1
- package/es/radio/src/styles/radio-group.cssr.js +7 -7
- package/es/radio/src/styles/radio.cssr.js +19 -25
- package/es/radio/src/styles/rtl.cssr.js +2 -2
- package/es/radio/styles/dark.js +2 -8
- package/es/radio/styles/light.d.ts +15 -7
- package/es/radio/styles/light.js +54 -6
- package/es/rate/styles/dark.js +2 -11
- package/es/rate/styles/light.d.ts +1 -1
- package/es/rate/styles/light.js +4 -4
- package/es/result/src/Result.d.ts +36 -36
- package/es/result/styles/light.d.ts +8 -8
- package/es/result/styles/light.js +27 -3
- package/es/select/src/Select.d.ts +877 -385
- package/es/select/src/Select.js +2 -2
- package/es/select/src/interface.d.ts +0 -1
- package/es/select/styles/light.d.ts +76 -27
- package/es/select/styles/light.js +2 -2
- package/es/skeleton/src/styles/index.cssr.js +1 -1
- package/es/skeleton/styles/dark.js +2 -11
- package/es/skeleton/styles/light.d.ts +1 -2
- package/es/skeleton/styles/light.js +4 -4
- package/es/slider/src/Slider.d.ts +30 -30
- package/es/slider/styles/dark.js +2 -6
- package/es/slider/styles/light.d.ts +7 -7
- package/es/slider/styles/light.js +32 -6
- package/es/spin/styles/light.js +9 -15
- package/es/statistic/styles/light.js +7 -7
- package/es/status/index.d.ts +2 -0
- package/es/status/index.js +1 -0
- package/es/status/src/Status.d.ts +139 -0
- package/es/status/src/Status.js +81 -0
- package/es/status/src/styles/index.cssr.d.ts +2 -0
- package/es/status/src/styles/index.cssr.js +24 -0
- package/es/status/styles/dark.d.ts +3 -0
- package/es/status/styles/dark.js +8 -0
- package/es/status/styles/index.d.ts +3 -0
- package/es/status/styles/index.js +2 -0
- package/es/status/styles/light.d.ts +17 -0
- package/es/status/styles/light.js +21 -0
- package/es/steps/src/Step.d.ts +7 -1
- package/es/steps/src/Step.js +31 -22
- package/es/steps/src/Steps.d.ts +36 -36
- package/es/steps/src/styles/index.cssr.js +18 -3
- package/es/steps/styles/light.d.ts +8 -8
- package/es/steps/styles/light.js +36 -3
- package/es/styles.d.ts +2 -0
- package/es/styles.js +2 -0
- package/es/switch/src/Switch.d.ts +67 -67
- package/es/switch/styles/dark.js +2 -7
- package/es/switch/styles/light.d.ts +16 -16
- package/es/switch/styles/light.js +48 -5
- package/es/table/src/Table.d.ts +30 -30
- package/es/table/styles/light.d.ts +6 -6
- package/es/table/styles/light.js +29 -8
- package/es/tabs/src/Tab.js +5 -2
- package/es/tabs/src/Tabs.d.ts +160 -141
- package/es/tabs/src/Tabs.js +3 -2
- package/es/tabs/src/styles/index.cssr.js +17 -12
- package/es/tabs/styles/dark.js +1 -7
- package/es/tabs/styles/light.d.ts +35 -33
- package/es/tabs/styles/light.js +94 -7
- package/es/tag/src/Tag.d.ts +115 -87
- package/es/tag/src/Tag.js +2 -1
- package/es/tag/src/styles/index.cssr.js +1 -1
- package/es/tag/styles/dark.js +2 -29
- package/es/tag/styles/light.d.ts +19 -16
- package/es/tag/styles/light.js +113 -20
- package/es/theme-editor/src/ThemeEditor.d.ts +88 -99
- package/es/theme-editor/src/ThemeEditor.js +35 -2
- package/es/themes/dark.js +5 -1
- package/es/themes/light.js +5 -1
- package/es/thing/styles/light.js +4 -4
- package/es/time-picker/src/Panel.d.ts +104 -111
- package/es/time-picker/src/Panel.js +2 -2
- package/es/time-picker/src/TimePicker.d.ts +244 -214
- package/es/time-picker/src/TimePicker.js +2 -1
- package/es/time-picker/src/interface.d.ts +2 -1
- package/es/time-picker/src/styles/index.cssr.js +1 -0
- package/es/time-picker/styles/light.d.ts +19 -14
- package/es/time-picker/styles/light.js +19 -5
- package/es/timeline/src/Timeline.d.ts +30 -30
- package/es/timeline/styles/dark.js +2 -5
- package/es/timeline/styles/light.d.ts +7 -7
- package/es/timeline/styles/light.js +26 -4
- package/es/toggle-button/index.d.ts +2 -0
- package/es/toggle-button/index.js +1 -0
- package/es/toggle-button/src/ToggleButton.d.ts +551 -0
- package/es/toggle-button/src/ToggleButton.js +128 -0
- package/es/toggle-button/src/styles/toggle-button.cssr.d.ts +2 -0
- package/es/toggle-button/src/styles/toggle-button.cssr.js +73 -0
- package/es/toggle-button/styles/_common.d.ts +7 -0
- package/es/toggle-button/styles/_common.js +6 -0
- package/es/toggle-button/styles/dark.d.ts +3 -0
- package/es/toggle-button/styles/dark.js +8 -0
- package/es/toggle-button/styles/index.d.ts +3 -0
- package/es/toggle-button/styles/index.js +2 -0
- package/es/toggle-button/styles/light.d.ts +47 -0
- package/es/toggle-button/styles/light.js +18 -0
- package/es/tooltip/src/Tooltip.d.ts +185 -196
- package/es/tooltip/styles/dark.js +2 -5
- package/es/tooltip/styles/light.d.ts +13 -13
- package/es/tooltip/styles/light.js +19 -4
- package/es/transfer/src/Transfer.d.ts +632 -453
- package/es/transfer/src/TransferFilter.d.ts +142 -134
- package/es/transfer/src/TransferList.d.ts +142 -134
- package/es/transfer/src/TransferListItem.d.ts +142 -134
- package/es/transfer/src/styles/index.cssr.js +2 -0
- package/es/transfer/styles/dark.js +2 -13
- package/es/transfer/styles/light.d.ts +58 -39
- package/es/transfer/styles/light.js +39 -12
- package/es/tree/src/Tree.d.ts +418 -269
- package/es/tree/src/TreeNodeCheckbox.d.ts +121 -116
- package/es/tree/src/styles/index.cssr.js +5 -1
- package/es/tree/styles/dark.js +1 -7
- package/es/tree/styles/light.d.ts +33 -17
- package/es/tree/styles/light.js +14 -15
- package/es/tree-select/src/TreeSelect.d.ts +1145 -459
- package/es/tree-select/styles/light.d.ts +100 -32
- package/es/tree-select/styles/light.js +6 -6
- package/es/typography/src/a.d.ts +56 -56
- package/es/typography/src/blockquote.d.ts +61 -61
- package/es/typography/src/create-header.d.ts +74 -74
- package/es/typography/src/headers.d.ts +300 -300
- package/es/typography/src/hr.d.ts +47 -47
- package/es/typography/src/ol.d.ts +63 -63
- package/es/typography/src/p.d.ts +61 -61
- package/es/typography/src/text.d.ts +89 -89
- package/es/typography/src/ul.d.ts +63 -63
- package/es/typography/styles/light.d.ts +28 -28
- package/es/typography/styles/light.js +67 -3
- package/es/upload/src/Upload.d.ts +111 -149
- package/es/upload/src/UploadFile.d.ts +89 -100
- package/es/upload/src/UploadProgress.d.ts +89 -100
- package/es/upload/src/styles/index.cssr.js +5 -4
- package/es/upload/styles/dark.js +1 -9
- package/es/upload/styles/light.d.ts +1 -1
- package/es/upload/styles/light.js +22 -22
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/_internal/checkbox/index.d.ts +2 -0
- package/lib/_internal/checkbox/index.js +7 -0
- package/lib/_internal/checkbox/src/use-checkbox.d.ts +53 -0
- package/lib/_internal/checkbox/src/use-checkbox.js +163 -0
- package/lib/_internal/close/src/styles/index.cssr.js +2 -0
- package/lib/_internal/icon/src/styles/index.cssr.js +2 -2
- package/lib/_internal/icons/ChevronDown.js +2 -2
- package/lib/_internal/icons/ChevronLeft.js +1 -1
- package/lib/_internal/icons/ChevronRight.js +1 -1
- package/lib/_internal/icons/Clear.js +2 -10
- package/lib/_internal/icons/ClearSmall.d.ts +2 -0
- package/lib/_internal/icons/ClearSmall.js +10 -0
- package/lib/_internal/icons/Close.js +2 -4
- package/lib/_internal/icons/Error.js +2 -4
- package/lib/_internal/icons/Inactive.d.ts +2 -0
- package/lib/_internal/icons/Inactive.js +10 -0
- package/lib/_internal/icons/InfoOutline.d.ts +2 -0
- package/lib/_internal/icons/InfoOutline.js +6 -0
- package/lib/_internal/icons/Success.js +2 -4
- package/lib/_internal/icons/Warning.js +2 -4
- package/lib/_internal/icons/index.d.ts +3 -0
- package/lib/_internal/icons/index.js +7 -1
- package/lib/_internal/index.d.ts +4 -0
- package/lib/_internal/index.js +9 -1
- package/lib/_internal/radio/index.d.ts +2 -0
- package/lib/_internal/radio/index.js +17 -0
- package/lib/_internal/radio/src/interface.d.ts +12 -0
- package/{es → lib/_internal}/radio/src/use-radio.d.ts +6 -13
- package/lib/{radio → _internal/radio}/src/use-radio.js +15 -19
- package/lib/_internal/select-menu/src/SelectMenu.d.ts +180 -211
- package/lib/_internal/select-menu/src/SelectMenu.js +3 -2
- package/lib/_internal/select-menu/src/interface.d.ts +1 -1
- package/lib/_internal/select-menu/src/styles/index.cssr.js +24 -18
- package/lib/_internal/select-menu/styles/light.d.ts +17 -23
- package/lib/_internal/select-menu/styles/light.js +34 -6
- package/lib/_internal/selection/index.d.ts +1 -0
- package/lib/_internal/selection/src/Selection.d.ts +583 -183
- package/lib/_internal/selection/src/Selection.js +102 -28
- package/lib/_internal/selection/src/interface.d.ts +1 -0
- package/lib/_internal/selection/src/styles/index.cssr.d.ts +2 -1
- package/lib/_internal/selection/src/styles/index.cssr.js +128 -40
- package/lib/_internal/selection/styles/dark.js +2 -29
- package/lib/_internal/selection/styles/light.d.ts +121 -17
- package/lib/_internal/selection/styles/light.js +122 -23
- package/lib/_internal/skeleton/src/styles/index.cssr.js +1 -1
- package/lib/_internal/skeleton/styles/dark.js +2 -11
- package/lib/_internal/skeleton/styles/light.d.ts +1 -2
- package/lib/_internal/skeleton/styles/light.js +6 -5
- package/lib/_styles/common/_common.d.ts +37 -12
- package/lib/_styles/common/_common.js +44 -19
- package/lib/_styles/common/dark.js +2 -98
- package/lib/_styles/common/light.d.ts +88 -99
- package/lib/_styles/common/light.js +1 -103
- package/lib/_styles/global/index.cssr.js +4 -5
- package/lib/_utils/index.d.ts +3 -0
- package/lib/_utils/index.js +5 -1
- package/lib/_utils/inject/index.d.ts +2 -0
- package/lib/_utils/inject/index.js +11 -0
- package/lib/_utils/themes/index.d.ts +1 -0
- package/lib/_utils/themes/index.js +5 -0
- package/lib/_utils/themes/rewrite-styles.d.ts +1 -0
- package/lib/_utils/themes/rewrite-styles.js +10 -0
- package/lib/_utils/types/index.d.ts +1 -0
- package/lib/_utils/types/index.js +17 -0
- package/lib/_utils/types/utility.types.d.ts +10 -0
- package/lib/{popconfirm/styles/_common.js → _utils/types/utility.types.js} +0 -3
- package/lib/_utils/uzum/prop.d.ts +2 -2
- package/lib/_utils/uzum/prop.js +0 -2
- package/lib/alert/src/Alert.d.ts +438 -271
- package/lib/alert/src/Alert.js +51 -55
- package/lib/alert/src/styles/index.cssr.js +92 -48
- package/lib/alert/styles/_common.d.ts +7 -6
- package/lib/alert/styles/_common.js +11 -8
- package/lib/alert/styles/dark.js +2 -18
- package/lib/alert/styles/light.d.ts +33 -16
- package/lib/alert/styles/light.js +18 -9
- package/lib/alert/styles/types.d.ts +4 -0
- package/lib/{calendar/styles/_common.js → alert/styles/types.js} +0 -3
- package/lib/anchor/src/AnchorAdapter.d.ts +30 -21
- package/lib/anchor/src/AnchorAdapter.js +2 -1
- package/lib/anchor/src/styles/index.cssr.js +2 -1
- package/lib/anchor/styles/light.d.ts +4 -3
- package/lib/anchor/styles/light.js +16 -8
- package/lib/auto-complete/src/AutoComplete.d.ts +317 -327
- package/lib/auto-complete/styles/light.d.ts +22 -22
- package/lib/auto-complete/styles/light.js +2 -2
- package/lib/avatar/src/Avatar.d.ts +0 -29
- package/lib/avatar/src/Avatar.js +4 -7
- package/lib/avatar/src/interface.d.ts +1 -1
- package/lib/avatar/src/styles/index.cssr.js +1 -3
- package/lib/avatar/styles/light.d.ts +0 -3
- package/lib/avatar/styles/light.js +7 -11
- package/lib/avatar-group/src/AvatarGroup.d.ts +88 -129
- package/lib/avatar-group/styles/light.d.ts +0 -3
- package/lib/back-top/src/BackTop.d.ts +24 -24
- package/lib/back-top/styles/dark.js +2 -8
- package/lib/back-top/styles/light.d.ts +5 -5
- package/lib/back-top/styles/light.js +18 -7
- package/lib/badge/src/Badge.d.ts +0 -10
- package/lib/badge/src/Badge.js +1 -2
- package/lib/badge/src/styles/index.cssr.js +0 -2
- package/lib/badge/styles/dark.js +2 -12
- package/lib/badge/styles/light.d.ts +1 -2
- package/lib/badge/styles/light.js +10 -9
- package/lib/breadcrumb/src/Breadcrumb.d.ts +10 -40
- package/lib/breadcrumb/src/Breadcrumb.js +2 -5
- package/lib/breadcrumb/src/styles/index.cssr.js +4 -9
- package/lib/breadcrumb/styles/light.d.ts +1 -4
- package/lib/breadcrumb/styles/light.js +11 -6
- package/lib/button/src/Button.d.ts +11 -11
- package/lib/button/src/Button.js +4 -4
- package/lib/button/src/styles/index.cssr.js +4 -10
- package/lib/button/styles/dark.js +1 -8
- package/lib/button/styles/light.d.ts +1 -1
- package/lib/button/styles/light.js +18 -18
- package/lib/calendar/src/Calendar.d.ts +108 -119
- package/lib/calendar/styles/light.d.ts +3 -3
- package/lib/calendar/styles/light.js +23 -8
- package/lib/card/src/Card.d.ts +295 -272
- package/lib/card/src/Card.js +13 -16
- package/lib/card/src/styles/index.cssr.js +5 -19
- package/lib/card/styles/_common.d.ts +0 -6
- package/lib/card/styles/_common.js +1 -7
- package/lib/card/styles/dark.js +1 -8
- package/lib/card/styles/light.d.ts +21 -17
- package/lib/card/styles/light.js +2 -5
- package/lib/cascader/src/Cascader.d.ts +1195 -555
- package/lib/cascader/src/CascaderMenu.d.ts +207 -153
- package/lib/cascader/src/CascaderOption.d.ts +207 -153
- package/lib/cascader/src/CascaderSelectMenu.d.ts +207 -153
- package/lib/cascader/src/CascaderSubmenu.d.ts +207 -153
- package/lib/cascader/src/styles/index.cssr.js +3 -3
- package/lib/cascader/styles/light.d.ts +109 -44
- package/lib/cascader/styles/light.js +12 -12
- package/lib/checkbox/index.d.ts +1 -1
- package/lib/checkbox/src/Checkbox.d.ts +457 -304
- package/lib/checkbox/src/Checkbox.js +41 -175
- package/lib/checkbox/src/CheckboxGroup.d.ts +2 -12
- package/lib/checkbox/src/CheckboxGroup.js +3 -3
- package/lib/checkbox/src/styles/index.cssr.js +112 -189
- package/lib/checkbox/styles/_common.d.ts +0 -3
- package/lib/checkbox/styles/_common.js +3 -6
- package/lib/checkbox/styles/dark.js +1 -7
- package/lib/checkbox/styles/light.d.ts +29 -13
- package/lib/checkbox/styles/light.js +2 -4
- package/lib/code/styles/dark.js +7 -20
- package/lib/code/styles/light.d.ts +1 -1
- package/lib/code/styles/light.js +7 -5
- package/lib/collapse/src/Collapse.d.ts +126 -104
- package/lib/collapse/src/Collapse.js +4 -1
- package/lib/collapse/src/CollapseItem.d.ts +2 -1
- package/lib/collapse/src/CollapseItem.js +12 -11
- package/lib/collapse/src/interface.d.ts +1 -0
- package/lib/collapse/src/styles/index.cssr.js +7 -2
- package/lib/collapse/styles/light.d.ts +3 -0
- package/lib/collapse/styles/light.js +12 -9
- package/lib/color-picker/src/ColorInputUnit.d.ts +103 -106
- package/lib/color-picker/src/ColorPicker.d.ts +138 -63
- package/lib/color-picker/src/ColorPicker.js +4 -1
- package/lib/color-picker/src/ColorPickerTrigger.js +1 -6
- package/lib/color-picker/src/styles/index.cssr.js +13 -1
- package/lib/color-picker/styles/light.d.ts +20 -7
- package/lib/color-picker/styles/light.js +15 -10
- package/lib/components.d.ts +2 -0
- package/lib/components.js +2 -0
- package/lib/config-provider/src/internal-interface.d.ts +7 -2
- package/lib/data-table/src/DataTable.d.ts +1978 -1437
- package/lib/data-table/src/DataTable.js +2 -3
- package/lib/data-table/src/HeaderButton/FilterButton.d.ts +457 -347
- package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +462 -352
- package/lib/data-table/src/TableParts/Body.d.ts +457 -347
- package/lib/data-table/src/TableParts/Body.js +3 -2
- package/lib/data-table/src/TableParts/Cell.d.ts +914 -694
- package/lib/data-table/src/TableParts/Header.d.ts +457 -347
- package/lib/data-table/src/TableParts/Header.js +3 -1
- package/lib/data-table/src/interface.d.ts +750 -534
- package/lib/data-table/src/styles/index.cssr.js +29 -36
- package/lib/data-table/styles/dark.js +1 -6
- package/lib/data-table/styles/light.d.ts +254 -183
- package/lib/data-table/styles/light.js +58 -13
- package/lib/date-picker/src/DatePicker.d.ts +748 -433
- package/lib/date-picker/src/DatePicker.js +52 -16
- package/lib/date-picker/src/interface.d.ts +2 -2
- package/lib/date-picker/src/panel/date.d.ts +166 -138
- package/lib/date-picker/src/panel/daterange.d.ts +160 -138
- package/lib/date-picker/src/panel/datetime.d.ts +160 -138
- package/lib/date-picker/src/panel/datetimerange.d.ts +160 -138
- package/lib/date-picker/src/panel/monthrange.d.ts +160 -138
- package/lib/date-picker/src/panel/panelMonth.d.ts +320 -276
- package/lib/date-picker/src/panel/panelMonth.js +2 -2
- package/lib/date-picker/src/panel/panelMonthContent.d.ts +160 -138
- package/lib/date-picker/src/panel/panelYear.d.ts +320 -276
- package/lib/date-picker/src/panel/panelYear.js +2 -2
- package/lib/date-picker/src/panel/panelYearContent.d.ts +160 -138
- package/lib/date-picker/src/panel/use-calendar.d.ts +160 -138
- package/lib/date-picker/src/panel/use-dual-calendar.d.ts +160 -138
- package/lib/date-picker/src/panel/use-panel-common.d.ts +160 -138
- package/lib/date-picker/src/styles/index.cssr.js +75 -64
- package/lib/date-picker/styles/_common.d.ts +0 -1
- package/lib/date-picker/styles/_common.js +0 -1
- package/lib/date-picker/styles/dark.js +1 -9
- package/lib/date-picker/styles/light.d.ts +97 -44
- package/lib/date-picker/styles/light.js +12 -3
- package/lib/descriptions/src/Descriptions.d.ts +48 -48
- package/lib/descriptions/styles/light.d.ts +12 -12
- package/lib/descriptions/styles/light.js +33 -10
- package/lib/dialog/src/Dialog.d.ts +166 -159
- package/lib/dialog/src/Dialog.js +20 -11
- package/lib/dialog/src/DialogEnvironment.d.ts +6 -3
- package/lib/dialog/src/DialogEnvironment.js +1 -1
- package/lib/dialog/src/DialogProvider.d.ts +181 -202
- package/lib/dialog/src/dialogProps.d.ts +3 -2
- package/lib/dialog/src/dialogProps.js +2 -1
- package/lib/dialog/src/styles/index.cssr.js +7 -5
- package/lib/dialog/styles/_common.d.ts +1 -4
- package/lib/dialog/styles/_common.js +6 -9
- package/lib/dialog/styles/light.d.ts +19 -15
- package/lib/dialog/styles/light.js +2 -7
- package/lib/divider/src/Divider.d.ts +30 -0
- package/lib/divider/src/Divider.js +5 -2
- package/lib/divider/src/styles/index.cssr.js +7 -3
- package/lib/divider/styles/light.d.ts +3 -0
- package/lib/divider/styles/light.js +7 -4
- package/lib/drawer/index.d.ts +1 -0
- package/lib/drawer/src/Drawer.d.ts +312 -250
- package/lib/drawer/src/Drawer.js +67 -31
- package/lib/drawer/src/DrawerBodyWrapper.d.ts +107 -119
- package/lib/drawer/src/DrawerBodyWrapper.js +6 -30
- package/lib/drawer/src/DrawerContent.d.ts +158 -122
- package/lib/drawer/src/DrawerContent.js +79 -10
- package/lib/drawer/src/interface.d.ts +6 -1
- package/lib/drawer/src/styles/index.cssr.js +57 -28
- package/lib/drawer/styles/_common.d.ts +11 -0
- package/lib/drawer/styles/_common.js +12 -0
- package/lib/drawer/styles/light.d.ts +38 -24
- package/lib/drawer/styles/light.js +6 -24
- package/lib/dropdown/src/Dropdown.d.ts +322 -333
- package/lib/dropdown/styles/dark.js +1 -10
- package/lib/dropdown/styles/light.d.ts +34 -34
- package/lib/dropdown/styles/light.js +57 -12
- package/lib/dynamic-input/src/DynamicInput.d.ts +189 -170
- package/lib/dynamic-input/src/InputPreset.d.ts +98 -106
- package/lib/dynamic-input/src/PairPreset.d.ts +98 -106
- package/lib/dynamic-input/styles/light.d.ts +10 -7
- package/lib/dynamic-tags/src/DynamicTags.d.ts +375 -325
- package/lib/dynamic-tags/src/DynamicTags.js +8 -3
- package/lib/dynamic-tags/styles/light.d.ts +28 -22
- package/lib/ellipsis/src/Ellipsis.d.ts +184 -195
- package/lib/ellipsis/src/PerformantEllipsis.d.ts +54 -54
- package/lib/ellipsis/styles/light.d.ts +9 -9
- package/lib/empty/src/Empty.d.ts +24 -24
- package/lib/empty/styles/light.d.ts +4 -4
- package/lib/empty/styles/light.js +14 -9
- package/lib/form/src/Form.d.ts +117 -99
- package/lib/form/src/FormItem.d.ts +119 -102
- package/lib/form/src/FormItem.js +3 -4
- package/lib/form/src/FormItemCol.d.ts +117 -99
- package/lib/form/src/FormItemGridItem.d.ts +117 -99
- package/lib/form/src/FormItemRow.d.ts +117 -99
- package/lib/form/src/styles/form-item.cssr.js +14 -17
- package/lib/form/styles/light.d.ts +17 -15
- package/lib/form/styles/light.js +35 -6
- package/lib/global-style/src/GlobalStyle.js +5 -5
- package/lib/gradient-text/src/styles/index.cssr.js +1 -0
- package/lib/gradient-text/styles/dark.js +2 -17
- package/lib/gradient-text/styles/light.d.ts +1 -1
- package/lib/gradient-text/styles/light.js +15 -13
- package/lib/icon/styles/light.js +7 -7
- package/lib/icon-wrapper/styles/light.js +3 -3
- package/lib/image/src/Image.d.ts +90 -81
- package/lib/image/src/ImageGroup.d.ts +90 -81
- package/lib/image/src/ImagePreview.d.ts +61 -54
- package/lib/image/src/ImagePreview.js +3 -2
- package/lib/image/src/interface.d.ts +30 -27
- package/lib/image/src/styles/index.cssr.js +1 -1
- package/lib/image/styles/dark.js +2 -9
- package/lib/image/styles/light.d.ts +13 -11
- package/lib/image/styles/light.js +10 -7
- package/lib/input/index.d.ts +1 -1
- package/lib/input/src/Input.d.ts +166 -147
- package/lib/input/src/Input.js +7 -4
- package/lib/input/src/InputGroupLabel.d.ts +68 -41
- package/lib/input/src/interface.d.ts +1 -1
- package/lib/input/src/styles/input.cssr.js +5 -11
- package/lib/input/styles/dark.js +2 -23
- package/lib/input/styles/light.d.ts +10 -7
- package/lib/input/styles/light.js +72 -18
- package/lib/input-number/src/InputNumber.d.ts +204 -208
- package/lib/input-number/src/InputNumber.js +3 -11
- package/lib/input-number/src/interface.d.ts +0 -1
- package/lib/input-number/styles/dark.js +2 -6
- package/lib/input-number/styles/light.d.ts +12 -13
- package/lib/input-number/styles/light.js +4 -5
- package/lib/layout/src/Layout.d.ts +204 -198
- package/lib/layout/src/LayoutContent.d.ts +102 -99
- package/lib/layout/src/LayoutFooter.d.ts +18 -0
- package/lib/layout/src/LayoutHeader.d.ts +12 -0
- package/lib/layout/src/LayoutSider.d.ts +102 -99
- package/lib/layout/src/LayoutSider.js +5 -3
- package/lib/layout/src/ToggleButton.d.ts +2 -2
- package/lib/layout/styles/dark.js +2 -29
- package/lib/layout/styles/light.d.ts +4 -0
- package/lib/layout/styles/light.js +25 -24
- package/lib/legacy-transfer/src/Transfer.d.ts +538 -359
- package/lib/legacy-transfer/src/TransferFilter.d.ts +133 -125
- package/lib/legacy-transfer/src/TransferList.d.ts +133 -125
- package/lib/legacy-transfer/src/TransferListItem.d.ts +133 -125
- package/lib/legacy-transfer/styles/dark.js +2 -12
- package/lib/legacy-transfer/styles/light.d.ts +48 -29
- package/lib/legacy-transfer/styles/light.js +27 -12
- package/lib/list/index.d.ts +3 -2
- package/lib/list/index.js +2 -1
- package/lib/list/src/List.d.ts +218 -83
- package/lib/list/src/List.js +38 -24
- package/lib/list/src/ListItem.d.ts +122 -3
- package/lib/list/src/ListItem.js +183 -11
- package/lib/list/src/interface.d.ts +35 -0
- package/lib/list/src/interface.js +2 -0
- package/lib/list/src/props.d.ts +228 -0
- package/lib/list/src/props.js +62 -0
- package/lib/list/src/styles/index.cssr.js +141 -47
- package/lib/list/styles/light.d.ts +15 -0
- package/lib/list/styles/light.js +27 -13
- package/lib/loading-bar/styles/dark.js +2 -8
- package/lib/loading-bar/styles/light.d.ts +1 -1
- package/lib/loading-bar/styles/light.js +6 -4
- package/lib/log/src/Log.d.ts +88 -99
- package/lib/log/styles/dark.js +2 -10
- package/lib/log/styles/light.d.ts +1 -1
- package/lib/log/styles/light.js +9 -7
- package/lib/mention/src/Mention.d.ts +314 -325
- package/lib/mention/styles/dark.js +2 -6
- package/lib/mention/styles/light.d.ts +23 -23
- package/lib/mention/styles/light.js +5 -3
- package/lib/menu/src/Menu.d.ts +490 -501
- package/lib/menu/src/MenuOption.d.ts +138 -149
- package/lib/menu/src/Submenu.d.ts +138 -149
- package/lib/menu/styles/dark.js +1 -14
- package/lib/menu/styles/light.d.ts +38 -38
- package/lib/menu/styles/light.js +2 -4
- package/lib/message/src/Message.d.ts +3 -7
- package/lib/message/src/Message.js +8 -22
- package/lib/message/src/MessageProvider.d.ts +195 -258
- package/lib/message/src/MessageProvider.js +1 -1
- package/lib/message/src/styles/index.cssr.js +10 -10
- package/lib/message/styles/_common.d.ts +0 -5
- package/lib/message/styles/_common.js +3 -8
- package/lib/message/styles/light.d.ts +23 -30
- package/lib/message/styles/light.js +14 -7
- package/lib/message/styles/types.d.ts +4 -0
- package/lib/message/styles/types.js +2 -0
- package/lib/modal/src/BodyWrapper.d.ts +140 -173
- package/lib/modal/src/BodyWrapper.js +7 -13
- package/lib/modal/src/Modal.d.ts +340 -303
- package/lib/modal/src/Modal.js +7 -5
- package/lib/modal/src/presetProps.d.ts +20 -32
- package/lib/modal/src/presetProps.js +4 -2
- package/lib/modal/src/styles/index.cssr.js +2 -3
- package/lib/modal/styles/light.d.ts +39 -27
- package/lib/modal/styles/light.js +7 -4
- package/lib/notification/src/Notification.d.ts +15 -7
- package/lib/notification/src/Notification.js +13 -15
- package/lib/notification/src/NotificationContainer.d.ts +159 -115
- package/lib/notification/src/NotificationEnvironment.d.ts +8 -7
- package/lib/notification/src/NotificationProvider.d.ts +644 -146
- package/lib/notification/src/NotificationProvider.js +2 -1
- package/lib/notification/src/styles/index.cssr.js +20 -25
- package/lib/notification/styles/_common.d.ts +1 -6
- package/lib/notification/styles/_common.js +2 -7
- package/lib/notification/styles/light.d.ts +142 -32
- package/lib/notification/styles/light.js +14 -7
- package/lib/page-header/src/PageHeader.d.ts +18 -18
- package/lib/page-header/styles/light.d.ts +4 -4
- package/lib/page-header/styles/light.js +12 -6
- package/lib/pagination/src/Pagination.d.ts +1564 -1039
- package/lib/pagination/src/Pagination.js +1 -2
- package/lib/pagination/src/styles/index.cssr.js +2 -4
- package/lib/pagination/styles/dark.js +1 -11
- package/lib/pagination/styles/light.d.ts +140 -91
- package/lib/pagination/styles/light.js +73 -10
- package/lib/popconfirm/src/Popconfirm.d.ts +172 -183
- package/lib/popconfirm/styles/light.d.ts +9 -9
- package/lib/popconfirm/styles/light.js +6 -6
- package/lib/popover/src/Popover.d.ts +35 -35
- package/lib/popover/src/Popover.js +2 -4
- package/lib/popover/src/PopoverBody.d.ts +30 -30
- package/lib/popover/src/PopoverBody.js +1 -6
- package/lib/popover/styles/light.d.ts +6 -6
- package/lib/popover/styles/light.js +15 -7
- package/lib/popselect/src/Popselect.d.ts +286 -327
- package/lib/popselect/src/PopselectPanel.d.ts +112 -126
- package/lib/popselect/src/interface.d.ts +1 -1
- package/lib/popselect/styles/light.d.ts +19 -22
- package/lib/popselect/styles/light.js +2 -2
- package/lib/progress/styles/dark.js +1 -7
- package/lib/progress/styles/light.js +18 -18
- package/lib/radio/src/Radio.d.ts +129 -50
- package/lib/radio/src/Radio.js +16 -5
- package/lib/radio/src/RadioButton.d.ts +5 -2
- package/lib/radio/src/RadioButton.js +4 -4
- package/lib/radio/src/RadioGroup.d.ts +121 -49
- package/lib/radio/src/RadioGroup.js +2 -2
- package/lib/radio/src/styles/radio-group.cssr.js +7 -7
- package/lib/radio/src/styles/radio.cssr.js +19 -25
- package/lib/radio/src/styles/rtl.cssr.js +2 -2
- package/lib/radio/styles/dark.js +2 -11
- package/lib/radio/styles/light.d.ts +15 -7
- package/lib/radio/styles/light.js +56 -9
- package/lib/rate/styles/dark.js +2 -11
- package/lib/rate/styles/light.d.ts +1 -1
- package/lib/rate/styles/light.js +6 -4
- package/lib/result/src/Result.d.ts +36 -36
- package/lib/result/styles/light.d.ts +8 -8
- package/lib/result/styles/light.js +27 -6
- package/lib/select/src/Select.d.ts +877 -385
- package/lib/select/src/Select.js +2 -2
- package/lib/select/src/interface.d.ts +0 -1
- package/lib/select/styles/light.d.ts +76 -27
- package/lib/select/styles/light.js +2 -2
- package/lib/skeleton/src/styles/index.cssr.js +1 -1
- package/lib/skeleton/styles/dark.js +2 -11
- package/lib/skeleton/styles/light.d.ts +1 -2
- package/lib/skeleton/styles/light.js +6 -5
- package/lib/slider/src/Slider.d.ts +30 -30
- package/lib/slider/styles/dark.js +2 -9
- package/lib/slider/styles/light.d.ts +7 -7
- package/lib/slider/styles/light.js +34 -9
- package/lib/spin/styles/light.js +9 -15
- package/lib/statistic/styles/light.js +7 -7
- package/lib/status/index.d.ts +2 -0
- package/lib/status/index.js +9 -0
- package/lib/status/src/Status.d.ts +139 -0
- package/lib/status/src/Status.js +87 -0
- package/lib/status/src/styles/index.cssr.d.ts +2 -0
- package/lib/status/src/styles/index.cssr.js +29 -0
- package/lib/status/styles/dark.d.ts +3 -0
- package/lib/status/styles/dark.js +10 -0
- package/lib/status/styles/index.d.ts +3 -0
- package/lib/status/styles/index.js +10 -0
- package/lib/status/styles/light.d.ts +17 -0
- package/lib/status/styles/light.js +25 -0
- package/lib/steps/src/Step.d.ts +7 -1
- package/lib/steps/src/Step.js +31 -22
- package/lib/steps/src/Steps.d.ts +36 -36
- package/lib/steps/src/styles/index.cssr.js +18 -3
- package/lib/steps/styles/light.d.ts +8 -8
- package/lib/steps/styles/light.js +36 -6
- package/lib/styles.d.ts +2 -0
- package/lib/styles.js +51 -46
- package/lib/switch/src/Switch.d.ts +67 -67
- package/lib/switch/styles/dark.js +2 -10
- package/lib/switch/styles/light.d.ts +16 -16
- package/lib/switch/styles/light.js +50 -8
- package/lib/table/src/Table.d.ts +30 -30
- package/lib/table/styles/light.d.ts +6 -6
- package/lib/table/styles/light.js +29 -11
- package/lib/tabs/src/Tab.js +4 -1
- package/lib/tabs/src/Tabs.d.ts +160 -141
- package/lib/tabs/src/Tabs.js +3 -2
- package/lib/tabs/src/styles/index.cssr.js +17 -12
- package/lib/tabs/styles/dark.js +1 -7
- package/lib/tabs/styles/light.d.ts +35 -33
- package/lib/tabs/styles/light.js +94 -10
- package/lib/tag/src/Tag.d.ts +115 -87
- package/lib/tag/src/Tag.js +2 -1
- package/lib/tag/src/styles/index.cssr.js +1 -1
- package/lib/tag/styles/dark.js +2 -32
- package/lib/tag/styles/light.d.ts +19 -16
- package/lib/tag/styles/light.js +115 -23
- package/lib/theme-editor/src/ThemeEditor.d.ts +88 -99
- package/lib/theme-editor/src/ThemeEditor.js +35 -2
- package/lib/themes/dark.js +34 -30
- package/lib/themes/light.js +34 -30
- package/lib/thing/styles/light.js +4 -4
- package/lib/time-picker/src/Panel.d.ts +104 -111
- package/lib/time-picker/src/Panel.js +2 -2
- package/lib/time-picker/src/TimePicker.d.ts +244 -214
- package/lib/time-picker/src/TimePicker.js +2 -1
- package/lib/time-picker/src/interface.d.ts +2 -1
- package/lib/time-picker/src/styles/index.cssr.js +1 -0
- package/lib/time-picker/styles/light.d.ts +19 -14
- package/lib/time-picker/styles/light.js +19 -8
- package/lib/timeline/src/Timeline.d.ts +30 -30
- package/lib/timeline/styles/dark.js +2 -8
- package/lib/timeline/styles/light.d.ts +7 -7
- package/lib/timeline/styles/light.js +28 -7
- package/lib/toggle-button/index.d.ts +2 -0
- package/lib/toggle-button/index.js +9 -0
- package/lib/toggle-button/src/ToggleButton.d.ts +551 -0
- package/lib/toggle-button/src/ToggleButton.js +134 -0
- package/lib/toggle-button/src/styles/toggle-button.cssr.d.ts +2 -0
- package/lib/toggle-button/src/styles/toggle-button.cssr.js +78 -0
- package/lib/toggle-button/styles/_common.d.ts +7 -0
- package/lib/toggle-button/styles/_common.js +8 -0
- package/lib/toggle-button/styles/dark.d.ts +3 -0
- package/lib/toggle-button/styles/dark.js +10 -0
- package/lib/toggle-button/styles/index.d.ts +3 -0
- package/lib/toggle-button/styles/index.js +10 -0
- package/lib/toggle-button/styles/light.d.ts +47 -0
- package/lib/toggle-button/styles/light.js +25 -0
- package/lib/tooltip/src/Tooltip.d.ts +185 -196
- package/lib/tooltip/styles/dark.js +2 -8
- package/lib/tooltip/styles/light.d.ts +13 -13
- package/lib/tooltip/styles/light.js +21 -7
- package/lib/transfer/src/Transfer.d.ts +632 -453
- package/lib/transfer/src/TransferFilter.d.ts +142 -134
- package/lib/transfer/src/TransferList.d.ts +142 -134
- package/lib/transfer/src/TransferListItem.d.ts +142 -134
- package/lib/transfer/src/styles/index.cssr.js +2 -0
- package/lib/transfer/styles/dark.js +2 -16
- package/lib/transfer/styles/light.d.ts +58 -39
- package/lib/transfer/styles/light.js +41 -15
- package/lib/tree/src/Tree.d.ts +418 -269
- package/lib/tree/src/TreeNodeCheckbox.d.ts +121 -116
- package/lib/tree/src/styles/index.cssr.js +5 -1
- package/lib/tree/styles/dark.js +1 -7
- package/lib/tree/styles/light.d.ts +33 -17
- package/lib/tree/styles/light.js +14 -15
- package/lib/tree-select/src/TreeSelect.d.ts +1145 -459
- package/lib/tree-select/styles/light.d.ts +100 -32
- package/lib/tree-select/styles/light.js +6 -6
- package/lib/typography/src/a.d.ts +56 -56
- package/lib/typography/src/blockquote.d.ts +61 -61
- package/lib/typography/src/create-header.d.ts +74 -74
- package/lib/typography/src/headers.d.ts +300 -300
- package/lib/typography/src/hr.d.ts +47 -47
- package/lib/typography/src/ol.d.ts +63 -63
- package/lib/typography/src/p.d.ts +61 -61
- package/lib/typography/src/text.d.ts +89 -89
- package/lib/typography/src/ul.d.ts +63 -63
- package/lib/typography/styles/light.d.ts +28 -28
- package/lib/typography/styles/light.js +67 -6
- package/lib/upload/src/Upload.d.ts +111 -149
- package/lib/upload/src/UploadFile.d.ts +89 -100
- package/lib/upload/src/UploadProgress.d.ts +89 -100
- package/lib/upload/src/styles/index.cssr.js +5 -4
- package/lib/upload/styles/dark.js +1 -9
- package/lib/upload/styles/light.d.ts +1 -1
- package/lib/upload/styles/light.js +22 -22
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +87 -85
- package/volar.d.ts +5 -3
- package/web-types.json +653 -199
- package/es/_internal/select-menu/styles/_common.d.ts +0 -13
- package/es/_internal/select-menu/styles/_common.js +0 -12
- package/es/_internal/selection/styles/_common.d.ts +0 -7
- package/es/_internal/selection/styles/_common.js +0 -6
- package/es/anchor/styles/_common.d.ts +0 -6
- package/es/anchor/styles/_common.js +0 -5
- package/es/back-top/styles/_common.d.ts +0 -7
- package/es/back-top/styles/_common.js +0 -6
- package/es/breadcrumb/styles/_common.d.ts +0 -4
- package/es/breadcrumb/styles/_common.js +0 -3
- package/es/calendar/styles/_common.d.ts +0 -4
- package/es/calendar/styles/_common.js +0 -3
- package/es/data-table/styles/_common.d.ts +0 -23
- package/es/data-table/styles/_common.js +0 -22
- package/es/descriptions/styles/_common.d.ts +0 -15
- package/es/descriptions/styles/_common.js +0 -14
- package/es/dropdown/styles/_common.d.ts +0 -24
- package/es/dropdown/styles/_common.js +0 -23
- package/es/empty/styles/_common.d.ts +0 -7
- package/es/empty/styles/_common.js +0 -6
- package/es/form/styles/_common.d.ts +0 -24
- package/es/form/styles/_common.js +0 -23
- package/es/input/styles/_common.d.ts +0 -8
- package/es/input/styles/_common.js +0 -7
- package/es/legacy-transfer/styles/_common.d.ts +0 -5
- package/es/legacy-transfer/styles/_common.js +0 -4
- package/es/page-header/styles/_common.d.ts +0 -5
- package/es/page-header/styles/_common.js +0 -4
- package/es/pagination/styles/_common.d.ts +0 -36
- package/es/pagination/styles/_common.js +0 -35
- package/es/popconfirm/styles/_common.d.ts +0 -4
- package/es/popconfirm/styles/_common.js +0 -3
- package/es/popover/styles/_common.d.ts +0 -9
- package/es/popover/styles/_common.js +0 -8
- package/es/radio/src/interface.d.ts +0 -2
- package/es/radio/styles/_common.d.ts +0 -8
- package/es/radio/styles/_common.js +0 -7
- package/es/result/styles/_common.d.ts +0 -19
- package/es/result/styles/_common.js +0 -18
- package/es/slider/styles/_common.d.ts +0 -9
- package/es/slider/styles/_common.js +0 -8
- package/es/steps/styles/_common.d.ts +0 -11
- package/es/steps/styles/_common.js +0 -10
- package/es/switch/styles/_common.d.ts +0 -18
- package/es/switch/styles/_common.js +0 -17
- package/es/table/styles/_common.d.ts +0 -9
- package/es/table/styles/_common.js +0 -8
- package/es/tabs/styles/_common.d.ts +0 -59
- package/es/tabs/styles/_common.js +0 -58
- package/es/tag/styles/_common.d.ts +0 -15
- package/es/tag/styles/_common.js +0 -14
- package/es/time-picker/styles/_common.d.ts +0 -7
- package/es/time-picker/styles/_common.js +0 -6
- package/es/timeline/styles/_common.d.ts +0 -9
- package/es/timeline/styles/_common.js +0 -8
- package/es/tooltip/styles/_common.d.ts +0 -15
- package/es/tooltip/styles/_common.js +0 -14
- package/es/transfer/styles/_common.d.ts +0 -14
- package/es/transfer/styles/_common.js +0 -13
- package/es/typography/styles/_common.d.ts +0 -31
- package/es/typography/styles/_common.js +0 -30
- package/lib/_internal/select-menu/styles/_common.d.ts +0 -13
- package/lib/_internal/select-menu/styles/_common.js +0 -14
- package/lib/_internal/selection/styles/_common.d.ts +0 -7
- package/lib/_internal/selection/styles/_common.js +0 -8
- package/lib/anchor/styles/_common.d.ts +0 -6
- package/lib/anchor/styles/_common.js +0 -7
- package/lib/back-top/styles/_common.d.ts +0 -7
- package/lib/back-top/styles/_common.js +0 -8
- package/lib/breadcrumb/styles/_common.d.ts +0 -4
- package/lib/breadcrumb/styles/_common.js +0 -5
- package/lib/calendar/styles/_common.d.ts +0 -4
- package/lib/data-table/styles/_common.d.ts +0 -23
- package/lib/data-table/styles/_common.js +0 -24
- package/lib/descriptions/styles/_common.d.ts +0 -15
- package/lib/descriptions/styles/_common.js +0 -16
- package/lib/dropdown/styles/_common.d.ts +0 -24
- package/lib/dropdown/styles/_common.js +0 -25
- package/lib/empty/styles/_common.d.ts +0 -7
- package/lib/empty/styles/_common.js +0 -8
- package/lib/form/styles/_common.d.ts +0 -24
- package/lib/form/styles/_common.js +0 -25
- package/lib/input/styles/_common.d.ts +0 -8
- package/lib/input/styles/_common.js +0 -9
- package/lib/legacy-transfer/styles/_common.d.ts +0 -5
- package/lib/legacy-transfer/styles/_common.js +0 -6
- package/lib/page-header/styles/_common.d.ts +0 -5
- package/lib/page-header/styles/_common.js +0 -6
- package/lib/pagination/styles/_common.d.ts +0 -36
- package/lib/pagination/styles/_common.js +0 -37
- package/lib/popconfirm/styles/_common.d.ts +0 -4
- package/lib/popover/styles/_common.d.ts +0 -9
- package/lib/popover/styles/_common.js +0 -10
- package/lib/radio/src/interface.d.ts +0 -2
- package/lib/radio/styles/_common.d.ts +0 -8
- package/lib/radio/styles/_common.js +0 -9
- package/lib/result/styles/_common.d.ts +0 -19
- package/lib/result/styles/_common.js +0 -20
- package/lib/slider/styles/_common.d.ts +0 -9
- package/lib/slider/styles/_common.js +0 -10
- package/lib/steps/styles/_common.d.ts +0 -11
- package/lib/steps/styles/_common.js +0 -12
- package/lib/switch/styles/_common.d.ts +0 -18
- package/lib/switch/styles/_common.js +0 -19
- package/lib/table/styles/_common.d.ts +0 -9
- package/lib/table/styles/_common.js +0 -10
- package/lib/tabs/styles/_common.d.ts +0 -59
- package/lib/tabs/styles/_common.js +0 -60
- package/lib/tag/styles/_common.d.ts +0 -15
- package/lib/tag/styles/_common.js +0 -16
- package/lib/time-picker/styles/_common.d.ts +0 -7
- package/lib/time-picker/styles/_common.js +0 -8
- package/lib/timeline/styles/_common.d.ts +0 -9
- package/lib/timeline/styles/_common.js +0 -10
- package/lib/tooltip/styles/_common.d.ts +0 -15
- package/lib/tooltip/styles/_common.js +0 -16
- package/lib/transfer/styles/_common.d.ts +0 -14
- package/lib/transfer/styles/_common.js +0 -15
- package/lib/typography/styles/_common.d.ts +0 -31
- package/lib/typography/styles/_common.js +0 -32
- /package/es/{checkbox → _internal/checkbox}/src/interface.d.ts +0 -0
- /package/es/{checkbox → _internal/checkbox}/src/interface.js +0 -0
- /package/es/{radio → _internal/radio}/src/interface.js +0 -0
- /package/lib/{checkbox → _internal/checkbox}/src/interface.d.ts +0 -0
- /package/lib/{checkbox → _internal/checkbox}/src/interface.js +0 -0
- /package/lib/{radio → _internal/radio}/src/interface.js +0 -0
|
@@ -14,6 +14,8 @@ const suffix_1 = __importDefault(require("../../suffix"));
|
|
|
14
14
|
const styles_1 = require("../styles");
|
|
15
15
|
const index_cssr_1 = __importDefault(require("./styles/index.cssr"));
|
|
16
16
|
const _internal_1 = require("../../../_internal");
|
|
17
|
+
const seemly_1 = require("seemly");
|
|
18
|
+
const clear_1 = __importDefault(require("../../clear"));
|
|
17
19
|
exports.default = (0, vue_1.defineComponent)({
|
|
18
20
|
name: 'InternalSelection',
|
|
19
21
|
props: Object.assign(Object.assign({}, _mixins_1.useTheme.props), { clsPrefix: {
|
|
@@ -40,7 +42,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
40
42
|
}, loading: Boolean, loadingSkeleton: Boolean, autofocus: Boolean, showArrow: {
|
|
41
43
|
type: Boolean,
|
|
42
44
|
default: true
|
|
43
|
-
}, inputProps: Object, focused: Boolean, renderTag: Function, onKeydown: Function, onClick: Function, onBlur: Function, onFocus: Function, onDeleteOption: Function, maxTagCount: [String, Number], onClear: Function, onPatternInput: Function, onPatternFocus: Function, onPatternBlur: Function, renderLabel: Function, status: String, inlineThemeDisabled: Boolean, ignoreComposition: { type: Boolean, default: true }, onResize: Function }),
|
|
45
|
+
}, inputProps: Object, focused: Boolean, renderTag: Function, onKeydown: Function, onClick: Function, onBlur: Function, onFocus: Function, onDeleteOption: Function, maxTagCount: [String, Number], onClear: Function, onPatternInput: Function, onPatternFocus: Function, onPatternBlur: Function, renderLabel: Function, status: String, inlineThemeDisabled: Boolean, ignoreComposition: { type: Boolean, default: true }, onResize: Function, round: Boolean, counter: Boolean, secondary: Boolean }),
|
|
44
46
|
setup(props) {
|
|
45
47
|
const patternInputMirrorRef = (0, vue_1.ref)(null);
|
|
46
48
|
const patternInputRef = (0, vue_1.ref)(null);
|
|
@@ -85,6 +87,22 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
85
87
|
return props.selectedOption !== null;
|
|
86
88
|
}
|
|
87
89
|
});
|
|
90
|
+
const showSuffixClearRef = (0, vue_1.computed)(() => {
|
|
91
|
+
return (mergedClearableRef.value &&
|
|
92
|
+
selectedRef.value &&
|
|
93
|
+
!filterCounterVisibleRef.value);
|
|
94
|
+
});
|
|
95
|
+
const filterCounterLengthRef = (0, vue_1.computed)(() => {
|
|
96
|
+
var _a;
|
|
97
|
+
const length = ((_a = props.selectedOptions) === null || _a === void 0 ? void 0 : _a.length) || 0;
|
|
98
|
+
return length > 99 ? '99+' : length;
|
|
99
|
+
});
|
|
100
|
+
const filterCounterClearableRef = (0, vue_1.computed)(() => {
|
|
101
|
+
return props.clearable && !props.disabled && filterCounterVisibleRef.value;
|
|
102
|
+
});
|
|
103
|
+
const filterCounterVisibleRef = (0, vue_1.computed)(() => {
|
|
104
|
+
return props.counter && props.multiple && selectedRef.value;
|
|
105
|
+
});
|
|
88
106
|
function syncMirrorWidth() {
|
|
89
107
|
var _a;
|
|
90
108
|
const { value: patternInputMirrorEl } = patternInputMirrorRef;
|
|
@@ -156,6 +174,8 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
156
174
|
doBlur(e);
|
|
157
175
|
}
|
|
158
176
|
function handleClear(e) {
|
|
177
|
+
if (!mergedClearableRef.value)
|
|
178
|
+
return;
|
|
159
179
|
doClear(e);
|
|
160
180
|
}
|
|
161
181
|
function handleMouseEnter() {
|
|
@@ -327,17 +347,22 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
327
347
|
});
|
|
328
348
|
(0, _utils_1.useOnResize)(selfRef, props.onResize);
|
|
329
349
|
const { inlineThemeDisabled } = props;
|
|
330
|
-
const
|
|
350
|
+
const tagSizeRef = (0, vue_1.computed)(() => {
|
|
331
351
|
const { size } = props;
|
|
332
|
-
|
|
352
|
+
return size === 'huge' ? 'medium' : 'small';
|
|
353
|
+
});
|
|
354
|
+
const cssVarsRef = (0, vue_1.computed)(() => {
|
|
355
|
+
const { size, round } = props;
|
|
356
|
+
const { common: { cubicBezierEaseInOut, fontWeight }, self: { color, placeholderColor, textColor, caretColor, colorDisabled, textColorDisabled, placeholderColorDisabled, colorActive, boxShadowFocus, boxShadowActive, boxShadowHover, border, borderFocus, borderHover, borderActive, borderDisabled, arrowColor, arrowColorDisabled, arrowColorHover, loadingColor,
|
|
333
357
|
// form warning
|
|
334
358
|
colorActiveWarning, boxShadowFocusWarning, boxShadowActiveWarning, boxShadowHoverWarning, borderWarning, borderFocusWarning, borderHoverWarning, borderActiveWarning,
|
|
335
359
|
// form error
|
|
336
360
|
colorActiveError, boxShadowFocusError, boxShadowActiveError, boxShadowHoverError, borderError, borderFocusError, borderHoverError, borderActiveError,
|
|
337
361
|
// clear
|
|
338
|
-
clearColor, clearColorHover, clearColorPressed,
|
|
339
|
-
//
|
|
340
|
-
arrowSize, [(0, _utils_1.createKey)('height', size)]: height, [(0, _utils_1.createKey)('fontSize', size)]: fontSize } } = themeRef.value;
|
|
362
|
+
clearColor, clearColorHover, clearColorPressed,
|
|
363
|
+
// secondary
|
|
364
|
+
arrowColorSecondary, clearColorSecondary, colorSecondary, textColorSecondary, borderSecondary, arrowColorDisabledSecondary, clearColorDisabledSecondary, colorDisabledSecondary, textColorDisabledSecondary, borderDisabledSecondary, arrowColorHoverSecondary, clearColorHoverSecondary, colorHoverSecondary, textColorHoverSecondary, borderHoverSecondary, filterCounterTextColor, filterCounterSeparatorColor, filterCounterTextColorDisabled, filterCounterSeparatorColorDisabled, caretColorSecondary, arrowColorActiveSecondary, clearColorActiveSecondary, colorActiveSecondary, textColorActiveSecondary, borderActiveSecondary, arrowColorFocusSecondary, clearColorFocusSecondary, colorFocusSecondary, textColorFocusSecondary, borderFocusSecondary, [(0, _utils_1.createKey)('clearSize', size)]: clearSize, [(0, _utils_1.createKey)('arrowSize', size)]: arrowSize, [(0, _utils_1.createKey)('padding', size)]: padding, [(0, _utils_1.createKey)('borderRadius', size)]: borderRadius, [(0, _utils_1.createKey)('height', size)]: height, [(0, _utils_1.createKey)('fontSize', size)]: fontSize, [(0, _utils_1.createKey)('lineHeight', size)]: lineHeight } } = themeRef.value;
|
|
365
|
+
const { top: paddingTop, right: paddingRight, bottom: paddingBottom, left: paddingLeft } = (0, seemly_1.getPadding)(padding);
|
|
341
366
|
return {
|
|
342
367
|
'--u-bezier': cubicBezierEaseInOut,
|
|
343
368
|
'--u-border': border,
|
|
@@ -345,7 +370,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
345
370
|
'--u-border-focus': borderFocus,
|
|
346
371
|
'--u-border-hover': borderHover,
|
|
347
372
|
'--u-border-disabled': borderDisabled,
|
|
348
|
-
'--u-border-radius': borderRadius,
|
|
373
|
+
'--u-border-radius': round ? '100px' : borderRadius,
|
|
349
374
|
'--u-box-shadow-active': boxShadowActive,
|
|
350
375
|
'--u-box-shadow-focus': boxShadowFocus,
|
|
351
376
|
'--u-box-shadow-hover': boxShadowHover,
|
|
@@ -353,12 +378,18 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
353
378
|
'--u-color': color,
|
|
354
379
|
'--u-color-active': colorActive,
|
|
355
380
|
'--u-color-disabled': colorDisabled,
|
|
381
|
+
'--u-line-height': lineHeight,
|
|
356
382
|
'--u-font-size': fontSize,
|
|
357
383
|
'--u-font-weight': fontWeight,
|
|
358
|
-
'--u-font-weight-strong': fontWeightStrong,
|
|
359
384
|
'--u-height': height,
|
|
360
|
-
'--u-padding
|
|
361
|
-
|
|
385
|
+
'--u-padding': `${paddingTop}
|
|
386
|
+
${(0, seemly_1.pxfy)((0, seemly_1.depx)(paddingRight) + (0, seemly_1.depx)(arrowSize))}
|
|
387
|
+
${paddingBottom}
|
|
388
|
+
${paddingLeft}`,
|
|
389
|
+
'--u-padding-top': paddingTop,
|
|
390
|
+
'--u-padding-right': paddingRight,
|
|
391
|
+
'--u-padding-left': paddingLeft,
|
|
392
|
+
'--u-padding-bottom': paddingBottom,
|
|
362
393
|
'--u-placeholder-color': placeholderColor,
|
|
363
394
|
'--u-placeholder-color-disabled': placeholderColorDisabled,
|
|
364
395
|
'--u-text-color': textColor,
|
|
@@ -391,7 +422,38 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
391
422
|
'--u-clear-color-hover': clearColorHover,
|
|
392
423
|
'--u-clear-color-pressed': clearColorPressed,
|
|
393
424
|
// arrow-size
|
|
394
|
-
'--u-arrow-size': arrowSize
|
|
425
|
+
'--u-arrow-size': arrowSize,
|
|
426
|
+
// secondary
|
|
427
|
+
'--u-caret-color-secondary': caretColorSecondary,
|
|
428
|
+
'--u-filter-counter-text-color': filterCounterTextColor,
|
|
429
|
+
'--u-filter-counter-separator-color': filterCounterSeparatorColor,
|
|
430
|
+
'--u-filter-counter-text-color-disabled': filterCounterTextColorDisabled,
|
|
431
|
+
'--u-filter-counter-separator-color-disabled': filterCounterSeparatorColorDisabled,
|
|
432
|
+
'--u-arrow-color-secondary': arrowColorSecondary,
|
|
433
|
+
'--u-clear-color-secondary': clearColorSecondary,
|
|
434
|
+
'--u-color-secondary': colorSecondary,
|
|
435
|
+
'--u-text-color-secondary': textColorSecondary,
|
|
436
|
+
'--u-border-secondary': borderSecondary,
|
|
437
|
+
'--u-arrow-color-disabled-secondary': arrowColorDisabledSecondary,
|
|
438
|
+
'--u-clear-color-disabled-secondary': clearColorDisabledSecondary,
|
|
439
|
+
'--u-color-disabled-secondary': colorDisabledSecondary,
|
|
440
|
+
'--u-text-color-disabled-secondary': textColorDisabledSecondary,
|
|
441
|
+
'--u-border-disabled-secondary': borderDisabledSecondary,
|
|
442
|
+
'--u-arrow-color-hover-secondary': arrowColorHoverSecondary,
|
|
443
|
+
'--u-clear-color-hover-secondary': clearColorHoverSecondary,
|
|
444
|
+
'--u-color-hover-secondary': colorHoverSecondary,
|
|
445
|
+
'--u-text-color-hover-secondary': textColorHoverSecondary,
|
|
446
|
+
'--u-border-hover-secondary': borderHoverSecondary,
|
|
447
|
+
'--u-arrow-color-active-secondary': arrowColorActiveSecondary,
|
|
448
|
+
'--u-clear-color-active-secondary': clearColorActiveSecondary,
|
|
449
|
+
'--u-color-active-secondary': colorActiveSecondary,
|
|
450
|
+
'--u-text-color-active-secondary': textColorActiveSecondary,
|
|
451
|
+
'--u-border-active-secondary': borderActiveSecondary,
|
|
452
|
+
'--u-arrow-color-focus-secondary': arrowColorFocusSecondary,
|
|
453
|
+
'--u-clear-color-focus-secondary': clearColorFocusSecondary,
|
|
454
|
+
'--u-color-focus-secondary': colorFocusSecondary,
|
|
455
|
+
'--u-text-color-focus-secondary': textColorFocusSecondary,
|
|
456
|
+
'--u-border-focus-secondary': borderFocusSecondary
|
|
395
457
|
};
|
|
396
458
|
});
|
|
397
459
|
const themeClassHandle = inlineThemeDisabled
|
|
@@ -445,19 +507,29 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
445
507
|
renderLabel: props.renderLabel,
|
|
446
508
|
cssVars: inlineThemeDisabled ? undefined : cssVarsRef,
|
|
447
509
|
themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass,
|
|
448
|
-
onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender
|
|
510
|
+
onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender,
|
|
511
|
+
showSuffixClear: showSuffixClearRef,
|
|
512
|
+
filterCounterVisible: filterCounterVisibleRef,
|
|
513
|
+
filterCounterLength: filterCounterLengthRef,
|
|
514
|
+
filterCounterClearable: filterCounterClearableRef,
|
|
515
|
+
tagSize: tagSizeRef
|
|
449
516
|
};
|
|
450
517
|
},
|
|
451
518
|
render() {
|
|
452
|
-
const { status, multiple,
|
|
519
|
+
const { status, multiple, disabled, loadingSkeleton, filterable, maxTagCount, bordered, clsPrefix, onRender, renderTag, renderLabel } = this;
|
|
453
520
|
onRender === null || onRender === void 0 ? void 0 : onRender();
|
|
454
521
|
const maxTagCountResponsive = maxTagCount === 'responsive';
|
|
455
522
|
const maxTagCountNumeric = typeof maxTagCount === 'number';
|
|
456
523
|
const useMaxTagCount = maxTagCountResponsive || maxTagCountNumeric;
|
|
524
|
+
const filterCounterEl = this.filterCounterVisible && !this.disabled ? ((0, vue_1.h)("div", { class: [`${clsPrefix}-base-selection__filter-counter`] }, this.filterCounterLength)) : null;
|
|
525
|
+
const clear = this.filterCounterClearable ? ((0, vue_1.h)(clear_1.default, { clsPrefix: clsPrefix, show: true, onClear: this.handleClear })) : null;
|
|
457
526
|
const suffix = ((0, vue_1.h)(_utils_1.Wrapper, null, {
|
|
458
|
-
default: () => ((0, vue_1.h)(
|
|
459
|
-
|
|
460
|
-
|
|
527
|
+
default: () => ((0, vue_1.h)("div", { class: [`${clsPrefix}-base-selection__suffix-wrapper`] },
|
|
528
|
+
(0, vue_1.h)(suffix_1.default, { clsPrefix: clsPrefix, loading: this.loading, showArrow: this.showArrow, showClear: this.showSuffixClear, onClear: this.handleClear }, {
|
|
529
|
+
default: () => { var _a, _b; return [(_b = (_a = this.$slots).arrow) === null || _b === void 0 ? void 0 : _b.call(_a)]; }
|
|
530
|
+
}),
|
|
531
|
+
filterCounterEl,
|
|
532
|
+
clear))
|
|
461
533
|
}));
|
|
462
534
|
let body;
|
|
463
535
|
if (multiple) {
|
|
@@ -467,7 +539,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
467
539
|
handleClose: () => {
|
|
468
540
|
this.handleDeleteOption(option);
|
|
469
541
|
}
|
|
470
|
-
})) : ((0, vue_1.h)(tag_1.UTag, { size:
|
|
542
|
+
})) : ((0, vue_1.h)(tag_1.UTag, { size: this.tagSize, closable: !option.disabled, disabled: disabled, onClose: () => {
|
|
471
543
|
this.handleDeleteOption(option);
|
|
472
544
|
}, internalCloseIsButtonTag: false, internalCloseFocusable: false }, {
|
|
473
545
|
default: () => renderLabel
|
|
@@ -483,19 +555,19 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
483
555
|
// May Overflow
|
|
484
556
|
const renderCounter = maxTagCountResponsive
|
|
485
557
|
? () => ((0, vue_1.h)("div", { class: `${clsPrefix}-base-selection-tag-wrapper`, ref: "counterWrapperRef" },
|
|
486
|
-
(0, vue_1.h)(tag_1.UTag, { size:
|
|
558
|
+
(0, vue_1.h)(tag_1.UTag, { size: this.tagSize, ref: "counterRef", onMouseenter: this.handleMouseEnterCounter, onMouseleave: this.handleMouseLeaveCounter, disabled: disabled })))
|
|
487
559
|
: undefined;
|
|
488
560
|
let counter;
|
|
489
561
|
if (maxTagCountNumeric) {
|
|
490
562
|
const rest = this.selectedOptions.length - maxTagCount;
|
|
491
563
|
if (rest > 0) {
|
|
492
564
|
counter = ((0, vue_1.h)("div", { class: `${clsPrefix}-base-selection-tag-wrapper`, key: "__counter__" },
|
|
493
|
-
(0, vue_1.h)(tag_1.UTag, { size:
|
|
565
|
+
(0, vue_1.h)(tag_1.UTag, { size: this.tagSize, ref: "counterRef", onMouseenter: this.handleMouseEnterCounter, disabled: disabled }, {
|
|
494
566
|
default: () => `+${rest}`
|
|
495
567
|
})));
|
|
496
568
|
}
|
|
497
569
|
}
|
|
498
|
-
const tags = maxTagCountResponsive ? (filterable ? ((0, vue_1.h)(vueuc_1.VOverflow, { ref: "overflowRef", updateCounter: this.updateCounter, getCounter: this.getCounter, getTail: this.getTail, style: {
|
|
570
|
+
const tags = this.filterCounterVisible ? (this.pattern ? null : (this.placeholder)) : maxTagCountResponsive ? (filterable ? ((0, vue_1.h)(vueuc_1.VOverflow, { ref: "overflowRef", updateCounter: this.updateCounter, getCounter: this.getCounter, getTail: this.getTail, style: {
|
|
499
571
|
width: '100%',
|
|
500
572
|
display: 'flex',
|
|
501
573
|
overflow: 'hidden'
|
|
@@ -551,8 +623,8 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
551
623
|
else {
|
|
552
624
|
if (filterable) {
|
|
553
625
|
const hasInput = this.pattern || this.isComposing;
|
|
554
|
-
const showPlaceholder =
|
|
555
|
-
const showSelectedLabel =
|
|
626
|
+
const showPlaceholder = !hasInput && !this.selected;
|
|
627
|
+
const showSelectedLabel = !hasInput && this.selected;
|
|
556
628
|
body = ((0, vue_1.h)("div", { ref: "patternInputWrapperRef", class: `${clsPrefix}-base-selection-label` },
|
|
557
629
|
(0, vue_1.h)("input", Object.assign({}, this.inputProps, { ref: "patternInputRef", class: `${clsPrefix}-base-selection-input`, value: this.active ? this.pattern : '', placeholder: "", readonly: disabled, disabled: disabled, tabindex: -1, autofocus: this.autofocus, onFocus: this.handlePatternInputFocus, onBlur: this.handlePatternInputBlur, onInput: this.handlePatternInputInput, onCompositionstart: this.handleCompositionStart, onCompositionend: this.handleCompositionEnd })),
|
|
558
630
|
showSelectedLabel ? ((0, vue_1.h)("div", { class: `${clsPrefix}-base-selection-label__render-label ${clsPrefix}-base-selection-overlay`, key: "input" },
|
|
@@ -589,6 +661,8 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
589
661
|
status && `${clsPrefix}-base-selection--${status}-status`,
|
|
590
662
|
{
|
|
591
663
|
[`${clsPrefix}-base-selection--active`]: this.active,
|
|
664
|
+
[`${clsPrefix}-base-selection--secondary`]: this.secondary,
|
|
665
|
+
[`${clsPrefix}-base-selection--secondary-selected`]: this.secondary && this.selected,
|
|
592
666
|
[`${clsPrefix}-base-selection--selected`]: this.selected || (this.active && this.pattern),
|
|
593
667
|
[`${clsPrefix}-base-selection--disabled`]: this.disabled,
|
|
594
668
|
[`${clsPrefix}-base-selection--multiple`]: this.multiple,
|
|
@@ -598,13 +672,13 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
598
672
|
// many redundant codes.
|
|
599
673
|
[`${clsPrefix}-base-selection--focus`]: this.focused
|
|
600
674
|
}
|
|
601
|
-
], style: this.cssVars, onClick: this.onClick, onMouseenter: this.handleMouseEnter, onMouseleave: this.handleMouseLeave, onKeydown: this.onKeydown, onFocusin: this.handleFocusin, onFocusout: this.handleFocusout, onMousedown: this.handleMouseDown },
|
|
675
|
+
], style: this.cssVars, onClick: this.onClick, onMouseenter: this.handleMouseEnter, onMouseleave: this.handleMouseLeave, onKeydown: this.onKeydown, onFocusin: this.handleFocusin, onFocusout: this.handleFocusout, onMousedown: this.handleMouseDown }, loadingSkeleton ? ((0, vue_1.h)(_internal_1.UBaseSkeleton, { sharp: false, round: this.round, class: [
|
|
676
|
+
`${clsPrefix}-base-selection__loading`,
|
|
677
|
+
`${clsPrefix}-base-selection__loading--skeleton`
|
|
678
|
+
] })) : ([
|
|
602
679
|
body,
|
|
603
680
|
bordered ? ((0, vue_1.h)("div", { class: `${clsPrefix}-base-selection__border` })) : null,
|
|
604
|
-
bordered ? ((0, vue_1.h)("div", { class: `${clsPrefix}-base-selection__state-border` })) : null
|
|
605
|
-
|
|
606
|
-
`${clsPrefix}-base-selection__loading`,
|
|
607
|
-
`${clsPrefix}-base-selection__loading--skeleton`
|
|
608
|
-
] })) : null));
|
|
681
|
+
bordered ? ((0, vue_1.h)("div", { class: `${clsPrefix}-base-selection__state-border` })) : null
|
|
682
|
+
])));
|
|
609
683
|
}
|
|
610
684
|
});
|
|
@@ -1,21 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var __importDefault = this && this.__importDefault || function (mod) {
|
|
4
|
-
return mod && mod.__esModule ? mod : {
|
|
5
|
-
"default": mod
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
3
|
Object.defineProperty(exports, "__esModule", {
|
|
9
4
|
value: true
|
|
10
5
|
});
|
|
11
6
|
const cssr_1 = require("../../../../_utils/cssr");
|
|
12
|
-
const _common_1 = __importDefault(require("../../../../_styles/common/_common"));
|
|
13
7
|
// vars:
|
|
14
8
|
// --u-bezier
|
|
15
9
|
// --u-border
|
|
16
10
|
// --u-border-active
|
|
17
11
|
// --u-border-focus
|
|
18
12
|
// --u-border-hover
|
|
13
|
+
// --u-border-disabled
|
|
19
14
|
// --u-border-radius
|
|
20
15
|
// --u-box-shadow-active
|
|
21
16
|
// --u-box-shadow-focus
|
|
@@ -24,19 +19,95 @@ const _common_1 = __importDefault(require("../../../../_styles/common/_common"))
|
|
|
24
19
|
// --u-color
|
|
25
20
|
// --u-color-active
|
|
26
21
|
// --u-color-disabled
|
|
22
|
+
// --u-line-height
|
|
27
23
|
// --u-font-size
|
|
24
|
+
// --u-font-weight
|
|
28
25
|
// --u-height
|
|
29
|
-
// --u-padding
|
|
30
|
-
// --u-padding-
|
|
26
|
+
// --u-padding
|
|
27
|
+
// --u-padding-top
|
|
28
|
+
// --u-padding-right
|
|
29
|
+
// --u-padding-left
|
|
30
|
+
// --u-padding-bottom
|
|
31
31
|
// --u-placeholder-color
|
|
32
32
|
// --u-placeholder-color-disabled
|
|
33
33
|
// --u-text-color
|
|
34
34
|
// --u-text-color-disabled
|
|
35
35
|
// --u-arrow-color
|
|
36
|
-
// --u-arrow-
|
|
36
|
+
// --u-arrow-color-hover
|
|
37
|
+
// --u-arrow-color-disabled
|
|
37
38
|
// --u-loading-color
|
|
38
|
-
//
|
|
39
|
-
//
|
|
39
|
+
// --u-color-active-warning
|
|
40
|
+
// --u-box-shadow-focus-warning
|
|
41
|
+
// --u-box-shadow-active-warning
|
|
42
|
+
// --u-box-shadow-hover-warning
|
|
43
|
+
// --u-border-warning
|
|
44
|
+
// --u-border-focus-warning
|
|
45
|
+
// --u-border-hover-warning
|
|
46
|
+
// --u-border-active-warning
|
|
47
|
+
// --u-color-active-error
|
|
48
|
+
// --u-box-shadow-focus-error
|
|
49
|
+
// --u-box-shadow-active-error
|
|
50
|
+
// --u-box-shadow-hover-error
|
|
51
|
+
// --u-border-error
|
|
52
|
+
// --u-border-focus-error
|
|
53
|
+
// --u-border-hover-error
|
|
54
|
+
// --u-border-active-error
|
|
55
|
+
// --u-clear-size
|
|
56
|
+
// --u-clear-color
|
|
57
|
+
// --u-clear-color-hover
|
|
58
|
+
// --u-clear-color-pressed
|
|
59
|
+
// --u-arrow-size
|
|
60
|
+
// --u-caret-color-secondary
|
|
61
|
+
// --u-filter-counter-text-color
|
|
62
|
+
// --u-filter-counter-separator-color
|
|
63
|
+
// --u-filter-counter-text-color-disabled
|
|
64
|
+
// --u-filter-counter-separator-color-disabled
|
|
65
|
+
// --u-arrow-color-secondary
|
|
66
|
+
// --u-clear-color-secondary
|
|
67
|
+
// --u-color-secondary
|
|
68
|
+
// --u-text-color-secondary
|
|
69
|
+
// --u-border-secondary
|
|
70
|
+
// --u-arrow-color-disabled-secondary
|
|
71
|
+
// --u-clear-color-disabled-secondary
|
|
72
|
+
// --u-color-disabled-secondary
|
|
73
|
+
// --u-text-color-disabled-secondary
|
|
74
|
+
// --u-border-disabled-secondary
|
|
75
|
+
// --u-arrow-color-hover-secondary
|
|
76
|
+
// --u-clear-color-hover-secondary
|
|
77
|
+
// --u-color-hover-secondary
|
|
78
|
+
// --u-text-color-hover-secondary
|
|
79
|
+
// --u-border-hover-secondary
|
|
80
|
+
// --u-arrow-color-active-secondary
|
|
81
|
+
// --u-clear-color-active-secondary
|
|
82
|
+
// --u-color-active-secondary
|
|
83
|
+
// --u-text-color-active-secondary
|
|
84
|
+
// --u-border-active-secondary
|
|
85
|
+
// --u-arrow-color-focus-secondary
|
|
86
|
+
// --u-clear-color-focus-secondary
|
|
87
|
+
// --u-color-focus-secondary
|
|
88
|
+
// --u-text-color-focus-secondary
|
|
89
|
+
// --u-border-focus-secondary
|
|
90
|
+
function generateSecondaryStates(state) {
|
|
91
|
+
return [(0, cssr_1.cB)('base-selection-input', `
|
|
92
|
+
color: var(--u-text-color${state}-secondary);
|
|
93
|
+
`), (0, cssr_1.cB)('base-selection-input-tag', [(0, cssr_1.cE)('input', `
|
|
94
|
+
color: var(--u-text-color${state}-secondary);
|
|
95
|
+
`)]), (0, cssr_1.cB)('base-selection-label', `
|
|
96
|
+
background-color: var(--u-color${state}-secondary);
|
|
97
|
+
color: var(--u-text-color${state}-secondary);
|
|
98
|
+
`, [(0, cssr_1.cE)('render-label', `
|
|
99
|
+
color: var(--u-text-color${state}-secondary);
|
|
100
|
+
`)]), (0, cssr_1.cB)('base-selection-tags', `
|
|
101
|
+
background-color: var(--u-color${state}-secondary);
|
|
102
|
+
color: var(--u-text-color${state}-secondary);
|
|
103
|
+
`), (0, cssr_1.cE)('border,state-border', `
|
|
104
|
+
border: var(--u-border${state}-secondary);
|
|
105
|
+
`), (0, cssr_1.cB)('base-clear', [(0, cssr_1.cE)('clear', `
|
|
106
|
+
color: var(--u-clear-color${state}-secondary);
|
|
107
|
+
`)]), (0, cssr_1.cB)('base-suffix', [(0, cssr_1.cE)('arrow', `
|
|
108
|
+
color: var(--u-arrow-color${state}-secondary);
|
|
109
|
+
`)])];
|
|
110
|
+
}
|
|
40
111
|
exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('base-selection', `
|
|
41
112
|
position: relative;
|
|
42
113
|
z-index: auto;
|
|
@@ -47,11 +118,11 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('base-selection', `
|
|
|
47
118
|
vertical-align: bottom;
|
|
48
119
|
border-radius: var(--u-border-radius);
|
|
49
120
|
min-height: var(--u-height);
|
|
50
|
-
line-height:
|
|
121
|
+
line-height: var(--u-line-height);
|
|
51
122
|
font-size: var(--u-font-size);
|
|
52
|
-
font-weight: var(--u-font-weight
|
|
53
|
-
`, [(0, cssr_1.cB)('base-clear', [(0, cssr_1.cE)('
|
|
54
|
-
|
|
123
|
+
font-weight: var(--u-font-weight);
|
|
124
|
+
`, [(0, cssr_1.cB)('base-clear', [(0, cssr_1.cE)('placeholder', `
|
|
125
|
+
font-size: var(--u-arrow-size);
|
|
55
126
|
`)]), (0, cssr_1.cB)('base-loading', `
|
|
56
127
|
color: var(--u-loading-color);
|
|
57
128
|
`), (0, cssr_1.cB)('base-selection-tags', 'min-height: var(--u-height);'), (0, cssr_1.cE)('border, state-border', `
|
|
@@ -69,14 +140,25 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('base-selection', `
|
|
|
69
140
|
`), (0, cssr_1.cE)('state-border', `
|
|
70
141
|
z-index: 1;
|
|
71
142
|
border-color: #0000;
|
|
72
|
-
`), (0, cssr_1.
|
|
73
|
-
|
|
143
|
+
`), (0, cssr_1.cE)('suffix-wrapper', `
|
|
144
|
+
display: flex;
|
|
145
|
+
align-items: center;
|
|
74
146
|
position: absolute;
|
|
75
147
|
top: 50%;
|
|
76
148
|
transform: translateY(-50%);
|
|
77
|
-
right:
|
|
78
|
-
`, [(0, cssr_1.
|
|
149
|
+
right: var(--u-padding-right);
|
|
150
|
+
`, [(0, cssr_1.cB)('base-clear', `
|
|
151
|
+
font-size: var(--u-clear-size);
|
|
152
|
+
`)]), (0, cssr_1.cE)('filter-counter', `
|
|
153
|
+
border-left: 1px solid var(--u-filter-counter-separator-color);
|
|
154
|
+
width: 28px;
|
|
155
|
+
margin-left: 6px;
|
|
156
|
+
padding-left: 2px;
|
|
157
|
+
text-align: center;
|
|
158
|
+
color: var(--u-filter-counter-text-color);
|
|
159
|
+
`), (0, cssr_1.cB)('base-suffix', `
|
|
79
160
|
font-size: var(--u-arrow-size);
|
|
161
|
+
`, [(0, cssr_1.cE)('arrow', `
|
|
80
162
|
color: var(--u-arrow-color);
|
|
81
163
|
transition: color .3s var(--u-bezier);
|
|
82
164
|
`)]), (0, cssr_1.cB)('base-selection-overlay', `
|
|
@@ -89,7 +171,7 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('base-selection', `
|
|
|
89
171
|
right: 0;
|
|
90
172
|
bottom: 0;
|
|
91
173
|
left: 0;
|
|
92
|
-
padding: var(--u-padding
|
|
174
|
+
padding: var(--u-padding);
|
|
93
175
|
transition: color .3s var(--u-bezier);
|
|
94
176
|
`, [(0, cssr_1.cE)('wrapper', `
|
|
95
177
|
flex-basis: 0;
|
|
@@ -109,7 +191,9 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('base-selection', `
|
|
|
109
191
|
position: relative;
|
|
110
192
|
z-index: auto;
|
|
111
193
|
display: flex;
|
|
112
|
-
padding: var(--u-padding
|
|
194
|
+
padding: var(--u-padding);
|
|
195
|
+
padding-top: 4px;
|
|
196
|
+
padding-bottom: 4px;
|
|
113
197
|
flex-wrap: wrap;
|
|
114
198
|
align-items: center;
|
|
115
199
|
width: 100%;
|
|
@@ -145,7 +229,7 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('base-selection', `
|
|
|
145
229
|
box-sizing: border-box;
|
|
146
230
|
border:none;
|
|
147
231
|
width: 100%;
|
|
148
|
-
padding: var(--u-padding
|
|
232
|
+
padding: var(--u-padding);
|
|
149
233
|
background-color: #0000;
|
|
150
234
|
color: var(--u-text-color);
|
|
151
235
|
transition: color .3s var(--u-bezier);
|
|
@@ -156,7 +240,9 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('base-selection', `
|
|
|
156
240
|
white-space: nowrap;
|
|
157
241
|
`)]), (0, cssr_1.cE)('render-label', `
|
|
158
242
|
color: var(--u-text-color);
|
|
159
|
-
`)]), (0, cssr_1.cNotM)('disabled', [(0, cssr_1.
|
|
243
|
+
`)]), (0, cssr_1.cNotM)('disabled', [(0, cssr_1.cM)('secondary', [(0, cssr_1.cB)('base-selection-placeholder', `
|
|
244
|
+
color: var(--u-text-color);
|
|
245
|
+
`)]), (0, cssr_1.c)('&:hover', [(0, cssr_1.cE)('state-border', `
|
|
160
246
|
box-shadow: var(--u-box-shadow-hover);
|
|
161
247
|
border: var(--u-border-hover);
|
|
162
248
|
`), (0, cssr_1.cB)('base-suffix', [(0, cssr_1.cE)('arrow', `
|
|
@@ -173,6 +259,9 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('base-selection', `
|
|
|
173
259
|
color: var(--u-arrow-color-hover);
|
|
174
260
|
`)]), (0, cssr_1.cB)('base-selection-label', 'background-color: var(--u-color-active);'), (0, cssr_1.cB)('base-selection-tags', 'background-color: var(--u-color-active);')])]), (0, cssr_1.cM)('skeleton', 'cursor: not-allowed;'), (0, cssr_1.cM)('disabled', 'cursor: not-allowed;', [(0, cssr_1.cE)('border', `
|
|
175
261
|
border: var(--u-border-disabled);
|
|
262
|
+
`), (0, cssr_1.cE)('filter-counter', `
|
|
263
|
+
color: var(--u-filter-counter-text-color-disabled);
|
|
264
|
+
border-color: var(--u-filter-counter-separator-color-disabled);
|
|
176
265
|
`), (0, cssr_1.cB)('base-suffix', [(0, cssr_1.cE)('arrow', `
|
|
177
266
|
color: var(--u-arrow-color-disabled);
|
|
178
267
|
`)]), (0, cssr_1.cB)('base-selection-label', `
|
|
@@ -187,19 +276,17 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('base-selection', `
|
|
|
187
276
|
max-width: 100%;
|
|
188
277
|
display: inline-flex;
|
|
189
278
|
padding: 2px 8px 2px 0;
|
|
190
|
-
|
|
279
|
+
`), (0, cssr_1.cB)('base-selection-tags', `
|
|
191
280
|
cursor: not-allowed;
|
|
192
281
|
background-color: var(--u-color-disabled);
|
|
193
282
|
`), (0, cssr_1.cB)('base-selection-placeholder', `
|
|
194
283
|
cursor: not-allowed;
|
|
195
284
|
color: var(--u-placeholder-color-disabled);
|
|
196
|
-
`)]), (0, cssr_1.cB)('base-selection-input-tag', `
|
|
197
|
-
height: calc(var(--u-height) -
|
|
198
|
-
line-height: calc(var(--u-height) - 6px);
|
|
285
|
+
`), (0, cssr_1.cM)('secondary-selected', [generateSecondaryStates('-disabled')])]), (0, cssr_1.cB)('base-selection-input-tag', `
|
|
286
|
+
line-height: calc(var(--u-height) - 12px);
|
|
199
287
|
outline: none;
|
|
200
288
|
display: none;
|
|
201
289
|
position: relative;
|
|
202
|
-
margin-bottom: 3px;
|
|
203
290
|
max-width: 100%;
|
|
204
291
|
vertical-align: bottom;
|
|
205
292
|
`, [(0, cssr_1.cE)('input', `
|
|
@@ -230,20 +317,24 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('base-selection', `
|
|
|
230
317
|
max-width: 100%;
|
|
231
318
|
display: inline-flex;
|
|
232
319
|
padding: 2px 8px 2px 0;
|
|
233
|
-
`, [(0, cssr_1.cB)('tag', 'background-color: var(--u-color);')]),
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
320
|
+
`, [(0, cssr_1.cB)('tag', 'background-color: var(--u-color);')]), (0, cssr_1.cM)('secondary-selected', [generateSecondaryStates(''), (0, cssr_1.cB)('base-selection-input', `
|
|
321
|
+
caret-color: var(--u-caret-color-secondary);
|
|
322
|
+
`), (0, cssr_1.cB)('base-selection-tags', `
|
|
323
|
+
padding-right: calc(var(--u-padding-right) + var(--u-arrow-size) + 37px + var(--u-clear-size));
|
|
324
|
+
`), (0, cssr_1.cNotM)('disabled', [(0, cssr_1.c)('&:hover', [generateSecondaryStates('-hover'), (0, cssr_1.cB)('base-clear', '--u-clear-color-hover: var(--u-clear-color-hover-secondary)')]), (0, cssr_1.cM)('focus', [generateSecondaryStates('-focus')]), (0, cssr_1.cM)('active', [generateSecondaryStates('-active')])])]), ['warning', 'error'].map(status => (0, cssr_1.cM)(`${status}-status`, [(0, cssr_1.cE)('state-border', `border: var(--u-border-${status});`), (0, cssr_1.cNotM)('secondary-selected', [(0, cssr_1.cNotM)('disabled', [(0, cssr_1.cM)('active', [(0, cssr_1.cB)('base-selection-label', `background-color: var(--u-color-active-${status});`), (0, cssr_1.cB)('base-selection-tags', `background-color: var(--u-color-active-${status});`)])])]), (0, cssr_1.cNotM)('disabled', [(0, cssr_1.cM)('active', [(0, cssr_1.cE)('state-border', `
|
|
237
325
|
box-shadow: var(--u-box-shadow-active-${status});
|
|
238
326
|
border: var(--u-border-active-${status});
|
|
239
|
-
`)
|
|
327
|
+
`)]), (0, cssr_1.cM)('focus', [(0, cssr_1.cE)('state-border', `
|
|
240
328
|
box-shadow: var(--u-box-shadow-focus-${status});
|
|
241
329
|
border: var(--u-border-focus-${status});
|
|
330
|
+
`)]), (0, cssr_1.c)('&:hover', [(0, cssr_1.cE)('state-border', `
|
|
331
|
+
box-shadow: var(--u-box-shadow-hover-${status});
|
|
332
|
+
border: var(--u-border-hover-${status});
|
|
242
333
|
`)])])])), (0, cssr_1.cE)('loading', null, [(0, cssr_1.cM)('skeleton', {
|
|
243
|
-
width:
|
|
244
|
-
height:
|
|
245
|
-
left:
|
|
246
|
-
top:
|
|
334
|
+
width: 'calc(100% + 2px)',
|
|
335
|
+
height: 'calc(100% + 2px)',
|
|
336
|
+
left: '-1px',
|
|
337
|
+
top: '-1px',
|
|
247
338
|
position: 'absolute',
|
|
248
339
|
zIndex: 2,
|
|
249
340
|
borderRadius: 'var(--u-border-radius)',
|
|
@@ -258,10 +349,7 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('base-selection', `
|
|
|
258
349
|
display: inline-flex;
|
|
259
350
|
padding: 2px 8px 2px 0;
|
|
260
351
|
`, [(0, cssr_1.c)('&:last-child', 'padding-right: 0;'), (0, cssr_1.cB)('tag', `
|
|
261
|
-
font-size: 14px;
|
|
262
352
|
max-width: 100%;
|
|
263
|
-
background-color: var(--u-color-disabled);
|
|
264
|
-
border-radius: calc(var(--u-height) / 2);
|
|
265
353
|
`, [(0, cssr_1.cE)('content', `
|
|
266
354
|
line-height: 20px;
|
|
267
355
|
font-weight: 500;
|
|
@@ -1,41 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const seemly_1 = require("seemly");
|
|
7
3
|
const common_1 = require("../../../_styles/common");
|
|
8
4
|
const styles_1 = require("../../../popover/styles");
|
|
9
|
-
const
|
|
5
|
+
const light_1 = require("./light");
|
|
10
6
|
const internalSelectionDark = {
|
|
11
7
|
name: 'InternalSelection',
|
|
12
8
|
common: common_1.commonDark,
|
|
13
9
|
peers: {
|
|
14
10
|
Popover: styles_1.popoverDark
|
|
15
11
|
},
|
|
16
|
-
self
|
|
17
|
-
const { borderRadius, textColor2, inputColor, inputColorDisabled, primaryColor, primaryColorHover, warningColor, warningColorHover, errorColor, errorColorHover, iconColor, iconColorDisabled, clearColor, clearColorHover, clearColorPressed, placeholderColor, placeholderColorDisabled, fontSizeTiny, fontSizeSmall, fontSizeLarge, buttonColor2Hover } = vars;
|
|
18
|
-
return Object.assign(Object.assign({}, _common_1.default), { fontSizeTiny,
|
|
19
|
-
fontSizeSmall, fontSizeMedium: '16px', fontSizeLarge, heightTiny: '32px', heightSmall: '40px', heightMedium: '48px', heightLarge: '56px', borderRadius,
|
|
20
|
-
// default
|
|
21
|
-
textColor: textColor2, textColorDisabled: '#808080', placeholderColor,
|
|
22
|
-
placeholderColorDisabled, color: inputColor, colorDisabled: inputColorDisabled, colorActive: (0, seemly_1.changeColor)(primaryColor, { alpha: 0.1 }), border: `2px solid ${buttonColor2Hover}`, borderHover: `2px solid ${primaryColorHover}`, borderActive: `2px solid ${primaryColor}`, borderFocus: `2px solid ${primaryColorHover}`, borderDisabled: `1px solid ${buttonColor2Hover}`, boxShadowHover: 'none', boxShadowActive: `0 0 0 0 ${(0, seemly_1.changeColor)(primaryColor, {
|
|
23
|
-
alpha: 0.2
|
|
24
|
-
})}`, boxShadowFocus: `0 0 0 0 ${(0, seemly_1.changeColor)(primaryColor, { alpha: 0.2 })}`, caretColor: primaryColor, arrowColor: iconColor, arrowColorHover: primaryColor, arrowColorDisabled: iconColorDisabled, loadingColor: iconColor,
|
|
25
|
-
// warning
|
|
26
|
-
borderWarning: `2px solid ${warningColor}`, borderHoverWarning: `2px solid ${warningColorHover}`, borderActiveWarning: `2px solid ${warningColor}`, borderFocusWarning: `2px solid ${warningColorHover}`, boxShadowHoverWarning: 'none', boxShadowActiveWarning: `0 0 0 0 ${(0, seemly_1.changeColor)(warningColor, {
|
|
27
|
-
alpha: 0.2
|
|
28
|
-
})}`, boxShadowFocusWarning: `0 0 0 0 ${(0, seemly_1.changeColor)(warningColor, {
|
|
29
|
-
alpha: 0.2
|
|
30
|
-
})}`, colorActiveWarning: inputColor, caretColorWarning: warningColor,
|
|
31
|
-
// error
|
|
32
|
-
borderError: `2px solid ${errorColor}`, borderHoverError: `2px solid ${errorColorHover}`, borderActiveError: `2px solid ${errorColor}`, borderFocusError: `2px solid ${errorColorHover}`, boxShadowHoverError: 'none', boxShadowActiveError: `0 0 0 0 ${(0, seemly_1.changeColor)(errorColor, {
|
|
33
|
-
alpha: 0.2
|
|
34
|
-
})}`, boxShadowFocusError: `0 0 0 0 ${(0, seemly_1.changeColor)(errorColor, {
|
|
35
|
-
alpha: 0.2
|
|
36
|
-
})}`, colorActiveError: inputColor, caretColorError: errorColor, clearColor,
|
|
37
|
-
clearColorHover,
|
|
38
|
-
clearColorPressed });
|
|
39
|
-
}
|
|
12
|
+
self: light_1.self
|
|
40
13
|
};
|
|
41
14
|
exports.default = internalSelectionDark;
|