@popsure/dirty-swan 0.26.3 → 0.26.4
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/dist/assets/checkmark.svg +1 -1
- package/dist/assets/icon-form-dropdown.svg +1 -1
- package/dist/index.css +5 -1
- package/dist/index.css.map +1 -1
- package/dist/index.js +255 -185
- package/dist/index.js.map +1 -1
- package/dist/lib/components/button/index.d.ts +1 -1
- package/dist/lib/components/cards/cardWithLeftIcon/index.d.ts +2 -2
- package/dist/lib/components/cards/cardWithTopIcon/index.d.ts +2 -2
- package/dist/lib/components/cards/cardWithTopLeftIcon/index.d.ts +2 -2
- package/dist/lib/components/cards/index.d.ts +1 -1
- package/dist/lib/components/downloadButton/index.d.ts +10 -0
- package/dist/lib/index.d.ts +3 -1
- package/dist/lib/models/download.d.ts +1 -0
- package/dist/lib/scss/private/_reset.scss +5 -1
- package/dist/lib/scss/private/components/assets/checkmark.svg +1 -1
- package/dist/lib/scss/private/components/assets/icon-form-dropdown.svg +1 -1
- package/package.json +1 -1
|
@@ -9,5 +9,5 @@ declare const _default: React.ForwardRefExoticComponent<Pick<{
|
|
|
9
9
|
buttonType?: ButtonType | undefined;
|
|
10
10
|
leftIcon?: Icon | undefined;
|
|
11
11
|
loading?: boolean | undefined;
|
|
12
|
-
} & Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "children">, "hidden" | "title" | "className" | "form" | "slot" | "style" | "value" | "onChange" | "dir" | "onBlur" | "onFocus" | "onKeyDown" | "tabIndex" | "onDragEnter" | "onDragOver" | "onDragLeave" | "leftIcon" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "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" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeaveCapture" | "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" | "disabled" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "type" | "loading" | "buttonTitle" | "buttonType"> & React.RefAttributes<
|
|
12
|
+
} & Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "children">, "hidden" | "title" | "className" | "form" | "slot" | "style" | "value" | "onChange" | "dir" | "onBlur" | "onFocus" | "onKeyDown" | "tabIndex" | "onDragEnter" | "onDragOver" | "onDragLeave" | "leftIcon" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "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" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeaveCapture" | "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" | "disabled" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "type" | "loading" | "buttonTitle" | "buttonType"> & React.RefAttributes<HTMLButtonElement>>;
|
|
13
13
|
export default _default;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { CardProps } from '..';
|
|
3
3
|
import { Icon } from '../icons';
|
|
4
|
-
declare const _default: ({ className, title,
|
|
4
|
+
declare const _default: ({ className, title, cardSize, children, leftIcon, rightIcon, state, dropshadow, ...props }: {
|
|
5
5
|
title: string;
|
|
6
6
|
children: import("react").ReactNode;
|
|
7
7
|
state?: ("actionable" | "static" | "muted") | undefined;
|
|
8
8
|
dropshadow?: boolean | undefined;
|
|
9
9
|
} & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
|
10
|
-
|
|
10
|
+
cardSize?: "big" | "small" | "xsmall" | "medium" | undefined;
|
|
11
11
|
leftIcon?: Icon | undefined;
|
|
12
12
|
rightIcon?: Icon | "arrow" | undefined;
|
|
13
13
|
}) => JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { CardProps } from '..';
|
|
3
3
|
import { Icon, IconSize } from '../icons';
|
|
4
|
-
declare const _default: ({ className, title,
|
|
4
|
+
declare const _default: ({ className, title, cardSize, children, topIcon, topIconSize, rightIcon, state, dropshadow, ...props }: {
|
|
5
5
|
title: string;
|
|
6
6
|
children: import("react").ReactNode;
|
|
7
7
|
state?: ("actionable" | "static" | "muted") | undefined;
|
|
@@ -9,7 +9,7 @@ declare const _default: ({ className, title, titleSize, children, topIcon, topIc
|
|
|
9
9
|
} & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
|
10
10
|
topIcon: Icon;
|
|
11
11
|
topIconSize: IconSize;
|
|
12
|
-
|
|
12
|
+
cardSize?: "big" | "small" | "medium" | undefined;
|
|
13
13
|
rightIcon?: Icon | "arrow" | undefined;
|
|
14
14
|
}) => JSX.Element;
|
|
15
15
|
export default _default;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { CardProps } from '..';
|
|
3
3
|
import { Icon } from '../icons';
|
|
4
|
-
declare const _default: ({ className, title,
|
|
4
|
+
declare const _default: ({ className, title, cardSize, children, leftIcon, rightIcon, state, dropshadow, ...props }: {
|
|
5
5
|
title: string;
|
|
6
6
|
children: import("react").ReactNode;
|
|
7
7
|
state?: ("actionable" | "static" | "muted") | undefined;
|
|
8
8
|
dropshadow?: boolean | undefined;
|
|
9
9
|
} & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
|
10
|
-
|
|
10
|
+
cardSize?: "big" | "small" | "xsmall" | "medium" | undefined;
|
|
11
11
|
leftIcon?: Icon | "logo" | undefined;
|
|
12
12
|
rightIcon?: Icon | "arrow" | undefined;
|
|
13
13
|
}) => JSX.Element;
|
|
@@ -11,6 +11,6 @@ export declare type CardProps = {
|
|
|
11
11
|
state?: CardState;
|
|
12
12
|
dropshadow?: boolean;
|
|
13
13
|
} & JSX.IntrinsicElements['div'];
|
|
14
|
-
export declare const
|
|
14
|
+
export declare const headingForCardSize: (cardSize: 'xsmall' | 'small' | 'medium' | 'big') => string;
|
|
15
15
|
export declare const associatedClassForCardState: (state: CardState, dropshadow: boolean) => string;
|
|
16
16
|
export { CardWithTopLeftIcon, CardWithLeftIcon, CardWithTopIcon, InfoCard, CardButton, };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DownloadStatus } from '../../models/download';
|
|
3
|
+
interface Props {
|
|
4
|
+
downloadStatus: DownloadStatus;
|
|
5
|
+
onDownload: () => void;
|
|
6
|
+
className?: string;
|
|
7
|
+
customFail?: React.ReactNode;
|
|
8
|
+
}
|
|
9
|
+
declare const DownloadButton: ({ downloadStatus, onDownload, className, customFail, }: Props) => JSX.Element;
|
|
10
|
+
export default DownloadButton;
|
package/dist/lib/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import AutocompleteAddress from './components/autocompleteAddress';
|
|
|
5
5
|
import Input from './components/input';
|
|
6
6
|
import MultiDropzone from './components/multiDropzone';
|
|
7
7
|
import DownloadRing from './components/downloadRing';
|
|
8
|
+
import DownloadButton from './components/downloadButton';
|
|
8
9
|
import IbanInput from './components/input/iban';
|
|
9
10
|
import CurrencyInput from './components/input/currency';
|
|
10
11
|
import { BottomModal, RegularModal, BottomOrRegularModal } from './components/modal';
|
|
@@ -15,6 +16,7 @@ import Chip from './components/chip';
|
|
|
15
16
|
import AutoSuggestInput from './components/input/autoSuggestInput';
|
|
16
17
|
import { ComparisonTable, TableRating, TableTrueFalse, TableRowHeader, TableInfoButton, TableHeader } from './components/comparisonTable';
|
|
17
18
|
import SegmentedControl from './components/segmentedControl';
|
|
18
|
-
export { DateSelector, Dropzone, SignaturePad, AutocompleteAddress, Input, MultiDropzone, DownloadRing, IbanInput, BottomModal, RegularModal, BottomOrRegularModal, CardWithTopLeftIcon, CardWithLeftIcon, CardWithTopIcon, InfoCard, CardButton, Button, CurrencyInput, AutoSuggestMultiSelect, Chip, AutoSuggestInput, ComparisonTable, TableRating, TableTrueFalse, TableRowHeader, TableInfoButton, SegmentedControl, };
|
|
19
|
+
export { DateSelector, Dropzone, SignaturePad, AutocompleteAddress, Input, MultiDropzone, DownloadRing, DownloadButton, IbanInput, BottomModal, RegularModal, BottomOrRegularModal, CardWithTopLeftIcon, CardWithLeftIcon, CardWithTopIcon, InfoCard, CardButton, Button, CurrencyInput, AutoSuggestMultiSelect, Chip, AutoSuggestInput, ComparisonTable, TableRating, TableTrueFalse, TableRowHeader, TableInfoButton, SegmentedControl, };
|
|
19
20
|
export type { TableHeader };
|
|
20
21
|
export type { DownloadRingDownloadStatus } from './models/downloadRing';
|
|
22
|
+
export type { DownloadStatus } from './models/download';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare type DownloadStatus = 'INITIAL' | 'GENERATING' | 'COMPLETED' | 'FAILED';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
<svg width="12" height="9" viewBox="0 0 12 9" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M10.6667 1.5L4.25 7.91667L1.33334 5" stroke="#F4F4F9"
|
|
2
|
+
<path d="M10.6667 1.5L4.25 7.91667L1.33334 5" stroke="#F4F4F9" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"/>
|
|
3
3
|
</svg>
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
<svg width="32" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M6 9L12 15L18 9" stroke="#B4B4BA"
|
|
2
|
+
<path d="M6 9L12 15L18 9" stroke="#B4B4BA" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"/>
|
|
3
3
|
</svg>
|