@gobolt/genesis 0.1.1 → 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 +8 -8
- 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-BjIR5S0o.js +0 -24731
- 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,47 +1,47 @@
|
|
|
1
1
|
import * as r from "react";
|
|
2
|
-
import { useRef as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { I as
|
|
6
|
-
import { R as
|
|
7
|
-
import { t as Me } from "./toArray-
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import "./
|
|
17
|
-
import { g as
|
|
18
|
-
import { R as
|
|
19
|
-
import { R as
|
|
20
|
-
function
|
|
2
|
+
import { useRef as at, useEffect as ct, useMemo as dt, isValidElement as pt } from "react";
|
|
3
|
+
import { d as Y } from "./index-DCopujxC.js";
|
|
4
|
+
import { e as ge, o as ut, c as Z } from "./presets-CSXMiWyc.js";
|
|
5
|
+
import { I as ye } from "./AntdIcon-DP6hPDqu.js";
|
|
6
|
+
import { R as ft } from "./index-CzMIlMTV.js";
|
|
7
|
+
import { t as Me } from "./toArray-D5kvYi_U.js";
|
|
8
|
+
import { a0 as ke, f as mt, g as gt, a as yt, l as bt, q as Pe, h as W, n as vt, C as Et } from "./CSSMotionList-DB0khM6h.js";
|
|
9
|
+
import { u as Re } from "./useMergedState-D1-TbeEv.js";
|
|
10
|
+
import { o as Ae } from "./omit-B_u6A-HL.js";
|
|
11
|
+
import { i as Te } from "./styleChecker-CSH9LQtm.js";
|
|
12
|
+
import { u as ht } from "./useLocale-BQ3mKRyJ.js";
|
|
13
|
+
import { T as be } from "./index-Y0KgiFZb.js";
|
|
14
|
+
import { K as Ne } from "./KeyCode-B3vHb2gY.js";
|
|
15
|
+
import { c as xt } from "./reactNode-sKPeiqPL.js";
|
|
16
|
+
import { T as Ct } from "./TextArea-CHo3cxKw.js";
|
|
17
|
+
import { g as St } from "./_commonjsHelpers-B4e78b8K.js";
|
|
18
|
+
import { R as Ot } from "./CheckOutlined-DTEHi_xG.js";
|
|
19
|
+
import { R as wt } from "./LoadingOutlined-DOi5EGOl.js";
|
|
20
|
+
function Rt(e) {
|
|
21
21
|
return (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1) && e == null ? [] : Array.isArray(e) ? e : [e];
|
|
22
22
|
}
|
|
23
|
-
var
|
|
24
|
-
return /* @__PURE__ */ r.createElement(
|
|
23
|
+
var Tt = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z" } }] }, name: "copy", theme: "outlined" }, Nt = function(t, o) {
|
|
24
|
+
return /* @__PURE__ */ r.createElement(ye, ge({}, t, {
|
|
25
25
|
ref: o,
|
|
26
|
-
icon:
|
|
26
|
+
icon: Tt
|
|
27
27
|
}));
|
|
28
|
-
},
|
|
29
|
-
process.env.NODE_ENV !== "production" && (
|
|
30
|
-
var
|
|
31
|
-
return /* @__PURE__ */ r.createElement(
|
|
28
|
+
}, He = /* @__PURE__ */ r.forwardRef(Nt);
|
|
29
|
+
process.env.NODE_ENV !== "production" && (He.displayName = "CopyOutlined");
|
|
30
|
+
var jt = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z" } }] }, name: "edit", theme: "outlined" }, _t = function(t, o) {
|
|
31
|
+
return /* @__PURE__ */ r.createElement(ye, ge({}, t, {
|
|
32
32
|
ref: o,
|
|
33
|
-
icon:
|
|
33
|
+
icon: jt
|
|
34
34
|
}));
|
|
35
|
-
},
|
|
36
|
-
process.env.NODE_ENV !== "production" && (
|
|
37
|
-
var
|
|
38
|
-
return /* @__PURE__ */ r.createElement(
|
|
35
|
+
}, ze = /* @__PURE__ */ r.forwardRef(_t);
|
|
36
|
+
process.env.NODE_ENV !== "production" && (ze.displayName = "EditOutlined");
|
|
37
|
+
var It = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z" } }] }, name: "enter", theme: "outlined" }, $t = function(t, o) {
|
|
38
|
+
return /* @__PURE__ */ r.createElement(ye, ge({}, t, {
|
|
39
39
|
ref: o,
|
|
40
|
-
icon:
|
|
40
|
+
icon: It
|
|
41
41
|
}));
|
|
42
|
-
},
|
|
43
|
-
process.env.NODE_ENV !== "production" && (
|
|
44
|
-
const
|
|
42
|
+
}, Be = /* @__PURE__ */ r.forwardRef($t);
|
|
43
|
+
process.env.NODE_ENV !== "production" && (Be.displayName = "EnterOutlined");
|
|
44
|
+
const Dt = (e, t, o, n) => {
|
|
45
45
|
const {
|
|
46
46
|
titleMarginBottom: i,
|
|
47
47
|
fontWeightStrong: s
|
|
@@ -53,7 +53,7 @@ const Nt = (e, t, o, n) => {
|
|
|
53
53
|
fontSize: e,
|
|
54
54
|
lineHeight: t
|
|
55
55
|
};
|
|
56
|
-
},
|
|
56
|
+
}, Lt = (e) => {
|
|
57
57
|
const t = [1, 2, 3, 4, 5], o = {};
|
|
58
58
|
return t.forEach((n) => {
|
|
59
59
|
o[`
|
|
@@ -61,14 +61,14 @@ const Nt = (e, t, o, n) => {
|
|
|
61
61
|
div&-h${n},
|
|
62
62
|
div&-h${n} > textarea,
|
|
63
63
|
h${n}
|
|
64
|
-
`] =
|
|
64
|
+
`] = Dt(e[`fontSizeHeading${n}`], e[`lineHeightHeading${n}`], e.colorTextHeading, e);
|
|
65
65
|
}), o;
|
|
66
|
-
},
|
|
66
|
+
}, Mt = (e) => {
|
|
67
67
|
const {
|
|
68
68
|
componentCls: t
|
|
69
69
|
} = e;
|
|
70
70
|
return {
|
|
71
|
-
"a&, a": Object.assign(Object.assign({},
|
|
71
|
+
"a&, a": Object.assign(Object.assign({}, ke(e)), {
|
|
72
72
|
userSelect: "text",
|
|
73
73
|
[`&[disabled], &${t}-disabled`]: {
|
|
74
74
|
color: e.colorTextDisabled,
|
|
@@ -82,7 +82,7 @@ const Nt = (e, t, o, n) => {
|
|
|
82
82
|
}
|
|
83
83
|
})
|
|
84
84
|
};
|
|
85
|
-
},
|
|
85
|
+
}, kt = (e) => ({
|
|
86
86
|
code: {
|
|
87
87
|
margin: "0 0.2em",
|
|
88
88
|
paddingInline: "0.4em",
|
|
@@ -107,7 +107,7 @@ const Nt = (e, t, o, n) => {
|
|
|
107
107
|
mark: {
|
|
108
108
|
padding: 0,
|
|
109
109
|
// FIXME hardcode in v4
|
|
110
|
-
backgroundColor:
|
|
110
|
+
backgroundColor: ut[2]
|
|
111
111
|
},
|
|
112
112
|
"u, ins": {
|
|
113
113
|
textDecoration: "underline",
|
|
@@ -169,7 +169,7 @@ const Nt = (e, t, o, n) => {
|
|
|
169
169
|
borderInlineStart: "4px solid rgba(100, 100, 100, 0.2)",
|
|
170
170
|
opacity: 0.85
|
|
171
171
|
}
|
|
172
|
-
}),
|
|
172
|
+
}), Pt = (e) => {
|
|
173
173
|
const {
|
|
174
174
|
componentCls: t,
|
|
175
175
|
paddingSM: o
|
|
@@ -180,7 +180,7 @@ const Nt = (e, t, o, n) => {
|
|
|
180
180
|
"div&": {
|
|
181
181
|
insetInlineStart: e.calc(e.paddingSM).mul(-1).equal(),
|
|
182
182
|
marginTop: e.calc(n).mul(-1).equal(),
|
|
183
|
-
marginBottom: `calc(1em - ${
|
|
183
|
+
marginBottom: `calc(1em - ${mt(n)})`
|
|
184
184
|
},
|
|
185
185
|
[`${t}-edit-content-confirm`]: {
|
|
186
186
|
position: "absolute",
|
|
@@ -201,7 +201,7 @@ const Nt = (e, t, o, n) => {
|
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
203
|
};
|
|
204
|
-
},
|
|
204
|
+
}, At = (e) => ({
|
|
205
205
|
[`${e.componentCls}-copy-success`]: {
|
|
206
206
|
"\n &,\n &:hover,\n &:focus": {
|
|
207
207
|
color: e.colorSuccess
|
|
@@ -210,7 +210,7 @@ const Nt = (e, t, o, n) => {
|
|
|
210
210
|
[`${e.componentCls}-copy-icon-only`]: {
|
|
211
211
|
marginInlineStart: 0
|
|
212
212
|
}
|
|
213
|
-
}),
|
|
213
|
+
}), Ht = () => ({
|
|
214
214
|
"\n a&-ellipsis,\n span&-ellipsis\n ": {
|
|
215
215
|
display: "inline-block",
|
|
216
216
|
maxWidth: "100%"
|
|
@@ -240,7 +240,7 @@ const Nt = (e, t, o, n) => {
|
|
|
240
240
|
WebkitLineClamp: 3,
|
|
241
241
|
WebkitBoxOrient: "vertical"
|
|
242
242
|
}
|
|
243
|
-
}),
|
|
243
|
+
}), zt = (e) => {
|
|
244
244
|
const {
|
|
245
245
|
componentCls: t,
|
|
246
246
|
titleMarginTop: o
|
|
@@ -276,7 +276,7 @@ const Nt = (e, t, o, n) => {
|
|
|
276
276
|
"\n div&,\n p\n ": {
|
|
277
277
|
marginBottom: "1em"
|
|
278
278
|
}
|
|
279
|
-
},
|
|
279
|
+
}, Lt(e)), {
|
|
280
280
|
[`
|
|
281
281
|
& + h1${t},
|
|
282
282
|
& + h2${t},
|
|
@@ -291,54 +291,54 @@ const Nt = (e, t, o, n) => {
|
|
|
291
291
|
marginTop: o
|
|
292
292
|
}
|
|
293
293
|
}
|
|
294
|
-
}),
|
|
294
|
+
}), kt(e)), Mt(e)), {
|
|
295
295
|
// Operation
|
|
296
296
|
[`
|
|
297
297
|
${t}-expand,
|
|
298
298
|
${t}-collapse,
|
|
299
299
|
${t}-edit,
|
|
300
300
|
${t}-copy
|
|
301
|
-
`]: Object.assign(Object.assign({},
|
|
301
|
+
`]: Object.assign(Object.assign({}, ke(e)), {
|
|
302
302
|
marginInlineStart: e.marginXXS
|
|
303
303
|
})
|
|
304
|
-
}),
|
|
304
|
+
}), Pt(e)), At(e)), Ht()), {
|
|
305
305
|
"&-rtl": {
|
|
306
306
|
direction: "rtl"
|
|
307
307
|
}
|
|
308
308
|
})
|
|
309
309
|
};
|
|
310
|
-
},
|
|
310
|
+
}, Bt = () => ({
|
|
311
311
|
titleMarginTop: "1.2em",
|
|
312
312
|
titleMarginBottom: "0.5em"
|
|
313
|
-
}),
|
|
313
|
+
}), Ve = gt("Typography", (e) => [zt(e)], Bt), Vt = (e) => {
|
|
314
314
|
const {
|
|
315
315
|
prefixCls: t,
|
|
316
316
|
"aria-label": o,
|
|
317
317
|
className: n,
|
|
318
318
|
style: i,
|
|
319
319
|
direction: s,
|
|
320
|
-
maxLength:
|
|
321
|
-
autoSize:
|
|
320
|
+
maxLength: c,
|
|
321
|
+
autoSize: g = !0,
|
|
322
322
|
value: d,
|
|
323
|
-
onSave:
|
|
324
|
-
onCancel:
|
|
325
|
-
onEnd:
|
|
326
|
-
component:
|
|
327
|
-
enterIcon:
|
|
328
|
-
} = e,
|
|
323
|
+
onSave: u,
|
|
324
|
+
onCancel: f,
|
|
325
|
+
onEnd: p,
|
|
326
|
+
component: l,
|
|
327
|
+
enterIcon: x = /* @__PURE__ */ r.createElement(Be, null)
|
|
328
|
+
} = e, O = r.useRef(null), y = r.useRef(!1), S = r.useRef(null), [b, I] = r.useState(d);
|
|
329
329
|
r.useEffect(() => {
|
|
330
330
|
I(d);
|
|
331
331
|
}, [d]), r.useEffect(() => {
|
|
332
332
|
var E;
|
|
333
|
-
if (!((E =
|
|
333
|
+
if (!((E = O.current) === null || E === void 0) && E.resizableTextArea) {
|
|
334
334
|
const {
|
|
335
335
|
textArea: h
|
|
336
|
-
} =
|
|
336
|
+
} = O.current.resizableTextArea;
|
|
337
337
|
h.focus();
|
|
338
338
|
const {
|
|
339
|
-
length:
|
|
339
|
+
length: C
|
|
340
340
|
} = h.value;
|
|
341
|
-
h.setSelectionRange(
|
|
341
|
+
h.setSelectionRange(C, C);
|
|
342
342
|
}
|
|
343
343
|
}, []);
|
|
344
344
|
const H = (E) => {
|
|
@@ -346,231 +346,243 @@ const Nt = (e, t, o, n) => {
|
|
|
346
346
|
target: h
|
|
347
347
|
} = E;
|
|
348
348
|
I(h.value.replace(/[\n\r]/g, ""));
|
|
349
|
-
}, O = () => {
|
|
350
|
-
S.current = !0;
|
|
351
349
|
}, w = () => {
|
|
352
|
-
|
|
353
|
-
},
|
|
350
|
+
y.current = !0;
|
|
351
|
+
}, R = () => {
|
|
352
|
+
y.current = !1;
|
|
353
|
+
}, j = (E) => {
|
|
354
354
|
let {
|
|
355
355
|
keyCode: h
|
|
356
356
|
} = E;
|
|
357
|
-
|
|
357
|
+
y.current || (S.current = h);
|
|
358
358
|
}, v = () => {
|
|
359
|
-
|
|
359
|
+
u(b.trim());
|
|
360
360
|
}, z = (E) => {
|
|
361
361
|
let {
|
|
362
362
|
keyCode: h,
|
|
363
|
-
ctrlKey:
|
|
363
|
+
ctrlKey: C,
|
|
364
364
|
altKey: P,
|
|
365
|
-
metaKey:
|
|
365
|
+
metaKey: N,
|
|
366
366
|
shiftKey: $
|
|
367
367
|
} = E;
|
|
368
|
-
|
|
368
|
+
S.current !== h || y.current || C || P || N || $ || (h === Ne.ENTER ? (v(), p == null || p()) : h === Ne.ESC && f());
|
|
369
369
|
}, U = () => {
|
|
370
370
|
v();
|
|
371
|
-
}, [V, M, F] =
|
|
371
|
+
}, [V, M, F] = Ve(t), k = Z(t, `${t}-edit-content`, {
|
|
372
372
|
[`${t}-rtl`]: s === "rtl",
|
|
373
|
-
[`${t}-${
|
|
373
|
+
[`${t}-${l}`]: !!l
|
|
374
374
|
}, n, M, F);
|
|
375
375
|
return V(/* @__PURE__ */ r.createElement("div", {
|
|
376
376
|
className: k,
|
|
377
377
|
style: i
|
|
378
|
-
}, /* @__PURE__ */ r.createElement(
|
|
379
|
-
ref:
|
|
380
|
-
maxLength:
|
|
381
|
-
value:
|
|
378
|
+
}, /* @__PURE__ */ r.createElement(Ct, {
|
|
379
|
+
ref: O,
|
|
380
|
+
maxLength: c,
|
|
381
|
+
value: b,
|
|
382
382
|
onChange: H,
|
|
383
|
-
onKeyDown:
|
|
383
|
+
onKeyDown: j,
|
|
384
384
|
onKeyUp: z,
|
|
385
|
-
onCompositionStart:
|
|
386
|
-
onCompositionEnd:
|
|
385
|
+
onCompositionStart: w,
|
|
386
|
+
onCompositionEnd: R,
|
|
387
387
|
onBlur: U,
|
|
388
388
|
"aria-label": o,
|
|
389
389
|
rows: 1,
|
|
390
|
-
autoSize:
|
|
391
|
-
}),
|
|
390
|
+
autoSize: g
|
|
391
|
+
}), x !== null ? xt(x, {
|
|
392
392
|
className: `${t}-edit-content-confirm`
|
|
393
393
|
}) : null));
|
|
394
394
|
};
|
|
395
|
-
var
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
395
|
+
var le, je;
|
|
396
|
+
function Wt() {
|
|
397
|
+
return je || (je = 1, le = function() {
|
|
398
|
+
var e = document.getSelection();
|
|
399
|
+
if (!e.rangeCount)
|
|
400
|
+
return function() {
|
|
401
|
+
};
|
|
402
|
+
for (var t = document.activeElement, o = [], n = 0; n < e.rangeCount; n++)
|
|
403
|
+
o.push(e.getRangeAt(n));
|
|
404
|
+
switch (t.tagName.toUpperCase()) {
|
|
405
|
+
// .toUpperCase handles XHTML
|
|
406
|
+
case "INPUT":
|
|
407
|
+
case "TEXTAREA":
|
|
408
|
+
t.blur();
|
|
409
|
+
break;
|
|
410
|
+
default:
|
|
411
|
+
t = null;
|
|
412
|
+
break;
|
|
413
|
+
}
|
|
414
|
+
return e.removeAllRanges(), function() {
|
|
415
|
+
e.type === "Caret" && e.removeAllRanges(), e.rangeCount || o.forEach(function(i) {
|
|
416
|
+
e.addRange(i);
|
|
417
|
+
}), t && t.focus();
|
|
399
418
|
};
|
|
400
|
-
|
|
401
|
-
o.push(e.getRangeAt(n));
|
|
402
|
-
switch (t.tagName.toUpperCase()) {
|
|
403
|
-
case "INPUT":
|
|
404
|
-
case "TEXTAREA":
|
|
405
|
-
t.blur();
|
|
406
|
-
break;
|
|
407
|
-
default:
|
|
408
|
-
t = null;
|
|
409
|
-
break;
|
|
410
|
-
}
|
|
411
|
-
return e.removeAllRanges(), function() {
|
|
412
|
-
e.type === "Caret" && e.removeAllRanges(), e.rangeCount || o.forEach(function(i) {
|
|
413
|
-
e.addRange(i);
|
|
414
|
-
}), t && t.focus();
|
|
415
|
-
};
|
|
416
|
-
}, zt = Ht, Te = {
|
|
417
|
-
"text/plain": "Text",
|
|
418
|
-
"text/html": "Url",
|
|
419
|
-
default: "Text"
|
|
420
|
-
}, Bt = "Copy to clipboard: #{key}, Enter";
|
|
421
|
-
function Vt(e) {
|
|
422
|
-
var t = (/mac os x/i.test(navigator.userAgent) ? "⌘" : "Ctrl") + "+C";
|
|
423
|
-
return e.replace(/#{\s*key\s*}/g, t);
|
|
419
|
+
}), le;
|
|
424
420
|
}
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
var f =
|
|
440
|
-
|
|
441
|
-
throw new Error("copy command was unsuccessful");
|
|
442
|
-
d = !0;
|
|
443
|
-
} catch (a) {
|
|
444
|
-
o && console.error("unable to copy using execCommand: ", a), o && console.warn("trying IE specific stuff");
|
|
421
|
+
var ae, _e;
|
|
422
|
+
function Ut() {
|
|
423
|
+
if (_e) return ae;
|
|
424
|
+
_e = 1;
|
|
425
|
+
var e = Wt(), t = {
|
|
426
|
+
"text/plain": "Text",
|
|
427
|
+
"text/html": "Url",
|
|
428
|
+
default: "Text"
|
|
429
|
+
}, o = "Copy to clipboard: #{key}, Enter";
|
|
430
|
+
function n(s) {
|
|
431
|
+
var c = (/mac os x/i.test(navigator.userAgent) ? "⌘" : "Ctrl") + "+C";
|
|
432
|
+
return s.replace(/#{\s*key\s*}/g, c);
|
|
433
|
+
}
|
|
434
|
+
function i(s, c) {
|
|
435
|
+
var g, d, u, f, p, l, x = !1;
|
|
436
|
+
c || (c = {}), g = c.debug || !1;
|
|
445
437
|
try {
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
438
|
+
u = e(), f = document.createRange(), p = document.getSelection(), l = document.createElement("span"), l.textContent = s, l.ariaHidden = "true", l.style.all = "unset", l.style.position = "fixed", l.style.top = 0, l.style.clip = "rect(0, 0, 0, 0)", l.style.whiteSpace = "pre", l.style.webkitUserSelect = "text", l.style.MozUserSelect = "text", l.style.msUserSelect = "text", l.style.userSelect = "text", l.addEventListener("copy", function(y) {
|
|
439
|
+
if (y.stopPropagation(), c.format)
|
|
440
|
+
if (y.preventDefault(), typeof y.clipboardData > "u") {
|
|
441
|
+
g && console.warn("unable to use e.clipboardData"), g && console.warn("trying IE specific stuff"), window.clipboardData.clearData();
|
|
442
|
+
var S = t[c.format] || t.default;
|
|
443
|
+
window.clipboardData.setData(S, s);
|
|
444
|
+
} else
|
|
445
|
+
y.clipboardData.clearData(), y.clipboardData.setData(c.format, s);
|
|
446
|
+
c.onCopy && (y.preventDefault(), c.onCopy(y.clipboardData));
|
|
447
|
+
}), document.body.appendChild(l), f.selectNodeContents(l), p.addRange(f);
|
|
448
|
+
var O = document.execCommand("copy");
|
|
449
|
+
if (!O)
|
|
450
|
+
throw new Error("copy command was unsuccessful");
|
|
451
|
+
x = !0;
|
|
452
|
+
} catch (y) {
|
|
453
|
+
g && console.error("unable to copy using execCommand: ", y), g && console.warn("trying IE specific stuff");
|
|
454
|
+
try {
|
|
455
|
+
window.clipboardData.setData(c.format || "text", s), c.onCopy && c.onCopy(window.clipboardData), x = !0;
|
|
456
|
+
} catch (S) {
|
|
457
|
+
g && console.error("unable to copy using clipboardData: ", S), g && console.error("falling back to prompt"), d = n("message" in c ? c.message : o), window.prompt(d, s);
|
|
458
|
+
}
|
|
459
|
+
} finally {
|
|
460
|
+
p && (typeof p.removeRange == "function" ? p.removeRange(f) : p.removeAllRanges()), l && document.body.removeChild(l), u();
|
|
449
461
|
}
|
|
450
|
-
|
|
451
|
-
u && (typeof u.removeRange == "function" ? u.removeRange(s) : u.removeAllRanges()), c && document.body.removeChild(c), i();
|
|
462
|
+
return x;
|
|
452
463
|
}
|
|
453
|
-
return
|
|
464
|
+
return ae = i, ae;
|
|
454
465
|
}
|
|
455
|
-
var
|
|
456
|
-
const
|
|
457
|
-
var
|
|
466
|
+
var Ft = Ut();
|
|
467
|
+
const Kt = /* @__PURE__ */ St(Ft);
|
|
468
|
+
var qt = function(e, t, o, n) {
|
|
458
469
|
function i(s) {
|
|
459
|
-
return s instanceof o ? s : new o(function(
|
|
460
|
-
|
|
470
|
+
return s instanceof o ? s : new o(function(c) {
|
|
471
|
+
c(s);
|
|
461
472
|
});
|
|
462
473
|
}
|
|
463
|
-
return new (o || (o = Promise))(function(s,
|
|
464
|
-
function
|
|
474
|
+
return new (o || (o = Promise))(function(s, c) {
|
|
475
|
+
function g(f) {
|
|
465
476
|
try {
|
|
466
|
-
|
|
467
|
-
} catch (
|
|
468
|
-
|
|
477
|
+
u(n.next(f));
|
|
478
|
+
} catch (p) {
|
|
479
|
+
c(p);
|
|
469
480
|
}
|
|
470
481
|
}
|
|
471
|
-
function d(
|
|
482
|
+
function d(f) {
|
|
472
483
|
try {
|
|
473
|
-
|
|
474
|
-
} catch (
|
|
475
|
-
|
|
484
|
+
u(n.throw(f));
|
|
485
|
+
} catch (p) {
|
|
486
|
+
c(p);
|
|
476
487
|
}
|
|
477
488
|
}
|
|
478
|
-
function f
|
|
479
|
-
|
|
489
|
+
function u(f) {
|
|
490
|
+
f.done ? s(f.value) : i(f.value).then(g, d);
|
|
480
491
|
}
|
|
481
|
-
|
|
492
|
+
u((n = n.apply(e, t || [])).next());
|
|
482
493
|
});
|
|
483
494
|
};
|
|
484
|
-
const
|
|
495
|
+
const Xt = (e) => {
|
|
485
496
|
let {
|
|
486
497
|
copyConfig: t,
|
|
487
498
|
children: o
|
|
488
499
|
} = e;
|
|
489
|
-
const [n, i] = r.useState(!1), [s,
|
|
490
|
-
|
|
491
|
-
},
|
|
492
|
-
t.format && (
|
|
493
|
-
const
|
|
494
|
-
var
|
|
495
|
-
|
|
500
|
+
const [n, i] = r.useState(!1), [s, c] = r.useState(!1), g = r.useRef(null), d = () => {
|
|
501
|
+
g.current && clearTimeout(g.current);
|
|
502
|
+
}, u = {};
|
|
503
|
+
t.format && (u.format = t.format), r.useEffect(() => d, []);
|
|
504
|
+
const f = yt((p) => qt(void 0, void 0, void 0, function* () {
|
|
505
|
+
var l;
|
|
506
|
+
p == null || p.preventDefault(), p == null || p.stopPropagation(), c(!0);
|
|
496
507
|
try {
|
|
497
|
-
const
|
|
498
|
-
|
|
508
|
+
const x = typeof t.text == "function" ? yield t.text() : t.text;
|
|
509
|
+
Kt(x || Rt(o, !0).join("") || "", u), c(!1), i(!0), d(), g.current = setTimeout(() => {
|
|
499
510
|
i(!1);
|
|
500
|
-
}, 3e3), (
|
|
501
|
-
} catch (
|
|
502
|
-
throw
|
|
511
|
+
}, 3e3), (l = t.onCopy) === null || l === void 0 || l.call(t, p);
|
|
512
|
+
} catch (x) {
|
|
513
|
+
throw c(!1), x;
|
|
503
514
|
}
|
|
504
515
|
}));
|
|
505
516
|
return {
|
|
506
517
|
copied: n,
|
|
507
518
|
copyLoading: s,
|
|
508
|
-
onClick:
|
|
519
|
+
onClick: f
|
|
509
520
|
};
|
|
510
521
|
};
|
|
511
|
-
function
|
|
522
|
+
function ce(e, t) {
|
|
512
523
|
return r.useMemo(() => {
|
|
513
524
|
const o = !!e;
|
|
514
525
|
return [o, Object.assign(Object.assign({}, t), o && typeof e == "object" ? e : null)];
|
|
515
526
|
}, [e]);
|
|
516
527
|
}
|
|
517
|
-
const
|
|
518
|
-
const t =
|
|
519
|
-
return
|
|
528
|
+
const Jt = (e) => {
|
|
529
|
+
const t = at(void 0);
|
|
530
|
+
return ct(() => {
|
|
520
531
|
t.current = e;
|
|
521
532
|
}), t.current;
|
|
522
|
-
},
|
|
533
|
+
}, Gt = (e, t, o) => dt(() => e === !0 ? {
|
|
523
534
|
title: t ?? o
|
|
524
|
-
} : /* @__PURE__ */
|
|
535
|
+
} : /* @__PURE__ */ pt(e) ? {
|
|
525
536
|
title: e
|
|
526
537
|
} : typeof e == "object" ? Object.assign({
|
|
527
538
|
title: t ?? o
|
|
528
539
|
}, e) : {
|
|
529
540
|
title: e
|
|
530
541
|
}, [e, t, o]);
|
|
531
|
-
var
|
|
542
|
+
var Qt = function(e, t) {
|
|
532
543
|
var o = {};
|
|
533
544
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
|
|
534
545
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
535
546
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (o[n[i]] = e[n[i]]);
|
|
536
547
|
return o;
|
|
537
548
|
};
|
|
538
|
-
const
|
|
549
|
+
const ve = /* @__PURE__ */ r.forwardRef((e, t) => {
|
|
539
550
|
const {
|
|
540
551
|
prefixCls: o,
|
|
541
552
|
component: n = "article",
|
|
542
553
|
className: i,
|
|
543
554
|
rootClassName: s,
|
|
544
|
-
setContentRef:
|
|
545
|
-
children:
|
|
555
|
+
setContentRef: c,
|
|
556
|
+
children: g,
|
|
546
557
|
direction: d,
|
|
547
|
-
style:
|
|
548
|
-
} = e,
|
|
549
|
-
getPrefixCls:
|
|
550
|
-
direction:
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
+
style: u
|
|
559
|
+
} = e, f = Qt(e, ["prefixCls", "component", "className", "rootClassName", "setContentRef", "children", "direction", "style"]), {
|
|
560
|
+
getPrefixCls: p,
|
|
561
|
+
direction: l,
|
|
562
|
+
className: x,
|
|
563
|
+
style: O
|
|
564
|
+
} = bt("typography"), y = d ?? l, S = c ? Pe(t, c) : t, b = p("typography", o);
|
|
565
|
+
process.env.NODE_ENV !== "production" && Y("Typography").deprecated(!c, "setContentRef", "ref");
|
|
566
|
+
const [I, H, w] = Ve(b), R = Z(b, x, {
|
|
567
|
+
[`${b}-rtl`]: y === "rtl"
|
|
568
|
+
}, i, s, H, w), j = Object.assign(Object.assign({}, O), u);
|
|
569
|
+
return I(
|
|
558
570
|
// @ts-expect-error: Expression produces a union type that is too complex to represent.
|
|
559
571
|
/* @__PURE__ */ r.createElement(n, Object.assign({
|
|
560
|
-
className:
|
|
561
|
-
style:
|
|
572
|
+
className: R,
|
|
573
|
+
style: j,
|
|
562
574
|
ref: S
|
|
563
|
-
},
|
|
575
|
+
}, f), g)
|
|
564
576
|
);
|
|
565
577
|
});
|
|
566
|
-
process.env.NODE_ENV !== "production" && (
|
|
567
|
-
function
|
|
578
|
+
process.env.NODE_ENV !== "production" && (ve.displayName = "Typography");
|
|
579
|
+
function Ie(e) {
|
|
568
580
|
return e === !1 ? [!1, !1] : Array.isArray(e) ? e : [e];
|
|
569
581
|
}
|
|
570
|
-
function
|
|
582
|
+
function de(e, t, o) {
|
|
571
583
|
return e === !0 || e === void 0 ? t : e || o && t;
|
|
572
584
|
}
|
|
573
|
-
function
|
|
585
|
+
function Yt(e) {
|
|
574
586
|
const t = document.createElement("em");
|
|
575
587
|
e.appendChild(t), process.env.NODE_ENV !== "production" && (t.className = "ant-typography-css-ellipsis-content-measure");
|
|
576
588
|
const o = e.getBoundingClientRect(), n = t.getBoundingClientRect();
|
|
@@ -578,24 +590,24 @@ function Qt(e) {
|
|
|
578
590
|
o.left > n.left || n.right > o.right || // Vertical out of range
|
|
579
591
|
o.top > n.top || n.bottom > o.bottom;
|
|
580
592
|
}
|
|
581
|
-
const
|
|
593
|
+
const Ee = (e) => ["string", "number"].includes(typeof e), Zt = (e) => {
|
|
582
594
|
let {
|
|
583
595
|
prefixCls: t,
|
|
584
596
|
copied: o,
|
|
585
597
|
locale: n,
|
|
586
598
|
iconOnly: i,
|
|
587
599
|
tooltips: s,
|
|
588
|
-
icon:
|
|
589
|
-
tabIndex:
|
|
600
|
+
icon: c,
|
|
601
|
+
tabIndex: g,
|
|
590
602
|
onCopy: d,
|
|
591
|
-
loading:
|
|
603
|
+
loading: u
|
|
592
604
|
} = e;
|
|
593
|
-
const
|
|
594
|
-
copied:
|
|
595
|
-
copy:
|
|
596
|
-
} = n ?? {},
|
|
597
|
-
return /* @__PURE__ */ r.createElement(
|
|
598
|
-
title:
|
|
605
|
+
const f = Ie(s), p = Ie(c), {
|
|
606
|
+
copied: l,
|
|
607
|
+
copy: x
|
|
608
|
+
} = n ?? {}, O = o ? l : x, y = de(f[o ? 1 : 0], O), S = typeof y == "string" ? y : O;
|
|
609
|
+
return /* @__PURE__ */ r.createElement(be, {
|
|
610
|
+
title: y
|
|
599
611
|
}, /* @__PURE__ */ r.createElement("button", {
|
|
600
612
|
type: "button",
|
|
601
613
|
className: Z(`${t}-copy`, {
|
|
@@ -603,9 +615,9 @@ const be = (e) => ["string", "number"].includes(typeof e), Yt = (e) => {
|
|
|
603
615
|
[`${t}-copy-icon-only`]: i
|
|
604
616
|
}),
|
|
605
617
|
onClick: d,
|
|
606
|
-
"aria-label":
|
|
607
|
-
tabIndex:
|
|
608
|
-
}, o ?
|
|
618
|
+
"aria-label": S,
|
|
619
|
+
tabIndex: g
|
|
620
|
+
}, o ? de(p[1], /* @__PURE__ */ r.createElement(Ot, null), !0) : de(p[0], u ? /* @__PURE__ */ r.createElement(wt, null) : /* @__PURE__ */ r.createElement(He, null), !0)));
|
|
609
621
|
}, G = /* @__PURE__ */ r.forwardRef((e, t) => {
|
|
610
622
|
let {
|
|
611
623
|
style: o,
|
|
@@ -630,359 +642,359 @@ const be = (e) => ["string", "number"].includes(typeof e), Yt = (e) => {
|
|
|
630
642
|
backgroundColor: "rgba(255, 0, 0, 0.65)"
|
|
631
643
|
}, o)
|
|
632
644
|
}, n);
|
|
633
|
-
}),
|
|
634
|
-
function
|
|
645
|
+
}), en = (e) => e.reduce((t, o) => t + (Ee(o) ? String(o).length : 1), 0);
|
|
646
|
+
function $e(e, t) {
|
|
635
647
|
let o = 0;
|
|
636
648
|
const n = [];
|
|
637
649
|
for (let i = 0; i < e.length; i += 1) {
|
|
638
650
|
if (o === t)
|
|
639
651
|
return n;
|
|
640
|
-
const s = e[i],
|
|
652
|
+
const s = e[i], g = Ee(s) ? String(s).length : 1, d = o + g;
|
|
641
653
|
if (d > t) {
|
|
642
|
-
const
|
|
643
|
-
return n.push(String(s).slice(0,
|
|
654
|
+
const u = t - o;
|
|
655
|
+
return n.push(String(s).slice(0, u)), n;
|
|
644
656
|
}
|
|
645
657
|
n.push(s), o = d;
|
|
646
658
|
}
|
|
647
659
|
return e;
|
|
648
660
|
}
|
|
649
|
-
const
|
|
661
|
+
const pe = 0, ue = 1, fe = 2, me = 3, De = 4, Q = {
|
|
650
662
|
display: "-webkit-box",
|
|
651
663
|
overflow: "hidden",
|
|
652
664
|
WebkitBoxOrient: "vertical"
|
|
653
665
|
};
|
|
654
|
-
function
|
|
666
|
+
function tn(e) {
|
|
655
667
|
const {
|
|
656
668
|
enableMeasure: t,
|
|
657
669
|
width: o,
|
|
658
670
|
text: n,
|
|
659
671
|
children: i,
|
|
660
672
|
rows: s,
|
|
661
|
-
expanded:
|
|
662
|
-
miscDeps:
|
|
673
|
+
expanded: c,
|
|
674
|
+
miscDeps: g,
|
|
663
675
|
onEllipsis: d
|
|
664
|
-
} = e,
|
|
676
|
+
} = e, u = r.useMemo(() => Me(n), [n]), f = r.useMemo(() => en(u), [n]), p = r.useMemo(() => i(u, !1), [n]), [l, x] = r.useState(null), O = r.useRef(null), y = r.useRef(null), S = r.useRef(null), b = r.useRef(null), I = r.useRef(null), [H, w] = r.useState(!1), [R, j] = r.useState(pe), [v, z] = r.useState(0), [U, V] = r.useState(null);
|
|
665
677
|
W(() => {
|
|
666
|
-
|
|
667
|
-
}, [o, n, s, t,
|
|
668
|
-
var E, h,
|
|
669
|
-
if (
|
|
670
|
-
|
|
671
|
-
const
|
|
672
|
-
V(
|
|
673
|
-
} else if (
|
|
674
|
-
const
|
|
675
|
-
|
|
676
|
-
const $ = ((h =
|
|
678
|
+
j(t && o && f ? ue : pe);
|
|
679
|
+
}, [o, n, s, t, u]), W(() => {
|
|
680
|
+
var E, h, C, P;
|
|
681
|
+
if (R === ue) {
|
|
682
|
+
j(fe);
|
|
683
|
+
const N = y.current && getComputedStyle(y.current).whiteSpace;
|
|
684
|
+
V(N);
|
|
685
|
+
} else if (R === fe) {
|
|
686
|
+
const N = !!(!((E = S.current) === null || E === void 0) && E.isExceed());
|
|
687
|
+
j(N ? me : De), x(N ? [0, f] : null), w(N);
|
|
688
|
+
const $ = ((h = S.current) === null || h === void 0 ? void 0 : h.getHeight()) || 0, ne = s === 1 ? 0 : ((C = b.current) === null || C === void 0 ? void 0 : C.getHeight()) || 0, q = ((P = I.current) === null || P === void 0 ? void 0 : P.getHeight()) || 0, oe = Math.max(
|
|
677
689
|
$,
|
|
678
690
|
// height of rows with ellipsis
|
|
679
691
|
ne + q
|
|
680
692
|
);
|
|
681
|
-
z(oe + 1), d(
|
|
693
|
+
z(oe + 1), d(N);
|
|
682
694
|
}
|
|
683
|
-
}, [
|
|
684
|
-
const M =
|
|
695
|
+
}, [R]);
|
|
696
|
+
const M = l ? Math.ceil((l[0] + l[1]) / 2) : 0;
|
|
685
697
|
W(() => {
|
|
686
698
|
var E;
|
|
687
|
-
const [h,
|
|
688
|
-
if (h !==
|
|
689
|
-
const
|
|
699
|
+
const [h, C] = l || [0, 0];
|
|
700
|
+
if (h !== C) {
|
|
701
|
+
const N = (((E = O.current) === null || E === void 0 ? void 0 : E.getHeight()) || 0) > v;
|
|
690
702
|
let $ = M;
|
|
691
|
-
|
|
703
|
+
C - h === 1 && ($ = N ? h : C), x(N ? [h, $] : [$, C]);
|
|
692
704
|
}
|
|
693
|
-
}, [
|
|
705
|
+
}, [l, M]);
|
|
694
706
|
const F = r.useMemo(() => {
|
|
695
707
|
if (!t)
|
|
696
|
-
return i(
|
|
697
|
-
if (
|
|
698
|
-
const E = i(
|
|
699
|
-
return [
|
|
708
|
+
return i(u, !1);
|
|
709
|
+
if (R !== me || !l || l[0] !== l[1]) {
|
|
710
|
+
const E = i(u, !1);
|
|
711
|
+
return [De, pe].includes(R) ? E : /* @__PURE__ */ r.createElement("span", {
|
|
700
712
|
style: Object.assign(Object.assign({}, Q), {
|
|
701
713
|
WebkitLineClamp: s
|
|
702
714
|
})
|
|
703
715
|
}, E);
|
|
704
716
|
}
|
|
705
|
-
return i(
|
|
706
|
-
}, [
|
|
717
|
+
return i(c ? u : $e(u, l[0]), H);
|
|
718
|
+
}, [c, R, l, u].concat(vt(g))), k = {
|
|
707
719
|
width: o,
|
|
708
720
|
margin: 0,
|
|
709
721
|
padding: 0,
|
|
710
722
|
whiteSpace: U === "nowrap" ? "normal" : "inherit"
|
|
711
723
|
};
|
|
712
|
-
return /* @__PURE__ */ r.createElement(r.Fragment, null, F,
|
|
724
|
+
return /* @__PURE__ */ r.createElement(r.Fragment, null, F, R === fe && /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(G, {
|
|
713
725
|
style: Object.assign(Object.assign(Object.assign({}, k), Q), {
|
|
714
726
|
WebkitLineClamp: s
|
|
715
727
|
}),
|
|
716
|
-
ref:
|
|
717
|
-
},
|
|
728
|
+
ref: S
|
|
729
|
+
}, p), /* @__PURE__ */ r.createElement(G, {
|
|
718
730
|
style: Object.assign(Object.assign(Object.assign({}, k), Q), {
|
|
719
731
|
WebkitLineClamp: s - 1
|
|
720
732
|
}),
|
|
721
|
-
ref:
|
|
722
|
-
},
|
|
733
|
+
ref: b
|
|
734
|
+
}, p), /* @__PURE__ */ r.createElement(G, {
|
|
723
735
|
style: Object.assign(Object.assign(Object.assign({}, k), Q), {
|
|
724
736
|
WebkitLineClamp: 1
|
|
725
737
|
}),
|
|
726
738
|
ref: I
|
|
727
|
-
}, i([], !0))),
|
|
739
|
+
}, i([], !0))), R === me && l && l[0] !== l[1] && /* @__PURE__ */ r.createElement(G, {
|
|
728
740
|
style: Object.assign(Object.assign({}, k), {
|
|
729
741
|
top: 400
|
|
730
742
|
}),
|
|
731
|
-
ref:
|
|
732
|
-
}, i(
|
|
743
|
+
ref: O
|
|
744
|
+
}, i($e(u, M), !0)), R === ue && /* @__PURE__ */ r.createElement("span", {
|
|
733
745
|
style: {
|
|
734
746
|
whiteSpace: "inherit"
|
|
735
747
|
},
|
|
736
|
-
ref:
|
|
748
|
+
ref: y
|
|
737
749
|
}));
|
|
738
750
|
}
|
|
739
|
-
const
|
|
751
|
+
const We = (e) => {
|
|
740
752
|
let {
|
|
741
753
|
enableEllipsis: t,
|
|
742
754
|
isEllipsis: o,
|
|
743
755
|
children: n,
|
|
744
756
|
tooltipProps: i
|
|
745
757
|
} = e;
|
|
746
|
-
return !(i != null && i.title) || !t ? n : /* @__PURE__ */ r.createElement(
|
|
758
|
+
return !(i != null && i.title) || !t ? n : /* @__PURE__ */ r.createElement(be, Object.assign({
|
|
747
759
|
open: o ? void 0 : !1
|
|
748
760
|
}, i), n);
|
|
749
761
|
};
|
|
750
|
-
process.env.NODE_ENV !== "production" && (
|
|
751
|
-
var
|
|
762
|
+
process.env.NODE_ENV !== "production" && (We.displayName = "EllipsisTooltip");
|
|
763
|
+
var nn = function(e, t) {
|
|
752
764
|
var o = {};
|
|
753
765
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
|
|
754
766
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
755
767
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (o[n[i]] = e[n[i]]);
|
|
756
768
|
return o;
|
|
757
769
|
};
|
|
758
|
-
function
|
|
770
|
+
function on(e, t) {
|
|
759
771
|
let {
|
|
760
772
|
mark: o,
|
|
761
773
|
code: n,
|
|
762
774
|
underline: i,
|
|
763
775
|
delete: s,
|
|
764
|
-
strong:
|
|
765
|
-
keyboard:
|
|
776
|
+
strong: c,
|
|
777
|
+
keyboard: g,
|
|
766
778
|
italic: d
|
|
767
|
-
} = e,
|
|
768
|
-
function
|
|
769
|
-
|
|
779
|
+
} = e, u = t;
|
|
780
|
+
function f(p, l) {
|
|
781
|
+
l && (u = /* @__PURE__ */ r.createElement(p, {}, u));
|
|
770
782
|
}
|
|
771
|
-
return
|
|
783
|
+
return f("strong", c), f("u", i), f("del", s), f("code", n), f("mark", o), f("kbd", g), f("i", d), u;
|
|
772
784
|
}
|
|
773
|
-
const
|
|
785
|
+
const rn = "...", ee = /* @__PURE__ */ r.forwardRef((e, t) => {
|
|
774
786
|
var o;
|
|
775
787
|
const {
|
|
776
788
|
prefixCls: n,
|
|
777
789
|
className: i,
|
|
778
790
|
style: s,
|
|
779
|
-
type:
|
|
780
|
-
disabled:
|
|
791
|
+
type: c,
|
|
792
|
+
disabled: g,
|
|
781
793
|
children: d,
|
|
782
|
-
ellipsis:
|
|
783
|
-
editable:
|
|
784
|
-
copyable:
|
|
785
|
-
component:
|
|
786
|
-
title:
|
|
787
|
-
} = e,
|
|
788
|
-
getPrefixCls:
|
|
789
|
-
direction:
|
|
790
|
-
} = r.useContext(
|
|
794
|
+
ellipsis: u,
|
|
795
|
+
editable: f,
|
|
796
|
+
copyable: p,
|
|
797
|
+
component: l,
|
|
798
|
+
title: x
|
|
799
|
+
} = e, O = nn(e, ["prefixCls", "className", "style", "type", "disabled", "children", "ellipsis", "editable", "copyable", "component", "title"]), {
|
|
800
|
+
getPrefixCls: y,
|
|
801
|
+
direction: S
|
|
802
|
+
} = r.useContext(Et), [b] = ht("Text"), I = r.useRef(null), H = r.useRef(null), w = y("typography", n), R = Ae(O, ["mark", "code", "delete", "underline", "strong", "keyboard", "italic"]), [j, v] = ce(f), [z, U] = Re(!1, {
|
|
791
803
|
value: v.editing
|
|
792
804
|
}), {
|
|
793
805
|
triggerType: V = ["icon"]
|
|
794
|
-
} = v, M = (
|
|
795
|
-
var
|
|
796
|
-
|
|
797
|
-
}, F =
|
|
806
|
+
} = v, M = (a) => {
|
|
807
|
+
var m;
|
|
808
|
+
a && ((m = v.onStart) === null || m === void 0 || m.call(v)), U(a);
|
|
809
|
+
}, F = Jt(z);
|
|
798
810
|
W(() => {
|
|
799
|
-
var
|
|
800
|
-
!z && F && ((
|
|
811
|
+
var a;
|
|
812
|
+
!z && F && ((a = H.current) === null || a === void 0 || a.focus());
|
|
801
813
|
}, [z]);
|
|
802
|
-
const k = (
|
|
803
|
-
|
|
804
|
-
}, E = (
|
|
805
|
-
var
|
|
806
|
-
(
|
|
814
|
+
const k = (a) => {
|
|
815
|
+
a == null || a.preventDefault(), M(!0);
|
|
816
|
+
}, E = (a) => {
|
|
817
|
+
var m;
|
|
818
|
+
(m = v.onChange) === null || m === void 0 || m.call(v, a), M(!1);
|
|
807
819
|
}, h = () => {
|
|
808
|
-
var
|
|
809
|
-
(
|
|
810
|
-
}, [
|
|
811
|
-
copied:
|
|
820
|
+
var a;
|
|
821
|
+
(a = v.onCancel) === null || a === void 0 || a.call(v), M(!1);
|
|
822
|
+
}, [C, P] = ce(p), {
|
|
823
|
+
copied: N,
|
|
812
824
|
copyLoading: $,
|
|
813
825
|
onClick: ne
|
|
814
|
-
} =
|
|
826
|
+
} = Xt({
|
|
815
827
|
copyConfig: P,
|
|
816
828
|
children: d
|
|
817
|
-
}), [q, oe] = r.useState(!1), [
|
|
829
|
+
}), [q, oe] = r.useState(!1), [he, Ue] = r.useState(!1), [xe, Fe] = r.useState(!1), [Ce, Ke] = r.useState(!1), [qe, Xe] = r.useState(!0), [B, T] = ce(u, {
|
|
818
830
|
expandable: !1,
|
|
819
|
-
symbol: (
|
|
820
|
-
}), [A,
|
|
821
|
-
value:
|
|
822
|
-
}),
|
|
831
|
+
symbol: (a) => a ? b == null ? void 0 : b.collapse : b == null ? void 0 : b.expand
|
|
832
|
+
}), [A, Je] = Re(T.defaultExpanded || !1, {
|
|
833
|
+
value: T.expanded
|
|
834
|
+
}), _ = B && (!A || T.expandable === "collapsible"), {
|
|
823
835
|
rows: K = 1
|
|
824
|
-
} =
|
|
836
|
+
} = T, X = r.useMemo(() => (
|
|
825
837
|
// Disable ellipsis
|
|
826
|
-
|
|
827
|
-
(
|
|
828
|
-
|
|
829
|
-
), [
|
|
838
|
+
_ && // Provide suffix
|
|
839
|
+
(T.suffix !== void 0 || T.onEllipsis || // Can't use css ellipsis since we need to provide the place for button
|
|
840
|
+
T.expandable || j || C)
|
|
841
|
+
), [_, T, j, C]);
|
|
830
842
|
W(() => {
|
|
831
|
-
B && !X && (oe(
|
|
843
|
+
B && !X && (oe(Te("webkitLineClamp")), Ue(Te("textOverflow")));
|
|
832
844
|
}, [X, B]);
|
|
833
|
-
const [D,
|
|
845
|
+
const [D, Ge] = r.useState(_), Se = r.useMemo(() => X ? !1 : K === 1 ? he : q, [X, he, q]);
|
|
834
846
|
W(() => {
|
|
835
|
-
|
|
836
|
-
}, [
|
|
837
|
-
const
|
|
847
|
+
Ge(Se && _);
|
|
848
|
+
}, [Se, _]);
|
|
849
|
+
const Oe = _ && (D ? Ce : xe), Qe = _ && K === 1 && D, re = _ && K > 1 && D, Ye = (a, m) => {
|
|
838
850
|
var L;
|
|
839
|
-
|
|
840
|
-
}, [
|
|
851
|
+
Je(m.expanded), (L = T.onExpand) === null || L === void 0 || L.call(T, a, m);
|
|
852
|
+
}, [we, Ze] = r.useState(0), et = (a) => {
|
|
841
853
|
let {
|
|
842
|
-
offsetWidth:
|
|
843
|
-
} =
|
|
844
|
-
|
|
845
|
-
},
|
|
846
|
-
var
|
|
847
|
-
|
|
854
|
+
offsetWidth: m
|
|
855
|
+
} = a;
|
|
856
|
+
Ze(m);
|
|
857
|
+
}, tt = (a) => {
|
|
858
|
+
var m;
|
|
859
|
+
Fe(a), xe !== a && ((m = T.onEllipsis) === null || m === void 0 || m.call(T, a));
|
|
848
860
|
};
|
|
849
861
|
r.useEffect(() => {
|
|
850
|
-
const
|
|
851
|
-
if (B && D &&
|
|
852
|
-
const
|
|
853
|
-
|
|
862
|
+
const a = I.current;
|
|
863
|
+
if (B && D && a) {
|
|
864
|
+
const m = Yt(a);
|
|
865
|
+
Ce !== m && Ke(m);
|
|
854
866
|
}
|
|
855
|
-
}, [B, D, d, re,
|
|
856
|
-
const
|
|
857
|
-
if (typeof IntersectionObserver > "u" || !
|
|
867
|
+
}, [B, D, d, re, qe, we]), r.useEffect(() => {
|
|
868
|
+
const a = I.current;
|
|
869
|
+
if (typeof IntersectionObserver > "u" || !a || !D || !_)
|
|
858
870
|
return;
|
|
859
|
-
const
|
|
860
|
-
|
|
871
|
+
const m = new IntersectionObserver(() => {
|
|
872
|
+
Xe(!!a.offsetParent);
|
|
861
873
|
});
|
|
862
|
-
return
|
|
863
|
-
|
|
874
|
+
return m.observe(a), () => {
|
|
875
|
+
m.disconnect();
|
|
864
876
|
};
|
|
865
|
-
}, [D,
|
|
866
|
-
const ie =
|
|
877
|
+
}, [D, _]);
|
|
878
|
+
const ie = Gt(T.tooltip, v.text, d), J = r.useMemo(() => {
|
|
867
879
|
if (!(!B || D))
|
|
868
|
-
return [v.text, d,
|
|
869
|
-
}, [B, D,
|
|
880
|
+
return [v.text, d, x, ie.title].find(Ee);
|
|
881
|
+
}, [B, D, x, ie.title, Oe]);
|
|
870
882
|
if (z)
|
|
871
|
-
return /* @__PURE__ */ r.createElement(
|
|
883
|
+
return /* @__PURE__ */ r.createElement(Vt, {
|
|
872
884
|
value: (o = v.text) !== null && o !== void 0 ? o : typeof d == "string" ? d : "",
|
|
873
885
|
onSave: E,
|
|
874
886
|
onCancel: h,
|
|
875
887
|
onEnd: v.onEnd,
|
|
876
|
-
prefixCls:
|
|
888
|
+
prefixCls: w,
|
|
877
889
|
className: i,
|
|
878
890
|
style: s,
|
|
879
|
-
direction:
|
|
880
|
-
component:
|
|
891
|
+
direction: S,
|
|
892
|
+
component: l,
|
|
881
893
|
maxLength: v.maxLength,
|
|
882
894
|
autoSize: v.autoSize,
|
|
883
895
|
enterIcon: v.enterIcon
|
|
884
896
|
});
|
|
885
|
-
const
|
|
897
|
+
const nt = () => {
|
|
886
898
|
const {
|
|
887
|
-
expandable:
|
|
888
|
-
symbol:
|
|
889
|
-
} =
|
|
890
|
-
return
|
|
899
|
+
expandable: a,
|
|
900
|
+
symbol: m
|
|
901
|
+
} = T;
|
|
902
|
+
return a ? /* @__PURE__ */ r.createElement("button", {
|
|
891
903
|
type: "button",
|
|
892
904
|
key: "expand",
|
|
893
|
-
className: `${
|
|
894
|
-
onClick: (L) =>
|
|
905
|
+
className: `${w}-${A ? "collapse" : "expand"}`,
|
|
906
|
+
onClick: (L) => Ye(L, {
|
|
895
907
|
expanded: !A
|
|
896
908
|
}),
|
|
897
|
-
"aria-label": A ?
|
|
898
|
-
}, typeof
|
|
899
|
-
},
|
|
900
|
-
if (!
|
|
909
|
+
"aria-label": A ? b.collapse : b == null ? void 0 : b.expand
|
|
910
|
+
}, typeof m == "function" ? m(A) : m) : null;
|
|
911
|
+
}, ot = () => {
|
|
912
|
+
if (!j)
|
|
901
913
|
return;
|
|
902
914
|
const {
|
|
903
|
-
icon:
|
|
904
|
-
tooltip:
|
|
915
|
+
icon: a,
|
|
916
|
+
tooltip: m,
|
|
905
917
|
tabIndex: L
|
|
906
|
-
} = v, se = Me(
|
|
907
|
-
return V.includes("icon") ? /* @__PURE__ */ r.createElement(
|
|
918
|
+
} = v, se = Me(m)[0] || (b == null ? void 0 : b.edit), lt = typeof se == "string" ? se : "";
|
|
919
|
+
return V.includes("icon") ? /* @__PURE__ */ r.createElement(be, {
|
|
908
920
|
key: "edit",
|
|
909
|
-
title:
|
|
921
|
+
title: m === !1 ? "" : se
|
|
910
922
|
}, /* @__PURE__ */ r.createElement("button", {
|
|
911
923
|
type: "button",
|
|
912
924
|
ref: H,
|
|
913
|
-
className: `${
|
|
925
|
+
className: `${w}-edit`,
|
|
914
926
|
onClick: k,
|
|
915
|
-
"aria-label":
|
|
927
|
+
"aria-label": lt,
|
|
916
928
|
tabIndex: L
|
|
917
|
-
},
|
|
929
|
+
}, a || /* @__PURE__ */ r.createElement(ze, {
|
|
918
930
|
role: "button"
|
|
919
931
|
}))) : null;
|
|
920
|
-
},
|
|
932
|
+
}, rt = () => C ? /* @__PURE__ */ r.createElement(Zt, Object.assign({
|
|
921
933
|
key: "copy"
|
|
922
934
|
}, P, {
|
|
923
|
-
prefixCls:
|
|
924
|
-
copied:
|
|
925
|
-
locale:
|
|
935
|
+
prefixCls: w,
|
|
936
|
+
copied: N,
|
|
937
|
+
locale: b,
|
|
926
938
|
onCopy: ne,
|
|
927
939
|
loading: $,
|
|
928
940
|
iconOnly: d == null
|
|
929
|
-
})) : null,
|
|
941
|
+
})) : null, it = (a) => [a && nt(), ot(), rt()], st = (a) => [a && !A && /* @__PURE__ */ r.createElement("span", {
|
|
930
942
|
"aria-hidden": !0,
|
|
931
943
|
key: "ellipsis"
|
|
932
|
-
},
|
|
933
|
-
return /* @__PURE__ */ r.createElement(
|
|
934
|
-
onResize:
|
|
935
|
-
disabled: !
|
|
936
|
-
}, (
|
|
944
|
+
}, rn), T.suffix, it(a)];
|
|
945
|
+
return /* @__PURE__ */ r.createElement(ft, {
|
|
946
|
+
onResize: et,
|
|
947
|
+
disabled: !_
|
|
948
|
+
}, (a) => /* @__PURE__ */ r.createElement(We, {
|
|
937
949
|
tooltipProps: ie,
|
|
938
|
-
enableEllipsis:
|
|
939
|
-
isEllipsis:
|
|
940
|
-
}, /* @__PURE__ */ r.createElement(
|
|
950
|
+
enableEllipsis: _,
|
|
951
|
+
isEllipsis: Oe
|
|
952
|
+
}, /* @__PURE__ */ r.createElement(ve, Object.assign({
|
|
941
953
|
className: Z({
|
|
942
|
-
[`${
|
|
943
|
-
[`${
|
|
944
|
-
[`${
|
|
945
|
-
[`${
|
|
946
|
-
[`${
|
|
954
|
+
[`${w}-${c}`]: c,
|
|
955
|
+
[`${w}-disabled`]: g,
|
|
956
|
+
[`${w}-ellipsis`]: B,
|
|
957
|
+
[`${w}-ellipsis-single-line`]: Qe,
|
|
958
|
+
[`${w}-ellipsis-multiple-line`]: re
|
|
947
959
|
}, i),
|
|
948
960
|
prefixCls: n,
|
|
949
961
|
style: Object.assign(Object.assign({}, s), {
|
|
950
962
|
WebkitLineClamp: re ? K : void 0
|
|
951
963
|
}),
|
|
952
|
-
component:
|
|
953
|
-
ref:
|
|
954
|
-
direction:
|
|
964
|
+
component: l,
|
|
965
|
+
ref: Pe(a, I, t),
|
|
966
|
+
direction: S,
|
|
955
967
|
onClick: V.includes("text") ? k : void 0,
|
|
956
968
|
"aria-label": J == null ? void 0 : J.toString(),
|
|
957
|
-
title:
|
|
958
|
-
},
|
|
959
|
-
enableMeasure:
|
|
969
|
+
title: x
|
|
970
|
+
}, R), /* @__PURE__ */ r.createElement(tn, {
|
|
971
|
+
enableMeasure: _ && !D,
|
|
960
972
|
text: d,
|
|
961
973
|
rows: K,
|
|
962
|
-
width:
|
|
963
|
-
onEllipsis:
|
|
974
|
+
width: we,
|
|
975
|
+
onEllipsis: tt,
|
|
964
976
|
expanded: A,
|
|
965
|
-
miscDeps: [
|
|
966
|
-
}, (
|
|
977
|
+
miscDeps: [N, A, $, j, C, b]
|
|
978
|
+
}, (m, L) => on(e, /* @__PURE__ */ r.createElement(r.Fragment, null, m.length > 0 && L && !A && J ? /* @__PURE__ */ r.createElement("span", {
|
|
967
979
|
key: "show-content",
|
|
968
980
|
"aria-hidden": !0
|
|
969
|
-
},
|
|
981
|
+
}, m) : m, st(L)))))));
|
|
970
982
|
});
|
|
971
|
-
var
|
|
983
|
+
var sn = function(e, t) {
|
|
972
984
|
var o = {};
|
|
973
985
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
|
|
974
986
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
975
987
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (o[n[i]] = e[n[i]]);
|
|
976
988
|
return o;
|
|
977
989
|
};
|
|
978
|
-
const
|
|
990
|
+
const ln = /* @__PURE__ */ r.forwardRef((e, t) => {
|
|
979
991
|
var {
|
|
980
992
|
ellipsis: o,
|
|
981
993
|
rel: n
|
|
982
|
-
} = e, i =
|
|
994
|
+
} = e, i = sn(e, ["ellipsis", "rel"]);
|
|
983
995
|
if (process.env.NODE_ENV !== "production") {
|
|
984
|
-
const
|
|
985
|
-
process.env.NODE_ENV !== "production" &&
|
|
996
|
+
const c = Y("Typography.Link");
|
|
997
|
+
process.env.NODE_ENV !== "production" && c(typeof o != "object", "usage", "`ellipsis` only supports boolean value.");
|
|
986
998
|
}
|
|
987
999
|
const s = Object.assign(Object.assign({}, i), {
|
|
988
1000
|
rel: n === void 0 && i.target === "_blank" ? "noopener noreferrer" : n
|
|
@@ -992,23 +1004,23 @@ const sn = /* @__PURE__ */ r.forwardRef((e, t) => {
|
|
|
992
1004
|
ellipsis: !!o,
|
|
993
1005
|
component: "a"
|
|
994
1006
|
}));
|
|
995
|
-
}),
|
|
1007
|
+
}), an = /* @__PURE__ */ r.forwardRef((e, t) => /* @__PURE__ */ r.createElement(ee, Object.assign({
|
|
996
1008
|
ref: t
|
|
997
1009
|
}, e, {
|
|
998
1010
|
component: "div"
|
|
999
1011
|
})));
|
|
1000
|
-
var
|
|
1012
|
+
var cn = function(e, t) {
|
|
1001
1013
|
var o = {};
|
|
1002
1014
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
|
|
1003
1015
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1004
1016
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (o[n[i]] = e[n[i]]);
|
|
1005
1017
|
return o;
|
|
1006
1018
|
};
|
|
1007
|
-
const
|
|
1019
|
+
const dn = (e, t) => {
|
|
1008
1020
|
var {
|
|
1009
1021
|
ellipsis: o
|
|
1010
|
-
} = e, n =
|
|
1011
|
-
const i = r.useMemo(() => o && typeof o == "object" ?
|
|
1022
|
+
} = e, n = cn(e, ["ellipsis"]);
|
|
1023
|
+
const i = r.useMemo(() => o && typeof o == "object" ? Ae(o, ["expandable", "rows"]) : o, [o]);
|
|
1012
1024
|
if (process.env.NODE_ENV !== "production") {
|
|
1013
1025
|
const s = Y("Typography.Text");
|
|
1014
1026
|
process.env.NODE_ENV !== "production" && s(typeof o != "object" || !o || !("expandable" in o) && !("rows" in o), "usage", "`ellipsis` do not support `expandable` or `rows` props.");
|
|
@@ -1019,7 +1031,7 @@ const cn = (e, t) => {
|
|
|
1019
1031
|
ellipsis: i,
|
|
1020
1032
|
component: "span"
|
|
1021
1033
|
}));
|
|
1022
|
-
},
|
|
1034
|
+
}, pn = /* @__PURE__ */ r.forwardRef(dn);
|
|
1023
1035
|
var un = function(e, t) {
|
|
1024
1036
|
var o = {};
|
|
1025
1037
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
|
|
@@ -1027,25 +1039,25 @@ var un = function(e, t) {
|
|
|
1027
1039
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (o[n[i]] = e[n[i]]);
|
|
1028
1040
|
return o;
|
|
1029
1041
|
};
|
|
1030
|
-
const
|
|
1042
|
+
const Le = [1, 2, 3, 4, 5], fn = /* @__PURE__ */ r.forwardRef((e, t) => {
|
|
1031
1043
|
const {
|
|
1032
1044
|
level: o = 1
|
|
1033
1045
|
} = e, n = un(e, ["level"]);
|
|
1034
1046
|
if (process.env.NODE_ENV !== "production") {
|
|
1035
1047
|
const s = Y("Typography.Title");
|
|
1036
|
-
process.env.NODE_ENV !== "production" && s(
|
|
1048
|
+
process.env.NODE_ENV !== "production" && s(Le.includes(o), "usage", "Title only accept `1 | 2 | 3 | 4 | 5` as `level` value. And `5` need 4.6.0+ version.");
|
|
1037
1049
|
}
|
|
1038
|
-
const i =
|
|
1050
|
+
const i = Le.includes(o) ? `h${o}` : "h1";
|
|
1039
1051
|
return /* @__PURE__ */ r.createElement(ee, Object.assign({
|
|
1040
1052
|
ref: t
|
|
1041
1053
|
}, n, {
|
|
1042
1054
|
component: i
|
|
1043
1055
|
}));
|
|
1044
|
-
}), te =
|
|
1045
|
-
te.Text =
|
|
1046
|
-
te.Link =
|
|
1047
|
-
te.Title =
|
|
1048
|
-
te.Paragraph =
|
|
1056
|
+
}), te = ve;
|
|
1057
|
+
te.Text = pn;
|
|
1058
|
+
te.Link = ln;
|
|
1059
|
+
te.Title = fn;
|
|
1060
|
+
te.Paragraph = an;
|
|
1049
1061
|
export {
|
|
1050
1062
|
te as T
|
|
1051
1063
|
};
|