@golocalinteractive/golocal-cloud-wrapper 1.0.8 → 1.0.9

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 CHANGED
@@ -1,6 +1,6 @@
1
- # Go Local Cloud Wrapper
1
+ # Go Local Interactive Cloud Wrapper
2
2
 
3
- A React provider component for Go Local Interactive's cloud services.
3
+ A React provider component for Go Local Interactive's cloud services with built-in styling.
4
4
 
5
5
  ## Installation
6
6
 
@@ -8,22 +8,114 @@ A React provider component for Go Local Interactive's cloud services.
8
8
  npm install @golocalinteractive/golocal-cloud-wrapper
9
9
  ```
10
10
 
11
- This package requires the following peer dependencies to be installed in your project:
11
+ ## Usage
12
12
 
13
- ```bash
14
- npm install react react-dom
13
+ ### Basic Usage (Styles Auto-injected)
14
+
15
+ The styles are automatically included when you import the `GLICloudProvider`:
16
+
17
+ ```jsx
18
+ import { GLICloudProvider } from "@golocalinteractive/golocal-cloud-wrapper";
19
+
20
+ function App() {
21
+ return (
22
+ <GLICloudProvider>
23
+ <div>Your app content here</div>
24
+ </GLICloudProvider>
25
+ );
26
+ }
15
27
  ```
16
28
 
17
- ## Usage
29
+ ### Manual CSS Import (Alternative)
18
30
 
19
- ```tsx
20
- import { GLICloudProvider } from "golocal-cloud-wrapper";
31
+ If you prefer to manually control CSS imports, you can import the styles separately:
32
+
33
+ ```jsx
34
+ // Import styles first
35
+ import "@golocalinteractive/golocal-cloud-wrapper/styles";
36
+
37
+ // Then import the provider
38
+ import { GLICloudProvider } from "@golocalinteractive/golocal-cloud-wrapper";
21
39
 
22
40
  function App() {
23
- return <GLICloudProvider>{/* Your app content */}</GLICloudProvider>;
41
+ return (
42
+ <GLICloudProvider>
43
+ <div>Your app content here</div>
44
+ </GLICloudProvider>
45
+ );
24
46
  }
25
47
  ```
26
48
 
49
+ ## Features
50
+
51
+ - **Auto-injected Styles**: CSS is automatically included when importing the provider
52
+ - **Tailwind CSS**: Built with Tailwind CSS v4 for consistent styling
53
+ - **Custom Design System**: Includes GLI brand colors and design tokens
54
+ - **Responsive Design**: Mobile-first responsive components
55
+ - **Dark Mode Support**: Built-in dark mode support
56
+ - **Accessibility**: WCAG compliant components
57
+
58
+ ## Available CSS Variables
59
+
60
+ The package includes custom CSS variables for GLI branding:
61
+
62
+ ```css
63
+ /* GLI Colors */
64
+ --gli-blue: #e5f7ff;
65
+ --gli-blue-dark: #007db8;
66
+ --gli-orange: #fff6ef;
67
+ --gli-orange-dark: #f68029;
68
+ --gli-green: #edfad8;
69
+ --gli-gray-dark: #c2c2c2;
70
+
71
+ /* Organic Colors */
72
+ --organic-blue: #ecf3f8;
73
+ --organic-navy: #013760;
74
+ --organic-mid-blue: #1e6aa4;
75
+ --organic-light-blue: #95b5d0;
76
+
77
+ /* Paid Colors */
78
+ --paid-green: #5c792f;
79
+ --paid-green-light: #85b045;
80
+ --paid-lime: #ecfad6;
81
+ --paid-green-dark: #324715;
82
+ ```
83
+
84
+ ## Troubleshooting
85
+
86
+ ### Styles Not Applying
87
+
88
+ If styles aren't taking effect:
89
+
90
+ 1. **Check Import Order**: Make sure you're importing the provider correctly
91
+ 2. **CSS Conflicts**: Ensure no other CSS is overriding the styles
92
+ 3. **Build Process**: Verify your build process includes CSS processing
93
+ 4. **Browser Cache**: Clear browser cache and reload
94
+
95
+ ### Build Issues
96
+
97
+ If you encounter build issues:
98
+
99
+ 1. **PostCSS Config**: Ensure you have `@tailwindcss/postcss` installed
100
+ 2. **Tailwind Version**: This package uses Tailwind CSS v4
101
+ 3. **Node Version**: Requires Node.js 18+ for Tailwind CSS v4
102
+
103
+ ## Development
104
+
105
+ ```bash
106
+ # Install dependencies
107
+ npm install
108
+
109
+ # Build the package
110
+ npm run build
111
+
112
+ # Build for development
113
+ npm run build:dev
114
+
115
+ # Run tests
116
+ npm test
117
+ ```
118
+
27
119
  ## Available Components
28
120
 
29
121
  ### Providers
@@ -1,4 +1,5 @@
1
1
  import * as React from "react";
2
+ import "../index.css";
2
3
  export declare const GLICloudProvider: ({ children, }: {
3
4
  children: React.ReactNode;
4
5
  }) => import("react/jsx-runtime").JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"GLICloudProvider.d.ts","sourceRoot":"","sources":["../../src/providers/GLICloudProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,eAAO,MAAM,gBAAgB,GAAI,eAE9B;IACD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,4CAgBA,CAAC"}
1
+ {"version":3,"file":"GLICloudProvider.d.ts","sourceRoot":"","sources":["../../src/providers/GLICloudProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,OAAO,cAAc,CAAC;AAEtB,eAAO,MAAM,gBAAgB,GAAI,eAE9B;IACD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,4CAgBA,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@golocalinteractive/golocal-cloud-wrapper",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "A React provider component for Go Local Interactive's cloud services",
5
5
  "license": "ISC",
6
6
  "author": "Tanner Barrett",
@@ -8,7 +8,6 @@
8
8
  "main": "./dist/golocal-cloud-wrapper.es.js",
9
9
  "module": "./dist/golocal-cloud-wrapper.es.js",
10
10
  "types": "./dist/index.d.ts",
11
- "style": "./dist/golocal-cloud-wrapper.css",
12
11
  "files": [
13
12
  "dist",
14
13
  "README.md"
@@ -18,8 +17,7 @@
18
17
  "types": "./dist/index.d.ts",
19
18
  "import": "./dist/golocal-cloud-wrapper.es.js",
20
19
  "require": "./dist/golocal-cloud-wrapper.umd.js"
21
- },
22
- "./styles": "./dist/golocal-cloud-wrapper.css"
20
+ }
23
21
  },
24
22
  "scripts": {
25
23
  "build": "vite build && npm run build:types",