@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
|
@@ -2,33 +2,34 @@ import { jsx as t } from "react/jsx-runtime";
|
|
|
2
2
|
import { Avatar as a } from "./styles.js";
|
|
3
3
|
import "../Badge/styles.js";
|
|
4
4
|
import "../../providers/BreakpointThemeProvider.js";
|
|
5
|
-
import { a as e } from "../../Typography-
|
|
5
|
+
import { a as e } from "../../Typography-B2J8CPnt.js";
|
|
6
6
|
import "../Breadcrumb/styles.js";
|
|
7
7
|
import "../Button/styles.js";
|
|
8
8
|
import "../Card/styles.js";
|
|
9
9
|
import "../Checkbox/styles.js";
|
|
10
|
+
import "../DateRangePicker/DateRangePicker.js";
|
|
10
11
|
import "react";
|
|
11
12
|
import "../ErrorBoundaryFallback/styles.js";
|
|
12
|
-
import "
|
|
13
|
+
import "../../styles-XuoEGUZZ.js";
|
|
13
14
|
import "../Layout/Content/styles.js";
|
|
14
15
|
import "../Message/styles.js";
|
|
15
16
|
import "../Notification/NotificationBadge/styles.js";
|
|
16
17
|
import "../Notification/styles.js";
|
|
17
|
-
import "../../styles-
|
|
18
|
+
import "../../styles-DNay6iFa.js";
|
|
18
19
|
import "../Progress/styles.js";
|
|
19
|
-
import "../../styles/global-styles.js";
|
|
20
20
|
import "../Row/styles.js";
|
|
21
|
+
import "../../styles/global-styles.js";
|
|
21
22
|
import "../Row/RowLabelValue/styles.js";
|
|
22
23
|
import "../Row/RowActions/styles.js";
|
|
23
24
|
import "../SegmentedControls/styles.js";
|
|
24
25
|
import "../Select/styles.js";
|
|
25
26
|
import "../Switch/styles.js";
|
|
26
|
-
import "../../styles-
|
|
27
|
+
import "../../styles-Wpm1RiGr.js";
|
|
27
28
|
import "../Tabs/styles.js";
|
|
28
29
|
import "../Tile/styles.js";
|
|
29
30
|
import "../Toast/styles.js";
|
|
30
31
|
import "../Tooltip/styles.js";
|
|
31
|
-
const
|
|
32
|
+
const N = ({
|
|
32
33
|
size: r = 64,
|
|
33
34
|
shape: o = "circle",
|
|
34
35
|
imageUrl: i,
|
|
@@ -57,5 +58,5 @@ const M = ({
|
|
|
57
58
|
}
|
|
58
59
|
);
|
|
59
60
|
export {
|
|
60
|
-
|
|
61
|
+
N as default
|
|
61
62
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { GenesisTheme } from '../../styles/theme/genesis-theme.types';
|
|
2
|
-
|
|
3
2
|
interface StyledAvatarProps {
|
|
4
3
|
theme?: GenesisTheme;
|
|
5
4
|
type?: "primary" | "secondary";
|
|
@@ -13,6 +12,6 @@ export declare const getGenesisClass: ({ colors, borderRadius, sizing }: {
|
|
|
13
12
|
export declare const Avatar: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<Omit<import('antd').AvatarProps & import('react').RefAttributes<HTMLSpanElement>, "ref"> & {
|
|
14
13
|
ref?: import('react').Ref<HTMLSpanElement>;
|
|
15
14
|
}, StyledAvatarProps>> & string & Omit<import('react').ForwardRefExoticComponent<import('antd').AvatarProps & import('react').RefAttributes<HTMLSpanElement>> & {
|
|
16
|
-
Group: import('react').FC<import('antd/es/avatar').
|
|
15
|
+
Group: import('react').FC<import('antd/es/avatar/AvatarGroup').AvatarGroupProps>;
|
|
17
16
|
}, keyof import('react').Component<any, {}, any>>;
|
|
18
17
|
export {};
|
|
@@ -1,50 +1,49 @@
|
|
|
1
|
-
import { d as re } from "../../styled-components.browser.esm-
|
|
2
|
-
import * as
|
|
3
|
-
import {
|
|
4
|
-
import { R as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import "../../
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
const B = /* @__PURE__ */ n.createContext({}), ve = (e) => {
|
|
1
|
+
import { d as re } from "../../styled-components.browser.esm-C47QHsU4.js";
|
|
2
|
+
import * as o from "react";
|
|
3
|
+
import { c as M } from "../../presets-CSXMiWyc.js";
|
|
4
|
+
import { R as ne } from "../../index-CzMIlMTV.js";
|
|
5
|
+
import { g as se, m as ae, j as ie, f as ce, q as le, C as D } from "../../CSSMotionList-DB0khM6h.js";
|
|
6
|
+
import { u as de, r as me } from "../../useBreakpoint-ByLol0R9.js";
|
|
7
|
+
import { d as X } from "../../index-DCopujxC.js";
|
|
8
|
+
import { u as q } from "../../useCSSVarCls-YfJY1twF.js";
|
|
9
|
+
import { u as pe } from "../../useSize-Ct1guc-z.js";
|
|
10
|
+
import { t as ge } from "../../toArray-D5kvYi_U.js";
|
|
11
|
+
import { c as ue } from "../../reactNode-sKPeiqPL.js";
|
|
12
|
+
import { a as ve } from "../../index-BZ050Dyl.js";
|
|
13
|
+
const B = /* @__PURE__ */ o.createContext({}), fe = (e) => {
|
|
15
14
|
const {
|
|
16
15
|
antCls: r,
|
|
17
|
-
componentCls:
|
|
16
|
+
componentCls: n,
|
|
18
17
|
iconCls: t,
|
|
19
|
-
avatarBg:
|
|
18
|
+
avatarBg: a,
|
|
20
19
|
avatarColor: z,
|
|
21
20
|
containerSize: h,
|
|
22
21
|
containerSizeLG: y,
|
|
23
|
-
containerSizeSM:
|
|
24
|
-
textFontSize:
|
|
22
|
+
containerSizeSM: f,
|
|
23
|
+
textFontSize: u,
|
|
25
24
|
textFontSizeLG: x,
|
|
26
|
-
textFontSizeSM:
|
|
27
|
-
borderRadius:
|
|
28
|
-
borderRadiusLG:
|
|
25
|
+
textFontSizeSM: w,
|
|
26
|
+
borderRadius: v,
|
|
27
|
+
borderRadiusLG: m,
|
|
29
28
|
borderRadiusSM: O,
|
|
30
|
-
lineWidth:
|
|
31
|
-
lineType:
|
|
32
|
-
} = e, E = (s,
|
|
29
|
+
lineWidth: k,
|
|
30
|
+
lineType: A
|
|
31
|
+
} = e, E = (s, p, P) => ({
|
|
33
32
|
width: s,
|
|
34
33
|
height: s,
|
|
35
34
|
borderRadius: "50%",
|
|
36
|
-
[`&${
|
|
35
|
+
[`&${n}-square`]: {
|
|
37
36
|
borderRadius: P
|
|
38
37
|
},
|
|
39
|
-
[`&${
|
|
40
|
-
fontSize:
|
|
38
|
+
[`&${n}-icon`]: {
|
|
39
|
+
fontSize: p,
|
|
41
40
|
[`> ${t}`]: {
|
|
42
41
|
margin: 0
|
|
43
42
|
}
|
|
44
43
|
}
|
|
45
44
|
});
|
|
46
45
|
return {
|
|
47
|
-
[
|
|
46
|
+
[n]: Object.assign(Object.assign(Object.assign(Object.assign({}, ie(e)), {
|
|
48
47
|
position: "relative",
|
|
49
48
|
display: "inline-flex",
|
|
50
49
|
justifyContent: "center",
|
|
@@ -54,17 +53,17 @@ const B = /* @__PURE__ */ n.createContext({}), ve = (e) => {
|
|
|
54
53
|
whiteSpace: "nowrap",
|
|
55
54
|
textAlign: "center",
|
|
56
55
|
verticalAlign: "middle",
|
|
57
|
-
background:
|
|
58
|
-
border: `${ce(
|
|
56
|
+
background: a,
|
|
57
|
+
border: `${ce(k)} ${A} transparent`,
|
|
59
58
|
"&-image": {
|
|
60
59
|
background: "transparent"
|
|
61
60
|
},
|
|
62
61
|
[`${r}-image-img`]: {
|
|
63
62
|
display: "block"
|
|
64
63
|
}
|
|
65
|
-
}), E(h,
|
|
66
|
-
"&-lg": Object.assign({}, E(y, x,
|
|
67
|
-
"&-sm": Object.assign({}, E(
|
|
64
|
+
}), E(h, u, v)), {
|
|
65
|
+
"&-lg": Object.assign({}, E(y, x, m)),
|
|
66
|
+
"&-sm": Object.assign({}, E(f, w, O)),
|
|
68
67
|
"> img": {
|
|
69
68
|
display: "block",
|
|
70
69
|
width: "100%",
|
|
@@ -76,15 +75,15 @@ const B = /* @__PURE__ */ n.createContext({}), ve = (e) => {
|
|
|
76
75
|
}, Se = (e) => {
|
|
77
76
|
const {
|
|
78
77
|
componentCls: r,
|
|
79
|
-
groupBorderColor:
|
|
78
|
+
groupBorderColor: n,
|
|
80
79
|
groupOverlapping: t,
|
|
81
|
-
groupSpace:
|
|
80
|
+
groupSpace: a
|
|
82
81
|
} = e;
|
|
83
82
|
return {
|
|
84
83
|
[`${r}-group`]: {
|
|
85
84
|
display: "inline-flex",
|
|
86
85
|
[r]: {
|
|
87
|
-
borderColor:
|
|
86
|
+
borderColor: n
|
|
88
87
|
},
|
|
89
88
|
"> *:not(:first-child)": {
|
|
90
89
|
marginInlineStart: t
|
|
@@ -92,235 +91,238 @@ const B = /* @__PURE__ */ n.createContext({}), ve = (e) => {
|
|
|
92
91
|
},
|
|
93
92
|
[`${r}-group-popover`]: {
|
|
94
93
|
[`${r} + ${r}`]: {
|
|
95
|
-
marginInlineStart:
|
|
94
|
+
marginInlineStart: a
|
|
96
95
|
}
|
|
97
96
|
}
|
|
98
97
|
};
|
|
99
98
|
}, he = (e) => {
|
|
100
99
|
const {
|
|
101
100
|
controlHeight: r,
|
|
102
|
-
controlHeightLG:
|
|
101
|
+
controlHeightLG: n,
|
|
103
102
|
controlHeightSM: t,
|
|
104
|
-
fontSize:
|
|
103
|
+
fontSize: a,
|
|
105
104
|
fontSizeLG: z,
|
|
106
105
|
fontSizeXL: h,
|
|
107
106
|
fontSizeHeading3: y,
|
|
108
|
-
marginXS:
|
|
109
|
-
marginXXS:
|
|
107
|
+
marginXS: f,
|
|
108
|
+
marginXXS: u,
|
|
110
109
|
colorBorderBg: x
|
|
111
110
|
} = e;
|
|
112
111
|
return {
|
|
113
112
|
containerSize: r,
|
|
114
|
-
containerSizeLG:
|
|
113
|
+
containerSizeLG: n,
|
|
115
114
|
containerSizeSM: t,
|
|
116
115
|
textFontSize: Math.round((z + h) / 2),
|
|
117
116
|
textFontSizeLG: y,
|
|
118
|
-
textFontSizeSM:
|
|
119
|
-
groupSpace:
|
|
120
|
-
groupOverlapping: -
|
|
117
|
+
textFontSizeSM: a,
|
|
118
|
+
groupSpace: u,
|
|
119
|
+
groupOverlapping: -f,
|
|
121
120
|
groupBorderColor: x
|
|
122
121
|
};
|
|
123
122
|
}, U = se("Avatar", (e) => {
|
|
124
123
|
const {
|
|
125
124
|
colorTextLightSolid: r,
|
|
126
|
-
colorTextPlaceholder:
|
|
125
|
+
colorTextPlaceholder: n
|
|
127
126
|
} = e, t = ae(e, {
|
|
128
|
-
avatarBg:
|
|
127
|
+
avatarBg: n,
|
|
129
128
|
avatarColor: r
|
|
130
129
|
});
|
|
131
|
-
return [
|
|
130
|
+
return [fe(t), Se(t)];
|
|
132
131
|
}, he);
|
|
133
132
|
var ye = function(e, r) {
|
|
134
|
-
var
|
|
135
|
-
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && r.indexOf(t) < 0 && (
|
|
136
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var
|
|
137
|
-
r.indexOf(t[
|
|
138
|
-
return
|
|
133
|
+
var n = {};
|
|
134
|
+
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && r.indexOf(t) < 0 && (n[t] = e[t]);
|
|
135
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var a = 0, t = Object.getOwnPropertySymbols(e); a < t.length; a++)
|
|
136
|
+
r.indexOf(t[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[a]) && (n[t[a]] = e[t[a]]);
|
|
137
|
+
return n;
|
|
139
138
|
};
|
|
140
139
|
const xe = (e, r) => {
|
|
141
|
-
const [
|
|
142
|
-
getPrefixCls:
|
|
143
|
-
avatar:
|
|
144
|
-
} =
|
|
145
|
-
if (!
|
|
140
|
+
const [n, t] = o.useState(1), [a, z] = o.useState(!1), [h, y] = o.useState(!0), f = o.useRef(null), u = o.useRef(null), x = le(r, f), {
|
|
141
|
+
getPrefixCls: w,
|
|
142
|
+
avatar: v
|
|
143
|
+
} = o.useContext(D), m = o.useContext(B), O = () => {
|
|
144
|
+
if (!u.current || !f.current)
|
|
146
145
|
return;
|
|
147
|
-
const
|
|
148
|
-
if (
|
|
146
|
+
const i = u.current.offsetWidth, l = f.current.offsetWidth;
|
|
147
|
+
if (i !== 0 && l !== 0) {
|
|
149
148
|
const {
|
|
150
149
|
gap: S = 4
|
|
151
150
|
} = e;
|
|
152
|
-
S * 2 < l && t(l - S * 2 <
|
|
151
|
+
S * 2 < l && t(l - S * 2 < i ? (l - S * 2) / i : 1);
|
|
153
152
|
}
|
|
154
153
|
};
|
|
155
|
-
|
|
154
|
+
o.useEffect(() => {
|
|
156
155
|
z(!0);
|
|
157
|
-
}, []),
|
|
156
|
+
}, []), o.useEffect(() => {
|
|
158
157
|
y(!0), t(1);
|
|
159
|
-
}, [e.src]),
|
|
160
|
-
const
|
|
158
|
+
}, [e.src]), o.useEffect(O, [e.gap]);
|
|
159
|
+
const k = () => {
|
|
161
160
|
const {
|
|
162
|
-
onError:
|
|
161
|
+
onError: i
|
|
163
162
|
} = e;
|
|
164
|
-
(
|
|
163
|
+
(i == null ? void 0 : i()) !== !1 && y(!1);
|
|
165
164
|
}, {
|
|
166
|
-
prefixCls:
|
|
165
|
+
prefixCls: A,
|
|
167
166
|
shape: E,
|
|
168
167
|
size: s,
|
|
169
|
-
src:
|
|
168
|
+
src: p,
|
|
170
169
|
srcSet: P,
|
|
171
|
-
icon:
|
|
172
|
-
className:
|
|
173
|
-
rootClassName:
|
|
174
|
-
alt:
|
|
175
|
-
draggable:
|
|
170
|
+
icon: g,
|
|
171
|
+
className: G,
|
|
172
|
+
rootClassName: V,
|
|
173
|
+
alt: L,
|
|
174
|
+
draggable: I,
|
|
176
175
|
children: C,
|
|
177
|
-
crossOrigin:
|
|
178
|
-
} = e, b = ye(e, ["prefixCls", "shape", "size", "src", "srcSet", "icon", "className", "rootClassName", "alt", "draggable", "children", "crossOrigin"]),
|
|
176
|
+
crossOrigin: N
|
|
177
|
+
} = e, b = ye(e, ["prefixCls", "shape", "size", "src", "srcSet", "icon", "className", "rootClassName", "alt", "draggable", "children", "crossOrigin"]), c = pe((i) => {
|
|
179
178
|
var l, S;
|
|
180
|
-
return (S = (l = s ?? (
|
|
181
|
-
}),
|
|
182
|
-
if (typeof
|
|
179
|
+
return (S = (l = s ?? (m == null ? void 0 : m.size)) !== null && l !== void 0 ? l : i) !== null && S !== void 0 ? S : "default";
|
|
180
|
+
}), $ = Object.keys(typeof c == "object" ? c || {} : {}).some((i) => ["xs", "sm", "md", "lg", "xl", "xxl"].includes(i)), j = de($), _ = o.useMemo(() => {
|
|
181
|
+
if (typeof c != "object")
|
|
183
182
|
return {};
|
|
184
|
-
const
|
|
183
|
+
const i = me.find((S) => j[S]), l = c[i];
|
|
185
184
|
return l ? {
|
|
186
185
|
width: l,
|
|
187
186
|
height: l,
|
|
188
|
-
fontSize: l && (
|
|
187
|
+
fontSize: l && (g || C) ? l / 2 : 18
|
|
189
188
|
} : {};
|
|
190
|
-
}, [
|
|
189
|
+
}, [j, c]);
|
|
191
190
|
if (process.env.NODE_ENV !== "production") {
|
|
192
|
-
const
|
|
193
|
-
process.env.NODE_ENV !== "production" &&
|
|
191
|
+
const i = X("Avatar");
|
|
192
|
+
process.env.NODE_ENV !== "production" && i(!(typeof g == "string" && g.length > 2), "breaking", `\`icon\` is using ReactNode instead of string naming in v4. Please check \`${g}\` at https://ant.design/components/icon`);
|
|
194
193
|
}
|
|
195
|
-
const d =
|
|
196
|
-
[`${d}-lg`]:
|
|
197
|
-
[`${d}-sm`]:
|
|
198
|
-
}), W = /* @__PURE__ */
|
|
199
|
-
[`${d}-image`]: W ||
|
|
200
|
-
[`${d}-icon`]: !!
|
|
201
|
-
}, Y,
|
|
202
|
-
width:
|
|
203
|
-
height:
|
|
204
|
-
fontSize:
|
|
194
|
+
const d = w("avatar", A), T = q(d), [K, Q, Y] = U(d, T), Z = M({
|
|
195
|
+
[`${d}-lg`]: c === "large",
|
|
196
|
+
[`${d}-sm`]: c === "small"
|
|
197
|
+
}), W = /* @__PURE__ */ o.isValidElement(p), ee = E || (m == null ? void 0 : m.shape) || "circle", te = M(d, Z, v == null ? void 0 : v.className, `${d}-${ee}`, {
|
|
198
|
+
[`${d}-image`]: W || p && h,
|
|
199
|
+
[`${d}-icon`]: !!g
|
|
200
|
+
}, Y, T, G, V, Q), oe = typeof c == "number" ? {
|
|
201
|
+
width: c,
|
|
202
|
+
height: c,
|
|
203
|
+
fontSize: g ? c / 2 : 18
|
|
205
204
|
} : {};
|
|
206
|
-
let
|
|
207
|
-
if (typeof
|
|
208
|
-
|
|
209
|
-
src:
|
|
210
|
-
draggable:
|
|
205
|
+
let R;
|
|
206
|
+
if (typeof p == "string" && h)
|
|
207
|
+
R = /* @__PURE__ */ o.createElement("img", {
|
|
208
|
+
src: p,
|
|
209
|
+
draggable: I,
|
|
211
210
|
srcSet: P,
|
|
212
|
-
onError:
|
|
213
|
-
alt:
|
|
214
|
-
crossOrigin:
|
|
211
|
+
onError: k,
|
|
212
|
+
alt: L,
|
|
213
|
+
crossOrigin: N
|
|
215
214
|
});
|
|
216
215
|
else if (W)
|
|
217
|
-
|
|
218
|
-
else if (
|
|
219
|
-
|
|
220
|
-
else if (
|
|
221
|
-
const
|
|
222
|
-
msTransform:
|
|
223
|
-
WebkitTransform:
|
|
224
|
-
transform:
|
|
216
|
+
R = p;
|
|
217
|
+
else if (g)
|
|
218
|
+
R = g;
|
|
219
|
+
else if (a || n !== 1) {
|
|
220
|
+
const i = `scale(${n})`, l = {
|
|
221
|
+
msTransform: i,
|
|
222
|
+
WebkitTransform: i,
|
|
223
|
+
transform: i
|
|
225
224
|
};
|
|
226
|
-
|
|
225
|
+
R = /* @__PURE__ */ o.createElement(ne, {
|
|
227
226
|
onResize: O
|
|
228
|
-
}, /* @__PURE__ */
|
|
227
|
+
}, /* @__PURE__ */ o.createElement("span", {
|
|
229
228
|
className: `${d}-string`,
|
|
230
|
-
ref:
|
|
229
|
+
ref: u,
|
|
231
230
|
style: Object.assign({}, l)
|
|
232
231
|
}, C));
|
|
233
232
|
} else
|
|
234
|
-
|
|
233
|
+
R = /* @__PURE__ */ o.createElement("span", {
|
|
235
234
|
className: `${d}-string`,
|
|
236
235
|
style: {
|
|
237
236
|
opacity: 0
|
|
238
237
|
},
|
|
239
|
-
ref:
|
|
238
|
+
ref: u
|
|
240
239
|
}, C);
|
|
241
|
-
return delete b.onError, delete b.gap, K(/* @__PURE__ */
|
|
242
|
-
style: Object.assign(Object.assign(Object.assign(Object.assign({},
|
|
240
|
+
return delete b.onError, delete b.gap, K(/* @__PURE__ */ o.createElement("span", Object.assign({}, b, {
|
|
241
|
+
style: Object.assign(Object.assign(Object.assign(Object.assign({}, oe), _), v == null ? void 0 : v.style), b.style),
|
|
243
242
|
className: te,
|
|
244
243
|
ref: x
|
|
245
|
-
}),
|
|
246
|
-
}, F = /* @__PURE__ */
|
|
244
|
+
}), R));
|
|
245
|
+
}, F = /* @__PURE__ */ o.forwardRef(xe);
|
|
247
246
|
process.env.NODE_ENV !== "production" && (F.displayName = "Avatar");
|
|
248
247
|
const H = (e) => {
|
|
249
248
|
const {
|
|
250
249
|
size: r,
|
|
251
|
-
shape:
|
|
252
|
-
} =
|
|
250
|
+
shape: n
|
|
251
|
+
} = o.useContext(B), t = o.useMemo(() => ({
|
|
253
252
|
size: e.size || r,
|
|
254
|
-
shape: e.shape ||
|
|
255
|
-
}), [e.size, e.shape, r,
|
|
256
|
-
return /* @__PURE__ */
|
|
253
|
+
shape: e.shape || n
|
|
254
|
+
}), [e.size, e.shape, r, n]);
|
|
255
|
+
return /* @__PURE__ */ o.createElement(B.Provider, {
|
|
257
256
|
value: t
|
|
258
257
|
}, e.children);
|
|
259
258
|
}, Ce = (e) => {
|
|
260
|
-
var r,
|
|
259
|
+
var r, n, t, a;
|
|
261
260
|
const {
|
|
262
261
|
getPrefixCls: z,
|
|
263
262
|
direction: h
|
|
264
|
-
} =
|
|
263
|
+
} = o.useContext(D), {
|
|
265
264
|
prefixCls: y,
|
|
266
|
-
className:
|
|
267
|
-
rootClassName:
|
|
265
|
+
className: f,
|
|
266
|
+
rootClassName: u,
|
|
268
267
|
style: x,
|
|
269
|
-
maxCount:
|
|
270
|
-
maxStyle:
|
|
271
|
-
size:
|
|
268
|
+
maxCount: w,
|
|
269
|
+
maxStyle: v,
|
|
270
|
+
size: m,
|
|
272
271
|
shape: O,
|
|
273
|
-
maxPopoverPlacement:
|
|
274
|
-
maxPopoverTrigger:
|
|
272
|
+
maxPopoverPlacement: k,
|
|
273
|
+
maxPopoverTrigger: A,
|
|
275
274
|
children: E,
|
|
276
275
|
max: s
|
|
277
276
|
} = e;
|
|
278
277
|
if (process.env.NODE_ENV !== "production") {
|
|
279
|
-
const
|
|
280
|
-
|
|
278
|
+
const c = X("Avatar.Group");
|
|
279
|
+
[["maxCount", "max={{ count: number }}"], ["maxStyle", "max={{ style: CSSProperties }}"], ["maxPopoverPlacement", "max={{ popover: PopoverProps }}"], ["maxPopoverTrigger", "max={{ popover: PopoverProps }}"]].forEach(($) => {
|
|
280
|
+
let [j, _] = $;
|
|
281
|
+
c.deprecated(!(j in e), j, _);
|
|
282
|
+
});
|
|
281
283
|
}
|
|
282
|
-
const
|
|
284
|
+
const p = z("avatar", y), P = `${p}-group`, g = q(p), [G, V, L] = U(p, g), I = M(P, {
|
|
283
285
|
[`${P}-rtl`]: h === "rtl"
|
|
284
|
-
},
|
|
286
|
+
}, L, g, f, u, V), C = ge(E).map((c, $) => ue(c, {
|
|
285
287
|
// eslint-disable-next-line react/no-array-index-key
|
|
286
|
-
key: `avatar-key-${
|
|
287
|
-
})),
|
|
288
|
-
if (
|
|
289
|
-
const
|
|
290
|
-
content:
|
|
288
|
+
key: `avatar-key-${$}`
|
|
289
|
+
})), N = (s == null ? void 0 : s.count) || w, b = C.length;
|
|
290
|
+
if (N && N < b) {
|
|
291
|
+
const c = C.slice(0, N), $ = C.slice(N, b), j = (s == null ? void 0 : s.style) || v, _ = ((r = s == null ? void 0 : s.popover) === null || r === void 0 ? void 0 : r.trigger) || A || "hover", d = ((n = s == null ? void 0 : s.popover) === null || n === void 0 ? void 0 : n.placement) || k || "top", T = Object.assign(Object.assign({
|
|
292
|
+
content: $
|
|
291
293
|
}, s == null ? void 0 : s.popover), {
|
|
292
294
|
classNames: {
|
|
293
|
-
root:
|
|
295
|
+
root: M(`${P}-popover`, (a = (t = s == null ? void 0 : s.popover) === null || t === void 0 ? void 0 : t.classNames) === null || a === void 0 ? void 0 : a.root)
|
|
294
296
|
},
|
|
295
297
|
placement: d,
|
|
296
|
-
trigger:
|
|
298
|
+
trigger: _
|
|
297
299
|
});
|
|
298
|
-
return
|
|
300
|
+
return c.push(/* @__PURE__ */ o.createElement(ve, Object.assign({
|
|
299
301
|
key: "avatar-popover-key",
|
|
300
302
|
destroyTooltipOnHide: !0
|
|
301
|
-
},
|
|
302
|
-
style:
|
|
303
|
-
}, `+${b -
|
|
303
|
+
}, T), /* @__PURE__ */ o.createElement(F, {
|
|
304
|
+
style: j
|
|
305
|
+
}, `+${b - N}`))), G(/* @__PURE__ */ o.createElement(H, {
|
|
304
306
|
shape: O,
|
|
305
|
-
size:
|
|
306
|
-
}, /* @__PURE__ */
|
|
307
|
-
className:
|
|
307
|
+
size: m
|
|
308
|
+
}, /* @__PURE__ */ o.createElement("div", {
|
|
309
|
+
className: I,
|
|
308
310
|
style: x
|
|
309
|
-
},
|
|
311
|
+
}, c)));
|
|
310
312
|
}
|
|
311
|
-
return
|
|
313
|
+
return G(/* @__PURE__ */ o.createElement(H, {
|
|
312
314
|
shape: O,
|
|
313
|
-
size:
|
|
314
|
-
}, /* @__PURE__ */
|
|
315
|
-
className:
|
|
315
|
+
size: m
|
|
316
|
+
}, /* @__PURE__ */ o.createElement("div", {
|
|
317
|
+
className: I,
|
|
316
318
|
style: x
|
|
317
319
|
}, C)));
|
|
318
320
|
}, J = F;
|
|
319
321
|
J.Group = Ce;
|
|
320
|
-
const be = ({ colors: e, borderRadius: r, sizing:
|
|
321
|
-
${({ theme: e, type: r, state:
|
|
322
|
+
const be = ({ colors: e, borderRadius: r, sizing: n }, t = "primary", a = "active") => "", _e = re(J)`
|
|
323
|
+
${({ theme: e, type: r, state: n }) => be(e, r, n)}
|
|
322
324
|
`;
|
|
323
325
|
export {
|
|
324
|
-
|
|
326
|
+
_e as Avatar,
|
|
325
327
|
be as getGenesisClass
|
|
326
328
|
};
|
|
@@ -3,33 +3,34 @@ import { Badge as e } from "./styles.js";
|
|
|
3
3
|
import "../Avatar/styles.js";
|
|
4
4
|
import "../Breadcrumb/styles.js";
|
|
5
5
|
import "../../providers/BreakpointThemeProvider.js";
|
|
6
|
-
import { u as a, a as d } from "../../Typography-
|
|
6
|
+
import { u as a, a as d } from "../../Typography-B2J8CPnt.js";
|
|
7
7
|
import "../Button/styles.js";
|
|
8
8
|
import "../Card/styles.js";
|
|
9
9
|
import "../Checkbox/styles.js";
|
|
10
|
+
import "../DateRangePicker/DateRangePicker.js";
|
|
10
11
|
import "react";
|
|
11
12
|
import "../ErrorBoundaryFallback/styles.js";
|
|
12
|
-
import "
|
|
13
|
+
import "../../styles-XuoEGUZZ.js";
|
|
13
14
|
import "../Layout/Content/styles.js";
|
|
14
15
|
import "../Message/styles.js";
|
|
15
16
|
import "../Notification/NotificationBadge/styles.js";
|
|
16
17
|
import { getBadgeStateIcon as s } from "../../utils/icon-util.js";
|
|
17
18
|
import "../Notification/styles.js";
|
|
18
|
-
import "../../styles-
|
|
19
|
+
import "../../styles-DNay6iFa.js";
|
|
19
20
|
import "../Progress/styles.js";
|
|
20
|
-
import "../../styles/global-styles.js";
|
|
21
21
|
import "../Row/styles.js";
|
|
22
|
+
import "../../styles/global-styles.js";
|
|
22
23
|
import "../Row/RowLabelValue/styles.js";
|
|
23
24
|
import "../Row/RowActions/styles.js";
|
|
24
25
|
import "../SegmentedControls/styles.js";
|
|
25
26
|
import "../Select/styles.js";
|
|
26
27
|
import "../Switch/styles.js";
|
|
27
|
-
import "../../styles-
|
|
28
|
+
import "../../styles-Wpm1RiGr.js";
|
|
28
29
|
import "../Tabs/styles.js";
|
|
29
30
|
import "../Tile/styles.js";
|
|
30
31
|
import "../Toast/styles.js";
|
|
31
32
|
import "../Tooltip/styles.js";
|
|
32
|
-
const n = !1,
|
|
33
|
+
const n = !1, P = ({ label: r, state: o = "info", isDisabled: t, ...p }) => {
|
|
33
34
|
const { theme: i } = a();
|
|
34
35
|
return r ? /* @__PURE__ */ m(
|
|
35
36
|
e,
|
|
@@ -66,5 +67,5 @@ const n = !1, O = ({ label: r, state: o = "info", isDisabled: t, ...p }) => {
|
|
|
66
67
|
);
|
|
67
68
|
};
|
|
68
69
|
export {
|
|
69
|
-
|
|
70
|
+
P as default
|
|
70
71
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as n } from "../../styled-components.browser.esm-
|
|
1
|
+
import { d as n } from "../../styled-components.browser.esm-C47QHsU4.js";
|
|
2
2
|
const a = (o, r) => r === "hollow" ? o.colors.inputs.surface.border : o.colors.status[r].surface, t = (o, r, d, s) => `
|
|
3
3
|
display: flex;
|
|
4
4
|
justify-content: center;
|