@wavv/ui 1.3.1 → 1.4.0-beta.1
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/build/cjs/index.js +182 -5
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/types/components/BarChart.d.ts +17 -0
- package/build/cjs/types/components/PieChart.d.ts +18 -0
- package/build/cjs/types/index.d.ts +2 -0
- package/build/esm/index.js +182 -5
- package/build/esm/index.js.map +1 -1
- package/build/esm/types/components/BarChart.d.ts +17 -0
- package/build/esm/types/components/PieChart.d.ts +18 -0
- package/build/esm/types/index.d.ts +2 -0
- package/build/index.d.ts +32 -1
- package/package.json +2 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Margin } from './types';
|
|
3
|
+
declare type ChartData = {
|
|
4
|
+
name: string;
|
|
5
|
+
};
|
|
6
|
+
declare type Props = {
|
|
7
|
+
/** Width of the chart */
|
|
8
|
+
width: number;
|
|
9
|
+
/** Height of the chart */
|
|
10
|
+
height: number;
|
|
11
|
+
/** The chart data array */
|
|
12
|
+
data: ChartData[];
|
|
13
|
+
/** The property name of the data value key */
|
|
14
|
+
dataKey: string;
|
|
15
|
+
} & Margin;
|
|
16
|
+
declare const BarChart: ({ width, height, data, dataKey, ...rest }: Props) => JSX.Element;
|
|
17
|
+
export default BarChart;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Margin } from './types';
|
|
3
|
+
declare type ChartData = {
|
|
4
|
+
name: string;
|
|
5
|
+
value: number;
|
|
6
|
+
color?: string;
|
|
7
|
+
};
|
|
8
|
+
declare type Props = {
|
|
9
|
+
/** The chart data array */
|
|
10
|
+
data: ChartData[];
|
|
11
|
+
/** The width & height of the chart */
|
|
12
|
+
size?: number;
|
|
13
|
+
outerRadius?: number;
|
|
14
|
+
/** The radius of the inner circle */
|
|
15
|
+
innerRadius?: number;
|
|
16
|
+
} & Margin;
|
|
17
|
+
declare const PieChart: ({ size, data, innerRadius, outerRadius, ...rest }: Props) => JSX.Element;
|
|
18
|
+
export default PieChart;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { default as Audio } from './components/Audio';
|
|
2
|
+
export { default as BarChart } from './components/BarChart';
|
|
2
3
|
export { default as Button } from './components/Button';
|
|
3
4
|
export { default as Calendar } from './components/Calendar';
|
|
4
5
|
export { default as Checkbox } from './components/Checkbox';
|
|
@@ -22,6 +23,7 @@ export { default as MultiSelect } from './components/MultiSelect';
|
|
|
22
23
|
export { default as Notification } from './components/Notification';
|
|
23
24
|
export { default as Options } from './components/Options';
|
|
24
25
|
export { default as Pagination } from './components/Pagination';
|
|
26
|
+
export { default as PieChart } from './components/PieChart';
|
|
25
27
|
export { default as Progress } from './components/Progress';
|
|
26
28
|
export { default as Radio } from './components/Radio';
|
|
27
29
|
export { default as ResetStyles } from './global-styles/ResetStyles';
|
package/build/index.d.ts
CHANGED
|
@@ -581,6 +581,21 @@ declare type AudioProps = {
|
|
|
581
581
|
} & Margin & Width & As & HTMLProps<HTMLDivElement>;
|
|
582
582
|
declare const Audio: React.ForwardRefExoticComponent<Pick<AudioProps, "small" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "start" | "size" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "content" | "controls" | "coords" | "crossOrigin" | "dateTime" | "default" | "defer" | "disabled" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "name" | "nonce" | "noValidate" | "open" | "optimum" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "step" | "target" | "type" | "useMap" | "value" | "width" | "wmode" | "wrap" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "spellCheck" | "tabIndex" | "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" | keyof Margin | "infoPosition" | "centerAlignContent" | "collapsed" | "hideSliderOnStop" | "hideTimeOnStop" | "fontSizeTitle" | "fontSizeTime" | "onStop"> & React.RefAttributes<AudioRef>>;
|
|
583
583
|
|
|
584
|
+
declare type ChartData$1 = {
|
|
585
|
+
name: string;
|
|
586
|
+
};
|
|
587
|
+
declare type Props$2 = {
|
|
588
|
+
/** Width of the chart */
|
|
589
|
+
width: number;
|
|
590
|
+
/** Height of the chart */
|
|
591
|
+
height: number;
|
|
592
|
+
/** The chart data array */
|
|
593
|
+
data: ChartData$1[];
|
|
594
|
+
/** The property name of the data value key */
|
|
595
|
+
dataKey: string;
|
|
596
|
+
} & Margin;
|
|
597
|
+
declare const BarChart: ({ width, height, data, dataKey, ...rest }: Props$2) => JSX.Element;
|
|
598
|
+
|
|
584
599
|
declare type OptionItem = {
|
|
585
600
|
id: number | string;
|
|
586
601
|
label: string;
|
|
@@ -2069,6 +2084,22 @@ declare type PaginationProps = {
|
|
|
2069
2084
|
} & Margin & Width;
|
|
2070
2085
|
declare const Pagination: ({ onPageNav, page, totalPages, maxVisibleNumbers, width, ...props }: PaginationProps) => JSX.Element;
|
|
2071
2086
|
|
|
2087
|
+
declare type ChartData = {
|
|
2088
|
+
name: string;
|
|
2089
|
+
value: number;
|
|
2090
|
+
color?: string;
|
|
2091
|
+
};
|
|
2092
|
+
declare type Props$1 = {
|
|
2093
|
+
/** The chart data array */
|
|
2094
|
+
data: ChartData[];
|
|
2095
|
+
/** The width & height of the chart */
|
|
2096
|
+
size?: number;
|
|
2097
|
+
outerRadius?: number;
|
|
2098
|
+
/** The radius of the inner circle */
|
|
2099
|
+
innerRadius?: number;
|
|
2100
|
+
} & Margin;
|
|
2101
|
+
declare const PieChart: ({ size, data, innerRadius, outerRadius, ...rest }: Props$1) => JSX.Element;
|
|
2102
|
+
|
|
2072
2103
|
declare type CircleProps = ({
|
|
2073
2104
|
circle?: false;
|
|
2074
2105
|
size?: never;
|
|
@@ -2309,4 +2340,4 @@ declare const formatDate: (value: Date, option?: TimeSpec | TimeOptions) => stri
|
|
|
2309
2340
|
|
|
2310
2341
|
declare const copyToClipboard: (text: string) => void;
|
|
2311
2342
|
|
|
2312
|
-
export { Audio, AudioRef, Button, Calendar, Checkbox, Code, Table$1 as DocTable, DraftEditor, DraftEditorRef, Dropdown, OptionItem as DropdownOption, Form, Grid, ITheme, Icon, IconNames, ImageViewer, InlineCode, Input, InputRef, _default as InputUtils, Label, Menu, Message, MessageHr, Modal, MultiSelect, Notification, Options, Pagination, Progress, Radio, ResetStyles, ScrollbarStyles, Slider, Spacer, Spinner, Table, ThemeProp, ToastStyles, Toggle, Tooltip, Action as TransferAction, Item as TransferItem, TransferList, Next as TransferNext, copyToClipboard, formatDate, theme, useConfirm, useEventListener, useOnClickOutside, useSelect, useSelectAll, useWindowSize };
|
|
2343
|
+
export { Audio, AudioRef, BarChart, Button, Calendar, Checkbox, Code, Table$1 as DocTable, DraftEditor, DraftEditorRef, Dropdown, OptionItem as DropdownOption, Form, Grid, ITheme, Icon, IconNames, ImageViewer, InlineCode, Input, InputRef, _default as InputUtils, Label, Menu, Message, MessageHr, Modal, MultiSelect, Notification, Options, Pagination, PieChart, Progress, Radio, ResetStyles, ScrollbarStyles, Slider, Spacer, Spinner, Table, ThemeProp, ToastStyles, Toggle, Tooltip, Action as TransferAction, Item as TransferItem, TransferList, Next as TransferNext, copyToClipboard, formatDate, theme, useConfirm, useEventListener, useOnClickOutside, useSelect, useSelectAll, useWindowSize };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wavv/ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0-beta.1",
|
|
4
4
|
"files": [
|
|
5
5
|
"build/**/*"
|
|
6
6
|
],
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
"prism-react-renderer": "^1.3.5",
|
|
28
28
|
"react-keyed-flatten-children": "^1.3.0",
|
|
29
29
|
"react-phone-input-auto-format": "^0.1.0",
|
|
30
|
+
"recharts": "^2.1.16",
|
|
30
31
|
"sanitize.css": "^13.0.0",
|
|
31
32
|
"uuid": "^8.3.2",
|
|
32
33
|
"webfontloader": "^1.6.28"
|