@process.co/ui 0.0.6 → 0.0.8
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 +302 -0
- package/dist/components/fields/index.cjs +135 -1
- 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 +130 -2
- package/dist/components/fields/index.js.map +1 -1
- package/dist/{index-C1wa8N9L.d.cts → index-yubVl0hX.d.cts} +125 -2
- package/dist/{index-C1wa8N9L.d.ts → index-yubVl0hX.d.ts} +125 -2
- package/dist/index.cjs +423 -35
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +31 -2
- package/dist/index.d.ts +31 -2
- package/dist/index.js +406 -35
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/css/ui.css
CHANGED
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
--uii-font-weight-semibold: 600;
|
|
18
18
|
--uii-font-weight-bold: 700;
|
|
19
19
|
--uii-tracking-wide: 0.025em;
|
|
20
|
+
--uii-tracking-widest: 0.1em;
|
|
20
21
|
--uii-radius-xs: 0.125rem;
|
|
21
22
|
--uii-default-transition-duration: 150ms;
|
|
22
23
|
--uii-default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
@@ -202,9 +203,21 @@
|
|
|
202
203
|
.uii\:right-1\.5 {
|
|
203
204
|
right: calc(var(--uii-spacing) * 1.5);
|
|
204
205
|
}
|
|
206
|
+
.uii\:left-2 {
|
|
207
|
+
left: calc(var(--uii-spacing) * 2);
|
|
208
|
+
}
|
|
209
|
+
.uii\:z-50 {
|
|
210
|
+
z-index: 50;
|
|
211
|
+
}
|
|
212
|
+
.uii\:-mx-1 {
|
|
213
|
+
margin-inline: calc(var(--uii-spacing) * -1);
|
|
214
|
+
}
|
|
205
215
|
.uii\:mx-1 {
|
|
206
216
|
margin-inline: calc(var(--uii-spacing) * 1);
|
|
207
217
|
}
|
|
218
|
+
.uii\:my-1 {
|
|
219
|
+
margin-block: calc(var(--uii-spacing) * 1);
|
|
220
|
+
}
|
|
208
221
|
.uii\:my-\[6px\] {
|
|
209
222
|
margin-block: 6px;
|
|
210
223
|
}
|
|
@@ -1062,18 +1075,36 @@
|
|
|
1062
1075
|
.uii\:ml-2 {
|
|
1063
1076
|
margin-left: calc(var(--uii-spacing) * 2);
|
|
1064
1077
|
}
|
|
1078
|
+
.uii\:ml-auto {
|
|
1079
|
+
margin-left: auto;
|
|
1080
|
+
}
|
|
1065
1081
|
.uii\:flex {
|
|
1066
1082
|
display: flex;
|
|
1067
1083
|
}
|
|
1068
1084
|
.uii\:inline-flex {
|
|
1069
1085
|
display: inline-flex;
|
|
1070
1086
|
}
|
|
1087
|
+
.uii\:size-2 {
|
|
1088
|
+
width: calc(var(--uii-spacing) * 2);
|
|
1089
|
+
height: calc(var(--uii-spacing) * 2);
|
|
1090
|
+
}
|
|
1091
|
+
.uii\:size-3\.5 {
|
|
1092
|
+
width: calc(var(--uii-spacing) * 3.5);
|
|
1093
|
+
height: calc(var(--uii-spacing) * 3.5);
|
|
1094
|
+
}
|
|
1095
|
+
.uii\:size-4 {
|
|
1096
|
+
width: calc(var(--uii-spacing) * 4);
|
|
1097
|
+
height: calc(var(--uii-spacing) * 4);
|
|
1098
|
+
}
|
|
1071
1099
|
.uii\:h-9 {
|
|
1072
1100
|
height: calc(var(--uii-spacing) * 9);
|
|
1073
1101
|
}
|
|
1074
1102
|
.uii\:h-full {
|
|
1075
1103
|
height: 100%;
|
|
1076
1104
|
}
|
|
1105
|
+
.uii\:h-px {
|
|
1106
|
+
height: 1px;
|
|
1107
|
+
}
|
|
1077
1108
|
.uii\:max-h-64 {
|
|
1078
1109
|
max-height: calc(var(--uii-spacing) * 64);
|
|
1079
1110
|
}
|
|
@@ -1089,12 +1120,18 @@
|
|
|
1089
1120
|
.uii\:min-w-0 {
|
|
1090
1121
|
min-width: calc(var(--uii-spacing) * 0);
|
|
1091
1122
|
}
|
|
1123
|
+
.uii\:min-w-\[8rem\] {
|
|
1124
|
+
min-width: 8rem;
|
|
1125
|
+
}
|
|
1092
1126
|
.uii\:flex-1 {
|
|
1093
1127
|
flex: 1;
|
|
1094
1128
|
}
|
|
1095
1129
|
.uii\:animate-spin {
|
|
1096
1130
|
animation: spin var(--default-animation-duration, 1s) var(--default-animation-timing-function, linear) var(--default-animation-delay, 0s) infinite;
|
|
1097
1131
|
}
|
|
1132
|
+
.uii\:cursor-default {
|
|
1133
|
+
cursor: default;
|
|
1134
|
+
}
|
|
1098
1135
|
.uii\:cursor-not-allowed {
|
|
1099
1136
|
cursor: not-allowed;
|
|
1100
1137
|
}
|
|
@@ -1151,6 +1188,9 @@
|
|
|
1151
1188
|
.uii\:overflow-auto {
|
|
1152
1189
|
overflow: auto;
|
|
1153
1190
|
}
|
|
1191
|
+
.uii\:overflow-hidden {
|
|
1192
|
+
overflow: hidden;
|
|
1193
|
+
}
|
|
1154
1194
|
.uii\:rounded {
|
|
1155
1195
|
border-radius: 0.25rem;
|
|
1156
1196
|
}
|
|
@@ -1229,6 +1269,9 @@
|
|
|
1229
1269
|
.uii\:bg-blue-100 {
|
|
1230
1270
|
background-color: oklch(93.2% 0.032 255.585);
|
|
1231
1271
|
}
|
|
1272
|
+
.uii\:bg-border {
|
|
1273
|
+
background-color: var(--border);
|
|
1274
|
+
}
|
|
1232
1275
|
.uii\:bg-cyan-100 {
|
|
1233
1276
|
background-color: oklch(95.6% 0.045 203.388);
|
|
1234
1277
|
}
|
|
@@ -1262,6 +1305,9 @@
|
|
|
1262
1305
|
.uii\:bg-pink-100 {
|
|
1263
1306
|
background-color: oklch(94.8% 0.028 342.258);
|
|
1264
1307
|
}
|
|
1308
|
+
.uii\:bg-popover {
|
|
1309
|
+
background-color: var(--popover);
|
|
1310
|
+
}
|
|
1265
1311
|
.uii\:bg-purple-50 {
|
|
1266
1312
|
background-color: oklch(97.7% 0.014 308.299);
|
|
1267
1313
|
}
|
|
@@ -1283,6 +1329,9 @@
|
|
|
1283
1329
|
.uii\:bg-yellow-100 {
|
|
1284
1330
|
background-color: oklch(97.3% 0.071 103.193);
|
|
1285
1331
|
}
|
|
1332
|
+
.uii\:fill-current {
|
|
1333
|
+
fill: currentcolor;
|
|
1334
|
+
}
|
|
1286
1335
|
.uii\:p-1 {
|
|
1287
1336
|
padding: calc(var(--uii-spacing) * 1);
|
|
1288
1337
|
}
|
|
@@ -1319,6 +1368,9 @@
|
|
|
1319
1368
|
.uii\:pr-30 {
|
|
1320
1369
|
padding-right: calc(var(--uii-spacing) * 30);
|
|
1321
1370
|
}
|
|
1371
|
+
.uii\:pl-8 {
|
|
1372
|
+
padding-left: calc(var(--uii-spacing) * 8);
|
|
1373
|
+
}
|
|
1322
1374
|
.uii\:font-mono {
|
|
1323
1375
|
font-family: var(--uii-font-mono);
|
|
1324
1376
|
}
|
|
@@ -1364,6 +1416,10 @@
|
|
|
1364
1416
|
--tw-tracking: var(--uii-tracking-wide);
|
|
1365
1417
|
letter-spacing: var(--uii-tracking-wide);
|
|
1366
1418
|
}
|
|
1419
|
+
.uii\:tracking-widest {
|
|
1420
|
+
--tw-tracking: var(--uii-tracking-widest);
|
|
1421
|
+
letter-spacing: var(--uii-tracking-widest);
|
|
1422
|
+
}
|
|
1367
1423
|
.uii\:text-amber-600 {
|
|
1368
1424
|
color: oklch(66.6% 0.179 58.318);
|
|
1369
1425
|
}
|
|
@@ -1415,6 +1471,9 @@
|
|
|
1415
1471
|
.uii\:text-pink-600 {
|
|
1416
1472
|
color: oklch(59.2% 0.249 0.584);
|
|
1417
1473
|
}
|
|
1474
|
+
.uii\:text-popover-foreground {
|
|
1475
|
+
color: var(--popover-foreground);
|
|
1476
|
+
}
|
|
1418
1477
|
.uii\:text-purple-600 {
|
|
1419
1478
|
color: oklch(55.8% 0.288 302.321);
|
|
1420
1479
|
}
|
|
@@ -1445,6 +1504,14 @@
|
|
|
1445
1504
|
.uii\:opacity-50 {
|
|
1446
1505
|
opacity: 50%;
|
|
1447
1506
|
}
|
|
1507
|
+
.uii\:shadow-lg {
|
|
1508
|
+
--tw-shadow: 0 10px 15px -3px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 4px 6px -4px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
|
|
1509
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
1510
|
+
}
|
|
1511
|
+
.uii\:shadow-md {
|
|
1512
|
+
--tw-shadow: 0 4px 6px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 2px 4px -2px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
|
|
1513
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
1514
|
+
}
|
|
1448
1515
|
.uii\:shadow-xs {
|
|
1449
1516
|
--tw-shadow: 0 1px 2px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.05));
|
|
1450
1517
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
@@ -1459,6 +1526,14 @@
|
|
|
1459
1526
|
--tw-ring-color: color-mix(in oklab, var(--ring) 50%, transparent);
|
|
1460
1527
|
}
|
|
1461
1528
|
}
|
|
1529
|
+
.uii\:outline-hidden {
|
|
1530
|
+
--tw-outline-style: none;
|
|
1531
|
+
outline-style: none;
|
|
1532
|
+
@media (forced-colors: active) {
|
|
1533
|
+
outline: 2px solid transparent;
|
|
1534
|
+
outline-offset: 2px;
|
|
1535
|
+
}
|
|
1536
|
+
}
|
|
1462
1537
|
.uii\:transition-\[color\,box-shadow\] {
|
|
1463
1538
|
transition-property: color,box-shadow;
|
|
1464
1539
|
transition-timing-function: var(--tw-ease, var(--uii-default-transition-timing-function));
|
|
@@ -1473,6 +1548,10 @@
|
|
|
1473
1548
|
--tw-outline-style: none;
|
|
1474
1549
|
outline-style: none;
|
|
1475
1550
|
}
|
|
1551
|
+
.uii\:select-none {
|
|
1552
|
+
-webkit-user-select: none;
|
|
1553
|
+
user-select: none;
|
|
1554
|
+
}
|
|
1476
1555
|
.uii\:selection\:bg-primary {
|
|
1477
1556
|
& *::selection {
|
|
1478
1557
|
background-color: var(--primary);
|
|
@@ -1542,6 +1621,16 @@
|
|
|
1542
1621
|
}
|
|
1543
1622
|
}
|
|
1544
1623
|
}
|
|
1624
|
+
.uii\:focus\:bg-accent {
|
|
1625
|
+
&:focus {
|
|
1626
|
+
background-color: var(--accent);
|
|
1627
|
+
}
|
|
1628
|
+
}
|
|
1629
|
+
.uii\:focus\:text-accent-foreground {
|
|
1630
|
+
&:focus {
|
|
1631
|
+
color: var(--accent-foreground);
|
|
1632
|
+
}
|
|
1633
|
+
}
|
|
1545
1634
|
.uii\:focus-visible\:border-ring {
|
|
1546
1635
|
&:focus-visible {
|
|
1547
1636
|
border-color: var(--ring);
|
|
@@ -1589,6 +1678,177 @@
|
|
|
1589
1678
|
}
|
|
1590
1679
|
}
|
|
1591
1680
|
}
|
|
1681
|
+
.uii\:data-\[disabled\]\:pointer-events-none {
|
|
1682
|
+
&[data-disabled] {
|
|
1683
|
+
pointer-events: none;
|
|
1684
|
+
}
|
|
1685
|
+
}
|
|
1686
|
+
.uii\:data-\[disabled\]\:opacity-50 {
|
|
1687
|
+
&[data-disabled] {
|
|
1688
|
+
opacity: 50%;
|
|
1689
|
+
}
|
|
1690
|
+
}
|
|
1691
|
+
.uii\:data-\[inset\]\:pl-8 {
|
|
1692
|
+
&[data-inset] {
|
|
1693
|
+
padding-left: calc(var(--uii-spacing) * 8);
|
|
1694
|
+
}
|
|
1695
|
+
}
|
|
1696
|
+
.uii\:data-\[side\=bottom\]\:slide-in-from-top-2 {
|
|
1697
|
+
&[data-side="bottom"] {
|
|
1698
|
+
--tw-enter-translate-y: -2;
|
|
1699
|
+
}
|
|
1700
|
+
}
|
|
1701
|
+
.uii\:data-\[side\=bottom\]\:slide-in-from-top-2 {
|
|
1702
|
+
&[data-side="bottom"] {
|
|
1703
|
+
--tw-enter-translate-y: -2;
|
|
1704
|
+
}
|
|
1705
|
+
}
|
|
1706
|
+
.uii\:data-\[side\=left\]\:slide-in-from-right-2 {
|
|
1707
|
+
&[data-side="left"] {
|
|
1708
|
+
--tw-enter-translate-x: 2;
|
|
1709
|
+
}
|
|
1710
|
+
}
|
|
1711
|
+
.uii\:data-\[side\=left\]\:slide-in-from-right-2 {
|
|
1712
|
+
&[data-side="left"] {
|
|
1713
|
+
--tw-enter-translate-x: 2;
|
|
1714
|
+
}
|
|
1715
|
+
}
|
|
1716
|
+
.uii\:data-\[side\=right\]\:slide-in-from-left-2 {
|
|
1717
|
+
&[data-side="right"] {
|
|
1718
|
+
--tw-enter-translate-x: -2;
|
|
1719
|
+
}
|
|
1720
|
+
}
|
|
1721
|
+
.uii\:data-\[side\=right\]\:slide-in-from-left-2 {
|
|
1722
|
+
&[data-side="right"] {
|
|
1723
|
+
--tw-enter-translate-x: -2;
|
|
1724
|
+
}
|
|
1725
|
+
}
|
|
1726
|
+
.uii\:data-\[side\=top\]\:slide-in-from-bottom-2 {
|
|
1727
|
+
&[data-side="top"] {
|
|
1728
|
+
--tw-enter-translate-y: 2;
|
|
1729
|
+
}
|
|
1730
|
+
}
|
|
1731
|
+
.uii\:data-\[side\=top\]\:slide-in-from-bottom-2 {
|
|
1732
|
+
&[data-side="top"] {
|
|
1733
|
+
--tw-enter-translate-y: 2;
|
|
1734
|
+
}
|
|
1735
|
+
}
|
|
1736
|
+
.uii\:data-\[state\=closed\]\:animate-out {
|
|
1737
|
+
&[data-state="closed"] {
|
|
1738
|
+
animation-name: exit;
|
|
1739
|
+
animation-duration: 150ms;
|
|
1740
|
+
--tw-exit-opacity: initial;
|
|
1741
|
+
--tw-exit-scale: initial;
|
|
1742
|
+
--tw-exit-rotate: initial;
|
|
1743
|
+
--tw-exit-translate-x: initial;
|
|
1744
|
+
--tw-exit-translate-y: initial;
|
|
1745
|
+
}
|
|
1746
|
+
}
|
|
1747
|
+
.uii\:data-\[state\=closed\]\:animate-out {
|
|
1748
|
+
&[data-state="closed"] {
|
|
1749
|
+
animation-name: exit;
|
|
1750
|
+
animation-duration: 150ms;
|
|
1751
|
+
--tw-exit-opacity: initial;
|
|
1752
|
+
--tw-exit-scale: initial;
|
|
1753
|
+
--tw-exit-rotate: initial;
|
|
1754
|
+
--tw-exit-translate-x: initial;
|
|
1755
|
+
--tw-exit-translate-y: initial;
|
|
1756
|
+
}
|
|
1757
|
+
}
|
|
1758
|
+
.uii\:data-\[state\=closed\]\:fade-out-0 {
|
|
1759
|
+
&[data-state="closed"] {
|
|
1760
|
+
--tw-exit-opacity: 0;
|
|
1761
|
+
}
|
|
1762
|
+
}
|
|
1763
|
+
.uii\:data-\[state\=closed\]\:fade-out-0 {
|
|
1764
|
+
&[data-state="closed"] {
|
|
1765
|
+
--tw-exit-opacity: 0;
|
|
1766
|
+
}
|
|
1767
|
+
}
|
|
1768
|
+
.uii\:data-\[state\=closed\]\:zoom-out-95 {
|
|
1769
|
+
&[data-state="closed"] {
|
|
1770
|
+
--tw-exit-scale: .95;
|
|
1771
|
+
}
|
|
1772
|
+
}
|
|
1773
|
+
.uii\:data-\[state\=closed\]\:zoom-out-95 {
|
|
1774
|
+
&[data-state="closed"] {
|
|
1775
|
+
--tw-exit-scale: .95;
|
|
1776
|
+
}
|
|
1777
|
+
}
|
|
1778
|
+
.uii\:data-\[state\=open\]\:bg-accent {
|
|
1779
|
+
&[data-state="open"] {
|
|
1780
|
+
background-color: var(--accent);
|
|
1781
|
+
}
|
|
1782
|
+
}
|
|
1783
|
+
.uii\:data-\[state\=open\]\:text-accent-foreground {
|
|
1784
|
+
&[data-state="open"] {
|
|
1785
|
+
color: var(--accent-foreground);
|
|
1786
|
+
}
|
|
1787
|
+
}
|
|
1788
|
+
.uii\:data-\[state\=open\]\:animate-in {
|
|
1789
|
+
&[data-state="open"] {
|
|
1790
|
+
animation-name: enter;
|
|
1791
|
+
animation-duration: 150ms;
|
|
1792
|
+
--tw-enter-opacity: initial;
|
|
1793
|
+
--tw-enter-scale: initial;
|
|
1794
|
+
--tw-enter-rotate: initial;
|
|
1795
|
+
--tw-enter-translate-x: initial;
|
|
1796
|
+
--tw-enter-translate-y: initial;
|
|
1797
|
+
}
|
|
1798
|
+
}
|
|
1799
|
+
.uii\:data-\[state\=open\]\:animate-in {
|
|
1800
|
+
&[data-state="open"] {
|
|
1801
|
+
animation-name: enter;
|
|
1802
|
+
animation-duration: 150ms;
|
|
1803
|
+
--tw-enter-opacity: initial;
|
|
1804
|
+
--tw-enter-scale: initial;
|
|
1805
|
+
--tw-enter-rotate: initial;
|
|
1806
|
+
--tw-enter-translate-x: initial;
|
|
1807
|
+
--tw-enter-translate-y: initial;
|
|
1808
|
+
}
|
|
1809
|
+
}
|
|
1810
|
+
.uii\:data-\[state\=open\]\:fade-in-0 {
|
|
1811
|
+
&[data-state="open"] {
|
|
1812
|
+
--tw-enter-opacity: 0;
|
|
1813
|
+
}
|
|
1814
|
+
}
|
|
1815
|
+
.uii\:data-\[state\=open\]\:fade-in-0 {
|
|
1816
|
+
&[data-state="open"] {
|
|
1817
|
+
--tw-enter-opacity: 0;
|
|
1818
|
+
}
|
|
1819
|
+
}
|
|
1820
|
+
.uii\:data-\[state\=open\]\:zoom-in-95 {
|
|
1821
|
+
&[data-state="open"] {
|
|
1822
|
+
--tw-enter-scale: .95;
|
|
1823
|
+
}
|
|
1824
|
+
}
|
|
1825
|
+
.uii\:data-\[state\=open\]\:zoom-in-95 {
|
|
1826
|
+
&[data-state="open"] {
|
|
1827
|
+
--tw-enter-scale: .95;
|
|
1828
|
+
}
|
|
1829
|
+
}
|
|
1830
|
+
.uii\:data-\[variant\=destructive\]\:text-destructive-foreground {
|
|
1831
|
+
&[data-variant="destructive"] {
|
|
1832
|
+
color: var(--destructive-foreground);
|
|
1833
|
+
}
|
|
1834
|
+
}
|
|
1835
|
+
.uii\:data-\[variant\=destructive\]\:focus\:bg-destructive\/10 {
|
|
1836
|
+
&[data-variant="destructive"] {
|
|
1837
|
+
&:focus {
|
|
1838
|
+
background-color: var(--destructive);
|
|
1839
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
1840
|
+
background-color: color-mix(in oklab, var(--destructive) 10%, transparent);
|
|
1841
|
+
}
|
|
1842
|
+
}
|
|
1843
|
+
}
|
|
1844
|
+
}
|
|
1845
|
+
.uii\:data-\[variant\=destructive\]\:focus\:text-destructive-foreground {
|
|
1846
|
+
&[data-variant="destructive"] {
|
|
1847
|
+
&:focus {
|
|
1848
|
+
color: var(--destructive-foreground);
|
|
1849
|
+
}
|
|
1850
|
+
}
|
|
1851
|
+
}
|
|
1592
1852
|
.uii\:md\:text-sm {
|
|
1593
1853
|
@media (width >= 48rem) {
|
|
1594
1854
|
font-size: var(--uii-text-sm);
|
|
@@ -1605,6 +1865,48 @@
|
|
|
1605
1865
|
}
|
|
1606
1866
|
}
|
|
1607
1867
|
}
|
|
1868
|
+
.uii\:dark\:data-\[variant\=destructive\]\:focus\:bg-destructive\/40 {
|
|
1869
|
+
&:is(.dark *) {
|
|
1870
|
+
&[data-variant="destructive"] {
|
|
1871
|
+
&:focus {
|
|
1872
|
+
background-color: var(--destructive);
|
|
1873
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
1874
|
+
background-color: color-mix(in oklab, var(--destructive) 40%, transparent);
|
|
1875
|
+
}
|
|
1876
|
+
}
|
|
1877
|
+
}
|
|
1878
|
+
}
|
|
1879
|
+
}
|
|
1880
|
+
.uii\:\[\&_svg\]\:pointer-events-none {
|
|
1881
|
+
& svg {
|
|
1882
|
+
pointer-events: none;
|
|
1883
|
+
}
|
|
1884
|
+
}
|
|
1885
|
+
.uii\:\[\&_svg\]\:shrink-0 {
|
|
1886
|
+
& svg {
|
|
1887
|
+
flex-shrink: 0;
|
|
1888
|
+
}
|
|
1889
|
+
}
|
|
1890
|
+
.uii\:\[\&_svg\:not\(\[class\*\=size-\]\)\]\:size-4 {
|
|
1891
|
+
& svg:not([class*=size-]) {
|
|
1892
|
+
width: calc(var(--uii-spacing) * 4);
|
|
1893
|
+
height: calc(var(--uii-spacing) * 4);
|
|
1894
|
+
}
|
|
1895
|
+
}
|
|
1896
|
+
.uii\:\[\&_svg\:not\(\[class\*\=text-\]\)\]\:text-muted-foreground {
|
|
1897
|
+
& svg:not([class*=text-]) {
|
|
1898
|
+
color: var(--muted-foreground);
|
|
1899
|
+
}
|
|
1900
|
+
}
|
|
1901
|
+
.uii\:data-\[variant\=destructive\]\:\*\:\[svg\]\:\!text-destructive-foreground {
|
|
1902
|
+
&[data-variant="destructive"] {
|
|
1903
|
+
:is(& > *) {
|
|
1904
|
+
&:is(svg) {
|
|
1905
|
+
color: var(--destructive-foreground) !important;
|
|
1906
|
+
}
|
|
1907
|
+
}
|
|
1908
|
+
}
|
|
1909
|
+
}
|
|
1608
1910
|
}
|
|
1609
1911
|
@layer utilities {
|
|
1610
1912
|
.scroll-hide {
|
|
@@ -110,7 +110,7 @@ function _interopNamespace(e) {
|
|
|
110
110
|
return Object.freeze(n);
|
|
111
111
|
}
|
|
112
112
|
var React3__namespace = /*#__PURE__*/ _interopNamespace(React3);
|
|
113
|
-
// src/components/fields/
|
|
113
|
+
// src/components/fields/index.tsx
|
|
114
114
|
// ../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs
|
|
115
115
|
function r(e) {
|
|
116
116
|
var t, f, n = "";
|
|
@@ -4987,11 +4987,145 @@ function NestedFieldProvider(param) {
|
|
|
4987
4987
|
var children = param.children;
|
|
4988
4988
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, children);
|
|
4989
4989
|
}
|
|
4990
|
+
var InferredTypesContext = React3.createContext(null);
|
|
4991
|
+
function useInferredTypes() {
|
|
4992
|
+
return React3.useContext(InferredTypesContext);
|
|
4993
|
+
}
|
|
4994
|
+
function InferredTypesProvider(param) {
|
|
4995
|
+
var children = param.children;
|
|
4996
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, children);
|
|
4997
|
+
}
|
|
4998
|
+
function intersectTypes(types) {
|
|
4999
|
+
var validTypes = types.filter(function(t) {
|
|
5000
|
+
return !!t && t.length > 0;
|
|
5001
|
+
});
|
|
5002
|
+
if (validTypes.length === 0) return "any";
|
|
5003
|
+
if (validTypes.length === 1) return validTypes[0];
|
|
5004
|
+
return validTypes[0];
|
|
5005
|
+
}
|
|
5006
|
+
function parseInferSyntax(expectedType) {
|
|
5007
|
+
var _match_;
|
|
5008
|
+
if (!expectedType || !expectedType.startsWith("$infer<")) {
|
|
5009
|
+
return {
|
|
5010
|
+
mode: "normal"
|
|
5011
|
+
};
|
|
5012
|
+
}
|
|
5013
|
+
var match = expectedType.match(/^\$infer<(.+)>$/);
|
|
5014
|
+
if (!match) {
|
|
5015
|
+
return {
|
|
5016
|
+
mode: "normal"
|
|
5017
|
+
};
|
|
5018
|
+
}
|
|
5019
|
+
var content = ((_match_ = match[1]) === null || _match_ === void 0 ? void 0 : _match_.trim()) || "";
|
|
5020
|
+
if (!content.includes("|") && /^[a-zA-Z_][a-zA-Z0-9_]*$/.test(content)) {
|
|
5021
|
+
return {
|
|
5022
|
+
mode: "subscribe",
|
|
5023
|
+
subscribeToField: content
|
|
5024
|
+
};
|
|
5025
|
+
}
|
|
5026
|
+
var allowedTypes = content.split("|").map(function(t) {
|
|
5027
|
+
return t.trim();
|
|
5028
|
+
}).filter(Boolean);
|
|
5029
|
+
return {
|
|
5030
|
+
mode: "publish",
|
|
5031
|
+
allowedTypes: allowedTypes
|
|
5032
|
+
};
|
|
5033
|
+
}
|
|
5034
|
+
var OPERATORS_BY_TYPE = {
|
|
5035
|
+
string: [
|
|
5036
|
+
{
|
|
5037
|
+
value: "==",
|
|
5038
|
+
label: "equals (==)"
|
|
5039
|
+
},
|
|
5040
|
+
{
|
|
5041
|
+
value: "!=",
|
|
5042
|
+
label: "not equals (!=)"
|
|
5043
|
+
},
|
|
5044
|
+
{
|
|
5045
|
+
value: "contains",
|
|
5046
|
+
label: "contains"
|
|
5047
|
+
},
|
|
5048
|
+
{
|
|
5049
|
+
value: "startsWith",
|
|
5050
|
+
label: "starts with"
|
|
5051
|
+
},
|
|
5052
|
+
{
|
|
5053
|
+
value: "endsWith",
|
|
5054
|
+
label: "ends with"
|
|
5055
|
+
}
|
|
5056
|
+
],
|
|
5057
|
+
number: [
|
|
5058
|
+
{
|
|
5059
|
+
value: "==",
|
|
5060
|
+
label: "equals (==)"
|
|
5061
|
+
},
|
|
5062
|
+
{
|
|
5063
|
+
value: "!=",
|
|
5064
|
+
label: "not equals (!=)"
|
|
5065
|
+
},
|
|
5066
|
+
{
|
|
5067
|
+
value: "<",
|
|
5068
|
+
label: "less than (<)"
|
|
5069
|
+
},
|
|
5070
|
+
{
|
|
5071
|
+
value: ">",
|
|
5072
|
+
label: "greater than (>)"
|
|
5073
|
+
},
|
|
5074
|
+
{
|
|
5075
|
+
value: "<=",
|
|
5076
|
+
label: "less than or equal (<=)"
|
|
5077
|
+
},
|
|
5078
|
+
{
|
|
5079
|
+
value: ">=",
|
|
5080
|
+
label: "greater than or equal (>=)"
|
|
5081
|
+
}
|
|
5082
|
+
],
|
|
5083
|
+
boolean: [
|
|
5084
|
+
{
|
|
5085
|
+
value: "==",
|
|
5086
|
+
label: "equals (==)"
|
|
5087
|
+
},
|
|
5088
|
+
{
|
|
5089
|
+
value: "!=",
|
|
5090
|
+
label: "not equals (!=)"
|
|
5091
|
+
}
|
|
5092
|
+
],
|
|
5093
|
+
any: [
|
|
5094
|
+
{
|
|
5095
|
+
value: "==",
|
|
5096
|
+
label: "equals (==)"
|
|
5097
|
+
},
|
|
5098
|
+
{
|
|
5099
|
+
value: "!=",
|
|
5100
|
+
label: "not equals (!=)"
|
|
5101
|
+
}
|
|
5102
|
+
]
|
|
5103
|
+
};
|
|
5104
|
+
function getOperatorsForType(type) {
|
|
5105
|
+
var _OPERATORS_BY_TYPE_type, _ref;
|
|
5106
|
+
return (_ref = (_OPERATORS_BY_TYPE_type = OPERATORS_BY_TYPE[type]) !== null && _OPERATORS_BY_TYPE_type !== void 0 ? _OPERATORS_BY_TYPE_type : OPERATORS_BY_TYPE.any) !== null && _ref !== void 0 ? _ref : [
|
|
5107
|
+
{
|
|
5108
|
+
value: "==",
|
|
5109
|
+
label: "equals (==)"
|
|
5110
|
+
},
|
|
5111
|
+
{
|
|
5112
|
+
value: "!=",
|
|
5113
|
+
label: "not equals (!=)"
|
|
5114
|
+
}
|
|
5115
|
+
];
|
|
5116
|
+
}
|
|
5117
|
+
exports.InferredTypesContext = InferredTypesContext;
|
|
5118
|
+
exports.InferredTypesProvider = InferredTypesProvider;
|
|
4990
5119
|
exports.Input = Input;
|
|
4991
5120
|
exports.NestedFieldProvider = NestedFieldProvider;
|
|
5121
|
+
exports.OPERATORS_BY_TYPE = OPERATORS_BY_TYPE;
|
|
4992
5122
|
exports.Select = Select;
|
|
4993
5123
|
exports.TemplateFieldProvider = TemplateFieldProvider;
|
|
5124
|
+
exports.getOperatorsForType = getOperatorsForType;
|
|
5125
|
+
exports.intersectTypes = intersectTypes;
|
|
5126
|
+
exports.parseInferSyntax = parseInferSyntax;
|
|
4994
5127
|
exports.useFieldPath = useFieldPath;
|
|
5128
|
+
exports.useInferredTypes = useInferredTypes;
|
|
4995
5129
|
exports.useIsInTemplateFieldProvider = useIsInTemplateFieldProvider;
|
|
4996
5130
|
exports.useTemplateFieldContext = useTemplateFieldContext; //# sourceMappingURL=index.cjs.map
|
|
4997
5131
|
//# sourceMappingURL=index.cjs.map
|