freemium-survey-components 0.5.2-beta.1 → 0.5.2-beta.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "freemium-survey-components",
3
- "version": "0.5.2-beta.1",
3
+ "version": "0.5.2-beta.3",
4
4
  "description": "React Survey Ui Components",
5
5
  "main": "lib/index.cjs.js",
6
6
  "module": "lib/index.esm.js",
@@ -15,8 +15,7 @@
15
15
  "start": "webpack-dev-server --config webpack.config.js",
16
16
  "build:dev": "webpack --config webpack.config.js",
17
17
  "build": "rollup -c rollup.config.ts",
18
- "test": "echo \"Error: no test specified\" && exit 1",
19
- "prepublishOnly": "rollup -c rollup.config.ts"
18
+ "test": "echo \"Error: no test specified\" && exit 1"
20
19
  },
21
20
  "repository": {
22
21
  "type": "git",
@@ -1,25 +0,0 @@
1
- import React from 'react';
2
- import './style.scss';
3
- export declare const BUTTON_SIZE_VARIANTS: {
4
- LARGE: string;
5
- MINI: string;
6
- NORMAL: string;
7
- };
8
- export declare type ButtonSizeKey = 'large' | 'mini' | 'normal' | undefined;
9
- export declare type buttonHTMLType = 'button' | 'reset' | 'submit' | undefined;
10
- export declare type buttonType = 'primary' | 'secondary' | 'danger' | 'link';
11
- export declare type ButtonProps = {
12
- type?: buttonType;
13
- htmlType?: buttonHTMLType;
14
- size?: ButtonSizeKey;
15
- inline?: boolean;
16
- disabled?: boolean;
17
- large?: boolean;
18
- className?: string;
19
- ref?: any;
20
- onClick?: any;
21
- overrideStyleClassName?: string;
22
- loading?: boolean;
23
- children: any;
24
- };
25
- export declare const Button: (props: ButtonProps & React.HTMLAttributes<HTMLButtonElement>) => JSX.Element;
@@ -1,14 +0,0 @@
1
- /// <reference types="react" />
2
- import './style.css';
3
- declare type Option = {
4
- id: string;
5
- name?: string;
6
- label: string;
7
- };
8
- interface CheckboxGroupInterface {
9
- options: Array<Option>;
10
- values: string[];
11
- onChangeHandler: (newValues: string[]) => void;
12
- }
13
- declare const CheckboxGroup: ({ values, options, onChangeHandler, }: CheckboxGroupInterface) => JSX.Element;
14
- export { CheckboxGroup };
@@ -1,6 +0,0 @@
1
- export * from './nps';
2
- export * from './text-input';
3
- export * from './checkbox';
4
- export * from './radio-button';
5
- export * from './progressbar';
6
- export * from './button';
@@ -1,23 +0,0 @@
1
- /// <reference types="react" />
2
- import './style.scss';
3
- export declare type ButtonShapeType = 'rounded' | 'square' | 'curved';
4
- declare type NPSProps = {
5
- type_info: {
6
- linear_scale: {
7
- button_shape: ButtonShapeType;
8
- button_style: any;
9
- };
10
- validation: {
11
- min: number;
12
- };
13
- score_presets: {
14
- start: string;
15
- end: string;
16
- };
17
- footer_text: string;
18
- };
19
- onChangeHandler: (value: number) => void;
20
- npsValue: number;
21
- };
22
- declare const NPS: (props: NPSProps) => JSX.Element;
23
- export { NPS };
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- import './style.css';
3
- interface ProgressBarProps {
4
- totalSteps: number;
5
- completedSteps: number;
6
- }
7
- declare const ProgressBar: (props: ProgressBarProps) => JSX.Element;
8
- export { ProgressBar };
@@ -1,27 +0,0 @@
1
- import React from 'react';
2
- import './style.css';
3
- interface RadioButtonProps {
4
- checked: boolean;
5
- children: string;
6
- value: string | number;
7
- name: string;
8
- onChange: (e: any) => void;
9
- id?: string;
10
- autoFocus?: boolean;
11
- }
12
- interface RadioGroupInterface {
13
- options: Array<{
14
- id: string;
15
- name?: string;
16
- label: string;
17
- }>;
18
- value: string;
19
- name: string;
20
- onChangeHandler: (newValue: string) => void;
21
- }
22
- declare const RadioGroup: ({ name, options, value, onChangeHandler, }: RadioGroupInterface) => JSX.Element;
23
- declare const Radio: React.ComponentType<Partial<{
24
- checked: boolean;
25
- autoFocus: boolean;
26
- }> & Pick<RadioButtonProps & React.RefAttributes<HTMLInputElement>, "name" | "value" | "ref" | "children" | "onChange" | "id" | "key">>;
27
- export { Radio, RadioGroup };
@@ -1,52 +0,0 @@
1
- import React from 'react';
2
- import './style.css';
3
- interface InputProps extends React.HTMLAttributes<HTMLInputElement> {
4
- isErrored?: boolean;
5
- showCount?: boolean;
6
- errorText?: string;
7
- maxLength?: any;
8
- type?: string;
9
- label: string;
10
- style?: any;
11
- value?: any;
12
- inputStyle?: any;
13
- className?: string;
14
- startLabel?: React.ReactNode | any;
15
- endLabel?: React.ReactNode | any;
16
- isRequired?: boolean;
17
- inline?: boolean;
18
- }
19
- interface TextAreaProps extends React.HTMLAttributes<HTMLTextAreaElement> {
20
- isErrored: boolean;
21
- showCount?: boolean;
22
- maxLength?: any;
23
- errorText?: string;
24
- style?: any;
25
- value?: any;
26
- inputStyle?: any;
27
- className?: string;
28
- label: string;
29
- startLabel?: React.ReactNode | any;
30
- startAdornment?: React.ReactNode | any;
31
- endLabel?: React.ReactNode | any;
32
- endAdornment?: React.ReactNode | any;
33
- isRequired?: boolean;
34
- inline?: boolean;
35
- }
36
- declare const Input: React.ComponentType<Partial<{
37
- isRequired: boolean;
38
- showCount: boolean;
39
- isErrored: boolean;
40
- inline: boolean;
41
- spellCheck: boolean;
42
- autoFocus: boolean;
43
- }> & Pick<InputProps & React.RefAttributes<HTMLInputElement>, "ref" | "errorText" | "maxLength" | "type" | "label" | "style" | "value" | "inputStyle" | "className" | "startLabel" | "endLabel" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "tabIndex" | "title" | "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" | "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">>;
44
- declare const TextArea: React.ComponentType<Partial<{
45
- isRequired: boolean;
46
- showCount: boolean;
47
- isErrored: boolean;
48
- inline: boolean;
49
- spellCheck: boolean;
50
- autoFocus: boolean;
51
- }> & Pick<TextAreaProps & React.RefAttributes<HTMLTextAreaElement>, "ref" | "errorText" | "maxLength" | "label" | "style" | "value" | "inputStyle" | "className" | "startLabel" | "endLabel" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "tabIndex" | "title" | "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" | "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" | "startAdornment" | "endAdornment" | "key">>;
52
- export { Input, TextArea };
@@ -1,12 +0,0 @@
1
- /// <reference types="react" />
2
- import './style.scss';
3
- interface SurveyProps {
4
- survey: {
5
- [key: string]: any;
6
- };
7
- onSubmit: (data: {
8
- [key: string]: any;
9
- }) => void;
10
- }
11
- declare const Survey: ({ survey, onSubmit }: SurveyProps) => JSX.Element | null;
12
- export { Survey };
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- declare const Question: ({ question, formValues, onChangeHandler }: any) => JSX.Element | null;
3
- export default Question;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const withDefaults: <P, DP>(component: React.ComponentType<P>, defaultProps: DP) => React.ComponentType<Partial<DP> & Pick<P, Exclude<keyof P, keyof DP>>>;
3
- export { withDefaults };