@gobolt/genesis 0.1.2 → 0.1.5
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 +45 -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,22 +1,22 @@
|
|
|
1
1
|
import * as c from "react";
|
|
2
2
|
import ra, { createContext as ia, useState as j, useRef as U, useEffect as ce, useMemo as Tt } from "react";
|
|
3
|
-
import { R as oa } from "./CloseOutlined-
|
|
4
|
-
import { E as la, M as ca, D as
|
|
5
|
-
import {
|
|
6
|
-
import { I as
|
|
7
|
-
import { u as mt } from "./useMergedState-
|
|
8
|
-
import { a as
|
|
9
|
-
import {
|
|
10
|
-
import { R as Xe } from "./index-
|
|
11
|
-
import { K as pe } from "./KeyCode-
|
|
12
|
-
import {
|
|
13
|
-
import { u as
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import "./
|
|
17
|
-
import { i as ht } from "./Overflow-
|
|
3
|
+
import { R as oa } from "./CloseOutlined-DzgBOns1.js";
|
|
4
|
+
import { E as la, M as ca, D as sa, R as da } from "./EllipsisOutlined-BodkguEc.js";
|
|
5
|
+
import { e as ve, a as I, _ as ne, f as qe, b as Y, c as J, g as De, w as ua } from "./presets-CSXMiWyc.js";
|
|
6
|
+
import { I as va } from "./AntdIcon-DP6hPDqu.js";
|
|
7
|
+
import { u as mt } from "./useMergedState-D1-TbeEv.js";
|
|
8
|
+
import { a as fa } from "./index-DRGbc-fW.js";
|
|
9
|
+
import { w as pt, b as ba, a as ma, n as gt, A as pa, p as ga, g as ha, m as $a, f as $, j as Pt, t as ya, s as Rt, o as Ue, C as Sa } from "./CSSMotionList-DB0khM6h.js";
|
|
10
|
+
import { R as Xe } from "./index-CzMIlMTV.js";
|
|
11
|
+
import { K as pe } from "./KeyCode-B3vHb2gY.js";
|
|
12
|
+
import { d as It } from "./index-DCopujxC.js";
|
|
13
|
+
import { u as _a } from "./useCSSVarCls-YfJY1twF.js";
|
|
14
|
+
import { u as xa } from "./useSize-Ct1guc-z.js";
|
|
15
|
+
import { g as Ca } from "./motion-C-XpKcZG.js";
|
|
16
|
+
import { t as wa } from "./toArray-D5kvYi_U.js";
|
|
17
|
+
import { i as ht } from "./Overflow-CVbsx7Gn.js";
|
|
18
18
|
var Ea = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" } }, { tag: "path", attrs: { d: "M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z" } }] }, name: "plus", theme: "outlined" }, Ta = function(t, a) {
|
|
19
|
-
return /* @__PURE__ */ c.createElement(
|
|
19
|
+
return /* @__PURE__ */ c.createElement(va, ve({}, t, {
|
|
20
20
|
ref: a,
|
|
21
21
|
icon: Ea
|
|
22
22
|
}));
|
|
@@ -24,7 +24,7 @@ var Ea = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "fa
|
|
|
24
24
|
process.env.NODE_ENV !== "production" && (Nt.displayName = "PlusOutlined");
|
|
25
25
|
const Oe = /* @__PURE__ */ ia(null);
|
|
26
26
|
var Pa = function(t) {
|
|
27
|
-
var a = t.activeTabOffset, n = t.horizontal, r = t.rtl, o = t.indicator, l = o === void 0 ? {} : o, i = l.size,
|
|
27
|
+
var a = t.activeTabOffset, n = t.horizontal, r = t.rtl, o = t.indicator, l = o === void 0 ? {} : o, i = l.size, d = l.align, s = d === void 0 ? "center" : d, m = j(), b = I(m, 2), _ = b[0], R = b[1], O = U(), C = ra.useCallback(function(h) {
|
|
28
28
|
return typeof i == "function" ? i(h) : typeof i == "number" ? i : h;
|
|
29
29
|
}, [i]);
|
|
30
30
|
function z() {
|
|
@@ -36,13 +36,13 @@ var Pa = function(t) {
|
|
|
36
36
|
if (n) {
|
|
37
37
|
h.width = C(a.width);
|
|
38
38
|
var p = r ? "right" : "left";
|
|
39
|
-
|
|
39
|
+
s === "start" && (h[p] = a[p]), s === "center" && (h[p] = a[p] + a.width / 2, h.transform = r ? "translateX(50%)" : "translateX(-50%)"), s === "end" && (h[p] = a[p] + a.width, h.transform = "translateX(-100%)");
|
|
40
40
|
} else
|
|
41
|
-
h.height = C(a.height),
|
|
41
|
+
h.height = C(a.height), s === "start" && (h.top = a.top), s === "center" && (h.top = a.top + a.height / 2, h.transform = "translateY(-50%)"), s === "end" && (h.top = a.top + a.height, h.transform = "translateY(-100%)");
|
|
42
42
|
return z(), O.current = pt(function() {
|
|
43
43
|
R(h);
|
|
44
44
|
}), z;
|
|
45
|
-
}, [a, n, r,
|
|
45
|
+
}, [a, n, r, s, C]), {
|
|
46
46
|
style: _
|
|
47
47
|
};
|
|
48
48
|
}, $t = {
|
|
@@ -54,13 +54,13 @@ var Pa = function(t) {
|
|
|
54
54
|
function Ra(e, t, a) {
|
|
55
55
|
return Tt(function() {
|
|
56
56
|
for (var n, r = /* @__PURE__ */ new Map(), o = t.get((n = e[0]) === null || n === void 0 ? void 0 : n.key) || $t, l = o.left + o.width, i = 0; i < e.length; i += 1) {
|
|
57
|
-
var
|
|
58
|
-
if (!
|
|
57
|
+
var d = e[i].key, s = t.get(d);
|
|
58
|
+
if (!s) {
|
|
59
59
|
var m;
|
|
60
|
-
|
|
60
|
+
s = t.get((m = e[i - 1]) === null || m === void 0 ? void 0 : m.key) || $t;
|
|
61
61
|
}
|
|
62
|
-
var b = r.get(
|
|
63
|
-
b.right = l - b.left - b.width, r.set(
|
|
62
|
+
var b = r.get(d) || ne({}, s);
|
|
63
|
+
b.right = l - b.left - b.width, r.set(d, b);
|
|
64
64
|
}
|
|
65
65
|
return r;
|
|
66
66
|
}, [e.map(function(n) {
|
|
@@ -70,32 +70,32 @@ function Ra(e, t, a) {
|
|
|
70
70
|
function yt(e, t) {
|
|
71
71
|
var a = c.useRef(e), n = c.useState({}), r = I(n, 2), o = r[1];
|
|
72
72
|
function l(i) {
|
|
73
|
-
var
|
|
74
|
-
|
|
73
|
+
var d = typeof i == "function" ? i(a.current) : i;
|
|
74
|
+
d !== a.current && t(d, a.current), a.current = d, o({});
|
|
75
75
|
}
|
|
76
76
|
return [a.current, l];
|
|
77
77
|
}
|
|
78
78
|
var Ia = 0.1, St = 0.01, ze = 20, _t = Math.pow(0.995, ze);
|
|
79
79
|
function Na(e, t) {
|
|
80
|
-
var a = j(), n = I(a, 2), r = n[0], o = n[1], l = j(0), i = I(l, 2),
|
|
80
|
+
var a = j(), n = I(a, 2), r = n[0], o = n[1], l = j(0), i = I(l, 2), d = i[0], s = i[1], m = j(0), b = I(m, 2), _ = b[0], R = b[1], O = j(), C = I(O, 2), z = C[0], h = C[1], p = U();
|
|
81
81
|
function P(x) {
|
|
82
|
-
var E = x.touches[0],
|
|
82
|
+
var E = x.touches[0], f = E.screenX, y = E.screenY;
|
|
83
83
|
o({
|
|
84
|
-
x:
|
|
84
|
+
x: f,
|
|
85
85
|
y
|
|
86
86
|
}), window.clearInterval(p.current);
|
|
87
87
|
}
|
|
88
88
|
function B(x) {
|
|
89
89
|
if (r) {
|
|
90
|
-
var E = x.touches[0],
|
|
90
|
+
var E = x.touches[0], f = E.screenX, y = E.screenY;
|
|
91
91
|
o({
|
|
92
|
-
x:
|
|
92
|
+
x: f,
|
|
93
93
|
y
|
|
94
94
|
});
|
|
95
|
-
var g =
|
|
95
|
+
var g = f - r.x, S = y - r.y;
|
|
96
96
|
t(g, S);
|
|
97
97
|
var K = Date.now();
|
|
98
|
-
|
|
98
|
+
s(K), R(K - d), h({
|
|
99
99
|
x: g,
|
|
100
100
|
y: S
|
|
101
101
|
});
|
|
@@ -103,8 +103,8 @@ function Na(e, t) {
|
|
|
103
103
|
}
|
|
104
104
|
function A() {
|
|
105
105
|
if (r && (o(null), h(null), z)) {
|
|
106
|
-
var x = z.x / _, E = z.y / _,
|
|
107
|
-
if (Math.max(
|
|
106
|
+
var x = z.x / _, E = z.y / _, f = Math.abs(x), y = Math.abs(E);
|
|
107
|
+
if (Math.max(f, y) < Ia) return;
|
|
108
108
|
var g = x, S = E;
|
|
109
109
|
p.current = window.setInterval(function() {
|
|
110
110
|
if (Math.abs(g) < St && Math.abs(S) < St) {
|
|
@@ -117,8 +117,8 @@ function Na(e, t) {
|
|
|
117
117
|
}
|
|
118
118
|
var W = U();
|
|
119
119
|
function H(x) {
|
|
120
|
-
var E = x.deltaX,
|
|
121
|
-
g === S ? y = W.current === "x" ? E :
|
|
120
|
+
var E = x.deltaX, f = x.deltaY, y = 0, g = Math.abs(E), S = Math.abs(f);
|
|
121
|
+
g === S ? y = W.current === "x" ? E : f : g > S ? (y = E, W.current = "x") : (y = f, W.current = "y"), t(-y, -y) && x.preventDefault();
|
|
122
122
|
}
|
|
123
123
|
var L = U(null);
|
|
124
124
|
L.current = {
|
|
@@ -133,7 +133,7 @@ function Na(e, t) {
|
|
|
133
133
|
function E(g) {
|
|
134
134
|
L.current.onTouchMove(g);
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function f(g) {
|
|
137
137
|
L.current.onTouchEnd(g);
|
|
138
138
|
}
|
|
139
139
|
function y(g) {
|
|
@@ -141,14 +141,14 @@ function Na(e, t) {
|
|
|
141
141
|
}
|
|
142
142
|
return document.addEventListener("touchmove", E, {
|
|
143
143
|
passive: !1
|
|
144
|
-
}), document.addEventListener("touchend",
|
|
144
|
+
}), document.addEventListener("touchend", f, {
|
|
145
145
|
passive: !0
|
|
146
146
|
}), e.current.addEventListener("touchstart", x, {
|
|
147
147
|
passive: !0
|
|
148
148
|
}), e.current.addEventListener("wheel", y, {
|
|
149
149
|
passive: !1
|
|
150
150
|
}), function() {
|
|
151
|
-
document.removeEventListener("touchmove", E), document.removeEventListener("touchend",
|
|
151
|
+
document.removeEventListener("touchmove", E), document.removeEventListener("touchend", f);
|
|
152
152
|
};
|
|
153
153
|
}, []);
|
|
154
154
|
}
|
|
@@ -163,13 +163,13 @@ function Mt(e) {
|
|
|
163
163
|
}
|
|
164
164
|
function Ma(e) {
|
|
165
165
|
var t = U([]), a = j({}), n = I(a, 2), r = n[1], o = U(typeof e == "function" ? e() : e), l = Mt(function() {
|
|
166
|
-
var
|
|
167
|
-
t.current.forEach(function(
|
|
168
|
-
|
|
169
|
-
}), t.current = [], o.current =
|
|
166
|
+
var d = o.current;
|
|
167
|
+
t.current.forEach(function(s) {
|
|
168
|
+
d = s(d);
|
|
169
|
+
}), t.current = [], o.current = d, r({});
|
|
170
170
|
});
|
|
171
|
-
function i(
|
|
172
|
-
t.current.push(
|
|
171
|
+
function i(d) {
|
|
172
|
+
t.current.push(d), l();
|
|
173
173
|
}
|
|
174
174
|
return [o.current, i];
|
|
175
175
|
}
|
|
@@ -181,8 +181,8 @@ var xt = {
|
|
|
181
181
|
right: 0
|
|
182
182
|
};
|
|
183
183
|
function La(e, t, a, n, r, o, l) {
|
|
184
|
-
var i = l.tabs,
|
|
185
|
-
return ["top", "bottom"].includes(
|
|
184
|
+
var i = l.tabs, d = l.tabPosition, s = l.rtl, m, b, _;
|
|
185
|
+
return ["top", "bottom"].includes(d) ? (m = "width", b = s ? "right" : "left", _ = Math.abs(a)) : (m = "height", b = "top", _ = -a), Tt(function() {
|
|
186
186
|
if (!i.length)
|
|
187
187
|
return [0, 0];
|
|
188
188
|
for (var R = i.length, O = R, C = 0; C < R; C += 1) {
|
|
@@ -200,9 +200,9 @@ function La(e, t, a, n, r, o, l) {
|
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
202
|
return h >= O ? [0, 0] : [h, O];
|
|
203
|
-
}, [e, t, n, r, o, _,
|
|
203
|
+
}, [e, t, n, r, o, _, d, i.map(function(R) {
|
|
204
204
|
return R.key;
|
|
205
|
-
}).join("_"),
|
|
205
|
+
}).join("_"), s]);
|
|
206
206
|
}
|
|
207
207
|
function Ct(e) {
|
|
208
208
|
var t;
|
|
@@ -249,14 +249,14 @@ var zt = /* @__PURE__ */ c.forwardRef(function(e, t) {
|
|
|
249
249
|
});
|
|
250
250
|
process.env.NODE_ENV !== "production" && (Fe.displayName = "ExtraContent");
|
|
251
251
|
var Da = /* @__PURE__ */ c.forwardRef(function(e, t) {
|
|
252
|
-
var a = e.prefixCls, n = e.id, r = e.tabs, o = e.locale, l = e.mobile, i = e.more,
|
|
252
|
+
var a = e.prefixCls, n = e.id, r = e.tabs, o = e.locale, l = e.mobile, i = e.more, d = i === void 0 ? {} : i, s = e.style, m = e.className, b = e.editable, _ = e.tabBarGutter, R = e.rtl, O = e.removeAriaLabel, C = e.onTabClick, z = e.getPopupContainer, h = e.popupClassName, p = j(!1), P = I(p, 2), B = P[0], A = P[1], W = j(null), H = I(W, 2), L = H[0], x = H[1], E = d.icon, f = E === void 0 ? "More" : E, y = "".concat(n, "-more-popup"), g = "".concat(a, "-dropdown"), S = L !== null ? "".concat(y, "-").concat(L) : null, K = o == null ? void 0 : o.dropdownAriaLabel;
|
|
253
253
|
function X(w, k) {
|
|
254
254
|
w.preventDefault(), w.stopPropagation(), b.onEdit("remove", {
|
|
255
255
|
key: k,
|
|
256
256
|
event: w
|
|
257
257
|
});
|
|
258
258
|
}
|
|
259
|
-
var
|
|
259
|
+
var v = /* @__PURE__ */ c.createElement(la, {
|
|
260
260
|
onClick: function(k) {
|
|
261
261
|
var V = k.key, q = k.domEvent;
|
|
262
262
|
C(V, q), A(!1);
|
|
@@ -300,7 +300,7 @@ var Da = /* @__PURE__ */ c.forwardRef(function(e, t) {
|
|
|
300
300
|
}
|
|
301
301
|
}
|
|
302
302
|
}
|
|
303
|
-
function
|
|
303
|
+
function se(w) {
|
|
304
304
|
var k = w.which;
|
|
305
305
|
if (!B) {
|
|
306
306
|
[pe.DOWN, pe.SPACE, pe.ENTER].includes(k) && (A(!0), w.preventDefault());
|
|
@@ -330,32 +330,30 @@ var Da = /* @__PURE__ */ c.forwardRef(function(e, t) {
|
|
|
330
330
|
}, [B]);
|
|
331
331
|
var G = Y({}, R ? "marginRight" : "marginLeft", _);
|
|
332
332
|
r.length || (G.visibility = "hidden", G.order = 1);
|
|
333
|
-
var Q = J(Y({}, "".concat(g, "-rtl"), R)),
|
|
333
|
+
var Q = J(Y({}, "".concat(g, "-rtl"), R)), fe = l ? null : /* @__PURE__ */ c.createElement(sa, ve({
|
|
334
334
|
prefixCls: g,
|
|
335
|
-
overlay:
|
|
335
|
+
overlay: v,
|
|
336
336
|
visible: r.length ? B : !1,
|
|
337
337
|
onVisibleChange: A,
|
|
338
338
|
overlayClassName: J(Q, h),
|
|
339
339
|
mouseEnterDelay: 0.1,
|
|
340
340
|
mouseLeaveDelay: 0.1,
|
|
341
341
|
getPopupContainer: z
|
|
342
|
-
},
|
|
342
|
+
}, d), /* @__PURE__ */ c.createElement("button", {
|
|
343
343
|
type: "button",
|
|
344
344
|
className: "".concat(a, "-nav-more"),
|
|
345
345
|
style: G,
|
|
346
|
-
tabIndex: -1,
|
|
347
|
-
"aria-hidden": "true",
|
|
348
346
|
"aria-haspopup": "listbox",
|
|
349
347
|
"aria-controls": y,
|
|
350
348
|
id: "".concat(n, "-more"),
|
|
351
349
|
"aria-expanded": B,
|
|
352
|
-
onKeyDown:
|
|
353
|
-
},
|
|
350
|
+
onKeyDown: se
|
|
351
|
+
}, f));
|
|
354
352
|
return /* @__PURE__ */ c.createElement("div", {
|
|
355
353
|
className: J("".concat(a, "-nav-operations"), m),
|
|
356
|
-
style:
|
|
354
|
+
style: s,
|
|
357
355
|
ref: t
|
|
358
|
-
},
|
|
356
|
+
}, fe, /* @__PURE__ */ c.createElement(zt, {
|
|
359
357
|
prefixCls: a,
|
|
360
358
|
locale: o,
|
|
361
359
|
editable: b
|
|
@@ -369,9 +367,9 @@ const Oa = /* @__PURE__ */ c.memo(Da, function(e, t) {
|
|
|
369
367
|
);
|
|
370
368
|
});
|
|
371
369
|
var Ba = function(t) {
|
|
372
|
-
var a = t.prefixCls, n = t.id, r = t.active, o = t.focus, l = t.tab, i = l.key,
|
|
373
|
-
function
|
|
374
|
-
|
|
370
|
+
var a = t.prefixCls, n = t.id, r = t.active, o = t.focus, l = t.tab, i = l.key, d = l.label, s = l.disabled, m = l.closeIcon, b = l.icon, _ = t.closable, R = t.renderWrapper, O = t.removeAriaLabel, C = t.editable, z = t.onClick, h = t.onFocus, p = t.onBlur, P = t.onKeyDown, B = t.onMouseDown, A = t.onMouseUp, W = t.style, H = t.tabCount, L = t.currentPosition, x = "".concat(a, "-tab"), E = Ye(_, m, C, s);
|
|
371
|
+
function f(X) {
|
|
372
|
+
s || z(X);
|
|
375
373
|
}
|
|
376
374
|
function y(X) {
|
|
377
375
|
X.preventDefault(), X.stopPropagation(), C.onEdit("remove", {
|
|
@@ -380,17 +378,17 @@ var Ba = function(t) {
|
|
|
380
378
|
});
|
|
381
379
|
}
|
|
382
380
|
var g = c.useMemo(function() {
|
|
383
|
-
return b && typeof
|
|
384
|
-
}, [
|
|
381
|
+
return b && typeof d == "string" ? /* @__PURE__ */ c.createElement("span", null, d) : d;
|
|
382
|
+
}, [d, b]), S = c.useRef(null);
|
|
385
383
|
c.useEffect(function() {
|
|
386
384
|
o && S.current && S.current.focus();
|
|
387
385
|
}, [o]);
|
|
388
386
|
var K = /* @__PURE__ */ c.createElement("div", {
|
|
389
387
|
key: i,
|
|
390
388
|
"data-node-key": Lt(i),
|
|
391
|
-
className: J(x, Y(Y(Y(Y({}, "".concat(x, "-with-remove"), E), "".concat(x, "-active"), r), "".concat(x, "-disabled"),
|
|
389
|
+
className: J(x, Y(Y(Y(Y({}, "".concat(x, "-with-remove"), E), "".concat(x, "-active"), r), "".concat(x, "-disabled"), s), "".concat(x, "-focus"), o)),
|
|
392
390
|
style: W,
|
|
393
|
-
onClick:
|
|
391
|
+
onClick: f
|
|
394
392
|
}, /* @__PURE__ */ c.createElement("div", {
|
|
395
393
|
ref: S,
|
|
396
394
|
role: "tab",
|
|
@@ -398,10 +396,10 @@ var Ba = function(t) {
|
|
|
398
396
|
id: n && "".concat(n, "-tab-").concat(i),
|
|
399
397
|
className: "".concat(x, "-btn"),
|
|
400
398
|
"aria-controls": n && "".concat(n, "-panel-").concat(i),
|
|
401
|
-
"aria-disabled":
|
|
402
|
-
tabIndex:
|
|
403
|
-
onClick: function(
|
|
404
|
-
|
|
399
|
+
"aria-disabled": s,
|
|
400
|
+
tabIndex: s ? null : r ? 0 : -1,
|
|
401
|
+
onClick: function(v) {
|
|
402
|
+
v.stopPropagation(), f(v);
|
|
405
403
|
},
|
|
406
404
|
onKeyDown: P,
|
|
407
405
|
onMouseDown: B,
|
|
@@ -419,40 +417,41 @@ var Ba = function(t) {
|
|
|
419
417
|
}
|
|
420
418
|
}, "Tab ".concat(L, " of ").concat(H)), b && /* @__PURE__ */ c.createElement("span", {
|
|
421
419
|
className: "".concat(x, "-icon")
|
|
422
|
-
}, b),
|
|
420
|
+
}, b), d && g), E && /* @__PURE__ */ c.createElement("button", {
|
|
423
421
|
type: "button",
|
|
422
|
+
role: "tab",
|
|
424
423
|
"aria-label": O || "remove",
|
|
425
424
|
tabIndex: r ? 0 : -1,
|
|
426
425
|
className: "".concat(x, "-remove"),
|
|
427
|
-
onClick: function(
|
|
428
|
-
|
|
426
|
+
onClick: function(v) {
|
|
427
|
+
v.stopPropagation(), y(v);
|
|
429
428
|
}
|
|
430
429
|
}, m || C.removeIcon || "×"));
|
|
431
430
|
return R ? R(K) : K;
|
|
432
431
|
}, ka = function(t, a) {
|
|
433
|
-
var n = t.offsetWidth, r = t.offsetHeight, o = t.offsetTop, l = t.offsetLeft, i = t.getBoundingClientRect(),
|
|
434
|
-
return Math.abs(
|
|
432
|
+
var n = t.offsetWidth, r = t.offsetHeight, o = t.offsetTop, l = t.offsetLeft, i = t.getBoundingClientRect(), d = i.width, s = i.height, m = i.left, b = i.top;
|
|
433
|
+
return Math.abs(d - n) < 1 ? [d, s, m - a.left, b - a.top] : [n, r, l, o];
|
|
435
434
|
}, Ce = function(t) {
|
|
436
435
|
var a = t.current || {}, n = a.offsetWidth, r = n === void 0 ? 0 : n, o = a.offsetHeight, l = o === void 0 ? 0 : o;
|
|
437
436
|
if (t.current) {
|
|
438
|
-
var i = t.current.getBoundingClientRect(),
|
|
439
|
-
if (Math.abs(
|
|
440
|
-
return [
|
|
437
|
+
var i = t.current.getBoundingClientRect(), d = i.width, s = i.height;
|
|
438
|
+
if (Math.abs(d - r) < 1)
|
|
439
|
+
return [d, s];
|
|
441
440
|
}
|
|
442
441
|
return [r, l];
|
|
443
442
|
}, Le = function(t, a) {
|
|
444
443
|
return t[a ? 0 : 1];
|
|
445
444
|
}, wt = /* @__PURE__ */ c.forwardRef(function(e, t) {
|
|
446
|
-
var a = e.className, n = e.style, r = e.id, o = e.animated, l = e.activeKey, i = e.rtl,
|
|
447
|
-
|
|
445
|
+
var a = e.className, n = e.style, r = e.id, o = e.animated, l = e.activeKey, i = e.rtl, d = e.extra, s = e.editable, m = e.locale, b = e.tabPosition, _ = e.tabBarGutter, R = e.children, O = e.onTabClick, C = e.onTabScroll, z = e.indicator, h = c.useContext(Oe), p = h.prefixCls, P = h.tabs, B = U(null), A = U(null), W = U(null), H = U(null), L = U(null), x = U(null), E = U(null), f = b === "top" || b === "bottom", y = yt(0, function(T, u) {
|
|
446
|
+
f && C && C({
|
|
448
447
|
direction: T > u ? "left" : "right"
|
|
449
448
|
});
|
|
450
449
|
}), g = I(y, 2), S = g[0], K = g[1], X = yt(0, function(T, u) {
|
|
451
|
-
!
|
|
450
|
+
!f && C && C({
|
|
452
451
|
direction: T > u ? "top" : "bottom"
|
|
453
452
|
});
|
|
454
|
-
}),
|
|
455
|
-
|
|
453
|
+
}), v = I(X, 2), F = v[0], se = v[1], G = j([0, 0]), Q = I(G, 2), fe = Q[0], w = Q[1], k = j([0, 0]), V = I(k, 2), q = V[0], Z = V[1], re = j([0, 0]), ee = I(re, 2), he = ee[0], be = ee[1], oe = j([0, 0]), $e = I(oe, 2), N = $e[0], de = $e[1], we = Ma(/* @__PURE__ */ new Map()), Ze = I(we, 2), At = Ze[0], Wt = Ze[1], Re = Ra(P, At, q[0]), Be = Le(fe, f), Ee = Le(q, f), ke = Le(he, f), Je = Le(N, f), et = Math.floor(Be) < Math.floor(Ee + ke), le = et ? Be - Je : Be - ke, Ht = "".concat(p, "-nav-operations-hidden"), me = 0, ge = 0;
|
|
454
|
+
f && i ? (me = 0, ge = Math.max(0, Ee - le)) : (me = Math.min(0, le - Ee), ge = 0);
|
|
456
455
|
function Ae(T) {
|
|
457
456
|
return T < me ? me : T > ge ? ge : T;
|
|
458
457
|
}
|
|
@@ -470,7 +469,7 @@ var Ba = function(t) {
|
|
|
470
469
|
return _e;
|
|
471
470
|
});
|
|
472
471
|
}
|
|
473
|
-
return et ? (
|
|
472
|
+
return et ? (f ? M(K, T) : M(se, u), je(), He(), !0) : !1;
|
|
474
473
|
}), ce(function() {
|
|
475
474
|
return je(), Ie && (We.current = setTimeout(function() {
|
|
476
475
|
at(0);
|
|
@@ -481,7 +480,7 @@ var Ba = function(t) {
|
|
|
481
480
|
// Container
|
|
482
481
|
le,
|
|
483
482
|
// Transform
|
|
484
|
-
|
|
483
|
+
f ? S : F,
|
|
485
484
|
// Tabs
|
|
486
485
|
Ee,
|
|
487
486
|
// Add
|
|
@@ -499,12 +498,12 @@ var Ba = function(t) {
|
|
|
499
498
|
right: 0,
|
|
500
499
|
top: 0
|
|
501
500
|
};
|
|
502
|
-
if (
|
|
501
|
+
if (f) {
|
|
503
502
|
var M = S;
|
|
504
|
-
i ? u.right < S ? M = u.right : u.right + u.width > S + le && (M = u.right + u.width - le) : u.left < -S ? M = -u.left : u.left + u.width > -S + le && (M = -(u.left + u.width - le)),
|
|
503
|
+
i ? u.right < S ? M = u.right : u.right + u.width > S + le && (M = u.right + u.width - le) : u.left < -S ? M = -u.left : u.left + u.width > -S + le && (M = -(u.left + u.width - le)), se(0), K(Ae(M));
|
|
505
504
|
} else {
|
|
506
505
|
var D = F;
|
|
507
|
-
u.top < -F ? D = -u.top : u.top + u.height > -F + le && (D = -(u.top + u.height - le)), K(0),
|
|
506
|
+
u.top < -F ? D = -u.top : u.top + u.height > -F + le && (D = -(u.top + u.height - le)), K(0), se(Ae(D));
|
|
508
507
|
}
|
|
509
508
|
}), Xt = j(), it = I(Xt, 2), ye = it[0], Te = it[1], Ut = j(!1), ot = I(Ut, 2), Ft = ot[0], lt = ot[1], ue = P.filter(function(T) {
|
|
510
509
|
return !T.disabled;
|
|
@@ -514,43 +513,51 @@ var Ba = function(t) {
|
|
|
514
513
|
var M = ue.indexOf(ye || l), D = ue.length, ie = (M + u + D) % D, te = ue[ie];
|
|
515
514
|
Te(te);
|
|
516
515
|
}, qt = function(u) {
|
|
517
|
-
var M = u.code, D = i &&
|
|
516
|
+
var M = u.code, D = i && f, ie = ue[0], te = ue[ue.length - 1];
|
|
518
517
|
switch (M) {
|
|
518
|
+
// LEFT
|
|
519
519
|
case "ArrowLeft": {
|
|
520
|
-
|
|
520
|
+
f && Se(D ? 1 : -1);
|
|
521
521
|
break;
|
|
522
522
|
}
|
|
523
|
+
// RIGHT
|
|
523
524
|
case "ArrowRight": {
|
|
524
|
-
|
|
525
|
+
f && Se(D ? -1 : 1);
|
|
525
526
|
break;
|
|
526
527
|
}
|
|
528
|
+
// UP
|
|
527
529
|
case "ArrowUp": {
|
|
528
|
-
u.preventDefault(),
|
|
530
|
+
u.preventDefault(), f || Se(-1);
|
|
529
531
|
break;
|
|
530
532
|
}
|
|
533
|
+
// DOWN
|
|
531
534
|
case "ArrowDown": {
|
|
532
|
-
u.preventDefault(),
|
|
535
|
+
u.preventDefault(), f || Se(1);
|
|
533
536
|
break;
|
|
534
537
|
}
|
|
538
|
+
// HOME
|
|
535
539
|
case "Home": {
|
|
536
540
|
u.preventDefault(), Te(ie);
|
|
537
541
|
break;
|
|
538
542
|
}
|
|
543
|
+
// END
|
|
539
544
|
case "End": {
|
|
540
545
|
u.preventDefault(), Te(te);
|
|
541
546
|
break;
|
|
542
547
|
}
|
|
548
|
+
// Enter & Space
|
|
543
549
|
case "Enter":
|
|
544
550
|
case "Space": {
|
|
545
551
|
u.preventDefault(), O(ye, u);
|
|
546
552
|
break;
|
|
547
553
|
}
|
|
554
|
+
// Backspace
|
|
548
555
|
case "Backspace":
|
|
549
556
|
case "Delete": {
|
|
550
557
|
var _e = ue.indexOf(ye), ae = P.find(function(xe) {
|
|
551
558
|
return xe.key === ye;
|
|
552
|
-
}), Ke = Ye(ae == null ? void 0 : ae.closable, ae == null ? void 0 : ae.closeIcon,
|
|
553
|
-
Ke && (u.preventDefault(), u.stopPropagation(),
|
|
559
|
+
}), Ke = Ye(ae == null ? void 0 : ae.closable, ae == null ? void 0 : ae.closeIcon, s, ae == null ? void 0 : ae.disabled);
|
|
560
|
+
Ke && (u.preventDefault(), u.stopPropagation(), s.onEdit("remove", {
|
|
554
561
|
key: ye,
|
|
555
562
|
event: u
|
|
556
563
|
}), _e === ue.length - 1 ? Se(-1) : Se(1));
|
|
@@ -558,7 +565,7 @@ var Ba = function(t) {
|
|
|
558
565
|
}
|
|
559
566
|
}
|
|
560
567
|
}, Ne = {};
|
|
561
|
-
|
|
568
|
+
f ? Ne[i ? "marginRight" : "marginLeft"] = _ : Ne.marginTop = _;
|
|
562
569
|
var ct = P.map(function(T, u) {
|
|
563
570
|
var M = T.key;
|
|
564
571
|
return /* @__PURE__ */ c.createElement(Ba, {
|
|
@@ -568,7 +575,7 @@ var Ba = function(t) {
|
|
|
568
575
|
tab: T,
|
|
569
576
|
style: u === 0 ? void 0 : Ne,
|
|
570
577
|
closable: T.closable,
|
|
571
|
-
editable:
|
|
578
|
+
editable: s,
|
|
572
579
|
active: M === l,
|
|
573
580
|
focus: M === ye,
|
|
574
581
|
renderWrapper: R,
|
|
@@ -592,7 +599,7 @@ var Ba = function(t) {
|
|
|
592
599
|
lt(!1);
|
|
593
600
|
}
|
|
594
601
|
});
|
|
595
|
-
}),
|
|
602
|
+
}), st = function() {
|
|
596
603
|
return Wt(function() {
|
|
597
604
|
var u, M = /* @__PURE__ */ new Map(), D = (u = L.current) === null || u === void 0 ? void 0 : u.getBoundingClientRect();
|
|
598
605
|
return P.forEach(function(ie) {
|
|
@@ -610,7 +617,7 @@ var Ba = function(t) {
|
|
|
610
617
|
});
|
|
611
618
|
};
|
|
612
619
|
ce(function() {
|
|
613
|
-
|
|
620
|
+
st();
|
|
614
621
|
}, [P.map(function(T) {
|
|
615
622
|
return T.key;
|
|
616
623
|
}).join("_")]);
|
|
@@ -620,27 +627,27 @@ var Ba = function(t) {
|
|
|
620
627
|
var D = Ce(E);
|
|
621
628
|
be(D);
|
|
622
629
|
var ie = Ce(x);
|
|
623
|
-
|
|
630
|
+
de(ie);
|
|
624
631
|
var te = Ce(L);
|
|
625
|
-
Z([te[0] - D[0], te[1] - D[1]]),
|
|
626
|
-
}), Yt = P.slice(0, Vt), Qt = P.slice(Kt + 1),
|
|
632
|
+
Z([te[0] - D[0], te[1] - D[1]]), st();
|
|
633
|
+
}), Yt = P.slice(0, Vt), Qt = P.slice(Kt + 1), dt = [].concat(gt(Yt), gt(Qt)), ut = Re.get(l), Zt = Pa({
|
|
627
634
|
activeTabOffset: ut,
|
|
628
|
-
horizontal:
|
|
635
|
+
horizontal: f,
|
|
629
636
|
indicator: z,
|
|
630
637
|
rtl: i
|
|
631
638
|
}), Jt = Zt.style;
|
|
632
639
|
ce(function() {
|
|
633
640
|
rt();
|
|
634
|
-
}, [l, me, ge, Ct(ut), Ct(Re),
|
|
641
|
+
}, [l, me, ge, Ct(ut), Ct(Re), f]), ce(function() {
|
|
635
642
|
Me();
|
|
636
643
|
}, [i]);
|
|
637
|
-
var
|
|
638
|
-
return
|
|
644
|
+
var vt = !!dt.length, Pe = "".concat(p, "-nav-wrap"), Ge, Ve, ft, bt;
|
|
645
|
+
return f ? i ? (Ve = S > 0, Ge = S !== ge) : (Ge = S < 0, Ve = S !== me) : (ft = F < 0, bt = F !== me), /* @__PURE__ */ c.createElement(Xe, {
|
|
639
646
|
onResize: Me
|
|
640
647
|
}, /* @__PURE__ */ c.createElement("div", {
|
|
641
648
|
ref: pa(t, B),
|
|
642
649
|
role: "tablist",
|
|
643
|
-
"aria-orientation":
|
|
650
|
+
"aria-orientation": f ? "horizontal" : "vertical",
|
|
644
651
|
className: J("".concat(p, "-nav"), a),
|
|
645
652
|
style: n,
|
|
646
653
|
onKeyDown: function() {
|
|
@@ -649,12 +656,12 @@ var Ba = function(t) {
|
|
|
649
656
|
}, /* @__PURE__ */ c.createElement(Fe, {
|
|
650
657
|
ref: A,
|
|
651
658
|
position: "left",
|
|
652
|
-
extra:
|
|
659
|
+
extra: d,
|
|
653
660
|
prefixCls: p
|
|
654
661
|
}), /* @__PURE__ */ c.createElement(Xe, {
|
|
655
662
|
onResize: Me
|
|
656
663
|
}, /* @__PURE__ */ c.createElement("div", {
|
|
657
|
-
className: J(Pe, Y(Y(Y(Y({}, "".concat(Pe, "-ping-left"), Ge), "".concat(Pe, "-ping-right"), Ve), "".concat(Pe, "-ping-top"),
|
|
664
|
+
className: J(Pe, Y(Y(Y(Y({}, "".concat(Pe, "-ping-left"), Ge), "".concat(Pe, "-ping-right"), Ve), "".concat(Pe, "-ping-top"), ft), "".concat(Pe, "-ping-bottom"), bt)),
|
|
658
665
|
ref: H
|
|
659
666
|
}, /* @__PURE__ */ c.createElement(Xe, {
|
|
660
667
|
onResize: Me
|
|
@@ -669,28 +676,28 @@ var Ba = function(t) {
|
|
|
669
676
|
ref: E,
|
|
670
677
|
prefixCls: p,
|
|
671
678
|
locale: m,
|
|
672
|
-
editable:
|
|
679
|
+
editable: s,
|
|
673
680
|
style: ne(ne({}, ct.length === 0 ? void 0 : Ne), {}, {
|
|
674
|
-
visibility:
|
|
681
|
+
visibility: vt ? "hidden" : null
|
|
675
682
|
})
|
|
676
683
|
}), /* @__PURE__ */ c.createElement("div", {
|
|
677
684
|
className: J("".concat(p, "-ink-bar"), Y({}, "".concat(p, "-ink-bar-animated"), o.inkBar)),
|
|
678
685
|
style: Jt
|
|
679
|
-
}))))), /* @__PURE__ */ c.createElement(Oa,
|
|
686
|
+
}))))), /* @__PURE__ */ c.createElement(Oa, ve({}, e, {
|
|
680
687
|
removeAriaLabel: m == null ? void 0 : m.removeAriaLabel,
|
|
681
688
|
ref: x,
|
|
682
689
|
prefixCls: p,
|
|
683
|
-
tabs:
|
|
684
|
-
className: !
|
|
690
|
+
tabs: dt,
|
|
691
|
+
className: !vt && Ht,
|
|
685
692
|
tabMoving: !!Ie
|
|
686
693
|
})), /* @__PURE__ */ c.createElement(Fe, {
|
|
687
694
|
ref: W,
|
|
688
695
|
position: "right",
|
|
689
|
-
extra:
|
|
696
|
+
extra: d,
|
|
690
697
|
prefixCls: p
|
|
691
698
|
})));
|
|
692
699
|
}), Qe = /* @__PURE__ */ c.forwardRef(function(e, t) {
|
|
693
|
-
var a = e.prefixCls, n = e.className, r = e.style, o = e.id, l = e.active, i = e.tabKey,
|
|
700
|
+
var a = e.prefixCls, n = e.className, r = e.style, o = e.id, l = e.active, i = e.tabKey, d = e.children;
|
|
694
701
|
return /* @__PURE__ */ c.createElement("div", {
|
|
695
702
|
id: o && "".concat(o, "-panel-").concat(i),
|
|
696
703
|
role: "tabpanel",
|
|
@@ -700,7 +707,7 @@ var Ba = function(t) {
|
|
|
700
707
|
style: r,
|
|
701
708
|
className: J(a, l && "".concat(a, "-active"), n),
|
|
702
709
|
ref: t
|
|
703
|
-
},
|
|
710
|
+
}, d);
|
|
704
711
|
});
|
|
705
712
|
process.env.NODE_ENV !== "production" && (Qe.displayName = "TabPane");
|
|
706
713
|
var Aa = ["renderTabBar"], Wa = ["label", "key"], Dt = function(t) {
|
|
@@ -709,11 +716,11 @@ var Aa = ["renderTabBar"], Wa = ["label", "key"], Dt = function(t) {
|
|
|
709
716
|
var l = ne(ne({}, n), {}, {
|
|
710
717
|
// Legacy support. We do not use this actually
|
|
711
718
|
panes: o.map(function(i) {
|
|
712
|
-
var
|
|
713
|
-
return /* @__PURE__ */ c.createElement(Qe,
|
|
714
|
-
tab:
|
|
715
|
-
key:
|
|
716
|
-
tabKey:
|
|
719
|
+
var d = i.label, s = i.key, m = De(i, Wa);
|
|
720
|
+
return /* @__PURE__ */ c.createElement(Qe, ve({
|
|
721
|
+
tab: d,
|
|
722
|
+
key: s,
|
|
723
|
+
tabKey: s
|
|
717
724
|
}, m));
|
|
718
725
|
})
|
|
719
726
|
});
|
|
@@ -723,14 +730,14 @@ var Aa = ["renderTabBar"], Wa = ["label", "key"], Dt = function(t) {
|
|
|
723
730
|
};
|
|
724
731
|
process.env.NODE_ENV !== "production" && (Dt.displayName = "TabNavListWrapper");
|
|
725
732
|
var Ha = ["key", "forceRender", "style", "className", "destroyInactiveTabPane"], ja = function(t) {
|
|
726
|
-
var a = t.id, n = t.activeKey, r = t.animated, o = t.tabPosition, l = t.destroyInactiveTabPane, i = c.useContext(Oe),
|
|
733
|
+
var a = t.id, n = t.activeKey, r = t.animated, o = t.tabPosition, l = t.destroyInactiveTabPane, i = c.useContext(Oe), d = i.prefixCls, s = i.tabs, m = r.tabPane, b = "".concat(d, "-tabpane");
|
|
727
734
|
return /* @__PURE__ */ c.createElement("div", {
|
|
728
|
-
className: J("".concat(
|
|
735
|
+
className: J("".concat(d, "-content-holder"))
|
|
729
736
|
}, /* @__PURE__ */ c.createElement("div", {
|
|
730
|
-
className: J("".concat(
|
|
731
|
-
},
|
|
737
|
+
className: J("".concat(d, "-content"), "".concat(d, "-content-").concat(o), Y({}, "".concat(d, "-content-animated"), m))
|
|
738
|
+
}, s.map(function(_) {
|
|
732
739
|
var R = _.key, O = _.forceRender, C = _.style, z = _.className, h = _.destroyInactiveTabPane, p = De(_, Ha), P = R === n;
|
|
733
|
-
return /* @__PURE__ */ c.createElement(ga,
|
|
740
|
+
return /* @__PURE__ */ c.createElement(ga, ve({
|
|
734
741
|
key: R,
|
|
735
742
|
visible: P,
|
|
736
743
|
forceRender: O,
|
|
@@ -738,7 +745,7 @@ var Ha = ["key", "forceRender", "style", "className", "destroyInactiveTabPane"],
|
|
|
738
745
|
leavedClassName: "".concat(b, "-hidden")
|
|
739
746
|
}, r.tabPaneMotion), function(B, A) {
|
|
740
747
|
var W = B.style, H = B.className;
|
|
741
|
-
return /* @__PURE__ */ c.createElement(Qe,
|
|
748
|
+
return /* @__PURE__ */ c.createElement(Qe, ve({}, p, {
|
|
742
749
|
prefixCls: b,
|
|
743
750
|
id: a,
|
|
744
751
|
tabKey: R,
|
|
@@ -767,21 +774,21 @@ function Ga() {
|
|
|
767
774
|
}, qe(e) === "object" ? e : {}), t.tabPaneMotion && t.tabPane === void 0 && (t.tabPane = !0), !t.tabPaneMotion && t.tabPane && (process.env.NODE_ENV !== "production" && ua(!1, "`animated.tabPane` is true but `animated.tabPaneMotion` is not provided. Motion will not work."), t.tabPane = !1), t;
|
|
768
775
|
}
|
|
769
776
|
var Va = ["id", "prefixCls", "className", "items", "direction", "activeKey", "defaultActiveKey", "editable", "animated", "tabPosition", "tabBarGutter", "tabBarStyle", "tabBarExtraContent", "locale", "more", "destroyInactiveTabPane", "renderTabBar", "onChange", "onTabClick", "onTabScroll", "getPopupContainer", "popupClassName", "indicator"], Et = 0, Ot = /* @__PURE__ */ c.forwardRef(function(e, t) {
|
|
770
|
-
var a = e.id, n = e.prefixCls, r = n === void 0 ? "rc-tabs" : n, o = e.className, l = e.items, i = e.direction,
|
|
777
|
+
var a = e.id, n = e.prefixCls, r = n === void 0 ? "rc-tabs" : n, o = e.className, l = e.items, i = e.direction, d = e.activeKey, s = e.defaultActiveKey, m = e.editable, b = e.animated, _ = e.tabPosition, R = _ === void 0 ? "top" : _, O = e.tabBarGutter, C = e.tabBarStyle, z = e.tabBarExtraContent, h = e.locale, p = e.more, P = e.destroyInactiveTabPane, B = e.renderTabBar, A = e.onChange, W = e.onTabClick, H = e.onTabScroll, L = e.getPopupContainer, x = e.popupClassName, E = e.indicator, f = De(e, Va), y = c.useMemo(function() {
|
|
771
778
|
return (l || []).filter(function(N) {
|
|
772
779
|
return N && qe(N) === "object" && "key" in N;
|
|
773
780
|
});
|
|
774
|
-
}, [l]), g = i === "rtl", S = Ga(b), K = j(!1), X = I(K, 2),
|
|
781
|
+
}, [l]), g = i === "rtl", S = Ga(b), K = j(!1), X = I(K, 2), v = X[0], F = X[1];
|
|
775
782
|
ce(function() {
|
|
776
|
-
F(
|
|
783
|
+
F(fa());
|
|
777
784
|
}, []);
|
|
778
|
-
var
|
|
785
|
+
var se = mt(function() {
|
|
779
786
|
var N;
|
|
780
787
|
return (N = y[0]) === null || N === void 0 ? void 0 : N.key;
|
|
781
788
|
}, {
|
|
782
|
-
value:
|
|
783
|
-
defaultValue:
|
|
784
|
-
}), G = I(
|
|
789
|
+
value: d,
|
|
790
|
+
defaultValue: s
|
|
791
|
+
}), G = I(se, 2), Q = G[0], fe = G[1], w = j(function() {
|
|
785
792
|
return y.findIndex(function(N) {
|
|
786
793
|
return N.key === Q;
|
|
787
794
|
});
|
|
@@ -791,8 +798,8 @@ var Va = ["id", "prefixCls", "className", "items", "direction", "activeKey", "de
|
|
|
791
798
|
return we.key === Q;
|
|
792
799
|
});
|
|
793
800
|
if (N === -1) {
|
|
794
|
-
var
|
|
795
|
-
N = Math.max(0, Math.min(V, y.length - 1)),
|
|
801
|
+
var de;
|
|
802
|
+
N = Math.max(0, Math.min(V, y.length - 1)), fe((de = y[N]) === null || de === void 0 ? void 0 : de.key);
|
|
796
803
|
}
|
|
797
804
|
q(N);
|
|
798
805
|
}, [y.map(function(N) {
|
|
@@ -804,10 +811,10 @@ var Va = ["id", "prefixCls", "className", "items", "direction", "activeKey", "de
|
|
|
804
811
|
ce(function() {
|
|
805
812
|
a || (he("rc-tabs-".concat(process.env.NODE_ENV === "test" ? "test" : Et)), Et += 1);
|
|
806
813
|
}, []);
|
|
807
|
-
function be(N,
|
|
808
|
-
W == null || W(N,
|
|
814
|
+
function be(N, de) {
|
|
815
|
+
W == null || W(N, de);
|
|
809
816
|
var we = N !== Q;
|
|
810
|
-
|
|
817
|
+
fe(N), we && (A == null || A(N));
|
|
811
818
|
}
|
|
812
819
|
var oe = {
|
|
813
820
|
id: ee,
|
|
@@ -815,7 +822,7 @@ var Va = ["id", "prefixCls", "className", "items", "direction", "activeKey", "de
|
|
|
815
822
|
animated: S,
|
|
816
823
|
tabPosition: R,
|
|
817
824
|
rtl: g,
|
|
818
|
-
mobile:
|
|
825
|
+
mobile: v
|
|
819
826
|
}, $e = ne(ne({}, oe), {}, {
|
|
820
827
|
editable: m,
|
|
821
828
|
locale: h,
|
|
@@ -835,13 +842,13 @@ var Va = ["id", "prefixCls", "className", "items", "direction", "activeKey", "de
|
|
|
835
842
|
tabs: y,
|
|
836
843
|
prefixCls: r
|
|
837
844
|
}
|
|
838
|
-
}, /* @__PURE__ */ c.createElement("div",
|
|
845
|
+
}, /* @__PURE__ */ c.createElement("div", ve({
|
|
839
846
|
ref: t,
|
|
840
847
|
id: a,
|
|
841
|
-
className: J(r, "".concat(r, "-").concat(R), Y(Y(Y({}, "".concat(r, "-mobile"),
|
|
842
|
-
},
|
|
848
|
+
className: J(r, "".concat(r, "-").concat(R), Y(Y(Y({}, "".concat(r, "-mobile"), v), "".concat(r, "-editable"), m), "".concat(r, "-rtl"), g), o)
|
|
849
|
+
}, f), /* @__PURE__ */ c.createElement(Dt, ve({}, $e, {
|
|
843
850
|
renderTabBar: B
|
|
844
|
-
})), /* @__PURE__ */ c.createElement(ja,
|
|
851
|
+
})), /* @__PURE__ */ c.createElement(ja, ve({
|
|
845
852
|
destroyInactiveTabPane: P
|
|
846
853
|
}, oe, {
|
|
847
854
|
animated: S
|
|
@@ -881,7 +888,7 @@ function Fa(e) {
|
|
|
881
888
|
return e.filter((t) => t);
|
|
882
889
|
}
|
|
883
890
|
function qa(e, t) {
|
|
884
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
891
|
+
if (process.env.NODE_ENV !== "production" && It("Tabs").deprecated(!t, "Tabs.TabPane", "items"), e)
|
|
885
892
|
return e;
|
|
886
893
|
const a = wa(t).map((n) => {
|
|
887
894
|
if (/* @__PURE__ */ c.isValidElement(n)) {
|
|
@@ -890,10 +897,10 @@ function qa(e, t) {
|
|
|
890
897
|
props: o
|
|
891
898
|
} = n, l = o || {}, {
|
|
892
899
|
tab: i
|
|
893
|
-
} = l,
|
|
900
|
+
} = l, d = Ua(l, ["tab"]);
|
|
894
901
|
return Object.assign(Object.assign({
|
|
895
902
|
key: String(r)
|
|
896
|
-
},
|
|
903
|
+
}, d), {
|
|
897
904
|
label: i
|
|
898
905
|
});
|
|
899
906
|
}
|
|
@@ -1049,7 +1056,7 @@ const Ya = (e) => {
|
|
|
1049
1056
|
dropdownEdgeChildVerticalPadding: n
|
|
1050
1057
|
} = e;
|
|
1051
1058
|
return {
|
|
1052
|
-
[`${t}-dropdown`]: Object.assign(Object.assign({},
|
|
1059
|
+
[`${t}-dropdown`]: Object.assign(Object.assign({}, Pt(e)), {
|
|
1053
1060
|
position: "absolute",
|
|
1054
1061
|
top: -9999,
|
|
1055
1062
|
left: {
|
|
@@ -1404,10 +1411,10 @@ const Ya = (e) => {
|
|
|
1404
1411
|
tabsHorizontalItemMargin: o,
|
|
1405
1412
|
horizontalItemPadding: l,
|
|
1406
1413
|
itemSelectedColor: i,
|
|
1407
|
-
itemColor:
|
|
1408
|
-
} = e,
|
|
1414
|
+
itemColor: d
|
|
1415
|
+
} = e, s = `${t}-tab`;
|
|
1409
1416
|
return {
|
|
1410
|
-
[
|
|
1417
|
+
[s]: {
|
|
1411
1418
|
position: "relative",
|
|
1412
1419
|
WebkitTouchCallout: "none",
|
|
1413
1420
|
WebkitTapHighlightColor: "transparent",
|
|
@@ -1419,7 +1426,7 @@ const Ya = (e) => {
|
|
|
1419
1426
|
border: 0,
|
|
1420
1427
|
outline: "none",
|
|
1421
1428
|
cursor: "pointer",
|
|
1422
|
-
color:
|
|
1429
|
+
color: d,
|
|
1423
1430
|
"&-btn, &-remove": {
|
|
1424
1431
|
"&:focus:not(:focus-visible), &:active": {
|
|
1425
1432
|
color: a
|
|
@@ -1428,7 +1435,7 @@ const Ya = (e) => {
|
|
|
1428
1435
|
"&-btn": {
|
|
1429
1436
|
outline: "none",
|
|
1430
1437
|
transition: `all ${e.motionDurationSlow}`,
|
|
1431
|
-
[`${
|
|
1438
|
+
[`${s}-icon:not(:last-child)`]: {
|
|
1432
1439
|
marginInlineEnd: e.marginSM
|
|
1433
1440
|
}
|
|
1434
1441
|
},
|
|
@@ -1456,21 +1463,21 @@ const Ya = (e) => {
|
|
|
1456
1463
|
"&:hover": {
|
|
1457
1464
|
color: n
|
|
1458
1465
|
},
|
|
1459
|
-
[`&${
|
|
1466
|
+
[`&${s}-active ${s}-btn`]: {
|
|
1460
1467
|
color: i,
|
|
1461
1468
|
textShadow: e.tabsActiveTextShadow
|
|
1462
1469
|
},
|
|
1463
|
-
[`&${
|
|
1464
|
-
[`&${
|
|
1470
|
+
[`&${s}-focus ${s}-btn`]: Object.assign({}, Rt(e)),
|
|
1471
|
+
[`&${s}-disabled`]: {
|
|
1465
1472
|
color: e.colorTextDisabled,
|
|
1466
1473
|
cursor: "not-allowed"
|
|
1467
1474
|
},
|
|
1468
|
-
[`&${
|
|
1475
|
+
[`&${s}-disabled ${s}-btn, &${s}-disabled ${t}-remove`]: {
|
|
1469
1476
|
"&:focus, &:active": {
|
|
1470
1477
|
color: e.colorTextDisabled
|
|
1471
1478
|
}
|
|
1472
1479
|
},
|
|
1473
|
-
[`& ${
|
|
1480
|
+
[`& ${s}-remove ${r}`]: {
|
|
1474
1481
|
margin: 0
|
|
1475
1482
|
},
|
|
1476
1483
|
[`${r}:not(:last-child)`]: {
|
|
@@ -1480,7 +1487,7 @@ const Ya = (e) => {
|
|
|
1480
1487
|
}
|
|
1481
1488
|
}
|
|
1482
1489
|
},
|
|
1483
|
-
[`${
|
|
1490
|
+
[`${s} + ${s}`]: {
|
|
1484
1491
|
margin: {
|
|
1485
1492
|
_skip_check_: !0,
|
|
1486
1493
|
value: o
|
|
@@ -1590,7 +1597,7 @@ const Ya = (e) => {
|
|
|
1590
1597
|
colorBorderSecondary: i
|
|
1591
1598
|
} = e;
|
|
1592
1599
|
return {
|
|
1593
|
-
[t]: Object.assign(Object.assign(Object.assign(Object.assign({},
|
|
1600
|
+
[t]: Object.assign(Object.assign(Object.assign(Object.assign({}, Pt(e)), {
|
|
1594
1601
|
display: "flex",
|
|
1595
1602
|
// ========================== Navigation ==========================
|
|
1596
1603
|
[`> ${t}-nav, > div > ${t}-nav`]: {
|
|
@@ -1765,7 +1772,7 @@ var ln = function(e, t) {
|
|
|
1765
1772
|
return a;
|
|
1766
1773
|
};
|
|
1767
1774
|
const kt = (e) => {
|
|
1768
|
-
var t, a, n, r, o, l, i,
|
|
1775
|
+
var t, a, n, r, o, l, i, d, s, m, b;
|
|
1769
1776
|
const {
|
|
1770
1777
|
type: _,
|
|
1771
1778
|
className: R,
|
|
@@ -1782,42 +1789,42 @@ const kt = (e) => {
|
|
|
1782
1789
|
children: L,
|
|
1783
1790
|
items: x,
|
|
1784
1791
|
animated: E,
|
|
1785
|
-
style:
|
|
1792
|
+
style: f,
|
|
1786
1793
|
indicatorSize: y,
|
|
1787
1794
|
indicator: g
|
|
1788
1795
|
} = e, S = ln(e, ["type", "className", "rootClassName", "size", "onEdit", "hideAdd", "centered", "addIcon", "removeIcon", "moreIcon", "more", "popupClassName", "children", "items", "animated", "style", "indicatorSize", "indicator"]), {
|
|
1789
1796
|
prefixCls: K
|
|
1790
1797
|
} = S, {
|
|
1791
1798
|
direction: X,
|
|
1792
|
-
tabs:
|
|
1799
|
+
tabs: v,
|
|
1793
1800
|
getPrefixCls: F,
|
|
1794
|
-
getPopupContainer:
|
|
1795
|
-
} = c.useContext(Sa), G = F("tabs", K), Q = _a(G), [
|
|
1801
|
+
getPopupContainer: se
|
|
1802
|
+
} = c.useContext(Sa), G = F("tabs", K), Q = _a(G), [fe, w, k] = on(G, Q);
|
|
1796
1803
|
let V;
|
|
1797
1804
|
_ === "editable-card" && (V = {
|
|
1798
1805
|
onEdit: (oe, $e) => {
|
|
1799
1806
|
let {
|
|
1800
1807
|
key: N,
|
|
1801
|
-
event:
|
|
1808
|
+
event: de
|
|
1802
1809
|
} = $e;
|
|
1803
|
-
z == null || z(oe === "add" ?
|
|
1810
|
+
z == null || z(oe === "add" ? de : N, oe);
|
|
1804
1811
|
},
|
|
1805
|
-
removeIcon: (t = B ?? (
|
|
1806
|
-
addIcon: (P ?? (
|
|
1812
|
+
removeIcon: (t = B ?? (v == null ? void 0 : v.removeIcon)) !== null && t !== void 0 ? t : /* @__PURE__ */ c.createElement(oa, null),
|
|
1813
|
+
addIcon: (P ?? (v == null ? void 0 : v.addIcon)) || /* @__PURE__ */ c.createElement(Nt, null),
|
|
1807
1814
|
showAdd: h !== !0
|
|
1808
1815
|
});
|
|
1809
1816
|
const q = F();
|
|
1810
1817
|
if (process.env.NODE_ENV !== "production") {
|
|
1811
|
-
const oe =
|
|
1812
|
-
process.env.NODE_ENV !== "production" && oe(!("onPrevClick" in e) && !("onNextClick" in e), "breaking", "`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."), process.env.NODE_ENV !== "production" && oe(!(y ||
|
|
1818
|
+
const oe = It("Tabs");
|
|
1819
|
+
process.env.NODE_ENV !== "production" && oe(!("onPrevClick" in e) && !("onNextClick" in e), "breaking", "`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."), process.env.NODE_ENV !== "production" && oe(!(y || v != null && v.indicatorSize), "deprecated", "`indicatorSize` has been deprecated. Please use `indicator={{ size: ... }}` instead.");
|
|
1813
1820
|
}
|
|
1814
|
-
const Z = xa(C), re = qa(x, L), ee = Xa(G, E), he = Object.assign(Object.assign({},
|
|
1815
|
-
align: (a = g == null ? void 0 : g.align) !== null && a !== void 0 ? a : (n =
|
|
1816
|
-
size: (i = (o = (r = g == null ? void 0 : g.size) !== null && r !== void 0 ? r : y) !== null && o !== void 0 ? o : (l =
|
|
1821
|
+
const Z = xa(C), re = qa(x, L), ee = Xa(G, E), he = Object.assign(Object.assign({}, v == null ? void 0 : v.style), f), be = {
|
|
1822
|
+
align: (a = g == null ? void 0 : g.align) !== null && a !== void 0 ? a : (n = v == null ? void 0 : v.indicator) === null || n === void 0 ? void 0 : n.align,
|
|
1823
|
+
size: (i = (o = (r = g == null ? void 0 : g.size) !== null && r !== void 0 ? r : y) !== null && o !== void 0 ? o : (l = v == null ? void 0 : v.indicator) === null || l === void 0 ? void 0 : l.size) !== null && i !== void 0 ? i : v == null ? void 0 : v.indicatorSize
|
|
1817
1824
|
};
|
|
1818
|
-
return
|
|
1825
|
+
return fe(/* @__PURE__ */ c.createElement(Ot, Object.assign({
|
|
1819
1826
|
direction: X,
|
|
1820
|
-
getPopupContainer:
|
|
1827
|
+
getPopupContainer: se
|
|
1821
1828
|
}, S, {
|
|
1822
1829
|
items: re,
|
|
1823
1830
|
className: J({
|
|
@@ -1825,12 +1832,12 @@ const kt = (e) => {
|
|
|
1825
1832
|
[`${G}-card`]: ["card", "editable-card"].includes(_),
|
|
1826
1833
|
[`${G}-editable-card`]: _ === "editable-card",
|
|
1827
1834
|
[`${G}-centered`]: p
|
|
1828
|
-
},
|
|
1835
|
+
}, v == null ? void 0 : v.className, R, O, w, k, Q),
|
|
1829
1836
|
popupClassName: J(H, w, k, Q),
|
|
1830
1837
|
style: he,
|
|
1831
1838
|
editable: V,
|
|
1832
1839
|
more: Object.assign({
|
|
1833
|
-
icon: (b = (m = (
|
|
1840
|
+
icon: (b = (m = (s = (d = v == null ? void 0 : v.more) === null || d === void 0 ? void 0 : d.icon) !== null && s !== void 0 ? s : v == null ? void 0 : v.moreIcon) !== null && m !== void 0 ? m : A) !== null && b !== void 0 ? b : /* @__PURE__ */ c.createElement(da, null),
|
|
1834
1841
|
transitionName: `${q}-slide-up`
|
|
1835
1842
|
}, W),
|
|
1836
1843
|
prefixCls: G,
|