@justeattakeaway/pie-radio-group 1.0.21 → 1.0.22

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.
@@ -35,7 +35,7 @@
35
35
  "type": {
36
36
  "text": "DefaultProps"
37
37
  },
38
- "default": "{\r\n status: 'default',\r\n disabled: false,\r\n isInline: false,\r\n value: '',\r\n}"
38
+ "default": "{\n status: 'default',\n disabled: false,\n isInline: false,\n value: '',\n}"
39
39
  }
40
40
  ],
41
41
  "exports": [
@@ -171,7 +171,7 @@
171
171
  "text": "void"
172
172
  }
173
173
  },
174
- "description": "Dispatches a custom event to notify each slotted child radio element\r\nwhen the radio group is disabled."
174
+ "description": "Dispatches a custom event to notify each slotted child radio element\nwhen the radio group is disabled."
175
175
  },
176
176
  {
177
177
  "kind": "method",
@@ -305,7 +305,7 @@
305
305
  }
306
306
  }
307
307
  ],
308
- "description": "This method determines the appropriate element to focus when the radio group\r\ngains focus. It considers where the focus is coming from, and focuses the\r\nthe first or the last option as needed."
308
+ "description": "This method determines the appropriate element to focus when the radio group\ngains focus. It considers where the focus is coming from, and focuses the\nthe first or the last option as needed."
309
309
  },
310
310
  {
311
311
  "kind": "method",
@@ -343,7 +343,7 @@
343
343
  }
344
344
  }
345
345
  ],
346
- "description": "Handles the `focusout` event to set `tabindex` where it will be needed\r\n\r\nWhen no value is set and focus leaves the radio group, this method enables the\r\n`tabindex` attribute on the `fieldset` element. This ensures the radio group\r\nremains accessible for keyboard navigation and can be re-focused when tabbing\r\nback into the group.\r\n\r\nWhen a value is set and focus leaves the radio group, it will add it back\r\nto the correspondent radio, so ir can be re-focused when tabbing back into\r\nthe group."
346
+ "description": "Handles the `focusout` event to set `tabindex` where it will be needed\n\nWhen no value is set and focus leaves the radio group, this method enables the\n`tabindex` attribute on the `fieldset` element. This ensures the radio group\nremains accessible for keyboard navigation and can be re-focused when tabbing\nback into the group.\n\nWhen a value is set and focus leaves the radio group, it will add it back\nto the correspondent radio, so ir can be re-focused when tabbing back into\nthe group."
347
347
  },
348
348
  {
349
349
  "kind": "method",
@@ -386,7 +386,7 @@
386
386
  }
387
387
  }
388
388
  ],
389
- "description": "Determines if a key press indicates forward navigation within the radio group.\r\n\r\nThis method evaluates a keyboard event to check if the pressed key corresponds\r\nto forward navigation based on the current text direction (LTR or RTL).\r\n\r\n**Behaviour:**\r\n- For LTR (Left-to-Right) layouts:\r\n - `ArrowRight` and `ArrowDown` indicate forward navigation.\r\n- For RTL (Right-to-Left) layouts:\r\n - `ArrowLeft` and `ArrowDown` indicate forward navigation."
389
+ "description": "Determines if a key press indicates forward navigation within the radio group.\n\nThis method evaluates a keyboard event to check if the pressed key corresponds\nto forward navigation based on the current text direction (LTR or RTL).\n\n**Behaviour:**\n- For LTR (Left-to-Right) layouts:\n - `ArrowRight` and `ArrowDown` indicate forward navigation.\n- For RTL (Right-to-Left) layouts:\n - `ArrowLeft` and `ArrowDown` indicate forward navigation."
390
390
  },
391
391
  {
392
392
  "kind": "method",
@@ -405,7 +405,7 @@
405
405
  }
406
406
  }
407
407
  ],
408
- "description": "Determines if a key press indicates backward navigation within the radio group.\r\n\r\nThis method evaluates a keyboard event to check if the pressed key corresponds\r\nto backward navigation based on the current text direction (LTR or RTL).\r\n\r\n**Behaviour:**\r\n- For LTR (Left-to-Right) layouts:\r\n - `ArrowLeft` and `ArrowUp` indicate backward navigation.\r\n- For RTL (Right-to-Left) layouts:\r\n - `ArrowRight` and `ArrowUp` indicate backward navigation."
408
+ "description": "Determines if a key press indicates backward navigation within the radio group.\n\nThis method evaluates a keyboard event to check if the pressed key corresponds\nto backward navigation based on the current text direction (LTR or RTL).\n\n**Behaviour:**\n- For LTR (Left-to-Right) layouts:\n - `ArrowLeft` and `ArrowUp` indicate backward navigation.\n- For RTL (Right-to-Left) layouts:\n - `ArrowRight` and `ArrowUp` indicate backward navigation."
409
409
  },
410
410
  {
411
411
  "kind": "method",
@@ -424,7 +424,7 @@
424
424
  }
425
425
  }
426
426
  ],
427
- "description": "Handles keyboard navigation within the radio group using arrow keys.\r\n\r\nThis method responds to `keydown` events and determines the appropriate navigation\r\naction (forward or backward) based on the pressed key and the current focus. It prevents\r\nthe default browser behaviour (e.g., scrolling) when arrow keys are used for navigation."
427
+ "description": "Handles keyboard navigation within the radio group using arrow keys.\n\nThis method responds to `keydown` events and determines the appropriate navigation\naction (forward or backward) based on the pressed key and the current focus. It prevents\nthe default browser behaviour (e.g., scrolling) when arrow keys are used for navigation."
428
428
  }
429
429
  ],
430
430
  "events": [
package/dist/index.js CHANGED
@@ -9,7 +9,7 @@ const p = class p extends v {
9
9
  this.getAttribute("v") || this.setAttribute("v", p.v);
10
10
  }
11
11
  };
12
- p.v = "1.0.21";
12
+ p.v = "1.0.22";
13
13
  let _ = p;
14
14
  const A = "*,*:after,*:before{box-sizing:inherit}:host{display:block}.c-radioGroup{--radio-group-gap: var(--dt-spacing-c);--radio-group-gap--inline: var(--dt-spacing-c) var(--dt-spacing-e);margin:0;padding:0;border:0;min-width:0;display:flex;flex-flow:column wrap;gap:var(--radio-group-gap)}.c-radioGroup>legend{margin-block-end:var(--dt-spacing-b)}.c-radioGroup.c-radioGroup--inline{flex-flow:row wrap;gap:var(--radio-group-gap--inline)}.c-radioGroup.c-radioGroup--hasAssistiveText{margin-block-end:var(--dt-spacing-a)}", L = ["default", "success", "error"], N = "pie-radio-group-disabled", c = {
15
15
  status: "default",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@justeattakeaway/pie-radio-group",
3
3
  "description": "PIE Design System Radio Group built using Web Components",
4
- "version": "1.0.21",
4
+ "version": "1.0.22",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/justeattakeaway/pie",
@@ -45,11 +45,11 @@
45
45
  "devDependencies": {
46
46
  "@justeattakeaway/pie-components-config": "0.21.1",
47
47
  "@justeattakeaway/pie-css": "1.1.1",
48
- "@justeattakeaway/pie-monorepo-utils": "0.9.0",
48
+ "@justeattakeaway/pie-monorepo-utils": "0.9.1",
49
49
  "@justeattakeaway/pie-radio": "1.1.12"
50
50
  },
51
51
  "dependencies": {
52
- "@justeattakeaway/pie-assistive-text": "0.11.28",
52
+ "@justeattakeaway/pie-assistive-text": "0.11.29",
53
53
  "@justeattakeaway/pie-webc-core": "14.0.1"
54
54
  },
55
55
  "volta": {