@limrun/ui 0.6.0 → 0.8.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.
package/index.html ADDED
@@ -0,0 +1,199 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title>RemoteControl Demo - @limrun/ui</title>
7
+ <style>
8
+ * {
9
+ margin: 0;
10
+ padding: 0;
11
+ box-sizing: border-box;
12
+ }
13
+
14
+ body {
15
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
16
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
17
+ min-height: 100vh;
18
+ padding: 20px;
19
+ }
20
+
21
+ #root {
22
+ display: flex;
23
+ flex-direction: column;
24
+ gap: 20px;
25
+ max-width: 1400px;
26
+ margin: 0 auto;
27
+ }
28
+
29
+ .header {
30
+ text-align: center;
31
+ color: white;
32
+ padding: 20px;
33
+ }
34
+
35
+ .header h1 {
36
+ font-size: 2.5rem;
37
+ margin-bottom: 10px;
38
+ text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
39
+ }
40
+
41
+ .header p {
42
+ font-size: 1.1rem;
43
+ opacity: 0.9;
44
+ }
45
+
46
+ .demo-container {
47
+ background: white;
48
+ border-radius: 20px;
49
+ padding: 30px;
50
+ box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
51
+ }
52
+
53
+ .controls {
54
+ display: flex;
55
+ flex-direction: column;
56
+ gap: 15px;
57
+ margin-bottom: 30px;
58
+ }
59
+
60
+ .control-group {
61
+ display: flex;
62
+ flex-direction: column;
63
+ gap: 8px;
64
+ }
65
+
66
+ .control-group label {
67
+ font-weight: 600;
68
+ font-size: 0.9rem;
69
+ color: #374151;
70
+ }
71
+
72
+ .control-group input,
73
+ .control-group select {
74
+ padding: 10px 15px;
75
+ border: 2px solid #e5e7eb;
76
+ border-radius: 8px;
77
+ font-size: 0.95rem;
78
+ transition: border-color 0.2s;
79
+ }
80
+
81
+ .control-group input:focus,
82
+ .control-group select:focus {
83
+ outline: none;
84
+ border-color: #667eea;
85
+ }
86
+
87
+ .button-group {
88
+ display: flex;
89
+ gap: 10px;
90
+ }
91
+
92
+ button {
93
+ padding: 12px 24px;
94
+ border: none;
95
+ border-radius: 8px;
96
+ font-size: 1rem;
97
+ font-weight: 600;
98
+ cursor: pointer;
99
+ transition: all 0.2s;
100
+ }
101
+
102
+ button.primary {
103
+ background: #667eea;
104
+ color: white;
105
+ }
106
+
107
+ button.primary:hover {
108
+ background: #5568d3;
109
+ transform: translateY(-1px);
110
+ box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
111
+ }
112
+
113
+ button.secondary {
114
+ background: #e5e7eb;
115
+ color: #374151;
116
+ }
117
+
118
+ button.secondary:hover {
119
+ background: #d1d5db;
120
+ }
121
+
122
+ button:disabled {
123
+ opacity: 0.5;
124
+ cursor: not-allowed;
125
+ }
126
+
127
+ .device-preview {
128
+ display: flex;
129
+ gap: 30px;
130
+ justify-content: center;
131
+ flex-wrap: wrap;
132
+ }
133
+
134
+ .preview-item {
135
+ flex: 1 1 420px;
136
+ max-width: 520px;
137
+ height: min(75vh, 900px);
138
+ }
139
+
140
+ .preview-item h3 {
141
+ text-align: center;
142
+ margin-bottom: 15px;
143
+ font-size: 1.2rem;
144
+ color: #374151;
145
+ }
146
+
147
+ .device-wrapper {
148
+ height: 100%;
149
+ width: 100%;
150
+ background: #f9fafb;
151
+ border-radius: 12px;
152
+ overflow: hidden;
153
+ }
154
+
155
+ @media (max-width: 640px) {
156
+ body {
157
+ padding: 12px;
158
+ }
159
+
160
+ .demo-container {
161
+ padding: 16px;
162
+ }
163
+
164
+ .button-group {
165
+ flex-direction: column;
166
+ }
167
+
168
+ .preview-item {
169
+ max-width: 100%;
170
+ height: 70vh;
171
+ }
172
+ }
173
+
174
+ .info-box {
175
+ background: #fef3c7;
176
+ border: 2px solid #fbbf24;
177
+ border-radius: 8px;
178
+ padding: 15px;
179
+ margin-bottom: 20px;
180
+ }
181
+
182
+ .info-box h4 {
183
+ color: #92400e;
184
+ margin-bottom: 8px;
185
+ font-size: 0.95rem;
186
+ }
187
+
188
+ .info-box p {
189
+ color: #78350f;
190
+ font-size: 0.9rem;
191
+ line-height: 1.5;
192
+ }
193
+ </style>
194
+ </head>
195
+ <body>
196
+ <div id="root"></div>
197
+ <script type="module" src="/src/demo.tsx"></script>
198
+ </body>
199
+ </html>
package/package.json CHANGED
@@ -1,45 +1,45 @@
1
1
  {
2
- "name": "@limrun/ui",
3
- "version": "0.6.0",
4
- "publishConfig": {
5
- "access": "public"
2
+ "name": "@limrun/ui",
3
+ "version": "0.8.0",
4
+ "publishConfig": {
5
+ "access": "public"
6
+ },
7
+ "main": "./dist/index.js",
8
+ "module": "./dist/index.js",
9
+ "types": "./dist/index.d.ts",
10
+ "exports": {
11
+ ".": {
12
+ "types": "./dist/index.d.ts",
13
+ "import": "./dist/index.js",
14
+ "require": "./dist/index.cjs"
6
15
  },
7
- "main": "./dist/index.js",
8
- "module": "./dist/index.js",
9
- "types": "./dist/index.d.ts",
10
- "exports": {
11
- ".": {
12
- "types": "./dist/index.d.ts",
13
- "import": "./dist/index.js",
14
- "require": "./dist/index.cjs"
15
- },
16
- "./package.json": "./package.json"
17
- },
18
- "scripts": {
19
- "dev": "vite",
20
- "build": "tsc && vite build",
21
- "prepublishOnly": "npm run build",
22
- "lint": "eslint .",
23
- "preview": "vite preview"
24
- },
25
- "repository": {
26
- "type": "git",
27
- "url": "git+https://github.com/limrun-inc/typescript-sdk.git",
28
- "directory": "packages/ui"
29
- },
30
- "license": "MIT",
31
- "devDependencies": {
32
- "@types/react": "^19.1.12",
33
- "@types/react-dom": "^19.1.9",
34
- "@vitejs/plugin-react-swc": "^4.0.1",
35
- "path": "^0.12.7",
36
- "react": "^19.1.1",
37
- "react-dom": "^19.1.1",
38
- "vite": "^7.1.4",
39
- "vite-plugin-dts": "^4.5.4",
40
- "vite-plugin-lib-inject-css": "^2.2.2"
41
- },
42
- "dependencies": {
43
- "clsx": "^2.1.1"
44
- }
45
- }
16
+ "./package.json": "./package.json"
17
+ },
18
+ "scripts": {
19
+ "dev": "vite",
20
+ "build": "tsc && vite build",
21
+ "prepublishOnly": "npm run build",
22
+ "lint": "eslint .",
23
+ "preview": "vite preview"
24
+ },
25
+ "repository": {
26
+ "type": "git",
27
+ "url": "git+https://github.com/limrun-inc/typescript-sdk.git",
28
+ "directory": "packages/ui"
29
+ },
30
+ "license": "MIT",
31
+ "devDependencies": {
32
+ "@types/react": "^19.1.12",
33
+ "@types/react-dom": "^19.1.9",
34
+ "@vitejs/plugin-react-swc": "^4.0.1",
35
+ "path": "^0.12.7",
36
+ "react": "^19.1.1",
37
+ "react-dom": "^19.1.1",
38
+ "vite": "^7.1.4",
39
+ "vite-plugin-dts": "^4.5.4",
40
+ "vite-plugin-lib-inject-css": "^2.2.2"
41
+ },
42
+ "dependencies": {
43
+ "clsx": "^2.1.1"
44
+ }
45
+ }
@@ -96,4 +96,4 @@
96
96
  .rc-retry-button:focus-visible {
97
97
  outline: 2px solid #2563eb;
98
98
  outline-offset: 2px;
99
- }
99
+ }