@bluealba/pae-ui-react-core 3.0.2-develop-1171

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,23 @@
1
+ import { default as Input } from './Input';
2
+ declare namespace _default {
3
+ export let title: string;
4
+ export { Input as component };
5
+ export namespace parameters {
6
+ let layout: string;
7
+ }
8
+ export let tags: string[];
9
+ export namespace args {
10
+ let placeholder: string;
11
+ }
12
+ }
13
+ export default _default;
14
+ export const Default: {};
15
+ export namespace WithError {
16
+ export namespace args_1 {
17
+ let error: boolean;
18
+ }
19
+ export { args_1 as args };
20
+ }
21
+ export namespace WithLabel {
22
+ function render(args: any): import("react/jsx-runtime").JSX.Element;
23
+ }
@@ -0,0 +1,6 @@
1
+ import { default as React, DetailedHTMLProps } from 'react';
2
+
3
+ export interface InputErrorProps extends DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement> {
4
+ }
5
+ export declare const InputError: React.ForwardRefExoticComponent<Omit<InputErrorProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
6
+ export default InputError;
@@ -0,0 +1,7 @@
1
+ import { default as React, DetailedHTMLProps } from 'react';
2
+
3
+ export interface LabelProps extends DetailedHTMLProps<React.LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement> {
4
+ error?: boolean;
5
+ }
6
+ export declare const Label: React.ForwardRefExoticComponent<Omit<LabelProps, "ref"> & React.RefAttributes<HTMLLabelElement>>;
7
+ export default Label;
@@ -0,0 +1,26 @@
1
+ import { ForwardRefExoticComponent, HTMLAttributes } from 'react';
2
+ import { default as Item } from './subComponents/Item';
3
+ import { default as Title } from './subComponents/Title';
4
+ import { default as Description } from './subComponents/Description';
5
+ import { default as Actions } from './subComponents/Actions';
6
+ import { default as Action } from './subComponents/Action';
7
+ import { default as Icon } from './subComponents/Icon';
8
+ import { default as Badges } from '../Badge/Badges';
9
+ import { default as Badge } from '../Badge/Badge';
10
+
11
+ export interface ListProps extends HTMLAttributes<HTMLUListElement> {
12
+ variant?: "primary" | "secondary";
13
+ size?: 'small' | 'medium' | 'large';
14
+ }
15
+ interface Component extends ForwardRefExoticComponent<ListProps> {
16
+ Item: typeof Item;
17
+ Badges: typeof Badges;
18
+ Badge: typeof Badge;
19
+ Title: typeof Title;
20
+ Description: typeof Description;
21
+ Actions: typeof Actions;
22
+ Action: typeof Action;
23
+ Icon: typeof Icon;
24
+ }
25
+ declare const _default: Component;
26
+ export default _default;
@@ -0,0 +1,27 @@
1
+ import { default as List } from './List';
2
+ declare namespace _default {
3
+ export let title: string;
4
+ export { List as component };
5
+ export namespace parameters {
6
+ let layout: string;
7
+ }
8
+ export let tags: string[];
9
+ }
10
+ export default _default;
11
+ export namespace Primary {
12
+ export { renderDefaultList as render };
13
+ }
14
+ export namespace Secondary {
15
+ export { renderDefaultList as render };
16
+ export namespace args {
17
+ let variant: string;
18
+ }
19
+ }
20
+ export namespace Large {
21
+ export { renderDefaultList as render };
22
+ export namespace args_1 {
23
+ let size: string;
24
+ }
25
+ export { args_1 as args };
26
+ }
27
+ declare function renderDefaultList(args: any): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { default } from './List';
2
+ export * from './List';
@@ -0,0 +1,6 @@
1
+ import { ButtonHTMLAttributes } from 'react';
2
+
3
+ export interface ActionProps extends ButtonHTMLAttributes<HTMLButtonElement> {
4
+ }
5
+ declare const Action: import('react').ForwardRefExoticComponent<ActionProps & import('react').RefAttributes<HTMLButtonElement>>;
6
+ export default Action;
@@ -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 DescriptionProps extends HTMLAttributes<HTMLParagraphElement> {
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 IconProps extends HTMLAttributes<HTMLDivElement> {
4
+ }
5
+ declare const Icon: import('react').ForwardRefExoticComponent<IconProps & import('react').RefAttributes<HTMLDivElement>>;
6
+ export default Icon;
@@ -0,0 +1,8 @@
1
+ import { HTMLAttributes } from 'react';
2
+
3
+ export interface ItemProps extends HTMLAttributes<HTMLLIElement> {
4
+ selected?: boolean;
5
+ disabled?: boolean;
6
+ }
7
+ declare const Item: import('react').ForwardRefExoticComponent<ItemProps & import('react').RefAttributes<HTMLLIElement>>;
8
+ export default Item;
@@ -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<HTMLDivElement>>;
6
+ export default Title;
@@ -0,0 +1,31 @@
1
+ import * as React from "react";
2
+ declare const Pagination: {
3
+ ({ className, ...props }: React.ComponentProps<"nav">): import("react/jsx-runtime").JSX.Element;
4
+ displayName: string;
5
+ };
6
+ declare const PaginationContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React.RefAttributes<HTMLUListElement>>;
7
+ declare const PaginationItem: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React.RefAttributes<HTMLLIElement>>;
8
+ type PaginationLinkProps = {
9
+ isActive?: boolean;
10
+ } & React.ComponentProps<"a">;
11
+ declare const PaginationLink: {
12
+ ({ className, isActive, ...props }: PaginationLinkProps): import("react/jsx-runtime").JSX.Element;
13
+ displayName: string;
14
+ };
15
+ declare const PaginationPrevious: {
16
+ ({ className, disabled, ...props }: {
17
+ disabled?: boolean;
18
+ } & React.ComponentProps<typeof PaginationLink>): import("react/jsx-runtime").JSX.Element;
19
+ displayName: string;
20
+ };
21
+ declare const PaginationNext: {
22
+ ({ className, disabled, ...props }: {
23
+ disabled?: boolean;
24
+ } & React.ComponentProps<typeof PaginationLink>): import("react/jsx-runtime").JSX.Element;
25
+ displayName: string;
26
+ };
27
+ declare const PaginationEllipsis: {
28
+ ({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
29
+ displayName: string;
30
+ };
31
+ export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, };
@@ -0,0 +1,8 @@
1
+ import { InputProps } from '../Input/Input';
2
+
3
+ type PasswordInputProps = Omit<InputProps, 'type'>;
4
+ /**
5
+ *
6
+ */
7
+ declare const PasswordInput: import('react').ForwardRefExoticComponent<Omit<PasswordInputProps, "ref"> & import('react').RefAttributes<HTMLInputElement>>;
8
+ export default PasswordInput;
@@ -0,0 +1,20 @@
1
+ import { default as PasswordInput } from './PasswordInput';
2
+ declare namespace _default {
3
+ export let title: string;
4
+ export { PasswordInput as component };
5
+ export let tags: string[];
6
+ export namespace args {
7
+ let placeholder: string;
8
+ }
9
+ }
10
+ export default _default;
11
+ export const Default: {};
12
+ export namespace WithError {
13
+ export namespace args_1 {
14
+ let error: boolean;
15
+ }
16
+ export { args_1 as args };
17
+ }
18
+ export namespace WithLabel {
19
+ function render(args: any): import("react/jsx-runtime").JSX.Element;
20
+ }
@@ -0,0 +1,8 @@
1
+ import { FC, PropsWithChildren } from 'react';
2
+
3
+ export interface PillProps extends PropsWithChildren {
4
+ variant?: 'solid' | 'outline';
5
+ className?: string;
6
+ }
7
+ declare const Pill: FC<PillProps>;
8
+ export default Pill;
@@ -0,0 +1,26 @@
1
+ import { default as Pill } from './Pill';
2
+ declare namespace _default {
3
+ export let title: string;
4
+ export { Pill as component };
5
+ export namespace parameters {
6
+ let layout: string;
7
+ }
8
+ export let tags: string[];
9
+ export namespace args {
10
+ let children: string;
11
+ }
12
+ }
13
+ export default _default;
14
+ export namespace Solid {
15
+ export namespace args_1 {
16
+ let variant: string;
17
+ }
18
+ export { args_1 as args };
19
+ }
20
+ export namespace Outline {
21
+ export namespace args_2 {
22
+ let variant_1: string;
23
+ export { variant_1 as variant };
24
+ }
25
+ export { args_2 as args };
26
+ }
@@ -0,0 +1,9 @@
1
+ import { FC } from 'react';
2
+
3
+ export interface PluralizeCounterProps {
4
+ count: number;
5
+ singularText: string;
6
+ children?: (count: number, pluralizedText: string) => string | React.ReactNode;
7
+ }
8
+ declare const PluralizeCounter: FC<PluralizeCounterProps>;
9
+ export default PluralizeCounter;
@@ -0,0 +1,14 @@
1
+ import { default as PluralizeCounter } from './PluralizeCounter';
2
+ declare namespace _default {
3
+ export let title: string;
4
+ export { PluralizeCounter 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,8 @@
1
+ import { default as React, HTMLAttributes } from 'react';
2
+
3
+ export interface AutocompleteHighlighterProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
4
+ text: string;
5
+ query: string;
6
+ }
7
+ declare const AutocompleteHighlighter: React.ForwardRefExoticComponent<AutocompleteHighlighterProps & React.RefAttributes<HTMLDivElement>>;
8
+ export default AutocompleteHighlighter;
@@ -0,0 +1,7 @@
1
+ import { HTMLAttributes } from 'react';
2
+
3
+ export interface AutocompleteItemProps extends HTMLAttributes<HTMLDivElement> {
4
+ canBeSelected?: boolean;
5
+ }
6
+ declare const AutocompleteItem: import('react').ForwardRefExoticComponent<AutocompleteItemProps & import('react').RefAttributes<HTMLDivElement>>;
7
+ export default AutocompleteItem;
@@ -0,0 +1,27 @@
1
+ import { default as React, HTMLAttributes } from 'react';
2
+ import { Suggestion } from './types';
3
+ import { SearchInputProps } from '../SearchInput/SearchInput';
4
+
5
+ export interface SearchAutocompleteProps extends HTMLAttributes<HTMLDivElement> {
6
+ searchInputProps?: SearchInputProps;
7
+ suggestionFetcher: (query: string) => Promise<Suggestion[]>;
8
+ /**
9
+ * If true, an "Add" suggestion will be shown when no results are found
10
+ */
11
+ canAdd?: boolean;
12
+ /**
13
+ * Callback when a suggestion is selected
14
+ */
15
+ onAccept?: (suggestion: Suggestion | null) => void;
16
+ /**
17
+ * Maximum number of suggestions to show
18
+ */
19
+ maxSuggestionsShown?: number;
20
+ /**
21
+ * Keep the option selected instead of the input.
22
+ * It is necessary to clear it in case you want to look for another option.
23
+ */
24
+ keepSelectedOption?: boolean;
25
+ }
26
+ export declare const SearchAutocomplete: React.ForwardRefExoticComponent<SearchAutocompleteProps & React.RefAttributes<HTMLDivElement>>;
27
+ export default SearchAutocomplete;
@@ -0,0 +1,51 @@
1
+ import { default as SearchAutocomplete } from './SearchAutocomplete';
2
+ declare namespace _default {
3
+ export let title: string;
4
+ export { SearchAutocomplete as component };
5
+ export let tags: string[];
6
+ }
7
+ export default _default;
8
+ export namespace Default {
9
+ export { SearchInputUsers as render };
10
+ }
11
+ export namespace CanAdd {
12
+ namespace args {
13
+ let canAdd: boolean;
14
+ }
15
+ }
16
+ export namespace KeepSelectedOption {
17
+ export namespace args_1 {
18
+ function suggestionFetcher(query: any): Promise<{
19
+ value: string;
20
+ label: string;
21
+ description: string;
22
+ }[]>;
23
+ let keepSelectedOption: boolean;
24
+ }
25
+ export { args_1 as args };
26
+ }
27
+ export namespace MaxSuggestionsShown {
28
+ export namespace args_2 {
29
+ export function suggestionFetcher_1(query: any): Promise<{
30
+ value: string;
31
+ label: string;
32
+ description: string;
33
+ }[]>;
34
+ export { suggestionFetcher_1 as suggestionFetcher };
35
+ export let maxSuggestionsShown: number;
36
+ }
37
+ export { args_2 as args };
38
+ }
39
+ export namespace WithChildren {
40
+ export namespace args_3 {
41
+ export function suggestionFetcher_2(query: any): Promise<{
42
+ value: string;
43
+ label: string;
44
+ description: string;
45
+ }[]>;
46
+ export { suggestionFetcher_2 as suggestionFetcher };
47
+ export let children: import("react/jsx-runtime").JSX.Element;
48
+ }
49
+ export { args_3 as args };
50
+ }
51
+ declare function SearchInputUsers(args: any): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,13 @@
1
+ import { Suggestion } from '../types';
2
+
3
+ export interface UseAutocompleteProps {
4
+ suggestionFetcher: (query: string) => Promise<Suggestion[]>;
5
+ canAdd?: boolean;
6
+ }
7
+ export declare const useAutocomplete: ({ suggestionFetcher, canAdd }: UseAutocompleteProps) => {
8
+ setQuery: (query: string) => void;
9
+ query: string;
10
+ suggestions: Suggestion[];
11
+ loading: boolean;
12
+ error: Error | null;
13
+ };
@@ -0,0 +1,12 @@
1
+ export interface Suggestion {
2
+ label: string;
3
+ description?: string;
4
+ value: string;
5
+ isNew?: boolean;
6
+ }
7
+ export interface SuggestionsState {
8
+ query: string;
9
+ suggestions: Suggestion[];
10
+ loading: boolean;
11
+ error: Error | null;
12
+ }
@@ -0,0 +1,9 @@
1
+ import { InputProps } from '../Input/Input';
2
+
3
+ export interface SearchInputProps extends InputProps {
4
+ showClearButton?: boolean;
5
+ showSearchIcon?: boolean;
6
+ onClear?: () => void;
7
+ }
8
+ export declare const SearchInput: import('react').ForwardRefExoticComponent<Omit<SearchInputProps, "ref"> & import('react').RefAttributes<HTMLInputElement>>;
9
+ export default SearchInput;
@@ -0,0 +1,30 @@
1
+ import { default as SearchInput } from './SearchInput';
2
+ declare namespace _default {
3
+ export let title: string;
4
+ export { SearchInput as component };
5
+ export namespace parameters {
6
+ let layout: string;
7
+ }
8
+ export let tags: string[];
9
+ export namespace args {
10
+ let placeholder: string;
11
+ }
12
+ }
13
+ export default _default;
14
+ export const Default: {};
15
+ export namespace WithLabel {
16
+ function render(args: any): import("react/jsx-runtime").JSX.Element;
17
+ }
18
+ export namespace WithError {
19
+ export namespace args_1 {
20
+ let error: boolean;
21
+ }
22
+ export { args_1 as args };
23
+ }
24
+ export namespace ShowClearIcon {
25
+ export namespace args_2 {
26
+ let showClearButton: boolean;
27
+ let onClear: import("@vitest/spy").Mock<(...args: any[]) => any>;
28
+ }
29
+ export { args_2 as args };
30
+ }
@@ -0,0 +1,6 @@
1
+ import { default as React, DetailedHTMLProps } from 'react';
2
+
3
+ export interface OptionProps extends DetailedHTMLProps<React.OptionHTMLAttributes<HTMLOptionElement>, HTMLOptionElement> {
4
+ }
5
+ declare const Option: React.ForwardRefExoticComponent<Omit<OptionProps, "ref"> & React.RefAttributes<HTMLOptionElement>>;
6
+ export default Option;
@@ -0,0 +1,13 @@
1
+ import { ForwardRefExoticComponent, HTMLAttributes } from 'react';
2
+ import { default as Option } from './Option';
3
+
4
+ export interface SelectProps extends HTMLAttributes<HTMLSelectElement> {
5
+ value?: string;
6
+ name?: string;
7
+ disabled?: boolean;
8
+ }
9
+ interface Component extends ForwardRefExoticComponent<SelectProps> {
10
+ Option: typeof Option;
11
+ }
12
+ declare const _default: Component;
13
+ export default _default;
@@ -0,0 +1,20 @@
1
+ import { default as Select } from './Select';
2
+ declare namespace _default {
3
+ export let title: string;
4
+ export { Select as component };
5
+ export namespace parameters {
6
+ let layout: string;
7
+ }
8
+ export let tags: string[];
9
+ export namespace args {
10
+ let placeholder: string;
11
+ }
12
+ }
13
+ export default _default;
14
+ export namespace Default {
15
+ export { renderSelect as render };
16
+ }
17
+ export namespace WithLabel {
18
+ function render(args: any): import("react/jsx-runtime").JSX.Element;
19
+ }
20
+ declare function renderSelect(args: any): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,32 @@
1
+ import { ReactNode } from 'react';
2
+
3
+ export interface ShowProps {
4
+ children: ReactNode | ReactNode[];
5
+ condition?: boolean;
6
+ }
7
+ export interface ElseProps {
8
+ children?: ReactNode | ReactNode[];
9
+ render?: boolean;
10
+ }
11
+ /**
12
+ * Component Usage Example
13
+ *
14
+ <Show>
15
+ <Show.When condition={condition1}>
16
+ <p>Condition 1 fulfilled</p>
17
+ </Show.When>
18
+ <Show.When condition={condition2}>
19
+ <p>Condition 2 fulfilled</p>
20
+ </Show.When>
21
+ <Show.Else>
22
+ <p>None of the above conditions are met</p>
23
+ </Show.Else>
24
+ </Show>
25
+ */
26
+ declare const Show: {
27
+ (props: ShowProps): import("react/jsx-runtime").JSX.Element;
28
+ displayName: string;
29
+ When({ condition, children }: ShowProps): import("react/jsx-runtime").JSX.Element;
30
+ Else({ render, children }: ElseProps): import("react/jsx-runtime").JSX.Element;
31
+ };
32
+ export default Show;
@@ -0,0 +1,11 @@
1
+ import { ReactNode, ComponentPropsWithoutRef } from 'react';
2
+
3
+ export interface SkeletonProps extends ComponentPropsWithoutRef<"span"> {
4
+ children?: ReactNode | ReactNode[];
5
+ loading?: boolean;
6
+ height?: number;
7
+ width?: number;
8
+ borderRadius?: number;
9
+ }
10
+ export declare const Skeleton: import('react').ForwardRefExoticComponent<SkeletonProps & import('react').RefAttributes<HTMLSpanElement>>;
11
+ export default Skeleton;
@@ -0,0 +1,11 @@
1
+ import { Skeleton } from './Skeleton';
2
+ declare namespace _default {
3
+ export let title: string;
4
+ export { Skeleton as component };
5
+ export let tags: string[];
6
+ export namespace args {
7
+ let loading: boolean;
8
+ }
9
+ }
10
+ export default _default;
11
+ export const Default: {};
@@ -0,0 +1,10 @@
1
+ import { FC } from 'react';
2
+ import { SkeletonProps } from './Skeleton';
3
+
4
+ export interface SkeletonListProps {
5
+ numberOfItems: number;
6
+ itemsGap?: number;
7
+ itemProps?: SkeletonProps;
8
+ }
9
+ export declare const SkeletonList: FC<SkeletonListProps>;
10
+ export default SkeletonList;
@@ -0,0 +1,11 @@
1
+ import { SkeletonList } from './SkeletonList';
2
+ declare namespace _default {
3
+ export let title: string;
4
+ export { SkeletonList as component };
5
+ export let tags: string[];
6
+ export namespace args {
7
+ let numberOfItems: number;
8
+ }
9
+ }
10
+ export default _default;
11
+ export const Default: {};
@@ -0,0 +1,10 @@
1
+ import { FC } from 'react';
2
+
3
+ export interface SpinnerProps {
4
+ className?: string;
5
+ color?: 'white' | 'dark' | 'success' | 'danger' | 'warning';
6
+ size?: number;
7
+ thickness?: number;
8
+ }
9
+ export declare const Spinner: FC<SpinnerProps>;
10
+ export default Spinner;
@@ -0,0 +1,11 @@
1
+ import { Spinner } from './Spinner';
2
+ declare namespace _default {
3
+ export let title: string;
4
+ export { Spinner as component };
5
+ export let tags: string[];
6
+ export namespace args {
7
+ let color: string;
8
+ }
9
+ }
10
+ export default _default;
11
+ export const Default: {};
@@ -0,0 +1,15 @@
1
+ import { default as React } from 'react';
2
+
3
+ export interface SwitchProps {
4
+ checked?: boolean;
5
+ defaultChecked?: boolean;
6
+ onCheckedChange?: (checked: boolean) => void;
7
+ disabled?: boolean;
8
+ id?: string;
9
+ className?: string;
10
+ name?: string;
11
+ 'aria-label'?: string;
12
+ 'aria-labelledby'?: string;
13
+ 'aria-describedby'?: string;
14
+ }
15
+ export declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1,8 @@
1
+ import { Switch } from './Switch';
2
+ declare namespace _default {
3
+ export let title: string;
4
+ export { Switch as component };
5
+ export let tags: string[];
6
+ }
7
+ export default _default;
8
+ export const Default: {};