@hiver/connector-agent 1.3.4-beta.0 → 1.3.4-beta.10

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 (86) hide show
  1. package/app/provider.d.ts.map +1 -1
  2. package/components/ui/layover/index.d.ts.map +1 -1
  3. package/components/ui/layover/styles.d.ts.map +1 -1
  4. package/components/ui/text-field/index.d.ts +3 -0
  5. package/components/ui/text-field/index.d.ts.map +1 -0
  6. package/constants/card.d.ts +8 -0
  7. package/constants/card.d.ts.map +1 -1
  8. package/constants/global-constants.d.ts +2 -0
  9. package/constants/global-constants.d.ts.map +1 -1
  10. package/context/index.d.ts +2 -0
  11. package/context/index.d.ts.map +1 -1
  12. package/context/main-app-provider/index.d.ts +2 -1
  13. package/context/main-app-provider/index.d.ts.map +1 -1
  14. package/features/connector-cards/api/index.d.ts +3 -2
  15. package/features/connector-cards/api/index.d.ts.map +1 -1
  16. package/features/connector-cards/components/card-list/Card.d.ts +1 -0
  17. package/features/connector-cards/components/card-list/Card.d.ts.map +1 -1
  18. package/features/connector-cards/components/card-list/index.d.ts.map +1 -1
  19. package/features/connector-cards/components/card-list/style.d.ts.map +1 -1
  20. package/features/connector-cards/constants/api.d.ts.map +1 -1
  21. package/features/connector-cards/constants/card-content.d.ts +2 -2
  22. package/features/connector-cards/constants/card-content.d.ts.map +1 -1
  23. package/features/connector-cards/store/slice.d.ts +3 -0
  24. package/features/connector-cards/store/slice.d.ts.map +1 -1
  25. package/features/toast-message/constants/toast.d.ts +2 -0
  26. package/features/toast-message/constants/toast.d.ts.map +1 -1
  27. package/features/write-form/api/index.d.ts +15 -3
  28. package/features/write-form/api/index.d.ts.map +1 -1
  29. package/features/write-form/components/card-linking/card-linking.d.ts +7 -0
  30. package/features/write-form/components/card-linking/card-linking.d.ts.map +1 -0
  31. package/features/write-form/components/card-linking/card-preview.d.ts +12 -0
  32. package/features/write-form/components/card-linking/card-preview.d.ts.map +1 -0
  33. package/features/write-form/components/card-linking/style.d.ts +6 -0
  34. package/features/write-form/components/card-linking/style.d.ts.map +1 -0
  35. package/features/write-form/components/card-linking/unlink-card-modal.d.ts +11 -0
  36. package/features/write-form/components/card-linking/unlink-card-modal.d.ts.map +1 -0
  37. package/features/write-form/components/write-form/index.d.ts +5 -1
  38. package/features/write-form/components/write-form/index.d.ts.map +1 -1
  39. package/features/write-form/components/write-form/styles.d.ts +6 -1
  40. package/features/write-form/components/write-form/styles.d.ts.map +1 -1
  41. package/features/write-form/constants/api.d.ts +4 -0
  42. package/features/write-form/constants/api.d.ts.map +1 -1
  43. package/features/write-form/constants/index.d.ts +9 -0
  44. package/features/write-form/constants/index.d.ts.map +1 -1
  45. package/features/write-form/constants/regex-pattern.d.ts +3 -0
  46. package/features/write-form/constants/regex-pattern.d.ts.map +1 -0
  47. package/features/write-form/store/initial-state.d.ts +11 -3
  48. package/features/write-form/store/initial-state.d.ts.map +1 -1
  49. package/features/write-form/store/selectors.d.ts +10 -1
  50. package/features/write-form/store/selectors.d.ts.map +1 -1
  51. package/features/write-form/store/slice.d.ts +85 -7
  52. package/features/write-form/store/slice.d.ts.map +1 -1
  53. package/features/write-form/types/form.d.ts +19 -11
  54. package/features/write-form/types/form.d.ts.map +1 -1
  55. package/features/write-form/utils/index.d.ts +4 -1
  56. package/features/write-form/utils/index.d.ts.map +1 -1
  57. package/index.es.js +10062 -9520
  58. package/index.umd.js +263 -190
  59. package/package.json +1 -1
  60. package/testing/mocks/handlers/fetch-cards.d.ts +2 -1
  61. package/testing/mocks/handlers/fetch-cards.d.ts.map +1 -1
  62. package/testing/mocks/handlers/write-capability.d.ts.map +1 -1
  63. package/types/cards.d.ts +2 -0
  64. package/types/cards.d.ts.map +1 -1
  65. package/types/json.d.ts +7 -0
  66. package/types/json.d.ts.map +1 -0
  67. package/utils.d.ts +3 -0
  68. package/utils.d.ts.map +1 -1
  69. package/components/ui/async-select/index.d.ts +0 -4
  70. package/components/ui/async-select/index.d.ts.map +0 -1
  71. package/components/ui/date-field/index.d.ts +0 -3
  72. package/components/ui/date-field/index.d.ts.map +0 -1
  73. package/components/ui/form/index.d.ts +0 -35
  74. package/components/ui/form/index.d.ts.map +0 -1
  75. package/components/ui/form/styles.d.ts +0 -4
  76. package/components/ui/form/styles.d.ts.map +0 -1
  77. package/components/ui/form-fields/index.d.ts +0 -21
  78. package/components/ui/form-fields/index.d.ts.map +0 -1
  79. package/components/ui/form-fields/styles.d.ts +0 -7
  80. package/components/ui/form-fields/styles.d.ts.map +0 -1
  81. package/components/ui/select/index.d.ts +0 -3
  82. package/components/ui/select/index.d.ts.map +0 -1
  83. package/components/ui/select/style.d.ts +0 -2
  84. package/components/ui/select/style.d.ts.map +0 -1
  85. package/types/form.d.ts +0 -62
  86. package/types/form.d.ts.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hiver/connector-agent",
3
- "version": "1.3.4-beta.0",
3
+ "version": "1.3.4-beta.10",
4
4
  "main": "index.es.js",
5
5
  "module": "index.es.js",
6
6
  "types": "index.d.ts",
@@ -1,5 +1,6 @@
1
1
  import { ICardTypes, IFlatDisplay } from '../../../types/cards';
2
- export declare const getSpecificConnector: (id: string, count?: number) => {
2
+ export declare const getSpecificConnector: (id: string, count?: number, isPreview?: boolean) => {
3
+ cardTitle?: string | undefined;
3
4
  id: string;
4
5
  cardType: ICardTypes;
5
6
  data: IFlatDisplay;
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-cards.d.ts","sourceRoot":"","sources":["../../../../src/testing/mocks/handlers/fetch-cards.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,YAAY,EAA4B,MAAM,eAAe,CAAC;AAyBnF,eAAO,MAAM,oBAAoB,OAAQ,MAAM,UAAS,MAAM;;cA4CT,UAAU;;CAG9D,CAAC;AAaF,eAAO,MAAM,QAAQ,6BAAkD,CAAC"}
1
+ {"version":3,"file":"fetch-cards.d.ts","sourceRoot":"","sources":["../../../../src/testing/mocks/handlers/fetch-cards.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,YAAY,EAA4B,MAAM,eAAe,CAAC;AA0BnF,eAAO,MAAM,oBAAoB,OAAQ,MAAM,UAAS,MAAM,cAAiB,OAAO;;;cA4CjC,UAAU;;CAI9D,CAAC;AAaF,eAAO,MAAM,QAAQ,6BAAkD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"write-capability.d.ts","sourceRoot":"","sources":["../../../../src/testing/mocks/handlers/write-capability.ts"],"names":[],"mappings":"AA+KA,eAAO,MAAM,QAAQ,6BAAkC,CAAC"}
1
+ {"version":3,"file":"write-capability.d.ts","sourceRoot":"","sources":["../../../../src/testing/mocks/handlers/write-capability.ts"],"names":[],"mappings":"AAoeA,eAAO,MAAM,QAAQ,6BAAiF,CAAC"}
package/types/cards.d.ts CHANGED
@@ -4,6 +4,7 @@ export type ICard = {
4
4
  title: string;
5
5
  priority: number;
6
6
  type: ICardTypes;
7
+ externalResourceId?: string;
7
8
  };
8
9
  export type IFlatDisArr = {
9
10
  label: string;
@@ -31,6 +32,7 @@ export type IFlatDisplay = {
31
32
  export type ISpecificCard = {
32
33
  id: string;
33
34
  cardType: ICardTypes;
35
+ cardTitle?: string;
34
36
  data: IFlatDisplay;
35
37
  };
36
38
  //# sourceMappingURL=cards.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cards.d.ts","sourceRoot":"","sources":["../../src/types/cards.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,gBAAgB,CAAC;AAEnD,MAAM,MAAM,KAAK,GAAG;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,UAAU,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,GAAG,IAAI,CA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AG,IAAI,CAAC;IAC5B,UAAU,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B,CAAC;AAEF,MAAM,WAAW,UAAU;IACzB,MAAM,EAAE,KAAK,CAAC,YAAY,EAAE,CAAC,CAAC;IAC9B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,MAAM,YAAY,GAAG;IACzB,WAAW,EAAE,WAAW,EAAE,CAAC;IAC3B,SAAS,EAAE,UAAU,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,UAAU,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,YAAY,CAAC;CACpB,CAAC"}
@@ -0,0 +1,7 @@
1
+ export type JSONPrimitive = string | number | boolean | null;
2
+ export type JSONObject = {
3
+ [k: string]: JSONValue;
4
+ };
5
+ export type JSONArray = JSONValue[];
6
+ export type JSONValue = JSONArray | JSONObject | JSONPrimitive;
7
+ //# sourceMappingURL=json.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"json.d.ts","sourceRoot":"","sources":["../../src/types/json.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAC;AAC7D,MAAM,MAAM,UAAU,GAAG;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,CAAC;AACpD,MAAM,MAAM,SAAS,GAAG,SAAS,EAAE,CAAC;AACpC,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,UAAU,GAAG,aAAa,CAAC"}
package/utils.d.ts CHANGED
@@ -50,4 +50,7 @@ export declare const setLocalStorageData: (version: string, shouldReset?: boolea
50
50
  * @param {String} featureName
51
51
  */
52
52
  export declare const isFeatureAvailable: (availableFeatures: IAvailableFtr | undefined, featureName: string) => boolean;
53
+ export declare const replacePlaceholders: (template: string, values: {
54
+ [key: string]: string | number;
55
+ }) => string;
53
56
  //# sourceMappingURL=utils.d.ts.map
package/utils.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAK1C,eAAO,MAAM,iBAAiB,SAAU,MAAM,GAAG,MAAM,WAGtD,CAAC;AAEF,eAAO,MAAM,cAAc,YAAa,MAAM;;+DAsD0r6M,eAAe;kCAAzo6M,eAAe,iBAAiB,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;oBA5BnI,eACjB;;;oBAOC,eAAc;;;;;;;+YA9BvB,CAAC;AAEF,eAAO,MAAM,yBAAyB,YAAa,MAAM,YAIxD,CAAC;AAIF,eAAO,MAAM,yBAAyB,YAAa,MAAM,WAAU,MAAM,YAIxE,CAAC;AAEF,eAAO,MAAM,mBAAmB,YAAa,MAAM,gBAAe,OAAO,SAwBxE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,sBAAuB,aAAa,2BAAoB,MAAM,YAE5F,CAAC"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAK1C,eAAO,MAAM,iBAAiB,SAAU,MAAM,GAAG,MAAM,WAGtD,CAAC;AAEF,eAAO,MAAM,cAAc,YAAa,MAAM;;+DA0D0/5M,eAAe;kCAH185M,eAChG,iBAAiB,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;oBA9BnB,eACjB;;;oBAOC,eAAc;;;;;;;+YA9BvB,CAAC;AAEF,eAAO,MAAM,yBAAyB,YAAa,MAAM,YAIxD,CAAC;AAIF,eAAO,MAAM,yBAAyB,YAAa,MAAM,WAAU,MAAM,YAIxE,CAAC;AAEF,eAAO,MAAM,mBAAmB,YAAa,MAAM,gBAAe,OAAO,SAwBxE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,sBAAuB,aAAa,2BAAoB,MAAM,YAE5F,CAAC;AAEF,eAAO,MAAM,mBAAmB,aAAc,MAAM,UAAU;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAA;CAAE,KAAG,MAElG,CAAC"}
@@ -1,4 +0,0 @@
1
- import { GroupBase } from 'react-select';
2
- import { AsyncSelectFieldProps } from '../../../types/form';
3
- export declare function AsyncSelect<OptionType, IsMulti extends boolean = false, GroupType extends GroupBase<OptionType> = GroupBase<OptionType>>(props: AsyncSelectFieldProps<OptionType, IsMulti, GroupType>): import("react/jsx-runtime").JSX.Element;
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/async-select/index.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAcrD,wBAAgB,WAAW,CACzB,UAAU,EACV,OAAO,SAAS,OAAO,GAAG,KAAK,EAC/B,SAAS,SAAS,SAAS,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC,UAAU,CAAC,EAC/D,KAAK,EAAE,qBAAqB,CAAC,UAAU,EAAE,OAAO,EAAE,SAAS,CAAC,2CAiF7D"}
@@ -1,3 +0,0 @@
1
- import { DateFieldProps } from '../../../types/form';
2
- export declare function DateField(props: DateFieldProps): import("react/jsx-runtime").JSX.Element;
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/date-field/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAEnD,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,2CAsD9C"}
@@ -1,35 +0,0 @@
1
- import { default as React } from 'react';
2
- import { FormValidation, IFormConfig, AsyncLoadOptions } from '../../../types/form';
3
- import { ActionMeta } from 'react-select';
4
- interface IForm {
5
- formConfig: IFormConfig[];
6
- predicates?: {
7
- [key: string]: boolean;
8
- };
9
- values?: {
10
- [key: string]: unknown;
11
- };
12
- inputChangeHandler?: (event: React.ChangeEvent<HTMLInputElement>) => void;
13
- selectChangeHandler?: (event: unknown, action: ActionMeta<unknown>) => void;
14
- dateChangeHandler?: (name: string, value: Date | null, keyboardInputValue?: string | undefined) => void;
15
- onValidationError?: (name: string, error: string | boolean) => void;
16
- validations?: FormValidation;
17
- icons?: {
18
- [key: string]: {
19
- icon: React.ReactNode;
20
- toolTipText: string;
21
- };
22
- };
23
- sectionSpacing?: number;
24
- fieldsSpacing?: number;
25
- labelSpacing?: number;
26
- fetchConfig?: {
27
- [key: string]: {
28
- loadOptions: AsyncLoadOptions<unknown>;
29
- key?: string;
30
- };
31
- } | null;
32
- }
33
- export declare const Form: ({ formConfig, icons, selectChangeHandler, inputChangeHandler, dateChangeHandler, predicates, values, validations, onValidationError, sectionSpacing, fieldsSpacing, labelSpacing, fetchConfig }: IForm) => import("react/jsx-runtime").JSX.Element;
34
- export {};
35
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/form/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,O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;YAAC,GAAG,CAAC,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,GAAG,IAAI,CAAC;CAClG;AAED,eAAO,MAAM,IAAI,oMAcd,KAAK,4CA2CP,CAAC"}
@@ -1,4 +0,0 @@
1
- import { StyledComponent } from '@emotion/styled';
2
- import { StackProps } from '@hiver/hiver-ui-kit';
3
- export declare const FormWrapper: StyledComponent<StackProps>;
4
- //# sourceMappingURL=styles.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/form/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEtD,eAAO,MAAM,WAAW,EAAE,eAAe,CAAC,UAAU,CAKnD,CAAC"}
@@ -1,21 +0,0 @@
1
- import { default as React } from 'react';
2
- import { ActionMeta } from 'react-select';
3
- import { FormFieldProps, ElementValidation, AsyncLoadOptions } from '../../../types/form';
4
- type FormField = FormFieldProps & {
5
- validation?: ElementValidation;
6
- validateOnBlur?: boolean;
7
- validateOnChange?: boolean;
8
- selectChangeHandler?: (event: unknown, action: ActionMeta<unknown>) => void;
9
- inputChangeHandler?: (event: React.ChangeEvent<HTMLInputElement>) => void;
10
- dateChangeHandler?: (name: string, value: Date | null, keyboardInputValue?: string | undefined) => void;
11
- onValidationError?: (name: string, error: string | boolean) => void;
12
- iconData?: {
13
- icon: React.ReactNode;
14
- toolTipText: string;
15
- };
16
- labelSpacing?: number;
17
- loadOptions?: AsyncLoadOptions<unknown>;
18
- };
19
- export declare const FormFields: (props: FormField) => import("react/jsx-runtime").JSX.Element;
20
- export {};
21
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/form-fields/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAOnD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,gBAAgB,EAAmB,MAAM,cAAc,CAAC;AAIzG,KAAK,SAAS,GAAG,cAAc,GAAG;IAChC,UAAU,CAAC,EAAE,iBAAiB,CAAC;IAC/B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,mBAAmB,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,UAAU,CAAC,OAAO,CAAC,KAAK,IAAI,CAAC;IAC5E,kBAAkB,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAC1E,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,GAAG,IAAI,EAAE,kBAAkB,CAAC,EAAE,MAAM,GAAG,SAAS,KAAK,IAAI,CAAC;IACxG,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,KAAK,IAAI,CAAC;IACpE,QAAQ,CAAC,EAAE;QAAE,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,CAAC;IAC1D,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC;CACzC,CAAC;AAEF,eAAO,MAAM,UAAU,UAAW,SAAS,4CA4N1C,CAAC"}
@@ -1,7 +0,0 @@
1
- import { StyledComponent } from '@emotion/styled';
2
- import { BoxProps, OutlinedInputProps } from '@hiver/hiver-ui-kit';
3
- export declare const OutlinedInput: StyledComponent<OutlinedInputProps>;
4
- export declare const SelectWrapper: StyledComponent<BoxProps>;
5
- export declare const HelperText: StyledComponent<BoxProps>;
6
- export declare const InputWrapper: StyledComponent<BoxProps>;
7
- //# sourceMappingURL=styles.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/form-fields/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAExE,eAAO,MAAM,aAAa,EAAE,eAAe,CAAC,kBAAkB,CAQ7D,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,eAAe,CAAC,QAAQ,CA6DnD,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,eAAe,CAAC,QAAQ,CAUhD,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,eAAe,CAAC,QAAQ,CAclD,CAAC"}
@@ -1,3 +0,0 @@
1
- import { Props as SelectProps } from 'react-select';
2
- export declare const Select: (props: SelectProps) => import("react/jsx-runtime").JSX.Element;
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/select/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,IAAI,WAAW,EAA0B,MAAM,cAAc,CAAC;AAUjF,eAAO,MAAM,MAAM,UAAW,WAAW,4CAExC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=style.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/select/style.tsx"],"names":[],"mappings":""}
package/types/form.d.ts DELETED
@@ -1,62 +0,0 @@
1
- import { default as React } from 'react';
2
- import { OutlinedInputProps, DatePickerProps } from '@hiver/hiver-ui-kit';
3
- import { Props as SelectProps, GroupBase, OptionsOrGroups } from 'react-select';
4
- import { AsyncProps } from 'react-select/async';
5
- export interface BaseFormFieldProps {
6
- helperText?: string;
7
- error?: boolean;
8
- name: string;
9
- toolTipTitle?: string;
10
- isRequired?: boolean;
11
- key?: string;
12
- }
13
- export type FIELD_TYPES = 'text' | 'number' | 'password' | 'select' | 'async-select' | 'date';
14
- export interface TextFieldBaseProps extends BaseFormFieldProps {
15
- type: Extract<FIELD_TYPES, 'text' | 'number' | 'password'>;
16
- label?: React.ReactNode;
17
- max?: number;
18
- min?: number;
19
- }
20
- export interface TextFieldProps extends TextFieldBaseProps, Omit<OutlinedInputProps, 'label' | 'name' | 'type'> {
21
- }
22
- export interface SelectFieldProps extends BaseFormFieldProps, Omit<SelectProps, 'name'> {
23
- type: Extract<FIELD_TYPES, 'select'>;
24
- label?: string;
25
- }
26
- export type AsyncLoadOptions<OptionType, GroupType extends GroupBase<OptionType> = GroupBase<OptionType>> = (inputValue: string, callback: (options: OptionsOrGroups<OptionType, GroupType>) => void, isScrollToBottomEvent: boolean) => void;
27
- export interface AsyncSelectFieldProps<OptionType, IsMulti extends boolean = false, GroupType extends GroupBase<OptionType> = GroupBase<OptionType>> extends BaseFormFieldProps, Omit<AsyncProps<OptionType, IsMulti, GroupType>, 'name' | 'loadOptions'> {
28
- type: Extract<FIELD_TYPES, 'async-select'>;
29
- label?: string;
30
- loadOptions?: AsyncLoadOptions<OptionType, GroupType>;
31
- isApiSearchEnabled?: boolean;
32
- isInfiniteScrollable?: boolean;
33
- loadOptionsOnFocus?: boolean;
34
- }
35
- export interface DateFieldProps extends BaseFormFieldProps, DatePickerProps<Date, Date> {
36
- type: Extract<FIELD_TYPES, 'date'>;
37
- label?: string;
38
- placeholder?: string;
39
- onBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
40
- onFocus?: (event: React.FocusEvent<HTMLInputElement>) => void;
41
- id?: string;
42
- }
43
- export type FormFieldProps = TextFieldProps | SelectFieldProps | AsyncSelectFieldProps<unknown> | DateFieldProps;
44
- export interface IFormConfig {
45
- id: string | number;
46
- title?: string;
47
- formFields: FormFieldProps[];
48
- }
49
- export interface IValidateConfig {
50
- id?: string;
51
- name: string;
52
- label?: React.ReactNode | string;
53
- [key: string]: unknown;
54
- }
55
- export interface ElementValidation {
56
- isRequired?: boolean | ((value: unknown) => boolean | string);
57
- validate?: (values: unknown, appConfigs: IValidateConfig) => boolean | string;
58
- }
59
- export interface FormValidation {
60
- [x: string]: ElementValidation;
61
- }
62
- //# sourceMappingURL=form.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../src/types/form.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC1E,OAAO,KAAK,EAAE,KAAK,IAAI,WAAW,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACrF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAErD,MAAM,WAAW,kBAAkB;IACjC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,QAAQ,GAAG,UAAU,GAAG,QAAQ,GAAG,cAAc,GAAG,MAAM,CAAC;AAE9F,MAAM,WAAW,kBAAmB,SAAQ,kBAAkB;IAC5D,IAAI,EAAE,OAAO,CAAC,WAAW,EAAE,MAAM,GAAG,QAAQ,GAAG,UAAU,CAAC,CAAC;IAC3D,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,cAAe,SAAQ,kBAAkB,EAAE,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