@reapit/elements 5.0.0-beta.6 → 5.0.0-beta.9
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/cjs/components/input/input.stories.d.ts +9 -0
- package/dist/cjs/components/input-group/input-group.stories.d.ts +1 -1
- package/dist/cjs/components/select/select.stories.d.ts +3 -0
- package/dist/cjs/hooks/use-media-query/index.d.ts +2 -1
- package/dist/cjs/hooks/use-media-query/media.stories.d.ts +1 -1
- package/dist/cjs/hooks/use-nav-state/index.d.ts +2 -1
- package/dist/cjs/hooks/use-snack/index.d.ts +2 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/styles/theme-provider.d.ts +2 -1
- package/dist/cjs/types/core.d.ts +3 -0
- package/dist/esm/components/input/input.stories.d.ts +9 -0
- package/dist/esm/components/input-group/input-group.stories.d.ts +1 -1
- package/dist/esm/components/select/select.stories.d.ts +3 -0
- package/dist/esm/hooks/use-media-query/index.d.ts +2 -1
- package/dist/esm/hooks/use-media-query/media.stories.d.ts +1 -1
- package/dist/esm/hooks/use-nav-state/index.d.ts +2 -1
- package/dist/esm/hooks/use-snack/index.d.ts +2 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/styles/theme-provider.d.ts +2 -1
- package/dist/esm/types/core.d.ts +3 -0
- package/dist/index.css +6 -6
- package/package.json +1 -1
|
@@ -6,6 +6,7 @@ declare const _default: {
|
|
|
6
6
|
};
|
|
7
7
|
export default _default;
|
|
8
8
|
export declare const InputText: StoryObj<typeof Input>;
|
|
9
|
+
export declare const InputDisabled: StoryObj<typeof Input>;
|
|
9
10
|
export declare const InputWithError: {
|
|
10
11
|
render: ({}: {}) => import("react/jsx-runtime").JSX.Element;
|
|
11
12
|
};
|
|
@@ -61,7 +62,15 @@ export declare const InputCheckbox: {
|
|
|
61
62
|
render: ({}: {}) => import("react/jsx-runtime").JSX.Element;
|
|
62
63
|
name: string;
|
|
63
64
|
};
|
|
65
|
+
export declare const InputCheckboxDisabled: {
|
|
66
|
+
render: ({}: {}) => import("react/jsx-runtime").JSX.Element;
|
|
67
|
+
name: string;
|
|
68
|
+
};
|
|
64
69
|
export declare const InputRadio: {
|
|
65
70
|
render: ({}: {}) => import("react/jsx-runtime").JSX.Element;
|
|
66
71
|
name: string;
|
|
67
72
|
};
|
|
73
|
+
export declare const InputRadioDisabled: {
|
|
74
|
+
render: ({}: {}) => import("react/jsx-runtime").JSX.Element;
|
|
75
|
+
name: string;
|
|
76
|
+
};
|
|
@@ -37,7 +37,7 @@ export declare const InputCheckbox: {
|
|
|
37
37
|
export declare const InputCheckboxWithIntent: {
|
|
38
38
|
render: ({}: {}) => import("react/jsx-runtime").JSX.Element;
|
|
39
39
|
};
|
|
40
|
-
export declare const
|
|
40
|
+
export declare const InputCheckboxIcon: {
|
|
41
41
|
render: ({}: {}) => import("react/jsx-runtime").JSX.Element;
|
|
42
42
|
};
|
|
43
43
|
export declare const InputCheckboxNoLabel: {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
+
import { PropsWithChildren } from '../../types/core';
|
|
2
3
|
export interface MediaType {
|
|
3
4
|
isMobile: boolean;
|
|
4
5
|
isTablet: boolean;
|
|
@@ -13,5 +14,5 @@ export declare const DESKTOP_BREAKPOINT = 1440;
|
|
|
13
14
|
export declare const WIDESCREEN_BREAKPOINT = 1920;
|
|
14
15
|
export declare const SUPER_WIDESCREEN_BREAKPOINT = 2560;
|
|
15
16
|
export declare const MediaStateContext: import("react").Context<MediaType>;
|
|
16
|
-
export declare const MediaStateProvider: FC
|
|
17
|
+
export declare const MediaStateProvider: FC<PropsWithChildren>;
|
|
17
18
|
export declare const useMediaQuery: () => MediaType;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
declare const _default: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: import("react").FC
|
|
4
|
+
component: import("react").FC<import("../../types/core").PropsWithChildren>;
|
|
5
5
|
};
|
|
6
6
|
export default _default;
|
|
7
7
|
export declare const MediaStateProviderUsage: {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React, { Dispatch, SetStateAction, MouseEvent, FC } from 'react';
|
|
2
|
+
import { PropsWithChildren } from '../../types/core';
|
|
2
3
|
export interface NavState {
|
|
3
4
|
navItemIndex: number | null;
|
|
4
5
|
navMenuOpen: boolean;
|
|
@@ -15,5 +16,5 @@ export interface UseNavState {
|
|
|
15
16
|
setNavState: (newState: Partial<NavState>) => (event?: MouseEvent<HTMLAnchorElement | HTMLDivElement | HTMLSpanElement>) => void;
|
|
16
17
|
}
|
|
17
18
|
export declare const NavStateContext: React.Context<NavStateContextProps>;
|
|
18
|
-
export declare const NavStateProvider: FC
|
|
19
|
+
export declare const NavStateProvider: FC<PropsWithChildren>;
|
|
19
20
|
export declare const useNavState: (defaultNavIndex?: number | null, defaultNavSubIndex?: number | null) => UseNavState;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { SnackProps } from '../../components/snack';
|
|
3
|
+
import { PropsWithChildren } from '../../types/core';
|
|
3
4
|
export interface SnackContextProps {
|
|
4
5
|
addSnackWithTimeout: (snack: SnackProps, timeout: number) => void;
|
|
5
6
|
}
|
|
6
7
|
export declare const SnackContext: import("react").Context<SnackContextProps>;
|
|
7
|
-
export declare const SnackProvider: FC
|
|
8
|
+
export declare const SnackProvider: FC<PropsWithChildren>;
|
|
8
9
|
export interface UseSnack {
|
|
9
10
|
custom: (snack: SnackProps, timeout?: number) => void;
|
|
10
11
|
success: (text: string, timeout?: number) => void;
|