@gobolt/genesis 0.1.2 → 0.1.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/README.md +7 -7
- package/dist/{AntdIcon-nCNB0J1E.js → AntdIcon-DP6hPDqu.js} +40 -39
- package/dist/CSSMotionList-DB0khM6h.js +22193 -0
- package/dist/{CheckCircleFilled-BKgizvyl.js → CheckCircleFilled-B-wrMduA.js} +2 -2
- package/dist/{CheckOutlined-cEBrx_Ag.js → CheckOutlined-DTEHi_xG.js} +2 -2
- package/dist/{ClockCircleOutlined-BaXQuLIn.js → ClockCircleOutlined-DGGcYjVd.js} +2 -2
- package/dist/{CloseCircleFilled-B9e7yFwo.js → CloseCircleFilled-WEQ0SaSW.js} +2 -2
- package/dist/{CloseOutlined-ogxnm7Oy.js → CloseOutlined-DzgBOns1.js} +2 -2
- package/dist/{Compact-Du9689ax.js → Compact-DFcWZrNo.js} +49 -49
- package/dist/Context-2_suFYDs.js +5 -0
- package/dist/{ContextIsolator-BmfhJgG0.js → ContextIsolator-CUJnq-4F.js} +2 -2
- package/dist/{DownOutlined-Dcq69ZKM.js → DownOutlined-Bv7ua5i8.js} +23 -22
- package/dist/EllipsisOutlined-BodkguEc.js +1118 -0
- package/dist/{ExclamationCircleFilled-BHELVsTg.js → ExclamationCircleFilled-x8Sr29BN.js} +2 -2
- package/dist/Input--qsU-6vp.js +424 -0
- package/dist/KeyCode-B3vHb2gY.js +155 -0
- package/dist/{Keyframes-C9_aCDvn.js → Keyframes-CyO2Aeq-.js} +7 -7
- package/dist/{LoadingOutlined-C1qu6ymP.js → LoadingOutlined-DOi5EGOl.js} +2 -2
- package/dist/{MinusCircleOutlined-Shz0RRQV.js → MinusCircleOutlined-BcKxYRyN.js} +2 -2
- package/dist/{Overflow-DWf4XIal.js → Overflow-CVbsx7Gn.js} +95 -95
- package/dist/{SearchOutlined-DNj-7b_h.js → SearchOutlined-DJ3uHFwq.js} +2 -2
- package/dist/{Skeleton-BVN4pcVe.js → Skeleton-CudViN0a.js} +166 -163
- package/dist/TextArea-CHo3cxKw.js +404 -0
- package/dist/{Typography-CoZ5qD-t.js → Typography-B2J8CPnt.js} +263 -247
- package/dist/_baseIsEqual-VdxFOa4v.js +1084 -0
- package/dist/{_commonjsHelpers-BkfeUUK-.js → _commonjsHelpers-B4e78b8K.js} +1 -1
- package/dist/{asyncToGenerator-CKP9bEZn.js → asyncToGenerator-CVBdSr4C.js} +27 -27
- package/dist/button-CYVlK7G0.js +1430 -0
- package/dist/components/Avatar/Avatar.js +8 -7
- package/dist/components/Avatar/__stories__/Avatar.stories.d.ts +0 -1
- package/dist/components/Avatar/__tests__/Avatar.test.js +1 -1
- package/dist/components/Avatar/styles.d.ts +1 -2
- package/dist/components/Avatar/styles.js +161 -159
- package/dist/components/Badge/Badge.js +8 -7
- package/dist/components/Badge/__stories__/Badge.stories.d.ts +0 -1
- package/dist/components/Badge/__tests__/Badge.test.js +1 -1
- package/dist/components/Badge/styles.d.ts +0 -1
- package/dist/components/Badge/styles.js +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +0 -1
- package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.types.d.ts +0 -1
- package/dist/components/Breadcrumb/__stories__/Breadcrumb.stories.d.ts +0 -1
- package/dist/components/Breadcrumb/__tests__/Breadcrumb.test.js +3 -3
- package/dist/components/Breadcrumb/styles.d.ts +0 -1
- package/dist/components/Breadcrumb/styles.js +58 -58
- package/dist/components/Button/Button.d.ts +0 -1
- package/dist/components/Button/__stories__/Button.stories.d.ts +0 -1
- package/dist/components/Button/__tests__/Button.test.js +5 -4
- package/dist/components/Button/styles.d.ts +0 -1
- package/dist/components/Button/styles.js +2 -2
- package/dist/components/Card/__stories__/Card.stories.d.ts +0 -1
- package/dist/components/Card/__tests__/Card.test.js +1 -1
- package/dist/components/Card/styles.d.ts +0 -1
- package/dist/components/Card/styles.js +2 -2
- package/dist/components/Checkbox/Checkbox.d.ts +0 -1
- package/dist/components/Checkbox/Checkbox.js +11 -11
- package/dist/components/Checkbox/__stories__/Checkbox.stories.d.ts +0 -1
- package/dist/components/Checkbox/__tests__/Checkbox.test.js +16 -15
- package/dist/components/Checkbox/styles.d.ts +3 -4
- package/dist/components/Checkbox/styles.js +2 -2
- package/dist/components/Dashboard/__mocks__/dashboard-data.d.ts +0 -1
- package/dist/components/Dashboard/__stories__/Dashboard.stories.d.ts +0 -1
- package/dist/components/Dashboard/__stories__/DashboardLayoutContent.js +222 -223
- package/dist/components/Dashboard/__stories__/DashboardLayoutHeader.js +13 -12
- package/dist/components/Dashboard/__stories__/DashboardLayoutStory.d.ts +0 -1
- package/dist/components/Dashboard/__stories__/DashboardLayoutStory.js +10 -9
- package/dist/components/Dashboard/__stories__/charts/LineChart.js +72 -74
- package/dist/components/Dashboard/__tests__/Dashboard.test.js +1 -1
- package/dist/components/Dashboard/styles.d.ts +0 -1
- package/dist/components/Dashboard/styles.js +1 -1
- package/dist/components/DatePicker/DatePicker.d.ts +0 -1
- package/dist/components/DatePicker/DatePicker.js +1 -1
- package/dist/components/DatePicker/__stories__/DatePicker.stories.d.ts +0 -1
- package/dist/components/DatePicker/__tests__/DatePicker.test.js +2 -2
- package/dist/components/DateRangePicker/DateRangePicker.d.ts +0 -1
- package/dist/components/DateRangePicker/DateRangePicker.js +1 -1
- package/dist/components/DateRangePicker/__stories__/DateRangePicker.stories.d.ts +0 -1
- package/dist/components/DateRangePicker/__tests__/DateRangePicker.test.js +2 -2
- package/dist/components/ErrorBoundary/ErrorBoundary.d.ts +2 -2
- package/dist/components/ErrorBoundary/ErrorBoundary.js +8 -7
- package/dist/components/ErrorBoundary/__stories__/ErrorBoundary.stories.d.ts +0 -1
- package/dist/components/ErrorBoundary/__tests__/ErrorBoundary.test.js +25 -20
- package/dist/components/ErrorBoundary/styles.d.ts +0 -1
- package/dist/components/ErrorBoundary/styles.js +1 -1
- package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.js +16 -15
- package/dist/components/ErrorBoundaryFallback/__stories__/ErrorBoundaryFallback.stories.d.ts +0 -1
- package/dist/components/ErrorBoundaryFallback/styles.js +13 -13
- package/dist/components/Form/Form.d.ts +0 -1
- package/dist/components/Form/Form.js +2 -2
- package/dist/components/Form/__stories__/Form.stories.d.ts +0 -1
- package/dist/components/Form/__stories__/FormStory.js +11 -10
- package/dist/components/Form/__tests__/form.test.js +7 -6
- package/dist/components/Form/index.js +1 -1
- package/dist/components/Form/styles.d.ts +0 -1
- package/dist/components/Form/styles.js +10 -2
- package/dist/components/FormBrandon/Form.d.ts +25 -0
- package/dist/components/FormBrandon/Form.js +18 -0
- package/dist/components/FormBrandon/__stories__/Form.stories.d.ts +6 -0
- package/dist/components/FormBrandon/__stories__/FormStory.d.ts +1 -0
- package/dist/components/FormBrandon/__stories__/FormStory.js +172 -0
- package/dist/components/FormBrandon/__tests__/form.test.js +19 -0
- package/dist/components/FormBrandon/index.d.ts +2 -0
- package/dist/components/FormBrandon/index.js +4 -0
- package/dist/components/FormBrandon/styles.d.ts +2 -0
- package/dist/components/FormBrandon/styles.js +13 -0
- package/dist/components/Glyph/Glyph.js +2 -2
- package/dist/components/Glyph/__stories__/Glyph.stories.d.ts +0 -1
- package/dist/components/Glyph/styles.d.ts +0 -1
- package/dist/components/Glyph/styles.js +1 -1
- package/dist/components/Input/Input.d.ts +0 -1
- package/dist/components/Input/Input.js +9 -10
- package/dist/components/Input/__stories__/Input.stories.d.ts +0 -1
- package/dist/components/Input/__tests__/Input.test.js +21 -20
- package/dist/components/Input/styles.d.ts +5 -6
- package/dist/components/Input/styles.js +4 -119
- package/dist/components/Layout/Content/Content.d.ts +0 -1
- package/dist/components/Layout/Content/ResponsiveContent.js +14 -13
- package/dist/components/Layout/Content/styles.d.ts +0 -1
- package/dist/components/Layout/Content/styles.js +1 -1
- package/dist/components/Layout/MainLayout/MainLayout.d.ts +0 -1
- package/dist/components/Layout/MainLayout/MainLayout.js +1 -1
- package/dist/components/Layout/MainLayout/__stories__/MainLayout.stories.d.ts +0 -1
- package/dist/components/Layout/MainLayout/styles.js +1 -1
- package/dist/components/Layout/__stories__/Layout.stories.d.ts +0 -1
- package/dist/components/Layout/__tests__/Layout.test.js +1 -1
- package/dist/components/Message/Message.d.ts +0 -1
- package/dist/components/Message/Message.js +13 -12
- package/dist/components/Message/__stories__/Message.stories.d.ts +0 -1
- package/dist/components/Message/__tests__/Message.test.js +6 -5
- package/dist/components/Message/styles.js +1 -1
- package/dist/components/Notification/Notification.js +122 -55
- package/dist/components/Notification/NotificationBadge/NotificationBadge.js +2 -2
- package/dist/components/Notification/NotificationBadge/__stories__/NotificationBadge.stories.d.ts +0 -1
- package/dist/components/Notification/NotificationBadge/__tests__/NotificationBadge.test.js +4 -4
- package/dist/components/Notification/NotificationBadge/styles.js +1 -1
- package/dist/components/Notification/__stories__/Notification.stories.d.ts +0 -1
- package/dist/components/Notification/__tests__/Notification.test.js +3 -3
- package/dist/components/Notification/styles.js +1 -1
- package/dist/components/Popover/Popover.d.ts +1 -1
- package/dist/components/Popover/Popover.js +14 -11
- package/dist/components/Popover/__stories__/Popover.stories.d.ts +0 -1
- package/dist/components/Popover/__tests__/Popover.test.js +19 -26
- package/dist/components/Popover/styles.d.ts +0 -1
- package/dist/components/Popover/styles.js +2 -2
- package/dist/components/Progress/Progress.js +29 -27
- package/dist/components/Progress/Progress.util.d.ts +0 -1
- package/dist/components/Progress/Progress.util.js +8 -7
- package/dist/components/Progress/ProgressText.d.ts +0 -1
- package/dist/components/Progress/ProgressText.js +8 -7
- package/dist/components/Progress/__stories__/Progress.stories.d.ts +0 -1
- package/dist/components/Progress/__tests__/Progress.test.js +4 -4
- package/dist/components/Progress/styles.d.ts +0 -1
- package/dist/components/Progress/styles.js +217 -214
- package/dist/components/Radio/Radio.d.ts +0 -1
- package/dist/components/Radio/Radio.js +9 -8
- package/dist/components/Radio/RadioGroup.js +1 -1
- package/dist/components/Radio/__stories__/RadioGroup.stories.d.ts +0 -1
- package/dist/components/Radio/__tests__/RadioGroup.test.js +8 -7
- package/dist/components/Row/Row.d.ts +0 -1
- package/dist/components/Row/Row.js +29 -26
- package/dist/components/Row/RowActions/RowActions.js +8 -7
- package/dist/components/Row/RowActions/styles.js +1 -1
- package/dist/components/Row/RowLabelValue/RowLabelValue.d.ts +0 -1
- package/dist/components/Row/RowLabelValue/RowLabelValue.js +7 -6
- package/dist/components/Row/RowLabelValue/styles.js +2 -2
- package/dist/components/Row/__stories__/Row.stories.d.ts +0 -1
- package/dist/components/Row/__tests__/Row.test.js +3 -3
- package/dist/components/Row/styles.d.ts +0 -1
- package/dist/components/Row/styles.js +1 -1
- package/dist/components/SegmentedControls/__stories__/SegmentedControls.stories.d.ts +0 -1
- package/dist/components/SegmentedControls/__tests__/SegmentedControls.test.js +1 -1
- package/dist/components/SegmentedControls/styles.d.ts +1 -2
- package/dist/components/SegmentedControls/styles.js +214 -203
- package/dist/components/Select/Select.d.ts +0 -1
- package/dist/components/Select/Select.js +10 -11
- package/dist/components/Select/__stories__/Select.stories.d.ts +0 -1
- package/dist/components/Select/__tests__/Select.test.js +49 -10754
- package/dist/components/Select/styles.d.ts +0 -1
- package/dist/components/Select/styles.js +2 -2
- package/dist/components/Shapes/__stories__/Shapes.stories.d.ts +0 -1
- package/dist/components/Shapes/__tests__/Shapes.test.js +1 -1
- package/dist/components/Switch/__stories__/Switch.stories.d.ts +0 -1
- package/dist/components/Switch/__tests__/Switch.test.js +3 -3
- package/dist/components/Switch/styles.d.ts +0 -1
- package/dist/components/Switch/styles.js +74 -74
- package/dist/components/Table/Table.js +1 -1
- package/dist/components/Table/__mocks__/table-mocks.d.ts +0 -1
- package/dist/components/Table/__mocks__/table-mocks.js +10 -9
- package/dist/components/Table/__stories__/Table.stories.d.ts +0 -1
- package/dist/components/Table/__tests__/Table.test.js +1 -1
- package/dist/components/Table/styles.d.ts +0 -1
- package/dist/components/Table/styles.js +2 -2
- package/dist/components/Tabs/__stories__/Tabs.stories.d.ts +0 -1
- package/dist/components/Tabs/__tests__/Tabs.test.js +3 -3
- package/dist/components/Tabs/styles.d.ts +0 -1
- package/dist/components/Tabs/styles.js +2 -2
- package/dist/components/Tile/__stories__/Tile.stories.d.ts +0 -1
- package/dist/components/Tile/__tests__/Tile.test.js +1 -1
- package/dist/components/Tile/styles.d.ts +0 -1
- package/dist/components/Tile/styles.js +1 -1
- package/dist/components/Toast/Toast.d.ts +0 -1
- package/dist/components/Toast/Toast.js +9 -8
- package/dist/components/Toast/__stories__/Toast.stories.d.ts +0 -1
- package/dist/components/Toast/__tests__/Toast.test.js +6 -5
- package/dist/components/Toast/index.js +1 -1
- package/dist/components/Toast/styles.js +1 -1
- package/dist/components/Tooltip/Tooltip.js +8 -7
- package/dist/components/Tooltip/__stories__/Tooltip.stories.d.ts +0 -1
- package/dist/components/Tooltip/__tests__/Tooltip.test.js +1 -1
- package/dist/components/Tooltip/styles.d.ts +0 -1
- package/dist/components/Tooltip/styles.js +2 -2
- package/dist/components/Typography/Typography.d.ts +0 -1
- package/dist/components/Typography/Typography.js +1 -1
- package/dist/components/Typography/__stories__/Typography.stories.d.ts +0 -1
- package/dist/components/Typography/__tests__/Typography.test.js +14 -13
- package/dist/components/Typography/index.js +1 -1
- package/dist/components/Typography/styles.d.ts +0 -1
- package/dist/components/Typography/styles.js +2 -2
- package/dist/components/index.d.ts +0 -2
- package/dist/components/index.js +46 -48
- package/dist/{context-DIFtNa4d.js → context-CQfFkrkv.js} +285 -278
- package/dist/{dropdown-Dp_PTQ2u.js → dropdown-BlRB2LxQ.js} +492 -491
- package/dist/{generateCategoricalChart-7ceYaiZ2.js → generateCategoricalChart-CqByWmje.js} +7189 -6383
- package/dist/genesis/GenesisThemeBreakdown.d.ts +0 -1
- package/dist/genesis/GenesisThemeBreakdown.js +9 -8
- package/dist/genesis/GenesisThemeDemo.d.ts +0 -1
- package/dist/genesis/GenesisThemeDemo.stories.d.ts +0 -1
- package/dist/genesis/{labs/Lab.stories.d.ts → Lab.stories.d.ts} +0 -1
- package/dist/genesis/styles.d.ts +0 -1
- package/dist/genesis/styles.js +3 -3
- package/dist/{iconBase-LROS5hdG.js → iconBase-DSKTHwal.js} +9 -9
- package/dist/index-B7FXyiY_.js +104 -0
- package/dist/{index-B_1Ge8na.js → index-BHCqeC4j.js} +190 -183
- package/dist/index-BZ050Dyl.js +292 -0
- package/dist/{index-BpZSuIUV.js → index-Br3D3cFM.js} +23 -23
- package/dist/{index-DOsPeIWJ.js → index-Bxbr727t.js} +260 -265
- package/dist/index-C2K1BzmJ.js +3400 -0
- package/dist/{styles-D1vKDy9V.js → index-CupwdUIJ.js} +596 -603
- package/dist/{index-BQM5OniU.js → index-CzMIlMTV.js} +111 -111
- package/dist/index-DCopujxC.js +772 -0
- package/dist/index-DRGbc-fW.js +780 -0
- package/dist/index-DavB5GQ3.js +5221 -0
- package/dist/index-RAH9f-qb.js +540 -0
- package/dist/{index-BPVue1Yd.js → index-RtWhGOwR.js} +152 -150
- package/dist/index-Y0KgiFZb.js +909 -0
- package/dist/{index-DRGX1Wem.js → index-sX7KZ-nU.js} +414 -402
- package/dist/index.js +53 -55
- package/dist/interface/appointment.d.ts +0 -1
- package/dist/interface/appointmentV2.d.ts +0 -1
- package/dist/interface/appointmentsState.d.ts +0 -1
- package/dist/interface/deliveryPartner.d.ts +0 -1
- package/dist/interface/route.d.ts +0 -1
- package/dist/interface/routeAnalysis.d.ts +0 -1
- package/dist/interface/routeAutomationJob.d.ts +0 -1
- package/dist/interface/routeAutomationLog.d.ts +0 -1
- package/dist/interface/serviceArea.d.ts +0 -1
- package/dist/interface/vehicle.d.ts +0 -1
- package/dist/{magic-string.es-BKBb7z-1.js → magic-string.es-D4UQQyt0.js} +265 -264
- package/dist/{motion-CUN72xsH.js → motion-C-XpKcZG.js} +6 -5
- package/dist/{pickAttrs-CleuMJFR.js → pickAttrs-yFE4_vFd.js} +1 -1
- package/dist/{presets-Djh_L_6R.js → presets-CSXMiWyc.js} +176 -176
- package/dist/providers/BreakpointThemeProvider.d.ts +0 -1
- package/dist/providers/BreakpointThemeProvider.js +5 -5
- package/dist/providers/GenesisProvider.d.ts +0 -1
- package/dist/providers/GenesisProvider.js +1 -1
- package/dist/providers/ToastProvider.d.ts +0 -1
- package/dist/providers/ToastProvider.js +10 -9
- package/dist/providers/__stories__/GenesisProvider.stories.d.ts +0 -1
- package/dist/providers/index.js +1 -1
- package/dist/providers/useGenesis.d.ts +0 -1
- package/dist/providers/useGenesis.js +2 -2
- package/dist/{roundedArrow-DI_Q-xdU.js → roundedArrow-BxPlu4Hq.js} +2 -2
- package/dist/setup-aZdxWCJq.js +13976 -0
- package/dist/setup.types-CgFq66QX.js +9261 -0
- package/dist/shadow-9lsz-71t.js +13 -0
- package/dist/statusUtils-Kj9kMuVg.js +15 -0
- package/dist/{styleChecker-Cotu61d0.js → styleChecker-CSH9LQtm.js} +3 -3
- package/dist/{styled-components.browser.esm-CZ1XM4o4.js → styled-components.browser.esm-C47QHsU4.js} +371 -304
- package/dist/styles/design-tokens/border-tokens/BorderTokenList.js +11 -10
- package/dist/styles/design-tokens/border-tokens/BorderTokens.stories.d.ts +0 -1
- package/dist/styles/design-tokens/color-tokens/ColorTokens.stories.d.ts +0 -1
- package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.js +9 -8
- package/dist/styles/design-tokens/sizing-tokens/index.stories.d.ts +0 -1
- package/dist/styles/design-tokens/typography-tokens/TypographyTokens.stories.d.ts +0 -1
- package/dist/styles/global-styles.d.ts +0 -1
- package/dist/styles/global-styles.js +1 -1
- package/dist/styles/theme/genesis-theme.d.ts +0 -1
- package/dist/styles/theme/genesis-theme.js +285 -337
- package/dist/styles/theme/genesis-theme.test.d.ts +1 -0
- package/dist/styles/theme/genesis-theme.test.js +69 -0
- package/dist/styles/theme/theme-tree/ThemeTree.js +488 -488
- package/dist/styles/theme/theme-tree/ThemeTree.stories.d.ts +0 -1
- package/dist/styles-DNay6iFa.js +292 -0
- package/dist/styles-Wpm1RiGr.js +9212 -0
- package/dist/styles-XuoEGUZZ.js +549 -0
- package/dist/test/setup.d.ts +0 -1
- package/dist/test/setup.js +35 -35
- package/dist/test/setup.types.d.ts +0 -1
- package/dist/test/setup.types.js +1 -1
- package/dist/{toArray-U3Az44CO.js → toArray-D5kvYi_U.js} +1 -1
- package/dist/useBreakpoint-ByLol0R9.js +88 -0
- package/dist/useCSSVarCls-YfJY1twF.js +10 -0
- package/dist/{useIcons-Ck4JP1m9.js → useIcons-CoxuumP_.js} +16 -16
- package/dist/{useId-D2tzlufo.js → useId-DLf1xVuv.js} +3 -3
- package/dist/useLocale-BQ3mKRyJ.js +16 -0
- package/dist/{useMergedState-D6toxSxh.js → useMergedState-D1-TbeEv.js} +2 -2
- package/dist/useSize-Ct1guc-z.js +9 -0
- package/dist/useVariants-C6UAAu9f.js +19 -0
- package/dist/{useZIndex-DhyHuZTN.js → useZIndex-tgX56o1r.js} +7 -6
- package/dist/utils/icon-util.js +48 -44
- package/dist/vi.B5EKKJdE-BsDIxc7v.js +14087 -0
- package/package.json +33 -24
- package/dist/EllipsisOutlined-DGMph0Bj.js +0 -1115
- package/dist/KeyCode-DM2sFh3-.js +0 -517
- package/dist/TextArea-Bkf9hh7l.js +0 -708
- package/dist/_baseIsEqual-L0-w1QRI.js +0 -598
- package/dist/button-BwqpCxVM.js +0 -1406
- package/dist/clsx-OuTLNxxd.js +0 -16
- package/dist/index-BRUI9igj.js +0 -11
- package/dist/index-BbTV2Cw5.js +0 -22638
- package/dist/index-BeGv28kJ.js +0 -5173
- package/dist/index-BvOLXELm.js +0 -102
- package/dist/index-CLSrpQRW.js +0 -416
- package/dist/index-CbVOl2U6.js +0 -288
- package/dist/index-D0U6r5O7.js +0 -780
- package/dist/index-DEu2PVzQ.js +0 -538
- package/dist/index-DLdU7Tpd.js +0 -183
- package/dist/index-DNQ-jnBx.js +0 -3321
- package/dist/index-DWjq9XYj.js +0 -899
- package/dist/responsiveObserver-dCkpy7Cb.js +0 -73
- package/dist/setup-DwHFLWUb.js +0 -24713
- package/dist/setup.types-dBtAXXGp.js +0 -8824
- package/dist/shadow-BoMGMNn3.js +0 -13
- package/dist/styles-CWdUpZom.js +0 -289
- package/dist/styles-qerRs7Rn.js +0 -9196
- package/dist/useBreakpoint-TkMv121M.js +0 -22
- package/dist/useCSSVarCls-Dau77fzS.js +0 -11
- package/dist/useLocale-CTfNpakL.js +0 -16
- package/dist/useSize-DSq4r6zy.js +0 -9
- package/dist/useVariants-DrLzUVLU.js +0 -30
- package/dist/utils/getAppointmentColor.d.ts +0 -4
- package/dist/utils/getAppointmentColor.js +0 -91
- package/dist/utils/isAllEnglishString.d.ts +0 -1
- package/dist/utils/isAllEnglishString.js +0 -8
- package/dist/utils/isAllEnglishString.test.js +0 -8
- package/dist/utils/parseAddress.d.ts +0 -3
- package/dist/utils/parseAddress.js +0 -19
- /package/dist/{utils/isAllEnglishString.test.d.ts → components/FormBrandon/__tests__/form.test.d.ts} +0 -0
|
@@ -1,27 +1,26 @@
|
|
|
1
|
-
import { d as ft } from "./
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { d as he, D as mt, V as ft, a as pt, g as _e, s as gt, l as ht, w as bt } from "./index-DCopujxC.js";
|
|
2
|
+
import { a as we, u as yt, V as $t, b as Xe, c as te, R as vt, F as fe, d as ke, C as xt, L as Ct, W as wt, e as St, f as Ot } from "./context-CQfFkrkv.js";
|
|
3
|
+
import { g as Se, m as Ke, f as Q, C as be, j as Ye, n as Y, p as Et, a1 as It, a2 as Ft, l as Nt, S as jt, w as Pe, z as Mt, q as _t, Z as Pt, h as Ue, u as Rt, y as Vt } from "./CSSMotionList-DB0khM6h.js";
|
|
4
4
|
import * as l from "react";
|
|
5
5
|
import { createContext as Dt } from "react";
|
|
6
|
-
import {
|
|
7
|
-
import { i as
|
|
8
|
-
import { u as
|
|
6
|
+
import { c as J, e as Lt } from "./presets-CSXMiWyc.js";
|
|
7
|
+
import { i as Re } from "./motion-C-XpKcZG.js";
|
|
8
|
+
import { u as Oe } from "./useCSSVarCls-YfJY1twF.js";
|
|
9
9
|
import { g as Tt } from "./collapse-Dtpt-6W_.js";
|
|
10
|
-
import { z as Qe, T as Wt } from "./index-
|
|
11
|
-
import "./
|
|
12
|
-
import { u as Ht } from "./useSize-DSq4r6zy.js";
|
|
10
|
+
import { z as Qe, T as Wt } from "./index-Y0KgiFZb.js";
|
|
11
|
+
import { u as Ht } from "./useSize-Ct1guc-z.js";
|
|
13
12
|
import { c as At } from "./reactNode-sKPeiqPL.js";
|
|
14
|
-
import { t as zt } from "./toArray-
|
|
13
|
+
import { t as zt } from "./toArray-D5kvYi_U.js";
|
|
15
14
|
import { i as qt } from "./isVisible-D3-B85BJ.js";
|
|
16
15
|
import { o as Bt } from "./omit-B_u6A-HL.js";
|
|
17
|
-
import {
|
|
18
|
-
import { I as Xt } from "./AntdIcon-
|
|
19
|
-
import { u as kt } from "./useLocale-
|
|
20
|
-
import { R as Kt } from "./CheckCircleFilled-
|
|
21
|
-
import { R as Yt } from "./CloseCircleFilled-
|
|
22
|
-
import { R as Ut } from "./ExclamationCircleFilled-
|
|
23
|
-
import { R as Qt } from "./LoadingOutlined-
|
|
24
|
-
const
|
|
16
|
+
import { r as pe, u as Gt } from "./useBreakpoint-ByLol0R9.js";
|
|
17
|
+
import { I as Xt } from "./AntdIcon-DP6hPDqu.js";
|
|
18
|
+
import { u as kt } from "./useLocale-BQ3mKRyJ.js";
|
|
19
|
+
import { R as Kt } from "./CheckCircleFilled-B-wrMduA.js";
|
|
20
|
+
import { R as Yt } from "./CloseCircleFilled-WEQ0SaSW.js";
|
|
21
|
+
import { R as Ut } from "./ExclamationCircleFilled-x8Sr29BN.js";
|
|
22
|
+
import { R as Qt } from "./LoadingOutlined-DOi5EGOl.js";
|
|
23
|
+
const Ve = (e) => typeof e == "object" && e != null && e.nodeType === 1, De = (e, t) => (!t || e !== "hidden") && e !== "visible" && e !== "clip", ue = (e, t) => {
|
|
25
24
|
if (e.clientHeight < e.scrollHeight || e.clientWidth < e.scrollWidth) {
|
|
26
25
|
const r = getComputedStyle(e, null);
|
|
27
26
|
return De(r.overflowY, t) || De(r.overflowX, t) || ((n) => {
|
|
@@ -37,44 +36,44 @@ const Pe = (e) => typeof e == "object" && e != null && e.nodeType === 1, De = (e
|
|
|
37
36
|
})(e);
|
|
38
37
|
}
|
|
39
38
|
return !1;
|
|
40
|
-
},
|
|
39
|
+
}, de = (e, t, r, n, o, s, a, i) => s < e && a > t || s > e && a < t ? 0 : s <= e && i <= r || a >= t && i >= r ? s - e - n : a > t && i < r || s < e && i > r ? a - t + o : 0, Jt = (e) => {
|
|
41
40
|
const t = e.parentElement;
|
|
42
41
|
return t ?? (e.getRootNode().host || null);
|
|
43
42
|
}, Le = (e, t) => {
|
|
44
43
|
var r, n, o, s;
|
|
45
44
|
if (typeof document > "u") return [];
|
|
46
|
-
const { scrollMode: a, block:
|
|
47
|
-
if (!
|
|
48
|
-
const
|
|
49
|
-
let
|
|
50
|
-
for (;
|
|
51
|
-
if (
|
|
52
|
-
|
|
45
|
+
const { scrollMode: a, block: i, inline: c, boundary: m, skipOverflowHiddenElements: O } = t, $ = typeof m == "function" ? m : (W) => W !== m;
|
|
46
|
+
if (!Ve(e)) throw new TypeError("Invalid target");
|
|
47
|
+
const I = document.scrollingElement || document.documentElement, j = [];
|
|
48
|
+
let C = e;
|
|
49
|
+
for (; Ve(C) && $(C); ) {
|
|
50
|
+
if (C = Jt(C), C === I) {
|
|
51
|
+
j.push(C);
|
|
53
52
|
break;
|
|
54
53
|
}
|
|
55
|
-
|
|
54
|
+
C != null && C === document.body && ue(C) && !ue(document.documentElement) || C != null && ue(C, O) && j.push(C);
|
|
56
55
|
}
|
|
57
|
-
const S = (n = (r = window.visualViewport) == null ? void 0 : r.width) != null ? n : innerWidth,
|
|
58
|
-
const
|
|
59
|
-
return { top: parseFloat(
|
|
56
|
+
const S = (n = (r = window.visualViewport) == null ? void 0 : r.width) != null ? n : innerWidth, y = (s = (o = window.visualViewport) == null ? void 0 : o.height) != null ? s : innerHeight, { scrollX: d, scrollY: P } = window, { height: u, width: h, top: p, right: v, bottom: F, left: x } = e.getBoundingClientRect(), { top: b, right: g, bottom: V, left: A } = ((W) => {
|
|
57
|
+
const f = window.getComputedStyle(W);
|
|
58
|
+
return { top: parseFloat(f.scrollMarginTop) || 0, right: parseFloat(f.scrollMarginRight) || 0, bottom: parseFloat(f.scrollMarginBottom) || 0, left: parseFloat(f.scrollMarginLeft) || 0 };
|
|
60
59
|
})(e);
|
|
61
|
-
let
|
|
62
|
-
const
|
|
63
|
-
for (let
|
|
64
|
-
const
|
|
65
|
-
if (a === "if-needed" && p >= 0 &&
|
|
66
|
-
const
|
|
67
|
-
let
|
|
68
|
-
const
|
|
69
|
-
if (
|
|
60
|
+
let D = i === "start" || i === "nearest" ? p - b : i === "end" ? F + V : p + u / 2 - b + V, w = c === "center" ? x + h / 2 - A + g : c === "end" ? v + g : x - A;
|
|
61
|
+
const T = [];
|
|
62
|
+
for (let W = 0; W < j.length; W++) {
|
|
63
|
+
const f = j[W], { height: z, width: E, top: q, right: K, bottom: le, left: X } = f.getBoundingClientRect();
|
|
64
|
+
if (a === "if-needed" && p >= 0 && x >= 0 && F <= y && v <= S && (f === I && !ue(f) || p >= q && F <= le && x >= X && v <= K)) return T;
|
|
65
|
+
const Z = getComputedStyle(f), B = parseInt(Z.borderLeftWidth, 10), ee = parseInt(Z.borderTopWidth, 10), k = parseInt(Z.borderRightWidth, 10), N = parseInt(Z.borderBottomWidth, 10);
|
|
66
|
+
let R = 0, M = 0;
|
|
67
|
+
const _ = "offsetWidth" in f ? f.offsetWidth - f.clientWidth - B - k : 0, H = "offsetHeight" in f ? f.offsetHeight - f.clientHeight - ee - N : 0, G = "offsetWidth" in f ? f.offsetWidth === 0 ? 0 : E / f.offsetWidth : 0, ne = "offsetHeight" in f ? f.offsetHeight === 0 ? 0 : z / f.offsetHeight : 0;
|
|
68
|
+
if (I === f) R = i === "start" ? D : i === "end" ? D - y : i === "nearest" ? de(P, P + y, y, ee, N, P + D, P + D + u, u) : D - y / 2, M = c === "start" ? w : c === "center" ? w - S / 2 : c === "end" ? w - S : de(d, d + S, S, B, k, d + w, d + w + h, h), R = Math.max(0, R + P), M = Math.max(0, M + d);
|
|
70
69
|
else {
|
|
71
|
-
|
|
72
|
-
const { scrollLeft:
|
|
73
|
-
|
|
70
|
+
R = i === "start" ? D - q - ee : i === "end" ? D - le + N + H : i === "nearest" ? de(q, le, z, ee, N + H, D, D + u, u) : D - (q + z / 2) + H / 2, M = c === "start" ? w - X - B : c === "center" ? w - (X + E / 2) + _ / 2 : c === "end" ? w - K + k + _ : de(X, K, E, B, k + _, w, w + h, h);
|
|
71
|
+
const { scrollLeft: re, scrollTop: L } = f;
|
|
72
|
+
R = ne === 0 ? 0 : Math.max(0, Math.min(L + R / ne, f.scrollHeight - z / ne + H)), M = G === 0 ? 0 : Math.max(0, Math.min(re + M / G, f.scrollWidth - E / G + _)), D += L - R, w += re - M;
|
|
74
73
|
}
|
|
75
|
-
|
|
74
|
+
T.push({ el: f, top: R, left: M });
|
|
76
75
|
}
|
|
77
|
-
return
|
|
76
|
+
return T;
|
|
78
77
|
}, Zt = (e) => e === !1 ? { block: "end", inline: "nearest" } : ((t) => t === Object(t) && Object.keys(t).length !== 0)(e) ? e : { block: "start", inline: "nearest" };
|
|
79
78
|
function en(e, t) {
|
|
80
79
|
if (!e.isConnected || !((o) => {
|
|
@@ -92,8 +91,8 @@ function en(e, t) {
|
|
|
92
91
|
if (((o) => typeof o == "object" && typeof o.behavior == "function")(t)) return t.behavior(Le(e, t));
|
|
93
92
|
const n = typeof t == "boolean" || t == null ? void 0 : t.behavior;
|
|
94
93
|
for (const { el: o, top: s, left: a } of Le(e, Zt(t))) {
|
|
95
|
-
const
|
|
96
|
-
o.scroll({ top:
|
|
94
|
+
const i = s - r.top + r.bottom, c = a - r.left + r.right;
|
|
95
|
+
o.scroll({ top: i, left: c, behavior: n });
|
|
97
96
|
}
|
|
98
97
|
}
|
|
99
98
|
const tn = (e) => {
|
|
@@ -206,21 +205,21 @@ const tn = (e) => {
|
|
|
206
205
|
return s[`${n}${t}-flex`] = {
|
|
207
206
|
flex: `var(--${r}${t}-flex)`
|
|
208
207
|
}, s;
|
|
209
|
-
},
|
|
210
|
-
[`@media (min-width: ${Q(t)})`]: Object.assign({},
|
|
211
|
-
}), ln = () => ({}), sn = () => ({}), an =
|
|
208
|
+
}, Ce = (e, t) => rn(e, t), on = (e, t, r) => ({
|
|
209
|
+
[`@media (min-width: ${Q(t)})`]: Object.assign({}, Ce(e, r))
|
|
210
|
+
}), ln = () => ({}), sn = () => ({}), an = Se("Grid", tn, ln), cn = (e) => ({
|
|
212
211
|
xs: e.screenXSMin,
|
|
213
212
|
sm: e.screenSMMin,
|
|
214
213
|
md: e.screenMDMin,
|
|
215
214
|
lg: e.screenLGMin,
|
|
216
215
|
xl: e.screenXLMin,
|
|
217
216
|
xxl: e.screenXXLMin
|
|
218
|
-
}), un =
|
|
219
|
-
const t =
|
|
217
|
+
}), un = Se("Grid", (e) => {
|
|
218
|
+
const t = Ke(e, {
|
|
220
219
|
gridColumns: 24
|
|
221
220
|
// Row is divided into 24 parts in Grid
|
|
222
221
|
}), r = cn(t);
|
|
223
|
-
return delete r.xs, [nn(t),
|
|
222
|
+
return delete r.xs, [nn(t), Ce(t, ""), Ce(t, "-xs"), Object.keys(r).map((n) => on(t, r[n], `-${n}`)).reduce((n, o) => Object.assign(Object.assign({}, n), o), {})];
|
|
224
223
|
}, sn), Je = /* @__PURE__ */ Dt({});
|
|
225
224
|
var dn = function(e, t) {
|
|
226
225
|
var r = {};
|
|
@@ -232,57 +231,79 @@ var dn = function(e, t) {
|
|
|
232
231
|
function Te(e) {
|
|
233
232
|
return typeof e == "number" ? `${e} ${e} auto` : /^\d+(\.\d+)?(px|em|rem|%)$/.test(e) ? `0 0 ${e}` : e;
|
|
234
233
|
}
|
|
235
|
-
const
|
|
234
|
+
const mn = ["xs", "sm", "md", "lg", "xl", "xxl"], Ee = /* @__PURE__ */ l.forwardRef((e, t) => {
|
|
236
235
|
const {
|
|
237
236
|
getPrefixCls: r,
|
|
238
237
|
direction: n
|
|
239
|
-
} = l.useContext(
|
|
238
|
+
} = l.useContext(be), {
|
|
240
239
|
gutter: o,
|
|
241
240
|
wrap: s
|
|
242
241
|
} = l.useContext(Je), {
|
|
243
242
|
prefixCls: a,
|
|
244
|
-
span:
|
|
245
|
-
order:
|
|
243
|
+
span: i,
|
|
244
|
+
order: c,
|
|
246
245
|
offset: m,
|
|
247
|
-
push:
|
|
248
|
-
pull:
|
|
249
|
-
className:
|
|
250
|
-
children:
|
|
251
|
-
flex:
|
|
246
|
+
push: O,
|
|
247
|
+
pull: $,
|
|
248
|
+
className: I,
|
|
249
|
+
children: j,
|
|
250
|
+
flex: C,
|
|
252
251
|
style: S
|
|
253
|
-
} = e,
|
|
254
|
-
let
|
|
255
|
-
|
|
252
|
+
} = e, y = dn(e, ["prefixCls", "span", "order", "offset", "push", "pull", "className", "children", "flex", "style"]), d = r("col", a), [P, u, h] = un(d), p = {};
|
|
253
|
+
let v = {};
|
|
254
|
+
mn.forEach((b) => {
|
|
256
255
|
let g = {};
|
|
257
|
-
const
|
|
258
|
-
typeof
|
|
259
|
-
[`${
|
|
260
|
-
[`${
|
|
261
|
-
[`${
|
|
262
|
-
[`${
|
|
263
|
-
[`${
|
|
264
|
-
[`${
|
|
265
|
-
}), g.flex && (
|
|
256
|
+
const V = e[b];
|
|
257
|
+
typeof V == "number" ? g.span = V : typeof V == "object" && (g = V || {}), delete y[b], v = Object.assign(Object.assign({}, v), {
|
|
258
|
+
[`${d}-${b}-${g.span}`]: g.span !== void 0,
|
|
259
|
+
[`${d}-${b}-order-${g.order}`]: g.order || g.order === 0,
|
|
260
|
+
[`${d}-${b}-offset-${g.offset}`]: g.offset || g.offset === 0,
|
|
261
|
+
[`${d}-${b}-push-${g.push}`]: g.push || g.push === 0,
|
|
262
|
+
[`${d}-${b}-pull-${g.pull}`]: g.pull || g.pull === 0,
|
|
263
|
+
[`${d}-rtl`]: n === "rtl"
|
|
264
|
+
}), g.flex && (v[`${d}-${b}-flex`] = !0, p[`--${d}-${b}-flex`] = Te(g.flex));
|
|
266
265
|
});
|
|
267
|
-
const
|
|
268
|
-
[`${
|
|
269
|
-
[`${
|
|
270
|
-
[`${
|
|
271
|
-
[`${
|
|
272
|
-
[`${
|
|
273
|
-
},
|
|
266
|
+
const F = J(d, {
|
|
267
|
+
[`${d}-${i}`]: i !== void 0,
|
|
268
|
+
[`${d}-order-${c}`]: c,
|
|
269
|
+
[`${d}-offset-${m}`]: m,
|
|
270
|
+
[`${d}-push-${O}`]: O,
|
|
271
|
+
[`${d}-pull-${$}`]: $
|
|
272
|
+
}, I, v, u, h), x = {};
|
|
274
273
|
if (o && o[0] > 0) {
|
|
275
|
-
const
|
|
276
|
-
|
|
274
|
+
const b = o[0] / 2;
|
|
275
|
+
x.paddingLeft = b, x.paddingRight = b;
|
|
277
276
|
}
|
|
278
|
-
return
|
|
279
|
-
style: Object.assign(Object.assign(Object.assign({},
|
|
280
|
-
className:
|
|
277
|
+
return C && (x.flex = Te(C), s === !1 && !x.minWidth && (x.minWidth = 0)), P(/* @__PURE__ */ l.createElement("div", Object.assign({}, y, {
|
|
278
|
+
style: Object.assign(Object.assign(Object.assign({}, x), S), p),
|
|
279
|
+
className: F,
|
|
281
280
|
ref: t
|
|
282
|
-
}),
|
|
281
|
+
}), j));
|
|
283
282
|
});
|
|
284
|
-
process.env.NODE_ENV !== "production" && (
|
|
285
|
-
|
|
283
|
+
process.env.NODE_ENV !== "production" && (Ee.displayName = "Col");
|
|
284
|
+
function fn(e, t) {
|
|
285
|
+
const r = [void 0, void 0], n = Array.isArray(e) ? e : [e, void 0], o = t || {
|
|
286
|
+
xs: !0,
|
|
287
|
+
sm: !0,
|
|
288
|
+
md: !0,
|
|
289
|
+
lg: !0,
|
|
290
|
+
xl: !0,
|
|
291
|
+
xxl: !0
|
|
292
|
+
};
|
|
293
|
+
return n.forEach((s, a) => {
|
|
294
|
+
if (typeof s == "object" && s !== null)
|
|
295
|
+
for (let i = 0; i < pe.length; i++) {
|
|
296
|
+
const c = pe[i];
|
|
297
|
+
if (o[c] && s[c] !== void 0) {
|
|
298
|
+
r[a] = s[c];
|
|
299
|
+
break;
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
else
|
|
303
|
+
r[a] = s;
|
|
304
|
+
}), r;
|
|
305
|
+
}
|
|
306
|
+
var pn = function(e, t) {
|
|
286
307
|
var r = {};
|
|
287
308
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
288
309
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var o = 0, n = Object.getOwnPropertySymbols(e); o < n.length; o++)
|
|
@@ -292,13 +313,13 @@ var mn = function(e, t) {
|
|
|
292
313
|
function We(e, t) {
|
|
293
314
|
const [r, n] = l.useState(typeof e == "string" ? e : ""), o = () => {
|
|
294
315
|
if (typeof e == "string" && n(e), typeof e == "object")
|
|
295
|
-
for (let s = 0; s <
|
|
296
|
-
const a =
|
|
297
|
-
if (!t[a])
|
|
316
|
+
for (let s = 0; s < pe.length; s++) {
|
|
317
|
+
const a = pe[s];
|
|
318
|
+
if (!t || !t[a])
|
|
298
319
|
continue;
|
|
299
|
-
const
|
|
300
|
-
if (
|
|
301
|
-
n(
|
|
320
|
+
const i = e[a];
|
|
321
|
+
if (i !== void 0) {
|
|
322
|
+
n(i);
|
|
302
323
|
return;
|
|
303
324
|
}
|
|
304
325
|
}
|
|
@@ -314,72 +335,35 @@ const Ze = /* @__PURE__ */ l.forwardRef((e, t) => {
|
|
|
314
335
|
align: o,
|
|
315
336
|
className: s,
|
|
316
337
|
style: a,
|
|
317
|
-
children:
|
|
318
|
-
gutter:
|
|
338
|
+
children: i,
|
|
339
|
+
gutter: c = 0,
|
|
319
340
|
wrap: m
|
|
320
|
-
} = e,
|
|
321
|
-
getPrefixCls:
|
|
322
|
-
direction:
|
|
323
|
-
} = l.useContext(
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
lg: !1,
|
|
335
|
-
xl: !1,
|
|
336
|
-
xxl: !1
|
|
337
|
-
}), f = We(o, S), j = We(n, S), i = l.useRef(u), h = Gt();
|
|
338
|
-
l.useEffect(() => {
|
|
339
|
-
const d = h.subscribe((z) => {
|
|
340
|
-
I(z);
|
|
341
|
-
const v = i.current || 0;
|
|
342
|
-
(!Array.isArray(v) && typeof v == "object" || Array.isArray(v) && (typeof v[0] == "object" || typeof v[1] == "object")) && w(z);
|
|
343
|
-
});
|
|
344
|
-
return () => h.unsubscribe(d);
|
|
345
|
-
}, []);
|
|
346
|
-
const p = () => {
|
|
347
|
-
const d = [void 0, void 0];
|
|
348
|
-
return (Array.isArray(u) ? u : [u, void 0]).forEach((v, q) => {
|
|
349
|
-
if (typeof v == "object")
|
|
350
|
-
for (let T = 0; T < ge.length; T++) {
|
|
351
|
-
const G = ge[T];
|
|
352
|
-
if (R[G] && v[G] !== void 0) {
|
|
353
|
-
d[q] = v[G];
|
|
354
|
-
break;
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
else
|
|
358
|
-
d[q] = v;
|
|
359
|
-
}), d;
|
|
360
|
-
}, b = y("row", r), [V, C, $] = an(b), g = p(), M = J(b, {
|
|
361
|
-
[`${b}-no-wrap`]: m === !1,
|
|
362
|
-
[`${b}-${j}`]: j,
|
|
363
|
-
[`${b}-${f}`]: f,
|
|
364
|
-
[`${b}-rtl`]: O === "rtl"
|
|
365
|
-
}, s, C, $), H = {}, N = g[0] != null && g[0] > 0 ? g[0] / -2 : void 0;
|
|
366
|
-
N && (H.marginLeft = N, H.marginRight = N);
|
|
367
|
-
const [x, P] = g;
|
|
368
|
-
H.rowGap = P;
|
|
369
|
-
const A = l.useMemo(() => ({
|
|
370
|
-
gutter: [x, P],
|
|
341
|
+
} = e, O = pn(e, ["prefixCls", "justify", "align", "className", "style", "children", "gutter", "wrap"]), {
|
|
342
|
+
getPrefixCls: $,
|
|
343
|
+
direction: I
|
|
344
|
+
} = l.useContext(be), j = Gt(!0, null), C = We(o, j), S = We(n, j), y = $("row", r), [d, P, u] = an(y), h = fn(c, j), p = J(y, {
|
|
345
|
+
[`${y}-no-wrap`]: m === !1,
|
|
346
|
+
[`${y}-${S}`]: S,
|
|
347
|
+
[`${y}-${C}`]: C,
|
|
348
|
+
[`${y}-rtl`]: I === "rtl"
|
|
349
|
+
}, s, P, u), v = {}, F = h[0] != null && h[0] > 0 ? h[0] / -2 : void 0;
|
|
350
|
+
F && (v.marginLeft = F, v.marginRight = F);
|
|
351
|
+
const [x, b] = h;
|
|
352
|
+
v.rowGap = b;
|
|
353
|
+
const g = l.useMemo(() => ({
|
|
354
|
+
gutter: [x, b],
|
|
371
355
|
wrap: m
|
|
372
|
-
}), [x,
|
|
373
|
-
return
|
|
374
|
-
value:
|
|
375
|
-
}, /* @__PURE__ */ l.createElement("div", Object.assign({},
|
|
376
|
-
className:
|
|
377
|
-
style: Object.assign(Object.assign({},
|
|
356
|
+
}), [x, b, m]);
|
|
357
|
+
return d(/* @__PURE__ */ l.createElement(Je.Provider, {
|
|
358
|
+
value: g
|
|
359
|
+
}, /* @__PURE__ */ l.createElement("div", Object.assign({}, O, {
|
|
360
|
+
className: p,
|
|
361
|
+
style: Object.assign(Object.assign({}, v), a),
|
|
378
362
|
ref: t
|
|
379
|
-
}),
|
|
363
|
+
}), i)));
|
|
380
364
|
});
|
|
381
365
|
process.env.NODE_ENV !== "production" && (Ze.displayName = "Row");
|
|
382
|
-
function
|
|
366
|
+
function ge(e) {
|
|
383
367
|
const [t, r] = l.useState(e);
|
|
384
368
|
return l.useEffect(() => {
|
|
385
369
|
const n = setTimeout(() => {
|
|
@@ -390,7 +374,7 @@ function he(e) {
|
|
|
390
374
|
};
|
|
391
375
|
}, [e]), t;
|
|
392
376
|
}
|
|
393
|
-
const
|
|
377
|
+
const gn = (e) => {
|
|
394
378
|
const {
|
|
395
379
|
componentCls: t
|
|
396
380
|
} = e, r = `${t}-show-help`, n = `${t}-show-help-item`;
|
|
@@ -430,7 +414,7 @@ const pn = (e) => {
|
|
|
430
414
|
}
|
|
431
415
|
}
|
|
432
416
|
};
|
|
433
|
-
},
|
|
417
|
+
}, hn = (e) => ({
|
|
434
418
|
legend: {
|
|
435
419
|
display: "block",
|
|
436
420
|
width: "100%",
|
|
@@ -488,12 +472,12 @@ const pn = (e) => {
|
|
|
488
472
|
}
|
|
489
473
|
}
|
|
490
474
|
};
|
|
491
|
-
},
|
|
475
|
+
}, bn = (e) => {
|
|
492
476
|
const {
|
|
493
477
|
componentCls: t
|
|
494
478
|
} = e;
|
|
495
479
|
return {
|
|
496
|
-
[e.componentCls]: Object.assign(Object.assign(Object.assign({},
|
|
480
|
+
[e.componentCls]: Object.assign(Object.assign(Object.assign({}, Ye(e)), hn(e)), {
|
|
497
481
|
[`${t}-text`]: {
|
|
498
482
|
display: "inline-block",
|
|
499
483
|
paddingInlineEnd: e.paddingSM
|
|
@@ -505,7 +489,7 @@ const pn = (e) => {
|
|
|
505
489
|
"&-large": Object.assign({}, He(e, e.controlHeightLG))
|
|
506
490
|
})
|
|
507
491
|
};
|
|
508
|
-
},
|
|
492
|
+
}, yn = (e) => {
|
|
509
493
|
const {
|
|
510
494
|
formItemCls: t,
|
|
511
495
|
iconCls: r,
|
|
@@ -513,16 +497,16 @@ const pn = (e) => {
|
|
|
513
497
|
rootPrefixCls: o,
|
|
514
498
|
antCls: s,
|
|
515
499
|
labelRequiredMarkColor: a,
|
|
516
|
-
labelColor:
|
|
517
|
-
labelFontSize:
|
|
500
|
+
labelColor: i,
|
|
501
|
+
labelFontSize: c,
|
|
518
502
|
labelHeight: m,
|
|
519
|
-
labelColonMarginInlineStart:
|
|
520
|
-
labelColonMarginInlineEnd:
|
|
521
|
-
itemMarginBottom:
|
|
503
|
+
labelColonMarginInlineStart: O,
|
|
504
|
+
labelColonMarginInlineEnd: $,
|
|
505
|
+
itemMarginBottom: I
|
|
522
506
|
} = e;
|
|
523
507
|
return {
|
|
524
|
-
[t]: Object.assign(Object.assign({},
|
|
525
|
-
marginBottom:
|
|
508
|
+
[t]: Object.assign(Object.assign({}, Ye(e)), {
|
|
509
|
+
marginBottom: I,
|
|
526
510
|
verticalAlign: "top",
|
|
527
511
|
"&-with-help": {
|
|
528
512
|
transition: "none"
|
|
@@ -565,8 +549,8 @@ const pn = (e) => {
|
|
|
565
549
|
alignItems: "center",
|
|
566
550
|
maxWidth: "100%",
|
|
567
551
|
height: m,
|
|
568
|
-
color:
|
|
569
|
-
fontSize:
|
|
552
|
+
color: i,
|
|
553
|
+
fontSize: c,
|
|
570
554
|
[`> ${r}`]: {
|
|
571
555
|
fontSize: e.fontSize,
|
|
572
556
|
verticalAlign: "top"
|
|
@@ -604,8 +588,8 @@ const pn = (e) => {
|
|
|
604
588
|
content: '":"',
|
|
605
589
|
position: "relative",
|
|
606
590
|
marginBlock: 0,
|
|
607
|
-
marginInlineStart:
|
|
608
|
-
marginInlineEnd:
|
|
591
|
+
marginInlineStart: O,
|
|
592
|
+
marginInlineEnd: $
|
|
609
593
|
},
|
|
610
594
|
[`&${t}-no-colon::after`]: {
|
|
611
595
|
content: '"\\a0"'
|
|
@@ -720,7 +704,7 @@ const pn = (e) => {
|
|
|
720
704
|
}
|
|
721
705
|
}
|
|
722
706
|
};
|
|
723
|
-
},
|
|
707
|
+
}, $n = (e) => {
|
|
724
708
|
const {
|
|
725
709
|
componentCls: t,
|
|
726
710
|
formItemCls: r,
|
|
@@ -790,7 +774,7 @@ const pn = (e) => {
|
|
|
790
774
|
}
|
|
791
775
|
}
|
|
792
776
|
};
|
|
793
|
-
},
|
|
777
|
+
}, vn = (e) => {
|
|
794
778
|
const {
|
|
795
779
|
componentCls: t,
|
|
796
780
|
formItemCls: r,
|
|
@@ -894,21 +878,21 @@ const pn = (e) => {
|
|
|
894
878
|
verticalLabelPadding: `0 0 ${e.paddingXS}px`,
|
|
895
879
|
verticalLabelMargin: 0,
|
|
896
880
|
inlineItemMarginBottom: 0
|
|
897
|
-
}), tt = (e, t) =>
|
|
881
|
+
}), tt = (e, t) => Ke(e, {
|
|
898
882
|
formItemCls: `${e.componentCls}-item`,
|
|
899
883
|
rootPrefixCls: t
|
|
900
|
-
}), Ie =
|
|
884
|
+
}), Ie = Se("Form", (e, t) => {
|
|
901
885
|
let {
|
|
902
886
|
rootPrefixCls: r
|
|
903
887
|
} = t;
|
|
904
888
|
const n = tt(e, r);
|
|
905
|
-
return [
|
|
889
|
+
return [bn(n), yn(n), gn(n), Ae(n, n.componentCls), Ae(n, n.formItemCls), $n(n), vn(n), xn(n), Tt(n), Qe];
|
|
906
890
|
}, Cn, {
|
|
907
891
|
// Let From style before the Grid
|
|
908
892
|
// ref https://github.com/ant-design/ant-design/issues/44386
|
|
909
893
|
order: -1e3
|
|
910
894
|
}), ze = [];
|
|
911
|
-
function
|
|
895
|
+
function xe(e, t, r) {
|
|
912
896
|
let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0;
|
|
913
897
|
return {
|
|
914
898
|
key: typeof e == "string" ? e : `${t}-${n}`,
|
|
@@ -924,58 +908,57 @@ const nt = (e) => {
|
|
|
924
908
|
warnings: o = ze,
|
|
925
909
|
className: s,
|
|
926
910
|
fieldId: a,
|
|
927
|
-
onVisibleChanged:
|
|
911
|
+
onVisibleChanged: i
|
|
928
912
|
} = e;
|
|
929
913
|
const {
|
|
930
|
-
prefixCls:
|
|
931
|
-
} = l.useContext(
|
|
914
|
+
prefixCls: c
|
|
915
|
+
} = l.useContext(we), m = `${c}-item-explain`, O = Oe(c), [$, I, j] = Ie(c, O), C = l.useMemo(() => Re(c), [c]), S = ge(n), y = ge(o), d = l.useMemo(() => t != null ? [xe(t, "help", r)] : [].concat(Y(S.map((h, p) => xe(h, "error", "error", p))), Y(y.map((h, p) => xe(h, "warning", "warning", p)))), [t, r, S, y]), P = l.useMemo(() => {
|
|
932
916
|
const h = {};
|
|
933
|
-
return
|
|
917
|
+
return d.forEach((p) => {
|
|
934
918
|
let {
|
|
935
|
-
key:
|
|
919
|
+
key: v
|
|
936
920
|
} = p;
|
|
937
|
-
h[
|
|
938
|
-
}),
|
|
939
|
-
key: h[p.key] > 1 ? `${p.key}-fallback-${
|
|
921
|
+
h[v] = (h[v] || 0) + 1;
|
|
922
|
+
}), d.map((p, v) => Object.assign(Object.assign({}, p), {
|
|
923
|
+
key: h[p.key] > 1 ? `${p.key}-fallback-${v}` : p.key
|
|
940
924
|
}));
|
|
941
|
-
}, [
|
|
942
|
-
return a && (
|
|
943
|
-
motionDeadline:
|
|
944
|
-
motionName: `${
|
|
945
|
-
visible: !!
|
|
946
|
-
onVisibleChanged:
|
|
925
|
+
}, [d]), u = {};
|
|
926
|
+
return a && (u.id = `${a}_help`), $(/* @__PURE__ */ l.createElement(Et, {
|
|
927
|
+
motionDeadline: C.motionDeadline,
|
|
928
|
+
motionName: `${c}-show-help`,
|
|
929
|
+
visible: !!P.length,
|
|
930
|
+
onVisibleChanged: i
|
|
947
931
|
}, (h) => {
|
|
948
932
|
const {
|
|
949
933
|
className: p,
|
|
950
|
-
style:
|
|
934
|
+
style: v
|
|
951
935
|
} = h;
|
|
952
|
-
return /* @__PURE__ */ l.createElement("div", Object.assign({},
|
|
953
|
-
className: J(m, p,
|
|
954
|
-
style:
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
motionName: `${u}-show-help-item`,
|
|
936
|
+
return /* @__PURE__ */ l.createElement("div", Object.assign({}, u, {
|
|
937
|
+
className: J(m, p, j, O, s, I),
|
|
938
|
+
style: v
|
|
939
|
+
}), /* @__PURE__ */ l.createElement(It, Object.assign({
|
|
940
|
+
keys: P
|
|
941
|
+
}, Re(c), {
|
|
942
|
+
motionName: `${c}-show-help-item`,
|
|
960
943
|
component: !1
|
|
961
|
-
}), (
|
|
944
|
+
}), (F) => {
|
|
962
945
|
const {
|
|
963
|
-
key:
|
|
964
|
-
error:
|
|
946
|
+
key: x,
|
|
947
|
+
error: b,
|
|
965
948
|
errorStatus: g,
|
|
966
|
-
className:
|
|
967
|
-
style:
|
|
968
|
-
} =
|
|
949
|
+
className: V,
|
|
950
|
+
style: A
|
|
951
|
+
} = F;
|
|
969
952
|
return /* @__PURE__ */ l.createElement("div", {
|
|
970
|
-
key:
|
|
971
|
-
className: J(
|
|
953
|
+
key: x,
|
|
954
|
+
className: J(V, {
|
|
972
955
|
[`${m}-${g}`]: g
|
|
973
956
|
}),
|
|
974
|
-
style:
|
|
975
|
-
},
|
|
957
|
+
style: A
|
|
958
|
+
}, b);
|
|
976
959
|
}));
|
|
977
960
|
}));
|
|
978
|
-
},
|
|
961
|
+
}, wn = ["parentNode"], Sn = "form_item";
|
|
979
962
|
function ie(e) {
|
|
980
963
|
return e === void 0 || e === !1 ? [] : Array.isArray(e) ? e : [e];
|
|
981
964
|
}
|
|
@@ -983,17 +966,24 @@ function rt(e, t) {
|
|
|
983
966
|
if (!e.length)
|
|
984
967
|
return;
|
|
985
968
|
const r = e.join("_");
|
|
986
|
-
return t ? `${t}_${r}` :
|
|
969
|
+
return t ? `${t}_${r}` : wn.includes(r) ? `${Sn}_${r}` : r;
|
|
987
970
|
}
|
|
988
971
|
function ot(e, t, r, n, o, s) {
|
|
989
972
|
let a = n;
|
|
990
973
|
return s !== void 0 ? a = s : r.validating ? a = "validating" : e.length ? a = "error" : t.length ? a = "warning" : (r.touched || o && r.validated) && (a = "success"), a;
|
|
991
974
|
}
|
|
975
|
+
var On = function(e, t) {
|
|
976
|
+
var r = {};
|
|
977
|
+
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
978
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var o = 0, n = Object.getOwnPropertySymbols(e); o < n.length; o++)
|
|
979
|
+
t.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[o]) && (r[n[o]] = e[n[o]]);
|
|
980
|
+
return r;
|
|
981
|
+
};
|
|
992
982
|
function qe(e) {
|
|
993
983
|
return ie(e).join("_");
|
|
994
984
|
}
|
|
995
985
|
function Be(e, t) {
|
|
996
|
-
const r = t.getFieldInstance(e), n =
|
|
986
|
+
const r = t.getFieldInstance(e), n = Ft(r);
|
|
997
987
|
if (n)
|
|
998
988
|
return n;
|
|
999
989
|
const o = rt(ie(e), t.__INTERNAL__.name);
|
|
@@ -1001,7 +991,7 @@ function Be(e, t) {
|
|
|
1001
991
|
return document.getElementById(o);
|
|
1002
992
|
}
|
|
1003
993
|
function lt(e) {
|
|
1004
|
-
const [t] =
|
|
994
|
+
const [t] = yt(), r = l.useRef({}), n = l.useMemo(() => e ?? Object.assign(Object.assign({}, t), {
|
|
1005
995
|
__INTERNAL__: {
|
|
1006
996
|
itemRef: (o) => (s) => {
|
|
1007
997
|
const a = qe(o);
|
|
@@ -1010,16 +1000,18 @@ function lt(e) {
|
|
|
1010
1000
|
},
|
|
1011
1001
|
scrollToField: function(o) {
|
|
1012
1002
|
let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
1013
|
-
const
|
|
1014
|
-
|
|
1003
|
+
const {
|
|
1004
|
+
focus: a
|
|
1005
|
+
} = s, i = On(s, ["focus"]), c = Be(o, n);
|
|
1006
|
+
c && (en(c, Object.assign({
|
|
1015
1007
|
scrollMode: "if-needed",
|
|
1016
1008
|
block: "nearest"
|
|
1017
|
-
},
|
|
1009
|
+
}, i)), a && n.focusField(o));
|
|
1018
1010
|
},
|
|
1019
1011
|
focusField: (o) => {
|
|
1020
|
-
var s;
|
|
1021
|
-
const
|
|
1022
|
-
a
|
|
1012
|
+
var s, a;
|
|
1013
|
+
const i = n.getFieldInstance(o);
|
|
1014
|
+
typeof (i == null ? void 0 : i.focus) == "function" ? i.focus() : (a = (s = Be(o, n)) === null || s === void 0 ? void 0 : s.focus) === null || a === void 0 || a.call(s);
|
|
1023
1015
|
},
|
|
1024
1016
|
getFieldInstance: (o) => {
|
|
1025
1017
|
const s = qe(o);
|
|
@@ -1029,11 +1021,11 @@ function lt(e) {
|
|
|
1029
1021
|
return [n];
|
|
1030
1022
|
}
|
|
1031
1023
|
const me = {};
|
|
1032
|
-
function
|
|
1024
|
+
function En(e) {
|
|
1033
1025
|
let {
|
|
1034
1026
|
name: t
|
|
1035
1027
|
} = e;
|
|
1036
|
-
const r =
|
|
1028
|
+
const r = he("Form");
|
|
1037
1029
|
l.useEffect(() => {
|
|
1038
1030
|
if (t)
|
|
1039
1031
|
return me[t] = (me[t] || 0) + 1, process.env.NODE_ENV !== "production" && r(me[t] <= 1, "usage", "There exist multiple Form with same `name`."), () => {
|
|
@@ -1041,109 +1033,113 @@ function Sn(e) {
|
|
|
1041
1033
|
};
|
|
1042
1034
|
}, [t]);
|
|
1043
1035
|
}
|
|
1044
|
-
var
|
|
1036
|
+
var In = function(e, t) {
|
|
1045
1037
|
var r = {};
|
|
1046
1038
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1047
1039
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var o = 0, n = Object.getOwnPropertySymbols(e); o < n.length; o++)
|
|
1048
1040
|
t.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[o]) && (r[n[o]] = e[n[o]]);
|
|
1049
1041
|
return r;
|
|
1050
1042
|
};
|
|
1051
|
-
const
|
|
1052
|
-
const r = l.useContext(
|
|
1043
|
+
const Fn = (e, t) => {
|
|
1044
|
+
const r = l.useContext(mt), {
|
|
1053
1045
|
getPrefixCls: n,
|
|
1054
1046
|
direction: o,
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
prefixCls: a,
|
|
1058
|
-
className: c,
|
|
1059
|
-
rootClassName: u,
|
|
1060
|
-
size: m,
|
|
1061
|
-
disabled: E = r,
|
|
1062
|
-
form: y,
|
|
1063
|
-
colon: O,
|
|
1064
|
-
labelAlign: R,
|
|
1065
|
-
labelWrap: w,
|
|
1066
|
-
labelCol: S,
|
|
1067
|
-
wrapperCol: I,
|
|
1068
|
-
hideRequiredMark: f,
|
|
1069
|
-
layout: j = "horizontal",
|
|
1047
|
+
requiredMark: s,
|
|
1048
|
+
colon: a,
|
|
1070
1049
|
scrollToFirstError: i,
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1050
|
+
className: c,
|
|
1051
|
+
style: m
|
|
1052
|
+
} = Nt("form"), {
|
|
1053
|
+
prefixCls: O,
|
|
1054
|
+
className: $,
|
|
1055
|
+
rootClassName: I,
|
|
1056
|
+
size: j,
|
|
1057
|
+
disabled: C = r,
|
|
1058
|
+
form: S,
|
|
1059
|
+
colon: y,
|
|
1060
|
+
labelAlign: d,
|
|
1061
|
+
labelWrap: P,
|
|
1062
|
+
labelCol: u,
|
|
1063
|
+
wrapperCol: h,
|
|
1064
|
+
hideRequiredMark: p,
|
|
1065
|
+
layout: v = "horizontal",
|
|
1066
|
+
scrollToFirstError: F,
|
|
1067
|
+
requiredMark: x,
|
|
1068
|
+
onFinishFailed: b,
|
|
1069
|
+
name: g,
|
|
1074
1070
|
style: V,
|
|
1075
|
-
feedbackIcons:
|
|
1076
|
-
variant:
|
|
1077
|
-
} = e,
|
|
1078
|
-
process.env.NODE_ENV !== "production" &&
|
|
1079
|
-
const
|
|
1080
|
-
[`${
|
|
1081
|
-
[`${
|
|
1082
|
-
[`${
|
|
1083
|
-
},
|
|
1084
|
-
__INTERNAL__:
|
|
1085
|
-
} =
|
|
1086
|
-
|
|
1087
|
-
const
|
|
1088
|
-
name:
|
|
1089
|
-
labelAlign:
|
|
1090
|
-
labelCol:
|
|
1091
|
-
labelWrap:
|
|
1092
|
-
wrapperCol:
|
|
1093
|
-
vertical:
|
|
1094
|
-
colon:
|
|
1095
|
-
requiredMark:
|
|
1096
|
-
itemRef:
|
|
1097
|
-
form:
|
|
1098
|
-
feedbackIcons:
|
|
1099
|
-
}), [
|
|
1071
|
+
feedbackIcons: A,
|
|
1072
|
+
variant: D
|
|
1073
|
+
} = e, w = In(e, ["prefixCls", "className", "rootClassName", "size", "disabled", "form", "colon", "labelAlign", "labelWrap", "labelCol", "wrapperCol", "hideRequiredMark", "layout", "scrollToFirstError", "requiredMark", "onFinishFailed", "name", "style", "feedbackIcons", "variant"]), T = Ht(j), W = l.useContext(ft);
|
|
1074
|
+
process.env.NODE_ENV !== "production" && En(e);
|
|
1075
|
+
const f = l.useMemo(() => x !== void 0 ? x : p ? !1 : s !== void 0 ? s : !0, [p, x, s]), z = y ?? a, E = n("form", O), q = Oe(E), [K, le, X] = Ie(E, q), Z = J(E, `${E}-${v}`, {
|
|
1076
|
+
[`${E}-hide-required-mark`]: f === !1,
|
|
1077
|
+
[`${E}-rtl`]: o === "rtl",
|
|
1078
|
+
[`${E}-${T}`]: T
|
|
1079
|
+
}, X, q, le, c, $, I), [B] = lt(S), {
|
|
1080
|
+
__INTERNAL__: ee
|
|
1081
|
+
} = B;
|
|
1082
|
+
ee.name = g;
|
|
1083
|
+
const k = l.useMemo(() => ({
|
|
1084
|
+
name: g,
|
|
1085
|
+
labelAlign: d,
|
|
1086
|
+
labelCol: u,
|
|
1087
|
+
labelWrap: P,
|
|
1088
|
+
wrapperCol: h,
|
|
1089
|
+
vertical: v === "vertical",
|
|
1090
|
+
colon: z,
|
|
1091
|
+
requiredMark: f,
|
|
1092
|
+
itemRef: ee.itemRef,
|
|
1093
|
+
form: B,
|
|
1094
|
+
feedbackIcons: A
|
|
1095
|
+
}), [g, d, u, h, v, z, f, B, A]), N = l.useRef(null);
|
|
1100
1096
|
l.useImperativeHandle(t, () => {
|
|
1101
|
-
var
|
|
1102
|
-
return Object.assign(Object.assign({},
|
|
1103
|
-
nativeElement: (
|
|
1097
|
+
var _;
|
|
1098
|
+
return Object.assign(Object.assign({}, B), {
|
|
1099
|
+
nativeElement: (_ = N.current) === null || _ === void 0 ? void 0 : _.nativeElement
|
|
1104
1100
|
});
|
|
1105
1101
|
});
|
|
1106
|
-
const
|
|
1107
|
-
if (
|
|
1108
|
-
let
|
|
1102
|
+
const R = (_, H) => {
|
|
1103
|
+
if (_) {
|
|
1104
|
+
let G = {
|
|
1109
1105
|
block: "nearest"
|
|
1110
1106
|
};
|
|
1111
|
-
typeof
|
|
1107
|
+
typeof _ == "object" && (G = Object.assign(Object.assign({}, G), _)), B.scrollToField(H, G);
|
|
1112
1108
|
}
|
|
1113
|
-
},
|
|
1114
|
-
if (
|
|
1115
|
-
const
|
|
1116
|
-
if (
|
|
1117
|
-
|
|
1109
|
+
}, M = (_) => {
|
|
1110
|
+
if (b == null || b(_), _.errorFields.length) {
|
|
1111
|
+
const H = _.errorFields[0].name;
|
|
1112
|
+
if (F !== void 0) {
|
|
1113
|
+
R(F, H);
|
|
1118
1114
|
return;
|
|
1119
1115
|
}
|
|
1120
|
-
|
|
1116
|
+
i !== void 0 && R(i, H);
|
|
1121
1117
|
}
|
|
1122
1118
|
};
|
|
1123
|
-
return
|
|
1124
|
-
value:
|
|
1125
|
-
}, /* @__PURE__ */ l.createElement(
|
|
1126
|
-
disabled:
|
|
1127
|
-
}, /* @__PURE__ */ l.createElement(
|
|
1128
|
-
value:
|
|
1129
|
-
}, /* @__PURE__ */ l.createElement(
|
|
1119
|
+
return K(/* @__PURE__ */ l.createElement($t.Provider, {
|
|
1120
|
+
value: D
|
|
1121
|
+
}, /* @__PURE__ */ l.createElement(pt, {
|
|
1122
|
+
disabled: C
|
|
1123
|
+
}, /* @__PURE__ */ l.createElement(jt.Provider, {
|
|
1124
|
+
value: T
|
|
1125
|
+
}, /* @__PURE__ */ l.createElement(Xe, {
|
|
1130
1126
|
// This is not list in API, we pass with spread
|
|
1131
|
-
validateMessages:
|
|
1132
|
-
}, /* @__PURE__ */ l.createElement(
|
|
1133
|
-
value:
|
|
1134
|
-
}, /* @__PURE__ */ l.createElement(
|
|
1135
|
-
id:
|
|
1136
|
-
},
|
|
1137
|
-
name:
|
|
1138
|
-
onFinishFailed:
|
|
1139
|
-
form:
|
|
1140
|
-
ref:
|
|
1141
|
-
style: Object.assign(Object.assign({},
|
|
1142
|
-
className:
|
|
1127
|
+
validateMessages: W
|
|
1128
|
+
}, /* @__PURE__ */ l.createElement(te.Provider, {
|
|
1129
|
+
value: k
|
|
1130
|
+
}, /* @__PURE__ */ l.createElement(vt, Object.assign({
|
|
1131
|
+
id: g
|
|
1132
|
+
}, w, {
|
|
1133
|
+
name: g,
|
|
1134
|
+
onFinishFailed: M,
|
|
1135
|
+
form: B,
|
|
1136
|
+
ref: N,
|
|
1137
|
+
style: Object.assign(Object.assign({}, m), V),
|
|
1138
|
+
className: Z
|
|
1143
1139
|
}))))))));
|
|
1144
|
-
}, st = /* @__PURE__ */ l.forwardRef(
|
|
1140
|
+
}, st = /* @__PURE__ */ l.forwardRef(Fn);
|
|
1145
1141
|
process.env.NODE_ENV !== "production" && (st.displayName = "Form");
|
|
1146
|
-
function
|
|
1142
|
+
function Nn(e) {
|
|
1147
1143
|
if (typeof e == "function")
|
|
1148
1144
|
return e;
|
|
1149
1145
|
const t = zt(e);
|
|
@@ -1154,9 +1150,9 @@ const at = () => {
|
|
|
1154
1150
|
status: e,
|
|
1155
1151
|
errors: t = [],
|
|
1156
1152
|
warnings: r = []
|
|
1157
|
-
} = l.useContext(
|
|
1153
|
+
} = l.useContext(fe);
|
|
1158
1154
|
if (process.env.NODE_ENV !== "production") {
|
|
1159
|
-
const n =
|
|
1155
|
+
const n = he("Form.Item");
|
|
1160
1156
|
process.env.NODE_ENV !== "production" && n(e !== void 0, "usage", "Form.Item.useStatus should be used under Form.Item component. For more information: https://u.ant.design/form-item-usestatus");
|
|
1161
1157
|
}
|
|
1162
1158
|
return {
|
|
@@ -1165,35 +1161,35 @@ const at = () => {
|
|
|
1165
1161
|
warnings: r
|
|
1166
1162
|
};
|
|
1167
1163
|
};
|
|
1168
|
-
at.Context =
|
|
1169
|
-
function
|
|
1164
|
+
at.Context = fe;
|
|
1165
|
+
function jn(e) {
|
|
1170
1166
|
const [t, r] = l.useState(e), n = l.useRef(null), o = l.useRef([]), s = l.useRef(!1);
|
|
1171
1167
|
l.useEffect(() => (s.current = !1, () => {
|
|
1172
|
-
s.current = !0,
|
|
1168
|
+
s.current = !0, Pe.cancel(n.current), n.current = null;
|
|
1173
1169
|
}), []);
|
|
1174
|
-
function a(
|
|
1175
|
-
s.current || (n.current === null && (o.current = [], n.current =
|
|
1176
|
-
n.current = null, r((
|
|
1177
|
-
let m =
|
|
1178
|
-
return o.current.forEach((
|
|
1179
|
-
m =
|
|
1170
|
+
function a(i) {
|
|
1171
|
+
s.current || (n.current === null && (o.current = [], n.current = Pe(() => {
|
|
1172
|
+
n.current = null, r((c) => {
|
|
1173
|
+
let m = c;
|
|
1174
|
+
return o.current.forEach((O) => {
|
|
1175
|
+
m = O(m);
|
|
1180
1176
|
}), m;
|
|
1181
1177
|
});
|
|
1182
|
-
})), o.current.push(
|
|
1178
|
+
})), o.current.push(i));
|
|
1183
1179
|
}
|
|
1184
1180
|
return [t, a];
|
|
1185
1181
|
}
|
|
1186
|
-
function
|
|
1182
|
+
function Mn() {
|
|
1187
1183
|
const {
|
|
1188
1184
|
itemRef: e
|
|
1189
|
-
} = l.useContext(
|
|
1185
|
+
} = l.useContext(te), t = l.useRef({});
|
|
1190
1186
|
function r(n, o) {
|
|
1191
|
-
const s = o && typeof o == "object" &&
|
|
1192
|
-
return (t.current.name !== a || t.current.originRef !== s) && (t.current.name = a, t.current.originRef = s, t.current.ref =
|
|
1187
|
+
const s = o && typeof o == "object" && Mt(o), a = n.join("_");
|
|
1188
|
+
return (t.current.name !== a || t.current.originRef !== s) && (t.current.name = a, t.current.originRef = s, t.current.ref = _t(e(n), s)), t.current.ref;
|
|
1193
1189
|
}
|
|
1194
1190
|
return r;
|
|
1195
1191
|
}
|
|
1196
|
-
const
|
|
1192
|
+
const _n = (e) => {
|
|
1197
1193
|
const {
|
|
1198
1194
|
formItemCls: t
|
|
1199
1195
|
} = e;
|
|
@@ -1205,21 +1201,21 @@ const jn = (e) => {
|
|
|
1205
1201
|
}
|
|
1206
1202
|
}
|
|
1207
1203
|
};
|
|
1208
|
-
},
|
|
1204
|
+
}, Pn = Pt(["Form", "item-item"], (e, t) => {
|
|
1209
1205
|
let {
|
|
1210
1206
|
rootPrefixCls: r
|
|
1211
1207
|
} = t;
|
|
1212
1208
|
const n = tt(e, r);
|
|
1213
|
-
return [
|
|
1209
|
+
return [_n(n)];
|
|
1214
1210
|
});
|
|
1215
|
-
var
|
|
1211
|
+
var Rn = function(e, t) {
|
|
1216
1212
|
var r = {};
|
|
1217
1213
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1218
1214
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var o = 0, n = Object.getOwnPropertySymbols(e); o < n.length; o++)
|
|
1219
1215
|
t.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[o]) && (r[n[o]] = e[n[o]]);
|
|
1220
1216
|
return r;
|
|
1221
1217
|
};
|
|
1222
|
-
const
|
|
1218
|
+
const Vn = 24, Dn = (e) => {
|
|
1223
1219
|
const {
|
|
1224
1220
|
prefixCls: t,
|
|
1225
1221
|
status: r,
|
|
@@ -1227,84 +1223,90 @@ const Rn = 24, Vn = (e) => {
|
|
|
1227
1223
|
wrapperCol: o,
|
|
1228
1224
|
children: s,
|
|
1229
1225
|
errors: a,
|
|
1230
|
-
warnings:
|
|
1231
|
-
_internalItemRender:
|
|
1226
|
+
warnings: i,
|
|
1227
|
+
_internalItemRender: c,
|
|
1232
1228
|
extra: m,
|
|
1233
|
-
help:
|
|
1234
|
-
fieldId:
|
|
1235
|
-
marginBottom:
|
|
1236
|
-
onErrorVisibleChanged:
|
|
1237
|
-
label:
|
|
1238
|
-
} = e, S = `${t}-item`,
|
|
1239
|
-
let
|
|
1240
|
-
return
|
|
1241
|
-
const
|
|
1242
|
-
"span" in
|
|
1243
|
-
}),
|
|
1244
|
-
}, [o,
|
|
1245
|
-
|
|
1246
|
-
|
|
1229
|
+
help: O,
|
|
1230
|
+
fieldId: $,
|
|
1231
|
+
marginBottom: I,
|
|
1232
|
+
onErrorVisibleChanged: j,
|
|
1233
|
+
label: C
|
|
1234
|
+
} = e, S = `${t}-item`, y = l.useContext(te), d = l.useMemo(() => {
|
|
1235
|
+
let w = Object.assign({}, o || y.wrapperCol || {});
|
|
1236
|
+
return C === null && !n && !o && y.labelCol && [void 0, "xs", "sm", "md", "lg", "xl", "xxl"].forEach((W) => {
|
|
1237
|
+
const f = W ? [W] : [], z = _e(y.labelCol, f), E = typeof z == "object" ? z : {}, q = _e(w, f), K = typeof q == "object" ? q : {};
|
|
1238
|
+
"span" in E && !("offset" in K) && E.span < Vn && (w = gt(w, [].concat(f, ["offset"]), E.span));
|
|
1239
|
+
}), w;
|
|
1240
|
+
}, [o, y]), P = J(`${S}-control`, d.className), u = l.useMemo(() => {
|
|
1241
|
+
const {
|
|
1242
|
+
labelCol: w,
|
|
1243
|
+
wrapperCol: T
|
|
1244
|
+
} = y;
|
|
1245
|
+
return Rn(y, ["labelCol", "wrapperCol"]);
|
|
1246
|
+
}, [y]), h = l.useRef(null), [p, v] = l.useState(0);
|
|
1247
|
+
Ue(() => {
|
|
1248
|
+
m && h.current ? v(h.current.clientHeight) : v(0);
|
|
1247
1249
|
}, [m]);
|
|
1248
|
-
const
|
|
1250
|
+
const F = /* @__PURE__ */ l.createElement("div", {
|
|
1249
1251
|
className: `${S}-control-input`
|
|
1250
1252
|
}, /* @__PURE__ */ l.createElement("div", {
|
|
1251
1253
|
className: `${S}-control-input-content`
|
|
1252
|
-
}, s)),
|
|
1254
|
+
}, s)), x = l.useMemo(() => ({
|
|
1253
1255
|
prefixCls: t,
|
|
1254
1256
|
status: r
|
|
1255
|
-
}), [t, r]),
|
|
1256
|
-
value:
|
|
1257
|
+
}), [t, r]), b = I !== null || a.length || i.length ? /* @__PURE__ */ l.createElement(we.Provider, {
|
|
1258
|
+
value: x
|
|
1257
1259
|
}, /* @__PURE__ */ l.createElement(nt, {
|
|
1258
|
-
fieldId:
|
|
1260
|
+
fieldId: $,
|
|
1259
1261
|
errors: a,
|
|
1260
|
-
warnings:
|
|
1261
|
-
help:
|
|
1262
|
+
warnings: i,
|
|
1263
|
+
help: O,
|
|
1262
1264
|
helpStatus: r,
|
|
1263
1265
|
className: `${S}-explain-connected`,
|
|
1264
|
-
onVisibleChanged:
|
|
1266
|
+
onVisibleChanged: j
|
|
1265
1267
|
})) : null, g = {};
|
|
1266
|
-
|
|
1267
|
-
const
|
|
1268
|
+
$ && (g.id = `${$}_extra`);
|
|
1269
|
+
const V = m ? /* @__PURE__ */ l.createElement("div", Object.assign({}, g, {
|
|
1268
1270
|
className: `${S}-extra`,
|
|
1269
1271
|
ref: h
|
|
1270
|
-
}), m) : null,
|
|
1272
|
+
}), m) : null, A = b || V ? /* @__PURE__ */ l.createElement("div", {
|
|
1271
1273
|
className: `${S}-additional`,
|
|
1272
|
-
style:
|
|
1273
|
-
minHeight:
|
|
1274
|
+
style: I ? {
|
|
1275
|
+
minHeight: I + p
|
|
1274
1276
|
} : {}
|
|
1275
|
-
},
|
|
1276
|
-
input:
|
|
1277
|
-
errorList:
|
|
1278
|
-
extra:
|
|
1279
|
-
}) : /* @__PURE__ */ l.createElement(l.Fragment, null,
|
|
1280
|
-
return /* @__PURE__ */ l.createElement(
|
|
1281
|
-
value:
|
|
1282
|
-
}, /* @__PURE__ */ l.createElement(
|
|
1283
|
-
className:
|
|
1284
|
-
}),
|
|
1277
|
+
}, b, V) : null, D = c && c.mark === "pro_table_render" && c.render ? c.render(e, {
|
|
1278
|
+
input: F,
|
|
1279
|
+
errorList: b,
|
|
1280
|
+
extra: V
|
|
1281
|
+
}) : /* @__PURE__ */ l.createElement(l.Fragment, null, F, A);
|
|
1282
|
+
return /* @__PURE__ */ l.createElement(te.Provider, {
|
|
1283
|
+
value: u
|
|
1284
|
+
}, /* @__PURE__ */ l.createElement(Ee, Object.assign({}, d, {
|
|
1285
|
+
className: P
|
|
1286
|
+
}), D), /* @__PURE__ */ l.createElement(Pn, {
|
|
1285
1287
|
prefixCls: t
|
|
1286
1288
|
}));
|
|
1287
1289
|
};
|
|
1288
|
-
var
|
|
1290
|
+
var Ln = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }, { tag: "path", attrs: { d: "M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z" } }] }, name: "question-circle", theme: "outlined" }, Tn = function(t, r) {
|
|
1289
1291
|
return /* @__PURE__ */ l.createElement(Xt, Lt({}, t, {
|
|
1290
1292
|
ref: r,
|
|
1291
|
-
icon:
|
|
1293
|
+
icon: Ln
|
|
1292
1294
|
}));
|
|
1293
|
-
}, it = /* @__PURE__ */ l.forwardRef(
|
|
1295
|
+
}, it = /* @__PURE__ */ l.forwardRef(Tn);
|
|
1294
1296
|
process.env.NODE_ENV !== "production" && (it.displayName = "QuestionCircleOutlined");
|
|
1295
|
-
var
|
|
1297
|
+
var Wn = function(e, t) {
|
|
1296
1298
|
var r = {};
|
|
1297
1299
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1298
1300
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var o = 0, n = Object.getOwnPropertySymbols(e); o < n.length; o++)
|
|
1299
1301
|
t.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[o]) && (r[n[o]] = e[n[o]]);
|
|
1300
1302
|
return r;
|
|
1301
1303
|
};
|
|
1302
|
-
function
|
|
1304
|
+
function Hn(e) {
|
|
1303
1305
|
return e ? typeof e == "object" && !/* @__PURE__ */ l.isValidElement(e) ? e : {
|
|
1304
1306
|
title: e
|
|
1305
1307
|
} : null;
|
|
1306
1308
|
}
|
|
1307
|
-
const
|
|
1309
|
+
const An = (e) => {
|
|
1308
1310
|
let {
|
|
1309
1311
|
prefixCls: t,
|
|
1310
1312
|
label: r,
|
|
@@ -1312,60 +1314,60 @@ const Wn = (e) => {
|
|
|
1312
1314
|
labelCol: o,
|
|
1313
1315
|
labelAlign: s,
|
|
1314
1316
|
colon: a,
|
|
1315
|
-
required:
|
|
1316
|
-
requiredMark:
|
|
1317
|
+
required: i,
|
|
1318
|
+
requiredMark: c,
|
|
1317
1319
|
tooltip: m,
|
|
1318
|
-
vertical:
|
|
1320
|
+
vertical: O
|
|
1319
1321
|
} = e;
|
|
1320
|
-
var
|
|
1321
|
-
const [
|
|
1322
|
-
labelAlign:
|
|
1323
|
-
labelCol:
|
|
1322
|
+
var $;
|
|
1323
|
+
const [I] = kt("Form"), {
|
|
1324
|
+
labelAlign: j,
|
|
1325
|
+
labelCol: C,
|
|
1324
1326
|
labelWrap: S,
|
|
1325
|
-
colon:
|
|
1326
|
-
} = l.useContext(
|
|
1327
|
+
colon: y
|
|
1328
|
+
} = l.useContext(te);
|
|
1327
1329
|
if (!r)
|
|
1328
1330
|
return null;
|
|
1329
|
-
const
|
|
1330
|
-
[`${
|
|
1331
|
+
const d = o || C || {}, P = s || j, u = `${t}-item-label`, h = J(u, P === "left" && `${u}-left`, d.className, {
|
|
1332
|
+
[`${u}-wrap`]: !!S
|
|
1331
1333
|
});
|
|
1332
1334
|
let p = r;
|
|
1333
|
-
const
|
|
1334
|
-
|
|
1335
|
-
const
|
|
1336
|
-
if (
|
|
1335
|
+
const v = a === !0 || y !== !1 && a !== !1;
|
|
1336
|
+
v && !O && typeof r == "string" && r.trim() && (p = r.replace(/[:|:]\s*$/, ""));
|
|
1337
|
+
const x = Hn(m);
|
|
1338
|
+
if (x) {
|
|
1337
1339
|
const {
|
|
1338
|
-
icon:
|
|
1339
|
-
} =
|
|
1340
|
+
icon: A = /* @__PURE__ */ l.createElement(it, null)
|
|
1341
|
+
} = x, D = Wn(x, ["icon"]), w = /* @__PURE__ */ l.createElement(Wt, Object.assign({}, D), /* @__PURE__ */ l.cloneElement(A, {
|
|
1340
1342
|
className: `${t}-item-tooltip`,
|
|
1341
1343
|
title: "",
|
|
1342
|
-
onClick: (
|
|
1343
|
-
|
|
1344
|
+
onClick: (T) => {
|
|
1345
|
+
T.preventDefault();
|
|
1344
1346
|
},
|
|
1345
1347
|
tabIndex: null
|
|
1346
1348
|
}));
|
|
1347
|
-
p = /* @__PURE__ */ l.createElement(l.Fragment, null, p,
|
|
1349
|
+
p = /* @__PURE__ */ l.createElement(l.Fragment, null, p, w);
|
|
1348
1350
|
}
|
|
1349
|
-
const
|
|
1350
|
-
g ? p =
|
|
1351
|
-
required: !!
|
|
1352
|
-
}) :
|
|
1351
|
+
const b = c === "optional", g = typeof c == "function";
|
|
1352
|
+
g ? p = c(p, {
|
|
1353
|
+
required: !!i
|
|
1354
|
+
}) : b && !i && (p = /* @__PURE__ */ l.createElement(l.Fragment, null, p, /* @__PURE__ */ l.createElement("span", {
|
|
1353
1355
|
className: `${t}-item-optional`,
|
|
1354
1356
|
title: ""
|
|
1355
|
-
}, (
|
|
1356
|
-
const
|
|
1357
|
-
[`${t}-item-required`]:
|
|
1358
|
-
[`${t}-item-required-mark-optional`]:
|
|
1359
|
-
[`${t}-item-no-colon`]: !
|
|
1357
|
+
}, (I == null ? void 0 : I.optional) || (($ = ht.Form) === null || $ === void 0 ? void 0 : $.optional))));
|
|
1358
|
+
const V = J({
|
|
1359
|
+
[`${t}-item-required`]: i,
|
|
1360
|
+
[`${t}-item-required-mark-optional`]: b || g,
|
|
1361
|
+
[`${t}-item-no-colon`]: !v
|
|
1360
1362
|
});
|
|
1361
|
-
return /* @__PURE__ */ l.createElement(
|
|
1363
|
+
return /* @__PURE__ */ l.createElement(Ee, Object.assign({}, d, {
|
|
1362
1364
|
className: h
|
|
1363
1365
|
}), /* @__PURE__ */ l.createElement("label", {
|
|
1364
1366
|
htmlFor: n,
|
|
1365
|
-
className:
|
|
1367
|
+
className: V,
|
|
1366
1368
|
title: typeof r == "string" ? r : ""
|
|
1367
1369
|
}, p));
|
|
1368
|
-
},
|
|
1370
|
+
}, zn = {
|
|
1369
1371
|
success: Kt,
|
|
1370
1372
|
warning: Ut,
|
|
1371
1373
|
error: Yt,
|
|
@@ -1379,51 +1381,51 @@ function ct(e) {
|
|
|
1379
1381
|
hasFeedback: o,
|
|
1380
1382
|
validateStatus: s,
|
|
1381
1383
|
prefixCls: a,
|
|
1382
|
-
meta:
|
|
1383
|
-
noStyle:
|
|
1384
|
+
meta: i,
|
|
1385
|
+
noStyle: c
|
|
1384
1386
|
} = e;
|
|
1385
1387
|
const m = `${a}-item`, {
|
|
1386
|
-
feedbackIcons:
|
|
1387
|
-
} = l.useContext(
|
|
1388
|
-
isFormItemInput:
|
|
1389
|
-
status:
|
|
1390
|
-
hasFeedback:
|
|
1388
|
+
feedbackIcons: O
|
|
1389
|
+
} = l.useContext(te), $ = ot(r, n, i, null, !!o, s), {
|
|
1390
|
+
isFormItemInput: I,
|
|
1391
|
+
status: j,
|
|
1392
|
+
hasFeedback: C,
|
|
1391
1393
|
feedbackIcon: S
|
|
1392
|
-
} = l.useContext(
|
|
1393
|
-
var
|
|
1394
|
-
let
|
|
1394
|
+
} = l.useContext(fe), y = l.useMemo(() => {
|
|
1395
|
+
var d;
|
|
1396
|
+
let P;
|
|
1395
1397
|
if (o) {
|
|
1396
|
-
const h = o !== !0 && o.icons ||
|
|
1397
|
-
status:
|
|
1398
|
+
const h = o !== !0 && o.icons || O, p = $ && ((d = h == null ? void 0 : h({
|
|
1399
|
+
status: $,
|
|
1398
1400
|
errors: r,
|
|
1399
1401
|
warnings: n
|
|
1400
|
-
})) === null ||
|
|
1401
|
-
|
|
1402
|
-
className: J(`${m}-feedback-icon`, `${m}-feedback-icon-${
|
|
1403
|
-
}, p || /* @__PURE__ */ l.createElement(
|
|
1402
|
+
})) === null || d === void 0 ? void 0 : d[$]), v = $ && zn[$];
|
|
1403
|
+
P = p !== !1 && v ? /* @__PURE__ */ l.createElement("span", {
|
|
1404
|
+
className: J(`${m}-feedback-icon`, `${m}-feedback-icon-${$}`)
|
|
1405
|
+
}, p || /* @__PURE__ */ l.createElement(v, null)) : null;
|
|
1404
1406
|
}
|
|
1405
|
-
const
|
|
1406
|
-
status:
|
|
1407
|
+
const u = {
|
|
1408
|
+
status: $ || "",
|
|
1407
1409
|
errors: r,
|
|
1408
1410
|
warnings: n,
|
|
1409
1411
|
hasFeedback: !!o,
|
|
1410
|
-
feedbackIcon:
|
|
1412
|
+
feedbackIcon: P,
|
|
1411
1413
|
isFormItemInput: !0
|
|
1412
1414
|
};
|
|
1413
|
-
return
|
|
1414
|
-
}, [
|
|
1415
|
-
return /* @__PURE__ */ l.createElement(
|
|
1416
|
-
value:
|
|
1415
|
+
return c && (u.status = ($ ?? j) || "", u.isFormItemInput = I, u.hasFeedback = !!(o ?? C), u.feedbackIcon = o !== void 0 ? u.feedbackIcon : S), u;
|
|
1416
|
+
}, [$, o, c, I, j]);
|
|
1417
|
+
return /* @__PURE__ */ l.createElement(fe.Provider, {
|
|
1418
|
+
value: y
|
|
1417
1419
|
}, t);
|
|
1418
1420
|
}
|
|
1419
|
-
var
|
|
1421
|
+
var qn = function(e, t) {
|
|
1420
1422
|
var r = {};
|
|
1421
1423
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1422
1424
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var o = 0, n = Object.getOwnPropertySymbols(e); o < n.length; o++)
|
|
1423
1425
|
t.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[o]) && (r[n[o]] = e[n[o]]);
|
|
1424
1426
|
return r;
|
|
1425
1427
|
};
|
|
1426
|
-
function
|
|
1428
|
+
function Bn(e) {
|
|
1427
1429
|
const {
|
|
1428
1430
|
prefixCls: t,
|
|
1429
1431
|
className: r,
|
|
@@ -1431,52 +1433,52 @@ function zn(e) {
|
|
|
1431
1433
|
style: o,
|
|
1432
1434
|
help: s,
|
|
1433
1435
|
errors: a,
|
|
1434
|
-
warnings:
|
|
1435
|
-
validateStatus:
|
|
1436
|
+
warnings: i,
|
|
1437
|
+
validateStatus: c,
|
|
1436
1438
|
meta: m,
|
|
1437
|
-
hasFeedback:
|
|
1438
|
-
hidden:
|
|
1439
|
-
children:
|
|
1440
|
-
fieldId:
|
|
1441
|
-
required:
|
|
1439
|
+
hasFeedback: O,
|
|
1440
|
+
hidden: $,
|
|
1441
|
+
children: I,
|
|
1442
|
+
fieldId: j,
|
|
1443
|
+
required: C,
|
|
1442
1444
|
isRequired: S,
|
|
1443
|
-
onSubItemMetaChange:
|
|
1444
|
-
layout:
|
|
1445
|
-
} = e,
|
|
1445
|
+
onSubItemMetaChange: y,
|
|
1446
|
+
layout: d
|
|
1447
|
+
} = e, P = qn(e, ["prefixCls", "className", "rootClassName", "style", "help", "errors", "warnings", "validateStatus", "meta", "hasFeedback", "hidden", "children", "fieldId", "required", "isRequired", "onSubItemMetaChange", "layout"]), u = `${t}-item`, {
|
|
1446
1448
|
requiredMark: h,
|
|
1447
1449
|
vertical: p
|
|
1448
|
-
} = l.useContext(
|
|
1449
|
-
|
|
1450
|
-
if (
|
|
1451
|
-
const
|
|
1452
|
-
|
|
1450
|
+
} = l.useContext(te), v = p || d === "vertical", F = l.useRef(null), x = ge(a), b = ge(i), g = s != null, V = !!(g || a.length || i.length), A = !!F.current && qt(F.current), [D, w] = l.useState(null);
|
|
1451
|
+
Ue(() => {
|
|
1452
|
+
if (V && F.current) {
|
|
1453
|
+
const E = getComputedStyle(F.current);
|
|
1454
|
+
w(parseInt(E.marginBottom, 10));
|
|
1453
1455
|
}
|
|
1454
|
-
}, [
|
|
1455
|
-
const
|
|
1456
|
-
|
|
1457
|
-
},
|
|
1458
|
-
let
|
|
1459
|
-
const q =
|
|
1460
|
-
return ot(q,
|
|
1461
|
-
}(), z = J(
|
|
1462
|
-
[`${
|
|
1456
|
+
}, [V, A]);
|
|
1457
|
+
const T = (E) => {
|
|
1458
|
+
E || w(null);
|
|
1459
|
+
}, f = function() {
|
|
1460
|
+
let E = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
|
|
1461
|
+
const q = E ? x : m.errors, K = E ? b : m.warnings;
|
|
1462
|
+
return ot(q, K, m, "", !!O, c);
|
|
1463
|
+
}(), z = J(u, r, n, {
|
|
1464
|
+
[`${u}-with-help`]: g || x.length || b.length,
|
|
1463
1465
|
// Status
|
|
1464
|
-
[`${
|
|
1465
|
-
[`${
|
|
1466
|
-
[`${
|
|
1467
|
-
[`${
|
|
1468
|
-
[`${
|
|
1469
|
-
[`${
|
|
1466
|
+
[`${u}-has-feedback`]: f && O,
|
|
1467
|
+
[`${u}-has-success`]: f === "success",
|
|
1468
|
+
[`${u}-has-warning`]: f === "warning",
|
|
1469
|
+
[`${u}-has-error`]: f === "error",
|
|
1470
|
+
[`${u}-is-validating`]: f === "validating",
|
|
1471
|
+
[`${u}-hidden`]: $,
|
|
1470
1472
|
// Layout
|
|
1471
|
-
[`${
|
|
1473
|
+
[`${u}-${d}`]: d
|
|
1472
1474
|
});
|
|
1473
1475
|
return /* @__PURE__ */ l.createElement("div", {
|
|
1474
1476
|
className: z,
|
|
1475
1477
|
style: o,
|
|
1476
|
-
ref:
|
|
1478
|
+
ref: F
|
|
1477
1479
|
}, /* @__PURE__ */ l.createElement(Ze, Object.assign({
|
|
1478
|
-
className: `${
|
|
1479
|
-
}, Bt(
|
|
1480
|
+
className: `${u}-row`
|
|
1481
|
+
}, Bt(P, [
|
|
1480
1482
|
"_internalItemRender",
|
|
1481
1483
|
"colon",
|
|
1482
1484
|
"dependencies",
|
|
@@ -1508,52 +1510,52 @@ function zn(e) {
|
|
|
1508
1510
|
"valuePropName",
|
|
1509
1511
|
"wrapperCol",
|
|
1510
1512
|
"validateDebounce"
|
|
1511
|
-
])), /* @__PURE__ */ l.createElement(
|
|
1512
|
-
htmlFor:
|
|
1513
|
+
])), /* @__PURE__ */ l.createElement(An, Object.assign({
|
|
1514
|
+
htmlFor: j
|
|
1513
1515
|
}, e, {
|
|
1514
1516
|
requiredMark: h,
|
|
1515
|
-
required:
|
|
1517
|
+
required: C ?? S,
|
|
1516
1518
|
prefixCls: t,
|
|
1517
|
-
vertical:
|
|
1518
|
-
})), /* @__PURE__ */ l.createElement(
|
|
1519
|
-
errors:
|
|
1520
|
-
warnings:
|
|
1519
|
+
vertical: v
|
|
1520
|
+
})), /* @__PURE__ */ l.createElement(Dn, Object.assign({}, e, m, {
|
|
1521
|
+
errors: x,
|
|
1522
|
+
warnings: b,
|
|
1521
1523
|
prefixCls: t,
|
|
1522
|
-
status:
|
|
1524
|
+
status: f,
|
|
1523
1525
|
help: s,
|
|
1524
|
-
marginBottom:
|
|
1525
|
-
onErrorVisibleChanged:
|
|
1526
|
-
}), /* @__PURE__ */ l.createElement(
|
|
1527
|
-
value:
|
|
1526
|
+
marginBottom: D,
|
|
1527
|
+
onErrorVisibleChanged: T
|
|
1528
|
+
}), /* @__PURE__ */ l.createElement(ke.Provider, {
|
|
1529
|
+
value: y
|
|
1528
1530
|
}, /* @__PURE__ */ l.createElement(ct, {
|
|
1529
1531
|
prefixCls: t,
|
|
1530
1532
|
meta: m,
|
|
1531
1533
|
errors: m.errors,
|
|
1532
1534
|
warnings: m.warnings,
|
|
1533
|
-
hasFeedback:
|
|
1535
|
+
hasFeedback: O,
|
|
1534
1536
|
// Already calculated
|
|
1535
|
-
validateStatus:
|
|
1536
|
-
},
|
|
1537
|
-
className: `${
|
|
1537
|
+
validateStatus: f
|
|
1538
|
+
}, I)))), !!D && /* @__PURE__ */ l.createElement("div", {
|
|
1539
|
+
className: `${u}-margin-offset`,
|
|
1538
1540
|
style: {
|
|
1539
|
-
marginBottom: -
|
|
1541
|
+
marginBottom: -D
|
|
1540
1542
|
}
|
|
1541
1543
|
}));
|
|
1542
1544
|
}
|
|
1543
|
-
const
|
|
1544
|
-
function
|
|
1545
|
+
const Gn = "__SPLIT__";
|
|
1546
|
+
function Xn(e, t) {
|
|
1545
1547
|
const r = Object.keys(e), n = Object.keys(t);
|
|
1546
1548
|
return r.length === n.length && r.every((o) => {
|
|
1547
1549
|
const s = e[o], a = t[o];
|
|
1548
1550
|
return s === a || typeof s == "function" || typeof a == "function";
|
|
1549
1551
|
});
|
|
1550
1552
|
}
|
|
1551
|
-
const
|
|
1553
|
+
const kn = /* @__PURE__ */ l.memo((e) => {
|
|
1552
1554
|
let {
|
|
1553
1555
|
children: t
|
|
1554
1556
|
} = e;
|
|
1555
1557
|
return t;
|
|
1556
|
-
}, (e, t) =>
|
|
1558
|
+
}, (e, t) => Xn(e.control, t.control) && e.update === t.update && e.childProps.length === t.childProps.length && e.childProps.every((r, n) => r === t.childProps[n]));
|
|
1557
1559
|
function Ge() {
|
|
1558
1560
|
return {
|
|
1559
1561
|
errors: [],
|
|
@@ -1564,7 +1566,7 @@ function Ge() {
|
|
|
1564
1566
|
validated: !1
|
|
1565
1567
|
};
|
|
1566
1568
|
}
|
|
1567
|
-
function
|
|
1569
|
+
function Kn(e) {
|
|
1568
1570
|
const {
|
|
1569
1571
|
name: t,
|
|
1570
1572
|
noStyle: r,
|
|
@@ -1572,181 +1574,172 @@ function Xn(e) {
|
|
|
1572
1574
|
dependencies: o,
|
|
1573
1575
|
prefixCls: s,
|
|
1574
1576
|
shouldUpdate: a,
|
|
1575
|
-
rules:
|
|
1576
|
-
children:
|
|
1577
|
+
rules: i,
|
|
1578
|
+
children: c,
|
|
1577
1579
|
required: m,
|
|
1578
|
-
label:
|
|
1579
|
-
messageVariables:
|
|
1580
|
-
trigger:
|
|
1581
|
-
validateTrigger:
|
|
1582
|
-
hidden:
|
|
1580
|
+
label: O,
|
|
1581
|
+
messageVariables: $,
|
|
1582
|
+
trigger: I = "onChange",
|
|
1583
|
+
validateTrigger: j,
|
|
1584
|
+
hidden: C,
|
|
1583
1585
|
help: S,
|
|
1584
|
-
layout:
|
|
1586
|
+
layout: y
|
|
1585
1587
|
} = e, {
|
|
1586
|
-
getPrefixCls:
|
|
1587
|
-
} = l.useContext(
|
|
1588
|
-
name:
|
|
1589
|
-
} = l.useContext(
|
|
1590
|
-
validateTrigger:
|
|
1591
|
-
} = l.useContext(
|
|
1592
|
-
process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "production" &&
|
|
1593
|
-
const
|
|
1594
|
-
const
|
|
1595
|
-
if (q(
|
|
1596
|
-
let
|
|
1597
|
-
if (
|
|
1598
|
-
|
|
1599
|
-
else if (
|
|
1600
|
-
const [
|
|
1601
|
-
|
|
1588
|
+
getPrefixCls: d
|
|
1589
|
+
} = l.useContext(be), {
|
|
1590
|
+
name: P
|
|
1591
|
+
} = l.useContext(te), u = Nn(c), h = typeof u == "function", p = l.useContext(ke), {
|
|
1592
|
+
validateTrigger: v
|
|
1593
|
+
} = l.useContext(xt), F = j !== void 0 ? j : v, x = t != null, b = d("form", s), g = Oe(b), [V, A, D] = Ie(b, g), w = he("Form.Item");
|
|
1594
|
+
process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "production" && w(t !== null, "usage", "`null` is passed as `name` property");
|
|
1595
|
+
const T = l.useContext(Ct), W = l.useRef(null), [f, z] = jn({}), [E, q] = Rt(() => Ge()), K = (N) => {
|
|
1596
|
+
const R = T == null ? void 0 : T.getKey(N.name);
|
|
1597
|
+
if (q(N.destroy ? Ge() : N, !0), r && S !== !1 && p) {
|
|
1598
|
+
let M = N.name;
|
|
1599
|
+
if (N.destroy)
|
|
1600
|
+
M = W.current || M;
|
|
1601
|
+
else if (R !== void 0) {
|
|
1602
|
+
const [_, H] = R;
|
|
1603
|
+
M = [_].concat(Y(H)), W.current = M;
|
|
1602
1604
|
}
|
|
1603
|
-
p(
|
|
1605
|
+
p(N, M);
|
|
1604
1606
|
}
|
|
1605
|
-
},
|
|
1606
|
-
z((
|
|
1607
|
-
const
|
|
1608
|
-
return
|
|
1607
|
+
}, le = (N, R) => {
|
|
1608
|
+
z((M) => {
|
|
1609
|
+
const _ = Object.assign({}, M), G = [].concat(Y(N.name.slice(0, -1)), Y(R)).join(Gn);
|
|
1610
|
+
return N.destroy ? delete _[G] : _[G] = N, _;
|
|
1609
1611
|
});
|
|
1610
|
-
}, [X,
|
|
1611
|
-
const
|
|
1612
|
-
return Object.values(
|
|
1613
|
-
|
|
1614
|
-
}), [
|
|
1615
|
-
}, [
|
|
1616
|
-
function ee(
|
|
1617
|
-
return r && !
|
|
1618
|
-
prefixCls:
|
|
1612
|
+
}, [X, Z] = l.useMemo(() => {
|
|
1613
|
+
const N = Y(E.errors), R = Y(E.warnings);
|
|
1614
|
+
return Object.values(f).forEach((M) => {
|
|
1615
|
+
N.push.apply(N, Y(M.errors || [])), R.push.apply(R, Y(M.warnings || []));
|
|
1616
|
+
}), [N, R];
|
|
1617
|
+
}, [f, E.errors, E.warnings]), B = Mn();
|
|
1618
|
+
function ee(N, R, M) {
|
|
1619
|
+
return r && !C ? /* @__PURE__ */ l.createElement(ct, {
|
|
1620
|
+
prefixCls: b,
|
|
1619
1621
|
hasFeedback: e.hasFeedback,
|
|
1620
1622
|
validateStatus: e.validateStatus,
|
|
1621
|
-
meta:
|
|
1623
|
+
meta: E,
|
|
1622
1624
|
errors: X,
|
|
1623
|
-
warnings:
|
|
1625
|
+
warnings: Z,
|
|
1624
1626
|
noStyle: !0
|
|
1625
|
-
},
|
|
1627
|
+
}, N) : /* @__PURE__ */ l.createElement(Bn, Object.assign({
|
|
1626
1628
|
key: "row"
|
|
1627
1629
|
}, e, {
|
|
1628
|
-
className: J(n,
|
|
1629
|
-
prefixCls:
|
|
1630
|
-
fieldId:
|
|
1631
|
-
isRequired:
|
|
1630
|
+
className: J(n, D, g, A),
|
|
1631
|
+
prefixCls: b,
|
|
1632
|
+
fieldId: R,
|
|
1633
|
+
isRequired: M,
|
|
1632
1634
|
errors: X,
|
|
1633
|
-
warnings:
|
|
1634
|
-
meta:
|
|
1635
|
-
onSubItemMetaChange:
|
|
1636
|
-
layout:
|
|
1637
|
-
}),
|
|
1635
|
+
warnings: Z,
|
|
1636
|
+
meta: E,
|
|
1637
|
+
onSubItemMetaChange: le,
|
|
1638
|
+
layout: y
|
|
1639
|
+
}), N);
|
|
1638
1640
|
}
|
|
1639
|
-
if (!
|
|
1640
|
-
return
|
|
1641
|
-
let
|
|
1642
|
-
return typeof
|
|
1643
|
-
messageVariables:
|
|
1644
|
-
trigger:
|
|
1645
|
-
validateTrigger:
|
|
1646
|
-
onMetaChange:
|
|
1647
|
-
}), (
|
|
1648
|
-
const
|
|
1649
|
-
if (
|
|
1641
|
+
if (!x && !h && !o)
|
|
1642
|
+
return V(ee(u));
|
|
1643
|
+
let k = {};
|
|
1644
|
+
return typeof O == "string" ? k.label = O : t && (k.label = String(t)), $ && (k = Object.assign(Object.assign({}, k), $)), V(/* @__PURE__ */ l.createElement(wt, Object.assign({}, e, {
|
|
1645
|
+
messageVariables: k,
|
|
1646
|
+
trigger: I,
|
|
1647
|
+
validateTrigger: F,
|
|
1648
|
+
onMetaChange: K
|
|
1649
|
+
}), (N, R, M) => {
|
|
1650
|
+
const _ = ie(t).length && R ? R.name : [], H = rt(_, P), G = m !== void 0 ? m : !!(i != null && i.some((L) => {
|
|
1651
|
+
if (L && typeof L == "object" && L.required && !L.warningOnly)
|
|
1650
1652
|
return !0;
|
|
1651
|
-
if (typeof
|
|
1652
|
-
const se =
|
|
1653
|
+
if (typeof L == "function") {
|
|
1654
|
+
const se = L(M);
|
|
1653
1655
|
return (se == null ? void 0 : se.required) && !(se != null && se.warningOnly);
|
|
1654
1656
|
}
|
|
1655
1657
|
return !1;
|
|
1656
|
-
})),
|
|
1657
|
-
let
|
|
1658
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
1659
|
-
process.env.NODE_ENV !== "production" &&
|
|
1660
|
-
else if (h && (!(a || o) ||
|
|
1661
|
-
process.env.NODE_ENV !== "production" &&
|
|
1662
|
-
else if (o && !h && !
|
|
1663
|
-
process.env.NODE_ENV !== "production" &&
|
|
1664
|
-
else if (/* @__PURE__ */ l.isValidElement(
|
|
1665
|
-
process.env.NODE_ENV !== "production" &&
|
|
1666
|
-
const
|
|
1667
|
-
if (
|
|
1658
|
+
})), ne = Object.assign({}, N);
|
|
1659
|
+
let re = null;
|
|
1660
|
+
if (process.env.NODE_ENV !== "production" && w(!(a && o), "usage", "`shouldUpdate` and `dependencies` shouldn't be used together. See https://u.ant.design/form-deps."), Array.isArray(u) && x)
|
|
1661
|
+
process.env.NODE_ENV !== "production" && w(!1, "usage", "A `Form.Item` with a `name` prop must have a single child element. For information on how to render more complex form items, see https://u.ant.design/complex-form-item."), re = u;
|
|
1662
|
+
else if (h && (!(a || o) || x))
|
|
1663
|
+
process.env.NODE_ENV !== "production" && w(!!(a || o), "usage", "A `Form.Item` with a render function must have either `shouldUpdate` or `dependencies`."), process.env.NODE_ENV !== "production" && w(!x, "usage", "A `Form.Item` with a render function cannot be a field, and thus cannot have a `name` prop.");
|
|
1664
|
+
else if (o && !h && !x)
|
|
1665
|
+
process.env.NODE_ENV !== "production" && w(!1, "usage", "Must set `name` or use a render function when `dependencies` is set.");
|
|
1666
|
+
else if (/* @__PURE__ */ l.isValidElement(u)) {
|
|
1667
|
+
process.env.NODE_ENV !== "production" && w(u.props.defaultValue === void 0, "usage", "`defaultValue` will not work on controlled Field. You should use `initialValues` of Form instead.");
|
|
1668
|
+
const L = Object.assign(Object.assign({}, u.props), ne);
|
|
1669
|
+
if (L.id || (L.id = H), S || X.length > 0 || Z.length > 0 || e.extra) {
|
|
1668
1670
|
const ae = [];
|
|
1669
|
-
(S || X.length > 0) && ae.push(`${
|
|
1671
|
+
(S || X.length > 0) && ae.push(`${H}_help`), e.extra && ae.push(`${H}_extra`), L["aria-describedby"] = ae.join(" ");
|
|
1670
1672
|
}
|
|
1671
|
-
X.length > 0 && (
|
|
1672
|
-
|
|
1673
|
-
for (var Fe, Ne, ye, je, $e, Me = arguments.length,
|
|
1674
|
-
|
|
1675
|
-
(ye =
|
|
1673
|
+
X.length > 0 && (L["aria-invalid"] = "true"), G && (L["aria-required"] = "true"), Vt(u) && (L.ref = B(_, u)), new Set([].concat(Y(ie(I)), Y(ie(F)))).forEach((ae) => {
|
|
1674
|
+
L[ae] = function() {
|
|
1675
|
+
for (var Fe, Ne, ye, je, $e, Me = arguments.length, ve = new Array(Me), ce = 0; ce < Me; ce++)
|
|
1676
|
+
ve[ce] = arguments[ce];
|
|
1677
|
+
(ye = ne[ae]) === null || ye === void 0 || (Fe = ye).call.apply(Fe, [ne].concat(ve)), ($e = (je = u.props)[ae]) === null || $e === void 0 || (Ne = $e).call.apply(Ne, [je].concat(ve));
|
|
1676
1678
|
};
|
|
1677
1679
|
});
|
|
1678
|
-
const dt = [
|
|
1679
|
-
|
|
1680
|
-
control:
|
|
1681
|
-
update:
|
|
1680
|
+
const dt = [L["aria-required"], L["aria-invalid"], L["aria-describedby"]];
|
|
1681
|
+
re = /* @__PURE__ */ l.createElement(kn, {
|
|
1682
|
+
control: ne,
|
|
1683
|
+
update: u,
|
|
1682
1684
|
childProps: dt
|
|
1683
|
-
}, At(
|
|
1684
|
-
} else h && (a || o) && !
|
|
1685
|
-
return ee(
|
|
1685
|
+
}, At(u, L));
|
|
1686
|
+
} else h && (a || o) && !x ? re = u(M) : (process.env.NODE_ENV !== "production" && w(!_.length || !!r, "usage", "`name` is only used for validate React element. If you are using Form.Item as layout display, please remove `name` instead."), re = u);
|
|
1687
|
+
return ee(re, H, G);
|
|
1686
1688
|
}));
|
|
1687
1689
|
}
|
|
1688
|
-
const ut =
|
|
1690
|
+
const ut = Kn;
|
|
1689
1691
|
ut.useStatus = at;
|
|
1690
|
-
var
|
|
1692
|
+
var Yn = function(e, t) {
|
|
1691
1693
|
var r = {};
|
|
1692
1694
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1693
1695
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var o = 0, n = Object.getOwnPropertySymbols(e); o < n.length; o++)
|
|
1694
1696
|
t.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[o]) && (r[n[o]] = e[n[o]]);
|
|
1695
1697
|
return r;
|
|
1696
1698
|
};
|
|
1697
|
-
const
|
|
1699
|
+
const Un = (e) => {
|
|
1698
1700
|
var {
|
|
1699
1701
|
prefixCls: t,
|
|
1700
1702
|
children: r
|
|
1701
|
-
} = e, n =
|
|
1703
|
+
} = e, n = Yn(e, ["prefixCls", "children"]);
|
|
1702
1704
|
if (process.env.NODE_ENV !== "production") {
|
|
1703
|
-
const
|
|
1704
|
-
process.env.NODE_ENV !== "production" &&
|
|
1705
|
+
const i = he("Form.List");
|
|
1706
|
+
process.env.NODE_ENV !== "production" && i(typeof n.name == "number" || (Array.isArray(n.name) ? !!n.name.length : !!n.name), "usage", "Miss `name` prop.");
|
|
1705
1707
|
}
|
|
1706
1708
|
const {
|
|
1707
1709
|
getPrefixCls: o
|
|
1708
|
-
} = l.useContext(
|
|
1710
|
+
} = l.useContext(be), s = o("form", t), a = l.useMemo(() => ({
|
|
1709
1711
|
prefixCls: s,
|
|
1710
1712
|
status: "error"
|
|
1711
1713
|
}), [s]);
|
|
1712
|
-
return /* @__PURE__ */ l.createElement(
|
|
1714
|
+
return /* @__PURE__ */ l.createElement(St, Object.assign({}, n), (i, c, m) => /* @__PURE__ */ l.createElement(we.Provider, {
|
|
1713
1715
|
value: a
|
|
1714
|
-
}, r(
|
|
1715
|
-
fieldKey:
|
|
1716
|
-
})),
|
|
1716
|
+
}, r(i.map((O) => Object.assign(Object.assign({}, O), {
|
|
1717
|
+
fieldKey: O.key
|
|
1718
|
+
})), c, {
|
|
1717
1719
|
errors: m.errors,
|
|
1718
1720
|
warnings: m.warnings
|
|
1719
1721
|
})));
|
|
1720
1722
|
};
|
|
1721
|
-
function
|
|
1723
|
+
function Qn() {
|
|
1722
1724
|
const {
|
|
1723
1725
|
form: e
|
|
1724
|
-
} = l.useContext(
|
|
1726
|
+
} = l.useContext(te);
|
|
1725
1727
|
return e;
|
|
1726
1728
|
}
|
|
1727
|
-
const
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
process.env.NODE_ENV !== "production" &&
|
|
1729
|
+
const oe = st;
|
|
1730
|
+
oe.Item = ut;
|
|
1731
|
+
oe.List = Un;
|
|
1732
|
+
oe.ErrorList = nt;
|
|
1733
|
+
oe.useForm = lt;
|
|
1734
|
+
oe.useFormInstance = Qn;
|
|
1735
|
+
oe.useWatch = Ot;
|
|
1736
|
+
oe.Provider = Xe;
|
|
1737
|
+
oe.create = () => {
|
|
1738
|
+
process.env.NODE_ENV !== "production" && bt(!1, "Form", "antd v4 removed `Form.create`. Please remove or use `@ant-design/compatible` instead.");
|
|
1737
1739
|
};
|
|
1738
|
-
const yr = ft(re)`
|
|
1739
|
-
label,
|
|
1740
|
-
.ant-form-item-label > label,
|
|
1741
|
-
.ant-form-item-required,
|
|
1742
|
-
.ant-form-item-row > label {
|
|
1743
|
-
height: auto !important;
|
|
1744
|
-
}
|
|
1745
|
-
`;
|
|
1746
1740
|
export {
|
|
1747
|
-
|
|
1748
|
-
|
|
1741
|
+
Ee as C,
|
|
1742
|
+
oe as F,
|
|
1749
1743
|
Ze as R,
|
|
1750
|
-
yr as a,
|
|
1751
1744
|
cn as g
|
|
1752
1745
|
};
|