@tellescope/react-components 1.230.1 → 1.230.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.
Files changed (53) hide show
  1. package/lib/cjs/Forms/forms.d.ts.map +1 -1
  2. package/lib/cjs/Forms/forms.js +29 -27
  3. package/lib/cjs/Forms/forms.js.map +1 -1
  4. package/lib/cjs/Forms/forms.v2.d.ts.map +1 -1
  5. package/lib/cjs/Forms/forms.v2.js +29 -27
  6. package/lib/cjs/Forms/forms.v2.js.map +1 -1
  7. package/lib/cjs/Forms/hooks.d.ts.map +1 -1
  8. package/lib/cjs/Forms/hooks.js +30 -4
  9. package/lib/cjs/Forms/hooks.js.map +1 -1
  10. package/lib/cjs/Forms/inputs.d.ts +1 -0
  11. package/lib/cjs/Forms/inputs.d.ts.map +1 -1
  12. package/lib/cjs/Forms/inputs.js +28 -1
  13. package/lib/cjs/Forms/inputs.js.map +1 -1
  14. package/lib/cjs/Forms/inputs.v2.d.ts +1 -0
  15. package/lib/cjs/Forms/inputs.v2.d.ts.map +1 -1
  16. package/lib/cjs/Forms/inputs.v2.js +28 -1
  17. package/lib/cjs/Forms/inputs.v2.js.map +1 -1
  18. package/lib/esm/CMS/components.d.ts +0 -1
  19. package/lib/esm/CMS/components.d.ts.map +1 -1
  20. package/lib/esm/Forms/form_responses.d.ts +0 -1
  21. package/lib/esm/Forms/form_responses.d.ts.map +1 -1
  22. package/lib/esm/Forms/forms.d.ts +3 -3
  23. package/lib/esm/Forms/forms.d.ts.map +1 -1
  24. package/lib/esm/Forms/forms.js +30 -28
  25. package/lib/esm/Forms/forms.js.map +1 -1
  26. package/lib/esm/Forms/forms.v2.d.ts +3 -3
  27. package/lib/esm/Forms/forms.v2.d.ts.map +1 -1
  28. package/lib/esm/Forms/forms.v2.js +30 -28
  29. package/lib/esm/Forms/forms.v2.js.map +1 -1
  30. package/lib/esm/Forms/hooks.d.ts +0 -1
  31. package/lib/esm/Forms/hooks.d.ts.map +1 -1
  32. package/lib/esm/Forms/hooks.js +31 -5
  33. package/lib/esm/Forms/hooks.js.map +1 -1
  34. package/lib/esm/Forms/inputs.d.ts +1 -0
  35. package/lib/esm/Forms/inputs.d.ts.map +1 -1
  36. package/lib/esm/Forms/inputs.js +26 -0
  37. package/lib/esm/Forms/inputs.js.map +1 -1
  38. package/lib/esm/Forms/inputs.v2.d.ts +1 -0
  39. package/lib/esm/Forms/inputs.v2.d.ts.map +1 -1
  40. package/lib/esm/Forms/inputs.v2.js +26 -0
  41. package/lib/esm/Forms/inputs.v2.js.map +1 -1
  42. package/lib/esm/controls.d.ts +2 -2
  43. package/lib/esm/inputs.d.ts +1 -1
  44. package/lib/esm/inputs.native.d.ts +0 -1
  45. package/lib/esm/inputs.native.d.ts.map +1 -1
  46. package/lib/esm/state.d.ts +40 -40
  47. package/lib/tsconfig.tsbuildinfo +1 -1
  48. package/package.json +9 -9
  49. package/src/Forms/forms.tsx +5 -1
  50. package/src/Forms/forms.v2.tsx +5 -1
  51. package/src/Forms/hooks.tsx +55 -8
  52. package/src/Forms/inputs.tsx +158 -0
  53. package/src/Forms/inputs.v2.tsx +166 -0
@@ -76,7 +76,7 @@ export declare const useModalIconButton: (props: UseModalIconButtonProps) => {
76
76
  id?: string | undefined;
77
77
  ariaLabel?: string | undefined;
78
78
  disabled?: boolean | undefined;
79
- color?: "inherit" | "default" | "error" | "primary" | "white" | "secondary" | undefined;
79
+ color?: "primary" | "secondary" | "error" | "inherit" | "default" | "white" | undefined;
80
80
  placement?: TooltipPlacement | undefined;
81
81
  onClick?: ((e: any) => void) | undefined;
82
82
  showArrow?: boolean | undefined;
@@ -97,7 +97,7 @@ export declare const IconModal: ({ open, setOpen, children, disabled, onClick, s
97
97
  id?: string | undefined;
98
98
  ariaLabel?: string | undefined;
99
99
  disabled?: boolean | undefined;
100
- color?: "inherit" | "default" | "error" | "primary" | "white" | "secondary" | undefined;
100
+ color?: "primary" | "secondary" | "error" | "inherit" | "default" | "white" | undefined;
101
101
  placement?: TooltipPlacement | undefined;
102
102
  onClick?: ((e: any) => void) | undefined;
103
103
  showArrow?: boolean | undefined;
@@ -104,7 +104,7 @@ export declare const SearchTextInput: ({ onChange, hideIcon, ...props }: {
104
104
  fullWidth?: boolean | undefined;
105
105
  name?: string | undefined;
106
106
  sx?: import("@mui/material").SxProps<{}> | undefined;
107
- variant?: "flat" | "filled" | "outlined" | undefined;
107
+ variant?: "outlined" | "filled" | "flat" | undefined;
108
108
  type?: React.HTMLInputTypeAttribute | undefined;
109
109
  autoCapitalize?: "none" | "characters" | "sentences" | "words" | undefined;
110
110
  autoCorrect?: boolean | undefined;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FileUploaderProps, useDisplayPictureUploadForSelf, useFileUpload } from "./inputs.js";
3
2
  import { TextFieldProps } from "./mui";
4
3
  export { useDisplayPictureUploadForSelf, useFileUpload };
@@ -1 +1 @@
1
- {"version":3,"file":"inputs.native.d.ts","sourceRoot":"","sources":["../../src/inputs.native.tsx"],"names":[],"mappings":";AAEA,OAAO,EACL,iBAAiB,EACjB,8BAA8B,EAC9B,aAAa,EACd,MAAM,aAAa,CAAA;AACpB,OAAO,EAAa,cAAc,EAAE,MAAM,OAAO,CAAA;AAEjD,OAAO,EAAE,8BAA8B,EAAE,aAAa,EAAE,CAAA;AAExD,eAAO,MAAM,YAAY,aAExB,CAAA;AAED,eAAO,MAAM,YAAY,MAAO,iBAAiB,UAEhD,CAAA;AAED,eAAO,MAAM,eAAe,UAAY,cAAc,gBAErD,CAAA"}
1
+ {"version":3,"file":"inputs.native.d.ts","sourceRoot":"","sources":["../../src/inputs.native.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,iBAAiB,EACjB,8BAA8B,EAC9B,aAAa,EACd,MAAM,aAAa,CAAA;AACpB,OAAO,EAAa,cAAc,EAAE,MAAM,OAAO,CAAA;AAEjD,OAAO,EAAE,8BAA8B,EAAE,aAAa,EAAE,CAAA;AAExD,eAAO,MAAM,YAAY,aAExB,CAAA;AAED,eAAO,MAAM,YAAY,MAAO,iBAAiB,UAEhD,CAAA;AAED,eAAO,MAAM,eAAe,UAAY,cAAc,gBAErD,CAAA"}
@@ -1192,10 +1192,7 @@ export declare const useDataSync____internal: () => {
1192
1192
  setLoadTiming: (key: string, loadTimeInMS: number) => void;
1193
1193
  setHandler: (key: string, handler: undefined | (() => void)) => void;
1194
1194
  removeHandler: (key: string, handler: () => void) => void;
1195
- getLoaded: <T extends string>(modelName: T) => ((import("@tellescope/types-models").Form & {
1196
- id: string;
1197
- createdAt: Date;
1198
- }) | (import("@tellescope/types-models").FormField & {
1195
+ getLoaded: <T extends string>(modelName: T) => ((import("@tellescope/types-models").File & {
1199
1196
  id: string;
1200
1197
  createdAt: Date;
1201
1198
  }) | (import("@tellescope/types-models").Enduser & {
@@ -1204,9 +1201,6 @@ export declare const useDataSync____internal: () => {
1204
1201
  }) | (import("@tellescope/types-models").User & {
1205
1202
  id: string;
1206
1203
  createdAt: Date;
1207
- }) | (import("@tellescope/types-models").FormResponse & {
1208
- id: string;
1209
- createdAt: Date;
1210
1204
  }) | (import("@tellescope/types-models").AIConversation & {
1211
1205
  id: string;
1212
1206
  createdAt: Date;
@@ -1273,15 +1267,21 @@ export declare const useDataSync____internal: () => {
1273
1267
  }) | (import("@tellescope/types-models").Meeting & {
1274
1268
  id: string;
1275
1269
  createdAt: Date;
1276
- }) | (import("@tellescope/types-models").File & {
1277
- id: string;
1278
- createdAt: Date;
1279
1270
  }) | (import("@tellescope/types-models").Note & {
1280
1271
  id: string;
1281
1272
  createdAt: Date;
1282
1273
  }) | (import("@tellescope/types-models").MessageTemplate & {
1283
1274
  id: string;
1284
1275
  createdAt: Date;
1276
+ }) | (import("@tellescope/types-models").Form & {
1277
+ id: string;
1278
+ createdAt: Date;
1279
+ }) | (import("@tellescope/types-models").FormField & {
1280
+ id: string;
1281
+ createdAt: Date;
1282
+ }) | (import("@tellescope/types-models").FormResponse & {
1283
+ id: string;
1284
+ createdAt: Date;
1285
1285
  }) | (import("@tellescope/types-models").Journey & {
1286
1286
  id: string;
1287
1287
  createdAt: Date;
@@ -1461,10 +1461,7 @@ export declare const useDataSync____internal: () => {
1461
1461
  createdAt: Date;
1462
1462
  }))[];
1463
1463
  getDeleted: <T_1 extends string>(modelName: T_1) => string[];
1464
- popLoaded: <T_2 extends string>(modelName: T_2) => ((import("@tellescope/types-models").Form & {
1465
- id: string;
1466
- createdAt: Date;
1467
- }) | (import("@tellescope/types-models").FormField & {
1464
+ popLoaded: <T_2 extends string>(modelName: T_2) => ((import("@tellescope/types-models").File & {
1468
1465
  id: string;
1469
1466
  createdAt: Date;
1470
1467
  }) | (import("@tellescope/types-models").Enduser & {
@@ -1473,9 +1470,6 @@ export declare const useDataSync____internal: () => {
1473
1470
  }) | (import("@tellescope/types-models").User & {
1474
1471
  id: string;
1475
1472
  createdAt: Date;
1476
- }) | (import("@tellescope/types-models").FormResponse & {
1477
- id: string;
1478
- createdAt: Date;
1479
1473
  }) | (import("@tellescope/types-models").AIConversation & {
1480
1474
  id: string;
1481
1475
  createdAt: Date;
@@ -1542,15 +1536,21 @@ export declare const useDataSync____internal: () => {
1542
1536
  }) | (import("@tellescope/types-models").Meeting & {
1543
1537
  id: string;
1544
1538
  createdAt: Date;
1545
- }) | (import("@tellescope/types-models").File & {
1546
- id: string;
1547
- createdAt: Date;
1548
1539
  }) | (import("@tellescope/types-models").Note & {
1549
1540
  id: string;
1550
1541
  createdAt: Date;
1551
1542
  }) | (import("@tellescope/types-models").MessageTemplate & {
1552
1543
  id: string;
1553
1544
  createdAt: Date;
1545
+ }) | (import("@tellescope/types-models").Form & {
1546
+ id: string;
1547
+ createdAt: Date;
1548
+ }) | (import("@tellescope/types-models").FormField & {
1549
+ id: string;
1550
+ createdAt: Date;
1551
+ }) | (import("@tellescope/types-models").FormResponse & {
1552
+ id: string;
1553
+ createdAt: Date;
1554
1554
  }) | (import("@tellescope/types-models").Journey & {
1555
1555
  id: string;
1556
1556
  createdAt: Date;
@@ -1738,10 +1738,7 @@ export declare const useSyncContext: () => {
1738
1738
  setLoadTiming: (key: string, loadTimeInMS: number) => void;
1739
1739
  setHandler: (key: string, handler: undefined | (() => void)) => void;
1740
1740
  removeHandler: (key: string, handler: () => void) => void;
1741
- getLoaded: <T extends string>(modelName: T) => ((import("@tellescope/types-models").Form & {
1742
- id: string;
1743
- createdAt: Date;
1744
- }) | (import("@tellescope/types-models").FormField & {
1741
+ getLoaded: <T extends string>(modelName: T) => ((import("@tellescope/types-models").File & {
1745
1742
  id: string;
1746
1743
  createdAt: Date;
1747
1744
  }) | (import("@tellescope/types-models").Enduser & {
@@ -1750,9 +1747,6 @@ export declare const useSyncContext: () => {
1750
1747
  }) | (import("@tellescope/types-models").User & {
1751
1748
  id: string;
1752
1749
  createdAt: Date;
1753
- }) | (import("@tellescope/types-models").FormResponse & {
1754
- id: string;
1755
- createdAt: Date;
1756
1750
  }) | (import("@tellescope/types-models").AIConversation & {
1757
1751
  id: string;
1758
1752
  createdAt: Date;
@@ -1819,15 +1813,21 @@ export declare const useSyncContext: () => {
1819
1813
  }) | (import("@tellescope/types-models").Meeting & {
1820
1814
  id: string;
1821
1815
  createdAt: Date;
1822
- }) | (import("@tellescope/types-models").File & {
1823
- id: string;
1824
- createdAt: Date;
1825
1816
  }) | (import("@tellescope/types-models").Note & {
1826
1817
  id: string;
1827
1818
  createdAt: Date;
1828
1819
  }) | (import("@tellescope/types-models").MessageTemplate & {
1829
1820
  id: string;
1830
1821
  createdAt: Date;
1822
+ }) | (import("@tellescope/types-models").Form & {
1823
+ id: string;
1824
+ createdAt: Date;
1825
+ }) | (import("@tellescope/types-models").FormField & {
1826
+ id: string;
1827
+ createdAt: Date;
1828
+ }) | (import("@tellescope/types-models").FormResponse & {
1829
+ id: string;
1830
+ createdAt: Date;
1831
1831
  }) | (import("@tellescope/types-models").Journey & {
1832
1832
  id: string;
1833
1833
  createdAt: Date;
@@ -2007,10 +2007,7 @@ export declare const useSyncContext: () => {
2007
2007
  createdAt: Date;
2008
2008
  }))[];
2009
2009
  getDeleted: <T_1 extends string>(modelName: T_1) => string[];
2010
- popLoaded: <T_2 extends string>(modelName: T_2) => ((import("@tellescope/types-models").Form & {
2011
- id: string;
2012
- createdAt: Date;
2013
- }) | (import("@tellescope/types-models").FormField & {
2010
+ popLoaded: <T_2 extends string>(modelName: T_2) => ((import("@tellescope/types-models").File & {
2014
2011
  id: string;
2015
2012
  createdAt: Date;
2016
2013
  }) | (import("@tellescope/types-models").Enduser & {
@@ -2019,9 +2016,6 @@ export declare const useSyncContext: () => {
2019
2016
  }) | (import("@tellescope/types-models").User & {
2020
2017
  id: string;
2021
2018
  createdAt: Date;
2022
- }) | (import("@tellescope/types-models").FormResponse & {
2023
- id: string;
2024
- createdAt: Date;
2025
2019
  }) | (import("@tellescope/types-models").AIConversation & {
2026
2020
  id: string;
2027
2021
  createdAt: Date;
@@ -2088,15 +2082,21 @@ export declare const useSyncContext: () => {
2088
2082
  }) | (import("@tellescope/types-models").Meeting & {
2089
2083
  id: string;
2090
2084
  createdAt: Date;
2091
- }) | (import("@tellescope/types-models").File & {
2092
- id: string;
2093
- createdAt: Date;
2094
2085
  }) | (import("@tellescope/types-models").Note & {
2095
2086
  id: string;
2096
2087
  createdAt: Date;
2097
2088
  }) | (import("@tellescope/types-models").MessageTemplate & {
2098
2089
  id: string;
2099
2090
  createdAt: Date;
2091
+ }) | (import("@tellescope/types-models").Form & {
2092
+ id: string;
2093
+ createdAt: Date;
2094
+ }) | (import("@tellescope/types-models").FormField & {
2095
+ id: string;
2096
+ createdAt: Date;
2097
+ }) | (import("@tellescope/types-models").FormResponse & {
2098
+ id: string;
2099
+ createdAt: Date;
2100
2100
  }) | (import("@tellescope/types-models").Journey & {
2101
2101
  id: string;
2102
2102
  createdAt: Date;