@foris/avocado-suite 0.13.0 → 0.14.0
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.
- package/dist/avocado-suite.es.js +4163 -3864
- package/dist/avocado-suite.umd.js +134 -102
- package/dist/hooks/useTheme.d.ts +1 -1
- package/dist/index.d.ts +11 -1
- package/dist/store/useThemeStore.d.ts +8 -0
- package/package.json +4 -3
package/dist/hooks/useTheme.d.ts
CHANGED
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
|
-
|
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.
|
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
|
-
"
|
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",
|