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/steps/index.js"],"sourcesContent":["\"use client\";\n\nimport * as React from 'react';\nimport CheckOutlined from \"@ant-design/icons/es/icons/CheckOutlined\";\nimport CloseOutlined from \"@ant-design/icons/es/icons/CloseOutlined\";\nimport RcSteps from '@rc-component/steps';\nimport { clsx } from 'clsx';\nimport { useMergeSemantic } from '../_util/hooks';\nimport { devUseWarning } from '../_util/warning';\nimport Wave from '../_util/wave';\nimport { TARGET_CLS } from '../_util/wave/interface';\nimport { useComponentConfig } from '../config-provider/context';\nimport useSize from '../config-provider/hooks/useSize';\nimport useBreakpoint from '../grid/hooks/useBreakpoint';\nimport Tooltip from '../tooltip';\nimport { InternalContext } from './context';\nimport PanelArrow from './PanelArrow';\nimport ProgressIcon from './ProgressIcon';\nimport useStyle from './style';\nconst waveEffectClassNames = {\n itemIcon: TARGET_CLS\n};\nconst Steps = props => {\n const {\n // Style\n size,\n className,\n rootClassName,\n style,\n variant = 'filled',\n type,\n classNames,\n styles,\n // Layout\n direction,\n orientation,\n responsive = true,\n progressDot,\n labelPlacement,\n titlePlacement,\n ellipsis,\n offset = 0,\n // Data\n items,\n percent,\n current = 0,\n onChange,\n // Render\n iconRender,\n // MISC\n ...restProps\n } = props;\n const internalContent = React.useContext(InternalContext);\n const contextContent = useComponentConfig('steps');\n const {\n getPrefixCls,\n direction: rtlDirection,\n className: contextClassName,\n style: contextStyle\n } = contextContent;\n let contextClassNames;\n let contextStyles;\n let components = {};\n if (internalContent) {\n components = {\n root: internalContent.rootComponent,\n item: internalContent.itemComponent\n };\n } else {\n ({\n classNames: contextClassNames,\n styles: contextStyles\n } = contextContent);\n }\n const prefixCls = getPrefixCls('steps', props.prefixCls);\n const itemIconCls = `${prefixCls}-item-icon`;\n const [hashId, cssVarCls] = useStyle(prefixCls);\n // ============================= Size =============================\n const mergedSize = useSize(size);\n // ============================= Item =============================\n const mergedItems = React.useMemo(() => (items || []).filter(Boolean), [items]);\n // ============================ Layout ============================\n const {\n xs\n } = useBreakpoint(responsive);\n // Type\n const mergedType = React.useMemo(() => {\n if (type && type !== 'default') {\n return type;\n }\n if (progressDot) {\n return 'dot';\n }\n return type;\n }, [progressDot, type]);\n const isInline = mergedType === 'inline';\n const isDot = mergedType === 'dot' || mergedType === 'inline';\n // Progress Dot Render function\n const legacyProgressDotRender = React.useMemo(() => {\n return mergedType === 'dot' && typeof progressDot === 'function' ? progressDot : undefined;\n }, [mergedType, progressDot]);\n const mergedOrientation = React.useMemo(() => {\n const nextOrientation = orientation || direction;\n if (mergedType === 'panel') {\n return 'horizontal';\n }\n return responsive && xs || nextOrientation === 'vertical' ? 'vertical' : 'horizontal';\n }, [orientation, direction, mergedType, responsive, xs]);\n const mergedTitlePlacement = React.useMemo(() => {\n if (isDot || mergedOrientation === 'vertical') {\n return mergedOrientation === 'vertical' ? 'horizontal' : 'vertical';\n }\n if (type === 'navigation') {\n return 'horizontal';\n }\n return titlePlacement || labelPlacement || 'horizontal';\n }, [isDot, labelPlacement, mergedOrientation, titlePlacement, type]);\n // ========================== Percentage ==========================\n const mergedPercent = isInline ? undefined : percent;\n // =========== Merged Props for Semantic ===========\n const mergedProps = {\n ...props,\n variant,\n size: mergedSize,\n type: mergedType,\n orientation: mergedOrientation,\n titlePlacement: mergedTitlePlacement,\n current,\n percent: mergedPercent,\n responsive,\n offset\n };\n // ============================ Styles ============================\n const [mergedClassNames, mergedStyles] = useMergeSemantic([waveEffectClassNames, contextClassNames, classNames], [contextStyles, styles], {\n props: mergedProps\n });\n // ============================= Icon =============================\n const internalIconRender = (_, info) => {\n const {\n item,\n index,\n active,\n components: {\n Icon: StepIcon\n }\n } = info;\n const {\n status,\n icon\n } = item;\n let iconContent = null;\n if (isDot || icon) {\n iconContent = icon;\n } else {\n switch (status) {\n case 'finish':\n iconContent = /*#__PURE__*/React.createElement(CheckOutlined, {\n className: `${itemIconCls}-finish`\n });\n break;\n case 'error':\n iconContent = /*#__PURE__*/React.createElement(CloseOutlined, {\n className: `${itemIconCls}-error`\n });\n break;\n default:\n {\n let numNode = /*#__PURE__*/React.createElement(\"span\", {\n className: `${itemIconCls}-number`\n }, info.index + 1);\n if (status === 'process' && mergedPercent !== undefined) {\n numNode = /*#__PURE__*/React.createElement(ProgressIcon, {\n prefixCls: prefixCls,\n percent: mergedPercent\n }, numNode);\n }\n iconContent = numNode;\n }\n }\n }\n let iconNode = /*#__PURE__*/React.createElement(StepIcon, null, iconContent);\n // Custom Render Props\n if (iconRender) {\n iconNode = iconRender(iconNode, {\n index,\n active,\n item,\n components: {\n Icon: StepIcon\n }\n });\n } else if (typeof legacyProgressDotRender === 'function') {\n iconNode = legacyProgressDotRender(iconNode, {\n index,\n ...item\n });\n }\n return iconNode;\n };\n // ============================ Custom ============================\n const itemRender = (itemNode, itemInfo) => {\n let content = itemNode;\n if (isInline && itemInfo.item.content) {\n content = /*#__PURE__*/React.createElement(Tooltip, {\n destroyOnHidden: true,\n title: itemInfo.item.content\n }, itemNode);\n }\n return /*#__PURE__*/React.createElement(Wave, {\n component: \"Steps\",\n disabled: itemInfo.item.disabled || !onChange,\n colorSource: variant === 'filled' ? 'color' : null\n }, content);\n };\n const itemWrapperRender = mergedType === 'panel' ? itemNode => {\n return /*#__PURE__*/React.createElement(React.Fragment, null, itemNode, /*#__PURE__*/React.createElement(PanelArrow, {\n prefixCls: prefixCls\n }));\n } : undefined;\n // ============================ Styles ============================\n const mergedStyle = {\n '--steps-items-offset': `${offset}`,\n ...contextStyle,\n ...style\n };\n const stepsClassName = clsx(contextClassName, `${prefixCls}-${variant}`, {\n [`${prefixCls}-${mergedType}`]: mergedType !== 'dot' ? mergedType : false,\n [`${prefixCls}-rtl`]: rtlDirection === 'rtl',\n [`${prefixCls}-dot`]: isDot,\n [`${prefixCls}-ellipsis`]: ellipsis,\n [`${prefixCls}-with-progress`]: mergedPercent !== undefined,\n [`${prefixCls}-${mergedSize}`]: mergedSize\n }, className, rootClassName, hashId, cssVarCls);\n // =========================== Warning ============================\n if (process.env.NODE_ENV !== 'production') {\n const warning = devUseWarning('Steps');\n warning.deprecated(!labelPlacement, 'labelPlacement', 'titlePlacement');\n warning.deprecated(!progressDot, 'progressDot', 'type=\"dot\"');\n warning.deprecated(!direction, 'direction', 'orientation');\n warning.deprecated(mergedItems.every(item => !item.description), 'items.description', 'items.content');\n }\n // ============================ Render ============================\n return /*#__PURE__*/React.createElement(RcSteps, {\n ...restProps,\n // Style\n prefixCls: prefixCls,\n className: stepsClassName,\n style: mergedStyle,\n classNames: mergedClassNames,\n styles: mergedStyles,\n // Layout\n orientation: mergedOrientation,\n titlePlacement: mergedTitlePlacement,\n components: components,\n // Data\n current: current,\n items: mergedItems,\n onChange: onChange,\n // Render\n iconRender: internalIconRender,\n itemRender: itemRender,\n itemWrapperRender: itemWrapperRender\n });\n};\nif (process.env.NODE_ENV !== 'production') {\n Steps.displayName = 'Steps';\n}\nexport default Steps;"],"names":["waveEffectClassNames","TARGET_CLS","Steps","props","size","className","rootClassName","style","variant","type","classNames","styles","direction","orientation","responsive","progressDot","labelPlacement","titlePlacement","ellipsis","offset","items","percent","current","onChange","iconRender","restProps","internalContent","React","InternalContext","contextContent","useComponentConfig","getPrefixCls","rtlDirection","contextClassName","contextStyle","contextClassNames","contextStyles","components","prefixCls","itemIconCls","hashId","cssVarCls","useStyle","mergedSize","useSize","mergedItems","xs","useBreakpoint","mergedType","isInline","isDot","legacyProgressDotRender","mergedOrientation","nextOrientation","mergedTitlePlacement","mergedPercent","mergedProps","mergedClassNames","mergedStyles","useMergeSemantic","internalIconRender","_","info","item","index","active","StepIcon","status","icon","iconContent","CheckOutlined","CloseOutlined","numNode","ProgressIcon","iconNode","itemRender","itemNode","itemInfo","content","Tooltip","Wave","itemWrapperRender","PanelArrow","mergedStyle","stepsClassName","clsx","process","warning","devUseWarning","RcSteps"],"mappings":";;;;;;;;;;;;;;;;;;AAmBA,MAAMA,KAAuB;AAAA,EAC3B,UAAUC;AACZ,GACMC,KAAQ,CAAAC,MAAS;AACrB,QAAM;AAAA;AAAA,IAEJ,MAAAC;AAAA,IACA,WAAAC;AAAA,IACA,eAAAC;AAAA,IACA,OAAAC;AAAA,IACA,SAAAC,IAAU;AAAA,IACV,MAAAC;AAAA,IACA,YAAAC;AAAA,IACA,QAAAC;AAAA;AAAA,IAEA,WAAAC;AAAA,IACA,aAAAC;AAAA,IACA,YAAAC,IAA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;AAAA,IACP,UAAUtB;AAAA;AAAA,IAEV,YAAYqC;AAAA,IACZ,YAAYe;AAAA,IACZ,mBAAmBM;AAAA,EACvB,CAAG;AACH;AACIK,EAAQ,IAAI,aAAa,iBAC3BpF,GAAM,cAAc;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../node_modules/antd/es/steps/index.js"],"sourcesContent":["\"use client\";\n\nimport * as React from 'react';\nimport CheckOutlined from \"@ant-design/icons/es/icons/CheckOutlined\";\nimport CloseOutlined from \"@ant-design/icons/es/icons/CloseOutlined\";\nimport RcSteps from '@rc-component/steps';\nimport { clsx } from 'clsx';\nimport { useMergeSemantic } from '../_util/hooks';\nimport { devUseWarning } from '../_util/warning';\nimport Wave from '../_util/wave';\nimport { TARGET_CLS } from '../_util/wave/interface';\nimport { useComponentConfig } from '../config-provider/context';\nimport useSize from '../config-provider/hooks/useSize';\nimport useBreakpoint from '../grid/hooks/useBreakpoint';\nimport { genCssVar } from '../theme/util/genStyleUtils';\nimport Tooltip from '../tooltip';\nimport { InternalContext } from './context';\nimport PanelArrow from './PanelArrow';\nimport ProgressIcon from './ProgressIcon';\nimport useStyle from './style';\nconst waveEffectClassNames = {\n itemIcon: TARGET_CLS\n};\nconst Steps = props => {\n const {\n // Style\n size,\n className,\n rootClassName,\n style,\n variant = 'filled',\n type,\n classNames,\n styles,\n // Layout\n direction,\n orientation,\n responsive = true,\n progressDot,\n labelPlacement,\n titlePlacement,\n ellipsis,\n offset = 0,\n // Data\n items,\n percent,\n current = 0,\n onChange,\n // Render\n iconRender,\n // MISC\n ...restProps\n } = props;\n const internalContent = React.useContext(InternalContext);\n const contextContent = useComponentConfig('steps');\n const {\n getPrefixCls,\n direction: rtlDirection,\n className: contextClassName,\n style: contextStyle\n } = contextContent;\n let contextClassNames;\n let contextStyles;\n let components = {};\n if (internalContent) {\n components = {\n root: internalContent.rootComponent,\n item: internalContent.itemComponent\n };\n } else {\n ({\n classNames: contextClassNames,\n styles: contextStyles\n } = contextContent);\n }\n const rootPrefixCls = getPrefixCls();\n const prefixCls = getPrefixCls('steps', props.prefixCls);\n const itemIconCls = `${prefixCls}-item-icon`;\n const [hashId, cssVarCls] = useStyle(prefixCls);\n const [varName] = genCssVar(rootPrefixCls, 'cmp-steps');\n // ============================= Size =============================\n const mergedSize = useSize(size);\n // ============================= Item =============================\n const mergedItems = React.useMemo(() => (items || []).filter(Boolean), [items]);\n // ============================ Layout ============================\n const {\n xs\n } = useBreakpoint(responsive);\n // Type\n const mergedType = React.useMemo(() => {\n if (type && type !== 'default') {\n return type;\n }\n if (progressDot) {\n return 'dot';\n }\n return type;\n }, [progressDot, type]);\n const isInline = mergedType === 'inline';\n const isDot = mergedType === 'dot' || mergedType === 'inline';\n // Progress Dot Render function\n const legacyProgressDotRender = React.useMemo(() => {\n return mergedType === 'dot' && typeof progressDot === 'function' ? progressDot : undefined;\n }, [mergedType, progressDot]);\n const mergedOrientation = React.useMemo(() => {\n const nextOrientation = orientation || direction;\n if (mergedType === 'panel') {\n return 'horizontal';\n }\n return responsive && xs || nextOrientation === 'vertical' ? 'vertical' : 'horizontal';\n }, [orientation, direction, mergedType, responsive, xs]);\n const mergedTitlePlacement = React.useMemo(() => {\n if (isDot || mergedOrientation === 'vertical') {\n return mergedOrientation === 'vertical' ? 'horizontal' : 'vertical';\n }\n if (type === 'navigation') {\n return 'horizontal';\n }\n return titlePlacement || labelPlacement || 'horizontal';\n }, [isDot, labelPlacement, mergedOrientation, titlePlacement, type]);\n // ========================== Percentage ==========================\n const mergedPercent = isInline ? undefined : percent;\n // =========== Merged Props for Semantic ===========\n const mergedProps = {\n ...props,\n variant,\n size: mergedSize,\n type: mergedType,\n orientation: mergedOrientation,\n titlePlacement: mergedTitlePlacement,\n current,\n percent: mergedPercent,\n responsive,\n offset\n };\n // ============================ Styles ============================\n const [mergedClassNames, mergedStyles] = useMergeSemantic([waveEffectClassNames, contextClassNames, classNames], [contextStyles, styles], {\n props: mergedProps\n });\n // ============================= Icon =============================\n const internalIconRender = (_, info) => {\n const {\n item,\n index,\n active,\n components: {\n Icon: StepIcon\n }\n } = info;\n const {\n status,\n icon\n } = item;\n let iconContent = null;\n if (isDot || icon) {\n iconContent = icon;\n } else {\n switch (status) {\n case 'finish':\n iconContent = /*#__PURE__*/React.createElement(CheckOutlined, {\n className: `${itemIconCls}-finish`\n });\n break;\n case 'error':\n iconContent = /*#__PURE__*/React.createElement(CloseOutlined, {\n className: `${itemIconCls}-error`\n });\n break;\n default:\n {\n let numNode = /*#__PURE__*/React.createElement(\"span\", {\n className: `${itemIconCls}-number`\n }, info.index + 1);\n if (status === 'process' && mergedPercent !== undefined) {\n numNode = /*#__PURE__*/React.createElement(ProgressIcon, {\n prefixCls: prefixCls,\n rootPrefixCls: rootPrefixCls,\n percent: mergedPercent\n }, numNode);\n }\n iconContent = numNode;\n }\n }\n }\n let iconNode = /*#__PURE__*/React.createElement(StepIcon, null, iconContent);\n // Custom Render Props\n if (iconRender) {\n iconNode = iconRender(iconNode, {\n index,\n active,\n item,\n components: {\n Icon: StepIcon\n }\n });\n } else if (typeof legacyProgressDotRender === 'function') {\n iconNode = legacyProgressDotRender(iconNode, {\n index,\n ...item\n });\n }\n return iconNode;\n };\n // ============================ Custom ============================\n const itemRender = (itemNode, itemInfo) => {\n let content = itemNode;\n if (isInline && itemInfo.item.content) {\n content = /*#__PURE__*/React.createElement(Tooltip, {\n destroyOnHidden: true,\n title: itemInfo.item.content\n }, itemNode);\n }\n return /*#__PURE__*/React.createElement(Wave, {\n component: \"Steps\",\n disabled: itemInfo.item.disabled || !onChange,\n colorSource: variant === 'filled' ? 'color' : null\n }, content);\n };\n const itemWrapperRender = mergedType === 'panel' ? itemNode => {\n return /*#__PURE__*/React.createElement(React.Fragment, null, itemNode, /*#__PURE__*/React.createElement(PanelArrow, {\n prefixCls: prefixCls\n }));\n } : undefined;\n // ============================ Styles ============================\n const mergedStyle = {\n [varName('items-offset')]: `${offset}`,\n ...contextStyle,\n ...style\n };\n const stepsClassName = clsx(contextClassName, `${prefixCls}-${variant}`, {\n [`${prefixCls}-${mergedType}`]: mergedType !== 'dot' ? mergedType : false,\n [`${prefixCls}-rtl`]: rtlDirection === 'rtl',\n [`${prefixCls}-dot`]: isDot,\n [`${prefixCls}-ellipsis`]: ellipsis,\n [`${prefixCls}-with-progress`]: mergedPercent !== undefined,\n [`${prefixCls}-${mergedSize}`]: mergedSize\n }, className, rootClassName, hashId, cssVarCls);\n // =========================== Warning ============================\n if (process.env.NODE_ENV !== 'production') {\n const warning = devUseWarning('Steps');\n warning.deprecated(!labelPlacement, 'labelPlacement', 'titlePlacement');\n warning.deprecated(!progressDot, 'progressDot', 'type=\"dot\"');\n warning.deprecated(!direction, 'direction', 'orientation');\n warning.deprecated(mergedItems.every(item => !item.description), 'items.description', 'items.content');\n }\n // ============================ Render ============================\n return /*#__PURE__*/React.createElement(RcSteps, {\n ...restProps,\n // Style\n prefixCls: prefixCls,\n className: stepsClassName,\n style: mergedStyle,\n classNames: mergedClassNames,\n styles: mergedStyles,\n // Layout\n orientation: mergedOrientation,\n titlePlacement: mergedTitlePlacement,\n components: components,\n // Data\n current: current,\n items: mergedItems,\n onChange: onChange,\n // Render\n iconRender: internalIconRender,\n itemRender: itemRender,\n itemWrapperRender: itemWrapperRender\n });\n};\nif (process.env.NODE_ENV !== 'production') {\n Steps.displayName = 'Steps';\n}\nexport default Steps;"],"names":["waveEffectClassNames","TARGET_CLS","Steps","props","size","className","rootClassName","style","variant","type","classNames","styles","direction","orientation","responsive","progressDot","labelPlacement","titlePlacement","ellipsis","offset","items","percent","current","onChange","iconRender","restProps","internalContent","React","InternalContext","contextContent","useComponentConfig","getPrefixCls","rtlDirection","contextClassName","contextStyle","contextClassNames","contextStyles","components","rootPrefixCls","prefixCls","itemIconCls","hashId","cssVarCls","useStyle","varName","genCssVar","mergedSize","useSize","mergedItems","xs","useBreakpoint","mergedType","isInline","isDot","legacyProgressDotRender","mergedOrientation","nextOrientation","mergedTitlePlacement","mergedPercent","mergedProps","mergedClassNames","mergedStyles","useMergeSemantic","internalIconRender","_","info","item","index","active","StepIcon","status","icon","iconContent","CheckOutlined","CloseOutlined","numNode","ProgressIcon","iconNode","itemRender","itemNode","itemInfo","content","Tooltip","Wave","itemWrapperRender","PanelArrow","mergedStyle","stepsClassName","clsx","process","warning","devUseWarning","RcSteps"],"mappings":";;;;;;;;;;;;;;;;;;;AAoBA,MAAMA,KAAuB;AAAA,EAC3B,UAAUC;AACZ,GACMC,KAAQ,CAAAC,MAAS;AACrB,QAAM;AAAA;AAAA,IAEJ,MAAAC;AAAA,IACA,WAAAC;AAAA,IACA,eAAAC;AAAA,IACA,OAAAC;AAAA,IACA,SAAAC,IAAU;AAAA,IACV,MAAAC;AAAA,IACA,YAAAC;AAAA,IACA,QAAAC;AAAA;AAAA,IAEA,WAAAC;AAAA,IACA,aAAAC;AAAA,IACA,YAAAC,IAAa;AAAA,IACb,aAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,UAAAC;AAAA,IACA,QAAAC,IAAS;AAAA;AAAA,IAET,OAAAC;AAAA,IACA,SAAAC;AAAA,IACA,SAAAC,IAAU;AAAA,IACV,UAAAC;AAAA;AAAA,IAEA,YAAAC;AAAA;AAAA,IAEA,GAAGC;AAAA,EACP,IAAMtB,GACEuB,IAAkBC,EAAM,WAAWC,EAAe,GAClDC,IAAiBC,GAAmB,OAAO,GAC3C;AAAA,IACJ,cAAAC;AAAA,IACA,WAAWC;AAAA,IACX,WAAWC;AAAA,IACX,OAAOC;AAAA,EACX,IAAML;AACJ,MAAIM,GACAC,GACAC,IAAa,CAAA;AACjB,EAAIX,IACFW,IAAa;AAAA,IACX,MAAMX,EAAgB;AAAA,IACtB,MAAMA,EAAgB;AAAA,EAC5B,IAEK;AAAA,IACC,YAAYS;AAAA,IACZ,QAAQC;AAAA,EACd,IAAQP;AAEN,QAAMS,IAAgBP,EAAY,GAC5BQ,IAAYR,EAAa,SAAS5B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AAS,IAAIO,CAAU,EAAE,GAAGA;AAAA,EACpC,GAAKzC,GAAWC,GAAemC,IAAQC,EAAS;AAE9C,MAAI+C,EAAQ,IAAI,aAAa,cAAc;AACzC,UAAMC,IAAUC,GAAc,OAAO;AACrC,IAAAD,EAAQ,WAAW,CAAC1E,GAAgB,kBAAkB,gBAAgB,GACtE0E,EAAQ,WAAW,CAAC3E,GAAa,eAAe,YAAY,GAC5D2E,EAAQ,WAAW,CAAC9E,GAAW,aAAa,aAAa,GACzD8E,EAAQ,WAAW1C,EAAY,MAAM,CAAAkB,MAAQ,CAACA,EAAK,WAAW,GAAG,qBAAqB,eAAe;AAAA,EACvG;AAEA,SAAoB,gBAAAvC,EAAM,cAAciE,IAAS;AAAA,IAC/C,GAAGnE;AAAA;AAAA,IAEH,WAAWc;AAAA,IACX,WAAWgD;AAAA,IACX,OAAOD;AAAA,IACP,YAAY1B;AAAA,IACZ,QAAQC;AAAA;AAAA,IAER,aAAaN;AAAA,IACb,gBAAgBE;AAAA,IAChB,YAAYpB;AAAA;AAAA,IAEZ,SAASf;AAAA,IACT,OAAO0B;AAAA,IACP,UAAUzB;AAAA;AAAA,IAEV,YAAYwC;AAAA,IACZ,YAAYe;AAAA,IACZ,mBAAmBM;AAAA,EACvB,CAAG;AACH;AACIK,EAAQ,IAAI,aAAa,iBAC3BvF,GAAM,cAAc;","x_google_ignoreList":[0]}
|
|
@@ -1,18 +1,20 @@
|
|
|
1
|
-
|
|
1
|
+
import { genCssVar as e } from "../../theme/util/genStyleUtils.js";
|
|
2
|
+
const s = (a) => {
|
|
2
3
|
const {
|
|
3
|
-
componentCls:
|
|
4
|
-
|
|
4
|
+
componentCls: i,
|
|
5
|
+
antCls: o
|
|
6
|
+
} = a, r = `${i}-item`, [n, t] = e(o, "cmp-steps");
|
|
5
7
|
return {
|
|
6
|
-
[`${
|
|
7
|
-
[`> ${
|
|
8
|
+
[`${i}-horizontal`]: {
|
|
9
|
+
[`> ${r}`]: {
|
|
8
10
|
flex: "1 1 auto",
|
|
9
|
-
minWidth:
|
|
10
|
-
[`${
|
|
11
|
-
"
|
|
11
|
+
minWidth: a.iconSize,
|
|
12
|
+
[`${r}-rail`]: {
|
|
13
|
+
[n("horizontal-rail-margin")]: `calc(${t("icon-size-max")} / 2 + ${t("item-wrapper-padding-top")})`,
|
|
12
14
|
position: "static",
|
|
13
|
-
marginTop: "
|
|
15
|
+
marginTop: t("horizontal-rail-margin"),
|
|
14
16
|
width: "auto",
|
|
15
|
-
borderBlockStartWidth: "
|
|
17
|
+
borderBlockStartWidth: t("rail-size"),
|
|
16
18
|
flex: 1,
|
|
17
19
|
minWidth: 0,
|
|
18
20
|
alignSelf: "flex-start",
|
|
@@ -23,6 +25,6 @@ const r = (t) => {
|
|
|
23
25
|
};
|
|
24
26
|
};
|
|
25
27
|
export {
|
|
26
|
-
|
|
28
|
+
s as default
|
|
27
29
|
};
|
|
28
30
|
//# sourceMappingURL=horizontal.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"horizontal.js","sources":["../../../../../../node_modules/antd/es/steps/style/horizontal.js"],"sourcesContent":["
|
|
1
|
+
{"version":3,"file":"horizontal.js","sources":["../../../../../../node_modules/antd/es/steps/style/horizontal.js"],"sourcesContent":["import { genCssVar } from '../../theme/util/genStyleUtils';\nconst genHorizontalStyle = token => {\n const {\n componentCls,\n antCls\n } = token;\n const itemCls = `${componentCls}-item`;\n const [varName, varRef] = genCssVar(antCls, 'cmp-steps');\n return {\n [`${componentCls}-horizontal`]: {\n [`> ${itemCls}`]: {\n flex: '1 1 auto',\n minWidth: token.iconSize,\n [`${itemCls}-rail`]: {\n [varName('horizontal-rail-margin')]: `calc(${varRef('icon-size-max')} / 2 + ${varRef('item-wrapper-padding-top')})`,\n position: 'static',\n marginTop: varRef('horizontal-rail-margin'),\n width: 'auto',\n borderBlockStartWidth: varRef('rail-size'),\n flex: 1,\n minWidth: 0,\n alignSelf: 'flex-start',\n transform: 'translateY(-50%)'\n }\n }\n }\n };\n};\nexport default genHorizontalStyle;"],"names":["genHorizontalStyle","token","componentCls","antCls","itemCls","varName","varRef","genCssVar"],"mappings":";AACK,MAACA,IAAqB,CAAAC,MAAS;AAClC,QAAM;AAAA,IACJ,cAAAC;AAAA,IACA,QAAAC;AAAA,EACJ,IAAMF,GACEG,IAAU,GAAGF,CAAY,SACzB,CAACG,GAASC,CAAM,IAAIC,EAAUJ,GAAQ,WAAW;AACvD,SAAO;AAAA,IACL,CAAC,GAAGD,CAAY,aAAa,GAAG;AAAA,MAC9B,CAAC,KAAKE,CAAO,EAAE,GAAG;AAAA,QAChB,MAAM;AAAA,QACN,UAAUH,EAAM;AAAA,QAChB,CAAC,GAAGG,CAAO,OAAO,GAAG;AAAA,UACnB,CAACC,EAAQ,wBAAwB,CAAC,GAAG,QAAQC,EAAO,eAAe,CAAC,UAAUA,EAAO,0BAA0B,CAAC;AAAA,UAChH,UAAU;AAAA,UACV,WAAWA,EAAO,wBAAwB;AAAA,UAC1C,OAAO;AAAA,UACP,uBAAuBA,EAAO,WAAW;AAAA,UACzC,MAAM;AAAA,UACN,UAAU;AAAA,UACV,WAAW;AAAA,UACX,WAAW;AAAA,QACrB;AAAA,MACA;AAAA,IACA;AAAA,EACA;AACA;","x_google_ignoreList":[0]}
|
|
@@ -1,40 +1,45 @@
|
|
|
1
|
-
|
|
1
|
+
import { genCssVar as f } from "../../theme/util/genStyleUtils.js";
|
|
2
|
+
const g = (o) => {
|
|
2
3
|
const {
|
|
3
4
|
componentCls: i,
|
|
4
|
-
customIconFontSize:
|
|
5
|
-
motionDurationSlow:
|
|
6
|
-
|
|
5
|
+
customIconFontSize: r,
|
|
6
|
+
motionDurationSlow: c,
|
|
7
|
+
iconSize: s,
|
|
8
|
+
lineWidth: a,
|
|
9
|
+
lineType: l,
|
|
10
|
+
antCls: d
|
|
11
|
+
} = o, e = `${i}-item`, [t, n] = f(d, "cmp-steps");
|
|
7
12
|
return {
|
|
8
13
|
[i]: {
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
[`${
|
|
12
|
-
width: "
|
|
13
|
-
height: "
|
|
14
|
+
[t("icon-size")]: s,
|
|
15
|
+
[t("icon-border-width")]: a,
|
|
16
|
+
[`${e}-icon`]: {
|
|
17
|
+
width: n("icon-size"),
|
|
18
|
+
height: n("icon-size"),
|
|
14
19
|
margin: 0,
|
|
15
20
|
flex: "none",
|
|
16
21
|
display: "flex",
|
|
17
22
|
alignItems: "center",
|
|
18
23
|
justifyContent: "center",
|
|
19
|
-
fontSize:
|
|
20
|
-
fontFamily:
|
|
21
|
-
lineHeight: "
|
|
24
|
+
fontSize: o.iconFontSize,
|
|
25
|
+
fontFamily: o.fontFamily,
|
|
26
|
+
lineHeight: n("icon-size"),
|
|
22
27
|
textAlign: "center",
|
|
23
|
-
borderRadius: "
|
|
24
|
-
border:
|
|
25
|
-
transition: ["background", "border", "color", "inset", "transform"].map((
|
|
28
|
+
borderRadius: n("icon-size"),
|
|
29
|
+
border: `${n("icon-border-width")} ${l} transparent`,
|
|
30
|
+
transition: ["background-color", "border", "color", "inset", "transform"].map((m) => `${m} ${c}`).join(", "),
|
|
26
31
|
zIndex: 1
|
|
27
32
|
},
|
|
28
33
|
// ==================== Custom ====================
|
|
29
|
-
[`${
|
|
34
|
+
[`${e}-custom ${e}-icon`]: {
|
|
30
35
|
background: "none",
|
|
31
36
|
border: 0,
|
|
32
|
-
fontSize:
|
|
37
|
+
fontSize: r
|
|
33
38
|
}
|
|
34
39
|
}
|
|
35
40
|
};
|
|
36
41
|
};
|
|
37
42
|
export {
|
|
38
|
-
|
|
43
|
+
g as default
|
|
39
44
|
};
|
|
40
45
|
//# sourceMappingURL=icon.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon.js","sources":["../../../../../../node_modules/antd/es/steps/style/icon.js"],"sourcesContent":["
|
|
1
|
+
{"version":3,"file":"icon.js","sources":["../../../../../../node_modules/antd/es/steps/style/icon.js"],"sourcesContent":["import { genCssVar } from '../../theme/util/genStyleUtils';\nconst genIconStyle = token => {\n const {\n componentCls,\n customIconFontSize,\n motionDurationSlow,\n iconSize,\n lineWidth,\n lineType,\n antCls\n } = token;\n const itemCls = `${componentCls}-item`;\n const [varName, varRef] = genCssVar(antCls, 'cmp-steps');\n return {\n [componentCls]: {\n [varName('icon-size')]: iconSize,\n [varName('icon-border-width')]: lineWidth,\n [`${itemCls}-icon`]: {\n width: varRef('icon-size'),\n height: varRef('icon-size'),\n margin: 0,\n flex: 'none',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n fontSize: token.iconFontSize,\n fontFamily: token.fontFamily,\n lineHeight: varRef('icon-size'),\n textAlign: 'center',\n borderRadius: varRef('icon-size'),\n border: `${varRef('icon-border-width')} ${lineType} transparent`,\n transition: ['background-color', 'border', 'color', 'inset', 'transform'].map(key => `${key} ${motionDurationSlow}`).join(', '),\n zIndex: 1\n },\n // ==================== Custom ====================\n [`${itemCls}-custom ${itemCls}-icon`]: {\n background: 'none',\n border: 0,\n fontSize: customIconFontSize\n }\n }\n };\n};\nexport default genIconStyle;"],"names":["genIconStyle","token","componentCls","customIconFontSize","motionDurationSlow","iconSize","lineWidth","lineType","antCls","itemCls","varName","varRef","genCssVar","key"],"mappings":";AACK,MAACA,IAAe,CAAAC,MAAS;AAC5B,QAAM;AAAA,IACJ,cAAAC;AAAA,IACA,oBAAAC;AAAA,IACA,oBAAAC;AAAA,IACA,UAAAC;AAAA,IACA,WAAAC;AAAA,IACA,UAAAC;AAAA,IACA,QAAAC;AAAA,EACJ,IAAMP,GACEQ,IAAU,GAAGP,CAAY,SACzB,CAACQ,GAASC,CAAM,IAAIC,EAAUJ,GAAQ,WAAW;AACvD,SAAO;AAAA,IACL,CAACN,CAAY,GAAG;AAAA,MACd,CAACQ,EAAQ,WAAW,CAAC,GAAGL;AAAA,MACxB,CAACK,EAAQ,mBAAmB,CAAC,GAAGJ;AAAA,MAChC,CAAC,GAAGG,CAAO,OAAO,GAAG;AAAA,QACnB,OAAOE,EAAO,WAAW;AAAA,QACzB,QAAQA,EAAO,WAAW;AAAA,QAC1B,QAAQ;AAAA,QACR,MAAM;AAAA,QACN,SAAS;AAAA,QACT,YAAY;AAAA,QACZ,gBAAgB;AAAA,QAChB,UAAUV,EAAM;AAAA,QAChB,YAAYA,EAAM;AAAA,QAClB,YAAYU,EAAO,WAAW;AAAA,QAC9B,WAAW;AAAA,QACX,cAAcA,EAAO,WAAW;AAAA,QAChC,QAAQ,GAAGA,EAAO,mBAAmB,CAAC,IAAIJ,CAAQ;AAAA,QAClD,YAAY,CAAC,oBAAoB,UAAU,SAAS,SAAS,WAAW,EAAE,IAAI,CAAAM,MAAO,GAAGA,CAAG,IAAIT,CAAkB,EAAE,EAAE,KAAK,IAAI;AAAA,QAC9H,QAAQ;AAAA,MAChB;AAAA;AAAA,MAEM,CAAC,GAAGK,CAAO,WAAWA,CAAO,OAAO,GAAG;AAAA,QACrC,YAAY;AAAA,QACZ,QAAQ;AAAA,QACR,UAAUN;AAAA,MAClB;AAAA,IACA;AAAA,EACA;AACA;","x_google_ignoreList":[0]}
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { textEllipsis as
|
|
2
|
-
import { genStyleHooks as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import { merge as
|
|
16
|
-
const
|
|
1
|
+
import { textEllipsis as n, resetComponent as a } from "../../style/index.js";
|
|
2
|
+
import { genStyleHooks as s, genCssVar as c } from "../../theme/util/genStyleUtils.js";
|
|
3
|
+
import m from "./horizontal.js";
|
|
4
|
+
import p from "./icon.js";
|
|
5
|
+
import g from "./inline.js";
|
|
6
|
+
import f from "./label-placement.js";
|
|
7
|
+
import S from "./nav.js";
|
|
8
|
+
import d from "./panel.js";
|
|
9
|
+
import h from "./progress.js";
|
|
10
|
+
import y from "./progress-dot.js";
|
|
11
|
+
import w from "./rtl.js";
|
|
12
|
+
import z from "./small.js";
|
|
13
|
+
import u from "./status.js";
|
|
14
|
+
import x from "./vertical.js";
|
|
15
|
+
import { merge as b } from "../../../../@ant-design/cssinjs-utils/es/util/statistic.js";
|
|
16
|
+
const $ = (e) => {
|
|
17
17
|
const {
|
|
18
|
-
componentCls: t
|
|
19
|
-
|
|
18
|
+
componentCls: t,
|
|
19
|
+
antCls: l
|
|
20
|
+
} = e, i = `${t}-item`, [o, r] = c(l, "cmp-steps");
|
|
20
21
|
return {
|
|
21
22
|
[t]: {
|
|
22
|
-
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
|
|
30
|
-
...o(e),
|
|
23
|
+
[o("title-font-size")]: e.fontSizeLG,
|
|
24
|
+
[o("title-line-height")]: e.lineHeightLG,
|
|
25
|
+
[o("subtitle-font-size")]: e.fontSize,
|
|
26
|
+
[o("subtitle-line-height")]: e.lineHeight,
|
|
27
|
+
[o("item-wrapper-padding-top")]: "0px",
|
|
28
|
+
[o("rail-size")]: e.lineWidth,
|
|
29
|
+
[o("rail-line-style")]: e.lineType,
|
|
30
|
+
...a(e),
|
|
31
31
|
display: "flex",
|
|
32
32
|
flexWrap: "nowrap",
|
|
33
33
|
alignItems: "flex-start",
|
|
@@ -38,7 +38,7 @@ const z = (e) => {
|
|
|
38
38
|
[`${i}-wrapper`]: {
|
|
39
39
|
display: "flex",
|
|
40
40
|
flexWrap: "nowrap",
|
|
41
|
-
paddingTop: "
|
|
41
|
+
paddingTop: r("item-wrapper-padding-top")
|
|
42
42
|
},
|
|
43
43
|
// Icon
|
|
44
44
|
// Check `./icon.ts`
|
|
@@ -51,16 +51,16 @@ const z = (e) => {
|
|
|
51
51
|
// >>> Title
|
|
52
52
|
[`${i}-title`]: {
|
|
53
53
|
color: e.colorText,
|
|
54
|
-
fontSize: "
|
|
55
|
-
lineHeight: "
|
|
54
|
+
fontSize: r("title-font-size"),
|
|
55
|
+
lineHeight: r("title-line-height"),
|
|
56
56
|
wordBreak: "break-word"
|
|
57
57
|
},
|
|
58
58
|
// >>> Sub Title
|
|
59
59
|
[`${i}-subtitle`]: {
|
|
60
60
|
color: e.colorTextDescription,
|
|
61
61
|
fontWeight: "normal",
|
|
62
|
-
fontSize: "
|
|
63
|
-
lineHeight: "
|
|
62
|
+
fontSize: r("subtitle-font-size"),
|
|
63
|
+
lineHeight: r("subtitle-line-height"),
|
|
64
64
|
marginInlineStart: e.marginXS,
|
|
65
65
|
wordBreak: "break-word"
|
|
66
66
|
},
|
|
@@ -73,7 +73,7 @@ const z = (e) => {
|
|
|
73
73
|
},
|
|
74
74
|
// Rail
|
|
75
75
|
[`${i}-rail`]: {
|
|
76
|
-
borderStyle: "
|
|
76
|
+
borderStyle: r("rail-line-style"),
|
|
77
77
|
borderWidth: 0
|
|
78
78
|
},
|
|
79
79
|
// Motion
|
|
@@ -82,7 +82,7 @@ const z = (e) => {
|
|
|
82
82
|
},
|
|
83
83
|
// ========================== Ellipsis ==========================
|
|
84
84
|
[`&${t}-ellipsis`]: {
|
|
85
|
-
[`${i}-title, ${i}-subtitle, ${i}-content`]:
|
|
85
|
+
[`${i}-title, ${i}-subtitle, ${i}-content`]: n
|
|
86
86
|
},
|
|
87
87
|
// ========================= Clickable ==========================
|
|
88
88
|
[`${i}[role='button']:not(${i}-active):hover`]: {
|
|
@@ -90,7 +90,7 @@ const z = (e) => {
|
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
};
|
|
93
|
-
},
|
|
93
|
+
}, C = (e) => ({
|
|
94
94
|
titleLineHeight: e.controlHeight,
|
|
95
95
|
customIconSize: e.controlHeight,
|
|
96
96
|
customIconTop: 0,
|
|
@@ -111,14 +111,14 @@ const z = (e) => {
|
|
|
111
111
|
waitIconBorderColor: e.wireframe ? e.colorTextDisabled : "transparent",
|
|
112
112
|
finishIconBgColor: e.wireframe ? e.colorBgContainer : e.controlItemBgActive,
|
|
113
113
|
finishIconBorderColor: e.wireframe ? e.colorPrimary : e.controlItemBgActive
|
|
114
|
-
}),
|
|
115
|
-
const t =
|
|
114
|
+
}), V = s("Steps", (e) => {
|
|
115
|
+
const t = b(e, {
|
|
116
116
|
inlineDotSize: 6
|
|
117
117
|
});
|
|
118
|
-
return [
|
|
119
|
-
},
|
|
118
|
+
return [$(t), p(t), x(t), m(t), f(t), z(t), y(t), u(t), S(t), d(t), g(t), h(t), w(t)];
|
|
119
|
+
}, C);
|
|
120
120
|
export {
|
|
121
|
-
|
|
122
|
-
|
|
121
|
+
V as default,
|
|
122
|
+
C as prepareComponentToken
|
|
123
123
|
};
|
|
124
124
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../node_modules/antd/es/steps/style/index.js"],"sourcesContent":["import { resetComponent, textEllipsis } from '../../style';\nimport { genStyleHooks, mergeToken } from '../../theme/internal';\nimport genHorizontalStyle from './horizontal';\nimport genIconStyle from './icon';\nimport genInlineStyle from './inline';\nimport genLabelPlacementStyle from './label-placement';\nimport genLegacyNavStyle from './nav';\nimport genPanelStyle from './panel';\nimport genStepsProgressStyle from './progress';\nimport genDotStyle from './progress-dot';\nimport genRTLStyle from './rtl';\nimport genSmallStyle from './small';\nimport genStatusStyle from './status';\nimport genVerticalStyle from './vertical';\nconst genBasicStyle = token => {\n const {\n componentCls\n } = token;\n const itemCls = `${componentCls}-item`;\n return {\n [componentCls]: {\n
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../node_modules/antd/es/steps/style/index.js"],"sourcesContent":["import { resetComponent, textEllipsis } from '../../style';\nimport { genStyleHooks, mergeToken } from '../../theme/internal';\nimport { genCssVar } from '../../theme/util/genStyleUtils';\nimport genHorizontalStyle from './horizontal';\nimport genIconStyle from './icon';\nimport genInlineStyle from './inline';\nimport genLabelPlacementStyle from './label-placement';\nimport genLegacyNavStyle from './nav';\nimport genPanelStyle from './panel';\nimport genStepsProgressStyle from './progress';\nimport genDotStyle from './progress-dot';\nimport genRTLStyle from './rtl';\nimport genSmallStyle from './small';\nimport genStatusStyle from './status';\nimport genVerticalStyle from './vertical';\nconst genBasicStyle = token => {\n const {\n componentCls,\n antCls\n } = token;\n const itemCls = `${componentCls}-item`;\n const [varName, varRef] = genCssVar(antCls, 'cmp-steps');\n return {\n [componentCls]: {\n [varName('title-font-size')]: token.fontSizeLG,\n [varName('title-line-height')]: token.lineHeightLG,\n [varName('subtitle-font-size')]: token.fontSize,\n [varName('subtitle-line-height')]: token.lineHeight,\n [varName('item-wrapper-padding-top')]: '0px',\n [varName('rail-size')]: token.lineWidth,\n [varName('rail-line-style')]: token.lineType,\n ...resetComponent(token),\n display: 'flex',\n flexWrap: 'nowrap',\n alignItems: 'flex-start',\n [itemCls]: {\n flex: 'none',\n position: 'relative'\n },\n [`${itemCls}-wrapper`]: {\n display: 'flex',\n flexWrap: 'nowrap',\n paddingTop: varRef('item-wrapper-padding-top')\n },\n // Icon\n // Check `./icon.ts`\n // Header\n [`${itemCls}-header`]: {\n display: 'flex',\n flexWrap: 'nowrap',\n alignItems: 'center'\n },\n // >>> Title\n [`${itemCls}-title`]: {\n color: token.colorText,\n fontSize: varRef('title-font-size'),\n lineHeight: varRef('title-line-height'),\n wordBreak: 'break-word'\n },\n // >>> Sub Title\n [`${itemCls}-subtitle`]: {\n color: token.colorTextDescription,\n fontWeight: 'normal',\n fontSize: varRef('subtitle-font-size'),\n lineHeight: varRef('subtitle-line-height'),\n marginInlineStart: token.marginXS,\n wordBreak: 'break-word'\n },\n // Content\n [`${itemCls}-content`]: {\n color: token.colorTextDescription,\n fontSize: token.fontSize,\n lineHeight: token.lineHeight,\n wordBreak: 'break-word'\n },\n // Rail\n [`${itemCls}-rail`]: {\n borderStyle: varRef('rail-line-style'),\n borderWidth: 0\n },\n // Motion\n [`${itemCls}-title, ${itemCls}-subtitle, ${itemCls}-content, ${itemCls}-rail`]: {\n transition: `all ${token.motionDurationSlow}`\n },\n // ========================== Ellipsis ==========================\n [`&${componentCls}-ellipsis`]: {\n [`${itemCls}-title, ${itemCls}-subtitle, ${itemCls}-content`]: textEllipsis\n },\n // ========================= Clickable ==========================\n [`${itemCls}[role='button']:not(${itemCls}-active):hover`]: {\n cursor: 'pointer'\n }\n }\n };\n};\n// ============================== Export ==============================\nexport const prepareComponentToken = token => ({\n titleLineHeight: token.controlHeight,\n customIconSize: token.controlHeight,\n customIconTop: 0,\n customIconFontSize: token.controlHeightSM,\n iconSize: token.controlHeight,\n iconTop: -0.5,\n // magic for ui experience\n iconFontSize: token.fontSize,\n iconSizeSM: token.fontSizeHeading3,\n dotSize: token.controlHeight / 4,\n dotCurrentSize: token.controlHeightLG / 4,\n navArrowColor: token.colorTextDisabled,\n navContentMaxWidth: 'unset',\n descriptionMaxWidth: undefined,\n // should be `undefined` to create css var\n waitIconColor: token.wireframe ? token.colorTextDisabled : token.colorTextLabel,\n waitIconBgColor: token.wireframe ? token.colorBgContainer : token.colorFillContent,\n waitIconBorderColor: token.wireframe ? token.colorTextDisabled : 'transparent',\n finishIconBgColor: token.wireframe ? token.colorBgContainer : token.controlItemBgActive,\n finishIconBorderColor: token.wireframe ? token.colorPrimary : token.controlItemBgActive\n});\nexport default genStyleHooks('Steps', token => {\n const stepsToken = mergeToken(token, {\n inlineDotSize: 6\n });\n return [genBasicStyle(stepsToken), genIconStyle(stepsToken), genVerticalStyle(stepsToken), genHorizontalStyle(stepsToken), genLabelPlacementStyle(stepsToken), genSmallStyle(stepsToken), genDotStyle(stepsToken), genStatusStyle(stepsToken), genLegacyNavStyle(stepsToken), genPanelStyle(stepsToken), genInlineStyle(stepsToken), genStepsProgressStyle(stepsToken), genRTLStyle(stepsToken)];\n}, prepareComponentToken);"],"names":["genBasicStyle","token","componentCls","antCls","itemCls","varName","varRef","genCssVar","resetComponent","textEllipsis","prepareComponentToken","useStyle","genStyleHooks","stepsToken","mergeToken","genIconStyle","genVerticalStyle","genHorizontalStyle","genLabelPlacementStyle","genSmallStyle","genDotStyle","genStatusStyle","genLegacyNavStyle","genPanelStyle","genInlineStyle","genStepsProgressStyle","genRTLStyle"],"mappings":";;;;;;;;;;;;;;;AAeA,MAAMA,IAAgB,CAAAC,MAAS;AAC7B,QAAM;AAAA,IACJ,cAAAC;AAAA,IACA,QAAAC;AAAA,EACJ,IAAMF,GACEG,IAAU,GAAGF,CAAY,SACzB,CAACG,GAASC,CAAM,IAAIC,EAAUJ,GAAQ,WAAW;AACvD,SAAO;AAAA,IACL,CAACD,CAAY,GAAG;AAAA,MACd,CAACG,EAAQ,iBAAiB,CAAC,GAAGJ,EAAM;AAAA,MACpC,CAACI,EAAQ,mBAAmB,CAAC,GAAGJ,EAAM;AAAA,MACtC,CAACI,EAAQ,oBAAoB,CAAC,GAAGJ,EAAM;AAAA,MACvC,CAACI,EAAQ,sBAAsB,CAAC,GAAGJ,EAAM;AAAA,MACzC,CAACI,EAAQ,0BAA0B,CAAC,GAAG;AAAA,MACvC,CAACA,EAAQ,WAAW,CAAC,GAAGJ,EAAM;AAAA,MAC9B,CAACI,EAAQ,iBAAiB,CAAC,GAAGJ,EAAM;AAAA,MACpC,GAAGO,EAAeP,CAAK;AAAA,MACvB,SAAS;AAAA,MACT,UAAU;AAAA,MACV,YAAY;AAAA,MACZ,CAACG,CAAO,GAAG;AAAA,QACT,MAAM;AAAA,QACN,UAAU;AAAA,MAClB;AAAA,MACM,CAAC,GAAGA,CAAO,UAAU,GAAG;AAAA,QACtB,SAAS;AAAA,QACT,UAAU;AAAA,QACV,YAAYE,EAAO,0BAA0B;AAAA,MACrD;AAAA;AAAA;AAAA;AAAA,MAIM,CAAC,GAAGF,CAAO,SAAS,GAAG;AAAA,QACrB,SAAS;AAAA,QACT,UAAU;AAAA,QACV,YAAY;AAAA,MACpB;AAAA;AAAA,MAEM,CAAC,GAAGA,CAAO,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pB,YAAYA,EAAM;AAAA,EAClB,SAASA,EAAM,gBAAgB;AAAA,EAC/B,gBAAgBA,EAAM,kBAAkB;AAAA,EACxC,eAAeA,EAAM;AAAA,EACrB,oBAAoB;AAAA,EACpB,qBAAqB;AAAA;AAAA,EAErB,eAAeA,EAAM,YAAYA,EAAM,oBAAoBA,EAAM;AAAA,EACjE,iBAAiBA,EAAM,YAAYA,EAAM,mBAAmBA,EAAM;AAAA,EAClE,qBAAqBA,EAAM,YAAYA,EAAM,oBAAoB;AAAA,EACjE,mBAAmBA,EAAM,YAAYA,EAAM,mBAAmBA,EAAM;AAAA,EACpE,uBAAuBA,EAAM,YAAYA,EAAM,eAAeA,EAAM;AACtE,IACAU,IAAeC,EAAc,SAAS,CAAAX,MAAS;AAC7C,QAAMY,IAAaC,EAAWb,GAAO;AAAA,IACnC,eAAe;AAAA,EACnB,CAAG;AACD,SAAO,CAACD,EAAca,CAAU,GAAGE,EAAaF,CAAU,GAAGG,EAAiBH,CAAU,GAAGI,EAAmBJ,CAAU,GAAGK,EAAuBL,CAAU,GAAGM,EAAcN,CAAU,GAAGO,EAAYP,CAAU,GAAGQ,EAAeR,CAAU,GAAGS,EAAkBT,CAAU,GAAGU,EAAcV,CAAU,GAAGW,EAAeX,CAAU,GAAGY,EAAsBZ,CAAU,GAAGa,EAAYb,CAAU,CAAC;AACjY,GAAGH,CAAqB;","x_google_ignoreList":[0]}
|
|
@@ -1,34 +1,39 @@
|
|
|
1
|
-
|
|
1
|
+
import { genCssVar as p } from "../../theme/util/genStyleUtils.js";
|
|
2
|
+
const f = (i) => {
|
|
2
3
|
const {
|
|
3
|
-
componentCls:
|
|
4
|
-
inlineDotSize:
|
|
5
|
-
|
|
4
|
+
componentCls: t,
|
|
5
|
+
inlineDotSize: n,
|
|
6
|
+
paddingXS: o,
|
|
7
|
+
lineWidth: r,
|
|
8
|
+
antCls: a,
|
|
9
|
+
calc: s
|
|
10
|
+
} = i, c = s(o).add(r).equal(), l = `${t}-item`, [e, d] = p(a, "cmp-steps");
|
|
6
11
|
return {
|
|
7
|
-
[`${
|
|
8
|
-
"
|
|
9
|
-
"
|
|
12
|
+
[`${t}-inline`]: {
|
|
13
|
+
[e("items-offset")]: "0",
|
|
14
|
+
[e("item-wrapper-padding-top")]: c,
|
|
10
15
|
display: "inline-flex",
|
|
11
16
|
"&:before": {
|
|
12
17
|
content: '""',
|
|
13
|
-
flex: "
|
|
18
|
+
flex: d("items-offset")
|
|
14
19
|
},
|
|
15
|
-
[
|
|
20
|
+
[l]: {
|
|
16
21
|
// ========================= Variable =========================
|
|
17
22
|
// Item
|
|
18
|
-
"
|
|
23
|
+
[e("title-vertical-row-gap")]: o,
|
|
19
24
|
// Icon
|
|
20
|
-
"
|
|
21
|
-
"
|
|
25
|
+
[e("icon-size")]: n,
|
|
26
|
+
[e("icon-size-active")]: n,
|
|
22
27
|
// Title
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
28
|
+
[e("title-font-size")]: i.fontSizeSM,
|
|
29
|
+
[e("title-line-height")]: i.lineHeightSM,
|
|
30
|
+
[e("item-title-color")]: i.colorTextSecondary,
|
|
31
|
+
[e("subtitle-font-size")]: i.fontSizeSM,
|
|
32
|
+
[e("subtitle-line-height")]: i.lineHeightSM,
|
|
33
|
+
[e("item-subtitle-color")]: i.colorTextQuaternary,
|
|
29
34
|
// Rail
|
|
30
|
-
"
|
|
31
|
-
"
|
|
35
|
+
[e("rail-size")]: i.lineWidth,
|
|
36
|
+
[e("title-horizontal-rail-gap")]: "0px",
|
|
32
37
|
// ========================== Styles ==========================
|
|
33
38
|
flex: 1,
|
|
34
39
|
"&-wrapper": {
|
|
@@ -36,14 +41,14 @@ const l = (i) => {
|
|
|
36
41
|
marginInline: i.calc(i.marginXXS).div(2).equal(),
|
|
37
42
|
borderRadius: i.borderRadiusSM,
|
|
38
43
|
cursor: "pointer",
|
|
39
|
-
transition: `background ${i.motionDurationMid}`,
|
|
44
|
+
transition: `background-color ${i.motionDurationMid}`,
|
|
40
45
|
"&:hover": {
|
|
41
46
|
background: i.controlItemBgHover
|
|
42
47
|
}
|
|
43
48
|
},
|
|
44
49
|
// Icon
|
|
45
50
|
"&-icon": {
|
|
46
|
-
[`${
|
|
51
|
+
[`${l}-icon-dot`]: {
|
|
47
52
|
"&:after": {
|
|
48
53
|
display: "none"
|
|
49
54
|
}
|
|
@@ -62,6 +67,6 @@ const l = (i) => {
|
|
|
62
67
|
};
|
|
63
68
|
};
|
|
64
69
|
export {
|
|
65
|
-
|
|
70
|
+
f as default
|
|
66
71
|
};
|
|
67
72
|
//# sourceMappingURL=inline.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inline.js","sources":["../../../../../../node_modules/antd/es/steps/style/inline.js"],"sourcesContent":["
|
|
1
|
+
{"version":3,"file":"inline.js","sources":["../../../../../../node_modules/antd/es/steps/style/inline.js"],"sourcesContent":["import { genCssVar } from '../../theme/util/genStyleUtils';\nconst genInlineStyle = token => {\n const {\n componentCls,\n inlineDotSize,\n paddingXS,\n lineWidth,\n antCls,\n calc\n } = token;\n const containerPaddingTop = calc(paddingXS).add(lineWidth).equal();\n const itemCls = `${componentCls}-item`;\n const [varName, varRef] = genCssVar(antCls, 'cmp-steps');\n return {\n [`${componentCls}-inline`]: {\n [varName('items-offset')]: '0',\n [varName('item-wrapper-padding-top')]: containerPaddingTop,\n display: 'inline-flex',\n '&:before': {\n content: '\"\"',\n flex: varRef('items-offset')\n },\n [itemCls]: {\n // ========================= Variable =========================\n // Item\n [varName('title-vertical-row-gap')]: paddingXS,\n // Icon\n [varName('icon-size')]: inlineDotSize,\n [varName('icon-size-active')]: inlineDotSize,\n // Title\n [varName('title-font-size')]: token.fontSizeSM,\n [varName('title-line-height')]: token.lineHeightSM,\n [varName('item-title-color')]: token.colorTextSecondary,\n [varName('subtitle-font-size')]: token.fontSizeSM,\n [varName('subtitle-line-height')]: token.lineHeightSM,\n [varName('item-subtitle-color')]: token.colorTextQuaternary,\n // Rail\n [varName('rail-size')]: token.lineWidth,\n [varName('title-horizontal-rail-gap')]: '0px',\n // ========================== Styles ==========================\n flex: 1,\n '&-wrapper': {\n paddingInline: token.paddingXXS,\n marginInline: token.calc(token.marginXXS).div(2).equal(),\n borderRadius: token.borderRadiusSM,\n cursor: 'pointer',\n transition: `background-color ${token.motionDurationMid}`,\n '&:hover': {\n background: token.controlItemBgHover\n }\n },\n // Icon\n '&-icon': {\n [`${itemCls}-icon-dot`]: {\n '&:after': {\n display: 'none'\n }\n }\n },\n // Header\n '&-title': {\n fontWeight: 'normal',\n whiteSpace: 'nowrap'\n },\n '&-content': {\n display: 'none'\n }\n }\n }\n };\n};\nexport default genInlineStyle;"],"names":["genInlineStyle","token","componentCls","inlineDotSize","paddingXS","lineWidth","antCls","calc","containerPaddingTop","itemCls","varName","varRef","genCssVar"],"mappings":";AACK,MAACA,IAAiB,CAAAC,MAAS;AAC9B,QAAM;AAAA,IACJ,cAAAC;AAAA,IACA,eAAAC;AAAA,IACA,WAAAC;AAAA,IACA,WAAAC;AAAA,IACA,QAAAC;AAAA,IACA,MAAAC;AAAA,EACJ,IAAMN,GACEO,IAAsBD,EAAKH,CAAS,EAAE,IAAIC,CAAS,EAAE,MAAK,GAC1DI,IAAU,GAAGP,CAAY,SACzB,CAACQ,GAASC,CAAM,IAAIC,EAAUN,GAAQ,WAAW;AACvD,SAAO;AAAA,IACL,CAAC,GAAGJ,CAAY,SAAS,GAAG;AAAA,MAC1B,CAACQ,EAAQ,cAAc,CAAC,GAAG;AAAA,MAC3B,CAACA,EAAQ,0BAA0B,CAAC,GAAGF;AAAA,MACvC,SAAS;AAAA,MACT,YAAY;AAAA,QACV,SAAS;AAAA,QACT,MAAMG,EAAO,cAAc;AAAA,MACnC;AAAA,MACM,CAACF,CAAO,GAAG;AAAA;AAAA;AAAA,QAGT,CAACC,EAAQ,wBAAwB,CAAC,GAAGN;AAAA;AAAA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