@activecollab/components 2.0.597 → 2.0.599

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/dist/cjs/components/Chip/Chip.js.map +1 -1
  2. package/dist/cjs/components/Chip/Styles.js +3 -1
  3. package/dist/cjs/components/Chip/Styles.js.map +1 -1
  4. package/dist/cjs/components/Icons/collection/Plug.js +61 -0
  5. package/dist/cjs/components/Icons/collection/Plug.js.map +1 -0
  6. package/dist/cjs/components/Icons/collection/PlugDisconnect.js +100 -0
  7. package/dist/cjs/components/Icons/collection/PlugDisconnect.js.map +1 -0
  8. package/dist/cjs/components/Icons/collection/index.js +14 -0
  9. package/dist/cjs/components/Icons/collection/index.js.map +1 -1
  10. package/dist/cjs/components/PillButton/PillButton.js.map +1 -1
  11. package/dist/cjs/components/PillButton/Styles.js +2 -1
  12. package/dist/cjs/components/PillButton/Styles.js.map +1 -1
  13. package/dist/cjs/components/PillGroup/PillGroup.js.map +1 -1
  14. package/dist/cjs/components/PillGroup/Styles.js +5 -2
  15. package/dist/cjs/components/PillGroup/Styles.js.map +1 -1
  16. package/dist/cjs/components/PropertyList/BulletStyles.js +1 -1
  17. package/dist/cjs/components/PropertyList/BulletStyles.js.map +1 -1
  18. package/dist/cjs/components/PropertyList/PropertyList.js +12 -1
  19. package/dist/cjs/components/PropertyList/PropertyList.js.map +1 -1
  20. package/dist/cjs/components/PropertyList/PropertyListPopover.js +22 -1
  21. package/dist/cjs/components/PropertyList/PropertyListPopover.js.map +1 -1
  22. package/dist/cjs/components/PropertyList/Styles.js +30 -27
  23. package/dist/cjs/components/PropertyList/Styles.js.map +1 -1
  24. package/dist/cjs/components/PropertyList/TimeStyles.js +1 -1
  25. package/dist/cjs/components/PropertyList/TimeStyles.js.map +1 -1
  26. package/dist/cjs/components/Typography/Variants/Body1.js.map +1 -1
  27. package/dist/esm/components/Chip/Chip.d.ts +1 -1
  28. package/dist/esm/components/Chip/Chip.d.ts.map +1 -1
  29. package/dist/esm/components/Chip/Chip.js.map +1 -1
  30. package/dist/esm/components/Chip/Styles.d.ts.map +1 -1
  31. package/dist/esm/components/Chip/Styles.js +2 -2
  32. package/dist/esm/components/Chip/Styles.js.map +1 -1
  33. package/dist/esm/components/Icons/collection/Plug.d.ts +21 -0
  34. package/dist/esm/components/Icons/collection/Plug.d.ts.map +1 -0
  35. package/dist/esm/components/Icons/collection/Plug.js +54 -0
  36. package/dist/esm/components/Icons/collection/Plug.js.map +1 -0
  37. package/dist/esm/components/Icons/collection/PlugDisconnect.d.ts +22 -0
  38. package/dist/esm/components/Icons/collection/PlugDisconnect.d.ts.map +1 -0
  39. package/dist/esm/components/Icons/collection/PlugDisconnect.js +83 -0
  40. package/dist/esm/components/Icons/collection/PlugDisconnect.js.map +1 -0
  41. package/dist/esm/components/Icons/collection/index.d.ts +2 -0
  42. package/dist/esm/components/Icons/collection/index.d.ts.map +1 -1
  43. package/dist/esm/components/Icons/collection/index.js +2 -0
  44. package/dist/esm/components/Icons/collection/index.js.map +1 -1
  45. package/dist/esm/components/PillButton/PillButton.d.ts +2 -2
  46. package/dist/esm/components/PillButton/PillButton.d.ts.map +1 -1
  47. package/dist/esm/components/PillButton/PillButton.js.map +1 -1
  48. package/dist/esm/components/PillButton/Styles.d.ts.map +1 -1
  49. package/dist/esm/components/PillButton/Styles.js +2 -1
  50. package/dist/esm/components/PillButton/Styles.js.map +1 -1
  51. package/dist/esm/components/PillGroup/PillGroup.d.ts +2 -2
  52. package/dist/esm/components/PillGroup/PillGroup.d.ts.map +1 -1
  53. package/dist/esm/components/PillGroup/PillGroup.js.map +1 -1
  54. package/dist/esm/components/PillGroup/Styles.d.ts.map +1 -1
  55. package/dist/esm/components/PillGroup/Styles.js +2 -1
  56. package/dist/esm/components/PillGroup/Styles.js.map +1 -1
  57. package/dist/esm/components/PropertyList/BulletStyles.js +1 -1
  58. package/dist/esm/components/PropertyList/BulletStyles.js.map +1 -1
  59. package/dist/esm/components/PropertyList/PropertyList.d.ts.map +1 -1
  60. package/dist/esm/components/PropertyList/PropertyList.js +12 -1
  61. package/dist/esm/components/PropertyList/PropertyList.js.map +1 -1
  62. package/dist/esm/components/PropertyList/PropertyListPopover.d.ts +3 -1
  63. package/dist/esm/components/PropertyList/PropertyListPopover.d.ts.map +1 -1
  64. package/dist/esm/components/PropertyList/PropertyListPopover.js +20 -0
  65. package/dist/esm/components/PropertyList/PropertyListPopover.js.map +1 -1
  66. package/dist/esm/components/PropertyList/Styles.d.ts +1 -0
  67. package/dist/esm/components/PropertyList/Styles.d.ts.map +1 -1
  68. package/dist/esm/components/PropertyList/Styles.js +30 -27
  69. package/dist/esm/components/PropertyList/Styles.js.map +1 -1
  70. package/dist/esm/components/PropertyList/TimeStyles.js +1 -1
  71. package/dist/esm/components/PropertyList/TimeStyles.js.map +1 -1
  72. package/dist/esm/components/Typography/Variants/Body1.d.ts +1 -1
  73. package/dist/esm/components/Typography/Variants/Body1.d.ts.map +1 -1
  74. package/dist/esm/components/Typography/Variants/Body1.js.map +1 -1
  75. package/dist/index.js +629 -455
  76. package/dist/index.js.map +1 -1
  77. package/dist/index.min.js +1 -1
  78. package/dist/index.min.js.map +1 -1
  79. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"PillButton.d.ts","sourceRoot":"","sources":["../../../../src/components/PillButton/PillButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAEZ,wBAAwB,EAExB,YAAY,EACZ,SAAS,EACV,MAAM,OAAO,CAAC;AAUf,MAAM,WAAW,eAAgB,SAAQ,wBAAwB,CAAC,QAAQ,CAAC;IACzE,8CAA8C;IAC9C,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,mFAAmF;IACnF,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,gEAAgE;IAChE,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,oeAAoe;IACpe,IAAI,CAAC,EACD,MAAM,GACN,WAAW,GACX,OAAO,GACP,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2OAA2O;IAC3O,IAAI,CAAC,EAAE,QAAQ,GAAG,KAAK,GAAG,OAAO,GAAG,OAAO,GAAG,QAAQ,CAAC;IACvD,qFAAqF;IACrF,KAAK,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;IAC5B,2GAA2G;IAC3G,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,UAAU,2FAwEtB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"PillButton.js","names":["React","Children","forwardRef","classnames","StyledPillButton","StyledPillIcon","StyledPillPlaceholder","PillButton","_ref","ref","_args$ariaLabel","icon","endIcon","placeholder","_ref$tone","tone","active","_ref$iconOnly","iconOnly","_ref$compact","compact","_ref$size","size","_ref$inset","inset","_ref$dimDisabled","dimDisabled","_ref$type","type","className","children","args","_objectWithoutPropertiesLoose","_excluded","isEmpty","toArray","length","ariaLabel","undefined","createElement","_extends","$tone","$active","Boolean","$empty","$iconOnly","$compact","$size","$inset","$dimDisabled","displayName"],"sources":["../../../../src/components/PillButton/PillButton.tsx"],"sourcesContent":["import React, {\n Children,\n ComponentPropsWithoutRef,\n forwardRef,\n ReactElement,\n ReactNode,\n} from \"react\";\n\nimport classnames from \"classnames\";\n\nimport {\n StyledPillButton,\n StyledPillIcon,\n StyledPillPlaceholder,\n} from \"./Styles\";\n\nexport interface PillButtonProps extends ComponentPropsWithoutRef<\"button\"> {\n /** Icon shown while the pill has no value. */\n icon?: ReactElement;\n /** Icon after the placeholder, for example a caret on a pill that opens a menu. */\n endIcon?: ReactElement;\n /** Label shown next to the icon while the pill has no value. */\n placeholder?: ReactNode;\n /** Fill of the pill. \"ghost\" stays empty until hover, focus, open, or hover of a `c-pill-host` ancestor. \"alert\" and \"warning\" look soft and get their own active look, for example an active flag. \"accent\" has a soft fill and the text of the primary color, for an action that must stand out. \"primary\" is a solid primary pill for the main action of a raised group, for example Update. \"well\" is a flat pill in the page background for a value in a raised group, for example a count. */\n tone?:\n | \"soft\"\n | \"alternate\"\n | \"ghost\"\n | \"outlined\"\n | \"alert\"\n | \"warning\"\n | \"accent\"\n | \"raised\"\n | \"primary\"\n | \"well\";\n /** Selected or pressed state. */\n active?: boolean;\n /** A square-ish pill that holds only its icon, for example a close button. */\n iconOnly?: boolean;\n /** Hide the placeholder and keep the icon, always or only on small screens. */\n compact?: boolean | \"mobile\";\n /** Height: \"medium\" is 26px, \"small\" is 24px like a small Button, \"dense\" is 24px with 12px text and icon, \"xsmall\" is 18px with 10px text like a type chip. */\n size?: \"xsmall\" | \"small\" | \"dense\" | \"medium\";\n /** Side padding. \"tight\" suits a value that draws to its own edges, like avatars. */\n inset?: \"default\" | \"tight\";\n /** Dims a disabled pill. Set false to keep the full look of a read-only indicator, still with no hover. */\n dimDisabled?: boolean;\n}\n\n/**\n * @component PillButton\n * @description\n * A rounded trigger for a field value, for example the assignees, the dates or the label of a task.\n * With no children it shows its icon and placeholder. With children it shows only the children.\n * It forwards its ref and click handler, so a Menu or a Select can use it as a target.\n * Put several pills in a PillGroup to make a segmented control.\n *\n * @example\n * <PillButton icon={<CalendarIcon />} placeholder=\"Dates\" />\n * <PillButton tone=\"ghost\">Sep 24. - 30.</PillButton>\n */\nexport const PillButton = forwardRef<HTMLButtonElement, PillButtonProps>(\n (\n {\n icon,\n endIcon,\n placeholder,\n tone = \"soft\",\n active,\n iconOnly = false,\n compact = false,\n size = \"medium\",\n inset = \"default\",\n dimDisabled = true,\n type = \"button\",\n className,\n children,\n ...args\n },\n ref\n ) => {\n const isEmpty = Children.toArray(children).length === 0;\n const ariaLabel =\n args[\"aria-label\"] ??\n (isEmpty && compact && typeof placeholder === \"string\"\n ? placeholder\n : undefined);\n\n return (\n <StyledPillButton\n ref={ref}\n type={type}\n className={classnames(\n \"c-pill-button\",\n `c-pill-button--${tone}`,\n {\n \"c-pill-button--empty\": isEmpty,\n \"c-pill-button--active\": active,\n \"c-pill-button--icon-only\": iconOnly,\n },\n className\n )}\n aria-pressed={active}\n {...args}\n aria-label={ariaLabel}\n $tone={tone}\n $active={Boolean(active)}\n $empty={isEmpty}\n $iconOnly={iconOnly}\n $compact={compact}\n $size={size}\n $inset={inset}\n $dimDisabled={dimDisabled}\n >\n {isEmpty && icon ? (\n <StyledPillIcon className=\"c-pill-button__icon\">\n {icon}\n </StyledPillIcon>\n ) : null}\n {isEmpty && placeholder && !iconOnly ? (\n <StyledPillPlaceholder className=\"c-pill-button__placeholder\">\n {placeholder}\n </StyledPillPlaceholder>\n ) : null}\n {isEmpty && endIcon && !iconOnly ? (\n <StyledPillIcon className=\"c-pill-button__end-icon\">\n {endIcon}\n </StyledPillIcon>\n ) : null}\n {isEmpty ? null : children}\n </StyledPillButton>\n );\n }\n);\n\nPillButton.displayName = \"PillButton\";\n"],"mappings":";;;AAAA,OAAOA,KAAK,IACVC,QAAQ,EAERC,UAAU,QAGL,OAAO;AAEd,OAAOC,UAAU,MAAM,YAAY;AAEnC,SACEC,gBAAgB,EAChBC,cAAc,EACdC,qBAAqB,QAChB,UAAU;AAmCjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,UAAU,gBAAGL,UAAU,CAClC,CAAAM,IAAA,EAiBEC,GAAG,KACA;EAAA,IAAAC,eAAA;EAAA,IAhBDC,IAAI,GAAAH,IAAA,CAAJG,IAAI;IACJC,OAAO,GAAAJ,IAAA,CAAPI,OAAO;IACPC,WAAW,GAAAL,IAAA,CAAXK,WAAW;IAAAC,SAAA,GAAAN,IAAA,CACXO,IAAI;IAAJA,IAAI,GAAAD,SAAA,cAAG,MAAM,GAAAA,SAAA;IACbE,MAAM,GAAAR,IAAA,CAANQ,MAAM;IAAAC,aAAA,GAAAT,IAAA,CACNU,QAAQ;IAARA,QAAQ,GAAAD,aAAA,cAAG,KAAK,GAAAA,aAAA;IAAAE,YAAA,GAAAX,IAAA,CAChBY,OAAO;IAAPA,OAAO,GAAAD,YAAA,cAAG,KAAK,GAAAA,YA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QAAS;IACpB4B,QAAQ,EAAE1B,OAAQ;IAClB2B,KAAK,EAAEzB,IAAK;IACZ0B,MAAM,EAAExB,KAAM;IACdyB,YAAY,EAAEvB;EAAY,IAEzBQ,OAAO,IAAIvB,IAAI,gBACdX,KAAA,CAAAuC,aAAA,CAAClC,cAAc;IAACwB,SAAS,EAAC;EAAqB,GAC5ClB,IACa,CAAC,GACf,IAAI,EACPuB,OAAO,IAAIrB,WAAW,IAAI,CAACK,QAAQ,gBAClClB,KAAA,CAAAuC,aAAA,CAACjC,qBAAqB;IAACuB,SAAS,EAAC;EAA4B,GAC1DhB,WACoB,CAAC,GACtB,IAAI,EACPqB,OAAO,IAAItB,OAAO,IAAI,CAACM,QAAQ,gBAC9BlB,KAAA,CAAAuC,aAAA,CAAClC,cAAc;IAACwB,SAAS,EAAC;EAAyB,GAChDjB,OACa,CAAC,GACf,IAAI,EACPsB,OAAO,GAAG,IAAI,GAAGJ,QACF,CAAC;AAEvB,CACF,CAAC;AAEDvB,UAAU,CAAC2C,WAAW,GAAG,YAAY","ignoreList":[]}
1
+ {"version":3,"file":"PillButton.js","names":["React","Children","forwardRef","classnames","StyledPillButton","StyledPillIcon","StyledPillPlaceholder","PillButton","_ref","ref","_args$ariaLabel","icon","endIcon","placeholder","_ref$tone","tone","active","_ref$iconOnly","iconOnly","_ref$compact","compact","_ref$size","size","_ref$inset","inset","_ref$dimDisabled","dimDisabled","_ref$type","type","className","children","args","_objectWithoutPropertiesLoose","_excluded","isEmpty","toArray","length","ariaLabel","undefined","createElement","_extends","$tone","$active","Boolean","$empty","$iconOnly","$compact","$size","$inset","$dimDisabled","displayName"],"sources":["../../../../src/components/PillButton/PillButton.tsx"],"sourcesContent":["import React, {\n Children,\n ComponentPropsWithoutRef,\n forwardRef,\n ReactElement,\n ReactNode,\n} from \"react\";\n\nimport classnames from \"classnames\";\n\nimport {\n StyledPillButton,\n StyledPillIcon,\n StyledPillPlaceholder,\n} from \"./Styles\";\n\nexport interface PillButtonProps extends ComponentPropsWithoutRef<\"button\"> {\n /** Icon shown while the pill has no value. */\n icon?: ReactElement;\n /** Icon after the placeholder, for example a caret on a pill that opens a menu. */\n endIcon?: ReactElement;\n /** Label shown next to the icon while the pill has no value. */\n placeholder?: ReactNode;\n /** Fill of the pill. \"ghost\" stays empty until hover, focus, open, or hover of a `c-pill-host` ancestor. \"alert\" and \"warning\" look soft and get their own active look, for example an active flag. \"accent\" has a soft fill and the text of the primary color, for an action that must stand out. \"primary\" is a solid primary pill for the main action of a raised group, for example Update. \"well\" is a flat pill in the page background for a value in a raised group, for example a count. */\n tone?:\n | \"soft\"\n | \"alternate\"\n | \"ghost\"\n | \"outlined\"\n | \"alert\"\n | \"warning\"\n | \"accent\"\n | \"raised\"\n | \"primary\"\n | \"well\";\n /** Selected or pressed state. */\n active?: boolean;\n /** A square-ish pill that holds only its icon, for example a close button. */\n iconOnly?: boolean;\n /** Hide the placeholder and keep the icon, always or only on small screens. */\n compact?: boolean | \"mobile\";\n /** Height: \"medium\" is 26px, \"small\" is 24px like a small Button, \"dense\" is 24px with 12px text and icon, \"xsmall\" is 18px with 10px text like a type chip, \"tag\" is 22px with the text of \"xsmall\", for a switch in an object header. */\n size?: \"xsmall\" | \"tag\" | \"small\" | \"dense\" | \"medium\";\n /** Side padding. \"tight\" suits a value that draws to its own edges, like avatars. */\n inset?: \"default\" | \"tight\";\n /** Dims a disabled pill. Set false to keep the full look of a read-only indicator, still with no hover. */\n dimDisabled?: boolean;\n}\n\n/**\n * @component PillButton\n * @description\n * A rounded trigger for a field value, for example the assignees, the dates or the label of a task.\n * With no children it shows its icon and placeholder. With children it shows only the children.\n * It forwards its ref and click handler, so a Menu or a Select can use it as a target.\n * Put several pills in a PillGroup to make a segmented control.\n *\n * @example\n * <PillButton icon={<CalendarIcon />} placeholder=\"Dates\" />\n * <PillButton tone=\"ghost\">Sep 24. - 30.</PillButton>\n */\nexport const PillButton = forwardRef<HTMLButtonElement, PillButtonProps>(\n (\n {\n icon,\n endIcon,\n placeholder,\n tone = \"soft\",\n active,\n iconOnly = false,\n compact = false,\n size = \"medium\",\n inset = \"default\",\n dimDisabled = true,\n type = \"button\",\n className,\n children,\n ...args\n },\n ref\n ) => {\n const isEmpty = Children.toArray(children).length === 0;\n const ariaLabel =\n args[\"aria-label\"] ??\n (isEmpty && compact && typeof placeholder === \"string\"\n ? placeholder\n : undefined);\n\n return (\n <StyledPillButton\n ref={ref}\n type={type}\n className={classnames(\n \"c-pill-button\",\n `c-pill-button--${tone}`,\n {\n \"c-pill-button--empty\": isEmpty,\n \"c-pill-button--active\": active,\n \"c-pill-button--icon-only\": iconOnly,\n },\n className\n )}\n aria-pressed={active}\n {...args}\n aria-label={ariaLabel}\n $tone={tone}\n $active={Boolean(active)}\n $empty={isEmpty}\n $iconOnly={iconOnly}\n $compact={compact}\n $size={size}\n $inset={inset}\n $dimDisabled={dimDisabled}\n >\n {isEmpty && icon ? (\n <StyledPillIcon className=\"c-pill-button__icon\">\n {icon}\n </StyledPillIcon>\n ) : null}\n {isEmpty && placeholder && !iconOnly ? (\n <StyledPillPlaceholder className=\"c-pill-button__placeholder\">\n {placeholder}\n </StyledPillPlaceholder>\n ) : null}\n {isEmpty && endIcon && !iconOnly ? (\n <StyledPillIcon className=\"c-pill-button__end-icon\">\n {endIcon}\n </StyledPillIcon>\n ) : null}\n {isEmpty ? null : children}\n </StyledPillButton>\n );\n }\n);\n\nPillButton.displayName = \"PillButton\";\n"],"mappings":";;;AAAA,OAAOA,KAAK,IACVC,QAAQ,EAERC,UAAU,QAGL,OAAO;AAEd,OAAOC,UAAU,MAAM,YAAY;AAEnC,SACEC,gBAAgB,EAChBC,cAAc,EACdC,qBAAqB,QAChB,UAAU;AAmCjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,UAAU,gBAAGL,UAAU,CAClC,CAAAM,IAAA,EAiBEC,GAAG,KACA;EAAA,IAAAC,eAAA;EAAA,IAhBDC,IAA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gB,EAAAoC,QAAA;IACf/B,GAAG,EAAEA,GAAI;IACTmB,IAAI,EAAEA,IAAK;IACXC,SAAS,EAAE1B,UAAU,CACnB,eAAe,sBACGY,IAAI,EACtB;MACE,sBAAsB,EAAEmB,OAAO;MAC/B,uBAAuB,EAAElB,MAAM;MAC/B,0BAA0B,EAAEE;IAC9B,CAAC,EACDW,SACF,CAAE;IACF,gBAAcb;EAAO,GACjBe,IAAI;IACR,cAAYM,SAAU;IACtBI,KAAK,EAAE1B,IAAK;IACZ2B,OAAO,EAAEC,OAAO,CAAC3B,MAAM,CAAE;IACzB4B,MAAM,EAAEV,OAAQ;IAChBW,SAAS,EAAE3B,QAAS;IACpB4B,QAAQ,EAAE1B,OAAQ;IAClB2B,KAAK,EAAEzB,IAAK;IACZ0B,MAAM,EAAExB,KAAM;IACdyB,YAAY,EAAEvB;EAAY,IAEzBQ,OAAO,IAAIvB,IAAI,gBACdX,KAAA,CAAAuC,aAAA,CAAClC,cAAc;IAACwB,SAAS,EAAC;EAAqB,GAC5ClB,IACa,CAAC,GACf,IAAI,EACPuB,OAAO,IAAIrB,WAAW,IAAI,CAACK,QAAQ,gBAClClB,KAAA,CAAAuC,aAAA,CAACjC,qBAAqB;IAACuB,SAAS,EAAC;EAA4B,GAC1DhB,WACoB,CAAC,GACtB,IAAI,EACPqB,OAAO,IAAItB,OAAO,IAAI,CAACM,QAAQ,gBAC9BlB,KAAA,CAAAuC,aAAA,CAAClC,cAAc;IAACwB,SAAS,EAAC;EAAyB,GAChDjB,OACa,CAAC,GACf,IAAI,EACPsB,OAAO,GAAG,IAAI,GAAGJ,QACF,CAAC;AAEvB,CACF,CAAC;AAEDvB,UAAU,CAAC2C,WAAW,GAAG,YAAY","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"Styles.d.ts","sourceRoot":"","sources":["../../../../src/components/PillButton/Styles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAI/C,UAAU,qBAAqB;IAC7B,KAAK,EAAE,WAAW,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC;IAC5C,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,eAAe,CAAC,SAAS,CAAC,CAAC;IACrC,KAAK,EAAE,WAAW,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC;IAC5C,MAAM,EAAE,WAAW,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC,CAAC;IAC9C,YAAY,EAAE,OAAO,CAAC;CACvB;AAED,eAAO,MAAM,cAAc,qEAU1B,CAAC;AAIF,eAAO,MAAM,qBAAqB,qEAGjC,CAAC;AAuPF,eAAO,MAAM,gBAAgB,0FAgG5B,CAAC"}
1
+ {"version":3,"file":"Styles.d.ts","sourceRoot":"","sources":["../../../../src/components/PillButton/Styles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAI/C,UAAU,qBAAqB;IAC7B,KAAK,EAAE,WAAW,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC;IAC5C,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,eAAe,CAAC,SAAS,CAAC,CAAC;IACrC,KAAK,EAAE,WAAW,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC;IAC5C,MAAM,EAAE,WAAW,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC,CAAC;IAC9C,YAAY,EAAE,OAAO,CAAC;CACvB;AAED,eAAO,MAAM,cAAc,qEAU1B,CAAC;AAIF,eAAO,MAAM,qBAAqB,qEAGjC,CAAC;AAwPF,eAAO,MAAM,gBAAgB,0FAiG5B,CAAC"}
@@ -41,6 +41,7 @@ const toneStyle = tone => {
41
41
  const compactStyle = css(["", "{display:none;}"], StyledPillPlaceholder);
42
42
  const PILL_HEIGHTS = {
43
43
  xsmall: "18px",
44
+ tag: "22px",
44
45
  small: "24px",
45
46
  dense: "24px",
46
47
  medium: "26px"
@@ -52,6 +53,6 @@ const xsmallStyle = css(["gap:3px;--c-pill-padding-x:6px;font-size:calc(0.625rem
52
53
  export const StyledPillButton = styled.button.withConfig({
53
54
  displayName: "Styles__StyledPillButton",
54
55
  componentId: "sc-14yhio0-2"
55
- })(["", " ", " display:inline-flex;align-items:center;justify-content:center;gap:6px;flex-shrink:0;max-width:100%;height:", ";margin:0;--c-pill-padding-x:", ";padding:0 var(--c-pill-padding-x);border:none;border-radius:var(--ac-br-rounded);font-size:calc(0.875rem * var(--text-scale,1));font-weight:500;line-height:1;white-space:nowrap;color:", ";cursor:pointer;user-select:none;&:focus{outline:none;}&:disabled{cursor:default;opacity:", ";pointer-events:none;}", " ", " ", " ", " ", " ", " ", " ", " &[aria-haspopup][aria-expanded=\"true\"],.c-pill-host:hover &[aria-haspopup][aria-expanded=\"true\"]{", "}"], FontStyle, BoxSizingStyle, props => PILL_HEIGHTS[props.$size], props => props.$inset === "tight" ? "6px" : "10px", props => props.$empty ? "var(--color-theme-700)" : "var(--color-theme-800)", props => props.$dimDisabled ? "50%" : "100%", props => toneStyle(props.$tone), props => props.$tone === "ghost" && props.$empty && css(["", ",", "{opacity:0;}.c-pill-host:hover &.c-pill-button--ghost,&:hover,&:focus-visible,&[aria-expanded=\"true\"]{", ",", "{opacity:1;}}"], StyledPillIcon, StyledPillPlaceholder, StyledPillIcon, StyledPillPlaceholder), props => props.$iconOnly && css(["width:", ";padding:0;", " svg{width:16px;height:16px;}"], props.$tone === "raised" ? "28px" : "36px", StyledPillIcon), props => props.$size === "xsmall" && xsmallStyle, props => props.$size === "dense" && denseStyle, props => props.$compact === true && compactStyle, props => props.$compact === "mobile" && css(["@media (max-width:768px){", "}"], compactStyle), props => props.$active && css(["&,&:hover,&:focus-visible{", "}"], activeStyle(props.$tone)), props => activeStyle(props.$tone));
56
+ })(["", " ", " display:inline-flex;align-items:center;justify-content:center;gap:6px;flex-shrink:0;max-width:100%;height:", ";margin:0;--c-pill-padding-x:", ";padding:0 var(--c-pill-padding-x);border:none;border-radius:var(--ac-br-rounded);font-size:calc(0.875rem * var(--text-scale,1));font-weight:500;line-height:1;white-space:nowrap;color:", ";cursor:pointer;user-select:none;&:focus{outline:none;}&:disabled{cursor:default;opacity:", ";pointer-events:none;}", " ", " ", " ", " ", " ", " ", " ", " &[aria-haspopup][aria-expanded=\"true\"],.c-pill-host:hover &[aria-haspopup][aria-expanded=\"true\"]{", "}"], FontStyle, BoxSizingStyle, props => PILL_HEIGHTS[props.$size], props => props.$inset === "tight" ? "6px" : "10px", props => props.$empty ? "var(--color-theme-700)" : "var(--color-theme-800)", props => props.$dimDisabled ? "50%" : "100%", props => toneStyle(props.$tone), props => props.$tone === "ghost" && props.$empty && css(["", ",", "{opacity:0;}.c-pill-host:hover &.c-pill-button--ghost,&:hover,&:focus-visible,&[aria-expanded=\"true\"]{", ",", "{opacity:1;}}"], StyledPillIcon, StyledPillPlaceholder, StyledPillIcon, StyledPillPlaceholder), props => props.$iconOnly && css(["width:", ";padding:0;", " svg{width:16px;height:16px;}"], props.$tone === "raised" ? "28px" : "36px", StyledPillIcon), props => (props.$size === "xsmall" || props.$size === "tag") && xsmallStyle, props => props.$size === "dense" && denseStyle, props => props.$compact === true && compactStyle, props => props.$compact === "mobile" && css(["@media (max-width:768px){", "}"], compactStyle), props => props.$active && css(["&,&:hover,&:focus-visible{", "}"], activeStyle(props.$tone)), props => activeStyle(props.$tone));
56
57
  StyledPillButton.displayName = "StyledPillButton";
57
58
  //# sourceMappingURL=Styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Styles.js","names":["styled","css","BoxSizingStyle","FontStyle","StyledPillIcon","span","withConfig","displayName","componentId","StyledPillPlaceholder","ACTIVE_COLORS","alert","warning","activeColors","tone","activeStyle","hoverTextStyle","toneStyle","compactStyle","PILL_HEIGHTS","xsmall","small","dense","medium","denseStyle","xsmallStyle","StyledPillButton","button","props","$size","$inset","$empty","$dimDisabled","$tone","$iconOnly","$compact","$active"],"sources":["../../../../src/components/PillButton/Styles.ts"],"sourcesContent":["import styled, { css } from \"styled-components\";\n\nimport { PillButtonProps } from \"./PillButton\";\nimport { BoxSizingStyle } from \"../BoxSizingStyle\";\nimport { FontStyle } from \"../FontStyle\";\n\ninterface StyledPillButtonProps {\n $tone: NonNullable<PillButtonProps[\"tone\"]>;\n $active: boolean;\n $empty: boolean;\n $iconOnly: boolean;\n $compact: PillButtonProps[\"compact\"];\n $size: NonNullable<PillButtonProps[\"size\"]>;\n $inset: NonNullable<PillButtonProps[\"inset\"]>;\n $dimDisabled: boolean;\n}\n\nexport const StyledPillIcon = styled.span`\n display: inline-flex;\n flex-shrink: 0;\n color: var(--color-theme-600);\n\n svg {\n width: 18px;\n height: 18px;\n fill: currentColor;\n }\n`;\n\nStyledPillIcon.displayName = \"StyledPillIcon\";\n\nexport const StyledPillPlaceholder = styled.span`\n overflow: hidden;\n text-overflow: ellipsis;\n`;\n\nStyledPillPlaceholder.displayName = \"StyledPillPlaceholder\";\n\nconst ACTIVE_COLORS = {\n alert: [\"var(--alert-surface-subtle)\", \"var(--red-alert)\"],\n warning: [\"var(--note-bg)\", \"var(--warning-text)\"],\n};\n\nconst activeColors = (tone: StyledPillButtonProps[\"$tone\"]) =>\n tone === \"alert\" || tone === \"warning\"\n ? ACTIVE_COLORS[tone]\n : [\"var(--pill-background-active)\", \"var(--color-primary)\"];\n\nconst activeStyle = (tone: StyledPillButtonProps[\"$tone\"]) => css`\n background-color: ${activeColors(tone)[0]};\n color: ${activeColors(tone)[1]};\n\n ${StyledPillIcon} {\n color: ${activeColors(tone)[1]};\n }\n\n /* An icon in the value takes the color of the text too, its outline as well. */\n svg {\n fill: currentColor;\n }\n\n svg [stroke]:not([stroke=\"none\"]) {\n stroke: currentColor;\n }\n`;\n\nconst hoverTextStyle = css`\n color: var(--color-theme-900);\n\n ${StyledPillIcon} {\n color: var(--color-theme-900);\n }\n`;\n\nconst toneStyle = (tone: StyledPillButtonProps[\"$tone\"]) => {\n switch (tone) {\n case \"alternate\":\n return css`\n background-color: var(--color-theme-300);\n\n &:hover,\n &:focus-visible {\n background-color: var(--color-theme-400);\n ${hoverTextStyle}\n }\n `;\n case \"accent\":\n return css`\n background-color: color-mix(\n in srgb,\n var(--color-primary) 15%,\n transparent\n );\n color: var(--color-primary);\n\n ${StyledPillIcon} {\n color: var(--color-primary);\n }\n\n &:hover,\n &:focus-visible {\n background-color: color-mix(\n in srgb,\n var(--color-primary) 25%,\n transparent\n );\n color: var(--color-primary);\n }\n `;\n case \"raised\":\n return css`\n && {\n gap: 6px;\n font-weight: 600;\n }\n\n border: 1px solid var(--color-theme-400);\n background-color: var(--color-theme-200);\n box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);\n color: var(--color-theme-900);\n\n ${StyledPillIcon} {\n color: inherit;\n }\n\n @supports (color: light-dark(red, red)) {\n border-color: light-dark(var(--color-theme-400), #494e59);\n background-color: transparent;\n background-image: linear-gradient(\n light-dark(#ffffff, #3a3f49),\n light-dark(#f3f4f6, #31353e)\n );\n color: light-dark(var(--color-theme-900), #eceef1);\n\n &:hover {\n background-image: linear-gradient(\n light-dark(#f8f9fa, #444a55),\n light-dark(#eceef1, #3a3f49)\n );\n }\n }\n\n &:focus-visible {\n outline: 2px solid var(--color-primary);\n outline-offset: 1px;\n }\n\n &[aria-expanded=\"true\"] {\n background-image: none;\n }\n `;\n case \"primary\":\n return css`\n && {\n gap: 6px;\n font-weight: 600;\n }\n\n border: 1px solid var(--color-primary);\n background-color: var(--color-primary);\n background-image: linear-gradient(\n var(--color-primary-800),\n var(--color-primary)\n );\n box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);\n color: var(--page-paper-main);\n\n ${StyledPillIcon} {\n color: inherit;\n }\n\n &:hover {\n background-color: var(--color-primary-800);\n background-image: none;\n }\n\n &:focus-visible {\n outline: 2px solid var(--color-primary);\n outline-offset: 1px;\n }\n `;\n case \"well\":\n return css`\n && {\n gap: 6px;\n font-weight: 600;\n }\n\n border: 1px solid var(--color-theme-400);\n background-color: var(--body-bg-main);\n color: var(--color-theme-900);\n\n ${StyledPillIcon} {\n color: inherit;\n }\n\n &:focus-visible {\n outline: 2px solid var(--color-primary);\n outline-offset: 1px;\n }\n `;\n case \"ghost\":\n return css`\n background-color: transparent;\n\n .c-pill-host:hover &.c-pill-button--ghost,\n &:focus-visible {\n background-color: var(--pill-background);\n }\n\n .c-pill-host:hover &.c-pill-button--ghost:hover,\n &:hover {\n background-color: var(--pill-background-hover);\n ${hoverTextStyle}\n }\n `;\n case \"outlined\":\n return css`\n background-color: transparent;\n border: 1px solid var(--color-theme-700);\n\n &:hover,\n &:focus-visible {\n border-color: var(--color-primary);\n color: var(--color-primary);\n\n ${StyledPillIcon} {\n color: var(--color-primary);\n }\n }\n `;\n default:\n return css`\n background-color: var(--pill-background);\n\n &:hover,\n &:focus-visible {\n background-color: var(--pill-background-hover);\n ${hoverTextStyle}\n }\n `;\n }\n};\n\nconst compactStyle = css`\n ${StyledPillPlaceholder} {\n display: none;\n }\n`;\n\nconst PILL_HEIGHTS = {\n xsmall: \"18px\",\n small: \"24px\",\n dense: \"24px\",\n medium: \"26px\",\n};\n\nconst denseStyle = css`\n gap: 4px;\n --c-pill-padding-x: 11px;\n font-size: calc(0.75rem * var(--text-scale, 1));\n\n ${StyledPillIcon} svg {\n width: 12px;\n height: 12px;\n }\n`;\n\n/* The size of a type chip: small caps of an object type or a state switch. */\nconst xsmallStyle = css`\n gap: 3px;\n --c-pill-padding-x: 6px;\n font-size: calc(0.625rem * var(--text-scale, 1));\n font-weight: 600;\n\n ${StyledPillIcon} svg {\n width: 12px;\n height: 12px;\n }\n`;\n\nexport const StyledPillButton = styled.button<StyledPillButtonProps>`\n ${FontStyle}\n ${BoxSizingStyle}\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: 6px;\n flex-shrink: 0;\n max-width: 100%;\n height: ${(props) => PILL_HEIGHTS[props.$size]};\n margin: 0;\n --c-pill-padding-x: ${(props) => (props.$inset === \"tight\" ? \"6px\" : \"10px\")};\n padding: 0 var(--c-pill-padding-x);\n border: none;\n border-radius: var(--ac-br-rounded);\n font-size: calc(0.875rem * var(--text-scale, 1));\n font-weight: 500;\n line-height: 1;\n white-space: nowrap;\n color: ${(props) =>\n props.$empty ? \"var(--color-theme-700)\" : \"var(--color-theme-800)\"};\n cursor: pointer;\n user-select: none;\n\n &:focus {\n outline: none;\n }\n\n &:disabled {\n cursor: default;\n opacity: ${(props) => (props.$dimDisabled ? \"50%\" : \"100%\")};\n pointer-events: none;\n }\n\n ${(props) => toneStyle(props.$tone)}\n\n ${(props) =>\n props.$tone === \"ghost\" &&\n props.$empty &&\n css`\n ${StyledPillIcon}, ${StyledPillPlaceholder} {\n opacity: 0;\n }\n\n .c-pill-host:hover &.c-pill-button--ghost,\n &:hover,\n &:focus-visible,\n &[aria-expanded=\"true\"] {\n ${StyledPillIcon}, ${StyledPillPlaceholder} {\n opacity: 1;\n }\n }\n `}\n\n ${(props) =>\n props.$iconOnly &&\n css`\n width: ${props.$tone === \"raised\" ? \"28px\" : \"36px\"};\n padding: 0;\n\n ${StyledPillIcon} svg {\n width: 16px;\n height: 16px;\n }\n `}\n\n ${(props) => props.$size === \"xsmall\" && xsmallStyle}\n\n ${(props) => props.$size === \"dense\" && denseStyle}\n\n ${(props) => props.$compact === true && compactStyle}\n\n ${(props) =>\n props.$compact === \"mobile\" &&\n css`\n @media (max-width: 768px) {\n ${compactStyle}\n }\n `}\n\n /* An active pill keeps its look on hover and focus. */\n ${(props) =>\n props.$active &&\n css`\n &,\n &:hover,\n &:focus-visible {\n ${activeStyle(props.$tone)}\n }\n `}\n\n /* Last, so an open trigger shows the active look in every tone. */\n &[aria-haspopup][aria-expanded=\"true\"],\n .c-pill-host:hover &[aria-haspopup][aria-expanded=\"true\"] {\n ${(props) =>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K,CAACM,SAAS,IACfjC,GAAG,6DACQ2B,KAAK,CAACK,KAAK,KAAK,QAAQ,GAAG,MAAM,GAAG,MAAM,EAGjD7B,cAAc,CAIjB,EAEAwB,KAAK,IAAKA,KAAK,CAACC,KAAK,KAAK,QAAQ,IAAIJ,WAAW,EAEjDG,KAAK,IAAKA,KAAK,CAACC,KAAK,KAAK,OAAO,IAAIL,UAAU,EAE/CI,KAAK,IAAKA,KAAK,CAACO,QAAQ,KAAK,IAAI,IAAIjB,YAAY,EAEjDU,KAAK,IACNA,KAAK,CAACO,QAAQ,KAAK,QAAQ,IAC3BlC,GAAG,qCAEGiB,YAAY,CAEjB,EAGAU,KAAK,IACNA,KAAK,CAACQ,OAAO,IACbnC,GAAG,sCAIGc,WAAW,CAACa,KAAK,CAACK,KAAK,CAAC,CAE7B,EAKEL,KAAK,IAAKb,WAAW,CAACa,KAAK,CAACK,KAAK,CAAC,CAExC;AAEDP,gBAAgB,CAACnB,WAAW,GAAG,kBAAkB","ignoreList":[]}
1
+ {"version":3,"file":"Styles.js","names":["styled","css","BoxSizingStyle","FontStyle","StyledPillIcon","span","withConfig","displayName","componentId","StyledPillPlaceholder","ACTIVE_COLORS","alert","warning","activeColors","tone","activeStyle","hoverTextStyle","toneStyle","compactStyle","PILL_HEIGHTS","xsmall","tag","small","dense","medium","denseStyle","xsmallStyle","StyledPillButton","button","props","$size","$inset","$empty","$dimDisabled","$tone","$iconOnly","$compact","$active"],"sources":["../../../../src/components/PillButton/Styles.ts"],"sourcesContent":["import styled, { css } from \"styled-components\";\n\nimport { PillButtonProps } from \"./PillButton\";\nimport { BoxSizingStyle } from \"../BoxSizingStyle\";\nimport { FontStyle } from \"../FontStyle\";\n\ninterface StyledPillButtonProps {\n $tone: NonNullable<PillButtonProps[\"tone\"]>;\n $active: boolean;\n $empty: boolean;\n $iconOnly: boolean;\n $compact: PillButtonProps[\"compact\"];\n $size: NonNullable<PillButtonProps[\"size\"]>;\n $inset: NonNullable<PillButtonProps[\"inset\"]>;\n $dimDisabled: boolean;\n}\n\nexport const StyledPillIcon = styled.span`\n display: inline-flex;\n flex-shrink: 0;\n color: var(--color-theme-600);\n\n svg {\n width: 18px;\n height: 18px;\n fill: currentColor;\n }\n`;\n\nStyledPillIcon.displayName = \"StyledPillIcon\";\n\nexport const StyledPillPlaceholder = styled.span`\n overflow: hidden;\n text-overflow: ellipsis;\n`;\n\nStyledPillPlaceholder.displayName = \"StyledPillPlaceholder\";\n\nconst ACTIVE_COLORS = {\n alert: [\"var(--alert-surface-subtle)\", \"var(--red-alert)\"],\n warning: [\"var(--note-bg)\", \"var(--warning-text)\"],\n};\n\nconst activeColors = (tone: StyledPillButtonProps[\"$tone\"]) =>\n tone === \"alert\" || tone === \"warning\"\n ? ACTIVE_COLORS[tone]\n : [\"var(--pill-background-active)\", \"var(--color-primary)\"];\n\nconst activeStyle = (tone: StyledPillButtonProps[\"$tone\"]) => css`\n background-color: ${activeColors(tone)[0]};\n color: ${activeColors(tone)[1]};\n\n ${StyledPillIcon} {\n color: ${activeColors(tone)[1]};\n }\n\n /* An icon in the value takes the color of the text too, its outline as well. */\n svg {\n fill: currentColor;\n }\n\n svg [stroke]:not([stroke=\"none\"]) {\n stroke: currentColor;\n }\n`;\n\nconst hoverTextStyle = css`\n color: var(--color-theme-900);\n\n ${StyledPillIcon} {\n color: var(--color-theme-900);\n }\n`;\n\nconst toneStyle = (tone: StyledPillButtonProps[\"$tone\"]) => {\n switch (tone) {\n case \"alternate\":\n return css`\n background-color: var(--color-theme-300);\n\n &:hover,\n &:focus-visible {\n background-color: var(--color-theme-400);\n ${hoverTextStyle}\n }\n `;\n case \"accent\":\n return css`\n background-color: color-mix(\n in srgb,\n var(--color-primary) 15%,\n transparent\n );\n color: var(--color-primary);\n\n ${StyledPillIcon} {\n color: var(--color-primary);\n }\n\n &:hover,\n &:focus-visible {\n background-color: color-mix(\n in srgb,\n var(--color-primary) 25%,\n transparent\n );\n color: var(--color-primary);\n }\n `;\n case \"raised\":\n return css`\n && {\n gap: 6px;\n font-weight: 600;\n }\n\n border: 1px solid var(--color-theme-400);\n background-color: var(--color-theme-200);\n box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);\n color: var(--color-theme-900);\n\n ${StyledPillIcon} {\n color: inherit;\n }\n\n @supports (color: light-dark(red, red)) {\n border-color: light-dark(var(--color-theme-400), #494e59);\n background-color: transparent;\n background-image: linear-gradient(\n light-dark(#ffffff, #3a3f49),\n light-dark(#f3f4f6, #31353e)\n );\n color: light-dark(var(--color-theme-900), #eceef1);\n\n &:hover {\n background-image: linear-gradient(\n light-dark(#f8f9fa, #444a55),\n light-dark(#eceef1, #3a3f49)\n );\n }\n }\n\n &:focus-visible {\n outline: 2px solid var(--color-primary);\n outline-offset: 1px;\n }\n\n &[aria-expanded=\"true\"] {\n background-image: none;\n }\n `;\n case \"primary\":\n return css`\n && {\n gap: 6px;\n font-weight: 600;\n }\n\n border: 1px solid var(--color-primary);\n background-color: var(--color-primary);\n background-image: linear-gradient(\n var(--color-primary-800),\n var(--color-primary)\n );\n box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);\n color: var(--page-paper-main);\n\n ${StyledPillIcon} {\n color: inherit;\n }\n\n &:hover {\n background-color: var(--color-primary-800);\n background-image: none;\n }\n\n &:focus-visible {\n outline: 2px solid var(--color-primary);\n outline-offset: 1px;\n }\n `;\n case \"well\":\n return css`\n && {\n gap: 6px;\n font-weight: 600;\n }\n\n border: 1px solid var(--color-theme-400);\n background-color: var(--body-bg-main);\n color: var(--color-theme-900);\n\n ${StyledPillIcon} {\n color: inherit;\n }\n\n &:focus-visible {\n outline: 2px solid var(--color-primary);\n outline-offset: 1px;\n }\n `;\n case \"ghost\":\n return css`\n background-color: transparent;\n\n .c-pill-host:hover &.c-pill-button--ghost,\n &:focus-visible {\n background-color: var(--pill-background);\n }\n\n .c-pill-host:hover &.c-pill-button--ghost:hover,\n &:hover {\n background-color: var(--pill-background-hover);\n ${hoverTextStyle}\n }\n `;\n case \"outlined\":\n return css`\n background-color: transparent;\n border: 1px solid var(--color-theme-700);\n\n &:hover,\n &:focus-visible {\n border-color: var(--color-primary);\n color: var(--color-primary);\n\n ${StyledPillIcon} {\n color: var(--color-primary);\n }\n }\n `;\n default:\n return css`\n background-color: var(--pill-background);\n\n &:hover,\n &:focus-visible {\n background-color: var(--pill-background-hover);\n ${hoverTextStyle}\n }\n `;\n }\n};\n\nconst compactStyle = css`\n ${StyledPillPlaceholder} {\n display: none;\n }\n`;\n\nconst PILL_HEIGHTS = {\n xsmall: \"18px\",\n tag: \"22px\",\n small: \"24px\",\n dense: \"24px\",\n medium: \"26px\",\n};\n\nconst denseStyle = css`\n gap: 4px;\n --c-pill-padding-x: 11px;\n font-size: calc(0.75rem * var(--text-scale, 1));\n\n ${StyledPillIcon} svg {\n width: 12px;\n height: 12px;\n }\n`;\n\n/* The size of a type chip: small caps of an object type or a state switch. */\nconst xsmallStyle = css`\n gap: 3px;\n --c-pill-padding-x: 6px;\n font-size: calc(0.625rem * var(--text-scale, 1));\n font-weight: 600;\n\n ${StyledPillIcon} svg {\n width: 12px;\n height: 12px;\n }\n`;\n\nexport const StyledPillButton = styled.button<StyledPillButtonProps>`\n ${FontStyle}\n ${BoxSizingStyle}\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: 6px;\n flex-shrink: 0;\n max-width: 100%;\n height: ${(props) => PILL_HEIGHTS[props.$size]};\n margin: 0;\n --c-pill-padding-x: ${(props) => (props.$inset === \"tight\" ? \"6px\" : \"10px\")};\n padding: 0 var(--c-pill-padding-x);\n border: none;\n border-radius: var(--ac-br-rounded);\n font-size: calc(0.875rem * var(--text-scale, 1));\n font-weight: 500;\n line-height: 1;\n white-space: nowrap;\n color: ${(props) =>\n props.$empty ? \"var(--color-theme-700)\" : \"var(--color-theme-800)\"};\n cursor: pointer;\n user-select: none;\n\n &:focus {\n outline: none;\n }\n\n &:disabled {\n cursor: default;\n opacity: ${(props) => (props.$dimDisabled ? \"50%\" : \"100%\")};\n pointer-events: none;\n }\n\n ${(props) => toneStyle(props.$tone)}\n\n ${(props) =>\n props.$tone === \"ghost\" &&\n props.$empty &&\n css`\n ${StyledPillIcon}, ${StyledPillPlaceholder} {\n opacity: 0;\n }\n\n .c-pill-host:hover &.c-pill-button--ghost,\n &:hover,\n &:focus-visible,\n &[aria-expanded=\"true\"] {\n ${StyledPillIcon}, ${StyledPillPlaceholder} {\n opacity: 1;\n }\n }\n `}\n\n ${(props) =>\n props.$iconOnly &&\n css`\n width: ${props.$tone === \"raised\" ? \"28px\" : \"36px\"};\n padding: 0;\n\n ${StyledPillIcon} svg {\n width: 16px;\n height: 16px;\n }\n `}\n\n ${(props) =>\n (props.$size === \"xsmall\" || props.$size === \"tag\") && xsmallStyle}\n\n ${(props) => props.$size === \"dense\" && denseStyle}\n\n ${(props) => props.$compact === true && compactStyle}\n\n ${(props) =>\n props.$compact === \"mobile\" &&\n css`\n @media (max-width: 768px) {\n ${compactStyle}\n }\n `}\n\n /* An active pill keeps its look on hover and focus. */\n ${(props) =>\n props.$active &&\n css`\n &,\n &:hover,\n &:focus-visible {\n ${activeStyle(props.$tone)}\n }\n `}\n\n /* Last, so an open trigger shows the active look in every tone. */\n &[aria-haspopup][aria-expanded=\"true\"],\n .c-pill-host:hover &[aria-haspopup][aria-expanded=\"true\"] {\n ${(props) => activeStyle(props.$tone)}\n }\n`;\n\nStyledPillButton.displayName = \"StyledPillButton\";\n"],"mappings":"AAAA,OAAOA,MAAM,IAAIC,GAAG,QAAQ,mBAAmB;AAG/C,SAASC,cAAc,QAAQ,mBAAmB;AAClD,SAASC,SAAS,QAAQ,cAAc;AAaxC,OAAO,MAAMC,cAAc,GAAGJ,MAAM,CAACK,IAAI,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,qHAUxC;AAEDJ,cAAc,CAACG,WAAW,GAAG,gBAAgB;AAE7C,OAAO,MAAME,qBAAqB,GAAGT,MAAM,CAACK,IAAI,CAAAC,UAAA;EAAAC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AK,CAACO,QAAQ,KAAK,QAAQ,IAC3BnC,GAAG,qCAEGiB,YAAY,CAEjB,EAGAW,KAAK,IACNA,KAAK,CAACQ,OAAO,IACbpC,GAAG,sCAIGc,WAAW,CAACc,KAAK,CAACK,KAAK,CAAC,CAE7B,EAKEL,KAAK,IAAKd,WAAW,CAACc,KAAK,CAACK,KAAK,CAAC,CAExC;AAEDP,gBAAgB,CAACpB,WAAW,GAAG,kBAAkB","ignoreList":[]}
@@ -1,7 +1,7 @@
1
1
  import React, { ComponentPropsWithoutRef } from "react";
2
2
  export interface PillGroupProps extends ComponentPropsWithoutRef<"div"> {
3
- /** "soft" joins filled pills with small gaps. "outlined" puts them in one frame with dividers. "raised" sticks raised pills together. */
4
- appearance?: "soft" | "outlined" | "raised";
3
+ /** "soft" joins filled pills with small gaps. "strong" is "soft" with a stronger fill in the light theme, for pills on a white surface. "outlined" puts them in one frame with dividers. "raised" sticks raised pills together. */
4
+ appearance?: "soft" | "strong" | "outlined" | "raised";
5
5
  }
6
6
  /**
7
7
  * @component PillGroup
@@ -1 +1 @@
1
- {"version":3,"file":"PillGroup.d.ts","sourceRoot":"","sources":["../../../../src/components/PillGroup/PillGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,wBAAwB,EAAc,MAAM,OAAO,CAAC;AAMpE,MAAM,WAAW,cAAe,SAAQ,wBAAwB,CAAC,KAAK,CAAC;IACrE,yIAAyI;IACzI,UAAU,CAAC,EAAE,MAAM,GAAG,UAAU,GAAG,QAAQ,CAAC;CAC7C;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,SAAS,uFAgBrB,CAAC"}
1
+ {"version":3,"file":"PillGroup.d.ts","sourceRoot":"","sources":["../../../../src/components/PillGroup/PillGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,wBAAwB,EAAc,MAAM,OAAO,CAAC;AAMpE,MAAM,WAAW,cAAe,SAAQ,wBAAwB,CAAC,KAAK,CAAC;IACrE,mOAAmO;IACnO,UAAU,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,UAAU,GAAG,QAAQ,CAAC;CACxD;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,SAAS,uFAgBrB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"PillGroup.js","names":["React","forwardRef","classnames","StyledPillGroup","PillGroup","_ref","ref","_ref$appearance","appearance","className","children","args","_objectWithoutPropertiesLoose","_excluded","createElement","_extends","role","$appearance","displayName"],"sources":["../../../../src/components/PillGroup/PillGroup.tsx"],"sourcesContent":["import React, { ComponentPropsWithoutRef, forwardRef } from \"react\";\n\nimport classnames from \"classnames\";\n\nimport { StyledPillGroup } from \"./Styles\";\n\nexport interface PillGroupProps extends ComponentPropsWithoutRef<\"div\"> {\n /** \"soft\" joins filled pills with small gaps. \"outlined\" puts them in one frame with dividers. \"raised\" sticks raised pills together. */\n appearance?: \"soft\" | \"outlined\" | \"raised\";\n}\n\n/**\n * @component PillGroup\n * @description\n * Joins PillButton children into one segmented control. The outer pills keep their round ends.\n * A child may wrap its pill, for example in a Tooltip or a picker, the group still finds it.\n *\n * @example\n * <PillGroup aria-label=\"Task fields\">\n * <PillButton icon={<PersonPlusIcon />} placeholder=\"Assignee\" />\n * <PillButton icon={<CalendarIcon />} placeholder=\"Dates\" />\n * </PillGroup>\n */\nexport const PillGroup = forwardRef<HTMLDivElement, PillGroupProps>(\n ({ appearance = \"soft\", className, children, ...args }, ref) => (\n <StyledPillGroup\n ref={ref}\n role=\"group\"\n className={classnames(\n \"c-pill-group\",\n `c-pill-group--${appearance}`,\n className\n )}\n $appearance={appearance}\n {...args}\n >\n {children}\n </StyledPillGroup>\n )\n);\n\nPillGroup.displayName = \"PillGroup\";\n"],"mappings":";;;AAAA,OAAOA,KAAK,IAA8BC,UAAU,QAAQ,OAAO;AAEnE,OAAOC,UAAU,MAAM,YAAY;AAEnC,SAASC,eAAe,QAAQ,UAAU;AAO1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,SAAS,gBAAGH,UAAU,CACjC,CAAAI,IAAA,EAAwDC,GAAG;EAAA,IAAAC,eAAA,GAAAF,IAAA,CAAxDG,UAAU;IAAVA,UAAU,GAAAD,eAAA,cAAG,MAAM,GAAAA,eAAA;IAAEE,SAAS,GAAAJ,IAAA,CAATI,SAAS;IAAEC,QAAQ,GAAAL,IAAA,CAARK,QAAQ;IAAKC,IAAI,GAAAC,6BAAA,CAAAP,IAAA,EAAAQ,SAAA;EAAA,oBAClDb,KAAA,CAAAc,aAAA,CAACX,eAAe,EAAAY,QAAA;IACdT,GAAG,EAAEA,GAAI;IACTU,IAAI,EAAC,OAAO;IACZP,SAAS,EAAEP,UAAU,CACnB,cAAc,qBACGM,UAAU,EAC3BC,SACF,CAAE;IACFQ,WAAW,EAAET;EAAW,GACpBG,IAAI,GAEPD,QACc,CAAC;AAAA,CAEtB,CAAC;AAEDN,SAAS,CAACc,WAAW,GAAG,WAAW","ignoreList":[]}
1
+ {"version":3,"file":"PillGroup.js","names":["React","forwardRef","classnames","StyledPillGroup","PillGroup","_ref","ref","_ref$appearance","appearance","className","children","args","_objectWithoutPropertiesLoose","_excluded","createElement","_extends","role","$appearance","displayName"],"sources":["../../../../src/components/PillGroup/PillGroup.tsx"],"sourcesContent":["import React, { ComponentPropsWithoutRef, forwardRef } from \"react\";\n\nimport classnames from \"classnames\";\n\nimport { StyledPillGroup } from \"./Styles\";\n\nexport interface PillGroupProps extends ComponentPropsWithoutRef<\"div\"> {\n /** \"soft\" joins filled pills with small gaps. \"strong\" is \"soft\" with a stronger fill in the light theme, for pills on a white surface. \"outlined\" puts them in one frame with dividers. \"raised\" sticks raised pills together. */\n appearance?: \"soft\" | \"strong\" | \"outlined\" | \"raised\";\n}\n\n/**\n * @component PillGroup\n * @description\n * Joins PillButton children into one segmented control. The outer pills keep their round ends.\n * A child may wrap its pill, for example in a Tooltip or a picker, the group still finds it.\n *\n * @example\n * <PillGroup aria-label=\"Task fields\">\n * <PillButton icon={<PersonPlusIcon />} placeholder=\"Assignee\" />\n * <PillButton icon={<CalendarIcon />} placeholder=\"Dates\" />\n * </PillGroup>\n */\nexport const PillGroup = forwardRef<HTMLDivElement, PillGroupProps>(\n ({ appearance = \"soft\", className, children, ...args }, ref) => (\n <StyledPillGroup\n ref={ref}\n role=\"group\"\n className={classnames(\n \"c-pill-group\",\n `c-pill-group--${appearance}`,\n className\n )}\n $appearance={appearance}\n {...args}\n >\n {children}\n </StyledPillGroup>\n )\n);\n\nPillGroup.displayName = \"PillGroup\";\n"],"mappings":";;;AAAA,OAAOA,KAAK,IAA8BC,UAAU,QAAQ,OAAO;AAEnE,OAAOC,UAAU,MAAM,YAAY;AAEnC,SAASC,eAAe,QAAQ,UAAU;AAO1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,SAAS,gBAAGH,UAAU,CACjC,CAAAI,IAAA,EAAwDC,GAAG;EAAA,IAAAC,eAAA,GAAAF,IAAA,CAAxDG,UAAU;IAAVA,UAAU,GAAAD,eAAA,cAAG,MAAM,GAAAA,eAAA;IAAEE,SAAS,GAAAJ,IAAA,CAATI,SAAS;IAAEC,QAAQ,GAAAL,IAAA,CAARK,QAAQ;IAAKC,IAAI,GAAAC,6BAAA,CAAAP,IAAA,EAAAQ,SAAA;EAAA,oBAClDb,KAAA,CAAAc,aAAA,CAACX,eAAe,EAAAY,QAAA;IACdT,GAAG,EAAEA,GAAI;IACTU,IAAI,EAAC,OAAO;IACZP,SAAS,EAAEP,UAAU,CACnB,cAAc,qBACGM,UAAU,EAC3BC,SACF,CAAE;IACFQ,WAAW,EAAET;EAAW,GACpBG,IAAI,GAEPD,QACc,CAAC;AAAA,CAEtB,CAAC;AAEDN,SAAS,CAACc,WAAW,GAAG,WAAW","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"Styles.d.ts","sourceRoot":"","sources":["../../../../src/components/PillGroup/Styles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAY7C,eAAO,MAAM,eAAe;iBACb,WAAW,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC;SA0FvD,CAAC"}
1
+ {"version":3,"file":"Styles.d.ts","sourceRoot":"","sources":["../../../../src/components/PillGroup/Styles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAa7C,eAAO,MAAM,eAAe;iBACb,WAAW,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC;SAsGvD,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import styled, { css } from "styled-components";
2
+ import { DARK_THEME_SELECTOR } from "../../utils/themes";
2
3
  import { BoxSizingStyle } from "../BoxSizingStyle";
3
4
  const first = "& > .c-pill-button:first-child, & > :first-child .c-pill-button";
4
5
  const last = "& > .c-pill-button:last-child, & > :last-child .c-pill-button";
@@ -8,6 +9,6 @@ const lastText = "& > .c-pill-button:not(.c-pill-button--icon-only):last-child,
8
9
  export const StyledPillGroup = styled.div.withConfig({
9
10
  displayName: "Styles__StyledPillGroup",
10
11
  componentId: "sc-1x5hpq8-0"
11
- })(["", " display:inline-flex;align-items:stretch;flex-shrink:0;max-width:100%;& > *{display:inline-flex;min-width:0;}.c-pill-button{border-radius:0;}", "{border-top-left-radius:var(--ac-br-rounded);border-bottom-left-radius:var(--ac-br-rounded);}", "{border-top-right-radius:var(--ac-br-rounded);border-bottom-right-radius:var(--ac-br-rounded);}", "{padding-left:calc(var(--c-pill-padding-x,10px) + 4px);}", "{padding-right:calc(var(--c-pill-padding-x,10px) + 4px);}", " ", " ", ""], BoxSizingStyle, first, last, firstText, lastText, props => props.$appearance === "soft" && css(["gap:2px;"]), props => props.$appearance === "raised" && css(["border-radius:var(--ac-br-rounded);box-shadow:0 1px 1px rgba(0,0,0,0.22);", "{width:auto;padding-left:7px;padding-right:calc(var(--c-pill-padding-x,10px) + 4px);}& > * + *{margin-left:-1px;}.c-pill-button:hover,.c-pill-button:focus-visible{position:relative;z-index:1;}"], lastIconOnly), props => props.$appearance === "outlined" && css(["border:1px solid var(--pill-border);border-radius:var(--ac-br-6);overflow:hidden;.c-pill-button{height:24px;}.c-pill-button:not(.c-pill-button--accent){background-color:transparent;}", ",", "{border-radius:0;}& > * + *{border-left:1px solid var(--pill-border);}"], first, last));
12
+ })(["", " display:inline-flex;align-items:stretch;flex-shrink:0;max-width:100%;& > *{display:inline-flex;min-width:0;}.c-pill-button{border-radius:0;}", "{border-top-left-radius:var(--ac-br-rounded);border-bottom-left-radius:var(--ac-br-rounded);}", "{border-top-right-radius:var(--ac-br-rounded);border-bottom-right-radius:var(--ac-br-rounded);}", "{padding-left:calc(var(--c-pill-padding-x,10px) + 4px);}", "{padding-right:calc(var(--c-pill-padding-x,10px) + 4px);}", " ", " ", " ", ""], BoxSizingStyle, first, last, firstText, lastText, props => (props.$appearance === "soft" || props.$appearance === "strong") && css(["gap:2px;"]), props => props.$appearance === "strong" && css(["--pill-background:rgba(48,48,55,0.1);--pill-background-hover:rgba(48,48,55,0.15);", " &{--pill-background:inherit;--pill-background-hover:inherit;}"], DARK_THEME_SELECTOR), props => props.$appearance === "raised" && css(["border-radius:var(--ac-br-rounded);box-shadow:0 1px 1px rgba(0,0,0,0.22);", "{width:auto;padding-left:7px;padding-right:calc(var(--c-pill-padding-x,10px) + 4px);}& > * + *{margin-left:-1px;}.c-pill-button:hover,.c-pill-button:focus-visible{position:relative;z-index:1;}"], lastIconOnly), props => props.$appearance === "outlined" && css(["border:1px solid var(--pill-border);border-radius:var(--ac-br-6);overflow:hidden;.c-pill-button{height:24px;}.c-pill-button:not(.c-pill-button--accent){background-color:transparent;}", ",", "{border-radius:0;}& > * + *{border-left:1px solid var(--pill-border);}"], first, last));
12
13
  StyledPillGroup.displayName = "StyledPillGroup";
13
14
  //# sourceMappingURL=Styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Styles.js","names":["styled","css","BoxSizingStyle","first","last","firstText","lastIconOnly","lastText","StyledPillGroup","div","withConfig","displayName","componentId","props","$appearance"],"sources":["../../../../src/components/PillGroup/Styles.ts"],"sourcesContent":["import styled, { css } from \"styled-components\";\n\nimport { PillGroupProps } from \"./PillGroup\";\nimport { BoxSizingStyle } from \"../BoxSizingStyle\";\n\nconst first = \"& > .c-pill-button:first-child, & > :first-child .c-pill-button\";\nconst last = \"& > .c-pill-button:last-child, & > :last-child .c-pill-button\";\nconst firstText =\n \"& > .c-pill-button:not(.c-pill-button--icon-only):first-child, & > :first-child .c-pill-button:not(.c-pill-button--icon-only)\";\nconst lastIconOnly =\n \"& > .c-pill-button--icon-only:last-child, & > :last-child .c-pill-button--icon-only\";\nconst lastText =\n \"& > .c-pill-button:not(.c-pill-button--icon-only):last-child, & > :last-child .c-pill-button:not(.c-pill-button--icon-only)\";\n\nexport const StyledPillGroup = styled.div<{\n $appearance: NonNullable<PillGroupProps[\"appearance\"]>;\n}>`\n ${BoxSizingStyle}\n display: inline-flex;\n align-items: stretch;\n flex-shrink: 0;\n max-width: 100%;\n\n & > * {\n display: inline-flex;\n min-width: 0;\n }\n\n .c-pill-button {\n border-radius: 0;\n }\n\n ${first} {\n border-top-left-radius: var(--ac-br-rounded);\n border-bottom-left-radius: var(--ac-br-rounded);\n }\n\n ${last} {\n border-top-right-radius: var(--ac-br-rounded);\n border-bottom-right-radius: var(--ac-br-rounded);\n }\n\n /* The round ends of the group get 4px more room inside, so the first and last labels do not crowd the curve. */\n ${firstText} {\n padding-left: calc(var(--c-pill-padding-x, 10px) + 4px);\n }\n\n ${lastText} {\n padding-right: calc(var(--c-pill-padding-x, 10px) + 4px);\n }\n\n ${(props) =>\n props.$appearance === \"soft\" &&\n css`\n gap: 2px;\n `}\n\n ${(props) =>\n props.$appearance === \"raised\" &&\n css`\n border-radius: var(--ac-br-rounded);\n box-shadow: 0 1px 1px rgba(0, 0, 0, 0.22);\n\n /* An icon at the round end gets the same room as the first label. */\n ${lastIconOnly} {\n width: auto;\n padding-left: 7px;\n padding-right: calc(var(--c-pill-padding-x, 10px) + 4px);\n }\n\n /* The neighbors share one border. */\n & > * + * {\n margin-left: -1px;\n }\n\n .c-pill-button:hover,\n .c-pill-button:focus-visible {\n position: relative;\n z-index: 1;\n }\n `}\n\n ${(props) =>\n props.$appearance === \"outlined\" &&\n css`\n border: 1px solid var(--pill-border);\n border-radius: var(--ac-br-6);\n overflow: hidden;\n\n .c-pill-button {\n height: 24px;\n }\n\n .c-pill-button:not(.c-pill-button--accent) {\n background-color: transparent;\n }\n\n ${first}, ${last} {\n border-radius: 0;\n }\n\n & > * + * {\n border-left: 1px solid var(--pill-border);\n }\n `}\n`;\n\nStyledPillGroup.displayName = \"StyledPillGroup\";\n"],"mappings":"AAAA,OAAOA,MAAM,IAAIC,GAAG,QAAQ,mBAAmB;AAG/C,SAASC,cAAc,QAAQ,mBAAmB;AAElD,MAAMC,KAAK,GAAG,iEAAiE;AAC/E,MAAMC,IAAI,GAAG,+DAA+D;AAC5E,MAAMC,SAAS,GACb,+HAA+H;AACjI,MAAMC,YAAY,GAChB,qFAAqF;AACvF,MAAMC,QAAQ,GACZ,6HAA6H;AAE/H,OAAO,MAAMC,eAAe,GAAGR,MAAM,CAACS,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,qeAGrCV,cAAc,EAedC,KAAK,EAKLC,IAAI,EAMJC,SAAS,EAITE,QAAQ,EAIPM,KAAK,IACNA,KAAK,CAACC,WAAW,KAAK,MAAM,IAC5Bb,GAAG,cAEF,EAEAY,KAAK,IACNA,KAAK,CAACC,WAAW,KAAK,QAAQ,IAC9Bb,GAAG,oRAKCK,YAAY,CAgBf,EAEAO,KAAK,IACNA,KAAK,CAACC,WAAW,KAAK,UAAU,IAChCb,GAAG,4QAaCE,KAAK,EAAKC,IAAI,CAOjB,CACJ;AAEDI,eAAe,CAACG,WAAW,GAAG,iBAAiB","ignoreList":[]}
1
+ {"version":3,"file":"Styles.js","names":["styled","css","DARK_THEME_SELECTOR","BoxSizingStyle","first","last","firstText","lastIconOnly","lastText","StyledPillGroup","div","withConfig","displayName","componentId","props","$appearance"],"sources":["../../../../src/components/PillGroup/Styles.ts"],"sourcesContent":["import styled, { css } from \"styled-components\";\n\nimport { PillGroupProps } from \"./PillGroup\";\nimport { DARK_THEME_SELECTOR } from \"../../utils/themes\";\nimport { BoxSizingStyle } from \"../BoxSizingStyle\";\n\nconst first = \"& > .c-pill-button:first-child, & > :first-child .c-pill-button\";\nconst last = \"& > .c-pill-button:last-child, & > :last-child .c-pill-button\";\nconst firstText =\n \"& > .c-pill-button:not(.c-pill-button--icon-only):first-child, & > :first-child .c-pill-button:not(.c-pill-button--icon-only)\";\nconst lastIconOnly =\n \"& > .c-pill-button--icon-only:last-child, & > :last-child .c-pill-button--icon-only\";\nconst lastText =\n \"& > .c-pill-button:not(.c-pill-button--icon-only):last-child, & > :last-child .c-pill-button:not(.c-pill-button--icon-only)\";\n\nexport const StyledPillGroup = styled.div<{\n $appearance: NonNullable<PillGroupProps[\"appearance\"]>;\n}>`\n ${BoxSizingStyle}\n display: inline-flex;\n align-items: stretch;\n flex-shrink: 0;\n max-width: 100%;\n\n & > * {\n display: inline-flex;\n min-width: 0;\n }\n\n .c-pill-button {\n border-radius: 0;\n }\n\n ${first} {\n border-top-left-radius: var(--ac-br-rounded);\n border-bottom-left-radius: var(--ac-br-rounded);\n }\n\n ${last} {\n border-top-right-radius: var(--ac-br-rounded);\n border-bottom-right-radius: var(--ac-br-rounded);\n }\n\n /* The round ends of the group get 4px more room inside, so the first and last labels do not crowd the curve. */\n ${firstText} {\n padding-left: calc(var(--c-pill-padding-x, 10px) + 4px);\n }\n\n ${lastText} {\n padding-right: calc(var(--c-pill-padding-x, 10px) + 4px);\n }\n\n ${(props) =>\n (props.$appearance === \"soft\" || props.$appearance === \"strong\") &&\n css`\n gap: 2px;\n `}\n\n ${(props) =>\n props.$appearance === \"strong\" &&\n css`\n --pill-background: rgba(48, 48, 55, 0.1);\n --pill-background-hover: rgba(48, 48, 55, 0.15);\n\n ${DARK_THEME_SELECTOR} & {\n --pill-background: inherit;\n --pill-background-hover: inherit;\n }\n `}\n\n ${(props) =>\n props.$appearance === \"raised\" &&\n css`\n border-radius: var(--ac-br-rounded);\n box-shadow: 0 1px 1px rgba(0, 0, 0, 0.22);\n\n /* An icon at the round end gets the same room as the first label. */\n ${lastIconOnly} {\n width: auto;\n padding-left: 7px;\n padding-right: calc(var(--c-pill-padding-x, 10px) + 4px);\n }\n\n /* The neighbors share one border. */\n & > * + * {\n margin-left: -1px;\n }\n\n .c-pill-button:hover,\n .c-pill-button:focus-visible {\n position: relative;\n z-index: 1;\n }\n `}\n\n ${(props) =>\n props.$appearance === \"outlined\" &&\n css`\n border: 1px solid var(--pill-border);\n border-radius: var(--ac-br-6);\n overflow: hidden;\n\n .c-pill-button {\n height: 24px;\n }\n\n .c-pill-button:not(.c-pill-button--accent) {\n background-color: transparent;\n }\n\n ${first}, ${last} {\n border-radius: 0;\n }\n\n & > * + * {\n border-left: 1px solid var(--pill-border);\n }\n `}\n`;\n\nStyledPillGroup.displayName = \"StyledPillGroup\";\n"],"mappings":"AAAA,OAAOA,MAAM,IAAIC,GAAG,QAAQ,mBAAmB;AAG/C,SAASC,mBAAmB,QAAQ,oBAAoB;AACxD,SAASC,cAAc,QAAQ,mBAAmB;AAElD,MAAMC,KAAK,GAAG,iEAAiE;AAC/E,MAAMC,IAAI,GAAG,+DAA+D;AAC5E,MAAMC,SAAS,GACb,+HAA+H;AACjI,MAAMC,YAAY,GAChB,qFAAqF;AACvF,MAAMC,QAAQ,GACZ,6HAA6H;AAE/H,OAAO,MAAMC,eAAe,GAAGT,MAAM,CAACU,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,0eAGrCV,cAAc,EAedC,KAAK,EAKLC,IAAI,EAMJC,SAAS,EAITE,QAAQ,EAIPM,KAAK,IACN,CAACA,KAAK,CAACC,WAAW,KAAK,MAAM,IAAID,KAAK,CAACC,WAAW,KAAK,QAAQ,KAC/Dd,GAAG,cAEF,EAEAa,KAAK,IACNA,KAAK,CAACC,WAAW,KAAK,QAAQ,IAC9Bd,GAAG,0JAICC,mBAAmB,CAItB,EAEAY,KAAK,IACNA,KAAK,CAACC,WAAW,KAAK,QAAQ,IAC9Bd,GAAG,oRAKCM,YAAY,CAgBf,EAEAO,KAAK,IACNA,KAAK,CAACC,WAAW,KAAK,UAAU,IAChCd,GAAG,4QAaCG,KAAK,EAAKC,IAAI,CAOjB,CACJ;AAEDI,eAAe,CAACG,WAAW,GAAG,iBAAiB","ignoreList":[]}
@@ -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,CAG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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,CA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,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,iBAAiB,EACjB,mBAAmB,EACnB,sBAAsB,EACtB,gBAAgB,EA6BjB,MAAM,UAAU,CAAC;AASlB,eAAO,MAAM,sBAAsB,2BAAmC,CAAC;AACvE,eAAO,MAAM,qBAAqB,8BAAkC,CAAC;AACrE,eAAO,MAAM,uBAAuB,eAAoC,CAAC;AAEzE,mHAAmH;AACnH,eAAO,MAAM,kBAAkB,GAAI,sBAGhC;IACD,KAAK,CAAC,EAAE,sBAAsB,CAAC;IAC/B,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,sBAA8E,CAAC;AAEhF,0FAA0F;AAC1F,eAAO,MAAM,mBAAmB,yBAO/B,CAAC;AAEF,MAAM,WAAW,kBAAmB,SAAQ,cAAc,CAAC,cAAc,CAAC;IACxE,uFAAuF;IACvF,OAAO,CAAC,EAAE,mBAAmB,CAAC;IAC9B,uEAAuE;IACvE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,sKAAsK;IACtK,MAAM,CAAC,EAAE,sBAAsB,CAAC;IAChC,uHAAuH;IACvH,KAAK,CAAC,EAAE,iBAAiB,CAAC;IAC1B,qEAAqE;IACrE,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,0GAA0G;IAC1G,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,0EAA0E;IAC1E,UAAU,CAAC,EAAE,eAAe,CAAC;IAC7B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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;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,KAAK,CAAC;AAE5C,OAAO,MAAMyC,sBAAsB,GAAG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AA,CAAAyF,KAAA,EAAAG,UAAA;EAC3D,MAAMZ,UAAU,GAAG3G,uBAAuB,CAAC,CAAC,IAAIsC,QAAQ;EAExD,oBACEpF,KAAA,CAAAoD,aAAA,CAACjB,wBAAwB,EAAA0C,QAAA;IACvBV,IAAI,EAAC;EAAQ,GACTiC,IAAI;IACRhB,QAAQ,EAAEqE,UAAW;IACrBzE,GAAG,EAAEA,GAAI;IACT,iBAAeoF,QAAS;IACxB3G,SAAS,EAAElD,UAAU,CAAC,yBAAyB,EAAEkD,SAAS;EAAE,IAE3DN,QACuB,CAAC;AAE/B,CAAC,CAAC;AAEF8G,kBAAkB,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,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+G,kBAAkB,CAACtG,WAAW,GAAG,oBAAoB;AAQrD;AACA,OAAO,MAAM2G,kBAAkB,GAAGC,KAAA;EAAA,IAAAC,cAAA,GAAAD,KAAA,CAChCE,QAAQ;IAARA,QAAQ,GAAAD,cAAA,cAAG,MAAM,GAAAA,cAAA;IACdrE,IAAI,GAAA3B,6BAAA,CAAA+F,KAAA,EAAAG,UAAA;EAAA,oBAEP3K,KAAA,CAAAoD,aAAA,CAAApD,KAAA,CAAAE,QAAA,qBACEF,KAAA,CAAAoD,aAAA,CAACzC,wBAAwB,EAAAkE,QAAA;IAAC,eAAY;EAAM,GAAKuB,IAAI,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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Q,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":"AAAA,OAAO,KAAK,EAAE,EAIZ,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,iIAAiI;IACjI,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,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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