@digigov/react-experimental 2.0.0-rc.13 → 2.0.0-rc.15

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/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Digigov v2.0.0-rc.13
1
+ /** @license Digigov v2.0.0-rc.15
2
2
  *
3
3
  * This source code is licensed under the BSD-2-Clause license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -7,6 +7,7 @@ declare namespace _default {
7
7
  }
8
8
  export default _default;
9
9
  export * from "@digigov/ui/navigation/NavList/__stories__/Default";
10
+ export * from "@digigov/ui/navigation/NavList/__stories__/WithBadge";
10
11
  export * from "@digigov/ui/navigation/NavList/__stories__/Vertical";
11
12
  export * from "@digigov/ui/navigation/NavList/__stories__/NavListWithoutNav";
12
13
  export * from "@digigov/ui/navigation/NavList/__stories__/HorizontalWithoutDrawer";
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ export declare const WithBadge: () => JSX.Element;
3
+ export default WithBadge;
@@ -16,10 +16,11 @@ export interface NavListItemActionProps extends LinkButtonJoinProps {
16
16
  * @default false
17
17
  */
18
18
  arrow?: boolean;
19
+ badgeText?: string;
19
20
  }
20
21
  /**
21
22
  * NavListItemAction must be inside the NavList.
22
23
  * This component has a items of NavListItemLink component inside.
23
24
  */
24
- export declare const NavListItemAction: React.ForwardRefExoticComponent<Pick<NavListItemActionProps, "form" | "label" | "p" | "slot" | "style" | "title" | "as" | "className" | "color" | "id" | "lang" | "media" | "name" | "target" | "type" | "role" | "tabIndex" | "href" | "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" | "download" | "hrefLang" | "ping" | "rel" | "referrerPolicy" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "value" | "margin" | "marginTop" | "marginBottom" | "marginLeft" | "marginRight" | "m" | "mt" | "mb" | "ml" | "mr" | "mx" | "my" | "padding" | "paddingTop" | "paddingBottom" | "paddingLeft" | "paddingRight" | "pt" | "pb" | "pl" | "pr" | "px" | "py" | "printHidden" | "printVisible" | "xsUpHidden" | "smUpHidden" | "mdUpHidden" | "lgUpHidden" | "xlUpHidden" | "xsHidden" | "smHidden" | "mdHidden" | "lgHidden" | "xlHidden" | "variant" | "dense" | "active" | "arrow"> & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
25
+ export declare const NavListItemAction: React.ForwardRefExoticComponent<Pick<NavListItemActionProps, "form" | "label" | "p" | "slot" | "style" | "title" | "as" | "className" | "color" | "id" | "lang" | "media" | "name" | "target" | "type" | "role" | "tabIndex" | "href" | "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" | "download" | "hrefLang" | "ping" | "rel" | "referrerPolicy" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "value" | "margin" | "marginTop" | "marginBottom" | "marginLeft" | "marginRight" | "m" | "mt" | "mb" | "ml" | "mr" | "mx" | "my" | "padding" | "paddingTop" | "paddingBottom" | "paddingLeft" | "paddingRight" | "pt" | "pb" | "pl" | "pr" | "px" | "py" | "printHidden" | "printVisible" | "xsUpHidden" | "smUpHidden" | "mdUpHidden" | "lgUpHidden" | "xlUpHidden" | "xsHidden" | "smHidden" | "mdHidden" | "lgHidden" | "xlHidden" | "variant" | "dense" | "active" | "arrow" | "badgeText"> & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
25
26
  export default NavListItemAction;
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import { BaseProps } from '@digigov/react-core/Base';
3
+ export interface NavListItemBadgeProps extends BaseProps<'span'> {
4
+ /**
5
+ * text is optional.
6
+ * text prop contains text to be displayed in the badge.
7
+ */
8
+ text?: string;
9
+ }
10
+ /**
11
+ * NavListItemBadge is used inside NavListItemAction.
12
+ * This component adds a badge to a NavListItem.
13
+ */
14
+ export declare const NavListItemBadge: React.ForwardRefExoticComponent<Pick<NavListItemBadgeProps, "p" | "slot" | "style" | "title" | "text" | "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" | "m" | "mt" | "mb" | "ml" | "mr" | "mx" | "my" | "padding" | "paddingTop" | "paddingBottom" | "paddingLeft" | "paddingRight" | "pt" | "pb" | "pl" | "pr" | "px" | "py" | "printHidden" | "printVisible" | "xsUpHidden" | "smUpHidden" | "mdUpHidden" | "lgUpHidden" | "xlUpHidden" | "xsHidden" | "smHidden" | "mdHidden" | "lgHidden" | "xlHidden"> & React.RefAttributes<HTMLAnchorElement | HTMLSpanElement>>;
15
+ export default NavListItemBadge;
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@digigov/react-experimental",
3
- "version": "2.0.0-rc.13",
3
+ "version": "2.0.0-rc.15",
4
4
  "description": "@digigov react experimental components",
5
5
  "author": "GRNET Developers <devs@lists.grnet.gr>",
6
6
  "license": "BSD-2-Clause",
7
7
  "main": "./cjs/index.js",
8
8
  "module": "./index.js",
9
9
  "peerDependencies": {
10
- "@digigov/css": "2.0.0-rc.13",
11
- "@digigov/react-icons": "2.0.0-rc.13",
12
- "@digigov/ui": "2.0.0-rc.13",
13
- "@digigov/react-core": "2.0.0-rc.13",
10
+ "@digigov/css": "2.0.0-rc.15",
11
+ "@digigov/react-icons": "2.0.0-rc.15",
12
+ "@digigov/ui": "2.0.0-rc.15",
13
+ "@digigov/react-core": "2.0.0-rc.15",
14
14
  "clsx": "1.1.1",
15
15
  "react": "^16.8.0 || ^17.0.0",
16
16
  "react-dom": "^16.8.0 || ^17.0.0"
@@ -1,65 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`renders the FloatingButton with direction="left" 1`] = `
4
- <ForwardRef(FloatingButton)
5
- direction="left"
6
- >
7
- <ForwardRef(Button)
8
- className="ds-floating-btn--left ds-floating-btn"
9
- >
10
- <ForwardRef(Base)
11
- as="button"
12
- className="ds-floating-btn--left ds-floating-btn ds-btn-primary ds-btn"
13
- printHidden={true}
14
- >
15
- <button
16
- className="ds-floating-btn--left ds-floating-btn ds-btn-primary ds-btn ds-print-hidden"
17
- >
18
- +
19
- </button>
20
- </ForwardRef(Base)>
21
- </ForwardRef(Button)>
22
- </ForwardRef(FloatingButton)>
23
- `;
24
-
25
- exports[`renders the FloatingButton with direction="right" 1`] = `
26
- <ForwardRef(FloatingButton)
27
- direction="right"
28
- >
29
- <ForwardRef(Button)
30
- className="ds-floating-btn--right ds-floating-btn"
31
- >
32
- <ForwardRef(Base)
33
- as="button"
34
- className="ds-floating-btn--right ds-floating-btn ds-btn-primary ds-btn"
35
- printHidden={true}
36
- >
37
- <button
38
- className="ds-floating-btn--right ds-floating-btn ds-btn-primary ds-btn ds-print-hidden"
39
- >
40
- +
41
- </button>
42
- </ForwardRef(Base)>
43
- </ForwardRef(Button)>
44
- </ForwardRef(FloatingButton)>
45
- `;
46
-
47
- exports[`renders the FloatingButton with no props 1`] = `
48
- <ForwardRef(FloatingButton)>
49
- <ForwardRef(Button)
50
- className="ds-floating-btn--right ds-floating-btn"
51
- >
52
- <ForwardRef(Base)
53
- as="button"
54
- className="ds-floating-btn--right ds-floating-btn ds-btn-primary ds-btn"
55
- printHidden={true}
56
- >
57
- <button
58
- className="ds-floating-btn--right ds-floating-btn ds-btn-primary ds-btn ds-print-hidden"
59
- >
60
- +
61
- </button>
62
- </ForwardRef(Base)>
63
- </ForwardRef(Button)>
64
- </ForwardRef(FloatingButton)>
65
- `;
@@ -1,50 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`renders the OptionButtonBase with selected=false 1`] = `
4
- <ForwardRef(OptionButtonBase)
5
- selected={false}
6
- >
7
- <ForwardRef(Base)
8
- as="button"
9
- className="ds-btn ds-option-btn"
10
- >
11
- <button
12
- className="ds-btn ds-option-btn"
13
- >
14
- +
15
- </button>
16
- </ForwardRef(Base)>
17
- </ForwardRef(OptionButtonBase)>
18
- `;
19
-
20
- exports[`renders the OptionButtonBase with selected=true 1`] = `
21
- <ForwardRef(OptionButtonBase)
22
- selected={true}
23
- >
24
- <ForwardRef(Base)
25
- as="button"
26
- className="ds-option-btn--selected ds-btn ds-option-btn"
27
- >
28
- <button
29
- className="ds-option-btn--selected ds-btn ds-option-btn"
30
- >
31
- +
32
- </button>
33
- </ForwardRef(Base)>
34
- </ForwardRef(OptionButtonBase)>
35
- `;
36
-
37
- exports[`renders the OptionButtonBase with no props 1`] = `
38
- <ForwardRef(OptionButtonBase)>
39
- <ForwardRef(Base)
40
- as="button"
41
- className="ds-btn ds-option-btn"
42
- >
43
- <button
44
- className="ds-btn ds-option-btn"
45
- >
46
- +
47
- </button>
48
- </ForwardRef(Base)>
49
- </ForwardRef(OptionButtonBase)>
50
- `;
@@ -1,158 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`renders the OptionButtonSteps with activeStep=1 1`] = `
4
- <ForwardRef(OptionButtonSteps)
5
- activeStep={1}
6
- >
7
- <ForwardRef(Base)
8
- as="div"
9
- className="ds-option-btn__steps"
10
- >
11
- <div
12
- className="ds-option-btn__steps"
13
- />
14
- </ForwardRef(Base)>
15
- </ForwardRef(OptionButtonSteps)>
16
- `;
17
-
18
- exports[`renders the OptionButtonSteps with no props 1`] = `
19
- <ForwardRef(OptionButtonSteps)>
20
- <ForwardRef(Base)
21
- as="div"
22
- className="ds-option-btn__steps"
23
- >
24
- <div
25
- className="ds-option-btn__steps"
26
- />
27
- </ForwardRef(Base)>
28
- </ForwardRef(OptionButtonSteps)>
29
- `;
30
-
31
- exports[`renders the OptionButtonSteps with steps="3" 1`] = `
32
- <ForwardRef(OptionButtonSteps)
33
- steps={3}
34
- >
35
- <ForwardRef(Base)
36
- as="div"
37
- className="ds-option-btn__steps"
38
- >
39
- <div
40
- className="ds-option-btn__steps"
41
- >
42
- <ForwardRef(Base)
43
- as="div"
44
- className="ds-option-btn__step"
45
- >
46
- <div
47
- className="ds-option-btn__step"
48
- />
49
- </ForwardRef(Base)>
50
- <ForwardRef(Base)
51
- as="div"
52
- className="ds-option-btn__step"
53
- >
54
- <div
55
- className="ds-option-btn__step"
56
- />
57
- </ForwardRef(Base)>
58
- <ForwardRef(Base)
59
- as="div"
60
- className="ds-option-btn__step"
61
- >
62
- <div
63
- className="ds-option-btn__step"
64
- />
65
- </ForwardRef(Base)>
66
- </div>
67
- </ForwardRef(Base)>
68
- </ForwardRef(OptionButtonSteps)>
69
- `;
70
-
71
- exports[`renders the OptionButtonSteps with steps=3 activeStep=1 1`] = `
72
- <ForwardRef(OptionButtonSteps)
73
- activeStep={1}
74
- steps={3}
75
- >
76
- <ForwardRef(Base)
77
- as="div"
78
- className="ds-option-btn__steps"
79
- >
80
- <div
81
- className="ds-option-btn__steps"
82
- >
83
- <ForwardRef(Base)
84
- as="div"
85
- className="ds-option-btn__step--active ds-option-btn__step"
86
- >
87
- <div
88
- className="ds-option-btn__step--active ds-option-btn__step"
89
- />
90
- </ForwardRef(Base)>
91
- <ForwardRef(Base)
92
- as="div"
93
- className="ds-option-btn__step"
94
- >
95
- <div
96
- className="ds-option-btn__step"
97
- />
98
- </ForwardRef(Base)>
99
- <ForwardRef(Base)
100
- as="div"
101
- className="ds-option-btn__step"
102
- >
103
- <div
104
- className="ds-option-btn__step"
105
- />
106
- </ForwardRef(Base)>
107
- </div>
108
- </ForwardRef(Base)>
109
- </ForwardRef(OptionButtonSteps)>
110
- `;
111
-
112
- exports[`renders the OptionButtonSteps with steps=4 1`] = `
113
- <ForwardRef(OptionButtonSteps)
114
- steps={4}
115
- >
116
- <ForwardRef(Base)
117
- as="div"
118
- className="ds-option-btn__steps"
119
- >
120
- <div
121
- className="ds-option-btn__steps"
122
- >
123
- <ForwardRef(Base)
124
- as="div"
125
- className="ds-option-btn__step"
126
- >
127
- <div
128
- className="ds-option-btn__step"
129
- />
130
- </ForwardRef(Base)>
131
- <ForwardRef(Base)
132
- as="div"
133
- className="ds-option-btn__step"
134
- >
135
- <div
136
- className="ds-option-btn__step"
137
- />
138
- </ForwardRef(Base)>
139
- <ForwardRef(Base)
140
- as="div"
141
- className="ds-option-btn__step"
142
- >
143
- <div
144
- className="ds-option-btn__step"
145
- />
146
- </ForwardRef(Base)>
147
- <ForwardRef(Base)
148
- as="div"
149
- className="ds-option-btn__step"
150
- >
151
- <div
152
- className="ds-option-btn__step"
153
- />
154
- </ForwardRef(Base)>
155
- </div>
156
- </ForwardRef(Base)>
157
- </ForwardRef(OptionButtonSteps)>
158
- `;
@@ -1,65 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`renders the FloatingButton with direction="left" 1`] = `
4
- <ForwardRef(FloatingButton)
5
- direction="left"
6
- >
7
- <ForwardRef(Button)
8
- className="ds-floating-btn--left ds-floating-btn"
9
- >
10
- <ForwardRef(Base)
11
- as="button"
12
- className="ds-floating-btn--left ds-floating-btn ds-btn-primary ds-btn"
13
- printHidden={true}
14
- >
15
- <button
16
- className="ds-floating-btn--left ds-floating-btn ds-btn-primary ds-btn ds-print-hidden"
17
- >
18
- +
19
- </button>
20
- </ForwardRef(Base)>
21
- </ForwardRef(Button)>
22
- </ForwardRef(FloatingButton)>
23
- `;
24
-
25
- exports[`renders the FloatingButton with direction="right" 1`] = `
26
- <ForwardRef(FloatingButton)
27
- direction="right"
28
- >
29
- <ForwardRef(Button)
30
- className="ds-floating-btn--right ds-floating-btn"
31
- >
32
- <ForwardRef(Base)
33
- as="button"
34
- className="ds-floating-btn--right ds-floating-btn ds-btn-primary ds-btn"
35
- printHidden={true}
36
- >
37
- <button
38
- className="ds-floating-btn--right ds-floating-btn ds-btn-primary ds-btn ds-print-hidden"
39
- >
40
- +
41
- </button>
42
- </ForwardRef(Base)>
43
- </ForwardRef(Button)>
44
- </ForwardRef(FloatingButton)>
45
- `;
46
-
47
- exports[`renders the FloatingButton with no props 1`] = `
48
- <ForwardRef(FloatingButton)>
49
- <ForwardRef(Button)
50
- className="ds-floating-btn--right ds-floating-btn"
51
- >
52
- <ForwardRef(Base)
53
- as="button"
54
- className="ds-floating-btn--right ds-floating-btn ds-btn-primary ds-btn"
55
- printHidden={true}
56
- >
57
- <button
58
- className="ds-floating-btn--right ds-floating-btn ds-btn-primary ds-btn ds-print-hidden"
59
- >
60
- +
61
- </button>
62
- </ForwardRef(Base)>
63
- </ForwardRef(Button)>
64
- </ForwardRef(FloatingButton)>
65
- `;
@@ -1,50 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`renders the OptionButtonBase with selected=false 1`] = `
4
- <ForwardRef(OptionButtonBase)
5
- selected={false}
6
- >
7
- <ForwardRef(Base)
8
- as="button"
9
- className="ds-btn ds-option-btn"
10
- >
11
- <button
12
- className="ds-btn ds-option-btn"
13
- >
14
- +
15
- </button>
16
- </ForwardRef(Base)>
17
- </ForwardRef(OptionButtonBase)>
18
- `;
19
-
20
- exports[`renders the OptionButtonBase with selected=true 1`] = `
21
- <ForwardRef(OptionButtonBase)
22
- selected={true}
23
- >
24
- <ForwardRef(Base)
25
- as="button"
26
- className="ds-option-btn--selected ds-btn ds-option-btn"
27
- >
28
- <button
29
- className="ds-option-btn--selected ds-btn ds-option-btn"
30
- >
31
- +
32
- </button>
33
- </ForwardRef(Base)>
34
- </ForwardRef(OptionButtonBase)>
35
- `;
36
-
37
- exports[`renders the OptionButtonBase with no props 1`] = `
38
- <ForwardRef(OptionButtonBase)>
39
- <ForwardRef(Base)
40
- as="button"
41
- className="ds-btn ds-option-btn"
42
- >
43
- <button
44
- className="ds-btn ds-option-btn"
45
- >
46
- +
47
- </button>
48
- </ForwardRef(Base)>
49
- </ForwardRef(OptionButtonBase)>
50
- `;
@@ -1,158 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`renders the OptionButtonSteps with activeStep=1 1`] = `
4
- <ForwardRef(OptionButtonSteps)
5
- activeStep={1}
6
- >
7
- <ForwardRef(Base)
8
- as="div"
9
- className="ds-option-btn__steps"
10
- >
11
- <div
12
- className="ds-option-btn__steps"
13
- />
14
- </ForwardRef(Base)>
15
- </ForwardRef(OptionButtonSteps)>
16
- `;
17
-
18
- exports[`renders the OptionButtonSteps with no props 1`] = `
19
- <ForwardRef(OptionButtonSteps)>
20
- <ForwardRef(Base)
21
- as="div"
22
- className="ds-option-btn__steps"
23
- >
24
- <div
25
- className="ds-option-btn__steps"
26
- />
27
- </ForwardRef(Base)>
28
- </ForwardRef(OptionButtonSteps)>
29
- `;
30
-
31
- exports[`renders the OptionButtonSteps with steps="3" 1`] = `
32
- <ForwardRef(OptionButtonSteps)
33
- steps={3}
34
- >
35
- <ForwardRef(Base)
36
- as="div"
37
- className="ds-option-btn__steps"
38
- >
39
- <div
40
- className="ds-option-btn__steps"
41
- >
42
- <ForwardRef(Base)
43
- as="div"
44
- className="ds-option-btn__step"
45
- >
46
- <div
47
- className="ds-option-btn__step"
48
- />
49
- </ForwardRef(Base)>
50
- <ForwardRef(Base)
51
- as="div"
52
- className="ds-option-btn__step"
53
- >
54
- <div
55
- className="ds-option-btn__step"
56
- />
57
- </ForwardRef(Base)>
58
- <ForwardRef(Base)
59
- as="div"
60
- className="ds-option-btn__step"
61
- >
62
- <div
63
- className="ds-option-btn__step"
64
- />
65
- </ForwardRef(Base)>
66
- </div>
67
- </ForwardRef(Base)>
68
- </ForwardRef(OptionButtonSteps)>
69
- `;
70
-
71
- exports[`renders the OptionButtonSteps with steps=3 activeStep=1 1`] = `
72
- <ForwardRef(OptionButtonSteps)
73
- activeStep={1}
74
- steps={3}
75
- >
76
- <ForwardRef(Base)
77
- as="div"
78
- className="ds-option-btn__steps"
79
- >
80
- <div
81
- className="ds-option-btn__steps"
82
- >
83
- <ForwardRef(Base)
84
- as="div"
85
- className="ds-option-btn__step--active ds-option-btn__step"
86
- >
87
- <div
88
- className="ds-option-btn__step--active ds-option-btn__step"
89
- />
90
- </ForwardRef(Base)>
91
- <ForwardRef(Base)
92
- as="div"
93
- className="ds-option-btn__step"
94
- >
95
- <div
96
- className="ds-option-btn__step"
97
- />
98
- </ForwardRef(Base)>
99
- <ForwardRef(Base)
100
- as="div"
101
- className="ds-option-btn__step"
102
- >
103
- <div
104
- className="ds-option-btn__step"
105
- />
106
- </ForwardRef(Base)>
107
- </div>
108
- </ForwardRef(Base)>
109
- </ForwardRef(OptionButtonSteps)>
110
- `;
111
-
112
- exports[`renders the OptionButtonSteps with steps=4 1`] = `
113
- <ForwardRef(OptionButtonSteps)
114
- steps={4}
115
- >
116
- <ForwardRef(Base)
117
- as="div"
118
- className="ds-option-btn__steps"
119
- >
120
- <div
121
- className="ds-option-btn__steps"
122
- >
123
- <ForwardRef(Base)
124
- as="div"
125
- className="ds-option-btn__step"
126
- >
127
- <div
128
- className="ds-option-btn__step"
129
- />
130
- </ForwardRef(Base)>
131
- <ForwardRef(Base)
132
- as="div"
133
- className="ds-option-btn__step"
134
- >
135
- <div
136
- className="ds-option-btn__step"
137
- />
138
- </ForwardRef(Base)>
139
- <ForwardRef(Base)
140
- as="div"
141
- className="ds-option-btn__step"
142
- >
143
- <div
144
- className="ds-option-btn__step"
145
- />
146
- </ForwardRef(Base)>
147
- <ForwardRef(Base)
148
- as="div"
149
- className="ds-option-btn__step"
150
- >
151
- <div
152
- className="ds-option-btn__step"
153
- />
154
- </ForwardRef(Base)>
155
- </div>
156
- </ForwardRef(Base)>
157
- </ForwardRef(OptionButtonSteps)>
158
- `;
@@ -1,65 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`renders the FloatingButton with direction="left" 1`] = `
4
- <ForwardRef(FloatingButton)
5
- direction="left"
6
- >
7
- <ForwardRef(Button)
8
- className="ds-floating-btn--left ds-floating-btn"
9
- >
10
- <ForwardRef(Base)
11
- as="button"
12
- className="ds-floating-btn--left ds-floating-btn ds-btn-primary ds-btn"
13
- printHidden={true}
14
- >
15
- <button
16
- className="ds-floating-btn--left ds-floating-btn ds-btn-primary ds-btn ds-print-hidden"
17
- >
18
- +
19
- </button>
20
- </ForwardRef(Base)>
21
- </ForwardRef(Button)>
22
- </ForwardRef(FloatingButton)>
23
- `;
24
-
25
- exports[`renders the FloatingButton with direction="right" 1`] = `
26
- <ForwardRef(FloatingButton)
27
- direction="right"
28
- >
29
- <ForwardRef(Button)
30
- className="ds-floating-btn--right ds-floating-btn"
31
- >
32
- <ForwardRef(Base)
33
- as="button"
34
- className="ds-floating-btn--right ds-floating-btn ds-btn-primary ds-btn"
35
- printHidden={true}
36
- >
37
- <button
38
- className="ds-floating-btn--right ds-floating-btn ds-btn-primary ds-btn ds-print-hidden"
39
- >
40
- +
41
- </button>
42
- </ForwardRef(Base)>
43
- </ForwardRef(Button)>
44
- </ForwardRef(FloatingButton)>
45
- `;
46
-
47
- exports[`renders the FloatingButton with no props 1`] = `
48
- <ForwardRef(FloatingButton)>
49
- <ForwardRef(Button)
50
- className="ds-floating-btn--right ds-floating-btn"
51
- >
52
- <ForwardRef(Base)
53
- as="button"
54
- className="ds-floating-btn--right ds-floating-btn ds-btn-primary ds-btn"
55
- printHidden={true}
56
- >
57
- <button
58
- className="ds-floating-btn--right ds-floating-btn ds-btn-primary ds-btn ds-print-hidden"
59
- >
60
- +
61
- </button>
62
- </ForwardRef(Base)>
63
- </ForwardRef(Button)>
64
- </ForwardRef(FloatingButton)>
65
- `;
@@ -1,50 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`renders the OptionButtonBase with selected=false 1`] = `
4
- <ForwardRef(OptionButtonBase)
5
- selected={false}
6
- >
7
- <ForwardRef(Base)
8
- as="button"
9
- className="ds-btn ds-option-btn"
10
- >
11
- <button
12
- className="ds-btn ds-option-btn"
13
- >
14
- +
15
- </button>
16
- </ForwardRef(Base)>
17
- </ForwardRef(OptionButtonBase)>
18
- `;
19
-
20
- exports[`renders the OptionButtonBase with selected=true 1`] = `
21
- <ForwardRef(OptionButtonBase)
22
- selected={true}
23
- >
24
- <ForwardRef(Base)
25
- as="button"
26
- className="ds-option-btn--selected ds-btn ds-option-btn"
27
- >
28
- <button
29
- className="ds-option-btn--selected ds-btn ds-option-btn"
30
- >
31
- +
32
- </button>
33
- </ForwardRef(Base)>
34
- </ForwardRef(OptionButtonBase)>
35
- `;
36
-
37
- exports[`renders the OptionButtonBase with no props 1`] = `
38
- <ForwardRef(OptionButtonBase)>
39
- <ForwardRef(Base)
40
- as="button"
41
- className="ds-btn ds-option-btn"
42
- >
43
- <button
44
- className="ds-btn ds-option-btn"
45
- >
46
- +
47
- </button>
48
- </ForwardRef(Base)>
49
- </ForwardRef(OptionButtonBase)>
50
- `;
@@ -1,158 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`renders the OptionButtonSteps with activeStep=1 1`] = `
4
- <ForwardRef(OptionButtonSteps)
5
- activeStep={1}
6
- >
7
- <ForwardRef(Base)
8
- as="div"
9
- className="ds-option-btn__steps"
10
- >
11
- <div
12
- className="ds-option-btn__steps"
13
- />
14
- </ForwardRef(Base)>
15
- </ForwardRef(OptionButtonSteps)>
16
- `;
17
-
18
- exports[`renders the OptionButtonSteps with no props 1`] = `
19
- <ForwardRef(OptionButtonSteps)>
20
- <ForwardRef(Base)
21
- as="div"
22
- className="ds-option-btn__steps"
23
- >
24
- <div
25
- className="ds-option-btn__steps"
26
- />
27
- </ForwardRef(Base)>
28
- </ForwardRef(OptionButtonSteps)>
29
- `;
30
-
31
- exports[`renders the OptionButtonSteps with steps="3" 1`] = `
32
- <ForwardRef(OptionButtonSteps)
33
- steps={3}
34
- >
35
- <ForwardRef(Base)
36
- as="div"
37
- className="ds-option-btn__steps"
38
- >
39
- <div
40
- className="ds-option-btn__steps"
41
- >
42
- <ForwardRef(Base)
43
- as="div"
44
- className="ds-option-btn__step"
45
- >
46
- <div
47
- className="ds-option-btn__step"
48
- />
49
- </ForwardRef(Base)>
50
- <ForwardRef(Base)
51
- as="div"
52
- className="ds-option-btn__step"
53
- >
54
- <div
55
- className="ds-option-btn__step"
56
- />
57
- </ForwardRef(Base)>
58
- <ForwardRef(Base)
59
- as="div"
60
- className="ds-option-btn__step"
61
- >
62
- <div
63
- className="ds-option-btn__step"
64
- />
65
- </ForwardRef(Base)>
66
- </div>
67
- </ForwardRef(Base)>
68
- </ForwardRef(OptionButtonSteps)>
69
- `;
70
-
71
- exports[`renders the OptionButtonSteps with steps=3 activeStep=1 1`] = `
72
- <ForwardRef(OptionButtonSteps)
73
- activeStep={1}
74
- steps={3}
75
- >
76
- <ForwardRef(Base)
77
- as="div"
78
- className="ds-option-btn__steps"
79
- >
80
- <div
81
- className="ds-option-btn__steps"
82
- >
83
- <ForwardRef(Base)
84
- as="div"
85
- className="ds-option-btn__step--active ds-option-btn__step"
86
- >
87
- <div
88
- className="ds-option-btn__step--active ds-option-btn__step"
89
- />
90
- </ForwardRef(Base)>
91
- <ForwardRef(Base)
92
- as="div"
93
- className="ds-option-btn__step"
94
- >
95
- <div
96
- className="ds-option-btn__step"
97
- />
98
- </ForwardRef(Base)>
99
- <ForwardRef(Base)
100
- as="div"
101
- className="ds-option-btn__step"
102
- >
103
- <div
104
- className="ds-option-btn__step"
105
- />
106
- </ForwardRef(Base)>
107
- </div>
108
- </ForwardRef(Base)>
109
- </ForwardRef(OptionButtonSteps)>
110
- `;
111
-
112
- exports[`renders the OptionButtonSteps with steps=4 1`] = `
113
- <ForwardRef(OptionButtonSteps)
114
- steps={4}
115
- >
116
- <ForwardRef(Base)
117
- as="div"
118
- className="ds-option-btn__steps"
119
- >
120
- <div
121
- className="ds-option-btn__steps"
122
- >
123
- <ForwardRef(Base)
124
- as="div"
125
- className="ds-option-btn__step"
126
- >
127
- <div
128
- className="ds-option-btn__step"
129
- />
130
- </ForwardRef(Base)>
131
- <ForwardRef(Base)
132
- as="div"
133
- className="ds-option-btn__step"
134
- >
135
- <div
136
- className="ds-option-btn__step"
137
- />
138
- </ForwardRef(Base)>
139
- <ForwardRef(Base)
140
- as="div"
141
- className="ds-option-btn__step"
142
- >
143
- <div
144
- className="ds-option-btn__step"
145
- />
146
- </ForwardRef(Base)>
147
- <ForwardRef(Base)
148
- as="div"
149
- className="ds-option-btn__step"
150
- >
151
- <div
152
- className="ds-option-btn__step"
153
- />
154
- </ForwardRef(Base)>
155
- </div>
156
- </ForwardRef(Base)>
157
- </ForwardRef(OptionButtonSteps)>
158
- `;