@process.co/ui 0.0.16 → 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 +77 -0
- package/dist/components/fields/index.cjs +19 -0
- 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 +18 -1
- package/dist/components/fields/index.js.map +1 -1
- package/dist/{index-19C2gVyr.d.cts → index-D9NS5Zgl.d.cts} +13 -2
- package/dist/{index-19C2gVyr.d.ts → index-D9NS5Zgl.d.ts} +13 -2
- package/dist/index.cjs +449 -428
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +404 -385
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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);
|
|
@@ -8822,6 +8822,23 @@ function ToggleButton({ className, variant, size: size4, ...props }) {
|
|
|
8822
8822
|
}
|
|
8823
8823
|
);
|
|
8824
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
|
+
}
|
|
8825
8842
|
|
|
8826
8843
|
// src/components/fields/types.ts
|
|
8827
8844
|
function parseInferredTypes(typeStr) {
|
|
@@ -9246,6 +9263,7 @@ exports.Button = Button;
|
|
|
9246
9263
|
exports.InferredTypesContext = InferredTypesContext;
|
|
9247
9264
|
exports.InferredTypesProvider = InferredTypesProvider;
|
|
9248
9265
|
exports.Input = Input;
|
|
9266
|
+
exports.LogicToggleButton = LogicToggleButton;
|
|
9249
9267
|
exports.NestedFieldProvider = NestedFieldProvider;
|
|
9250
9268
|
exports.NodePropertyProvider = NodePropertyProvider;
|
|
9251
9269
|
exports.OPERATORS_BY_TYPE = OPERATORS_BY_TYPE;
|
|
@@ -9259,6 +9277,7 @@ exports.getNumberConstants = getNumberConstants;
|
|
|
9259
9277
|
exports.getOperatorsForType = getOperatorsForType;
|
|
9260
9278
|
exports.getStringConstants = getStringConstants;
|
|
9261
9279
|
exports.intersectTypes = intersectTypes;
|
|
9280
|
+
exports.logicToggleButtonStyles = logicToggleButtonStyles;
|
|
9262
9281
|
exports.normalizeFieldValue = normalizeFieldValue;
|
|
9263
9282
|
exports.parseInferSyntax = parseInferSyntax;
|
|
9264
9283
|
exports.parseInferredTypes = parseInferredTypes;
|