@mezo-org/mezo-clay 0.1.0-dev.3 → 0.1.0-dev.31
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 +38 -12
- package/dist/components/accordion/accordion.d.ts +4 -1
- package/dist/components/accordion/panel.d.ts +18 -1
- package/dist/components/accordion/shared-overrides.d.ts +4 -0
- package/dist/components/accordion/types.d.ts +6 -3
- package/dist/components/avatar/avatar.d.ts +22 -0
- package/dist/components/avatar/index.d.ts +1 -0
- package/dist/components/banner/banner.d.ts +19 -0
- package/dist/components/banner/index.d.ts +3 -0
- package/dist/components/banner/types.d.ts +12 -0
- package/dist/components/banner/utils.d.ts +292 -0
- package/dist/components/breadcrumbs/breadcrumbs.d.ts +7 -0
- package/dist/components/breadcrumbs/index.d.ts +2 -0
- package/dist/components/button/button.d.ts +4 -1
- package/dist/components/button/index.d.ts +1 -1
- package/dist/components/button/overrides.d.ts +3 -2
- package/dist/components/button/types.d.ts +6 -1
- package/dist/components/button-group/index.d.ts +1 -1
- package/dist/components/button-group/types.d.ts +2 -3
- package/dist/components/button-icon/button-icon.d.ts +4 -1
- package/dist/components/button-icon/index.d.ts +0 -1
- package/dist/components/callout-card/callout-card-subcomponents.d.ts +31 -0
- package/dist/components/callout-card/callout-card.d.ts +11 -0
- package/dist/components/callout-card/context.d.ts +9 -0
- package/dist/components/callout-card/index.d.ts +4 -0
- package/dist/components/callout-card/skeletons.d.ts +3 -0
- package/dist/components/callout-card/types.d.ts +1 -0
- package/dist/components/card/card-skeletons.d.ts +19 -0
- package/dist/components/card/card.d.ts +28 -0
- package/dist/components/card/context.d.ts +7 -0
- package/dist/components/card/index.d.ts +5 -0
- package/dist/components/card/product-card.d.ts +14 -0
- package/dist/components/card/types.d.ts +12 -0
- package/dist/components/checkbox/checkbox.d.ts +5 -0
- package/dist/components/checkbox/index.d.ts +1 -0
- package/dist/components/content-stepper/content-stepper.d.ts +44 -0
- package/dist/components/content-stepper/index.d.ts +2 -0
- package/dist/components/content-stepper/skeletons.d.ts +3 -0
- package/dist/components/content-stepper/styled-components.d.ts +21 -0
- package/dist/components/form-control/constants.d.ts +1 -1
- package/dist/components/form-control/form-control.d.ts +1 -1
- package/dist/components/form-control/overrides.d.ts +2 -1
- package/dist/components/form-control/types.d.ts +1 -0
- package/dist/components/icons/_docs/icon-gallery.d.ts +9 -0
- package/dist/components/icons/index.d.ts +2 -46
- package/dist/components/icons/line/arrow-left/index.d.ts +9 -0
- package/dist/components/icons/{info-circle → line/arrow-right}/index.d.ts +2 -2
- package/dist/components/icons/{user → line/bell}/index.d.ts +2 -2
- package/dist/components/icons/line/check/index.d.ts +9 -0
- package/dist/components/icons/line/check-done/index.d.ts +9 -0
- package/dist/components/icons/line/circle-cut/index.d.ts +9 -0
- package/dist/components/icons/line/coins-stacked/index.d.ts +8 -0
- package/dist/components/icons/line/compass/index.d.ts +8 -0
- package/dist/components/icons/line/copy/index.d.ts +8 -0
- package/dist/components/icons/line/cryptocurrency/index.d.ts +8 -0
- package/dist/components/icons/line/dots/index.d.ts +8 -0
- package/dist/components/icons/line/dots-grid/index.d.ts +9 -0
- package/dist/components/icons/{menu → line/drop}/index.d.ts +2 -2
- package/dist/components/icons/line/email/index.d.ts +8 -0
- package/dist/components/icons/line/gas-fee/index.d.ts +9 -0
- package/dist/components/icons/line/handshake/index.d.ts +9 -0
- package/dist/components/icons/line/help-circle-line/index.d.ts +8 -0
- package/dist/components/icons/line/index.d.ts +43 -0
- package/dist/components/icons/line/link/index.d.ts +8 -0
- package/dist/components/icons/{trophy → line/log-out}/index.d.ts +1 -1
- package/dist/components/icons/line/percent/index.d.ts +8 -0
- package/dist/components/icons/line/pie-chart/index.d.ts +8 -0
- package/dist/components/icons/line/safe/index.d.ts +9 -0
- package/dist/components/icons/line/settings/index.d.ts +15 -0
- package/dist/components/icons/{star → line/star}/index.d.ts +0 -14
- package/dist/components/icons/line/switch-vertical/index.d.ts +8 -0
- package/dist/components/icons/line/tag/index.d.ts +8 -0
- package/dist/components/icons/line/trophy/index.d.ts +8 -0
- package/dist/components/icons/line/upload/index.d.ts +8 -0
- package/dist/components/icons/line/user/index.d.ts +8 -0
- package/dist/components/icons/solid/alert-triangle/index.d.ts +15 -0
- package/dist/components/icons/solid/arrow-circle-down/index.d.ts +9 -0
- package/dist/components/icons/solid/arrow-circle-up/index.d.ts +9 -0
- package/dist/components/icons/solid/bezier-curve/index.d.ts +9 -0
- package/dist/components/icons/solid/bitcoin-circle/index.d.ts +14 -0
- package/dist/components/icons/solid/check-circle/index.d.ts +12 -0
- package/dist/components/icons/solid/eth-circle/index.d.ts +14 -0
- package/dist/components/icons/solid/help-circle/index.d.ts +8 -0
- package/dist/components/icons/solid/index.d.ts +49 -0
- package/dist/components/icons/{mats-circle → solid/info-circle}/index.d.ts +2 -2
- package/dist/components/icons/solid/lock/index.d.ts +8 -0
- package/dist/components/icons/solid/mats/index.d.ts +9 -0
- package/dist/components/icons/solid/mats-circle/index.d.ts +15 -0
- package/dist/components/icons/solid/menu/index.d.ts +9 -0
- package/dist/components/icons/solid/mezo-circle/index.d.ts +14 -0
- package/dist/components/icons/solid/musd-circle/index.d.ts +28 -0
- package/dist/components/icons/solid/plus-square/index.d.ts +9 -0
- package/dist/components/icons/{settings → solid/settings}/index.d.ts +1 -1
- package/dist/components/icons/solid/shield/index.d.ts +8 -0
- package/dist/components/icons/solid/star/index.d.ts +15 -0
- package/dist/components/icons/solid/tbtc-circle/index.d.ts +14 -0
- package/dist/components/icons/solid/thusd-circle/index.d.ts +14 -0
- package/dist/components/icons/{check-circle → solid/trend-down}/index.d.ts +2 -2
- package/dist/components/icons/solid/trend-up/index.d.ts +9 -0
- package/dist/components/icons/solid/trophy/index.d.ts +8 -0
- package/dist/components/icons/solid/user/index.d.ts +8 -0
- package/dist/components/icons/solid/vbtc-circle/index.d.ts +14 -0
- package/dist/components/icons/utils.d.ts +1 -1
- package/dist/components/index.d.ts +40 -4
- package/dist/components/input/constants.d.ts +38 -0
- package/dist/components/input/index.d.ts +2 -2
- package/dist/components/input/input.d.ts +3 -3
- package/dist/components/input/overrides.d.ts +11 -1
- package/dist/components/input/types.d.ts +6 -4
- package/dist/components/input-group/index.d.ts +5 -0
- package/dist/components/link/index.d.ts +6 -0
- package/dist/components/list/list.d.ts +6 -2
- package/dist/components/menu/context.d.ts +7 -0
- package/dist/components/menu/index.d.ts +4 -0
- package/dist/components/menu/menu-items.d.ts +18 -0
- package/dist/components/menu/menu.d.ts +28 -0
- package/dist/components/menu/types.d.ts +1 -0
- package/dist/components/message-card/index.d.ts +1 -1
- package/dist/components/message-card/message-card.d.ts +2 -1
- package/dist/components/message-card/overrides.d.ts +4 -1
- package/dist/components/mobile-header/index.d.ts +1 -0
- package/dist/components/mobile-header/mobile-header.d.ts +15 -0
- package/dist/components/modal/index.d.ts +3 -0
- package/dist/components/modal/modal.d.ts +26 -0
- package/dist/components/page-control/index.d.ts +3 -0
- package/dist/components/page-control/page-control.d.ts +6 -0
- package/dist/components/pagination/index.d.ts +3 -0
- package/dist/components/pagination/pagination-without-dropdown.d.ts +3 -0
- package/dist/components/pagination/pagination.d.ts +3 -0
- package/dist/components/pagination/stateful-pagination-without-dropdown.d.ts +2 -0
- package/dist/components/pagination/types.d.ts +9 -0
- package/dist/components/phone-input/default-args.d.ts +27 -0
- package/dist/components/phone-input/index.d.ts +4 -0
- package/dist/components/phone-input/overrides.d.ts +9 -0
- package/dist/components/phone-input/phone-input.d.ts +7 -0
- package/dist/components/phone-input/stateful-phone-input.d.ts +6 -0
- package/dist/components/popover/index.d.ts +9 -0
- package/dist/components/popover/popover-body.d.ts +3 -0
- package/dist/components/popover/popover-footer.d.ts +3 -0
- package/dist/components/popover/popover-header.d.ts +20 -0
- package/dist/components/popover/popover.d.ts +3 -0
- package/dist/components/popover/stepper-popover.d.ts +14 -0
- package/dist/components/progress-bar/hooks.d.ts +1 -0
- package/dist/components/progress-bar/index.d.ts +2 -0
- package/dist/components/progress-bar/progress-bar.d.ts +6 -0
- package/dist/components/progress-steps/index.d.ts +7 -0
- package/dist/components/progress-steps/numbered-step-title.d.ts +15 -0
- package/dist/components/progress-steps/numbered-step.d.ts +22 -0
- package/dist/components/progress-steps/progress-steps.d.ts +5 -0
- package/dist/components/progress-steps/step.d.ts +6 -0
- package/dist/components/radio/index.d.ts +3 -0
- package/dist/components/radio/overrides.d.ts +17 -0
- package/dist/components/radio/radio.d.ts +5 -0
- package/dist/components/section-heading/index.d.ts +1 -0
- package/dist/components/section-heading/section-heading.d.ts +5 -0
- package/dist/components/segmented-control/index.d.ts +1 -0
- package/dist/components/segmented-control/segmented-control.d.ts +9 -0
- package/dist/components/select/index.d.ts +3 -0
- package/dist/components/select/overrides.d.ts +90 -0
- package/dist/components/select/select.d.ts +9 -0
- package/dist/components/side-navigation/index.d.ts +1 -1
- package/dist/components/side-navigation/overrides.d.ts +2 -1
- package/dist/components/side-navigation/side-navigation.d.ts +15 -3
- package/dist/components/skeleton/skeleton.d.ts +1 -1
- package/dist/components/slider/index.d.ts +1 -0
- package/dist/components/slider/slider.d.ts +6 -0
- package/dist/components/snackbar/index.d.ts +3 -0
- package/dist/components/snackbar/snackbar.d.ts +3 -0
- package/dist/components/spinner/index.d.ts +1 -0
- package/dist/components/spinner/spinner.d.ts +11 -0
- package/dist/components/stepper/index.d.ts +2 -0
- package/dist/components/stepper/stepper.d.ts +5 -0
- package/dist/components/table/index.d.ts +6 -0
- package/dist/components/table/table-builder.d.ts +9 -0
- package/dist/components/table/table-cells/index.d.ts +40 -0
- package/dist/components/tabs/index.d.ts +2 -0
- package/dist/components/tabs/tab-title.d.ts +6 -0
- package/dist/components/tabs/tabs.d.ts +9 -0
- package/dist/components/tile/constants.d.ts +5 -0
- package/dist/components/tile/index.d.ts +9 -0
- package/dist/components/tile/skeletons.d.ts +7 -0
- package/dist/components/tile/styled-components.d.ts +3 -0
- package/dist/components/tile/tile-group.d.ts +7 -0
- package/dist/components/tile/tile.d.ts +11 -0
- package/dist/components/tooltip/index.d.ts +3 -0
- package/dist/components/tooltip/tooltip.d.ts +13 -0
- package/dist/components/tooltip/types.d.ts +1 -0
- package/dist/components/top-navigation/index.d.ts +3 -0
- package/dist/components/top-navigation/mobile-menu.d.ts +7 -0
- package/dist/components/top-navigation/styled-components.d.ts +6 -0
- package/dist/components/top-navigation/top-navigation.d.ts +14 -0
- package/dist/components/top-navigation/types.d.ts +16 -0
- package/dist/components/top-navigation/user-menu.d.ts +7 -0
- package/dist/components/top-navigation/user-profile-tile.d.ts +4 -0
- package/dist/docs/guides/borders.d.ts +2 -0
- package/dist/docs/guides/colors.d.ts +3 -0
- package/dist/docs/guides/sizing.d.ts +2 -0
- package/dist/docs/index.d.ts +13 -0
- package/dist/mezo-clay.es.js +57888 -16780
- package/dist/mezo-clay.umd.js +58 -18
- package/dist/styles/helpers.d.ts +2 -0
- package/dist/styles/index.d.ts +2 -1
- package/dist/themes/clay-dark-theme.d.ts +1 -0
- package/dist/themes/clay-light-theme.d.ts +15 -0
- package/dist/themes/index.d.ts +3 -2
- package/dist/themes/provider.d.ts +8 -0
- package/dist/utils/console.d.ts +2 -0
- package/dist/utils/index.d.ts +6 -0
- package/package.json +2 -1
- package/dist/components/block/index.d.ts +0 -1
- package/dist/components/button-group/constants.d.ts +0 -5
- package/dist/components/button-icon/overrides.d.ts +0 -5
- /package/dist/components/icons/{building → line/building}/index.d.ts +0 -0
- /package/dist/components/icons/{close → line/close}/index.d.ts +0 -0
- /package/dist/components/icons/{coins-hand → line/coins-hand}/index.d.ts +0 -0
- /package/dist/components/icons/{coins-swap → line/coins-swap}/index.d.ts +0 -0
- /package/dist/components/icons/{cube → line/cube}/index.d.ts +0 -0
- /package/dist/components/icons/{home-smile → line/home-smile}/index.d.ts +0 -0
- /package/dist/components/icons/{lightning → line/lightning}/index.d.ts +0 -0
- /package/dist/components/icons/{link-external → line/link-external}/index.d.ts +0 -0
- /package/dist/components/icons/{log-in → line/log-in}/index.d.ts +0 -0
- /package/dist/components/icons/{message-question-circle → line/message-question-circle}/index.d.ts +0 -0
- /package/dist/components/icons/{plus → line/plus}/index.d.ts +0 -0
- /package/dist/components/icons/{receipt → line/receipt}/index.d.ts +0 -0
- /package/dist/components/icons/{square → line/square}/index.d.ts +0 -0
- /package/dist/components/icons/{wallet → line/wallet}/index.d.ts +0 -0
- /package/dist/components/icons/{alert-circle → solid/alert-circle}/index.d.ts +0 -0
- /package/dist/components/icons/{apple → solid/apple}/index.d.ts +0 -0
- /package/dist/components/icons/{arrow-narrow-left → solid/arrow-narrow-left}/index.d.ts +0 -0
- /package/dist/components/icons/{arrow-narrow-right → solid/arrow-narrow-right}/index.d.ts +0 -0
- /package/dist/components/icons/{check-square → solid/check-square}/index.d.ts +0 -0
- /package/dist/components/icons/{chevron-down → solid/chevron-down}/index.d.ts +0 -0
- /package/dist/components/icons/{chevron-left → solid/chevron-left}/index.d.ts +0 -0
- /package/dist/components/icons/{chevron-right → solid/chevron-right}/index.d.ts +0 -0
- /package/dist/components/icons/{chevron-selector-horizontal → solid/chevron-selector-horizontal}/index.d.ts +0 -0
- /package/dist/components/icons/{chevron-selector-vertical → solid/chevron-selector-vertical}/index.d.ts +0 -0
- /package/dist/components/icons/{chevron-up → solid/chevron-up}/index.d.ts +0 -0
- /package/dist/components/icons/{discord → solid/discord}/index.d.ts +0 -0
- /package/dist/components/icons/{eye → solid/eye}/index.d.ts +0 -0
- /package/dist/components/icons/{eye-off → solid/eye-off}/index.d.ts +0 -0
- /package/dist/components/icons/{google → solid/google}/index.d.ts +0 -0
- /package/dist/components/icons/{heart → solid/heart}/index.d.ts +0 -0
- /package/dist/components/icons/{loading → solid/loading}/index.d.ts +0 -0
- /package/dist/components/icons/{minus-circle → solid/minus-circle}/index.d.ts +0 -0
- /package/dist/components/icons/{minus-square → solid/minus-square}/index.d.ts +0 -0
- /package/dist/components/icons/{plus-circle → solid/plus-circle}/index.d.ts +0 -0
- /package/dist/components/icons/{search → solid/search}/index.d.ts +0 -0
- /package/dist/components/icons/{x-circle → solid/x-circle}/index.d.ts +0 -0
- /package/dist/components/icons/{x-twitter → solid/x-twitter}/index.d.ts +0 -0
package/README.md
CHANGED
|
@@ -29,6 +29,7 @@ Open [http://localhost:6006/](http://localhost:6006/) to view it in the browser.
|
|
|
29
29
|
```shell
|
|
30
30
|
pnpm run format
|
|
31
31
|
```
|
|
32
|
+
|
|
32
33
|
This will lint both config files and ts/tsx/js/jsx files. See the `package.json` for specific linting commands.
|
|
33
34
|
|
|
34
35
|
#### Pre-commit
|
|
@@ -61,6 +62,36 @@ pnpm run build:lib
|
|
|
61
62
|
|
|
62
63
|
The library is output as the /dist directory.
|
|
63
64
|
|
|
65
|
+
### Publishing to NPM
|
|
66
|
+
|
|
67
|
+
Before you build and publish to NPM, you'll want to increment the version in `package.json`.
|
|
68
|
+
|
|
69
|
+
#### Build the library (same as above)
|
|
70
|
+
|
|
71
|
+
```shell
|
|
72
|
+
pnpm run build:lib
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
#### Login to NPM
|
|
76
|
+
|
|
77
|
+
```shell
|
|
78
|
+
pnpm login
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
#### Test the Built Package Locally
|
|
82
|
+
|
|
83
|
+
Use `pnpm pack` to build a `.tgz` file that you can link to from your test application.
|
|
84
|
+
|
|
85
|
+
#### Publish
|
|
86
|
+
|
|
87
|
+
```shell
|
|
88
|
+
pnpm publish --access public
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
__Note__: You can use the `--dry-run` flag on `publish` if you want to preview what will be included in the release package without actually publishing.
|
|
92
|
+
|
|
93
|
+
Check out your new release on the [npm page](https://www.npmjs.com/package/@mezo-org/mezo-clay).
|
|
94
|
+
|
|
64
95
|
## Using Clay
|
|
65
96
|
|
|
66
97
|
### Install
|
|
@@ -77,30 +108,25 @@ pnpm add styletron-engine-monolithic
|
|
|
77
108
|
|
|
78
109
|
### Adding Clay to your React app
|
|
79
110
|
|
|
80
|
-
Wrap the root of your app with
|
|
111
|
+
Wrap the root of your app with the `ClayProvider` component, like so:
|
|
81
112
|
|
|
82
113
|
```js
|
|
83
114
|
import { StrictMode } from "react"
|
|
84
115
|
import { createRoot } from "react-dom/client"
|
|
85
|
-
import {
|
|
86
|
-
import { BaseProvider, ClayLightTheme, StyletronProvider } from "mezo-clay"
|
|
116
|
+
import { ClayLightTheme, ClayProvider } from "@mezo-org/mezo-clay"
|
|
87
117
|
|
|
88
|
-
import "mezo-clay/dist/mezo-clay.css" // Font styles
|
|
118
|
+
import "@mezo-org/mezo-clay/dist/mezo-clay.css" // Font styles
|
|
89
119
|
|
|
90
120
|
import App from "./App.tsx"
|
|
91
121
|
|
|
92
|
-
const engine = new Styletron()
|
|
93
|
-
|
|
94
122
|
createRoot(document.getElementById('root')!).render(
|
|
95
123
|
<StrictMode>
|
|
96
|
-
<
|
|
97
|
-
<
|
|
98
|
-
|
|
99
|
-
</BaseProvider>
|
|
100
|
-
</StyletronProvider>
|
|
124
|
+
<ClayProvider theme={ClayLightTheme}>
|
|
125
|
+
<App />
|
|
126
|
+
</ClayProvider>
|
|
101
127
|
</StrictMode>
|
|
102
128
|
,
|
|
103
129
|
)
|
|
104
130
|
```
|
|
105
131
|
|
|
106
|
-
Import the
|
|
132
|
+
Import the `@mezo-org/mezo-clay/dist/mezo-clay.css` to ensure that the proper fonts are included.
|
|
@@ -1,2 +1,5 @@
|
|
|
1
1
|
import { AccordionProps } from './types';
|
|
2
|
-
export
|
|
2
|
+
export declare const useAccordionContext: () => {
|
|
3
|
+
toggleIcon?: AccordionProps["toggleIcon"];
|
|
4
|
+
};
|
|
5
|
+
export default function Accordion({ accordion, children, disabled, id, initialState, onChange, overrides, size, stateReducer, renderAll, toggleIcon, }: AccordionProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
import { PanelTitleProps } from './types';
|
|
2
3
|
export declare function PanelTitle({ artwork, artworkSize, title, subtitle, }: PanelTitleProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
export
|
|
4
|
+
export declare const Panel: React.ForwardRefExoticComponent<{
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
'aria-controls'?: string;
|
|
8
|
+
key?: React.Key;
|
|
9
|
+
onChange?: import('baseui/accordion').OnChangeHandler;
|
|
10
|
+
onClick?: (e: Event) => unknown;
|
|
11
|
+
onKeyDown?: (e: KeyboardEvent) => unknown;
|
|
12
|
+
overrides?: import('baseui/accordion').PanelOverrides;
|
|
13
|
+
title?: React.ReactNode;
|
|
14
|
+
renderPanelContent?: boolean;
|
|
15
|
+
renderAll?: boolean;
|
|
16
|
+
} & {
|
|
17
|
+
expanded?: boolean;
|
|
18
|
+
} & {
|
|
19
|
+
id?: string;
|
|
20
|
+
} & React.RefAttributes<HTMLElement>>;
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { AccordionProps as BaseAccordionProps } from 'baseui/accordion';
|
|
3
|
-
import { Icon } from '
|
|
2
|
+
import { AccordionProps as BaseAccordionProps, PanelProps as BasePanelProps } from 'baseui/accordion';
|
|
3
|
+
import { Icon } from 'baseui/icon';
|
|
4
4
|
import { ACCORDION_SIZE, PANEL_ARTWORK_SIZE } from './constants';
|
|
5
5
|
export interface AccordionProps extends BaseAccordionProps {
|
|
6
|
+
id?: string;
|
|
6
7
|
size: keyof typeof ACCORDION_SIZE;
|
|
7
8
|
toggleIcon?: React.ReactElement<typeof Icon>;
|
|
8
9
|
}
|
|
9
|
-
export type
|
|
10
|
+
export type PanelProps = BasePanelProps & {
|
|
11
|
+
id?: string;
|
|
12
|
+
};
|
|
10
13
|
export interface PanelTitleProps {
|
|
11
14
|
artwork?: React.ReactNode;
|
|
12
15
|
artworkSize?: keyof typeof PANEL_ARTWORK_SIZE;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ComponentType } from 'react';
|
|
2
|
+
import { AvatarProps as BaseAvatarProps } from 'baseui/avatar';
|
|
3
|
+
import { IconProps } from 'baseui/icon';
|
|
4
|
+
export type AvatarSize = "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge" | string;
|
|
5
|
+
export type AvatarProps = Omit<BaseAvatarProps, "size"> & {
|
|
6
|
+
size?: AvatarSize;
|
|
7
|
+
backgroundColor?: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const AVATAR_SIZE: {
|
|
10
|
+
xsmall: string;
|
|
11
|
+
small: string;
|
|
12
|
+
medium: string;
|
|
13
|
+
large: string;
|
|
14
|
+
xlarge: string;
|
|
15
|
+
xxlarge: string;
|
|
16
|
+
};
|
|
17
|
+
export declare function Avatar({ backgroundColor, initials, name, overrides, size, src, }: AvatarProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export type IconAvatarProps = Omit<AvatarProps, "initials"> & {
|
|
19
|
+
icon?: ComponentType<IconProps>;
|
|
20
|
+
iconProps?: IconProps;
|
|
21
|
+
};
|
|
22
|
+
export declare function IconAvatar({ overrides, size, src, icon, iconProps, ...restProps }: IconAvatarProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './avatar';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { BannerProps, BannerVariantProps } from './types';
|
|
2
|
+
export declare const useBannerContext: () => {
|
|
3
|
+
actionLabel: BannerProps["actionLabel"];
|
|
4
|
+
actionButtonId: BannerProps["actionButtonId"];
|
|
5
|
+
artworkType: BannerProps["artworkType"];
|
|
6
|
+
hierarchy: BannerProps["hierarchy"];
|
|
7
|
+
id: BannerProps["id"];
|
|
8
|
+
kind?: BannerProps["kind"];
|
|
9
|
+
onClick: BannerProps["onClick"];
|
|
10
|
+
};
|
|
11
|
+
export declare function BannerCloseIcon({ size }: {
|
|
12
|
+
size: string;
|
|
13
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare function BannerTrailingButtonContainer(): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export default function Banner({ actionIcon, actionLabel, actionButtonId, artworkIcon, artworkType, children, hierarchy, id, kind, onClick, overrides, nested, title, }: BannerProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare function BannerInfo({ artworkType, children, ...restProps }: BannerVariantProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export declare function BannerNegative({ artworkType, children, ...restProps }: BannerVariantProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export declare function BannerPositive({ artworkType, children, ...restProps }: BannerVariantProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export declare function BannerWarning({ artworkType, children, overrides, ...restProps }: BannerVariantProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { default as Banner, BannerInfo, BannerCloseIcon, BannerNegative, BannerPositive, BannerTrailingButtonContainer, BannerWarning, } from './banner';
|
|
2
|
+
export * from './types';
|
|
3
|
+
export { ARTWORK_TYPE as BANNER_ARTWORK_TYPE, StyledTrailingButtonContainer, } from 'baseui/banner';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BannerProps as BaseBannerProps, ActionContent as BaseActionContent, ArtworkContent as BaseArtworkContent } from 'baseui/banner';
|
|
2
|
+
export interface BannerProps extends Omit<Omit<BaseBannerProps, "action">, "artwork"> {
|
|
3
|
+
actionIcon?: BaseActionContent["icon"];
|
|
4
|
+
actionLabel?: BaseActionContent["label"];
|
|
5
|
+
actionButtonId?: string;
|
|
6
|
+
onClick?: BaseActionContent["onClick"];
|
|
7
|
+
artworkIcon?: BaseArtworkContent["icon"];
|
|
8
|
+
artworkType?: BaseArtworkContent["type"];
|
|
9
|
+
id?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface BannerVariantProps extends Omit<Omit<BannerProps, "artworkIcon">, "kind"> {
|
|
12
|
+
}
|
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { BannerCloseIcon, BannerVariantProps } from './index';
|
|
3
|
+
type RenderFn = (args: BannerVariantProps) => ReactElement;
|
|
4
|
+
export declare function getLowHierarchyStory(renderFn: RenderFn): {
|
|
5
|
+
args: {
|
|
6
|
+
actionIcon: any;
|
|
7
|
+
actionLabel: any;
|
|
8
|
+
actionButtonId: string;
|
|
9
|
+
artworkType: any;
|
|
10
|
+
children: string;
|
|
11
|
+
hierarchy: BannerVariantProps["hierarchy"];
|
|
12
|
+
id: string;
|
|
13
|
+
onClick: any;
|
|
14
|
+
overrides: {};
|
|
15
|
+
nested: boolean;
|
|
16
|
+
title: string;
|
|
17
|
+
};
|
|
18
|
+
render: RenderFn;
|
|
19
|
+
};
|
|
20
|
+
export declare function getLowHierarchyWithActionButtonStory(renderFn: RenderFn): {
|
|
21
|
+
args: {
|
|
22
|
+
actionLabel: string;
|
|
23
|
+
onClick: () => void;
|
|
24
|
+
actionIcon: any;
|
|
25
|
+
actionButtonId: string;
|
|
26
|
+
artworkType: any;
|
|
27
|
+
children: string;
|
|
28
|
+
hierarchy: BannerVariantProps["hierarchy"];
|
|
29
|
+
id: string;
|
|
30
|
+
overrides: {};
|
|
31
|
+
nested: boolean;
|
|
32
|
+
title: string;
|
|
33
|
+
};
|
|
34
|
+
render: RenderFn;
|
|
35
|
+
};
|
|
36
|
+
export declare function getLowHierarchyWithActionIconStory(renderFn: RenderFn): {
|
|
37
|
+
args: {
|
|
38
|
+
actionLabel: string;
|
|
39
|
+
actionIcon: typeof BannerCloseIcon;
|
|
40
|
+
onClick: () => void;
|
|
41
|
+
actionButtonId: string;
|
|
42
|
+
artworkType: any;
|
|
43
|
+
children: string;
|
|
44
|
+
hierarchy: BannerVariantProps["hierarchy"];
|
|
45
|
+
id: string;
|
|
46
|
+
overrides: {};
|
|
47
|
+
nested: boolean;
|
|
48
|
+
title: string;
|
|
49
|
+
};
|
|
50
|
+
render: RenderFn;
|
|
51
|
+
};
|
|
52
|
+
export declare function getLowHierarchyWithArtworkWithBadgeStory(renderFn: RenderFn): {
|
|
53
|
+
args: {
|
|
54
|
+
artworkType: "badge";
|
|
55
|
+
actionIcon: any;
|
|
56
|
+
actionLabel: any;
|
|
57
|
+
actionButtonId: string;
|
|
58
|
+
children: string;
|
|
59
|
+
hierarchy: BannerVariantProps["hierarchy"];
|
|
60
|
+
id: string;
|
|
61
|
+
onClick: any;
|
|
62
|
+
overrides: {};
|
|
63
|
+
nested: boolean;
|
|
64
|
+
title: string;
|
|
65
|
+
};
|
|
66
|
+
render: RenderFn;
|
|
67
|
+
};
|
|
68
|
+
export declare function getLowHierarchyWithArtworkWithBadgeAndButtonStory(renderFn: RenderFn): {
|
|
69
|
+
args: {
|
|
70
|
+
artworkType: "badge";
|
|
71
|
+
actionLabel: string;
|
|
72
|
+
onClick: () => void;
|
|
73
|
+
actionIcon: any;
|
|
74
|
+
actionButtonId: string;
|
|
75
|
+
children: string;
|
|
76
|
+
hierarchy: BannerVariantProps["hierarchy"];
|
|
77
|
+
id: string;
|
|
78
|
+
overrides: {};
|
|
79
|
+
nested: boolean;
|
|
80
|
+
title: string;
|
|
81
|
+
};
|
|
82
|
+
render: RenderFn;
|
|
83
|
+
};
|
|
84
|
+
export declare function getLowHierarchyWithArtworkWithBadgeAndCloseStory(renderFn: RenderFn): {
|
|
85
|
+
args: {
|
|
86
|
+
artworkType: "badge";
|
|
87
|
+
actionLabel: string;
|
|
88
|
+
actionIcon: typeof BannerCloseIcon;
|
|
89
|
+
onClick: () => void;
|
|
90
|
+
actionButtonId: string;
|
|
91
|
+
children: string;
|
|
92
|
+
hierarchy: BannerVariantProps["hierarchy"];
|
|
93
|
+
id: string;
|
|
94
|
+
overrides: {};
|
|
95
|
+
nested: boolean;
|
|
96
|
+
title: string;
|
|
97
|
+
};
|
|
98
|
+
render: RenderFn;
|
|
99
|
+
};
|
|
100
|
+
export declare function getLowHierarchyWithArtworkWithIconStory(renderFn: RenderFn): {
|
|
101
|
+
args: {
|
|
102
|
+
artworkType: "icon";
|
|
103
|
+
actionIcon: any;
|
|
104
|
+
actionLabel: any;
|
|
105
|
+
actionButtonId: string;
|
|
106
|
+
children: string;
|
|
107
|
+
hierarchy: BannerVariantProps["hierarchy"];
|
|
108
|
+
id: string;
|
|
109
|
+
onClick: any;
|
|
110
|
+
overrides: {};
|
|
111
|
+
nested: boolean;
|
|
112
|
+
title: string;
|
|
113
|
+
};
|
|
114
|
+
render: RenderFn;
|
|
115
|
+
};
|
|
116
|
+
export declare function getLowHierarchyWithArtworkWithIconAndButtonStory(renderFn: RenderFn): {
|
|
117
|
+
args: {
|
|
118
|
+
artworkType: "icon";
|
|
119
|
+
actionLabel: string;
|
|
120
|
+
onClick: () => void;
|
|
121
|
+
actionIcon: any;
|
|
122
|
+
actionButtonId: string;
|
|
123
|
+
children: string;
|
|
124
|
+
hierarchy: BannerVariantProps["hierarchy"];
|
|
125
|
+
id: string;
|
|
126
|
+
overrides: {};
|
|
127
|
+
nested: boolean;
|
|
128
|
+
title: string;
|
|
129
|
+
};
|
|
130
|
+
render: RenderFn;
|
|
131
|
+
};
|
|
132
|
+
export declare function getLowHierarchyWithArtworkWithIconAndCloseStory(renderFn: RenderFn): {
|
|
133
|
+
args: {
|
|
134
|
+
artworkType: "icon";
|
|
135
|
+
actionLabel: string;
|
|
136
|
+
actionIcon: typeof BannerCloseIcon;
|
|
137
|
+
onClick: () => void;
|
|
138
|
+
actionButtonId: string;
|
|
139
|
+
children: string;
|
|
140
|
+
hierarchy: BannerVariantProps["hierarchy"];
|
|
141
|
+
id: string;
|
|
142
|
+
overrides: {};
|
|
143
|
+
nested: boolean;
|
|
144
|
+
title: string;
|
|
145
|
+
};
|
|
146
|
+
render: RenderFn;
|
|
147
|
+
};
|
|
148
|
+
export declare function getHighHierarchyStory(renderFn: RenderFn): {
|
|
149
|
+
args: {
|
|
150
|
+
hierarchy: import('baseui/banner').Hierarchy;
|
|
151
|
+
actionIcon: any;
|
|
152
|
+
actionLabel: any;
|
|
153
|
+
actionButtonId: string;
|
|
154
|
+
artworkType: any;
|
|
155
|
+
children: string;
|
|
156
|
+
id: string;
|
|
157
|
+
onClick: any;
|
|
158
|
+
overrides: {};
|
|
159
|
+
nested: boolean;
|
|
160
|
+
title: string;
|
|
161
|
+
};
|
|
162
|
+
render: RenderFn;
|
|
163
|
+
};
|
|
164
|
+
export declare function getHighHierarchyWithActionButtonStory(renderFn: RenderFn): {
|
|
165
|
+
args: {
|
|
166
|
+
hierarchy: import('baseui/banner').Hierarchy;
|
|
167
|
+
actionLabel: string;
|
|
168
|
+
onClick: () => void;
|
|
169
|
+
actionIcon: any;
|
|
170
|
+
actionButtonId: string;
|
|
171
|
+
artworkType: any;
|
|
172
|
+
children: string;
|
|
173
|
+
id: string;
|
|
174
|
+
overrides: {};
|
|
175
|
+
nested: boolean;
|
|
176
|
+
title: string;
|
|
177
|
+
};
|
|
178
|
+
render: RenderFn;
|
|
179
|
+
};
|
|
180
|
+
export declare function getHighHierarchyWithActionIconStory(renderFn: RenderFn): {
|
|
181
|
+
args: {
|
|
182
|
+
hierarchy: import('baseui/banner').Hierarchy;
|
|
183
|
+
actionLabel: string;
|
|
184
|
+
actionIcon: typeof BannerCloseIcon;
|
|
185
|
+
onClick: () => void;
|
|
186
|
+
actionButtonId: string;
|
|
187
|
+
artworkType: any;
|
|
188
|
+
children: string;
|
|
189
|
+
id: string;
|
|
190
|
+
overrides: {};
|
|
191
|
+
nested: boolean;
|
|
192
|
+
title: string;
|
|
193
|
+
};
|
|
194
|
+
render: RenderFn;
|
|
195
|
+
};
|
|
196
|
+
export declare function getHighHierarchyWithArtworkWithBadgeStory(renderFn: RenderFn): {
|
|
197
|
+
args: {
|
|
198
|
+
hierarchy: import('baseui/banner').Hierarchy;
|
|
199
|
+
artworkType: "badge";
|
|
200
|
+
actionIcon: any;
|
|
201
|
+
actionLabel: any;
|
|
202
|
+
actionButtonId: string;
|
|
203
|
+
children: string;
|
|
204
|
+
id: string;
|
|
205
|
+
onClick: any;
|
|
206
|
+
overrides: {};
|
|
207
|
+
nested: boolean;
|
|
208
|
+
title: string;
|
|
209
|
+
};
|
|
210
|
+
render: RenderFn;
|
|
211
|
+
};
|
|
212
|
+
export declare function getHighHierarchyWithArtworkWithBadgeAndButtonStory(renderFn: RenderFn): {
|
|
213
|
+
args: {
|
|
214
|
+
hierarchy: import('baseui/banner').Hierarchy;
|
|
215
|
+
artworkType: "badge";
|
|
216
|
+
actionLabel: string;
|
|
217
|
+
onClick: () => void;
|
|
218
|
+
actionIcon: any;
|
|
219
|
+
actionButtonId: string;
|
|
220
|
+
children: string;
|
|
221
|
+
id: string;
|
|
222
|
+
overrides: {};
|
|
223
|
+
nested: boolean;
|
|
224
|
+
title: string;
|
|
225
|
+
};
|
|
226
|
+
render: RenderFn;
|
|
227
|
+
};
|
|
228
|
+
export declare function getHighHierarchyWithArtworkWithBadgeAndCloseStory(renderFn: RenderFn): {
|
|
229
|
+
args: {
|
|
230
|
+
hierarchy: import('baseui/banner').Hierarchy;
|
|
231
|
+
artworkType: "badge";
|
|
232
|
+
actionLabel: string;
|
|
233
|
+
actionIcon: typeof BannerCloseIcon;
|
|
234
|
+
onClick: () => void;
|
|
235
|
+
actionButtonId: string;
|
|
236
|
+
children: string;
|
|
237
|
+
id: string;
|
|
238
|
+
overrides: {};
|
|
239
|
+
nested: boolean;
|
|
240
|
+
title: string;
|
|
241
|
+
};
|
|
242
|
+
render: RenderFn;
|
|
243
|
+
};
|
|
244
|
+
export declare function getHighHierarchyWithArtworkWithIconStory(renderFn: RenderFn): {
|
|
245
|
+
args: {
|
|
246
|
+
hierarchy: import('baseui/banner').Hierarchy;
|
|
247
|
+
artworkType: "icon";
|
|
248
|
+
actionIcon: any;
|
|
249
|
+
actionLabel: any;
|
|
250
|
+
actionButtonId: string;
|
|
251
|
+
children: string;
|
|
252
|
+
id: string;
|
|
253
|
+
onClick: any;
|
|
254
|
+
overrides: {};
|
|
255
|
+
nested: boolean;
|
|
256
|
+
title: string;
|
|
257
|
+
};
|
|
258
|
+
render: RenderFn;
|
|
259
|
+
};
|
|
260
|
+
export declare function getHighHierarchyWithArtworkWithIconAndButtonStory(renderFn: RenderFn): {
|
|
261
|
+
args: {
|
|
262
|
+
hierarchy: import('baseui/banner').Hierarchy;
|
|
263
|
+
artworkType: "icon";
|
|
264
|
+
actionLabel: string;
|
|
265
|
+
onClick: () => void;
|
|
266
|
+
actionIcon: any;
|
|
267
|
+
actionButtonId: string;
|
|
268
|
+
children: string;
|
|
269
|
+
id: string;
|
|
270
|
+
overrides: {};
|
|
271
|
+
nested: boolean;
|
|
272
|
+
title: string;
|
|
273
|
+
};
|
|
274
|
+
render: RenderFn;
|
|
275
|
+
};
|
|
276
|
+
export declare function getHighHierarchyWithArtworkWithIconAndCloseStory(renderFn: RenderFn): {
|
|
277
|
+
args: {
|
|
278
|
+
hierarchy: import('baseui/banner').Hierarchy;
|
|
279
|
+
artworkType: "icon";
|
|
280
|
+
actionLabel: string;
|
|
281
|
+
actionIcon: typeof BannerCloseIcon;
|
|
282
|
+
onClick: () => void;
|
|
283
|
+
actionButtonId: string;
|
|
284
|
+
children: string;
|
|
285
|
+
id: string;
|
|
286
|
+
overrides: {};
|
|
287
|
+
nested: boolean;
|
|
288
|
+
title: string;
|
|
289
|
+
};
|
|
290
|
+
render: RenderFn;
|
|
291
|
+
};
|
|
292
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { BreadcrumbsProps as BaseBreadcrumbsProps } from 'baseui/breadcrumbs';
|
|
3
|
+
import { Icon } from 'baseui/icon';
|
|
4
|
+
export type BreadcrumbsProps = BaseBreadcrumbsProps & {
|
|
5
|
+
icon?: ReactElement<typeof Icon>;
|
|
6
|
+
};
|
|
7
|
+
export declare function Breadcrumbs({ children, icon, overrides, ...restProps }: BreadcrumbsProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
import { ButtonProps } from './types';
|
|
2
|
+
import * as React from "react";
|
|
2
3
|
export declare function getBaseButtonSize(size: any): any;
|
|
3
|
-
export
|
|
4
|
+
export declare function Button({ id, "data-attr": dataAttr, disabled, kind, overrides, size, forwardedRef, width, whiteSpace, ...restProps }: ButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare const ForwardedButton: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLElement>>;
|
|
6
|
+
export default ForwardedButton;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { default as Button, getBaseButtonSize } from './button';
|
|
2
2
|
export { KIND as BUTTON_KIND, SIZE as BUTTON_SIZE, SHAPE as BUTTON_SHAPE, } from './constants';
|
|
3
|
-
export { getButtonHoverStyles, getButtonActiveStyles } from './overrides';
|
|
3
|
+
export { getButtonHoverStyles, getButtonActiveStyles, getButtonIconSize, } from './overrides';
|
|
4
4
|
export * from './types';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ButtonProps } from './types';
|
|
2
|
-
export declare function getButtonHoverStyles(kind: any, disabled?: boolean): {
|
|
2
|
+
export declare function getButtonHoverStyles($theme: any, kind: any, disabled?: boolean): {
|
|
3
3
|
boxShadow?: undefined;
|
|
4
4
|
} | {
|
|
5
5
|
boxShadow: string;
|
|
@@ -14,4 +14,5 @@ export declare function getButtonActiveStyles($theme: any, kind: any, disabled?:
|
|
|
14
14
|
color: any;
|
|
15
15
|
boxShadow?: undefined;
|
|
16
16
|
};
|
|
17
|
-
export declare function
|
|
17
|
+
export declare function getButtonIconSize(size: ButtonProps["size"]): "16px" | "24px" | "20px" | "12px";
|
|
18
|
+
export declare function getButtonOverrides({ overrides, kind, disabled, width, whiteSpace, }: ButtonProps): import('baseui/helpers/overrides').Overrides<any>;
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
1
|
+
import { default as React, ForwardedRef } from 'react';
|
|
2
2
|
import { ButtonProps as BaseButtonProps } from 'baseui/button';
|
|
3
3
|
import { SIZE, SHAPE } from './constants';
|
|
4
4
|
export interface ButtonProps extends Omit<Omit<BaseButtonProps, "size">, "shape"> {
|
|
5
5
|
size?: keyof typeof SIZE;
|
|
6
6
|
shape?: keyof typeof SHAPE;
|
|
7
7
|
$as?: React.ElementType;
|
|
8
|
+
"data-attr"?: string;
|
|
9
|
+
id?: string;
|
|
10
|
+
forwardedRef?: ForwardedRef<HTMLElement>;
|
|
11
|
+
width?: string;
|
|
12
|
+
whiteSpace?: string;
|
|
8
13
|
}
|
|
9
14
|
export type { ButtonOverrides, CustomColors, SharedStyleProps, } from 'baseui/button';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { default as ButtonGroup, StatefulButtonGroup } from './button-group';
|
|
2
|
-
export { SHAPE as BUTTON_GROUP_SHAPE, SIZE as BUTTON_GROUP_SIZE, } from '
|
|
2
|
+
export { SHAPE as BUTTON_GROUP_SHAPE, SIZE as BUTTON_GROUP_SIZE, } from '../button/constants';
|
|
3
3
|
export type { ButtonGroupProps, StatefulButtonGroupProps } from './types';
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { ButtonGroupProps as BaseButtonGroupProps, StateReducer } from 'baseui/button-group';
|
|
2
|
-
import { BUTTON_SHAPE } from '../button';
|
|
3
|
-
import { SIZE } from './constants';
|
|
2
|
+
import { BUTTON_SHAPE, BUTTON_SIZE } from '../button';
|
|
4
3
|
export interface ButtonGroupProps extends Omit<Omit<BaseButtonGroupProps, "size">, "shape"> {
|
|
5
|
-
size?: keyof typeof
|
|
4
|
+
size?: keyof typeof BUTTON_SIZE;
|
|
6
5
|
shape?: keyof typeof BUTTON_SHAPE;
|
|
7
6
|
}
|
|
8
7
|
export interface StatefulButtonGroupProps extends Omit<ButtonGroupProps, "selected"> {
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
+
import { default as React, ReactNode } from 'react';
|
|
1
2
|
import { ButtonIconProps } from './types';
|
|
2
|
-
export
|
|
3
|
+
export declare function formatButtonLabel(label: ReactNode): string | number | boolean | React.ReactElement<any, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode>;
|
|
4
|
+
declare const ForwardedButtonIcon: React.ForwardRefExoticComponent<ButtonIconProps & React.RefAttributes<HTMLElement>>;
|
|
5
|
+
export default ForwardedButtonIcon;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { PropsWithChildren, ReactNode } from 'react';
|
|
2
|
+
import { StyleObject } from 'styletron-react';
|
|
3
|
+
import { ButtonProps } from '../button';
|
|
4
|
+
import { CardFooterProps } from '../card';
|
|
5
|
+
export type CalloutCardTitleProps = {
|
|
6
|
+
$style?: StyleObject;
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
};
|
|
9
|
+
export declare function CalloutCardTitle({ $style, children, }: CalloutCardTitleProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare namespace CalloutCardTitle {
|
|
11
|
+
var displayName: string;
|
|
12
|
+
}
|
|
13
|
+
export type CalloutCardBodyProps = {
|
|
14
|
+
$style?: StyleObject;
|
|
15
|
+
children: ReactNode;
|
|
16
|
+
};
|
|
17
|
+
export declare function CalloutCardBody({ $style, children, }: CalloutCardBodyProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export declare namespace CalloutCardBody {
|
|
19
|
+
var displayName: string;
|
|
20
|
+
}
|
|
21
|
+
export type CalloutCardFooterProps = CardFooterProps;
|
|
22
|
+
export declare function CalloutCardFooter({ justifyContent, ...restProps }: CalloutCardFooterProps): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export declare namespace CalloutCardFooter {
|
|
24
|
+
var displayName: string;
|
|
25
|
+
}
|
|
26
|
+
export declare function CalloutCardAction({ children }: PropsWithChildren): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export declare namespace CalloutCardAction {
|
|
28
|
+
var displayName: string;
|
|
29
|
+
}
|
|
30
|
+
export type CalloutCardFooterButtonProps = Omit<ButtonProps, "size" | "kind" | "shape">;
|
|
31
|
+
export declare function CalloutCardFooterButton({ overrides, ...restProps }: CalloutCardFooterButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CardProps } from '../card';
|
|
2
|
+
import { ContentStep, ContentStepperProps, ContentStepperOverrides } from '../content-stepper';
|
|
3
|
+
import { CalloutCardKind } from './types';
|
|
4
|
+
export type CalloutCardProps = Omit<CardProps, "backgroundImage" | "loadingHeaderImageHeight" | "headerImage" | "thumbnail" | "hasThumbnail"> & Omit<ContentStepperProps, "steps" | "overrides" | "onClose" | "onStepsCompleted"> & {
|
|
5
|
+
kind?: CalloutCardKind;
|
|
6
|
+
steps?: ContentStep[];
|
|
7
|
+
contentStepperOverrides?: ContentStepperOverrides;
|
|
8
|
+
onClose?: () => void;
|
|
9
|
+
onStepsCompleted?: () => void;
|
|
10
|
+
};
|
|
11
|
+
export declare function CalloutCard({ action, children, kind, contentStepperOverrides, overrides, steps, withStepCount, onClose, onStepsCompleted, previousButtonAlwaysEnabled, loading, ...restProps }: CalloutCardProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CalloutCardKind } from './types';
|
|
2
|
+
export declare const CalloutCardContext: import('react').Context<{
|
|
3
|
+
kind: CalloutCardKind;
|
|
4
|
+
loading: boolean;
|
|
5
|
+
}>;
|
|
6
|
+
export declare const useCalloutCardContext: () => {
|
|
7
|
+
kind: CalloutCardKind;
|
|
8
|
+
loading: boolean;
|
|
9
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { CardTitleSkeleton as CalloutCardTitleSkeleton } from '../card/card-skeletons';
|
|
2
|
+
export declare function CalloutCardBodySkeleton(): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare function CalloutCardFooterSkeleton(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type CalloutCardKind = "secondary" | "tertiary";
|