@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,772 @@
|
|
|
1
|
+
import * as c from "react";
|
|
2
|
+
import { createContext as ue, useContext as ne } from "react";
|
|
3
|
+
import { H as Yt, n as fe, S as G, c as ge, I as Kt, J as zt, K as oe, L as me, M as Ut, C as H, N as pe, O as qt, P as Bt, Q as ae, T as Gt, U as Ht, W as Qt, d as Jt } from "./CSSMotionList-DB0khM6h.js";
|
|
4
|
+
import { w as ve, f as D, k as Xt, l as Zt, m as er, _ as z, n as tr, d as rr, u as nr, F as Y, h as se } from "./presets-CSXMiWyc.js";
|
|
5
|
+
import { I as or } from "./Context-2_suFYDs.js";
|
|
6
|
+
function ar(e, t) {
|
|
7
|
+
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, n = /* @__PURE__ */ new Set();
|
|
8
|
+
function i(l, o) {
|
|
9
|
+
var s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 1, d = n.has(l);
|
|
10
|
+
if (ve(!d, "Warning: There may be circular references"), d)
|
|
11
|
+
return !1;
|
|
12
|
+
if (l === o)
|
|
13
|
+
return !0;
|
|
14
|
+
if (r && s > 1)
|
|
15
|
+
return !1;
|
|
16
|
+
n.add(l);
|
|
17
|
+
var a = s + 1;
|
|
18
|
+
if (Array.isArray(l)) {
|
|
19
|
+
if (!Array.isArray(o) || l.length !== o.length)
|
|
20
|
+
return !1;
|
|
21
|
+
for (var f = 0; f < l.length; f++)
|
|
22
|
+
if (!i(l[f], o[f], a))
|
|
23
|
+
return !1;
|
|
24
|
+
return !0;
|
|
25
|
+
}
|
|
26
|
+
if (l && o && D(l) === "object" && D(o) === "object") {
|
|
27
|
+
var p = Object.keys(l);
|
|
28
|
+
return p.length !== Object.keys(o).length ? !1 : p.every(function(b) {
|
|
29
|
+
return i(l[b], o[b], a);
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
return !1;
|
|
33
|
+
}
|
|
34
|
+
return i(e, t);
|
|
35
|
+
}
|
|
36
|
+
function sr(e) {
|
|
37
|
+
return Xt(e) || Yt(e) || Zt(e) || er();
|
|
38
|
+
}
|
|
39
|
+
function U(e, t) {
|
|
40
|
+
for (var r = e, n = 0; n < t.length; n += 1) {
|
|
41
|
+
if (r == null)
|
|
42
|
+
return;
|
|
43
|
+
r = r[t[n]];
|
|
44
|
+
}
|
|
45
|
+
return r;
|
|
46
|
+
}
|
|
47
|
+
function be(e, t, r, n) {
|
|
48
|
+
if (!t.length)
|
|
49
|
+
return r;
|
|
50
|
+
var i = sr(t), l = i[0], o = i.slice(1), s;
|
|
51
|
+
return !e && typeof l == "number" ? s = [] : Array.isArray(e) ? s = fe(e) : s = z({}, e), n && r === void 0 && o.length === 1 ? delete s[l][o[0]] : s[l] = be(s[l], o, r, n), s;
|
|
52
|
+
}
|
|
53
|
+
function K(e, t, r) {
|
|
54
|
+
var n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1;
|
|
55
|
+
return t.length && n && r === void 0 && !U(e, t.slice(0, -1)) ? e : be(e, t, r, n);
|
|
56
|
+
}
|
|
57
|
+
function ir(e) {
|
|
58
|
+
return D(e) === "object" && e !== null && Object.getPrototypeOf(e) === Object.prototype;
|
|
59
|
+
}
|
|
60
|
+
function ie(e) {
|
|
61
|
+
return Array.isArray(e) ? [] : {};
|
|
62
|
+
}
|
|
63
|
+
var lr = typeof Reflect > "u" ? Object.keys : Reflect.ownKeys;
|
|
64
|
+
function cr() {
|
|
65
|
+
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
|
|
66
|
+
t[r] = arguments[r];
|
|
67
|
+
var n = ie(t[0]);
|
|
68
|
+
return t.forEach(function(i) {
|
|
69
|
+
function l(o, s) {
|
|
70
|
+
var d = new Set(s), a = U(i, o), f = Array.isArray(a);
|
|
71
|
+
if (f || ir(a)) {
|
|
72
|
+
if (!d.has(a)) {
|
|
73
|
+
d.add(a);
|
|
74
|
+
var p = U(n, o);
|
|
75
|
+
f ? n = K(n, o, []) : (!p || D(p) !== "object") && (n = K(n, o, ie(a))), lr(a).forEach(function(b) {
|
|
76
|
+
l([].concat(fe(o), [b]), d);
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
} else
|
|
80
|
+
n = K(n, o, a);
|
|
81
|
+
}
|
|
82
|
+
l([]);
|
|
83
|
+
}), n;
|
|
84
|
+
}
|
|
85
|
+
function he() {
|
|
86
|
+
}
|
|
87
|
+
let P = null;
|
|
88
|
+
function dr() {
|
|
89
|
+
P = null, tr();
|
|
90
|
+
}
|
|
91
|
+
let w = he;
|
|
92
|
+
process.env.NODE_ENV !== "production" && (w = (e, t, r) => {
|
|
93
|
+
ve(e, `[antd: ${t}] ${r}`), process.env.NODE_ENV === "test" && dr();
|
|
94
|
+
});
|
|
95
|
+
const Ce = /* @__PURE__ */ c.createContext({}), R = process.env.NODE_ENV !== "production" ? (e) => {
|
|
96
|
+
const {
|
|
97
|
+
strict: t
|
|
98
|
+
} = c.useContext(Ce), r = (n, i, l) => {
|
|
99
|
+
if (!n)
|
|
100
|
+
if (t === !1 && i === "deprecated") {
|
|
101
|
+
const o = P;
|
|
102
|
+
P || (P = {}), P[e] = P[e] || [], P[e].includes(l || "") || P[e].push(l || ""), o || console.warn("[antd] There exists deprecated usage in your code:", P);
|
|
103
|
+
} else
|
|
104
|
+
process.env.NODE_ENV !== "production" && w(n, e, l);
|
|
105
|
+
};
|
|
106
|
+
return r.deprecated = (n, i, l, o) => {
|
|
107
|
+
r(n, "deprecated", `\`${i}\` is deprecated. Please use \`${l}\` instead.${o ? ` ${o}` : ""}`);
|
|
108
|
+
}, r;
|
|
109
|
+
} : () => {
|
|
110
|
+
const e = () => {
|
|
111
|
+
};
|
|
112
|
+
return e.deprecated = he, e;
|
|
113
|
+
}, ur = /* @__PURE__ */ ue(void 0);
|
|
114
|
+
var fr = {
|
|
115
|
+
// Options
|
|
116
|
+
items_per_page: "/ page",
|
|
117
|
+
jump_to: "Go to",
|
|
118
|
+
jump_to_confirm: "confirm",
|
|
119
|
+
page: "Page",
|
|
120
|
+
// Pagination
|
|
121
|
+
prev_page: "Previous Page",
|
|
122
|
+
next_page: "Next Page",
|
|
123
|
+
prev_5: "Previous 5 Pages",
|
|
124
|
+
next_5: "Next 5 Pages",
|
|
125
|
+
prev_3: "Previous 3 Pages",
|
|
126
|
+
next_3: "Next 3 Pages",
|
|
127
|
+
page_size: "Page Size"
|
|
128
|
+
}, gr = {
|
|
129
|
+
yearFormat: "YYYY",
|
|
130
|
+
dayFormat: "D",
|
|
131
|
+
cellMeridiemFormat: "A",
|
|
132
|
+
monthBeforeYear: !0
|
|
133
|
+
}, mr = z(z({}, gr), {}, {
|
|
134
|
+
locale: "en_US",
|
|
135
|
+
today: "Today",
|
|
136
|
+
now: "Now",
|
|
137
|
+
backToToday: "Back to today",
|
|
138
|
+
ok: "OK",
|
|
139
|
+
clear: "Clear",
|
|
140
|
+
week: "Week",
|
|
141
|
+
month: "Month",
|
|
142
|
+
year: "Year",
|
|
143
|
+
timeSelect: "select time",
|
|
144
|
+
dateSelect: "select date",
|
|
145
|
+
weekSelect: "Choose a week",
|
|
146
|
+
monthSelect: "Choose a month",
|
|
147
|
+
yearSelect: "Choose a year",
|
|
148
|
+
decadeSelect: "Choose a decade",
|
|
149
|
+
dateFormat: "M/D/YYYY",
|
|
150
|
+
dateTimeFormat: "M/D/YYYY HH:mm:ss",
|
|
151
|
+
previousMonth: "Previous month (PageUp)",
|
|
152
|
+
nextMonth: "Next month (PageDown)",
|
|
153
|
+
previousYear: "Last year (Control + left)",
|
|
154
|
+
nextYear: "Next year (Control + right)",
|
|
155
|
+
previousDecade: "Last decade",
|
|
156
|
+
nextDecade: "Next decade",
|
|
157
|
+
previousCentury: "Last century",
|
|
158
|
+
nextCentury: "Next century"
|
|
159
|
+
});
|
|
160
|
+
const ye = {
|
|
161
|
+
placeholder: "Select time",
|
|
162
|
+
rangePlaceholder: ["Start time", "End time"]
|
|
163
|
+
}, le = {
|
|
164
|
+
lang: Object.assign({
|
|
165
|
+
placeholder: "Select date",
|
|
166
|
+
yearPlaceholder: "Select year",
|
|
167
|
+
quarterPlaceholder: "Select quarter",
|
|
168
|
+
monthPlaceholder: "Select month",
|
|
169
|
+
weekPlaceholder: "Select week",
|
|
170
|
+
rangePlaceholder: ["Start date", "End date"],
|
|
171
|
+
rangeYearPlaceholder: ["Start year", "End year"],
|
|
172
|
+
rangeQuarterPlaceholder: ["Start quarter", "End quarter"],
|
|
173
|
+
rangeMonthPlaceholder: ["Start month", "End month"],
|
|
174
|
+
rangeWeekPlaceholder: ["Start week", "End week"]
|
|
175
|
+
}, mr),
|
|
176
|
+
timePickerLocale: Object.assign({}, ye)
|
|
177
|
+
}, v = "${label} is not a valid ${type}", L = {
|
|
178
|
+
locale: "en",
|
|
179
|
+
Pagination: fr,
|
|
180
|
+
DatePicker: le,
|
|
181
|
+
TimePicker: ye,
|
|
182
|
+
Calendar: le,
|
|
183
|
+
global: {
|
|
184
|
+
placeholder: "Please select"
|
|
185
|
+
},
|
|
186
|
+
Table: {
|
|
187
|
+
filterTitle: "Filter menu",
|
|
188
|
+
filterConfirm: "OK",
|
|
189
|
+
filterReset: "Reset",
|
|
190
|
+
filterEmptyText: "No filters",
|
|
191
|
+
filterCheckAll: "Select all items",
|
|
192
|
+
filterSearchPlaceholder: "Search in filters",
|
|
193
|
+
emptyText: "No data",
|
|
194
|
+
selectAll: "Select current page",
|
|
195
|
+
selectInvert: "Invert current page",
|
|
196
|
+
selectNone: "Clear all data",
|
|
197
|
+
selectionAll: "Select all data",
|
|
198
|
+
sortTitle: "Sort",
|
|
199
|
+
expand: "Expand row",
|
|
200
|
+
collapse: "Collapse row",
|
|
201
|
+
triggerDesc: "Click to sort descending",
|
|
202
|
+
triggerAsc: "Click to sort ascending",
|
|
203
|
+
cancelSort: "Click to cancel sorting"
|
|
204
|
+
},
|
|
205
|
+
Tour: {
|
|
206
|
+
Next: "Next",
|
|
207
|
+
Previous: "Previous",
|
|
208
|
+
Finish: "Finish"
|
|
209
|
+
},
|
|
210
|
+
Modal: {
|
|
211
|
+
okText: "OK",
|
|
212
|
+
cancelText: "Cancel",
|
|
213
|
+
justOkText: "OK"
|
|
214
|
+
},
|
|
215
|
+
Popconfirm: {
|
|
216
|
+
okText: "OK",
|
|
217
|
+
cancelText: "Cancel"
|
|
218
|
+
},
|
|
219
|
+
Transfer: {
|
|
220
|
+
titles: ["", ""],
|
|
221
|
+
searchPlaceholder: "Search here",
|
|
222
|
+
itemUnit: "item",
|
|
223
|
+
itemsUnit: "items",
|
|
224
|
+
remove: "Remove",
|
|
225
|
+
selectCurrent: "Select current page",
|
|
226
|
+
removeCurrent: "Remove current page",
|
|
227
|
+
selectAll: "Select all data",
|
|
228
|
+
deselectAll: "Deselect all data",
|
|
229
|
+
removeAll: "Remove all data",
|
|
230
|
+
selectInvert: "Invert current page"
|
|
231
|
+
},
|
|
232
|
+
Upload: {
|
|
233
|
+
uploading: "Uploading...",
|
|
234
|
+
removeFile: "Remove file",
|
|
235
|
+
uploadError: "Upload error",
|
|
236
|
+
previewFile: "Preview file",
|
|
237
|
+
downloadFile: "Download file"
|
|
238
|
+
},
|
|
239
|
+
Empty: {
|
|
240
|
+
description: "No data"
|
|
241
|
+
},
|
|
242
|
+
Icon: {
|
|
243
|
+
icon: "icon"
|
|
244
|
+
},
|
|
245
|
+
Text: {
|
|
246
|
+
edit: "Edit",
|
|
247
|
+
copy: "Copy",
|
|
248
|
+
copied: "Copied",
|
|
249
|
+
expand: "Expand",
|
|
250
|
+
collapse: "Collapse"
|
|
251
|
+
},
|
|
252
|
+
Form: {
|
|
253
|
+
optional: "(optional)",
|
|
254
|
+
defaultValidateMessages: {
|
|
255
|
+
default: "Field validation error for ${label}",
|
|
256
|
+
required: "Please enter ${label}",
|
|
257
|
+
enum: "${label} must be one of [${enum}]",
|
|
258
|
+
whitespace: "${label} cannot be a blank character",
|
|
259
|
+
date: {
|
|
260
|
+
format: "${label} date format is invalid",
|
|
261
|
+
parse: "${label} cannot be converted to a date",
|
|
262
|
+
invalid: "${label} is an invalid date"
|
|
263
|
+
},
|
|
264
|
+
types: {
|
|
265
|
+
string: v,
|
|
266
|
+
method: v,
|
|
267
|
+
array: v,
|
|
268
|
+
object: v,
|
|
269
|
+
number: v,
|
|
270
|
+
date: v,
|
|
271
|
+
boolean: v,
|
|
272
|
+
integer: v,
|
|
273
|
+
float: v,
|
|
274
|
+
regexp: v,
|
|
275
|
+
email: v,
|
|
276
|
+
url: v,
|
|
277
|
+
hex: v
|
|
278
|
+
},
|
|
279
|
+
string: {
|
|
280
|
+
len: "${label} must be ${len} characters",
|
|
281
|
+
min: "${label} must be at least ${min} characters",
|
|
282
|
+
max: "${label} must be up to ${max} characters",
|
|
283
|
+
range: "${label} must be between ${min}-${max} characters"
|
|
284
|
+
},
|
|
285
|
+
number: {
|
|
286
|
+
len: "${label} must be equal to ${len}",
|
|
287
|
+
min: "${label} must be minimum ${min}",
|
|
288
|
+
max: "${label} must be maximum ${max}",
|
|
289
|
+
range: "${label} must be between ${min}-${max}"
|
|
290
|
+
},
|
|
291
|
+
array: {
|
|
292
|
+
len: "Must be ${len} ${label}",
|
|
293
|
+
min: "At least ${min} ${label}",
|
|
294
|
+
max: "At most ${max} ${label}",
|
|
295
|
+
range: "The amount of ${label} must be between ${min}-${max}"
|
|
296
|
+
},
|
|
297
|
+
pattern: {
|
|
298
|
+
mismatch: "${label} does not match the pattern ${pattern}"
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
},
|
|
302
|
+
Image: {
|
|
303
|
+
preview: "Preview"
|
|
304
|
+
},
|
|
305
|
+
QRCode: {
|
|
306
|
+
expired: "QR code expired",
|
|
307
|
+
refresh: "Refresh",
|
|
308
|
+
scanned: "Scanned"
|
|
309
|
+
},
|
|
310
|
+
ColorPicker: {
|
|
311
|
+
presetEmpty: "Empty",
|
|
312
|
+
transparent: "Transparent",
|
|
313
|
+
singleColor: "Single",
|
|
314
|
+
gradientColor: "Gradient"
|
|
315
|
+
}
|
|
316
|
+
};
|
|
317
|
+
let M = Object.assign({}, L.Modal), A = [];
|
|
318
|
+
const ce = () => A.reduce((e, t) => Object.assign(Object.assign({}, e), t), L.Modal);
|
|
319
|
+
function pr(e) {
|
|
320
|
+
if (e) {
|
|
321
|
+
const t = Object.assign({}, e);
|
|
322
|
+
return A.push(t), M = ce(), () => {
|
|
323
|
+
A = A.filter((r) => r !== t), M = ce();
|
|
324
|
+
};
|
|
325
|
+
}
|
|
326
|
+
M = Object.assign({}, L.Modal);
|
|
327
|
+
}
|
|
328
|
+
function Rr() {
|
|
329
|
+
return M;
|
|
330
|
+
}
|
|
331
|
+
const Pe = /* @__PURE__ */ ue(void 0), xe = "internalMark", Oe = (e) => {
|
|
332
|
+
const {
|
|
333
|
+
locale: t = {},
|
|
334
|
+
children: r,
|
|
335
|
+
_ANT_MARK__: n
|
|
336
|
+
} = e;
|
|
337
|
+
if (process.env.NODE_ENV !== "production") {
|
|
338
|
+
const l = R("LocaleProvider");
|
|
339
|
+
process.env.NODE_ENV !== "production" && l(n === xe, "deprecated", "`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale");
|
|
340
|
+
}
|
|
341
|
+
c.useEffect(() => pr(t == null ? void 0 : t.Modal), [t]);
|
|
342
|
+
const i = c.useMemo(() => Object.assign(Object.assign({}, t), {
|
|
343
|
+
exist: !0
|
|
344
|
+
}), [t]);
|
|
345
|
+
return /* @__PURE__ */ c.createElement(Pe.Provider, {
|
|
346
|
+
value: i
|
|
347
|
+
}, r);
|
|
348
|
+
};
|
|
349
|
+
process.env.NODE_ENV !== "production" && (Oe.displayName = "LocaleProvider");
|
|
350
|
+
const vr = `-ant-${Date.now()}-${Math.random()}`;
|
|
351
|
+
function br(e, t) {
|
|
352
|
+
const r = {}, n = (o, s) => {
|
|
353
|
+
let d = o.clone();
|
|
354
|
+
return d = (s == null ? void 0 : s(d)) || d, d.toRgbString();
|
|
355
|
+
}, i = (o, s) => {
|
|
356
|
+
const d = new Y(o), a = se(d.toRgbString());
|
|
357
|
+
r[`${s}-color`] = n(d), r[`${s}-color-disabled`] = a[1], r[`${s}-color-hover`] = a[4], r[`${s}-color-active`] = a[6], r[`${s}-color-outline`] = d.clone().setA(0.2).toRgbString(), r[`${s}-color-deprecated-bg`] = a[0], r[`${s}-color-deprecated-border`] = a[2];
|
|
358
|
+
};
|
|
359
|
+
if (t.primaryColor) {
|
|
360
|
+
i(t.primaryColor, "primary");
|
|
361
|
+
const o = new Y(t.primaryColor), s = se(o.toRgbString());
|
|
362
|
+
s.forEach((a, f) => {
|
|
363
|
+
r[`primary-${f + 1}`] = a;
|
|
364
|
+
}), r["primary-color-deprecated-l-35"] = n(o, (a) => a.lighten(35)), r["primary-color-deprecated-l-20"] = n(o, (a) => a.lighten(20)), r["primary-color-deprecated-t-20"] = n(o, (a) => a.tint(20)), r["primary-color-deprecated-t-50"] = n(o, (a) => a.tint(50)), r["primary-color-deprecated-f-12"] = n(o, (a) => a.setA(a.a * 0.12));
|
|
365
|
+
const d = new Y(s[0]);
|
|
366
|
+
r["primary-color-active-deprecated-f-30"] = n(d, (a) => a.setA(a.a * 0.3)), r["primary-color-active-deprecated-d-02"] = n(d, (a) => a.darken(2));
|
|
367
|
+
}
|
|
368
|
+
return t.successColor && i(t.successColor, "success"), t.warningColor && i(t.warningColor, "warning"), t.errorColor && i(t.errorColor, "error"), t.infoColor && i(t.infoColor, "info"), `
|
|
369
|
+
:root {
|
|
370
|
+
${Object.keys(r).map((o) => `--${e}-${o}: ${r[o]};`).join(`
|
|
371
|
+
`)}
|
|
372
|
+
}
|
|
373
|
+
`.trim();
|
|
374
|
+
}
|
|
375
|
+
function hr(e, t) {
|
|
376
|
+
const r = br(e, t);
|
|
377
|
+
rr() ? nr(r, `${vr}-dynamic-theme`) : process.env.NODE_ENV !== "production" && w(!1, "ConfigProvider", "SSR do not support dynamic theme with css variables.");
|
|
378
|
+
}
|
|
379
|
+
const q = /* @__PURE__ */ c.createContext(!1), Cr = (e) => {
|
|
380
|
+
let {
|
|
381
|
+
children: t,
|
|
382
|
+
disabled: r
|
|
383
|
+
} = e;
|
|
384
|
+
const n = c.useContext(q);
|
|
385
|
+
return /* @__PURE__ */ c.createElement(q.Provider, {
|
|
386
|
+
value: r ?? n
|
|
387
|
+
}, t);
|
|
388
|
+
};
|
|
389
|
+
function yr() {
|
|
390
|
+
const e = ne(q), t = ne(G);
|
|
391
|
+
return {
|
|
392
|
+
componentDisabled: e,
|
|
393
|
+
componentSize: t
|
|
394
|
+
};
|
|
395
|
+
}
|
|
396
|
+
const Pr = (e, t) => {
|
|
397
|
+
const [r, n] = ge();
|
|
398
|
+
return Kt({
|
|
399
|
+
token: n,
|
|
400
|
+
hashId: "",
|
|
401
|
+
path: ["ant-design-icons", e],
|
|
402
|
+
nonce: () => t == null ? void 0 : t.nonce,
|
|
403
|
+
layer: {
|
|
404
|
+
name: "antd"
|
|
405
|
+
}
|
|
406
|
+
}, () => [zt(e)]);
|
|
407
|
+
}, xr = Object.assign({}, c), {
|
|
408
|
+
useId: de
|
|
409
|
+
} = xr, Or = () => "", Er = typeof de > "u" ? Or : de;
|
|
410
|
+
function Sr(e, t, r) {
|
|
411
|
+
var n, i;
|
|
412
|
+
const l = R("ConfigProvider"), o = e || {}, s = o.inherit === !1 || !t ? Object.assign(Object.assign({}, oe), {
|
|
413
|
+
hashed: (n = t == null ? void 0 : t.hashed) !== null && n !== void 0 ? n : oe.hashed,
|
|
414
|
+
cssVar: t == null ? void 0 : t.cssVar
|
|
415
|
+
}) : t, d = Er();
|
|
416
|
+
if (process.env.NODE_ENV !== "production") {
|
|
417
|
+
const a = o.cssVar || s.cssVar, f = !!(typeof o.cssVar == "object" && (!((i = o.cssVar) === null || i === void 0) && i.key) || d);
|
|
418
|
+
process.env.NODE_ENV !== "production" && l(!a || f, "breaking", "Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.");
|
|
419
|
+
}
|
|
420
|
+
return me(() => {
|
|
421
|
+
var a, f;
|
|
422
|
+
if (!e)
|
|
423
|
+
return t;
|
|
424
|
+
const p = Object.assign({}, s.components);
|
|
425
|
+
Object.keys(e.components || {}).forEach((x) => {
|
|
426
|
+
p[x] = Object.assign(Object.assign({}, p[x]), e.components[x]);
|
|
427
|
+
});
|
|
428
|
+
const b = `css-var-${d.replace(/:/g, "")}`, O = ((a = o.cssVar) !== null && a !== void 0 ? a : s.cssVar) && Object.assign(Object.assign(Object.assign({
|
|
429
|
+
prefix: r == null ? void 0 : r.prefixCls
|
|
430
|
+
}, typeof s.cssVar == "object" ? s.cssVar : {}), typeof o.cssVar == "object" ? o.cssVar : {}), {
|
|
431
|
+
key: typeof o.cssVar == "object" && ((f = o.cssVar) === null || f === void 0 ? void 0 : f.key) || b
|
|
432
|
+
});
|
|
433
|
+
return Object.assign(Object.assign(Object.assign({}, s), o), {
|
|
434
|
+
token: Object.assign(Object.assign({}, s.token), o.token),
|
|
435
|
+
components: p,
|
|
436
|
+
cssVar: O
|
|
437
|
+
});
|
|
438
|
+
}, [o, s], (a, f) => a.some((p, b) => {
|
|
439
|
+
const O = f[b];
|
|
440
|
+
return !ar(p, O, !0);
|
|
441
|
+
}));
|
|
442
|
+
}
|
|
443
|
+
function $r(e) {
|
|
444
|
+
const {
|
|
445
|
+
children: t
|
|
446
|
+
} = e, [, r] = ge(), {
|
|
447
|
+
motion: n
|
|
448
|
+
} = r, i = c.useRef(!1);
|
|
449
|
+
return i.current = i.current || n === !1, i.current ? /* @__PURE__ */ c.createElement(Ut, {
|
|
450
|
+
motion: n
|
|
451
|
+
}, t) : t;
|
|
452
|
+
}
|
|
453
|
+
const Ee = /* @__PURE__ */ c.memo((e) => {
|
|
454
|
+
let {
|
|
455
|
+
dropdownMatchSelectWidth: t
|
|
456
|
+
} = e;
|
|
457
|
+
return R("ConfigProvider").deprecated(t === void 0, "dropdownMatchSelectWidth", "popupMatchSelectWidth"), null;
|
|
458
|
+
});
|
|
459
|
+
process.env.NODE_ENV !== "production" && (Ee.displayName = "PropWarning");
|
|
460
|
+
const wr = process.env.NODE_ENV !== "production" ? Ee : () => null;
|
|
461
|
+
var jr = function(e, t) {
|
|
462
|
+
var r = {};
|
|
463
|
+
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
464
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
465
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
466
|
+
return r;
|
|
467
|
+
};
|
|
468
|
+
let B = !1;
|
|
469
|
+
const Lr = process.env.NODE_ENV !== "production" ? (e) => {
|
|
470
|
+
process.env.NODE_ENV !== "production" && w(!B, e, "Static function can not consume context like dynamic theme. Please use 'App' component instead.");
|
|
471
|
+
} : (
|
|
472
|
+
/* istanbul ignore next */
|
|
473
|
+
null
|
|
474
|
+
), _r = ["getTargetContainer", "getPopupContainer", "renderEmpty", "input", "pagination", "form", "select", "button"];
|
|
475
|
+
let I, Se, $e, we;
|
|
476
|
+
function T() {
|
|
477
|
+
return I || Jt;
|
|
478
|
+
}
|
|
479
|
+
function kr() {
|
|
480
|
+
return Se || pe;
|
|
481
|
+
}
|
|
482
|
+
function Nr(e) {
|
|
483
|
+
return Object.keys(e).some((t) => t.endsWith("Color"));
|
|
484
|
+
}
|
|
485
|
+
const Vr = (e) => {
|
|
486
|
+
const {
|
|
487
|
+
prefixCls: t,
|
|
488
|
+
iconPrefixCls: r,
|
|
489
|
+
theme: n,
|
|
490
|
+
holderRender: i
|
|
491
|
+
} = e;
|
|
492
|
+
t !== void 0 && (I = t), r !== void 0 && (Se = r), "holderRender" in e && (we = i), n && (Nr(n) ? (process.env.NODE_ENV !== "production" && w(!1, "ConfigProvider", "`config` of css variable theme is not work in v5. Please use new `theme` config instead."), hr(T(), n)) : $e = n);
|
|
493
|
+
}, Wr = () => ({
|
|
494
|
+
getPrefixCls: (e, t) => t || (e ? `${T()}-${e}` : T()),
|
|
495
|
+
getIconPrefixCls: kr,
|
|
496
|
+
getRootPrefixCls: () => I || T(),
|
|
497
|
+
getTheme: () => $e,
|
|
498
|
+
holderRender: we
|
|
499
|
+
}), Mr = (e) => {
|
|
500
|
+
const {
|
|
501
|
+
children: t,
|
|
502
|
+
csp: r,
|
|
503
|
+
autoInsertSpaceInButton: n,
|
|
504
|
+
alert: i,
|
|
505
|
+
anchor: l,
|
|
506
|
+
form: o,
|
|
507
|
+
locale: s,
|
|
508
|
+
componentSize: d,
|
|
509
|
+
direction: a,
|
|
510
|
+
space: f,
|
|
511
|
+
splitter: p,
|
|
512
|
+
virtual: b,
|
|
513
|
+
dropdownMatchSelectWidth: O,
|
|
514
|
+
popupMatchSelectWidth: x,
|
|
515
|
+
popupOverflow: je,
|
|
516
|
+
legacyLocale: _e,
|
|
517
|
+
parentContext: E,
|
|
518
|
+
iconPrefixCls: ke,
|
|
519
|
+
theme: Q,
|
|
520
|
+
componentDisabled: J,
|
|
521
|
+
segmented: Ne,
|
|
522
|
+
statistic: Ve,
|
|
523
|
+
spin: Me,
|
|
524
|
+
calendar: Ae,
|
|
525
|
+
carousel: Te,
|
|
526
|
+
cascader: De,
|
|
527
|
+
collapse: Ie,
|
|
528
|
+
typography: Re,
|
|
529
|
+
checkbox: Le,
|
|
530
|
+
descriptions: We,
|
|
531
|
+
divider: Fe,
|
|
532
|
+
drawer: Ye,
|
|
533
|
+
skeleton: Ke,
|
|
534
|
+
steps: ze,
|
|
535
|
+
image: Ue,
|
|
536
|
+
layout: qe,
|
|
537
|
+
list: Be,
|
|
538
|
+
mentions: Ge,
|
|
539
|
+
modal: He,
|
|
540
|
+
progress: Qe,
|
|
541
|
+
result: Je,
|
|
542
|
+
slider: Xe,
|
|
543
|
+
breadcrumb: Ze,
|
|
544
|
+
menu: et,
|
|
545
|
+
pagination: tt,
|
|
546
|
+
input: rt,
|
|
547
|
+
textArea: nt,
|
|
548
|
+
empty: ot,
|
|
549
|
+
badge: at,
|
|
550
|
+
radio: st,
|
|
551
|
+
rate: it,
|
|
552
|
+
switch: lt,
|
|
553
|
+
transfer: ct,
|
|
554
|
+
avatar: dt,
|
|
555
|
+
message: ut,
|
|
556
|
+
tag: ft,
|
|
557
|
+
table: gt,
|
|
558
|
+
card: mt,
|
|
559
|
+
tabs: pt,
|
|
560
|
+
timeline: vt,
|
|
561
|
+
timePicker: bt,
|
|
562
|
+
upload: ht,
|
|
563
|
+
notification: Ct,
|
|
564
|
+
tree: yt,
|
|
565
|
+
colorPicker: Pt,
|
|
566
|
+
datePicker: xt,
|
|
567
|
+
rangePicker: Ot,
|
|
568
|
+
flex: Et,
|
|
569
|
+
wave: St,
|
|
570
|
+
dropdown: $t,
|
|
571
|
+
warning: wt,
|
|
572
|
+
tour: jt,
|
|
573
|
+
tooltip: _t,
|
|
574
|
+
popover: kt,
|
|
575
|
+
popconfirm: Nt,
|
|
576
|
+
floatButtonGroup: Vt,
|
|
577
|
+
variant: Mt,
|
|
578
|
+
inputNumber: At,
|
|
579
|
+
treeSelect: Tt
|
|
580
|
+
} = e, X = c.useCallback((u, m) => {
|
|
581
|
+
const {
|
|
582
|
+
prefixCls: h
|
|
583
|
+
} = e;
|
|
584
|
+
if (m)
|
|
585
|
+
return m;
|
|
586
|
+
const C = h || E.getPrefixCls("");
|
|
587
|
+
return u ? `${C}-${u}` : C;
|
|
588
|
+
}, [E.getPrefixCls, e.prefixCls]), _ = ke || E.iconPrefixCls || pe, k = r || E.csp;
|
|
589
|
+
Pr(_, k);
|
|
590
|
+
const N = Sr(Q, E.theme, {
|
|
591
|
+
prefixCls: X("")
|
|
592
|
+
});
|
|
593
|
+
process.env.NODE_ENV !== "production" && (B = B || !!N);
|
|
594
|
+
const W = {
|
|
595
|
+
csp: k,
|
|
596
|
+
autoInsertSpaceInButton: n,
|
|
597
|
+
alert: i,
|
|
598
|
+
anchor: l,
|
|
599
|
+
locale: s || _e,
|
|
600
|
+
direction: a,
|
|
601
|
+
space: f,
|
|
602
|
+
splitter: p,
|
|
603
|
+
virtual: b,
|
|
604
|
+
popupMatchSelectWidth: x ?? O,
|
|
605
|
+
popupOverflow: je,
|
|
606
|
+
getPrefixCls: X,
|
|
607
|
+
iconPrefixCls: _,
|
|
608
|
+
theme: N,
|
|
609
|
+
segmented: Ne,
|
|
610
|
+
statistic: Ve,
|
|
611
|
+
spin: Me,
|
|
612
|
+
calendar: Ae,
|
|
613
|
+
carousel: Te,
|
|
614
|
+
cascader: De,
|
|
615
|
+
collapse: Ie,
|
|
616
|
+
typography: Re,
|
|
617
|
+
checkbox: Le,
|
|
618
|
+
descriptions: We,
|
|
619
|
+
divider: Fe,
|
|
620
|
+
drawer: Ye,
|
|
621
|
+
skeleton: Ke,
|
|
622
|
+
steps: ze,
|
|
623
|
+
image: Ue,
|
|
624
|
+
input: rt,
|
|
625
|
+
textArea: nt,
|
|
626
|
+
layout: qe,
|
|
627
|
+
list: Be,
|
|
628
|
+
mentions: Ge,
|
|
629
|
+
modal: He,
|
|
630
|
+
progress: Qe,
|
|
631
|
+
result: Je,
|
|
632
|
+
slider: Xe,
|
|
633
|
+
breadcrumb: Ze,
|
|
634
|
+
menu: et,
|
|
635
|
+
pagination: tt,
|
|
636
|
+
empty: ot,
|
|
637
|
+
badge: at,
|
|
638
|
+
radio: st,
|
|
639
|
+
rate: it,
|
|
640
|
+
switch: lt,
|
|
641
|
+
transfer: ct,
|
|
642
|
+
avatar: dt,
|
|
643
|
+
message: ut,
|
|
644
|
+
tag: ft,
|
|
645
|
+
table: gt,
|
|
646
|
+
card: mt,
|
|
647
|
+
tabs: pt,
|
|
648
|
+
timeline: vt,
|
|
649
|
+
timePicker: bt,
|
|
650
|
+
upload: ht,
|
|
651
|
+
notification: Ct,
|
|
652
|
+
tree: yt,
|
|
653
|
+
colorPicker: Pt,
|
|
654
|
+
datePicker: xt,
|
|
655
|
+
rangePicker: Ot,
|
|
656
|
+
flex: Et,
|
|
657
|
+
wave: St,
|
|
658
|
+
dropdown: $t,
|
|
659
|
+
warning: wt,
|
|
660
|
+
tour: jt,
|
|
661
|
+
tooltip: _t,
|
|
662
|
+
popover: kt,
|
|
663
|
+
popconfirm: Nt,
|
|
664
|
+
floatButtonGroup: Vt,
|
|
665
|
+
variant: Mt,
|
|
666
|
+
inputNumber: At,
|
|
667
|
+
treeSelect: Tt
|
|
668
|
+
};
|
|
669
|
+
process.env.NODE_ENV !== "production" && R("ConfigProvider")(!("autoInsertSpaceInButton" in e), "deprecated", "`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");
|
|
670
|
+
const S = Object.assign({}, E);
|
|
671
|
+
Object.keys(W).forEach((u) => {
|
|
672
|
+
W[u] !== void 0 && (S[u] = W[u]);
|
|
673
|
+
}), _r.forEach((u) => {
|
|
674
|
+
const m = e[u];
|
|
675
|
+
m && (S[u] = m);
|
|
676
|
+
}), typeof n < "u" && (S.button = Object.assign({
|
|
677
|
+
autoInsertSpace: n
|
|
678
|
+
}, S.button));
|
|
679
|
+
const $ = me(() => S, S, (u, m) => {
|
|
680
|
+
const h = Object.keys(u), C = Object.keys(m);
|
|
681
|
+
return h.length !== C.length || h.some((V) => u[V] !== m[V]);
|
|
682
|
+
}), {
|
|
683
|
+
layer: Z
|
|
684
|
+
} = c.useContext(qt), Dt = c.useMemo(() => ({
|
|
685
|
+
prefixCls: _,
|
|
686
|
+
csp: k,
|
|
687
|
+
layer: Z ? "antd" : void 0
|
|
688
|
+
}), [_, k, Z]);
|
|
689
|
+
let g = /* @__PURE__ */ c.createElement(c.Fragment, null, /* @__PURE__ */ c.createElement(wr, {
|
|
690
|
+
dropdownMatchSelectWidth: O
|
|
691
|
+
}), t);
|
|
692
|
+
const ee = c.useMemo(() => {
|
|
693
|
+
var u, m, h, C;
|
|
694
|
+
return cr(((u = L.Form) === null || u === void 0 ? void 0 : u.defaultValidateMessages) || {}, ((h = (m = $.locale) === null || m === void 0 ? void 0 : m.Form) === null || h === void 0 ? void 0 : h.defaultValidateMessages) || {}, ((C = $.form) === null || C === void 0 ? void 0 : C.validateMessages) || {}, (o == null ? void 0 : o.validateMessages) || {});
|
|
695
|
+
}, [$, o == null ? void 0 : o.validateMessages]);
|
|
696
|
+
Object.keys(ee).length > 0 && (g = /* @__PURE__ */ c.createElement(ur.Provider, {
|
|
697
|
+
value: ee
|
|
698
|
+
}, g)), s && (g = /* @__PURE__ */ c.createElement(Oe, {
|
|
699
|
+
locale: s,
|
|
700
|
+
_ANT_MARK__: xe
|
|
701
|
+
}, g)), g = /* @__PURE__ */ c.createElement(or.Provider, {
|
|
702
|
+
value: Dt
|
|
703
|
+
}, g), d && (g = /* @__PURE__ */ c.createElement(Bt, {
|
|
704
|
+
size: d
|
|
705
|
+
}, g)), g = /* @__PURE__ */ c.createElement($r, null, g);
|
|
706
|
+
const It = c.useMemo(() => {
|
|
707
|
+
const u = N || {}, {
|
|
708
|
+
algorithm: m,
|
|
709
|
+
token: h,
|
|
710
|
+
components: C,
|
|
711
|
+
cssVar: V
|
|
712
|
+
} = u, Rt = jr(u, ["algorithm", "token", "components", "cssVar"]), te = m && (!Array.isArray(m) || m.length > 0) ? ae(m) : Gt, F = {};
|
|
713
|
+
Object.entries(C || {}).forEach((Lt) => {
|
|
714
|
+
let [Wt, Ft] = Lt;
|
|
715
|
+
const y = Object.assign({}, Ft);
|
|
716
|
+
"algorithm" in y && (y.algorithm === !0 ? y.theme = te : (Array.isArray(y.algorithm) || typeof y.algorithm == "function") && (y.theme = ae(y.algorithm)), delete y.algorithm), F[Wt] = y;
|
|
717
|
+
});
|
|
718
|
+
const re = Object.assign(Object.assign({}, Ht), h);
|
|
719
|
+
return Object.assign(Object.assign({}, Rt), {
|
|
720
|
+
theme: te,
|
|
721
|
+
token: re,
|
|
722
|
+
components: F,
|
|
723
|
+
override: Object.assign({
|
|
724
|
+
override: re
|
|
725
|
+
}, F),
|
|
726
|
+
cssVar: V
|
|
727
|
+
});
|
|
728
|
+
}, [N]);
|
|
729
|
+
return Q && (g = /* @__PURE__ */ c.createElement(Qt.Provider, {
|
|
730
|
+
value: It
|
|
731
|
+
}, g)), $.warning && (g = /* @__PURE__ */ c.createElement(Ce.Provider, {
|
|
732
|
+
value: $.warning
|
|
733
|
+
}, g)), J !== void 0 && (g = /* @__PURE__ */ c.createElement(Cr, {
|
|
734
|
+
disabled: J
|
|
735
|
+
}, g)), /* @__PURE__ */ c.createElement(H.Provider, {
|
|
736
|
+
value: $
|
|
737
|
+
}, g);
|
|
738
|
+
}, j = (e) => {
|
|
739
|
+
const t = c.useContext(H), r = c.useContext(Pe);
|
|
740
|
+
return /* @__PURE__ */ c.createElement(Mr, Object.assign({
|
|
741
|
+
parentContext: t,
|
|
742
|
+
legacyLocale: r
|
|
743
|
+
}, e));
|
|
744
|
+
};
|
|
745
|
+
j.ConfigContext = H;
|
|
746
|
+
j.SizeContext = G;
|
|
747
|
+
j.config = Vr;
|
|
748
|
+
j.useConfig = yr;
|
|
749
|
+
Object.defineProperty(j, "SizeContext", {
|
|
750
|
+
get: () => (process.env.NODE_ENV !== "production" && w(!1, "ConfigProvider", "ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."), G)
|
|
751
|
+
});
|
|
752
|
+
process.env.NODE_ENV !== "production" && (j.displayName = "ConfigProvider");
|
|
753
|
+
export {
|
|
754
|
+
j as C,
|
|
755
|
+
q as D,
|
|
756
|
+
Pe as L,
|
|
757
|
+
ur as V,
|
|
758
|
+
sr as _,
|
|
759
|
+
Cr as a,
|
|
760
|
+
Rr as b,
|
|
761
|
+
Lr as c,
|
|
762
|
+
R as d,
|
|
763
|
+
Wr as e,
|
|
764
|
+
le as f,
|
|
765
|
+
U as g,
|
|
766
|
+
fr as h,
|
|
767
|
+
ar as i,
|
|
768
|
+
L as l,
|
|
769
|
+
cr as m,
|
|
770
|
+
K as s,
|
|
771
|
+
w
|
|
772
|
+
};
|