enwawa-ui 1.4.0 → 1.5.1

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/lib/index.d.ts CHANGED
@@ -20,6 +20,7 @@ import { Gutter } from "antd/es/grid/row";
20
20
  import { DrawerProps } from "antd/es/drawer";
21
21
  import { AnyObject } from "antd/es/_util/type";
22
22
  import { TableRowSelection } from "antd/es/table/interface";
23
+ import { GoogleMap, GoogleMapProps } from "@react-google-maps/api";
23
24
  import { CheckboxChangeEvent } from "antd/es/checkbox";
24
25
  export interface AtAvatarProps {
25
26
  /**
@@ -928,6 +929,14 @@ export interface AtTagProps {
928
929
  children?: React.ReactNode;
929
930
  }
930
931
  export const AtTag: React.FC<AtTagProps>;
932
+ declare const colorMap: {
933
+ violet: string;
934
+ gold: string;
935
+ white: string;
936
+ gray: string;
937
+ lightGray: string;
938
+ black: string;
939
+ };
931
940
  export interface AtTextProps {
932
941
  /**
933
942
  * Content type
@@ -972,7 +981,7 @@ export interface AtTextProps {
972
981
  /**
973
982
  * Color of the text
974
983
  */
975
- color?: 'violet' | 'gold' | 'white' | 'lightGray';
984
+ color?: keyof typeof colorMap;
976
985
  /**
977
986
  * Element width
978
987
  */
@@ -1923,6 +1932,18 @@ export interface OrRowProps {
1923
1932
  * gap
1924
1933
  */
1925
1934
  $gap?: number;
1935
+ /**
1936
+ * Custom styles properties
1937
+ */
1938
+ style?: React.CSSProperties;
1939
+ /**
1940
+ * On click event
1941
+ */
1942
+ onClick?: React.MouseEventHandler<HTMLDivElement>;
1943
+ /**
1944
+ * Background color
1945
+ */
1946
+ $backgroundColor?: string;
1926
1947
  }
1927
1948
  export const OrRow: React.FC<OrRowProps>;
1928
1949
  export interface OrTwoButtons {
@@ -2114,6 +2135,18 @@ export interface OrColProps {
2114
2135
  * gap between columns
2115
2136
  */
2116
2137
  $gap?: number;
2138
+ /**
2139
+ * Container position type (relative, absolute, fixed, sticky)
2140
+ */
2141
+ $position?: 'relative' | 'absolute' | 'fixed' | 'sticky';
2142
+ /**
2143
+ * onClick event
2144
+ */
2145
+ onClick?: React.MouseEventHandler<HTMLDivElement>;
2146
+ /**
2147
+ * Custom styles properties
2148
+ */
2149
+ style?: React.CSSProperties;
2117
2150
  }
2118
2151
  export const OrCol: React.FC<OrColProps>;
2119
2152
  export interface OrContentProps extends LayoutProps {
@@ -2671,6 +2704,10 @@ export interface OrTableModuleLayoutProps {
2671
2704
  * margin
2672
2705
  */
2673
2706
  $margin?: string;
2707
+ /**
2708
+ * padding
2709
+ */
2710
+ padding?: string;
2674
2711
  }
2675
2712
  export const OrTableModuleLayout: React.FC<OrTableModuleLayoutProps>;
2676
2713
  export interface OrHeaderBalanceProps {
@@ -2686,8 +2723,27 @@ export interface OrHeaderBalanceProps {
2686
2723
  * The balance of the drawer
2687
2724
  */
2688
2725
  balance?: string;
2726
+ /**
2727
+ * container padding
2728
+ */
2729
+ padding?: string;
2689
2730
  }
2690
2731
  export const OrHeaderBalance: React.FC<OrHeaderBalanceProps>;
2732
+ type _Size1 = 'large' | 'middle' | 'small';
2733
+ export interface OrLabelTextBoxProps {
2734
+ title?: string;
2735
+ text?: string;
2736
+ id?: string;
2737
+ size?: _Size1;
2738
+ color?: AtTextProps['color'];
2739
+ }
2740
+ export const OrLabelTextBox: React.FC<OrLabelTextBoxProps>;
2741
+ export interface OrInfoCardProps {
2742
+ data?: OrLabelTextBoxProps[];
2743
+ id?: string;
2744
+ image?: string;
2745
+ }
2746
+ export const OrInfoCard: React.FC<OrInfoCardProps>;
2691
2747
  export interface OrModuleTableHeaderProps {
2692
2748
  /**
2693
2749
  * Title of the module table header
@@ -2896,6 +2952,28 @@ export interface OrLoginLayoutProps {
2896
2952
  children?: React.ReactNode;
2897
2953
  }
2898
2954
  export const OrLoginLayout: React.FC<OrLoginLayoutProps>;
2955
+ export type Size = 'large' | 'middle' | 'small';
2956
+ export const sizes: {
2957
+ [key in Size]: {
2958
+ width: number;
2959
+ height: number;
2960
+ };
2961
+ };
2962
+ export interface OrMarkProps {
2963
+ id?: string;
2964
+ text?: string;
2965
+ color?: AtTextProps['color'];
2966
+ backgroundColor?: string;
2967
+ onClick?: React.MouseEventHandler<HTMLDivElement>;
2968
+ size?: Size;
2969
+ position: {
2970
+ lat: number;
2971
+ lng: number;
2972
+ };
2973
+ component?: React.ReactNode;
2974
+ hasOverlay?: boolean;
2975
+ }
2976
+ export const OrMark: React.FC<OrMarkProps>;
2899
2977
  type ConfigUpdate = ModalFuncProps | ((prevConfig: ModalFuncProps) => ModalFuncProps);
2900
2978
  export type instanceModal = {
2901
2979
  destroy: () => void;
@@ -3421,6 +3499,24 @@ export interface TmLoginPhoneCodeProps {
3421
3499
  onResendPress?: () => void;
3422
3500
  }
3423
3501
  export const TmLoginPhoneCode: React.FC<TmLoginPhoneCodeProps>;
3502
+ export interface MarkersGroup {
3503
+ color?: OrMarkProps['color'];
3504
+ backgroundColor?: string;
3505
+ size?: OrMarkProps['size'];
3506
+ marks: OrMarkProps[];
3507
+ polyLine: boolean;
3508
+ }
3509
+ export interface TmMapPageProps {
3510
+ rightDrawer?: OrDrawerProps;
3511
+ leftTopSelect: AtSelectProps;
3512
+ map: GoogleMapProps & {
3513
+ GOOGLE_MAPS_API_KEY: string;
3514
+ ref?: React.RefObject<GoogleMap>;
3515
+ };
3516
+ staticMarkers?: MarkersGroup[];
3517
+ realtimeMarkers?: MarkersGroup[];
3518
+ }
3519
+ export const TmMapPage: React.FC<TmMapPageProps>;
3424
3520
  export interface TmRechargePageProps {
3425
3521
  /**
3426
3522
  * Page title