@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.
Files changed (79) hide show
  1. package/dist/cjs/components/Chip/Chip.js.map +1 -1
  2. package/dist/cjs/components/Chip/Styles.js +3 -1
  3. package/dist/cjs/components/Chip/Styles.js.map +1 -1
  4. package/dist/cjs/components/Icons/collection/Plug.js +61 -0
  5. package/dist/cjs/components/Icons/collection/Plug.js.map +1 -0
  6. package/dist/cjs/components/Icons/collection/PlugDisconnect.js +100 -0
  7. package/dist/cjs/components/Icons/collection/PlugDisconnect.js.map +1 -0
  8. package/dist/cjs/components/Icons/collection/index.js +14 -0
  9. package/dist/cjs/components/Icons/collection/index.js.map +1 -1
  10. package/dist/cjs/components/PillButton/PillButton.js.map +1 -1
  11. package/dist/cjs/components/PillButton/Styles.js +2 -1
  12. package/dist/cjs/components/PillButton/Styles.js.map +1 -1
  13. package/dist/cjs/components/PillGroup/PillGroup.js.map +1 -1
  14. package/dist/cjs/components/PillGroup/Styles.js +5 -2
  15. package/dist/cjs/components/PillGroup/Styles.js.map +1 -1
  16. package/dist/cjs/components/PropertyList/BulletStyles.js +1 -1
  17. package/dist/cjs/components/PropertyList/BulletStyles.js.map +1 -1
  18. package/dist/cjs/components/PropertyList/PropertyList.js +12 -1
  19. package/dist/cjs/components/PropertyList/PropertyList.js.map +1 -1
  20. package/dist/cjs/components/PropertyList/PropertyListPopover.js +22 -1
  21. package/dist/cjs/components/PropertyList/PropertyListPopover.js.map +1 -1
  22. package/dist/cjs/components/PropertyList/Styles.js +30 -27
  23. package/dist/cjs/components/PropertyList/Styles.js.map +1 -1
  24. package/dist/cjs/components/PropertyList/TimeStyles.js +1 -1
  25. package/dist/cjs/components/PropertyList/TimeStyles.js.map +1 -1
  26. package/dist/cjs/components/Typography/Variants/Body1.js.map +1 -1
  27. package/dist/esm/components/Chip/Chip.d.ts +1 -1
  28. package/dist/esm/components/Chip/Chip.d.ts.map +1 -1
  29. package/dist/esm/components/Chip/Chip.js.map +1 -1
  30. package/dist/esm/components/Chip/Styles.d.ts.map +1 -1
  31. package/dist/esm/components/Chip/Styles.js +2 -2
  32. package/dist/esm/components/Chip/Styles.js.map +1 -1
  33. package/dist/esm/components/Icons/collection/Plug.d.ts +21 -0
  34. package/dist/esm/components/Icons/collection/Plug.d.ts.map +1 -0
  35. package/dist/esm/components/Icons/collection/Plug.js +54 -0
  36. package/dist/esm/components/Icons/collection/Plug.js.map +1 -0
  37. package/dist/esm/components/Icons/collection/PlugDisconnect.d.ts +22 -0
  38. package/dist/esm/components/Icons/collection/PlugDisconnect.d.ts.map +1 -0
  39. package/dist/esm/components/Icons/collection/PlugDisconnect.js +83 -0
  40. package/dist/esm/components/Icons/collection/PlugDisconnect.js.map +1 -0
  41. package/dist/esm/components/Icons/collection/index.d.ts +2 -0
  42. package/dist/esm/components/Icons/collection/index.d.ts.map +1 -1
  43. package/dist/esm/components/Icons/collection/index.js +2 -0
  44. package/dist/esm/components/Icons/collection/index.js.map +1 -1
  45. package/dist/esm/components/PillButton/PillButton.d.ts +2 -2
  46. package/dist/esm/components/PillButton/PillButton.d.ts.map +1 -1
  47. package/dist/esm/components/PillButton/PillButton.js.map +1 -1
  48. package/dist/esm/components/PillButton/Styles.d.ts.map +1 -1
  49. package/dist/esm/components/PillButton/Styles.js +2 -1
  50. package/dist/esm/components/PillButton/Styles.js.map +1 -1
  51. package/dist/esm/components/PillGroup/PillGroup.d.ts +2 -2
  52. package/dist/esm/components/PillGroup/PillGroup.d.ts.map +1 -1
  53. package/dist/esm/components/PillGroup/PillGroup.js.map +1 -1
  54. package/dist/esm/components/PillGroup/Styles.d.ts.map +1 -1
  55. package/dist/esm/components/PillGroup/Styles.js +2 -1
  56. package/dist/esm/components/PillGroup/Styles.js.map +1 -1
  57. package/dist/esm/components/PropertyList/BulletStyles.js +1 -1
  58. package/dist/esm/components/PropertyList/BulletStyles.js.map +1 -1
  59. package/dist/esm/components/PropertyList/PropertyList.d.ts.map +1 -1
  60. package/dist/esm/components/PropertyList/PropertyList.js +12 -1
  61. package/dist/esm/components/PropertyList/PropertyList.js.map +1 -1
  62. package/dist/esm/components/PropertyList/PropertyListPopover.d.ts +3 -1
  63. package/dist/esm/components/PropertyList/PropertyListPopover.d.ts.map +1 -1
  64. package/dist/esm/components/PropertyList/PropertyListPopover.js +20 -0
  65. package/dist/esm/components/PropertyList/PropertyListPopover.js.map +1 -1
  66. package/dist/esm/components/PropertyList/Styles.d.ts +1 -0
  67. package/dist/esm/components/PropertyList/Styles.d.ts.map +1 -1
  68. package/dist/esm/components/PropertyList/Styles.js +30 -27
  69. package/dist/esm/components/PropertyList/Styles.js.map +1 -1
  70. package/dist/esm/components/PropertyList/TimeStyles.js +1 -1
  71. package/dist/esm/components/PropertyList/TimeStyles.js.map +1 -1
  72. package/dist/esm/components/Typography/Variants/Body1.d.ts +1 -1
  73. package/dist/esm/components/Typography/Variants/Body1.d.ts.map +1 -1
  74. package/dist/esm/components/Typography/Variants/Body1.js.map +1 -1
  75. package/dist/index.js +629 -455
  76. package/dist/index.js.map +1 -1
  77. package/dist/index.min.js +1 -1
  78. package/dist/index.min.js.map +1 -1
  79. package/package.json +1 -1
@@ -36,6 +36,8 @@ export const PropertyListPopover = _ref => {
36
36
  fixedWidth = _ref.width,
37
37
  _ref$followRow = _ref.followRow,
38
38
  followRow = _ref$followRow === void 0 ? false : _ref$followRow,
39
+ _ref$openAtClick = _ref.openAtClick,
40
+ openAtClick = _ref$openAtClick === void 0 ? false : _ref$openAtClick,
39
41
  className = _ref.className,
40
42
  testId = _ref["data-testid"],
41
43
  _ref$typeToFilter = _ref.typeToFilter,
@@ -51,6 +53,10 @@ export const PropertyListPopover = _ref => {
51
53
  const _useState = useState(),
52
54
  width = _useState[0],
53
55
  setWidth = _useState[1];
56
+ const clickPoint = useRef(null);
57
+ const _useState2 = useState(null),
58
+ anchorPoint = _useState2[0],
59
+ setAnchorPoint = _useState2[1];
54
60
  const handleRowRef = useForkRef(row.ref, rowRef);
55
61
  useContainerCss(POPOVER_CLASS + "-css", POPOVER_CSS);
56
62
  const measure = useCallback(() => {
@@ -67,6 +73,8 @@ export const PropertyListPopover = _ref => {
67
73
  const handleOpen = useCallback(() => {
68
74
  measure();
69
75
  closedByEscape.current = false;
76
+ setAnchorPoint(clickPoint.current);
77
+ clickPoint.current = null;
70
78
  onOpen();
71
79
  }, [measure, onOpen]);
72
80
 
@@ -92,6 +100,15 @@ export const PropertyListPopover = _ref => {
92
100
  }, [open]);
93
101
  const handleBeforeClose = useCallback(() => !onClickAway || closedByEscape.current || onClickAway() !== false, [onClickAway]);
94
102
  const rowProps = row.props;
103
+ const handleRowMouseDown = useCallback(event => {
104
+ var _rowRef$current;
105
+ rowProps.onMouseDown == null || rowProps.onMouseDown(event);
106
+ const bottom = (_rowRef$current = rowRef.current) == null ? void 0 : _rowRef$current.getBoundingClientRect().bottom;
107
+ clickPoint.current = bottom === undefined ? null : {
108
+ x: event.clientX,
109
+ y: bottom
110
+ };
111
+ }, [rowProps]);
95
112
  const handleRowKeyDown = useCallback(event => {
96
113
  var _contentNode$current;
97
114
  rowProps.onKeyDown == null || rowProps.onKeyDown(event);
@@ -135,12 +152,15 @@ export const PropertyListPopover = _ref => {
135
152
  onClose: onClose,
136
153
  position: isTable ? "bottom" : "bottom-start",
137
154
  followTarget: followRow,
155
+ anchorPoint: openAtClick && open ? anchorPoint : null,
138
156
  width: fixedWidth != null ? fixedWidth : width,
139
157
  menuClassName: POPOVER_CLASS,
140
158
  target: /*#__PURE__*/cloneElement(row, _extends({
141
159
  ref: handleRowRef
142
160
  }, typeToFilter ? {
143
161
  onKeyDown: handleRowKeyDown
162
+ } : null, openAtClick ? {
163
+ onMouseDown: handleRowMouseDown
144
164
  } : null))
145
165
  }, open ? /*#__PURE__*/React.createElement(StyledPropertyListPopoverContent, {
146
166
  ref: takeTypedText,
@@ -1 +1 @@
1
- {"version":3,"file":"PropertyListPopover.js","names":["React","cloneElement","useCallback","useEffect","useRef","useState","classnames","StyledPropertyListPopoverContent","usePropertyListLayout","useContainerCss","useForkRef","Menu","MenuFooter","POPOVER_CLASS","POPOVER_CSS","PROPERTY_LIST_POPOVER_WIDTH","PROPERTY_LIST_POPOVER_TABLE_MIN_WIDTH","SEARCH_INPUT","typeInto","input","text","_Object$getOwnPropert","Object","getOwnPropertyDescriptor","window","HTMLInputElement","prototype","set","call","dispatchEvent","Event","bubbles","focus","isCharacterKey","event","key","length","ctrlKey","metaKey","altKey","PropertyListPopover","_ref","row","open","onOpen","onClose","onClickAway","fixedWidth","width","_ref$followRow","followRow","className","testId","_ref$typeToFilter","typeToFilter","children","typedText","contentNode","layout","isTable","isTicket","rowRef","closedByEscape","_useState","setWidth","handleRowRef","ref","measure","node","current","card","closest","Math","max","offsetWidth","min","undefined","handleOpen","markEscape","document","addEventListener","removeEventListener","handleBeforeClose","rowProps","props","handleRowKeyDown","_contentNode$current","onKeyDown","defaultPrevented","preventDefault","querySelector","value","takeTypedText","handleKeyDown","createElement","onBeforeClose","position","followTarget","menuClassName","target","_extends","role","FOOTER_LABELS","cancel","remove","PropertyListPopoverFooter","_ref2","onSet","onCancel","onRemove","_ref2$setDisabled","setDisabled","testIdPrefix","labels","testIdOf","name","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,OAAOA,KAAK,IACVC,YAAY,EAIZC,WAAW,EACXC,SAAS,EACTC,MAAM,EACNC,QAAQ,QACH,OAAO;AAEd,OAAOC,UAAU,MAAM,YAAY;AAEnC,SAASC,gCAAgC,QAAQ,iBAAiB;AAClE,SAASC,qBAAqB,QAAQ,gBAAgB;AACtD,SAASC,eAAe,QAAQ,6BAA6B;AAC7D,OAAOC,UAAU,MAAM,wBAAwB;AAC/C,SAASC,IAAI,EAAEC,UAAU,QAAQ,SAAS;AAE1C,MAAMC,aAAa,GAAG,yBAAyB;AAC/C,MAAMC,WAAW,8BAA4BD,aAAa,kDAA+C;;AAEzG;AACA,OAAO,MAAME,2BAA2B,GAAG,GAAG;AAC9C;AACA,OAAO,MAAMC,qCAAqC,GAAG,GAAG;AA2BxD,MAAMC,YAAY,GAAG,yBAAyB;;AAE9C;AACA,MAAMC,QAAQ,GAAGA,CAACC,KAAuB,EAAE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E5E,KAAA,CAAA8F,aAAA,CAAClF,UAAU;IACTuC,SAAS,EAAC,iCAAiC;IAC3CiE,OAAO,EAAE;MACPC,KAAK,EAAEjG,IAAI,CAACO,GAAG;MACf2F,OAAO,EAAEX,KAAK;MACdY,QAAQ,EAAER,WAAW;MACrB,aAAa,EAAEG,QAAQ,CAAC,KAAK;IAC/B,CAAE;IACFM,SAAS,EAAE;MACTH,KAAK,EAAEjG,IAAI,CAACmF,MAAM;MAClBe,OAAO,EAAEV,QAAQ;MACjB,aAAa,EAAEM,QAAQ,CAAC,QAAQ;IAClC,CAAE;IACFO,QAAQ,EACNZ,QAAQ,GACJ;MACEQ,KAAK,EAAEjG,IAAI,CAACoF,MAAM;MAClBc,OAAO,EAAET,QAAQ;MACjB,aAAa,EAAEK,QAAQ,CAAC,QAAQ;IAClC,CAAC,GACDtC;EACL,CACF,CAAC;AAEN,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"PropertyListPopover.js","names":["React","cloneElement","useCallback","useEffect","useRef","useState","classnames","StyledPropertyListPopoverContent","usePropertyListLayout","useContainerCss","useForkRef","Menu","MenuFooter","POPOVER_CLASS","POPOVER_CSS","PROPERTY_LIST_POPOVER_WIDTH","PROPERTY_LIST_POPOVER_TABLE_MIN_WIDTH","SEARCH_INPUT","typeInto","input","text","_Object$getOwnPropert","Object","getOwnPropertyDescriptor","window","HTMLInputElement","prototype","set","call","dispatchEvent","Event","bubbles","focus","isCharacterKey","event","key","length","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","contentNode","layout","isTable","isTicket","rowRef","closedByEscape","_useState","setWidth","clickPoint","_useState2","anchorPoint","setAnchorPoint","handleRowRef","ref","measure","node","current","card","closest","Math","max","offsetWidth","min","undefined","handleOpen","markEscape","document","addEventListener","removeEventListener","handleBeforeClose","rowProps","props","handleRowMouseDown","_rowRef$current","onMouseDown","bottom","getBoundingClientRect","x","clientX","y","handleRowKeyDown","_contentNode$current","onKeyDown","defaultPrevented","preventDefault","querySelector","value","takeTypedText","handleKeyDown","createElement","onBeforeClose","position","followTarget","menuClassName","target","_extends","role","FOOTER_LABELS","cancel","remove","PropertyListPopoverFooter","_ref2","onSet","onCancel","onRemove","_ref2$setDisabled","setDisabled","testIdPrefix","labels","testIdOf","name","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,OAAOA,KAAK,IACVC,YAAY,EAKZC,WAAW,EACXC,SAAS,EACTC,MAAM,EACNC,QAAQ,QACH,OAAO;AAEd,OAAOC,UAAU,MAAM,YAAY;AAEnC,SAASC,gCAAgC,QAAQ,iBAAiB;AAClE,SAASC,qBAAqB,QAAQ,gBAAgB;AACtD,SAASC,eAAe,QAAQ,6BAA6B;AAC7D,OAAOC,UAAU,MAAM,wBAAwB;AAC/C,SAASC,IAAI,EAAmBC,UAAU,QAAQ,SAAS;AAE3D,MAAMC,aAAa,GAAG,yBAAyB;AAC/C,MAAMC,WAAW,8BAA4BD,aAAa,kDAA+C;;AAEzG;AACA,OAAO,MAAME,2BAA2B,GAAG,GAAG;AAC9C;AACA,OAAO,MAAMC,qCAAqC,GAAG,GAAG;AA6BxD,MAAMC,YAAY,GAAG,yBAAyB;;AAE9C;AACA,MAAMC,QAAQ,GAAGA,CAACC,KAAuB,EAAEC,IAAY,KAAK;E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AClBe,OAAO,EAAEV,QAAQ;MACjB,aAAa,EAAEM,QAAQ,CAAC,QAAQ;IAClC,CAAE;IACFO,QAAQ,EACNZ,QAAQ,GACJ;MACEQ,KAAK,EAAE/G,IAAI,CAACkG,MAAM;MAClBc,OAAO,EAAET,QAAQ;MACjB,aAAa,EAAEK,QAAQ,CAAC,QAAQ;IAClC,CAAC,GACD9C;EACL,CACF,CAAC;AAEN,CAAC","ignoreList":[]}
@@ -23,6 +23,7 @@ export declare const StyledPropertyListTableLabel: import("styled-components").S
23
23
  export declare const StyledPropertyListIcon: import("styled-components").StyledComponent<"span", any, {
24
24
  $size: number;
25
25
  $scale: boolean;
26
+ $muted?: boolean;
26
27
  }, never>;
27
28
  export declare const StyledPropertyListLabelText: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("..").IBodyProps & Omit<import("../Typography/Typography").ITypographyProps, "variant" | "weight"> & import("react").RefAttributes<HTMLDivElement>>, any, {
28
29
  $layout: PropertyListLayoutName;
@@ -1 +1 @@
1
- {"version":3,"file":"Styles.d.ts","sourceRoot":"","sources":["../../../../src/components/PropertyList/Styles.ts"],"names":[],"mappings":"AASA,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,MAAM,CAAC;AAClD,MAAM,MAAM,sBAAsB,GAAG,SAAS,GAAG,OAAO,GAAG,QAAQ,CAAC;AACpE,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,OAAO,CAAC;AACnD,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG,KAAK,CAAC;AAK/C,eAAO,MAAM,kBAAkB;gBACjB,OAAO;cACT,iBAAiB;aAClB,OAAO;aACP,OAAO;SA4CjB,CAAC;AAEF,eAAO,MAAM,yBAAyB;aAC3B,sBAAsB;cACrB,mBAAmB;SAO9B,CAAC;AAKF,eAAO,MAAM,qBAAqB;aACvB,sBAAsB;cACrB,mBAAmB;WACtB,gBAAgB;gBACX,OAAO;gBACP,OAAO;SA6FpB,CAAC;AAEF,eAAO,M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;AAEF,eAAO,MAAM,4BAA4B;YAC/B,OAAO;YACP,OAAO;WACR,gBAAgB;SAmBxB,CAAC;AAEF,eAAO,MAAM,6BAA6B;;0EAGzC,CAAC;AAEF,eAAO,MAAM,6BAA6B;kBAC1B,OAAO;SAOtB,CAAC;AAEF,eAAO,MAAM,+BAA+B;;0EAK3C,CAAC;AAgBF,eAAO,MAAM,uBAAuB;YAC1B,iBAAiB;SAkB1B,CAAC;AAEF,eAAO,MAAM,sBAAsB,oEAGlC,CAAC;AAEF,eAAO,MAAM,2BAA2B,oEAKvC,CAAC;AAEF,eAAO,MAAM,0BAA0B,oEAGtC,CAAC;AAEF,eAAO,MAAM,2BAA2B,oEAiBvC,CAAC;AAEF,eAAO,MAAM,sBAAsB,oEAGlC,CAAC;AAEF,eAAO,MAAM,4BAA4B,oEAIxC,CAAC;AAEF,eAAO,MAAM,wBAAwB,oEAYpC,CAAC;AAGF,eAAO,MAAM,aAAa,+oBAYzB,CAAC"}
@@ -12,7 +12,7 @@ export const StyledPropertyList = styled(Card).withConfig({
12
12
  return $ticket && css(["", " gap:4px;min-width:0;overflow:visible;padding:", ";"], $ticket === "grid" && "container-type: inline-size;", $ticket === "grid" ? "4px 16px 16px" : "16px");
13
13
  }, _ref2 => {
14
14
  let $solid = _ref2.$solid;
15
- return $solid && css(["&&{background-color:", ";}"], SOLID_SURFACE);
15
+ return $solid && css(["&&,&&:hover{background-color:", ";}"], SOLID_SURFACE);
16
16
  }, _ref3 => {
17
17
  let $roomy = _ref3.$roomy;
18
18
  return $roomy && css(["& .c-property-list__row{padding-top:10px;padding-bottom:10px;}"]);
@@ -63,34 +63,37 @@ export const StyledPropertyListTableLabel = styled.span.withConfig({
63
63
  export const StyledPropertyListIcon = styled.span.withConfig({
64
64
  displayName: "Styles__StyledPropertyListIcon",
65
65
  componentId: "sc-ssdfzo-4"
66
- })(["display:flex;flex-shrink:0;align-items:center;justify-content:center;width:", "px;height:", "px;& svg{fill:var(--color-theme-700);", "}"], _ref1 => {
66
+ })(["display:flex;flex-shrink:0;align-items:center;justify-content:center;width:", "px;height:", "px;& svg{fill:var(--color-theme-", ");", "}"], _ref1 => {
67
67
  let $size = _ref1.$size;
68
68
  return $size;
69
69
  }, _ref10 => {
70
70
  let $size = _ref10.$size;
71
71
  return $size;
72
72
  }, _ref11 => {
73
- let $scale = _ref11.$scale,
74
- $size = _ref11.$size;
73
+ let $muted = _ref11.$muted;
74
+ return $muted ? 600 : 700;
75
+ }, _ref12 => {
76
+ let $scale = _ref12.$scale,
77
+ $size = _ref12.$size;
75
78
  return $scale && "width: " + $size + "px; height: " + $size + "px;";
76
79
  });
77
80
  export const StyledPropertyListLabelText = styled(Body2).withConfig({
78
81
  displayName: "Styles__StyledPropertyListLabelText",
79
82
  componentId: "sc-ssdfzo-5"
80
- })(["&&{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--color-theme-700);", "}"], _ref12 => {
81
- let $layout = _ref12.$layout,
82
- $density = _ref12.$density;
83
+ })(["&&{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--color-theme-700);", "}"], _ref13 => {
84
+ let $layout = _ref13.$layout,
85
+ $density = _ref13.$density;
83
86
  return $layout === "stacked" && css(["flex:1 1 0%;", ""], $density === "page" ? "margin-left: -4px;" : "padding-left: 6px;");
84
87
  });
85
88
  export const StyledPropertyListValue = styled(Body2).withConfig({
86
89
  displayName: "Styles__StyledPropertyListValue",
87
90
  componentId: "sc-ssdfzo-6"
88
- })(["&&{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:", ";", "}"], _ref13 => {
89
- let $density = _ref13.$density;
91
+ })(["&&{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:", ";", "}"], _ref14 => {
92
+ let $density = _ref14.$density;
90
93
  return $density === "page" ? "calc(15px * var(--text-scale, 1))" : "calc(1em + 1px)";
91
- }, _ref14 => {
92
- let $placeholder = _ref14.$placeholder,
93
- $density = _ref14.$density;
94
+ }, _ref15 => {
95
+ let $placeholder = _ref15.$placeholder,
96
+ $density = _ref15.$density;
94
97
  return !$placeholder && "color: " + ($density === "page" ? "var(--muted-text)" : "var(--color-theme-800)") + ";";
95
98
  });
96
99
  export const StyledPropertyListAddIcon = styled.span.withConfig({
@@ -124,26 +127,26 @@ export const StyledPropertyListBranchLine = styled.span.withConfig({
124
127
  export const StyledPropertyListTicketLabel = styled(Caption2).withConfig({
125
128
  displayName: "Styles__StyledPropertyListTicketLabel",
126
129
  componentId: "sc-ssdfzo-14"
127
- })(["&&{text-transform:uppercase;letter-spacing:0.09em;color:", ";}"], _ref15 => {
128
- let $tone = _ref15.$tone;
130
+ })(["&&{text-transform:uppercase;letter-spacing:0.05em;color:", ";}"], _ref16 => {
131
+ let $tone = _ref16.$tone;
129
132
  return $tone === "alert" ? "var(--red-alert)" : "var(--color-theme-600)";
130
133
  });
131
134
  export const StyledPropertyListTicketLine = styled.span.withConfig({
132
135
  displayName: "Styles__StyledPropertyListTicketLine",
133
136
  componentId: "sc-ssdfzo-15"
134
- })(["display:flex;align-items:center;gap:4px;min-width:0;", ""], _ref16 => {
135
- let $parts = _ref16.$parts;
137
+ })(["display:flex;align-items:center;gap:4px;min-width:0;", ""], _ref17 => {
138
+ let $parts = _ref17.$parts;
136
139
  return $parts && "min-height: 24px;";
137
140
  });
138
141
  export const StyledPropertyListTicketText = styled(Body1).withConfig({
139
142
  displayName: "Styles__StyledPropertyListTicketText",
140
143
  componentId: "sc-ssdfzo-16"
141
- })(["&&{min-width:0;", " ", "}"], _ref17 => {
142
- let $parts = _ref17.$parts,
143
- $wrap = _ref17.$wrap;
144
+ })(["&&{min-width:0;", " ", "}"], _ref18 => {
145
+ let $parts = _ref18.$parts,
146
+ $wrap = _ref18.$wrap;
144
147
  return $parts ? css(["display:flex;align-items:center;gap:6px;", ""], $wrap ? "flex-wrap: wrap; row-gap: 4px;" : "white-space: nowrap;") : css(["overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"]);
145
- }, _ref18 => {
146
- let $tone = _ref18.$tone;
148
+ }, _ref19 => {
149
+ let $tone = _ref19.$tone;
147
150
  return $tone === "alert" && "color: var(--red-alert);";
148
151
  });
149
152
  export const StyledPropertyListTicketCaret = styled(ArrowDownSmallIcon).withConfig({
@@ -153,20 +156,20 @@ export const StyledPropertyListTicketCaret = styled(ArrowDownSmallIcon).withConf
153
156
  export const StyledPropertyListTicketValue = styled.span.withConfig({
154
157
  displayName: "Styles__StyledPropertyListTicketValue",
155
158
  componentId: "sc-ssdfzo-18"
156
- })(["min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;", ""], _ref19 => {
157
- let $placeholder = _ref19.$placeholder;
158
- return $placeholder && "color: var(--color-theme-600);";
159
+ })(["min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;", ""], _ref20 => {
160
+ let $placeholder = _ref20.$placeholder;
161
+ return $placeholder && "color: var(--color-theme-500);";
159
162
  });
160
163
  export const StyledPropertyListTicketAddIcon = styled(AddCrossTinyIcon).withConfig({
161
164
  displayName: "Styles__StyledPropertyListTicketAddIcon",
162
165
  componentId: "sc-ssdfzo-19"
163
- })(["flex-shrink:0;width:12px;height:12px;fill:var(--color-theme-600);"]);
166
+ })(["flex-shrink:0;width:12px;height:12px;fill:var(--color-theme-500);"]);
164
167
  const fillCell = css(["display:flex;min-width:0;> *{flex:1 1 0%;min-width:0;}& .c-property-list__row{width:100%;}"]);
165
168
  export const StyledPropertyListCells = styled.div.withConfig({
166
169
  displayName: "Styles__StyledPropertyListCells",
167
170
  componentId: "sc-ssdfzo-20"
168
- })(["min-width:0;", ""], _ref20 => {
169
- let $cells = _ref20.$cells;
171
+ })(["min-width:0;", ""], _ref21 => {
172
+ let $cells = _ref21.$cells;
170
173
  return $cells === "grid" ? css(["display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;column-gap:16px;"]) : css(["display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px 24px;"]);
171
174
  });
172
175
  export const StyledPropertyListCell = styled.div.withConfig({
@@ -1 +1 @@
1
- {"version":3,"file":"Styles.js","names":["styled","css","Card","AddCrossTinyIcon","ArrowDownSmallIcon","Body1","Body2","Caption2","SOLID_SURFACE","disabledSurface","StyledPropertyList","withConfig","displayName","componentId","_ref","$ticket","_ref2","$solid","_ref3","$roomy","_ref4","$disabled","StyledPropertyListDivider","div","_ref5","$layout","$density","highlight","StyledPropertyListRow","_ref6","$tone","_ref7","_ref8","_ref9","$clickable","_ref0","StyledPropertyListTableLabel","span","StyledPropertyListIcon","_ref1","$size","_ref10","_ref11","$scale","StyledPropertyListLabelText","_ref12","StyledPropertyListValue","_ref13","_ref14","$placeholder","StyledPropertyListAddIcon","StyledPropertyListTableValue","StyledPropertyListTableAction","StyledPropertyListChevron","StyledPropertyListToggle","button","StyledPropertyListBranch","StyledPropertyListBranchLine","StyledPropertyListTicketLabel","_ref15","StyledPropertyListTicketLine","_ref16","$parts","StyledPropertyListTicketText","_ref17","$wrap","_ref18","StyledPropertyListTicketCaret","StyledPropertyListTicketValue","_ref19","StyledPropertyListTicketAddIcon","fillCell","StyledPropertyListCells","_ref20","$cells","StyledPropertyListCell","StyledPropertyListCellSplit","StyledPropertyListCellMain","StyledPropertyListCellAside","StyledPropertyListTear","StyledPropertyListFooterTear","StyledPropertyListFooter","CONTAINER_CSS"],"sources":["../../../../src/components/PropertyList/Styles.ts"],"sourcesContent":["import styled, { css } from \"styled-components\";\n\nimport { Card } from \"../Card\";\nimport { AddCrossTinyIcon, ArrowDownSmallIcon } from \"../Icons\";\nimport { Body1, Body2, Caption2 } from \"../Typography\";\n\nconst SOLID_SURFACE =\n \"var(--object-layout-card-surface, var(--surface-raised))\";\n\nexport type PropertyListDensity = \"form\" | \"page\";\nexport type PropertyListLayoutName = \"stacked\" | \"table\" | \"ticket\";\nexport type PropertyListTone = \"regular\" | \"alert\";\nexport type PropertyListCells = \"grid\" | \"row\";\n\nconst disabledSurface =\n \"color-mix(in srgb, var(--surface-raised) 50%, transparent)\";\n\nexport const StyledPropertyList = styled(Card)<{\n $disabled?: boolean;\n $ticket?: PropertyListCells;\n $solid?: boolean;\n $roomy?: boolean;\n}>`\n display: flex;\n flex-direction: column;\n overflow: clip;\n\n ${({ $ticket }) =>\n $ticket &&\n css`\n ${$ticket === \"grid\" && \"container-type: inline-size;\"}\n gap: 4px;\n min-width: 0;\n overflow: visible;\n padding: ${$ticket === \"grid\" ? \"4px 16px 16px\" : \"16px\"};\n `}\n\n ${({ $solid }) =>\n $solid &&\n css`\n && {\n background-color: ${SOLID_SURFACE};\n }\n `}\n\n ${({ $roomy }) =>\n $roomy &&\n css`\n & .c-property-list__row {\n padding-top: 10px;\n padding-bottom: 10px;\n }\n `}\n\n ${({ $disabled }) =>\n $disabled &&\n css`\n && {\n background-color: ${disabledSurface};\n }\n\n &&:hover {\n background-color: ${disabledSurface};\n }\n `}\n`;\n\nexport const StyledPropertyListDivider = styled.div<{\n $layout: PropertyListLayoutName;\n $density: PropertyListDensity;\n}>`\n flex-shrink: 0;\n height: 1px;\n background-color: var(--border-raised);\n ${({ $layout, $density }) =>\n $layout === \"stacked\" && `margin-left: ${$density === \"page\" ? 44 : 46}px;`}\n`;\n\nconst highlight =\n \"linear-gradient(var(--highlight-dark), var(--highlight-dark))\";\n\nexport const StyledPropertyListRow = styled.div<{\n $layout: PropertyListLayoutName;\n $density: PropertyListDensity;\n $tone: PropertyListTone;\n $clickable: boolean;\n $disabled?: boolean;\n}>`\n position: relative;\n width: 100%;\n border: 0;\n text-align: left;\n background-color: ${({ $tone, $layout }) =>\n $tone === \"alert\" && $layout !== \"ticket\"\n ? \"var(--alert-surface-subtle)\"\n : \"transparent\"};\n\n ${({ $layout, $density }) =>\n $layout === \"table\"\n ? css`\n display: grid;\n grid-template-columns: 185px minmax(0, 1fr) auto;\n align-items: center;\n min-height: 36px;\n padding: 4px 12px;\n `\n : $layout === \"ticket\"\n ? css`\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n gap: 2px;\n width: auto;\n min-width: 0;\n margin: 0;\n padding: 6px 8px;\n color: inherit;\n `\n : css`\n display: flex;\n align-items: center;\n gap: 8px;\n min-height: ${$density === \"page\" ? 44 : 40}px;\n padding: 6px 12px;\n `}\n\n ${({ $disabled, $density }) =>\n $disabled &&\n css`\n cursor: default;\n\n > * {\n opacity: 0.4;\n }\n\n && .c-property-list__value[data-placeholder] {\n color: ${$density === \"page\"\n ? \"var(--muted-text)\"\n : \"var(--color-theme-800)\"};\n }\n `}\n\n ${({ $clickable, $disabled, $layout }) =>\n $clickable &&\n !$disabled &&\n $layout === \"ticket\" &&\n css`\n cursor: pointer;\n border-radius: 10px;\n\n &:hover,\n &[aria-expanded=\"true\"] {\n background-color: var(--color-theme-200);\n }\n\n &:focus-visible {\n outline: 2px solid var(--color-primary);\n }\n `}\n\n ${({ $clickable, $disabled, $tone, $layout }) =>\n $clickable &&\n !$disabled &&\n $layout !== \"ticket\" &&\n css`\n cursor: pointer;\n\n &:hover,\n &:focus-visible,\n &[aria-expanded=\"true\"] {\n ${$tone === \"alert\"\n ? `background-image: ${highlight};`\n : \"background-color: var(--color-theme-200);\"}\n }\n\n &:focus-visible {\n outline: none;\n }\n `}\n`;\n\nexport const StyledPropertyListTableLabel = styled.span`\n display: flex;\n align-items: center;\n gap: 10px;\n min-width: 0;\n padding-right: 8px;\n`;\n\nexport const StyledPropertyListIcon = styled.span<{\n $size: number;\n $scale: boolean;\n}>`\n display: flex;\n flex-shrink: 0;\n align-items: center;\n justify-content: center;\n width: ${({ $size }) => $size}px;\n height: ${({ $size }) => $size}px;\n\n & svg {\n fill: var(--color-theme-700);\n ${({ $scale, $size }) => $scale && `width: ${$size}px; height: ${$size}px;`}\n }\n`;\n\nexport const StyledPropertyListLabelText = styled(Body2)<{\n $layout: PropertyListLayoutName;\n $density: PropertyListDensity;\n}>`\n && {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n color: var(--color-theme-700);\n\n ${({ $layout, $density }) =>\n $layout === \"stacked\" &&\n css`\n flex: 1 1 0%;\n ${$density === \"page\" ? \"margin-left: -4px;\" : \"padding-left: 6px;\"}\n `}\n }\n`;\n\nexport const StyledPropertyListValue = styled(Body2)<{\n $density: PropertyListDensity;\n $placeholder: boolean;\n}>`\n && {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n font-size: ${({ $density }) =>\n $density === \"page\"\n ? \"calc(15px * var(--text-scale, 1))\"\n : \"calc(1em + 1px)\"};\n\n ${({ $placeholder, $density }) =>\n !$placeholder &&\n `color: ${\n $density === \"page\" ? \"var(--muted-text)\" : \"var(--color-theme-800)\"\n };`}\n }\n`;\n\nexport const StyledPropertyListAddIcon = styled.span`\n display: flex;\n flex-shrink: 0;\n align-items: center;\n justify-content: center;\n width: 16px;\n height: 16px;\n\n & svg {\n fill: var(--color-theme-700);\n }\n`;\n\nexport const StyledPropertyListTableValue = styled.span`\n display: flex;\n align-items: center;\n gap: 8px;\n min-width: 0;\n`;\n\nexport const StyledPropertyListTableAction = styled.span`\n display: flex;\n align-items: center;\n justify-content: flex-end;\n gap: 8px;\n min-width: 16px;\n padding-left: 8px;\n`;\n\nexport const StyledPropertyListChevron = styled.span`\n display: flex;\n flex-shrink: 0;\n\n & svg {\n fill: var(--color-theme-700);\n }\n`;\n\nexport const StyledPropertyListToggle = styled.button`\n display: flex;\n align-items: center;\n width: 100%;\n min-height: 36px;\n padding: 0 12px;\n border: 0;\n background-color: transparent;\n color: var(--color-theme-600);\n font-size: calc(13px * var(--text-scale, 1));\n line-height: 20px;\n text-align: left;\n cursor: pointer;\n\n &:hover,\n &:focus-visible {\n background-color: var(--color-theme-200);\n }\n\n &:disabled {\n cursor: default;\n opacity: 0.4;\n background-color: transparent;\n }\n`;\n\nexport const StyledPropertyListBranch = styled.span`\n position: absolute;\n top: 0;\n left: 19px;\n width: 13px;\n height: 50%;\n border: 0 solid var(--color-theme-500);\n border-bottom-width: 1px;\n border-left-width: 1px;\n border-bottom-left-radius: 4px;\n pointer-events: none;\n`;\n\nexport const StyledPropertyListBranchLine = styled.span`\n position: absolute;\n top: 50%;\n bottom: 0;\n left: 19px;\n width: 1px;\n background-color: var(--color-theme-500);\n pointer-events: none;\n`;\n\nexport const StyledPropertyListTicketLabel = styled(Caption2)<{\n $tone: PropertyListTone;\n}>`\n && {\n text-transform: uppercase;\n letter-spacing: 0.09em;\n color: ${({ $tone }) =>\n $tone === \"alert\" ? \"var(--red-alert)\" : \"var(--color-theme-600)\"};\n }\n`;\n\nexport const StyledPropertyListTicketLine = styled.span<{ $parts: boolean }>`\n display: flex;\n align-items: center;\n gap: 4px;\n min-width: 0;\n ${({ $parts }) => $parts && \"min-height: 24px;\"}\n`;\n\nexport const StyledPropertyListTicketText = styled(Body1)<{\n $parts: boolean;\n $wrap?: boolean;\n $tone: PropertyListTone;\n}>`\n && {\n min-width: 0;\n ${({ $parts, $wrap }) =>\n $parts\n ? css`\n display: flex;\n align-items: center;\n gap: 6px;\n ${$wrap ? \"flex-wrap: wrap; row-gap: 4px;\" : \"white-space: nowrap;\"}\n `\n : css`\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n `}\n ${({ $tone }) => $tone === \"alert\" && \"color: var(--red-alert);\"}\n }\n`;\n\nexport const StyledPropertyListTicketCaret = styled(ArrowDownSmallIcon)`\n flex-shrink: 0;\n fill: var(--color-theme-600);\n`;\n\nexport const StyledPropertyListTicketValue = styled.span<{\n $placeholder: boolean;\n}>`\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n ${({ $placeholder }) => $placeholder && \"color: var(--color-theme-600);\"}\n`;\n\nexport const StyledPropertyListTicketAddIcon = styled(AddCrossTinyIcon)`\n flex-shrink: 0;\n width: 12px;\n height: 12px;\n fill: var(--color-theme-600);\n`;\n\nconst fillCell = css`\n display: flex;\n min-width: 0;\n\n > * {\n flex: 1 1 0%;\n min-width: 0;\n }\n\n & .c-property-list__row {\n width: 100%;\n }\n`;\n\nexport const StyledPropertyListCells = styled.div<{\n $cells: PropertyListCells;\n}>`\n min-width: 0;\n\n ${({ $cells }) =>\n $cells === \"grid\"\n ? css`\n display: grid;\n grid-template-columns: repeat(2, minmax(0, 1fr));\n align-items: start;\n column-gap: 16px;\n `\n : css`\n display: flex;\n flex-wrap: wrap;\n align-items: flex-end;\n gap: 12px 24px;\n `}\n`;\n\nexport const StyledPropertyListCell = styled.div`\n ${fillCell}\n padding-bottom: 1px;\n`;\n\nexport const StyledPropertyListCellSplit = styled.div`\n display: flex;\n align-items: flex-start;\n gap: 8px;\n min-width: 0;\n`;\n\nexport const StyledPropertyListCellMain = styled.div`\n ${fillCell}\n flex: 1 1 0%;\n`;\n\nexport const StyledPropertyListCellAside = styled.div`\n display: flex;\n flex-shrink: 0;\n align-self: center;\n align-items: center;\n gap: 8px;\n\n &::before {\n content: \"\";\n width: 1px;\n height: 16px;\n background-color: var(--border-raised);\n }\n\n &:empty {\n display: none;\n }\n`;\n\nexport const StyledPropertyListTear = styled.div`\n grid-column: 1 / -1;\n margin: -6px 0;\n`;\n\nexport const StyledPropertyListFooterTear = styled.div`\n position: relative;\n z-index: 1;\n margin: -10px 0 -14px;\n`;\n\nexport const StyledPropertyListFooter = styled.div`\n margin: 0 -16px -16px;\n overflow: clip;\n border-radius: 0 0 11px 11px;\n\n && > .c-property-list.c-property-list,\n && > .c-property-list.c-property-list:hover {\n border: 0;\n border-radius: 0;\n box-shadow: none;\n background-color: transparent;\n }\n`;\n\n// Only the tear line at the end of a line of cells shows.\nexport const CONTAINER_CSS = `\n@container (max-width: 619.98px) {\n .c-property-list__cells--grid > .c-property-list__tear:not(:nth-child(4n)) { display: none; }\n}\n@container (min-width: 620px) and (max-width: 719.98px) {\n .c-property-list__cells.c-property-list__cells--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }\n .c-property-list__cells--grid > .c-property-list__tear:not(:nth-child(6n)) { display: none; }\n}\n@container (min-width: 720px) {\n .c-property-list__cells.c-property-list__cells--grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }\n .c-property-list__cells--grid > .c-property-list__tear:not(:nth-child(8n)) { display: none; }\n}\n`;\n"],"mappings":"AAAA,OAAOA,MAAM,IAAIC,GAAG,QAAQ,mBAAmB;AAE/C,SAASC,IAAI,QAAQ,SAAS;AAC9B,SAASC,gBAAgB,EAAEC,kBAAkB,QAAQ,UAAU;AAC/D,SAASC,KAAK,EAAEC,KAAK,EAAEC,QAAQ,QAAQ,eAAe;AAEtD,MAAMC,aAAa,GACjB,0DAA0D;AAO5D,MAAMC,eAAe,GACnB,4DAA4D;AAE9D,OAAO,MAAMC,kBAAkB,GAAGV,MAAM,CAACE,IAAI,CAAC,CAAAS,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,6EAU1CC,IAAA;EAAA,IAAGC,OAAO,GAAAD,IAAA,CAAPC,OAAO;EAAA,OACVA,OAAO,IACPd,GAAG,8DACCc,OAAO,KAAK,MAAM,IAAI,8BAA8B,EAI3CA,OAAO,KAAK,MAAM,GAAG,eAAe,GAAG,MAAM,CACzD;AAAA,GAEDC,KAAA;EAAA,IAAGC,MAAM,GAAAD,KAAA,CAANC,MAAM;EAAA,OACTA,MAAM,IACNhB,GAAG,iCAEqBO,aAAa,CAEpC;AAAA,GAEDU,KAAA;EAAA,IAAGC,MAAM,GAAAD,KAAA,CAANC,MAAM;EAAA,OACTA,MAAM,IACNlB,GAAG,oEAKF;AAAA,GAEDmB,KAAA;EAAA,IAAGC,SAAS,GAAAD,KAAA,CAATC,SAAS;EAAA,OACZA,SAAS,IACTpB,GAAG,iEAEqBQ,eAAe,EAIfA,eAAe,CAEtC;AAAA,EACJ;AAED,OAAO,MAAMa,yBAAyB,GAAGtB,MAAM,CAACuB,GAAG,CAAAZ,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,4EAO/CW,KAAA;EAAA,IAAGC,OAAO,GAAAD,KAAA,CAAPC,OAAO;IAAEC,QAAQ,GAAAF,KAAA,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E,GAAG,gGAYnB;AAED,OAAO,MAAMuE,uBAAuB,GAAGxE,MAAM,CAACuB,GAAG,CAAAZ,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,yBAK7C4D,MAAA;EAAA,IAAGC,MAAM,GAAAD,MAAA,CAANC,MAAM;EAAA,OACTA,MAAM,KAAK,MAAM,GACbzE,GAAG,sGAMHA,GAAG,qEAKF;AAAA,EACR;AAED,OAAO,MAAM0E,sBAAsB,GAAG3E,MAAM,CAACuB,GAAG,CAAAZ,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,iCAC5C0D,QAAQ,CAEX;AAED,OAAO,MAAMK,2BAA2B,GAAG5E,MAAM,CAACuB,GAAG,CAAAZ,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,gEAKpD;AAED,OAAO,MAAMgE,0BAA0B,GAAG7E,MAAM,CAACuB,GAAG,CAAAZ,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,0BAChD0D,QAAQ,CAEX;AAED,OAAO,MAAMO,2BAA2B,GAAG9E,MAAM,CAACuB,GAAG,CAAAZ,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,0LAiBpD;AAED,OAAO,MAAMkE,sBAAsB,GAAG/E,MAAM,CAACuB,GAAG,CAAAZ,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,yCAG/C;AAED,OAAO,MAAMmE,4BAA4B,GAAGhF,MAAM,CAACuB,GAAG,CAAAZ,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,yDAIrD;AAED,OAAO,MAAMoE,wBAAwB,GAAGjF,MAAM,CAACuB,GAAG,CAAAZ,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,gOAYjD;;AAED;AACA,OAAO,MAAMqE,aAAa,+oBAYzB","ignoreList":[]}
1
+ {"version":3,"file":"Styles.js","names":["styled","css","Card","AddCrossTinyIcon","ArrowDownSmallIcon","Body1","Body2","Caption2","SOLID_SURFACE","disabledSurface","StyledPropertyList","withConfig","displayName","componentId","_ref","$ticket","_ref2","$solid","_ref3","$roomy","_ref4","$disabled","StyledPropertyListDivider","div","_ref5","$layout","$density","highlight","StyledPropertyListRow","_ref6","$tone","_ref7","_ref8","_ref9","$clickable","_ref0","StyledPropertyListTableLabel","span","StyledPropertyListIcon","_ref1","$size","_ref10","_ref11","$muted","_ref12","$scale","StyledPropertyListLabelText","_ref13","StyledPropertyListValue","_ref14","_ref15","$placeholder","StyledPropertyListAddIcon","StyledPropertyListTableValue","StyledPropertyListTableAction","StyledPropertyListChevron","StyledPropertyListToggle","button","StyledPropertyListBranch","StyledPropertyListBranchLine","StyledPropertyListTicketLabel","_ref16","StyledPropertyListTicketLine","_ref17","$parts","StyledPropertyListTicketText","_ref18","$wrap","_ref19","StyledPropertyListTicketCaret","StyledPropertyListTicketValue","_ref20","StyledPropertyListTicketAddIcon","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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AAGxE,GAAG,gGAYnB;AAED,OAAO,MAAMyE,uBAAuB,GAAG1E,MAAM,CAACuB,GAAG,CAAAZ,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,yBAK7C8D,MAAA;EAAA,IAAGC,MAAM,GAAAD,MAAA,CAANC,MAAM;EAAA,OACTA,MAAM,KAAK,MAAM,GACb3E,GAAG,sGAMHA,GAAG,qEAKF;AAAA,EACR;AAED,OAAO,MAAM4E,sBAAsB,GAAG7E,MAAM,CAACuB,GAAG,CAAAZ,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,iCAC5C4D,QAAQ,CAEX;AAED,OAAO,MAAMK,2BAA2B,GAAG9E,MAAM,CAACuB,GAAG,CAAAZ,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,gEAKpD;AAED,OAAO,MAAMkE,0BAA0B,GAAG/E,MAAM,CAACuB,GAAG,CAAAZ,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,0BAChD4D,QAAQ,CAEX;AAED,OAAO,MAAMO,2BAA2B,GAAGhF,MAAM,CAACuB,GAAG,CAAAZ,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,0LAiBpD;AAED,OAAO,MAAMoE,sBAAsB,GAAGjF,MAAM,CAACuB,GAAG,CAAAZ,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,yCAG/C;AAED,OAAO,MAAMqE,4BAA4B,GAAGlF,MAAM,CAACuB,GAAG,CAAAZ,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,yDAIrD;AAED,OAAO,MAAMsE,wBAAwB,GAAGnF,MAAM,CAACuB,GAAG,CAAAZ,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,gOAYjD;;AAED;AACA,OAAO,MAAMuE,aAAa,+oBAYzB","ignoreList":[]}
@@ -18,7 +18,7 @@ export const StyledPropertyListMoment = styled.span.withConfig({
18
18
  export const StyledPropertyListMomentLabel = styled(Caption2).withConfig({
19
19
  displayName: "TimeStyles__StyledPropertyListMomentLabel",
20
20
  componentId: "sc-ld4yoe-2"
21
- })(["&&{text-transform:uppercase;letter-spacing:0.09em;color:var(--color-theme-600);}"]);
21
+ })(["&&{text-transform:uppercase;letter-spacing:0.05em;color:var(--color-theme-600);}"]);
22
22
 
23
23
  // The font of the row, as the frontend time inherits it.
24
24
  export const StyledPropertyListMomentValue = styled.span.withConfig({
@@ -1 +1 @@
1
- {"version":3,"file":"TimeStyles.js","names":["styled","ticketDash","Caption1","Caption2","StyledPropertyListTime","div","withConfig","displayName","componentId","_ref","$clickable","StyledPropertyListMoment","span","_ref2","$end","StyledPropertyListMomentLabel","StyledPropertyListMomentValue","StyledPropertyListMomentCaption","StyledPropertyListTimeLength","StyledPropertyListTimeDash"],"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.09em;\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,OAAOA,MAAM,MAAM,mBAAmB;AAEtC,SAASC,UAAU,QAAQ,6BAA6B;AACxD,SAASC,QAAQ,EAAEC,QAAQ,QAAQ,eAAe;AAElD,OAAO,MAAMC,sBAAsB,GAAGJ,MAAM,CAACK,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,gMAc5CC,IAAA;EAAA,IAAGC,UAAU,GAAAD,IAAA,CAAVC,UAAU;EAAA,OACbA,UAAU,uQAaT;AAAA,EACJ;AAED,OAAO,MAAMC,wBAAwB,GAAGX,MAAM,CAACY,IAAI,CAAAN,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,2EAIlCK,KAAA;EAAA,IAAGC,IAAI,GAAAD,KAAA,CAAJC,IAAI;EAAA,OAAQA,IAAI,GAAG,UAAU,GAAG,YAAY;AAAA,CAAC,CAChE;AAED,OAAO,MAAMC,6BAA6B,GAAGf,MAAM,CAACG,QAAQ,CAAC,CAAAG,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,wFAM5D;;AAED;AACA,OAAO,MAAMQ,6BAA6B,GAAGhB,MAAM,CAACY,IAAI,CAAAN,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,yJAQvD;AAED,OAAO,MAAMS,+BAA+B,GAAGjB,MAAM,CAACE,QAAQ,CAAC,CAAAI,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,yCAI9D;AAED,OAAO,MAAMU,4BAA4B,GAAGlB,MAAM,CAACY,IAAI,CAAAN,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,wHAUtD;AAED,OAAO,MAAMW,0BAA0B,GAAGnB,MAAM,CAACY,IAAI,CAAAN,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,aACjDP,UAAU,CAAC,SAAS,CAAC,CACxB","ignoreList":[]}
1
+ {"version":3,"file":"TimeStyles.js","names":["styled","ticketDash","Caption1","Caption2","StyledPropertyListTime","div","withConfig","displayName","componentId","_ref","$clickable","StyledPropertyListMoment","span","_ref2","$end","StyledPropertyListMomentLabel","StyledPropertyListMomentValue","StyledPropertyListMomentCaption","StyledPropertyListTimeLength","StyledPropertyListTimeDash"],"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,OAAOA,MAAM,MAAM,mBAAmB;AAEtC,SAASC,UAAU,QAAQ,6BAA6B;AACxD,SAASC,QAAQ,EAAEC,QAAQ,QAAQ,eAAe;AAElD,OAAO,MAAMC,sBAAsB,GAAGJ,MAAM,CAACK,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,gMAc5CC,IAAA;EAAA,IAAGC,UAAU,GAAAD,IAAA,CAAVC,UAAU;EAAA,OACbA,UAAU,uQAaT;AAAA,EACJ;AAED,OAAO,MAAMC,wBAAwB,GAAGX,MAAM,CAACY,IAAI,CAAAN,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,2EAIlCK,KAAA;EAAA,IAAGC,IAAI,GAAAD,KAAA,CAAJC,IAAI;EAAA,OAAQA,IAAI,GAAG,UAAU,GAAG,YAAY;AAAA,CAAC,CAChE;AAED,OAAO,MAAMC,6BAA6B,GAAGf,MAAM,CAACG,QAAQ,CAAC,CAAAG,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,wFAM5D;;AAED;AACA,OAAO,MAAMQ,6BAA6B,GAAGhB,MAAM,CAACY,IAAI,CAAAN,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,yJAQvD;AAED,OAAO,MAAMS,+BAA+B,GAAGjB,MAAM,CAACE,QAAQ,CAAC,CAAAI,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,yCAI9D;AAED,OAAO,MAAMU,4BAA4B,GAAGlB,MAAM,CAACY,IAAI,CAAAN,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,wHAUtD;AAED,OAAO,MAAMW,0BAA0B,GAAGnB,MAAM,CAACY,IAAI,CAAAN,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,aACjDP,UAAU,CAAC,SAAS,CAAC,CACxB","ignoreList":[]}
@@ -2,7 +2,7 @@ import React from "react";
2
2
  import { ITypographyProps } from "../Typography";
3
3
  export interface IBodyProps {
4
4
  /** Font weight. */
5
- weight?: "regular" | "bold" | "medium";
5
+ weight?: "regular" | "medium" | "semibold" | "bold";
6
6
  }
7
7
  export declare const Body1: React.ForwardRefExoticComponent<IBodyProps & Omit<ITypographyProps, "variant" | "weight"> & React.RefAttributes<HTMLDivElement>>;
8
8
  //# sourceMappingURL=Body1.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Body1.d.ts","sourceRoot":"","sources":["../../../../../src/components/Typography/Variants/Body1.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAE1C,OAAO,EAAE,gBAAgB,EAAc,MAAM,eAAe,CAAC;AAE7D,MAAM,WAAW,UAAU;IACzB,mBAAmB;IACnB,MAAM,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,QAAQ,CAAC;CACxC;AAED,eAAO,MAAM,KAAK,kIAShB,CAAC"}
1
+ {"version":3,"file":"Body1.d.ts","sourceRoot":"","sources":["../../../../../src/components/Typography/Variants/Body1.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAE1C,OAAO,EAAE,gBAAgB,EAAc,MAAM,eAAe,CAAC;AAE7D,MAAM,WAAW,UAAU;IACzB,mBAAmB;IACnB,MAAM,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,CAAC;CACrD;AAED,eAAO,MAAM,KAAK,kIAShB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Body1.js","names":["React","forwardRef","Typography","Body1","_ref","ref","_ref$weight","weight","children","props","_objectWithoutPropertiesLoose","_excluded","createElement","_extends","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\" | \"bold\" | \"medium\";\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,OAAOA,KAAK,IAAIC,UAAU,QAAQ,OAAO;AAEzC,SAA2BC,UAAU,QAAQ,eAAe;AAO5D,OAAO,MAAMC,KAAK,gBAAGF,UAAU,CAG7B,CAAAG,IAAA,EAA6CC,GAAG,KAAK;EAAA,IAAAC,WAAA,GAAAF,IAAA,CAAlDG,MAAM;IAANA,MAAM,GAAAD,WAAA,cAAG,SAAS,GAAAA,WAAA;IAAEE,QAAQ,GAAAJ,IAAA,CAARI,QAAQ;IAAKC,KAAK,GAAAC,6BAAA,CAAAN,IAAA,EAAAO,SAAA;EACzC,oBACEX,KAAA,CAAAY,aAAA,CAACV,UAAU,EAAAW,QAAA;IAACC,OAAO,EAAC,QAAQ;IAACP,MAAM,EAAEA,MAAO;IAACF,GAAG,EAAEA;EAAI,GAAKI,KAAK,GAC7DD,QACS,CAAC;AAEjB,CAAC,CAAC;AAEFL,KAAK,CAACY,WAAW,GAAG,OAAO","ignoreList":[]}
1
+ {"version":3,"file":"Body1.js","names":["React","forwardRef","Typography","Body1","_ref","ref","_ref$weight","weight","children","props","_objectWithoutPropertiesLoose","_excluded","createElement","_extends","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,OAAOA,KAAK,IAAIC,UAAU,QAAQ,OAAO;AAEzC,SAA2BC,UAAU,QAAQ,eAAe;AAO5D,OAAO,MAAMC,KAAK,gBAAGF,UAAU,CAG7B,CAAAG,IAAA,EAA6CC,GAAG,KAAK;EAAA,IAAAC,WAAA,GAAAF,IAAA,CAAlDG,MAAM;IAANA,MAAM,GAAAD,WAAA,cAAG,SAAS,GAAAA,WAAA;IAAEE,QAAQ,GAAAJ,IAAA,CAARI,QAAQ;IAAKC,KAAK,GAAAC,6BAAA,CAAAN,IAAA,EAAAO,SAAA;EACzC,oBACEX,KAAA,CAAAY,aAAA,CAACV,UAAU,EAAAW,QAAA;IAACC,OAAO,EAAC,QAAQ;IAACP,MAAM,EAAEA,MAAO;IAACF,GAAG,EAAEA;EAAI,GAAKI,KAAK,GAC7DD,QACS,CAAC;AAEjB,CAAC,CAAC;AAEFL,KAAK,CAACY,WAAW,GAAG,OAAO","ignoreList":[]}