@xyo-network/react-property 2.64.0-rc.2 → 2.64.0-rc.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/browser/components/Action.d.mts.map +1 -0
- package/dist/browser/components/Action.d.ts.map +1 -0
- package/dist/browser/components/Action.js +1 -0
- package/dist/browser/components/Action.js.map +1 -0
- package/dist/browser/components/Actions.d.mts.map +1 -0
- package/dist/browser/components/Actions.d.ts.map +1 -0
- package/dist/browser/components/Actions.js +16 -0
- package/dist/browser/components/Actions.js.map +1 -0
- package/dist/browser/components/ActionsMenu.d.mts.map +1 -0
- package/dist/browser/components/ActionsMenu.d.ts.map +1 -0
- package/dist/browser/components/ActionsMenu.js +35 -0
- package/dist/browser/components/ActionsMenu.js.map +1 -0
- package/dist/browser/components/ActionsProps.d.mts.map +1 -0
- package/dist/browser/components/ActionsProps.d.ts.map +1 -0
- package/dist/browser/components/ActionsProps.js +1 -0
- package/dist/browser/components/ActionsProps.js.map +1 -0
- package/dist/browser/components/Group.d.mts.map +1 -0
- package/dist/browser/components/Group.d.ts.map +1 -0
- package/dist/browser/components/Group.js +25 -0
- package/dist/browser/components/Group.js.map +1 -0
- package/dist/browser/components/IdenticonCorner.d.mts.map +1 -0
- package/dist/browser/components/IdenticonCorner.d.ts.map +1 -0
- package/dist/browser/components/IdenticonCorner.js +19 -0
- package/dist/browser/components/IdenticonCorner.js.map +1 -0
- package/dist/browser/components/Property.d.mts.map +1 -0
- package/dist/browser/components/Property.d.ts.map +1 -0
- package/dist/browser/components/Property.js +61 -0
- package/dist/browser/components/Property.js.map +1 -0
- package/dist/browser/components/PropertyBox.stories.js +160 -0
- package/dist/browser/components/PropertyBox.stories.js.map +1 -0
- package/dist/browser/components/PropertyPaper.stories.js +178 -0
- package/dist/browser/components/PropertyPaper.stories.js.map +1 -0
- package/dist/browser/components/Props.d.mts.map +1 -0
- package/dist/browser/components/Props.d.ts.map +1 -0
- package/dist/browser/components/Props.js +1 -0
- package/dist/browser/components/Props.js.map +1 -0
- package/dist/browser/components/Title.d.mts.map +1 -0
- package/dist/browser/components/Title.d.ts.map +1 -0
- package/dist/browser/components/Title.js +47 -0
- package/dist/browser/components/Title.js.map +1 -0
- package/dist/browser/components/Title.stories.js +27 -0
- package/dist/browser/components/Title.stories.js.map +1 -0
- package/dist/browser/components/Value.d.mts.map +1 -0
- package/dist/browser/components/Value.d.ts.map +1 -0
- package/dist/browser/components/Value.js +11 -0
- package/dist/browser/components/Value.js.map +1 -0
- package/dist/browser/components/Value.stories.js +26 -0
- package/dist/browser/components/Value.stories.js.map +1 -0
- package/dist/browser/components/index.d.mts.map +1 -0
- package/dist/browser/components/index.d.ts.map +1 -0
- package/dist/browser/components/index.js +7 -0
- package/dist/browser/components/index.js.map +1 -0
- package/dist/{index.d.mts.map → browser/index.d.mts.map} +1 -1
- package/dist/{index.d.ts.map → browser/index.d.ts.map} +1 -1
- package/dist/browser/index.js +2 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/node/components/Action.d.mts +8 -0
- package/dist/node/components/Action.d.mts.map +1 -0
- package/dist/node/components/Action.d.ts +8 -0
- package/dist/node/components/Action.d.ts.map +1 -0
- package/dist/node/components/Action.js +17 -0
- package/dist/node/components/Action.js.map +1 -0
- package/dist/node/components/Action.mjs +1 -0
- package/dist/node/components/Action.mjs.map +1 -0
- package/dist/node/components/Actions.d.mts +4 -0
- package/dist/node/components/Actions.d.mts.map +1 -0
- package/dist/node/components/Actions.d.ts +4 -0
- package/dist/node/components/Actions.d.ts.map +1 -0
- package/dist/node/components/Actions.js +40 -0
- package/dist/node/components/Actions.js.map +1 -0
- package/dist/node/components/Actions.mjs +16 -0
- package/dist/node/components/Actions.mjs.map +1 -0
- package/dist/node/components/ActionsMenu.d.mts +4 -0
- package/dist/node/components/ActionsMenu.d.mts.map +1 -0
- package/dist/node/components/ActionsMenu.d.ts +4 -0
- package/dist/node/components/ActionsMenu.d.ts.map +1 -0
- package/dist/node/components/ActionsMenu.js +59 -0
- package/dist/node/components/ActionsMenu.js.map +1 -0
- package/dist/node/components/ActionsMenu.mjs +35 -0
- package/dist/node/components/ActionsMenu.mjs.map +1 -0
- package/dist/node/components/ActionsProps.d.mts +7 -0
- package/dist/node/components/ActionsProps.d.mts.map +1 -0
- package/dist/node/components/ActionsProps.d.ts +7 -0
- package/dist/node/components/ActionsProps.d.ts.map +1 -0
- package/dist/node/components/ActionsProps.js +17 -0
- package/dist/node/components/ActionsProps.js.map +1 -0
- package/dist/node/components/ActionsProps.mjs +1 -0
- package/dist/node/components/ActionsProps.mjs.map +1 -0
- package/dist/node/components/Group.d.mts +4 -0
- package/dist/node/components/Group.d.mts.map +1 -0
- package/dist/node/components/Group.d.ts +4 -0
- package/dist/node/components/Group.d.ts.map +1 -0
- package/dist/node/components/Group.js +49 -0
- package/dist/node/components/Group.js.map +1 -0
- package/dist/node/components/Group.mjs +25 -0
- package/dist/node/components/Group.mjs.map +1 -0
- package/dist/node/components/IdenticonCorner.d.mts +7 -0
- package/dist/node/components/IdenticonCorner.d.mts.map +1 -0
- package/dist/node/components/IdenticonCorner.d.ts +7 -0
- package/dist/node/components/IdenticonCorner.d.ts.map +1 -0
- package/dist/node/components/IdenticonCorner.js +43 -0
- package/dist/node/components/IdenticonCorner.js.map +1 -0
- package/dist/node/components/IdenticonCorner.mjs +19 -0
- package/dist/node/components/IdenticonCorner.mjs.map +1 -0
- package/dist/node/components/Property.d.mts +4 -0
- package/dist/node/components/Property.d.mts.map +1 -0
- package/dist/node/components/Property.d.ts +4 -0
- package/dist/node/components/Property.d.ts.map +1 -0
- package/dist/node/components/Property.js +85 -0
- package/dist/node/components/Property.js.map +1 -0
- package/dist/node/components/Property.mjs +61 -0
- package/dist/node/components/Property.mjs.map +1 -0
- package/dist/node/components/PropertyBox.stories.js +197 -0
- package/dist/node/components/PropertyBox.stories.js.map +1 -0
- package/dist/node/components/PropertyBox.stories.mjs +160 -0
- package/dist/node/components/PropertyBox.stories.mjs.map +1 -0
- package/dist/node/components/PropertyPaper.stories.js +217 -0
- package/dist/node/components/PropertyPaper.stories.js.map +1 -0
- package/dist/node/components/PropertyPaper.stories.mjs +178 -0
- package/dist/node/components/PropertyPaper.stories.mjs.map +1 -0
- package/dist/node/components/Props.d.mts +35 -0
- package/dist/node/components/Props.d.mts.map +1 -0
- package/dist/node/components/Props.d.ts +35 -0
- package/dist/node/components/Props.d.ts.map +1 -0
- package/dist/node/components/Props.js +17 -0
- package/dist/node/components/Props.js.map +1 -0
- package/dist/node/components/Props.mjs +1 -0
- package/dist/node/components/Props.mjs.map +1 -0
- package/dist/node/components/Title.d.mts +13 -0
- package/dist/node/components/Title.d.mts.map +1 -0
- package/dist/node/components/Title.d.ts +13 -0
- package/dist/node/components/Title.d.ts.map +1 -0
- package/dist/node/components/Title.js +71 -0
- package/dist/node/components/Title.js.map +1 -0
- package/dist/node/components/Title.mjs +47 -0
- package/dist/node/components/Title.mjs.map +1 -0
- package/dist/node/components/Title.stories.js +53 -0
- package/dist/node/components/Title.stories.js.map +1 -0
- package/dist/node/components/Title.stories.mjs +27 -0
- package/dist/node/components/Title.stories.mjs.map +1 -0
- package/dist/node/components/Value.d.mts +9 -0
- package/dist/node/components/Value.d.mts.map +1 -0
- package/dist/node/components/Value.d.ts +9 -0
- package/dist/node/components/Value.d.ts.map +1 -0
- package/dist/node/components/Value.js +35 -0
- package/dist/node/components/Value.js.map +1 -0
- package/dist/node/components/Value.mjs +11 -0
- package/dist/node/components/Value.mjs.map +1 -0
- package/dist/node/components/Value.stories.js +51 -0
- package/dist/node/components/Value.stories.js.map +1 -0
- package/dist/node/components/Value.stories.mjs +26 -0
- package/dist/node/components/Value.stories.mjs.map +1 -0
- package/dist/node/components/index.d.mts +7 -0
- package/dist/node/components/index.d.mts.map +1 -0
- package/dist/node/components/index.d.ts +7 -0
- package/dist/node/components/index.d.ts.map +1 -0
- package/dist/node/components/index.js +33 -0
- package/dist/node/components/index.js.map +1 -0
- package/dist/node/components/index.mjs +7 -0
- package/dist/node/components/index.mjs.map +1 -0
- package/dist/node/index.d.mts +2 -0
- package/dist/node/index.d.mts.map +1 -0
- package/dist/node/index.d.ts +2 -0
- package/dist/node/index.d.ts.map +1 -0
- package/dist/node/index.js +23 -0
- package/dist/node/index.js.map +1 -0
- package/dist/node/index.mjs +2 -0
- package/dist/node/index.mjs.map +1 -0
- package/package.json +23 -23
- package/dist/components/Action.d.mts.map +0 -1
- package/dist/components/Action.d.ts.map +0 -1
- package/dist/components/Actions.d.mts.map +0 -1
- package/dist/components/Actions.d.ts.map +0 -1
- package/dist/components/ActionsMenu.d.mts.map +0 -1
- package/dist/components/ActionsMenu.d.ts.map +0 -1
- package/dist/components/ActionsProps.d.mts.map +0 -1
- package/dist/components/ActionsProps.d.ts.map +0 -1
- package/dist/components/Group.d.mts.map +0 -1
- package/dist/components/Group.d.ts.map +0 -1
- package/dist/components/IdenticonCorner.d.mts.map +0 -1
- package/dist/components/IdenticonCorner.d.ts.map +0 -1
- package/dist/components/Property.d.mts.map +0 -1
- package/dist/components/Property.d.ts.map +0 -1
- package/dist/components/PropertyBox.stories.d.mts +0 -19
- package/dist/components/PropertyBox.stories.d.mts.map +0 -1
- package/dist/components/PropertyBox.stories.d.ts +0 -19
- package/dist/components/PropertyBox.stories.d.ts.map +0 -1
- package/dist/components/PropertyPaper.stories.d.mts +0 -22
- package/dist/components/PropertyPaper.stories.d.mts.map +0 -1
- package/dist/components/PropertyPaper.stories.d.ts +0 -22
- package/dist/components/PropertyPaper.stories.d.ts.map +0 -1
- package/dist/components/Props.d.mts.map +0 -1
- package/dist/components/Props.d.ts.map +0 -1
- package/dist/components/Title.d.mts.map +0 -1
- package/dist/components/Title.d.ts.map +0 -1
- package/dist/components/Title.stories.d.mts +0 -7
- package/dist/components/Title.stories.d.mts.map +0 -1
- package/dist/components/Title.stories.d.ts +0 -7
- package/dist/components/Title.stories.d.ts.map +0 -1
- package/dist/components/Value.d.mts.map +0 -1
- package/dist/components/Value.d.ts.map +0 -1
- package/dist/components/Value.stories.d.mts +0 -7
- package/dist/components/Value.stories.d.mts.map +0 -1
- package/dist/components/Value.stories.d.ts +0 -7
- package/dist/components/Value.stories.d.ts.map +0 -1
- package/dist/components/index.d.mts.map +0 -1
- package/dist/components/index.d.ts.map +0 -1
- package/dist/index.js +0 -225
- package/dist/index.js.map +0 -1
- package/dist/index.mjs +0 -195
- package/dist/index.mjs.map +0 -1
- /package/dist/{components → browser/components}/Action.d.mts +0 -0
- /package/dist/{components → browser/components}/Action.d.ts +0 -0
- /package/dist/{components → browser/components}/Actions.d.mts +0 -0
- /package/dist/{components → browser/components}/Actions.d.ts +0 -0
- /package/dist/{components → browser/components}/ActionsMenu.d.mts +0 -0
- /package/dist/{components → browser/components}/ActionsMenu.d.ts +0 -0
- /package/dist/{components → browser/components}/ActionsProps.d.mts +0 -0
- /package/dist/{components → browser/components}/ActionsProps.d.ts +0 -0
- /package/dist/{components → browser/components}/Group.d.mts +0 -0
- /package/dist/{components → browser/components}/Group.d.ts +0 -0
- /package/dist/{components → browser/components}/IdenticonCorner.d.mts +0 -0
- /package/dist/{components → browser/components}/IdenticonCorner.d.ts +0 -0
- /package/dist/{components → browser/components}/Property.d.mts +0 -0
- /package/dist/{components → browser/components}/Property.d.ts +0 -0
- /package/dist/{components → browser/components}/Props.d.mts +0 -0
- /package/dist/{components → browser/components}/Props.d.ts +0 -0
- /package/dist/{components → browser/components}/Title.d.mts +0 -0
- /package/dist/{components → browser/components}/Title.d.ts +0 -0
- /package/dist/{components → browser/components}/Value.d.mts +0 -0
- /package/dist/{components → browser/components}/Value.d.ts +0 -0
- /package/dist/{components → browser/components}/index.d.mts +0 -0
- /package/dist/{components → browser/components}/index.d.ts +0 -0
- /package/dist/{index.d.mts → browser/index.d.mts} +0 -0
- /package/dist/{index.d.ts → browser/index.d.ts} +0 -0
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { PaperProps } from '@mui/material';
|
|
2
|
+
import { FlexBoxProps } from '@xylabs/react-flexbox';
|
|
3
|
+
import { SizeProp } from '@xyo-network/react-shared';
|
|
4
|
+
import { ReactNode } from 'react';
|
|
5
|
+
import { PropertyAction } from './Action';
|
|
6
|
+
import { PropertyTitleProps } from './Title';
|
|
7
|
+
export interface PropertyBaseProps {
|
|
8
|
+
paper?: boolean;
|
|
9
|
+
tip?: ReactNode;
|
|
10
|
+
title?: string;
|
|
11
|
+
titleProps?: PropertyTitleProps;
|
|
12
|
+
}
|
|
13
|
+
export type PropertyFieldBaseProps = PropertyBaseProps & {
|
|
14
|
+
actions?: PropertyAction[];
|
|
15
|
+
badge?: boolean;
|
|
16
|
+
required?: boolean;
|
|
17
|
+
size?: SizeProp;
|
|
18
|
+
value?: string | number | boolean | null;
|
|
19
|
+
};
|
|
20
|
+
export type PropertyBoxProps = PropertyFieldBaseProps & FlexBoxProps & {
|
|
21
|
+
paper?: false;
|
|
22
|
+
};
|
|
23
|
+
export type PropertyPaperProps = PropertyFieldBaseProps & PaperProps & {
|
|
24
|
+
paper: true;
|
|
25
|
+
};
|
|
26
|
+
export type PropertyProps = PropertyBoxProps | PropertyPaperProps;
|
|
27
|
+
export type PropertyGroupBaseProps = PropertyBaseProps;
|
|
28
|
+
export type PropertyGroupBoxProps = PropertyGroupBaseProps & FlexBoxProps & {
|
|
29
|
+
paper?: false;
|
|
30
|
+
};
|
|
31
|
+
export type PropertyGroupPaperProps = PropertyGroupBaseProps & PaperProps & {
|
|
32
|
+
paper: true;
|
|
33
|
+
};
|
|
34
|
+
export type PropertyGroupProps = PropertyGroupBoxProps | PropertyGroupPaperProps;
|
|
35
|
+
//# sourceMappingURL=Props.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Props.d.ts","sourceRoot":"","sources":["../../../src/components/Props.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAA;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEjC,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAE5C,MAAM,WAAW,iBAAiB;IAChC,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,GAAG,CAAC,EAAE,SAAS,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE,kBAAkB,CAAA;CAChC;AAED,MAAM,MAAM,sBAAsB,GAAG,iBAAiB,GAAG;IACvD,OAAO,CAAC,EAAE,cAAc,EAAE,CAAA;IAC1B,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,QAAQ,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAA;CACzC,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG,sBAAsB,GACnD,YAAY,GAAG;IACb,KAAK,CAAC,EAAE,KAAK,CAAA;CACd,CAAA;AAEH,MAAM,MAAM,kBAAkB,GAAG,sBAAsB,GACrD,UAAU,GAAG;IACX,KAAK,EAAE,IAAI,CAAA;CACZ,CAAA;AAEH,MAAM,MAAM,aAAa,GAAG,gBAAgB,GAAG,kBAAkB,CAAA;AAEjE,MAAM,MAAM,sBAAsB,GAAG,iBAAiB,CAAA;AAEtD,MAAM,MAAM,qBAAqB,GAAG,sBAAsB,GACxD,YAAY,GAAG;IACb,KAAK,CAAC,EAAE,KAAK,CAAA;CACd,CAAA;AAEH,MAAM,MAAM,uBAAuB,GAAG,sBAAsB,GAC1D,UAAU,GAAG;IACX,KAAK,EAAE,IAAI,CAAA;CACZ,CAAA;AAEH,MAAM,MAAM,kBAAkB,GAAG,qBAAqB,GAAG,uBAAuB,CAAA"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { PaperProps } from '@mui/material';
|
|
2
|
+
import { FlexBoxProps } from '@xylabs/react-flexbox';
|
|
3
|
+
import { SizeProp } from '@xyo-network/react-shared';
|
|
4
|
+
import { ReactNode } from 'react';
|
|
5
|
+
import { PropertyAction } from './Action';
|
|
6
|
+
import { PropertyTitleProps } from './Title';
|
|
7
|
+
export interface PropertyBaseProps {
|
|
8
|
+
paper?: boolean;
|
|
9
|
+
tip?: ReactNode;
|
|
10
|
+
title?: string;
|
|
11
|
+
titleProps?: PropertyTitleProps;
|
|
12
|
+
}
|
|
13
|
+
export type PropertyFieldBaseProps = PropertyBaseProps & {
|
|
14
|
+
actions?: PropertyAction[];
|
|
15
|
+
badge?: boolean;
|
|
16
|
+
required?: boolean;
|
|
17
|
+
size?: SizeProp;
|
|
18
|
+
value?: string | number | boolean | null;
|
|
19
|
+
};
|
|
20
|
+
export type PropertyBoxProps = PropertyFieldBaseProps & FlexBoxProps & {
|
|
21
|
+
paper?: false;
|
|
22
|
+
};
|
|
23
|
+
export type PropertyPaperProps = PropertyFieldBaseProps & PaperProps & {
|
|
24
|
+
paper: true;
|
|
25
|
+
};
|
|
26
|
+
export type PropertyProps = PropertyBoxProps | PropertyPaperProps;
|
|
27
|
+
export type PropertyGroupBaseProps = PropertyBaseProps;
|
|
28
|
+
export type PropertyGroupBoxProps = PropertyGroupBaseProps & FlexBoxProps & {
|
|
29
|
+
paper?: false;
|
|
30
|
+
};
|
|
31
|
+
export type PropertyGroupPaperProps = PropertyGroupBaseProps & PaperProps & {
|
|
32
|
+
paper: true;
|
|
33
|
+
};
|
|
34
|
+
export type PropertyGroupProps = PropertyGroupBoxProps | PropertyGroupPaperProps;
|
|
35
|
+
//# sourceMappingURL=Props.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Props.d.ts","sourceRoot":"","sources":["../../../src/components/Props.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAA;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEjC,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAE5C,MAAM,WAAW,iBAAiB;IAChC,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,GAAG,CAAC,EAAE,SAAS,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE,kBAAkB,CAAA;CAChC;AAED,MAAM,MAAM,sBAAsB,GAAG,iBAAiB,GAAG;IACvD,OAAO,CAAC,EAAE,cAAc,EAAE,CAAA;IAC1B,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,QAAQ,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAA;CACzC,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG,sBAAsB,GACnD,YAAY,GAAG;IACb,KAAK,CAAC,EAAE,KAAK,CAAA;CACd,CAAA;AAEH,MAAM,MAAM,kBAAkB,GAAG,sBAAsB,GACrD,UAAU,GAAG;IACX,KAAK,EAAE,IAAI,CAAA;CACZ,CAAA;AAEH,MAAM,MAAM,aAAa,GAAG,gBAAgB,GAAG,kBAAkB,CAAA;AAEjE,MAAM,MAAM,sBAAsB,GAAG,iBAAiB,CAAA;AAEtD,MAAM,MAAM,qBAAqB,GAAG,sBAAsB,GACxD,YAAY,GAAG;IACb,KAAK,CAAC,EAAE,KAAK,CAAA;CACd,CAAA;AAEH,MAAM,MAAM,uBAAuB,GAAG,sBAAsB,GAC1D,UAAU,GAAG;IACX,KAAK,EAAE,IAAI,CAAA;CACZ,CAAA;AAEH,MAAM,MAAM,kBAAkB,GAAG,qBAAqB,GAAG,uBAAuB,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
var Props_exports = {};
|
|
16
|
+
module.exports = __toCommonJS(Props_exports);
|
|
17
|
+
//# sourceMappingURL=Props.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/Props.tsx"],"sourcesContent":["import { PaperProps } from '@mui/material'\nimport { FlexBoxProps } from '@xylabs/react-flexbox'\nimport { SizeProp } from '@xyo-network/react-shared'\nimport { ReactNode } from 'react'\n\nimport { PropertyAction } from './Action'\nimport { PropertyTitleProps } from './Title'\n\nexport interface PropertyBaseProps {\n paper?: boolean\n tip?: ReactNode\n title?: string\n titleProps?: PropertyTitleProps\n}\n\nexport type PropertyFieldBaseProps = PropertyBaseProps & {\n actions?: PropertyAction[]\n badge?: boolean\n required?: boolean\n size?: SizeProp\n value?: string | number | boolean | null\n}\n\nexport type PropertyBoxProps = PropertyFieldBaseProps &\n FlexBoxProps & {\n paper?: false\n }\n\nexport type PropertyPaperProps = PropertyFieldBaseProps &\n PaperProps & {\n paper: true\n }\n\nexport type PropertyProps = PropertyBoxProps | PropertyPaperProps\n\nexport type PropertyGroupBaseProps = PropertyBaseProps\n\nexport type PropertyGroupBoxProps = PropertyGroupBaseProps &\n FlexBoxProps & {\n paper?: false\n }\n\nexport type PropertyGroupPaperProps = PropertyGroupBaseProps &\n PaperProps & {\n paper: true\n }\n\nexport type PropertyGroupProps = PropertyGroupBoxProps | PropertyGroupPaperProps\n"],"mappings":";;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=Props.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FlexBoxProps } from '@xylabs/react-flexbox';
|
|
2
|
+
import { SizeProp } from '@xyo-network/react-shared';
|
|
3
|
+
import { ReactNode } from 'react';
|
|
4
|
+
export type TitleSizeProp = SizeProp | 'full';
|
|
5
|
+
export interface PropertyTitleProps extends FlexBoxProps {
|
|
6
|
+
elevation?: number;
|
|
7
|
+
more?: ReactNode;
|
|
8
|
+
size?: TitleSizeProp;
|
|
9
|
+
tip?: ReactNode;
|
|
10
|
+
title?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const PropertyTitle: React.FC<PropertyTitleProps>;
|
|
13
|
+
//# sourceMappingURL=Title.d.ts.map
|
|
@@ -0,0 +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;AAEjC,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,CAqDtD,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FlexBoxProps } from '@xylabs/react-flexbox';
|
|
2
|
+
import { SizeProp } from '@xyo-network/react-shared';
|
|
3
|
+
import { ReactNode } from 'react';
|
|
4
|
+
export type TitleSizeProp = SizeProp | 'full';
|
|
5
|
+
export interface PropertyTitleProps extends FlexBoxProps {
|
|
6
|
+
elevation?: number;
|
|
7
|
+
more?: ReactNode;
|
|
8
|
+
size?: TitleSizeProp;
|
|
9
|
+
tip?: ReactNode;
|
|
10
|
+
title?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const PropertyTitle: React.FC<PropertyTitleProps>;
|
|
13
|
+
//# sourceMappingURL=Title.d.ts.map
|
|
@@ -0,0 +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;AAEjC,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,CAqDtD,CAAA"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var Title_exports = {};
|
|
20
|
+
__export(Title_exports, {
|
|
21
|
+
PropertyTitle: () => PropertyTitle
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(Title_exports);
|
|
24
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
25
|
+
var import_material = require("@mui/material");
|
|
26
|
+
var import_react_flexbox = require("@xylabs/react-flexbox");
|
|
27
|
+
var import_react_quick_tip_button = require("@xylabs/react-quick-tip-button");
|
|
28
|
+
const PropertyTitle = ({ elevation = 1, size = "medium", tip, more, title, ...props }) => {
|
|
29
|
+
const sizeVariants = {
|
|
30
|
+
full: "caption",
|
|
31
|
+
large: "caption",
|
|
32
|
+
medium: "caption",
|
|
33
|
+
small: "caption"
|
|
34
|
+
};
|
|
35
|
+
const sizeTitleHeight = {
|
|
36
|
+
full: void 0,
|
|
37
|
+
large: 32,
|
|
38
|
+
medium: 20,
|
|
39
|
+
small: 16
|
|
40
|
+
};
|
|
41
|
+
const sizeFontSize = {
|
|
42
|
+
full: 16,
|
|
43
|
+
large: 16,
|
|
44
|
+
medium: 14,
|
|
45
|
+
small: 10
|
|
46
|
+
};
|
|
47
|
+
const quickTipSize = sizeFontSize[size] < 16 ? sizeFontSize[size] : 16;
|
|
48
|
+
const theme = (0, import_material.useTheme)();
|
|
49
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
50
|
+
import_react_flexbox.FlexRow,
|
|
51
|
+
{
|
|
52
|
+
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),
|
|
53
|
+
alignItems: "center",
|
|
54
|
+
height: sizeTitleHeight[size],
|
|
55
|
+
justifyContent: "space-between",
|
|
56
|
+
...props,
|
|
57
|
+
children: [
|
|
58
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react_flexbox.FlexRow, { paddingX: 1, paddingY: 0.5, children: [
|
|
59
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Typography, { fontWeight: 500, noWrap: true, variant: sizeVariants[size], fontSize: sizeFontSize[size], children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("small", { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("strong", { children: title }) }) }),
|
|
60
|
+
tip ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_quick_tip_button.QuickTipButton, { style: { fontSize: quickTipSize }, color: "inherit", title: title ?? "", children: tip }) : null
|
|
61
|
+
] }),
|
|
62
|
+
more
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
);
|
|
66
|
+
};
|
|
67
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
68
|
+
0 && (module.exports = {
|
|
69
|
+
PropertyTitle
|
|
70
|
+
});
|
|
71
|
+
//# sourceMappingURL=Title.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/Title.tsx"],"sourcesContent":["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"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAsDM;AAtDN,sBAAyE;AACzE,2BAAsC;AACtC,oCAA+B;AAcxB,MAAM,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,YAAQ,0BAAS;AAEvB,SACE;AAAA,IAAC;AAAA;AAAA,MACC,SACE,MAAM,QAAQ,SAAS,aACnB,yBAAQ,MAAM,QAAQ,WAAW,OAAO,OAAO,SAAS,QACxD,wBAAO,MAAM,QAAQ,WAAW,OAAO,QAAQ,SAAS;AAAA,MAE9D,YAAW;AAAA,MACX,QAAQ,gBAAgB,IAAI;AAAA,MAC5B,gBAAe;AAAA,MACd,GAAG;AAAA,MAEJ;AAAA,qDAAC,gCAAQ,UAAU,GAAG,UAAU,KAC9B;AAAA,sDAAC,8BAAW,YAAY,KAAK,QAAM,MAAC,SAAS,aAAa,IAAI,GAAG,UAAU,aAAa,IAAI,GAC1F,sDAAC,WACC,sDAAC,YAAQ,iBAAM,GACjB,GACF;AAAA,UACC,MACC,4CAAC,gDAAe,OAAO,EAAE,UAAU,aAAa,GAAG,OAAM,WAAU,OAAO,SAAS,IAChF,eACH,IACE;AAAA,WACN;AAAA,QACC;AAAA;AAAA;AAAA,EACH;AAEJ;","names":[]}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { darken, lighten, Typography, useTheme } from "@mui/material";
|
|
3
|
+
import { FlexRow } from "@xylabs/react-flexbox";
|
|
4
|
+
import { QuickTipButton } from "@xylabs/react-quick-tip-button";
|
|
5
|
+
const PropertyTitle = ({ elevation = 1, size = "medium", tip, more, title, ...props }) => {
|
|
6
|
+
const sizeVariants = {
|
|
7
|
+
full: "caption",
|
|
8
|
+
large: "caption",
|
|
9
|
+
medium: "caption",
|
|
10
|
+
small: "caption"
|
|
11
|
+
};
|
|
12
|
+
const sizeTitleHeight = {
|
|
13
|
+
full: void 0,
|
|
14
|
+
large: 32,
|
|
15
|
+
medium: 20,
|
|
16
|
+
small: 16
|
|
17
|
+
};
|
|
18
|
+
const sizeFontSize = {
|
|
19
|
+
full: 16,
|
|
20
|
+
large: 16,
|
|
21
|
+
medium: 14,
|
|
22
|
+
small: 10
|
|
23
|
+
};
|
|
24
|
+
const quickTipSize = sizeFontSize[size] < 16 ? sizeFontSize[size] : 16;
|
|
25
|
+
const theme = useTheme();
|
|
26
|
+
return /* @__PURE__ */ jsxs(
|
|
27
|
+
FlexRow,
|
|
28
|
+
{
|
|
29
|
+
bgcolor: theme.palette.mode === "dark" ? lighten(theme.palette.background.paper, 0.05 * elevation) : darken(theme.palette.background.paper, 0.025 * elevation),
|
|
30
|
+
alignItems: "center",
|
|
31
|
+
height: sizeTitleHeight[size],
|
|
32
|
+
justifyContent: "space-between",
|
|
33
|
+
...props,
|
|
34
|
+
children: [
|
|
35
|
+
/* @__PURE__ */ jsxs(FlexRow, { paddingX: 1, paddingY: 0.5, children: [
|
|
36
|
+
/* @__PURE__ */ jsx(Typography, { fontWeight: 500, noWrap: true, variant: sizeVariants[size], fontSize: sizeFontSize[size], children: /* @__PURE__ */ jsx("small", { children: /* @__PURE__ */ jsx("strong", { children: title }) }) }),
|
|
37
|
+
tip ? /* @__PURE__ */ jsx(QuickTipButton, { style: { fontSize: quickTipSize }, color: "inherit", title: title ?? "", children: tip }) : null
|
|
38
|
+
] }),
|
|
39
|
+
more
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
);
|
|
43
|
+
};
|
|
44
|
+
export {
|
|
45
|
+
PropertyTitle
|
|
46
|
+
};
|
|
47
|
+
//# sourceMappingURL=Title.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/Title.tsx"],"sourcesContent":["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"],"mappings":"AAsDM,SAGM,KAHN;AAtDN,SAAS,QAAQ,SAAS,YAA+B,gBAAgB;AACzE,SAAuB,eAAe;AACtC,SAAS,sBAAsB;AAcxB,MAAM,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,SACnB,QAAQ,MAAM,QAAQ,WAAW,OAAO,OAAO,SAAS,IACxD,OAAO,MAAM,QAAQ,WAAW,OAAO,QAAQ,SAAS;AAAA,MAE9D,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,GAC1F,8BAAC,WACC,8BAAC,YAAQ,iBAAM,GACjB,GACF;AAAA,UACC,MACC,oBAAC,kBAAe,OAAO,EAAE,UAAU,aAAa,GAAG,OAAM,WAAU,OAAO,SAAS,IAChF,eACH,IACE;AAAA,WACN;AAAA,QACC;AAAA;AAAA;AAAA,EACH;AAEJ;","names":[]}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var Title_stories_exports = {};
|
|
20
|
+
__export(Title_stories_exports, {
|
|
21
|
+
Default: () => Default,
|
|
22
|
+
WithData: () => WithData,
|
|
23
|
+
WithDataAndActions: () => WithDataAndActions,
|
|
24
|
+
default: () => Title_stories_default
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(Title_stories_exports);
|
|
27
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
28
|
+
var import_Title = require("./Title");
|
|
29
|
+
const StorybookEntry = {
|
|
30
|
+
argTypes: {},
|
|
31
|
+
component: import_Title.PropertyTitle,
|
|
32
|
+
parameters: {
|
|
33
|
+
docs: {
|
|
34
|
+
page: null
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
title: "property/Title"
|
|
38
|
+
};
|
|
39
|
+
const Template = (args) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Title.PropertyTitle, { ...args });
|
|
40
|
+
const Default = Template.bind({});
|
|
41
|
+
Default.args = {};
|
|
42
|
+
const WithData = Template.bind({});
|
|
43
|
+
WithData.args = { title: "Sample Title" };
|
|
44
|
+
const WithDataAndActions = Template.bind({});
|
|
45
|
+
WithDataAndActions.args = { title: "Sample Title" };
|
|
46
|
+
var Title_stories_default = StorybookEntry;
|
|
47
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
48
|
+
0 && (module.exports = {
|
|
49
|
+
Default,
|
|
50
|
+
WithData,
|
|
51
|
+
WithDataAndActions
|
|
52
|
+
});
|
|
53
|
+
//# sourceMappingURL=Title.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/Title.stories.tsx"],"sourcesContent":["import { Meta, StoryFn } from '@storybook/react'\n\nimport { PropertyTitle } from './Title'\n\nconst StorybookEntry = {\n argTypes: {},\n component: PropertyTitle,\n parameters: {\n docs: {\n page: null,\n },\n },\n title: 'property/Title',\n} as Meta<typeof PropertyTitle>\n\nconst Template: StoryFn<typeof PropertyTitle> = (args) => <PropertyTitle {...args}></PropertyTitle>\n\nconst Default = Template.bind({})\nDefault.args = {}\n\nconst WithData = Template.bind({})\n\nWithData.args = { title: 'Sample Title' }\n\nconst WithDataAndActions = Template.bind({})\n\nWithDataAndActions.args = { title: 'Sample Title' }\n\nexport { Default, WithData, WithDataAndActions }\n\n// eslint-disable-next-line import/no-default-export\nexport default StorybookEntry\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAe0D;AAb1D,mBAA8B;AAE9B,MAAM,iBAAiB;AAAA,EACrB,UAAU,CAAC;AAAA,EACX,WAAW;AAAA,EACX,YAAY;AAAA,IACV,MAAM;AAAA,MACJ,MAAM;AAAA,IACR;AAAA,EACF;AAAA,EACA,OAAO;AACT;AAEA,MAAM,WAA0C,CAAC,SAAS,4CAAC,8BAAe,GAAG,MAAM;AAEnF,MAAM,UAAU,SAAS,KAAK,CAAC,CAAC;AAChC,QAAQ,OAAO,CAAC;AAEhB,MAAM,WAAW,SAAS,KAAK,CAAC,CAAC;AAEjC,SAAS,OAAO,EAAE,OAAO,eAAe;AAExC,MAAM,qBAAqB,SAAS,KAAK,CAAC,CAAC;AAE3C,mBAAmB,OAAO,EAAE,OAAO,eAAe;AAKlD,IAAO,wBAAQ;","names":[]}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { PropertyTitle } from "./Title";
|
|
3
|
+
const StorybookEntry = {
|
|
4
|
+
argTypes: {},
|
|
5
|
+
component: PropertyTitle,
|
|
6
|
+
parameters: {
|
|
7
|
+
docs: {
|
|
8
|
+
page: null
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
title: "property/Title"
|
|
12
|
+
};
|
|
13
|
+
const Template = (args) => /* @__PURE__ */ jsx(PropertyTitle, { ...args });
|
|
14
|
+
const Default = Template.bind({});
|
|
15
|
+
Default.args = {};
|
|
16
|
+
const WithData = Template.bind({});
|
|
17
|
+
WithData.args = { title: "Sample Title" };
|
|
18
|
+
const WithDataAndActions = Template.bind({});
|
|
19
|
+
WithDataAndActions.args = { title: "Sample Title" };
|
|
20
|
+
var Title_stories_default = StorybookEntry;
|
|
21
|
+
export {
|
|
22
|
+
Default,
|
|
23
|
+
WithData,
|
|
24
|
+
WithDataAndActions,
|
|
25
|
+
Title_stories_default as default
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=Title.stories.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/Title.stories.tsx"],"sourcesContent":["import { Meta, StoryFn } from '@storybook/react'\n\nimport { PropertyTitle } from './Title'\n\nconst StorybookEntry = {\n argTypes: {},\n component: PropertyTitle,\n parameters: {\n docs: {\n page: null,\n },\n },\n title: 'property/Title',\n} as Meta<typeof PropertyTitle>\n\nconst Template: StoryFn<typeof PropertyTitle> = (args) => <PropertyTitle {...args}></PropertyTitle>\n\nconst Default = Template.bind({})\nDefault.args = {}\n\nconst WithData = Template.bind({})\n\nWithData.args = { title: 'Sample Title' }\n\nconst WithDataAndActions = Template.bind({})\n\nWithDataAndActions.args = { title: 'Sample Title' }\n\nexport { Default, WithData, WithDataAndActions }\n\n// eslint-disable-next-line import/no-default-export\nexport default StorybookEntry\n"],"mappings":"AAe0D;AAb1D,SAAS,qBAAqB;AAE9B,MAAM,iBAAiB;AAAA,EACrB,UAAU,CAAC;AAAA,EACX,WAAW;AAAA,EACX,YAAY;AAAA,IACV,MAAM;AAAA,MACJ,MAAM;AAAA,IACR;AAAA,EACF;AAAA,EACA,OAAO;AACT;AAEA,MAAM,WAA0C,CAAC,SAAS,oBAAC,iBAAe,GAAG,MAAM;AAEnF,MAAM,UAAU,SAAS,KAAK,CAAC,CAAC;AAChC,QAAQ,OAAO,CAAC;AAEhB,MAAM,WAAW,SAAS,KAAK,CAAC,CAAC;AAEjC,SAAS,OAAO,EAAE,OAAO,eAAe;AAExC,MAAM,qBAAqB,SAAS,KAAK,CAAC,CAAC;AAE3C,mBAAmB,OAAO,EAAE,OAAO,eAAe;AAKlD,IAAO,wBAAQ;","names":[]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { Variant } from '@mui/material/styles/createTypography';
|
|
3
|
+
import { EllipsizeBoxProps } from '@xyo-network/react-shared';
|
|
4
|
+
export interface PropertyValueProps extends Omit<EllipsizeBoxProps, 'ref'> {
|
|
5
|
+
typographyVariant?: Variant;
|
|
6
|
+
value?: string | number | boolean | null;
|
|
7
|
+
}
|
|
8
|
+
export declare const PropertyValue: import("react").ForwardRefExoticComponent<PropertyValueProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
|
+
//# sourceMappingURL=Value.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Value.d.ts","sourceRoot":"","sources":["../../../src/components/Value.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAA;AACpE,OAAO,EAAgB,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAG3E,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,+GAMxB,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { Variant } from '@mui/material/styles/createTypography';
|
|
3
|
+
import { EllipsizeBoxProps } from '@xyo-network/react-shared';
|
|
4
|
+
export interface PropertyValueProps extends Omit<EllipsizeBoxProps, 'ref'> {
|
|
5
|
+
typographyVariant?: Variant;
|
|
6
|
+
value?: string | number | boolean | null;
|
|
7
|
+
}
|
|
8
|
+
export declare const PropertyValue: import("react").ForwardRefExoticComponent<PropertyValueProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
|
+
//# sourceMappingURL=Value.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Value.d.ts","sourceRoot":"","sources":["../../../src/components/Value.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAA;AACpE,OAAO,EAAgB,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAG3E,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,+GAMxB,CAAA"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var Value_exports = {};
|
|
20
|
+
__export(Value_exports, {
|
|
21
|
+
PropertyValue: () => PropertyValue
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(Value_exports);
|
|
24
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
25
|
+
var import_react_shared = require("@xyo-network/react-shared");
|
|
26
|
+
var import_react = require("react");
|
|
27
|
+
const PropertyValue = (0, import_react.forwardRef)(({ typographyVariant = "body1", value, ...props }, ref) => {
|
|
28
|
+
return value !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_shared.EllipsizeBox, { typographyProps: { component: void 0, title: value?.toString(), variant: typographyVariant }, width: "100%", ref, ...props, children: value }) : null;
|
|
29
|
+
});
|
|
30
|
+
PropertyValue.displayName = "PropertyValue";
|
|
31
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
32
|
+
0 && (module.exports = {
|
|
33
|
+
PropertyValue
|
|
34
|
+
});
|
|
35
|
+
//# sourceMappingURL=Value.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/Value.tsx"],"sourcesContent":["import type { Variant } from '@mui/material/styles/createTypography'\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 ? (\n <EllipsizeBox typographyProps={{ component: undefined, title: value?.toString(), variant: typographyVariant }} width=\"100%\" ref={ref} {...props}>\n {value}\n </EllipsizeBox>\n ) : null\n})\n\nPropertyValue.displayName = 'PropertyValue'\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAWI;AAVJ,0BAAgD;AAChD,mBAA2B;AAOpB,MAAM,oBAAgB,yBAA+C,CAAC,EAAE,oBAAoB,SAAS,OAAO,GAAG,MAAM,GAAG,QAAQ;AACrI,SAAO,UAAU,SACf,4CAAC,oCAAa,iBAAiB,EAAE,WAAW,QAAW,OAAO,OAAO,SAAS,GAAG,SAAS,kBAAkB,GAAG,OAAM,QAAO,KAAW,GAAG,OACvI,iBACH,IACE;AACN,CAAC;AAED,cAAc,cAAc;","names":[]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { EllipsizeBox } from "@xyo-network/react-shared";
|
|
3
|
+
import { forwardRef } from "react";
|
|
4
|
+
const PropertyValue = forwardRef(({ typographyVariant = "body1", value, ...props }, ref) => {
|
|
5
|
+
return value !== void 0 ? /* @__PURE__ */ jsx(EllipsizeBox, { typographyProps: { component: void 0, title: value?.toString(), variant: typographyVariant }, width: "100%", ref, ...props, children: value }) : null;
|
|
6
|
+
});
|
|
7
|
+
PropertyValue.displayName = "PropertyValue";
|
|
8
|
+
export {
|
|
9
|
+
PropertyValue
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=Value.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/Value.tsx"],"sourcesContent":["import type { Variant } from '@mui/material/styles/createTypography'\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 ? (\n <EllipsizeBox typographyProps={{ component: undefined, title: value?.toString(), variant: typographyVariant }} width=\"100%\" ref={ref} {...props}>\n {value}\n </EllipsizeBox>\n ) : null\n})\n\nPropertyValue.displayName = 'PropertyValue'\n"],"mappings":"AAWI;AAVJ,SAAS,oBAAuC;AAChD,SAAS,kBAAkB;AAOpB,MAAM,gBAAgB,WAA+C,CAAC,EAAE,oBAAoB,SAAS,OAAO,GAAG,MAAM,GAAG,QAAQ;AACrI,SAAO,UAAU,SACf,oBAAC,gBAAa,iBAAiB,EAAE,WAAW,QAAW,OAAO,OAAO,SAAS,GAAG,SAAS,kBAAkB,GAAG,OAAM,QAAO,KAAW,GAAG,OACvI,iBACH,IACE;AACN,CAAC;AAED,cAAc,cAAc;","names":[]}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var Value_stories_exports = {};
|
|
20
|
+
__export(Value_stories_exports, {
|
|
21
|
+
Default: () => Default,
|
|
22
|
+
WithData: () => WithData,
|
|
23
|
+
default: () => Value_stories_default
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(Value_stories_exports);
|
|
26
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
27
|
+
var import_payload_wrapper = require("@xyo-network/payload-wrapper");
|
|
28
|
+
var import_react_storybook = require("@xyo-network/react-storybook");
|
|
29
|
+
var import_Value = require("./Value");
|
|
30
|
+
const StorybookEntry = {
|
|
31
|
+
argTypes: {},
|
|
32
|
+
component: import_Value.PropertyValue,
|
|
33
|
+
parameters: {
|
|
34
|
+
docs: {
|
|
35
|
+
page: null
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
title: "property/Value"
|
|
39
|
+
};
|
|
40
|
+
const Template = (args) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Value.PropertyValue, { ...args });
|
|
41
|
+
const Default = Template.bind({});
|
|
42
|
+
Default.args = {};
|
|
43
|
+
const WithData = Template.bind({});
|
|
44
|
+
WithData.args = { value: import_payload_wrapper.PayloadWrapper.hashSync(import_react_storybook.sampleBlockWithPayloads) };
|
|
45
|
+
var Value_stories_default = StorybookEntry;
|
|
46
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
47
|
+
0 && (module.exports = {
|
|
48
|
+
Default,
|
|
49
|
+
WithData
|
|
50
|
+
});
|
|
51
|
+
//# sourceMappingURL=Value.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/Value.stories.tsx"],"sourcesContent":["import { Meta, StoryFn } from '@storybook/react'\nimport { PayloadWrapper } from '@xyo-network/payload-wrapper'\nimport { sampleBlockWithPayloads } from '@xyo-network/react-storybook'\n\nimport { PropertyValue } from './Value'\n\nconst StorybookEntry = {\n argTypes: {},\n component: PropertyValue,\n parameters: {\n docs: {\n page: null,\n },\n },\n title: 'property/Value',\n} as Meta<typeof PropertyValue>\n\nconst Template: StoryFn<typeof PropertyValue> = (args) => <PropertyValue {...args}></PropertyValue>\n\nconst Default = Template.bind({})\nDefault.args = {}\n\nconst WithData = Template.bind({})\n\nWithData.args = { value: PayloadWrapper.hashSync(sampleBlockWithPayloads) }\n\nexport { Default, WithData }\n\n// eslint-disable-next-line import/no-default-export\nexport default StorybookEntry\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAiB0D;AAhB1D,6BAA+B;AAC/B,6BAAwC;AAExC,mBAA8B;AAE9B,MAAM,iBAAiB;AAAA,EACrB,UAAU,CAAC;AAAA,EACX,WAAW;AAAA,EACX,YAAY;AAAA,IACV,MAAM;AAAA,MACJ,MAAM;AAAA,IACR;AAAA,EACF;AAAA,EACA,OAAO;AACT;AAEA,MAAM,WAA0C,CAAC,SAAS,4CAAC,8BAAe,GAAG,MAAM;AAEnF,MAAM,UAAU,SAAS,KAAK,CAAC,CAAC;AAChC,QAAQ,OAAO,CAAC;AAEhB,MAAM,WAAW,SAAS,KAAK,CAAC,CAAC;AAEjC,SAAS,OAAO,EAAE,OAAO,sCAAe,SAAS,8CAAuB,EAAE;AAK1E,IAAO,wBAAQ;","names":[]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { PayloadWrapper } from "@xyo-network/payload-wrapper";
|
|
3
|
+
import { sampleBlockWithPayloads } from "@xyo-network/react-storybook";
|
|
4
|
+
import { PropertyValue } from "./Value";
|
|
5
|
+
const StorybookEntry = {
|
|
6
|
+
argTypes: {},
|
|
7
|
+
component: PropertyValue,
|
|
8
|
+
parameters: {
|
|
9
|
+
docs: {
|
|
10
|
+
page: null
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
title: "property/Value"
|
|
14
|
+
};
|
|
15
|
+
const Template = (args) => /* @__PURE__ */ jsx(PropertyValue, { ...args });
|
|
16
|
+
const Default = Template.bind({});
|
|
17
|
+
Default.args = {};
|
|
18
|
+
const WithData = Template.bind({});
|
|
19
|
+
WithData.args = { value: PayloadWrapper.hashSync(sampleBlockWithPayloads) };
|
|
20
|
+
var Value_stories_default = StorybookEntry;
|
|
21
|
+
export {
|
|
22
|
+
Default,
|
|
23
|
+
WithData,
|
|
24
|
+
Value_stories_default as default
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=Value.stories.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/Value.stories.tsx"],"sourcesContent":["import { Meta, StoryFn } from '@storybook/react'\nimport { PayloadWrapper } from '@xyo-network/payload-wrapper'\nimport { sampleBlockWithPayloads } from '@xyo-network/react-storybook'\n\nimport { PropertyValue } from './Value'\n\nconst StorybookEntry = {\n argTypes: {},\n component: PropertyValue,\n parameters: {\n docs: {\n page: null,\n },\n },\n title: 'property/Value',\n} as Meta<typeof PropertyValue>\n\nconst Template: StoryFn<typeof PropertyValue> = (args) => <PropertyValue {...args}></PropertyValue>\n\nconst Default = Template.bind({})\nDefault.args = {}\n\nconst WithData = Template.bind({})\n\nWithData.args = { value: PayloadWrapper.hashSync(sampleBlockWithPayloads) }\n\nexport { Default, WithData }\n\n// eslint-disable-next-line import/no-default-export\nexport default StorybookEntry\n"],"mappings":"AAiB0D;AAhB1D,SAAS,sBAAsB;AAC/B,SAAS,+BAA+B;AAExC,SAAS,qBAAqB;AAE9B,MAAM,iBAAiB;AAAA,EACrB,UAAU,CAAC;AAAA,EACX,WAAW;AAAA,EACX,YAAY;AAAA,IACV,MAAM;AAAA,MACJ,MAAM;AAAA,IACR;AAAA,EACF;AAAA,EACA,OAAO;AACT;AAEA,MAAM,WAA0C,CAAC,SAAS,oBAAC,iBAAe,GAAG,MAAM;AAEnF,MAAM,UAAU,SAAS,KAAK,CAAC,CAAC;AAChC,QAAQ,OAAO,CAAC;AAEhB,MAAM,WAAW,SAAS,KAAK,CAAC,CAAC;AAEjC,SAAS,OAAO,EAAE,OAAO,eAAe,SAAS,uBAAuB,EAAE;AAK1E,IAAO,wBAAQ;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,YAAY,CAAA;AAC1B,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,YAAY,CAAA;AAC1B,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
+
var components_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(components_exports);
|
|
18
|
+
__reExport(components_exports, require("./Action"), module.exports);
|
|
19
|
+
__reExport(components_exports, require("./Group"), module.exports);
|
|
20
|
+
__reExport(components_exports, require("./Property"), module.exports);
|
|
21
|
+
__reExport(components_exports, require("./Props"), module.exports);
|
|
22
|
+
__reExport(components_exports, require("./Title"), module.exports);
|
|
23
|
+
__reExport(components_exports, require("./Value"), module.exports);
|
|
24
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
25
|
+
0 && (module.exports = {
|
|
26
|
+
...require("./Action"),
|
|
27
|
+
...require("./Group"),
|
|
28
|
+
...require("./Property"),
|
|
29
|
+
...require("./Props"),
|
|
30
|
+
...require("./Title"),
|
|
31
|
+
...require("./Value")
|
|
32
|
+
});
|
|
33
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/index.ts"],"sourcesContent":["export * from './Action'\nexport * from './Group'\nexport * from './Property'\nexport * from './Props'\nexport * from './Title'\nexport * from './Value'\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,+BAAc,qBAAd;AACA,+BAAc,oBADd;AAEA,+BAAc,uBAFd;AAGA,+BAAc,oBAHd;AAIA,+BAAc,oBAJd;AAKA,+BAAc,oBALd;","names":[]}
|