@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,7 +1,7 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { BreadcrumbWrapper as s, Breadcrumb as i } from "./styles.js";
|
|
3
3
|
import "../../providers/BreakpointThemeProvider.js";
|
|
4
|
-
import { u as m } from "../../Typography-
|
|
4
|
+
import { u as m } from "../../Typography-B2J8CPnt.js";
|
|
5
5
|
const c = ({ items: e, isDisabled: a = !1 }) => {
|
|
6
6
|
const { breakpoint: o } = m();
|
|
7
7
|
return /* @__PURE__ */ r(s, { $isDisabled: a, children: /* @__PURE__ */ r(i, { items: e, breakpoint: o, role: "navigation" }) });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { s,
|
|
2
|
+
import { a as s, s as c } from "../../../setup-aZdxWCJq.js";
|
|
3
3
|
import m from "../Breadcrumb.js";
|
|
4
4
|
const n = [
|
|
5
5
|
{ title: "Home", href: "/" },
|
|
@@ -14,10 +14,10 @@ describe("<Breadcrumb />", () => {
|
|
|
14
14
|
isDisabled: !1
|
|
15
15
|
};
|
|
16
16
|
});
|
|
17
|
-
const r = () =>
|
|
17
|
+
const r = () => s(/* @__PURE__ */ o(m, { ...e }));
|
|
18
18
|
it("should render the Breadcrumb component", () => {
|
|
19
19
|
r();
|
|
20
|
-
const t =
|
|
20
|
+
const t = c.getByRole("navigation");
|
|
21
21
|
expect(t).toBeInTheDocument();
|
|
22
22
|
});
|
|
23
23
|
});
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { d as L } from "../../styled-components.browser.esm-
|
|
1
|
+
import { d as L } from "../../styled-components.browser.esm-C47QHsU4.js";
|
|
2
2
|
import * as o from "react";
|
|
3
3
|
import { useMemo as ne } from "react";
|
|
4
|
-
import {
|
|
5
|
-
import { t as T } from "../../toArray-
|
|
6
|
-
import { p as U } from "../../pickAttrs-
|
|
4
|
+
import { c as D } from "../../presets-CSXMiWyc.js";
|
|
5
|
+
import { t as T } from "../../toArray-D5kvYi_U.js";
|
|
6
|
+
import { p as U } from "../../pickAttrs-yFE4_vFd.js";
|
|
7
7
|
import { c as ae } from "../../reactNode-sKPeiqPL.js";
|
|
8
|
-
import {
|
|
9
|
-
import { R as
|
|
10
|
-
import { D as
|
|
11
|
-
import "../../
|
|
8
|
+
import { d as F } from "../../index-DCopujxC.js";
|
|
9
|
+
import { R as oe } from "../../DownOutlined-Bv7ua5i8.js";
|
|
10
|
+
import { D as ie } from "../../dropdown-BlRB2LxQ.js";
|
|
11
|
+
import { C as X, g as se, m as le, j as ce, f as H, o as me } from "../../CSSMotionList-DB0khM6h.js";
|
|
12
12
|
const x = (e) => {
|
|
13
13
|
let {
|
|
14
14
|
children: t
|
|
@@ -22,7 +22,7 @@ const x = (e) => {
|
|
|
22
22
|
}, t === "" ? t : t || "/");
|
|
23
23
|
};
|
|
24
24
|
x.__ANT_BREADCRUMB_SEPARATOR = !0;
|
|
25
|
-
var
|
|
25
|
+
var de = function(e, t) {
|
|
26
26
|
var n = {};
|
|
27
27
|
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
28
28
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var a = 0, r = Object.getOwnPropertySymbols(e); a < r.length; a++)
|
|
@@ -41,7 +41,7 @@ function W(e, t, n, r) {
|
|
|
41
41
|
const {
|
|
42
42
|
className: a,
|
|
43
43
|
onClick: i
|
|
44
|
-
} = t, s =
|
|
44
|
+
} = t, s = de(t, ["className", "onClick"]), c = Object.assign(Object.assign({}, U(s, {
|
|
45
45
|
data: !0,
|
|
46
46
|
aria: !0
|
|
47
47
|
})), {
|
|
@@ -82,34 +82,34 @@ const q = (e) => {
|
|
|
82
82
|
process.env.NODE_ENV !== "production" && F("Breadcrumb.Item").deprecated(!("overlay" in e), "overlay", "menu");
|
|
83
83
|
const O = ((g) => {
|
|
84
84
|
if (a || i) {
|
|
85
|
-
const
|
|
85
|
+
const v = Object.assign({}, s);
|
|
86
86
|
if (a) {
|
|
87
87
|
const E = a || {}, {
|
|
88
|
-
items:
|
|
88
|
+
items: C
|
|
89
89
|
} = E, u = A(E, ["items"]);
|
|
90
|
-
|
|
91
|
-
items:
|
|
90
|
+
v.menu = Object.assign(Object.assign({}, u), {
|
|
91
|
+
items: C == null ? void 0 : C.map((y, b) => {
|
|
92
92
|
var {
|
|
93
|
-
key:
|
|
93
|
+
key: h,
|
|
94
94
|
title: P,
|
|
95
95
|
label: S,
|
|
96
|
-
path:
|
|
96
|
+
path: d
|
|
97
97
|
} = y, I = A(y, ["key", "title", "label", "path"]);
|
|
98
98
|
let j = S ?? P;
|
|
99
|
-
return
|
|
100
|
-
href: `${c}${
|
|
99
|
+
return d && (j = /* @__PURE__ */ o.createElement("a", {
|
|
100
|
+
href: `${c}${d}`
|
|
101
101
|
}, j)), Object.assign(Object.assign({}, I), {
|
|
102
|
-
key:
|
|
102
|
+
key: h ?? b,
|
|
103
103
|
label: j
|
|
104
104
|
});
|
|
105
105
|
})
|
|
106
106
|
});
|
|
107
|
-
} else i && (
|
|
108
|
-
return /* @__PURE__ */ o.createElement(
|
|
107
|
+
} else i && (v.overlay = i);
|
|
108
|
+
return /* @__PURE__ */ o.createElement(ie, Object.assign({
|
|
109
109
|
placement: "bottom"
|
|
110
|
-
},
|
|
110
|
+
}, v), /* @__PURE__ */ o.createElement("span", {
|
|
111
111
|
className: `${t}-overlay-link`
|
|
112
|
-
}, g, /* @__PURE__ */ o.createElement(
|
|
112
|
+
}, g, /* @__PURE__ */ o.createElement(oe, null)));
|
|
113
113
|
}
|
|
114
114
|
return g;
|
|
115
115
|
})(r);
|
|
@@ -134,7 +134,7 @@ const fe = (e) => {
|
|
|
134
134
|
calc: r
|
|
135
135
|
} = e;
|
|
136
136
|
return {
|
|
137
|
-
[t]: Object.assign(Object.assign({},
|
|
137
|
+
[t]: Object.assign(Object.assign({}, ce(e)), {
|
|
138
138
|
color: e.itemColor,
|
|
139
139
|
fontSize: e.fontSize,
|
|
140
140
|
[n]: {
|
|
@@ -159,7 +159,7 @@ const fe = (e) => {
|
|
|
159
159
|
color: e.linkHoverColor,
|
|
160
160
|
backgroundColor: e.colorBgTextHover
|
|
161
161
|
}
|
|
162
|
-
},
|
|
162
|
+
}, me(e)),
|
|
163
163
|
"li:last-child": {
|
|
164
164
|
color: e.lastItemColor
|
|
165
165
|
},
|
|
@@ -212,8 +212,8 @@ const fe = (e) => {
|
|
|
212
212
|
linkHoverColor: e.colorText,
|
|
213
213
|
separatorColor: e.colorTextDescription,
|
|
214
214
|
separatorMargin: e.marginXS
|
|
215
|
-
}), ge =
|
|
216
|
-
const t =
|
|
215
|
+
}), ge = se("Breadcrumb", (e) => {
|
|
216
|
+
const t = le(e, {});
|
|
217
217
|
return fe(t);
|
|
218
218
|
}, be);
|
|
219
219
|
var V = function(e, t) {
|
|
@@ -244,14 +244,14 @@ function ye(e) {
|
|
|
244
244
|
function Oe(e, t) {
|
|
245
245
|
return ne(() => e || (t ? t.map(ye) : null), [e, t]);
|
|
246
246
|
}
|
|
247
|
-
var
|
|
247
|
+
var ve = function(e, t) {
|
|
248
248
|
var n = {};
|
|
249
249
|
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
250
250
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var a = 0, r = Object.getOwnPropertySymbols(e); a < r.length; a++)
|
|
251
251
|
t.indexOf(r[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[a]) && (n[r[a]] = e[r[a]]);
|
|
252
252
|
return n;
|
|
253
253
|
};
|
|
254
|
-
const
|
|
254
|
+
const Ce = (e, t) => {
|
|
255
255
|
if (t === void 0)
|
|
256
256
|
return t;
|
|
257
257
|
let n = (t || "").replace(/^\//, "");
|
|
@@ -270,50 +270,50 @@ const he = (e, t) => {
|
|
|
270
270
|
children: f,
|
|
271
271
|
itemRender: O,
|
|
272
272
|
params: g = {}
|
|
273
|
-
} = e,
|
|
273
|
+
} = e, v = ve(e, ["prefixCls", "separator", "style", "className", "rootClassName", "routes", "items", "children", "itemRender", "params"]), {
|
|
274
274
|
getPrefixCls: E,
|
|
275
|
-
direction:
|
|
275
|
+
direction: C,
|
|
276
276
|
breadcrumb: u
|
|
277
277
|
} = o.useContext(X);
|
|
278
278
|
let y;
|
|
279
|
-
const b = E("breadcrumb", t), [
|
|
279
|
+
const b = E("breadcrumb", t), [h, P, S] = ge(b), d = Oe(c, s);
|
|
280
280
|
if (process.env.NODE_ENV !== "production") {
|
|
281
|
-
const
|
|
282
|
-
if (
|
|
281
|
+
const m = F("Breadcrumb");
|
|
282
|
+
if (m.deprecated(!s, "routes", "items"), !d || d.length === 0) {
|
|
283
283
|
const p = T(f);
|
|
284
|
-
|
|
285
|
-
l && process.env.NODE_ENV !== "production" &&
|
|
284
|
+
m.deprecated(p.length === 0, "Breadcrumb.Item and Breadcrumb.Separator", "items"), p.forEach((l) => {
|
|
285
|
+
l && process.env.NODE_ENV !== "production" && m(l.type && (l.type.__ANT_BREADCRUMB_ITEM === !0 || l.type.__ANT_BREADCRUMB_SEPARATOR === !0), "usage", "Only accepts Breadcrumb.Item and Breadcrumb.Separator as it's children");
|
|
286
286
|
});
|
|
287
287
|
}
|
|
288
288
|
}
|
|
289
289
|
const I = pe(b, O);
|
|
290
|
-
if (
|
|
291
|
-
const
|
|
292
|
-
y =
|
|
290
|
+
if (d && d.length > 0) {
|
|
291
|
+
const m = [], p = c || s;
|
|
292
|
+
y = d.map((l, N) => {
|
|
293
293
|
const {
|
|
294
294
|
path: J,
|
|
295
295
|
key: $,
|
|
296
296
|
type: Q,
|
|
297
|
-
menu:
|
|
298
|
-
overlay:
|
|
297
|
+
menu: z,
|
|
298
|
+
overlay: M,
|
|
299
299
|
onClick: Y,
|
|
300
300
|
className: Z,
|
|
301
301
|
separator: ee,
|
|
302
302
|
dropdownProps: re
|
|
303
|
-
} = l, w =
|
|
304
|
-
w !== void 0 &&
|
|
305
|
-
const
|
|
303
|
+
} = l, w = Ce(g, J);
|
|
304
|
+
w !== void 0 && m.push(w);
|
|
305
|
+
const k = $ ?? N;
|
|
306
306
|
if (Q === "separator")
|
|
307
307
|
return /* @__PURE__ */ o.createElement(x, {
|
|
308
|
-
key:
|
|
308
|
+
key: k
|
|
309
309
|
}, ee);
|
|
310
|
-
const B = {}, te = N ===
|
|
311
|
-
|
|
310
|
+
const B = {}, te = N === d.length - 1;
|
|
311
|
+
z ? B.menu = z : M && (B.overlay = M);
|
|
312
312
|
let {
|
|
313
313
|
href: R
|
|
314
314
|
} = l;
|
|
315
|
-
return
|
|
316
|
-
key:
|
|
315
|
+
return m.length && w !== void 0 && (R = `#/${m.join("/")}`), /* @__PURE__ */ o.createElement(q, Object.assign({
|
|
316
|
+
key: k
|
|
317
317
|
}, B, U(l, {
|
|
318
318
|
data: !0,
|
|
319
319
|
aria: !0
|
|
@@ -324,14 +324,14 @@ const he = (e, t) => {
|
|
|
324
324
|
separator: te ? "" : n,
|
|
325
325
|
onClick: Y,
|
|
326
326
|
prefixCls: b
|
|
327
|
-
}), I(l, g, p,
|
|
327
|
+
}), I(l, g, p, m, R));
|
|
328
328
|
});
|
|
329
329
|
} else if (f) {
|
|
330
|
-
const
|
|
330
|
+
const m = T(f).length;
|
|
331
331
|
y = T(f).map((p, l) => {
|
|
332
332
|
if (!p)
|
|
333
333
|
return p;
|
|
334
|
-
const N = l ===
|
|
334
|
+
const N = l === m - 1;
|
|
335
335
|
return ae(p, {
|
|
336
336
|
separator: N ? "" : n,
|
|
337
337
|
// eslint-disable-next-line react/no-array-index-key
|
|
@@ -340,17 +340,17 @@ const he = (e, t) => {
|
|
|
340
340
|
});
|
|
341
341
|
}
|
|
342
342
|
const j = D(b, u == null ? void 0 : u.className, {
|
|
343
|
-
[`${b}-rtl`]:
|
|
343
|
+
[`${b}-rtl`]: C === "rtl"
|
|
344
344
|
}, a, i, P, S), G = Object.assign(Object.assign({}, u == null ? void 0 : u.style), r);
|
|
345
|
-
return
|
|
345
|
+
return h(/* @__PURE__ */ o.createElement("nav", Object.assign({
|
|
346
346
|
className: j,
|
|
347
347
|
style: G
|
|
348
|
-
},
|
|
348
|
+
}, v), /* @__PURE__ */ o.createElement("ol", null, y)));
|
|
349
349
|
};
|
|
350
350
|
_.Item = K;
|
|
351
351
|
_.Separator = x;
|
|
352
352
|
process.env.NODE_ENV !== "production" && (_.displayName = "Breadcrumb");
|
|
353
|
-
const
|
|
353
|
+
const he = ({ colors: e, typography: t }, n = "wide") => `
|
|
354
354
|
&.ant-breadcrumb {
|
|
355
355
|
font-size: ${t[n].body1.fontSize};
|
|
356
356
|
|
|
@@ -405,11 +405,11 @@ const ve = ({ colors: e, typography: t }, n = "wide") => `
|
|
|
405
405
|
`}
|
|
406
406
|
opacity: ${({ $isDisabled: e }) => e ? 0.5 : 1};
|
|
407
407
|
`, Re = L(_)`
|
|
408
|
-
${({ theme: e, breakpoint: t }) => e &&
|
|
408
|
+
${({ theme: e, breakpoint: t }) => e && he(e, t)}
|
|
409
409
|
`;
|
|
410
410
|
export {
|
|
411
411
|
Re as Breadcrumb,
|
|
412
412
|
Be as BreadcrumbWrapper,
|
|
413
413
|
Re as default,
|
|
414
|
-
|
|
414
|
+
he as getGenesisClass
|
|
415
415
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { default as React, MouseEvent } from 'react';
|
|
2
2
|
import { ButtonProps as AntButtonProps } from 'antd/es/button';
|
|
3
3
|
import { STATE } from '../../constants';
|
|
4
|
-
|
|
5
4
|
type ButtonThemeType = "primary" | "secondary" | "tertiary" | "utility";
|
|
6
5
|
export interface ButtonProps extends Omit<AntButtonProps, "type"> {
|
|
7
6
|
onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
2
|
+
import { a as r, s as n } from "../../../setup-aZdxWCJq.js";
|
|
3
|
+
import i from "../Button.js";
|
|
4
|
+
import { v as m } from "../../../vi.B5EKKJdE-BsDIxc7v.js";
|
|
4
5
|
describe("<Button />", () => {
|
|
5
6
|
let e;
|
|
6
7
|
beforeEach(() => {
|
|
7
8
|
e = {
|
|
8
|
-
onClick:
|
|
9
|
+
onClick: m.fn(),
|
|
9
10
|
themeType: "primary"
|
|
10
11
|
};
|
|
11
12
|
});
|
|
12
|
-
const t = () =>
|
|
13
|
+
const t = () => r(/* @__PURE__ */ o(i, { ...e, children: "Ship it!" }));
|
|
13
14
|
it("should render the button", () => {
|
|
14
15
|
t(), expect(n.getByText("Ship it!")).toBeInTheDocument();
|
|
15
16
|
});
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ButtonProps as AntButtonProps } from 'antd/es/button';
|
|
2
2
|
import { GenesisTheme } from '../../styles/theme/genesis-theme.types';
|
|
3
|
-
|
|
4
3
|
interface StyledButtonProps extends AntButtonProps {
|
|
5
4
|
theme?: GenesisTheme;
|
|
6
5
|
$themeType?: "primary" | "secondary" | "tertiary" | "utility";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as l } from "../../styled-components.browser.esm-
|
|
2
|
-
import { B as g } from "../../button-
|
|
1
|
+
import { d as l } from "../../styled-components.browser.esm-C47QHsU4.js";
|
|
2
|
+
import { B as g } from "../../button-CYVlK7G0.js";
|
|
3
3
|
const s = (o, d, n) => n === "small" ? `${o.utilityButton.padding.horPadding}px ${o.utilityButton.padding.verPadding}px` : d ? `${o.button.padding.verPadding}px` : `${o.button.padding.verPadding}px ${o.button.padding.horPadding}px`, c = ({ colors: o, sizing: d, borderRadius: n, components: a }, r, i, t, u, b) => `
|
|
4
4
|
&.ant-btn {
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as t } from "../../styled-components.browser.esm-
|
|
2
|
-
import { C as a } from "../../index-
|
|
1
|
+
import { d as t } from "../../styled-components.browser.esm-C47QHsU4.js";
|
|
2
|
+
import { C as a } from "../../index-RAH9f-qb.js";
|
|
3
3
|
const o = ({ colors: r, borderRadius: s, sizing: e }, i = "primary", d = "active") => `
|
|
4
4
|
.class-name-here {
|
|
5
5
|
}
|
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { StyledCheckbox as p } from "./styles.js";
|
|
3
3
|
import "../../providers/BreakpointThemeProvider.js";
|
|
4
|
-
import { u as
|
|
4
|
+
import { u as e, a as d } from "../../Typography-B2J8CPnt.js";
|
|
5
5
|
import { TYPE as a } from "../../constants/index.js";
|
|
6
6
|
import "../Avatar/styles.js";
|
|
7
7
|
import "../Badge/styles.js";
|
|
8
8
|
import "../Breadcrumb/styles.js";
|
|
9
9
|
import "../Button/styles.js";
|
|
10
10
|
import "../Card/styles.js";
|
|
11
|
+
import "../DateRangePicker/DateRangePicker.js";
|
|
11
12
|
import "react";
|
|
12
13
|
import "../ErrorBoundaryFallback/styles.js";
|
|
13
|
-
import "
|
|
14
|
+
import "../../styles-XuoEGUZZ.js";
|
|
14
15
|
import "../Layout/Content/styles.js";
|
|
15
16
|
import "../Message/styles.js";
|
|
16
17
|
import "../Notification/NotificationBadge/styles.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
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
return m ? /* @__PURE__ */ r(
|
|
33
|
+
const M = ({ state: o = "active", label: t, ...i }) => {
|
|
34
|
+
const { breakpoint: s } = e(), m = a.secondary;
|
|
35
|
+
return t ? /* @__PURE__ */ r(
|
|
36
36
|
p,
|
|
37
37
|
{
|
|
38
38
|
...i,
|
|
39
39
|
disabled: o === "disabled" || i.disabled,
|
|
40
|
-
children: /* @__PURE__ */ r(
|
|
40
|
+
children: /* @__PURE__ */ r(d, { variant: "label1", type: m, state: o, ...i, isText: !0, children: t })
|
|
41
41
|
}
|
|
42
42
|
) : /* @__PURE__ */ r(
|
|
43
43
|
p,
|
|
@@ -48,5 +48,5 @@ const K = ({ state: o = "active", label: m, ...i }) => {
|
|
|
48
48
|
);
|
|
49
49
|
};
|
|
50
50
|
export {
|
|
51
|
-
|
|
51
|
+
M as default
|
|
52
52
|
};
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { a as c, s as t } from "../../../setup-aZdxWCJq.js";
|
|
3
|
+
import s from "../Checkbox.js";
|
|
4
|
+
import { d as a, i as r, g as d } from "../../../vi.B5EKKJdE-BsDIxc7v.js";
|
|
4
5
|
a("Checkbox", () => {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const e =
|
|
8
|
-
|
|
9
|
-
}),
|
|
10
|
-
|
|
11
|
-
const e =
|
|
12
|
-
|
|
13
|
-
}),
|
|
14
|
-
|
|
15
|
-
const e =
|
|
16
|
-
|
|
6
|
+
r("renders checkbox component", () => {
|
|
7
|
+
c(/* @__PURE__ */ o(s, {}));
|
|
8
|
+
const e = t.getByRole("checkbox");
|
|
9
|
+
d(e).toBeInTheDocument();
|
|
10
|
+
}), r("renders with default checked state", () => {
|
|
11
|
+
c(/* @__PURE__ */ o(s, { defaultChecked: !0 }));
|
|
12
|
+
const e = t.getByRole("checkbox");
|
|
13
|
+
d(e).toBeChecked();
|
|
14
|
+
}), r("renders in disabled state", () => {
|
|
15
|
+
c(/* @__PURE__ */ o(s, { disabled: !0 }));
|
|
16
|
+
const e = t.getByRole("checkbox");
|
|
17
|
+
d(e).toBeDisabled();
|
|
17
18
|
});
|
|
18
19
|
});
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { CheckboxProps } from './Checkbox';
|
|
2
2
|
import { GenesisTheme } from '../../styles/theme/genesis-theme.types';
|
|
3
|
-
|
|
4
3
|
declare module 'styled-components' {
|
|
5
4
|
interface DefaultTheme extends GenesisTheme {
|
|
6
5
|
}
|
|
@@ -9,8 +8,8 @@ export declare const getGenesisClass: ({ colors, borderRadius }: {
|
|
|
9
8
|
colors: any;
|
|
10
9
|
borderRadius: any;
|
|
11
10
|
}, type?: string, state?: string) => string;
|
|
12
|
-
export declare const StyledCheckbox: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<Omit<import('antd').CheckboxProps & import('react').RefAttributes<import('
|
|
13
|
-
ref?: import('react').Ref<import('
|
|
14
|
-
}, CheckboxProps>> & string & Omit<import('react').ForwardRefExoticComponent<import('antd').CheckboxProps & import('react').RefAttributes<import('
|
|
11
|
+
export declare const StyledCheckbox: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<Omit<import('antd').CheckboxProps & import('react').RefAttributes<import('rc-checkbox').CheckboxRef>, "ref"> & {
|
|
12
|
+
ref?: import('react').Ref<import('rc-checkbox').CheckboxRef>;
|
|
13
|
+
}, CheckboxProps>> & string & Omit<import('react').ForwardRefExoticComponent<import('antd').CheckboxProps & import('react').RefAttributes<import('rc-checkbox').CheckboxRef>> & {
|
|
15
14
|
Group: <T = any>(props: import('antd/es/checkbox').CheckboxGroupProps<T> & React.RefAttributes<HTMLDivElement>) => React.ReactElement;
|
|
16
15
|
}, keyof import('react').Component<any, {}, any>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as n } from "../../styled-components.browser.esm-
|
|
2
|
-
import { C as a } from "../../index-
|
|
1
|
+
import { d as n } from "../../styled-components.browser.esm-C47QHsU4.js";
|
|
2
|
+
import { C as a } from "../../index-RtWhGOwR.js";
|
|
3
3
|
const b = ({ colors: o, borderRadius: c }, e = "primary", r = "active") => `
|
|
4
4
|
.ant-checkbox-inner {
|
|
5
5
|
background-color: #FFFFFF;
|