@primer/components 0.0.0-2021118142135 → 0.0.0-2021118144330

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.
Files changed (79) hide show
  1. package/dist/browser.esm.js +2 -2
  2. package/dist/browser.esm.js.map +1 -1
  3. package/dist/browser.umd.js +2 -2
  4. package/dist/browser.umd.js.map +1 -1
  5. package/lib/Autocomplete/AutocompleteMenu.js +13 -6
  6. package/lib/index.d.ts +0 -3
  7. package/lib/index.js +0 -24
  8. package/lib-esm/Autocomplete/AutocompleteMenu.js +13 -3
  9. package/lib-esm/index.d.ts +0 -3
  10. package/lib-esm/index.js +0 -3
  11. package/package.json +2 -2
  12. package/lib/CheckboxInputField.d.ts +0 -10
  13. package/lib/CheckboxInputField.js +0 -73
  14. package/lib/RadioInputField.d.ts +0 -9
  15. package/lib/RadioInputField.js +0 -74
  16. package/lib/TextInputField.d.ts +0 -583
  17. package/lib/TextInputField.js +0 -66
  18. package/lib/_InputCaption.d.ts +0 -13
  19. package/lib/_InputCaption.js +0 -26
  20. package/lib/_InputField/InputField.d.ts +0 -39
  21. package/lib/_InputField/InputField.js +0 -90
  22. package/lib/_InputField/InputFieldCaption.d.ts +0 -3
  23. package/lib/_InputField/InputFieldCaption.js +0 -30
  24. package/lib/_InputField/InputFieldLabel.d.ts +0 -9
  25. package/lib/_InputField/InputFieldLabel.js +0 -34
  26. package/lib/_InputField/InputFieldValidation.d.ts +0 -6
  27. package/lib/_InputField/InputFieldValidation.js +0 -17
  28. package/lib/_InputField/ToggleInputField.d.ts +0 -13
  29. package/lib/_InputField/ToggleInputField.js +0 -71
  30. package/lib/_InputField/ToggleInputLeadingVisual.d.ts +0 -3
  31. package/lib/_InputField/ToggleInputLeadingVisual.js +0 -22
  32. package/lib/_InputField/ValidationAnimationContainer.d.ts +0 -6
  33. package/lib/_InputField/ValidationAnimationContainer.js +0 -48
  34. package/lib/_InputField/index.d.ts +0 -1
  35. package/lib/_InputField/index.js +0 -15
  36. package/lib/_InputField/slots.d.ts +0 -13
  37. package/lib/_InputField/slots.js +0 -17
  38. package/lib/_InputLabel.d.ts +0 -8
  39. package/lib/_InputLabel.js +0 -44
  40. package/lib/_InputValidation.d.ts +0 -8
  41. package/lib/_InputValidation.js +0 -56
  42. package/lib/_VisuallyHidden.d.ts +0 -6
  43. package/lib/_VisuallyHidden.js +0 -39
  44. package/lib/utils/types/FormValidationStatus.d.ts +0 -1
  45. package/lib/utils/types/FormValidationStatus.js +0 -1
  46. package/lib-esm/CheckboxInputField.d.ts +0 -10
  47. package/lib-esm/CheckboxInputField.js +0 -56
  48. package/lib-esm/RadioInputField.d.ts +0 -9
  49. package/lib-esm/RadioInputField.js +0 -56
  50. package/lib-esm/TextInputField.d.ts +0 -583
  51. package/lib-esm/TextInputField.js +0 -50
  52. package/lib-esm/_InputCaption.d.ts +0 -13
  53. package/lib-esm/_InputCaption.js +0 -15
  54. package/lib-esm/_InputField/InputField.d.ts +0 -39
  55. package/lib-esm/_InputField/InputField.js +0 -70
  56. package/lib-esm/_InputField/InputFieldCaption.d.ts +0 -3
  57. package/lib-esm/_InputField/InputFieldCaption.js +0 -18
  58. package/lib-esm/_InputField/InputFieldLabel.d.ts +0 -9
  59. package/lib-esm/_InputField/InputFieldLabel.js +0 -22
  60. package/lib-esm/_InputField/InputFieldValidation.d.ts +0 -6
  61. package/lib-esm/_InputField/InputFieldValidation.js +0 -7
  62. package/lib-esm/_InputField/ToggleInputField.d.ts +0 -13
  63. package/lib-esm/_InputField/ToggleInputField.js +0 -54
  64. package/lib-esm/_InputField/ToggleInputLeadingVisual.d.ts +0 -3
  65. package/lib-esm/_InputField/ToggleInputLeadingVisual.js +0 -11
  66. package/lib-esm/_InputField/ValidationAnimationContainer.d.ts +0 -6
  67. package/lib-esm/_InputField/ValidationAnimationContainer.js +0 -33
  68. package/lib-esm/_InputField/index.d.ts +0 -1
  69. package/lib-esm/_InputField/index.js +0 -1
  70. package/lib-esm/_InputField/slots.d.ts +0 -13
  71. package/lib-esm/_InputField/slots.js +0 -5
  72. package/lib-esm/_InputLabel.d.ts +0 -8
  73. package/lib-esm/_InputLabel.js +0 -32
  74. package/lib-esm/_InputValidation.d.ts +0 -8
  75. package/lib-esm/_InputValidation.js +0 -43
  76. package/lib-esm/_VisuallyHidden.d.ts +0 -6
  77. package/lib-esm/_VisuallyHidden.js +0 -26
  78. package/lib-esm/utils/types/FormValidationStatus.d.ts +0 -1
  79. package/lib-esm/utils/types/FormValidationStatus.js +0 -1
@@ -21,10 +21,6 @@ var _uniqueId = require("../utils/uniqueId");
21
21
 
22
22
  var _scrollIntoViewingArea = require("../behaviors/scrollIntoViewingArea");
23
23
 
24
- var _VisuallyHidden = _interopRequireDefault(require("../_VisuallyHidden"));
25
-
26
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
27
-
28
24
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
29
25
 
30
26
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@@ -186,8 +182,19 @@ function AutocompleteMenu(props) {
186
182
  setSelectedItemLength(selectedItemIds.length);
187
183
  }
188
184
  }, [selectedItemIds, setSelectedItemLength]);
189
- return /*#__PURE__*/_react.default.createElement(_VisuallyHidden.default, {
190
- isVisible: showMenu
185
+ return /*#__PURE__*/_react.default.createElement(_.Box, {
186
+ sx: !showMenu ? {
187
+ // visually hides this label for sighted users
188
+ position: 'absolute',
189
+ width: '1px',
190
+ height: '1px',
191
+ padding: '0',
192
+ margin: '-1px',
193
+ overflow: 'hidden',
194
+ clip: 'rect(0, 0, 0, 0)',
195
+ whiteSpace: 'nowrap',
196
+ borderWidth: '0'
197
+ } : {}
191
198
  }, loading ? /*#__PURE__*/_react.default.createElement(_.Box, {
192
199
  p: 3,
193
200
  display: "flex",
package/lib/index.d.ts CHANGED
@@ -48,7 +48,6 @@ export { default as CircleBadge } from './CircleBadge';
48
48
  export type { CircleBadgeProps, CircleBadgeIconProps } from './CircleBadge';
49
49
  export { default as CircleOcticon } from './CircleOcticon';
50
50
  export type { CircleOcticonProps } from './CircleOcticon';
51
- export { default as CheckboxInputField } from './CheckboxInputField';
52
51
  export { default as CounterLabel } from './CounterLabel';
53
52
  export type { CounterLabelProps } from './CounterLabel';
54
53
  export { default as Details } from './Details';
@@ -89,7 +88,6 @@ export { default as Popover } from './Popover';
89
88
  export type { PopoverProps, PopoverContentProps } from './Popover';
90
89
  export { default as ProgressBar } from './ProgressBar';
91
90
  export type { ProgressBarProps } from './ProgressBar';
92
- export { default as RadioInputField } from './RadioInputField';
93
91
  export { default as SelectMenu } from './SelectMenu';
94
92
  export type { SelectMenuProps, SelectMenuDividerProps, SelectMenuFilterProps, SelectMenuFooterProps, SelectMenuItemProps, SelectMenuListProps, SelectMenuModalProps, SelectMenuTabsProps, SelectMenuHeaderProps, SelectMenuTabProps, SelectMenuTabPanelProps, SelectMenuLoadingAnimationProps } from './SelectMenu';
95
93
  export { default as SideNav } from './SideNav';
@@ -106,7 +104,6 @@ export { default as TabNav } from './TabNav';
106
104
  export type { TabNavProps, TabNavLinkProps } from './TabNav';
107
105
  export { default as TextInput } from './TextInput';
108
106
  export type { TextInputProps } from './TextInput';
109
- export { default as TextInputField } from './TextInputField';
110
107
  export { default as TextInputWithTokens } from './TextInputWithTokens';
111
108
  export type { TextInputWithTokensProps } from './TextInputWithTokens';
112
109
  export { default as Text } from './Text';
package/lib/index.js CHANGED
@@ -273,12 +273,6 @@ Object.defineProperty(exports, "CircleOcticon", {
273
273
  return _CircleOcticon.default;
274
274
  }
275
275
  });
276
- Object.defineProperty(exports, "CheckboxInputField", {
277
- enumerable: true,
278
- get: function () {
279
- return _CheckboxInputField.default;
280
- }
281
- });
282
276
  Object.defineProperty(exports, "CounterLabel", {
283
277
  enumerable: true,
284
278
  get: function () {
@@ -405,12 +399,6 @@ Object.defineProperty(exports, "ProgressBar", {
405
399
  return _ProgressBar.default;
406
400
  }
407
401
  });
408
- Object.defineProperty(exports, "RadioInputField", {
409
- enumerable: true,
410
- get: function () {
411
- return _RadioInputField.default;
412
- }
413
- });
414
402
  Object.defineProperty(exports, "SelectMenu", {
415
403
  enumerable: true,
416
404
  get: function () {
@@ -459,12 +447,6 @@ Object.defineProperty(exports, "TextInput", {
459
447
  return _TextInput.default;
460
448
  }
461
449
  });
462
- Object.defineProperty(exports, "TextInputField", {
463
- enumerable: true,
464
- get: function () {
465
- return _TextInputField.default;
466
- }
467
- });
468
450
  Object.defineProperty(exports, "TextInputWithTokens", {
469
451
  enumerable: true,
470
452
  get: function () {
@@ -598,8 +580,6 @@ var _CircleBadge = _interopRequireDefault(require("./CircleBadge"));
598
580
 
599
581
  var _CircleOcticon = _interopRequireDefault(require("./CircleOcticon"));
600
582
 
601
- var _CheckboxInputField = _interopRequireDefault(require("./CheckboxInputField"));
602
-
603
583
  var _CounterLabel = _interopRequireDefault(require("./CounterLabel"));
604
584
 
605
585
  var _Details = _interopRequireDefault(require("./Details"));
@@ -640,8 +620,6 @@ var _Popover = _interopRequireDefault(require("./Popover"));
640
620
 
641
621
  var _ProgressBar = _interopRequireDefault(require("./ProgressBar"));
642
622
 
643
- var _RadioInputField = _interopRequireDefault(require("./RadioInputField"));
644
-
645
623
  var _SelectMenu = _interopRequireDefault(require("./SelectMenu"));
646
624
 
647
625
  var _SideNav = _interopRequireDefault(require("./SideNav"));
@@ -658,8 +636,6 @@ var _TabNav = _interopRequireDefault(require("./TabNav"));
658
636
 
659
637
  var _TextInput = _interopRequireDefault(require("./TextInput"));
660
638
 
661
- var _TextInputField = _interopRequireDefault(require("./TextInputField"));
662
-
663
639
  var _TextInputWithTokens = _interopRequireDefault(require("./TextInputWithTokens"));
664
640
 
665
641
  var _Text = _interopRequireDefault(require("./Text"));
@@ -6,7 +6,6 @@ import { AutocompleteContext } from './AutocompleteContext';
6
6
  import { PlusIcon } from '@primer/octicons-react';
7
7
  import { uniqueId } from '../utils/uniqueId';
8
8
  import { scrollIntoViewingArea } from '../behaviors/scrollIntoViewingArea';
9
- import VisuallyHidden from '../_VisuallyHidden';
10
9
 
11
10
  const getDefaultSortFn = isItemSelectedFn => (itemIdA, itemIdB) => isItemSelectedFn(itemIdA) === isItemSelectedFn(itemIdB) ? 0 : isItemSelectedFn(itemIdA) ? -1 : 1;
12
11
 
@@ -165,8 +164,19 @@ function AutocompleteMenu(props) {
165
164
  setSelectedItemLength(selectedItemIds.length);
166
165
  }
167
166
  }, [selectedItemIds, setSelectedItemLength]);
168
- return /*#__PURE__*/React.createElement(VisuallyHidden, {
169
- isVisible: showMenu
167
+ return /*#__PURE__*/React.createElement(Box, {
168
+ sx: !showMenu ? {
169
+ // visually hides this label for sighted users
170
+ position: 'absolute',
171
+ width: '1px',
172
+ height: '1px',
173
+ padding: '0',
174
+ margin: '-1px',
175
+ overflow: 'hidden',
176
+ clip: 'rect(0, 0, 0, 0)',
177
+ whiteSpace: 'nowrap',
178
+ borderWidth: '0'
179
+ } : {}
170
180
  }, loading ? /*#__PURE__*/React.createElement(Box, {
171
181
  p: 3,
172
182
  display: "flex",
@@ -48,7 +48,6 @@ export { default as CircleBadge } from './CircleBadge';
48
48
  export type { CircleBadgeProps, CircleBadgeIconProps } from './CircleBadge';
49
49
  export { default as CircleOcticon } from './CircleOcticon';
50
50
  export type { CircleOcticonProps } from './CircleOcticon';
51
- export { default as CheckboxInputField } from './CheckboxInputField';
52
51
  export { default as CounterLabel } from './CounterLabel';
53
52
  export type { CounterLabelProps } from './CounterLabel';
54
53
  export { default as Details } from './Details';
@@ -89,7 +88,6 @@ export { default as Popover } from './Popover';
89
88
  export type { PopoverProps, PopoverContentProps } from './Popover';
90
89
  export { default as ProgressBar } from './ProgressBar';
91
90
  export type { ProgressBarProps } from './ProgressBar';
92
- export { default as RadioInputField } from './RadioInputField';
93
91
  export { default as SelectMenu } from './SelectMenu';
94
92
  export type { SelectMenuProps, SelectMenuDividerProps, SelectMenuFilterProps, SelectMenuFooterProps, SelectMenuItemProps, SelectMenuListProps, SelectMenuModalProps, SelectMenuTabsProps, SelectMenuHeaderProps, SelectMenuTabProps, SelectMenuTabPanelProps, SelectMenuLoadingAnimationProps } from './SelectMenu';
95
93
  export { default as SideNav } from './SideNav';
@@ -106,7 +104,6 @@ export { default as TabNav } from './TabNav';
106
104
  export type { TabNavProps, TabNavLinkProps } from './TabNav';
107
105
  export { default as TextInput } from './TextInput';
108
106
  export type { TextInputProps } from './TextInput';
109
- export { default as TextInputField } from './TextInputField';
110
107
  export { default as TextInputWithTokens } from './TextInputWithTokens';
111
108
  export type { TextInputWithTokensProps } from './TextInputWithTokens';
112
109
  export { default as Text } from './Text';
package/lib-esm/index.js CHANGED
@@ -31,7 +31,6 @@ export { NewButton } from './NewButton';
31
31
  export { default as Caret } from './Caret';
32
32
  export { default as CircleBadge } from './CircleBadge';
33
33
  export { default as CircleOcticon } from './CircleOcticon';
34
- export { default as CheckboxInputField } from './CheckboxInputField';
35
34
  export { default as CounterLabel } from './CounterLabel';
36
35
  export { default as Details } from './Details';
37
36
  export { default as Dialog } from './Dialog';
@@ -57,7 +56,6 @@ export { default as Popover } from './Popover';
57
56
  // export {default as Portal, registerPortalRoot} from './Portal'
58
57
  // export type {PortalProps} from './Portal'
59
58
  export { default as ProgressBar } from './ProgressBar';
60
- export { default as RadioInputField } from './RadioInputField';
61
59
  export { default as SelectMenu } from './SelectMenu';
62
60
  export { default as SideNav } from './SideNav';
63
61
  export { default as Spinner } from './Spinner';
@@ -66,7 +64,6 @@ export { default as StyledOcticon } from './StyledOcticon';
66
64
  export { default as SubNav } from './SubNav';
67
65
  export { default as TabNav } from './TabNav';
68
66
  export { default as TextInput } from './TextInput';
69
- export { default as TextInputField } from './TextInputField';
70
67
  export { default as TextInputWithTokens } from './TextInputWithTokens';
71
68
  export { default as Text } from './Text';
72
69
  export { default as Timeline } from './Timeline';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/components",
3
- "version": "0.0.0-2021118142135",
3
+ "version": "0.0.0-2021118144330",
4
4
  "description": "Primer react components",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib-esm/index.js",
@@ -43,7 +43,7 @@
43
43
  "author": "GitHub, Inc.",
44
44
  "license": "MIT",
45
45
  "dependencies": {
46
- "@primer/octicons-react": "16.1.1",
46
+ "@primer/octicons-react": "^16.1.0",
47
47
  "@primer/primitives": "7.1.1",
48
48
  "@radix-ui/react-polymorphic": "0.0.14",
49
49
  "@react-aria/ssr": "3.1.0",
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- declare const _default: React.FC<import("./_InputField/ToggleInputField").Props> & {
3
- Input: React.FC<Omit<React.HTMLProps<HTMLInputElement>, "ref"> & {
4
- ref?: React.Ref<HTMLInputElement> | undefined;
5
- }>;
6
- Caption: React.FC<{}>;
7
- Label: React.FC<import("./_InputField/InputFieldLabel").Props>;
8
- LeadingVisual: React.FC<{}>;
9
- };
10
- export default _default;
@@ -1,73 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
-
8
- var _react = _interopRequireDefault(require("react"));
9
-
10
- var _ = require(".");
11
-
12
- var _InputField = _interopRequireDefault(require("./_InputField/InputField"));
13
-
14
- var _slots = require("./_InputField/slots");
15
-
16
- var _ToggleInputField = _interopRequireDefault(require("./_InputField/ToggleInputField"));
17
-
18
- var _ToggleInputLeadingVisual = _interopRequireDefault(require("./_InputField/ToggleInputLeadingVisual"));
19
-
20
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
21
-
22
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
23
-
24
- const Input = ({
25
- id: idProp,
26
- required: requiredProp,
27
- disabled: disabledProp,
28
- ...rest
29
- }) => {
30
- if (idProp) {
31
- // eslint-disable-next-line no-console
32
- console.warn("instead of passing the 'id' prop directly to <TextInputField.Input>, it should be passed to the parent component, <TextInputField>");
33
- }
34
-
35
- if (disabledProp) {
36
- // eslint-disable-next-line no-console
37
- console.warn("instead of passing the 'disabled' prop directly to <TextInputField.Input>, it should be passed to the parent component, <TextInputField>");
38
- }
39
-
40
- if (requiredProp) {
41
- // eslint-disable-next-line no-console
42
- console.warn("instead of passing the 'required' prop directly to <TextInputField.Input>, it should be passed to the parent component, <TextInputField>");
43
- }
44
-
45
- return /*#__PURE__*/_react.default.createElement(_slots.Slot, {
46
- name: "Input"
47
- }, ({
48
- disabled,
49
- id,
50
- required,
51
- captionId
52
- }) => /*#__PURE__*/_react.default.createElement(_.Checkbox, _extends({
53
- "aria-describedby": captionId,
54
- id: id,
55
- required: required,
56
- disabled: disabled
57
- }, rest)));
58
- };
59
-
60
- Input.displayName = "Input";
61
-
62
- const CheckboxInputField = props => /*#__PURE__*/_react.default.createElement(_ToggleInputField.default, props);
63
-
64
- CheckboxInputField.displayName = "CheckboxInputField";
65
-
66
- var _default = Object.assign(CheckboxInputField, {
67
- Input,
68
- Caption: _InputField.default.Caption,
69
- Label: _InputField.default.Label,
70
- LeadingVisual: _ToggleInputLeadingVisual.default
71
- });
72
-
73
- exports.default = _default;
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import { RadioProps } from '.';
3
- declare const _default: React.FC<import("./_InputField/ToggleInputField").Props> & {
4
- Input: React.FC<RadioProps>;
5
- Caption: React.FC<{}>;
6
- Label: React.FC<import("./_InputField/InputFieldLabel").Props>;
7
- LeadingVisual: React.FC<{}>;
8
- };
9
- export default _default;
@@ -1,74 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
-
8
- var _react = _interopRequireDefault(require("react"));
9
-
10
- var _ = require(".");
11
-
12
- var _InputField = _interopRequireDefault(require("./_InputField/InputField"));
13
-
14
- var _slots = require("./_InputField/slots");
15
-
16
- var _ToggleInputField = _interopRequireDefault(require("./_InputField/ToggleInputField"));
17
-
18
- var _ToggleInputLeadingVisual = _interopRequireDefault(require("./_InputField/ToggleInputLeadingVisual"));
19
-
20
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
21
-
22
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
23
-
24
- // pulling out `id`, `disabled`, and `required` because those should come from the parent TextInputField component
25
- const Input = ({
26
- id: idProp,
27
- required: requiredProp,
28
- disabled: disabledProp,
29
- ...rest
30
- }) => {
31
- if (idProp) {
32
- // eslint-disable-next-line no-console
33
- console.warn("instead of passing the 'id' prop directly to <TextInputField.Input>, it should be passed to the parent component, <TextInputField>");
34
- }
35
-
36
- if (disabledProp) {
37
- // eslint-disable-next-line no-console
38
- console.warn("instead of passing the 'disabled' prop directly to <TextInputField.Input>, it should be passed to the parent component, <TextInputField>");
39
- }
40
-
41
- if (requiredProp) {
42
- // eslint-disable-next-line no-console
43
- console.warn("instead of passing the 'required' prop directly to <TextInputField.Input>, it should be passed to the parent component, <TextInputField>");
44
- }
45
-
46
- return /*#__PURE__*/_react.default.createElement(_slots.Slot, {
47
- name: "Input"
48
- }, ({
49
- disabled,
50
- id,
51
- required,
52
- captionId
53
- }) => /*#__PURE__*/_react.default.createElement(_.Radio, _extends({
54
- "aria-describedby": captionId,
55
- id: id,
56
- required: required,
57
- disabled: disabled
58
- }, rest)));
59
- };
60
-
61
- Input.displayName = "Input";
62
-
63
- const RadioInputField = props => /*#__PURE__*/_react.default.createElement(_ToggleInputField.default, props);
64
-
65
- RadioInputField.displayName = "RadioInputField";
66
-
67
- var _default = Object.assign(RadioInputField, {
68
- Input,
69
- Caption: _InputField.default.Caption,
70
- Label: _InputField.default.Label,
71
- LeadingVisual: _ToggleInputLeadingVisual.default
72
- });
73
-
74
- exports.default = _default;