@up42/up-components 1.6.1 → 1.6.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.
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/types/components/Button/Button.d.ts +13 -0
- package/dist/cjs/types/components/Link/Link.d.ts +2 -2
- package/dist/esm/index.js +1 -1
- package/dist/esm/types/components/Button/Button.d.ts +13 -0
- package/dist/esm/types/components/Link/Link.d.ts +2 -2
- package/dist/index.d.ts +15 -2
- package/package.json +1 -1
|
@@ -9,6 +9,19 @@ export declare type ButtonProps = MUIGlobalOmit<Omit<MUIButtonProps, 'size' | 'c
|
|
|
9
9
|
to?: MUIButtonProps['href'];
|
|
10
10
|
}>;
|
|
11
11
|
/**
|
|
12
|
+
* ### Routing Libraries
|
|
13
|
+
* You can achieve the integration with third-party routing libraries (i.e `react-router`) with the `component` prop.
|
|
14
|
+
* You can learn more about this here: https://mui.com/guides/routing/#component-prop
|
|
15
|
+
*
|
|
16
|
+
* ```js
|
|
17
|
+
* import { Link } from '@up42/up-components'
|
|
18
|
+
* import { Link } from 'react-router-dom'
|
|
19
|
+
*
|
|
20
|
+
* <Button component={Link} to="/my-path">
|
|
21
|
+
* client-side navigation button.
|
|
22
|
+
* </Button>
|
|
23
|
+
```
|
|
24
|
+
*
|
|
12
25
|
* Documentation: https://up-components.up42.com/?path=/docs/data-entry-button--docs
|
|
13
26
|
*/
|
|
14
27
|
export declare const Button: React.ForwardRefExoticComponent<Pick<{
|
|
@@ -7,12 +7,12 @@ export declare type LinkProps<C extends React.ElementType> = MuiLinkProps<C, {
|
|
|
7
7
|
};
|
|
8
8
|
/**
|
|
9
9
|
* ### Routing Libraries
|
|
10
|
-
* You can achieve the integration with third-party routing libraries (i.e
|
|
10
|
+
* You can achieve the integration with third-party routing libraries (i.e `react-router`) with the `component` prop.
|
|
11
11
|
* You can learn more about this here: https://mui.com/guides/routing/#component-prop
|
|
12
12
|
*
|
|
13
13
|
* ```js
|
|
14
|
-
* import { Link as RouterLink } from '@reach/router'
|
|
15
14
|
* import { Link } from '@up42/up-components'
|
|
15
|
+
* import { Link as RouterLink } from 'react-router-dom'
|
|
16
16
|
*
|
|
17
17
|
* <Link component={RouterLink} to="/my-path">
|
|
18
18
|
* client-side navigation link.
|
package/dist/index.d.ts
CHANGED
|
@@ -88,6 +88,19 @@ declare type ButtonProps = MUIGlobalOmit<Omit<ButtonProps$1, 'size' | 'color'>,
|
|
|
88
88
|
to?: ButtonProps$1['href'];
|
|
89
89
|
}>;
|
|
90
90
|
/**
|
|
91
|
+
* ### Routing Libraries
|
|
92
|
+
* You can achieve the integration with third-party routing libraries (i.e `react-router`) with the `component` prop.
|
|
93
|
+
* You can learn more about this here: https://mui.com/guides/routing/#component-prop
|
|
94
|
+
*
|
|
95
|
+
* ```js
|
|
96
|
+
* import { Link } from '@up42/up-components'
|
|
97
|
+
* import { Link } from 'react-router-dom'
|
|
98
|
+
*
|
|
99
|
+
* <Button component={Link} to="/my-path">
|
|
100
|
+
* client-side navigation button.
|
|
101
|
+
* </Button>
|
|
102
|
+
```
|
|
103
|
+
*
|
|
91
104
|
* Documentation: https://up-components.up42.com/?path=/docs/data-entry-button--docs
|
|
92
105
|
*/
|
|
93
106
|
declare const Button: React__default.ForwardRefExoticComponent<Pick<{
|
|
@@ -344,12 +357,12 @@ declare type LinkProps<C extends React__default.ElementType> = LinkProps$1<C, {
|
|
|
344
357
|
};
|
|
345
358
|
/**
|
|
346
359
|
* ### Routing Libraries
|
|
347
|
-
* You can achieve the integration with third-party routing libraries (i.e
|
|
360
|
+
* You can achieve the integration with third-party routing libraries (i.e `react-router`) with the `component` prop.
|
|
348
361
|
* You can learn more about this here: https://mui.com/guides/routing/#component-prop
|
|
349
362
|
*
|
|
350
363
|
* ```js
|
|
351
|
-
* import { Link as RouterLink } from '@reach/router'
|
|
352
364
|
* import { Link } from '@up42/up-components'
|
|
365
|
+
* import { Link as RouterLink } from 'react-router-dom'
|
|
353
366
|
*
|
|
354
367
|
* <Link component={RouterLink} to="/my-path">
|
|
355
368
|
* client-side navigation link.
|