@process.co/ui 0.0.15 → 0.0.16
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/components/fields/index.cjs +100 -5
- package/dist/components/fields/index.cjs.map +1 -1
- package/dist/components/fields/index.js +101 -6
- package/dist/components/fields/index.js.map +1 -1
- package/dist/index.cjs +116 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +117 -10
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import * as React33 from 'react';
|
|
2
|
-
import React33__default, { createContext, useLayoutEffect, useState, useContext, useCallback } from 'react';
|
|
2
|
+
import React33__default, { createContext, forwardRef, createElement, useLayoutEffect, useState, useContext, useCallback } from 'react';
|
|
3
3
|
import * as ReactDOM4 from 'react-dom';
|
|
4
4
|
import ReactDOM4__default from 'react-dom';
|
|
5
5
|
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
6
|
-
import { ChevronDownIcon, CheckIcon, ChevronUpIcon } from 'lucide-react';
|
|
7
6
|
|
|
8
7
|
// src/components/fields/index.tsx
|
|
9
8
|
var DevContext = createContext(null);
|
|
@@ -8139,6 +8138,85 @@ var ItemText = SelectItemText;
|
|
|
8139
8138
|
var ItemIndicator = SelectItemIndicator;
|
|
8140
8139
|
var ScrollUpButton = SelectScrollUpButton;
|
|
8141
8140
|
var ScrollDownButton = SelectScrollDownButton;
|
|
8141
|
+
|
|
8142
|
+
// ../../node_modules/.pnpm/lucide-react@0.476.0_react@19.2.2/node_modules/lucide-react/dist/esm/shared/src/utils.js
|
|
8143
|
+
var toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
8144
|
+
var mergeClasses = (...classes) => classes.filter((className, index2, array) => {
|
|
8145
|
+
return Boolean(className) && className.trim() !== "" && array.indexOf(className) === index2;
|
|
8146
|
+
}).join(" ").trim();
|
|
8147
|
+
|
|
8148
|
+
// ../../node_modules/.pnpm/lucide-react@0.476.0_react@19.2.2/node_modules/lucide-react/dist/esm/defaultAttributes.js
|
|
8149
|
+
var defaultAttributes = {
|
|
8150
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8151
|
+
width: 24,
|
|
8152
|
+
height: 24,
|
|
8153
|
+
viewBox: "0 0 24 24",
|
|
8154
|
+
fill: "none",
|
|
8155
|
+
stroke: "currentColor",
|
|
8156
|
+
strokeWidth: 2,
|
|
8157
|
+
strokeLinecap: "round",
|
|
8158
|
+
strokeLinejoin: "round"
|
|
8159
|
+
};
|
|
8160
|
+
|
|
8161
|
+
// ../../node_modules/.pnpm/lucide-react@0.476.0_react@19.2.2/node_modules/lucide-react/dist/esm/Icon.js
|
|
8162
|
+
var Icon2 = forwardRef(
|
|
8163
|
+
({
|
|
8164
|
+
color = "currentColor",
|
|
8165
|
+
size: size4 = 24,
|
|
8166
|
+
strokeWidth = 2,
|
|
8167
|
+
absoluteStrokeWidth,
|
|
8168
|
+
className = "",
|
|
8169
|
+
children,
|
|
8170
|
+
iconNode,
|
|
8171
|
+
...rest
|
|
8172
|
+
}, ref) => {
|
|
8173
|
+
return createElement(
|
|
8174
|
+
"svg",
|
|
8175
|
+
{
|
|
8176
|
+
ref,
|
|
8177
|
+
...defaultAttributes,
|
|
8178
|
+
width: size4,
|
|
8179
|
+
height: size4,
|
|
8180
|
+
stroke: color,
|
|
8181
|
+
strokeWidth: absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size4) : strokeWidth,
|
|
8182
|
+
className: mergeClasses("lucide", className),
|
|
8183
|
+
...rest
|
|
8184
|
+
},
|
|
8185
|
+
[
|
|
8186
|
+
...iconNode.map(([tag, attrs]) => createElement(tag, attrs)),
|
|
8187
|
+
...Array.isArray(children) ? children : [children]
|
|
8188
|
+
]
|
|
8189
|
+
);
|
|
8190
|
+
}
|
|
8191
|
+
);
|
|
8192
|
+
|
|
8193
|
+
// ../../node_modules/.pnpm/lucide-react@0.476.0_react@19.2.2/node_modules/lucide-react/dist/esm/createLucideIcon.js
|
|
8194
|
+
var createLucideIcon = (iconName, iconNode) => {
|
|
8195
|
+
const Component = forwardRef(
|
|
8196
|
+
({ className, ...props }, ref) => createElement(Icon2, {
|
|
8197
|
+
ref,
|
|
8198
|
+
iconNode,
|
|
8199
|
+
className: mergeClasses(`lucide-${toKebabCase(iconName)}`, className),
|
|
8200
|
+
...props
|
|
8201
|
+
})
|
|
8202
|
+
);
|
|
8203
|
+
Component.displayName = `${iconName}`;
|
|
8204
|
+
return Component;
|
|
8205
|
+
};
|
|
8206
|
+
|
|
8207
|
+
// ../../node_modules/.pnpm/lucide-react@0.476.0_react@19.2.2/node_modules/lucide-react/dist/esm/icons/check.js
|
|
8208
|
+
var __iconNode = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]];
|
|
8209
|
+
var Check = createLucideIcon("Check", __iconNode);
|
|
8210
|
+
|
|
8211
|
+
// ../../node_modules/.pnpm/lucide-react@0.476.0_react@19.2.2/node_modules/lucide-react/dist/esm/icons/chevron-down.js
|
|
8212
|
+
var __iconNode2 = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]];
|
|
8213
|
+
var ChevronDown = createLucideIcon("ChevronDown", __iconNode2);
|
|
8214
|
+
|
|
8215
|
+
// ../../node_modules/.pnpm/lucide-react@0.476.0_react@19.2.2/node_modules/lucide-react/dist/esm/icons/chevron-up.js
|
|
8216
|
+
var __iconNode3 = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]];
|
|
8217
|
+
var ChevronUp = createLucideIcon("ChevronUp", __iconNode3);
|
|
8218
|
+
|
|
8219
|
+
// src/components/ui/select.tsx
|
|
8142
8220
|
function Select2({
|
|
8143
8221
|
...props
|
|
8144
8222
|
}) {
|
|
@@ -8165,7 +8243,7 @@ function SelectTrigger2({
|
|
|
8165
8243
|
...props
|
|
8166
8244
|
},
|
|
8167
8245
|
children,
|
|
8168
|
-
/* @__PURE__ */ React33.createElement(Icon, { asChild: true }, /* @__PURE__ */ React33.createElement(
|
|
8246
|
+
/* @__PURE__ */ React33.createElement(Icon, { asChild: true }, /* @__PURE__ */ React33.createElement(ChevronDown, { className: "uii:size-4 uii:opacity-50" }))
|
|
8169
8247
|
);
|
|
8170
8248
|
}
|
|
8171
8249
|
function SelectContent2({
|
|
@@ -8220,7 +8298,7 @@ function SelectItem2({
|
|
|
8220
8298
|
),
|
|
8221
8299
|
...props
|
|
8222
8300
|
},
|
|
8223
|
-
/* @__PURE__ */ React33.createElement("span", { className: "uii:absolute uii:right-2 uii:flex uii:size-3.5 uii:items-center uii:justify-center" }, /* @__PURE__ */ React33.createElement(ItemIndicator, null, /* @__PURE__ */ React33.createElement(
|
|
8301
|
+
/* @__PURE__ */ React33.createElement("span", { className: "uii:absolute uii:right-2 uii:flex uii:size-3.5 uii:items-center uii:justify-center" }, /* @__PURE__ */ React33.createElement(ItemIndicator, null, /* @__PURE__ */ React33.createElement(Check, { className: "uii:size-4" }))),
|
|
8224
8302
|
/* @__PURE__ */ React33.createElement(ItemText, null, children)
|
|
8225
8303
|
);
|
|
8226
8304
|
}
|
|
@@ -8238,7 +8316,7 @@ function SelectScrollUpButton2({
|
|
|
8238
8316
|
),
|
|
8239
8317
|
...props
|
|
8240
8318
|
},
|
|
8241
|
-
/* @__PURE__ */ React33.createElement(
|
|
8319
|
+
/* @__PURE__ */ React33.createElement(ChevronUp, { className: "uii:size-4" })
|
|
8242
8320
|
);
|
|
8243
8321
|
}
|
|
8244
8322
|
function SelectScrollDownButton2({
|
|
@@ -8255,7 +8333,7 @@ function SelectScrollDownButton2({
|
|
|
8255
8333
|
),
|
|
8256
8334
|
...props
|
|
8257
8335
|
},
|
|
8258
|
-
/* @__PURE__ */ React33.createElement(
|
|
8336
|
+
/* @__PURE__ */ React33.createElement(ChevronDown, { className: "uii:size-4" })
|
|
8259
8337
|
);
|
|
8260
8338
|
}
|
|
8261
8339
|
|
|
@@ -9125,6 +9203,23 @@ function useFieldValidation() {
|
|
|
9125
9203
|
validateField
|
|
9126
9204
|
};
|
|
9127
9205
|
}
|
|
9206
|
+
/*! Bundled license information:
|
|
9207
|
+
|
|
9208
|
+
lucide-react/dist/esm/shared/src/utils.js:
|
|
9209
|
+
lucide-react/dist/esm/defaultAttributes.js:
|
|
9210
|
+
lucide-react/dist/esm/Icon.js:
|
|
9211
|
+
lucide-react/dist/esm/createLucideIcon.js:
|
|
9212
|
+
lucide-react/dist/esm/icons/check.js:
|
|
9213
|
+
lucide-react/dist/esm/icons/chevron-down.js:
|
|
9214
|
+
lucide-react/dist/esm/icons/chevron-up.js:
|
|
9215
|
+
lucide-react/dist/esm/lucide-react.js:
|
|
9216
|
+
(**
|
|
9217
|
+
* @license lucide-react v0.476.0 - ISC
|
|
9218
|
+
*
|
|
9219
|
+
* This source code is licensed under the ISC license.
|
|
9220
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
9221
|
+
*)
|
|
9222
|
+
*/
|
|
9128
9223
|
|
|
9129
9224
|
export { Button, InferredTypesContext, InferredTypesProvider, Input, NestedFieldProvider, NodePropertyProvider, OPERATORS_BY_TYPE, Select3 as Select, TemplateFieldProvider, ToggleButton, buttonVariants, computeExtendedType, filterOperatorsByType, getNumberConstants, getOperatorsForType, getStringConstants, intersectTypes, normalizeFieldValue, parseInferSyntax, parseInferredTypes, toggleButtonVariants, useAllInferredTypes, useClearAllInferredTypes, useClearInferredType, useClearValidationErrorsByPrefix, useFieldPath, useFieldValidation, useFlowEditorActions, useInferredType, useInferredTypes, useIsInNodePropertyProvider, useIsInTemplateFieldProvider, useNodeProperties, useNodeProperty, useSetFieldMetadataOnly, useSetInferredType, useSetProperty, useTemplateFieldContext, useTriggerLayoutUpdate };
|
|
9130
9225
|
//# sourceMappingURL=index.js.map
|