1mpacto-react-ui 0.0.41 → 0.0.43

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.
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+ import { TypeOptions } from 'react-toastify';
3
+ import { IOptionAlert } from '../../interfaces/components/Alert';
4
+
5
+ export declare const openAlert: (message: string | React.ReactNode | React.ReactNode[], type?: TypeOptions, options?: IOptionAlert) => import('react-toastify').Id;
@@ -37,9 +37,11 @@ import { default as NumberFormat } from './NumberFormat/NumberFormat';
37
37
  import { PatternFormat } from 'react-number-format';
38
38
  import { IInputReguler, IInputFloatingInner } from '../interfaces/components/Input';
39
39
  import { default as PortalComponent } from './PortalComponent/PortalComponent';
40
+ import { ToastContainer as AlertContainer } from 'react-toastify';
41
+ import { TButtonVariants, TButtonSize } from '../interfaces/components/Button';
40
42
 
41
43
  import * as utilTable from '@tanstack/react-table';
42
44
  import type * as SelectDropdownContainerType from 'react-select';
43
45
  import type * as FilterContainerType from '../interfaces/components/FilterContainer';
44
- export { TPublish, Button, Popover, Calendar, CalendarRange, DatePicker, DateRangePicker, FilterDate, InputFloatingInner, InputReguler, Pagination, Tabs, TabPanel, Table, TableVirtualization, ListVirtualization, SelectDropdownContainer, utilTable, Switch, ButtonIcon, Badges, Chips, RadioCheckbox, RadioCheckboxLabel, Breadcrumbs, Sidebar, Collapse, ModalDialog, SelectDropdownContainerComponents, Timeline, FilterContainer, NumberFormat, PatternFormat, DefaultCheckedChecboxIcon, DefaultRadioChecboxIcon, ConfigTable, PortalComponent, };
45
- export type { ITableColumnDef, IRefPopover, IRefTableVirtualization, IRefListVirtualization, IRefSelectDropdownContainer, IChildrenSelectDropdownContainer, ISidebarModule, SelectDropdownContainerType, FilterContainerType, IInputReguler, IInputFloatingInner, ITableConfig, };
46
+ export { TPublish, Button, Popover, Calendar, CalendarRange, DatePicker, DateRangePicker, FilterDate, InputFloatingInner, InputReguler, Pagination, Tabs, TabPanel, Table, TableVirtualization, ListVirtualization, SelectDropdownContainer, utilTable, Switch, ButtonIcon, Badges, Chips, RadioCheckbox, RadioCheckboxLabel, Breadcrumbs, Sidebar, Collapse, ModalDialog, SelectDropdownContainerComponents, Timeline, FilterContainer, NumberFormat, PatternFormat, DefaultCheckedChecboxIcon, DefaultRadioChecboxIcon, ConfigTable, PortalComponent, AlertContainer, };
47
+ export type { ITableColumnDef, IRefPopover, IRefTableVirtualization, IRefListVirtualization, IRefSelectDropdownContainer, IChildrenSelectDropdownContainer, ISidebarModule, SelectDropdownContainerType, FilterContainerType, IInputReguler, IInputFloatingInner, ITableConfig, TButtonVariants, TButtonSize, };
@@ -0,0 +1,5 @@
1
+ import { ToastOptions } from 'react-toastify';
2
+
3
+ export interface IOptionAlert extends ToastOptions {
4
+ kind?: 'laba' | 'payhere';
5
+ }
@@ -1,8 +1,10 @@
1
1
  import { ReactNode } from 'react';
2
2
 
3
+ export type TButtonVariants = 'filled-laba-blue-10' | 'ghost-laba-blue-10' | 'nude-laba-blue-10' | 'nude-gray-500' | 'primary-blue-700' | 'secondary-blue-700' | 'secondary-red-600' | 'tertiary-blue-700' | 'ghost-blue-gray-100-bg_white';
4
+ export type TButtonSize = 'large' | 'reguler' | 'small' | 'l' | 'm' | 's' | 'xs';
3
5
  export interface IButton extends React.ButtonHTMLAttributes<HTMLButtonElement> {
4
- size?: 'large' | 'reguler' | 'small' | 'l' | 'm' | 's' | 'xs';
5
- variants?: 'filled-laba-blue-10' | 'ghost-laba-blue-10' | 'nude-laba-blue-10' | 'nude-gray-500' | 'primary-blue-700' | 'secondary-blue-700' | 'secondary-red-600' | 'tertiary-blue-700' | 'ghost-blue-gray-100-bg_white';
6
+ size?: TButtonSize;
7
+ variants?: TButtonVariants;
6
8
  startIcon?: ReactNode | ReactNode[] | (() => ReactNode) | (() => ReactNode[]);
7
9
  endIcon?: ReactNode | ReactNode[] | (() => ReactNode) | (() => ReactNode[]);
8
10
  children: ReactNode | ReactNode[];
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "1mpacto-react-ui",
3
3
  "private": false,
4
- "version": "0.0.41",
4
+ "version": "0.0.43",
5
5
  "type": "module",
6
6
  "scripts": {
7
+ "copy:toastify-css": "cp ./node_modules/react-toastify/dist/ReactToastify.css ./dist/assets/toast.css",
7
8
  "dev": "vite",
8
9
  "build": "tsc -b && vite build && npm run build:css",
9
- "build:css": "tailwindcss -i ./src/styles/index.scss -o ./dist/assets/core.css --minify",
10
+ "build:css": "tailwindcss -i ./src/styles/index.scss -o ./dist/assets/core.css --minify && npm run copy:toastify-css",
10
11
  "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
11
12
  "preview": "vite preview",
12
13
  "prepare": "husky && npm run build"
@@ -51,7 +52,8 @@
51
52
  "types": "./dist/index.d.ts"
52
53
  },
53
54
  "./dist/assets/core.css": "./dist/assets/core.css",
54
- "./dist/assets/style.css": "./dist/assets/style.css"
55
+ "./dist/assets/style.css": "./dist/assets/style.css",
56
+ "./dist/assets/toast.css": "./dist/assets/toast.css"
55
57
  },
56
58
  "files": [
57
59
  "/dist"
@@ -79,6 +81,7 @@
79
81
  "react-select": "^5.8.0",
80
82
  "react-select-async-paginate": "^0.7.4",
81
83
  "react-stately": "^3.31.1",
84
+ "react-toastify": "^10.0.5",
82
85
  "react-virtuoso": "^4.7.11"
83
86
  }
84
87
  }