@redvars/peacock 3.15.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 (157) 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 +2278 -677
  31. package/dist/custom-elements.json +13962 -3690
  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/pagination.js +408 -110
  42. package/dist/pagination.js.map +1 -1
  43. package/dist/path-CJ0Arqcy.js +166 -0
  44. package/dist/path-CJ0Arqcy.js.map +1 -0
  45. package/dist/snackbar.js +89 -34
  46. package/dist/snackbar.js.map +1 -1
  47. package/dist/src/__internal/chart/cartesian-chart.d.ts +80 -0
  48. package/dist/src/__internal/chart/chart-base.d.ts +113 -0
  49. package/dist/src/__internal/chart/paths.d.ts +5 -0
  50. package/dist/src/__internal/chart/types.d.ts +42 -0
  51. package/dist/src/card/card-content.d.ts +2 -3
  52. package/dist/src/card/card.d.ts +31 -17
  53. package/dist/src/chart-area/chart-area.d.ts +54 -0
  54. package/dist/src/chart-area/index.d.ts +1 -0
  55. package/dist/src/chart-bar/chart-bar.d.ts +44 -33
  56. package/dist/src/chart-bar/index.d.ts +0 -1
  57. package/dist/src/chart-doughnut/chart-doughnut.d.ts +33 -39
  58. package/dist/src/chart-line/chart-line.d.ts +69 -0
  59. package/dist/src/chart-line/index.d.ts +1 -0
  60. package/dist/src/chart-pie/chart-pie.d.ts +63 -28
  61. package/dist/src/code-editor/code-editor.d.ts +52 -13
  62. package/dist/src/code-editor/editor-theme.d.ts +60 -0
  63. package/dist/src/code-highlighter/code-group.d.ts +52 -0
  64. package/dist/src/code-highlighter/code-highlighter.d.ts +122 -15
  65. package/dist/src/code-highlighter/index.d.ts +1 -0
  66. package/dist/src/code-highlighter/line-ranges.d.ts +24 -0
  67. package/dist/src/code-highlighter/local.d.ts +4 -1
  68. package/dist/src/code-highlighter/token-colors.d.ts +8 -0
  69. package/dist/src/index.d.ts +4 -2
  70. package/dist/src/pagination/page-items.d.ts +14 -0
  71. package/dist/src/pagination/pagination.d.ts +46 -7
  72. package/dist/src/snackbar/snackbar.d.ts +13 -1
  73. package/dist/src/table/table.d.ts +125 -27
  74. package/dist/src/toolbar/toolbar.d.ts +56 -51
  75. package/dist/table.js +1007 -338
  76. package/dist/table.js.map +1 -1
  77. package/dist/test/chart.test.d.ts +1 -0
  78. package/dist/test/code-highlighter.test.d.ts +1 -0
  79. package/dist/test/pagination.test.d.ts +1 -0
  80. package/dist/test/table.test.d.ts +1 -0
  81. package/dist/token-colors-0TFHWbcq.js +81 -0
  82. package/dist/token-colors-0TFHWbcq.js.map +1 -0
  83. package/dist/toolbar.js +195 -184
  84. package/dist/toolbar.js.map +1 -1
  85. package/dist/tsconfig.tsbuildinfo +1 -1
  86. package/package.json +1 -2
  87. package/readme.md +7 -6
  88. package/scss/_code-block.scss +139 -0
  89. package/scss/tokens.css +24 -0
  90. package/src/__internal/chart/cartesian-chart.ts +404 -0
  91. package/src/__internal/chart/chart-base.scss +252 -0
  92. package/src/__internal/chart/chart-base.ts +474 -0
  93. package/src/__internal/chart/paths.ts +28 -0
  94. package/src/__internal/chart/types.ts +49 -0
  95. package/src/card/card-content.ts +12 -9
  96. package/src/card/card.scss +66 -54
  97. package/src/card/card.ts +109 -73
  98. package/src/chart-area/chart-area.ts +82 -0
  99. package/src/chart-area/index.ts +1 -0
  100. package/src/chart-bar/chart-bar.ts +336 -250
  101. package/src/chart-bar/index.ts +0 -1
  102. package/src/chart-doughnut/chart-doughnut.ts +62 -262
  103. package/src/chart-doughnut/demo/index.html +14 -22
  104. package/src/chart-line/chart-line.scss +25 -0
  105. package/src/chart-line/chart-line.ts +346 -0
  106. package/src/chart-line/index.ts +1 -0
  107. package/src/chart-pie/chart-pie.scss +35 -16
  108. package/src/chart-pie/chart-pie.ts +282 -188
  109. package/src/chart-pie/demo/index.html +13 -21
  110. package/src/code-editor/code-editor.scss +132 -36
  111. package/src/code-editor/code-editor.ts +308 -88
  112. package/src/code-editor/demo/index.html +39 -12
  113. package/src/code-editor/editor-theme.ts +213 -0
  114. package/src/code-highlighter/code-group.scss +34 -0
  115. package/src/code-highlighter/code-group.ts +173 -0
  116. package/src/code-highlighter/code-highlighter.scss +226 -111
  117. package/src/code-highlighter/code-highlighter.ts +554 -199
  118. package/src/code-highlighter/demo/index.html +68 -4
  119. package/src/code-highlighter/index.ts +1 -0
  120. package/src/code-highlighter/line-ranges.ts +81 -0
  121. package/src/code-highlighter/local.ts +9 -3
  122. package/src/code-highlighter/token-colors.ts +42 -0
  123. package/src/index.ts +4 -2
  124. package/src/loader.ts +8 -2
  125. package/src/pagination/page-items.ts +50 -0
  126. package/src/pagination/pagination.scss +159 -44
  127. package/src/pagination/pagination.ts +275 -74
  128. package/src/snackbar/demo/index.html +39 -4
  129. package/src/snackbar/snackbar.scss +27 -10
  130. package/src/snackbar/snackbar.ts +80 -37
  131. package/src/table/table.scss +337 -109
  132. package/src/table/table.ts +812 -272
  133. package/src/toolbar/toolbar-colors.scss +6 -7
  134. package/src/toolbar/toolbar.scss +35 -106
  135. package/src/toolbar/toolbar.ts +180 -80
  136. package/dist/array-D5vjT2Xm.js +0 -14
  137. package/dist/array-D5vjT2Xm.js.map +0 -1
  138. package/dist/chart-bar-D5dGFJfK.js.map +0 -1
  139. package/dist/chart-stacked-bar.js +0 -403
  140. package/dist/chart-stacked-bar.js.map +0 -1
  141. package/dist/copy-to-clipboard-upGx-Ueo.js +0 -39
  142. package/dist/copy-to-clipboard-upGx-Ueo.js.map +0 -1
  143. package/dist/is-dark-mode-DOcaw4Yq.js.map +0 -1
  144. package/dist/pie-Dz0IDiPt.js +0 -537
  145. package/dist/pie-Dz0IDiPt.js.map +0 -1
  146. package/dist/pierre-dark-DFWl0m-C.js +0 -4
  147. package/dist/pierre-dark-DFWl0m-C.js.map +0 -1
  148. package/dist/pierre-light-BEkAPImt.js +0 -4
  149. package/dist/pierre-light-BEkAPImt.js.map +0 -1
  150. package/dist/src/chart-bar/chart-stacked-bar.d.ts +0 -78
  151. package/dist/src/code-highlighter/constants.d.ts +0 -1
  152. package/dist/transform-DSwFSqzD.js.map +0 -1
  153. package/src/chart-bar/chart-bar.scss +0 -58
  154. package/src/chart-bar/chart-stacked-bar.ts +0 -398
  155. package/src/chart-doughnut/chart-donut.scss +0 -37
  156. package/src/code-highlighter/constants.ts +0 -117
  157. /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,1068 +1474,2537 @@
1471
1474
  }
1472
1475
  },
1473
1476
  {
1474
- "label": "Chart Bar",
1475
- "tag": "wc-chart-bar",
1476
- "rawTag": "chart-bar",
1477
- "summary": "A vertical bar chart that follows color and spacing tokens.",
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.",
1478
1481
  "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```",
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`.",
1480
1487
  "customElement": {
1481
1488
  "kind": "class",
1482
1489
  "description": "",
1483
- "attributes": [
1490
+ "cssProperties": [
1484
1491
  {
1485
- "name": "width",
1486
- "type": {
1487
- "text": "number"
1488
- },
1489
- "default": "0",
1490
- "description": "Width of the chart in pixels.",
1491
- "fieldName": "width"
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
+ }
1492
1498
  },
1493
1499
  {
1494
- "name": "height",
1495
- "type": {
1496
- "text": "number"
1497
- },
1498
- "default": "DEFAULT_HEIGHT",
1499
- "description": "Height of the chart in pixels.",
1500
- "fieldName": "height"
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
+ }
1501
1506
  },
1502
1507
  {
1503
- "name": "margin",
1504
- "type": {
1505
- "text": "number"
1506
- },
1507
- "default": "24",
1508
- "description": "Margin around the chart drawing area.",
1509
- "fieldName": "margin"
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
+ }
1510
1514
  },
1511
1515
  {
1512
- "name": "data",
1513
- "type": {
1514
- "text": "ChartBarItem[]"
1515
- },
1516
- "default": "[]",
1517
- "description": "Chart data array. Each item should have name, value, and optional label and color.",
1518
- "fieldName": "data"
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
+ }
1519
1522
  },
1520
1523
  {
1521
- "name": "show-values",
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",
1522
1579
  "type": {
1523
- "text": "boolean"
1580
+ "text": "CustomEvent"
1524
1581
  },
1525
- "default": "true",
1526
- "description": "Whether to render value labels above bars.",
1527
- "fieldName": "showValues"
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`."
1528
1587
  }
1529
1588
  ],
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
1589
  "attributes": [
1553
1590
  {
1554
- "name": "width",
1591
+ "name": "stacked",
1555
1592
  "type": {
1556
- "text": "number"
1593
+ "text": "boolean"
1557
1594
  },
1558
- "default": "0",
1559
- "description": "Width (and height) of the chart in pixels.",
1560
- "fieldName": "width"
1595
+ "default": "false",
1596
+ "description": "Stacks the series on each other so the top line shows the total.",
1597
+ "fieldName": "stacked"
1561
1598
  },
1562
1599
  {
1563
- "name": "margin",
1600
+ "name": "curve",
1564
1601
  "type": {
1565
- "text": "number"
1602
+ "text": "ChartCurve"
1566
1603
  },
1567
- "default": "10",
1568
- "description": "Margin around the chart.",
1569
- "fieldName": "margin"
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
+ }
1570
1614
  },
1571
1615
  {
1572
- "name": "show-labels",
1616
+ "name": "show-dots",
1573
1617
  "type": {
1574
1618
  "text": "boolean"
1575
1619
  },
1576
- "default": "true",
1577
- "description": "Whether to show labels outside the chart.",
1578
- "fieldName": "showLabels"
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
+ }
1579
1627
  },
1580
1628
  {
1581
1629
  "name": "data",
1582
1630
  "type": {
1583
- "text": "ChartDoughnutItem[]"
1631
+ "text": "ChartDatum[]"
1584
1632
  },
1585
1633
  "default": "[]",
1586
- "description": "Chart data array. Each item should have name, value, and optional label and color.",
1587
- "fieldName": "data"
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
+ }
1588
1640
  },
1589
1641
  {
1590
- "name": "label",
1642
+ "name": "config",
1591
1643
  "type": {
1592
- "text": "string | undefined"
1644
+ "text": "ChartConfig"
1593
1645
  },
1594
- "description": "Label displayed in the center of the doughnut.",
1595
- "fieldName": "label"
1596
- }
1597
- ],
1598
- "superclass": {
1599
- "name": "LitElement",
1600
- "package": "lit"
1601
- },
1602
- "tagName": "wc-chart-doughnut",
1603
- "customElement": true,
1604
- "rawTag": {
1605
- "name": "chart-doughnut",
1606
- "description": ""
1607
- }
1608
- }
1609
- },
1610
- {
1611
- "label": "Chart Pie",
1612
- "tag": "wc-chart-pie",
1613
- "rawTag": "chart-pie",
1614
- "summary": "A pie chart is a circular statistical graphic that visually represents numerical proportions.",
1615
- "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```",
1617
- "customElement": {
1618
- "kind": "class",
1619
- "description": "",
1620
- "attributes": [
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
+ },
1621
1654
  {
1622
- "name": "width",
1655
+ "name": "index",
1623
1656
  "type": {
1624
- "text": "number"
1657
+ "text": "string"
1625
1658
  },
1626
- "default": "0",
1627
- "description": "Width (and height) of the chart in pixels.",
1628
- "fieldName": "width"
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
+ }
1629
1666
  },
1630
1667
  {
1631
- "name": "margin",
1668
+ "name": "hide-grid",
1632
1669
  "type": {
1633
- "text": "number"
1670
+ "text": "boolean"
1634
1671
  },
1635
- "default": "10",
1636
- "description": "Margin around the chart.",
1637
- "fieldName": "margin"
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
+ }
1638
1679
  },
1639
1680
  {
1640
- "name": "show-labels",
1681
+ "name": "hide-category-axis",
1641
1682
  "type": {
1642
1683
  "text": "boolean"
1643
1684
  },
1644
- "default": "true",
1645
- "description": "Whether to show labels outside the chart.",
1646
- "fieldName": "showLabels"
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
+ }
1647
1692
  },
1648
1693
  {
1649
- "name": "data",
1694
+ "name": "hide-value-axis",
1650
1695
  "type": {
1651
- "text": "ChartPieItem[]"
1696
+ "text": "boolean"
1652
1697
  },
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": [
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
+ },
1681
1706
  {
1682
- "name": "width",
1707
+ "name": "height",
1683
1708
  "type": {
1684
1709
  "text": "number"
1685
1710
  },
1686
- "default": "0",
1687
- "description": "Width of the chart in pixels.",
1688
- "fieldName": "width"
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
+ }
1689
1718
  },
1690
1719
  {
1691
- "name": "height",
1720
+ "name": "label",
1692
1721
  "type": {
1693
- "text": "number"
1722
+ "text": "string"
1694
1723
  },
1695
- "default": "DEFAULT_HEIGHT",
1696
- "description": "Height of the chart in pixels.",
1697
- "fieldName": "height"
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
+ }
1698
1731
  },
1699
1732
  {
1700
- "name": "margin",
1733
+ "name": "loading",
1701
1734
  "type": {
1702
- "text": "number"
1735
+ "text": "boolean"
1703
1736
  },
1704
- "default": "28",
1705
- "description": "Margin around the chart drawing area.",
1706
- "fieldName": "margin"
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
+ }
1707
1744
  },
1708
1745
  {
1709
- "name": "data",
1746
+ "name": "show-legend",
1710
1747
  "type": {
1711
- "text": "ChartStackedBarItem[]"
1748
+ "text": "boolean"
1712
1749
  },
1713
- "default": "[]",
1714
- "description": "Chart data array. Each item holds the stacked segments for a category.",
1715
- "fieldName": "data"
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
+ }
1716
1757
  },
1717
1758
  {
1718
- "name": "show-values",
1759
+ "name": "hide-legend",
1719
1760
  "type": {
1720
1761
  "text": "boolean"
1721
1762
  },
1722
- "default": "true",
1723
- "description": "Whether to render total value labels above each stack.",
1724
- "fieldName": "showValues"
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
+ }
1725
1770
  },
1726
1771
  {
1727
- "name": "show-legend",
1772
+ "name": "hide-tooltip",
1728
1773
  "type": {
1729
1774
  "text": "boolean"
1730
1775
  },
1731
- "default": "true",
1732
- "description": "Whether to render the legend.",
1733
- "fieldName": "showLegend"
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
+ }
1734
1796
  }
1735
1797
  ],
1736
1798
  "superclass": {
1737
- "name": "LitElement",
1738
- "package": "lit"
1799
+ "name": "ChartLine",
1800
+ "module": "/src/chart-line/chart-line.js"
1739
1801
  },
1740
- "tagName": "wc-chart-stacked-bar",
1802
+ "tagName": "wc-chart-area",
1741
1803
  "customElement": true,
1742
1804
  "rawTag": {
1743
- "name": "chart-stacked-bar",
1805
+ "name": "chart-area",
1744
1806
  "description": ""
1745
1807
  }
1746
1808
  }
1747
1809
  },
1748
1810
  {
1749
- "label": "Checkbox",
1750
- "tag": "wc-checkbox",
1751
- "rawTag": "checkbox",
1752
- "summary": "Captures boolean input with an optional indeterminate mode.",
1753
- "overview": "<p>Checkboxes allow users to select one or more items from a set. Checkboxes can turn an option on or off.</p>\n<p>checkboxes feature a smooth animation and clear visual states for checked, unchecked, and indeterminate.</p>\n<p>The checkbox is form-associated: when <code>checked</code>, it submits <code>on</code> under its <code>name</code>.</p>",
1754
- "cssprop": "--checkbox-state-layer-size: Size of the state layer for touch target.",
1755
- "fires": "focus - Dispatched when the checkbox receives focus.",
1756
- "tags": "input, form",
1757
- "example": "```html\n<wc-checkbox label=\"Accept terms\" checked></wc-checkbox>\n```",
1811
+ "label": "Bar Chart",
1812
+ "tag": "wc-chart-bar",
1813
+ "rawTag": "chart-bar",
1814
+ "summary": "Compares values across categories with vertical or horizontal bars, grouped or stacked by series.",
1815
+ "tags": "charts",
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`.",
1758
1821
  "customElement": {
1759
1822
  "kind": "class",
1760
1823
  "description": "",
1761
1824
  "cssProperties": [
1762
1825
  {
1763
- "description": "Size of the checkbox container.",
1764
- "name": "--checkbox-size:"
1765
- },
1766
- {
1767
- "description": "Color of the checkbox when selected.",
1768
- "name": "--checkbox-selected-color:"
1826
+ "description": "Color of the first series; series cycle through `--color-chart-1` to `--color-chart-8`.",
1827
+ "name": "--color-chart-1"
1769
1828
  },
1770
1829
  {
1771
- "description": "Color of the checkbox border when unselected.",
1772
- "name": "--checkbox-unselected-color:"
1830
+ "description": "Gridline and baseline color. Defaults to `--color-outline-variant`.",
1831
+ "name": "--chart-grid-color"
1773
1832
  },
1774
1833
  {
1775
- "description": "Color of the checkmark icon.",
1776
- "name": "--checkbox-checkmark-color:"
1834
+ "description": "Axis label color. Defaults to `--color-on-surface-variant`.",
1835
+ "name": "--chart-axis-color"
1777
1836
  },
1778
1837
  {
1779
- "description": "Size of the state layer for touch target.",
1780
- "name": "--checkbox-state-layer-size:"
1838
+ "description": "Opacity of marks that are not hovered. Defaults to `0.4`.",
1839
+ "name": "--chart-dim-opacity"
1781
1840
  }
1782
1841
  ],
1783
- "events": [
1842
+ "cssParts": [
1784
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",
1785
1869
  "type": {
1786
1870
  "text": "CustomEvent"
1787
1871
  },
1788
- "description": "Dispatched when the checkbox is toggled. Detail: `{ checked, value, originalEvent }`.",
1789
- "name": "change"
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
+ ],
1879
+ "attributes": [
1880
+ {
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"
1790
1888
  },
1791
1889
  {
1890
+ "name": "orientation",
1792
1891
  "type": {
1793
- "text": "CustomEvent"
1892
+ "text": "ChartOrientation"
1794
1893
  },
1795
- "description": "Dispatched when the checkbox loses focus.",
1796
- "name": "blur"
1894
+ "default": "'vertical'",
1895
+ "description": "`vertical` draws columns; `horizontal` draws bars from the left.",
1896
+ "fieldName": "orientation",
1897
+ "expandedType": {
1898
+ "text": "'vertical' | 'horizontal'"
1899
+ }
1797
1900
  },
1798
1901
  {
1902
+ "name": "show-values",
1799
1903
  "type": {
1800
- "text": "CustomEvent"
1904
+ "text": "boolean"
1801
1905
  },
1802
- "description": "Dispatched when the checkbox receives focus.",
1803
- "name": "focus"
1804
- }
1805
- ],
1806
- "attributes": [
1906
+ "default": "false",
1907
+ "description": "Prints each bar's value (each stack's total when stacked) at its end.",
1908
+ "fieldName": "showValues"
1909
+ },
1807
1910
  {
1808
- "name": "label",
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",
1809
1938
  "type": {
1810
1939
  "text": "string"
1811
1940
  },
1812
1941
  "default": "''",
1813
- "description": "The checkbox label.",
1814
- "fieldName": "label"
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
+ }
1815
1948
  },
1816
1949
  {
1817
- "name": "checked",
1950
+ "name": "hide-grid",
1818
1951
  "type": {
1819
1952
  "text": "boolean"
1820
1953
  },
1821
1954
  "default": "false",
1822
- "description": "Whether the checkbox is checked.",
1823
- "fieldName": "checked"
1955
+ "description": "Hides the gridlines.",
1956
+ "fieldName": "hideGrid",
1957
+ "inheritedFrom": {
1958
+ "name": "CartesianChart",
1959
+ "module": "src/__internal/chart/cartesian-chart.ts"
1960
+ }
1824
1961
  },
1825
1962
  {
1826
- "name": "value",
1963
+ "name": "hide-category-axis",
1827
1964
  "type": {
1828
1965
  "text": "boolean"
1829
1966
  },
1830
- "deprecated": "Use `checked`. Kept as an alias of `checked`.",
1831
- "fieldName": "value"
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
+ }
1832
1974
  },
1833
1975
  {
1834
- "name": "indeterminate",
1976
+ "name": "hide-value-axis",
1835
1977
  "type": {
1836
1978
  "text": "boolean"
1837
1979
  },
1838
1980
  "default": "false",
1839
- "description": "If true, displays the checkbox in an indeterminate state.",
1840
- "fieldName": "indeterminate"
1981
+ "description": "Hides the value axis labels.",
1982
+ "fieldName": "hideValueAxis",
1983
+ "inheritedFrom": {
1984
+ "name": "CartesianChart",
1985
+ "module": "src/__internal/chart/cartesian-chart.ts"
1986
+ }
1841
1987
  },
1842
1988
  {
1843
- "name": "rounded",
1989
+ "name": "height",
1844
1990
  "type": {
1845
- "text": "boolean"
1991
+ "text": "number"
1846
1992
  },
1847
- "default": "false",
1848
- "description": "If true, the checkbox has rounded corners. Defaults to `false`.",
1849
- "fieldName": "rounded"
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
+ }
1850
2000
  },
1851
2001
  {
1852
- "name": "size",
2002
+ "name": "label",
1853
2003
  "type": {
1854
- "text": "'sm' | 'md' | 'lg'"
2004
+ "text": "string"
1855
2005
  },
1856
- "default": "'md'",
1857
- "description": "The checkbox size.\nPossible values are: `\"sm\"`, `\"md\"`, `\"lg\"`. Defaults to `\"md\"`.",
1858
- "fieldName": "size"
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
+ }
1859
2013
  },
1860
2014
  {
1861
- "name": "required",
2015
+ "name": "loading",
1862
2016
  "type": {
1863
2017
  "text": "boolean"
1864
2018
  },
1865
2019
  "default": "false",
1866
- "description": "If true, required icon is shown. Defaults to `false`.",
1867
- "fieldName": "required"
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
+ }
1868
2026
  },
1869
2027
  {
1870
- "name": "readonly",
2028
+ "name": "show-legend",
1871
2029
  "type": {
1872
2030
  "text": "boolean"
1873
2031
  },
1874
2032
  "default": "false",
1875
- "description": "If true, the checkbox is readonly. Defaults to `false`.",
1876
- "fieldName": "readonly"
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
+ }
1877
2039
  },
1878
2040
  {
1879
- "name": "configAria",
2041
+ "name": "hide-legend",
1880
2042
  "type": {
1881
- "text": "Record<string, string>"
2043
+ "text": "boolean"
1882
2044
  },
1883
- "default": "{}",
1884
- "description": "Configuration object for aria attributes.",
1885
- "fieldName": "configAria"
1886
- },
1887
- {
1888
- "name": "name",
1889
- "fieldName": "name",
2045
+ "default": "false",
2046
+ "description": "Hides the legend.",
2047
+ "fieldName": "hideLegend",
1890
2048
  "inheritedFrom": {
1891
- "name": "mixinFormAssociated",
1892
- "module": "src/__internal/mixins/form-associated.ts"
2049
+ "name": "ChartBase",
2050
+ "module": "src/__internal/chart/chart-base.ts"
1893
2051
  }
1894
2052
  },
1895
2053
  {
1896
- "name": "disabled",
1897
- "fieldName": "disabled",
2054
+ "name": "hide-tooltip",
2055
+ "type": {
2056
+ "text": "boolean"
2057
+ },
2058
+ "default": "false",
2059
+ "description": "Hides the tooltip.",
2060
+ "fieldName": "hideTooltip",
1898
2061
  "inheritedFrom": {
1899
- "name": "mixinFormAssociated",
1900
- "module": "src/__internal/mixins/form-associated.ts"
2062
+ "name": "ChartBase",
2063
+ "module": "src/__internal/chart/chart-base.ts"
1901
2064
  }
1902
- }
1903
- ],
1904
- "mixins": [
1905
- {
1906
- "name": "mixinFormAssociated",
1907
- "package": "@/__internal/mixins/form-associated.js"
1908
2065
  },
1909
2066
  {
1910
- "name": "mixinElementInternals",
1911
- "package": "@/__internal/mixins/element-internals.js"
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
+ }
1912
2078
  }
1913
2079
  ],
1914
2080
  "superclass": {
1915
- "name": "LitElement",
1916
- "package": "lit"
2081
+ "name": "CartesianChart",
2082
+ "module": "/src/__internal/chart/cartesian-chart.js"
1917
2083
  },
1918
- "tagName": "wc-checkbox",
2084
+ "tagName": "wc-chart-bar",
1919
2085
  "customElement": true,
1920
2086
  "rawTag": {
1921
- "name": "checkbox",
2087
+ "name": "chart-bar",
1922
2088
  "description": ""
1923
2089
  }
1924
2090
  }
1925
2091
  },
1926
2092
  {
1927
- "label": "Chip",
1928
- "tag": "wc-chip",
1929
- "rawTag": "chip",
1930
- "summary": "Chip component for displaying compact information with optional actions.",
1931
- "tags": "display",
1932
- "fires": "tag--dismiss - Deprecated alias of `dismiss`, fired alongside it.",
1933
- "example": "```html\n<wc-chip>Chip content</wc-chip>\n```",
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`.",
1934
2103
  "customElement": {
1935
2104
  "kind": "class",
1936
2105
  "description": "",
1937
- "events": [
2106
+ "cssProperties": [
1938
2107
  {
1939
- "name": "dismiss",
1940
- "type": {
1941
- "text": "CustomEvent"
1942
- },
1943
- "description": "Dispatched when the dismiss button of a `dismissible` chip is clicked."
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
+ }
1944
2114
  },
1945
2115
  {
1946
- "name": "tag--dismiss",
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",
1947
2179
  "type": {
1948
2180
  "text": "CustomEvent"
1949
2181
  },
1950
- "description": "Deprecated alias of `dismiss`, fired alongside it."
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
+ }
1951
2187
  }
1952
2188
  ],
1953
2189
  "attributes": [
1954
2190
  {
1955
- "name": "dismissible",
2191
+ "name": "inner-radius",
1956
2192
  "type": {
1957
- "text": "boolean"
2193
+ "text": "number"
1958
2194
  },
1959
- "default": "false",
1960
- "description": "If true, the tag will have a close icon.",
1961
- "fieldName": "dismissible"
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
+ }
1962
2202
  },
1963
2203
  {
1964
- "name": "configAria",
2204
+ "name": "center-label",
1965
2205
  "type": {
1966
- "text": "{ [key: string]: any } | undefined"
2206
+ "text": "string"
1967
2207
  },
1968
- "description": "Additional ARIA attributes to pass to the inner button/anchor element.",
1969
- "fieldName": "configAria"
2208
+ "default": "'Total'",
2209
+ "description": "Caption under the total in the centre.",
2210
+ "fieldName": "centerLabel"
1970
2211
  },
1971
2212
  {
1972
- "name": "skeleton",
2213
+ "name": "data",
1973
2214
  "type": {
1974
- "text": "boolean"
2215
+ "text": "ChartPieItem[]"
1975
2216
  },
1976
- "default": "false",
1977
- "description": "When true, renders the chip in a loading skeleton state.",
1978
- "fieldName": "skeleton"
2217
+ "default": "[]",
2218
+ "description": "Slices to draw.",
2219
+ "fieldName": "data",
2220
+ "inheritedFrom": {
2221
+ "name": "ChartPie",
2222
+ "module": "src/chart-pie/chart-pie.ts"
2223
+ }
1979
2224
  },
1980
2225
  {
1981
- "name": "selected",
2226
+ "name": "show-labels",
1982
2227
  "type": {
1983
2228
  "text": "boolean"
1984
2229
  },
1985
2230
  "default": "false",
1986
- "description": "When true, the chip is in the selected/pressed state.",
1987
- "fieldName": "selected"
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
+ }
1988
2237
  },
1989
2238
  {
1990
- "name": "throttleDelay",
2239
+ "name": "height",
1991
2240
  "type": {
1992
- "text": "number | undefined"
2241
+ "text": "number"
1993
2242
  },
1994
- "description": "Sets the delay for throttle in milliseconds. When null (default), no throttle is applied.",
1995
- "fieldName": "throttleDelay",
2243
+ "default": "300",
2244
+ "description": "Height of the plot in pixels. The width follows the container.",
2245
+ "fieldName": "height",
1996
2246
  "inheritedFrom": {
1997
- "name": "mixinBaseButton",
1998
- "module": "src/button/base-button/base-button.ts"
2247
+ "name": "ChartBase",
2248
+ "module": "src/__internal/chart/chart-base.ts"
1999
2249
  }
2000
2250
  },
2001
2251
  {
2002
- "name": "tooltip",
2252
+ "name": "label",
2003
2253
  "type": {
2004
- "text": "string | undefined"
2254
+ "text": "string"
2005
2255
  },
2006
- "description": "Optional tooltip text displayed on hover.",
2007
- "fieldName": "tooltip"
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
+ }
2008
2263
  },
2009
2264
  {
2010
- "name": "variant",
2265
+ "name": "loading",
2011
2266
  "type": {
2012
- "text": "string"
2267
+ "text": "boolean"
2013
2268
  },
2014
- "default": "''",
2015
- "fieldName": "variant",
2269
+ "default": "false",
2270
+ "description": "Shows a skeleton while data loads.",
2271
+ "fieldName": "loading",
2016
2272
  "inheritedFrom": {
2017
- "name": "mixinBaseButton",
2018
- "module": "src/button/base-button/base-button.ts"
2273
+ "name": "ChartBase",
2274
+ "module": "src/__internal/chart/chart-base.ts"
2019
2275
  }
2020
2276
  },
2021
2277
  {
2022
- "name": "color",
2278
+ "name": "show-legend",
2023
2279
  "type": {
2024
- "text": "string"
2280
+ "text": "boolean"
2025
2281
  },
2026
- "default": "''",
2027
- "fieldName": "color",
2282
+ "default": "false",
2283
+ "description": "Shows the legend even for a single series.",
2284
+ "fieldName": "showLegend",
2028
2285
  "inheritedFrom": {
2029
- "name": "mixinBaseButton",
2030
- "module": "src/button/base-button/base-button.ts"
2286
+ "name": "ChartBase",
2287
+ "module": "src/__internal/chart/chart-base.ts"
2031
2288
  }
2032
2289
  },
2033
2290
  {
2034
- "name": "disabled",
2291
+ "name": "hide-legend",
2035
2292
  "type": {
2036
2293
  "text": "boolean"
2037
2294
  },
2038
2295
  "default": "false",
2039
- "description": "When `true`, the button is disabled and cannot be interacted with. Reflects to the `disabled` attribute. Defaults to `false`.",
2040
- "fieldName": "disabled",
2296
+ "description": "Hides the legend.",
2297
+ "fieldName": "hideLegend",
2041
2298
  "inheritedFrom": {
2042
- "name": "mixinBaseButton",
2043
- "module": "src/button/base-button/base-button.ts"
2299
+ "name": "ChartBase",
2300
+ "module": "src/__internal/chart/chart-base.ts"
2044
2301
  }
2045
2302
  },
2046
2303
  {
2047
- "name": "soft-disabled",
2304
+ "name": "hide-tooltip",
2048
2305
  "type": {
2049
2306
  "text": "boolean"
2050
2307
  },
2051
2308
  "default": "false",
2052
- "description": "When `true`, the button is visually styled as disabled and cannot be interacted with, but remains focusable.\nUse this in combination with `disabledReason` to communicate why the button is unavailable.\nReflects to the `soft-disabled` attribute. Defaults to `false`.",
2053
- "fieldName": "softDisabled",
2309
+ "description": "Hides the tooltip.",
2310
+ "fieldName": "hideTooltip",
2054
2311
  "inheritedFrom": {
2055
- "name": "mixinBaseButton",
2056
- "module": "src/button/base-button/base-button.ts"
2312
+ "name": "ChartBase",
2313
+ "module": "src/__internal/chart/chart-base.ts"
2057
2314
  }
2058
2315
  },
2059
2316
  {
2060
- "name": "disabled-reason",
2317
+ "name": "disable-animation",
2061
2318
  "type": {
2062
- "text": "string"
2319
+ "text": "boolean"
2063
2320
  },
2064
- "default": "''",
2065
- "description": "A human-readable explanation of why the button is disabled or soft-disabled.\nRendered as a visually hidden tooltip and linked via `aria-describedby` for accessibility.\nMaps to the `disabled-reason` attribute.",
2066
- "fieldName": "disabledReason",
2321
+ "default": "false",
2322
+ "description": "Turns off enter and update animations. They are also off when the user prefers reduced motion.",
2323
+ "fieldName": "disableAnimation",
2067
2324
  "inheritedFrom": {
2068
- "name": "mixinBaseButton",
2069
- "module": "src/button/base-button/base-button.ts"
2325
+ "name": "ChartBase",
2326
+ "module": "src/__internal/chart/chart-base.ts"
2070
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"
2071
2360
  },
2072
2361
  {
2073
- "name": "href",
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",
2074
2405
  "type": {
2075
- "text": "string | undefined"
2406
+ "text": "CustomEvent"
2076
2407
  },
2077
- "fieldName": "href",
2078
2408
  "inheritedFrom": {
2079
- "name": "mixinHyperlink",
2080
- "module": "src/__internal/mixins/hyperlink.ts"
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'"
2081
2426
  }
2082
2427
  },
2083
2428
  {
2084
- "name": "target",
2429
+ "name": "show-dots",
2085
2430
  "type": {
2086
- "text": "'_self' | '_parent' | '_blank' | '_top' | string"
2431
+ "text": "boolean"
2087
2432
  },
2088
- "default": "'_self'",
2089
- "fieldName": "target",
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",
2090
2445
  "inheritedFrom": {
2091
- "name": "mixinHyperlink",
2092
- "module": "src/__internal/mixins/hyperlink.ts"
2446
+ "name": "CartesianChart",
2447
+ "module": "src/__internal/chart/cartesian-chart.ts"
2093
2448
  }
2094
2449
  },
2095
2450
  {
2096
- "name": "rel",
2451
+ "name": "config",
2097
2452
  "type": {
2098
- "text": "string"
2453
+ "text": "ChartConfig"
2099
2454
  },
2100
- "default": "''",
2101
- "fieldName": "rel",
2455
+ "default": "{}",
2456
+ "description": "Series to plot, keyed by data field, with optional label and color. Defaults to every numeric field.",
2457
+ "fieldName": "config",
2102
2458
  "inheritedFrom": {
2103
- "name": "mixinHyperlink",
2104
- "module": "src/__internal/mixins/hyperlink.ts"
2459
+ "name": "CartesianChart",
2460
+ "module": "src/__internal/chart/cartesian-chart.ts"
2105
2461
  }
2106
2462
  },
2107
2463
  {
2108
- "name": "download",
2464
+ "name": "index",
2109
2465
  "type": {
2110
2466
  "text": "string"
2111
2467
  },
2112
2468
  "default": "''",
2113
- "fieldName": "download",
2469
+ "description": "Data field that holds the category label, for example `month`.",
2470
+ "fieldName": "index",
2114
2471
  "inheritedFrom": {
2115
- "name": "mixinHyperlink",
2116
- "module": "src/__internal/mixins/hyperlink.ts"
2472
+ "name": "CartesianChart",
2473
+ "module": "src/__internal/chart/cartesian-chart.ts"
2117
2474
  }
2118
- }
2119
- ],
2120
- "mixins": [
2475
+ },
2121
2476
  {
2122
- "name": "mixinBaseButton",
2123
- "package": "@/button/base-button/base-button.js"
2477
+ "name": "hide-grid",
2478
+ "type": {
2479
+ "text": "boolean"
2480
+ },
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
+ }
2124
2488
  },
2125
2489
  {
2126
- "name": "mixinHyperlink",
2127
- "package": "@/__internal/mixins/hyperlink.js"
2490
+ "name": "hide-category-axis",
2491
+ "type": {
2492
+ "text": "boolean"
2493
+ },
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
+ }
2128
2501
  },
2129
2502
  {
2130
- "name": "mixinDelegatesAria",
2131
- "package": "@/__internal/aria/delegate.js"
2503
+ "name": "hide-value-axis",
2504
+ "type": {
2505
+ "text": "boolean"
2506
+ },
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
+ }
2132
2514
  },
2133
2515
  {
2134
- "name": "mixinElementInternals",
2135
- "package": "@/__internal/mixins/element-internals.js"
2136
- }
2137
- ],
2138
- "superclass": {
2139
- "name": "LitElement",
2140
- "package": "lit"
2141
- },
2142
- "tagName": "wc-chip",
2143
- "customElement": true,
2144
- "rawTag": {
2145
- "name": "chip",
2146
- "description": ""
2147
- }
2148
- }
2149
- },
2150
- {
2151
- "label": "Chip Set",
2152
- "tag": "wc-chip-set",
2153
- "rawTag": "chip-set",
2154
- "summary": "A layout container for wrapping chips.",
2155
- "tags": "layout",
2156
- "example": "```html\n<wc-chip-set>\n <wc-chip>One</wc-chip>\n <wc-chip>Two</wc-chip>\n</wc-chip-set>\n```",
2157
- "customElement": {
2158
- "kind": "class",
2159
- "description": "",
2160
- "superclass": {
2161
- "name": "LitElement",
2162
- "package": "lit"
2163
- },
2164
- "tagName": "wc-chip-set",
2165
- "customElement": true,
2166
- "rawTag": {
2167
- "name": "chip-set",
2168
- "description": ""
2169
- }
2170
- }
2171
- },
2172
- {
2173
- "label": "Circular Progress",
2174
- "tag": "wc-circular-progress",
2175
- "rawTag": "circular-progress",
2176
- "summary": "A circular progress indicator is a visual representation of progress toward a specific goal.",
2177
- "tags": "display",
2178
- "example": "```html\n<wc-circular-progress value=\"30\"></wc-circular-progress>\n```",
2179
- "customElement": {
2180
- "kind": "class",
2181
- "description": "",
2182
- "superclass": {
2183
- "name": "BaseProgress",
2184
- "module": "/src/progress/base-progress.js"
2185
- },
2186
- "tagName": "wc-circular-progress",
2187
- "customElement": true,
2188
- "rawTag": {
2189
- "name": "circular-progress",
2190
- "description": ""
2191
- },
2192
- "attributes": [
2516
+ "name": "height",
2517
+ "type": {
2518
+ "text": "number"
2519
+ },
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
+ }
2527
+ },
2193
2528
  {
2194
- "name": "value",
2529
+ "name": "label",
2195
2530
  "type": {
2196
- "text": "number | undefined"
2531
+ "text": "string"
2197
2532
  },
2198
- "description": "The current value.",
2199
- "fieldName": "value",
2533
+ "default": "''",
2534
+ "description": "Accessible name of the chart, read by screen readers.",
2535
+ "fieldName": "label",
2200
2536
  "inheritedFrom": {
2201
- "name": "BaseProgress",
2202
- "module": "src/progress/base-progress.ts"
2537
+ "name": "ChartBase",
2538
+ "module": "src/__internal/chart/chart-base.ts"
2203
2539
  }
2204
2540
  },
2205
2541
  {
2206
- "name": "indeterminate",
2542
+ "name": "loading",
2207
2543
  "type": {
2208
2544
  "text": "boolean"
2209
2545
  },
2210
2546
  "default": "false",
2211
- "fieldName": "indeterminate",
2547
+ "description": "Shows a skeleton while data loads.",
2548
+ "fieldName": "loading",
2212
2549
  "inheritedFrom": {
2213
- "name": "BaseProgress",
2214
- "module": "src/progress/base-progress.ts"
2550
+ "name": "ChartBase",
2551
+ "module": "src/__internal/chart/chart-base.ts"
2215
2552
  }
2216
2553
  },
2217
2554
  {
2218
- "name": "label",
2555
+ "name": "show-legend",
2219
2556
  "type": {
2220
- "text": "string | undefined"
2557
+ "text": "boolean"
2221
2558
  },
2222
- "description": "A label describing the progress bar.",
2223
- "fieldName": "label",
2559
+ "default": "false",
2560
+ "description": "Shows the legend even for a single series.",
2561
+ "fieldName": "showLegend",
2224
2562
  "inheritedFrom": {
2225
- "name": "BaseProgress",
2226
- "module": "src/progress/base-progress.ts"
2563
+ "name": "ChartBase",
2564
+ "module": "src/__internal/chart/chart-base.ts"
2227
2565
  }
2228
2566
  },
2229
2567
  {
2230
- "name": "helper-text",
2568
+ "name": "hide-legend",
2231
2569
  "type": {
2232
- "text": "string | undefined"
2570
+ "text": "boolean"
2233
2571
  },
2234
- "fieldName": "helperText",
2572
+ "default": "false",
2573
+ "description": "Hides the legend.",
2574
+ "fieldName": "hideLegend",
2235
2575
  "inheritedFrom": {
2236
- "name": "BaseProgress",
2237
- "module": "src/progress/base-progress.ts"
2576
+ "name": "ChartBase",
2577
+ "module": "src/__internal/chart/chart-base.ts"
2238
2578
  }
2239
2579
  },
2240
2580
  {
2241
- "name": "inline",
2581
+ "name": "hide-tooltip",
2242
2582
  "type": {
2243
2583
  "text": "boolean"
2244
2584
  },
2245
2585
  "default": "false",
2246
- "fieldName": "inline",
2586
+ "description": "Hides the tooltip.",
2587
+ "fieldName": "hideTooltip",
2247
2588
  "inheritedFrom": {
2248
- "name": "BaseProgress",
2249
- "module": "src/progress/base-progress.ts"
2589
+ "name": "ChartBase",
2590
+ "module": "src/__internal/chart/chart-base.ts"
2250
2591
  }
2251
- }
2252
- ]
2253
- }
2254
- },
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
+ }
2605
+ }
2606
+ ],
2607
+ "superclass": {
2608
+ "name": "CartesianChart",
2609
+ "module": "/src/__internal/chart/cartesian-chart.js"
2610
+ },
2611
+ "tagName": "wc-chart-line",
2612
+ "customElement": true,
2613
+ "rawTag": {
2614
+ "name": "chart-line",
2615
+ "description": ""
2616
+ }
2617
+ }
2618
+ },
2619
+ {
2620
+ "label": "Pie Chart",
2621
+ "tag": "wc-chart-pie",
2622
+ "rawTag": "chart-pie",
2623
+ "summary": "Shows how parts make up a whole. Best with a handful of slices.",
2624
+ "tags": "charts",
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`.",
2630
+ "customElement": {
2631
+ "kind": "class",
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
+ ],
2680
+ "attributes": [
2681
+ {
2682
+ "name": "data",
2683
+ "type": {
2684
+ "text": "ChartPieItem[]"
2685
+ },
2686
+ "default": "[]",
2687
+ "description": "Slices to draw.",
2688
+ "fieldName": "data"
2689
+ },
2690
+ {
2691
+ "name": "inner-radius",
2692
+ "type": {
2693
+ "text": "number"
2694
+ },
2695
+ "default": "0",
2696
+ "description": "Size of the hole as a fraction of the radius, from 0 (pie) to 0.9.",
2697
+ "fieldName": "innerRadius"
2698
+ },
2699
+ {
2700
+ "name": "show-labels",
2701
+ "type": {
2702
+ "text": "boolean"
2703
+ },
2704
+ "default": "false",
2705
+ "description": "Prints each slice's percentage inside it when it fits.",
2706
+ "fieldName": "showLabels"
2707
+ },
2708
+ {
2709
+ "name": "height",
2710
+ "type": {
2711
+ "text": "number"
2712
+ },
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
+ },
2721
+ {
2722
+ "name": "label",
2723
+ "type": {
2724
+ "text": "string"
2725
+ },
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
+ }
2733
+ },
2734
+ {
2735
+ "name": "loading",
2736
+ "type": {
2737
+ "text": "boolean"
2738
+ },
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
+ }
2746
+ },
2747
+ {
2748
+ "name": "show-legend",
2749
+ "type": {
2750
+ "text": "boolean"
2751
+ },
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
+ }
2759
+ },
2760
+ {
2761
+ "name": "hide-legend",
2762
+ "type": {
2763
+ "text": "boolean"
2764
+ },
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
+ }
2772
+ },
2773
+ {
2774
+ "name": "hide-tooltip",
2775
+ "type": {
2776
+ "text": "boolean"
2777
+ },
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
+ }
2785
+ },
2786
+ {
2787
+ "name": "disable-animation",
2788
+ "type": {
2789
+ "text": "boolean"
2790
+ },
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
+ }
2798
+ }
2799
+ ],
2800
+ "superclass": {
2801
+ "name": "ChartBase",
2802
+ "module": "/src/__internal/chart/chart-base.js"
2803
+ },
2804
+ "tagName": "wc-chart-pie",
2805
+ "customElement": true,
2806
+ "rawTag": {
2807
+ "name": "chart-pie",
2808
+ "description": ""
2809
+ }
2810
+ }
2811
+ },
2812
+ {
2813
+ "label": "Checkbox",
2814
+ "tag": "wc-checkbox",
2815
+ "rawTag": "checkbox",
2816
+ "summary": "Captures boolean input with an optional indeterminate mode.",
2817
+ "overview": "<p>Checkboxes allow users to select one or more items from a set. Checkboxes can turn an option on or off.</p>\n<p>checkboxes feature a smooth animation and clear visual states for checked, unchecked, and indeterminate.</p>\n<p>The checkbox is form-associated: when <code>checked</code>, it submits <code>on</code> under its <code>name</code>.</p>",
2818
+ "cssprop": "--checkbox-state-layer-size: Size of the state layer for touch target.",
2819
+ "fires": "focus - Dispatched when the checkbox receives focus.",
2820
+ "tags": "input, form",
2821
+ "example": "```html\n<wc-checkbox label=\"Accept terms\" checked></wc-checkbox>\n```",
2822
+ "customElement": {
2823
+ "kind": "class",
2824
+ "description": "",
2825
+ "cssProperties": [
2826
+ {
2827
+ "description": "Size of the checkbox container.",
2828
+ "name": "--checkbox-size:"
2829
+ },
2830
+ {
2831
+ "description": "Color of the checkbox when selected.",
2832
+ "name": "--checkbox-selected-color:"
2833
+ },
2834
+ {
2835
+ "description": "Color of the checkbox border when unselected.",
2836
+ "name": "--checkbox-unselected-color:"
2837
+ },
2838
+ {
2839
+ "description": "Color of the checkmark icon.",
2840
+ "name": "--checkbox-checkmark-color:"
2841
+ },
2842
+ {
2843
+ "description": "Size of the state layer for touch target.",
2844
+ "name": "--checkbox-state-layer-size:"
2845
+ }
2846
+ ],
2847
+ "events": [
2848
+ {
2849
+ "type": {
2850
+ "text": "CustomEvent"
2851
+ },
2852
+ "description": "Dispatched when the checkbox is toggled. Detail: `{ checked, value, originalEvent }`.",
2853
+ "name": "change"
2854
+ },
2855
+ {
2856
+ "type": {
2857
+ "text": "CustomEvent"
2858
+ },
2859
+ "description": "Dispatched when the checkbox loses focus.",
2860
+ "name": "blur"
2861
+ },
2862
+ {
2863
+ "type": {
2864
+ "text": "CustomEvent"
2865
+ },
2866
+ "description": "Dispatched when the checkbox receives focus.",
2867
+ "name": "focus"
2868
+ }
2869
+ ],
2870
+ "attributes": [
2871
+ {
2872
+ "name": "label",
2873
+ "type": {
2874
+ "text": "string"
2875
+ },
2876
+ "default": "''",
2877
+ "description": "The checkbox label.",
2878
+ "fieldName": "label"
2879
+ },
2880
+ {
2881
+ "name": "checked",
2882
+ "type": {
2883
+ "text": "boolean"
2884
+ },
2885
+ "default": "false",
2886
+ "description": "Whether the checkbox is checked.",
2887
+ "fieldName": "checked"
2888
+ },
2889
+ {
2890
+ "name": "value",
2891
+ "type": {
2892
+ "text": "boolean"
2893
+ },
2894
+ "deprecated": "Use `checked`. Kept as an alias of `checked`.",
2895
+ "fieldName": "value"
2896
+ },
2897
+ {
2898
+ "name": "indeterminate",
2899
+ "type": {
2900
+ "text": "boolean"
2901
+ },
2902
+ "default": "false",
2903
+ "description": "If true, displays the checkbox in an indeterminate state.",
2904
+ "fieldName": "indeterminate"
2905
+ },
2906
+ {
2907
+ "name": "rounded",
2908
+ "type": {
2909
+ "text": "boolean"
2910
+ },
2911
+ "default": "false",
2912
+ "description": "If true, the checkbox has rounded corners. Defaults to `false`.",
2913
+ "fieldName": "rounded"
2914
+ },
2915
+ {
2916
+ "name": "size",
2917
+ "type": {
2918
+ "text": "'sm' | 'md' | 'lg'"
2919
+ },
2920
+ "default": "'md'",
2921
+ "description": "The checkbox size.\nPossible values are: `\"sm\"`, `\"md\"`, `\"lg\"`. Defaults to `\"md\"`.",
2922
+ "fieldName": "size"
2923
+ },
2924
+ {
2925
+ "name": "required",
2926
+ "type": {
2927
+ "text": "boolean"
2928
+ },
2929
+ "default": "false",
2930
+ "description": "If true, required icon is shown. Defaults to `false`.",
2931
+ "fieldName": "required"
2932
+ },
2933
+ {
2934
+ "name": "readonly",
2935
+ "type": {
2936
+ "text": "boolean"
2937
+ },
2938
+ "default": "false",
2939
+ "description": "If true, the checkbox is readonly. Defaults to `false`.",
2940
+ "fieldName": "readonly"
2941
+ },
2942
+ {
2943
+ "name": "configAria",
2944
+ "type": {
2945
+ "text": "Record<string, string>"
2946
+ },
2947
+ "default": "{}",
2948
+ "description": "Configuration object for aria attributes.",
2949
+ "fieldName": "configAria"
2950
+ },
2951
+ {
2952
+ "name": "name",
2953
+ "fieldName": "name",
2954
+ "inheritedFrom": {
2955
+ "name": "mixinFormAssociated",
2956
+ "module": "src/__internal/mixins/form-associated.ts"
2957
+ }
2958
+ },
2959
+ {
2960
+ "name": "disabled",
2961
+ "fieldName": "disabled",
2962
+ "inheritedFrom": {
2963
+ "name": "mixinFormAssociated",
2964
+ "module": "src/__internal/mixins/form-associated.ts"
2965
+ }
2966
+ }
2967
+ ],
2968
+ "mixins": [
2969
+ {
2970
+ "name": "mixinFormAssociated",
2971
+ "package": "@/__internal/mixins/form-associated.js"
2972
+ },
2973
+ {
2974
+ "name": "mixinElementInternals",
2975
+ "package": "@/__internal/mixins/element-internals.js"
2976
+ }
2977
+ ],
2978
+ "superclass": {
2979
+ "name": "LitElement",
2980
+ "package": "lit"
2981
+ },
2982
+ "tagName": "wc-checkbox",
2983
+ "customElement": true,
2984
+ "rawTag": {
2985
+ "name": "checkbox",
2986
+ "description": ""
2987
+ }
2988
+ }
2989
+ },
2990
+ {
2991
+ "label": "Chip",
2992
+ "tag": "wc-chip",
2993
+ "rawTag": "chip",
2994
+ "summary": "Chip component for displaying compact information with optional actions.",
2995
+ "tags": "display",
2996
+ "fires": "tag--dismiss - Deprecated alias of `dismiss`, fired alongside it.",
2997
+ "example": "```html\n<wc-chip>Chip content</wc-chip>\n```",
2998
+ "customElement": {
2999
+ "kind": "class",
3000
+ "description": "",
3001
+ "events": [
3002
+ {
3003
+ "name": "dismiss",
3004
+ "type": {
3005
+ "text": "CustomEvent"
3006
+ },
3007
+ "description": "Dispatched when the dismiss button of a `dismissible` chip is clicked."
3008
+ },
3009
+ {
3010
+ "name": "tag--dismiss",
3011
+ "type": {
3012
+ "text": "CustomEvent"
3013
+ },
3014
+ "description": "Deprecated alias of `dismiss`, fired alongside it."
3015
+ }
3016
+ ],
3017
+ "attributes": [
3018
+ {
3019
+ "name": "dismissible",
3020
+ "type": {
3021
+ "text": "boolean"
3022
+ },
3023
+ "default": "false",
3024
+ "description": "If true, the tag will have a close icon.",
3025
+ "fieldName": "dismissible"
3026
+ },
3027
+ {
3028
+ "name": "configAria",
3029
+ "type": {
3030
+ "text": "{ [key: string]: any } | undefined"
3031
+ },
3032
+ "description": "Additional ARIA attributes to pass to the inner button/anchor element.",
3033
+ "fieldName": "configAria"
3034
+ },
3035
+ {
3036
+ "name": "skeleton",
3037
+ "type": {
3038
+ "text": "boolean"
3039
+ },
3040
+ "default": "false",
3041
+ "description": "When true, renders the chip in a loading skeleton state.",
3042
+ "fieldName": "skeleton"
3043
+ },
3044
+ {
3045
+ "name": "selected",
3046
+ "type": {
3047
+ "text": "boolean"
3048
+ },
3049
+ "default": "false",
3050
+ "description": "When true, the chip is in the selected/pressed state.",
3051
+ "fieldName": "selected"
3052
+ },
3053
+ {
3054
+ "name": "throttleDelay",
3055
+ "type": {
3056
+ "text": "number | undefined"
3057
+ },
3058
+ "description": "Sets the delay for throttle in milliseconds. When null (default), no throttle is applied.",
3059
+ "fieldName": "throttleDelay",
3060
+ "inheritedFrom": {
3061
+ "name": "mixinBaseButton",
3062
+ "module": "src/button/base-button/base-button.ts"
3063
+ }
3064
+ },
3065
+ {
3066
+ "name": "tooltip",
3067
+ "type": {
3068
+ "text": "string | undefined"
3069
+ },
3070
+ "description": "Optional tooltip text displayed on hover.",
3071
+ "fieldName": "tooltip"
3072
+ },
3073
+ {
3074
+ "name": "variant",
3075
+ "type": {
3076
+ "text": "string"
3077
+ },
3078
+ "default": "''",
3079
+ "fieldName": "variant",
3080
+ "inheritedFrom": {
3081
+ "name": "mixinBaseButton",
3082
+ "module": "src/button/base-button/base-button.ts"
3083
+ }
3084
+ },
3085
+ {
3086
+ "name": "color",
3087
+ "type": {
3088
+ "text": "string"
3089
+ },
3090
+ "default": "''",
3091
+ "fieldName": "color",
3092
+ "inheritedFrom": {
3093
+ "name": "mixinBaseButton",
3094
+ "module": "src/button/base-button/base-button.ts"
3095
+ }
3096
+ },
3097
+ {
3098
+ "name": "disabled",
3099
+ "type": {
3100
+ "text": "boolean"
3101
+ },
3102
+ "default": "false",
3103
+ "description": "When `true`, the button is disabled and cannot be interacted with. Reflects to the `disabled` attribute. Defaults to `false`.",
3104
+ "fieldName": "disabled",
3105
+ "inheritedFrom": {
3106
+ "name": "mixinBaseButton",
3107
+ "module": "src/button/base-button/base-button.ts"
3108
+ }
3109
+ },
3110
+ {
3111
+ "name": "soft-disabled",
3112
+ "type": {
3113
+ "text": "boolean"
3114
+ },
3115
+ "default": "false",
3116
+ "description": "When `true`, the button is visually styled as disabled and cannot be interacted with, but remains focusable.\nUse this in combination with `disabledReason` to communicate why the button is unavailable.\nReflects to the `soft-disabled` attribute. Defaults to `false`.",
3117
+ "fieldName": "softDisabled",
3118
+ "inheritedFrom": {
3119
+ "name": "mixinBaseButton",
3120
+ "module": "src/button/base-button/base-button.ts"
3121
+ }
3122
+ },
3123
+ {
3124
+ "name": "disabled-reason",
3125
+ "type": {
3126
+ "text": "string"
3127
+ },
3128
+ "default": "''",
3129
+ "description": "A human-readable explanation of why the button is disabled or soft-disabled.\nRendered as a visually hidden tooltip and linked via `aria-describedby` for accessibility.\nMaps to the `disabled-reason` attribute.",
3130
+ "fieldName": "disabledReason",
3131
+ "inheritedFrom": {
3132
+ "name": "mixinBaseButton",
3133
+ "module": "src/button/base-button/base-button.ts"
3134
+ }
3135
+ },
3136
+ {
3137
+ "name": "href",
3138
+ "type": {
3139
+ "text": "string | undefined"
3140
+ },
3141
+ "fieldName": "href",
3142
+ "inheritedFrom": {
3143
+ "name": "mixinHyperlink",
3144
+ "module": "src/__internal/mixins/hyperlink.ts"
3145
+ }
3146
+ },
3147
+ {
3148
+ "name": "target",
3149
+ "type": {
3150
+ "text": "'_self' | '_parent' | '_blank' | '_top' | string"
3151
+ },
3152
+ "default": "'_self'",
3153
+ "fieldName": "target",
3154
+ "inheritedFrom": {
3155
+ "name": "mixinHyperlink",
3156
+ "module": "src/__internal/mixins/hyperlink.ts"
3157
+ }
3158
+ },
3159
+ {
3160
+ "name": "rel",
3161
+ "type": {
3162
+ "text": "string"
3163
+ },
3164
+ "default": "''",
3165
+ "fieldName": "rel",
3166
+ "inheritedFrom": {
3167
+ "name": "mixinHyperlink",
3168
+ "module": "src/__internal/mixins/hyperlink.ts"
3169
+ }
3170
+ },
3171
+ {
3172
+ "name": "download",
3173
+ "type": {
3174
+ "text": "string"
3175
+ },
3176
+ "default": "''",
3177
+ "fieldName": "download",
3178
+ "inheritedFrom": {
3179
+ "name": "mixinHyperlink",
3180
+ "module": "src/__internal/mixins/hyperlink.ts"
3181
+ }
3182
+ }
3183
+ ],
3184
+ "mixins": [
3185
+ {
3186
+ "name": "mixinBaseButton",
3187
+ "package": "@/button/base-button/base-button.js"
3188
+ },
3189
+ {
3190
+ "name": "mixinHyperlink",
3191
+ "package": "@/__internal/mixins/hyperlink.js"
3192
+ },
3193
+ {
3194
+ "name": "mixinDelegatesAria",
3195
+ "package": "@/__internal/aria/delegate.js"
3196
+ },
3197
+ {
3198
+ "name": "mixinElementInternals",
3199
+ "package": "@/__internal/mixins/element-internals.js"
3200
+ }
3201
+ ],
3202
+ "superclass": {
3203
+ "name": "LitElement",
3204
+ "package": "lit"
3205
+ },
3206
+ "tagName": "wc-chip",
3207
+ "customElement": true,
3208
+ "rawTag": {
3209
+ "name": "chip",
3210
+ "description": ""
3211
+ }
3212
+ }
3213
+ },
3214
+ {
3215
+ "label": "Chip Set",
3216
+ "tag": "wc-chip-set",
3217
+ "rawTag": "chip-set",
3218
+ "summary": "A layout container for wrapping chips.",
3219
+ "tags": "layout",
3220
+ "example": "```html\n<wc-chip-set>\n <wc-chip>One</wc-chip>\n <wc-chip>Two</wc-chip>\n</wc-chip-set>\n```",
3221
+ "customElement": {
3222
+ "kind": "class",
3223
+ "description": "",
3224
+ "superclass": {
3225
+ "name": "LitElement",
3226
+ "package": "lit"
3227
+ },
3228
+ "tagName": "wc-chip-set",
3229
+ "customElement": true,
3230
+ "rawTag": {
3231
+ "name": "chip-set",
3232
+ "description": ""
3233
+ }
3234
+ }
3235
+ },
3236
+ {
3237
+ "label": "Circular Progress",
3238
+ "tag": "wc-circular-progress",
3239
+ "rawTag": "circular-progress",
3240
+ "summary": "A circular progress indicator is a visual representation of progress toward a specific goal.",
3241
+ "tags": "display",
3242
+ "example": "```html\n<wc-circular-progress value=\"30\"></wc-circular-progress>\n```",
3243
+ "customElement": {
3244
+ "kind": "class",
3245
+ "description": "",
3246
+ "superclass": {
3247
+ "name": "BaseProgress",
3248
+ "module": "/src/progress/base-progress.js"
3249
+ },
3250
+ "tagName": "wc-circular-progress",
3251
+ "customElement": true,
3252
+ "rawTag": {
3253
+ "name": "circular-progress",
3254
+ "description": ""
3255
+ },
3256
+ "attributes": [
3257
+ {
3258
+ "name": "value",
3259
+ "type": {
3260
+ "text": "number | undefined"
3261
+ },
3262
+ "description": "The current value.",
3263
+ "fieldName": "value",
3264
+ "inheritedFrom": {
3265
+ "name": "BaseProgress",
3266
+ "module": "src/progress/base-progress.ts"
3267
+ }
3268
+ },
3269
+ {
3270
+ "name": "indeterminate",
3271
+ "type": {
3272
+ "text": "boolean"
3273
+ },
3274
+ "default": "false",
3275
+ "fieldName": "indeterminate",
3276
+ "inheritedFrom": {
3277
+ "name": "BaseProgress",
3278
+ "module": "src/progress/base-progress.ts"
3279
+ }
3280
+ },
3281
+ {
3282
+ "name": "label",
3283
+ "type": {
3284
+ "text": "string | undefined"
3285
+ },
3286
+ "description": "A label describing the progress bar.",
3287
+ "fieldName": "label",
3288
+ "inheritedFrom": {
3289
+ "name": "BaseProgress",
3290
+ "module": "src/progress/base-progress.ts"
3291
+ }
3292
+ },
3293
+ {
3294
+ "name": "helper-text",
3295
+ "type": {
3296
+ "text": "string | undefined"
3297
+ },
3298
+ "fieldName": "helperText",
3299
+ "inheritedFrom": {
3300
+ "name": "BaseProgress",
3301
+ "module": "src/progress/base-progress.ts"
3302
+ }
3303
+ },
3304
+ {
3305
+ "name": "inline",
3306
+ "type": {
3307
+ "text": "boolean"
3308
+ },
3309
+ "default": "false",
3310
+ "fieldName": "inline",
3311
+ "inheritedFrom": {
3312
+ "name": "BaseProgress",
3313
+ "module": "src/progress/base-progress.ts"
3314
+ }
3315
+ }
3316
+ ]
3317
+ }
3318
+ },
3319
+ {
3320
+ "label": "Clock",
3321
+ "tag": "wc-clock",
3322
+ "rawTag": "clock",
3323
+ "summary": "Displays the current time in a given timezone.",
3324
+ "overview": "- Clocks are used to display the current time in a specified timezone.\n - They can be displayed in various formats, including 12-hour and 24-hour time.",
3325
+ "tags": "display",
3326
+ "example": "```html\n<wc-clock></wc-clock>\n```",
3327
+ "customElement": {
3328
+ "kind": "class",
3329
+ "description": "",
3330
+ "attributes": [
3331
+ {
3332
+ "name": "timezone",
3333
+ "type": {
3334
+ "text": "string | undefined"
3335
+ },
3336
+ "fieldName": "timezone"
3337
+ }
3338
+ ],
3339
+ "superclass": {
3340
+ "name": "LitElement",
3341
+ "package": "lit"
3342
+ },
3343
+ "tagName": "wc-clock",
3344
+ "customElement": true,
3345
+ "rawTag": {
3346
+ "name": "clock",
3347
+ "description": ""
3348
+ }
3349
+ }
3350
+ },
3351
+ {
3352
+ "label": "Code Editor",
3353
+ "tag": "wc-code-editor",
3354
+ "rawTag": "code-editor",
3355
+ "summary": "A Monaco-based code editing component with syntax highlighting, completions and debugging marks.",
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.",
3360
+ "fires": "breakpoint-toggle - Dispatched when the gutter of a line is clicked, with `breakpoint-gutter` set. The component does not change `breakpoints` itself.",
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```",
3362
+ "tags": "input, editor",
3363
+ "customElement": {
3364
+ "kind": "class",
3365
+ "description": "",
3366
+ "cssProperties": [
3367
+ {
3368
+ "description": "Height of the editing area. Defaults to 300px. Ignored with `fill`.",
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"
3422
+ }
3423
+ ],
3424
+ "events": [
3425
+ {
3426
+ "name": "breakpoint-toggle",
3427
+ "type": {
3428
+ "text": "CustomEvent<{line: number}>"
3429
+ },
3430
+ "description": "Dispatched when the gutter of a line is clicked, with `breakpoint-gutter` set. The component does not change `breakpoints` itself."
3431
+ },
3432
+ {
3433
+ "name": "copied",
3434
+ "type": {
3435
+ "text": "CustomEvent<{value: string}>"
3436
+ },
3437
+ "description": "Dispatched after the copy button copies the content."
3438
+ },
3439
+ {
3440
+ "type": {
3441
+ "text": "Event"
3442
+ },
3443
+ "description": "Dispatched when the user edits the content.",
3444
+ "name": "change"
3445
+ }
3446
+ ],
3447
+ "attributes": [
3448
+ {
3449
+ "name": "value",
3450
+ "type": {
3451
+ "text": "string"
3452
+ },
3453
+ "default": "''",
3454
+ "description": "The code shown in the editor. Updated as the user types.",
3455
+ "fieldName": "value"
3456
+ },
3457
+ {
3458
+ "name": "language",
3459
+ "type": {
3460
+ "text": "CodeEditorLanguage"
3461
+ },
3462
+ "default": "'javascript'",
3463
+ "description": "Language used for syntax highlighting. Can be changed after the editor loads.",
3464
+ "fieldName": "language",
3465
+ "expandedType": {
3466
+ "text": "'javascript' | 'typescript' | 'json' | 'html' | 'css' | 'scss' | 'markdown'"
3467
+ }
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
+ },
3478
+ {
3479
+ "name": "lib-source",
3480
+ "type": {
3481
+ "text": "string | undefined"
3482
+ },
3483
+ "description": "TypeScript declarations (a `.d.ts`) for completions in TypeScript and JavaScript, such as the modules the code may import.",
3484
+ "fieldName": "libSource"
3485
+ },
3486
+ {
3487
+ "name": "line-numbers",
3488
+ "type": {
3489
+ "text": "'off' | 'on'"
3490
+ },
3491
+ "default": "'on'",
3492
+ "description": "Whether line numbers show in the gutter.",
3493
+ "fieldName": "lineNumbers"
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
+ },
3513
+ {
3514
+ "name": "minimap",
3515
+ "type": {
3516
+ "text": "boolean"
3517
+ },
3518
+ "default": "false",
3519
+ "description": "Shows the minimap. Leave the attribute out to hide it.",
3520
+ "fieldName": "minimap"
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
+ },
3534
+ {
3535
+ "name": "hide-copy",
3536
+ "type": {
3537
+ "text": "boolean"
3538
+ },
3539
+ "default": "false",
3540
+ "description": "Hides the copy button.",
3541
+ "fieldName": "hideCopy"
3542
+ },
3543
+ {
3544
+ "name": "show-readonly-badge",
3545
+ "type": {
3546
+ "text": "boolean"
3547
+ },
3548
+ "default": "false",
3549
+ "description": "Shows a \"Read only\" badge while the editor is read-only or disabled.",
3550
+ "fieldName": "showReadonlyBadge"
3551
+ },
3552
+ {
3553
+ "name": "breakpoint-gutter",
3554
+ "type": {
3555
+ "text": "boolean"
3556
+ },
3557
+ "default": "false",
3558
+ "description": "Shows a gutter for breakpoints; a click there, or on a line number, fires `breakpoint-toggle`.",
3559
+ "fieldName": "breakpointGutter"
3560
+ },
3561
+ {
3562
+ "name": "current-line",
3563
+ "type": {
3564
+ "text": "number | undefined"
3565
+ },
3566
+ "description": "The line a debugger is paused at, marked and scrolled into view; none when unset.",
3567
+ "fieldName": "currentLine"
3568
+ },
3569
+ {
3570
+ "name": "fill",
3571
+ "type": {
3572
+ "text": "boolean"
3573
+ },
3574
+ "default": "false",
3575
+ "description": "Drops the frame and takes the height of the container instead of `--code-editor-height`.",
3576
+ "fieldName": "fill"
3577
+ },
3578
+ {
3579
+ "name": "name",
3580
+ "fieldName": "name",
3581
+ "inheritedFrom": {
3582
+ "name": "BaseInput",
3583
+ "module": "src/input/BaseInput.ts"
3584
+ }
3585
+ },
3586
+ {
3587
+ "name": "disabled",
3588
+ "fieldName": "disabled",
3589
+ "inheritedFrom": {
3590
+ "name": "BaseInput",
3591
+ "module": "src/input/BaseInput.ts"
3592
+ }
3593
+ },
3594
+ {
3595
+ "name": "readonly",
3596
+ "type": {
3597
+ "text": "boolean"
3598
+ },
3599
+ "default": "false",
3600
+ "fieldName": "readonly",
3601
+ "inheritedFrom": {
3602
+ "name": "BaseInput",
3603
+ "module": "src/input/BaseInput.ts"
3604
+ }
3605
+ },
3606
+ {
3607
+ "name": "required",
3608
+ "type": {
3609
+ "text": "boolean"
3610
+ },
3611
+ "default": "false",
3612
+ "fieldName": "required",
3613
+ "inheritedFrom": {
3614
+ "name": "BaseInput",
3615
+ "module": "src/input/BaseInput.ts"
3616
+ }
3617
+ },
3618
+ {
3619
+ "name": "skeleton",
3620
+ "type": {
3621
+ "text": "boolean"
3622
+ },
3623
+ "default": "false",
3624
+ "fieldName": "skeleton",
3625
+ "inheritedFrom": {
3626
+ "name": "BaseInput",
3627
+ "module": "src/input/BaseInput.ts"
3628
+ }
3629
+ }
3630
+ ],
3631
+ "superclass": {
3632
+ "name": "BaseInput",
3633
+ "module": "/src/input/BaseInput.js"
3634
+ },
3635
+ "tagName": "wc-code-editor",
3636
+ "customElement": true,
3637
+ "rawTag": {
3638
+ "name": "code-editor",
3639
+ "description": ""
3640
+ }
3641
+ }
3642
+ },
2255
3643
  {
2256
- "label": "Clock",
2257
- "tag": "wc-clock",
2258
- "rawTag": "clock",
2259
- "summary": "Displays the current time in a given timezone.",
2260
- "overview": "- Clocks are used to display the current time in a specified timezone.\n - They can be displayed in various formats, including 12-hour and 24-hour time.",
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.",
2261
3653
  "tags": "display",
2262
- "example": "```html\n<wc-clock></wc-clock>\n```",
2263
3654
  "customElement": {
2264
3655
  "kind": "class",
2265
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
+ ],
2266
3682
  "attributes": [
2267
3683
  {
2268
- "name": "timezone",
3684
+ "name": "selected-index",
2269
3685
  "type": {
2270
- "text": "string | undefined"
3686
+ "text": "number"
2271
3687
  },
2272
- "fieldName": "timezone"
3688
+ "default": "0",
3689
+ "description": "Index of the shown block.",
3690
+ "fieldName": "selectedIndex"
2273
3691
  }
2274
3692
  ],
2275
3693
  "superclass": {
2276
3694
  "name": "LitElement",
2277
3695
  "package": "lit"
2278
3696
  },
2279
- "tagName": "wc-clock",
3697
+ "tagName": "wc-code-group",
2280
3698
  "customElement": true,
2281
3699
  "rawTag": {
2282
- "name": "clock",
3700
+ "name": "code-group",
2283
3701
  "description": ""
2284
3702
  }
2285
3703
  }
2286
3704
  },
2287
3705
  {
2288
- "label": "Code Editor",
2289
- "tag": "wc-code-editor",
2290
- "rawTag": "code-editor",
2291
- "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.",
2294
- "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```",
2296
- "tags": "input, editor",
3706
+ "label": "Code Highlighter",
3707
+ "tag": "wc-code-highlighter",
3708
+ "rawTag": "code-highlighter",
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.",
3715
+ "tags": "display",
2297
3716
  "customElement": {
2298
3717
  "kind": "class",
2299
3718
  "description": "",
2300
3719
  "cssProperties": [
2301
3720
  {
2302
- "description": "Height of the editor. Defaults to 300px.",
2303
- "name": "--code-editor-height"
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"
2304
3767
  }
2305
3768
  ],
2306
- "events": [
3769
+ "cssParts": [
2307
3770
  {
2308
- "name": "breakpoint-toggle",
2309
- "type": {
2310
- "text": "CustomEvent<{line: number}>"
2311
- },
2312
- "description": "Dispatched when the gutter of a line is clicked, with `breakpoint-gutter` set. The component does not change `breakpoints` itself."
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"
2313
3807
  },
3808
+ {
3809
+ "description": "Extra action buttons, shown in the header or floating at the top end.",
3810
+ "name": "actions"
3811
+ }
3812
+ ],
3813
+ "events": [
2314
3814
  {
2315
3815
  "name": "copied",
2316
3816
  "type": {
2317
3817
  "text": "CustomEvent<{value: string}>"
2318
3818
  },
2319
- "description": "Dispatched after the copy button copies the content."
3819
+ "description": "Dispatched after the copy button copies the code."
2320
3820
  },
2321
3821
  {
3822
+ "name": "expanded-change",
2322
3823
  "type": {
2323
- "text": "Event"
3824
+ "text": "CustomEvent<{expanded: boolean}>"
2324
3825
  },
2325
- "description": "Dispatched when the user edits the content.",
2326
- "name": "change"
3826
+ "description": "Dispatched when a collapsible block is expanded or collapsed."
2327
3827
  }
2328
3828
  ],
2329
3829
  "attributes": [
2330
- {
2331
- "name": "value",
2332
- "type": {
2333
- "text": "string"
2334
- },
2335
- "default": "''",
2336
- "description": "The code shown in the editor. Updated as the user types.",
2337
- "fieldName": "value"
2338
- },
2339
3830
  {
2340
3831
  "name": "language",
2341
3832
  "type": {
2342
- "text": "CodeEditorLanguage"
3833
+ "text": "CodeHighlighterLanguage"
2343
3834
  },
2344
3835
  "default": "'javascript'",
2345
- "description": "Language used for syntax highlighting. Can be changed after the editor loads.",
3836
+ "description": "Language of the code. Unknown languages render as plain text.",
2346
3837
  "fieldName": "language",
2347
3838
  "expandedType": {
2348
- "text": "'javascript' | 'typescript' | 'json' | 'html' | 'css' | 'scss' | 'markdown'"
3839
+ "text": "BundledLanguage | SpecialLanguage"
2349
3840
  }
2350
3841
  },
2351
3842
  {
2352
- "name": "lib-source",
3843
+ "name": "value",
2353
3844
  "type": {
2354
- "text": "string | undefined"
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"
2355
3855
  },
2356
- "description": "TypeScript declarations (a `.d.ts`) for completions in TypeScript and JavaScript, such as the modules the code may import.",
2357
- "fieldName": "libSource"
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"
2358
3859
  },
2359
3860
  {
2360
- "name": "lineNumbers",
3861
+ "name": "label",
2361
3862
  "type": {
2362
- "text": "'off' | 'on'"
3863
+ "text": "string"
2363
3864
  },
2364
- "default": "'on'",
2365
- "description": "Whether line numbers show in the gutter.",
2366
- "fieldName": "lineNumbers"
3865
+ "default": "''",
3866
+ "description": "Header title, such as a file path. Shows the header.",
3867
+ "fieldName": "label"
2367
3868
  },
2368
3869
  {
2369
- "name": "minimap",
3870
+ "name": "line-numbers",
2370
3871
  "type": {
2371
3872
  "text": "boolean"
2372
3873
  },
2373
3874
  "default": "false",
2374
- "description": "Shows the minimap. Leave the attribute out to hide it.",
2375
- "fieldName": "minimap"
3875
+ "description": "Shows line numbers.",
3876
+ "fieldName": "lineNumbers"
2376
3877
  },
2377
3878
  {
2378
- "name": "hide-copy",
3879
+ "name": "start-line",
2379
3880
  "type": {
2380
- "text": "boolean"
3881
+ "text": "number"
2381
3882
  },
2382
- "default": "false",
2383
- "description": "Hides the copy button.",
2384
- "fieldName": "hideCopy"
3883
+ "default": "1",
3884
+ "description": "Number of the first line when line numbers are shown.",
3885
+ "fieldName": "startLine"
2385
3886
  },
2386
3887
  {
2387
- "name": "show-readonly-badge",
3888
+ "name": "wrap",
2388
3889
  "type": {
2389
3890
  "text": "boolean"
2390
3891
  },
2391
3892
  "default": "false",
2392
- "description": "Shows a \"Read Only\" badge while the editor is read-only or disabled.",
2393
- "fieldName": "showReadonlyBadge"
3893
+ "description": "Wraps long lines instead of scrolling horizontally.",
3894
+ "fieldName": "wrap"
2394
3895
  },
2395
3896
  {
2396
- "name": "breakpoint-gutter",
3897
+ "name": "wrap-toggle",
2397
3898
  "type": {
2398
3899
  "text": "boolean"
2399
3900
  },
2400
3901
  "default": "false",
2401
- "description": "Shows a gutter for breakpoints; a click there, or on a line number, fires `breakpoint-toggle`.",
2402
- "fieldName": "breakpointGutter"
3902
+ "description": "Shows a button that turns line wrapping on and off.",
3903
+ "fieldName": "wrapToggle"
2403
3904
  },
2404
3905
  {
2405
- "name": "current-line",
3906
+ "name": "highlight-lines",
2406
3907
  "type": {
2407
- "text": "number | undefined"
3908
+ "text": "string"
2408
3909
  },
2409
- "description": "The line a debugger is paused at, marked and scrolled into view; none when unset.",
2410
- "fieldName": "currentLine"
3910
+ "default": "''",
3911
+ "description": "Lines to highlight, such as `\"1, 3-5\"`. Counts displayed lines, after formatting.",
3912
+ "fieldName": "highlightLines"
2411
3913
  },
2412
3914
  {
2413
- "name": "fill",
3915
+ "name": "added-lines",
2414
3916
  "type": {
2415
- "text": "boolean"
3917
+ "text": "string"
2416
3918
  },
2417
- "default": "false",
2418
- "description": "Takes the height of the container instead of `--code-editor-height`.",
2419
- "fieldName": "fill"
2420
- },
2421
- {
2422
- "name": "name",
2423
- "fieldName": "name",
2424
- "inheritedFrom": {
2425
- "name": "BaseInput",
2426
- "module": "src/input/BaseInput.ts"
2427
- }
3919
+ "default": "''",
3920
+ "description": "Lines shown as added in a diff, such as `\"4-6\"`.",
3921
+ "fieldName": "addedLines"
2428
3922
  },
2429
3923
  {
2430
- "name": "disabled",
2431
- "fieldName": "disabled",
2432
- "inheritedFrom": {
2433
- "name": "BaseInput",
2434
- "module": "src/input/BaseInput.ts"
2435
- }
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"
2436
3931
  },
2437
3932
  {
2438
- "name": "readonly",
3933
+ "name": "collapsible",
2439
3934
  "type": {
2440
3935
  "text": "boolean"
2441
3936
  },
2442
3937
  "default": "false",
2443
- "fieldName": "readonly",
2444
- "inheritedFrom": {
2445
- "name": "BaseInput",
2446
- "module": "src/input/BaseInput.ts"
2447
- }
3938
+ "description": "Caps the height and adds a show more button when the code is taller.",
3939
+ "fieldName": "collapsible"
2448
3940
  },
2449
3941
  {
2450
- "name": "required",
3942
+ "name": "expanded",
2451
3943
  "type": {
2452
3944
  "text": "boolean"
2453
3945
  },
2454
3946
  "default": "false",
2455
- "fieldName": "required",
2456
- "inheritedFrom": {
2457
- "name": "BaseInput",
2458
- "module": "src/input/BaseInput.ts"
2459
- }
3947
+ "description": "Whether a collapsible block is expanded.",
3948
+ "fieldName": "expanded"
2460
3949
  },
2461
3950
  {
2462
- "name": "skeleton",
3951
+ "name": "size",
2463
3952
  "type": {
2464
- "text": "boolean"
3953
+ "text": "CodeHighlighterSize"
2465
3954
  },
2466
- "default": "false",
2467
- "fieldName": "skeleton",
2468
- "inheritedFrom": {
2469
- "name": "BaseInput",
2470
- "module": "src/input/BaseInput.ts"
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'"
2471
3960
  }
2472
- }
2473
- ],
2474
- "superclass": {
2475
- "name": "BaseInput",
2476
- "module": "/src/input/BaseInput.js"
2477
- },
2478
- "tagName": "wc-code-editor",
2479
- "customElement": true,
2480
- "rawTag": {
2481
- "name": "code-editor",
2482
- "description": ""
2483
- }
2484
- }
2485
- },
2486
- {
2487
- "label": "Code Highlighter",
2488
- "tag": "wc-code-highlighter",
2489
- "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```",
2492
- "tags": "display",
2493
- "customElement": {
2494
- "kind": "class",
2495
- "description": "",
2496
- "attributes": [
3961
+ },
2497
3962
  {
2498
- "name": "language",
3963
+ "name": "variant",
2499
3964
  "type": {
2500
- "text": "BundledLanguage"
3965
+ "text": "CodeHighlighterVariant"
2501
3966
  },
2502
- "default": "'javascript'",
2503
- "fieldName": "language"
3967
+ "default": "'default'",
3968
+ "description": "Visual variant. `error` tints the block for failure output.",
3969
+ "fieldName": "variant",
3970
+ "expandedType": {
3971
+ "text": "'default' | 'error'"
3972
+ }
2504
3973
  },
2505
3974
  {
2506
- "name": "line-numbers",
3975
+ "name": "hide-copy",
2507
3976
  "type": {
2508
3977
  "text": "boolean"
2509
3978
  },
2510
3979
  "default": "false",
2511
- "fieldName": "lineNumbers"
3980
+ "description": "Hides the copy button.",
3981
+ "fieldName": "hideCopy"
2512
3982
  },
2513
3983
  {
2514
- "name": "value",
3984
+ "name": "copy-value",
2515
3985
  "type": {
2516
- "text": "string"
3986
+ "text": "string | undefined"
2517
3987
  },
2518
- "default": "''",
2519
- "fieldName": "value"
3988
+ "description": "Text the copy button copies instead of the displayed code.",
3989
+ "fieldName": "copyValue"
2520
3990
  },
2521
3991
  {
2522
- "name": "format",
3992
+ "name": "inline",
2523
3993
  "type": {
2524
- "text": "boolean | undefined"
3994
+ "text": "boolean"
2525
3995
  },
2526
- "default": "true",
2527
- "fieldName": "format"
3996
+ "default": "false",
3997
+ "description": "Renders the code inline, as a compact chip within text.",
3998
+ "fieldName": "inline"
2528
3999
  },
2529
4000
  {
2530
- "name": "hideCopy",
4001
+ "name": "grouped",
2531
4002
  "type": {
2532
4003
  "text": "boolean"
2533
4004
  },
2534
4005
  "default": "false",
2535
- "fieldName": "hideCopy"
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": {
@@ -6908,14 +8380,21 @@
6908
8380
  "label": "Pagination",
6909
8381
  "tag": "wc-pagination",
6910
8382
  "rawTag": "pagination",
6911
- "summary": "A pagination control with page size selector, item count display, and previous/next navigation.",
6912
- "overview": "<p>The pagination component provides controls for navigating through paged data sets.</p>",
8383
+ "summary": "A pagination control with page numbers, a rows-per-page selector and the current item range.",
8384
+ "overview": "<p>The pagination component moves through paged data. It shows the current item range, the pages and a rows-per-page selector.</p>\n<p>Three variants cover different data sets: <code>full</code> lists page numbers with ellipses, <code>compact</code> shows \"Page [n] of N\" with a field to jump to a page, and <code>simple</code> shows previous and next only. When <code>total-items</code> is not set, the total is unknown (cursor-based APIs): the control shows previous and next, and <code>has-next</code> says whether another page exists.</p>\n<p>On a narrow container the <code>full</code> variant collapses to <code>compact</code>.</p>",
6913
8385
  "fires": "page - Dispatched when the page or page size changes. Detail: `{ page, pageSize }`.",
6914
- "example": "```html\n<wc-pagination style=\"width: 100%;\" page=\"1\" page-size=\"10\" total-items=\"100\"></wc-pagination>\n```",
8386
+ "cssprop": "--pagination-background - Background of the control. Defaults to the surface color.",
8387
+ "example": "```html\n<wc-pagination style=\"width: 100%;\" page=\"1\" page-size=\"10\" total-items=\"240\"></wc-pagination>\n```",
6915
8388
  "tags": "navigation, data",
6916
8389
  "customElement": {
6917
8390
  "kind": "class",
6918
8391
  "description": "",
8392
+ "cssProperties": [
8393
+ {
8394
+ "description": "Background of the control. Defaults to the surface color.",
8395
+ "name": "--pagination-background"
8396
+ }
8397
+ ],
6919
8398
  "events": [
6920
8399
  {
6921
8400
  "name": "page",
@@ -6947,10 +8426,9 @@
6947
8426
  {
6948
8427
  "name": "total-items",
6949
8428
  "type": {
6950
- "text": "number"
8429
+ "text": "number | undefined"
6951
8430
  },
6952
- "default": "0",
6953
- "description": "Total number of items.",
8431
+ "description": "Total number of items. Leave it unset when the total is unknown; the control then shows\nprevious and next only, and `has-next` decides whether next is enabled.",
6954
8432
  "fieldName": "totalItems"
6955
8433
  },
6956
8434
  {
@@ -6961,6 +8439,54 @@
6961
8439
  "default": "DEFAULT_PAGE_SIZES",
6962
8440
  "description": "Supported page size options.",
6963
8441
  "fieldName": "pageSizes"
8442
+ },
8443
+ {
8444
+ "name": "variant",
8445
+ "type": {
8446
+ "text": "PaginationVariant"
8447
+ },
8448
+ "default": "'full'",
8449
+ "description": "How the pages are shown: `full` (page numbers), `compact` (\"Page [n] of N\") or `simple`\n(previous and next only). Defaults to `full`.",
8450
+ "fieldName": "variant",
8451
+ "expandedType": {
8452
+ "text": "'full' | 'compact' | 'simple'"
8453
+ }
8454
+ },
8455
+ {
8456
+ "name": "has-next",
8457
+ "type": {
8458
+ "text": "boolean"
8459
+ },
8460
+ "default": "false",
8461
+ "description": "Whether another page exists after this one. Used only when `total-items` is unset.",
8462
+ "fieldName": "hasNext"
8463
+ },
8464
+ {
8465
+ "name": "show-first-last",
8466
+ "type": {
8467
+ "text": "boolean"
8468
+ },
8469
+ "default": "false",
8470
+ "description": "Shows buttons that jump to the first and the last page.",
8471
+ "fieldName": "showFirstLast"
8472
+ },
8473
+ {
8474
+ "name": "hide-page-size",
8475
+ "type": {
8476
+ "text": "boolean"
8477
+ },
8478
+ "default": "false",
8479
+ "description": "Hides the rows-per-page selector.",
8480
+ "fieldName": "hidePageSize"
8481
+ },
8482
+ {
8483
+ "name": "label",
8484
+ "type": {
8485
+ "text": "string"
8486
+ },
8487
+ "default": "'Pagination'",
8488
+ "description": "Accessible name of the navigation landmark. Defaults to `\"Pagination\"`.",
8489
+ "fieldName": "label"
6964
8490
  }
6965
8491
  ],
6966
8492
  "superclass": {
@@ -8267,7 +9793,8 @@
8267
9793
  "tag": "wc-snackbar",
8268
9794
  "rawTag": "snackbar",
8269
9795
  "summary": "Snackbars provide brief messages about app processes at the bottom of the screen.",
8270
- "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.",
8271
9798
  "example": "```html\n<wc-snackbar preview message=\"Message archived\" action-label=\"Undo\"></wc-snackbar>\n```",
8272
9799
  "tags": "display, feedback",
8273
9800
  "customElement": {
@@ -8303,7 +9830,7 @@
8303
9830
  "name": "--snackbar-offset-bottom"
8304
9831
  },
8305
9832
  {
8306
- "description": "Stacking order for the snackbar.",
9833
+ "description": "Stacking order for the snackbar in browsers without the Popover API.",
8307
9834
  "name": "--snackbar-z-index"
8308
9835
  }
8309
9836
  ],
@@ -8955,41 +10482,70 @@
8955
10482
  "tag": "wc-table",
8956
10483
  "rawTag": "table",
8957
10484
  "summary": "A configurable component for displaying tabular data.",
8958
- "overview": "<p>The table component displays rows of data with support for sorting, pagination, row selection, and fixed columns.</p>",
8959
- "fires": "page - Dispatched when the page or page size changes.",
8960
- "example": "```html\n<wc-table columns=\"[{'name': 'name','label': 'Name','width': 16},{'name': 'age','label': 'Age','width': 7}]\" data=\"[{'name': 'John','age': 30},{'name': 'Jane','age': 25}]\"></wc-table>\n```",
10485
+ "overview": "<p>The table displays rows of data with sorting, pagination, row selection, sticky header and sticky start or end columns.</p>\n<p>It follows the grid keyboard pattern: the table is one tab stop and the arrow keys move between cells. <kbd>Space</kbd> selects the focused row, <kbd>Enter</kbd> activates the focused cell, and <kbd>Ctrl</kbd>+<kbd>C</kbd> copies its text.</p>\n<p>When rows are selected, a bar over the header shows the count and the actions placed in the <code>bulk-actions</code> slot.</p>",
10486
+ "fires": "page - Dispatched when the page or page size changes. Detail: `{ page, pageSize }`.",
10487
+ "slot": "bulk-actions - Actions shown in the selection bar while rows are selected.",
10488
+ "cssprop": "--table-cell-padding-inline - Horizontal padding of a cell.",
10489
+ "example": "```html\n<wc-table columns=\"[{'name': 'name','label': 'Name','width': 16},{'name': 'age','label': 'Age','width': 7,'type': 'number'}]\" data=\"[{'name': 'John','age': 30},{'name': 'Jane','age': 25}]\"></wc-table>\n```",
8961
10490
  "tags": "display, data",
8962
10491
  "customElement": {
8963
10492
  "kind": "class",
8964
10493
  "description": "",
10494
+ "cssProperties": [
10495
+ {
10496
+ "description": "Minimum height of a row. Set by `density`.",
10497
+ "name": "--table-row-height"
10498
+ },
10499
+ {
10500
+ "description": "Color of the row dividers.",
10501
+ "name": "--table-border-color"
10502
+ },
10503
+ {
10504
+ "description": "Horizontal padding of a cell.",
10505
+ "name": "--table-cell-padding-inline"
10506
+ }
10507
+ ],
10508
+ "slots": [
10509
+ {
10510
+ "description": "Actions shown in the selection bar while rows are selected.",
10511
+ "name": "bulk-actions"
10512
+ }
10513
+ ],
8965
10514
  "events": [
10515
+ {
10516
+ "name": "sort",
10517
+ "type": {
10518
+ "text": "CustomEvent"
10519
+ },
10520
+ "description": "Dispatched when the table is sorted. Detail: `{ sortBy, sortOrder }`."
10521
+ },
8966
10522
  {
8967
10523
  "name": "selection-change",
8968
10524
  "type": {
8969
10525
  "text": "CustomEvent"
8970
10526
  },
8971
- "description": "Dispatched when the row selection changes."
10527
+ "description": "Dispatched when the row selection changes. Detail: `{ value, isSelectAll, allPages }`."
8972
10528
  },
8973
10529
  {
8974
10530
  "name": "cell-click",
8975
10531
  "type": {
8976
10532
  "text": "CustomEvent"
8977
10533
  },
8978
- "description": "Dispatched when a table cell is clicked."
10534
+ "description": "Dispatched when a cell is clicked or activated with Enter. Detail: `{ record, column, altKey, ctrlKey, metaKey, shiftKey }`."
8979
10535
  },
8980
10536
  {
8981
- "name": "sort",
10537
+ "name": "row-click",
8982
10538
  "type": {
8983
10539
  "text": "CustomEvent"
8984
10540
  },
8985
- "description": "Dispatched when the table is sorted."
10541
+ "description": "Dispatched when a row is clicked or activated with Enter. Detail: `{ record }`."
8986
10542
  },
8987
10543
  {
8988
10544
  "name": "page",
8989
10545
  "type": {
8990
10546
  "text": "CustomEvent"
8991
10547
  },
8992
- "description": "Dispatched when the page or page size changes."
10548
+ "description": "Dispatched when the page or page size changes. Detail: `{ page, pageSize }`."
8993
10549
  }
8994
10550
  ],
8995
10551
  "attributes": [
@@ -8999,13 +10555,13 @@
8999
10555
  "text": "TableColumn[]"
9000
10556
  },
9001
10557
  "default": "[]",
9002
- "description": "Grid columns configuration.\nEach column can have: name, label, width (px), fixed (boolean), template (function).",
10558
+ "description": "Grid columns configuration.\nEach column can have: name, label, width (rem), fixed, align, type, sortable, wrap, template.",
9003
10559
  "fieldName": "columns"
9004
10560
  },
9005
10561
  {
9006
10562
  "name": "data",
9007
10563
  "type": {
9008
- "text": "any[]"
10564
+ "text": "TableRow[]"
9009
10565
  },
9010
10566
  "default": "[]",
9011
10567
  "description": "Grid data to display on table.",
@@ -9079,7 +10635,7 @@
9079
10635
  "text": "boolean"
9080
10636
  },
9081
10637
  "default": "false",
9082
- "description": "If true, pagination is enabled. Defaults to `true`.",
10638
+ "description": "If true, pagination is enabled. Defaults to `false`.",
9083
10639
  "fieldName": "paginate"
9084
10640
  },
9085
10641
  {
@@ -9100,14 +10656,79 @@
9100
10656
  "description": "The number of rows per page. Defaults to `10`.",
9101
10657
  "fieldName": "pageSize"
9102
10658
  },
10659
+ {
10660
+ "name": "page-sizes",
10661
+ "type": {
10662
+ "text": "number[] | undefined"
10663
+ },
10664
+ "description": "Supported page size options, passed to the pagination.",
10665
+ "fieldName": "pageSizes"
10666
+ },
9103
10667
  {
9104
10668
  "name": "total-items",
9105
10669
  "type": {
9106
10670
  "text": "number | undefined"
9107
10671
  },
9108
- "description": "Total number of items (used in managed/controlled mode).",
10672
+ "description": "Total number of items (used in managed/controlled mode). Leave it unset when the total is\nunknown; the pagination then shows previous and next, driven by `has-next`.",
9109
10673
  "fieldName": "totalItems"
9110
10674
  },
10675
+ {
10676
+ "name": "has-next",
10677
+ "type": {
10678
+ "text": "boolean"
10679
+ },
10680
+ "default": "false",
10681
+ "description": "Whether another page exists after this one, in managed mode with an unknown total.",
10682
+ "fieldName": "hasNext"
10683
+ },
10684
+ {
10685
+ "name": "pagination-variant",
10686
+ "type": {
10687
+ "text": "PaginationVariant"
10688
+ },
10689
+ "default": "'full'",
10690
+ "description": "Pagination variant: `full` (page numbers), `compact` or `simple`. Defaults to `full`.",
10691
+ "fieldName": "paginationVariant",
10692
+ "expandedType": {
10693
+ "text": "'full' | 'compact' | 'simple'"
10694
+ }
10695
+ },
10696
+ {
10697
+ "name": "density",
10698
+ "type": {
10699
+ "text": "'compact' | 'default' | 'comfortable'"
10700
+ },
10701
+ "default": "'default'",
10702
+ "description": "Row height: `compact`, `default` or `comfortable`. Defaults to `default`.",
10703
+ "fieldName": "density"
10704
+ },
10705
+ {
10706
+ "name": "striped",
10707
+ "type": {
10708
+ "text": "boolean"
10709
+ },
10710
+ "default": "false",
10711
+ "description": "Shades every other row.",
10712
+ "fieldName": "striped"
10713
+ },
10714
+ {
10715
+ "name": "loading",
10716
+ "type": {
10717
+ "text": "boolean"
10718
+ },
10719
+ "default": "false",
10720
+ "description": "Shows a loading state: skeleton rows while there is no data, otherwise a progress bar\nunder the header so the current rows stay readable.",
10721
+ "fieldName": "loading"
10722
+ },
10723
+ {
10724
+ "name": "label",
10725
+ "type": {
10726
+ "text": "string"
10727
+ },
10728
+ "default": "''",
10729
+ "description": "Accessible name of the table.",
10730
+ "fieldName": "label"
10731
+ },
9111
10732
  {
9112
10733
  "name": "empty-state-headline",
9113
10734
  "type": {
@@ -9744,11 +11365,11 @@
9744
11365
  "label": "Toolbar",
9745
11366
  "tag": "wc-toolbar",
9746
11367
  "rawTag": "toolbar",
9747
- "summary": "A toolbar / app bar for navigation and actions.",
9748
- "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>",
9749
- "cssprop": "--toolbar-shadow - Box-shadow of the toolbar.",
9750
- "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```",
9751
- "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",
9752
11373
  "customElement": {
9753
11374
  "kind": "class",
9754
11375
  "description": "",
@@ -9758,42 +11379,34 @@
9758
11379
  "name": "--toolbar-container-color"
9759
11380
  },
9760
11381
  {
9761
- "description": "Border radius of the toolbar. Relevant for the floating variant.",
11382
+ "description": "Border radius of the floating toolbar.",
9762
11383
  "name": "--toolbar-container-shape"
9763
11384
  },
9764
11385
  {
9765
- "description": "Height of the toolbar (docked horizontal / floating horizontal).",
9766
- "name": "--toolbar-height"
9767
- },
9768
- {
9769
- "description": "Inline padding of the toolbar.",
9770
- "name": "--toolbar-padding-inline"
11386
+ "description": "Padding of the floating toolbar.",
11387
+ "name": "--toolbar-padding"
9771
11388
  },
9772
11389
  {
9773
- "description": "Gap between toolbar sections.",
11390
+ "description": "Gap between toolbar actions.",
9774
11391
  "name": "--toolbar-gap"
9775
11392
  },
9776
11393
  {
9777
- "description": "Color of icon slots.",
11394
+ "description": "Color of icons inside the toolbar.",
9778
11395
  "name": "--toolbar-icon-color"
9779
11396
  },
9780
11397
  {
9781
- "description": "Color of the title (default slot) text.",
9782
- "name": "--toolbar-title-color"
9783
- },
9784
- {
9785
- "description": "Box-shadow of the toolbar.",
9786
- "name": "--toolbar-shadow"
11398
+ "description": "Color of text inside the toolbar.",
11399
+ "name": "--toolbar-content-color"
9787
11400
  }
9788
11401
  ],
9789
11402
  "attributes": [
9790
11403
  {
9791
11404
  "name": "variant",
9792
11405
  "type": {
9793
- "text": "'docked' | 'floating'"
11406
+ "text": "'floating' | 'flat'"
9794
11407
  },
9795
- "default": "'docked'",
9796
- "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.",
9797
11410
  "fieldName": "variant"
9798
11411
  },
9799
11412
  {
@@ -9802,28 +11415,16 @@
9802
11415
  "text": "'horizontal' | 'vertical'"
9803
11416
  },
9804
11417
  "default": "'horizontal'",
9805
- "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).",
9806
11419
  "fieldName": "orientation"
9807
11420
  },
9808
- {
9809
- "name": "size",
9810
- "type": {
9811
- "text": "Size | LegacySize"
9812
- },
9813
- "default": "'sm'",
9814
- "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.",
9815
- "fieldName": "size",
9816
- "expandedType": {
9817
- "text": "'sm' | 'md' | 'lg' | 'small' | 'medium' | 'large'"
9818
- }
9819
- },
9820
11421
  {
9821
11422
  "name": "elevated",
9822
11423
  "type": {
9823
11424
  "text": "boolean"
9824
11425
  },
9825
11426
  "default": "false",
9826
- "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.",
9827
11428
  "fieldName": "elevated"
9828
11429
  }
9829
11430
  ],