@xyo-network/react-shared 2.48.1 → 2.48.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/dist/cjs/hooks/usePromise.js +2 -2
- package/dist/cjs/hooks/usePromise.js.map +1 -1
- package/dist/docs.json +245 -245
- package/dist/esm/hooks/usePromise.js +1 -1
- package/dist/esm/hooks/usePromise.js.map +1 -1
- package/dist/types/components/TableCell/EllipsisTableCell.d.ts +1 -1
- package/dist/types/components/TableCell/EllipsisTableCell.d.ts.map +1 -1
- package/package.json +10 -9
- package/src/components/BasicHero/BasicHero.stories.tsx +3 -3
- package/src/components/LoadResult.stories.tsx +2 -2
- package/src/components/SectionSpacingRow/SectionSpacingRow.stories.tsx +3 -3
- package/src/components/StyleGuide/StyleGuide.stories.tsx +3 -3
- package/src/components/TableCell/EllipsisTableCell.tsx +1 -1
- package/src/components/TableCell/EllipsizeTableCell.stories.tsx +5 -5
- package/src/components/TokenBar/TokenBar.stories.tsx +3 -3
- package/src/components/TokenSummary/TokenSummary.stories.tsx +3 -3
- package/src/components/XyoThemeTokenAvatar/XyoThemeTokenAvatar.stories.tsx +3 -3
- package/src/components/XyoThemeTokenAvatarGroup/XyoThemeTokenAvatarGroup.stories.tsx +3 -3
- package/src/hooks/GradientStyles/GradientStyle.stories.tsx +3 -3
- package/src/hooks/usePromise.tsx +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePromise.js","sourceRoot":"","sources":["../../../src/hooks/usePromise.tsx"],"names":[],"mappings":"AAAA,8DAA8D;AAE9D,OAAO,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"usePromise.js","sourceRoot":"","sources":["../../../src/hooks/usePromise.tsx"],"names":[],"mappings":"AAAA,8DAA8D;AAE9D,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAA;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAElC,IAAK,K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I,EAAE,KAAK,CAAC,OAAO,EAAE,CAAC,CAAA;QAEjC,IAAI;YACF,MAAM,MAAM,GAAG,MAAM,OAAO,CAAA;YAC5B,CAAC,QAAQ;gBACP,CAAC,CAAC,QAAQ,CAAC;oBACP,OAAO,EAAE,MAAM;oBACf,IAAI,EAAE,KAAK,CAAC,QAAQ;iBACrB,CAAC;gBACJ,CAAC,CAAC,SAAS,CAAA;SACd;QAAC,OAAO,CAAC,EAAE;YACV,CAAC,QAAQ;gBACP,CAAC,CAAC,QAAQ,CAAC;oBACP,OAAO,EAAE,CAAU;oBACnB,IAAI,EAAE,KAAK,CAAC,QAAQ;iBACrB,CAAC;gBACJ,CAAC,CAAC,SAAS,CAAA;SACd;QAED,OAAO,GAAG,EAAE;YACV,QAAQ,GAAG,IAAI,CAAA;QACjB,CAAC,CAAA;IACH,CAAC;IACD,oEAAoE;IACpE,uDAAuD;IACvD,YAAY,CACb,CAAA;IAED,OAAO,CAAC,MAAM,EAAE,KAAK,EAAE,KAAK,CAAC,CAAA;AAC/B,CAAC,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { TableCellProps } from '@mui/material';
|
|
3
|
-
import { WithChildren } from '@xylabs/react-shared';
|
|
3
|
+
import type { WithChildren } from '@xylabs/react-shared';
|
|
4
4
|
import { To } from 'react-router-dom';
|
|
5
5
|
export interface EllipsisTableCellProps extends TableCellProps {
|
|
6
6
|
href?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EllipsisTableCell.d.ts","sourceRoot":"","sources":["../../../../src/components/TableCell/EllipsisTableCell.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAqB,cAAc,EAAE,MAAM,eAAe,CAAA;AAEjE,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"EllipsisTableCell.d.ts","sourceRoot":"","sources":["../../../../src/components/TableCell/EllipsisTableCell.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAqB,cAAc,EAAE,MAAM,eAAe,CAAA;AAEjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAExD,OAAO,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAA;AAYrC,MAAM,WAAW,sBAAuB,SAAQ,cAAc;IAC5D,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,EAAE,CAAC,EAAE,EAAE,CAAA;IACP,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;CACxB;AAED,eAAO,MAAM,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,sBAAsB,CAAC,CAqBnF,CAAA;AAGD,eAAO,MAAM,iBAAiB,0DAA2B,CAAA"}
|
package/package.json
CHANGED
|
@@ -11,16 +11,17 @@
|
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@xylabs/pixel": "^1.4.13",
|
|
14
|
-
"@xylabs/react-appbar": "^2.17.
|
|
15
|
-
"@xylabs/react-
|
|
16
|
-
"@xylabs/react-
|
|
17
|
-
"@xylabs/react-
|
|
18
|
-
"@xylabs/react-
|
|
19
|
-
"@
|
|
14
|
+
"@xylabs/react-appbar": "^2.17.1",
|
|
15
|
+
"@xylabs/react-async-effect": "^2.17.1",
|
|
16
|
+
"@xylabs/react-button": "^2.17.1",
|
|
17
|
+
"@xylabs/react-flexbox": "^2.17.1",
|
|
18
|
+
"@xylabs/react-link": "^2.17.1",
|
|
19
|
+
"@xylabs/react-shared": "^2.17.1",
|
|
20
|
+
"@xyo-network/react-event": "^2.48.4"
|
|
20
21
|
},
|
|
21
22
|
"devDependencies": {
|
|
22
|
-
"@storybook/react": "^
|
|
23
|
-
"@xylabs/react-quick-tip-button": "^2.17.
|
|
23
|
+
"@storybook/react": "^7.0.2",
|
|
24
|
+
"@xylabs/react-quick-tip-button": "^2.17.1",
|
|
24
25
|
"@xylabs/ts-scripts-yarn3": "^2.16.5",
|
|
25
26
|
"@xylabs/tsconfig-react": "^2.16.5",
|
|
26
27
|
"require-from-string": "^2.0.2",
|
|
@@ -78,5 +79,5 @@
|
|
|
78
79
|
},
|
|
79
80
|
"sideEffects": false,
|
|
80
81
|
"types": "dist/types/index.d.ts",
|
|
81
|
-
"version": "2.48.
|
|
82
|
+
"version": "2.48.4"
|
|
82
83
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Meta, StoryFn } from '@storybook/react'
|
|
2
2
|
import { BrowserRouter } from 'react-router-dom'
|
|
3
3
|
|
|
4
4
|
import { BasicHero } from './BasicHero'
|
|
@@ -12,9 +12,9 @@ const StorybookEntry = {
|
|
|
12
12
|
},
|
|
13
13
|
},
|
|
14
14
|
title: 'shared/BasicHero',
|
|
15
|
-
} as
|
|
15
|
+
} as Meta<typeof BasicHero>
|
|
16
16
|
|
|
17
|
-
const Template:
|
|
17
|
+
const Template: StoryFn<typeof BasicHero> = (args) => (
|
|
18
18
|
<BrowserRouter>
|
|
19
19
|
<BasicHero {...args}></BasicHero>
|
|
20
20
|
</BrowserRouter>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable import/no-internal-modules */
|
|
2
|
-
import {
|
|
2
|
+
import { Meta, StoryFn } from '@storybook/react'
|
|
3
3
|
|
|
4
4
|
import { LoadResult } from './LoadResult'
|
|
5
5
|
|
|
@@ -14,7 +14,7 @@ const StorybookEntry: Meta = {
|
|
|
14
14
|
title: 'webapp/LoadResult',
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
const Template:
|
|
17
|
+
const Template: StoryFn<typeof LoadResult> = (props) => {
|
|
18
18
|
return <LoadResult {...props} />
|
|
19
19
|
}
|
|
20
20
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Divider, Typography } from '@mui/material'
|
|
2
|
-
import {
|
|
2
|
+
import { Meta, StoryFn } from '@storybook/react'
|
|
3
3
|
import { BrowserRouter } from 'react-router-dom'
|
|
4
4
|
|
|
5
5
|
import { SectionSpacingRow } from './SectionSpacingRow'
|
|
@@ -12,9 +12,9 @@ const StorybookEntry = {
|
|
|
12
12
|
},
|
|
13
13
|
},
|
|
14
14
|
title: 'shared/SectionSpacingRow',
|
|
15
|
-
} as
|
|
15
|
+
} as Meta<typeof SectionSpacingRow>
|
|
16
16
|
|
|
17
|
-
const Template:
|
|
17
|
+
const Template: StoryFn<typeof SectionSpacingRow> = (args) => (
|
|
18
18
|
<BrowserRouter>
|
|
19
19
|
<Typography variant="subtitle2">No Spacing</Typography>
|
|
20
20
|
<Typography textAlign="center">Hello World</Typography>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Meta, StoryFn } from '@storybook/react'
|
|
2
2
|
|
|
3
3
|
import { StyleGuideExample } from './StyleGuide.example'
|
|
4
4
|
|
|
@@ -11,9 +11,9 @@ const StorybookEntry = {
|
|
|
11
11
|
},
|
|
12
12
|
},
|
|
13
13
|
title: 'shared/StyleGuide',
|
|
14
|
-
} as
|
|
14
|
+
} as Meta<typeof StyleGuideExample>
|
|
15
15
|
|
|
16
|
-
const Template:
|
|
16
|
+
const Template: StoryFn<typeof StyleGuideExample> = () => <StyleGuideExample />
|
|
17
17
|
|
|
18
18
|
const Default = Template.bind({})
|
|
19
19
|
Default.args = {}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { styled, TableCell, TableCellProps } from '@mui/material'
|
|
2
2
|
import { LinkEx } from '@xylabs/react-link'
|
|
3
|
-
import { WithChildren } from '@xylabs/react-shared'
|
|
3
|
+
import type { WithChildren } from '@xylabs/react-shared'
|
|
4
4
|
import { forwardRef, useMemo } from 'react'
|
|
5
5
|
import { To } from 'react-router-dom'
|
|
6
6
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Table, TableBody, TableCell, TableHead, TableRow } from '@mui/material'
|
|
2
|
-
import {
|
|
2
|
+
import { Decorator, Meta, StoryFn } from '@storybook/react'
|
|
3
3
|
import { BrowserRouter } from 'react-router-dom'
|
|
4
4
|
|
|
5
5
|
import { EllipsisTableCell } from './EllipsisTableCell'
|
|
6
6
|
|
|
7
|
-
const TableDecorator:
|
|
7
|
+
const TableDecorator: Decorator = (Story, args) => {
|
|
8
8
|
return (
|
|
9
9
|
<BrowserRouter>
|
|
10
10
|
<Table>
|
|
@@ -31,7 +31,7 @@ export default {
|
|
|
31
31
|
title: 'shared/EllipsisTableCell',
|
|
32
32
|
} as Meta
|
|
33
33
|
|
|
34
|
-
const Template:
|
|
34
|
+
const Template: StoryFn<typeof EllipsisTableCell> = (props) => {
|
|
35
35
|
return (
|
|
36
36
|
<TableRow>
|
|
37
37
|
<EllipsisTableCell to="/foo" value="As-Link-e0f01ab62384d8d501ff6b2f860b7992c347a6b8ae07bd5fd2fa4a7d47dad915" {...props} />
|
|
@@ -42,7 +42,7 @@ const Template: ComponentStory<typeof EllipsisTableCell> = (props) => {
|
|
|
42
42
|
)
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
const TemplateWithMultiple:
|
|
45
|
+
const TemplateWithMultiple: StoryFn<typeof EllipsisTableCell> = (props) => {
|
|
46
46
|
return (
|
|
47
47
|
<TableRow>
|
|
48
48
|
<EllipsisTableCell width="50%" {...props}>
|
|
@@ -57,7 +57,7 @@ const TemplateWithMultiple: ComponentStory<typeof EllipsisTableCell> = (props) =
|
|
|
57
57
|
)
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
const TemplateWithMultipleRows:
|
|
60
|
+
const TemplateWithMultipleRows: StoryFn<typeof EllipsisTableCell> = (props) => {
|
|
61
61
|
return (
|
|
62
62
|
<>
|
|
63
63
|
<TableRow>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Meta, StoryFn } from '@storybook/react'
|
|
2
2
|
import { QuickTipButton } from '@xylabs/react-quick-tip-button'
|
|
3
3
|
import { BrowserRouter } from 'react-router-dom'
|
|
4
4
|
|
|
@@ -12,9 +12,9 @@ const StorybookEntry = {
|
|
|
12
12
|
},
|
|
13
13
|
},
|
|
14
14
|
title: 'shared/TokenBar',
|
|
15
|
-
} as
|
|
15
|
+
} as Meta<typeof TokenBar>
|
|
16
16
|
|
|
17
|
-
const Template:
|
|
17
|
+
const Template: StoryFn<typeof TokenBar> = (args) => (
|
|
18
18
|
<BrowserRouter>
|
|
19
19
|
<TokenBar {...args}></TokenBar>
|
|
20
20
|
</BrowserRouter>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Link } from '@mui/material'
|
|
2
|
-
import {
|
|
2
|
+
import { Meta, StoryFn } from '@storybook/react'
|
|
3
3
|
import { BrowserRouter } from 'react-router-dom'
|
|
4
4
|
|
|
5
5
|
import * as tokenData from '../TokenData'
|
|
@@ -13,9 +13,9 @@ const StorybookEntry = {
|
|
|
13
13
|
},
|
|
14
14
|
},
|
|
15
15
|
title: 'shared/TokenSummary',
|
|
16
|
-
} as
|
|
16
|
+
} as Meta<typeof TokenSummary>
|
|
17
17
|
|
|
18
|
-
const Template:
|
|
18
|
+
const Template: StoryFn<typeof TokenSummary> = (args) => (
|
|
19
19
|
<BrowserRouter>
|
|
20
20
|
<TokenSummary {...args}></TokenSummary>
|
|
21
21
|
</BrowserRouter>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Meta, StoryFn } from '@storybook/react'
|
|
2
2
|
import { BrowserRouter } from 'react-router-dom'
|
|
3
3
|
|
|
4
4
|
import * as tokenData from '../TokenData'
|
|
@@ -12,9 +12,9 @@ const StorybookEntry = {
|
|
|
12
12
|
},
|
|
13
13
|
},
|
|
14
14
|
title: 'shared/XyoThemeTokenAvatar',
|
|
15
|
-
} as
|
|
15
|
+
} as Meta<typeof XyoThemeTokenAvatar>
|
|
16
16
|
|
|
17
|
-
const Template:
|
|
17
|
+
const Template: StoryFn<typeof XyoThemeTokenAvatar> = (args) => (
|
|
18
18
|
<BrowserRouter>
|
|
19
19
|
<XyoThemeTokenAvatar {...args}></XyoThemeTokenAvatar>
|
|
20
20
|
</BrowserRouter>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Meta, StoryFn } from '@storybook/react'
|
|
2
2
|
import { BrowserRouter } from 'react-router-dom'
|
|
3
3
|
|
|
4
4
|
import * as tokenData from '../TokenData'
|
|
@@ -12,9 +12,9 @@ const StorybookEntry = {
|
|
|
12
12
|
},
|
|
13
13
|
},
|
|
14
14
|
title: 'shared/XyoThemeTokenAvatarGroup',
|
|
15
|
-
} as
|
|
15
|
+
} as Meta<typeof XyoThemeTokenAvatarGroup>
|
|
16
16
|
|
|
17
|
-
const Template:
|
|
17
|
+
const Template: StoryFn<typeof XyoThemeTokenAvatarGroup> = (args) => (
|
|
18
18
|
<BrowserRouter>
|
|
19
19
|
<XyoThemeTokenAvatarGroup {...args}></XyoThemeTokenAvatarGroup>
|
|
20
20
|
</BrowserRouter>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Divider, Typography } from '@mui/material'
|
|
2
|
-
import {
|
|
2
|
+
import { Meta, StoryFn } from '@storybook/react'
|
|
3
3
|
import { FlexBoxProps, FlexCol } from '@xylabs/react-flexbox'
|
|
4
4
|
import { BrowserRouter } from 'react-router-dom'
|
|
5
5
|
|
|
@@ -53,9 +53,9 @@ const StorybookEntry = {
|
|
|
53
53
|
},
|
|
54
54
|
},
|
|
55
55
|
title: 'shared/GradientText',
|
|
56
|
-
} as
|
|
56
|
+
} as Meta<typeof GradientTextExample>
|
|
57
57
|
|
|
58
|
-
const Template:
|
|
58
|
+
const Template: StoryFn<typeof GradientTextExample> = (args) => (
|
|
59
59
|
<BrowserRouter>
|
|
60
60
|
<GradientTextExample {...args}></GradientTextExample>
|
|
61
61
|
</BrowserRouter>
|
package/src/hooks/usePromise.tsx
CHANGED