@activecollab/components 2.0.558 → 2.0.559

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 (65) hide show
  1. package/dist/cjs/components/Icons/collection/OpenBook.js +66 -0
  2. package/dist/cjs/components/Icons/collection/OpenBook.js.map +1 -0
  3. package/dist/cjs/components/Icons/collection/SendBlank.js +3 -1
  4. package/dist/cjs/components/Icons/collection/SendBlank.js.map +1 -1
  5. package/dist/cjs/components/Icons/collection/SendFilled.js +2 -2
  6. package/dist/cjs/components/Icons/collection/SendFilled.js.map +1 -1
  7. package/dist/cjs/components/Icons/collection/index.js +7 -0
  8. package/dist/cjs/components/Icons/collection/index.js.map +1 -1
  9. package/dist/cjs/components/ObjectLayout/ObjectLayout.js +4 -2
  10. package/dist/cjs/components/ObjectLayout/ObjectLayout.js.map +1 -1
  11. package/dist/cjs/components/PillButton/PillButton.js.map +1 -1
  12. package/dist/cjs/components/PillButton/Styles.js +13 -3
  13. package/dist/cjs/components/PillButton/Styles.js.map +1 -1
  14. package/dist/cjs/components/PillGroup/Styles.js +3 -1
  15. package/dist/cjs/components/PillGroup/Styles.js.map +1 -1
  16. package/dist/cjs/components/Sheet/Sheet.js +150 -41
  17. package/dist/cjs/components/Sheet/Sheet.js.map +1 -1
  18. package/dist/cjs/components/Sheet/Styles.js +37 -15
  19. package/dist/cjs/components/Sheet/Styles.js.map +1 -1
  20. package/dist/cjs/hooks/useResizablePanel.js +5 -3
  21. package/dist/cjs/hooks/useResizablePanel.js.map +1 -1
  22. package/dist/esm/components/Icons/collection/OpenBook.d.ts +32 -0
  23. package/dist/esm/components/Icons/collection/OpenBook.d.ts.map +1 -0
  24. package/dist/esm/components/Icons/collection/OpenBook.js +59 -0
  25. package/dist/esm/components/Icons/collection/OpenBook.js.map +1 -0
  26. package/dist/esm/components/Icons/collection/SendBlank.d.ts.map +1 -1
  27. package/dist/esm/components/Icons/collection/SendBlank.js +3 -1
  28. package/dist/esm/components/Icons/collection/SendBlank.js.map +1 -1
  29. package/dist/esm/components/Icons/collection/SendFilled.d.ts.map +1 -1
  30. package/dist/esm/components/Icons/collection/SendFilled.js +2 -2
  31. package/dist/esm/components/Icons/collection/SendFilled.js.map +1 -1
  32. package/dist/esm/components/Icons/collection/index.d.ts +1 -0
  33. package/dist/esm/components/Icons/collection/index.d.ts.map +1 -1
  34. package/dist/esm/components/Icons/collection/index.js +1 -0
  35. package/dist/esm/components/Icons/collection/index.js.map +1 -1
  36. package/dist/esm/components/ObjectLayout/ObjectLayout.d.ts +2 -0
  37. package/dist/esm/components/ObjectLayout/ObjectLayout.d.ts.map +1 -1
  38. package/dist/esm/components/ObjectLayout/ObjectLayout.js +4 -2
  39. package/dist/esm/components/ObjectLayout/ObjectLayout.js.map +1 -1
  40. package/dist/esm/components/PillButton/PillButton.d.ts +2 -2
  41. package/dist/esm/components/PillButton/PillButton.d.ts.map +1 -1
  42. package/dist/esm/components/PillButton/PillButton.js.map +1 -1
  43. package/dist/esm/components/PillButton/Styles.d.ts.map +1 -1
  44. package/dist/esm/components/PillButton/Styles.js +10 -2
  45. package/dist/esm/components/PillButton/Styles.js.map +1 -1
  46. package/dist/esm/components/PillGroup/Styles.d.ts.map +1 -1
  47. package/dist/esm/components/PillGroup/Styles.js +3 -1
  48. package/dist/esm/components/PillGroup/Styles.js.map +1 -1
  49. package/dist/esm/components/Sheet/Sheet.d.ts +11 -0
  50. package/dist/esm/components/Sheet/Sheet.d.ts.map +1 -1
  51. package/dist/esm/components/Sheet/Sheet.js +139 -41
  52. package/dist/esm/components/Sheet/Sheet.js.map +1 -1
  53. package/dist/esm/components/Sheet/Styles.d.ts +3 -0
  54. package/dist/esm/components/Sheet/Styles.d.ts.map +1 -1
  55. package/dist/esm/components/Sheet/Styles.js +35 -13
  56. package/dist/esm/components/Sheet/Styles.js.map +1 -1
  57. package/dist/esm/hooks/useResizablePanel.d.ts +4 -1
  58. package/dist/esm/hooks/useResizablePanel.d.ts.map +1 -1
  59. package/dist/esm/hooks/useResizablePanel.js +5 -3
  60. package/dist/esm/hooks/useResizablePanel.js.map +1 -1
  61. package/dist/index.js +783 -580
  62. package/dist/index.js.map +1 -1
  63. package/dist/index.min.js +1 -1
  64. package/dist/index.min.js.map +1 -1
  65. package/package.json +1 -1
@@ -11,7 +11,7 @@ export const StyledPillPlaceholder = styled.span.withConfig({
11
11
  componentId: "sc-14yhio0-1"
12
12
  })(["overflow:hidden;text-overflow:ellipsis;"]);
13
13
  StyledPillPlaceholder.displayName = "StyledPillPlaceholder";
14
- const activeStyle = css(["background-color:var(--pill-background-active);color:var(--color-primary);", "{color:var(--color-primary);}"], StyledPillIcon);
14
+ const activeStyle = css(["background-color:var(--pill-background-active);color:var(--color-primary);", "{color:var(--color-primary);}svg{fill:currentColor;}svg [stroke]:not([stroke=\"none\"]){stroke:currentColor;}"], StyledPillIcon);
15
15
  const hoverTextStyle = css(["color:var(--color-theme-900);", "{color:var(--color-theme-900);}"], StyledPillIcon);
16
16
  const toneStyle = tone => {
17
17
  switch (tone) {
@@ -26,9 +26,17 @@ const toneStyle = tone => {
26
26
  }
27
27
  };
28
28
  const compactStyle = css(["", "{display:none;}"], StyledPillPlaceholder);
29
+ const PILL_HEIGHTS = {
30
+ xsmall: "18px",
31
+ small: "24px",
32
+ medium: "26px"
33
+ };
34
+
35
+ /* The size of a type chip: small caps of an object type or a state switch. */
36
+ const xsmallStyle = css(["gap:3px;--c-pill-padding-x:6px;font-size:calc(0.625rem * var(--text-scale,1));font-weight:600;", " svg{width:12px;height:12px;}"], StyledPillIcon);
29
37
  export const StyledPillButton = styled.button.withConfig({
30
38
  displayName: "Styles__StyledPillButton",
31
39
  componentId: "sc-14yhio0-2"
32
- })(["", " ", " display:inline-flex;align-items:center;justify-content:center;gap:6px;flex-shrink:0;max-width:100%;height:", ";margin:0;padding:0 ", ";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:50%;pointer-events:none;}", " ", " ", " ", " ", " ", " &[aria-haspopup][aria-expanded=\"true\"],.c-pill-host:hover &[aria-haspopup][aria-expanded=\"true\"]{", "}"], FontStyle, BoxSizingStyle, props => props.$size === "small" ? "24px" : "26px", props => props.$inset === "tight" ? "6px" : "10px", props => props.$empty ? "var(--color-theme-700)" : "var(--color-theme-800)", 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:36px;padding:0;", " svg{width:16px;height:16px;}"], StyledPillIcon), props => props.$compact === true && compactStyle, props => props.$compact === "mobile" && css(["@media (max-width:768px){", "}"], compactStyle), props => props.$active && css(["&,&:hover,&:focus-visible{", "}"], activeStyle), activeStyle);
40
+ })(["", " ", " 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:50%;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 => 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:36px;padding:0;", " svg{width:16px;height:16px;}"], StyledPillIcon), props => props.$size === "xsmall" && xsmallStyle, props => props.$compact === true && compactStyle, props => props.$compact === "mobile" && css(["@media (max-width:768px){", "}"], compactStyle), props => props.$active && css(["&,&:hover,&:focus-visible{", "}"], activeStyle), activeStyle);
33
41
  StyledPillButton.displayName = "StyledPillButton";
34
42
  //# sourceMappingURL=Styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Styles.js","names":["styled","css","BoxSizingStyle","FontStyle","StyledPillIcon","span","withConfig","displayName","componentId","StyledPillPlaceholder","activeStyle","hoverTextStyle","toneStyle","tone","compactStyle","StyledPillButton","button","props","$size","$inset","$empty","$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}\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 activeStyle = css`\n background-color: var(--pill-background-active);\n color: var(--color-primary);\n\n ${StyledPillIcon} {\n color: var(--color-primary);\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 \"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\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) => (props.$size === \"small\" ? \"24px\" : \"26px\")};\n margin: 0;\n padding: 0 ${(props) => (props.$inset === \"tight\" ? \"6px\" : \"10px\")};\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: 50%;\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: 36px;\n padding: 0;\n\n ${StyledPillIcon} svg {\n width: 16px;\n height: 16px;\n }\n `}\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}\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 ${activeStyle}\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;AAYxC,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,WAAA;EAAAC,WAAA;AAAA,+CAG/C;AAEDC,qBAAqB,CAACF,WAAW,GAAG,uBAAuB;AAE3D,MAAMG,WAAW,GAAGT,GAAG,kHAInBG,cAAc,CAGjB;AAED,MAAMO,cAAc,GAAGV,GAAG,uE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,gBAAgB,CAACR,WAAW,GAAG,kBAAkB","ignoreList":[]}
1
+ {"version":3,"file":"Styles.js","names":["styled","css","BoxSizingStyle","FontStyle","StyledPillIcon","span","withConfig","displayName","componentId","StyledPillPlaceholder","activeStyle","hoverTextStyle","toneStyle","tone","compactStyle","PILL_HEIGHTS","xsmall","small","medium","xsmallStyle","StyledPillButton","button","props","$size","$inset","$empty","$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}\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 activeStyle = css`\n background-color: var(--pill-background-active);\n color: var(--color-primary);\n\n ${StyledPillIcon} {\n color: var(--color-primary);\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 \"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 = { xsmall: \"18px\", small: \"24px\", medium: \"26px\" };\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: 50%;\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: 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.$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}\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 ${activeStyle}\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;AAYxC,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,WAAA;EAAAC,WAAA;AAAA,+CAG/C;AAEDC,qB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G,6DAICG,cAAc,CAIjB,EAEAkB,KAAK,IAAKA,KAAK,CAACC,KAAK,KAAK,QAAQ,IAAIJ,WAAW,EAEjDG,KAAK,IAAKA,KAAK,CAACM,QAAQ,KAAK,IAAI,IAAId,YAAY,EAEjDQ,KAAK,IACNA,KAAK,CAACM,QAAQ,KAAK,QAAQ,IAC3B3B,GAAG,qCAEGa,YAAY,CAEjB,EAGAQ,KAAK,IACNA,KAAK,CAACO,OAAO,IACb5B,GAAG,sCAIGS,WAAW,CAEhB,EAKCA,WAAW,CAEhB;AAEDU,gBAAgB,CAACb,WAAW,GAAG,kBAAkB","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;AAM7C,eAAO,MAAM,eAAe;iBACb,WAAW,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC;SAqDvD,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;AAU7C,eAAO,MAAM,eAAe;iBACb,WAAW,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC;SA8DvD,CAAC"}
@@ -2,9 +2,11 @@ import styled, { css } from "styled-components";
2
2
  import { BoxSizingStyle } from "../BoxSizingStyle";
3
3
  const first = "& > .c-pill-button:first-child, & > :first-child .c-pill-button";
4
4
  const last = "& > .c-pill-button:last-child, & > :last-child .c-pill-button";
5
+ const firstText = "& > .c-pill-button:not(.c-pill-button--icon-only):first-child, & > :first-child .c-pill-button:not(.c-pill-button--icon-only)";
6
+ const lastText = "& > .c-pill-button:not(.c-pill-button--icon-only):last-child, & > :last-child .c-pill-button:not(.c-pill-button--icon-only)";
5
7
  export const StyledPillGroup = styled.div.withConfig({
6
8
  displayName: "Styles__StyledPillGroup",
7
9
  componentId: "sc-1x5hpq8-0"
8
- })(["", " 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);}", " ", ""], BoxSizingStyle, first, last, props => props.$appearance === "soft" && css(["gap:2px;"]), props => props.$appearance === "outlined" && css(["border:1px solid var(--pill-border);border-radius:var(--ac-br-6);overflow:hidden;.c-pill-button{height:24px;background-color:transparent;}", ",", "{border-radius:0;}& > * + *{border-left:1px solid var(--pill-border);}"], first, last));
10
+ })(["", " 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 === "outlined" && css(["border:1px solid var(--pill-border);border-radius:var(--ac-br-6);overflow:hidden;.c-pill-button{height:24px;background-color:transparent;}", ",", "{border-radius:0;}& > * + *{border-left:1px solid var(--pill-border);}"], first, last));
9
11
  StyledPillGroup.displayName = "StyledPillGroup";
10
12
  //# sourceMappingURL=Styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Styles.js","names":["styled","css","BoxSizingStyle","first","last","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\";\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 ${(props) =>\n props.$appearance === \"soft\" &&\n css`\n gap: 2px;\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 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;AAE5E,OAAO,MAAMC,eAAe,GAAGL,MAAM,CAACM,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,uWAGrCP,cAAc,EAedC,KAAK,EAKLC,IAAI,EAKHM,KAAK,IACNA,KAAK,CAACC,WAAW,KAAK,MAAM,IAC5BV,GAAG,cAEF,EAEAS,KAAK,IACNA,KAAK,CAACC,WAAW,KAAK,UAAU,IAChCV,GAAG,gOAUCE,KAAK,EAAKC,IAAI,CAOjB,CACJ;AAEDC,eAAe,CAACG,WAAW,GAAG,iBAAiB","ignoreList":[]}
1
+ {"version":3,"file":"Styles.js","names":["styled","css","BoxSizingStyle","first","last","firstText","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 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 === \"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 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,QAAQ,GACZ,6HAA6H;AAE/H,OAAO,MAAMC,eAAe,GAAGP,MAAM,CAACQ,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,geAGrCT,cAAc,EAedC,KAAK,EAKLC,IAAI,EAMJC,SAAS,EAITC,QAAQ,EAIPM,KAAK,IACNA,KAAK,CAACC,WAAW,KAAK,MAAM,IAC5BZ,GAAG,cAEF,EAEAW,KAAK,IACNA,KAAK,CAACC,WAAW,KAAK,UAAU,IAChCZ,GAAG,gOAUCE,KAAK,EAAKC,IAAI,CAOjB,CACJ;AAEDG,eAAe,CAACG,WAAW,GAAG,iBAAiB","ignoreList":[]}
@@ -5,10 +5,14 @@ interface ControlProps {
5
5
  tooltip: string;
6
6
  disabled: boolean;
7
7
  className: string;
8
+ /** Controls that follow each other with one group share one capsule in the side column. */
9
+ group?: string;
8
10
  }
9
11
  interface ISheet {
10
12
  onClose?: () => void;
11
13
  controls?: ControlProps[];
14
+ /** Content under the controls of the side column, such as who is here. It shows only with controls. */
15
+ sideContent?: React.ReactNode;
12
16
  open?: boolean;
13
17
  animation?: "top" | "bottom" | "left" | "right";
14
18
  position?: "center" | "left" | "right";
@@ -28,6 +32,13 @@ interface ISheet {
28
32
  onBackdropClickBlocked?: (event: MouseEvent<HTMLDivElement>) => void;
29
33
  /** @deprecated Use dismissOnBackdropClick={false}. Still works, with a warning in development, and will be removed. */
30
34
  disableBackgroundClick?: boolean;
35
+ /** With it a stretch sheet on a side has a resize handle on its free edge. Called with a whole pixel at the end of a drag and on each key press. */
36
+ onWidthChange?: (width: number) => void;
37
+ /** A double click on the resize handle. */
38
+ onWidthReset?: () => void;
39
+ resizeMin?: number;
40
+ resizeMax?: number;
41
+ resizeLabel?: string;
31
42
  }
32
43
  export interface SheetMethods {
33
44
  close: () => void;
@@ -1 +1 @@
1
- {"version":3,"file":"Sheet.d.ts","sourceRoot":"","sources":["../../../../src/components/Sheet/Sheet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAMZ,aAAa,EACb,UAAU,EAGX,MAAM,OAAO,CAAC;AA+Ff,UAAU,YAAY;IACpB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,IAAI,EAAE,KAAK,CAAC,YAAY,CAAC;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,UAAU,MAAM;IACd,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,YAAY,EAAE,CAAC;IAC1B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,SAAS,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;IAChD,QAAQ,CAAC,EAAE,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;IACvC,IAAI,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;IAC5B,wEAAwE;IACxE,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,uEAAuE;IACvE,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IAC5B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,SAAS,CAAC,EAAE,aAAa,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,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AAC;IAC5B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,SAAS,CAAC,EAAE,aAAa,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,+DAA+D;IAC/D,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,mGAAmG;IACnG,sBAAsB,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;IACrE,uHAAuH;IACvH,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,oJAAoJ;IACpJ,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,2CAA2C;IAC3C,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB;AAID,eAAO,MAAM,KAAK,oHAySjB,CAAC"}
@@ -1,10 +1,12 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
- const _excluded = ["children", "onClose", "controls", "open", "animation", "position", "mode", "maxWidth", "surface", "disableFocusLock", "disableScrollLock", "disableBackgroundColor", "bodyStyle", "bodyClassName", "dismissOnBackdropClick", "onBackdropClickBlocked", "disableBackgroundClick"];
4
- import React, { useCallback, useEffect, forwardRef, useState, useImperativeHandle, useRef } from "react";
3
+ const _excluded = ["children", "onClose", "controls", "sideContent", "open", "animation", "position", "mode", "maxWidth", "surface", "disableFocusLock", "disableScrollLock", "disableBackgroundColor", "bodyStyle", "bodyClassName", "dismissOnBackdropClick", "onBackdropClickBlocked", "disableBackgroundClick", "onWidthChange", "onWidthReset", "resizeMin", "resizeMax", "resizeLabel"],
4
+ _excluded2 = ["active"];
5
+ import React, { useCallback, useEffect, useLayoutEffect, forwardRef, useState, useImperativeHandle, useRef } from "react";
5
6
  import classnames from "classnames";
6
- import { StyledAnimatedSpan, StyledCssTransition, StyledHeader, StyledIconsWrapperSmall, StyledListSeparator, StyledSheetIcons, StyledSheetWrapper, SHEET_ENTER_MS, SHEET_EXIT_MS, StyledSheetSurface, StyledSheetWrapperPaper } from "./Styles";
7
+ import { StyledAnimatedSpan, StyledCssTransition, StyledHeader, StyledIconsWrapperSmall, StyledListSeparator, StyledSheetControlGroup, StyledSheetIcons, StyledSheetSideContent, StyledSheetWrapper, SHEET_ENTER_MS, SHEET_EXIT_MS, StyledSheetSurface, StyledSheetWrapperPaper, StyledSheetResizeHandle } from "./Styles";
7
8
  import { PortalContainerProvider, usePortalContainer } from "../../helpers";
9
+ import { useResizablePanel } from "../../hooks";
8
10
  import { usePropWarning } from "../Dialog/usePropWarning";
9
11
  import { IconButton } from "../IconButton";
10
12
  import { Overlay } from "../Overlay";
@@ -13,28 +15,31 @@ import { Fade } from "../Transitions";
13
15
  import { Window } from "../Window";
14
16
  import { useHostAboveOpenModal } from "./useHostAboveOpenModal";
15
17
  const INSET_VAR = "--c-sheet-inset-right";
18
+ const WIDTH_VAR = "--c-sheet-width";
16
19
  const INSET_DURATION_VAR = "--c-sheet-inset-duration";
17
20
  // The controls column stands 48px left of the sheet. With less room it is not there.
18
21
  const CONTROLS_ROOM = 64;
22
+ const writeInset = wrapper => {
23
+ const root = document.documentElement;
24
+ const _wrapper$getBoundingC = wrapper.getBoundingClientRect(),
25
+ left = _wrapper$getBoundingC.left;
26
+ if (left >= CONTROLS_ROOM) {
27
+ root.style.setProperty(INSET_VAR, root.clientWidth - left + "px");
28
+ } else {
29
+ root.style.removeProperty(INSET_VAR);
30
+ }
31
+ };
19
32
 
20
33
  // A right sheet tells the page, on the root, how far from the right edge it starts, so a floating part of the page
21
34
  // can move out of its way with the same timing.
22
- const useSheetInset = (wrapperRef, isOn) => {
35
+ const useSheetInset = (wrapperRef, isOn, isResizing, resizedWidth) => {
23
36
  useEffect(() => {
24
37
  const wrapper = wrapperRef.current;
25
38
  if (!isOn || !wrapper) {
26
39
  return undefined;
27
40
  }
28
41
  const root = document.documentElement;
29
- const update = () => {
30
- const _wrapper$getBoundingC = wrapper.getBoundingClientRect(),
31
- left = _wrapper$getBoundingC.left;
32
- if (left >= CONTROLS_ROOM) {
33
- root.style.setProperty(INSET_VAR, root.clientWidth - left + "px");
34
- } else {
35
- root.style.removeProperty(INSET_VAR);
36
- }
37
- };
42
+ const update = () => writeInset(wrapper);
38
43
  const observer = typeof ResizeObserver === "undefined" ? undefined :
39
44
  // eslint-disable-next-line compat/compat
40
45
  new ResizeObserver(update);
@@ -69,12 +74,65 @@ const useSheetInset = (wrapperRef, isOn) => {
69
74
  root.style.removeProperty(INSET_VAR);
70
75
  };
71
76
  }, [wrapperRef, isOn]);
77
+
78
+ // Before the first frame of the drag, so the parts never animate a move of the edge.
79
+ useLayoutEffect(() => {
80
+ if (!isOn || !isResizing) {
81
+ return undefined;
82
+ }
83
+ const root = document.documentElement;
84
+ root.style.setProperty(INSET_DURATION_VAR, "0ms");
85
+ root.style.setProperty("cursor", "col-resize");
86
+ return () => {
87
+ root.style.setProperty(INSET_DURATION_VAR, SHEET_ENTER_MS + "ms");
88
+ root.style.removeProperty("cursor");
89
+ };
90
+ }, [isOn, isResizing]);
91
+
92
+ // A resize observer reports a frame late, so a drag writes the inset in the commit of its width.
93
+ useLayoutEffect(() => {
94
+ if (isOn && isResizing && wrapperRef.current) {
95
+ writeInset(wrapperRef.current);
96
+ }
97
+ }, [wrapperRef, isOn, isResizing, resizedWidth]);
72
98
  };
99
+ const useWrapperWidth = (wrapperRef, isOn) => {
100
+ const _useState = useState(0),
101
+ width = _useState[0],
102
+ setWidth = _useState[1];
103
+ useEffect(() => {
104
+ const wrapper = wrapperRef.current;
105
+ if (!isOn || !wrapper) {
106
+ return undefined;
107
+ }
108
+ const measure = () => setWidth(wrapper.getBoundingClientRect().width);
109
+ const observer = typeof ResizeObserver === "undefined" ? undefined :
110
+ // eslint-disable-next-line compat/compat
111
+ new ResizeObserver(measure);
112
+ measure();
113
+ observer == null || observer.observe(wrapper);
114
+ return () => observer == null ? void 0 : observer.disconnect();
115
+ }, [wrapperRef, isOn]);
116
+ return width;
117
+ };
118
+ const noResize = () => undefined;
119
+ // The side column as a list of single controls and runs of controls of one group.
120
+ const groupControls = controls => controls.reduce((runs, control) => {
121
+ var _last$;
122
+ const last = runs[runs.length - 1];
123
+ if (control.group && (last == null || (_last$ = last[0]) == null ? void 0 : _last$.group) === control.group) {
124
+ last.push(control);
125
+ } else {
126
+ runs.push([control]);
127
+ }
128
+ return runs;
129
+ }, []);
73
130
  export const Sheet = /*#__PURE__*/forwardRef((_ref, ref) => {
74
131
  let children = _ref.children,
75
132
  onClose = _ref.onClose,
76
133
  _ref$controls = _ref.controls,
77
134
  controls = _ref$controls === void 0 ? [] : _ref$controls,
135
+ sideContent = _ref.sideContent,
78
136
  _ref$open = _ref.open,
79
137
  defaultOpen = _ref$open === void 0 ? false : _ref$open,
80
138
  _ref$animation = _ref.animation,
@@ -97,18 +155,26 @@ export const Sheet = /*#__PURE__*/forwardRef((_ref, ref) => {
97
155
  dismissOnBackdropClick = _ref.dismissOnBackdropClick,
98
156
  onBackdropClickBlocked = _ref.onBackdropClickBlocked,
99
157
  disableBackgroundClick = _ref.disableBackgroundClick,
158
+ onWidthChange = _ref.onWidthChange,
159
+ onWidthReset = _ref.onWidthReset,
160
+ _ref$resizeMin = _ref.resizeMin,
161
+ resizeMin = _ref$resizeMin === void 0 ? 600 : _ref$resizeMin,
162
+ _ref$resizeMax = _ref.resizeMax,
163
+ resizeMax = _ref$resizeMax === void 0 ? 1800 : _ref$resizeMax,
164
+ _ref$resizeLabel = _ref.resizeLabel,
165
+ resizeLabel = _ref$resizeLabel === void 0 ? "Resize sheet" : _ref$resizeLabel,
100
166
  rest = _objectWithoutPropertiesLoose(_ref, _excluded);
101
- const _useState = useState(defaultOpen),
102
- open = _useState[0],
103
- setOpen = _useState[1];
104
- const _useState2 = useState(true),
105
- exited = _useState2[0],
106
- setExited = _useState2[1];
167
+ const _useState2 = useState(defaultOpen),
168
+ open = _useState2[0],
169
+ setOpen = _useState2[1];
170
+ const _useState3 = useState(true),
171
+ exited = _useState3[0],
172
+ setExited = _useState3[1];
107
173
  // Clicks pass through the overlay until it has faded in, and again from the first moment it fades out. Over a
108
174
  // native dialog it takes them all the time, since a click through it would hit the dialog's backdrop.
109
- const _useState3 = useState(false),
110
- overlayEntered = _useState3[0],
111
- setOverlayEntered = _useState3[1];
175
+ const _useState4 = useState(false),
176
+ overlayEntered = _useState4[0],
177
+ setOverlayEntered = _useState4[1];
112
178
  const wrapperRef = useRef(null);
113
179
  useEffect(() => {
114
180
  setOpen(defaultOpen);
@@ -152,9 +218,24 @@ export const Sheet = /*#__PURE__*/forwardRef((_ref, ref) => {
152
218
  const _useHostAboveOpenModa = useHostAboveOpenModal(open || !exited, portalContainer === undefined),
153
219
  modalHost = _useHostAboveOpenModa.host,
154
220
  modalHostPending = _useHostAboveOpenModa.pending;
221
+ const isResizable = Boolean(onWidthChange) && mode === "stretch" && position !== "center";
222
+ const measuredWidth = useWrapperWidth(wrapperRef, isResizable && open && !modalHostPending);
223
+ const _useResizablePanel = useResizablePanel({
224
+ side: position === "left" ? "left" : "right",
225
+ width: measuredWidth,
226
+ min: resizeMin,
227
+ max: resizeMax,
228
+ onChange: onWidthChange != null ? onWidthChange : noResize,
229
+ onReset: onWidthReset
230
+ }),
231
+ resizedWidth = _useResizablePanel.width,
232
+ isResizing = _useResizablePanel.isResizing,
233
+ handleProps = _useResizablePanel.handleProps;
234
+ const isHandleActive = handleProps.active,
235
+ resizeHandleProps = _objectWithoutPropertiesLoose(handleProps, _excluded2);
155
236
 
156
237
  // A pending sheet renders no wrapper yet, so the inset starts once it does.
157
- useSheetInset(wrapperRef, open && position === "right" && !modalHostPending);
238
+ useSheetInset(wrapperRef, open && position === "right" && !modalHostPending, isResizing, resizedWidth);
158
239
  if (!open && exited || modalHostPending) {
159
240
  return null;
160
241
  }
@@ -180,7 +261,11 @@ export const Sheet = /*#__PURE__*/forwardRef((_ref, ref) => {
180
261
  })), /*#__PURE__*/React.createElement(StyledSheetWrapper, {
181
262
  ref: wrapperRef,
182
263
  className: classnames("c-sheet__wrapper", bodyClassName),
183
- style: bodyStyle,
264
+ style: isResizing ? _extends({}, bodyStyle, {
265
+ maxWidth: resizedWidth + "px",
266
+ transition: "none",
267
+ [WIDTH_VAR]: resizedWidth + "px"
268
+ }) : bodyStyle,
184
269
  $position: position,
185
270
  $mode: mode,
186
271
  $maxWidth: maxWidth
@@ -192,22 +277,30 @@ export const Sheet = /*#__PURE__*/forwardRef((_ref, ref) => {
192
277
  $direction: animation,
193
278
  onEnter: handleEnter,
194
279
  onExited: handleExited
195
- }, /*#__PURE__*/React.createElement(StyledSheetSurface, null, controls.length > 0 && /*#__PURE__*/React.createElement(StyledSheetIcons, null, controls.map((_ref2, index) => {
196
- let IconComponent = _ref2.icon,
197
- tooltip = _ref2.tooltip,
198
- onClick = _ref2.onClick,
199
- disabled = _ref2.disabled,
200
- className = _ref2.className;
201
- return /*#__PURE__*/React.createElement(Tooltip, {
202
- title: tooltip,
203
- disable: !tooltip || disabled,
204
- key: "c-sheet-control-" + index
205
- }, /*#__PURE__*/React.createElement(StyledAnimatedSpan, {
206
- onClick: onClick,
207
- $disabled: disabled,
208
- className: className
209
- }, IconComponent));
210
- })), /*#__PURE__*/React.createElement(StyledSheetWrapperPaper, {
280
+ }, /*#__PURE__*/React.createElement(StyledSheetSurface, null, controls.length > 0 && /*#__PURE__*/React.createElement(StyledSheetIcons, null, groupControls(controls).map((run, runIndex) => {
281
+ const items = run.map((_ref2, index) => {
282
+ let IconComponent = _ref2.icon,
283
+ tooltip = _ref2.tooltip,
284
+ onClick = _ref2.onClick,
285
+ disabled = _ref2.disabled,
286
+ className = _ref2.className;
287
+ return /*#__PURE__*/React.createElement(Tooltip, {
288
+ title: tooltip,
289
+ disable: !tooltip || disabled,
290
+ key: "c-sheet-control-" + runIndex + "-" + index
291
+ }, /*#__PURE__*/React.createElement(StyledAnimatedSpan, {
292
+ onClick: onClick,
293
+ $disabled: disabled,
294
+ className: className
295
+ }, IconComponent));
296
+ });
297
+ return run[0].group ? /*#__PURE__*/React.createElement(StyledSheetControlGroup, {
298
+ key: "c-sheet-group-" + runIndex,
299
+ className: classnames("c-sheet__control-group", run[0].className)
300
+ }, items) : items;
301
+ }), sideContent ? /*#__PURE__*/React.createElement(StyledSheetSideContent, {
302
+ className: "c-sheet__side-content"
303
+ }, sideContent) : null), /*#__PURE__*/React.createElement(StyledSheetWrapperPaper, {
211
304
  paperClass: "c-sheet__wrapper__paper",
212
305
  $surface: surface
213
306
  }, controls.length > 0 && /*#__PURE__*/React.createElement(StyledHeader, null, /*#__PURE__*/React.createElement(StyledIconsWrapperSmall, null, controls.map((_ref3, index) => {
@@ -226,7 +319,12 @@ export const Sheet = /*#__PURE__*/forwardRef((_ref, ref) => {
226
319
  className: className,
227
320
  variant: "text gray"
228
321
  }, IconComponent));
229
- })), /*#__PURE__*/React.createElement(StyledListSeparator, null)), children)))));
322
+ })), /*#__PURE__*/React.createElement(StyledListSeparator, null)), children), isResizable ? /*#__PURE__*/React.createElement(StyledSheetResizeHandle, _extends({}, resizeHandleProps, {
323
+ active: isHandleActive,
324
+ label: resizeLabel,
325
+ edge: position === "left" ? "right" : "left",
326
+ className: "c-sheet__resize c-sheet__resize--" + (position === "left" ? "right" : "left")
327
+ })) : null))));
230
328
 
231
329
  // The provider is always there, so the Window keeps its place in the tree when the sheet gets a host.
232
330
  return /*#__PURE__*/React.createElement(PortalContainerProvider, {
@@ -1 +1 @@
1
- {"version":3,"file":"Sheet.js","names":["React","useCallback","useEffect","forwardRef","useState","useImperativeHandle","useRef","classnames","StyledAnimatedSpan","StyledCssTransition","StyledHeader","StyledIconsWrapperSmall","StyledListSeparator","StyledSheetIcons","StyledSheetWrapper","SHEET_ENTER_MS","SHEET_EXIT_MS","StyledSheetSurface","StyledSheetWrapperPaper","PortalContainerProvider","usePortalContainer","usePropWarning","IconButton","Overlay","Tooltip","Fade","Window","useHostAboveOpenModal","INSET_VAR","INSET_DURATION_VAR","CONTROLS_ROOM","useSheetInset","wrapperRef","isOn","wrapper","current","undefined","root","document","documentElement","update","_wrapper$getBoundingC","getBoundingClientRect","left","style","setProperty","clientWidth","removeProperty","observer","ResizeObserver","isWidth","event","propertyName","startWidth","target","endWidth","observe","window","addEventListener","disconnect","removeEventListener","Sheet","_ref","ref","children","onClose","_ref$controls","controls","_ref$open","open","defaultOpen","_ref$animation","animation","_ref$position","position","_ref$mode","mode","maxWidth","_ref$surface","surface","_ref$disableFocusLock","disableFocusLock","_ref$disableScrollLoc","disableScrollLock","_ref$disableBackgroun","disableBackgroundColor","bodyStyle","bodyClassName","dismissOnBackdropClick","onBackdropClickBlocked","disableBackgroundClick","rest","_objectWithoutPropertiesLoose","_excluded","_useState","setOpen","_useState2","exited","setExited","_useState3","overlayEntered","setOverlayEntered","handleEnter","handleExited","handleClose","handleOverlayEntered","handleOverlayExit","closesOnBackdropClick","handleBackgroundClick","preventDefault","close","portalContainer","_useHostAboveOpenModa","modalHost","host","modalHostPending","pending","sheetWindow","createElement","_extends","pointerEvents","in","timeout","onEntered","onExit","onClick","className","$position","$mode","$maxWidth","appear","classNames","$direction","onEnter","onExited","length","map","_ref2","index","IconComponent","icon","tooltip","disabled","title","disable","key","$disabled","paperClass","$surface","_ref3","variant","value","displayName"],"sources":["../../../../src/components/Sheet/Sheet.tsx"],"sourcesContent":["import React, {\n useCallback,\n useEffect,\n forwardRef,\n HTMLAttributes,\n useState,\n CSSProperties,\n MouseEvent,\n useImperativeHandle,\n useRef,\n} from \"react\";\n\nimport classnames from \"classnames\";\n\nimport {\n StyledAnimatedSpan,\n StyledCssTransition,\n StyledHeader,\n StyledIconsWrapperSmall,\n StyledListSeparator,\n StyledSheetIcons,\n StyledSheetWrapper,\n SHEET_ENTER_MS,\n SHEET_EXIT_MS,\n StyledSheetSurface,\n StyledSheetWrapperPaper,\n} from \"./Styles\";\nimport { PortalContainerProvider, usePortalContainer } from \"../../helpers\";\nimport { usePropWarning } from \"../Dialog/usePropWarning\";\nimport { IconButton } from \"../IconButton\";\nimport { Overlay } from \"../Overlay\";\nimport { Tooltip } from \"../Tooltip\";\nimport { Fade } from \"../Transitions\";\nimport { Window } from \"../Window\";\nimport { useHostAboveOpenModal } from \"./useHostAboveOpenModal\";\n\nconst INSET_VAR = \"--c-sheet-inset-right\";\nconst INSET_DURATION_VAR = \"--c-sheet-inset-duration\";\n// The controls column stands 48px left of the sheet. With less room it is not there.\nconst CONTROLS_ROOM = 64;\n\n// A right sheet tells the page, on the root, how far from the right edge it starts, so a floating part of the page\n// can move out of its way with the same timing.\nconst useSheetInset = (\n wrapperRef: React.RefObject<HTMLDivElement>,\n isOn: boolean\n) => {\n useEffect(() => {\n const wrapper = wrapperRef.current;\n\n if (!isOn || !wrapper) {\n return undefined;\n }\n\n const root = document.documentElement;\n const update = () => {\n const { left } = wrapper.getBoundingClientRect();\n\n if (left >= CONTROLS_ROOM) {\n root.style.setProperty(INSET_VAR, `${root.clientWidth - left}px`);\n } else {\n root.style.removeProperty(INSET_VAR);\n }\n };\n const observer =\n typeof ResizeObserver === \"undefined\"\n ? undefined\n : // eslint-disable-next-line compat/compat\n new ResizeObserver(update);\n\n // While the width moves, the edge moves on every frame, so the parts follow it with no timing of their own.\n const isWidth = (event: Event) =>\n (event as TransitionEvent).propertyName === \"max-width\";\n const startWidth = (event: Event) => {\n if (event.target === wrapper && isWidth(event)) {\n root.style.setProperty(INSET_DURATION_VAR, \"0ms\");\n }\n };\n const endWidth = (event: Event) => {\n if (event.target === wrapper && isWidth(event)) {\n root.style.setProperty(INSET_DURATION_VAR, `${SHEET_ENTER_MS}ms`);\n update();\n }\n };\n\n root.style.setProperty(INSET_DURATION_VAR, `${SHEET_ENTER_MS}ms`);\n update();\n observer?.observe(wrapper);\n window.addEventListener(\"resize\", update);\n wrapper.addEventListener(\"transitionrun\", startWidth);\n wrapper.addEventListener(\"transitionend\", endWidth);\n wrapper.addEventListener(\"transitioncancel\", endWidth);\n\n return () => {\n observer?.disconnect();\n window.removeEventListener(\"resize\", update);\n wrapper.removeEventListener(\"transitionrun\", startWidth);\n wrapper.removeEventListener(\"transitionend\", endWidth);\n wrapper.removeEventListener(\"transitioncancel\", endWidth);\n root.style.setProperty(INSET_DURATION_VAR, `${SHEET_EXIT_MS}ms`);\n root.style.removeProperty(INSET_VAR);\n };\n }, [wrapperRef, isOn]);\n};\n\ninterface ControlProps {\n onClick: () => void;\n icon: React.ReactElement;\n tooltip: string;\n disabled: boolean;\n className: string;\n}\n\ninterface ISheet {\n onClose?: () => void;\n controls?: ControlProps[];\n open?: boolean;\n animation?: \"top\" | \"bottom\" | \"left\" | \"right\";\n position?: \"center\" | \"left\" | \"right\";\n mode?: \"normal\" | \"stretch\";\n /** The widest the sheet gets in stretch mode. A number is in pixels. */\n maxWidth?: number | string;\n /** \"sheet\" draws the paper on the sheet surface with large corners. */\n surface?: \"paper\" | \"sheet\";\n disableFocusLock?: boolean;\n disableScrollLock?: boolean;\n disableBackgroundColor?: boolean;\n bodyStyle?: CSSProperties;\n bodyClassName?: string;\n /** A click on the backdrop closes the sheet. On by default. */\n dismissOnBackdropClick?: boolean;\n /** A click on the backdrop that did not close the sheet, because dismissOnBackdropClick is off. */\n onBackdropClickBlocked?: (event: MouseEvent<HTMLDivElement>) => void;\n /** @deprecated Use dismissOnBackdropClick={false}. Still works, with a warning in development, and will be removed. */\n disableBackgroundClick?: boolean;\n}\n\nexport interface SheetMethods {\n close: () => void;\n}\n\ntype SheetProps = ISheet & HTMLAttributes<HTMLDivElement>;\n\nexport const Sheet = forwardRef<SheetMethods, SheetProps>(\n (\n {\n children,\n onClose,\n controls = [],\n open: defaultOpen = false,\n animation = \"top\",\n position = \"center\",\n mode = \"normal\",\n maxWidth,\n surface = \"paper\",\n disableFocusLock = false,\n disableScrollLock = false,\n disableBackgroundColor = false,\n bodyStyle,\n bodyClassName,\n dismissOnBackdropClick,\n onBackdropClickBlocked,\n disableBackgroundClick,\n ...rest\n },\n ref\n ) => {\n const [open, setOpen] = useState(defaultOpen);\n const [exited, setExited] = useState(true);\n // Clicks pass through the overlay until it has faded in, and again from the first moment it fades out. Over a\n // native dialog it takes them all the time, since a click through it would hit the dialog's backdrop.\n const [overlayEntered, setOverlayEntered] = useState(false);\n const wrapperRef = useRef<HTMLDivElement>(null);\n\n useEffect(() => {\n setOpen(defaultOpen);\n }, [defaultOpen]);\n\n const handleEnter = useCallback(() => {\n setExited(false);\n }, []);\n\n const handleExited = useCallback(() => {\n setExited(true);\n onClose?.();\n }, [onClose]);\n\n const handleClose = useCallback(() => {\n setOpen(false);\n }, []);\n\n const handleOverlayEntered = useCallback(() => {\n setOverlayEntered(true);\n }, []);\n\n const handleOverlayExit = useCallback(() => {\n setOverlayEntered(false);\n }, []);\n\n usePropWarning(\n \"Sheet\",\n \"disableBackgroundClick\",\n disableBackgroundClick,\n \"deprecated\",\n \"Use dismissOnBackdropClick={false}.\"\n );\n\n const closesOnBackdropClick =\n dismissOnBackdropClick ?? !disableBackgroundClick;\n\n // Over a native dialog the overlay takes clicks while it fades out too, and a sheet that is closing has nothing\n // left to block.\n const handleBackgroundClick = useCallback(\n (event: MouseEvent<HTMLDivElement>) => {\n if (!open) {\n return;\n }\n\n if (closesOnBackdropClick) {\n event.preventDefault();\n handleClose();\n } else {\n onBackdropClickBlocked?.(event);\n }\n },\n [open, closesOnBackdropClick, handleClose, onBackdropClickBlocked]\n );\n\n useImperativeHandle(ref, () => ({\n close: handleClose,\n }));\n\n const portalContainer = usePortalContainer();\n const { host: modalHost, pending: modalHostPending } =\n useHostAboveOpenModal(open || !exited, portalContainer === undefined);\n\n // A pending sheet renders no wrapper yet, so the inset starts once it does.\n useSheetInset(\n wrapperRef,\n open && position === \"right\" && !modalHostPending\n );\n\n if ((!open && exited) || modalHostPending) {\n return null;\n }\n\n const sheetWindow = (\n <Window\n {...rest}\n // The overlay and the sheet take the clicks, so the window lets them through where the overlay does.\n style={{ ...rest.style, pointerEvents: \"none\" }}\n onClose={handleClose}\n disableFocusLock={disableFocusLock}\n disableScrollLock={disableScrollLock}\n >\n <Fade\n in={open}\n timeout={open ? SHEET_ENTER_MS : SHEET_EXIT_MS}\n onEntered={handleOverlayEntered}\n onExit={handleOverlayExit}\n >\n <Overlay\n onClick={handleBackgroundClick}\n disableBackgroundColor={disableBackgroundColor}\n style={{\n pointerEvents:\n modalHost || (open && overlayEntered) ? \"auto\" : \"none\",\n }}\n />\n </Fade>\n <StyledSheetWrapper\n ref={wrapperRef}\n className={classnames(\"c-sheet__wrapper\", bodyClassName)}\n style={bodyStyle}\n $position={position}\n $mode={mode}\n $maxWidth={maxWidth}\n >\n <StyledCssTransition\n appear\n in={open}\n timeout={SHEET_ENTER_MS}\n classNames=\"c-sheet__animation\"\n $direction={animation}\n onEnter={handleEnter}\n onExited={handleExited}\n >\n <StyledSheetSurface>\n {controls.length > 0 && (\n <StyledSheetIcons>\n {controls.map(\n (\n {\n icon: IconComponent,\n tooltip,\n onClick,\n disabled,\n className,\n },\n index\n ) => (\n <Tooltip\n title={tooltip}\n disable={!tooltip || disabled}\n key={`c-sheet-control-${index}`}\n >\n <StyledAnimatedSpan\n onClick={onClick}\n $disabled={disabled}\n className={className}\n >\n {IconComponent}\n </StyledAnimatedSpan>\n </Tooltip>\n )\n )}\n </StyledSheetIcons>\n )}\n <StyledSheetWrapperPaper\n paperClass=\"c-sheet__wrapper__paper\"\n $surface={surface}\n >\n {controls.length > 0 && (\n <StyledHeader>\n <StyledIconsWrapperSmall>\n {controls.map(\n (\n {\n icon: IconComponent,\n tooltip,\n onClick,\n disabled,\n className,\n },\n index\n ) => (\n <Tooltip\n title={tooltip}\n disable={!tooltip || disabled}\n key={index}\n >\n <IconButton\n onClick={onClick}\n disabled={disabled}\n className={className}\n variant=\"text gray\"\n >\n {IconComponent}\n </IconButton>\n </Tooltip>\n )\n )}\n </StyledIconsWrapperSmall>\n <StyledListSeparator />\n </StyledHeader>\n )}\n {children}\n </StyledSheetWrapperPaper>\n </StyledSheetSurface>\n </StyledCssTransition>\n </StyledSheetWrapper>\n </Window>\n );\n\n // The provider is always there, so the Window keeps its place in the tree when the sheet gets a host.\n return (\n <PortalContainerProvider value={modalHost ?? portalContainer}>\n {sheetWindow}\n </PortalContainerProvider>\n );\n }\n);\n\nSheet.displayName = \"Sheet\";\n"],"mappings":";;;AAAA,OAAOA,KAAK,IACVC,WAAW,EACXC,SAAS,EACTC,UAAU,EAEVC,QAAQ,EAGRC,mBAAmB,EACnBC,MAAM,QACD,OAAO;AAEd,OAAOC,UAAU,MAAM,YAAY;AAEnC,SACEC,kBAAkB,EAClBC,mBAAmB,EACnBC,YAAY,EACZC,uBAAuB,EACvBC,mBAAmB,EACnBC,gBAAgB,EAChBC,kBAAkB,EAClBC,cAAc,EACdC,aAAa,EACbC,kBAAkB,EAClBC,uBAAuB,QAClB,UAAU;AACjB,SAASC,uBAAuB,EAAEC,kBAAkB,QAAQ,eAAe;AAC3E,SAASC,cAAc,QAAQ,0BAA0B;AACzD,SAASC,UAAU,QAAQ,eAAe;AAC1C,SAASC,OAAO,QAAQ,YAAY;AACpC,SAASC,OAAO,QAAQ,YAAY;AACpC,SAASC,IAAI,QAAQ,gBAAgB;AACrC,SAASC,MAAM,QAAQ,WAAW;AAClC,SAASC,qBAAqB,QAAQ,yBAAyB;AAE/D,MAAMC,SAAS,GAAG,uBAAuB;AACzC,MAAMC,kBAAkB,GAAG,0BAA0B;AACrD;AACA,MAAMC,aAAa,GAAG,EAAE;;AAExB;AACA;AACA,MAAMC,aAAa,GAAGA,CACpBC,UAA2C,EAC3CC,IAAa,KACV;EACH/B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AAgB,GAC1DM,WACsB,CAAC;AAE9B,CACF,CAAC;AAEDxD,KAAK,CAAC2F,WAAW,GAAG,OAAO","ignoreList":[]}
1
+ {"version":3,"file":"Sheet.js","names":["React","useCallback","useEffect","useLayoutEffect","forwardRef","useState","useImperativeHandle","useRef","classnames","StyledAnimatedSpan","StyledCssTransition","StyledHeader","StyledIconsWrapperSmall","StyledListSeparator","StyledSheetControlGroup","StyledSheetIcons","StyledSheetSideContent","StyledSheetWrapper","SHEET_ENTER_MS","SHEET_EXIT_MS","StyledSheetSurface","StyledSheetWrapperPaper","StyledSheetResizeHandle","PortalContainerProvider","usePortalContainer","useResizablePanel","usePropWarning","IconButton","Overlay","Tooltip","Fade","Window","useHostAboveOpenModal","INSET_VAR","WIDTH_VAR","INSET_DURATION_VAR","CONTROLS_ROOM","writeInset","wrapper","root","document","documentElement","_wrapper$getBoundingC","getBoundingClientRect","left","style","setProperty","clientWidth","removeProperty","useSheetInset","wrapperRef","isOn","isResizing","resizedWidth","current","undefined","update","observer","ResizeObserver","isWidth","event","propertyName","startWidth","target","endWidth","observe","window","addEventListener","disconnect","removeEventListener","useWrapperWidth","_useState","width","setWidth","measure","noResize","groupControls","controls","reduce","runs","control","_last$","last","length","group","push","Sheet","_ref","ref","children","onClose","_ref$controls","sideContent","_ref$open","open","defaultOpen","_ref$animation","animation","_ref$position","position","_ref$mode","mode","maxWidth","_ref$surface","surface","_ref$disableFocusLock","disableFocusLock","_ref$disableScrollLoc","disableScrollLock","_ref$disableBackgroun","disableBackgroundColor","bodyStyle","bodyClassName","dismissOnBackdropClick","onBackdropClickBlocked","disableBackgroundClick","onWidthChange","onWidthReset","_ref$resizeMin","resizeMin","_ref$resizeMax","resizeMax","_ref$resizeLabel","resizeLabel","rest","_objectWithoutPropertiesLoose","_excluded","_useState2","setOpen","_useState3","exited","setExited","_useState4","overlayEntered","setOverlayEntered","handleEnter","handleExited","handleClose","handleOverlayEntered","handleOverlayExit","closesOnBackdropClick","handleBackgroundClick","preventDefault","close","portalContainer","_useHostAboveOpenModa","modalHost","host","modalHostPending","pending","isResizable","Boolean","measuredWidth","_useResizablePanel","side","min","max","onChange","onReset","handleProps","isHandleActive","active","resizeHandleProps","_excluded2","sheetWindow","createElement","_extends","pointerEvents","in","timeout","onEntered","onExit","onClick","className","transition","$position","$mode","$maxWidth","appear","classNames","$direction","onEnter","onExited","map","run","runIndex","items","_ref2","index","IconComponent","icon","tooltip","disabled","title","disable","key","$disabled","paperClass","$surface","_ref3","variant","label","edge","value","displayName"],"sources":["../../../../src/components/Sheet/Sheet.tsx"],"sourcesContent":["import React, {\n useCallback,\n useEffect,\n useLayoutEffect,\n forwardRef,\n HTMLAttributes,\n useState,\n CSSProperties,\n MouseEvent,\n useImperativeHandle,\n useRef,\n} from \"react\";\n\nimport classnames from \"classnames\";\n\nimport {\n StyledAnimatedSpan,\n StyledCssTransition,\n StyledHeader,\n StyledIconsWrapperSmall,\n StyledListSeparator,\n StyledSheetControlGroup,\n StyledSheetIcons,\n StyledSheetSideContent,\n StyledSheetWrapper,\n SHEET_ENTER_MS,\n SHEET_EXIT_MS,\n StyledSheetSurface,\n StyledSheetWrapperPaper,\n StyledSheetResizeHandle,\n} from \"./Styles\";\nimport { PortalContainerProvider, usePortalContainer } from \"../../helpers\";\nimport { useResizablePanel } from \"../../hooks\";\nimport { usePropWarning } from \"../Dialog/usePropWarning\";\nimport { IconButton } from \"../IconButton\";\nimport { Overlay } from \"../Overlay\";\nimport { Tooltip } from \"../Tooltip\";\nimport { Fade } from \"../Transitions\";\nimport { Window } from \"../Window\";\nimport { useHostAboveOpenModal } from \"./useHostAboveOpenModal\";\n\nconst INSET_VAR = \"--c-sheet-inset-right\";\nconst WIDTH_VAR = \"--c-sheet-width\";\nconst INSET_DURATION_VAR = \"--c-sheet-inset-duration\";\n// The controls column stands 48px left of the sheet. With less room it is not there.\nconst CONTROLS_ROOM = 64;\n\nconst writeInset = (wrapper: HTMLDivElement) => {\n const root = document.documentElement;\n const { left } = wrapper.getBoundingClientRect();\n\n if (left >= CONTROLS_ROOM) {\n root.style.setProperty(INSET_VAR, `${root.clientWidth - left}px`);\n } else {\n root.style.removeProperty(INSET_VAR);\n }\n};\n\n// A right sheet tells the page, on the root, how far from the right edge it starts, so a floating part of the page\n// can move out of its way with the same timing.\nconst useSheetInset = (\n wrapperRef: React.RefObject<HTMLDivElement>,\n isOn: boolean,\n isResizing: boolean,\n resizedWidth: number\n) => {\n useEffect(() => {\n const wrapper = wrapperRef.current;\n\n if (!isOn || !wrapper) {\n return undefined;\n }\n\n const root = document.documentElement;\n const update = () => writeInset(wrapper);\n const observer =\n typeof ResizeObserver === \"undefined\"\n ? undefined\n : // eslint-disable-next-line compat/compat\n new ResizeObserver(update);\n\n // While the width moves, the edge moves on every frame, so the parts follow it with no timing of their own.\n const isWidth = (event: Event) =>\n (event as TransitionEvent).propertyName === \"max-width\";\n const startWidth = (event: Event) => {\n if (event.target === wrapper && isWidth(event)) {\n root.style.setProperty(INSET_DURATION_VAR, \"0ms\");\n }\n };\n const endWidth = (event: Event) => {\n if (event.target === wrapper && isWidth(event)) {\n root.style.setProperty(INSET_DURATION_VAR, `${SHEET_ENTER_MS}ms`);\n update();\n }\n };\n\n root.style.setProperty(INSET_DURATION_VAR, `${SHEET_ENTER_MS}ms`);\n update();\n observer?.observe(wrapper);\n window.addEventListener(\"resize\", update);\n wrapper.addEventListener(\"transitionrun\", startWidth);\n wrapper.addEventListener(\"transitionend\", endWidth);\n wrapper.addEventListener(\"transitioncancel\", endWidth);\n\n return () => {\n observer?.disconnect();\n window.removeEventListener(\"resize\", update);\n wrapper.removeEventListener(\"transitionrun\", startWidth);\n wrapper.removeEventListener(\"transitionend\", endWidth);\n wrapper.removeEventListener(\"transitioncancel\", endWidth);\n root.style.setProperty(INSET_DURATION_VAR, `${SHEET_EXIT_MS}ms`);\n root.style.removeProperty(INSET_VAR);\n };\n }, [wrapperRef, isOn]);\n\n // Before the first frame of the drag, so the parts never animate a move of the edge.\n useLayoutEffect(() => {\n if (!isOn || !isResizing) {\n return undefined;\n }\n\n const root = document.documentElement;\n\n root.style.setProperty(INSET_DURATION_VAR, \"0ms\");\n root.style.setProperty(\"cursor\", \"col-resize\");\n\n return () => {\n root.style.setProperty(INSET_DURATION_VAR, `${SHEET_ENTER_MS}ms`);\n root.style.removeProperty(\"cursor\");\n };\n }, [isOn, isResizing]);\n\n // A resize observer reports a frame late, so a drag writes the inset in the commit of its width.\n useLayoutEffect(() => {\n if (isOn && isResizing && wrapperRef.current) {\n writeInset(wrapperRef.current);\n }\n }, [wrapperRef, isOn, isResizing, resizedWidth]);\n};\n\nconst useWrapperWidth = (\n wrapperRef: React.RefObject<HTMLDivElement>,\n isOn: boolean\n) => {\n const [width, setWidth] = useState(0);\n\n useEffect(() => {\n const wrapper = wrapperRef.current;\n\n if (!isOn || !wrapper) {\n return undefined;\n }\n\n const measure = () => setWidth(wrapper.getBoundingClientRect().width);\n const observer =\n typeof ResizeObserver === \"undefined\"\n ? undefined\n : // eslint-disable-next-line compat/compat\n new ResizeObserver(measure);\n\n measure();\n observer?.observe(wrapper);\n\n return () => observer?.disconnect();\n }, [wrapperRef, isOn]);\n\n return width;\n};\n\nconst noResize = () => undefined;\n\ninterface ControlProps {\n onClick: () => void;\n icon: React.ReactElement;\n tooltip: string;\n disabled: boolean;\n className: string;\n /** Controls that follow each other with one group share one capsule in the side column. */\n group?: string;\n}\n\n// The side column as a list of single controls and runs of controls of one group.\nconst groupControls = (controls: ControlProps[]) =>\n controls.reduce<ControlProps[][]>((runs, control) => {\n const last = runs[runs.length - 1];\n\n if (control.group && last?.[0]?.group === control.group) {\n last.push(control);\n } else {\n runs.push([control]);\n }\n\n return runs;\n }, []);\n\ninterface ISheet {\n onClose?: () => void;\n controls?: ControlProps[];\n /** Content under the controls of the side column, such as who is here. It shows only with controls. */\n sideContent?: React.ReactNode;\n open?: boolean;\n animation?: \"top\" | \"bottom\" | \"left\" | \"right\";\n position?: \"center\" | \"left\" | \"right\";\n mode?: \"normal\" | \"stretch\";\n /** The widest the sheet gets in stretch mode. A number is in pixels. */\n maxWidth?: number | string;\n /** \"sheet\" draws the paper on the sheet surface with large corners. */\n surface?: \"paper\" | \"sheet\";\n disableFocusLock?: boolean;\n disableScrollLock?: boolean;\n disableBackgroundColor?: boolean;\n bodyStyle?: CSSProperties;\n bodyClassName?: string;\n /** A click on the backdrop closes the sheet. On by default. */\n dismissOnBackdropClick?: boolean;\n /** A click on the backdrop that did not close the sheet, because dismissOnBackdropClick is off. */\n onBackdropClickBlocked?: (event: MouseEvent<HTMLDivElement>) => void;\n /** @deprecated Use dismissOnBackdropClick={false}. Still works, with a warning in development, and will be removed. */\n disableBackgroundClick?: boolean;\n /** With it a stretch sheet on a side has a resize handle on its free edge. Called with a whole pixel at the end of a drag and on each key press. */\n onWidthChange?: (width: number) => void;\n /** A double click on the resize handle. */\n onWidthReset?: () => void;\n resizeMin?: number;\n resizeMax?: number;\n resizeLabel?: string;\n}\n\nexport interface SheetMethods {\n close: () => void;\n}\n\ntype SheetProps = ISheet & HTMLAttributes<HTMLDivElement>;\n\nexport const Sheet = forwardRef<SheetMethods, SheetProps>(\n (\n {\n children,\n onClose,\n controls = [],\n sideContent,\n open: defaultOpen = false,\n animation = \"top\",\n position = \"center\",\n mode = \"normal\",\n maxWidth,\n surface = \"paper\",\n disableFocusLock = false,\n disableScrollLock = false,\n disableBackgroundColor = false,\n bodyStyle,\n bodyClassName,\n dismissOnBackdropClick,\n onBackdropClickBlocked,\n disableBackgroundClick,\n onWidthChange,\n onWidthReset,\n resizeMin = 600,\n resizeMax = 1800,\n resizeLabel = \"Resize sheet\",\n ...rest\n },\n ref\n ) => {\n const [open, setOpen] = useState(defaultOpen);\n const [exited, setExited] = useState(true);\n // Clicks pass through the overlay until it has faded in, and again from the first moment it fades out. Over a\n // native dialog it takes them all the time, since a click through it would hit the dialog's backdrop.\n const [overlayEntered, setOverlayEntered] = useState(false);\n const wrapperRef = useRef<HTMLDivElement>(null);\n\n useEffect(() => {\n setOpen(defaultOpen);\n }, [defaultOpen]);\n\n const handleEnter = useCallback(() => {\n setExited(false);\n }, []);\n\n const handleExited = useCallback(() => {\n setExited(true);\n onClose?.();\n }, [onClose]);\n\n const handleClose = useCallback(() => {\n setOpen(false);\n }, []);\n\n const handleOverlayEntered = useCallback(() => {\n setOverlayEntered(true);\n }, []);\n\n const handleOverlayExit = useCallback(() => {\n setOverlayEntered(false);\n }, []);\n\n usePropWarning(\n \"Sheet\",\n \"disableBackgroundClick\",\n disableBackgroundClick,\n \"deprecated\",\n \"Use dismissOnBackdropClick={false}.\"\n );\n\n const closesOnBackdropClick =\n dismissOnBackdropClick ?? !disableBackgroundClick;\n\n // Over a native dialog the overlay takes clicks while it fades out too, and a sheet that is closing has nothing\n // left to block.\n const handleBackgroundClick = useCallback(\n (event: MouseEvent<HTMLDivElement>) => {\n if (!open) {\n return;\n }\n\n if (closesOnBackdropClick) {\n event.preventDefault();\n handleClose();\n } else {\n onBackdropClickBlocked?.(event);\n }\n },\n [open, closesOnBackdropClick, handleClose, onBackdropClickBlocked]\n );\n\n useImperativeHandle(ref, () => ({\n close: handleClose,\n }));\n\n const portalContainer = usePortalContainer();\n const { host: modalHost, pending: modalHostPending } =\n useHostAboveOpenModal(open || !exited, portalContainer === undefined);\n\n const isResizable =\n Boolean(onWidthChange) && mode === \"stretch\" && position !== \"center\";\n const measuredWidth = useWrapperWidth(\n wrapperRef,\n isResizable && open && !modalHostPending\n );\n const {\n width: resizedWidth,\n isResizing,\n handleProps,\n } = useResizablePanel({\n side: position === \"left\" ? \"left\" : \"right\",\n width: measuredWidth,\n min: resizeMin,\n max: resizeMax,\n onChange: onWidthChange ?? noResize,\n onReset: onWidthReset,\n });\n const { active: isHandleActive, ...resizeHandleProps } = handleProps;\n\n // A pending sheet renders no wrapper yet, so the inset starts once it does.\n useSheetInset(\n wrapperRef,\n open && position === \"right\" && !modalHostPending,\n isResizing,\n resizedWidth\n );\n\n if ((!open && exited) || modalHostPending) {\n return null;\n }\n\n const sheetWindow = (\n <Window\n {...rest}\n // The overlay and the sheet take the clicks, so the window lets them through where the overlay does.\n style={{ ...rest.style, pointerEvents: \"none\" }}\n onClose={handleClose}\n disableFocusLock={disableFocusLock}\n disableScrollLock={disableScrollLock}\n >\n <Fade\n in={open}\n timeout={open ? SHEET_ENTER_MS : SHEET_EXIT_MS}\n onEntered={handleOverlayEntered}\n onExit={handleOverlayExit}\n >\n <Overlay\n onClick={handleBackgroundClick}\n disableBackgroundColor={disableBackgroundColor}\n style={{\n pointerEvents:\n modalHost || (open && overlayEntered) ? \"auto\" : \"none\",\n }}\n />\n </Fade>\n <StyledSheetWrapper\n ref={wrapperRef}\n className={classnames(\"c-sheet__wrapper\", bodyClassName)}\n style={\n isResizing\n ? ({\n ...bodyStyle,\n maxWidth: `${resizedWidth}px`,\n transition: \"none\",\n [WIDTH_VAR]: `${resizedWidth}px`,\n } as CSSProperties)\n : bodyStyle\n }\n $position={position}\n $mode={mode}\n $maxWidth={maxWidth}\n >\n <StyledCssTransition\n appear\n in={open}\n timeout={SHEET_ENTER_MS}\n classNames=\"c-sheet__animation\"\n $direction={animation}\n onEnter={handleEnter}\n onExited={handleExited}\n >\n <StyledSheetSurface>\n {controls.length > 0 && (\n <StyledSheetIcons>\n {groupControls(controls).map((run, runIndex) => {\n const items = run.map(\n (\n {\n icon: IconComponent,\n tooltip,\n onClick,\n disabled,\n className,\n },\n index\n ) => (\n <Tooltip\n title={tooltip}\n disable={!tooltip || disabled}\n key={`c-sheet-control-${runIndex}-${index}`}\n >\n <StyledAnimatedSpan\n onClick={onClick}\n $disabled={disabled}\n className={className}\n >\n {IconComponent}\n </StyledAnimatedSpan>\n </Tooltip>\n )\n );\n\n return run[0].group ? (\n <StyledSheetControlGroup\n key={`c-sheet-group-${runIndex}`}\n className={classnames(\n \"c-sheet__control-group\",\n run[0].className\n )}\n >\n {items}\n </StyledSheetControlGroup>\n ) : (\n items\n );\n })}\n {sideContent ? (\n <StyledSheetSideContent className=\"c-sheet__side-content\">\n {sideContent}\n </StyledSheetSideContent>\n ) : null}\n </StyledSheetIcons>\n )}\n <StyledSheetWrapperPaper\n paperClass=\"c-sheet__wrapper__paper\"\n $surface={surface}\n >\n {controls.length > 0 && (\n <StyledHeader>\n <StyledIconsWrapperSmall>\n {controls.map(\n (\n {\n icon: IconComponent,\n tooltip,\n onClick,\n disabled,\n className,\n },\n index\n ) => (\n <Tooltip\n title={tooltip}\n disable={!tooltip || disabled}\n key={index}\n >\n <IconButton\n onClick={onClick}\n disabled={disabled}\n className={className}\n variant=\"text gray\"\n >\n {IconComponent}\n </IconButton>\n </Tooltip>\n )\n )}\n </StyledIconsWrapperSmall>\n <StyledListSeparator />\n </StyledHeader>\n )}\n {children}\n </StyledSheetWrapperPaper>\n {isResizable ? (\n <StyledSheetResizeHandle\n {...resizeHandleProps}\n active={isHandleActive}\n label={resizeLabel}\n edge={position === \"left\" ? \"right\" : \"left\"}\n className={`c-sheet__resize c-sheet__resize--${\n position === \"left\" ? \"right\" : \"left\"\n }`}\n />\n ) : null}\n </StyledSheetSurface>\n </StyledCssTransition>\n </StyledSheetWrapper>\n </Window>\n );\n\n // The provider is always there, so the Window keeps its place in the tree when the sheet gets a host.\n return (\n <PortalContainerProvider value={modalHost ?? portalContainer}>\n {sheetWindow}\n </PortalContainerProvider>\n );\n }\n);\n\nSheet.displayName = \"Sheet\";\n"],"mappings":";;;;AAAA,OAAOA,KAAK,IACVC,WAAW,EACXC,SAAS,EACTC,eAAe,EACfC,UAAU,EAEVC,QAAQ,EAGRC,mBAAmB,EACnBC,MAAM,QACD,OAAO;AAEd,OAAOC,UAAU,MAAM,YAAY;AAEnC,SACEC,kBAAkB,EAClBC,mBAAmB,EACnBC,YAAY,EACZC,uBAAuB,EACvBC,mBAAmB,EACnBC,uBAAuB,EACvBC,gBAAgB,EAChBC,sBAAsB,EACtBC,kBAAkB,EAClBC,cAAc,EACdC,aAAa,EACbC,kBAAkB,EAClBC,uBAAuB,EACvB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AS,GAAIF;EAAgB,GAC1DoB,WACsB,CAAC;AAE9B,CACF,CAAC;AAED9E,KAAK,CAACsH,WAAW,GAAG,OAAO","ignoreList":[]}
@@ -1,6 +1,8 @@
1
1
  import { CSSTransition } from "react-transition-group";
2
2
  export declare const SHEET_ENTER_MS = 400;
3
3
  export declare const SHEET_EXIT_MS = 200;
4
+ export declare const StyledSheetControlGroup: import("styled-components").StyledComponent<"span", any, {}, never>;
5
+ export declare const StyledSheetSideContent: import("styled-components").StyledComponent<"div", any, {}, never>;
4
6
  export declare const StyledSheetIcons: import("styled-components").StyledComponent<"div", any, {}, never>;
5
7
  interface IStyledSheetWrapper {
6
8
  $position?: "center" | "left" | "right";
@@ -13,6 +15,7 @@ interface IStyledSheetWrapperPaper {
13
15
  $surface?: "paper" | "sheet";
14
16
  }
15
17
  export declare const StyledSheetSurface: import("styled-components").StyledComponent<"div", any, {}, never>;
18
+ export declare const StyledSheetResizeHandle: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("..").IResizeHandleProps & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
16
19
  export declare const StyledSheetWrapperPaper: import("styled-components").StyledComponent<"div", any, IStyledSheetWrapperPaper, never>;
17
20
  interface IStyledAnimatedSpan {
18
21
  $disabled?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"Styles.d.ts","sourceRoot":"","sources":["../../../../src/components/Sheet/Styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AASvD,eAAO,MAAM,cAAc,MAAM,CAAC;AAClC,eAAO,MAAM,aAAa,MAAM,CAAC;AAEjC,eAAO,MAAM,gBAAgB,oEA2B5B,CAAC;AAIF,UAAU,mBAAmB;IAC3B,SAAS,CAAC,EAAE,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;IACxC,KAAK,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;IAC7B,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,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