@up42/up-components 0.8.1 → 0.8.3

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 (50) hide show
  1. package/dist/cjs/index.js +1 -1
  2. package/dist/cjs/types/components/Checkbox/Checkbox.d.ts +3 -0
  3. package/dist/cjs/types/components/Chip/Chip.d.ts +3 -0
  4. package/dist/cjs/types/components/CodeBox/CodeBox.d.ts +3 -0
  5. package/dist/cjs/types/components/Container/Container.d.ts +2 -0
  6. package/dist/cjs/types/components/DataGrid/DataGrid.d.ts +3 -0
  7. package/dist/cjs/types/components/EmptyState/EmptyState.d.ts +3 -0
  8. package/dist/cjs/types/components/Input/Input.d.ts +3 -0
  9. package/dist/cjs/types/components/Loading/Loading.d.ts +3 -0
  10. package/dist/cjs/types/components/NotFound/NotFound.d.ts +3 -0
  11. package/dist/cjs/types/components/Radio/Radio.d.ts +3 -0
  12. package/dist/cjs/types/components/Select/Select.d.ts +3 -0
  13. package/dist/cjs/types/components/Switch/Switch.d.ts +3 -0
  14. package/dist/cjs/types/components/TabGroup/TabGroup.d.ts +3 -0
  15. package/dist/cjs/types/components/Table/Table.d.ts +3 -0
  16. package/dist/cjs/types/components/Tabs/Tabs.d.ts +3 -0
  17. package/dist/cjs/types/components/Typography/Typography.d.ts +4 -0
  18. package/dist/cjs/types/global/icons/index.d.ts +2 -0
  19. package/dist/cjs/types/global/providers/AlertProvider/AlertProvider.d.ts +3 -0
  20. package/dist/cjs/types/global/providers/UpComponentsProvider/UpComponentsProvider.d.ts +3 -0
  21. package/dist/cjs/types/utils/helpers/capitalize.d.ts +2 -0
  22. package/dist/cjs/types/utils/helpers/copyToClipboard.d.ts +3 -0
  23. package/dist/cjs/types/utils/hooks/useQueryParams.d.ts +2 -0
  24. package/dist/cjs/types/utils/hooks/useRemotePagination.d.ts +2 -0
  25. package/dist/esm/index.js +1 -1
  26. package/dist/esm/types/components/Checkbox/Checkbox.d.ts +3 -0
  27. package/dist/esm/types/components/Chip/Chip.d.ts +3 -0
  28. package/dist/esm/types/components/CodeBox/CodeBox.d.ts +3 -0
  29. package/dist/esm/types/components/Container/Container.d.ts +2 -0
  30. package/dist/esm/types/components/DataGrid/DataGrid.d.ts +3 -0
  31. package/dist/esm/types/components/EmptyState/EmptyState.d.ts +3 -0
  32. package/dist/esm/types/components/Input/Input.d.ts +3 -0
  33. package/dist/esm/types/components/Loading/Loading.d.ts +3 -0
  34. package/dist/esm/types/components/NotFound/NotFound.d.ts +3 -0
  35. package/dist/esm/types/components/Radio/Radio.d.ts +3 -0
  36. package/dist/esm/types/components/Select/Select.d.ts +3 -0
  37. package/dist/esm/types/components/Switch/Switch.d.ts +3 -0
  38. package/dist/esm/types/components/TabGroup/TabGroup.d.ts +3 -0
  39. package/dist/esm/types/components/Table/Table.d.ts +3 -0
  40. package/dist/esm/types/components/Tabs/Tabs.d.ts +3 -0
  41. package/dist/esm/types/components/Typography/Typography.d.ts +4 -0
  42. package/dist/esm/types/global/icons/index.d.ts +2 -0
  43. package/dist/esm/types/global/providers/AlertProvider/AlertProvider.d.ts +3 -0
  44. package/dist/esm/types/global/providers/UpComponentsProvider/UpComponentsProvider.d.ts +3 -0
  45. package/dist/esm/types/utils/helpers/capitalize.d.ts +2 -0
  46. package/dist/esm/types/utils/helpers/copyToClipboard.d.ts +3 -0
  47. package/dist/esm/types/utils/hooks/useQueryParams.d.ts +2 -0
  48. package/dist/esm/types/utils/hooks/useRemotePagination.d.ts +2 -0
  49. package/dist/index.d.ts +315 -222
  50. package/package.json +1 -1
@@ -2,4 +2,7 @@
2
2
  import { ChipProps as MUIChipProps } from '@mui/material';
3
3
  import { MUIGlobalOmit } from '@global/utils/types';
4
4
  export declare type ChipProps = MUIGlobalOmit<Omit<MUIChipProps, 'size'>>;
5
+ /**
6
+ * Documentation: https://up-components.up42.dev/?path=/docs/data-display-chip
7
+ */
5
8
  export declare const Chip: ({ label, ...props }: ChipProps) => JSX.Element;
@@ -3,4 +3,7 @@ export interface CodeBoxProps {
3
3
  text: string;
4
4
  label?: string;
5
5
  }
6
+ /**
7
+ * Documentation: https://up-components.up42.dev/?path=/docs/data-display-codebox
8
+ */
6
9
  export declare const CodeBox: ({ label, text }: CodeBoxProps) => JSX.Element;
@@ -23,5 +23,7 @@ export declare type ContainerProps = MUIGlobalOmit<Omit<MUIContainerProps, 'maxW
23
23
  * - `fluid`: full width (maps).
24
24
  *
25
25
  * To now more about the requirements please check here: https://up42.atlassian.net/browse/B2B-215.
26
+ *
27
+ * Documentation: https://up-components.up42.dev/?path=/docs/layout-container
26
28
  */
27
29
  export declare const Container: ({ component, size, children, ...props }: ContainerProps) => JSX.Element;
@@ -3,4 +3,7 @@ import { DataGridProps as MuiDataGridProps } from '@mui/x-data-grid';
3
3
  export { type GridColDef, type GridRowId, type GridSelectionModel } from '@mui/x-data-grid';
4
4
  import { MUIGlobalOmit } from '@global/utils/types';
5
5
  export declare type DataGridProps = MUIGlobalOmit<MuiDataGridProps>;
6
+ /**
7
+ * Documentation: https://up-components.up42.dev/?path=/docs/data-display-datagrid
8
+ */
6
9
  export declare const DataGrid: ({ autoHeight, rowsPerPageOptions, disableSelectionOnClick, ...props }: MuiDataGridProps) => JSX.Element;
@@ -18,4 +18,7 @@ export declare type EmptyStateProps<C extends React.ElementType = 'div'> = BaseP
18
18
  */
19
19
  action?: ReactNode;
20
20
  }>;
21
+ /**
22
+ * Documentation: https://up-components.up42.dev/?path=/docs/patterns-emptystate
23
+ */
21
24
  export declare const EmptyState: <C extends React.ElementType<any>>({ icon: Icon, title, subTitle, action, ...props }: EmptyStateProps<C>) => JSX.Element;
@@ -1,4 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { TextFieldProps } from '@mui/material';
3
3
  export declare type InputProps = Omit<TextFieldProps, 'maxRows' | 'minRows' | 'multiline' | 'rows' | 'size' | 'variant'>;
4
+ /**
5
+ * Documentation: https://up-components.up42.dev/?path=/docs/data-entry-input
6
+ */
4
7
  export declare const Input: ({ type, ...props }: InputProps) => JSX.Element;
@@ -10,4 +10,7 @@ export declare type LoadingProps = {
10
10
  */
11
11
  visible?: boolean;
12
12
  } & BoxProps;
13
+ /**
14
+ * Documentation: https://up-components.up42.dev/?path=/docs/patterns-loading
15
+ */
13
16
  export declare const Loading: ({ fullPage, visible, ...rest }: LoadingProps) => JSX.Element | null;
@@ -1,2 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /**
3
+ * Documentation: https://up-components.up42.dev/?path=/docs/patterns-notfound
4
+ */
2
5
  export declare const NotFound: () => JSX.Element;
@@ -2,4 +2,7 @@
2
2
  import { RadioProps as MUIRadioProps } from '@mui/material';
3
3
  import { MUIGlobalOmit } from '@global/utils/types';
4
4
  export declare type RadioProps = MUIGlobalOmit<MUIRadioProps>;
5
+ /**
6
+ * Documentation: https://up-components.up42.dev/?path=/docs/data-entry-radio
7
+ */
5
8
  export declare const Radio: (props: RadioProps) => JSX.Element;
@@ -2,4 +2,7 @@
2
2
  import { SelectProps as MUISelectProps } from '@mui/material';
3
3
  import { MUIGlobalOmit } from '@global/utils/types';
4
4
  export declare type SelectProps = MUIGlobalOmit<Omit<MUISelectProps, 'variant' | 'label'>>;
5
+ /**
6
+ * Documentation: https://up-components.up42.dev/?path=/docs/data-entry-select
7
+ */
5
8
  export declare const Select: (props: SelectProps) => JSX.Element;
@@ -2,4 +2,7 @@
2
2
  import { SwitchProps as MUISwitchProps } from '@mui/material';
3
3
  import { MUIGlobalOmit } from '@global/utils/types';
4
4
  export declare type SwitchProps = MUIGlobalOmit<MUISwitchProps>;
5
+ /**
6
+ * Documentation: https://up-components.up42.dev/?path=/docs/data-entry-switch
7
+ */
5
8
  export declare const Switch: (props: SwitchProps) => JSX.Element;
@@ -14,5 +14,8 @@ export declare type TabGroupProps = {
14
14
  */
15
15
  nameSpace?: string;
16
16
  };
17
+ /**
18
+ * Documentation: https://up-components.up42.dev/?path=/docs/patterns-tabgroup
19
+ */
17
20
  export declare const TabGroup: ({ tabs, nameSpace: _nameSpace, tabContentProps, tabsProps }: TabGroupProps) => JSX.Element;
18
21
  export {};
@@ -10,6 +10,9 @@ import { TableSortLabelProps as MuiTableSortLabelProps } from '@mui/material/Tab
10
10
  import { TableFooterProps as MuiTableFooterProps } from '@mui/material/TableFooter';
11
11
  import { MUIGlobalOmit } from '@global/utils/types';
12
12
  export declare type TableProps = MUIGlobalOmit<MuiTableProps>;
13
+ /**
14
+ * Documentation: https://up-components.up42.dev/?path=/docs/data-display-table
15
+ */
13
16
  export declare const Table: ({ children, ...props }: TableProps) => JSX.Element;
14
17
  export declare type TableBodyProps = MUIGlobalOmit<MuiTableBodyProps>;
15
18
  export declare const TableBody: ({ children, ...props }: TableBodyProps) => JSX.Element;
@@ -3,5 +3,8 @@ import { TabsProps as MuiTabsProps, TabProps as MuiTabProps } from '@mui/materia
3
3
  import { MUIGlobalOmit } from '@global/utils/types';
4
4
  export declare type TabsProps = MUIGlobalOmit<MuiTabsProps>;
5
5
  export declare type TabProps = MUIGlobalOmit<MuiTabProps>;
6
+ /**
7
+ * Documentation: https://up-components.up42.dev/?path=/docs/navigation-tabs
8
+ */
6
9
  export declare const Tabs: ({ children, ...props }: TabsProps) => JSX.Element;
7
10
  export declare const Tab: ({ children, ...props }: TabProps) => JSX.Element;
@@ -4,6 +4,10 @@ export declare type TypographyProps<C extends React.ElementType = 'p'> = MUITypo
4
4
  component?: C;
5
5
  innerRef?: TypographyProps['ref'];
6
6
  }>;
7
+ /**
8
+ * Tokens: https://up-components.up42.dev/?path=/docs/tokens-typography
9
+ * Documentation: https://up-components.up42.dev/?path=/docs/data-display-typography
10
+ */
7
11
  export declare const Typography: React.ForwardRefExoticComponent<Pick<{
8
12
  component?: React.ElementType<any> | undefined;
9
13
  innerRef?: TypographyProps['ref'];
@@ -49,6 +49,8 @@ export { default as WeatherCloud } from './weather-cloud.svg';
49
49
  export { default as Webhooks } from './webhooks.svg';
50
50
  export { default as Workflow } from './workflow.svg';
51
51
  export { default as ModuleThree } from './module-three.svg';
52
+ export { default as AlarmBell } from './alarm-bell.svg';
53
+ export { default as Tag } from './tag.svg';
52
54
  export { default as Brightness1 } from '@mui/icons-material/Brightness1';
53
55
  export { default as ArrowDownward } from '@mui/icons-material/ArrowDownward';
54
56
  export { default as ArrowUpward } from '@mui/icons-material/ArrowUpward';
@@ -18,5 +18,8 @@ declare type ContextState = {
18
18
  export declare const AlertProvider: ({ children }: {
19
19
  children: ReactNode;
20
20
  }) => JSX.Element;
21
+ /**
22
+ * Documentation: https://up-components.up42.dev/?path=/docs/feedback-alert-usealert--create-alert
23
+ */
21
24
  export declare const useAlert: () => ContextState;
22
25
  export {};
@@ -1,3 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { ThemeProviderProps } from '@mui/material/styles/ThemeProvider';
3
+ /**
4
+ * Documentation: https://up-components.up42.dev/?path=/story/introduction
5
+ */
3
6
  export declare const UpComponentsProvider: (props: Omit<ThemeProviderProps, 'theme'>) => JSX.Element;
@@ -2,5 +2,7 @@
2
2
  * It should to be noted that this helper isn't equivalent to `text-transform: capitalize`.
3
3
  * A strict capitalization should uppercase the first letter of each word in the sentence.
4
4
  * This helper only handles the first word.
5
+ *
6
+ * Documentation: https://up-components.up42.dev/?path=/story/utils--page#capitalize
5
7
  */
6
8
  export declare const capitalize: (string: string) => string;
@@ -1 +1,4 @@
1
+ /**
2
+ * Documentation: https://up-components.up42.dev/?path=/story/utils--page#copytoclipboard
3
+ */
1
4
  export declare const copyToClipboard: (text: string, successCallBack: () => void) => void;
@@ -1,5 +1,7 @@
1
1
  /**
2
2
  * Returns query parameter values from a string or an array of strings.
3
+ *
4
+ * Documentation: https://up-components.up42.dev/?path=/story/utils--page#usequeryparams
3
5
  */
4
6
  export declare function useQueryParams(paramName: string): string;
5
7
  export declare function useQueryParams(paramNames: string[]): Array<string>;
@@ -18,6 +18,8 @@ declare type UseRemotePaginationResponse = {
18
18
  };
19
19
  /**
20
20
  * Returns pagination data and and helper functions.
21
+ *
22
+ * Documentation: https://up-components.up42.dev/?path=/story/utils--page#useremotepagination
21
23
  */
22
24
  export declare const useRemotePagination: (fetchingHook: ({ params }: {
23
25
  params: string;