@statistikzh/leu 0.13.0 → 0.13.1
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/.storybook/preview-head.html +1 -4
- package/.storybook/static/fonts/Inter-Black.woff2 +0 -0
- package/.storybook/static/fonts/Inter-Regular.woff2 +0 -0
- package/.storybook/static/fonts.css +11 -0
- package/CHANGELOG.md +11 -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 +1 -1
- package/dist/Button.d.ts.map +1 -1
- package/dist/Button.js +64 -34
- 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.d.ts.map +1 -1
- package/dist/Chip.js +5 -4
- package/dist/ChipGroup.d.ts +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.d.ts +1 -1
- package/dist/Dialog.js +2 -2
- 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.d.ts.map +1 -1
- package/dist/Icon.js +6 -2
- package/dist/Input.d.ts +1 -1
- package/dist/Input.js +1 -1
- package/dist/{LeuElement-874a297c.d.ts → LeuElement-b670d77c.d.ts} +1 -1
- package/dist/LeuElement-b670d77c.d.ts.map +1 -0
- package/dist/{LeuElement-874a297c.js → LeuElement-b670d77c.js} +11 -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.js +2 -2
- package/dist/Popup.d.ts +1 -1
- package/dist/Popup.d.ts.map +1 -1
- package/dist/Popup.js +2 -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/Range.d.ts +1 -1
- package/dist/Range.js +1 -1
- package/dist/ScrollTop.d.ts +1 -1
- package/dist/ScrollTop.js +2 -2
- package/dist/Select.d.ts +1 -1
- package/dist/Select.js +3 -3
- package/dist/Spinner.d.ts +1 -1
- package/dist/Spinner.js +1 -1
- package/dist/Table.d.ts +1 -1
- package/dist/Table.js +2 -2
- package/dist/VisuallyHidden.d.ts +1 -1
- package/dist/VisuallyHidden.js +1 -1
- package/dist/{hasSlotController-dbcac394.d.ts → hasSlotController-c09741c5.d.ts} +1 -1
- package/dist/{hasSlotController-dbcac394.d.ts.map → hasSlotController-c09741c5.d.ts.map} +1 -1
- package/dist/{hasSlotController-dbcac394.js → hasSlotController-c09741c5.js} +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -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.js +2 -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.js +2 -2
- package/dist/leu-dropdown.js +2 -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 +2 -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-range.js +1 -1
- package/dist/leu-scroll-top.js +2 -2
- package/dist/leu-select.js +2 -2
- package/dist/leu-spinner.js +1 -1
- package/dist/leu-table.js +2 -2
- package/dist/leu-visually-hidden.js +1 -1
- package/dist/web-types.json +1 -1
- package/index.js +1 -0
- package/package.json +1 -1
- package/src/components/button/Button.js +8 -3
- package/src/components/button/button.css +56 -22
- package/src/components/button/stories/button.stories.js +1 -0
- package/src/components/button/test/button.test.js +3 -3
- package/src/components/chip/chip.css +4 -3
- package/src/components/chip/stories/chip-selectable.stories.js +1 -1
- package/src/components/dropdown/dropdown.css +1 -0
- package/src/components/icon/icon.css +4 -0
- package/src/components/popup/popup.css +1 -0
- package/src/components/select/select.css +1 -1
- package/src/components/select/test/select.test.js +1 -0
- package/src/styles/common-styles.css +9 -0
- package/web-test-runner.config.mjs +1 -0
- package/dist/LeuElement-874a297c.d.ts.map +0 -1
package/dist/RadioGroup.js
CHANGED
package/dist/Range.d.ts
CHANGED
|
@@ -56,5 +56,5 @@ export class LeuRange extends LeuElement {
|
|
|
56
56
|
}): void;
|
|
57
57
|
render(): import("lit-html").TemplateResult<1>;
|
|
58
58
|
}
|
|
59
|
-
import { L as LeuElement } from './LeuElement-
|
|
59
|
+
import { L as LeuElement } from './LeuElement-b670d77c.js';
|
|
60
60
|
//# sourceMappingURL=Range.d.ts.map
|
package/dist/Range.js
CHANGED
package/dist/ScrollTop.d.ts
CHANGED
|
@@ -15,5 +15,5 @@ export class LeuScrollTop extends LeuElement {
|
|
|
15
15
|
_scrollListener: Function;
|
|
16
16
|
render(): import("lit-html").TemplateResult<1>;
|
|
17
17
|
}
|
|
18
|
-
import { L as LeuElement } from './LeuElement-
|
|
18
|
+
import { L as LeuElement } from './LeuElement-b670d77c.js';
|
|
19
19
|
//# sourceMappingURL=ScrollTop.d.ts.map
|
package/dist/ScrollTop.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { _ as _defineProperty, L as LeuElement } from './LeuElement-
|
|
1
|
+
import { _ as _defineProperty, L as LeuElement } from './LeuElement-b670d77c.js';
|
|
2
2
|
import { css, html } from 'lit';
|
|
3
3
|
import { classMap } from 'lit/directives/class-map.js';
|
|
4
4
|
import { LeuButton } from './Button.js';
|
|
5
5
|
import { LeuIcon } from './Icon.js';
|
|
6
6
|
import { t as throttle } from './utils-65469421.js';
|
|
7
7
|
import 'lit/directives/if-defined.js';
|
|
8
|
-
import './hasSlotController-
|
|
8
|
+
import './hasSlotController-c09741c5.js';
|
|
9
9
|
|
|
10
10
|
var css_248z = css`.scroll-top {
|
|
11
11
|
overflow: hidden;
|
package/dist/Select.d.ts
CHANGED
|
@@ -131,6 +131,6 @@ export class LeuSelect extends LeuElement {
|
|
|
131
131
|
_renderToggleButton(): import("lit-html").TemplateResult<1>;
|
|
132
132
|
render(): import("lit-html").TemplateResult<1>;
|
|
133
133
|
}
|
|
134
|
-
import { L as LeuElement } from './LeuElement-
|
|
134
|
+
import { L as LeuElement } from './LeuElement-b670d77c.js';
|
|
135
135
|
import { nothing } from 'lit';
|
|
136
136
|
//# sourceMappingURL=Select.d.ts.map
|
package/dist/Select.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { _ as _defineProperty, L as LeuElement } from './LeuElement-
|
|
1
|
+
import { _ as _defineProperty, L as LeuElement } from './LeuElement-b670d77c.js';
|
|
2
2
|
import { css, nothing, html } from 'lit';
|
|
3
3
|
import { classMap } from 'lit/directives/class-map.js';
|
|
4
4
|
import { createRef, ref } from 'lit/directives/ref.js';
|
|
5
5
|
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
6
|
-
import { H as HasSlotController } from './hasSlotController-
|
|
6
|
+
import { H as HasSlotController } from './hasSlotController-c09741c5.js';
|
|
7
7
|
import { LeuButton } from './Button.js';
|
|
8
8
|
import { LeuMenu } from './Menu.js';
|
|
9
9
|
import { LeuMenuItem } from './MenuItem.js';
|
|
@@ -79,7 +79,7 @@ var css_248z = css`:host {
|
|
|
79
79
|
line-height: 1.5;
|
|
80
80
|
padding: 1.375rem 3rem 1.375rem 1rem;
|
|
81
81
|
|
|
82
|
-
background:
|
|
82
|
+
background: var(--leu-color-black-0);
|
|
83
83
|
overflow: hidden;
|
|
84
84
|
text-overflow: ellipsis;
|
|
85
85
|
white-space: nowrap;
|
package/dist/Spinner.d.ts
CHANGED
package/dist/Spinner.js
CHANGED
package/dist/Table.d.ts
CHANGED
|
@@ -38,5 +38,5 @@ export class LeuTable extends LeuElement {
|
|
|
38
38
|
get _data(): any[];
|
|
39
39
|
render(): import("lit-html").TemplateResult<1>;
|
|
40
40
|
}
|
|
41
|
-
import { L as LeuElement } from './LeuElement-
|
|
41
|
+
import { L as LeuElement } from './LeuElement-b670d77c.js';
|
|
42
42
|
//# sourceMappingURL=Table.d.ts.map
|
package/dist/Table.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as _defineProperty, L as LeuElement } from './LeuElement-
|
|
1
|
+
import { _ as _defineProperty, L as LeuElement } from './LeuElement-b670d77c.js';
|
|
2
2
|
import { css, html, nothing } from 'lit';
|
|
3
3
|
import { classMap } from 'lit/directives/class-map.js';
|
|
4
4
|
import { styleMap } from 'lit/directives/style-map.js';
|
|
@@ -8,7 +8,7 @@ import { LeuPagination } from './Pagination.js';
|
|
|
8
8
|
import 'lit/directives/live.js';
|
|
9
9
|
import './Button.js';
|
|
10
10
|
import 'lit/directives/if-defined.js';
|
|
11
|
-
import './hasSlotController-
|
|
11
|
+
import './hasSlotController-c09741c5.js';
|
|
12
12
|
import './VisuallyHidden.js';
|
|
13
13
|
|
|
14
14
|
var css_248z = css`:host {
|
package/dist/VisuallyHidden.d.ts
CHANGED
|
@@ -4,5 +4,5 @@
|
|
|
4
4
|
export class LeuVisuallyHidden extends LeuElement {
|
|
5
5
|
render(): import("lit-html").TemplateResult<1>;
|
|
6
6
|
}
|
|
7
|
-
import { L as LeuElement } from './LeuElement-
|
|
7
|
+
import { L as LeuElement } from './LeuElement-b670d77c.js';
|
|
8
8
|
//# sourceMappingURL=VisuallyHidden.d.ts.map
|
package/dist/VisuallyHidden.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hasSlotController-
|
|
1
|
+
{"version":3,"file":"hasSlotController-c09741c5.d.ts","sourceRoot":"","sources":["hasSlotController-c09741c5.js"],"names":[],"mappings":";;;;iCASa,OAAO,KAAK,EAAE,kBAAkB;AAP7C;;;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"}
|
package/dist/index.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export { LeuRadio } from "./Radio.js";
|
|
|
16
16
|
export { LeuRadioGroup } from "./RadioGroup.js";
|
|
17
17
|
export { LeuSelect } from "./Select.js";
|
|
18
18
|
export { LeuTable } from "./Table.js";
|
|
19
|
+
export { L as LeuElement } from "./LeuElement-b670d77c.js";
|
|
19
20
|
export { BUTTON_EXPANDED_OPTIONS, BUTTON_SIZES, BUTTON_TYPES, BUTTON_VARIANTS, LeuButton } from "./Button.js";
|
|
20
21
|
export { LeuInput, SIZES } from "./Input.js";
|
|
21
22
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -18,7 +18,7 @@ export { LeuRadio } from './Radio.js';
|
|
|
18
18
|
export { LeuRadioGroup } from './RadioGroup.js';
|
|
19
19
|
export { LeuSelect } from './Select.js';
|
|
20
20
|
export { LeuTable } from './Table.js';
|
|
21
|
-
|
|
21
|
+
export { L as LeuElement } from './LeuElement-b670d77c.js';
|
|
22
22
|
import 'lit';
|
|
23
23
|
import 'lit/static-html.js';
|
|
24
24
|
import 'lit/directives/ref.js';
|
|
@@ -27,7 +27,7 @@ import './utils-65469421.js';
|
|
|
27
27
|
import './Icon.js';
|
|
28
28
|
import './VisuallyHidden.js';
|
|
29
29
|
import 'lit/directives/if-defined.js';
|
|
30
|
-
import './hasSlotController-
|
|
30
|
+
import './hasSlotController-c09741c5.js';
|
|
31
31
|
import './Chip.js';
|
|
32
32
|
import 'lit/directives/live.js';
|
|
33
33
|
import '@floating-ui/dom';
|
package/dist/leu-accordion.js
CHANGED
package/dist/leu-breadcrumb.js
CHANGED
package/dist/leu-button-group.js
CHANGED
package/dist/leu-button.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { LeuButton } from './Button.js';
|
|
2
|
-
import './LeuElement-
|
|
2
|
+
import './LeuElement-b670d77c.js';
|
|
3
3
|
import 'lit';
|
|
4
4
|
import 'lit/directives/class-map.js';
|
|
5
5
|
import 'lit/directives/if-defined.js';
|
|
6
6
|
import './Icon.js';
|
|
7
|
-
import './hasSlotController-
|
|
7
|
+
import './hasSlotController-c09741c5.js';
|
|
8
8
|
|
|
9
9
|
LeuButton.define("leu-button");
|
|
10
10
|
|
package/dist/leu-checkbox.js
CHANGED
package/dist/leu-chip-group.js
CHANGED
package/dist/leu-chip-link.js
CHANGED
package/dist/leu-dialog.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { LeuDialog } from './Dialog.js';
|
|
2
|
-
import './LeuElement-
|
|
2
|
+
import './LeuElement-b670d77c.js';
|
|
3
3
|
import 'lit';
|
|
4
4
|
import 'lit/directives/ref.js';
|
|
5
5
|
import 'lit/directives/class-map.js';
|
|
6
|
-
import './hasSlotController-
|
|
6
|
+
import './hasSlotController-c09741c5.js';
|
|
7
7
|
import './Icon.js';
|
|
8
8
|
|
|
9
9
|
LeuDialog.define("leu-dialog");
|
package/dist/leu-dropdown.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { LeuDropdown } from './Dropdown.js';
|
|
2
|
-
import './LeuElement-
|
|
2
|
+
import './LeuElement-b670d77c.js';
|
|
3
3
|
import 'lit';
|
|
4
4
|
import 'lit/directives/ref.js';
|
|
5
|
-
import './hasSlotController-
|
|
5
|
+
import './hasSlotController-c09741c5.js';
|
|
6
6
|
import './Button.js';
|
|
7
7
|
import 'lit/directives/class-map.js';
|
|
8
8
|
import 'lit/directives/if-defined.js';
|
package/dist/leu-icon.js
CHANGED
package/dist/leu-input.js
CHANGED
package/dist/leu-menu-item.js
CHANGED
package/dist/leu-menu.js
CHANGED
package/dist/leu-pagination.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { LeuPagination } from './Pagination.js';
|
|
2
|
-
import './LeuElement-
|
|
2
|
+
import './LeuElement-b670d77c.js';
|
|
3
3
|
import 'lit';
|
|
4
4
|
import 'lit/directives/live.js';
|
|
5
5
|
import './Button.js';
|
|
6
6
|
import 'lit/directives/class-map.js';
|
|
7
7
|
import 'lit/directives/if-defined.js';
|
|
8
8
|
import './Icon.js';
|
|
9
|
-
import './hasSlotController-
|
|
9
|
+
import './hasSlotController-c09741c5.js';
|
|
10
10
|
import './VisuallyHidden.js';
|
|
11
11
|
|
|
12
12
|
LeuPagination.define("leu-pagination");
|
package/dist/leu-popup.js
CHANGED
package/dist/leu-radio-group.js
CHANGED
package/dist/leu-radio.js
CHANGED
package/dist/leu-range.js
CHANGED
package/dist/leu-scroll-top.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { LeuScrollTop } from './ScrollTop.js';
|
|
2
|
-
import './LeuElement-
|
|
2
|
+
import './LeuElement-b670d77c.js';
|
|
3
3
|
import 'lit';
|
|
4
4
|
import 'lit/directives/class-map.js';
|
|
5
5
|
import './Button.js';
|
|
6
6
|
import 'lit/directives/if-defined.js';
|
|
7
7
|
import './Icon.js';
|
|
8
|
-
import './hasSlotController-
|
|
8
|
+
import './hasSlotController-c09741c5.js';
|
|
9
9
|
import './utils-65469421.js';
|
|
10
10
|
|
|
11
11
|
LeuScrollTop.define("leu-scroll-top");
|
package/dist/leu-select.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { LeuSelect } from './Select.js';
|
|
2
|
-
import './LeuElement-
|
|
2
|
+
import './LeuElement-b670d77c.js';
|
|
3
3
|
import 'lit';
|
|
4
4
|
import 'lit/directives/class-map.js';
|
|
5
5
|
import 'lit/directives/ref.js';
|
|
6
6
|
import 'lit/directives/if-defined.js';
|
|
7
|
-
import './hasSlotController-
|
|
7
|
+
import './hasSlotController-c09741c5.js';
|
|
8
8
|
import './Button.js';
|
|
9
9
|
import './Icon.js';
|
|
10
10
|
import './Menu.js';
|
package/dist/leu-spinner.js
CHANGED
package/dist/leu-table.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LeuTable } from './Table.js';
|
|
2
|
-
import './LeuElement-
|
|
2
|
+
import './LeuElement-b670d77c.js';
|
|
3
3
|
import 'lit';
|
|
4
4
|
import 'lit/directives/class-map.js';
|
|
5
5
|
import 'lit/directives/style-map.js';
|
|
@@ -9,7 +9,7 @@ import './Pagination.js';
|
|
|
9
9
|
import 'lit/directives/live.js';
|
|
10
10
|
import './Button.js';
|
|
11
11
|
import 'lit/directives/if-defined.js';
|
|
12
|
-
import './hasSlotController-
|
|
12
|
+
import './hasSlotController-c09741c5.js';
|
|
13
13
|
import './VisuallyHidden.js';
|
|
14
14
|
|
|
15
15
|
LeuTable.define("leu-table");
|
package/dist/web-types.json
CHANGED
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -110,7 +110,7 @@ export class LeuButton extends LeuElement {
|
|
|
110
110
|
|
|
111
111
|
renderExpandingIcon() {
|
|
112
112
|
if (typeof this.expanded !== "undefined" && this.variant === "ghost") {
|
|
113
|
-
return html`<div class="icon-
|
|
113
|
+
return html`<div class="icon-expanded">
|
|
114
114
|
<leu-icon name="angleDropDown" size="24"></leu-icon>
|
|
115
115
|
</div>`
|
|
116
116
|
}
|
|
@@ -170,9 +170,14 @@ export class LeuButton extends LeuElement {
|
|
|
170
170
|
?disabled=${this.disabled}
|
|
171
171
|
type=${this.type}
|
|
172
172
|
>
|
|
173
|
-
<
|
|
173
|
+
<div class="icon-wrapper icon-wrapper--before">
|
|
174
|
+
<slot name="before" class="icon-wrapper__slot"></slot>
|
|
175
|
+
</div>
|
|
174
176
|
<span class="content"><slot></slot></span>
|
|
175
|
-
<
|
|
177
|
+
<div class="icon-wrapper icon-wrapper--after">
|
|
178
|
+
<slot name="after" class="icon-wrapper__slot"></slot>
|
|
179
|
+
</div>
|
|
180
|
+
|
|
176
181
|
${this.renderExpandingIcon()}
|
|
177
182
|
</button>
|
|
178
183
|
`
|
|
@@ -128,6 +128,7 @@ button.ghost {
|
|
|
128
128
|
padding: 0 0.5rem;
|
|
129
129
|
color: var(--leu-color-black-60);
|
|
130
130
|
font-family: var(--leu-font-family-regular);
|
|
131
|
+
height: 2rem;
|
|
131
132
|
}
|
|
132
133
|
|
|
133
134
|
button.ghost:hover {
|
|
@@ -206,49 +207,82 @@ button.ghost.inverted:disabled {
|
|
|
206
207
|
display: block;
|
|
207
208
|
}
|
|
208
209
|
|
|
209
|
-
.
|
|
210
|
-
|
|
210
|
+
.icon-wrapper {
|
|
211
|
+
display: none;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.icon-before .icon-wrapper--before,
|
|
215
|
+
.icon-after .icon-wrapper--after {
|
|
211
216
|
display: block;
|
|
212
|
-
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.ghost .icon-wrapper {
|
|
220
|
+
position: relative;
|
|
221
|
+
width: 2rem;
|
|
222
|
+
padding: 0 0.5rem;
|
|
223
|
+
--_bg: var(--leu-color-black-transp-10);
|
|
224
|
+
--_color: currentcolor;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.ghost .icon-wrapper__slot {
|
|
228
|
+
display: block;
|
|
229
|
+
position: relative;
|
|
230
|
+
z-index: 1;
|
|
231
|
+
color: var(--_color);
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
.ghost .icon-wrapper::before {
|
|
235
|
+
content: "";
|
|
236
|
+
position: absolute;
|
|
237
|
+
z-index: 0;
|
|
238
|
+
left: 0;
|
|
239
|
+
top: -0.5rem;
|
|
240
|
+
|
|
241
|
+
width: 2rem;
|
|
242
|
+
aspect-ratio: 1;
|
|
213
243
|
border-radius: 50%;
|
|
214
|
-
background: var(--
|
|
244
|
+
background: var(--_bg);
|
|
215
245
|
}
|
|
216
246
|
|
|
217
|
-
.ghost.active
|
|
218
|
-
|
|
219
|
-
|
|
247
|
+
.ghost.active .icon-wrapper {
|
|
248
|
+
--_bg: var(--leu-color-black-100);
|
|
249
|
+
--_color: var(--leu-color-black-0);
|
|
220
250
|
}
|
|
221
251
|
|
|
222
|
-
.ghost:disabled
|
|
223
|
-
|
|
252
|
+
.ghost:disabled .icon-wrapper {
|
|
253
|
+
--_bg: var(--leu-color-black-transp-5);
|
|
224
254
|
}
|
|
225
255
|
|
|
226
256
|
/* inverted */
|
|
227
257
|
|
|
228
|
-
.ghost.inverted
|
|
229
|
-
|
|
258
|
+
.ghost.inverted .icon-wrapper {
|
|
259
|
+
--_bg: var(--leu-color-black-transp-20);
|
|
230
260
|
}
|
|
231
261
|
|
|
232
|
-
.ghost.inverted:hover
|
|
233
|
-
|
|
234
|
-
|
|
262
|
+
.ghost.inverted:hover .icon-wrapper {
|
|
263
|
+
--_bg: var(--leu-color-black-transp-40);
|
|
264
|
+
--_color: var(--leu-color-black-0);
|
|
235
265
|
}
|
|
236
266
|
|
|
237
|
-
.ghost.inverted:disabled
|
|
238
|
-
|
|
239
|
-
|
|
267
|
+
.ghost.inverted:disabled .icon-wrapper {
|
|
268
|
+
--_bg: var(--leu-color-black-transp-20);
|
|
269
|
+
--_color: var(--leu-color-white-transp-70);
|
|
240
270
|
}
|
|
241
271
|
|
|
242
|
-
.ghost.active.inverted
|
|
243
|
-
|
|
244
|
-
|
|
272
|
+
.ghost.active.inverted .icon-wrapper {
|
|
273
|
+
--_bg: var(--leu-color-black-0);
|
|
274
|
+
--_color: var(--leu-color-black-100);
|
|
245
275
|
}
|
|
246
276
|
|
|
247
277
|
/* Expanded icon */
|
|
248
|
-
.icon-
|
|
278
|
+
.icon-expanded leu-icon {
|
|
279
|
+
display: block;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.icon-expanded {
|
|
249
283
|
transition: transform 0.1s ease;
|
|
250
284
|
}
|
|
251
285
|
|
|
252
|
-
:host([expanded="
|
|
286
|
+
:host([expanded="true"]) .icon-expanded {
|
|
253
287
|
transform: rotate(180deg);
|
|
254
288
|
}
|