@react-md/list
Advanced tools
Comparing version 5.0.0 to 5.1.0
@@ -6,2 +6,14 @@ # Change Log | ||
# [5.1.0](https://github.com/mlaursen/react-md/compare/v5.0.0...v5.1.0) (2022-03-18) | ||
### Other Internal Changes | ||
* run lint-scripts --fix for consistent-type-imports ([42d839d](https://github.com/mlaursen/react-md/commit/42d839d359922e0a8ee3775a75162b9755a2c2b6)) | ||
# [5.0.0](https://github.com/mlaursen/react-md/compare/v4.0.3...v5.0.0) (2022-01-31) | ||
@@ -8,0 +20,0 @@ |
@@ -36,4 +36,4 @@ var __assign = (this && this.__assign) || function () { | ||
var Component = (ordered ? "ol" : "ul"); | ||
return (_jsx(Component, __assign({}, props, { ref: ref, role: role, className: cn(block({ dense: dense, horizontal: horizontal }), className) }, { children: children }), void 0)); | ||
return (_jsx(Component, __assign({}, props, { ref: ref, role: role, className: cn(block({ dense: dense, horizontal: horizontal }), className) }, { children: children }))); | ||
}); | ||
//# sourceMappingURL=List.js.map |
@@ -25,3 +25,3 @@ var __assign = (this && this.__assign) || function () { | ||
import { forwardRef } from "react"; | ||
import { useInteractionStates, } from "@react-md/states"; | ||
import { useInteractionStates } from "@react-md/states"; | ||
import { getListItemHeight } from "./getListItemHeight"; | ||
@@ -58,4 +58,4 @@ import { ListItemChildren } from "./ListItemChildren"; | ||
}); | ||
return (_jsxs(SimpleListItem, __assign({}, props, handlers, { ref: ref, tabIndex: tabIndex, disabled: disabled, role: role, className: className, clickable: true, height: height }, { children: [_jsx(ListItemChildren, __assign({ textClassName: textClassName, secondaryTextClassName: secondaryTextClassName, textChildren: textChildren, primaryText: primaryText, secondaryText: secondaryText, leftAddon: leftAddon, leftAddonType: leftAddonType, leftAddonPosition: leftAddonPosition, rightAddon: rightAddon, rightAddonType: rightAddonType, rightAddonPosition: rightAddonPosition, forceAddonWrap: forceAddonWrap }, { children: children }), void 0), ripples] }), void 0)); | ||
return (_jsxs(SimpleListItem, __assign({}, props, handlers, { ref: ref, tabIndex: tabIndex, disabled: disabled, role: role, className: className, clickable: true, height: height }, { children: [_jsx(ListItemChildren, __assign({ textClassName: textClassName, secondaryTextClassName: secondaryTextClassName, textChildren: textChildren, primaryText: primaryText, secondaryText: secondaryText, leftAddon: leftAddon, leftAddonType: leftAddonType, leftAddonPosition: leftAddonPosition, rightAddon: rightAddon, rightAddonType: rightAddonType, rightAddonPosition: rightAddonPosition, forceAddonWrap: forceAddonWrap }, { children: children })), ripples] }))); | ||
}); | ||
//# sourceMappingURL=ListItem.js.map |
@@ -43,4 +43,4 @@ var __assign = (this && this.__assign) || function () { | ||
_b["media-large"] = type === "large-media", | ||
_b)), className), iconAfter: addonAfter }, { children: children }), void 0)); | ||
_b)), className), iconAfter: addonAfter }, { children: children }))); | ||
} | ||
//# sourceMappingURL=ListItemAddon.js.map |
@@ -13,3 +13,3 @@ var __assign = (this && this.__assign) || function () { | ||
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime"; | ||
import { ListItemAddon, } from "./ListItemAddon"; | ||
import { ListItemAddon } from "./ListItemAddon"; | ||
import { ListItemText } from "./ListItemText"; | ||
@@ -32,8 +32,8 @@ /** | ||
if (primaryText || secondaryText || textChildren) { | ||
children = (_jsx(ListItemText, __assign({ className: textClassName, secondaryText: secondaryText, secondaryTextClassName: secondaryTextClassName }, { children: (textChildren && children) || primaryText }), void 0)); | ||
children = (_jsx(ListItemText, __assign({ className: textClassName, secondaryText: secondaryText, secondaryTextClassName: secondaryTextClassName }, { children: (textChildren && children) || primaryText }))); | ||
} | ||
children = (_jsx(ListItemAddon, __assign({ addon: leftAddon, type: leftAddonType, position: leftAddonPosition, forceAddonWrap: forceAddonWrap }, { children: children }), void 0)); | ||
children = (_jsx(ListItemAddon, __assign({ addon: rightAddon, addonAfter: true, type: rightAddonType, position: rightAddonPosition, forceAddonWrap: forceAddonWrap }, { children: children }), void 0)); | ||
return (_jsxs(_Fragment, { children: [children, (primaryText && stringifiedChildren) || null] }, void 0)); | ||
children = (_jsx(ListItemAddon, __assign({ addon: leftAddon, type: leftAddonType, position: leftAddonPosition, forceAddonWrap: forceAddonWrap }, { children: children }))); | ||
children = (_jsx(ListItemAddon, __assign({ addon: rightAddon, addonAfter: true, type: rightAddonType, position: rightAddonPosition, forceAddonWrap: forceAddonWrap }, { children: children }))); | ||
return (_jsxs(_Fragment, { children: [children, (primaryText && stringifiedChildren) || null] })); | ||
} | ||
//# sourceMappingURL=ListItemChildren.js.map |
@@ -26,3 +26,3 @@ var __assign = (this && this.__assign) || function () { | ||
import cn from "classnames"; | ||
import { useInteractionStates, } from "@react-md/states"; | ||
import { useInteractionStates } from "@react-md/states"; | ||
import { getListItemHeight } from "./getListItemHeight"; | ||
@@ -61,4 +61,4 @@ import { ListItemChildren } from "./ListItemChildren"; | ||
_b["rmd-list-item--three-lines"] = !!secondaryText && threeLines, | ||
_b), className) }, { children: [_jsx(ListItemChildren, __assign({ textClassName: textClassName, secondaryTextClassName: secondaryTextClassName, textChildren: textChildren, primaryText: primaryText, secondaryText: secondaryText, leftAddon: leftAddon, leftAddonType: leftAddonType, leftAddonPosition: leftAddonPosition, rightAddon: rightAddon, rightAddonType: rightAddonType, rightAddonPosition: rightAddonPosition, forceAddonWrap: forceAddonWrap }, { children: children }), void 0), ripples] }), void 0)); | ||
_b), className) }, { children: [_jsx(ListItemChildren, __assign({ textClassName: textClassName, secondaryTextClassName: secondaryTextClassName, textChildren: textChildren, primaryText: primaryText, secondaryText: secondaryText, leftAddon: leftAddon, leftAddonType: leftAddonType, leftAddonPosition: leftAddonPosition, rightAddon: rightAddon, rightAddonType: rightAddonType, rightAddonPosition: rightAddonPosition, forceAddonWrap: forceAddonWrap }, { children: children })), ripples] }))); | ||
}); | ||
//# sourceMappingURL=ListItemLink.js.map |
@@ -24,6 +24,6 @@ var __assign = (this && this.__assign) || function () { | ||
if (secondaryText) { | ||
secondaryContent = (_jsx("span", __assign({ className: cn(block("text", { secondary: true }), secondaryTextClassName) }, { children: secondaryText }), void 0)); | ||
secondaryContent = (_jsx("span", __assign({ className: cn(block("text", { secondary: true }), secondaryTextClassName) }, { children: secondaryText }))); | ||
} | ||
return (_jsxs("span", __assign({ className: cn(block("text"), className) }, { children: [children, secondaryContent] }), void 0)); | ||
return (_jsxs("span", __assign({ className: cn(block("text"), className) }, { children: [children, secondaryContent] }))); | ||
} | ||
//# sourceMappingURL=ListItemText.js.map |
@@ -35,4 +35,4 @@ var __assign = (this && this.__assign) || function () { | ||
var className = _a.className, _b = _a.inset, inset = _b === void 0 ? false : _b, props = __rest(_a, ["className", "inset"]); | ||
return (_jsx("li", __assign({}, props, { ref: ref, className: cn(block({ inset: inset }), className) }), void 0)); | ||
return (_jsx("li", __assign({}, props, { ref: ref, className: cn(block({ inset: inset }), className) }))); | ||
}); | ||
//# sourceMappingURL=ListSubheader.js.map |
@@ -60,4 +60,4 @@ var __assign = (this && this.__assign) || function () { | ||
_b["disabled-opacity"] = isDisabled && disabledOpacity, | ||
_b)), className), onClick: isDisabled ? undefined : onClick }, { children: _jsx(ListItemChildren, __assign({ textClassName: textClassName, secondaryTextClassName: secondaryTextClassName, textChildren: textChildren, primaryText: primaryText, secondaryText: secondaryText, leftAddon: leftAddon, leftAddonType: leftAddonType, leftAddonPosition: leftAddonPosition, rightAddon: rightAddon, rightAddonType: rightAddonType, rightAddonPosition: rightAddonPosition, forceAddonWrap: forceAddonWrap }, { children: children }), void 0) }), void 0)); | ||
_b)), className), onClick: isDisabled ? undefined : onClick }, { children: _jsx(ListItemChildren, __assign({ textClassName: textClassName, secondaryTextClassName: secondaryTextClassName, textChildren: textChildren, primaryText: primaryText, secondaryText: secondaryText, leftAddon: leftAddon, leftAddonType: leftAddonType, leftAddonPosition: leftAddonPosition, rightAddon: rightAddon, rightAddonType: rightAddonType, rightAddonPosition: rightAddonPosition, forceAddonWrap: forceAddonWrap }, { children: children })) }))); | ||
}); | ||
//# sourceMappingURL=SimpleListItem.js.map |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
@@ -6,0 +10,0 @@ if (k2 === undefined) k2 = k; |
@@ -1,2 +0,2 @@ | ||
import { HTMLAttributes } from "react"; | ||
import type { HTMLAttributes } from "react"; | ||
export declare type ListElement = HTMLUListElement | HTMLOListElement; | ||
@@ -3,0 +3,0 @@ export interface ListProps extends HTMLAttributes<ListElement> { |
@@ -42,4 +42,4 @@ "use strict"; | ||
var Component = (ordered ? "ol" : "ul"); | ||
return ((0, jsx_runtime_1.jsx)(Component, __assign({}, props, { ref: ref, role: role, className: (0, classnames_1.default)(block({ dense: dense, horizontal: horizontal }), className) }, { children: children }), void 0)); | ||
return ((0, jsx_runtime_1.jsx)(Component, __assign({}, props, { ref: ref, role: role, className: (0, classnames_1.default)(block({ dense: dense, horizontal: horizontal }), className) }, { children: children }))); | ||
}); | ||
//# sourceMappingURL=List.js.map |
/// <reference types="react" /> | ||
import { InteractionStatesOptions } from "@react-md/states"; | ||
import { SimpleListItemProps } from "./getListItemHeight"; | ||
import type { InteractionStatesOptions } from "@react-md/states"; | ||
import type { SimpleListItemProps } from "./getListItemHeight"; | ||
export interface ListItemProps extends SimpleListItemProps, InteractionStatesOptions<HTMLLIElement> { | ||
@@ -5,0 +5,0 @@ /** |
@@ -60,4 +60,4 @@ "use strict"; | ||
}); | ||
return ((0, jsx_runtime_1.jsxs)(SimpleListItem_1.SimpleListItem, __assign({}, props, handlers, { ref: ref, tabIndex: tabIndex, disabled: disabled, role: role, className: className, clickable: true, height: height }, { children: [(0, jsx_runtime_1.jsx)(ListItemChildren_1.ListItemChildren, __assign({ textClassName: textClassName, secondaryTextClassName: secondaryTextClassName, textChildren: textChildren, primaryText: primaryText, secondaryText: secondaryText, leftAddon: leftAddon, leftAddonType: leftAddonType, leftAddonPosition: leftAddonPosition, rightAddon: rightAddon, rightAddonType: rightAddonType, rightAddonPosition: rightAddonPosition, forceAddonWrap: forceAddonWrap }, { children: children }), void 0), ripples] }), void 0)); | ||
return ((0, jsx_runtime_1.jsxs)(SimpleListItem_1.SimpleListItem, __assign({}, props, handlers, { ref: ref, tabIndex: tabIndex, disabled: disabled, role: role, className: className, clickable: true, height: height }, { children: [(0, jsx_runtime_1.jsx)(ListItemChildren_1.ListItemChildren, __assign({ textClassName: textClassName, secondaryTextClassName: secondaryTextClassName, textChildren: textChildren, primaryText: primaryText, secondaryText: secondaryText, leftAddon: leftAddon, leftAddonType: leftAddonType, leftAddonPosition: leftAddonPosition, rightAddon: rightAddon, rightAddonType: rightAddonType, rightAddonPosition: rightAddonPosition, forceAddonWrap: forceAddonWrap }, { children: children })), ripples] }))); | ||
}); | ||
//# sourceMappingURL=ListItem.js.map |
import type { ReactElement, ReactNode } from "react"; | ||
import { TextIconSpacingProps } from "@react-md/icon"; | ||
import type { TextIconSpacingProps } from "@react-md/icon"; | ||
export declare type ListItemAddonPosition = "top" | "middle" | "bottom"; | ||
@@ -4,0 +4,0 @@ export declare type ListItemAddonType = "icon" | "avatar" | "media" | "large-media"; |
@@ -49,5 +49,5 @@ "use strict"; | ||
_b["media-large"] = type === "large-media", | ||
_b)), className), iconAfter: addonAfter }, { children: children }), void 0)); | ||
_b)), className), iconAfter: addonAfter }, { children: children }))); | ||
} | ||
exports.ListItemAddon = ListItemAddon; | ||
//# sourceMappingURL=ListItemAddon.js.map |
import type { ReactElement, ReactNode } from "react"; | ||
import { ListItemAddonPosition, ListItemAddonType } from "./ListItemAddon"; | ||
import type { ListItemAddonPosition, ListItemAddonType } from "./ListItemAddon"; | ||
export interface ListItemChildrenProps { | ||
@@ -4,0 +4,0 @@ /** |
@@ -34,9 +34,9 @@ "use strict"; | ||
if (primaryText || secondaryText || textChildren) { | ||
children = ((0, jsx_runtime_1.jsx)(ListItemText_1.ListItemText, __assign({ className: textClassName, secondaryText: secondaryText, secondaryTextClassName: secondaryTextClassName }, { children: (textChildren && children) || primaryText }), void 0)); | ||
children = ((0, jsx_runtime_1.jsx)(ListItemText_1.ListItemText, __assign({ className: textClassName, secondaryText: secondaryText, secondaryTextClassName: secondaryTextClassName }, { children: (textChildren && children) || primaryText }))); | ||
} | ||
children = ((0, jsx_runtime_1.jsx)(ListItemAddon_1.ListItemAddon, __assign({ addon: leftAddon, type: leftAddonType, position: leftAddonPosition, forceAddonWrap: forceAddonWrap }, { children: children }), void 0)); | ||
children = ((0, jsx_runtime_1.jsx)(ListItemAddon_1.ListItemAddon, __assign({ addon: rightAddon, addonAfter: true, type: rightAddonType, position: rightAddonPosition, forceAddonWrap: forceAddonWrap }, { children: children }), void 0)); | ||
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [children, (primaryText && stringifiedChildren) || null] }, void 0)); | ||
children = ((0, jsx_runtime_1.jsx)(ListItemAddon_1.ListItemAddon, __assign({ addon: leftAddon, type: leftAddonType, position: leftAddonPosition, forceAddonWrap: forceAddonWrap }, { children: children }))); | ||
children = ((0, jsx_runtime_1.jsx)(ListItemAddon_1.ListItemAddon, __assign({ addon: rightAddon, addonAfter: true, type: rightAddonType, position: rightAddonPosition, forceAddonWrap: forceAddonWrap }, { children: children }))); | ||
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [children, (primaryText && stringifiedChildren) || null] })); | ||
} | ||
exports.ListItemChildren = ListItemChildren; | ||
//# sourceMappingURL=ListItemChildren.js.map |
@@ -1,5 +0,5 @@ | ||
import { AnchorHTMLAttributes, ElementType } from "react"; | ||
import { InteractionStatesOptions } from "@react-md/states"; | ||
import { SimpleListItemProps } from "./getListItemHeight"; | ||
import { ListItemChildrenProps } from "./ListItemChildren"; | ||
import type { AnchorHTMLAttributes, ElementType } from "react"; | ||
import type { InteractionStatesOptions } from "@react-md/states"; | ||
import type { SimpleListItemProps } from "./getListItemHeight"; | ||
import type { ListItemChildrenProps } from "./ListItemChildren"; | ||
export interface ListItemLinkProps extends AnchorHTMLAttributes<HTMLAnchorElement>, ListItemChildrenProps, Pick<SimpleListItemProps, "threeLines" | "height">, InteractionStatesOptions<HTMLAnchorElement> { | ||
@@ -6,0 +6,0 @@ /** |
@@ -66,4 +66,4 @@ "use strict"; | ||
_b["rmd-list-item--three-lines"] = !!secondaryText && threeLines, | ||
_b), className) }, { children: [(0, jsx_runtime_1.jsx)(ListItemChildren_1.ListItemChildren, __assign({ textClassName: textClassName, secondaryTextClassName: secondaryTextClassName, textChildren: textChildren, primaryText: primaryText, secondaryText: secondaryText, leftAddon: leftAddon, leftAddonType: leftAddonType, leftAddonPosition: leftAddonPosition, rightAddon: rightAddon, rightAddonType: rightAddonType, rightAddonPosition: rightAddonPosition, forceAddonWrap: forceAddonWrap }, { children: children }), void 0), ripples] }), void 0)); | ||
_b), className) }, { children: [(0, jsx_runtime_1.jsx)(ListItemChildren_1.ListItemChildren, __assign({ textClassName: textClassName, secondaryTextClassName: secondaryTextClassName, textChildren: textChildren, primaryText: primaryText, secondaryText: secondaryText, leftAddon: leftAddon, leftAddonType: leftAddonType, leftAddonPosition: leftAddonPosition, rightAddon: rightAddon, rightAddonType: rightAddonType, rightAddonPosition: rightAddonPosition, forceAddonWrap: forceAddonWrap }, { children: children })), ripples] }))); | ||
}); | ||
//# sourceMappingURL=ListItemLink.js.map |
@@ -30,7 +30,7 @@ "use strict"; | ||
if (secondaryText) { | ||
secondaryContent = ((0, jsx_runtime_1.jsx)("span", __assign({ className: (0, classnames_1.default)(block("text", { secondary: true }), secondaryTextClassName) }, { children: secondaryText }), void 0)); | ||
secondaryContent = ((0, jsx_runtime_1.jsx)("span", __assign({ className: (0, classnames_1.default)(block("text", { secondary: true }), secondaryTextClassName) }, { children: secondaryText }))); | ||
} | ||
return ((0, jsx_runtime_1.jsxs)("span", __assign({ className: (0, classnames_1.default)(block("text"), className) }, { children: [children, secondaryContent] }), void 0)); | ||
return ((0, jsx_runtime_1.jsxs)("span", __assign({ className: (0, classnames_1.default)(block("text"), className) }, { children: [children, secondaryContent] }))); | ||
} | ||
exports.ListItemText = ListItemText; | ||
//# sourceMappingURL=ListItemText.js.map |
@@ -1,2 +0,2 @@ | ||
import { HTMLAttributes } from "react"; | ||
import type { HTMLAttributes } from "react"; | ||
export interface ListSubheaderProps extends HTMLAttributes<HTMLLIElement> { | ||
@@ -3,0 +3,0 @@ /** |
@@ -41,4 +41,4 @@ "use strict"; | ||
var className = _a.className, _b = _a.inset, inset = _b === void 0 ? false : _b, props = __rest(_a, ["className", "inset"]); | ||
return ((0, jsx_runtime_1.jsx)("li", __assign({}, props, { ref: ref, className: (0, classnames_1.default)(block({ inset: inset }), className) }), void 0)); | ||
return ((0, jsx_runtime_1.jsx)("li", __assign({}, props, { ref: ref, className: (0, classnames_1.default)(block({ inset: inset }), className) }))); | ||
}); | ||
//# sourceMappingURL=ListSubheader.js.map |
/// <reference types="react" /> | ||
import { SimpleListItemProps } from "./getListItemHeight"; | ||
import type { SimpleListItemProps } from "./getListItemHeight"; | ||
/** | ||
@@ -4,0 +4,0 @@ * The `SimpleListItem` component is used to create a non-clickable item within |
@@ -66,4 +66,4 @@ "use strict"; | ||
_b["disabled-opacity"] = isDisabled && disabledOpacity, | ||
_b)), className), onClick: isDisabled ? undefined : onClick }, { children: (0, jsx_runtime_1.jsx)(ListItemChildren_1.ListItemChildren, __assign({ textClassName: textClassName, secondaryTextClassName: secondaryTextClassName, textChildren: textChildren, primaryText: primaryText, secondaryText: secondaryText, leftAddon: leftAddon, leftAddonType: leftAddonType, leftAddonPosition: leftAddonPosition, rightAddon: rightAddon, rightAddonType: rightAddonType, rightAddonPosition: rightAddonPosition, forceAddonWrap: forceAddonWrap }, { children: children }), void 0) }), void 0)); | ||
_b)), className), onClick: isDisabled ? undefined : onClick }, { children: (0, jsx_runtime_1.jsx)(ListItemChildren_1.ListItemChildren, __assign({ textClassName: textClassName, secondaryTextClassName: secondaryTextClassName, textChildren: textChildren, primaryText: primaryText, secondaryText: secondaryText, leftAddon: leftAddon, leftAddonType: leftAddonType, leftAddonPosition: leftAddonPosition, rightAddon: rightAddon, rightAddonType: rightAddonType, rightAddonPosition: rightAddonPosition, forceAddonWrap: forceAddonWrap }, { children: children })) }))); | ||
}); | ||
//# sourceMappingURL=SimpleListItem.js.map |
{ | ||
"name": "@react-md/list", | ||
"version": "5.0.0", | ||
"version": "5.1.0", | ||
"description": "This package is used to create lists with the material design specs.", | ||
@@ -34,9 +34,9 @@ "main": "./lib/index.js", | ||
"dependencies": { | ||
"@react-md/avatar": "^5.0.0", | ||
"@react-md/divider": "^5.0.0", | ||
"@react-md/icon": "^5.0.0", | ||
"@react-md/states": "^5.0.0", | ||
"@react-md/theme": "^5.0.0", | ||
"@react-md/typography": "^5.0.0", | ||
"@react-md/utils": "^5.0.0", | ||
"@react-md/avatar": "^5.1.0", | ||
"@react-md/divider": "^5.1.0", | ||
"@react-md/icon": "^5.1.0", | ||
"@react-md/states": "^5.1.0", | ||
"@react-md/theme": "^5.1.0", | ||
"@react-md/typography": "^5.1.0", | ||
"@react-md/utils": "^5.1.0", | ||
"classnames": "^2.3.1" | ||
@@ -63,3 +63,3 @@ }, | ||
}, | ||
"gitHead": "a67e871627db20ca8ee4b672f6e99f2f7f438c96" | ||
"gitHead": "d2446029706ae96aada0131f93ed7c1adcc14d70" | ||
} |
@@ -1,2 +0,2 @@ | ||
import { HTMLAttributes } from "react"; | ||
import type { HTMLAttributes } from "react"; | ||
export declare type ListElement = HTMLUListElement | HTMLOListElement; | ||
@@ -3,0 +3,0 @@ export interface ListProps extends HTMLAttributes<ListElement> { |
/// <reference types="react" /> | ||
import { InteractionStatesOptions } from "@react-md/states"; | ||
import { SimpleListItemProps } from "./getListItemHeight"; | ||
import type { InteractionStatesOptions } from "@react-md/states"; | ||
import type { SimpleListItemProps } from "./getListItemHeight"; | ||
export interface ListItemProps extends SimpleListItemProps, InteractionStatesOptions<HTMLLIElement> { | ||
@@ -5,0 +5,0 @@ /** |
import type { ReactElement, ReactNode } from "react"; | ||
import { TextIconSpacingProps } from "@react-md/icon"; | ||
import type { TextIconSpacingProps } from "@react-md/icon"; | ||
export declare type ListItemAddonPosition = "top" | "middle" | "bottom"; | ||
@@ -4,0 +4,0 @@ export declare type ListItemAddonType = "icon" | "avatar" | "media" | "large-media"; |
import type { ReactElement, ReactNode } from "react"; | ||
import { ListItemAddonPosition, ListItemAddonType } from "./ListItemAddon"; | ||
import type { ListItemAddonPosition, ListItemAddonType } from "./ListItemAddon"; | ||
export interface ListItemChildrenProps { | ||
@@ -4,0 +4,0 @@ /** |
@@ -1,5 +0,5 @@ | ||
import { AnchorHTMLAttributes, ElementType } from "react"; | ||
import { InteractionStatesOptions } from "@react-md/states"; | ||
import { SimpleListItemProps } from "./getListItemHeight"; | ||
import { ListItemChildrenProps } from "./ListItemChildren"; | ||
import type { AnchorHTMLAttributes, ElementType } from "react"; | ||
import type { InteractionStatesOptions } from "@react-md/states"; | ||
import type { SimpleListItemProps } from "./getListItemHeight"; | ||
import type { ListItemChildrenProps } from "./ListItemChildren"; | ||
export interface ListItemLinkProps extends AnchorHTMLAttributes<HTMLAnchorElement>, ListItemChildrenProps, Pick<SimpleListItemProps, "threeLines" | "height">, InteractionStatesOptions<HTMLAnchorElement> { | ||
@@ -6,0 +6,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
import { HTMLAttributes } from "react"; | ||
import type { HTMLAttributes } from "react"; | ||
export interface ListSubheaderProps extends HTMLAttributes<HTMLLIElement> { | ||
@@ -3,0 +3,0 @@ /** |
/// <reference types="react" /> | ||
import { SimpleListItemProps } from "./getListItemHeight"; | ||
import type { SimpleListItemProps } from "./getListItemHeight"; | ||
/** | ||
@@ -4,0 +4,0 @@ * The `SimpleListItem` component is used to create a non-clickable item within |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
200304
2580
Updated@react-md/avatar@^5.1.0
Updated@react-md/divider@^5.1.0
Updated@react-md/icon@^5.1.0
Updated@react-md/states@^5.1.0
Updated@react-md/theme@^5.1.0
Updated@react-md/typography@^5.1.0
Updated@react-md/utils@^5.1.0