@digigov/react-core 0.23.1 → 0.25.0
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/AccessibilityIcon/index.d.ts +0 -6
- package/AccessibilityTextIcon/index.d.ts +0 -6
- package/AccordionSection/index.d.ts +0 -9
- package/AccordionSectionSummary/index.d.ts +1 -2
- package/AccordionSectionSummary/index.js +2 -5
- package/ArrowIcon/index.d.ts +0 -5
- package/BackLink/index.d.ts +0 -4
- package/Base/index.d.ts +1 -2
- package/BurgerIcon/index.d.ts +0 -6
- package/Button/index.d.ts +0 -4
- package/CHANGELOG.md +21 -1
- package/CallToAction/index.d.ts +0 -1
- package/CaretContainer/__snapshots__/index.test.tsx.snap +16 -0
- package/CaretContainer/index.d.ts +11 -0
- package/CaretContainer/index.js +40 -0
- package/CaretContainer/index.test.d.ts +1 -0
- package/CaretContainer/index.test.js +15 -0
- package/CaretIcon/index.d.ts +0 -1
- package/CheckIcon/index.d.ts +0 -6
- package/CheckboxConditional/index.js +5 -5
- package/CheckboxItem/index.d.ts +0 -13
- package/CheckboxItem/index.js +5 -4
- package/CloseIcon/index.d.ts +0 -6
- package/DateInputItem/index.d.ts +0 -4
- package/FileUpload/index.d.ts +0 -8
- package/FooterImage/index.d.ts +0 -4
- package/FooterLink/index.d.ts +0 -4
- package/FooterLink/index.js +2 -4
- package/FooterList/index.d.ts +1 -1
- package/GlobeIcon/index.d.ts +0 -6
- package/Grid/index.d.ts +1 -2
- package/HeaderLogo/index.d.ts +0 -4
- package/HeaderSecondaryLogo/index.d.ts +0 -4
- package/HeaderTitle/index.d.ts +0 -4
- package/HeaderTitle/index.js +1 -1
- package/HellenicRepublicLogo/index.d.ts +0 -5
- package/Hidden/index.d.ts +0 -1
- package/MoreVertIcon/index.d.ts +0 -6
- package/NavListItemLink/index.d.ts +0 -5
- package/NotificationBannerLink/index.d.ts +0 -4
- package/NotificationBannerLink/index.js +3 -3
- package/PhaseBannerHeaderContainer/index.d.ts +1 -3
- package/RadioConditional/index.js +5 -5
- package/RadioItem/index.d.ts +0 -13
- package/RadioItem/index.js +4 -2
- package/SelectContainer/index.d.ts +0 -4
- package/SelectOption/index.d.ts +0 -8
- package/SingleCharacterInputItem/index.d.ts +0 -5
- package/SkipLink/index.d.ts +0 -1
- package/Table/index.d.ts +7 -1
- package/Table/index.js +4 -2
- package/TabsListItem/index.d.ts +0 -4
- package/TextArea/index.d.ts +0 -8
- package/TextInput/index.d.ts +0 -4
- package/UncheckIcon/index.d.ts +0 -6
- package/es/AccordionSectionSummary/index.js +2 -5
- package/es/CaretContainer/__snapshots__/index.test.tsx.snap +16 -0
- package/es/CaretContainer/index.js +24 -0
- package/es/CaretContainer/index.test.js +9 -0
- package/es/CheckboxConditional/index.js +3 -5
- package/es/CheckboxItem/index.js +4 -4
- package/es/FooterLink/index.js +2 -4
- package/es/HeaderTitle/index.js +1 -1
- package/es/NotificationBannerLink/index.js +3 -3
- package/es/RadioConditional/index.js +3 -5
- package/es/RadioItem/index.js +3 -2
- package/es/Table/index.js +4 -2
- package/es/index.js +1 -0
- package/es/registry.js +2 -0
- package/esm/AccordionSectionSummary/index.js +2 -5
- package/esm/CaretContainer/__snapshots__/index.test.tsx.snap +16 -0
- package/esm/CaretContainer/index.js +24 -0
- package/esm/CaretContainer/index.test.js +9 -0
- package/esm/CheckboxConditional/index.js +3 -5
- package/esm/CheckboxItem/index.js +4 -4
- package/esm/FooterLink/index.js +2 -4
- package/esm/HeaderTitle/index.js +1 -1
- package/esm/NotificationBannerLink/index.js +3 -3
- package/esm/RadioConditional/index.js +3 -5
- package/esm/RadioItem/index.js +3 -2
- package/esm/Table/index.js +4 -2
- package/esm/index.js +2 -1
- package/esm/registry.js +2 -0
- package/index.d.ts +1 -0
- package/index.js +13 -0
- package/package.json +2 -2
- package/registry.d.ts +1 -0
- package/registry.js +3 -0
- package/src/AccessibilityIcon/index.tsx +2 -9
- package/src/AccessibilityTextIcon/index.tsx +1 -8
- package/src/AccordionSection/index.tsx +1 -7
- package/src/AccordionSectionSummary/index.tsx +2 -8
- package/src/ArrowIcon/index.tsx +0 -5
- package/src/BackLink/index.tsx +2 -7
- package/src/Base/index.tsx +1 -1
- package/src/BurgerIcon/index.tsx +0 -6
- package/src/Button/index.tsx +1 -6
- package/src/CallToAction/index.tsx +5 -4
- package/src/CaretContainer/__snapshots__/index.test.tsx.snap +16 -0
- package/src/CaretContainer/index.test.tsx +8 -0
- package/src/CaretContainer/index.tsx +29 -0
- package/src/CaretIcon/index.tsx +0 -1
- package/src/CheckIcon/index.tsx +2 -8
- package/src/CheckboxConditional/index.tsx +5 -13
- package/src/CheckboxItem/index.tsx +6 -20
- package/src/CloseIcon/index.tsx +2 -8
- package/src/DateInputItem/index.tsx +0 -4
- package/src/Fieldset/index.tsx +1 -2
- package/src/FileUpload/index.tsx +7 -12
- package/src/FooterImage/index.tsx +1 -6
- package/src/FooterLink/index.tsx +2 -8
- package/src/FooterList/index.tsx +1 -1
- package/src/GlobeIcon/index.tsx +0 -6
- package/src/Grid/index.tsx +1 -2
- package/src/HeaderLogo/index.tsx +0 -4
- package/src/HeaderSecondaryLogo/index.tsx +0 -6
- package/src/HeaderTitle/index.tsx +2 -7
- package/src/HellenicRepublicLogo/index.tsx +24 -29
- package/src/Hidden/index.tsx +0 -1
- package/src/MoreVertIcon/index.tsx +1 -8
- package/src/NavListItemLink/index.tsx +0 -5
- package/src/NotificationBannerLink/index.tsx +2 -7
- package/src/PhaseBannerHeaderContainer/index.tsx +1 -4
- package/src/RadioConditional/index.tsx +5 -13
- package/src/RadioItem/index.tsx +5 -19
- package/src/SelectContainer/index.tsx +1 -6
- package/src/SelectOption/index.tsx +1 -11
- package/src/SingleCharacterInputItem/index.tsx +0 -5
- package/src/SkipLink/index.tsx +1 -3
- package/src/Table/index.tsx +10 -0
- package/src/TabsListItem/index.tsx +0 -5
- package/src/TextArea/index.tsx +0 -10
- package/src/TextInput/index.tsx +0 -5
- package/src/UncheckIcon/index.tsx +1 -8
- package/src/index.ts +1 -0
- package/src/registry.js +2 -0
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { SvgIconProps } from '@digigov/react-core/SvgIcon';
|
|
3
3
|
export interface AccessibilityIconProps extends SvgIconProps {
|
|
4
|
-
/**
|
|
5
|
-
* ref is optional.
|
|
6
|
-
* ref prop declares the reference of the svg icon component.
|
|
7
|
-
* It can be used to to access the DOM element and the React element.
|
|
8
|
-
*/
|
|
9
|
-
ref?: React.Ref<SVGSVGElement>;
|
|
10
4
|
}
|
|
11
5
|
/**
|
|
12
6
|
* Use AccessibilityIcon component when you need to show web accessibility options.
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { SvgIconProps } from '@digigov/react-core/SvgIcon';
|
|
3
3
|
export interface AccessibilityTextIconProps extends SvgIconProps {
|
|
4
|
-
/**
|
|
5
|
-
* ref is optional.
|
|
6
|
-
* ref prop declares the reference of the svg icon component.
|
|
7
|
-
* It can be used to to access the DOM element and the React element.
|
|
8
|
-
*/
|
|
9
|
-
ref?: React.Ref<SVGSVGElement>;
|
|
10
4
|
}
|
|
11
5
|
/**
|
|
12
6
|
* Use AccessibilityTextIcon component when you need to show web accessibility options about text.
|
|
@@ -1,15 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { BaseProps } from '@digigov/react-core/Base';
|
|
3
3
|
export interface AccordionSectionProps extends BaseProps<'details'> {
|
|
4
|
-
/**
|
|
5
|
-
* open is optional. The default value is false.
|
|
6
|
-
* Add this prop when an AccordionSection should be open.
|
|
7
|
-
*/
|
|
8
|
-
open?: boolean;
|
|
9
|
-
/**
|
|
10
|
-
* border is optional. The default value is true.
|
|
11
|
-
* In order to remove top and bottom border, change this value to false.
|
|
12
|
-
*/
|
|
13
4
|
border?: boolean;
|
|
14
5
|
}
|
|
15
6
|
/**
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { BaseProps } from '@digigov/react-core/Base';
|
|
3
3
|
export interface AccordionSectionSummaryProps extends BaseProps<'summary'> {
|
|
4
|
-
ariaLevel?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
5
4
|
}
|
|
6
5
|
/**
|
|
7
6
|
* AccordionSectionSummary is used as a wrapper component for AccordionSectionSummaryHeading.
|
|
8
7
|
*/
|
|
9
|
-
export declare const AccordionSectionSummary: React.ForwardRefExoticComponent<Pick<AccordionSectionSummaryProps, "slot" | "style" | "title" | "as" | "className" | "color" | "id" | "lang" | "role" | "tabIndex" | "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" | "children" | "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" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "margin" | "marginTop" | "marginBottom" | "marginLeft" | "marginRight" | "padding" | "paddingTop" | "paddingBottom" | "paddingLeft" | "paddingRight" | "printHidden" | "xsUpHidden" | "smUpHidden" | "mdUpHidden" | "lgUpHidden" | "xlUpHidden" | "xsHidden" | "smHidden" | "mdHidden" | "lgHidden" | "xlHidden"
|
|
8
|
+
export declare const AccordionSectionSummary: React.ForwardRefExoticComponent<Pick<AccordionSectionSummaryProps, "slot" | "style" | "title" | "as" | "className" | "color" | "id" | "lang" | "role" | "tabIndex" | "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" | "children" | "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" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "margin" | "marginTop" | "marginBottom" | "marginLeft" | "marginRight" | "padding" | "paddingTop" | "paddingBottom" | "paddingLeft" | "paddingRight" | "printHidden" | "xsUpHidden" | "smUpHidden" | "mdUpHidden" | "lgUpHidden" | "xlUpHidden" | "xsHidden" | "smHidden" | "mdHidden" | "lgHidden" | "xlHidden"> & React.RefAttributes<HTMLDivElement>>;
|
|
10
9
|
export default AccordionSectionSummary;
|
|
@@ -17,23 +17,20 @@ var _Base = _interopRequireDefault(require("@digigov/react-core/Base"));
|
|
|
17
17
|
|
|
18
18
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
19
19
|
|
|
20
|
-
var _excluded = ["className", "
|
|
20
|
+
var _excluded = ["className", "children"];
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* AccordionSectionSummary is used as a wrapper component for AccordionSectionSummaryHeading.
|
|
24
24
|
*/
|
|
25
25
|
var AccordionSectionSummary = /*#__PURE__*/_react["default"].forwardRef(function AccordionSectionSummary(_ref, ref) {
|
|
26
26
|
var className = _ref.className,
|
|
27
|
-
_ref$ariaLevel = _ref.ariaLevel,
|
|
28
|
-
ariaLevel = _ref$ariaLevel === void 0 ? 2 : _ref$ariaLevel,
|
|
29
27
|
children = _ref.children,
|
|
30
28
|
props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
|
|
31
29
|
return /*#__PURE__*/_react["default"].createElement(_Base["default"], (0, _extends2["default"])({
|
|
32
30
|
as: "summary",
|
|
33
31
|
ref: ref,
|
|
34
32
|
className: (0, _clsx["default"])(className, true && 'govgr-accordion__section-summary'),
|
|
35
|
-
role: "heading"
|
|
36
|
-
"aria-level": ariaLevel
|
|
33
|
+
role: "heading"
|
|
37
34
|
}, props), children);
|
|
38
35
|
});
|
|
39
36
|
|
package/ArrowIcon/index.d.ts
CHANGED
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { SvgIconProps } from '@digigov/react-core/SvgIcon';
|
|
3
3
|
export interface ArrowIconProps extends SvgIconProps {
|
|
4
|
-
ref?: React.Ref<SVGSVGElement>;
|
|
5
|
-
/**
|
|
6
|
-
* direction is optional.
|
|
7
|
-
* direction prop declares the direction of the svg icon.
|
|
8
|
-
*/
|
|
9
4
|
direction?: 'up' | 'right' | 'down' | 'left';
|
|
10
5
|
}
|
|
11
6
|
/**
|
package/BackLink/index.d.ts
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { BaseProps } from '@digigov/react-core/Base';
|
|
3
3
|
export interface BackLinkProps extends BaseProps<'a'> {
|
|
4
|
-
/**
|
|
5
|
-
* href is optional.
|
|
6
|
-
*/
|
|
7
|
-
href?: string;
|
|
8
4
|
}
|
|
9
5
|
/**
|
|
10
6
|
* Use BackLink component to help users go back to the previous page in a multi-page transaction.
|
package/Base/index.d.ts
CHANGED
|
@@ -5,9 +5,8 @@ declare type AsProp<C extends React.ElementType> = {
|
|
|
5
5
|
declare type PropsToOmit<C extends React.ElementType, P> = keyof (AsProp<C> & P);
|
|
6
6
|
declare type PolymorphicComponentProp<C extends React.ElementType, Props = Record<string, unknown>> = React.PropsWithChildren<Props & AsProp<C>> & Omit<React.ComponentPropsWithoutRef<C>, PropsToOmit<C, Props>>;
|
|
7
7
|
declare type PolymorphicComponentPropWithRef<C extends React.ElementType, Props = Record<string, unknown>> = PolymorphicComponentProp<C, Props> & {
|
|
8
|
-
ref?:
|
|
8
|
+
ref?: any;
|
|
9
9
|
};
|
|
10
|
-
declare type PolymorphicRef<C extends React.ElementType> = React.ComponentPropsWithRef<C>['ref'];
|
|
11
10
|
/**
|
|
12
11
|
* This is the updated component props using PolymorphicComponentPropWithRef
|
|
13
12
|
*/
|
package/BurgerIcon/index.d.ts
CHANGED
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { SvgIconProps } from '@digigov/react-core/SvgIcon';
|
|
3
3
|
export interface BurgerIconProps extends SvgIconProps {
|
|
4
|
-
/**
|
|
5
|
-
* ref is optional.
|
|
6
|
-
* ref prop declares the reference of the svg icon component.
|
|
7
|
-
* It can be used to to access the DOM element and the React element.
|
|
8
|
-
*/
|
|
9
|
-
ref?: React.Ref<SVGSVGElement>;
|
|
10
4
|
/**
|
|
11
5
|
* active is optional.
|
|
12
6
|
* The default is 'false'.
|
package/Button/index.d.ts
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,26 @@
|
|
|
1
1
|
# Change Log - @digigov/react-core
|
|
2
2
|
|
|
3
|
-
This log was last generated on Tue,
|
|
3
|
+
This log was last generated on Tue, 13 Jun 2023 09:12:26 GMT and should not be manually modified.
|
|
4
|
+
|
|
5
|
+
## 0.25.0
|
|
6
|
+
Tue, 13 Jun 2023 09:12:26 GMT
|
|
7
|
+
|
|
8
|
+
### Minor changes
|
|
9
|
+
|
|
10
|
+
- Add new "stacked" prop to Table component
|
|
11
|
+
|
|
12
|
+
### Patches
|
|
13
|
+
|
|
14
|
+
- Remove unnecessary props from react core components
|
|
15
|
+
- Change html tags with Base or React core components
|
|
16
|
+
- fix ref type handling
|
|
17
|
+
|
|
18
|
+
## 0.24.0
|
|
19
|
+
Fri, 19 May 2023 13:15:06 GMT
|
|
20
|
+
|
|
21
|
+
### Minor changes
|
|
22
|
+
|
|
23
|
+
- Create CaretContainer component
|
|
4
24
|
|
|
5
25
|
## 0.23.1
|
|
6
26
|
Tue, 16 May 2023 13:42:28 GMT
|
package/CallToAction/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ButtonLinkProps } from '@digigov/react-core/ButtonLink';
|
|
3
3
|
export interface CallToActionProps extends ButtonLinkProps {
|
|
4
|
-
ref?: React.Ref<HTMLAnchorElement>;
|
|
5
4
|
}
|
|
6
5
|
/**
|
|
7
6
|
* Use this button for the main call to action on your service’s start page.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`renders the CaretContainer with no props 1`] = `
|
|
4
|
+
<ForwardRef(CaretContainer)>
|
|
5
|
+
<ForwardRef(Base)
|
|
6
|
+
as="div"
|
|
7
|
+
className="govgr-caret-container"
|
|
8
|
+
>
|
|
9
|
+
<div
|
|
10
|
+
className="govgr-caret-container"
|
|
11
|
+
>
|
|
12
|
+
hello
|
|
13
|
+
</div>
|
|
14
|
+
</ForwardRef(Base)>
|
|
15
|
+
</ForwardRef(CaretContainer)>
|
|
16
|
+
`;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BaseProps } from '@digigov/react-core/Base';
|
|
3
|
+
export interface CaretContainerProps extends BaseProps<'div'> {
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
* Use CaretContainer to wrap CaretIcon like ascending descending style.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
export declare const CaretContainer: React.ForwardRefExoticComponent<Pick<CaretContainerProps, "slot" | "style" | "title" | "as" | "className" | "color" | "id" | "lang" | "role" | "tabIndex" | "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" | "children" | "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" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "margin" | "marginTop" | "marginBottom" | "marginLeft" | "marginRight" | "padding" | "paddingTop" | "paddingBottom" | "paddingLeft" | "paddingRight" | "printHidden" | "xsUpHidden" | "smUpHidden" | "mdUpHidden" | "lgUpHidden" | "xlUpHidden" | "xsHidden" | "smHidden" | "mdHidden" | "lgHidden" | "xlHidden"> & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
export default CaretContainer;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = exports.CaretContainer = void 0;
|
|
9
|
+
|
|
10
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
|
+
|
|
12
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
13
|
+
|
|
14
|
+
var _react = _interopRequireDefault(require("react"));
|
|
15
|
+
|
|
16
|
+
var _Base = _interopRequireDefault(require("@digigov/react-core/Base"));
|
|
17
|
+
|
|
18
|
+
var _clsx = _interopRequireDefault(require("clsx"));
|
|
19
|
+
|
|
20
|
+
var _excluded = ["className", "children"];
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* Use CaretContainer to wrap CaretIcon like ascending descending style.
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
var CaretContainer = /*#__PURE__*/_react["default"].forwardRef(function CaretContainer(_ref, ref) {
|
|
28
|
+
var className = _ref.className,
|
|
29
|
+
children = _ref.children,
|
|
30
|
+
props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
|
|
31
|
+
return /*#__PURE__*/_react["default"].createElement(_Base["default"], (0, _extends2["default"])({
|
|
32
|
+
as: "div",
|
|
33
|
+
ref: ref,
|
|
34
|
+
className: (0, _clsx["default"])(className, true && 'govgr-caret-container')
|
|
35
|
+
}, props), children);
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
exports.CaretContainer = CaretContainer;
|
|
39
|
+
var _default = CaretContainer;
|
|
40
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
var _react = _interopRequireDefault(require("react"));
|
|
6
|
+
|
|
7
|
+
var _enzyme = require("enzyme");
|
|
8
|
+
|
|
9
|
+
var _CaretContainer = _interopRequireDefault(require("@digigov/react-core/CaretContainer"));
|
|
10
|
+
|
|
11
|
+
var _ref = /*#__PURE__*/_react["default"].createElement(_CaretContainer["default"], null, "hello");
|
|
12
|
+
|
|
13
|
+
it('renders the CaretContainer with no props', function () {
|
|
14
|
+
expect((0, _enzyme.mount)(_ref)).toMatchSnapshot();
|
|
15
|
+
});
|
package/CaretIcon/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { SvgIconProps } from '@digigov/react-core/SvgIcon';
|
|
3
3
|
export interface CaretIconProps extends SvgIconProps {
|
|
4
|
-
ref?: React.Ref<SVGSVGElement>;
|
|
5
4
|
/**
|
|
6
5
|
* direction is optional.
|
|
7
6
|
* direction prop declares the direction of the svg icon.
|
package/CheckIcon/index.d.ts
CHANGED
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { SvgIconProps } from '@digigov/react-core/SvgIcon';
|
|
3
3
|
export interface CheckIconProps extends SvgIconProps {
|
|
4
|
-
/**
|
|
5
|
-
* ref is optional.
|
|
6
|
-
* ref prop declares the reference of the svg icon component.
|
|
7
|
-
* It can be used to to access the DOM element and the React element.
|
|
8
|
-
*/
|
|
9
|
-
ref?: React.Ref<SVGSVGElement>;
|
|
10
4
|
}
|
|
11
5
|
/**
|
|
12
6
|
* Use CheckIcon component when you need a check icon.
|
|
@@ -15,6 +15,10 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
15
15
|
|
|
16
16
|
var _Base = _interopRequireDefault(require("@digigov/react-core/Base"));
|
|
17
17
|
|
|
18
|
+
var _LabelContainer = _interopRequireDefault(require("@digigov/react-core/LabelContainer"));
|
|
19
|
+
|
|
20
|
+
var _FieldContainer = _interopRequireDefault(require("@digigov/react-core/FieldContainer"));
|
|
21
|
+
|
|
18
22
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
19
23
|
|
|
20
24
|
var _excluded = ["className", "children"];
|
|
@@ -32,11 +36,7 @@ var CheckboxConditional = /*#__PURE__*/_react["default"].forwardRef(function Che
|
|
|
32
36
|
as: "div",
|
|
33
37
|
ref: ref,
|
|
34
38
|
className: (0, _clsx["default"])(className, true && 'govgr-checkboxes__conditional')
|
|
35
|
-
}, props), /*#__PURE__*/_react["default"].createElement("
|
|
36
|
-
className: (0, _clsx["default"])(true && 'govgr-field')
|
|
37
|
-
}, /*#__PURE__*/_react["default"].createElement("label", {
|
|
38
|
-
className: (0, _clsx["default"])(true && 'govgr-label')
|
|
39
|
-
}, children)));
|
|
39
|
+
}, props), /*#__PURE__*/_react["default"].createElement(_FieldContainer["default"], null, /*#__PURE__*/_react["default"].createElement(_LabelContainer["default"], null, children)));
|
|
40
40
|
});
|
|
41
41
|
|
|
42
42
|
exports.CheckboxConditional = CheckboxConditional;
|
package/CheckboxItem/index.d.ts
CHANGED
|
@@ -1,19 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { BaseProps } from '@digigov/react-core/Base';
|
|
3
3
|
export interface CheckboxItemProps extends BaseProps<'input'> {
|
|
4
|
-
/**
|
|
5
|
-
* Name property is optional and it contains a single value which describes the name of the <input> element.
|
|
6
|
-
*/
|
|
7
|
-
name?: string;
|
|
8
|
-
/**
|
|
9
|
-
* Value property is optional and it specifies the value of an <input> element.
|
|
10
|
-
*/
|
|
11
|
-
value?: string;
|
|
12
|
-
/**
|
|
13
|
-
* disabled prop disables the checkbox input.
|
|
14
|
-
* disabled property is optional and it is false by default.
|
|
15
|
-
*/
|
|
16
|
-
disabled?: boolean;
|
|
17
4
|
}
|
|
18
5
|
/**
|
|
19
6
|
* Details for the CheckboxItem.
|
package/CheckboxItem/index.js
CHANGED
|
@@ -15,6 +15,8 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
15
15
|
|
|
16
16
|
var _Base = _interopRequireDefault(require("@digigov/react-core/Base"));
|
|
17
17
|
|
|
18
|
+
var _LabelContainer = _interopRequireDefault(require("@digigov/react-core/LabelContainer"));
|
|
19
|
+
|
|
18
20
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
19
21
|
|
|
20
22
|
var _excluded = ["name", "value", "className", "disabled", "children"];
|
|
@@ -28,14 +30,13 @@ var CheckboxItem = /*#__PURE__*/_react["default"].forwardRef(function CheckboxIt
|
|
|
28
30
|
var name = _ref.name,
|
|
29
31
|
value = _ref.value,
|
|
30
32
|
className = _ref.className,
|
|
31
|
-
|
|
32
|
-
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
33
|
+
disabled = _ref.disabled,
|
|
33
34
|
children = _ref.children,
|
|
34
35
|
props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
|
|
35
36
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
36
37
|
className: (0, _clsx["default"])(className, true && 'govgr-checkboxes__item')
|
|
37
|
-
}, /*#__PURE__*/_react["default"].createElement("
|
|
38
|
-
className: (0, _clsx["default"])(disabled === true && 'govgr-checkboxes__label--disabled', true && 'govgr-
|
|
38
|
+
}, /*#__PURE__*/_react["default"].createElement(_LabelContainer["default"], {
|
|
39
|
+
className: (0, _clsx["default"])(disabled === true && 'govgr-checkboxes__label--disabled', true && 'govgr-checkboxes__label')
|
|
39
40
|
}, children, /*#__PURE__*/_react["default"].createElement(_Base["default"], (0, _extends2["default"])({
|
|
40
41
|
as: "input",
|
|
41
42
|
ref: ref,
|
package/CloseIcon/index.d.ts
CHANGED
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { SvgIconProps } from '@digigov/react-core/SvgIcon';
|
|
3
3
|
export interface CloseIconProps extends SvgIconProps {
|
|
4
|
-
/**
|
|
5
|
-
* ref is optional.
|
|
6
|
-
* ref prop declares the reference of the svg icon component.
|
|
7
|
-
* It can be used to to access the DOM element and the React element.
|
|
8
|
-
*/
|
|
9
|
-
ref?: React.Ref<SVGSVGElement>;
|
|
10
4
|
}
|
|
11
5
|
/**
|
|
12
6
|
* CloseIcon component is used to add close icon.
|
package/DateInputItem/index.d.ts
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { BaseProps } from '@digigov/react-core/Base';
|
|
3
3
|
export interface DateInputItemProps extends BaseProps<'input'> {
|
|
4
|
-
/**
|
|
5
|
-
* Name property is optional and it contains a single value which describes the name of the <input> element.
|
|
6
|
-
*/
|
|
7
|
-
name?: string;
|
|
8
4
|
/**
|
|
9
5
|
* Width property is optional.
|
|
10
6
|
* Use this property for year field to grow width.
|
package/FileUpload/index.d.ts
CHANGED
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { BaseProps } from '@digigov/react-core/Base';
|
|
3
3
|
export interface FileUploadProps extends BaseProps<'input'> {
|
|
4
|
-
/**
|
|
5
|
-
* name is optional.
|
|
6
|
-
*/
|
|
7
|
-
name?: string;
|
|
8
|
-
/**
|
|
9
|
-
* disabled is optional.
|
|
10
|
-
*/
|
|
11
|
-
disabled?: boolean;
|
|
12
4
|
/**
|
|
13
5
|
* hasFiles is optional.
|
|
14
6
|
*/
|
package/FooterImage/index.d.ts
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { BaseProps } from '@digigov/react-core/Base';
|
|
3
3
|
export interface FooterImageProps extends BaseProps<'img'> {
|
|
4
|
-
/**
|
|
5
|
-
* altText is optional.
|
|
6
|
-
*/
|
|
7
|
-
alt?: string;
|
|
8
4
|
}
|
|
9
5
|
/**
|
|
10
6
|
* FooterImage is a component for logos and images in the footer.
|
package/FooterLink/index.d.ts
CHANGED
package/FooterLink/index.js
CHANGED
|
@@ -17,19 +17,17 @@ var _Base = _interopRequireDefault(require("@digigov/react-core/Base"));
|
|
|
17
17
|
|
|
18
18
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
19
19
|
|
|
20
|
-
var _excluded = ["
|
|
20
|
+
var _excluded = ["className", "children"];
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* FooterLink in used inside the Footer component.
|
|
24
24
|
*/
|
|
25
25
|
var FooterLink = /*#__PURE__*/_react["default"].forwardRef(function FooterLink(_ref, ref) {
|
|
26
|
-
var
|
|
27
|
-
className = _ref.className,
|
|
26
|
+
var className = _ref.className,
|
|
28
27
|
children = _ref.children,
|
|
29
28
|
props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
|
|
30
29
|
return /*#__PURE__*/_react["default"].createElement(_Base["default"], (0, _extends2["default"])({
|
|
31
30
|
as: "a",
|
|
32
|
-
href: href,
|
|
33
31
|
ref: ref,
|
|
34
32
|
className: (0, _clsx["default"])(className, true && 'govgr-footer__link')
|
|
35
33
|
}, props), children);
|
package/FooterList/index.d.ts
CHANGED
package/GlobeIcon/index.d.ts
CHANGED
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { SvgIconProps } from '@digigov/react-core/SvgIcon';
|
|
3
3
|
export interface GlobeIconProps extends SvgIconProps {
|
|
4
|
-
/**
|
|
5
|
-
* ref is optional.
|
|
6
|
-
* ref prop declares the reference of the svg icon component.
|
|
7
|
-
* It can be used to to access the DOM element and the React element.
|
|
8
|
-
*/
|
|
9
|
-
ref?: React.Ref<SVGSVGElement>;
|
|
10
4
|
/**
|
|
11
5
|
* active is optional.
|
|
12
6
|
* The default is 'false'.
|
package/Grid/index.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ import React from 'react';
|
|
|
2
2
|
import { BaseProps } from '@digigov/react-core/Base';
|
|
3
3
|
declare type GridValues = 'auto' | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
4
4
|
export interface GridProps extends BaseProps<'div' | 'aside' | 'main'> {
|
|
5
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
6
5
|
container?: boolean;
|
|
7
6
|
item?: boolean;
|
|
8
7
|
inline?: boolean;
|
|
@@ -16,5 +15,5 @@ export interface GridProps extends BaseProps<'div' | 'aside' | 'main'> {
|
|
|
16
15
|
/**
|
|
17
16
|
* Grid is used to arrange other components in complex grid configurations of rows and columns.
|
|
18
17
|
*/
|
|
19
|
-
export declare const Grid: React.ForwardRefExoticComponent<Pick<GridProps, "slot" | "style" | "title" | "as" | "className" | "color" | "id" | "lang" | "role" | "tabIndex" | "spacing" | "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" | "children" | "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" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "margin" | "marginTop" | "marginBottom" | "marginLeft" | "marginRight" | "padding" | "paddingTop" | "paddingBottom" | "paddingLeft" | "paddingRight" | "printHidden" | "xsUpHidden" | "smUpHidden" | "mdUpHidden" | "lgUpHidden" | "xlUpHidden" | "xsHidden" | "smHidden" | "mdHidden" | "lgHidden" | "xlHidden" | "inline" | "xl" | "container" | "item" | "xs" | "sm" | "md" | "lg"> & React.RefAttributes<
|
|
18
|
+
export declare const Grid: React.ForwardRefExoticComponent<Pick<GridProps, "slot" | "style" | "title" | "as" | "className" | "color" | "id" | "lang" | "role" | "tabIndex" | "spacing" | "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" | "children" | "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" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "margin" | "marginTop" | "marginBottom" | "marginLeft" | "marginRight" | "padding" | "paddingTop" | "paddingBottom" | "paddingLeft" | "paddingRight" | "printHidden" | "xsUpHidden" | "smUpHidden" | "mdUpHidden" | "lgUpHidden" | "xlUpHidden" | "xsHidden" | "smHidden" | "mdHidden" | "lgHidden" | "xlHidden" | "inline" | "xl" | "container" | "item" | "xs" | "sm" | "md" | "lg"> & React.RefAttributes<HTMLElement>>;
|
|
20
19
|
export default Grid;
|
package/HeaderLogo/index.d.ts
CHANGED
|
@@ -5,10 +5,6 @@ export interface HeaderSecondaryLogoProps extends BaseProps<'a'> {
|
|
|
5
5
|
* src is needed to provide the url that we get the logo from.
|
|
6
6
|
*/
|
|
7
7
|
src: string;
|
|
8
|
-
/**
|
|
9
|
-
* href provides the url that the logo leads to if clicked.
|
|
10
|
-
*/
|
|
11
|
-
href?: string;
|
|
12
8
|
/**
|
|
13
9
|
* href provides the alternative text for the img tag.
|
|
14
10
|
*/
|
package/HeaderTitle/index.d.ts
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { BaseProps } from '@digigov/react-core/Base';
|
|
3
3
|
export interface HeaderTitleProps extends BaseProps<'a'> {
|
|
4
|
-
/**
|
|
5
|
-
* href is optionaland is used to provide the redirection url after clicking on the HeaderTitle.
|
|
6
|
-
*/
|
|
7
|
-
href?: string;
|
|
8
4
|
}
|
|
9
5
|
/**
|
|
10
6
|
* Use this component inside HeaderContent to provide a title to the header.
|
package/HeaderTitle/index.js
CHANGED
|
@@ -30,8 +30,8 @@ var HeaderTitle = /*#__PURE__*/_react["default"].forwardRef(function HeaderTitle
|
|
|
30
30
|
props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
|
|
31
31
|
return /*#__PURE__*/_react["default"].createElement(_Base["default"], (0, _extends2["default"])({
|
|
32
32
|
as: "a",
|
|
33
|
-
href: href,
|
|
34
33
|
ref: ref,
|
|
34
|
+
href: href,
|
|
35
35
|
className: (0, _clsx["default"])(className, true && 'govgr-header-title')
|
|
36
36
|
}, props), children);
|
|
37
37
|
});
|