@statistikzh/leu 0.24.1 → 0.24.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/publish.yml +1 -8
- package/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +7 -0
- package/dist/Accordion.js +1 -1
- package/dist/Button.js +1 -1
- package/dist/ButtonGroup.js +1 -1
- package/dist/ChartWrapper.js +1 -1
- package/dist/Checkbox.js +1 -1
- package/dist/CheckboxGroup.js +1 -1
- package/dist/Chip.js +1 -1
- package/dist/ChipGroup.js +1 -1
- package/dist/ChipLink.js +1 -1
- package/dist/ChipRemovable.js +1 -1
- package/dist/ChipSelectable.js +1 -1
- package/dist/Dialog.js +1 -1
- package/dist/Dropdown.js +1 -1
- package/dist/FileInput.js +1 -1
- package/dist/Icon.js +1 -1
- package/dist/Input.js +1 -1
- package/dist/{LeuElement-jrR2M5pZ.js → LeuElement-BfXSO7MN.js} +1 -1
- package/dist/Menu.js +1 -1
- package/dist/MenuItem.js +1 -1
- package/dist/Message.js +1 -1
- package/dist/Pagination.js +1 -1
- package/dist/Placeholder.js +1 -1
- package/dist/Popup.js +1 -1
- package/dist/ProgressBar.js +1 -1
- package/dist/Radio.js +1 -1
- package/dist/RadioGroup.js +1 -1
- package/dist/Range.js +1 -1
- package/dist/ScrollTop.js +23 -7
- package/dist/Select.js +1 -1
- package/dist/Spinner.js +1 -1
- package/dist/Table.js +1 -1
- package/dist/Tag.js +1 -1
- package/dist/VisuallyHidden.js +1 -1
- package/dist/index.js +1 -1
- package/dist/leu-accordion.js +1 -1
- package/dist/leu-button-group.js +1 -1
- package/dist/leu-button.js +1 -1
- package/dist/leu-chart-wrapper.js +1 -1
- package/dist/leu-checkbox-group.js +1 -1
- package/dist/leu-checkbox.js +1 -1
- package/dist/leu-chip-group.js +1 -1
- package/dist/leu-chip-link.js +1 -1
- package/dist/leu-chip-removable.js +1 -1
- package/dist/leu-chip-selectable.js +1 -1
- package/dist/leu-dialog.js +1 -1
- package/dist/leu-dropdown.js +1 -1
- package/dist/leu-file-input.js +1 -1
- package/dist/leu-icon.js +1 -1
- package/dist/leu-input.js +1 -1
- package/dist/leu-menu-item.js +1 -1
- package/dist/leu-menu.js +1 -1
- package/dist/leu-message.js +1 -1
- package/dist/leu-pagination.js +1 -1
- package/dist/leu-placeholder.js +1 -1
- package/dist/leu-popup.js +1 -1
- package/dist/leu-progress-bar.js +1 -1
- package/dist/leu-radio-group.js +1 -1
- package/dist/leu-radio.js +1 -1
- package/dist/leu-range.js +1 -1
- package/dist/leu-scroll-top.js +1 -1
- package/dist/leu-select.js +1 -1
- package/dist/leu-spinner.js +1 -1
- package/dist/leu-table.js +1 -1
- package/dist/leu-tag.js +1 -1
- package/dist/leu-visually-hidden.js +1 -1
- package/dist/theme.css +1 -0
- package/dist/vscode.html-custom-data.json +44 -44
- package/dist/vue/index.d.ts +54 -54
- package/dist/web-types.json +91 -91
- package/package.json +2 -3
- package/src/components/scroll-top/scroll-top.css +20 -4
- package/src/styles/theme.css +1 -0
package/dist/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"name": "@statistikzh/leu",
|
|
4
|
-
"version": "0.24.
|
|
4
|
+
"version": "0.24.2",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -65,33 +65,6 @@
|
|
|
65
65
|
"events": []
|
|
66
66
|
}
|
|
67
67
|
},
|
|
68
|
-
{
|
|
69
|
-
"name": "leu-button-group",
|
|
70
|
-
"description": "A radio input-like button group component.\nIt allows only one button to be active at a time.\n---\n\n\n### **Events:**\n - **input** - When the value of the group changes by clicking a button\n\n### **Slots:**\n - _default_ - Slot for the buttons",
|
|
71
|
-
"doc-url": "",
|
|
72
|
-
"attributes": [],
|
|
73
|
-
"slots": [{ "name": "", "description": "Slot for the buttons" }],
|
|
74
|
-
"events": [
|
|
75
|
-
{
|
|
76
|
-
"name": "input",
|
|
77
|
-
"description": "When the value of the group changes by clicking a button"
|
|
78
|
-
}
|
|
79
|
-
],
|
|
80
|
-
"js": {
|
|
81
|
-
"properties": [
|
|
82
|
-
{
|
|
83
|
-
"name": "value",
|
|
84
|
-
"description": "The value of the currently selected (active) button"
|
|
85
|
-
}
|
|
86
|
-
],
|
|
87
|
-
"events": [
|
|
88
|
-
{
|
|
89
|
-
"name": "input",
|
|
90
|
-
"description": "When the value of the group changes by clicking a button"
|
|
91
|
-
}
|
|
92
|
-
]
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
68
|
{
|
|
96
69
|
"name": "leu-button",
|
|
97
70
|
"description": "\n---\n\n\n### **Slots:**\n - **before** - The icon to display before the label\n- **after** - The icon to display after the label\n- _default_ - The label of the button or the icon if no label is set",
|
|
@@ -238,6 +211,33 @@
|
|
|
238
211
|
"events": []
|
|
239
212
|
}
|
|
240
213
|
},
|
|
214
|
+
{
|
|
215
|
+
"name": "leu-button-group",
|
|
216
|
+
"description": "A radio input-like button group component.\nIt allows only one button to be active at a time.\n---\n\n\n### **Events:**\n - **input** - When the value of the group changes by clicking a button\n\n### **Slots:**\n - _default_ - Slot for the buttons",
|
|
217
|
+
"doc-url": "",
|
|
218
|
+
"attributes": [],
|
|
219
|
+
"slots": [{ "name": "", "description": "Slot for the buttons" }],
|
|
220
|
+
"events": [
|
|
221
|
+
{
|
|
222
|
+
"name": "input",
|
|
223
|
+
"description": "When the value of the group changes by clicking a button"
|
|
224
|
+
}
|
|
225
|
+
],
|
|
226
|
+
"js": {
|
|
227
|
+
"properties": [
|
|
228
|
+
{
|
|
229
|
+
"name": "value",
|
|
230
|
+
"description": "The value of the currently selected (active) button"
|
|
231
|
+
}
|
|
232
|
+
],
|
|
233
|
+
"events": [
|
|
234
|
+
{
|
|
235
|
+
"name": "input",
|
|
236
|
+
"description": "When the value of the group changes by clicking a button"
|
|
237
|
+
}
|
|
238
|
+
]
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
241
|
{
|
|
242
242
|
"name": "leu-chart-wrapper",
|
|
243
243
|
"description": "A wrapper element for charts.\n---\n\n\n### **Slots:**\n - **title** - The title of the chart. Use a heading tag (h2-4) depending on your context.\n- **description** - A description of the chart. Content is wrapped in a `<p>` tag by the component.\n- **chart** - The actual chart\n- **caption** - A caption for the chart, e.g. a source or explanation of the data.\n- **download** - A download button or dropdown to export the chart in different formats.",
|
|
@@ -282,29 +282,74 @@
|
|
|
282
282
|
}
|
|
283
283
|
},
|
|
284
284
|
{
|
|
285
|
-
"name": "leu-
|
|
285
|
+
"name": "leu-checkbox",
|
|
286
286
|
"description": "\n---\n",
|
|
287
287
|
"doc-url": "",
|
|
288
288
|
"attributes": [
|
|
289
289
|
{
|
|
290
|
-
"name": "
|
|
291
|
-
"value": { "type": "
|
|
290
|
+
"name": "checked",
|
|
291
|
+
"value": { "type": "boolean", "default": "false" }
|
|
292
292
|
},
|
|
293
293
|
{
|
|
294
|
-
"name": "
|
|
294
|
+
"name": "disabled",
|
|
295
|
+
"value": { "type": "boolean", "default": "false" }
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
"name": "value",
|
|
295
299
|
"value": { "type": "string", "default": "\"\"" }
|
|
296
300
|
},
|
|
301
|
+
{ "name": "name", "value": { "type": "string", "default": "\"\"" } }
|
|
302
|
+
],
|
|
303
|
+
"events": [],
|
|
304
|
+
"js": {
|
|
305
|
+
"properties": [
|
|
306
|
+
{ "name": "checked", "type": "boolean" },
|
|
307
|
+
{ "name": "disabled", "type": "boolean" },
|
|
308
|
+
{ "name": "value", "type": "string" },
|
|
309
|
+
{ "name": "name", "type": "string" }
|
|
310
|
+
],
|
|
311
|
+
"events": []
|
|
312
|
+
}
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
"name": "leu-checkbox-group",
|
|
316
|
+
"description": "\n---\n\n\n### **Slots:**\n - _default_ - Place the checkboxes inside the default slot.",
|
|
317
|
+
"doc-url": "",
|
|
318
|
+
"attributes": [
|
|
297
319
|
{
|
|
298
|
-
"name": "
|
|
299
|
-
"
|
|
320
|
+
"name": "orientation",
|
|
321
|
+
"description": "Defines how the checkboxes should be aligned.",
|
|
322
|
+
"value": {
|
|
323
|
+
"type": "\"horizontal\" | \"vertical\"",
|
|
324
|
+
"default": "\"horizontal\""
|
|
325
|
+
}
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
"name": "label",
|
|
329
|
+
"description": "The label of the checkbox group",
|
|
330
|
+
"value": { "type": "string | undefined" }
|
|
331
|
+
}
|
|
332
|
+
],
|
|
333
|
+
"slots": [
|
|
334
|
+
{
|
|
335
|
+
"name": "",
|
|
336
|
+
"description": "Place the checkboxes inside the default slot."
|
|
300
337
|
}
|
|
301
338
|
],
|
|
302
339
|
"events": [],
|
|
303
340
|
"js": {
|
|
304
341
|
"properties": [
|
|
305
|
-
{
|
|
306
|
-
|
|
307
|
-
|
|
342
|
+
{
|
|
343
|
+
"name": "orientation",
|
|
344
|
+
"description": "Defines how the checkboxes should be aligned.",
|
|
345
|
+
"type": "\"horizontal\" | \"vertical\""
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
"name": "label",
|
|
349
|
+
"description": "The label of the checkbox group",
|
|
350
|
+
"type": "string | undefined"
|
|
351
|
+
},
|
|
352
|
+
{ "name": "value" }
|
|
308
353
|
],
|
|
309
354
|
"events": []
|
|
310
355
|
}
|
|
@@ -505,74 +550,29 @@
|
|
|
505
550
|
}
|
|
506
551
|
},
|
|
507
552
|
{
|
|
508
|
-
"name": "leu-
|
|
553
|
+
"name": "leu-dialog",
|
|
509
554
|
"description": "\n---\n",
|
|
510
555
|
"doc-url": "",
|
|
511
556
|
"attributes": [
|
|
512
557
|
{
|
|
513
|
-
"name": "
|
|
514
|
-
"value": { "type": "boolean", "default": "false" }
|
|
515
|
-
},
|
|
516
|
-
{
|
|
517
|
-
"name": "disabled",
|
|
518
|
-
"value": { "type": "boolean", "default": "false" }
|
|
519
|
-
},
|
|
520
|
-
{
|
|
521
|
-
"name": "value",
|
|
558
|
+
"name": "label",
|
|
522
559
|
"value": { "type": "string", "default": "\"\"" }
|
|
523
560
|
},
|
|
524
|
-
{ "name": "name", "value": { "type": "string", "default": "\"\"" } }
|
|
525
|
-
],
|
|
526
|
-
"events": [],
|
|
527
|
-
"js": {
|
|
528
|
-
"properties": [
|
|
529
|
-
{ "name": "checked", "type": "boolean" },
|
|
530
|
-
{ "name": "disabled", "type": "boolean" },
|
|
531
|
-
{ "name": "value", "type": "string" },
|
|
532
|
-
{ "name": "name", "type": "string" }
|
|
533
|
-
],
|
|
534
|
-
"events": []
|
|
535
|
-
}
|
|
536
|
-
},
|
|
537
|
-
{
|
|
538
|
-
"name": "leu-checkbox-group",
|
|
539
|
-
"description": "\n---\n\n\n### **Slots:**\n - _default_ - Place the checkboxes inside the default slot.",
|
|
540
|
-
"doc-url": "",
|
|
541
|
-
"attributes": [
|
|
542
561
|
{
|
|
543
|
-
"name": "
|
|
544
|
-
"
|
|
545
|
-
"value": {
|
|
546
|
-
"type": "\"horizontal\" | \"vertical\"",
|
|
547
|
-
"default": "\"horizontal\""
|
|
548
|
-
}
|
|
562
|
+
"name": "sublabel",
|
|
563
|
+
"value": { "type": "string", "default": "\"\"" }
|
|
549
564
|
},
|
|
550
565
|
{
|
|
551
|
-
"name": "
|
|
552
|
-
"
|
|
553
|
-
"value": { "type": "string | undefined" }
|
|
554
|
-
}
|
|
555
|
-
],
|
|
556
|
-
"slots": [
|
|
557
|
-
{
|
|
558
|
-
"name": "",
|
|
559
|
-
"description": "Place the checkboxes inside the default slot."
|
|
566
|
+
"name": "open",
|
|
567
|
+
"value": { "type": "boolean", "default": "false" }
|
|
560
568
|
}
|
|
561
569
|
],
|
|
562
570
|
"events": [],
|
|
563
571
|
"js": {
|
|
564
572
|
"properties": [
|
|
565
|
-
{
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
"type": "\"horizontal\" | \"vertical\""
|
|
569
|
-
},
|
|
570
|
-
{
|
|
571
|
-
"name": "label",
|
|
572
|
-
"description": "The label of the checkbox group",
|
|
573
|
-
"type": "string | undefined"
|
|
574
|
-
},
|
|
575
|
-
{ "name": "value" }
|
|
573
|
+
{ "name": "label", "type": "string" },
|
|
574
|
+
{ "name": "sublabel", "type": "string" },
|
|
575
|
+
{ "name": "open", "type": "boolean" }
|
|
576
576
|
],
|
|
577
577
|
"events": []
|
|
578
578
|
}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "UI component library of the canton of zurich",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "statistikzh",
|
|
6
|
-
"version": "0.24.
|
|
6
|
+
"version": "0.24.2",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "dist/index.js",
|
|
9
9
|
"module": "dist/index.js",
|
|
@@ -129,7 +129,6 @@
|
|
|
129
129
|
"bundle": false
|
|
130
130
|
},
|
|
131
131
|
"publishConfig": {
|
|
132
|
-
"access": "public"
|
|
133
|
-
"provenance": false
|
|
132
|
+
"access": "public"
|
|
134
133
|
}
|
|
135
134
|
}
|
|
@@ -1,14 +1,30 @@
|
|
|
1
|
+
@import url("../../styles/custom-media.css");
|
|
2
|
+
|
|
1
3
|
.scroll-top {
|
|
2
4
|
overflow: hidden;
|
|
3
5
|
position: fixed;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
z-index: var(--leu-z-index-scroll-top);
|
|
7
|
+
|
|
8
|
+
--_space: 1.5rem;
|
|
9
|
+
right: var(--_space);
|
|
10
|
+
bottom: var(--_space);
|
|
7
11
|
|
|
8
12
|
/* show */
|
|
9
|
-
height:
|
|
13
|
+
height: 3rem;
|
|
10
14
|
pointer-events: auto;
|
|
11
15
|
transition: height, bottom 0.9s, 0.6s ease;
|
|
16
|
+
|
|
17
|
+
@media (--viewport-regular) {
|
|
18
|
+
--_space: 2rem;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@media (--viewport-large) {
|
|
22
|
+
--_space: 2.5rem;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@media (--viewport-xlarge) {
|
|
26
|
+
--_space: 3rem;
|
|
27
|
+
}
|
|
12
28
|
}
|
|
13
29
|
|
|
14
30
|
.hide {
|
package/src/styles/theme.css
CHANGED
|
@@ -57,6 +57,7 @@
|
|
|
57
57
|
--leu-box-shadow-long: 0px 0px 80px var(--leu-color-black-transp-20);
|
|
58
58
|
|
|
59
59
|
--leu-z-index-popup: 100;
|
|
60
|
+
--leu-z-index-scroll-top: 1099;
|
|
60
61
|
|
|
61
62
|
@leu-font-styles './font-definitions.json';
|
|
62
63
|
--leu-t-font-feature-settings: "ss07", "ss08", "cv03", "cv04", "cv10";
|