@zanichelli/albe-web-components 19.2.6 → 19.2.7
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 +10 -0
- package/dist/cjs/index-D_S5lGcb.js +4 -4
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/web-components-library.cjs.js +1 -1
- package/dist/cjs/z-alert.cjs.entry.js +1 -1
- package/dist/cjs/z-app-header_12.cjs.entry.js +126 -198
- package/dist/cjs/z-combobox.cjs.entry.js +5 -3
- package/dist/cjs/z-myz-card-alert.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-footer.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-icon.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-info.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-list.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card_4.cjs.entry.js +4 -4
- package/dist/cjs/z-myz-list-item.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-list.cjs.entry.js +1 -1
- package/dist/cjs/z-otp.cjs.entry.js +2 -2
- package/dist/cjs/z-skip-to-content.cjs.entry.js +1 -1
- package/dist/cjs/z-stepper-item.cjs.entry.js +1 -1
- package/dist/cjs/z-stepper.cjs.entry.js +1 -1
- package/dist/cjs/z-td.cjs.entry.js +3 -3
- package/dist/cjs/z-th.cjs.entry.js +5 -3
- package/dist/cjs/z-toast-notification-list.cjs.entry.js +1 -1
- package/dist/cjs/z-toast-notification.cjs.entry.js +3 -3
- package/dist/cjs/z-toggle-button.cjs.entry.js +2 -2
- package/dist/cjs/z-toggle-switch.cjs.entry.js +3 -3
- package/dist/cjs/z-tool.cjs.entry.js +2 -2
- package/dist/cjs/z-toolbar.cjs.entry.js +1 -1
- package/dist/cjs/z-tooltip.cjs.entry.js +1 -1
- package/dist/collection/components/css-components/z-scrollbar/styles.css +40 -0
- package/dist/collection/components/table/cells/{z-td/styles.css → z-table-cells.css} +0 -1
- package/dist/collection/components/table/cells/z-td/index.js +3 -3
- package/dist/collection/components/table/cells/z-th/index.js +3 -3
- package/dist/collection/components/table/cells/z-th/styles.css +0 -72
- package/dist/collection/components/z-combobox/index.js +3 -3
- package/dist/collection/components/z-combobox/styles.css +0 -12
- package/dist/collection/components/z-input/index.js +3 -3
- package/dist/collection/components/z-input/styles-checkbox-radio.css +130 -0
- package/dist/collection/components/z-input/styles-general.css +166 -0
- package/dist/collection/components/z-input/styles-text.css +87 -0
- package/dist/collection/components/z-input/styles-textarea.css +19 -0
- package/dist/collection/components/z-searchbar/index.js +111 -193
- package/dist/collection/components/z-searchbar/index.stories.js +3 -16
- package/dist/collection/components/z-searchbar/styles.css +87 -201
- package/dist/collection/components/z-skip-to-content/index.js +1 -1
- package/dist/collection/components/z-stepper/index.js +1 -1
- package/dist/collection/components/z-stepper-item/index.js +1 -1
- package/dist/collection/components/z-toast-notification/index.js +3 -3
- package/dist/collection/components/z-toast-notification-list/index.js +1 -1
- package/dist/collection/components/z-toggle-button/index.js +2 -2
- package/dist/collection/components/z-toggle-switch/index.js +3 -3
- package/dist/collection/components/z-tool/index.js +2 -2
- package/dist/collection/components/z-toolbar/index.js +1 -1
- package/dist/collection/components/z-tooltip/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-body/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.js +1 -1
- package/dist/collection/snowflakes/myz/list/z-myz-list/index.js +1 -1
- package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.js +1 -1
- package/dist/collection/snowflakes/myz/z-alert/index.js +1 -1
- package/dist/collection/snowflakes/myz/z-otp/index.js +2 -2
- package/dist/components/index13.js +1 -1
- package/dist/components/index22.js +1 -1
- package/dist/components/index23.js +1 -1
- package/dist/components/index24.js +1 -1
- package/dist/components/index25.js +1 -1
- package/dist/components/index26.js +1 -1
- package/dist/components/index27.js +1 -1
- package/dist/components/index4.js +1 -1
- package/dist/components/index7.js +1 -1
- package/dist/components/z-combobox.js +1 -1
- package/dist/components/z-myz-card-alert.js +1 -1
- package/dist/components/z-myz-card-dictionary.js +1 -1
- package/dist/components/z-myz-card-footer-sections.js +1 -1
- package/dist/components/z-myz-card-footer.js +1 -1
- package/dist/components/z-myz-card-icon.js +1 -1
- package/dist/components/z-myz-card-info.js +1 -1
- package/dist/components/z-myz-card-list.js +1 -1
- package/dist/components/z-myz-list.js +1 -1
- package/dist/components/z-otp.js +1 -1
- package/dist/components/z-skip-to-content.js +1 -1
- package/dist/components/z-stepper-item.js +1 -1
- package/dist/components/z-stepper.js +1 -1
- package/dist/components/z-td.js +1 -1
- package/dist/components/z-th.js +1 -1
- package/dist/components/z-toast-notification-list.js +1 -1
- package/dist/components/z-toast-notification.js +1 -1
- package/dist/components/z-toggle-button.js +1 -1
- package/dist/components/z-toggle-switch.js +1 -1
- package/dist/components/z-tool.js +1 -1
- package/dist/components/z-toolbar.js +1 -1
- package/dist/esm/index-DPdXlnVe.js +4 -4
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{utils-0PByxJyN.js → utils-DYd3kO0P.js} +1 -1
- package/dist/esm/web-components-library.js +1 -1
- package/dist/esm/z-alert.entry.js +1 -1
- package/dist/esm/z-app-header_12.entry.js +128 -200
- package/dist/esm/z-book-card-deprecated.entry.js +1 -1
- package/dist/esm/z-breadcrumb.entry.js +1 -1
- package/dist/esm/z-color-picker.entry.js +1 -1
- package/dist/esm/z-combobox.entry.js +6 -4
- package/dist/esm/z-menu.entry.js +1 -1
- package/dist/esm/z-myz-card-alert.entry.js +1 -1
- package/dist/esm/z-myz-card-dictionary.entry.js +1 -1
- package/dist/esm/z-myz-card-footer-sections.entry.js +1 -1
- package/dist/esm/z-myz-card-footer.entry.js +1 -1
- package/dist/esm/z-myz-card-icon.entry.js +1 -1
- package/dist/esm/z-myz-card-info.entry.js +2 -2
- package/dist/esm/z-myz-card-list.entry.js +1 -1
- package/dist/esm/z-myz-card_4.entry.js +4 -4
- package/dist/esm/z-myz-list-item.entry.js +2 -2
- package/dist/esm/z-myz-list.entry.js +1 -1
- package/dist/esm/z-otp.entry.js +2 -2
- package/dist/esm/z-popover.entry.js +1 -1
- package/dist/esm/z-select.entry.js +1 -1
- package/dist/esm/z-skip-to-content.entry.js +2 -2
- package/dist/esm/z-slideshow.entry.js +1 -1
- package/dist/esm/z-stepper-item.entry.js +1 -1
- package/dist/esm/z-stepper.entry.js +1 -1
- package/dist/esm/z-table.entry.js +1 -1
- package/dist/esm/z-td.entry.js +3 -3
- package/dist/esm/z-th.entry.js +5 -3
- package/dist/esm/z-toast-notification-list.entry.js +1 -1
- package/dist/esm/z-toast-notification.entry.js +3 -3
- package/dist/esm/z-toggle-button.entry.js +2 -2
- package/dist/esm/z-toggle-switch.entry.js +4 -4
- package/dist/esm/z-tool.entry.js +3 -3
- package/dist/esm/z-toolbar.entry.js +1 -1
- package/dist/esm/z-tooltip.entry.js +1 -1
- package/dist/esm/z-tr.entry.js +1 -1
- package/dist/types/components/z-searchbar/index.d.ts +24 -28
- package/dist/types/components.d.ts +14 -14
- package/dist/web-components-library/index.esm.js +1 -1
- package/dist/web-components-library/{p-5fa910e4.entry.js → p-13e7f751.entry.js} +1 -1
- package/dist/web-components-library/{p-2ce3ac48.entry.js → p-14b804f9.entry.js} +1 -1
- package/dist/web-components-library/{p-45866f64.entry.js → p-1580db58.entry.js} +1 -1
- package/dist/web-components-library/{p-eed4e897.entry.js → p-1d023220.entry.js} +1 -1
- package/{www/build/p-de0b7109.entry.js → dist/web-components-library/p-299f0f85.entry.js} +1 -1
- package/dist/web-components-library/{p-d11d39f5.entry.js → p-2c036e17.entry.js} +1 -1
- package/dist/web-components-library/{p-5b9cacd7.entry.js → p-2df6d169.entry.js} +1 -1
- package/dist/web-components-library/{p-550ee6c3.entry.js → p-37e84b71.entry.js} +1 -1
- package/dist/web-components-library/{p-6fb8a984.entry.js → p-3ea03d34.entry.js} +1 -1
- package/dist/web-components-library/p-41584e90.entry.js +1 -0
- package/dist/web-components-library/p-53670be4.entry.js +1 -0
- package/dist/web-components-library/{p-7d9477ed.entry.js → p-583b8152.entry.js} +1 -1
- package/dist/web-components-library/{p-538a1bd2.entry.js → p-5d20fc3d.entry.js} +1 -1
- package/dist/web-components-library/{p-364b0ca4.entry.js → p-658f022d.entry.js} +1 -1
- package/dist/web-components-library/{p-f94c360f.entry.js → p-788eaac7.entry.js} +1 -1
- package/dist/web-components-library/{p-a40ae683.entry.js → p-8261c869.entry.js} +1 -1
- package/{www/build/p-4ae7df7f.entry.js → dist/web-components-library/p-83da1031.entry.js} +1 -1
- package/{www/build/p-c6920758.entry.js → dist/web-components-library/p-85cac60d.entry.js} +1 -1
- package/dist/web-components-library/{p-c6ae9241.entry.js → p-88a3ba7c.entry.js} +1 -1
- package/dist/web-components-library/{p-e2d94c86.entry.js → p-8a8df4f4.entry.js} +1 -1
- package/dist/web-components-library/{p-ab50e989.entry.js → p-8b026993.entry.js} +1 -1
- package/dist/web-components-library/{p-8fd25c59.entry.js → p-9d15ecdf.entry.js} +1 -1
- package/dist/web-components-library/{p-D4yqZKyM.js → p-CPsEG702.js} +1 -1
- package/dist/web-components-library/{p-f5bbcaa6.entry.js → p-a4f673f8.entry.js} +1 -1
- package/dist/web-components-library/{p-2d6a4515.entry.js → p-b6223d7e.entry.js} +1 -1
- package/dist/web-components-library/{p-7835fdda.entry.js → p-b9343431.entry.js} +1 -1
- package/dist/web-components-library/{p-c539ae57.entry.js → p-c42ddd93.entry.js} +1 -1
- package/{www/build/p-eadf2552.entry.js → dist/web-components-library/p-c4e7bd16.entry.js} +1 -1
- package/dist/web-components-library/{p-3f996a63.entry.js → p-c944a943.entry.js} +1 -1
- package/dist/web-components-library/{p-19f5fdd3.entry.js → p-cd33f4b1.entry.js} +1 -1
- package/dist/web-components-library/p-d10e6b1a.entry.js +1 -0
- package/dist/web-components-library/p-dc5ab2cc.entry.js +1 -0
- package/dist/web-components-library/p-e48497f0.entry.js +1 -0
- package/{www/build/p-19d3a16b.entry.js → dist/web-components-library/p-eddc2d19.entry.js} +1 -1
- package/dist/web-components-library/{p-91503030.entry.js → p-ef5018bb.entry.js} +1 -1
- package/dist/web-components-library/{p-7a9d19b8.entry.js → p-f7e46ef2.entry.js} +1 -1
- package/dist/web-components-library/web-components-library.esm.js +1 -1
- package/package.json +1 -1
- package/www/build/index.esm.js +1 -1
- package/www/build/{p-5fa910e4.entry.js → p-13e7f751.entry.js} +1 -1
- package/www/build/{p-2ce3ac48.entry.js → p-14b804f9.entry.js} +1 -1
- package/www/build/{p-45866f64.entry.js → p-1580db58.entry.js} +1 -1
- package/www/build/{p-eed4e897.entry.js → p-1d023220.entry.js} +1 -1
- package/www/build/{p-804ab9a4.js → p-23143b48.js} +1 -1
- package/{dist/web-components-library/p-de0b7109.entry.js → www/build/p-299f0f85.entry.js} +1 -1
- package/www/build/{p-d11d39f5.entry.js → p-2c036e17.entry.js} +1 -1
- package/www/build/{p-5b9cacd7.entry.js → p-2df6d169.entry.js} +1 -1
- package/www/build/{p-550ee6c3.entry.js → p-37e84b71.entry.js} +1 -1
- package/www/build/{p-6fb8a984.entry.js → p-3ea03d34.entry.js} +1 -1
- package/www/build/p-41584e90.entry.js +1 -0
- package/www/build/p-53670be4.entry.js +1 -0
- package/www/build/{p-7d9477ed.entry.js → p-583b8152.entry.js} +1 -1
- package/www/build/{p-538a1bd2.entry.js → p-5d20fc3d.entry.js} +1 -1
- package/www/build/{p-364b0ca4.entry.js → p-658f022d.entry.js} +1 -1
- package/www/build/{p-f94c360f.entry.js → p-788eaac7.entry.js} +1 -1
- package/www/build/{p-a40ae683.entry.js → p-8261c869.entry.js} +1 -1
- package/{dist/web-components-library/p-4ae7df7f.entry.js → www/build/p-83da1031.entry.js} +1 -1
- package/{dist/web-components-library/p-c6920758.entry.js → www/build/p-85cac60d.entry.js} +1 -1
- package/www/build/{p-c6ae9241.entry.js → p-88a3ba7c.entry.js} +1 -1
- package/www/build/{p-e2d94c86.entry.js → p-8a8df4f4.entry.js} +1 -1
- package/www/build/{p-ab50e989.entry.js → p-8b026993.entry.js} +1 -1
- package/www/build/{p-8fd25c59.entry.js → p-9d15ecdf.entry.js} +1 -1
- package/www/build/{p-D4yqZKyM.js → p-CPsEG702.js} +1 -1
- package/www/build/{p-f5bbcaa6.entry.js → p-a4f673f8.entry.js} +1 -1
- package/www/build/{p-2d6a4515.entry.js → p-b6223d7e.entry.js} +1 -1
- package/www/build/{p-7835fdda.entry.js → p-b9343431.entry.js} +1 -1
- package/www/build/{p-c539ae57.entry.js → p-c42ddd93.entry.js} +1 -1
- package/{dist/web-components-library/p-eadf2552.entry.js → www/build/p-c4e7bd16.entry.js} +1 -1
- package/www/build/{p-3f996a63.entry.js → p-c944a943.entry.js} +1 -1
- package/www/build/{p-19f5fdd3.entry.js → p-cd33f4b1.entry.js} +1 -1
- package/www/build/p-d10e6b1a.entry.js +1 -0
- package/www/build/p-dc5ab2cc.entry.js +1 -0
- package/www/build/p-e48497f0.entry.js +1 -0
- package/{dist/web-components-library/p-19d3a16b.entry.js → www/build/p-eddc2d19.entry.js} +1 -1
- package/www/build/{p-91503030.entry.js → p-ef5018bb.entry.js} +1 -1
- package/www/build/{p-7a9d19b8.entry.js → p-f7e46ef2.entry.js} +1 -1
- package/www/build/web-components-library.esm.js +1 -1
- package/www/index.html +1 -1
- package/dist/collection/components/z-input/styles.css +0 -406
- package/dist/web-components-library/p-32440f4c.entry.js +0 -1
- package/dist/web-components-library/p-a9f848ef.entry.js +0 -1
- package/dist/web-components-library/p-ae69bb7d.entry.js +0 -1
- package/dist/web-components-library/p-f3436721.entry.js +0 -1
- package/dist/web-components-library/p-fc15a666.entry.js +0 -1
- package/www/build/p-32440f4c.entry.js +0 -1
- package/www/build/p-a9f848ef.entry.js +0 -1
- package/www/build/p-ae69bb7d.entry.js +0 -1
- package/www/build/p-f3436721.entry.js +0 -1
- package/www/build/p-fc15a666.entry.js +0 -1
|
@@ -1,75 +1,3 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
position: relative;
|
|
3
|
-
display: flex;
|
|
4
|
-
max-width: 100%;
|
|
5
|
-
align-items: center;
|
|
6
|
-
padding: calc(var(--z-table--cells-padding, calc(var(--space-unit) * 2)));
|
|
7
|
-
background-color: var(--color-surface01);
|
|
8
|
-
gap: calc(var(--space-unit) * 2) var(--space-unit);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
:host,
|
|
12
|
-
* {
|
|
13
|
-
box-sizing: border-box;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
:host([sticky]) {
|
|
17
|
-
position: sticky;
|
|
18
|
-
z-index: 1;
|
|
19
|
-
top: 0;
|
|
20
|
-
left: 0;
|
|
21
|
-
box-shadow: 8px 0 16px -8px var(--shadow-color-base);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
:host([menu-open]) {
|
|
25
|
-
z-index: 2;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.cell--content {
|
|
29
|
-
display: flex;
|
|
30
|
-
width: 100%;
|
|
31
|
-
height: 100%;
|
|
32
|
-
align-items: center;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
:host([show-menu]) .cell--content {
|
|
36
|
-
column-gap: var(--space-unit);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.cell--menu-container {
|
|
40
|
-
margin-left: auto;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
:host(:not([show-menu])) .cell--menu-container {
|
|
44
|
-
opacity: 0;
|
|
45
|
-
pointer-events: none;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
:host(:is([show-menu], [menu-open])) .cell--menu-container,
|
|
49
|
-
:host([show-menu]) .cell--menu-container:focus-within {
|
|
50
|
-
z-index: 1;
|
|
51
|
-
opacity: 1;
|
|
52
|
-
pointer-events: all;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
:host .cell-popover {
|
|
56
|
-
z-index: 100;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
@media (min-width: 768px) and (hover: hover) {
|
|
60
|
-
:host([show-menu="hover"]) .cell--menu-container {
|
|
61
|
-
opacity: 0;
|
|
62
|
-
pointer-events: none;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
:host([show-menu="hover"]:hover) .cell--menu-container {
|
|
66
|
-
z-index: 1;
|
|
67
|
-
opacity: 1;
|
|
68
|
-
pointer-events: all;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
|
|
73
1
|
:host {
|
|
74
2
|
z-index: 1;
|
|
75
3
|
padding: 0;
|
|
@@ -294,18 +294,18 @@ export class ZCombobox {
|
|
|
294
294
|
return (h("z-list-element", { class: "check-all-wrapper", role: "presentation", htmlTabindex: -1, dividerType: ListDividerType.ELEMENT, dividerColor: "gray800", size: this.getControlToListSize(), disabled: !!isDisabled }, h("span", { class: "option-wrap", role: "presentation", onClick: () => this.checkOption(optionId) }, h("z-icon", { name: allChecked ? "checkbox-checked" : "checkbox", class: this.focusedItemId === optionId ? "focused" : "" }), h("span", { id: optionId, role: isDisabled ? "presentation" : "option", "aria-selected": allChecked ? "true" : "false" }, allChecked ? this.uncheckalltext : this.checkalltext))));
|
|
295
295
|
}
|
|
296
296
|
render() {
|
|
297
|
-
return (h("div", { key: '
|
|
297
|
+
return (h("div", { key: '23cd031ec2894308960df94374713e9395521a56', "data-action": `combo-${this.inputid}`, class: { open: this.isopen, fixed: this.isfixed, disabled: this.disabled }, id: this.inputid }, this.renderHeader(), !this.disabled && this.renderContent()));
|
|
298
298
|
}
|
|
299
299
|
static get is() { return "z-combobox"; }
|
|
300
300
|
static get encapsulation() { return "shadow"; }
|
|
301
301
|
static get originalStyleUrls() {
|
|
302
302
|
return {
|
|
303
|
-
"$": ["styles.css"]
|
|
303
|
+
"$": ["../css-components/z-label/styles.css", "styles.css"]
|
|
304
304
|
};
|
|
305
305
|
}
|
|
306
306
|
static get styleUrls() {
|
|
307
307
|
return {
|
|
308
|
-
"$": ["styles.css"]
|
|
308
|
+
"$": ["../css-components/z-label/styles.css", "styles.css"]
|
|
309
309
|
};
|
|
310
310
|
}
|
|
311
311
|
static get properties() {
|
|
@@ -1,15 +1,3 @@
|
|
|
1
|
-
.z-label {
|
|
2
|
-
display: block;
|
|
3
|
-
padding-bottom: var(--space-unit);
|
|
4
|
-
color: var(--color-default-text);
|
|
5
|
-
font-family: var(--font-family-sans);
|
|
6
|
-
font-size: var(--font-size-1);
|
|
7
|
-
font-weight: var(--font-sb);
|
|
8
|
-
text-align: left;
|
|
9
|
-
text-transform: uppercase;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
|
|
13
1
|
:host {
|
|
14
2
|
display: block;
|
|
15
3
|
min-width: 290px;
|
|
@@ -266,18 +266,18 @@ export class ZInput {
|
|
|
266
266
|
default:
|
|
267
267
|
input = this.renderInputText(this.type);
|
|
268
268
|
}
|
|
269
|
-
return h(Host, { key: '
|
|
269
|
+
return h(Host, { key: '0b363c20732600ca303b84a78e36bdc710c411e2' }, input);
|
|
270
270
|
}
|
|
271
271
|
static get is() { return "z-input"; }
|
|
272
272
|
static get encapsulation() { return "scoped"; }
|
|
273
273
|
static get originalStyleUrls() {
|
|
274
274
|
return {
|
|
275
|
-
"$": ["styles.css"]
|
|
275
|
+
"$": ["styles-general.css", "styles-text.css", "styles-textarea.css", "styles-checkbox-radio.css"]
|
|
276
276
|
};
|
|
277
277
|
}
|
|
278
278
|
static get styleUrls() {
|
|
279
279
|
return {
|
|
280
|
-
"$": ["styles.css"]
|
|
280
|
+
"$": ["styles-general.css", "styles-text.css", "styles-textarea.css", "styles-checkbox-radio.css"]
|
|
281
281
|
};
|
|
282
282
|
}
|
|
283
283
|
static get properties() {
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
.radio-wrapper,
|
|
2
|
+
.checkbox-wrapper {
|
|
3
|
+
position: relative;
|
|
4
|
+
display: inline-flex;
|
|
5
|
+
flex-direction: row;
|
|
6
|
+
align-items: center;
|
|
7
|
+
color: var(--color-default-text);
|
|
8
|
+
fill: var(--color-primary01);
|
|
9
|
+
font-family: var(--font-family-sans);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.radio-wrapper:hover,
|
|
13
|
+
.checkbox-wrapper:hover {
|
|
14
|
+
color: var(--color-hover-primary);
|
|
15
|
+
fill: var(--color-hover-primary-icon);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.radio-wrapper > input,
|
|
19
|
+
.checkbox-wrapper > input {
|
|
20
|
+
position: absolute;
|
|
21
|
+
z-index: -1;
|
|
22
|
+
opacity: 0;
|
|
23
|
+
pointer-events: none;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.radio-wrapper .radio-label,
|
|
27
|
+
.checkbox-wrapper .checkbox-label {
|
|
28
|
+
display: inline-flex;
|
|
29
|
+
align-items: center;
|
|
30
|
+
margin: 0;
|
|
31
|
+
color: inherit;
|
|
32
|
+
font-family: inherit;
|
|
33
|
+
font-size: inherit;
|
|
34
|
+
font-weight: inherit;
|
|
35
|
+
line-height: 1;
|
|
36
|
+
text-transform: inherit;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.radio-wrapper input:not(:disabled) + .radio-label,
|
|
40
|
+
.checkbox-wrapper input:not(:disabled) + .checkbox-label {
|
|
41
|
+
cursor: pointer;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.radio-wrapper .radio-label z-icon,
|
|
45
|
+
.checkbox-wrapper .checkbox-label z-icon {
|
|
46
|
+
cursor: pointer;
|
|
47
|
+
fill: inherit;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
:host([size="small"]) .radio-wrapper .radio-label z-icon,
|
|
51
|
+
:host([size="small"]) .checkbox-wrapper .checkbox-label z-icon {
|
|
52
|
+
--z-icon-width: 16px;
|
|
53
|
+
--z-icon-height: 16px;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
:host([size="small"]) .radio-wrapper .radio-label,
|
|
57
|
+
:host([size="small"]) .checkbox-wrapper .checkbox-label {
|
|
58
|
+
font-size: var(--font-size-2);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
:host([size="x-small"]) .radio-wrapper .radio-label z-icon,
|
|
62
|
+
:host([size="x-small"]) .checkbox-wrapper .checkbox-label z-icon {
|
|
63
|
+
--z-icon-width: 14px;
|
|
64
|
+
--z-icon-height: 14px;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
:host([size="x-small"]) .radio-wrapper .radio-label,
|
|
68
|
+
:host([size="x-small"]) .checkbox-wrapper .checkbox-label {
|
|
69
|
+
font-size: var(--font-size-1);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.radio-wrapper .radio-label.after,
|
|
73
|
+
.checkbox-wrapper .checkbox-label.after {
|
|
74
|
+
flex-direction: row;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.radio-wrapper .radio-label.before,
|
|
78
|
+
.checkbox-wrapper .checkbox-label.before {
|
|
79
|
+
flex-direction: row-reverse;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.radio-wrapper .radio-label.after > span,
|
|
83
|
+
.checkbox-wrapper .checkbox-label.after > span {
|
|
84
|
+
margin-left: var(--space-unit);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.radio-wrapper .radio-label.before > span,
|
|
88
|
+
.checkbox-wrapper .checkbox-label.before > span {
|
|
89
|
+
margin-right: var(--space-unit);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
:host([size="small"]) .radio-wrapper .radio-label.after > span,
|
|
93
|
+
:host([size="small"]) .checkbox-wrapper .checkbox-label.after > span,
|
|
94
|
+
:host([size="x-small"]) .radio-wrapper .radio-label.after > span,
|
|
95
|
+
:host([size="x-small"]) .checkbox-wrapper .checkbox-label.after > span {
|
|
96
|
+
margin-left: calc(var(--space-unit) * 0.5);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
:host([size="small"]) .radio-wrapper .radio-label.before > span,
|
|
100
|
+
:host([size="small"]) .checkbox-wrapper .checkbox-label.before > span,
|
|
101
|
+
:host([size="x-small"]) .radio-wrapper .radio-label.before > span,
|
|
102
|
+
:host([size="x-small"]) .checkbox-wrapper .checkbox-label.before > span {
|
|
103
|
+
margin-right: calc(var(--space-unit) * 0.5);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/* focus */
|
|
107
|
+
.radio-wrapper > input:focus:focus-visible + .radio-label > z-icon {
|
|
108
|
+
border-radius: 50%;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.checkbox-wrapper > input:focus:focus-visible + .checkbox-label > z-icon {
|
|
112
|
+
border-radius: var(--border-radius-small);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.radio-wrapper > input:focus:focus-visible + .radio-label > z-icon,
|
|
116
|
+
.checkbox-wrapper > input:focus:focus-visible + .checkbox-label > z-icon {
|
|
117
|
+
box-shadow: var(--shadow-focus-primary);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/* disabled */
|
|
121
|
+
.radio-wrapper > input:disabled + .radio-label,
|
|
122
|
+
.checkbox-wrapper > input:disabled + .checkbox-label {
|
|
123
|
+
color: var(--color-disabled03);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.radio-wrapper > input:disabled + .radio-label > z-icon,
|
|
127
|
+
.checkbox-wrapper > input:disabled + .checkbox-label > z-icon {
|
|
128
|
+
cursor: default;
|
|
129
|
+
fill: var(--color-disabled01);
|
|
130
|
+
}
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: inline-block;
|
|
3
|
+
width: inherit;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
:host * {
|
|
7
|
+
box-sizing: border-box;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/* GENERAL */
|
|
11
|
+
input::-ms-clear,
|
|
12
|
+
input::-ms-reveal {
|
|
13
|
+
display: none;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
input[type="search"]::-webkit-search-decoration,
|
|
17
|
+
input[type="search"]::-webkit-search-cancel-button,
|
|
18
|
+
input[type="search"]::-webkit-search-results-button,
|
|
19
|
+
input[type="search"]::-webkit-search-results-decoration {
|
|
20
|
+
display: none;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
input,
|
|
24
|
+
textarea {
|
|
25
|
+
background: var(--color-form-background);
|
|
26
|
+
fill: var(--color-form-default-icon);
|
|
27
|
+
font-family: var(--font-family-sans);
|
|
28
|
+
font-size: var(--font-size-3);
|
|
29
|
+
font-weight: var(--font-rg);
|
|
30
|
+
outline: none;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
input,
|
|
34
|
+
.textarea-wrapper {
|
|
35
|
+
border: var(--border-size-small) solid var(--color-form-surface04);
|
|
36
|
+
border-radius: var(--border-radius-small);
|
|
37
|
+
color: var(--color-form-default-text);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
:host([size="small"]) input,
|
|
41
|
+
:host([size="small"]) textarea,
|
|
42
|
+
:host([size="x-small"]) input,
|
|
43
|
+
:host([size="x-small"]) textarea {
|
|
44
|
+
font-size: var(--font-size-2);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
:host.cursor-select input {
|
|
48
|
+
cursor: pointer;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/* HOVER */
|
|
52
|
+
input:not([readonly]):hover,
|
|
53
|
+
.textarea-wrapper:not(.readonly):hover {
|
|
54
|
+
outline: var(--border-size-medium) solid var(--color-surface04);
|
|
55
|
+
outline-offset: -2px;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/* FOCUS */
|
|
59
|
+
:host:not(.active-select) input:focus:focus-visible,
|
|
60
|
+
:host:not([readonly="true"]) .textarea-wrapper:focus-within {
|
|
61
|
+
border-color: var(--color-form-active-primary);
|
|
62
|
+
box-shadow: var(--shadow-focus-primary);
|
|
63
|
+
color: var(--color-form-active-primary);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
:host input:focus:focus-visible:hover,
|
|
67
|
+
.textarea-wrapper:not(.readonly):focus-within:hover {
|
|
68
|
+
outline-color: var(--color-form-active-primary);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
:host input:focus:focus-visible + .icons-wrapper {
|
|
72
|
+
fill: var(--color-form-active-primary);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
:host.active-select input {
|
|
76
|
+
border: var(--border-size-small) solid var(--color-form-active-primary);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
:host.cursor-select input:focus:focus-visible {
|
|
80
|
+
box-shadow: var(--shadow-focus-primary);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
:host input[readonly]:focus:focus-visible {
|
|
84
|
+
border-color: var(--color-form-surface03);
|
|
85
|
+
box-shadow: none;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/* STATUSES (success, warning, error) */
|
|
89
|
+
.input-success {
|
|
90
|
+
border-color: var(--color-form-success01);
|
|
91
|
+
background: var(--color-form-inverse-success);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.input-success:focus:focus-visible + .icons-wrapper,
|
|
95
|
+
.input-success + .icons-wrapper {
|
|
96
|
+
fill: var(--color-form-success01);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.input-error {
|
|
100
|
+
border-color: var(--color-form-hover-error);
|
|
101
|
+
background: var(--color-form-inverse-error);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.input-error:focus:focus-visible + .icons-wrapper,
|
|
105
|
+
.input-error + .icons-wrapper {
|
|
106
|
+
fill: var(--color-form-hover-error);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.input-warning {
|
|
110
|
+
border-color: var(--color-form-hover-warning);
|
|
111
|
+
background: var(--color-form-inverse-warning);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.input-warning:focus:focus-visible + .icons-wrapper,
|
|
115
|
+
.input-warning + .icons-wrapper {
|
|
116
|
+
fill: var(--color-form-hover-warning);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
:is(.input-success, .input-error, .input-warning):focus:focus-visible {
|
|
120
|
+
color: var(--color-form-default-text);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/* READONLY */
|
|
124
|
+
:host:not(.active-select) input[readonly],
|
|
125
|
+
.textarea-wrapper.readonly {
|
|
126
|
+
border-color: var(--color-form-surface03);
|
|
127
|
+
fill: var(--color-form-disabled01-icon);
|
|
128
|
+
pointer-events: none;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/* DISABLED */
|
|
132
|
+
:host([disabled]:not([disabled="false"])) input,
|
|
133
|
+
:host([disabled]:not([disabled="false"])) .textarea-wrapper,
|
|
134
|
+
:host([disabled]:not([disabled="false"])) z-icon {
|
|
135
|
+
border-color: var(--color-form-disabled03);
|
|
136
|
+
box-shadow: none;
|
|
137
|
+
color: var(--color-form-disabled-text);
|
|
138
|
+
fill: var(--color-form-disabled01-icon);
|
|
139
|
+
pointer-events: none;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
:host([disabled]:not([disabled="false"])) input:hover {
|
|
143
|
+
border-width: var(--border-size-small);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
/* PLACEHOLDER */
|
|
147
|
+
input::placeholder,
|
|
148
|
+
textarea::placeholder {
|
|
149
|
+
color: var(--color-form-placeholder-text);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
::-webkit-textarea-placeholder {
|
|
153
|
+
color: var(--color-form-placeholder-text);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
:-ms-textarea-placeholder {
|
|
157
|
+
color: var(--color-form-placeholder-text);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
::placeholder {
|
|
161
|
+
color: var(--color-form-placeholder-text);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
:host([disabled]:not([disabled="false"])) label.z-label {
|
|
165
|
+
color: var(--color-disabled03);
|
|
166
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
.text-wrapper > div {
|
|
2
|
+
position: relative;
|
|
3
|
+
z-index: 1;
|
|
4
|
+
fill: var(--color-form-default-icon);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.text-wrapper > div > input {
|
|
8
|
+
width: 100%;
|
|
9
|
+
height: calc(var(--space-unit) * 5.5);
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
padding: 0 calc(var(--space-unit) * 1.5);
|
|
12
|
+
margin: 0;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
:host([size="small"]) .text-wrapper > div > input {
|
|
16
|
+
height: calc(var(--space-unit) * 4.5);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
:host([size="x-small"]) .text-wrapper > div > input {
|
|
20
|
+
height: calc(var(--space-unit) * 4);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.text-wrapper > div > input.has-icon,
|
|
24
|
+
.text-wrapper > div > input.has-clear-icon {
|
|
25
|
+
padding-right: calc(var(--space-unit) * 5.25);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.text-wrapper > div > input.has-icon.has-clear-icon {
|
|
29
|
+
padding-right: calc(var(--space-unit) * 8);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.text-wrapper .icons-wrapper {
|
|
33
|
+
position: absolute;
|
|
34
|
+
z-index: 2;
|
|
35
|
+
top: 50%;
|
|
36
|
+
right: calc(var(--space-unit) * 1.5);
|
|
37
|
+
display: flex;
|
|
38
|
+
pointer-events: none;
|
|
39
|
+
transform: translateY(-50%);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.text-wrapper .icons-wrapper > button.input-icon {
|
|
43
|
+
display: flex;
|
|
44
|
+
padding: 0;
|
|
45
|
+
border: 0;
|
|
46
|
+
background: none;
|
|
47
|
+
color: inherit;
|
|
48
|
+
font: inherit;
|
|
49
|
+
pointer-events: initial;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.text-wrapper .icons-wrapper > .input-icon + .input-icon {
|
|
53
|
+
margin-left: calc(var(--space-unit) * 0.5);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.text-wrapper .icons-wrapper > button.input-icon.hidden {
|
|
57
|
+
display: none;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.text-wrapper .icons-wrapper > button.reset-icon,
|
|
61
|
+
.text-wrapper .icons-wrapper > button.toggle-password-icon {
|
|
62
|
+
cursor: pointer;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.text-wrapper .icons-wrapper > .input-icon {
|
|
66
|
+
--z-icon-width: 18px;
|
|
67
|
+
--z-icon-height: 18px;
|
|
68
|
+
|
|
69
|
+
display: block;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.text-wrapper .icons-wrapper > .input-icon.small,
|
|
73
|
+
.text-wrapper .icons-wrapper > .input-icon.x-small {
|
|
74
|
+
--z-icon-width: 16px;
|
|
75
|
+
--z-icon-height: 16px;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.text-wrapper .icons-wrapper > button.input-icon:focus {
|
|
79
|
+
box-shadow: var(--shadow-focus-primary);
|
|
80
|
+
outline: none !important;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/* stylelint-disable property-no-vendor-prefix */
|
|
84
|
+
.text-wrapper > div > input:-webkit-autofill {
|
|
85
|
+
-webkit-box-shadow: 0 0 0 1000px #fff inset;
|
|
86
|
+
-webkit-text-fill-color: currentcolor;
|
|
87
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
.textarea-wrapper {
|
|
2
|
+
width: 100%;
|
|
3
|
+
height: 100%;
|
|
4
|
+
padding: calc(var(--space-unit) * 1.5);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.textarea-wrapper:not(.input-error, .input-success, .input-warning) {
|
|
8
|
+
background-color: var(--color-form-background);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
textarea {
|
|
12
|
+
width: 100%;
|
|
13
|
+
min-height: 132px;
|
|
14
|
+
padding: 0;
|
|
15
|
+
border: none;
|
|
16
|
+
margin: 0;
|
|
17
|
+
color: currentcolor;
|
|
18
|
+
resize: none;
|
|
19
|
+
}
|