vira 32.2.1 → 32.3.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.
@@ -37,4 +37,4 @@ export declare const ViraModal: import("element-vir").DeclarativeElementDefiniti
37
37
  cleanupListeners: undefined | (() => void);
38
38
  }, {
39
39
  modalClose: import("element-vir").DefineElementEvent<void>;
40
- }, "vira-modal-phone-size" | "vira-modal-no-content-padding", "vira-modal-backdrop-filter" | "vira-modal-border-radius", readonly ["vira-modal-modal-title"], readonly []>;
40
+ }, "vira-modal-phone-size" | "vira-modal-no-content-padding", "vira-modal-backdrop-filter" | "vira-modal-border-radius" | "vira-modal-max-width", readonly ["vira-modal-modal-title"], readonly []>;
@@ -51,6 +51,8 @@ export const ViraModal = defineViraElement()({
51
51
  cssVars: {
52
52
  'vira-modal-backdrop-filter': 'blur(3px)',
53
53
  'vira-modal-border-radius': '8px',
54
+ /** Can go no wider than the viewport. */
55
+ 'vira-modal-max-width': 'calc(100dvw - 100px)',
54
56
  },
55
57
  styles({ hostClasses, cssVars }) {
56
58
  return css `
@@ -73,7 +75,7 @@ export const ViraModal = defineViraElement()({
73
75
  overflow: hidden;
74
76
  min-width: inherit;
75
77
  min-height: inherit;
76
- max-width: calc(100dvw - 100px);
78
+ max-width: min(${cssVars['vira-modal-max-width'].value}, 100dvw);
77
79
  max-height: calc(100dvh - 100px);
78
80
  ${viraShadows.modal}
79
81
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vira",
3
- "version": "32.2.1",
3
+ "version": "32.3.0",
4
4
  "description": "A simple and highly versatile design system using element-vir.",
5
5
  "keywords": [
6
6
  "design",