@cloudparker/moldex.js 0.0.85 → 0.0.86

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.
@@ -30,9 +30,14 @@ let {
30
30
  hasFooterOkButton = false,
31
31
  hasFooterShadow = false,
32
32
  hasHeader = false,
33
+ hasHeaderOkButton = false,
33
34
  hasHeaderShadow = false,
34
35
  hasSubtitle = false,
35
36
  hasTitle = false,
37
+ headerOkButtonClassName = "",
38
+ headerOkButtonLabel = "",
39
+ headerOkButtonIconPath = "",
40
+ headerOkButtonIconClassName = "",
36
41
  headerBackButtonClassName = "",
37
42
  headerBackIconClassName = "",
38
43
  headerBackIconPath = mdiArrowLeft,
@@ -223,6 +228,17 @@ function handleOkClick(event) {
223
228
  {@render headerSnippet()}
224
229
  {/if}
225
230
  </div>
231
+ <div>
232
+ {#if hasHeaderOkButton}
233
+ <Button
234
+ appearance="border"
235
+ className=" {headerOkButtonClassName}"
236
+ iconPath={headerOkButtonIconPath}
237
+ iconClassName=" text-primary {headerOkButtonIconClassName}"
238
+ onClick={handleClose}
239
+ />
240
+ {/if}
241
+ </div>
226
242
  <div>
227
243
  {#if hasHeaderClose}
228
244
  <ButtonClose
@@ -33,6 +33,7 @@ export type DialogProps = {
33
33
  hasHeaderShadow?: boolean;
34
34
  hasSubtitle?: boolean;
35
35
  hasTitle?: boolean;
36
+ hasHeaderOkButton?: boolean;
36
37
  headerBackButtonClassName?: string;
37
38
  headerBackIconClassName?: string;
38
39
  headerBackIconPath?: string;
@@ -40,6 +41,10 @@ export type DialogProps = {
40
41
  headerCloseButtonClassName?: string;
41
42
  headerCloseIconClassName?: string;
42
43
  headerCloseIconPath?: string;
44
+ headerOkButtonClassName?: string;
45
+ headerOkButtonLabel?: string;
46
+ headerOkButtonIconPath?: string;
47
+ headerOkButtonIconClassName?: string;
43
48
  id?: string;
44
49
  onClose?: () => void;
45
50
  onCloseClick?: DialogCloseButtonClickFunction;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudparker/moldex.js",
3
- "version": "0.0.85",
3
+ "version": "0.0.86",
4
4
  "author": "cloudparker.com",
5
5
  "license": "MIT",
6
6
  "keywords": [