@digigov/ui 0.9.0 → 0.10.1
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/CHANGELOG.md +28 -1
- package/api/APIErrors.js +1 -1
- package/app/Header/HeaderSection.js +1 -1
- package/app/NotFound/index.js +2 -10
- package/app/PageTitle.js +1 -1
- package/core/Accordion/index.js +3 -3
- package/core/Button/BackButton.js +1 -1
- package/core/Divider/index.js +1 -1
- package/core/ServiceBadge/index.js +1 -1
- package/es/api/APIErrors.js +1 -1
- package/es/app/Header/HeaderSection.js +1 -1
- package/es/app/NotFound/index.js +1 -2
- package/es/app/PageTitle.js +1 -1
- package/es/core/Accordion/index.js +3 -3
- package/es/core/Button/BackButton.js +1 -1
- package/es/core/Divider/index.js +1 -1
- package/es/core/ServiceBadge/index.js +1 -1
- package/es/govgr/Footer/index.js +0 -77
- package/es/layouts/Basic/Content/index.js +2 -1
- package/es/layouts/Basic/Side/index.js +1 -1
- package/es/typography/Caption.js +1 -1
- package/es/typography/Title.js +1 -1
- package/es/utils/withDeprecation.js +12 -2
- package/esm/api/APIErrors.js +1 -1
- package/esm/app/Header/HeaderSection.js +1 -1
- package/esm/app/NotFound/index.js +1 -2
- package/esm/app/PageTitle.js +1 -1
- package/esm/core/Accordion/index.js +3 -3
- package/esm/core/Button/BackButton.js +1 -1
- package/esm/core/Divider/index.js +1 -1
- package/esm/core/ServiceBadge/index.js +1 -1
- package/esm/govgr/Footer/index.js +0 -77
- package/esm/index.js +1 -1
- package/esm/layouts/Basic/Content/index.js +2 -1
- package/esm/layouts/Basic/Side/index.js +1 -1
- package/esm/typography/Caption.js +1 -1
- package/esm/typography/Title.js +1 -1
- package/esm/utils/withDeprecation.js +12 -2
- package/govgr/Footer/index.js +1 -88
- package/layouts/Basic/Content/index.js +2 -1
- package/layouts/Basic/Side/index.js +1 -1
- package/libs/ui/src/core/Button/index.d.ts +1 -1
- package/libs/ui/src/core/NavList/NavListItemBase.d.ts +1 -1
- package/libs/ui/src/govgr/Footer/index.d.ts +0 -4
- package/libs/ui/src/layouts/Basic/Content/index.d.ts +1 -1
- package/libs-ui/react-core/src/Breadcrumbs/index.d.ts +10 -0
- package/libs-ui/react-core/src/BreadcrumbsList/index.d.ts +9 -0
- package/libs-ui/react-core/src/BreadcrumbsListItem/index.d.ts +14 -0
- package/libs-ui/react-core/src/BurgerIcon/index.d.ts +16 -0
- package/libs-ui/react-core/src/Button/index.d.ts +5 -1
- package/libs-ui/react-core/src/ButtonGroup/index.d.ts +9 -0
- package/libs-ui/react-core/src/Card/index.d.ts +17 -0
- package/libs-ui/react-core/src/CardAction/index.d.ts +11 -0
- package/libs-ui/react-core/src/CardHeading/index.d.ts +10 -0
- package/libs-ui/react-core/src/CardText/index.d.ts +10 -0
- package/libs-ui/react-core/src/Checkbox/index.d.ts +11 -0
- package/libs-ui/react-core/src/CheckboxConditional/index.d.ts +15 -0
- package/libs-ui/react-core/src/CheckboxItem/index.d.ts +19 -0
- package/libs-ui/react-core/src/Confirmation/index.d.ts +9 -0
- package/libs-ui/react-core/src/ConfirmationBody/index.d.ts +9 -0
- package/libs-ui/react-core/src/ConfirmationTitle/index.d.ts +9 -0
- package/libs-ui/react-core/src/Container/index.d.ts +10 -2
- package/libs-ui/react-core/src/DateInput/index.d.ts +12 -0
- package/libs-ui/react-core/src/DateInputItem/index.d.ts +25 -0
- package/libs-ui/react-core/src/ErrorMessage/index.d.ts +11 -0
- package/libs-ui/react-core/src/Field/index.d.ts +13 -0
- package/libs-ui/react-core/src/Fieldset/index.d.ts +10 -0
- package/libs-ui/react-core/src/FieldsetLegend/index.d.ts +19 -0
- package/libs-ui/react-core/src/FileUpload/index.d.ts +14 -0
- package/libs-ui/react-core/src/FooterContent/index.d.ts +10 -0
- package/libs-ui/react-core/src/FooterContentLogos/index.d.ts +11 -0
- package/libs-ui/react-core/src/FooterHeading/index.d.ts +15 -0
- package/libs-ui/react-core/src/FooterImage/index.d.ts +11 -0
- package/libs-ui/react-core/src/FooterInlineList/index.d.ts +11 -0
- package/libs-ui/react-core/src/FooterInlineListItem/index.d.ts +9 -0
- package/libs-ui/react-core/src/FooterLink/index.d.ts +13 -0
- package/libs-ui/react-core/src/FooterList/index.d.ts +15 -0
- package/libs-ui/react-core/src/FooterListItem/index.d.ts +10 -0
- package/libs-ui/react-core/src/FooterNavigation/index.d.ts +11 -0
- package/libs-ui/react-core/src/FooterSection/index.d.ts +11 -0
- package/libs-ui/react-core/src/GovGRFooter/index.d.ts +9 -0
- package/libs-ui/react-core/src/HeaderContent/index.d.ts +9 -0
- package/libs-ui/react-core/src/HeaderSecondaryLogo/index.d.ts +17 -0
- package/libs-ui/react-core/src/Hidden/index.d.ts +17 -0
- package/libs-ui/react-core/src/Hint/index.d.ts +9 -0
- package/libs-ui/react-core/src/Label/index.d.ts +9 -0
- package/libs-ui/react-core/src/LabelTitle/index.d.ts +19 -0
- package/libs-ui/react-core/src/Link/index.d.ts +14 -0
- package/libs-ui/react-core/src/NavHorizontal/index.d.ts +16 -0
- package/libs-ui/react-core/src/NavHorizontalList/index.d.ts +10 -0
- package/libs-ui/react-core/src/NavHorizontalListItem/index.d.ts +18 -0
- package/libs-ui/react-core/src/NavVertical/index.d.ts +11 -0
- package/libs-ui/react-core/src/NavVerticalItem/index.d.ts +14 -0
- package/libs-ui/react-core/src/NormalText/index.d.ts +1 -1
- package/libs-ui/react-core/src/NotificationBannerLink/index.d.ts +15 -0
- package/libs-ui/react-core/src/PageTitle/index.d.ts +9 -0
- package/libs-ui/react-core/src/PageTitleCaption/index.d.ts +14 -0
- package/libs-ui/react-core/src/PageTitleHeading/index.d.ts +13 -0
- package/libs-ui/react-core/src/PageTitleSection/index.d.ts +10 -0
- package/libs-ui/react-core/src/Paragraph/index.d.ts +1 -1
- package/libs-ui/react-core/src/PhaseBannerText/index.d.ts +11 -0
- package/libs-ui/react-core/src/Radio/index.d.ts +10 -0
- package/libs-ui/react-core/src/RadioConditional/index.d.ts +15 -0
- package/libs-ui/react-core/src/RadioItem/index.d.ts +18 -0
- package/libs-ui/react-core/src/Select/index.d.ts +14 -0
- package/libs-ui/react-core/src/SelectOption/index.d.ts +18 -0
- package/libs-ui/react-core/src/ServiceBadge/index.d.ts +11 -0
- package/libs-ui/react-core/src/Table/index.d.ts +34 -0
- package/libs-ui/react-core/src/TableBody/index.d.ts +9 -0
- package/libs-ui/react-core/src/TableCaption/index.d.ts +15 -0
- package/libs-ui/react-core/src/TableDataCell/index.d.ts +15 -0
- package/libs-ui/react-core/src/TableHead/index.d.ts +9 -0
- package/libs-ui/react-core/src/TableHeaderCell/index.d.ts +21 -0
- package/libs-ui/react-core/src/TableRow/index.d.ts +9 -0
- package/libs-ui/react-core/src/TextArea/index.d.ts +23 -0
- package/libs-ui/react-core/src/TextInput/index.d.ts +28 -0
- package/libs-ui/react-core/src/VisuallyHidden/index.d.ts +10 -0
- package/libs-ui/react-core/src/index.d.ts +127 -0
- package/package.json +2 -2
- package/typography/Caption.js +1 -1
- package/typography/Title.js +1 -1
- package/utils/withDeprecation.js +13 -2
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare type ThElementAttributes = JSX.IntrinsicElements['th'];
|
|
3
|
+
export interface TableHeaderCellProps extends ThElementAttributes {
|
|
4
|
+
/**
|
|
5
|
+
* dataType is optional.
|
|
6
|
+
* Use numeric value prop when comparing columns of numbers, align the numbers to the right in table cells.
|
|
7
|
+
* Default value is text which aligns texts to the center
|
|
8
|
+
*/
|
|
9
|
+
dataType?: 'text' | 'numeric';
|
|
10
|
+
/**
|
|
11
|
+
* cellWidth is optional.
|
|
12
|
+
* Use cellWidth prop to define a custom width for a specific reference number in your table cell.
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
cellWidth?: 'one-quarter' | 'one-third' | 'one-half' | 'two-thirds' | 'three-quarters' | 'full';
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Use TableHeaderCell inside the Table component to provide the header row and/or column of the table.
|
|
19
|
+
*/
|
|
20
|
+
export declare const TableHeaderCell: React.ForwardRefExoticComponent<Pick<TableHeaderCellProps, "color" | "className" | "children" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "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" | "abbr" | "align" | "colSpan" | "headers" | "rowSpan" | "scope" | "dataType" | "cellWidth"> & React.RefAttributes<HTMLTableCellElement>>;
|
|
21
|
+
export default TableHeaderCell;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare type TrElementAttributes = JSX.IntrinsicElements['tr'];
|
|
3
|
+
export interface TableRowProps extends TrElementAttributes {
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Use TableRow inside the Table component to provide a new row to the table.
|
|
7
|
+
*/
|
|
8
|
+
export declare const TableRow: React.ForwardRefExoticComponent<Pick<TableRowProps, "color" | "className" | "children" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "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"> & React.RefAttributes<HTMLTableRowElement>>;
|
|
9
|
+
export default TableRow;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare type TextareaElementAttributes = JSX.IntrinsicElements['textarea'];
|
|
3
|
+
export interface TextAreaProps extends TextareaElementAttributes {
|
|
4
|
+
/**
|
|
5
|
+
* name is optional but strongly recommended.
|
|
6
|
+
*/
|
|
7
|
+
name?: string;
|
|
8
|
+
/**
|
|
9
|
+
* row is optional. The default value is 6.
|
|
10
|
+
*/
|
|
11
|
+
rows?: 4 | 5 | 6 | 7 | 8;
|
|
12
|
+
/**
|
|
13
|
+
* error is optional. The default value is false.
|
|
14
|
+
* Use this prop when there is an error at the input.
|
|
15
|
+
*/
|
|
16
|
+
error?: boolean;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Textarea component is used when you need to let users enter an
|
|
20
|
+
* amount of text that’s longer than a single line.
|
|
21
|
+
*/
|
|
22
|
+
export declare const TextArea: React.ForwardRefExoticComponent<Pick<TextAreaProps, "color" | "disabled" | "className" | "children" | "key" | "autoFocus" | "form" | "name" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "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" | "error" | "wrap" | "autoComplete" | "maxLength" | "minLength" | "readOnly" | "required" | "cols" | "dirName" | "rows"> & React.RefAttributes<HTMLTextAreaElement>>;
|
|
23
|
+
export default TextArea;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare type InputElementAttributes = JSX.IntrinsicElements['input'];
|
|
3
|
+
export interface TextInputProps extends InputElementAttributes {
|
|
4
|
+
/**
|
|
5
|
+
* name is optional but strongly recommended.
|
|
6
|
+
*/
|
|
7
|
+
name?: string;
|
|
8
|
+
/**
|
|
9
|
+
* characterWidth is optional.
|
|
10
|
+
*/
|
|
11
|
+
characterWidth?: 2 | 3 | 4 | 5 | 10 | 20;
|
|
12
|
+
/**
|
|
13
|
+
* cellWidth is optional.
|
|
14
|
+
* Use cellWidth prop to define a custom width for a specific reference number in your components.
|
|
15
|
+
*/
|
|
16
|
+
cellWidth?: 'one-quarter' | 'one-third' | 'one-half' | 'two-thirds' | 'three-quarters' | 'full';
|
|
17
|
+
/**
|
|
18
|
+
* error is optional. The default value is false.
|
|
19
|
+
* Use this prop when there is an error at the input.
|
|
20
|
+
*/
|
|
21
|
+
error?: boolean;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* TextInput component when you need to let users enter text that’s no
|
|
25
|
+
* longer than a single line, such as their name or phone number.
|
|
26
|
+
*/
|
|
27
|
+
export declare const TextInput: React.ForwardRefExoticComponent<Pick<TextInputProps, "color" | "disabled" | "className" | "children" | "key" | "autoFocus" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "type" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "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" | "pattern" | "list" | "step" | "error" | "height" | "width" | "size" | "multiple" | "alt" | "src" | "max" | "min" | "crossOrigin" | "autoComplete" | "accept" | "capture" | "checked" | "maxLength" | "minLength" | "readOnly" | "required" | "cellWidth" | "characterWidth"> & React.RefAttributes<HTMLInputElement>>;
|
|
28
|
+
export default TextInput;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare type SpanElementAttributes = JSX.IntrinsicElements['span'];
|
|
3
|
+
export interface VisuallyHiddenProps extends SpanElementAttributes {
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Details for the VisuallyHidden.
|
|
7
|
+
* VisuallyHidden component provides text for screen readers that is visually hidden.
|
|
8
|
+
*/
|
|
9
|
+
export declare const VisuallyHidden: React.ForwardRefExoticComponent<Pick<VisuallyHiddenProps, "color" | "className" | "children" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "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"> & React.RefAttributes<HTMLSpanElement>>;
|
|
10
|
+
export default VisuallyHidden;
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
export { default as Accordion } from '@digigov/react-core/Accordion';
|
|
2
|
+
export { default as AccordionControls } from '@digigov/react-core/AccordionControls';
|
|
3
|
+
export { default as AccordionSection } from '@digigov/react-core/AccordionSection';
|
|
4
|
+
export { default as AccordionSectionContent } from '@digigov/react-core/AccordionSectionContent';
|
|
5
|
+
export { default as AccordionSectionHeader } from '@digigov/react-core/AccordionSectionHeader';
|
|
6
|
+
export { default as Aside } from '@digigov/react-core/Aside';
|
|
7
|
+
export { default as BackLink } from '@digigov/react-core/BackLink';
|
|
8
|
+
export { default as Blockquote } from '@digigov/react-core/Blockquote';
|
|
9
|
+
export { default as Bottom } from '@digigov/react-core/Bottom';
|
|
10
|
+
export { default as Breadcrumbs } from '@digigov/react-core/Breadcrumbs';
|
|
11
|
+
export { default as BreadcrumbsList } from '@digigov/react-core/BreadcrumbsList';
|
|
12
|
+
export { default as BreadcrumbsListItem } from '@digigov/react-core/BreadcrumbsListItem';
|
|
13
|
+
export { default as BurgerIcon } from '@digigov/react-core/BurgerIcon';
|
|
14
|
+
export { default as Button } from '@digigov/react-core/Button';
|
|
15
|
+
export { default as ButtonGroup } from '@digigov/react-core/ButtonGroup';
|
|
16
|
+
export { default as ButtonLink } from '@digigov/react-core/ButtonLink';
|
|
17
|
+
export { default as CallToAction } from '@digigov/react-core/CallToAction';
|
|
18
|
+
export { default as Card } from '@digigov/react-core/Card';
|
|
19
|
+
export { default as CardAction } from '@digigov/react-core/CardAction';
|
|
20
|
+
export { default as CardHeading } from '@digigov/react-core/CardHeading';
|
|
21
|
+
export { default as CardText } from '@digigov/react-core/CardText';
|
|
22
|
+
export { default as Checkbox } from '@digigov/react-core/Checkbox';
|
|
23
|
+
export { default as CheckboxConditional } from '@digigov/react-core/CheckboxConditional';
|
|
24
|
+
export { default as CheckboxItem } from '@digigov/react-core/CheckboxItem';
|
|
25
|
+
export { default as Confirmation } from '@digigov/react-core/Confirmation';
|
|
26
|
+
export { default as ConfirmationBody } from '@digigov/react-core/ConfirmationBody';
|
|
27
|
+
export { default as ConfirmationTitle } from '@digigov/react-core/ConfirmationTitle';
|
|
28
|
+
export { default as Container } from '@digigov/react-core/Container';
|
|
29
|
+
export { default as Copyright } from '@digigov/react-core/Copyright';
|
|
30
|
+
export { default as DateInput } from '@digigov/react-core/DateInput';
|
|
31
|
+
export { default as DateInputItem } from '@digigov/react-core/DateInputItem';
|
|
32
|
+
export { default as Details } from '@digigov/react-core/Details';
|
|
33
|
+
export { default as DetailsContent } from '@digigov/react-core/DetailsContent';
|
|
34
|
+
export { default as DetailsSummary } from '@digigov/react-core/DetailsSummary';
|
|
35
|
+
export { default as ErrorMessage } from '@digigov/react-core/ErrorMessage';
|
|
36
|
+
export { default as ErrorSummary } from '@digigov/react-core/ErrorSummary';
|
|
37
|
+
export { default as Fieldset } from '@digigov/react-core/Fieldset';
|
|
38
|
+
export { default as FieldsetLegend } from '@digigov/react-core/FieldsetLegend';
|
|
39
|
+
export { default as FileUpload } from '@digigov/react-core/FileUpload';
|
|
40
|
+
export { default as Footer } from '@digigov/react-core/Footer';
|
|
41
|
+
export { default as FooterContainer } from '@digigov/react-core/FooterContainer';
|
|
42
|
+
export { default as FooterContent } from '@digigov/react-core/FooterContent';
|
|
43
|
+
export { default as FooterContentLogos } from '@digigov/react-core/FooterContentLogos';
|
|
44
|
+
export { default as FooterHeading } from '@digigov/react-core/FooterHeading';
|
|
45
|
+
export { default as FooterImage } from '@digigov/react-core/FooterImage';
|
|
46
|
+
export { default as FooterInlineList } from '@digigov/react-core/FooterInlineList';
|
|
47
|
+
export { default as FooterInlineListItem } from '@digigov/react-core/FooterInlineListItem';
|
|
48
|
+
export { default as FooterLink } from '@digigov/react-core/FooterLink';
|
|
49
|
+
export { default as FooterList } from '@digigov/react-core/FooterList';
|
|
50
|
+
export { default as FooterListItem } from '@digigov/react-core/FooterListItem';
|
|
51
|
+
export { default as FooterMeta } from '@digigov/react-core/FooterMeta';
|
|
52
|
+
export { default as FooterMetaItem } from '@digigov/react-core/FooterMetaItem';
|
|
53
|
+
export { default as FooterNavigation } from '@digigov/react-core/FooterNavigation';
|
|
54
|
+
export { default as FooterSection } from '@digigov/react-core/FooterSection';
|
|
55
|
+
export { default as Field } from '@digigov/react-core/Field';
|
|
56
|
+
export { default as GovGRFooter } from '@digigov/react-core/GovGRFooter';
|
|
57
|
+
export { default as GovGRLogo } from '@digigov/react-core/GovGRLogo';
|
|
58
|
+
export { default as Grid } from '@digigov/react-core/Grid';
|
|
59
|
+
export { default as Header } from '@digigov/react-core/Header';
|
|
60
|
+
export { default as HeaderContent } from '@digigov/react-core/HeaderContent';
|
|
61
|
+
export { default as HeaderLogo } from '@digigov/react-core/HeaderLogo';
|
|
62
|
+
export { default as HeaderSecondaryLogo } from '@digigov/react-core/HeaderSecondaryLogo';
|
|
63
|
+
export { default as HeaderSection } from '@digigov/react-core/HeaderSection';
|
|
64
|
+
export { default as HeaderSubtitle } from '@digigov/react-core/HeaderSubtitle';
|
|
65
|
+
export { default as HeaderTitle } from '@digigov/react-core/HeaderTitle';
|
|
66
|
+
export { default as Heading } from '@digigov/react-core/Heading';
|
|
67
|
+
export { default as HeadingCaption } from '@digigov/react-core/HeadingCaption';
|
|
68
|
+
export { default as HellenicRepublicLogo } from '@digigov/react-core/HellenicRepublicLogo';
|
|
69
|
+
export { default as Hidden } from '@digigov/react-core/Hidden';
|
|
70
|
+
export { default as Hint } from '@digigov/react-core/Hint';
|
|
71
|
+
export { default as Label } from '@digigov/react-core/Label';
|
|
72
|
+
export { default as LabelTitle } from '@digigov/react-core/LabelTitle';
|
|
73
|
+
export { default as Layout } from '@digigov/react-core/Layout';
|
|
74
|
+
export { default as Link } from '@digigov/react-core/Link';
|
|
75
|
+
export { default as List } from '@digigov/react-core/List';
|
|
76
|
+
export { default as ListItem } from '@digigov/react-core/ListItem';
|
|
77
|
+
export { default as Main } from '@digigov/react-core/Main';
|
|
78
|
+
export { default as Masthead } from '@digigov/react-core/Masthead';
|
|
79
|
+
export { default as MastheadBody } from '@digigov/react-core/MastheadBody';
|
|
80
|
+
export { default as NavHorizontal } from '@digigov/react-core/NavHorizontal';
|
|
81
|
+
export { default as NavHorizontalList } from '@digigov/react-core/NavHorizontalList';
|
|
82
|
+
export { default as NavHorizontalListItem } from '@digigov/react-core/NavHorizontalListItem';
|
|
83
|
+
export { default as NavVertical } from '@digigov/react-core/NavVertical';
|
|
84
|
+
export { default as NavVerticalItem } from '@digigov/react-core/NavVerticalItem';
|
|
85
|
+
export { default as NormalText } from '@digigov/react-core/NormalText';
|
|
86
|
+
export { default as NotificationBanner } from '@digigov/react-core/NotificationBanner';
|
|
87
|
+
export { default as NotificationBannerContent } from '@digigov/react-core/NotificationBannerContent';
|
|
88
|
+
export { default as NotificationBannerHeader } from '@digigov/react-core/NotificationBannerHeader';
|
|
89
|
+
export { default as NotificationBannerHeading } from '@digigov/react-core/NotificationBannerHeading';
|
|
90
|
+
export { default as NotificationBannerLink } from '@digigov/react-core/NotificationBannerLink';
|
|
91
|
+
export { default as PageTitle } from '@digigov/react-core/PageTitle';
|
|
92
|
+
export { default as PageTitleCaption } from '@digigov/react-core/PageTitleCaption';
|
|
93
|
+
export { default as PageTitleHeading } from '@digigov/react-core/PageTitleHeading';
|
|
94
|
+
export { default as PageTitleSection } from '@digigov/react-core/PageTitleSection';
|
|
95
|
+
export { default as Paragraph } from '@digigov/react-core/Paragraph';
|
|
96
|
+
export { default as PhaseBanner } from '@digigov/react-core/PhaseBanner';
|
|
97
|
+
export { default as PhaseBannerTag } from '@digigov/react-core/PhaseBannerTag';
|
|
98
|
+
export { default as PhaseBannerText } from '@digigov/react-core/PhaseBannerText';
|
|
99
|
+
export { default as Radio } from '@digigov/react-core/Radio';
|
|
100
|
+
export { default as RadioItem } from '@digigov/react-core/RadioItem';
|
|
101
|
+
export { default as RadioConditional } from '@digigov/react-core/RadioConditional';
|
|
102
|
+
export { default as SectionBreak } from '@digigov/react-core/SectionBreak';
|
|
103
|
+
export { default as Select } from '@digigov/react-core/Select';
|
|
104
|
+
export { default as SelectOption } from '@digigov/react-core/SelectOption';
|
|
105
|
+
export { default as ServiceBadge } from '@digigov/react-core/ServiceBadge';
|
|
106
|
+
export { default as SummaryList } from '@digigov/react-core/SummaryList';
|
|
107
|
+
export { default as SummaryListItem } from '@digigov/react-core/SummaryListItem';
|
|
108
|
+
export { default as SummaryListItemAction } from '@digigov/react-core/SummaryListItemAction';
|
|
109
|
+
export { default as SummaryListItemKey } from '@digigov/react-core/SummaryListItemKey';
|
|
110
|
+
export { default as SummaryListItemValue } from '@digigov/react-core/SummaryListItemValue';
|
|
111
|
+
export { default as Table } from '@digigov/react-core/Table';
|
|
112
|
+
export { default as TableBody } from '@digigov/react-core/TableBody';
|
|
113
|
+
export { default as TableCaption } from '@digigov/react-core/TableCaption';
|
|
114
|
+
export { default as TableDataCell } from '@digigov/react-core/TableDataCell';
|
|
115
|
+
export { default as TableHead } from '@digigov/react-core/TableHead';
|
|
116
|
+
export { default as TableHeaderCell } from '@digigov/react-core/TableHeaderCell';
|
|
117
|
+
export { default as TableRow } from '@digigov/react-core/TableRow';
|
|
118
|
+
export { default as Tabs } from '@digigov/react-core/Tabs';
|
|
119
|
+
export { default as TabsHeading } from '@digigov/react-core/TabsHeading';
|
|
120
|
+
export { default as TabsList } from '@digigov/react-core/TabsList';
|
|
121
|
+
export { default as TabsListItem } from '@digigov/react-core/TabsListItem';
|
|
122
|
+
export { default as TabsPanel } from '@digigov/react-core/TabsPanel';
|
|
123
|
+
export { default as TextArea } from '@digigov/react-core/TextArea';
|
|
124
|
+
export { default as TextInput } from '@digigov/react-core/TextInput';
|
|
125
|
+
export { default as Top } from '@digigov/react-core/Top';
|
|
126
|
+
export { default as VisuallyHidden } from '@digigov/react-core/VisuallyHidden';
|
|
127
|
+
export { default as WarningText } from '@digigov/react-core/WarningText';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digigov/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.1",
|
|
4
4
|
"description": "@digigov reusable components toolkit",
|
|
5
5
|
"module": "./esm/index.js",
|
|
6
6
|
"publishConfig": {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"clsx": "1.1.1",
|
|
19
19
|
"react": "16.14.0",
|
|
20
20
|
"react-dom": "16.14.0",
|
|
21
|
-
"@digigov/react-core": "0.
|
|
21
|
+
"@digigov/react-core": "0.5.1"
|
|
22
22
|
},
|
|
23
23
|
"gitHead": "c903a46306f77f55ad7fc4d2e274006f39a6c871",
|
|
24
24
|
"private": false,
|
package/typography/Caption.js
CHANGED
|
@@ -13,7 +13,7 @@ var _withDeprecation = _interopRequireDefault(require("@digigov/ui/utils/withDep
|
|
|
13
13
|
|
|
14
14
|
var Caption = (0, _withDeprecation["default"])(_HeadingCaption["default"], {
|
|
15
15
|
name: 'Caption',
|
|
16
|
-
rename: '
|
|
16
|
+
rename: 'HeadingCaption'
|
|
17
17
|
});
|
|
18
18
|
exports.Caption = Caption;
|
|
19
19
|
var _default = Caption;
|
package/typography/Title.js
CHANGED
|
@@ -37,7 +37,7 @@ var Title = (0, _withDeprecation["default"])(function (_ref) {
|
|
|
37
37
|
}, props), children);
|
|
38
38
|
}, {
|
|
39
39
|
name: 'Title',
|
|
40
|
-
rename: '
|
|
40
|
+
rename: 'Heading',
|
|
41
41
|
props: {
|
|
42
42
|
dense: {
|
|
43
43
|
error: true
|
package/utils/withDeprecation.js
CHANGED
|
@@ -7,6 +7,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports["default"] = withDeprecation;
|
|
9
9
|
|
|
10
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
11
|
+
|
|
10
12
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
11
13
|
|
|
12
14
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
@@ -39,9 +41,11 @@ var DigigovError = /*#__PURE__*/function (_Error) {
|
|
|
39
41
|
return _this;
|
|
40
42
|
}
|
|
41
43
|
|
|
42
|
-
return DigigovError;
|
|
44
|
+
return (0, _createClass2["default"])(DigigovError);
|
|
43
45
|
}( /*#__PURE__*/(0, _wrapNativeSuper2["default"])(Error));
|
|
44
46
|
|
|
47
|
+
var loggedDeprecations = new Set();
|
|
48
|
+
|
|
45
49
|
var handleErrorWarning = function handleErrorWarning(componentName, name, _ref, type) {
|
|
46
50
|
var error = _ref.error,
|
|
47
51
|
warning = _ref.warning;
|
|
@@ -64,9 +68,16 @@ function withDeprecation(Component, deprecations) {
|
|
|
64
68
|
|
|
65
69
|
var componentName = // eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
66
70
|
// @ts-ignore
|
|
67
|
-
deprecations.name || Component.name || (Component === null || Component === void 0 ? void 0 : (_Component$render = Component.render) === null || _Component$render === void 0 ? void 0 : _Component$render.name);
|
|
71
|
+
deprecations.name || Component.name || (Component === null || Component === void 0 ? void 0 : (_Component$render = Component.render) === null || _Component$render === void 0 ? void 0 : _Component$render.name);
|
|
72
|
+
|
|
73
|
+
if (loggedDeprecations.has(componentName)) {
|
|
74
|
+
return Component;
|
|
75
|
+
} else {
|
|
76
|
+
loggedDeprecations.add(componentName);
|
|
77
|
+
} // eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
68
78
|
// @ts-ignore
|
|
69
79
|
|
|
80
|
+
|
|
70
81
|
return function withDeprecationComponent(props) {
|
|
71
82
|
if (deprecations.rename) {
|
|
72
83
|
console.warn("\u267B\uFE0F ".concat(componentName, " is renamed to ").concat(deprecations.rename, "\n"));
|