@getflip/swirl-components 0.172.0 → 0.173.0

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 (30) hide show
  1. package/components.json +39 -1
  2. package/dist/cjs/{focus-trap.esm-21561e09.js → focus-trap.esm-a1e3774c.js} +541 -179
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/swirl-components.cjs.js +1 -1
  5. package/dist/cjs/swirl-modal.cjs.entry.js +1 -1
  6. package/dist/cjs/swirl-shell-layout.cjs.entry.js +1 -1
  7. package/dist/cjs/swirl-text.cjs.entry.js +5 -1
  8. package/dist/collection/assets/pdfjs/pdf.worker.min.js +1 -1
  9. package/dist/collection/components/swirl-text/swirl-text.js +28 -1
  10. package/dist/collection/components/swirl-text/swirl-text.spec.js +2 -2
  11. package/dist/components/assets/pdfjs/pdf.worker.min.js +1 -1
  12. package/dist/components/focus-trap.esm.js +541 -179
  13. package/dist/components/swirl-text2.js +7 -2
  14. package/dist/esm/{focus-trap.esm-37cd2d2b.js → focus-trap.esm-49c9613c.js} +541 -179
  15. package/dist/esm/loader.js +1 -1
  16. package/dist/esm/swirl-components.js +1 -1
  17. package/dist/esm/swirl-modal.entry.js +1 -1
  18. package/dist/esm/swirl-shell-layout.entry.js +1 -1
  19. package/dist/esm/swirl-text.entry.js +5 -1
  20. package/dist/swirl-components/{p-f69e0df8.entry.js → p-08a28031.entry.js} +1 -1
  21. package/dist/swirl-components/p-878dc806.js +10 -0
  22. package/dist/swirl-components/{p-208ad130.entry.js → p-8c722527.entry.js} +1 -1
  23. package/dist/swirl-components/{p-5d37ed5c.entry.js → p-dd1c0c51.entry.js} +1 -1
  24. package/dist/swirl-components/swirl-components.css +1 -1
  25. package/dist/swirl-components/swirl-components.esm.js +1 -1
  26. package/dist/types/components/swirl-text/swirl-text.d.ts +2 -0
  27. package/dist/types/components.d.ts +4 -2
  28. package/package.json +3 -3
  29. package/vscode-data.json +24 -0
  30. package/dist/swirl-components/p-c2e1dfdb.js +0 -10
@@ -939,6 +939,7 @@ const SwirlText = /*@__PURE__*/ proxyCustomElement(class SwirlText extends HTMLE
939
939
  this.truncate = undefined;
940
940
  this.truncateDirection = "end";
941
941
  this.weight = "normal";
942
+ this.whiteSpace = "normal";
942
943
  }
943
944
  componentDidRender() {
944
945
  this.rebalance();
@@ -971,7 +972,10 @@ const SwirlText = /*@__PURE__*/ proxyCustomElement(class SwirlText extends HTMLE
971
972
  const className = classnames("text", `text--align-${this.align}`, `text--color-${this.color}`, `text--font-family-${this.fontFamily}`, `text--font-style-${this.fontStyle}`, `text--size-${this.size}`, `text--truncate-direction-${this.truncateDirection}`, `text--weight-${this.weight}`, {
972
973
  "text--truncate": this.truncate && (!Boolean(this.lines) || this.lines === 1),
973
974
  });
974
- return (h(Host, null, h(Tag, { class: className, ref: (el) => (this.textEl = el) }, h("slot", null))));
975
+ const styles = {
976
+ whiteSpace: this.whiteSpace,
977
+ };
978
+ return (h(Host, null, h(Tag, { class: className, ref: (el) => (this.textEl = el), style: styles }, h("slot", null))));
975
979
  }
976
980
  get el() { return this; }
977
981
  static get style() { return swirlTextCss; }
@@ -986,7 +990,8 @@ const SwirlText = /*@__PURE__*/ proxyCustomElement(class SwirlText extends HTMLE
986
990
  "size": [1],
987
991
  "truncate": [4],
988
992
  "truncateDirection": [1, "truncate-direction"],
989
- "weight": [1]
993
+ "weight": [1],
994
+ "whiteSpace": [1, "white-space"]
990
995
  }, [[9, "resize", "onWindowResize"]]]);
991
996
  function defineCustomElement() {
992
997
  if (typeof customElements === "undefined") {