@xyo-network/react-property 2.81.9 → 2.82.0

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 (214) hide show
  1. package/dist/browser/components/Actions.d.cts +2 -1
  2. package/dist/browser/components/Actions.d.cts.map +1 -1
  3. package/dist/browser/components/Actions.d.mts +2 -1
  4. package/dist/browser/components/Actions.d.mts.map +1 -1
  5. package/dist/browser/components/Actions.d.ts +2 -1
  6. package/dist/browser/components/Actions.d.ts.map +1 -1
  7. package/dist/browser/components/ActionsMenu.d.cts +2 -1
  8. package/dist/browser/components/ActionsMenu.d.cts.map +1 -1
  9. package/dist/browser/components/ActionsMenu.d.mts +2 -1
  10. package/dist/browser/components/ActionsMenu.d.mts.map +1 -1
  11. package/dist/browser/components/ActionsMenu.d.ts +2 -1
  12. package/dist/browser/components/ActionsMenu.d.ts.map +1 -1
  13. package/dist/browser/components/ActionsProps.d.cts +1 -1
  14. package/dist/browser/components/ActionsProps.d.mts +1 -1
  15. package/dist/browser/components/ActionsProps.d.ts +1 -1
  16. package/dist/browser/components/Group.d.cts +2 -1
  17. package/dist/browser/components/Group.d.cts.map +1 -1
  18. package/dist/browser/components/Group.d.mts +2 -1
  19. package/dist/browser/components/Group.d.mts.map +1 -1
  20. package/dist/browser/components/Group.d.ts +2 -1
  21. package/dist/browser/components/Group.d.ts.map +1 -1
  22. package/dist/browser/components/IdenticonCorner.d.cts +1 -0
  23. package/dist/browser/components/IdenticonCorner.d.cts.map +1 -1
  24. package/dist/browser/components/IdenticonCorner.d.mts +1 -0
  25. package/dist/browser/components/IdenticonCorner.d.mts.map +1 -1
  26. package/dist/browser/components/IdenticonCorner.d.ts +1 -0
  27. package/dist/browser/components/IdenticonCorner.d.ts.map +1 -1
  28. package/dist/browser/components/Property.d.cts +3 -2
  29. package/dist/browser/components/Property.d.cts.map +1 -1
  30. package/dist/browser/components/Property.d.mts +3 -2
  31. package/dist/browser/components/Property.d.mts.map +1 -1
  32. package/dist/browser/components/Property.d.ts +3 -2
  33. package/dist/browser/components/Property.d.ts.map +1 -1
  34. package/dist/browser/components/Props.d.cts +2 -2
  35. package/dist/browser/components/Props.d.cts.map +1 -1
  36. package/dist/browser/components/Props.d.mts +2 -2
  37. package/dist/browser/components/Props.d.mts.map +1 -1
  38. package/dist/browser/components/Props.d.ts +2 -2
  39. package/dist/browser/components/Props.d.ts.map +1 -1
  40. package/dist/browser/components/Title.d.cts +1 -1
  41. package/dist/browser/components/Title.d.cts.map +1 -1
  42. package/dist/browser/components/Title.d.mts +1 -1
  43. package/dist/browser/components/Title.d.mts.map +1 -1
  44. package/dist/browser/components/Title.d.ts +1 -1
  45. package/dist/browser/components/Title.d.ts.map +1 -1
  46. package/dist/browser/components/Value.d.cts +2 -1
  47. package/dist/browser/components/Value.d.cts.map +1 -1
  48. package/dist/browser/components/Value.d.mts +2 -1
  49. package/dist/browser/components/Value.d.mts.map +1 -1
  50. package/dist/browser/components/Value.d.ts +2 -1
  51. package/dist/browser/components/Value.d.ts.map +1 -1
  52. package/dist/browser/components/index.d.cts +6 -6
  53. package/dist/browser/components/index.d.cts.map +1 -1
  54. package/dist/browser/components/index.d.mts +6 -6
  55. package/dist/browser/components/index.d.mts.map +1 -1
  56. package/dist/browser/components/index.d.ts +6 -6
  57. package/dist/browser/components/index.d.ts.map +1 -1
  58. package/dist/browser/index.cjs +207 -127
  59. package/dist/browser/index.cjs.map +1 -1
  60. package/dist/browser/index.d.cts +1 -1
  61. package/dist/browser/index.d.mts +1 -1
  62. package/dist/browser/index.d.ts +1 -1
  63. package/dist/browser/index.mjs +272 -0
  64. package/dist/browser/index.mjs.map +1 -0
  65. package/dist/neutral/components/Actions.d.cts +2 -1
  66. package/dist/neutral/components/Actions.d.cts.map +1 -1
  67. package/dist/neutral/components/Actions.d.mts +2 -1
  68. package/dist/neutral/components/Actions.d.mts.map +1 -1
  69. package/dist/neutral/components/Actions.d.ts +2 -1
  70. package/dist/neutral/components/Actions.d.ts.map +1 -1
  71. package/dist/neutral/components/ActionsMenu.d.cts +2 -1
  72. package/dist/neutral/components/ActionsMenu.d.cts.map +1 -1
  73. package/dist/neutral/components/ActionsMenu.d.mts +2 -1
  74. package/dist/neutral/components/ActionsMenu.d.mts.map +1 -1
  75. package/dist/neutral/components/ActionsMenu.d.ts +2 -1
  76. package/dist/neutral/components/ActionsMenu.d.ts.map +1 -1
  77. package/dist/neutral/components/ActionsProps.d.cts +1 -1
  78. package/dist/neutral/components/ActionsProps.d.mts +1 -1
  79. package/dist/neutral/components/ActionsProps.d.ts +1 -1
  80. package/dist/neutral/components/Group.d.cts +2 -1
  81. package/dist/neutral/components/Group.d.cts.map +1 -1
  82. package/dist/neutral/components/Group.d.mts +2 -1
  83. package/dist/neutral/components/Group.d.mts.map +1 -1
  84. package/dist/neutral/components/Group.d.ts +2 -1
  85. package/dist/neutral/components/Group.d.ts.map +1 -1
  86. package/dist/neutral/components/IdenticonCorner.d.cts +1 -0
  87. package/dist/neutral/components/IdenticonCorner.d.cts.map +1 -1
  88. package/dist/neutral/components/IdenticonCorner.d.mts +1 -0
  89. package/dist/neutral/components/IdenticonCorner.d.mts.map +1 -1
  90. package/dist/neutral/components/IdenticonCorner.d.ts +1 -0
  91. package/dist/neutral/components/IdenticonCorner.d.ts.map +1 -1
  92. package/dist/neutral/components/Property.d.cts +3 -2
  93. package/dist/neutral/components/Property.d.cts.map +1 -1
  94. package/dist/neutral/components/Property.d.mts +3 -2
  95. package/dist/neutral/components/Property.d.mts.map +1 -1
  96. package/dist/neutral/components/Property.d.ts +3 -2
  97. package/dist/neutral/components/Property.d.ts.map +1 -1
  98. package/dist/neutral/components/Props.d.cts +2 -2
  99. package/dist/neutral/components/Props.d.cts.map +1 -1
  100. package/dist/neutral/components/Props.d.mts +2 -2
  101. package/dist/neutral/components/Props.d.mts.map +1 -1
  102. package/dist/neutral/components/Props.d.ts +2 -2
  103. package/dist/neutral/components/Props.d.ts.map +1 -1
  104. package/dist/neutral/components/Title.d.cts +1 -1
  105. package/dist/neutral/components/Title.d.cts.map +1 -1
  106. package/dist/neutral/components/Title.d.mts +1 -1
  107. package/dist/neutral/components/Title.d.mts.map +1 -1
  108. package/dist/neutral/components/Title.d.ts +1 -1
  109. package/dist/neutral/components/Title.d.ts.map +1 -1
  110. package/dist/neutral/components/Value.d.cts +2 -1
  111. package/dist/neutral/components/Value.d.cts.map +1 -1
  112. package/dist/neutral/components/Value.d.mts +2 -1
  113. package/dist/neutral/components/Value.d.mts.map +1 -1
  114. package/dist/neutral/components/Value.d.ts +2 -1
  115. package/dist/neutral/components/Value.d.ts.map +1 -1
  116. package/dist/neutral/components/index.d.cts +6 -6
  117. package/dist/neutral/components/index.d.cts.map +1 -1
  118. package/dist/neutral/components/index.d.mts +6 -6
  119. package/dist/neutral/components/index.d.mts.map +1 -1
  120. package/dist/neutral/components/index.d.ts +6 -6
  121. package/dist/neutral/components/index.d.ts.map +1 -1
  122. package/dist/neutral/index.cjs +207 -127
  123. package/dist/neutral/index.cjs.map +1 -1
  124. package/dist/neutral/index.d.cts +1 -1
  125. package/dist/neutral/index.d.mts +1 -1
  126. package/dist/neutral/index.d.ts +1 -1
  127. package/dist/neutral/index.mjs +272 -0
  128. package/dist/neutral/index.mjs.map +1 -0
  129. package/dist/node/components/Actions.d.cts +2 -1
  130. package/dist/node/components/Actions.d.cts.map +1 -1
  131. package/dist/node/components/Actions.d.mts +2 -1
  132. package/dist/node/components/Actions.d.mts.map +1 -1
  133. package/dist/node/components/Actions.d.ts +2 -1
  134. package/dist/node/components/Actions.d.ts.map +1 -1
  135. package/dist/node/components/ActionsMenu.d.cts +2 -1
  136. package/dist/node/components/ActionsMenu.d.cts.map +1 -1
  137. package/dist/node/components/ActionsMenu.d.mts +2 -1
  138. package/dist/node/components/ActionsMenu.d.mts.map +1 -1
  139. package/dist/node/components/ActionsMenu.d.ts +2 -1
  140. package/dist/node/components/ActionsMenu.d.ts.map +1 -1
  141. package/dist/node/components/ActionsProps.d.cts +1 -1
  142. package/dist/node/components/ActionsProps.d.mts +1 -1
  143. package/dist/node/components/ActionsProps.d.ts +1 -1
  144. package/dist/node/components/Group.d.cts +2 -1
  145. package/dist/node/components/Group.d.cts.map +1 -1
  146. package/dist/node/components/Group.d.mts +2 -1
  147. package/dist/node/components/Group.d.mts.map +1 -1
  148. package/dist/node/components/Group.d.ts +2 -1
  149. package/dist/node/components/Group.d.ts.map +1 -1
  150. package/dist/node/components/IdenticonCorner.d.cts +1 -0
  151. package/dist/node/components/IdenticonCorner.d.cts.map +1 -1
  152. package/dist/node/components/IdenticonCorner.d.mts +1 -0
  153. package/dist/node/components/IdenticonCorner.d.mts.map +1 -1
  154. package/dist/node/components/IdenticonCorner.d.ts +1 -0
  155. package/dist/node/components/IdenticonCorner.d.ts.map +1 -1
  156. package/dist/node/components/Property.d.cts +3 -2
  157. package/dist/node/components/Property.d.cts.map +1 -1
  158. package/dist/node/components/Property.d.mts +3 -2
  159. package/dist/node/components/Property.d.mts.map +1 -1
  160. package/dist/node/components/Property.d.ts +3 -2
  161. package/dist/node/components/Property.d.ts.map +1 -1
  162. package/dist/node/components/Props.d.cts +2 -2
  163. package/dist/node/components/Props.d.cts.map +1 -1
  164. package/dist/node/components/Props.d.mts +2 -2
  165. package/dist/node/components/Props.d.mts.map +1 -1
  166. package/dist/node/components/Props.d.ts +2 -2
  167. package/dist/node/components/Props.d.ts.map +1 -1
  168. package/dist/node/components/Title.d.cts +1 -1
  169. package/dist/node/components/Title.d.cts.map +1 -1
  170. package/dist/node/components/Title.d.mts +1 -1
  171. package/dist/node/components/Title.d.mts.map +1 -1
  172. package/dist/node/components/Title.d.ts +1 -1
  173. package/dist/node/components/Title.d.ts.map +1 -1
  174. package/dist/node/components/Value.d.cts +2 -1
  175. package/dist/node/components/Value.d.cts.map +1 -1
  176. package/dist/node/components/Value.d.mts +2 -1
  177. package/dist/node/components/Value.d.mts.map +1 -1
  178. package/dist/node/components/Value.d.ts +2 -1
  179. package/dist/node/components/Value.d.ts.map +1 -1
  180. package/dist/node/components/index.d.cts +6 -6
  181. package/dist/node/components/index.d.cts.map +1 -1
  182. package/dist/node/components/index.d.mts +6 -6
  183. package/dist/node/components/index.d.mts.map +1 -1
  184. package/dist/node/components/index.d.ts +6 -6
  185. package/dist/node/components/index.d.ts.map +1 -1
  186. package/dist/node/index.cjs +208 -128
  187. package/dist/node/index.cjs.map +1 -1
  188. package/dist/node/index.d.cts +1 -1
  189. package/dist/node/index.d.mts +1 -1
  190. package/dist/node/index.d.ts +1 -1
  191. package/dist/node/index.mjs +274 -0
  192. package/dist/node/index.mjs.map +1 -0
  193. package/package.json +14 -14
  194. package/src/components/Actions.tsx +32 -25
  195. package/src/components/ActionsMenu.tsx +25 -23
  196. package/src/components/ActionsProps.ts +1 -1
  197. package/src/components/Group.tsx +18 -14
  198. package/src/components/IdenticonCorner.tsx +1 -1
  199. package/src/components/Property.tsx +25 -23
  200. package/src/components/PropertyBox.stories.tsx +3 -3
  201. package/src/components/PropertyPaper.stories.tsx +3 -3
  202. package/src/components/{Props.tsx → Props.ts} +2 -2
  203. package/src/components/Title.stories.tsx +3 -3
  204. package/src/components/Title.tsx +11 -9
  205. package/src/components/Value.stories.tsx +3 -3
  206. package/src/components/Value.tsx +14 -11
  207. package/src/components/index.ts +6 -6
  208. package/src/index.ts +1 -1
  209. package/dist/browser/index.js +0 -200
  210. package/dist/browser/index.js.map +0 -1
  211. package/dist/neutral/index.js +0 -200
  212. package/dist/neutral/index.js.map +0 -1
  213. package/dist/node/index.js +0 -202
  214. package/dist/node/index.js.map +0 -1
@@ -1,13 +1,13 @@
1
1
  import { CircularProgress, Paper, TypographyVariant } from '@mui/material'
2
2
  import { FlexRow } from '@xylabs/react-flexbox'
3
3
  import { SizeProp } from '@xyo-network/react-shared'
4
- import { forwardRef } from 'react'
4
+ import React, { forwardRef } from 'react'
5
5
 
6
- import { PropertyActionsMenu } from './ActionsMenu.js'
7
- import { IdenticonCorner } from './IdenticonCorner.js'
8
- import { PropertyBoxProps, PropertyPaperProps, PropertyProps } from './Props.js'
9
- import { PropertyTitle } from './Title.js'
10
- import { PropertyValue } from './Value.js'
6
+ import { PropertyActionsMenu } from './ActionsMenu.tsx'
7
+ import { IdenticonCorner } from './IdenticonCorner.tsx'
8
+ import { PropertyBoxProps, PropertyPaperProps, PropertyProps } from './Props.ts'
9
+ import { PropertyTitle } from './Title.tsx'
10
+ import { PropertyValue } from './Value.tsx'
11
11
 
12
12
  const PropertyBox = forwardRef<HTMLDivElement, PropertyBoxProps>(
13
13
  ({ titleProps, title, value, children, size = 'medium', tip, actions, required, badge = false, ...props }, ref) => {
@@ -25,15 +25,17 @@ const PropertyBox = forwardRef<HTMLDivElement, PropertyBoxProps>(
25
25
 
26
26
  return (
27
27
  <FlexRow ref={ref} flexDirection="column" minWidth={0} alignItems="stretch" overflow="hidden" {...props}>
28
- {title === undefined ? null : (
29
- <PropertyTitle
30
- tip={tip}
31
- title={required ? `${title}*` : title}
32
- size={size}
33
- more={<PropertyActionsMenu actions={actions} />}
34
- {...titleProps}
35
- />
36
- )}
28
+ {title === undefined
29
+ ? null
30
+ : (
31
+ <PropertyTitle
32
+ tip={tip}
33
+ title={required ? `${title}*` : title}
34
+ size={size}
35
+ more={<PropertyActionsMenu actions={actions} />}
36
+ {...titleProps}
37
+ />
38
+ )}
37
39
  <FlexRow
38
40
  pl={1}
39
41
  columnGap={1}
@@ -41,14 +43,14 @@ const PropertyBox = forwardRef<HTMLDivElement, PropertyBoxProps>(
41
43
  overflow="hidden"
42
44
  height={sizeValueHeight[size]}
43
45
  >
44
- {(children ?? value === undefined) ?
45
- <CircularProgress size={16} />
46
- : <PropertyValue value={value} typographyVariant={sizeVariants[size]} />}
47
- {value === undefined ?
48
- null
49
- : badge ?
50
- <IdenticonCorner value={value} />
51
- : null}
46
+ {(children ?? value === undefined)
47
+ ? <CircularProgress size={16} />
48
+ : <PropertyValue value={value} typographyVariant={sizeVariants[size]} />}
49
+ {value === undefined
50
+ ? null
51
+ : badge
52
+ ? <IdenticonCorner value={value} />
53
+ : null}
52
54
  </FlexRow>
53
55
  </FlexRow>
54
56
  )
@@ -2,9 +2,10 @@ import { Replay as ReplayIcon } from '@mui/icons-material'
2
2
  import { TextField } from '@mui/material'
3
3
  import { Meta, StoryFn } from '@storybook/react'
4
4
  import { FlexCol, FlexRow } from '@xylabs/react-flexbox'
5
+ import React from 'react'
5
6
 
6
- import { Property } from './Property.js'
7
- import { PropertyProps } from './Props.js'
7
+ import { Property } from './Property.tsx'
8
+ import { PropertyProps } from './Props.ts'
8
9
 
9
10
  const StorybookEntry = {
10
11
  argTypes: {},
@@ -173,5 +174,4 @@ export {
173
174
  WithUndefinedData,
174
175
  }
175
176
 
176
- // eslint-disable-next-line import/no-default-export
177
177
  export default StorybookEntry
@@ -2,9 +2,10 @@ import { Replay as ReplayIcon } from '@mui/icons-material'
2
2
  import { TextField } from '@mui/material'
3
3
  import { Meta, StoryFn } from '@storybook/react'
4
4
  import { FlexCol, FlexRow } from '@xylabs/react-flexbox'
5
+ import React from 'react'
5
6
 
6
- import { Property } from './Property.js'
7
- import { PropertyPaperProps, PropertyProps } from './Props.js'
7
+ import { Property } from './Property.tsx'
8
+ import { PropertyPaperProps, PropertyProps } from './Props.ts'
8
9
 
9
10
  const StorybookEntry = {
10
11
  argTypes: {},
@@ -191,5 +192,4 @@ export {
191
192
  WithUndefinedData,
192
193
  }
193
194
 
194
- // eslint-disable-next-line import/no-default-export
195
195
  export default StorybookEntry
@@ -3,8 +3,8 @@ import { FlexBoxProps } from '@xylabs/react-flexbox'
3
3
  import { SizeProp } from '@xyo-network/react-shared'
4
4
  import { ReactNode } from 'react'
5
5
 
6
- import { PropertyAction } from './Action.js'
7
- import { PropertyTitleProps } from './Title.js'
6
+ import { PropertyAction } from './Action.ts'
7
+ import { PropertyTitleProps } from './Title.tsx'
8
8
 
9
9
  export interface PropertyBaseProps {
10
10
  paper?: boolean
@@ -1,6 +1,7 @@
1
1
  import { Meta, StoryFn } from '@storybook/react'
2
+ import React from 'react'
2
3
 
3
- import { PropertyTitle } from './Title.js'
4
+ import { PropertyTitle } from './Title.tsx'
4
5
 
5
6
  const StorybookEntry = {
6
7
  argTypes: {},
@@ -13,7 +14,7 @@ const StorybookEntry = {
13
14
  title: 'property/Title',
14
15
  } as Meta<typeof PropertyTitle>
15
16
 
16
- const Template: StoryFn<typeof PropertyTitle> = (args) => <PropertyTitle {...args}></PropertyTitle>
17
+ const Template: StoryFn<typeof PropertyTitle> = args => <PropertyTitle {...args}></PropertyTitle>
17
18
 
18
19
  const Default = Template.bind({})
19
20
  Default.args = {}
@@ -28,5 +29,4 @@ WithDataAndActions.args = { title: 'Sample Title' }
28
29
 
29
30
  export { Default, WithData, WithDataAndActions }
30
31
 
31
- // eslint-disable-next-line import/no-default-export
32
32
  export default StorybookEntry
@@ -2,7 +2,7 @@ import { darken, lighten, Typography, TypographyVariant, useTheme } from '@mui/m
2
2
  import { FlexBoxProps, FlexRow } from '@xylabs/react-flexbox'
3
3
  import { QuickTipButton } from '@xylabs/react-quick-tip-button'
4
4
  import { SizeProp } from '@xyo-network/react-shared'
5
- import { ReactNode } from 'react'
5
+ import React, { ReactNode } from 'react'
6
6
 
7
7
  export type TitleSizeProp = SizeProp | 'full'
8
8
 
@@ -43,9 +43,9 @@ export const PropertyTitle: React.FC<PropertyTitleProps> = ({ elevation = 1, siz
43
43
  return (
44
44
  <FlexRow
45
45
  bgcolor={
46
- theme.palette.mode === 'dark' ?
47
- lighten(theme.palette.background.paper, 0.05 * elevation)
48
- : darken(theme.palette.background.paper, 0.025 * elevation)
46
+ theme.palette.mode === 'dark'
47
+ ? lighten(theme.palette.background.paper, 0.05 * elevation)
48
+ : darken(theme.palette.background.paper, 0.025 * elevation)
49
49
  }
50
50
  alignItems="center"
51
51
  height={sizeTitleHeight[size]}
@@ -58,11 +58,13 @@ export const PropertyTitle: React.FC<PropertyTitleProps> = ({ elevation = 1, siz
58
58
  <strong>{title}</strong>
59
59
  </small>
60
60
  </Typography>
61
- {tip ?
62
- <QuickTipButton style={{ fontSize: quickTipSize }} color="inherit" title={title ?? ''}>
63
- {tip}
64
- </QuickTipButton>
65
- : null}
61
+ {tip
62
+ ? (
63
+ <QuickTipButton style={{ fontSize: quickTipSize }} color="inherit" title={title ?? ''}>
64
+ {tip}
65
+ </QuickTipButton>
66
+ )
67
+ : null}
66
68
  </FlexRow>
67
69
  {more}
68
70
  </FlexRow>
@@ -1,6 +1,7 @@
1
1
  import { Meta, StoryFn } from '@storybook/react'
2
+ import React from 'react'
2
3
 
3
- import { PropertyValue } from './Value.js'
4
+ import { PropertyValue } from './Value.tsx'
4
5
 
5
6
  const StorybookEntry = {
6
7
  argTypes: {},
@@ -13,7 +14,7 @@ const StorybookEntry = {
13
14
  title: 'property/Value',
14
15
  } as Meta<typeof PropertyValue>
15
16
 
16
- const Template: StoryFn<typeof PropertyValue> = (args) => <PropertyValue {...args}></PropertyValue>
17
+ const Template: StoryFn<typeof PropertyValue> = args => <PropertyValue {...args}></PropertyValue>
17
18
 
18
19
  const Default = Template.bind({})
19
20
  Default.args = {}
@@ -26,5 +27,4 @@ WithData.args = {
26
27
 
27
28
  export { Default, WithData }
28
29
 
29
- // eslint-disable-next-line import/no-default-export
30
30
  export default StorybookEntry
@@ -1,6 +1,7 @@
1
+ // eslint-disable-next-line import/no-internal-modules
1
2
  import { Variant } from '@mui/material/styles/createTypography.js'
2
3
  import { EllipsizeBox, EllipsizeBoxProps } from '@xyo-network/react-shared'
3
- import { forwardRef } from 'react'
4
+ import React, { forwardRef } from 'react'
4
5
 
5
6
  export interface PropertyValueProps extends Omit<EllipsizeBoxProps, 'ref'> {
6
7
  typographyVariant?: Variant
@@ -8,16 +9,18 @@ export interface PropertyValueProps extends Omit<EllipsizeBoxProps, 'ref'> {
8
9
  }
9
10
 
10
11
  export const PropertyValue = forwardRef<HTMLDivElement, PropertyValueProps>(({ typographyVariant = 'body1', value, ...props }, ref) => {
11
- return value === undefined ? null : (
12
- <EllipsizeBox
13
- typographyProps={{ component: undefined, title: value?.toString(), variant: typographyVariant }}
14
- width="100%"
15
- ref={ref}
16
- {...props}
17
- >
18
- {value}
19
- </EllipsizeBox>
20
- )
12
+ return value === undefined
13
+ ? null
14
+ : (
15
+ <EllipsizeBox
16
+ typographyProps={{ component: undefined, title: value?.toString(), variant: typographyVariant }}
17
+ width="100%"
18
+ ref={ref}
19
+ {...props}
20
+ >
21
+ {value}
22
+ </EllipsizeBox>
23
+ )
21
24
  })
22
25
 
23
26
  PropertyValue.displayName = 'PropertyValue'
@@ -1,6 +1,6 @@
1
- export * from './Action.js'
2
- export * from './Group.js'
3
- export * from './Property.js'
4
- export * from './Props.js'
5
- export * from './Title.js'
6
- export * from './Value.js'
1
+ export * from './Action.ts'
2
+ export * from './Group.tsx'
3
+ export * from './Property.tsx'
4
+ export * from './Props.ts'
5
+ export * from './Title.tsx'
6
+ export * from './Value.tsx'
package/src/index.ts CHANGED
@@ -1 +1 @@
1
- export * from './components/index.js'
1
+ export * from './components/index.ts'
@@ -1,200 +0,0 @@
1
- // src/components/Group.tsx
2
- import { Paper, useTheme as useTheme2 } from "@mui/material";
3
- import { FlexCol, FlexGrowRow, FlexRow as FlexRow2 } from "@xylabs/react-flexbox";
4
- import { typeOf } from "@xyo-network/typeof";
5
-
6
- // src/components/Title.tsx
7
- import { darken, lighten, Typography, useTheme } from "@mui/material";
8
- import { FlexRow } from "@xylabs/react-flexbox";
9
- import { QuickTipButton } from "@xylabs/react-quick-tip-button";
10
- import { jsx, jsxs } from "react/jsx-runtime";
11
- var PropertyTitle = ({ elevation = 1, size = "medium", tip, more, title, ...props }) => {
12
- const sizeVariants = {
13
- full: "caption",
14
- large: "caption",
15
- medium: "caption",
16
- small: "caption"
17
- };
18
- const sizeTitleHeight = {
19
- full: void 0,
20
- large: 32,
21
- medium: 20,
22
- small: 16
23
- };
24
- const sizeFontSize = {
25
- full: 16,
26
- large: 16,
27
- medium: 14,
28
- small: 10
29
- };
30
- const quickTipSize = sizeFontSize[size] < 16 ? sizeFontSize[size] : 16;
31
- const theme = useTheme();
32
- return /* @__PURE__ */ jsxs(
33
- FlexRow,
34
- {
35
- bgcolor: theme.palette.mode === "dark" ? lighten(theme.palette.background.paper, 0.05 * elevation) : darken(theme.palette.background.paper, 0.025 * elevation),
36
- alignItems: "center",
37
- height: sizeTitleHeight[size],
38
- justifyContent: "space-between",
39
- ...props,
40
- children: [
41
- /* @__PURE__ */ jsxs(FlexRow, { paddingX: 1, paddingY: 0.5, children: [
42
- /* @__PURE__ */ jsx(Typography, { fontWeight: 500, noWrap: true, variant: sizeVariants[size], fontSize: sizeFontSize[size], children: /* @__PURE__ */ jsx("small", { children: /* @__PURE__ */ jsx("strong", { children: title }) }) }),
43
- tip ? /* @__PURE__ */ jsx(QuickTipButton, { style: { fontSize: quickTipSize }, color: "inherit", title: title ?? "", children: tip }) : null
44
- ] }),
45
- more
46
- ]
47
- }
48
- );
49
- };
50
-
51
- // src/components/Group.tsx
52
- import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
53
- var PropertyGroupBox = ({ titleProps, children, title, tip, ...props }) => {
54
- const theme = useTheme2();
55
- const childrenArray = typeOf(children) === "array" ? children : void 0;
56
- return /* @__PURE__ */ jsx2(FlexCol, { alignItems: "stretch", overflow: "hidden", ...props, children: /* @__PURE__ */ jsxs2(FlexRow2, { overflow: "hidden", justifyContent: "stretch", alignItems: "stretch", children: [
57
- /* @__PURE__ */ jsx2(PropertyTitle, { alignItems: "flex-start", size: "full", title, tip, ...titleProps }),
58
- childrenArray ? /* @__PURE__ */ jsx2(FlexGrowRow, { children: childrenArray?.map((child, index) => {
59
- return child ? /* @__PURE__ */ jsx2(FlexGrowRow, { borderLeft: 1, borderColor: theme.palette.divider, children: child }, index) : null;
60
- }) }) : /* @__PURE__ */ jsx2(FlexGrowRow, { overflow: "hidden", children })
61
- ] }) });
62
- };
63
- var PropertyGroupPaper = ({ style, variant, elevation, square, ...props }) => {
64
- return /* @__PURE__ */ jsx2(Paper, { style: { minWidth: 0, overflow: "hidden", ...style }, variant, elevation, square, children: /* @__PURE__ */ jsx2(PropertyGroupBox, { ...props, paper: false }) });
65
- };
66
- var PropertyGroup = (props) => {
67
- return props.paper ? /* @__PURE__ */ jsx2(PropertyGroupPaper, { ...props }) : /* @__PURE__ */ jsx2(PropertyGroupBox, { ...props });
68
- };
69
-
70
- // src/components/Property.tsx
71
- import { CircularProgress, Paper as Paper2 } from "@mui/material";
72
- import { FlexRow as FlexRow5 } from "@xylabs/react-flexbox";
73
- import { forwardRef as forwardRef2 } from "react";
74
-
75
- // src/components/ActionsMenu.tsx
76
- import { MoreHoriz as MoreHorizIcon } from "@mui/icons-material";
77
- import { IconButton, Menu, MenuItem } from "@mui/material";
78
- import { FlexRow as FlexRow3 } from "@xylabs/react-flexbox";
79
- import { useState } from "react";
80
- import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
81
- var PropertyActionsMenu = ({ actions, ...props }) => {
82
- const [anchorEl, setAnchorEl] = useState(null);
83
- const open = !!anchorEl;
84
- const handleClick = (event) => {
85
- setAnchorEl(event.currentTarget);
86
- };
87
- const handleClose = () => {
88
- setAnchorEl(null);
89
- };
90
- return actions && actions?.length > 0 ? /* @__PURE__ */ jsxs3(FlexRow3, { ...props, children: [
91
- /* @__PURE__ */ jsx3(IconButton, { size: "small", color: "inherit", onClick: handleClick, children: /* @__PURE__ */ jsx3(MoreHorizIcon, { fontSize: "inherit" }) }),
92
- /* @__PURE__ */ jsx3(Menu, { anchorEl, open, onClose: handleClose, children: actions?.map((action) => {
93
- return /* @__PURE__ */ jsx3(
94
- MenuItem,
95
- {
96
- onClick: () => {
97
- action?.onClick?.();
98
- handleClose();
99
- },
100
- children: action.name
101
- },
102
- action.name
103
- );
104
- }) })
105
- ] }) : null;
106
- };
107
-
108
- // src/components/IdenticonCorner.tsx
109
- import { useTheme as useTheme3 } from "@mui/material";
110
- import { FlexRow as FlexRow4 } from "@xylabs/react-flexbox";
111
- import { Identicon } from "@xylabs/react-identicon";
112
- import { useEffect, useRef, useState as useState2 } from "react";
113
- import { jsx as jsx4 } from "react/jsx-runtime";
114
- var IdenticonCorner = ({ value, ...props }) => {
115
- const theme = useTheme3();
116
- const [parentHeight, setParentHeight] = useState2();
117
- const ref = useRef(null);
118
- useEffect(() => {
119
- setParentHeight(ref.current?.parentElement?.parentElement?.clientHeight);
120
- }, []);
121
- const calculatedHeight = parentHeight ?? 0;
122
- return /* @__PURE__ */ jsx4(FlexRow4, { alignItems: "flex-start", height: "100%", children: /* @__PURE__ */ jsx4(FlexRow4, { background: true, height: calculatedHeight, width: calculatedHeight, borderLeft: `1px solid ${theme.palette.divider}`, children: /* @__PURE__ */ jsx4("div", { ref, children: /* @__PURE__ */ jsx4(Identicon, { size: calculatedHeight * 0.6, value: `${value}`, sx: { padding: `${calculatedHeight * 0.2}px` }, ...props }) }) }) });
123
- };
124
-
125
- // src/components/Value.tsx
126
- import { EllipsizeBox } from "@xyo-network/react-shared";
127
- import { forwardRef } from "react";
128
- import { jsx as jsx5 } from "react/jsx-runtime";
129
- var PropertyValue = forwardRef(({ typographyVariant = "body1", value, ...props }, ref) => {
130
- return value === void 0 ? null : /* @__PURE__ */ jsx5(
131
- EllipsizeBox,
132
- {
133
- typographyProps: { component: void 0, title: value?.toString(), variant: typographyVariant },
134
- width: "100%",
135
- ref,
136
- ...props,
137
- children: value
138
- }
139
- );
140
- });
141
- PropertyValue.displayName = "PropertyValue";
142
-
143
- // src/components/Property.tsx
144
- import { jsx as jsx6, jsxs as jsxs4 } from "react/jsx-runtime";
145
- var PropertyBox = forwardRef2(
146
- ({ titleProps, title, value, children, size = "medium", tip, actions, required, badge = false, ...props }, ref) => {
147
- const sizeValueHeight = {
148
- large: 48,
149
- medium: 36,
150
- small: 24
151
- };
152
- const sizeVariants = {
153
- large: "h6",
154
- medium: "body1",
155
- small: "body2"
156
- };
157
- return /* @__PURE__ */ jsxs4(FlexRow5, { ref, flexDirection: "column", minWidth: 0, alignItems: "stretch", overflow: "hidden", ...props, children: [
158
- title === void 0 ? null : /* @__PURE__ */ jsx6(
159
- PropertyTitle,
160
- {
161
- tip,
162
- title: required ? `${title}*` : title,
163
- size,
164
- more: /* @__PURE__ */ jsx6(PropertyActionsMenu, { actions }),
165
- ...titleProps
166
- }
167
- ),
168
- /* @__PURE__ */ jsxs4(
169
- FlexRow5,
170
- {
171
- pl: 1,
172
- columnGap: 1,
173
- justifyContent: value === void 0 ? "center" : "space-between",
174
- overflow: "hidden",
175
- height: sizeValueHeight[size],
176
- children: [
177
- children ?? value === void 0 ? /* @__PURE__ */ jsx6(CircularProgress, { size: 16 }) : /* @__PURE__ */ jsx6(PropertyValue, { value, typographyVariant: sizeVariants[size] }),
178
- value === void 0 ? null : badge ? /* @__PURE__ */ jsx6(IdenticonCorner, { value }) : null
179
- ]
180
- }
181
- )
182
- ] });
183
- }
184
- );
185
- PropertyBox.displayName = "PropertyBox";
186
- var PropertyPaper = forwardRef2(({ style, variant, elevation = 2, square, ...props }, ref) => {
187
- return /* @__PURE__ */ jsx6(Paper2, { ref, style: { minWidth: 0, overflow: "hidden", ...style }, variant, elevation, square, children: /* @__PURE__ */ jsx6(PropertyBox, { ...props, paper: false }) });
188
- });
189
- PropertyPaper.displayName = "PropertyPaper";
190
- var Property = forwardRef2((props, ref) => {
191
- return props.paper ? /* @__PURE__ */ jsx6(PropertyPaper, { ref, ...props }) : /* @__PURE__ */ jsx6(PropertyBox, { ref, ...props });
192
- });
193
- Property.displayName = "Property";
194
- export {
195
- Property,
196
- PropertyGroup,
197
- PropertyTitle,
198
- PropertyValue
199
- };
200
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/components/Group.tsx","../../src/components/Title.tsx","../../src/components/Property.tsx","../../src/components/ActionsMenu.tsx","../../src/components/IdenticonCorner.tsx","../../src/components/Value.tsx"],"sourcesContent":["import { Paper, useTheme } from '@mui/material'\nimport { FlexCol, FlexGrowRow, FlexRow } from '@xylabs/react-flexbox'\nimport { typeOf } from '@xyo-network/typeof'\nimport { ReactElement } from 'react'\n\nimport { PropertyGroupBoxProps, PropertyGroupPaperProps, PropertyGroupProps } from './Props.js'\nimport { PropertyTitle } from './Title.js'\n\nconst PropertyGroupBox: React.FC<PropertyGroupBoxProps> = ({ titleProps, children, title, tip, ...props }) => {\n const theme = useTheme()\n const childrenArray = typeOf(children) === 'array' ? (children as ReactElement[]) : undefined\n return (\n <FlexCol alignItems=\"stretch\" overflow=\"hidden\" {...props}>\n <FlexRow overflow=\"hidden\" justifyContent=\"stretch\" alignItems=\"stretch\">\n <PropertyTitle alignItems=\"flex-start\" size=\"full\" title={title} tip={tip} {...titleProps} />\n {childrenArray ?\n <FlexGrowRow>\n {childrenArray?.map((child, index) => {\n return child ?\n <FlexGrowRow key={index} borderLeft={1} borderColor={theme.palette.divider}>\n {child}\n </FlexGrowRow>\n : null\n })}\n </FlexGrowRow>\n : <FlexGrowRow overflow=\"hidden\">{children}</FlexGrowRow>}\n </FlexRow>\n </FlexCol>\n )\n}\n\nconst PropertyGroupPaper: React.FC<PropertyGroupPaperProps> = ({ style, variant, elevation, square, ...props }) => {\n return (\n <Paper style={{ minWidth: 0, overflow: 'hidden', ...style }} variant={variant} elevation={elevation} square={square}>\n <PropertyGroupBox {...props} paper={false} />\n </Paper>\n )\n}\n\nexport const PropertyGroup: React.FC<PropertyGroupProps> = (props) => {\n return props.paper ? <PropertyGroupPaper {...props} /> : <PropertyGroupBox {...props} />\n}\n","import { darken, lighten, Typography, TypographyVariant, useTheme } from '@mui/material'\nimport { FlexBoxProps, FlexRow } from '@xylabs/react-flexbox'\nimport { QuickTipButton } from '@xylabs/react-quick-tip-button'\nimport { SizeProp } from '@xyo-network/react-shared'\nimport { ReactNode } from 'react'\n\nexport type TitleSizeProp = SizeProp | 'full'\n\nexport interface PropertyTitleProps extends FlexBoxProps {\n elevation?: number\n more?: ReactNode\n size?: TitleSizeProp\n tip?: ReactNode\n title?: string\n}\n\nexport const PropertyTitle: React.FC<PropertyTitleProps> = ({ elevation = 1, size = 'medium', tip, more, title, ...props }) => {\n const sizeVariants: Record<TitleSizeProp, TypographyVariant> = {\n full: 'caption',\n large: 'caption',\n medium: 'caption',\n small: 'caption',\n }\n\n const sizeTitleHeight: Record<TitleSizeProp, number | undefined> = {\n full: undefined,\n large: 32,\n medium: 20,\n small: 16,\n }\n\n const sizeFontSize: Record<TitleSizeProp, number> = {\n full: 16,\n large: 16,\n medium: 14,\n small: 10,\n }\n\n const quickTipSize = sizeFontSize[size] < 16 ? sizeFontSize[size] : 16\n\n const theme = useTheme()\n\n return (\n <FlexRow\n bgcolor={\n theme.palette.mode === 'dark' ?\n lighten(theme.palette.background.paper, 0.05 * elevation)\n : darken(theme.palette.background.paper, 0.025 * elevation)\n }\n alignItems=\"center\"\n height={sizeTitleHeight[size]}\n justifyContent=\"space-between\"\n {...props}\n >\n <FlexRow paddingX={1} paddingY={0.5}>\n <Typography fontWeight={500} noWrap variant={sizeVariants[size]} fontSize={sizeFontSize[size]}>\n <small>\n <strong>{title}</strong>\n </small>\n </Typography>\n {tip ?\n <QuickTipButton style={{ fontSize: quickTipSize }} color=\"inherit\" title={title ?? ''}>\n {tip}\n </QuickTipButton>\n : null}\n </FlexRow>\n {more}\n </FlexRow>\n )\n}\n","import { CircularProgress, Paper, TypographyVariant } from '@mui/material'\nimport { FlexRow } from '@xylabs/react-flexbox'\nimport { SizeProp } from '@xyo-network/react-shared'\nimport { forwardRef } from 'react'\n\nimport { PropertyActionsMenu } from './ActionsMenu.js'\nimport { IdenticonCorner } from './IdenticonCorner.js'\nimport { PropertyBoxProps, PropertyPaperProps, PropertyProps } from './Props.js'\nimport { PropertyTitle } from './Title.js'\nimport { PropertyValue } from './Value.js'\n\nconst PropertyBox = forwardRef<HTMLDivElement, PropertyBoxProps>(\n ({ titleProps, title, value, children, size = 'medium', tip, actions, required, badge = false, ...props }, ref) => {\n const sizeValueHeight: Record<SizeProp, number> = {\n large: 48,\n medium: 36,\n small: 24,\n }\n\n const sizeVariants: Record<SizeProp, TypographyVariant> = {\n large: 'h6',\n medium: 'body1',\n small: 'body2',\n }\n\n return (\n <FlexRow ref={ref} flexDirection=\"column\" minWidth={0} alignItems=\"stretch\" overflow=\"hidden\" {...props}>\n {title === undefined ? null : (\n <PropertyTitle\n tip={tip}\n title={required ? `${title}*` : title}\n size={size}\n more={<PropertyActionsMenu actions={actions} />}\n {...titleProps}\n />\n )}\n <FlexRow\n pl={1}\n columnGap={1}\n justifyContent={value === undefined ? 'center' : 'space-between'}\n overflow=\"hidden\"\n height={sizeValueHeight[size]}\n >\n {(children ?? value === undefined) ?\n <CircularProgress size={16} />\n : <PropertyValue value={value} typographyVariant={sizeVariants[size]} />}\n {value === undefined ?\n null\n : badge ?\n <IdenticonCorner value={value} />\n : null}\n </FlexRow>\n </FlexRow>\n )\n },\n)\nPropertyBox.displayName = 'PropertyBox'\n\nconst PropertyPaper = forwardRef<HTMLDivElement, PropertyPaperProps>(({ style, variant, elevation = 2, square, ...props }, ref) => {\n return (\n <Paper ref={ref} style={{ minWidth: 0, overflow: 'hidden', ...style }} variant={variant} elevation={elevation} square={square}>\n <PropertyBox {...props} paper={false} />\n </Paper>\n )\n})\nPropertyPaper.displayName = 'PropertyPaper'\n\nexport const Property = forwardRef<HTMLDivElement, PropertyProps>((props, ref) => {\n return props.paper ? <PropertyPaper ref={ref} {...props} /> : <PropertyBox ref={ref} {...props} />\n})\nProperty.displayName = 'Property'\n","import { MoreHoriz as MoreHorizIcon } from '@mui/icons-material'\nimport { IconButton, Menu, MenuItem } from '@mui/material'\nimport { FlexRow } from '@xylabs/react-flexbox'\nimport { useState } from 'react'\n\nimport { PropertyActionsProps } from './ActionsProps.js'\n\nexport const PropertyActionsMenu: React.FC<PropertyActionsProps> = ({ actions, ...props }) => {\n const [anchorEl, setAnchorEl] = useState<null | HTMLElement>(null)\n const open = !!anchorEl\n\n const handleClick = (event: React.MouseEvent<HTMLElement>) => {\n setAnchorEl(event.currentTarget)\n }\n const handleClose = () => {\n setAnchorEl(null)\n }\n\n return actions && actions?.length > 0 ?\n <FlexRow {...props}>\n <IconButton size=\"small\" color=\"inherit\" onClick={handleClick}>\n <MoreHorizIcon fontSize=\"inherit\" />\n </IconButton>\n <Menu anchorEl={anchorEl} open={open} onClose={handleClose}>\n {actions?.map((action) => {\n return (\n <MenuItem\n key={action.name}\n onClick={() => {\n action?.onClick?.()\n handleClose()\n }}\n >\n {action.name}\n </MenuItem>\n )\n })}\n </Menu>\n </FlexRow>\n : null\n}\n","import { useTheme } from '@mui/material'\nimport { FlexBoxProps, FlexRow } from '@xylabs/react-flexbox'\nimport { Identicon } from '@xylabs/react-identicon'\nimport { useEffect, useRef, useState } from 'react'\n\nexport interface IdenticonCornerProps extends FlexBoxProps {\n value?: string | number | boolean | null\n}\n\nexport const IdenticonCorner: React.FC<IdenticonCornerProps> = ({ value, ...props }) => {\n const theme = useTheme()\n const [parentHeight, setParentHeight] = useState<number>()\n const ref = useRef<HTMLDivElement>(null)\n\n useEffect(() => {\n setParentHeight(ref.current?.parentElement?.parentElement?.clientHeight)\n }, [])\n\n const calculatedHeight = parentHeight ?? 0\n\n return (\n <FlexRow alignItems=\"flex-start\" height=\"100%\">\n <FlexRow background height={calculatedHeight} width={calculatedHeight} borderLeft={`1px solid ${theme.palette.divider}`}>\n <div ref={ref}>\n <Identicon size={calculatedHeight * 0.6} value={`${value}`} sx={{ padding: `${calculatedHeight * 0.2}px` }} {...props} />\n </div>\n </FlexRow>\n </FlexRow>\n )\n}\n","import { Variant } from '@mui/material/styles/createTypography.js'\nimport { EllipsizeBox, EllipsizeBoxProps } from '@xyo-network/react-shared'\nimport { forwardRef } from 'react'\n\nexport interface PropertyValueProps extends Omit<EllipsizeBoxProps, 'ref'> {\n typographyVariant?: Variant\n value?: string | number | boolean | null\n}\n\nexport const PropertyValue = forwardRef<HTMLDivElement, PropertyValueProps>(({ typographyVariant = 'body1', value, ...props }, ref) => {\n return value === undefined ? null : (\n <EllipsizeBox\n typographyProps={{ component: undefined, title: value?.toString(), variant: typographyVariant }}\n width=\"100%\"\n ref={ref}\n {...props}\n >\n {value}\n </EllipsizeBox>\n )\n})\n\nPropertyValue.displayName = 'PropertyValue'\n"],"mappings":";AAAA,SAAS,OAAO,YAAAA,iBAAgB;AAChC,SAAS,SAAS,aAAa,WAAAC,gBAAe;AAC9C,SAAS,cAAc;;;ACFvB,SAAS,QAAQ,SAAS,YAA+B,gBAAgB;AACzE,SAAuB,eAAe;AACtC,SAAS,sBAAsB;AAoDzB,SAGM,KAHN;AAtCC,IAAM,gBAA8C,CAAC,EAAE,YAAY,GAAG,OAAO,UAAU,KAAK,MAAM,OAAO,GAAG,MAAM,MAAM;AAC7H,QAAM,eAAyD;AAAA,IAC7D,MAAM;AAAA,IACN,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AAEA,QAAM,kBAA6D;AAAA,IACjE,MAAM;AAAA,IACN,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AAEA,QAAM,eAA8C;AAAA,IAClD,MAAM;AAAA,IACN,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AAEA,QAAM,eAAe,aAAa,IAAI,IAAI,KAAK,aAAa,IAAI,IAAI;AAEpE,QAAM,QAAQ,SAAS;AAEvB,SACE;AAAA,IAAC;AAAA;AAAA,MACC,SACE,MAAM,QAAQ,SAAS,SACrB,QAAQ,MAAM,QAAQ,WAAW,OAAO,OAAO,SAAS,IACxD,OAAO,MAAM,QAAQ,WAAW,OAAO,QAAQ,SAAS;AAAA,MAE5D,YAAW;AAAA,MACX,QAAQ,gBAAgB,IAAI;AAAA,MAC5B,gBAAe;AAAA,MACd,GAAG;AAAA,MAEJ;AAAA,6BAAC,WAAQ,UAAU,GAAG,UAAU,KAC9B;AAAA,8BAAC,cAAW,YAAY,KAAK,QAAM,MAAC,SAAS,aAAa,IAAI,GAAG,UAAU,aAAa,IAAI,GA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AAS,cAAc;","names":["useTheme","FlexRow","jsx","jsxs","useTheme","FlexRow","Paper","FlexRow","forwardRef","FlexRow","jsx","jsxs","useTheme","FlexRow","useState","jsx","jsx","jsx","jsxs","forwardRef","FlexRow","Paper"]}