@lamenna/lxp-shared-components 0.0.1

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/README.md ADDED
@@ -0,0 +1,42 @@
1
+ # @lamenna/lxp-shared-components
2
+
3
+ Shared component logic and types for LXP. This package contains platform-agnostic component logic, interfaces, and utilities that can be consumed by React, React Native, and Angular implementations.
4
+
5
+ ## Architecture
6
+
7
+ The shared components package exports:
8
+
9
+ - **Component Types**: TypeScript interfaces and prop definitions
10
+ - **Component Logic**: Platform-agnostic business logic and utilities
11
+ - **Component Configuration**: Default styles and behavior configurations
12
+
13
+ ## Usage
14
+
15
+ Each platform (React, React Native, Angular) imports interfaces and logic from this package and implements platform-specific UI rendering.
16
+
17
+ ### Example Structure
18
+
19
+ ```
20
+ shared-components/
21
+ ├── Button/
22
+ │ ├── types.ts # ButtonProps interface
23
+ │ ├── config.ts # Default configuration
24
+ │ ├── logic.ts # Business logic (optional)
25
+ │ └── index.ts # Exports
26
+ ```
27
+
28
+ Then in platform-specific packages:
29
+
30
+ ```
31
+ react/components/Button/
32
+ ├── Button.tsx # React implementation using types from shared
33
+ react-native/components/Button/
34
+ ├── Button.tsx # React Native implementation using types from shared
35
+ angular/components/button/
36
+ ├── button.component.ts # Angular implementation using types from shared
37
+ ```
38
+
39
+ ## Components
40
+
41
+ - **Button**: Reusable button component across all platforms
42
+ - *Add more components here as they're created*
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Button Component Tests - Shared Components
3
+ *
4
+ * This test suite validates the Button component's shared configuration,
5
+ * types, and core logic that all platform implementations depend on.
6
+ */
7
+ //# sourceMappingURL=button.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"button.test.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/__tests__/button.test.ts"],"names":[],"mappings":"AAAA;;;;;GAKG"}
@@ -0,0 +1,71 @@
1
+ "use strict";
2
+ /**
3
+ * Button Component Tests - Shared Components
4
+ *
5
+ * This test suite validates the Button component's shared configuration,
6
+ * types, and core logic that all platform implementations depend on.
7
+ */
8
+ describe('Button Component (Shared)', () => {
9
+ describe('Module Imports', () => {
10
+ it('should be able to import button config', () => {
11
+ const { buttonConfig } = require('../index');
12
+ expect(buttonConfig).toBeDefined();
13
+ });
14
+ it('should export button configuration with variants', () => {
15
+ const { buttonConfig } = require('../index');
16
+ expect(buttonConfig.variants).toBeDefined();
17
+ expect(buttonConfig.variants.primary).toBeDefined();
18
+ expect(buttonConfig.variants.secondary).toBeDefined();
19
+ });
20
+ it('should export button configuration with sizes', () => {
21
+ const { buttonConfig } = require('../index');
22
+ expect(buttonConfig.sizes).toBeDefined();
23
+ expect(buttonConfig.sizes.sm).toBeDefined();
24
+ expect(buttonConfig.sizes.md).toBeDefined();
25
+ expect(buttonConfig.sizes.lg).toBeDefined();
26
+ });
27
+ it('should have common button styles', () => {
28
+ const { buttonConfig } = require('../index');
29
+ expect(buttonConfig.common).toBeDefined();
30
+ expect(buttonConfig.common.borderRadius).toBeDefined();
31
+ expect(buttonConfig.common.fontWeight).toBe(500);
32
+ expect(buttonConfig.common.cursor).toBe('pointer');
33
+ });
34
+ it('primary variant should have correct colors', () => {
35
+ const { buttonConfig } = require('../index');
36
+ const primary = buttonConfig.variants.primary;
37
+ expect(primary.backgroundColor).toBeDefined();
38
+ expect(primary.color).toBe('white');
39
+ });
40
+ it('secondary variant should have correct colors', () => {
41
+ const { buttonConfig } = require('../index');
42
+ const secondary = buttonConfig.variants.secondary;
43
+ expect(secondary.backgroundColor).toBeDefined();
44
+ expect(secondary.color).toBe('white');
45
+ });
46
+ it('small size should have correct dimensions', () => {
47
+ const { buttonConfig } = require('../index');
48
+ const sm = buttonConfig.sizes.sm;
49
+ expect(sm.height).toBe('28px');
50
+ expect(sm.fontSize).toBe('12px');
51
+ });
52
+ it('medium size should have correct dimensions', () => {
53
+ const { buttonConfig } = require('../index');
54
+ const md = buttonConfig.sizes.md;
55
+ expect(md.height).toBe('36px');
56
+ expect(md.fontSize).toBe('14px');
57
+ });
58
+ it('large size should have correct dimensions', () => {
59
+ const { buttonConfig } = require('../index');
60
+ const lg = buttonConfig.sizes.lg;
61
+ expect(lg.height).toBe('44px');
62
+ expect(lg.fontSize).toBe('16px');
63
+ });
64
+ });
65
+ describe('Test Infrastructure', () => {
66
+ it('should have working test setup', () => {
67
+ expect(true).toBe(true);
68
+ });
69
+ });
70
+ });
71
+ //# sourceMappingURL=button.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"button.test.js","sourceRoot":"","sources":["../../../../src/components/Button/__tests__/button.test.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;AAEH,QAAQ,CAAC,2BAA2B,EAAE,GAAG,EAAE;IACzC,QAAQ,CAAC,gBAAgB,EAAE,GAAG,EAAE;QAC9B,EAAE,CAAC,wCAAwC,EAAE,GAAG,EAAE;YAChD,MAAM,EAAE,YAAY,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;YAC7C,MAAM,CAAC,YAAY,CAAC,CAAC,WAAW,EAAE,CAAC;QACrC,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,kDAAkD,EAAE,GAAG,EAAE;YAC1D,MAAM,EAAE,YAAY,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;YAC7C,MAAM,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC,WAAW,EAAE,CAAC;YAC5C,MAAM,CAAC,YAAY,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,WAAW,EAAE,CAAC;YACpD,MAAM,CAAC,YAAY,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,WAAW,EAAE,CAAC;QACxD,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,+CAA+C,EAAE,GAAG,EAAE;YACvD,MAAM,EAAE,YAAY,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;YAC7C,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,WAAW,EAAE,CAAC;YACzC,MA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AC;IACL,CAAC,CAAC,CAAC;IAEH,QAAQ,CAAC,qBAAqB,EAAE,GAAG,EAAE;QACnC,EAAE,CAAC,gCAAgC,EAAE,GAAG,EAAE;YACxC,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC1B,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Button Component Configuration
3
+ * Default styles and configuration for button components
4
+ */
5
+ export declare const buttonConfig: {
6
+ readonly variants: {
7
+ readonly primary: {
8
+ readonly backgroundColor: string;
9
+ readonly color: "white";
10
+ readonly borderColor: "transparent";
11
+ };
12
+ readonly secondary: {
13
+ readonly backgroundColor: string;
14
+ readonly color: "white";
15
+ readonly borderColor: "transparent";
16
+ };
17
+ };
18
+ readonly sizes: {
19
+ readonly sm: {
20
+ readonly padding: `${string} ${string}`;
21
+ readonly fontSize: "12px";
22
+ readonly height: "28px";
23
+ };
24
+ readonly md: {
25
+ readonly padding: `${string} ${string}`;
26
+ readonly fontSize: "14px";
27
+ readonly height: "36px";
28
+ };
29
+ readonly lg: {
30
+ readonly padding: `${string} ${string}`;
31
+ readonly fontSize: "16px";
32
+ readonly height: "44px";
33
+ };
34
+ };
35
+ readonly common: {
36
+ readonly borderRadius: string;
37
+ readonly border: "none";
38
+ readonly fontWeight: 500;
39
+ readonly cursor: "pointer";
40
+ readonly transition: "opacity 0.2s";
41
+ readonly activeOpacity: 0.7;
42
+ };
43
+ };
44
+ //# sourceMappingURL=config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/components/Button/config.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsCf,CAAC"}
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Button Component Configuration
3
+ * Default styles and configuration for button components
4
+ */
5
+ import { tokens } from "@lamenna/lxp-tokens";
6
+ export const buttonConfig = {
7
+ variants: {
8
+ primary: {
9
+ backgroundColor: tokens.color.primary[500],
10
+ color: "white",
11
+ borderColor: "transparent",
12
+ },
13
+ secondary: {
14
+ backgroundColor: tokens.color.secondary[500],
15
+ color: "white",
16
+ borderColor: "transparent",
17
+ },
18
+ },
19
+ sizes: {
20
+ sm: {
21
+ padding: `${tokens.spacing.xs} ${tokens.spacing.sm}`,
22
+ fontSize: "12px",
23
+ height: "28px",
24
+ },
25
+ md: {
26
+ padding: `${tokens.spacing.sm} ${tokens.spacing.md}`,
27
+ fontSize: "14px",
28
+ height: "36px",
29
+ },
30
+ lg: {
31
+ padding: `${tokens.spacing.md} ${tokens.spacing.lg}`,
32
+ fontSize: "16px",
33
+ height: "44px",
34
+ },
35
+ },
36
+ common: {
37
+ borderRadius: tokens.borderRadius.md,
38
+ border: "none",
39
+ fontWeight: 500,
40
+ cursor: "pointer",
41
+ transition: "opacity 0.2s",
42
+ activeOpacity: 0.7,
43
+ },
44
+ };
45
+ //# sourceMappingURL=config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/components/Button/config.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,eAAe,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC;YAC1C,KAAK,EAAE,OAAO;YACd,WAAW,EAAE,aAAa;SAC3B;QACD,SAAS,EAAE;YACT,eAAe,EAAE,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC;YAC5C,KAAK,EAAE,OAAO;YACd,WAAW,EAAE,aAAa;SAC3B;KACF;IACD,KAAK,EAAE;QACL,EAAE,EAAE;YACF,OAAO,EAAE,GAAG,MAAM,CAAC,OAAO,CAAC,EAAE,IAAI,MAAM,CAAC,OAAO,CAAC,EAAE,EAAE;YACpD,QAAQ,EAAE,MAAM;YAChB,MAAM,EAAE,MAAM;SACf;QACD,EAAE,EAAE;YACF,OAAO,EAAE,GAAG,MAAM,CAAC,OAAO,CAAC,EAAE,IAAI,MAAM,CAAC,OAAO,CAAC,EAAE,EAAE;YACpD,QAAQ,EAAE,MAAM;YAChB,MAAM,EAAE,MAAM;SACf;QACD,EAAE,EAAE;YACF,OAAO,EAAE,GAAG,MAAM,CAAC,OAAO,CAAC,EAAE,IAAI,MAAM,CAAC,OAAO,CAAC,EAAE,EAAE;YACpD,QAAQ,EAAE,MAAM;YAChB,MAAM,EAAE,MAAM;SACf;KACF;IACD,MAAM,EAAE;QACN,YAAY,EAAE,MAAM,CAAC,YAAY,CAAC,EAAE;QACpC,MAAM,EAAE,MAAM;QACd,UAAU,EAAE,GAAG;QACf,MAAM,EAAE,SAAS;QACjB,UAAU,EAAE,cAAc;QAC1B,aAAa,EAAE,GAAG;KACnB;CACO,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { buttonConfig } from "./config";
2
+ export type { BaseButtonProps, ReactButtonProps, ReactNativeButtonProps, AngularButtonProps, ButtonVariant, ButtonSize, } from "./types";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,YAAY,EACV,eAAe,EACf,gBAAgB,EAChB,sBAAsB,EACtB,kBAAkB,EAClB,aAAa,EACb,UAAU,GACX,MAAM,SAAS,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { buttonConfig } from "./config";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC"}
@@ -0,0 +1,48 @@
1
+ /**
2
+ * Button Component Types
3
+ * Platform-agnostic interface for button components
4
+ */
5
+ export type ButtonVariant = "primary" | "secondary";
6
+ export type ButtonSize = "sm" | "md" | "lg";
7
+ /**
8
+ * Base button props that all platform implementations should support
9
+ */
10
+ export interface BaseButtonProps {
11
+ /** Button text or content - use children for more flexibility in UI implementations */
12
+ label?: string;
13
+ /** Visual variant of the button */
14
+ variant?: ButtonVariant;
15
+ /** Size of the button */
16
+ size?: ButtonSize;
17
+ /** Whether the button is disabled */
18
+ disabled?: boolean;
19
+ /** Optional CSS class name (for web implementations) */
20
+ className?: string;
21
+ /** Optional unique identifier */
22
+ id?: string;
23
+ /** Optional accessibility label */
24
+ ariaLabel?: string;
25
+ /** Test ID for testing purposes */
26
+ testID?: string;
27
+ }
28
+ /**
29
+ * React-specific button props
30
+ */
31
+ export interface ReactButtonProps extends BaseButtonProps {
32
+ children?: any;
33
+ onClick?: (e?: any) => void;
34
+ }
35
+ /**
36
+ * React Native-specific button props
37
+ */
38
+ export interface ReactNativeButtonProps extends BaseButtonProps {
39
+ children?: string;
40
+ onPress?: (e?: any) => void;
41
+ }
42
+ /**
43
+ * Angular-specific button props (simplified for directive/component)
44
+ */
45
+ export interface AngularButtonProps extends BaseButtonProps {
46
+ content?: string;
47
+ }
48
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Button/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,WAAW,CAAC;AACpD,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE5C;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,uFAAuF;IACvF,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,mCAAmC;IACnC,OAAO,CAAC,EAAE,aAAa,CAAC;IAExB,yBAAyB;IACzB,IAAI,CAAC,EAAE,UAAU,CAAC;IAElB,qCAAqC;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,wDAAwD;IACxD,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,iCAAiC;IACjC,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,mCAAmC;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,mCAAmC;IACnC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,gBAAiB,SAAQ,eAAe;IACvD,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;CAC7B;AAED;;GAEG;AACH,MAAM,WAAW,sBAAuB,SAAQ,eAAe;IAC7D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;CAC7B;AAED;;GAEG;AACH,MAAM,WAAW,kBAAmB,SAAQ,eAAe;IACzD,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Button Component Types
3
+ * Platform-agnostic interface for button components
4
+ */
5
+ export {};
6
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/components/Button/types.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
@@ -0,0 +1,2 @@
1
+ export * from "./components/Button";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,qBAAqB,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,3 @@
1
+ // Button component
2
+ export * from "./components/Button";
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,mBAAmB;AACnB,cAAc,qBAAqB,CAAC"}
package/package.json ADDED
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "@lamenna/lxp-shared-components",
3
+ "version": "0.0.1",
4
+ "description": "Shared component logic for LXP - reusable across React, React Native, and Angular",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "files": [
8
+ "dist"
9
+ ],
10
+ "publishConfig": {
11
+ "access": "public"
12
+ },
13
+ "dependencies": {
14
+ "@lamenna/lxp-tokens": "0.0.1"
15
+ },
16
+ "devDependencies": {
17
+ "@types/react": "18.2.79",
18
+ "typescript": "^5.3.3"
19
+ },
20
+ "scripts": {
21
+ "build": "tsc",
22
+ "dev": "tsc --watch",
23
+ "test": "jest",
24
+ "test:watch": "jest --watch",
25
+ "test:coverage": "jest --coverage",
26
+ "clean": "rm -rf dist"
27
+ }
28
+ }