@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,16 +1,16 @@
|
|
|
1
|
-
import { d as me } from "../../styled-components.browser.esm-
|
|
2
|
-
import * as
|
|
1
|
+
import { d as me } from "../../styled-components.browser.esm-C47QHsU4.js";
|
|
2
|
+
import * as i from "react";
|
|
3
3
|
import { useRef as re, useEffect as ye } from "react";
|
|
4
|
-
import {
|
|
5
|
-
import { R as
|
|
6
|
-
import { R as
|
|
7
|
-
import { R as
|
|
8
|
-
import {
|
|
4
|
+
import { a as ve, d as he, f as V, _ as oe, g as Ce, e as be, c as M, p as ee, F as $e } from "../../presets-CSXMiWyc.js";
|
|
5
|
+
import { R as Se } from "../../CheckCircleFilled-B-wrMduA.js";
|
|
6
|
+
import { R as ke } from "../../CheckOutlined-DTEHi_xG.js";
|
|
7
|
+
import { R as xe } from "../../CloseCircleFilled-WEQ0SaSW.js";
|
|
8
|
+
import { R as Ee } from "../../CloseOutlined-DzgBOns1.js";
|
|
9
9
|
import { o as Pe } from "../../omit-B_u6A-HL.js";
|
|
10
|
-
import {
|
|
11
|
-
import { T as
|
|
12
|
-
import {
|
|
13
|
-
import "../../
|
|
10
|
+
import { d as le } from "../../index-DCopujxC.js";
|
|
11
|
+
import { T as we } from "../../index-Y0KgiFZb.js";
|
|
12
|
+
import { g as Ne, m as Oe, j as Ie, f as _e, C as De } from "../../CSSMotionList-DB0khM6h.js";
|
|
13
|
+
import { K as je } from "../../Keyframes-CyO2Aeq-.js";
|
|
14
14
|
var We = {
|
|
15
15
|
percent: 0,
|
|
16
16
|
prefixCls: "rc-progress",
|
|
@@ -23,89 +23,89 @@ var We = {
|
|
|
23
23
|
}, Ae = function() {
|
|
24
24
|
var t = re([]), r = re(null);
|
|
25
25
|
return ye(function() {
|
|
26
|
-
var
|
|
26
|
+
var o = Date.now(), n = !1;
|
|
27
27
|
t.current.forEach(function(a) {
|
|
28
28
|
if (a) {
|
|
29
|
-
|
|
30
|
-
var
|
|
31
|
-
|
|
29
|
+
n = !0;
|
|
30
|
+
var s = a.style;
|
|
31
|
+
s.transitionDuration = ".3s, .3s, .3s, .06s", r.current && o - r.current < 100 && (s.transitionDuration = "0s, 0s");
|
|
32
32
|
}
|
|
33
|
-
}),
|
|
33
|
+
}), n && (r.current = Date.now());
|
|
34
34
|
}), t.current;
|
|
35
35
|
};
|
|
36
36
|
process.env.NODE_ENV;
|
|
37
|
-
var
|
|
37
|
+
var ne = 0, Le = process.env.NODE_ENV !== "test" && he();
|
|
38
38
|
function Re() {
|
|
39
39
|
var e;
|
|
40
|
-
return Le ? (e =
|
|
40
|
+
return Le ? (e = ne, ne += 1) : e = "TEST_OR_SSR", e;
|
|
41
41
|
}
|
|
42
42
|
const Te = function(e) {
|
|
43
|
-
var t =
|
|
44
|
-
return
|
|
45
|
-
|
|
46
|
-
}, []), e ||
|
|
43
|
+
var t = i.useState(), r = ve(t, 2), o = r[0], n = r[1];
|
|
44
|
+
return i.useEffect(function() {
|
|
45
|
+
n("rc_progress_".concat(Re()));
|
|
46
|
+
}, []), e || o;
|
|
47
47
|
};
|
|
48
48
|
var se = function(t) {
|
|
49
|
-
var r = t.bg,
|
|
50
|
-
return /* @__PURE__ */
|
|
49
|
+
var r = t.bg, o = t.children;
|
|
50
|
+
return /* @__PURE__ */ i.createElement("div", {
|
|
51
51
|
style: {
|
|
52
52
|
width: "100%",
|
|
53
53
|
height: "100%",
|
|
54
54
|
background: r
|
|
55
55
|
}
|
|
56
|
-
},
|
|
56
|
+
}, o);
|
|
57
57
|
};
|
|
58
58
|
function ie(e, t) {
|
|
59
59
|
return Object.keys(e).map(function(r) {
|
|
60
|
-
var
|
|
61
|
-
return "".concat(e[r], " ").concat(
|
|
60
|
+
var o = parseFloat(r), n = "".concat(Math.floor(o * t), "%");
|
|
61
|
+
return "".concat(e[r], " ").concat(n);
|
|
62
62
|
});
|
|
63
63
|
}
|
|
64
|
-
var de = /* @__PURE__ */
|
|
65
|
-
var r = e.prefixCls,
|
|
64
|
+
var de = /* @__PURE__ */ i.forwardRef(function(e, t) {
|
|
65
|
+
var r = e.prefixCls, o = e.color, n = e.gradientId, a = e.radius, s = e.style, l = e.ptg, c = e.strokeLinecap, f = e.strokeWidth, d = e.size, g = e.gapDegree, m = o && V(o) === "object", h = m ? "#FFF" : void 0, v = d / 2, C = /* @__PURE__ */ i.createElement("circle", {
|
|
66
66
|
className: "".concat(r, "-circle-path"),
|
|
67
67
|
r: a,
|
|
68
|
-
cx:
|
|
69
|
-
cy:
|
|
70
|
-
stroke:
|
|
68
|
+
cx: v,
|
|
69
|
+
cy: v,
|
|
70
|
+
stroke: h,
|
|
71
71
|
strokeLinecap: c,
|
|
72
72
|
strokeWidth: f,
|
|
73
73
|
opacity: l === 0 ? 0 : 1,
|
|
74
|
-
style:
|
|
74
|
+
style: s,
|
|
75
75
|
ref: t
|
|
76
76
|
});
|
|
77
|
-
if (!
|
|
77
|
+
if (!m)
|
|
78
78
|
return C;
|
|
79
|
-
var
|
|
80
|
-
return /* @__PURE__ */
|
|
81
|
-
id:
|
|
82
|
-
}, C), /* @__PURE__ */
|
|
79
|
+
var S = "".concat(n, "-conic"), p = g ? "".concat(180 + g / 2, "deg") : "0deg", y = ie(o, (360 - g) / 360), I = ie(o, 1), P = "conic-gradient(from ".concat(p, ", ").concat(y.join(", "), ")"), b = "linear-gradient(to ".concat(g ? "bottom" : "top", ", ").concat(I.join(", "), ")");
|
|
80
|
+
return /* @__PURE__ */ i.createElement(i.Fragment, null, /* @__PURE__ */ i.createElement("mask", {
|
|
81
|
+
id: S
|
|
82
|
+
}, C), /* @__PURE__ */ i.createElement("foreignObject", {
|
|
83
83
|
x: 0,
|
|
84
84
|
y: 0,
|
|
85
85
|
width: d,
|
|
86
86
|
height: d,
|
|
87
|
-
mask: "url(#".concat(
|
|
88
|
-
}, /* @__PURE__ */
|
|
89
|
-
bg:
|
|
90
|
-
}, /* @__PURE__ */
|
|
87
|
+
mask: "url(#".concat(S, ")")
|
|
88
|
+
}, /* @__PURE__ */ i.createElement(se, {
|
|
89
|
+
bg: b
|
|
90
|
+
}, /* @__PURE__ */ i.createElement(se, {
|
|
91
91
|
bg: P
|
|
92
92
|
}))));
|
|
93
93
|
});
|
|
94
94
|
process.env.NODE_ENV !== "production" && (de.displayName = "PtgCircle");
|
|
95
|
-
var G = 100, J = function(t, r,
|
|
96
|
-
var g = arguments.length > 10 && arguments[10] !== void 0 ? arguments[10] : 0,
|
|
95
|
+
var G = 100, J = function(t, r, o, n, a, s, l, c, f, d) {
|
|
96
|
+
var g = arguments.length > 10 && arguments[10] !== void 0 ? arguments[10] : 0, m = o / 100 * 360 * ((360 - s) / 360), h = s === 0 ? 0 : {
|
|
97
97
|
bottom: 0,
|
|
98
98
|
top: 180,
|
|
99
99
|
left: 90,
|
|
100
100
|
right: -90
|
|
101
|
-
}[l],
|
|
102
|
-
f === "round" &&
|
|
101
|
+
}[l], v = (100 - n) / 100 * r;
|
|
102
|
+
f === "round" && n !== 100 && (v += d / 2, v >= r && (v = r - 0.01));
|
|
103
103
|
var C = G / 2;
|
|
104
104
|
return {
|
|
105
105
|
stroke: typeof c == "string" ? c : void 0,
|
|
106
106
|
strokeDasharray: "".concat(r, "px ").concat(t),
|
|
107
|
-
strokeDashoffset:
|
|
108
|
-
transform: "rotate(".concat(a +
|
|
107
|
+
strokeDashoffset: v + g,
|
|
108
|
+
transform: "rotate(".concat(a + m + h, "deg)"),
|
|
109
109
|
transformOrigin: "".concat(C, "px ").concat(C, "px"),
|
|
110
110
|
transition: "stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",
|
|
111
111
|
fillOpacity: 0
|
|
@@ -116,25 +116,25 @@ function ce(e) {
|
|
|
116
116
|
return Array.isArray(t) ? t : [t];
|
|
117
117
|
}
|
|
118
118
|
var ue = function(t) {
|
|
119
|
-
var r =
|
|
119
|
+
var r = oe(oe({}, We), t), o = r.id, n = r.prefixCls, a = r.steps, s = r.strokeWidth, l = r.trailWidth, c = r.gapDegree, f = c === void 0 ? 0 : c, d = r.gapPosition, g = r.trailColor, m = r.strokeLinecap, h = r.style, v = r.className, C = r.strokeColor, S = r.percent, p = Ce(r, Me), y = G / 2, I = Te(o), P = "".concat(I, "-gradient"), b = y - s / 2, $ = Math.PI * 2 * b, O = f > 0 ? 90 + f / 2 : -90, x = $ * ((360 - f) / 360), w = V(a) === "object" ? a : {
|
|
120
120
|
count: a,
|
|
121
121
|
gap: 2
|
|
122
|
-
}, u = w.count, B = w.gap, z = ce(
|
|
122
|
+
}, u = w.count, B = w.gap, z = ce(S), j = ce(C), W = j.find(function(N) {
|
|
123
123
|
return N && V(N) === "object";
|
|
124
|
-
}), A = W && V(W) === "object", _ = A ? "butt" :
|
|
124
|
+
}), A = W && V(W) === "object", _ = A ? "butt" : m, F = J($, x, 0, 100, O, f, d, g, _, s), H = Ae(), k = function() {
|
|
125
125
|
var R = 0;
|
|
126
126
|
return z.map(function(L, T) {
|
|
127
|
-
var Y = j[T] || j[j.length - 1], X = J(
|
|
128
|
-
return R += L, /* @__PURE__ */
|
|
127
|
+
var Y = j[T] || j[j.length - 1], X = J($, x, R, L, O, f, d, Y, _, s);
|
|
128
|
+
return R += L, /* @__PURE__ */ i.createElement(de, {
|
|
129
129
|
key: T,
|
|
130
130
|
color: Y,
|
|
131
131
|
ptg: L,
|
|
132
|
-
radius:
|
|
133
|
-
prefixCls:
|
|
132
|
+
radius: b,
|
|
133
|
+
prefixCls: n,
|
|
134
134
|
gradientId: P,
|
|
135
135
|
style: X,
|
|
136
136
|
strokeLinecap: _,
|
|
137
|
-
strokeWidth:
|
|
137
|
+
strokeWidth: s,
|
|
138
138
|
gapDegree: f,
|
|
139
139
|
ref: function(Z) {
|
|
140
140
|
H[T] = Z;
|
|
@@ -145,15 +145,15 @@ var ue = function(t) {
|
|
|
145
145
|
}, E = function() {
|
|
146
146
|
var R = Math.round(u * (z[0] / 100)), L = 100 / u, T = 0;
|
|
147
147
|
return new Array(u).fill(null).map(function(Y, X) {
|
|
148
|
-
var K = X <= R - 1 ? j[0] : g, Z = K && V(K) === "object" ? "url(#".concat(P, ")") : void 0, te = J(
|
|
149
|
-
return T += (x - te.strokeDashoffset + B) * 100 / x, /* @__PURE__ */
|
|
148
|
+
var K = X <= R - 1 ? j[0] : g, Z = K && V(K) === "object" ? "url(#".concat(P, ")") : void 0, te = J($, x, T, L, O, f, d, K, "butt", s, B);
|
|
149
|
+
return T += (x - te.strokeDashoffset + B) * 100 / x, /* @__PURE__ */ i.createElement("circle", {
|
|
150
150
|
key: X,
|
|
151
|
-
className: "".concat(
|
|
152
|
-
r:
|
|
153
|
-
cx:
|
|
154
|
-
cy:
|
|
151
|
+
className: "".concat(n, "-circle-path"),
|
|
152
|
+
r: b,
|
|
153
|
+
cx: y,
|
|
154
|
+
cy: y,
|
|
155
155
|
stroke: Z,
|
|
156
|
-
strokeWidth:
|
|
156
|
+
strokeWidth: s,
|
|
157
157
|
opacity: 1,
|
|
158
158
|
style: te,
|
|
159
159
|
ref: function(pe) {
|
|
@@ -162,20 +162,20 @@ var ue = function(t) {
|
|
|
162
162
|
});
|
|
163
163
|
});
|
|
164
164
|
};
|
|
165
|
-
return /* @__PURE__ */
|
|
166
|
-
className: M("".concat(
|
|
165
|
+
return /* @__PURE__ */ i.createElement("svg", be({
|
|
166
|
+
className: M("".concat(n, "-circle"), v),
|
|
167
167
|
viewBox: "0 0 ".concat(G, " ").concat(G),
|
|
168
|
-
style:
|
|
169
|
-
id:
|
|
168
|
+
style: h,
|
|
169
|
+
id: o,
|
|
170
170
|
role: "presentation"
|
|
171
|
-
},
|
|
172
|
-
className: "".concat(
|
|
173
|
-
r:
|
|
174
|
-
cx:
|
|
175
|
-
cy:
|
|
171
|
+
}, p), !u && /* @__PURE__ */ i.createElement("circle", {
|
|
172
|
+
className: "".concat(n, "-circle-trail"),
|
|
173
|
+
r: b,
|
|
174
|
+
cx: y,
|
|
175
|
+
cy: y,
|
|
176
176
|
stroke: g,
|
|
177
177
|
strokeLinecap: _,
|
|
178
|
-
strokeWidth: l ||
|
|
178
|
+
strokeWidth: l || s,
|
|
179
179
|
style: F
|
|
180
180
|
}), u ? E() : k());
|
|
181
181
|
};
|
|
@@ -187,31 +187,31 @@ function U(e) {
|
|
|
187
187
|
let {
|
|
188
188
|
success: t,
|
|
189
189
|
successPercent: r
|
|
190
|
-
} = e,
|
|
191
|
-
return t && "progress" in t && (
|
|
190
|
+
} = e, o = r;
|
|
191
|
+
return t && "progress" in t && (o = t.progress), t && "percent" in t && (o = t.percent), o;
|
|
192
192
|
}
|
|
193
193
|
const Be = (e) => {
|
|
194
194
|
let {
|
|
195
195
|
percent: t,
|
|
196
196
|
success: r,
|
|
197
|
-
successPercent:
|
|
197
|
+
successPercent: o
|
|
198
198
|
} = e;
|
|
199
|
-
const
|
|
199
|
+
const n = D(U({
|
|
200
200
|
success: r,
|
|
201
|
-
successPercent:
|
|
201
|
+
successPercent: o
|
|
202
202
|
}));
|
|
203
|
-
return [
|
|
203
|
+
return [n, D(D(t) - n)];
|
|
204
204
|
}, Fe = (e) => {
|
|
205
205
|
let {
|
|
206
206
|
success: t = {},
|
|
207
207
|
strokeColor: r
|
|
208
208
|
} = e;
|
|
209
209
|
const {
|
|
210
|
-
strokeColor:
|
|
210
|
+
strokeColor: o
|
|
211
211
|
} = t;
|
|
212
|
-
return [
|
|
212
|
+
return [o || ee.green, r || null];
|
|
213
213
|
}, Q = (e, t, r) => {
|
|
214
|
-
var
|
|
214
|
+
var o, n, a, s;
|
|
215
215
|
let l = -1, c = -1;
|
|
216
216
|
if (t === "step") {
|
|
217
217
|
const f = r.steps, d = r.strokeWidth;
|
|
@@ -219,56 +219,56 @@ const Be = (e) => {
|
|
|
219
219
|
} else if (t === "line") {
|
|
220
220
|
const f = r == null ? void 0 : r.strokeWidth;
|
|
221
221
|
typeof e == "string" || typeof e > "u" ? c = f || (e === "small" ? 6 : 8) : typeof e == "number" ? [l, c] = [e, e] : [l = -1, c = 8] = Array.isArray(e) ? e : [e.width, e.height];
|
|
222
|
-
} else (t === "circle" || t === "dashboard") && (typeof e == "string" || typeof e > "u" ? [l, c] = e === "small" ? [60, 60] : [120, 120] : typeof e == "number" ? [l, c] = [e, e] : Array.isArray(e) && (l = (
|
|
222
|
+
} else (t === "circle" || t === "dashboard") && (typeof e == "string" || typeof e > "u" ? [l, c] = e === "small" ? [60, 60] : [120, 120] : typeof e == "number" ? [l, c] = [e, e] : Array.isArray(e) && (l = (n = (o = e[0]) !== null && o !== void 0 ? o : e[1]) !== null && n !== void 0 ? n : 120, c = (s = (a = e[0]) !== null && a !== void 0 ? a : e[1]) !== null && s !== void 0 ? s : 120));
|
|
223
223
|
return [l, c];
|
|
224
224
|
}, Xe = 3, Ve = (e) => Xe / e * 100, Ge = (e) => {
|
|
225
225
|
const {
|
|
226
226
|
prefixCls: t,
|
|
227
227
|
trailColor: r = null,
|
|
228
|
-
strokeLinecap:
|
|
229
|
-
gapPosition:
|
|
228
|
+
strokeLinecap: o = "round",
|
|
229
|
+
gapPosition: n,
|
|
230
230
|
gapDegree: a,
|
|
231
|
-
width:
|
|
231
|
+
width: s = 120,
|
|
232
232
|
type: l,
|
|
233
233
|
children: c,
|
|
234
234
|
success: f,
|
|
235
|
-
size: d =
|
|
235
|
+
size: d = s,
|
|
236
236
|
steps: g
|
|
237
|
-
} = e, [
|
|
237
|
+
} = e, [m, h] = Q(d, "circle");
|
|
238
238
|
let {
|
|
239
|
-
strokeWidth:
|
|
239
|
+
strokeWidth: v
|
|
240
240
|
} = e;
|
|
241
|
-
|
|
241
|
+
v === void 0 && (v = Math.max(Ve(m), 6));
|
|
242
242
|
const C = {
|
|
243
|
-
width:
|
|
244
|
-
height:
|
|
245
|
-
fontSize:
|
|
246
|
-
},
|
|
243
|
+
width: m,
|
|
244
|
+
height: h,
|
|
245
|
+
fontSize: m * 0.15 + 6
|
|
246
|
+
}, S = i.useMemo(() => {
|
|
247
247
|
if (a || a === 0)
|
|
248
248
|
return a;
|
|
249
249
|
if (l === "dashboard")
|
|
250
250
|
return 75;
|
|
251
|
-
}, [a, l]),
|
|
251
|
+
}, [a, l]), p = Be(e), y = n || l === "dashboard" && "bottom" || void 0, I = Object.prototype.toString.call(e.strokeColor) === "[object Object]", P = Fe({
|
|
252
252
|
success: f,
|
|
253
253
|
strokeColor: e.strokeColor
|
|
254
|
-
}),
|
|
254
|
+
}), b = M(`${t}-inner`, {
|
|
255
255
|
[`${t}-circle-gradient`]: I
|
|
256
|
-
}),
|
|
256
|
+
}), $ = /* @__PURE__ */ i.createElement(ue, {
|
|
257
257
|
steps: g,
|
|
258
|
-
percent: g ?
|
|
259
|
-
strokeWidth:
|
|
260
|
-
trailWidth:
|
|
258
|
+
percent: g ? p[1] : p,
|
|
259
|
+
strokeWidth: v,
|
|
260
|
+
trailWidth: v,
|
|
261
261
|
strokeColor: g ? P[1] : P,
|
|
262
|
-
strokeLinecap:
|
|
262
|
+
strokeLinecap: o,
|
|
263
263
|
trailColor: r,
|
|
264
264
|
prefixCls: t,
|
|
265
|
-
gapDegree:
|
|
266
|
-
gapPosition:
|
|
267
|
-
}), O =
|
|
268
|
-
className:
|
|
265
|
+
gapDegree: S,
|
|
266
|
+
gapPosition: y
|
|
267
|
+
}), O = m <= 20, x = /* @__PURE__ */ i.createElement("div", {
|
|
268
|
+
className: b,
|
|
269
269
|
style: C
|
|
270
|
-
},
|
|
271
|
-
return O ? /* @__PURE__ */
|
|
270
|
+
}, $, !O && c);
|
|
271
|
+
return O ? /* @__PURE__ */ i.createElement(we, {
|
|
272
272
|
title: c
|
|
273
273
|
}, x) : x;
|
|
274
274
|
}, q = "--progress-line-stroke-color", fe = "--progress-percent", ae = (e) => {
|
|
@@ -293,7 +293,7 @@ const Be = (e) => {
|
|
|
293
293
|
iconCls: r
|
|
294
294
|
} = e;
|
|
295
295
|
return {
|
|
296
|
-
[t]: Object.assign(Object.assign({},
|
|
296
|
+
[t]: Object.assign(Object.assign({}, Ie(e)), {
|
|
297
297
|
display: "inline-block",
|
|
298
298
|
"&-rtl": {
|
|
299
299
|
direction: "rtl"
|
|
@@ -400,7 +400,7 @@ const Be = (e) => {
|
|
|
400
400
|
width: "100%",
|
|
401
401
|
height: "100%",
|
|
402
402
|
marginInlineStart: 0,
|
|
403
|
-
padding: `0 ${
|
|
403
|
+
padding: `0 ${_e(e.paddingXXS)}`,
|
|
404
404
|
[`&${t}-text-start`]: {
|
|
405
405
|
justifyContent: "start"
|
|
406
406
|
},
|
|
@@ -551,8 +551,8 @@ const Be = (e) => {
|
|
|
551
551
|
// magic for capsule shape, should be a very large number
|
|
552
552
|
circleTextFontSize: "1em",
|
|
553
553
|
circleIconFontSize: `${e.fontSize / e.fontSizeSM}em`
|
|
554
|
-
}), Qe =
|
|
555
|
-
const t = e.calc(e.marginXXS).div(2).equal(), r =
|
|
554
|
+
}), Qe = Ne("Progress", (e) => {
|
|
555
|
+
const t = e.calc(e.marginXXS).div(2).equal(), r = Oe(e, {
|
|
556
556
|
progressStepMarginInlineEnd: t,
|
|
557
557
|
progressStepMinWidth: t,
|
|
558
558
|
progressActiveMotionDuration: "2.4s"
|
|
@@ -561,64 +561,64 @@ const Be = (e) => {
|
|
|
561
561
|
}, qe);
|
|
562
562
|
var Ye = function(e, t) {
|
|
563
563
|
var r = {};
|
|
564
|
-
for (var
|
|
565
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var
|
|
566
|
-
t.indexOf(n
|
|
564
|
+
for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (r[o] = e[o]);
|
|
565
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var n = 0, o = Object.getOwnPropertySymbols(e); n < o.length; n++)
|
|
566
|
+
t.indexOf(o[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[n]) && (r[o[n]] = e[o[n]]);
|
|
567
567
|
return r;
|
|
568
568
|
};
|
|
569
569
|
const Ze = (e) => {
|
|
570
570
|
let t = [];
|
|
571
571
|
return Object.keys(e).forEach((r) => {
|
|
572
|
-
const
|
|
573
|
-
Number.isNaN(
|
|
574
|
-
key:
|
|
572
|
+
const o = parseFloat(r.replace(/%/g, ""));
|
|
573
|
+
Number.isNaN(o) || t.push({
|
|
574
|
+
key: o,
|
|
575
575
|
value: e[r]
|
|
576
576
|
});
|
|
577
|
-
}), t = t.sort((r,
|
|
577
|
+
}), t = t.sort((r, o) => r.key - o.key), t.map((r) => {
|
|
578
578
|
let {
|
|
579
|
-
key:
|
|
580
|
-
value:
|
|
579
|
+
key: o,
|
|
580
|
+
value: n
|
|
581
581
|
} = r;
|
|
582
|
-
return `${
|
|
582
|
+
return `${n} ${o}%`;
|
|
583
583
|
}).join(", ");
|
|
584
584
|
}, Je = (e, t) => {
|
|
585
585
|
const {
|
|
586
586
|
from: r = ee.blue,
|
|
587
|
-
to:
|
|
588
|
-
direction:
|
|
587
|
+
to: o = ee.blue,
|
|
588
|
+
direction: n = t === "rtl" ? "to left" : "to right"
|
|
589
589
|
} = e, a = Ye(e, ["from", "to", "direction"]);
|
|
590
590
|
if (Object.keys(a).length !== 0) {
|
|
591
|
-
const l = Ze(a), c = `linear-gradient(${
|
|
591
|
+
const l = Ze(a), c = `linear-gradient(${n}, ${l})`;
|
|
592
592
|
return {
|
|
593
593
|
background: c,
|
|
594
594
|
[q]: c
|
|
595
595
|
};
|
|
596
596
|
}
|
|
597
|
-
const
|
|
597
|
+
const s = `linear-gradient(${n}, ${r}, ${o})`;
|
|
598
598
|
return {
|
|
599
|
-
background:
|
|
600
|
-
[q]:
|
|
599
|
+
background: s,
|
|
600
|
+
[q]: s
|
|
601
601
|
};
|
|
602
602
|
}, et = (e) => {
|
|
603
603
|
const {
|
|
604
604
|
prefixCls: t,
|
|
605
605
|
direction: r,
|
|
606
|
-
percent:
|
|
607
|
-
size:
|
|
606
|
+
percent: o,
|
|
607
|
+
size: n,
|
|
608
608
|
strokeWidth: a,
|
|
609
|
-
strokeColor:
|
|
609
|
+
strokeColor: s,
|
|
610
610
|
strokeLinecap: l = "round",
|
|
611
611
|
children: c,
|
|
612
612
|
trailColor: f = null,
|
|
613
613
|
percentPosition: d,
|
|
614
614
|
success: g
|
|
615
615
|
} = e, {
|
|
616
|
-
align:
|
|
617
|
-
type:
|
|
618
|
-
} = d,
|
|
619
|
-
[q]:
|
|
620
|
-
background:
|
|
621
|
-
}, C = l === "square" || l === "butt" ? 0 : void 0,
|
|
616
|
+
align: m,
|
|
617
|
+
type: h
|
|
618
|
+
} = d, v = s && typeof s != "string" ? Je(s, r) : {
|
|
619
|
+
[q]: s,
|
|
620
|
+
background: s
|
|
621
|
+
}, C = l === "square" || l === "butt" ? 0 : void 0, S = n ?? [-1, a || (n === "small" ? 6 : 8)], [p, y] = Q(S, "line", {
|
|
622
622
|
strokeWidth: a
|
|
623
623
|
});
|
|
624
624
|
process.env.NODE_ENV !== "production" && le("Progress").deprecated(!("strokeWidth" in e), "strokeWidth", "size");
|
|
@@ -626,31 +626,31 @@ const Ze = (e) => {
|
|
|
626
626
|
backgroundColor: f || void 0,
|
|
627
627
|
borderRadius: C
|
|
628
628
|
}, P = Object.assign(Object.assign({
|
|
629
|
-
width: `${D(
|
|
630
|
-
height:
|
|
629
|
+
width: `${D(o)}%`,
|
|
630
|
+
height: y,
|
|
631
631
|
borderRadius: C
|
|
632
|
-
},
|
|
633
|
-
[fe]: D(
|
|
634
|
-
}),
|
|
635
|
-
width: `${D(
|
|
636
|
-
height:
|
|
632
|
+
}, v), {
|
|
633
|
+
[fe]: D(o) / 100
|
|
634
|
+
}), b = U(e), $ = {
|
|
635
|
+
width: `${D(b)}%`,
|
|
636
|
+
height: y,
|
|
637
637
|
borderRadius: C,
|
|
638
638
|
backgroundColor: g == null ? void 0 : g.strokeColor
|
|
639
639
|
}, O = {
|
|
640
|
-
width:
|
|
641
|
-
}, x = /* @__PURE__ */
|
|
640
|
+
width: p < 0 ? "100%" : p
|
|
641
|
+
}, x = /* @__PURE__ */ i.createElement("div", {
|
|
642
642
|
className: `${t}-inner`,
|
|
643
643
|
style: I
|
|
644
|
-
}, /* @__PURE__ */
|
|
645
|
-
className: M(`${t}-bg`, `${t}-bg-${
|
|
644
|
+
}, /* @__PURE__ */ i.createElement("div", {
|
|
645
|
+
className: M(`${t}-bg`, `${t}-bg-${h}`),
|
|
646
646
|
style: P
|
|
647
|
-
},
|
|
647
|
+
}, h === "inner" && c), b !== void 0 && /* @__PURE__ */ i.createElement("div", {
|
|
648
648
|
className: `${t}-success-bg`,
|
|
649
|
-
style:
|
|
650
|
-
})), w =
|
|
651
|
-
return
|
|
649
|
+
style: $
|
|
650
|
+
})), w = h === "outer" && m === "start", u = h === "outer" && m === "end";
|
|
651
|
+
return h === "outer" && m === "center" ? /* @__PURE__ */ i.createElement("div", {
|
|
652
652
|
className: `${t}-layout-bottom`
|
|
653
|
-
}, x, c) : /* @__PURE__ */
|
|
653
|
+
}, x, c) : /* @__PURE__ */ i.createElement("div", {
|
|
654
654
|
className: `${t}-outer`,
|
|
655
655
|
style: O
|
|
656
656
|
}, w && c, x, u && c);
|
|
@@ -658,136 +658,139 @@ const Ze = (e) => {
|
|
|
658
658
|
const {
|
|
659
659
|
size: t,
|
|
660
660
|
steps: r,
|
|
661
|
+
rounding: o = Math.round,
|
|
661
662
|
percent: n = 0,
|
|
662
|
-
strokeWidth:
|
|
663
|
-
strokeColor:
|
|
664
|
-
trailColor:
|
|
665
|
-
prefixCls:
|
|
666
|
-
children:
|
|
667
|
-
} = e,
|
|
663
|
+
strokeWidth: a = 8,
|
|
664
|
+
strokeColor: s,
|
|
665
|
+
trailColor: l = null,
|
|
666
|
+
prefixCls: c,
|
|
667
|
+
children: f
|
|
668
|
+
} = e, d = o(r * (n / 100)), m = t ?? [t === "small" ? 2 : 14, a], [h, v] = Q(m, "step", {
|
|
668
669
|
steps: r,
|
|
669
|
-
strokeWidth:
|
|
670
|
-
}),
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
670
|
+
strokeWidth: a
|
|
671
|
+
}), C = h / r, S = Array.from({
|
|
672
|
+
length: r
|
|
673
|
+
});
|
|
674
|
+
for (let p = 0; p < r; p++) {
|
|
675
|
+
const y = Array.isArray(s) ? s[p] : s;
|
|
676
|
+
S[p] = /* @__PURE__ */ i.createElement("div", {
|
|
677
|
+
key: p,
|
|
678
|
+
className: M(`${c}-steps-item`, {
|
|
679
|
+
[`${c}-steps-item-active`]: p <= d - 1
|
|
677
680
|
}),
|
|
678
681
|
style: {
|
|
679
|
-
backgroundColor:
|
|
680
|
-
width:
|
|
682
|
+
backgroundColor: p <= d - 1 ? y : l,
|
|
683
|
+
width: C,
|
|
681
684
|
height: v
|
|
682
685
|
}
|
|
683
686
|
});
|
|
684
687
|
}
|
|
685
|
-
return /* @__PURE__ */
|
|
686
|
-
className: `${
|
|
687
|
-
},
|
|
688
|
+
return /* @__PURE__ */ i.createElement("div", {
|
|
689
|
+
className: `${c}-steps-outer`
|
|
690
|
+
}, S, f);
|
|
688
691
|
};
|
|
689
692
|
var rt = function(e, t) {
|
|
690
693
|
var r = {};
|
|
691
|
-
for (var
|
|
692
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var
|
|
693
|
-
t.indexOf(n
|
|
694
|
+
for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (r[o] = e[o]);
|
|
695
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var n = 0, o = Object.getOwnPropertySymbols(e); n < o.length; n++)
|
|
696
|
+
t.indexOf(o[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[n]) && (r[o[n]] = e[o[n]]);
|
|
694
697
|
return r;
|
|
695
698
|
};
|
|
696
|
-
const
|
|
699
|
+
const ot = ["normal", "exception", "active", "success"], ge = /* @__PURE__ */ i.forwardRef((e, t) => {
|
|
697
700
|
const {
|
|
698
701
|
prefixCls: r,
|
|
699
|
-
className:
|
|
700
|
-
rootClassName:
|
|
702
|
+
className: o,
|
|
703
|
+
rootClassName: n,
|
|
701
704
|
steps: a,
|
|
702
|
-
strokeColor:
|
|
705
|
+
strokeColor: s,
|
|
703
706
|
percent: l = 0,
|
|
704
707
|
size: c = "default",
|
|
705
708
|
showInfo: f = !0,
|
|
706
709
|
type: d = "line",
|
|
707
710
|
status: g,
|
|
708
|
-
format:
|
|
709
|
-
style:
|
|
710
|
-
percentPosition:
|
|
711
|
+
format: m,
|
|
712
|
+
style: h,
|
|
713
|
+
percentPosition: v = {}
|
|
711
714
|
} = e, C = rt(e, ["prefixCls", "className", "rootClassName", "steps", "strokeColor", "percent", "size", "showInfo", "type", "status", "format", "style", "percentPosition"]), {
|
|
712
|
-
align:
|
|
713
|
-
type:
|
|
714
|
-
} =
|
|
715
|
-
if (
|
|
716
|
-
const k = typeof
|
|
717
|
-
return new
|
|
715
|
+
align: S = "end",
|
|
716
|
+
type: p = "outer"
|
|
717
|
+
} = v, y = Array.isArray(s) ? s[0] : s, I = typeof s == "string" || Array.isArray(s) ? s : void 0, P = i.useMemo(() => {
|
|
718
|
+
if (y) {
|
|
719
|
+
const k = typeof y == "string" ? y : Object.values(y)[0];
|
|
720
|
+
return new $e(k).isLight();
|
|
718
721
|
}
|
|
719
722
|
return !1;
|
|
720
|
-
}, [
|
|
723
|
+
}, [s]), b = i.useMemo(() => {
|
|
721
724
|
var k, E;
|
|
722
725
|
const N = U(e);
|
|
723
726
|
return parseInt(N !== void 0 ? (k = N ?? 0) === null || k === void 0 ? void 0 : k.toString() : (E = l ?? 0) === null || E === void 0 ? void 0 : E.toString(), 10);
|
|
724
|
-
}, [l, e.success, e.successPercent]),
|
|
727
|
+
}, [l, e.success, e.successPercent]), $ = i.useMemo(() => !ot.includes(g) && b >= 100 ? "success" : g || "normal", [g, b]), {
|
|
725
728
|
getPrefixCls: O,
|
|
726
729
|
direction: x,
|
|
727
730
|
progress: w
|
|
728
|
-
} =
|
|
731
|
+
} = i.useContext(De), u = O("progress", r), [B, z, j] = Qe(u), W = d === "line", A = W && !a, _ = i.useMemo(() => {
|
|
729
732
|
if (!f)
|
|
730
733
|
return null;
|
|
731
734
|
const k = U(e);
|
|
732
735
|
let E;
|
|
733
|
-
const N =
|
|
734
|
-
return
|
|
736
|
+
const N = m || ((L) => `${L}%`), R = W && P && p === "inner";
|
|
737
|
+
return p === "inner" || m || $ !== "exception" && $ !== "success" ? E = N(D(l), D(k)) : $ === "exception" ? E = W ? /* @__PURE__ */ i.createElement(xe, null) : /* @__PURE__ */ i.createElement(Ee, null) : $ === "success" && (E = W ? /* @__PURE__ */ i.createElement(Se, null) : /* @__PURE__ */ i.createElement(ke, null)), /* @__PURE__ */ i.createElement("span", {
|
|
735
738
|
className: M(`${u}-text`, {
|
|
736
739
|
[`${u}-text-bright`]: R,
|
|
737
|
-
[`${u}-text-${
|
|
738
|
-
[`${u}-text-${
|
|
740
|
+
[`${u}-text-${S}`]: A,
|
|
741
|
+
[`${u}-text-${p}`]: A
|
|
739
742
|
}),
|
|
740
743
|
title: typeof E == "string" ? E : void 0
|
|
741
744
|
}, E);
|
|
742
|
-
}, [f, l, $,
|
|
745
|
+
}, [f, l, b, $, d, u, m]);
|
|
743
746
|
if (process.env.NODE_ENV !== "production") {
|
|
744
747
|
const k = le("Progress");
|
|
745
748
|
k.deprecated(!("successPercent" in e), "successPercent", "success.percent"), k.deprecated(!("width" in e), "width", "size"), (d === "circle" || d === "dashboard") && (Array.isArray(c) ? process.env.NODE_ENV !== "production" && k(!1, "usage", 'Type "circle" and "dashboard" do not accept array as `size`, please use number or preset size instead.') : typeof c == "object" && process.env.NODE_ENV !== "production" && k(!1, "usage", 'Type "circle" and "dashboard" do not accept object as `size`, please use number or preset size instead.')), e.success && "progress" in e.success && k.deprecated(!1, "success.progress", "success.percent");
|
|
746
749
|
}
|
|
747
750
|
let F;
|
|
748
|
-
d === "line" ? F = a ? /* @__PURE__ */
|
|
751
|
+
d === "line" ? F = a ? /* @__PURE__ */ i.createElement(tt, Object.assign({}, e, {
|
|
749
752
|
strokeColor: I,
|
|
750
753
|
prefixCls: u,
|
|
751
754
|
steps: typeof a == "object" ? a.count : a
|
|
752
|
-
}), _) : /* @__PURE__ */
|
|
753
|
-
strokeColor:
|
|
755
|
+
}), _) : /* @__PURE__ */ i.createElement(et, Object.assign({}, e, {
|
|
756
|
+
strokeColor: y,
|
|
754
757
|
prefixCls: u,
|
|
755
758
|
direction: x,
|
|
756
759
|
percentPosition: {
|
|
757
|
-
align:
|
|
758
|
-
type:
|
|
760
|
+
align: S,
|
|
761
|
+
type: p
|
|
759
762
|
}
|
|
760
|
-
}), _) : (d === "circle" || d === "dashboard") && (F = /* @__PURE__ */
|
|
761
|
-
strokeColor:
|
|
763
|
+
}), _) : (d === "circle" || d === "dashboard") && (F = /* @__PURE__ */ i.createElement(Ge, Object.assign({}, e, {
|
|
764
|
+
strokeColor: y,
|
|
762
765
|
prefixCls: u,
|
|
763
|
-
progressStatus:
|
|
766
|
+
progressStatus: $
|
|
764
767
|
}), _));
|
|
765
|
-
const H = M(u, `${u}-status-${
|
|
768
|
+
const H = M(u, `${u}-status-${$}`, {
|
|
766
769
|
[`${u}-${d === "dashboard" && "circle" || d}`]: d !== "line",
|
|
767
770
|
[`${u}-inline-circle`]: d === "circle" && Q(c, "circle")[0] <= 20,
|
|
768
771
|
[`${u}-line`]: A,
|
|
769
|
-
[`${u}-line-align-${
|
|
770
|
-
[`${u}-line-position-${
|
|
772
|
+
[`${u}-line-align-${S}`]: A,
|
|
773
|
+
[`${u}-line-position-${p}`]: A,
|
|
771
774
|
[`${u}-steps`]: a,
|
|
772
775
|
[`${u}-show-info`]: f,
|
|
773
776
|
[`${u}-${c}`]: typeof c == "string",
|
|
774
777
|
[`${u}-rtl`]: x === "rtl"
|
|
775
|
-
}, w == null ? void 0 : w.className,
|
|
776
|
-
return B(/* @__PURE__ */
|
|
778
|
+
}, w == null ? void 0 : w.className, o, n, z, j);
|
|
779
|
+
return B(/* @__PURE__ */ i.createElement("div", Object.assign({
|
|
777
780
|
ref: t,
|
|
778
|
-
style: Object.assign(Object.assign({}, w == null ? void 0 : w.style),
|
|
781
|
+
style: Object.assign(Object.assign({}, w == null ? void 0 : w.style), h),
|
|
779
782
|
className: H,
|
|
780
783
|
role: "progressbar",
|
|
781
|
-
"aria-valuenow":
|
|
784
|
+
"aria-valuenow": b,
|
|
782
785
|
"aria-valuemin": 0,
|
|
783
786
|
"aria-valuemax": 100
|
|
784
787
|
}, Pe(C, ["trailColor", "strokeWidth", "width", "gapDegree", "gapPosition", "strokeLinecap", "success", "successPercent"])), F));
|
|
785
788
|
});
|
|
786
789
|
process.env.NODE_ENV !== "production" && (ge.displayName = "Progress");
|
|
787
|
-
const
|
|
788
|
-
${({ theme: e, state: t }) =>
|
|
790
|
+
const nt = ({ colors: e }, t = "info") => "", ht = me(ge)`
|
|
791
|
+
${({ theme: e, state: t }) => nt(e, t)}
|
|
789
792
|
`;
|
|
790
793
|
export {
|
|
791
|
-
|
|
792
|
-
|
|
794
|
+
ht as Progress,
|
|
795
|
+
nt as getGenesisClass
|
|
793
796
|
};
|