@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
|
@@ -0,0 +1,540 @@
|
|
|
1
|
+
import * as n from "react";
|
|
2
|
+
import { c as b } from "./presets-CSXMiWyc.js";
|
|
3
|
+
import { o as ye } from "./omit-B_u6A-HL.js";
|
|
4
|
+
import { d as ue } from "./index-DCopujxC.js";
|
|
5
|
+
import { u as he } from "./useSize-Ct1guc-z.js";
|
|
6
|
+
import { S as $e } from "./Skeleton-CudViN0a.js";
|
|
7
|
+
import { T as fe } from "./index-BHCqeC4j.js";
|
|
8
|
+
import { C as B, g as ve, m as Se, f as o, j as Ce, k as P, t as _ } from "./CSSMotionList-DB0khM6h.js";
|
|
9
|
+
import { u as xe } from "./useVariants-C6UAAu9f.js";
|
|
10
|
+
var Oe = function(e, a) {
|
|
11
|
+
var i = {};
|
|
12
|
+
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && a.indexOf(t) < 0 && (i[t] = e[t]);
|
|
13
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, t = Object.getOwnPropertySymbols(e); r < t.length; r++)
|
|
14
|
+
a.indexOf(t[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[r]) && (i[t[r]] = e[t[r]]);
|
|
15
|
+
return i;
|
|
16
|
+
};
|
|
17
|
+
const A = (e) => {
|
|
18
|
+
var {
|
|
19
|
+
prefixCls: a,
|
|
20
|
+
className: i,
|
|
21
|
+
hoverable: t = !0
|
|
22
|
+
} = e, r = Oe(e, ["prefixCls", "className", "hoverable"]);
|
|
23
|
+
const {
|
|
24
|
+
getPrefixCls: l
|
|
25
|
+
} = n.useContext(B), g = l("card", a), p = b(`${g}-grid`, i, {
|
|
26
|
+
[`${g}-grid-hoverable`]: t
|
|
27
|
+
});
|
|
28
|
+
return /* @__PURE__ */ n.createElement("div", Object.assign({}, r, {
|
|
29
|
+
className: p
|
|
30
|
+
}));
|
|
31
|
+
}, je = (e) => {
|
|
32
|
+
const {
|
|
33
|
+
antCls: a,
|
|
34
|
+
componentCls: i,
|
|
35
|
+
headerHeight: t,
|
|
36
|
+
headerPadding: r,
|
|
37
|
+
tabsMarginBottom: l
|
|
38
|
+
} = e;
|
|
39
|
+
return Object.assign(Object.assign({
|
|
40
|
+
display: "flex",
|
|
41
|
+
justifyContent: "center",
|
|
42
|
+
flexDirection: "column",
|
|
43
|
+
minHeight: t,
|
|
44
|
+
marginBottom: -1,
|
|
45
|
+
padding: `0 ${o(r)}`,
|
|
46
|
+
color: e.colorTextHeading,
|
|
47
|
+
fontWeight: e.fontWeightStrong,
|
|
48
|
+
fontSize: e.headerFontSize,
|
|
49
|
+
background: e.headerBg,
|
|
50
|
+
borderBottom: `${o(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,
|
|
51
|
+
borderRadius: `${o(e.borderRadiusLG)} ${o(e.borderRadiusLG)} 0 0`
|
|
52
|
+
}, P()), {
|
|
53
|
+
"&-wrapper": {
|
|
54
|
+
width: "100%",
|
|
55
|
+
display: "flex",
|
|
56
|
+
alignItems: "center"
|
|
57
|
+
},
|
|
58
|
+
"&-title": Object.assign(Object.assign({
|
|
59
|
+
display: "inline-block",
|
|
60
|
+
flex: 1
|
|
61
|
+
}, _), {
|
|
62
|
+
[`
|
|
63
|
+
> ${i}-typography,
|
|
64
|
+
> ${i}-typography-edit-content
|
|
65
|
+
`]: {
|
|
66
|
+
insetInlineStart: 0,
|
|
67
|
+
marginTop: 0,
|
|
68
|
+
marginBottom: 0
|
|
69
|
+
}
|
|
70
|
+
}),
|
|
71
|
+
[`${a}-tabs-top`]: {
|
|
72
|
+
clear: "both",
|
|
73
|
+
marginBottom: l,
|
|
74
|
+
color: e.colorText,
|
|
75
|
+
fontWeight: "normal",
|
|
76
|
+
fontSize: e.fontSize,
|
|
77
|
+
"&-bar": {
|
|
78
|
+
borderBottom: `${o(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
}, ze = (e) => {
|
|
83
|
+
const {
|
|
84
|
+
cardPaddingBase: a,
|
|
85
|
+
colorBorderSecondary: i,
|
|
86
|
+
cardShadow: t,
|
|
87
|
+
lineWidth: r
|
|
88
|
+
} = e;
|
|
89
|
+
return {
|
|
90
|
+
width: "33.33%",
|
|
91
|
+
padding: a,
|
|
92
|
+
border: 0,
|
|
93
|
+
borderRadius: 0,
|
|
94
|
+
boxShadow: `
|
|
95
|
+
${o(r)} 0 0 0 ${i},
|
|
96
|
+
0 ${o(r)} 0 0 ${i},
|
|
97
|
+
${o(r)} ${o(r)} 0 0 ${i},
|
|
98
|
+
${o(r)} 0 0 0 ${i} inset,
|
|
99
|
+
0 ${o(r)} 0 0 ${i} inset;
|
|
100
|
+
`,
|
|
101
|
+
transition: `all ${e.motionDurationMid}`,
|
|
102
|
+
"&-hoverable:hover": {
|
|
103
|
+
position: "relative",
|
|
104
|
+
zIndex: 1,
|
|
105
|
+
boxShadow: t
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
}, Pe = (e) => {
|
|
109
|
+
const {
|
|
110
|
+
componentCls: a,
|
|
111
|
+
iconCls: i,
|
|
112
|
+
actionsLiMargin: t,
|
|
113
|
+
cardActionsIconSize: r,
|
|
114
|
+
colorBorderSecondary: l,
|
|
115
|
+
actionsBg: g
|
|
116
|
+
} = e;
|
|
117
|
+
return Object.assign(Object.assign({
|
|
118
|
+
margin: 0,
|
|
119
|
+
padding: 0,
|
|
120
|
+
listStyle: "none",
|
|
121
|
+
background: g,
|
|
122
|
+
borderTop: `${o(e.lineWidth)} ${e.lineType} ${l}`,
|
|
123
|
+
display: "flex",
|
|
124
|
+
borderRadius: `0 0 ${o(e.borderRadiusLG)} ${o(e.borderRadiusLG)}`
|
|
125
|
+
}, P()), {
|
|
126
|
+
"& > li": {
|
|
127
|
+
margin: t,
|
|
128
|
+
color: e.colorTextDescription,
|
|
129
|
+
textAlign: "center",
|
|
130
|
+
"> span": {
|
|
131
|
+
position: "relative",
|
|
132
|
+
display: "block",
|
|
133
|
+
minWidth: e.calc(e.cardActionsIconSize).mul(2).equal(),
|
|
134
|
+
fontSize: e.fontSize,
|
|
135
|
+
lineHeight: e.lineHeight,
|
|
136
|
+
cursor: "pointer",
|
|
137
|
+
"&:hover": {
|
|
138
|
+
color: e.colorPrimary,
|
|
139
|
+
transition: `color ${e.motionDurationMid}`
|
|
140
|
+
},
|
|
141
|
+
[`a:not(${a}-btn), > ${i}`]: {
|
|
142
|
+
display: "inline-block",
|
|
143
|
+
width: "100%",
|
|
144
|
+
color: e.colorTextDescription,
|
|
145
|
+
lineHeight: o(e.fontHeight),
|
|
146
|
+
transition: `color ${e.motionDurationMid}`,
|
|
147
|
+
"&:hover": {
|
|
148
|
+
color: e.colorPrimary
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
[`> ${i}`]: {
|
|
152
|
+
fontSize: r,
|
|
153
|
+
lineHeight: o(e.calc(r).mul(e.lineHeight).equal())
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
"&:not(:last-child)": {
|
|
157
|
+
borderInlineEnd: `${o(e.lineWidth)} ${e.lineType} ${l}`
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
});
|
|
161
|
+
}, we = (e) => Object.assign(Object.assign({
|
|
162
|
+
margin: `${o(e.calc(e.marginXXS).mul(-1).equal())} 0`,
|
|
163
|
+
display: "flex"
|
|
164
|
+
}, P()), {
|
|
165
|
+
"&-avatar": {
|
|
166
|
+
paddingInlineEnd: e.padding
|
|
167
|
+
},
|
|
168
|
+
"&-detail": {
|
|
169
|
+
overflow: "hidden",
|
|
170
|
+
flex: 1,
|
|
171
|
+
"> div:not(:last-child)": {
|
|
172
|
+
marginBottom: e.marginXS
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
"&-title": Object.assign({
|
|
176
|
+
color: e.colorTextHeading,
|
|
177
|
+
fontWeight: e.fontWeightStrong,
|
|
178
|
+
fontSize: e.fontSizeLG
|
|
179
|
+
}, _),
|
|
180
|
+
"&-description": {
|
|
181
|
+
color: e.colorTextDescription
|
|
182
|
+
}
|
|
183
|
+
}), Ne = (e) => {
|
|
184
|
+
const {
|
|
185
|
+
componentCls: a,
|
|
186
|
+
colorFillAlter: i,
|
|
187
|
+
headerPadding: t,
|
|
188
|
+
bodyPadding: r
|
|
189
|
+
} = e;
|
|
190
|
+
return {
|
|
191
|
+
[`${a}-head`]: {
|
|
192
|
+
padding: `0 ${o(t)}`,
|
|
193
|
+
background: i,
|
|
194
|
+
"&-title": {
|
|
195
|
+
fontSize: e.fontSize
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
[`${a}-body`]: {
|
|
199
|
+
padding: `${o(e.padding)} ${o(r)}`
|
|
200
|
+
}
|
|
201
|
+
};
|
|
202
|
+
}, Ee = (e) => {
|
|
203
|
+
const {
|
|
204
|
+
componentCls: a
|
|
205
|
+
} = e;
|
|
206
|
+
return {
|
|
207
|
+
overflow: "hidden",
|
|
208
|
+
[`${a}-body`]: {
|
|
209
|
+
userSelect: "none"
|
|
210
|
+
}
|
|
211
|
+
};
|
|
212
|
+
}, Te = (e) => {
|
|
213
|
+
const {
|
|
214
|
+
componentCls: a,
|
|
215
|
+
cardShadow: i,
|
|
216
|
+
cardHeadPadding: t,
|
|
217
|
+
colorBorderSecondary: r,
|
|
218
|
+
boxShadowTertiary: l,
|
|
219
|
+
bodyPadding: g,
|
|
220
|
+
extraColor: p
|
|
221
|
+
} = e;
|
|
222
|
+
return {
|
|
223
|
+
[a]: Object.assign(Object.assign({}, Ce(e)), {
|
|
224
|
+
position: "relative",
|
|
225
|
+
background: e.colorBgContainer,
|
|
226
|
+
borderRadius: e.borderRadiusLG,
|
|
227
|
+
[`&:not(${a}-bordered)`]: {
|
|
228
|
+
boxShadow: l
|
|
229
|
+
},
|
|
230
|
+
[`${a}-head`]: je(e),
|
|
231
|
+
[`${a}-extra`]: {
|
|
232
|
+
// https://stackoverflow.com/a/22429853/3040605
|
|
233
|
+
marginInlineStart: "auto",
|
|
234
|
+
color: p,
|
|
235
|
+
fontWeight: "normal",
|
|
236
|
+
fontSize: e.fontSize
|
|
237
|
+
},
|
|
238
|
+
[`${a}-body`]: Object.assign({
|
|
239
|
+
padding: g,
|
|
240
|
+
borderRadius: `0 0 ${o(e.borderRadiusLG)} ${o(e.borderRadiusLG)}`
|
|
241
|
+
}, P()),
|
|
242
|
+
[`${a}-grid`]: ze(e),
|
|
243
|
+
[`${a}-cover`]: {
|
|
244
|
+
"> *": {
|
|
245
|
+
display: "block",
|
|
246
|
+
width: "100%",
|
|
247
|
+
borderRadius: `${o(e.borderRadiusLG)} ${o(e.borderRadiusLG)} 0 0`
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
[`${a}-actions`]: Pe(e),
|
|
251
|
+
[`${a}-meta`]: we(e)
|
|
252
|
+
}),
|
|
253
|
+
[`${a}-bordered`]: {
|
|
254
|
+
border: `${o(e.lineWidth)} ${e.lineType} ${r}`,
|
|
255
|
+
[`${a}-cover`]: {
|
|
256
|
+
marginTop: -1,
|
|
257
|
+
marginInlineStart: -1,
|
|
258
|
+
marginInlineEnd: -1
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
[`${a}-hoverable`]: {
|
|
262
|
+
cursor: "pointer",
|
|
263
|
+
transition: `box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,
|
|
264
|
+
"&:hover": {
|
|
265
|
+
borderColor: "transparent",
|
|
266
|
+
boxShadow: i
|
|
267
|
+
}
|
|
268
|
+
},
|
|
269
|
+
[`${a}-contain-grid`]: {
|
|
270
|
+
borderRadius: `${o(e.borderRadiusLG)} ${o(e.borderRadiusLG)} 0 0 `,
|
|
271
|
+
[`${a}-body`]: {
|
|
272
|
+
display: "flex",
|
|
273
|
+
flexWrap: "wrap"
|
|
274
|
+
},
|
|
275
|
+
[`&:not(${a}-loading) ${a}-body`]: {
|
|
276
|
+
marginBlockStart: e.calc(e.lineWidth).mul(-1).equal(),
|
|
277
|
+
marginInlineStart: e.calc(e.lineWidth).mul(-1).equal(),
|
|
278
|
+
padding: 0
|
|
279
|
+
}
|
|
280
|
+
},
|
|
281
|
+
[`${a}-contain-tabs`]: {
|
|
282
|
+
[`> div${a}-head`]: {
|
|
283
|
+
minHeight: 0,
|
|
284
|
+
[`${a}-head-title, ${a}-extra`]: {
|
|
285
|
+
paddingTop: t
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
},
|
|
289
|
+
[`${a}-type-inner`]: Ne(e),
|
|
290
|
+
[`${a}-loading`]: Ee(e),
|
|
291
|
+
[`${a}-rtl`]: {
|
|
292
|
+
direction: "rtl"
|
|
293
|
+
}
|
|
294
|
+
};
|
|
295
|
+
}, Be = (e) => {
|
|
296
|
+
const {
|
|
297
|
+
componentCls: a,
|
|
298
|
+
bodyPaddingSM: i,
|
|
299
|
+
headerPaddingSM: t,
|
|
300
|
+
headerHeightSM: r,
|
|
301
|
+
headerFontSizeSM: l
|
|
302
|
+
} = e;
|
|
303
|
+
return {
|
|
304
|
+
[`${a}-small`]: {
|
|
305
|
+
[`> ${a}-head`]: {
|
|
306
|
+
minHeight: r,
|
|
307
|
+
padding: `0 ${o(t)}`,
|
|
308
|
+
fontSize: l,
|
|
309
|
+
[`> ${a}-head-wrapper`]: {
|
|
310
|
+
[`> ${a}-extra`]: {
|
|
311
|
+
fontSize: e.fontSize
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
[`> ${a}-body`]: {
|
|
316
|
+
padding: i
|
|
317
|
+
}
|
|
318
|
+
},
|
|
319
|
+
[`${a}-small${a}-contain-tabs`]: {
|
|
320
|
+
[`> ${a}-head`]: {
|
|
321
|
+
[`${a}-head-title, ${a}-extra`]: {
|
|
322
|
+
paddingTop: 0,
|
|
323
|
+
display: "flex",
|
|
324
|
+
alignItems: "center"
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
};
|
|
329
|
+
}, Ge = (e) => {
|
|
330
|
+
var a, i;
|
|
331
|
+
return {
|
|
332
|
+
headerBg: "transparent",
|
|
333
|
+
headerFontSize: e.fontSizeLG,
|
|
334
|
+
headerFontSizeSM: e.fontSize,
|
|
335
|
+
headerHeight: e.fontSizeLG * e.lineHeightLG + e.padding * 2,
|
|
336
|
+
headerHeightSM: e.fontSize * e.lineHeight + e.paddingXS * 2,
|
|
337
|
+
actionsBg: e.colorBgContainer,
|
|
338
|
+
actionsLiMargin: `${e.paddingSM}px 0`,
|
|
339
|
+
tabsMarginBottom: -e.padding - e.lineWidth,
|
|
340
|
+
extraColor: e.colorText,
|
|
341
|
+
bodyPaddingSM: 12,
|
|
342
|
+
// Fixed padding.
|
|
343
|
+
headerPaddingSM: 12,
|
|
344
|
+
bodyPadding: (a = e.bodyPadding) !== null && a !== void 0 ? a : e.paddingLG,
|
|
345
|
+
headerPadding: (i = e.headerPadding) !== null && i !== void 0 ? i : e.paddingLG
|
|
346
|
+
};
|
|
347
|
+
}, Le = ve("Card", (e) => {
|
|
348
|
+
const a = Se(e, {
|
|
349
|
+
cardShadow: e.boxShadowCard,
|
|
350
|
+
cardHeadPadding: e.padding,
|
|
351
|
+
cardPaddingBase: e.paddingLG,
|
|
352
|
+
cardActionsIconSize: e.fontSize
|
|
353
|
+
});
|
|
354
|
+
return [
|
|
355
|
+
// Style
|
|
356
|
+
Te(a),
|
|
357
|
+
// Size
|
|
358
|
+
Be(a)
|
|
359
|
+
];
|
|
360
|
+
}, Ge);
|
|
361
|
+
var D = function(e, a) {
|
|
362
|
+
var i = {};
|
|
363
|
+
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && a.indexOf(t) < 0 && (i[t] = e[t]);
|
|
364
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, t = Object.getOwnPropertySymbols(e); r < t.length; r++)
|
|
365
|
+
a.indexOf(t[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[r]) && (i[t[r]] = e[t[r]]);
|
|
366
|
+
return i;
|
|
367
|
+
};
|
|
368
|
+
const Me = (e) => {
|
|
369
|
+
const {
|
|
370
|
+
actionClasses: a,
|
|
371
|
+
actions: i = [],
|
|
372
|
+
actionStyle: t
|
|
373
|
+
} = e;
|
|
374
|
+
return /* @__PURE__ */ n.createElement("ul", {
|
|
375
|
+
className: a,
|
|
376
|
+
style: t
|
|
377
|
+
}, i.map((r, l) => {
|
|
378
|
+
const g = `action-${l}`;
|
|
379
|
+
return /* @__PURE__ */ n.createElement("li", {
|
|
380
|
+
style: {
|
|
381
|
+
width: `${100 / i.length}%`
|
|
382
|
+
},
|
|
383
|
+
key: g
|
|
384
|
+
}, /* @__PURE__ */ n.createElement("span", null, r));
|
|
385
|
+
}));
|
|
386
|
+
}, He = /* @__PURE__ */ n.forwardRef((e, a) => {
|
|
387
|
+
const {
|
|
388
|
+
prefixCls: i,
|
|
389
|
+
className: t,
|
|
390
|
+
rootClassName: r,
|
|
391
|
+
style: l,
|
|
392
|
+
extra: g,
|
|
393
|
+
headStyle: p = {},
|
|
394
|
+
bodyStyle: y = {},
|
|
395
|
+
title: f,
|
|
396
|
+
loading: C,
|
|
397
|
+
bordered: x,
|
|
398
|
+
variant: O,
|
|
399
|
+
size: w,
|
|
400
|
+
type: L,
|
|
401
|
+
cover: M,
|
|
402
|
+
actions: j,
|
|
403
|
+
tabList: v,
|
|
404
|
+
children: z,
|
|
405
|
+
activeTabKey: H,
|
|
406
|
+
defaultActiveTabKey: K,
|
|
407
|
+
tabBarExtraContent: F,
|
|
408
|
+
hoverable: V,
|
|
409
|
+
tabProps: q = {},
|
|
410
|
+
classNames: N,
|
|
411
|
+
styles: E
|
|
412
|
+
} = e, X = D(e, ["prefixCls", "className", "rootClassName", "style", "extra", "headStyle", "bodyStyle", "title", "loading", "bordered", "variant", "size", "type", "cover", "actions", "tabList", "children", "activeTabKey", "defaultActiveTabKey", "tabBarExtraContent", "hoverable", "tabProps", "classNames", "styles"]), {
|
|
413
|
+
getPrefixCls: U,
|
|
414
|
+
direction: J,
|
|
415
|
+
card: m
|
|
416
|
+
} = n.useContext(B), [Q] = xe("card", O, x);
|
|
417
|
+
if (process.env.NODE_ENV !== "production") {
|
|
418
|
+
const c = ue("Card");
|
|
419
|
+
[["headStyle", "styles.header"], ["bodyStyle", "styles.body"], ["bordered", "variant"]].forEach((s) => {
|
|
420
|
+
let [$, T] = s;
|
|
421
|
+
c.deprecated(!($ in e), $, T);
|
|
422
|
+
});
|
|
423
|
+
}
|
|
424
|
+
const Y = (c) => {
|
|
425
|
+
var s;
|
|
426
|
+
(s = e.onTabChange) === null || s === void 0 || s.call(e, c);
|
|
427
|
+
}, u = (c) => {
|
|
428
|
+
var s;
|
|
429
|
+
return b((s = m == null ? void 0 : m.classNames) === null || s === void 0 ? void 0 : s[c], N == null ? void 0 : N[c]);
|
|
430
|
+
}, h = (c) => {
|
|
431
|
+
var s;
|
|
432
|
+
return Object.assign(Object.assign({}, (s = m == null ? void 0 : m.styles) === null || s === void 0 ? void 0 : s[c]), E == null ? void 0 : E[c]);
|
|
433
|
+
}, Z = n.useMemo(() => {
|
|
434
|
+
let c = !1;
|
|
435
|
+
return n.Children.forEach(z, (s) => {
|
|
436
|
+
(s == null ? void 0 : s.type) === A && (c = !0);
|
|
437
|
+
}), c;
|
|
438
|
+
}, [z]), d = U("card", i), [k, ee, ae] = Le(d), te = /* @__PURE__ */ n.createElement($e, {
|
|
439
|
+
loading: !0,
|
|
440
|
+
active: !0,
|
|
441
|
+
paragraph: {
|
|
442
|
+
rows: 4
|
|
443
|
+
},
|
|
444
|
+
title: !1
|
|
445
|
+
}, z), R = H !== void 0, re = Object.assign(Object.assign({}, q), {
|
|
446
|
+
[R ? "activeKey" : "defaultActiveKey"]: R ? H : K,
|
|
447
|
+
tabBarExtraContent: F
|
|
448
|
+
});
|
|
449
|
+
let I;
|
|
450
|
+
const S = he(w), ie = !S || S === "default" ? "large" : S, W = v ? /* @__PURE__ */ n.createElement(fe, Object.assign({
|
|
451
|
+
size: ie
|
|
452
|
+
}, re, {
|
|
453
|
+
className: `${d}-head-tabs`,
|
|
454
|
+
onChange: Y,
|
|
455
|
+
items: v.map((c) => {
|
|
456
|
+
var {
|
|
457
|
+
tab: s
|
|
458
|
+
} = c, $ = D(c, ["tab"]);
|
|
459
|
+
return Object.assign({
|
|
460
|
+
label: s
|
|
461
|
+
}, $);
|
|
462
|
+
})
|
|
463
|
+
})) : null;
|
|
464
|
+
if (f || g || W) {
|
|
465
|
+
const c = b(`${d}-head`, u("header")), s = b(`${d}-head-title`, u("title")), $ = b(`${d}-extra`, u("extra")), T = Object.assign(Object.assign({}, p), h("header"));
|
|
466
|
+
I = /* @__PURE__ */ n.createElement("div", {
|
|
467
|
+
className: c,
|
|
468
|
+
style: T
|
|
469
|
+
}, /* @__PURE__ */ n.createElement("div", {
|
|
470
|
+
className: `${d}-head-wrapper`
|
|
471
|
+
}, f && /* @__PURE__ */ n.createElement("div", {
|
|
472
|
+
className: s,
|
|
473
|
+
style: h("title")
|
|
474
|
+
}, f), g && /* @__PURE__ */ n.createElement("div", {
|
|
475
|
+
className: $,
|
|
476
|
+
style: h("extra")
|
|
477
|
+
}, g)), W);
|
|
478
|
+
}
|
|
479
|
+
const oe = b(`${d}-cover`, u("cover")), ne = M ? /* @__PURE__ */ n.createElement("div", {
|
|
480
|
+
className: oe,
|
|
481
|
+
style: h("cover")
|
|
482
|
+
}, M) : null, se = b(`${d}-body`, u("body")), de = Object.assign(Object.assign({}, y), h("body")), le = /* @__PURE__ */ n.createElement("div", {
|
|
483
|
+
className: se,
|
|
484
|
+
style: de
|
|
485
|
+
}, C ? te : z), ce = b(`${d}-actions`, u("actions")), ge = j != null && j.length ? /* @__PURE__ */ n.createElement(Me, {
|
|
486
|
+
actionClasses: ce,
|
|
487
|
+
actionStyle: h("actions"),
|
|
488
|
+
actions: j
|
|
489
|
+
}) : null, me = ye(X, ["onTabChange"]), be = b(d, m == null ? void 0 : m.className, {
|
|
490
|
+
[`${d}-loading`]: C,
|
|
491
|
+
[`${d}-bordered`]: Q !== "borderless",
|
|
492
|
+
[`${d}-hoverable`]: V,
|
|
493
|
+
[`${d}-contain-grid`]: Z,
|
|
494
|
+
[`${d}-contain-tabs`]: v == null ? void 0 : v.length,
|
|
495
|
+
[`${d}-${S}`]: S,
|
|
496
|
+
[`${d}-type-${L}`]: !!L,
|
|
497
|
+
[`${d}-rtl`]: J === "rtl"
|
|
498
|
+
}, t, r, ee, ae), pe = Object.assign(Object.assign({}, m == null ? void 0 : m.style), l);
|
|
499
|
+
return k(/* @__PURE__ */ n.createElement("div", Object.assign({
|
|
500
|
+
ref: a
|
|
501
|
+
}, me, {
|
|
502
|
+
className: be,
|
|
503
|
+
style: pe
|
|
504
|
+
}), I, ne, le, ge));
|
|
505
|
+
});
|
|
506
|
+
var Re = function(e, a) {
|
|
507
|
+
var i = {};
|
|
508
|
+
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && a.indexOf(t) < 0 && (i[t] = e[t]);
|
|
509
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, t = Object.getOwnPropertySymbols(e); r < t.length; r++)
|
|
510
|
+
a.indexOf(t[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[r]) && (i[t[r]] = e[t[r]]);
|
|
511
|
+
return i;
|
|
512
|
+
};
|
|
513
|
+
const Ie = (e) => {
|
|
514
|
+
const {
|
|
515
|
+
prefixCls: a,
|
|
516
|
+
className: i,
|
|
517
|
+
avatar: t,
|
|
518
|
+
title: r,
|
|
519
|
+
description: l
|
|
520
|
+
} = e, g = Re(e, ["prefixCls", "className", "avatar", "title", "description"]), {
|
|
521
|
+
getPrefixCls: p
|
|
522
|
+
} = n.useContext(B), y = p("card", a), f = b(`${y}-meta`, i), C = t ? /* @__PURE__ */ n.createElement("div", {
|
|
523
|
+
className: `${y}-meta-avatar`
|
|
524
|
+
}, t) : null, x = r ? /* @__PURE__ */ n.createElement("div", {
|
|
525
|
+
className: `${y}-meta-title`
|
|
526
|
+
}, r) : null, O = l ? /* @__PURE__ */ n.createElement("div", {
|
|
527
|
+
className: `${y}-meta-description`
|
|
528
|
+
}, l) : null, w = x || O ? /* @__PURE__ */ n.createElement("div", {
|
|
529
|
+
className: `${y}-meta-detail`
|
|
530
|
+
}, x, O) : null;
|
|
531
|
+
return /* @__PURE__ */ n.createElement("div", Object.assign({}, g, {
|
|
532
|
+
className: f
|
|
533
|
+
}), C, w);
|
|
534
|
+
}, G = He;
|
|
535
|
+
G.Grid = A;
|
|
536
|
+
G.Meta = Ie;
|
|
537
|
+
process.env.NODE_ENV !== "production" && (G.displayName = "Card");
|
|
538
|
+
export {
|
|
539
|
+
G as C
|
|
540
|
+
};
|