@digigov/react-core 0.25.5 → 0.26.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/Accordion/index.d.ts +1 -1
- package/AccordionControls/index.d.ts +1 -1
- package/AccordionSection/index.d.ts +1 -1
- package/AccordionSectionContent/index.d.ts +1 -1
- package/AccordionSectionHeader/index.d.ts +1 -1
- package/AccordionSectionSummary/index.d.ts +1 -1
- package/AccordionSectionSummaryHeading/index.d.ts +1 -1
- package/Aside/index.d.ts +1 -1
- package/BackLink/index.d.ts +1 -1
- package/Base/index.d.ts +1 -0
- package/Base/index.js +2 -34
- package/Blockquote/index.d.ts +1 -1
- package/Bottom/index.d.ts +1 -1
- package/Breadcrumbs/index.d.ts +1 -1
- package/BreadcrumbsList/index.d.ts +1 -1
- package/BreadcrumbsListItem/index.d.ts +1 -1
- package/Button/index.d.ts +1 -1
- package/ButtonGroup/index.d.ts +1 -1
- package/ButtonLink/index.d.ts +1 -1
- package/CHANGELOG.md +13 -1
- package/CallToAction/index.d.ts +1 -1
- package/Card/index.d.ts +1 -1
- package/CardAction/index.d.ts +1 -1
- package/CardHeading/index.d.ts +1 -1
- package/CardText/index.d.ts +1 -1
- package/CaretContainer/index.d.ts +1 -1
- package/Checkbox/index.d.ts +1 -1
- package/CheckboxConditional/index.d.ts +1 -1
- package/CheckboxItem/__snapshots__/index.test.tsx.snap +219 -73
- package/CheckboxItem/index.d.ts +7 -1
- package/CheckboxItem/index.js +8 -3
- package/CheckboxItem/index.test.js +20 -1
- package/ChoiceDivider/__snapshots__/index.test.tsx.snap +18 -0
- package/ChoiceDivider/index.d.ts +11 -0
- package/ChoiceDivider/index.js +39 -0
- package/ChoiceDivider/index.test.d.ts +1 -0
- package/ChoiceDivider/index.test.js +17 -0
- package/Confirmation/index.d.ts +1 -1
- package/ConfirmationBody/index.d.ts +1 -1
- package/ConfirmationTitle/index.d.ts +1 -1
- package/Container/index.d.ts +1 -1
- package/CopyrightContainer/index.d.ts +1 -1
- package/DateInputContainer/index.d.ts +1 -1
- package/DateInputItem/index.d.ts +1 -1
- package/Details/index.d.ts +1 -1
- package/DetailsContent/index.d.ts +1 -1
- package/DetailsSummary/index.d.ts +1 -1
- package/ErrorMessage/index.d.ts +1 -1
- package/ErrorSummary/index.d.ts +1 -1
- package/FieldContainer/index.d.ts +1 -1
- package/Fieldset/index.d.ts +1 -1
- package/FieldsetLegend/index.d.ts +1 -1
- package/FileUpload/index.d.ts +1 -1
- package/FileUploadContainer/index.d.ts +1 -1
- package/Footer/index.d.ts +1 -1
- package/FooterContainer/index.d.ts +1 -1
- package/FooterContent/index.d.ts +1 -1
- package/FooterContentLogos/index.d.ts +1 -1
- package/FooterHeading/index.d.ts +1 -1
- package/FooterImage/index.d.ts +1 -1
- package/FooterInlineList/index.d.ts +1 -1
- package/FooterInlineListItem/index.d.ts +1 -1
- package/FooterLink/index.d.ts +1 -1
- package/FooterList/index.d.ts +1 -1
- package/FooterListItem/index.d.ts +1 -1
- package/FooterMeta/index.d.ts +1 -1
- package/FooterMetaItem/index.d.ts +1 -1
- package/FooterNavigation/index.d.ts +1 -1
- package/FooterSection/index.d.ts +1 -1
- package/Form/index.d.ts +1 -1
- package/GovGRLogo/index.d.ts +1 -1
- package/Grid/index.d.ts +1 -1
- package/Header/index.d.ts +1 -1
- package/HeaderContent/index.d.ts +1 -1
- package/HeaderLogo/index.d.ts +1 -1
- package/HeaderNavMenuContent/index.d.ts +1 -1
- package/HeaderSecondaryLogo/index.d.ts +1 -1
- package/HeaderSection/index.d.ts +1 -1
- package/HeaderSubtitle/index.d.ts +1 -1
- package/HeaderTitle/index.d.ts +1 -1
- package/Heading/index.d.ts +1 -1
- package/HeadingCaption/index.d.ts +1 -1
- package/HellenicRepublicLogo/index.d.ts +1 -1
- package/Hidden/index.d.ts +1 -1
- package/Hint/index.d.ts +1 -1
- package/LabelContainer/index.d.ts +1 -1
- package/LabelTitle/index.d.ts +1 -1
- package/Layout/index.d.ts +1 -1
- package/LinkBase/index.d.ts +1 -1
- package/List/index.d.ts +1 -1
- package/ListItem/index.d.ts +1 -1
- package/Main/index.d.ts +1 -1
- package/Masthead/index.d.ts +1 -1
- package/MastheadBody/index.d.ts +1 -1
- package/Nav/index.d.ts +1 -1
- package/NavList/index.d.ts +1 -1
- package/NavListItem/index.d.ts +1 -1
- package/NavListItemButton/index.d.ts +1 -1
- package/NavListItemLink/index.d.ts +1 -1
- package/NavMenu/index.d.ts +1 -1
- package/NavMenuContainer/index.d.ts +1 -1
- package/NavMenuContainerContent/index.d.ts +1 -1
- package/NavMenuContainerContentList/index.d.ts +1 -1
- package/NavMenuContainerContentListItem/index.d.ts +1 -1
- package/NavMenuContainerTitle/index.d.ts +1 -1
- package/NavVertical/index.d.ts +1 -1
- package/NavVerticalItem/index.d.ts +1 -1
- package/NormalText/index.d.ts +1 -1
- package/NotificationBannerContainer/index.d.ts +1 -1
- package/NotificationBannerContent/index.d.ts +1 -1
- package/NotificationBannerHeader/index.d.ts +1 -1
- package/NotificationBannerHeading/index.d.ts +1 -1
- package/NotificationBannerLink/index.d.ts +1 -1
- package/PageTitle/index.d.ts +1 -1
- package/PageTitleCaption/index.d.ts +1 -1
- package/PageTitleHeading/index.d.ts +1 -1
- package/PageTitleSection/index.d.ts +1 -1
- package/Paragraph/index.d.ts +1 -1
- package/PhaseBanner/index.d.ts +1 -1
- package/PhaseBannerHeaderContainer/index.d.ts +1 -1
- package/PhaseBannerTag/index.d.ts +1 -1
- package/PhaseBannerText/index.d.ts +1 -1
- package/RadioConditional/index.d.ts +1 -1
- package/RadioContainer/index.d.ts +1 -1
- package/RadioItem/__snapshots__/index.test.tsx.snap +253 -90
- package/RadioItem/index.d.ts +7 -1
- package/RadioItem/index.js +9 -4
- package/RadioItem/index.test.js +24 -5
- package/SectionBreak/index.d.ts +1 -1
- package/SelectContainer/index.d.ts +1 -1
- package/SelectOption/index.d.ts +1 -1
- package/SingleCharacterInputContainer/index.d.ts +1 -1
- package/SingleCharacterInputItem/index.d.ts +1 -1
- package/SkipLink/index.d.ts +1 -1
- package/SummaryList/index.d.ts +1 -1
- package/SummaryListItem/index.d.ts +1 -1
- package/SummaryListItemAction/index.d.ts +1 -1
- package/SummaryListItemKey/index.d.ts +1 -1
- package/SummaryListItemValue/index.d.ts +1 -1
- package/SvgIcon/index.d.ts +1 -1
- package/Table/index.d.ts +1 -1
- package/TableBody/index.d.ts +1 -1
- package/TableCaption/index.d.ts +1 -1
- package/TableContainer/index.d.ts +1 -1
- package/TableDataCell/index.d.ts +1 -1
- package/TableHead/index.d.ts +1 -1
- package/TableHeadCell/index.d.ts +1 -1
- package/TableNoDataRow/index.d.ts +1 -1
- package/TableRow/index.d.ts +1 -1
- package/Tabs/index.d.ts +1 -1
- package/TabsHeading/index.d.ts +1 -1
- package/TabsList/index.d.ts +1 -1
- package/TabsListItem/index.d.ts +1 -1
- package/TabsPanel/index.d.ts +1 -1
- package/TextArea/index.d.ts +1 -1
- package/TextInput/index.d.ts +1 -1
- package/Top/index.d.ts +1 -1
- package/VisuallyHidden/index.d.ts +1 -1
- package/WarningText/index.d.ts +1 -1
- package/es/Base/index.js +2 -35
- package/es/CheckboxItem/__snapshots__/index.test.tsx.snap +219 -73
- package/es/CheckboxItem/index.js +7 -3
- package/es/CheckboxItem/index.test.js +20 -1
- package/es/ChoiceDivider/__snapshots__/index.test.tsx.snap +18 -0
- package/es/ChoiceDivider/index.js +23 -0
- package/es/ChoiceDivider/index.test.js +11 -0
- package/es/RadioItem/__snapshots__/index.test.tsx.snap +253 -90
- package/es/RadioItem/index.js +8 -4
- package/es/RadioItem/index.test.js +24 -5
- package/es/index.js +1 -0
- package/es/registry.js +2 -0
- package/esm/Base/index.js +2 -35
- package/esm/CheckboxItem/__snapshots__/index.test.tsx.snap +219 -73
- package/esm/CheckboxItem/index.js +7 -3
- package/esm/CheckboxItem/index.test.js +20 -1
- package/esm/ChoiceDivider/__snapshots__/index.test.tsx.snap +18 -0
- package/esm/ChoiceDivider/index.js +23 -0
- package/esm/ChoiceDivider/index.test.js +11 -0
- package/esm/RadioItem/__snapshots__/index.test.tsx.snap +253 -90
- package/esm/RadioItem/index.js +8 -4
- package/esm/RadioItem/index.test.js +24 -5
- 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 +1 -1
- package/registry.d.ts +1 -0
- package/registry.js +3 -0
- package/src/Base/index.tsx +31 -80
- package/src/CheckboxItem/__snapshots__/index.test.tsx.snap +219 -73
- package/src/CheckboxItem/index.test.tsx +13 -0
- package/src/CheckboxItem/index.tsx +35 -24
- package/src/ChoiceDivider/__snapshots__/index.test.tsx.snap +18 -0
- package/src/ChoiceDivider/index.test.tsx +8 -0
- package/src/ChoiceDivider/index.tsx +29 -0
- package/src/RadioItem/__snapshots__/index.test.tsx.snap +253 -90
- package/src/RadioItem/index.test.tsx +16 -0
- package/src/RadioItem/index.tsx +35 -24
- package/src/index.ts +1 -0
- package/src/registry.js +2 -0
package/Top/index.d.ts
CHANGED
|
@@ -5,5 +5,5 @@ export interface TopProps extends BaseProps<'div'> {
|
|
|
5
5
|
/**
|
|
6
6
|
* Top is used inside the Layout component and it must be the first component in order.
|
|
7
7
|
*/
|
|
8
|
-
export declare const Top: React.ForwardRefExoticComponent<Pick<TopProps, "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>>;
|
|
8
|
+
export declare const Top: React.ForwardRefExoticComponent<Pick<TopProps, "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" | "printVisible" | "xsUpHidden" | "smUpHidden" | "mdUpHidden" | "lgUpHidden" | "xlUpHidden" | "xsHidden" | "smHidden" | "mdHidden" | "lgHidden" | "xlHidden"> & React.RefAttributes<HTMLDivElement>>;
|
|
9
9
|
export default Top;
|
|
@@ -6,5 +6,5 @@ export interface VisuallyHiddenProps extends BaseProps<'span'> {
|
|
|
6
6
|
* Details for the VisuallyHidden.
|
|
7
7
|
* VisuallyHidden component provides text for screen readers that is visually hidden.
|
|
8
8
|
*/
|
|
9
|
-
export declare const VisuallyHidden: React.ForwardRefExoticComponent<Pick<VisuallyHiddenProps, "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<HTMLSpanElement>>;
|
|
9
|
+
export declare const VisuallyHidden: React.ForwardRefExoticComponent<Pick<VisuallyHiddenProps, "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" | "printVisible" | "xsUpHidden" | "smUpHidden" | "mdUpHidden" | "lgUpHidden" | "xlUpHidden" | "xsHidden" | "smHidden" | "mdHidden" | "lgHidden" | "xlHidden"> & React.RefAttributes<HTMLSpanElement>>;
|
|
10
10
|
export default VisuallyHidden;
|
package/WarningText/index.d.ts
CHANGED
|
@@ -7,5 +7,5 @@ export interface WarningTextProps extends BaseProps<'div'> {
|
|
|
7
7
|
* Use the WarningText component when you need to warn users about something important.
|
|
8
8
|
* The component is used with a text inside it.
|
|
9
9
|
*/
|
|
10
|
-
export declare const WarningText: React.ForwardRefExoticComponent<Pick<WarningTextProps, "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
|
+
export declare const WarningText: React.ForwardRefExoticComponent<Pick<WarningTextProps, "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" | "printVisible" | "xsUpHidden" | "smUpHidden" | "mdUpHidden" | "lgUpHidden" | "xlUpHidden" | "xsHidden" | "smHidden" | "mdHidden" | "lgHidden" | "xlHidden"> & React.RefAttributes<HTMLDivElement>>;
|
|
11
11
|
export default WarningText;
|
package/es/Base/index.js
CHANGED
|
@@ -3,39 +3,6 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
3
3
|
var _excluded = ["as", "margin", "marginTop", "marginBottom", "marginLeft", "marginRight", "padding", "paddingTop", "paddingBottom", "paddingLeft", "paddingRight", "printHidden", "printVisible", "xsUpHidden", "smUpHidden", "mdUpHidden", "lgUpHidden", "xlUpHidden", "xsHidden", "smHidden", "mdHidden", "lgHidden", "xlHidden", "children", "className"];
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import clsx from 'clsx';
|
|
6
|
-
|
|
7
|
-
function calculateClasses(margin, marginTop, marginBottom, marginRight, marginLeft, padding, paddingTop, paddingBottom, paddingRight, paddingLeft, printHidden, printVisible, xsUpHidden, smUpHidden, mdUpHidden, lgUpHidden, xlUpHidden, xsHidden, smHidden, mdHidden, lgHidden, xlHidden) {
|
|
8
|
-
var classList = {};
|
|
9
|
-
|
|
10
|
-
for (var i = 0; i <= 12; i++) {
|
|
11
|
-
classList["govgr-m-".concat(i)] = margin === i;
|
|
12
|
-
classList["govgr-mt-".concat(i)] = marginTop === i;
|
|
13
|
-
classList["govgr-mb-".concat(i)] = marginBottom === i;
|
|
14
|
-
classList["govgr-mr-".concat(i)] = marginRight === i;
|
|
15
|
-
classList["govgr-ml-".concat(i)] = marginLeft === i;
|
|
16
|
-
classList["govgr-p-".concat(i)] = padding === i;
|
|
17
|
-
classList["govgr-pt-".concat(i)] = paddingTop === i;
|
|
18
|
-
classList["govgr-pb-".concat(i)] = paddingBottom === i;
|
|
19
|
-
classList["govgr-pr-".concat(i)] = paddingRight === i;
|
|
20
|
-
classList["govgr-pl-".concat(i)] = paddingLeft === i;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
classList['govgr-print-hidden'] = !!printHidden;
|
|
24
|
-
classList['govgr-print-visible-block'] = printVisible === 'block';
|
|
25
|
-
classList['govgr-print-visible-inline'] = printVisible === 'inline';
|
|
26
|
-
classList['govgr-hidden-xs--up'] = xsUpHidden === true;
|
|
27
|
-
classList['govgr-hidden-sm--up'] = smUpHidden === true;
|
|
28
|
-
classList['govgr-hidden-md--up'] = mdUpHidden === true;
|
|
29
|
-
classList['govgr-hidden-lg--up'] = lgUpHidden === true;
|
|
30
|
-
classList['govgr-hidden-xl--up'] = xlUpHidden === true;
|
|
31
|
-
classList['govgr-hidden-xs'] = xsHidden === true;
|
|
32
|
-
classList['govgr-hidden-sm'] = smHidden === true;
|
|
33
|
-
classList['govgr-hidden-md'] = mdHidden === true;
|
|
34
|
-
classList['govgr-hidden-lg'] = lgHidden === true;
|
|
35
|
-
classList['govgr-hidden-xl'] = xlHidden === true;
|
|
36
|
-
return classList;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
6
|
export var Base = /*#__PURE__*/React.forwardRef(function Base(_ref, ref) {
|
|
40
7
|
var as = _ref.as,
|
|
41
8
|
margin = _ref.margin,
|
|
@@ -66,8 +33,8 @@ export var Base = /*#__PURE__*/React.forwardRef(function Base(_ref, ref) {
|
|
|
66
33
|
|
|
67
34
|
var Component = as || 'span';
|
|
68
35
|
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
69
|
-
|
|
70
|
-
|
|
36
|
+
className: clsx(className, (paddingBottom !== undefined ? true : undefined) && "govgr-pb-".concat(paddingBottom), (marginBottom !== undefined ? true : undefined) && "govgr-mb-".concat(marginBottom), (paddingRight !== undefined ? true : undefined) && "govgr-pr-".concat(paddingRight), (marginRight !== undefined ? true : undefined) && "govgr-mr-".concat(marginRight), (paddingLeft !== undefined ? true : undefined) && "govgr-pl-".concat(paddingLeft), (marginLeft !== undefined ? true : undefined) && "govgr-ml-".concat(marginLeft), (paddingTop !== undefined ? true : undefined) && "govgr-pt-".concat(paddingTop), (marginTop !== undefined ? true : undefined) && "govgr-mt-".concat(marginTop), (padding !== undefined ? true : undefined) && "govgr-p-".concat(padding), (margin !== undefined ? true : undefined) && "govgr-m-".concat(margin), printVisible === 'inline' && 'govgr-print-visible-inline', printVisible === 'block' && 'govgr-print-visible-block', !!printHidden && 'govgr-print-hidden', !!xsUpHidden && 'govgr-hidden-xs--up', !!smUpHidden && 'govgr-hidden-sm--up', !!mdUpHidden && 'govgr-hidden-md--up', !!lgUpHidden && 'govgr-hidden-lg--up', !!xlUpHidden && 'govgr-hidden-xl--up', !!xsHidden && 'govgr-hidden-xs', !!smHidden && 'govgr-hidden-sm', !!mdHidden && 'govgr-hidden-md', !!lgHidden && 'govgr-hidden-lg', !!xlHidden && 'govgr-hidden-xl'),
|
|
37
|
+
ref: ref
|
|
71
38
|
}, props), children);
|
|
72
39
|
});
|
|
73
40
|
export default Base;
|
|
@@ -7,23 +7,81 @@ exports[`renders the CheckboxItem with \`disabled\` prop 1`] = `
|
|
|
7
7
|
<div
|
|
8
8
|
className="govgr-checkboxes__item"
|
|
9
9
|
>
|
|
10
|
-
<
|
|
11
|
-
className="govgr-checkboxes__label--disabled govgr-
|
|
10
|
+
<ForwardRef(LabelContainer)
|
|
11
|
+
className="govgr-checkboxes__label--disabled govgr-checkboxes__label"
|
|
12
12
|
>
|
|
13
|
-
hello
|
|
14
13
|
<ForwardRef(Base)
|
|
15
|
-
as="
|
|
16
|
-
className="govgr-
|
|
17
|
-
disabled={true}
|
|
18
|
-
type="checkbox"
|
|
14
|
+
as="label"
|
|
15
|
+
className="govgr-checkboxes__label--disabled govgr-checkboxes__label govgr-label"
|
|
19
16
|
>
|
|
20
|
-
<
|
|
21
|
-
className="govgr-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
17
|
+
<label
|
|
18
|
+
className="govgr-checkboxes__label--disabled govgr-checkboxes__label govgr-label"
|
|
19
|
+
>
|
|
20
|
+
hello
|
|
21
|
+
<ForwardRef(Base)
|
|
22
|
+
as="input"
|
|
23
|
+
className="govgr-checkboxes__input"
|
|
24
|
+
disabled={true}
|
|
25
|
+
type="checkbox"
|
|
26
|
+
>
|
|
27
|
+
<input
|
|
28
|
+
className="govgr-checkboxes__input"
|
|
29
|
+
disabled={true}
|
|
30
|
+
type="checkbox"
|
|
31
|
+
/>
|
|
32
|
+
</ForwardRef(Base)>
|
|
33
|
+
</label>
|
|
25
34
|
</ForwardRef(Base)>
|
|
26
|
-
</
|
|
35
|
+
</ForwardRef(LabelContainer)>
|
|
36
|
+
</div>
|
|
37
|
+
</ForwardRef(CheckboxItem)>
|
|
38
|
+
`;
|
|
39
|
+
|
|
40
|
+
exports[`renders the CheckboxItem with \`divider\` prop 1`] = `
|
|
41
|
+
<ForwardRef(CheckboxItem)
|
|
42
|
+
divider="ή"
|
|
43
|
+
>
|
|
44
|
+
<ForwardRef(ChoiceDivider)
|
|
45
|
+
text="ή"
|
|
46
|
+
>
|
|
47
|
+
<ForwardRef(Base)
|
|
48
|
+
as="div"
|
|
49
|
+
className="govgr-choice-divider"
|
|
50
|
+
>
|
|
51
|
+
<div
|
|
52
|
+
className="govgr-choice-divider"
|
|
53
|
+
>
|
|
54
|
+
ή
|
|
55
|
+
</div>
|
|
56
|
+
</ForwardRef(Base)>
|
|
57
|
+
</ForwardRef(ChoiceDivider)>
|
|
58
|
+
<div
|
|
59
|
+
className="govgr-checkboxes__item"
|
|
60
|
+
>
|
|
61
|
+
<ForwardRef(LabelContainer)
|
|
62
|
+
className="govgr-checkboxes__label"
|
|
63
|
+
>
|
|
64
|
+
<ForwardRef(Base)
|
|
65
|
+
as="label"
|
|
66
|
+
className="govgr-checkboxes__label govgr-label"
|
|
67
|
+
>
|
|
68
|
+
<label
|
|
69
|
+
className="govgr-checkboxes__label govgr-label"
|
|
70
|
+
>
|
|
71
|
+
hello
|
|
72
|
+
<ForwardRef(Base)
|
|
73
|
+
as="input"
|
|
74
|
+
className="govgr-checkboxes__input"
|
|
75
|
+
type="checkbox"
|
|
76
|
+
>
|
|
77
|
+
<input
|
|
78
|
+
className="govgr-checkboxes__input"
|
|
79
|
+
type="checkbox"
|
|
80
|
+
/>
|
|
81
|
+
</ForwardRef(Base)>
|
|
82
|
+
</label>
|
|
83
|
+
</ForwardRef(Base)>
|
|
84
|
+
</ForwardRef(LabelContainer)>
|
|
27
85
|
</div>
|
|
28
86
|
</ForwardRef(CheckboxItem)>
|
|
29
87
|
`;
|
|
@@ -35,25 +93,32 @@ exports[`renders the CheckboxItem with \`name\` prop 1`] = `
|
|
|
35
93
|
<div
|
|
36
94
|
className="govgr-checkboxes__item"
|
|
37
95
|
>
|
|
38
|
-
<
|
|
39
|
-
className="govgr-
|
|
96
|
+
<ForwardRef(LabelContainer)
|
|
97
|
+
className="govgr-checkboxes__label"
|
|
40
98
|
>
|
|
41
|
-
hello
|
|
42
99
|
<ForwardRef(Base)
|
|
43
|
-
as="
|
|
44
|
-
className="govgr-
|
|
45
|
-
disabled={false}
|
|
46
|
-
name="example"
|
|
47
|
-
type="checkbox"
|
|
100
|
+
as="label"
|
|
101
|
+
className="govgr-checkboxes__label govgr-label"
|
|
48
102
|
>
|
|
49
|
-
<
|
|
50
|
-
className="govgr-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
103
|
+
<label
|
|
104
|
+
className="govgr-checkboxes__label govgr-label"
|
|
105
|
+
>
|
|
106
|
+
hello
|
|
107
|
+
<ForwardRef(Base)
|
|
108
|
+
as="input"
|
|
109
|
+
className="govgr-checkboxes__input"
|
|
110
|
+
name="example"
|
|
111
|
+
type="checkbox"
|
|
112
|
+
>
|
|
113
|
+
<input
|
|
114
|
+
className="govgr-checkboxes__input"
|
|
115
|
+
name="example"
|
|
116
|
+
type="checkbox"
|
|
117
|
+
/>
|
|
118
|
+
</ForwardRef(Base)>
|
|
119
|
+
</label>
|
|
55
120
|
</ForwardRef(Base)>
|
|
56
|
-
</
|
|
121
|
+
</ForwardRef(LabelContainer)>
|
|
57
122
|
</div>
|
|
58
123
|
</ForwardRef(CheckboxItem)>
|
|
59
124
|
`;
|
|
@@ -67,27 +132,94 @@ exports[`renders the CheckboxItem with \`value\` \`name\` and \`disabled\` props
|
|
|
67
132
|
<div
|
|
68
133
|
className="govgr-checkboxes__item"
|
|
69
134
|
>
|
|
70
|
-
<
|
|
71
|
-
className="govgr-checkboxes__label--disabled govgr-
|
|
135
|
+
<ForwardRef(LabelContainer)
|
|
136
|
+
className="govgr-checkboxes__label--disabled govgr-checkboxes__label"
|
|
137
|
+
>
|
|
138
|
+
<ForwardRef(Base)
|
|
139
|
+
as="label"
|
|
140
|
+
className="govgr-checkboxes__label--disabled govgr-checkboxes__label govgr-label"
|
|
141
|
+
>
|
|
142
|
+
<label
|
|
143
|
+
className="govgr-checkboxes__label--disabled govgr-checkboxes__label govgr-label"
|
|
144
|
+
>
|
|
145
|
+
hello
|
|
146
|
+
<ForwardRef(Base)
|
|
147
|
+
as="input"
|
|
148
|
+
className="govgr-checkboxes__input"
|
|
149
|
+
disabled={true}
|
|
150
|
+
name="example"
|
|
151
|
+
type="checkbox"
|
|
152
|
+
value="example"
|
|
153
|
+
>
|
|
154
|
+
<input
|
|
155
|
+
className="govgr-checkboxes__input"
|
|
156
|
+
disabled={true}
|
|
157
|
+
name="example"
|
|
158
|
+
type="checkbox"
|
|
159
|
+
value="example"
|
|
160
|
+
/>
|
|
161
|
+
</ForwardRef(Base)>
|
|
162
|
+
</label>
|
|
163
|
+
</ForwardRef(Base)>
|
|
164
|
+
</ForwardRef(LabelContainer)>
|
|
165
|
+
</div>
|
|
166
|
+
</ForwardRef(CheckboxItem)>
|
|
167
|
+
`;
|
|
168
|
+
|
|
169
|
+
exports[`renders the CheckboxItem with \`value\` \`name\`, \`divider\` and \`disabled\` props 1`] = `
|
|
170
|
+
<ForwardRef(CheckboxItem)
|
|
171
|
+
disabled={true}
|
|
172
|
+
divider="ή"
|
|
173
|
+
name="example"
|
|
174
|
+
value="example"
|
|
175
|
+
>
|
|
176
|
+
<ForwardRef(ChoiceDivider)
|
|
177
|
+
text="ή"
|
|
178
|
+
>
|
|
179
|
+
<ForwardRef(Base)
|
|
180
|
+
as="div"
|
|
181
|
+
className="govgr-choice-divider"
|
|
182
|
+
>
|
|
183
|
+
<div
|
|
184
|
+
className="govgr-choice-divider"
|
|
185
|
+
>
|
|
186
|
+
ή
|
|
187
|
+
</div>
|
|
188
|
+
</ForwardRef(Base)>
|
|
189
|
+
</ForwardRef(ChoiceDivider)>
|
|
190
|
+
<div
|
|
191
|
+
className="govgr-checkboxes__item"
|
|
192
|
+
>
|
|
193
|
+
<ForwardRef(LabelContainer)
|
|
194
|
+
className="govgr-checkboxes__label--disabled govgr-checkboxes__label"
|
|
72
195
|
>
|
|
73
|
-
hello
|
|
74
196
|
<ForwardRef(Base)
|
|
75
|
-
as="
|
|
76
|
-
className="govgr-
|
|
77
|
-
disabled={true}
|
|
78
|
-
name="example"
|
|
79
|
-
type="checkbox"
|
|
80
|
-
value="example"
|
|
197
|
+
as="label"
|
|
198
|
+
className="govgr-checkboxes__label--disabled govgr-checkboxes__label govgr-label"
|
|
81
199
|
>
|
|
82
|
-
<
|
|
83
|
-
className="govgr-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
200
|
+
<label
|
|
201
|
+
className="govgr-checkboxes__label--disabled govgr-checkboxes__label govgr-label"
|
|
202
|
+
>
|
|
203
|
+
hello
|
|
204
|
+
<ForwardRef(Base)
|
|
205
|
+
as="input"
|
|
206
|
+
className="govgr-checkboxes__input"
|
|
207
|
+
disabled={true}
|
|
208
|
+
name="example"
|
|
209
|
+
type="checkbox"
|
|
210
|
+
value="example"
|
|
211
|
+
>
|
|
212
|
+
<input
|
|
213
|
+
className="govgr-checkboxes__input"
|
|
214
|
+
disabled={true}
|
|
215
|
+
name="example"
|
|
216
|
+
type="checkbox"
|
|
217
|
+
value="example"
|
|
218
|
+
/>
|
|
219
|
+
</ForwardRef(Base)>
|
|
220
|
+
</label>
|
|
89
221
|
</ForwardRef(Base)>
|
|
90
|
-
</
|
|
222
|
+
</ForwardRef(LabelContainer)>
|
|
91
223
|
</div>
|
|
92
224
|
</ForwardRef(CheckboxItem)>
|
|
93
225
|
`;
|
|
@@ -99,25 +231,32 @@ exports[`renders the CheckboxItem with \`value\` prop 1`] = `
|
|
|
99
231
|
<div
|
|
100
232
|
className="govgr-checkboxes__item"
|
|
101
233
|
>
|
|
102
|
-
<
|
|
103
|
-
className="govgr-
|
|
234
|
+
<ForwardRef(LabelContainer)
|
|
235
|
+
className="govgr-checkboxes__label"
|
|
104
236
|
>
|
|
105
|
-
hello
|
|
106
237
|
<ForwardRef(Base)
|
|
107
|
-
as="
|
|
108
|
-
className="govgr-
|
|
109
|
-
disabled={false}
|
|
110
|
-
type="checkbox"
|
|
111
|
-
value="example"
|
|
238
|
+
as="label"
|
|
239
|
+
className="govgr-checkboxes__label govgr-label"
|
|
112
240
|
>
|
|
113
|
-
<
|
|
114
|
-
className="govgr-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
241
|
+
<label
|
|
242
|
+
className="govgr-checkboxes__label govgr-label"
|
|
243
|
+
>
|
|
244
|
+
hello
|
|
245
|
+
<ForwardRef(Base)
|
|
246
|
+
as="input"
|
|
247
|
+
className="govgr-checkboxes__input"
|
|
248
|
+
type="checkbox"
|
|
249
|
+
value="example"
|
|
250
|
+
>
|
|
251
|
+
<input
|
|
252
|
+
className="govgr-checkboxes__input"
|
|
253
|
+
type="checkbox"
|
|
254
|
+
value="example"
|
|
255
|
+
/>
|
|
256
|
+
</ForwardRef(Base)>
|
|
257
|
+
</label>
|
|
119
258
|
</ForwardRef(Base)>
|
|
120
|
-
</
|
|
259
|
+
</ForwardRef(LabelContainer)>
|
|
121
260
|
</div>
|
|
122
261
|
</ForwardRef(CheckboxItem)>
|
|
123
262
|
`;
|
|
@@ -127,23 +266,30 @@ exports[`renders the CheckboxItem with no props 1`] = `
|
|
|
127
266
|
<div
|
|
128
267
|
className="govgr-checkboxes__item"
|
|
129
268
|
>
|
|
130
|
-
<
|
|
131
|
-
className="govgr-
|
|
269
|
+
<ForwardRef(LabelContainer)
|
|
270
|
+
className="govgr-checkboxes__label"
|
|
132
271
|
>
|
|
133
|
-
hello
|
|
134
272
|
<ForwardRef(Base)
|
|
135
|
-
as="
|
|
136
|
-
className="govgr-
|
|
137
|
-
disabled={false}
|
|
138
|
-
type="checkbox"
|
|
273
|
+
as="label"
|
|
274
|
+
className="govgr-checkboxes__label govgr-label"
|
|
139
275
|
>
|
|
140
|
-
<
|
|
141
|
-
className="govgr-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
276
|
+
<label
|
|
277
|
+
className="govgr-checkboxes__label govgr-label"
|
|
278
|
+
>
|
|
279
|
+
hello
|
|
280
|
+
<ForwardRef(Base)
|
|
281
|
+
as="input"
|
|
282
|
+
className="govgr-checkboxes__input"
|
|
283
|
+
type="checkbox"
|
|
284
|
+
>
|
|
285
|
+
<input
|
|
286
|
+
className="govgr-checkboxes__input"
|
|
287
|
+
type="checkbox"
|
|
288
|
+
/>
|
|
289
|
+
</ForwardRef(Base)>
|
|
290
|
+
</label>
|
|
145
291
|
</ForwardRef(Base)>
|
|
146
|
-
</
|
|
292
|
+
</ForwardRef(LabelContainer)>
|
|
147
293
|
</div>
|
|
148
294
|
</ForwardRef(CheckboxItem)>
|
|
149
295
|
`;
|
package/es/CheckboxItem/index.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["name", "value", "className", "disabled", "children"];
|
|
3
|
+
var _excluded = ["name", "value", "divider", "className", "disabled", "children"];
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import Base from '@digigov/react-core/Base';
|
|
6
6
|
import LabelContainer from '@digigov/react-core/LabelContainer';
|
|
7
7
|
import clsx from 'clsx';
|
|
8
|
+
import ChoiceDivider from '@digigov/react-core/ChoiceDivider';
|
|
8
9
|
|
|
9
10
|
/**
|
|
10
11
|
* Details for the CheckboxItem.
|
|
@@ -14,12 +15,15 @@ import clsx from 'clsx';
|
|
|
14
15
|
export var CheckboxItem = /*#__PURE__*/React.forwardRef(function CheckboxItem(_ref, ref) {
|
|
15
16
|
var name = _ref.name,
|
|
16
17
|
value = _ref.value,
|
|
18
|
+
divider = _ref.divider,
|
|
17
19
|
className = _ref.className,
|
|
18
20
|
disabled = _ref.disabled,
|
|
19
21
|
children = _ref.children,
|
|
20
22
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
21
23
|
|
|
22
|
-
return /*#__PURE__*/React.createElement(
|
|
24
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, divider && /*#__PURE__*/React.createElement(ChoiceDivider, {
|
|
25
|
+
text: divider
|
|
26
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
23
27
|
className: clsx(className, true && 'govgr-checkboxes__item')
|
|
24
28
|
}, /*#__PURE__*/React.createElement(LabelContainer, {
|
|
25
29
|
className: clsx(disabled === true && 'govgr-checkboxes__label--disabled', true && 'govgr-checkboxes__label')
|
|
@@ -31,6 +35,6 @@ export var CheckboxItem = /*#__PURE__*/React.forwardRef(function CheckboxItem(_r
|
|
|
31
35
|
value: value,
|
|
32
36
|
className: clsx(true && 'govgr-checkboxes__input'),
|
|
33
37
|
disabled: disabled
|
|
34
|
-
}, props))));
|
|
38
|
+
}, props)))));
|
|
35
39
|
});
|
|
36
40
|
export default CheckboxItem;
|
|
@@ -33,11 +33,30 @@ it('renders the CheckboxItem with `disabled` prop', function () {
|
|
|
33
33
|
});
|
|
34
34
|
|
|
35
35
|
var _ref5 = /*#__PURE__*/React.createElement(CheckboxItem, {
|
|
36
|
+
divider: "\u03AE"
|
|
37
|
+
}, "hello");
|
|
38
|
+
|
|
39
|
+
it('renders the CheckboxItem with `divider` prop', function () {
|
|
40
|
+
expect(mount(_ref5)).toMatchSnapshot();
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
var _ref6 = /*#__PURE__*/React.createElement(CheckboxItem, {
|
|
36
44
|
value: "example",
|
|
37
45
|
name: "example",
|
|
38
46
|
disabled: true
|
|
39
47
|
}, "hello");
|
|
40
48
|
|
|
41
49
|
it('renders the CheckboxItem with `value` `name` and `disabled` props', function () {
|
|
42
|
-
expect(mount(
|
|
50
|
+
expect(mount(_ref6)).toMatchSnapshot();
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
var _ref7 = /*#__PURE__*/React.createElement(CheckboxItem, {
|
|
54
|
+
value: "example",
|
|
55
|
+
name: "example",
|
|
56
|
+
divider: "\u03AE",
|
|
57
|
+
disabled: true
|
|
58
|
+
}, "hello");
|
|
59
|
+
|
|
60
|
+
it('renders the CheckboxItem with `value` `name`, `divider` and `disabled` props', function () {
|
|
61
|
+
expect(mount(_ref7)).toMatchSnapshot();
|
|
43
62
|
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`renders the ChoiceDivider with text prop 1`] = `
|
|
4
|
+
<ForwardRef(ChoiceDivider)
|
|
5
|
+
text="ή"
|
|
6
|
+
>
|
|
7
|
+
<ForwardRef(Base)
|
|
8
|
+
as="div"
|
|
9
|
+
className="govgr-choice-divider"
|
|
10
|
+
>
|
|
11
|
+
<div
|
|
12
|
+
className="govgr-choice-divider"
|
|
13
|
+
>
|
|
14
|
+
ή
|
|
15
|
+
</div>
|
|
16
|
+
</ForwardRef(Base)>
|
|
17
|
+
</ForwardRef(ChoiceDivider)>
|
|
18
|
+
`;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["text", "className"];
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import Base from '@digigov/react-core/Base';
|
|
6
|
+
import clsx from 'clsx';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* ChoiceDivider component adds a text divider on top of a Radio or Checkbox item.
|
|
10
|
+
* It's been used as a prop ("divider") inside RadioItem and CheckboxItem.
|
|
11
|
+
*/
|
|
12
|
+
export var ChoiceDivider = /*#__PURE__*/React.forwardRef(function ChoiceDivider(_ref, ref) {
|
|
13
|
+
var text = _ref.text,
|
|
14
|
+
className = _ref.className,
|
|
15
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
16
|
+
|
|
17
|
+
return /*#__PURE__*/React.createElement(Base, _extends({
|
|
18
|
+
as: "div",
|
|
19
|
+
ref: ref,
|
|
20
|
+
className: clsx(className, true && 'govgr-choice-divider')
|
|
21
|
+
}, props), text);
|
|
22
|
+
});
|
|
23
|
+
export default ChoiceDivider;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { mount } from 'enzyme';
|
|
3
|
+
import ChoiceDivider from '@digigov/react-core/ChoiceDivider';
|
|
4
|
+
|
|
5
|
+
var _ref = /*#__PURE__*/React.createElement(ChoiceDivider, {
|
|
6
|
+
text: "\u03AE"
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
it('renders the ChoiceDivider with text prop', function () {
|
|
10
|
+
expect(mount(_ref)).toMatchSnapshot();
|
|
11
|
+
});
|