@bluealba/pae-ui-react-core 3.0.2-feature-rename-ba-libraries-scope-1169

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 (206) hide show
  1. package/LICENSE +134 -0
  2. package/README.md +368 -0
  3. package/dist/index.cjs.js +252 -0
  4. package/dist/index.css +1 -0
  5. package/dist/index.esm.js +9741 -0
  6. package/dist/index.systemjs.js +253 -0
  7. package/dist/index.umd.js +253 -0
  8. package/dist/src/MicrofrontendProps.d.ts +9 -0
  9. package/dist/src/components/ApplicationIcon.d.ts +7 -0
  10. package/dist/src/components/Authorized.d.ts +12 -0
  11. package/dist/src/components/ExtendExtensionPoint.d.ts +20 -0
  12. package/dist/src/components/ExtensionPoint.d.ts +39 -0
  13. package/dist/src/components/ModulePlaceHolder/BaseContainer.d.ts +4 -0
  14. package/dist/src/components/ModulePlaceHolder/BaseError.d.ts +7 -0
  15. package/dist/src/components/ModulePlaceHolder/BaseLoading.d.ts +7 -0
  16. package/dist/src/components/ModulePlaceHolder/ModulePlaceHolder.d.ts +22 -0
  17. package/dist/src/components/ModulePlaceHolder/index.d.ts +2 -0
  18. package/dist/src/components/PAEModule.d.ts +18 -0
  19. package/dist/src/components/PlatformEventListener.d.ts +12 -0
  20. package/dist/src/components/common/Alert/Alert.d.ts +16 -0
  21. package/dist/src/components/common/Alert/index.d.ts +2 -0
  22. package/dist/src/components/common/Badge/Badge.d.ts +9 -0
  23. package/dist/src/components/common/Badge/Badge.stories.d.ts +20 -0
  24. package/dist/src/components/common/Badge/Badges.d.ts +6 -0
  25. package/dist/src/components/common/Button/Button.d.ts +10 -0
  26. package/dist/src/components/common/Button/Button.stories.d.ts +45 -0
  27. package/dist/src/components/common/ConfirmDialog/ConfirmDialog.d.ts +11 -0
  28. package/dist/src/components/common/ConfirmDialog/ConfirmDialog.stories.d.ts +14 -0
  29. package/dist/src/components/common/CopyToClipboardButton/CopyToClipboardButton.d.ts +7 -0
  30. package/dist/src/components/common/CopyToClipboardButton/CopyToClipboardButton.stories.d.ts +15 -0
  31. package/dist/src/components/common/Dialog/Dialog.d.ts +26 -0
  32. package/dist/src/components/common/Dialog/Dialog.stories.d.ts +14 -0
  33. package/dist/src/components/common/Dialog/index.d.ts +2 -0
  34. package/dist/src/components/common/Dialog/subComponents/Actions.d.ts +6 -0
  35. package/dist/src/components/common/Dialog/subComponents/Close.d.ts +6 -0
  36. package/dist/src/components/common/Dialog/subComponents/Content.d.ts +6 -0
  37. package/dist/src/components/common/Dialog/subComponents/Description.d.ts +6 -0
  38. package/dist/src/components/common/Dialog/subComponents/Footer.d.ts +6 -0
  39. package/dist/src/components/common/Dialog/subComponents/Header.d.ts +6 -0
  40. package/dist/src/components/common/Dialog/subComponents/Title.d.ts +6 -0
  41. package/dist/src/components/common/DropdownList/DropdownList.d.ts +8 -0
  42. package/dist/src/components/common/DropdownList/index.d.ts +3 -0
  43. package/dist/src/components/common/EmptyState/EmptyState.d.ts +7 -0
  44. package/dist/src/components/common/EmptyState/EmptyState.stories.d.ts +16 -0
  45. package/dist/src/components/common/EmptyState/EmptyStateIcon.d.ts +7 -0
  46. package/dist/src/components/common/ErrorState/ErrorState.d.ts +9 -0
  47. package/dist/src/components/common/ErrorState/ErrorState.stories.d.ts +11 -0
  48. package/dist/src/components/common/ErrorState/WarningIcon.d.ts +6 -0
  49. package/dist/src/components/common/ErrorState/index.d.ts +2 -0
  50. package/dist/src/components/common/FieldGroup/FieldGroup.d.ts +7 -0
  51. package/dist/src/components/common/Icon/ArrowDown.d.ts +7 -0
  52. package/dist/src/components/common/Icon/ChevronLeft.d.ts +7 -0
  53. package/dist/src/components/common/Icon/ChevronRight.d.ts +7 -0
  54. package/dist/src/components/common/Icon/ClipboardCheckIcon.d.ts +13 -0
  55. package/dist/src/components/common/Icon/ClipboardIcon.d.ts +14 -0
  56. package/dist/src/components/common/Icon/EyeIcon.d.ts +13 -0
  57. package/dist/src/components/common/Icon/HorizontalDots.d.ts +7 -0
  58. package/dist/src/components/common/Input/Input.d.ts +7 -0
  59. package/dist/src/components/common/Input/Input.stories.d.ts +23 -0
  60. package/dist/src/components/common/InputError/InputError.d.ts +6 -0
  61. package/dist/src/components/common/Label/Label.d.ts +7 -0
  62. package/dist/src/components/common/List/List.d.ts +26 -0
  63. package/dist/src/components/common/List/List.stories.d.ts +27 -0
  64. package/dist/src/components/common/List/index.d.ts +2 -0
  65. package/dist/src/components/common/List/subComponents/Action.d.ts +6 -0
  66. package/dist/src/components/common/List/subComponents/Actions.d.ts +6 -0
  67. package/dist/src/components/common/List/subComponents/Description.d.ts +6 -0
  68. package/dist/src/components/common/List/subComponents/Icon.d.ts +6 -0
  69. package/dist/src/components/common/List/subComponents/Item.d.ts +8 -0
  70. package/dist/src/components/common/List/subComponents/Title.d.ts +6 -0
  71. package/dist/src/components/common/Pagination/Pagination.d.ts +31 -0
  72. package/dist/src/components/common/PasswordInput/PasswordInput.d.ts +8 -0
  73. package/dist/src/components/common/PasswordInput/PasswordInput.stories.d.ts +20 -0
  74. package/dist/src/components/common/Pill/Pill.d.ts +8 -0
  75. package/dist/src/components/common/Pill/Pill.stories.d.ts +26 -0
  76. package/dist/src/components/common/PluralizeCounter/PluralizeCounter.d.ts +9 -0
  77. package/dist/src/components/common/PluralizeCounter/PluralizeCounter.stories.d.ts +14 -0
  78. package/dist/src/components/common/SearchAutocomplete/AutocompleteHighlighter.d.ts +8 -0
  79. package/dist/src/components/common/SearchAutocomplete/AutocompleteItem.d.ts +7 -0
  80. package/dist/src/components/common/SearchAutocomplete/SearchAutocomplete.d.ts +27 -0
  81. package/dist/src/components/common/SearchAutocomplete/SearchAutocomplete.stories.d.ts +51 -0
  82. package/dist/src/components/common/SearchAutocomplete/hooks/useAutocomplete.d.ts +13 -0
  83. package/dist/src/components/common/SearchAutocomplete/types.d.ts +12 -0
  84. package/dist/src/components/common/SearchInput/SearchInput.d.ts +9 -0
  85. package/dist/src/components/common/SearchInput/SearchInput.stories.d.ts +30 -0
  86. package/dist/src/components/common/Select/Option.d.ts +6 -0
  87. package/dist/src/components/common/Select/Select.d.ts +13 -0
  88. package/dist/src/components/common/Select/Select.stories.d.ts +20 -0
  89. package/dist/src/components/common/Show/Show.d.ts +32 -0
  90. package/dist/src/components/common/Skeleton/Skeleton.d.ts +11 -0
  91. package/dist/src/components/common/Skeleton/Skeleton.stories.d.ts +11 -0
  92. package/dist/src/components/common/Skeleton/SkeletonList.d.ts +10 -0
  93. package/dist/src/components/common/Skeleton/SkeletonList.stories.d.ts +11 -0
  94. package/dist/src/components/common/Spinner/Spinner.d.ts +10 -0
  95. package/dist/src/components/common/Spinner/Spinner.stories.d.ts +11 -0
  96. package/dist/src/components/common/Switch/Switch.d.ts +15 -0
  97. package/dist/src/components/common/Switch/Switch.stories.d.ts +8 -0
  98. package/dist/src/components/common/Table/Table.d.ts +43 -0
  99. package/dist/src/components/common/Table/Table.stories.d.ts +65 -0
  100. package/dist/src/components/common/Table/TablePagination.d.ts +9 -0
  101. package/dist/src/components/common/Table/generatePagination.d.ts +1 -0
  102. package/dist/src/components/common/Table/table.test.d.ts +1 -0
  103. package/dist/src/components/common/Tabs/Tabs.d.ts +30 -0
  104. package/dist/src/components/common/TextArea/TextArea.d.ts +6 -0
  105. package/dist/src/components/common/TextArea/TextArea.stories.d.ts +17 -0
  106. package/dist/src/components/common/Tooltip/Tooltip.d.ts +15 -0
  107. package/dist/src/components/common/Tooltip/Tooltip.stories.d.ts +35 -0
  108. package/dist/src/components/common/index.d.ts +58 -0
  109. package/dist/src/components/index.d.ts +6 -0
  110. package/dist/src/constants/index.d.ts +5 -0
  111. package/dist/src/core/PlatformEvents.d.ts +13 -0
  112. package/dist/src/core/gateway/GatewayHttpHeaders.d.ts +10 -0
  113. package/dist/src/core/index.d.ts +1 -0
  114. package/dist/src/getGlobalState.d.ts +1 -0
  115. package/dist/src/hocs/authorized.d.ts +4 -0
  116. package/dist/src/hocs/extensionPoint.d.ts +17 -0
  117. package/dist/src/hocs/index.d.ts +2 -0
  118. package/dist/src/hooks/applications/ApplicationMenu.d.ts +18 -0
  119. package/dist/src/hooks/applications/PlatformApplication.d.ts +10 -0
  120. package/dist/src/hooks/applications/useApplicationIcon.d.ts +4 -0
  121. package/dist/src/hooks/applications/useApplicationJSModule.d.ts +18 -0
  122. package/dist/src/hooks/applications/useApplicationMenu.d.ts +11 -0
  123. package/dist/src/hooks/applications/useApplicationUIModule.d.ts +4 -0
  124. package/dist/src/hooks/applications/useApplications.d.ts +4 -0
  125. package/dist/src/hooks/applications/useCurrentApplication.d.ts +8 -0
  126. package/dist/src/hooks/applications/useCurrentApplication.test.d.ts +1 -0
  127. package/dist/src/hooks/applications/useCurrentApplicationName.d.ts +6 -0
  128. package/dist/src/hooks/applications/useCurrentJSModule.d.ts +9 -0
  129. package/dist/src/hooks/catalog/useCatalog.d.ts +14 -0
  130. package/dist/src/hooks/catalog/useMutableCatalog.d.ts +28 -0
  131. package/dist/src/hooks/catalog/userCatalog.test.d.ts +1 -0
  132. package/dist/src/hooks/commons/useObservable.d.ts +8 -0
  133. package/dist/src/hooks/commons/useResource.d.ts +21 -0
  134. package/dist/src/hooks/commons/useResourceActions.d.ts +56 -0
  135. package/dist/src/hooks/commons/useSubjectObservable.d.ts +11 -0
  136. package/dist/src/hooks/customizations/useDynamicFonts.d.ts +13 -0
  137. package/dist/src/hooks/customizations/useDynamicStyleSheet.d.ts +1 -0
  138. package/dist/src/hooks/customizations/useGetPlatformTheme.d.ts +3 -0
  139. package/dist/src/hooks/customizations/usePAECustomizationsLoadingState.d.ts +2 -0
  140. package/dist/src/hooks/customizations/usePlatformCustomization.d.ts +8 -0
  141. package/dist/src/hooks/customizations/utils.d.ts +2 -0
  142. package/dist/src/hooks/events/usePlatformEventListener.d.ts +2 -0
  143. package/dist/src/hooks/extensions/useExtendExtensionPoint.d.ts +11 -0
  144. package/dist/src/hooks/extensions/useExtensionPoint.d.ts +16 -0
  145. package/dist/src/hooks/habits/ApplicationEvent.d.ts +4 -0
  146. package/dist/src/hooks/habits/mapEvent.d.ts +17 -0
  147. package/dist/src/hooks/habits/trackEvents.d.ts +9 -0
  148. package/dist/src/hooks/habits/useTrackEvent.d.ts +5 -0
  149. package/dist/src/hooks/habits/useTrackEvents.d.ts +9 -0
  150. package/dist/src/hooks/habits/useTrackEvents.test.d.ts +1 -0
  151. package/dist/src/hooks/index.d.ts +42 -0
  152. package/dist/src/hooks/module/useModule.d.ts +6 -0
  153. package/dist/src/hooks/module/useModuleCommonPaths.d.ts +9 -0
  154. package/dist/src/hooks/module/useModuleConfig.d.ts +5 -0
  155. package/dist/src/hooks/module/useModuleConfigByName.d.ts +5 -0
  156. package/dist/src/hooks/module/useModuleMetadata.d.ts +8 -0
  157. package/dist/src/hooks/routing/useLocation.d.ts +7 -0
  158. package/dist/src/hooks/tenants/constants.d.ts +21 -0
  159. package/dist/src/hooks/tenants/getClientTenantStrategy.d.ts +4 -0
  160. package/dist/src/hooks/tenants/strategies/cookie.d.ts +7 -0
  161. package/dist/src/hooks/tenants/strategies/queryParams.d.ts +7 -0
  162. package/dist/src/hooks/tenants/strategies/sessionStorage.d.ts +7 -0
  163. package/dist/src/hooks/tenants/strategies/subdomain.d.ts +9 -0
  164. package/dist/src/hooks/tenants/strategies/tenantStrategy.interface.d.ts +6 -0
  165. package/dist/src/hooks/tenants/useTenants.d.ts +8 -0
  166. package/dist/src/hooks/useAppStatus.d.ts +6 -0
  167. package/dist/src/hooks/useAppsState.d.ts +18 -0
  168. package/dist/src/hooks/useAuth.d.ts +14 -0
  169. package/dist/src/hooks/useAuth.test.d.ts +1 -0
  170. package/dist/src/hooks/useHasNoSession.d.ts +2 -0
  171. package/dist/src/hooks/useNotifications.d.ts +4 -0
  172. package/dist/src/hooks/useOperations.d.ts +1 -0
  173. package/dist/src/hooks/usePAEState.d.ts +7 -0
  174. package/dist/src/hooks/useServiceBaseURL.d.ts +6 -0
  175. package/dist/src/hooks/useServiceInvoker.d.ts +20 -0
  176. package/dist/src/hooks/useServiceInvoker.test.d.ts +1 -0
  177. package/dist/src/hooks/useUIApplications.d.ts +5 -0
  178. package/dist/src/hooks/userState/UserState.d.ts +7 -0
  179. package/dist/src/hooks/userState/UserStateApiClient.d.ts +9 -0
  180. package/dist/src/hooks/userState/useUserState.d.ts +24 -0
  181. package/dist/src/index.d.ts +11 -0
  182. package/dist/src/model/ModuleMetadata.d.ts +6 -0
  183. package/dist/src/test-utils/setupTestEnvironment.d.ts +15 -0
  184. package/dist/src/types.d.ts +37 -0
  185. package/dist/src/utils/Request.d.ts +7 -0
  186. package/dist/src/utils/URL.d.ts +6 -0
  187. package/dist/src/utils/alphaColor.d.ts +1 -0
  188. package/dist/src/utils/createRootComponent.d.ts +9 -0
  189. package/dist/src/utils/fonts.d.ts +5 -0
  190. package/dist/src/utils/getApplicationUIModule.d.ts +10 -0
  191. package/dist/src/utils/getApplications.d.ts +4 -0
  192. package/dist/src/utils/getOperations.d.ts +5 -0
  193. package/dist/src/utils/hasAccess.d.ts +8 -0
  194. package/dist/src/utils/immutable.d.ts +18 -0
  195. package/dist/src/utils/index.d.ts +18 -0
  196. package/dist/src/utils/initializeMicroFrontend.d.ts +17 -0
  197. package/dist/src/utils/isValidEmail.d.ts +1 -0
  198. package/dist/src/utils/isValidEmail.test.d.ts +1 -0
  199. package/dist/src/utils/logout.d.ts +1 -0
  200. package/dist/src/utils/logout.test.d.ts +1 -0
  201. package/dist/src/utils/navigateTo.d.ts +1 -0
  202. package/dist/src/utils/promises.d.ts +4 -0
  203. package/dist/tests/renderHookWithProviders.d.ts +3 -0
  204. package/dist/tests/testUtils.d.ts +7 -0
  205. package/package.json +61 -0
  206. package/src/global.css +32 -0
@@ -0,0 +1,9 @@
1
+ import { AuthUser, ModuleMetadata } from '@bluealba/pae-core';
2
+ import { AppProps } from 'single-spa';
3
+
4
+ export interface RootComponentProps extends AppProps {
5
+ module: ModuleMetadata;
6
+ catalog: ModuleMetadata[];
7
+ navigateTo: (url: string) => void;
8
+ authUser: AuthUser;
9
+ }
@@ -0,0 +1,7 @@
1
+ import { FC } from 'react';
2
+
3
+ export interface ApplicationIconProps {
4
+ applicationName: string;
5
+ }
6
+ declare const ApplicationIcon: FC<ApplicationIconProps>;
7
+ export default ApplicationIcon;
@@ -0,0 +1,12 @@
1
+ import { default as React, FC } from 'react';
2
+
3
+ export type ForbiddenComponentProps = {
4
+ operations: string[];
5
+ };
6
+ export type AuthorizedProps = {
7
+ operations: string[];
8
+ children: React.ReactNode;
9
+ forbiddenContent?: React.ReactNode | FC<ForbiddenComponentProps> | ((props: ForbiddenComponentProps) => React.ReactNode);
10
+ };
11
+ declare const Authorized: FC<AuthorizedProps>;
12
+ export default Authorized;
@@ -0,0 +1,20 @@
1
+ import { PropsWithChildren } from 'react';
2
+
3
+ type ExtendExtensionPointProps = PropsWithChildren & {
4
+ module: string;
5
+ point: string;
6
+ };
7
+ export declare const EMPTY_VALUE = "__PAE_EXTENSION_POINT_REACT_CONTENT_EMPTY__";
8
+ /**
9
+ * A Component-based API to extend a module's extension point with react content/component.
10
+ * An alternative approach is to use `useExtendExtensionPoint()` hook.
11
+ *
12
+ * The content that will be used for extending the extension point is the children content of this component.
13
+ * For example
14
+ *
15
+ * <ExtendExtensionPoint module="@bluealba/pae-shell-ui" point="ApplicationSelector">
16
+ * Hello <strong>World!</strong>
17
+ * </ExtendExtensionPoint>
18
+ */
19
+ export declare const ExtendExtensionPoint: React.FC<ExtendExtensionPointProps>;
20
+ export default ExtendExtensionPoint;
@@ -0,0 +1,39 @@
1
+ import { default as React, PropsWithChildren } from 'react';
2
+
3
+ type ExtensionPointProps = PropsWithChildren & {
4
+ name: string;
5
+ };
6
+ /**
7
+ * Renders an Extension-point in the DOM tree.
8
+ * It resolves any extension that might have been set by other modules and renders that.
9
+ * If there is no active extension then it renders the children.
10
+ * If there is no children then it renders nothing.
11
+ *
12
+ * This allows to have "points" in your DOM that can be extended.
13
+ *
14
+ * For example:
15
+ *
16
+ * return (
17
+ * <div>
18
+ * Hello <ExtensionPoint name="greeting">World</ExtensionPoint>
19
+ * </div>
20
+ * )
21
+ *
22
+ * Then other modules might change "World" by any element.
23
+ *
24
+ * TODO: we have a limitation with this impl. Extensions components/code are actually embedded here
25
+ * within pae-shell, so they loose any react Context they might have in the extending-mf (instead they inherit
26
+ * any shell context, which is not what we would like).
27
+ * So this won't work in MF that is extending
28
+ *
29
+ * const myContextValue = useContext(MyContextFromExtendingMF)
30
+ * return (
31
+ * <div>
32
+ * Hello <ExtensionPoint name="greeting">{myContextValue}</ExtensionPoint>
33
+ * </div>
34
+ * )
35
+ * We would need to find a way to support this eventually. React Portals solve this but with extra burden (divs)
36
+ * and a different control-flow API.
37
+ */
38
+ export declare const ExtensionPoint: ({ name, children, ...props }: ExtensionPointProps) => React.ReactElement | null;
39
+ export default ExtensionPoint;
@@ -0,0 +1,4 @@
1
+ export interface BaseContainerProps {
2
+ }
3
+ declare const BaseContainer: import('react').ForwardRefExoticComponent<BaseContainerProps & import('react').RefAttributes<HTMLDivElement>>;
4
+ export default BaseContainer;
@@ -0,0 +1,7 @@
1
+ import { FC } from 'react';
2
+
3
+ export interface BaseErrorProps {
4
+ appName: string;
5
+ }
6
+ declare const BaseError: FC<BaseErrorProps>;
7
+ export default BaseError;
@@ -0,0 +1,7 @@
1
+ import { FC } from 'react';
2
+
3
+ export interface BaseLoadingProps {
4
+ appName: string;
5
+ }
6
+ declare const BaseLoading: FC<BaseLoadingProps>;
7
+ export default BaseLoading;
@@ -0,0 +1,22 @@
1
+ import { default as React } from 'react';
2
+
3
+ export interface ModulePlaceHolderProps extends React.HTMLProps<HTMLDivElement> {
4
+ appName: string;
5
+ LoadingComponent?: React.FC<{
6
+ appName: string;
7
+ }>;
8
+ ErrorComponent?: React.FC<{
9
+ appName: string;
10
+ }>;
11
+ ContainerComponent?: React.FC<React.HTMLProps<HTMLDivElement>>;
12
+ }
13
+ /**
14
+ * With this component a PAE micro-frontend module can include another module by its name.
15
+ * This allows to layout and embed micro-frontends within another micro-frontend.
16
+ * You can customize react components for the licecycle of the embedded module, for example
17
+ * - LoadingComponent: that will be shown in case the module takes a while to load source and mount
18
+ * - ErrorComponent: in case the module fails to load.
19
+ * - ContainerComponent: to provide your own wrapper component for the div placeholder.
20
+ */
21
+ export declare const ModulePlaceHolder: React.ForwardRefExoticComponent<Omit<ModulePlaceHolderProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
22
+ export default ModulePlaceHolder;
@@ -0,0 +1,2 @@
1
+ export { ModulePlaceHolder } from './ModulePlaceHolder';
2
+ export * from './ModulePlaceHolder';
@@ -0,0 +1,18 @@
1
+ import { default as React, PropsWithChildren } from 'react';
2
+ import { ModuleMetadata } from '@bluealba/pae-core';
3
+
4
+ type Props = PropsWithChildren<{
5
+ module: ModuleMetadata;
6
+ }>;
7
+ export declare const ModuleContext: React.Context<ModuleMetadata | null>;
8
+ /**
9
+ * Root component for all PAE microfrontents.
10
+ * All "rootComponent"'s from MF's get automatically wrapped with this component.
11
+ * This allows us to inject React context elements later used by react utilities.
12
+ * So we avoid having to pass module metadata to every hook for example
13
+ */
14
+ declare const PAEModule: {
15
+ ({ module, children }: Props): import("react/jsx-runtime").JSX.Element;
16
+ displayName: string;
17
+ };
18
+ export default PAEModule;
@@ -0,0 +1,12 @@
1
+ import { FC } from 'react';
2
+
3
+ type PlatformEventListenerProps = {
4
+ eventName: string;
5
+ listener: (e: Event) => void;
6
+ };
7
+ /**
8
+ * A Component-based API to subscribe to a Platform event
9
+ * An alternative approach is to use `usePlatformEventListener()` hook.
10
+ */
11
+ export declare const PlatformEventListener: FC<PlatformEventListenerProps>;
12
+ export default PlatformEventListener;
@@ -0,0 +1,16 @@
1
+ import * as React from "react";
2
+ export interface TitleProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ }
4
+ export interface DescriptionProps extends React.HTMLAttributes<HTMLDivElement> {
5
+ }
6
+ export interface AlertProps extends React.HTMLAttributes<HTMLDivElement> {
7
+ variant?: "default" | "destructive";
8
+ }
9
+ interface Component extends React.FC<AlertProps> {
10
+ Title: typeof Title;
11
+ Description: typeof Description;
12
+ }
13
+ declare const Title: React.ForwardRefExoticComponent<TitleProps & React.RefAttributes<HTMLDivElement>>;
14
+ declare const Description: React.ForwardRefExoticComponent<DescriptionProps & React.RefAttributes<HTMLDivElement>>;
15
+ declare const _default: Component;
16
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default } from './Alert';
2
+ export * from './Alert';
@@ -0,0 +1,9 @@
1
+ import { HTMLAttributes } from 'react';
2
+
3
+ export interface BadgeProps extends HTMLAttributes<HTMLSpanElement> {
4
+ color?: 'primary' | 'secondary' | 'success' | 'warning' | 'danger';
5
+ customColor?: string;
6
+ size?: 'small' | 'regular' | 'large';
7
+ }
8
+ export declare const Badge: import('react').ForwardRefExoticComponent<BadgeProps & import('react').RefAttributes<HTMLSpanElement>>;
9
+ export default Badge;
@@ -0,0 +1,20 @@
1
+ import { Badge } from './Badge';
2
+ declare namespace _default {
3
+ export let title: string;
4
+ export { Badge as component };
5
+ export namespace parameters {
6
+ let layout: string;
7
+ }
8
+ export let tags: string[];
9
+ export namespace args {
10
+ let onClick: import("@vitest/spy").Mock<(...args: any[]) => any>;
11
+ let children: string;
12
+ }
13
+ }
14
+ export default _default;
15
+ export namespace Primary {
16
+ export namespace args_1 {
17
+ let color: string;
18
+ }
19
+ export { args_1 as args };
20
+ }
@@ -0,0 +1,6 @@
1
+ import { HTMLAttributes } from 'react';
2
+
3
+ export interface BadgesProps extends HTMLAttributes<HTMLDivElement> {
4
+ }
5
+ export declare const Badges: import('react').ForwardRefExoticComponent<BadgesProps & import('react').RefAttributes<HTMLDivElement>>;
6
+ export default Badges;
@@ -0,0 +1,10 @@
1
+ import { FC } from 'react';
2
+
3
+ export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
4
+ variant?: 'text' | 'contained' | 'outlined';
5
+ colorScheme?: 'primary' | 'danger';
6
+ loading?: boolean;
7
+ IconComponent?: FC<React.SVGProps<SVGSVGElement>>;
8
+ }
9
+ export declare const Button: import('react').ForwardRefExoticComponent<ButtonProps & import('react').RefAttributes<HTMLButtonElement>>;
10
+ export default Button;
@@ -0,0 +1,45 @@
1
+ import { Button } from './Button';
2
+ declare namespace _default {
3
+ export let title: string;
4
+ export { Button as component };
5
+ export namespace parameters {
6
+ let layout: string;
7
+ }
8
+ export let tags: string[];
9
+ export namespace args {
10
+ let onClick: import("@vitest/spy").Mock<(...args: any[]) => any>;
11
+ let children: string;
12
+ }
13
+ export namespace argTypes {
14
+ namespace IconComponent {
15
+ let control: boolean;
16
+ }
17
+ }
18
+ }
19
+ export default _default;
20
+ export namespace Primary {
21
+ export namespace args_1 {
22
+ let colorScheme: string;
23
+ }
24
+ export { args_1 as args };
25
+ }
26
+ export namespace Danger {
27
+ export namespace args_2 {
28
+ let colorScheme_1: string;
29
+ export { colorScheme_1 as colorScheme };
30
+ }
31
+ export { args_2 as args };
32
+ }
33
+ export namespace WithIcon {
34
+ export namespace args_3 {
35
+ export let label: string;
36
+ let colorScheme_2: string;
37
+ export { colorScheme_2 as colorScheme };
38
+ export { Plus as IconComponent };
39
+ }
40
+ export { args_3 as args };
41
+ }
42
+ declare function Plus({ className, ...props }: {
43
+ [x: string]: any;
44
+ className: any;
45
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,11 @@
1
+ import { FC, ReactNode } from 'react';
2
+ import { DialogProps } from '../Dialog';
3
+
4
+ export interface ConfirmDialogProps extends Omit<DialogProps, 'children'> {
5
+ loading?: boolean;
6
+ title: string;
7
+ children: string | ReactNode;
8
+ onConfirm: () => void;
9
+ }
10
+ declare const ConfirmDialog: FC<ConfirmDialogProps>;
11
+ export default ConfirmDialog;
@@ -0,0 +1,14 @@
1
+ import { default as ConfirmDialog } from './ConfirmDialog';
2
+ declare namespace _default {
3
+ export let title: string;
4
+ export { ConfirmDialog as component };
5
+ export namespace parameters {
6
+ let layout: string;
7
+ }
8
+ export let tags: string[];
9
+ }
10
+ export default _default;
11
+ export namespace Default {
12
+ export { DialogExample as render };
13
+ }
14
+ declare function DialogExample(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ export type CopyToClipboardButtonProps = {
2
+ content: string;
3
+ };
4
+ /**
5
+ *
6
+ */
7
+ export declare const CopyToClipboardButton: ({ content }: CopyToClipboardButtonProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,15 @@
1
+ import { CopyToClipboardButton } from './CopyToClipboardButton';
2
+ declare namespace _default {
3
+ export let title: string;
4
+ export { CopyToClipboardButton as component };
5
+ export namespace parameters {
6
+ let layout: string;
7
+ }
8
+ export let tags: string[];
9
+ }
10
+ export default _default;
11
+ export namespace Default {
12
+ namespace args {
13
+ let content: string;
14
+ }
15
+ }
@@ -0,0 +1,26 @@
1
+ import { default as React, FC } from 'react';
2
+ import { default as Header } from './subComponents/Header';
3
+ import { default as Content } from './subComponents/Content';
4
+ import { default as Footer } from './subComponents/Footer';
5
+ import { default as Title } from './subComponents/Title';
6
+ import { default as Close } from './subComponents/Close';
7
+ import { default as Actions } from './subComponents/Actions';
8
+ import { default as Description } from './subComponents/Description';
9
+
10
+ export interface DialogProps {
11
+ children: React.ReactNode;
12
+ onClose?: () => void;
13
+ open?: boolean;
14
+ className?: string;
15
+ }
16
+ interface Component extends FC<DialogProps> {
17
+ Header: typeof Header;
18
+ Content: typeof Content;
19
+ Footer: typeof Footer;
20
+ Actions: typeof Actions;
21
+ Title: typeof Title;
22
+ Description: typeof Description;
23
+ Close: typeof Close;
24
+ }
25
+ declare const _default: Component;
26
+ export default _default;
@@ -0,0 +1,14 @@
1
+ import { default as Dialog } from './Dialog';
2
+ declare namespace _default {
3
+ export let title: string;
4
+ export { Dialog as component };
5
+ export namespace parameters {
6
+ let layout: string;
7
+ }
8
+ export let tags: string[];
9
+ }
10
+ export default _default;
11
+ export namespace Default {
12
+ export { DialogExample as render };
13
+ }
14
+ declare function DialogExample(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { default } from './Dialog';
2
+ export * from './Dialog';
@@ -0,0 +1,6 @@
1
+ import { HTMLAttributes } from 'react';
2
+
3
+ export interface ActionsProps extends HTMLAttributes<HTMLDivElement> {
4
+ }
5
+ declare const Actions: import('react').ForwardRefExoticComponent<ActionsProps & import('react').RefAttributes<HTMLDivElement>>;
6
+ export default Actions;
@@ -0,0 +1,6 @@
1
+ import { HTMLAttributes } from 'react';
2
+
3
+ export interface CloseProps extends HTMLAttributes<HTMLButtonElement> {
4
+ }
5
+ declare const Close: import('react').ForwardRefExoticComponent<CloseProps & import('react').RefAttributes<HTMLButtonElement>>;
6
+ export default Close;
@@ -0,0 +1,6 @@
1
+ import { HTMLAttributes } from 'react';
2
+
3
+ export interface ContentProps extends HTMLAttributes<HTMLDivElement> {
4
+ }
5
+ declare const Content: import('react').ForwardRefExoticComponent<ContentProps & import('react').RefAttributes<HTMLDivElement>>;
6
+ export default Content;
@@ -0,0 +1,6 @@
1
+ import { HTMLAttributes } from 'react';
2
+
3
+ export interface DescriptionProps extends HTMLAttributes<HTMLDivElement> {
4
+ }
5
+ declare const Description: import('react').ForwardRefExoticComponent<DescriptionProps & import('react').RefAttributes<HTMLDivElement>>;
6
+ export default Description;
@@ -0,0 +1,6 @@
1
+ import { HTMLAttributes } from 'react';
2
+
3
+ export interface FooterProps extends HTMLAttributes<HTMLDivElement> {
4
+ }
5
+ declare const Footer: import('react').ForwardRefExoticComponent<FooterProps & import('react').RefAttributes<HTMLDivElement>>;
6
+ export default Footer;
@@ -0,0 +1,6 @@
1
+ import { HTMLAttributes } from 'react';
2
+
3
+ export interface HeaderProps extends HTMLAttributes<HTMLDivElement> {
4
+ }
5
+ declare const Header: import('react').ForwardRefExoticComponent<HeaderProps & import('react').RefAttributes<HTMLDivElement>>;
6
+ export default Header;
@@ -0,0 +1,6 @@
1
+ import { HTMLAttributes } from 'react';
2
+
3
+ export interface TitleProps extends HTMLAttributes<HTMLHeadingElement> {
4
+ }
5
+ declare const Title: import('react').ForwardRefExoticComponent<TitleProps & import('react').RefAttributes<HTMLHeadingElement>>;
6
+ export default Title;
@@ -0,0 +1,8 @@
1
+ import { HTMLAttributes } from 'react';
2
+
3
+ export interface DropdownListProps extends HTMLAttributes<HTMLDivElement> {
4
+ open: boolean;
5
+ align?: 'left' | 'right';
6
+ }
7
+ export declare const DropdownList: import('react').ForwardRefExoticComponent<DropdownListProps & import('react').RefAttributes<HTMLDivElement>>;
8
+ export default DropdownList;
@@ -0,0 +1,3 @@
1
+ export { default } from './DropdownList';
2
+ export * from './DropdownList';
3
+ export { default as styles } from './DropdownList.module.css';
@@ -0,0 +1,7 @@
1
+ import { FC } from 'react';
2
+
3
+ export interface EmptyStateProps {
4
+ message?: string;
5
+ }
6
+ export declare const EmptyState: FC<EmptyStateProps>;
7
+ export default EmptyState;
@@ -0,0 +1,16 @@
1
+ import { default as EmptyState } from './EmptyState';
2
+ declare namespace _default {
3
+ export let title: string;
4
+ export { EmptyState as component };
5
+ export namespace parameters {
6
+ let layout: string;
7
+ }
8
+ export let tags: string[];
9
+ }
10
+ export default _default;
11
+ export const Default: {};
12
+ export namespace CustomMessage {
13
+ namespace args {
14
+ let message: string;
15
+ }
16
+ }
@@ -0,0 +1,7 @@
1
+ import { FC } from 'react';
2
+
3
+ export type EmptyStateIconProps = {
4
+ size?: number;
5
+ };
6
+ declare const EmptyStateIcon: FC<EmptyStateIconProps>;
7
+ export default EmptyStateIcon;
@@ -0,0 +1,9 @@
1
+ import { FC } from 'react';
2
+
3
+ export interface ErrorStateProps {
4
+ }
5
+ /**
6
+ *
7
+ */
8
+ declare const ErrorState: FC<ErrorStateProps>;
9
+ export default ErrorState;
@@ -0,0 +1,11 @@
1
+ import { default as ErrorState } from './ErrorState';
2
+ declare namespace _default {
3
+ export let title: string;
4
+ export { ErrorState as component };
5
+ export namespace parameters {
6
+ let layout: string;
7
+ }
8
+ export let tags: string[];
9
+ }
10
+ export default _default;
11
+ export const Default: {};
@@ -0,0 +1,6 @@
1
+ import { FC } from 'react';
2
+
3
+ export interface WarningIconProps {
4
+ }
5
+ declare const WarningIcon: FC<WarningIconProps>;
6
+ export default WarningIcon;
@@ -0,0 +1,2 @@
1
+ export { default } from './ErrorState';
2
+ export * from './ErrorState';
@@ -0,0 +1,7 @@
1
+ import { HTMLAttributes } from 'react';
2
+
3
+ export interface FieldGroupProps extends HTMLAttributes<HTMLDivElement> {
4
+ orientation?: 'horizontal' | 'vertical';
5
+ }
6
+ export declare const FieldGroup: import('react').ForwardRefExoticComponent<FieldGroupProps & import('react').RefAttributes<HTMLDivElement>>;
7
+ export default FieldGroup;
@@ -0,0 +1,7 @@
1
+ import { SVGProps } from 'react';
2
+
3
+ declare const ArrowDown: {
4
+ ({ className, ...props }: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
5
+ displayName: string;
6
+ };
7
+ export default ArrowDown;
@@ -0,0 +1,7 @@
1
+ import { SVGProps } from 'react';
2
+
3
+ declare const ChevronLeft: {
4
+ ({ className, ...props }: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
5
+ displayName: string;
6
+ };
7
+ export default ChevronLeft;
@@ -0,0 +1,7 @@
1
+ import { SVGProps } from 'react';
2
+
3
+ declare const ChevronRight: {
4
+ ({ className, ...props }: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
5
+ displayName: string;
6
+ };
7
+ export default ChevronRight;
@@ -0,0 +1,13 @@
1
+ import { default as React } from 'react';
2
+
3
+ export interface ClipboardCheckIconProps {
4
+ size?: number | string;
5
+ color?: string;
6
+ strokeWidth?: number;
7
+ className?: string;
8
+ style?: React.CSSProperties;
9
+ }
10
+ /**
11
+ *
12
+ */
13
+ export declare const ClipboardCheckIcon: React.FC<ClipboardCheckIconProps>;
@@ -0,0 +1,14 @@
1
+ import { default as React } from 'react';
2
+
3
+ export interface ClipboardIconProps {
4
+ size?: number | string;
5
+ color?: string;
6
+ strokeWidth?: number;
7
+ className?: string;
8
+ style?: React.CSSProperties;
9
+ onClick: () => void;
10
+ }
11
+ /**
12
+ *
13
+ */
14
+ export declare const ClipboardIcon: React.FC<ClipboardIconProps>;
@@ -0,0 +1,13 @@
1
+ import { MouseEventHandler } from 'react';
2
+
3
+ type EyeState = 'open' | 'closed';
4
+ export type EyeIconProps = {
5
+ className?: string;
6
+ state?: EyeState;
7
+ onClick?: MouseEventHandler<SVGSVGElement>;
8
+ };
9
+ /**
10
+ *
11
+ */
12
+ declare const EyeIcon: ({ className, state, onClick }: EyeIconProps) => import("react/jsx-runtime").JSX.Element;
13
+ export default EyeIcon;
@@ -0,0 +1,7 @@
1
+ import { SVGProps } from 'react';
2
+
3
+ declare const HorizontalDots: {
4
+ ({ className, ...props }: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
5
+ displayName: string;
6
+ };
7
+ export default HorizontalDots;
@@ -0,0 +1,7 @@
1
+ import { DetailedHTMLProps, InputHTMLAttributes } from 'react';
2
+
3
+ export interface InputProps extends DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement> {
4
+ error?: boolean;
5
+ }
6
+ export declare const Input: import('react').ForwardRefExoticComponent<Omit<InputProps, "ref"> & import('react').RefAttributes<HTMLInputElement>>;
7
+ export default Input;