@aveonline/ui-react 2.4.8 → 2.5.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.
Files changed (40) hide show
  1. package/README.md +93 -93
  2. package/dist/index.d.ts +3 -2
  3. package/dist/reset.css +273 -273
  4. package/dist/tailwind.config.js +246 -246
  5. package/dist/tokens.css +160 -160
  6. package/dist/ui/atoms/Tooltip/TooltipAnchor.d.ts +1 -1
  7. package/dist/ui/atoms/Tooltip/TooltipFloat.d.ts +1 -1
  8. package/dist/ui/index.d.ts +3 -2
  9. package/dist/ui/molecules/Dropdowns/DropdownFilter/Command.d.ts +1 -1
  10. package/dist/ui/molecules/Selectable/select.d.ts +28 -0
  11. package/dist/ui/molecules/Table/AsyncTable/AsyncTable.d.ts +9 -0
  12. package/dist/ui/molecules/Table/AsyncTable/IAsyncTable.d.ts +53 -0
  13. package/dist/ui/molecules/Table/AsyncTable/atoms/InputSearch.d.ts +7 -0
  14. package/dist/ui/molecules/Table/AsyncTable/atoms/index.d.ts +5 -0
  15. package/dist/ui/molecules/Table/AsyncTable/atoms/pagination/IPagination.d.ts +25 -0
  16. package/dist/ui/molecules/Table/AsyncTable/atoms/pagination/Pagination.d.ts +4 -0
  17. package/dist/ui/molecules/Table/AsyncTable/atoms/pagination/index.d.ts +2 -0
  18. package/dist/ui/molecules/Table/AsyncTable/atoms/pagination/usePagination.d.ts +9 -0
  19. package/dist/ui/molecules/Table/AsyncTable/index.d.ts +2 -0
  20. package/dist/ui/molecules/Table/{ITable.d.ts → Table/ITable.d.ts} +3 -3
  21. package/dist/ui/molecules/Table/Table/atoms/ButtonPagination.d.ts +4 -0
  22. package/dist/ui/molecules/Table/Table/atoms/ISortTable.d.ts +14 -0
  23. package/dist/ui/molecules/Table/Table/atoms/SortTable.d.ts +5 -0
  24. package/dist/ui/molecules/Table/Table/atoms/Table.d.ts +9 -0
  25. package/dist/ui/molecules/TextArea/TextArea.d.ts +1 -1
  26. package/dist/ui-react.mjs +14366 -14734
  27. package/dist/vite-env.d.ts +2 -2
  28. package/package.json +1 -1
  29. package/dist/ui/atoms/Tooltip/useTooltip.d.ts +0 -53
  30. /package/dist/ui/molecules/Table/{atoms → AsyncTable/atoms}/ButtonPagination.d.ts +0 -0
  31. /package/dist/ui/molecules/Table/{atoms → AsyncTable/atoms}/ISortTable.d.ts +0 -0
  32. /package/dist/ui/molecules/Table/{atoms → AsyncTable/atoms}/SortTable.d.ts +0 -0
  33. /package/dist/ui/molecules/Table/{atoms → AsyncTable/atoms}/Table.d.ts +0 -0
  34. /package/dist/ui/molecules/Table/{Table.d.ts → Table/Table.d.ts} +0 -0
  35. /package/dist/ui/molecules/Table/{atoms → Table/atoms}/CheckBoxTable.d.ts +0 -0
  36. /package/dist/ui/molecules/Table/{atoms → Table/atoms}/IPagination.d.ts +0 -0
  37. /package/dist/ui/molecules/Table/{atoms → Table/atoms}/InputSearch.d.ts +0 -0
  38. /package/dist/ui/molecules/Table/{atoms → Table/atoms}/Pagination.d.ts +0 -0
  39. /package/dist/ui/molecules/Table/{atoms → Table/atoms}/index.d.ts +0 -0
  40. /package/dist/ui/molecules/Table/{index.d.ts → Table/index.d.ts} +0 -0
@@ -1,8 +1,8 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { ColumnDef, Row, Table } from '@tanstack/react-table';
3
- import { IOptionDropdownButton } from '../Dropdowns/DropdownButton/IDropdownButton';
3
+ import { IOptionDropdownButton } from '../../Dropdowns/DropdownButton/IDropdownButton';
4
4
  import type { ISortItem, IPagination, ISortTable } from './atoms';
5
- import { IPropsEmptyState } from '../EmptyState';
5
+ import { IPropsEmptyState } from '../../EmptyState';
6
6
  interface ITableToolbar<TData> {
7
7
  table: Table<TData>;
8
8
  }
@@ -48,4 +48,4 @@ interface ColorRowTable<TData extends Record<keyof TData, unknown>> {
48
48
  condition: (value: TData) => boolean;
49
49
  }
50
50
  declare type IEmptyState = IPropsEmptyState;
51
- export type { IPropsTable, ColumnDef, ISortItem, IPagination, ISortTable, IEmptyState, ITableToolbar, ColorRowTable };
51
+ export type { ColumnDef, IPropsTable, ISortItem, IPagination, ISortTable, IEmptyState, ITableToolbar, ColorRowTable };
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { IButtonPagination } from './IPagination';
3
+ declare function ButtonPagination({ pageIndex, currentPage, onClick, position, lastCount }: IButtonPagination): JSX.Element;
4
+ export default ButtonPagination;
@@ -0,0 +1,14 @@
1
+ import { RowData, Table } from '@tanstack/react-table';
2
+ interface ISortItem {
3
+ idHeader: string;
4
+ title: string;
5
+ desc?: boolean;
6
+ asc?: boolean;
7
+ }
8
+ interface ISortTable<T extends RowData> {
9
+ table: Table<T>;
10
+ sortItem: Array<ISortItem>;
11
+ checkBoxSelect: string;
12
+ titleSortTable?: string;
13
+ }
14
+ export type { ISortTable, ISortItem };
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { RowData } from '@tanstack/react-table';
3
+ import type { ISortTable } from './ISortTable';
4
+ declare function SortTable<T extends RowData>({ table, sortItem, checkBoxSelect, titleSortTable }: ISortTable<T>): JSX.Element;
5
+ export default SortTable;
@@ -0,0 +1,9 @@
1
+ import { HTMLAttributes, TdHTMLAttributes, ThHTMLAttributes } from 'react';
2
+ declare const Table: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLTableElement> & import("react").RefAttributes<HTMLTableElement>>;
3
+ declare const TableHeader: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLTableSectionElement> & import("react").RefAttributes<HTMLTableSectionElement>>;
4
+ declare const TableBody: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLTableSectionElement> & import("react").RefAttributes<HTMLTableSectionElement>>;
5
+ declare const TableFooter: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLTableSectionElement> & import("react").RefAttributes<HTMLTableSectionElement>>;
6
+ declare const TableRow: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLTableRowElement> & import("react").RefAttributes<HTMLTableRowElement>>;
7
+ declare const TableHead: import("react").ForwardRefExoticComponent<ThHTMLAttributes<HTMLTableCellElement> & import("react").RefAttributes<HTMLTableCellElement>>;
8
+ declare const TableCell: import("react").ForwardRefExoticComponent<TdHTMLAttributes<HTMLTableCellElement> & import("react").RefAttributes<HTMLTableCellElement>>;
9
+ export { Table, TableHeader, TableBody, TableFooter, TableRow, TableHead, TableCell };
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { ITextArea } from './ITextArea';
3
- declare const TextArea: import("react").ForwardRefExoticComponent<Pick<ITextArea, "error" | "size" | "className" | "color" | "disabled" | "default" | "children" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "src" | "alt" | "as" | "type" | "onClick" | "start" | "id" | "name" | "value" | "helpText" | "onChange" | "isError" | "checked" | "target" | "hidden" | "htmlFor" | "kind" | "download" | "list" | "role" | "defaultChecked" | "tabIndex" | "aria-checked" | "aria-labelledby" | "aria-describedby" | "onKeyUp" | "onKeyPress" | "key" | "open" | "width" | "height" | "content" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "high" | "href" | "hrefLang" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "nonce" | "noValidate" | "optimum" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "sizes" | "srcDoc" | "srcLang" | "srcSet" | "step" | "useMap" | "wmode" | "wrap" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "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-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" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPressCapture" | "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" | "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" | "showErrorText" | "resizable" | "onChangeValue"> & import("react").RefAttributes<HTMLTextAreaElement>>;
3
+ declare const TextArea: import("react").ForwardRefExoticComponent<Pick<ITextArea, "error" | "size" | "className" | "color" | "disabled" | "default" | "children" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "src" | "alt" | "as" | "type" | "onClick" | "start" | "id" | "name" | "value" | "helpText" | "onChange" | "isError" | "checked" | "target" | "hidden" | "htmlFor" | "kind" | "download" | "list" | "role" | "defaultChecked" | "tabIndex" | "aria-checked" | "aria-labelledby" | "aria-describedby" | "onKeyUp" | "onKeyPress" | "key" | "open" | "content" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "high" | "href" | "hrefLang" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "nonce" | "noValidate" | "optimum" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "sizes" | "srcDoc" | "srcLang" | "srcSet" | "step" | "useMap" | "width" | "wmode" | "wrap" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "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-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" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPressCapture" | "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" | "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" | "showErrorText" | "resizable" | "onChangeValue"> & import("react").RefAttributes<HTMLTextAreaElement>>;
4
4
  export default TextArea;