@process.co/ui 0.0.17 → 0.0.19
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/css/ui.css +25 -0
- package/dist/components/fields/index.cjs +29 -21
- package/dist/components/fields/index.cjs.map +1 -1
- package/dist/components/fields/index.d.cts +1 -1
- package/dist/components/fields/index.d.ts +1 -1
- package/dist/components/fields/index.js +29 -21
- package/dist/components/fields/index.js.map +1 -1
- package/dist/components/slots/index.cjs +3284 -0
- package/dist/components/slots/index.cjs.map +1 -0
- package/dist/components/slots/index.d.cts +2 -0
- package/dist/components/slots/index.d.ts +2 -0
- package/dist/components/slots/index.js +3261 -0
- package/dist/components/slots/index.js.map +1 -0
- package/dist/index-CcOhL3Cy.d.cts +13 -0
- package/dist/index-CcOhL3Cy.d.ts +13 -0
- package/dist/{index-D9NS5Zgl.d.cts → index-DVH6qE_o.d.cts} +10 -1
- package/dist/{index-D9NS5Zgl.d.ts → index-DVH6qE_o.d.ts} +10 -1
- package/dist/index.cjs +474 -448
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +430 -405
- package/dist/index.js.map +1 -1
- package/package.json +11 -1
package/css/ui.css
CHANGED
|
@@ -193,6 +193,9 @@
|
|
|
193
193
|
.uii\:left-2 {
|
|
194
194
|
left: calc(var(--uii-spacing) * 2);
|
|
195
195
|
}
|
|
196
|
+
.uii\:z-20 {
|
|
197
|
+
z-index: 20;
|
|
198
|
+
}
|
|
196
199
|
.uii\:z-50 {
|
|
197
200
|
z-index: 50;
|
|
198
201
|
}
|
|
@@ -1121,6 +1124,9 @@
|
|
|
1121
1124
|
.uii\:min-h-\[56px\] {
|
|
1122
1125
|
min-height: 56px;
|
|
1123
1126
|
}
|
|
1127
|
+
.uii\:w-8 {
|
|
1128
|
+
width: calc(var(--uii-spacing) * 8);
|
|
1129
|
+
}
|
|
1124
1130
|
.uii\:w-\[28px\] {
|
|
1125
1131
|
width: 28px;
|
|
1126
1132
|
}
|
|
@@ -1169,6 +1175,9 @@
|
|
|
1169
1175
|
.uii\:scroll-my-1 {
|
|
1170
1176
|
scroll-margin-block: calc(var(--uii-spacing) * 1);
|
|
1171
1177
|
}
|
|
1178
|
+
.uii\:flex-row {
|
|
1179
|
+
flex-direction: row;
|
|
1180
|
+
}
|
|
1172
1181
|
.uii\:flex-wrap {
|
|
1173
1182
|
flex-wrap: wrap;
|
|
1174
1183
|
}
|
|
@@ -1181,6 +1190,9 @@
|
|
|
1181
1190
|
.uii\:justify-center {
|
|
1182
1191
|
justify-content: center;
|
|
1183
1192
|
}
|
|
1193
|
+
.uii\:justify-start {
|
|
1194
|
+
justify-content: flex-start;
|
|
1195
|
+
}
|
|
1184
1196
|
.uii\:gap-1\.5 {
|
|
1185
1197
|
gap: calc(var(--uii-spacing) * 1.5);
|
|
1186
1198
|
}
|
|
@@ -1245,6 +1257,10 @@
|
|
|
1245
1257
|
border-left-style: var(--tw-border-style);
|
|
1246
1258
|
border-left-width: 10px;
|
|
1247
1259
|
}
|
|
1260
|
+
.uii\:border-dashed {
|
|
1261
|
+
--tw-border-style: dashed;
|
|
1262
|
+
border-style: dashed;
|
|
1263
|
+
}
|
|
1248
1264
|
.uii\:border-none {
|
|
1249
1265
|
--tw-border-style: none;
|
|
1250
1266
|
border-style: none;
|
|
@@ -1258,9 +1274,15 @@
|
|
|
1258
1274
|
.uii\:border-amber-500\/50 {
|
|
1259
1275
|
border-color: color-mix(in oklab, oklch(76.9% 0.188 70.08) 50%, transparent);
|
|
1260
1276
|
}
|
|
1277
|
+
.uii\:border-gray-300 {
|
|
1278
|
+
border-color: oklch(87.2% 0.01 258.338);
|
|
1279
|
+
}
|
|
1261
1280
|
.uii\:border-input {
|
|
1262
1281
|
border-color: var(--input);
|
|
1263
1282
|
}
|
|
1283
|
+
.uii\:border-primary {
|
|
1284
|
+
border-color: var(--primary);
|
|
1285
|
+
}
|
|
1264
1286
|
.uii\:border-purple-200 {
|
|
1265
1287
|
border-color: oklch(90.2% 0.063 306.703);
|
|
1266
1288
|
}
|
|
@@ -1333,6 +1355,9 @@
|
|
|
1333
1355
|
.uii\:fill-current {
|
|
1334
1356
|
fill: currentcolor;
|
|
1335
1357
|
}
|
|
1358
|
+
.uii\:object-contain {
|
|
1359
|
+
object-fit: contain;
|
|
1360
|
+
}
|
|
1336
1361
|
.uii\:p-1 {
|
|
1337
1362
|
padding: calc(var(--uii-spacing) * 1);
|
|
1338
1363
|
}
|
|
@@ -3101,7 +3101,10 @@ function Input({
|
|
|
3101
3101
|
required = false,
|
|
3102
3102
|
hasRequiredError = false,
|
|
3103
3103
|
className,
|
|
3104
|
-
editorClassName
|
|
3104
|
+
editorClassName,
|
|
3105
|
+
showCaseSensitivity = false,
|
|
3106
|
+
caseSensitive = false,
|
|
3107
|
+
onCaseSensitiveChange
|
|
3105
3108
|
}) {
|
|
3106
3109
|
const devCtx = React33.useContext(DevContext);
|
|
3107
3110
|
const resolvedExpectedType = useResolvedExpectedType(expectedType, devCtx);
|
|
@@ -3114,17 +3117,10 @@ function Input({
|
|
|
3114
3117
|
const isExpression = React33__namespace.useMemo(() => {
|
|
3115
3118
|
return value != null && typeof value === "object" && "expression" in value;
|
|
3116
3119
|
}, [value]);
|
|
3117
|
-
const handleChange = React33__namespace.useCallback(
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
expression: newValue,
|
|
3122
|
-
type: "expression"
|
|
3123
|
-
});
|
|
3124
|
-
} else {
|
|
3125
|
-
onChange(newValue);
|
|
3126
|
-
}
|
|
3127
|
-
}, [onChange]);
|
|
3120
|
+
const handleChange = React33__namespace.useCallback(
|
|
3121
|
+
(e) => onChange(e.target.value),
|
|
3122
|
+
[onChange]
|
|
3123
|
+
);
|
|
3128
3124
|
const showError = hasRequiredError || required && !displayValue;
|
|
3129
3125
|
const isWaiting = resolvedExpectedType.startsWith("Waiting for:") || resolvedExpectedType.startsWith("Subscribing to:");
|
|
3130
3126
|
return /* @__PURE__ */ React33__namespace.createElement("div", { className: cn("uii:mb-2", className) }, /* @__PURE__ */ React33__namespace.createElement("div", { className: "uii:flex uii:items-center uii:gap-2 uii:mt-2" }, /* @__PURE__ */ React33__namespace.createElement(
|
|
@@ -3145,7 +3141,19 @@ function Input({
|
|
|
3145
3141
|
title: resolvedExpectedType
|
|
3146
3142
|
},
|
|
3147
3143
|
resolvedExpectedType
|
|
3148
|
-
), showError && /* @__PURE__ */ React33__namespace.createElement("span", { className: "uii:-mt-2 uii:inline-flex uii:px-1 uii:py-0.5 uii:bg-red-100 uii:text-red-600 uii:rounded-sm uii:text-[10px] uii:font-medium" }, "Required")
|
|
3144
|
+
), showError && /* @__PURE__ */ React33__namespace.createElement("span", { className: "uii:-mt-2 uii:inline-flex uii:px-1 uii:py-0.5 uii:bg-red-100 uii:text-red-600 uii:rounded-sm uii:text-[10px] uii:font-medium" }, "Required"), showCaseSensitivity && onCaseSensitiveChange && /* @__PURE__ */ React33__namespace.createElement(
|
|
3145
|
+
"button",
|
|
3146
|
+
{
|
|
3147
|
+
type: "button",
|
|
3148
|
+
title: caseSensitive ? "Case sensitive (click to ignore case)" : "Ignore case (click for case sensitive)",
|
|
3149
|
+
onClick: () => onCaseSensitiveChange(!caseSensitive),
|
|
3150
|
+
className: cn(
|
|
3151
|
+
"uii:-mt-2 uii:inline-flex uii:items-center uii:justify-center uii:rounded-sm uii:border uii:px-1 uii:py-0.5 uii:text-[10px] uii:font-medium uii:transition-colors uii:outline-none focus:uii:ring-2 focus:uii:ring-ring focus:uii:ring-offset-1",
|
|
3152
|
+
caseSensitive ? "uii:bg-primary uii:text-primary-foreground uii:border-primary" : "uii:bg-gray-200 uii:text-muted-foreground uii:border-input hover:uii:bg-gray-300"
|
|
3153
|
+
)
|
|
3154
|
+
},
|
|
3155
|
+
"Aa"
|
|
3156
|
+
)), /* @__PURE__ */ React33__namespace.createElement("div", { className: "uii:mt-0.5" }, /* @__PURE__ */ React33__namespace.createElement(
|
|
3149
3157
|
"input",
|
|
3150
3158
|
{
|
|
3151
3159
|
id: fieldName,
|
|
@@ -8437,14 +8445,14 @@ function Select3({
|
|
|
8437
8445
|
}
|
|
8438
8446
|
onChange(newValue);
|
|
8439
8447
|
}, [onChange]);
|
|
8440
|
-
const handleExpressionChange = React33__namespace.useCallback(
|
|
8441
|
-
|
|
8442
|
-
|
|
8443
|
-
|
|
8444
|
-
|
|
8445
|
-
|
|
8446
|
-
|
|
8447
|
-
|
|
8448
|
+
const handleExpressionChange = React33__namespace.useCallback(
|
|
8449
|
+
(e) => {
|
|
8450
|
+
const newValue = e.target.value;
|
|
8451
|
+
setExpressionValue(newValue);
|
|
8452
|
+
onChange(newValue);
|
|
8453
|
+
},
|
|
8454
|
+
[onChange]
|
|
8455
|
+
);
|
|
8448
8456
|
const handleSwitchToValue = React33__namespace.useCallback(() => {
|
|
8449
8457
|
setIsExpressionMode(false);
|
|
8450
8458
|
setExpressionValue("");
|