@activecollab/components 2.0.598 → 2.0.600

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 (61) 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/PillButton/PillButton.js.map +1 -1
  5. package/dist/cjs/components/PillButton/Styles.js +2 -1
  6. package/dist/cjs/components/PillButton/Styles.js.map +1 -1
  7. package/dist/cjs/components/PillGroup/PillGroup.js.map +1 -1
  8. package/dist/cjs/components/PillGroup/Styles.js +5 -2
  9. package/dist/cjs/components/PillGroup/Styles.js.map +1 -1
  10. package/dist/cjs/components/PropertyList/BulletStyles.js +1 -1
  11. package/dist/cjs/components/PropertyList/BulletStyles.js.map +1 -1
  12. package/dist/cjs/components/PropertyList/PropertyList.js +12 -1
  13. package/dist/cjs/components/PropertyList/PropertyList.js.map +1 -1
  14. package/dist/cjs/components/PropertyList/PropertyListPopover.js +22 -1
  15. package/dist/cjs/components/PropertyList/PropertyListPopover.js.map +1 -1
  16. package/dist/cjs/components/PropertyList/Styles.js +30 -27
  17. package/dist/cjs/components/PropertyList/Styles.js.map +1 -1
  18. package/dist/cjs/components/PropertyList/TimeStyles.js +1 -1
  19. package/dist/cjs/components/PropertyList/TimeStyles.js.map +1 -1
  20. package/dist/cjs/components/Typography/Variants/Body1.js.map +1 -1
  21. package/dist/esm/components/Chip/Chip.d.ts +1 -1
  22. package/dist/esm/components/Chip/Chip.d.ts.map +1 -1
  23. package/dist/esm/components/Chip/Chip.js.map +1 -1
  24. package/dist/esm/components/Chip/Styles.d.ts.map +1 -1
  25. package/dist/esm/components/Chip/Styles.js +2 -2
  26. package/dist/esm/components/Chip/Styles.js.map +1 -1
  27. package/dist/esm/components/PillButton/PillButton.d.ts +2 -2
  28. package/dist/esm/components/PillButton/PillButton.d.ts.map +1 -1
  29. package/dist/esm/components/PillButton/PillButton.js.map +1 -1
  30. package/dist/esm/components/PillButton/Styles.d.ts.map +1 -1
  31. package/dist/esm/components/PillButton/Styles.js +2 -1
  32. package/dist/esm/components/PillButton/Styles.js.map +1 -1
  33. package/dist/esm/components/PillGroup/PillGroup.d.ts +2 -2
  34. package/dist/esm/components/PillGroup/PillGroup.d.ts.map +1 -1
  35. package/dist/esm/components/PillGroup/PillGroup.js.map +1 -1
  36. package/dist/esm/components/PillGroup/Styles.d.ts.map +1 -1
  37. package/dist/esm/components/PillGroup/Styles.js +2 -1
  38. package/dist/esm/components/PillGroup/Styles.js.map +1 -1
  39. package/dist/esm/components/PropertyList/BulletStyles.js +1 -1
  40. package/dist/esm/components/PropertyList/BulletStyles.js.map +1 -1
  41. package/dist/esm/components/PropertyList/PropertyList.d.ts.map +1 -1
  42. package/dist/esm/components/PropertyList/PropertyList.js +12 -1
  43. package/dist/esm/components/PropertyList/PropertyList.js.map +1 -1
  44. package/dist/esm/components/PropertyList/PropertyListPopover.d.ts +3 -1
  45. package/dist/esm/components/PropertyList/PropertyListPopover.d.ts.map +1 -1
  46. package/dist/esm/components/PropertyList/PropertyListPopover.js +20 -0
  47. package/dist/esm/components/PropertyList/PropertyListPopover.js.map +1 -1
  48. package/dist/esm/components/PropertyList/Styles.d.ts +1 -0
  49. package/dist/esm/components/PropertyList/Styles.d.ts.map +1 -1
  50. package/dist/esm/components/PropertyList/Styles.js +30 -27
  51. package/dist/esm/components/PropertyList/Styles.js.map +1 -1
  52. package/dist/esm/components/PropertyList/TimeStyles.js +1 -1
  53. package/dist/esm/components/PropertyList/TimeStyles.js.map +1 -1
  54. package/dist/esm/components/Typography/Variants/Body1.d.ts +1 -1
  55. package/dist/esm/components/Typography/Variants/Body1.d.ts.map +1 -1
  56. package/dist/esm/components/Typography/Variants/Body1.js.map +1 -1
  57. package/dist/index.js +75 -35
  58. package/dist/index.js.map +1 -1
  59. package/dist/index.min.js +1 -1
  60. package/dist/index.min.js.map +1 -1
  61. package/package.json +1 -1
@@ -13,7 +13,7 @@ export const StyledPropertyListBulletsHeader = styled.div.withConfig({
13
13
  export const StyledPropertyListBulletsLabel = styled(Caption2).withConfig({
14
14
  displayName: "BulletStyles__StyledPropertyListBulletsLabel",
15
15
  componentId: "sc-a8k1dr-2"
16
- })(["&&{grid-column-start:1;grid-row-start:1;width:0;min-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-transform:uppercase;letter-spacing:0.09em;color:var(--color-theme-600);}"]);
16
+ })(["&&{grid-column-start:1;grid-row-start:1;width:0;min-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-transform:uppercase;letter-spacing:0.05em;color:var(--color-theme-600);}"]);
17
17
  export const StyledPropertyListBulletsNameGhosts = styled.span.withConfig({
18
18
  displayName: "BulletStyles__StyledPropertyListBulletsNameGhosts",
19
19
  componentId: "sc-a8k1dr-3"
@@ -1 +1 @@
1
- {"version":3,"file":"BulletStyles.js","names":["styled","css","Card","Body2","Caption1","Caption2","StyledPropertyListBullets","withConfig","displayName","componentId","grid","StyledPropertyListBulletsHeader","div","StyledPropertyListBulletsLabel","StyledPropertyListBulletsNameGhosts","span","StyledPropertyListBulletsAvatarRoom","StyledPropertyListBulletsAxis","StyledPropertyListBulletsTick","StyledPropertyListBulletsRows","StyledPropertyListBullet","_ref","$clickable","StyledPropertyListBulletPerson","StyledPropertyListBulletAvatar","StyledPropertyListBulletNames","StyledPropertyListBulletName","_ref2","$ghost","StyledPropertyListBulletJob","StyledPropertyListBulletBar","StyledPropertyListBulletGridLine","bar","StyledPropertyListBulletEstimate","_ref3","$strong","StyledPropertyListBulletTracked","_ref4","$onEstimate","StyledPropertyListBulletOver","StyledPropertyListBulletTick","StyledPropertyListBulletValues","StyledPropertyListBulletValueRow","_ref5","StyledPropertyListBulletValue","_ref6","$tone","StyledPropertyListBulletNote","StyledPropertyListBulletCaretRoom","plain","job","cols","BULLETS_CONTAINER_CSS"],"sources":["../../../../src/components/PropertyList/BulletStyles.ts"],"sourcesContent":["import styled, { css } from \"styled-components\";\n\nimport { Card } from \"../Card\";\nimport { Body2, Caption1, Caption2 } from \"../Typography\";\n\nexport const StyledPropertyListBullets = styled(Card)`\n container-type: inline-size;\n display: flex;\n flex-direction: column;\n min-width: 0;\n padding: 4px 16px;\n`;\n\nconst grid = css`\n box-sizing: border-box;\n display: grid;\n column-gap: 16px;\n`;\n\nexport const StyledPropertyListBulletsHeader = styled.div`\n ${grid}\n align-items: end;\n padding: 4px 8px 8px;\n`;\n\nexport const StyledPropertyListBulletsLabel = styled(Caption2)`\n && {\n grid-column-start: 1;\n grid-row-start: 1;\n width: 0;\n min-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n text-transform: uppercase;\n letter-spacing: 0.09em;\n color: var(--color-theme-600);\n }\n`;\n\nexport const StyledPropertyListBulletsNameGhosts = styled.span`\n grid-column-start: 1;\n grid-row-start: 1;\n display: flex;\n gap: 8px;\n min-width: 0;\n height: 0;\n overflow: hidden;\n visibility: hidden;\n`;\n\nexport const StyledPropertyListBulletsAvatarRoom = styled.span`\n flex-shrink: 0;\n width: 24px;\n`;\n\nexport const StyledPropertyListBulletsAxis = styled.span`\n position: relative;\n height: 16px;\n`;\n\nexport const StyledPropertyListBulletsTick = styled(Caption1)`\n && {\n position: absolute;\n transform: translateX(-50%);\n font-size: calc(11px * var(--text-scale, 1));\n line-height: 16px;\n color: var(--color-theme-600);\n }\n`;\n\nexport const StyledPropertyListBulletsRows = styled.div`\n display: flex;\n flex-direction: column;\n min-width: 0;\n`;\n\nexport const StyledPropertyListBullet = styled.div<{ $clickable: boolean }>`\n ${grid}\n align-items: center;\n width: 100%;\n min-height: 36px;\n margin: 0;\n padding: 0 8px;\n border: 0;\n background-color: transparent;\n color: inherit;\n text-align: left;\n\n ${({ $clickable }) =>\n $clickable &&\n css`\n /* The frontend row is a button that keeps the 1px block padding of the browser. */\n padding-block: 1px;\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 StyledPropertyListBulletPerson = styled.span`\n display: flex;\n align-items: center;\n gap: 8px;\n min-width: 0;\n`;\n\nexport const StyledPropertyListBulletAvatar = styled.span`\n display: flex;\n flex-shrink: 0;\n`;\n\nexport const StyledPropertyListBulletNames = styled.span`\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n min-width: 0;\n`;\n\nexport const StyledPropertyListBulletName = styled(Body2)<{ $ghost: boolean }>`\n && {\n grid-area: 1 / 1;\n white-space: nowrap;\n\n ${({ $ghost }) =>\n $ghost\n ? css`\n height: 0;\n overflow: hidden;\n visibility: hidden;\n `\n : css`\n overflow: hidden;\n text-overflow: ellipsis;\n color: var(--color-theme-900);\n `}\n }\n`;\n\nexport const StyledPropertyListBulletJob = styled(Body2)`\n && {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n color: var(--color-theme-600);\n }\n`;\n\nexport const StyledPropertyListBulletBar = styled.span`\n position: relative;\n align-self: stretch;\n`;\n\nexport const StyledPropertyListBulletGridLine = styled.span`\n position: absolute;\n top: 0;\n bottom: 0;\n width: 1px;\n background-color: var(--border-primary);\n`;\n\nconst bar = css`\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n`;\n\nexport const StyledPropertyListBulletEstimate = styled.span<{\n $strong: boolean;\n}>`\n ${bar}\n left: 0;\n height: 16px;\n border-radius: 3px;\n\n ${({ $strong }) =>\n $strong\n ? \"background-color: var(--color-theme-600);\"\n : css`\n background-color: var(--color-theme-200);\n\n .c-property-list-bullets__row:hover &,\n .c-property-list-bullets__row:focus-visible & {\n background-color: var(--color-theme-300);\n }\n `}\n`;\n\nexport const StyledPropertyListBulletTracked = styled.span<{\n $onEstimate: boolean;\n}>`\n ${bar}\n left: 0;\n height: 8px;\n border-radius: 2px;\n background-color: ${({ $onEstimate }) =>\n $onEstimate ? \"var(--color-primary)\" : \"var(--color-theme-600)\"};\n`;\n\nexport const StyledPropertyListBulletOver = styled.span`\n ${bar}\n height: 8px;\n border-top-right-radius: 2px;\n border-bottom-right-radius: 2px;\n background-color: var(--red-alert);\n`;\n\nexport const StyledPropertyListBulletTick = styled.span`\n ${bar}\n width: 2px;\n height: 24px;\n margin-left: -1px;\n background-color: var(--color-theme-900);\n`;\n\nexport const StyledPropertyListBulletValues = styled.span`\n display: grid;\n min-width: 0;\n`;\n\nexport const StyledPropertyListBulletValueRow = styled.span<{\n $ghost: boolean;\n}>`\n grid-area: 1 / 1;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n gap: 6px;\n\n ${({ $ghost }) =>\n $ghost &&\n css`\n height: 0;\n overflow: hidden;\n visibility: hidden;\n `}\n`;\n\nexport const StyledPropertyListBulletValue = styled(Body2)<{\n $tone: \"regular\" | \"muted\" | \"alert\";\n}>`\n && {\n white-space: nowrap;\n color: ${({ $tone }) =>\n $tone === \"alert\"\n ? \"var(--red-alert)\"\n : $tone === \"muted\"\n ? \"var(--color-theme-600)\"\n : \"var(--color-theme-800)\"};\n }\n`;\n\nexport const StyledPropertyListBulletNote = styled(Caption1)`\n && {\n white-space: nowrap;\n color: var(--color-theme-600);\n }\n`;\n\nexport const StyledPropertyListBulletCaretRoom = styled.span`\n flex-shrink: 0;\n width: 16px;\n`;\n\nconst plain = \".c-property-list-bullets:not(.c-property-list-bullets--job)\";\nconst job = \".c-property-list-bullets.c-property-list-bullets--job\";\nconst cols = \"c-property-list-bullets__grid\";\n\n// The job type gives way first and leaves below 560px. Below 680px the value column takes only the width of the values.\nexport const BULLETS_CONTAINER_CSS = `\n@container (max-width: 679.98px) {\n ${plain} .${cols} { grid-template-columns: fit-content(120px) minmax(160px, 1fr) fit-content(140px); }\n .c-property-list-bullets .c-property-list-bullets__full { display: none; }\n}\n@container (min-width: 680px) {\n ${plain} .${cols} { grid-template-columns: fit-content(180px) minmax(220px, 1fr) 140px; }\n .c-property-list-bullets .c-property-list-bullets__short { display: none; }\n}\n@container (max-width: 559.98px) {\n ${job} .${cols} { grid-template-columns: fit-content(120px) minmax(160px, 1fr) fit-content(140px); }\n .c-property-list-bullets .c-property-list-bullets__job { display: none; }\n}\n@container (min-width: 560px) and (max-width: 679.98px) {\n ${job} .${cols} { grid-template-columns: fit-content(120px) minmax(0, 160px) minmax(220px, 1fr) fit-content(140px); }\n}\n@container (min-width: 560px) {\n ${job} .c-property-list-bullets__label.c-property-list-bullets__label { grid-column-end: 3; }\n}\n@container (min-width: 680px) {\n ${job} .${cols} { grid-template-columns: fit-content(180px) minmax(0, 160px) minmax(220px, 1fr) 140px; }\n}\n`;\n"],"mappings":"AAAA,OAAOA,MAAM,IAAIC,GAAG,QAAQ,mBAAmB;AAE/C,SAASC,IAAI,QAAQ,SAAS;AAC9B,SAASC,KAAK,EAAEC,QAAQ,EAAEC,QAAQ,QAAQ,eAAe;AAEzD,OAAO,MAAMC,yBAAyB,GAAGN,MAAM,CAACE,IAAI,CAAC,CAAAK,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,mGAMpD;AAED,MAAMC,IAAI,GAAGT,GAAG,yDAIf;AAED,OAAO,MAAMU,+BAA+B,GAAGX,MAAM,CAACY,GAAG,CAAAL,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,kDACrDC,IAAI,CAGP;AAED,OAAO,MAAMG,8BAA8B,GAAGb,MAAM,CAACK,QAAQ,CAAC,CAAAE,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,8MAa7D;AAED,OAAO,MAAMK,mCAAmC,GAAGd,MAAM,CAACe,IAAI,CAAAR,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,yHAS7D;AAED,OAAO,MAAMO,mCAAmC,GAAGhB,MAAM,CAACe,IAAI,CAAAR,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,iCAG7D;AAED,OAAO,MAAMQ,6BAA6B,GAAGjB,MAAM,CAACe,IAAI,CAAAR,UAA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AM2C,6BAA6B,GAAG5C,MAAM,CAACG,KAAK,CAAC,CAAAI,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,2CAK7CoC,KAAA;EAAA,IAAGC,KAAK,GAAAD,KAAA,CAALC,KAAK;EAAA,OACfA,KAAK,KAAK,OAAO,GACb,kBAAkB,GAClBA,KAAK,KAAK,OAAO,GACjB,wBAAwB,GACxB,wBAAwB;AAAA,EAEjC;AAED,OAAO,MAAMC,4BAA4B,GAAG/C,MAAM,CAACI,QAAQ,CAAC,CAAAG,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,4DAK3D;AAED,OAAO,MAAMuC,iCAAiC,GAAGhD,MAAM,CAACe,IAAI,CAAAR,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,iCAG3D;AAED,MAAMwC,KAAK,GAAG,6DAA6D;AAC3E,MAAMC,GAAG,GAAG,uDAAuD;AACnE,MAAMC,IAAI,GAAG,+BAA+B;;AAE5C;AACA,OAAO,MAAMC,qBAAqB,gDAE9BH,KAAK,UAAKE,IAAI,mNAIdF,KAAK,UAAKE,IAAI,0MAIdD,GAAG,UAAKC,IAAI,4OAIZD,GAAG,UAAKC,IAAI,sJAGZD,GAAG,uIAGHA,GAAG,UAAKC,IAAI,mGAEf","ignoreList":[]}
1
+ {"version":3,"file":"BulletStyles.js","names":["styled","css","Card","Body2","Caption1","Caption2","StyledPropertyListBullets","withConfig","displayName","componentId","grid","StyledPropertyListBulletsHeader","div","StyledPropertyListBulletsLabel","StyledPropertyListBulletsNameGhosts","span","StyledPropertyListBulletsAvatarRoom","StyledPropertyListBulletsAxis","StyledPropertyListBulletsTick","StyledPropertyListBulletsRows","StyledPropertyListBullet","_ref","$clickable","StyledPropertyListBulletPerson","StyledPropertyListBulletAvatar","StyledPropertyListBulletNames","StyledPropertyListBulletName","_ref2","$ghost","StyledPropertyListBulletJob","StyledPropertyListBulletBar","StyledPropertyListBulletGridLine","bar","StyledPropertyListBulletEstimate","_ref3","$strong","StyledPropertyListBulletTracked","_ref4","$onEstimate","StyledPropertyListBulletOver","StyledPropertyListBulletTick","StyledPropertyListBulletValues","StyledPropertyListBulletValueRow","_ref5","StyledPropertyListBulletValue","_ref6","$tone","StyledPropertyListBulletNote","StyledPropertyListBulletCaretRoom","plain","job","cols","BULLETS_CONTAINER_CSS"],"sources":["../../../../src/components/PropertyList/BulletStyles.ts"],"sourcesContent":["import styled, { css } from \"styled-components\";\n\nimport { Card } from \"../Card\";\nimport { Body2, Caption1, Caption2 } from \"../Typography\";\n\nexport const StyledPropertyListBullets = styled(Card)`\n container-type: inline-size;\n display: flex;\n flex-direction: column;\n min-width: 0;\n padding: 4px 16px;\n`;\n\nconst grid = css`\n box-sizing: border-box;\n display: grid;\n column-gap: 16px;\n`;\n\nexport const StyledPropertyListBulletsHeader = styled.div`\n ${grid}\n align-items: end;\n padding: 4px 8px 8px;\n`;\n\nexport const StyledPropertyListBulletsLabel = styled(Caption2)`\n && {\n grid-column-start: 1;\n grid-row-start: 1;\n width: 0;\n min-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n text-transform: uppercase;\n letter-spacing: 0.05em;\n color: var(--color-theme-600);\n }\n`;\n\nexport const StyledPropertyListBulletsNameGhosts = styled.span`\n grid-column-start: 1;\n grid-row-start: 1;\n display: flex;\n gap: 8px;\n min-width: 0;\n height: 0;\n overflow: hidden;\n visibility: hidden;\n`;\n\nexport const StyledPropertyListBulletsAvatarRoom = styled.span`\n flex-shrink: 0;\n width: 24px;\n`;\n\nexport const StyledPropertyListBulletsAxis = styled.span`\n position: relative;\n height: 16px;\n`;\n\nexport const StyledPropertyListBulletsTick = styled(Caption1)`\n && {\n position: absolute;\n transform: translateX(-50%);\n font-size: calc(11px * var(--text-scale, 1));\n line-height: 16px;\n color: var(--color-theme-600);\n }\n`;\n\nexport const StyledPropertyListBulletsRows = styled.div`\n display: flex;\n flex-direction: column;\n min-width: 0;\n`;\n\nexport const StyledPropertyListBullet = styled.div<{ $clickable: boolean }>`\n ${grid}\n align-items: center;\n width: 100%;\n min-height: 36px;\n margin: 0;\n padding: 0 8px;\n border: 0;\n background-color: transparent;\n color: inherit;\n text-align: left;\n\n ${({ $clickable }) =>\n $clickable &&\n css`\n /* The frontend row is a button that keeps the 1px block padding of the browser. */\n padding-block: 1px;\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 StyledPropertyListBulletPerson = styled.span`\n display: flex;\n align-items: center;\n gap: 8px;\n min-width: 0;\n`;\n\nexport const StyledPropertyListBulletAvatar = styled.span`\n display: flex;\n flex-shrink: 0;\n`;\n\nexport const StyledPropertyListBulletNames = styled.span`\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n min-width: 0;\n`;\n\nexport const StyledPropertyListBulletName = styled(Body2)<{ $ghost: boolean }>`\n && {\n grid-area: 1 / 1;\n white-space: nowrap;\n\n ${({ $ghost }) =>\n $ghost\n ? css`\n height: 0;\n overflow: hidden;\n visibility: hidden;\n `\n : css`\n overflow: hidden;\n text-overflow: ellipsis;\n color: var(--color-theme-900);\n `}\n }\n`;\n\nexport const StyledPropertyListBulletJob = styled(Body2)`\n && {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n color: var(--color-theme-600);\n }\n`;\n\nexport const StyledPropertyListBulletBar = styled.span`\n position: relative;\n align-self: stretch;\n`;\n\nexport const StyledPropertyListBulletGridLine = styled.span`\n position: absolute;\n top: 0;\n bottom: 0;\n width: 1px;\n background-color: var(--border-primary);\n`;\n\nconst bar = css`\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n`;\n\nexport const StyledPropertyListBulletEstimate = styled.span<{\n $strong: boolean;\n}>`\n ${bar}\n left: 0;\n height: 16px;\n border-radius: 3px;\n\n ${({ $strong }) =>\n $strong\n ? \"background-color: var(--color-theme-600);\"\n : css`\n background-color: var(--color-theme-200);\n\n .c-property-list-bullets__row:hover &,\n .c-property-list-bullets__row:focus-visible & {\n background-color: var(--color-theme-300);\n }\n `}\n`;\n\nexport const StyledPropertyListBulletTracked = styled.span<{\n $onEstimate: boolean;\n}>`\n ${bar}\n left: 0;\n height: 8px;\n border-radius: 2px;\n background-color: ${({ $onEstimate }) =>\n $onEstimate ? \"var(--color-primary)\" : \"var(--color-theme-600)\"};\n`;\n\nexport const StyledPropertyListBulletOver = styled.span`\n ${bar}\n height: 8px;\n border-top-right-radius: 2px;\n border-bottom-right-radius: 2px;\n background-color: var(--red-alert);\n`;\n\nexport const StyledPropertyListBulletTick = styled.span`\n ${bar}\n width: 2px;\n height: 24px;\n margin-left: -1px;\n background-color: var(--color-theme-900);\n`;\n\nexport const StyledPropertyListBulletValues = styled.span`\n display: grid;\n min-width: 0;\n`;\n\nexport const StyledPropertyListBulletValueRow = styled.span<{\n $ghost: boolean;\n}>`\n grid-area: 1 / 1;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n gap: 6px;\n\n ${({ $ghost }) =>\n $ghost &&\n css`\n height: 0;\n overflow: hidden;\n visibility: hidden;\n `}\n`;\n\nexport const StyledPropertyListBulletValue = styled(Body2)<{\n $tone: \"regular\" | \"muted\" | \"alert\";\n}>`\n && {\n white-space: nowrap;\n color: ${({ $tone }) =>\n $tone === \"alert\"\n ? \"var(--red-alert)\"\n : $tone === \"muted\"\n ? \"var(--color-theme-600)\"\n : \"var(--color-theme-800)\"};\n }\n`;\n\nexport const StyledPropertyListBulletNote = styled(Caption1)`\n && {\n white-space: nowrap;\n color: var(--color-theme-600);\n }\n`;\n\nexport const StyledPropertyListBulletCaretRoom = styled.span`\n flex-shrink: 0;\n width: 16px;\n`;\n\nconst plain = \".c-property-list-bullets:not(.c-property-list-bullets--job)\";\nconst job = \".c-property-list-bullets.c-property-list-bullets--job\";\nconst cols = \"c-property-list-bullets__grid\";\n\n// The job type gives way first and leaves below 560px. Below 680px the value column takes only the width of the values.\nexport const BULLETS_CONTAINER_CSS = `\n@container (max-width: 679.98px) {\n ${plain} .${cols} { grid-template-columns: fit-content(120px) minmax(160px, 1fr) fit-content(140px); }\n .c-property-list-bullets .c-property-list-bullets__full { display: none; }\n}\n@container (min-width: 680px) {\n ${plain} .${cols} { grid-template-columns: fit-content(180px) minmax(220px, 1fr) 140px; }\n .c-property-list-bullets .c-property-list-bullets__short { display: none; }\n}\n@container (max-width: 559.98px) {\n ${job} .${cols} { grid-template-columns: fit-content(120px) minmax(160px, 1fr) fit-content(140px); }\n .c-property-list-bullets .c-property-list-bullets__job { display: none; }\n}\n@container (min-width: 560px) and (max-width: 679.98px) {\n ${job} .${cols} { grid-template-columns: fit-content(120px) minmax(0, 160px) minmax(220px, 1fr) fit-content(140px); }\n}\n@container (min-width: 560px) {\n ${job} .c-property-list-bullets__label.c-property-list-bullets__label { grid-column-end: 3; }\n}\n@container (min-width: 680px) {\n ${job} .${cols} { grid-template-columns: fit-content(180px) minmax(0, 160px) minmax(220px, 1fr) 140px; }\n}\n`;\n"],"mappings":"AAAA,OAAOA,MAAM,IAAIC,GAAG,QAAQ,mBAAmB;AAE/C,SAASC,IAAI,QAAQ,SAAS;AAC9B,SAASC,KAAK,EAAEC,QAAQ,EAAEC,QAAQ,QAAQ,eAAe;AAEzD,OAAO,MAAMC,yBAAyB,GAAGN,MAAM,CAACE,IAAI,CAAC,CAAAK,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,mGAMpD;AAED,MAAMC,IAAI,GAAGT,GAAG,yDAIf;AAED,OAAO,MAAMU,+BAA+B,GAAGX,MAAM,CAACY,GAAG,CAAAL,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,kDACrDC,IAAI,CAGP;AAED,OAAO,MAAMG,8BAA8B,GAAGb,MAAM,CAACK,QAAQ,CAAC,CAAAE,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,8MAa7D;AAED,OAAO,MAAMK,mCAAmC,GAAGd,MAAM,CAACe,IAAI,CA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AAED,OAAO,MAAMiC,gCAAgC,GAAG1C,MAAM,CAACe,IAAI,CAAAR,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,8FASvDkC,KAAA;EAAA,IAAGf,MAAM,GAAAe,KAAA,CAANf,MAAM;EAAA,OACTA,MAAM,IACN3B,GAAG,iDAIF;AAAA,EACJ;AAED,OAAO,MAAM2C,6BAA6B,GAAG5C,MAAM,CAACG,KAAK,CAAC,CAAAI,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,2CAK7CoC,KAAA;EAAA,IAAGC,KAAK,GAAAD,KAAA,CAALC,KAAK;EAAA,OACfA,KAAK,KAAK,OAAO,GACb,kBAAkB,GAClBA,KAAK,KAAK,OAAO,GACjB,wBAAwB,GACxB,wBAAwB;AAAA,EAEjC;AAED,OAAO,MAAMC,4BAA4B,GAAG/C,MAAM,CAACI,QAAQ,CAAC,CAAAG,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,4DAK3D;AAED,OAAO,MAAMuC,iCAAiC,GAAGhD,MAAM,CAACe,IAAI,CAAAR,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,iCAG3D;AAED,MAAMwC,KAAK,GAAG,6DAA6D;AAC3E,MAAMC,GAAG,GAAG,uDAAuD;AACnE,MAAMC,IAAI,GAAG,+BAA+B;;AAE5C;AACA,OAAO,MAAMC,qBAAqB,gDAE9BH,KAAK,UAAKE,IAAI,mNAIdF,KAAK,UAAKE,IAAI,0MAIdD,GAAG,UAAKC,IAAI,4OAIZD,GAAG,UAAKC,IAAI,sJAGZD,GAAG,uIAGHA,GAAG,UAAKC,IAAI,mGAEf","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"PropertyList.d.ts","sourceRoot":"","sources":["../../../../src/components/PropertyList/PropertyList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EACZ,oBAAoB,EAGpB,cAAc,EAEd,SAAS,EAMV,MAAM,OAAO,CAAC;AAIf,OAAO,EAEL,iB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;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,6EAA6E;IAC7E,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,kJAAkJ;IAClJ,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,oFAAoF;IACpF,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,kEAAkE;IAClE,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,iDAAiD;IACjD,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,sEAAsE;IACtE,UAAU,CAAC,EAAE,eAAe,CAAC;IAC7B,+DAA+D;IAC/D,UAAU,CAAC,EAAE,eAAe,CAAC;IAC7B,2GAA2G;IAC3G,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,eAAO,MAAM,eAAe,2FA2I3B,CAAC;AAIF,MAAM,WAAW,wBACf,SAAQ,oBAAoB,CAAC,iBAAiB,CAAC;IAC/C,wDAAwD;IACxD,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,0EAA0E;AAC1E,eAAO,MAAM,kBAAkB,oGAkB7B,CAAC;AAIH,MAAM,WAAW,wBACf,SAAQ,cAAc,CAAC,eAAe,CAAC;IACvC,iEAAiE;IACjE,QAAQ,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAC;CAC9B;AAED,kGAAkG;AAClG,eAAO,MAAM,kBAAkB,GAAI,uBAGhC,wBAAwB,sBAO1B,CAAC"}
@@ -176,6 +176,17 @@ export const PropertyListLabel = _ref7 => {
176
176
  label = _ref7.label;
177
177
  const density = usePropertyListDensity();
178
178
  const layout = usePropertyListLayout();
179
+ if (layout === "ticket") {
180
+ return /*#__PURE__*/React.createElement(React.Fragment, null, icon ? /*#__PURE__*/React.createElement(StyledPropertyListIcon, {
181
+ $size: 20,
182
+ $scale: true,
183
+ $muted: true
184
+ }, icon) : null, /*#__PURE__*/React.createElement(StyledPropertyListTicketLabel, {
185
+ forwardedAs: "span",
186
+ $tone: "regular",
187
+ className: "c-property-list__label"
188
+ }, label));
189
+ }
179
190
  if (layout === "table") {
180
191
  return /*#__PURE__*/React.createElement(StyledPropertyListTableLabel, {
181
192
  className: "c-property-list__label"
@@ -251,7 +262,7 @@ export const PropertyListRow = /*#__PURE__*/forwardRef((_ref8, ref) => {
251
262
  $parts: parts
252
263
  }, /*#__PURE__*/React.createElement(StyledPropertyListTicketText, {
253
264
  forwardedAs: "span",
254
- weight: "medium",
265
+ weight: "semibold",
255
266
  $parts: parts,
256
267
  $wrap: wrap,
257
268
  $tone: tone
@@ -1 +1 @@
1
- {"version":3,"file":"PropertyList.js","names":["React","Children","Fragment","createContext","forwardRef","isValidElement","useContext","classnames","CONTAINER_CSS","StyledPropertyList","StyledPropertyListAddIcon","StyledPropertyListBranch","StyledPropertyListBranchLine","StyledPropertyListCell","StyledPropertyListCellAside","StyledPropertyListCellMain","StyledPropertyListCells","StyledPropertyListCellSplit","StyledPropertyListChevron","StyledPropertyListDivider","StyledPropertyListIcon","StyledPropertyListLabelText","StyledPropertyListRow","StyledPropertyListTableAction","StyledPropertyListTableLabel","StyledPropertyListTableValue","StyledPropertyListFooter","StyledPropertyListFooterTear","StyledPropertyListTear","StyledPropertyListTicketAddIcon","StyledPropertyListTicketCaret","StyledPropertyListTicketLabel","StyledPropertyListTicketLine","StyledPropertyListTicketText","StyledPropertyListTicketValue","StyledPropertyListToggle","StyledPropertyListValue","useContainerCss","AddCrossTinyIcon","ArrowDownSmallIcon","TicketPerforation","DensityContext","LayoutContext","DisabledContext","usePropertyListDensity","usePropertyListLayout","usePropertyListDisabled","PropertyListLayout","_ref","_ref$value","value","children","createElement","Provider","PropertyListDivider","$layout","$density","className","PropertyListCell","_ref2","displayName","keyOf","part","index","_key","key","renderCell","type","_ref3","props","aside","asideProps","cellProps","_objectWithoutPropertiesLoose","_excluded","hasAside","undefined","_extends","PropertyList","_ref4","ref","_ref4$density","density","_ref4$disabled","disabled","layout","_ref4$cells","cells","header","footer","cellsProps","footerProps","tearProps","perforationProps","_ref4$solid","solid","_ref4$roomy","roomy","_ref4$notches","notches","rest","_excluded2","contextLayout","current","isTicket","parts","toArray","filter","Boolean","ticket","line","$cells","map","length","variant","radius","shadow","$disabled","$ticket","$solid","$roomy","PropertyListValue","_ref5","_ref5$placeholder","placeholder","$placeholder","forwardedAs","color","PropertyListAdd","_ref6","PropertyListLabel","_ref7","icon","label","$size","$scale","weight","PropertyListRow","_ref8","action","_ref8$tone","tone","_ref8$readOnly","readOnly","_ref8$chevron","chevron","_ref8$disabled","_ref8$parts","_ref8$wrap","wrap","labelProps","caretProps","_excluded3","isDisabled","cell","as","$tone","$clickable","$parts","$wrap","caret","PropertyListToggle","_ref9","_ref9$expanded","expanded","_excluded4","PropertyListBranch","_ref0","_ref0$position","position","_excluded5"],"sources":["../../../../src/components/PropertyList/PropertyList.tsx"],"sourcesContent":["import React, {\n ButtonHTMLAttributes,\n Children,\n Fragment,\n HTMLAttributes,\n ReactElement,\n ReactNode,\n Ref,\n createContext,\n forwardRef,\n isValidElement,\n useContext,\n} from \"react\";\n\nimport classnames from \"classnames\";\n\nimport {\n CONTAINER_CSS,\n PropertyListCells,\n PropertyListDensity,\n PropertyListLayoutName,\n PropertyListTone,\n StyledPropertyList,\n StyledPropertyListAddIcon,\n StyledPropertyListBranch,\n StyledPropertyListBranchLine,\n StyledPropertyListCell,\n StyledPropertyListCellAside,\n StyledPropertyListCellMain,\n StyledPropertyListCells,\n StyledPropertyListCellSplit,\n StyledPropertyListChevron,\n StyledPropertyListDivider,\n StyledPropertyListIcon,\n StyledPropertyListLabelText,\n StyledPropertyListRow,\n StyledPropertyListTableAction,\n StyledPropertyListTableLabel,\n StyledPropertyListTableValue,\n StyledPropertyListFooter,\n StyledPropertyListFooterTear,\n StyledPropertyListTear,\n StyledPropertyListTicketAddIcon,\n StyledPropertyListTicketCaret,\n StyledPropertyListTicketLabel,\n StyledPropertyListTicketLine,\n StyledPropertyListTicketText,\n StyledPropertyListTicketValue,\n StyledPropertyListToggle,\n StyledPropertyListValue,\n} from \"./Styles\";\nimport { useContainerCss } from \"../../utils/useContainerCss\";\nimport { AddCrossTinyIcon, ArrowDownSmallIcon } from \"../Icons\";\nimport { TicketPerforation } from \"../TicketPerforation\";\n\nconst DensityContext = createContext<PropertyListDensity>(\"form\");\nconst LayoutContext = createContext<PropertyListLayoutName>(\"stacked\");\nconst DisabledContext = createContext(false);\n\nexport const usePropertyListDensity = () => useContext(DensityContext);\nexport const usePropertyListLayout = () => useContext(LayoutContext);\nexport const usePropertyListDisabled = () => useContext(DisabledContext);\n\n/** Sets the layout of the rows below it: one line each, the three columns of a table, or the cells of a ticket. */\nexport const PropertyListLayout = ({\n value = \"stacked\",\n children,\n}: {\n value?: PropertyListLayoutName;\n children?: ReactNode;\n}) => <LayoutContext.Provider value={value}>{children}</LayoutContext.Provider>;\n\n/** The line between two rows. In a stacked list it starts where the label text starts. */\nexport const PropertyListDivider = () => (\n <StyledPropertyListDivider\n aria-hidden=\"true\"\n $layout={usePropertyListLayout()}\n $density={usePropertyListDensity()}\n className=\"c-property-list__divider\"\n />\n);\n\nexport interface IPropertyListProps extends HTMLAttributes<HTMLDivElement> {\n /** \"form\" for a compact list in a form, \"page\" for a list on a page, with a shadow. */\n density?: PropertyListDensity;\n /** Every row of the list is dimmed and takes no click and no focus. */\n disabled?: boolean;\n /** The layout of the rows. Without it the list takes the layout of the PropertyListLayout around it. \"ticket\" makes each row a cell: a small label over its value. */\n layout?: PropertyListLayoutName;\n /** Ticket only: \"grid\" puts the cells in two, three or four columns by the card width, \"row\" in one row that wraps. */\n cells?: PropertyListCells;\n /** Ticket only: a part over the cells, with a tear line under it. */\n header?: ReactNode;\n /** Ticket only: rows of the page density under the cells, after a tear line, to the edges of the card. */\n footer?: ReactNode;\n /** Ticket only: attributes of the box of the cells, such as a test id. */\n cellsProps?: TicketPartProps;\n /** Ticket only: attributes of the box of the footer, such as a test id. */\n footerProps?: TicketPartProps;\n /** Ticket grid only: attributes of each tear line between the cells. */\n tearProps?: TicketPartProps;\n /** Ticket only: attributes of every perforation of the ticket. */\n perforationProps?: TicketPartProps;\n /** In a flat ObjectLayout the card keeps the raised color of the theme. */\n solid?: boolean;\n /** Each row is 8px taller. */\n roomy?: boolean;\n /** Ticket only: false leaves the tear lines with no notches. */\n notches?: boolean;\n}\n\ntype TicketDataProps = {\n className?: string;\n \"data-testid\"?: string;\n [attribute: `data-${string}`]: string | boolean | undefined;\n};\n\ntype TicketPartProps = HTMLAttributes<HTMLDivElement> & TicketDataProps;\n\nexport interface IPropertyListCellProps extends TicketPartProps {\n /** An icon button at the right edge of the cell, after a line. */\n aside?: ReactNode;\n /** Attributes of the box of the aside, such as a test id. */\n asideProps?: TicketPartProps;\n children?: ReactNode;\n}\n\n/** A cell of a ticket grid with its own attributes and an aside. Put it as a direct child of a ticket PropertyList. */\nexport const PropertyListCell = ({ children }: IPropertyListCellProps) => (\n <>{children}</>\n);\n\nPropertyListCell.displayName = \"PropertyListCell\";\n\nconst keyOf = (part: ReactNode, index: number) =>\n (part as ReactElement).key ?? index;\n\nconst renderCell = (part: ReactNode) => {\n if (!isValidElement(part) || part.type !== PropertyListCell) {\n return (\n <StyledPropertyListCell className=\"c-property-list__cell\">\n {part}\n </StyledPropertyListCell>\n );\n }\n\n const { aside, asideProps, className, children, ...cellProps } =\n part.props as IPropertyListCellProps;\n const hasAside = aside !== undefined && aside !== null;\n\n return (\n <StyledPropertyListCell\n {...cellProps}\n className={classnames(\"c-property-list__cell\", className)}\n >\n {hasAside ? (\n <StyledPropertyListCellSplit>\n <StyledPropertyListCellMain>{children}</StyledPropertyListCellMain>\n <StyledPropertyListCellAside\n {...asideProps}\n className={classnames(\n \"c-property-list__aside\",\n asideProps?.className\n )}\n >\n {aside}\n </StyledPropertyListCellAside>\n </StyledPropertyListCellSplit>\n ) : (\n children\n )}\n </StyledPropertyListCell>\n );\n};\n\nexport const PropertyList = forwardRef<HTMLDivElement, IPropertyListProps>(\n (\n {\n density = \"form\",\n disabled = false,\n layout,\n cells = \"grid\",\n header,\n footer,\n cellsProps,\n footerProps,\n tearProps,\n perforationProps,\n solid = false,\n roomy = false,\n notches = true,\n className,\n children,\n ...rest\n },\n ref\n ) => {\n const contextLayout = usePropertyListLayout();\n const current = layout ?? contextLayout;\n const isTicket = current === \"ticket\";\n const parts = Children.toArray(children).filter(Boolean);\n\n useContainerCss(\"c-property-list-container\", CONTAINER_CSS);\n\n const ticket = (\n <>\n {header ? (\n <>\n {header}\n <TicketPerforation\n {...perforationProps}\n notches={notches}\n line={cells === \"row\" ? \"primary\" : \"raised\"}\n />\n </>\n ) : null}\n <StyledPropertyListCells\n {...cellsProps}\n $cells={cells}\n className={classnames(\n \"c-property-list__cells\",\n `c-property-list__cells--${cells}`,\n cellsProps?.className\n )}\n >\n {cells === \"grid\"\n ? parts.map((part, index) => (\n <Fragment key={keyOf(part, index)}>\n {renderCell(part)}\n {index < parts.length - 1 ? (\n <StyledPropertyListTear\n {...tearProps}\n className={classnames(\n \"c-property-list__tear\",\n tearProps?.className\n )}\n >\n <TicketPerforation\n {...perforationProps}\n notches={notches}\n line=\"raised\"\n />\n </StyledPropertyListTear>\n ) : null}\n </Fragment>\n ))\n : parts}\n </StyledPropertyListCells>\n {footer ? (\n <>\n <StyledPropertyListFooterTear aria-hidden=\"true\">\n <TicketPerforation\n {...perforationProps}\n notches={notches}\n line=\"raised\"\n />\n </StyledPropertyListFooterTear>\n <StyledPropertyListFooter\n {...footerProps}\n className={classnames(\n \"c-property-list__footer\",\n footerProps?.className\n )}\n >\n <PropertyList layout=\"stacked\" density=\"page\" disabled={disabled}>\n {footer}\n </PropertyList>\n </StyledPropertyListFooter>\n </>\n ) : null}\n </>\n );\n\n return (\n <LayoutContext.Provider value={current}>\n <DensityContext.Provider value={density}>\n <DisabledContext.Provider value={disabled}>\n <StyledPropertyList\n {...rest}\n ref={ref}\n variant=\"raised\"\n radius={isTicket ? (cells === \"row\" ? 24 : 12) : 20}\n shadow={isTicket || density === \"page\"}\n $disabled={disabled}\n $ticket={isTicket ? cells : undefined}\n $solid={solid}\n $roomy={roomy}\n aria-disabled={disabled || undefined}\n className={classnames(\n \"c-property-list\",\n { \"c-property-list--ticket\": isTicket },\n className\n )}\n >\n {isTicket\n ? ticket\n : parts.map((part, index) => (\n <Fragment key={keyOf(part, index)}>\n {index > 0 ? <PropertyListDivider /> : null}\n {part}\n </Fragment>\n ))}\n </StyledPropertyList>\n </DisabledContext.Provider>\n </DensityContext.Provider>\n </LayoutContext.Provider>\n );\n }\n);\n\nPropertyList.displayName = \"PropertyList\";\n\nexport interface IPropertyListValueProps {\n /** A row with no value shows its text in the placeholder color. */\n placeholder?: boolean;\n className?: string;\n children?: ReactNode;\n}\n\nexport const PropertyListValue = ({\n placeholder = false,\n className,\n children,\n}: IPropertyListValueProps) => {\n const density = usePropertyListDensity();\n\n if (usePropertyListLayout() === \"ticket\") {\n return (\n <StyledPropertyListTicketValue\n $placeholder={placeholder}\n className={classnames(\"c-property-list__value\", className)}\n data-placeholder={placeholder || undefined}\n >\n {children}\n </StyledPropertyListTicketValue>\n );\n }\n\n return (\n <StyledPropertyListValue\n forwardedAs=\"span\"\n color={placeholder ? \"quaternary\" : undefined}\n $density={density}\n $placeholder={placeholder}\n className={classnames(\"c-property-list__value\", className)}\n data-placeholder={placeholder || undefined}\n >\n {children}\n </StyledPropertyListValue>\n );\n};\n\n/** The \"Add\" of a row: a placeholder with a plus where another row has its chevron. */\nexport const PropertyListAdd = ({ children }: { children?: ReactNode }) => (\n <>\n <PropertyListValue placeholder>{children}</PropertyListValue>\n {usePropertyListLayout() === \"ticket\" ? (\n <StyledPropertyListTicketAddIcon />\n ) : (\n <StyledPropertyListAddIcon>\n <AddCrossTinyIcon />\n </StyledPropertyListAddIcon>\n )}\n </>\n);\n\nexport interface IPropertyListLabelProps {\n icon?: ReactNode;\n label?: ReactNode;\n}\n\nexport const PropertyListLabel = ({ icon, label }: IPropertyListLabelProps) => {\n const density = usePropertyListDensity();\n const layout = usePropertyListLayout();\n\n if (layout === \"table\") {\n return (\n <StyledPropertyListTableLabel className=\"c-property-list__label\">\n <StyledPropertyListIcon $size={16} $scale>\n {icon}\n </StyledPropertyListIcon>\n <StyledPropertyListLabelText\n forwardedAs=\"span\"\n weight=\"medium\"\n $layout={layout}\n $density={density}\n >\n {label}\n </StyledPropertyListLabelText>\n </StyledPropertyListTableLabel>\n );\n }\n\n return (\n <>\n <StyledPropertyListIcon\n $size={density === \"page\" ? 28 : 24}\n $scale={false}\n >\n {icon}\n </StyledPropertyListIcon>\n <StyledPropertyListLabelText\n forwardedAs=\"span\"\n weight=\"medium\"\n $layout={layout}\n $density={density}\n className=\"c-property-list__label\"\n >\n {label}\n </StyledPropertyListLabelText>\n </>\n );\n};\n\nexport interface IPropertyListRowProps\n extends Omit<HTMLAttributes<HTMLElement>, \"children\"> {\n icon?: ReactNode;\n label?: ReactNode;\n value?: ReactNode;\n /** A control before the chevron. */\n action?: ReactNode;\n tone?: PropertyListTone;\n /** A read only row is plain text. A row that can change is one button. */\n readOnly?: boolean;\n chevron?: boolean;\n /** Dimmed, with no click and no focus. A disabled list disables its rows. */\n disabled?: boolean;\n /** Ticket only: the value is a row of parts, such as avatars and a text, with the 24px height of an avatar. Set to false for one line of text. */\n parts?: boolean;\n /** Ticket grid only: an icon button at the right edge of the cell, after a line. */\n aside?: ReactNode;\n /** Ticket only: the parts of the value may wrap to more lines. */\n wrap?: boolean;\n /** Ticket only: a third line under the value. */\n footer?: ReactNode;\n /** Ticket only: attributes of the label, such as a data attribute. */\n labelProps?: TicketDataProps;\n /** Ticket only: attributes of the caret, such as a test id. */\n caretProps?: TicketDataProps;\n /** Replaces the label, the value and the action. In a ticket it replaces only the value and the action. */\n children?: ReactNode;\n}\n\nexport const PropertyListRow = forwardRef<HTMLElement, IPropertyListRowProps>(\n (\n {\n icon,\n label,\n value,\n action,\n tone = \"regular\",\n readOnly = false,\n chevron = true,\n disabled = false,\n parts = true,\n aside,\n wrap = false,\n footer,\n labelProps,\n caretProps,\n className,\n children,\n ...rest\n },\n ref\n ) => {\n const isDisabled = usePropertyListDisabled() || disabled;\n const density = usePropertyListDensity();\n const layout = usePropertyListLayout();\n\n if (layout === \"ticket\") {\n const cell = (\n <StyledPropertyListRow\n {...rest}\n as={readOnly ? \"div\" : \"button\"}\n ref={ref as Ref<HTMLDivElement>}\n {...(readOnly\n ? { \"aria-disabled\": isDisabled || undefined }\n : { type: \"button\", disabled: isDisabled })}\n $disabled={isDisabled}\n $layout={layout}\n $density={density}\n $tone={tone}\n $clickable={!readOnly}\n className={classnames(\"c-property-list__row\", className)}\n >\n <StyledPropertyListTicketLabel\n {...labelProps}\n forwardedAs=\"span\"\n $tone={tone}\n className={classnames(\n \"c-property-list__label\",\n labelProps?.className\n )}\n >\n {label}\n </StyledPropertyListTicketLabel>\n <StyledPropertyListTicketLine $parts={parts}>\n <StyledPropertyListTicketText\n forwardedAs=\"span\"\n weight=\"medium\"\n $parts={parts}\n $wrap={wrap}\n $tone={tone}\n >\n {children ?? (\n <>\n {value}\n {action}\n </>\n )}\n </StyledPropertyListTicketText>\n {!readOnly && chevron ? (\n <StyledPropertyListTicketCaret\n {...caretProps}\n aria-hidden=\"true\"\n />\n ) : null}\n </StyledPropertyListTicketLine>\n {footer}\n </StyledPropertyListRow>\n );\n\n if (aside === undefined || aside === null) {\n return cell;\n }\n\n return (\n <StyledPropertyListCellSplit>\n <StyledPropertyListCellMain>{cell}</StyledPropertyListCellMain>\n <StyledPropertyListCellAside className=\"c-property-list__aside\">\n {aside}\n </StyledPropertyListCellAside>\n </StyledPropertyListCellSplit>\n );\n }\n\n const caret =\n !readOnly && chevron ? (\n <StyledPropertyListChevron>\n <ArrowDownSmallIcon />\n </StyledPropertyListChevron>\n ) : null;\n\n return (\n <StyledPropertyListRow\n {...rest}\n as={readOnly ? \"div\" : \"button\"}\n ref={ref as Ref<HTMLDivElement>}\n {...(readOnly\n ? { \"aria-disabled\": isDisabled || undefined }\n : { type: \"button\", disabled: isDisabled })}\n $disabled={isDisabled}\n $layout={layout}\n $density={density}\n $tone={tone}\n $clickable={!readOnly}\n className={classnames(\"c-property-list__row\", className)}\n >\n {children ??\n (layout === \"table\" ? (\n <>\n <PropertyListLabel icon={icon} label={label} />\n <StyledPropertyListTableValue>\n {value}\n </StyledPropertyListTableValue>\n <StyledPropertyListTableAction>\n {action}\n {caret}\n </StyledPropertyListTableAction>\n </>\n ) : (\n <>\n <PropertyListLabel icon={icon} label={label} />\n {value}\n {action}\n {caret}\n </>\n ))}\n </StyledPropertyListRow>\n );\n }\n);\n\nPropertyListRow.displayName = \"PropertyListRow\";\n\nexport interface IPropertyListToggleProps\n extends ButtonHTMLAttributes<HTMLButtonElement> {\n /** The rows that the toggle opens are on the screen. */\n expanded?: boolean;\n}\n\n/** The last row of a list: it opens and closes the rows with no value. */\nexport const PropertyListToggle = forwardRef<\n HTMLButtonElement,\n IPropertyListToggleProps\n>(({ expanded = false, disabled, className, children, ...rest }, ref) => {\n const isDisabled = usePropertyListDisabled() || disabled;\n\n return (\n <StyledPropertyListToggle\n type=\"button\"\n {...rest}\n disabled={isDisabled}\n ref={ref}\n aria-expanded={expanded}\n className={classnames(\"c-property-list__toggle\", className)}\n >\n {children}\n </StyledPropertyListToggle>\n );\n});\n\nPropertyListToggle.displayName = \"PropertyListToggle\";\n\nexport interface IPropertyListBranchProps\n extends HTMLAttributes<HTMLSpanElement> {\n /** \"middle\" continues the line to the next row of the branch. */\n position?: \"middle\" | \"last\";\n}\n\n/** The tree line before a row that belongs to the row above it. Its parent must be positioned. */\nexport const PropertyListBranch = ({\n position = \"last\",\n ...rest\n}: IPropertyListBranchProps) => (\n <>\n <StyledPropertyListBranch aria-hidden=\"true\" {...rest} />\n {position === \"middle\" ? (\n <StyledPropertyListBranchLine aria-hidden=\"true\" />\n ) : null}\n </>\n);\n"],"mappings":";;;;;;;AAAA,OAAOA,KAAK,IAEVC,QAAQ,EACRC,QAAQ,EAKRC,aAAa,EACbC,UAAU,EACVC,cAAc,EACdC,UAAU,QACL,OAAO;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AkB,CAACrG,WAAW,GAAG,oBAAoB;AAQrD;AACA,OAAO,MAAM0G,kBAAkB,GAAGC,KAAA;EAAA,IAAAC,cAAA,GAAAD,KAAA,CAChCE,QAAQ;IAARA,QAAQ,GAAAD,cAAA,cAAG,MAAM,GAAAA,cAAA;IACdpE,IAAI,GAAA3B,6BAAA,CAAA8F,KAAA,EAAAG,UAAA;EAAA,oBAEP1K,KAAA,CAAAoD,aAAA,CAAApD,KAAA,CAAAE,QAAA,qBACEF,KAAA,CAAAoD,aAAA,CAACzC,wBAAwB,EAAAkE,QAAA;IAAC,eAAY;EAAM,GAAKuB,IAAI,CAAG,CAAC,EACxDqE,QAAQ,KAAK,QAAQ,gBACpBzK,KAAA,CAAAoD,aAAA,CAACxC,4BAA4B;IAAC,eAAY;EAAM,CAAE,CAAC,GACjD,IACJ,CAAC;AAAA,CACJ","ignoreList":[]}
1
+ {"version":3,"file":"PropertyList.js","names":["React","Children","Fragment","createContext","forwardRef","isValidElement","useContext","classnames","CONTAINER_CSS","StyledPropertyList","StyledPropertyListAddIcon","StyledPropertyListBranch","StyledPropertyListBranchLine","StyledPropertyListCell","StyledPropertyListCellAside","StyledPropertyListCellMain","StyledPropertyListCells","StyledPropertyListCellSplit","StyledPropertyListChevron","StyledPropertyListDivider","StyledPropertyListIcon","StyledPropertyListLabelText","StyledPropertyListRow","StyledPropertyListTableAction","StyledPropertyListTableLabel","StyledPropertyListTableValue","StyledPropertyListFooter","StyledPropertyListFooterTear","StyledPropertyListTear","StyledPropertyListTicketAddIcon","StyledPropertyListTicketCaret","StyledPropertyListTicketLabel","StyledPropertyListTicketLine","StyledPropertyListTicketText","StyledPropertyListTicketValue","StyledPropertyListToggle","StyledPropertyListValue","useContainerCss","AddCrossTinyIcon","ArrowDownSmallIcon","TicketPerforation","DensityContext","LayoutContext","DisabledContext","usePropertyListDensity","usePropertyListLayout","usePropertyListDisabled","PropertyListLayout","_ref","_ref$value","value","children","createElement","Provider","PropertyListDivider","$layout","$density","className","PropertyListCell","_ref2","displayName","keyOf","part","index","_key","key","renderCell","type","_ref3","props","aside","asideProps","cellProps","_objectWithoutPropertiesLoose","_excluded","hasAside","undefined","_extends","PropertyList","_ref4","ref","_ref4$density","density","_ref4$disabled","disabled","layout","_ref4$cells","cells","header","footer","cellsProps","footerProps","tearProps","perforationProps","_ref4$solid","solid","_ref4$roomy","roomy","_ref4$notches","notches","rest","_excluded2","contextLayout","current","isTicket","parts","toArray","filter","Boolean","ticket","line","$cells","map","length","variant","radius","shadow","$disabled","$ticket","$solid","$roomy","PropertyListValue","_ref5","_ref5$placeholder","placeholder","$placeholder","forwardedAs","color","PropertyListAdd","_ref6","PropertyListLabel","_ref7","icon","label","$size","$scale","$muted","$tone","weight","PropertyListRow","_ref8","action","_ref8$tone","tone","_ref8$readOnly","readOnly","_ref8$chevron","chevron","_ref8$disabled","_ref8$parts","_ref8$wrap","wrap","labelProps","caretProps","_excluded3","isDisabled","cell","as","$clickable","$parts","$wrap","caret","PropertyListToggle","_ref9","_ref9$expanded","expanded","_excluded4","PropertyListBranch","_ref0","_ref0$position","position","_excluded5"],"sources":["../../../../src/components/PropertyList/PropertyList.tsx"],"sourcesContent":["import React, {\n ButtonHTMLAttributes,\n Children,\n Fragment,\n HTMLAttributes,\n ReactElement,\n ReactNode,\n Ref,\n createContext,\n forwardRef,\n isValidElement,\n useContext,\n} from \"react\";\n\nimport classnames from \"classnames\";\n\nimport {\n CONTAINER_CSS,\n PropertyListCells,\n PropertyListDensity,\n PropertyListLayoutName,\n PropertyListTone,\n StyledPropertyList,\n StyledPropertyListAddIcon,\n StyledPropertyListBranch,\n StyledPropertyListBranchLine,\n StyledPropertyListCell,\n StyledPropertyListCellAside,\n StyledPropertyListCellMain,\n StyledPropertyListCells,\n StyledPropertyListCellSplit,\n StyledPropertyListChevron,\n StyledPropertyListDivider,\n StyledPropertyListIcon,\n StyledPropertyListLabelText,\n StyledPropertyListRow,\n StyledPropertyListTableAction,\n StyledPropertyListTableLabel,\n StyledPropertyListTableValue,\n StyledPropertyListFooter,\n StyledPropertyListFooterTear,\n StyledPropertyListTear,\n StyledPropertyListTicketAddIcon,\n StyledPropertyListTicketCaret,\n StyledPropertyListTicketLabel,\n StyledPropertyListTicketLine,\n StyledPropertyListTicketText,\n StyledPropertyListTicketValue,\n StyledPropertyListToggle,\n StyledPropertyListValue,\n} from \"./Styles\";\nimport { useContainerCss } from \"../../utils/useContainerCss\";\nimport { AddCrossTinyIcon, ArrowDownSmallIcon } from \"../Icons\";\nimport { TicketPerforation } from \"../TicketPerforation\";\n\nconst DensityContext = createContext<PropertyListDensity>(\"form\");\nconst LayoutContext = createContext<PropertyListLayoutName>(\"stacked\");\nconst DisabledContext = createContext(false);\n\nexport const usePropertyListDensity = () => useContext(DensityContext);\nexport const usePropertyListLayout = () => useContext(LayoutContext);\nexport const usePropertyListDisabled = () => useContext(DisabledContext);\n\n/** Sets the layout of the rows below it: one line each, the three columns of a table, or the cells of a ticket. */\nexport const PropertyListLayout = ({\n value = \"stacked\",\n children,\n}: {\n value?: PropertyListLayoutName;\n children?: ReactNode;\n}) => <LayoutContext.Provider value={value}>{children}</LayoutContext.Provider>;\n\n/** The line between two rows. In a stacked list it starts where the label text starts. */\nexport const PropertyListDivider = () => (\n <StyledPropertyListDivider\n aria-hidden=\"true\"\n $layout={usePropertyListLayout()}\n $density={usePropertyListDensity()}\n className=\"c-property-list__divider\"\n />\n);\n\nexport interface IPropertyListProps extends HTMLAttributes<HTMLDivElement> {\n /** \"form\" for a compact list in a form, \"page\" for a list on a page, with a shadow. */\n density?: PropertyListDensity;\n /** Every row of the list is dimmed and takes no click and no focus. */\n disabled?: boolean;\n /** The layout of the rows. Without it the list takes the layout of the PropertyListLayout around it. \"ticket\" makes each row a cell: a small label over its value. */\n layout?: PropertyListLayoutName;\n /** Ticket only: \"grid\" puts the cells in two, three or four columns by the card width, \"row\" in one row that wraps. */\n cells?: PropertyListCells;\n /** Ticket only: a part over the cells, with a tear line under it. */\n header?: ReactNode;\n /** Ticket only: rows of the page density under the cells, after a tear line, to the edges of the card. */\n footer?: ReactNode;\n /** Ticket only: attributes of the box of the cells, such as a test id. */\n cellsProps?: TicketPartProps;\n /** Ticket only: attributes of the box of the footer, such as a test id. */\n footerProps?: TicketPartProps;\n /** Ticket grid only: attributes of each tear line between the cells. */\n tearProps?: TicketPartProps;\n /** Ticket only: attributes of every perforation of the ticket. */\n perforationProps?: TicketPartProps;\n /** In a flat ObjectLayout the card keeps the raised color of the theme. */\n solid?: boolean;\n /** Each row is 8px taller. */\n roomy?: boolean;\n /** Ticket only: false leaves the tear lines with no notches. */\n notches?: boolean;\n}\n\ntype TicketDataProps = {\n className?: string;\n \"data-testid\"?: string;\n [attribute: `data-${string}`]: string | boolean | undefined;\n};\n\ntype TicketPartProps = HTMLAttributes<HTMLDivElement> & TicketDataProps;\n\nexport interface IPropertyListCellProps extends TicketPartProps {\n /** An icon button at the right edge of the cell, after a line. */\n aside?: ReactNode;\n /** Attributes of the box of the aside, such as a test id. */\n asideProps?: TicketPartProps;\n children?: ReactNode;\n}\n\n/** A cell of a ticket grid with its own attributes and an aside. Put it as a direct child of a ticket PropertyList. */\nexport const PropertyListCell = ({ children }: IPropertyListCellProps) => (\n <>{children}</>\n);\n\nPropertyListCell.displayName = \"PropertyListCell\";\n\nconst keyOf = (part: ReactNode, index: number) =>\n (part as ReactElement).key ?? index;\n\nconst renderCell = (part: ReactNode) => {\n if (!isValidElement(part) || part.type !== PropertyListCell) {\n return (\n <StyledPropertyListCell className=\"c-property-list__cell\">\n {part}\n </StyledPropertyListCell>\n );\n }\n\n const { aside, asideProps, className, children, ...cellProps } =\n part.props as IPropertyListCellProps;\n const hasAside = aside !== undefined && aside !== null;\n\n return (\n <StyledPropertyListCell\n {...cellProps}\n className={classnames(\"c-property-list__cell\", className)}\n >\n {hasAside ? (\n <StyledPropertyListCellSplit>\n <StyledPropertyListCellMain>{children}</StyledPropertyListCellMain>\n <StyledPropertyListCellAside\n {...asideProps}\n className={classnames(\n \"c-property-list__aside\",\n asideProps?.className\n )}\n >\n {aside}\n </StyledPropertyListCellAside>\n </StyledPropertyListCellSplit>\n ) : (\n children\n )}\n </StyledPropertyListCell>\n );\n};\n\nexport const PropertyList = forwardRef<HTMLDivElement, IPropertyListProps>(\n (\n {\n density = \"form\",\n disabled = false,\n layout,\n cells = \"grid\",\n header,\n footer,\n cellsProps,\n footerProps,\n tearProps,\n perforationProps,\n solid = false,\n roomy = false,\n notches = true,\n className,\n children,\n ...rest\n },\n ref\n ) => {\n const contextLayout = usePropertyListLayout();\n const current = layout ?? contextLayout;\n const isTicket = current === \"ticket\";\n const parts = Children.toArray(children).filter(Boolean);\n\n useContainerCss(\"c-property-list-container\", CONTAINER_CSS);\n\n const ticket = (\n <>\n {header ? (\n <>\n {header}\n <TicketPerforation\n {...perforationProps}\n notches={notches}\n line={cells === \"row\" ? \"primary\" : \"raised\"}\n />\n </>\n ) : null}\n <StyledPropertyListCells\n {...cellsProps}\n $cells={cells}\n className={classnames(\n \"c-property-list__cells\",\n `c-property-list__cells--${cells}`,\n cellsProps?.className\n )}\n >\n {cells === \"grid\"\n ? parts.map((part, index) => (\n <Fragment key={keyOf(part, index)}>\n {renderCell(part)}\n {index < parts.length - 1 ? (\n <StyledPropertyListTear\n {...tearProps}\n className={classnames(\n \"c-property-list__tear\",\n tearProps?.className\n )}\n >\n <TicketPerforation\n {...perforationProps}\n notches={notches}\n line=\"raised\"\n />\n </StyledPropertyListTear>\n ) : null}\n </Fragment>\n ))\n : parts}\n </StyledPropertyListCells>\n {footer ? (\n <>\n <StyledPropertyListFooterTear aria-hidden=\"true\">\n <TicketPerforation\n {...perforationProps}\n notches={notches}\n line=\"raised\"\n />\n </StyledPropertyListFooterTear>\n <StyledPropertyListFooter\n {...footerProps}\n className={classnames(\n \"c-property-list__footer\",\n footerProps?.className\n )}\n >\n <PropertyList layout=\"stacked\" density=\"page\" disabled={disabled}>\n {footer}\n </PropertyList>\n </StyledPropertyListFooter>\n </>\n ) : null}\n </>\n );\n\n return (\n <LayoutContext.Provider value={current}>\n <DensityContext.Provider value={density}>\n <DisabledContext.Provider value={disabled}>\n <StyledPropertyList\n {...rest}\n ref={ref}\n variant=\"raised\"\n radius={isTicket ? (cells === \"row\" ? 24 : 12) : 20}\n shadow={isTicket || density === \"page\"}\n $disabled={disabled}\n $ticket={isTicket ? cells : undefined}\n $solid={solid}\n $roomy={roomy}\n aria-disabled={disabled || undefined}\n className={classnames(\n \"c-property-list\",\n { \"c-property-list--ticket\": isTicket },\n className\n )}\n >\n {isTicket\n ? ticket\n : parts.map((part, index) => (\n <Fragment key={keyOf(part, index)}>\n {index > 0 ? <PropertyListDivider /> : null}\n {part}\n </Fragment>\n ))}\n </StyledPropertyList>\n </DisabledContext.Provider>\n </DensityContext.Provider>\n </LayoutContext.Provider>\n );\n }\n);\n\nPropertyList.displayName = \"PropertyList\";\n\nexport interface IPropertyListValueProps {\n /** A row with no value shows its text in the placeholder color. */\n placeholder?: boolean;\n className?: string;\n children?: ReactNode;\n}\n\nexport const PropertyListValue = ({\n placeholder = false,\n className,\n children,\n}: IPropertyListValueProps) => {\n const density = usePropertyListDensity();\n\n if (usePropertyListLayout() === \"ticket\") {\n return (\n <StyledPropertyListTicketValue\n $placeholder={placeholder}\n className={classnames(\"c-property-list__value\", className)}\n data-placeholder={placeholder || undefined}\n >\n {children}\n </StyledPropertyListTicketValue>\n );\n }\n\n return (\n <StyledPropertyListValue\n forwardedAs=\"span\"\n color={placeholder ? \"quaternary\" : undefined}\n $density={density}\n $placeholder={placeholder}\n className={classnames(\"c-property-list__value\", className)}\n data-placeholder={placeholder || undefined}\n >\n {children}\n </StyledPropertyListValue>\n );\n};\n\n/** The \"Add\" of a row: a placeholder with a plus where another row has its chevron. */\nexport const PropertyListAdd = ({ children }: { children?: ReactNode }) => (\n <>\n <PropertyListValue placeholder>{children}</PropertyListValue>\n {usePropertyListLayout() === \"ticket\" ? (\n <StyledPropertyListTicketAddIcon />\n ) : (\n <StyledPropertyListAddIcon>\n <AddCrossTinyIcon />\n </StyledPropertyListAddIcon>\n )}\n </>\n);\n\nexport interface IPropertyListLabelProps {\n icon?: ReactNode;\n label?: ReactNode;\n}\n\nexport const PropertyListLabel = ({ icon, label }: IPropertyListLabelProps) => {\n const density = usePropertyListDensity();\n const layout = usePropertyListLayout();\n\n if (layout === \"ticket\") {\n return (\n <>\n {icon ? (\n <StyledPropertyListIcon $size={20} $scale $muted>\n {icon}\n </StyledPropertyListIcon>\n ) : null}\n <StyledPropertyListTicketLabel\n forwardedAs=\"span\"\n $tone=\"regular\"\n className=\"c-property-list__label\"\n >\n {label}\n </StyledPropertyListTicketLabel>\n </>\n );\n }\n\n if (layout === \"table\") {\n return (\n <StyledPropertyListTableLabel className=\"c-property-list__label\">\n <StyledPropertyListIcon $size={16} $scale>\n {icon}\n </StyledPropertyListIcon>\n <StyledPropertyListLabelText\n forwardedAs=\"span\"\n weight=\"medium\"\n $layout={layout}\n $density={density}\n >\n {label}\n </StyledPropertyListLabelText>\n </StyledPropertyListTableLabel>\n );\n }\n\n return (\n <>\n <StyledPropertyListIcon\n $size={density === \"page\" ? 28 : 24}\n $scale={false}\n >\n {icon}\n </StyledPropertyListIcon>\n <StyledPropertyListLabelText\n forwardedAs=\"span\"\n weight=\"medium\"\n $layout={layout}\n $density={density}\n className=\"c-property-list__label\"\n >\n {label}\n </StyledPropertyListLabelText>\n </>\n );\n};\n\nexport interface IPropertyListRowProps\n extends Omit<HTMLAttributes<HTMLElement>, \"children\"> {\n icon?: ReactNode;\n label?: ReactNode;\n value?: ReactNode;\n /** A control before the chevron. */\n action?: ReactNode;\n tone?: PropertyListTone;\n /** A read only row is plain text. A row that can change is one button. */\n readOnly?: boolean;\n chevron?: boolean;\n /** Dimmed, with no click and no focus. A disabled list disables its rows. */\n disabled?: boolean;\n /** Ticket only: the value is a row of parts, such as avatars and a text, with the 24px height of an avatar. Set to false for one line of text. */\n parts?: boolean;\n /** Ticket grid only: an icon button at the right edge of the cell, after a line. */\n aside?: ReactNode;\n /** Ticket only: the parts of the value may wrap to more lines. */\n wrap?: boolean;\n /** Ticket only: a third line under the value. */\n footer?: ReactNode;\n /** Ticket only: attributes of the label, such as a data attribute. */\n labelProps?: TicketDataProps;\n /** Ticket only: attributes of the caret, such as a test id. */\n caretProps?: TicketDataProps;\n /** Replaces the label, the value and the action. In a ticket it replaces only the value and the action. */\n children?: ReactNode;\n}\n\nexport const PropertyListRow = forwardRef<HTMLElement, IPropertyListRowProps>(\n (\n {\n icon,\n label,\n value,\n action,\n tone = \"regular\",\n readOnly = false,\n chevron = true,\n disabled = false,\n parts = true,\n aside,\n wrap = false,\n footer,\n labelProps,\n caretProps,\n className,\n children,\n ...rest\n },\n ref\n ) => {\n const isDisabled = usePropertyListDisabled() || disabled;\n const density = usePropertyListDensity();\n const layout = usePropertyListLayout();\n\n if (layout === \"ticket\") {\n const cell = (\n <StyledPropertyListRow\n {...rest}\n as={readOnly ? \"div\" : \"button\"}\n ref={ref as Ref<HTMLDivElement>}\n {...(readOnly\n ? { \"aria-disabled\": isDisabled || undefined }\n : { type: \"button\", disabled: isDisabled })}\n $disabled={isDisabled}\n $layout={layout}\n $density={density}\n $tone={tone}\n $clickable={!readOnly}\n className={classnames(\"c-property-list__row\", className)}\n >\n <StyledPropertyListTicketLabel\n {...labelProps}\n forwardedAs=\"span\"\n $tone={tone}\n className={classnames(\n \"c-property-list__label\",\n labelProps?.className\n )}\n >\n {label}\n </StyledPropertyListTicketLabel>\n <StyledPropertyListTicketLine $parts={parts}>\n <StyledPropertyListTicketText\n forwardedAs=\"span\"\n weight=\"semibold\"\n $parts={parts}\n $wrap={wrap}\n $tone={tone}\n >\n {children ?? (\n <>\n {value}\n {action}\n </>\n )}\n </StyledPropertyListTicketText>\n {!readOnly && chevron ? (\n <StyledPropertyListTicketCaret\n {...caretProps}\n aria-hidden=\"true\"\n />\n ) : null}\n </StyledPropertyListTicketLine>\n {footer}\n </StyledPropertyListRow>\n );\n\n if (aside === undefined || aside === null) {\n return cell;\n }\n\n return (\n <StyledPropertyListCellSplit>\n <StyledPropertyListCellMain>{cell}</StyledPropertyListCellMain>\n <StyledPropertyListCellAside className=\"c-property-list__aside\">\n {aside}\n </StyledPropertyListCellAside>\n </StyledPropertyListCellSplit>\n );\n }\n\n const caret =\n !readOnly && chevron ? (\n <StyledPropertyListChevron>\n <ArrowDownSmallIcon />\n </StyledPropertyListChevron>\n ) : null;\n\n return (\n <StyledPropertyListRow\n {...rest}\n as={readOnly ? \"div\" : \"button\"}\n ref={ref as Ref<HTMLDivElement>}\n {...(readOnly\n ? { \"aria-disabled\": isDisabled || undefined }\n : { type: \"button\", disabled: isDisabled })}\n $disabled={isDisabled}\n $layout={layout}\n $density={density}\n $tone={tone}\n $clickable={!readOnly}\n className={classnames(\"c-property-list__row\", className)}\n >\n {children ??\n (layout === \"table\" ? (\n <>\n <PropertyListLabel icon={icon} label={label} />\n <StyledPropertyListTableValue>\n {value}\n </StyledPropertyListTableValue>\n <StyledPropertyListTableAction>\n {action}\n {caret}\n </StyledPropertyListTableAction>\n </>\n ) : (\n <>\n <PropertyListLabel icon={icon} label={label} />\n {value}\n {action}\n {caret}\n </>\n ))}\n </StyledPropertyListRow>\n );\n }\n);\n\nPropertyListRow.displayName = \"PropertyListRow\";\n\nexport interface IPropertyListToggleProps\n extends ButtonHTMLAttributes<HTMLButtonElement> {\n /** The rows that the toggle opens are on the screen. */\n expanded?: boolean;\n}\n\n/** The last row of a list: it opens and closes the rows with no value. */\nexport const PropertyListToggle = forwardRef<\n HTMLButtonElement,\n IPropertyListToggleProps\n>(({ expanded = false, disabled, className, children, ...rest }, ref) => {\n const isDisabled = usePropertyListDisabled() || disabled;\n\n return (\n <StyledPropertyListToggle\n type=\"button\"\n {...rest}\n disabled={isDisabled}\n ref={ref}\n aria-expanded={expanded}\n className={classnames(\"c-property-list__toggle\", className)}\n >\n {children}\n </StyledPropertyListToggle>\n );\n});\n\nPropertyListToggle.displayName = \"PropertyListToggle\";\n\nexport interface IPropertyListBranchProps\n extends HTMLAttributes<HTMLSpanElement> {\n /** \"middle\" continues the line to the next row of the branch. */\n position?: \"middle\" | \"last\";\n}\n\n/** The tree line before a row that belongs to the row above it. Its parent must be positioned. */\nexport const PropertyListBranch = ({\n position = \"last\",\n ...rest\n}: IPropertyListBranchProps) => (\n <>\n <StyledPropertyListBranch aria-hidden=\"true\" {...rest} />\n {position === \"middle\" ? (\n <StyledPropertyListBranchLine aria-hidden=\"true\" />\n ) : null}\n </>\n);\n"],"mappings":";;;;;;;AAAA,OAAOA,KAAK,IAEVC,QAAQ,EACRC,QAAQ,EAKRC,aAAa,EACbC,UAAU,EACVC,cAAc,EACdC,UAAU,QACL,OAAO;AAEd,OAAOC,UAAU,MAAM,YAAY;AAEnC,SACEC,aAAa,EAKbC,kBAAkB,EAClBC,yBAAyB,EACzBC,wBAAwB,EACxBC,4BAA4B,EAC5BC,sBAAsB,EACtBC,2BAA2B,EAC3BC,0BAA0B,EAC1BC,uBAAuB,EACvBC,2BAA2B,EAC3BC,yBAAyB,EACzBC,yBAAyB,EACzBC,sBAAsB,EACtBC,2BAA2B,EAC3BC,qBAAqB,EACrBC,6BAA6B,EAC7BC,4BAA4B,EAC5BC,4BAA4B,EAC5BC,wBAAwB,EACxBC,4BAA4B,EAC5BC,sBAAsB,EACtBC,+BAA+B,EAC/BC,6BAA6B,EAC7BC,6BAA6B,EAC7BC,4BAA4B,EAC5BC,4BAA4B,EAC5BC,6BAA6B,EAC7BC,wBAAwB,EACxBC,uBAAuB,QAClB,UAAU;AACjB,SAASC,eAAe,QAAQ,6BAA6B;AAC7D,SAASC,gBAAgB,EAAEC,kBAAkB,QAAQ,UAAU;AAC/D,SAASC,iBAAiB,QAAQ,sBAAsB;AAExD,MAAMC,cAAc,gBAAGtC,aAAa,CAAsB,MAAM,CAAC;AACjE,MAAMuC,aAAa,gBAAGvC,aAAa,CAAyB,SAAS,CAAC;AACtE,MAAMwC,eAAe,gBAAGxC,aAAa,CAAC,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I,CAAG,CAAC,EACxDsE,QAAQ,KAAK,QAAQ,gBACpB1K,KAAA,CAAAoD,aAAA,CAACxC,4BAA4B;IAAC,eAAY;EAAM,CAAE,CAAC,GACjD,IACJ,CAAC;AAAA,CACJ","ignoreList":[]}
@@ -18,6 +18,8 @@ export interface IPropertyListPopoverProps {
18
18
  width?: number;
19
19
  /** The popover follows its row when the row changes size while it is open, for a row that grows under itself. Off by default. */
20
20
  followRow?: boolean;
21
+ /** 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. */
22
+ openAtClick?: boolean;
21
23
  /** A class on the content of the popover. */
22
24
  className?: string;
23
25
  /** The test id of the content. */
@@ -28,7 +30,7 @@ export interface IPropertyListPopoverProps {
28
30
  children?: ReactNode;
29
31
  }
30
32
  /** The popover of a rail picker: opens under the start of its row, on the raised surface. */
31
- export declare const PropertyListPopover: ({ row, open, onOpen, onClose, onClickAway, width: fixedWidth, followRow, className, "data-testid": testId, typeToFilter, children, }: IPropertyListPopoverProps) => React.JSX.Element;
33
+ export declare const PropertyListPopover: ({ row, open, onOpen, onClose, onClickAway, width: fixedWidth, followRow, openAtClick, className, "data-testid": testId, typeToFilter, children, }: IPropertyListPopoverProps) => React.JSX.Element;
32
34
  export interface IPropertyListPopoverFooterLabels {
33
35
  set: string;
34
36
  cancel: string;
@@ -1 +1 @@
1
- {"version":3,"file":"PropertyListPopover.d.ts","sourceRoot":"","sources":["../../../../src/components/PropertyList/PropertyListPopover.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAGZ,YAAY,EACZ,SAAS,EAKV,MAAM,OAAO,CAAC;AAaf,4DAA4D;AAC5D,eAAO,MAAM,2BAA2B,MAAM,CAAC;AAC/C,uDAAuD;AACvD,eAAO,MAAM,qCAAqC,MAAM,CAAC;AAEzD,MAAM,WAAW,yBAAyB;IACxC,qEAAqE;IACrE,GAAG,EAAE,YAAY,CAAC;IAClB,2BAA2B;IAC3B,IAAI,EAAE,OAAO,CAAC;IACd,0BAA0B;IAC1B,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,6DAA6D;IAC7D,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,qIAAqI;IACrI,WAAW,CAAC,EAAE,MAAM,OAAO,GAAG,IAAI,CAAC;IACnC,2JAA2J;IAC3J,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iIAAiI;IACjI,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,6CAA6C;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kCAAkC;IAClC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,qGAAqG;IACrG,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,4DAA4D;IAC5D,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAqBD,6FAA6F;AAC7F,eAAO,MAAM,mBAAmB,GAAI,sIAYjC,yBAAyB,sBA+J3B,CAAC;AAEF,MAAM,WAAW,gCAAgC;IAC/C,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB;AAQD,MAAM,WAAW,+BAA+B;IAC9C,8BAA8B;IAC9B,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,2CAA2C;IAC3C,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,gEAAgE;IAChE,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,+BAA+B;IAC/B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,yGAAyG;IACzG,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,4BAA4B;IAC5B,MAAM,CAAC,EAAE,OAAO,CAAC,gCAAgC,CAAC,CAAC;CACpD;AAED,8DAA8D;AAC9D,eAAO,MAAM,yBAAyB,GAAI,mEAOvC,+BAA+B,sBA8BjC,CAAC"}
1
+ {"version":3,"file":"PropertyListPopover.d.ts","sourceRoot":"","sources":["../../../../src/components/PropertyList/PropertyListPopover.tsx"],"names":[],"mappings":"A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+BAA+B;IAC/B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,yGAAyG;IACzG,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,4BAA4B;IAC5B,MAAM,CAAC,EAAE,OAAO,CAAC,gCAAgC,CAAC,CAAC;CACpD;AAED,8DAA8D;AAC9D,eAAO,MAAM,yBAAyB,GAAI,mEAOvC,+BAA+B,sBA8BjC,CAAC"}
@@ -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,EAAEC,IAAY,KAAK;EAAA,IAAAC,qBAAA;EAC1D,CAAAA,qBAAA,GAAAC,MAAM,CAACC,wBAAwB,CAC7BC,MAAM,CAACC,gBAAgB,CAACC,SAAS,EACjC,OACF,CAAC,cAAAL,qBAAA,GAHDA,qBAAA,CAGGM,GAAG,aAHNN,qBAAA,CAGQO,IAAI,CAACT,KAAK,EAAEC,IAAI,CAAC;EACzBD,KAAK,CAACU,aAAa,CAAC,IAAIC,KAAK,CAAC,OAAO,EAAE;IAAEC,OAAO,EAAE;EAAK,CAAC,CAAC,CAAC;EAC1DZ,KAAK,CAACa,KAAK,CAAC,CAAC;AACf,CAAC;AAED,MAAMC,cAAc,GAAIC,KAAoB,IAC1CA,KAAK,CAACC,GAAG,CAACC,MAAM,KAAK,CAAC,IACtBF,KAAK,CAACC,GAAG,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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;EAAA,IAAAC,qBAAA;EAC1D,CAAAA,qBAAA,GAAAC,MAAM,CAACC,wBAAwB,CAC7BC,MAAM,CAACC,gBAAgB,CAACC,SAAS,EACjC,OACF,CAAC,cAAAL,qBAAA,GAHDA,qBAAA,CAGGM,GAAG,aAHNN,qBAAA,CAGQO,IAAI,CAACT,KAAK,EAAEC,IAAI,CAAC;EACzBD,KAAK,CAACU,aAAa,CAAC,IAAIC,KAAK,CAAC,OAAO,EAAE;IAAEC,OAAO,EAAE;EAAK,CAAC,CAAC,CAAC;EAC1DZ,KAAK,CAACa,KAAK,CAAC,CAAC;AACf,CAAC;AAED,MAAMC,cAAc,GAAIC,KAAoB,IAC1CA,KAAK,CAACC,GAAG,CAACC,MAAM,KAAK,CAAC,IACtBF,KAAK,CAACC,GAAG,KAAK,GAAG,IACj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AAA,CAALC,KAAK;IACLC,QAAQ,GAAAF,KAAA,CAARE,QAAQ;IACRC,QAAQ,GAAAH,KAAA,CAARG,QAAQ;IAAAC,iBAAA,GAAAJ,KAAA,CACRK,WAAW;IAAXA,WAAW,GAAAD,iBAAA,cAAG,KAAK,GAAAA,iBAAA;IACnBE,YAAY,GAAAN,KAAA,CAAZM,YAAY;IACZC,MAAM,GAAAP,KAAA,CAANO,MAAM;EAEN,MAAM3G,IAAI,GAAA8F,QAAA,KAAQE,aAAa,EAAKW,MAAM,CAAE;EAC5C,MAAMC,QAAQ,GAAIC,IAAY,IAC5BH,YAAY,GAAMA,YAAY,SAAIG,IAAI,GAAK/C,SAAS;EAEtD,oBACElF,KAAA,CAAA4G,aAAA,CAAChG,UAAU;IACTyC,SAAS,EAAC,iCAAiC;IAC3C6E,OAAO,EAAE;MACPC,KAAK,EAAE/G,IAAI,CAACO,GAAG;MACfyG,OAAO,EAAEX,KAAK;MACdY,QAAQ,EAAER,WAAW;MACrB,aAAa,EAAEG,QAAQ,CAAC,KAAK;IAC/B,CAAE;IACFM,SAAS,EAAE;MACTH,KAAK,EAAE/G,IAAI,CAACiG,MAAM;MAClBe,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,MAAM,4BAA4B,qEAMxC,CAAC;AAEF,eAAO,MAAM,sBAAsB;WAC1B,MAAM;YACL,OAAO;SAahB,CAAC;AAEF,eAAO,MAAM,2BAA2B;aAC7B,sBAAsB;cACrB,mBAAmB;SAgB9B,CAAC;AAEF,eAAO,MAAM,uBAAuB;cACxB,mBAAmB;kBACf,OAAO;SAkBtB,CAAC;AAEF,eAAO,MAAM,yBAAyB,qEAWrC,CAAC;AAEF,eAAO,MAAM,4BAA4B,qEAKxC,CAAC;AAEF,eAAO,MAAM,6BAA6B,qEAOzC,CAAC;AAEF,eAAO,MAAM,yBAAyB,qEAOrC,CAAC;AAEF,eAAO,MAAM,wBAAwB,uEAwBpC,CAAC;AAEF,eAAO,MAAM,wBAAwB,qEAWpC,CAAC;AAEF,eAAO,MAAM,4BAA4B,qEAQx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