@integrativedesigndevelopment/dashboard-core 0.1.0 → 0.1.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.
Files changed (147) hide show
  1. package/dist/actions/pluginActions.d.ts +48 -0
  2. package/dist/actions/pluginActions.d.ts.map +1 -0
  3. package/dist/actions/types.d.ts +17 -0
  4. package/dist/actions/types.d.ts.map +1 -0
  5. package/dist/components/ActivityProvider/index.d.ts +8 -0
  6. package/dist/components/ActivityProvider/index.d.ts.map +1 -0
  7. package/dist/components/ActivityProvider/types.d.ts +15 -0
  8. package/dist/components/ActivityProvider/types.d.ts.map +1 -0
  9. package/dist/components/CancelActionButton/index.d.ts +14 -0
  10. package/dist/components/CancelActionButton/index.d.ts.map +1 -0
  11. package/dist/components/Card/index.d.ts +19 -0
  12. package/dist/components/Card/index.d.ts.map +1 -0
  13. package/dist/components/ConfirmActionButton/index.d.ts +14 -0
  14. package/dist/components/ConfirmActionButton/index.d.ts.map +1 -0
  15. package/dist/components/ErrorBoundary/index.d.ts +24 -0
  16. package/dist/components/ErrorBoundary/index.d.ts.map +1 -0
  17. package/dist/components/Forms/FormField/index.d.ts +19 -0
  18. package/dist/components/Forms/FormField/index.d.ts.map +1 -0
  19. package/dist/components/Forms/FormField/index.improved.d.ts +27 -0
  20. package/dist/components/Forms/FormField/index.improved.d.ts.map +1 -0
  21. package/dist/components/Forms/SubmitButton/index.d.ts +11 -0
  22. package/dist/components/Forms/SubmitButton/index.d.ts.map +1 -0
  23. package/dist/components/Forms/SubmitButton/index.improved.d.ts +17 -0
  24. package/dist/components/Forms/SubmitButton/index.improved.d.ts.map +1 -0
  25. package/dist/components/Forms/TermsCheckbox/index.d.ts +13 -0
  26. package/dist/components/Forms/TermsCheckbox/index.d.ts.map +1 -0
  27. package/dist/components/Forms/TermsCheckbox/index.improved.d.ts +23 -0
  28. package/dist/components/Forms/TermsCheckbox/index.improved.d.ts.map +1 -0
  29. package/dist/components/IDDLinkInputItem/index.d.ts +18 -0
  30. package/dist/components/IDDLinkInputItem/index.d.ts.map +1 -0
  31. package/dist/components/Layout/SimpleLayout.d.ts +8 -0
  32. package/dist/components/Layout/SimpleLayout.d.ts.map +1 -0
  33. package/dist/components/Layout/index.d.ts +9 -0
  34. package/dist/components/Layout/index.d.ts.map +1 -0
  35. package/dist/components/Loader/index.d.ts +18 -0
  36. package/dist/components/Loader/index.d.ts.map +1 -0
  37. package/dist/components/Modal/index.d.ts +30 -0
  38. package/dist/components/Modal/index.d.ts.map +1 -0
  39. package/dist/components/Password/index.d.ts +28 -0
  40. package/dist/components/Password/index.d.ts.map +1 -0
  41. package/dist/components/PasswordStrengthIndicator/index.d.ts +60 -0
  42. package/dist/components/PasswordStrengthIndicator/index.d.ts.map +1 -0
  43. package/dist/components/SimpleButton/index.d.ts +20 -0
  44. package/dist/components/SimpleButton/index.d.ts.map +1 -0
  45. package/dist/components/TextInput/index.d.ts +39 -0
  46. package/dist/components/TextInput/index.d.ts.map +1 -0
  47. package/dist/components/helpers.d.ts +5 -0
  48. package/dist/components/helpers.d.ts.map +1 -0
  49. package/dist/components/index.d.ts +33 -0
  50. package/dist/components/index.d.ts.map +1 -0
  51. package/dist/components/media.d.ts +11 -0
  52. package/dist/components/media.d.ts.map +1 -0
  53. package/dist/components/utils/componentTemplate.d.ts +40 -0
  54. package/dist/components/utils/componentTemplate.d.ts.map +1 -0
  55. package/dist/components/utils/componentWrapper.d.ts +99 -0
  56. package/dist/components/utils/componentWrapper.d.ts.map +1 -0
  57. package/dist/config/index.d.ts +23 -0
  58. package/dist/config/index.d.ts.map +1 -0
  59. package/dist/hooks/index.d.ts +5 -0
  60. package/dist/hooks/index.d.ts.map +1 -0
  61. package/dist/hooks/useAsyncOperation.d.ts +14 -0
  62. package/dist/hooks/useAsyncOperation.d.ts.map +1 -0
  63. package/dist/hooks/useUpdateUser.d.ts +36 -0
  64. package/dist/hooks/useUpdateUser.d.ts.map +1 -0
  65. package/dist/hooks/useUserManagement.d.ts +30 -0
  66. package/dist/hooks/useUserManagement.d.ts.map +1 -0
  67. package/dist/index.d.ts +20 -0
  68. package/dist/index.d.ts.map +1 -0
  69. package/dist/index.esm.js +1 -1
  70. package/dist/index.esm.js.map +1 -1
  71. package/dist/index.js +1 -1
  72. package/dist/index.js.map +1 -1
  73. package/dist/metrics/clsMetrics.d.ts +3 -0
  74. package/dist/metrics/clsMetrics.d.ts.map +1 -0
  75. package/dist/metrics/fcpMetrics.d.ts +3 -0
  76. package/dist/metrics/fcpMetrics.d.ts.map +1 -0
  77. package/dist/metrics/fidMetrics.d.ts +3 -0
  78. package/dist/metrics/fidMetrics.d.ts.map +1 -0
  79. package/dist/metrics/index.d.ts +3 -0
  80. package/dist/metrics/index.d.ts.map +1 -0
  81. package/dist/metrics/lcpMetrics.d.ts +3 -0
  82. package/dist/metrics/lcpMetrics.d.ts.map +1 -0
  83. package/dist/metrics/ttfbMetrics.d.ts +3 -0
  84. package/dist/metrics/ttfbMetrics.d.ts.map +1 -0
  85. package/dist/metrics/types.d.ts +9 -0
  86. package/dist/metrics/types.d.ts.map +1 -0
  87. package/dist/plugin-system/DashboardProvider.d.ts +14 -0
  88. package/dist/plugin-system/DashboardProvider.d.ts.map +1 -0
  89. package/dist/plugin-system/PluginManager/components/PluginContent/index.d.ts +12 -0
  90. package/dist/plugin-system/PluginManager/components/PluginContent/index.d.ts.map +1 -0
  91. package/dist/plugin-system/PluginManager/components/PluginList/index.d.ts +15 -0
  92. package/dist/plugin-system/PluginManager/components/PluginList/index.d.ts.map +1 -0
  93. package/dist/plugin-system/PluginManager/components/index.d.ts +3 -0
  94. package/dist/plugin-system/PluginManager/components/index.d.ts.map +1 -0
  95. package/dist/plugin-system/PluginManager/index.d.ts +15 -0
  96. package/dist/plugin-system/PluginManager/index.d.ts.map +1 -0
  97. package/dist/plugin-system/core/Dashboard/index.d.ts +4 -0
  98. package/dist/plugin-system/core/Dashboard/index.d.ts.map +1 -0
  99. package/dist/plugin-system/core/Dashboard/tab0.d.ts +8 -0
  100. package/dist/plugin-system/core/Dashboard/tab0.d.ts.map +1 -0
  101. package/dist/plugin-system/core/Dashboard/views/DashboardView/index.d.ts +3 -0
  102. package/dist/plugin-system/core/Dashboard/views/DashboardView/index.d.ts.map +1 -0
  103. package/dist/plugin-system/index.d.ts +8 -0
  104. package/dist/plugin-system/index.d.ts.map +1 -0
  105. package/dist/plugin-system/plugin_manifest.d.ts +2 -0
  106. package/dist/plugin-system/plugin_manifest.d.ts.map +1 -0
  107. package/dist/plugin-system/types.d.ts +76 -0
  108. package/dist/plugin-system/types.d.ts.map +1 -0
  109. package/dist/services/errorServices/components/ErrorToast/index.d.ts +9 -0
  110. package/dist/services/errorServices/components/ErrorToast/index.d.ts.map +1 -0
  111. package/dist/services/errorServices/components/ErrorToastContainer/index.d.ts +3 -0
  112. package/dist/services/errorServices/components/ErrorToastContainer/index.d.ts.map +1 -0
  113. package/dist/services/errorServices/context.d.ts +9 -0
  114. package/dist/services/errorServices/context.d.ts.map +1 -0
  115. package/dist/services/errorServices/index.d.ts +5 -0
  116. package/dist/services/errorServices/index.d.ts.map +1 -0
  117. package/dist/services/errorServices/types.d.ts +25 -0
  118. package/dist/services/errorServices/types.d.ts.map +1 -0
  119. package/dist/types/index.d.ts +82 -0
  120. package/dist/types/index.d.ts.map +1 -0
  121. package/dist/utils/array-safety.d.ts +32 -0
  122. package/dist/utils/array-safety.d.ts.map +1 -0
  123. package/dist/utils/array-utils.d.ts +6 -0
  124. package/dist/utils/array-utils.d.ts.map +1 -0
  125. package/dist/utils/assetValidation.d.ts +54 -0
  126. package/dist/utils/assetValidation.d.ts.map +1 -0
  127. package/dist/utils/fromReq.d.ts +3 -0
  128. package/dist/utils/fromReq.d.ts.map +1 -0
  129. package/dist/utils/helpers.d.ts +26 -0
  130. package/dist/utils/helpers.d.ts.map +1 -0
  131. package/dist/utils/index.d.ts +9 -0
  132. package/dist/utils/index.d.ts.map +1 -0
  133. package/dist/utils/isDeepEqual.d.ts +2 -0
  134. package/dist/utils/isDeepEqual.d.ts.map +1 -0
  135. package/dist/utils/location-utils.d.ts +12 -0
  136. package/dist/utils/location-utils.d.ts.map +1 -0
  137. package/dist/utils/logger.d.ts +3 -0
  138. package/dist/utils/logger.d.ts.map +1 -0
  139. package/dist/utils/role-utils.d.ts +10 -0
  140. package/dist/utils/role-utils.d.ts.map +1 -0
  141. package/dist/utils/sanitize.d.ts +10 -0
  142. package/dist/utils/sanitize.d.ts.map +1 -0
  143. package/dist/utils/string-utils.d.ts +5 -0
  144. package/dist/utils/string-utils.d.ts.map +1 -0
  145. package/dist/utils/validation.d.ts +93 -0
  146. package/dist/utils/validation.d.ts.map +1 -0
  147. package/package.json +2 -2
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/TextInput/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,aAAa,EAEnB,MAAM,0CAA0C,CAAC;AAClD,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;IAC9B,UAAU,CAAC,EAAE,aAAa,CAAC,YAAY,CAAC,CAAC;IACzC,cAAc,CAAC,EAAE,aAAa,CAAC,gBAAgB,CAAC,CAAC;IACjD,EAAE,CAAC,EAAE,aAAa,CAAC,IAAI,CAAC,CAAC;IACzB,QAAQ,CAAC,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC;IACrC,KAAK,CAAC,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;IAC/B,WAAW,CAAC,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC;IAC3C,IAAI,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,MAAM,CAAC,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAC;IACjC,OAAO,CAAC,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;IACnC,KAAK,CAAC,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAC;IAChC,UAAU,CAAC,EAAE,aAAa,CAAC,YAAY,CAAC,CAAC;IACzC,UAAU,CAAC,EAAE,aAAa,CAAC,YAAY,CAAC,CAAC;IACzC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC;IAC3C,aAAa,CAAC,EAAE,aAAa,CAAC,eAAe,CAAC,CAAC;IAC/C,eAAe,CAAC,EAAE,aAAa,CAAC,iBAAiB,CAAC,CAAC;IACnD,iBAAiB,CAAC,EAAE,aAAa,CAAC,mBAAmB,CAAC,CAAC;IACvD,gBAAgB,CAAC,EAAE,aAAa,CAAC,kBAAkB,CAAC,CAAC;IACrD,kBAAkB,CAAC,EAAE,aAAa,CAAC,oBAAoB,CAAC,CAAC;IACzD,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;;GAIG;AACH,QAAA,MAAM,SAAS,EAAE,EAAE,CAAC,cAAc,CA+EjC,CAAC;AAIF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,5 @@
1
+ declare function isURL(stringToValidate: string): boolean;
2
+ declare function containsHTML(stringToValidate: string): boolean;
3
+ declare function extractHTML(arrayFrom: any, arrayTo: any): void;
4
+ export { isURL, containsHTML, extractHTML };
5
+ //# sourceMappingURL=helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/components/helpers.tsx"],"names":[],"mappings":"AAAA,iBAAS,KAAK,CAAC,gBAAgB,EAAE,MAAM,GAAG,OAAO,CAIhD;AAED,iBAAS,YAAY,CAAC,gBAAgB,EAAE,MAAM,GAAG,OAAO,CAEvD;AAED,iBAAS,WAAW,CAAC,SAAS,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,GAAG,IAAI,CAYvD;AAED,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,CAAC"}
@@ -0,0 +1,33 @@
1
+ export { ActivityProvider, page_view_event, pageViewEvent } from './ActivityProvider';
2
+ export type { PageViewEvent, TrackerEvent, TrackerHistory } from './ActivityProvider/types';
3
+ export type { CancelActionButtonProps } from './CancelActionButton';
4
+ export { default as CancelActionButton } from './CancelActionButton';
5
+ export type { ConfirmActionButtonProps } from './ConfirmActionButton';
6
+ export { default as ConfirmActionButton } from './ConfirmActionButton';
7
+ export type { ErrorBoundaryProps } from './ErrorBoundary';
8
+ export { default as ErrorBoundary } from './ErrorBoundary';
9
+ export { FormField } from './Forms/FormField';
10
+ export { SubmitButton } from './Forms/SubmitButton';
11
+ export { TermsCheckbox } from './Forms/TermsCheckbox';
12
+ export { isURL } from './helpers';
13
+ export type { IDDLinkInputItemProps, LinkProps } from './IDDLinkInputItem';
14
+ export { default as IDDLinkInputItem } from './IDDLinkInputItem';
15
+ export type { LayoutProps } from './Layout';
16
+ export { default as Layout } from './Layout';
17
+ export type { PasswordProps } from './Password';
18
+ export { default as Password } from './Password';
19
+ export type { PasswordStrengthIndicatorProps, PasswordStrengthResult } from './PasswordStrengthIndicator';
20
+ export { PasswordStrengthBar, PasswordRequirements, PasswordStrength } from './PasswordStrengthIndicator';
21
+ export { default as PasswordStrengthIndicator } from './PasswordStrengthIndicator';
22
+ export type { SimpleButtonProps } from './SimpleButton';
23
+ export { default as SimpleButton } from './SimpleButton';
24
+ export type { TextInputProps } from './TextInput';
25
+ export { default as TextInput } from './TextInput';
26
+ export type { ModalProps } from './Modal';
27
+ export { default as Modal } from './Modal';
28
+ export type { LoaderProps } from './Loader';
29
+ export { default as Loader } from './Loader';
30
+ export type { CardProps } from './Card';
31
+ export { default as Card } from './Card';
32
+ export * from './utils/componentWrapper';
33
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACtF,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC5F,YAAY,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AACrE,YAAY,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AACtE,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACvE,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,YAAY,EAAE,qBAAqB,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACjE,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,YAAY,EAAE,8BAA8B,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAC1G,OAAO,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC1G,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACnF,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACzD,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC;AAGnD,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC;AAC3C,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,YAAY,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC;AAGzC,cAAc,0BAA0B,CAAC"}
@@ -0,0 +1,11 @@
1
+ export const images: {
2
+ title: string;
3
+ uploadDate: string;
4
+ uploadedBy: string;
5
+ url: string;
6
+ size: string;
7
+ type: string;
8
+ usage: number;
9
+ }[];
10
+ export function fileIcon(type: any): import("react/jsx-runtime").JSX.Element;
11
+ //# sourceMappingURL=media.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"media.d.ts","sourceRoot":"","sources":["../../src/components/media.js"],"names":[],"mappings":"AAAA;;;;;;;;IAqCE;AAEF,6EAgTC"}
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Template for creating standardized IDD-Common component wrappers
3
+ *
4
+ * This template ensures consistency across all wrapped components
5
+ * and provides a starting point for new component development.
6
+ */
7
+ import type { FC } from 'react';
8
+ import { ComponentWrapperProps } from './componentWrapper';
9
+ export interface TemplateComponentProps extends ComponentWrapperProps {
10
+ children: React.ReactNode;
11
+ variant?: 'primary' | 'secondary';
12
+ onPress?: () => void;
13
+ onClick?: () => void;
14
+ }
15
+ /**
16
+ * Template Component - Replace with actual component name
17
+ *
18
+ * A standardized wrapper around IDD-Common components that provides:
19
+ * - Consistent styling through variant system
20
+ * - Type safety with proper TypeScript integration
21
+ * - Accessibility features (data-testid, proper focus management)
22
+ * - Backward compatibility where needed
23
+ * - Integration with IDD configuration system
24
+ */
25
+ declare const TemplateComponent: FC<TemplateComponentProps>;
26
+ export default TemplateComponent;
27
+ /**
28
+ * Usage Example:
29
+ *
30
+ * import { TemplateComponent } from '@integrativedesigndevelopment/dashboard-core';
31
+ *
32
+ * <TemplateComponent
33
+ * variant="primary"
34
+ * onPress={() => console.log('clicked')}
35
+ * data-testid="my-component"
36
+ * >
37
+ * Component Content
38
+ * </TemplateComponent>
39
+ */
40
+ //# sourceMappingURL=componentTemplate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"componentTemplate.d.ts","sourceRoot":"","sources":["../../../src/components/utils/componentTemplate.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAKhC,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAG3D,MAAM,WAAW,sBAAuB,SAAQ,qBAAqB;IACnE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAE1B,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,CAAC;IAElC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAErB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED;;;;;;;;;GASG;AACH,QAAA,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,CAqCjD,CAAC;AAEF,eAAe,iBAAiB,CAAC;AAEjC;;;;;;;;;;;;GAYG"}
@@ -0,0 +1,99 @@
1
+ /**
2
+ * Component Wrapper Utilities for IDD-Common Integration
3
+ *
4
+ * This module provides standardized patterns for wrapping IDD-Common components
5
+ * with consistent theming, configuration, and TypeScript integration.
6
+ */
7
+ /**
8
+ * Hook for accessing theme configuration with IDD-Common integration
9
+ */
10
+ export declare const useIDDTheme: () => {
11
+ config: import("../../config").IDDConfig;
12
+ tailwindConfig: Omit<any, "theme"> & {
13
+ theme: {
14
+ [x: string]: any;
15
+ [x: number]: any;
16
+ [x: symbol]: any;
17
+ };
18
+ };
19
+ colors: Record<string, string>;
20
+ };
21
+ /**
22
+ * Standard button variants based on IDD design system
23
+ */
24
+ export declare const buttonVariants: {
25
+ readonly default: {
26
+ readonly base: "";
27
+ readonly disabled: "opacity-50 cursor-not-allowed";
28
+ };
29
+ readonly primary: {
30
+ readonly base: "text-idd-primary-color bg-idd-tertiary-background border border-idd-transparent hover:bg-idd-active-color hover:text-idd-white focus:bg-idd-active-color focus:text-idd-white focus-visible:bg-idd-active-color focus-visible:text-idd-white";
31
+ readonly disabled: "bg-idd-tertiary-background text-idd-primary-color cursor-not-allowed";
32
+ };
33
+ readonly secondary: {
34
+ readonly base: "text-idd-active-color bg-idd-white border border-idd-transparent hover:border-idd-active-color focus:border-idd-active-color focus-visible:border-idd-active-color";
35
+ readonly disabled: "opacity-50 cursor-not-allowed";
36
+ };
37
+ readonly tertiary: {
38
+ readonly base: "text-idd-primary-color bg-idd-white border-0 outline-none hover:underline hover:ouline-none focus:underline focus:ouline-none focus-visible:underline focus-visible:ouline-none";
39
+ readonly disabled: "opacity-50 cursor-not-allowed";
40
+ };
41
+ readonly outline: {
42
+ readonly base: "text-idd-active-color bg-transparent border border-idd-active-color hover:bg-idd-active-color hover:text-idd-white focus:bg-idd-active-color focus:text-idd-white";
43
+ readonly disabled: "opacity-50 cursor-not-allowed";
44
+ };
45
+ readonly ghost: {
46
+ readonly base: "text-idd-grey bg-transparent hover:bg-idd-grey-20 hover:text-idd-black focus:bg-idd-grey-20 focus:text-idd-black";
47
+ readonly disabled: "opacity-50 cursor-not-allowed";
48
+ };
49
+ readonly link: {
50
+ readonly base: "text-idd-active-color bg-transparent border-0 hover:underline hover:decoration-idd-active-color focus:underline focus:decoration-idd-active-color";
51
+ readonly disabled: "opacity-50 cursor-not-allowed";
52
+ };
53
+ readonly danger: {
54
+ readonly base: "text-idd-white bg-idd-red hover:opacity-90 focus:opacity-90";
55
+ readonly disabled: "opacity-50 cursor-not-allowed";
56
+ };
57
+ readonly success: {
58
+ readonly base: "text-idd-white bg-idd-green hover:opacity-90 focus:opacity-90";
59
+ readonly disabled: "opacity-50 cursor-not-allowed";
60
+ };
61
+ readonly inverse: {
62
+ readonly base: "text-idd-white bg-idd-black hover:bg-idd-active-color focus:bg-idd-active-color";
63
+ readonly disabled: "bg-idd-tertiary-background text-idd-primary-color cursor-not-allowed";
64
+ };
65
+ };
66
+ /**
67
+ * Common styles for consistent component appearance
68
+ */
69
+ export declare const commonStyles: {
70
+ readonly button: "font-idd-primary-font-medium text-idd-primary-font-size text-center py-2 px-4 rounded-[0.3125rem] focus:outline-none focus-visible:outline-none transition-colors duration-200";
71
+ readonly input: "w-full h-[3.125rem] rounded-[0.3125rem]";
72
+ readonly error: "font-idd-primary-font text-idd-primary-font-size !mb-0";
73
+ readonly label: "font-idd-primary-font-medium text-idd-primary-font-size";
74
+ };
75
+ /**
76
+ * Utility function to combine styles based on variant and state
77
+ */
78
+ export declare const getButtonStyles: (variant?: keyof typeof buttonVariants, disabled?: boolean, customClass?: string) => string;
79
+ /**
80
+ * Type utility for extracting variant types
81
+ */
82
+ export type ButtonVariant = keyof typeof buttonVariants;
83
+ /**
84
+ * Standard prop types for wrapped components
85
+ */
86
+ export interface ComponentWrapperProps {
87
+ className?: string;
88
+ disabled?: boolean;
89
+ 'data-testid'?: string;
90
+ }
91
+ /**
92
+ * Standard event handler types
93
+ */
94
+ export interface EventHandlerProps {
95
+ onClick?: () => void;
96
+ onPress?: () => void;
97
+ onChange?: (value: any) => void;
98
+ }
99
+ //# sourceMappingURL=componentWrapper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"componentWrapper.d.ts","sourceRoot":"","sources":["../../../src/components/utils/componentWrapper.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH;;GAEG;AACH,eAAO,MAAM,WAAW;;;;;;;;;YAOa,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;CAE1D,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyCjB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;CAMf,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,eAAe,GAC1B,UAAS,MAAM,OAAO,cAA0B,EAChD,kBAAgB,EAChB,oBAAgB,WAOjB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,cAAc,CAAC;AAExD;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;CACjC"}
@@ -0,0 +1,23 @@
1
+ export interface IDDConfig {
2
+ title: string;
3
+ pages: any[];
4
+ plugins: string[];
5
+ categories: any[];
6
+ sub_categories: Record<string, any>;
7
+ style: {
8
+ colors: Record<string, string>;
9
+ fontFamily: Record<string, string>;
10
+ fontStyle: Record<string, string>;
11
+ fontWeight: Record<string, string>;
12
+ fontSize: Record<string, string>;
13
+ letterSpacing: Record<string, string>;
14
+ lineHeight: Record<string, string>;
15
+ backgroundImage: Record<string, string>;
16
+ borderRadius: Record<string, string>;
17
+ };
18
+ }
19
+ export declare const defaultConfig: IDDConfig;
20
+ export declare const setConfig: (config: Partial<IDDConfig>) => void;
21
+ export declare const getConfig: () => IDDConfig;
22
+ export declare const useConfig: () => IDDConfig;
23
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,GAAG,EAAE,CAAC;IACb,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,UAAU,EAAE,GAAG,EAAE,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACpC,KAAK,EAAE;QACL,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAC/B,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QACnC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAClC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QACnC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QACjC,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QACtC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QACnC,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QACxC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;KACtC,CAAC;CACH;AAED,eAAO,MAAM,aAAa,EAAE,SAwF3B,CAAC;AAKF,eAAO,MAAM,SAAS,GAAI,QAAQ,OAAO,CAAC,SAAS,CAAC,SAEnD,CAAC;AAEF,eAAO,MAAM,SAAS,QAAO,SAA0B,CAAC;AAExD,eAAO,MAAM,SAAS,iBAAoB,CAAC"}
@@ -0,0 +1,5 @@
1
+ export type { UpdateUserInput, UpdateUserResponse, UpdateUserResult, UseUpdateUserReturn, } from './useUpdateUser';
2
+ export { useUpdateUser } from './useUpdateUser';
3
+ export type { User, UpdateUserMutationInput } from './useUserManagement';
4
+ export { useUserManagement } from './useUserManagement';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,eAAe,EACf,kBAAkB,EAClB,gBAAgB,EAChB,mBAAmB,GACpB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EAAE,IAAI,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AACzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Custom hook to handle asynchronous operations with error and success handling.
3
+ * Supports concurrent operations: loading stays true until all in-flight operations complete.
4
+ * Error display: uses Error.message when available, else errorMessage param, else default.
5
+ * @param {number} minLoadingTime - Minimum loading time in milliseconds (default: 500ms)
6
+ * @returns {Object} An object containing the executeAsync function and loading state.
7
+ * @example
8
+ * const { executeAsync, loading } = useAsyncOperation(1000); // 1 second minimum loading
9
+ */
10
+ export declare const useAsyncOperation: (minLoadingTime?: number) => {
11
+ executeAsync: <T>(operation: () => Promise<T>, successMessage?: string, errorMessage?: string) => Promise<T | null>;
12
+ loading: boolean;
13
+ };
14
+ //# sourceMappingURL=useAsyncOperation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useAsyncOperation.d.ts","sourceRoot":"","sources":["../../src/hooks/useAsyncOperation.ts"],"names":[],"mappings":"AAGA;;;;;;;;GAQG;AACH,eAAO,MAAM,iBAAiB,GAAI,iBAAgB,MAAY;mBAanD,CAAC,aACK,MAAM,OAAO,CAAC,CAAC,CAAC,mBACV,MAAM,iBACR,MAAM,KACpB,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC;;CA6CvB,CAAC"}
@@ -0,0 +1,36 @@
1
+ import { type ErrorLike } from '@apollo/client';
2
+ export interface UpdateUserInput {
3
+ _id: string;
4
+ firstName?: string;
5
+ lastName?: string;
6
+ email?: string;
7
+ password?: string;
8
+ role?: string;
9
+ projects?: string[];
10
+ }
11
+ export interface UpdateUserResponse {
12
+ _id: string;
13
+ firstName: string;
14
+ lastName: string;
15
+ email: string;
16
+ role: string;
17
+ dateAdded: string;
18
+ projects: string[];
19
+ }
20
+ export interface UpdateUserResult {
21
+ update_auth: UpdateUserResponse;
22
+ }
23
+ export interface UseUpdateUserReturn {
24
+ updateUser: (input: UpdateUserInput) => Promise<UpdateUserResponse | null>;
25
+ loading: boolean;
26
+ error: ErrorLike | undefined;
27
+ }
28
+ /**
29
+ * Custom hook to update user data.
30
+ * Consumers updating the current user should sync with AuthProvider (e.g. via callback
31
+ * or refetch) since AuthProvider maintains separate state from Apollo cache.
32
+ *
33
+ * @returns Object containing updateUser function, loading state, and error state
34
+ */
35
+ export declare const useUpdateUser: () => UseUpdateUserReturn;
36
+ //# sourceMappingURL=useUpdateUser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useUpdateUser.d.ts","sourceRoot":"","sources":["../../src/hooks/useUpdateUser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,SAAS,EAAE,MAAM,gBAAgB,CAAC;AA6BrD,MAAM,WAAW,eAAe;IAC9B,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB;AAGD,MAAM,WAAW,kBAAkB;IACjC,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB;AAGD,MAAM,WAAW,gBAAgB;IAC/B,WAAW,EAAE,kBAAkB,CAAC;CACjC;AAGD,MAAM,WAAW,mBAAmB;IAClC,UAAU,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,OAAO,CAAC,kBAAkB,GAAG,IAAI,CAAC,CAAC;IAC3E,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,SAAS,GAAG,SAAS,CAAC;CAC9B;AAED;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,QAAO,mBAoChC,CAAC"}
@@ -0,0 +1,30 @@
1
+ import type { UpdateUserInput, UpdateUserResponse } from './useUpdateUser';
2
+ export type User = UpdateUserResponse;
3
+ export type UpdateUserMutationInput = UpdateUserInput;
4
+ export interface UseUserManagementReturn {
5
+ users: User[];
6
+ loading: boolean;
7
+ updateLoading: boolean;
8
+ deleteLoading: boolean;
9
+ error: string | null;
10
+ updateUser: (updateData: UpdateUserMutationInput) => Promise<{
11
+ success: boolean;
12
+ data?: UpdateUserMutationInput;
13
+ error?: string;
14
+ }>;
15
+ deleteUsers: (userIds: string | string[]) => Promise<{
16
+ success: boolean;
17
+ data?: string | string[];
18
+ error?: string;
19
+ }>;
20
+ refetchUsers: () => void;
21
+ getUserById: (userId: string) => User | undefined;
22
+ getUsersByRole: (role: string) => User[];
23
+ }
24
+ /**
25
+ * Custom hook for user management functionality
26
+ * This is a stub implementation that can be extended with actual user management logic
27
+ */
28
+ export declare const useUserManagement: (initial_users?: User[]) => UseUserManagementReturn;
29
+ export default useUserManagement;
30
+ //# sourceMappingURL=useUserManagement.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useUserManagement.d.ts","sourceRoot":"","sources":["../../src/hooks/useUserManagement.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAE3E,MAAM,MAAM,IAAI,GAAG,kBAAkB,CAAC;AAEtC,MAAM,MAAM,uBAAuB,GAAG,eAAe,CAAC;AAEtD,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,aAAa,EAAE,OAAO,CAAC;IACvB,aAAa,EAAE,OAAO,CAAC;IACvB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,UAAU,EAAE,CACV,UAAU,EAAE,uBAAuB,KAChC,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,IAAI,CAAC,EAAE,uBAAuB,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACnF,WAAW,EAAE,CACX,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,KACvB,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC7E,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,WAAW,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,GAAG,SAAS,CAAC;IAClD,cAAc,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,EAAE,CAAC;CAC1C;AAED;;;GAGG;AACH,eAAO,MAAM,iBAAiB,GAC5B,gBAAgB,IAAI,EAAE,KACrB,uBAoFF,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
@@ -0,0 +1,20 @@
1
+ export * from './components/PasswordStrengthIndicator';
2
+ export { default as PasswordStrengthIndicator } from './components/PasswordStrengthIndicator';
3
+ export { default as Password } from './components/Password';
4
+ export { FormField } from './components/Forms/FormField';
5
+ export { SubmitButton } from './components/Forms/SubmitButton';
6
+ export { TermsCheckbox } from './components/Forms/TermsCheckbox';
7
+ export * from './actions/pluginActions';
8
+ export type { ActionType } from './actions/types';
9
+ export { ActionTypes } from './actions/types';
10
+ export * from './components';
11
+ export { default as SimpleButton } from './components/SimpleButton';
12
+ export type { DashboardProviderProps } from './plugin-system';
13
+ export { DashboardProvider, get_all_plugins, PluginManager, PluginList, PluginContent, useDashboard, } from './plugin-system';
14
+ export type { IDDCurrentPlugin, IDDPlugin, IDDPluginExport, IDDPluginNotification, IDDPluginSetting, IDDPluginTab, } from './plugin-system/types';
15
+ export type { PluginManagerProps, PluginListProps, PluginContentProps, } from './plugin-system';
16
+ export * from './utils';
17
+ export * from './config';
18
+ export * from './services/errorServices';
19
+ export * from './types';
20
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,cAAc,wCAAwC,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,wCAAwC,CAAC;AAC9F,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAGjE,cAAc,yBAAyB,CAAC;AACxC,YAAY,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACpE,YAAY,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAE9D,OAAO,EACL,iBAAiB,EACjB,eAAe,EACf,aAAa,EACb,UAAU,EACV,aAAa,EACb,YAAY,GACb,MAAM,iBAAiB,CAAC;AACzB,YAAY,EACV,gBAAgB,EAChB,SAAS,EACT,eAAe,EACf,qBAAqB,EACrB,gBAAgB,EAChB,YAAY,GACb,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EACV,kBAAkB,EAClB,eAAe,EACf,kBAAkB,GACnB,MAAM,iBAAiB,CAAC;AAGzB,cAAc,SAAS,CAAC;AAIxB,cAAc,UAAU,CAAC;AAGzB,cAAc,0BAA0B,CAAC;AAGzC,cAAc,SAAS,CAAC"}