@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
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useCheckbox = exports.checkboxBaseProps = exports.checkboxGroupInjectionKey = void 0;
|
|
4
|
+
const vue_1 = require("vue");
|
|
5
|
+
const _utils_1 = require("../../../_utils");
|
|
6
|
+
const _mixins_1 = require("../../../_mixins");
|
|
7
|
+
const vooks_1 = require("vooks");
|
|
8
|
+
exports.checkboxGroupInjectionKey = (0, _utils_1.createInjectionKey)('u-checkbox-group');
|
|
9
|
+
exports.checkboxBaseProps = {
|
|
10
|
+
size: String,
|
|
11
|
+
checked: {
|
|
12
|
+
type: [Boolean, String, Number],
|
|
13
|
+
default: undefined
|
|
14
|
+
},
|
|
15
|
+
defaultChecked: {
|
|
16
|
+
type: [Boolean, String, Number],
|
|
17
|
+
default: false
|
|
18
|
+
},
|
|
19
|
+
value: [String, Number],
|
|
20
|
+
disabled: {
|
|
21
|
+
type: Boolean,
|
|
22
|
+
default: undefined
|
|
23
|
+
},
|
|
24
|
+
checkedValue: {
|
|
25
|
+
type: [Boolean, String, Number],
|
|
26
|
+
default: true
|
|
27
|
+
},
|
|
28
|
+
uncheckedValue: {
|
|
29
|
+
type: [Boolean, String, Number],
|
|
30
|
+
default: false
|
|
31
|
+
},
|
|
32
|
+
'onUpdate:checked': [Function, Array],
|
|
33
|
+
onUpdateChecked: [Function, Array],
|
|
34
|
+
// deprecated
|
|
35
|
+
onChange: [Function, Array]
|
|
36
|
+
};
|
|
37
|
+
const useCheckbox = (props) => {
|
|
38
|
+
const selfRef = (0, vue_1.ref)(null);
|
|
39
|
+
const formItem = (0, _mixins_1.useFormItem)(props, {
|
|
40
|
+
mergedSize(UFormItem) {
|
|
41
|
+
const { size } = props;
|
|
42
|
+
if (size !== undefined)
|
|
43
|
+
return size;
|
|
44
|
+
if (UCheckboxGroup) {
|
|
45
|
+
const { value: mergedSize } = UCheckboxGroup.mergedSizeRef;
|
|
46
|
+
if (mergedSize !== undefined) {
|
|
47
|
+
return mergedSize;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
if (UFormItem) {
|
|
51
|
+
const { mergedSize } = UFormItem;
|
|
52
|
+
if (mergedSize !== undefined)
|
|
53
|
+
return mergedSize.value;
|
|
54
|
+
}
|
|
55
|
+
return 'medium';
|
|
56
|
+
},
|
|
57
|
+
mergedDisabled(UFormItem) {
|
|
58
|
+
const { disabled } = props;
|
|
59
|
+
if (disabled !== undefined)
|
|
60
|
+
return disabled;
|
|
61
|
+
if (UCheckboxGroup) {
|
|
62
|
+
if (UCheckboxGroup.disabledRef.value)
|
|
63
|
+
return true;
|
|
64
|
+
const { maxRef: { value: max }, checkedCountRef } = UCheckboxGroup;
|
|
65
|
+
if (max !== undefined &&
|
|
66
|
+
checkedCountRef.value >= max &&
|
|
67
|
+
!renderedCheckedRef.value) {
|
|
68
|
+
return true;
|
|
69
|
+
}
|
|
70
|
+
const { minRef: { value: min } } = UCheckboxGroup;
|
|
71
|
+
if (min !== undefined &&
|
|
72
|
+
checkedCountRef.value <= min &&
|
|
73
|
+
renderedCheckedRef.value) {
|
|
74
|
+
return true;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
if (UFormItem) {
|
|
78
|
+
return UFormItem.disabled.value;
|
|
79
|
+
}
|
|
80
|
+
return false;
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
const { mergedDisabledRef, mergedSizeRef } = formItem;
|
|
84
|
+
const UCheckboxGroup = (0, vue_1.inject)(exports.checkboxGroupInjectionKey, null);
|
|
85
|
+
const uncontrolledCheckedRef = (0, vue_1.ref)(props.defaultChecked);
|
|
86
|
+
const controlledCheckedRef = (0, vue_1.toRef)(props, 'checked');
|
|
87
|
+
const mergedCheckedRef = (0, vooks_1.useMergedState)(controlledCheckedRef, uncontrolledCheckedRef);
|
|
88
|
+
const renderedCheckedRef = (0, vooks_1.useMemo)(() => {
|
|
89
|
+
if (UCheckboxGroup) {
|
|
90
|
+
const groupValueSet = UCheckboxGroup.valueSetRef.value;
|
|
91
|
+
if (groupValueSet && props.value !== undefined) {
|
|
92
|
+
return groupValueSet.has(props.value);
|
|
93
|
+
}
|
|
94
|
+
return false;
|
|
95
|
+
}
|
|
96
|
+
else {
|
|
97
|
+
return mergedCheckedRef.value === props.checkedValue;
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
function toggle(e) {
|
|
101
|
+
if (UCheckboxGroup && props.value !== undefined) {
|
|
102
|
+
UCheckboxGroup.toggleCheckbox(!renderedCheckedRef.value, props.value);
|
|
103
|
+
}
|
|
104
|
+
else {
|
|
105
|
+
const { onChange, 'onUpdate:checked': _onUpdateCheck, onUpdateChecked } = props;
|
|
106
|
+
const { nTriggerFormInput, nTriggerFormChange } = formItem;
|
|
107
|
+
const nextChecked = renderedCheckedRef.value
|
|
108
|
+
? props.uncheckedValue
|
|
109
|
+
: props.checkedValue;
|
|
110
|
+
if (_onUpdateCheck) {
|
|
111
|
+
(0, _utils_1.call)(_onUpdateCheck, nextChecked, e);
|
|
112
|
+
}
|
|
113
|
+
if (onUpdateChecked) {
|
|
114
|
+
(0, _utils_1.call)(onUpdateChecked, nextChecked, e);
|
|
115
|
+
}
|
|
116
|
+
if (onChange)
|
|
117
|
+
(0, _utils_1.call)(onChange, nextChecked, e); // deprecated
|
|
118
|
+
nTriggerFormInput();
|
|
119
|
+
nTriggerFormChange();
|
|
120
|
+
uncontrolledCheckedRef.value = nextChecked;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
function handleClick(e) {
|
|
124
|
+
if (!mergedDisabledRef.value) {
|
|
125
|
+
toggle(e);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
function handleKeyUp(e) {
|
|
129
|
+
if (mergedDisabledRef.value)
|
|
130
|
+
return;
|
|
131
|
+
switch (e.key) {
|
|
132
|
+
case ' ':
|
|
133
|
+
case 'Enter':
|
|
134
|
+
toggle(e);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
function handleKeyDown(e) {
|
|
138
|
+
switch (e.key) {
|
|
139
|
+
case ' ':
|
|
140
|
+
e.preventDefault();
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
const exposedMethods = {
|
|
144
|
+
focus: () => {
|
|
145
|
+
var _a;
|
|
146
|
+
(_a = selfRef.value) === null || _a === void 0 ? void 0 : _a.focus();
|
|
147
|
+
},
|
|
148
|
+
blur: () => {
|
|
149
|
+
var _a;
|
|
150
|
+
(_a = selfRef.value) === null || _a === void 0 ? void 0 : _a.blur();
|
|
151
|
+
}
|
|
152
|
+
};
|
|
153
|
+
return Object.assign(formItem, exposedMethods, {
|
|
154
|
+
selfRef,
|
|
155
|
+
mergedSize: mergedSizeRef,
|
|
156
|
+
mergedDisabled: mergedDisabledRef,
|
|
157
|
+
renderedChecked: renderedCheckedRef,
|
|
158
|
+
handleClick,
|
|
159
|
+
handleKeyUp,
|
|
160
|
+
handleKeyDown
|
|
161
|
+
});
|
|
162
|
+
};
|
|
163
|
+
exports.useCheckbox = useCheckbox;
|
|
@@ -44,6 +44,8 @@ exports.default = (0, cssr_1.cB)('base-close', `
|
|
|
44
44
|
color: var(--u-close-icon-color-hover);
|
|
45
45
|
`), (0, cssr_1.c)('&:hover::before', `
|
|
46
46
|
background-color: var(--u-close-color-hover);
|
|
47
|
+
`), (0, cssr_1.c)('&:focus', `
|
|
48
|
+
color: var(--u-close-icon-color-hover);
|
|
47
49
|
`), (0, cssr_1.c)('&:focus::before', `
|
|
48
50
|
background-color: var(--u-close-color-hover);
|
|
49
51
|
`), (0, cssr_1.c)('&:active', `
|
|
@@ -4,7 +4,7 @@ const vue_1 = require("vue");
|
|
|
4
4
|
exports.default = (0, vue_1.defineComponent)({
|
|
5
5
|
name: 'ChevronDown',
|
|
6
6
|
render() {
|
|
7
|
-
return ((0, vue_1.h)("svg", { viewBox: "0 0
|
|
8
|
-
(0, vue_1.h)("path", { d: "
|
|
7
|
+
return ((0, vue_1.h)("svg", { viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
8
|
+
(0, vue_1.h)("path", { d: "M4 6L8 10L12 6", stroke: "currentColor", "stroke-width": "1.4", "stroke-linecap": "round", "stroke-linejoin": "round" })));
|
|
9
9
|
}
|
|
10
10
|
});
|
|
@@ -5,6 +5,6 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
5
5
|
name: 'ChevronLeft',
|
|
6
6
|
render() {
|
|
7
7
|
return ((0, vue_1.h)("svg", { viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
8
|
-
(0, vue_1.h)("path", { d: "M10
|
|
8
|
+
(0, vue_1.h)("path", { d: "M10 12L6 8L10 4", stroke: "currentColor", "stroke-width": "1.4", "stroke-linecap": "round", "stroke-linejoin": "round" })));
|
|
9
9
|
}
|
|
10
10
|
});
|
|
@@ -5,6 +5,6 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
5
5
|
name: 'ChevronRight',
|
|
6
6
|
render() {
|
|
7
7
|
return ((0, vue_1.h)("svg", { viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
8
|
-
(0, vue_1.h)("path", { d: "
|
|
8
|
+
(0, vue_1.h)("path", { d: "M6 12L10 8L6 4", stroke: "currentColor", "stroke-width": "1.4", "stroke-linecap": "round", "stroke-linejoin": "round" })));
|
|
9
9
|
}
|
|
10
10
|
});
|
|
@@ -2,13 +2,5 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const vue_1 = require("vue");
|
|
4
4
|
const replaceable_1 = require("./replaceable");
|
|
5
|
-
exports.default = (0, replaceable_1.replaceable)('clear',
|
|
6
|
-
|
|
7
|
-
// <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
8
|
-
// <g fill="currentColor" fill-rule="nonzero">
|
|
9
|
-
// <path d="M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z" />
|
|
10
|
-
// </g>
|
|
11
|
-
// </g>
|
|
12
|
-
// </svg>
|
|
13
|
-
(0, vue_1.h)("svg", { viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg" },
|
|
14
|
-
(0, vue_1.h)("path", { d: "M9.19998 0.806647C8.93998 0.546647 8.51998 0.546647 8.25998 0.806647L4.99998 4.05998L1.73998 0.79998C1.47998 0.53998 1.05998 0.53998 0.79998 0.79998C0.53998 1.05998 0.53998 1.47998 0.79998 1.73998L4.05998 4.99998L0.79998 8.25998C0.53998 8.51998 0.53998 8.93998 0.79998 9.19998C1.05998 9.45998 1.47998 9.45998 1.73998 9.19998L4.99998 5.93998L8.25998 9.19998C8.51998 9.45998 8.93998 9.45998 9.19998 9.19998C9.45998 8.93998 9.45998 8.51998 9.19998 8.25998L5.93998 4.99998L9.19998 1.73998C9.45331 1.48665 9.45331 1.05998 9.19998 0.806647Z", fill: "currentColor" })));
|
|
5
|
+
exports.default = (0, replaceable_1.replaceable)('clear', (0, vue_1.h)("svg", { viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
6
|
+
(0, vue_1.h)("path", { d: "M12 4L4 12M4 4L12 12", stroke: "currentColor", "stroke-width": "1.4", "stroke-linecap": "round", "stroke-linejoin": "round" })));
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const vue_1 = require("vue");
|
|
4
|
+
exports.default = (0, vue_1.defineComponent)({
|
|
5
|
+
name: 'ClearSmall',
|
|
6
|
+
render() {
|
|
7
|
+
return ((0, vue_1.h)("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
8
|
+
(0, vue_1.h)("path", { d: "M16 8L8 16M8 8L16 16", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" })));
|
|
9
|
+
}
|
|
10
|
+
});
|
|
@@ -2,7 +2,5 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const vue_1 = require("vue");
|
|
4
4
|
const replaceable_1 = require("./replaceable");
|
|
5
|
-
exports.default = (0, replaceable_1.replaceable)('close', (0, vue_1.h)("svg", { viewBox: "0 0
|
|
6
|
-
(0, vue_1.h)("
|
|
7
|
-
(0, vue_1.h)("g", { fill: "currentColor", "fill-rule": "nonzero" },
|
|
8
|
-
(0, vue_1.h)("path", { d: "M2.08859116,2.2156945 L2.14644661,2.14644661 C2.32001296,1.97288026 2.58943736,1.95359511 2.7843055,2.08859116 L2.85355339,2.14644661 L6,5.293 L9.14644661,2.14644661 C9.34170876,1.95118446 9.65829124,1.95118446 9.85355339,2.14644661 C10.0488155,2.34170876 10.0488155,2.65829124 9.85355339,2.85355339 L6.707,6 L9.85355339,9.14644661 C10.0271197,9.32001296 10.0464049,9.58943736 9.91140884,9.7843055 L9.85355339,9.85355339 C9.67998704,10.0271197 9.41056264,10.0464049 9.2156945,9.91140884 L9.14644661,9.85355339 L6,6.707 L2.85355339,9.85355339 C2.65829124,10.0488155 2.34170876,10.0488155 2.14644661,9.85355339 C1.95118446,9.65829124 1.95118446,9.34170876 2.14644661,9.14644661 L5.293,6 L2.14644661,2.85355339 C1.97288026,2.67998704 1.95359511,2.41056264 2.08859116,2.2156945 L2.14644661,2.14644661 L2.08859116,2.2156945 Z" })))));
|
|
5
|
+
exports.default = (0, replaceable_1.replaceable)('close', (0, vue_1.h)("svg", { viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": true },
|
|
6
|
+
(0, vue_1.h)("path", { d: "M12 4L4 12M4 4L12 12", stroke: "currentColor", "stroke-width": "1.4", "stroke-linecap": "round", "stroke-linejoin": "round" })));
|
|
@@ -2,7 +2,5 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const vue_1 = require("vue");
|
|
4
4
|
const replaceable_1 = require("./replaceable");
|
|
5
|
-
exports.default = (0, replaceable_1.replaceable)('error', (0, vue_1.h)("svg", { viewBox: "0 0
|
|
6
|
-
(0, vue_1.h)("
|
|
7
|
-
(0, vue_1.h)("g", { "fill-rule": "nonzero" },
|
|
8
|
-
(0, vue_1.h)("path", { d: "M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M17.8838835,16.1161165 L17.7823881,16.0249942 C17.3266086,15.6583353 16.6733914,15.6583353 16.2176119,16.0249942 L16.1161165,16.1161165 L16.0249942,16.2176119 C15.6583353,16.6733914 15.6583353,17.3266086 16.0249942,17.7823881 L16.1161165,17.8838835 L22.233,24 L16.1161165,30.1161165 L16.0249942,30.2176119 C15.6583353,30.6733914 15.6583353,31.3266086 16.0249942,31.7823881 L16.1161165,31.8838835 L16.2176119,31.9750058 C16.6733914,32.3416647 17.3266086,32.3416647 17.7823881,31.9750058 L17.8838835,31.8838835 L24,25.767 L30.1161165,31.8838835 L30.2176119,31.9750058 C30.6733914,32.3416647 31.3266086,32.3416647 31.7823881,31.9750058 L31.8838835,31.8838835 L31.9750058,31.7823881 C32.3416647,31.3266086 32.3416647,30.6733914 31.9750058,30.2176119 L31.8838835,30.1161165 L25.767,24 L31.8838835,17.8838835 L31.9750058,17.7823881 C32.3416647,17.3266086 32.3416647,16.6733914 31.9750058,16.2176119 L31.8838835,16.1161165 L31.7823881,16.0249942 C31.3266086,15.6583353 30.6733914,15.6583353 30.2176119,16.0249942 L30.1161165,16.1161165 L24,22.233 L17.8838835,16.1161165 L17.7823881,16.0249942 L17.8838835,16.1161165 Z" })))));
|
|
5
|
+
exports.default = (0, replaceable_1.replaceable)('error', (0, vue_1.h)("svg", { viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
6
|
+
(0, vue_1.h)("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M8.00008 0.666626C3.94999 0.666626 0.666748 3.94987 0.666748 7.99996C0.666748 12.05 3.94999 15.3333 8.00008 15.3333C12.0502 15.3333 15.3334 12.05 15.3334 7.99996C15.3334 3.94987 12.0502 0.666626 8.00008 0.666626ZM10.4715 5.52855C10.7318 5.7889 10.7318 6.21101 10.4715 6.47136L8.94289 7.99996L10.4715 9.52855C10.7318 9.7889 10.7318 10.211 10.4715 10.4714C10.2111 10.7317 9.78903 10.7317 9.52868 10.4714L8.00008 8.94277L6.47149 10.4714C6.21114 10.7317 5.78903 10.7317 5.52868 10.4714C5.26833 10.211 5.26833 9.7889 5.52868 9.52855L7.05727 7.99996L5.52868 6.47136C5.26833 6.21101 5.26833 5.7889 5.52868 5.52855C5.78903 5.26821 6.21114 5.26821 6.47149 5.52855L8.00008 7.05715L9.52868 5.52855C9.78903 5.26821 10.2111 5.26821 10.4715 5.52855Z", fill: "currentColor" })));
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const vue_1 = require("vue");
|
|
4
|
+
exports.default = (0, vue_1.defineComponent)({
|
|
5
|
+
name: 'InactiveIcon',
|
|
6
|
+
render() {
|
|
7
|
+
return ((0, vue_1.h)("svg", { viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
8
|
+
(0, vue_1.h)("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M7.99996 0.666626C3.94987 0.666626 0.666626 3.94987 0.666626 7.99996C0.666626 12.05 3.94987 15.3333 7.99996 15.3333C12.05 15.3333 15.3333 12.05 15.3333 7.99996C15.3333 3.94987 12.05 0.666626 7.99996 0.666626ZM5.33329 7.33329C4.9651 7.33329 4.66663 7.63177 4.66663 7.99996C4.66663 8.36815 4.9651 8.66663 5.33329 8.66663H10.6666C11.0348 8.66663 11.3333 8.36815 11.3333 7.99996C11.3333 7.63177 11.0348 7.33329 10.6666 7.33329H5.33329Z", fill: "currentColor" })));
|
|
9
|
+
}
|
|
10
|
+
});
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, () => import("vue").VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const vue_1 = require("vue");
|
|
4
|
+
const replaceable_1 = require("./replaceable");
|
|
5
|
+
exports.default = (0, replaceable_1.replaceable)('infoOutline', (0, vue_1.h)("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
6
|
+
(0, vue_1.h)("path", { d: "M12 16V12M12 8H12.01M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" })));
|
|
@@ -2,7 +2,5 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const vue_1 = require("vue");
|
|
4
4
|
const replaceable_1 = require("./replaceable");
|
|
5
|
-
exports.default = (0, replaceable_1.replaceable)('success', (0, vue_1.h)("svg", { viewBox: "0 0
|
|
6
|
-
(0, vue_1.h)("
|
|
7
|
-
(0, vue_1.h)("g", { "fill-rule": "nonzero" },
|
|
8
|
-
(0, vue_1.h)("path", { d: "M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M32.6338835,17.6161165 C32.1782718,17.1605048 31.4584514,17.1301307 30.9676119,17.5249942 L30.8661165,17.6161165 L20.75,27.732233 L17.1338835,24.1161165 C16.6457281,23.6279612 15.8542719,23.6279612 15.3661165,24.1161165 C14.9105048,24.5717282 14.8801307,25.2915486 15.2749942,25.7823881 L15.3661165,25.8838835 L19.8661165,30.3838835 C20.3217282,30.8394952 21.0415486,30.8698693 21.5323881,30.4750058 L21.6338835,30.3838835 L32.6338835,19.3838835 C33.1220388,18.8957281 33.1220388,18.1042719 32.6338835,17.6161165 Z" })))));
|
|
5
|
+
exports.default = (0, replaceable_1.replaceable)('success', (0, vue_1.h)("svg", { viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
6
|
+
(0, vue_1.h)("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M8.00008 0.666626C3.94999 0.666626 0.666748 3.94987 0.666748 7.99996C0.666748 12.05 3.94999 15.3333 8.00008 15.3333C12.0502 15.3333 15.3334 12.05 15.3334 7.99996C15.3334 3.94987 12.0502 0.666626 8.00008 0.666626ZM11.4715 6.47136C11.7318 6.21101 11.7318 5.7889 11.4715 5.52855C11.2111 5.26821 10.789 5.26821 10.5287 5.52855L7.00008 9.05715L5.47149 7.52855C5.21114 7.2682 4.78903 7.2682 4.52868 7.52855C4.26833 7.7889 4.26833 8.21101 4.52868 8.47136L6.52868 10.4714C6.78903 10.7317 7.21114 10.7317 7.47149 10.4714L11.4715 6.47136Z", fill: "currentColor" })));
|
|
@@ -2,7 +2,5 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const vue_1 = require("vue");
|
|
4
4
|
const replaceable_1 = require("./replaceable");
|
|
5
|
-
exports.default = (0, replaceable_1.replaceable)('warning', (0, vue_1.h)("svg", { viewBox: "0 0
|
|
6
|
-
(0, vue_1.h)("
|
|
7
|
-
(0, vue_1.h)("g", { "fill-rule": "nonzero" },
|
|
8
|
-
(0, vue_1.h)("path", { d: "M12,2 C17.523,2 22,6.478 22,12 C22,17.522 17.523,22 12,22 C6.477,22 2,17.522 2,12 C2,6.478 6.477,2 12,2 Z M12.0018002,15.0037242 C11.450254,15.0037242 11.0031376,15.4508407 11.0031376,16.0023869 C11.0031376,16.553933 11.450254,17.0010495 12.0018002,17.0010495 C12.5533463,17.0010495 13.0004628,16.553933 13.0004628,16.0023869 C13.0004628,15.4508407 12.5533463,15.0037242 12.0018002,15.0037242 Z M11.99964,7 C11.4868042,7.00018474 11.0642719,7.38637706 11.0066858,7.8837365 L11,8.00036004 L11.0018003,13.0012393 L11.00857,13.117858 C11.0665141,13.6151758 11.4893244,14.0010638 12.0021602,14.0008793 C12.514996,14.0006946 12.9375283,13.6145023 12.9951144,13.1171428 L13.0018002,13.0005193 L13,7.99964009 L12.9932303,7.8830214 C12.9352861,7.38570354 12.5124758,6.99981552 11.99964,7 Z" })))));
|
|
5
|
+
exports.default = (0, replaceable_1.replaceable)('warning', (0, vue_1.h)("svg", { viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
6
|
+
(0, vue_1.h)("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M7.99996 0.666626C3.94987 0.666626 0.666626 3.94987 0.666626 7.99996C0.666626 12.05 3.94987 15.3333 7.99996 15.3333C12.05 15.3333 15.3333 12.05 15.3333 7.99996C15.3333 3.94987 12.05 0.666626 7.99996 0.666626ZM8.66663 5.33329C8.66663 4.9651 8.36815 4.66663 7.99996 4.66663C7.63177 4.66663 7.33329 4.9651 7.33329 5.33329V7.99996C7.33329 8.36815 7.63177 8.66663 7.99996 8.66663C8.36815 8.66663 8.66663 8.36815 8.66663 7.99996V5.33329ZM7.99996 9.99996C7.63177 9.99996 7.33329 10.2984 7.33329 10.6666C7.33329 11.0348 7.63177 11.3333 7.99996 11.3333H8.00663C8.37482 11.3333 8.67329 11.0348 8.67329 10.6666C8.67329 10.2984 8.37482 9.99996 8.00663 9.99996H7.99996Z", fill: "currentColor" })));
|
|
@@ -41,3 +41,6 @@ export { default as ZoomOutIcon } from './ZoomOut';
|
|
|
41
41
|
export { default as FileIcon } from './File';
|
|
42
42
|
export { default as PhotoIcon } from './Photo';
|
|
43
43
|
export { default as ResizeSmallIcon } from './ResizeSmall';
|
|
44
|
+
export { default as InfoOutlineIcon } from './InfoOutline';
|
|
45
|
+
export { default as InactiveIcon } from './Inactive';
|
|
46
|
+
export { default as ClearSmallIcon } from './ClearSmall';
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.ResizeSmallIcon = exports.PhotoIcon = exports.FileIcon = exports.ZoomOutIcon = exports.ZoomInIcon = exports.RotateCounterclockwiseIcon = exports.RotateClockwiseIcon = exports.ArrowBackIcon = exports.RetryIcon = exports.ToIcon = exports.ChevronDownFilledIcon = exports.ClearIcon = exports.ChevronDownIcon = exports.CancelIcon = exports.WarningIcon = exports.TimeIcon = exports.SwitcherIcon = exports.SuccessIcon = exports.SearchIcon = exports.RemoveIcon = exports.MoreIcon = exports.InfoIcon = exports.ForwardIcon = exports.FilterIcon = exports.FastForwardIcon = exports.FastBackwardIcon = exports.ErrorIcon = exports.EmptyIcon = exports.DownloadIcon = exports.TrashIcon = exports.EyeOffIcon = exports.EyeIcon = exports.CloseIcon = exports.ChevronDownOutline = exports.ChevronRightIcon = exports.ChevronLeftIcon = exports.CheckmarkIcon = exports.DateIcon = exports.BackwardIcon = exports.AttachIcon = exports.ArrowUpIcon = exports.ArrowDownIcon = exports.AddIcon = void 0;
|
|
6
|
+
exports.ClearSmallIcon = exports.InactiveIcon = exports.InfoOutlineIcon = exports.ResizeSmallIcon = exports.PhotoIcon = exports.FileIcon = exports.ZoomOutIcon = exports.ZoomInIcon = exports.RotateCounterclockwiseIcon = exports.RotateClockwiseIcon = exports.ArrowBackIcon = exports.RetryIcon = exports.ToIcon = exports.ChevronDownFilledIcon = exports.ClearIcon = exports.ChevronDownIcon = exports.CancelIcon = exports.WarningIcon = exports.TimeIcon = exports.SwitcherIcon = exports.SuccessIcon = exports.SearchIcon = exports.RemoveIcon = exports.MoreIcon = exports.InfoIcon = exports.ForwardIcon = exports.FilterIcon = exports.FastForwardIcon = exports.FastBackwardIcon = exports.ErrorIcon = exports.EmptyIcon = exports.DownloadIcon = exports.TrashIcon = exports.EyeOffIcon = exports.EyeIcon = exports.CloseIcon = exports.ChevronDownOutline = exports.ChevronRightIcon = exports.ChevronLeftIcon = exports.CheckmarkIcon = exports.DateIcon = exports.BackwardIcon = exports.AttachIcon = exports.ArrowUpIcon = exports.ArrowDownIcon = exports.AddIcon = void 0;
|
|
7
7
|
var Add_1 = require("./Add");
|
|
8
8
|
Object.defineProperty(exports, "AddIcon", { enumerable: true, get: function () { return __importDefault(Add_1).default; } });
|
|
9
9
|
var ArrowDown_1 = require("./ArrowDown");
|
|
@@ -90,3 +90,9 @@ var Photo_1 = require("./Photo");
|
|
|
90
90
|
Object.defineProperty(exports, "PhotoIcon", { enumerable: true, get: function () { return __importDefault(Photo_1).default; } });
|
|
91
91
|
var ResizeSmall_1 = require("./ResizeSmall");
|
|
92
92
|
Object.defineProperty(exports, "ResizeSmallIcon", { enumerable: true, get: function () { return __importDefault(ResizeSmall_1).default; } });
|
|
93
|
+
var InfoOutline_1 = require("./InfoOutline");
|
|
94
|
+
Object.defineProperty(exports, "InfoOutlineIcon", { enumerable: true, get: function () { return __importDefault(InfoOutline_1).default; } });
|
|
95
|
+
var Inactive_1 = require("./Inactive");
|
|
96
|
+
Object.defineProperty(exports, "InactiveIcon", { enumerable: true, get: function () { return __importDefault(Inactive_1).default; } });
|
|
97
|
+
var ClearSmall_1 = require("./ClearSmall");
|
|
98
|
+
Object.defineProperty(exports, "ClearSmallIcon", { enumerable: true, get: function () { return __importDefault(ClearSmall_1).default; } });
|
package/lib/_internal/index.d.ts
CHANGED
|
@@ -18,3 +18,7 @@ export { default as UBaseClear } from './clear';
|
|
|
18
18
|
export { default as UBaseSuffix } from './suffix';
|
|
19
19
|
export { UScrollbar, UxScrollbar } from './scrollbar';
|
|
20
20
|
export type { ScrollbarInst, ScrollbarProps } from './scrollbar';
|
|
21
|
+
export { checkboxGroupInjectionKey, checkboxBaseProps, useCheckbox } from './checkbox';
|
|
22
|
+
export type { CheckboxBaseProps, UseCheckbox, OnUpdateChecked, OnUpdateCheckedImpl, CheckboxInst } from './checkbox';
|
|
23
|
+
export { radioBaseProps, radioGroupInjectionKey, useRadio } from './radio';
|
|
24
|
+
export type { OnUpdateValue, OnUpdateValueImpl, RadioGroupInjection, UseRadio, RadioBaseProps } from './radio';
|
package/lib/_internal/index.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.UxScrollbar = exports.UScrollbar = exports.UBaseSuffix = exports.UBaseClear = exports.UBaseSlotMachine = exports.UInternalSelection = exports.UBaseMenuMask = exports.UBaseWave = exports.UInternalSelectMenu = exports.UBaseSkeleton = exports.UBaseLoading = exports.UBaseFocusDetector = exports.UBaseIcon = exports.UBaseClose = exports.UFadeInExpandTransition = exports.UIconSwitchTransition = void 0;
|
|
6
|
+
exports.useRadio = exports.radioGroupInjectionKey = exports.radioBaseProps = exports.useCheckbox = exports.checkboxBaseProps = exports.checkboxGroupInjectionKey = exports.UxScrollbar = exports.UScrollbar = exports.UBaseSuffix = exports.UBaseClear = exports.UBaseSlotMachine = exports.UInternalSelection = exports.UBaseMenuMask = exports.UBaseWave = exports.UInternalSelectMenu = exports.UBaseSkeleton = exports.UBaseLoading = exports.UBaseFocusDetector = exports.UBaseIcon = exports.UBaseClose = exports.UFadeInExpandTransition = exports.UIconSwitchTransition = void 0;
|
|
7
7
|
var icon_switch_transition_1 = require("./icon-switch-transition");
|
|
8
8
|
Object.defineProperty(exports, "UIconSwitchTransition", { enumerable: true, get: function () { return __importDefault(icon_switch_transition_1).default; } });
|
|
9
9
|
var fade_in_expand_transition_1 = require("./fade-in-expand-transition");
|
|
@@ -35,3 +35,11 @@ Object.defineProperty(exports, "UBaseSuffix", { enumerable: true, get: function
|
|
|
35
35
|
var scrollbar_1 = require("./scrollbar");
|
|
36
36
|
Object.defineProperty(exports, "UScrollbar", { enumerable: true, get: function () { return scrollbar_1.UScrollbar; } });
|
|
37
37
|
Object.defineProperty(exports, "UxScrollbar", { enumerable: true, get: function () { return scrollbar_1.UxScrollbar; } });
|
|
38
|
+
var checkbox_1 = require("./checkbox");
|
|
39
|
+
Object.defineProperty(exports, "checkboxGroupInjectionKey", { enumerable: true, get: function () { return checkbox_1.checkboxGroupInjectionKey; } });
|
|
40
|
+
Object.defineProperty(exports, "checkboxBaseProps", { enumerable: true, get: function () { return checkbox_1.checkboxBaseProps; } });
|
|
41
|
+
Object.defineProperty(exports, "useCheckbox", { enumerable: true, get: function () { return checkbox_1.useCheckbox; } });
|
|
42
|
+
var radio_1 = require("./radio");
|
|
43
|
+
Object.defineProperty(exports, "radioBaseProps", { enumerable: true, get: function () { return radio_1.radioBaseProps; } });
|
|
44
|
+
Object.defineProperty(exports, "radioGroupInjectionKey", { enumerable: true, get: function () { return radio_1.radioGroupInjectionKey; } });
|
|
45
|
+
Object.defineProperty(exports, "useRadio", { enumerable: true, get: function () { return radio_1.useRadio; } });
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./src/use-radio"), exports);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
export type OnUpdateValue = (value: string & number & boolean) => void;
|
|
3
|
+
export type OnUpdateValueImpl = (value: string | number | boolean) => void;
|
|
4
|
+
export type OnChangeImpl = (value: Event) => void;
|
|
5
|
+
export interface RadioGroupInjection {
|
|
6
|
+
mergedClsPrefixRef: Ref<string>;
|
|
7
|
+
nameRef: Ref<string | undefined>;
|
|
8
|
+
valueRef: Ref<string | number | boolean | null>;
|
|
9
|
+
mergedSizeRef: Ref<'small' | 'medium' | 'large'>;
|
|
10
|
+
disabledRef: Ref<boolean>;
|
|
11
|
+
doUpdateValue: OnUpdateValue;
|
|
12
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ExtractPropTypes, type PropType, type Ref, type ComputedRef } from 'vue';
|
|
2
|
-
import type { MaybeArray } from '
|
|
3
|
-
import {
|
|
2
|
+
import type { MaybeArray } from '../../../_utils';
|
|
3
|
+
import { OnChangeImpl, RadioGroupInjection } from './interface';
|
|
4
4
|
export declare const radioBaseProps: {
|
|
5
5
|
readonly name: StringConstructor;
|
|
6
6
|
readonly value: {
|
|
@@ -24,15 +24,8 @@ export declare const radioBaseProps: {
|
|
|
24
24
|
readonly type: PropType<boolean | undefined>;
|
|
25
25
|
readonly default: undefined;
|
|
26
26
|
};
|
|
27
|
+
readonly onChange: PropType<OnChangeImpl>;
|
|
27
28
|
};
|
|
28
|
-
export interface RadioGroupInjection {
|
|
29
|
-
mergedClsPrefixRef: Ref<string>;
|
|
30
|
-
nameRef: Ref<string | undefined>;
|
|
31
|
-
valueRef: Ref<string | number | boolean | null>;
|
|
32
|
-
mergedSizeRef: Ref<'small' | 'medium' | 'large'>;
|
|
33
|
-
disabledRef: Ref<boolean>;
|
|
34
|
-
doUpdateValue: OnUpdateValue;
|
|
35
|
-
}
|
|
36
29
|
export declare const radioGroupInjectionKey: import("vue").InjectionKey<RadioGroupInjection>;
|
|
37
30
|
export interface UseRadio {
|
|
38
31
|
mergedClsPrefix: Ref<string>;
|
|
@@ -44,10 +37,10 @@ export interface UseRadio {
|
|
|
44
37
|
renderSafeChecked: Ref<boolean>;
|
|
45
38
|
focus: Ref<boolean>;
|
|
46
39
|
mergedSize: ComputedRef<'small' | 'medium' | 'large'>;
|
|
47
|
-
handleRadioInputChange:
|
|
40
|
+
handleRadioInputChange: OnChangeImpl;
|
|
48
41
|
handleRadioInputBlur: () => void;
|
|
49
42
|
handleRadioInputFocus: () => void;
|
|
50
43
|
}
|
|
51
|
-
declare function
|
|
44
|
+
declare function useRadio(props: ExtractPropTypes<typeof radioBaseProps>): UseRadio;
|
|
52
45
|
export type RadioBaseProps = ExtractPropTypes<typeof radioBaseProps>;
|
|
53
|
-
export {
|
|
46
|
+
export { useRadio };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.useRadio = exports.radioGroupInjectionKey = exports.radioBaseProps = void 0;
|
|
4
4
|
const vue_1 = require("vue");
|
|
5
5
|
const vooks_1 = require("vooks");
|
|
6
|
-
const _mixins_1 = require("
|
|
7
|
-
const _utils_1 = require("
|
|
6
|
+
const _mixins_1 = require("../../../_mixins");
|
|
7
|
+
const _utils_1 = require("../../../_utils");
|
|
8
8
|
exports.radioBaseProps = {
|
|
9
9
|
name: String,
|
|
10
10
|
value: {
|
|
@@ -28,17 +28,11 @@ exports.radioBaseProps = {
|
|
|
28
28
|
checkedValue: {
|
|
29
29
|
type: Boolean,
|
|
30
30
|
default: undefined
|
|
31
|
-
}
|
|
31
|
+
},
|
|
32
|
+
onChange: [Function, Array]
|
|
32
33
|
};
|
|
33
34
|
exports.radioGroupInjectionKey = (0, _utils_1.createInjectionKey)('u-radio-group');
|
|
34
|
-
function
|
|
35
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
36
|
-
(0, vue_1.watchEffect)(() => {
|
|
37
|
-
if (props.checkedValue !== undefined) {
|
|
38
|
-
(0, _utils_1.warnOnce)('radio', '`checked-value` is deprecated, please use `checked` instead.');
|
|
39
|
-
}
|
|
40
|
-
});
|
|
41
|
-
}
|
|
35
|
+
function useRadio(props) {
|
|
42
36
|
const formItem = (0, _mixins_1.useFormItem)(props, {
|
|
43
37
|
mergedSize(UFormItem) {
|
|
44
38
|
const { size } = props;
|
|
@@ -85,33 +79,35 @@ function setup(props) {
|
|
|
85
79
|
return URadioGroup.nameRef.value;
|
|
86
80
|
});
|
|
87
81
|
const focusRef = (0, vue_1.ref)(false);
|
|
88
|
-
function doUpdateChecked() {
|
|
82
|
+
function doUpdateChecked(e) {
|
|
89
83
|
if (URadioGroup) {
|
|
90
84
|
const { doUpdateValue } = URadioGroup;
|
|
91
85
|
const { value } = props;
|
|
92
86
|
(0, _utils_1.call)(doUpdateValue, value);
|
|
93
87
|
}
|
|
94
88
|
else {
|
|
95
|
-
const { onUpdateChecked, 'onUpdate:checked': _onUpdateChecked } = props;
|
|
89
|
+
const { onUpdateChecked, 'onUpdate:checked': _onUpdateChecked, onChange } = props;
|
|
96
90
|
const { nTriggerFormInput, nTriggerFormChange } = formItem;
|
|
97
91
|
if (onUpdateChecked)
|
|
98
92
|
(0, _utils_1.call)(onUpdateChecked, true);
|
|
99
93
|
if (_onUpdateChecked)
|
|
100
94
|
(0, _utils_1.call)(_onUpdateChecked, true);
|
|
95
|
+
if (onChange)
|
|
96
|
+
onChange(e);
|
|
101
97
|
nTriggerFormInput();
|
|
102
98
|
nTriggerFormChange();
|
|
103
99
|
uncontrolledCheckedRef.value = true;
|
|
104
100
|
}
|
|
105
101
|
}
|
|
106
|
-
function toggle() {
|
|
102
|
+
function toggle(e) {
|
|
107
103
|
if (mergedDisabledRef.value)
|
|
108
104
|
return;
|
|
109
105
|
if (!renderSafeCheckedRef.value) {
|
|
110
|
-
doUpdateChecked();
|
|
106
|
+
doUpdateChecked(e);
|
|
111
107
|
}
|
|
112
108
|
}
|
|
113
|
-
function handleRadioInputChange() {
|
|
114
|
-
toggle();
|
|
109
|
+
function handleRadioInputChange(e) {
|
|
110
|
+
toggle(e);
|
|
115
111
|
}
|
|
116
112
|
function handleRadioInputBlur() {
|
|
117
113
|
focusRef.value = false;
|
|
@@ -136,4 +132,4 @@ function setup(props) {
|
|
|
136
132
|
handleRadioInputFocus
|
|
137
133
|
};
|
|
138
134
|
}
|
|
139
|
-
exports.
|
|
135
|
+
exports.useRadio = useRadio;
|