@justeattakeaway/pie-radio-group 0.9.0 → 0.9.2
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/custom-elements.json +8 -8
- package/dist/index.js +1 -1
- package/package.json +4 -4
package/custom-elements.json
CHANGED
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"type": {
|
|
36
36
|
"text": "DefaultProps"
|
|
37
37
|
},
|
|
38
|
-
"default": "{\n status: 'default',\n disabled: false,\n isInline: false,\n value: '',\n}"
|
|
38
|
+
"default": "{\r\n status: 'default',\r\n disabled: false,\r\n isInline: false,\r\n value: '',\r\n}"
|
|
39
39
|
}
|
|
40
40
|
],
|
|
41
41
|
"exports": [
|
|
@@ -169,7 +169,7 @@
|
|
|
169
169
|
"privacy": "private",
|
|
170
170
|
"static": true,
|
|
171
171
|
"default": "false",
|
|
172
|
-
"description": "Tracks whether the `Shift` key was held during the last `Tab` key press.\n\nThe property is static because it needs to be shared across all instances of the\n`PieRadioGroup` component on the same page, ensuring consistent behavior."
|
|
172
|
+
"description": "Tracks whether the `Shift` key was held during the last `Tab` key press.\r\n\r\nThe property is static because it needs to be shared across all instances of the\r\n`PieRadioGroup` component on the same page, ensuring consistent behavior."
|
|
173
173
|
},
|
|
174
174
|
{
|
|
175
175
|
"kind": "method",
|
|
@@ -180,7 +180,7 @@
|
|
|
180
180
|
"text": "void"
|
|
181
181
|
}
|
|
182
182
|
},
|
|
183
|
-
"description": "Dispatches a custom event to notify each slotted child radio element\nwhen the radio group is disabled."
|
|
183
|
+
"description": "Dispatches a custom event to notify each slotted child radio element\r\nwhen the radio group is disabled."
|
|
184
184
|
},
|
|
185
185
|
{
|
|
186
186
|
"kind": "method",
|
|
@@ -321,7 +321,7 @@
|
|
|
321
321
|
}
|
|
322
322
|
}
|
|
323
323
|
],
|
|
324
|
-
"description": "Handles the `focusin` event to manage focus within the radio group.\n\nThis method determines the appropriate element to focus when the radio group\ngains focus. It considers the last navigation action (whether `Shift+Tab` was used)\nand focuses the checked option, the first option, or the last option as needed."
|
|
324
|
+
"description": "Handles the `focusin` event to manage focus within the radio group.\r\n\r\nThis method determines the appropriate element to focus when the radio group\r\ngains focus. It considers the last navigation action (whether `Shift+Tab` was used)\r\nand focuses the checked option, the first option, or the last option as needed."
|
|
325
325
|
},
|
|
326
326
|
{
|
|
327
327
|
"kind": "method",
|
|
@@ -332,7 +332,7 @@
|
|
|
332
332
|
"text": "void"
|
|
333
333
|
}
|
|
334
334
|
},
|
|
335
|
-
"description": "Handles the `focusout` event to restore the `tabindex` on the radio group's `fieldset`.\n\nWhen focus leaves the radio group, this method enables the `tabindex` attribute\non the `fieldset` element. This ensures the radio group remains accessible for\nkeyboard navigation and can be re-focused when tabbing back into the group."
|
|
335
|
+
"description": "Handles the `focusout` event to restore the `tabindex` on the radio group's `fieldset`.\r\n\r\nWhen focus leaves the radio group, this method enables the `tabindex` attribute\r\non the `fieldset` element. This ensures the radio group remains accessible for\r\nkeyboard navigation and can be re-focused when tabbing back into the group."
|
|
336
336
|
},
|
|
337
337
|
{
|
|
338
338
|
"kind": "method",
|
|
@@ -393,7 +393,7 @@
|
|
|
393
393
|
}
|
|
394
394
|
}
|
|
395
395
|
],
|
|
396
|
-
"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."
|
|
396
|
+
"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."
|
|
397
397
|
},
|
|
398
398
|
{
|
|
399
399
|
"kind": "method",
|
|
@@ -412,7 +412,7 @@
|
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
414
|
],
|
|
415
|
-
"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."
|
|
415
|
+
"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."
|
|
416
416
|
},
|
|
417
417
|
{
|
|
418
418
|
"kind": "method",
|
|
@@ -431,7 +431,7 @@
|
|
|
431
431
|
}
|
|
432
432
|
}
|
|
433
433
|
],
|
|
434
|
-
"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."
|
|
434
|
+
"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."
|
|
435
435
|
},
|
|
436
436
|
{
|
|
437
437
|
"kind": "method",
|
package/dist/index.js
CHANGED
|
@@ -9,7 +9,7 @@ const p = class p extends b {
|
|
|
9
9
|
this.getAttribute("v") || this.setAttribute("v", p.v);
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
|
-
p.v = "0.9.
|
|
12
|
+
p.v = "0.9.2";
|
|
13
13
|
let u = p;
|
|
14
14
|
const R = "*,*:after,*:before{box-sizing:inherit}.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)}", E = ["default", "success", "error"], F = "pie-radio-group-disabled", h = {
|
|
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": "0.9.
|
|
4
|
+
"version": "0.9.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -36,12 +36,12 @@
|
|
|
36
36
|
"@justeattakeaway/pie-components-config": "0.20.1",
|
|
37
37
|
"@justeattakeaway/pie-css": "0.16.0",
|
|
38
38
|
"@justeattakeaway/pie-monorepo-utils": "0.5.1",
|
|
39
|
-
"@justeattakeaway/pie-radio": "0.11.
|
|
39
|
+
"@justeattakeaway/pie-radio": "0.11.1",
|
|
40
40
|
"cem-plugin-module-file-extensions": "0.0.5"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@justeattakeaway/pie-assistive-text": "0.10.
|
|
44
|
-
"@justeattakeaway/pie-webc-core": "0.
|
|
43
|
+
"@justeattakeaway/pie-assistive-text": "0.10.2",
|
|
44
|
+
"@justeattakeaway/pie-webc-core": "1.0.0"
|
|
45
45
|
},
|
|
46
46
|
"volta": {
|
|
47
47
|
"extends": "../../../package.json"
|