ods-component-lib 1.22.2 → 1.22.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/index5.js +2 -3
- package/dist/_virtual/index5.js.map +1 -1
- package/dist/_virtual/index6.js +3 -2
- package/dist/_virtual/index6.js.map +1 -1
- package/dist/components/antd/currencyInput/CurrencySelect.js +15 -14
- package/dist/components/antd/currencyInput/CurrencySelect.js.map +1 -1
- package/dist/node_modules/@ant-design/cssinjs/es/StyleContext.js +6 -6
- package/dist/node_modules/@ant-design/cssinjs/es/StyleContext.js.map +1 -1
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useCacheToken.js +20 -20
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useCacheToken.js.map +1 -1
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useGlobalCache.js.map +1 -1
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useStyleRegister.js +101 -98
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useStyleRegister.js.map +1 -1
- package/dist/node_modules/@ant-design/cssinjs/es/util/index.js +29 -27
- package/dist/node_modules/@ant-design/cssinjs/es/util/index.js.map +1 -1
- package/dist/node_modules/@rc-component/async-validator/es/index.js +20 -20
- package/dist/node_modules/@rc-component/async-validator/es/index.js.map +1 -1
- package/dist/node_modules/@rc-component/async-validator/es/messages.js +1 -0
- package/dist/node_modules/@rc-component/async-validator/es/messages.js.map +1 -1
- package/dist/node_modules/@rc-component/async-validator/es/rule/type.js +18 -8
- package/dist/node_modules/@rc-component/async-validator/es/rule/type.js.map +1 -1
- package/dist/node_modules/@rc-component/async-validator/es/util.js +1 -1
- package/dist/node_modules/@rc-component/async-validator/es/util.js.map +1 -1
- package/dist/node_modules/@rc-component/async-validator/es/validator/index.js +1 -0
- package/dist/node_modules/@rc-component/async-validator/es/validator/index.js.map +1 -1
- package/dist/node_modules/@rc-component/collapse/es/hooks/useItems.js +88 -68
- package/dist/node_modules/@rc-component/collapse/es/hooks/useItems.js.map +1 -1
- package/dist/node_modules/@rc-component/dialog/es/Dialog/Content/Panel.js +75 -96
- package/dist/node_modules/@rc-component/dialog/es/Dialog/Content/Panel.js.map +1 -1
- package/dist/node_modules/@rc-component/dialog/es/Dialog/Content/index.js +22 -20
- package/dist/node_modules/@rc-component/dialog/es/Dialog/Content/index.js.map +1 -1
- package/dist/node_modules/@rc-component/dialog/es/Dialog/index.js +92 -100
- package/dist/node_modules/@rc-component/dialog/es/Dialog/index.js.map +1 -1
- package/dist/node_modules/@rc-component/dialog/es/DialogWrap.js +40 -29
- package/dist/node_modules/@rc-component/dialog/es/DialogWrap.js.map +1 -1
- package/dist/node_modules/@rc-component/form/es/hooks/useForm.js +115 -100
- package/dist/node_modules/@rc-component/form/es/hooks/useForm.js.map +1 -1
- package/dist/node_modules/@rc-component/form/es/utils/NameMap.js +28 -22
- package/dist/node_modules/@rc-component/form/es/utils/NameMap.js.map +1 -1
- package/dist/node_modules/@rc-component/form/es/utils/messages.js +1 -0
- package/dist/node_modules/@rc-component/form/es/utils/messages.js.map +1 -1
- package/dist/node_modules/@rc-component/image/es/Preview/index.js +111 -105
- package/dist/node_modules/@rc-component/image/es/Preview/index.js.map +1 -1
- package/dist/node_modules/@rc-component/portal/es/useEscKeyDown.js +42 -22
- package/dist/node_modules/@rc-component/portal/es/useEscKeyDown.js.map +1 -1
- package/dist/node_modules/@rc-component/resize-observer/es/SingleObserver/index.js +18 -54
- package/dist/node_modules/@rc-component/resize-observer/es/SingleObserver/index.js.map +1 -1
- package/dist/node_modules/@rc-component/resize-observer/es/index.js.map +1 -1
- package/dist/node_modules/@rc-component/resize-observer/es/useResizeObserver.js +50 -0
- package/dist/node_modules/@rc-component/resize-observer/es/useResizeObserver.js.map +1 -0
- package/dist/node_modules/@rc-component/select/es/SelectInput/Content/MultipleContent.js +50 -50
- package/dist/node_modules/@rc-component/select/es/SelectInput/Content/MultipleContent.js.map +1 -1
- package/dist/node_modules/@rc-component/select/es/SelectInput/index.js +85 -80
- package/dist/node_modules/@rc-component/select/es/SelectInput/index.js.map +1 -1
- package/dist/node_modules/@rc-component/table/es/VirtualTable/BodyGrid.js +85 -80
- package/dist/node_modules/@rc-component/table/es/VirtualTable/BodyGrid.js.map +1 -1
- package/dist/node_modules/@rc-component/trigger/es/Popup/index.js +74 -72
- package/dist/node_modules/@rc-component/trigger/es/Popup/index.js.map +1 -1
- package/dist/node_modules/@rc-component/trigger/es/UniqueProvider/index.js +10 -9
- package/dist/node_modules/@rc-component/trigger/es/UniqueProvider/index.js.map +1 -1
- package/dist/node_modules/@rc-component/trigger/es/hooks/useAlign.js +27 -27
- package/dist/node_modules/@rc-component/trigger/es/hooks/useAlign.js.map +1 -1
- package/dist/node_modules/@rc-component/trigger/es/index.js +150 -140
- package/dist/node_modules/@rc-component/trigger/es/index.js.map +1 -1
- package/dist/node_modules/@rc-component/util/es/Dom/focus.js +65 -20
- package/dist/node_modules/@rc-component/util/es/Dom/focus.js.map +1 -1
- package/dist/node_modules/@rc-component/util/es/ref.js +1 -1
- package/dist/node_modules/antd/es/_util/wave/WaveEffect.js +53 -48
- package/dist/node_modules/antd/es/_util/wave/WaveEffect.js.map +1 -1
- package/dist/node_modules/antd/es/_util/wave/style.js +8 -7
- package/dist/node_modules/antd/es/_util/wave/style.js.map +1 -1
- package/dist/node_modules/antd/es/alert/Alert.js +133 -128
- package/dist/node_modules/antd/es/alert/Alert.js.map +1 -1
- package/dist/node_modules/antd/es/badge/Badge.js +29 -28
- package/dist/node_modules/antd/es/badge/Badge.js.map +1 -1
- package/dist/node_modules/antd/es/badge/style/index.js +1 -1
- package/dist/node_modules/antd/es/badge/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/button/buttonHelpers.js +47 -41
- package/dist/node_modules/antd/es/button/buttonHelpers.js.map +1 -1
- package/dist/node_modules/antd/es/button/style/variant.js +132 -132
- package/dist/node_modules/antd/es/button/style/variant.js.map +1 -1
- package/dist/node_modules/antd/es/calendar/generateCalendar.js +55 -57
- package/dist/node_modules/antd/es/calendar/generateCalendar.js.map +1 -1
- package/dist/node_modules/antd/es/calendar/style/index.js +18 -18
- package/dist/node_modules/antd/es/calendar/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/card/CardGrid.js.map +1 -1
- package/dist/node_modules/antd/es/card/style/index.js +15 -7
- package/dist/node_modules/antd/es/card/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/checkbox/Group.js +32 -30
- package/dist/node_modules/antd/es/checkbox/Group.js.map +1 -1
- package/dist/node_modules/antd/es/collapse/Collapse.js +61 -61
- package/dist/node_modules/antd/es/collapse/Collapse.js.map +1 -1
- package/dist/node_modules/antd/es/config-provider/index.js +76 -71
- package/dist/node_modules/antd/es/config-provider/index.js.map +1 -1
- package/dist/node_modules/antd/es/date-picker/generatePicker/generateRangePicker.js +29 -31
- package/dist/node_modules/antd/es/date-picker/generatePicker/generateRangePicker.js.map +1 -1
- package/dist/node_modules/antd/es/date-picker/generatePicker/generateSinglePicker.js +7 -9
- package/dist/node_modules/antd/es/date-picker/generatePicker/generateSinglePicker.js.map +1 -1
- package/dist/node_modules/antd/es/date-picker/generatePicker/{SuffixIcon.js → useSuffixIcon.js} +4 -4
- package/dist/node_modules/antd/es/date-picker/generatePicker/useSuffixIcon.js.map +1 -0
- package/dist/node_modules/antd/es/date-picker/style/panel.js +4 -4
- package/dist/node_modules/antd/es/date-picker/style/panel.js.map +1 -1
- package/dist/node_modules/antd/es/drawer/useFocusable.js +14 -0
- package/dist/node_modules/antd/es/drawer/useFocusable.js.map +1 -0
- package/dist/node_modules/antd/es/form/style/index.js +24 -24
- package/dist/node_modules/antd/es/form/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/grid/col.js +56 -54
- package/dist/node_modules/antd/es/grid/col.js.map +1 -1
- package/dist/node_modules/antd/es/grid/style/index.js +50 -50
- package/dist/node_modules/antd/es/grid/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/input/style/index.js +1 -0
- package/dist/node_modules/antd/es/input/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/input-number/index.js +91 -91
- package/dist/node_modules/antd/es/input-number/index.js.map +1 -1
- package/dist/node_modules/antd/es/input-number/style/index.js +80 -79
- package/dist/node_modules/antd/es/input-number/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/layout/style/sider.js +9 -9
- package/dist/node_modules/antd/es/layout/style/sider.js.map +1 -1
- package/dist/node_modules/antd/es/menu/MenuItem.js +6 -6
- package/dist/node_modules/antd/es/menu/MenuItem.js.map +1 -1
- package/dist/node_modules/antd/es/menu/SubMenu.js +8 -8
- package/dist/node_modules/antd/es/menu/SubMenu.js.map +1 -1
- package/dist/node_modules/antd/es/menu/style/horizontal.js +1 -1
- package/dist/node_modules/antd/es/menu/style/horizontal.js.map +1 -1
- package/dist/node_modules/antd/es/menu/style/index.js +58 -58
- package/dist/node_modules/antd/es/menu/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/menu/style/vertical.js +1 -1
- package/dist/node_modules/antd/es/menu/style/vertical.js.map +1 -1
- package/dist/node_modules/antd/es/modal/ConfirmDialog.js +117 -112
- package/dist/node_modules/antd/es/modal/ConfirmDialog.js.map +1 -1
- package/dist/node_modules/antd/es/modal/Modal.js +115 -109
- package/dist/node_modules/antd/es/modal/Modal.js.map +1 -1
- package/dist/node_modules/antd/es/modal/style/index.js +83 -80
- package/dist/node_modules/antd/es/modal/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/pagination/Pagination.js +85 -81
- package/dist/node_modules/antd/es/pagination/Pagination.js.map +1 -1
- package/dist/node_modules/antd/es/pagination/style/bordered.js +2 -2
- package/dist/node_modules/antd/es/pagination/style/bordered.js.map +1 -1
- package/dist/node_modules/antd/es/pagination/style/index.js +98 -132
- package/dist/node_modules/antd/es/pagination/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/popover/index.js +77 -82
- package/dist/node_modules/antd/es/popover/index.js.map +1 -1
- package/dist/node_modules/antd/es/popover/style/index.js +65 -63
- package/dist/node_modules/antd/es/popover/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/radio/context.js +3 -3
- package/dist/node_modules/antd/es/radio/context.js.map +1 -1
- package/dist/node_modules/antd/es/radio/group.js +31 -29
- package/dist/node_modules/antd/es/radio/group.js.map +1 -1
- package/dist/node_modules/antd/es/radio/style/index.js +1 -1
- package/dist/node_modules/antd/es/radio/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/select/style/dropdown.js +1 -1
- package/dist/node_modules/antd/es/select/style/dropdown.js.map +1 -1
- package/dist/node_modules/antd/es/select/style/select-input-multiple.js +71 -69
- package/dist/node_modules/antd/es/select/style/select-input-multiple.js.map +1 -1
- package/dist/node_modules/antd/es/select/style/select-input.js +104 -98
- package/dist/node_modules/antd/es/select/style/select-input.js.map +1 -1
- package/dist/node_modules/antd/es/space/Item.js +2 -2
- package/dist/node_modules/antd/es/space/Item.js.map +1 -1
- package/dist/node_modules/antd/es/space/index.js +4 -4
- package/dist/node_modules/antd/es/space/index.js.map +1 -1
- package/dist/node_modules/antd/es/space/style/addon.js +47 -46
- package/dist/node_modules/antd/es/space/style/addon.js.map +1 -1
- package/dist/node_modules/antd/es/steps/PanelArrow.js +2 -2
- package/dist/node_modules/antd/es/steps/PanelArrow.js.map +1 -1
- package/dist/node_modules/antd/es/steps/ProgressIcon.js +12 -10
- package/dist/node_modules/antd/es/steps/ProgressIcon.js.map +1 -1
- package/dist/node_modules/antd/es/steps/index.js +108 -106
- package/dist/node_modules/antd/es/steps/index.js.map +1 -1
- package/dist/node_modules/antd/es/steps/style/horizontal.js +13 -11
- package/dist/node_modules/antd/es/steps/style/horizontal.js.map +1 -1
- package/dist/node_modules/antd/es/steps/style/icon.js +23 -18
- package/dist/node_modules/antd/es/steps/style/icon.js.map +1 -1
- package/dist/node_modules/antd/es/steps/style/index.js +41 -41
- package/dist/node_modules/antd/es/steps/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/steps/style/inline.js +28 -23
- package/dist/node_modules/antd/es/steps/style/inline.js.map +1 -1
- package/dist/node_modules/antd/es/steps/style/label-placement.js +44 -39
- package/dist/node_modules/antd/es/steps/style/label-placement.js.map +1 -1
- package/dist/node_modules/antd/es/steps/style/nav.js +29 -27
- package/dist/node_modules/antd/es/steps/style/nav.js.map +1 -1
- package/dist/node_modules/antd/es/steps/style/panel.js +61 -56
- package/dist/node_modules/antd/es/steps/style/panel.js.map +1 -1
- package/dist/node_modules/antd/es/steps/style/progress-dot.js +28 -26
- package/dist/node_modules/antd/es/steps/style/progress-dot.js.map +1 -1
- package/dist/node_modules/antd/es/steps/style/progress.js +24 -57
- package/dist/node_modules/antd/es/steps/style/progress.js.map +1 -1
- package/dist/node_modules/antd/es/steps/style/rtl.js +10 -8
- package/dist/node_modules/antd/es/steps/style/rtl.js.map +1 -1
- package/dist/node_modules/antd/es/steps/style/small.js +21 -16
- package/dist/node_modules/antd/es/steps/style/small.js.map +1 -1
- package/dist/node_modules/antd/es/steps/style/status.js +187 -176
- package/dist/node_modules/antd/es/steps/style/status.js.map +1 -1
- package/dist/node_modules/antd/es/steps/style/util.js +18 -16
- package/dist/node_modules/antd/es/steps/style/util.js.map +1 -1
- package/dist/node_modules/antd/es/steps/style/vertical.js +21 -16
- package/dist/node_modules/antd/es/steps/style/vertical.js.map +1 -1
- package/dist/node_modules/antd/es/style/placementArrow.js +31 -29
- package/dist/node_modules/antd/es/style/placementArrow.js.map +1 -1
- package/dist/node_modules/antd/es/table/InternalTable.js +65 -62
- package/dist/node_modules/antd/es/table/InternalTable.js.map +1 -1
- package/dist/node_modules/antd/es/table/TableMeasureRowContext.js +6 -0
- package/dist/node_modules/antd/es/table/TableMeasureRowContext.js.map +1 -0
- package/dist/node_modules/antd/es/table/hooks/useFilter/FilterDropdown.js +145 -137
- package/dist/node_modules/antd/es/table/hooks/useFilter/FilterDropdown.js.map +1 -1
- package/dist/node_modules/antd/es/table/style/index.js +3 -3
- package/dist/node_modules/antd/es/table/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/table/style/radius.js +10 -0
- package/dist/node_modules/antd/es/table/style/radius.js.map +1 -1
- package/dist/node_modules/antd/es/table/style/virtual.js +5 -5
- package/dist/node_modules/antd/es/table/style/virtual.js.map +1 -1
- package/dist/node_modules/antd/es/theme/util/genStyleUtils.js +29 -32
- package/dist/node_modules/antd/es/theme/util/genStyleUtils.js.map +1 -1
- package/dist/node_modules/antd/es/timeline/Timeline.js +76 -74
- package/dist/node_modules/antd/es/timeline/Timeline.js.map +1 -1
- package/dist/node_modules/antd/es/timeline/style/horizontal.js +21 -18
- package/dist/node_modules/antd/es/timeline/style/horizontal.js.map +1 -1
- package/dist/node_modules/antd/es/timeline/style/index.js +85 -70
- package/dist/node_modules/antd/es/timeline/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/timeline/useItems.js +38 -37
- package/dist/node_modules/antd/es/timeline/useItems.js.map +1 -1
- package/dist/node_modules/antd/es/tooltip/PurePanel.js +27 -27
- package/dist/node_modules/antd/es/tooltip/PurePanel.js.map +1 -1
- package/dist/node_modules/antd/es/tooltip/UniqueProvider/MotionContent.js +17 -22
- package/dist/node_modules/antd/es/tooltip/UniqueProvider/MotionContent.js.map +1 -1
- package/dist/node_modules/antd/es/tooltip/UniqueProvider/index.js +27 -26
- package/dist/node_modules/antd/es/tooltip/UniqueProvider/index.js.map +1 -1
- package/dist/node_modules/antd/es/tooltip/index.js +50 -50
- package/dist/node_modules/antd/es/tooltip/index.js.map +1 -1
- package/dist/node_modules/antd/es/tooltip/style/index.js +55 -52
- package/dist/node_modules/antd/es/tooltip/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/tooltip/util.js +13 -12
- package/dist/node_modules/antd/es/tooltip/util.js.map +1 -1
- package/dist/node_modules/antd/es/tree/DirectoryTree.js +42 -41
- package/dist/node_modules/antd/es/tree/DirectoryTree.js.map +1 -1
- package/dist/node_modules/antd/es/version/version.js +1 -1
- package/dist/node_modules/antd/es/version/version.js.map +1 -1
- package/dist/node_modules/canvg/lib/index.es.js +84 -84
- package/dist/node_modules/canvg/lib/index.es.js.map +1 -1
- package/dist/node_modules/compute-scroll-into-view/dist/index.js +17 -17
- package/dist/node_modules/compute-scroll-into-view/dist/index.js.map +1 -1
- package/dist/node_modules/dompurify/dist/purify.es.js +217 -223
- package/dist/node_modules/dompurify/dist/purify.es.js.map +1 -1
- package/dist/node_modules/fflate/esm/browser.js +295 -335
- package/dist/node_modules/fflate/esm/browser.js.map +1 -1
- package/dist/node_modules/jspdf/dist/jspdf.es.min.js +1771 -1781
- package/dist/node_modules/jspdf/dist/jspdf.es.min.js.map +1 -1
- package/dist/node_modules/raf/index.js +1 -1
- package/dist/node_modules/uuid/dist/esm-browser/regex.js +5 -0
- package/dist/node_modules/uuid/dist/esm-browser/regex.js.map +1 -0
- package/dist/node_modules/uuid/dist/esm-browser/rng.js +2 -3
- package/dist/node_modules/uuid/dist/esm-browser/rng.js.map +1 -1
- package/dist/node_modules/uuid/dist/esm-browser/stringify.js +10 -6
- package/dist/node_modules/uuid/dist/esm-browser/stringify.js.map +1 -1
- package/dist/node_modules/uuid/dist/esm-browser/v4.js +6 -9
- package/dist/node_modules/uuid/dist/esm-browser/v4.js.map +1 -1
- package/dist/node_modules/uuid/dist/esm-browser/validate.js +8 -0
- package/dist/node_modules/uuid/dist/esm-browser/validate.js.map +1 -0
- package/package.json +1 -1
- package/dist/node_modules/antd/es/date-picker/generatePicker/SuffixIcon.js.map +0 -1
- package/dist/node_modules/uuid/dist/esm-browser/native.js +0 -7
- package/dist/node_modules/uuid/dist/esm-browser/native.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../node_modules/antd/es/badge/style/index.js"],"sourcesContent":["import { Keyframes, unit } from '@ant-design/cssinjs';\nimport { resetComponent } from '../../style';\nimport { genPresetColor, genStyleHooks, mergeToken } from '../../theme/internal';\nconst antStatusProcessing = new Keyframes('antStatusProcessing', {\n '0%': {\n transform: 'scale(0.8)',\n opacity: 0.5\n },\n '100%': {\n transform: 'scale(2.4)',\n opacity: 0\n }\n});\nconst antZoomBadgeIn = new Keyframes('antZoomBadgeIn', {\n '0%': {\n transform: 'scale(0) translate(50%, -50%)',\n opacity: 0\n },\n '100%': {\n transform: 'scale(1) translate(50%, -50%)'\n }\n});\nconst antZoomBadgeOut = new Keyframes('antZoomBadgeOut', {\n '0%': {\n transform: 'scale(1) translate(50%, -50%)'\n },\n '100%': {\n transform: 'scale(0) translate(50%, -50%)',\n opacity: 0\n }\n});\nconst antNoWrapperZoomBadgeIn = new Keyframes('antNoWrapperZoomBadgeIn', {\n '0%': {\n transform: 'scale(0)',\n opacity: 0\n },\n '100%': {\n transform: 'scale(1)'\n }\n});\nconst antNoWrapperZoomBadgeOut = new Keyframes('antNoWrapperZoomBadgeOut', {\n '0%': {\n transform: 'scale(1)'\n },\n '100%': {\n transform: 'scale(0)',\n opacity: 0\n }\n});\nconst antBadgeLoadingCircle = new Keyframes('antBadgeLoadingCircle', {\n '0%': {\n transformOrigin: '50%'\n },\n '100%': {\n transform: 'translate(50%, -50%) rotate(360deg)',\n transformOrigin: '50%'\n }\n});\nconst genSharedBadgeStyle = token => {\n const {\n componentCls,\n iconCls,\n antCls,\n badgeShadowSize,\n textFontSize,\n textFontSizeSM,\n statusSize,\n dotSize,\n textFontWeight,\n indicatorHeight,\n indicatorHeightSM,\n marginXS,\n calc\n } = token;\n const numberPrefixCls = `${antCls}-scroll-number`;\n const colorPreset = genPresetColor(token, (colorKey, {\n darkColor\n }) => ({\n [`&${componentCls} ${componentCls}-color-${colorKey}`]: {\n background: darkColor,\n [`&:not(${componentCls}-count)`]: {\n color: darkColor\n },\n 'a:hover &': {\n background: darkColor\n }\n }\n }));\n return {\n [componentCls]: {\n ...resetComponent(token),\n position: 'relative',\n display: 'inline-block',\n width: 'fit-content',\n lineHeight: 1,\n [`${componentCls}-count`]: {\n display: 'inline-flex',\n justifyContent: 'center',\n zIndex: token.indicatorZIndex,\n minWidth: indicatorHeight,\n height: indicatorHeight,\n color: token.badgeTextColor,\n fontWeight: textFontWeight,\n fontSize: textFontSize,\n lineHeight: unit(indicatorHeight),\n whiteSpace: 'nowrap',\n textAlign: 'center',\n background: token.badgeColor,\n borderRadius: calc(indicatorHeight).div(2).equal(),\n boxShadow: `0 0 0 ${unit(badgeShadowSize)} ${token.badgeShadowColor}`,\n transition: `background ${token.motionDurationMid}`,\n a: {\n color: token.badgeTextColor\n },\n 'a:hover': {\n color: token.badgeTextColor\n },\n 'a:hover &': {\n background: token.badgeColorHover\n }\n },\n [`${componentCls}-count-sm`]: {\n minWidth: indicatorHeightSM,\n height: indicatorHeightSM,\n fontSize: textFontSizeSM,\n lineHeight: unit(indicatorHeightSM),\n borderRadius: calc(indicatorHeightSM).div(2).equal()\n },\n [`${componentCls}-multiple-words`]: {\n padding: `0 ${unit(token.paddingXS)}`,\n bdi: {\n unicodeBidi: 'plaintext'\n }\n },\n [`${componentCls}-dot`]: {\n zIndex: token.indicatorZIndex,\n width: dotSize,\n minWidth: dotSize,\n height: dotSize,\n background: token.badgeColor,\n borderRadius: '100%',\n boxShadow: `0 0 0 ${unit(badgeShadowSize)} ${token.badgeShadowColor}`\n },\n [`${componentCls}-count, ${componentCls}-dot, ${numberPrefixCls}-custom-component`]: {\n position: 'absolute',\n top: 0,\n insetInlineEnd: 0,\n transform: 'translate(50%, -50%)',\n transformOrigin: '100% 0%',\n [`&${iconCls}-spin`]: {\n animationName: antBadgeLoadingCircle,\n animationDuration: '1s',\n animationIterationCount: 'infinite',\n animationTimingFunction: 'linear'\n }\n },\n [`&${componentCls}-status`]: {\n lineHeight: 'inherit',\n verticalAlign: 'baseline',\n [`${componentCls}-status-dot`]: {\n position: 'relative',\n top: -1,\n // Magic number, but seems better experience\n display: 'inline-block',\n width: statusSize,\n height: statusSize,\n verticalAlign: 'middle',\n borderRadius: '50%'\n },\n [`${componentCls}-status-success`]: {\n backgroundColor: token.colorSuccess\n },\n [`${componentCls}-status-processing`]: {\n overflow: 'visible',\n color: token.colorInfo,\n backgroundColor: token.colorInfo,\n borderColor: 'currentcolor',\n '&::after': {\n position: 'absolute',\n top: 0,\n insetInlineStart: 0,\n width: '100%',\n height: '100%',\n borderWidth: badgeShadowSize,\n borderStyle: 'solid',\n borderColor: 'inherit',\n borderRadius: '50%',\n animationName: antStatusProcessing,\n animationDuration: token.badgeProcessingDuration,\n animationIterationCount: 'infinite',\n animationTimingFunction: 'ease-in-out',\n content: '\"\"'\n }\n },\n [`${componentCls}-status-default`]: {\n backgroundColor: token.colorTextPlaceholder\n },\n [`${componentCls}-status-error`]: {\n backgroundColor: token.colorError\n },\n [`${componentCls}-status-warning`]: {\n backgroundColor: token.colorWarning\n },\n [`${componentCls}-status-text`]: {\n marginInlineStart: marginXS,\n color: token.colorText,\n fontSize: token.fontSize\n }\n },\n ...colorPreset,\n [`${componentCls}-zoom-appear, ${componentCls}-zoom-enter`]: {\n animationName: antZoomBadgeIn,\n animationDuration: token.motionDurationSlow,\n animationTimingFunction: token.motionEaseOutBack,\n animationFillMode: 'both'\n },\n [`${componentCls}-zoom-leave`]: {\n animationName: antZoomBadgeOut,\n animationDuration: token.motionDurationSlow,\n animationTimingFunction: token.motionEaseOutBack,\n animationFillMode: 'both'\n },\n [`&${componentCls}-not-a-wrapper`]: {\n [`${componentCls}-zoom-appear, ${componentCls}-zoom-enter`]: {\n animationName: antNoWrapperZoomBadgeIn,\n animationDuration: token.motionDurationSlow,\n animationTimingFunction: token.motionEaseOutBack\n },\n [`${componentCls}-zoom-leave`]: {\n animationName: antNoWrapperZoomBadgeOut,\n animationDuration: token.motionDurationSlow,\n animationTimingFunction: token.motionEaseOutBack\n },\n [`&:not(${componentCls}-status)`]: {\n verticalAlign: 'middle'\n },\n [`${numberPrefixCls}-custom-component, ${componentCls}-count`]: {\n transform: 'none'\n },\n [`${numberPrefixCls}-custom-component, ${numberPrefixCls}`]: {\n position: 'relative',\n top: 'auto',\n display: 'block',\n transformOrigin: '50% 50%'\n }\n },\n [numberPrefixCls]: {\n overflow: 'hidden',\n transition: `all ${token.motionDurationMid} ${token.motionEaseOutBack}`,\n [`${numberPrefixCls}-only`]: {\n position: 'relative',\n display: 'inline-block',\n height: indicatorHeight,\n transition: `all ${token.motionDurationSlow} ${token.motionEaseOutBack}`,\n WebkitTransformStyle: 'preserve-3d',\n WebkitBackfaceVisibility: 'hidden',\n [`> p${numberPrefixCls}-only-unit`]: {\n height: indicatorHeight,\n margin: 0,\n WebkitTransformStyle: 'preserve-3d',\n WebkitBackfaceVisibility: 'hidden'\n }\n },\n [`${numberPrefixCls}-symbol`]: {\n verticalAlign: 'top'\n }\n },\n // ====================== RTL =======================\n '&-rtl': {\n direction: 'rtl',\n [`${componentCls}-count, ${componentCls}-dot, ${numberPrefixCls}-custom-component`]: {\n transform: 'translate(-50%, -50%)'\n }\n }\n }\n };\n};\n// ============================== Export ==============================\nexport const prepareToken = token => {\n const {\n fontHeight,\n lineWidth,\n marginXS,\n colorBorderBg\n } = token;\n const badgeFontHeight = fontHeight;\n const badgeShadowSize = lineWidth;\n const badgeTextColor = token.colorTextLightSolid;\n const badgeColor = token.colorError;\n const badgeColorHover = token.colorErrorHover;\n const badgeToken = mergeToken(token, {\n badgeFontHeight,\n badgeShadowSize,\n badgeTextColor,\n badgeColor,\n badgeColorHover,\n badgeShadowColor: colorBorderBg,\n badgeProcessingDuration: '1.2s',\n badgeRibbonOffset: marginXS,\n // Follow token just by Design. Not related with token\n badgeRibbonCornerTransform: 'scaleY(0.75)',\n badgeRibbonCornerFilter: `brightness(75%)`\n });\n return badgeToken;\n};\nexport const prepareComponentToken = token => {\n const {\n fontSize,\n lineHeight,\n fontSizeSM,\n lineWidth\n } = token;\n return {\n indicatorZIndex: 'auto',\n indicatorHeight: Math.round(fontSize * lineHeight) - 2 * lineWidth,\n indicatorHeightSM: fontSize,\n dotSize: fontSizeSM / 2,\n textFontSize: fontSizeSM,\n textFontSizeSM: fontSizeSM,\n textFontWeight: 'normal',\n statusSize: fontSizeSM / 2\n };\n};\nexport default genStyleHooks('Badge', token => {\n const badgeToken = prepareToken(token);\n return genSharedBadgeStyle(badgeToken);\n}, prepareComponentToken);"],"names":["antStatusProcessing","Keyframes","antZoomBadgeIn","antZoomBadgeOut","antNoWrapperZoomBadgeIn","antNoWrapperZoomBadgeOut","antBadgeLoadingCircle","genSharedBadgeStyle","token","componentCls","iconCls","antCls","badgeShadowSize","textFontSize","textFontSizeSM","statusSize","dotSize","textFontWeight","indicatorHeight","indicatorHeightSM","marginXS","calc","numberPrefixCls","colorPreset","genPresetColor","colorKey","darkColor","resetComponent","unit","prepareToken","fontHeight","lineWidth","colorBorderBg","badgeFontHeight","badgeTextColor","badgeColor","badgeColorHover","mergeToken","prepareComponentToken","fontSize","lineHeight","fontSizeSM","useStyle","genStyleHooks","badgeToken"],"mappings":";;;;;;AAGA,MAAMA,IAAsB,IAAIC,EAAU,uBAAuB;AAAA,EAC/D,MAAM;AAAA,IACJ,WAAW;AAAA,IACX,SAAS;AAAA,EACb;AAAA,EACE,QAAQ;AAAA,IACN,WAAW;AAAA,IACX,SAAS;AAAA,EACb;AACA,CAAC,GACKC,IAAiB,IAAID,EAAU,kBAAkB;AAAA,EACrD,MAAM;AAAA,IACJ,WAAW;AAAA,IACX,SAAS;AAAA,EACb;AAAA,EACE,QAAQ;AAAA,IACN,WAAW;AAAA,EACf;AACA,CAAC,GACKE,IAAkB,IAAIF,EAAU,mBAAmB;AAAA,EACvD,MAAM;AAAA,IACJ,WAAW;AAAA,EACf;AAAA,EACE,QAAQ;AAAA,IACN,WAAW;AAAA,IACX,SAAS;AAAA,EACb;AACA,CAAC,GACKG,IAA0B,IAAIH,EAAU,2BAA2B;AAAA,EACvE,MAAM;AAAA,IACJ,WAAW;AAAA,IACX,SAAS;AAAA,EACb;AAAA,EACE,QAAQ;AAAA,IACN,WAAW;AAAA,EACf;AACA,CAAC,GACKI,IAA2B,IAAIJ,EAAU,4BAA4B;AAAA,EACzE,MAAM;AAAA,IACJ,WAAW;AAAA,EAC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AAM+B,IAAWC,CAAU,IAAI,IAAIT;AAAA,IACzD,mBAAmBQ;AAAA,IACnB,SAASE,IAAa;AAAA,IACtB,cAAcA;AAAA,IACd,gBAAgBA;AAAA,IAChB,gBAAgB;AAAA,IAChB,YAAYA,IAAa;AAAA,EAC7B;AACA,GACAC,IAAeC,EAAc,SAAS,CAAAnC,MAAS;AAC7C,QAAMoC,IAAaf,EAAarB,CAAK;AACrC,SAAOD,EAAoBqC,CAAU;AACvC,GAAGN,CAAqB;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../node_modules/antd/es/badge/style/index.js"],"sourcesContent":["import { Keyframes, unit } from '@ant-design/cssinjs';\nimport { resetComponent } from '../../style';\nimport { genPresetColor, genStyleHooks, mergeToken } from '../../theme/internal';\nconst antStatusProcessing = new Keyframes('antStatusProcessing', {\n '0%': {\n transform: 'scale(0.8)',\n opacity: 0.5\n },\n '100%': {\n transform: 'scale(2.4)',\n opacity: 0\n }\n});\nconst antZoomBadgeIn = new Keyframes('antZoomBadgeIn', {\n '0%': {\n transform: 'scale(0) translate(50%, -50%)',\n opacity: 0\n },\n '100%': {\n transform: 'scale(1) translate(50%, -50%)'\n }\n});\nconst antZoomBadgeOut = new Keyframes('antZoomBadgeOut', {\n '0%': {\n transform: 'scale(1) translate(50%, -50%)'\n },\n '100%': {\n transform: 'scale(0) translate(50%, -50%)',\n opacity: 0\n }\n});\nconst antNoWrapperZoomBadgeIn = new Keyframes('antNoWrapperZoomBadgeIn', {\n '0%': {\n transform: 'scale(0)',\n opacity: 0\n },\n '100%': {\n transform: 'scale(1)'\n }\n});\nconst antNoWrapperZoomBadgeOut = new Keyframes('antNoWrapperZoomBadgeOut', {\n '0%': {\n transform: 'scale(1)'\n },\n '100%': {\n transform: 'scale(0)',\n opacity: 0\n }\n});\nconst antBadgeLoadingCircle = new Keyframes('antBadgeLoadingCircle', {\n '0%': {\n transformOrigin: '50%'\n },\n '100%': {\n transform: 'translate(50%, -50%) rotate(360deg)',\n transformOrigin: '50%'\n }\n});\nconst genSharedBadgeStyle = token => {\n const {\n componentCls,\n iconCls,\n antCls,\n badgeShadowSize,\n textFontSize,\n textFontSizeSM,\n statusSize,\n dotSize,\n textFontWeight,\n indicatorHeight,\n indicatorHeightSM,\n marginXS,\n calc\n } = token;\n const numberPrefixCls = `${antCls}-scroll-number`;\n const colorPreset = genPresetColor(token, (colorKey, {\n darkColor\n }) => ({\n [`&${componentCls} ${componentCls}-color-${colorKey}`]: {\n background: darkColor,\n [`&:not(${componentCls}-count)`]: {\n color: darkColor\n },\n 'a:hover &': {\n background: darkColor\n }\n }\n }));\n return {\n [componentCls]: {\n ...resetComponent(token),\n position: 'relative',\n display: 'inline-block',\n width: 'fit-content',\n lineHeight: 1,\n [`${componentCls}-count`]: {\n display: 'inline-flex',\n justifyContent: 'center',\n zIndex: token.indicatorZIndex,\n minWidth: indicatorHeight,\n height: indicatorHeight,\n color: token.badgeTextColor,\n fontWeight: textFontWeight,\n fontSize: textFontSize,\n lineHeight: unit(indicatorHeight),\n whiteSpace: 'nowrap',\n textAlign: 'center',\n background: token.badgeColor,\n borderRadius: calc(indicatorHeight).div(2).equal(),\n boxShadow: `0 0 0 ${unit(badgeShadowSize)} ${token.badgeShadowColor}`,\n transition: `background-color ${token.motionDurationMid}`,\n a: {\n color: token.badgeTextColor\n },\n 'a:hover': {\n color: token.badgeTextColor\n },\n 'a:hover &': {\n background: token.badgeColorHover\n }\n },\n [`${componentCls}-count-sm`]: {\n minWidth: indicatorHeightSM,\n height: indicatorHeightSM,\n fontSize: textFontSizeSM,\n lineHeight: unit(indicatorHeightSM),\n borderRadius: calc(indicatorHeightSM).div(2).equal()\n },\n [`${componentCls}-multiple-words`]: {\n padding: `0 ${unit(token.paddingXS)}`,\n bdi: {\n unicodeBidi: 'plaintext'\n }\n },\n [`${componentCls}-dot`]: {\n zIndex: token.indicatorZIndex,\n width: dotSize,\n minWidth: dotSize,\n height: dotSize,\n background: token.badgeColor,\n borderRadius: '100%',\n boxShadow: `0 0 0 ${unit(badgeShadowSize)} ${token.badgeShadowColor}`\n },\n [`${componentCls}-count, ${componentCls}-dot, ${numberPrefixCls}-custom-component`]: {\n position: 'absolute',\n top: 0,\n insetInlineEnd: 0,\n transform: 'translate(50%, -50%)',\n transformOrigin: '100% 0%',\n [`&${iconCls}-spin`]: {\n animationName: antBadgeLoadingCircle,\n animationDuration: '1s',\n animationIterationCount: 'infinite',\n animationTimingFunction: 'linear'\n }\n },\n [`&${componentCls}-status`]: {\n lineHeight: 'inherit',\n verticalAlign: 'baseline',\n [`${componentCls}-status-dot`]: {\n position: 'relative',\n top: -1,\n // Magic number, but seems better experience\n display: 'inline-block',\n width: statusSize,\n height: statusSize,\n verticalAlign: 'middle',\n borderRadius: '50%'\n },\n [`${componentCls}-status-success`]: {\n backgroundColor: token.colorSuccess\n },\n [`${componentCls}-status-processing`]: {\n overflow: 'visible',\n color: token.colorInfo,\n backgroundColor: token.colorInfo,\n borderColor: 'currentcolor',\n '&::after': {\n position: 'absolute',\n top: 0,\n insetInlineStart: 0,\n width: '100%',\n height: '100%',\n borderWidth: badgeShadowSize,\n borderStyle: 'solid',\n borderColor: 'inherit',\n borderRadius: '50%',\n animationName: antStatusProcessing,\n animationDuration: token.badgeProcessingDuration,\n animationIterationCount: 'infinite',\n animationTimingFunction: 'ease-in-out',\n content: '\"\"'\n }\n },\n [`${componentCls}-status-default`]: {\n backgroundColor: token.colorTextPlaceholder\n },\n [`${componentCls}-status-error`]: {\n backgroundColor: token.colorError\n },\n [`${componentCls}-status-warning`]: {\n backgroundColor: token.colorWarning\n },\n [`${componentCls}-status-text`]: {\n marginInlineStart: marginXS,\n color: token.colorText,\n fontSize: token.fontSize\n }\n },\n ...colorPreset,\n [`${componentCls}-zoom-appear, ${componentCls}-zoom-enter`]: {\n animationName: antZoomBadgeIn,\n animationDuration: token.motionDurationSlow,\n animationTimingFunction: token.motionEaseOutBack,\n animationFillMode: 'both'\n },\n [`${componentCls}-zoom-leave`]: {\n animationName: antZoomBadgeOut,\n animationDuration: token.motionDurationSlow,\n animationTimingFunction: token.motionEaseOutBack,\n animationFillMode: 'both'\n },\n [`&${componentCls}-not-a-wrapper`]: {\n [`${componentCls}-zoom-appear, ${componentCls}-zoom-enter`]: {\n animationName: antNoWrapperZoomBadgeIn,\n animationDuration: token.motionDurationSlow,\n animationTimingFunction: token.motionEaseOutBack\n },\n [`${componentCls}-zoom-leave`]: {\n animationName: antNoWrapperZoomBadgeOut,\n animationDuration: token.motionDurationSlow,\n animationTimingFunction: token.motionEaseOutBack\n },\n [`&:not(${componentCls}-status)`]: {\n verticalAlign: 'middle'\n },\n [`${numberPrefixCls}-custom-component, ${componentCls}-count`]: {\n transform: 'none'\n },\n [`${numberPrefixCls}-custom-component, ${numberPrefixCls}`]: {\n position: 'relative',\n top: 'auto',\n display: 'block',\n transformOrigin: '50% 50%'\n }\n },\n [numberPrefixCls]: {\n overflow: 'hidden',\n transition: `all ${token.motionDurationMid} ${token.motionEaseOutBack}`,\n [`${numberPrefixCls}-only`]: {\n position: 'relative',\n display: 'inline-block',\n height: indicatorHeight,\n transition: `all ${token.motionDurationSlow} ${token.motionEaseOutBack}`,\n WebkitTransformStyle: 'preserve-3d',\n WebkitBackfaceVisibility: 'hidden',\n [`> p${numberPrefixCls}-only-unit`]: {\n height: indicatorHeight,\n margin: 0,\n WebkitTransformStyle: 'preserve-3d',\n WebkitBackfaceVisibility: 'hidden'\n }\n },\n [`${numberPrefixCls}-symbol`]: {\n verticalAlign: 'top'\n }\n },\n // ====================== RTL =======================\n '&-rtl': {\n direction: 'rtl',\n [`${componentCls}-count, ${componentCls}-dot, ${numberPrefixCls}-custom-component`]: {\n transform: 'translate(-50%, -50%)'\n }\n }\n }\n };\n};\n// ============================== Export ==============================\nexport const prepareToken = token => {\n const {\n fontHeight,\n lineWidth,\n marginXS,\n colorBorderBg\n } = token;\n const badgeFontHeight = fontHeight;\n const badgeShadowSize = lineWidth;\n const badgeTextColor = token.colorTextLightSolid;\n const badgeColor = token.colorError;\n const badgeColorHover = token.colorErrorHover;\n const badgeToken = mergeToken(token, {\n badgeFontHeight,\n badgeShadowSize,\n badgeTextColor,\n badgeColor,\n badgeColorHover,\n badgeShadowColor: colorBorderBg,\n badgeProcessingDuration: '1.2s',\n badgeRibbonOffset: marginXS,\n // Follow token just by Design. Not related with token\n badgeRibbonCornerTransform: 'scaleY(0.75)',\n badgeRibbonCornerFilter: `brightness(75%)`\n });\n return badgeToken;\n};\nexport const prepareComponentToken = token => {\n const {\n fontSize,\n lineHeight,\n fontSizeSM,\n lineWidth\n } = token;\n return {\n indicatorZIndex: 'auto',\n indicatorHeight: Math.round(fontSize * lineHeight) - 2 * lineWidth,\n indicatorHeightSM: fontSize,\n dotSize: fontSizeSM / 2,\n textFontSize: fontSizeSM,\n textFontSizeSM: fontSizeSM,\n textFontWeight: 'normal',\n statusSize: fontSizeSM / 2\n };\n};\nexport default genStyleHooks('Badge', token => {\n const badgeToken = prepareToken(token);\n return genSharedBadgeStyle(badgeToken);\n}, prepareComponentToken);"],"names":["antStatusProcessing","Keyframes","antZoomBadgeIn","antZoomBadgeOut","antNoWrapperZoomBadgeIn","antNoWrapperZoomBadgeOut","antBadgeLoadingCircle","genSharedBadgeStyle","token","componentCls","iconCls","antCls","badgeShadowSize","textFontSize","textFontSizeSM","statusSize","dotSize","textFontWeight","indicatorHeight","indicatorHeightSM","marginXS","calc","numberPrefixCls","colorPreset","genPresetColor","colorKey","darkColor","resetComponent","unit","prepareToken","fontHeight","lineWidth","colorBorderBg","badgeFontHeight","badgeTextColor","badgeColor","badgeColorHover","mergeToken","prepareComponentToken","fontSize","lineHeight","fontSizeSM","useStyle","genStyleHooks","badgeToken"],"mappings":";;;;;;AAGA,MAAMA,IAAsB,IAAIC,EAAU,uBAAuB;AAAA,EAC/D,MAAM;AAAA,IACJ,WAAW;AAAA,IACX,SAAS;AAAA,EACb;AAAA,EACE,QAAQ;AAAA,IACN,WAAW;AAAA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J,IAAMxB,GACEyB,IAAkBH,GAClBlB,IAAkBmB,GAClBG,IAAiB1B,EAAM,qBACvB2B,IAAa3B,EAAM,YACnB4B,IAAkB5B,EAAM;AAc9B,SAbmB6B,EAAW7B,GAAO;AAAA,IACnC,iBAAAyB;AAAA,IACA,iBAAArB;AAAA,IACA,gBAAAsB;AAAA,IACA,YAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,kBAAkBJ;AAAA,IAClB,yBAAyB;AAAA,IACzB,mBAAmBZ;AAAA;AAAA,IAEnB,4BAA4B;AAAA,IAC5B,yBAAyB;AAAA,EAC7B,CAAG;AAEH,GACakB,IAAwB,CAAA9B,MAAS;AAC5C,QAAM;AAAA,IACJ,UAAA+B;AAAA,IACA,YAAAC;AAAA,IACA,YAAAC;AAAA,IACA,WAAAV;AAAA,EACJ,IAAMvB;AACJ,SAAO;AAAA,IACL,iBAAiB;AAAA,IACjB,iBAAiB,KAAK,MAAM+B,IAAWC,CAAU,IAAI,IAAIT;AAAA,IACzD,mBAAmBQ;AAAA,IACnB,SAASE,IAAa;AAAA,IACtB,cAAcA;AAAA,IACd,gBAAgBA;AAAA,IAChB,gBAAgB;AAAA,IAChB,YAAYA,IAAa;AAAA,EAC7B;AACA,GACAC,IAAeC,EAAc,SAAS,CAAAnC,MAAS;AAC7C,QAAMoC,IAAaf,EAAarB,CAAK;AACrC,SAAOD,EAAoBqC,CAAU;AACvC,GAAGN,CAAqB;","x_google_ignoreList":[0]}
|
|
@@ -1,66 +1,72 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { clsx as
|
|
4
|
-
import
|
|
5
|
-
import { cloneElement as
|
|
1
|
+
import d from "../../../@babel/runtime/helpers/esm/toConsumableArray.js";
|
|
2
|
+
import u from "react";
|
|
3
|
+
import { clsx as l } from "../../../clsx/dist/clsx.js";
|
|
4
|
+
import N from "../_util/isNonNullable.js";
|
|
5
|
+
import { cloneElement as c, isFragment as E } from "../_util/reactNode.js";
|
|
6
6
|
import { PresetColors as b } from "../theme/interface/presetColors.js";
|
|
7
|
-
const
|
|
8
|
-
function
|
|
9
|
-
return
|
|
7
|
+
const p = /^[\u4E00-\u9FA5]{2}$/, C = p.test.bind(p);
|
|
8
|
+
function v(e) {
|
|
9
|
+
return e === "danger" ? {
|
|
10
10
|
danger: !0
|
|
11
11
|
} : {
|
|
12
|
-
type:
|
|
12
|
+
type: e
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
|
-
function
|
|
16
|
-
return typeof
|
|
15
|
+
function g(e) {
|
|
16
|
+
return typeof e == "string";
|
|
17
17
|
}
|
|
18
|
-
function
|
|
19
|
-
return
|
|
18
|
+
function w(e) {
|
|
19
|
+
return e === "text" || e === "link";
|
|
20
20
|
}
|
|
21
|
-
function x(
|
|
22
|
-
if (!
|
|
21
|
+
function x(e, i, r, s) {
|
|
22
|
+
if (!N(e) || e === "")
|
|
23
23
|
return;
|
|
24
24
|
const o = i ? " " : "";
|
|
25
|
-
return typeof
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
return typeof e != "string" && typeof e != "number" && g(e.type) && C(e.props.children) ? c(e, (t) => {
|
|
26
|
+
const n = l(t.className, s) || void 0, a = {
|
|
27
|
+
...r,
|
|
28
|
+
...t.style
|
|
29
|
+
};
|
|
30
|
+
return {
|
|
31
|
+
...t,
|
|
32
|
+
children: t.children.split("").join(o),
|
|
33
|
+
className: n,
|
|
34
|
+
style: a
|
|
35
|
+
};
|
|
36
|
+
}) : g(e) ? /* @__PURE__ */ u.createElement("span", {
|
|
37
|
+
className: s,
|
|
29
38
|
style: r
|
|
30
|
-
})) :
|
|
31
|
-
className:
|
|
39
|
+
}, C(e) ? e.split("").join(o) : e) : E(e) ? /* @__PURE__ */ u.createElement("span", {
|
|
40
|
+
className: s,
|
|
32
41
|
style: r
|
|
33
|
-
},
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}, t) : p(t, (e) => ({
|
|
37
|
-
...e,
|
|
38
|
-
className: d(e.className, n) || void 0,
|
|
42
|
+
}, e) : c(e, (t) => ({
|
|
43
|
+
...t,
|
|
44
|
+
className: l(t.className, s) || void 0,
|
|
39
45
|
style: {
|
|
40
|
-
...
|
|
46
|
+
...t.style,
|
|
41
47
|
...r
|
|
42
48
|
}
|
|
43
49
|
}));
|
|
44
50
|
}
|
|
45
|
-
function
|
|
51
|
+
function F(e, i, r, s) {
|
|
46
52
|
let o = !1;
|
|
47
|
-
const
|
|
48
|
-
return
|
|
49
|
-
const
|
|
53
|
+
const t = [];
|
|
54
|
+
return u.Children.forEach(e, (n) => {
|
|
55
|
+
const a = typeof n, f = a === "string" || a === "number";
|
|
50
56
|
if (o && f) {
|
|
51
|
-
const m =
|
|
52
|
-
|
|
57
|
+
const m = t.length - 1, y = t[m];
|
|
58
|
+
t[m] = `${y}${n}`;
|
|
53
59
|
} else
|
|
54
|
-
|
|
60
|
+
t.push(n);
|
|
55
61
|
o = f;
|
|
56
|
-
}),
|
|
62
|
+
}), u.Children.map(t, (n) => x(n, i, r, s));
|
|
57
63
|
}
|
|
58
|
-
["default", "primary", "danger"].concat(
|
|
64
|
+
["default", "primary", "danger"].concat(d(b));
|
|
59
65
|
export {
|
|
60
|
-
|
|
61
|
-
|
|
66
|
+
v as convertLegacyProps,
|
|
67
|
+
g as isString,
|
|
62
68
|
C as isTwoCNChar,
|
|
63
|
-
|
|
64
|
-
|
|
69
|
+
w as isUnBorderedButtonVariant,
|
|
70
|
+
F as spaceChildren
|
|
65
71
|
};
|
|
66
72
|
//# sourceMappingURL=buttonHelpers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buttonHelpers.js","sources":["../../../../../node_modules/antd/es/button/buttonHelpers.js"],"sourcesContent":["\"use client\";\n\nimport _toConsumableArray from \"@babel/runtime/helpers/esm/toConsumableArray\";\nimport React from 'react';\nimport { clsx } from 'clsx';\nimport isNonNullable from '../_util/isNonNullable';\nimport { cloneElement, isFragment } from '../_util/reactNode';\nimport { PresetColors } from '../theme/interface';\nconst rxTwoCNChar = /^[\\u4E00-\\u9FA5]{2}$/;\nexport const isTwoCNChar = rxTwoCNChar.test.bind(rxTwoCNChar);\nexport function convertLegacyProps(type) {\n if (type === 'danger') {\n return {\n danger: true\n };\n }\n return {\n type\n };\n}\nexport function isString(str) {\n return typeof str === 'string';\n}\nexport function isUnBorderedButtonVariant(type) {\n return type === 'text' || type === 'link';\n}\nfunction splitCNCharsBySpace(child, needInserted, style, className) {\n if (!isNonNullable(child) || child === '') {\n return;\n }\n const SPACE = needInserted ? ' ' : '';\n if (typeof child !== 'string' && typeof child !== 'number' && isString(child.type) && isTwoCNChar(child.props.children)) {\n return cloneElement(child, oriProps => ({\n ...oriProps,\n
|
|
1
|
+
{"version":3,"file":"buttonHelpers.js","sources":["../../../../../node_modules/antd/es/button/buttonHelpers.js"],"sourcesContent":["\"use client\";\n\nimport _toConsumableArray from \"@babel/runtime/helpers/esm/toConsumableArray\";\nimport React from 'react';\nimport { clsx } from 'clsx';\nimport isNonNullable from '../_util/isNonNullable';\nimport { cloneElement, isFragment } from '../_util/reactNode';\nimport { PresetColors } from '../theme/interface';\nconst rxTwoCNChar = /^[\\u4E00-\\u9FA5]{2}$/;\nexport const isTwoCNChar = rxTwoCNChar.test.bind(rxTwoCNChar);\nexport function convertLegacyProps(type) {\n if (type === 'danger') {\n return {\n danger: true\n };\n }\n return {\n type\n };\n}\nexport function isString(str) {\n return typeof str === 'string';\n}\nexport function isUnBorderedButtonVariant(type) {\n return type === 'text' || type === 'link';\n}\nfunction splitCNCharsBySpace(child, needInserted, style, className) {\n if (!isNonNullable(child) || child === '') {\n return;\n }\n const SPACE = needInserted ? ' ' : '';\n if (typeof child !== 'string' && typeof child !== 'number' && isString(child.type) && isTwoCNChar(child.props.children)) {\n return cloneElement(child, oriProps => {\n const mergedCls = clsx(oriProps.className, className) || undefined;\n const mergedStyle = {\n ...style,\n ...oriProps.style\n };\n return {\n ...oriProps,\n children: oriProps.children.split('').join(SPACE),\n className: mergedCls,\n style: mergedStyle\n };\n });\n }\n if (isString(child)) {\n return /*#__PURE__*/React.createElement(\"span\", {\n className: className,\n style: style\n }, isTwoCNChar(child) ? child.split('').join(SPACE) : child);\n }\n if (isFragment(child)) {\n return /*#__PURE__*/React.createElement(\"span\", {\n className: className,\n style: style\n }, child);\n }\n return cloneElement(child, oriProps => ({\n ...oriProps,\n className: clsx(oriProps.className, className) || undefined,\n style: {\n ...oriProps.style,\n ...style\n }\n }));\n}\nexport function spaceChildren(children, needInserted, style, className) {\n let isPrevChildPure = false;\n const childList = [];\n React.Children.forEach(children, child => {\n const type = typeof child;\n const isCurrentChildPure = type === 'string' || type === 'number';\n if (isPrevChildPure && isCurrentChildPure) {\n const lastIndex = childList.length - 1;\n const lastChild = childList[lastIndex];\n childList[lastIndex] = `${lastChild}${child}`;\n } else {\n childList.push(child);\n }\n isPrevChildPure = isCurrentChildPure;\n });\n return React.Children.map(childList, child => splitCNCharsBySpace(child, needInserted, style, className));\n}\nconst _ButtonTypes = ['default', 'primary', 'dashed', 'link', 'text'];\nconst _ButtonShapes = ['default', 'circle', 'round', 'square'];\nconst _ButtonHTMLTypes = ['submit', 'button', 'reset'];\nexport const _ButtonVariantTypes = ['outlined', 'dashed', 'solid', 'filled', 'text', 'link'];\nexport const _ButtonColorTypes = ['default', 'primary', 'danger'].concat(_toConsumableArray(PresetColors));"],"names":["rxTwoCNChar","isTwoCNChar","convertLegacyProps","type","isString","str","isUnBorderedButtonVariant","splitCNCharsBySpace","child","needInserted","style","className","isNonNullable","SPACE","cloneElement","oriProps","mergedCls","clsx","mergedStyle","React","isFragment","spaceChildren","children","isPrevChildPure","childList","isCurrentChildPure","lastIndex","lastChild","_toConsumableArray","PresetColors"],"mappings":";;;;;;AAQA,MAAMA,IAAc,wBACPC,IAAcD,EAAY,KAAK,KAAKA,CAAW;AACrD,SAASE,EAAmBC,GAAM;AACvC,SAAIA,MAAS,WACJ;AAAA,IACL,QAAQ;AAAA,EACd,IAES;A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cC,GAAOC,GAAW;AACtE,MAAIY,IAAkB;AACtB,QAAMC,IAAY,CAAA;AAClBL,SAAAA,EAAM,SAAS,QAAQG,GAAU,CAAAd,MAAS;AACxC,UAAML,IAAO,OAAOK,GACdiB,IAAqBtB,MAAS,YAAYA,MAAS;AACzD,QAAIoB,KAAmBE,GAAoB;AACzC,YAAMC,IAAYF,EAAU,SAAS,GAC/BG,IAAYH,EAAUE,CAAS;AACrC,MAAAF,EAAUE,CAAS,IAAI,GAAGC,CAAS,GAAGnB,CAAK;AAAA,IAC7C;AACE,MAAAgB,EAAU,KAAKhB,CAAK;AAEtB,IAAAe,IAAkBE;AAAA,EACpB,CAAC,GACMN,EAAM,SAAS,IAAIK,GAAW,CAAAhB,MAASD,EAAoBC,GAAOC,GAAcC,GAAOC,CAAS,CAAC;AAC1G;AAKiC,CAAC,WAAW,WAAW,QAAQ,EAAE,OAAOiB,EAAmBC,CAAY,CAAC;","x_google_ignoreList":[0]}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { genCssVar as
|
|
2
|
-
import { PresetColors as
|
|
3
|
-
const
|
|
1
|
+
import { genCssVar as g } from "../../theme/util/genStyleUtils.js";
|
|
2
|
+
import { PresetColors as x } from "../../theme/interface/presetColors.js";
|
|
3
|
+
const C = (l) => {
|
|
4
4
|
const {
|
|
5
|
-
componentCls:
|
|
6
|
-
antCls:
|
|
7
|
-
} =
|
|
5
|
+
componentCls: c,
|
|
6
|
+
antCls: t
|
|
7
|
+
} = l, [o, r] = g(t, "btn");
|
|
8
8
|
return {
|
|
9
|
-
[
|
|
9
|
+
[c]: [
|
|
10
10
|
// ==============================================================
|
|
11
11
|
// == Variable ==
|
|
12
12
|
// ==============================================================
|
|
@@ -14,21 +14,21 @@ const n = (r) => {
|
|
|
14
14
|
// Border
|
|
15
15
|
[o("border-width")]: "1px",
|
|
16
16
|
[o("border-color")]: "#000",
|
|
17
|
-
[o("border-color-hover")]:
|
|
18
|
-
[o("border-color-active")]:
|
|
19
|
-
[o("border-color-disabled")]:
|
|
17
|
+
[o("border-color-hover")]: r("border-color"),
|
|
18
|
+
[o("border-color-active")]: r("border-color"),
|
|
19
|
+
[o("border-color-disabled")]: r("border-color"),
|
|
20
20
|
[o("border-style")]: "solid",
|
|
21
21
|
// Text
|
|
22
22
|
[o("text-color")]: "#000",
|
|
23
|
-
[o("text-color-hover")]:
|
|
24
|
-
[o("text-color-active")]:
|
|
25
|
-
[o("text-color-disabled")]:
|
|
23
|
+
[o("text-color-hover")]: r("text-color"),
|
|
24
|
+
[o("text-color-active")]: r("text-color"),
|
|
25
|
+
[o("text-color-disabled")]: r("text-color"),
|
|
26
26
|
// Background
|
|
27
27
|
[o("bg-color")]: "#ddd",
|
|
28
|
-
[o("bg-color-hover")]:
|
|
29
|
-
[o("bg-color-active")]:
|
|
30
|
-
[o("bg-color-disabled")]:
|
|
31
|
-
[o("bg-color-container")]:
|
|
28
|
+
[o("bg-color-hover")]: r("bg-color"),
|
|
29
|
+
[o("bg-color-active")]: r("bg-color"),
|
|
30
|
+
[o("bg-color-disabled")]: l.colorBgContainerDisabled,
|
|
31
|
+
[o("bg-color-container")]: l.colorBgContainer,
|
|
32
32
|
// Shadow
|
|
33
33
|
[o("shadow")]: "none"
|
|
34
34
|
},
|
|
@@ -37,22 +37,22 @@ const n = (r) => {
|
|
|
37
37
|
// ==============================================================
|
|
38
38
|
{
|
|
39
39
|
// Basic
|
|
40
|
-
border:
|
|
41
|
-
color:
|
|
42
|
-
backgroundColor:
|
|
40
|
+
border: [r("border-width"), r("border-style"), r("border-color")].join(" "),
|
|
41
|
+
color: r("text-color"),
|
|
42
|
+
backgroundColor: r("bg-color"),
|
|
43
43
|
// Status
|
|
44
|
-
[`&:not(:disabled):not(${
|
|
44
|
+
[`&:not(:disabled):not(${c}-disabled)`]: {
|
|
45
45
|
// Hover
|
|
46
46
|
"&:hover": {
|
|
47
|
-
border:
|
|
48
|
-
color:
|
|
49
|
-
backgroundColor:
|
|
47
|
+
border: [r("border-width"), r("border-style"), r("border-color-hover")].join(" "),
|
|
48
|
+
color: r("text-color-hover"),
|
|
49
|
+
backgroundColor: r("bg-color-hover")
|
|
50
50
|
},
|
|
51
51
|
// Active
|
|
52
52
|
"&:active": {
|
|
53
|
-
border:
|
|
54
|
-
color:
|
|
55
|
-
backgroundColor:
|
|
53
|
+
border: [r("border-width"), r("border-style"), r("border-color-active")].join(" "),
|
|
54
|
+
color: r("text-color-active"),
|
|
55
|
+
backgroundColor: r("bg-color-active")
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
},
|
|
@@ -61,63 +61,63 @@ const n = (r) => {
|
|
|
61
61
|
// ==============================================================
|
|
62
62
|
{
|
|
63
63
|
// >>>>> Solid
|
|
64
|
-
[`&${
|
|
64
|
+
[`&${c}-variant-solid`]: {
|
|
65
65
|
// Solid Variables
|
|
66
|
-
[o("solid-bg-color")]:
|
|
67
|
-
[o("solid-bg-color-hover")]:
|
|
68
|
-
[o("solid-bg-color-active")]:
|
|
66
|
+
[o("solid-bg-color")]: r("color-base"),
|
|
67
|
+
[o("solid-bg-color-hover")]: r("color-hover"),
|
|
68
|
+
[o("solid-bg-color-active")]: r("color-active"),
|
|
69
69
|
// Variables
|
|
70
70
|
[o("border-color")]: "transparent",
|
|
71
|
-
[o("text-color")]:
|
|
72
|
-
[o("bg-color")]:
|
|
73
|
-
[o("bg-color-hover")]:
|
|
74
|
-
[o("bg-color-active")]:
|
|
71
|
+
[o("text-color")]: l.colorTextLightSolid,
|
|
72
|
+
[o("bg-color")]: r("solid-bg-color"),
|
|
73
|
+
[o("bg-color-hover")]: r("solid-bg-color-hover"),
|
|
74
|
+
[o("bg-color-active")]: r("solid-bg-color-active"),
|
|
75
75
|
// Box Shadow
|
|
76
|
-
boxShadow:
|
|
76
|
+
boxShadow: r("shadow")
|
|
77
77
|
},
|
|
78
78
|
// >>>>> Outlined & Dashed
|
|
79
|
-
[`&${
|
|
80
|
-
[o("border-color")]:
|
|
81
|
-
[o("border-color-hover")]:
|
|
82
|
-
[o("border-color-active")]:
|
|
83
|
-
[o("bg-color")]:
|
|
84
|
-
[o("text-color")]:
|
|
85
|
-
[o("text-color-hover")]:
|
|
86
|
-
[o("text-color-active")]:
|
|
79
|
+
[`&${c}-variant-outlined, &${c}-variant-dashed`]: {
|
|
80
|
+
[o("border-color")]: r("color-base"),
|
|
81
|
+
[o("border-color-hover")]: r("color-hover"),
|
|
82
|
+
[o("border-color-active")]: r("color-active"),
|
|
83
|
+
[o("bg-color")]: r("bg-color-container"),
|
|
84
|
+
[o("text-color")]: r("color-base"),
|
|
85
|
+
[o("text-color-hover")]: r("color-hover"),
|
|
86
|
+
[o("text-color-active")]: r("color-active"),
|
|
87
87
|
// Box Shadow
|
|
88
|
-
boxShadow:
|
|
88
|
+
boxShadow: r("shadow")
|
|
89
89
|
},
|
|
90
90
|
// >>>>> Dashed
|
|
91
|
-
[`&${
|
|
91
|
+
[`&${c}-variant-dashed`]: {
|
|
92
92
|
[o("border-style")]: "dashed",
|
|
93
|
-
[o("bg-color-disabled")]:
|
|
93
|
+
[o("bg-color-disabled")]: l.dashedBgDisabled
|
|
94
94
|
},
|
|
95
95
|
// >>>>> Filled
|
|
96
|
-
[`&${
|
|
96
|
+
[`&${c}-variant-filled`]: {
|
|
97
97
|
[o("border-color")]: "transparent",
|
|
98
|
-
[o("text-color")]:
|
|
99
|
-
[o("bg-color")]:
|
|
100
|
-
[o("bg-color-hover")]:
|
|
101
|
-
[o("bg-color-active")]:
|
|
98
|
+
[o("text-color")]: r("color-base"),
|
|
99
|
+
[o("bg-color")]: r("color-light"),
|
|
100
|
+
[o("bg-color-hover")]: r("color-light-hover"),
|
|
101
|
+
[o("bg-color-active")]: r("color-light-active")
|
|
102
102
|
},
|
|
103
103
|
// >>>>> Text & Link
|
|
104
|
-
[`&${
|
|
104
|
+
[`&${c}-variant-text, &${c}-variant-link`]: {
|
|
105
105
|
[o("border-color")]: "transparent",
|
|
106
|
-
[o("text-color")]:
|
|
107
|
-
[o("text-color-hover")]:
|
|
108
|
-
[o("text-color-active")]:
|
|
106
|
+
[o("text-color")]: r("color-base"),
|
|
107
|
+
[o("text-color-hover")]: r("color-hover"),
|
|
108
|
+
[o("text-color-active")]: r("color-active"),
|
|
109
109
|
[o("bg-color")]: "transparent",
|
|
110
110
|
[o("bg-color-hover")]: "transparent",
|
|
111
111
|
[o("bg-color-active")]: "transparent",
|
|
112
|
-
[`&:disabled, &${
|
|
112
|
+
[`&:disabled, &${l.componentCls}-disabled`]: {
|
|
113
113
|
background: "transparent",
|
|
114
114
|
borderColor: "transparent"
|
|
115
115
|
}
|
|
116
116
|
},
|
|
117
117
|
// >>>>> Text
|
|
118
|
-
[`&${
|
|
119
|
-
[o("bg-color-hover")]:
|
|
120
|
-
[o("bg-color-active")]:
|
|
118
|
+
[`&${c}-variant-text`]: {
|
|
119
|
+
[o("bg-color-hover")]: r("color-light"),
|
|
120
|
+
[o("bg-color-active")]: r("color-light-active")
|
|
121
121
|
}
|
|
122
122
|
},
|
|
123
123
|
// ==============================================================
|
|
@@ -126,90 +126,90 @@ const n = (r) => {
|
|
|
126
126
|
{
|
|
127
127
|
// ======================== By Default ========================
|
|
128
128
|
// >>>>> Link
|
|
129
|
-
[`&${
|
|
130
|
-
[o("color-base")]:
|
|
131
|
-
[o("color-hover")]:
|
|
132
|
-
[o("color-active")]:
|
|
129
|
+
[`&${c}-variant-link`]: {
|
|
130
|
+
[o("color-base")]: l.colorLink,
|
|
131
|
+
[o("color-hover")]: l.colorLinkHover,
|
|
132
|
+
[o("color-active")]: l.colorLinkActive
|
|
133
133
|
},
|
|
134
134
|
// ======================== Compatible ========================
|
|
135
135
|
// >>>>> Primary
|
|
136
|
-
[`&${
|
|
137
|
-
[o("color-base")]:
|
|
138
|
-
[o("color-hover")]:
|
|
139
|
-
[o("color-active")]:
|
|
140
|
-
[o("color-light")]:
|
|
141
|
-
[o("color-light-hover")]:
|
|
142
|
-
[o("color-light-active")]:
|
|
143
|
-
[o("shadow")]:
|
|
144
|
-
[`&${
|
|
145
|
-
[o("text-color")]:
|
|
146
|
-
[o("text-color-hover")]:
|
|
147
|
-
[o("text-color-active")]:
|
|
136
|
+
[`&${c}-color-primary`]: {
|
|
137
|
+
[o("color-base")]: l.colorPrimary,
|
|
138
|
+
[o("color-hover")]: l.colorPrimaryHover,
|
|
139
|
+
[o("color-active")]: l.colorPrimaryActive,
|
|
140
|
+
[o("color-light")]: l.colorPrimaryBg,
|
|
141
|
+
[o("color-light-hover")]: l.colorPrimaryBgHover,
|
|
142
|
+
[o("color-light-active")]: l.colorPrimaryBorder,
|
|
143
|
+
[o("shadow")]: l.primaryShadow,
|
|
144
|
+
[`&${c}-variant-solid`]: {
|
|
145
|
+
[o("text-color")]: l.primaryColor,
|
|
146
|
+
[o("text-color-hover")]: r("text-color"),
|
|
147
|
+
[o("text-color-active")]: r("text-color")
|
|
148
148
|
}
|
|
149
149
|
},
|
|
150
150
|
// >>>>> Danger
|
|
151
|
-
[`&${
|
|
152
|
-
[o("color-base")]:
|
|
153
|
-
[o("color-hover")]:
|
|
154
|
-
[o("color-active")]:
|
|
155
|
-
[o("color-light")]:
|
|
156
|
-
[o("color-light-hover")]:
|
|
157
|
-
[o("color-light-active")]:
|
|
158
|
-
[o("shadow")]:
|
|
159
|
-
[`&${
|
|
160
|
-
[o("text-color")]:
|
|
161
|
-
[o("text-color-hover")]:
|
|
162
|
-
[o("text-color-active")]:
|
|
151
|
+
[`&${c}-color-dangerous`]: {
|
|
152
|
+
[o("color-base")]: l.colorError,
|
|
153
|
+
[o("color-hover")]: l.colorErrorHover,
|
|
154
|
+
[o("color-active")]: l.colorErrorActive,
|
|
155
|
+
[o("color-light")]: l.colorErrorBg,
|
|
156
|
+
[o("color-light-hover")]: l.colorErrorBgFilledHover,
|
|
157
|
+
[o("color-light-active")]: l.colorErrorBgActive,
|
|
158
|
+
[o("shadow")]: l.dangerShadow,
|
|
159
|
+
[`&${c}-variant-solid`]: {
|
|
160
|
+
[o("text-color")]: l.dangerColor,
|
|
161
|
+
[o("text-color-hover")]: r("text-color"),
|
|
162
|
+
[o("text-color-active")]: r("text-color")
|
|
163
163
|
}
|
|
164
164
|
},
|
|
165
165
|
// >>>>> Default
|
|
166
|
-
[`&${
|
|
167
|
-
[o("solid-bg-color")]:
|
|
168
|
-
[o("solid-bg-color-hover")]:
|
|
169
|
-
[o("solid-bg-color-active")]:
|
|
170
|
-
[o("color-base")]:
|
|
171
|
-
[o("color-hover")]:
|
|
172
|
-
[o("color-active")]:
|
|
173
|
-
[o("color-light")]:
|
|
174
|
-
[o("color-light-hover")]:
|
|
175
|
-
[o("color-light-active")]:
|
|
176
|
-
[o("text-color")]:
|
|
177
|
-
[o("text-color-hover")]:
|
|
178
|
-
[o("text-color-active")]:
|
|
179
|
-
[o("shadow")]:
|
|
180
|
-
[`&${
|
|
181
|
-
[o("text-color")]:
|
|
182
|
-
[o("text-color-hover")]:
|
|
183
|
-
[o("text-color-active")]:
|
|
166
|
+
[`&${c}-color-default`]: {
|
|
167
|
+
[o("solid-bg-color")]: l.colorBgSolid,
|
|
168
|
+
[o("solid-bg-color-hover")]: l.colorBgSolidHover,
|
|
169
|
+
[o("solid-bg-color-active")]: l.colorBgSolidActive,
|
|
170
|
+
[o("color-base")]: l.defaultBorderColor,
|
|
171
|
+
[o("color-hover")]: l.defaultHoverBorderColor,
|
|
172
|
+
[o("color-active")]: l.defaultActiveBorderColor,
|
|
173
|
+
[o("color-light")]: l.colorFillTertiary,
|
|
174
|
+
[o("color-light-hover")]: l.colorFillSecondary,
|
|
175
|
+
[o("color-light-active")]: l.colorFill,
|
|
176
|
+
[o("text-color")]: l.colorText,
|
|
177
|
+
[o("text-color-hover")]: l.defaultHoverBorderColor,
|
|
178
|
+
[o("text-color-active")]: l.defaultActiveBorderColor,
|
|
179
|
+
[o("shadow")]: l.defaultShadow,
|
|
180
|
+
[`&${c}-variant-solid`]: {
|
|
181
|
+
[o("text-color")]: l.solidTextColor,
|
|
182
|
+
[o("text-color-hover")]: r("text-color"),
|
|
183
|
+
[o("text-color-active")]: r("text-color")
|
|
184
184
|
},
|
|
185
|
-
[`&${
|
|
186
|
-
[o("text-color-hover")]:
|
|
187
|
-
[o("text-color-active")]:
|
|
185
|
+
[`&${c}-variant-filled, &${c}-variant-text`]: {
|
|
186
|
+
[o("text-color-hover")]: r("text-color"),
|
|
187
|
+
[o("text-color-active")]: r("text-color")
|
|
188
188
|
},
|
|
189
|
-
[`&${
|
|
190
|
-
[o("bg-color-hover")]:
|
|
191
|
-
[o("bg-color-active")]:
|
|
189
|
+
[`&${c}-variant-outlined, &${c}-variant-dashed`]: {
|
|
190
|
+
[o("bg-color-hover")]: l.defaultHoverBg,
|
|
191
|
+
[o("bg-color-active")]: l.defaultActiveBg
|
|
192
192
|
},
|
|
193
|
-
[`&${
|
|
194
|
-
[`&${
|
|
195
|
-
[o("text-color")]:
|
|
196
|
-
[o("border-color")]:
|
|
193
|
+
[`&${c}-background-ghost`]: {
|
|
194
|
+
[`&${c}-variant-outlined, &${c}-variant-dashed`]: {
|
|
195
|
+
[o("text-color")]: l.defaultGhostColor,
|
|
196
|
+
[o("border-color")]: l.defaultGhostBorderColor
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
200
|
},
|
|
201
201
|
// >>>>> Preset Colors
|
|
202
|
-
|
|
203
|
-
const
|
|
202
|
+
x.map((e) => {
|
|
203
|
+
const a = l[`${e}6`], i = l[`${e}1`], d = l[`${e}5`], v = l[`${e}2`], b = l[`${e}3`], s = l[`${e}7`], h = l[`${e}ShadowColor`];
|
|
204
204
|
return {
|
|
205
|
-
[`&${
|
|
206
|
-
[o("color-base")]:
|
|
207
|
-
[o("color-hover")]:
|
|
208
|
-
[o("color-active")]:
|
|
209
|
-
[o("color-light")]:
|
|
210
|
-
[o("color-light-hover")]:
|
|
211
|
-
[o("color-light-active")]:
|
|
212
|
-
[o("shadow")]:
|
|
205
|
+
[`&${c}-color-${e}`]: {
|
|
206
|
+
[o("color-base")]: a,
|
|
207
|
+
[o("color-hover")]: d,
|
|
208
|
+
[o("color-active")]: s,
|
|
209
|
+
[o("color-light")]: i,
|
|
210
|
+
[o("color-light-hover")]: v,
|
|
211
|
+
[o("color-light-active")]: b,
|
|
212
|
+
[o("shadow")]: h
|
|
213
213
|
}
|
|
214
214
|
};
|
|
215
215
|
}),
|
|
@@ -218,11 +218,11 @@ const n = (r) => {
|
|
|
218
218
|
// ==============================================================
|
|
219
219
|
{
|
|
220
220
|
// Disabled
|
|
221
|
-
[`&:disabled, &${
|
|
221
|
+
[`&:disabled, &${l.componentCls}-disabled`]: {
|
|
222
222
|
cursor: "not-allowed",
|
|
223
|
-
borderColor:
|
|
224
|
-
background:
|
|
225
|
-
color:
|
|
223
|
+
borderColor: l.colorBorderDisabled,
|
|
224
|
+
background: r("bg-color-disabled"),
|
|
225
|
+
color: l.colorTextDisabled,
|
|
226
226
|
boxShadow: "none"
|
|
227
227
|
}
|
|
228
228
|
},
|
|
@@ -231,7 +231,7 @@ const n = (r) => {
|
|
|
231
231
|
// ==============================================================
|
|
232
232
|
{
|
|
233
233
|
// Ghost
|
|
234
|
-
[`&${
|
|
234
|
+
[`&${c}-background-ghost`]: {
|
|
235
235
|
[o("bg-color")]: "transparent",
|
|
236
236
|
[o("shadow")]: "none"
|
|
237
237
|
}
|
|
@@ -240,6 +240,6 @@ const n = (r) => {
|
|
|
240
240
|
};
|
|
241
241
|
};
|
|
242
242
|
export {
|
|
243
|
-
|
|
243
|
+
C as default
|
|
244
244
|
};
|
|
245
245
|
//# sourceMappingURL=variant.js.map
|