@ohhwells/bridge 0.1.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.
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1,2 @@
1
+
2
+ export { }
package/dist/index.js ADDED
@@ -0,0 +1,19 @@
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
+
16
+ // src/index.ts
17
+ var index_exports = {};
18
+ module.exports = __toCommonJS(index_exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["// @ohhwells/bridge\n// Components are exported here in OHH-399 (Move OhhwellsBridge.tsx into the package)\nexport {}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
package/dist/index.mjs ADDED
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,188 @@
1
+ *, ::before, ::after {
2
+ --tw-border-spacing-x: 0;
3
+ --tw-border-spacing-y: 0;
4
+ --tw-translate-x: 0;
5
+ --tw-translate-y: 0;
6
+ --tw-rotate: 0;
7
+ --tw-skew-x: 0;
8
+ --tw-skew-y: 0;
9
+ --tw-scale-x: 1;
10
+ --tw-scale-y: 1;
11
+ --tw-pan-x: ;
12
+ --tw-pan-y: ;
13
+ --tw-pinch-zoom: ;
14
+ --tw-scroll-snap-strictness: proximity;
15
+ --tw-gradient-from-position: ;
16
+ --tw-gradient-via-position: ;
17
+ --tw-gradient-to-position: ;
18
+ --tw-ordinal: ;
19
+ --tw-slashed-zero: ;
20
+ --tw-numeric-figure: ;
21
+ --tw-numeric-spacing: ;
22
+ --tw-numeric-fraction: ;
23
+ --tw-ring-inset: ;
24
+ --tw-ring-offset-width: 0px;
25
+ --tw-ring-offset-color: #fff;
26
+ --tw-ring-color: rgb(59 130 246 / 0.5);
27
+ --tw-ring-offset-shadow: 0 0 #0000;
28
+ --tw-ring-shadow: 0 0 #0000;
29
+ --tw-shadow: 0 0 #0000;
30
+ --tw-shadow-colored: 0 0 #0000;
31
+ --tw-blur: ;
32
+ --tw-brightness: ;
33
+ --tw-contrast: ;
34
+ --tw-grayscale: ;
35
+ --tw-hue-rotate: ;
36
+ --tw-invert: ;
37
+ --tw-saturate: ;
38
+ --tw-sepia: ;
39
+ --tw-drop-shadow: ;
40
+ --tw-backdrop-blur: ;
41
+ --tw-backdrop-brightness: ;
42
+ --tw-backdrop-contrast: ;
43
+ --tw-backdrop-grayscale: ;
44
+ --tw-backdrop-hue-rotate: ;
45
+ --tw-backdrop-invert: ;
46
+ --tw-backdrop-opacity: ;
47
+ --tw-backdrop-saturate: ;
48
+ --tw-backdrop-sepia: ;
49
+ --tw-contain-size: ;
50
+ --tw-contain-layout: ;
51
+ --tw-contain-paint: ;
52
+ --tw-contain-style: ;
53
+ }
54
+ ::backdrop {
55
+ --tw-border-spacing-x: 0;
56
+ --tw-border-spacing-y: 0;
57
+ --tw-translate-x: 0;
58
+ --tw-translate-y: 0;
59
+ --tw-rotate: 0;
60
+ --tw-skew-x: 0;
61
+ --tw-skew-y: 0;
62
+ --tw-scale-x: 1;
63
+ --tw-scale-y: 1;
64
+ --tw-pan-x: ;
65
+ --tw-pan-y: ;
66
+ --tw-pinch-zoom: ;
67
+ --tw-scroll-snap-strictness: proximity;
68
+ --tw-gradient-from-position: ;
69
+ --tw-gradient-via-position: ;
70
+ --tw-gradient-to-position: ;
71
+ --tw-ordinal: ;
72
+ --tw-slashed-zero: ;
73
+ --tw-numeric-figure: ;
74
+ --tw-numeric-spacing: ;
75
+ --tw-numeric-fraction: ;
76
+ --tw-ring-inset: ;
77
+ --tw-ring-offset-width: 0px;
78
+ --tw-ring-offset-color: #fff;
79
+ --tw-ring-color: rgb(59 130 246 / 0.5);
80
+ --tw-ring-offset-shadow: 0 0 #0000;
81
+ --tw-ring-shadow: 0 0 #0000;
82
+ --tw-shadow: 0 0 #0000;
83
+ --tw-shadow-colored: 0 0 #0000;
84
+ --tw-blur: ;
85
+ --tw-brightness: ;
86
+ --tw-contrast: ;
87
+ --tw-grayscale: ;
88
+ --tw-hue-rotate: ;
89
+ --tw-invert: ;
90
+ --tw-saturate: ;
91
+ --tw-sepia: ;
92
+ --tw-drop-shadow: ;
93
+ --tw-backdrop-blur: ;
94
+ --tw-backdrop-brightness: ;
95
+ --tw-backdrop-contrast: ;
96
+ --tw-backdrop-grayscale: ;
97
+ --tw-backdrop-hue-rotate: ;
98
+ --tw-backdrop-invert: ;
99
+ --tw-backdrop-opacity: ;
100
+ --tw-backdrop-saturate: ;
101
+ --tw-backdrop-sepia: ;
102
+ --tw-contain-size: ;
103
+ --tw-contain-layout: ;
104
+ --tw-contain-paint: ;
105
+ --tw-contain-style: ;
106
+ }
107
+
108
+ /* ── Light mode token defaults (Figma: OHHWELLS x shadcn/ui kit, node 2813-9906) ── */
109
+ [data-ohw-bridge-root] {
110
+ --ohw-background: #ffffff;
111
+ --ohw-foreground: #020617;
112
+ --ohw-card: #ffffff;
113
+ --ohw-card-foreground: #020617;
114
+ --ohw-popover: #ffffff;
115
+ --ohw-popover-foreground: #020617;
116
+ --ohw-primary: #0f172a;
117
+ --ohw-primary-foreground: #f8fafc;
118
+ --ohw-hover-primary: #1e293b;
119
+ --ohw-secondary: #f1f5f9;
120
+ --ohw-secondary-foreground: #0f172a;
121
+ --ohw-hover-secondary: #e2e8f0;
122
+ --ohw-muted: #f1f5f9;
123
+ --ohw-muted-foreground: #64748b;
124
+ --ohw-accent: #f1f5f9;
125
+ --ohw-accent-foreground: #0f172a;
126
+ --ohw-bg-accent-50: #f1f5f980;
127
+ --ohw-bg-muted-40: #f1f5f966;
128
+ --ohw-bg-muted-50: #f1f5f980;
129
+ --ohw-destructive: #dc2626;
130
+ --ohw-destructive-foreground: #f8fafc;
131
+ --ohw-hover-destructive: #ef4444;
132
+ --ohw-bg-destructive-10: #dc26261a;
133
+ --ohw-hover-destructive-20: #dc262633;
134
+ --ohw-border-destructive-50: #fecaca;
135
+ --ohw-border: #e2e8f0;
136
+ --ohw-border-muted-40: #f1f5f966;
137
+ --ohw-input: #e2e8f0;
138
+ --ohw-ring: #64748b;
139
+ --ohw-success: #16a34a;
140
+ --ohw-hover-success: #15803d;
141
+ }
142
+
143
+ /* ── Dark mode overrides ── */
144
+ [data-ohw-bridge-root].dark {
145
+ --ohw-background: #020617;
146
+ --ohw-foreground: #f8fafc;
147
+ --ohw-card: #020617;
148
+ --ohw-card-foreground: #f8fafc;
149
+ --ohw-popover: #020617;
150
+ --ohw-popover-foreground: #f8fafc;
151
+ --ohw-primary: #f8fafc;
152
+ --ohw-primary-foreground: #0f172a;
153
+ --ohw-hover-primary: #f1f5f9;
154
+ --ohw-secondary: #1e293b;
155
+ --ohw-secondary-foreground: #f8fafc;
156
+ --ohw-hover-secondary: #334155;
157
+ --ohw-muted: #1e293b;
158
+ --ohw-muted-foreground: #94a3b8;
159
+ --ohw-accent: #1e293b;
160
+ --ohw-accent-foreground: #f8fafc;
161
+ --ohw-bg-accent-50: #1e293b80;
162
+ --ohw-bg-muted-40: #1e293b66;
163
+ --ohw-bg-muted-50: #1e293b80;
164
+ --ohw-destructive: #7f1d1d;
165
+ --ohw-destructive-foreground: #f8fafc;
166
+ --ohw-hover-destructive: #991b1b;
167
+ --ohw-bg-destructive-10: #7f1d1d1a;
168
+ --ohw-hover-destructive-20: #7f1d1d33;
169
+ --ohw-border-destructive-50: #7f1d1d;
170
+ --ohw-border: #334155;
171
+ --ohw-border-muted-40: #1e293b66;
172
+ --ohw-input: #334155;
173
+ --ohw-ring: #94a3b8;
174
+ --ohw-success: #22c55e;
175
+ --ohw-hover-success: #16a34a;
176
+ }
177
+
178
+ [data-ohw-bridge-root] button {
179
+ border: none;
180
+ background: none;
181
+ padding: 0;
182
+ margin: 0;
183
+ font: inherit;
184
+ cursor: pointer;
185
+ -webkit-appearance: none;
186
+ -moz-appearance: none;
187
+ appearance: none;
188
+ }
package/package.json ADDED
@@ -0,0 +1,35 @@
1
+ {
2
+ "name": "@ohhwells/bridge",
3
+ "version": "0.1.0",
4
+ "private": false,
5
+ "main": "./dist/index.js",
6
+ "module": "./dist/index.mjs",
7
+ "types": "./dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "import": "./dist/index.mjs",
11
+ "require": "./dist/index.js",
12
+ "types": "./dist/index.d.ts"
13
+ },
14
+ "./styles": "./dist/styles.css"
15
+ },
16
+ "files": ["dist"],
17
+ "scripts": {
18
+ "build": "tsup && postcss src/styles.css -o dist/styles.css",
19
+ "dev": "tsup --watch"
20
+ },
21
+ "peerDependencies": {
22
+ "react": ">=18",
23
+ "react-dom": ">=18"
24
+ },
25
+ "devDependencies": {
26
+ "@types/react": "^18",
27
+ "@types/react-dom": "^18",
28
+ "autoprefixer": "^10.4.0",
29
+ "postcss": "^8.4.0",
30
+ "postcss-cli": "^11.0.0",
31
+ "tailwindcss": "^3.4.0",
32
+ "tsup": "^8.0.0",
33
+ "typescript": "^5"
34
+ }
35
+ }