@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
package/dist/index.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import * as React43 from 'react';
|
|
2
|
-
import React43__default, { createContext, useLayoutEffect, useState, useContext, useCallback } from 'react';
|
|
2
|
+
import React43__default, { forwardRef, createElement, createContext, useLayoutEffect, useState, useContext, useCallback } from 'react';
|
|
3
3
|
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
4
4
|
import * as ReactDOM4 from 'react-dom';
|
|
5
5
|
import ReactDOM4__default from 'react-dom';
|
|
6
|
-
import { CheckIcon, CircleIcon, ChevronRightIcon, ChevronDownIcon, ChevronUpIcon } from 'lucide-react';
|
|
7
6
|
|
|
8
7
|
var __defProp = Object.defineProperty;
|
|
9
8
|
var __export = (target, all) => {
|
|
@@ -8507,6 +8506,93 @@ var Separator2 = DropdownMenuSeparator;
|
|
|
8507
8506
|
var Sub2 = DropdownMenuSub;
|
|
8508
8507
|
var SubTrigger2 = DropdownMenuSubTrigger;
|
|
8509
8508
|
var SubContent2 = DropdownMenuSubContent;
|
|
8509
|
+
|
|
8510
|
+
// ../../node_modules/.pnpm/lucide-react@0.476.0_react@19.2.2/node_modules/lucide-react/dist/esm/shared/src/utils.js
|
|
8511
|
+
var toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
8512
|
+
var mergeClasses = (...classes) => classes.filter((className, index2, array) => {
|
|
8513
|
+
return Boolean(className) && className.trim() !== "" && array.indexOf(className) === index2;
|
|
8514
|
+
}).join(" ").trim();
|
|
8515
|
+
|
|
8516
|
+
// ../../node_modules/.pnpm/lucide-react@0.476.0_react@19.2.2/node_modules/lucide-react/dist/esm/defaultAttributes.js
|
|
8517
|
+
var defaultAttributes = {
|
|
8518
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8519
|
+
width: 24,
|
|
8520
|
+
height: 24,
|
|
8521
|
+
viewBox: "0 0 24 24",
|
|
8522
|
+
fill: "none",
|
|
8523
|
+
stroke: "currentColor",
|
|
8524
|
+
strokeWidth: 2,
|
|
8525
|
+
strokeLinecap: "round",
|
|
8526
|
+
strokeLinejoin: "round"
|
|
8527
|
+
};
|
|
8528
|
+
|
|
8529
|
+
// ../../node_modules/.pnpm/lucide-react@0.476.0_react@19.2.2/node_modules/lucide-react/dist/esm/Icon.js
|
|
8530
|
+
var Icon = forwardRef(
|
|
8531
|
+
({
|
|
8532
|
+
color = "currentColor",
|
|
8533
|
+
size: size4 = 24,
|
|
8534
|
+
strokeWidth = 2,
|
|
8535
|
+
absoluteStrokeWidth,
|
|
8536
|
+
className = "",
|
|
8537
|
+
children,
|
|
8538
|
+
iconNode,
|
|
8539
|
+
...rest
|
|
8540
|
+
}, ref) => {
|
|
8541
|
+
return createElement(
|
|
8542
|
+
"svg",
|
|
8543
|
+
{
|
|
8544
|
+
ref,
|
|
8545
|
+
...defaultAttributes,
|
|
8546
|
+
width: size4,
|
|
8547
|
+
height: size4,
|
|
8548
|
+
stroke: color,
|
|
8549
|
+
strokeWidth: absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size4) : strokeWidth,
|
|
8550
|
+
className: mergeClasses("lucide", className),
|
|
8551
|
+
...rest
|
|
8552
|
+
},
|
|
8553
|
+
[
|
|
8554
|
+
...iconNode.map(([tag, attrs]) => createElement(tag, attrs)),
|
|
8555
|
+
...Array.isArray(children) ? children : [children]
|
|
8556
|
+
]
|
|
8557
|
+
);
|
|
8558
|
+
}
|
|
8559
|
+
);
|
|
8560
|
+
|
|
8561
|
+
// ../../node_modules/.pnpm/lucide-react@0.476.0_react@19.2.2/node_modules/lucide-react/dist/esm/createLucideIcon.js
|
|
8562
|
+
var createLucideIcon = (iconName, iconNode) => {
|
|
8563
|
+
const Component = forwardRef(
|
|
8564
|
+
({ className, ...props }, ref) => createElement(Icon, {
|
|
8565
|
+
ref,
|
|
8566
|
+
iconNode,
|
|
8567
|
+
className: mergeClasses(`lucide-${toKebabCase(iconName)}`, className),
|
|
8568
|
+
...props
|
|
8569
|
+
})
|
|
8570
|
+
);
|
|
8571
|
+
Component.displayName = `${iconName}`;
|
|
8572
|
+
return Component;
|
|
8573
|
+
};
|
|
8574
|
+
|
|
8575
|
+
// ../../node_modules/.pnpm/lucide-react@0.476.0_react@19.2.2/node_modules/lucide-react/dist/esm/icons/check.js
|
|
8576
|
+
var __iconNode = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]];
|
|
8577
|
+
var Check = createLucideIcon("Check", __iconNode);
|
|
8578
|
+
|
|
8579
|
+
// ../../node_modules/.pnpm/lucide-react@0.476.0_react@19.2.2/node_modules/lucide-react/dist/esm/icons/chevron-down.js
|
|
8580
|
+
var __iconNode2 = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]];
|
|
8581
|
+
var ChevronDown = createLucideIcon("ChevronDown", __iconNode2);
|
|
8582
|
+
|
|
8583
|
+
// ../../node_modules/.pnpm/lucide-react@0.476.0_react@19.2.2/node_modules/lucide-react/dist/esm/icons/chevron-right.js
|
|
8584
|
+
var __iconNode3 = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]];
|
|
8585
|
+
var ChevronRight = createLucideIcon("ChevronRight", __iconNode3);
|
|
8586
|
+
|
|
8587
|
+
// ../../node_modules/.pnpm/lucide-react@0.476.0_react@19.2.2/node_modules/lucide-react/dist/esm/icons/chevron-up.js
|
|
8588
|
+
var __iconNode4 = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]];
|
|
8589
|
+
var ChevronUp = createLucideIcon("ChevronUp", __iconNode4);
|
|
8590
|
+
|
|
8591
|
+
// ../../node_modules/.pnpm/lucide-react@0.476.0_react@19.2.2/node_modules/lucide-react/dist/esm/icons/circle.js
|
|
8592
|
+
var __iconNode5 = [["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]];
|
|
8593
|
+
var Circle = createLucideIcon("Circle", __iconNode5);
|
|
8594
|
+
|
|
8595
|
+
// src/components/ui/dropdown-menu.tsx
|
|
8510
8596
|
function DropdownMenu2({
|
|
8511
8597
|
...props
|
|
8512
8598
|
}) {
|
|
@@ -8612,7 +8698,7 @@ function DropdownMenuCheckboxItem2({
|
|
|
8612
8698
|
checked,
|
|
8613
8699
|
...props
|
|
8614
8700
|
},
|
|
8615
|
-
/* @__PURE__ */ React43.createElement("span", { className: "uii:pointer-events-none uii:absolute uii:left-2 uii:flex uii:size-3.5 uii:items-center uii:justify-center" }, /* @__PURE__ */ React43.createElement(ItemIndicator2, null, /* @__PURE__ */ React43.createElement(
|
|
8701
|
+
/* @__PURE__ */ React43.createElement("span", { className: "uii:pointer-events-none uii:absolute uii:left-2 uii:flex uii:size-3.5 uii:items-center uii:justify-center" }, /* @__PURE__ */ React43.createElement(ItemIndicator2, null, /* @__PURE__ */ React43.createElement(Check, { className: "uii:size-4" }))),
|
|
8616
8702
|
children
|
|
8617
8703
|
);
|
|
8618
8704
|
}
|
|
@@ -8642,7 +8728,7 @@ function DropdownMenuRadioItem2({
|
|
|
8642
8728
|
),
|
|
8643
8729
|
...props
|
|
8644
8730
|
},
|
|
8645
|
-
/* @__PURE__ */ React43.createElement("span", { className: "uii:pointer-events-none uii:absolute uii:left-2 uii:flex uii:size-3.5 uii:items-center uii:justify-center" }, /* @__PURE__ */ React43.createElement(ItemIndicator2, null, /* @__PURE__ */ React43.createElement(
|
|
8731
|
+
/* @__PURE__ */ React43.createElement("span", { className: "uii:pointer-events-none uii:absolute uii:left-2 uii:flex uii:size-3.5 uii:items-center uii:justify-center" }, /* @__PURE__ */ React43.createElement(ItemIndicator2, null, /* @__PURE__ */ React43.createElement(Circle, { className: "uii:size-2 uii:fill-current" }))),
|
|
8646
8732
|
children
|
|
8647
8733
|
);
|
|
8648
8734
|
}
|
|
@@ -8716,7 +8802,7 @@ function DropdownMenuSubTrigger2({
|
|
|
8716
8802
|
...props
|
|
8717
8803
|
},
|
|
8718
8804
|
children,
|
|
8719
|
-
/* @__PURE__ */ React43.createElement(
|
|
8805
|
+
/* @__PURE__ */ React43.createElement(ChevronRight, { className: "uii:ml-auto uii:size-4" })
|
|
8720
8806
|
);
|
|
8721
8807
|
}
|
|
8722
8808
|
function DropdownMenuSubContent2({
|
|
@@ -10048,7 +10134,7 @@ function wrapArray3(array, startIndex) {
|
|
|
10048
10134
|
var Root24 = Select;
|
|
10049
10135
|
var Trigger2 = SelectTrigger;
|
|
10050
10136
|
var Value = SelectValue;
|
|
10051
|
-
var
|
|
10137
|
+
var Icon2 = SelectIcon;
|
|
10052
10138
|
var Portal3 = SelectPortal;
|
|
10053
10139
|
var Content23 = SelectContent;
|
|
10054
10140
|
var Viewport = SelectViewport;
|
|
@@ -10057,6 +10143,8 @@ var ItemText = SelectItemText;
|
|
|
10057
10143
|
var ItemIndicator3 = SelectItemIndicator;
|
|
10058
10144
|
var ScrollUpButton = SelectScrollUpButton;
|
|
10059
10145
|
var ScrollDownButton = SelectScrollDownButton;
|
|
10146
|
+
|
|
10147
|
+
// src/components/ui/select.tsx
|
|
10060
10148
|
function Select2({
|
|
10061
10149
|
...props
|
|
10062
10150
|
}) {
|
|
@@ -10083,7 +10171,7 @@ function SelectTrigger2({
|
|
|
10083
10171
|
...props
|
|
10084
10172
|
},
|
|
10085
10173
|
children,
|
|
10086
|
-
/* @__PURE__ */ React43.createElement(
|
|
10174
|
+
/* @__PURE__ */ React43.createElement(Icon2, { asChild: true }, /* @__PURE__ */ React43.createElement(ChevronDown, { className: "uii:size-4 uii:opacity-50" }))
|
|
10087
10175
|
);
|
|
10088
10176
|
}
|
|
10089
10177
|
function SelectContent2({
|
|
@@ -10138,7 +10226,7 @@ function SelectItem2({
|
|
|
10138
10226
|
),
|
|
10139
10227
|
...props
|
|
10140
10228
|
},
|
|
10141
|
-
/* @__PURE__ */ React43.createElement("span", { className: "uii:absolute uii:right-2 uii:flex uii:size-3.5 uii:items-center uii:justify-center" }, /* @__PURE__ */ React43.createElement(ItemIndicator3, null, /* @__PURE__ */ React43.createElement(
|
|
10229
|
+
/* @__PURE__ */ React43.createElement("span", { className: "uii:absolute uii:right-2 uii:flex uii:size-3.5 uii:items-center uii:justify-center" }, /* @__PURE__ */ React43.createElement(ItemIndicator3, null, /* @__PURE__ */ React43.createElement(Check, { className: "uii:size-4" }))),
|
|
10142
10230
|
/* @__PURE__ */ React43.createElement(ItemText, null, children)
|
|
10143
10231
|
);
|
|
10144
10232
|
}
|
|
@@ -10156,7 +10244,7 @@ function SelectScrollUpButton2({
|
|
|
10156
10244
|
),
|
|
10157
10245
|
...props
|
|
10158
10246
|
},
|
|
10159
|
-
/* @__PURE__ */ React43.createElement(
|
|
10247
|
+
/* @__PURE__ */ React43.createElement(ChevronUp, { className: "uii:size-4" })
|
|
10160
10248
|
);
|
|
10161
10249
|
}
|
|
10162
10250
|
function SelectScrollDownButton2({
|
|
@@ -10173,7 +10261,7 @@ function SelectScrollDownButton2({
|
|
|
10173
10261
|
),
|
|
10174
10262
|
...props
|
|
10175
10263
|
},
|
|
10176
|
-
/* @__PURE__ */ React43.createElement(
|
|
10264
|
+
/* @__PURE__ */ React43.createElement(ChevronDown, { className: "uii:size-4" })
|
|
10177
10265
|
);
|
|
10178
10266
|
}
|
|
10179
10267
|
|
|
@@ -10794,6 +10882,25 @@ function useFieldValidation() {
|
|
|
10794
10882
|
validateField
|
|
10795
10883
|
};
|
|
10796
10884
|
}
|
|
10885
|
+
/*! Bundled license information:
|
|
10886
|
+
|
|
10887
|
+
lucide-react/dist/esm/shared/src/utils.js:
|
|
10888
|
+
lucide-react/dist/esm/defaultAttributes.js:
|
|
10889
|
+
lucide-react/dist/esm/Icon.js:
|
|
10890
|
+
lucide-react/dist/esm/createLucideIcon.js:
|
|
10891
|
+
lucide-react/dist/esm/icons/check.js:
|
|
10892
|
+
lucide-react/dist/esm/icons/chevron-down.js:
|
|
10893
|
+
lucide-react/dist/esm/icons/chevron-right.js:
|
|
10894
|
+
lucide-react/dist/esm/icons/chevron-up.js:
|
|
10895
|
+
lucide-react/dist/esm/icons/circle.js:
|
|
10896
|
+
lucide-react/dist/esm/lucide-react.js:
|
|
10897
|
+
(**
|
|
10898
|
+
* @license lucide-react v0.476.0 - ISC
|
|
10899
|
+
*
|
|
10900
|
+
* This source code is licensed under the ISC license.
|
|
10901
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
10902
|
+
*)
|
|
10903
|
+
*/
|
|
10797
10904
|
|
|
10798
10905
|
export { Button, ConfirmationDropdownMenuItem, DropdownMenu2 as DropdownMenu, DropdownMenuCheckboxItem2 as DropdownMenuCheckboxItem, DropdownMenuClose, DropdownMenuContent2 as DropdownMenuContent, DropdownMenuGroup2 as DropdownMenuGroup, DropdownMenuItem2 as DropdownMenuItem, DropdownMenuLabel2 as DropdownMenuLabel, DropdownMenuPortal2 as DropdownMenuPortal, DropdownMenuRadioGroup2 as DropdownMenuRadioGroup, DropdownMenuRadioItem2 as DropdownMenuRadioItem, DropdownMenuSeparator2 as DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub2 as DropdownMenuSub, DropdownMenuSubContent2 as DropdownMenuSubContent, DropdownMenuSubTrigger2 as DropdownMenuSubTrigger, DropdownMenuTrigger2 as DropdownMenuTrigger, ToggleButton, buttonVariants, fields_exports as fields, toggleButtonVariants };
|
|
10799
10906
|
//# sourceMappingURL=index.js.map
|