@copilotkit/shared 2.0.0-rc.38 → 2.0.0-rc.39
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/dist/generative-ui/clone-value.cjs +364 -0
- package/dist/generative-ui/clone-value.cjs.map +1 -0
- package/dist/generative-ui/clone-value.d.cts +51 -0
- package/dist/generative-ui/clone-value.d.cts.map +1 -0
- package/dist/generative-ui/clone-value.d.mts +51 -0
- package/dist/generative-ui/clone-value.d.mts.map +1 -0
- package/dist/generative-ui/clone-value.mjs +363 -0
- package/dist/generative-ui/clone-value.mjs.map +1 -0
- package/dist/generative-ui/index.cjs +39 -0
- package/dist/generative-ui/index.d.cts +8 -2
- package/dist/generative-ui/index.d.mts +8 -2
- package/dist/generative-ui/index.mjs +8 -2
- package/dist/generative-ui/is-record.d.cts +3 -1
- package/dist/generative-ui/is-record.d.cts.map +1 -1
- package/dist/generative-ui/is-record.d.mts +3 -1
- package/dist/generative-ui/is-record.d.mts.map +1 -1
- package/dist/generative-ui/schema-render.cjs +2 -1
- package/dist/generative-ui/schema-render.cjs.map +1 -1
- package/dist/generative-ui/schema-render.d.cts.map +1 -1
- package/dist/generative-ui/schema-render.d.mts.map +1 -1
- package/dist/generative-ui/schema-render.mjs +2 -1
- package/dist/generative-ui/schema-render.mjs.map +1 -1
- package/dist/generative-ui/standard/chart-config.cjs +347 -0
- package/dist/generative-ui/standard/chart-config.cjs.map +1 -0
- package/dist/generative-ui/standard/chart-config.d.cts +97 -0
- package/dist/generative-ui/standard/chart-config.d.cts.map +1 -0
- package/dist/generative-ui/standard/chart-config.d.mts +97 -0
- package/dist/generative-ui/standard/chart-config.d.mts.map +1 -0
- package/dist/generative-ui/standard/chart-config.mjs +342 -0
- package/dist/generative-ui/standard/chart-config.mjs.map +1 -0
- package/dist/generative-ui/standard/composites.d.cts +2 -2
- package/dist/generative-ui/standard/composites.d.mts +2 -2
- package/dist/generative-ui/standard/declarations.d.cts +68 -68
- package/dist/generative-ui/standard/declarations.d.mts +68 -68
- package/dist/generative-ui/standard/index.d.mts +5 -1
- package/dist/generative-ui/standard/inputs.d.cts +22 -22
- package/dist/generative-ui/standard/inputs.d.mts +22 -22
- package/dist/generative-ui/standard/layout.d.cts +90 -90
- package/dist/generative-ui/standard/layout.d.mts +90 -90
- package/dist/generative-ui/standard/map-helpers.cjs +104 -0
- package/dist/generative-ui/standard/map-helpers.cjs.map +1 -0
- package/dist/generative-ui/standard/map-helpers.d.cts +88 -0
- package/dist/generative-ui/standard/map-helpers.d.cts.map +1 -0
- package/dist/generative-ui/standard/map-helpers.d.mts +88 -0
- package/dist/generative-ui/standard/map-helpers.d.mts.map +1 -0
- package/dist/generative-ui/standard/map-helpers.mjs +95 -0
- package/dist/generative-ui/standard/map-helpers.mjs.map +1 -0
- package/dist/generative-ui/standard/media.d.cts +6 -6
- package/dist/generative-ui/standard/media.d.mts +6 -6
- package/dist/generative-ui/standard/style-helpers.cjs +151 -0
- package/dist/generative-ui/standard/style-helpers.cjs.map +1 -0
- package/dist/generative-ui/standard/style-helpers.d.cts +56 -0
- package/dist/generative-ui/standard/style-helpers.d.cts.map +1 -0
- package/dist/generative-ui/standard/style-helpers.d.mts +56 -0
- package/dist/generative-ui/standard/style-helpers.d.mts.map +1 -0
- package/dist/generative-ui/standard/style-helpers.mjs +142 -0
- package/dist/generative-ui/standard/style-helpers.mjs.map +1 -0
- package/dist/generative-ui/standard/text.d.cts +14 -14
- package/dist/generative-ui/standard/text.d.mts +14 -14
- package/dist/generative-ui/standard/url.cjs +54 -0
- package/dist/generative-ui/standard/url.cjs.map +1 -0
- package/dist/generative-ui/standard/url.d.cts +32 -0
- package/dist/generative-ui/standard/url.d.cts.map +1 -0
- package/dist/generative-ui/standard/url.d.mts +32 -0
- package/dist/generative-ui/standard/url.d.mts.map +1 -0
- package/dist/generative-ui/standard/url.mjs +50 -0
- package/dist/generative-ui/standard/url.mjs.map +1 -0
- package/dist/generative-ui/thrown.cjs +69 -0
- package/dist/generative-ui/thrown.cjs.map +1 -0
- package/dist/generative-ui/thrown.d.cts +21 -0
- package/dist/generative-ui/thrown.d.cts.map +1 -0
- package/dist/generative-ui/thrown.d.mts +21 -0
- package/dist/generative-ui/thrown.d.mts.map +1 -0
- package/dist/generative-ui/thrown.mjs +67 -0
- package/dist/generative-ui/thrown.mjs.map +1 -0
- package/dist/index.cjs +2 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +2 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +368 -2
- package/dist/index.umd.js.map +1 -1
- package/dist/package.cjs +1 -1
- package/dist/package.mjs +1 -1
- package/package.json +1 -1
- package/src/__tests__/schema-render.test.ts +78 -0
- package/src/generative-ui/__tests__/clone-value-differential.test.ts +480 -0
- package/src/generative-ui/__tests__/clone-value.test.ts +226 -0
- package/src/generative-ui/clone-value.ts +511 -0
- package/src/generative-ui/index.ts +6 -2
- package/src/generative-ui/schema-render.ts +2 -1
- package/src/generative-ui/standard/__tests__/standard-helpers.test.ts +407 -0
- package/src/generative-ui/standard/chart-config.ts +434 -0
- package/src/generative-ui/standard/index.ts +36 -0
- package/src/generative-ui/standard/map-helpers.ts +155 -0
- package/src/generative-ui/standard/style-helpers.ts +170 -0
- package/src/generative-ui/standard/url.ts +51 -0
- package/src/generative-ui/thrown.ts +90 -0
- package/src/index.ts +5 -0
|
@@ -65,12 +65,12 @@ declare const standardDeclarations: {
|
|
|
65
65
|
badge: zod.ZodOptional<zod.ZodObject<{
|
|
66
66
|
label: zod.ZodString;
|
|
67
67
|
color: zod.ZodOptional<zod.ZodEnum<{
|
|
68
|
+
secondary: "secondary";
|
|
68
69
|
success: "success";
|
|
69
70
|
info: "info";
|
|
70
71
|
warning: "warning";
|
|
71
72
|
danger: "danger";
|
|
72
73
|
discovery: "discovery";
|
|
73
|
-
secondary: "secondary";
|
|
74
74
|
}>>;
|
|
75
75
|
}, zod_v4_core0.$strip>>;
|
|
76
76
|
rating: zod.ZodOptional<zod.ZodNumber>;
|
|
@@ -146,8 +146,6 @@ declare const standardDeclarations: {
|
|
|
146
146
|
scaleDown: "scaleDown";
|
|
147
147
|
}>>;
|
|
148
148
|
radius: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodEnum<{
|
|
149
|
-
"2xs": "2xs";
|
|
150
|
-
xs: "xs";
|
|
151
149
|
sm: "sm";
|
|
152
150
|
md: "md";
|
|
153
151
|
lg: "lg";
|
|
@@ -155,6 +153,8 @@ declare const standardDeclarations: {
|
|
|
155
153
|
"2xl": "2xl";
|
|
156
154
|
"3xl": "3xl";
|
|
157
155
|
"4xl": "4xl";
|
|
156
|
+
"2xs": "2xs";
|
|
157
|
+
xs: "xs";
|
|
158
158
|
full: "full";
|
|
159
159
|
}>, zod.ZodNumber, zod.ZodString, zod.ZodObject<{
|
|
160
160
|
topLeft: zod.ZodOptional<zod.ZodString>;
|
|
@@ -299,8 +299,8 @@ declare const standardDeclarations: {
|
|
|
299
299
|
language: zod.ZodOptional<zod.ZodString>;
|
|
300
300
|
label: zod.ZodOptional<zod.ZodString>;
|
|
301
301
|
kind: zod.ZodOptional<zod.ZodEnum<{
|
|
302
|
-
subtitles: "subtitles";
|
|
303
302
|
captions: "captions";
|
|
303
|
+
subtitles: "subtitles";
|
|
304
304
|
descriptions: "descriptions";
|
|
305
305
|
}>>;
|
|
306
306
|
}, zod_v4_core0.$strip>>>;
|
|
@@ -645,14 +645,14 @@ declare const standardDeclarations: {
|
|
|
645
645
|
text: zod.ZodOptional<zod.ZodString>;
|
|
646
646
|
variant: zod.ZodOptional<zod.ZodEnum<{
|
|
647
647
|
default: "default";
|
|
648
|
-
soft: "soft";
|
|
649
648
|
primary: "primary";
|
|
649
|
+
soft: "soft";
|
|
650
650
|
borderless: "borderless";
|
|
651
651
|
}>>;
|
|
652
652
|
color: zod.ZodOptional<zod.ZodEnum<{
|
|
653
|
-
danger: "danger";
|
|
654
|
-
secondary: "secondary";
|
|
655
653
|
primary: "primary";
|
|
654
|
+
secondary: "secondary";
|
|
655
|
+
danger: "danger";
|
|
656
656
|
}>>;
|
|
657
657
|
size: zod.ZodOptional<zod.ZodEnum<{
|
|
658
658
|
sm: "sm";
|
|
@@ -720,17 +720,15 @@ declare const standardDeclarations: {
|
|
|
720
720
|
borderColor: zod.ZodOptional<zod.ZodEnum<{
|
|
721
721
|
default: "default";
|
|
722
722
|
success: "success";
|
|
723
|
-
subtle: "subtle";
|
|
724
|
-
strong: "strong";
|
|
725
723
|
info: "info";
|
|
726
724
|
warning: "warning";
|
|
727
725
|
caution: "caution";
|
|
728
726
|
danger: "danger";
|
|
729
727
|
discovery: "discovery";
|
|
728
|
+
subtle: "subtle";
|
|
729
|
+
strong: "strong";
|
|
730
730
|
}>>;
|
|
731
731
|
radius: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodEnum<{
|
|
732
|
-
"2xs": "2xs";
|
|
733
|
-
xs: "xs";
|
|
734
732
|
sm: "sm";
|
|
735
733
|
md: "md";
|
|
736
734
|
lg: "lg";
|
|
@@ -738,6 +736,8 @@ declare const standardDeclarations: {
|
|
|
738
736
|
"2xl": "2xl";
|
|
739
737
|
"3xl": "3xl";
|
|
740
738
|
"4xl": "4xl";
|
|
739
|
+
"2xs": "2xs";
|
|
740
|
+
xs: "xs";
|
|
741
741
|
full: "full";
|
|
742
742
|
}>, zod.ZodNumber, zod.ZodString, zod.ZodObject<{
|
|
743
743
|
topLeft: zod.ZodOptional<zod.ZodString>;
|
|
@@ -812,17 +812,15 @@ declare const standardDeclarations: {
|
|
|
812
812
|
borderColor: zod.ZodOptional<zod.ZodEnum<{
|
|
813
813
|
default: "default";
|
|
814
814
|
success: "success";
|
|
815
|
-
subtle: "subtle";
|
|
816
|
-
strong: "strong";
|
|
817
815
|
info: "info";
|
|
818
816
|
warning: "warning";
|
|
819
817
|
caution: "caution";
|
|
820
818
|
danger: "danger";
|
|
821
819
|
discovery: "discovery";
|
|
820
|
+
subtle: "subtle";
|
|
821
|
+
strong: "strong";
|
|
822
822
|
}>>;
|
|
823
823
|
radius: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodEnum<{
|
|
824
|
-
"2xs": "2xs";
|
|
825
|
-
xs: "xs";
|
|
826
824
|
sm: "sm";
|
|
827
825
|
md: "md";
|
|
828
826
|
lg: "lg";
|
|
@@ -830,6 +828,8 @@ declare const standardDeclarations: {
|
|
|
830
828
|
"2xl": "2xl";
|
|
831
829
|
"3xl": "3xl";
|
|
832
830
|
"4xl": "4xl";
|
|
831
|
+
"2xs": "2xs";
|
|
832
|
+
xs: "xs";
|
|
833
833
|
full: "full";
|
|
834
834
|
}>, zod.ZodNumber, zod.ZodString, zod.ZodObject<{
|
|
835
835
|
topLeft: zod.ZodOptional<zod.ZodString>;
|
|
@@ -1254,12 +1254,12 @@ declare const standardDeclarations: {
|
|
|
1254
1254
|
weight: zod.ZodOptional<zod.ZodNumber>;
|
|
1255
1255
|
text: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
1256
1256
|
size: zod.ZodOptional<zod.ZodEnum<{
|
|
1257
|
-
"2xs": "2xs";
|
|
1258
|
-
xs: "xs";
|
|
1259
1257
|
sm: "sm";
|
|
1260
1258
|
md: "md";
|
|
1261
1259
|
lg: "lg";
|
|
1262
1260
|
"3xs": "3xs";
|
|
1261
|
+
"2xs": "2xs";
|
|
1262
|
+
xs: "xs";
|
|
1263
1263
|
}>>;
|
|
1264
1264
|
fontSize: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodNumber, zod.ZodString]>>;
|
|
1265
1265
|
lineHeight: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodNumber, zod.ZodString]>>;
|
|
@@ -1328,12 +1328,12 @@ declare const standardDeclarations: {
|
|
|
1328
1328
|
htmlFor: zod.ZodOptional<zod.ZodString>;
|
|
1329
1329
|
color: zod.ZodOptional<zod.ZodString>;
|
|
1330
1330
|
size: zod.ZodOptional<zod.ZodEnum<{
|
|
1331
|
-
"2xs": "2xs";
|
|
1332
|
-
xs: "xs";
|
|
1333
1331
|
sm: "sm";
|
|
1334
1332
|
md: "md";
|
|
1335
1333
|
lg: "lg";
|
|
1336
1334
|
"3xs": "3xs";
|
|
1335
|
+
"2xs": "2xs";
|
|
1336
|
+
xs: "xs";
|
|
1337
1337
|
}>>;
|
|
1338
1338
|
fontWeight: zod.ZodOptional<zod.ZodEnum<{
|
|
1339
1339
|
normal: "normal";
|
|
@@ -1385,12 +1385,12 @@ declare const standardDeclarations: {
|
|
|
1385
1385
|
props: zod.ZodObject<{
|
|
1386
1386
|
label: zod.ZodString;
|
|
1387
1387
|
color: zod.ZodOptional<zod.ZodEnum<{
|
|
1388
|
+
secondary: "secondary";
|
|
1388
1389
|
success: "success";
|
|
1389
1390
|
info: "info";
|
|
1390
1391
|
warning: "warning";
|
|
1391
1392
|
danger: "danger";
|
|
1392
1393
|
discovery: "discovery";
|
|
1393
|
-
secondary: "secondary";
|
|
1394
1394
|
}>>;
|
|
1395
1395
|
size: zod.ZodOptional<zod.ZodEnum<{
|
|
1396
1396
|
sm: "sm";
|
|
@@ -1445,12 +1445,12 @@ declare const standardDeclarations: {
|
|
|
1445
1445
|
props: zod.ZodObject<{
|
|
1446
1446
|
text: zod.ZodString;
|
|
1447
1447
|
size: zod.ZodOptional<zod.ZodEnum<{
|
|
1448
|
-
"2xs": "2xs";
|
|
1449
|
-
xs: "xs";
|
|
1450
1448
|
sm: "sm";
|
|
1451
1449
|
md: "md";
|
|
1452
1450
|
lg: "lg";
|
|
1453
1451
|
"3xs": "3xs";
|
|
1452
|
+
"2xs": "2xs";
|
|
1453
|
+
xs: "xs";
|
|
1454
1454
|
}>>;
|
|
1455
1455
|
lineThrough: zod.ZodOptional<zod.ZodBoolean>;
|
|
1456
1456
|
color: zod.ZodOptional<zod.ZodString>;
|
|
@@ -1524,17 +1524,15 @@ declare const standardDeclarations: {
|
|
|
1524
1524
|
borderColor: zod.ZodOptional<zod.ZodEnum<{
|
|
1525
1525
|
default: "default";
|
|
1526
1526
|
success: "success";
|
|
1527
|
-
subtle: "subtle";
|
|
1528
|
-
strong: "strong";
|
|
1529
1527
|
info: "info";
|
|
1530
1528
|
warning: "warning";
|
|
1531
1529
|
caution: "caution";
|
|
1532
1530
|
danger: "danger";
|
|
1533
1531
|
discovery: "discovery";
|
|
1532
|
+
subtle: "subtle";
|
|
1533
|
+
strong: "strong";
|
|
1534
1534
|
}>>;
|
|
1535
1535
|
radius: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodEnum<{
|
|
1536
|
-
"2xs": "2xs";
|
|
1537
|
-
xs: "xs";
|
|
1538
1536
|
sm: "sm";
|
|
1539
1537
|
md: "md";
|
|
1540
1538
|
lg: "lg";
|
|
@@ -1542,6 +1540,8 @@ declare const standardDeclarations: {
|
|
|
1542
1540
|
"2xl": "2xl";
|
|
1543
1541
|
"3xl": "3xl";
|
|
1544
1542
|
"4xl": "4xl";
|
|
1543
|
+
"2xs": "2xs";
|
|
1544
|
+
xs: "xs";
|
|
1545
1545
|
full: "full";
|
|
1546
1546
|
}>, zod.ZodNumber, zod.ZodString, zod.ZodObject<{
|
|
1547
1547
|
topLeft: zod.ZodOptional<zod.ZodString>;
|
|
@@ -1611,17 +1611,15 @@ declare const standardDeclarations: {
|
|
|
1611
1611
|
borderColor: zod.ZodOptional<zod.ZodEnum<{
|
|
1612
1612
|
default: "default";
|
|
1613
1613
|
success: "success";
|
|
1614
|
-
subtle: "subtle";
|
|
1615
|
-
strong: "strong";
|
|
1616
1614
|
info: "info";
|
|
1617
1615
|
warning: "warning";
|
|
1618
1616
|
caution: "caution";
|
|
1619
1617
|
danger: "danger";
|
|
1620
1618
|
discovery: "discovery";
|
|
1619
|
+
subtle: "subtle";
|
|
1620
|
+
strong: "strong";
|
|
1621
1621
|
}>>;
|
|
1622
1622
|
radius: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodEnum<{
|
|
1623
|
-
"2xs": "2xs";
|
|
1624
|
-
xs: "xs";
|
|
1625
1623
|
sm: "sm";
|
|
1626
1624
|
md: "md";
|
|
1627
1625
|
lg: "lg";
|
|
@@ -1629,6 +1627,8 @@ declare const standardDeclarations: {
|
|
|
1629
1627
|
"2xl": "2xl";
|
|
1630
1628
|
"3xl": "3xl";
|
|
1631
1629
|
"4xl": "4xl";
|
|
1630
|
+
"2xs": "2xs";
|
|
1631
|
+
xs: "xs";
|
|
1632
1632
|
full: "full";
|
|
1633
1633
|
}>, zod.ZodNumber, zod.ZodString, zod.ZodObject<{
|
|
1634
1634
|
topLeft: zod.ZodOptional<zod.ZodString>;
|
|
@@ -1698,17 +1698,15 @@ declare const standardDeclarations: {
|
|
|
1698
1698
|
borderColor: zod.ZodOptional<zod.ZodEnum<{
|
|
1699
1699
|
default: "default";
|
|
1700
1700
|
success: "success";
|
|
1701
|
-
subtle: "subtle";
|
|
1702
|
-
strong: "strong";
|
|
1703
1701
|
info: "info";
|
|
1704
1702
|
warning: "warning";
|
|
1705
1703
|
caution: "caution";
|
|
1706
1704
|
danger: "danger";
|
|
1707
1705
|
discovery: "discovery";
|
|
1706
|
+
subtle: "subtle";
|
|
1707
|
+
strong: "strong";
|
|
1708
1708
|
}>>;
|
|
1709
1709
|
radius: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodEnum<{
|
|
1710
|
-
"2xs": "2xs";
|
|
1711
|
-
xs: "xs";
|
|
1712
1710
|
sm: "sm";
|
|
1713
1711
|
md: "md";
|
|
1714
1712
|
lg: "lg";
|
|
@@ -1716,6 +1714,8 @@ declare const standardDeclarations: {
|
|
|
1716
1714
|
"2xl": "2xl";
|
|
1717
1715
|
"3xl": "3xl";
|
|
1718
1716
|
"4xl": "4xl";
|
|
1717
|
+
"2xs": "2xs";
|
|
1718
|
+
xs: "xs";
|
|
1719
1719
|
full: "full";
|
|
1720
1720
|
}>, zod.ZodNumber, zod.ZodString, zod.ZodObject<{
|
|
1721
1721
|
topLeft: zod.ZodOptional<zod.ZodString>;
|
|
@@ -1788,17 +1788,15 @@ declare const standardDeclarations: {
|
|
|
1788
1788
|
borderColor: zod.ZodOptional<zod.ZodEnum<{
|
|
1789
1789
|
default: "default";
|
|
1790
1790
|
success: "success";
|
|
1791
|
-
subtle: "subtle";
|
|
1792
|
-
strong: "strong";
|
|
1793
1791
|
info: "info";
|
|
1794
1792
|
warning: "warning";
|
|
1795
1793
|
caution: "caution";
|
|
1796
1794
|
danger: "danger";
|
|
1797
1795
|
discovery: "discovery";
|
|
1796
|
+
subtle: "subtle";
|
|
1797
|
+
strong: "strong";
|
|
1798
1798
|
}>>;
|
|
1799
1799
|
radius: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodEnum<{
|
|
1800
|
-
"2xs": "2xs";
|
|
1801
|
-
xs: "xs";
|
|
1802
1800
|
sm: "sm";
|
|
1803
1801
|
md: "md";
|
|
1804
1802
|
lg: "lg";
|
|
@@ -1806,6 +1804,8 @@ declare const standardDeclarations: {
|
|
|
1806
1804
|
"2xl": "2xl";
|
|
1807
1805
|
"3xl": "3xl";
|
|
1808
1806
|
"4xl": "4xl";
|
|
1807
|
+
"2xs": "2xs";
|
|
1808
|
+
xs: "xs";
|
|
1809
1809
|
full: "full";
|
|
1810
1810
|
}>, zod.ZodNumber, zod.ZodString, zod.ZodObject<{
|
|
1811
1811
|
topLeft: zod.ZodOptional<zod.ZodString>;
|
|
@@ -1877,17 +1877,15 @@ declare const standardDeclarations: {
|
|
|
1877
1877
|
borderColor: zod.ZodOptional<zod.ZodEnum<{
|
|
1878
1878
|
default: "default";
|
|
1879
1879
|
success: "success";
|
|
1880
|
-
subtle: "subtle";
|
|
1881
|
-
strong: "strong";
|
|
1882
1880
|
info: "info";
|
|
1883
1881
|
warning: "warning";
|
|
1884
1882
|
caution: "caution";
|
|
1885
1883
|
danger: "danger";
|
|
1886
1884
|
discovery: "discovery";
|
|
1885
|
+
subtle: "subtle";
|
|
1886
|
+
strong: "strong";
|
|
1887
1887
|
}>>;
|
|
1888
1888
|
radius: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodEnum<{
|
|
1889
|
-
"2xs": "2xs";
|
|
1890
|
-
xs: "xs";
|
|
1891
1889
|
sm: "sm";
|
|
1892
1890
|
md: "md";
|
|
1893
1891
|
lg: "lg";
|
|
@@ -1895,6 +1893,8 @@ declare const standardDeclarations: {
|
|
|
1895
1893
|
"2xl": "2xl";
|
|
1896
1894
|
"3xl": "3xl";
|
|
1897
1895
|
"4xl": "4xl";
|
|
1896
|
+
"2xs": "2xs";
|
|
1897
|
+
xs: "xs";
|
|
1898
1898
|
full: "full";
|
|
1899
1899
|
}>, zod.ZodNumber, zod.ZodString, zod.ZodObject<{
|
|
1900
1900
|
topLeft: zod.ZodOptional<zod.ZodString>;
|
|
@@ -1982,17 +1982,15 @@ declare const standardDeclarations: {
|
|
|
1982
1982
|
borderColor: zod.ZodOptional<zod.ZodEnum<{
|
|
1983
1983
|
default: "default";
|
|
1984
1984
|
success: "success";
|
|
1985
|
-
subtle: "subtle";
|
|
1986
|
-
strong: "strong";
|
|
1987
1985
|
info: "info";
|
|
1988
1986
|
warning: "warning";
|
|
1989
1987
|
caution: "caution";
|
|
1990
1988
|
danger: "danger";
|
|
1991
1989
|
discovery: "discovery";
|
|
1990
|
+
subtle: "subtle";
|
|
1991
|
+
strong: "strong";
|
|
1992
1992
|
}>>;
|
|
1993
1993
|
radius: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodEnum<{
|
|
1994
|
-
"2xs": "2xs";
|
|
1995
|
-
xs: "xs";
|
|
1996
1994
|
sm: "sm";
|
|
1997
1995
|
md: "md";
|
|
1998
1996
|
lg: "lg";
|
|
@@ -2000,6 +1998,8 @@ declare const standardDeclarations: {
|
|
|
2000
1998
|
"2xl": "2xl";
|
|
2001
1999
|
"3xl": "3xl";
|
|
2002
2000
|
"4xl": "4xl";
|
|
2001
|
+
"2xs": "2xs";
|
|
2002
|
+
xs: "xs";
|
|
2003
2003
|
full: "full";
|
|
2004
2004
|
}>, zod.ZodNumber, zod.ZodString, zod.ZodObject<{
|
|
2005
2005
|
topLeft: zod.ZodOptional<zod.ZodString>;
|
|
@@ -2076,17 +2076,15 @@ declare const standardDeclarations: {
|
|
|
2076
2076
|
borderColor: zod.ZodOptional<zod.ZodEnum<{
|
|
2077
2077
|
default: "default";
|
|
2078
2078
|
success: "success";
|
|
2079
|
-
subtle: "subtle";
|
|
2080
|
-
strong: "strong";
|
|
2081
2079
|
info: "info";
|
|
2082
2080
|
warning: "warning";
|
|
2083
2081
|
caution: "caution";
|
|
2084
2082
|
danger: "danger";
|
|
2085
2083
|
discovery: "discovery";
|
|
2084
|
+
subtle: "subtle";
|
|
2085
|
+
strong: "strong";
|
|
2086
2086
|
}>>;
|
|
2087
2087
|
radius: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodEnum<{
|
|
2088
|
-
"2xs": "2xs";
|
|
2089
|
-
xs: "xs";
|
|
2090
2088
|
sm: "sm";
|
|
2091
2089
|
md: "md";
|
|
2092
2090
|
lg: "lg";
|
|
@@ -2094,6 +2092,8 @@ declare const standardDeclarations: {
|
|
|
2094
2092
|
"2xl": "2xl";
|
|
2095
2093
|
"3xl": "3xl";
|
|
2096
2094
|
"4xl": "4xl";
|
|
2095
|
+
"2xs": "2xs";
|
|
2096
|
+
xs: "xs";
|
|
2097
2097
|
full: "full";
|
|
2098
2098
|
}>, zod.ZodNumber, zod.ZodString, zod.ZodObject<{
|
|
2099
2099
|
topLeft: zod.ZodOptional<zod.ZodString>;
|
|
@@ -2170,17 +2170,15 @@ declare const standardDeclarations: {
|
|
|
2170
2170
|
borderColor: zod.ZodOptional<zod.ZodEnum<{
|
|
2171
2171
|
default: "default";
|
|
2172
2172
|
success: "success";
|
|
2173
|
-
subtle: "subtle";
|
|
2174
|
-
strong: "strong";
|
|
2175
2173
|
info: "info";
|
|
2176
2174
|
warning: "warning";
|
|
2177
2175
|
caution: "caution";
|
|
2178
2176
|
danger: "danger";
|
|
2179
2177
|
discovery: "discovery";
|
|
2178
|
+
subtle: "subtle";
|
|
2179
|
+
strong: "strong";
|
|
2180
2180
|
}>>;
|
|
2181
2181
|
radius: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodEnum<{
|
|
2182
|
-
"2xs": "2xs";
|
|
2183
|
-
xs: "xs";
|
|
2184
2182
|
sm: "sm";
|
|
2185
2183
|
md: "md";
|
|
2186
2184
|
lg: "lg";
|
|
@@ -2188,6 +2186,8 @@ declare const standardDeclarations: {
|
|
|
2188
2186
|
"2xl": "2xl";
|
|
2189
2187
|
"3xl": "3xl";
|
|
2190
2188
|
"4xl": "4xl";
|
|
2189
|
+
"2xs": "2xs";
|
|
2190
|
+
xs: "xs";
|
|
2191
2191
|
full: "full";
|
|
2192
2192
|
}>, zod.ZodNumber, zod.ZodString, zod.ZodObject<{
|
|
2193
2193
|
topLeft: zod.ZodOptional<zod.ZodString>;
|
|
@@ -2272,17 +2272,15 @@ declare const standardDeclarations: {
|
|
|
2272
2272
|
borderColor: zod.ZodOptional<zod.ZodEnum<{
|
|
2273
2273
|
default: "default";
|
|
2274
2274
|
success: "success";
|
|
2275
|
-
subtle: "subtle";
|
|
2276
|
-
strong: "strong";
|
|
2277
2275
|
info: "info";
|
|
2278
2276
|
warning: "warning";
|
|
2279
2277
|
caution: "caution";
|
|
2280
2278
|
danger: "danger";
|
|
2281
2279
|
discovery: "discovery";
|
|
2280
|
+
subtle: "subtle";
|
|
2281
|
+
strong: "strong";
|
|
2282
2282
|
}>>;
|
|
2283
2283
|
radius: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodEnum<{
|
|
2284
|
-
"2xs": "2xs";
|
|
2285
|
-
xs: "xs";
|
|
2286
2284
|
sm: "sm";
|
|
2287
2285
|
md: "md";
|
|
2288
2286
|
lg: "lg";
|
|
@@ -2290,6 +2288,8 @@ declare const standardDeclarations: {
|
|
|
2290
2288
|
"2xl": "2xl";
|
|
2291
2289
|
"3xl": "3xl";
|
|
2292
2290
|
"4xl": "4xl";
|
|
2291
|
+
"2xs": "2xs";
|
|
2292
|
+
xs: "xs";
|
|
2293
2293
|
full: "full";
|
|
2294
2294
|
}>, zod.ZodNumber, zod.ZodString, zod.ZodObject<{
|
|
2295
2295
|
topLeft: zod.ZodOptional<zod.ZodString>;
|
|
@@ -2360,17 +2360,15 @@ declare const standardDeclarations: {
|
|
|
2360
2360
|
borderColor: zod.ZodOptional<zod.ZodEnum<{
|
|
2361
2361
|
default: "default";
|
|
2362
2362
|
success: "success";
|
|
2363
|
-
subtle: "subtle";
|
|
2364
|
-
strong: "strong";
|
|
2365
2363
|
info: "info";
|
|
2366
2364
|
warning: "warning";
|
|
2367
2365
|
caution: "caution";
|
|
2368
2366
|
danger: "danger";
|
|
2369
2367
|
discovery: "discovery";
|
|
2368
|
+
subtle: "subtle";
|
|
2369
|
+
strong: "strong";
|
|
2370
2370
|
}>>;
|
|
2371
2371
|
radius: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodEnum<{
|
|
2372
|
-
"2xs": "2xs";
|
|
2373
|
-
xs: "xs";
|
|
2374
2372
|
sm: "sm";
|
|
2375
2373
|
md: "md";
|
|
2376
2374
|
lg: "lg";
|
|
@@ -2378,6 +2376,8 @@ declare const standardDeclarations: {
|
|
|
2378
2376
|
"2xl": "2xl";
|
|
2379
2377
|
"3xl": "3xl";
|
|
2380
2378
|
"4xl": "4xl";
|
|
2379
|
+
"2xs": "2xs";
|
|
2380
|
+
xs: "xs";
|
|
2381
2381
|
full: "full";
|
|
2382
2382
|
}>, zod.ZodNumber, zod.ZodString, zod.ZodObject<{
|
|
2383
2383
|
topLeft: zod.ZodOptional<zod.ZodString>;
|
|
@@ -2457,17 +2457,15 @@ declare const standardDeclarations: {
|
|
|
2457
2457
|
borderColor: zod.ZodOptional<zod.ZodEnum<{
|
|
2458
2458
|
default: "default";
|
|
2459
2459
|
success: "success";
|
|
2460
|
-
subtle: "subtle";
|
|
2461
|
-
strong: "strong";
|
|
2462
2460
|
info: "info";
|
|
2463
2461
|
warning: "warning";
|
|
2464
2462
|
caution: "caution";
|
|
2465
2463
|
danger: "danger";
|
|
2466
2464
|
discovery: "discovery";
|
|
2465
|
+
subtle: "subtle";
|
|
2466
|
+
strong: "strong";
|
|
2467
2467
|
}>>;
|
|
2468
2468
|
radius: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodEnum<{
|
|
2469
|
-
"2xs": "2xs";
|
|
2470
|
-
xs: "xs";
|
|
2471
2469
|
sm: "sm";
|
|
2472
2470
|
md: "md";
|
|
2473
2471
|
lg: "lg";
|
|
@@ -2475,6 +2473,8 @@ declare const standardDeclarations: {
|
|
|
2475
2473
|
"2xl": "2xl";
|
|
2476
2474
|
"3xl": "3xl";
|
|
2477
2475
|
"4xl": "4xl";
|
|
2476
|
+
"2xs": "2xs";
|
|
2477
|
+
xs: "xs";
|
|
2478
2478
|
full: "full";
|
|
2479
2479
|
}>, zod.ZodNumber, zod.ZodString, zod.ZodObject<{
|
|
2480
2480
|
topLeft: zod.ZodOptional<zod.ZodString>;
|
|
@@ -2531,13 +2531,13 @@ declare const standardDeclarations: {
|
|
|
2531
2531
|
color: zod.ZodOptional<zod.ZodEnum<{
|
|
2532
2532
|
default: "default";
|
|
2533
2533
|
success: "success";
|
|
2534
|
-
subtle: "subtle";
|
|
2535
|
-
strong: "strong";
|
|
2536
2534
|
info: "info";
|
|
2537
2535
|
warning: "warning";
|
|
2538
2536
|
caution: "caution";
|
|
2539
2537
|
danger: "danger";
|
|
2540
2538
|
discovery: "discovery";
|
|
2539
|
+
subtle: "subtle";
|
|
2540
|
+
strong: "strong";
|
|
2541
2541
|
}>>;
|
|
2542
2542
|
size: zod.ZodOptional<zod.ZodNumber>;
|
|
2543
2543
|
spacing: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodNumber, zod.ZodString]>>;
|
|
@@ -13,4 +13,8 @@ import { ChartProps, ChartSeries, chartSchema, chartSeries } from "./chart.mjs";
|
|
|
13
13
|
import { MapMarker, mapMarker, mapSchema } from "./map.mjs";
|
|
14
14
|
import { ICON_SIZES, IMAGE_VARIANTS, IconSize, audioPlayerSchema, faviconSchema, htmlViewSchema, iconSchema, imageSchema, mediaDeclarations, svgSchema, videoSchema } from "./media.mjs";
|
|
15
15
|
import { cardAction, citationSchema, compositeDeclarations, entityActionArgs, entityCardSchema, followUpArgs, followUpItem, followUpSchema, gridImage, imageGridSchema, linkCardSchema } from "./composites.mjs";
|
|
16
|
-
import { StandardComponentName, standardDeclarations, withStandardParameterOrder } from "./declarations.mjs";
|
|
16
|
+
import { StandardComponentName, standardDeclarations, withStandardParameterOrder } from "./declarations.mjs";
|
|
17
|
+
import { ALIGN_CSS, FOCUS_RING, JUSTIFY_CSS, StyleMap, VISUALLY_HIDDEN, defined, jsonEqual, layoutStyle, lineClamp, px, radiusStyle } from "./style-helpers.mjs";
|
|
18
|
+
import { faviconSrc, hostOf, openUrl, safeHref } from "./url.mjs";
|
|
19
|
+
import { ChartConstructor, chartConfig, makeFormatter, normalizeSeries, resolveCssColor, valueLabelsPlugin, withAlpha } from "./chart-config.mjs";
|
|
20
|
+
import { DEFAULT_DARK_MAP_STYLE, DEFAULT_MAP_STYLE, MAP_CSS, MAP_STYLE_ID, MapLibre, MapLibreMap, MapLibreMarker, ROUTE_SOURCE, guardNumericFilter, guardStyleFilters, isMapLibre, isValidMarker } from "./map-helpers.mjs";
|
|
@@ -28,14 +28,14 @@ declare const buttonSchema: z.ZodObject<{
|
|
|
28
28
|
text: z.ZodOptional<z.ZodString>;
|
|
29
29
|
variant: z.ZodOptional<z.ZodEnum<{
|
|
30
30
|
default: "default";
|
|
31
|
-
soft: "soft";
|
|
32
31
|
primary: "primary";
|
|
32
|
+
soft: "soft";
|
|
33
33
|
borderless: "borderless";
|
|
34
34
|
}>>;
|
|
35
35
|
color: z.ZodOptional<z.ZodEnum<{
|
|
36
|
-
danger: "danger";
|
|
37
|
-
secondary: "secondary";
|
|
38
36
|
primary: "primary";
|
|
37
|
+
secondary: "secondary";
|
|
38
|
+
danger: "danger";
|
|
39
39
|
}>>;
|
|
40
40
|
size: z.ZodOptional<z.ZodEnum<{
|
|
41
41
|
sm: "sm";
|
|
@@ -90,17 +90,15 @@ declare const pressableSchema: z.ZodObject<{
|
|
|
90
90
|
borderColor: z.ZodOptional<z.ZodEnum<{
|
|
91
91
|
default: "default";
|
|
92
92
|
success: "success";
|
|
93
|
-
subtle: "subtle";
|
|
94
|
-
strong: "strong";
|
|
95
93
|
info: "info";
|
|
96
94
|
warning: "warning";
|
|
97
95
|
caution: "caution";
|
|
98
96
|
danger: "danger";
|
|
99
97
|
discovery: "discovery";
|
|
98
|
+
subtle: "subtle";
|
|
99
|
+
strong: "strong";
|
|
100
100
|
}>>;
|
|
101
101
|
radius: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
102
|
-
"2xs": "2xs";
|
|
103
|
-
xs: "xs";
|
|
104
102
|
sm: "sm";
|
|
105
103
|
md: "md";
|
|
106
104
|
lg: "lg";
|
|
@@ -108,6 +106,8 @@ declare const pressableSchema: z.ZodObject<{
|
|
|
108
106
|
"2xl": "2xl";
|
|
109
107
|
"3xl": "3xl";
|
|
110
108
|
"4xl": "4xl";
|
|
109
|
+
"2xs": "2xs";
|
|
110
|
+
xs: "xs";
|
|
111
111
|
full: "full";
|
|
112
112
|
}>, z.ZodNumber, z.ZodString, z.ZodObject<{
|
|
113
113
|
topLeft: z.ZodOptional<z.ZodString>;
|
|
@@ -166,17 +166,15 @@ declare const formSchema: z.ZodObject<{
|
|
|
166
166
|
borderColor: z.ZodOptional<z.ZodEnum<{
|
|
167
167
|
default: "default";
|
|
168
168
|
success: "success";
|
|
169
|
-
subtle: "subtle";
|
|
170
|
-
strong: "strong";
|
|
171
169
|
info: "info";
|
|
172
170
|
warning: "warning";
|
|
173
171
|
caution: "caution";
|
|
174
172
|
danger: "danger";
|
|
175
173
|
discovery: "discovery";
|
|
174
|
+
subtle: "subtle";
|
|
175
|
+
strong: "strong";
|
|
176
176
|
}>>;
|
|
177
177
|
radius: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
178
|
-
"2xs": "2xs";
|
|
179
|
-
xs: "xs";
|
|
180
178
|
sm: "sm";
|
|
181
179
|
md: "md";
|
|
182
180
|
lg: "lg";
|
|
@@ -184,6 +182,8 @@ declare const formSchema: z.ZodObject<{
|
|
|
184
182
|
"2xl": "2xl";
|
|
185
183
|
"3xl": "3xl";
|
|
186
184
|
"4xl": "4xl";
|
|
185
|
+
"2xs": "2xs";
|
|
186
|
+
xs: "xs";
|
|
187
187
|
full: "full";
|
|
188
188
|
}>, z.ZodNumber, z.ZodString, z.ZodObject<{
|
|
189
189
|
topLeft: z.ZodOptional<z.ZodString>;
|
|
@@ -553,14 +553,14 @@ declare const inputDeclarations: {
|
|
|
553
553
|
text: z.ZodOptional<z.ZodString>;
|
|
554
554
|
variant: z.ZodOptional<z.ZodEnum<{
|
|
555
555
|
default: "default";
|
|
556
|
-
soft: "soft";
|
|
557
556
|
primary: "primary";
|
|
557
|
+
soft: "soft";
|
|
558
558
|
borderless: "borderless";
|
|
559
559
|
}>>;
|
|
560
560
|
color: z.ZodOptional<z.ZodEnum<{
|
|
561
|
-
danger: "danger";
|
|
562
|
-
secondary: "secondary";
|
|
563
561
|
primary: "primary";
|
|
562
|
+
secondary: "secondary";
|
|
563
|
+
danger: "danger";
|
|
564
564
|
}>>;
|
|
565
565
|
size: z.ZodOptional<z.ZodEnum<{
|
|
566
566
|
sm: "sm";
|
|
@@ -628,17 +628,15 @@ declare const inputDeclarations: {
|
|
|
628
628
|
borderColor: z.ZodOptional<z.ZodEnum<{
|
|
629
629
|
default: "default";
|
|
630
630
|
success: "success";
|
|
631
|
-
subtle: "subtle";
|
|
632
|
-
strong: "strong";
|
|
633
631
|
info: "info";
|
|
634
632
|
warning: "warning";
|
|
635
633
|
caution: "caution";
|
|
636
634
|
danger: "danger";
|
|
637
635
|
discovery: "discovery";
|
|
636
|
+
subtle: "subtle";
|
|
637
|
+
strong: "strong";
|
|
638
638
|
}>>;
|
|
639
639
|
radius: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
640
|
-
"2xs": "2xs";
|
|
641
|
-
xs: "xs";
|
|
642
640
|
sm: "sm";
|
|
643
641
|
md: "md";
|
|
644
642
|
lg: "lg";
|
|
@@ -646,6 +644,8 @@ declare const inputDeclarations: {
|
|
|
646
644
|
"2xl": "2xl";
|
|
647
645
|
"3xl": "3xl";
|
|
648
646
|
"4xl": "4xl";
|
|
647
|
+
"2xs": "2xs";
|
|
648
|
+
xs: "xs";
|
|
649
649
|
full: "full";
|
|
650
650
|
}>, z.ZodNumber, z.ZodString, z.ZodObject<{
|
|
651
651
|
topLeft: z.ZodOptional<z.ZodString>;
|
|
@@ -720,17 +720,15 @@ declare const inputDeclarations: {
|
|
|
720
720
|
borderColor: z.ZodOptional<z.ZodEnum<{
|
|
721
721
|
default: "default";
|
|
722
722
|
success: "success";
|
|
723
|
-
subtle: "subtle";
|
|
724
|
-
strong: "strong";
|
|
725
723
|
info: "info";
|
|
726
724
|
warning: "warning";
|
|
727
725
|
caution: "caution";
|
|
728
726
|
danger: "danger";
|
|
729
727
|
discovery: "discovery";
|
|
728
|
+
subtle: "subtle";
|
|
729
|
+
strong: "strong";
|
|
730
730
|
}>>;
|
|
731
731
|
radius: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
732
|
-
"2xs": "2xs";
|
|
733
|
-
xs: "xs";
|
|
734
732
|
sm: "sm";
|
|
735
733
|
md: "md";
|
|
736
734
|
lg: "lg";
|
|
@@ -738,6 +736,8 @@ declare const inputDeclarations: {
|
|
|
738
736
|
"2xl": "2xl";
|
|
739
737
|
"3xl": "3xl";
|
|
740
738
|
"4xl": "4xl";
|
|
739
|
+
"2xs": "2xs";
|
|
740
|
+
xs: "xs";
|
|
741
741
|
full: "full";
|
|
742
742
|
}>, z.ZodNumber, z.ZodString, z.ZodObject<{
|
|
743
743
|
topLeft: z.ZodOptional<z.ZodString>;
|