@gobolt/genesis 0.1.2 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -7
- package/dist/{AntdIcon-nCNB0J1E.js → AntdIcon-DP6hPDqu.js} +40 -39
- package/dist/CSSMotionList-DB0khM6h.js +22193 -0
- package/dist/{CheckCircleFilled-BKgizvyl.js → CheckCircleFilled-B-wrMduA.js} +2 -2
- package/dist/{CheckOutlined-cEBrx_Ag.js → CheckOutlined-DTEHi_xG.js} +2 -2
- package/dist/{ClockCircleOutlined-BaXQuLIn.js → ClockCircleOutlined-DGGcYjVd.js} +2 -2
- package/dist/{CloseCircleFilled-B9e7yFwo.js → CloseCircleFilled-WEQ0SaSW.js} +2 -2
- package/dist/{CloseOutlined-ogxnm7Oy.js → CloseOutlined-DzgBOns1.js} +2 -2
- package/dist/{Compact-Du9689ax.js → Compact-DFcWZrNo.js} +49 -49
- package/dist/Context-2_suFYDs.js +5 -0
- package/dist/{ContextIsolator-BmfhJgG0.js → ContextIsolator-CUJnq-4F.js} +2 -2
- package/dist/{DownOutlined-Dcq69ZKM.js → DownOutlined-Bv7ua5i8.js} +23 -22
- package/dist/EllipsisOutlined-BodkguEc.js +1118 -0
- package/dist/{ExclamationCircleFilled-BHELVsTg.js → ExclamationCircleFilled-x8Sr29BN.js} +2 -2
- package/dist/Input--qsU-6vp.js +424 -0
- package/dist/KeyCode-B3vHb2gY.js +155 -0
- package/dist/{Keyframes-C9_aCDvn.js → Keyframes-CyO2Aeq-.js} +7 -7
- package/dist/{LoadingOutlined-C1qu6ymP.js → LoadingOutlined-DOi5EGOl.js} +2 -2
- package/dist/{MinusCircleOutlined-Shz0RRQV.js → MinusCircleOutlined-BcKxYRyN.js} +2 -2
- package/dist/{Overflow-DWf4XIal.js → Overflow-CVbsx7Gn.js} +95 -95
- package/dist/{SearchOutlined-DNj-7b_h.js → SearchOutlined-DJ3uHFwq.js} +2 -2
- package/dist/{Skeleton-BVN4pcVe.js → Skeleton-CudViN0a.js} +166 -163
- package/dist/TextArea-CHo3cxKw.js +404 -0
- package/dist/{Typography-CoZ5qD-t.js → Typography-B2J8CPnt.js} +263 -247
- package/dist/_baseIsEqual-VdxFOa4v.js +1084 -0
- package/dist/{_commonjsHelpers-BkfeUUK-.js → _commonjsHelpers-B4e78b8K.js} +1 -1
- package/dist/{asyncToGenerator-CKP9bEZn.js → asyncToGenerator-CVBdSr4C.js} +27 -27
- package/dist/button-CYVlK7G0.js +1430 -0
- package/dist/components/Avatar/Avatar.js +8 -7
- package/dist/components/Avatar/__stories__/Avatar.stories.d.ts +0 -1
- package/dist/components/Avatar/__tests__/Avatar.test.js +1 -1
- package/dist/components/Avatar/styles.d.ts +1 -2
- package/dist/components/Avatar/styles.js +161 -159
- package/dist/components/Badge/Badge.js +8 -7
- package/dist/components/Badge/__stories__/Badge.stories.d.ts +0 -1
- package/dist/components/Badge/__tests__/Badge.test.js +1 -1
- package/dist/components/Badge/styles.d.ts +0 -1
- package/dist/components/Badge/styles.js +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +0 -1
- package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.types.d.ts +0 -1
- package/dist/components/Breadcrumb/__stories__/Breadcrumb.stories.d.ts +0 -1
- package/dist/components/Breadcrumb/__tests__/Breadcrumb.test.js +3 -3
- package/dist/components/Breadcrumb/styles.d.ts +0 -1
- package/dist/components/Breadcrumb/styles.js +58 -58
- package/dist/components/Button/Button.d.ts +0 -1
- package/dist/components/Button/__stories__/Button.stories.d.ts +0 -1
- package/dist/components/Button/__tests__/Button.test.js +5 -4
- package/dist/components/Button/styles.d.ts +0 -1
- package/dist/components/Button/styles.js +2 -2
- package/dist/components/Card/__stories__/Card.stories.d.ts +0 -1
- package/dist/components/Card/__tests__/Card.test.js +1 -1
- package/dist/components/Card/styles.d.ts +0 -1
- package/dist/components/Card/styles.js +2 -2
- package/dist/components/Checkbox/Checkbox.d.ts +0 -1
- package/dist/components/Checkbox/Checkbox.js +11 -11
- package/dist/components/Checkbox/__stories__/Checkbox.stories.d.ts +0 -1
- package/dist/components/Checkbox/__tests__/Checkbox.test.js +16 -15
- package/dist/components/Checkbox/styles.d.ts +3 -4
- package/dist/components/Checkbox/styles.js +2 -2
- package/dist/components/Dashboard/__mocks__/dashboard-data.d.ts +0 -1
- package/dist/components/Dashboard/__stories__/Dashboard.stories.d.ts +0 -1
- package/dist/components/Dashboard/__stories__/DashboardLayoutContent.js +222 -223
- package/dist/components/Dashboard/__stories__/DashboardLayoutHeader.js +13 -12
- package/dist/components/Dashboard/__stories__/DashboardLayoutStory.d.ts +0 -1
- package/dist/components/Dashboard/__stories__/DashboardLayoutStory.js +10 -9
- package/dist/components/Dashboard/__stories__/charts/LineChart.js +72 -74
- package/dist/components/Dashboard/__tests__/Dashboard.test.js +1 -1
- package/dist/components/Dashboard/styles.d.ts +0 -1
- package/dist/components/Dashboard/styles.js +1 -1
- package/dist/components/DatePicker/DatePicker.d.ts +0 -1
- package/dist/components/DatePicker/DatePicker.js +1 -1
- package/dist/components/DatePicker/__stories__/DatePicker.stories.d.ts +0 -1
- package/dist/components/DatePicker/__tests__/DatePicker.test.js +2 -2
- package/dist/components/DateRangePicker/DateRangePicker.d.ts +0 -1
- package/dist/components/DateRangePicker/DateRangePicker.js +1 -1
- package/dist/components/DateRangePicker/__stories__/DateRangePicker.stories.d.ts +0 -1
- package/dist/components/DateRangePicker/__tests__/DateRangePicker.test.js +2 -2
- package/dist/components/ErrorBoundary/ErrorBoundary.d.ts +2 -2
- package/dist/components/ErrorBoundary/ErrorBoundary.js +8 -7
- package/dist/components/ErrorBoundary/__stories__/ErrorBoundary.stories.d.ts +0 -1
- package/dist/components/ErrorBoundary/__tests__/ErrorBoundary.test.js +25 -20
- package/dist/components/ErrorBoundary/styles.d.ts +0 -1
- package/dist/components/ErrorBoundary/styles.js +1 -1
- package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.js +16 -15
- package/dist/components/ErrorBoundaryFallback/__stories__/ErrorBoundaryFallback.stories.d.ts +0 -1
- package/dist/components/ErrorBoundaryFallback/styles.js +13 -13
- package/dist/components/Form/Form.d.ts +0 -1
- package/dist/components/Form/Form.js +2 -2
- package/dist/components/Form/__stories__/Form.stories.d.ts +0 -1
- package/dist/components/Form/__stories__/FormStory.js +11 -10
- package/dist/components/Form/__tests__/form.test.js +7 -6
- package/dist/components/Form/index.js +1 -1
- package/dist/components/Form/styles.d.ts +0 -1
- package/dist/components/Form/styles.js +10 -2
- package/dist/components/FormBrandon/Form.d.ts +25 -0
- package/dist/components/FormBrandon/Form.js +18 -0
- package/dist/components/FormBrandon/__stories__/Form.stories.d.ts +6 -0
- package/dist/components/FormBrandon/__stories__/FormStory.d.ts +1 -0
- package/dist/components/FormBrandon/__stories__/FormStory.js +172 -0
- package/dist/components/FormBrandon/__tests__/form.test.js +19 -0
- package/dist/components/FormBrandon/index.d.ts +2 -0
- package/dist/components/FormBrandon/index.js +4 -0
- package/dist/components/FormBrandon/styles.d.ts +2 -0
- package/dist/components/FormBrandon/styles.js +13 -0
- package/dist/components/Glyph/Glyph.js +2 -2
- package/dist/components/Glyph/__stories__/Glyph.stories.d.ts +0 -1
- package/dist/components/Glyph/styles.d.ts +0 -1
- package/dist/components/Glyph/styles.js +1 -1
- package/dist/components/Input/Input.d.ts +0 -1
- package/dist/components/Input/Input.js +9 -10
- package/dist/components/Input/__stories__/Input.stories.d.ts +0 -1
- package/dist/components/Input/__tests__/Input.test.js +21 -20
- package/dist/components/Input/styles.d.ts +5 -6
- package/dist/components/Input/styles.js +4 -119
- package/dist/components/Layout/Content/Content.d.ts +0 -1
- package/dist/components/Layout/Content/ResponsiveContent.js +14 -13
- package/dist/components/Layout/Content/styles.d.ts +0 -1
- package/dist/components/Layout/Content/styles.js +1 -1
- package/dist/components/Layout/MainLayout/MainLayout.d.ts +0 -1
- package/dist/components/Layout/MainLayout/MainLayout.js +1 -1
- package/dist/components/Layout/MainLayout/__stories__/MainLayout.stories.d.ts +0 -1
- package/dist/components/Layout/MainLayout/styles.js +1 -1
- package/dist/components/Layout/__stories__/Layout.stories.d.ts +0 -1
- package/dist/components/Layout/__tests__/Layout.test.js +1 -1
- package/dist/components/Message/Message.d.ts +0 -1
- package/dist/components/Message/Message.js +13 -12
- package/dist/components/Message/__stories__/Message.stories.d.ts +0 -1
- package/dist/components/Message/__tests__/Message.test.js +6 -5
- package/dist/components/Message/styles.js +1 -1
- package/dist/components/Notification/Notification.js +122 -55
- package/dist/components/Notification/NotificationBadge/NotificationBadge.js +2 -2
- package/dist/components/Notification/NotificationBadge/__stories__/NotificationBadge.stories.d.ts +0 -1
- package/dist/components/Notification/NotificationBadge/__tests__/NotificationBadge.test.js +4 -4
- package/dist/components/Notification/NotificationBadge/styles.js +1 -1
- package/dist/components/Notification/__stories__/Notification.stories.d.ts +0 -1
- package/dist/components/Notification/__tests__/Notification.test.js +3 -3
- package/dist/components/Notification/styles.js +1 -1
- package/dist/components/Popover/Popover.d.ts +1 -1
- package/dist/components/Popover/Popover.js +14 -11
- package/dist/components/Popover/__stories__/Popover.stories.d.ts +0 -1
- package/dist/components/Popover/__tests__/Popover.test.js +19 -26
- package/dist/components/Popover/styles.d.ts +0 -1
- package/dist/components/Popover/styles.js +2 -2
- package/dist/components/Progress/Progress.js +29 -27
- package/dist/components/Progress/Progress.util.d.ts +0 -1
- package/dist/components/Progress/Progress.util.js +8 -7
- package/dist/components/Progress/ProgressText.d.ts +0 -1
- package/dist/components/Progress/ProgressText.js +8 -7
- package/dist/components/Progress/__stories__/Progress.stories.d.ts +0 -1
- package/dist/components/Progress/__tests__/Progress.test.js +4 -4
- package/dist/components/Progress/styles.d.ts +0 -1
- package/dist/components/Progress/styles.js +217 -214
- package/dist/components/Radio/Radio.d.ts +0 -1
- package/dist/components/Radio/Radio.js +9 -8
- package/dist/components/Radio/RadioGroup.js +1 -1
- package/dist/components/Radio/__stories__/RadioGroup.stories.d.ts +0 -1
- package/dist/components/Radio/__tests__/RadioGroup.test.js +8 -7
- package/dist/components/Row/Row.d.ts +0 -1
- package/dist/components/Row/Row.js +29 -26
- package/dist/components/Row/RowActions/RowActions.js +8 -7
- package/dist/components/Row/RowActions/styles.js +1 -1
- package/dist/components/Row/RowLabelValue/RowLabelValue.d.ts +0 -1
- package/dist/components/Row/RowLabelValue/RowLabelValue.js +7 -6
- package/dist/components/Row/RowLabelValue/styles.js +2 -2
- package/dist/components/Row/__stories__/Row.stories.d.ts +0 -1
- package/dist/components/Row/__tests__/Row.test.js +3 -3
- package/dist/components/Row/styles.d.ts +0 -1
- package/dist/components/Row/styles.js +1 -1
- package/dist/components/SegmentedControls/__stories__/SegmentedControls.stories.d.ts +0 -1
- package/dist/components/SegmentedControls/__tests__/SegmentedControls.test.js +1 -1
- package/dist/components/SegmentedControls/styles.d.ts +1 -2
- package/dist/components/SegmentedControls/styles.js +214 -203
- package/dist/components/Select/Select.d.ts +0 -1
- package/dist/components/Select/Select.js +10 -11
- package/dist/components/Select/__stories__/Select.stories.d.ts +0 -1
- package/dist/components/Select/__tests__/Select.test.js +49 -10754
- package/dist/components/Select/styles.d.ts +0 -1
- package/dist/components/Select/styles.js +2 -2
- package/dist/components/Shapes/__stories__/Shapes.stories.d.ts +0 -1
- package/dist/components/Shapes/__tests__/Shapes.test.js +1 -1
- package/dist/components/Switch/__stories__/Switch.stories.d.ts +0 -1
- package/dist/components/Switch/__tests__/Switch.test.js +3 -3
- package/dist/components/Switch/styles.d.ts +0 -1
- package/dist/components/Switch/styles.js +74 -74
- package/dist/components/Table/Table.js +1 -1
- package/dist/components/Table/__mocks__/table-mocks.d.ts +0 -1
- package/dist/components/Table/__mocks__/table-mocks.js +10 -9
- package/dist/components/Table/__stories__/Table.stories.d.ts +0 -1
- package/dist/components/Table/__tests__/Table.test.js +1 -1
- package/dist/components/Table/styles.d.ts +0 -1
- package/dist/components/Table/styles.js +2 -2
- package/dist/components/Tabs/__stories__/Tabs.stories.d.ts +0 -1
- package/dist/components/Tabs/__tests__/Tabs.test.js +3 -3
- package/dist/components/Tabs/styles.d.ts +0 -1
- package/dist/components/Tabs/styles.js +2 -2
- package/dist/components/Tile/__stories__/Tile.stories.d.ts +0 -1
- package/dist/components/Tile/__tests__/Tile.test.js +1 -1
- package/dist/components/Tile/styles.d.ts +0 -1
- package/dist/components/Tile/styles.js +1 -1
- package/dist/components/Toast/Toast.d.ts +0 -1
- package/dist/components/Toast/Toast.js +9 -8
- package/dist/components/Toast/__stories__/Toast.stories.d.ts +0 -1
- package/dist/components/Toast/__tests__/Toast.test.js +6 -5
- package/dist/components/Toast/index.js +1 -1
- package/dist/components/Toast/styles.js +1 -1
- package/dist/components/Tooltip/Tooltip.js +8 -7
- package/dist/components/Tooltip/__stories__/Tooltip.stories.d.ts +0 -1
- package/dist/components/Tooltip/__tests__/Tooltip.test.js +1 -1
- package/dist/components/Tooltip/styles.d.ts +0 -1
- package/dist/components/Tooltip/styles.js +2 -2
- package/dist/components/Typography/Typography.d.ts +0 -1
- package/dist/components/Typography/Typography.js +1 -1
- package/dist/components/Typography/__stories__/Typography.stories.d.ts +0 -1
- package/dist/components/Typography/__tests__/Typography.test.js +14 -13
- package/dist/components/Typography/index.js +1 -1
- package/dist/components/Typography/styles.d.ts +0 -1
- package/dist/components/Typography/styles.js +2 -2
- package/dist/components/index.d.ts +0 -2
- package/dist/components/index.js +46 -48
- package/dist/{context-DIFtNa4d.js → context-CQfFkrkv.js} +285 -278
- package/dist/{dropdown-Dp_PTQ2u.js → dropdown-BlRB2LxQ.js} +492 -491
- package/dist/{generateCategoricalChart-7ceYaiZ2.js → generateCategoricalChart-CqByWmje.js} +7189 -6383
- package/dist/genesis/GenesisThemeBreakdown.d.ts +0 -1
- package/dist/genesis/GenesisThemeBreakdown.js +9 -8
- package/dist/genesis/GenesisThemeDemo.d.ts +0 -1
- package/dist/genesis/GenesisThemeDemo.stories.d.ts +0 -1
- package/dist/genesis/{labs/Lab.stories.d.ts → Lab.stories.d.ts} +0 -1
- package/dist/genesis/styles.d.ts +0 -1
- package/dist/genesis/styles.js +3 -3
- package/dist/{iconBase-LROS5hdG.js → iconBase-DSKTHwal.js} +9 -9
- package/dist/index-B7FXyiY_.js +104 -0
- package/dist/{index-B_1Ge8na.js → index-BHCqeC4j.js} +190 -183
- package/dist/index-BZ050Dyl.js +292 -0
- package/dist/{index-BpZSuIUV.js → index-Br3D3cFM.js} +23 -23
- package/dist/{index-DOsPeIWJ.js → index-Bxbr727t.js} +260 -265
- package/dist/index-C2K1BzmJ.js +3400 -0
- package/dist/{styles-D1vKDy9V.js → index-CupwdUIJ.js} +596 -603
- package/dist/{index-BQM5OniU.js → index-CzMIlMTV.js} +111 -111
- package/dist/index-DCopujxC.js +772 -0
- package/dist/index-DRGbc-fW.js +780 -0
- package/dist/index-DavB5GQ3.js +5221 -0
- package/dist/index-RAH9f-qb.js +540 -0
- package/dist/{index-BPVue1Yd.js → index-RtWhGOwR.js} +152 -150
- package/dist/index-Y0KgiFZb.js +909 -0
- package/dist/{index-DRGX1Wem.js → index-sX7KZ-nU.js} +414 -402
- package/dist/index.js +53 -55
- package/dist/interface/appointment.d.ts +0 -1
- package/dist/interface/appointmentV2.d.ts +0 -1
- package/dist/interface/appointmentsState.d.ts +0 -1
- package/dist/interface/deliveryPartner.d.ts +0 -1
- package/dist/interface/route.d.ts +0 -1
- package/dist/interface/routeAnalysis.d.ts +0 -1
- package/dist/interface/routeAutomationJob.d.ts +0 -1
- package/dist/interface/routeAutomationLog.d.ts +0 -1
- package/dist/interface/serviceArea.d.ts +0 -1
- package/dist/interface/vehicle.d.ts +0 -1
- package/dist/{magic-string.es-BKBb7z-1.js → magic-string.es-D4UQQyt0.js} +265 -264
- package/dist/{motion-CUN72xsH.js → motion-C-XpKcZG.js} +6 -5
- package/dist/{pickAttrs-CleuMJFR.js → pickAttrs-yFE4_vFd.js} +1 -1
- package/dist/{presets-Djh_L_6R.js → presets-CSXMiWyc.js} +176 -176
- package/dist/providers/BreakpointThemeProvider.d.ts +0 -1
- package/dist/providers/BreakpointThemeProvider.js +5 -5
- package/dist/providers/GenesisProvider.d.ts +0 -1
- package/dist/providers/GenesisProvider.js +1 -1
- package/dist/providers/ToastProvider.d.ts +0 -1
- package/dist/providers/ToastProvider.js +10 -9
- package/dist/providers/__stories__/GenesisProvider.stories.d.ts +0 -1
- package/dist/providers/index.js +1 -1
- package/dist/providers/useGenesis.d.ts +0 -1
- package/dist/providers/useGenesis.js +2 -2
- package/dist/{roundedArrow-DI_Q-xdU.js → roundedArrow-BxPlu4Hq.js} +2 -2
- package/dist/setup-aZdxWCJq.js +13976 -0
- package/dist/setup.types-CgFq66QX.js +9261 -0
- package/dist/shadow-9lsz-71t.js +13 -0
- package/dist/statusUtils-Kj9kMuVg.js +15 -0
- package/dist/{styleChecker-Cotu61d0.js → styleChecker-CSH9LQtm.js} +3 -3
- package/dist/{styled-components.browser.esm-CZ1XM4o4.js → styled-components.browser.esm-C47QHsU4.js} +371 -304
- package/dist/styles/design-tokens/border-tokens/BorderTokenList.js +11 -10
- package/dist/styles/design-tokens/border-tokens/BorderTokens.stories.d.ts +0 -1
- package/dist/styles/design-tokens/color-tokens/ColorTokens.stories.d.ts +0 -1
- package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.js +9 -8
- package/dist/styles/design-tokens/sizing-tokens/index.stories.d.ts +0 -1
- package/dist/styles/design-tokens/typography-tokens/TypographyTokens.stories.d.ts +0 -1
- package/dist/styles/global-styles.d.ts +0 -1
- package/dist/styles/global-styles.js +1 -1
- package/dist/styles/theme/genesis-theme.d.ts +0 -1
- package/dist/styles/theme/genesis-theme.js +285 -337
- package/dist/styles/theme/genesis-theme.test.d.ts +1 -0
- package/dist/styles/theme/genesis-theme.test.js +69 -0
- package/dist/styles/theme/theme-tree/ThemeTree.js +488 -488
- package/dist/styles/theme/theme-tree/ThemeTree.stories.d.ts +0 -1
- package/dist/styles-DNay6iFa.js +292 -0
- package/dist/styles-Wpm1RiGr.js +9212 -0
- package/dist/styles-XuoEGUZZ.js +549 -0
- package/dist/test/setup.d.ts +0 -1
- package/dist/test/setup.js +35 -35
- package/dist/test/setup.types.d.ts +0 -1
- package/dist/test/setup.types.js +1 -1
- package/dist/{toArray-U3Az44CO.js → toArray-D5kvYi_U.js} +1 -1
- package/dist/useBreakpoint-ByLol0R9.js +88 -0
- package/dist/useCSSVarCls-YfJY1twF.js +10 -0
- package/dist/{useIcons-Ck4JP1m9.js → useIcons-CoxuumP_.js} +16 -16
- package/dist/{useId-D2tzlufo.js → useId-DLf1xVuv.js} +3 -3
- package/dist/useLocale-BQ3mKRyJ.js +16 -0
- package/dist/{useMergedState-D6toxSxh.js → useMergedState-D1-TbeEv.js} +2 -2
- package/dist/useSize-Ct1guc-z.js +9 -0
- package/dist/useVariants-C6UAAu9f.js +19 -0
- package/dist/{useZIndex-DhyHuZTN.js → useZIndex-tgX56o1r.js} +7 -6
- package/dist/utils/icon-util.js +48 -44
- package/dist/vi.B5EKKJdE-BsDIxc7v.js +14087 -0
- package/package.json +45 -24
- package/dist/EllipsisOutlined-DGMph0Bj.js +0 -1115
- package/dist/KeyCode-DM2sFh3-.js +0 -517
- package/dist/TextArea-Bkf9hh7l.js +0 -708
- package/dist/_baseIsEqual-L0-w1QRI.js +0 -598
- package/dist/button-BwqpCxVM.js +0 -1406
- package/dist/clsx-OuTLNxxd.js +0 -16
- package/dist/index-BRUI9igj.js +0 -11
- package/dist/index-BbTV2Cw5.js +0 -22638
- package/dist/index-BeGv28kJ.js +0 -5173
- package/dist/index-BvOLXELm.js +0 -102
- package/dist/index-CLSrpQRW.js +0 -416
- package/dist/index-CbVOl2U6.js +0 -288
- package/dist/index-D0U6r5O7.js +0 -780
- package/dist/index-DEu2PVzQ.js +0 -538
- package/dist/index-DLdU7Tpd.js +0 -183
- package/dist/index-DNQ-jnBx.js +0 -3321
- package/dist/index-DWjq9XYj.js +0 -899
- package/dist/responsiveObserver-dCkpy7Cb.js +0 -73
- package/dist/setup-DwHFLWUb.js +0 -24713
- package/dist/setup.types-dBtAXXGp.js +0 -8824
- package/dist/shadow-BoMGMNn3.js +0 -13
- package/dist/styles-CWdUpZom.js +0 -289
- package/dist/styles-qerRs7Rn.js +0 -9196
- package/dist/useBreakpoint-TkMv121M.js +0 -22
- package/dist/useCSSVarCls-Dau77fzS.js +0 -11
- package/dist/useLocale-CTfNpakL.js +0 -16
- package/dist/useSize-DSq4r6zy.js +0 -9
- package/dist/useVariants-DrLzUVLU.js +0 -30
- package/dist/utils/getAppointmentColor.d.ts +0 -4
- package/dist/utils/getAppointmentColor.js +0 -91
- package/dist/utils/isAllEnglishString.d.ts +0 -1
- package/dist/utils/isAllEnglishString.js +0 -8
- package/dist/utils/isAllEnglishString.test.js +0 -8
- package/dist/utils/parseAddress.d.ts +0 -3
- package/dist/utils/parseAddress.js +0 -19
- /package/dist/{utils/isAllEnglishString.test.d.ts → components/FormBrandon/__tests__/form.test.d.ts} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { e as i } from "./presets-CSXMiWyc.js";
|
|
2
2
|
import * as e from "react";
|
|
3
|
-
import { I as r } from "./AntdIcon-
|
|
3
|
+
import { I as r } from "./AntdIcon-DP6hPDqu.js";
|
|
4
4
|
var l = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z" } }] }, name: "exclamation-circle", theme: "filled" }, t = function(a, c) {
|
|
5
5
|
return /* @__PURE__ */ e.createElement(r, i({}, a, {
|
|
6
6
|
ref: c,
|
|
@@ -0,0 +1,424 @@
|
|
|
1
|
+
import * as Oe from "react";
|
|
2
|
+
import u, { useRef as T, cloneElement as Fe, forwardRef as we, useState as he, useImperativeHandle as Ae, useEffect as me, useContext as $e } from "react";
|
|
3
|
+
import { c as p, f as Ne, b as B, e as xe, _ as Z, g as _e, a as ge } from "./presets-CSXMiWyc.js";
|
|
4
|
+
import { n as Be, l as je, q as De } from "./CSSMotionList-DB0khM6h.js";
|
|
5
|
+
import { u as Pe } from "./useMergedState-D1-TbeEv.js";
|
|
6
|
+
import { o as ke } from "./omit-B_u6A-HL.js";
|
|
7
|
+
import { C as ye } from "./ContextIsolator-CUJnq-4F.js";
|
|
8
|
+
import { R as ze } from "./CloseCircleFilled-WEQ0SaSW.js";
|
|
9
|
+
import { g as Ce, a as Ke } from "./statusUtils-Kj9kMuVg.js";
|
|
10
|
+
import { d as be, D as Ve } from "./index-DCopujxC.js";
|
|
11
|
+
import { u as Te } from "./useCSSVarCls-YfJY1twF.js";
|
|
12
|
+
import { u as We } from "./useSize-Ct1guc-z.js";
|
|
13
|
+
import { F as Me } from "./context-CQfFkrkv.js";
|
|
14
|
+
import { u as Le } from "./useVariants-C6UAAu9f.js";
|
|
15
|
+
import { u as Ue } from "./Compact-DFcWZrNo.js";
|
|
16
|
+
import { u as He, b as Ge } from "./index-Bxbr727t.js";
|
|
17
|
+
function qe(e) {
|
|
18
|
+
return !!(e.addonBefore || e.addonAfter);
|
|
19
|
+
}
|
|
20
|
+
function Qe(e) {
|
|
21
|
+
return !!(e.prefix || e.suffix || e.allowClear);
|
|
22
|
+
}
|
|
23
|
+
function Se(e, a, r) {
|
|
24
|
+
var n = a.cloneNode(!0), t = Object.create(e, {
|
|
25
|
+
target: {
|
|
26
|
+
value: n
|
|
27
|
+
},
|
|
28
|
+
currentTarget: {
|
|
29
|
+
value: n
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
return n.value = r, typeof a.selectionStart == "number" && typeof a.selectionEnd == "number" && (n.selectionStart = a.selectionStart, n.selectionEnd = a.selectionEnd), n.setSelectionRange = function() {
|
|
33
|
+
a.setSelectionRange.apply(a, arguments);
|
|
34
|
+
}, t;
|
|
35
|
+
}
|
|
36
|
+
function Ee(e, a, r, n) {
|
|
37
|
+
if (r) {
|
|
38
|
+
var t = a;
|
|
39
|
+
if (a.type === "click") {
|
|
40
|
+
t = Se(a, e, ""), r(t);
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
if (e.type !== "file" && n !== void 0) {
|
|
44
|
+
t = Se(a, e, n), r(t);
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
r(t);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
function Je(e, a) {
|
|
51
|
+
if (e) {
|
|
52
|
+
e.focus(a);
|
|
53
|
+
var r = a || {}, n = r.cursor;
|
|
54
|
+
if (n) {
|
|
55
|
+
var t = e.value.length;
|
|
56
|
+
switch (n) {
|
|
57
|
+
case "start":
|
|
58
|
+
e.setSelectionRange(0, 0);
|
|
59
|
+
break;
|
|
60
|
+
case "end":
|
|
61
|
+
e.setSelectionRange(t, t);
|
|
62
|
+
break;
|
|
63
|
+
default:
|
|
64
|
+
e.setSelectionRange(0, t);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
var Xe = /* @__PURE__ */ u.forwardRef(function(e, a) {
|
|
70
|
+
var r, n, t, g = e.inputElement, x = e.children, f = e.prefixCls, O = e.prefix, F = e.suffix, S = e.addonBefore, A = e.addonAfter, ee = e.className, ie = e.style, W = e.disabled, M = e.readOnly, te = e.focused, j = e.triggerFocus, h = e.allowClear, H = e.value, G = e.handleReset, R = e.hidden, i = e.classes, s = e.classNames, D = e.dataAttrs, E = e.styles, y = e.components, P = e.onClear, ne = x ?? g, l = (y == null ? void 0 : y.affixWrapper) || "span", k = (y == null ? void 0 : y.groupWrapper) || "span", N = (y == null ? void 0 : y.wrapper) || "span", d = (y == null ? void 0 : y.groupAddon) || "span", $ = T(null), q = function(K) {
|
|
71
|
+
var X;
|
|
72
|
+
(X = $.current) !== null && X !== void 0 && X.contains(K.target) && (j == null || j());
|
|
73
|
+
}, ae = Qe(e), _ = /* @__PURE__ */ Fe(ne, {
|
|
74
|
+
value: H,
|
|
75
|
+
className: p((r = ne.props) === null || r === void 0 ? void 0 : r.className, !ae && (s == null ? void 0 : s.variant)) || null
|
|
76
|
+
}), L = T(null);
|
|
77
|
+
if (u.useImperativeHandle(a, function() {
|
|
78
|
+
return {
|
|
79
|
+
nativeElement: L.current || $.current
|
|
80
|
+
};
|
|
81
|
+
}), ae) {
|
|
82
|
+
var I = null;
|
|
83
|
+
if (h) {
|
|
84
|
+
var Q = !W && !M && H, J = "".concat(f, "-clear-icon"), oe = Ne(h) === "object" && h !== null && h !== void 0 && h.clearIcon ? h.clearIcon : "✖";
|
|
85
|
+
I = /* @__PURE__ */ u.createElement("button", {
|
|
86
|
+
type: "button",
|
|
87
|
+
tabIndex: -1,
|
|
88
|
+
onClick: function(K) {
|
|
89
|
+
G == null || G(K), P == null || P();
|
|
90
|
+
},
|
|
91
|
+
onMouseDown: function(K) {
|
|
92
|
+
return K.preventDefault();
|
|
93
|
+
},
|
|
94
|
+
className: p(J, B(B({}, "".concat(J, "-hidden"), !Q), "".concat(J, "-has-suffix"), !!F))
|
|
95
|
+
}, oe);
|
|
96
|
+
}
|
|
97
|
+
var C = "".concat(f, "-affix-wrapper"), ue = p(C, B(B(B(B(B({}, "".concat(f, "-disabled"), W), "".concat(C, "-disabled"), W), "".concat(C, "-focused"), te), "".concat(C, "-readonly"), M), "".concat(C, "-input-with-clear-btn"), F && h && H), i == null ? void 0 : i.affixWrapper, s == null ? void 0 : s.affixWrapper, s == null ? void 0 : s.variant), v = (F || h) && /* @__PURE__ */ u.createElement("span", {
|
|
98
|
+
className: p("".concat(f, "-suffix"), s == null ? void 0 : s.suffix),
|
|
99
|
+
style: E == null ? void 0 : E.suffix
|
|
100
|
+
}, I, F);
|
|
101
|
+
_ = /* @__PURE__ */ u.createElement(l, xe({
|
|
102
|
+
className: ue,
|
|
103
|
+
style: E == null ? void 0 : E.affixWrapper,
|
|
104
|
+
onClick: q
|
|
105
|
+
}, D == null ? void 0 : D.affixWrapper, {
|
|
106
|
+
ref: $
|
|
107
|
+
}), O && /* @__PURE__ */ u.createElement("span", {
|
|
108
|
+
className: p("".concat(f, "-prefix"), s == null ? void 0 : s.prefix),
|
|
109
|
+
style: E == null ? void 0 : E.prefix
|
|
110
|
+
}, O), _, v);
|
|
111
|
+
}
|
|
112
|
+
if (qe(e)) {
|
|
113
|
+
var b = "".concat(f, "-group"), z = "".concat(b, "-addon"), U = "".concat(b, "-wrapper"), re = p("".concat(f, "-wrapper"), b, i == null ? void 0 : i.wrapper, s == null ? void 0 : s.wrapper), ce = p(U, B({}, "".concat(U, "-disabled"), W), i == null ? void 0 : i.group, s == null ? void 0 : s.groupWrapper);
|
|
114
|
+
_ = /* @__PURE__ */ u.createElement(k, {
|
|
115
|
+
className: ce,
|
|
116
|
+
ref: L
|
|
117
|
+
}, /* @__PURE__ */ u.createElement(N, {
|
|
118
|
+
className: re
|
|
119
|
+
}, S && /* @__PURE__ */ u.createElement(d, {
|
|
120
|
+
className: z
|
|
121
|
+
}, S), _, A && /* @__PURE__ */ u.createElement(d, {
|
|
122
|
+
className: z
|
|
123
|
+
}, A)));
|
|
124
|
+
}
|
|
125
|
+
return /* @__PURE__ */ u.cloneElement(_, {
|
|
126
|
+
className: p((n = _.props) === null || n === void 0 ? void 0 : n.className, ee) || null,
|
|
127
|
+
style: Z(Z({}, (t = _.props) === null || t === void 0 ? void 0 : t.style), ie),
|
|
128
|
+
hidden: R
|
|
129
|
+
});
|
|
130
|
+
}), Ye = ["show"];
|
|
131
|
+
function Ze(e, a) {
|
|
132
|
+
return Oe.useMemo(function() {
|
|
133
|
+
var r = {};
|
|
134
|
+
a && (r.show = Ne(a) === "object" && a.formatter ? a.formatter : !!a), r = Z(Z({}, r), e);
|
|
135
|
+
var n = r, t = n.show, g = _e(n, Ye);
|
|
136
|
+
return Z(Z({}, g), {}, {
|
|
137
|
+
show: !!t,
|
|
138
|
+
showFormatter: typeof t == "function" ? t : void 0,
|
|
139
|
+
strategy: g.strategy || function(x) {
|
|
140
|
+
return x.length;
|
|
141
|
+
}
|
|
142
|
+
});
|
|
143
|
+
}, [e, a]);
|
|
144
|
+
}
|
|
145
|
+
var et = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnter", "onKeyDown", "onKeyUp", "prefixCls", "disabled", "htmlSize", "className", "maxLength", "suffix", "showCount", "count", "type", "classes", "classNames", "styles", "onCompositionStart", "onCompositionEnd"], tt = /* @__PURE__ */ we(function(e, a) {
|
|
146
|
+
var r = e.autoComplete, n = e.onChange, t = e.onFocus, g = e.onBlur, x = e.onPressEnter, f = e.onKeyDown, O = e.onKeyUp, F = e.prefixCls, S = F === void 0 ? "rc-input" : F, A = e.disabled, ee = e.htmlSize, ie = e.className, W = e.maxLength, M = e.suffix, te = e.showCount, j = e.count, h = e.type, H = h === void 0 ? "text" : h, G = e.classes, R = e.classNames, i = e.styles, s = e.onCompositionStart, D = e.onCompositionEnd, E = _e(e, et), y = he(!1), P = ge(y, 2), ne = P[0], l = P[1], k = T(!1), N = T(!1), d = T(null), $ = T(null), q = function(o) {
|
|
147
|
+
d.current && Je(d.current, o);
|
|
148
|
+
}, ae = Pe(e.defaultValue, {
|
|
149
|
+
value: e.value
|
|
150
|
+
}), _ = ge(ae, 2), L = _[0], I = _[1], Q = L == null ? "" : String(L), J = he(null), oe = ge(J, 2), C = oe[0], ue = oe[1], v = Ze(j, te), b = v.max || W, z = v.strategy(Q), U = !!b && z > b;
|
|
151
|
+
Ae(a, function() {
|
|
152
|
+
var c;
|
|
153
|
+
return {
|
|
154
|
+
focus: q,
|
|
155
|
+
blur: function() {
|
|
156
|
+
var m;
|
|
157
|
+
(m = d.current) === null || m === void 0 || m.blur();
|
|
158
|
+
},
|
|
159
|
+
setSelectionRange: function(m, de, le) {
|
|
160
|
+
var Y;
|
|
161
|
+
(Y = d.current) === null || Y === void 0 || Y.setSelectionRange(m, de, le);
|
|
162
|
+
},
|
|
163
|
+
select: function() {
|
|
164
|
+
var m;
|
|
165
|
+
(m = d.current) === null || m === void 0 || m.select();
|
|
166
|
+
},
|
|
167
|
+
input: d.current,
|
|
168
|
+
nativeElement: ((c = $.current) === null || c === void 0 ? void 0 : c.nativeElement) || d.current
|
|
169
|
+
};
|
|
170
|
+
}), me(function() {
|
|
171
|
+
N.current && (N.current = !1), l(function(c) {
|
|
172
|
+
return c && A ? !1 : c;
|
|
173
|
+
});
|
|
174
|
+
}, [A]);
|
|
175
|
+
var re = function(o, m, de) {
|
|
176
|
+
var le = m;
|
|
177
|
+
if (!k.current && v.exceedFormatter && v.max && v.strategy(m) > v.max) {
|
|
178
|
+
if (le = v.exceedFormatter(m, {
|
|
179
|
+
max: v.max
|
|
180
|
+
}), m !== le) {
|
|
181
|
+
var Y, pe;
|
|
182
|
+
ue([((Y = d.current) === null || Y === void 0 ? void 0 : Y.selectionStart) || 0, ((pe = d.current) === null || pe === void 0 ? void 0 : pe.selectionEnd) || 0]);
|
|
183
|
+
}
|
|
184
|
+
} else if (de.source === "compositionEnd")
|
|
185
|
+
return;
|
|
186
|
+
I(le), d.current && Ee(d.current, o, n, le);
|
|
187
|
+
};
|
|
188
|
+
me(function() {
|
|
189
|
+
if (C) {
|
|
190
|
+
var c;
|
|
191
|
+
(c = d.current) === null || c === void 0 || c.setSelectionRange.apply(c, Be(C));
|
|
192
|
+
}
|
|
193
|
+
}, [C]);
|
|
194
|
+
var ce = function(o) {
|
|
195
|
+
re(o, o.target.value, {
|
|
196
|
+
source: "change"
|
|
197
|
+
});
|
|
198
|
+
}, se = function(o) {
|
|
199
|
+
k.current = !1, re(o, o.currentTarget.value, {
|
|
200
|
+
source: "compositionEnd"
|
|
201
|
+
}), D == null || D(o);
|
|
202
|
+
}, K = function(o) {
|
|
203
|
+
x && o.key === "Enter" && !N.current && (N.current = !0, x(o)), f == null || f(o);
|
|
204
|
+
}, X = function(o) {
|
|
205
|
+
o.key === "Enter" && (N.current = !1), O == null || O(o);
|
|
206
|
+
}, fe = function(o) {
|
|
207
|
+
l(!0), t == null || t(o);
|
|
208
|
+
}, ve = function(o) {
|
|
209
|
+
N.current && (N.current = !1), l(!1), g == null || g(o);
|
|
210
|
+
}, w = function(o) {
|
|
211
|
+
I(""), q(), d.current && Ee(d.current, o, n);
|
|
212
|
+
}, V = U && "".concat(S, "-out-of-range"), Ie = function() {
|
|
213
|
+
var o = ke(e, [
|
|
214
|
+
"prefixCls",
|
|
215
|
+
"onPressEnter",
|
|
216
|
+
"addonBefore",
|
|
217
|
+
"addonAfter",
|
|
218
|
+
"prefix",
|
|
219
|
+
"suffix",
|
|
220
|
+
"allowClear",
|
|
221
|
+
// Input elements must be either controlled or uncontrolled,
|
|
222
|
+
// specify either the value prop, or the defaultValue prop, but not both.
|
|
223
|
+
"defaultValue",
|
|
224
|
+
"showCount",
|
|
225
|
+
"count",
|
|
226
|
+
"classes",
|
|
227
|
+
"htmlSize",
|
|
228
|
+
"styles",
|
|
229
|
+
"classNames",
|
|
230
|
+
"onClear"
|
|
231
|
+
]);
|
|
232
|
+
return /* @__PURE__ */ u.createElement("input", xe({
|
|
233
|
+
autoComplete: r
|
|
234
|
+
}, o, {
|
|
235
|
+
onChange: ce,
|
|
236
|
+
onFocus: fe,
|
|
237
|
+
onBlur: ve,
|
|
238
|
+
onKeyDown: K,
|
|
239
|
+
onKeyUp: X,
|
|
240
|
+
className: p(S, B({}, "".concat(S, "-disabled"), A), R == null ? void 0 : R.input),
|
|
241
|
+
style: i == null ? void 0 : i.input,
|
|
242
|
+
ref: d,
|
|
243
|
+
size: ee,
|
|
244
|
+
type: H,
|
|
245
|
+
onCompositionStart: function(de) {
|
|
246
|
+
k.current = !0, s == null || s(de);
|
|
247
|
+
},
|
|
248
|
+
onCompositionEnd: se
|
|
249
|
+
}));
|
|
250
|
+
}, Re = function() {
|
|
251
|
+
var o = Number(b) > 0;
|
|
252
|
+
if (M || v.show) {
|
|
253
|
+
var m = v.showFormatter ? v.showFormatter({
|
|
254
|
+
value: Q,
|
|
255
|
+
count: z,
|
|
256
|
+
maxLength: b
|
|
257
|
+
}) : "".concat(z).concat(o ? " / ".concat(b) : "");
|
|
258
|
+
return /* @__PURE__ */ u.createElement(u.Fragment, null, v.show && /* @__PURE__ */ u.createElement("span", {
|
|
259
|
+
className: p("".concat(S, "-show-count-suffix"), B({}, "".concat(S, "-show-count-has-suffix"), !!M), R == null ? void 0 : R.count),
|
|
260
|
+
style: Z({}, i == null ? void 0 : i.count)
|
|
261
|
+
}, m), M);
|
|
262
|
+
}
|
|
263
|
+
return null;
|
|
264
|
+
};
|
|
265
|
+
return /* @__PURE__ */ u.createElement(Xe, xe({}, E, {
|
|
266
|
+
prefixCls: S,
|
|
267
|
+
className: p(ie, V),
|
|
268
|
+
handleReset: w,
|
|
269
|
+
value: Q,
|
|
270
|
+
focused: ne,
|
|
271
|
+
triggerFocus: q,
|
|
272
|
+
suffix: Re(),
|
|
273
|
+
disabled: A,
|
|
274
|
+
classes: G,
|
|
275
|
+
classNames: R,
|
|
276
|
+
styles: i
|
|
277
|
+
}), Ie());
|
|
278
|
+
});
|
|
279
|
+
const nt = (e) => {
|
|
280
|
+
let a;
|
|
281
|
+
return typeof e == "object" && (e != null && e.clearIcon) ? a = e : e && (a = {
|
|
282
|
+
clearIcon: /* @__PURE__ */ u.createElement(ze, null)
|
|
283
|
+
}), a;
|
|
284
|
+
};
|
|
285
|
+
function at(e, a) {
|
|
286
|
+
const r = T([]), n = () => {
|
|
287
|
+
r.current.push(setTimeout(() => {
|
|
288
|
+
var t, g, x, f;
|
|
289
|
+
!((t = e.current) === null || t === void 0) && t.input && ((g = e.current) === null || g === void 0 ? void 0 : g.input.getAttribute("type")) === "password" && (!((x = e.current) === null || x === void 0) && x.input.hasAttribute("value")) && ((f = e.current) === null || f === void 0 || f.input.removeAttribute("value"));
|
|
290
|
+
}));
|
|
291
|
+
};
|
|
292
|
+
return me(() => (a && n(), () => r.current.forEach((t) => {
|
|
293
|
+
t && clearTimeout(t);
|
|
294
|
+
})), []), n;
|
|
295
|
+
}
|
|
296
|
+
function ot(e) {
|
|
297
|
+
return !!(e.prefix || e.suffix || e.allowClear || e.showCount);
|
|
298
|
+
}
|
|
299
|
+
var rt = function(e, a) {
|
|
300
|
+
var r = {};
|
|
301
|
+
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && a.indexOf(n) < 0 && (r[n] = e[n]);
|
|
302
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var t = 0, n = Object.getOwnPropertySymbols(e); t < n.length; t++)
|
|
303
|
+
a.indexOf(n[t]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[t]) && (r[n[t]] = e[n[t]]);
|
|
304
|
+
return r;
|
|
305
|
+
};
|
|
306
|
+
const st = /* @__PURE__ */ we((e, a) => {
|
|
307
|
+
const {
|
|
308
|
+
prefixCls: r,
|
|
309
|
+
bordered: n = !0,
|
|
310
|
+
status: t,
|
|
311
|
+
size: g,
|
|
312
|
+
disabled: x,
|
|
313
|
+
onBlur: f,
|
|
314
|
+
onFocus: O,
|
|
315
|
+
suffix: F,
|
|
316
|
+
allowClear: S,
|
|
317
|
+
addonAfter: A,
|
|
318
|
+
addonBefore: ee,
|
|
319
|
+
className: ie,
|
|
320
|
+
style: W,
|
|
321
|
+
styles: M,
|
|
322
|
+
rootClassName: te,
|
|
323
|
+
onChange: j,
|
|
324
|
+
classNames: h,
|
|
325
|
+
variant: H
|
|
326
|
+
} = e, G = rt(e, ["prefixCls", "bordered", "status", "size", "disabled", "onBlur", "onFocus", "suffix", "allowClear", "addonAfter", "addonBefore", "className", "style", "styles", "rootClassName", "onChange", "classNames", "variant"]);
|
|
327
|
+
if (process.env.NODE_ENV !== "production") {
|
|
328
|
+
const {
|
|
329
|
+
deprecated: w
|
|
330
|
+
} = be("Input");
|
|
331
|
+
w(!("bordered" in e), "bordered", "variant");
|
|
332
|
+
}
|
|
333
|
+
const {
|
|
334
|
+
getPrefixCls: R,
|
|
335
|
+
direction: i,
|
|
336
|
+
allowClear: s,
|
|
337
|
+
autoComplete: D,
|
|
338
|
+
className: E,
|
|
339
|
+
style: y,
|
|
340
|
+
classNames: P,
|
|
341
|
+
styles: ne
|
|
342
|
+
} = je("input"), l = R("input", r), k = T(null), N = Te(l), [d, $, q] = He(l, te), [ae] = Ge(l, N), {
|
|
343
|
+
compactSize: _,
|
|
344
|
+
compactItemClassnames: L
|
|
345
|
+
} = Ue(l, i), I = We((w) => {
|
|
346
|
+
var V;
|
|
347
|
+
return (V = g ?? _) !== null && V !== void 0 ? V : w;
|
|
348
|
+
}), Q = u.useContext(Ve), J = x ?? Q, {
|
|
349
|
+
status: oe,
|
|
350
|
+
hasFeedback: C,
|
|
351
|
+
feedbackIcon: ue
|
|
352
|
+
} = $e(Me), v = Ke(oe, t), b = ot(e) || !!C, z = T(b);
|
|
353
|
+
if (process.env.NODE_ENV !== "production") {
|
|
354
|
+
const w = be("Input");
|
|
355
|
+
me(() => {
|
|
356
|
+
var V;
|
|
357
|
+
b && !z.current && process.env.NODE_ENV !== "production" && w(document.activeElement === ((V = k.current) === null || V === void 0 ? void 0 : V.input), "usage", "When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"), z.current = b;
|
|
358
|
+
}, [b]);
|
|
359
|
+
}
|
|
360
|
+
const U = at(k, !0), re = (w) => {
|
|
361
|
+
U(), f == null || f(w);
|
|
362
|
+
}, ce = (w) => {
|
|
363
|
+
U(), O == null || O(w);
|
|
364
|
+
}, se = (w) => {
|
|
365
|
+
U(), j == null || j(w);
|
|
366
|
+
}, K = (C || F) && /* @__PURE__ */ u.createElement(u.Fragment, null, F, C && ue), X = nt(S ?? s), [fe, ve] = Le("input", H, n);
|
|
367
|
+
return d(ae(/* @__PURE__ */ u.createElement(tt, Object.assign({
|
|
368
|
+
ref: De(a, k),
|
|
369
|
+
prefixCls: l,
|
|
370
|
+
autoComplete: D
|
|
371
|
+
}, G, {
|
|
372
|
+
disabled: J,
|
|
373
|
+
onBlur: re,
|
|
374
|
+
onFocus: ce,
|
|
375
|
+
style: Object.assign(Object.assign({}, y), W),
|
|
376
|
+
styles: Object.assign(Object.assign({}, ne), M),
|
|
377
|
+
suffix: K,
|
|
378
|
+
allowClear: X,
|
|
379
|
+
className: p(ie, te, q, N, L, E),
|
|
380
|
+
onChange: se,
|
|
381
|
+
addonBefore: ee && /* @__PURE__ */ u.createElement(ye, {
|
|
382
|
+
form: !0,
|
|
383
|
+
space: !0
|
|
384
|
+
}, ee),
|
|
385
|
+
addonAfter: A && /* @__PURE__ */ u.createElement(ye, {
|
|
386
|
+
form: !0,
|
|
387
|
+
space: !0
|
|
388
|
+
}, A),
|
|
389
|
+
classNames: Object.assign(Object.assign(Object.assign({}, h), P), {
|
|
390
|
+
input: p({
|
|
391
|
+
[`${l}-sm`]: I === "small",
|
|
392
|
+
[`${l}-lg`]: I === "large",
|
|
393
|
+
[`${l}-rtl`]: i === "rtl"
|
|
394
|
+
}, h == null ? void 0 : h.input, P.input, $),
|
|
395
|
+
variant: p({
|
|
396
|
+
[`${l}-${fe}`]: ve
|
|
397
|
+
}, Ce(l, v)),
|
|
398
|
+
affixWrapper: p({
|
|
399
|
+
[`${l}-affix-wrapper-sm`]: I === "small",
|
|
400
|
+
[`${l}-affix-wrapper-lg`]: I === "large",
|
|
401
|
+
[`${l}-affix-wrapper-rtl`]: i === "rtl"
|
|
402
|
+
}, $),
|
|
403
|
+
wrapper: p({
|
|
404
|
+
[`${l}-group-rtl`]: i === "rtl"
|
|
405
|
+
}, $),
|
|
406
|
+
groupWrapper: p({
|
|
407
|
+
[`${l}-group-wrapper-sm`]: I === "small",
|
|
408
|
+
[`${l}-group-wrapper-lg`]: I === "large",
|
|
409
|
+
[`${l}-group-wrapper-rtl`]: i === "rtl",
|
|
410
|
+
[`${l}-group-wrapper-${fe}`]: ve
|
|
411
|
+
}, Ce(`${l}-group-wrapper`, v, C), $)
|
|
412
|
+
})
|
|
413
|
+
}))));
|
|
414
|
+
});
|
|
415
|
+
process.env.NODE_ENV !== "production" && (st.displayName = "Input");
|
|
416
|
+
export {
|
|
417
|
+
Xe as B,
|
|
418
|
+
st as I,
|
|
419
|
+
at as a,
|
|
420
|
+
nt as g,
|
|
421
|
+
Ee as r,
|
|
422
|
+
Je as t,
|
|
423
|
+
Ze as u
|
|
424
|
+
};
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
var E = {
|
|
2
|
+
/**
|
|
3
|
+
* BACKSPACE
|
|
4
|
+
*/
|
|
5
|
+
BACKSPACE: 8,
|
|
6
|
+
/**
|
|
7
|
+
* TAB
|
|
8
|
+
*/
|
|
9
|
+
TAB: 9,
|
|
10
|
+
// NUMLOCK on FF/Safari Mac
|
|
11
|
+
/**
|
|
12
|
+
* ENTER
|
|
13
|
+
*/
|
|
14
|
+
ENTER: 13,
|
|
15
|
+
/**
|
|
16
|
+
* SHIFT
|
|
17
|
+
*/
|
|
18
|
+
SHIFT: 16,
|
|
19
|
+
/**
|
|
20
|
+
* CTRL
|
|
21
|
+
*/
|
|
22
|
+
CTRL: 17,
|
|
23
|
+
/**
|
|
24
|
+
* ALT
|
|
25
|
+
*/
|
|
26
|
+
ALT: 18,
|
|
27
|
+
/**
|
|
28
|
+
* CAPS_LOCK
|
|
29
|
+
*/
|
|
30
|
+
CAPS_LOCK: 20,
|
|
31
|
+
/**
|
|
32
|
+
* ESC
|
|
33
|
+
*/
|
|
34
|
+
ESC: 27,
|
|
35
|
+
/**
|
|
36
|
+
* SPACE
|
|
37
|
+
*/
|
|
38
|
+
SPACE: 32,
|
|
39
|
+
// also NUM_SOUTH_EAST
|
|
40
|
+
/**
|
|
41
|
+
* END
|
|
42
|
+
*/
|
|
43
|
+
END: 35,
|
|
44
|
+
// also NUM_SOUTH_WEST
|
|
45
|
+
/**
|
|
46
|
+
* HOME
|
|
47
|
+
*/
|
|
48
|
+
HOME: 36,
|
|
49
|
+
// also NUM_NORTH_WEST
|
|
50
|
+
/**
|
|
51
|
+
* LEFT
|
|
52
|
+
*/
|
|
53
|
+
LEFT: 37,
|
|
54
|
+
// also NUM_WEST
|
|
55
|
+
/**
|
|
56
|
+
* UP
|
|
57
|
+
*/
|
|
58
|
+
UP: 38,
|
|
59
|
+
// also NUM_NORTH
|
|
60
|
+
/**
|
|
61
|
+
* RIGHT
|
|
62
|
+
*/
|
|
63
|
+
RIGHT: 39,
|
|
64
|
+
// also NUM_EAST
|
|
65
|
+
/**
|
|
66
|
+
* DOWN
|
|
67
|
+
*/
|
|
68
|
+
DOWN: 40,
|
|
69
|
+
/**
|
|
70
|
+
* N
|
|
71
|
+
*/
|
|
72
|
+
N: 78,
|
|
73
|
+
/**
|
|
74
|
+
* P
|
|
75
|
+
*/
|
|
76
|
+
P: 80,
|
|
77
|
+
/**
|
|
78
|
+
* META
|
|
79
|
+
*/
|
|
80
|
+
META: 91,
|
|
81
|
+
// WIN_KEY_LEFT
|
|
82
|
+
/**
|
|
83
|
+
* WIN_KEY_RIGHT
|
|
84
|
+
*/
|
|
85
|
+
WIN_KEY_RIGHT: 92,
|
|
86
|
+
/**
|
|
87
|
+
* CONTEXT_MENU
|
|
88
|
+
*/
|
|
89
|
+
CONTEXT_MENU: 93,
|
|
90
|
+
/**
|
|
91
|
+
* F1
|
|
92
|
+
*/
|
|
93
|
+
F1: 112,
|
|
94
|
+
/**
|
|
95
|
+
* F2
|
|
96
|
+
*/
|
|
97
|
+
F2: 113,
|
|
98
|
+
/**
|
|
99
|
+
* F3
|
|
100
|
+
*/
|
|
101
|
+
F3: 114,
|
|
102
|
+
/**
|
|
103
|
+
* F4
|
|
104
|
+
*/
|
|
105
|
+
F4: 115,
|
|
106
|
+
/**
|
|
107
|
+
* F5
|
|
108
|
+
*/
|
|
109
|
+
F5: 116,
|
|
110
|
+
/**
|
|
111
|
+
* F6
|
|
112
|
+
*/
|
|
113
|
+
F6: 117,
|
|
114
|
+
/**
|
|
115
|
+
* F7
|
|
116
|
+
*/
|
|
117
|
+
F7: 118,
|
|
118
|
+
/**
|
|
119
|
+
* F8
|
|
120
|
+
*/
|
|
121
|
+
F8: 119,
|
|
122
|
+
/**
|
|
123
|
+
* F9
|
|
124
|
+
*/
|
|
125
|
+
F9: 120,
|
|
126
|
+
/**
|
|
127
|
+
* F10
|
|
128
|
+
*/
|
|
129
|
+
F10: 121,
|
|
130
|
+
/**
|
|
131
|
+
* F11
|
|
132
|
+
*/
|
|
133
|
+
F11: 122,
|
|
134
|
+
/**
|
|
135
|
+
* F12
|
|
136
|
+
*/
|
|
137
|
+
F12: 123,
|
|
138
|
+
/**
|
|
139
|
+
* SEMICOLON
|
|
140
|
+
*/
|
|
141
|
+
SEMICOLON: 186,
|
|
142
|
+
// needs localization
|
|
143
|
+
/**
|
|
144
|
+
* EQUALS
|
|
145
|
+
*/
|
|
146
|
+
EQUALS: 187,
|
|
147
|
+
// needs localization
|
|
148
|
+
/**
|
|
149
|
+
* WIN_KEY
|
|
150
|
+
*/
|
|
151
|
+
WIN_KEY: 224
|
|
152
|
+
};
|
|
153
|
+
export {
|
|
154
|
+
E as K
|
|
155
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { _ as
|
|
2
|
-
import { b as a } from "./presets-
|
|
3
|
-
var
|
|
4
|
-
function t(
|
|
5
|
-
r(this, t), a(this, "name", void 0), a(this, "style", void 0), a(this, "_keyframe", !0), this.name =
|
|
1
|
+
import { _ as n, e as r } from "./CSSMotionList-DB0khM6h.js";
|
|
2
|
+
import { b as a } from "./presets-CSXMiWyc.js";
|
|
3
|
+
var o = /* @__PURE__ */ function() {
|
|
4
|
+
function t(s, e) {
|
|
5
|
+
r(this, t), a(this, "name", void 0), a(this, "style", void 0), a(this, "_keyframe", !0), this.name = s, this.style = e;
|
|
6
6
|
}
|
|
7
|
-
return
|
|
7
|
+
return n(t, [{
|
|
8
8
|
key: "getName",
|
|
9
9
|
value: function() {
|
|
10
10
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
|
|
@@ -13,5 +13,5 @@ var u = /* @__PURE__ */ function() {
|
|
|
13
13
|
}]), t;
|
|
14
14
|
}();
|
|
15
15
|
export {
|
|
16
|
-
|
|
16
|
+
o as K
|
|
17
17
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { e as t } from "./presets-CSXMiWyc.js";
|
|
2
2
|
import * as e from "react";
|
|
3
|
-
import { I as n } from "./AntdIcon-
|
|
3
|
+
import { I as n } from "./AntdIcon-DP6hPDqu.js";
|
|
4
4
|
var i = { icon: { tag: "svg", attrs: { viewBox: "0 0 1024 1024", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z" } }] }, name: "loading", theme: "outlined" }, r = function(a, o) {
|
|
5
5
|
return /* @__PURE__ */ e.createElement(n, t({}, a, {
|
|
6
6
|
ref: o,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { e as t } from "./presets-CSXMiWyc.js";
|
|
2
2
|
import * as e from "react";
|
|
3
|
-
import { I as i } from "./AntdIcon-
|
|
3
|
+
import { I as i } from "./AntdIcon-DP6hPDqu.js";
|
|
4
4
|
var n = { icon: { tag: "svg", attrs: { "fill-rule": "evenodd", viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z" } }] }, name: "close-circle", theme: "outlined" }, l = function(a, c) {
|
|
5
5
|
return /* @__PURE__ */ e.createElement(i, t({}, a, {
|
|
6
6
|
ref: c,
|