@activecollab/components 2.0.597 → 2.0.599
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/Chip/Chip.js.map +1 -1
- package/dist/cjs/components/Chip/Styles.js +3 -1
- package/dist/cjs/components/Chip/Styles.js.map +1 -1
- package/dist/cjs/components/Icons/collection/Plug.js +61 -0
- package/dist/cjs/components/Icons/collection/Plug.js.map +1 -0
- package/dist/cjs/components/Icons/collection/PlugDisconnect.js +100 -0
- package/dist/cjs/components/Icons/collection/PlugDisconnect.js.map +1 -0
- package/dist/cjs/components/Icons/collection/index.js +14 -0
- package/dist/cjs/components/Icons/collection/index.js.map +1 -1
- package/dist/cjs/components/PillButton/PillButton.js.map +1 -1
- package/dist/cjs/components/PillButton/Styles.js +2 -1
- package/dist/cjs/components/PillButton/Styles.js.map +1 -1
- package/dist/cjs/components/PillGroup/PillGroup.js.map +1 -1
- package/dist/cjs/components/PillGroup/Styles.js +5 -2
- package/dist/cjs/components/PillGroup/Styles.js.map +1 -1
- package/dist/cjs/components/PropertyList/BulletStyles.js +1 -1
- package/dist/cjs/components/PropertyList/BulletStyles.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/PropertyListPopover.js +22 -1
- package/dist/cjs/components/PropertyList/PropertyListPopover.js.map +1 -1
- package/dist/cjs/components/PropertyList/Styles.js +30 -27
- package/dist/cjs/components/PropertyList/Styles.js.map +1 -1
- package/dist/cjs/components/PropertyList/TimeStyles.js +1 -1
- package/dist/cjs/components/PropertyList/TimeStyles.js.map +1 -1
- package/dist/cjs/components/Typography/Variants/Body1.js.map +1 -1
- package/dist/esm/components/Chip/Chip.d.ts +1 -1
- package/dist/esm/components/Chip/Chip.d.ts.map +1 -1
- package/dist/esm/components/Chip/Chip.js.map +1 -1
- package/dist/esm/components/Chip/Styles.d.ts.map +1 -1
- package/dist/esm/components/Chip/Styles.js +2 -2
- package/dist/esm/components/Chip/Styles.js.map +1 -1
- package/dist/esm/components/Icons/collection/Plug.d.ts +21 -0
- package/dist/esm/components/Icons/collection/Plug.d.ts.map +1 -0
- package/dist/esm/components/Icons/collection/Plug.js +54 -0
- package/dist/esm/components/Icons/collection/Plug.js.map +1 -0
- package/dist/esm/components/Icons/collection/PlugDisconnect.d.ts +22 -0
- package/dist/esm/components/Icons/collection/PlugDisconnect.d.ts.map +1 -0
- package/dist/esm/components/Icons/collection/PlugDisconnect.js +83 -0
- package/dist/esm/components/Icons/collection/PlugDisconnect.js.map +1 -0
- package/dist/esm/components/Icons/collection/index.d.ts +2 -0
- package/dist/esm/components/Icons/collection/index.d.ts.map +1 -1
- package/dist/esm/components/Icons/collection/index.js +2 -0
- package/dist/esm/components/Icons/collection/index.js.map +1 -1
- package/dist/esm/components/PillButton/PillButton.d.ts +2 -2
- package/dist/esm/components/PillButton/PillButton.d.ts.map +1 -1
- package/dist/esm/components/PillButton/PillButton.js.map +1 -1
- package/dist/esm/components/PillButton/Styles.d.ts.map +1 -1
- package/dist/esm/components/PillButton/Styles.js +2 -1
- package/dist/esm/components/PillButton/Styles.js.map +1 -1
- package/dist/esm/components/PillGroup/PillGroup.d.ts +2 -2
- package/dist/esm/components/PillGroup/PillGroup.d.ts.map +1 -1
- package/dist/esm/components/PillGroup/PillGroup.js.map +1 -1
- package/dist/esm/components/PillGroup/Styles.d.ts.map +1 -1
- package/dist/esm/components/PillGroup/Styles.js +2 -1
- package/dist/esm/components/PillGroup/Styles.js.map +1 -1
- package/dist/esm/components/PropertyList/BulletStyles.js +1 -1
- package/dist/esm/components/PropertyList/BulletStyles.js.map +1 -1
- 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/PropertyListPopover.d.ts +3 -1
- package/dist/esm/components/PropertyList/PropertyListPopover.d.ts.map +1 -1
- package/dist/esm/components/PropertyList/PropertyListPopover.js +20 -0
- package/dist/esm/components/PropertyList/PropertyListPopover.js.map +1 -1
- package/dist/esm/components/PropertyList/Styles.d.ts +1 -0
- package/dist/esm/components/PropertyList/Styles.d.ts.map +1 -1
- package/dist/esm/components/PropertyList/Styles.js +30 -27
- package/dist/esm/components/PropertyList/Styles.js.map +1 -1
- package/dist/esm/components/PropertyList/TimeStyles.js +1 -1
- package/dist/esm/components/PropertyList/TimeStyles.js.map +1 -1
- package/dist/esm/components/Typography/Variants/Body1.d.ts +1 -1
- package/dist/esm/components/Typography/Variants/Body1.d.ts.map +1 -1
- package/dist/esm/components/Typography/Variants/Body1.js.map +1 -1
- package/dist/index.js +629 -455
- 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
|
@@ -56,6 +56,8 @@ var PropertyListPopover = exports.PropertyListPopover = function PropertyListPop
|
|
|
56
56
|
fixedWidth = _ref.width,
|
|
57
57
|
_ref$followRow = _ref.followRow,
|
|
58
58
|
followRow = _ref$followRow === void 0 ? false : _ref$followRow,
|
|
59
|
+
_ref$openAtClick = _ref.openAtClick,
|
|
60
|
+
openAtClick = _ref$openAtClick === void 0 ? false : _ref$openAtClick,
|
|
59
61
|
className = _ref.className,
|
|
60
62
|
testId = _ref["data-testid"],
|
|
61
63
|
_ref$typeToFilter = _ref.typeToFilter,
|
|
@@ -72,6 +74,11 @@ var PropertyListPopover = exports.PropertyListPopover = function PropertyListPop
|
|
|
72
74
|
_useState2 = _slicedToArray(_useState, 2),
|
|
73
75
|
width = _useState2[0],
|
|
74
76
|
setWidth = _useState2[1];
|
|
77
|
+
var clickPoint = (0, _react.useRef)(null);
|
|
78
|
+
var _useState3 = (0, _react.useState)(null),
|
|
79
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
80
|
+
anchorPoint = _useState4[0],
|
|
81
|
+
setAnchorPoint = _useState4[1];
|
|
75
82
|
var handleRowRef = (0, _useForkRef.default)(row.ref, rowRef);
|
|
76
83
|
(0, _useContainerCss.useContainerCss)("".concat(POPOVER_CLASS, "-css"), POPOVER_CSS);
|
|
77
84
|
var measure = (0, _react.useCallback)(function () {
|
|
@@ -88,6 +95,8 @@ var PropertyListPopover = exports.PropertyListPopover = function PropertyListPop
|
|
|
88
95
|
var handleOpen = (0, _react.useCallback)(function () {
|
|
89
96
|
measure();
|
|
90
97
|
closedByEscape.current = false;
|
|
98
|
+
setAnchorPoint(clickPoint.current);
|
|
99
|
+
clickPoint.current = null;
|
|
91
100
|
onOpen();
|
|
92
101
|
}, [measure, onOpen]);
|
|
93
102
|
|
|
@@ -117,6 +126,15 @@ var PropertyListPopover = exports.PropertyListPopover = function PropertyListPop
|
|
|
117
126
|
return !onClickAway || closedByEscape.current || onClickAway() !== false;
|
|
118
127
|
}, [onClickAway]);
|
|
119
128
|
var rowProps = row.props;
|
|
129
|
+
var handleRowMouseDown = (0, _react.useCallback)(function (event) {
|
|
130
|
+
var _rowProps$onMouseDown, _rowRef$current;
|
|
131
|
+
(_rowProps$onMouseDown = rowProps.onMouseDown) === null || _rowProps$onMouseDown === void 0 || _rowProps$onMouseDown.call(rowProps, event);
|
|
132
|
+
var bottom = (_rowRef$current = rowRef.current) === null || _rowRef$current === void 0 ? void 0 : _rowRef$current.getBoundingClientRect().bottom;
|
|
133
|
+
clickPoint.current = bottom === undefined ? null : {
|
|
134
|
+
x: event.clientX,
|
|
135
|
+
y: bottom
|
|
136
|
+
};
|
|
137
|
+
}, [rowProps]);
|
|
120
138
|
var handleRowKeyDown = (0, _react.useCallback)(function (event) {
|
|
121
139
|
var _rowProps$onKeyDown, _contentNode$current;
|
|
122
140
|
(_rowProps$onKeyDown = rowProps.onKeyDown) === null || _rowProps$onKeyDown === void 0 || _rowProps$onKeyDown.call(rowProps, event);
|
|
@@ -160,12 +178,15 @@ var PropertyListPopover = exports.PropertyListPopover = function PropertyListPop
|
|
|
160
178
|
onClose: onClose,
|
|
161
179
|
position: isTable ? "bottom" : "bottom-start",
|
|
162
180
|
followTarget: followRow,
|
|
181
|
+
anchorPoint: openAtClick && open ? anchorPoint : null,
|
|
163
182
|
width: fixedWidth !== null && fixedWidth !== void 0 ? fixedWidth : width,
|
|
164
183
|
menuClassName: POPOVER_CLASS,
|
|
165
|
-
target: /*#__PURE__*/(0, _react.cloneElement)(row, _objectSpread({
|
|
184
|
+
target: /*#__PURE__*/(0, _react.cloneElement)(row, _objectSpread(_objectSpread({
|
|
166
185
|
ref: handleRowRef
|
|
167
186
|
}, typeToFilter ? {
|
|
168
187
|
onKeyDown: handleRowKeyDown
|
|
188
|
+
} : null), openAtClick ? {
|
|
189
|
+
onMouseDown: handleRowMouseDown
|
|
169
190
|
} : null))
|
|
170
191
|
}, open ? /*#__PURE__*/_react.default.createElement(_PopoverStyles.StyledPropertyListPopoverContent, {
|
|
171
192
|
ref: takeTypedText,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PropertyListPopover.js","names":["_react","_interopRequireWildcard","require","_classnames","_interopRequireDefault","_PopoverStyles","_PropertyList","_useContainerCss","_useForkRef","_Menu","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","ownKeys","keys","getOwnPropertySymbols","filter","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","_toPropertyKey","value","configurable","writable","_toPrimitive","Symbol","toPrimitive","TypeError","String","Number","_slicedToArray","_arrayWithHoles","_iterableToArrayLimit","_unsupportedIterableToArray","_nonIterableRest","a","_arrayLikeToArray","toString","slice","constructor","name","Array","from","test","l","iterator","u","next","done","return","isArray","POPOVER_CLASS","POPOVER_CSS","concat","PROPERTY_LIST_POPOVER_WIDTH","exports","PROPERTY_LIST_POPOVER_TABLE_MIN_WIDTH","SEARCH_INPUT","typeInto","input","text","_Object$getOwnPropert","window","HTMLInputElement","prototype","dispatchEvent","Event","bubbles","focus","isCharacterKey","event","key","ctrlKey","metaKey","altKey","PropertyListPopover","_ref","row","open","onOpen","onClose","onClickAway","fixedWidth","width","_ref$followRow","followRow","className","testId","_ref$typeToFilter","typeToFilter","children","typedText","useRef","contentNode","layout","usePropertyListLayout","isTable","isTicket","rowRef","closedByEscape","_useState","useState","_useState2","setWidth","handleRowRef","useForkRef","ref","useContainerCss","measure","useCallback","node","current","card","closest","Math","max","offsetWidth","min","undefined","handleOpen","useEffect","markEscape","document","addEventListener","removeEventListener","handleBeforeClose","rowProps","props","handleRowKeyDown","_rowProps$onKeyDown","_contentNode$current","onKeyDown","defaultPrevented","preventDefault","querySelector","takeTypedText","handleKeyDown","createElement","Menu","onBeforeClose","position","followTarget","menuClassName","target","cloneElement","StyledPropertyListPopoverContent","role","classnames","FOOTER_LABELS","cancel","remove","PropertyListPopoverFooter","_ref2","onSet","onCancel","onRemove","_ref2$setDisabled","setDisabled","testIdPrefix","labels","testIdOf","MenuFooter","primary","label","onClick","disabled","secondary","tertiary"],"sources":["../../../../src/components/PropertyList/PropertyListPopover.tsx"],"sourcesContent":["import React, {\n cloneElement,\n KeyboardEvent,\n ReactElement,\n ReactNode,\n useCallback,\n useEffect,\n useRef,\n useState,\n} from \"react\";\n\nimport classnames from \"classnames\";\n\nimport { StyledPropertyListPopoverContent } from \"./PopoverStyles\";\nimport { usePropertyListLayout } from \"./PropertyList\";\nimport { useContainerCss } from \"../../utils/useContainerCss\";\nimport useForkRef from \"../../utils/useForkRef\";\nimport { Menu, MenuFooter } from \"../Menu\";\n\nconst POPOVER_CLASS = \"c-property-list-popover\";\nconst POPOVER_CSS = `.c-simple-menu__paper.${POPOVER_CLASS} { background-color: var(--surface-raised); }`;\n\n/** The width of a picker in the column of the task form. */\nexport const PROPERTY_LIST_POPOVER_WIDTH = 299;\n/** The least width of a picker in the table layout. */\nexport const PROPERTY_LIST_POPOVER_TABLE_MIN_WIDTH = 280;\n\nexport interface IPropertyListPopoverProps {\n /** The row that opens the popover, for example a PropertyListRow. */\n row: ReactElement;\n /** The popover is open. */\n open: boolean;\n /** A click on the row. */\n onOpen: () => void;\n /** Esc, a click outside or a click on the row while open. */\n onClose: () => void;\n /** A click outside, before the popover closes. Return false to keep it open, for a value that cannot be saved. Esc always closes. */\n onClickAway?: () => boolean | void;\n /** A fixed width in pixels. By default the popover is as wide as the row up to 299px, 299px in a ticket, and half the list (at least 280px) in a table. */\n width?: number;\n /** The popover follows its row when the row changes size while it is open, for a row that grows under itself. Off by default. */\n followRow?: boolean;\n /** A class on the content of the popover. */\n className?: string;\n /** The test id of the content. */\n \"data-testid\"?: string;\n /** A character typed on the focused row opens the popover and goes into the filter of its select. */\n typeToFilter?: boolean;\n /** The picker, and a PropertyListPopoverFooter under it. */\n children?: ReactNode;\n}\n\nconst SEARCH_INPUT = \"[class~=c-select] input\";\n\n// React reads the value of an input through its own setter, so a typed text goes in through the native one.\nconst typeInto = (input: HTMLInputElement, text: string) => {\n Object.getOwnPropertyDescriptor(\n window.HTMLInputElement.prototype,\n \"value\"\n )?.set?.call(input, text);\n input.dispatchEvent(new Event(\"input\", { bubbles: true }));\n input.focus();\n};\n\nconst isCharacterKey = (event: KeyboardEvent) =>\n event.key.length === 1 &&\n event.key !== \" \" &&\n !event.ctrlKey &&\n !event.metaKey &&\n !event.altKey;\n\n/** The popover of a rail picker: opens under the start of its row, on the raised surface. */\nexport const PropertyListPopover = ({\n row,\n open,\n onOpen,\n onClose,\n onClickAway,\n width: fixedWidth,\n followRow = false,\n className,\n \"data-testid\": testId,\n typeToFilter = false,\n children,\n}: IPropertyListPopoverProps) => {\n const typedText = useRef(\"\");\n const contentNode = useRef<HTMLDivElement | null>(null);\n const layout = usePropertyListLayout();\n const isTable = layout === \"table\";\n const isTicket = layout === \"ticket\";\n const rowRef = useRef<HTMLElement>(null);\n const closedByEscape = useRef(false);\n const [width, setWidth] = useState<number>();\n const handleRowRef = useForkRef(\n (row as ReactElement & { ref?: React.Ref<HTMLElement> }).ref,\n rowRef\n );\n\n useContainerCss(`${POPOVER_CLASS}-css`, POPOVER_CSS);\n\n const measure = useCallback(() => {\n const node = rowRef.current;\n const card = isTable\n ? node?.closest<HTMLElement>(\".c-property-list\")\n : null;\n\n if (card) {\n setWidth(\n Math.max(PROPERTY_LIST_POPOVER_TABLE_MIN_WIDTH, card.offsetWidth / 2)\n );\n } else if (isTicket) {\n setWidth(PROPERTY_LIST_POPOVER_WIDTH);\n } else {\n setWidth(\n node?.offsetWidth\n ? Math.min(node.offsetWidth, PROPERTY_LIST_POPOVER_WIDTH)\n : undefined\n );\n }\n }, [isTable, isTicket]);\n\n const handleOpen = useCallback(() => {\n measure();\n closedByEscape.current = false;\n onOpen();\n }, [measure, onOpen]);\n\n // A popover that a story or a parent opens has no click on the row, so it measures here.\n useEffect(() => {\n if (open && width === undefined) {\n measure();\n }\n }, [measure, open, width]);\n\n // The menu reports Esc and a click outside in the same way, so the key is seen here first.\n useEffect(() => {\n if (!open) {\n return undefined;\n }\n\n const markEscape = (event: globalThis.KeyboardEvent) => {\n if (event.key === \"Escape\") {\n closedByEscape.current = true;\n }\n };\n\n document.addEventListener(\"keydown\", markEscape, true);\n\n return () => document.removeEventListener(\"keydown\", markEscape, true);\n }, [open]);\n\n const handleBeforeClose = useCallback(\n () => !onClickAway || closedByEscape.current || onClickAway() !== false,\n [onClickAway]\n );\n\n const rowProps = row.props as {\n onKeyDown?: (event: KeyboardEvent<HTMLElement>) => void;\n };\n\n const handleRowKeyDown = useCallback(\n (event: KeyboardEvent<HTMLElement>) => {\n rowProps.onKeyDown?.(event);\n\n if (!typeToFilter || event.defaultPrevented || !isCharacterKey(event)) {\n return;\n }\n\n event.preventDefault();\n\n // A fast typist sends the next character before the focus leaves the row.\n const input =\n contentNode.current?.querySelector<HTMLInputElement>(SEARCH_INPUT);\n\n if (input) {\n typeInto(input, `${input.value}${event.key}`);\n\n return;\n }\n\n typedText.current += event.key;\n\n if (!open) {\n handleOpen();\n }\n },\n [handleOpen, open, rowProps, typeToFilter]\n );\n\n // The list is in the page when its wrapper gets its node, so the typed text can go into the filter there.\n const takeTypedText = useCallback((node: HTMLDivElement | null) => {\n contentNode.current = node;\n\n const input = typedText.current\n ? node?.querySelector<HTMLInputElement>(SEARCH_INPUT)\n : null;\n\n if (input) {\n typeInto(input, typedText.current);\n }\n\n if (node) {\n typedText.current = \"\";\n }\n }, []);\n\n const handleKeyDown = useCallback(\n (event: KeyboardEvent<HTMLDivElement>) => {\n if (event.key === \"Escape\") {\n onClose();\n }\n },\n [onClose]\n );\n\n return (\n <Menu\n open={open}\n onOpen={handleOpen}\n onBeforeClose={handleBeforeClose}\n onClose={onClose}\n position={isTable ? \"bottom\" : \"bottom-start\"}\n followTarget={followRow}\n width={fixedWidth ?? width}\n menuClassName={POPOVER_CLASS}\n target={cloneElement(row, {\n ref: handleRowRef,\n ...(typeToFilter ? { onKeyDown: handleRowKeyDown } : null),\n })}\n >\n {open ? (\n <StyledPropertyListPopoverContent\n ref={takeTypedText}\n role=\"presentation\"\n className={classnames(`${POPOVER_CLASS}__content`, className)}\n onKeyDown={handleKeyDown}\n data-testid={testId}\n >\n {children}\n </StyledPropertyListPopoverContent>\n ) : null}\n </Menu>\n );\n};\n\nexport interface IPropertyListPopoverFooterLabels {\n set: string;\n cancel: string;\n remove: string;\n}\n\nconst FOOTER_LABELS: IPropertyListPopoverFooterLabels = {\n set: \"Set\",\n cancel: \"Cancel\",\n remove: \"Remove\",\n};\n\nexport interface IPropertyListPopoverFooterProps {\n /** Saves the picked value. */\n onSet: () => void;\n /** Closes the popover without a change. */\n onCancel: () => void;\n /** Clears the value. Leave it out to hide the Remove button. */\n onRemove?: () => void;\n /** Disables the Set button. */\n setDisabled?: boolean;\n /** A prefix for the test ids of the buttons: \"<prefix>-set\", \"<prefix>-cancel\" and \"<prefix>-remove\". */\n testIdPrefix?: string;\n /** Texts of the buttons. */\n labels?: Partial<IPropertyListPopoverFooterLabels>;\n}\n\n/** The Set, Cancel and Remove buttons under a rail picker. */\nexport const PropertyListPopoverFooter = ({\n onSet,\n onCancel,\n onRemove,\n setDisabled = false,\n testIdPrefix,\n labels,\n}: IPropertyListPopoverFooterProps) => {\n const text = { ...FOOTER_LABELS, ...labels };\n const testIdOf = (name: string) =>\n testIdPrefix ? `${testIdPrefix}-${name}` : undefined;\n\n return (\n <MenuFooter\n className=\"c-property-list-popover__footer\"\n primary={{\n label: text.set,\n onClick: onSet,\n disabled: setDisabled,\n \"data-testid\": testIdOf(\"set\"),\n }}\n secondary={{\n label: text.cancel,\n onClick: onCancel,\n \"data-testid\": testIdOf(\"cancel\"),\n }}\n tertiary={\n onRemove\n ? {\n label: text.remove,\n onClick: onRemove,\n \"data-testid\": testIdOf(\"remove\"),\n }\n : undefined\n }\n />\n );\n};\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAWA,IAAAC,WAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,IAAAG,cAAA,GAAAH,OAAA;AACA,IAAAI,aAAA,GAAAJ,OAAA;AACA,IAAAK,gBAAA,GAAAL,OAAA;AACA,IAAAM,WAAA,GAAAJ,sBAAA,CAAAF,OAAA;AACA,IAAAO,KAAA,GAAAP,OAAA;AAA2C,SAAAE,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAT,wBAAAS,CAAA,EAAAG,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAb,uBAAA,YAAAA,wBAAAS,CAAA,EAAAG,CAAA,SAAAA,CAAA,IAAAH,CAAA,IAAAA,CAAA,CAAAC,UAAA,SAAAD,CAAA,MAAAO,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAR,OAAA,EAAAF,CAAA,iBAAAA,CAAA,uBAAAA,C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,WAAW,GAAAD,iBAAA,cAAG,KAAK,GAAAA,iBAAA;IACnBE,YAAY,GAAAN,KAAA,CAAZM,YAAY;IACZC,MAAM,GAAAP,KAAA,CAANO,MAAM;EAEN,IAAMnG,IAAI,GAAA/C,aAAA,CAAAA,aAAA,KAAQuI,aAAa,GAAKW,MAAM,CAAE;EAC5C,IAAMC,QAAQ,GAAG,SAAXA,QAAQA,CAAIxH,IAAY;IAAA,OAC5BsH,YAAY,MAAAzG,MAAA,CAAMyG,YAAY,OAAAzG,MAAA,CAAIb,IAAI,IAAK8E,SAAS;EAAA;EAEtD,oBACE9I,MAAA,CAAAY,OAAA,CAAAqJ,aAAA,CAACxJ,KAAA,CAAAgL,UAAU;IACT3E,SAAS,EAAC,iCAAiC;IAC3C4E,OAAO,EAAE;MACPC,KAAK,EAAEvG,IAAI,CAAC7D,GAAG;MACfqK,OAAO,EAAEX,KAAK;MACdY,QAAQ,EAAER,WAAW;MACrB,aAAa,EAAEG,QAAQ,CAAC,KAAK;IAC/B,CAAE;IACFM,SAAS,EAAE;MACTH,KAAK,EAAEvG,IAAI,CAACyF,MAAM;MAClBe,OAAO,EAAEV,QAAQ;MACjB,aAAa,EAAEM,QAAQ,CAAC,QAAQ;IAClC,CAAE;IACFO,QAAQ,EACNZ,QAAQ,GACJ;MACEQ,KAAK,EAAEvG,IAAI,CAAC0F,MAAM;MAClBc,OAAO,EAAET,QAAQ;MACjB,aAAa,EAAEK,QAAQ,CAAC,QAAQ;IAClC,CAAC,GACD1C;EACL,CACF,CAAC;AAEN,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"PropertyListPopover.js","names":["_react","_interopRequireWildcard","require","_classnames","_interopRequireDefault","_PopoverStyles","_PropertyList","_useContainerCss","_useForkRef","_Menu","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","ownKeys","keys","getOwnPropertySymbols","filter","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","_toPropertyKey","value","configurable","writable","_toPrimitive","Symbol","toPrimitive","TypeError","String","Number","_slicedToArray","_arrayWithHoles","_iterableToArrayLimit","_unsupportedIterableToArray","_nonIterableRest","a","_arrayLikeToArray","toString","slice","constructor","name","Array","from","test","l","iterator","u","next","done","return","isArray","POPOVER_CLASS","POPOVER_CSS","concat","PROPERTY_LIST_POPOVER_WIDTH","exports","PROPERTY_LIST_POPOVER_TABLE_MIN_WIDTH","SEARCH_INPUT","typeInto","input","text","_Object$getOwnPropert","window","HTMLInputElement","prototype","dispatchEvent","Event","bubbles","focus","isCharacterKey","event","key","ctrlKey","metaKey","altKey","PropertyListPopover","_ref","row","open","onOpen","onClose","onClickAway","fixedWidth","width","_ref$followRow","followRow","_ref$openAtClick","openAtClick","className","testId","_ref$typeToFilter","typeToFilter","children","typedText","useRef","contentNode","layout","usePropertyListLayout","isTable","isTicket","rowRef","closedByEscape","_useState","useState","_useState2","setWidth","clickPoint","_useState3","_useState4","anchorPoint","setAnchorPoint","handleRowRef","useForkRef","ref","useContainerCss","measure","useCallback","node","current","card","closest","Math","max","offsetWidth","min","undefined","handleOpen","useEffect","markEscape","document","addEventListener","removeEventListener","handleBeforeClose","rowProps","props","handleRowMouseDown","_rowProps$onMouseDown","_rowRef$current","onMouseDown","bottom","getBoundingClientRect","x","clientX","y","handleRowKeyDown","_rowProps$onKeyDown","_contentNode$current","onKeyDown","defaultPrevented","preventDefault","querySelector","takeTypedText","handleKeyDown","createElement","Menu","onBeforeClose","position","followTarget","menuClassName","target","cloneElement","StyledPropertyListPopoverContent","role","classnames","FOOTER_LABELS","cancel","remove","PropertyListPopoverFooter","_ref2","onSet","onCancel","onRemove","_ref2$setDisabled","setDisabled","testIdPrefix","labels","testIdOf","MenuFooter","primary","label","onClick","disabled","secondary","tertiary"],"sources":["../../../../src/components/PropertyList/PropertyListPopover.tsx"],"sourcesContent":["import React, {\n cloneElement,\n KeyboardEvent,\n MouseEvent,\n ReactElement,\n ReactNode,\n useCallback,\n useEffect,\n useRef,\n useState,\n} from \"react\";\n\nimport classnames from \"classnames\";\n\nimport { StyledPropertyListPopoverContent } from \"./PopoverStyles\";\nimport { usePropertyListLayout } from \"./PropertyList\";\nimport { useContainerCss } from \"../../utils/useContainerCss\";\nimport useForkRef from \"../../utils/useForkRef\";\nimport { Menu, MenuAnchorPoint, MenuFooter } from \"../Menu\";\n\nconst POPOVER_CLASS = \"c-property-list-popover\";\nconst POPOVER_CSS = `.c-simple-menu__paper.${POPOVER_CLASS} { background-color: var(--surface-raised); }`;\n\n/** The width of a picker in the column of the task form. */\nexport const PROPERTY_LIST_POPOVER_WIDTH = 299;\n/** The least width of a picker in the table layout. */\nexport const PROPERTY_LIST_POPOVER_TABLE_MIN_WIDTH = 280;\n\nexport interface IPropertyListPopoverProps {\n /** The row that opens the popover, for example a PropertyListRow. */\n row: ReactElement;\n /** The popover is open. */\n open: boolean;\n /** A click on the row. */\n onOpen: () => void;\n /** Esc, a click outside or a click on the row while open. */\n onClose: () => void;\n /** A click outside, before the popover closes. Return false to keep it open, for a value that cannot be saved. Esc always closes. */\n onClickAway?: () => boolean | void;\n /** A fixed width in pixels. By default the popover is as wide as the row up to 299px, 299px in a ticket, and half the list (at least 280px) in a table. */\n width?: number;\n /** The popover follows its row when the row changes size while it is open, for a row that grows under itself. Off by default. */\n followRow?: boolean;\n /** A click opens the popover under the row at the place of the click, for a wide row. A key opens it at the start of the row. */\n openAtClick?: boolean;\n /** A class on the content of the popover. */\n className?: string;\n /** The test id of the content. */\n \"data-testid\"?: string;\n /** A character typed on the focused row opens the popover and goes into the filter of its select. */\n typeToFilter?: boolean;\n /** The picker, and a PropertyListPopoverFooter under it. */\n children?: ReactNode;\n}\n\nconst SEARCH_INPUT = \"[class~=c-select] input\";\n\n// React reads the value of an input through its own setter, so a typed text goes in through the native one.\nconst typeInto = (input: HTMLInputElement, text: string) => {\n Object.getOwnPropertyDescriptor(\n window.HTMLInputElement.prototype,\n \"value\"\n )?.set?.call(input, text);\n input.dispatchEvent(new Event(\"input\", { bubbles: true }));\n input.focus();\n};\n\nconst isCharacterKey = (event: KeyboardEvent) =>\n event.key.length === 1 &&\n event.key !== \" \" &&\n !event.ctrlKey &&\n !event.metaKey &&\n !event.altKey;\n\n/** The popover of a rail picker: opens under the start of its row, on the raised surface. */\nexport const PropertyListPopover = ({\n row,\n open,\n onOpen,\n onClose,\n onClickAway,\n width: fixedWidth,\n followRow = false,\n openAtClick = false,\n className,\n \"data-testid\": testId,\n typeToFilter = false,\n children,\n}: IPropertyListPopoverProps) => {\n const typedText = useRef(\"\");\n const contentNode = useRef<HTMLDivElement | null>(null);\n const layout = usePropertyListLayout();\n const isTable = layout === \"table\";\n const isTicket = layout === \"ticket\";\n const rowRef = useRef<HTMLElement>(null);\n const closedByEscape = useRef(false);\n const [width, setWidth] = useState<number>();\n const clickPoint = useRef<MenuAnchorPoint | null>(null);\n const [anchorPoint, setAnchorPoint] = useState<MenuAnchorPoint | null>(null);\n const handleRowRef = useForkRef(\n (row as ReactElement & { ref?: React.Ref<HTMLElement> }).ref,\n rowRef\n );\n\n useContainerCss(`${POPOVER_CLASS}-css`, POPOVER_CSS);\n\n const measure = useCallback(() => {\n const node = rowRef.current;\n const card = isTable\n ? node?.closest<HTMLElement>(\".c-property-list\")\n : null;\n\n if (card) {\n setWidth(\n Math.max(PROPERTY_LIST_POPOVER_TABLE_MIN_WIDTH, card.offsetWidth / 2)\n );\n } else if (isTicket) {\n setWidth(PROPERTY_LIST_POPOVER_WIDTH);\n } else {\n setWidth(\n node?.offsetWidth\n ? Math.min(node.offsetWidth, PROPERTY_LIST_POPOVER_WIDTH)\n : undefined\n );\n }\n }, [isTable, isTicket]);\n\n const handleOpen = useCallback(() => {\n measure();\n closedByEscape.current = false;\n setAnchorPoint(clickPoint.current);\n clickPoint.current = null;\n onOpen();\n }, [measure, onOpen]);\n\n // A popover that a story or a parent opens has no click on the row, so it measures here.\n useEffect(() => {\n if (open && width === undefined) {\n measure();\n }\n }, [measure, open, width]);\n\n // The menu reports Esc and a click outside in the same way, so the key is seen here first.\n useEffect(() => {\n if (!open) {\n return undefined;\n }\n\n const markEscape = (event: globalThis.KeyboardEvent) => {\n if (event.key === \"Escape\") {\n closedByEscape.current = true;\n }\n };\n\n document.addEventListener(\"keydown\", markEscape, true);\n\n return () => document.removeEventListener(\"keydown\", markEscape, true);\n }, [open]);\n\n const handleBeforeClose = useCallback(\n () => !onClickAway || closedByEscape.current || onClickAway() !== false,\n [onClickAway]\n );\n\n const rowProps = row.props as {\n onKeyDown?: (event: KeyboardEvent<HTMLElement>) => void;\n onMouseDown?: (event: MouseEvent<HTMLElement>) => void;\n };\n\n const handleRowMouseDown = useCallback(\n (event: MouseEvent<HTMLElement>) => {\n rowProps.onMouseDown?.(event);\n\n const bottom = rowRef.current?.getBoundingClientRect().bottom;\n\n clickPoint.current =\n bottom === undefined ? null : { x: event.clientX, y: bottom };\n },\n [rowProps]\n );\n\n const handleRowKeyDown = useCallback(\n (event: KeyboardEvent<HTMLElement>) => {\n rowProps.onKeyDown?.(event);\n\n if (!typeToFilter || event.defaultPrevented || !isCharacterKey(event)) {\n return;\n }\n\n event.preventDefault();\n\n // A fast typist sends the next character before the focus leaves the row.\n const input =\n contentNode.current?.querySelector<HTMLInputElement>(SEARCH_INPUT);\n\n if (input) {\n typeInto(input, `${input.value}${event.key}`);\n\n return;\n }\n\n typedText.current += event.key;\n\n if (!open) {\n handleOpen();\n }\n },\n [handleOpen, open, rowProps, typeToFilter]\n );\n\n // The list is in the page when its wrapper gets its node, so the typed text can go into the filter there.\n const takeTypedText = useCallback((node: HTMLDivElement | null) => {\n contentNode.current = node;\n\n const input = typedText.current\n ? node?.querySelector<HTMLInputElement>(SEARCH_INPUT)\n : null;\n\n if (input) {\n typeInto(input, typedText.current);\n }\n\n if (node) {\n typedText.current = \"\";\n }\n }, []);\n\n const handleKeyDown = useCallback(\n (event: KeyboardEvent<HTMLDivElement>) => {\n if (event.key === \"Escape\") {\n onClose();\n }\n },\n [onClose]\n );\n\n return (\n <Menu\n open={open}\n onOpen={handleOpen}\n onBeforeClose={handleBeforeClose}\n onClose={onClose}\n position={isTable ? \"bottom\" : \"bottom-start\"}\n followTarget={followRow}\n anchorPoint={openAtClick && open ? anchorPoint : null}\n width={fixedWidth ?? width}\n menuClassName={POPOVER_CLASS}\n target={cloneElement(row, {\n ref: handleRowRef,\n ...(typeToFilter ? { onKeyDown: handleRowKeyDown } : null),\n ...(openAtClick ? { onMouseDown: handleRowMouseDown } : null),\n })}\n >\n {open ? (\n <StyledPropertyListPopoverContent\n ref={takeTypedText}\n role=\"presentation\"\n className={classnames(`${POPOVER_CLASS}__content`, className)}\n onKeyDown={handleKeyDown}\n data-testid={testId}\n >\n {children}\n </StyledPropertyListPopoverContent>\n ) : null}\n </Menu>\n );\n};\n\nexport interface IPropertyListPopoverFooterLabels {\n set: string;\n cancel: string;\n remove: string;\n}\n\nconst FOOTER_LABELS: IPropertyListPopoverFooterLabels = {\n set: \"Set\",\n cancel: \"Cancel\",\n remove: \"Remove\",\n};\n\nexport interface IPropertyListPopoverFooterProps {\n /** Saves the picked value. */\n onSet: () => void;\n /** Closes the popover without a change. */\n onCancel: () => void;\n /** Clears the value. Leave it out to hide the Remove button. */\n onRemove?: () => void;\n /** Disables the Set button. */\n setDisabled?: boolean;\n /** A prefix for the test ids of the buttons: \"<prefix>-set\", \"<prefix>-cancel\" and \"<prefix>-remove\". */\n testIdPrefix?: string;\n /** Texts of the buttons. */\n labels?: Partial<IPropertyListPopoverFooterLabels>;\n}\n\n/** The Set, Cancel and Remove buttons under a rail picker. */\nexport const PropertyListPopoverFooter = ({\n onSet,\n onCancel,\n onRemove,\n setDisabled = false,\n testIdPrefix,\n labels,\n}: IPropertyListPopoverFooterProps) => {\n const text = { ...FOOTER_LABELS, ...labels };\n const testIdOf = (name: string) =>\n testIdPrefix ? `${testIdPrefix}-${name}` : undefined;\n\n return (\n <MenuFooter\n className=\"c-property-list-popover__footer\"\n primary={{\n label: text.set,\n onClick: onSet,\n disabled: setDisabled,\n \"data-testid\": testIdOf(\"set\"),\n }}\n secondary={{\n label: text.cancel,\n onClick: onCancel,\n \"data-testid\": testIdOf(\"cancel\"),\n }}\n tertiary={\n onRemove\n ? {\n label: text.remove,\n onClick: onRemove,\n \"data-testid\": testIdOf(\"remove\"),\n }\n : undefined\n }\n />\n );\n};\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAYA,IAAAC,WAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,IAAAG,cAAA,GAAAH,OAAA;AACA,IAAAI,aAAA,GAAAJ,OAAA;AACA,IAAAK,gBAAA,GAAAL,OAAA;AACA,IAAAM,WAAA,GAAAJ,sBAAA,CAAAF,OAAA;AACA,IAAAO,KAAA,GAAAP,OAAA;AAA4D,SAAAE,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAT,wBAAAS,CAAA,EAAAG,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAb,uBAAA,YAAAA,wBAAAS,CAAA,EAAAG,CAAA,SAAAA,CAAA,IAAAH,CAAA,IAAAA,CAAA,CAAAC,UAAA,SAAAD,CAAA,MAAAO,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAR,OAAA,EAAAF,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAS,CAAA,MAAAF,CAAA,GAAAJ,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAE,CAAA,CAAAI,GAAA,CAAAX,CAAA,UAAAO,CAAA,CAAAK,GAAA,CAAAZ,CAAA,GAAAO,CAAA,CAAAM,GAAA,CAAAb,CAAA,EAAAS,CAAA,cAAAK,EAAA,IAAAd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AEtD,oBACErJ,MAAA,CAAAY,OAAA,CAAAqK,aAAA,CAACxK,KAAA,CAAAgM,UAAU;IACTzF,SAAS,EAAC,iCAAiC;IAC3C0F,OAAO,EAAE;MACPC,KAAK,EAAEvH,IAAI,CAAC7D,GAAG;MACfqL,OAAO,EAAEX,KAAK;MACdY,QAAQ,EAAER,WAAW;MACrB,aAAa,EAAEG,QAAQ,CAAC,KAAK;IAC/B,CAAE;IACFM,SAAS,EAAE;MACTH,KAAK,EAAEvH,IAAI,CAACyG,MAAM;MAClBe,OAAO,EAAEV,QAAQ;MACjB,aAAa,EAAEM,QAAQ,CAAC,QAAQ;IAClC,CAAE;IACFO,QAAQ,EACNZ,QAAQ,GACJ;MACEQ,KAAK,EAAEvH,IAAI,CAAC0G,MAAM;MAClBc,OAAO,EAAET,QAAQ;MACjB,aAAa,EAAEK,QAAQ,CAAC,QAAQ;IAClC,CAAC,GACDnD;EACL,CACF,CAAC;AAEN,CAAC","ignoreList":[]}
|
|
@@ -19,7 +19,7 @@ var StyledPropertyList = exports.StyledPropertyList = (0, _styledComponents.defa
|
|
|
19
19
|
return $ticket && (0, _styledComponents.css)(["", " gap:4px;min-width:0;overflow:visible;padding:", ";"], $ticket === "grid" && "container-type: inline-size;", $ticket === "grid" ? "4px 16px 16px" : "16px");
|
|
20
20
|
}, function (_ref2) {
|
|
21
21
|
var $solid = _ref2.$solid;
|
|
22
|
-
return $solid && (0, _styledComponents.css)(["
|
|
22
|
+
return $solid && (0, _styledComponents.css)(["&&,&&:hover{background-color:", ";}"], SOLID_SURFACE);
|
|
23
23
|
}, function (_ref3) {
|
|
24
24
|
var $roomy = _ref3.$roomy;
|
|
25
25
|
return $roomy && (0, _styledComponents.css)(["& .c-property-list__row{padding-top:10px;padding-bottom:10px;}"]);
|
|
@@ -70,34 +70,37 @@ var StyledPropertyListTableLabel = exports.StyledPropertyListTableLabel = _style
|
|
|
70
70
|
var StyledPropertyListIcon = exports.StyledPropertyListIcon = _styledComponents.default.span.withConfig({
|
|
71
71
|
displayName: "Styles__StyledPropertyListIcon",
|
|
72
72
|
componentId: "sc-ssdfzo-4"
|
|
73
|
-
})(["display:flex;flex-shrink:0;align-items:center;justify-content:center;width:", "px;height:", "px;& svg{fill:var(--color-theme-
|
|
73
|
+
})(["display:flex;flex-shrink:0;align-items:center;justify-content:center;width:", "px;height:", "px;& svg{fill:var(--color-theme-", ");", "}"], function (_ref1) {
|
|
74
74
|
var $size = _ref1.$size;
|
|
75
75
|
return $size;
|
|
76
76
|
}, function (_ref10) {
|
|
77
77
|
var $size = _ref10.$size;
|
|
78
78
|
return $size;
|
|
79
79
|
}, function (_ref11) {
|
|
80
|
-
var $
|
|
81
|
-
|
|
80
|
+
var $muted = _ref11.$muted;
|
|
81
|
+
return $muted ? 600 : 700;
|
|
82
|
+
}, function (_ref12) {
|
|
83
|
+
var $scale = _ref12.$scale,
|
|
84
|
+
$size = _ref12.$size;
|
|
82
85
|
return $scale && "width: ".concat($size, "px; height: ").concat($size, "px;");
|
|
83
86
|
});
|
|
84
87
|
var StyledPropertyListLabelText = exports.StyledPropertyListLabelText = (0, _styledComponents.default)(_Typography.Body2).withConfig({
|
|
85
88
|
displayName: "Styles__StyledPropertyListLabelText",
|
|
86
89
|
componentId: "sc-ssdfzo-5"
|
|
87
|
-
})(["&&{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--color-theme-700);", "}"], function (
|
|
88
|
-
var $layout =
|
|
89
|
-
$density =
|
|
90
|
+
})(["&&{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--color-theme-700);", "}"], function (_ref13) {
|
|
91
|
+
var $layout = _ref13.$layout,
|
|
92
|
+
$density = _ref13.$density;
|
|
90
93
|
return $layout === "stacked" && (0, _styledComponents.css)(["flex:1 1 0%;", ""], $density === "page" ? "margin-left: -4px;" : "padding-left: 6px;");
|
|
91
94
|
});
|
|
92
95
|
var StyledPropertyListValue = exports.StyledPropertyListValue = (0, _styledComponents.default)(_Typography.Body2).withConfig({
|
|
93
96
|
displayName: "Styles__StyledPropertyListValue",
|
|
94
97
|
componentId: "sc-ssdfzo-6"
|
|
95
|
-
})(["&&{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:", ";", "}"], function (
|
|
96
|
-
var $density =
|
|
98
|
+
})(["&&{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:", ";", "}"], function (_ref14) {
|
|
99
|
+
var $density = _ref14.$density;
|
|
97
100
|
return $density === "page" ? "calc(15px * var(--text-scale, 1))" : "calc(1em + 1px)";
|
|
98
|
-
}, function (
|
|
99
|
-
var $placeholder =
|
|
100
|
-
$density =
|
|
101
|
+
}, function (_ref15) {
|
|
102
|
+
var $placeholder = _ref15.$placeholder,
|
|
103
|
+
$density = _ref15.$density;
|
|
101
104
|
return !$placeholder && "color: ".concat($density === "page" ? "var(--muted-text)" : "var(--color-theme-800)", ";");
|
|
102
105
|
});
|
|
103
106
|
var StyledPropertyListAddIcon = exports.StyledPropertyListAddIcon = _styledComponents.default.span.withConfig({
|
|
@@ -131,26 +134,26 @@ var StyledPropertyListBranchLine = exports.StyledPropertyListBranchLine = _style
|
|
|
131
134
|
var StyledPropertyListTicketLabel = exports.StyledPropertyListTicketLabel = (0, _styledComponents.default)(_Typography.Caption2).withConfig({
|
|
132
135
|
displayName: "Styles__StyledPropertyListTicketLabel",
|
|
133
136
|
componentId: "sc-ssdfzo-14"
|
|
134
|
-
})(["&&{text-transform:uppercase;letter-spacing:0.
|
|
135
|
-
var $tone =
|
|
137
|
+
})(["&&{text-transform:uppercase;letter-spacing:0.05em;color:", ";}"], function (_ref16) {
|
|
138
|
+
var $tone = _ref16.$tone;
|
|
136
139
|
return $tone === "alert" ? "var(--red-alert)" : "var(--color-theme-600)";
|
|
137
140
|
});
|
|
138
141
|
var StyledPropertyListTicketLine = exports.StyledPropertyListTicketLine = _styledComponents.default.span.withConfig({
|
|
139
142
|
displayName: "Styles__StyledPropertyListTicketLine",
|
|
140
143
|
componentId: "sc-ssdfzo-15"
|
|
141
|
-
})(["display:flex;align-items:center;gap:4px;min-width:0;", ""], function (
|
|
142
|
-
var $parts =
|
|
144
|
+
})(["display:flex;align-items:center;gap:4px;min-width:0;", ""], function (_ref17) {
|
|
145
|
+
var $parts = _ref17.$parts;
|
|
143
146
|
return $parts && "min-height: 24px;";
|
|
144
147
|
});
|
|
145
148
|
var StyledPropertyListTicketText = exports.StyledPropertyListTicketText = (0, _styledComponents.default)(_Typography.Body1).withConfig({
|
|
146
149
|
displayName: "Styles__StyledPropertyListTicketText",
|
|
147
150
|
componentId: "sc-ssdfzo-16"
|
|
148
|
-
})(["&&{min-width:0;", " ", "}"], function (
|
|
149
|
-
var $parts =
|
|
150
|
-
$wrap =
|
|
151
|
+
})(["&&{min-width:0;", " ", "}"], function (_ref18) {
|
|
152
|
+
var $parts = _ref18.$parts,
|
|
153
|
+
$wrap = _ref18.$wrap;
|
|
151
154
|
return $parts ? (0, _styledComponents.css)(["display:flex;align-items:center;gap:6px;", ""], $wrap ? "flex-wrap: wrap; row-gap: 4px;" : "white-space: nowrap;") : (0, _styledComponents.css)(["overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"]);
|
|
152
|
-
}, function (
|
|
153
|
-
var $tone =
|
|
155
|
+
}, function (_ref19) {
|
|
156
|
+
var $tone = _ref19.$tone;
|
|
154
157
|
return $tone === "alert" && "color: var(--red-alert);";
|
|
155
158
|
});
|
|
156
159
|
var StyledPropertyListTicketCaret = exports.StyledPropertyListTicketCaret = (0, _styledComponents.default)(_Icons.ArrowDownSmallIcon).withConfig({
|
|
@@ -160,20 +163,20 @@ var StyledPropertyListTicketCaret = exports.StyledPropertyListTicketCaret = (0,
|
|
|
160
163
|
var StyledPropertyListTicketValue = exports.StyledPropertyListTicketValue = _styledComponents.default.span.withConfig({
|
|
161
164
|
displayName: "Styles__StyledPropertyListTicketValue",
|
|
162
165
|
componentId: "sc-ssdfzo-18"
|
|
163
|
-
})(["min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;", ""], function (
|
|
164
|
-
var $placeholder =
|
|
165
|
-
return $placeholder && "color: var(--color-theme-
|
|
166
|
+
})(["min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;", ""], function (_ref20) {
|
|
167
|
+
var $placeholder = _ref20.$placeholder;
|
|
168
|
+
return $placeholder && "color: var(--color-theme-500);";
|
|
166
169
|
});
|
|
167
170
|
var StyledPropertyListTicketAddIcon = exports.StyledPropertyListTicketAddIcon = (0, _styledComponents.default)(_Icons.AddCrossTinyIcon).withConfig({
|
|
168
171
|
displayName: "Styles__StyledPropertyListTicketAddIcon",
|
|
169
172
|
componentId: "sc-ssdfzo-19"
|
|
170
|
-
})(["flex-shrink:0;width:12px;height:12px;fill:var(--color-theme-
|
|
173
|
+
})(["flex-shrink:0;width:12px;height:12px;fill:var(--color-theme-500);"]);
|
|
171
174
|
var fillCell = (0, _styledComponents.css)(["display:flex;min-width:0;> *{flex:1 1 0%;min-width:0;}& .c-property-list__row{width:100%;}"]);
|
|
172
175
|
var StyledPropertyListCells = exports.StyledPropertyListCells = _styledComponents.default.div.withConfig({
|
|
173
176
|
displayName: "Styles__StyledPropertyListCells",
|
|
174
177
|
componentId: "sc-ssdfzo-20"
|
|
175
|
-
})(["min-width:0;", ""], function (
|
|
176
|
-
var $cells =
|
|
178
|
+
})(["min-width:0;", ""], function (_ref21) {
|
|
179
|
+
var $cells = _ref21.$cells;
|
|
177
180
|
return $cells === "grid" ? (0, _styledComponents.css)(["display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;column-gap:16px;"]) : (0, _styledComponents.css)(["display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px 24px;"]);
|
|
178
181
|
});
|
|
179
182
|
var StyledPropertyListCell = exports.StyledPropertyListCell = _styledComponents.default.div.withConfig({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Styles.js","names":["_styledComponents","_interopRequireWildcard","require","_Card","_Icons","_Typography","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","SOLID_SURFACE","disabledSurface","StyledPropertyList","exports","styled","Card","withConfig","displayName","componentId","_ref","$ticket","css","_ref2","$solid","_ref3","$roomy","_ref4","$disabled","StyledPropertyListDivider","div","_ref5","$layout","$density","concat","highlight","StyledPropertyListRow","_ref6","$tone","_ref7","_ref8","_ref9","$clickable","_ref0","StyledPropertyListTableLabel","span","StyledPropertyListIcon","_ref1","$size","_ref10","_ref11","$scale","StyledPropertyListLabelText","Body2","_ref12","StyledPropertyListValue","_ref13","_ref14","$placeholder","StyledPropertyListAddIcon","StyledPropertyListTableValue","StyledPropertyListTableAction","StyledPropertyListChevron","StyledPropertyListToggle","button","StyledPropertyListBranch","StyledPropertyListBranchLine","StyledPropertyListTicketLabel","Caption2","_ref15","StyledPropertyListTicketLine","_ref16","$parts","StyledPropertyListTicketText","Body1","_ref17","$wrap","_ref18","StyledPropertyListTicketCaret","ArrowDownSmallIcon","StyledPropertyListTicketValue","_ref19","StyledPropertyListTicketAddIcon","AddCrossTinyIcon","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,IAAAA,iBAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AAAuD,SAAAD,wBAAAK,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAP,uBAAA,YAAAA,wBAAAK,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,cAAAM,EAAA,IAAAd,CAAA,gBAAAc,EAAA,OAAAC,cAAA,CAAAC,IAAA,CAAAhB,CAAA,EAAAc,EAAA,OAAAP,CAAA,IAAAD,CAAA,GAAAW,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAAAnB,CAAA,EAAAc,EAAA,OAAAP,CAAA,CAAAK,GAAA,IAAAL,CAAA,CAAAM,GAAA,IAAAP,CAAA,CAAAE,CAAA,EAAAM,EAAA,EAAAP,CAAA,IAAAC,CAAA,CAAAM,EAAA,IAAAd,CAAA,CAAAc,EAAA,WAAAN,CAAA,K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A7E,OAAA,CAAA6E,2BAAA,GAAG5E,yBAAM,CAACe,GAAG,CAAAb,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,0LAiBpD;AAEM,IAAMyE,sBAAsB,GAAA9E,OAAA,CAAA8E,sBAAA,GAAG7E,yBAAM,CAACe,GAAG,CAAAb,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,yCAG/C;AAEM,IAAM0E,4BAA4B,GAAA/E,OAAA,CAAA+E,4BAAA,GAAG9E,yBAAM,CAACe,GAAG,CAAAb,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,yDAIrD;AAEM,IAAM2E,wBAAwB,GAAAhF,OAAA,CAAAgF,wBAAA,GAAG/E,yBAAM,CAACe,GAAG,CAAAb,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,gOAYjD;;AAED;AACO,IAAM4E,aAAa,GAAAjF,OAAA,CAAAiF,aAAA,+oBAYzB","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"Styles.js","names":["_styledComponents","_interopRequireWildcard","require","_Card","_Icons","_Typography","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","SOLID_SURFACE","disabledSurface","StyledPropertyList","exports","styled","Card","withConfig","displayName","componentId","_ref","$ticket","css","_ref2","$solid","_ref3","$roomy","_ref4","$disabled","StyledPropertyListDivider","div","_ref5","$layout","$density","concat","highlight","StyledPropertyListRow","_ref6","$tone","_ref7","_ref8","_ref9","$clickable","_ref0","StyledPropertyListTableLabel","span","StyledPropertyListIcon","_ref1","$size","_ref10","_ref11","$muted","_ref12","$scale","StyledPropertyListLabelText","Body2","_ref13","StyledPropertyListValue","_ref14","_ref15","$placeholder","StyledPropertyListAddIcon","StyledPropertyListTableValue","StyledPropertyListTableAction","StyledPropertyListChevron","StyledPropertyListToggle","button","StyledPropertyListBranch","StyledPropertyListBranchLine","StyledPropertyListTicketLabel","Caption2","_ref16","StyledPropertyListTicketLine","_ref17","$parts","StyledPropertyListTicketText","Body1","_ref18","$wrap","_ref19","StyledPropertyListTicketCaret","ArrowDownSmallIcon","StyledPropertyListTicketValue","_ref20","StyledPropertyListTicketAddIcon","AddCrossTinyIcon","fillCell","StyledPropertyListCells","_ref21","$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 &&:hover {\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 $muted?: 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-${({ $muted }) => ($muted ? 600 : 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.05em;\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-500);\"}\n`;\n\nexport const StyledPropertyListTicketAddIcon = styled(AddCrossTinyIcon)`\n flex-shrink: 0;\n width: 12px;\n height: 12px;\n fill: var(--color-theme-500);\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,IAAAA,iBAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AAAuD,SAAAD,wBAAAK,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAP,uBAAA,YAAAA,wBAAAK,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SA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wB,GAAAlF,OAAA,CAAAkF,wBAAA,GAAGjF,yBAAM,CAACe,GAAG,CAAAb,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,gOAYjD;;AAED;AACO,IAAM8E,aAAa,GAAAnF,OAAA,CAAAmF,aAAA,+oBAYzB","ignoreList":[]}
|
|
@@ -25,7 +25,7 @@ var StyledPropertyListMoment = exports.StyledPropertyListMoment = _styledCompone
|
|
|
25
25
|
var StyledPropertyListMomentLabel = exports.StyledPropertyListMomentLabel = (0, _styledComponents.default)(_Typography.Caption2).withConfig({
|
|
26
26
|
displayName: "TimeStyles__StyledPropertyListMomentLabel",
|
|
27
27
|
componentId: "sc-ld4yoe-2"
|
|
28
|
-
})(["&&{text-transform:uppercase;letter-spacing:0.
|
|
28
|
+
})(["&&{text-transform:uppercase;letter-spacing:0.05em;color:var(--color-theme-600);}"]);
|
|
29
29
|
|
|
30
30
|
// The font of the row, as the frontend time inherits it.
|
|
31
31
|
var StyledPropertyListMomentValue = exports.StyledPropertyListMomentValue = _styledComponents.default.span.withConfig({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TimeStyles.js","names":["_styledComponents","_interopRequireDefault","require","_Styles","_Typography","e","__esModule","default","StyledPropertyListTime","exports","styled","div","withConfig","displayName","componentId","_ref","$clickable","StyledPropertyListMoment","span","_ref2","$end","StyledPropertyListMomentLabel","Caption2","StyledPropertyListMomentValue","StyledPropertyListMomentCaption","Caption1","StyledPropertyListTimeLength","StyledPropertyListTimeDash","ticketDash"],"sources":["../../../../src/components/PropertyList/TimeStyles.ts"],"sourcesContent":["import styled from \"styled-components\";\n\nimport { ticketDash } from \"../TicketPerforation/Styles\";\nimport { Caption1, Caption2 } from \"../Typography\";\n\nexport const StyledPropertyListTime = styled.div<{ $clickable: boolean }>`\n box-sizing: border-box;\n display: flex;\n align-items: center;\n gap: 16px;\n width: 100%;\n min-width: 0;\n margin: 0;\n padding: 6px 8px;\n border: 0;\n background-color: transparent;\n color: inherit;\n text-align: left;\n\n ${({ $clickable }) =>\n $clickable &&\n `\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\nexport const StyledPropertyListMoment = styled.span<{ $end: boolean }>`\n display: flex;\n flex-direction: column;\n flex-shrink: 0;\n align-items: ${({ $end }) => ($end ? \"flex-end\" : \"flex-start\")};\n`;\n\nexport const StyledPropertyListMomentLabel = styled(Caption2)`\n && {\n text-transform: uppercase;\n letter-spacing: 0.
|
|
1
|
+
{"version":3,"file":"TimeStyles.js","names":["_styledComponents","_interopRequireDefault","require","_Styles","_Typography","e","__esModule","default","StyledPropertyListTime","exports","styled","div","withConfig","displayName","componentId","_ref","$clickable","StyledPropertyListMoment","span","_ref2","$end","StyledPropertyListMomentLabel","Caption2","StyledPropertyListMomentValue","StyledPropertyListMomentCaption","Caption1","StyledPropertyListTimeLength","StyledPropertyListTimeDash","ticketDash"],"sources":["../../../../src/components/PropertyList/TimeStyles.ts"],"sourcesContent":["import styled from \"styled-components\";\n\nimport { ticketDash } from \"../TicketPerforation/Styles\";\nimport { Caption1, Caption2 } from \"../Typography\";\n\nexport const StyledPropertyListTime = styled.div<{ $clickable: boolean }>`\n box-sizing: border-box;\n display: flex;\n align-items: center;\n gap: 16px;\n width: 100%;\n min-width: 0;\n margin: 0;\n padding: 6px 8px;\n border: 0;\n background-color: transparent;\n color: inherit;\n text-align: left;\n\n ${({ $clickable }) =>\n $clickable &&\n `\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\nexport const StyledPropertyListMoment = styled.span<{ $end: boolean }>`\n display: flex;\n flex-direction: column;\n flex-shrink: 0;\n align-items: ${({ $end }) => ($end ? \"flex-end\" : \"flex-start\")};\n`;\n\nexport const StyledPropertyListMomentLabel = styled(Caption2)`\n && {\n text-transform: uppercase;\n letter-spacing: 0.05em;\n color: var(--color-theme-600);\n }\n`;\n\n// The font of the row, as the frontend time inherits it.\nexport const StyledPropertyListMomentValue = styled.span`\n display: flex;\n align-items: center;\n gap: 4px;\n font-size: calc(34px * var(--text-scale, 1));\n line-height: 42px;\n font-weight: 600;\n color: var(--color-theme-900);\n`;\n\nexport const StyledPropertyListMomentCaption = styled(Caption1)`\n && {\n color: var(--color-theme-600);\n }\n`;\n\nexport const StyledPropertyListTimeLength = styled.span`\n display: flex;\n flex: 1 1 0%;\n align-items: center;\n gap: 12px;\n min-width: 0;\n\n > .c-property-list-time__length {\n flex-shrink: 0;\n }\n`;\n\nexport const StyledPropertyListTimeDash = styled.span`\n ${ticketDash(\"primary\")}\n`;\n"],"mappings":";;;;;;AAAA,IAAAA,iBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AAAmD,SAAAD,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAE5C,IAAMG,sBAAsB,GAAAC,OAAA,CAAAD,sBAAA,GAAGE,yBAAM,CAACC,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,gMAc5C,UAAAC,IAAA;EAAA,IAAGC,UAAU,GAAAD,IAAA,CAAVC,UAAU;EAAA,OACbA,UAAU,uQAaT;AAAA,EACJ;AAEM,IAAMC,wBAAwB,GAAAR,OAAA,CAAAQ,wBAAA,GAAGP,yBAAM,CAACQ,IAAI,CAAAN,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,2EAIlC,UAAAK,KAAA;EAAA,IAAGC,IAAI,GAAAD,KAAA,CAAJC,IAAI;EAAA,OAAQA,IAAI,GAAG,UAAU,GAAG,YAAY;AAAA,CAAC,CAChE;AAEM,IAAMC,6BAA6B,GAAAZ,OAAA,CAAAY,6BAAA,GAAG,IAAAX,yBAAM,EAACY,oBAAQ,CAAC,CAAAV,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,wFAM5D;;AAED;AACO,IAAMS,6BAA6B,GAAAd,OAAA,CAAAc,6BAAA,GAAGb,yBAAM,CAACQ,IAAI,CAAAN,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,yJAQvD;AAEM,IAAMU,+BAA+B,GAAAf,OAAA,CAAAe,+BAAA,GAAG,IAAAd,yBAAM,EAACe,oBAAQ,CAAC,CAAAb,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,yCAI9D;AAEM,IAAMY,4BAA4B,GAAAjB,OAAA,CAAAiB,4BAAA,GAAGhB,yBAAM,CAACQ,IAAI,CAAAN,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,wHAUtD;AAEM,IAAMa,0BAA0B,GAAAlB,OAAA,CAAAkB,0BAAA,GAAGjB,yBAAM,CAACQ,IAAI,CAAAN,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,aACjD,IAAAc,kBAAU,EAAC,SAAS,CAAC,CACxB","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Body1.js","names":["_react","_interopRequireWildcard","require","_Typography","_excluded","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","_extends","assign","bind","arguments","length","apply","_objectWithoutProperties","_objectWithoutPropertiesLoose","getOwnPropertySymbols","indexOf","propertyIsEnumerable","Body1","exports","forwardRef","_ref","ref","_ref$weight","weight","children","props","createElement","Typography","variant","displayName"],"sources":["../../../../../src/components/Typography/Variants/Body1.tsx"],"sourcesContent":["import React, { forwardRef } from \"react\";\n\nimport { ITypographyProps, Typography } from \"../Typography\";\n\nexport interface IBodyProps {\n /** Font weight. */\n weight?: \"regular\" | \"
|
|
1
|
+
{"version":3,"file":"Body1.js","names":["_react","_interopRequireWildcard","require","_Typography","_excluded","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","_extends","assign","bind","arguments","length","apply","_objectWithoutProperties","_objectWithoutPropertiesLoose","getOwnPropertySymbols","indexOf","propertyIsEnumerable","Body1","exports","forwardRef","_ref","ref","_ref$weight","weight","children","props","createElement","Typography","variant","displayName"],"sources":["../../../../../src/components/Typography/Variants/Body1.tsx"],"sourcesContent":["import React, { forwardRef } from \"react\";\n\nimport { ITypographyProps, Typography } from \"../Typography\";\n\nexport interface IBodyProps {\n /** Font weight. */\n weight?: \"regular\" | \"medium\" | \"semibold\" | \"bold\";\n}\n\nexport const Body1 = forwardRef<\n HTMLDivElement,\n IBodyProps & Omit<ITypographyProps, keyof IBodyProps | \"variant\">\n>(({ weight = \"regular\", children, ...props }, ref) => {\n return (\n <Typography variant=\"Body 1\" weight={weight} ref={ref} {...props}>\n {children}\n </Typography>\n );\n});\n\nBody1.displayName = \"Body1\";\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,WAAA,GAAAD,OAAA;AAA6D,IAAAE,SAAA;AAAA,SAAAH,wBAAAI,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAN,uBAAA,YAAAA,wBAAAI,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CA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A,CAAAD,CAAA,UAAAF,CAAA,CAAA4B,OAAA,CAAAvB,CAAA,QAAAwB,oBAAA,CAAAd,IAAA,CAAAhB,CAAA,EAAAM,CAAA,MAAAC,CAAA,CAAAD,CAAA,IAAAN,CAAA,CAAAM,CAAA,aAAAC,CAAA;AAAA,SAAAoB,8BAAAxB,CAAA,EAAAH,CAAA,gBAAAG,CAAA,iBAAAF,CAAA,gBAAAG,CAAA,IAAAD,CAAA,SAAAY,cAAA,CAAAC,IAAA,CAAAb,CAAA,EAAAC,CAAA,gBAAAJ,CAAA,CAAA6B,OAAA,CAAAzB,CAAA,aAAAH,CAAA,CAAAG,CAAA,IAAAD,CAAA,CAAAC,CAAA,YAAAH,CAAA;AAOtD,IAAM8B,KAAK,GAAAC,OAAA,CAAAD,KAAA,gBAAG,IAAAE,iBAAU,EAG7B,UAAAC,IAAA,EAA6CC,GAAG,EAAK;EAAA,IAAAC,WAAA,GAAAF,IAAA,CAAlDG,MAAM;IAANA,MAAM,GAAAD,WAAA,cAAG,SAAS,GAAAA,WAAA;IAAEE,QAAQ,GAAAJ,IAAA,CAARI,QAAQ;IAAKC,KAAK,GAAAb,wBAAA,CAAAQ,IAAA,EAAAnC,SAAA;EACzC,oBACEJ,MAAA,CAAAe,OAAA,CAAA8B,aAAA,CAAC1C,WAAA,CAAA2C,UAAU,EAAArB,QAAA;IAACsB,OAAO,EAAC,QAAQ;IAACL,MAAM,EAAEA,MAAO;IAACF,GAAG,EAAEA;EAAI,GAAKI,KAAK,GAC7DD,QACS,CAAC;AAEjB,CAAC,CAAC;AAEFP,KAAK,CAACY,WAAW,GAAG,OAAO","ignoreList":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { ReactNode } from "react";
|
|
2
2
|
import { InputSize } from "../Input/types";
|
|
3
3
|
import { ITypographyProps } from "../Typography/Typography";
|
|
4
|
-
export type ChipSize = InputSize | "tiny" | "compact";
|
|
4
|
+
export type ChipSize = InputSize | "tiny" | "compact" | "tag";
|
|
5
5
|
export type ChipShape = "rounded" | "soft" | "pill";
|
|
6
6
|
export type ChipTone = "neutral" | "muted" | "info" | "primary" | "bordered" | "warning" | "alert" | "success" | "inverse";
|
|
7
7
|
export interface ChipProps {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Chip.d.ts","sourceRoot":"","sources":["../../../../src/components/Chip/Chip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAW,MAAM,OAAO,CAAC;AAGlD,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAc,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAExE,MAAM,MAAM,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"Chip.d.ts","sourceRoot":"","sources":["../../../../src/components/Chip/Chip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAW,MAAM,OAAO,CAAC;AAGlD,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAc,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAExE,MAAM,MAAM,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,KAAK,CAAC;AAC9D,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,CAAC;AACpD,MAAM,MAAM,QAAQ,GAChB,SAAS,GACT,OAAO,GACP,MAAM,GACN,SAAS,GACT,UAAU,GACV,SAAS,GACT,OAAO,GACP,SAAS,GACT,SAAS,CAAC;AAEd,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IACrD,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,6CAA6C;IAC7C,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,qGAAqG;IACrG,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,sEAAsE;IACtE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,qEAAqE;IACrE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,qGAAqG;IACrG,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,sFAAsF;IACtF,SAAS,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,gBAAgB,CAAC;CACpC;AAED,eAAO,MAAM,IAAI,sMA6EhB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Chip.js","names":["React","useMemo","ChipCloseIcon","ChipContainer","ChipTrigger","Typography","Chip","forwardRef","_ref","ref","_ref2","startAdornment","label","onClose","_ref$size","size","_ref$shape","shape","tone","tint","tintStrong","paletteColor","_ref$uppercase","uppercase","_ref$closeMode","closeMode","color","backgroundColor","closeClassName","typographyProps","rest","_objectWithoutPropertiesLoose","_excluded","showClose","variant","createElement","_extends","$shape","$tone","$tint","$tintStrong","$paletteColor","$closeMode","weight","transform","undefined","onClick","className","fill","displayName"],"sources":["../../../../src/components/Chip/Chip.tsx"],"sourcesContent":["import React, { ReactNode, useMemo } from \"react\";\n\nimport { ChipCloseIcon, ChipContainer, ChipTrigger } from \"./Styles\";\nimport { InputSize } from \"../Input/types\";\nimport { Typography, ITypographyProps } from \"../Typography/Typography\";\n\nexport type ChipSize = InputSize | \"tiny\" | \"compact\";\nexport type ChipShape = \"rounded\" | \"soft\" | \"pill\";\nexport type ChipTone =\n | \"neutral\"\n | \"muted\"\n | \"info\"\n | \"primary\"\n | \"bordered\"\n | \"warning\"\n | \"alert\"\n | \"success\"\n | \"inverse\";\n\nexport interface ChipProps {\n label: string;\n onClose?: React.MouseEventHandler<HTMLButtonElement>;\n startAdornment?: ReactNode;\n size?: ChipSize;\n /** Corner shape: 4px, 6px or a full pill. */\n shape?: ChipShape;\n /** A semantic surface and text color from the theme. \"inverse\" is a dark surface with light text. */\n tone?: ChipTone;\n /** A data color. The theme mixes the surface and the text from it. */\n tint?: string;\n /** A stronger shade of the tint, which the light themes mix from. */\n tintStrong?: string;\n /** Any saved color. The chip shows the label fill of its base palette color. It wins over `tint`. */\n paletteColor?: string;\n uppercase?: boolean;\n /** \"overlay\" draws the close button over the end of the label, on hover and focus. */\n closeMode?: \"inline\" | \"overlay\";\n color?: string;\n backgroundColor?: string;\n closeClassName?: string;\n typographyProps?: ITypographyProps;\n}\n\nexport const Chip = React.forwardRef<\n HTMLDivElement,\n ChipProps & Omit<React.ComponentPropsWithoutRef<\"div\">, keyof ChipProps>\n>(\n (\n {\n startAdornment,\n label,\n onClose,\n size = \"regular\",\n shape = \"rounded\",\n tone,\n tint,\n tintStrong,\n paletteColor,\n uppercase = false,\n closeMode = \"inline\",\n color,\n backgroundColor,\n closeClassName,\n typographyProps,\n ...rest\n },\n ref\n ) => {\n const showClose = typeof onClose === \"function\";\n const variant = useMemo(() => {\n switch (size) {\n case \"big\":\n return \"Body 1\";\n case \"biggest\":\n return \"Body 1\";\n default:\n return \"Caption 1\";\n }\n }, [size]);\n\n return (\n <ChipContainer\n data-testid=\"chip-container\"\n {...rest}\n ref={ref}\n size={size}\n showClose={showClose && closeMode === \"inline\"}\n color={color}\n backgroundColor={backgroundColor}\n $shape={shape}\n $tone={tone}\n $tint={tint}\n $tintStrong={tintStrong}\n $paletteColor={paletteColor}\n $closeMode={closeMode}\n >\n {startAdornment}\n <Typography\n variant={variant}\n data-testid=\"chip-typography\"\n weight={size === \"biggest\" ? \"medium\" : \"regular\"}\n transform={uppercase ? \"uppercase\" : undefined}\n {...typographyProps}\n >\n {label}\n </Typography>\n {showClose ? (\n <ChipTrigger size={size} onClick={onClose} className={closeClassName}>\n <ChipCloseIcon\n fill={\n paletteColor\n ? \"var(--color-theme-900)\"\n : tint ?? color ?? \"currentColor\"\n }\n />\n </ChipTrigger>\n ) : null}\n </ChipContainer>\n );\n }\n);\n\nChip.displayName = \"Chip\";\n"],"mappings":";;;AAAA,OAAOA,KAAK,IAAeC,OAAO,QAAQ,OAAO;AAEjD,SAASC,aAAa,EAAEC,aAAa,EAAEC,WAAW,QAAQ,UAAU;AAEpE,SAASC,UAAU,QAA0B,0BAA0B;AAuCvE,OAAO,MAAMC,IAAI,gBAAGN,KAAK,CAACO,UAAU,CAIlC,CAAAC,IAAA,EAmBEC,GAAG,KACA;EAAA,IAAAC,KAAA;EAAA,IAlBDC,cAAc,GAAAH,IAAA,CAAdG,cAAc;IACdC,KAAK,GAAAJ,IAAA,CAALI,KAAK;IACLC,OAAO,GAAAL,IAAA,CAAPK,OAAO;IAAAC,SAAA,GAAAN,IAAA,CACPO,IAAI;IAAJA,IAAI,GAAAD,SAAA,cAAG,SAAS,GAAAA,SAAA;IAAAE,UAAA,GAAAR,IAAA,CAChBS,KAAK;IAALA,KAAK,GAAAD,UAAA,cAAG,SAAS,GAAAA,UAAA;IACjBE,IAAI,GAAAV,IAAA,CAAJU,IAAI;IACJC,IAAI,GAAAX,IAAA,CAAJW,IAAI;IACJC,UAAU,GAAAZ,IAAA,CAAVY,UAAU;IACVC,YAAY,GAAAb,IAAA,CAAZa,YAAY;IAAAC,cAAA,GAAAd,IAAA,CACZe,SAAS;IAATA,SAAS,GAAAD,cAAA,cAAG,KAAK,GAAAA,cAAA;IAAAE,cAAA,GAAAhB,IAAA,CACjBiB,SAAS;IAATA,SAAS,GAAAD,cAAA,cAAG,QAAQ,GAAAA,cAAA;IACpBE,KAAK,GAAAlB,IAAA,CAALkB,KAAK;IACLC,eAAe,GAAAnB,IAAA,CAAfmB,eAAe;IACfC,cAAc,GAAApB,IAAA,CAAdoB,cAAc;IACdC,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C,IAAI,EACF3B,YAAY,GACR,wBAAwB,IAAAX,KAAA,GACxBS,IAAI,WAAJA,IAAI,GAAIO,KAAK,YAAAhB,KAAA,GAAI;EACtB,CACF,CACU,CAAC,GACZ,IACS,CAAC;AAEpB,CACF,CAAC;AAEDJ,IAAI,CAAC2C,WAAW,GAAG,MAAM","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"Chip.js","names":["React","useMemo","ChipCloseIcon","ChipContainer","ChipTrigger","Typography","Chip","forwardRef","_ref","ref","_ref2","startAdornment","label","onClose","_ref$size","size","_ref$shape","shape","tone","tint","tintStrong","paletteColor","_ref$uppercase","uppercase","_ref$closeMode","closeMode","color","backgroundColor","closeClassName","typographyProps","rest","_objectWithoutPropertiesLoose","_excluded","showClose","variant","createElement","_extends","$shape","$tone","$tint","$tintStrong","$paletteColor","$closeMode","weight","transform","undefined","onClick","className","fill","displayName"],"sources":["../../../../src/components/Chip/Chip.tsx"],"sourcesContent":["import React, { ReactNode, useMemo } from \"react\";\n\nimport { ChipCloseIcon, ChipContainer, ChipTrigger } from \"./Styles\";\nimport { InputSize } from \"../Input/types\";\nimport { Typography, ITypographyProps } from \"../Typography/Typography\";\n\nexport type ChipSize = InputSize | \"tiny\" | \"compact\" | \"tag\";\nexport type ChipShape = \"rounded\" | \"soft\" | \"pill\";\nexport type ChipTone =\n | \"neutral\"\n | \"muted\"\n | \"info\"\n | \"primary\"\n | \"bordered\"\n | \"warning\"\n | \"alert\"\n | \"success\"\n | \"inverse\";\n\nexport interface ChipProps {\n label: string;\n onClose?: React.MouseEventHandler<HTMLButtonElement>;\n startAdornment?: ReactNode;\n size?: ChipSize;\n /** Corner shape: 4px, 6px or a full pill. */\n shape?: ChipShape;\n /** A semantic surface and text color from the theme. \"inverse\" is a dark surface with light text. */\n tone?: ChipTone;\n /** A data color. The theme mixes the surface and the text from it. */\n tint?: string;\n /** A stronger shade of the tint, which the light themes mix from. */\n tintStrong?: string;\n /** Any saved color. The chip shows the label fill of its base palette color. It wins over `tint`. */\n paletteColor?: string;\n uppercase?: boolean;\n /** \"overlay\" draws the close button over the end of the label, on hover and focus. */\n closeMode?: \"inline\" | \"overlay\";\n color?: string;\n backgroundColor?: string;\n closeClassName?: string;\n typographyProps?: ITypographyProps;\n}\n\nexport const Chip = React.forwardRef<\n HTMLDivElement,\n ChipProps & Omit<React.ComponentPropsWithoutRef<\"div\">, keyof ChipProps>\n>(\n (\n {\n startAdornment,\n label,\n onClose,\n size = \"regular\",\n shape = \"rounded\",\n tone,\n tint,\n tintStrong,\n paletteColor,\n uppercase = false,\n closeMode = \"inline\",\n color,\n backgroundColor,\n closeClassName,\n typographyProps,\n ...rest\n },\n ref\n ) => {\n const showClose = typeof onClose === \"function\";\n const variant = useMemo(() => {\n switch (size) {\n case \"big\":\n return \"Body 1\";\n case \"biggest\":\n return \"Body 1\";\n default:\n return \"Caption 1\";\n }\n }, [size]);\n\n return (\n <ChipContainer\n data-testid=\"chip-container\"\n {...rest}\n ref={ref}\n size={size}\n showClose={showClose && closeMode === \"inline\"}\n color={color}\n backgroundColor={backgroundColor}\n $shape={shape}\n $tone={tone}\n $tint={tint}\n $tintStrong={tintStrong}\n $paletteColor={paletteColor}\n $closeMode={closeMode}\n >\n {startAdornment}\n <Typography\n variant={variant}\n data-testid=\"chip-typography\"\n weight={size === \"biggest\" ? \"medium\" : \"regular\"}\n transform={uppercase ? \"uppercase\" : undefined}\n {...typographyProps}\n >\n {label}\n </Typography>\n {showClose ? (\n <ChipTrigger size={size} onClick={onClose} className={closeClassName}>\n <ChipCloseIcon\n fill={\n paletteColor\n ? \"var(--color-theme-900)\"\n : tint ?? color ?? \"currentColor\"\n }\n />\n </ChipTrigger>\n ) : null}\n </ChipContainer>\n );\n }\n);\n\nChip.displayName = \"Chip\";\n"],"mappings":";;;AAAA,OAAOA,KAAK,IAAeC,OAAO,QAAQ,OAAO;AAEjD,SAASC,aAAa,EAAEC,aAAa,EAAEC,WAAW,QAAQ,UAAU;AAEpE,SAASC,UA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AACA,IAAI,CAAC,CAAC;EAEV,oBACEf,KAAA,CAAAmC,aAAA,CAAChC,aAAa,EAAAiC,QAAA;IACZ,eAAY;EAAgB,GACxBN,IAAI;IACRrB,GAAG,EAAEA,GAAI;IACTM,IAAI,EAAEA,IAAK;IACXkB,SAAS,EAAEA,SAAS,IAAIR,SAAS,KAAK,QAAS;IAC/CC,KAAK,EAAEA,KAAM;IACbC,eAAe,EAAEA,eAAgB;IACjCU,MAAM,EAAEpB,KAAM;IACdqB,KAAK,EAAEpB,IAAK;IACZqB,KAAK,EAAEpB,IAAK;IACZqB,WAAW,EAAEpB,UAAW;IACxBqB,aAAa,EAAEpB,YAAa;IAC5BqB,UAAU,EAAEjB;EAAU,IAErBd,cAAc,eACfX,KAAA,CAAAmC,aAAA,CAAC9B,UAAU,EAAA+B,QAAA;IACTF,OAAO,EAAEA,OAAQ;IACjB,eAAY,iBAAiB;IAC7BS,MAAM,EAAE5B,IAAI,KAAK,SAAS,GAAG,QAAQ,GAAG,SAAU;IAClD6B,SAAS,EAAErB,SAAS,GAAG,WAAW,GAAGsB;EAAU,GAC3ChB,eAAe,GAElBjB,KACS,CAAC,EACZqB,SAAS,gBACRjC,KAAA,CAAAmC,aAAA,CAAC/B,WAAW;IAACW,IAAI,EAAEA,IAAK;IAAC+B,OAAO,EAAEjC,OAAQ;IAACkC,SAAS,EAAEnB;EAAe,gBACnE5B,KAAA,CAAAmC,aAAA,CAACjC,aAAa;IACZ8C,IAAI,EACF3B,YAAY,GACR,wBAAwB,IAAAX,KAAA,GACxBS,IAAI,WAAJA,IAAI,GAAIO,KAAK,YAAAhB,KAAA,GAAI;EACtB,CACF,CACU,CAAC,GACZ,IACS,CAAC;AAEpB,CACF,CAAC;AAEDJ,IAAI,CAAC2C,WAAW,GAAG,MAAM","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Styles.d.ts","sourceRoot":"","sources":["../../../../src/components/Chip/Styles.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAQxC,eAAO,MAAM,WAAW,4SAmDvB,CAAC;AAuBF,eAAO,MAAM,MAAM;;;;CAA2D,CAAC;AA2C/E,UAAU,QAAQ;IAChB,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,SAAS,CAAC,OAAO,CAAC,CAAC;IAC5B,KAAK,CAAC,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,SAAS,CAAC,WAAW,CAAC,CAAC;CACrC;AAGD,eAAO,MAAM,aAAa,+
|
|
1
|
+
{"version":3,"file":"Styles.d.ts","sourceRoot":"","sources":["../../../../src/components/Chip/Styles.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAQxC,eAAO,MAAM,WAAW,4SAmDvB,CAAC;AAuBF,eAAO,MAAM,MAAM;;;;CAA2D,CAAC;AA2C/E,UAAU,QAAQ;IAChB,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,SAAS,CAAC,OAAO,CAAC,CAAC;IAC5B,KAAK,CAAC,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,SAAS,CAAC,WAAW,CAAC,CAAC;CACrC;AAGD,eAAO,MAAM,aAAa,+FA0KzB,CAAC;AAIF,eAAO,MAAM,SAAS,qEAKrB,CAAC;AAIF,eAAO,MAAM,aAAa;;0EAEzB,CAAC"}
|
|
@@ -41,7 +41,7 @@ const TONES = {
|
|
|
41
41
|
export const ChipContainer = styled.div.withConfig({
|
|
42
42
|
displayName: "Styles__ChipContainer",
|
|
43
43
|
componentId: "sc-7s0bd1-1"
|
|
44
|
-
})(["align-items:center;border-radius:", ";display:flex;height:1.5rem;max-width:220px;overflow:hidden;padding-left:0.375rem;", " ", " background-color:var(--color-theme-400);color:var(--color-theme-900);font-size:calc(0.875rem * var(--text-scale,1));font-weight:400;letter-spacing:0.02em;line-height:1.375;", "{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", ""], props => {
|
|
44
|
+
})(["align-items:center;border-radius:", ";display:flex;height:1.5rem;max-width:220px;overflow:hidden;padding-left:0.375rem;", " ", " background-color:var(--color-theme-400);color:var(--color-theme-900);font-size:calc(0.875rem * var(--text-scale,1));font-weight:400;letter-spacing:0.02em;line-height:1.375;", "{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", ""], props => {
|
|
45
45
|
var _props$$shape;
|
|
46
46
|
return RADIUS[(_props$$shape = props.$shape) != null ? _props$$shape : "rounded"];
|
|
47
47
|
}, FontStyle, BoxSizingStyle, StyledTypography, props => props.$tone && TONES[props.$tone], props => props.$tone && css(["", "{color:inherit;}svg{fill:currentColor;}"], StyledTypography), _ref => {
|
|
@@ -57,7 +57,7 @@ export const ChipContainer = styled.div.withConfig({
|
|
|
57
57
|
}, _ref4 => {
|
|
58
58
|
let backgroundColor = _ref4.backgroundColor;
|
|
59
59
|
return backgroundColor && css(["background-color:", ";"], backgroundColor);
|
|
60
|
-
}, props => props.showClose ? null : css(["padding-right:0.375rem;"]), props => props.size === "regular" && css(["height:24px;"]), props => props.size === "small" && css(["height:18px;"]), props => props.size === "compact" && css(["height:20px;padding-left:0.5rem;", ""], props.showClose ? "" : "padding-right: 0.5rem;"), props => props.size === "tiny" && css(["height:16.5px;padding-left:0.25rem;", ""], props.showClose ? "" : "padding-right: 0.25rem;"), props => {
|
|
60
|
+
}, props => props.showClose ? null : css(["padding-right:0.375rem;"]), props => props.size === "regular" && css(["height:24px;"]), props => props.size === "small" && css(["height:18px;"]), props => props.size === "tag" && css(["height:22px;"]), props => props.size === "compact" && css(["height:20px;padding-left:0.5rem;", ""], props.showClose ? "" : "padding-right: 0.5rem;"), props => props.size === "tiny" && css(["height:16.5px;padding-left:0.25rem;", ""], props.showClose ? "" : "padding-right: 0.25rem;"), props => {
|
|
61
61
|
var _props$backgroundColo, _props$backgroundColo2;
|
|
62
62
|
return props.$closeMode === "overlay" && css(["position:relative;padding-right:0.375rem;", "{position:absolute;top:0;right:0;bottom:0;height:auto;margin:0;border-radius:0 inherit inherit 0;opacity:0;background-color:var(--chip-surface,var(--surface-raised));background-image:linear-gradient( ", ",", " );}&:hover ", ",", ":focus-visible{opacity:1;}"], ChipTrigger, props.$paletteColor ? paletteSurface(props.$paletteColor) : props.$tint ? tintSurface(props.$tint, props.$tintStrong) : (_props$backgroundColo = props.backgroundColor) != null ? _props$backgroundColo : "transparent", props.$paletteColor ? paletteSurface(props.$paletteColor) : props.$tint ? tintSurface(props.$tint, props.$tintStrong) : (_props$backgroundColo2 = props.backgroundColor) != null ? _props$backgroundColo2 : "transparent", ChipTrigger, ChipTrigger);
|
|
63
63
|
}, props => props.size === "big" && css(["height:30px;"]), props => props.size === "biggest" && css(["height:40px;"]));
|