pxengine 0.1.94 → 0.1.96
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 +132 -132
- package/config/tailwind-preset.js +159 -159
- package/dist/index.cjs +12 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +12 -6
- package/dist/index.mjs.map +1 -1
- package/dist/registry.json +18363 -0
- package/package.json +109 -109
package/dist/index.mjs
CHANGED
|
@@ -34910,7 +34910,9 @@ var FileUpload = ({ title, accept, multiple, className, style, onFilesSelected }
|
|
|
34910
34910
|
{
|
|
34911
34911
|
className: cn(
|
|
34912
34912
|
"relative flex flex-col items-center justify-center p-8 border-2 border-dashed rounded-3xl transition-all",
|
|
34913
|
-
|
|
34913
|
+
// Default styling matches the creator-discovery cards (gold-on-charcoal,
|
|
34914
|
+
// theme-stable). The `--px-*` styled path overrides this when provided.
|
|
34915
|
+
!hasPxVars && (isDragging ? "border-gold bg-grayPill" : "border-cardBorder bg-cardSurface"),
|
|
34914
34916
|
className
|
|
34915
34917
|
),
|
|
34916
34918
|
style: wrapperStyle,
|
|
@@ -34931,7 +34933,7 @@ var FileUpload = ({ title, accept, multiple, className, style, onFilesSelected }
|
|
|
34931
34933
|
/* @__PURE__ */ jsx102(
|
|
34932
34934
|
"div",
|
|
34933
34935
|
{
|
|
34934
|
-
className: cn("w-12 h-12 rounded-2xl flex items-center justify-center mb-4", !hasPxVars && "bg-
|
|
34936
|
+
className: cn("w-12 h-12 rounded-2xl flex items-center justify-center mb-4", !hasPxVars && "bg-gold/10 text-gold"),
|
|
34935
34937
|
style: hasPxVars ? { backgroundColor: "var(--px-accent-color)", color: "var(--px-accent-fg, white)", opacity: 0.15 } : void 0,
|
|
34936
34938
|
children: /* @__PURE__ */ jsx102(Upload, { className: "w-6 h-6", style: hasPxVars ? { color: "var(--px-accent-color)", opacity: 1 } : void 0 })
|
|
34937
34939
|
}
|
|
@@ -34939,12 +34941,12 @@ var FileUpload = ({ title, accept, multiple, className, style, onFilesSelected }
|
|
|
34939
34941
|
/* @__PURE__ */ jsx102(
|
|
34940
34942
|
"h4",
|
|
34941
34943
|
{
|
|
34942
|
-
className: cn("font-bold mb-1", !hasPxVars && "text-
|
|
34944
|
+
className: cn("font-bold mb-1", !hasPxVars && "text-gold"),
|
|
34943
34945
|
style: hasPxVars ? { color: "var(--px-text-color, inherit)" } : void 0,
|
|
34944
34946
|
children: title
|
|
34945
34947
|
}
|
|
34946
34948
|
),
|
|
34947
|
-
/* @__PURE__ */ jsx102("p", { className: "text-sm
|
|
34949
|
+
/* @__PURE__ */ jsx102("p", { className: cn("text-sm mb-6", !hasPxVars && "text-cardText"), children: "Drag and drop or click to browse" }),
|
|
34948
34950
|
/* @__PURE__ */ jsx102(
|
|
34949
34951
|
"input",
|
|
34950
34952
|
{
|
|
@@ -34959,7 +34961,7 @@ var FileUpload = ({ title, accept, multiple, className, style, onFilesSelected }
|
|
|
34959
34961
|
Button,
|
|
34960
34962
|
{
|
|
34961
34963
|
variant: "outline",
|
|
34962
|
-
className: cn("rounded-full", !hasPxVars && "border-
|
|
34964
|
+
className: cn("rounded-full", !hasPxVars && "border-cardBorder bg-transparent text-gold hover:bg-gold/10 hover:text-gold"),
|
|
34963
34965
|
style: hasPxVars ? { borderColor: "var(--px-accent-color)", color: "var(--px-accent-color)" } : void 0,
|
|
34964
34966
|
children: "Select Files"
|
|
34965
34967
|
}
|
|
@@ -41225,6 +41227,7 @@ A: ${label}`);
|
|
|
41225
41227
|
return /* @__PURE__ */ jsxs114(
|
|
41226
41228
|
"div",
|
|
41227
41229
|
{
|
|
41230
|
+
"data-testid": "mcq-card",
|
|
41228
41231
|
className: cn(
|
|
41229
41232
|
"p-4 rounded-lg border border-gray400 bg-cardSurface w-full",
|
|
41230
41233
|
className
|
|
@@ -41238,6 +41241,8 @@ A: ${label}`);
|
|
|
41238
41241
|
return /* @__PURE__ */ jsx153(
|
|
41239
41242
|
"div",
|
|
41240
41243
|
{
|
|
41244
|
+
"data-testid": "mcq-option",
|
|
41245
|
+
"data-option-key": key,
|
|
41241
41246
|
onClick: (e) => handleOptionClick(key, e),
|
|
41242
41247
|
className: cn(
|
|
41243
41248
|
"cursor-pointer rounded-lg p-3 transition-colors",
|
|
@@ -41274,6 +41279,7 @@ A: ${label}`);
|
|
|
41274
41279
|
/* @__PURE__ */ jsx153("div", { className: "flex justify-end", children: /* @__PURE__ */ jsx153(
|
|
41275
41280
|
"button",
|
|
41276
41281
|
{
|
|
41282
|
+
"data-testid": "mcq-continue",
|
|
41277
41283
|
onClick: handleProceed,
|
|
41278
41284
|
disabled: isContinueDisabled || isLoading || !selectedOption && !recommended,
|
|
41279
41285
|
className: cn(
|
|
@@ -43111,7 +43117,7 @@ function PlatformMetricsBanner({
|
|
|
43111
43117
|
return /* @__PURE__ */ jsxs132(
|
|
43112
43118
|
"div",
|
|
43113
43119
|
{
|
|
43114
|
-
className: "\n grid grid-cols-1 gap-3 rounded-xl py-4 px-4 shadow-sm\n md:flex md:overflow-x-auto md:gap-6 md:rounded-l-xl md:py-4 md:px-4 md:items-center md:gap-0 md:px-0 md:ml-8\n ",
|
|
43120
|
+
className: "\r\n grid grid-cols-1 gap-3 rounded-xl py-4 px-4 shadow-sm\r\n md:flex md:overflow-x-auto md:gap-6 md:rounded-l-xl md:py-4 md:px-4 md:items-center md:gap-0 md:px-0 md:ml-8\r\n ",
|
|
43115
43121
|
style: { backgroundColor: bgColor },
|
|
43116
43122
|
children: [
|
|
43117
43123
|
/* @__PURE__ */ jsxs132("div", { className: "flex flex-col items-center md:min-w-0", children: [
|