@statistikzh/leu 0.9.0 → 0.10.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.
- package/CHANGELOG.md +15 -0
- package/dist/Accordion.d.ts +1 -1
- package/dist/Accordion.js +1 -1
- package/dist/Breadcrumb.d.ts +1 -1
- package/dist/Breadcrumb.js +1 -1
- package/dist/Button.d.ts +45 -1
- package/dist/Button.d.ts.map +1 -1
- package/dist/Button.js +473 -6
- package/dist/ButtonGroup.d.ts +1 -1
- package/dist/ButtonGroup.js +1 -1
- package/dist/Checkbox.d.ts +1 -1
- package/dist/Checkbox.js +1 -1
- package/dist/CheckboxGroup.d.ts +1 -1
- package/dist/CheckboxGroup.js +1 -1
- package/dist/Chip.d.ts +1 -1
- package/dist/Chip.js +1 -1
- package/dist/ChipGroup.d.ts +1 -1
- package/dist/ChipGroup.js +2 -2
- package/dist/ChipLink.js +1 -1
- package/dist/ChipRemovable.js +1 -1
- package/dist/ChipSelectable.js +1 -1
- package/dist/Dialog.d.ts +17 -0
- package/dist/Dialog.d.ts.map +1 -0
- package/dist/Dialog.js +255 -0
- package/dist/Dropdown.d.ts +1 -1
- package/dist/Dropdown.d.ts.map +1 -1
- package/dist/Dropdown.js +3 -2
- package/dist/Icon.d.ts +1 -1
- package/dist/Icon.js +1 -1
- package/dist/Input.d.ts +1 -1
- package/dist/Input.d.ts.map +1 -1
- package/dist/Input.js +3 -1
- package/dist/{LeuElement-7ab5ef5e.d.ts → LeuElement-6fbc0dee.d.ts} +1 -1
- package/dist/LeuElement-6fbc0dee.d.ts.map +1 -0
- package/dist/{LeuElement-7ab5ef5e.js → LeuElement-6fbc0dee.js} +1 -1
- package/dist/Menu.d.ts +1 -1
- package/dist/Menu.js +1 -1
- package/dist/MenuItem.d.ts +1 -1
- package/dist/MenuItem.js +1 -1
- package/dist/Pagination.d.ts +1 -1
- package/dist/Pagination.d.ts.map +1 -1
- package/dist/Pagination.js +3 -2
- package/dist/Popup.d.ts +1 -1
- package/dist/Popup.js +1 -1
- package/dist/Radio.d.ts +1 -1
- package/dist/Radio.js +1 -1
- package/dist/RadioGroup.d.ts +1 -1
- package/dist/RadioGroup.js +1 -1
- package/dist/ScrollTop.d.ts +1 -1
- package/dist/ScrollTop.d.ts.map +1 -1
- package/dist/ScrollTop.js +3 -2
- package/dist/Select.d.ts +1 -1
- package/dist/Select.d.ts.map +1 -1
- package/dist/Select.js +3 -2
- package/dist/Spinner.d.ts +1 -1
- package/dist/Spinner.js +1 -1
- package/dist/Table.d.ts +1 -1
- package/dist/Table.d.ts.map +1 -1
- package/dist/Table.js +3 -2
- package/dist/VisuallyHidden.d.ts +1 -1
- package/dist/VisuallyHidden.js +1 -1
- package/dist/hasSlotController-04d0dfa2.d.ts +38 -0
- package/dist/hasSlotController-04d0dfa2.d.ts.map +1 -0
- package/dist/hasSlotController-04d0dfa2.js +75 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -2
- package/dist/leu-accordion.js +1 -1
- package/dist/leu-breadcrumb.js +1 -1
- package/dist/leu-button-group.js +1 -1
- package/dist/leu-button.d.ts +1 -1
- package/dist/leu-button.d.ts.map +1 -1
- package/dist/leu-button.js +3 -2
- 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.d.ts +3 -0
- package/dist/leu-dialog.d.ts.map +1 -0
- package/dist/leu-dialog.js +11 -0
- package/dist/leu-dropdown.js +3 -2
- 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-pagination.js +3 -2
- package/dist/leu-popup.js +1 -1
- package/dist/leu-radio-group.js +1 -1
- package/dist/leu-radio.js +1 -1
- package/dist/leu-scroll-top.js +3 -2
- package/dist/leu-select.js +3 -2
- package/dist/leu-spinner.js +1 -1
- package/dist/leu-table.js +3 -2
- package/dist/leu-visually-hidden.js +1 -1
- package/dist/theme.css +318 -192
- package/dist/vscode.html-custom-data.json +15 -0
- package/dist/vue/index.d.ts +19 -0
- package/dist/web-types.json +29 -1
- package/package.json +1 -1
- package/rollup.config.js +4 -1
- package/scripts/postcss-leu-font-styles.cjs +29 -35
- package/src/components/chip/chip-group.css +1 -1
- package/src/components/dialog/Dialog.js +100 -0
- package/src/components/dialog/dialog.css +162 -0
- package/src/components/dialog/leu-dialog.js +5 -0
- package/src/components/dialog/stories/dialog.stories.js +144 -0
- package/src/components/dialog/test/dialog.test.js +85 -0
- package/src/components/input/input.css +2 -0
- package/src/styles/custom-properties.css +27 -0
- package/src/styles/font-definitions.json +27 -19
- package/src/styles/style.stories.js +61 -0
- package/dist/Button-5a8009c5.d.ts +0 -83
- package/dist/Button-5a8009c5.d.ts.map +0 -1
- package/dist/Button-5a8009c5.js +0 -544
- package/dist/LeuElement-7ab5ef5e.d.ts.map +0 -1
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { html } from "lit"
|
|
2
|
+
import { fixture, expect } from "@open-wc/testing"
|
|
3
|
+
|
|
4
|
+
import "../leu-dialog.js"
|
|
5
|
+
|
|
6
|
+
async function defaultFixture() {
|
|
7
|
+
return fixture(
|
|
8
|
+
html`<leu-dialog label="Title" sublabel="Category">
|
|
9
|
+
This is the content of the dialog.
|
|
10
|
+
</leu-dialog>`
|
|
11
|
+
)
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
describe("LeuDialog", () => {
|
|
15
|
+
it("is a defined element", async () => {
|
|
16
|
+
const el = await customElements.get("leu-dialog")
|
|
17
|
+
|
|
18
|
+
expect(el).not.to.be.undefined
|
|
19
|
+
})
|
|
20
|
+
|
|
21
|
+
it("passes the a11y audit", async () => {
|
|
22
|
+
const el = await defaultFixture()
|
|
23
|
+
|
|
24
|
+
await expect(el).shadowDom.to.be.accessible()
|
|
25
|
+
})
|
|
26
|
+
|
|
27
|
+
it("passes the a11y audit when the modal is open", async () => {
|
|
28
|
+
const el = await defaultFixture()
|
|
29
|
+
|
|
30
|
+
el.show()
|
|
31
|
+
|
|
32
|
+
await expect(el).shadowDom.to.be.accessible()
|
|
33
|
+
})
|
|
34
|
+
|
|
35
|
+
it("opens the dialog when calling show()", async () => {
|
|
36
|
+
const el = await defaultFixture()
|
|
37
|
+
|
|
38
|
+
el.show()
|
|
39
|
+
|
|
40
|
+
const dialog = el.shadowRoot.querySelector("dialog")
|
|
41
|
+
|
|
42
|
+
expect(dialog.open).to.be.true
|
|
43
|
+
})
|
|
44
|
+
|
|
45
|
+
it("closes the dialog when calling close()", async () => {
|
|
46
|
+
const el = await defaultFixture()
|
|
47
|
+
|
|
48
|
+
el.show()
|
|
49
|
+
el.close()
|
|
50
|
+
|
|
51
|
+
const dialog = el.shadowRoot.querySelector("dialog")
|
|
52
|
+
|
|
53
|
+
expect(dialog.open).to.be.false
|
|
54
|
+
})
|
|
55
|
+
|
|
56
|
+
it("renders a label and a sublabel", async () => {
|
|
57
|
+
const el = await defaultFixture()
|
|
58
|
+
|
|
59
|
+
const label = el.shadowRoot.querySelector("h1")
|
|
60
|
+
const sublabel = el.shadowRoot.querySelector(".subtitle")
|
|
61
|
+
|
|
62
|
+
expect(label).to.have.text("Title")
|
|
63
|
+
expect(sublabel).to.have.text("Category")
|
|
64
|
+
})
|
|
65
|
+
|
|
66
|
+
it("renders a close button", async () => {
|
|
67
|
+
const el = await defaultFixture()
|
|
68
|
+
|
|
69
|
+
const closeButton = el.shadowRoot.querySelector(".close-button")
|
|
70
|
+
|
|
71
|
+
expect(closeButton).to.exist
|
|
72
|
+
})
|
|
73
|
+
|
|
74
|
+
it("closes the dialog when clicking the close button", async () => {
|
|
75
|
+
const el = await defaultFixture()
|
|
76
|
+
const dialog = el.shadowRoot.querySelector("dialog")
|
|
77
|
+
|
|
78
|
+
el.show()
|
|
79
|
+
|
|
80
|
+
const closeButton = el.shadowRoot.querySelector(".close-button")
|
|
81
|
+
expect(dialog.open).to.be.true
|
|
82
|
+
closeButton.click()
|
|
83
|
+
expect(dialog.open).to.be.false
|
|
84
|
+
})
|
|
85
|
+
})
|
|
@@ -54,6 +54,7 @@
|
|
|
54
54
|
|
|
55
55
|
border: var(--input-border-width) solid var(--input-border-color);
|
|
56
56
|
border-radius: 2px;
|
|
57
|
+
background: var(--leu-color-black-0);
|
|
57
58
|
|
|
58
59
|
line-height: 1;
|
|
59
60
|
}
|
|
@@ -79,6 +80,7 @@
|
|
|
79
80
|
color: var(--input-color);
|
|
80
81
|
|
|
81
82
|
border: 0;
|
|
83
|
+
background: var(--leu-color-black-0);
|
|
82
84
|
|
|
83
85
|
padding-block: 2rem 1rem;
|
|
84
86
|
}
|
|
@@ -59,4 +59,31 @@
|
|
|
59
59
|
--leu-z-index-popup: 100;
|
|
60
60
|
|
|
61
61
|
@leu-font-styles './font-definitions.json';
|
|
62
|
+
--leu-t-font-feature-settings: "ss07", "ss08", "cv03", "cv04", "cv10";
|
|
63
|
+
|
|
64
|
+
/*
|
|
65
|
+
* Grid system
|
|
66
|
+
*
|
|
67
|
+
* The design system uses a 6 columns system on smaller screens.
|
|
68
|
+
* For simplicity we use a 12 column grid for all breakpoints (zh web implementation does the same).
|
|
69
|
+
*
|
|
70
|
+
* The goal is to keep the css footprint small
|
|
71
|
+
* by not generating all classes for every cell width for every breakpoint.
|
|
72
|
+
* Most components don't need a grid and those who do probably have a very simple configuration.
|
|
73
|
+
* If we have enough use cases for a more complex grid system we can add it later.
|
|
74
|
+
*/
|
|
75
|
+
--leu-grid-gap: 1rem;
|
|
76
|
+
--leu-grid-template-columns: repeat(12, minmax(0, 4.25rem));
|
|
77
|
+
--leu-grid-max-width: 73rem;
|
|
78
|
+
|
|
79
|
+
--leu-grid-columns-full: 1 / -1;
|
|
80
|
+
--leu-grid-columns-offset: 1 / -1;
|
|
81
|
+
|
|
82
|
+
@media (--viewport-regular) {
|
|
83
|
+
--leu-grid-columns-offset: 3 / -1;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
@media (--viewport-medium) {
|
|
87
|
+
--leu-grid-gap: 2rem;
|
|
88
|
+
}
|
|
62
89
|
}
|
|
@@ -47,14 +47,14 @@
|
|
|
47
47
|
"fontWeight": "regular",
|
|
48
48
|
"lineHeight": 1.5,
|
|
49
49
|
"spacing": "13px",
|
|
50
|
-
"name": "
|
|
50
|
+
"name": "bigger-regular"
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
53
|
"fontSize": "18px",
|
|
54
54
|
"fontWeight": "black",
|
|
55
55
|
"lineHeight": 1.3,
|
|
56
56
|
"spacing": "12px",
|
|
57
|
-
"name": "
|
|
57
|
+
"name": "bigger-regular"
|
|
58
58
|
},
|
|
59
59
|
{
|
|
60
60
|
"fontSize": "20px",
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"fontWeight": "black",
|
|
90
90
|
"lineHeight": 1.2,
|
|
91
91
|
"spacing": "17px",
|
|
92
|
-
"name": "
|
|
92
|
+
"name": "small-big"
|
|
93
93
|
},
|
|
94
94
|
{
|
|
95
95
|
"fontSize": "32px",
|
|
@@ -103,14 +103,14 @@
|
|
|
103
103
|
"fontWeight": "black",
|
|
104
104
|
"lineHeight": 1.2,
|
|
105
105
|
"spacing": "24px",
|
|
106
|
-
"name": "
|
|
106
|
+
"name": "bigger-big"
|
|
107
107
|
},
|
|
108
108
|
{
|
|
109
109
|
"fontSize": "48px",
|
|
110
110
|
"fontWeight": "black",
|
|
111
111
|
"lineHeight": 1,
|
|
112
112
|
"spacing": "24px",
|
|
113
|
-
"name": "
|
|
113
|
+
"name": "small-huge"
|
|
114
114
|
},
|
|
115
115
|
{
|
|
116
116
|
"fontSize": "56px",
|
|
@@ -130,6 +130,7 @@
|
|
|
130
130
|
"curves": [
|
|
131
131
|
{
|
|
132
132
|
"name": "tiny",
|
|
133
|
+
"weights": ["regular", "black"],
|
|
133
134
|
"steps": [
|
|
134
135
|
[null, "tiny"],
|
|
135
136
|
["--viewport-regular", "small"]
|
|
@@ -137,63 +138,70 @@
|
|
|
137
138
|
},
|
|
138
139
|
{
|
|
139
140
|
"name": "small",
|
|
141
|
+
"weights": ["regular", "black"],
|
|
140
142
|
"steps": [
|
|
141
143
|
[null, "small"],
|
|
142
144
|
["--viewport-regular", "regular"],
|
|
143
|
-
["--viewport-large", "
|
|
145
|
+
["--viewport-large", "bigger-regular"]
|
|
144
146
|
]
|
|
145
147
|
},
|
|
146
148
|
{
|
|
147
149
|
"name": "regular",
|
|
150
|
+
"weights": ["regular", "black"],
|
|
148
151
|
"steps": [
|
|
149
152
|
[null, "regular"],
|
|
150
|
-
["--viewport-small", "
|
|
153
|
+
["--viewport-small", "bigger-regular"],
|
|
151
154
|
["--viewport-xlarge", "medium"]
|
|
152
155
|
]
|
|
153
156
|
},
|
|
154
157
|
{
|
|
155
|
-
"name": "
|
|
158
|
+
"name": "bigger-regular",
|
|
159
|
+
"weights": ["regular", "black"],
|
|
156
160
|
"steps": [
|
|
157
|
-
[null, "
|
|
161
|
+
[null, "bigger-regular"],
|
|
158
162
|
["--viewport-regular", "medium"],
|
|
159
163
|
["--viewport-xlarge", "large"]
|
|
160
164
|
]
|
|
161
165
|
},
|
|
162
166
|
{
|
|
163
167
|
"name": "medium",
|
|
168
|
+
"weights": ["black"],
|
|
164
169
|
"steps": [
|
|
165
|
-
[null, "
|
|
170
|
+
[null, "bigger-regular"],
|
|
166
171
|
["--viewport-small", "medium"],
|
|
167
172
|
["--viewport-large", "large"],
|
|
168
|
-
["--viewport-xlarge", "
|
|
173
|
+
["--viewport-xlarge", "small-big"]
|
|
169
174
|
]
|
|
170
175
|
},
|
|
171
176
|
{
|
|
172
177
|
"name": "large",
|
|
178
|
+
"weights": ["black"],
|
|
173
179
|
"steps": [
|
|
174
|
-
[null, "
|
|
180
|
+
[null, "bigger-regular"],
|
|
175
181
|
["--viewport-regular", "large"],
|
|
176
|
-
["--viewport-large", "
|
|
182
|
+
["--viewport-large", "small-big"],
|
|
177
183
|
["--viewport-xlarge", "big"]
|
|
178
184
|
]
|
|
179
185
|
},
|
|
180
186
|
{
|
|
181
187
|
"name": "big",
|
|
188
|
+
"weights": ["black"],
|
|
182
189
|
"steps": [
|
|
183
190
|
[null, "large"],
|
|
184
|
-
["--viewport-regular", "
|
|
191
|
+
["--viewport-regular", "small-big"],
|
|
185
192
|
["--viewport-medium", "big"],
|
|
186
|
-
["--viewport-large", "
|
|
187
|
-
["--viewport-xlarge", "
|
|
193
|
+
["--viewport-large", "bigger-big"],
|
|
194
|
+
["--viewport-xlarge", "small-huge"]
|
|
188
195
|
]
|
|
189
196
|
},
|
|
190
197
|
{
|
|
191
198
|
"name": "huge",
|
|
199
|
+
"weights": ["black"],
|
|
192
200
|
"steps": [
|
|
193
|
-
[null, "
|
|
201
|
+
[null, "small-big"],
|
|
194
202
|
["--viewport-small", "big"],
|
|
195
|
-
["--viewport-regular", "
|
|
196
|
-
["--viewport-medium", "
|
|
203
|
+
["--viewport-regular", "bigger-big"],
|
|
204
|
+
["--viewport-medium", "small-huge"],
|
|
197
205
|
["--viewport-large", "huge"],
|
|
198
206
|
["--viewport-xlarge", "giant"]
|
|
199
207
|
]
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { html } from "lit"
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
title: "Layout",
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
function Template() {
|
|
8
|
+
return html` <style>
|
|
9
|
+
.container {
|
|
10
|
+
display: grid;
|
|
11
|
+
grid-template-columns: var(--leu-grid-template-columns);
|
|
12
|
+
gap: var(--leu-grid-gap);
|
|
13
|
+
max-width: var(--leu-grid-max-width);
|
|
14
|
+
|
|
15
|
+
margin: 0 auto;
|
|
16
|
+
padding: 1rem;
|
|
17
|
+
|
|
18
|
+
background-color: var(--leu-color-black-5);
|
|
19
|
+
font-family: var(--leu-font-family-regular);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.container div {
|
|
23
|
+
background-color: var(--leu-color-black-transp-5);
|
|
24
|
+
padding: 1rem;
|
|
25
|
+
}
|
|
26
|
+
</style>
|
|
27
|
+
<div class="container">
|
|
28
|
+
<div style="grid-column-end: span 12;">
|
|
29
|
+
<p>
|
|
30
|
+
This story demonstrates the use of the predefined grid custom
|
|
31
|
+
properties. It is not a component that can be reused.
|
|
32
|
+
</p>
|
|
33
|
+
</div>
|
|
34
|
+
<div style="grid-column: var(--leu-grid-columns-full)">
|
|
35
|
+
<pre>--leu-grid-columns-full</pre>
|
|
36
|
+
<p>A preset to use the full width of the grid</p>
|
|
37
|
+
</div>
|
|
38
|
+
<div style="grid-column: var(--leu-grid-columns-offset)">
|
|
39
|
+
<pre>--leu-grid-columns-offset</pre>
|
|
40
|
+
<p>
|
|
41
|
+
A preset that indents the content by two columns starting at the
|
|
42
|
+
regular breakpoint. On smaller breakpoints it will use the full width.
|
|
43
|
+
</p>
|
|
44
|
+
</div>
|
|
45
|
+
|
|
46
|
+
${[
|
|
47
|
+
[2, 2, 2, 2, 2, 2],
|
|
48
|
+
[3, 3, 3, 3],
|
|
49
|
+
[4, 4, 4],
|
|
50
|
+
[6, 6],
|
|
51
|
+
]
|
|
52
|
+
.flat()
|
|
53
|
+
.map(
|
|
54
|
+
(columns) =>
|
|
55
|
+
html`<div style="grid-column-end: span ${columns}">${columns}</div>`
|
|
56
|
+
)}
|
|
57
|
+
</div>`
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export const Regular = Template.bind({})
|
|
61
|
+
Regular.args = {}
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A reactive controller that determines when slots exist.
|
|
3
|
-
*/
|
|
4
|
-
export type ReactiveController = import("lit").ReactiveController;
|
|
5
|
-
declare const BUTTON_VARIANTS: string[];
|
|
6
|
-
/**
|
|
7
|
-
* Thanks Shoelace!
|
|
8
|
-
* Source: https://github.com/shoelace-style/shoelace/blob/next/src/internal/slot.ts
|
|
9
|
-
*/
|
|
10
|
-
/**
|
|
11
|
-
* A reactive controller that determines when slots exist.
|
|
12
|
-
* @typedef {import("lit").ReactiveController} ReactiveController
|
|
13
|
-
* @implements {ReactiveController}
|
|
14
|
-
*/
|
|
15
|
-
declare class HasSlotController implements ReactiveController {
|
|
16
|
-
constructor(host: any, slotNames: any);
|
|
17
|
-
host: any;
|
|
18
|
-
slotNames: any;
|
|
19
|
-
/**
|
|
20
|
-
* @private
|
|
21
|
-
* @returns {Boolean}
|
|
22
|
-
*/
|
|
23
|
-
private hasDefaultSlot;
|
|
24
|
-
/**
|
|
25
|
-
* @private
|
|
26
|
-
* @param {String} name
|
|
27
|
-
* @returns {Boolean}
|
|
28
|
-
*/
|
|
29
|
-
private hasNamedSlot;
|
|
30
|
-
/**
|
|
31
|
-
* @param {String} slotName
|
|
32
|
-
* @returns {Boolean}
|
|
33
|
-
*/
|
|
34
|
-
test(slotName: string): boolean;
|
|
35
|
-
hostConnected(): void;
|
|
36
|
-
hostDisconnected(): void;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* @tagname leu-button
|
|
40
|
-
* @slot before - The icon to display before the label
|
|
41
|
-
* @slot after - The icon to display after the label
|
|
42
|
-
* @slot - The label of the button or the icon if no label is set
|
|
43
|
-
*/
|
|
44
|
-
declare class LeuButton extends LeuElement {
|
|
45
|
-
label: any;
|
|
46
|
-
/** @type {string} */
|
|
47
|
-
size: string;
|
|
48
|
-
/** @type {string} */
|
|
49
|
-
variant: string;
|
|
50
|
-
/** @type {"button" | "submit" | "reset"} */
|
|
51
|
-
type: "button" | "submit" | "reset";
|
|
52
|
-
/** @type {string} */
|
|
53
|
-
componentRole: string;
|
|
54
|
-
/** @type {boolean} */
|
|
55
|
-
disabled: boolean;
|
|
56
|
-
/** @type {boolean} - Only taken into account if no Label and an Icon is set */
|
|
57
|
-
round: boolean;
|
|
58
|
-
/** @type {boolean} */
|
|
59
|
-
active: boolean;
|
|
60
|
-
/** @type {boolean} - will be used on dark Background */
|
|
61
|
-
inverted: boolean;
|
|
62
|
-
/** @type {boolean} - Alters the shape of the button to be full width of its parent container */
|
|
63
|
-
fluid: boolean;
|
|
64
|
-
/**
|
|
65
|
-
* Only taken into account if variant is "ghost"
|
|
66
|
-
* @type {("true" | "false" | undefined)}
|
|
67
|
-
*/
|
|
68
|
-
expanded: ("true" | "false" | undefined);
|
|
69
|
-
renderExpandingIcon(): import("lit-html").TemplateResult<1> | typeof nothing;
|
|
70
|
-
getAriaAttributes(): {
|
|
71
|
-
role: string;
|
|
72
|
-
label: any;
|
|
73
|
-
};
|
|
74
|
-
hasTextContent(): boolean;
|
|
75
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
76
|
-
}
|
|
77
|
-
declare const BUTTON_SIZES: string[];
|
|
78
|
-
declare const BUTTON_TYPES: string[];
|
|
79
|
-
declare const BUTTON_EXPANDED_OPTIONS: string[];
|
|
80
|
-
import { L as LeuElement } from './LeuElement-7ab5ef5e.js';
|
|
81
|
-
import { nothing } from 'lit';
|
|
82
|
-
export { BUTTON_VARIANTS as B, HasSlotController as H, LeuButton as L, BUTTON_SIZES as a, BUTTON_TYPES as b, BUTTON_EXPANDED_OPTIONS as c };
|
|
83
|
-
//# sourceMappingURL=Button-5a8009c5.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Button-5a8009c5.d.ts","sourceRoot":"","sources":["Button-5a8009c5.js"],"names":[],"mappings":";;;iCAaa,OAAO,KAAK,EAAE,kBAAkB;AAwW7C,wCAA0D;AA/W1D;;;GAGG;AAEH;;;;GAIG;AACH;IACE,uCAcC;IAHC,UAAgB;IAEhB,eAA0B;IAG5B;;;OAGG;IACH,uBAeC;IAED;;;;OAIG;IACH,qBAEC;IAED;;;OAGG;IACH,gCAEC;IACD,sBAEC;IACD,yBAEC;CACF;AAkTD;;;;;GAKG;AACH;IAQI,WAAiB;IACjB,qBAAqB;IACrB,MADW,MAAM,CACI;IACrB,qBAAqB;IACrB,SADW,MAAM,CACO;IACxB,4CAA4C;IAC5C,MADW,QAAQ,GAAG,QAAQ,GAAG,OAAO,CACpB;IAEpB,qBAAqB;IACrB,eADW,MAAM,CACa;IAE9B,sBAAsB;IACtB,UADW,OAAO,CACG;IACrB,+EAA+E;IAC/E,OADW,OAAO,CACA;IAClB,sBAAsB;IACtB,QADW,OAAO,CACC;IACnB,wDAAwD;IACxD,UADW,OAAO,CACG;IAErB,gGAAgG;IAChG,OADW,OAAO,CACA;IAElB;;;OAGG;IACH,UAFU,CAAC,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC,CAEf;IAE3B,6EAOC;IACD;;;MAaC;IACD,0BAEC;IACD,+CAiCC;CACF;AA7GD,qCAA0C;AAE1C,qCAAmD;AAEnD,gDAAkD;gCA3XI,0BAA0B;wBAC7C,KAAK"}
|