@availity/mui-spaces 0.3.2 → 0.3.4

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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,23 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [0.3.4](https://github.com/Availity/element/compare/@availity/mui-spaces@0.3.3...@availity/mui-spaces@0.3.4) (2024-07-25)
6
+
7
+ ## [0.3.3](https://github.com/Availity/element/compare/@availity/mui-spaces@0.3.2...@availity/mui-spaces@0.3.3) (2024-07-22)
8
+
9
+ ### Dependency Updates
10
+
11
+ * `mui-button` updated to version `0.3.2`
12
+ * `mui-dialog` updated to version `0.3.2`
13
+ * `mui-disclaimer` updated to version `0.3.2`
14
+ * `mui-icon` updated to version `0.3.2`
15
+ * `mui-modal` updated to version `0.3.2`
16
+ * `mui-progress` updated to version `0.3.2`
17
+ * `mui-card` updated to version `0.3.2`
18
+ * `mui-chip` updated to version `0.3.2`
19
+ * `mui-link` updated to version `0.3.2`
20
+ * `mui-favorites` updated to version `0.3.2`
21
+ * `mui-list` updated to version `0.3.2`
5
22
  ## [0.3.2](https://github.com/Availity/element/compare/@availity/mui-spaces@0.3.1...@availity/mui-spaces@0.3.2) (2024-07-22)
6
23
 
7
24
  ### Dependency Updates
package/dist/index.d.mts CHANGED
@@ -1,5 +1,7 @@
1
1
  import * as react from 'react';
2
+ import { ElementType } from 'react';
2
3
  import { ChipProps } from '@mui/material/Chip';
4
+ import { SvgIconProps } from '@mui/material';
3
5
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
6
 
5
7
  type StatusChipProps = {
@@ -35,24 +37,24 @@ type SpacesLinkProps = {
35
37
  /** Children can be a react child or render prop. */
36
38
  children?: JSX.Element | ((props: any | undefined) => JSX.Element);
37
39
  /** Tag to overwrite the root component rendered. */
38
- tag?: string;
40
+ tag?: ElementType<any, keyof JSX.IntrinsicElements>;
39
41
  /** Tag to overwrite the body component that renders the title, description and data values.
40
42
  * It defaults to CardBody or div depending on the value of the variant prop.
41
43
  */
42
- bodyTag?: string;
44
+ bodyTag?: ElementType<any, keyof JSX.IntrinsicElements>;
43
45
  /** Tag to overwrite the title component. If variant prop is set to "card", defaults to CardTitle.
44
46
  * If variant is set to "list", defaults to ListItemHeading. Overwise, defaults to div.
45
47
  */
46
- titleTag?: string;
48
+ titleTag?: ElementType<any, keyof JSX.IntrinsicElements>;
47
49
  /** Tag to overwrite the text component. If variant prop is set to "card", defaults to Card Text.
48
50
  * If variant is set to "list", defaults to ListItemText. Otherwise, defaults to div.
49
51
  */
50
- textTag?: string;
52
+ textTag?: ElementType<any, keyof JSX.IntrinsicElements>;
51
53
  titleClassName?: string;
52
54
  /** When true, utilizes the Card component for styling. */
53
55
  card?: boolean;
54
56
  /** When true, renders an @availity/mui-icon next to the title if present on the Space. */
55
- icon?: boolean;
57
+ icon?: (props: SvgIconProps) => JSX.Element;
56
58
  /** When true, renders the Spaces description beneath the title. */
57
59
  description?: boolean;
58
60
  /** When passed in, provides predefined styles for the component.
@@ -217,7 +219,7 @@ declare const useSpacesContext: () => SpacesContextType;
217
219
  declare const Spaces: ({ query, variables, clientId, children, payerIds, spaceIds, spaces: spacesFromProps, }: SpacesProps) => JSX.Element;
218
220
  declare const useSpaces: UseSpaces;
219
221
 
220
- declare const SpacesLink: ({ spaceId, space: propSpace, className, children, favorite, icon, showName, showNew, showDate, stacked, body, description: showDescription, tag, bodyTag, titleTag, textTag, titleClassName, variant, loading: propsLoading, clientId: propsClientId, maxDescriptionWidth, style, linkAttributes, role, analytics, customBadgeText, customBadgeColor, idPrefix, ...rest }: SpacesLinkWithSpace | SpacesLinkWithSpaceId) => react_jsx_runtime.JSX.Element;
222
+ declare const SpacesLink: ({ spaceId, space: propSpace, className, children, favorite, icon: FileIcon, showName, showNew, showDate, stacked, body, description: showDescription, tag, bodyTag, titleTag, textTag, titleClassName, variant, loading: propsLoading, clientId: propsClientId, maxDescriptionWidth, style, linkAttributes, role, analytics, customBadgeText, customBadgeColor, idPrefix, ...rest }: SpacesLinkWithSpace | SpacesLinkWithSpaceId) => react_jsx_runtime.JSX.Element;
221
223
 
222
224
  type SpacesAgreementProps = {
223
225
  spaceId: string;
package/dist/index.d.ts CHANGED
@@ -1,5 +1,7 @@
1
1
  import * as react from 'react';
2
+ import { ElementType } from 'react';
2
3
  import { ChipProps } from '@mui/material/Chip';
4
+ import { SvgIconProps } from '@mui/material';
3
5
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
6
 
5
7
  type StatusChipProps = {
@@ -35,24 +37,24 @@ type SpacesLinkProps = {
35
37
  /** Children can be a react child or render prop. */
36
38
  children?: JSX.Element | ((props: any | undefined) => JSX.Element);
37
39
  /** Tag to overwrite the root component rendered. */
38
- tag?: string;
40
+ tag?: ElementType<any, keyof JSX.IntrinsicElements>;
39
41
  /** Tag to overwrite the body component that renders the title, description and data values.
40
42
  * It defaults to CardBody or div depending on the value of the variant prop.
41
43
  */
42
- bodyTag?: string;
44
+ bodyTag?: ElementType<any, keyof JSX.IntrinsicElements>;
43
45
  /** Tag to overwrite the title component. If variant prop is set to "card", defaults to CardTitle.
44
46
  * If variant is set to "list", defaults to ListItemHeading. Overwise, defaults to div.
45
47
  */
46
- titleTag?: string;
48
+ titleTag?: ElementType<any, keyof JSX.IntrinsicElements>;
47
49
  /** Tag to overwrite the text component. If variant prop is set to "card", defaults to Card Text.
48
50
  * If variant is set to "list", defaults to ListItemText. Otherwise, defaults to div.
49
51
  */
50
- textTag?: string;
52
+ textTag?: ElementType<any, keyof JSX.IntrinsicElements>;
51
53
  titleClassName?: string;
52
54
  /** When true, utilizes the Card component for styling. */
53
55
  card?: boolean;
54
56
  /** When true, renders an @availity/mui-icon next to the title if present on the Space. */
55
- icon?: boolean;
57
+ icon?: (props: SvgIconProps) => JSX.Element;
56
58
  /** When true, renders the Spaces description beneath the title. */
57
59
  description?: boolean;
58
60
  /** When passed in, provides predefined styles for the component.
@@ -217,7 +219,7 @@ declare const useSpacesContext: () => SpacesContextType;
217
219
  declare const Spaces: ({ query, variables, clientId, children, payerIds, spaceIds, spaces: spacesFromProps, }: SpacesProps) => JSX.Element;
218
220
  declare const useSpaces: UseSpaces;
219
221
 
220
- declare const SpacesLink: ({ spaceId, space: propSpace, className, children, favorite, icon, showName, showNew, showDate, stacked, body, description: showDescription, tag, bodyTag, titleTag, textTag, titleClassName, variant, loading: propsLoading, clientId: propsClientId, maxDescriptionWidth, style, linkAttributes, role, analytics, customBadgeText, customBadgeColor, idPrefix, ...rest }: SpacesLinkWithSpace | SpacesLinkWithSpaceId) => react_jsx_runtime.JSX.Element;
222
+ declare const SpacesLink: ({ spaceId, space: propSpace, className, children, favorite, icon: FileIcon, showName, showNew, showDate, stacked, body, description: showDescription, tag, bodyTag, titleTag, textTag, titleClassName, variant, loading: propsLoading, clientId: propsClientId, maxDescriptionWidth, style, linkAttributes, role, analytics, customBadgeText, customBadgeColor, idPrefix, ...rest }: SpacesLinkWithSpace | SpacesLinkWithSpaceId) => react_jsx_runtime.JSX.Element;
221
223
 
222
224
  type SpacesAgreementProps = {
223
225
  spaceId: string;