@devtron-labs/devtron-fe-common-lib 0.3.3-beta-6 → 0.3.4

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.
Files changed (27) hide show
  1. package/dist/Common/Helper.d.ts +6 -0
  2. package/dist/Shared/Components/Button/Button.component.d.ts +1 -1
  3. package/dist/Shared/Components/Button/types.d.ts +7 -0
  4. package/dist/Shared/Hooks/index.d.ts +0 -1
  5. package/dist/assets/index.css +1 -1
  6. package/dist/{cssMode-D2t4Dha2.js → cssMode-CAt4DnsD.js} +1 -1
  7. package/dist/{freemarker2-D39zFABe.js → freemarker2-CCVDABCU.js} +1 -1
  8. package/dist/{handlebars-CWWNQuBG.js → handlebars-dzB9tV-2.js} +1 -1
  9. package/dist/{html-NBLaPghp.js → html-Bx1dsYsP.js} +1 -1
  10. package/dist/{htmlMode-BW3N7Ngk.js → htmlMode-BNc6Qhbv.js} +1 -1
  11. package/dist/{index-B-RFEefS.js → index-B5tIEL0E.js} +15921 -15947
  12. package/dist/index.js +1 -1
  13. package/dist/{javascript-CTIA1K6g.js → javascript-BH9ELM9O.js} +1 -1
  14. package/dist/{jsonMode-Pq5noLEn.js → jsonMode-BgB460Pj.js} +1 -1
  15. package/dist/{liquid-CUj8Ueht.js → liquid-BHcQyo-3.js} +1 -1
  16. package/dist/{mdx-DpNdDQgw.js → mdx-BxzAvEjq.js} +1 -1
  17. package/dist/{python-CicdeGFS.js → python-OPGRKNe-.js} +1 -1
  18. package/dist/{razor-nppHFG5T.js → razor-Dp49O1vM.js} +1 -1
  19. package/dist/{tsMode-BiiFbfNx.js → tsMode-R4jOEqyY.js} +1 -1
  20. package/dist/{typescript-CO7t4-PG.js → typescript-CnQpn36u.js} +1 -1
  21. package/dist/{xml-BImtN4Hu.js → xml-CMRI0x4K.js} +1 -1
  22. package/dist/{yaml-WCaeYmeb.js → yaml-hBfPBdAI.js} +1 -1
  23. package/package.json +1 -1
  24. package/dist/Shared/Hooks/useForm/index.d.ts +0 -2
  25. package/dist/Shared/Hooks/useForm/useForm.d.ts +0 -29
  26. package/dist/Shared/Hooks/useForm/useForm.types.d.ts +0 -30
  27. package/dist/Shared/Hooks/useForm/useForm.utils.d.ts +0 -10
@@ -22,6 +22,12 @@ export declare const refresh: () => void;
22
22
  export declare const reportIssue: () => void;
23
23
  export declare function useEffectAfterMount(cb: any, dependencies: any): void;
24
24
  export declare function getCookie(sKey: any): string;
25
+ export declare function useForm(stateSchema: any, validationSchema: {}, callback: any): {
26
+ state: any;
27
+ disable: boolean;
28
+ handleOnChange: (event: any) => void;
29
+ handleOnSubmit: (event: any) => void;
30
+ };
25
31
  export declare function handleUTCTime(ts: string, isRelativeTime?: boolean): string;
26
32
  export declare function useSearchString(): UseSearchString;
27
33
  export declare const closeOnEscKeyPressed: (e: any, actionClose: () => void) => void;
@@ -63,5 +63,5 @@ import { ButtonProps } from './types';
63
63
  * <Button icon={<ICCube />} ariaLabel="Label" />
64
64
  * ```
65
65
  */
66
- declare const Button: ({ dataTestId, text, variant, size, style, startIcon, endIcon, disabled, isLoading, showTooltip, tooltipProps, icon, ariaLabel, ...props }: ButtonProps) => JSX.Element;
66
+ declare const Button: ({ dataTestId, text, variant, size, style, startIcon, endIcon, disabled, isLoading, showTooltip, tooltipProps, icon, ariaLabel, showAriaLabelInTippy, ...props }: ButtonProps) => JSX.Element;
67
67
  export default Button;
@@ -89,6 +89,7 @@ export type ButtonProps = ({
89
89
  }) & ({
90
90
  icon?: never;
91
91
  ariaLabel?: never;
92
+ showAriaLabelInTippy?: never;
92
93
  /**
93
94
  * Text to be displayed in the button
94
95
  */
@@ -106,6 +107,12 @@ export type ButtonProps = ({
106
107
  * If provided, icon button is rendered
107
108
  */
108
109
  icon: ReactElement;
110
+ /**
111
+ * If false, the ariaLabel is not shown in tippy
112
+ *
113
+ * @default true
114
+ */
115
+ showAriaLabelInTippy?: boolean;
109
116
  /**
110
117
  * Label for the icon button for accessibility.
111
118
  * Shown on hover in tooltip if tippy is not provided explicitly
@@ -1,4 +1,3 @@
1
1
  export * from './UsePrompt';
2
2
  export * from './useGetResourceKindsOptions';
3
3
  export * from './UseDownload';
4
- export * from './useForm';