@primer/react-brand 0.6.0 → 0.7.0-rc.e007fdb

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 (109) hide show
  1. package/lib/Stack/Stack.d.ts +4 -4
  2. package/lib/css/main.css +300 -19
  3. package/lib/design-tokens/css/tokens/base/colors/color-scales-with-modes.css +1 -1
  4. package/lib/design-tokens/css/tokens/base/colors/color-scales.css +1 -1
  5. package/lib/design-tokens/css/tokens/base/size/size.css +1 -1
  6. package/lib/design-tokens/css/tokens/base/typography/typography.css +1 -1
  7. package/lib/design-tokens/css/tokens/functional/colors/global-with-modes.css +1 -1
  8. package/lib/design-tokens/css/tokens/functional/colors/global.css +1 -1
  9. package/lib/design-tokens/css/tokens/functional/components/accordion/colors-with-modes.css +1 -1
  10. package/lib/design-tokens/css/tokens/functional/components/button/colors-with-modes.css +1 -1
  11. package/lib/design-tokens/css/tokens/functional/components/comparison-table/colors-with-modes.css +1 -1
  12. package/lib/design-tokens/css/tokens/functional/components/control/base.css +1 -1
  13. package/lib/design-tokens/css/tokens/functional/components/control/colors-with-modes.css +13 -1
  14. package/lib/design-tokens/css/tokens/functional/components/faq/base.css +1 -1
  15. package/lib/design-tokens/css/tokens/functional/components/faq/colors-with-modes.css +1 -1
  16. package/lib/design-tokens/css/tokens/functional/components/faq/colors.css +1 -1
  17. package/lib/design-tokens/css/tokens/functional/components/hero/base.css +1 -1
  18. package/lib/design-tokens/css/tokens/functional/components/inline-link/colors-with-modes.css +1 -1
  19. package/lib/design-tokens/css/tokens/functional/components/inline-link/colors.css +1 -1
  20. package/lib/design-tokens/css/tokens/functional/components/river/base.css +1 -1
  21. package/lib/design-tokens/css/tokens/functional/components/subdomain-nav-bar/colors-with-modes.css +1 -1
  22. package/lib/design-tokens/css/tokens/functional/size/border.css +1 -1
  23. package/lib/design-tokens/css/tokens/functional/size/breakpoints.css +1 -1
  24. package/lib/design-tokens/css/tokens/functional/size/size-coarse.css +1 -1
  25. package/lib/design-tokens/css/tokens/functional/size/size-fine.css +1 -1
  26. package/lib/design-tokens/css/tokens/functional/size/size.css +1 -1
  27. package/lib/design-tokens/css/tokens/functional/typography/typography-responsive.css +1 -1
  28. package/lib/design-tokens/css/tokens/functional/typography/typography.css +1 -1
  29. package/lib/design-tokens/js/module/tokens/base/colors/color-scales.js +1 -1
  30. package/lib/design-tokens/js/module/tokens/base/size/size.js +1 -1
  31. package/lib/design-tokens/js/module/tokens/base/typography/typography.js +1 -1
  32. package/lib/design-tokens/js/module/tokens/functional/colors/global.js +1 -1
  33. package/lib/design-tokens/js/module/tokens/functional/components/control/base.js +1 -1
  34. package/lib/design-tokens/js/module/tokens/functional/components/faq/base.js +1 -1
  35. package/lib/design-tokens/js/module/tokens/functional/components/faq/colors.js +1 -1
  36. package/lib/design-tokens/js/module/tokens/functional/components/hero/base.js +1 -1
  37. package/lib/design-tokens/js/module/tokens/functional/components/inline-link/colors.js +1 -1
  38. package/lib/design-tokens/js/module/tokens/functional/components/river/base.js +1 -1
  39. package/lib/design-tokens/js/module/tokens/functional/size/border.js +1 -1
  40. package/lib/design-tokens/js/module/tokens/functional/size/breakpoints.js +1 -1
  41. package/lib/design-tokens/js/module/tokens/functional/size/size-coarse.js +1 -1
  42. package/lib/design-tokens/js/module/tokens/functional/size/size-fine.js +1 -1
  43. package/lib/design-tokens/js/module/tokens/functional/size/size.js +1 -1
  44. package/lib/design-tokens/js/module/tokens/functional/size/viewport.js +1 -1
  45. package/lib/design-tokens/js/module/tokens/functional/typography/typography-responsive.js +1 -1
  46. package/lib/design-tokens/js/module/tokens/functional/typography/typography.js +1 -1
  47. package/lib/design-tokens/js/tokens/base/colors/color-scales.js +1 -1
  48. package/lib/design-tokens/js/tokens/base/size/size.js +1 -1
  49. package/lib/design-tokens/js/tokens/base/typography/typography.js +1 -1
  50. package/lib/design-tokens/js/tokens/functional/colors/global.js +1 -1
  51. package/lib/design-tokens/js/tokens/functional/components/control/base.js +1 -1
  52. package/lib/design-tokens/js/tokens/functional/components/faq/base.js +1 -1
  53. package/lib/design-tokens/js/tokens/functional/components/faq/colors.js +1 -1
  54. package/lib/design-tokens/js/tokens/functional/components/hero/base.js +1 -1
  55. package/lib/design-tokens/js/tokens/functional/components/inline-link/colors.js +1 -1
  56. package/lib/design-tokens/js/tokens/functional/components/river/base.js +1 -1
  57. package/lib/design-tokens/js/tokens/functional/size/border.js +1 -1
  58. package/lib/design-tokens/js/tokens/functional/size/breakpoints.js +1 -1
  59. package/lib/design-tokens/js/tokens/functional/size/size-coarse.js +1 -1
  60. package/lib/design-tokens/js/tokens/functional/size/size-fine.js +1 -1
  61. package/lib/design-tokens/js/tokens/functional/size/size.js +1 -1
  62. package/lib/design-tokens/js/tokens/functional/size/viewport.js +1 -1
  63. package/lib/design-tokens/js/tokens/functional/typography/typography-responsive.js +1 -1
  64. package/lib/design-tokens/js/tokens/functional/typography/typography.js +1 -1
  65. package/lib/design-tokens/ts/tokens/base/colors/color-scales.d.ts +1 -1
  66. package/lib/design-tokens/ts/tokens/base/colors/color-scales.js +1 -1
  67. package/lib/design-tokens/ts/tokens/base/size/size.d.ts +1 -1
  68. package/lib/design-tokens/ts/tokens/base/size/size.js +1 -1
  69. package/lib/design-tokens/ts/tokens/base/typography/typography.d.ts +1 -1
  70. package/lib/design-tokens/ts/tokens/base/typography/typography.js +1 -1
  71. package/lib/design-tokens/ts/tokens/functional/colors/global.d.ts +1 -1
  72. package/lib/design-tokens/ts/tokens/functional/colors/global.js +1 -1
  73. package/lib/design-tokens/ts/tokens/functional/components/control/base.d.ts +1 -1
  74. package/lib/design-tokens/ts/tokens/functional/components/control/base.js +1 -1
  75. package/lib/design-tokens/ts/tokens/functional/components/faq/base.d.ts +1 -1
  76. package/lib/design-tokens/ts/tokens/functional/components/faq/base.js +1 -1
  77. package/lib/design-tokens/ts/tokens/functional/components/faq/colors.d.ts +1 -1
  78. package/lib/design-tokens/ts/tokens/functional/components/faq/colors.js +1 -1
  79. package/lib/design-tokens/ts/tokens/functional/components/hero/base.d.ts +1 -1
  80. package/lib/design-tokens/ts/tokens/functional/components/hero/base.js +1 -1
  81. package/lib/design-tokens/ts/tokens/functional/components/inline-link/colors.d.ts +1 -1
  82. package/lib/design-tokens/ts/tokens/functional/components/inline-link/colors.js +1 -1
  83. package/lib/design-tokens/ts/tokens/functional/components/river/base.d.ts +1 -1
  84. package/lib/design-tokens/ts/tokens/functional/components/river/base.js +1 -1
  85. package/lib/design-tokens/ts/tokens/functional/size/border.d.ts +1 -1
  86. package/lib/design-tokens/ts/tokens/functional/size/border.js +1 -1
  87. package/lib/design-tokens/ts/tokens/functional/size/breakpoints.d.ts +1 -1
  88. package/lib/design-tokens/ts/tokens/functional/size/breakpoints.js +1 -1
  89. package/lib/design-tokens/ts/tokens/functional/size/size-coarse.d.ts +1 -1
  90. package/lib/design-tokens/ts/tokens/functional/size/size-coarse.js +1 -1
  91. package/lib/design-tokens/ts/tokens/functional/size/size-fine.d.ts +1 -1
  92. package/lib/design-tokens/ts/tokens/functional/size/size-fine.js +1 -1
  93. package/lib/design-tokens/ts/tokens/functional/size/size.d.ts +1 -1
  94. package/lib/design-tokens/ts/tokens/functional/size/size.js +1 -1
  95. package/lib/design-tokens/ts/tokens/functional/size/viewport.d.ts +1 -1
  96. package/lib/design-tokens/ts/tokens/functional/size/viewport.js +1 -1
  97. package/lib/design-tokens/ts/tokens/functional/typography/typography-responsive.d.ts +1 -1
  98. package/lib/design-tokens/ts/tokens/functional/typography/typography-responsive.js +1 -1
  99. package/lib/design-tokens/ts/tokens/functional/typography/typography.d.ts +1 -1
  100. package/lib/design-tokens/ts/tokens/functional/typography/typography.js +1 -1
  101. package/lib/forms/Radio/Radio.d.ts +40 -0
  102. package/lib/forms/Radio/Radio.visual.spec.d.ts +1 -0
  103. package/lib/forms/Radio/index.d.ts +1 -0
  104. package/lib/forms/Textarea/Textarea.d.ts +66 -0
  105. package/lib/forms/Textarea/Textarea.visual.spec.d.ts +1 -0
  106. package/lib/forms/Textarea/index.d.ts +1 -0
  107. package/lib/forms/index.d.ts +2 -0
  108. package/lib/index.js +1 -1
  109. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Fri, 04 Nov 2022 12:59:23 GMT
3
+ * Generated on Tue, 08 Nov 2022 12:15:19 GMT
4
4
  */
5
5
 
6
6
  declare const tokens: {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Fri, 04 Nov 2022 12:59:23 GMT
3
+ * Generated on Tue, 08 Nov 2022 12:15:19 GMT
4
4
  */
5
5
 
6
6
  module.exports = {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Fri, 04 Nov 2022 12:59:23 GMT
3
+ * Generated on Tue, 08 Nov 2022 12:15:19 GMT
4
4
  */
5
5
 
6
6
  declare const tokens: {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Fri, 04 Nov 2022 12:59:23 GMT
3
+ * Generated on Tue, 08 Nov 2022 12:15:19 GMT
4
4
  */
5
5
 
6
6
  module.exports = {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Fri, 04 Nov 2022 12:59:23 GMT
3
+ * Generated on Tue, 08 Nov 2022 12:15:19 GMT
4
4
  */
5
5
 
6
6
  declare const tokens: {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Fri, 04 Nov 2022 12:59:23 GMT
3
+ * Generated on Tue, 08 Nov 2022 12:15:19 GMT
4
4
  */
5
5
 
6
6
  module.exports = {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Fri, 04 Nov 2022 12:59:23 GMT
3
+ * Generated on Tue, 08 Nov 2022 12:15:19 GMT
4
4
  */
5
5
 
6
6
  declare const tokens: {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Fri, 04 Nov 2022 12:59:23 GMT
3
+ * Generated on Tue, 08 Nov 2022 12:15:19 GMT
4
4
  */
5
5
 
6
6
  module.exports = {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Fri, 04 Nov 2022 12:59:23 GMT
3
+ * Generated on Tue, 08 Nov 2022 12:15:19 GMT
4
4
  */
5
5
 
6
6
  declare const tokens: {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Fri, 04 Nov 2022 12:59:23 GMT
3
+ * Generated on Tue, 08 Nov 2022 12:15:19 GMT
4
4
  */
5
5
 
6
6
  module.exports = {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Fri, 04 Nov 2022 12:59:23 GMT
3
+ * Generated on Tue, 08 Nov 2022 12:15:19 GMT
4
4
  */
5
5
 
6
6
  declare const tokens: {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Fri, 04 Nov 2022 12:59:23 GMT
3
+ * Generated on Tue, 08 Nov 2022 12:15:19 GMT
4
4
  */
5
5
 
6
6
  module.exports = {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Fri, 04 Nov 2022 12:59:23 GMT
3
+ * Generated on Tue, 08 Nov 2022 12:15:19 GMT
4
4
  */
5
5
 
6
6
  declare const tokens: {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Fri, 04 Nov 2022 12:59:23 GMT
3
+ * Generated on Tue, 08 Nov 2022 12:15:19 GMT
4
4
  */
5
5
 
6
6
  module.exports = {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Fri, 04 Nov 2022 12:59:23 GMT
3
+ * Generated on Tue, 08 Nov 2022 12:15:19 GMT
4
4
  */
5
5
 
6
6
  declare const tokens: {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Fri, 04 Nov 2022 12:59:23 GMT
3
+ * Generated on Tue, 08 Nov 2022 12:15:19 GMT
4
4
  */
5
5
 
6
6
  module.exports = {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Fri, 04 Nov 2022 12:59:23 GMT
3
+ * Generated on Tue, 08 Nov 2022 12:15:19 GMT
4
4
  */
5
5
 
6
6
  declare const tokens: {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Fri, 04 Nov 2022 12:59:23 GMT
3
+ * Generated on Tue, 08 Nov 2022 12:15:19 GMT
4
4
  */
5
5
 
6
6
  module.exports = {
@@ -0,0 +1,40 @@
1
+ import React, { InputHTMLAttributes } from 'react';
2
+ import type { BaseProps } from '../../component-helpers';
3
+ export declare type RadioProps = {
4
+ /**
5
+ * Apply inactive visual appearance to the Radio
6
+ */
7
+ disabled?: boolean;
8
+ /**
9
+ * Forward a ref to the underlying input element
10
+ */
11
+ ref?: React.RefObject<HTMLInputElement>;
12
+ /**
13
+ * Indicates whether the Radio must be checked
14
+ */
15
+ required?: boolean;
16
+ /**
17
+ * A unique value that is never shown to the user.
18
+ * Used during form submission and to identify which Radio inputs are selected
19
+ */
20
+ value?: string;
21
+ } & Exclude<InputHTMLAttributes<HTMLInputElement>, 'value'> & BaseProps<HTMLInputElement>;
22
+ export declare const Radio: React.ForwardRefExoticComponent<Pick<{
23
+ /**
24
+ * Apply inactive visual appearance to the Radio
25
+ */
26
+ disabled?: boolean | undefined;
27
+ /**
28
+ * Forward a ref to the underlying input element
29
+ */
30
+ ref?: React.RefObject<HTMLInputElement> | undefined;
31
+ /**
32
+ * Indicates whether the Radio must be checked
33
+ */
34
+ required?: boolean | undefined;
35
+ /**
36
+ * A unique value that is never shown to the user.
37
+ * Used during form submission and to identify which Radio inputs are selected
38
+ */
39
+ value?: string | undefined;
40
+ } & React.InputHTMLAttributes<HTMLInputElement> & BaseProps<HTMLInputElement>, "value" | "children" | "className" | "id" | "form" | "slot" | "style" | "title" | "pattern" | "size" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "list" | "type" | "step" | "alt" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "autoComplete" | "accept" | "capture" | "checked" | "multiple" | "maxLength" | "minLength" | "src" | "name" | "required" | "crossOrigin" | "enterKeyHint" | "height" | "max" | "min" | "readOnly" | "width"> & React.RefAttributes<unknown>>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export * from './Radio';
@@ -0,0 +1,66 @@
1
+ import React from 'react';
2
+ import type { BaseProps } from '../../component-helpers';
3
+ import type { FormInputSizes, FormValidationStatus } from '../form-types';
4
+ export declare const DEFAULT_TEXTAREA_ROWS = 7;
5
+ export declare const DEFAULT_TEXTAREA_COLS = 30;
6
+ export declare const DEFAULT_TEXTAREA_RESIZE = "both";
7
+ export declare type TextareaProps = {
8
+ /**
9
+ * Applies full width styling.
10
+ */
11
+ fullWidth?: boolean;
12
+ /**
13
+ * Removes border
14
+ */
15
+ invisible?: boolean;
16
+ /**
17
+ * Applies monospace styling.
18
+ */
19
+ monospace?: boolean;
20
+ /**
21
+ * Applies alternative sizing to the input
22
+ */
23
+ size?: FormInputSizes;
24
+ /**
25
+ * Applies a required attribute to the input
26
+ */
27
+ required?: boolean;
28
+ /**
29
+ *
30
+ */
31
+ validationStatus?: FormValidationStatus;
32
+ /**
33
+ * Allows resizing of the textarea
34
+ */
35
+ resize?: 'none' | 'both' | 'horizontal' | 'vertical';
36
+ } & Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, 'size'> & BaseProps<HTMLTextAreaElement>;
37
+ export declare const Textarea: React.ForwardRefExoticComponent<Pick<{
38
+ /**
39
+ * Applies full width styling.
40
+ */
41
+ fullWidth?: boolean | undefined;
42
+ /**
43
+ * Removes border
44
+ */
45
+ invisible?: boolean | undefined;
46
+ /**
47
+ * Applies monospace styling.
48
+ */
49
+ monospace?: boolean | undefined;
50
+ /**
51
+ * Applies alternative sizing to the input
52
+ */
53
+ size?: FormInputSizes | undefined;
54
+ /**
55
+ * Applies a required attribute to the input
56
+ */
57
+ required?: boolean | undefined;
58
+ /**
59
+ *
60
+ */
61
+ validationStatus?: FormValidationStatus | undefined;
62
+ /**
63
+ * Allows resizing of the textarea
64
+ */
65
+ resize?: "none" | "both" | "horizontal" | "vertical" | undefined;
66
+ } & Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "size"> & BaseProps<HTMLTextAreaElement>, "value" | "children" | "className" | "id" | "form" | "slot" | "style" | "title" | "size" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "autoFocus" | "disabled" | "autoComplete" | "cols" | "dirName" | "maxLength" | "minLength" | "name" | "fullWidth" | "required" | "validationStatus" | "readOnly" | "invisible" | "monospace" | "resize" | "rows" | "wrap"> & React.RefAttributes<unknown>>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export * from './Textarea';
@@ -4,7 +4,9 @@
4
4
  import '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/control/base.css';
5
5
  import '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/control/colors-with-modes.css';
6
6
  export * from './Checkbox';
7
+ export * from './Textarea';
7
8
  export * from './TextInput';
8
9
  export * from './Select';
10
+ export * from './Radio';
9
11
  export * from './FormControl';
10
12
  export * from './form-types';