@foris/avocado-suite 0.13.0 → 0.14.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  export declare const useTheme: () => {
2
- theme: import("../types/theme.types").Theme;
2
+ theme: import("..").Theme;
3
3
  };
package/dist/index.d.ts CHANGED
@@ -1,3 +1,6 @@
1
+ /**
2
+ * Components
3
+ */
1
4
  import { ThemeProvider } from './contexts/theme/ThemeProvider';
2
5
  import Box from './components/box/Box';
3
6
  import Breadcrumbs from './components/breadcrumbs/Breadcrumbs';
@@ -31,4 +34,11 @@ import TextField from './components/text-field/TextField';
31
34
  import Timer from './components/timer/Timer';
32
35
  import Toaster from './components/toaster/Toaster';
33
36
  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, };
37
+ import * as ThemeStore from './store/useThemeStore';
38
+ export { ThemeProvider, ThemeStore, 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, };
39
+ /**
40
+ * Types
41
+ */
42
+ export type { ThemeMode, Theme } from './types/theme.types';
43
+ export type { MenuItem } from './types/menu.types';
44
+ export type { BreadcrumbItem } from './components/breadcrumbs/Breadcrumbs';
@@ -0,0 +1,8 @@
1
+ import type { Theme, ThemeMode } from '../types/theme.types';
2
+ type State = {
3
+ theme: Theme;
4
+ };
5
+ export declare const useThemeStore: import("zustand").UseBoundStore<import("zustand").StoreApi<State>>;
6
+ export declare const toggleBodyTheme: (themeMode?: ThemeMode) => void;
7
+ export declare const setThemeMode: (themeMode: ThemeMode, useLocalStorage?: boolean) => void;
8
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@foris/avocado-suite",
3
- "version": "0.13.0",
3
+ "version": "0.14.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -23,8 +23,9 @@
23
23
  "react-select": "5.8.0",
24
24
  "react-select-async-paginate": "0.7.3",
25
25
  "react-toastify": "9.0.3",
26
- "@foris/avocado-core": "0.6.0",
27
- "@foris/avocado-icons": "1.6.1"
26
+ "zustand": "4.5.4",
27
+ "@foris/avocado-icons": "1.6.1",
28
+ "@foris/avocado-core": "0.6.1"
28
29
  },
29
30
  "devDependencies": {
30
31
  "@testing-library/jest-dom": "6.4.0",