@redvars/peacock 3.16.0 → 3.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (147) hide show
  1. package/dist/assets/styles.css +1 -1
  2. package/dist/assets/styles.css.map +1 -1
  3. package/dist/assets/theme.js +19 -19
  4. package/dist/assets/tokens.css +1 -1
  5. package/dist/assets/tokens.css.map +1 -1
  6. package/dist/card-content.js +8 -7
  7. package/dist/card-content.js.map +1 -1
  8. package/dist/card.js +142 -98
  9. package/dist/card.js.map +1 -1
  10. package/dist/{chart-bar-D5dGFJfK.js → cartesian-chart-DgE4USyC.js} +529 -312
  11. package/dist/cartesian-chart-DgE4USyC.js.map +1 -0
  12. package/dist/chart-area.js +78 -0
  13. package/dist/chart-area.js.map +1 -0
  14. package/dist/chart-bar.js +283 -213
  15. package/dist/chart-bar.js.map +1 -1
  16. package/dist/{transform-DSwFSqzD.js → chart-base-C2qRMF48.js} +771 -102
  17. package/dist/chart-base-C2qRMF48.js.map +1 -0
  18. package/dist/chart-doughnut.js +55 -287
  19. package/dist/chart-doughnut.js.map +1 -1
  20. package/dist/chart-line.js +626 -0
  21. package/dist/chart-line.js.map +1 -0
  22. package/dist/chart-pie.js +637 -195
  23. package/dist/chart-pie.js.map +1 -1
  24. package/dist/code-editor.js +704 -131
  25. package/dist/code-editor.js.map +1 -1
  26. package/dist/code-group.js +188 -0
  27. package/dist/code-group.js.map +1 -0
  28. package/dist/code-highlighter.js +895 -257
  29. package/dist/code-highlighter.js.map +1 -1
  30. package/dist/custom-elements-jsdocs.json +1675 -222
  31. package/dist/custom-elements.json +13351 -3970
  32. package/dist/image.js +5 -1
  33. package/dist/image.js.map +1 -1
  34. package/dist/index.js +8 -7
  35. package/dist/index.js.map +1 -1
  36. package/dist/loader-full.js +1 -1
  37. package/dist/loader.js +9 -3
  38. package/dist/loader.js.map +1 -1
  39. package/dist/{is-dark-mode-DOcaw4Yq.js → observe-theme-change-DCifz1uv.js} +2 -6
  40. package/dist/observe-theme-change-DCifz1uv.js.map +1 -0
  41. package/dist/path-CJ0Arqcy.js +166 -0
  42. package/dist/path-CJ0Arqcy.js.map +1 -0
  43. package/dist/snackbar.js +89 -34
  44. package/dist/snackbar.js.map +1 -1
  45. package/dist/src/__internal/chart/cartesian-chart.d.ts +80 -0
  46. package/dist/src/__internal/chart/chart-base.d.ts +113 -0
  47. package/dist/src/__internal/chart/paths.d.ts +5 -0
  48. package/dist/src/__internal/chart/types.d.ts +42 -0
  49. package/dist/src/card/card-content.d.ts +2 -3
  50. package/dist/src/card/card.d.ts +31 -17
  51. package/dist/src/chart-area/chart-area.d.ts +54 -0
  52. package/dist/src/chart-area/index.d.ts +1 -0
  53. package/dist/src/chart-bar/chart-bar.d.ts +44 -33
  54. package/dist/src/chart-bar/index.d.ts +0 -1
  55. package/dist/src/chart-doughnut/chart-doughnut.d.ts +33 -39
  56. package/dist/src/chart-line/chart-line.d.ts +69 -0
  57. package/dist/src/chart-line/index.d.ts +1 -0
  58. package/dist/src/chart-pie/chart-pie.d.ts +63 -28
  59. package/dist/src/code-editor/code-editor.d.ts +52 -13
  60. package/dist/src/code-editor/editor-theme.d.ts +60 -0
  61. package/dist/src/code-highlighter/code-group.d.ts +52 -0
  62. package/dist/src/code-highlighter/code-highlighter.d.ts +122 -15
  63. package/dist/src/code-highlighter/index.d.ts +1 -0
  64. package/dist/src/code-highlighter/line-ranges.d.ts +24 -0
  65. package/dist/src/code-highlighter/local.d.ts +4 -1
  66. package/dist/src/code-highlighter/token-colors.d.ts +8 -0
  67. package/dist/src/index.d.ts +4 -2
  68. package/dist/src/snackbar/snackbar.d.ts +13 -1
  69. package/dist/src/toolbar/toolbar.d.ts +56 -51
  70. package/dist/table.js +9 -4
  71. package/dist/table.js.map +1 -1
  72. package/dist/test/chart.test.d.ts +1 -0
  73. package/dist/test/code-highlighter.test.d.ts +1 -0
  74. package/dist/token-colors-0TFHWbcq.js +81 -0
  75. package/dist/token-colors-0TFHWbcq.js.map +1 -0
  76. package/dist/toolbar.js +195 -184
  77. package/dist/toolbar.js.map +1 -1
  78. package/dist/tsconfig.tsbuildinfo +1 -1
  79. package/package.json +1 -2
  80. package/readme.md +7 -6
  81. package/scss/_code-block.scss +139 -0
  82. package/scss/tokens.css +24 -0
  83. package/src/__internal/chart/cartesian-chart.ts +404 -0
  84. package/src/__internal/chart/chart-base.scss +252 -0
  85. package/src/__internal/chart/chart-base.ts +474 -0
  86. package/src/__internal/chart/paths.ts +28 -0
  87. package/src/__internal/chart/types.ts +49 -0
  88. package/src/card/card-content.ts +12 -9
  89. package/src/card/card.scss +66 -54
  90. package/src/card/card.ts +109 -73
  91. package/src/chart-area/chart-area.ts +82 -0
  92. package/src/chart-area/index.ts +1 -0
  93. package/src/chart-bar/chart-bar.ts +336 -250
  94. package/src/chart-bar/index.ts +0 -1
  95. package/src/chart-doughnut/chart-doughnut.ts +62 -262
  96. package/src/chart-doughnut/demo/index.html +14 -22
  97. package/src/chart-line/chart-line.scss +25 -0
  98. package/src/chart-line/chart-line.ts +346 -0
  99. package/src/chart-line/index.ts +1 -0
  100. package/src/chart-pie/chart-pie.scss +35 -16
  101. package/src/chart-pie/chart-pie.ts +282 -188
  102. package/src/chart-pie/demo/index.html +13 -21
  103. package/src/code-editor/code-editor.scss +132 -36
  104. package/src/code-editor/code-editor.ts +308 -88
  105. package/src/code-editor/demo/index.html +39 -12
  106. package/src/code-editor/editor-theme.ts +213 -0
  107. package/src/code-highlighter/code-group.scss +34 -0
  108. package/src/code-highlighter/code-group.ts +173 -0
  109. package/src/code-highlighter/code-highlighter.scss +226 -111
  110. package/src/code-highlighter/code-highlighter.ts +554 -199
  111. package/src/code-highlighter/demo/index.html +68 -4
  112. package/src/code-highlighter/index.ts +1 -0
  113. package/src/code-highlighter/line-ranges.ts +81 -0
  114. package/src/code-highlighter/local.ts +9 -3
  115. package/src/code-highlighter/token-colors.ts +42 -0
  116. package/src/index.ts +4 -2
  117. package/src/loader.ts +8 -2
  118. package/src/snackbar/demo/index.html +39 -4
  119. package/src/snackbar/snackbar.scss +27 -10
  120. package/src/snackbar/snackbar.ts +80 -37
  121. package/src/table/table.scss +7 -1
  122. package/src/table/table.ts +4 -3
  123. package/src/toolbar/toolbar-colors.scss +6 -7
  124. package/src/toolbar/toolbar.scss +35 -106
  125. package/src/toolbar/toolbar.ts +180 -80
  126. package/dist/array-D5vjT2Xm.js +0 -14
  127. package/dist/array-D5vjT2Xm.js.map +0 -1
  128. package/dist/chart-bar-D5dGFJfK.js.map +0 -1
  129. package/dist/chart-stacked-bar.js +0 -403
  130. package/dist/chart-stacked-bar.js.map +0 -1
  131. package/dist/copy-to-clipboard-upGx-Ueo.js +0 -39
  132. package/dist/copy-to-clipboard-upGx-Ueo.js.map +0 -1
  133. package/dist/is-dark-mode-DOcaw4Yq.js.map +0 -1
  134. package/dist/pie-Dz0IDiPt.js +0 -537
  135. package/dist/pie-Dz0IDiPt.js.map +0 -1
  136. package/dist/pierre-dark-DFWl0m-C.js +0 -4
  137. package/dist/pierre-dark-DFWl0m-C.js.map +0 -1
  138. package/dist/pierre-light-BEkAPImt.js +0 -4
  139. package/dist/pierre-light-BEkAPImt.js.map +0 -1
  140. package/dist/src/chart-bar/chart-stacked-bar.d.ts +0 -78
  141. package/dist/src/code-highlighter/constants.d.ts +0 -1
  142. package/dist/transform-DSwFSqzD.js.map +0 -1
  143. package/src/chart-bar/chart-bar.scss +0 -58
  144. package/src/chart-bar/chart-stacked-bar.ts +0 -398
  145. package/src/chart-doughnut/chart-donut.scss +0 -37
  146. package/src/code-highlighter/constants.ts +0 -117
  147. /package/dist/test/{chart-bar.test.d.ts → card.test.d.ts} +0 -0
@@ -1,58 +0,0 @@
1
- @use '../../scss/mixin';
2
-
3
- @include mixin.base-styles;
4
-
5
- :host {
6
- display: block;
7
- color: var(--color-on-surface);
8
- }
9
-
10
- .chart-frame {
11
- background: var(--color-surface-container-low);
12
- border: 1px solid var(--color-outline-variant);
13
- border-radius: var(--shape-corner-medium);
14
- padding: var(--spacing-300);
15
- box-shadow: var(--elevation-level1);
16
- }
17
-
18
- svg {
19
- width: 100%;
20
- height: 100%;
21
- }
22
-
23
- .axis-label {
24
- @include mixin.get-typography('label-medium');
25
- fill: var(--color-on-surface-variant);
26
- }
27
-
28
- .value-label {
29
- @include mixin.get-typography('label-small');
30
- fill: var(--color-on-surface);
31
- }
32
-
33
- .gridline {
34
- stroke: var(--color-outline-variant);
35
- opacity: 0.6;
36
- }
37
-
38
- .legend {
39
- display: flex;
40
- flex-wrap: wrap;
41
- gap: var(--spacing-200);
42
- margin-top: var(--spacing-200);
43
- color: var(--color-on-surface);
44
- @include mixin.get-typography('label-medium');
45
-
46
- .legend-item {
47
- display: inline-flex;
48
- align-items: center;
49
- gap: var(--spacing-150);
50
-
51
- .swatch {
52
- width: 12px;
53
- height: 12px;
54
- border-radius: var(--shape-corner-full);
55
- border: 1px solid var(--color-outline-variant);
56
- }
57
- }
58
- }
@@ -1,398 +0,0 @@
1
- import { html, LitElement, PropertyValues } from 'lit';
2
- import { property, query } from 'lit/decorators.js';
3
- import { styleMap } from 'lit/directives/style-map.js';
4
- import { select, max, scaleBand, scaleLinear, scaleOrdinal, axisLeft, axisBottom, stack, Series, SeriesPoint, ScaleOrdinal } from 'd3';
5
-
6
- import IndividualComponent from '@/IndividualComponent.js';
7
-
8
- import styles from './chart-bar.scss';
9
-
10
- export type ChartStackedSegment = {
11
- name: string;
12
- value: number;
13
- label?: string;
14
- color?: string;
15
- };
16
-
17
- export type ChartStackedBarItem = {
18
- name: string;
19
- label?: string;
20
- segments: ChartStackedSegment[];
21
- };
22
-
23
- const chartColors: string[] = [];
24
- ['purple', 'blue', 'red', 'green', 'yellow', 'orange'].forEach(colorName => {
25
- chartColors.push(`var(--color-${colorName})`);
26
- });
27
-
28
- const DEFAULT_WIDTH = 520;
29
- const DEFAULT_HEIGHT = 360;
30
- const BAR_RADIUS = 8;
31
- const DURATION = 450;
32
-
33
- function debounce<T extends (...args: any[]) => void>(fn: T, wait: number): T {
34
- let timer: ReturnType<typeof setTimeout>;
35
- return ((...args: any[]) => {
36
- clearTimeout(timer);
37
- timer = setTimeout(() => fn(...args), wait);
38
- }) as T;
39
- }
40
-
41
- /**
42
- * @label Chart Stacked Bar
43
- * @tag wc-chart-stacked-bar
44
- * @rawTag chart-stacked-bar
45
- * @summary A stacked bar chart that groups series by category using tokens.
46
- * @tags charts
47
- *
48
- * @example
49
- * ```html
50
- * <wc-chart-stacked-bar width="560" height="360"></wc-chart-stacked-bar>
51
- * <script>
52
- * document.querySelector('wc-chart-stacked-bar').data = [
53
- * {
54
- * name: 'q1',
55
- * label: 'Q1',
56
- * segments: [
57
- * { name: 'mobile', label: 'Mobile', value: 40 },
58
- * { name: 'web', label: 'Web', value: 25 },
59
- * { name: 'store', label: 'Store', value: 15 },
60
- * ],
61
- * },
62
- * {
63
- * name: 'q2',
64
- * label: 'Q2',
65
- * segments: [
66
- * { name: 'mobile', label: 'Mobile', value: 32 },
67
- * { name: 'web', label: 'Web', value: 30 },
68
- * { name: 'store', label: 'Store', value: 18 },
69
- * ],
70
- * },
71
- * ];
72
- * </script>
73
- * ```
74
- */
75
- @IndividualComponent
76
- export class ChartStackedBar extends LitElement {
77
- static styles = [styles];
78
-
79
- @query('svg')
80
- private svgElement?: SVGElement;
81
-
82
- /** Width of the chart in pixels. */
83
- @property({ type: Number, reflect: true }) width: number = 0;
84
-
85
- /** Height of the chart in pixels. */
86
- @property({ type: Number, reflect: true }) height: number = DEFAULT_HEIGHT;
87
-
88
- /** Margin around the chart drawing area. */
89
- @property({ type: Number }) margin: number = 28;
90
-
91
- /** Chart data array. Each item holds the stacked segments for a category. */
92
- @property({ type: Array }) data: ChartStackedBarItem[] = [];
93
-
94
- /** Whether to render total value labels above each stack. */
95
- @property({ type: Boolean, attribute: 'show-values' }) showValues: boolean = true;
96
-
97
- /** Whether to render the legend. */
98
- @property({ type: Boolean, attribute: 'show-legend' }) showLegend: boolean = true;
99
-
100
- private _initialized = false;
101
-
102
- private _debouncedRenderChart = debounce(() => {
103
- this._renderChart(true);
104
- }, 200);
105
-
106
- firstUpdated() {
107
- this._renderChart(false);
108
- }
109
-
110
- updated(changedProperties: PropertyValues) {
111
- if (!this._initialized) {
112
- this._initialized = true;
113
- return;
114
- }
115
- const watchedProps = [
116
- 'width',
117
- 'height',
118
- 'margin',
119
- 'data',
120
- 'showValues',
121
- 'showLegend',
122
- ];
123
- const hasChanged = watchedProps.some(prop => changedProperties.has(prop));
124
- if (hasChanged) {
125
- this._debouncedRenderChart();
126
- }
127
- }
128
-
129
- private _getSegmentKeys() {
130
- const keys = new Set<string>();
131
- this.data?.forEach(item => {
132
- item.segments?.forEach(segment => keys.add(segment.name));
133
- });
134
- return Array.from(keys);
135
- }
136
-
137
- private _getColorScale(keys: string[]) {
138
- return scaleOrdinal<string, string>()
139
- .domain(keys)
140
- .range(chartColors);
141
- }
142
-
143
- private _getColorMap(
144
- keys: string[],
145
- scale: ScaleOrdinal<string, string>,
146
- ) {
147
- const map = new Map<string, string>();
148
- keys.forEach(key => {
149
- const override = this.data
150
- .map(item => item.segments.find(seg => seg.name === key)?.color)
151
- .find(color => !!color);
152
- map.set(key, override || scale(key));
153
- });
154
- return map;
155
- }
156
-
157
- private _getSegmentLabel(key: string) {
158
- const segment = this.data
159
- .map(item => item.segments.find(seg => seg.name === key))
160
- .find(Boolean);
161
- return segment?.label ?? key;
162
- }
163
-
164
- private _getTotals() {
165
- return this.data.map(item =>
166
- item.segments.reduce((sum, seg) => sum + seg.value, 0),
167
- );
168
- }
169
-
170
- private _renderChart(animate: boolean) {
171
- if (!this.svgElement) return;
172
-
173
- const width = this.width > 0 ? this.width : DEFAULT_WIDTH;
174
- const height = this.height > 0 ? this.height : DEFAULT_HEIGHT;
175
- const margin = Math.max(this.margin, 16);
176
- const data = this.data ?? [];
177
-
178
- const svg = select(this.svgElement);
179
- svg.attr('width', width).attr('height', height);
180
-
181
- const innerWidth = Math.max(width - margin * 2, 0);
182
- const innerHeight = Math.max(height - margin * 2, 0);
183
-
184
- const container = svg.select<SVGGElement>('.chart-container');
185
- container.attr('transform', `translate(${margin},${margin})`);
186
-
187
- if (!data.length || innerWidth === 0 || innerHeight === 0) {
188
- container.select('.bars').selectAll('*').remove();
189
- container.select('.x-axis').selectAll('*').remove();
190
- container.select('.y-grid').selectAll('*').remove();
191
- container.select('.value-labels').selectAll('*').remove();
192
- return;
193
- }
194
-
195
- const keys = this._getSegmentKeys();
196
- const colorScale = this._getColorScale(keys);
197
- const colorMap = this._getColorMap(keys, colorScale);
198
-
199
- const totals = this._getTotals();
200
- const xScale = scaleBand<string>()
201
- .domain(data.map(d => d.name))
202
- .range([0, innerWidth])
203
- .padding(0.3);
204
- const maxValue = max(totals) ?? 0;
205
- const yScale = scaleLinear()
206
- .domain([0, maxValue || 1])
207
- .nice()
208
- .range([innerHeight, 0]);
209
-
210
- const stackedSeries = stack<ChartStackedBarItem, string>()
211
- .keys(keys)
212
- .value(
213
- (d, key) => d.segments.find(segment => segment.name === key)?.value ?? 0,
214
- )(data);
215
-
216
- const yGrid = container.select<SVGGElement>('.y-grid');
217
- yGrid
218
- .call(
219
- axisLeft(yScale)
220
- .ticks(5)
221
- .tickSize(-innerWidth)
222
- .tickFormat(() => ''),
223
- )
224
- .selectAll('.tick text')
225
- .remove();
226
- yGrid.select('.domain').remove();
227
- yGrid.selectAll('.tick line').attr('class', 'gridline');
228
-
229
- const xAxis = container.select<SVGGElement>('.x-axis');
230
- xAxis
231
- .attr('transform', `translate(0,${innerHeight})`)
232
- .call(
233
- axisBottom(xScale)
234
- .tickSizeOuter(0)
235
- .tickFormat(name => {
236
- const entry = data.find(d => d.name === name);
237
- return entry?.label ?? name;
238
- }),
239
- );
240
- xAxis.select('.domain').attr('stroke', 'var(--color-outline-variant)');
241
- xAxis.selectAll('.tick line').remove();
242
- xAxis
243
- .selectAll('.tick text')
244
- .attr('class', 'axis-label')
245
- .attr('dy', '1.1em');
246
-
247
- const barGroups = container
248
- .select('.bars')
249
- .selectAll<SVGGElement, Series<ChartStackedBarItem, string>>(
250
- '.bar-group',
251
- )
252
- .data(stackedSeries, series => series.key)
253
- .join(
254
- enter =>
255
- enter
256
- .append('g')
257
- .attr('class', 'bar-group')
258
- .style('fill', series => colorMap.get(series.key) ?? ''),
259
- update => update,
260
- exit => exit.remove(),
261
- )
262
- .style('fill', series => colorMap.get(series.key) ?? colorScale(series.key));
263
-
264
- const segmentJoin = barGroups
265
- .selectAll<SVGRectElement, SeriesPoint<ChartStackedBarItem>>('rect')
266
- .data(series => series, d => d.data.name)
267
- .join(
268
- enter =>
269
- enter
270
- .append('rect')
271
- .attr('class', 'stacked-segment')
272
- .attr('x', d => xScale(d.data.name) ?? 0)
273
- .attr('width', xScale.bandwidth())
274
- .attr('y', innerHeight)
275
- .attr('height', 0)
276
- .attr('rx', BAR_RADIUS)
277
- .attr('ry', BAR_RADIUS),
278
- update => update,
279
- exit =>
280
- exit
281
- .transition()
282
- .duration(DURATION)
283
- .attr('y', innerHeight)
284
- .attr('height', 0)
285
- .remove(),
286
- );
287
-
288
- segmentJoin
289
- .attr('x', d => xScale(d.data.name) ?? 0)
290
- .attr('width', xScale.bandwidth())
291
- .attr('rx', BAR_RADIUS)
292
- .attr('ry', BAR_RADIUS);
293
-
294
- if (animate) {
295
- segmentJoin
296
- .transition()
297
- .duration(DURATION)
298
- .attr('y', d => yScale(d[1]))
299
- .attr('height', d => yScale(d[0]) - yScale(d[1]));
300
- } else {
301
- segmentJoin
302
- .attr('y', d => yScale(d[1]))
303
- .attr('height', d => yScale(d[0]) - yScale(d[1]));
304
- }
305
-
306
- const totalLabels = container
307
- .select('.value-labels')
308
- .selectAll<SVGTextElement, ChartStackedBarItem>('text')
309
- .data(this.showValues ? data : [], d => d.name)
310
- .join(
311
- enter =>
312
- enter
313
- .append('text')
314
- .attr('class', 'value-label')
315
- .attr('text-anchor', 'middle')
316
- .attr('x', d => (xScale(d.name) ?? 0) + xScale.bandwidth() / 2)
317
- .attr('y', innerHeight - 6)
318
- .text(d =>
319
- d.segments
320
- .reduce((sum, seg) => sum + seg.value, 0)
321
- .toLocaleString(),
322
- ),
323
- update => update,
324
- exit => exit.remove(),
325
- );
326
-
327
- const labelPosition = (item: ChartStackedBarItem) => {
328
- const total = item.segments.reduce((sum, seg) => sum + seg.value, 0);
329
- const offset = yScale(total) - 8;
330
- return Math.min(offset, innerHeight - 8);
331
- };
332
-
333
- if (animate) {
334
- totalLabels
335
- .transition()
336
- .duration(DURATION)
337
- .attr('x', d => (xScale(d.name) ?? 0) + xScale.bandwidth() / 2)
338
- .attr('y', d => labelPosition(d))
339
- .text(d =>
340
- d.segments
341
- .reduce((sum, seg) => sum + seg.value, 0)
342
- .toLocaleString(),
343
- );
344
- } else {
345
- totalLabels
346
- .attr('x', d => (xScale(d.name) ?? 0) + xScale.bandwidth() / 2)
347
- .attr('y', d => labelPosition(d))
348
- .text(d =>
349
- d.segments
350
- .reduce((sum, seg) => sum + seg.value, 0)
351
- .toLocaleString(),
352
- );
353
- }
354
- }
355
-
356
- render() {
357
- const keys = this._getSegmentKeys();
358
- const colorScale = this._getColorScale(keys);
359
- const colorMap = this._getColorMap(keys, colorScale);
360
-
361
- const legendItems = keys.map(key => ({
362
- name: this._getSegmentLabel(key),
363
- color: colorMap.get(key) ?? colorScale(key),
364
- }));
365
-
366
- return html`
367
- <div class="chart-frame">
368
- <svg role="img" aria-label="Stacked bar chart">
369
- <g class="chart-container">
370
- <g class="y-grid"></g>
371
- <g class="bars"></g>
372
- <g class="x-axis"></g>
373
- <g class="value-labels"></g>
374
- </g>
375
- </svg>
376
- ${this.showLegend && legendItems.length
377
- ? html`<div class="legend" role="list">
378
- ${legendItems.map(
379
- item => html`<span class="legend-item" role="listitem">
380
- <span
381
- class="swatch"
382
- style=${styleMap({ background: item.color })}
383
- ></span>
384
- <span>${item.name}</span>
385
- </span>`,
386
- )}
387
- </div>`
388
- : null}
389
- </div>
390
- `;
391
- }
392
- }
393
-
394
- declare global {
395
- interface HTMLElementTagNameMap {
396
- 'wc-chart-stacked-bar': ChartStackedBar;
397
- }
398
- }
@@ -1,37 +0,0 @@
1
- @use '../../scss/mixin';
2
-
3
- @include mixin.base-styles;
4
-
5
- :host {
6
- display: inline-block;
7
- }
8
-
9
- .title {
10
- @include mixin.get-typography('title-large-emphasized');
11
- fill: var(--color-on-surface);
12
- }
13
-
14
- .label {
15
- @include mixin.get-typography('title-medium');
16
- fill: var(--color-on-surface);
17
- }
18
-
19
- .arc {
20
- cursor: pointer;
21
- transition: filter 150ms ease;
22
-
23
- &:hover {
24
- filter: brightness(1.2);
25
- }
26
- }
27
-
28
- .item-polyline {
29
- fill: none;
30
- stroke-width: 1;
31
- stroke: var(--color-on-surface);
32
- }
33
-
34
- .item-label {
35
- fill: var(--color-on-surface);
36
- @include mixin.get-typography('label-medium');
37
- }
@@ -1,117 +0,0 @@
1
- export type Language =
2
- | 'markup'
3
- | 'html'
4
- | 'css'
5
- | 'clike'
6
- | 'javascript'
7
- | 'abap'
8
- | 'actionscript'
9
- | 'ada'
10
- | 'apacheconf'
11
- | 'apl'
12
- | 'applescript'
13
- | 'arduino'
14
- | 'arff'
15
- | 'asciidoc'
16
- | 'asm6502'
17
- | 'aspnet'
18
- | 'autohotkey'
19
- | 'autoit'
20
- | 'bash'
21
- | 'basic'
22
- | 'batch'
23
- | 'bison'
24
- | 'brainfuck'
25
- | 'bro'
26
- | 'c'
27
- | 'csharp'
28
- | 'cpp'
29
- | 'coffeescript'
30
- | 'clojure'
31
- | 'crystal'
32
- | 'csp'
33
- | 'css-extras'
34
- | 'd'
35
- | 'dart'
36
- | 'diff'
37
- | 'django'
38
- | 'docker'
39
- | 'eiffel'
40
- | 'elixir'
41
- | 'elm'
42
- | 'erb'
43
- | 'erlang'
44
- | 'fsharp'
45
- | 'flow'
46
- | 'fortran'
47
- | 'gedcom'
48
- | 'gherkin'
49
- | 'git'
50
- | 'glsl'
51
- | 'go'
52
- | 'graphql'
53
- | 'groovy'
54
- | 'haml'
55
- | 'handlebars'
56
- | 'haskell'
57
- | 'haxe'
58
- | 'http'
59
- | 'hpkp'
60
- | 'hsts'
61
- | 'ichigojam'
62
- | 'icon'
63
- | 'inform7'
64
- | 'ini'
65
- | 'io'
66
- | 'j'
67
- | 'java'
68
- | 'jolie'
69
- | 'json'
70
- | 'jsx'
71
- | 'julia'
72
- | 'keyman'
73
- | 'kotlin'
74
- | 'latex'
75
- | 'less'
76
- | 'lilypond'
77
- | 'liquid'
78
- | 'lisp'
79
- | 'livescript'
80
- | 'lolcode'
81
- | 'lua'
82
- | 'makefile'
83
- | 'markdown'
84
- | 'markup-templating'
85
- | 'matlab'
86
- | 'mel'
87
- | 'mizar'
88
- | 'monkey'
89
- | 'n4js'
90
- | 'nasm'
91
- | 'nginx'
92
- | 'nim'
93
- | 'nix'
94
- | 'nsis'
95
- | 'objectivec'
96
- | 'ocaml'
97
- | 'opencl'
98
- | 'oz'
99
- | 'parigp'
100
- | 'parser'
101
- | 'pascal'
102
- | 'perl'
103
- | 'php'
104
- | 'php-extras'
105
- | 'plsql'
106
- | 'powershell'
107
- | 'processing'
108
- | 'prolog'
109
- | 'properties'
110
- | 'protobuf'
111
- | 'pug'
112
- | 'puppet'
113
- | 'pure'
114
- | 'python'
115
- | 'q'
116
- | 'qore'
117
- | 'r';