@poly-x/next 0.1.0-alpha.4 → 0.1.0-alpha.6
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/dist/server.cjs +2 -1
- package/dist/server.mjs +2 -1
- package/dist/styles.css +30 -45
- package/package.json +3 -3
package/dist/server.cjs
CHANGED
package/dist/server.mjs
CHANGED
package/dist/styles.css
CHANGED
|
@@ -25,7 +25,10 @@
|
|
|
25
25
|
--polyx-ring: #a5b4fc;
|
|
26
26
|
--polyx-danger: #dc2626;
|
|
27
27
|
--polyx-danger-bg: #fef2f2;
|
|
28
|
-
--polyx-page-bg: #
|
|
28
|
+
--polyx-page-bg: #ffffff;
|
|
29
|
+
/* The `page` variant's left panel — a quiet surface, a shade off the form side. */
|
|
30
|
+
--polyx-panel-bg: #fafafa;
|
|
31
|
+
--polyx-panel-fg: #18181b;
|
|
29
32
|
|
|
30
33
|
/* Shape + type */
|
|
31
34
|
--polyx-radius: 0.75rem;
|
|
@@ -59,7 +62,9 @@
|
|
|
59
62
|
--polyx-ring: #4f46e5;
|
|
60
63
|
--polyx-danger: #f87171;
|
|
61
64
|
--polyx-danger-bg: #2a1616;
|
|
62
|
-
--polyx-page-bg: #
|
|
65
|
+
--polyx-page-bg: #18181b;
|
|
66
|
+
--polyx-panel-bg: #09090b;
|
|
67
|
+
--polyx-panel-fg: #fafafa;
|
|
63
68
|
--polyx-shadow: 0 1px 3px rgb(0 0 0 / 0.4), 0 10px 30px rgb(0 0 0 / 0.35);
|
|
64
69
|
}
|
|
65
70
|
}
|
|
@@ -77,7 +82,9 @@
|
|
|
77
82
|
--polyx-ring: #4f46e5;
|
|
78
83
|
--polyx-danger: #f87171;
|
|
79
84
|
--polyx-danger-bg: #2a1616;
|
|
80
|
-
--polyx-page-bg: #
|
|
85
|
+
--polyx-page-bg: #18181b;
|
|
86
|
+
--polyx-panel-bg: #09090b;
|
|
87
|
+
--polyx-panel-fg: #fafafa;
|
|
81
88
|
--polyx-shadow: 0 1px 3px rgb(0 0 0 / 0.4), 0 10px 30px rgb(0 0 0 / 0.35);
|
|
82
89
|
}
|
|
83
90
|
|
|
@@ -92,7 +99,9 @@
|
|
|
92
99
|
--polyx-ring: #a5b4fc;
|
|
93
100
|
--polyx-danger: #dc2626;
|
|
94
101
|
--polyx-danger-bg: #fef2f2;
|
|
95
|
-
--polyx-page-bg: #
|
|
102
|
+
--polyx-page-bg: #ffffff;
|
|
103
|
+
--polyx-panel-bg: #fafafa;
|
|
104
|
+
--polyx-panel-fg: #18181b;
|
|
96
105
|
--polyx-shadow: 0 1px 3px rgb(0 0 0 / 0.06), 0 10px 30px rgb(0 0 0 / 0.07);
|
|
97
106
|
}
|
|
98
107
|
|
|
@@ -115,10 +124,12 @@
|
|
|
115
124
|
}
|
|
116
125
|
|
|
117
126
|
/**
|
|
118
|
-
* `page`: owns the viewport
|
|
119
|
-
*
|
|
120
|
-
*
|
|
121
|
-
*
|
|
127
|
+
* `page`: owns the viewport — a left/right split. The form sits on the right; the
|
|
128
|
+
* left is a quiet surface holding whatever the consumer gives it (a `logo`, a
|
|
129
|
+
* `tagline`, or a custom `panel`). Deliberately minimal: no gradient, no invented
|
|
130
|
+
* copy. An empty panel reads as intentional negative space, and never fights the
|
|
131
|
+
* host app's brand. Below 64rem the panel drops away entirely and the form takes
|
|
132
|
+
* the screen on its own.
|
|
122
133
|
*/
|
|
123
134
|
.polyx-signin--page {
|
|
124
135
|
display: grid;
|
|
@@ -126,55 +137,29 @@
|
|
|
126
137
|
min-height: 100dvh;
|
|
127
138
|
}
|
|
128
139
|
|
|
129
|
-
.polyx-signin--page.polyx-signin--split {
|
|
130
|
-
grid-template-rows: auto 1fr;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
140
|
@media (min-width: 64rem) {
|
|
134
|
-
.polyx-signin--page
|
|
135
|
-
grid-template-columns:
|
|
136
|
-
grid-template-rows: 1fr;
|
|
141
|
+
.polyx-signin--page {
|
|
142
|
+
grid-template-columns: 1fr 1fr;
|
|
137
143
|
}
|
|
138
144
|
}
|
|
139
145
|
|
|
140
146
|
.polyx-signin__panel {
|
|
141
|
-
display:
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
147
|
+
display: none;
|
|
148
|
+
flex-direction: column;
|
|
149
|
+
justify-content: space-between;
|
|
150
|
+
gap: 2rem;
|
|
151
|
+
padding: 3.5rem;
|
|
152
|
+
color: var(--polyx-panel-fg);
|
|
153
|
+
background: var(--polyx-panel-bg);
|
|
154
|
+
border-right: 1px solid var(--polyx-border);
|
|
149
155
|
}
|
|
150
156
|
|
|
151
157
|
@media (min-width: 64rem) {
|
|
152
158
|
.polyx-signin__panel {
|
|
153
|
-
|
|
154
|
-
align-items: flex-start;
|
|
155
|
-
justify-content: space-between;
|
|
156
|
-
gap: 2rem;
|
|
157
|
-
padding: 3.5rem;
|
|
159
|
+
display: flex;
|
|
158
160
|
}
|
|
159
161
|
}
|
|
160
162
|
|
|
161
|
-
/* Soft light-bloom so a bare brand panel still reads as designed, not as a flat fill. */
|
|
162
|
-
.polyx-signin__panel::after {
|
|
163
|
-
content: "";
|
|
164
|
-
position: absolute;
|
|
165
|
-
inset: 0;
|
|
166
|
-
pointer-events: none;
|
|
167
|
-
background:
|
|
168
|
-
radial-gradient(circle at 82% 12%, rgb(255 255 255 / 0.18), transparent 45%),
|
|
169
|
-
radial-gradient(circle at 12% 88%, rgb(255 255 255 / 0.1), transparent 42%);
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
.polyx-signin__panel-logo,
|
|
173
|
-
.polyx-signin__tagline {
|
|
174
|
-
position: relative;
|
|
175
|
-
z-index: 1;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
163
|
/* The tagline is the panel's headline — it only earns its space on wide screens. */
|
|
179
164
|
.polyx-signin__tagline {
|
|
180
165
|
display: none;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@poly-x/next",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.6",
|
|
4
4
|
"description": "PolyX SDK for Next.js App Router - components plus server helpers",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"module": "./dist/index.mjs",
|
|
48
48
|
"types": "./dist/index.d.cts",
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@poly-x/core": "0.1.0-alpha.
|
|
51
|
-
"@poly-x/react": "0.1.0-alpha.
|
|
50
|
+
"@poly-x/core": "0.1.0-alpha.6",
|
|
51
|
+
"@poly-x/react": "0.1.0-alpha.6"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"next": ">=14",
|