@process.co/ui 0.0.15 → 0.0.17

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 CHANGED
@@ -1059,6 +1059,9 @@
1059
1059
  .uii\:flex {
1060
1060
  display: flex;
1061
1061
  }
1062
+ .uii\:inline-block {
1063
+ display: inline-block;
1064
+ }
1062
1065
  .uii\:inline-flex {
1063
1066
  display: inline-flex;
1064
1067
  }
@@ -1091,6 +1094,9 @@
1091
1094
  .uii\:h-10 {
1092
1095
  height: calc(var(--uii-spacing) * 10);
1093
1096
  }
1097
+ .uii\:h-\[56px\] {
1098
+ height: 56px;
1099
+ }
1094
1100
  .uii\:h-\[var\(--radix-select-trigger-height\)\] {
1095
1101
  height: var(--radix-select-trigger-height);
1096
1102
  }
@@ -1112,6 +1118,12 @@
1112
1118
  .uii\:max-h-\[min\(20rem\,80vh\)\] {
1113
1119
  max-height: min(20rem, 80vh);
1114
1120
  }
1121
+ .uii\:min-h-\[56px\] {
1122
+ min-height: 56px;
1123
+ }
1124
+ .uii\:w-\[28px\] {
1125
+ width: 28px;
1126
+ }
1115
1127
  .uii\:w-full {
1116
1128
  width: 100%;
1117
1129
  }
@@ -1124,6 +1136,9 @@
1124
1136
  .uii\:min-w-\[8rem\] {
1125
1137
  min-width: 8rem;
1126
1138
  }
1139
+ .uii\:min-w-\[28px\] {
1140
+ min-width: 28px;
1141
+ }
1127
1142
  .uii\:min-w-\[150px\] {
1128
1143
  min-width: 150px;
1129
1144
  }
@@ -1139,6 +1154,9 @@
1139
1154
  .uii\:shrink-0 {
1140
1155
  flex-shrink: 0;
1141
1156
  }
1157
+ .uii\:\[transform\:rotate\(-90deg\)\] {
1158
+ transform: rotate(-90deg);
1159
+ }
1142
1160
  .uii\:cursor-default {
1143
1161
  cursor: default;
1144
1162
  }
@@ -1231,6 +1249,9 @@
1231
1249
  --tw-border-style: none;
1232
1250
  border-style: none;
1233
1251
  }
1252
+ .uii\:border-\[\#e5e7eb\] {
1253
+ border-color: #e5e7eb;
1254
+ }
1234
1255
  .uii\:border-amber-500\/30 {
1235
1256
  border-color: color-mix(in oklab, oklch(76.9% 0.188 70.08) 30%, transparent);
1236
1257
  }
@@ -1508,6 +1529,11 @@
1508
1529
  transition-timing-function: var(--tw-ease, var(--uii-default-transition-timing-function));
1509
1530
  transition-duration: var(--tw-duration, var(--uii-default-transition-duration));
1510
1531
  }
1532
+ .uii\:transition-colors {
1533
+ transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
1534
+ transition-timing-function: var(--tw-ease, var(--uii-default-transition-timing-function));
1535
+ transition-duration: var(--tw-duration, var(--uii-default-transition-duration));
1536
+ }
1511
1537
  .uii\:outline-none {
1512
1538
  --tw-outline-style: none;
1513
1539
  outline-style: none;
@@ -1647,12 +1673,23 @@
1647
1673
  border-color: var(--ring);
1648
1674
  }
1649
1675
  }
1676
+ .uii\:focus-visible\:ring-2 {
1677
+ &:focus-visible {
1678
+ --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
1679
+ box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
1680
+ }
1681
+ }
1650
1682
  .uii\:focus-visible\:ring-\[3px\] {
1651
1683
  &:focus-visible {
1652
1684
  --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
1653
1685
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
1654
1686
  }
1655
1687
  }
1688
+ .uii\:focus-visible\:ring-\[\#3b82f6\]\/40 {
1689
+ &:focus-visible {
1690
+ --tw-ring-color: color-mix(in oklab, #3b82f6 40%, transparent);
1691
+ }
1692
+ }
1656
1693
  .uii\:focus-visible\:ring-destructive\/20 {
1657
1694
  &:focus-visible {
1658
1695
  --tw-ring-color: var(--destructive);
@@ -1669,6 +1706,12 @@
1669
1706
  }
1670
1707
  }
1671
1708
  }
1709
+ .uii\:focus-visible\:ring-offset-1 {
1710
+ &:focus-visible {
1711
+ --tw-ring-offset-width: 1px;
1712
+ --tw-ring-offset-shadow: var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
1713
+ }
1714
+ }
1672
1715
  .uii\:disabled\:pointer-events-none {
1673
1716
  &:disabled {
1674
1717
  pointer-events: none;
@@ -1879,11 +1922,30 @@
1879
1922
  border-color: transparent;
1880
1923
  }
1881
1924
  }
1925
+ .uii\:data-\[state\=off\]\:bg-\[\#f3f4f6\] {
1926
+ &[data-state="off"] {
1927
+ background-color: #f3f4f6;
1928
+ }
1929
+ }
1882
1930
  .uii\:data-\[state\=off\]\:bg-background {
1883
1931
  &[data-state="off"] {
1884
1932
  background-color: var(--background);
1885
1933
  }
1886
1934
  }
1935
+ .uii\:data-\[state\=off\]\:text-\[\#374151\] {
1936
+ &[data-state="off"] {
1937
+ color: #374151;
1938
+ }
1939
+ }
1940
+ .uii\:data-\[state\=off\]\:hover\:bg-\[\#e5e7eb\] {
1941
+ &[data-state="off"] {
1942
+ &:hover {
1943
+ @media (hover: hover) {
1944
+ background-color: #e5e7eb;
1945
+ }
1946
+ }
1947
+ }
1948
+ }
1887
1949
  .uii\:data-\[state\=off\]\:hover\:bg-accent {
1888
1950
  &[data-state="off"] {
1889
1951
  &:hover {
@@ -1923,6 +1985,11 @@
1923
1985
  }
1924
1986
  }
1925
1987
  }
1988
+ .uii\:data-\[state\=on\]\:border-\[\#3b82f6\] {
1989
+ &[data-state="on"] {
1990
+ border-color: #3b82f6;
1991
+ }
1992
+ }
1926
1993
  .uii\:data-\[state\=on\]\:border-input {
1927
1994
  &[data-state="on"] {
1928
1995
  border-color: var(--input);
@@ -1938,6 +2005,11 @@
1938
2005
  border-color: transparent;
1939
2006
  }
1940
2007
  }
2008
+ .uii\:data-\[state\=on\]\:bg-\[\#3b82f6\] {
2009
+ &[data-state="on"] {
2010
+ background-color: #3b82f6;
2011
+ }
2012
+ }
1941
2013
  .uii\:data-\[state\=on\]\:bg-accent {
1942
2014
  &[data-state="on"] {
1943
2015
  background-color: var(--accent);
@@ -1968,6 +2040,11 @@
1968
2040
  color: var(--secondary-foreground);
1969
2041
  }
1970
2042
  }
2043
+ .uii\:data-\[state\=on\]\:text-white {
2044
+ &[data-state="on"] {
2045
+ color: #fff;
2046
+ }
2047
+ }
1971
2048
  .uii\:data-\[state\=open\]\:bg-accent {
1972
2049
  &[data-state="open"] {
1973
2050
  background-color: var(--accent);
@@ -3,7 +3,6 @@
3
3
  var React33 = require('react');
4
4
  var ReactDOM4 = require('react-dom');
5
5
  var jsxRuntime = require('react/jsx-runtime');
6
- var lucideReact = require('lucide-react');
7
6
 
8
7
  function _interopNamespace(e) {
9
8
  if (e && e.__esModule) return e;
@@ -8160,6 +8159,85 @@ var ItemText = SelectItemText;
8160
8159
  var ItemIndicator = SelectItemIndicator;
8161
8160
  var ScrollUpButton = SelectScrollUpButton;
8162
8161
  var ScrollDownButton = SelectScrollDownButton;
8162
+
8163
+ // ../../node_modules/.pnpm/lucide-react@0.476.0_react@19.2.2/node_modules/lucide-react/dist/esm/shared/src/utils.js
8164
+ var toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
8165
+ var mergeClasses = (...classes) => classes.filter((className, index2, array) => {
8166
+ return Boolean(className) && className.trim() !== "" && array.indexOf(className) === index2;
8167
+ }).join(" ").trim();
8168
+
8169
+ // ../../node_modules/.pnpm/lucide-react@0.476.0_react@19.2.2/node_modules/lucide-react/dist/esm/defaultAttributes.js
8170
+ var defaultAttributes = {
8171
+ xmlns: "http://www.w3.org/2000/svg",
8172
+ width: 24,
8173
+ height: 24,
8174
+ viewBox: "0 0 24 24",
8175
+ fill: "none",
8176
+ stroke: "currentColor",
8177
+ strokeWidth: 2,
8178
+ strokeLinecap: "round",
8179
+ strokeLinejoin: "round"
8180
+ };
8181
+
8182
+ // ../../node_modules/.pnpm/lucide-react@0.476.0_react@19.2.2/node_modules/lucide-react/dist/esm/Icon.js
8183
+ var Icon2 = React33.forwardRef(
8184
+ ({
8185
+ color = "currentColor",
8186
+ size: size4 = 24,
8187
+ strokeWidth = 2,
8188
+ absoluteStrokeWidth,
8189
+ className = "",
8190
+ children,
8191
+ iconNode,
8192
+ ...rest
8193
+ }, ref) => {
8194
+ return React33.createElement(
8195
+ "svg",
8196
+ {
8197
+ ref,
8198
+ ...defaultAttributes,
8199
+ width: size4,
8200
+ height: size4,
8201
+ stroke: color,
8202
+ strokeWidth: absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size4) : strokeWidth,
8203
+ className: mergeClasses("lucide", className),
8204
+ ...rest
8205
+ },
8206
+ [
8207
+ ...iconNode.map(([tag, attrs]) => React33.createElement(tag, attrs)),
8208
+ ...Array.isArray(children) ? children : [children]
8209
+ ]
8210
+ );
8211
+ }
8212
+ );
8213
+
8214
+ // ../../node_modules/.pnpm/lucide-react@0.476.0_react@19.2.2/node_modules/lucide-react/dist/esm/createLucideIcon.js
8215
+ var createLucideIcon = (iconName, iconNode) => {
8216
+ const Component = React33.forwardRef(
8217
+ ({ className, ...props }, ref) => React33.createElement(Icon2, {
8218
+ ref,
8219
+ iconNode,
8220
+ className: mergeClasses(`lucide-${toKebabCase(iconName)}`, className),
8221
+ ...props
8222
+ })
8223
+ );
8224
+ Component.displayName = `${iconName}`;
8225
+ return Component;
8226
+ };
8227
+
8228
+ // ../../node_modules/.pnpm/lucide-react@0.476.0_react@19.2.2/node_modules/lucide-react/dist/esm/icons/check.js
8229
+ var __iconNode = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]];
8230
+ var Check = createLucideIcon("Check", __iconNode);
8231
+
8232
+ // ../../node_modules/.pnpm/lucide-react@0.476.0_react@19.2.2/node_modules/lucide-react/dist/esm/icons/chevron-down.js
8233
+ var __iconNode2 = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]];
8234
+ var ChevronDown = createLucideIcon("ChevronDown", __iconNode2);
8235
+
8236
+ // ../../node_modules/.pnpm/lucide-react@0.476.0_react@19.2.2/node_modules/lucide-react/dist/esm/icons/chevron-up.js
8237
+ var __iconNode3 = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]];
8238
+ var ChevronUp = createLucideIcon("ChevronUp", __iconNode3);
8239
+
8240
+ // src/components/ui/select.tsx
8163
8241
  function Select2({
8164
8242
  ...props
8165
8243
  }) {
@@ -8186,7 +8264,7 @@ function SelectTrigger2({
8186
8264
  ...props
8187
8265
  },
8188
8266
  children,
8189
- /* @__PURE__ */ React33__namespace.createElement(Icon, { asChild: true }, /* @__PURE__ */ React33__namespace.createElement(lucideReact.ChevronDownIcon, { className: "uii:size-4 uii:opacity-50" }))
8267
+ /* @__PURE__ */ React33__namespace.createElement(Icon, { asChild: true }, /* @__PURE__ */ React33__namespace.createElement(ChevronDown, { className: "uii:size-4 uii:opacity-50" }))
8190
8268
  );
8191
8269
  }
8192
8270
  function SelectContent2({
@@ -8241,7 +8319,7 @@ function SelectItem2({
8241
8319
  ),
8242
8320
  ...props
8243
8321
  },
8244
- /* @__PURE__ */ React33__namespace.createElement("span", { className: "uii:absolute uii:right-2 uii:flex uii:size-3.5 uii:items-center uii:justify-center" }, /* @__PURE__ */ React33__namespace.createElement(ItemIndicator, null, /* @__PURE__ */ React33__namespace.createElement(lucideReact.CheckIcon, { className: "uii:size-4" }))),
8322
+ /* @__PURE__ */ React33__namespace.createElement("span", { className: "uii:absolute uii:right-2 uii:flex uii:size-3.5 uii:items-center uii:justify-center" }, /* @__PURE__ */ React33__namespace.createElement(ItemIndicator, null, /* @__PURE__ */ React33__namespace.createElement(Check, { className: "uii:size-4" }))),
8245
8323
  /* @__PURE__ */ React33__namespace.createElement(ItemText, null, children)
8246
8324
  );
8247
8325
  }
@@ -8259,7 +8337,7 @@ function SelectScrollUpButton2({
8259
8337
  ),
8260
8338
  ...props
8261
8339
  },
8262
- /* @__PURE__ */ React33__namespace.createElement(lucideReact.ChevronUpIcon, { className: "uii:size-4" })
8340
+ /* @__PURE__ */ React33__namespace.createElement(ChevronUp, { className: "uii:size-4" })
8263
8341
  );
8264
8342
  }
8265
8343
  function SelectScrollDownButton2({
@@ -8276,7 +8354,7 @@ function SelectScrollDownButton2({
8276
8354
  ),
8277
8355
  ...props
8278
8356
  },
8279
- /* @__PURE__ */ React33__namespace.createElement(lucideReact.ChevronDownIcon, { className: "uii:size-4" })
8357
+ /* @__PURE__ */ React33__namespace.createElement(ChevronDown, { className: "uii:size-4" })
8280
8358
  );
8281
8359
  }
8282
8360
 
@@ -8744,6 +8822,23 @@ function ToggleButton({ className, variant, size: size4, ...props }) {
8744
8822
  }
8745
8823
  );
8746
8824
  }
8825
+ var logicToggleButtonStyles = [
8826
+ "uii:inline-flex uii:items-center uii:justify-center uii:rounded-md uii:border uii:border-[#e5e7eb] uii:min-w-[28px] uii:w-[28px] uii:min-h-[56px] uii:h-[56px] uii:text-xs uii:font-bold uii:outline-none uii:focus-visible:ring-2 uii:focus-visible:ring-[#3b82f6]/40 uii:focus-visible:ring-offset-1 uii:disabled:pointer-events-none uii:disabled:opacity-50 uii:cursor-pointer uii:transition-colors uii:select-none",
8827
+ "uii:data-[state=on]:bg-[#3b82f6] uii:data-[state=on]:text-white uii:data-[state=on]:border-[#3b82f6]",
8828
+ "uii:data-[state=off]:bg-[#f3f4f6] uii:data-[state=off]:text-[#374151] uii:data-[state=off]:hover:bg-[#e5e7eb]"
8829
+ ].join(" ");
8830
+ var logicToggleButtonLabelStyles = "uii:inline-block uii:whitespace-nowrap uii:[transform:rotate(-90deg)]";
8831
+ function LogicToggleButton({ className, children, ...props }) {
8832
+ return /* @__PURE__ */ React33__namespace.createElement(
8833
+ Root3,
8834
+ {
8835
+ "data-slot": "logic-toggle-button",
8836
+ className: cn(logicToggleButtonStyles, className),
8837
+ ...props
8838
+ },
8839
+ children != null ? /* @__PURE__ */ React33__namespace.createElement("span", { className: logicToggleButtonLabelStyles }, children) : null
8840
+ );
8841
+ }
8747
8842
 
8748
8843
  // src/components/fields/types.ts
8749
8844
  function parseInferredTypes(typeStr) {
@@ -9146,11 +9241,29 @@ function useFieldValidation() {
9146
9241
  validateField
9147
9242
  };
9148
9243
  }
9244
+ /*! Bundled license information:
9245
+
9246
+ lucide-react/dist/esm/shared/src/utils.js:
9247
+ lucide-react/dist/esm/defaultAttributes.js:
9248
+ lucide-react/dist/esm/Icon.js:
9249
+ lucide-react/dist/esm/createLucideIcon.js:
9250
+ lucide-react/dist/esm/icons/check.js:
9251
+ lucide-react/dist/esm/icons/chevron-down.js:
9252
+ lucide-react/dist/esm/icons/chevron-up.js:
9253
+ lucide-react/dist/esm/lucide-react.js:
9254
+ (**
9255
+ * @license lucide-react v0.476.0 - ISC
9256
+ *
9257
+ * This source code is licensed under the ISC license.
9258
+ * See the LICENSE file in the root directory of this source tree.
9259
+ *)
9260
+ */
9149
9261
 
9150
9262
  exports.Button = Button;
9151
9263
  exports.InferredTypesContext = InferredTypesContext;
9152
9264
  exports.InferredTypesProvider = InferredTypesProvider;
9153
9265
  exports.Input = Input;
9266
+ exports.LogicToggleButton = LogicToggleButton;
9154
9267
  exports.NestedFieldProvider = NestedFieldProvider;
9155
9268
  exports.NodePropertyProvider = NodePropertyProvider;
9156
9269
  exports.OPERATORS_BY_TYPE = OPERATORS_BY_TYPE;
@@ -9164,6 +9277,7 @@ exports.getNumberConstants = getNumberConstants;
9164
9277
  exports.getOperatorsForType = getOperatorsForType;
9165
9278
  exports.getStringConstants = getStringConstants;
9166
9279
  exports.intersectTypes = intersectTypes;
9280
+ exports.logicToggleButtonStyles = logicToggleButtonStyles;
9167
9281
  exports.normalizeFieldValue = normalizeFieldValue;
9168
9282
  exports.parseInferSyntax = parseInferSyntax;
9169
9283
  exports.parseInferredTypes = parseInferredTypes;