@bspk/ui 1.0.0 → 1.0.1
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/{Profile.d.ts → Avatar.d.ts} +11 -13
- package/{Profile.js → Avatar.js} +12 -14
- package/Avatar.js.map +1 -0
- package/ListItem.d.ts +2 -2
- package/ListItem.js +2 -2
- package/ListItem.js.map +1 -1
- package/MenuButton.d.ts +2 -3
- package/MenuButton.js +1 -1
- package/MenuButton.js.map +1 -1
- package/meta.d.ts +2 -2
- package/meta.js +188 -188
- package/meta.js.map +1 -1
- package/package.json +3 -3
- package/src/{Profile.tsx → Avatar.tsx} +18 -20
- package/src/ListItem.tsx +3 -3
- package/src/MenuButton.tsx +2 -5
- package/src/meta.ts +191 -191
- package/src/utils/errors.tsx +9 -4
- package/utils/errors.d.ts +1 -4
- package/utils/errors.js +7 -3
- package/utils/errors.js.map +1 -1
- package/Profile.js.map +0 -1
- package/styles/anywhere.css +0 -1693
- package/styles/anywhere.ts +0 -1694
- package/styles/base.css +0 -160
- package/styles/base.ts +0 -161
- package/styles/better-homes-gardens.css +0 -1693
- package/styles/better-homes-gardens.ts +0 -1694
- package/styles/cartus.css +0 -1691
- package/styles/cartus.ts +0 -1692
- package/styles/century-21.css +0 -1689
- package/styles/century-21.ts +0 -1690
- package/styles/coldwell-banker.css +0 -1691
- package/styles/coldwell-banker.ts +0 -1692
- package/styles/corcoran.css +0 -1685
- package/styles/corcoran.ts +0 -1686
- package/styles/denali-boss.css +0 -1681
- package/styles/denali-boss.ts +0 -1682
- package/styles/era.css +0 -1685
- package/styles/era.ts +0 -1686
- package/styles/sothebys.css +0 -1677
- package/styles/sothebys.ts +0 -1678
|
@@ -2,40 +2,38 @@ import { ReactNode } from 'react';
|
|
|
2
2
|
import { ColorVariant } from './utils/colorVariants';
|
|
3
3
|
import { CommonProps } from '.';
|
|
4
4
|
export type SizeVariant = 'large' | 'medium' | 'small' | 'x-large' | 'x-small' | 'xx-large' | 'xxx-large' | 'xxxx-large' | 'xxxxx-large';
|
|
5
|
-
export type
|
|
5
|
+
export type AvatarProps = CommonProps<'aria-label'> & {
|
|
6
6
|
/**
|
|
7
|
-
* The size of the
|
|
7
|
+
* The size of the avatar.
|
|
8
8
|
*
|
|
9
9
|
* @default small
|
|
10
10
|
*/
|
|
11
11
|
size?: SizeVariant;
|
|
12
12
|
/**
|
|
13
|
-
* The color of the
|
|
13
|
+
* The color of the avatar.
|
|
14
14
|
*
|
|
15
15
|
* @default grey
|
|
16
16
|
*/
|
|
17
17
|
color?: ColorVariant;
|
|
18
|
-
/** The initials to display in the
|
|
18
|
+
/** The initials to display in the avatar limited to 2 characters. */
|
|
19
19
|
initials?: string;
|
|
20
|
-
/** The icon to display in the
|
|
20
|
+
/** The icon to display in the avatar. */
|
|
21
21
|
icon?: ReactNode;
|
|
22
|
-
/** The url to the image to display in the
|
|
22
|
+
/** The url to the image to display in the avatar. */
|
|
23
23
|
image?: string;
|
|
24
24
|
/** The number of notifications not displayed in a list. */
|
|
25
25
|
overflowCount?: number;
|
|
26
26
|
};
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
* A profile is a visual representation of a user or entity. It can be used to display an initials, icon, image, or an
|
|
28
|
+
* An avatar is a visual representation of a user or entity. It can be used to display an initials, icon, image, or an
|
|
31
29
|
* overflowCount.
|
|
32
30
|
*
|
|
33
|
-
* @name
|
|
31
|
+
* @name Avatar
|
|
34
32
|
*/
|
|
35
|
-
declare function
|
|
36
|
-
declare namespace
|
|
33
|
+
declare function Avatar({ initials, color, size, icon, image, 'aria-label': ariaLabel, overflowCount, }: AvatarProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
34
|
+
declare namespace Avatar {
|
|
37
35
|
var bspkName: string;
|
|
38
36
|
}
|
|
39
|
-
export {
|
|
37
|
+
export { Avatar };
|
|
40
38
|
export declare const style: import("@emotion/react").SerializedStyles;
|
|
41
39
|
/** Copyright 2025 Anywhere Real Estate - CC BY 4.0 */
|
package/{Profile.js → Avatar.js}
RENAMED
|
@@ -8,21 +8,19 @@ const SIZE_VARIANTS = {
|
|
|
8
8
|
small: { font: '--labels-small', height: '--spacing-sizing-08' }, // 32,
|
|
9
9
|
medium: { font: '--labels-base', height: '--spacing-sizing-10' }, // 40
|
|
10
10
|
large: { font: '--labels-large', height: '--spacing-sizing-12' }, //48,
|
|
11
|
-
'x-large': { font: '--
|
|
12
|
-
'xx-large': { font: '--
|
|
13
|
-
'xxx-large': { font: '--
|
|
14
|
-
'xxxx-large': { font: '--
|
|
15
|
-
'xxxxx-large': { font: '--
|
|
11
|
+
'x-large': { font: '--subheader-x-large', height: '--spacing-sizing-14' }, // 56,
|
|
12
|
+
'xx-large': { font: '--subheader-xx-large', height: '--spacing-sizing-17' }, // 72,
|
|
13
|
+
'xxx-large': { font: '--display-regular-small', height: '--spacing-sizing-19' }, //96,
|
|
14
|
+
'xxxx-large': { font: '--display-regular-medium', height: '--spacing-sizing-21' }, // 120,
|
|
15
|
+
'xxxxx-large': { font: '--display-regular-large', height: '--spacing-sizing-23' }, //144,
|
|
16
16
|
};
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
* A profile is a visual representation of a user or entity. It can be used to display an initials, icon, image, or an
|
|
18
|
+
* An avatar is a visual representation of a user or entity. It can be used to display an initials, icon, image, or an
|
|
21
19
|
* overflowCount.
|
|
22
20
|
*
|
|
23
|
-
* @name
|
|
21
|
+
* @name Avatar
|
|
24
22
|
*/
|
|
25
|
-
function
|
|
23
|
+
function Avatar({ initials, color = 'grey', size = 'small', icon, image, 'aria-label': ariaLabel, overflowCount, }) {
|
|
26
24
|
const children = useMemo(() => {
|
|
27
25
|
if (initials)
|
|
28
26
|
return jsx("span", { "data-initials": true, children: initials });
|
|
@@ -34,9 +32,9 @@ function Profile({ initials, color = 'grey', size = 'small', icon, image, 'aria-
|
|
|
34
32
|
return jsxs("span", { "data-overflow-count": true, children: ["+", overflowCount] });
|
|
35
33
|
return null;
|
|
36
34
|
}, [ariaLabel, icon, image, initials, overflowCount]);
|
|
37
|
-
return (jsx(Fragment, { children: children && (jsx("div", { "aria-label": ariaLabel, css: style, "data-
|
|
35
|
+
return (jsx(Fragment, { children: children && (jsx("div", { "aria-label": ariaLabel, css: style, "data-avatar": "", "data-color": color, "data-size": size, children: children })) }));
|
|
38
36
|
}
|
|
39
|
-
|
|
37
|
+
Avatar.bspkName = 'Avatar';
|
|
40
38
|
const style = css `
|
|
41
39
|
--height: var(--spacing-sizing-10);
|
|
42
40
|
--font: var(--labels-base);
|
|
@@ -79,5 +77,5 @@ const style = css `
|
|
|
79
77
|
`)};
|
|
80
78
|
`;
|
|
81
79
|
|
|
82
|
-
export {
|
|
83
|
-
//# sourceMappingURL=
|
|
80
|
+
export { Avatar, style };
|
|
81
|
+
//# sourceMappingURL=Avatar.js.map
|
package/Avatar.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Avatar.js","sources":["src/Avatar.tsx"],"sourcesContent":[null],"names":["_jsx","_jsxs"],"mappings":";;;;;AAkBA,MAAM,aAAa,GAA0D;IACzE,SAAS,EAAE,EAAE,IAAI,EAAE,kBAAkB,EAAE,MAAM,EAAE,qBAAqB,EAAE;IACtE,KAAK,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE,MAAM,EAAE,qBAAqB,EAAE;IAChE,MAAM,EAAE,EAAE,IAAI,EAAE,eAAe,EAAE,MAAM,EAAE,qBAAqB,EAAE;IAChE,KAAK,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE,MAAM,EAAE,qBAAqB,EAAE;IAChE,SAAS,EAAE,EAAE,IAAI,EAAE,qBAAqB,EAAE,MAAM,EAAE,qBAAqB,EAAE;IACzE,UAAU,EAAE,EAAE,IAAI,EAAE,sBAAsB,EAAE,MAAM,EAAE,qBAAqB,EAAE;IAC3E,WAAW,EAAE,EAAE,IAAI,EAAE,yBAAyB,EAAE,MAAM,E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A,EAAa,IAAI,EAAA,QAAA,EACpF,QAAQ,EACP,CAAA,CACT,EACF,CAAA,EACL;AACN,CAAC;AAED,MAAM,CAAC,QAAQ,GAAG,QAAQ,CAAC;AAIpB,MAAM,KAAK,GAAG,GAAG,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;MA2BlB,MAAM,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,GAAG,CAC/B,CAAC,CAAC,OAAO,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,KAAK,GAAG,CAAA,CAAA;2BACjB,OAAO,CAAA;gCACF,MAAM,CAAA;8BACR,IAAI,CAAA;;SAEzB,CACJ,CAAA;;MAEC,MAAM,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC,GAAG,CACjC,CAAC,CAAC,OAAO,EAAE,EAAE,UAAU,EAAE,OAAO,EAAE,CAAC,KAAK,GAAG,CAAA,CAAA;4BACvB,OAAO,CAAA;oCACC,UAAU,CAAA;oCACV,OAAO,CAAA;;SAElC,CACJ,CAAA;;;;;"}
|
package/ListItem.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export type ListItemProps<As extends ElementType = 'div'> = CommonProps<'active'
|
|
|
14
14
|
/**
|
|
15
15
|
* The leading element to display in the ListItem.
|
|
16
16
|
*
|
|
17
|
-
* Leading elements may only be one of the following [Icon](/icons), Img,
|
|
17
|
+
* Leading elements may only be one of the following [Icon](/icons), Img, Avatar.
|
|
18
18
|
*/
|
|
19
19
|
leading?: ReactNode;
|
|
20
20
|
/**
|
|
@@ -43,7 +43,7 @@ export type ListItemProps<As extends ElementType = 'div'> = CommonProps<'active'
|
|
|
43
43
|
*
|
|
44
44
|
* The ListItem has three main elements: leading element, label, and trailing element.
|
|
45
45
|
*
|
|
46
|
-
* Leading elements may be one of the following [Icon](/icons), Img,
|
|
46
|
+
* Leading elements may be one of the following [Icon](/icons), Img, Avatar.
|
|
47
47
|
*
|
|
48
48
|
* Trailing elements may be one of the following [Icon](/icons), Checkbox, ListItemButton, Radio, Switch, Tag, Txt.
|
|
49
49
|
*
|
package/ListItem.js
CHANGED
|
@@ -4,7 +4,7 @@ import { Button } from './Button.js';
|
|
|
4
4
|
import { getChildrenElements } from './utils/children.js';
|
|
5
5
|
import { useErrorLogger } from './utils/errors.js';
|
|
6
6
|
|
|
7
|
-
const LEADING_COMPONENTS = Object.freeze(['Icon', 'Img', '
|
|
7
|
+
const LEADING_COMPONENTS = Object.freeze(['Icon', 'Img', 'Avatar']);
|
|
8
8
|
const TRAILING_COMPONENTS = Object.freeze([
|
|
9
9
|
'ListItemButton',
|
|
10
10
|
'Checkbox',
|
|
@@ -22,7 +22,7 @@ const TRAILING_COMPONENTS = Object.freeze([
|
|
|
22
22
|
*
|
|
23
23
|
* The ListItem has three main elements: leading element, label, and trailing element.
|
|
24
24
|
*
|
|
25
|
-
* Leading elements may be one of the following [Icon](/icons), Img,
|
|
25
|
+
* Leading elements may be one of the following [Icon](/icons), Img, Avatar.
|
|
26
26
|
*
|
|
27
27
|
* Trailing elements may be one of the following [Icon](/icons), Checkbox, ListItemButton, Radio, Switch, Tag, Txt.
|
|
28
28
|
*
|
package/ListItem.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListItem.js","sources":["src/ListItem.tsx"],"sourcesContent":[null],"names":["_jsx","_jsxs"],"mappings":";;;;;;AASa,MAAA,kBAAkB,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"ListItem.js","sources":["src/ListItem.tsx"],"sourcesContent":[null],"names":["_jsx","_jsxs"],"mappings":";;;;;;AASa,MAAA,kBAAkB,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,QAAQ,CAAC,EAAE;AAE9D,MAAA,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC;IAC7C,gBAAgB;IAChB,UAAU;IACV,MAAM;IACN,OAAO;IACP,Q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WAAA,EAAc,OAAO,EAAE,IAAI,IAAI,MAAM,CAAA,CAAE,CACnH,CAAC;KACL;IAED,IAAI,QAAQ,EAAE;QACV,MAAM,KAAK,GAAG,mBAAmB,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AAC1D,QAAA,IAAI,CAAC,KAAK;YAAE,QAAQ,GAAG,IAAI,CAAC;AAC5B,QAAA,QAAQ,CACJ,CAAC,KAAK,EACN,wDAAwD,mBAAmB,CAAA,WAAA,EAAc,QAAQ,EAAE,IAAI,IAAI,MAAM,CAAA,CAAE,CACtH,CAAC;KACL;IAED,OAAO;QACH,OAAO;QACP,QAAQ;KACX,CAAC;AACN;;;;"}
|
package/MenuButton.d.ts
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { ElementType } from 'react';
|
|
2
1
|
import { ButtonProps } from './Button';
|
|
3
2
|
import { ElementProps } from '.';
|
|
4
|
-
export type MenuButtonProps
|
|
3
|
+
export type MenuButtonProps = Pick<ButtonProps, 'as' | 'onClick'>;
|
|
5
4
|
/**
|
|
6
5
|
* Utility component used within top navigation.
|
|
7
6
|
*
|
|
8
7
|
* @name MenuButton
|
|
9
8
|
*/
|
|
10
|
-
declare function MenuButton
|
|
9
|
+
declare function MenuButton(props: ElementProps<MenuButtonProps, 'button'>): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
11
10
|
declare namespace MenuButton {
|
|
12
11
|
var bspkName: string;
|
|
13
12
|
}
|
package/MenuButton.js
CHANGED
|
@@ -7,7 +7,7 @@ import { css } from '@emotion/react';
|
|
|
7
7
|
*
|
|
8
8
|
* @name MenuButton
|
|
9
9
|
*/
|
|
10
|
-
function MenuButton(
|
|
10
|
+
function MenuButton(props) {
|
|
11
11
|
return (jsx("button", { ...props, css: style, children: jsx(SvgMenu, {}) }));
|
|
12
12
|
}
|
|
13
13
|
MenuButton.bspkName = 'MenuButton';
|
package/MenuButton.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MenuButton.js","sources":["src/MenuButton.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"MenuButton.js","sources":["src/MenuButton.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":";;;;AASA;;;;AAIG;AACH,SAAS,UAAU,CAAC,KAA8C,EAAA;AAC9D,IAAA,QACIA,GAAA,CAAA,QAAA,EAAA,EAAA,GAAY,KAAK,EAAE,GAAG,EAAE,KAAK,EAAA,QAAA,EACzBA,GAAC,CAAA,OAAO,EAAG,EAAA,CAAA,EAAA,CACN,EACX;AACN,CAAC;AAED,UAAU,CAAC,QAAQ,GAAG,YAAY,CAAC;AAI5B,MAAM,KAAK,GAAG,GAAG,CAAA,CAAA;;;;;;;;;;;;;;;;;"}
|
package/meta.d.ts
CHANGED
|
@@ -40,5 +40,5 @@ export type UtilityMeta = BaseMeta & {
|
|
|
40
40
|
export declare const componentsMeta: ComponentMeta[];
|
|
41
41
|
export declare const utilitiesMeta: UtilityMeta[];
|
|
42
42
|
export declare const typesMeta: TypeMeta[];
|
|
43
|
-
export type MetaTypeName = 'AccordionProps' | 'BadgeProps' | 'BannerAlertProps' | 'BottomNavigationProps' | 'BottomSheetProps' | 'BreadcrumbProps' | 'ButtonDockProps' | 'ButtonProps' | 'CallToActionButton' | 'CardProps' | 'ChartProps' | 'CheckboxGroupOption' | 'CheckboxGroupProps' | 'CheckboxOptionProps' | 'CheckboxProps' | 'ChipProps' | 'CommonProps<"active"|"disabled"|"readOnly">' | 'CommonProps<"aria-label">' | 'CommonProps<"disabled">' | 'CommonProps<"disabled"|"onClick">' | 'CommonProps<"id">' | 'CommonProps<"id"|"disabled">' | 'CommonProps<"invalid"|"disabled"|"readOnly">' | 'CommonProps<"name"|"aria-label">' | 'CommonProps<"name"|"id"|"invalid"|"disabled"|"size"|"aria-label"|"readOnly">' | 'CommonProps<"name"|"invalid"|"disabled"|"aria-label",HTMLInputElement>' | 'CommonProps<"name"|"invalid"|"disabled"|"aria-label",T>' | 'CommonProps<"name"|"required"|"id"|"value"|"invalid"|"disabled"|"size"|"aria-label"|"readOnly">' | 'CommonProps<"name"|"value">' | 'CommonProps<"name"|"value"|"disabled"|"aria-label"|"onClick">' | 'CommonProps<"required"|"errorMessage">' | 'CommonProps<"required"|"id"|"invalid"|"disabled"|"aria-label"|"readOnly">' | 'CommonPropsLibrary' | 'DatePickerProps' | 'DialogProps' | 'DividerProps' | 'DrawerProps' | 'DropdownFieldProps' | 'DropdownOption' | 'DropdownProps' | 'ElementProps' | 'EmptyStateProps' | 'FabProps' | 'FieldControlProps' | 'FileUploadProps' | 'FormFieldProps' | 'ImageProps' | 'ImgProps' | 'InlineAlertProps' | 'LayoutProps' | 'LinkProps' | 'ListItemProps' | 'M' | 'MenuButtonProps' | 'MenuItem' | 'MenuProps' | 'ModalProps' | 'MultiSelectionProps' | 'NavigationRailProps' | 'NavOption' | 'NumberFieldProps' | 'NumberInputProps' | 'OTPInputProps' | 'PageControlProps' | 'PasswordInputProps' | 'PhoneNumberInputProps' | 'Pick<ButtonProps<As>,"icon"|"onClick"|"as"|"showLabel"|"toolTip">' | 'Pick<CheckboxProps,"name"|"value"|"invalid"|"disabled"|"onChange"|"checked"|"indeterminate">' | 'Pick<DropdownProps,"name"|"value"|"disabled"|"options"|"size"|"onChange"|"placeholder"|"readOnly"|"placement"|"itemCount">' | 'Pick<FormFieldProps,"label"|"errorMessage"|"helperText"|"controlId">' | 'Pick<FormFieldProps,"label"|"errorMessage"|"helperText"|"labelTrailing"|"controlId">' | 'Pick<FormFieldProps,"required"|"label"|"errorMessage"|"helperText"|"labelTrailing"|"controlId">' | 'Pick<MenuProps,"itemCount"|"items"|"noResultsMessage">' | 'Pick<MenuProps<M>,"activeIndex"|"isMulti"|"selectedValues">' | 'Pick<MenuProps<O>,"onChange"|"isMulti"|"itemCount"|"renderListItem">' | 'Pick<NumberInputProps,"name"|"id"|"value"|"invalid"|"disabled"|"size"|"onChange"|"readOnly"|"centered">' | 'Pick<RadioProps,"name"|"value"|"invalid"|"disabled"|"onChange"|"checked">' | 'Pick<TextInputProps,"name"|"id"|"size"|"aria-label"|"placeholder"|"inputRef">' | 'Pick<TextInputProps,"name"|"required"|"type"|"value"|"invalid"|"disabled"|"size"|"onChange"|"autoComplete"|"placeholder"|"readOnly"|"leading"|"trailing"|"inputRef">' | 'Pick<ToggleControlProps<HTMLInputElement>,"value">' | 'Pick<ToggleOptionProps,"label"|"description">' | 'Pick<ToggleOptionProps,"label"|"size"|"description">' | 'PopoverProps' | 'PortalProps' | '
|
|
44
|
-
export type MetaComponentName = 'Accordion' | 'Badge' | 'BannerAlert' | 'BottomNavigation' | 'BottomSheet' | 'Breadcrumb' | 'Button' | 'ButtonDock' | 'Card' | 'Chart' | 'Checkbox' | 'CheckboxGroup' | 'CheckboxOption' | 'Chip' | 'DatePicker' | 'Dialog' | 'Divider' | 'Drawer' | 'Dropdown' | 'DropdownField' | 'EmptyState' | 'Fab' | 'FileUpload' | 'FormField' | 'Image' | 'Img' | 'InlineAlert' | 'Layout' | 'Link' | 'ListItem' | 'Menu' | 'MenuButton' | 'Modal' | 'MultiSelection' | 'NavigationRail' | 'NumberField' | 'NumberInput' | 'OTPInput' | 'PageControl' | 'PasswordInput' | 'PhoneNumberInput' | 'Popover' | 'Portal' | '
|
|
43
|
+
export type MetaTypeName = 'AccordionProps' | 'AvatarProps' | 'BadgeProps' | 'BannerAlertProps' | 'BottomNavigationProps' | 'BottomSheetProps' | 'BreadcrumbProps' | 'ButtonDockProps' | 'ButtonProps' | 'CallToActionButton' | 'CardProps' | 'ChartProps' | 'CheckboxGroupOption' | 'CheckboxGroupProps' | 'CheckboxOptionProps' | 'CheckboxProps' | 'ChipProps' | 'CommonProps<"active"|"disabled"|"readOnly">' | 'CommonProps<"aria-label">' | 'CommonProps<"disabled">' | 'CommonProps<"disabled"|"onClick">' | 'CommonProps<"id">' | 'CommonProps<"id"|"disabled">' | 'CommonProps<"invalid"|"disabled"|"readOnly">' | 'CommonProps<"name"|"aria-label">' | 'CommonProps<"name"|"id"|"invalid"|"disabled"|"size"|"aria-label"|"readOnly">' | 'CommonProps<"name"|"invalid"|"disabled"|"aria-label",HTMLInputElement>' | 'CommonProps<"name"|"invalid"|"disabled"|"aria-label",T>' | 'CommonProps<"name"|"required"|"id"|"value"|"invalid"|"disabled"|"size"|"aria-label"|"readOnly">' | 'CommonProps<"name"|"value">' | 'CommonProps<"name"|"value"|"disabled"|"aria-label"|"onClick">' | 'CommonProps<"required"|"errorMessage">' | 'CommonProps<"required"|"id"|"invalid"|"disabled"|"aria-label"|"readOnly">' | 'CommonPropsLibrary' | 'DatePickerProps' | 'DialogProps' | 'DividerProps' | 'DrawerProps' | 'DropdownFieldProps' | 'DropdownOption' | 'DropdownProps' | 'ElementProps' | 'EmptyStateProps' | 'FabProps' | 'FieldControlProps' | 'FileUploadProps' | 'FormFieldProps' | 'ImageProps' | 'ImgProps' | 'InlineAlertProps' | 'LayoutProps' | 'LinkProps' | 'ListItemProps' | 'M' | 'MenuButtonProps' | 'MenuItem' | 'MenuProps' | 'ModalProps' | 'MultiSelectionProps' | 'NavigationRailProps' | 'NavOption' | 'NumberFieldProps' | 'NumberInputProps' | 'OTPInputProps' | 'PageControlProps' | 'PasswordInputProps' | 'PhoneNumberInputProps' | 'Pick<ButtonProps<As>,"icon"|"onClick"|"as"|"showLabel"|"toolTip">' | 'Pick<CheckboxProps,"name"|"value"|"invalid"|"disabled"|"onChange"|"checked"|"indeterminate">' | 'Pick<DropdownProps,"name"|"value"|"disabled"|"options"|"size"|"onChange"|"placeholder"|"readOnly"|"placement"|"itemCount">' | 'Pick<FormFieldProps,"label"|"errorMessage"|"helperText"|"controlId">' | 'Pick<FormFieldProps,"label"|"errorMessage"|"helperText"|"labelTrailing"|"controlId">' | 'Pick<FormFieldProps,"required"|"label"|"errorMessage"|"helperText"|"labelTrailing"|"controlId">' | 'Pick<MenuProps,"itemCount"|"items"|"noResultsMessage">' | 'Pick<MenuProps<M>,"activeIndex"|"isMulti"|"selectedValues">' | 'Pick<MenuProps<O>,"onChange"|"isMulti"|"itemCount"|"renderListItem">' | 'Pick<NumberInputProps,"name"|"id"|"value"|"invalid"|"disabled"|"size"|"onChange"|"readOnly"|"centered">' | 'Pick<RadioProps,"name"|"value"|"invalid"|"disabled"|"onChange"|"checked">' | 'Pick<TextInputProps,"name"|"id"|"size"|"aria-label"|"placeholder"|"inputRef">' | 'Pick<TextInputProps,"name"|"required"|"type"|"value"|"invalid"|"disabled"|"size"|"onChange"|"autoComplete"|"placeholder"|"readOnly"|"leading"|"trailing"|"inputRef">' | 'Pick<ToggleControlProps<HTMLInputElement>,"value">' | 'Pick<ToggleOptionProps,"label"|"description">' | 'Pick<ToggleOptionProps,"label"|"size"|"description">' | 'PopoverProps' | 'PortalProps' | 'ProgressBarProps' | 'ProgressCircleProps' | 'ProgressionStepperBarProps' | 'ProgressionStepperItem' | 'ProgressionStepperProps' | 'RadioGroupOption' | 'RadioGroupProps' | 'RadioOptionProps' | 'RadioProps' | 'RatingProps' | 'RenderListItemParams' | 'Required<CommonProps<"value",HTMLElement>>' | 'Required<CommonProps<"value">>' | 'Required<Pick<ButtonProps<As>,"label">>' | 'SearchBarProps' | 'SegmentedControlProps' | 'SegmentedToggleOption' | 'SkeletonProps' | 'SliderInputProps' | 'SnackbarProps' | 'SwitchGroupOption' | 'SwitchGroupProps' | 'SwitchOptionProps' | 'SwitchProps' | 'TabGroupOption' | 'TabGroupProps' | 'TableColumn' | 'TableProps' | 'TagProps' | 'TextareaFieldProps' | 'TextareaProps' | 'TextFieldProps' | 'TextInputProps' | 'TimePickerProps' | 'ToggleControlProps' | 'ToggleOptionProps' | 'TooltipProps' | 'TopNavigationProps' | 'TxtProps';
|
|
44
|
+
export type MetaComponentName = 'Accordion' | 'Avatar' | 'Badge' | 'BannerAlert' | 'BottomNavigation' | 'BottomSheet' | 'Breadcrumb' | 'Button' | 'ButtonDock' | 'Card' | 'Chart' | 'Checkbox' | 'CheckboxGroup' | 'CheckboxOption' | 'Chip' | 'DatePicker' | 'Dialog' | 'Divider' | 'Drawer' | 'Dropdown' | 'DropdownField' | 'EmptyState' | 'Fab' | 'FileUpload' | 'FormField' | 'Image' | 'Img' | 'InlineAlert' | 'Layout' | 'Link' | 'ListItem' | 'Menu' | 'MenuButton' | 'Modal' | 'MultiSelection' | 'NavigationRail' | 'NumberField' | 'NumberInput' | 'OTPInput' | 'PageControl' | 'PasswordInput' | 'PhoneNumberInput' | 'Popover' | 'Portal' | 'ProgressBar' | 'ProgressCircle' | 'ProgressionStepper' | 'ProgressionStepperBar' | 'Radio' | 'RadioGroup' | 'RadioOption' | 'Rating' | 'SearchBar' | 'SegmentedControl' | 'Skeleton' | 'SliderInput' | 'Snackbar' | 'StylesProviderAnywhere' | 'StylesProviderBetterHomesGardens' | 'StylesProviderCartus' | 'StylesProviderCentury21' | 'StylesProviderColdwellBanker' | 'StylesProviderCorcoran' | 'StylesProviderDenaliBoss' | 'StylesProviderEra' | 'StylesProviderSothebys' | 'Switch' | 'SwitchGroup' | 'SwitchOption' | 'TabGroup' | 'Table' | 'Tag' | 'Textarea' | 'TextareaField' | 'TextField' | 'TextInput' | 'TimePicker' | 'ToggleOption' | 'Tooltip' | 'TopNavigation' | 'Txt';
|