@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
package/dist/index-BvOLXELm.js
DELETED
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import { C as S, o as I } from "./index-BbTV2Cw5.js";
|
|
2
|
-
import * as r from "react";
|
|
3
|
-
import { e as O } from "./presets-Djh_L_6R.js";
|
|
4
|
-
import { o as A } from "./omit-B_u6A-HL.js";
|
|
5
|
-
import { S as b, u as j, L as F, a as z } from "./dropdown-Dp_PTQ2u.js";
|
|
6
|
-
import { t as B } from "./toArray-U3Az44CO.js";
|
|
7
|
-
function T(t, o, a) {
|
|
8
|
-
return typeof a == "boolean" ? a : t.length ? !0 : B(o).some((s) => s.type === b);
|
|
9
|
-
}
|
|
10
|
-
var v = function(t, o) {
|
|
11
|
-
var a = {};
|
|
12
|
-
for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && o.indexOf(e) < 0 && (a[e] = t[e]);
|
|
13
|
-
if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var s = 0, e = Object.getOwnPropertySymbols(t); s < e.length; s++)
|
|
14
|
-
o.indexOf(e[s]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[s]) && (a[e[s]] = t[e[s]]);
|
|
15
|
-
return a;
|
|
16
|
-
};
|
|
17
|
-
function u(t) {
|
|
18
|
-
let {
|
|
19
|
-
suffixCls: o,
|
|
20
|
-
tagName: a,
|
|
21
|
-
displayName: e
|
|
22
|
-
} = t;
|
|
23
|
-
return (s) => {
|
|
24
|
-
const n = /* @__PURE__ */ r.forwardRef((c, f) => /* @__PURE__ */ r.createElement(s, Object.assign({
|
|
25
|
-
ref: f,
|
|
26
|
-
suffixCls: o,
|
|
27
|
-
tagName: a
|
|
28
|
-
}, c)));
|
|
29
|
-
return process.env.NODE_ENV !== "production" && (n.displayName = e), n;
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
const h = /* @__PURE__ */ r.forwardRef((t, o) => {
|
|
33
|
-
const {
|
|
34
|
-
prefixCls: a,
|
|
35
|
-
suffixCls: e,
|
|
36
|
-
className: s,
|
|
37
|
-
tagName: n
|
|
38
|
-
} = t, c = v(t, ["prefixCls", "suffixCls", "className", "tagName"]), {
|
|
39
|
-
getPrefixCls: f
|
|
40
|
-
} = r.useContext(S), i = f("layout", a), [C, p, y] = j(i), x = e ? `${i}-${e}` : i;
|
|
41
|
-
return C(/* @__PURE__ */ r.createElement(n, Object.assign({
|
|
42
|
-
className: O(a || x, s, p, y),
|
|
43
|
-
ref: o
|
|
44
|
-
}, c)));
|
|
45
|
-
}), k = /* @__PURE__ */ r.forwardRef((t, o) => {
|
|
46
|
-
const {
|
|
47
|
-
direction: a
|
|
48
|
-
} = r.useContext(S), [e, s] = r.useState([]), {
|
|
49
|
-
prefixCls: n,
|
|
50
|
-
className: c,
|
|
51
|
-
rootClassName: f,
|
|
52
|
-
children: i,
|
|
53
|
-
hasSider: C,
|
|
54
|
-
tagName: p,
|
|
55
|
-
style: y
|
|
56
|
-
} = t, x = v(t, ["prefixCls", "className", "rootClassName", "children", "hasSider", "tagName", "style"]), P = A(x, ["suffixCls"]), {
|
|
57
|
-
getPrefixCls: w,
|
|
58
|
-
layout: l
|
|
59
|
-
} = r.useContext(S), m = w("layout", n), E = T(e, i, C), [L, _, H] = j(m), R = O(m, {
|
|
60
|
-
[`${m}-has-sider`]: E,
|
|
61
|
-
[`${m}-rtl`]: a === "rtl"
|
|
62
|
-
}, l == null ? void 0 : l.className, c, f, _, H), V = r.useMemo(() => ({
|
|
63
|
-
siderHook: {
|
|
64
|
-
addSider: (N) => {
|
|
65
|
-
s((g) => [].concat(I(g), [N]));
|
|
66
|
-
},
|
|
67
|
-
removeSider: (N) => {
|
|
68
|
-
s((g) => g.filter(($) => $ !== N));
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}), []);
|
|
72
|
-
return L(/* @__PURE__ */ r.createElement(F.Provider, {
|
|
73
|
-
value: V
|
|
74
|
-
}, /* @__PURE__ */ r.createElement(p, Object.assign({
|
|
75
|
-
ref: o,
|
|
76
|
-
className: R,
|
|
77
|
-
style: Object.assign(Object.assign({}, l == null ? void 0 : l.style), y)
|
|
78
|
-
}, P), i)));
|
|
79
|
-
}), D = u({
|
|
80
|
-
tagName: "div",
|
|
81
|
-
displayName: "Layout"
|
|
82
|
-
})(k), M = u({
|
|
83
|
-
suffixCls: "header",
|
|
84
|
-
tagName: "header",
|
|
85
|
-
displayName: "Header"
|
|
86
|
-
})(h), W = u({
|
|
87
|
-
suffixCls: "footer",
|
|
88
|
-
tagName: "footer",
|
|
89
|
-
displayName: "Footer"
|
|
90
|
-
})(h), q = u({
|
|
91
|
-
suffixCls: "content",
|
|
92
|
-
tagName: "main",
|
|
93
|
-
displayName: "Content"
|
|
94
|
-
})(h), d = D;
|
|
95
|
-
d.Header = M;
|
|
96
|
-
d.Footer = W;
|
|
97
|
-
d.Content = q;
|
|
98
|
-
d.Sider = b;
|
|
99
|
-
d._InternalSiderContext = z;
|
|
100
|
-
export {
|
|
101
|
-
d as L
|
|
102
|
-
};
|
package/dist/index-CLSrpQRW.js
DELETED
|
@@ -1,416 +0,0 @@
|
|
|
1
|
-
import * as o from "react";
|
|
2
|
-
import { useContext as Z, useMemo as fe, useState as de, useRef as pe } from "react";
|
|
3
|
-
import { e as G, d as te } from "./presets-Djh_L_6R.js";
|
|
4
|
-
import { C as H, g as oe, j as me, m as ge, F as Ce, a as ee, o as ye, D as ve, t as se } from "./index-BbTV2Cw5.js";
|
|
5
|
-
import { F as q } from "./context-DIFtNa4d.js";
|
|
6
|
-
import { u as be, i as Oe, a as he } from "./index-DOsPeIWJ.js";
|
|
7
|
-
import { I as Q, u as xe, T as Ee } from "./TextArea-Bkf9hh7l.js";
|
|
8
|
-
import { p as Ie } from "./pickAttrs-CleuMJFR.js";
|
|
9
|
-
import { g as Pe } from "./useVariants-DrLzUVLU.js";
|
|
10
|
-
import { u as Se } from "./useCSSVarCls-Dau77fzS.js";
|
|
11
|
-
import { u as re } from "./useSize-DSq4r6zy.js";
|
|
12
|
-
import "./index-DLdU7Tpd.js";
|
|
13
|
-
import { I as ae } from "./AntdIcon-nCNB0J1E.js";
|
|
14
|
-
import { o as we } from "./omit-B_u6A-HL.js";
|
|
15
|
-
import { R as _e } from "./SearchOutlined-DNj-7b_h.js";
|
|
16
|
-
import { c as ne } from "./reactNode-sKPeiqPL.js";
|
|
17
|
-
import { B as ze } from "./button-BwqpCxVM.js";
|
|
18
|
-
import { u as Ne } from "./Compact-Du9689ax.js";
|
|
19
|
-
const je = (e) => {
|
|
20
|
-
const {
|
|
21
|
-
getPrefixCls: s,
|
|
22
|
-
direction: r
|
|
23
|
-
} = Z(H), {
|
|
24
|
-
prefixCls: n,
|
|
25
|
-
className: t
|
|
26
|
-
} = e, c = s("input-group", n), v = s("input"), [g, b] = be(v), O = G(c, {
|
|
27
|
-
[`${c}-lg`]: e.size === "large",
|
|
28
|
-
[`${c}-sm`]: e.size === "small",
|
|
29
|
-
[`${c}-compact`]: e.compact,
|
|
30
|
-
[`${c}-rtl`]: r === "rtl"
|
|
31
|
-
}, b, t), C = Z(q), m = fe(() => Object.assign(Object.assign({}, C), {
|
|
32
|
-
isFormItemInput: !1
|
|
33
|
-
}), [C]);
|
|
34
|
-
return process.env.NODE_ENV !== "production" && oe("Input.Group").deprecated(!1, "Input.Group", "Space.Compact"), g(/* @__PURE__ */ o.createElement("span", {
|
|
35
|
-
className: O,
|
|
36
|
-
style: e.style,
|
|
37
|
-
onMouseEnter: e.onMouseEnter,
|
|
38
|
-
onMouseLeave: e.onMouseLeave,
|
|
39
|
-
onFocus: e.onFocus,
|
|
40
|
-
onBlur: e.onBlur
|
|
41
|
-
}, /* @__PURE__ */ o.createElement(q.Provider, {
|
|
42
|
-
value: m
|
|
43
|
-
}, e.children)));
|
|
44
|
-
}, $e = (e) => {
|
|
45
|
-
const {
|
|
46
|
-
componentCls: s,
|
|
47
|
-
paddingXS: r
|
|
48
|
-
} = e;
|
|
49
|
-
return {
|
|
50
|
-
[s]: {
|
|
51
|
-
display: "inline-flex",
|
|
52
|
-
alignItems: "center",
|
|
53
|
-
flexWrap: "nowrap",
|
|
54
|
-
columnGap: r,
|
|
55
|
-
"&-rtl": {
|
|
56
|
-
direction: "rtl"
|
|
57
|
-
},
|
|
58
|
-
[`${s}-input`]: {
|
|
59
|
-
textAlign: "center",
|
|
60
|
-
paddingInline: e.paddingXXS
|
|
61
|
-
},
|
|
62
|
-
// ================= Size =================
|
|
63
|
-
[`&${s}-sm ${s}-input`]: {
|
|
64
|
-
paddingInline: e.calc(e.paddingXXS).div(2).equal()
|
|
65
|
-
},
|
|
66
|
-
[`&${s}-lg ${s}-input`]: {
|
|
67
|
-
paddingInline: e.paddingXS
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
};
|
|
71
|
-
}, Re = me(["Input", "OTP"], (e) => {
|
|
72
|
-
const s = ge(e, Oe(e));
|
|
73
|
-
return [$e(s)];
|
|
74
|
-
}, he);
|
|
75
|
-
var ke = function(e, s) {
|
|
76
|
-
var r = {};
|
|
77
|
-
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && s.indexOf(n) < 0 && (r[n] = e[n]);
|
|
78
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var t = 0, n = Object.getOwnPropertySymbols(e); t < n.length; t++)
|
|
79
|
-
s.indexOf(n[t]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[t]) && (r[n[t]] = e[n[t]]);
|
|
80
|
-
return r;
|
|
81
|
-
};
|
|
82
|
-
const Me = /* @__PURE__ */ o.forwardRef((e, s) => {
|
|
83
|
-
const {
|
|
84
|
-
value: r,
|
|
85
|
-
onChange: n,
|
|
86
|
-
onActiveChange: t,
|
|
87
|
-
index: c,
|
|
88
|
-
mask: v
|
|
89
|
-
} = e, g = ke(e, ["value", "onChange", "onActiveChange", "index", "mask"]), b = r && typeof v == "string" ? v : r, O = (f) => {
|
|
90
|
-
n(c, f.target.value);
|
|
91
|
-
}, C = o.useRef(null);
|
|
92
|
-
o.useImperativeHandle(s, () => C.current);
|
|
93
|
-
const m = () => {
|
|
94
|
-
Ce(() => {
|
|
95
|
-
var f;
|
|
96
|
-
const y = (f = C.current) === null || f === void 0 ? void 0 : f.input;
|
|
97
|
-
document.activeElement === y && y && y.select();
|
|
98
|
-
});
|
|
99
|
-
}, w = (f) => {
|
|
100
|
-
const {
|
|
101
|
-
key: y,
|
|
102
|
-
ctrlKey: R,
|
|
103
|
-
metaKey: k
|
|
104
|
-
} = f;
|
|
105
|
-
y === "ArrowLeft" ? t(c - 1) : y === "ArrowRight" ? t(c + 1) : y === "z" && (R || k) && f.preventDefault(), m();
|
|
106
|
-
}, P = (f) => {
|
|
107
|
-
f.key === "Backspace" && !r && t(c - 1), m();
|
|
108
|
-
};
|
|
109
|
-
return /* @__PURE__ */ o.createElement(Q, Object.assign({
|
|
110
|
-
type: v === !0 ? "password" : "text"
|
|
111
|
-
}, g, {
|
|
112
|
-
ref: C,
|
|
113
|
-
value: b,
|
|
114
|
-
onInput: O,
|
|
115
|
-
onFocus: m,
|
|
116
|
-
onKeyDown: w,
|
|
117
|
-
onKeyUp: P,
|
|
118
|
-
onMouseDown: m,
|
|
119
|
-
onMouseUp: m
|
|
120
|
-
}));
|
|
121
|
-
});
|
|
122
|
-
var Ae = function(e, s) {
|
|
123
|
-
var r = {};
|
|
124
|
-
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && s.indexOf(n) < 0 && (r[n] = e[n]);
|
|
125
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var t = 0, n = Object.getOwnPropertySymbols(e); t < n.length; t++)
|
|
126
|
-
s.indexOf(n[t]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[t]) && (r[n[t]] = e[n[t]]);
|
|
127
|
-
return r;
|
|
128
|
-
};
|
|
129
|
-
function X(e) {
|
|
130
|
-
return (e || "").split("");
|
|
131
|
-
}
|
|
132
|
-
const De = /* @__PURE__ */ o.forwardRef((e, s) => {
|
|
133
|
-
const {
|
|
134
|
-
prefixCls: r,
|
|
135
|
-
length: n = 6,
|
|
136
|
-
size: t,
|
|
137
|
-
defaultValue: c,
|
|
138
|
-
value: v,
|
|
139
|
-
onChange: g,
|
|
140
|
-
formatter: b,
|
|
141
|
-
variant: O,
|
|
142
|
-
disabled: C,
|
|
143
|
-
status: m,
|
|
144
|
-
autoFocus: w,
|
|
145
|
-
mask: P,
|
|
146
|
-
type: f,
|
|
147
|
-
onInput: y,
|
|
148
|
-
inputMode: R
|
|
149
|
-
} = e, k = Ae(e, ["prefixCls", "length", "size", "defaultValue", "value", "onChange", "formatter", "variant", "disabled", "status", "autoFocus", "mask", "type", "onInput", "inputMode"]);
|
|
150
|
-
if (process.env.NODE_ENV !== "production") {
|
|
151
|
-
const a = oe("Input.OTP");
|
|
152
|
-
process.env.NODE_ENV !== "production" && a(!(typeof P == "string" && P.length > 1), "usage", "`mask` prop should be a single character.");
|
|
153
|
-
}
|
|
154
|
-
const {
|
|
155
|
-
getPrefixCls: _,
|
|
156
|
-
direction: z
|
|
157
|
-
} = o.useContext(H), E = _("otp", r), V = Ie(k, {
|
|
158
|
-
aria: !0,
|
|
159
|
-
data: !0,
|
|
160
|
-
attr: !0
|
|
161
|
-
}), S = Se(E), [M, B, A] = Re(E, S), h = re((a) => t ?? a), N = o.useContext(q), j = Pe(N.status, m), D = o.useMemo(() => Object.assign(Object.assign({}, N), {
|
|
162
|
-
status: j,
|
|
163
|
-
hasFeedback: !1,
|
|
164
|
-
feedbackIcon: null
|
|
165
|
-
}), [N, j]), I = o.useRef(null), x = o.useRef({});
|
|
166
|
-
o.useImperativeHandle(s, () => ({
|
|
167
|
-
focus: () => {
|
|
168
|
-
var a;
|
|
169
|
-
(a = x.current[0]) === null || a === void 0 || a.focus();
|
|
170
|
-
},
|
|
171
|
-
blur: () => {
|
|
172
|
-
var a;
|
|
173
|
-
for (let l = 0; l < n; l += 1)
|
|
174
|
-
(a = x.current[l]) === null || a === void 0 || a.blur();
|
|
175
|
-
},
|
|
176
|
-
nativeElement: I.current
|
|
177
|
-
}));
|
|
178
|
-
const F = (a) => b ? b(a) : a, [L, U] = o.useState(X(F(c || "")));
|
|
179
|
-
o.useEffect(() => {
|
|
180
|
-
v !== void 0 && U(X(v));
|
|
181
|
-
}, [v]);
|
|
182
|
-
const W = ee((a) => {
|
|
183
|
-
U(a), y && y(a), g && a.length === n && a.every((l) => l) && a.some((l, u) => L[u] !== l) && g(a.join(""));
|
|
184
|
-
}), J = ee((a, l) => {
|
|
185
|
-
let u = ye(L);
|
|
186
|
-
for (let p = 0; p < a; p += 1)
|
|
187
|
-
u[p] || (u[p] = "");
|
|
188
|
-
l.length <= 1 ? u[a] = l : u = u.slice(0, a).concat(X(l)), u = u.slice(0, n);
|
|
189
|
-
for (let p = u.length - 1; p >= 0 && !u[p]; p -= 1)
|
|
190
|
-
u.pop();
|
|
191
|
-
const T = F(u.map((p) => p || " ").join(""));
|
|
192
|
-
return u = X(T).map((p, Y) => p === " " && !u[Y] ? u[Y] : p), u;
|
|
193
|
-
}), i = (a, l) => {
|
|
194
|
-
var u;
|
|
195
|
-
const T = J(a, l), p = Math.min(a + l.length, n - 1);
|
|
196
|
-
p !== a && T[a] !== void 0 && ((u = x.current[p]) === null || u === void 0 || u.focus()), W(T);
|
|
197
|
-
}, d = (a) => {
|
|
198
|
-
var l;
|
|
199
|
-
(l = x.current[a]) === null || l === void 0 || l.focus();
|
|
200
|
-
}, $ = {
|
|
201
|
-
variant: O,
|
|
202
|
-
disabled: C,
|
|
203
|
-
status: j,
|
|
204
|
-
mask: P,
|
|
205
|
-
type: f,
|
|
206
|
-
inputMode: R
|
|
207
|
-
};
|
|
208
|
-
return M(/* @__PURE__ */ o.createElement("div", Object.assign({}, V, {
|
|
209
|
-
ref: I,
|
|
210
|
-
className: G(E, {
|
|
211
|
-
[`${E}-sm`]: h === "small",
|
|
212
|
-
[`${E}-lg`]: h === "large",
|
|
213
|
-
[`${E}-rtl`]: z === "rtl"
|
|
214
|
-
}, A, B)
|
|
215
|
-
}), /* @__PURE__ */ o.createElement(q.Provider, {
|
|
216
|
-
value: D
|
|
217
|
-
}, Array.from({
|
|
218
|
-
length: n
|
|
219
|
-
}).map((a, l) => {
|
|
220
|
-
const u = `otp-${l}`, T = L[l] || "";
|
|
221
|
-
return /* @__PURE__ */ o.createElement(Me, Object.assign({
|
|
222
|
-
ref: (p) => {
|
|
223
|
-
x.current[l] = p;
|
|
224
|
-
},
|
|
225
|
-
key: u,
|
|
226
|
-
index: l,
|
|
227
|
-
size: h,
|
|
228
|
-
htmlSize: 1,
|
|
229
|
-
className: `${E}-input`,
|
|
230
|
-
onChange: i,
|
|
231
|
-
value: T,
|
|
232
|
-
onActiveChange: d,
|
|
233
|
-
autoFocus: l === 0 && w
|
|
234
|
-
}, $));
|
|
235
|
-
}))));
|
|
236
|
-
});
|
|
237
|
-
var Te = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z" } }, { tag: "path", attrs: { d: "M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z" } }] }, name: "eye-invisible", theme: "outlined" }, Ve = function(s, r) {
|
|
238
|
-
return /* @__PURE__ */ o.createElement(ae, te({}, s, {
|
|
239
|
-
ref: r,
|
|
240
|
-
icon: Te
|
|
241
|
-
}));
|
|
242
|
-
}, ie = /* @__PURE__ */ o.forwardRef(Ve);
|
|
243
|
-
process.env.NODE_ENV !== "production" && (ie.displayName = "EyeInvisibleOutlined");
|
|
244
|
-
var Be = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z" } }] }, name: "eye", theme: "outlined" }, Fe = function(s, r) {
|
|
245
|
-
return /* @__PURE__ */ o.createElement(ae, te({}, s, {
|
|
246
|
-
ref: r,
|
|
247
|
-
icon: Be
|
|
248
|
-
}));
|
|
249
|
-
}, le = /* @__PURE__ */ o.forwardRef(Fe);
|
|
250
|
-
process.env.NODE_ENV !== "production" && (le.displayName = "EyeOutlined");
|
|
251
|
-
var Le = function(e, s) {
|
|
252
|
-
var r = {};
|
|
253
|
-
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && s.indexOf(n) < 0 && (r[n] = e[n]);
|
|
254
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var t = 0, n = Object.getOwnPropertySymbols(e); t < n.length; t++)
|
|
255
|
-
s.indexOf(n[t]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[t]) && (r[n[t]] = e[n[t]]);
|
|
256
|
-
return r;
|
|
257
|
-
};
|
|
258
|
-
const Ke = (e) => e ? /* @__PURE__ */ o.createElement(le, null) : /* @__PURE__ */ o.createElement(ie, null), Ue = {
|
|
259
|
-
click: "onClick",
|
|
260
|
-
hover: "onMouseOver"
|
|
261
|
-
}, ue = /* @__PURE__ */ o.forwardRef((e, s) => {
|
|
262
|
-
const {
|
|
263
|
-
disabled: r,
|
|
264
|
-
action: n = "click",
|
|
265
|
-
visibilityToggle: t = !0,
|
|
266
|
-
iconRender: c = Ke
|
|
267
|
-
} = e, v = o.useContext(ve), g = r ?? v, b = typeof t == "object" && t.visible !== void 0, [O, C] = de(() => b ? t.visible : !1), m = pe(null);
|
|
268
|
-
o.useEffect(() => {
|
|
269
|
-
b && C(t.visible);
|
|
270
|
-
}, [b, t]);
|
|
271
|
-
const w = xe(m), P = () => {
|
|
272
|
-
var h;
|
|
273
|
-
if (g)
|
|
274
|
-
return;
|
|
275
|
-
O && w();
|
|
276
|
-
const N = !O;
|
|
277
|
-
C(N), typeof t == "object" && ((h = t.onVisibleChange) === null || h === void 0 || h.call(t, N));
|
|
278
|
-
}, f = (h) => {
|
|
279
|
-
const N = Ue[n] || "", j = c(O), D = {
|
|
280
|
-
[N]: P,
|
|
281
|
-
className: `${h}-icon`,
|
|
282
|
-
key: "passwordIcon",
|
|
283
|
-
onMouseDown: (I) => {
|
|
284
|
-
I.preventDefault();
|
|
285
|
-
},
|
|
286
|
-
onMouseUp: (I) => {
|
|
287
|
-
I.preventDefault();
|
|
288
|
-
}
|
|
289
|
-
};
|
|
290
|
-
return /* @__PURE__ */ o.cloneElement(/* @__PURE__ */ o.isValidElement(j) ? j : /* @__PURE__ */ o.createElement("span", null, j), D);
|
|
291
|
-
}, {
|
|
292
|
-
className: y,
|
|
293
|
-
prefixCls: R,
|
|
294
|
-
inputPrefixCls: k,
|
|
295
|
-
size: _
|
|
296
|
-
} = e, z = Le(e, ["className", "prefixCls", "inputPrefixCls", "size"]), {
|
|
297
|
-
getPrefixCls: E
|
|
298
|
-
} = o.useContext(H), V = E("input", k), S = E("input-password", R), M = t && f(S), B = G(S, y, {
|
|
299
|
-
[`${S}-${_}`]: !!_
|
|
300
|
-
}), A = Object.assign(Object.assign({}, we(z, ["suffix", "iconRender", "visibilityToggle"])), {
|
|
301
|
-
type: O ? "text" : "password",
|
|
302
|
-
className: B,
|
|
303
|
-
prefixCls: V,
|
|
304
|
-
suffix: M
|
|
305
|
-
});
|
|
306
|
-
return _ && (A.size = _), /* @__PURE__ */ o.createElement(Q, Object.assign({
|
|
307
|
-
ref: se(s, m)
|
|
308
|
-
}, A));
|
|
309
|
-
});
|
|
310
|
-
process.env.NODE_ENV !== "production" && (ue.displayName = "Input.Password");
|
|
311
|
-
var Xe = function(e, s) {
|
|
312
|
-
var r = {};
|
|
313
|
-
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && s.indexOf(n) < 0 && (r[n] = e[n]);
|
|
314
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var t = 0, n = Object.getOwnPropertySymbols(e); t < n.length; t++)
|
|
315
|
-
s.indexOf(n[t]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[t]) && (r[n[t]] = e[n[t]]);
|
|
316
|
-
return r;
|
|
317
|
-
};
|
|
318
|
-
const ce = /* @__PURE__ */ o.forwardRef((e, s) => {
|
|
319
|
-
const {
|
|
320
|
-
prefixCls: r,
|
|
321
|
-
inputPrefixCls: n,
|
|
322
|
-
className: t,
|
|
323
|
-
size: c,
|
|
324
|
-
suffix: v,
|
|
325
|
-
enterButton: g = !1,
|
|
326
|
-
addonAfter: b,
|
|
327
|
-
loading: O,
|
|
328
|
-
disabled: C,
|
|
329
|
-
onSearch: m,
|
|
330
|
-
onChange: w,
|
|
331
|
-
onCompositionStart: P,
|
|
332
|
-
onCompositionEnd: f
|
|
333
|
-
} = e, y = Xe(e, ["prefixCls", "inputPrefixCls", "className", "size", "suffix", "enterButton", "addonAfter", "loading", "disabled", "onSearch", "onChange", "onCompositionStart", "onCompositionEnd"]), {
|
|
334
|
-
getPrefixCls: R,
|
|
335
|
-
direction: k
|
|
336
|
-
} = o.useContext(H), _ = o.useRef(!1), z = R("input-search", r), E = R("input", n), {
|
|
337
|
-
compactSize: V
|
|
338
|
-
} = Ne(z, k), S = re((i) => {
|
|
339
|
-
var d;
|
|
340
|
-
return (d = c ?? V) !== null && d !== void 0 ? d : i;
|
|
341
|
-
}), M = o.useRef(null), B = (i) => {
|
|
342
|
-
i != null && i.target && i.type === "click" && m && m(i.target.value, i, {
|
|
343
|
-
source: "clear"
|
|
344
|
-
}), w == null || w(i);
|
|
345
|
-
}, A = (i) => {
|
|
346
|
-
var d;
|
|
347
|
-
document.activeElement === ((d = M.current) === null || d === void 0 ? void 0 : d.input) && i.preventDefault();
|
|
348
|
-
}, h = (i) => {
|
|
349
|
-
var d, $;
|
|
350
|
-
m && m(($ = (d = M.current) === null || d === void 0 ? void 0 : d.input) === null || $ === void 0 ? void 0 : $.value, i, {
|
|
351
|
-
source: "input"
|
|
352
|
-
});
|
|
353
|
-
}, N = (i) => {
|
|
354
|
-
_.current || O || h(i);
|
|
355
|
-
}, j = typeof g == "boolean" ? /* @__PURE__ */ o.createElement(_e, null) : null, D = `${z}-button`;
|
|
356
|
-
let I;
|
|
357
|
-
const x = g || {}, F = x.type && x.type.__ANT_BUTTON === !0;
|
|
358
|
-
F || x.type === "button" ? I = ne(x, Object.assign({
|
|
359
|
-
onMouseDown: A,
|
|
360
|
-
onClick: (i) => {
|
|
361
|
-
var d, $;
|
|
362
|
-
($ = (d = x == null ? void 0 : x.props) === null || d === void 0 ? void 0 : d.onClick) === null || $ === void 0 || $.call(d, i), h(i);
|
|
363
|
-
},
|
|
364
|
-
key: "enterButton"
|
|
365
|
-
}, F ? {
|
|
366
|
-
className: D,
|
|
367
|
-
size: S
|
|
368
|
-
} : {})) : I = /* @__PURE__ */ o.createElement(ze, {
|
|
369
|
-
className: D,
|
|
370
|
-
type: g ? "primary" : void 0,
|
|
371
|
-
size: S,
|
|
372
|
-
disabled: C,
|
|
373
|
-
key: "enterButton",
|
|
374
|
-
onMouseDown: A,
|
|
375
|
-
onClick: h,
|
|
376
|
-
loading: O,
|
|
377
|
-
icon: j
|
|
378
|
-
}, g), b && (I = [I, ne(b, {
|
|
379
|
-
key: "addonAfter"
|
|
380
|
-
})]);
|
|
381
|
-
const L = G(z, {
|
|
382
|
-
[`${z}-rtl`]: k === "rtl",
|
|
383
|
-
[`${z}-${S}`]: !!S,
|
|
384
|
-
[`${z}-with-button`]: !!g
|
|
385
|
-
}, t), U = Object.assign(Object.assign({}, y), {
|
|
386
|
-
className: L,
|
|
387
|
-
prefixCls: E,
|
|
388
|
-
type: "search"
|
|
389
|
-
}), W = (i) => {
|
|
390
|
-
_.current = !0, P == null || P(i);
|
|
391
|
-
}, J = (i) => {
|
|
392
|
-
_.current = !1, f == null || f(i);
|
|
393
|
-
};
|
|
394
|
-
return /* @__PURE__ */ o.createElement(Q, Object.assign({
|
|
395
|
-
ref: se(M, s),
|
|
396
|
-
onPressEnter: N
|
|
397
|
-
}, U, {
|
|
398
|
-
size: S,
|
|
399
|
-
onCompositionStart: W,
|
|
400
|
-
onCompositionEnd: J,
|
|
401
|
-
addonAfter: I,
|
|
402
|
-
suffix: v,
|
|
403
|
-
onChange: B,
|
|
404
|
-
disabled: C
|
|
405
|
-
}));
|
|
406
|
-
});
|
|
407
|
-
process.env.NODE_ENV !== "production" && (ce.displayName = "Search");
|
|
408
|
-
const K = Q;
|
|
409
|
-
K.Group = je;
|
|
410
|
-
K.Search = ce;
|
|
411
|
-
K.TextArea = Ee;
|
|
412
|
-
K.Password = ue;
|
|
413
|
-
K.OTP = De;
|
|
414
|
-
export {
|
|
415
|
-
K as I
|
|
416
|
-
};
|