@redvars/peacock 3.16.0 → 3.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (147) hide show
  1. package/dist/assets/styles.css +1 -1
  2. package/dist/assets/styles.css.map +1 -1
  3. package/dist/assets/theme.js +19 -19
  4. package/dist/assets/tokens.css +1 -1
  5. package/dist/assets/tokens.css.map +1 -1
  6. package/dist/card-content.js +8 -7
  7. package/dist/card-content.js.map +1 -1
  8. package/dist/card.js +142 -98
  9. package/dist/card.js.map +1 -1
  10. package/dist/{chart-bar-D5dGFJfK.js → cartesian-chart-DgE4USyC.js} +529 -312
  11. package/dist/cartesian-chart-DgE4USyC.js.map +1 -0
  12. package/dist/chart-area.js +78 -0
  13. package/dist/chart-area.js.map +1 -0
  14. package/dist/chart-bar.js +283 -213
  15. package/dist/chart-bar.js.map +1 -1
  16. package/dist/{transform-DSwFSqzD.js → chart-base-C2qRMF48.js} +771 -102
  17. package/dist/chart-base-C2qRMF48.js.map +1 -0
  18. package/dist/chart-doughnut.js +55 -287
  19. package/dist/chart-doughnut.js.map +1 -1
  20. package/dist/chart-line.js +626 -0
  21. package/dist/chart-line.js.map +1 -0
  22. package/dist/chart-pie.js +637 -195
  23. package/dist/chart-pie.js.map +1 -1
  24. package/dist/code-editor.js +704 -131
  25. package/dist/code-editor.js.map +1 -1
  26. package/dist/code-group.js +188 -0
  27. package/dist/code-group.js.map +1 -0
  28. package/dist/code-highlighter.js +895 -257
  29. package/dist/code-highlighter.js.map +1 -1
  30. package/dist/custom-elements-jsdocs.json +1675 -222
  31. package/dist/custom-elements.json +13351 -3970
  32. package/dist/image.js +5 -1
  33. package/dist/image.js.map +1 -1
  34. package/dist/index.js +8 -7
  35. package/dist/index.js.map +1 -1
  36. package/dist/loader-full.js +1 -1
  37. package/dist/loader.js +9 -3
  38. package/dist/loader.js.map +1 -1
  39. package/dist/{is-dark-mode-DOcaw4Yq.js → observe-theme-change-DCifz1uv.js} +2 -6
  40. package/dist/observe-theme-change-DCifz1uv.js.map +1 -0
  41. package/dist/path-CJ0Arqcy.js +166 -0
  42. package/dist/path-CJ0Arqcy.js.map +1 -0
  43. package/dist/snackbar.js +89 -34
  44. package/dist/snackbar.js.map +1 -1
  45. package/dist/src/__internal/chart/cartesian-chart.d.ts +80 -0
  46. package/dist/src/__internal/chart/chart-base.d.ts +113 -0
  47. package/dist/src/__internal/chart/paths.d.ts +5 -0
  48. package/dist/src/__internal/chart/types.d.ts +42 -0
  49. package/dist/src/card/card-content.d.ts +2 -3
  50. package/dist/src/card/card.d.ts +31 -17
  51. package/dist/src/chart-area/chart-area.d.ts +54 -0
  52. package/dist/src/chart-area/index.d.ts +1 -0
  53. package/dist/src/chart-bar/chart-bar.d.ts +44 -33
  54. package/dist/src/chart-bar/index.d.ts +0 -1
  55. package/dist/src/chart-doughnut/chart-doughnut.d.ts +33 -39
  56. package/dist/src/chart-line/chart-line.d.ts +69 -0
  57. package/dist/src/chart-line/index.d.ts +1 -0
  58. package/dist/src/chart-pie/chart-pie.d.ts +63 -28
  59. package/dist/src/code-editor/code-editor.d.ts +52 -13
  60. package/dist/src/code-editor/editor-theme.d.ts +60 -0
  61. package/dist/src/code-highlighter/code-group.d.ts +52 -0
  62. package/dist/src/code-highlighter/code-highlighter.d.ts +122 -15
  63. package/dist/src/code-highlighter/index.d.ts +1 -0
  64. package/dist/src/code-highlighter/line-ranges.d.ts +24 -0
  65. package/dist/src/code-highlighter/local.d.ts +4 -1
  66. package/dist/src/code-highlighter/token-colors.d.ts +8 -0
  67. package/dist/src/index.d.ts +4 -2
  68. package/dist/src/snackbar/snackbar.d.ts +13 -1
  69. package/dist/src/toolbar/toolbar.d.ts +56 -51
  70. package/dist/table.js +9 -4
  71. package/dist/table.js.map +1 -1
  72. package/dist/test/chart.test.d.ts +1 -0
  73. package/dist/test/code-highlighter.test.d.ts +1 -0
  74. package/dist/token-colors-0TFHWbcq.js +81 -0
  75. package/dist/token-colors-0TFHWbcq.js.map +1 -0
  76. package/dist/toolbar.js +195 -184
  77. package/dist/toolbar.js.map +1 -1
  78. package/dist/tsconfig.tsbuildinfo +1 -1
  79. package/package.json +1 -2
  80. package/readme.md +7 -6
  81. package/scss/_code-block.scss +139 -0
  82. package/scss/tokens.css +24 -0
  83. package/src/__internal/chart/cartesian-chart.ts +404 -0
  84. package/src/__internal/chart/chart-base.scss +252 -0
  85. package/src/__internal/chart/chart-base.ts +474 -0
  86. package/src/__internal/chart/paths.ts +28 -0
  87. package/src/__internal/chart/types.ts +49 -0
  88. package/src/card/card-content.ts +12 -9
  89. package/src/card/card.scss +66 -54
  90. package/src/card/card.ts +109 -73
  91. package/src/chart-area/chart-area.ts +82 -0
  92. package/src/chart-area/index.ts +1 -0
  93. package/src/chart-bar/chart-bar.ts +336 -250
  94. package/src/chart-bar/index.ts +0 -1
  95. package/src/chart-doughnut/chart-doughnut.ts +62 -262
  96. package/src/chart-doughnut/demo/index.html +14 -22
  97. package/src/chart-line/chart-line.scss +25 -0
  98. package/src/chart-line/chart-line.ts +346 -0
  99. package/src/chart-line/index.ts +1 -0
  100. package/src/chart-pie/chart-pie.scss +35 -16
  101. package/src/chart-pie/chart-pie.ts +282 -188
  102. package/src/chart-pie/demo/index.html +13 -21
  103. package/src/code-editor/code-editor.scss +132 -36
  104. package/src/code-editor/code-editor.ts +308 -88
  105. package/src/code-editor/demo/index.html +39 -12
  106. package/src/code-editor/editor-theme.ts +213 -0
  107. package/src/code-highlighter/code-group.scss +34 -0
  108. package/src/code-highlighter/code-group.ts +173 -0
  109. package/src/code-highlighter/code-highlighter.scss +226 -111
  110. package/src/code-highlighter/code-highlighter.ts +554 -199
  111. package/src/code-highlighter/demo/index.html +68 -4
  112. package/src/code-highlighter/index.ts +1 -0
  113. package/src/code-highlighter/line-ranges.ts +81 -0
  114. package/src/code-highlighter/local.ts +9 -3
  115. package/src/code-highlighter/token-colors.ts +42 -0
  116. package/src/index.ts +4 -2
  117. package/src/loader.ts +8 -2
  118. package/src/snackbar/demo/index.html +39 -4
  119. package/src/snackbar/snackbar.scss +27 -10
  120. package/src/snackbar/snackbar.ts +80 -37
  121. package/src/table/table.scss +7 -1
  122. package/src/table/table.ts +4 -3
  123. package/src/toolbar/toolbar-colors.scss +6 -7
  124. package/src/toolbar/toolbar.scss +35 -106
  125. package/src/toolbar/toolbar.ts +180 -80
  126. package/dist/array-D5vjT2Xm.js +0 -14
  127. package/dist/array-D5vjT2Xm.js.map +0 -1
  128. package/dist/chart-bar-D5dGFJfK.js.map +0 -1
  129. package/dist/chart-stacked-bar.js +0 -403
  130. package/dist/chart-stacked-bar.js.map +0 -1
  131. package/dist/copy-to-clipboard-upGx-Ueo.js +0 -39
  132. package/dist/copy-to-clipboard-upGx-Ueo.js.map +0 -1
  133. package/dist/is-dark-mode-DOcaw4Yq.js.map +0 -1
  134. package/dist/pie-Dz0IDiPt.js +0 -537
  135. package/dist/pie-Dz0IDiPt.js.map +0 -1
  136. package/dist/pierre-dark-DFWl0m-C.js +0 -4
  137. package/dist/pierre-dark-DFWl0m-C.js.map +0 -1
  138. package/dist/pierre-light-BEkAPImt.js +0 -4
  139. package/dist/pierre-light-BEkAPImt.js.map +0 -1
  140. package/dist/src/chart-bar/chart-stacked-bar.d.ts +0 -78
  141. package/dist/src/code-highlighter/constants.d.ts +0 -1
  142. package/dist/transform-DSwFSqzD.js.map +0 -1
  143. package/src/chart-bar/chart-bar.scss +0 -58
  144. package/src/chart-bar/chart-stacked-bar.ts +0 -398
  145. package/src/chart-doughnut/chart-donut.scss +0 -37
  146. package/src/code-highlighter/constants.ts +0 -117
  147. /package/dist/test/{chart-bar.test.d.ts → card.test.d.ts} +0 -0
@@ -1155,23 +1155,23 @@
1155
1155
  "label": "Card",
1156
1156
  "tag": "wc-card",
1157
1157
  "rawTag": "card",
1158
- "summary": "A card surface for grouping related content.",
1159
- "cssprop": "--card-gap - Gap between slotted children.",
1160
- "example": "```html\n<wc-card variant=\"outlined\" style=\"padding-block: 1rem;\">\n <wc-card-content>\n <h3 class=\"text-headline\">Title</h3>\n <p class=\"text-body\">Supportive text</p>\n </wc-card-content>\n</wc-card>\n```",
1158
+ "summary": "A surface that groups content and actions about one subject. Set `actionable` to make the whole card a button, or `href` to make it a link.",
1159
+ "cssprop": "--card-gap - Gap between the card's children. Defaults to 0.",
1160
+ "example": "```html\n<wc-card variant=\"outlined\">\n <wc-card-content>\n <h3 class=\"text-title-large\">Title</h3>\n <p class=\"text-body-medium\">Supporting text</p>\n </wc-card-content>\n</wc-card>\n```",
1161
1161
  "customElement": {
1162
1162
  "kind": "class",
1163
1163
  "description": "",
1164
1164
  "cssProperties": [
1165
1165
  {
1166
- "description": "Inner padding for the card container. Defaults to 1rem.",
1167
- "name": "--card-padding"
1166
+ "description": "Corner radius of the card. Defaults to `--shape-corner-large`.",
1167
+ "name": "--card-container-shape"
1168
1168
  },
1169
1169
  {
1170
- "description": "Corner radius for the card container. Defaults to a large radius.",
1171
- "name": "--card-shape"
1170
+ "description": "Padding inside the card, around its children. Defaults to 0; `wc-card-content` adds its own padding.",
1171
+ "name": "--card-padding"
1172
1172
  },
1173
1173
  {
1174
- "description": "Gap between slotted children.",
1174
+ "description": "Gap between the card's children. Defaults to 0.",
1175
1175
  "name": "--card-gap"
1176
1176
  }
1177
1177
  ],
@@ -1182,6 +1182,7 @@
1182
1182
  "text": "CardVariant"
1183
1183
  },
1184
1184
  "default": "'elevated'",
1185
+ "description": "Visual style of the card: `elevated` (a raised surface with a shadow), `filled` (a tonal surface)\nor `outlined` (a bordered surface). Defaults to `elevated`.",
1185
1186
  "fieldName": "variant",
1186
1187
  "expandedType": {
1187
1188
  "text": "'elevated' | 'filled' | 'outlined'"
@@ -1193,6 +1194,7 @@
1193
1194
  "text": "boolean"
1194
1195
  },
1195
1196
  "default": "false",
1197
+ "description": "Dims the card and makes its content inert. An actionable or link card also stops responding\nto clicks and leaves the tab order, unless `disabled-reason` is set.",
1196
1198
  "fieldName": "disabled"
1197
1199
  },
1198
1200
  {
@@ -1201,6 +1203,7 @@
1201
1203
  "text": "boolean"
1202
1204
  },
1203
1205
  "default": "false",
1206
+ "description": "Makes the whole card a single button that fires `click`. Its content becomes inert, so don't\nput buttons or links inside an actionable card.",
1204
1207
  "fieldName": "actionable"
1205
1208
  },
1206
1209
  {
@@ -1209,15 +1212,15 @@
1209
1212
  "text": "string"
1210
1213
  },
1211
1214
  "default": "''",
1212
- "description": "If button is disabled, the reason why it is disabled.",
1215
+ "description": "Why an actionable or link card is disabled. The card stays focusable and screen readers read\nthe reason with it.",
1213
1216
  "fieldName": "disabledReason"
1214
1217
  },
1215
1218
  {
1216
- "name": "throttleDelay",
1219
+ "name": "throttle-delay",
1217
1220
  "type": {
1218
1221
  "text": "number | undefined"
1219
1222
  },
1220
- "description": "Sets the delay for throttle in milliseconds. When null (default), no throttle is applied.",
1223
+ "description": "Delay in milliseconds for throttling activation of an actionable or link card. When unset\n(default), no throttle is applied.",
1221
1224
  "fieldName": "throttleDelay"
1222
1225
  },
1223
1226
  {
@@ -1471,276 +1474,1337 @@
1471
1474
  }
1472
1475
  },
1473
1476
  {
1474
- "label": "Chart Bar",
1477
+ "label": "Area Chart",
1478
+ "tag": "wc-chart-area",
1479
+ "rawTag": "chart-area",
1480
+ "summary": "A line chart with the area under each line filled, optionally stacked to show parts of a total over time.",
1481
+ "tags": "charts",
1482
+ "example": "```html\n<wc-chart-area index=\"month\" stacked label=\"Visitors by month\"></wc-chart-area>\n<script>\n const chart = document.querySelector('wc-chart-area');\n chart.config = {\n desktop: { label: 'Desktop' },\n mobile: { label: 'Mobile' },\n };\n chart.data = [\n { month: 'January', desktop: 186, mobile: 80 },\n { month: 'February', desktop: 305, mobile: 200 },\n { month: 'March', desktop: 237, mobile: 120 },\n ];\n</script>\n```",
1483
+ "slot": "empty - Shown when there is no data. Defaults to \"No data\".",
1484
+ "fires": "chart-select - A category was clicked or chosen with Enter. `detail` holds `index` and `datum`.",
1485
+ "csspart": "legend - The legend.",
1486
+ "cssprop": "--chart-dim-opacity - Opacity of series that are not highlighted. Defaults to `0.4`.",
1487
+ "customElement": {
1488
+ "kind": "class",
1489
+ "description": "",
1490
+ "cssProperties": [
1491
+ {
1492
+ "description": "Color of the first series; series cycle through `--color-chart-1` to `--color-chart-8`.",
1493
+ "name": "--color-chart-1",
1494
+ "inheritedFrom": {
1495
+ "name": "ChartLine",
1496
+ "module": "src/chart-line/chart-line.ts"
1497
+ }
1498
+ },
1499
+ {
1500
+ "description": "Stroke width of the lines. Defaults to `2px`.",
1501
+ "name": "--chart-line-width",
1502
+ "inheritedFrom": {
1503
+ "name": "ChartLine",
1504
+ "module": "src/chart-line/chart-line.ts"
1505
+ }
1506
+ },
1507
+ {
1508
+ "description": "Gridline and baseline color. Defaults to `--color-outline-variant`.",
1509
+ "name": "--chart-grid-color",
1510
+ "inheritedFrom": {
1511
+ "name": "ChartLine",
1512
+ "module": "src/chart-line/chart-line.ts"
1513
+ }
1514
+ },
1515
+ {
1516
+ "description": "Axis label color. Defaults to `--color-on-surface-variant`.",
1517
+ "name": "--chart-axis-color",
1518
+ "inheritedFrom": {
1519
+ "name": "ChartLine",
1520
+ "module": "src/chart-line/chart-line.ts"
1521
+ }
1522
+ },
1523
+ {
1524
+ "description": "Opacity of series that are not highlighted. Defaults to `0.4`.",
1525
+ "name": "--chart-dim-opacity",
1526
+ "inheritedFrom": {
1527
+ "name": "ChartLine",
1528
+ "module": "src/chart-line/chart-line.ts"
1529
+ }
1530
+ }
1531
+ ],
1532
+ "cssParts": [
1533
+ {
1534
+ "description": "The outer wrapper.",
1535
+ "name": "container",
1536
+ "inheritedFrom": {
1537
+ "name": "ChartLine",
1538
+ "module": "src/chart-line/chart-line.ts"
1539
+ }
1540
+ },
1541
+ {
1542
+ "description": "The focusable plot area holding the SVG.",
1543
+ "name": "plot",
1544
+ "inheritedFrom": {
1545
+ "name": "ChartLine",
1546
+ "module": "src/chart-line/chart-line.ts"
1547
+ }
1548
+ },
1549
+ {
1550
+ "description": "The tooltip.",
1551
+ "name": "tooltip",
1552
+ "inheritedFrom": {
1553
+ "name": "ChartLine",
1554
+ "module": "src/chart-line/chart-line.ts"
1555
+ }
1556
+ },
1557
+ {
1558
+ "description": "The legend.",
1559
+ "name": "legend",
1560
+ "inheritedFrom": {
1561
+ "name": "ChartLine",
1562
+ "module": "src/chart-line/chart-line.ts"
1563
+ }
1564
+ }
1565
+ ],
1566
+ "slots": [
1567
+ {
1568
+ "description": "Shown when there is no data. Defaults to \"No data\".",
1569
+ "name": "empty",
1570
+ "inheritedFrom": {
1571
+ "name": "ChartLine",
1572
+ "module": "src/chart-line/chart-line.ts"
1573
+ }
1574
+ }
1575
+ ],
1576
+ "events": [
1577
+ {
1578
+ "name": "chart-select",
1579
+ "type": {
1580
+ "text": "CustomEvent"
1581
+ },
1582
+ "inheritedFrom": {
1583
+ "name": "ChartBase",
1584
+ "module": "src/__internal/chart/chart-base.ts"
1585
+ },
1586
+ "description": "A category was clicked or chosen with Enter. `detail` holds `index` and `datum`."
1587
+ }
1588
+ ],
1589
+ "attributes": [
1590
+ {
1591
+ "name": "stacked",
1592
+ "type": {
1593
+ "text": "boolean"
1594
+ },
1595
+ "default": "false",
1596
+ "description": "Stacks the series on each other so the top line shows the total.",
1597
+ "fieldName": "stacked"
1598
+ },
1599
+ {
1600
+ "name": "curve",
1601
+ "type": {
1602
+ "text": "ChartCurve"
1603
+ },
1604
+ "default": "'monotone'",
1605
+ "description": "How points are joined: `monotone` (smooth), `linear` or `step`.",
1606
+ "fieldName": "curve",
1607
+ "expandedType": {
1608
+ "text": "'monotone' | 'linear' | 'step'"
1609
+ },
1610
+ "inheritedFrom": {
1611
+ "name": "ChartLine",
1612
+ "module": "src/chart-line/chart-line.ts"
1613
+ }
1614
+ },
1615
+ {
1616
+ "name": "show-dots",
1617
+ "type": {
1618
+ "text": "boolean"
1619
+ },
1620
+ "default": "false",
1621
+ "description": "Draws a dot at every point. Dots always show for the hovered category.",
1622
+ "fieldName": "showDots",
1623
+ "inheritedFrom": {
1624
+ "name": "ChartLine",
1625
+ "module": "src/chart-line/chart-line.ts"
1626
+ }
1627
+ },
1628
+ {
1629
+ "name": "data",
1630
+ "type": {
1631
+ "text": "ChartDatum[]"
1632
+ },
1633
+ "default": "[]",
1634
+ "description": "Rows to plot. Each row holds the category field (`index`) and a number per series.",
1635
+ "fieldName": "data",
1636
+ "inheritedFrom": {
1637
+ "name": "CartesianChart",
1638
+ "module": "src/__internal/chart/cartesian-chart.ts"
1639
+ }
1640
+ },
1641
+ {
1642
+ "name": "config",
1643
+ "type": {
1644
+ "text": "ChartConfig"
1645
+ },
1646
+ "default": "{}",
1647
+ "description": "Series to plot, keyed by data field, with optional label and color. Defaults to every numeric field.",
1648
+ "fieldName": "config",
1649
+ "inheritedFrom": {
1650
+ "name": "CartesianChart",
1651
+ "module": "src/__internal/chart/cartesian-chart.ts"
1652
+ }
1653
+ },
1654
+ {
1655
+ "name": "index",
1656
+ "type": {
1657
+ "text": "string"
1658
+ },
1659
+ "default": "''",
1660
+ "description": "Data field that holds the category label, for example `month`.",
1661
+ "fieldName": "index",
1662
+ "inheritedFrom": {
1663
+ "name": "CartesianChart",
1664
+ "module": "src/__internal/chart/cartesian-chart.ts"
1665
+ }
1666
+ },
1667
+ {
1668
+ "name": "hide-grid",
1669
+ "type": {
1670
+ "text": "boolean"
1671
+ },
1672
+ "default": "false",
1673
+ "description": "Hides the gridlines.",
1674
+ "fieldName": "hideGrid",
1675
+ "inheritedFrom": {
1676
+ "name": "CartesianChart",
1677
+ "module": "src/__internal/chart/cartesian-chart.ts"
1678
+ }
1679
+ },
1680
+ {
1681
+ "name": "hide-category-axis",
1682
+ "type": {
1683
+ "text": "boolean"
1684
+ },
1685
+ "default": "false",
1686
+ "description": "Hides the category axis labels.",
1687
+ "fieldName": "hideCategoryAxis",
1688
+ "inheritedFrom": {
1689
+ "name": "CartesianChart",
1690
+ "module": "src/__internal/chart/cartesian-chart.ts"
1691
+ }
1692
+ },
1693
+ {
1694
+ "name": "hide-value-axis",
1695
+ "type": {
1696
+ "text": "boolean"
1697
+ },
1698
+ "default": "false",
1699
+ "description": "Hides the value axis labels.",
1700
+ "fieldName": "hideValueAxis",
1701
+ "inheritedFrom": {
1702
+ "name": "CartesianChart",
1703
+ "module": "src/__internal/chart/cartesian-chart.ts"
1704
+ }
1705
+ },
1706
+ {
1707
+ "name": "height",
1708
+ "type": {
1709
+ "text": "number"
1710
+ },
1711
+ "default": "300",
1712
+ "description": "Height of the plot in pixels. The width follows the container.",
1713
+ "fieldName": "height",
1714
+ "inheritedFrom": {
1715
+ "name": "ChartBase",
1716
+ "module": "src/__internal/chart/chart-base.ts"
1717
+ }
1718
+ },
1719
+ {
1720
+ "name": "label",
1721
+ "type": {
1722
+ "text": "string"
1723
+ },
1724
+ "default": "''",
1725
+ "description": "Accessible name of the chart, read by screen readers.",
1726
+ "fieldName": "label",
1727
+ "inheritedFrom": {
1728
+ "name": "ChartBase",
1729
+ "module": "src/__internal/chart/chart-base.ts"
1730
+ }
1731
+ },
1732
+ {
1733
+ "name": "loading",
1734
+ "type": {
1735
+ "text": "boolean"
1736
+ },
1737
+ "default": "false",
1738
+ "description": "Shows a skeleton while data loads.",
1739
+ "fieldName": "loading",
1740
+ "inheritedFrom": {
1741
+ "name": "ChartBase",
1742
+ "module": "src/__internal/chart/chart-base.ts"
1743
+ }
1744
+ },
1745
+ {
1746
+ "name": "show-legend",
1747
+ "type": {
1748
+ "text": "boolean"
1749
+ },
1750
+ "default": "false",
1751
+ "description": "Shows the legend even for a single series.",
1752
+ "fieldName": "showLegend",
1753
+ "inheritedFrom": {
1754
+ "name": "ChartBase",
1755
+ "module": "src/__internal/chart/chart-base.ts"
1756
+ }
1757
+ },
1758
+ {
1759
+ "name": "hide-legend",
1760
+ "type": {
1761
+ "text": "boolean"
1762
+ },
1763
+ "default": "false",
1764
+ "description": "Hides the legend.",
1765
+ "fieldName": "hideLegend",
1766
+ "inheritedFrom": {
1767
+ "name": "ChartBase",
1768
+ "module": "src/__internal/chart/chart-base.ts"
1769
+ }
1770
+ },
1771
+ {
1772
+ "name": "hide-tooltip",
1773
+ "type": {
1774
+ "text": "boolean"
1775
+ },
1776
+ "default": "false",
1777
+ "description": "Hides the tooltip.",
1778
+ "fieldName": "hideTooltip",
1779
+ "inheritedFrom": {
1780
+ "name": "ChartBase",
1781
+ "module": "src/__internal/chart/chart-base.ts"
1782
+ }
1783
+ },
1784
+ {
1785
+ "name": "disable-animation",
1786
+ "type": {
1787
+ "text": "boolean"
1788
+ },
1789
+ "default": "false",
1790
+ "description": "Turns off enter and update animations. They are also off when the user prefers reduced motion.",
1791
+ "fieldName": "disableAnimation",
1792
+ "inheritedFrom": {
1793
+ "name": "ChartBase",
1794
+ "module": "src/__internal/chart/chart-base.ts"
1795
+ }
1796
+ }
1797
+ ],
1798
+ "superclass": {
1799
+ "name": "ChartLine",
1800
+ "module": "/src/chart-line/chart-line.js"
1801
+ },
1802
+ "tagName": "wc-chart-area",
1803
+ "customElement": true,
1804
+ "rawTag": {
1805
+ "name": "chart-area",
1806
+ "description": ""
1807
+ }
1808
+ }
1809
+ },
1810
+ {
1811
+ "label": "Bar Chart",
1475
1812
  "tag": "wc-chart-bar",
1476
1813
  "rawTag": "chart-bar",
1477
- "summary": "A vertical bar chart that follows color and spacing tokens.",
1814
+ "summary": "Compares values across categories with vertical or horizontal bars, grouped or stacked by series.",
1478
1815
  "tags": "charts",
1479
- "example": "```html\n<wc-chart-bar width=\"520\" height=\"320\"></wc-chart-bar>\n<script>\n document.querySelector('wc-chart-bar').data = [\n { name: 'apples', label: 'Apples', value: 20 },\n { name: 'bananas', label: 'Bananas', value: 35 },\n { name: 'cherries', label: 'Cherries', value: 15 },\n ];\n</script>\n```",
1816
+ "example": "```html\n<wc-chart-bar index=\"month\" label=\"Visitors by month\"></wc-chart-bar>\n<script>\n const chart = document.querySelector('wc-chart-bar');\n chart.config = {\n desktop: { label: 'Desktop' },\n mobile: { label: 'Mobile' },\n };\n chart.data = [\n { month: 'January', desktop: 186, mobile: 80 },\n { month: 'February', desktop: 305, mobile: 200 },\n { month: 'March', desktop: 237, mobile: 120 },\n ];\n</script>\n```",
1817
+ "slot": "empty - Shown when there is no data. Defaults to \"No data\".",
1818
+ "fires": "chart-select - A bar group was clicked or chosen with Enter. `detail` holds `index` and `datum`.",
1819
+ "csspart": "legend - The legend.",
1820
+ "cssprop": "--chart-dim-opacity - Opacity of marks that are not hovered. Defaults to `0.4`.",
1480
1821
  "customElement": {
1481
1822
  "kind": "class",
1482
1823
  "description": "",
1824
+ "cssProperties": [
1825
+ {
1826
+ "description": "Color of the first series; series cycle through `--color-chart-1` to `--color-chart-8`.",
1827
+ "name": "--color-chart-1"
1828
+ },
1829
+ {
1830
+ "description": "Gridline and baseline color. Defaults to `--color-outline-variant`.",
1831
+ "name": "--chart-grid-color"
1832
+ },
1833
+ {
1834
+ "description": "Axis label color. Defaults to `--color-on-surface-variant`.",
1835
+ "name": "--chart-axis-color"
1836
+ },
1837
+ {
1838
+ "description": "Opacity of marks that are not hovered. Defaults to `0.4`.",
1839
+ "name": "--chart-dim-opacity"
1840
+ }
1841
+ ],
1842
+ "cssParts": [
1843
+ {
1844
+ "description": "The outer wrapper.",
1845
+ "name": "container"
1846
+ },
1847
+ {
1848
+ "description": "The focusable plot area holding the SVG.",
1849
+ "name": "plot"
1850
+ },
1851
+ {
1852
+ "description": "The tooltip.",
1853
+ "name": "tooltip"
1854
+ },
1855
+ {
1856
+ "description": "The legend.",
1857
+ "name": "legend"
1858
+ }
1859
+ ],
1860
+ "slots": [
1861
+ {
1862
+ "description": "Shown when there is no data. Defaults to \"No data\".",
1863
+ "name": "empty"
1864
+ }
1865
+ ],
1866
+ "events": [
1867
+ {
1868
+ "name": "chart-select",
1869
+ "type": {
1870
+ "text": "CustomEvent"
1871
+ },
1872
+ "inheritedFrom": {
1873
+ "name": "ChartBase",
1874
+ "module": "src/__internal/chart/chart-base.ts"
1875
+ },
1876
+ "description": "A bar group was clicked or chosen with Enter. `detail` holds `index` and `datum`."
1877
+ }
1878
+ ],
1483
1879
  "attributes": [
1484
1880
  {
1485
- "name": "width",
1881
+ "name": "stacked",
1882
+ "type": {
1883
+ "text": "boolean"
1884
+ },
1885
+ "default": "false",
1886
+ "description": "Stacks the series in each category instead of placing them side by side.",
1887
+ "fieldName": "stacked"
1888
+ },
1889
+ {
1890
+ "name": "orientation",
1891
+ "type": {
1892
+ "text": "ChartOrientation"
1893
+ },
1894
+ "default": "'vertical'",
1895
+ "description": "`vertical` draws columns; `horizontal` draws bars from the left.",
1896
+ "fieldName": "orientation",
1897
+ "expandedType": {
1898
+ "text": "'vertical' | 'horizontal'"
1899
+ }
1900
+ },
1901
+ {
1902
+ "name": "show-values",
1903
+ "type": {
1904
+ "text": "boolean"
1905
+ },
1906
+ "default": "false",
1907
+ "description": "Prints each bar's value (each stack's total when stacked) at its end.",
1908
+ "fieldName": "showValues"
1909
+ },
1910
+ {
1911
+ "name": "data",
1912
+ "type": {
1913
+ "text": "ChartDatum[]"
1914
+ },
1915
+ "default": "[]",
1916
+ "description": "Rows to plot. Each row holds the category field (`index`) and a number per series.",
1917
+ "fieldName": "data",
1918
+ "inheritedFrom": {
1919
+ "name": "CartesianChart",
1920
+ "module": "src/__internal/chart/cartesian-chart.ts"
1921
+ }
1922
+ },
1923
+ {
1924
+ "name": "config",
1925
+ "type": {
1926
+ "text": "ChartConfig"
1927
+ },
1928
+ "default": "{}",
1929
+ "description": "Series to plot, keyed by data field, with optional label and color. Defaults to every numeric field.",
1930
+ "fieldName": "config",
1931
+ "inheritedFrom": {
1932
+ "name": "CartesianChart",
1933
+ "module": "src/__internal/chart/cartesian-chart.ts"
1934
+ }
1935
+ },
1936
+ {
1937
+ "name": "index",
1938
+ "type": {
1939
+ "text": "string"
1940
+ },
1941
+ "default": "''",
1942
+ "description": "Data field that holds the category label, for example `month`.",
1943
+ "fieldName": "index",
1944
+ "inheritedFrom": {
1945
+ "name": "CartesianChart",
1946
+ "module": "src/__internal/chart/cartesian-chart.ts"
1947
+ }
1948
+ },
1949
+ {
1950
+ "name": "hide-grid",
1951
+ "type": {
1952
+ "text": "boolean"
1953
+ },
1954
+ "default": "false",
1955
+ "description": "Hides the gridlines.",
1956
+ "fieldName": "hideGrid",
1957
+ "inheritedFrom": {
1958
+ "name": "CartesianChart",
1959
+ "module": "src/__internal/chart/cartesian-chart.ts"
1960
+ }
1961
+ },
1962
+ {
1963
+ "name": "hide-category-axis",
1964
+ "type": {
1965
+ "text": "boolean"
1966
+ },
1967
+ "default": "false",
1968
+ "description": "Hides the category axis labels.",
1969
+ "fieldName": "hideCategoryAxis",
1970
+ "inheritedFrom": {
1971
+ "name": "CartesianChart",
1972
+ "module": "src/__internal/chart/cartesian-chart.ts"
1973
+ }
1974
+ },
1975
+ {
1976
+ "name": "hide-value-axis",
1977
+ "type": {
1978
+ "text": "boolean"
1979
+ },
1980
+ "default": "false",
1981
+ "description": "Hides the value axis labels.",
1982
+ "fieldName": "hideValueAxis",
1983
+ "inheritedFrom": {
1984
+ "name": "CartesianChart",
1985
+ "module": "src/__internal/chart/cartesian-chart.ts"
1986
+ }
1987
+ },
1988
+ {
1989
+ "name": "height",
1990
+ "type": {
1991
+ "text": "number"
1992
+ },
1993
+ "default": "300",
1994
+ "description": "Height of the plot in pixels. The width follows the container.",
1995
+ "fieldName": "height",
1996
+ "inheritedFrom": {
1997
+ "name": "ChartBase",
1998
+ "module": "src/__internal/chart/chart-base.ts"
1999
+ }
2000
+ },
2001
+ {
2002
+ "name": "label",
2003
+ "type": {
2004
+ "text": "string"
2005
+ },
2006
+ "default": "''",
2007
+ "description": "Accessible name of the chart, read by screen readers.",
2008
+ "fieldName": "label",
2009
+ "inheritedFrom": {
2010
+ "name": "ChartBase",
2011
+ "module": "src/__internal/chart/chart-base.ts"
2012
+ }
2013
+ },
2014
+ {
2015
+ "name": "loading",
2016
+ "type": {
2017
+ "text": "boolean"
2018
+ },
2019
+ "default": "false",
2020
+ "description": "Shows a skeleton while data loads.",
2021
+ "fieldName": "loading",
2022
+ "inheritedFrom": {
2023
+ "name": "ChartBase",
2024
+ "module": "src/__internal/chart/chart-base.ts"
2025
+ }
2026
+ },
2027
+ {
2028
+ "name": "show-legend",
2029
+ "type": {
2030
+ "text": "boolean"
2031
+ },
2032
+ "default": "false",
2033
+ "description": "Shows the legend even for a single series.",
2034
+ "fieldName": "showLegend",
2035
+ "inheritedFrom": {
2036
+ "name": "ChartBase",
2037
+ "module": "src/__internal/chart/chart-base.ts"
2038
+ }
2039
+ },
2040
+ {
2041
+ "name": "hide-legend",
2042
+ "type": {
2043
+ "text": "boolean"
2044
+ },
2045
+ "default": "false",
2046
+ "description": "Hides the legend.",
2047
+ "fieldName": "hideLegend",
2048
+ "inheritedFrom": {
2049
+ "name": "ChartBase",
2050
+ "module": "src/__internal/chart/chart-base.ts"
2051
+ }
2052
+ },
2053
+ {
2054
+ "name": "hide-tooltip",
2055
+ "type": {
2056
+ "text": "boolean"
2057
+ },
2058
+ "default": "false",
2059
+ "description": "Hides the tooltip.",
2060
+ "fieldName": "hideTooltip",
2061
+ "inheritedFrom": {
2062
+ "name": "ChartBase",
2063
+ "module": "src/__internal/chart/chart-base.ts"
2064
+ }
2065
+ },
2066
+ {
2067
+ "name": "disable-animation",
2068
+ "type": {
2069
+ "text": "boolean"
2070
+ },
2071
+ "default": "false",
2072
+ "description": "Turns off enter and update animations. They are also off when the user prefers reduced motion.",
2073
+ "fieldName": "disableAnimation",
2074
+ "inheritedFrom": {
2075
+ "name": "ChartBase",
2076
+ "module": "src/__internal/chart/chart-base.ts"
2077
+ }
2078
+ }
2079
+ ],
2080
+ "superclass": {
2081
+ "name": "CartesianChart",
2082
+ "module": "/src/__internal/chart/cartesian-chart.js"
2083
+ },
2084
+ "tagName": "wc-chart-bar",
2085
+ "customElement": true,
2086
+ "rawTag": {
2087
+ "name": "chart-bar",
2088
+ "description": ""
2089
+ }
2090
+ }
2091
+ },
2092
+ {
2093
+ "label": "Doughnut Chart",
2094
+ "tag": "wc-chart-doughnut",
2095
+ "rawTag": "chart-doughnut",
2096
+ "summary": "A pie chart with a hole that shows the total, or the hovered slice, in its centre.",
2097
+ "tags": "charts",
2098
+ "example": "```html\n<wc-chart-doughnut label=\"Visitors by browser\" center-label=\"Visitors\"></wc-chart-doughnut>\n<script>\n document.querySelector('wc-chart-doughnut').data = [\n { name: 'chrome', label: 'Chrome', value: 275 },\n { name: 'safari', label: 'Safari', value: 200 },\n { name: 'firefox', label: 'Firefox', value: 187 },\n ];\n</script>\n```",
2099
+ "slot": "empty - Shown when there is no data. Defaults to \"No data\".",
2100
+ "fires": "chart-select - A slice was clicked or chosen with Enter. `detail` holds `index`, `series` (the slice name) and `datum`.",
2101
+ "csspart": "legend - The legend.",
2102
+ "cssprop": "--chart-dim-opacity - Opacity of slices that are not hovered. Defaults to `0.4`.",
2103
+ "customElement": {
2104
+ "kind": "class",
2105
+ "description": "",
2106
+ "cssProperties": [
2107
+ {
2108
+ "description": "Color of the first slice; slices cycle through `--color-chart-1` to `--color-chart-8`.",
2109
+ "name": "--color-chart-1",
2110
+ "inheritedFrom": {
2111
+ "name": "ChartPie",
2112
+ "module": "src/chart-pie/chart-pie.ts"
2113
+ }
2114
+ },
2115
+ {
2116
+ "description": "Opacity of slices that are not hovered. Defaults to `0.4`.",
2117
+ "name": "--chart-dim-opacity",
2118
+ "inheritedFrom": {
2119
+ "name": "ChartPie",
2120
+ "module": "src/chart-pie/chart-pie.ts"
2121
+ }
2122
+ }
2123
+ ],
2124
+ "cssParts": [
2125
+ {
2126
+ "description": "The outer wrapper.",
2127
+ "name": "container",
2128
+ "inheritedFrom": {
2129
+ "name": "ChartPie",
2130
+ "module": "src/chart-pie/chart-pie.ts"
2131
+ }
2132
+ },
2133
+ {
2134
+ "description": "The focusable plot area holding the SVG.",
2135
+ "name": "plot",
2136
+ "inheritedFrom": {
2137
+ "name": "ChartPie",
2138
+ "module": "src/chart-pie/chart-pie.ts"
2139
+ }
2140
+ },
2141
+ {
2142
+ "description": "The centre content.",
2143
+ "name": "center"
2144
+ },
2145
+ {
2146
+ "description": "The tooltip.",
2147
+ "name": "tooltip",
2148
+ "inheritedFrom": {
2149
+ "name": "ChartPie",
2150
+ "module": "src/chart-pie/chart-pie.ts"
2151
+ }
2152
+ },
2153
+ {
2154
+ "description": "The legend.",
2155
+ "name": "legend",
2156
+ "inheritedFrom": {
2157
+ "name": "ChartPie",
2158
+ "module": "src/chart-pie/chart-pie.ts"
2159
+ }
2160
+ }
2161
+ ],
2162
+ "slots": [
2163
+ {
2164
+ "description": "Replaces the total and caption in the centre.",
2165
+ "name": "center"
2166
+ },
2167
+ {
2168
+ "description": "Shown when there is no data. Defaults to \"No data\".",
2169
+ "name": "empty",
2170
+ "inheritedFrom": {
2171
+ "name": "ChartPie",
2172
+ "module": "src/chart-pie/chart-pie.ts"
2173
+ }
2174
+ }
2175
+ ],
2176
+ "events": [
2177
+ {
2178
+ "name": "chart-select",
2179
+ "type": {
2180
+ "text": "CustomEvent"
2181
+ },
2182
+ "description": "A slice was clicked or chosen with Enter. `detail` holds `index`, `series` (the slice name) and `datum`.",
2183
+ "inheritedFrom": {
2184
+ "name": "ChartBase",
2185
+ "module": "src/__internal/chart/chart-base.ts"
2186
+ }
2187
+ }
2188
+ ],
2189
+ "attributes": [
2190
+ {
2191
+ "name": "inner-radius",
2192
+ "type": {
2193
+ "text": "number"
2194
+ },
2195
+ "default": "0.62",
2196
+ "description": "Size of the hole as a fraction of the radius.",
2197
+ "fieldName": "innerRadius",
2198
+ "inheritedFrom": {
2199
+ "name": "ChartPie",
2200
+ "module": "src/chart-pie/chart-pie.ts"
2201
+ }
2202
+ },
2203
+ {
2204
+ "name": "center-label",
2205
+ "type": {
2206
+ "text": "string"
2207
+ },
2208
+ "default": "'Total'",
2209
+ "description": "Caption under the total in the centre.",
2210
+ "fieldName": "centerLabel"
2211
+ },
2212
+ {
2213
+ "name": "data",
2214
+ "type": {
2215
+ "text": "ChartPieItem[]"
2216
+ },
2217
+ "default": "[]",
2218
+ "description": "Slices to draw.",
2219
+ "fieldName": "data",
2220
+ "inheritedFrom": {
2221
+ "name": "ChartPie",
2222
+ "module": "src/chart-pie/chart-pie.ts"
2223
+ }
2224
+ },
2225
+ {
2226
+ "name": "show-labels",
2227
+ "type": {
2228
+ "text": "boolean"
2229
+ },
2230
+ "default": "false",
2231
+ "description": "Prints each slice's percentage inside it when it fits.",
2232
+ "fieldName": "showLabels",
2233
+ "inheritedFrom": {
2234
+ "name": "ChartPie",
2235
+ "module": "src/chart-pie/chart-pie.ts"
2236
+ }
2237
+ },
2238
+ {
2239
+ "name": "height",
2240
+ "type": {
2241
+ "text": "number"
2242
+ },
2243
+ "default": "300",
2244
+ "description": "Height of the plot in pixels. The width follows the container.",
2245
+ "fieldName": "height",
2246
+ "inheritedFrom": {
2247
+ "name": "ChartBase",
2248
+ "module": "src/__internal/chart/chart-base.ts"
2249
+ }
2250
+ },
2251
+ {
2252
+ "name": "label",
2253
+ "type": {
2254
+ "text": "string"
2255
+ },
2256
+ "default": "''",
2257
+ "description": "Accessible name of the chart, read by screen readers.",
2258
+ "fieldName": "label",
2259
+ "inheritedFrom": {
2260
+ "name": "ChartBase",
2261
+ "module": "src/__internal/chart/chart-base.ts"
2262
+ }
2263
+ },
2264
+ {
2265
+ "name": "loading",
2266
+ "type": {
2267
+ "text": "boolean"
2268
+ },
2269
+ "default": "false",
2270
+ "description": "Shows a skeleton while data loads.",
2271
+ "fieldName": "loading",
2272
+ "inheritedFrom": {
2273
+ "name": "ChartBase",
2274
+ "module": "src/__internal/chart/chart-base.ts"
2275
+ }
2276
+ },
2277
+ {
2278
+ "name": "show-legend",
2279
+ "type": {
2280
+ "text": "boolean"
2281
+ },
2282
+ "default": "false",
2283
+ "description": "Shows the legend even for a single series.",
2284
+ "fieldName": "showLegend",
2285
+ "inheritedFrom": {
2286
+ "name": "ChartBase",
2287
+ "module": "src/__internal/chart/chart-base.ts"
2288
+ }
2289
+ },
2290
+ {
2291
+ "name": "hide-legend",
2292
+ "type": {
2293
+ "text": "boolean"
2294
+ },
2295
+ "default": "false",
2296
+ "description": "Hides the legend.",
2297
+ "fieldName": "hideLegend",
2298
+ "inheritedFrom": {
2299
+ "name": "ChartBase",
2300
+ "module": "src/__internal/chart/chart-base.ts"
2301
+ }
2302
+ },
2303
+ {
2304
+ "name": "hide-tooltip",
2305
+ "type": {
2306
+ "text": "boolean"
2307
+ },
2308
+ "default": "false",
2309
+ "description": "Hides the tooltip.",
2310
+ "fieldName": "hideTooltip",
2311
+ "inheritedFrom": {
2312
+ "name": "ChartBase",
2313
+ "module": "src/__internal/chart/chart-base.ts"
2314
+ }
2315
+ },
2316
+ {
2317
+ "name": "disable-animation",
2318
+ "type": {
2319
+ "text": "boolean"
2320
+ },
2321
+ "default": "false",
2322
+ "description": "Turns off enter and update animations. They are also off when the user prefers reduced motion.",
2323
+ "fieldName": "disableAnimation",
2324
+ "inheritedFrom": {
2325
+ "name": "ChartBase",
2326
+ "module": "src/__internal/chart/chart-base.ts"
2327
+ }
2328
+ }
2329
+ ],
2330
+ "superclass": {
2331
+ "name": "ChartPie",
2332
+ "module": "/src/chart-pie/chart-pie.js"
2333
+ },
2334
+ "tagName": "wc-chart-doughnut",
2335
+ "customElement": true,
2336
+ "rawTag": {
2337
+ "name": "chart-doughnut",
2338
+ "description": ""
2339
+ }
2340
+ }
2341
+ },
2342
+ {
2343
+ "label": "Line Chart",
2344
+ "tag": "wc-chart-line",
2345
+ "rawTag": "chart-line",
2346
+ "summary": "Shows how values change across ordered categories such as time, with one line per series.",
2347
+ "tags": "charts",
2348
+ "example": "```html\n<wc-chart-line index=\"month\" label=\"Visitors by month\"></wc-chart-line>\n<script>\n const chart = document.querySelector('wc-chart-line');\n chart.config = {\n desktop: { label: 'Desktop' },\n mobile: { label: 'Mobile' },\n };\n chart.data = [\n { month: 'January', desktop: 186, mobile: 80 },\n { month: 'February', desktop: 305, mobile: 200 },\n { month: 'March', desktop: 237, mobile: 120 },\n ];\n</script>\n```",
2349
+ "slot": "empty - Shown when there is no data. Defaults to \"No data\".",
2350
+ "fires": "chart-select - A category was clicked or chosen with Enter. `detail` holds `index` and `datum`.",
2351
+ "csspart": "legend - The legend.",
2352
+ "cssprop": "--chart-dim-opacity - Opacity of series that are not highlighted. Defaults to `0.4`.",
2353
+ "customElement": {
2354
+ "kind": "class",
2355
+ "description": "",
2356
+ "cssProperties": [
2357
+ {
2358
+ "description": "Color of the first series; series cycle through `--color-chart-1` to `--color-chart-8`.",
2359
+ "name": "--color-chart-1"
2360
+ },
2361
+ {
2362
+ "description": "Stroke width of the lines. Defaults to `2px`.",
2363
+ "name": "--chart-line-width"
2364
+ },
2365
+ {
2366
+ "description": "Gridline and baseline color. Defaults to `--color-outline-variant`.",
2367
+ "name": "--chart-grid-color"
2368
+ },
2369
+ {
2370
+ "description": "Axis label color. Defaults to `--color-on-surface-variant`.",
2371
+ "name": "--chart-axis-color"
2372
+ },
2373
+ {
2374
+ "description": "Opacity of series that are not highlighted. Defaults to `0.4`.",
2375
+ "name": "--chart-dim-opacity"
2376
+ }
2377
+ ],
2378
+ "cssParts": [
2379
+ {
2380
+ "description": "The outer wrapper.",
2381
+ "name": "container"
2382
+ },
2383
+ {
2384
+ "description": "The focusable plot area holding the SVG.",
2385
+ "name": "plot"
2386
+ },
2387
+ {
2388
+ "description": "The tooltip.",
2389
+ "name": "tooltip"
2390
+ },
2391
+ {
2392
+ "description": "The legend.",
2393
+ "name": "legend"
2394
+ }
2395
+ ],
2396
+ "slots": [
2397
+ {
2398
+ "description": "Shown when there is no data. Defaults to \"No data\".",
2399
+ "name": "empty"
2400
+ }
2401
+ ],
2402
+ "events": [
2403
+ {
2404
+ "name": "chart-select",
2405
+ "type": {
2406
+ "text": "CustomEvent"
2407
+ },
2408
+ "inheritedFrom": {
2409
+ "name": "ChartBase",
2410
+ "module": "src/__internal/chart/chart-base.ts"
2411
+ },
2412
+ "description": "A category was clicked or chosen with Enter. `detail` holds `index` and `datum`."
2413
+ }
2414
+ ],
2415
+ "attributes": [
2416
+ {
2417
+ "name": "curve",
2418
+ "type": {
2419
+ "text": "ChartCurve"
2420
+ },
2421
+ "default": "'monotone'",
2422
+ "description": "How points are joined: `monotone` (smooth), `linear` or `step`.",
2423
+ "fieldName": "curve",
2424
+ "expandedType": {
2425
+ "text": "'monotone' | 'linear' | 'step'"
2426
+ }
2427
+ },
2428
+ {
2429
+ "name": "show-dots",
2430
+ "type": {
2431
+ "text": "boolean"
2432
+ },
2433
+ "default": "false",
2434
+ "description": "Draws a dot at every point. Dots always show for the hovered category.",
2435
+ "fieldName": "showDots"
2436
+ },
2437
+ {
2438
+ "name": "data",
2439
+ "type": {
2440
+ "text": "ChartDatum[]"
2441
+ },
2442
+ "default": "[]",
2443
+ "description": "Rows to plot. Each row holds the category field (`index`) and a number per series.",
2444
+ "fieldName": "data",
2445
+ "inheritedFrom": {
2446
+ "name": "CartesianChart",
2447
+ "module": "src/__internal/chart/cartesian-chart.ts"
2448
+ }
2449
+ },
2450
+ {
2451
+ "name": "config",
1486
2452
  "type": {
1487
- "text": "number"
2453
+ "text": "ChartConfig"
1488
2454
  },
1489
- "default": "0",
1490
- "description": "Width of the chart in pixels.",
1491
- "fieldName": "width"
2455
+ "default": "{}",
2456
+ "description": "Series to plot, keyed by data field, with optional label and color. Defaults to every numeric field.",
2457
+ "fieldName": "config",
2458
+ "inheritedFrom": {
2459
+ "name": "CartesianChart",
2460
+ "module": "src/__internal/chart/cartesian-chart.ts"
2461
+ }
1492
2462
  },
1493
2463
  {
1494
- "name": "height",
2464
+ "name": "index",
1495
2465
  "type": {
1496
- "text": "number"
2466
+ "text": "string"
1497
2467
  },
1498
- "default": "DEFAULT_HEIGHT",
1499
- "description": "Height of the chart in pixels.",
1500
- "fieldName": "height"
2468
+ "default": "''",
2469
+ "description": "Data field that holds the category label, for example `month`.",
2470
+ "fieldName": "index",
2471
+ "inheritedFrom": {
2472
+ "name": "CartesianChart",
2473
+ "module": "src/__internal/chart/cartesian-chart.ts"
2474
+ }
1501
2475
  },
1502
2476
  {
1503
- "name": "margin",
2477
+ "name": "hide-grid",
1504
2478
  "type": {
1505
- "text": "number"
2479
+ "text": "boolean"
1506
2480
  },
1507
- "default": "24",
1508
- "description": "Margin around the chart drawing area.",
1509
- "fieldName": "margin"
2481
+ "default": "false",
2482
+ "description": "Hides the gridlines.",
2483
+ "fieldName": "hideGrid",
2484
+ "inheritedFrom": {
2485
+ "name": "CartesianChart",
2486
+ "module": "src/__internal/chart/cartesian-chart.ts"
2487
+ }
1510
2488
  },
1511
2489
  {
1512
- "name": "data",
2490
+ "name": "hide-category-axis",
1513
2491
  "type": {
1514
- "text": "ChartBarItem[]"
2492
+ "text": "boolean"
1515
2493
  },
1516
- "default": "[]",
1517
- "description": "Chart data array. Each item should have name, value, and optional label and color.",
1518
- "fieldName": "data"
2494
+ "default": "false",
2495
+ "description": "Hides the category axis labels.",
2496
+ "fieldName": "hideCategoryAxis",
2497
+ "inheritedFrom": {
2498
+ "name": "CartesianChart",
2499
+ "module": "src/__internal/chart/cartesian-chart.ts"
2500
+ }
1519
2501
  },
1520
2502
  {
1521
- "name": "show-values",
2503
+ "name": "hide-value-axis",
1522
2504
  "type": {
1523
2505
  "text": "boolean"
1524
2506
  },
1525
- "default": "true",
1526
- "description": "Whether to render value labels above bars.",
1527
- "fieldName": "showValues"
1528
- }
1529
- ],
1530
- "superclass": {
1531
- "name": "LitElement",
1532
- "package": "lit"
1533
- },
1534
- "tagName": "wc-chart-bar",
1535
- "customElement": true,
1536
- "rawTag": {
1537
- "name": "chart-bar",
1538
- "description": ""
1539
- }
1540
- }
1541
- },
1542
- {
1543
- "label": "Chart Doughnut",
1544
- "tag": "wc-chart-doughnut",
1545
- "rawTag": "chart-doughnut",
1546
- "summary": "A doughnut chart is a circular chart with a blank center. The area in the center can be used to display information.",
1547
- "tags": "charts",
1548
- "example": "```html\n<wc-chart-doughnut width=\"400\" label=\"Total\"></wc-chart-doughnut>\n<script>\n document.querySelector('wc-chart-doughnut').data = [\n { name: 'A', value: 30, label: 'Category A' },\n { name: 'B', value: 50, label: 'Category B' },\n { name: 'C', value: 20, label: 'Category C' },\n ];\n</script>\n```",
1549
- "customElement": {
1550
- "kind": "class",
1551
- "description": "",
1552
- "attributes": [
2507
+ "default": "false",
2508
+ "description": "Hides the value axis labels.",
2509
+ "fieldName": "hideValueAxis",
2510
+ "inheritedFrom": {
2511
+ "name": "CartesianChart",
2512
+ "module": "src/__internal/chart/cartesian-chart.ts"
2513
+ }
2514
+ },
1553
2515
  {
1554
- "name": "width",
2516
+ "name": "height",
1555
2517
  "type": {
1556
2518
  "text": "number"
1557
2519
  },
1558
- "default": "0",
1559
- "description": "Width (and height) of the chart in pixels.",
1560
- "fieldName": "width"
2520
+ "default": "300",
2521
+ "description": "Height of the plot in pixels. The width follows the container.",
2522
+ "fieldName": "height",
2523
+ "inheritedFrom": {
2524
+ "name": "ChartBase",
2525
+ "module": "src/__internal/chart/chart-base.ts"
2526
+ }
1561
2527
  },
1562
2528
  {
1563
- "name": "margin",
2529
+ "name": "label",
1564
2530
  "type": {
1565
- "text": "number"
2531
+ "text": "string"
1566
2532
  },
1567
- "default": "10",
1568
- "description": "Margin around the chart.",
1569
- "fieldName": "margin"
2533
+ "default": "''",
2534
+ "description": "Accessible name of the chart, read by screen readers.",
2535
+ "fieldName": "label",
2536
+ "inheritedFrom": {
2537
+ "name": "ChartBase",
2538
+ "module": "src/__internal/chart/chart-base.ts"
2539
+ }
1570
2540
  },
1571
2541
  {
1572
- "name": "show-labels",
2542
+ "name": "loading",
1573
2543
  "type": {
1574
2544
  "text": "boolean"
1575
2545
  },
1576
- "default": "true",
1577
- "description": "Whether to show labels outside the chart.",
1578
- "fieldName": "showLabels"
2546
+ "default": "false",
2547
+ "description": "Shows a skeleton while data loads.",
2548
+ "fieldName": "loading",
2549
+ "inheritedFrom": {
2550
+ "name": "ChartBase",
2551
+ "module": "src/__internal/chart/chart-base.ts"
2552
+ }
1579
2553
  },
1580
2554
  {
1581
- "name": "data",
2555
+ "name": "show-legend",
1582
2556
  "type": {
1583
- "text": "ChartDoughnutItem[]"
2557
+ "text": "boolean"
1584
2558
  },
1585
- "default": "[]",
1586
- "description": "Chart data array. Each item should have name, value, and optional label and color.",
1587
- "fieldName": "data"
2559
+ "default": "false",
2560
+ "description": "Shows the legend even for a single series.",
2561
+ "fieldName": "showLegend",
2562
+ "inheritedFrom": {
2563
+ "name": "ChartBase",
2564
+ "module": "src/__internal/chart/chart-base.ts"
2565
+ }
1588
2566
  },
1589
2567
  {
1590
- "name": "label",
2568
+ "name": "hide-legend",
1591
2569
  "type": {
1592
- "text": "string | undefined"
2570
+ "text": "boolean"
1593
2571
  },
1594
- "description": "Label displayed in the center of the doughnut.",
1595
- "fieldName": "label"
2572
+ "default": "false",
2573
+ "description": "Hides the legend.",
2574
+ "fieldName": "hideLegend",
2575
+ "inheritedFrom": {
2576
+ "name": "ChartBase",
2577
+ "module": "src/__internal/chart/chart-base.ts"
2578
+ }
2579
+ },
2580
+ {
2581
+ "name": "hide-tooltip",
2582
+ "type": {
2583
+ "text": "boolean"
2584
+ },
2585
+ "default": "false",
2586
+ "description": "Hides the tooltip.",
2587
+ "fieldName": "hideTooltip",
2588
+ "inheritedFrom": {
2589
+ "name": "ChartBase",
2590
+ "module": "src/__internal/chart/chart-base.ts"
2591
+ }
2592
+ },
2593
+ {
2594
+ "name": "disable-animation",
2595
+ "type": {
2596
+ "text": "boolean"
2597
+ },
2598
+ "default": "false",
2599
+ "description": "Turns off enter and update animations. They are also off when the user prefers reduced motion.",
2600
+ "fieldName": "disableAnimation",
2601
+ "inheritedFrom": {
2602
+ "name": "ChartBase",
2603
+ "module": "src/__internal/chart/chart-base.ts"
2604
+ }
1596
2605
  }
1597
2606
  ],
1598
2607
  "superclass": {
1599
- "name": "LitElement",
1600
- "package": "lit"
2608
+ "name": "CartesianChart",
2609
+ "module": "/src/__internal/chart/cartesian-chart.js"
1601
2610
  },
1602
- "tagName": "wc-chart-doughnut",
2611
+ "tagName": "wc-chart-line",
1603
2612
  "customElement": true,
1604
2613
  "rawTag": {
1605
- "name": "chart-doughnut",
2614
+ "name": "chart-line",
1606
2615
  "description": ""
1607
2616
  }
1608
2617
  }
1609
2618
  },
1610
2619
  {
1611
- "label": "Chart Pie",
2620
+ "label": "Pie Chart",
1612
2621
  "tag": "wc-chart-pie",
1613
2622
  "rawTag": "chart-pie",
1614
- "summary": "A pie chart is a circular statistical graphic that visually represents numerical proportions.",
2623
+ "summary": "Shows how parts make up a whole. Best with a handful of slices.",
1615
2624
  "tags": "charts",
1616
- "example": "```html\n<wc-chart-pie width=\"400\"></wc-chart-pie>\n<script>\n document.querySelector('wc-chart-pie').data = [\n { name: 'A', value: 30, label: 'Category A' },\n { name: 'B', value: 50, label: 'Category B' },\n { name: 'C', value: 20, label: 'Category C' },\n ];\n</script>\n```",
2625
+ "example": "```html\n<wc-chart-pie label=\"Visitors by browser\"></wc-chart-pie>\n<script>\n document.querySelector('wc-chart-pie').data = [\n { name: 'chrome', label: 'Chrome', value: 275 },\n { name: 'safari', label: 'Safari', value: 200 },\n { name: 'firefox', label: 'Firefox', value: 187 },\n ];\n</script>\n```",
2626
+ "slot": "empty - Shown when there is no data. Defaults to \"No data\".",
2627
+ "fires": "chart-select - A slice was clicked or chosen with Enter. `detail` holds `index`, `series` (the slice name) and `datum`.",
2628
+ "csspart": "legend - The legend.",
2629
+ "cssprop": "--chart-dim-opacity - Opacity of slices that are not hovered. Defaults to `0.4`.",
1617
2630
  "customElement": {
1618
2631
  "kind": "class",
1619
2632
  "description": "",
2633
+ "cssProperties": [
2634
+ {
2635
+ "description": "Color of the first slice; slices cycle through `--color-chart-1` to `--color-chart-8`.",
2636
+ "name": "--color-chart-1"
2637
+ },
2638
+ {
2639
+ "description": "Opacity of slices that are not hovered. Defaults to `0.4`.",
2640
+ "name": "--chart-dim-opacity"
2641
+ }
2642
+ ],
2643
+ "cssParts": [
2644
+ {
2645
+ "description": "The outer wrapper.",
2646
+ "name": "container"
2647
+ },
2648
+ {
2649
+ "description": "The focusable plot area holding the SVG.",
2650
+ "name": "plot"
2651
+ },
2652
+ {
2653
+ "description": "The tooltip.",
2654
+ "name": "tooltip"
2655
+ },
2656
+ {
2657
+ "description": "The legend.",
2658
+ "name": "legend"
2659
+ }
2660
+ ],
2661
+ "slots": [
2662
+ {
2663
+ "description": "Shown when there is no data. Defaults to \"No data\".",
2664
+ "name": "empty"
2665
+ }
2666
+ ],
2667
+ "events": [
2668
+ {
2669
+ "name": "chart-select",
2670
+ "type": {
2671
+ "text": "CustomEvent"
2672
+ },
2673
+ "description": "A slice was clicked or chosen with Enter. `detail` holds `index`, `series` (the slice name) and `datum`.",
2674
+ "inheritedFrom": {
2675
+ "name": "ChartBase",
2676
+ "module": "src/__internal/chart/chart-base.ts"
2677
+ }
2678
+ }
2679
+ ],
1620
2680
  "attributes": [
1621
2681
  {
1622
- "name": "width",
2682
+ "name": "data",
1623
2683
  "type": {
1624
- "text": "number"
2684
+ "text": "ChartPieItem[]"
1625
2685
  },
1626
- "default": "0",
1627
- "description": "Width (and height) of the chart in pixels.",
1628
- "fieldName": "width"
2686
+ "default": "[]",
2687
+ "description": "Slices to draw.",
2688
+ "fieldName": "data"
1629
2689
  },
1630
2690
  {
1631
- "name": "margin",
2691
+ "name": "inner-radius",
1632
2692
  "type": {
1633
2693
  "text": "number"
1634
2694
  },
1635
- "default": "10",
1636
- "description": "Margin around the chart.",
1637
- "fieldName": "margin"
2695
+ "default": "0",
2696
+ "description": "Size of the hole as a fraction of the radius, from 0 (pie) to 0.9.",
2697
+ "fieldName": "innerRadius"
1638
2698
  },
1639
2699
  {
1640
2700
  "name": "show-labels",
1641
2701
  "type": {
1642
2702
  "text": "boolean"
1643
2703
  },
1644
- "default": "true",
1645
- "description": "Whether to show labels outside the chart.",
2704
+ "default": "false",
2705
+ "description": "Prints each slice's percentage inside it when it fits.",
1646
2706
  "fieldName": "showLabels"
1647
2707
  },
1648
2708
  {
1649
- "name": "data",
2709
+ "name": "height",
1650
2710
  "type": {
1651
- "text": "ChartPieItem[]"
2711
+ "text": "number"
1652
2712
  },
1653
- "default": "[]",
1654
- "description": "Chart data array. Each item should have name, value, and optional label and color.",
1655
- "fieldName": "data"
1656
- }
1657
- ],
1658
- "superclass": {
1659
- "name": "LitElement",
1660
- "package": "lit"
1661
- },
1662
- "tagName": "wc-chart-pie",
1663
- "customElement": true,
1664
- "rawTag": {
1665
- "name": "chart-pie",
1666
- "description": ""
1667
- }
1668
- }
1669
- },
1670
- {
1671
- "label": "Chart Stacked Bar",
1672
- "tag": "wc-chart-stacked-bar",
1673
- "rawTag": "chart-stacked-bar",
1674
- "summary": "A stacked bar chart that groups series by category using tokens.",
1675
- "tags": "charts",
1676
- "example": "```html\n<wc-chart-stacked-bar width=\"560\" height=\"360\"></wc-chart-stacked-bar>\n<script>\n document.querySelector('wc-chart-stacked-bar').data = [\n {\n name: 'q1',\n label: 'Q1',\n segments: [\n { name: 'mobile', label: 'Mobile', value: 40 },\n { name: 'web', label: 'Web', value: 25 },\n { name: 'store', label: 'Store', value: 15 },\n ],\n },\n {\n name: 'q2',\n label: 'Q2',\n segments: [\n { name: 'mobile', label: 'Mobile', value: 32 },\n { name: 'web', label: 'Web', value: 30 },\n { name: 'store', label: 'Store', value: 18 },\n ],\n },\n ];\n</script>\n```",
1677
- "customElement": {
1678
- "kind": "class",
1679
- "description": "",
1680
- "attributes": [
2713
+ "default": "300",
2714
+ "description": "Height of the plot in pixels. The width follows the container.",
2715
+ "fieldName": "height",
2716
+ "inheritedFrom": {
2717
+ "name": "ChartBase",
2718
+ "module": "src/__internal/chart/chart-base.ts"
2719
+ }
2720
+ },
1681
2721
  {
1682
- "name": "width",
2722
+ "name": "label",
1683
2723
  "type": {
1684
- "text": "number"
2724
+ "text": "string"
1685
2725
  },
1686
- "default": "0",
1687
- "description": "Width of the chart in pixels.",
1688
- "fieldName": "width"
2726
+ "default": "''",
2727
+ "description": "Accessible name of the chart, read by screen readers.",
2728
+ "fieldName": "label",
2729
+ "inheritedFrom": {
2730
+ "name": "ChartBase",
2731
+ "module": "src/__internal/chart/chart-base.ts"
2732
+ }
1689
2733
  },
1690
2734
  {
1691
- "name": "height",
2735
+ "name": "loading",
1692
2736
  "type": {
1693
- "text": "number"
2737
+ "text": "boolean"
1694
2738
  },
1695
- "default": "DEFAULT_HEIGHT",
1696
- "description": "Height of the chart in pixels.",
1697
- "fieldName": "height"
2739
+ "default": "false",
2740
+ "description": "Shows a skeleton while data loads.",
2741
+ "fieldName": "loading",
2742
+ "inheritedFrom": {
2743
+ "name": "ChartBase",
2744
+ "module": "src/__internal/chart/chart-base.ts"
2745
+ }
1698
2746
  },
1699
2747
  {
1700
- "name": "margin",
2748
+ "name": "show-legend",
1701
2749
  "type": {
1702
- "text": "number"
2750
+ "text": "boolean"
1703
2751
  },
1704
- "default": "28",
1705
- "description": "Margin around the chart drawing area.",
1706
- "fieldName": "margin"
2752
+ "default": "false",
2753
+ "description": "Shows the legend even for a single series.",
2754
+ "fieldName": "showLegend",
2755
+ "inheritedFrom": {
2756
+ "name": "ChartBase",
2757
+ "module": "src/__internal/chart/chart-base.ts"
2758
+ }
1707
2759
  },
1708
2760
  {
1709
- "name": "data",
2761
+ "name": "hide-legend",
1710
2762
  "type": {
1711
- "text": "ChartStackedBarItem[]"
2763
+ "text": "boolean"
1712
2764
  },
1713
- "default": "[]",
1714
- "description": "Chart data array. Each item holds the stacked segments for a category.",
1715
- "fieldName": "data"
2765
+ "default": "false",
2766
+ "description": "Hides the legend.",
2767
+ "fieldName": "hideLegend",
2768
+ "inheritedFrom": {
2769
+ "name": "ChartBase",
2770
+ "module": "src/__internal/chart/chart-base.ts"
2771
+ }
1716
2772
  },
1717
2773
  {
1718
- "name": "show-values",
2774
+ "name": "hide-tooltip",
1719
2775
  "type": {
1720
2776
  "text": "boolean"
1721
2777
  },
1722
- "default": "true",
1723
- "description": "Whether to render total value labels above each stack.",
1724
- "fieldName": "showValues"
2778
+ "default": "false",
2779
+ "description": "Hides the tooltip.",
2780
+ "fieldName": "hideTooltip",
2781
+ "inheritedFrom": {
2782
+ "name": "ChartBase",
2783
+ "module": "src/__internal/chart/chart-base.ts"
2784
+ }
1725
2785
  },
1726
2786
  {
1727
- "name": "show-legend",
2787
+ "name": "disable-animation",
1728
2788
  "type": {
1729
2789
  "text": "boolean"
1730
2790
  },
1731
- "default": "true",
1732
- "description": "Whether to render the legend.",
1733
- "fieldName": "showLegend"
2791
+ "default": "false",
2792
+ "description": "Turns off enter and update animations. They are also off when the user prefers reduced motion.",
2793
+ "fieldName": "disableAnimation",
2794
+ "inheritedFrom": {
2795
+ "name": "ChartBase",
2796
+ "module": "src/__internal/chart/chart-base.ts"
2797
+ }
1734
2798
  }
1735
2799
  ],
1736
2800
  "superclass": {
1737
- "name": "LitElement",
1738
- "package": "lit"
2801
+ "name": "ChartBase",
2802
+ "module": "/src/__internal/chart/chart-base.js"
1739
2803
  },
1740
- "tagName": "wc-chart-stacked-bar",
2804
+ "tagName": "wc-chart-pie",
1741
2805
  "customElement": true,
1742
2806
  "rawTag": {
1743
- "name": "chart-stacked-bar",
2807
+ "name": "chart-pie",
1744
2808
  "description": ""
1745
2809
  }
1746
2810
  }
@@ -2289,18 +3353,72 @@
2289
3353
  "tag": "wc-code-editor",
2290
3354
  "rawTag": "code-editor",
2291
3355
  "summary": "A Monaco-based code editing component with syntax highlighting, completions and debugging marks.",
2292
- "overview": "- CodeEditor wraps Monaco Editor as a web component. Monaco is bundled with Peacock and loaded when the first editor appears; nothing comes from a CDN, so it works under a content security policy that allows only its own origin.\n - Supports TypeScript, JavaScript, JSON, HTML, CSS, SCSS and Markdown, with completions and errors for TypeScript, JavaScript and JSON; read-only mode, line numbers, minimap, and dark/light theme.\n - `lib-source` adds TypeScript declarations for completions, such as the modules a script may import.\n - With `breakpoint-gutter`, a click in the gutter fires `breakpoint-toggle`; `breakpoints` and `current-line` draw the marks a debugger shows.\n - `markers` underline problems, such as where a run failed.\n - With `fill`, the editor takes the height of its container.\n - Has a copy button; hide it with `hide-copy`.\n - Emits `change` when content is edited and updates value from property changes.",
2293
- "cssprop": "--code-editor-height - Height of the editor. Defaults to 300px.",
3356
+ "overview": "- CodeEditor wraps Monaco Editor as a web component, in the same frame as `wc-code-highlighter`: an optional header with a title and actions, or a copy button that floats at the top end. Monaco is bundled with Peacock and loaded when the first editor appears; nothing comes from a CDN, so it works under a content security policy that allows only its own origin. The code shows as plain text until Monaco is ready.\n - Its colors come from the theme's color roles and the code highlighter's syntax colors, so light, dark, the system color scheme and custom themes all follow the tokens.\n - Supports TypeScript, JavaScript, JSON, HTML, CSS, SCSS and Markdown, with completions and errors for TypeScript, JavaScript and JSON; read-only mode, line numbers, line wrapping and a minimap.\n - `lib-source` adds TypeScript declarations for completions, such as the modules a script may import.\n - With `breakpoint-gutter`, a click in the gutter fires `breakpoint-toggle`; `breakpoints` and `current-line` draw the marks a debugger shows.\n - `markers` underline problems, such as where a run failed.\n - With `fill`, the editor drops its frame and takes the height of its container, as a pane of its own.\n - Emits `change` when content is edited and updates value from property changes.",
3357
+ "slot": "actions - Extra action buttons, shown in the header or floating at the top end.",
3358
+ "csspart": "editor - The area Monaco renders into.",
3359
+ "cssprop": "--code-highlighter-token-keyword - Keyword color, shared with `wc-code-highlighter`, like the other `--code-highlighter-token-*` colors.",
2294
3360
  "fires": "breakpoint-toggle - Dispatched when the gutter of a line is clicked, with `breakpoint-gutter` set. The component does not change `breakpoints` itself.",
2295
- "example": "```html\n<wc-code-editor\n language=\"css\"\n readonly\n style=\"width: 100%; --code-editor-height: 10rem;\"\n value=\":root { --color-primary: #6341d5; }\">\n</wc-code-editor>\n```",
3361
+ "example": "```html\n<wc-code-editor\n language=\"css\"\n label=\"theme.css\"\n readonly\n style=\"width: 100%; --code-editor-height: 10rem;\"\n value=\":root { --color-primary: #6341d5; }\">\n</wc-code-editor>\n```",
2296
3362
  "tags": "input, editor",
2297
3363
  "customElement": {
2298
3364
  "kind": "class",
2299
3365
  "description": "",
2300
3366
  "cssProperties": [
2301
3367
  {
2302
- "description": "Height of the editor. Defaults to 300px.",
3368
+ "description": "Height of the editing area. Defaults to 300px. Ignored with `fill`.",
2303
3369
  "name": "--code-editor-height"
3370
+ },
3371
+ {
3372
+ "description": "Frame background. Defaults to `--color-surface-container-low`.",
3373
+ "name": "--code-editor-background"
3374
+ },
3375
+ {
3376
+ "description": "Frame border color. Defaults to `--color-outline-variant`.",
3377
+ "name": "--code-editor-border-color"
3378
+ },
3379
+ {
3380
+ "description": "Frame corner radius. Defaults to `--shape-corner-medium`.",
3381
+ "name": "--code-editor-shape"
3382
+ },
3383
+ {
3384
+ "description": "Keyword color, shared with `wc-code-highlighter`, like the other `--code-highlighter-token-*` colors.",
3385
+ "name": "--code-highlighter-token-keyword"
3386
+ }
3387
+ ],
3388
+ "cssParts": [
3389
+ {
3390
+ "description": "The outer frame.",
3391
+ "name": "container"
3392
+ },
3393
+ {
3394
+ "description": "The header row.",
3395
+ "name": "header"
3396
+ },
3397
+ {
3398
+ "description": "The header title.",
3399
+ "name": "title"
3400
+ },
3401
+ {
3402
+ "description": "The action buttons group.",
3403
+ "name": "actions"
3404
+ },
3405
+ {
3406
+ "description": "The area Monaco renders into.",
3407
+ "name": "editor"
3408
+ }
3409
+ ],
3410
+ "slots": [
3411
+ {
3412
+ "description": "Header title content. Overrides `label` and shows the header.",
3413
+ "name": "title"
3414
+ },
3415
+ {
3416
+ "description": "Icon shown before the title in the header.",
3417
+ "name": "icon"
3418
+ },
3419
+ {
3420
+ "description": "Extra action buttons, shown in the header or floating at the top end.",
3421
+ "name": "actions"
2304
3422
  }
2305
3423
  ],
2306
3424
  "events": [
@@ -2348,6 +3466,15 @@
2348
3466
  "text": "'javascript' | 'typescript' | 'json' | 'html' | 'css' | 'scss' | 'markdown'"
2349
3467
  }
2350
3468
  },
3469
+ {
3470
+ "name": "label",
3471
+ "type": {
3472
+ "text": "string"
3473
+ },
3474
+ "default": "''",
3475
+ "description": "Header title, such as a file name. Shows the header.",
3476
+ "fieldName": "label"
3477
+ },
2351
3478
  {
2352
3479
  "name": "lib-source",
2353
3480
  "type": {
@@ -2357,7 +3484,7 @@
2357
3484
  "fieldName": "libSource"
2358
3485
  },
2359
3486
  {
2360
- "name": "lineNumbers",
3487
+ "name": "line-numbers",
2361
3488
  "type": {
2362
3489
  "text": "'off' | 'on'"
2363
3490
  },
@@ -2365,6 +3492,24 @@
2365
3492
  "description": "Whether line numbers show in the gutter.",
2366
3493
  "fieldName": "lineNumbers"
2367
3494
  },
3495
+ {
3496
+ "name": "wrap",
3497
+ "type": {
3498
+ "text": "boolean"
3499
+ },
3500
+ "default": "false",
3501
+ "description": "Wraps long lines instead of scrolling horizontally.",
3502
+ "fieldName": "wrap"
3503
+ },
3504
+ {
3505
+ "name": "wrap-toggle",
3506
+ "type": {
3507
+ "text": "boolean"
3508
+ },
3509
+ "default": "false",
3510
+ "description": "Shows a button that turns line wrapping on and off.",
3511
+ "fieldName": "wrapToggle"
3512
+ },
2368
3513
  {
2369
3514
  "name": "minimap",
2370
3515
  "type": {
@@ -2374,6 +3519,18 @@
2374
3519
  "description": "Shows the minimap. Leave the attribute out to hide it.",
2375
3520
  "fieldName": "minimap"
2376
3521
  },
3522
+ {
3523
+ "name": "size",
3524
+ "type": {
3525
+ "text": "CodeEditorSize"
3526
+ },
3527
+ "default": "'md'",
3528
+ "description": "Size of the editor. `sm` uses smaller text and padding.",
3529
+ "fieldName": "size",
3530
+ "expandedType": {
3531
+ "text": "'sm' | 'md'"
3532
+ }
3533
+ },
2377
3534
  {
2378
3535
  "name": "hide-copy",
2379
3536
  "type": {
@@ -2389,7 +3546,7 @@
2389
3546
  "text": "boolean"
2390
3547
  },
2391
3548
  "default": "false",
2392
- "description": "Shows a \"Read Only\" badge while the editor is read-only or disabled.",
3549
+ "description": "Shows a \"Read only\" badge while the editor is read-only or disabled.",
2393
3550
  "fieldName": "showReadonlyBadge"
2394
3551
  },
2395
3552
  {
@@ -2415,7 +3572,7 @@
2415
3572
  "text": "boolean"
2416
3573
  },
2417
3574
  "default": "false",
2418
- "description": "Takes the height of the container instead of `--code-editor-height`.",
3575
+ "description": "Drops the frame and takes the height of the container instead of `--code-editor-height`.",
2419
3576
  "fieldName": "fill"
2420
3577
  },
2421
3578
  {
@@ -2483,24 +3640,231 @@
2483
3640
  }
2484
3641
  }
2485
3642
  },
3643
+ {
3644
+ "label": "Code Group",
3645
+ "tag": "wc-code-group",
3646
+ "rawTag": "code-group",
3647
+ "summary": "Shows several code blocks in one frame, with a tab for each block.",
3648
+ "overview": "<p>Put <code>wc-code-highlighter</code> elements inside. Each block's <code>label</code> names its tab,\nand only the selected block is shown. The group draws the frame, so the blocks drop their own\nborder and header, and their actions float at the top end.</p>",
3649
+ "example": "```html\n<wc-code-group>\n <wc-code-highlighter label=\"greeting.ts\" language=\"typescript\"><pre><code>\n export const greeting = 'Hello';</code></pre></wc-code-highlighter>\n <wc-code-highlighter label=\"greeting.css\" language=\"css\"><pre><code>\n p { color: var(--color-primary); }</code></pre></wc-code-highlighter>\n</wc-code-group>\n```",
3650
+ "slot": "- `wc-code-highlighter` elements, one per tab.",
3651
+ "csspart": "header - The tab bar.",
3652
+ "fires": "change - Dispatched when the user selects another tab.",
3653
+ "tags": "display",
3654
+ "customElement": {
3655
+ "kind": "class",
3656
+ "description": "",
3657
+ "cssParts": [
3658
+ {
3659
+ "description": "The outer frame.",
3660
+ "name": "container"
3661
+ },
3662
+ {
3663
+ "description": "The tab bar.",
3664
+ "name": "header"
3665
+ }
3666
+ ],
3667
+ "slots": [
3668
+ {
3669
+ "description": "`wc-code-highlighter` elements, one per tab.",
3670
+ "name": ""
3671
+ }
3672
+ ],
3673
+ "events": [
3674
+ {
3675
+ "name": "change",
3676
+ "type": {
3677
+ "text": "CustomEvent<{index: number}>"
3678
+ },
3679
+ "description": "Dispatched when the user selects another tab."
3680
+ }
3681
+ ],
3682
+ "attributes": [
3683
+ {
3684
+ "name": "selected-index",
3685
+ "type": {
3686
+ "text": "number"
3687
+ },
3688
+ "default": "0",
3689
+ "description": "Index of the shown block.",
3690
+ "fieldName": "selectedIndex"
3691
+ }
3692
+ ],
3693
+ "superclass": {
3694
+ "name": "LitElement",
3695
+ "package": "lit"
3696
+ },
3697
+ "tagName": "wc-code-group",
3698
+ "customElement": true,
3699
+ "rawTag": {
3700
+ "name": "code-group",
3701
+ "description": ""
3702
+ }
3703
+ }
3704
+ },
2486
3705
  {
2487
3706
  "label": "Code Highlighter",
2488
3707
  "tag": "wc-code-highlighter",
2489
3708
  "rawTag": "code-highlighter",
2490
- "summary": "A component that provides syntax highlighting for code snippets.",
2491
- "example": "```html\n<wc-code-highlighter language=\"javascript\" style=\"height: 9rem\"><pre><code>\n function helloWorld() {\n console.log('Hello, world!');\n }</code></pre>\n</wc-code-highlighter>\n```",
3709
+ "summary": "Displays a block of code with syntax highlighting, line numbers, line highlights, diffs and a copy button.",
3710
+ "example": "```html\n<wc-code-highlighter language=\"javascript\" label=\"hello.js\" line-numbers highlight-lines=\"2\"><pre><code>\n function helloWorld() {\n console.log('Hello, world!');\n }</code></pre>\n</wc-code-highlighter>\n```",
3711
+ "slot": "actions - Extra action buttons, shown in the header or floating at the top end.",
3712
+ "csspart": "footer - The footer holding the show more button.",
3713
+ "cssprop": "--code-highlighter-token-punctuation - Punctuation color. Defaults to `--color-on-surface-variant`.",
3714
+ "fires": "expanded-change - Dispatched when a collapsible block is expanded or collapsed.",
2492
3715
  "tags": "display",
2493
3716
  "customElement": {
2494
3717
  "kind": "class",
2495
3718
  "description": "",
3719
+ "cssProperties": [
3720
+ {
3721
+ "description": "Block background. Defaults to `--color-surface-container-low`.",
3722
+ "name": "--code-highlighter-background"
3723
+ },
3724
+ {
3725
+ "description": "Block border color. Defaults to `--color-outline-variant`.",
3726
+ "name": "--code-highlighter-border-color"
3727
+ },
3728
+ {
3729
+ "description": "Block corner radius. Defaults to `--shape-corner-medium`.",
3730
+ "name": "--code-highlighter-shape"
3731
+ },
3732
+ {
3733
+ "description": "Caps the code area height; it scrolls beyond. Defaults to `none`.",
3734
+ "name": "--code-highlighter-max-height"
3735
+ },
3736
+ {
3737
+ "description": "Height of a collapsed `collapsible` block. Defaults to `16rem`.",
3738
+ "name": "--code-highlighter-collapsed-height"
3739
+ },
3740
+ {
3741
+ "description": "Plain code color. Defaults to `--color-on-surface`.",
3742
+ "name": "--code-highlighter-foreground"
3743
+ },
3744
+ {
3745
+ "description": "Keyword color. Defaults to `--color-purple`.",
3746
+ "name": "--code-highlighter-token-keyword"
3747
+ },
3748
+ {
3749
+ "description": "String color. Defaults to `--color-green`.",
3750
+ "name": "--code-highlighter-token-string"
3751
+ },
3752
+ {
3753
+ "description": "Function color. Defaults to `--color-blue`.",
3754
+ "name": "--code-highlighter-token-function"
3755
+ },
3756
+ {
3757
+ "description": "Constant and number color. Defaults to `--color-orange`.",
3758
+ "name": "--code-highlighter-token-constant"
3759
+ },
3760
+ {
3761
+ "description": "Comment color. Defaults to `--color-on-surface-variant`.",
3762
+ "name": "--code-highlighter-token-comment"
3763
+ },
3764
+ {
3765
+ "description": "Punctuation color. Defaults to `--color-on-surface-variant`.",
3766
+ "name": "--code-highlighter-token-punctuation"
3767
+ }
3768
+ ],
3769
+ "cssParts": [
3770
+ {
3771
+ "description": "The outer block.",
3772
+ "name": "container"
3773
+ },
3774
+ {
3775
+ "description": "The header row.",
3776
+ "name": "header"
3777
+ },
3778
+ {
3779
+ "description": "The header title.",
3780
+ "name": "title"
3781
+ },
3782
+ {
3783
+ "description": "The action buttons group.",
3784
+ "name": "actions"
3785
+ },
3786
+ {
3787
+ "description": "The scrollable code area (`pre`).",
3788
+ "name": "content"
3789
+ },
3790
+ {
3791
+ "description": "Each code line.",
3792
+ "name": "line"
3793
+ },
3794
+ {
3795
+ "description": "The footer holding the show more button.",
3796
+ "name": "footer"
3797
+ }
3798
+ ],
3799
+ "slots": [
3800
+ {
3801
+ "description": "Header title content. Overrides `label` and shows the header.",
3802
+ "name": "title"
3803
+ },
3804
+ {
3805
+ "description": "Icon shown before the title in the header.",
3806
+ "name": "icon"
3807
+ },
3808
+ {
3809
+ "description": "Extra action buttons, shown in the header or floating at the top end.",
3810
+ "name": "actions"
3811
+ }
3812
+ ],
3813
+ "events": [
3814
+ {
3815
+ "name": "copied",
3816
+ "type": {
3817
+ "text": "CustomEvent<{value: string}>"
3818
+ },
3819
+ "description": "Dispatched after the copy button copies the code."
3820
+ },
3821
+ {
3822
+ "name": "expanded-change",
3823
+ "type": {
3824
+ "text": "CustomEvent<{expanded: boolean}>"
3825
+ },
3826
+ "description": "Dispatched when a collapsible block is expanded or collapsed."
3827
+ }
3828
+ ],
2496
3829
  "attributes": [
2497
3830
  {
2498
3831
  "name": "language",
2499
3832
  "type": {
2500
- "text": "BundledLanguage"
3833
+ "text": "CodeHighlighterLanguage"
2501
3834
  },
2502
3835
  "default": "'javascript'",
2503
- "fieldName": "language"
3836
+ "description": "Language of the code. Unknown languages render as plain text.",
3837
+ "fieldName": "language",
3838
+ "expandedType": {
3839
+ "text": "BundledLanguage | SpecialLanguage"
3840
+ }
3841
+ },
3842
+ {
3843
+ "name": "value",
3844
+ "type": {
3845
+ "text": "string"
3846
+ },
3847
+ "default": "''",
3848
+ "description": "Code to display. When empty, the code is read from a light-DOM `<pre><code>`.",
3849
+ "fieldName": "value"
3850
+ },
3851
+ {
3852
+ "name": "format",
3853
+ "type": {
3854
+ "text": "boolean"
3855
+ },
3856
+ "default": "true",
3857
+ "description": "Formats JavaScript, HTML and CSS with Prettier before display.\nSet `format=\"false\"` to show the code as written.",
3858
+ "fieldName": "format"
3859
+ },
3860
+ {
3861
+ "name": "label",
3862
+ "type": {
3863
+ "text": "string"
3864
+ },
3865
+ "default": "''",
3866
+ "description": "Header title, such as a file path. Shows the header.",
3867
+ "fieldName": "label"
2504
3868
  },
2505
3869
  {
2506
3870
  "name": "line-numbers",
@@ -2508,31 +3872,139 @@
2508
3872
  "text": "boolean"
2509
3873
  },
2510
3874
  "default": "false",
3875
+ "description": "Shows line numbers.",
2511
3876
  "fieldName": "lineNumbers"
2512
3877
  },
2513
3878
  {
2514
- "name": "value",
3879
+ "name": "start-line",
3880
+ "type": {
3881
+ "text": "number"
3882
+ },
3883
+ "default": "1",
3884
+ "description": "Number of the first line when line numbers are shown.",
3885
+ "fieldName": "startLine"
3886
+ },
3887
+ {
3888
+ "name": "wrap",
3889
+ "type": {
3890
+ "text": "boolean"
3891
+ },
3892
+ "default": "false",
3893
+ "description": "Wraps long lines instead of scrolling horizontally.",
3894
+ "fieldName": "wrap"
3895
+ },
3896
+ {
3897
+ "name": "wrap-toggle",
3898
+ "type": {
3899
+ "text": "boolean"
3900
+ },
3901
+ "default": "false",
3902
+ "description": "Shows a button that turns line wrapping on and off.",
3903
+ "fieldName": "wrapToggle"
3904
+ },
3905
+ {
3906
+ "name": "highlight-lines",
2515
3907
  "type": {
2516
3908
  "text": "string"
2517
3909
  },
2518
3910
  "default": "''",
2519
- "fieldName": "value"
3911
+ "description": "Lines to highlight, such as `\"1, 3-5\"`. Counts displayed lines, after formatting.",
3912
+ "fieldName": "highlightLines"
2520
3913
  },
2521
3914
  {
2522
- "name": "format",
3915
+ "name": "added-lines",
2523
3916
  "type": {
2524
- "text": "boolean | undefined"
3917
+ "text": "string"
2525
3918
  },
2526
- "default": "true",
2527
- "fieldName": "format"
3919
+ "default": "''",
3920
+ "description": "Lines shown as added in a diff, such as `\"4-6\"`.",
3921
+ "fieldName": "addedLines"
3922
+ },
3923
+ {
3924
+ "name": "removed-lines",
3925
+ "type": {
3926
+ "text": "string"
3927
+ },
3928
+ "default": "''",
3929
+ "description": "Lines shown as removed in a diff, such as `\"3\"`.",
3930
+ "fieldName": "removedLines"
3931
+ },
3932
+ {
3933
+ "name": "collapsible",
3934
+ "type": {
3935
+ "text": "boolean"
3936
+ },
3937
+ "default": "false",
3938
+ "description": "Caps the height and adds a show more button when the code is taller.",
3939
+ "fieldName": "collapsible"
3940
+ },
3941
+ {
3942
+ "name": "expanded",
3943
+ "type": {
3944
+ "text": "boolean"
3945
+ },
3946
+ "default": "false",
3947
+ "description": "Whether a collapsible block is expanded.",
3948
+ "fieldName": "expanded"
3949
+ },
3950
+ {
3951
+ "name": "size",
3952
+ "type": {
3953
+ "text": "CodeHighlighterSize"
3954
+ },
3955
+ "default": "'md'",
3956
+ "description": "Size of the block. `sm` suits tool output and dense layouts.",
3957
+ "fieldName": "size",
3958
+ "expandedType": {
3959
+ "text": "'sm' | 'md'"
3960
+ }
3961
+ },
3962
+ {
3963
+ "name": "variant",
3964
+ "type": {
3965
+ "text": "CodeHighlighterVariant"
3966
+ },
3967
+ "default": "'default'",
3968
+ "description": "Visual variant. `error` tints the block for failure output.",
3969
+ "fieldName": "variant",
3970
+ "expandedType": {
3971
+ "text": "'default' | 'error'"
3972
+ }
2528
3973
  },
2529
3974
  {
2530
- "name": "hideCopy",
3975
+ "name": "hide-copy",
2531
3976
  "type": {
2532
3977
  "text": "boolean"
2533
3978
  },
2534
3979
  "default": "false",
3980
+ "description": "Hides the copy button.",
2535
3981
  "fieldName": "hideCopy"
3982
+ },
3983
+ {
3984
+ "name": "copy-value",
3985
+ "type": {
3986
+ "text": "string | undefined"
3987
+ },
3988
+ "description": "Text the copy button copies instead of the displayed code.",
3989
+ "fieldName": "copyValue"
3990
+ },
3991
+ {
3992
+ "name": "inline",
3993
+ "type": {
3994
+ "text": "boolean"
3995
+ },
3996
+ "default": "false",
3997
+ "description": "Renders the code inline, as a compact chip within text.",
3998
+ "fieldName": "inline"
3999
+ },
4000
+ {
4001
+ "name": "grouped",
4002
+ "type": {
4003
+ "text": "boolean"
4004
+ },
4005
+ "default": "false",
4006
+ "description": "Set by `wc-code-group`. The group draws the frame and shows the label as a\ntab, so the block drops its border and header.",
4007
+ "fieldName": "grouped"
2536
4008
  }
2537
4009
  ],
2538
4010
  "superclass": {
@@ -8321,7 +9793,8 @@
8321
9793
  "tag": "wc-snackbar",
8322
9794
  "rawTag": "snackbar",
8323
9795
  "summary": "Snackbars provide brief messages about app processes at the bottom of the screen.",
8324
- "cssprop": "--snackbar-z-index - Stacking order for the snackbar.",
9796
+ "overview": "<p>An open snackbar is shown as a manual popover, so it renders in the browser's top layer, above sticky\nheaders, app bars and open modals whatever their <code>z-index</code>. Opening it again while it is\nvisible brings it back in front of anything opened since.</p>",
9797
+ "cssprop": "--snackbar-z-index - Stacking order for the snackbar in browsers without the Popover API.",
8325
9798
  "example": "```html\n<wc-snackbar preview message=\"Message archived\" action-label=\"Undo\"></wc-snackbar>\n```",
8326
9799
  "tags": "display, feedback",
8327
9800
  "customElement": {
@@ -8357,7 +9830,7 @@
8357
9830
  "name": "--snackbar-offset-bottom"
8358
9831
  },
8359
9832
  {
8360
- "description": "Stacking order for the snackbar.",
9833
+ "description": "Stacking order for the snackbar in browsers without the Popover API.",
8361
9834
  "name": "--snackbar-z-index"
8362
9835
  }
8363
9836
  ],
@@ -9892,11 +11365,11 @@
9892
11365
  "label": "Toolbar",
9893
11366
  "tag": "wc-toolbar",
9894
11367
  "rawTag": "toolbar",
9895
- "summary": "A toolbar / app bar for navigation and actions.",
9896
- "overview": "<p>The toolbar component implements the app bar pattern. It supports a\ndocked (attached) variant for bottom-panel navigation and a floating (detached pill-shaped)\nvariant. The floating variant supports both horizontal and vertical orientations.</p>\n\n<p>Render toolbar actions directly as children of the component. The docked variant is\noptimized for a horizontal action row, while the floating variant supports both horizontal\nand vertical layouts.</p>",
9897
- "cssprop": "--toolbar-shadow - Box-shadow of the toolbar.",
9898
- "example": "```html\n<!-- Floating vertical toolbar -->\n<wc-toolbar variant=\"floating\" orientation=\"vertical\">\n <wc-icon-button variant=\"tonal\"><wc-icon name=\"home\"></wc-icon></wc-icon-button>\n <wc-icon-button variant=\"text\"><wc-icon name=\"search\"></wc-icon></wc-icon-button>\n <wc-icon-button variant=\"text\"><wc-icon name=\"favorite\"></wc-icon></wc-icon-button>\n</wc-toolbar>\n```",
9899
- "tags": "display navigation",
11368
+ "summary": "A group of related actions, such as editor formatting controls.",
11369
+ "overview": "<p>The toolbar groups related actions into one control. The <code>floating</code> variant\n(default) is an elevated pill that sits over content, such as a canvas or a selection. The\n<code>flat</code> variant has no container of its own, for embedding in existing chrome like a\ncard or editor header. Both variants lay their actions out horizontally or vertically.</p>\n\n<p>Render actions directly as children. Use a <code>wc-divider</code> to separate groups of\nactions; in a horizontal toolbar give it the <code>vertical</code> attribute.</p>\n\n<p>The toolbar follows the WAI-ARIA toolbar pattern: it is a single tab stop, and the arrow\nkeys along its orientation move focus between actions (Home and End jump to the first and last).\nDisabled actions and dividers are skipped. Give the toolbar an <code>aria-label</code>.</p>",
11370
+ "cssprop": "--toolbar-content-color - Color of text inside the toolbar.",
11371
+ "example": "```html\n<!-- Flat toolbar inside existing chrome -->\n<wc-toolbar variant=\"flat\" aria-label=\"Row actions\">\n <wc-icon-button variant=\"text\" color=\"surface\" aria-label=\"Edit\"><wc-icon name=\"edit\"></wc-icon></wc-icon-button>\n <wc-icon-button variant=\"text\" color=\"surface\" aria-label=\"Delete\"><wc-icon name=\"delete\"></wc-icon></wc-icon-button>\n</wc-toolbar>\n```",
11372
+ "tags": "display",
9900
11373
  "customElement": {
9901
11374
  "kind": "class",
9902
11375
  "description": "",
@@ -9906,42 +11379,34 @@
9906
11379
  "name": "--toolbar-container-color"
9907
11380
  },
9908
11381
  {
9909
- "description": "Border radius of the toolbar. Relevant for the floating variant.",
11382
+ "description": "Border radius of the floating toolbar.",
9910
11383
  "name": "--toolbar-container-shape"
9911
11384
  },
9912
11385
  {
9913
- "description": "Height of the toolbar (docked horizontal / floating horizontal).",
9914
- "name": "--toolbar-height"
9915
- },
9916
- {
9917
- "description": "Inline padding of the toolbar.",
9918
- "name": "--toolbar-padding-inline"
11386
+ "description": "Padding of the floating toolbar.",
11387
+ "name": "--toolbar-padding"
9919
11388
  },
9920
11389
  {
9921
- "description": "Gap between toolbar sections.",
11390
+ "description": "Gap between toolbar actions.",
9922
11391
  "name": "--toolbar-gap"
9923
11392
  },
9924
11393
  {
9925
- "description": "Color of icon slots.",
11394
+ "description": "Color of icons inside the toolbar.",
9926
11395
  "name": "--toolbar-icon-color"
9927
11396
  },
9928
11397
  {
9929
- "description": "Color of the title (default slot) text.",
9930
- "name": "--toolbar-title-color"
9931
- },
9932
- {
9933
- "description": "Box-shadow of the toolbar.",
9934
- "name": "--toolbar-shadow"
11398
+ "description": "Color of text inside the toolbar.",
11399
+ "name": "--toolbar-content-color"
9935
11400
  }
9936
11401
  ],
9937
11402
  "attributes": [
9938
11403
  {
9939
11404
  "name": "variant",
9940
11405
  "type": {
9941
- "text": "'docked' | 'floating'"
11406
+ "text": "'floating' | 'flat'"
9942
11407
  },
9943
- "default": "'docked'",
9944
- "description": "Visual and layout variant of the toolbar.\n- `\"docked\"`: A full-width bar attached to the edge of the screen (default).\n- `\"floating\"`: A detached pill-shaped toolbar that floats over content.",
11408
+ "default": "'floating'",
11409
+ "description": "Visual variant of the toolbar.\n- `\"floating\"`: An elevated pill that floats over content (default).\n- `\"flat\"`: No container, fill or elevation; for embedding in existing chrome.",
9945
11410
  "fieldName": "variant"
9946
11411
  },
9947
11412
  {
@@ -9950,28 +11415,16 @@
9950
11415
  "text": "'horizontal' | 'vertical'"
9951
11416
  },
9952
11417
  "default": "'horizontal'",
9953
- "description": "Orientation of the toolbar content.\n- `\"horizontal\"`: Items are laid out left to right (default).\n- `\"vertical\"`: Items are stacked top to bottom. Primarily useful for the floating variant.",
11418
+ "description": "Orientation of the toolbar. It sets the layout direction and the arrow keys that move focus\n(Left/Right for horizontal, Up/Down for vertical).",
9954
11419
  "fieldName": "orientation"
9955
11420
  },
9956
- {
9957
- "name": "size",
9958
- "type": {
9959
- "text": "Size | LegacySize"
9960
- },
9961
- "default": "'sm'",
9962
- "description": "Size of the docked toolbar.\n- `\"sm\"`: 80dp height (default).\n- `\"md\"`: 96dp height.\n- `\"lg\"`: 112dp height.\n\nThe long names `\"small\"`, `\"medium\"` and `\"large\"` still work but are deprecated.",
9963
- "fieldName": "size",
9964
- "expandedType": {
9965
- "text": "'sm' | 'md' | 'lg' | 'small' | 'medium' | 'large'"
9966
- }
9967
- },
9968
11421
  {
9969
11422
  "name": "elevated",
9970
11423
  "type": {
9971
11424
  "text": "boolean"
9972
11425
  },
9973
11426
  "default": "false",
9974
- "description": "Whether the toolbar is visually elevated (adds a shadow).",
11427
+ "description": "Raises the floating toolbar to a higher elevation. Has no effect on the flat variant.",
9975
11428
  "fieldName": "elevated"
9976
11429
  }
9977
11430
  ],