@sula-tech/webcomponents 0.24.1 → 0.25.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.
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/sula-avatar_32.cjs.entry.js +46 -15
- package/dist/cjs/sula-avatar_32.cjs.entry.js.map +1 -1
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/components/sula-button/sula-button.css +1 -1
- package/dist/collection/components/sula-icon/sula-icon.css +1 -1
- package/dist/collection/components/sula-loader/sula-loader.css +1 -1
- package/dist/collection/components/sula-modal/sula-modal.css +1 -1
- package/dist/collection/components/sula-modal/sula-modal.js +142 -11
- package/dist/collection/components/sula-modal/sula-modal.js.map +1 -1
- package/dist/collection/components/sula-modal/sula-modal.stories.js +48 -0
- package/dist/collection/components/sula-modal/sula-modal.stories.js.map +1 -1
- package/dist/components/{p-KitH8bea.js → p-BSlKsiiN.js} +3 -3
- package/dist/components/{p-KitH8bea.js.map → p-BSlKsiiN.js.map} +1 -1
- package/dist/components/{p-BORy1230.js → p-BlRYoc3b.js} +3 -3
- package/dist/components/{p-BORy1230.js.map → p-BlRYoc3b.js.map} +1 -1
- package/dist/components/{p-DK8hW-Cd.js → p-CNJmyTBM.js} +3 -3
- package/dist/components/{p-DK8hW-Cd.js.map → p-CNJmyTBM.js.map} +1 -1
- package/dist/components/{p-B_WIoxzn.js → p-Chv1iPo7.js} +4 -4
- package/dist/components/{p-B_WIoxzn.js.map → p-Chv1iPo7.js.map} +1 -1
- package/dist/components/{p-CGpfhGAG.js → p-CkBDMANF.js} +3 -3
- package/dist/components/{p-CGpfhGAG.js.map → p-CkBDMANF.js.map} +1 -1
- package/dist/components/{p-CWTfj4TV.js → p-Ckrg2kct.js} +3 -3
- package/dist/components/{p-CWTfj4TV.js.map → p-Ckrg2kct.js.map} +1 -1
- package/dist/components/{p-GEr9Dmhq.js → p-CqrWuXvX.js} +3 -3
- package/dist/components/{p-GEr9Dmhq.js.map → p-CqrWuXvX.js.map} +1 -1
- package/dist/components/{p-DwZCdDhF.js → p-DOhCUb27.js} +3 -3
- package/dist/components/{p-DwZCdDhF.js.map → p-DOhCUb27.js.map} +1 -1
- package/dist/components/{p-BssyNhpP.js → p-ej3XWtzq.js} +5 -5
- package/dist/components/{p-BssyNhpP.js.map → p-ej3XWtzq.js.map} +1 -1
- package/dist/components/sula-avatar.js +1 -1
- package/dist/components/sula-badge.js +1 -1
- package/dist/components/sula-breadcrumb.js +1 -1
- package/dist/components/sula-button.js +1 -1
- package/dist/components/sula-calendar.js +2 -2
- package/dist/components/sula-checkbox.js +1 -1
- package/dist/components/sula-chip.js +2 -2
- package/dist/components/sula-dropdown.js +1 -1
- package/dist/components/sula-icon-picker.js +4 -4
- package/dist/components/sula-icon.js +1 -1
- package/dist/components/sula-loader.js +1 -1
- package/dist/components/sula-menu-select-list.js +1 -1
- package/dist/components/sula-menu.js +1 -1
- package/dist/components/sula-modal.js +51 -15
- package/dist/components/sula-modal.js.map +1 -1
- package/dist/components/sula-profile-menu.js +1 -1
- package/dist/components/sula-progress-bar.js +1 -1
- package/dist/components/sula-search-bar.js +1 -1
- package/dist/components/sula-segmented-control.js +1 -1
- package/dist/components/sula-tag.js +1 -1
- package/dist/components/sula-textfield.js +1 -1
- package/dist/components/sula-tiles.js +1 -1
- package/dist/components/sula-timeline-list.js +1 -1
- package/dist/components/sula-toast-stack.js +2 -2
- package/dist/components/sula-toast.js +1 -1
- package/dist/components/sula-toggle.js +1 -1
- package/dist/components/sula-tooltip.js +1 -1
- package/dist/components/sula-workbench-menu.js +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/sula-avatar_32.entry.js +46 -15
- package/dist/esm/sula-avatar_32.entry.js.map +1 -1
- package/dist/esm/webcomponents.js +1 -1
- package/dist/types/components/sula-modal/sula-modal.d.ts +21 -0
- package/dist/types/components/sula-modal/sula-modal.stories.d.ts +22 -0
- package/dist/types/components.d.ts +50 -0
- package/dist/webcomponents/{p-907588e9.entry.js → p-28e25fac.entry.js} +52 -19
- package/dist/webcomponents/p-28e25fac.entry.js.map +1 -0
- package/dist/webcomponents/webcomponents.esm.js +6 -1
- package/package.json +1 -1
- package/dist/webcomponents/p-907588e9.entry.js.map +0 -1
|
@@ -16,7 +16,7 @@ var patchBrowser = () => {
|
|
|
16
16
|
|
|
17
17
|
patchBrowser().then(async (options) => {
|
|
18
18
|
await globalScripts();
|
|
19
|
-
return bootstrapLazy([["sula-avatar_32",[[1,"sula-icon-picker",{"label":[1025],"required":[1028],"disabled":[1028],"error":[1025],"value":[1025],"showSearch":[4,"show-search"],"searchPlaceholder":[1,"search-placeholder"],"icons":[1040],"maxVisibleIcons":[2,"max-visible-icons"],"menuMaxHeight":[2,"menu-max-height"],"selectedIcon":[32],"searchTerm":[32]},null,{"value":["handleValueChange"],"icons":["handleIconsChange"]}],[1,"sula-modal",{"opened":[1028],"blockBodyScroll":[1028,"block-body-scroll"],"closeOnClickOutside":[1028,"close-on-click-outside"],"type":[1],"headerIcon":[1,"header-icon"],"modalTitle":[1,"modal-title"],"promoImage":[1,"promo-image"],"subTitle":[1,"sub-title"],"primaryButtonText":[1,"primary-button-text"],"secondaryButtonText":[1,"secondary-button-text"],"slotOverflow":[1,"slot-overflow"],"isAnimating":[32],"shouldRender":[32]},null,{"opened":["handleOpenedChange"]}],[1,"sula-calendar",{"label":[1],"value":[1025],"placeholder":[1],"disabled":[4],"helpText":[1,"help-text"],"status":[1],"locale":[1],"minDate":[1,"min-date"],"maxDate":[1,"max-date"],"range":[4],"allowTyping":[4,"allow-typing"],"inline":[4],"compact":[4],"firstDayOfWeek":[2,"first-day-of-week"],"closeOnSelect":[4,"close-on-select"],"showCalendar":[32],"openUpward":[32],"viewMonth":[32],"viewYear":[32],"hoverDate":[32]},[[4,"click","handleDocumentClick"],[4,"keydown","handleDocumentKeydown"]],{"value":["handleValueChange"]}],[1,"sula-chip",{"text":[1025],"appearance":[1025],"disabled":[1028],"icon":[1],"items":[1040],"itemsPlacement":[1025,"items-placement"],"selected":[1028],"isFocused":[32],"showItems":[32]},[[4,"click","handleDocumentClick"]]],[1,"sula-avatar",{"size":[1],"imageUrl":[1,"image-url"],"text":[1],"icon":[1]}],[1,"sula-badge",{"status":[1025],"size":[1025],"type":[1025],"text":[1025],"icon":[1025],"hasSlotContent":[32]}],[1,"sula-breadcrumb",{"items":[1040]}],[1,"sula-checkbox",{"type":[1025],"label":[1025],"subTitle":[1025,"sub-title"],"disabled":[1028],"checked":[1028],"isFocus":[32]}],[1,"sula-menu",{"menuTitle":[1,"menu-title"],"image":[1],"width":[1],"density":[1],"labelOverflow":[1,"label-overflow"],"items":[1040],"collapsed":[32],"previewExpanded":[32],"selectedItem":[32]},null,{"items":["syncSelectedItemFromItems"]}],[1,"sula-progress-bar",{"appearance":[1025],"state":[1025],"topLabel":[1025,"top-label"],"bottomLabel":[1025,"bottom-label"],"progress":[1026],"showProgress":[1028,"show-progress"]},null,{"progress":["validateProgress"]}],[1,"sula-segmented-control",{"items":[1040],"type":[1025],"size":[1025],"color":[1025]}],[1,"sula-tag",{"label":[1025],"icon":[1025],"iconStatus":[1025,"icon-status"],"size":[1025],"appearance":[1025],"fontWeight":[1025,"font-weight"]}],[1,"sula-tiles",{"type":[1],"size":[1],"ellipsis":[4],"icon":[1],"text":[1],"subText":[1,"sub-text"],"disabled":[4]}],[1,"sula-timeline-list",{"sulaTimelineList":[1040,"sula-timeline-list"]}],[1,"sula-toggle",{"selected":[1028],"buttonDisabled":[1028,"button-disabled"],"icon":[1]}],[1,"sula-tooltip",{"text":[1],"position":[1],"icon":[1],"iconClass":[1,"icon-class"],"focused":[4],"trigger":[1],"appendToBody":[4,"append-to-body"],"isVisible":[32]},null,{"text":["handleTextChange"]}],[1,"sula-radio-button",{"checked":[1028],"label":[1025],"disabled":[1028],"radioIsFocus":[32]}],[4,"sula-table",{"density":[1],"equalWidth":[4,"equal-width"],"fullWidth":[4,"full-width"]}],[4,"sula-table-body"],[4,"sula-table-cell"],[4,"sula-table-head-cell"],[4,"sula-table-header"],[4,"sula-table-row"],[1,"sula-textarea",{"value":[1025],"status":[1025],"label":[1],"placeholder":[1],"disabled":[1028],"helpText":[1,"help-text"],"maxLength":[2,"max-length"],"rows":[2],"isActive":[32],"textValue":[32],"textareaIsFocused":[32],"labelPadding":[32]},[[4,"click","handleClick"]],{"value":["watchValueHandler"]}],[1,"sula-button",{"text":[1025],"icon":[1025],"leftIcon":[1025,"left-icon"],"rightIcon":[1025,"right-icon"],"appearance":[1025],"type":[1025],"size":[1025],"status":[1025],"loading":[1028],"buttonDisabled":[1028,"button-disabled"],"fullWidth":[1028,"full-width"]}],[1,"sula-dropdown",{"label":[1025],"disabled":[1028],"hasError":[1540,"has-error"],"items":[1040],"value":[1040],"searchable":[516],"menuMaxHeight":[2,"menu-max-height"],"contentMaxHeight":[2,"content-max-height"],"customContent":[516,"custom-content"],"closeOnSelect":[4,"close-on-select"],"showContent":[1540,"show-content"],"selectedItem":[32],"isFocused":[32],"searchTerm":[32],"filteredItems":[32],"openUpward":[32]},[[4,"click","handleDocumentClick"],[9,"resize","handleWindowResize"]],{"value":["handleValueChange"],"showContent":["handleShowContentChange"]}],[1,"sula-search-bar",{"value":[1025],"searchBarStyle":[1025,"search-bar-style"],"placeholder":[1025],"leftIcon":[1025,"left-icon"],"rightIcon":[1025,"right-icon"],"isFocused":[32],"textValue":[32]}],[1,"sula-textfield",{"value":[1025],"type":[1],"status":[1025],"label":[1],"placeholder":[1],"disabled":[1028],"readOnly":[4,"read-only"],"helpText":[1,"help-text"],"maxLength":[2,"max-length"],"icon":[1],"maskPattern":[1,"mask-pattern"],"maskPatternSwitchMaxLength":[2,"mask-pattern-switch-max-length"],"inputIsOpen":[32],"textValue":[32],"showPassword":[32],"inputIsFocused":[32]},[[4,"click","handleClick"]],{"value":["watchValueHandler"],"maskPattern":["watchMaskPatternHandler"],"maskPatternSwitchMaxLength":["watchMaskPatternSwitchMaxLengthHandler"]}],[1,"sula-loader",{"size":[1],"animationInstance":[32]}],[1,"sula-switch",{"type":[1025],"active":[1028],"disabled":[1028],"label":[1025],"subTitle":[1025,"sub-title"],"responsive":[4],"isFocus":[32]}],[1,"sula-menu-select-list",{"items":[1040],"fullWidth":[4,"full-width"],"maxHeight":[2,"max-height"],"selectedValue":[16,"selected-value"]}],[0,"sula-icon",{"icon":[1],"customClass":[1,"custom-class"]}]]],["sula-profile-menu",[[1,"sula-profile-menu",{"user":[16],"items":[1040]}]]],["sula-workbench-menu",[[1,"sula-workbench-menu",{"menuTitle":[1,"menu-title"],"image":[1],"width":[1],"density":[1],"labelOverflow":[1,"label-overflow"],"drilldownLevel":[2,"drilldown-level"],"drillPath":[16,"drill-path"],"items":[1040],"user":[16],"defaultIcon":[1,"default-icon"],"profileItems":[1040,"profile-items"],"collapsed":[32],"previewExpanded":[32],"stack":[32],"direction":[32],"selectedPath":[32],"crumbMenu":[32],"profileOpen":[32]},[[4,"click","onDocumentClick"],[4,"keydown","onDocumentKeydown"],[9,"resize","onWindowResize"]],{"items":["syncWithItems"],"drillPath":["syncDrillPath"]}]]],["sula-toast",[[1,"sula-toast",{"toastTitle":[1,"toast-title"],"message":[1],"type":[1],"icon":[1],"actionText":[1,"action-text"],"closable":[4],"duration":[2],"paused":[4],"animated":[4],"announcement":[1],"closeLabel":[1,"close-label"],"announcedText":[32]},[[4,"visibilitychange","updateTimeout"]],{"toastTitle":["handleContentChange"],"message":["handleContentChange"],"actionText":["handleContentChange"],"duration":["handleContentChange"],"announcement":["updateAnnouncement"],"paused":["updateTimeout"]}]]],["sula-toast-stack",[[1,"sula-toast-stack",{"items":[16],"hovering":[32],"focused":[32],"noHover":[32],"retainingPointerExpansion":[32],"announcements":[32]},null,{"items":["handleItemsChange"]}]]]], options);
|
|
19
|
+
return bootstrapLazy([["sula-avatar_32",[[1,"sula-icon-picker",{"label":[1025],"required":[1028],"disabled":[1028],"error":[1025],"value":[1025],"showSearch":[4,"show-search"],"searchPlaceholder":[1,"search-placeholder"],"icons":[1040],"maxVisibleIcons":[2,"max-visible-icons"],"menuMaxHeight":[2,"menu-max-height"],"selectedIcon":[32],"searchTerm":[32]},null,{"value":["handleValueChange"],"icons":["handleIconsChange"]}],[1,"sula-modal",{"opened":[1028],"blockBodyScroll":[1028,"block-body-scroll"],"closeOnClickOutside":[1028,"close-on-click-outside"],"type":[1],"headerIcon":[1,"header-icon"],"modalTitle":[1,"modal-title"],"promoImage":[1,"promo-image"],"subTitle":[1,"sub-title"],"primaryButtonText":[1,"primary-button-text"],"secondaryButtonText":[1,"secondary-button-text"],"slotOverflow":[1,"slot-overflow"],"modalWidth":[1,"modal-width"],"slotMaxHeight":[1,"slot-max-height"],"slotAutoHeight":[4,"slot-auto-height"],"primaryButtonDisabled":[4,"primary-button-disabled"],"secondaryButtonDisabled":[4,"secondary-button-disabled"],"isAnimating":[32],"shouldRender":[32]},null,{"opened":["handleOpenedChange"]}],[1,"sula-calendar",{"label":[1],"value":[1025],"placeholder":[1],"disabled":[4],"helpText":[1,"help-text"],"status":[1],"locale":[1],"minDate":[1,"min-date"],"maxDate":[1,"max-date"],"range":[4],"allowTyping":[4,"allow-typing"],"inline":[4],"compact":[4],"firstDayOfWeek":[2,"first-day-of-week"],"closeOnSelect":[4,"close-on-select"],"showCalendar":[32],"openUpward":[32],"viewMonth":[32],"viewYear":[32],"hoverDate":[32]},[[4,"click","handleDocumentClick"],[4,"keydown","handleDocumentKeydown"]],{"value":["handleValueChange"]}],[1,"sula-chip",{"text":[1025],"appearance":[1025],"disabled":[1028],"icon":[1],"items":[1040],"itemsPlacement":[1025,"items-placement"],"selected":[1028],"isFocused":[32],"showItems":[32]},[[4,"click","handleDocumentClick"]]],[1,"sula-avatar",{"size":[1],"imageUrl":[1,"image-url"],"text":[1],"icon":[1]}],[1,"sula-badge",{"status":[1025],"size":[1025],"type":[1025],"text":[1025],"icon":[1025],"hasSlotContent":[32]}],[1,"sula-breadcrumb",{"items":[1040]}],[1,"sula-checkbox",{"type":[1025],"label":[1025],"subTitle":[1025,"sub-title"],"disabled":[1028],"checked":[1028],"isFocus":[32]}],[1,"sula-menu",{"menuTitle":[1,"menu-title"],"image":[1],"width":[1],"density":[1],"labelOverflow":[1,"label-overflow"],"items":[1040],"collapsed":[32],"previewExpanded":[32],"selectedItem":[32]},null,{"items":["syncSelectedItemFromItems"]}],[1,"sula-progress-bar",{"appearance":[1025],"state":[1025],"topLabel":[1025,"top-label"],"bottomLabel":[1025,"bottom-label"],"progress":[1026],"showProgress":[1028,"show-progress"]},null,{"progress":["validateProgress"]}],[1,"sula-segmented-control",{"items":[1040],"type":[1025],"size":[1025],"color":[1025]}],[1,"sula-tag",{"label":[1025],"icon":[1025],"iconStatus":[1025,"icon-status"],"size":[1025],"appearance":[1025],"fontWeight":[1025,"font-weight"]}],[1,"sula-tiles",{"type":[1],"size":[1],"ellipsis":[4],"icon":[1],"text":[1],"subText":[1,"sub-text"],"disabled":[4]}],[1,"sula-timeline-list",{"sulaTimelineList":[1040,"sula-timeline-list"]}],[1,"sula-toggle",{"selected":[1028],"buttonDisabled":[1028,"button-disabled"],"icon":[1]}],[1,"sula-tooltip",{"text":[1],"position":[1],"icon":[1],"iconClass":[1,"icon-class"],"focused":[4],"trigger":[1],"appendToBody":[4,"append-to-body"],"isVisible":[32]},null,{"text":["handleTextChange"]}],[1,"sula-radio-button",{"checked":[1028],"label":[1025],"disabled":[1028],"radioIsFocus":[32]}],[4,"sula-table",{"density":[1],"equalWidth":[4,"equal-width"],"fullWidth":[4,"full-width"]}],[4,"sula-table-body"],[4,"sula-table-cell"],[4,"sula-table-head-cell"],[4,"sula-table-header"],[4,"sula-table-row"],[1,"sula-textarea",{"value":[1025],"status":[1025],"label":[1],"placeholder":[1],"disabled":[1028],"helpText":[1,"help-text"],"maxLength":[2,"max-length"],"rows":[2],"isActive":[32],"textValue":[32],"textareaIsFocused":[32],"labelPadding":[32]},[[4,"click","handleClick"]],{"value":["watchValueHandler"]}],[1,"sula-button",{"text":[1025],"icon":[1025],"leftIcon":[1025,"left-icon"],"rightIcon":[1025,"right-icon"],"appearance":[1025],"type":[1025],"size":[1025],"status":[1025],"loading":[1028],"buttonDisabled":[1028,"button-disabled"],"fullWidth":[1028,"full-width"]}],[1,"sula-dropdown",{"label":[1025],"disabled":[1028],"hasError":[1540,"has-error"],"items":[1040],"value":[1040],"searchable":[516],"menuMaxHeight":[2,"menu-max-height"],"contentMaxHeight":[2,"content-max-height"],"customContent":[516,"custom-content"],"closeOnSelect":[4,"close-on-select"],"showContent":[1540,"show-content"],"selectedItem":[32],"isFocused":[32],"searchTerm":[32],"filteredItems":[32],"openUpward":[32]},[[4,"click","handleDocumentClick"],[9,"resize","handleWindowResize"]],{"value":["handleValueChange"],"showContent":["handleShowContentChange"]}],[1,"sula-search-bar",{"value":[1025],"searchBarStyle":[1025,"search-bar-style"],"placeholder":[1025],"leftIcon":[1025,"left-icon"],"rightIcon":[1025,"right-icon"],"isFocused":[32],"textValue":[32]}],[1,"sula-textfield",{"value":[1025],"type":[1],"status":[1025],"label":[1],"placeholder":[1],"disabled":[1028],"readOnly":[4,"read-only"],"helpText":[1,"help-text"],"maxLength":[2,"max-length"],"icon":[1],"maskPattern":[1,"mask-pattern"],"maskPatternSwitchMaxLength":[2,"mask-pattern-switch-max-length"],"inputIsOpen":[32],"textValue":[32],"showPassword":[32],"inputIsFocused":[32]},[[4,"click","handleClick"]],{"value":["watchValueHandler"],"maskPattern":["watchMaskPatternHandler"],"maskPatternSwitchMaxLength":["watchMaskPatternSwitchMaxLengthHandler"]}],[1,"sula-loader",{"size":[1],"animationInstance":[32]}],[1,"sula-switch",{"type":[1025],"active":[1028],"disabled":[1028],"label":[1025],"subTitle":[1025,"sub-title"],"responsive":[4],"isFocus":[32]}],[1,"sula-menu-select-list",{"items":[1040],"fullWidth":[4,"full-width"],"maxHeight":[2,"max-height"],"selectedValue":[16,"selected-value"]}],[0,"sula-icon",{"icon":[1],"customClass":[1,"custom-class"]}]]],["sula-profile-menu",[[1,"sula-profile-menu",{"user":[16],"items":[1040]}]]],["sula-workbench-menu",[[1,"sula-workbench-menu",{"menuTitle":[1,"menu-title"],"image":[1],"width":[1],"density":[1],"labelOverflow":[1,"label-overflow"],"drilldownLevel":[2,"drilldown-level"],"drillPath":[16,"drill-path"],"items":[1040],"user":[16],"defaultIcon":[1,"default-icon"],"profileItems":[1040,"profile-items"],"collapsed":[32],"previewExpanded":[32],"stack":[32],"direction":[32],"selectedPath":[32],"crumbMenu":[32],"profileOpen":[32]},[[4,"click","onDocumentClick"],[4,"keydown","onDocumentKeydown"],[9,"resize","onWindowResize"]],{"items":["syncWithItems"],"drillPath":["syncDrillPath"]}]]],["sula-toast",[[1,"sula-toast",{"toastTitle":[1,"toast-title"],"message":[1],"type":[1],"icon":[1],"actionText":[1,"action-text"],"closable":[4],"duration":[2],"paused":[4],"animated":[4],"announcement":[1],"closeLabel":[1,"close-label"],"announcedText":[32]},[[4,"visibilitychange","updateTimeout"]],{"toastTitle":["handleContentChange"],"message":["handleContentChange"],"actionText":["handleContentChange"],"duration":["handleContentChange"],"announcement":["updateAnnouncement"],"paused":["updateTimeout"]}]]],["sula-toast-stack",[[1,"sula-toast-stack",{"items":[16],"hovering":[32],"focused":[32],"noHover":[32],"retainingPointerExpansion":[32],"announcements":[32]},null,{"items":["handleItemsChange"]}]]]], options);
|
|
20
20
|
});
|
|
21
21
|
//# sourceMappingURL=webcomponents.js.map
|
|
22
22
|
|
|
@@ -45,6 +45,26 @@ export declare class SulaModal {
|
|
|
45
45
|
* Slot overflow behavior
|
|
46
46
|
*/
|
|
47
47
|
slotOverflow: SulaModalSlotOverflow;
|
|
48
|
+
/**
|
|
49
|
+
* Modal width on desktop (any CSS value, e.g. `900px`). Empty keeps the type default
|
|
50
|
+
*/
|
|
51
|
+
modalWidth: string;
|
|
52
|
+
/**
|
|
53
|
+
* Max height of the slot area (any CSS value, e.g. `60vh`). Empty keeps the type default
|
|
54
|
+
*/
|
|
55
|
+
slotMaxHeight: string;
|
|
56
|
+
/**
|
|
57
|
+
* Let the modal grow with its content (no slot scroll); the overlay scrolls instead when it exceeds the viewport
|
|
58
|
+
*/
|
|
59
|
+
slotAutoHeight: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Disable the primary button
|
|
62
|
+
*/
|
|
63
|
+
primaryButtonDisabled: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Disable the secondary button
|
|
66
|
+
*/
|
|
67
|
+
secondaryButtonDisabled: boolean;
|
|
48
68
|
/**
|
|
49
69
|
* Event emitted when the modal is closed
|
|
50
70
|
*/
|
|
@@ -76,6 +96,7 @@ export declare class SulaModal {
|
|
|
76
96
|
hasHeaderIcon(): boolean;
|
|
77
97
|
hasSlotContent(): boolean;
|
|
78
98
|
hasButtons(): boolean;
|
|
99
|
+
getWidthStyle(): Record<string, string> | undefined;
|
|
79
100
|
getOverlayClasses(): Record<string, boolean>;
|
|
80
101
|
getWrapperClasses(): Record<string, boolean>;
|
|
81
102
|
getContentClasses(): Record<string, boolean>;
|
|
@@ -43,6 +43,26 @@ declare const _default: {
|
|
|
43
43
|
};
|
|
44
44
|
options: SulaModalSlotOverflow[];
|
|
45
45
|
};
|
|
46
|
+
modalWidth: {
|
|
47
|
+
control: string;
|
|
48
|
+
description: string;
|
|
49
|
+
};
|
|
50
|
+
slotAutoHeight: {
|
|
51
|
+
control: string;
|
|
52
|
+
description: string;
|
|
53
|
+
};
|
|
54
|
+
slotMaxHeight: {
|
|
55
|
+
control: string;
|
|
56
|
+
description: string;
|
|
57
|
+
};
|
|
58
|
+
primaryButtonDisabled: {
|
|
59
|
+
control: string;
|
|
60
|
+
description: string;
|
|
61
|
+
};
|
|
62
|
+
secondaryButtonDisabled: {
|
|
63
|
+
control: string;
|
|
64
|
+
description: string;
|
|
65
|
+
};
|
|
46
66
|
blockBodyScroll: {
|
|
47
67
|
control: string;
|
|
48
68
|
description: string;
|
|
@@ -81,3 +101,5 @@ export declare const ListType: any;
|
|
|
81
101
|
export declare const CustomFullType: any;
|
|
82
102
|
export declare const SpecialSideType: any;
|
|
83
103
|
export declare const WithCustomSlot: any;
|
|
104
|
+
export declare const WithCustomSlotMaxHeight: any;
|
|
105
|
+
export declare const WithSlotAutoHeight: any;
|
|
@@ -503,11 +503,21 @@ export namespace Components {
|
|
|
503
503
|
* @default ''
|
|
504
504
|
*/
|
|
505
505
|
"modalTitle": string;
|
|
506
|
+
/**
|
|
507
|
+
* Modal width on desktop (any CSS value, e.g. `900px`). Empty keeps the type default
|
|
508
|
+
* @default ''
|
|
509
|
+
*/
|
|
510
|
+
"modalWidth": string;
|
|
506
511
|
/**
|
|
507
512
|
* Is modal opened
|
|
508
513
|
* @default false
|
|
509
514
|
*/
|
|
510
515
|
"opened": boolean;
|
|
516
|
+
/**
|
|
517
|
+
* Disable the primary button
|
|
518
|
+
* @default false
|
|
519
|
+
*/
|
|
520
|
+
"primaryButtonDisabled": boolean;
|
|
511
521
|
/**
|
|
512
522
|
* Primary button text
|
|
513
523
|
* @default ''
|
|
@@ -518,11 +528,26 @@ export namespace Components {
|
|
|
518
528
|
* @default ''
|
|
519
529
|
*/
|
|
520
530
|
"promoImage": string;
|
|
531
|
+
/**
|
|
532
|
+
* Disable the secondary button
|
|
533
|
+
* @default false
|
|
534
|
+
*/
|
|
535
|
+
"secondaryButtonDisabled": boolean;
|
|
521
536
|
/**
|
|
522
537
|
* Secondary button text
|
|
523
538
|
* @default ''
|
|
524
539
|
*/
|
|
525
540
|
"secondaryButtonText": string;
|
|
541
|
+
/**
|
|
542
|
+
* Let the modal grow with its content (no slot scroll); the overlay scrolls instead when it exceeds the viewport
|
|
543
|
+
* @default false
|
|
544
|
+
*/
|
|
545
|
+
"slotAutoHeight": boolean;
|
|
546
|
+
/**
|
|
547
|
+
* Max height of the slot area (any CSS value, e.g. `60vh`). Empty keeps the type default
|
|
548
|
+
* @default ''
|
|
549
|
+
*/
|
|
550
|
+
"slotMaxHeight": string;
|
|
526
551
|
/**
|
|
527
552
|
* Slot overflow behavior
|
|
528
553
|
* @default SulaModalSlotOverflow.Auto
|
|
@@ -2259,6 +2284,11 @@ declare namespace LocalJSX {
|
|
|
2259
2284
|
* @default ''
|
|
2260
2285
|
*/
|
|
2261
2286
|
"modalTitle"?: string;
|
|
2287
|
+
/**
|
|
2288
|
+
* Modal width on desktop (any CSS value, e.g. `900px`). Empty keeps the type default
|
|
2289
|
+
* @default ''
|
|
2290
|
+
*/
|
|
2291
|
+
"modalWidth"?: string;
|
|
2262
2292
|
/**
|
|
2263
2293
|
* Event emitted when the modal is closed
|
|
2264
2294
|
*/
|
|
@@ -2276,6 +2306,11 @@ declare namespace LocalJSX {
|
|
|
2276
2306
|
* @default false
|
|
2277
2307
|
*/
|
|
2278
2308
|
"opened"?: boolean;
|
|
2309
|
+
/**
|
|
2310
|
+
* Disable the primary button
|
|
2311
|
+
* @default false
|
|
2312
|
+
*/
|
|
2313
|
+
"primaryButtonDisabled"?: boolean;
|
|
2279
2314
|
/**
|
|
2280
2315
|
* Primary button text
|
|
2281
2316
|
* @default ''
|
|
@@ -2286,11 +2321,26 @@ declare namespace LocalJSX {
|
|
|
2286
2321
|
* @default ''
|
|
2287
2322
|
*/
|
|
2288
2323
|
"promoImage"?: string;
|
|
2324
|
+
/**
|
|
2325
|
+
* Disable the secondary button
|
|
2326
|
+
* @default false
|
|
2327
|
+
*/
|
|
2328
|
+
"secondaryButtonDisabled"?: boolean;
|
|
2289
2329
|
/**
|
|
2290
2330
|
* Secondary button text
|
|
2291
2331
|
* @default ''
|
|
2292
2332
|
*/
|
|
2293
2333
|
"secondaryButtonText"?: string;
|
|
2334
|
+
/**
|
|
2335
|
+
* Let the modal grow with its content (no slot scroll); the overlay scrolls instead when it exceeds the viewport
|
|
2336
|
+
* @default false
|
|
2337
|
+
*/
|
|
2338
|
+
"slotAutoHeight"?: boolean;
|
|
2339
|
+
/**
|
|
2340
|
+
* Max height of the slot area (any CSS value, e.g. `60vh`). Empty keeps the type default
|
|
2341
|
+
* @default ''
|
|
2342
|
+
*/
|
|
2343
|
+
"slotMaxHeight"?: string;
|
|
2294
2344
|
/**
|
|
2295
2345
|
* Slot overflow behavior
|
|
2296
2346
|
* @default SulaModalSlotOverflow.Auto
|