@kickstartds/ds-agency-premium 1.2.22 → 1.2.24

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.
@@ -1726,32 +1726,9 @@
1726
1726
  "id": "components-logos--centered-with-button",
1727
1727
  "group": "Components/Logos",
1728
1728
  "name": "CenteredWithButton",
1729
- "code": "<Logos\n align=\"center\"\n cta={{\n label: 'See all our partners',\n link: '#',\n style: 'button',\n text: 'Explore the success stories of our valued customers and discover more about their journey.',\n toggle: true\n }}\n items={[\n {\n alt: 'Logo 1',\n src: 'img/logos/logoipsum-212.svg'\n },\n {\n alt: 'Logo 1',\n src: 'img/logos/logoipsum-212.svg'\n },\n {\n alt: 'Logo 1',\n src: 'img/logos/logoipsum-212.svg'\n }\n ]}\n logo={[\n {\n alt: 'Logo 1',\n src: 'img/logos/logoipsum-212.svg'\n },\n {\n alt: 'Logo 2',\n src: 'img/logos/logoipsum-217.svg'\n },\n {\n alt: 'Logo 3',\n src: 'img/logos/logoipsum-239.svg'\n },\n {\n alt: 'Logo 4',\n src: 'img/logos/logoipsum-244.svg'\n },\n {\n alt: 'Logo 5',\n src: 'img/logos/logoipsum-250.svg'\n },\n {\n alt: 'Logo 6',\n src: 'img/logos/logoipsum-286.svg'\n }\n ]}\n logosPerRow={5}\n tagline=\"Your Success, Our Commitment\"\n/>",
1729
+ "code": "<Logos\n align=\"center\"\n cta={{\n label: 'See all our partners',\n link: '#',\n style: 'button',\n text: 'Explore the success stories of our valued customers and discover more about their journey.',\n toggle: true\n }}\n logo={[\n {\n alt: 'Logo 1',\n src: 'img/logos/logoipsum-212.svg'\n },\n {\n alt: 'Logo 2',\n src: 'img/logos/logoipsum-217.svg'\n },\n {\n alt: 'Logo 3',\n src: 'img/logos/logoipsum-239.svg'\n },\n {\n alt: 'Logo 4',\n src: 'img/logos/logoipsum-244.svg'\n },\n {\n alt: 'Logo 5',\n src: 'img/logos/logoipsum-250.svg'\n },\n {\n alt: 'Logo 6',\n src: 'img/logos/logoipsum-286.svg'\n }\n ]}\n logosPerRow={5}\n tagline=\"Your Success, Our Commitment\"\n/>",
1730
1730
  "args": {
1731
1731
  "tagline": "Your Success, Our Commitment",
1732
- "items": [
1733
- {
1734
- "src": "img/logos/logoipsum-212.svg",
1735
- "alt": "Logo 1"
1736
- },
1737
- {
1738
- "src": "img/logos/logoipsum-212.svg",
1739
- "alt": "Logo 1"
1740
- },
1741
- {
1742
- "src": "img/logos/logoipsum-212.svg",
1743
- "alt": "Logo 1"
1744
- }
1745
- ],
1746
- "align": "center",
1747
- "logosPerRow": 5,
1748
- "cta": {
1749
- "toggle": true,
1750
- "text": "Explore the success stories of our valued customers and discover more about their journey.",
1751
- "link": "#",
1752
- "label": "See all our partners",
1753
- "style": "button"
1754
- },
1755
1732
  "logo": [
1756
1733
  {
1757
1734
  "src": "img/logos/logoipsum-212.svg",
@@ -1777,7 +1754,16 @@
1777
1754
  "src": "img/logos/logoipsum-286.svg",
1778
1755
  "alt": "Logo 6"
1779
1756
  }
1780
- ]
1757
+ ],
1758
+ "align": "center",
1759
+ "logosPerRow": 5,
1760
+ "cta": {
1761
+ "toggle": true,
1762
+ "text": "Explore the success stories of our valued customers and discover more about their journey.",
1763
+ "link": "#",
1764
+ "label": "See all our partners",
1765
+ "style": "button"
1766
+ }
1781
1767
  },
1782
1768
  "screenshot": "img/screenshots/components-logos--centered-with-button.png"
1783
1769
  },
@@ -1785,32 +1771,9 @@
1785
1771
  "id": "components-logos--left-aligned-with-text-link",
1786
1772
  "group": "Components/Logos",
1787
1773
  "name": "LeftAlignedWithTextLink",
1788
- "code": "<Logos\n align=\"left\"\n cta={{\n label: 'See all our partners',\n link: '#',\n style: 'text',\n text: 'Explore the success stories of our valued customers and discover more about their journey.',\n toggle: true\n }}\n items={[\n {\n alt: 'Logo 1',\n src: 'img/logos/logoipsum-212.svg'\n },\n {\n alt: 'Logo 1',\n src: 'img/logos/logoipsum-212.svg'\n },\n {\n alt: 'Logo 1',\n src: 'img/logos/logoipsum-212.svg'\n }\n ]}\n logo={[\n {\n alt: 'Logo 1',\n src: 'img/logos/logoipsum-212.svg'\n },\n {\n alt: 'Logo 2',\n src: 'img/logos/logoipsum-217.svg'\n },\n {\n alt: 'Logo 3',\n src: 'img/logos/logoipsum-239.svg'\n },\n {\n alt: 'Logo 4',\n src: 'img/logos/logoipsum-244.svg'\n },\n {\n alt: 'Logo 5',\n src: 'img/logos/logoipsum-250.svg'\n },\n {\n alt: 'Logo 6',\n src: 'img/logos/logoipsum-286.svg'\n }\n ]}\n logosPerRow={5}\n tagline=\"Your Success, Our Commitment\"\n/>",
1774
+ "code": "<Logos\n align=\"left\"\n cta={{\n label: 'See all our partners',\n link: '#',\n style: 'text',\n text: 'Explore the success stories of our valued customers and discover more about their journey.',\n toggle: true\n }}\n logo={[\n {\n alt: 'Logo 1',\n src: 'img/logos/logoipsum-212.svg'\n },\n {\n alt: 'Logo 2',\n src: 'img/logos/logoipsum-217.svg'\n },\n {\n alt: 'Logo 3',\n src: 'img/logos/logoipsum-239.svg'\n },\n {\n alt: 'Logo 4',\n src: 'img/logos/logoipsum-244.svg'\n },\n {\n alt: 'Logo 5',\n src: 'img/logos/logoipsum-250.svg'\n },\n {\n alt: 'Logo 6',\n src: 'img/logos/logoipsum-286.svg'\n }\n ]}\n logosPerRow={5}\n tagline=\"Your Success, Our Commitment\"\n/>",
1789
1775
  "args": {
1790
1776
  "tagline": "Your Success, Our Commitment",
1791
- "items": [
1792
- {
1793
- "src": "img/logos/logoipsum-212.svg",
1794
- "alt": "Logo 1"
1795
- },
1796
- {
1797
- "src": "img/logos/logoipsum-212.svg",
1798
- "alt": "Logo 1"
1799
- },
1800
- {
1801
- "src": "img/logos/logoipsum-212.svg",
1802
- "alt": "Logo 1"
1803
- }
1804
- ],
1805
- "align": "left",
1806
- "logosPerRow": 5,
1807
- "cta": {
1808
- "toggle": true,
1809
- "text": "Explore the success stories of our valued customers and discover more about their journey.",
1810
- "link": "#",
1811
- "label": "See all our partners",
1812
- "style": "text"
1813
- },
1814
1777
  "logo": [
1815
1778
  {
1816
1779
  "src": "img/logos/logoipsum-212.svg",
@@ -1836,7 +1799,16 @@
1836
1799
  "src": "img/logos/logoipsum-286.svg",
1837
1800
  "alt": "Logo 6"
1838
1801
  }
1839
- ]
1802
+ ],
1803
+ "align": "left",
1804
+ "logosPerRow": 5,
1805
+ "cta": {
1806
+ "toggle": true,
1807
+ "text": "Explore the success stories of our valued customers and discover more about their journey.",
1808
+ "link": "#",
1809
+ "label": "See all our partners",
1810
+ "style": "text"
1811
+ }
1840
1812
  },
1841
1813
  "screenshot": "img/screenshots/components-logos--left-aligned-with-text-link.png"
1842
1814
  },
@@ -1844,32 +1816,9 @@
1844
1816
  "id": "components-logos--logo-wall",
1845
1817
  "group": "Components/Logos",
1846
1818
  "name": "LogoWall",
1847
- "code": "<Logos\n align=\"center\"\n cta={{\n label: 'See all our partners',\n link: '#',\n style: 'text',\n text: 'Explore the success stories of our valued customers and discover more about their journey.',\n toggle: false\n }}\n items={[\n {\n alt: 'Logo 1',\n src: 'img/logos/logoipsum-212.svg'\n },\n {\n alt: 'Logo 1',\n src: 'img/logos/logoipsum-212.svg'\n },\n {\n alt: 'Logo 1',\n src: 'img/logos/logoipsum-212.svg'\n }\n ]}\n logo={[\n {\n alt: 'Logo 1',\n src: 'img/logos/logoipsum-212.svg'\n },\n {\n alt: 'Logo 2',\n src: 'img/logos/logoipsum-217.svg'\n },\n {\n alt: 'Logo 3',\n src: 'img/logos/logoipsum-239.svg'\n },\n {\n alt: 'Logo 4',\n src: 'img/logos/logoipsum-244.svg'\n },\n {\n alt: 'Logo 5',\n src: 'img/logos/logoipsum-250.svg'\n },\n {\n alt: 'Logo 6',\n src: 'img/logos/logoipsum-286.svg'\n },\n {\n alt: 'Logo 4',\n src: 'img/logos/logoipsum-244.svg'\n },\n {\n alt: 'Logo 5',\n src: 'img/logos/logoipsum-250.svg'\n },\n {\n alt: 'Logo 6',\n src: 'img/logos/logoipsum-286.svg'\n },\n {\n alt: 'Logo 4',\n src: 'img/logos/logoipsum-244.svg'\n },\n {\n alt: 'Logo 5',\n src: 'img/logos/logoipsum-250.svg'\n },\n {\n alt: 'Logo 6',\n src: 'img/logos/logoipsum-286.svg'\n }\n ]}\n logosPerRow={4}\n tagline=\"Your Success, Our Commitment\"\n/>",
1819
+ "code": "<Logos\n align=\"center\"\n cta={{\n label: 'See all our partners',\n link: '#',\n style: 'text',\n text: 'Explore the success stories of our valued customers and discover more about their journey.',\n toggle: false\n }}\n logo={[\n {\n alt: 'Logo 1',\n src: 'img/logos/logoipsum-212.svg'\n },\n {\n alt: 'Logo 2',\n src: 'img/logos/logoipsum-217.svg'\n },\n {\n alt: 'Logo 3',\n src: 'img/logos/logoipsum-239.svg'\n },\n {\n alt: 'Logo 4',\n src: 'img/logos/logoipsum-244.svg'\n },\n {\n alt: 'Logo 5',\n src: 'img/logos/logoipsum-250.svg'\n },\n {\n alt: 'Logo 6',\n src: 'img/logos/logoipsum-286.svg'\n },\n {\n alt: 'Logo 4',\n src: 'img/logos/logoipsum-244.svg'\n },\n {\n alt: 'Logo 5',\n src: 'img/logos/logoipsum-250.svg'\n },\n {\n alt: 'Logo 6',\n src: 'img/logos/logoipsum-286.svg'\n },\n {\n alt: 'Logo 4',\n src: 'img/logos/logoipsum-244.svg'\n },\n {\n alt: 'Logo 5',\n src: 'img/logos/logoipsum-250.svg'\n },\n {\n alt: 'Logo 6',\n src: 'img/logos/logoipsum-286.svg'\n }\n ]}\n logosPerRow={4}\n tagline=\"Your Success, Our Commitment\"\n/>",
1848
1820
  "args": {
1849
1821
  "tagline": "Your Success, Our Commitment",
1850
- "items": [
1851
- {
1852
- "src": "img/logos/logoipsum-212.svg",
1853
- "alt": "Logo 1"
1854
- },
1855
- {
1856
- "src": "img/logos/logoipsum-212.svg",
1857
- "alt": "Logo 1"
1858
- },
1859
- {
1860
- "src": "img/logos/logoipsum-212.svg",
1861
- "alt": "Logo 1"
1862
- }
1863
- ],
1864
- "align": "center",
1865
- "logosPerRow": 4,
1866
- "cta": {
1867
- "toggle": false,
1868
- "text": "Explore the success stories of our valued customers and discover more about their journey.",
1869
- "link": "#",
1870
- "label": "See all our partners",
1871
- "style": "text"
1872
- },
1873
1822
  "logo": [
1874
1823
  {
1875
1824
  "src": "img/logos/logoipsum-212.svg",
@@ -1919,7 +1868,16 @@
1919
1868
  "src": "img/logos/logoipsum-286.svg",
1920
1869
  "alt": "Logo 6"
1921
1870
  }
1922
- ]
1871
+ ],
1872
+ "align": "center",
1873
+ "logosPerRow": 4,
1874
+ "cta": {
1875
+ "toggle": false,
1876
+ "text": "Explore the success stories of our valued customers and discover more about their journey.",
1877
+ "link": "#",
1878
+ "label": "See all our partners",
1879
+ "style": "text"
1880
+ }
1923
1881
  },
1924
1882
  "screenshot": "img/screenshots/components-logos--logo-wall.png"
1925
1883
  },
@@ -1927,32 +1885,9 @@
1927
1885
  "id": "components-logos--logo-row",
1928
1886
  "group": "Components/Logos",
1929
1887
  "name": "LogoRow",
1930
- "code": "<Logos\n align=\"center\"\n cta={{\n label: 'See all our partners',\n link: '#',\n style: 'text',\n text: 'Explore the success stories of our valued customers and discover more about their journey.',\n toggle: false\n }}\n items={[\n {\n alt: 'Logo 1',\n src: 'img/logos/logoipsum-212.svg'\n },\n {\n alt: 'Logo 1',\n src: 'img/logos/logoipsum-212.svg'\n },\n {\n alt: 'Logo 1',\n src: 'img/logos/logoipsum-212.svg'\n }\n ]}\n logo={[\n {\n alt: 'Logo 1',\n src: 'img/logos/logoipsum-212.svg'\n },\n {\n alt: 'Logo 2',\n src: 'img/logos/logoipsum-217.svg'\n },\n {\n alt: 'Logo 3',\n src: 'img/logos/logoipsum-239.svg'\n },\n {\n alt: 'Logo 4',\n src: 'img/logos/logoipsum-244.svg'\n },\n {\n alt: 'Logo 5',\n src: 'img/logos/logoipsum-250.svg'\n },\n {\n alt: 'Logo 6',\n src: 'img/logos/logoipsum-286.svg'\n }\n ]}\n logosPerRow={6}\n tagline=\"Your Success, Our Commitment\"\n/>",
1888
+ "code": "<Logos\n align=\"center\"\n cta={{\n label: 'See all our partners',\n link: '#',\n style: 'text',\n text: 'Explore the success stories of our valued customers and discover more about their journey.',\n toggle: false\n }}\n logo={[\n {\n alt: 'Logo 1',\n src: 'img/logos/logoipsum-212.svg'\n },\n {\n alt: 'Logo 2',\n src: 'img/logos/logoipsum-217.svg'\n },\n {\n alt: 'Logo 3',\n src: 'img/logos/logoipsum-239.svg'\n },\n {\n alt: 'Logo 4',\n src: 'img/logos/logoipsum-244.svg'\n },\n {\n alt: 'Logo 5',\n src: 'img/logos/logoipsum-250.svg'\n },\n {\n alt: 'Logo 6',\n src: 'img/logos/logoipsum-286.svg'\n }\n ]}\n logosPerRow={6}\n tagline=\"Your Success, Our Commitment\"\n/>",
1931
1889
  "args": {
1932
1890
  "tagline": "Your Success, Our Commitment",
1933
- "items": [
1934
- {
1935
- "src": "img/logos/logoipsum-212.svg",
1936
- "alt": "Logo 1"
1937
- },
1938
- {
1939
- "src": "img/logos/logoipsum-212.svg",
1940
- "alt": "Logo 1"
1941
- },
1942
- {
1943
- "src": "img/logos/logoipsum-212.svg",
1944
- "alt": "Logo 1"
1945
- }
1946
- ],
1947
- "align": "center",
1948
- "logosPerRow": 6,
1949
- "cta": {
1950
- "toggle": false,
1951
- "text": "Explore the success stories of our valued customers and discover more about their journey.",
1952
- "link": "#",
1953
- "label": "See all our partners",
1954
- "style": "text"
1955
- },
1956
1891
  "logo": [
1957
1892
  {
1958
1893
  "src": "img/logos/logoipsum-212.svg",
@@ -1978,7 +1913,16 @@
1978
1913
  "src": "img/logos/logoipsum-286.svg",
1979
1914
  "alt": "Logo 6"
1980
1915
  }
1981
- ]
1916
+ ],
1917
+ "align": "center",
1918
+ "logosPerRow": 6,
1919
+ "cta": {
1920
+ "toggle": false,
1921
+ "text": "Explore the success stories of our valued customers and discover more about their journey.",
1922
+ "link": "#",
1923
+ "label": "See all our partners",
1924
+ "style": "text"
1925
+ }
1982
1926
  },
1983
1927
  "screenshot": "img/screenshots/components-logos--logo-row.png"
1984
1928
  },
@@ -2538,26 +2482,9 @@
2538
2482
  "id": "components-stats--count-up-with-icons",
2539
2483
  "group": "Components/Stats",
2540
2484
  "name": "CountUpWithIcons",
2541
- "code": "<Stats\n items={[\n {\n icon: 'person',\n number: 1,\n title: 'Stat 1'\n },\n {\n icon: 'person',\n number: 1,\n title: 'Stat 1'\n },\n {\n icon: 'person',\n number: 1,\n title: 'Stat 1'\n }\n ]}\n stats={[\n {\n icon: 'person',\n number: 1500,\n title: 'Users'\n },\n {\n icon: 'star',\n number: 350,\n title: 'Subscribers'\n },\n {\n icon: 'map',\n number: 125,\n title: 'Locations'\n }\n ]}\n/>",
2485
+ "code": "<Stats\n stat={[\n {\n icon: 'person',\n number: 1500,\n title: 'Users'\n },\n {\n icon: 'star',\n number: 350,\n title: 'Subscribers'\n },\n {\n icon: 'map',\n number: 125,\n title: 'Locations'\n }\n ]}\n />",
2542
2486
  "args": {
2543
- "items": [
2544
- {
2545
- "number": 1,
2546
- "title": "Stat 1",
2547
- "icon": "person"
2548
- },
2549
- {
2550
- "number": 1,
2551
- "title": "Stat 1",
2552
- "icon": "person"
2553
- },
2554
- {
2555
- "number": 1,
2556
- "title": "Stat 1",
2557
- "icon": "person"
2558
- }
2559
- ],
2560
- "stats": [
2487
+ "stat": [
2561
2488
  {
2562
2489
  "number": 1500,
2563
2490
  "title": "Users",
@@ -2581,26 +2508,9 @@
2581
2508
  "id": "components-stats--count-up-with-description",
2582
2509
  "group": "Components/Stats",
2583
2510
  "name": "CountUpWithDescription",
2584
- "code": "<Stats\n items={[\n {\n icon: 'person',\n number: 1,\n title: 'Stat 1'\n },\n {\n icon: 'person',\n number: 1,\n title: 'Stat 1'\n },\n {\n icon: 'person',\n number: 1,\n title: 'Stat 1'\n }\n ]}\n stats={[\n {\n description: 'Experience the power of our platform, embraced by a vast community of users. Our user base is diverse and dynamic, including both active and inactive members. Join us and become part of this ever-growing community.',\n number: 1500,\n title: 'Users'\n },\n {\n description: 'Stay ahead with our regular updates and newsletters. Our subscribers are always in the loop, receiving the latest news and features. Subscribe now and never miss an update from us.',\n number: 350,\n title: 'Subscribers'\n }\n ]}\n/>",
2511
+ "code": "<Stats\n stat={[\n {\n description: 'Experience the power of our platform, embraced by a vast community of users. Our user base is diverse and dynamic, including both active and inactive members. Join us and become part of this ever-growing community.',\n number: 1500,\n title: 'Users'\n },\n {\n description: 'Stay ahead with our regular updates and newsletters. Our subscribers are always in the loop, receiving the latest news and features. Subscribe now and never miss an update from us.',\n number: 350,\n title: 'Subscribers'\n }\n ]}\n />",
2585
2512
  "args": {
2586
- "items": [
2587
- {
2588
- "number": 1,
2589
- "title": "Stat 1",
2590
- "icon": "person"
2591
- },
2592
- {
2593
- "number": 1,
2594
- "title": "Stat 1",
2595
- "icon": "person"
2596
- },
2597
- {
2598
- "number": 1,
2599
- "title": "Stat 1",
2600
- "icon": "person"
2601
- }
2602
- ],
2603
- "stats": [
2513
+ "stat": [
2604
2514
  {
2605
2515
  "number": 1500,
2606
2516
  "title": "Users",
@@ -1084,15 +1084,20 @@
1084
1084
  "Your Success, Our Commitment"
1085
1085
  ]
1086
1086
  },
1087
- "items": {
1087
+ "logo": {
1088
1088
  "type": "array",
1089
- "title": "Items",
1089
+ "title": "Logos",
1090
1090
  "description": "The logos to display",
1091
1091
  "items": {
1092
+ "$schema": "http://json-schema.org/draft-07/schema#",
1093
+ "$id": "http://schema.mydesignsystem.com/logo.schema.json",
1094
+ "title": "Logo",
1095
+ "description": "Logo entry for Logos component",
1092
1096
  "type": "object",
1093
1097
  "properties": {
1094
1098
  "src": {
1095
1099
  "type": "string",
1100
+ "format": "image",
1096
1101
  "title": "URL",
1097
1102
  "description": "The URL of the logo image",
1098
1103
  "examples": [
@@ -1111,6 +1116,9 @@
1111
1116
  "examples": [
1112
1117
  "Logo 1"
1113
1118
  ]
1119
+ },
1120
+ "type": {
1121
+ "const": "logo"
1114
1122
  }
1115
1123
  },
1116
1124
  "additionalProperties": false,
@@ -1387,13 +1395,16 @@
1387
1395
  "description": "Component used to display stats with a number upcounter",
1388
1396
  "type": "object",
1389
1397
  "properties": {
1390
- "items": {
1391
- "title": "Items",
1398
+ "stat": {
1399
+ "title": "Stats",
1392
1400
  "type": "array",
1393
1401
  "description": "The stats to display with a number upcounter",
1394
1402
  "items": {
1395
- "type": "object",
1403
+ "$schema": "http://json-schema.org/draft-07/schema#",
1404
+ "$id": "http://schema.mydesignsystem.com/stat.schema.json",
1396
1405
  "title": "Stat",
1406
+ "description": "Stat entry of Stats component",
1407
+ "type": "object",
1397
1408
  "properties": {
1398
1409
  "number": {
1399
1410
  "title": "Number",
@@ -1409,12 +1420,14 @@
1409
1420
  "description": {
1410
1421
  "title": "Description",
1411
1422
  "description": "Optional description of the stat",
1412
- "type": "string"
1423
+ "type": "string",
1424
+ "format": "markdown"
1413
1425
  },
1414
1426
  "title": {
1415
1427
  "title": "Title",
1416
1428
  "description": "Title of the stat",
1417
1429
  "type": "string",
1430
+ "format": "markdown",
1418
1431
  "examples": [
1419
1432
  "Stat 1",
1420
1433
  "Stat 2",
@@ -1431,12 +1444,33 @@
1431
1444
  "home",
1432
1445
  "map"
1433
1446
  ]
1447
+ },
1448
+ "type": {
1449
+ "const": "stat"
1434
1450
  }
1435
1451
  },
1436
1452
  "additionalProperties": false,
1437
1453
  "required": [
1438
1454
  "number",
1439
- "title"
1455
+ "label"
1456
+ ],
1457
+ "examples": [
1458
+ {
1459
+ "number": 1,
1460
+ "label": "Stat 1"
1461
+ },
1462
+ {
1463
+ "number": 2,
1464
+ "label": "Stat 2"
1465
+ },
1466
+ {
1467
+ "number": 3,
1468
+ "label": "Stat 3"
1469
+ },
1470
+ {
1471
+ "value": 4,
1472
+ "label": "Stat 4"
1473
+ }
1440
1474
  ]
1441
1475
  },
1442
1476
  "minItems": 1,
@@ -1,31 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { HTMLAttributes } from "react";
3
- /* eslint-disable */
4
- /**
5
- * This file was automatically generated by json-schema-to-typescript.
6
- * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
7
- * and run json-schema-to-typescript to regenerate this file.
8
- */
9
- /**
10
- * The number of the stat
11
- */
12
- type Number = number;
13
- /**
14
- * Optional description of the stat
15
- */
16
- type Description = string;
17
- /**
18
- * Title of the stat
19
- */
20
- type Title = string;
21
- /**
22
- * Stat entry of Stats component
23
- */
24
- interface StatProps {
25
- number: Number;
26
- description?: Description;
27
- title?: Title;
28
- }
3
+ import { StatProps } from "../../StatProps-12a3eae0.js";
29
4
  declare const StatContextDefault: import("react").ForwardRefExoticComponent<StatProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
30
5
  declare const StatContext: import("react").Context<import("react").ForwardRefExoticComponent<StatProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>>;
31
6
  declare const Stat: import("react").ForwardRefExoticComponent<StatProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,7 +1,10 @@
1
- import { jsxs, jsx } from 'react/jsx-runtime';
1
+ import { jsx } from 'react/jsx-runtime';
2
2
  import { forwardRef, createContext, useContext } from 'react';
3
+ import { CountUp } from '@kickstartds/content/lib/count-up';
3
4
 
4
- const StatContextDefault = forwardRef(({ number, title, description, ...rest }, ref) => (jsxs("div", { ...rest, ref: ref, className: "dsa-stats__stat", children: [jsx("span", { className: "dsa-stats__value", children: number }), jsx("span", { className: "dsa-stats__label", children: title }), description && (jsx("span", { className: "dsa-stats__description", children: description }))] })));
5
+ const StatContextDefault = forwardRef(({ number, title, description, icon, ...rest }, ref) => (jsx(CountUp, { ...rest, ref: ref, className: "dsa-stats__item", to: number, icon: {
6
+ icon: icon,
7
+ }, text: description, topic: title })));
5
8
  const StatContext = createContext(StatContextDefault);
6
9
  const Stat = forwardRef((props, ref) => {
7
10
  const Component = useContext(StatContext);
@@ -34,6 +34,16 @@
34
34
  "Stat 4"
35
35
  ]
36
36
  },
37
+ "icon": {
38
+ "title": "Icon",
39
+ "description": "Optional icon of the stat",
40
+ "type": "string",
41
+ "examples": [
42
+ "person",
43
+ "home",
44
+ "map"
45
+ ]
46
+ },
37
47
  "type": {
38
48
  "const": "stat"
39
49
  }
@@ -23,6 +23,12 @@
23
23
  "type": "string",
24
24
  "format": "markdown",
25
25
  "examples": ["Stat 1", "Stat 2", "Stat 3", "Stat 4"]
26
+ },
27
+ "icon": {
28
+ "title": "Icon",
29
+ "description": "Optional icon of the stat",
30
+ "type": "string",
31
+ "examples": ["person", "home", "map"]
26
32
  }
27
33
  },
28
34
  "additionalProperties": false,
@@ -1,4 +1,4 @@
1
1
  import { HTMLAttributes, FC } from "react";
2
- import { StatsProps } from "../../StatsProps-17b0743a.js";
2
+ import { StatsProps } from "../../StatsProps-bf5ef578.js";
3
3
  declare const Stats: FC<StatsProps & HTMLAttributes<HTMLElement>>;
4
4
  export { Stats };
@@ -1,11 +1,11 @@
1
1
  import "./stats.css";
2
2
  import { jsx } from 'react/jsx-runtime';
3
- import { CountUp } from '@kickstartds/content/lib/count-up';
3
+ import { createElement } from 'react';
4
+ import { Stat } from '../stat/index.js';
5
+ import '@kickstartds/content/lib/count-up';
4
6
 
5
- const Stats = ({ items = [], }) => {
6
- return (jsx("div", { className: "dsa-stats", children: items.map((item, index) => (jsx(CountUp, { className: "dsa-stats__item", to: item.number, icon: {
7
- icon: item?.icon,
8
- }, text: item?.description, topic: item.title }, index))) }));
7
+ const Stats = ({ stat: stats = [], }) => {
8
+ return (jsx("div", { className: "dsa-stats", children: stats.map((item, index) => (createElement(Stat, { ...item, key: index }))) }));
9
9
  };
10
10
 
11
11
  export { Stats };
@@ -5,13 +5,16 @@
5
5
  "description": "Component used to display stats with a number upcounter",
6
6
  "type": "object",
7
7
  "properties": {
8
- "items": {
9
- "title": "Items",
8
+ "stat": {
9
+ "title": "Stats",
10
10
  "type": "array",
11
11
  "description": "The stats to display with a number upcounter",
12
12
  "items": {
13
- "type": "object",
13
+ "$schema": "http://json-schema.org/draft-07/schema#",
14
+ "$id": "http://schema.mydesignsystem.com/stat.schema.json",
14
15
  "title": "Stat",
16
+ "description": "Stat entry of Stats component",
17
+ "type": "object",
15
18
  "properties": {
16
19
  "number": {
17
20
  "title": "Number",
@@ -27,12 +30,14 @@
27
30
  "description": {
28
31
  "title": "Description",
29
32
  "description": "Optional description of the stat",
30
- "type": "string"
33
+ "type": "string",
34
+ "format": "markdown"
31
35
  },
32
36
  "title": {
33
37
  "title": "Title",
34
38
  "description": "Title of the stat",
35
39
  "type": "string",
40
+ "format": "markdown",
36
41
  "examples": [
37
42
  "Stat 1",
38
43
  "Stat 2",
@@ -49,12 +54,33 @@
49
54
  "home",
50
55
  "map"
51
56
  ]
57
+ },
58
+ "type": {
59
+ "const": "stat"
52
60
  }
53
61
  },
54
62
  "additionalProperties": false,
55
63
  "required": [
56
64
  "number",
57
- "title"
65
+ "label"
66
+ ],
67
+ "examples": [
68
+ {
69
+ "number": 1,
70
+ "label": "Stat 1"
71
+ },
72
+ {
73
+ "number": 2,
74
+ "label": "Stat 2"
75
+ },
76
+ {
77
+ "number": 3,
78
+ "label": "Stat 3"
79
+ },
80
+ {
81
+ "value": 4,
82
+ "label": "Stat 4"
83
+ }
58
84
  ]
59
85
  },
60
86
  "minItems": 1,
@@ -5,40 +5,12 @@
5
5
  "description": "Component used to display stats with a number upcounter",
6
6
  "type": "object",
7
7
  "properties": {
8
- "items": {
9
- "title": "Items",
8
+ "stat": {
9
+ "title": "Stats",
10
10
  "type": "array",
11
11
  "description": "The stats to display with a number upcounter",
12
12
  "items": {
13
- "type": "object",
14
- "title": "Stat",
15
- "properties": {
16
- "number": {
17
- "title": "Number",
18
- "description": "The number of the stat",
19
- "type": "integer",
20
- "examples": [1, 2, 3, 4]
21
- },
22
- "description": {
23
- "title": "Description",
24
- "description": "Optional description of the stat",
25
- "type": "string"
26
- },
27
- "title": {
28
- "title": "Title",
29
- "description": "Title of the stat",
30
- "type": "string",
31
- "examples": ["Stat 1", "Stat 2", "Stat 3", "Stat 4"]
32
- },
33
- "icon": {
34
- "title": "Icon",
35
- "description": "Optional icon of the stat",
36
- "type": "string",
37
- "examples": ["person", "home", "map"]
38
- }
39
- },
40
- "additionalProperties": false,
41
- "required": ["number", "title"]
13
+ "$ref": "http://schema.mydesignsystem.com/stat.schema.json"
42
14
  },
43
15
  "minItems": 1,
44
16
  "maxItems": 4
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Fri, 01 Mar 2024 18:00:18 GMT
3
+ * Generated on Fri, 01 Mar 2024 19:33:39 GMT
4
4
  */
5
5
  :root [ks-theme=business] {
6
6
  --ks-background-color-accent-base: var(--ks-color-primary-to-bg-8-base);
@@ -2727,7 +2727,7 @@
2727
2727
  }
2728
2728
  /**
2729
2729
  * Do not edit directly
2730
- * Generated on Fri, 01 Mar 2024 18:00:23 GMT
2730
+ * Generated on Fri, 01 Mar 2024 19:33:44 GMT
2731
2731
  */
2732
2732
  :root [ks-theme=google] {
2733
2733
  --ks-background-color-accent-base: var(--ks-color-primary-to-bg-8-base);
@@ -5458,7 +5458,7 @@
5458
5458
  }
5459
5459
  /**
5460
5460
  * Do not edit directly
5461
- * Generated on Fri, 01 Mar 2024 18:00:21 GMT
5461
+ * Generated on Fri, 01 Mar 2024 19:33:42 GMT
5462
5462
  */
5463
5463
  :root [ks-theme=ngo] {
5464
5464
  --ks-background-color-accent-base: var(--ks-color-primary-to-bg-8-base);
@@ -8459,7 +8459,7 @@
8459
8459
  }
8460
8460
  /**
8461
8461
  * Do not edit directly
8462
- * Generated on Fri, 01 Mar 2024 18:00:25 GMT
8462
+ * Generated on Fri, 01 Mar 2024 19:33:46 GMT
8463
8463
  */
8464
8464
  :root [ks-theme=telekom] {
8465
8465
  --ks-background-color-accent-base: var(--ks-color-primary-to-bg-8-base);
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Fri, 01 Mar 2024 18:00:15 GMT
3
+ * Generated on Fri, 01 Mar 2024 19:33:36 GMT
4
4
  */
5
5
 
6
6
  :root, [ks-theme] {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Fri, 01 Mar 2024 18:00:16 GMT
3
+ * Generated on Fri, 01 Mar 2024 19:33:37 GMT
4
4
  */
5
5
 
6
6
  export const KsBackgroundColorAccentBase = "#230a2b";