@deque/cauldron-react 7.2.0-canary.daef3e17 → 7.2.0-canary.ef3abd52
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/lib/components/MetadataList/index.d.ts +11 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +25 -0
- package/package.json +1 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React, { type ComponentPropsWithRef } from 'react';
|
|
2
|
+
export type MetadataListProps = {
|
|
3
|
+
orientation?: 'vertical' | 'horizontal';
|
|
4
|
+
} & ComponentPropsWithRef<'dl'>;
|
|
5
|
+
export declare const MetadataList: React.ForwardRefExoticComponent<Omit<MetadataListProps, "ref"> & React.RefAttributes<HTMLDListElement>>;
|
|
6
|
+
export type MetadataListItemProps = ComponentPropsWithRef<'div'>;
|
|
7
|
+
export declare const MetadataListItem: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
export type MetadataListLabelProps = ComponentPropsWithRef<'dt'>;
|
|
9
|
+
export declare const MetadataListLabel: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
10
|
+
export type MetadataListValueProps = ComponentPropsWithRef<'dd'>;
|
|
11
|
+
export declare const MetadataListValue: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
|
package/lib/index.d.ts
CHANGED
|
@@ -44,6 +44,7 @@ export { default as TagButton } from './components/TagButton';
|
|
|
44
44
|
export { default as Table, TableBody, TableCell, TableHead, TableHeader, TableRow, TableFooter } from './components/Table';
|
|
45
45
|
export { default as Tabs, Tab, TabPanel } from './components/Tabs';
|
|
46
46
|
export { DescriptionList, DescriptionListItem, DescriptionTerm, DescriptionDetails } from './components/DescriptionList';
|
|
47
|
+
export { MetadataList, MetadataListItem, MetadataListLabel, MetadataListValue } from './components/MetadataList';
|
|
47
48
|
export { default as Stepper, Step } from './components/Stepper';
|
|
48
49
|
export { default as Panel, PanelHeader, PanelContent } from './components/Panel';
|
|
49
50
|
export { default as ProgressBar } from './components/ProgressBar';
|
package/lib/index.js
CHANGED
|
@@ -3366,6 +3366,27 @@ var DescriptionDetails = function (_a) {
|
|
|
3366
3366
|
};
|
|
3367
3367
|
DescriptionDetails.displayName = 'DescriptionDetails';
|
|
3368
3368
|
|
|
3369
|
+
var MetadataList = React.forwardRef(function (_a, ref) {
|
|
3370
|
+
var _b = _a.orientation, orientation = _b === void 0 ? 'horizontal' : _b, className = _a.className, children = _a.children, rest = tslib.__rest(_a, ["orientation", "className", "children"]);
|
|
3371
|
+
return (React__default["default"].createElement("dl", tslib.__assign({ className: classNames__default["default"]('MetadataList', "MetadataList--".concat(orientation), className), ref: ref }, rest), children));
|
|
3372
|
+
});
|
|
3373
|
+
MetadataList.displayName = 'MetadataList';
|
|
3374
|
+
var MetadataListItem = React.forwardRef(function (_a, ref) {
|
|
3375
|
+
var className = _a.className, children = _a.children, rest = tslib.__rest(_a, ["className", "children"]);
|
|
3376
|
+
return (React__default["default"].createElement("div", tslib.__assign({ className: classNames__default["default"]('MetadataList__item', className), ref: ref }, rest), children));
|
|
3377
|
+
});
|
|
3378
|
+
MetadataListItem.displayName = 'MetadataListItem';
|
|
3379
|
+
var MetadataListLabel = React.forwardRef(function (_a, ref) {
|
|
3380
|
+
var className = _a.className, children = _a.children, rest = tslib.__rest(_a, ["className", "children"]);
|
|
3381
|
+
return (React__default["default"].createElement("dt", tslib.__assign({ className: classNames__default["default"]('MetadataList__label', className), ref: ref }, rest), children));
|
|
3382
|
+
});
|
|
3383
|
+
MetadataListLabel.displayName = 'MetadataListLabel';
|
|
3384
|
+
var MetadataListValue = React.forwardRef(function (_a, ref) {
|
|
3385
|
+
var className = _a.className, children = _a.children, rest = tslib.__rest(_a, ["className", "children"]);
|
|
3386
|
+
return (React__default["default"].createElement("dd", tslib.__assign({ className: classNames__default["default"]('MetadataList__value', className), ref: ref }, rest), children));
|
|
3387
|
+
});
|
|
3388
|
+
MetadataListValue.displayName = 'MetadataListValue';
|
|
3389
|
+
|
|
3369
3390
|
var isTooltipProps = function (props) {
|
|
3370
3391
|
return !!props.tooltip;
|
|
3371
3392
|
};
|
|
@@ -5744,6 +5765,10 @@ exports.LoaderOverlay = LoaderOverlay;
|
|
|
5744
5765
|
exports.Main = Main;
|
|
5745
5766
|
exports.MenuBar = TopBar$1;
|
|
5746
5767
|
exports.MenuItem = MenuItem;
|
|
5768
|
+
exports.MetadataList = MetadataList;
|
|
5769
|
+
exports.MetadataListItem = MetadataListItem;
|
|
5770
|
+
exports.MetadataListLabel = MetadataListLabel;
|
|
5771
|
+
exports.MetadataListValue = MetadataListValue;
|
|
5747
5772
|
exports.Modal = Modal;
|
|
5748
5773
|
exports.ModalCloseButton = ModalCloseButton;
|
|
5749
5774
|
exports.ModalContent = ModalContent;
|
package/package.json
CHANGED