ymy-components 0.0.15 → 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.
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Props for the CircleIconButton component.
3
+ */
4
+ export type CircleIconButtonProps = {
5
+ /**
6
+ * Specifies which icon to render.
7
+ * Accepts:
8
+ * - 'person' for the person icon.
9
+ * - 'qr' for the QR code scan icon.
10
+ */
11
+ iconComponent: 'person' | 'qr';
12
+ /**
13
+ * Optional click handler. If provided, this function will be executed
14
+ * when the button is clicked. If omitted, a default action may be used.
15
+ */
16
+ onClick?: () => void;
17
+ };
package/dist/index.d.ts CHANGED
@@ -1 +1,4 @@
1
- export {}
1
+ export { default as AnimatedText } from './animations/AnimatedText';
2
+ export { default as BannerButton } from './buttons/BannerButton';
3
+ export { default as CircleIconButton } from './buttons/CircleIconButton';
4
+ export { ymyStore } from './state/store';
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;
@@ -0,0 +1,6 @@
1
+ type DynamicLanguage = {
2
+ english: string;
3
+ traditional: string;
4
+ simplified: string;
5
+ };
6
+ export default DynamicLanguage;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ymy-components",
3
3
  "private": false,
4
- "version": "0.0.15",
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
- "styled-components": "^6.1.16",
42
- "@reduxjs/toolkit": "^2.6.1",
43
- "react-redux": "^9.2.0"
42
+ "react-redux": "^9.2.0",
43
+ "styled-components": "^6.1.16"
44
44
  }
45
45
  }