@zanichelli/albe-web-components 3.1.1 → 3.2.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/dist/cjs/{icons-30810e62.js → icons-9fc3ff30.js} +101 -70
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/web-components-library.cjs.js +1 -1
- package/dist/cjs/z-app-switcher_12.cjs.entry.js +12 -14
- package/dist/cjs/z-date-picker.cjs.entry.js +1 -1
- package/dist/cjs/z-icon-package.cjs.entry.js +1 -1
- package/dist/cjs/z-navigation-tab-link.cjs.entry.js +1 -1
- package/dist/cjs/z-navigation-tab.cjs.entry.js +1 -1
- package/dist/cjs/z-pagination.cjs.entry.js +229 -0
- package/dist/collection/collection-manifest.json +3 -2
- package/dist/collection/components/buttons/z-button/index.js +12 -15
- package/dist/collection/components/buttons/z-button/styles.css +27 -31
- package/dist/collection/components/icons/icons.js +101 -70
- package/dist/collection/components/z-date-picker/index.js +35 -1
- package/dist/collection/components/z-pagination/index.js +447 -0
- package/dist/collection/components/z-pagination/styles.css +204 -0
- package/dist/collection/{components → deprecated}/pagination/z-pagination-bar/index.js +0 -0
- package/dist/collection/{components → deprecated}/pagination/z-pagination-bar/styles.css +0 -0
- package/dist/collection/{components → deprecated}/pagination/z-pagination-page/index.js +0 -0
- package/dist/collection/{components → deprecated}/pagination/z-pagination-page/styles.css +0 -0
- package/dist/esm/{icons-d8a127bf.js → icons-92a7dcde.js} +101 -70
- package/dist/esm/loader.js +1 -1
- package/dist/esm/web-components-library.js +1 -1
- package/dist/esm/z-app-switcher_12.entry.js +12 -14
- package/dist/esm/z-date-picker.entry.js +1 -1
- package/dist/esm/z-icon-package.entry.js +1 -1
- package/dist/esm/z-navigation-tab-link.entry.js +1 -1
- package/dist/esm/z-navigation-tab.entry.js +1 -1
- package/dist/esm/z-pagination.entry.js +225 -0
- package/dist/types/components/buttons/z-button/index.d.ts +6 -4
- package/dist/types/components/icons/icons.d.ts +249 -232
- package/dist/types/components/z-date-picker/index.d.ts +4 -0
- package/dist/types/components/z-pagination/index.d.ts +109 -0
- package/dist/types/components.d.ts +107 -2
- package/dist/types/{components → deprecated}/pagination/z-pagination-bar/index.d.ts +0 -0
- package/dist/types/{components → deprecated}/pagination/z-pagination-page/index.d.ts +0 -0
- package/dist/web-components-library/p-14c9344f.entry.js +1 -0
- package/dist/web-components-library/p-42b0972c.js +1 -0
- package/dist/web-components-library/{p-393c31c0.entry.js → p-56437e20.entry.js} +1 -1
- package/dist/web-components-library/p-8a637cae.entry.js +1 -0
- package/dist/web-components-library/{p-64b2b415.entry.js → p-d0fea19f.entry.js} +1 -1
- package/dist/web-components-library/{p-bbb0e7a7.entry.js → p-d9d9d834.entry.js} +1 -1
- package/dist/web-components-library/{p-cadcf677.entry.js → p-f3080685.entry.js} +1 -1
- package/dist/web-components-library/web-components-library.esm.js +1 -1
- package/package.json +1 -1
- package/react/components.d.ts +1 -0
- package/react/components.js +3 -2
- package/react/components.js.map +1 -1
- package/www/build/p-14c9344f.entry.js +1 -0
- package/www/build/p-42b0972c.js +1 -0
- package/www/build/{p-393c31c0.entry.js → p-56437e20.entry.js} +1 -1
- package/www/build/p-88b56b6e.css +1 -0
- package/www/build/p-8a637cae.entry.js +1 -0
- package/www/build/p-b058084c.js +1 -0
- package/www/build/{p-64b2b415.entry.js → p-d0fea19f.entry.js} +1 -1
- package/www/build/{p-bbb0e7a7.entry.js → p-d9d9d834.entry.js} +1 -1
- package/www/build/{p-cadcf677.entry.js → p-f3080685.entry.js} +1 -1
- package/www/build/web-components-library.esm.js +1 -1
- package/www/index.html +1 -1
- package/CHANGELOG.md +0 -1647
- package/dist/web-components-library/p-571e9db9.js +0 -1
- package/dist/web-components-library/p-f6254eeb.entry.js +0 -1
- package/src-react/index.ts +0 -1
- package/www/build/p-571e9db9.js +0 -1
- package/www/build/p-9ab0287a.js +0 -129
- package/www/build/p-f6254eeb.entry.js +0 -1
- package/www/build/p-fcff1237.css +0 -812
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Component, Prop, h, Element } from "@stencil/core";
|
|
2
|
-
import classNames from "classnames";
|
|
3
2
|
import { ButtonVariantEnum, ButtonTypeEnum, ButtonSizeEnum, } from "../../../beans";
|
|
4
3
|
/**
|
|
5
4
|
* @slot - button label
|
|
@@ -18,24 +17,22 @@ export class ZButton {
|
|
|
18
17
|
getAttributes() {
|
|
19
18
|
return {
|
|
20
19
|
id: this.htmlid,
|
|
21
|
-
class: classNames(this.variant, this.size),
|
|
22
20
|
"aria-label": this.ariaLabel,
|
|
21
|
+
class: {
|
|
22
|
+
container: true,
|
|
23
|
+
[this.variant]: true,
|
|
24
|
+
[this.size]: true,
|
|
25
|
+
"has-text": !!this.hostElement.textContent
|
|
26
|
+
}
|
|
23
27
|
};
|
|
24
28
|
}
|
|
25
|
-
componentDidLoad() {
|
|
26
|
-
if (this.hostElement.innerText) {
|
|
27
|
-
this.hostElement.classList.add("with-text");
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
componentWillRender() {
|
|
31
|
-
this.hostElement.style.pointerEvents = this.disabled ? "none" : "auto";
|
|
32
|
-
}
|
|
33
29
|
render() {
|
|
34
|
-
if (this.href)
|
|
35
|
-
return (h("a", Object.assign({ href: this.href, target: this.target }
|
|
30
|
+
if (this.href) {
|
|
31
|
+
return (h("a", Object.assign({}, this.getAttributes(), { href: this.href, target: this.target }),
|
|
36
32
|
this.icon && h("z-icon", { name: this.icon, width: 16, height: 16 }),
|
|
37
33
|
h("slot", null)));
|
|
38
|
-
|
|
34
|
+
}
|
|
35
|
+
return (h("button", Object.assign({}, this.getAttributes(), { name: this.name, type: this.type, disabled: this.disabled }),
|
|
39
36
|
this.icon && h("z-icon", { name: this.icon, width: 16, height: 16 }),
|
|
40
37
|
h("slot", null)));
|
|
41
38
|
}
|
|
@@ -77,7 +74,7 @@ export class ZButton {
|
|
|
77
74
|
"optional": true,
|
|
78
75
|
"docs": {
|
|
79
76
|
"tags": [],
|
|
80
|
-
"text": "HTML a href attribute. If it is set, it renders an HTML a tag."
|
|
77
|
+
"text": "HTML <a> href attribute. If it is set, it renders an HTML <a> tag."
|
|
81
78
|
},
|
|
82
79
|
"attribute": "href",
|
|
83
80
|
"reflect": true
|
|
@@ -211,7 +208,7 @@ export class ZButton {
|
|
|
211
208
|
"text": "`z-icon` name to use (optional)."
|
|
212
209
|
},
|
|
213
210
|
"attribute": "icon",
|
|
214
|
-
"reflect":
|
|
211
|
+
"reflect": true
|
|
215
212
|
},
|
|
216
213
|
"size": {
|
|
217
214
|
"type": "string",
|
|
@@ -3,21 +3,20 @@
|
|
|
3
3
|
--z-icon-width: 16px;
|
|
4
4
|
--z-icon-height: 16px;
|
|
5
5
|
--z-icon-right-margin: 0;
|
|
6
|
-
--rgb-white: 240, 240, 240;
|
|
7
6
|
}
|
|
8
7
|
|
|
9
|
-
|
|
10
|
-
a:disabled {
|
|
8
|
+
:host([disabled]:not([disabled="false"])) {
|
|
11
9
|
pointer-events: none;
|
|
12
10
|
}
|
|
13
11
|
|
|
14
|
-
|
|
15
|
-
a {
|
|
12
|
+
:host .container {
|
|
16
13
|
box-sizing: border-box;
|
|
17
14
|
display: inline-flex;
|
|
18
15
|
align-items: center;
|
|
19
16
|
justify-content: center;
|
|
20
|
-
|
|
17
|
+
width: 100%;
|
|
18
|
+
padding: 0;
|
|
19
|
+
font-family: var(--font-family-sans);
|
|
21
20
|
font-weight: var(--font-sb);
|
|
22
21
|
font-size: 14px;
|
|
23
22
|
line-height: 1;
|
|
@@ -28,124 +27,121 @@ a {
|
|
|
28
27
|
text-transform: uppercase;
|
|
29
28
|
text-decoration: none;
|
|
30
29
|
cursor: pointer;
|
|
31
|
-
width: 100%;
|
|
32
30
|
white-space: nowrap;
|
|
33
31
|
outline: none;
|
|
34
32
|
fill: currentColor;
|
|
35
33
|
}
|
|
36
34
|
|
|
37
|
-
:host.
|
|
38
|
-
--z-icon-right-margin: var(--space-unit);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
:host.with-text button,
|
|
42
|
-
:host.with-text a {
|
|
35
|
+
:host .container.has-text {
|
|
43
36
|
min-width: calc(var(--space-unit) * 8);
|
|
44
37
|
padding: 0 calc(var(--space-unit) * 2);
|
|
45
38
|
}
|
|
46
39
|
|
|
47
|
-
.
|
|
40
|
+
:host .container.has-text z-icon {
|
|
41
|
+
--z-icon-right-margin: var(--space-unit);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
:host .big {
|
|
48
45
|
height: 44px;
|
|
49
46
|
min-width: 44px;
|
|
50
47
|
}
|
|
51
48
|
|
|
52
|
-
.small {
|
|
49
|
+
:host .small {
|
|
53
50
|
height: 36px;
|
|
54
51
|
min-width: 36px;
|
|
55
52
|
}
|
|
56
53
|
|
|
57
|
-
.x-small {
|
|
54
|
+
:host .x-small {
|
|
58
55
|
height: 32px;
|
|
59
56
|
min-width: 32px;
|
|
60
57
|
}
|
|
61
58
|
|
|
62
|
-
.primary {
|
|
59
|
+
:host .primary {
|
|
63
60
|
background-color: var(--color-primary01);
|
|
64
61
|
border-color: var(--color-primary01);
|
|
65
62
|
color: var(--color-text-inverse);
|
|
66
63
|
}
|
|
67
64
|
|
|
68
65
|
@media (hover: hover) {
|
|
69
|
-
.primary:hover {
|
|
66
|
+
:host .primary:hover {
|
|
70
67
|
background-color: var(--color-hover-primary);
|
|
71
68
|
border-color: var(--color-hover-primary);
|
|
72
69
|
color: var(--color-text-inverse);
|
|
73
70
|
}
|
|
74
71
|
}
|
|
75
72
|
|
|
76
|
-
|
|
77
|
-
a:focus:focus-visible {
|
|
73
|
+
:host .container:focus:focus-visible {
|
|
78
74
|
box-shadow: var(--shadow-focus-primary);
|
|
79
75
|
}
|
|
80
76
|
|
|
81
|
-
.primary:active {
|
|
77
|
+
:host .primary:active {
|
|
82
78
|
background-color: var(--color-pressed-primary);
|
|
83
79
|
border-color: var(--color-pressed-primary);
|
|
84
80
|
color: var(--color-text-inverse);
|
|
85
81
|
box-shadow: var(--shadow-2);
|
|
86
82
|
}
|
|
87
83
|
|
|
88
|
-
|
|
84
|
+
:host([disabled]:not([disabled="false"])) .primary {
|
|
89
85
|
background-color: var(--color-disabled01);
|
|
90
86
|
border-color: var(--color-disabled01);
|
|
91
87
|
color: var(--color-disabled02);
|
|
92
88
|
}
|
|
93
89
|
|
|
94
|
-
.secondary {
|
|
90
|
+
:host .secondary {
|
|
95
91
|
background-color: var(--color-surface01);
|
|
96
92
|
border-color: var(--color-primary01);
|
|
97
93
|
color: var(--color-primary01);
|
|
98
94
|
}
|
|
99
95
|
|
|
100
96
|
@media (hover: hover) {
|
|
101
|
-
.secondary:hover {
|
|
97
|
+
:host .secondary:hover {
|
|
102
98
|
background-color: var(--color-surface01);
|
|
103
99
|
border-color: var(--color-hover-primary);
|
|
104
100
|
color: var(--color-hover-primary);
|
|
105
101
|
}
|
|
106
102
|
}
|
|
107
103
|
|
|
108
|
-
.secondary:active {
|
|
104
|
+
:host .secondary:active {
|
|
109
105
|
background-color: var(--color-surface01);
|
|
110
106
|
border-color: var(--color-pressed-primary);
|
|
111
107
|
color: var(--color-pressed-primary);
|
|
112
108
|
box-shadow: var(--shadow-2);
|
|
113
109
|
}
|
|
114
110
|
|
|
115
|
-
|
|
111
|
+
:host([disabled]:not([disabled="false"])) .secondary {
|
|
116
112
|
background-color: var(--color-surface01);
|
|
117
113
|
border-color: var(--color-disabled01);
|
|
118
114
|
color: var(--color-disabled02);
|
|
119
115
|
}
|
|
120
116
|
|
|
121
|
-
.tertiary {
|
|
117
|
+
:host .tertiary {
|
|
122
118
|
background-color: transparent;
|
|
123
119
|
border-color: transparent;
|
|
124
120
|
color: var(--color-primary01);
|
|
125
121
|
}
|
|
126
122
|
|
|
127
123
|
@media (hover: hover) {
|
|
128
|
-
.tertiary:hover {
|
|
124
|
+
:host .tertiary:hover {
|
|
129
125
|
background-color: var(--color-primary03);
|
|
130
126
|
border-color: var(--color-primary03);
|
|
131
127
|
color: var(--color-hover-primary);
|
|
132
128
|
}
|
|
133
129
|
}
|
|
134
130
|
|
|
135
|
-
.tertiary:focus:focus-visible {
|
|
131
|
+
:host .tertiary:focus:focus-visible {
|
|
136
132
|
background-color: var(--color-surface01);
|
|
137
133
|
border-color: var(--color-surface01);
|
|
138
134
|
color: var(--color-primary01);
|
|
139
135
|
}
|
|
140
136
|
|
|
141
|
-
.tertiary:active {
|
|
137
|
+
:host .tertiary:active {
|
|
142
138
|
background-color: var(--color-surface01);
|
|
143
139
|
border-color: var(--color-surface01);
|
|
144
140
|
color: var(--color-primary01);
|
|
145
141
|
box-shadow: var(--shadow-2);
|
|
146
142
|
}
|
|
147
143
|
|
|
148
|
-
|
|
144
|
+
:host([disabled]:not([disabled="false"])) .tertiary {
|
|
149
145
|
background-color: transparent;
|
|
150
146
|
border-color: transparent;
|
|
151
147
|
color: var(--color-disabled02);
|