@xyo-network/react-property 6.1.4 → 7.0.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.
@@ -1,67 +1,2 @@
1
- import React, { ReactNode } from 'react';
2
- import { PaperProps, TypographyVariant } from '@mui/material';
3
- import { FlexBoxProps } from '@xylabs/react-flexbox';
4
- import { SizeProp, EllipsizeBoxProps } from '@xyo-network/react-shared';
5
- import * as react_jsx_runtime from 'react/jsx-runtime';
6
-
7
- interface PropertyAction {
8
- disabled?: boolean;
9
- icon?: ReactNode;
10
- name: string;
11
- onClick?: () => void;
12
- }
13
-
14
- type TitleSizeProp = SizeProp | 'full';
15
- interface PropertyTitleProps extends FlexBoxProps {
16
- elevation?: number;
17
- more?: ReactNode;
18
- size?: TitleSizeProp;
19
- tip?: ReactNode;
20
- title?: string;
21
- }
22
- declare const PropertyTitle: React.FC<PropertyTitleProps>;
23
-
24
- interface PropertyBaseProps {
25
- paper?: boolean;
26
- tip?: ReactNode;
27
- title?: string;
28
- titleProps?: PropertyTitleProps;
29
- }
30
- type PropertyFieldBaseProps = PropertyBaseProps & {
31
- actions?: PropertyAction[];
32
- badge?: boolean;
33
- required?: boolean;
34
- size?: SizeProp;
35
- value?: string | number | boolean | null;
36
- };
37
- type PropertyBoxProps = PropertyFieldBaseProps & FlexBoxProps & {
38
- paper?: false;
39
- };
40
- type PropertyPaperProps = PropertyFieldBaseProps & PaperProps & {
41
- paper: true;
42
- };
43
- type PropertyProps = PropertyBoxProps | PropertyPaperProps;
44
- type PropertyGroupBaseProps = PropertyBaseProps;
45
- type PropertyGroupBoxProps = PropertyGroupBaseProps & FlexBoxProps & {
46
- paper?: false;
47
- };
48
- type PropertyGroupPaperProps = PropertyGroupBaseProps & PaperProps & {
49
- paper: true;
50
- };
51
- type PropertyGroupProps = PropertyGroupBoxProps | PropertyGroupPaperProps;
52
-
53
- declare const PropertyGroup: React.FC<PropertyGroupProps>;
54
-
55
- declare const Property: React.FC<PropertyProps>;
56
-
57
- interface PropertyValueProps extends EllipsizeBoxProps {
58
- typographyVariant?: TypographyVariant;
59
- value?: string | number | boolean | null;
60
- }
61
- declare const PropertyValue: {
62
- ({ ref, typographyVariant, value, ...props }: PropertyValueProps): react_jsx_runtime.JSX.Element | null;
63
- displayName: string;
64
- };
65
-
66
- export { Property, PropertyGroup, PropertyTitle, PropertyValue };
67
- export type { PropertyAction, PropertyBaseProps, PropertyBoxProps, PropertyFieldBaseProps, PropertyGroupBaseProps, PropertyGroupBoxProps, PropertyGroupPaperProps, PropertyGroupProps, PropertyPaperProps, PropertyProps, PropertyTitleProps, PropertyValueProps, TitleSizeProp };
1
+ export * from './components/index.ts';
2
+ //# sourceMappingURL=index.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/react-property",
3
- "version": "6.1.4",
3
+ "version": "7.0.0",
4
4
  "description": "Common React library for all XYO projects that use React",
5
5
  "keywords": [
6
6
  "xyo",
@@ -38,25 +38,29 @@
38
38
  },
39
39
  "module": "dist/browser/index.mjs",
40
40
  "types": "dist/browser/index.d.ts",
41
+ "files": [
42
+ "dist",
43
+ "src"
44
+ ],
41
45
  "dependencies": {
42
- "@xylabs/react-flexbox": "^6.3.13",
43
- "@xylabs/react-identicon": "^6.3.13",
44
- "@xylabs/react-quick-tip-button": "^6.3.13",
45
- "@xylabs/react-theme": "^6.3.13",
46
- "@xyo-network/react-shared": "^6.1.4",
47
- "@xyo-network/typeof": "^4.1.7"
46
+ "@xylabs/react-flexbox": "^7.0.0",
47
+ "@xylabs/react-identicon": "^7.0.0",
48
+ "@xylabs/react-quick-tip-button": "^7.0.0",
49
+ "@xylabs/react-theme": "^7.0.0",
50
+ "@xyo-network/react-shared": "^7.0.0",
51
+ "@xyo-network/typeof": "^5.0.0"
48
52
  },
49
53
  "devDependencies": {
50
54
  "@mui/icons-material": "^7.2.0",
51
55
  "@mui/material": "^7.2.0",
52
56
  "@storybook/react-vite": "^9.0.18",
53
- "@types/react": "^19.1.8",
54
- "@xylabs/react-button": "^6.3.13",
55
- "@xylabs/react-theme": "^6.3.13",
56
- "@xylabs/ts-scripts-yarn3": "next",
57
- "@xylabs/tsconfig-react": "next",
58
- "react": "^19.1.0",
59
- "react-dom": "^19.1.0",
57
+ "@types/react": "^19.1.9",
58
+ "@xylabs/react-button": "^7.0.0",
59
+ "@xylabs/react-theme": "^7.0.0",
60
+ "@xylabs/ts-scripts-yarn3": "^7.0.2",
61
+ "@xylabs/tsconfig-react": "^7.0.2",
62
+ "react": "^19.1.1",
63
+ "react-dom": "^19.1.1",
60
64
  "storybook": "^9.0.18",
61
65
  "typescript": "^5.8.3"
62
66
  },
package/src/global.d.ts CHANGED
@@ -1 +1 @@
1
- import type {} from '@mui/material/themeCssVarsAugmentation'
1
+ import '@mui/material/themeCssVarsAugmentation'
package/typedoc.json DELETED
@@ -1,5 +0,0 @@
1
- {
2
- "$schema": "https://typedoc.org/schema.json",
3
- "entryPoints": ["src/index.ts"],
4
- "tsconfig": "./tsconfig.typedoc.json"
5
- }
package/xy.config.ts DELETED
@@ -1,10 +0,0 @@
1
- import type { XyTsupConfig } from '@xylabs/ts-scripts-yarn3'
2
- const config: XyTsupConfig = {
3
- compile: {
4
- browser: { src: true },
5
- node: {},
6
- neutral: {},
7
- },
8
- }
9
-
10
- export default config