@foris/avocado-suite 0.12.0 → 0.12.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (83) hide show
  1. package/dist/avocado-suite.es.js +4562 -3933
  2. package/dist/avocado-suite.umd.js +162 -136
  3. package/dist/{avocado-suite/src/components → components}/DataTable/components/DataTableAction/DataTableAction.d.ts +2 -3
  4. package/dist/{avocado-suite/src/components → components}/Pill/Pill.d.ts +1 -2
  5. package/dist/components/box/Box.test.d.ts +1 -0
  6. package/dist/{avocado-suite/src/components → components}/button/Button.d.ts +1 -1
  7. package/dist/{avocado-suite/src/components → components}/link/Link.d.ts +1 -1
  8. package/dist/{avocado-suite/src/components → components}/menu/Menu.d.ts +1 -1
  9. package/dist/{avocado-suite/src/components → components}/round-button/RoundButton.d.ts +1 -1
  10. package/dist/{avocado-suite/src/components → components}/tag/Tag.d.ts +1 -1
  11. package/dist/components/tooltip/Tooltip.test.d.ts +1 -0
  12. package/dist/index.d.ts +34 -1
  13. package/dist/{avocado-suite/src/types → types}/menu.types.d.ts +1 -1
  14. package/package.json +2 -2
  15. package/dist/avocado-suite/src/components/box/Box.test.d.ts +0 -0
  16. package/dist/avocado-suite/src/components/tooltip/Tooltip.test.d.ts +0 -0
  17. package/dist/avocado-suite/src/index.d.ts +0 -34
  18. /package/dist/{avocado-suite/src/components → components}/DataTable/DataTable.d.ts +0 -0
  19. /package/dist/{avocado-suite/src/components → components}/DataTable/components/DataTableAction/DataTableActionsGroup.d.ts +0 -0
  20. /package/dist/{avocado-suite/src/components → components}/DataTable/components/DataTableAction/DataTableSubActions.d.ts +0 -0
  21. /package/dist/{avocado-suite/src/components → components}/DataTable/components/DataTableContent/DataTableContent.d.ts +0 -0
  22. /package/dist/{avocado-suite/src/components → components}/DataTable/components/DataTableHeader/DataTableHeader.d.ts +0 -0
  23. /package/dist/{avocado-suite/src/components → components}/DataTable/components/DataTableRow/DataTableRow.d.ts +0 -0
  24. /package/dist/{avocado-suite/src/components → components}/DataTable/components/DataTableRow/DataTableRowAccordion.d.ts +0 -0
  25. /package/dist/{avocado-suite/src/components → components}/DataTable/utils/dataTableUtil.d.ts +0 -0
  26. /package/dist/{avocado-suite/src/components → components}/Pill/Pill.test.d.ts +0 -0
  27. /package/dist/{avocado-suite/src/components → components}/box/Box.d.ts +0 -0
  28. /package/dist/{avocado-suite/src/components → components}/breadcrumbs/Breadcrumbs.d.ts +0 -0
  29. /package/dist/{avocado-suite/src/components → components}/breadcrumbs/Breadcrumbs.test.d.ts +0 -0
  30. /package/dist/{avocado-suite/src/components → components}/button/Button.test.d.ts +0 -0
  31. /package/dist/{avocado-suite/src/components → components}/card/Card.d.ts +0 -0
  32. /package/dist/{avocado-suite/src/components → components}/card/Card.test.d.ts +0 -0
  33. /package/dist/{avocado-suite/src/components → components}/card-notification/CardNotification.d.ts +0 -0
  34. /package/dist/{avocado-suite/src/components → components}/card-notification/CardNotification.test.d.ts +0 -0
  35. /package/dist/{avocado-suite/src/components → components}/checkbox/Checkbox.d.ts +0 -0
  36. /package/dist/{avocado-suite/src/components → components}/checkbox/Checkbox.test.d.ts +0 -0
  37. /package/dist/{avocado-suite/src/components → components}/divider/Divider.d.ts +0 -0
  38. /package/dist/{avocado-suite/src/components → components}/divider/Divider.test.d.ts +0 -0
  39. /package/dist/{avocado-suite/src/components → components}/donut/Donut.d.ts +0 -0
  40. /package/dist/{avocado-suite/src/components → components}/donut/donut-labels/DonutLabels.d.ts +0 -0
  41. /package/dist/{avocado-suite/src/components → components}/donut/donut-legend/DonutLegend.d.ts +0 -0
  42. /package/dist/{avocado-suite/src/components → components}/heading/Heading.d.ts +0 -0
  43. /package/dist/{avocado-suite/src/components → components}/heading/Heading.test.d.ts +0 -0
  44. /package/dist/{avocado-suite/src/components → components}/link/Link.test.d.ts +0 -0
  45. /package/dist/{avocado-suite/src/components → components}/menu/Menu.test.d.ts +0 -0
  46. /package/dist/{avocado-suite/src/components → components}/pager/Page.test.d.ts +0 -0
  47. /package/dist/{avocado-suite/src/components → components}/pager/Pager.d.ts +0 -0
  48. /package/dist/{avocado-suite/src/components → components}/pager/components/ArrowPager.d.ts +0 -0
  49. /package/dist/{avocado-suite/src/components → components}/pager/components/ButtonPager.d.ts +0 -0
  50. /package/dist/{avocado-suite/src/components → components}/pager/utils/generateArrayOfPages.d.ts +0 -0
  51. /package/dist/{avocado-suite/src/components → components}/processing/Processing.d.ts +0 -0
  52. /package/dist/{avocado-suite/src/components → components}/progress-bar/ProgressBar.d.ts +0 -0
  53. /package/dist/{avocado-suite/src/components → components}/progress-bar/ProgressBar.test.d.ts +0 -0
  54. /package/dist/{avocado-suite/src/components → components}/radio-button/RadioButton.d.ts +0 -0
  55. /package/dist/{avocado-suite/src/components → components}/radio-button/RadioButton.test.d.ts +0 -0
  56. /package/dist/{avocado-suite/src/components → components}/round-button/RoundButton.test.d.ts +0 -0
  57. /package/dist/{avocado-suite/src/components → components}/select/Select.d.ts +0 -0
  58. /package/dist/{avocado-suite/src/components → components}/select/Select.test.d.ts +0 -0
  59. /package/dist/{avocado-suite/src/components → components}/select/components/SelectIndicators.d.ts +0 -0
  60. /package/dist/{avocado-suite/src/components → components}/select-pagination/SelectPagination.d.ts +0 -0
  61. /package/dist/{avocado-suite/src/components → components}/select-pagination/SelectPagination.test.d.ts +0 -0
  62. /package/dist/{avocado-suite/src/components → components}/skeleton-base/SkeletonBase.d.ts +0 -0
  63. /package/dist/{avocado-suite/src/components → components}/skeleton-circle/SkeletonCircle.d.ts +0 -0
  64. /package/dist/{avocado-suite/src/components → components}/stepper/Stepper.d.ts +0 -0
  65. /package/dist/{avocado-suite/src/components → components}/stepper/Stepper.test.d.ts +0 -0
  66. /package/dist/{avocado-suite/src/components → components}/tabs/Tabs.d.ts +0 -0
  67. /package/dist/{avocado-suite/src/components → components}/tabs/Tabs.test.d.ts +0 -0
  68. /package/dist/{avocado-suite/src/components → components}/tag/Tag.test.d.ts +0 -0
  69. /package/dist/{avocado-suite/src/components → components}/text/Text.d.ts +0 -0
  70. /package/dist/{avocado-suite/src/components → components}/text/Text.test.d.ts +0 -0
  71. /package/dist/{avocado-suite/src/components → components}/text-field/TextField.d.ts +0 -0
  72. /package/dist/{avocado-suite/src/components → components}/text-field/TextField.test.d.ts +0 -0
  73. /package/dist/{avocado-suite/src/components → components}/text-field/components/StatusIcon.d.ts +0 -0
  74. /package/dist/{avocado-suite/src/components → components}/timer/Timer.d.ts +0 -0
  75. /package/dist/{avocado-suite/src/components → components}/timer/Timer.test.d.ts +0 -0
  76. /package/dist/{avocado-suite/src/components → components}/timer/timer.util.d.ts +0 -0
  77. /package/dist/{avocado-suite/src/components → components}/toaster/Toaster.d.ts +0 -0
  78. /package/dist/{avocado-suite/src/components → components}/tooltip/Tooltip.d.ts +0 -0
  79. /package/dist/{avocado-suite/src/constants → constants}/theme.constants.d.ts +0 -0
  80. /package/dist/{avocado-suite/src/contexts → contexts}/theme/ThemeProvider.d.ts +0 -0
  81. /package/dist/{avocado-suite/src/hooks → hooks}/useClickOutside.d.ts +0 -0
  82. /package/dist/{avocado-suite/src/hooks → hooks}/useTheme.d.ts +0 -0
  83. /package/dist/{avocado-suite/src/types → types}/theme.types.d.ts +0 -0
@@ -1,6 +1,5 @@
1
1
  import { FC, ReactNode } from 'react';
2
- import { IconTypes } from '../../../../../../avocado-icons/src/types/icons.type.ts';
3
- import IconSize from '../../../../../../avocado-icons/src/types/size.enum';
2
+ import { IconTypes, Size } from '../../../../../../avocado-icons';
4
3
  export type DataTableActionPosition = 'left' | 'right';
5
4
  export type DataTableActionType = 'primary' | 'success' | 'warning' | 'danger';
6
5
  export interface IDataTableAction {
@@ -18,7 +17,7 @@ export interface IDataTableAction {
18
17
  /** icon value */
19
18
  icon?: IconTypes;
20
19
  /** icon size */
21
- iconSize?: keyof typeof IconSize;
20
+ iconSize?: keyof typeof Size;
22
21
  /** position value */
23
22
  position: DataTableActionPosition;
24
23
  /** type value */
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
- import { IconTypes } from '../../../../../../../../avocado-icons/src/types/icons.type';
3
- import { Color } from '../../../../../../../../avocado-icons/src/types/color.enum';
2
+ import { IconTypes, Color } from '../../../../avocado-icons';
4
3
  export interface PillProps {
5
4
  /** Optional Icon name */
6
5
  icon?: IconTypes;
@@ -0,0 +1 @@
1
+ export {};
@@ -1,5 +1,5 @@
1
1
  import React, { FC } from 'react';
2
- import { IconTypes } from '../../../../avocado-icons/src/types/icons.type.ts';
2
+ import { IconTypes } from '../../../../avocado-icons';
3
3
  export type ButtonVariant = 'primary' | 'secondary' | 'ghost' | 'danger';
4
4
  export interface ButtonProps extends React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement> {
5
5
  /** Render content button */
@@ -1,5 +1,5 @@
1
1
  import { FC } from 'react';
2
- import { IconTypes } from '../../../../avocado-icons/src/types/icons.type';
2
+ import { IconTypes } from '../../../../avocado-icons';
3
3
  export interface LinkProps extends React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement> {
4
4
  /** Render content link */
5
5
  children: React.ReactNode | string;
@@ -1,5 +1,5 @@
1
1
  import { FC } from 'react';
2
- import { MenuItem } from '../../types/menu.types.ts';
2
+ import { MenuItem } from '../../types/menu.types';
3
3
  interface MenuProps {
4
4
  /** Control if you want to close the list after clicking one of the options or not */
5
5
  closeOnClick?: boolean;
@@ -1,6 +1,6 @@
1
1
  import { FC } from 'react';
2
2
  import { ButtonVariant } from '../button/Button';
3
- import { IconTypes } from '../../../../../../../../avocado-icons/src/types/icons.type.ts';
3
+ import { IconTypes } from '../../../../avocado-icons';
4
4
  interface RoundButtonProps extends Partial<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>> {
5
5
  /** Icon name */
6
6
  icon: IconTypes;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { IconTypes } from '../../../../avocado-icons/src/types/icons.type';
2
+ import { IconTypes } from '../../../../avocado-icons';
3
3
  declare const variants: {
4
4
  readonly Outlined: "outlined";
5
5
  readonly Filled: "filled";
@@ -0,0 +1 @@
1
+ export {};
package/dist/index.d.ts CHANGED
@@ -1 +1,34 @@
1
- export * from './avocado-suite/src/index'
1
+ import { ThemeProvider } from './contexts/theme/ThemeProvider';
2
+ import Box from './components/box/Box';
3
+ import Breadcrumbs from './components/breadcrumbs/Breadcrumbs';
4
+ import Button from './components/button/Button';
5
+ import Card from './components/card/Card';
6
+ import CardNotification from './components/card-notification/CardNotification';
7
+ import Checkbox from './components/checkbox/Checkbox';
8
+ import DataTable from './components/DataTable/DataTable';
9
+ import Divider from './components/divider/Divider';
10
+ import Donut from './components/donut/Donut';
11
+ import DonutLabels from './components/donut/donut-labels/DonutLabels';
12
+ import DonutLegend from './components/donut/donut-legend/DonutLegend';
13
+ import Heading from './components/heading/Heading';
14
+ import Link from './components/link/Link';
15
+ import Menu from './components/menu/Menu';
16
+ import Pager from './components/pager/Pager';
17
+ import Pill from './components/Pill/Pill';
18
+ import Processing from './components/processing/Processing';
19
+ import ProgressBar from './components/progress-bar/ProgressBar';
20
+ import RadioButton from './components/radio-button/RadioButton';
21
+ import RoundButton from './components/round-button/RoundButton';
22
+ import Select from './components/select/Select';
23
+ import SelectPagination from './components/select-pagination/SelectPagination';
24
+ import SkeletonBase from './components/skeleton-base/SkeletonBase';
25
+ import SkeletonCircle from './components/skeleton-circle/SkeletonCircle';
26
+ import Stepper from './components/stepper/Stepper';
27
+ import Tabs from './components/tabs/Tabs';
28
+ import Tag from './components/tag/Tag';
29
+ import Text from './components/text/Text';
30
+ import TextField from './components/text-field/TextField';
31
+ import Timer from './components/timer/Timer';
32
+ import Toaster from './components/toaster/Toaster';
33
+ import Tooltip from './components/tooltip/Tooltip';
34
+ export { ThemeProvider, Box, Breadcrumbs, Button, Card, CardNotification, Checkbox, DataTable, Divider, Donut, DonutLabels, DonutLegend, Heading, Link, Menu, Pager, Pill, Processing, ProgressBar, RadioButton, RoundButton, Select, SelectPagination, SkeletonBase, SkeletonCircle, Stepper, Tabs, Tag, Text, TextField, Timer, Toaster, Tooltip, };
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- import { IconTypes } from '../../../../../../avocado-icons/src/types/icons.type.ts';
2
+ import { IconTypes } from '../../../avocado-icons';
3
3
  export interface MenuItem {
4
4
  icon?: IconTypes;
5
5
  label: ReactNode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@foris/avocado-suite",
3
- "version": "0.12.0",
3
+ "version": "0.12.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -24,7 +24,7 @@
24
24
  "react-select-async-paginate": "0.7.3",
25
25
  "react-toastify": "9.0.3",
26
26
  "@foris/avocado-core": "0.6.0",
27
- "@foris/avocado-icons": "1.6.0"
27
+ "@foris/avocado-icons": "1.6.1"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@testing-library/jest-dom": "6.4.0",
@@ -1,34 +0,0 @@
1
- import { ThemeProvider } from './contexts/theme/ThemeProvider';
2
- import Box from './components/box/Box';
3
- import Breadcrumbs from './components/breadcrumbs/Breadcrumbs';
4
- import Button from './components/button/Button';
5
- import Card from './components/card/Card';
6
- import CardNotification from './components/card-notification/CardNotification';
7
- import Checkbox from './components/checkbox/Checkbox';
8
- import DataTable from './components/DataTable/DataTable';
9
- import Divider from './components/divider/Divider';
10
- import Donut from './components/donut/Donut';
11
- import DonutLabels from './components/donut/donut-labels/DonutLabels';
12
- import DonutLegend from './components/donut/donut-legend/DonutLegend';
13
- import Heading from './components/heading/Heading';
14
- import Link from './components/link/Link';
15
- import Menu from './components/menu/Menu';
16
- import Pager from './components/pager/Pager';
17
- import Pill from './components/Pill/Pill';
18
- import Processing from './components/processing/Processing';
19
- import ProgressBar from './components/progress-bar/ProgressBar';
20
- import RadioButton from './components/radio-button/RadioButton';
21
- import RoundButton from './components/round-button/RoundButton';
22
- import Select from './components/select/Select';
23
- import SelectPagination from './components/select-pagination/SelectPagination';
24
- import SkeletonBase from './components/skeleton-base/SkeletonBase';
25
- import SkeletonCircle from './components/skeleton-circle/SkeletonCircle';
26
- import Stepper from './components/stepper/Stepper';
27
- import Tabs from './components/tabs/Tabs';
28
- import Tag from './components/tag/Tag';
29
- import Text from './components/text/Text';
30
- import TextField from './components/text-field/TextField';
31
- import Timer from './components/timer/Timer';
32
- import Toaster from './components/toaster/Toaster';
33
- import Tooltip from './components/tooltip/Tooltip';
34
- export { ThemeProvider, Box, Breadcrumbs, Button, Card, CardNotification, Checkbox, DataTable, Divider, Donut, DonutLabels, DonutLegend, Heading, Link, Menu, Pager, Pill, Processing, ProgressBar, RadioButton, RoundButton, Select, SelectPagination, SkeletonBase, SkeletonCircle, Stepper, Tabs, Tag, Text, TextField, Timer, Toaster, Tooltip, };