@justeattakeaway/pie-modal 1.17.4 → 1.17.5

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.
@@ -87,7 +87,7 @@
87
87
  "type": {
88
88
  "text": "DefaultProps"
89
89
  },
90
- "default": "{\r\n hasBackButton: false,\r\n hasStackedActions: false,\r\n headingLevel: 'h2',\r\n isOpen: false,\r\n isDismissible: false,\r\n isFooterPinned: true,\r\n isFullWidthBelowMid: false,\r\n isLoading: false,\r\n position: 'center',\r\n size: 'medium',\r\n}"
90
+ "default": "{\n hasBackButton: false,\n hasStackedActions: false,\n headingLevel: 'h2',\n isOpen: false,\n isDismissible: false,\n isFooterPinned: true,\n isFullWidthBelowMid: false,\n isLoading: false,\n position: 'center',\n size: 'medium',\n}"
91
91
  }
92
92
  ],
93
93
  "exports": [
@@ -402,7 +402,7 @@
402
402
  "kind": "field",
403
403
  "name": "_preventModalKeyboardDismissal",
404
404
  "privacy": "private",
405
- "description": "Prevents the user from dismissing the dialog via the `cancel`\r\nevent (ESC key) when `isDismissible` is set to false.",
405
+ "description": "Prevents the user from dismissing the dialog via the `cancel`\nevent (ESC key) when `isDismissible` is set to false.",
406
406
  "parameters": [
407
407
  {
408
408
  "description": "The event object.",
@@ -476,7 +476,7 @@
476
476
  "text": "void"
477
477
  }
478
478
  },
479
- "description": "Return focus to the specified element, providing the selector is valid\r\nand the chosen element can be found."
479
+ "description": "Return focus to the specified element, providing the selector is valid\nand the chosen element can be found."
480
480
  },
481
481
  {
482
482
  "kind": "method",
@@ -509,7 +509,7 @@
509
509
  "text": "TemplateResult | typeof nothing"
510
510
  }
511
511
  },
512
- "description": "Template for the close button element. Called within the\r\nmain render function."
512
+ "description": "Template for the close button element. Called within the\nmain render function."
513
513
  },
514
514
  {
515
515
  "kind": "method",
@@ -520,7 +520,7 @@
520
520
  "text": "TemplateResult | typeof nothing"
521
521
  }
522
522
  },
523
- "description": "Template for the back button element. Called within the\r\nmain render function."
523
+ "description": "Template for the back button element. Called within the\nmain render function."
524
524
  },
525
525
  {
526
526
  "kind": "method",
@@ -531,7 +531,7 @@
531
531
  "text": "TemplateResult | typeof nothing"
532
532
  }
533
533
  },
534
- "description": "Renders the \"leadingAction\" button if the text is provided.\r\n\r\nIf `leadingAction.text` is not provided, the button is not rendered.\r\nIf `leadingAction.variant` is not provided, the default value of \"primary\" is used.\r\nThe (optional) aria-label is read from `leadingAction.ariaLabel`."
534
+ "description": "Renders the \"leadingAction\" button if the text is provided.\n\nIf `leadingAction.text` is not provided, the button is not rendered.\nIf `leadingAction.variant` is not provided, the default value of \"primary\" is used.\nThe (optional) aria-label is read from `leadingAction.ariaLabel`."
535
535
  },
536
536
  {
537
537
  "kind": "method",
@@ -542,7 +542,7 @@
542
542
  "text": "TemplateResult | typeof nothing"
543
543
  }
544
544
  },
545
- "description": "Renders the \"supportingAction\" button if the text is provided.\r\nYou cannot have a supporting action without a leading action.\r\n\r\nIf either `supportingAction.text` or `leadingAction.text` are not provided, the button is not rendered.\r\nIf `supportingAction.variant` is not provided, the default value of \"ghost\" is used.\r\nThe (optional) aria-label is read from `supportingAction.ariaLabel`."
545
+ "description": "Renders the \"supportingAction\" button if the text is provided.\nYou cannot have a supporting action without a leading action.\n\nIf either `supportingAction.text` or `leadingAction.text` are not provided, the button is not rendered.\nIf `supportingAction.variant` is not provided, the default value of \"ghost\" is used.\nThe (optional) aria-label is read from `supportingAction.ariaLabel`."
546
546
  },
547
547
  {
548
548
  "kind": "method",
@@ -553,7 +553,7 @@
553
553
  "text": "TemplateResult | typeof nothing"
554
554
  }
555
555
  },
556
- "description": "Renders the modal footer if a leading action is provided.\r\nAdditionally renders the supporting action if it is provided."
556
+ "description": "Renders the modal footer if a leading action is provided.\nAdditionally renders the supporting action if it is provided."
557
557
  },
558
558
  {
559
559
  "kind": "method",
package/dist/index.d.ts CHANGED
@@ -44,11 +44,11 @@ export declare type ModalProps = {
44
44
  */
45
45
  aria?: AriaProps;
46
46
  /**
47
- * When true, the modal will have a back button. This currently behaves the same as the close button.
47
+ * When true, the modal will have a back button.
48
48
  */
49
49
  hasBackButton?: boolean;
50
50
  /**
51
- * When true, the modal will have a back button. This currently behaves the same as the close button.
51
+ * When true, the actions will expand to full width and stack vertically. Only available below the mid breakpoint.
52
52
  */
53
53
  hasStackedActions?: boolean;
54
54
  /**
package/dist/index.js CHANGED
@@ -14,7 +14,7 @@ const k = class k extends F {
14
14
  this.getAttribute("v") || this.setAttribute("v", k.v);
15
15
  }
16
16
  };
17
- k.v = "1.17.4";
17
+ k.v = "1.17.5";
18
18
  let x = k;
19
19
  function W(t) {
20
20
  if (Array.isArray(t)) {
package/dist/react.d.ts CHANGED
@@ -41,11 +41,11 @@ export declare type ModalProps = {
41
41
  */
42
42
  aria?: AriaProps;
43
43
  /**
44
- * When true, the modal will have a back button. This currently behaves the same as the close button.
44
+ * When true, the modal will have a back button.
45
45
  */
46
46
  hasBackButton?: boolean;
47
47
  /**
48
- * When true, the modal will have a back button. This currently behaves the same as the close button.
48
+ * When true, the actions will expand to full width and stack vertically. Only available below the mid breakpoint.
49
49
  */
50
50
  hasStackedActions?: boolean;
51
51
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@justeattakeaway/pie-modal",
3
- "version": "1.17.4",
3
+ "version": "1.17.5",
4
4
  "description": "PIE design system modal built using web components",
5
5
  "repository": {
6
6
  "type": "git",
@@ -45,11 +45,11 @@
45
45
  "devDependencies": {
46
46
  "@custom-elements-manifest/analyzer": "0.9.0",
47
47
  "@justeat/pie-design-tokens": "7.8.2",
48
- "@justeattakeaway/pie-button": "1.9.1",
48
+ "@justeattakeaway/pie-button": "1.9.2",
49
49
  "@justeattakeaway/pie-components-config": "0.21.0",
50
50
  "@justeattakeaway/pie-css": "0.23.2",
51
51
  "@justeattakeaway/pie-monorepo-utils": "0.7.0",
52
- "@justeattakeaway/pie-text-input": "0.29.4",
52
+ "@justeattakeaway/pie-text-input": "0.29.5",
53
53
  "@justeattakeaway/pie-wrapper-react": "0.14.3",
54
54
  "@types/body-scroll-lock": "3.1.2",
55
55
  "cem-plugin-module-file-extensions": "0.0.5"
@@ -58,8 +58,8 @@
58
58
  "extends": "../../../package.json"
59
59
  },
60
60
  "dependencies": {
61
- "@justeattakeaway/pie-button": "1.9.1",
62
- "@justeattakeaway/pie-icon-button": "2.2.4",
61
+ "@justeattakeaway/pie-button": "1.9.2",
62
+ "@justeattakeaway/pie-icon-button": "2.3.0",
63
63
  "@justeattakeaway/pie-icons-webc": "1.16.1",
64
64
  "@justeattakeaway/pie-spinner": "1.3.3",
65
65
  "@justeattakeaway/pie-webc-core": "3.0.2",
package/src/defs.ts CHANGED
@@ -36,12 +36,12 @@ export type ModalProps = {
36
36
  aria?: AriaProps;
37
37
 
38
38
  /**
39
- * When true, the modal will have a back button. This currently behaves the same as the close button.
39
+ * When true, the modal will have a back button.
40
40
  */
41
41
  hasBackButton?: boolean;
42
42
 
43
43
  /**
44
- * When true, the modal will have a back button. This currently behaves the same as the close button.
44
+ * When true, the actions will expand to full width and stack vertically. Only available below the mid breakpoint.
45
45
  */
46
46
  hasStackedActions?: boolean;
47
47