@orangelogic/design-system 2.172.0 → 2.174.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 (47) hide show
  1. package/library/chunks/{asset-link-format.BATKDRgD.js → asset-link-format.NhSLWk_Y.js} +8 -6
  2. package/library/chunks/{color-swatch-group.CQlgq_I5.js → color-swatch-group.C01UAz1A.js} +530 -512
  3. package/library/chunks/{confirm-popover.hHcCIzpX.js → confirm-popover.Cn1BaP0W.js} +1 -1
  4. package/library/chunks/{dialog.BaHYOyYO.js → dialog.clJBka-1.js} +1 -1
  5. package/library/chunks/{document-viewer.B89YB5oo.js → document-viewer.DxPw7xHV.js} +1 -1
  6. package/library/chunks/{folder-select.C6Sv4jtu.js → folder-select.BgWvY0t0.js} +346 -320
  7. package/library/chunks/{icon-button.DJvfUmOl.js → icon-button.BWToMtdK.js} +3 -3
  8. package/library/chunks/{markdown.qQGMz1OY.js → markdown.CESgIEEE.js} +1 -1
  9. package/library/chunks/{pagination.CwKlKOek.js → pagination.Do36kaZK.js} +1 -1
  10. package/library/chunks/{tab-group.C_n0GEc_.js → tab-group.DYywhd3A.js} +1 -1
  11. package/library/components/alert.js +1 -1
  12. package/library/components/asset-link-format.js +1 -1
  13. package/library/components/atoms.js +6 -6
  14. package/library/components/audio.js +1 -1
  15. package/library/components/badge.js +1 -1
  16. package/library/components/color-swatch-group.js +1 -1
  17. package/library/components/confirm-popover.js +2 -2
  18. package/library/components/date-calendar.js +1 -1
  19. package/library/components/dialog.js +2 -2
  20. package/library/components/document-viewer.js +1 -1
  21. package/library/components/drawer.js +1 -1
  22. package/library/components/dynamic-select.js +144 -128
  23. package/library/components/file-on-demand.js +4 -4
  24. package/library/components/folder-select.js +1 -1
  25. package/library/components/icon-button.js +1 -1
  26. package/library/components/markdown.js +2 -2
  27. package/library/components/masonry.js +1 -1
  28. package/library/components/molecules.js +2 -2
  29. package/library/components/organisms.js +2 -2
  30. package/library/components/pagination.js +2 -2
  31. package/library/components/sidebar.js +1 -1
  32. package/library/components/size-input-group.js +1 -1
  33. package/library/components/tab-group.js +2 -2
  34. package/library/components/tab.js +1 -1
  35. package/library/components/tag.js +1 -1
  36. package/library/components/typeface.js +1 -1
  37. package/library/components/types.js +15 -15
  38. package/library/package.json +1 -1
  39. package/library/packages/atoms/src/components/icon-button/icon-button.d.ts +2 -1
  40. package/library/packages/hybrid/table-core/src/table/components/table-toolbar/table-dropdown-filter.d.ts +13 -1
  41. package/library/packages/hybrid/table-core/src/table/components/table-toolbar/table-toolbar.d.ts +3 -0
  42. package/library/packages/molecules/src/dynamic-select/dynamic-select.d.ts +14 -0
  43. package/library/packages/molecules/src/faceted-filter/faceted-filter.d.ts +1 -0
  44. package/library/packages/molecules/src/folder-select/components/folder-select-tree/folder-select-tree.d.ts +16 -0
  45. package/library/packages/molecules/src/folder-select/folder-select.d.ts +18 -5
  46. package/library/react-web-component.d.ts +6 -1
  47. package/package.json +1 -1
@@ -25,7 +25,7 @@ import { n as _ } from "./when.Dr1es41R.js";
25
25
  import et from "../components/details.js";
26
26
  import Jt from "../components/divider.js";
27
27
  import { C as it } from "./icon.D5iM9wXS.js";
28
- import { C as vt } from "./icon-button.DJvfUmOl.js";
28
+ import { C as vt } from "./icon-button.BWToMtdK.js";
29
29
  import { C as bt } from "./input.B-c9KEAH.js";
30
30
  import { C as gt } from "./option.Bvyag0r1.js";
31
31
  import xt from "../components/select.js";
@@ -1364,16 +1364,18 @@ let v = class extends B {
1364
1364
  return this.lastAppliedSetting[this.unit].width === this.width && this.lastAppliedSetting[this.unit].height === this.height;
1365
1365
  }
1366
1366
  async handleCropModeChange() {
1367
+ const t = Number.isFinite(this.maxWidth) && Number.isFinite(this.maxHeight) && this.maxWidth > 0 && this.maxHeight > 0;
1367
1368
  if (this.keepAspectRatio) {
1368
- if (this.unit === o.Pixel && this.width && this.height) {
1369
- this.aspectRatio = this.width / this.height;
1370
- return;
1371
- } else if (this.unit === o.AspectRatio && this.ratioWidth && this.ratioHeight) {
1369
+ if (this.unit === o.AspectRatio && this.ratioWidth && this.ratioHeight) {
1372
1370
  this.aspectRatio = this.ratioWidth / this.ratioHeight;
1373
1371
  return;
1374
1372
  }
1373
+ if (this.unit === o.Pixel && !t && this.width && this.height) {
1374
+ this.aspectRatio = this.width / this.height;
1375
+ return;
1376
+ }
1375
1377
  }
1376
- if (this.maxWidth && this.maxHeight && Number.isFinite(this.maxWidth) && Number.isFinite(this.maxHeight)) {
1378
+ if (t) {
1377
1379
  this.aspectRatio = this.maxWidth / this.maxHeight;
1378
1380
  return;
1379
1381
  }