@gobolt/genesis 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -8
- package/dist/{AntdIcon-nCNB0J1E.js → AntdIcon-DP6hPDqu.js} +40 -39
- package/dist/CSSMotionList-DB0khM6h.js +22193 -0
- package/dist/{CheckCircleFilled-BKgizvyl.js → CheckCircleFilled-B-wrMduA.js} +2 -2
- package/dist/{CheckOutlined-cEBrx_Ag.js → CheckOutlined-DTEHi_xG.js} +2 -2
- package/dist/{ClockCircleOutlined-BaXQuLIn.js → ClockCircleOutlined-DGGcYjVd.js} +2 -2
- package/dist/{CloseCircleFilled-B9e7yFwo.js → CloseCircleFilled-WEQ0SaSW.js} +2 -2
- package/dist/{CloseOutlined-ogxnm7Oy.js → CloseOutlined-DzgBOns1.js} +2 -2
- package/dist/{Compact-Du9689ax.js → Compact-DFcWZrNo.js} +49 -49
- package/dist/Context-2_suFYDs.js +5 -0
- package/dist/{ContextIsolator-BmfhJgG0.js → ContextIsolator-CUJnq-4F.js} +2 -2
- package/dist/{DownOutlined-Dcq69ZKM.js → DownOutlined-Bv7ua5i8.js} +23 -22
- package/dist/EllipsisOutlined-BodkguEc.js +1118 -0
- package/dist/{ExclamationCircleFilled-BHELVsTg.js → ExclamationCircleFilled-x8Sr29BN.js} +2 -2
- package/dist/Input--qsU-6vp.js +424 -0
- package/dist/KeyCode-B3vHb2gY.js +155 -0
- package/dist/{Keyframes-C9_aCDvn.js → Keyframes-CyO2Aeq-.js} +7 -7
- package/dist/{LoadingOutlined-C1qu6ymP.js → LoadingOutlined-DOi5EGOl.js} +2 -2
- package/dist/{MinusCircleOutlined-Shz0RRQV.js → MinusCircleOutlined-BcKxYRyN.js} +2 -2
- package/dist/{Overflow-DWf4XIal.js → Overflow-CVbsx7Gn.js} +95 -95
- package/dist/{SearchOutlined-DNj-7b_h.js → SearchOutlined-DJ3uHFwq.js} +2 -2
- package/dist/{Skeleton-BVN4pcVe.js → Skeleton-CudViN0a.js} +166 -163
- package/dist/TextArea-CHo3cxKw.js +404 -0
- package/dist/{Typography-CoZ5qD-t.js → Typography-B2J8CPnt.js} +263 -247
- package/dist/_baseIsEqual-VdxFOa4v.js +1084 -0
- package/dist/{_commonjsHelpers-BkfeUUK-.js → _commonjsHelpers-B4e78b8K.js} +1 -1
- package/dist/{asyncToGenerator-CKP9bEZn.js → asyncToGenerator-CVBdSr4C.js} +27 -27
- package/dist/button-CYVlK7G0.js +1430 -0
- package/dist/components/Avatar/Avatar.js +8 -7
- package/dist/components/Avatar/__stories__/Avatar.stories.d.ts +0 -1
- package/dist/components/Avatar/__tests__/Avatar.test.js +1 -1
- package/dist/components/Avatar/styles.d.ts +1 -2
- package/dist/components/Avatar/styles.js +161 -159
- package/dist/components/Badge/Badge.js +8 -7
- package/dist/components/Badge/__stories__/Badge.stories.d.ts +0 -1
- package/dist/components/Badge/__tests__/Badge.test.js +1 -1
- package/dist/components/Badge/styles.d.ts +0 -1
- package/dist/components/Badge/styles.js +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +0 -1
- package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.types.d.ts +0 -1
- package/dist/components/Breadcrumb/__stories__/Breadcrumb.stories.d.ts +0 -1
- package/dist/components/Breadcrumb/__tests__/Breadcrumb.test.js +3 -3
- package/dist/components/Breadcrumb/styles.d.ts +0 -1
- package/dist/components/Breadcrumb/styles.js +58 -58
- package/dist/components/Button/Button.d.ts +0 -1
- package/dist/components/Button/__stories__/Button.stories.d.ts +0 -1
- package/dist/components/Button/__tests__/Button.test.js +5 -4
- package/dist/components/Button/styles.d.ts +0 -1
- package/dist/components/Button/styles.js +2 -2
- package/dist/components/Card/__stories__/Card.stories.d.ts +0 -1
- package/dist/components/Card/__tests__/Card.test.js +1 -1
- package/dist/components/Card/styles.d.ts +0 -1
- package/dist/components/Card/styles.js +2 -2
- package/dist/components/Checkbox/Checkbox.d.ts +0 -1
- package/dist/components/Checkbox/Checkbox.js +11 -11
- package/dist/components/Checkbox/__stories__/Checkbox.stories.d.ts +0 -1
- package/dist/components/Checkbox/__tests__/Checkbox.test.js +16 -15
- package/dist/components/Checkbox/styles.d.ts +3 -4
- package/dist/components/Checkbox/styles.js +2 -2
- package/dist/components/Dashboard/__mocks__/dashboard-data.d.ts +0 -1
- package/dist/components/Dashboard/__stories__/Dashboard.stories.d.ts +0 -1
- package/dist/components/Dashboard/__stories__/DashboardLayoutContent.js +222 -223
- package/dist/components/Dashboard/__stories__/DashboardLayoutHeader.js +13 -12
- package/dist/components/Dashboard/__stories__/DashboardLayoutStory.d.ts +0 -1
- package/dist/components/Dashboard/__stories__/DashboardLayoutStory.js +10 -9
- package/dist/components/Dashboard/__stories__/charts/LineChart.js +72 -74
- package/dist/components/Dashboard/__tests__/Dashboard.test.js +1 -1
- package/dist/components/Dashboard/styles.d.ts +0 -1
- package/dist/components/Dashboard/styles.js +1 -1
- package/dist/components/DatePicker/DatePicker.d.ts +0 -1
- package/dist/components/DatePicker/DatePicker.js +1 -1
- package/dist/components/DatePicker/__stories__/DatePicker.stories.d.ts +0 -1
- package/dist/components/DatePicker/__tests__/DatePicker.test.js +2 -2
- package/dist/components/DateRangePicker/DateRangePicker.d.ts +0 -1
- package/dist/components/DateRangePicker/DateRangePicker.js +1 -1
- package/dist/components/DateRangePicker/__stories__/DateRangePicker.stories.d.ts +0 -1
- package/dist/components/DateRangePicker/__tests__/DateRangePicker.test.js +2 -2
- package/dist/components/ErrorBoundary/ErrorBoundary.d.ts +2 -2
- package/dist/components/ErrorBoundary/ErrorBoundary.js +8 -7
- package/dist/components/ErrorBoundary/__stories__/ErrorBoundary.stories.d.ts +0 -1
- package/dist/components/ErrorBoundary/__tests__/ErrorBoundary.test.js +25 -20
- package/dist/components/ErrorBoundary/styles.d.ts +0 -1
- package/dist/components/ErrorBoundary/styles.js +1 -1
- package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.js +16 -15
- package/dist/components/ErrorBoundaryFallback/__stories__/ErrorBoundaryFallback.stories.d.ts +0 -1
- package/dist/components/ErrorBoundaryFallback/styles.js +13 -13
- package/dist/components/Form/Form.d.ts +0 -1
- package/dist/components/Form/Form.js +2 -2
- package/dist/components/Form/__stories__/Form.stories.d.ts +0 -1
- package/dist/components/Form/__stories__/FormStory.js +11 -10
- package/dist/components/Form/__tests__/form.test.js +7 -6
- package/dist/components/Form/index.js +1 -1
- package/dist/components/Form/styles.d.ts +0 -1
- package/dist/components/Form/styles.js +10 -2
- package/dist/components/FormBrandon/Form.d.ts +25 -0
- package/dist/components/FormBrandon/Form.js +18 -0
- package/dist/components/FormBrandon/__stories__/Form.stories.d.ts +6 -0
- package/dist/components/FormBrandon/__stories__/FormStory.d.ts +1 -0
- package/dist/components/FormBrandon/__stories__/FormStory.js +172 -0
- package/dist/components/FormBrandon/__tests__/form.test.js +19 -0
- package/dist/components/FormBrandon/index.d.ts +2 -0
- package/dist/components/FormBrandon/index.js +4 -0
- package/dist/components/FormBrandon/styles.d.ts +2 -0
- package/dist/components/FormBrandon/styles.js +13 -0
- package/dist/components/Glyph/Glyph.js +2 -2
- package/dist/components/Glyph/__stories__/Glyph.stories.d.ts +0 -1
- package/dist/components/Glyph/styles.d.ts +0 -1
- package/dist/components/Glyph/styles.js +1 -1
- package/dist/components/Input/Input.d.ts +0 -1
- package/dist/components/Input/Input.js +9 -10
- package/dist/components/Input/__stories__/Input.stories.d.ts +0 -1
- package/dist/components/Input/__tests__/Input.test.js +21 -20
- package/dist/components/Input/styles.d.ts +5 -6
- package/dist/components/Input/styles.js +4 -119
- package/dist/components/Layout/Content/Content.d.ts +0 -1
- package/dist/components/Layout/Content/ResponsiveContent.js +14 -13
- package/dist/components/Layout/Content/styles.d.ts +0 -1
- package/dist/components/Layout/Content/styles.js +1 -1
- package/dist/components/Layout/MainLayout/MainLayout.d.ts +0 -1
- package/dist/components/Layout/MainLayout/MainLayout.js +1 -1
- package/dist/components/Layout/MainLayout/__stories__/MainLayout.stories.d.ts +0 -1
- package/dist/components/Layout/MainLayout/styles.js +1 -1
- package/dist/components/Layout/__stories__/Layout.stories.d.ts +0 -1
- package/dist/components/Layout/__tests__/Layout.test.js +1 -1
- package/dist/components/Message/Message.d.ts +0 -1
- package/dist/components/Message/Message.js +13 -12
- package/dist/components/Message/__stories__/Message.stories.d.ts +0 -1
- package/dist/components/Message/__tests__/Message.test.js +6 -5
- package/dist/components/Message/styles.js +1 -1
- package/dist/components/Notification/Notification.js +122 -55
- package/dist/components/Notification/NotificationBadge/NotificationBadge.js +2 -2
- package/dist/components/Notification/NotificationBadge/__stories__/NotificationBadge.stories.d.ts +0 -1
- package/dist/components/Notification/NotificationBadge/__tests__/NotificationBadge.test.js +4 -4
- package/dist/components/Notification/NotificationBadge/styles.js +1 -1
- package/dist/components/Notification/__stories__/Notification.stories.d.ts +0 -1
- package/dist/components/Notification/__tests__/Notification.test.js +3 -3
- package/dist/components/Notification/styles.js +1 -1
- package/dist/components/Popover/Popover.d.ts +1 -1
- package/dist/components/Popover/Popover.js +14 -11
- package/dist/components/Popover/__stories__/Popover.stories.d.ts +0 -1
- package/dist/components/Popover/__tests__/Popover.test.js +19 -26
- package/dist/components/Popover/styles.d.ts +0 -1
- package/dist/components/Popover/styles.js +2 -2
- package/dist/components/Progress/Progress.js +29 -27
- package/dist/components/Progress/Progress.util.d.ts +0 -1
- package/dist/components/Progress/Progress.util.js +8 -7
- package/dist/components/Progress/ProgressText.d.ts +0 -1
- package/dist/components/Progress/ProgressText.js +8 -7
- package/dist/components/Progress/__stories__/Progress.stories.d.ts +0 -1
- package/dist/components/Progress/__tests__/Progress.test.js +4 -4
- package/dist/components/Progress/styles.d.ts +0 -1
- package/dist/components/Progress/styles.js +217 -214
- package/dist/components/Radio/Radio.d.ts +0 -1
- package/dist/components/Radio/Radio.js +9 -8
- package/dist/components/Radio/RadioGroup.js +1 -1
- package/dist/components/Radio/__stories__/RadioGroup.stories.d.ts +0 -1
- package/dist/components/Radio/__tests__/RadioGroup.test.js +8 -7
- package/dist/components/Row/Row.d.ts +0 -1
- package/dist/components/Row/Row.js +29 -26
- package/dist/components/Row/RowActions/RowActions.js +8 -7
- package/dist/components/Row/RowActions/styles.js +1 -1
- package/dist/components/Row/RowLabelValue/RowLabelValue.d.ts +0 -1
- package/dist/components/Row/RowLabelValue/RowLabelValue.js +7 -6
- package/dist/components/Row/RowLabelValue/styles.js +2 -2
- package/dist/components/Row/__stories__/Row.stories.d.ts +0 -1
- package/dist/components/Row/__tests__/Row.test.js +3 -3
- package/dist/components/Row/styles.d.ts +0 -1
- package/dist/components/Row/styles.js +1 -1
- package/dist/components/SegmentedControls/__stories__/SegmentedControls.stories.d.ts +0 -1
- package/dist/components/SegmentedControls/__tests__/SegmentedControls.test.js +1 -1
- package/dist/components/SegmentedControls/styles.d.ts +1 -2
- package/dist/components/SegmentedControls/styles.js +214 -203
- package/dist/components/Select/Select.d.ts +0 -1
- package/dist/components/Select/Select.js +10 -11
- package/dist/components/Select/__stories__/Select.stories.d.ts +0 -1
- package/dist/components/Select/__tests__/Select.test.js +49 -10754
- package/dist/components/Select/styles.d.ts +0 -1
- package/dist/components/Select/styles.js +2 -2
- package/dist/components/Shapes/__stories__/Shapes.stories.d.ts +0 -1
- package/dist/components/Shapes/__tests__/Shapes.test.js +1 -1
- package/dist/components/Switch/__stories__/Switch.stories.d.ts +0 -1
- package/dist/components/Switch/__tests__/Switch.test.js +3 -3
- package/dist/components/Switch/styles.d.ts +0 -1
- package/dist/components/Switch/styles.js +74 -74
- package/dist/components/Table/Table.js +1 -1
- package/dist/components/Table/__mocks__/table-mocks.d.ts +0 -1
- package/dist/components/Table/__mocks__/table-mocks.js +10 -9
- package/dist/components/Table/__stories__/Table.stories.d.ts +0 -1
- package/dist/components/Table/__tests__/Table.test.js +1 -1
- package/dist/components/Table/styles.d.ts +0 -1
- package/dist/components/Table/styles.js +2 -2
- package/dist/components/Tabs/__stories__/Tabs.stories.d.ts +0 -1
- package/dist/components/Tabs/__tests__/Tabs.test.js +3 -3
- package/dist/components/Tabs/styles.d.ts +0 -1
- package/dist/components/Tabs/styles.js +2 -2
- package/dist/components/Tile/__stories__/Tile.stories.d.ts +0 -1
- package/dist/components/Tile/__tests__/Tile.test.js +1 -1
- package/dist/components/Tile/styles.d.ts +0 -1
- package/dist/components/Tile/styles.js +1 -1
- package/dist/components/Toast/Toast.d.ts +0 -1
- package/dist/components/Toast/Toast.js +9 -8
- package/dist/components/Toast/__stories__/Toast.stories.d.ts +0 -1
- package/dist/components/Toast/__tests__/Toast.test.js +6 -5
- package/dist/components/Toast/index.js +1 -1
- package/dist/components/Toast/styles.js +1 -1
- package/dist/components/Tooltip/Tooltip.js +8 -7
- package/dist/components/Tooltip/__stories__/Tooltip.stories.d.ts +0 -1
- package/dist/components/Tooltip/__tests__/Tooltip.test.js +1 -1
- package/dist/components/Tooltip/styles.d.ts +0 -1
- package/dist/components/Tooltip/styles.js +2 -2
- package/dist/components/Typography/Typography.d.ts +0 -1
- package/dist/components/Typography/Typography.js +1 -1
- package/dist/components/Typography/__stories__/Typography.stories.d.ts +0 -1
- package/dist/components/Typography/__tests__/Typography.test.js +14 -13
- package/dist/components/Typography/index.js +1 -1
- package/dist/components/Typography/styles.d.ts +0 -1
- package/dist/components/Typography/styles.js +2 -2
- package/dist/components/index.d.ts +0 -2
- package/dist/components/index.js +46 -48
- package/dist/{context-DIFtNa4d.js → context-CQfFkrkv.js} +285 -278
- package/dist/{dropdown-Dp_PTQ2u.js → dropdown-BlRB2LxQ.js} +492 -491
- package/dist/{generateCategoricalChart-7ceYaiZ2.js → generateCategoricalChart-CqByWmje.js} +7189 -6383
- package/dist/genesis/GenesisThemeBreakdown.d.ts +0 -1
- package/dist/genesis/GenesisThemeBreakdown.js +9 -8
- package/dist/genesis/GenesisThemeDemo.d.ts +0 -1
- package/dist/genesis/GenesisThemeDemo.stories.d.ts +0 -1
- package/dist/genesis/{labs/Lab.stories.d.ts → Lab.stories.d.ts} +0 -1
- package/dist/genesis/styles.d.ts +0 -1
- package/dist/genesis/styles.js +3 -3
- package/dist/{iconBase-LROS5hdG.js → iconBase-DSKTHwal.js} +9 -9
- package/dist/index-B7FXyiY_.js +104 -0
- package/dist/{index-B_1Ge8na.js → index-BHCqeC4j.js} +190 -183
- package/dist/index-BZ050Dyl.js +292 -0
- package/dist/{index-BpZSuIUV.js → index-Br3D3cFM.js} +23 -23
- package/dist/{index-DOsPeIWJ.js → index-Bxbr727t.js} +260 -265
- package/dist/index-C2K1BzmJ.js +3400 -0
- package/dist/{styles-D1vKDy9V.js → index-CupwdUIJ.js} +596 -603
- package/dist/{index-BQM5OniU.js → index-CzMIlMTV.js} +111 -111
- package/dist/index-DCopujxC.js +772 -0
- package/dist/index-DRGbc-fW.js +780 -0
- package/dist/index-DavB5GQ3.js +5221 -0
- package/dist/index-RAH9f-qb.js +540 -0
- package/dist/{index-BPVue1Yd.js → index-RtWhGOwR.js} +152 -150
- package/dist/index-Y0KgiFZb.js +909 -0
- package/dist/{index-DRGX1Wem.js → index-sX7KZ-nU.js} +414 -402
- package/dist/index.js +53 -55
- package/dist/interface/appointment.d.ts +0 -1
- package/dist/interface/appointmentV2.d.ts +0 -1
- package/dist/interface/appointmentsState.d.ts +0 -1
- package/dist/interface/deliveryPartner.d.ts +0 -1
- package/dist/interface/route.d.ts +0 -1
- package/dist/interface/routeAnalysis.d.ts +0 -1
- package/dist/interface/routeAutomationJob.d.ts +0 -1
- package/dist/interface/routeAutomationLog.d.ts +0 -1
- package/dist/interface/serviceArea.d.ts +0 -1
- package/dist/interface/vehicle.d.ts +0 -1
- package/dist/{magic-string.es-BKBb7z-1.js → magic-string.es-D4UQQyt0.js} +265 -264
- package/dist/{motion-CUN72xsH.js → motion-C-XpKcZG.js} +6 -5
- package/dist/{pickAttrs-CleuMJFR.js → pickAttrs-yFE4_vFd.js} +1 -1
- package/dist/{presets-Djh_L_6R.js → presets-CSXMiWyc.js} +176 -176
- package/dist/providers/BreakpointThemeProvider.d.ts +0 -1
- package/dist/providers/BreakpointThemeProvider.js +5 -5
- package/dist/providers/GenesisProvider.d.ts +0 -1
- package/dist/providers/GenesisProvider.js +1 -1
- package/dist/providers/ToastProvider.d.ts +0 -1
- package/dist/providers/ToastProvider.js +10 -9
- package/dist/providers/__stories__/GenesisProvider.stories.d.ts +0 -1
- package/dist/providers/index.js +1 -1
- package/dist/providers/useGenesis.d.ts +0 -1
- package/dist/providers/useGenesis.js +2 -2
- package/dist/{roundedArrow-DI_Q-xdU.js → roundedArrow-BxPlu4Hq.js} +2 -2
- package/dist/setup-aZdxWCJq.js +13976 -0
- package/dist/setup.types-CgFq66QX.js +9261 -0
- package/dist/shadow-9lsz-71t.js +13 -0
- package/dist/statusUtils-Kj9kMuVg.js +15 -0
- package/dist/{styleChecker-Cotu61d0.js → styleChecker-CSH9LQtm.js} +3 -3
- package/dist/{styled-components.browser.esm-CZ1XM4o4.js → styled-components.browser.esm-C47QHsU4.js} +371 -304
- package/dist/styles/design-tokens/border-tokens/BorderTokenList.js +11 -10
- package/dist/styles/design-tokens/border-tokens/BorderTokens.stories.d.ts +0 -1
- package/dist/styles/design-tokens/color-tokens/ColorTokens.stories.d.ts +0 -1
- package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.js +9 -8
- package/dist/styles/design-tokens/sizing-tokens/index.stories.d.ts +0 -1
- package/dist/styles/design-tokens/typography-tokens/TypographyTokens.stories.d.ts +0 -1
- package/dist/styles/global-styles.d.ts +0 -1
- package/dist/styles/global-styles.js +1 -1
- package/dist/styles/theme/genesis-theme.d.ts +0 -1
- package/dist/styles/theme/genesis-theme.js +285 -337
- package/dist/styles/theme/genesis-theme.test.d.ts +1 -0
- package/dist/styles/theme/genesis-theme.test.js +69 -0
- package/dist/styles/theme/theme-tree/ThemeTree.js +488 -488
- package/dist/styles/theme/theme-tree/ThemeTree.stories.d.ts +0 -1
- package/dist/styles-DNay6iFa.js +292 -0
- package/dist/styles-Wpm1RiGr.js +9212 -0
- package/dist/styles-XuoEGUZZ.js +549 -0
- package/dist/test/setup.d.ts +0 -1
- package/dist/test/setup.js +35 -35
- package/dist/test/setup.types.d.ts +0 -1
- package/dist/test/setup.types.js +1 -1
- package/dist/{toArray-U3Az44CO.js → toArray-D5kvYi_U.js} +1 -1
- package/dist/useBreakpoint-ByLol0R9.js +88 -0
- package/dist/useCSSVarCls-YfJY1twF.js +10 -0
- package/dist/{useIcons-Ck4JP1m9.js → useIcons-CoxuumP_.js} +16 -16
- package/dist/{useId-D2tzlufo.js → useId-DLf1xVuv.js} +3 -3
- package/dist/useLocale-BQ3mKRyJ.js +16 -0
- package/dist/{useMergedState-D6toxSxh.js → useMergedState-D1-TbeEv.js} +2 -2
- package/dist/useSize-Ct1guc-z.js +9 -0
- package/dist/useVariants-C6UAAu9f.js +19 -0
- package/dist/{useZIndex-DhyHuZTN.js → useZIndex-tgX56o1r.js} +7 -6
- package/dist/utils/icon-util.js +48 -44
- package/dist/vi.B5EKKJdE-BsDIxc7v.js +14087 -0
- package/package.json +33 -24
- package/dist/EllipsisOutlined-DGMph0Bj.js +0 -1115
- package/dist/KeyCode-DM2sFh3-.js +0 -517
- package/dist/TextArea-Bkf9hh7l.js +0 -708
- package/dist/_baseIsEqual-L0-w1QRI.js +0 -598
- package/dist/button-BwqpCxVM.js +0 -1406
- package/dist/clsx-OuTLNxxd.js +0 -16
- package/dist/index-BRUI9igj.js +0 -11
- package/dist/index-BbTV2Cw5.js +0 -22638
- package/dist/index-BeGv28kJ.js +0 -5173
- package/dist/index-BvOLXELm.js +0 -102
- package/dist/index-CLSrpQRW.js +0 -416
- package/dist/index-CbVOl2U6.js +0 -288
- package/dist/index-D0U6r5O7.js +0 -780
- package/dist/index-DEu2PVzQ.js +0 -538
- package/dist/index-DLdU7Tpd.js +0 -183
- package/dist/index-DNQ-jnBx.js +0 -3321
- package/dist/index-DWjq9XYj.js +0 -899
- package/dist/responsiveObserver-dCkpy7Cb.js +0 -73
- package/dist/setup-BjIR5S0o.js +0 -24731
- package/dist/setup.types-dBtAXXGp.js +0 -8824
- package/dist/shadow-BoMGMNn3.js +0 -13
- package/dist/styles-CWdUpZom.js +0 -289
- package/dist/styles-qerRs7Rn.js +0 -9196
- package/dist/useBreakpoint-TkMv121M.js +0 -22
- package/dist/useCSSVarCls-Dau77fzS.js +0 -11
- package/dist/useLocale-CTfNpakL.js +0 -16
- package/dist/useSize-DSq4r6zy.js +0 -9
- package/dist/useVariants-DrLzUVLU.js +0 -30
- package/dist/utils/getAppointmentColor.d.ts +0 -4
- package/dist/utils/getAppointmentColor.js +0 -91
- package/dist/utils/isAllEnglishString.d.ts +0 -1
- package/dist/utils/isAllEnglishString.js +0 -8
- package/dist/utils/isAllEnglishString.test.js +0 -8
- package/dist/utils/parseAddress.d.ts +0 -3
- package/dist/utils/parseAddress.js +0 -19
- /package/dist/{utils/isAllEnglishString.test.d.ts → components/FormBrandon/__tests__/form.test.d.ts} +0 -0
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import { d as
|
|
1
|
+
import { d as ge } from "../../styled-components.browser.esm-C47QHsU4.js";
|
|
2
2
|
import * as i from "react";
|
|
3
|
-
import { a as
|
|
4
|
-
import { u as Se } from "../../useMergedState-
|
|
3
|
+
import { a as B, _ as q, c as L, g as be, e as Q, b as _, f as ne } from "../../presets-CSXMiWyc.js";
|
|
4
|
+
import { u as Se } from "../../useMergedState-D1-TbeEv.js";
|
|
5
5
|
import { o as pe } from "../../omit-B_u6A-HL.js";
|
|
6
|
-
import { h as $e,
|
|
7
|
-
import { u as Ie } from "../../
|
|
8
|
-
import "../../
|
|
9
|
-
|
|
10
|
-
var k = function(t, a) {
|
|
6
|
+
import { h as $e, p as ye, q as ie, g as Ce, m as we, j as xe, o as Ne, f as E, s as Re, t as Oe, l as Me } from "../../CSSMotionList-DB0khM6h.js";
|
|
7
|
+
import { u as Ie } from "../../useId-DLf1xVuv.js";
|
|
8
|
+
import { u as je } from "../../useSize-Ct1guc-z.js";
|
|
9
|
+
var k = function(t, n) {
|
|
11
10
|
if (!t) return null;
|
|
12
|
-
var
|
|
11
|
+
var a = {
|
|
13
12
|
left: t.offsetLeft,
|
|
14
13
|
right: t.parentElement.clientWidth - t.clientWidth - t.offsetLeft,
|
|
15
14
|
width: t.clientWidth,
|
|
@@ -17,106 +16,106 @@ var k = function(t, a) {
|
|
|
17
16
|
bottom: t.parentElement.clientHeight - t.clientHeight - t.offsetTop,
|
|
18
17
|
height: t.clientHeight
|
|
19
18
|
};
|
|
20
|
-
return
|
|
19
|
+
return n ? {
|
|
21
20
|
left: 0,
|
|
22
21
|
right: 0,
|
|
23
22
|
width: 0,
|
|
24
|
-
top:
|
|
25
|
-
bottom:
|
|
26
|
-
height:
|
|
23
|
+
top: a.top,
|
|
24
|
+
bottom: a.bottom,
|
|
25
|
+
height: a.height
|
|
27
26
|
} : {
|
|
28
|
-
left:
|
|
29
|
-
right:
|
|
30
|
-
width:
|
|
27
|
+
left: a.left,
|
|
28
|
+
right: a.right,
|
|
29
|
+
width: a.width,
|
|
31
30
|
top: 0,
|
|
32
31
|
bottom: 0,
|
|
33
32
|
height: 0
|
|
34
33
|
};
|
|
35
|
-
},
|
|
34
|
+
}, C = function(t) {
|
|
36
35
|
return t !== void 0 ? "".concat(t, "px") : void 0;
|
|
37
36
|
};
|
|
38
37
|
function Ee(e) {
|
|
39
|
-
var t = e.prefixCls,
|
|
40
|
-
var
|
|
41
|
-
return (
|
|
42
|
-
},
|
|
38
|
+
var t = e.prefixCls, n = e.containerRef, a = e.value, o = e.getValueIndex, s = e.motionName, S = e.onMotionStart, h = e.onMotionEnd, b = e.direction, w = e.vertical, d = w === void 0 ? !1 : w, N = i.useRef(null), H = i.useState(a), R = B(H, 2), v = R[0], O = R[1], M = function(j) {
|
|
39
|
+
var x, A = o(j), y = (x = n.current) === null || x === void 0 ? void 0 : x.querySelectorAll(".".concat(t, "-item"))[A];
|
|
40
|
+
return (y == null ? void 0 : y.offsetParent) && y;
|
|
41
|
+
}, P = i.useState(null), m = B(P, 2), r = m[0], I = m[1], T = i.useState(null), g = B(T, 2), l = g[0], D = g[1];
|
|
43
42
|
$e(function() {
|
|
44
|
-
if (
|
|
45
|
-
var
|
|
46
|
-
|
|
43
|
+
if (v !== a) {
|
|
44
|
+
var c = M(v), j = M(a), x = k(c, d), A = k(j, d);
|
|
45
|
+
O(a), I(x), D(A), c && j ? S() : h();
|
|
47
46
|
}
|
|
48
|
-
}, [
|
|
49
|
-
var
|
|
50
|
-
if (
|
|
51
|
-
var
|
|
52
|
-
return
|
|
47
|
+
}, [a]);
|
|
48
|
+
var p = i.useMemo(function() {
|
|
49
|
+
if (d) {
|
|
50
|
+
var c;
|
|
51
|
+
return C((c = r == null ? void 0 : r.top) !== null && c !== void 0 ? c : 0);
|
|
53
52
|
}
|
|
54
|
-
return
|
|
55
|
-
}, [
|
|
56
|
-
if (
|
|
57
|
-
var
|
|
58
|
-
return
|
|
53
|
+
return C(b === "rtl" ? -(r == null ? void 0 : r.right) : r == null ? void 0 : r.left);
|
|
54
|
+
}, [d, b, r]), $ = i.useMemo(function() {
|
|
55
|
+
if (d) {
|
|
56
|
+
var c;
|
|
57
|
+
return C((c = l == null ? void 0 : l.top) !== null && c !== void 0 ? c : 0);
|
|
59
58
|
}
|
|
60
|
-
return
|
|
61
|
-
}, [
|
|
62
|
-
return
|
|
59
|
+
return C(b === "rtl" ? -(l == null ? void 0 : l.right) : l == null ? void 0 : l.left);
|
|
60
|
+
}, [d, b, l]), K = function() {
|
|
61
|
+
return d ? {
|
|
63
62
|
transform: "translateY(var(--thumb-start-top))",
|
|
64
63
|
height: "var(--thumb-start-height)"
|
|
65
64
|
} : {
|
|
66
65
|
transform: "translateX(var(--thumb-start-left))",
|
|
67
66
|
width: "var(--thumb-start-width)"
|
|
68
67
|
};
|
|
69
|
-
},
|
|
70
|
-
return
|
|
68
|
+
}, V = function() {
|
|
69
|
+
return d ? {
|
|
71
70
|
transform: "translateY(var(--thumb-active-top))",
|
|
72
71
|
height: "var(--thumb-active-height)"
|
|
73
72
|
} : {
|
|
74
73
|
transform: "translateX(var(--thumb-active-left))",
|
|
75
74
|
width: "var(--thumb-active-width)"
|
|
76
75
|
};
|
|
77
|
-
},
|
|
78
|
-
|
|
76
|
+
}, F = function() {
|
|
77
|
+
I(null), D(null), h();
|
|
79
78
|
};
|
|
80
|
-
return !
|
|
79
|
+
return !r || !l ? null : /* @__PURE__ */ i.createElement(ye, {
|
|
81
80
|
visible: !0,
|
|
82
81
|
motionName: s,
|
|
83
82
|
motionAppear: !0,
|
|
84
|
-
onAppearStart:
|
|
85
|
-
onAppearActive:
|
|
86
|
-
onVisibleChanged:
|
|
87
|
-
}, function(
|
|
88
|
-
var
|
|
89
|
-
"--thumb-start-left":
|
|
90
|
-
"--thumb-start-width":
|
|
91
|
-
"--thumb-active-left":
|
|
92
|
-
"--thumb-active-width":
|
|
93
|
-
"--thumb-start-top":
|
|
94
|
-
"--thumb-start-height":
|
|
95
|
-
"--thumb-active-top":
|
|
96
|
-
"--thumb-active-height":
|
|
97
|
-
}),
|
|
98
|
-
ref: ie(
|
|
99
|
-
style:
|
|
100
|
-
className:
|
|
83
|
+
onAppearStart: K,
|
|
84
|
+
onAppearActive: V,
|
|
85
|
+
onVisibleChanged: F
|
|
86
|
+
}, function(c, j) {
|
|
87
|
+
var x = c.className, A = c.style, y = q(q({}, A), {}, {
|
|
88
|
+
"--thumb-start-left": p,
|
|
89
|
+
"--thumb-start-width": C(r == null ? void 0 : r.width),
|
|
90
|
+
"--thumb-active-left": $,
|
|
91
|
+
"--thumb-active-width": C(l == null ? void 0 : l.width),
|
|
92
|
+
"--thumb-start-top": p,
|
|
93
|
+
"--thumb-start-height": C(r == null ? void 0 : r.height),
|
|
94
|
+
"--thumb-active-top": $,
|
|
95
|
+
"--thumb-active-height": C(l == null ? void 0 : l.height)
|
|
96
|
+
}), X = {
|
|
97
|
+
ref: ie(N, j),
|
|
98
|
+
style: y,
|
|
99
|
+
className: L("".concat(t, "-thumb"), x)
|
|
101
100
|
};
|
|
102
|
-
return process.env.NODE_ENV === "test" && (
|
|
101
|
+
return process.env.NODE_ENV === "test" && (X["data-test-style"] = JSON.stringify(y)), /* @__PURE__ */ i.createElement("div", X);
|
|
103
102
|
});
|
|
104
103
|
}
|
|
105
104
|
var He = ["prefixCls", "direction", "vertical", "options", "disabled", "defaultValue", "value", "name", "onChange", "className", "motionName"];
|
|
106
105
|
function Pe(e) {
|
|
107
106
|
if (typeof e.title < "u")
|
|
108
107
|
return e.title;
|
|
109
|
-
if (
|
|
108
|
+
if (ne(e.label) !== "object") {
|
|
110
109
|
var t;
|
|
111
110
|
return (t = e.label) === null || t === void 0 ? void 0 : t.toString();
|
|
112
111
|
}
|
|
113
112
|
}
|
|
114
113
|
function De(e) {
|
|
115
114
|
return e.map(function(t) {
|
|
116
|
-
if (
|
|
117
|
-
var
|
|
118
|
-
return
|
|
119
|
-
title:
|
|
115
|
+
if (ne(t) === "object" && t !== null) {
|
|
116
|
+
var n = Pe(t);
|
|
117
|
+
return q(q({}, t), {}, {
|
|
118
|
+
title: n
|
|
120
119
|
});
|
|
121
120
|
}
|
|
122
121
|
return {
|
|
@@ -127,53 +126,53 @@ function De(e) {
|
|
|
127
126
|
});
|
|
128
127
|
}
|
|
129
128
|
var Ve = function(t) {
|
|
130
|
-
var
|
|
131
|
-
|
|
129
|
+
var n = t.prefixCls, a = t.className, o = t.disabled, s = t.checked, S = t.label, h = t.title, b = t.value, w = t.name, d = t.onChange, N = t.onFocus, H = t.onBlur, R = t.onKeyDown, v = t.onKeyUp, O = t.onMouseDown, M = function(m) {
|
|
130
|
+
o || d(m, b);
|
|
132
131
|
};
|
|
133
132
|
return /* @__PURE__ */ i.createElement("label", {
|
|
134
|
-
className:
|
|
135
|
-
onMouseDown:
|
|
133
|
+
className: L(a, _({}, "".concat(n, "-item-disabled"), o)),
|
|
134
|
+
onMouseDown: O
|
|
136
135
|
}, /* @__PURE__ */ i.createElement("input", {
|
|
137
|
-
name:
|
|
138
|
-
className: "".concat(
|
|
136
|
+
name: w,
|
|
137
|
+
className: "".concat(n, "-item-input"),
|
|
139
138
|
type: "radio",
|
|
140
|
-
disabled:
|
|
139
|
+
disabled: o,
|
|
141
140
|
checked: s,
|
|
142
|
-
onChange:
|
|
143
|
-
onFocus:
|
|
144
|
-
onBlur:
|
|
141
|
+
onChange: M,
|
|
142
|
+
onFocus: N,
|
|
143
|
+
onBlur: H,
|
|
145
144
|
onKeyDown: R,
|
|
146
|
-
onKeyUp:
|
|
145
|
+
onKeyUp: v
|
|
147
146
|
}), /* @__PURE__ */ i.createElement("div", {
|
|
148
|
-
className: "".concat(
|
|
149
|
-
title:
|
|
147
|
+
className: "".concat(n, "-item-label"),
|
|
148
|
+
title: h,
|
|
150
149
|
"aria-selected": s
|
|
151
|
-
},
|
|
152
|
-
},
|
|
153
|
-
var
|
|
154
|
-
return ie(
|
|
155
|
-
}, [
|
|
156
|
-
return De(
|
|
157
|
-
}, [
|
|
158
|
-
value:
|
|
159
|
-
defaultValue:
|
|
160
|
-
}),
|
|
161
|
-
|
|
162
|
-
},
|
|
150
|
+
}, S));
|
|
151
|
+
}, oe = /* @__PURE__ */ i.forwardRef(function(e, t) {
|
|
152
|
+
var n, a, o = e.prefixCls, s = o === void 0 ? "rc-segmented" : o, S = e.direction, h = e.vertical, b = e.options, w = b === void 0 ? [] : b, d = e.disabled, N = e.defaultValue, H = e.value, R = e.name, v = e.onChange, O = e.className, M = O === void 0 ? "" : O, P = e.motionName, m = P === void 0 ? "thumb-motion" : P, r = be(e, He), I = i.useRef(null), T = i.useMemo(function() {
|
|
153
|
+
return ie(I, t);
|
|
154
|
+
}, [I, t]), g = i.useMemo(function() {
|
|
155
|
+
return De(w);
|
|
156
|
+
}, [w]), l = Se((n = g[0]) === null || n === void 0 ? void 0 : n.value, {
|
|
157
|
+
value: H,
|
|
158
|
+
defaultValue: N
|
|
159
|
+
}), D = B(l, 2), p = D[0], $ = D[1], K = i.useState(!1), V = B(K, 2), F = V[0], c = V[1], j = function(f, z) {
|
|
160
|
+
$(z), v == null || v(z);
|
|
161
|
+
}, x = pe(r, ["children"]), A = i.useState(!1), y = B(A, 2), X = y[0], U = y[1], le = i.useState(!1), G = B(le, 2), se = G[0], Y = G[1], ce = function() {
|
|
163
162
|
Y(!0);
|
|
164
|
-
},
|
|
163
|
+
}, de = function() {
|
|
165
164
|
Y(!1);
|
|
166
|
-
},
|
|
165
|
+
}, ue = function() {
|
|
167
166
|
U(!1);
|
|
168
|
-
}, me = function(
|
|
169
|
-
|
|
170
|
-
}, J = function(
|
|
171
|
-
var
|
|
172
|
-
return
|
|
173
|
-
}), Z =
|
|
174
|
-
|
|
175
|
-
},
|
|
176
|
-
switch (
|
|
167
|
+
}, me = function(f) {
|
|
168
|
+
f.key === "Tab" && U(!0);
|
|
169
|
+
}, J = function(f) {
|
|
170
|
+
var z = g.findIndex(function(he) {
|
|
171
|
+
return he.value === p;
|
|
172
|
+
}), Z = g.length, fe = (z + f + Z) % Z, W = g[fe];
|
|
173
|
+
W && ($(W.value), v == null || v(W.value));
|
|
174
|
+
}, ve = function(f) {
|
|
175
|
+
switch (f.key) {
|
|
177
176
|
case "ArrowLeft":
|
|
178
177
|
case "ArrowUp":
|
|
179
178
|
J(-1);
|
|
@@ -187,50 +186,50 @@ var Ve = function(t) {
|
|
|
187
186
|
return /* @__PURE__ */ i.createElement("div", Q({
|
|
188
187
|
role: "radiogroup",
|
|
189
188
|
"aria-label": "segmented control",
|
|
190
|
-
tabIndex:
|
|
191
|
-
},
|
|
192
|
-
className:
|
|
193
|
-
ref:
|
|
189
|
+
tabIndex: d ? void 0 : 0
|
|
190
|
+
}, x, {
|
|
191
|
+
className: L(s, (a = {}, _(a, "".concat(s, "-rtl"), S === "rtl"), _(a, "".concat(s, "-disabled"), d), _(a, "".concat(s, "-vertical"), h), a), M),
|
|
192
|
+
ref: T
|
|
194
193
|
}), /* @__PURE__ */ i.createElement("div", {
|
|
195
194
|
className: "".concat(s, "-group")
|
|
196
195
|
}, /* @__PURE__ */ i.createElement(Ee, {
|
|
197
|
-
vertical:
|
|
196
|
+
vertical: h,
|
|
198
197
|
prefixCls: s,
|
|
199
|
-
value:
|
|
200
|
-
containerRef:
|
|
201
|
-
motionName: "".concat(s, "-").concat(
|
|
202
|
-
direction:
|
|
203
|
-
getValueIndex: function(
|
|
204
|
-
return
|
|
205
|
-
return
|
|
198
|
+
value: p,
|
|
199
|
+
containerRef: I,
|
|
200
|
+
motionName: "".concat(s, "-").concat(m),
|
|
201
|
+
direction: S,
|
|
202
|
+
getValueIndex: function(f) {
|
|
203
|
+
return g.findIndex(function(z) {
|
|
204
|
+
return z.value === f;
|
|
206
205
|
});
|
|
207
206
|
},
|
|
208
207
|
onMotionStart: function() {
|
|
209
|
-
|
|
208
|
+
c(!0);
|
|
210
209
|
},
|
|
211
210
|
onMotionEnd: function() {
|
|
212
|
-
|
|
211
|
+
c(!1);
|
|
213
212
|
}
|
|
214
|
-
}),
|
|
215
|
-
var
|
|
216
|
-
return /* @__PURE__ */ i.createElement(Ve, Q({},
|
|
213
|
+
}), g.map(function(u) {
|
|
214
|
+
var f;
|
|
215
|
+
return /* @__PURE__ */ i.createElement(Ve, Q({}, u, {
|
|
217
216
|
name: R,
|
|
218
|
-
key:
|
|
217
|
+
key: u.value,
|
|
219
218
|
prefixCls: s,
|
|
220
|
-
className:
|
|
221
|
-
checked:
|
|
219
|
+
className: L(u.className, "".concat(s, "-item"), (f = {}, _(f, "".concat(s, "-item-selected"), u.value === p && !F), _(f, "".concat(s, "-item-focused"), se && X && u.value === p), f)),
|
|
220
|
+
checked: u.value === p,
|
|
222
221
|
onChange: j,
|
|
223
|
-
onFocus:
|
|
224
|
-
onBlur:
|
|
225
|
-
onKeyDown:
|
|
222
|
+
onFocus: ce,
|
|
223
|
+
onBlur: de,
|
|
224
|
+
onKeyDown: ve,
|
|
226
225
|
onKeyUp: me,
|
|
227
|
-
onMouseDown:
|
|
228
|
-
disabled: !!
|
|
226
|
+
onMouseDown: ue,
|
|
227
|
+
disabled: !!d || !!u.disabled
|
|
229
228
|
}));
|
|
230
229
|
})));
|
|
231
230
|
});
|
|
232
|
-
process.env.NODE_ENV !== "production" && (
|
|
233
|
-
var Ae =
|
|
231
|
+
process.env.NODE_ENV !== "production" && (oe.displayName = "Segmented");
|
|
232
|
+
var Ae = oe;
|
|
234
233
|
function ee(e, t) {
|
|
235
234
|
return {
|
|
236
235
|
[`${e}, ${e}:hover, ${e}:focus`]: {
|
|
@@ -247,19 +246,19 @@ function te(e) {
|
|
|
247
246
|
}
|
|
248
247
|
const Be = Object.assign({
|
|
249
248
|
overflow: "hidden"
|
|
250
|
-
},
|
|
249
|
+
}, Oe), ze = (e) => {
|
|
251
250
|
const {
|
|
252
251
|
componentCls: t
|
|
253
|
-
} = e,
|
|
252
|
+
} = e, n = e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(), a = e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(), o = e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();
|
|
254
253
|
return {
|
|
255
|
-
[t]: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},
|
|
254
|
+
[t]: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, xe(e)), {
|
|
256
255
|
display: "inline-block",
|
|
257
256
|
padding: e.trackPadding,
|
|
258
257
|
color: e.itemColor,
|
|
259
258
|
background: e.trackBg,
|
|
260
259
|
borderRadius: e.borderRadius,
|
|
261
260
|
transition: `all ${e.motionDurationMid} ${e.motionEaseInOut}`
|
|
262
|
-
}),
|
|
261
|
+
}), Ne(e)), {
|
|
263
262
|
[`${t}-group`]: {
|
|
264
263
|
position: "relative",
|
|
265
264
|
display: "flex",
|
|
@@ -313,7 +312,8 @@ const Be = Object.assign({
|
|
|
313
312
|
top: 0,
|
|
314
313
|
insetInlineStart: 0,
|
|
315
314
|
borderRadius: "inherit",
|
|
316
|
-
|
|
315
|
+
opacity: 0,
|
|
316
|
+
transition: `opacity ${e.motionDurationMid}`,
|
|
317
317
|
// This is mandatory to make it not clickable or hoverable
|
|
318
318
|
// Ref: https://github.com/ant-design/ant-design/issues/40888
|
|
319
319
|
pointerEvents: "none"
|
|
@@ -321,18 +321,20 @@ const Be = Object.assign({
|
|
|
321
321
|
[`&:hover:not(${t}-item-selected):not(${t}-item-disabled)`]: {
|
|
322
322
|
color: e.itemHoverColor,
|
|
323
323
|
"&::after": {
|
|
324
|
+
opacity: 1,
|
|
324
325
|
backgroundColor: e.itemHoverBg
|
|
325
326
|
}
|
|
326
327
|
},
|
|
327
328
|
[`&:active:not(${t}-item-selected):not(${t}-item-disabled)`]: {
|
|
328
329
|
color: e.itemHoverColor,
|
|
329
330
|
"&::after": {
|
|
331
|
+
opacity: 1,
|
|
330
332
|
backgroundColor: e.itemActiveBg
|
|
331
333
|
}
|
|
332
334
|
},
|
|
333
335
|
"&-label": Object.assign({
|
|
334
|
-
minHeight:
|
|
335
|
-
lineHeight: E(
|
|
336
|
+
minHeight: n,
|
|
337
|
+
lineHeight: E(n),
|
|
336
338
|
padding: `0 ${E(e.segmentedPaddingHorizontal)}`
|
|
337
339
|
}, Be),
|
|
338
340
|
// syntactic sugar to add `icon` for Segmented Item
|
|
@@ -367,8 +369,8 @@ const Be = Object.assign({
|
|
|
367
369
|
[`&${t}-lg`]: {
|
|
368
370
|
borderRadius: e.borderRadiusLG,
|
|
369
371
|
[`${t}-item-label`]: {
|
|
370
|
-
minHeight:
|
|
371
|
-
lineHeight: E(
|
|
372
|
+
minHeight: a,
|
|
373
|
+
lineHeight: E(a),
|
|
372
374
|
padding: `0 ${E(e.segmentedPaddingHorizontal)}`,
|
|
373
375
|
fontSize: e.fontSizeLG
|
|
374
376
|
},
|
|
@@ -379,8 +381,8 @@ const Be = Object.assign({
|
|
|
379
381
|
[`&${t}-sm`]: {
|
|
380
382
|
borderRadius: e.borderRadiusSM,
|
|
381
383
|
[`${t}-item-label`]: {
|
|
382
|
-
minHeight:
|
|
383
|
-
lineHeight: E(
|
|
384
|
+
minHeight: o,
|
|
385
|
+
lineHeight: E(o),
|
|
384
386
|
padding: `0 ${E(e.segmentedPaddingHorizontalSM)}`
|
|
385
387
|
},
|
|
386
388
|
[`${t}-item, ${t}-thumb`]: {
|
|
@@ -392,120 +394,129 @@ const Be = Object.assign({
|
|
|
392
394
|
[`${t}-thumb-motion-appear-active`]: {
|
|
393
395
|
transition: `transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,
|
|
394
396
|
willChange: "transform, width"
|
|
397
|
+
},
|
|
398
|
+
[`&${t}-shape-round`]: {
|
|
399
|
+
borderRadius: 9999,
|
|
400
|
+
[`${t}-item, ${t}-thumb`]: {
|
|
401
|
+
borderRadius: 9999
|
|
402
|
+
}
|
|
395
403
|
}
|
|
396
404
|
})
|
|
397
405
|
};
|
|
398
406
|
}, _e = (e) => {
|
|
399
407
|
const {
|
|
400
408
|
colorTextLabel: t,
|
|
401
|
-
colorText:
|
|
402
|
-
colorFillSecondary:
|
|
403
|
-
colorBgElevated:
|
|
409
|
+
colorText: n,
|
|
410
|
+
colorFillSecondary: a,
|
|
411
|
+
colorBgElevated: o,
|
|
404
412
|
colorFill: s,
|
|
405
|
-
lineWidthBold:
|
|
406
|
-
colorBgLayout:
|
|
413
|
+
lineWidthBold: S,
|
|
414
|
+
colorBgLayout: h
|
|
407
415
|
} = e;
|
|
408
416
|
return {
|
|
409
|
-
trackPadding:
|
|
410
|
-
trackBg:
|
|
417
|
+
trackPadding: S,
|
|
418
|
+
trackBg: h,
|
|
411
419
|
itemColor: t,
|
|
412
|
-
itemHoverColor:
|
|
413
|
-
itemHoverBg:
|
|
414
|
-
itemSelectedBg:
|
|
420
|
+
itemHoverColor: n,
|
|
421
|
+
itemHoverBg: a,
|
|
422
|
+
itemSelectedBg: o,
|
|
415
423
|
itemActiveBg: s,
|
|
416
|
-
itemSelectedColor:
|
|
424
|
+
itemSelectedColor: n
|
|
417
425
|
};
|
|
418
426
|
}, Te = Ce("Segmented", (e) => {
|
|
419
427
|
const {
|
|
420
428
|
lineWidth: t,
|
|
421
|
-
calc:
|
|
422
|
-
} = e,
|
|
423
|
-
segmentedPaddingHorizontal:
|
|
424
|
-
segmentedPaddingHorizontalSM:
|
|
429
|
+
calc: n
|
|
430
|
+
} = e, a = we(e, {
|
|
431
|
+
segmentedPaddingHorizontal: n(e.controlPaddingHorizontal).sub(t).equal(),
|
|
432
|
+
segmentedPaddingHorizontalSM: n(e.controlPaddingHorizontalSM).sub(t).equal()
|
|
425
433
|
});
|
|
426
|
-
return [ze(
|
|
434
|
+
return [ze(a)];
|
|
427
435
|
}, _e);
|
|
428
|
-
var
|
|
429
|
-
var
|
|
430
|
-
for (var
|
|
431
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var
|
|
432
|
-
t.indexOf(
|
|
433
|
-
return
|
|
436
|
+
var ae = function(e, t) {
|
|
437
|
+
var n = {};
|
|
438
|
+
for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && t.indexOf(a) < 0 && (n[a] = e[a]);
|
|
439
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var o = 0, a = Object.getOwnPropertySymbols(e); o < a.length; o++)
|
|
440
|
+
t.indexOf(a[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[o]) && (n[a[o]] = e[a[o]]);
|
|
441
|
+
return n;
|
|
434
442
|
};
|
|
435
443
|
function Ke(e) {
|
|
436
444
|
return typeof e == "object" && !!(e != null && e.icon);
|
|
437
445
|
}
|
|
438
446
|
const Fe = /* @__PURE__ */ i.forwardRef((e, t) => {
|
|
439
|
-
const
|
|
440
|
-
prefixCls:
|
|
441
|
-
className:
|
|
447
|
+
const n = Ie(), {
|
|
448
|
+
prefixCls: a,
|
|
449
|
+
className: o,
|
|
442
450
|
rootClassName: s,
|
|
443
|
-
block:
|
|
444
|
-
options:
|
|
445
|
-
size:
|
|
446
|
-
style:
|
|
447
|
-
vertical:
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
451
|
+
block: S,
|
|
452
|
+
options: h = [],
|
|
453
|
+
size: b = "middle",
|
|
454
|
+
style: w,
|
|
455
|
+
vertical: d,
|
|
456
|
+
shape: N = "default",
|
|
457
|
+
name: H = n
|
|
458
|
+
} = e, R = ae(e, ["prefixCls", "className", "rootClassName", "block", "options", "size", "style", "vertical", "shape", "name"]), {
|
|
459
|
+
getPrefixCls: v,
|
|
460
|
+
direction: O,
|
|
461
|
+
className: M,
|
|
462
|
+
style: P
|
|
463
|
+
} = Me("segmented"), m = v("segmented", a), [r, I, T] = Te(m), g = je(b), l = i.useMemo(() => h.map(($) => {
|
|
454
464
|
if (Ke($)) {
|
|
455
465
|
const {
|
|
456
|
-
icon:
|
|
457
|
-
label:
|
|
458
|
-
} = $,
|
|
459
|
-
return Object.assign(Object.assign({},
|
|
466
|
+
icon: K,
|
|
467
|
+
label: V
|
|
468
|
+
} = $, F = ae($, ["icon", "label"]);
|
|
469
|
+
return Object.assign(Object.assign({}, F), {
|
|
460
470
|
label: /* @__PURE__ */ i.createElement(i.Fragment, null, /* @__PURE__ */ i.createElement("span", {
|
|
461
471
|
className: `${m}-item-icon`
|
|
462
|
-
},
|
|
472
|
+
}, K), V && /* @__PURE__ */ i.createElement("span", null, V))
|
|
463
473
|
});
|
|
464
474
|
}
|
|
465
475
|
return $;
|
|
466
|
-
}), [
|
|
467
|
-
[`${m}-block`]:
|
|
468
|
-
[`${m}-sm`]:
|
|
469
|
-
[`${m}-lg`]:
|
|
470
|
-
[`${m}-vertical`]:
|
|
471
|
-
|
|
472
|
-
|
|
476
|
+
}), [h, m]), D = L(o, s, M, {
|
|
477
|
+
[`${m}-block`]: S,
|
|
478
|
+
[`${m}-sm`]: g === "small",
|
|
479
|
+
[`${m}-lg`]: g === "large",
|
|
480
|
+
[`${m}-vertical`]: d,
|
|
481
|
+
[`${m}-shape-${N}`]: N === "round"
|
|
482
|
+
}, I, T), p = Object.assign(Object.assign({}, P), w);
|
|
483
|
+
return r(/* @__PURE__ */ i.createElement(Ae, Object.assign({}, R, {
|
|
473
484
|
name: H,
|
|
474
|
-
className:
|
|
475
|
-
style:
|
|
476
|
-
options:
|
|
485
|
+
className: D,
|
|
486
|
+
style: p,
|
|
487
|
+
options: l,
|
|
477
488
|
ref: t,
|
|
478
489
|
prefixCls: m,
|
|
479
|
-
direction:
|
|
480
|
-
vertical:
|
|
490
|
+
direction: O,
|
|
491
|
+
vertical: d
|
|
481
492
|
})));
|
|
482
|
-
}),
|
|
483
|
-
process.env.NODE_ENV !== "production" && (
|
|
484
|
-
const Le = ({ colors: e, borderRadius: t, sizing:
|
|
493
|
+
}), re = Fe;
|
|
494
|
+
process.env.NODE_ENV !== "production" && (re.displayName = "Segmented");
|
|
495
|
+
const Le = ({ colors: e, borderRadius: t, sizing: n }, a = "primary", o = "active") => `
|
|
485
496
|
&.ant-segmented {
|
|
486
497
|
border-radius: ${t.BorderRadiusMd};
|
|
487
498
|
color: ${e.onsurface.copy};
|
|
488
499
|
|
|
489
500
|
.ant-segmented-item {
|
|
490
|
-
color: ${e[
|
|
501
|
+
color: ${e[a].text};
|
|
491
502
|
transition: all 0.3s;
|
|
492
503
|
|
|
493
504
|
&-selected {
|
|
494
|
-
background: ${e[
|
|
495
|
-
color: ${e[
|
|
505
|
+
background: ${e[a][o]};
|
|
506
|
+
color: ${e[a].textContrast};
|
|
496
507
|
}
|
|
497
508
|
|
|
498
509
|
&:hover {
|
|
499
|
-
color: ${e[
|
|
510
|
+
color: ${e[a].hover};
|
|
500
511
|
}
|
|
501
512
|
}
|
|
502
513
|
}
|
|
503
|
-
`,
|
|
504
|
-
|
|
514
|
+
`, Ze = ge(
|
|
515
|
+
re
|
|
505
516
|
)`
|
|
506
|
-
${({ theme: e, type: t = "primary", state:
|
|
517
|
+
${({ theme: e, type: t = "primary", state: n = "active" }) => Le(e, t, n)}
|
|
507
518
|
`;
|
|
508
519
|
export {
|
|
509
|
-
|
|
520
|
+
Ze as SegmentedControls,
|
|
510
521
|
Le as getGenesisClass
|
|
511
522
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { TYPE, STATE } from '../../constants';
|
|
3
3
|
import { SelectProps as AntSelectProps } from 'antd';
|
|
4
|
-
|
|
5
4
|
export interface SelectProps extends Omit<AntSelectProps, "options"> {
|
|
6
5
|
type?: keyof typeof TYPE;
|
|
7
6
|
state?: keyof typeof STATE;
|