@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.
- package/dist/browser/components/Actions.d.cts +2 -1
- package/dist/browser/components/Actions.d.cts.map +1 -1
- package/dist/browser/components/Actions.d.mts +2 -1
- package/dist/browser/components/Actions.d.mts.map +1 -1
- package/dist/browser/components/Actions.d.ts +2 -1
- package/dist/browser/components/Actions.d.ts.map +1 -1
- package/dist/browser/components/ActionsMenu.d.cts +2 -1
- package/dist/browser/components/ActionsMenu.d.cts.map +1 -1
- package/dist/browser/components/ActionsMenu.d.mts +2 -1
- package/dist/browser/components/ActionsMenu.d.mts.map +1 -1
- package/dist/browser/components/ActionsMenu.d.ts +2 -1
- package/dist/browser/components/ActionsMenu.d.ts.map +1 -1
- package/dist/browser/components/ActionsProps.d.cts +1 -1
- package/dist/browser/components/ActionsProps.d.mts +1 -1
- package/dist/browser/components/ActionsProps.d.ts +1 -1
- package/dist/browser/components/Group.d.cts +2 -1
- package/dist/browser/components/Group.d.cts.map +1 -1
- package/dist/browser/components/Group.d.mts +2 -1
- package/dist/browser/components/Group.d.mts.map +1 -1
- package/dist/browser/components/Group.d.ts +2 -1
- package/dist/browser/components/Group.d.ts.map +1 -1
- package/dist/browser/components/IdenticonCorner.d.cts +1 -0
- package/dist/browser/components/IdenticonCorner.d.cts.map +1 -1
- package/dist/browser/components/IdenticonCorner.d.mts +1 -0
- package/dist/browser/components/IdenticonCorner.d.mts.map +1 -1
- package/dist/browser/components/IdenticonCorner.d.ts +1 -0
- package/dist/browser/components/IdenticonCorner.d.ts.map +1 -1
- package/dist/browser/components/Property.d.cts +3 -2
- package/dist/browser/components/Property.d.cts.map +1 -1
- package/dist/browser/components/Property.d.mts +3 -2
- package/dist/browser/components/Property.d.mts.map +1 -1
- package/dist/browser/components/Property.d.ts +3 -2
- package/dist/browser/components/Property.d.ts.map +1 -1
- package/dist/browser/components/Props.d.cts +2 -2
- package/dist/browser/components/Props.d.cts.map +1 -1
- package/dist/browser/components/Props.d.mts +2 -2
- package/dist/browser/components/Props.d.mts.map +1 -1
- package/dist/browser/components/Props.d.ts +2 -2
- package/dist/browser/components/Props.d.ts.map +1 -1
- package/dist/browser/components/Title.d.cts +1 -1
- package/dist/browser/components/Title.d.cts.map +1 -1
- package/dist/browser/components/Title.d.mts +1 -1
- package/dist/browser/components/Title.d.mts.map +1 -1
- package/dist/browser/components/Title.d.ts +1 -1
- package/dist/browser/components/Title.d.ts.map +1 -1
- package/dist/browser/components/Value.d.cts +2 -1
- package/dist/browser/components/Value.d.cts.map +1 -1
- package/dist/browser/components/Value.d.mts +2 -1
- package/dist/browser/components/Value.d.mts.map +1 -1
- package/dist/browser/components/Value.d.ts +2 -1
- package/dist/browser/components/Value.d.ts.map +1 -1
- package/dist/browser/components/index.d.cts +6 -6
- package/dist/browser/components/index.d.cts.map +1 -1
- package/dist/browser/components/index.d.mts +6 -6
- package/dist/browser/components/index.d.mts.map +1 -1
- package/dist/browser/components/index.d.ts +6 -6
- package/dist/browser/components/index.d.ts.map +1 -1
- package/dist/browser/index.cjs +207 -127
- package/dist/browser/index.cjs.map +1 -1
- package/dist/browser/index.d.cts +1 -1
- package/dist/browser/index.d.mts +1 -1
- package/dist/browser/index.d.ts +1 -1
- package/dist/browser/index.mjs +272 -0
- package/dist/browser/index.mjs.map +1 -0
- package/dist/neutral/components/Actions.d.cts +2 -1
- package/dist/neutral/components/Actions.d.cts.map +1 -1
- package/dist/neutral/components/Actions.d.mts +2 -1
- package/dist/neutral/components/Actions.d.mts.map +1 -1
- package/dist/neutral/components/Actions.d.ts +2 -1
- package/dist/neutral/components/Actions.d.ts.map +1 -1
- package/dist/neutral/components/ActionsMenu.d.cts +2 -1
- package/dist/neutral/components/ActionsMenu.d.cts.map +1 -1
- package/dist/neutral/components/ActionsMenu.d.mts +2 -1
- package/dist/neutral/components/ActionsMenu.d.mts.map +1 -1
- package/dist/neutral/components/ActionsMenu.d.ts +2 -1
- package/dist/neutral/components/ActionsMenu.d.ts.map +1 -1
- package/dist/neutral/components/ActionsProps.d.cts +1 -1
- package/dist/neutral/components/ActionsProps.d.mts +1 -1
- package/dist/neutral/components/ActionsProps.d.ts +1 -1
- package/dist/neutral/components/Group.d.cts +2 -1
- package/dist/neutral/components/Group.d.cts.map +1 -1
- package/dist/neutral/components/Group.d.mts +2 -1
- package/dist/neutral/components/Group.d.mts.map +1 -1
- package/dist/neutral/components/Group.d.ts +2 -1
- package/dist/neutral/components/Group.d.ts.map +1 -1
- package/dist/neutral/components/IdenticonCorner.d.cts +1 -0
- package/dist/neutral/components/IdenticonCorner.d.cts.map +1 -1
- package/dist/neutral/components/IdenticonCorner.d.mts +1 -0
- package/dist/neutral/components/IdenticonCorner.d.mts.map +1 -1
- package/dist/neutral/components/IdenticonCorner.d.ts +1 -0
- package/dist/neutral/components/IdenticonCorner.d.ts.map +1 -1
- package/dist/neutral/components/Property.d.cts +3 -2
- package/dist/neutral/components/Property.d.cts.map +1 -1
- package/dist/neutral/components/Property.d.mts +3 -2
- package/dist/neutral/components/Property.d.mts.map +1 -1
- package/dist/neutral/components/Property.d.ts +3 -2
- package/dist/neutral/components/Property.d.ts.map +1 -1
- package/dist/neutral/components/Props.d.cts +2 -2
- package/dist/neutral/components/Props.d.cts.map +1 -1
- package/dist/neutral/components/Props.d.mts +2 -2
- package/dist/neutral/components/Props.d.mts.map +1 -1
- package/dist/neutral/components/Props.d.ts +2 -2
- package/dist/neutral/components/Props.d.ts.map +1 -1
- package/dist/neutral/components/Title.d.cts +1 -1
- package/dist/neutral/components/Title.d.cts.map +1 -1
- package/dist/neutral/components/Title.d.mts +1 -1
- package/dist/neutral/components/Title.d.mts.map +1 -1
- package/dist/neutral/components/Title.d.ts +1 -1
- package/dist/neutral/components/Title.d.ts.map +1 -1
- package/dist/neutral/components/Value.d.cts +2 -1
- package/dist/neutral/components/Value.d.cts.map +1 -1
- package/dist/neutral/components/Value.d.mts +2 -1
- package/dist/neutral/components/Value.d.mts.map +1 -1
- package/dist/neutral/components/Value.d.ts +2 -1
- package/dist/neutral/components/Value.d.ts.map +1 -1
- package/dist/neutral/components/index.d.cts +6 -6
- package/dist/neutral/components/index.d.cts.map +1 -1
- package/dist/neutral/components/index.d.mts +6 -6
- package/dist/neutral/components/index.d.mts.map +1 -1
- package/dist/neutral/components/index.d.ts +6 -6
- package/dist/neutral/components/index.d.ts.map +1 -1
- package/dist/neutral/index.cjs +207 -127
- package/dist/neutral/index.cjs.map +1 -1
- package/dist/neutral/index.d.cts +1 -1
- package/dist/neutral/index.d.mts +1 -1
- package/dist/neutral/index.d.ts +1 -1
- package/dist/neutral/index.mjs +272 -0
- package/dist/neutral/index.mjs.map +1 -0
- package/dist/node/components/Actions.d.cts +2 -1
- package/dist/node/components/Actions.d.cts.map +1 -1
- package/dist/node/components/Actions.d.mts +2 -1
- package/dist/node/components/Actions.d.mts.map +1 -1
- package/dist/node/components/Actions.d.ts +2 -1
- package/dist/node/components/Actions.d.ts.map +1 -1
- package/dist/node/components/ActionsMenu.d.cts +2 -1
- package/dist/node/components/ActionsMenu.d.cts.map +1 -1
- package/dist/node/components/ActionsMenu.d.mts +2 -1
- package/dist/node/components/ActionsMenu.d.mts.map +1 -1
- package/dist/node/components/ActionsMenu.d.ts +2 -1
- package/dist/node/components/ActionsMenu.d.ts.map +1 -1
- package/dist/node/components/ActionsProps.d.cts +1 -1
- package/dist/node/components/ActionsProps.d.mts +1 -1
- package/dist/node/components/ActionsProps.d.ts +1 -1
- package/dist/node/components/Group.d.cts +2 -1
- package/dist/node/components/Group.d.cts.map +1 -1
- package/dist/node/components/Group.d.mts +2 -1
- package/dist/node/components/Group.d.mts.map +1 -1
- package/dist/node/components/Group.d.ts +2 -1
- package/dist/node/components/Group.d.ts.map +1 -1
- package/dist/node/components/IdenticonCorner.d.cts +1 -0
- package/dist/node/components/IdenticonCorner.d.cts.map +1 -1
- package/dist/node/components/IdenticonCorner.d.mts +1 -0
- package/dist/node/components/IdenticonCorner.d.mts.map +1 -1
- package/dist/node/components/IdenticonCorner.d.ts +1 -0
- package/dist/node/components/IdenticonCorner.d.ts.map +1 -1
- package/dist/node/components/Property.d.cts +3 -2
- package/dist/node/components/Property.d.cts.map +1 -1
- package/dist/node/components/Property.d.mts +3 -2
- package/dist/node/components/Property.d.mts.map +1 -1
- package/dist/node/components/Property.d.ts +3 -2
- package/dist/node/components/Property.d.ts.map +1 -1
- package/dist/node/components/Props.d.cts +2 -2
- package/dist/node/components/Props.d.cts.map +1 -1
- package/dist/node/components/Props.d.mts +2 -2
- package/dist/node/components/Props.d.mts.map +1 -1
- package/dist/node/components/Props.d.ts +2 -2
- package/dist/node/components/Props.d.ts.map +1 -1
- package/dist/node/components/Title.d.cts +1 -1
- package/dist/node/components/Title.d.cts.map +1 -1
- package/dist/node/components/Title.d.mts +1 -1
- package/dist/node/components/Title.d.mts.map +1 -1
- package/dist/node/components/Title.d.ts +1 -1
- package/dist/node/components/Title.d.ts.map +1 -1
- package/dist/node/components/Value.d.cts +2 -1
- package/dist/node/components/Value.d.cts.map +1 -1
- package/dist/node/components/Value.d.mts +2 -1
- package/dist/node/components/Value.d.mts.map +1 -1
- package/dist/node/components/Value.d.ts +2 -1
- package/dist/node/components/Value.d.ts.map +1 -1
- package/dist/node/components/index.d.cts +6 -6
- package/dist/node/components/index.d.cts.map +1 -1
- package/dist/node/components/index.d.mts +6 -6
- package/dist/node/components/index.d.mts.map +1 -1
- package/dist/node/components/index.d.ts +6 -6
- package/dist/node/components/index.d.ts.map +1 -1
- package/dist/node/index.cjs +208 -128
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.d.cts +1 -1
- package/dist/node/index.d.mts +1 -1
- package/dist/node/index.d.ts +1 -1
- package/dist/node/index.mjs +274 -0
- package/dist/node/index.mjs.map +1 -0
- package/package.json +14 -14
- package/src/components/Actions.tsx +32 -25
- package/src/components/ActionsMenu.tsx +25 -23
- package/src/components/ActionsProps.ts +1 -1
- package/src/components/Group.tsx +18 -14
- package/src/components/IdenticonCorner.tsx +1 -1
- package/src/components/Property.tsx +25 -23
- package/src/components/PropertyBox.stories.tsx +3 -3
- package/src/components/PropertyPaper.stories.tsx +3 -3
- package/src/components/{Props.tsx → Props.ts} +2 -2
- package/src/components/Title.stories.tsx +3 -3
- package/src/components/Title.tsx +11 -9
- package/src/components/Value.stories.tsx +3 -3
- package/src/components/Value.tsx +14 -11
- package/src/components/index.ts +6 -6
- package/src/index.ts +1 -1
- package/dist/browser/index.js +0 -200
- package/dist/browser/index.js.map +0 -1
- package/dist/neutral/index.js +0 -200
- package/dist/neutral/index.js.map +0 -1
- package/dist/node/index.js +0 -202
- package/dist/node/index.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Title.d.ts","sourceRoot":"","sources":["../../../src/components/Title.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAW,MAAM,uBAAuB,CAAA;AAE7D,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAA;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"Title.d.ts","sourceRoot":"","sources":["../../../src/components/Title.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAW,MAAM,uBAAuB,CAAA;AAE7D,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAA;AACpD,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAExC,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,MAAM,CAAA;AAE7C,MAAM,WAAW,kBAAmB,SAAQ,YAAY;IACtD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,IAAI,CAAC,EAAE,aAAa,CAAA;IACpB,GAAG,CAAC,EAAE,SAAS,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAuDtD,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FlexBoxProps } from '@xylabs/react-flexbox';
|
|
2
2
|
import { SizeProp } from '@xyo-network/react-shared';
|
|
3
|
-
import { ReactNode } from 'react';
|
|
3
|
+
import React, { ReactNode } from 'react';
|
|
4
4
|
export type TitleSizeProp = SizeProp | 'full';
|
|
5
5
|
export interface PropertyTitleProps extends FlexBoxProps {
|
|
6
6
|
elevation?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Title.d.ts","sourceRoot":"","sources":["../../../src/components/Title.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAW,MAAM,uBAAuB,CAAA;AAE7D,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAA;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"Title.d.ts","sourceRoot":"","sources":["../../../src/components/Title.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAW,MAAM,uBAAuB,CAAA;AAE7D,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAA;AACpD,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAExC,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,MAAM,CAAA;AAE7C,MAAM,WAAW,kBAAmB,SAAQ,YAAY;IACtD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,IAAI,CAAC,EAAE,aAAa,CAAA;IACpB,GAAG,CAAC,EAAE,SAAS,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAuDtD,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FlexBoxProps } from '@xylabs/react-flexbox';
|
|
2
2
|
import { SizeProp } from '@xyo-network/react-shared';
|
|
3
|
-
import { ReactNode } from 'react';
|
|
3
|
+
import React, { ReactNode } from 'react';
|
|
4
4
|
export type TitleSizeProp = SizeProp | 'full';
|
|
5
5
|
export interface PropertyTitleProps extends FlexBoxProps {
|
|
6
6
|
elevation?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Title.d.ts","sourceRoot":"","sources":["../../../src/components/Title.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAW,MAAM,uBAAuB,CAAA;AAE7D,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAA;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"Title.d.ts","sourceRoot":"","sources":["../../../src/components/Title.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAW,MAAM,uBAAuB,CAAA;AAE7D,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAA;AACpD,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAExC,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,MAAM,CAAA;AAE7C,MAAM,WAAW,kBAAmB,SAAQ,YAAY;IACtD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,IAAI,CAAC,EAAE,aAAa,CAAA;IACpB,GAAG,CAAC,EAAE,SAAS,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAuDtD,CAAA"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { Variant } from '@mui/material/styles/createTypography.js';
|
|
2
2
|
import { EllipsizeBoxProps } from '@xyo-network/react-shared';
|
|
3
|
+
import React from 'react';
|
|
3
4
|
export interface PropertyValueProps extends Omit<EllipsizeBoxProps, 'ref'> {
|
|
4
5
|
typographyVariant?: Variant;
|
|
5
6
|
value?: string | number | boolean | null;
|
|
6
7
|
}
|
|
7
|
-
export declare const PropertyValue:
|
|
8
|
+
export declare const PropertyValue: React.ForwardRefExoticComponent<PropertyValueProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
9
|
//# sourceMappingURL=Value.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Value.d.ts","sourceRoot":"","sources":["../../../src/components/Value.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Value.d.ts","sourceRoot":"","sources":["../../../src/components/Value.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,0CAA0C,CAAA;AAClE,OAAO,EAAgB,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAC3E,OAAO,KAAqB,MAAM,OAAO,CAAA;AAEzC,MAAM,WAAW,kBAAmB,SAAQ,IAAI,CAAC,iBAAiB,EAAE,KAAK,CAAC;IACxE,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAA;CACzC;AAED,eAAO,MAAM,aAAa,2FAaxB,CAAA"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { Variant } from '@mui/material/styles/createTypography.js';
|
|
2
2
|
import { EllipsizeBoxProps } from '@xyo-network/react-shared';
|
|
3
|
+
import React from 'react';
|
|
3
4
|
export interface PropertyValueProps extends Omit<EllipsizeBoxProps, 'ref'> {
|
|
4
5
|
typographyVariant?: Variant;
|
|
5
6
|
value?: string | number | boolean | null;
|
|
6
7
|
}
|
|
7
|
-
export declare const PropertyValue:
|
|
8
|
+
export declare const PropertyValue: React.ForwardRefExoticComponent<PropertyValueProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
9
|
//# sourceMappingURL=Value.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Value.d.ts","sourceRoot":"","sources":["../../../src/components/Value.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Value.d.ts","sourceRoot":"","sources":["../../../src/components/Value.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,0CAA0C,CAAA;AAClE,OAAO,EAAgB,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAC3E,OAAO,KAAqB,MAAM,OAAO,CAAA;AAEzC,MAAM,WAAW,kBAAmB,SAAQ,IAAI,CAAC,iBAAiB,EAAE,KAAK,CAAC;IACxE,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAA;CACzC;AAED,eAAO,MAAM,aAAa,2FAaxB,CAAA"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { Variant } from '@mui/material/styles/createTypography.js';
|
|
2
2
|
import { EllipsizeBoxProps } from '@xyo-network/react-shared';
|
|
3
|
+
import React from 'react';
|
|
3
4
|
export interface PropertyValueProps extends Omit<EllipsizeBoxProps, 'ref'> {
|
|
4
5
|
typographyVariant?: Variant;
|
|
5
6
|
value?: string | number | boolean | null;
|
|
6
7
|
}
|
|
7
|
-
export declare const PropertyValue:
|
|
8
|
+
export declare const PropertyValue: React.ForwardRefExoticComponent<PropertyValueProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
9
|
//# sourceMappingURL=Value.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Value.d.ts","sourceRoot":"","sources":["../../../src/components/Value.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Value.d.ts","sourceRoot":"","sources":["../../../src/components/Value.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,0CAA0C,CAAA;AAClE,OAAO,EAAgB,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAC3E,OAAO,KAAqB,MAAM,OAAO,CAAA;AAEzC,MAAM,WAAW,kBAAmB,SAAQ,IAAI,CAAC,iBAAiB,EAAE,KAAK,CAAC;IACxE,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAA;CACzC;AAED,eAAO,MAAM,aAAa,2FAaxB,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from './Action.
|
|
2
|
-
export * from './Group.
|
|
3
|
-
export * from './Property.
|
|
4
|
-
export * from './Props.
|
|
5
|
-
export * from './Title.
|
|
6
|
-
export * from './Value.
|
|
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';
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from './Action.
|
|
2
|
-
export * from './Group.
|
|
3
|
-
export * from './Property.
|
|
4
|
-
export * from './Props.
|
|
5
|
-
export * from './Title.
|
|
6
|
-
export * from './Value.
|
|
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';
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from './Action.
|
|
2
|
-
export * from './Group.
|
|
3
|
-
export * from './Property.
|
|
4
|
-
export * from './Props.
|
|
5
|
-
export * from './Title.
|
|
6
|
-
export * from './Value.
|
|
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';
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA"}
|
package/dist/neutral/index.cjs
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
5
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
6
9
|
var __export = (target, all) => {
|
|
7
10
|
for (var name in all)
|
|
8
11
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -15,6 +18,14 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
18
|
}
|
|
16
19
|
return to;
|
|
17
20
|
};
|
|
21
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
27
|
+
mod
|
|
28
|
+
));
|
|
18
29
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
30
|
|
|
20
31
|
// src/index.ts
|
|
@@ -31,13 +42,14 @@ module.exports = __toCommonJS(src_exports);
|
|
|
31
42
|
var import_material2 = require("@mui/material");
|
|
32
43
|
var import_react_flexbox2 = require("@xylabs/react-flexbox");
|
|
33
44
|
var import_typeof = require("@xyo-network/typeof");
|
|
45
|
+
var import_react2 = __toESM(require("react"), 1);
|
|
34
46
|
|
|
35
47
|
// src/components/Title.tsx
|
|
36
48
|
var import_material = require("@mui/material");
|
|
37
49
|
var import_react_flexbox = require("@xylabs/react-flexbox");
|
|
38
50
|
var import_react_quick_tip_button = require("@xylabs/react-quick-tip-button");
|
|
39
|
-
var
|
|
40
|
-
var PropertyTitle = ({ elevation = 1, size = "medium", tip, more, title, ...props }) => {
|
|
51
|
+
var import_react = __toESM(require("react"), 1);
|
|
52
|
+
var PropertyTitle = /* @__PURE__ */ __name(({ elevation = 1, size = "medium", tip, more, title, ...props }) => {
|
|
41
53
|
const sizeVariants = {
|
|
42
54
|
full: "caption",
|
|
43
55
|
large: "caption",
|
|
@@ -58,166 +70,234 @@ var PropertyTitle = ({ elevation = 1, size = "medium", tip, more, title, ...prop
|
|
|
58
70
|
};
|
|
59
71
|
const quickTipSize = sizeFontSize[size] < 16 ? sizeFontSize[size] : 16;
|
|
60
72
|
const theme = (0, import_material.useTheme)();
|
|
61
|
-
return /* @__PURE__ */ (
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
}
|
|
73
|
+
return /* @__PURE__ */ import_react.default.createElement(import_react_flexbox.FlexRow, {
|
|
74
|
+
bgcolor: theme.palette.mode === "dark" ? (0, import_material.lighten)(theme.palette.background.paper, 0.05 * elevation) : (0, import_material.darken)(theme.palette.background.paper, 0.025 * elevation),
|
|
75
|
+
alignItems: "center",
|
|
76
|
+
height: sizeTitleHeight[size],
|
|
77
|
+
justifyContent: "space-between",
|
|
78
|
+
...props
|
|
79
|
+
}, /* @__PURE__ */ import_react.default.createElement(import_react_flexbox.FlexRow, {
|
|
80
|
+
paddingX: 1,
|
|
81
|
+
paddingY: 0.5
|
|
82
|
+
}, /* @__PURE__ */ import_react.default.createElement(import_material.Typography, {
|
|
83
|
+
fontWeight: 500,
|
|
84
|
+
noWrap: true,
|
|
85
|
+
variant: sizeVariants[size],
|
|
86
|
+
fontSize: sizeFontSize[size]
|
|
87
|
+
}, /* @__PURE__ */ import_react.default.createElement("small", null, /* @__PURE__ */ import_react.default.createElement("strong", null, title))), tip ? /* @__PURE__ */ import_react.default.createElement(import_react_quick_tip_button.QuickTipButton, {
|
|
88
|
+
style: {
|
|
89
|
+
fontSize: quickTipSize
|
|
90
|
+
},
|
|
91
|
+
color: "inherit",
|
|
92
|
+
title: title ?? ""
|
|
93
|
+
}, tip) : null), more);
|
|
94
|
+
}, "PropertyTitle");
|
|
79
95
|
|
|
80
96
|
// src/components/Group.tsx
|
|
81
|
-
var
|
|
82
|
-
var PropertyGroupBox = ({ titleProps, children, title, tip, ...props }) => {
|
|
97
|
+
var PropertyGroupBox = /* @__PURE__ */ __name(({ titleProps, children, title, tip, ...props }) => {
|
|
83
98
|
const theme = (0, import_material2.useTheme)();
|
|
84
99
|
const childrenArray = (0, import_typeof.typeOf)(children) === "array" ? children : void 0;
|
|
85
|
-
return /* @__PURE__ */
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
100
|
+
return /* @__PURE__ */ import_react2.default.createElement(import_react_flexbox2.FlexCol, {
|
|
101
|
+
alignItems: "stretch",
|
|
102
|
+
overflow: "hidden",
|
|
103
|
+
...props
|
|
104
|
+
}, /* @__PURE__ */ import_react2.default.createElement(import_react_flexbox2.FlexRow, {
|
|
105
|
+
overflow: "hidden",
|
|
106
|
+
justifyContent: "stretch",
|
|
107
|
+
alignItems: "stretch"
|
|
108
|
+
}, /* @__PURE__ */ import_react2.default.createElement(PropertyTitle, {
|
|
109
|
+
alignItems: "flex-start",
|
|
110
|
+
size: "full",
|
|
111
|
+
title,
|
|
112
|
+
tip,
|
|
113
|
+
...titleProps
|
|
114
|
+
}), childrenArray ? /* @__PURE__ */ import_react2.default.createElement(import_react_flexbox2.FlexGrowRow, null, childrenArray?.map((child, index) => {
|
|
115
|
+
return child ? /* @__PURE__ */ import_react2.default.createElement(import_react_flexbox2.FlexGrowRow, {
|
|
116
|
+
key: index,
|
|
117
|
+
borderLeft: 1,
|
|
118
|
+
borderColor: theme.palette.divider
|
|
119
|
+
}, child) : null;
|
|
120
|
+
})) : /* @__PURE__ */ import_react2.default.createElement(import_react_flexbox2.FlexGrowRow, {
|
|
121
|
+
overflow: "hidden"
|
|
122
|
+
}, children)));
|
|
123
|
+
}, "PropertyGroupBox");
|
|
124
|
+
var PropertyGroupPaper = /* @__PURE__ */ __name(({ style, variant, elevation, square, ...props }) => {
|
|
125
|
+
return /* @__PURE__ */ import_react2.default.createElement(import_material2.Paper, {
|
|
126
|
+
style: {
|
|
127
|
+
minWidth: 0,
|
|
128
|
+
overflow: "hidden",
|
|
129
|
+
...style
|
|
130
|
+
},
|
|
131
|
+
variant,
|
|
132
|
+
elevation,
|
|
133
|
+
square
|
|
134
|
+
}, /* @__PURE__ */ import_react2.default.createElement(PropertyGroupBox, {
|
|
135
|
+
...props,
|
|
136
|
+
paper: false
|
|
137
|
+
}));
|
|
138
|
+
}, "PropertyGroupPaper");
|
|
139
|
+
var PropertyGroup = /* @__PURE__ */ __name((props) => {
|
|
140
|
+
return props.paper ? /* @__PURE__ */ import_react2.default.createElement(PropertyGroupPaper, props) : /* @__PURE__ */ import_react2.default.createElement(PropertyGroupBox, props);
|
|
141
|
+
}, "PropertyGroup");
|
|
98
142
|
|
|
99
143
|
// src/components/Property.tsx
|
|
100
144
|
var import_material5 = require("@mui/material");
|
|
101
145
|
var import_react_flexbox5 = require("@xylabs/react-flexbox");
|
|
102
|
-
var
|
|
146
|
+
var import_react6 = __toESM(require("react"), 1);
|
|
103
147
|
|
|
104
148
|
// src/components/ActionsMenu.tsx
|
|
105
149
|
var import_icons_material = require("@mui/icons-material");
|
|
106
150
|
var import_material3 = require("@mui/material");
|
|
107
151
|
var import_react_flexbox3 = require("@xylabs/react-flexbox");
|
|
108
|
-
var
|
|
109
|
-
var
|
|
110
|
-
|
|
111
|
-
const [anchorEl, setAnchorEl] = (0, import_react.useState)(null);
|
|
152
|
+
var import_react3 = __toESM(require("react"), 1);
|
|
153
|
+
var PropertyActionsMenu = /* @__PURE__ */ __name(({ actions, ...props }) => {
|
|
154
|
+
const [anchorEl, setAnchorEl] = (0, import_react3.useState)(null);
|
|
112
155
|
const open = !!anchorEl;
|
|
113
|
-
const handleClick = (event) => {
|
|
156
|
+
const handleClick = /* @__PURE__ */ __name((event) => {
|
|
114
157
|
setAnchorEl(event.currentTarget);
|
|
115
|
-
};
|
|
116
|
-
const handleClose = () => {
|
|
158
|
+
}, "handleClick");
|
|
159
|
+
const handleClose = /* @__PURE__ */ __name(() => {
|
|
117
160
|
setAnchorEl(null);
|
|
118
|
-
};
|
|
119
|
-
return actions && actions?.length > 0 ? /* @__PURE__ */
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
)
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
}
|
|
161
|
+
}, "handleClose");
|
|
162
|
+
return actions && actions?.length > 0 ? /* @__PURE__ */ import_react3.default.createElement(import_react_flexbox3.FlexRow, props, /* @__PURE__ */ import_react3.default.createElement(import_material3.IconButton, {
|
|
163
|
+
size: "small",
|
|
164
|
+
color: "inherit",
|
|
165
|
+
onClick: handleClick
|
|
166
|
+
}, /* @__PURE__ */ import_react3.default.createElement(import_icons_material.MoreHoriz, {
|
|
167
|
+
fontSize: "inherit"
|
|
168
|
+
})), /* @__PURE__ */ import_react3.default.createElement(import_material3.Menu, {
|
|
169
|
+
anchorEl,
|
|
170
|
+
open,
|
|
171
|
+
onClose: handleClose
|
|
172
|
+
}, actions?.map((action) => {
|
|
173
|
+
return /* @__PURE__ */ import_react3.default.createElement(import_material3.MenuItem, {
|
|
174
|
+
key: action.name,
|
|
175
|
+
onClick: /* @__PURE__ */ __name(() => {
|
|
176
|
+
action?.onClick?.();
|
|
177
|
+
handleClose();
|
|
178
|
+
}, "onClick")
|
|
179
|
+
}, action.name);
|
|
180
|
+
}))) : null;
|
|
181
|
+
}, "PropertyActionsMenu");
|
|
136
182
|
|
|
137
183
|
// src/components/IdenticonCorner.tsx
|
|
138
184
|
var import_material4 = require("@mui/material");
|
|
139
185
|
var import_react_flexbox4 = require("@xylabs/react-flexbox");
|
|
140
186
|
var import_react_identicon = require("@xylabs/react-identicon");
|
|
141
|
-
var
|
|
142
|
-
var
|
|
143
|
-
var IdenticonCorner = ({ value, ...props }) => {
|
|
187
|
+
var import_react4 = __toESM(require("react"), 1);
|
|
188
|
+
var IdenticonCorner = /* @__PURE__ */ __name(({ value, ...props }) => {
|
|
144
189
|
const theme = (0, import_material4.useTheme)();
|
|
145
|
-
const [parentHeight, setParentHeight] = (0,
|
|
146
|
-
const ref = (0,
|
|
147
|
-
(0,
|
|
190
|
+
const [parentHeight, setParentHeight] = (0, import_react4.useState)();
|
|
191
|
+
const ref = (0, import_react4.useRef)(null);
|
|
192
|
+
(0, import_react4.useEffect)(() => {
|
|
148
193
|
setParentHeight(ref.current?.parentElement?.parentElement?.clientHeight);
|
|
149
194
|
}, []);
|
|
150
195
|
const calculatedHeight = parentHeight ?? 0;
|
|
151
|
-
return /* @__PURE__ */
|
|
152
|
-
|
|
196
|
+
return /* @__PURE__ */ import_react4.default.createElement(import_react_flexbox4.FlexRow, {
|
|
197
|
+
alignItems: "flex-start",
|
|
198
|
+
height: "100%"
|
|
199
|
+
}, /* @__PURE__ */ import_react4.default.createElement(import_react_flexbox4.FlexRow, {
|
|
200
|
+
background: true,
|
|
201
|
+
height: calculatedHeight,
|
|
202
|
+
width: calculatedHeight,
|
|
203
|
+
borderLeft: `1px solid ${theme.palette.divider}`
|
|
204
|
+
}, /* @__PURE__ */ import_react4.default.createElement("div", {
|
|
205
|
+
ref
|
|
206
|
+
}, /* @__PURE__ */ import_react4.default.createElement(import_react_identicon.Identicon, {
|
|
207
|
+
size: calculatedHeight * 0.6,
|
|
208
|
+
value: `${value}`,
|
|
209
|
+
sx: {
|
|
210
|
+
padding: `${calculatedHeight * 0.2}px`
|
|
211
|
+
},
|
|
212
|
+
...props
|
|
213
|
+
}))));
|
|
214
|
+
}, "IdenticonCorner");
|
|
153
215
|
|
|
154
216
|
// src/components/Value.tsx
|
|
155
217
|
var import_react_shared = require("@xyo-network/react-shared");
|
|
156
|
-
var
|
|
157
|
-
var
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
);
|
|
218
|
+
var import_react5 = __toESM(require("react"), 1);
|
|
219
|
+
var PropertyValue = /* @__PURE__ */ (0, import_react5.forwardRef)(({ typographyVariant = "body1", value, ...props }, ref) => {
|
|
220
|
+
return value === void 0 ? null : /* @__PURE__ */ import_react5.default.createElement(import_react_shared.EllipsizeBox, {
|
|
221
|
+
typographyProps: {
|
|
222
|
+
component: void 0,
|
|
223
|
+
title: value?.toString(),
|
|
224
|
+
variant: typographyVariant
|
|
225
|
+
},
|
|
226
|
+
width: "100%",
|
|
227
|
+
ref,
|
|
228
|
+
...props
|
|
229
|
+
}, value);
|
|
169
230
|
});
|
|
170
231
|
PropertyValue.displayName = "PropertyValue";
|
|
171
232
|
|
|
172
233
|
// src/components/Property.tsx
|
|
173
|
-
var
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
}
|
|
213
|
-
);
|
|
234
|
+
var PropertyBox = /* @__PURE__ */ (0, import_react6.forwardRef)(({ titleProps, title, value, children, size = "medium", tip, actions, required, badge = false, ...props }, ref) => {
|
|
235
|
+
const sizeValueHeight = {
|
|
236
|
+
large: 48,
|
|
237
|
+
medium: 36,
|
|
238
|
+
small: 24
|
|
239
|
+
};
|
|
240
|
+
const sizeVariants = {
|
|
241
|
+
large: "h6",
|
|
242
|
+
medium: "body1",
|
|
243
|
+
small: "body2"
|
|
244
|
+
};
|
|
245
|
+
return /* @__PURE__ */ import_react6.default.createElement(import_react_flexbox5.FlexRow, {
|
|
246
|
+
ref,
|
|
247
|
+
flexDirection: "column",
|
|
248
|
+
minWidth: 0,
|
|
249
|
+
alignItems: "stretch",
|
|
250
|
+
overflow: "hidden",
|
|
251
|
+
...props
|
|
252
|
+
}, title === void 0 ? null : /* @__PURE__ */ import_react6.default.createElement(PropertyTitle, {
|
|
253
|
+
tip,
|
|
254
|
+
title: required ? `${title}*` : title,
|
|
255
|
+
size,
|
|
256
|
+
more: /* @__PURE__ */ import_react6.default.createElement(PropertyActionsMenu, {
|
|
257
|
+
actions
|
|
258
|
+
}),
|
|
259
|
+
...titleProps
|
|
260
|
+
}), /* @__PURE__ */ import_react6.default.createElement(import_react_flexbox5.FlexRow, {
|
|
261
|
+
pl: 1,
|
|
262
|
+
columnGap: 1,
|
|
263
|
+
justifyContent: value === void 0 ? "center" : "space-between",
|
|
264
|
+
overflow: "hidden",
|
|
265
|
+
height: sizeValueHeight[size]
|
|
266
|
+
}, children ?? value === void 0 ? /* @__PURE__ */ import_react6.default.createElement(import_material5.CircularProgress, {
|
|
267
|
+
size: 16
|
|
268
|
+
}) : /* @__PURE__ */ import_react6.default.createElement(PropertyValue, {
|
|
269
|
+
value,
|
|
270
|
+
typographyVariant: sizeVariants[size]
|
|
271
|
+
}), value === void 0 ? null : badge ? /* @__PURE__ */ import_react6.default.createElement(IdenticonCorner, {
|
|
272
|
+
value
|
|
273
|
+
}) : null));
|
|
274
|
+
});
|
|
214
275
|
PropertyBox.displayName = "PropertyBox";
|
|
215
|
-
var PropertyPaper = (0,
|
|
216
|
-
return /* @__PURE__ */
|
|
276
|
+
var PropertyPaper = /* @__PURE__ */ (0, import_react6.forwardRef)(({ style, variant, elevation = 2, square, ...props }, ref) => {
|
|
277
|
+
return /* @__PURE__ */ import_react6.default.createElement(import_material5.Paper, {
|
|
278
|
+
ref,
|
|
279
|
+
style: {
|
|
280
|
+
minWidth: 0,
|
|
281
|
+
overflow: "hidden",
|
|
282
|
+
...style
|
|
283
|
+
},
|
|
284
|
+
variant,
|
|
285
|
+
elevation,
|
|
286
|
+
square
|
|
287
|
+
}, /* @__PURE__ */ import_react6.default.createElement(PropertyBox, {
|
|
288
|
+
...props,
|
|
289
|
+
paper: false
|
|
290
|
+
}));
|
|
217
291
|
});
|
|
218
292
|
PropertyPaper.displayName = "PropertyPaper";
|
|
219
|
-
var Property = (0,
|
|
220
|
-
return props.paper ? /* @__PURE__ */
|
|
293
|
+
var Property = /* @__PURE__ */ (0, import_react6.forwardRef)((props, ref) => {
|
|
294
|
+
return props.paper ? /* @__PURE__ */ import_react6.default.createElement(PropertyPaper, {
|
|
295
|
+
ref,
|
|
296
|
+
...props
|
|
297
|
+
}) : /* @__PURE__ */ import_react6.default.createElement(PropertyBox, {
|
|
298
|
+
ref,
|
|
299
|
+
...props
|
|
300
|
+
});
|
|
221
301
|
});
|
|
222
302
|
Property.displayName = "Property";
|
|
223
303
|
//# sourceMappingURL=index.cjs.map
|