@webstudio-is/css-engine 0.139.0 → 0.140.0

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.
@@ -77,6 +77,12 @@ declare const RgbValue: z.ZodObject<{
77
77
  alpha: number;
78
78
  }>;
79
79
  export type RgbValue = z.infer<typeof RgbValue>;
80
+ export type FunctionValue = z.infer<typeof FunctionValue>;
81
+ export declare const FunctionValue: z.ZodType<{
82
+ type: "function";
83
+ name: string;
84
+ args: StyleValue;
85
+ }>;
80
86
  export declare const ImageValue: z.ZodObject<{
81
87
  type: z.ZodLiteral<"image">;
82
88
  value: z.ZodUnion<[z.ZodObject<{
@@ -194,6 +200,14 @@ export declare const TupleValueItem: z.ZodUnion<[z.ZodObject<{
194
200
  g: number;
195
201
  b: number;
196
202
  alpha: number;
203
+ }>, z.ZodType<{
204
+ type: "function";
205
+ name: string;
206
+ args: StyleValue;
207
+ }, z.ZodTypeDef, {
208
+ type: "function";
209
+ name: string;
210
+ args: StyleValue;
197
211
  }>]>;
198
212
  export type TupleValueItem = z.infer<typeof TupleValueItem>;
199
213
  export declare const TupleValue: z.ZodObject<{
@@ -249,6 +263,14 @@ export declare const TupleValue: z.ZodObject<{
249
263
  g: number;
250
264
  b: number;
251
265
  alpha: number;
266
+ }>, z.ZodType<{
267
+ type: "function";
268
+ name: string;
269
+ args: StyleValue;
270
+ }, z.ZodTypeDef, {
271
+ type: "function";
272
+ name: string;
273
+ args: StyleValue;
252
274
  }>]>, "many">;
253
275
  hidden: z.ZodOptional<z.ZodBoolean>;
254
276
  }, "strip", z.ZodTypeAny, {
@@ -270,6 +292,10 @@ export declare const TupleValue: z.ZodObject<{
270
292
  g: number;
271
293
  b: number;
272
294
  alpha: number;
295
+ } | {
296
+ type: "function";
297
+ name: string;
298
+ args: StyleValue;
273
299
  })[];
274
300
  hidden?: boolean | undefined;
275
301
  }, {
@@ -291,6 +317,10 @@ export declare const TupleValue: z.ZodObject<{
291
317
  g: number;
292
318
  b: number;
293
319
  alpha: number;
320
+ } | {
321
+ type: "function";
322
+ name: string;
323
+ args: StyleValue;
294
324
  })[];
295
325
  hidden?: boolean | undefined;
296
326
  }>;
@@ -423,6 +453,14 @@ declare const LayerValueItem: z.ZodUnion<[z.ZodObject<{
423
453
  g: number;
424
454
  b: number;
425
455
  alpha: number;
456
+ }>, z.ZodType<{
457
+ type: "function";
458
+ name: string;
459
+ args: StyleValue;
460
+ }, z.ZodTypeDef, {
461
+ type: "function";
462
+ name: string;
463
+ args: StyleValue;
426
464
  }>]>, "many">;
427
465
  hidden: z.ZodOptional<z.ZodBoolean>;
428
466
  }, "strip", z.ZodTypeAny, {
@@ -444,6 +482,10 @@ declare const LayerValueItem: z.ZodUnion<[z.ZodObject<{
444
482
  g: number;
445
483
  b: number;
446
484
  alpha: number;
485
+ } | {
486
+ type: "function";
487
+ name: string;
488
+ args: StyleValue;
447
489
  })[];
448
490
  hidden?: boolean | undefined;
449
491
  }, {
@@ -465,6 +507,10 @@ declare const LayerValueItem: z.ZodUnion<[z.ZodObject<{
465
507
  g: number;
466
508
  b: number;
467
509
  alpha: number;
510
+ } | {
511
+ type: "function";
512
+ name: string;
513
+ args: StyleValue;
468
514
  })[];
469
515
  hidden?: boolean | undefined;
470
516
  }>, z.ZodObject<{
@@ -476,6 +522,14 @@ declare const LayerValueItem: z.ZodUnion<[z.ZodObject<{
476
522
  }, {
477
523
  type: "invalid";
478
524
  value: string;
525
+ }>, z.ZodType<{
526
+ type: "function";
527
+ name: string;
528
+ args: StyleValue;
529
+ }, z.ZodTypeDef, {
530
+ type: "function";
531
+ name: string;
532
+ args: StyleValue;
479
533
  }>]>;
480
534
  export type LayerValueItem = z.infer<typeof LayerValueItem>;
481
535
  export declare const LayersValue: z.ZodObject<{
@@ -608,6 +662,14 @@ export declare const LayersValue: z.ZodObject<{
608
662
  g: number;
609
663
  b: number;
610
664
  alpha: number;
665
+ }>, z.ZodType<{
666
+ type: "function";
667
+ name: string;
668
+ args: StyleValue;
669
+ }, z.ZodTypeDef, {
670
+ type: "function";
671
+ name: string;
672
+ args: StyleValue;
611
673
  }>]>, "many">;
612
674
  hidden: z.ZodOptional<z.ZodBoolean>;
613
675
  }, "strip", z.ZodTypeAny, {
@@ -629,6 +691,10 @@ export declare const LayersValue: z.ZodObject<{
629
691
  g: number;
630
692
  b: number;
631
693
  alpha: number;
694
+ } | {
695
+ type: "function";
696
+ name: string;
697
+ args: StyleValue;
632
698
  })[];
633
699
  hidden?: boolean | undefined;
634
700
  }, {
@@ -650,6 +716,10 @@ export declare const LayersValue: z.ZodObject<{
650
716
  g: number;
651
717
  b: number;
652
718
  alpha: number;
719
+ } | {
720
+ type: "function";
721
+ name: string;
722
+ args: StyleValue;
653
723
  })[];
654
724
  hidden?: boolean | undefined;
655
725
  }>, z.ZodObject<{
@@ -661,6 +731,14 @@ export declare const LayersValue: z.ZodObject<{
661
731
  }, {
662
732
  type: "invalid";
663
733
  value: string;
734
+ }>, z.ZodType<{
735
+ type: "function";
736
+ name: string;
737
+ args: StyleValue;
738
+ }, z.ZodTypeDef, {
739
+ type: "function";
740
+ name: string;
741
+ args: StyleValue;
664
742
  }>]>, "many">;
665
743
  }, "strip", z.ZodTypeAny, {
666
744
  type: "layers";
@@ -675,6 +753,10 @@ export declare const LayersValue: z.ZodObject<{
675
753
  type: "unparsed";
676
754
  value: string;
677
755
  hidden?: boolean | undefined;
756
+ } | {
757
+ type: "function";
758
+ name: string;
759
+ args: StyleValue;
678
760
  } | {
679
761
  type: "image";
680
762
  value: {
@@ -685,9 +767,6 @@ export declare const LayersValue: z.ZodObject<{
685
767
  url: string;
686
768
  };
687
769
  hidden?: boolean | undefined;
688
- } | {
689
- type: "invalid";
690
- value: string;
691
770
  } | {
692
771
  type: "tuple";
693
772
  value: ({
@@ -707,8 +786,15 @@ export declare const LayersValue: z.ZodObject<{
707
786
  g: number;
708
787
  b: number;
709
788
  alpha: number;
789
+ } | {
790
+ type: "function";
791
+ name: string;
792
+ args: StyleValue;
710
793
  })[];
711
794
  hidden?: boolean | undefined;
795
+ } | {
796
+ type: "invalid";
797
+ value: string;
712
798
  })[];
713
799
  }, {
714
800
  type: "layers";
@@ -723,6 +809,10 @@ export declare const LayersValue: z.ZodObject<{
723
809
  type: "unparsed";
724
810
  value: string;
725
811
  hidden?: boolean | undefined;
812
+ } | {
813
+ type: "function";
814
+ name: string;
815
+ args: StyleValue;
726
816
  } | {
727
817
  type: "image";
728
818
  value: {
@@ -733,9 +823,6 @@ export declare const LayersValue: z.ZodObject<{
733
823
  url: string;
734
824
  };
735
825
  hidden?: boolean | undefined;
736
- } | {
737
- type: "invalid";
738
- value: string;
739
826
  } | {
740
827
  type: "tuple";
741
828
  value: ({
@@ -755,8 +842,15 @@ export declare const LayersValue: z.ZodObject<{
755
842
  g: number;
756
843
  b: number;
757
844
  alpha: number;
845
+ } | {
846
+ type: "function";
847
+ name: string;
848
+ args: StyleValue;
758
849
  })[];
759
850
  hidden?: boolean | undefined;
851
+ } | {
852
+ type: "invalid";
853
+ value: string;
760
854
  })[];
761
855
  }>;
762
856
  export type LayersValue = z.infer<typeof LayersValue>;
@@ -932,6 +1026,14 @@ declare const ValidStaticStyleValue: z.ZodUnion<[z.ZodObject<{
932
1026
  g: number;
933
1027
  b: number;
934
1028
  alpha: number;
1029
+ }>, z.ZodType<{
1030
+ type: "function";
1031
+ name: string;
1032
+ args: StyleValue;
1033
+ }, z.ZodTypeDef, {
1034
+ type: "function";
1035
+ name: string;
1036
+ args: StyleValue;
935
1037
  }>]>, "many">;
936
1038
  hidden: z.ZodOptional<z.ZodBoolean>;
937
1039
  }, "strip", z.ZodTypeAny, {
@@ -953,6 +1055,10 @@ declare const ValidStaticStyleValue: z.ZodUnion<[z.ZodObject<{
953
1055
  g: number;
954
1056
  b: number;
955
1057
  alpha: number;
1058
+ } | {
1059
+ type: "function";
1060
+ name: string;
1061
+ args: StyleValue;
956
1062
  })[];
957
1063
  hidden?: boolean | undefined;
958
1064
  }, {
@@ -974,6 +1080,10 @@ declare const ValidStaticStyleValue: z.ZodUnion<[z.ZodObject<{
974
1080
  g: number;
975
1081
  b: number;
976
1082
  alpha: number;
1083
+ } | {
1084
+ type: "function";
1085
+ name: string;
1086
+ args: StyleValue;
977
1087
  })[];
978
1088
  hidden?: boolean | undefined;
979
1089
  }>, z.ZodObject<{
@@ -985,6 +1095,14 @@ declare const ValidStaticStyleValue: z.ZodUnion<[z.ZodObject<{
985
1095
  }, {
986
1096
  type: "invalid";
987
1097
  value: string;
1098
+ }>, z.ZodType<{
1099
+ type: "function";
1100
+ name: string;
1101
+ args: StyleValue;
1102
+ }, z.ZodTypeDef, {
1103
+ type: "function";
1104
+ name: string;
1105
+ args: StyleValue;
988
1106
  }>]>, "many">;
989
1107
  }, "strip", z.ZodTypeAny, {
990
1108
  type: "layers";
@@ -999,6 +1117,10 @@ declare const ValidStaticStyleValue: z.ZodUnion<[z.ZodObject<{
999
1117
  type: "unparsed";
1000
1118
  value: string;
1001
1119
  hidden?: boolean | undefined;
1120
+ } | {
1121
+ type: "function";
1122
+ name: string;
1123
+ args: StyleValue;
1002
1124
  } | {
1003
1125
  type: "image";
1004
1126
  value: {
@@ -1009,9 +1131,6 @@ declare const ValidStaticStyleValue: z.ZodUnion<[z.ZodObject<{
1009
1131
  url: string;
1010
1132
  };
1011
1133
  hidden?: boolean | undefined;
1012
- } | {
1013
- type: "invalid";
1014
- value: string;
1015
1134
  } | {
1016
1135
  type: "tuple";
1017
1136
  value: ({
@@ -1031,8 +1150,15 @@ declare const ValidStaticStyleValue: z.ZodUnion<[z.ZodObject<{
1031
1150
  g: number;
1032
1151
  b: number;
1033
1152
  alpha: number;
1153
+ } | {
1154
+ type: "function";
1155
+ name: string;
1156
+ args: StyleValue;
1034
1157
  })[];
1035
1158
  hidden?: boolean | undefined;
1159
+ } | {
1160
+ type: "invalid";
1161
+ value: string;
1036
1162
  })[];
1037
1163
  }, {
1038
1164
  type: "layers";
@@ -1047,6 +1173,10 @@ declare const ValidStaticStyleValue: z.ZodUnion<[z.ZodObject<{
1047
1173
  type: "unparsed";
1048
1174
  value: string;
1049
1175
  hidden?: boolean | undefined;
1176
+ } | {
1177
+ type: "function";
1178
+ name: string;
1179
+ args: StyleValue;
1050
1180
  } | {
1051
1181
  type: "image";
1052
1182
  value: {
@@ -1057,9 +1187,6 @@ declare const ValidStaticStyleValue: z.ZodUnion<[z.ZodObject<{
1057
1187
  url: string;
1058
1188
  };
1059
1189
  hidden?: boolean | undefined;
1060
- } | {
1061
- type: "invalid";
1062
- value: string;
1063
1190
  } | {
1064
1191
  type: "tuple";
1065
1192
  value: ({
@@ -1079,8 +1206,15 @@ declare const ValidStaticStyleValue: z.ZodUnion<[z.ZodObject<{
1079
1206
  g: number;
1080
1207
  b: number;
1081
1208
  alpha: number;
1209
+ } | {
1210
+ type: "function";
1211
+ name: string;
1212
+ args: StyleValue;
1082
1213
  })[];
1083
1214
  hidden?: boolean | undefined;
1215
+ } | {
1216
+ type: "invalid";
1217
+ value: string;
1084
1218
  })[];
1085
1219
  }>, z.ZodObject<{
1086
1220
  type: z.ZodLiteral<"unit">;
@@ -1195,6 +1329,14 @@ declare const ValidStaticStyleValue: z.ZodUnion<[z.ZodObject<{
1195
1329
  g: number;
1196
1330
  b: number;
1197
1331
  alpha: number;
1332
+ }>, z.ZodType<{
1333
+ type: "function";
1334
+ name: string;
1335
+ args: StyleValue;
1336
+ }, z.ZodTypeDef, {
1337
+ type: "function";
1338
+ name: string;
1339
+ args: StyleValue;
1198
1340
  }>]>, "many">;
1199
1341
  hidden: z.ZodOptional<z.ZodBoolean>;
1200
1342
  }, "strip", z.ZodTypeAny, {
@@ -1216,6 +1358,10 @@ declare const ValidStaticStyleValue: z.ZodUnion<[z.ZodObject<{
1216
1358
  g: number;
1217
1359
  b: number;
1218
1360
  alpha: number;
1361
+ } | {
1362
+ type: "function";
1363
+ name: string;
1364
+ args: StyleValue;
1219
1365
  })[];
1220
1366
  hidden?: boolean | undefined;
1221
1367
  }, {
@@ -1237,8 +1383,20 @@ declare const ValidStaticStyleValue: z.ZodUnion<[z.ZodObject<{
1237
1383
  g: number;
1238
1384
  b: number;
1239
1385
  alpha: number;
1386
+ } | {
1387
+ type: "function";
1388
+ name: string;
1389
+ args: StyleValue;
1240
1390
  })[];
1241
1391
  hidden?: boolean | undefined;
1392
+ }>, z.ZodType<{
1393
+ type: "function";
1394
+ name: string;
1395
+ args: StyleValue;
1396
+ }, z.ZodTypeDef, {
1397
+ type: "function";
1398
+ name: string;
1399
+ args: StyleValue;
1242
1400
  }>]>;
1243
1401
  export type ValidStaticStyleValue = z.infer<typeof ValidStaticStyleValue>;
1244
1402
  /**
@@ -1266,6 +1424,10 @@ export declare const isValidStaticStyleValue: (styleValue: StyleValue) => styleV
1266
1424
  g: number;
1267
1425
  b: number;
1268
1426
  alpha: number;
1427
+ } | {
1428
+ type: "function";
1429
+ name: string;
1430
+ args: StyleValue;
1269
1431
  } | {
1270
1432
  type: "image";
1271
1433
  value: {
@@ -1295,6 +1457,10 @@ export declare const isValidStaticStyleValue: (styleValue: StyleValue) => styleV
1295
1457
  g: number;
1296
1458
  b: number;
1297
1459
  alpha: number;
1460
+ } | {
1461
+ type: "function";
1462
+ name: string;
1463
+ args: StyleValue;
1298
1464
  })[];
1299
1465
  hidden?: boolean | undefined;
1300
1466
  } | {
@@ -1310,6 +1476,10 @@ export declare const isValidStaticStyleValue: (styleValue: StyleValue) => styleV
1310
1476
  type: "unparsed";
1311
1477
  value: string;
1312
1478
  hidden?: boolean | undefined;
1479
+ } | {
1480
+ type: "function";
1481
+ name: string;
1482
+ args: StyleValue;
1313
1483
  } | {
1314
1484
  type: "image";
1315
1485
  value: {
@@ -1320,9 +1490,6 @@ export declare const isValidStaticStyleValue: (styleValue: StyleValue) => styleV
1320
1490
  url: string;
1321
1491
  };
1322
1492
  hidden?: boolean | undefined;
1323
- } | {
1324
- type: "invalid";
1325
- value: string;
1326
1493
  } | {
1327
1494
  type: "tuple";
1328
1495
  value: ({
@@ -1342,8 +1509,15 @@ export declare const isValidStaticStyleValue: (styleValue: StyleValue) => styleV
1342
1509
  g: number;
1343
1510
  b: number;
1344
1511
  alpha: number;
1512
+ } | {
1513
+ type: "function";
1514
+ name: string;
1515
+ args: StyleValue;
1345
1516
  })[];
1346
1517
  hidden?: boolean | undefined;
1518
+ } | {
1519
+ type: "invalid";
1520
+ value: string;
1347
1521
  })[];
1348
1522
  };
1349
1523
  declare const VarValue: z.ZodObject<{
@@ -1521,6 +1695,14 @@ declare const VarValue: z.ZodObject<{
1521
1695
  g: number;
1522
1696
  b: number;
1523
1697
  alpha: number;
1698
+ }>, z.ZodType<{
1699
+ type: "function";
1700
+ name: string;
1701
+ args: StyleValue;
1702
+ }, z.ZodTypeDef, {
1703
+ type: "function";
1704
+ name: string;
1705
+ args: StyleValue;
1524
1706
  }>]>, "many">;
1525
1707
  hidden: z.ZodOptional<z.ZodBoolean>;
1526
1708
  }, "strip", z.ZodTypeAny, {
@@ -1542,6 +1724,10 @@ declare const VarValue: z.ZodObject<{
1542
1724
  g: number;
1543
1725
  b: number;
1544
1726
  alpha: number;
1727
+ } | {
1728
+ type: "function";
1729
+ name: string;
1730
+ args: StyleValue;
1545
1731
  })[];
1546
1732
  hidden?: boolean | undefined;
1547
1733
  }, {
@@ -1563,6 +1749,10 @@ declare const VarValue: z.ZodObject<{
1563
1749
  g: number;
1564
1750
  b: number;
1565
1751
  alpha: number;
1752
+ } | {
1753
+ type: "function";
1754
+ name: string;
1755
+ args: StyleValue;
1566
1756
  })[];
1567
1757
  hidden?: boolean | undefined;
1568
1758
  }>, z.ZodObject<{
@@ -1574,6 +1764,14 @@ declare const VarValue: z.ZodObject<{
1574
1764
  }, {
1575
1765
  type: "invalid";
1576
1766
  value: string;
1767
+ }>, z.ZodType<{
1768
+ type: "function";
1769
+ name: string;
1770
+ args: StyleValue;
1771
+ }, z.ZodTypeDef, {
1772
+ type: "function";
1773
+ name: string;
1774
+ args: StyleValue;
1577
1775
  }>]>, "many">;
1578
1776
  }, "strip", z.ZodTypeAny, {
1579
1777
  type: "layers";
@@ -1588,6 +1786,10 @@ declare const VarValue: z.ZodObject<{
1588
1786
  type: "unparsed";
1589
1787
  value: string;
1590
1788
  hidden?: boolean | undefined;
1789
+ } | {
1790
+ type: "function";
1791
+ name: string;
1792
+ args: StyleValue;
1591
1793
  } | {
1592
1794
  type: "image";
1593
1795
  value: {
@@ -1598,9 +1800,6 @@ declare const VarValue: z.ZodObject<{
1598
1800
  url: string;
1599
1801
  };
1600
1802
  hidden?: boolean | undefined;
1601
- } | {
1602
- type: "invalid";
1603
- value: string;
1604
1803
  } | {
1605
1804
  type: "tuple";
1606
1805
  value: ({
@@ -1620,8 +1819,15 @@ declare const VarValue: z.ZodObject<{
1620
1819
  g: number;
1621
1820
  b: number;
1622
1821
  alpha: number;
1822
+ } | {
1823
+ type: "function";
1824
+ name: string;
1825
+ args: StyleValue;
1623
1826
  })[];
1624
1827
  hidden?: boolean | undefined;
1828
+ } | {
1829
+ type: "invalid";
1830
+ value: string;
1625
1831
  })[];
1626
1832
  }, {
1627
1833
  type: "layers";
@@ -1636,6 +1842,10 @@ declare const VarValue: z.ZodObject<{
1636
1842
  type: "unparsed";
1637
1843
  value: string;
1638
1844
  hidden?: boolean | undefined;
1845
+ } | {
1846
+ type: "function";
1847
+ name: string;
1848
+ args: StyleValue;
1639
1849
  } | {
1640
1850
  type: "image";
1641
1851
  value: {
@@ -1646,9 +1856,6 @@ declare const VarValue: z.ZodObject<{
1646
1856
  url: string;
1647
1857
  };
1648
1858
  hidden?: boolean | undefined;
1649
- } | {
1650
- type: "invalid";
1651
- value: string;
1652
1859
  } | {
1653
1860
  type: "tuple";
1654
1861
  value: ({
@@ -1668,8 +1875,15 @@ declare const VarValue: z.ZodObject<{
1668
1875
  g: number;
1669
1876
  b: number;
1670
1877
  alpha: number;
1878
+ } | {
1879
+ type: "function";
1880
+ name: string;
1881
+ args: StyleValue;
1671
1882
  })[];
1672
1883
  hidden?: boolean | undefined;
1884
+ } | {
1885
+ type: "invalid";
1886
+ value: string;
1673
1887
  })[];
1674
1888
  }>, z.ZodObject<{
1675
1889
  type: z.ZodLiteral<"unit">;
@@ -1784,6 +1998,14 @@ declare const VarValue: z.ZodObject<{
1784
1998
  g: number;
1785
1999
  b: number;
1786
2000
  alpha: number;
2001
+ }>, z.ZodType<{
2002
+ type: "function";
2003
+ name: string;
2004
+ args: StyleValue;
2005
+ }, z.ZodTypeDef, {
2006
+ type: "function";
2007
+ name: string;
2008
+ args: StyleValue;
1787
2009
  }>]>, "many">;
1788
2010
  hidden: z.ZodOptional<z.ZodBoolean>;
1789
2011
  }, "strip", z.ZodTypeAny, {
@@ -1805,6 +2027,10 @@ declare const VarValue: z.ZodObject<{
1805
2027
  g: number;
1806
2028
  b: number;
1807
2029
  alpha: number;
2030
+ } | {
2031
+ type: "function";
2032
+ name: string;
2033
+ args: StyleValue;
1808
2034
  })[];
1809
2035
  hidden?: boolean | undefined;
1810
2036
  }, {
@@ -1826,8 +2052,20 @@ declare const VarValue: z.ZodObject<{
1826
2052
  g: number;
1827
2053
  b: number;
1828
2054
  alpha: number;
2055
+ } | {
2056
+ type: "function";
2057
+ name: string;
2058
+ args: StyleValue;
1829
2059
  })[];
1830
2060
  hidden?: boolean | undefined;
2061
+ }>, z.ZodType<{
2062
+ type: "function";
2063
+ name: string;
2064
+ args: StyleValue;
2065
+ }, z.ZodTypeDef, {
2066
+ type: "function";
2067
+ name: string;
2068
+ args: StyleValue;
1831
2069
  }>]>, "many">;
1832
2070
  }, "strip", z.ZodTypeAny, {
1833
2071
  type: "var";
@@ -1852,6 +2090,10 @@ declare const VarValue: z.ZodObject<{
1852
2090
  g: number;
1853
2091
  b: number;
1854
2092
  alpha: number;
2093
+ } | {
2094
+ type: "function";
2095
+ name: string;
2096
+ args: StyleValue;
1855
2097
  } | {
1856
2098
  type: "image";
1857
2099
  value: {
@@ -1881,6 +2123,10 @@ declare const VarValue: z.ZodObject<{
1881
2123
  g: number;
1882
2124
  b: number;
1883
2125
  alpha: number;
2126
+ } | {
2127
+ type: "function";
2128
+ name: string;
2129
+ args: StyleValue;
1884
2130
  })[];
1885
2131
  hidden?: boolean | undefined;
1886
2132
  } | {
@@ -1896,6 +2142,10 @@ declare const VarValue: z.ZodObject<{
1896
2142
  type: "unparsed";
1897
2143
  value: string;
1898
2144
  hidden?: boolean | undefined;
2145
+ } | {
2146
+ type: "function";
2147
+ name: string;
2148
+ args: StyleValue;
1899
2149
  } | {
1900
2150
  type: "image";
1901
2151
  value: {
@@ -1906,9 +2156,6 @@ declare const VarValue: z.ZodObject<{
1906
2156
  url: string;
1907
2157
  };
1908
2158
  hidden?: boolean | undefined;
1909
- } | {
1910
- type: "invalid";
1911
- value: string;
1912
2159
  } | {
1913
2160
  type: "tuple";
1914
2161
  value: ({
@@ -1928,8 +2175,15 @@ declare const VarValue: z.ZodObject<{
1928
2175
  g: number;
1929
2176
  b: number;
1930
2177
  alpha: number;
2178
+ } | {
2179
+ type: "function";
2180
+ name: string;
2181
+ args: StyleValue;
1931
2182
  })[];
1932
2183
  hidden?: boolean | undefined;
2184
+ } | {
2185
+ type: "invalid";
2186
+ value: string;
1933
2187
  })[];
1934
2188
  })[];
1935
2189
  }, {
@@ -1955,6 +2209,10 @@ declare const VarValue: z.ZodObject<{
1955
2209
  g: number;
1956
2210
  b: number;
1957
2211
  alpha: number;
2212
+ } | {
2213
+ type: "function";
2214
+ name: string;
2215
+ args: StyleValue;
1958
2216
  } | {
1959
2217
  type: "image";
1960
2218
  value: {
@@ -1984,6 +2242,10 @@ declare const VarValue: z.ZodObject<{
1984
2242
  g: number;
1985
2243
  b: number;
1986
2244
  alpha: number;
2245
+ } | {
2246
+ type: "function";
2247
+ name: string;
2248
+ args: StyleValue;
1987
2249
  })[];
1988
2250
  hidden?: boolean | undefined;
1989
2251
  } | {
@@ -1999,6 +2261,10 @@ declare const VarValue: z.ZodObject<{
1999
2261
  type: "unparsed";
2000
2262
  value: string;
2001
2263
  hidden?: boolean | undefined;
2264
+ } | {
2265
+ type: "function";
2266
+ name: string;
2267
+ args: StyleValue;
2002
2268
  } | {
2003
2269
  type: "image";
2004
2270
  value: {
@@ -2009,9 +2275,6 @@ declare const VarValue: z.ZodObject<{
2009
2275
  url: string;
2010
2276
  };
2011
2277
  hidden?: boolean | undefined;
2012
- } | {
2013
- type: "invalid";
2014
- value: string;
2015
2278
  } | {
2016
2279
  type: "tuple";
2017
2280
  value: ({
@@ -2031,8 +2294,15 @@ declare const VarValue: z.ZodObject<{
2031
2294
  g: number;
2032
2295
  b: number;
2033
2296
  alpha: number;
2297
+ } | {
2298
+ type: "function";
2299
+ name: string;
2300
+ args: StyleValue;
2034
2301
  })[];
2035
2302
  hidden?: boolean | undefined;
2303
+ } | {
2304
+ type: "invalid";
2305
+ value: string;
2036
2306
  })[];
2037
2307
  })[];
2038
2308
  }>;
@@ -2209,6 +2479,14 @@ export declare const StyleValue: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
2209
2479
  g: number;
2210
2480
  b: number;
2211
2481
  alpha: number;
2482
+ }>, z.ZodType<{
2483
+ type: "function";
2484
+ name: string;
2485
+ args: StyleValue;
2486
+ }, z.ZodTypeDef, {
2487
+ type: "function";
2488
+ name: string;
2489
+ args: StyleValue;
2212
2490
  }>]>, "many">;
2213
2491
  hidden: z.ZodOptional<z.ZodBoolean>;
2214
2492
  }, "strip", z.ZodTypeAny, {
@@ -2230,6 +2508,10 @@ export declare const StyleValue: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
2230
2508
  g: number;
2231
2509
  b: number;
2232
2510
  alpha: number;
2511
+ } | {
2512
+ type: "function";
2513
+ name: string;
2514
+ args: StyleValue;
2233
2515
  })[];
2234
2516
  hidden?: boolean | undefined;
2235
2517
  }, {
@@ -2251,6 +2533,10 @@ export declare const StyleValue: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
2251
2533
  g: number;
2252
2534
  b: number;
2253
2535
  alpha: number;
2536
+ } | {
2537
+ type: "function";
2538
+ name: string;
2539
+ args: StyleValue;
2254
2540
  })[];
2255
2541
  hidden?: boolean | undefined;
2256
2542
  }>, z.ZodObject<{
@@ -2262,6 +2548,14 @@ export declare const StyleValue: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
2262
2548
  }, {
2263
2549
  type: "invalid";
2264
2550
  value: string;
2551
+ }>, z.ZodType<{
2552
+ type: "function";
2553
+ name: string;
2554
+ args: StyleValue;
2555
+ }, z.ZodTypeDef, {
2556
+ type: "function";
2557
+ name: string;
2558
+ args: StyleValue;
2265
2559
  }>]>, "many">;
2266
2560
  }, "strip", z.ZodTypeAny, {
2267
2561
  type: "layers";
@@ -2276,6 +2570,10 @@ export declare const StyleValue: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
2276
2570
  type: "unparsed";
2277
2571
  value: string;
2278
2572
  hidden?: boolean | undefined;
2573
+ } | {
2574
+ type: "function";
2575
+ name: string;
2576
+ args: StyleValue;
2279
2577
  } | {
2280
2578
  type: "image";
2281
2579
  value: {
@@ -2286,9 +2584,6 @@ export declare const StyleValue: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
2286
2584
  url: string;
2287
2585
  };
2288
2586
  hidden?: boolean | undefined;
2289
- } | {
2290
- type: "invalid";
2291
- value: string;
2292
2587
  } | {
2293
2588
  type: "tuple";
2294
2589
  value: ({
@@ -2308,8 +2603,15 @@ export declare const StyleValue: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
2308
2603
  g: number;
2309
2604
  b: number;
2310
2605
  alpha: number;
2606
+ } | {
2607
+ type: "function";
2608
+ name: string;
2609
+ args: StyleValue;
2311
2610
  })[];
2312
2611
  hidden?: boolean | undefined;
2612
+ } | {
2613
+ type: "invalid";
2614
+ value: string;
2313
2615
  })[];
2314
2616
  }, {
2315
2617
  type: "layers";
@@ -2324,6 +2626,10 @@ export declare const StyleValue: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
2324
2626
  type: "unparsed";
2325
2627
  value: string;
2326
2628
  hidden?: boolean | undefined;
2629
+ } | {
2630
+ type: "function";
2631
+ name: string;
2632
+ args: StyleValue;
2327
2633
  } | {
2328
2634
  type: "image";
2329
2635
  value: {
@@ -2334,9 +2640,6 @@ export declare const StyleValue: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
2334
2640
  url: string;
2335
2641
  };
2336
2642
  hidden?: boolean | undefined;
2337
- } | {
2338
- type: "invalid";
2339
- value: string;
2340
2643
  } | {
2341
2644
  type: "tuple";
2342
2645
  value: ({
@@ -2356,8 +2659,15 @@ export declare const StyleValue: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
2356
2659
  g: number;
2357
2660
  b: number;
2358
2661
  alpha: number;
2662
+ } | {
2663
+ type: "function";
2664
+ name: string;
2665
+ args: StyleValue;
2359
2666
  })[];
2360
2667
  hidden?: boolean | undefined;
2668
+ } | {
2669
+ type: "invalid";
2670
+ value: string;
2361
2671
  })[];
2362
2672
  }>, z.ZodObject<{
2363
2673
  type: z.ZodLiteral<"unit">;
@@ -2472,6 +2782,14 @@ export declare const StyleValue: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
2472
2782
  g: number;
2473
2783
  b: number;
2474
2784
  alpha: number;
2785
+ }>, z.ZodType<{
2786
+ type: "function";
2787
+ name: string;
2788
+ args: StyleValue;
2789
+ }, z.ZodTypeDef, {
2790
+ type: "function";
2791
+ name: string;
2792
+ args: StyleValue;
2475
2793
  }>]>, "many">;
2476
2794
  hidden: z.ZodOptional<z.ZodBoolean>;
2477
2795
  }, "strip", z.ZodTypeAny, {
@@ -2493,6 +2811,10 @@ export declare const StyleValue: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
2493
2811
  g: number;
2494
2812
  b: number;
2495
2813
  alpha: number;
2814
+ } | {
2815
+ type: "function";
2816
+ name: string;
2817
+ args: StyleValue;
2496
2818
  })[];
2497
2819
  hidden?: boolean | undefined;
2498
2820
  }, {
@@ -2514,8 +2836,20 @@ export declare const StyleValue: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
2514
2836
  g: number;
2515
2837
  b: number;
2516
2838
  alpha: number;
2839
+ } | {
2840
+ type: "function";
2841
+ name: string;
2842
+ args: StyleValue;
2517
2843
  })[];
2518
2844
  hidden?: boolean | undefined;
2845
+ }>, z.ZodType<{
2846
+ type: "function";
2847
+ name: string;
2848
+ args: StyleValue;
2849
+ }, z.ZodTypeDef, {
2850
+ type: "function";
2851
+ name: string;
2852
+ args: StyleValue;
2519
2853
  }>]>, z.ZodObject<{
2520
2854
  type: z.ZodLiteral<"invalid">;
2521
2855
  value: z.ZodString;
@@ -2709,6 +3043,14 @@ export declare const StyleValue: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
2709
3043
  g: number;
2710
3044
  b: number;
2711
3045
  alpha: number;
3046
+ }>, z.ZodType<{
3047
+ type: "function";
3048
+ name: string;
3049
+ args: StyleValue;
3050
+ }, z.ZodTypeDef, {
3051
+ type: "function";
3052
+ name: string;
3053
+ args: StyleValue;
2712
3054
  }>]>, "many">;
2713
3055
  hidden: z.ZodOptional<z.ZodBoolean>;
2714
3056
  }, "strip", z.ZodTypeAny, {
@@ -2730,6 +3072,10 @@ export declare const StyleValue: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
2730
3072
  g: number;
2731
3073
  b: number;
2732
3074
  alpha: number;
3075
+ } | {
3076
+ type: "function";
3077
+ name: string;
3078
+ args: StyleValue;
2733
3079
  })[];
2734
3080
  hidden?: boolean | undefined;
2735
3081
  }, {
@@ -2751,6 +3097,10 @@ export declare const StyleValue: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
2751
3097
  g: number;
2752
3098
  b: number;
2753
3099
  alpha: number;
3100
+ } | {
3101
+ type: "function";
3102
+ name: string;
3103
+ args: StyleValue;
2754
3104
  })[];
2755
3105
  hidden?: boolean | undefined;
2756
3106
  }>, z.ZodObject<{
@@ -2762,6 +3112,14 @@ export declare const StyleValue: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
2762
3112
  }, {
2763
3113
  type: "invalid";
2764
3114
  value: string;
3115
+ }>, z.ZodType<{
3116
+ type: "function";
3117
+ name: string;
3118
+ args: StyleValue;
3119
+ }, z.ZodTypeDef, {
3120
+ type: "function";
3121
+ name: string;
3122
+ args: StyleValue;
2765
3123
  }>]>, "many">;
2766
3124
  }, "strip", z.ZodTypeAny, {
2767
3125
  type: "layers";
@@ -2776,6 +3134,10 @@ export declare const StyleValue: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
2776
3134
  type: "unparsed";
2777
3135
  value: string;
2778
3136
  hidden?: boolean | undefined;
3137
+ } | {
3138
+ type: "function";
3139
+ name: string;
3140
+ args: StyleValue;
2779
3141
  } | {
2780
3142
  type: "image";
2781
3143
  value: {
@@ -2786,9 +3148,6 @@ export declare const StyleValue: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
2786
3148
  url: string;
2787
3149
  };
2788
3150
  hidden?: boolean | undefined;
2789
- } | {
2790
- type: "invalid";
2791
- value: string;
2792
3151
  } | {
2793
3152
  type: "tuple";
2794
3153
  value: ({
@@ -2808,8 +3167,15 @@ export declare const StyleValue: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
2808
3167
  g: number;
2809
3168
  b: number;
2810
3169
  alpha: number;
3170
+ } | {
3171
+ type: "function";
3172
+ name: string;
3173
+ args: StyleValue;
2811
3174
  })[];
2812
3175
  hidden?: boolean | undefined;
3176
+ } | {
3177
+ type: "invalid";
3178
+ value: string;
2813
3179
  })[];
2814
3180
  }, {
2815
3181
  type: "layers";
@@ -2824,6 +3190,10 @@ export declare const StyleValue: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
2824
3190
  type: "unparsed";
2825
3191
  value: string;
2826
3192
  hidden?: boolean | undefined;
3193
+ } | {
3194
+ type: "function";
3195
+ name: string;
3196
+ args: StyleValue;
2827
3197
  } | {
2828
3198
  type: "image";
2829
3199
  value: {
@@ -2834,9 +3204,6 @@ export declare const StyleValue: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
2834
3204
  url: string;
2835
3205
  };
2836
3206
  hidden?: boolean | undefined;
2837
- } | {
2838
- type: "invalid";
2839
- value: string;
2840
3207
  } | {
2841
3208
  type: "tuple";
2842
3209
  value: ({
@@ -2856,8 +3223,15 @@ export declare const StyleValue: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
2856
3223
  g: number;
2857
3224
  b: number;
2858
3225
  alpha: number;
3226
+ } | {
3227
+ type: "function";
3228
+ name: string;
3229
+ args: StyleValue;
2859
3230
  })[];
2860
3231
  hidden?: boolean | undefined;
3232
+ } | {
3233
+ type: "invalid";
3234
+ value: string;
2861
3235
  })[];
2862
3236
  }>, z.ZodObject<{
2863
3237
  type: z.ZodLiteral<"unit">;
@@ -2972,6 +3346,14 @@ export declare const StyleValue: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
2972
3346
  g: number;
2973
3347
  b: number;
2974
3348
  alpha: number;
3349
+ }>, z.ZodType<{
3350
+ type: "function";
3351
+ name: string;
3352
+ args: StyleValue;
3353
+ }, z.ZodTypeDef, {
3354
+ type: "function";
3355
+ name: string;
3356
+ args: StyleValue;
2975
3357
  }>]>, "many">;
2976
3358
  hidden: z.ZodOptional<z.ZodBoolean>;
2977
3359
  }, "strip", z.ZodTypeAny, {
@@ -2993,6 +3375,10 @@ export declare const StyleValue: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
2993
3375
  g: number;
2994
3376
  b: number;
2995
3377
  alpha: number;
3378
+ } | {
3379
+ type: "function";
3380
+ name: string;
3381
+ args: StyleValue;
2996
3382
  })[];
2997
3383
  hidden?: boolean | undefined;
2998
3384
  }, {
@@ -3014,8 +3400,20 @@ export declare const StyleValue: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
3014
3400
  g: number;
3015
3401
  b: number;
3016
3402
  alpha: number;
3403
+ } | {
3404
+ type: "function";
3405
+ name: string;
3406
+ args: StyleValue;
3017
3407
  })[];
3018
3408
  hidden?: boolean | undefined;
3409
+ }>, z.ZodType<{
3410
+ type: "function";
3411
+ name: string;
3412
+ args: StyleValue;
3413
+ }, z.ZodTypeDef, {
3414
+ type: "function";
3415
+ name: string;
3416
+ args: StyleValue;
3019
3417
  }>]>, "many">;
3020
3418
  }, "strip", z.ZodTypeAny, {
3021
3419
  type: "var";
@@ -3040,6 +3438,10 @@ export declare const StyleValue: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
3040
3438
  g: number;
3041
3439
  b: number;
3042
3440
  alpha: number;
3441
+ } | {
3442
+ type: "function";
3443
+ name: string;
3444
+ args: StyleValue;
3043
3445
  } | {
3044
3446
  type: "image";
3045
3447
  value: {
@@ -3069,6 +3471,10 @@ export declare const StyleValue: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
3069
3471
  g: number;
3070
3472
  b: number;
3071
3473
  alpha: number;
3474
+ } | {
3475
+ type: "function";
3476
+ name: string;
3477
+ args: StyleValue;
3072
3478
  })[];
3073
3479
  hidden?: boolean | undefined;
3074
3480
  } | {
@@ -3084,6 +3490,10 @@ export declare const StyleValue: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
3084
3490
  type: "unparsed";
3085
3491
  value: string;
3086
3492
  hidden?: boolean | undefined;
3493
+ } | {
3494
+ type: "function";
3495
+ name: string;
3496
+ args: StyleValue;
3087
3497
  } | {
3088
3498
  type: "image";
3089
3499
  value: {
@@ -3094,9 +3504,6 @@ export declare const StyleValue: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
3094
3504
  url: string;
3095
3505
  };
3096
3506
  hidden?: boolean | undefined;
3097
- } | {
3098
- type: "invalid";
3099
- value: string;
3100
3507
  } | {
3101
3508
  type: "tuple";
3102
3509
  value: ({
@@ -3116,8 +3523,15 @@ export declare const StyleValue: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
3116
3523
  g: number;
3117
3524
  b: number;
3118
3525
  alpha: number;
3526
+ } | {
3527
+ type: "function";
3528
+ name: string;
3529
+ args: StyleValue;
3119
3530
  })[];
3120
3531
  hidden?: boolean | undefined;
3532
+ } | {
3533
+ type: "invalid";
3534
+ value: string;
3121
3535
  })[];
3122
3536
  })[];
3123
3537
  }, {
@@ -3143,6 +3557,10 @@ export declare const StyleValue: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
3143
3557
  g: number;
3144
3558
  b: number;
3145
3559
  alpha: number;
3560
+ } | {
3561
+ type: "function";
3562
+ name: string;
3563
+ args: StyleValue;
3146
3564
  } | {
3147
3565
  type: "image";
3148
3566
  value: {
@@ -3172,6 +3590,10 @@ export declare const StyleValue: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
3172
3590
  g: number;
3173
3591
  b: number;
3174
3592
  alpha: number;
3593
+ } | {
3594
+ type: "function";
3595
+ name: string;
3596
+ args: StyleValue;
3175
3597
  })[];
3176
3598
  hidden?: boolean | undefined;
3177
3599
  } | {
@@ -3187,6 +3609,10 @@ export declare const StyleValue: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
3187
3609
  type: "unparsed";
3188
3610
  value: string;
3189
3611
  hidden?: boolean | undefined;
3612
+ } | {
3613
+ type: "function";
3614
+ name: string;
3615
+ args: StyleValue;
3190
3616
  } | {
3191
3617
  type: "image";
3192
3618
  value: {
@@ -3197,9 +3623,6 @@ export declare const StyleValue: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
3197
3623
  url: string;
3198
3624
  };
3199
3625
  hidden?: boolean | undefined;
3200
- } | {
3201
- type: "invalid";
3202
- value: string;
3203
3626
  } | {
3204
3627
  type: "tuple";
3205
3628
  value: ({
@@ -3219,8 +3642,15 @@ export declare const StyleValue: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
3219
3642
  g: number;
3220
3643
  b: number;
3221
3644
  alpha: number;
3645
+ } | {
3646
+ type: "function";
3647
+ name: string;
3648
+ args: StyleValue;
3222
3649
  })[];
3223
3650
  hidden?: boolean | undefined;
3651
+ } | {
3652
+ type: "invalid";
3653
+ value: string;
3224
3654
  })[];
3225
3655
  })[];
3226
3656
  }>]>;