digitinary-ui 1.0.0 → 1.0.2

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 (83) hide show
  1. package/README.md +5 -6
  2. package/dist/components/Accordion/Accordion.d.ts +3 -0
  3. package/dist/components/Accordion/index.d.ts +1 -0
  4. package/dist/components/Alert/Alert.d.ts +3 -0
  5. package/dist/components/Alert/index.d.ts +1 -0
  6. package/dist/components/Button/Button.d.ts +6 -0
  7. package/dist/components/Button/index.d.ts +1 -0
  8. package/dist/components/Card/Card.d.ts +3 -0
  9. package/dist/components/Card/index.d.ts +1 -0
  10. package/dist/components/Checkbox/Checkbox.d.ts +3 -0
  11. package/dist/components/Checkbox/index.d.ts +1 -0
  12. package/dist/components/Chip/Chip.d.ts +6 -0
  13. package/dist/components/Chip/index.d.ts +1 -0
  14. package/dist/components/Date/Date.d.ts +4 -0
  15. package/dist/components/Date/index.d.ts +1 -0
  16. package/dist/components/DateRange/DateRange.d.ts +4 -0
  17. package/dist/components/DateRange/index.d.ts +1 -0
  18. package/dist/components/Dialog/Dialog.d.ts +3 -0
  19. package/dist/components/Dialog/index.d.ts +1 -0
  20. package/dist/components/HelperText/HelperText.d.ts +3 -0
  21. package/dist/components/HelperText/index.d.ts +1 -0
  22. package/dist/components/Input/Input.d.ts +3 -0
  23. package/dist/components/Input/index.d.ts +1 -0
  24. package/dist/components/Label/Label.d.ts +3 -0
  25. package/dist/components/Label/index.d.ts +1 -0
  26. package/dist/components/Overlay/Overlay.d.ts +3 -0
  27. package/dist/components/Overlay/index.d.ts +1 -0
  28. package/dist/components/Pagination/Pagination.d.ts +3 -0
  29. package/dist/components/Pagination/index.d.ts +1 -0
  30. package/dist/components/Radio/Radio.d.ts +4 -0
  31. package/dist/components/Radio/index.d.ts +1 -0
  32. package/dist/components/RadioGroup/RadioGroup.d.ts +3 -0
  33. package/dist/components/RadioGroup/index.d.ts +1 -0
  34. package/dist/components/SelectGroup/SelectGroup.d.ts +3 -0
  35. package/dist/components/SelectGroup/index.d.ts +1 -0
  36. package/dist/components/SideDrawer/SideDrawer.d.ts +3 -0
  37. package/dist/components/SideDrawer/index.d.ts +1 -0
  38. package/dist/components/Switch/Switch.d.ts +3 -0
  39. package/dist/components/Switch/index.d.ts +1 -0
  40. package/dist/components/Table/Table.d.ts +3 -0
  41. package/dist/components/Table/index.d.ts +1 -0
  42. package/dist/components/TextArea/TextArea.d.ts +3 -0
  43. package/dist/components/TextArea/index.d.ts +1 -0
  44. package/dist/components/Tooltip/Tooltip.d.ts +6 -0
  45. package/dist/components/index.d.ts +19 -0
  46. package/dist/constants/index.d.ts +4 -0
  47. package/dist/icons/AlertErrorIcon.d.ts +3 -0
  48. package/dist/icons/AlertInfoIcon.d.ts +3 -0
  49. package/dist/icons/AlertSuccessIcon.d.ts +3 -0
  50. package/dist/icons/AlertWarningIcon.d.ts +3 -0
  51. package/dist/icons/ArrowBottom.d.ts +3 -0
  52. package/dist/icons/ArrowLeft.d.ts +3 -0
  53. package/dist/icons/ArrowRight.d.ts +3 -0
  54. package/dist/icons/ArrowUpIcon.d.ts +3 -0
  55. package/dist/icons/Calendar.d.ts +3 -0
  56. package/dist/icons/CheckMark.d.ts +3 -0
  57. package/dist/icons/ClearField.d.ts +3 -0
  58. package/dist/icons/CloseIcon.d.ts +3 -0
  59. package/dist/icons/DoubleLeftArrow.d.ts +3 -0
  60. package/dist/icons/DoubleRightArrow.d.ts +3 -0
  61. package/dist/icons/ExcelIcon.d.ts +3 -0
  62. package/dist/icons/HidePasswordIcon.d.ts +3 -0
  63. package/dist/icons/InfoIcon.d.ts +3 -0
  64. package/dist/icons/LeftArrowIcon.d.ts +3 -0
  65. package/dist/icons/LoaderIcon.d.ts +3 -0
  66. package/dist/icons/PdfIcon.d.ts +3 -0
  67. package/dist/icons/RightArrowIcon.d.ts +3 -0
  68. package/dist/icons/SearchIcon.d.ts +3 -0
  69. package/dist/icons/SelectFieldDownArrow.d.ts +3 -0
  70. package/dist/icons/SelectFieldUpArrow.d.ts +3 -0
  71. package/dist/icons/ShowPasswordIcon.d.ts +3 -0
  72. package/dist/icons/SortIcon.d.ts +3 -0
  73. package/dist/index.d.ts +3 -0
  74. package/dist/index.js +2 -0
  75. package/dist/index.js.LICENSE.txt +13 -0
  76. package/dist/types/all.scss.d.ts +5 -0
  77. package/dist/types/enums.d.ts +21 -0
  78. package/dist/types/index.d.ts +3 -0
  79. package/dist/types/interfaces.d.ts +267 -0
  80. package/dist/types/jsx.d.ts +13 -0
  81. package/dist/types/types.d.ts +23 -0
  82. package/dist/utils/index.d.ts +82 -0
  83. package/package.json +1 -1
package/README.md CHANGED
@@ -1,14 +1,14 @@
1
- # arena-ui
1
+ # digitinary-ui
2
2
 
3
- > Arena UI System
3
+ > Digitinary UI System
4
4
 
5
- [![NPM](https://img.shields.io/npm/v/arena-ui.svg)](https://www.npmjs.com/package/arena-ui)
5
+ [![NPM](https://img.shields.io/npm/v/digitinary-ui.svg)](https://www.npmjs.com/package/digitinary-ui)
6
6
  [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
7
7
 
8
8
  ## Install
9
9
 
10
10
  ```bash
11
- npm install --save arena-ui
11
+ npm install digitinary-ui
12
12
  ```
13
13
 
14
14
  ## Usage
@@ -16,8 +16,7 @@ npm install --save arena-ui
16
16
  ```jsx
17
17
  import React, { Component } from 'react'
18
18
 
19
- import MyComponent from 'arena-ui'
20
- import 'arena-ui/dist/index.css'
19
+ import MyComponent from 'digitinary-ui'
21
20
 
22
21
  class Example extends Component {
23
22
  render() {
@@ -0,0 +1,3 @@
1
+ import { AccordionProps } from '../../types';
2
+ declare const Accordion: ({ defaultExpanded, expanded, disabled, onChange, summary, children, className, }: AccordionProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default Accordion;
@@ -0,0 +1 @@
1
+ export { default } from './Accordion';
@@ -0,0 +1,3 @@
1
+ import { AlertProps } from '../../types';
2
+ declare const Alert: ({ severity, color, variant, onClose, action, className, icon, customStyle, children, }: AlertProps) => import("react/jsx-runtime").JSX.Element | null;
3
+ export default Alert;
@@ -0,0 +1 @@
1
+ export { default } from './Alert';
@@ -0,0 +1,6 @@
1
+ import { ButtonPropsType } from '../../types';
2
+ declare const Button: {
3
+ ({ children, className, variant, color, size, type, disabled, loading, startIcon, endIcon, fullWidth, onKeyDown, onClick, active, ...props }: ButtonPropsType): import("react/jsx-runtime").JSX.Element;
4
+ displayName: string;
5
+ };
6
+ export default Button;
@@ -0,0 +1 @@
1
+ export { default } from './Button';
@@ -0,0 +1,3 @@
1
+ import { CardPropsType } from '../../types';
2
+ declare const Card: ({ header, children, footer, className, rounded }: CardPropsType) => import("react/jsx-runtime").JSX.Element;
3
+ export default Card;
@@ -0,0 +1 @@
1
+ export { default } from './Card';
@@ -0,0 +1,3 @@
1
+ import { CheckboxPropsType } from '../../types';
2
+ declare const Checkbox: ({ label, labelPlacement, handleCheckboxChange, className, checked, size, disabled, }: CheckboxPropsType) => import("react/jsx-runtime").JSX.Element;
3
+ export default Checkbox;
@@ -0,0 +1 @@
1
+ export { default } from './Checkbox';
@@ -0,0 +1,6 @@
1
+ import { ChipPropsType } from '../../types';
2
+ declare const Chip: {
3
+ ({ className, color, children, variant, clickable, onClick, onDelete, size, id, }: ChipPropsType): import("react/jsx-runtime").JSX.Element;
4
+ displayName: string;
5
+ };
6
+ export default Chip;
@@ -0,0 +1 @@
1
+ export { default } from './Chip';
@@ -0,0 +1,4 @@
1
+ import { FC } from 'react';
2
+ import { DateProps } from '../../types';
3
+ declare const Date: FC<DateProps>;
4
+ export default Date;
@@ -0,0 +1 @@
1
+ export { default } from './Date';
@@ -0,0 +1,4 @@
1
+ import { FC } from 'react';
2
+ import { DateRangeProps } from '../../types';
3
+ declare const DateRange: FC<DateRangeProps>;
4
+ export default DateRange;
@@ -0,0 +1 @@
1
+ export { default } from './DateRange';
@@ -0,0 +1,3 @@
1
+ import { DialogPropsType } from '../../types';
2
+ declare const Dialog: ({ open, onClose, header, content, footer, position, size, disableOverlay, disableBackdropClick, fullWidth, dataId, scroll, className, }: DialogPropsType) => import("react/jsx-runtime").JSX.Element;
3
+ export default Dialog;
@@ -0,0 +1 @@
1
+ export { default } from './Dialog';
@@ -0,0 +1,3 @@
1
+ import { HelperTextPropsType } from '../../types';
2
+ declare const HelperText: ({ className, type, text }: HelperTextPropsType) => import("react/jsx-runtime").JSX.Element;
3
+ export default HelperText;
@@ -0,0 +1 @@
1
+ export { default } from './HelperText';
@@ -0,0 +1,3 @@
1
+ import { InputProps } from '../../types';
2
+ declare const Input: ({ type, value, onChange, placeholder, label, disabled, errorMsg, helperText, fullWidth, size, startAdornment, endAdornment, blurText, required, clearable, className, autoComplete, direction, onKeyDown, onPaste, ...props }: InputProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default Input;
@@ -0,0 +1 @@
1
+ export { default } from './Input';
@@ -0,0 +1,3 @@
1
+ import { LabelPropsType } from '../../types';
2
+ declare const Label: ({ className, required, label }: LabelPropsType) => import("react/jsx-runtime").JSX.Element;
3
+ export default Label;
@@ -0,0 +1 @@
1
+ export { default } from './Label';
@@ -0,0 +1,3 @@
1
+ import { OverlayPropsType } from '../../types';
2
+ declare const Overlay: ({ children, className, open }: OverlayPropsType) => import("react/jsx-runtime").JSX.Element | null;
3
+ export default Overlay;
@@ -0,0 +1 @@
1
+ export { default } from './Overlay';
@@ -0,0 +1,3 @@
1
+ import { PaginationProps } from '../../types';
2
+ declare const Pagination: ({ page, setPage, count, totalElement, disabledExportExcelBtn, disabledExportPdfBtn, excelExport, showPageCount, showExportButtons, disabledNextButton, removeFirstLastButtons, pageSize, labels, className, }: PaginationProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default Pagination;
@@ -0,0 +1 @@
1
+ export { default } from './Pagination';
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { RadioPropsType } from '../../types';
3
+ declare const Radio: React.ForwardRefExoticComponent<RadioPropsType & React.RefAttributes<unknown>>;
4
+ export default Radio;
@@ -0,0 +1 @@
1
+ export { default } from './Radio';
@@ -0,0 +1,3 @@
1
+ import { RadioGroupProps } from '../../types';
2
+ declare const RadioGroup: ({ name, options, onChange, size, labelPosition, color, label, defaultValue, direction, gap, className, }: RadioGroupProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default RadioGroup;
@@ -0,0 +1 @@
1
+ export { default } from './RadioGroup';
@@ -0,0 +1,3 @@
1
+ import { SelectProps, Option } from '../../types';
2
+ declare const SelectGroup: <T extends Option | Option[] | null>({ label, placeholder, options, value, onChange, isMultiple, disabled, className, errorMsg, helperText, withSearch, itemsLabel, size, required, }: SelectProps<T>) => import("react/jsx-runtime").JSX.Element;
3
+ export default SelectGroup;
@@ -0,0 +1 @@
1
+ export { default } from './SelectGroup';
@@ -0,0 +1,3 @@
1
+ import { SideDrawerPropsType } from '../../types';
2
+ declare const SideDrawer: ({ open, setOpen, children, className, onClickOutSide, width, anchor, }: SideDrawerPropsType) => import("react/jsx-runtime").JSX.Element;
3
+ export default SideDrawer;
@@ -0,0 +1 @@
1
+ export { default } from './SideDrawer';
@@ -0,0 +1,3 @@
1
+ import { SwitchProps } from '../../types';
2
+ declare const Switch: ({ checked, onClick, label, disabled, labelPlacement, color, }: SwitchProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default Switch;
@@ -0,0 +1 @@
1
+ export { default } from './Switch';
@@ -0,0 +1,3 @@
1
+ import { TableProps } from '../../types';
2
+ declare const Table: ({ id, headCells, data, sort, setSort, currentHeadCell, fallback, footer, onRowClick, selectableRow, selectedRowId, rowDataId, tableHeader, }: TableProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default Table;
@@ -0,0 +1 @@
1
+ export { default } from './Table';
@@ -0,0 +1,3 @@
1
+ import { TextAreaProps } from '../../types';
2
+ declare const TextArea: ({ value, onChange, label, placeholder, name, size, clearable, minRows, maxRows, errorMsg, disabled, maxLength, required, startDecorator, endDecorator, className, dataId, }: TextAreaProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default TextArea;
@@ -0,0 +1 @@
1
+ export { default } from './TextArea';
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import 'tippy.js/dist/tippy.css';
3
+ import './style.scss';
4
+ import { TooltipProps } from '../../types';
5
+ declare const Tooltip: React.FC<TooltipProps>;
6
+ export default Tooltip;
@@ -0,0 +1,19 @@
1
+ export { default as Alert } from './Alert/index';
2
+ export { default as Button } from './Button/index';
3
+ export { default as Checkbox } from './Checkbox/index';
4
+ export { default as Chip } from './Chip/index';
5
+ export { default as Overlay } from './Overlay/index';
6
+ export { default as TextArea } from './TextArea/index';
7
+ export { default as Switch } from './Switch/index';
8
+ export { default as Dialog } from './Dialog/index';
9
+ export { default as Card } from './Card/index';
10
+ export { default as Radio } from './Radio/index';
11
+ export { default as SideDrawer } from './SideDrawer/index';
12
+ export { default as Accordion } from './Accordion/index';
13
+ export { default as Input } from './Input/index';
14
+ export { default as Table } from './Table/index';
15
+ export { default as RadioGroup } from './RadioGroup/index';
16
+ export { default as Date } from './Date/index';
17
+ export { default as DateRange } from './DateRange/index';
18
+ export { default as Pagination } from './Pagination/index';
19
+ export { default as SelectGroup } from './SelectGroup/index';
@@ -0,0 +1,4 @@
1
+ export declare const optionEmptyState: {
2
+ readonly label: "";
3
+ readonly value: "";
4
+ };
@@ -0,0 +1,3 @@
1
+ import { IconProps } from '../types/interfaces';
2
+ declare const AlertErrorIcon: ({ width, height, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default AlertErrorIcon;
@@ -0,0 +1,3 @@
1
+ import { IconProps } from '../types/interfaces';
2
+ declare const AlertInfoIcon: ({ width, height, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default AlertInfoIcon;
@@ -0,0 +1,3 @@
1
+ import { IconProps } from '../types/interfaces';
2
+ declare const AlertSuccessIcon: ({ width, height, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default AlertSuccessIcon;
@@ -0,0 +1,3 @@
1
+ import { IconProps } from '../types/interfaces';
2
+ declare const AlertWarningIcon: ({ width, height, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default AlertWarningIcon;
@@ -0,0 +1,3 @@
1
+ import { IconProps } from '../types/interfaces';
2
+ declare const ArrowBottom: ({ width, height, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default ArrowBottom;
@@ -0,0 +1,3 @@
1
+ import { IconProps } from '../types/interfaces';
2
+ declare const ArrowLeft: ({ width, height, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default ArrowLeft;
@@ -0,0 +1,3 @@
1
+ import { IconProps } from '../types/interfaces';
2
+ declare const ArrowRight: ({ width, height, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default ArrowRight;
@@ -0,0 +1,3 @@
1
+ import { IconProps } from '../types/interfaces';
2
+ declare const ArrowUpIcon: ({ width, height, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default ArrowUpIcon;
@@ -0,0 +1,3 @@
1
+ import { IconProps } from '../types/interfaces';
2
+ declare const Calendar: ({ width, height, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default Calendar;
@@ -0,0 +1,3 @@
1
+ import { IconProps } from '../types/interfaces';
2
+ declare const CheckMark: ({ width, height, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default CheckMark;
@@ -0,0 +1,3 @@
1
+ import { IconProps } from '../types/interfaces';
2
+ declare const ClearField: ({ width, height, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default ClearField;
@@ -0,0 +1,3 @@
1
+ import { IconProps } from '../types/interfaces';
2
+ declare const CloseIcon: ({ width, height, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default CloseIcon;
@@ -0,0 +1,3 @@
1
+ import { IconProps } from '../types/interfaces';
2
+ declare const DoubleLeftArrow: ({ width, height, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default DoubleLeftArrow;
@@ -0,0 +1,3 @@
1
+ import { IconProps } from '../types/interfaces';
2
+ declare const DoubleRightArrow: ({ width, height, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default DoubleRightArrow;
@@ -0,0 +1,3 @@
1
+ import { IconProps } from '../types/interfaces';
2
+ declare const ExcelIcon: ({ width, height, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default ExcelIcon;
@@ -0,0 +1,3 @@
1
+ import { IconProps } from '../types/interfaces';
2
+ declare const HidePasswordIcon: ({ width, height, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default HidePasswordIcon;
@@ -0,0 +1,3 @@
1
+ import { IconProps } from '../types/interfaces';
2
+ declare const InfoIcon: ({ width, height, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default InfoIcon;
@@ -0,0 +1,3 @@
1
+ import { IconProps } from '../types/interfaces';
2
+ declare const LeftArrowIcon: ({ width, height, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default LeftArrowIcon;
@@ -0,0 +1,3 @@
1
+ import { IconProps } from '../types/interfaces';
2
+ declare const LoaderIcon: ({ width, height, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default LoaderIcon;
@@ -0,0 +1,3 @@
1
+ import { IconProps } from '../types/interfaces';
2
+ declare const PdfIcon: ({ width, height, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default PdfIcon;
@@ -0,0 +1,3 @@
1
+ import { IconProps } from '../types/interfaces';
2
+ declare const RightArrowIcon: ({ width, height, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default RightArrowIcon;
@@ -0,0 +1,3 @@
1
+ import { IconProps } from '../types/interfaces';
2
+ declare const SearchIcon: ({ width, height, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default SearchIcon;
@@ -0,0 +1,3 @@
1
+ import { IconProps } from '../types/interfaces';
2
+ declare const SelectFieldDownArrow: ({ width, height, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default SelectFieldDownArrow;
@@ -0,0 +1,3 @@
1
+ import { IconProps } from '../types/interfaces';
2
+ declare const SelectFieldUpArrow: ({ width, height, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default SelectFieldUpArrow;
@@ -0,0 +1,3 @@
1
+ import { IconProps } from '../types/interfaces';
2
+ declare const ShowPasswordIcon: ({ width, height, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default ShowPasswordIcon;
@@ -0,0 +1,3 @@
1
+ import { IconProps } from '../types/interfaces';
2
+ declare const SortIcon: ({ width, height, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default SortIcon;
@@ -0,0 +1,3 @@
1
+ export * from './components/index';
2
+ export * from './utils/index';
3
+ export * from './types/index';