ymy-components 0.0.13 → 0.0.16
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/App.d.ts +2 -0
- package/dist/animations/AnimatedText.d.ts +11 -0
- package/dist/buttons/BannerButton.d.ts +4 -0
- package/dist/buttons/BannerButton.styles.d.ts +4 -0
- package/dist/buttons/BannerButton.types.d.ts +31 -0
- package/dist/buttons/CircleIconButton.d.ts +4 -0
- package/dist/buttons/CircleIconButton.styles.d.ts +1121 -0
- package/dist/buttons/CircleIconButton.types.d.ts +17 -0
- package/dist/index.cjs.js +31 -39
- package/dist/index.d.ts +4 -2
- package/dist/index.es.js +2368 -1956
- package/dist/main.d.ts +1 -0
- package/dist/state/slices/navigationSlice.d.ts +14 -0
- package/dist/state/store.d.ts +9 -0
- package/dist/types/DynamicLanguage.d.ts +6 -0
- package/package.json +4 -4
- package/dist/src/index.d.ts +0 -30
package/dist/main.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
+
type CardStates = 'transit-to-profile' | 'transit-to-home' | 'exiting';
|
|
3
|
+
export interface INavigationPayLoad {
|
|
4
|
+
cardPosition: CardStates;
|
|
5
|
+
}
|
|
6
|
+
interface INavigationPayloadAction {
|
|
7
|
+
state: CardStates;
|
|
8
|
+
}
|
|
9
|
+
export declare const navigationSlice: import('@reduxjs/toolkit').Slice<INavigationPayLoad, {
|
|
10
|
+
setCardState: (state: INavigationPayLoad, action: PayloadAction<INavigationPayloadAction>) => INavigationPayLoad;
|
|
11
|
+
}, "navigation", "navigation", import('@reduxjs/toolkit').SliceSelectors<INavigationPayLoad>>;
|
|
12
|
+
export declare const setCardState: import('@reduxjs/toolkit').ActionCreatorWithPayload<INavigationPayloadAction, "navigation/setCardState">;
|
|
13
|
+
declare const _default: import('redux').Reducer<INavigationPayLoad>;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const ymyStore: import('@reduxjs/toolkit').EnhancedStore<{
|
|
2
|
+
navigation: import('./slices/navigationSlice').INavigationPayLoad;
|
|
3
|
+
}, import('redux').UnknownAction, import('@reduxjs/toolkit').Tuple<[import('redux').StoreEnhancer<{
|
|
4
|
+
dispatch: import('redux-thunk').ThunkDispatch<{
|
|
5
|
+
navigation: import('./slices/navigationSlice').INavigationPayLoad;
|
|
6
|
+
}, undefined, import('redux').UnknownAction>;
|
|
7
|
+
}>, import('redux').StoreEnhancer]>>;
|
|
8
|
+
export type RootState = ReturnType<typeof ymyStore.getState>;
|
|
9
|
+
export type AppDispatch = typeof ymyStore.dispatch;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ymy-components",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.16",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs.js",
|
|
7
7
|
"module": "dist/index.es.js",
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"@react-spring/web": "^9.7.5",
|
|
39
|
+
"@reduxjs/toolkit": "^2.6.1",
|
|
39
40
|
"react": "^18.0.0",
|
|
40
41
|
"react-dom": "^18.0.0",
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"react-redux": "^9.2.0"
|
|
42
|
+
"react-redux": "^9.2.0",
|
|
43
|
+
"styled-components": "^6.1.16"
|
|
44
44
|
}
|
|
45
45
|
}
|
package/dist/src/index.d.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
export interface AnimatedTextProps {
|
|
4
|
-
animate: boolean;
|
|
5
|
-
content: {
|
|
6
|
-
english: string;
|
|
7
|
-
traditional: string;
|
|
8
|
-
simplified: string;
|
|
9
|
-
};
|
|
10
|
-
textStyles?: React.CSSProperties;
|
|
11
|
-
htmlElement?: keyof JSX.IntrinsicElements;
|
|
12
|
-
fadeIn?: boolean;
|
|
13
|
-
}
|
|
14
|
-
export declare const AnimatedText: React.FC<AnimatedTextProps>;
|
|
15
|
-
|
|
16
|
-
export interface BannerButtonProps {
|
|
17
|
-
iconComponent: 'plus' | 'send';
|
|
18
|
-
buttonText: {
|
|
19
|
-
english: string;
|
|
20
|
-
traditional: string;
|
|
21
|
-
simplified: string;
|
|
22
|
-
};
|
|
23
|
-
buttonType?: 'primary' | 'secondary';
|
|
24
|
-
}
|
|
25
|
-
export declare const BannerButton: React.FC<BannerButtonProps>;
|
|
26
|
-
|
|
27
|
-
export interface CircleIconButtonProps {
|
|
28
|
-
iconType: 'person' | 'qr';
|
|
29
|
-
}
|
|
30
|
-
export declare const CircleIconButton: React.FC<CircleIconButtonProps>;
|