@activecollab/components 2.0.588 → 2.0.590
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/dist/cjs/components/CommandPalette/CommandPalette.js +90 -62
- package/dist/cjs/components/CommandPalette/CommandPalette.js.map +1 -1
- package/dist/cjs/components/CommandPalette/CommandPalette.styles.js +34 -16
- package/dist/cjs/components/CommandPalette/CommandPalette.styles.js.map +1 -1
- package/dist/cjs/components/CommandPalette/CommandPaletteCommandItem.js +1 -0
- package/dist/cjs/components/CommandPalette/CommandPaletteCommandItem.js.map +1 -1
- package/dist/cjs/components/CommandPalette/CommandPaletteHeader.js +40 -9
- package/dist/cjs/components/CommandPalette/CommandPaletteHeader.js.map +1 -1
- package/dist/cjs/components/CommandPalette/CommandPaletteItem.js +13 -4
- package/dist/cjs/components/CommandPalette/CommandPaletteItem.js.map +1 -1
- package/dist/cjs/components/CommandPalette/CommandPaletteVirtualList.js +125 -0
- package/dist/cjs/components/CommandPalette/CommandPaletteVirtualList.js.map +1 -0
- package/dist/cjs/components/CommandPalette/context/SelectedContext.js.map +1 -1
- package/dist/cjs/components/GlobalStyle.js +1 -1
- package/dist/cjs/components/GlobalStyle.js.map +1 -1
- package/dist/cjs/components/ObjectLayout/ObjectLayout.js +5 -1
- package/dist/cjs/components/ObjectLayout/ObjectLayout.js.map +1 -1
- package/dist/cjs/components/ObjectLayout/Styles.js +17 -10
- package/dist/cjs/components/ObjectLayout/Styles.js.map +1 -1
- package/dist/cjs/components/PropertyList/PropertyList.js +12 -1
- package/dist/cjs/components/PropertyList/PropertyList.js.map +1 -1
- package/dist/cjs/components/PropertyList/Styles.js +58 -51
- package/dist/cjs/components/PropertyList/Styles.js.map +1 -1
- package/dist/cjs/components/Section/Section.js +4 -1
- package/dist/cjs/components/Section/Section.js.map +1 -1
- package/dist/cjs/components/Section/Styles.js +7 -3
- package/dist/cjs/components/Section/Styles.js.map +1 -1
- package/dist/cjs/components/TicketPerforation/TicketPerforation.js +7 -5
- package/dist/cjs/components/TicketPerforation/TicketPerforation.js.map +1 -1
- package/dist/cjs/presentation/whiteboard/elementToolbars.js +192 -1
- package/dist/cjs/presentation/whiteboard/elementToolbars.js.map +1 -1
- package/dist/cjs/presentation/whiteboard/inspector.js +6 -1
- package/dist/cjs/presentation/whiteboard/inspector.js.map +1 -1
- package/dist/cjs/presentation/whiteboard/lineElements.js +982 -0
- package/dist/cjs/presentation/whiteboard/lineElements.js.map +1 -0
- package/dist/cjs/presentation/whiteboard/lineInspector.js +301 -0
- package/dist/cjs/presentation/whiteboard/lineInspector.js.map +1 -0
- package/dist/cjs/presentation/whiteboard/lineModel.js +596 -0
- package/dist/cjs/presentation/whiteboard/lineModel.js.map +1 -0
- package/dist/cjs/presentation/whiteboard/outline.js +31 -12
- package/dist/cjs/presentation/whiteboard/outline.js.map +1 -1
- package/dist/cjs/presentation/whiteboardModern/toolDock.js +11 -17
- package/dist/cjs/presentation/whiteboardModern/toolDock.js.map +1 -1
- package/dist/esm/components/CommandPalette/CommandPalette.d.ts +13 -3
- package/dist/esm/components/CommandPalette/CommandPalette.d.ts.map +1 -1
- package/dist/esm/components/CommandPalette/CommandPalette.js +77 -53
- package/dist/esm/components/CommandPalette/CommandPalette.js.map +1 -1
- package/dist/esm/components/CommandPalette/CommandPalette.styles.d.ts +9 -2
- package/dist/esm/components/CommandPalette/CommandPalette.styles.d.ts.map +1 -1
- package/dist/esm/components/CommandPalette/CommandPalette.styles.js +30 -14
- package/dist/esm/components/CommandPalette/CommandPalette.styles.js.map +1 -1
- package/dist/esm/components/CommandPalette/CommandPaletteCommandItem.d.ts.map +1 -1
- package/dist/esm/components/CommandPalette/CommandPaletteCommandItem.js +1 -0
- package/dist/esm/components/CommandPalette/CommandPaletteCommandItem.js.map +1 -1
- package/dist/esm/components/CommandPalette/CommandPaletteHeader.d.ts +3 -1
- package/dist/esm/components/CommandPalette/CommandPaletteHeader.d.ts.map +1 -1
- package/dist/esm/components/CommandPalette/CommandPaletteHeader.js +40 -9
- package/dist/esm/components/CommandPalette/CommandPaletteHeader.js.map +1 -1
- package/dist/esm/components/CommandPalette/CommandPaletteItem.d.ts +7 -1
- package/dist/esm/components/CommandPalette/CommandPaletteItem.d.ts.map +1 -1
- package/dist/esm/components/CommandPalette/CommandPaletteItem.js +14 -5
- package/dist/esm/components/CommandPalette/CommandPaletteItem.js.map +1 -1
- package/dist/esm/components/CommandPalette/CommandPaletteVirtualList.d.ts +21 -0
- package/dist/esm/components/CommandPalette/CommandPaletteVirtualList.d.ts.map +1 -0
- package/dist/esm/components/CommandPalette/CommandPaletteVirtualList.js +104 -0
- package/dist/esm/components/CommandPalette/CommandPaletteVirtualList.js.map +1 -0
- package/dist/esm/components/CommandPalette/context/SelectedContext.d.ts +5 -0
- package/dist/esm/components/CommandPalette/context/SelectedContext.d.ts.map +1 -1
- package/dist/esm/components/CommandPalette/context/SelectedContext.js.map +1 -1
- package/dist/esm/components/GlobalStyle.d.ts.map +1 -1
- package/dist/esm/components/GlobalStyle.js +1 -1
- package/dist/esm/components/GlobalStyle.js.map +1 -1
- package/dist/esm/components/ObjectLayout/ObjectLayout.d.ts +2 -0
- package/dist/esm/components/ObjectLayout/ObjectLayout.d.ts.map +1 -1
- package/dist/esm/components/ObjectLayout/ObjectLayout.js +5 -1
- package/dist/esm/components/ObjectLayout/ObjectLayout.js.map +1 -1
- package/dist/esm/components/ObjectLayout/Styles.d.ts +1 -0
- package/dist/esm/components/ObjectLayout/Styles.d.ts.map +1 -1
- package/dist/esm/components/ObjectLayout/Styles.js +16 -9
- package/dist/esm/components/ObjectLayout/Styles.js.map +1 -1
- package/dist/esm/components/PropertyList/PropertyList.d.ts +6 -0
- package/dist/esm/components/PropertyList/PropertyList.d.ts.map +1 -1
- package/dist/esm/components/PropertyList/PropertyList.js +12 -1
- package/dist/esm/components/PropertyList/PropertyList.js.map +1 -1
- package/dist/esm/components/PropertyList/Styles.d.ts +2 -0
- package/dist/esm/components/PropertyList/Styles.d.ts.map +1 -1
- package/dist/esm/components/PropertyList/Styles.js +58 -51
- package/dist/esm/components/PropertyList/Styles.js.map +1 -1
- package/dist/esm/components/Section/Section.d.ts +2 -0
- package/dist/esm/components/Section/Section.d.ts.map +1 -1
- package/dist/esm/components/Section/Section.js +4 -1
- package/dist/esm/components/Section/Section.js.map +1 -1
- package/dist/esm/components/Section/Styles.d.ts +3 -1
- package/dist/esm/components/Section/Styles.d.ts.map +1 -1
- package/dist/esm/components/Section/Styles.js +6 -2
- package/dist/esm/components/Section/Styles.js.map +1 -1
- package/dist/esm/components/TicketPerforation/TicketPerforation.d.ts +2 -0
- package/dist/esm/components/TicketPerforation/TicketPerforation.d.ts.map +1 -1
- package/dist/esm/components/TicketPerforation/TicketPerforation.js +7 -5
- package/dist/esm/components/TicketPerforation/TicketPerforation.js.map +1 -1
- package/dist/esm/presentation/whiteboard/elementToolbars.d.ts +22 -0
- package/dist/esm/presentation/whiteboard/elementToolbars.d.ts.map +1 -1
- package/dist/esm/presentation/whiteboard/elementToolbars.js +151 -2
- package/dist/esm/presentation/whiteboard/elementToolbars.js.map +1 -1
- package/dist/esm/presentation/whiteboard/inspector.d.ts +10 -2
- package/dist/esm/presentation/whiteboard/inspector.d.ts.map +1 -1
- package/dist/esm/presentation/whiteboard/inspector.js +6 -2
- package/dist/esm/presentation/whiteboard/inspector.js.map +1 -1
- package/dist/esm/presentation/whiteboard/lineElements.d.ts +23 -0
- package/dist/esm/presentation/whiteboard/lineElements.d.ts.map +1 -0
- package/dist/esm/presentation/whiteboard/lineElements.js +851 -0
- package/dist/esm/presentation/whiteboard/lineElements.js.map +1 -0
- package/dist/esm/presentation/whiteboard/lineInspector.d.ts +9 -0
- package/dist/esm/presentation/whiteboard/lineInspector.d.ts.map +1 -0
- package/dist/esm/presentation/whiteboard/lineInspector.js +224 -0
- package/dist/esm/presentation/whiteboard/lineInspector.js.map +1 -0
- package/dist/esm/presentation/whiteboard/lineModel.d.ts +132 -0
- package/dist/esm/presentation/whiteboard/lineModel.d.ts.map +1 -0
- package/dist/esm/presentation/whiteboard/lineModel.js +555 -0
- package/dist/esm/presentation/whiteboard/lineModel.js.map +1 -0
- package/dist/esm/presentation/whiteboard/outline.d.ts +4 -2
- package/dist/esm/presentation/whiteboard/outline.d.ts.map +1 -1
- package/dist/esm/presentation/whiteboard/outline.js +20 -7
- package/dist/esm/presentation/whiteboard/outline.js.map +1 -1
- package/dist/esm/presentation/whiteboardModern/toolDock.d.ts +2 -2
- package/dist/esm/presentation/whiteboardModern/toolDock.d.ts.map +1 -1
- package/dist/esm/presentation/whiteboardModern/toolDock.js +12 -18
- package/dist/esm/presentation/whiteboardModern/toolDock.js.map +1 -1
- package/dist/index.js +385 -166
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
3
|
const _excluded = ["aside", "asideProps", "className", "children"],
|
|
4
|
-
_excluded2 = ["density", "disabled", "layout", "cells", "header", "footer", "cellsProps", "footerProps", "tearProps", "perforationProps", "className", "children"],
|
|
4
|
+
_excluded2 = ["density", "disabled", "layout", "cells", "header", "footer", "cellsProps", "footerProps", "tearProps", "perforationProps", "solid", "roomy", "notches", "className", "children"],
|
|
5
5
|
_excluded3 = ["icon", "label", "value", "action", "tone", "readOnly", "chevron", "disabled", "parts", "aside", "wrap", "footer", "labelProps", "caretProps", "className", "children"],
|
|
6
6
|
_excluded4 = ["expanded", "disabled", "className", "children"],
|
|
7
7
|
_excluded5 = ["position"];
|
|
@@ -78,6 +78,12 @@ export const PropertyList = /*#__PURE__*/forwardRef((_ref4, ref) => {
|
|
|
78
78
|
footerProps = _ref4.footerProps,
|
|
79
79
|
tearProps = _ref4.tearProps,
|
|
80
80
|
perforationProps = _ref4.perforationProps,
|
|
81
|
+
_ref4$solid = _ref4.solid,
|
|
82
|
+
solid = _ref4$solid === void 0 ? false : _ref4$solid,
|
|
83
|
+
_ref4$roomy = _ref4.roomy,
|
|
84
|
+
roomy = _ref4$roomy === void 0 ? false : _ref4$roomy,
|
|
85
|
+
_ref4$notches = _ref4.notches,
|
|
86
|
+
notches = _ref4$notches === void 0 ? true : _ref4$notches,
|
|
81
87
|
className = _ref4.className,
|
|
82
88
|
children = _ref4.children,
|
|
83
89
|
rest = _objectWithoutPropertiesLoose(_ref4, _excluded2);
|
|
@@ -87,6 +93,7 @@ export const PropertyList = /*#__PURE__*/forwardRef((_ref4, ref) => {
|
|
|
87
93
|
const parts = Children.toArray(children).filter(Boolean);
|
|
88
94
|
useContainerCss("c-property-list-container", CONTAINER_CSS);
|
|
89
95
|
const ticket = /*#__PURE__*/React.createElement(React.Fragment, null, header ? /*#__PURE__*/React.createElement(React.Fragment, null, header, /*#__PURE__*/React.createElement(TicketPerforation, _extends({}, perforationProps, {
|
|
96
|
+
notches: notches,
|
|
90
97
|
line: cells === "row" ? "primary" : "raised"
|
|
91
98
|
}))) : null, /*#__PURE__*/React.createElement(StyledPropertyListCells, _extends({}, cellsProps, {
|
|
92
99
|
$cells: cells,
|
|
@@ -96,10 +103,12 @@ export const PropertyList = /*#__PURE__*/forwardRef((_ref4, ref) => {
|
|
|
96
103
|
}, renderCell(part), index < parts.length - 1 ? /*#__PURE__*/React.createElement(StyledPropertyListTear, _extends({}, tearProps, {
|
|
97
104
|
className: classnames("c-property-list__tear", tearProps == null ? void 0 : tearProps.className)
|
|
98
105
|
}), /*#__PURE__*/React.createElement(TicketPerforation, _extends({}, perforationProps, {
|
|
106
|
+
notches: notches,
|
|
99
107
|
line: "raised"
|
|
100
108
|
}))) : null)) : parts), footer ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(StyledPropertyListFooterTear, {
|
|
101
109
|
"aria-hidden": "true"
|
|
102
110
|
}, /*#__PURE__*/React.createElement(TicketPerforation, _extends({}, perforationProps, {
|
|
111
|
+
notches: notches,
|
|
103
112
|
line: "raised"
|
|
104
113
|
}))), /*#__PURE__*/React.createElement(StyledPropertyListFooter, _extends({}, footerProps, {
|
|
105
114
|
className: classnames("c-property-list__footer", footerProps == null ? void 0 : footerProps.className)
|
|
@@ -121,6 +130,8 @@ export const PropertyList = /*#__PURE__*/forwardRef((_ref4, ref) => {
|
|
|
121
130
|
shadow: isTicket || density === "page",
|
|
122
131
|
$disabled: disabled,
|
|
123
132
|
$ticket: isTicket ? cells : undefined,
|
|
133
|
+
$solid: solid,
|
|
134
|
+
$roomy: roomy,
|
|
124
135
|
"aria-disabled": disabled || undefined,
|
|
125
136
|
className: classnames("c-property-list", {
|
|
126
137
|
"c-property-list--ticket": isTicket
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PropertyList.js","names":["React","Children","Fragment","createContext","forwardRef","isValidElement","useContext","classnames","CONTAINER_CSS","StyledPropertyList","StyledPropertyListAddIcon","StyledPropertyListBranch","StyledPropertyListBranchLine","StyledPropertyListCell","StyledPropertyListCellAside","StyledPropertyListCellMain","StyledPropertyListCells","StyledPropertyListCellSplit","StyledPropertyListChevron","StyledPropertyListDivider","StyledPropertyListIcon","StyledPropertyListLabelText","StyledPropertyListRow","StyledPropertyListTableAction","StyledPropertyListTableLabel","StyledPropertyListTableValue","StyledPropertyListFooter","StyledPropertyListFooterTear","StyledPropertyListTear","StyledPropertyListTicketAddIcon","StyledPropertyListTicketCaret","StyledPropertyListTicketLabel","StyledPropertyListTicketLine","StyledPropertyListTicketText","StyledPropertyListTicketValue","StyledPropertyListToggle","StyledPropertyListValue","useContainerCss","AddCrossTinyIcon","ArrowDownSmallIcon","TicketPerforation","DensityContext","LayoutContext","DisabledContext","usePropertyListDensity","usePropertyListLayout","usePropertyListDisabled","PropertyListLayout","_ref","_ref$value","value","children","createElement","Provider","PropertyListDivider","$layout","$density","className","PropertyListCell","_ref2","displayName","keyOf","part","index","_key","key","renderCell","type","_ref3","props","aside","asideProps","cellProps","_objectWithoutPropertiesLoose","_excluded","hasAside","undefined","_extends","PropertyList","_ref4","ref","_ref4$density","density","_ref4$disabled","disabled","layout","_ref4$cells","cells","header","footer","cellsProps","footerProps","tearProps","perforationProps","rest","_excluded2","contextLayout","current","isTicket","parts","toArray","filter","Boolean","ticket","line","$cells","map","length","variant","radius","shadow","$disabled","$ticket","PropertyListValue","_ref5","_ref5$placeholder","placeholder","$placeholder","forwardedAs","color","PropertyListAdd","_ref6","PropertyListLabel","_ref7","icon","label","$size","$scale","weight","PropertyListRow","_ref8","action","_ref8$tone","tone","_ref8$readOnly","readOnly","_ref8$chevron","chevron","_ref8$disabled","_ref8$parts","_ref8$wrap","wrap","labelProps","caretProps","_excluded3","isDisabled","cell","as","$tone","$clickable","$parts","$wrap","caret","PropertyListToggle","_ref9","_ref9$expanded","expanded","_excluded4","PropertyListBranch","_ref0","_ref0$position","position","_excluded5"],"sources":["../../../../src/components/PropertyList/PropertyList.tsx"],"sourcesContent":["import React, {\n ButtonHTMLAttributes,\n Children,\n Fragment,\n HTMLAttributes,\n ReactElement,\n ReactNode,\n Ref,\n createContext,\n forwardRef,\n isValidElement,\n useContext,\n} from \"react\";\n\nimport classnames from \"classnames\";\n\nimport {\n CONTAINER_CSS,\n PropertyListCells,\n PropertyListDensity,\n PropertyListLayoutName,\n PropertyListTone,\n StyledPropertyList,\n StyledPropertyListAddIcon,\n StyledPropertyListBranch,\n StyledPropertyListBranchLine,\n StyledPropertyListCell,\n StyledPropertyListCellAside,\n StyledPropertyListCellMain,\n StyledPropertyListCells,\n StyledPropertyListCellSplit,\n StyledPropertyListChevron,\n StyledPropertyListDivider,\n StyledPropertyListIcon,\n StyledPropertyListLabelText,\n StyledPropertyListRow,\n StyledPropertyListTableAction,\n StyledPropertyListTableLabel,\n StyledPropertyListTableValue,\n StyledPropertyListFooter,\n StyledPropertyListFooterTear,\n StyledPropertyListTear,\n StyledPropertyListTicketAddIcon,\n StyledPropertyListTicketCaret,\n StyledPropertyListTicketLabel,\n StyledPropertyListTicketLine,\n StyledPropertyListTicketText,\n StyledPropertyListTicketValue,\n StyledPropertyListToggle,\n StyledPropertyListValue,\n} from \"./Styles\";\nimport { useContainerCss } from \"../../utils/useContainerCss\";\nimport { AddCrossTinyIcon, ArrowDownSmallIcon } from \"../Icons\";\nimport { TicketPerforation } from \"../TicketPerforation\";\n\nconst DensityContext = createContext<PropertyListDensity>(\"form\");\nconst LayoutContext = createContext<PropertyListLayoutName>(\"stacked\");\nconst DisabledContext = createContext(false);\n\nexport const usePropertyListDensity = () => useContext(DensityContext);\nexport const usePropertyListLayout = () => useContext(LayoutContext);\nexport const usePropertyListDisabled = () => useContext(DisabledContext);\n\n/** Sets the layout of the rows below it: one line each, the three columns of a table, or the cells of a ticket. */\nexport const PropertyListLayout = ({\n value = \"stacked\",\n children,\n}: {\n value?: PropertyListLayoutName;\n children?: ReactNode;\n}) => <LayoutContext.Provider value={value}>{children}</LayoutContext.Provider>;\n\n/** The line between two rows. In a stacked list it starts where the label text starts. */\nexport const PropertyListDivider = () => (\n <StyledPropertyListDivider\n aria-hidden=\"true\"\n $layout={usePropertyListLayout()}\n $density={usePropertyListDensity()}\n className=\"c-property-list__divider\"\n />\n);\n\nexport interface IPropertyListProps extends HTMLAttributes<HTMLDivElement> {\n /** \"form\" for a compact list in a form, \"page\" for a list on a page, with a shadow. */\n density?: PropertyListDensity;\n /** Every row of the list is dimmed and takes no click and no focus. */\n disabled?: boolean;\n /** The layout of the rows. Without it the list takes the layout of the PropertyListLayout around it. \"ticket\" makes each row a cell: a small label over its value. */\n layout?: PropertyListLayoutName;\n /** Ticket only: \"grid\" puts the cells in two, three or four columns by the card width, \"row\" in one row that wraps. */\n cells?: PropertyListCells;\n /** Ticket only: a part over the cells, with a tear line under it. */\n header?: ReactNode;\n /** Ticket only: rows of the page density under the cells, after a tear line, to the edges of the card. */\n footer?: ReactNode;\n /** Ticket only: attributes of the box of the cells, such as a test id. */\n cellsProps?: TicketPartProps;\n /** Ticket only: attributes of the box of the footer, such as a test id. */\n footerProps?: TicketPartProps;\n /** Ticket grid only: attributes of each tear line between the cells. */\n tearProps?: TicketPartProps;\n /** Ticket only: attributes of every perforation of the ticket. */\n perforationProps?: TicketPartProps;\n}\n\ntype TicketDataProps = {\n className?: string;\n \"data-testid\"?: string;\n [attribute: `data-${string}`]: string | boolean | undefined;\n};\n\ntype TicketPartProps = HTMLAttributes<HTMLDivElement> & TicketDataProps;\n\nexport interface IPropertyListCellProps extends TicketPartProps {\n /** An icon button at the right edge of the cell, after a line. */\n aside?: ReactNode;\n /** Attributes of the box of the aside, such as a test id. */\n asideProps?: TicketPartProps;\n children?: ReactNode;\n}\n\n/** A cell of a ticket grid with its own attributes and an aside. Put it as a direct child of a ticket PropertyList. */\nexport const PropertyListCell = ({ children }: IPropertyListCellProps) => (\n <>{children}</>\n);\n\nPropertyListCell.displayName = \"PropertyListCell\";\n\nconst keyOf = (part: ReactNode, index: number) =>\n (part as ReactElement).key ?? index;\n\nconst renderCell = (part: ReactNode) => {\n if (!isValidElement(part) || part.type !== PropertyListCell) {\n return (\n <StyledPropertyListCell className=\"c-property-list__cell\">\n {part}\n </StyledPropertyListCell>\n );\n }\n\n const { aside, asideProps, className, children, ...cellProps } =\n part.props as IPropertyListCellProps;\n const hasAside = aside !== undefined && aside !== null;\n\n return (\n <StyledPropertyListCell\n {...cellProps}\n className={classnames(\"c-property-list__cell\", className)}\n >\n {hasAside ? (\n <StyledPropertyListCellSplit>\n <StyledPropertyListCellMain>{children}</StyledPropertyListCellMain>\n <StyledPropertyListCellAside\n {...asideProps}\n className={classnames(\n \"c-property-list__aside\",\n asideProps?.className\n )}\n >\n {aside}\n </StyledPropertyListCellAside>\n </StyledPropertyListCellSplit>\n ) : (\n children\n )}\n </StyledPropertyListCell>\n );\n};\n\nexport const PropertyList = forwardRef<HTMLDivElement, IPropertyListProps>(\n (\n {\n density = \"form\",\n disabled = false,\n layout,\n cells = \"grid\",\n header,\n footer,\n cellsProps,\n footerProps,\n tearProps,\n perforationProps,\n className,\n children,\n ...rest\n },\n ref\n ) => {\n const contextLayout = usePropertyListLayout();\n const current = layout ?? contextLayout;\n const isTicket = current === \"ticket\";\n const parts = Children.toArray(children).filter(Boolean);\n\n useContainerCss(\"c-property-list-container\", CONTAINER_CSS);\n\n const ticket = (\n <>\n {header ? (\n <>\n {header}\n <TicketPerforation\n {...perforationProps}\n line={cells === \"row\" ? \"primary\" : \"raised\"}\n />\n </>\n ) : null}\n <StyledPropertyListCells\n {...cellsProps}\n $cells={cells}\n className={classnames(\n \"c-property-list__cells\",\n `c-property-list__cells--${cells}`,\n cellsProps?.className\n )}\n >\n {cells === \"grid\"\n ? parts.map((part, index) => (\n <Fragment key={keyOf(part, index)}>\n {renderCell(part)}\n {index < parts.length - 1 ? (\n <StyledPropertyListTear\n {...tearProps}\n className={classnames(\n \"c-property-list__tear\",\n tearProps?.className\n )}\n >\n <TicketPerforation {...perforationProps} line=\"raised\" />\n </StyledPropertyListTear>\n ) : null}\n </Fragment>\n ))\n : parts}\n </StyledPropertyListCells>\n {footer ? (\n <>\n <StyledPropertyListFooterTear aria-hidden=\"true\">\n <TicketPerforation {...perforationProps} line=\"raised\" />\n </StyledPropertyListFooterTear>\n <StyledPropertyListFooter\n {...footerProps}\n className={classnames(\n \"c-property-list__footer\",\n footerProps?.className\n )}\n >\n <PropertyList layout=\"stacked\" density=\"page\" disabled={disabled}>\n {footer}\n </PropertyList>\n </StyledPropertyListFooter>\n </>\n ) : null}\n </>\n );\n\n return (\n <LayoutContext.Provider value={current}>\n <DensityContext.Provider value={density}>\n <DisabledContext.Provider value={disabled}>\n <StyledPropertyList\n {...rest}\n ref={ref}\n variant=\"raised\"\n radius={isTicket ? (cells === \"row\" ? 24 : 12) : 20}\n shadow={isTicket || density === \"page\"}\n $disabled={disabled}\n $ticket={isTicket ? cells : undefined}\n aria-disabled={disabled || undefined}\n className={classnames(\n \"c-property-list\",\n { \"c-property-list--ticket\": isTicket },\n className\n )}\n >\n {isTicket\n ? ticket\n : parts.map((part, index) => (\n <Fragment key={keyOf(part, index)}>\n {index > 0 ? <PropertyListDivider /> : null}\n {part}\n </Fragment>\n ))}\n </StyledPropertyList>\n </DisabledContext.Provider>\n </DensityContext.Provider>\n </LayoutContext.Provider>\n );\n }\n);\n\nPropertyList.displayName = \"PropertyList\";\n\nexport interface IPropertyListValueProps {\n /** A row with no value shows its text in the placeholder color. */\n placeholder?: boolean;\n className?: string;\n children?: ReactNode;\n}\n\nexport const PropertyListValue = ({\n placeholder = false,\n className,\n children,\n}: IPropertyListValueProps) => {\n const density = usePropertyListDensity();\n\n if (usePropertyListLayout() === \"ticket\") {\n return (\n <StyledPropertyListTicketValue\n $placeholder={placeholder}\n className={classnames(\"c-property-list__value\", className)}\n data-placeholder={placeholder || undefined}\n >\n {children}\n </StyledPropertyListTicketValue>\n );\n }\n\n return (\n <StyledPropertyListValue\n forwardedAs=\"span\"\n color={placeholder ? \"quaternary\" : undefined}\n $density={density}\n $placeholder={placeholder}\n className={classnames(\"c-property-list__value\", className)}\n data-placeholder={placeholder || undefined}\n >\n {children}\n </StyledPropertyListValue>\n );\n};\n\n/** The \"Add\" of a row: a placeholder with a plus where another row has its chevron. */\nexport const PropertyListAdd = ({ children }: { children?: ReactNode }) => (\n <>\n <PropertyListValue placeholder>{children}</PropertyListValue>\n {usePropertyListLayout() === \"ticket\" ? (\n <StyledPropertyListTicketAddIcon />\n ) : (\n <StyledPropertyListAddIcon>\n <AddCrossTinyIcon />\n </StyledPropertyListAddIcon>\n )}\n </>\n);\n\nexport interface IPropertyListLabelProps {\n icon?: ReactNode;\n label?: ReactNode;\n}\n\nexport const PropertyListLabel = ({ icon, label }: IPropertyListLabelProps) => {\n const density = usePropertyListDensity();\n const layout = usePropertyListLayout();\n\n if (layout === \"table\") {\n return (\n <StyledPropertyListTableLabel className=\"c-property-list__label\">\n <StyledPropertyListIcon $size={16} $scale>\n {icon}\n </StyledPropertyListIcon>\n <StyledPropertyListLabelText\n forwardedAs=\"span\"\n weight=\"medium\"\n $layout={layout}\n $density={density}\n >\n {label}\n </StyledPropertyListLabelText>\n </StyledPropertyListTableLabel>\n );\n }\n\n return (\n <>\n <StyledPropertyListIcon\n $size={density === \"page\" ? 28 : 24}\n $scale={false}\n >\n {icon}\n </StyledPropertyListIcon>\n <StyledPropertyListLabelText\n forwardedAs=\"span\"\n weight=\"medium\"\n $layout={layout}\n $density={density}\n className=\"c-property-list__label\"\n >\n {label}\n </StyledPropertyListLabelText>\n </>\n );\n};\n\nexport interface IPropertyListRowProps\n extends Omit<HTMLAttributes<HTMLElement>, \"children\"> {\n icon?: ReactNode;\n label?: ReactNode;\n value?: ReactNode;\n /** A control before the chevron. */\n action?: ReactNode;\n tone?: PropertyListTone;\n /** A read only row is plain text. A row that can change is one button. */\n readOnly?: boolean;\n chevron?: boolean;\n /** Dimmed, with no click and no focus. A disabled list disables its rows. */\n disabled?: boolean;\n /** Ticket only: the value is a row of parts, such as avatars and a text, with the 24px height of an avatar. Set to false for one line of text. */\n parts?: boolean;\n /** Ticket grid only: an icon button at the right edge of the cell, after a line. */\n aside?: ReactNode;\n /** Ticket only: the parts of the value may wrap to more lines. */\n wrap?: boolean;\n /** Ticket only: a third line under the value. */\n footer?: ReactNode;\n /** Ticket only: attributes of the label, such as a data attribute. */\n labelProps?: TicketDataProps;\n /** Ticket only: attributes of the caret, such as a test id. */\n caretProps?: TicketDataProps;\n /** Replaces the label, the value and the action. In a ticket it replaces only the value and the action. */\n children?: ReactNode;\n}\n\nexport const PropertyListRow = forwardRef<HTMLElement, IPropertyListRowProps>(\n (\n {\n icon,\n label,\n value,\n action,\n tone = \"regular\",\n readOnly = false,\n chevron = true,\n disabled = false,\n parts = true,\n aside,\n wrap = false,\n footer,\n labelProps,\n caretProps,\n className,\n children,\n ...rest\n },\n ref\n ) => {\n const isDisabled = usePropertyListDisabled() || disabled;\n const density = usePropertyListDensity();\n const layout = usePropertyListLayout();\n\n if (layout === \"ticket\") {\n const cell = (\n <StyledPropertyListRow\n {...rest}\n as={readOnly ? \"div\" : \"button\"}\n ref={ref as Ref<HTMLDivElement>}\n {...(readOnly\n ? { \"aria-disabled\": isDisabled || undefined }\n : { type: \"button\", disabled: isDisabled })}\n $disabled={isDisabled}\n $layout={layout}\n $density={density}\n $tone={tone}\n $clickable={!readOnly}\n className={classnames(\"c-property-list__row\", className)}\n >\n <StyledPropertyListTicketLabel\n {...labelProps}\n forwardedAs=\"span\"\n $tone={tone}\n className={classnames(\n \"c-property-list__label\",\n labelProps?.className\n )}\n >\n {label}\n </StyledPropertyListTicketLabel>\n <StyledPropertyListTicketLine $parts={parts}>\n <StyledPropertyListTicketText\n forwardedAs=\"span\"\n weight=\"medium\"\n $parts={parts}\n $wrap={wrap}\n $tone={tone}\n >\n {children ?? (\n <>\n {value}\n {action}\n </>\n )}\n </StyledPropertyListTicketText>\n {!readOnly && chevron ? (\n <StyledPropertyListTicketCaret\n {...caretProps}\n aria-hidden=\"true\"\n />\n ) : null}\n </StyledPropertyListTicketLine>\n {footer}\n </StyledPropertyListRow>\n );\n\n if (aside === undefined || aside === null) {\n return cell;\n }\n\n return (\n <StyledPropertyListCellSplit>\n <StyledPropertyListCellMain>{cell}</StyledPropertyListCellMain>\n <StyledPropertyListCellAside className=\"c-property-list__aside\">\n {aside}\n </StyledPropertyListCellAside>\n </StyledPropertyListCellSplit>\n );\n }\n\n const caret =\n !readOnly && chevron ? (\n <StyledPropertyListChevron>\n <ArrowDownSmallIcon />\n </StyledPropertyListChevron>\n ) : null;\n\n return (\n <StyledPropertyListRow\n {...rest}\n as={readOnly ? \"div\" : \"button\"}\n ref={ref as Ref<HTMLDivElement>}\n {...(readOnly\n ? { \"aria-disabled\": isDisabled || undefined }\n : { type: \"button\", disabled: isDisabled })}\n $disabled={isDisabled}\n $layout={layout}\n $density={density}\n $tone={tone}\n $clickable={!readOnly}\n className={classnames(\"c-property-list__row\", className)}\n >\n {children ??\n (layout === \"table\" ? (\n <>\n <PropertyListLabel icon={icon} label={label} />\n <StyledPropertyListTableValue>\n {value}\n </StyledPropertyListTableValue>\n <StyledPropertyListTableAction>\n {action}\n {caret}\n </StyledPropertyListTableAction>\n </>\n ) : (\n <>\n <PropertyListLabel icon={icon} label={label} />\n {value}\n {action}\n {caret}\n </>\n ))}\n </StyledPropertyListRow>\n );\n }\n);\n\nPropertyListRow.displayName = \"PropertyListRow\";\n\nexport interface IPropertyListToggleProps\n extends ButtonHTMLAttributes<HTMLButtonElement> {\n /** The rows that the toggle opens are on the screen. */\n expanded?: boolean;\n}\n\n/** The last row of a list: it opens and closes the rows with no value. */\nexport const PropertyListToggle = forwardRef<\n HTMLButtonElement,\n IPropertyListToggleProps\n>(({ expanded = false, disabled, className, children, ...rest }, ref) => {\n const isDisabled = usePropertyListDisabled() || disabled;\n\n return (\n <StyledPropertyListToggle\n type=\"button\"\n {...rest}\n disabled={isDisabled}\n ref={ref}\n aria-expanded={expanded}\n className={classnames(\"c-property-list__toggle\", className)}\n >\n {children}\n </StyledPropertyListToggle>\n );\n});\n\nPropertyListToggle.displayName = \"PropertyListToggle\";\n\nexport interface IPropertyListBranchProps\n extends HTMLAttributes<HTMLSpanElement> {\n /** \"middle\" continues the line to the next row of the branch. */\n position?: \"middle\" | \"last\";\n}\n\n/** The tree line before a row that belongs to the row above it. Its parent must be positioned. */\nexport const PropertyListBranch = ({\n position = \"last\",\n ...rest\n}: IPropertyListBranchProps) => (\n <>\n <StyledPropertyListBranch aria-hidden=\"true\" {...rest} />\n {position === \"middle\" ? (\n <StyledPropertyListBranchLine aria-hidden=\"true\" />\n ) : null}\n </>\n);\n"],"mappings":";;;;;;;AAAA,OAAOA,KAAK,IAEVC,QAAQ,EACRC,QAAQ,EAKRC,aAAa,EACbC,UAAU,EACVC,cAAc,EACdC,UAAU,QACL,OAAO;AAEd,OAAOC,UAAU,MAAM,YAAY;AAEnC,SACEC,aAAa,EAKbC,kBAAkB,EAClBC,yBAA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AM,CAAE,CAAC,GACjD,IACJ,CAAC;AAAA,CACJ","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"PropertyList.js","names":["React","Children","Fragment","createContext","forwardRef","isValidElement","useContext","classnames","CONTAINER_CSS","StyledPropertyList","StyledPropertyListAddIcon","StyledPropertyListBranch","StyledPropertyListBranchLine","StyledPropertyListCell","StyledPropertyListCellAside","StyledPropertyListCellMain","StyledPropertyListCells","StyledPropertyListCellSplit","StyledPropertyListChevron","StyledPropertyListDivider","StyledPropertyListIcon","StyledPropertyListLabelText","StyledPropertyListRow","StyledPropertyListTableAction","StyledPropertyListTableLabel","StyledPropertyListTableValue","StyledPropertyListFooter","StyledPropertyListFooterTear","StyledPropertyListTear","StyledPropertyListTicketAddIcon","StyledPropertyListTicketCaret","StyledPropertyListTicketLabel","StyledPropertyListTicketLine","StyledPropertyListTicketText","StyledPropertyListTicketValue","StyledPropertyListToggle","StyledPropertyListValue","useContainerCss","AddCrossTinyIcon","ArrowDownSmallIcon","TicketPerforation","DensityContext","LayoutContext","DisabledContext","usePropertyListDensity","usePropertyListLayout","usePropertyListDisabled","PropertyListLayout","_ref","_ref$value","value","children","createElement","Provider","PropertyListDivider","$layout","$density","className","PropertyListCell","_ref2","displayName","keyOf","part","index","_key","key","renderCell","type","_ref3","props","aside","asideProps","cellProps","_objectWithoutPropertiesLoose","_excluded","hasAside","undefined","_extends","PropertyList","_ref4","ref","_ref4$density","density","_ref4$disabled","disabled","layout","_ref4$cells","cells","header","footer","cellsProps","footerProps","tearProps","perforationProps","_ref4$solid","solid","_ref4$roomy","roomy","_ref4$notches","notches","rest","_excluded2","contextLayout","current","isTicket","parts","toArray","filter","Boolean","ticket","line","$cells","map","length","variant","radius","shadow","$disabled","$ticket","$solid","$roomy","PropertyListValue","_ref5","_ref5$placeholder","placeholder","$placeholder","forwardedAs","color","PropertyListAdd","_ref6","PropertyListLabel","_ref7","icon","label","$size","$scale","weight","PropertyListRow","_ref8","action","_ref8$tone","tone","_ref8$readOnly","readOnly","_ref8$chevron","chevron","_ref8$disabled","_ref8$parts","_ref8$wrap","wrap","labelProps","caretProps","_excluded3","isDisabled","cell","as","$tone","$clickable","$parts","$wrap","caret","PropertyListToggle","_ref9","_ref9$expanded","expanded","_excluded4","PropertyListBranch","_ref0","_ref0$position","position","_excluded5"],"sources":["../../../../src/components/PropertyList/PropertyList.tsx"],"sourcesContent":["import React, {\n ButtonHTMLAttributes,\n Children,\n Fragment,\n HTMLAttributes,\n ReactElement,\n ReactNode,\n Ref,\n createContext,\n forwardRef,\n isValidElement,\n useContext,\n} from \"react\";\n\nimport classnames from \"classnames\";\n\nimport {\n CONTAINER_CSS,\n PropertyListCells,\n PropertyListDensity,\n PropertyListLayoutName,\n PropertyListTone,\n StyledPropertyList,\n StyledPropertyListAddIcon,\n StyledPropertyListBranch,\n StyledPropertyListBranchLine,\n StyledPropertyListCell,\n StyledPropertyListCellAside,\n StyledPropertyListCellMain,\n StyledPropertyListCells,\n StyledPropertyListCellSplit,\n StyledPropertyListChevron,\n StyledPropertyListDivider,\n StyledPropertyListIcon,\n StyledPropertyListLabelText,\n StyledPropertyListRow,\n StyledPropertyListTableAction,\n StyledPropertyListTableLabel,\n StyledPropertyListTableValue,\n StyledPropertyListFooter,\n StyledPropertyListFooterTear,\n StyledPropertyListTear,\n StyledPropertyListTicketAddIcon,\n StyledPropertyListTicketCaret,\n StyledPropertyListTicketLabel,\n StyledPropertyListTicketLine,\n StyledPropertyListTicketText,\n StyledPropertyListTicketValue,\n StyledPropertyListToggle,\n StyledPropertyListValue,\n} from \"./Styles\";\nimport { useContainerCss } from \"../../utils/useContainerCss\";\nimport { AddCrossTinyIcon, ArrowDownSmallIcon } from \"../Icons\";\nimport { TicketPerforation } from \"../TicketPerforation\";\n\nconst DensityContext = createContext<PropertyListDensity>(\"form\");\nconst LayoutContext = createContext<PropertyListLayoutName>(\"stacked\");\nconst DisabledContext = createContext(false);\n\nexport const usePropertyListDensity = () => useContext(DensityContext);\nexport const usePropertyListLayout = () => useContext(LayoutContext);\nexport const usePropertyListDisabled = () => useContext(DisabledContext);\n\n/** Sets the layout of the rows below it: one line each, the three columns of a table, or the cells of a ticket. */\nexport const PropertyListLayout = ({\n value = \"stacked\",\n children,\n}: {\n value?: PropertyListLayoutName;\n children?: ReactNode;\n}) => <LayoutContext.Provider value={value}>{children}</LayoutContext.Provider>;\n\n/** The line between two rows. In a stacked list it starts where the label text starts. */\nexport const PropertyListDivider = () => (\n <StyledPropertyListDivider\n aria-hidden=\"true\"\n $layout={usePropertyListLayout()}\n $density={usePropertyListDensity()}\n className=\"c-property-list__divider\"\n />\n);\n\nexport interface IPropertyListProps extends HTMLAttributes<HTMLDivElement> {\n /** \"form\" for a compact list in a form, \"page\" for a list on a page, with a shadow. */\n density?: PropertyListDensity;\n /** Every row of the list is dimmed and takes no click and no focus. */\n disabled?: boolean;\n /** The layout of the rows. Without it the list takes the layout of the PropertyListLayout around it. \"ticket\" makes each row a cell: a small label over its value. */\n layout?: PropertyListLayoutName;\n /** Ticket only: \"grid\" puts the cells in two, three or four columns by the card width, \"row\" in one row that wraps. */\n cells?: PropertyListCells;\n /** Ticket only: a part over the cells, with a tear line under it. */\n header?: ReactNode;\n /** Ticket only: rows of the page density under the cells, after a tear line, to the edges of the card. */\n footer?: ReactNode;\n /** Ticket only: attributes of the box of the cells, such as a test id. */\n cellsProps?: TicketPartProps;\n /** Ticket only: attributes of the box of the footer, such as a test id. */\n footerProps?: TicketPartProps;\n /** Ticket grid only: attributes of each tear line between the cells. */\n tearProps?: TicketPartProps;\n /** Ticket only: attributes of every perforation of the ticket. */\n perforationProps?: TicketPartProps;\n /** In a flat ObjectLayout the card keeps the raised color of the theme. */\n solid?: boolean;\n /** Each row is 8px taller. */\n roomy?: boolean;\n /** Ticket only: false leaves the tear lines with no notches. */\n notches?: boolean;\n}\n\ntype TicketDataProps = {\n className?: string;\n \"data-testid\"?: string;\n [attribute: `data-${string}`]: string | boolean | undefined;\n};\n\ntype TicketPartProps = HTMLAttributes<HTMLDivElement> & TicketDataProps;\n\nexport interface IPropertyListCellProps extends TicketPartProps {\n /** An icon button at the right edge of the cell, after a line. */\n aside?: ReactNode;\n /** Attributes of the box of the aside, such as a test id. */\n asideProps?: TicketPartProps;\n children?: ReactNode;\n}\n\n/** A cell of a ticket grid with its own attributes and an aside. Put it as a direct child of a ticket PropertyList. */\nexport const PropertyListCell = ({ children }: IPropertyListCellProps) => (\n <>{children}</>\n);\n\nPropertyListCell.displayName = \"PropertyListCell\";\n\nconst keyOf = (part: ReactNode, index: number) =>\n (part as ReactElement).key ?? index;\n\nconst renderCell = (part: ReactNode) => {\n if (!isValidElement(part) || part.type !== PropertyListCell) {\n return (\n <StyledPropertyListCell className=\"c-property-list__cell\">\n {part}\n </StyledPropertyListCell>\n );\n }\n\n const { aside, asideProps, className, children, ...cellProps } =\n part.props as IPropertyListCellProps;\n const hasAside = aside !== undefined && aside !== null;\n\n return (\n <StyledPropertyListCell\n {...cellProps}\n className={classnames(\"c-property-list__cell\", className)}\n >\n {hasAside ? (\n <StyledPropertyListCellSplit>\n <StyledPropertyListCellMain>{children}</StyledPropertyListCellMain>\n <StyledPropertyListCellAside\n {...asideProps}\n className={classnames(\n \"c-property-list__aside\",\n asideProps?.className\n )}\n >\n {aside}\n </StyledPropertyListCellAside>\n </StyledPropertyListCellSplit>\n ) : (\n children\n )}\n </StyledPropertyListCell>\n );\n};\n\nexport const PropertyList = forwardRef<HTMLDivElement, IPropertyListProps>(\n (\n {\n density = \"form\",\n disabled = false,\n layout,\n cells = \"grid\",\n header,\n footer,\n cellsProps,\n footerProps,\n tearProps,\n perforationProps,\n solid = false,\n roomy = false,\n notches = true,\n className,\n children,\n ...rest\n },\n ref\n ) => {\n const contextLayout = usePropertyListLayout();\n const current = layout ?? contextLayout;\n const isTicket = current === \"ticket\";\n const parts = Children.toArray(children).filter(Boolean);\n\n useContainerCss(\"c-property-list-container\", CONTAINER_CSS);\n\n const ticket = (\n <>\n {header ? (\n <>\n {header}\n <TicketPerforation\n {...perforationProps}\n notches={notches}\n line={cells === \"row\" ? \"primary\" : \"raised\"}\n />\n </>\n ) : null}\n <StyledPropertyListCells\n {...cellsProps}\n $cells={cells}\n className={classnames(\n \"c-property-list__cells\",\n `c-property-list__cells--${cells}`,\n cellsProps?.className\n )}\n >\n {cells === \"grid\"\n ? parts.map((part, index) => (\n <Fragment key={keyOf(part, index)}>\n {renderCell(part)}\n {index < parts.length - 1 ? (\n <StyledPropertyListTear\n {...tearProps}\n className={classnames(\n \"c-property-list__tear\",\n tearProps?.className\n )}\n >\n <TicketPerforation\n {...perforationProps}\n notches={notches}\n line=\"raised\"\n />\n </StyledPropertyListTear>\n ) : null}\n </Fragment>\n ))\n : parts}\n </StyledPropertyListCells>\n {footer ? (\n <>\n <StyledPropertyListFooterTear aria-hidden=\"true\">\n <TicketPerforation\n {...perforationProps}\n notches={notches}\n line=\"raised\"\n />\n </StyledPropertyListFooterTear>\n <StyledPropertyListFooter\n {...footerProps}\n className={classnames(\n \"c-property-list__footer\",\n footerProps?.className\n )}\n >\n <PropertyList layout=\"stacked\" density=\"page\" disabled={disabled}>\n {footer}\n </PropertyList>\n </StyledPropertyListFooter>\n </>\n ) : null}\n </>\n );\n\n return (\n <LayoutContext.Provider value={current}>\n <DensityContext.Provider value={density}>\n <DisabledContext.Provider value={disabled}>\n <StyledPropertyList\n {...rest}\n ref={ref}\n variant=\"raised\"\n radius={isTicket ? (cells === \"row\" ? 24 : 12) : 20}\n shadow={isTicket || density === \"page\"}\n $disabled={disabled}\n $ticket={isTicket ? cells : undefined}\n $solid={solid}\n $roomy={roomy}\n aria-disabled={disabled || undefined}\n className={classnames(\n \"c-property-list\",\n { \"c-property-list--ticket\": isTicket },\n className\n )}\n >\n {isTicket\n ? ticket\n : parts.map((part, index) => (\n <Fragment key={keyOf(part, index)}>\n {index > 0 ? <PropertyListDivider /> : null}\n {part}\n </Fragment>\n ))}\n </StyledPropertyList>\n </DisabledContext.Provider>\n </DensityContext.Provider>\n </LayoutContext.Provider>\n );\n }\n);\n\nPropertyList.displayName = \"PropertyList\";\n\nexport interface IPropertyListValueProps {\n /** A row with no value shows its text in the placeholder color. */\n placeholder?: boolean;\n className?: string;\n children?: ReactNode;\n}\n\nexport const PropertyListValue = ({\n placeholder = false,\n className,\n children,\n}: IPropertyListValueProps) => {\n const density = usePropertyListDensity();\n\n if (usePropertyListLayout() === \"ticket\") {\n return (\n <StyledPropertyListTicketValue\n $placeholder={placeholder}\n className={classnames(\"c-property-list__value\", className)}\n data-placeholder={placeholder || undefined}\n >\n {children}\n </StyledPropertyListTicketValue>\n );\n }\n\n return (\n <StyledPropertyListValue\n forwardedAs=\"span\"\n color={placeholder ? \"quaternary\" : undefined}\n $density={density}\n $placeholder={placeholder}\n className={classnames(\"c-property-list__value\", className)}\n data-placeholder={placeholder || undefined}\n >\n {children}\n </StyledPropertyListValue>\n );\n};\n\n/** The \"Add\" of a row: a placeholder with a plus where another row has its chevron. */\nexport const PropertyListAdd = ({ children }: { children?: ReactNode }) => (\n <>\n <PropertyListValue placeholder>{children}</PropertyListValue>\n {usePropertyListLayout() === \"ticket\" ? (\n <StyledPropertyListTicketAddIcon />\n ) : (\n <StyledPropertyListAddIcon>\n <AddCrossTinyIcon />\n </StyledPropertyListAddIcon>\n )}\n </>\n);\n\nexport interface IPropertyListLabelProps {\n icon?: ReactNode;\n label?: ReactNode;\n}\n\nexport const PropertyListLabel = ({ icon, label }: IPropertyListLabelProps) => {\n const density = usePropertyListDensity();\n const layout = usePropertyListLayout();\n\n if (layout === \"table\") {\n return (\n <StyledPropertyListTableLabel className=\"c-property-list__label\">\n <StyledPropertyListIcon $size={16} $scale>\n {icon}\n </StyledPropertyListIcon>\n <StyledPropertyListLabelText\n forwardedAs=\"span\"\n weight=\"medium\"\n $layout={layout}\n $density={density}\n >\n {label}\n </StyledPropertyListLabelText>\n </StyledPropertyListTableLabel>\n );\n }\n\n return (\n <>\n <StyledPropertyListIcon\n $size={density === \"page\" ? 28 : 24}\n $scale={false}\n >\n {icon}\n </StyledPropertyListIcon>\n <StyledPropertyListLabelText\n forwardedAs=\"span\"\n weight=\"medium\"\n $layout={layout}\n $density={density}\n className=\"c-property-list__label\"\n >\n {label}\n </StyledPropertyListLabelText>\n </>\n );\n};\n\nexport interface IPropertyListRowProps\n extends Omit<HTMLAttributes<HTMLElement>, \"children\"> {\n icon?: ReactNode;\n label?: ReactNode;\n value?: ReactNode;\n /** A control before the chevron. */\n action?: ReactNode;\n tone?: PropertyListTone;\n /** A read only row is plain text. A row that can change is one button. */\n readOnly?: boolean;\n chevron?: boolean;\n /** Dimmed, with no click and no focus. A disabled list disables its rows. */\n disabled?: boolean;\n /** Ticket only: the value is a row of parts, such as avatars and a text, with the 24px height of an avatar. Set to false for one line of text. */\n parts?: boolean;\n /** Ticket grid only: an icon button at the right edge of the cell, after a line. */\n aside?: ReactNode;\n /** Ticket only: the parts of the value may wrap to more lines. */\n wrap?: boolean;\n /** Ticket only: a third line under the value. */\n footer?: ReactNode;\n /** Ticket only: attributes of the label, such as a data attribute. */\n labelProps?: TicketDataProps;\n /** Ticket only: attributes of the caret, such as a test id. */\n caretProps?: TicketDataProps;\n /** Replaces the label, the value and the action. In a ticket it replaces only the value and the action. */\n children?: ReactNode;\n}\n\nexport const PropertyListRow = forwardRef<HTMLElement, IPropertyListRowProps>(\n (\n {\n icon,\n label,\n value,\n action,\n tone = \"regular\",\n readOnly = false,\n chevron = true,\n disabled = false,\n parts = true,\n aside,\n wrap = false,\n footer,\n labelProps,\n caretProps,\n className,\n children,\n ...rest\n },\n ref\n ) => {\n const isDisabled = usePropertyListDisabled() || disabled;\n const density = usePropertyListDensity();\n const layout = usePropertyListLayout();\n\n if (layout === \"ticket\") {\n const cell = (\n <StyledPropertyListRow\n {...rest}\n as={readOnly ? \"div\" : \"button\"}\n ref={ref as Ref<HTMLDivElement>}\n {...(readOnly\n ? { \"aria-disabled\": isDisabled || undefined }\n : { type: \"button\", disabled: isDisabled })}\n $disabled={isDisabled}\n $layout={layout}\n $density={density}\n $tone={tone}\n $clickable={!readOnly}\n className={classnames(\"c-property-list__row\", className)}\n >\n <StyledPropertyListTicketLabel\n {...labelProps}\n forwardedAs=\"span\"\n $tone={tone}\n className={classnames(\n \"c-property-list__label\",\n labelProps?.className\n )}\n >\n {label}\n </StyledPropertyListTicketLabel>\n <StyledPropertyListTicketLine $parts={parts}>\n <StyledPropertyListTicketText\n forwardedAs=\"span\"\n weight=\"medium\"\n $parts={parts}\n $wrap={wrap}\n $tone={tone}\n >\n {children ?? (\n <>\n {value}\n {action}\n </>\n )}\n </StyledPropertyListTicketText>\n {!readOnly && chevron ? (\n <StyledPropertyListTicketCaret\n {...caretProps}\n aria-hidden=\"true\"\n />\n ) : null}\n </StyledPropertyListTicketLine>\n {footer}\n </StyledPropertyListRow>\n );\n\n if (aside === undefined || aside === null) {\n return cell;\n }\n\n return (\n <StyledPropertyListCellSplit>\n <StyledPropertyListCellMain>{cell}</StyledPropertyListCellMain>\n <StyledPropertyListCellAside className=\"c-property-list__aside\">\n {aside}\n </StyledPropertyListCellAside>\n </StyledPropertyListCellSplit>\n );\n }\n\n const caret =\n !readOnly && chevron ? (\n <StyledPropertyListChevron>\n <ArrowDownSmallIcon />\n </StyledPropertyListChevron>\n ) : null;\n\n return (\n <StyledPropertyListRow\n {...rest}\n as={readOnly ? \"div\" : \"button\"}\n ref={ref as Ref<HTMLDivElement>}\n {...(readOnly\n ? { \"aria-disabled\": isDisabled || undefined }\n : { type: \"button\", disabled: isDisabled })}\n $disabled={isDisabled}\n $layout={layout}\n $density={density}\n $tone={tone}\n $clickable={!readOnly}\n className={classnames(\"c-property-list__row\", className)}\n >\n {children ??\n (layout === \"table\" ? (\n <>\n <PropertyListLabel icon={icon} label={label} />\n <StyledPropertyListTableValue>\n {value}\n </StyledPropertyListTableValue>\n <StyledPropertyListTableAction>\n {action}\n {caret}\n </StyledPropertyListTableAction>\n </>\n ) : (\n <>\n <PropertyListLabel icon={icon} label={label} />\n {value}\n {action}\n {caret}\n </>\n ))}\n </StyledPropertyListRow>\n );\n }\n);\n\nPropertyListRow.displayName = \"PropertyListRow\";\n\nexport interface IPropertyListToggleProps\n extends ButtonHTMLAttributes<HTMLButtonElement> {\n /** The rows that the toggle opens are on the screen. */\n expanded?: boolean;\n}\n\n/** The last row of a list: it opens and closes the rows with no value. */\nexport const PropertyListToggle = forwardRef<\n HTMLButtonElement,\n IPropertyListToggleProps\n>(({ expanded = false, disabled, className, children, ...rest }, ref) => {\n const isDisabled = usePropertyListDisabled() || disabled;\n\n return (\n <StyledPropertyListToggle\n type=\"button\"\n {...rest}\n disabled={isDisabled}\n ref={ref}\n aria-expanded={expanded}\n className={classnames(\"c-property-list__toggle\", className)}\n >\n {children}\n </StyledPropertyListToggle>\n );\n});\n\nPropertyListToggle.displayName = \"PropertyListToggle\";\n\nexport interface IPropertyListBranchProps\n extends HTMLAttributes<HTMLSpanElement> {\n /** \"middle\" continues the line to the next row of the branch. */\n position?: \"middle\" | \"last\";\n}\n\n/** The tree line before a row that belongs to the row above it. Its parent must be positioned. */\nexport const PropertyListBranch = ({\n position = \"last\",\n ...rest\n}: IPropertyListBranchProps) => (\n <>\n <StyledPropertyListBranch aria-hidden=\"true\" {...rest} />\n {position === \"middle\" ? (\n <StyledPropertyListBranchLine aria-hidden=\"true\" />\n ) : null}\n </>\n);\n"],"mappings":";;;;;;;AAAA,OAAOA,KAAK,IAEVC,QAAQ,EACRC,QAAQ,EAKRC,aAAa,EACbC,UAAU,EACVC,cAAc,EACdC,UAAU,QACL,OAAO;AAEd,OAAOC,UAAU,MAAM,YAAY;AAEnC,SACEC,aAAa,EAKbC,kBAAkB,EAClBC,yBAAyB,EACzBC,wBAAwB,EACxBC,4BAA4B,EAC5BC,sBAAsB,EACtBC,2BAA2B,EAC3BC,0BAA0B,EAC1BC,uBAAuB,EACvBC,2BAA2B,EAC3BC,yBAAyB,EACzBC,yBAAyB,EACzBC,sBAAsB,EACtBC,2BAA2B,EAC3BC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aAAA,CAAApD,KAAA,CAAAE,QAAA,qBACEF,KAAA,CAAAoD,aAAA,CAACzC,wBAAwB,EAAAkE,QAAA;IAAC,eAAY;EAAM,GAAKuB,IAAI,CAAG,CAAC,EACxDqE,QAAQ,KAAK,QAAQ,gBACpBzK,KAAA,CAAAoD,aAAA,CAACxC,4BAA4B;IAAC,eAAY;EAAM,CAAE,CAAC,GACjD,IACJ,CAAC;AAAA,CACJ","ignoreList":[]}
|
|
@@ -5,6 +5,8 @@ export type PropertyListCells = "grid" | "row";
|
|
|
5
5
|
export declare const StyledPropertyList: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Omit<import("react").HTMLAttributes<HTMLDivElement> & import("..").ICardProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>, any, {
|
|
6
6
|
$disabled?: boolean;
|
|
7
7
|
$ticket?: PropertyListCells;
|
|
8
|
+
$solid?: boolean;
|
|
9
|
+
$roomy?: boolean;
|
|
8
10
|
}, never>;
|
|
9
11
|
export declare const StyledPropertyListDivider: import("styled-components").StyledComponent<"div", any, {
|
|
10
12
|
$layout: PropertyListLayoutName;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Styles.d.ts","sourceRoot":"","sources":["../../../../src/components/PropertyList/Styles.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Styles.d.ts","sourceRoot":"","sources":["../../../../src/components/PropertyList/Styles.ts"],"names":[],"mappings":"AASA,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,MAAM,CAAC;AAClD,MAAM,MAAM,sBAAsB,GAAG,SAAS,GAAG,OAAO,GAAG,QAAQ,CAAC;AACpE,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,OAAO,CAAC;AACnD,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG,KAAK,CAAC;AAK/C,eAAO,MAAM,kBAAkB;gBACjB,OAAO;cACT,iBAAiB;aAClB,OAAO;aACP,OAAO;SA4CjB,CAAC;AAEF,eA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AiBvC,CAAC;AAEF,eAAO,MAAM,sBAAsB,oEAGlC,CAAC;AAEF,eAAO,MAAM,4BAA4B,oEAIxC,CAAC;AAEF,eAAO,MAAM,wBAAwB,oEAYpC,CAAC;AAGF,eAAO,MAAM,aAAa,+oBAYzB,CAAC"}
|
|
@@ -2,51 +2,58 @@ import styled, { css } from "styled-components";
|
|
|
2
2
|
import { Card } from "../Card";
|
|
3
3
|
import { AddCrossTinyIcon, ArrowDownSmallIcon } from "../Icons";
|
|
4
4
|
import { Body1, Body2, Caption2 } from "../Typography";
|
|
5
|
+
const SOLID_SURFACE = "var(--object-layout-card-surface, var(--surface-raised))";
|
|
5
6
|
const disabledSurface = "color-mix(in srgb, var(--surface-raised) 50%, transparent)";
|
|
6
7
|
export const StyledPropertyList = styled(Card).withConfig({
|
|
7
8
|
displayName: "Styles__StyledPropertyList",
|
|
8
9
|
componentId: "sc-ssdfzo-0"
|
|
9
|
-
})(["display:flex;flex-direction:column;overflow:clip;", " ", ""], _ref => {
|
|
10
|
+
})(["display:flex;flex-direction:column;overflow:clip;", " ", " ", " ", ""], _ref => {
|
|
10
11
|
let $ticket = _ref.$ticket;
|
|
11
12
|
return $ticket && css(["", " gap:4px;min-width:0;overflow:visible;padding:", ";"], $ticket === "grid" && "container-type: inline-size;", $ticket === "grid" ? "4px 16px 16px" : "16px");
|
|
12
13
|
}, _ref2 => {
|
|
13
|
-
let $
|
|
14
|
+
let $solid = _ref2.$solid;
|
|
15
|
+
return $solid && css(["&&{background-color:", ";}"], SOLID_SURFACE);
|
|
16
|
+
}, _ref3 => {
|
|
17
|
+
let $roomy = _ref3.$roomy;
|
|
18
|
+
return $roomy && css(["& .c-property-list__row{padding-top:10px;padding-bottom:10px;}"]);
|
|
19
|
+
}, _ref4 => {
|
|
20
|
+
let $disabled = _ref4.$disabled;
|
|
14
21
|
return $disabled && css(["&&{background-color:", ";}&&:hover{background-color:", ";}"], disabledSurface, disabledSurface);
|
|
15
22
|
});
|
|
16
23
|
export const StyledPropertyListDivider = styled.div.withConfig({
|
|
17
24
|
displayName: "Styles__StyledPropertyListDivider",
|
|
18
25
|
componentId: "sc-ssdfzo-1"
|
|
19
|
-
})(["flex-shrink:0;height:1px;background-color:var(--border-raised);", ""],
|
|
20
|
-
let $layout =
|
|
21
|
-
$density =
|
|
26
|
+
})(["flex-shrink:0;height:1px;background-color:var(--border-raised);", ""], _ref5 => {
|
|
27
|
+
let $layout = _ref5.$layout,
|
|
28
|
+
$density = _ref5.$density;
|
|
22
29
|
return $layout === "stacked" && "margin-left: " + ($density === "page" ? 44 : 46) + "px;";
|
|
23
30
|
});
|
|
24
31
|
const highlight = "linear-gradient(var(--highlight-dark), var(--highlight-dark))";
|
|
25
32
|
export const StyledPropertyListRow = styled.div.withConfig({
|
|
26
33
|
displayName: "Styles__StyledPropertyListRow",
|
|
27
34
|
componentId: "sc-ssdfzo-2"
|
|
28
|
-
})(["position:relative;width:100%;border:0;text-align:left;background-color:", ";", " ", " ", " ", ""],
|
|
29
|
-
let $tone =
|
|
30
|
-
$layout =
|
|
35
|
+
})(["position:relative;width:100%;border:0;text-align:left;background-color:", ";", " ", " ", " ", ""], _ref6 => {
|
|
36
|
+
let $tone = _ref6.$tone,
|
|
37
|
+
$layout = _ref6.$layout;
|
|
31
38
|
return $tone === "alert" && $layout !== "ticket" ? "var(--alert-surface-subtle)" : "transparent";
|
|
32
|
-
},
|
|
33
|
-
let $layout =
|
|
34
|
-
$density =
|
|
39
|
+
}, _ref7 => {
|
|
40
|
+
let $layout = _ref7.$layout,
|
|
41
|
+
$density = _ref7.$density;
|
|
35
42
|
return $layout === "table" ? css(["display:grid;grid-template-columns:185px minmax(0,1fr) auto;align-items:center;min-height:36px;padding:4px 12px;"]) : $layout === "ticket" ? css(["box-sizing:border-box;display:flex;flex-direction:column;gap:2px;width:auto;min-width:0;margin:0;padding:6px 8px;color:inherit;"]) : css(["display:flex;align-items:center;gap:8px;min-height:", "px;padding:6px 12px;"], $density === "page" ? 44 : 40);
|
|
36
|
-
},
|
|
37
|
-
let $disabled =
|
|
38
|
-
$density =
|
|
43
|
+
}, _ref8 => {
|
|
44
|
+
let $disabled = _ref8.$disabled,
|
|
45
|
+
$density = _ref8.$density;
|
|
39
46
|
return $disabled && css(["cursor:default;> *{opacity:0.4;}&& .c-property-list__value[data-placeholder]{color:", ";}"], $density === "page" ? "var(--muted-text)" : "var(--color-theme-800)");
|
|
40
|
-
},
|
|
41
|
-
let $clickable =
|
|
42
|
-
$disabled =
|
|
43
|
-
$layout =
|
|
47
|
+
}, _ref9 => {
|
|
48
|
+
let $clickable = _ref9.$clickable,
|
|
49
|
+
$disabled = _ref9.$disabled,
|
|
50
|
+
$layout = _ref9.$layout;
|
|
44
51
|
return $clickable && !$disabled && $layout === "ticket" && css(["cursor:pointer;border-radius:10px;&:hover,&[aria-expanded=\"true\"]{background-color:var(--color-theme-200);}&:focus-visible{outline:2px solid var(--color-primary);}"]);
|
|
45
|
-
},
|
|
46
|
-
let $clickable =
|
|
47
|
-
$disabled =
|
|
48
|
-
$tone =
|
|
49
|
-
$layout =
|
|
52
|
+
}, _ref0 => {
|
|
53
|
+
let $clickable = _ref0.$clickable,
|
|
54
|
+
$disabled = _ref0.$disabled,
|
|
55
|
+
$tone = _ref0.$tone,
|
|
56
|
+
$layout = _ref0.$layout;
|
|
50
57
|
return $clickable && !$disabled && $layout !== "ticket" && css(["cursor:pointer;&:hover,&:focus-visible,&[aria-expanded=\"true\"]{", "}&:focus-visible{outline:none;}"], $tone === "alert" ? "background-image: " + highlight + ";" : "background-color: var(--color-theme-200);");
|
|
51
58
|
});
|
|
52
59
|
export const StyledPropertyListTableLabel = styled.span.withConfig({
|
|
@@ -56,34 +63,34 @@ export const StyledPropertyListTableLabel = styled.span.withConfig({
|
|
|
56
63
|
export const StyledPropertyListIcon = styled.span.withConfig({
|
|
57
64
|
displayName: "Styles__StyledPropertyListIcon",
|
|
58
65
|
componentId: "sc-ssdfzo-4"
|
|
59
|
-
})(["display:flex;flex-shrink:0;align-items:center;justify-content:center;width:", "px;height:", "px;& svg{fill:var(--color-theme-700);", "}"],
|
|
60
|
-
let $size =
|
|
66
|
+
})(["display:flex;flex-shrink:0;align-items:center;justify-content:center;width:", "px;height:", "px;& svg{fill:var(--color-theme-700);", "}"], _ref1 => {
|
|
67
|
+
let $size = _ref1.$size;
|
|
61
68
|
return $size;
|
|
62
|
-
},
|
|
63
|
-
let $size =
|
|
69
|
+
}, _ref10 => {
|
|
70
|
+
let $size = _ref10.$size;
|
|
64
71
|
return $size;
|
|
65
|
-
},
|
|
66
|
-
let $scale =
|
|
67
|
-
$size =
|
|
72
|
+
}, _ref11 => {
|
|
73
|
+
let $scale = _ref11.$scale,
|
|
74
|
+
$size = _ref11.$size;
|
|
68
75
|
return $scale && "width: " + $size + "px; height: " + $size + "px;";
|
|
69
76
|
});
|
|
70
77
|
export const StyledPropertyListLabelText = styled(Body2).withConfig({
|
|
71
78
|
displayName: "Styles__StyledPropertyListLabelText",
|
|
72
79
|
componentId: "sc-ssdfzo-5"
|
|
73
|
-
})(["&&{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--color-theme-700);", "}"],
|
|
74
|
-
let $layout =
|
|
75
|
-
$density =
|
|
80
|
+
})(["&&{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--color-theme-700);", "}"], _ref12 => {
|
|
81
|
+
let $layout = _ref12.$layout,
|
|
82
|
+
$density = _ref12.$density;
|
|
76
83
|
return $layout === "stacked" && css(["flex:1 1 0%;", ""], $density === "page" ? "margin-left: -4px;" : "padding-left: 6px;");
|
|
77
84
|
});
|
|
78
85
|
export const StyledPropertyListValue = styled(Body2).withConfig({
|
|
79
86
|
displayName: "Styles__StyledPropertyListValue",
|
|
80
87
|
componentId: "sc-ssdfzo-6"
|
|
81
|
-
})(["&&{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:", ";", "}"],
|
|
82
|
-
let $density =
|
|
88
|
+
})(["&&{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:", ";", "}"], _ref13 => {
|
|
89
|
+
let $density = _ref13.$density;
|
|
83
90
|
return $density === "page" ? "calc(15px * var(--text-scale, 1))" : "calc(1em + 1px)";
|
|
84
|
-
},
|
|
85
|
-
let $placeholder =
|
|
86
|
-
$density =
|
|
91
|
+
}, _ref14 => {
|
|
92
|
+
let $placeholder = _ref14.$placeholder,
|
|
93
|
+
$density = _ref14.$density;
|
|
87
94
|
return !$placeholder && "color: " + ($density === "page" ? "var(--muted-text)" : "var(--color-theme-800)") + ";";
|
|
88
95
|
});
|
|
89
96
|
export const StyledPropertyListAddIcon = styled.span.withConfig({
|
|
@@ -117,26 +124,26 @@ export const StyledPropertyListBranchLine = styled.span.withConfig({
|
|
|
117
124
|
export const StyledPropertyListTicketLabel = styled(Caption2).withConfig({
|
|
118
125
|
displayName: "Styles__StyledPropertyListTicketLabel",
|
|
119
126
|
componentId: "sc-ssdfzo-14"
|
|
120
|
-
})(["&&{text-transform:uppercase;letter-spacing:0.09em;color:", ";}"],
|
|
121
|
-
let $tone =
|
|
127
|
+
})(["&&{text-transform:uppercase;letter-spacing:0.09em;color:", ";}"], _ref15 => {
|
|
128
|
+
let $tone = _ref15.$tone;
|
|
122
129
|
return $tone === "alert" ? "var(--red-alert)" : "var(--color-theme-600)";
|
|
123
130
|
});
|
|
124
131
|
export const StyledPropertyListTicketLine = styled.span.withConfig({
|
|
125
132
|
displayName: "Styles__StyledPropertyListTicketLine",
|
|
126
133
|
componentId: "sc-ssdfzo-15"
|
|
127
|
-
})(["display:flex;align-items:center;gap:4px;min-width:0;", ""],
|
|
128
|
-
let $parts =
|
|
134
|
+
})(["display:flex;align-items:center;gap:4px;min-width:0;", ""], _ref16 => {
|
|
135
|
+
let $parts = _ref16.$parts;
|
|
129
136
|
return $parts && "min-height: 24px;";
|
|
130
137
|
});
|
|
131
138
|
export const StyledPropertyListTicketText = styled(Body1).withConfig({
|
|
132
139
|
displayName: "Styles__StyledPropertyListTicketText",
|
|
133
140
|
componentId: "sc-ssdfzo-16"
|
|
134
|
-
})(["&&{min-width:0;", " ", "}"],
|
|
135
|
-
let $parts =
|
|
136
|
-
$wrap =
|
|
141
|
+
})(["&&{min-width:0;", " ", "}"], _ref17 => {
|
|
142
|
+
let $parts = _ref17.$parts,
|
|
143
|
+
$wrap = _ref17.$wrap;
|
|
137
144
|
return $parts ? css(["display:flex;align-items:center;gap:6px;", ""], $wrap ? "flex-wrap: wrap; row-gap: 4px;" : "white-space: nowrap;") : css(["overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"]);
|
|
138
|
-
},
|
|
139
|
-
let $tone =
|
|
145
|
+
}, _ref18 => {
|
|
146
|
+
let $tone = _ref18.$tone;
|
|
140
147
|
return $tone === "alert" && "color: var(--red-alert);";
|
|
141
148
|
});
|
|
142
149
|
export const StyledPropertyListTicketCaret = styled(ArrowDownSmallIcon).withConfig({
|
|
@@ -146,8 +153,8 @@ export const StyledPropertyListTicketCaret = styled(ArrowDownSmallIcon).withConf
|
|
|
146
153
|
export const StyledPropertyListTicketValue = styled.span.withConfig({
|
|
147
154
|
displayName: "Styles__StyledPropertyListTicketValue",
|
|
148
155
|
componentId: "sc-ssdfzo-18"
|
|
149
|
-
})(["min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;", ""],
|
|
150
|
-
let $placeholder =
|
|
156
|
+
})(["min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;", ""], _ref19 => {
|
|
157
|
+
let $placeholder = _ref19.$placeholder;
|
|
151
158
|
return $placeholder && "color: var(--color-theme-600);";
|
|
152
159
|
});
|
|
153
160
|
export const StyledPropertyListTicketAddIcon = styled(AddCrossTinyIcon).withConfig({
|
|
@@ -158,8 +165,8 @@ const fillCell = css(["display:flex;min-width:0;> *{flex:1 1 0%;min-width:0;}& .
|
|
|
158
165
|
export const StyledPropertyListCells = styled.div.withConfig({
|
|
159
166
|
displayName: "Styles__StyledPropertyListCells",
|
|
160
167
|
componentId: "sc-ssdfzo-20"
|
|
161
|
-
})(["min-width:0;", ""],
|
|
162
|
-
let $cells =
|
|
168
|
+
})(["min-width:0;", ""], _ref20 => {
|
|
169
|
+
let $cells = _ref20.$cells;
|
|
163
170
|
return $cells === "grid" ? css(["display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;column-gap:16px;"]) : css(["display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px 24px;"]);
|
|
164
171
|
});
|
|
165
172
|
export const StyledPropertyListCell = styled.div.withConfig({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Styles.js","names":["styled","css","Card","AddCrossTinyIcon","ArrowDownSmallIcon","Body1","Body2","Caption2","disabledSurface","StyledPropertyList","withConfig","displayName","componentId","_ref","$ticket","_ref2","$disabled","StyledPropertyListDivider","div","_ref3","$layout","$density","highlight","StyledPropertyListRow","_ref4","$tone","_ref5","_ref6","_ref7","$clickable","_ref8","StyledPropertyListTableLabel","span","StyledPropertyListIcon","_ref9","$size","_ref0","_ref1","$scale","StyledPropertyListLabelText","_ref10","StyledPropertyListValue","_ref11","_ref12","$placeholder","StyledPropertyListAddIcon","StyledPropertyListTableValue","StyledPropertyListTableAction","StyledPropertyListChevron","StyledPropertyListToggle","button","StyledPropertyListBranch","StyledPropertyListBranchLine","StyledPropertyListTicketLabel","_ref13","StyledPropertyListTicketLine","_ref14","$parts","StyledPropertyListTicketText","_ref15","$wrap","_ref16","StyledPropertyListTicketCaret","StyledPropertyListTicketValue","_ref17","StyledPropertyListTicketAddIcon","fillCell","StyledPropertyListCells","_ref18","$cells","StyledPropertyListCell","StyledPropertyListCellSplit","StyledPropertyListCellMain","StyledPropertyListCellAside","StyledPropertyListTear","StyledPropertyListFooterTear","StyledPropertyListFooter","CONTAINER_CSS"],"sources":["../../../../src/components/PropertyList/Styles.ts"],"sourcesContent":["import styled, { css } from \"styled-components\";\n\nimport { Card } from \"../Card\";\nimport { AddCrossTinyIcon, ArrowDownSmallIcon } from \"../Icons\";\nimport { Body1, Body2, Caption2 } from \"../Typography\";\n\nexport type PropertyListDensity = \"form\" | \"page\";\nexport type PropertyListLayoutName = \"stacked\" | \"table\" | \"ticket\";\nexport type PropertyListTone = \"regular\" | \"alert\";\nexport type PropertyListCells = \"grid\" | \"row\";\n\nconst disabledSurface =\n \"color-mix(in srgb, var(--surface-raised) 50%, transparent)\";\n\nexport const StyledPropertyList = styled(Card)<{\n $disabled?: boolean;\n $ticket?: PropertyListCells;\n}>`\n display: flex;\n flex-direction: column;\n overflow: clip;\n\n ${({ $ticket }) =>\n $ticket &&\n css`\n ${$ticket === \"grid\" && \"container-type: inline-size;\"}\n gap: 4px;\n min-width: 0;\n overflow: visible;\n padding: ${$ticket === \"grid\" ? \"4px 16px 16px\" : \"16px\"};\n `}\n\n ${({ $disabled }) =>\n $disabled &&\n css`\n && {\n background-color: ${disabledSurface};\n }\n\n &&:hover {\n background-color: ${disabledSurface};\n }\n `}\n`;\n\nexport const StyledPropertyListDivider = styled.div<{\n $layout: PropertyListLayoutName;\n $density: PropertyListDensity;\n}>`\n flex-shrink: 0;\n height: 1px;\n background-color: var(--border-raised);\n ${({ $layout, $density }) =>\n $layout === \"stacked\" && `margin-left: ${$density === \"page\" ? 44 : 46}px;`}\n`;\n\nconst highlight =\n \"linear-gradient(var(--highlight-dark), var(--highlight-dark))\";\n\nexport const StyledPropertyListRow = styled.div<{\n $layout: PropertyListLayoutName;\n $density: PropertyListDensity;\n $tone: PropertyListTone;\n $clickable: boolean;\n $disabled?: boolean;\n}>`\n position: relative;\n width: 100%;\n border: 0;\n text-align: left;\n background-color: ${({ $tone, $layout }) =>\n $tone === \"alert\" && $layout !== \"ticket\"\n ? \"var(--alert-surface-subtle)\"\n : \"transparent\"};\n\n ${({ $layout, $density }) =>\n $layout === \"table\"\n ? css`\n display: grid;\n grid-template-columns: 185px minmax(0, 1fr) auto;\n align-items: center;\n min-height: 36px;\n padding: 4px 12px;\n `\n : $layout === \"ticket\"\n ? css`\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n gap: 2px;\n width: auto;\n min-width: 0;\n margin: 0;\n padding: 6px 8px;\n color: inherit;\n `\n : css`\n display: flex;\n align-items: center;\n gap: 8px;\n min-height: ${$density === \"page\" ? 44 : 40}px;\n padding: 6px 12px;\n `}\n\n ${({ $disabled, $density }) =>\n $disabled &&\n css`\n cursor: default;\n\n > * {\n opacity: 0.4;\n }\n\n && .c-property-list__value[data-placeholder] {\n color: ${$density === \"page\"\n ? \"var(--muted-text)\"\n : \"var(--color-theme-800)\"};\n }\n `}\n\n ${({ $clickable, $disabled, $layout }) =>\n $clickable &&\n !$disabled &&\n $layout === \"ticket\" &&\n css`\n cursor: pointer;\n border-radius: 10px;\n\n &:hover,\n &[aria-expanded=\"true\"] {\n background-color: var(--color-theme-200);\n }\n\n &:focus-visible {\n outline: 2px solid var(--color-primary);\n }\n `}\n\n ${({ $clickable, $disabled, $tone, $layout }) =>\n $clickable &&\n !$disabled &&\n $layout !== \"ticket\" &&\n css`\n cursor: pointer;\n\n &:hover,\n &:focus-visible,\n &[aria-expanded=\"true\"] {\n ${$tone === \"alert\"\n ? `background-image: ${highlight};`\n : \"background-color: var(--color-theme-200);\"}\n }\n\n &:focus-visible {\n outline: none;\n }\n `}\n`;\n\nexport const StyledPropertyListTableLabel = styled.span`\n display: flex;\n align-items: center;\n gap: 10px;\n min-width: 0;\n padding-right: 8px;\n`;\n\nexport const StyledPropertyListIcon = styled.span<{\n $size: number;\n $scale: boolean;\n}>`\n display: flex;\n flex-shrink: 0;\n align-items: center;\n justify-content: center;\n width: ${({ $size }) => $size}px;\n height: ${({ $size }) => $size}px;\n\n & svg {\n fill: var(--color-theme-700);\n ${({ $scale, $size }) => $scale && `width: ${$size}px; height: ${$size}px;`}\n }\n`;\n\nexport const StyledPropertyListLabelText = styled(Body2)<{\n $layout: PropertyListLayoutName;\n $density: PropertyListDensity;\n}>`\n && {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n color: var(--color-theme-700);\n\n ${({ $layout, $density }) =>\n $layout === \"stacked\" &&\n css`\n flex: 1 1 0%;\n ${$density === \"page\" ? \"margin-left: -4px;\" : \"padding-left: 6px;\"}\n `}\n }\n`;\n\nexport const StyledPropertyListValue = styled(Body2)<{\n $density: PropertyListDensity;\n $placeholder: boolean;\n}>`\n && {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n font-size: ${({ $density }) =>\n $density === \"page\"\n ? \"calc(15px * var(--text-scale, 1))\"\n : \"calc(1em + 1px)\"};\n\n ${({ $placeholder, $density }) =>\n !$placeholder &&\n `color: ${\n $density === \"page\" ? \"var(--muted-text)\" : \"var(--color-theme-800)\"\n };`}\n }\n`;\n\nexport const StyledPropertyListAddIcon = styled.span`\n display: flex;\n flex-shrink: 0;\n align-items: center;\n justify-content: center;\n width: 16px;\n height: 16px;\n\n & svg {\n fill: var(--color-theme-700);\n }\n`;\n\nexport const StyledPropertyListTableValue = styled.span`\n display: flex;\n align-items: center;\n gap: 8px;\n min-width: 0;\n`;\n\nexport const StyledPropertyListTableAction = styled.span`\n display: flex;\n align-items: center;\n justify-content: flex-end;\n gap: 8px;\n min-width: 16px;\n padding-left: 8px;\n`;\n\nexport const StyledPropertyListChevron = styled.span`\n display: flex;\n flex-shrink: 0;\n\n & svg {\n fill: var(--color-theme-700);\n }\n`;\n\nexport const StyledPropertyListToggle = styled.button`\n display: flex;\n align-items: center;\n width: 100%;\n min-height: 36px;\n padding: 0 12px;\n border: 0;\n background-color: transparent;\n color: var(--color-theme-600);\n font-size: calc(13px * var(--text-scale, 1));\n line-height: 20px;\n text-align: left;\n cursor: pointer;\n\n &:hover,\n &:focus-visible {\n background-color: var(--color-theme-200);\n }\n\n &:disabled {\n cursor: default;\n opacity: 0.4;\n background-color: transparent;\n }\n`;\n\nexport const StyledPropertyListBranch = styled.span`\n position: absolute;\n top: 0;\n left: 19px;\n width: 13px;\n height: 50%;\n border: 0 solid var(--color-theme-500);\n border-bottom-width: 1px;\n border-left-width: 1px;\n border-bottom-left-radius: 4px;\n pointer-events: none;\n`;\n\nexport const StyledPropertyListBranchLine = styled.span`\n position: absolute;\n top: 50%;\n bottom: 0;\n left: 19px;\n width: 1px;\n background-color: var(--color-theme-500);\n pointer-events: none;\n`;\n\nexport const StyledPropertyListTicketLabel = styled(Caption2)<{\n $tone: PropertyListTone;\n}>`\n && {\n text-transform: uppercase;\n letter-spacing: 0.09em;\n color: ${({ $tone }) =>\n $tone === \"alert\" ? \"var(--red-alert)\" : \"var(--color-theme-600)\"};\n }\n`;\n\nexport const StyledPropertyListTicketLine = styled.span<{ $parts: boolean }>`\n display: flex;\n align-items: center;\n gap: 4px;\n min-width: 0;\n ${({ $parts }) => $parts && \"min-height: 24px;\"}\n`;\n\nexport const StyledPropertyListTicketText = styled(Body1)<{\n $parts: boolean;\n $wrap?: boolean;\n $tone: PropertyListTone;\n}>`\n && {\n min-width: 0;\n ${({ $parts, $wrap }) =>\n $parts\n ? css`\n display: flex;\n align-items: center;\n gap: 6px;\n ${$wrap ? \"flex-wrap: wrap; row-gap: 4px;\" : \"white-space: nowrap;\"}\n `\n : css`\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n `}\n ${({ $tone }) => $tone === \"alert\" && \"color: var(--red-alert);\"}\n }\n`;\n\nexport const StyledPropertyListTicketCaret = styled(ArrowDownSmallIcon)`\n flex-shrink: 0;\n fill: var(--color-theme-600);\n`;\n\nexport const StyledPropertyListTicketValue = styled.span<{\n $placeholder: boolean;\n}>`\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n ${({ $placeholder }) => $placeholder && \"color: var(--color-theme-600);\"}\n`;\n\nexport const StyledPropertyListTicketAddIcon = styled(AddCrossTinyIcon)`\n flex-shrink: 0;\n width: 12px;\n height: 12px;\n fill: var(--color-theme-600);\n`;\n\nconst fillCell = css`\n display: flex;\n min-width: 0;\n\n > * {\n flex: 1 1 0%;\n min-width: 0;\n }\n\n & .c-property-list__row {\n width: 100%;\n }\n`;\n\nexport const StyledPropertyListCells = styled.div<{\n $cells: PropertyListCells;\n}>`\n min-width: 0;\n\n ${({ $cells }) =>\n $cells === \"grid\"\n ? css`\n display: grid;\n grid-template-columns: repeat(2, minmax(0, 1fr));\n align-items: start;\n column-gap: 16px;\n `\n : css`\n display: flex;\n flex-wrap: wrap;\n align-items: flex-end;\n gap: 12px 24px;\n `}\n`;\n\nexport const StyledPropertyListCell = styled.div`\n ${fillCell}\n padding-bottom: 1px;\n`;\n\nexport const StyledPropertyListCellSplit = styled.div`\n display: flex;\n align-items: flex-start;\n gap: 8px;\n min-width: 0;\n`;\n\nexport const StyledPropertyListCellMain = styled.div`\n ${fillCell}\n flex: 1 1 0%;\n`;\n\nexport const StyledPropertyListCellAside = styled.div`\n display: flex;\n flex-shrink: 0;\n align-self: center;\n align-items: center;\n gap: 8px;\n\n &::before {\n content: \"\";\n width: 1px;\n height: 16px;\n background-color: var(--border-raised);\n }\n\n &:empty {\n display: none;\n }\n`;\n\nexport const StyledPropertyListTear = styled.div`\n grid-column: 1 / -1;\n margin: -6px 0;\n`;\n\nexport const StyledPropertyListFooterTear = styled.div`\n position: relative;\n z-index: 1;\n margin: -10px 0 -14px;\n`;\n\nexport const StyledPropertyListFooter = styled.div`\n margin: 0 -16px -16px;\n overflow: clip;\n border-radius: 0 0 11px 11px;\n\n && > .c-property-list.c-property-list,\n && > .c-property-list.c-property-list:hover {\n border: 0;\n border-radius: 0;\n box-shadow: none;\n background-color: transparent;\n }\n`;\n\n// Only the tear line at the end of a line of cells shows.\nexport const CONTAINER_CSS = `\n@container (max-width: 619.98px) {\n .c-property-list__cells--grid > .c-property-list__tear:not(:nth-child(4n)) { display: none; }\n}\n@container (min-width: 620px) and (max-width: 719.98px) {\n .c-property-list__cells.c-property-list__cells--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }\n .c-property-list__cells--grid > .c-property-list__tear:not(:nth-child(6n)) { display: none; }\n}\n@container (min-width: 720px) {\n .c-property-list__cells.c-property-list__cells--grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }\n .c-property-list__cells--grid > .c-property-list__tear:not(:nth-child(8n)) { display: none; }\n}\n`;\n"],"mappings":"AAAA,OAAOA,MAAM,IAAIC,GAAG,QAAQ,mBAAmB;AAE/C,SAASC,IAAI,QAAQ,SAAS;AAC9B,SAASC,gBAAgB,EAAEC,kBAAkB,QAAQ,UAAU;AAC/D,SAASC,KAAK,EAAEC,KAAK,EAAEC,QAAQ,QAAQ,eAAe;AAOtD,MAAMC,eAAe,GACnB,4DAA4D;AAE9D,OAAO,MAAMC,kBAAkB,GAAGT,MAAM,CAACE,IAAI,CAAC,CAAAQ,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,mEAQ1CC,IAAA;EAAA,IAAGC,OAAO,GAAAD,IAAA,CAAPC,OAAO;EAAA,OACVA,OAAO,IACPb,GAAG,8DACCa,OAAO,KAAK,MAAM,IAAI,8BAA8B,EAI3CA,OAAO,KAAK,MAAM,GAAG,eAAe,GAAG,MAAM,CACzD;AAAA,GAEDC,KAAA;EAAA,IAAGC,SAAS,GAAAD,KAAA,CAATC,SAAS;EAAA,OACZA,SAAS,IACTf,GAAG,iEAEqBO,eAAe,EAIfA,eAAe,CAEtC;AAAA,EACJ;AAED,OAAO,MAAMS,yBAAyB,GAAGjB,MAAM,CAACkB,GAAG,CAAAR,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,4EAO/CO,KAAA;EAAA,IAAGC,OAAO,GAAAD,KAAA,CAAPC,OAAO;IAAEC,QAAQ,GAAAF,KAAA,CAARE,QAAQ;EAAA,OACpBD,OAAO,KAAK,SAAS,uBAAoBC,QAAQ,KAAK,MAAM,GAAG,EAAE,GAAG,EAAE,SAAK;AAAA,EAC9E;AAED,MAAMC,SAAS,GACb,+DAA+D;AAEjE,OAAO,MAAMC,qBAAqB,GAAGvB,MAAM,CAACkB,GAAG,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,GACbpE,GAAG,sGAMHA,GAAG,qEAKF;AAAA,EACR;AAED,OAAO,MAAMqE,sBAAsB,GAAGtE,MAAM,CAACkB,GAAG,CAAAR,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,iCAC5CsD,QAAQ,CAEX;AAED,OAAO,MAAMK,2BAA2B,GAAGvE,MAAM,CAACkB,GAAG,CAAAR,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,gEAKpD;AAED,OAAO,MAAM4D,0BAA0B,GAAGxE,MAAM,CAACkB,GAAG,CAAAR,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,0BAChDsD,QAAQ,CAEX;AAED,OAAO,MAAMO,2BAA2B,GAAGzE,MAAM,CAACkB,GAAG,CAAAR,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,0LAiBpD;AAED,OAAO,MAAM8D,sBAAsB,GAAG1E,MAAM,CAACkB,GAAG,CAAAR,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,yCAG/C;AAED,OAAO,MAAM+D,4BAA4B,GAAG3E,MAAM,CAACkB,GAAG,CAAAR,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,yDAIrD;AAED,OAAO,MAAMgE,wBAAwB,GAAG5E,MAAM,CAACkB,GAAG,CAAAR,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,gOAYjD;;AAED;AACA,OAAO,MAAMiE,aAAa,+oBAYzB","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"Styles.js","names":["styled","css","Card","AddCrossTinyIcon","ArrowDownSmallIcon","Body1","Body2","Caption2","SOLID_SURFACE","disabledSurface","StyledPropertyList","withConfig","displayName","componentId","_ref","$ticket","_ref2","$solid","_ref3","$roomy","_ref4","$disabled","StyledPropertyListDivider","div","_ref5","$layout","$density","highlight","StyledPropertyListRow","_ref6","$tone","_ref7","_ref8","_ref9","$clickable","_ref0","StyledPropertyListTableLabel","span","StyledPropertyListIcon","_ref1","$size","_ref10","_ref11","$scale","StyledPropertyListLabelText","_ref12","StyledPropertyListValue","_ref13","_ref14","$placeholder","StyledPropertyListAddIcon","StyledPropertyListTableValue","StyledPropertyListTableAction","StyledPropertyListChevron","StyledPropertyListToggle","button","StyledPropertyListBranch","StyledPropertyListBranchLine","StyledPropertyListTicketLabel","_ref15","StyledPropertyListTicketLine","_ref16","$parts","StyledPropertyListTicketText","_ref17","$wrap","_ref18","StyledPropertyListTicketCaret","StyledPropertyListTicketValue","_ref19","StyledPropertyListTicketAddIcon","fillCell","StyledPropertyListCells","_ref20","$cells","StyledPropertyListCell","StyledPropertyListCellSplit","StyledPropertyListCellMain","StyledPropertyListCellAside","StyledPropertyListTear","StyledPropertyListFooterTear","StyledPropertyListFooter","CONTAINER_CSS"],"sources":["../../../../src/components/PropertyList/Styles.ts"],"sourcesContent":["import styled, { css } from \"styled-components\";\n\nimport { Card } from \"../Card\";\nimport { AddCrossTinyIcon, ArrowDownSmallIcon } from \"../Icons\";\nimport { Body1, Body2, Caption2 } from \"../Typography\";\n\nconst SOLID_SURFACE =\n \"var(--object-layout-card-surface, var(--surface-raised))\";\n\nexport type PropertyListDensity = \"form\" | \"page\";\nexport type PropertyListLayoutName = \"stacked\" | \"table\" | \"ticket\";\nexport type PropertyListTone = \"regular\" | \"alert\";\nexport type PropertyListCells = \"grid\" | \"row\";\n\nconst disabledSurface =\n \"color-mix(in srgb, var(--surface-raised) 50%, transparent)\";\n\nexport const StyledPropertyList = styled(Card)<{\n $disabled?: boolean;\n $ticket?: PropertyListCells;\n $solid?: boolean;\n $roomy?: boolean;\n}>`\n display: flex;\n flex-direction: column;\n overflow: clip;\n\n ${({ $ticket }) =>\n $ticket &&\n css`\n ${$ticket === \"grid\" && \"container-type: inline-size;\"}\n gap: 4px;\n min-width: 0;\n overflow: visible;\n padding: ${$ticket === \"grid\" ? \"4px 16px 16px\" : \"16px\"};\n `}\n\n ${({ $solid }) =>\n $solid &&\n css`\n && {\n background-color: ${SOLID_SURFACE};\n }\n `}\n\n ${({ $roomy }) =>\n $roomy &&\n css`\n & .c-property-list__row {\n padding-top: 10px;\n padding-bottom: 10px;\n }\n `}\n\n ${({ $disabled }) =>\n $disabled &&\n css`\n && {\n background-color: ${disabledSurface};\n }\n\n &&:hover {\n background-color: ${disabledSurface};\n }\n `}\n`;\n\nexport const StyledPropertyListDivider = styled.div<{\n $layout: PropertyListLayoutName;\n $density: PropertyListDensity;\n}>`\n flex-shrink: 0;\n height: 1px;\n background-color: var(--border-raised);\n ${({ $layout, $density }) =>\n $layout === \"stacked\" && `margin-left: ${$density === \"page\" ? 44 : 46}px;`}\n`;\n\nconst highlight =\n \"linear-gradient(var(--highlight-dark), var(--highlight-dark))\";\n\nexport const StyledPropertyListRow = styled.div<{\n $layout: PropertyListLayoutName;\n $density: PropertyListDensity;\n $tone: PropertyListTone;\n $clickable: boolean;\n $disabled?: boolean;\n}>`\n position: relative;\n width: 100%;\n border: 0;\n text-align: left;\n background-color: ${({ $tone, $layout }) =>\n $tone === \"alert\" && $layout !== \"ticket\"\n ? \"var(--alert-surface-subtle)\"\n : \"transparent\"};\n\n ${({ $layout, $density }) =>\n $layout === \"table\"\n ? css`\n display: grid;\n grid-template-columns: 185px minmax(0, 1fr) auto;\n align-items: center;\n min-height: 36px;\n padding: 4px 12px;\n `\n : $layout === \"ticket\"\n ? css`\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n gap: 2px;\n width: auto;\n min-width: 0;\n margin: 0;\n padding: 6px 8px;\n color: inherit;\n `\n : css`\n display: flex;\n align-items: center;\n gap: 8px;\n min-height: ${$density === \"page\" ? 44 : 40}px;\n padding: 6px 12px;\n `}\n\n ${({ $disabled, $density }) =>\n $disabled &&\n css`\n cursor: default;\n\n > * {\n opacity: 0.4;\n }\n\n && .c-property-list__value[data-placeholder] {\n color: ${$density === \"page\"\n ? \"var(--muted-text)\"\n : \"var(--color-theme-800)\"};\n }\n `}\n\n ${({ $clickable, $disabled, $layout }) =>\n $clickable &&\n !$disabled &&\n $layout === \"ticket\" &&\n css`\n cursor: pointer;\n border-radius: 10px;\n\n &:hover,\n &[aria-expanded=\"true\"] {\n background-color: var(--color-theme-200);\n }\n\n &:focus-visible {\n outline: 2px solid var(--color-primary);\n }\n `}\n\n ${({ $clickable, $disabled, $tone, $layout }) =>\n $clickable &&\n !$disabled &&\n $layout !== \"ticket\" &&\n css`\n cursor: pointer;\n\n &:hover,\n &:focus-visible,\n &[aria-expanded=\"true\"] {\n ${$tone === \"alert\"\n ? `background-image: ${highlight};`\n : \"background-color: var(--color-theme-200);\"}\n }\n\n &:focus-visible {\n outline: none;\n }\n `}\n`;\n\nexport const StyledPropertyListTableLabel = styled.span`\n display: flex;\n align-items: center;\n gap: 10px;\n min-width: 0;\n padding-right: 8px;\n`;\n\nexport const StyledPropertyListIcon = styled.span<{\n $size: number;\n $scale: boolean;\n}>`\n display: flex;\n flex-shrink: 0;\n align-items: center;\n justify-content: center;\n width: ${({ $size }) => $size}px;\n height: ${({ $size }) => $size}px;\n\n & svg {\n fill: var(--color-theme-700);\n ${({ $scale, $size }) => $scale && `width: ${$size}px; height: ${$size}px;`}\n }\n`;\n\nexport const StyledPropertyListLabelText = styled(Body2)<{\n $layout: PropertyListLayoutName;\n $density: PropertyListDensity;\n}>`\n && {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n color: var(--color-theme-700);\n\n ${({ $layout, $density }) =>\n $layout === \"stacked\" &&\n css`\n flex: 1 1 0%;\n ${$density === \"page\" ? \"margin-left: -4px;\" : \"padding-left: 6px;\"}\n `}\n }\n`;\n\nexport const StyledPropertyListValue = styled(Body2)<{\n $density: PropertyListDensity;\n $placeholder: boolean;\n}>`\n && {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n font-size: ${({ $density }) =>\n $density === \"page\"\n ? \"calc(15px * var(--text-scale, 1))\"\n : \"calc(1em + 1px)\"};\n\n ${({ $placeholder, $density }) =>\n !$placeholder &&\n `color: ${\n $density === \"page\" ? \"var(--muted-text)\" : \"var(--color-theme-800)\"\n };`}\n }\n`;\n\nexport const StyledPropertyListAddIcon = styled.span`\n display: flex;\n flex-shrink: 0;\n align-items: center;\n justify-content: center;\n width: 16px;\n height: 16px;\n\n & svg {\n fill: var(--color-theme-700);\n }\n`;\n\nexport const StyledPropertyListTableValue = styled.span`\n display: flex;\n align-items: center;\n gap: 8px;\n min-width: 0;\n`;\n\nexport const StyledPropertyListTableAction = styled.span`\n display: flex;\n align-items: center;\n justify-content: flex-end;\n gap: 8px;\n min-width: 16px;\n padding-left: 8px;\n`;\n\nexport const StyledPropertyListChevron = styled.span`\n display: flex;\n flex-shrink: 0;\n\n & svg {\n fill: var(--color-theme-700);\n }\n`;\n\nexport const StyledPropertyListToggle = styled.button`\n display: flex;\n align-items: center;\n width: 100%;\n min-height: 36px;\n padding: 0 12px;\n border: 0;\n background-color: transparent;\n color: var(--color-theme-600);\n font-size: calc(13px * var(--text-scale, 1));\n line-height: 20px;\n text-align: left;\n cursor: pointer;\n\n &:hover,\n &:focus-visible {\n background-color: var(--color-theme-200);\n }\n\n &:disabled {\n cursor: default;\n opacity: 0.4;\n background-color: transparent;\n }\n`;\n\nexport const StyledPropertyListBranch = styled.span`\n position: absolute;\n top: 0;\n left: 19px;\n width: 13px;\n height: 50%;\n border: 0 solid var(--color-theme-500);\n border-bottom-width: 1px;\n border-left-width: 1px;\n border-bottom-left-radius: 4px;\n pointer-events: none;\n`;\n\nexport const StyledPropertyListBranchLine = styled.span`\n position: absolute;\n top: 50%;\n bottom: 0;\n left: 19px;\n width: 1px;\n background-color: var(--color-theme-500);\n pointer-events: none;\n`;\n\nexport const StyledPropertyListTicketLabel = styled(Caption2)<{\n $tone: PropertyListTone;\n}>`\n && {\n text-transform: uppercase;\n letter-spacing: 0.09em;\n color: ${({ $tone }) =>\n $tone === \"alert\" ? \"var(--red-alert)\" : \"var(--color-theme-600)\"};\n }\n`;\n\nexport const StyledPropertyListTicketLine = styled.span<{ $parts: boolean }>`\n display: flex;\n align-items: center;\n gap: 4px;\n min-width: 0;\n ${({ $parts }) => $parts && \"min-height: 24px;\"}\n`;\n\nexport const StyledPropertyListTicketText = styled(Body1)<{\n $parts: boolean;\n $wrap?: boolean;\n $tone: PropertyListTone;\n}>`\n && {\n min-width: 0;\n ${({ $parts, $wrap }) =>\n $parts\n ? css`\n display: flex;\n align-items: center;\n gap: 6px;\n ${$wrap ? \"flex-wrap: wrap; row-gap: 4px;\" : \"white-space: nowrap;\"}\n `\n : css`\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n `}\n ${({ $tone }) => $tone === \"alert\" && \"color: var(--red-alert);\"}\n }\n`;\n\nexport const StyledPropertyListTicketCaret = styled(ArrowDownSmallIcon)`\n flex-shrink: 0;\n fill: var(--color-theme-600);\n`;\n\nexport const StyledPropertyListTicketValue = styled.span<{\n $placeholder: boolean;\n}>`\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n ${({ $placeholder }) => $placeholder && \"color: var(--color-theme-600);\"}\n`;\n\nexport const StyledPropertyListTicketAddIcon = styled(AddCrossTinyIcon)`\n flex-shrink: 0;\n width: 12px;\n height: 12px;\n fill: var(--color-theme-600);\n`;\n\nconst fillCell = css`\n display: flex;\n min-width: 0;\n\n > * {\n flex: 1 1 0%;\n min-width: 0;\n }\n\n & .c-property-list__row {\n width: 100%;\n }\n`;\n\nexport const StyledPropertyListCells = styled.div<{\n $cells: PropertyListCells;\n}>`\n min-width: 0;\n\n ${({ $cells }) =>\n $cells === \"grid\"\n ? css`\n display: grid;\n grid-template-columns: repeat(2, minmax(0, 1fr));\n align-items: start;\n column-gap: 16px;\n `\n : css`\n display: flex;\n flex-wrap: wrap;\n align-items: flex-end;\n gap: 12px 24px;\n `}\n`;\n\nexport const StyledPropertyListCell = styled.div`\n ${fillCell}\n padding-bottom: 1px;\n`;\n\nexport const StyledPropertyListCellSplit = styled.div`\n display: flex;\n align-items: flex-start;\n gap: 8px;\n min-width: 0;\n`;\n\nexport const StyledPropertyListCellMain = styled.div`\n ${fillCell}\n flex: 1 1 0%;\n`;\n\nexport const StyledPropertyListCellAside = styled.div`\n display: flex;\n flex-shrink: 0;\n align-self: center;\n align-items: center;\n gap: 8px;\n\n &::before {\n content: \"\";\n width: 1px;\n height: 16px;\n background-color: var(--border-raised);\n }\n\n &:empty {\n display: none;\n }\n`;\n\nexport const StyledPropertyListTear = styled.div`\n grid-column: 1 / -1;\n margin: -6px 0;\n`;\n\nexport const StyledPropertyListFooterTear = styled.div`\n position: relative;\n z-index: 1;\n margin: -10px 0 -14px;\n`;\n\nexport const StyledPropertyListFooter = styled.div`\n margin: 0 -16px -16px;\n overflow: clip;\n border-radius: 0 0 11px 11px;\n\n && > .c-property-list.c-property-list,\n && > .c-property-list.c-property-list:hover {\n border: 0;\n border-radius: 0;\n box-shadow: none;\n background-color: transparent;\n }\n`;\n\n// Only the tear line at the end of a line of cells shows.\nexport const CONTAINER_CSS = `\n@container (max-width: 619.98px) {\n .c-property-list__cells--grid > .c-property-list__tear:not(:nth-child(4n)) { display: none; }\n}\n@container (min-width: 620px) and (max-width: 719.98px) {\n .c-property-list__cells.c-property-list__cells--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }\n .c-property-list__cells--grid > .c-property-list__tear:not(:nth-child(6n)) { display: none; }\n}\n@container (min-width: 720px) {\n .c-property-list__cells.c-property-list__cells--grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }\n .c-property-list__cells--grid > .c-property-list__tear:not(:nth-child(8n)) { display: none; }\n}\n`;\n"],"mappings":"AAAA,OAAOA,MAAM,IAAIC,GAAG,QAAQ,mBAAmB;AAE/C,SAASC,IAAI,QAAQ,SAAS;AAC9B,SAASC,gBAAgB,EAAEC,kBAAkB,QAAQ,UAAU;AAC/D,SAASC,KAAK,EAAEC,KAAK,EAAEC,QAAQ,QAAQ,eAAe;AAEtD,MAAMC,aAAa,GACjB,0DAA0D;AAO5D,MAAMC,eAAe,GACnB,4DA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AEX;AAED,OAAO,MAAMK,2BAA2B,GAAG5E,MAAM,CAACuB,GAAG,CAAAZ,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,gEAKpD;AAED,OAAO,MAAMgE,0BAA0B,GAAG7E,MAAM,CAACuB,GAAG,CAAAZ,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,0BAChD0D,QAAQ,CAEX;AAED,OAAO,MAAMO,2BAA2B,GAAG9E,MAAM,CAACuB,GAAG,CAAAZ,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,0LAiBpD;AAED,OAAO,MAAMkE,sBAAsB,GAAG/E,MAAM,CAACuB,GAAG,CAAAZ,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,yCAG/C;AAED,OAAO,MAAMmE,4BAA4B,GAAGhF,MAAM,CAACuB,GAAG,CAAAZ,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,yDAIrD;AAED,OAAO,MAAMoE,wBAAwB,GAAGjF,MAAM,CAACuB,GAAG,CAAAZ,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,gOAYjD;;AAED;AACA,OAAO,MAAMqE,aAAa,+oBAYzB","ignoreList":[]}
|
|
@@ -10,6 +10,8 @@ export interface ISectionProps extends Omit<HTMLAttributes<HTMLElement>, "title"
|
|
|
10
10
|
card?: boolean;
|
|
11
11
|
/** The corner radius of the card, in pixels. A ListRow with cardEdges follows it. */
|
|
12
12
|
radius?: number;
|
|
13
|
+
/** In a flat ObjectLayout the card keeps the raised color of the theme, and its rows take the soft divider. */
|
|
14
|
+
solid?: boolean;
|
|
13
15
|
}
|
|
14
16
|
export declare const Section: React.ForwardRefExoticComponent<ISectionProps & React.RefAttributes<HTMLElement>>;
|
|
15
17
|
//# sourceMappingURL=Section.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Section.d.ts","sourceRoot":"","sources":["../../../../src/components/Section/Section.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAEZ,cAAc,EACd,SAAS,EAGV,MAAM,OAAO,CAAC;AAaf,MAAM,WAAW,aACf,SAAQ,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;IAClD,sEAAsE;IACtE,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,6DAA6D;IAC7D,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,+CAA+C;IAC/C,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,sCAAsC;IACtC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,qFAAqF;IACrF,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"Section.d.ts","sourceRoot":"","sources":["../../../../src/components/Section/Section.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAEZ,cAAc,EACd,SAAS,EAGV,MAAM,OAAO,CAAC;AAaf,MAAM,WAAW,aACf,SAAQ,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;IAClD,sEAAsE;IACtE,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,6DAA6D;IAC7D,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,+CAA+C;IAC/C,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,sCAAsC;IACtC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,qFAAqF;IACrF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,+GAA+G;IAC/G,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,eAAO,MAAM,OAAO,mFAwDnB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
|
-
const _excluded = ["title", "counter", "actions", "card", "radius", "className", "children"];
|
|
3
|
+
const _excluded = ["title", "counter", "actions", "card", "radius", "solid", "className", "children"];
|
|
4
4
|
import React, { forwardRef, useId } from "react";
|
|
5
5
|
import classnames from "classnames";
|
|
6
6
|
import { StyledSection, StyledSectionActions, StyledSectionCounter, StyledSectionHeader, StyledSectionTitle } from "./Styles";
|
|
@@ -13,6 +13,8 @@ export const Section = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
13
13
|
card = _ref$card === void 0 ? false : _ref$card,
|
|
14
14
|
_ref$radius = _ref.radius,
|
|
15
15
|
radius = _ref$radius === void 0 ? 24 : _ref$radius,
|
|
16
|
+
_ref$solid = _ref.solid,
|
|
17
|
+
solid = _ref$solid === void 0 ? false : _ref$solid,
|
|
16
18
|
className = _ref.className,
|
|
17
19
|
children = _ref.children,
|
|
18
20
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
@@ -20,6 +22,7 @@ export const Section = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
20
22
|
const hasCounter = counter !== undefined && counter !== null;
|
|
21
23
|
return /*#__PURE__*/React.createElement(StyledSection, _extends({}, rest, {
|
|
22
24
|
ref: ref,
|
|
25
|
+
$solid: solid,
|
|
23
26
|
"aria-labelledby": title ? titleId : undefined,
|
|
24
27
|
className: classnames("c-section", className)
|
|
25
28
|
}), title ? /*#__PURE__*/React.createElement(StyledSectionHeader, {
|