@justeattakeaway/pie-radio-group 1.0.21 → 1.0.23

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": "{ status: 'default', disabled: false, isInline: false, value: '', }"
39
39
  }
40
40
  ],
41
41
  "exports": [
@@ -117,22 +117,28 @@
117
117
  "type": {
118
118
  "text": "RadioGroupProps['name']"
119
119
  },
120
- "privacy": "public"
120
+ "privacy": "public",
121
+ "attribute": "name",
122
+ "reflects": true
121
123
  },
122
124
  {
123
125
  "kind": "field",
124
126
  "name": "value",
125
- "privacy": "public"
127
+ "privacy": "public",
128
+ "attribute": "value"
126
129
  },
127
130
  {
128
131
  "kind": "field",
129
132
  "name": "isInline",
130
- "privacy": "public"
133
+ "privacy": "public",
134
+ "attribute": "isInline"
131
135
  },
132
136
  {
133
137
  "kind": "field",
134
138
  "name": "disabled",
135
- "privacy": "public"
139
+ "privacy": "public",
140
+ "attribute": "disabled",
141
+ "reflects": true
136
142
  },
137
143
  {
138
144
  "kind": "field",
@@ -140,12 +146,14 @@
140
146
  "type": {
141
147
  "text": "RadioGroupProps['assistiveText'] | undefined"
142
148
  },
143
- "privacy": "public"
149
+ "privacy": "public",
150
+ "attribute": "assistiveText"
144
151
  },
145
152
  {
146
153
  "kind": "field",
147
154
  "name": "status",
148
- "privacy": "public"
155
+ "privacy": "public",
156
+ "attribute": "status"
149
157
  },
150
158
  {
151
159
  "kind": "field",
@@ -171,7 +179,7 @@
171
179
  "text": "void"
172
180
  }
173
181
  },
174
- "description": "Dispatches a custom event to notify each slotted child radio element\r\nwhen the radio group is disabled."
182
+ "description": "Dispatches a custom event to notify each slotted child radio element\nwhen the radio group is disabled."
175
183
  },
176
184
  {
177
185
  "kind": "method",
@@ -305,7 +313,7 @@
305
313
  }
306
314
  }
307
315
  ],
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."
316
+ "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
317
  },
310
318
  {
311
319
  "kind": "method",
@@ -343,7 +351,7 @@
343
351
  }
344
352
  }
345
353
  ],
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."
354
+ "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
355
  },
348
356
  {
349
357
  "kind": "method",
@@ -386,7 +394,7 @@
386
394
  }
387
395
  }
388
396
  ],
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."
397
+ "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
398
  },
391
399
  {
392
400
  "kind": "method",
@@ -405,7 +413,7 @@
405
413
  }
406
414
  }
407
415
  ],
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."
416
+ "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
417
  },
410
418
  {
411
419
  "kind": "method",
@@ -424,7 +432,7 @@
424
432
  }
425
433
  }
426
434
  ],
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."
435
+ "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
436
  }
429
437
  ],
430
438
  "events": [
@@ -436,6 +444,38 @@
436
444
  "name": "change"
437
445
  }
438
446
  ],
447
+ "attributes": [
448
+ {
449
+ "name": "name",
450
+ "type": {
451
+ "text": "RadioGroupProps['name']"
452
+ },
453
+ "fieldName": "name"
454
+ },
455
+ {
456
+ "name": "value",
457
+ "fieldName": "value"
458
+ },
459
+ {
460
+ "name": "isInline",
461
+ "fieldName": "isInline"
462
+ },
463
+ {
464
+ "name": "disabled",
465
+ "fieldName": "disabled"
466
+ },
467
+ {
468
+ "name": "assistiveText",
469
+ "type": {
470
+ "text": "RadioGroupProps['assistiveText'] | undefined"
471
+ },
472
+ "fieldName": "assistiveText"
473
+ },
474
+ {
475
+ "name": "status",
476
+ "fieldName": "status"
477
+ }
478
+ ],
439
479
  "mixins": [
440
480
  {
441
481
  "name": "FormControlMixin",
@@ -460,7 +500,7 @@
460
500
  "name": "*",
461
501
  "declaration": {
462
502
  "name": "*",
463
- "package": "./defs"
503
+ "module": "src/defs"
464
504
  }
465
505
  },
466
506
  {
package/dist/index.d.ts CHANGED
File without changes
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.23";
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/dist/react.d.ts CHANGED
File without changes
package/dist/react.js CHANGED
File without changes
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.23",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/justeattakeaway/pie",
@@ -43,13 +43,13 @@
43
43
  "author": "Just Eat Takeaway.com - Design System Team",
44
44
  "license": "Apache-2.0",
45
45
  "devDependencies": {
46
- "@justeattakeaway/pie-components-config": "0.21.1",
46
+ "@justeattakeaway/pie-components-config": "0.21.2",
47
47
  "@justeattakeaway/pie-css": "1.1.1",
48
- "@justeattakeaway/pie-monorepo-utils": "0.9.0",
49
- "@justeattakeaway/pie-radio": "1.1.12"
48
+ "@justeattakeaway/pie-monorepo-utils": "0.9.1",
49
+ "@justeattakeaway/pie-radio": "1.1.13"
50
50
  },
51
51
  "dependencies": {
52
- "@justeattakeaway/pie-assistive-text": "0.11.28",
52
+ "@justeattakeaway/pie-assistive-text": "0.11.30",
53
53
  "@justeattakeaway/pie-webc-core": "14.0.1"
54
54
  },
55
55
  "volta": {