@mezo-org/mezo-clay 0.1.0-dev.2 → 0.1.0-dev.21

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.
Files changed (126) hide show
  1. package/README.md +5 -7
  2. package/dist/components/accordion/accordion.d.ts +2 -0
  3. package/dist/components/accordion/constants.d.ts +10 -0
  4. package/dist/components/accordion/index.d.ts +4 -0
  5. package/dist/components/accordion/panel.d.ts +20 -0
  6. package/dist/components/accordion/types.d.ts +18 -0
  7. package/dist/components/avatar/avatar.d.ts +22 -0
  8. package/dist/components/avatar/index.d.ts +1 -0
  9. package/dist/components/badge/hint.d.ts +6 -0
  10. package/dist/components/badge/index.d.ts +5 -0
  11. package/dist/components/badge/notification.d.ts +9 -0
  12. package/dist/components/badge/types.d.ts +2 -0
  13. package/dist/components/banner/banner.d.ts +19 -0
  14. package/dist/components/banner/index.d.ts +3 -0
  15. package/dist/components/banner/types.d.ts +12 -0
  16. package/dist/components/banner/utils.d.ts +292 -0
  17. package/dist/components/breadcrumbs/breadcrumbs.d.ts +7 -0
  18. package/dist/components/breadcrumbs/index.d.ts +2 -0
  19. package/dist/components/button/button.d.ts +4 -1
  20. package/dist/components/button/index.d.ts +1 -1
  21. package/dist/components/button/overrides.d.ts +2 -1
  22. package/dist/components/button/types.d.ts +5 -1
  23. package/dist/components/button-group/index.d.ts +1 -1
  24. package/dist/components/button-group/types.d.ts +2 -3
  25. package/dist/components/button-icon/button-icon.d.ts +4 -1
  26. package/dist/components/button-icon/index.d.ts +0 -1
  27. package/dist/components/card/card-skeletons.d.ts +13 -0
  28. package/dist/components/card/card.d.ts +24 -0
  29. package/dist/components/card/context.d.ts +7 -0
  30. package/dist/components/card/index.d.ts +3 -0
  31. package/dist/components/card/types.d.ts +10 -0
  32. package/dist/components/checkbox/checkbox.d.ts +5 -0
  33. package/dist/components/checkbox/index.d.ts +1 -0
  34. package/dist/components/divider/index.d.ts +9 -0
  35. package/dist/components/icons/alert-triangle/index.d.ts +15 -0
  36. package/dist/components/icons/arrow-circle-down/index.d.ts +9 -0
  37. package/dist/components/icons/arrow-circle-up/index.d.ts +9 -0
  38. package/dist/components/icons/arrow-left/index.d.ts +9 -0
  39. package/dist/components/icons/arrow-right/index.d.ts +9 -0
  40. package/dist/components/icons/bezier-curve/index.d.ts +9 -0
  41. package/dist/components/icons/bitcoin-circle/index.d.ts +14 -0
  42. package/dist/components/icons/check-circle/index.d.ts +5 -2
  43. package/dist/components/icons/circle-cut/index.d.ts +9 -0
  44. package/dist/components/icons/copy/index.d.ts +8 -0
  45. package/dist/components/icons/cryptocurrency/index.d.ts +8 -0
  46. package/dist/components/icons/email/index.d.ts +8 -0
  47. package/dist/components/icons/eth-circle/index.d.ts +14 -0
  48. package/dist/components/icons/gas-fee/index.d.ts +9 -0
  49. package/dist/components/icons/handshake/index.d.ts +9 -0
  50. package/dist/components/icons/index.d.ts +37 -9
  51. package/dist/components/icons/info-circle/index.d.ts +8 -2
  52. package/dist/components/icons/link/index.d.ts +8 -0
  53. package/dist/components/icons/lock/index.d.ts +8 -0
  54. package/dist/components/icons/log-out/index.d.ts +8 -0
  55. package/dist/components/icons/mats/index.d.ts +9 -0
  56. package/dist/components/icons/mats-circle/index.d.ts +8 -8
  57. package/dist/components/icons/menu/index.d.ts +2 -2
  58. package/dist/components/icons/mezo-circle/index.d.ts +14 -0
  59. package/dist/components/icons/musd-circle/index.d.ts +28 -0
  60. package/dist/components/icons/plus-square/index.d.ts +9 -0
  61. package/dist/components/icons/safe/index.d.ts +9 -0
  62. package/dist/components/icons/settings/index.d.ts +7 -0
  63. package/dist/components/icons/shield/index.d.ts +8 -0
  64. package/dist/components/icons/tag/index.d.ts +8 -0
  65. package/dist/components/icons/tbtc-circle/index.d.ts +14 -0
  66. package/dist/components/icons/thusd-circle/index.d.ts +14 -0
  67. package/dist/components/icons/trend-down/index.d.ts +9 -0
  68. package/dist/components/icons/trend-up/index.d.ts +9 -0
  69. package/dist/components/icons/trophy/index.d.ts +8 -1
  70. package/dist/components/icons/upload/index.d.ts +8 -0
  71. package/dist/components/icons/user/index.d.ts +8 -2
  72. package/dist/components/icons/utils.d.ts +2 -1
  73. package/dist/components/icons/vbtc-circle/index.d.ts +14 -0
  74. package/dist/components/index.d.ts +33 -3
  75. package/dist/components/input/input.d.ts +1 -1
  76. package/dist/components/link/index.d.ts +6 -0
  77. package/dist/components/menu/context.d.ts +7 -0
  78. package/dist/components/menu/index.d.ts +4 -0
  79. package/dist/components/menu/menu-items.d.ts +18 -0
  80. package/dist/components/menu/menu.d.ts +28 -0
  81. package/dist/components/menu/types.d.ts +1 -0
  82. package/dist/components/message-card/index.d.ts +1 -1
  83. package/dist/components/message-card/message-card.d.ts +6 -2
  84. package/dist/components/message-card/overrides.d.ts +12 -7
  85. package/dist/components/mobile-header/index.d.ts +1 -0
  86. package/dist/components/mobile-header/mobile-header.d.ts +15 -0
  87. package/dist/components/modal/index.d.ts +3 -0
  88. package/dist/components/modal/modal.d.ts +26 -0
  89. package/dist/components/progress-bar/hooks.d.ts +1 -0
  90. package/dist/components/progress-bar/index.d.ts +2 -0
  91. package/dist/components/progress-bar/progress-bar.d.ts +3 -0
  92. package/dist/components/progress-steps/index.d.ts +2 -0
  93. package/dist/components/radio/index.d.ts +3 -0
  94. package/dist/components/radio/radio.d.ts +5 -0
  95. package/dist/components/section-heading/index.d.ts +1 -0
  96. package/dist/components/section-heading/section-heading.d.ts +5 -0
  97. package/dist/components/segmented-control/index.d.ts +1 -0
  98. package/dist/components/segmented-control/segmented-control.d.ts +9 -0
  99. package/dist/components/side-navigation/index.d.ts +1 -1
  100. package/dist/components/side-navigation/overrides.d.ts +2 -1
  101. package/dist/components/side-navigation/side-navigation.d.ts +15 -3
  102. package/dist/components/snackbar/index.d.ts +3 -0
  103. package/dist/components/snackbar/snackbar.d.ts +3 -0
  104. package/dist/components/spinner/index.d.ts +1 -0
  105. package/dist/components/spinner/spinner.d.ts +11 -0
  106. package/dist/components/stepper/index.d.ts +2 -0
  107. package/dist/components/stepper/stepper.d.ts +5 -0
  108. package/dist/components/table/index.d.ts +3 -0
  109. package/dist/components/tabs/index.d.ts +2 -0
  110. package/dist/components/tabs/tab-title.d.ts +6 -0
  111. package/dist/components/tabs/tabs.d.ts +9 -0
  112. package/dist/components/tooltip/index.d.ts +3 -0
  113. package/dist/components/tooltip/tooltip.d.ts +13 -0
  114. package/dist/components/tooltip/types.d.ts +1 -0
  115. package/dist/mezo-clay.es.js +32897 -14687
  116. package/dist/mezo-clay.umd.js +82 -42
  117. package/dist/styles/index.d.ts +1 -1
  118. package/dist/themes/clay-light-theme.d.ts +12 -0
  119. package/dist/themes/index.d.ts +2 -2
  120. package/dist/themes/provider.d.ts +8 -0
  121. package/dist/utils/console.d.ts +1 -0
  122. package/dist/utils/index.d.ts +6 -0
  123. package/package.json +1 -1
  124. package/dist/components/block/index.d.ts +0 -1
  125. package/dist/components/button-group/constants.d.ts +0 -5
  126. package/dist/components/button-icon/overrides.d.ts +0 -5
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
@@ -77,13 +78,12 @@ pnpm add styletron-engine-monolithic
77
78
 
78
79
  ### Adding Clay to your React app
79
80
 
80
- Wrap the root of your app with `StyletronProvider` and `BaseProvider` components, like so:
81
+ Wrap the root of your app with `ClayProvider` component, like so:
81
82
 
82
83
  ```js
83
84
  import { StrictMode } from "react"
84
85
  import { createRoot } from "react-dom/client"
85
- import { Client as Styletron } from "styletron-engine-monolithic"
86
- import { BaseProvider, ClayLightTheme, StyletronProvider } from "mezo-clay"
86
+ import { ClayLightTheme } from "mezo-clay"
87
87
 
88
88
  import "mezo-clay/dist/mezo-clay.css" // Font styles
89
89
 
@@ -93,11 +93,9 @@ const engine = new Styletron()
93
93
 
94
94
  createRoot(document.getElementById('root')!).render(
95
95
  <StrictMode>
96
- <StyletronProvider value={engine}>
97
- <BaseProvider theme={ClayLightTheme}>
96
+ <ClayProvider theme={ClayLightTheme}>
98
97
  <App />
99
- </BaseProvider>
100
- </StyletronProvider>
98
+ </ClayProvider>
101
99
  </StrictMode>
102
100
  ,
103
101
  )
@@ -0,0 +1,2 @@
1
+ import { AccordionProps } from './types';
2
+ export default function Accordion({ accordion, children, disabled, id, initialState, onChange, overrides, size, stateReducer, renderAll, toggleIcon, }: AccordionProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,10 @@
1
+ export declare const ACCORDION_SIZE: {
2
+ compact: string;
3
+ standard: string;
4
+ };
5
+ export declare const PANEL_ARTWORK_SIZE: {
6
+ CUSTOM: string;
7
+ SMALL: "SMALL";
8
+ MEDIUM: "MEDIUM";
9
+ LARGE: "LARGE";
10
+ };
@@ -0,0 +1,4 @@
1
+ export { default as Accordion } from './accordion';
2
+ export { Panel, PanelTitle } from './panel';
3
+ export * from './types';
4
+ export * from './constants';
@@ -0,0 +1,20 @@
1
+ import { default as React } from 'react';
2
+ import { PanelTitleProps } from './types';
3
+ export declare function PanelTitle({ artwork, artworkSize, title, subtitle, }: PanelTitleProps): import("react/jsx-runtime").JSX.Element;
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>>;
@@ -0,0 +1,18 @@
1
+ import { default as React } from 'react';
2
+ import { AccordionProps as BaseAccordionProps, PanelProps as BasePanelProps } from 'baseui/accordion';
3
+ import { Icon } from 'baseui/icon';
4
+ import { ACCORDION_SIZE, PANEL_ARTWORK_SIZE } from './constants';
5
+ export interface AccordionProps extends BaseAccordionProps {
6
+ id?: string;
7
+ size: keyof typeof ACCORDION_SIZE;
8
+ toggleIcon?: React.ReactElement<typeof Icon>;
9
+ }
10
+ export type PanelProps = BasePanelProps & {
11
+ id?: string;
12
+ };
13
+ export interface PanelTitleProps {
14
+ artwork?: React.ReactNode;
15
+ artworkSize?: keyof typeof PANEL_ARTWORK_SIZE;
16
+ subtitle?: React.ReactNode;
17
+ title: React.ReactNode;
18
+ }
@@ -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,6 @@
1
+ import { HintDotProps } from 'baseui/badge';
2
+ import { BadgeStyle } from './types';
3
+ export type HintBadgeProps = {
4
+ style?: BadgeStyle;
5
+ } & Omit<HintDotProps, "color">;
6
+ export default function HintBadge({ style, overrides, ...restProps }: HintBadgeProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ export { default as HintBadge } from './hint';
2
+ export type { HintBadgeProps } from './hint';
3
+ export { default as NotificationBadge } from './notification';
4
+ export type { NotificationBadgeProps } from './notification';
5
+ export * from './types';
@@ -0,0 +1,9 @@
1
+ import { NotificationCircleProps } from 'baseui/badge';
2
+ import { BadgeStyle } from './types';
3
+ type NotificationBadgeSize = "small" | "medium";
4
+ export type NotificationBadgeProps = {
5
+ size?: NotificationBadgeSize;
6
+ style?: BadgeStyle;
7
+ } & Omit<NotificationCircleProps, "color">;
8
+ export default function NotificationBadge({ size, style, overrides, ...restProps }: NotificationBadgeProps): import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -0,0 +1,2 @@
1
+ import { Color } from 'baseui/badge';
2
+ export type BadgeStyle = Exclude<Color, "primary">;
@@ -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, ...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;
@@ -0,0 +1,2 @@
1
+ export * from './breadcrumbs';
2
+ export { StyledSeparator as BreadcrumbStyledSeparator } from 'baseui/breadcrumbs';
@@ -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 default function Button({ $as, children, colors, disabled, endEnhancer, href, isLoading, isSelected, kind, onClick, overrides, shape, size, startEnhancer, target, type, }: ButtonProps): import("react/jsx-runtime").JSX.Element;
4
+ export declare function Button({ id, "data-attr": dataAttr, disabled, kind, overrides, size, forwardedRef, width, ...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';
@@ -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 getButtonOverrides({ overrides, kind, disabled }: ButtonProps): import('baseui/helpers/overrides').Overrides<any>;
17
+ export declare function getButtonIconSize(size: ButtonProps["size"]): "16px" | "24px" | "20px" | "12px";
18
+ export declare function getButtonOverrides({ overrides, kind, disabled, width, }: ButtonProps): import('baseui/helpers/overrides').Overrides<any>;
@@ -1,9 +1,13 @@
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;
8
12
  }
9
13
  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 './constants';
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 SIZE;
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 default function IconButton({ $as, children, colors, disabled, href, isLoading, isSelected, kind, onClick, overrides, shape, size, target, type, }: ButtonIconProps): import("react/jsx-runtime").JSX.Element;
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;
@@ -1,4 +1,3 @@
1
1
  export { default as ButtonIcon } from './button-icon';
2
2
  export { KIND as BUTTON_ICON_KIND, SHAPE as BUTTON_ICON_SHAPE, SIZE as BUTTON_ICON_SIZE, } from './constants';
3
- export { getIconSize } from './overrides';
4
3
  export type { ButtonIconProps } from './types';
@@ -0,0 +1,13 @@
1
+ import { ReactElement } from 'react';
2
+ import { StyleObject } from 'styletron-react';
3
+ export declare function CardTitleSkeleton(): import("react/jsx-runtime").JSX.Element;
4
+ export declare function CardBodySkeleton({ width }: {
5
+ width: string;
6
+ }): import("react/jsx-runtime").JSX.Element;
7
+ export declare function CardBodyFullWidthSkeleton({ $style, }: {
8
+ $style?: StyleObject;
9
+ }): import("react/jsx-runtime").JSX.Element;
10
+ export declare function CardFooterSkeleton(): import("react/jsx-runtime").JSX.Element;
11
+ export declare function CardThumbnailSkeleton(): import("react/jsx-runtime").JSX.Element;
12
+ export declare function CardHeaderImageSkeleton(): import("react/jsx-runtime").JSX.Element;
13
+ export declare function getCardSkeleton(component: ReactElement): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,24 @@
1
+ import { ComponentProps } from 'react';
2
+ import { StyledAction as BaseUiStyledAction, StyledThumbnail as BaseUiStyledThumbnail } from 'baseui/card';
3
+ import { ButtonProps } from '../button';
4
+ import { CardProps } from './types';
5
+ export declare function Card({ withBorder, backgroundColor, backgroundImage, loading, format, overrides, title, children, headerImage, thumbnail, action, id, ...props }: CardProps): import("react/jsx-runtime").JSX.Element;
6
+ export type CardBodyFullWidthProps = ComponentProps<typeof BaseUiStyledAction>;
7
+ export declare function CardBodyFullWidth({ children, $style, ...restProps }: CardBodyFullWidthProps): import("react/jsx-runtime").JSX.Element;
8
+ export declare namespace CardBodyFullWidth {
9
+ var displayName: string;
10
+ }
11
+ export type CardFooterProps = ComponentProps<typeof BaseUiStyledAction>;
12
+ export declare function CardFooter({ children, $style, ...restProps }: CardFooterProps): import("react/jsx-runtime").JSX.Element;
13
+ export declare namespace CardFooter {
14
+ var displayName: string;
15
+ }
16
+ export declare function CardFooterButton({ children, ...restProps }: ButtonProps): import("react/jsx-runtime").JSX.Element;
17
+ export declare namespace CardFooterButton {
18
+ var displayName: string;
19
+ }
20
+ export type CardThumbnailProps = ComponentProps<typeof BaseUiStyledThumbnail>;
21
+ export declare function CardThumbnail({ $style, ...restProps }: CardThumbnailProps): import("react/jsx-runtime").JSX.Element;
22
+ export declare namespace CardThumbnail {
23
+ var displayName: string;
24
+ }
@@ -0,0 +1,7 @@
1
+ import { CardProps } from './types';
2
+ export declare const CardContext: import('react').Context<{
3
+ format: CardProps["format"];
4
+ }>;
5
+ export declare const useCardContext: () => {
6
+ format: CardProps["format"];
7
+ };
@@ -0,0 +1,3 @@
1
+ export { StyledBody as CardBody, StyledTitle as CardTitle } from 'baseui/card';
2
+ export * from './card';
3
+ export * from './types';
@@ -0,0 +1,10 @@
1
+ import { CardProps as BaseUiCardProps } from 'baseui/card';
2
+ export type CardFormat = "isolated" | "feed";
3
+ export type CardProps = {
4
+ withBorder?: boolean;
5
+ backgroundColor?: string;
6
+ backgroundImage?: string;
7
+ loading?: boolean;
8
+ format?: CardFormat;
9
+ id?: string;
10
+ } & BaseUiCardProps;
@@ -0,0 +1,5 @@
1
+ import { CheckboxProps as BaseCheckboxProps } from 'baseui/checkbox';
2
+ export type CheckboxProps = BaseCheckboxProps & {
3
+ prefilled?: boolean;
4
+ };
5
+ export declare function Checkbox({ overrides, checked, disabled, error, prefilled, ...restProps }: CheckboxProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './checkbox';