enwawa-ui 2.7.0 → 2.7.2

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
@@ -6,6 +6,8 @@ import { Dayjs } from "dayjs";
6
6
  import { RangePickerProps } from "antd/lib/date-picker";
7
7
  import { IconComponentProps } from "@ant-design/icons/lib/components/Icon";
8
8
  import * as Icons from "@ant-design/icons";
9
+ import { BlockProps, EllipsisConfig, BaseType } from "antd/es/typography/Base";
10
+ import { TextProps as _TextProps1 } from "antd/es/typography/Text";
9
11
  import { TabsProps } from "antd/es/tabs";
10
12
  import { CardTabListType } from "antd/es/card";
11
13
  import { CardType } from "antd/es/card/Card";
@@ -17,8 +19,6 @@ import { DotPosition } from "antd/es/carousel";
17
19
  import { CheckboxGroupProps } from "antd/es/checkbox/Group";
18
20
  import { ValueType } from "@rc-component/mini-decimal";
19
21
  import { Gutter } from "antd/es/grid/row";
20
- import { BlockProps, EllipsisConfig, BaseType } from "antd/es/typography/Base";
21
- import { TextProps as _TextProps1 } from "antd/es/typography/Text";
22
22
  import { AnyObject } from "antd/es/_util/type";
23
23
  import { DrawerProps } from "antd/es/drawer";
24
24
  import { GoogleMapProps, GoogleMap } from "@react-google-maps/api";
@@ -525,6 +525,89 @@ export interface AtIconProps {
525
525
  twoToneColor?: string;
526
526
  }
527
527
  export const AtIcon: React.FC<AtIconProps>;
528
+ declare const colorMap: {
529
+ violet: string;
530
+ gold: string;
531
+ white: string;
532
+ gray: string;
533
+ lightGray: string;
534
+ black: string;
535
+ };
536
+ export interface AtTextProps {
537
+ /**
538
+ * Content type
539
+ */
540
+ type?: 'secondary' | 'success' | 'warning' | 'danger';
541
+ /**
542
+ * Whether the text is strong or not
543
+ */
544
+ strong?: boolean;
545
+ /**
546
+ * Whether the text is italic or not
547
+ */
548
+ italic?: boolean;
549
+ /**
550
+ * Whether the text is underline or not
551
+ */
552
+ underline?: boolean;
553
+ /**
554
+ * Whether the text is mark or not
555
+ */
556
+ mark?: boolean;
557
+ /**
558
+ * If editable. Can control edit state when is object
559
+ */
560
+ editable?: boolean | BlockProps['editable'];
561
+ /**
562
+ * Whether to be copyable, customize it via setting an object
563
+ */
564
+ copyable?: boolean | BlockProps['copyable'];
565
+ /**
566
+ * Keyboard style
567
+ */
568
+ keyboard?: boolean;
569
+ /**
570
+ * Code style
571
+ */
572
+ code?: boolean;
573
+ /**
574
+ * children
575
+ */
576
+ children?: React.ReactNode;
577
+ /**
578
+ * Color of the text
579
+ */
580
+ color?: keyof typeof colorMap;
581
+ /**
582
+ * Element width
583
+ */
584
+ $width?: number | string;
585
+ /**
586
+ * Element max width
587
+ */
588
+ $maxWidth?: number | string;
589
+ /**
590
+ * font size
591
+ */
592
+ $fontSize?: number;
593
+ /**
594
+ * textAlign
595
+ */
596
+ $textAlign?: "center" | "left" | "right" | "justify" | "initial" | "inherit" | "unset";
597
+ /**
598
+ * opacity
599
+ */
600
+ $opacity?: number;
601
+ /**
602
+ * ellipsis
603
+ */
604
+ ellipsis?: _TextProps1['ellipsis'];
605
+ /**
606
+ * line height
607
+ */
608
+ $lineHeight?: number;
609
+ }
610
+ export const AtText: React.FC<AtTextProps>;
528
611
  export interface AtImageProps {
529
612
  /**
530
613
  * Image description
@@ -731,14 +814,6 @@ export interface OrTabsProps {
731
814
  hideExtra?: boolean;
732
815
  }
733
816
  export const OrTabs: React.FC<OrTabsProps>;
734
- declare const colorMap: {
735
- violet: string;
736
- gold: string;
737
- white: string;
738
- gray: string;
739
- lightGray: string;
740
- black: string;
741
- };
742
817
  export interface MlCardProps {
743
818
  /**
744
819
  * The ID for input
@@ -2435,81 +2510,6 @@ export interface OrContentProps extends LayoutProps {
2435
2510
  $backgroundSrc?: string;
2436
2511
  }
2437
2512
  export const OrContent: React.FC<OrContentProps>;
2438
- export interface AtTextProps {
2439
- /**
2440
- * Content type
2441
- */
2442
- type?: 'secondary' | 'success' | 'warning' | 'danger';
2443
- /**
2444
- * Whether the text is strong or not
2445
- */
2446
- strong?: boolean;
2447
- /**
2448
- * Whether the text is italic or not
2449
- */
2450
- italic?: boolean;
2451
- /**
2452
- * Whether the text is underline or not
2453
- */
2454
- underline?: boolean;
2455
- /**
2456
- * Whether the text is mark or not
2457
- */
2458
- mark?: boolean;
2459
- /**
2460
- * If editable. Can control edit state when is object
2461
- */
2462
- editable?: boolean | BlockProps['editable'];
2463
- /**
2464
- * Whether to be copyable, customize it via setting an object
2465
- */
2466
- copyable?: boolean | BlockProps['copyable'];
2467
- /**
2468
- * Keyboard style
2469
- */
2470
- keyboard?: boolean;
2471
- /**
2472
- * Code style
2473
- */
2474
- code?: boolean;
2475
- /**
2476
- * children
2477
- */
2478
- children?: React.ReactNode;
2479
- /**
2480
- * Color of the text
2481
- */
2482
- color?: keyof typeof colorMap;
2483
- /**
2484
- * Element width
2485
- */
2486
- $width?: number | string;
2487
- /**
2488
- * Element max width
2489
- */
2490
- $maxWidth?: number | string;
2491
- /**
2492
- * font size
2493
- */
2494
- $fontSize?: number;
2495
- /**
2496
- * textAlign
2497
- */
2498
- $textAlign?: "center" | "left" | "right" | "justify" | "initial" | "inherit" | "unset";
2499
- /**
2500
- * opacity
2501
- */
2502
- $opacity?: number;
2503
- /**
2504
- * ellipsis
2505
- */
2506
- ellipsis?: _TextProps1['ellipsis'];
2507
- /**
2508
- * line height
2509
- */
2510
- $lineHeight?: number;
2511
- }
2512
- export const AtText: React.FC<AtTextProps>;
2513
2513
  export type Size = 'large' | 'middle' | 'small';
2514
2514
  declare const sizes: {
2515
2515
  [key in Size]: {
@@ -2923,6 +2923,10 @@ export interface OrStepProp {
2923
2923
  $lineHeight?: string;
2924
2924
  }
2925
2925
  export const OrStep: React.FC<OrStepProp>;
2926
+ export interface ICustomButtons extends AtButtonProps {
2927
+ label: string;
2928
+ hidden?: boolean;
2929
+ }
2926
2930
  export interface IFormStep<T> {
2927
2931
  title: string;
2928
2932
  inputs?: OrFormItemsInlineProps['inputs'];
@@ -2936,12 +2940,7 @@ export interface IFormStep<T> {
2936
2940
  cancelBtnIcon?: ReactNode;
2937
2941
  isSubmitButtonDanger?: boolean;
2938
2942
  hiddeSubmitButton?: boolean;
2939
- customButtons?: {
2940
- label: string;
2941
- onClick: () => void;
2942
- type: AtButtonProps['type'];
2943
- htmlType?: AtButtonProps['htmlType'];
2944
- }[];
2943
+ customButtons?: ICustomButtons[];
2945
2944
  }
2946
2945
  export interface TmCrudPageProps<RecordType = AnyObject, FormType = any> {
2947
2946
  /**
@@ -3759,6 +3758,10 @@ export interface OrFormInLineItem {
3759
3758
  * file list for the file-input component
3760
3759
  */
3761
3760
  fileList?: MlUploadProps['fileList'];
3761
+ /**
3762
+ * onRemove for the file-input component
3763
+ */
3764
+ onRemoveUploadedFile?: MlUploadProps['onRemove'];
3762
3765
  noStyle?: boolean;
3763
3766
  /**
3764
3767
  * The mode of the upload