@dashspec/renderer 0.1.13 → 0.1.15

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.
@@ -56,6 +56,8 @@ declare function createHelpers(t?: HelperSettings): {
56
56
  max: (...v: unknown[]) => number;
57
57
  sum: (list: unknown, key?: string) => number;
58
58
  /** First item of `list` whose `key` equals `value`. */
59
+ /** The first item whose `key` is truthy (e.g. waiting > 0), or undefined. */
60
+ first: (list: unknown, key: string) => any;
59
61
  lookup: (list: unknown, key: string, value: unknown) => any;
60
62
  join: (list: unknown, sep?: string) => string;
61
63
  lower: (v: unknown) => string;
@@ -1397,6 +1399,7 @@ declare const Spec: z.ZodObject<{
1397
1399
  visibleWhen: z.ZodOptional<z.ZodString>;
1398
1400
  style: z.ZodOptional<z.ZodObject<{
1399
1401
  tone: z.ZodOptional<z.ZodEnum<["default", "subtle", "accent", "plain"]>>;
1402
+ variant: z.ZodOptional<z.ZodString>;
1400
1403
  padding: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["none", "compact", "normal", "roomy"]>, z.ZodNumber]>>;
1401
1404
  hideHeader: z.ZodOptional<z.ZodBoolean>;
1402
1405
  minHeight: z.ZodOptional<z.ZodNumber>;
@@ -1411,6 +1414,7 @@ declare const Spec: z.ZodObject<{
1411
1414
  align: z.ZodOptional<z.ZodEnum<["start", "center", "end", "stretch"]>>;
1412
1415
  }, "strict", z.ZodTypeAny, {
1413
1416
  tone?: "default" | "subtle" | "accent" | "plain" | undefined;
1417
+ variant?: string | undefined;
1414
1418
  padding?: number | "compact" | "none" | "normal" | "roomy" | undefined;
1415
1419
  hideHeader?: boolean | undefined;
1416
1420
  minHeight?: number | undefined;
@@ -1425,6 +1429,7 @@ declare const Spec: z.ZodObject<{
1425
1429
  align?: "end" | "start" | "center" | "stretch" | undefined;
1426
1430
  }, {
1427
1431
  tone?: "default" | "subtle" | "accent" | "plain" | undefined;
1432
+ variant?: string | undefined;
1428
1433
  padding?: number | "compact" | "none" | "normal" | "roomy" | undefined;
1429
1434
  hideHeader?: boolean | undefined;
1430
1435
  minHeight?: number | undefined;
@@ -1525,6 +1530,7 @@ declare const Spec: z.ZodObject<{
1525
1530
  visibleWhen?: string | undefined;
1526
1531
  style?: {
1527
1532
  tone?: "default" | "subtle" | "accent" | "plain" | undefined;
1533
+ variant?: string | undefined;
1528
1534
  padding?: number | "compact" | "none" | "normal" | "roomy" | undefined;
1529
1535
  hideHeader?: boolean | undefined;
1530
1536
  minHeight?: number | undefined;
@@ -1580,6 +1586,7 @@ declare const Spec: z.ZodObject<{
1580
1586
  spec?: Record<string, unknown> | undefined;
1581
1587
  style?: {
1582
1588
  tone?: "default" | "subtle" | "accent" | "plain" | undefined;
1589
+ variant?: string | undefined;
1583
1590
  padding?: number | "compact" | "none" | "normal" | "roomy" | undefined;
1584
1591
  hideHeader?: boolean | undefined;
1585
1592
  minHeight?: number | undefined;
@@ -1689,6 +1696,7 @@ declare const Spec: z.ZodObject<{
1689
1696
  visibleWhen: z.ZodOptional<z.ZodString>;
1690
1697
  style: z.ZodOptional<z.ZodObject<{
1691
1698
  tone: z.ZodOptional<z.ZodEnum<["default", "subtle", "accent", "plain"]>>;
1699
+ variant: z.ZodOptional<z.ZodString>;
1692
1700
  padding: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["none", "compact", "normal", "roomy"]>, z.ZodNumber]>>;
1693
1701
  hideHeader: z.ZodOptional<z.ZodBoolean>;
1694
1702
  minHeight: z.ZodOptional<z.ZodNumber>;
@@ -1703,6 +1711,7 @@ declare const Spec: z.ZodObject<{
1703
1711
  align: z.ZodOptional<z.ZodEnum<["start", "center", "end", "stretch"]>>;
1704
1712
  }, "strict", z.ZodTypeAny, {
1705
1713
  tone?: "default" | "subtle" | "accent" | "plain" | undefined;
1714
+ variant?: string | undefined;
1706
1715
  padding?: number | "compact" | "none" | "normal" | "roomy" | undefined;
1707
1716
  hideHeader?: boolean | undefined;
1708
1717
  minHeight?: number | undefined;
@@ -1717,6 +1726,7 @@ declare const Spec: z.ZodObject<{
1717
1726
  align?: "end" | "start" | "center" | "stretch" | undefined;
1718
1727
  }, {
1719
1728
  tone?: "default" | "subtle" | "accent" | "plain" | undefined;
1729
+ variant?: string | undefined;
1720
1730
  padding?: number | "compact" | "none" | "normal" | "roomy" | undefined;
1721
1731
  hideHeader?: boolean | undefined;
1722
1732
  minHeight?: number | undefined;
@@ -1817,6 +1827,7 @@ declare const Spec: z.ZodObject<{
1817
1827
  visibleWhen?: string | undefined;
1818
1828
  style?: {
1819
1829
  tone?: "default" | "subtle" | "accent" | "plain" | undefined;
1830
+ variant?: string | undefined;
1820
1831
  padding?: number | "compact" | "none" | "normal" | "roomy" | undefined;
1821
1832
  hideHeader?: boolean | undefined;
1822
1833
  minHeight?: number | undefined;
@@ -1872,6 +1883,7 @@ declare const Spec: z.ZodObject<{
1872
1883
  spec?: Record<string, unknown> | undefined;
1873
1884
  style?: {
1874
1885
  tone?: "default" | "subtle" | "accent" | "plain" | undefined;
1886
+ variant?: string | undefined;
1875
1887
  padding?: number | "compact" | "none" | "normal" | "roomy" | undefined;
1876
1888
  hideHeader?: boolean | undefined;
1877
1889
  minHeight?: number | undefined;
@@ -1930,6 +1942,7 @@ declare const Spec: z.ZodObject<{
1930
1942
  visibleWhen?: string | undefined;
1931
1943
  style?: {
1932
1944
  tone?: "default" | "subtle" | "accent" | "plain" | undefined;
1945
+ variant?: string | undefined;
1933
1946
  padding?: number | "compact" | "none" | "normal" | "roomy" | undefined;
1934
1947
  hideHeader?: boolean | undefined;
1935
1948
  minHeight?: number | undefined;
@@ -1989,6 +2002,7 @@ declare const Spec: z.ZodObject<{
1989
2002
  spec?: Record<string, unknown> | undefined;
1990
2003
  style?: {
1991
2004
  tone?: "default" | "subtle" | "accent" | "plain" | undefined;
2005
+ variant?: string | undefined;
1992
2006
  padding?: number | "compact" | "none" | "normal" | "roomy" | undefined;
1993
2007
  hideHeader?: boolean | undefined;
1994
2008
  minHeight?: number | undefined;
@@ -2102,6 +2116,7 @@ declare const Spec: z.ZodObject<{
2102
2116
  visibleWhen: z.ZodOptional<z.ZodString>;
2103
2117
  style: z.ZodOptional<z.ZodObject<{
2104
2118
  tone: z.ZodOptional<z.ZodEnum<["default", "subtle", "accent", "plain"]>>;
2119
+ variant: z.ZodOptional<z.ZodString>;
2105
2120
  padding: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["none", "compact", "normal", "roomy"]>, z.ZodNumber]>>;
2106
2121
  hideHeader: z.ZodOptional<z.ZodBoolean>;
2107
2122
  minHeight: z.ZodOptional<z.ZodNumber>;
@@ -2116,6 +2131,7 @@ declare const Spec: z.ZodObject<{
2116
2131
  align: z.ZodOptional<z.ZodEnum<["start", "center", "end", "stretch"]>>;
2117
2132
  }, "strict", z.ZodTypeAny, {
2118
2133
  tone?: "default" | "subtle" | "accent" | "plain" | undefined;
2134
+ variant?: string | undefined;
2119
2135
  padding?: number | "compact" | "none" | "normal" | "roomy" | undefined;
2120
2136
  hideHeader?: boolean | undefined;
2121
2137
  minHeight?: number | undefined;
@@ -2130,6 +2146,7 @@ declare const Spec: z.ZodObject<{
2130
2146
  align?: "end" | "start" | "center" | "stretch" | undefined;
2131
2147
  }, {
2132
2148
  tone?: "default" | "subtle" | "accent" | "plain" | undefined;
2149
+ variant?: string | undefined;
2133
2150
  padding?: number | "compact" | "none" | "normal" | "roomy" | undefined;
2134
2151
  hideHeader?: boolean | undefined;
2135
2152
  minHeight?: number | undefined;
@@ -2230,6 +2247,7 @@ declare const Spec: z.ZodObject<{
2230
2247
  visibleWhen?: string | undefined;
2231
2248
  style?: {
2232
2249
  tone?: "default" | "subtle" | "accent" | "plain" | undefined;
2250
+ variant?: string | undefined;
2233
2251
  padding?: number | "compact" | "none" | "normal" | "roomy" | undefined;
2234
2252
  hideHeader?: boolean | undefined;
2235
2253
  minHeight?: number | undefined;
@@ -2285,6 +2303,7 @@ declare const Spec: z.ZodObject<{
2285
2303
  spec?: Record<string, unknown> | undefined;
2286
2304
  style?: {
2287
2305
  tone?: "default" | "subtle" | "accent" | "plain" | undefined;
2306
+ variant?: string | undefined;
2288
2307
  padding?: number | "compact" | "none" | "normal" | "roomy" | undefined;
2289
2308
  hideHeader?: boolean | undefined;
2290
2309
  minHeight?: number | undefined;
@@ -2395,6 +2414,7 @@ declare const Spec: z.ZodObject<{
2395
2414
  visibleWhen?: string | undefined;
2396
2415
  style?: {
2397
2416
  tone?: "default" | "subtle" | "accent" | "plain" | undefined;
2417
+ variant?: string | undefined;
2398
2418
  padding?: number | "compact" | "none" | "normal" | "roomy" | undefined;
2399
2419
  hideHeader?: boolean | undefined;
2400
2420
  minHeight?: number | undefined;
@@ -2474,6 +2494,7 @@ declare const Spec: z.ZodObject<{
2474
2494
  spec?: Record<string, unknown> | undefined;
2475
2495
  style?: {
2476
2496
  tone?: "default" | "subtle" | "accent" | "plain" | undefined;
2497
+ variant?: string | undefined;
2477
2498
  padding?: number | "compact" | "none" | "normal" | "roomy" | undefined;
2478
2499
  hideHeader?: boolean | undefined;
2479
2500
  minHeight?: number | undefined;
@@ -2669,6 +2690,7 @@ declare const Spec: z.ZodObject<{
2669
2690
  visibleWhen?: string | undefined;
2670
2691
  style?: {
2671
2692
  tone?: "default" | "subtle" | "accent" | "plain" | undefined;
2693
+ variant?: string | undefined;
2672
2694
  padding?: number | "compact" | "none" | "normal" | "roomy" | undefined;
2673
2695
  hideHeader?: boolean | undefined;
2674
2696
  minHeight?: number | undefined;
@@ -2827,6 +2849,7 @@ declare const Spec: z.ZodObject<{
2827
2849
  visibleWhen?: string | undefined;
2828
2850
  style?: {
2829
2851
  tone?: "default" | "subtle" | "accent" | "plain" | undefined;
2852
+ variant?: string | undefined;
2830
2853
  padding?: number | "compact" | "none" | "normal" | "roomy" | undefined;
2831
2854
  hideHeader?: boolean | undefined;
2832
2855
  minHeight?: number | undefined;
@@ -2886,6 +2909,7 @@ declare const Spec: z.ZodObject<{
2886
2909
  visibleWhen?: string | undefined;
2887
2910
  style?: {
2888
2911
  tone?: "default" | "subtle" | "accent" | "plain" | undefined;
2912
+ variant?: string | undefined;
2889
2913
  padding?: number | "compact" | "none" | "normal" | "roomy" | undefined;
2890
2914
  hideHeader?: boolean | undefined;
2891
2915
  minHeight?: number | undefined;
@@ -2974,6 +2998,7 @@ declare const Spec: z.ZodObject<{
2974
2998
  spec?: Record<string, unknown> | undefined;
2975
2999
  style?: {
2976
3000
  tone?: "default" | "subtle" | "accent" | "plain" | undefined;
3001
+ variant?: string | undefined;
2977
3002
  padding?: number | "compact" | "none" | "normal" | "roomy" | undefined;
2978
3003
  hideHeader?: boolean | undefined;
2979
3004
  minHeight?: number | undefined;
@@ -3132,6 +3157,7 @@ declare const Spec: z.ZodObject<{
3132
3157
  spec?: Record<string, unknown> | undefined;
3133
3158
  style?: {
3134
3159
  tone?: "default" | "subtle" | "accent" | "plain" | undefined;
3160
+ variant?: string | undefined;
3135
3161
  padding?: number | "compact" | "none" | "normal" | "roomy" | undefined;
3136
3162
  hideHeader?: boolean | undefined;
3137
3163
  minHeight?: number | undefined;
@@ -3191,6 +3217,7 @@ declare const Spec: z.ZodObject<{
3191
3217
  spec?: Record<string, unknown> | undefined;
3192
3218
  style?: {
3193
3219
  tone?: "default" | "subtle" | "accent" | "plain" | undefined;
3220
+ variant?: string | undefined;
3194
3221
  padding?: number | "compact" | "none" | "normal" | "roomy" | undefined;
3195
3222
  hideHeader?: boolean | undefined;
3196
3223
  minHeight?: number | undefined;
@@ -3771,6 +3798,7 @@ declare const Dashboard: z.ZodObject<{
3771
3798
  visibleWhen: z.ZodOptional<z.ZodString>;
3772
3799
  style: z.ZodOptional<z.ZodObject<{
3773
3800
  tone: z.ZodOptional<z.ZodEnum<["default", "subtle", "accent", "plain"]>>;
3801
+ variant: z.ZodOptional<z.ZodString>;
3774
3802
  padding: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["none", "compact", "normal", "roomy"]>, z.ZodNumber]>>;
3775
3803
  hideHeader: z.ZodOptional<z.ZodBoolean>;
3776
3804
  minHeight: z.ZodOptional<z.ZodNumber>;
@@ -3785,6 +3813,7 @@ declare const Dashboard: z.ZodObject<{
3785
3813
  align: z.ZodOptional<z.ZodEnum<["start", "center", "end", "stretch"]>>;
3786
3814
  }, "strict", z.ZodTypeAny, {
3787
3815
  tone?: "default" | "subtle" | "accent" | "plain" | undefined;
3816
+ variant?: string | undefined;
3788
3817
  padding?: number | "compact" | "none" | "normal" | "roomy" | undefined;
3789
3818
  hideHeader?: boolean | undefined;
3790
3819
  minHeight?: number | undefined;
@@ -3799,6 +3828,7 @@ declare const Dashboard: z.ZodObject<{
3799
3828
  align?: "end" | "start" | "center" | "stretch" | undefined;
3800
3829
  }, {
3801
3830
  tone?: "default" | "subtle" | "accent" | "plain" | undefined;
3831
+ variant?: string | undefined;
3802
3832
  padding?: number | "compact" | "none" | "normal" | "roomy" | undefined;
3803
3833
  hideHeader?: boolean | undefined;
3804
3834
  minHeight?: number | undefined;
@@ -3899,6 +3929,7 @@ declare const Dashboard: z.ZodObject<{
3899
3929
  visibleWhen?: string | undefined;
3900
3930
  style?: {
3901
3931
  tone?: "default" | "subtle" | "accent" | "plain" | undefined;
3932
+ variant?: string | undefined;
3902
3933
  padding?: number | "compact" | "none" | "normal" | "roomy" | undefined;
3903
3934
  hideHeader?: boolean | undefined;
3904
3935
  minHeight?: number | undefined;
@@ -3954,6 +3985,7 @@ declare const Dashboard: z.ZodObject<{
3954
3985
  spec?: Record<string, unknown> | undefined;
3955
3986
  style?: {
3956
3987
  tone?: "default" | "subtle" | "accent" | "plain" | undefined;
3988
+ variant?: string | undefined;
3957
3989
  padding?: number | "compact" | "none" | "normal" | "roomy" | undefined;
3958
3990
  hideHeader?: boolean | undefined;
3959
3991
  minHeight?: number | undefined;
@@ -4063,6 +4095,7 @@ declare const Dashboard: z.ZodObject<{
4063
4095
  visibleWhen: z.ZodOptional<z.ZodString>;
4064
4096
  style: z.ZodOptional<z.ZodObject<{
4065
4097
  tone: z.ZodOptional<z.ZodEnum<["default", "subtle", "accent", "plain"]>>;
4098
+ variant: z.ZodOptional<z.ZodString>;
4066
4099
  padding: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["none", "compact", "normal", "roomy"]>, z.ZodNumber]>>;
4067
4100
  hideHeader: z.ZodOptional<z.ZodBoolean>;
4068
4101
  minHeight: z.ZodOptional<z.ZodNumber>;
@@ -4077,6 +4110,7 @@ declare const Dashboard: z.ZodObject<{
4077
4110
  align: z.ZodOptional<z.ZodEnum<["start", "center", "end", "stretch"]>>;
4078
4111
  }, "strict", z.ZodTypeAny, {
4079
4112
  tone?: "default" | "subtle" | "accent" | "plain" | undefined;
4113
+ variant?: string | undefined;
4080
4114
  padding?: number | "compact" | "none" | "normal" | "roomy" | undefined;
4081
4115
  hideHeader?: boolean | undefined;
4082
4116
  minHeight?: number | undefined;
@@ -4091,6 +4125,7 @@ declare const Dashboard: z.ZodObject<{
4091
4125
  align?: "end" | "start" | "center" | "stretch" | undefined;
4092
4126
  }, {
4093
4127
  tone?: "default" | "subtle" | "accent" | "plain" | undefined;
4128
+ variant?: string | undefined;
4094
4129
  padding?: number | "compact" | "none" | "normal" | "roomy" | undefined;
4095
4130
  hideHeader?: boolean | undefined;
4096
4131
  minHeight?: number | undefined;
@@ -4191,6 +4226,7 @@ declare const Dashboard: z.ZodObject<{
4191
4226
  visibleWhen?: string | undefined;
4192
4227
  style?: {
4193
4228
  tone?: "default" | "subtle" | "accent" | "plain" | undefined;
4229
+ variant?: string | undefined;
4194
4230
  padding?: number | "compact" | "none" | "normal" | "roomy" | undefined;
4195
4231
  hideHeader?: boolean | undefined;
4196
4232
  minHeight?: number | undefined;
@@ -4246,6 +4282,7 @@ declare const Dashboard: z.ZodObject<{
4246
4282
  spec?: Record<string, unknown> | undefined;
4247
4283
  style?: {
4248
4284
  tone?: "default" | "subtle" | "accent" | "plain" | undefined;
4285
+ variant?: string | undefined;
4249
4286
  padding?: number | "compact" | "none" | "normal" | "roomy" | undefined;
4250
4287
  hideHeader?: boolean | undefined;
4251
4288
  minHeight?: number | undefined;
@@ -4304,6 +4341,7 @@ declare const Dashboard: z.ZodObject<{
4304
4341
  visibleWhen?: string | undefined;
4305
4342
  style?: {
4306
4343
  tone?: "default" | "subtle" | "accent" | "plain" | undefined;
4344
+ variant?: string | undefined;
4307
4345
  padding?: number | "compact" | "none" | "normal" | "roomy" | undefined;
4308
4346
  hideHeader?: boolean | undefined;
4309
4347
  minHeight?: number | undefined;
@@ -4363,6 +4401,7 @@ declare const Dashboard: z.ZodObject<{
4363
4401
  spec?: Record<string, unknown> | undefined;
4364
4402
  style?: {
4365
4403
  tone?: "default" | "subtle" | "accent" | "plain" | undefined;
4404
+ variant?: string | undefined;
4366
4405
  padding?: number | "compact" | "none" | "normal" | "roomy" | undefined;
4367
4406
  hideHeader?: boolean | undefined;
4368
4407
  minHeight?: number | undefined;
@@ -4476,6 +4515,7 @@ declare const Dashboard: z.ZodObject<{
4476
4515
  visibleWhen: z.ZodOptional<z.ZodString>;
4477
4516
  style: z.ZodOptional<z.ZodObject<{
4478
4517
  tone: z.ZodOptional<z.ZodEnum<["default", "subtle", "accent", "plain"]>>;
4518
+ variant: z.ZodOptional<z.ZodString>;
4479
4519
  padding: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["none", "compact", "normal", "roomy"]>, z.ZodNumber]>>;
4480
4520
  hideHeader: z.ZodOptional<z.ZodBoolean>;
4481
4521
  minHeight: z.ZodOptional<z.ZodNumber>;
@@ -4490,6 +4530,7 @@ declare const Dashboard: z.ZodObject<{
4490
4530
  align: z.ZodOptional<z.ZodEnum<["start", "center", "end", "stretch"]>>;
4491
4531
  }, "strict", z.ZodTypeAny, {
4492
4532
  tone?: "default" | "subtle" | "accent" | "plain" | undefined;
4533
+ variant?: string | undefined;
4493
4534
  padding?: number | "compact" | "none" | "normal" | "roomy" | undefined;
4494
4535
  hideHeader?: boolean | undefined;
4495
4536
  minHeight?: number | undefined;
@@ -4504,6 +4545,7 @@ declare const Dashboard: z.ZodObject<{
4504
4545
  align?: "end" | "start" | "center" | "stretch" | undefined;
4505
4546
  }, {
4506
4547
  tone?: "default" | "subtle" | "accent" | "plain" | undefined;
4548
+ variant?: string | undefined;
4507
4549
  padding?: number | "compact" | "none" | "normal" | "roomy" | undefined;
4508
4550
  hideHeader?: boolean | undefined;
4509
4551
  minHeight?: number | undefined;
@@ -4604,6 +4646,7 @@ declare const Dashboard: z.ZodObject<{
4604
4646
  visibleWhen?: string | undefined;
4605
4647
  style?: {
4606
4648
  tone?: "default" | "subtle" | "accent" | "plain" | undefined;
4649
+ variant?: string | undefined;
4607
4650
  padding?: number | "compact" | "none" | "normal" | "roomy" | undefined;
4608
4651
  hideHeader?: boolean | undefined;
4609
4652
  minHeight?: number | undefined;
@@ -4659,6 +4702,7 @@ declare const Dashboard: z.ZodObject<{
4659
4702
  spec?: Record<string, unknown> | undefined;
4660
4703
  style?: {
4661
4704
  tone?: "default" | "subtle" | "accent" | "plain" | undefined;
4705
+ variant?: string | undefined;
4662
4706
  padding?: number | "compact" | "none" | "normal" | "roomy" | undefined;
4663
4707
  hideHeader?: boolean | undefined;
4664
4708
  minHeight?: number | undefined;
@@ -4769,6 +4813,7 @@ declare const Dashboard: z.ZodObject<{
4769
4813
  visibleWhen?: string | undefined;
4770
4814
  style?: {
4771
4815
  tone?: "default" | "subtle" | "accent" | "plain" | undefined;
4816
+ variant?: string | undefined;
4772
4817
  padding?: number | "compact" | "none" | "normal" | "roomy" | undefined;
4773
4818
  hideHeader?: boolean | undefined;
4774
4819
  minHeight?: number | undefined;
@@ -4848,6 +4893,7 @@ declare const Dashboard: z.ZodObject<{
4848
4893
  spec?: Record<string, unknown> | undefined;
4849
4894
  style?: {
4850
4895
  tone?: "default" | "subtle" | "accent" | "plain" | undefined;
4896
+ variant?: string | undefined;
4851
4897
  padding?: number | "compact" | "none" | "normal" | "roomy" | undefined;
4852
4898
  hideHeader?: boolean | undefined;
4853
4899
  minHeight?: number | undefined;
@@ -5043,6 +5089,7 @@ declare const Dashboard: z.ZodObject<{
5043
5089
  visibleWhen?: string | undefined;
5044
5090
  style?: {
5045
5091
  tone?: "default" | "subtle" | "accent" | "plain" | undefined;
5092
+ variant?: string | undefined;
5046
5093
  padding?: number | "compact" | "none" | "normal" | "roomy" | undefined;
5047
5094
  hideHeader?: boolean | undefined;
5048
5095
  minHeight?: number | undefined;
@@ -5201,6 +5248,7 @@ declare const Dashboard: z.ZodObject<{
5201
5248
  visibleWhen?: string | undefined;
5202
5249
  style?: {
5203
5250
  tone?: "default" | "subtle" | "accent" | "plain" | undefined;
5251
+ variant?: string | undefined;
5204
5252
  padding?: number | "compact" | "none" | "normal" | "roomy" | undefined;
5205
5253
  hideHeader?: boolean | undefined;
5206
5254
  minHeight?: number | undefined;
@@ -5260,6 +5308,7 @@ declare const Dashboard: z.ZodObject<{
5260
5308
  visibleWhen?: string | undefined;
5261
5309
  style?: {
5262
5310
  tone?: "default" | "subtle" | "accent" | "plain" | undefined;
5311
+ variant?: string | undefined;
5263
5312
  padding?: number | "compact" | "none" | "normal" | "roomy" | undefined;
5264
5313
  hideHeader?: boolean | undefined;
5265
5314
  minHeight?: number | undefined;
@@ -5348,6 +5397,7 @@ declare const Dashboard: z.ZodObject<{
5348
5397
  spec?: Record<string, unknown> | undefined;
5349
5398
  style?: {
5350
5399
  tone?: "default" | "subtle" | "accent" | "plain" | undefined;
5400
+ variant?: string | undefined;
5351
5401
  padding?: number | "compact" | "none" | "normal" | "roomy" | undefined;
5352
5402
  hideHeader?: boolean | undefined;
5353
5403
  minHeight?: number | undefined;
@@ -5506,6 +5556,7 @@ declare const Dashboard: z.ZodObject<{
5506
5556
  spec?: Record<string, unknown> | undefined;
5507
5557
  style?: {
5508
5558
  tone?: "default" | "subtle" | "accent" | "plain" | undefined;
5559
+ variant?: string | undefined;
5509
5560
  padding?: number | "compact" | "none" | "normal" | "roomy" | undefined;
5510
5561
  hideHeader?: boolean | undefined;
5511
5562
  minHeight?: number | undefined;
@@ -5565,6 +5616,7 @@ declare const Dashboard: z.ZodObject<{
5565
5616
  spec?: Record<string, unknown> | undefined;
5566
5617
  style?: {
5567
5618
  tone?: "default" | "subtle" | "accent" | "plain" | undefined;
5619
+ variant?: string | undefined;
5568
5620
  padding?: number | "compact" | "none" | "normal" | "roomy" | undefined;
5569
5621
  hideHeader?: boolean | undefined;
5570
5622
  minHeight?: number | undefined;
@@ -5656,6 +5708,7 @@ declare const Dashboard: z.ZodObject<{
5656
5708
  visibleWhen?: string | undefined;
5657
5709
  style?: {
5658
5710
  tone?: "default" | "subtle" | "accent" | "plain" | undefined;
5711
+ variant?: string | undefined;
5659
5712
  padding?: number | "compact" | "none" | "normal" | "roomy" | undefined;
5660
5713
  hideHeader?: boolean | undefined;
5661
5714
  minHeight?: number | undefined;
@@ -5814,6 +5867,7 @@ declare const Dashboard: z.ZodObject<{
5814
5867
  visibleWhen?: string | undefined;
5815
5868
  style?: {
5816
5869
  tone?: "default" | "subtle" | "accent" | "plain" | undefined;
5870
+ variant?: string | undefined;
5817
5871
  padding?: number | "compact" | "none" | "normal" | "roomy" | undefined;
5818
5872
  hideHeader?: boolean | undefined;
5819
5873
  minHeight?: number | undefined;
@@ -5873,6 +5927,7 @@ declare const Dashboard: z.ZodObject<{
5873
5927
  visibleWhen?: string | undefined;
5874
5928
  style?: {
5875
5929
  tone?: "default" | "subtle" | "accent" | "plain" | undefined;
5930
+ variant?: string | undefined;
5876
5931
  padding?: number | "compact" | "none" | "normal" | "roomy" | undefined;
5877
5932
  hideHeader?: boolean | undefined;
5878
5933
  minHeight?: number | undefined;
@@ -5977,6 +6032,7 @@ declare const Dashboard: z.ZodObject<{
5977
6032
  spec?: Record<string, unknown> | undefined;
5978
6033
  style?: {
5979
6034
  tone?: "default" | "subtle" | "accent" | "plain" | undefined;
6035
+ variant?: string | undefined;
5980
6036
  padding?: number | "compact" | "none" | "normal" | "roomy" | undefined;
5981
6037
  hideHeader?: boolean | undefined;
5982
6038
  minHeight?: number | undefined;
@@ -6135,6 +6191,7 @@ declare const Dashboard: z.ZodObject<{
6135
6191
  spec?: Record<string, unknown> | undefined;
6136
6192
  style?: {
6137
6193
  tone?: "default" | "subtle" | "accent" | "plain" | undefined;
6194
+ variant?: string | undefined;
6138
6195
  padding?: number | "compact" | "none" | "normal" | "roomy" | undefined;
6139
6196
  hideHeader?: boolean | undefined;
6140
6197
  minHeight?: number | undefined;
@@ -6194,6 +6251,7 @@ declare const Dashboard: z.ZodObject<{
6194
6251
  spec?: Record<string, unknown> | undefined;
6195
6252
  style?: {
6196
6253
  tone?: "default" | "subtle" | "accent" | "plain" | undefined;
6254
+ variant?: string | undefined;
6197
6255
  padding?: number | "compact" | "none" | "normal" | "roomy" | undefined;
6198
6256
  hideHeader?: boolean | undefined;
6199
6257
  minHeight?: number | undefined;
@@ -6653,6 +6711,7 @@ declare const Modal: z.ZodObject<{
6653
6711
  visibleWhen: z.ZodOptional<z.ZodString>;
6654
6712
  style: z.ZodOptional<z.ZodObject<{
6655
6713
  tone: z.ZodOptional<z.ZodEnum<["default", "subtle", "accent", "plain"]>>;
6714
+ variant: z.ZodOptional<z.ZodString>;
6656
6715
  padding: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["none", "compact", "normal", "roomy"]>, z.ZodNumber]>>;
6657
6716
  hideHeader: z.ZodOptional<z.ZodBoolean>;
6658
6717
  minHeight: z.ZodOptional<z.ZodNumber>;
@@ -6667,6 +6726,7 @@ declare const Modal: z.ZodObject<{
6667
6726
  align: z.ZodOptional<z.ZodEnum<["start", "center", "end", "stretch"]>>;
6668
6727
  }, "strict", z.ZodTypeAny, {
6669
6728
  tone?: "default" | "subtle" | "accent" | "plain" | undefined;
6729
+ variant?: string | undefined;
6670
6730
  padding?: number | "compact" | "none" | "normal" | "roomy" | undefined;
6671
6731
  hideHeader?: boolean | undefined;
6672
6732
  minHeight?: number | undefined;
@@ -6681,6 +6741,7 @@ declare const Modal: z.ZodObject<{
6681
6741
  align?: "end" | "start" | "center" | "stretch" | undefined;
6682
6742
  }, {
6683
6743
  tone?: "default" | "subtle" | "accent" | "plain" | undefined;
6744
+ variant?: string | undefined;
6684
6745
  padding?: number | "compact" | "none" | "normal" | "roomy" | undefined;
6685
6746
  hideHeader?: boolean | undefined;
6686
6747
  minHeight?: number | undefined;
@@ -6781,6 +6842,7 @@ declare const Modal: z.ZodObject<{
6781
6842
  visibleWhen?: string | undefined;
6782
6843
  style?: {
6783
6844
  tone?: "default" | "subtle" | "accent" | "plain" | undefined;
6845
+ variant?: string | undefined;
6784
6846
  padding?: number | "compact" | "none" | "normal" | "roomy" | undefined;
6785
6847
  hideHeader?: boolean | undefined;
6786
6848
  minHeight?: number | undefined;
@@ -6836,6 +6898,7 @@ declare const Modal: z.ZodObject<{
6836
6898
  spec?: Record<string, unknown> | undefined;
6837
6899
  style?: {
6838
6900
  tone?: "default" | "subtle" | "accent" | "plain" | undefined;
6901
+ variant?: string | undefined;
6839
6902
  padding?: number | "compact" | "none" | "normal" | "roomy" | undefined;
6840
6903
  hideHeader?: boolean | undefined;
6841
6904
  minHeight?: number | undefined;
@@ -6946,6 +7009,7 @@ declare const Modal: z.ZodObject<{
6946
7009
  visibleWhen?: string | undefined;
6947
7010
  style?: {
6948
7011
  tone?: "default" | "subtle" | "accent" | "plain" | undefined;
7012
+ variant?: string | undefined;
6949
7013
  padding?: number | "compact" | "none" | "normal" | "roomy" | undefined;
6950
7014
  hideHeader?: boolean | undefined;
6951
7015
  minHeight?: number | undefined;
@@ -7025,6 +7089,7 @@ declare const Modal: z.ZodObject<{
7025
7089
  spec?: Record<string, unknown> | undefined;
7026
7090
  style?: {
7027
7091
  tone?: "default" | "subtle" | "accent" | "plain" | undefined;
7092
+ variant?: string | undefined;
7028
7093
  padding?: number | "compact" | "none" | "normal" | "roomy" | undefined;
7029
7094
  hideHeader?: boolean | undefined;
7030
7095
  minHeight?: number | undefined;
@@ -7232,6 +7297,8 @@ declare const Panel: z.ZodObject<{
7232
7297
  visibleWhen: z.ZodOptional<z.ZodString>;
7233
7298
  style: z.ZodOptional<z.ZodObject<{
7234
7299
  tone: z.ZodOptional<z.ZodEnum<["default", "subtle", "accent", "plain"]>>;
7300
+ /** A name a theme can style this panel by: `theme.widgets["Table:compact"]` targets Tables with variant "compact". */
7301
+ variant: z.ZodOptional<z.ZodString>;
7235
7302
  padding: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["none", "compact", "normal", "roomy"]>, z.ZodNumber]>>;
7236
7303
  hideHeader: z.ZodOptional<z.ZodBoolean>;
7237
7304
  minHeight: z.ZodOptional<z.ZodNumber>;
@@ -7248,6 +7315,7 @@ declare const Panel: z.ZodObject<{
7248
7315
  align: z.ZodOptional<z.ZodEnum<["start", "center", "end", "stretch"]>>;
7249
7316
  }, "strict", z.ZodTypeAny, {
7250
7317
  tone?: "default" | "subtle" | "accent" | "plain" | undefined;
7318
+ variant?: string | undefined;
7251
7319
  padding?: number | "compact" | "none" | "normal" | "roomy" | undefined;
7252
7320
  hideHeader?: boolean | undefined;
7253
7321
  minHeight?: number | undefined;
@@ -7262,6 +7330,7 @@ declare const Panel: z.ZodObject<{
7262
7330
  align?: "end" | "start" | "center" | "stretch" | undefined;
7263
7331
  }, {
7264
7332
  tone?: "default" | "subtle" | "accent" | "plain" | undefined;
7333
+ variant?: string | undefined;
7265
7334
  padding?: number | "compact" | "none" | "normal" | "roomy" | undefined;
7266
7335
  hideHeader?: boolean | undefined;
7267
7336
  minHeight?: number | undefined;
@@ -7367,6 +7436,7 @@ declare const Panel: z.ZodObject<{
7367
7436
  visibleWhen?: string | undefined;
7368
7437
  style?: {
7369
7438
  tone?: "default" | "subtle" | "accent" | "plain" | undefined;
7439
+ variant?: string | undefined;
7370
7440
  padding?: number | "compact" | "none" | "normal" | "roomy" | undefined;
7371
7441
  hideHeader?: boolean | undefined;
7372
7442
  minHeight?: number | undefined;
@@ -7422,6 +7492,7 @@ declare const Panel: z.ZodObject<{
7422
7492
  spec?: Record<string, unknown> | undefined;
7423
7493
  style?: {
7424
7494
  tone?: "default" | "subtle" | "accent" | "plain" | undefined;
7495
+ variant?: string | undefined;
7425
7496
  padding?: number | "compact" | "none" | "normal" | "roomy" | undefined;
7426
7497
  hideHeader?: boolean | undefined;
7427
7498
  minHeight?: number | undefined;
@@ -7482,7 +7553,7 @@ declare class TransformError extends Error {
7482
7553
  declare function applyTransform(data: unknown, steps: readonly Step[], root: Scope, opts?: TransformOptions): unknown;
7483
7554
 
7484
7555
  /** This package's version. A test keeps it equal to package.json's; bump both together. */
7485
- declare const RENDERER_VERSION = "0.1.13";
7556
+ declare const RENDERER_VERSION = "0.1.15";
7486
7557
  /**
7487
7558
  * Whether `version` satisfies `range`. Supports what documents need: "1.2.3" (that or newer within the major, like
7488
7559
  * "^"), ">=1.2", ">1.2.3", "<2", "<=2.1", "^1.2", "~1.2.3", and several of them separated by spaces (all must hold).
package/dist/core.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export { f as ACTION_KINDS, g as ACTION_SCHEMAS, h as API_VERSION, i as Action, j as ActionRef, k as Auth, B as BREAKPOINTS, l as BUILT_IN_DATASOURCE_TYPES, C as Callback, m as Connection, n as ConnectionSpec, o as DATE_PRESETS, D as Dashboard, p as DashboardInput, q as DataBinding, r as DataError, s as DataErrorCode, t as Datasource, u as DateRange, v as Display, w as Drill, x as Duration, y as EventHandler, z as EventMap, F as Expression, G as ExpressionError, I as FnProp, a$ as Grid, K as Handler, L as HelperSettings, M as Helpers, H as HttpClient, O as HttpClientInternals, P as Id, J as JsonValue, Q as Layout, U as LayoutItem, V as LoadOptions, X as LoadResult, Y as Metadata, Z as MigrateResult, _ as MigrationError, $ as Modal, a0 as NamedAction, N as NetworkOptions, a1 as Node, a2 as Panel, a3 as PanelControl, a4 as PanelMigration, a6 as Problem, a7 as RENDERER_VERSION, a8 as RESERVED_STATE_KEYS, a9 as RefRoot, aa as Reference, ab as Requires, R as ResolvedRequest, ac as SCHEMA_URL, S as Scope, ad as Severity, ae as Spec, b0 as StatusTone, af as Template, a as TimeSettings, ag as TokenSource, ah as TransformError, ai as TransformOptions, aj as TransformStep, ak as Translations, al as VARIABLE_KINDS, am as ValidateOptions, an as ValidationResult, ao as Variable, ap as WidgetCheck, aq as WidgetMigrations, as as applyTransform, at as buildRequestUrl, au as buildUrl, av as builtInWidgetChecks, aw as collectReferences, ax as compile, ay as createHelpers, az as createHttpClient, aA as dashboardJsonSchema, aB as evaluate, aC as evaluateSafe, aD as expressionReferences, aE as graphqlData, aF as interpolate, aG as interpolateUrl, aH as isCallbackSource, aI as isSafeUrl, aJ as loadDocument, aK as mergeConnections, aL as migrateDocument, aM as parse, aN as parseDuration, aO as placeholders, aP as plantDate, aQ as plantDayStart, aR as resolve, aS as resolveBaseUrl, aT as resolveRequest, aU as safeLink, aV as satisfies, aW as scope, aX as stripStrings, aY as templateReferences, aZ as translator, a_ as validateDocument } from './core-C6GFuH_O.js';
1
+ export { f as ACTION_KINDS, g as ACTION_SCHEMAS, h as API_VERSION, i as Action, j as ActionRef, k as Auth, B as BREAKPOINTS, l as BUILT_IN_DATASOURCE_TYPES, C as Callback, m as Connection, n as ConnectionSpec, o as DATE_PRESETS, D as Dashboard, p as DashboardInput, q as DataBinding, r as DataError, s as DataErrorCode, t as Datasource, u as DateRange, v as Display, w as Drill, x as Duration, y as EventHandler, z as EventMap, F as Expression, G as ExpressionError, I as FnProp, a$ as Grid, K as Handler, L as HelperSettings, M as Helpers, H as HttpClient, O as HttpClientInternals, P as Id, J as JsonValue, Q as Layout, U as LayoutItem, V as LoadOptions, X as LoadResult, Y as Metadata, Z as MigrateResult, _ as MigrationError, $ as Modal, a0 as NamedAction, N as NetworkOptions, a1 as Node, a2 as Panel, a3 as PanelControl, a4 as PanelMigration, a6 as Problem, a7 as RENDERER_VERSION, a8 as RESERVED_STATE_KEYS, a9 as RefRoot, aa as Reference, ab as Requires, R as ResolvedRequest, ac as SCHEMA_URL, S as Scope, ad as Severity, ae as Spec, b0 as StatusTone, af as Template, a as TimeSettings, ag as TokenSource, ah as TransformError, ai as TransformOptions, aj as TransformStep, ak as Translations, al as VARIABLE_KINDS, am as ValidateOptions, an as ValidationResult, ao as Variable, ap as WidgetCheck, aq as WidgetMigrations, as as applyTransform, at as buildRequestUrl, au as buildUrl, av as builtInWidgetChecks, aw as collectReferences, ax as compile, ay as createHelpers, az as createHttpClient, aA as dashboardJsonSchema, aB as evaluate, aC as evaluateSafe, aD as expressionReferences, aE as graphqlData, aF as interpolate, aG as interpolateUrl, aH as isCallbackSource, aI as isSafeUrl, aJ as loadDocument, aK as mergeConnections, aL as migrateDocument, aM as parse, aN as parseDuration, aO as placeholders, aP as plantDate, aQ as plantDayStart, aR as resolve, aS as resolveBaseUrl, aT as resolveRequest, aU as safeLink, aV as satisfies, aW as scope, aX as stripStrings, aY as templateReferences, aZ as translator, a_ as validateDocument } from './core-CLhuHvGm.js';
2
2
  import 'zod';
3
3
  import 'react';
package/dist/core.js CHANGED
@@ -81,7 +81,7 @@ import {
81
81
  templateReferences,
82
82
  translator,
83
83
  validateDocument
84
- } from "./chunk-42YQDK6L.js";
84
+ } from "./chunk-WRLIWT7F.js";
85
85
  export {
86
86
  ACTION_KINDS,
87
87
  ACTION_SCHEMAS,
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { A as AnyWidgetDefinition, T as TreeState, H as HttpClient, R as ResolvedRequest, a as TimeSettings, D as Dashboard, N as NetworkOptions, J as JsonValue, S as Scope, W as WidgetDefinition, b as SlotDefinition, c as SlotRenderOptions, d as WidgetMeta, e as WidgetProps } from './core-C6GFuH_O.js';
2
- export { f as ACTION_KINDS, g as ACTION_SCHEMAS, h as API_VERSION, i as Action, j as ActionRef, k as Auth, B as BREAKPOINTS, l as BUILT_IN_DATASOURCE_TYPES, C as Callback, m as Connection, n as ConnectionSpec, o as DATE_PRESETS, p as DashboardInput, q as DataBinding, r as DataError, s as DataErrorCode, t as Datasource, u as DateRange, v as Display, w as Drill, x as Duration, E as Emit, y as EventHandler, z as EventMap, F as Expression, G as ExpressionError, I as FnProp, K as Handler, L as HelperSettings, M as Helpers, O as HttpClientInternals, P as Id, Q as Layout, U as LayoutItem, V as LoadOptions, X as LoadResult, Y as Metadata, Z as MigrateResult, _ as MigrationError, $ as Modal, a0 as NamedAction, a1 as Node, a2 as Panel, a3 as PanelControl, a4 as PanelMigration, a5 as PanelState, a6 as Problem, a7 as RENDERER_VERSION, a8 as RESERVED_STATE_KEYS, a9 as RefRoot, aa as Reference, ab as Requires, ac as SCHEMA_URL, ad as Severity, ae as Spec, af as Template, ag as TokenSource, ah as TransformError, ai as TransformOptions, aj as TransformStep, ak as Translations, al as VARIABLE_KINDS, am as ValidateOptions, an as ValidationResult, ao as Variable, ap as WidgetCheck, aq as WidgetMigrations, ar as WidgetStore, as as applyTransform, at as buildRequestUrl, au as buildUrl, av as builtInWidgetChecks, aw as collectReferences, ax as compile, ay as createHelpers, az as createHttpClient, aA as dashboardJsonSchema, aB as evaluate, aC as evaluateSafe, aD as expressionReferences, aE as graphqlData, aF as interpolate, aG as interpolateUrl, aH as isCallbackSource, aI as isSafeUrl, aJ as loadDocument, aK as mergeConnections, aL as migrateDocument, aM as parse, aN as parseDuration, aO as placeholders, aP as plantDate, aQ as plantDayStart, aR as resolve, aS as resolveBaseUrl, aT as resolveRequest, aU as safeLink, aV as satisfies, aW as scope, aX as stripStrings, aY as templateReferences, aZ as translator, a_ as validateDocument } from './core-C6GFuH_O.js';
1
+ import { A as AnyWidgetDefinition, T as TreeState, H as HttpClient, R as ResolvedRequest, a as TimeSettings, D as Dashboard, N as NetworkOptions, J as JsonValue, S as Scope, W as WidgetDefinition, b as SlotDefinition, c as SlotRenderOptions, d as WidgetMeta, e as WidgetProps } from './core-CLhuHvGm.js';
2
+ export { f as ACTION_KINDS, g as ACTION_SCHEMAS, h as API_VERSION, i as Action, j as ActionRef, k as Auth, B as BREAKPOINTS, l as BUILT_IN_DATASOURCE_TYPES, C as Callback, m as Connection, n as ConnectionSpec, o as DATE_PRESETS, p as DashboardInput, q as DataBinding, r as DataError, s as DataErrorCode, t as Datasource, u as DateRange, v as Display, w as Drill, x as Duration, E as Emit, y as EventHandler, z as EventMap, F as Expression, G as ExpressionError, I as FnProp, K as Handler, L as HelperSettings, M as Helpers, O as HttpClientInternals, P as Id, Q as Layout, U as LayoutItem, V as LoadOptions, X as LoadResult, Y as Metadata, Z as MigrateResult, _ as MigrationError, $ as Modal, a0 as NamedAction, a1 as Node, a2 as Panel, a3 as PanelControl, a4 as PanelMigration, a5 as PanelState, a6 as Problem, a7 as RENDERER_VERSION, a8 as RESERVED_STATE_KEYS, a9 as RefRoot, aa as Reference, ab as Requires, ac as SCHEMA_URL, ad as Severity, ae as Spec, af as Template, ag as TokenSource, ah as TransformError, ai as TransformOptions, aj as TransformStep, ak as Translations, al as VARIABLE_KINDS, am as ValidateOptions, an as ValidationResult, ao as Variable, ap as WidgetCheck, aq as WidgetMigrations, ar as WidgetStore, as as applyTransform, at as buildRequestUrl, au as buildUrl, av as builtInWidgetChecks, aw as collectReferences, ax as compile, ay as createHelpers, az as createHttpClient, aA as dashboardJsonSchema, aB as evaluate, aC as evaluateSafe, aD as expressionReferences, aE as graphqlData, aF as interpolate, aG as interpolateUrl, aH as isCallbackSource, aI as isSafeUrl, aJ as loadDocument, aK as mergeConnections, aL as migrateDocument, aM as parse, aN as parseDuration, aO as placeholders, aP as plantDate, aQ as plantDayStart, aR as resolve, aS as resolveBaseUrl, aT as resolveRequest, aU as safeLink, aV as satisfies, aW as scope, aX as stripStrings, aY as templateReferences, aZ as translator, a_ as validateDocument } from './core-CLhuHvGm.js';
3
3
  import * as react from 'react';
4
4
  import { CSSProperties, ReactNode, ComponentType } from 'react';
5
5
  import * as react_jsx_runtime from 'react/jsx-runtime';
@@ -227,7 +227,7 @@ interface WidgetTheme {
227
227
  }
228
228
  interface Theme {
229
229
  name: string;
230
- /** Per-widget overrides and settings, by widget kind. */
230
+ /** Per-widget overrides and settings, by widget kind (`"Kpi"`) or kind and panel variant (`"Kpi:hero"`). */
231
231
  widgets?: Record<string, WidgetTheme>;
232
232
  /** `auto` follows the viewer's system setting. */
233
233
  mode: ThemeMode | "auto";
@@ -758,6 +758,7 @@ declare function createDashboardRuntime(doc: Dashboard, options?: RuntimeOptions
758
758
  visibleWhen?: string | undefined;
759
759
  style?: {
760
760
  tone?: "default" | "subtle" | "accent" | "plain" | undefined;
761
+ variant?: string | undefined;
761
762
  padding?: number | "compact" | "none" | "normal" | "roomy" | undefined;
762
763
  hideHeader?: boolean | undefined;
763
764
  minHeight?: number | undefined;
@@ -916,6 +917,7 @@ declare function createDashboardRuntime(doc: Dashboard, options?: RuntimeOptions
916
917
  visibleWhen?: string | undefined;
917
918
  style?: {
918
919
  tone?: "default" | "subtle" | "accent" | "plain" | undefined;
920
+ variant?: string | undefined;
919
921
  padding?: number | "compact" | "none" | "normal" | "roomy" | undefined;
920
922
  hideHeader?: boolean | undefined;
921
923
  minHeight?: number | undefined;
@@ -975,6 +977,7 @@ declare function createDashboardRuntime(doc: Dashboard, options?: RuntimeOptions
975
977
  visibleWhen?: string | undefined;
976
978
  style?: {
977
979
  tone?: "default" | "subtle" | "accent" | "plain" | undefined;
980
+ variant?: string | undefined;
978
981
  padding?: number | "compact" | "none" | "normal" | "roomy" | undefined;
979
982
  hideHeader?: boolean | undefined;
980
983
  minHeight?: number | undefined;
@@ -1059,6 +1062,7 @@ declare function createDashboardRuntime(doc: Dashboard, options?: RuntimeOptions
1059
1062
  min: (...v: unknown[]) => number;
1060
1063
  max: (...v: unknown[]) => number;
1061
1064
  sum: (list: unknown, key?: string) => number;
1065
+ first: (list: unknown, key: string) => any;
1062
1066
  lookup: (list: unknown, key: string, value: unknown) => any;
1063
1067
  join: (list: unknown, sep?: string) => string;
1064
1068
  lower: (v: unknown) => string;