@gobolt/genesis 0.1.2 → 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 +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 +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-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,34 +1,34 @@
|
|
|
1
1
|
import * as l from "react";
|
|
2
|
-
import X, { forwardRef as
|
|
3
|
-
import { g as
|
|
4
|
-
import { u as le } from "./useMergedState-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import "./
|
|
10
|
-
import { o as
|
|
11
|
-
var
|
|
12
|
-
var
|
|
2
|
+
import X, { forwardRef as re, useRef as G, useImperativeHandle as te } from "react";
|
|
3
|
+
import { g as ae, a as oe, c as V, b as W, e as ne, _ as q } from "./presets-CSXMiWyc.js";
|
|
4
|
+
import { u as le } from "./useMergedState-D1-TbeEv.js";
|
|
5
|
+
import { w as F, m as ie, j as M, f as H, s as se, g as ce, C as K, q as de, n as A } from "./CSSMotionList-DB0khM6h.js";
|
|
6
|
+
import { D as ue, d as fe } from "./index-DCopujxC.js";
|
|
7
|
+
import { T as be, W as pe } from "./index-Br3D3cFM.js";
|
|
8
|
+
import { u as U } from "./useCSSVarCls-YfJY1twF.js";
|
|
9
|
+
import { F as me } from "./context-CQfFkrkv.js";
|
|
10
|
+
import { o as ve } from "./omit-B_u6A-HL.js";
|
|
11
|
+
var Ce = ["prefixCls", "className", "style", "checked", "disabled", "defaultChecked", "type", "title", "onChange"], he = /* @__PURE__ */ re(function(e, r) {
|
|
12
|
+
var t = e.prefixCls, a = t === void 0 ? "rc-checkbox" : t, c = e.className, C = e.style, $ = e.checked, p = e.disabled, _ = e.defaultChecked, S = _ === void 0 ? !1 : _, d = e.type, O = d === void 0 ? "checkbox" : d, R = e.title, i = e.onChange, N = ae(e, Ce), h = G(null), u = G(null), o = le(S, {
|
|
13
13
|
value: $
|
|
14
|
-
}),
|
|
15
|
-
|
|
14
|
+
}), k = oe(o, 2), P = k[0], w = k[1];
|
|
15
|
+
te(r, function() {
|
|
16
16
|
return {
|
|
17
17
|
focus: function(s) {
|
|
18
|
-
var
|
|
19
|
-
(
|
|
18
|
+
var b;
|
|
19
|
+
(b = h.current) === null || b === void 0 || b.focus(s);
|
|
20
20
|
},
|
|
21
21
|
blur: function() {
|
|
22
22
|
var s;
|
|
23
|
-
(s =
|
|
23
|
+
(s = h.current) === null || s === void 0 || s.blur();
|
|
24
24
|
},
|
|
25
|
-
input:
|
|
25
|
+
input: h.current,
|
|
26
26
|
nativeElement: u.current
|
|
27
27
|
};
|
|
28
28
|
});
|
|
29
|
-
var f = V(
|
|
30
|
-
|
|
31
|
-
target:
|
|
29
|
+
var f = V(a, c, W(W({}, "".concat(a, "-checked"), P), "".concat(a, "-disabled"), p)), m = function(s) {
|
|
30
|
+
p || ("checked" in e || w(s.target.checked), i == null || i({
|
|
31
|
+
target: q(q({}, e), {}, {
|
|
32
32
|
type: O,
|
|
33
33
|
checked: s.target.checked
|
|
34
34
|
}),
|
|
@@ -44,40 +44,40 @@ var he = ["prefixCls", "className", "style", "checked", "disabled", "defaultChec
|
|
|
44
44
|
return /* @__PURE__ */ l.createElement("span", {
|
|
45
45
|
className: f,
|
|
46
46
|
title: R,
|
|
47
|
-
style:
|
|
47
|
+
style: C,
|
|
48
48
|
ref: u
|
|
49
|
-
}, /* @__PURE__ */ l.createElement("input",
|
|
50
|
-
className: "".concat(
|
|
51
|
-
ref:
|
|
49
|
+
}, /* @__PURE__ */ l.createElement("input", ne({}, N, {
|
|
50
|
+
className: "".concat(a, "-input"),
|
|
51
|
+
ref: h,
|
|
52
52
|
onChange: m,
|
|
53
|
-
disabled:
|
|
53
|
+
disabled: p,
|
|
54
54
|
checked: !!P,
|
|
55
55
|
type: O
|
|
56
56
|
})), /* @__PURE__ */ l.createElement("span", {
|
|
57
|
-
className: "".concat(
|
|
57
|
+
className: "".concat(a, "-inner")
|
|
58
58
|
}));
|
|
59
59
|
});
|
|
60
|
-
function
|
|
61
|
-
const
|
|
62
|
-
|
|
60
|
+
function ge(e) {
|
|
61
|
+
const r = X.useRef(null), t = () => {
|
|
62
|
+
F.cancel(r.current), r.current = null;
|
|
63
63
|
};
|
|
64
64
|
return [() => {
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
t(), r.current = F(() => {
|
|
66
|
+
r.current = null;
|
|
67
67
|
});
|
|
68
|
-
}, (
|
|
69
|
-
|
|
68
|
+
}, (C) => {
|
|
69
|
+
r.current && (C.stopPropagation(), t()), e == null || e(C);
|
|
70
70
|
}];
|
|
71
71
|
}
|
|
72
72
|
const xe = (e) => {
|
|
73
73
|
const {
|
|
74
|
-
checkboxCls:
|
|
75
|
-
} = e,
|
|
74
|
+
checkboxCls: r
|
|
75
|
+
} = e, t = `${r}-wrapper`;
|
|
76
76
|
return [
|
|
77
77
|
// ===================== Basic =====================
|
|
78
78
|
{
|
|
79
79
|
// Group
|
|
80
|
-
[`${
|
|
80
|
+
[`${r}-group`]: Object.assign(Object.assign({}, M(e)), {
|
|
81
81
|
display: "inline-flex",
|
|
82
82
|
flexWrap: "wrap",
|
|
83
83
|
columnGap: e.marginXS,
|
|
@@ -87,7 +87,7 @@ const xe = (e) => {
|
|
|
87
87
|
}
|
|
88
88
|
}),
|
|
89
89
|
// Wrapper
|
|
90
|
-
[
|
|
90
|
+
[t]: Object.assign(Object.assign({}, M(e)), {
|
|
91
91
|
display: "inline-flex",
|
|
92
92
|
alignItems: "baseline",
|
|
93
93
|
cursor: "pointer",
|
|
@@ -99,10 +99,10 @@ const xe = (e) => {
|
|
|
99
99
|
content: "'\\a0'"
|
|
100
100
|
},
|
|
101
101
|
// Checkbox near checkbox
|
|
102
|
-
[`& + ${
|
|
102
|
+
[`& + ${t}`]: {
|
|
103
103
|
marginInlineStart: 0
|
|
104
104
|
},
|
|
105
|
-
[`&${
|
|
105
|
+
[`&${t}-in-form-item`]: {
|
|
106
106
|
'input[type="checkbox"]': {
|
|
107
107
|
width: 14,
|
|
108
108
|
// FIXME: magic
|
|
@@ -112,7 +112,7 @@ const xe = (e) => {
|
|
|
112
112
|
}
|
|
113
113
|
}),
|
|
114
114
|
// Wrapper > Checkbox
|
|
115
|
-
[
|
|
115
|
+
[r]: Object.assign(Object.assign({}, M(e)), {
|
|
116
116
|
position: "relative",
|
|
117
117
|
whiteSpace: "nowrap",
|
|
118
118
|
lineHeight: 1,
|
|
@@ -122,7 +122,7 @@ const xe = (e) => {
|
|
|
122
122
|
// Ref: https://github.com/ant-design/ant-design/issues/41564
|
|
123
123
|
alignSelf: "center",
|
|
124
124
|
// Wrapper > Checkbox > input
|
|
125
|
-
[`${
|
|
125
|
+
[`${r}-input`]: {
|
|
126
126
|
position: "absolute",
|
|
127
127
|
// Since baseline align will get additional space offset,
|
|
128
128
|
// we need to move input to top to make it align with text.
|
|
@@ -132,17 +132,17 @@ const xe = (e) => {
|
|
|
132
132
|
cursor: "pointer",
|
|
133
133
|
opacity: 0,
|
|
134
134
|
margin: 0,
|
|
135
|
-
[`&:focus-visible + ${
|
|
135
|
+
[`&:focus-visible + ${r}-inner`]: Object.assign({}, se(e))
|
|
136
136
|
},
|
|
137
137
|
// Wrapper > Checkbox > inner
|
|
138
|
-
[`${
|
|
138
|
+
[`${r}-inner`]: {
|
|
139
139
|
boxSizing: "border-box",
|
|
140
140
|
display: "block",
|
|
141
141
|
width: e.checkboxSize,
|
|
142
142
|
height: e.checkboxSize,
|
|
143
143
|
direction: "ltr",
|
|
144
144
|
backgroundColor: e.colorBgContainer,
|
|
145
|
-
border: `${
|
|
145
|
+
border: `${H(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,
|
|
146
146
|
borderRadius: e.borderRadiusSM,
|
|
147
147
|
borderCollapse: "separate",
|
|
148
148
|
transition: `all ${e.motionDurationSlow}`,
|
|
@@ -154,7 +154,7 @@ const xe = (e) => {
|
|
|
154
154
|
display: "table",
|
|
155
155
|
width: e.calc(e.checkboxSize).div(14).mul(5).equal(),
|
|
156
156
|
height: e.calc(e.checkboxSize).div(14).mul(8).equal(),
|
|
157
|
-
border: `${
|
|
157
|
+
border: `${H(e.lineWidthBold)} solid ${e.colorWhite}`,
|
|
158
158
|
borderTop: 0,
|
|
159
159
|
borderInlineStart: 0,
|
|
160
160
|
transform: "rotate(45deg) scale(0) translate(-50%,-50%)",
|
|
@@ -174,19 +174,19 @@ const xe = (e) => {
|
|
|
174
174
|
{
|
|
175
175
|
// Wrapper & Wrapper > Checkbox
|
|
176
176
|
[`
|
|
177
|
-
${
|
|
178
|
-
${
|
|
177
|
+
${t}:not(${t}-disabled),
|
|
178
|
+
${r}:not(${r}-disabled)
|
|
179
179
|
`]: {
|
|
180
|
-
[`&:hover ${
|
|
180
|
+
[`&:hover ${r}-inner`]: {
|
|
181
181
|
borderColor: e.colorPrimary
|
|
182
182
|
}
|
|
183
183
|
},
|
|
184
|
-
[`${
|
|
185
|
-
[`&:hover ${
|
|
184
|
+
[`${t}:not(${t}-disabled)`]: {
|
|
185
|
+
[`&:hover ${r}-checked:not(${r}-disabled) ${r}-inner`]: {
|
|
186
186
|
backgroundColor: e.colorPrimaryHover,
|
|
187
187
|
borderColor: "transparent"
|
|
188
188
|
},
|
|
189
|
-
[`&:hover ${
|
|
189
|
+
[`&:hover ${r}-checked:not(${r}-disabled):after`]: {
|
|
190
190
|
borderColor: e.colorPrimaryHover
|
|
191
191
|
}
|
|
192
192
|
}
|
|
@@ -194,8 +194,8 @@ const xe = (e) => {
|
|
|
194
194
|
// ==================== Checked ====================
|
|
195
195
|
{
|
|
196
196
|
// Wrapper > Checkbox
|
|
197
|
-
[`${
|
|
198
|
-
[`${
|
|
197
|
+
[`${r}-checked`]: {
|
|
198
|
+
[`${r}-inner`]: {
|
|
199
199
|
backgroundColor: e.colorPrimary,
|
|
200
200
|
borderColor: e.colorPrimary,
|
|
201
201
|
"&:after": {
|
|
@@ -206,10 +206,10 @@ const xe = (e) => {
|
|
|
206
206
|
}
|
|
207
207
|
},
|
|
208
208
|
[`
|
|
209
|
-
${
|
|
210
|
-
${
|
|
209
|
+
${t}-checked:not(${t}-disabled),
|
|
210
|
+
${r}-checked:not(${r}-disabled)
|
|
211
211
|
`]: {
|
|
212
|
-
[`&:hover ${
|
|
212
|
+
[`&:hover ${r}-inner`]: {
|
|
213
213
|
backgroundColor: e.colorPrimaryHover,
|
|
214
214
|
borderColor: "transparent"
|
|
215
215
|
}
|
|
@@ -217,10 +217,10 @@ const xe = (e) => {
|
|
|
217
217
|
},
|
|
218
218
|
// ================= Indeterminate =================
|
|
219
219
|
{
|
|
220
|
-
[
|
|
220
|
+
[r]: {
|
|
221
221
|
"&-indeterminate": {
|
|
222
222
|
// Wrapper > Checkbox > inner
|
|
223
|
-
[`${
|
|
223
|
+
[`${r}-inner`]: {
|
|
224
224
|
backgroundColor: `${e.colorBgContainer} !important`,
|
|
225
225
|
borderColor: `${e.colorBorder} !important`,
|
|
226
226
|
"&:after": {
|
|
@@ -236,7 +236,7 @@ const xe = (e) => {
|
|
|
236
236
|
}
|
|
237
237
|
},
|
|
238
238
|
// https://github.com/ant-design/ant-design/issues/50074
|
|
239
|
-
[`&:hover ${
|
|
239
|
+
[`&:hover ${r}-inner`]: {
|
|
240
240
|
backgroundColor: `${e.colorBgContainer} !important`,
|
|
241
241
|
borderColor: `${e.colorPrimary} !important`
|
|
242
242
|
}
|
|
@@ -246,20 +246,20 @@ const xe = (e) => {
|
|
|
246
246
|
// ==================== Disable ====================
|
|
247
247
|
{
|
|
248
248
|
// Wrapper
|
|
249
|
-
[`${
|
|
249
|
+
[`${t}-disabled`]: {
|
|
250
250
|
cursor: "not-allowed"
|
|
251
251
|
},
|
|
252
252
|
// Wrapper > Checkbox
|
|
253
|
-
[`${
|
|
253
|
+
[`${r}-disabled`]: {
|
|
254
254
|
// Wrapper > Checkbox > input
|
|
255
|
-
[`&, ${
|
|
255
|
+
[`&, ${r}-input`]: {
|
|
256
256
|
cursor: "not-allowed",
|
|
257
257
|
// Disabled for native input to enable Tooltip event handler
|
|
258
258
|
// ref: https://github.com/ant-design/ant-design/issues/39822#issuecomment-1365075901
|
|
259
259
|
pointerEvents: "none"
|
|
260
260
|
},
|
|
261
261
|
// Wrapper > Checkbox > inner
|
|
262
|
-
[`${
|
|
262
|
+
[`${r}-inner`]: {
|
|
263
263
|
background: e.colorBgContainerDisabled,
|
|
264
264
|
borderColor: e.colorBorder,
|
|
265
265
|
"&:after": {
|
|
@@ -272,82 +272,82 @@ const xe = (e) => {
|
|
|
272
272
|
"& + span": {
|
|
273
273
|
color: e.colorTextDisabled
|
|
274
274
|
},
|
|
275
|
-
[`&${
|
|
275
|
+
[`&${r}-indeterminate ${r}-inner::after`]: {
|
|
276
276
|
background: e.colorTextDisabled
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
279
|
}
|
|
280
280
|
];
|
|
281
281
|
};
|
|
282
|
-
function ye(e,
|
|
283
|
-
const
|
|
282
|
+
function ye(e, r) {
|
|
283
|
+
const t = ie(r, {
|
|
284
284
|
checkboxCls: `.${e}`,
|
|
285
|
-
checkboxSize:
|
|
285
|
+
checkboxSize: r.controlInteractiveSize
|
|
286
286
|
});
|
|
287
|
-
return [xe(
|
|
287
|
+
return [xe(t)];
|
|
288
288
|
}
|
|
289
|
-
const J =
|
|
289
|
+
const J = ce("Checkbox", (e, r) => {
|
|
290
290
|
let {
|
|
291
|
-
prefixCls:
|
|
292
|
-
} =
|
|
293
|
-
return [ye(
|
|
291
|
+
prefixCls: t
|
|
292
|
+
} = r;
|
|
293
|
+
return [ye(t, e)];
|
|
294
294
|
}), Q = /* @__PURE__ */ X.createContext(null);
|
|
295
|
-
var $e = function(e,
|
|
296
|
-
var
|
|
297
|
-
for (var
|
|
298
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var c = 0,
|
|
299
|
-
|
|
300
|
-
return
|
|
295
|
+
var $e = function(e, r) {
|
|
296
|
+
var t = {};
|
|
297
|
+
for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && r.indexOf(a) < 0 && (t[a] = e[a]);
|
|
298
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var c = 0, a = Object.getOwnPropertySymbols(e); c < a.length; c++)
|
|
299
|
+
r.indexOf(a[c]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[c]) && (t[a[c]] = e[a[c]]);
|
|
300
|
+
return t;
|
|
301
301
|
};
|
|
302
|
-
const Se = (e,
|
|
303
|
-
var
|
|
302
|
+
const Se = (e, r) => {
|
|
303
|
+
var t;
|
|
304
304
|
const {
|
|
305
|
-
prefixCls:
|
|
305
|
+
prefixCls: a,
|
|
306
306
|
className: c,
|
|
307
|
-
rootClassName:
|
|
307
|
+
rootClassName: C,
|
|
308
308
|
children: $,
|
|
309
|
-
indeterminate:
|
|
309
|
+
indeterminate: p = !1,
|
|
310
310
|
style: _,
|
|
311
311
|
onMouseEnter: S,
|
|
312
312
|
onMouseLeave: d,
|
|
313
313
|
skipGroup: O = !1,
|
|
314
314
|
disabled: R
|
|
315
315
|
} = e, i = $e(e, ["prefixCls", "className", "rootClassName", "children", "indeterminate", "style", "onMouseEnter", "onMouseLeave", "skipGroup", "disabled"]), {
|
|
316
|
-
getPrefixCls:
|
|
317
|
-
direction:
|
|
316
|
+
getPrefixCls: N,
|
|
317
|
+
direction: h,
|
|
318
318
|
checkbox: u
|
|
319
|
-
} = l.useContext(K),
|
|
320
|
-
isFormItemInput:
|
|
321
|
-
} = l.useContext(me), P = l.useContext(
|
|
319
|
+
} = l.useContext(K), o = l.useContext(Q), {
|
|
320
|
+
isFormItemInput: k
|
|
321
|
+
} = l.useContext(me), P = l.useContext(ue), w = (t = (o == null ? void 0 : o.disabled) || R) !== null && t !== void 0 ? t : P, f = l.useRef(i.value), m = l.useRef(null), E = de(r, m);
|
|
322
322
|
if (process.env.NODE_ENV !== "production") {
|
|
323
|
-
const
|
|
324
|
-
process.env.NODE_ENV !== "production" &&
|
|
323
|
+
const v = fe("Checkbox");
|
|
324
|
+
process.env.NODE_ENV !== "production" && v("checked" in i || !!o || !("value" in i), "usage", "`value` is not a valid prop, do you mean `checked`?");
|
|
325
325
|
}
|
|
326
326
|
l.useEffect(() => {
|
|
327
|
-
|
|
327
|
+
o == null || o.registerValue(i.value);
|
|
328
328
|
}, []), l.useEffect(() => {
|
|
329
329
|
if (!O)
|
|
330
|
-
return i.value !== f.current && (
|
|
330
|
+
return i.value !== f.current && (o == null || o.cancelValue(f.current), o == null || o.registerValue(i.value), f.current = i.value), () => o == null ? void 0 : o.cancelValue(i.value);
|
|
331
331
|
}, [i.value]), l.useEffect(() => {
|
|
332
|
-
var
|
|
333
|
-
!((
|
|
334
|
-
}, [
|
|
335
|
-
const s =
|
|
336
|
-
|
|
337
|
-
i.onChange && i.onChange.apply(i, arguments),
|
|
332
|
+
var v;
|
|
333
|
+
!((v = m.current) === null || v === void 0) && v.input && (m.current.input.indeterminate = p);
|
|
334
|
+
}, [p]);
|
|
335
|
+
const s = N("checkbox", a), b = U(s), [j, I, D] = J(s, b), g = Object.assign({}, i);
|
|
336
|
+
o && !O && (g.onChange = function() {
|
|
337
|
+
i.onChange && i.onChange.apply(i, arguments), o.toggleOption && o.toggleOption({
|
|
338
338
|
label: $,
|
|
339
339
|
value: i.value
|
|
340
340
|
});
|
|
341
|
-
},
|
|
341
|
+
}, g.name = o.name, g.checked = o.value.includes(i.value));
|
|
342
342
|
const z = V(`${s}-wrapper`, {
|
|
343
|
-
[`${s}-rtl`]:
|
|
344
|
-
[`${s}-wrapper-checked`]:
|
|
343
|
+
[`${s}-rtl`]: h === "rtl",
|
|
344
|
+
[`${s}-wrapper-checked`]: g.checked,
|
|
345
345
|
[`${s}-wrapper-disabled`]: w,
|
|
346
|
-
[`${s}-wrapper-in-form-item`]:
|
|
347
|
-
}, u == null ? void 0 : u.className, c,
|
|
348
|
-
[`${s}-indeterminate`]:
|
|
349
|
-
},
|
|
350
|
-
return j(/* @__PURE__ */ l.createElement(
|
|
346
|
+
[`${s}-wrapper-in-form-item`]: k
|
|
347
|
+
}, u == null ? void 0 : u.className, c, C, D, b, I), n = V({
|
|
348
|
+
[`${s}-indeterminate`]: p
|
|
349
|
+
}, be, I), [x, y] = ge(g.onClick);
|
|
350
|
+
return j(/* @__PURE__ */ l.createElement(pe, {
|
|
351
351
|
component: "Checkbox",
|
|
352
352
|
disabled: w
|
|
353
353
|
}, /* @__PURE__ */ l.createElement("label", {
|
|
@@ -356,82 +356,84 @@ const Se = (e, n) => {
|
|
|
356
356
|
onMouseEnter: S,
|
|
357
357
|
onMouseLeave: d,
|
|
358
358
|
onClick: x
|
|
359
|
-
}, /* @__PURE__ */ l.createElement(
|
|
359
|
+
}, /* @__PURE__ */ l.createElement(he, Object.assign({}, g, {
|
|
360
360
|
onClick: y,
|
|
361
361
|
prefixCls: s,
|
|
362
|
-
className:
|
|
362
|
+
className: n,
|
|
363
363
|
disabled: w,
|
|
364
364
|
ref: E
|
|
365
|
-
})), $ !== void 0 && /* @__PURE__ */ l.createElement("span",
|
|
365
|
+
})), $ !== void 0 && /* @__PURE__ */ l.createElement("span", {
|
|
366
|
+
className: `${s}-label`
|
|
367
|
+
}, $))));
|
|
366
368
|
}, L = /* @__PURE__ */ l.forwardRef(Se);
|
|
367
369
|
process.env.NODE_ENV !== "production" && (L.displayName = "Checkbox");
|
|
368
|
-
var Oe = function(e,
|
|
369
|
-
var
|
|
370
|
-
for (var
|
|
371
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var c = 0,
|
|
372
|
-
|
|
373
|
-
return
|
|
370
|
+
var Oe = function(e, r) {
|
|
371
|
+
var t = {};
|
|
372
|
+
for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && r.indexOf(a) < 0 && (t[a] = e[a]);
|
|
373
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var c = 0, a = Object.getOwnPropertySymbols(e); c < a.length; c++)
|
|
374
|
+
r.indexOf(a[c]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[c]) && (t[a[c]] = e[a[c]]);
|
|
375
|
+
return t;
|
|
374
376
|
};
|
|
375
|
-
const we = /* @__PURE__ */ l.forwardRef((e,
|
|
377
|
+
const we = /* @__PURE__ */ l.forwardRef((e, r) => {
|
|
376
378
|
const {
|
|
377
|
-
defaultValue:
|
|
378
|
-
children:
|
|
379
|
+
defaultValue: t,
|
|
380
|
+
children: a,
|
|
379
381
|
options: c = [],
|
|
380
|
-
prefixCls:
|
|
382
|
+
prefixCls: C,
|
|
381
383
|
className: $,
|
|
382
|
-
rootClassName:
|
|
384
|
+
rootClassName: p,
|
|
383
385
|
style: _,
|
|
384
386
|
onChange: S
|
|
385
387
|
} = e, d = Oe(e, ["defaultValue", "children", "options", "prefixCls", "className", "rootClassName", "style", "onChange"]), {
|
|
386
388
|
getPrefixCls: O,
|
|
387
389
|
direction: R
|
|
388
|
-
} = l.useContext(K), [i,
|
|
390
|
+
} = l.useContext(K), [i, N] = l.useState(d.value || t || []), [h, u] = l.useState([]);
|
|
389
391
|
l.useEffect(() => {
|
|
390
|
-
"value" in d &&
|
|
392
|
+
"value" in d && N(d.value || []);
|
|
391
393
|
}, [d.value]);
|
|
392
|
-
const
|
|
393
|
-
label:
|
|
394
|
-
value:
|
|
395
|
-
} :
|
|
396
|
-
u((x) => x.filter((y) => y !==
|
|
397
|
-
}, P = (
|
|
398
|
-
u((x) => [].concat(A(x), [
|
|
399
|
-
}, w = (
|
|
400
|
-
const x = i.indexOf(
|
|
401
|
-
x === -1 ? y.push(
|
|
402
|
-
const Z =
|
|
394
|
+
const o = l.useMemo(() => c.map((n) => typeof n == "string" || typeof n == "number" ? {
|
|
395
|
+
label: n,
|
|
396
|
+
value: n
|
|
397
|
+
} : n), [c]), k = (n) => {
|
|
398
|
+
u((x) => x.filter((y) => y !== n));
|
|
399
|
+
}, P = (n) => {
|
|
400
|
+
u((x) => [].concat(A(x), [n]));
|
|
401
|
+
}, w = (n) => {
|
|
402
|
+
const x = i.indexOf(n.value), y = A(i);
|
|
403
|
+
x === -1 ? y.push(n.value) : y.splice(x, 1), "value" in d || N(y), S == null || S(y.filter((v) => h.includes(v)).sort((v, Y) => {
|
|
404
|
+
const Z = o.findIndex((B) => B.value === v), ee = o.findIndex((B) => B.value === Y);
|
|
403
405
|
return Z - ee;
|
|
404
406
|
}));
|
|
405
|
-
}, f = O("checkbox",
|
|
407
|
+
}, f = O("checkbox", C), m = `${f}-group`, E = U(f), [s, b, j] = J(f, E), I = ve(d, ["value", "disabled"]), D = c.length ? o.map((n) => /* @__PURE__ */ l.createElement(L, {
|
|
406
408
|
prefixCls: f,
|
|
407
|
-
key:
|
|
408
|
-
disabled: "disabled" in
|
|
409
|
-
value:
|
|
410
|
-
checked: i.includes(
|
|
411
|
-
onChange:
|
|
409
|
+
key: n.value.toString(),
|
|
410
|
+
disabled: "disabled" in n ? n.disabled : d.disabled,
|
|
411
|
+
value: n.value,
|
|
412
|
+
checked: i.includes(n.value),
|
|
413
|
+
onChange: n.onChange,
|
|
412
414
|
className: `${m}-item`,
|
|
413
|
-
style:
|
|
414
|
-
title:
|
|
415
|
-
id:
|
|
416
|
-
required:
|
|
417
|
-
},
|
|
415
|
+
style: n.style,
|
|
416
|
+
title: n.title,
|
|
417
|
+
id: n.id,
|
|
418
|
+
required: n.required
|
|
419
|
+
}, n.label)) : a, g = {
|
|
418
420
|
toggleOption: w,
|
|
419
421
|
value: i,
|
|
420
422
|
disabled: d.disabled,
|
|
421
423
|
name: d.name,
|
|
422
424
|
// https://github.com/ant-design/ant-design/issues/16376
|
|
423
425
|
registerValue: P,
|
|
424
|
-
cancelValue:
|
|
426
|
+
cancelValue: k
|
|
425
427
|
}, z = V(m, {
|
|
426
428
|
[`${m}-rtl`]: R === "rtl"
|
|
427
|
-
}, $,
|
|
429
|
+
}, $, p, j, E, b);
|
|
428
430
|
return s(/* @__PURE__ */ l.createElement("div", Object.assign({
|
|
429
431
|
className: z,
|
|
430
432
|
style: _
|
|
431
433
|
}, I, {
|
|
432
|
-
ref:
|
|
434
|
+
ref: r
|
|
433
435
|
}), /* @__PURE__ */ l.createElement(Q.Provider, {
|
|
434
|
-
value:
|
|
436
|
+
value: g
|
|
435
437
|
}, D)));
|
|
436
438
|
}), T = L;
|
|
437
439
|
T.Group = we;
|
|
@@ -439,7 +441,7 @@ T.__ANT_CHECKBOX = !0;
|
|
|
439
441
|
process.env.NODE_ENV !== "production" && (T.displayName = "Checkbox");
|
|
440
442
|
export {
|
|
441
443
|
T as C,
|
|
442
|
-
|
|
444
|
+
he as a,
|
|
443
445
|
ye as g,
|
|
444
|
-
|
|
446
|
+
ge as u
|
|
445
447
|
};
|