@zanichelli/albe-web-components 6.0.1-rc2 → 6.0.1-rc3
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/z-app-switcher_9.cjs.entry.js +2 -0
- package/dist/cjs/z-button.cjs.entry.js +2 -0
- package/dist/cjs/z-date-picker.cjs.entry.js +2 -0
- package/dist/cjs/z-input-deprecated.cjs.entry.js +2 -0
- package/dist/cjs/z-input-label_2.cjs.entry.js +2 -0
- package/dist/cjs/z-myz-card-icon.cjs.entry.js +2 -0
- package/dist/cjs/z-pagination-page.cjs.entry.js +2 -0
- package/dist/collection/components/buttons/z-button/index.js +5 -2
- package/dist/collection/components/date-picker/z-date-picker/index.js +5 -2
- package/dist/collection/components/inputs/z-input/index.js +5 -2
- package/dist/collection/components/inputs/z-select/index.js +5 -2
- package/dist/collection/deprecated/pagination/z-pagination-page/index.js +5 -2
- package/dist/collection/deprecated/z-input-deprecated/index.js +5 -2
- package/dist/collection/index.js +1 -0
- package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.js +5 -2
- package/dist/esm/z-app-switcher_9.entry.js +2 -0
- package/dist/esm/z-button.entry.js +2 -0
- package/dist/esm/z-date-picker.entry.js +2 -0
- package/dist/esm/z-input-deprecated.entry.js +2 -0
- package/dist/esm/z-input-label_2.entry.js +2 -0
- package/dist/esm/z-myz-card-icon.entry.js +2 -0
- package/dist/esm/z-pagination-page.entry.js +2 -0
- package/dist/types/components/buttons/z-button/index.d.ts +1 -1
- package/dist/types/components/date-picker/z-date-picker/index.d.ts +1 -1
- package/dist/types/components/inputs/z-input/index.d.ts +1 -1
- package/dist/types/components/inputs/z-select/index.d.ts +1 -1
- package/dist/types/components.d.ts +7 -7
- package/dist/types/deprecated/pagination/z-pagination-page/index.d.ts +1 -1
- package/dist/types/deprecated/z-input-deprecated/index.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/snowflakes/myz/card/z-myz-card-icon/index.d.ts +1 -1
- package/dist/web-components-library/p-05ced71c.entry.js +1 -0
- package/dist/web-components-library/p-4d093e07.entry.js +1 -0
- package/dist/web-components-library/p-5f3baf14.entry.js +1 -0
- package/dist/web-components-library/p-bb95b82f.entry.js +1 -0
- package/dist/web-components-library/p-c2d1785b.entry.js +1 -0
- package/dist/web-components-library/p-d3733579.entry.js +1 -0
- package/dist/web-components-library/p-f7c1eb3f.entry.js +16 -0
- package/dist/web-components-library/web-components-library.esm.js +1 -1
- package/package.json +1 -1
- package/www/build/p-05ced71c.entry.js +1 -0
- package/www/build/p-4d093e07.entry.js +1 -0
- package/www/build/p-5f3baf14.entry.js +1 -0
- package/www/build/{p-129f6af9.js → p-7da1d0e3.js} +1 -1
- package/www/build/p-bb95b82f.entry.js +1 -0
- package/www/build/p-c2d1785b.entry.js +1 -0
- package/www/build/p-d3733579.entry.js +1 -0
- package/www/build/p-f7c1eb3f.entry.js +16 -0
- package/www/build/web-components-library.esm.js +1 -1
- package/www/index.html +1 -1
- package/dist/web-components-library/p-40729225.entry.js +0 -1
- package/dist/web-components-library/p-4df05ebe.entry.js +0 -1
- package/dist/web-components-library/p-75b7e931.entry.js +0 -1
- package/dist/web-components-library/p-93da92c0.entry.js +0 -1
- package/dist/web-components-library/p-b780dfc8.entry.js +0 -1
- package/dist/web-components-library/p-e71132fc.entry.js +0 -16
- package/dist/web-components-library/p-ffe15448.entry.js +0 -1
- package/www/build/p-40729225.entry.js +0 -1
- package/www/build/p-4df05ebe.entry.js +0 -1
- package/www/build/p-75b7e931.entry.js +0 -1
- package/www/build/p-93da92c0.entry.js +0 -1
- package/www/build/p-b780dfc8.entry.js +0 -1
- package/www/build/p-e71132fc.entry.js +0 -16
- package/www/build/p-ffe15448.entry.js +0 -1
|
@@ -110,6 +110,8 @@ const ZInput = class {
|
|
|
110
110
|
this.inputCheck = index.createEvent(this, "inputCheck", 7);
|
|
111
111
|
/** the id of the input element */
|
|
112
112
|
this.htmlid = `id-${utils.randomId()}`;
|
|
113
|
+
/** the input aria-label */
|
|
114
|
+
this.ariaLabel = "";
|
|
113
115
|
/** the input is disabled */
|
|
114
116
|
this.disabled = false;
|
|
115
117
|
/** the input is readonly */
|
|
@@ -10,6 +10,8 @@ const stylesCss = ".sc-z-button-h{display:inline-block;--z-icon-width:16px;--z-i
|
|
|
10
10
|
const ZButton = class {
|
|
11
11
|
constructor(hostRef) {
|
|
12
12
|
index.registerInstance(this, hostRef);
|
|
13
|
+
/** defines a string value that labels an interactive element, used for accessibility. */
|
|
14
|
+
this.ariaLabel = "";
|
|
13
15
|
/** HTML button disabled attribute. */
|
|
14
16
|
this.disabled = false;
|
|
15
17
|
/** HTML button type attribute. */
|
|
@@ -314,6 +314,8 @@ const ZDatePicker = class {
|
|
|
314
314
|
constructor(hostRef) {
|
|
315
315
|
index.registerInstance(this, hostRef);
|
|
316
316
|
this.dateSelect = index.createEvent(this, "dateSelect", 7);
|
|
317
|
+
/** z-input aria label */
|
|
318
|
+
this.ariaLabel = "";
|
|
317
319
|
/** [Optional] datepicker mode: date, datetime, only months */
|
|
318
320
|
this.mode = index$1.ZDatePickerMode.DATE;
|
|
319
321
|
this.flatpickrPosition = index$1.ZDatePickerPosition.BOTTOM;
|
|
@@ -19,6 +19,8 @@ const ZInputDeprecated = class {
|
|
|
19
19
|
this.optionSelect = index.createEvent(this, "optionSelect", 7);
|
|
20
20
|
/** the id of the input element */
|
|
21
21
|
this.htmlid = `id-${utils.randomId()}`;
|
|
22
|
+
/** the input aria-label */
|
|
23
|
+
this.ariaLabel = "";
|
|
22
24
|
/** the input is disabled */
|
|
23
25
|
this.disabled = false;
|
|
24
26
|
/** the input is readonly */
|
|
@@ -29,6 +29,8 @@ const ZSelect = class {
|
|
|
29
29
|
this.optionSelect = index.createEvent(this, "optionSelect", 7);
|
|
30
30
|
/** the id of the input element */
|
|
31
31
|
this.htmlid = `id-${utils.randomId()}`;
|
|
32
|
+
/** the input aria-label */
|
|
33
|
+
this.ariaLabel = "";
|
|
32
34
|
/** the input is disabled */
|
|
33
35
|
this.disabled = false;
|
|
34
36
|
/** the input is readonly */
|
|
@@ -11,6 +11,8 @@ const ZMyzCardIcon = class {
|
|
|
11
11
|
index.registerInstance(this, hostRef);
|
|
12
12
|
/** disabled status flag */
|
|
13
13
|
this.isdisabled = false;
|
|
14
|
+
/** description of the icon*/
|
|
15
|
+
this.ariaLabel = "";
|
|
14
16
|
}
|
|
15
17
|
render() {
|
|
16
18
|
return (index.h("button", { disabled: this.isdisabled, "aria-label": this.ariaLabel }, index.h("span", null, index.h("z-icon", { name: this.icon, width: 16, height: 16 }))));
|
|
@@ -15,6 +15,8 @@ const ZPaginationPage = class {
|
|
|
15
15
|
this.isdisabled = false;
|
|
16
16
|
/** visited status flag */
|
|
17
17
|
this.isvisited = false;
|
|
18
|
+
/** aria-label string */
|
|
19
|
+
this.ariaLabel = "";
|
|
18
20
|
}
|
|
19
21
|
render() {
|
|
20
22
|
return (index.h("button", { id: this.pageid, "aria-label": this.ariaLabel ? this.ariaLabel : `Go to page ${this.value}`, class: { selected: this.isselected, visited: this.isvisited }, disabled: this.isdisabled, type: "button" }, this.value));
|
|
@@ -5,6 +5,8 @@ import { ButtonVariant, ButtonType, ButtonSize } from "../../../beans";
|
|
|
5
5
|
*/
|
|
6
6
|
export class ZButton {
|
|
7
7
|
constructor() {
|
|
8
|
+
/** defines a string value that labels an interactive element, used for accessibility. */
|
|
9
|
+
this.ariaLabel = "";
|
|
8
10
|
/** HTML button disabled attribute. */
|
|
9
11
|
this.disabled = false;
|
|
10
12
|
/** HTML button type attribute. */
|
|
@@ -52,13 +54,14 @@ export class ZButton {
|
|
|
52
54
|
"references": {}
|
|
53
55
|
},
|
|
54
56
|
"required": false,
|
|
55
|
-
"optional":
|
|
57
|
+
"optional": false,
|
|
56
58
|
"docs": {
|
|
57
59
|
"tags": [],
|
|
58
60
|
"text": "defines a string value that labels an interactive element, used for accessibility."
|
|
59
61
|
},
|
|
60
62
|
"attribute": "aria-label",
|
|
61
|
-
"reflect": true
|
|
63
|
+
"reflect": true,
|
|
64
|
+
"defaultValue": "\"\""
|
|
62
65
|
},
|
|
63
66
|
"href": {
|
|
64
67
|
"type": "string",
|
|
@@ -6,6 +6,8 @@ import { InputType, ZDatePickerMode, ZDatePickerPosition } from "../../../beans"
|
|
|
6
6
|
import { setAriaOptions, setFlatpickrPosition, validateDate } from "../utils";
|
|
7
7
|
export class ZDatePicker {
|
|
8
8
|
constructor() {
|
|
9
|
+
/** z-input aria label */
|
|
10
|
+
this.ariaLabel = "";
|
|
9
11
|
/** [Optional] datepicker mode: date, datetime, only months */
|
|
10
12
|
this.mode = ZDatePickerMode.DATE;
|
|
11
13
|
this.flatpickrPosition = ZDatePickerPosition.BOTTOM;
|
|
@@ -199,13 +201,14 @@ export class ZDatePicker {
|
|
|
199
201
|
"references": {}
|
|
200
202
|
},
|
|
201
203
|
"required": false,
|
|
202
|
-
"optional":
|
|
204
|
+
"optional": false,
|
|
203
205
|
"docs": {
|
|
204
206
|
"tags": [],
|
|
205
207
|
"text": "z-input aria label"
|
|
206
208
|
},
|
|
207
209
|
"attribute": "aria-label",
|
|
208
|
-
"reflect": false
|
|
210
|
+
"reflect": false,
|
|
211
|
+
"defaultValue": "\"\""
|
|
209
212
|
},
|
|
210
213
|
"label": {
|
|
211
214
|
"type": "string",
|
|
@@ -5,6 +5,8 @@ export class ZInput {
|
|
|
5
5
|
constructor() {
|
|
6
6
|
/** the id of the input element */
|
|
7
7
|
this.htmlid = `id-${randomId()}`;
|
|
8
|
+
/** the input aria-label */
|
|
9
|
+
this.ariaLabel = "";
|
|
8
10
|
/** the input is disabled */
|
|
9
11
|
this.disabled = false;
|
|
10
12
|
/** the input is readonly */
|
|
@@ -310,13 +312,14 @@ export class ZInput {
|
|
|
310
312
|
"references": {}
|
|
311
313
|
},
|
|
312
314
|
"required": false,
|
|
313
|
-
"optional":
|
|
315
|
+
"optional": false,
|
|
314
316
|
"docs": {
|
|
315
317
|
"tags": [],
|
|
316
318
|
"text": "the input aria-label"
|
|
317
319
|
},
|
|
318
320
|
"attribute": "aria-label",
|
|
319
|
-
"reflect": false
|
|
321
|
+
"reflect": false,
|
|
322
|
+
"defaultValue": "\"\""
|
|
320
323
|
},
|
|
321
324
|
"value": {
|
|
322
325
|
"type": "string",
|
|
@@ -5,6 +5,8 @@ export class ZSelect {
|
|
|
5
5
|
constructor() {
|
|
6
6
|
/** the id of the input element */
|
|
7
7
|
this.htmlid = `id-${randomId()}`;
|
|
8
|
+
/** the input aria-label */
|
|
9
|
+
this.ariaLabel = "";
|
|
8
10
|
/** the input is disabled */
|
|
9
11
|
this.disabled = false;
|
|
10
12
|
/** the input is readonly */
|
|
@@ -338,13 +340,14 @@ export class ZSelect {
|
|
|
338
340
|
"references": {}
|
|
339
341
|
},
|
|
340
342
|
"required": false,
|
|
341
|
-
"optional":
|
|
343
|
+
"optional": false,
|
|
342
344
|
"docs": {
|
|
343
345
|
"tags": [],
|
|
344
346
|
"text": "the input aria-label"
|
|
345
347
|
},
|
|
346
348
|
"attribute": "aria-label",
|
|
347
|
-
"reflect": false
|
|
349
|
+
"reflect": false,
|
|
350
|
+
"defaultValue": "\"\""
|
|
348
351
|
},
|
|
349
352
|
"disabled": {
|
|
350
353
|
"type": "boolean",
|
|
@@ -7,6 +7,8 @@ export class ZPaginationPage {
|
|
|
7
7
|
this.isdisabled = false;
|
|
8
8
|
/** visited status flag */
|
|
9
9
|
this.isvisited = false;
|
|
10
|
+
/** aria-label string */
|
|
11
|
+
this.ariaLabel = "";
|
|
10
12
|
}
|
|
11
13
|
render() {
|
|
12
14
|
return (h("button", { id: this.pageid, "aria-label": this.ariaLabel ? this.ariaLabel : `Go to page ${this.value}`, class: { selected: this.isselected, visited: this.isvisited }, disabled: this.isdisabled, type: "button" }, this.value));
|
|
@@ -122,13 +124,14 @@ export class ZPaginationPage {
|
|
|
122
124
|
"references": {}
|
|
123
125
|
},
|
|
124
126
|
"required": false,
|
|
125
|
-
"optional":
|
|
127
|
+
"optional": false,
|
|
126
128
|
"docs": {
|
|
127
129
|
"tags": [],
|
|
128
130
|
"text": "aria-label string"
|
|
129
131
|
},
|
|
130
132
|
"attribute": "aria-label",
|
|
131
|
-
"reflect": false
|
|
133
|
+
"reflect": false,
|
|
134
|
+
"defaultValue": "\"\""
|
|
132
135
|
}
|
|
133
136
|
};
|
|
134
137
|
}
|
|
@@ -5,6 +5,8 @@ export class ZInputDeprecated {
|
|
|
5
5
|
constructor() {
|
|
6
6
|
/** the id of the input element */
|
|
7
7
|
this.htmlid = `id-${randomId()}`;
|
|
8
|
+
/** the input aria-label */
|
|
9
|
+
this.ariaLabel = "";
|
|
8
10
|
/** the input is disabled */
|
|
9
11
|
this.disabled = false;
|
|
10
12
|
/** the input is readonly */
|
|
@@ -335,13 +337,14 @@ export class ZInputDeprecated {
|
|
|
335
337
|
"references": {}
|
|
336
338
|
},
|
|
337
339
|
"required": false,
|
|
338
|
-
"optional":
|
|
340
|
+
"optional": false,
|
|
339
341
|
"docs": {
|
|
340
342
|
"tags": [],
|
|
341
343
|
"text": "the input aria-label"
|
|
342
344
|
},
|
|
343
345
|
"attribute": "aria-label",
|
|
344
|
-
"reflect": false
|
|
346
|
+
"reflect": false,
|
|
347
|
+
"defaultValue": "\"\""
|
|
345
348
|
},
|
|
346
349
|
"value": {
|
|
347
350
|
"type": "string",
|
package/dist/collection/index.js
CHANGED
|
@@ -3,6 +3,8 @@ export class ZMyzCardIcon {
|
|
|
3
3
|
constructor() {
|
|
4
4
|
/** disabled status flag */
|
|
5
5
|
this.isdisabled = false;
|
|
6
|
+
/** description of the icon*/
|
|
7
|
+
this.ariaLabel = "";
|
|
6
8
|
}
|
|
7
9
|
render() {
|
|
8
10
|
return (h("button", { disabled: this.isdisabled, "aria-label": this.ariaLabel }, h("span", null, h("z-icon", { name: this.icon, width: 16, height: 16 }))));
|
|
@@ -65,13 +67,14 @@ export class ZMyzCardIcon {
|
|
|
65
67
|
"references": {}
|
|
66
68
|
},
|
|
67
69
|
"required": false,
|
|
68
|
-
"optional":
|
|
70
|
+
"optional": false,
|
|
69
71
|
"docs": {
|
|
70
72
|
"tags": [],
|
|
71
73
|
"text": "description of the icon"
|
|
72
74
|
},
|
|
73
75
|
"attribute": "aria-label",
|
|
74
|
-
"reflect": false
|
|
76
|
+
"reflect": false,
|
|
77
|
+
"defaultValue": "\"\""
|
|
75
78
|
}
|
|
76
79
|
};
|
|
77
80
|
}
|
|
@@ -106,6 +106,8 @@ const ZInput = class {
|
|
|
106
106
|
this.inputCheck = createEvent(this, "inputCheck", 7);
|
|
107
107
|
/** the id of the input element */
|
|
108
108
|
this.htmlid = `id-${randomId()}`;
|
|
109
|
+
/** the input aria-label */
|
|
110
|
+
this.ariaLabel = "";
|
|
109
111
|
/** the input is disabled */
|
|
110
112
|
this.disabled = false;
|
|
111
113
|
/** the input is readonly */
|
|
@@ -6,6 +6,8 @@ const stylesCss = ".sc-z-button-h{display:inline-block;--z-icon-width:16px;--z-i
|
|
|
6
6
|
const ZButton = class {
|
|
7
7
|
constructor(hostRef) {
|
|
8
8
|
registerInstance(this, hostRef);
|
|
9
|
+
/** defines a string value that labels an interactive element, used for accessibility. */
|
|
10
|
+
this.ariaLabel = "";
|
|
9
11
|
/** HTML button disabled attribute. */
|
|
10
12
|
this.disabled = false;
|
|
11
13
|
/** HTML button type attribute. */
|
|
@@ -310,6 +310,8 @@ const ZDatePicker = class {
|
|
|
310
310
|
constructor(hostRef) {
|
|
311
311
|
registerInstance(this, hostRef);
|
|
312
312
|
this.dateSelect = createEvent(this, "dateSelect", 7);
|
|
313
|
+
/** z-input aria label */
|
|
314
|
+
this.ariaLabel = "";
|
|
313
315
|
/** [Optional] datepicker mode: date, datetime, only months */
|
|
314
316
|
this.mode = ZDatePickerMode.DATE;
|
|
315
317
|
this.flatpickrPosition = ZDatePickerPosition.BOTTOM;
|
|
@@ -15,6 +15,8 @@ const ZInputDeprecated = class {
|
|
|
15
15
|
this.optionSelect = createEvent(this, "optionSelect", 7);
|
|
16
16
|
/** the id of the input element */
|
|
17
17
|
this.htmlid = `id-${randomId()}`;
|
|
18
|
+
/** the input aria-label */
|
|
19
|
+
this.ariaLabel = "";
|
|
18
20
|
/** the input is disabled */
|
|
19
21
|
this.disabled = false;
|
|
20
22
|
/** the input is readonly */
|
|
@@ -25,6 +25,8 @@ const ZSelect = class {
|
|
|
25
25
|
this.optionSelect = createEvent(this, "optionSelect", 7);
|
|
26
26
|
/** the id of the input element */
|
|
27
27
|
this.htmlid = `id-${randomId()}`;
|
|
28
|
+
/** the input aria-label */
|
|
29
|
+
this.ariaLabel = "";
|
|
28
30
|
/** the input is disabled */
|
|
29
31
|
this.disabled = false;
|
|
30
32
|
/** the input is readonly */
|
|
@@ -7,6 +7,8 @@ const ZMyzCardIcon = class {
|
|
|
7
7
|
registerInstance(this, hostRef);
|
|
8
8
|
/** disabled status flag */
|
|
9
9
|
this.isdisabled = false;
|
|
10
|
+
/** description of the icon*/
|
|
11
|
+
this.ariaLabel = "";
|
|
10
12
|
}
|
|
11
13
|
render() {
|
|
12
14
|
return (h("button", { disabled: this.isdisabled, "aria-label": this.ariaLabel }, h("span", null, h("z-icon", { name: this.icon, width: 16, height: 16 }))));
|
|
@@ -11,6 +11,8 @@ const ZPaginationPage = class {
|
|
|
11
11
|
this.isdisabled = false;
|
|
12
12
|
/** visited status flag */
|
|
13
13
|
this.isvisited = false;
|
|
14
|
+
/** aria-label string */
|
|
15
|
+
this.ariaLabel = "";
|
|
14
16
|
}
|
|
15
17
|
render() {
|
|
16
18
|
return (h("button", { id: this.pageid, "aria-label": this.ariaLabel ? this.ariaLabel : `Go to page ${this.value}`, class: { selected: this.isselected, visited: this.isvisited }, disabled: this.isdisabled, type: "button" }, this.value));
|
|
@@ -5,7 +5,7 @@ import { ButtonVariant, ButtonType, ButtonSize } from "../../../beans";
|
|
|
5
5
|
export declare class ZButton {
|
|
6
6
|
hostElement: HTMLZButtonElement;
|
|
7
7
|
/** defines a string value that labels an interactive element, used for accessibility. */
|
|
8
|
-
ariaLabel
|
|
8
|
+
ariaLabel: string;
|
|
9
9
|
/** HTML <a> href attribute. If it is set, it renders an HTML <a> tag. */
|
|
10
10
|
href?: string;
|
|
11
11
|
/** HTML a target attribute. */
|
|
@@ -112,7 +112,7 @@ export namespace Components {
|
|
|
112
112
|
/**
|
|
113
113
|
* defines a string value that labels an interactive element, used for accessibility.
|
|
114
114
|
*/
|
|
115
|
-
"ariaLabel"
|
|
115
|
+
"ariaLabel": string;
|
|
116
116
|
/**
|
|
117
117
|
* HTML button disabled attribute.
|
|
118
118
|
*/
|
|
@@ -423,7 +423,7 @@ export namespace Components {
|
|
|
423
423
|
/**
|
|
424
424
|
* z-input aria label
|
|
425
425
|
*/
|
|
426
|
-
"ariaLabel"
|
|
426
|
+
"ariaLabel": string;
|
|
427
427
|
/**
|
|
428
428
|
* unique id
|
|
429
429
|
*/
|
|
@@ -613,7 +613,7 @@ export namespace Components {
|
|
|
613
613
|
/**
|
|
614
614
|
* the input aria-label
|
|
615
615
|
*/
|
|
616
|
-
"ariaLabel"
|
|
616
|
+
"ariaLabel": string;
|
|
617
617
|
/**
|
|
618
618
|
* the input has autocomplete option (optional): available for text, password, number, email
|
|
619
619
|
*/
|
|
@@ -707,7 +707,7 @@ export namespace Components {
|
|
|
707
707
|
/**
|
|
708
708
|
* the input aria-label
|
|
709
709
|
*/
|
|
710
|
-
"ariaLabel"
|
|
710
|
+
"ariaLabel": string;
|
|
711
711
|
/**
|
|
712
712
|
* the input has autocomplete option (optional): available for select, input
|
|
713
713
|
*/
|
|
@@ -1201,7 +1201,7 @@ export namespace Components {
|
|
|
1201
1201
|
/**
|
|
1202
1202
|
* description of the icon
|
|
1203
1203
|
*/
|
|
1204
|
-
"ariaLabel"
|
|
1204
|
+
"ariaLabel": string;
|
|
1205
1205
|
/**
|
|
1206
1206
|
* icon name
|
|
1207
1207
|
*/
|
|
@@ -1506,7 +1506,7 @@ export namespace Components {
|
|
|
1506
1506
|
/**
|
|
1507
1507
|
* aria-label string
|
|
1508
1508
|
*/
|
|
1509
|
-
"ariaLabel"
|
|
1509
|
+
"ariaLabel": string;
|
|
1510
1510
|
/**
|
|
1511
1511
|
* disabled status flag
|
|
1512
1512
|
*/
|
|
@@ -1694,7 +1694,7 @@ export namespace Components {
|
|
|
1694
1694
|
/**
|
|
1695
1695
|
* the input aria-label
|
|
1696
1696
|
*/
|
|
1697
|
-
"ariaLabel"
|
|
1697
|
+
"ariaLabel": string;
|
|
1698
1698
|
/**
|
|
1699
1699
|
* the input has autocomplete option
|
|
1700
1700
|
*/
|
package/dist/types/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r,h as o}from"./p-d17ebc2f.js";const a=class{constructor(o){r(this,o),this.isdisabled=!1,this.ariaLabel=""}render(){return o("button",{disabled:this.isdisabled,"aria-label":this.ariaLabel},o("span",null,o("z-icon",{name:this.icon,width:16,height:16})))}};a.style="button{display:flex;width:42px;width:calc(var(--space-unit) * 6);height:calc(var(--space-unit) * 5);height:calc(var(--space-unit) * 6);align-items:center;justify-content:center;padding:0;border:none;border-left:var(--border-size-medium) solid var(--color-surface03);margin:0;background:none;border-radius:0 var(--border-radius) 0 0;color:var(--color-primary01);cursor:pointer;fill:var(--color-primary01);outline:none}button:active,button:focus{color:var(--blue700);fill:var(--blue700)}button>span{display:flex;width:28px;height:28px;align-items:center;justify-content:center;border:0;border-radius:var(--border-radius)}button:hover>span{background:var(--color-primary03)}button:focus>span{background:var(--color-surface01);border-radius:var(--border-radius);box-shadow:0 0 2px 2px var(--accent-dark)}button:active>span{background:var(--color-surface01);border-radius:var(--border-radius);box-shadow:var(--shadow-2)}button:disabled{cursor:not-allowed}button:disabled>span{background:none;box-shadow:var(--shadow-0);pointer-events:none}button:disabled>span>z-icon{fill:var(--color-surface03)}button::-moz-focus-inner{border:0}";export{a as z_myz_card_icon}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as o,h as r,g as t}from"./p-d17ebc2f.js";import{b as a,B as n,c}from"./p-9f80c0b8.js";const e=class{constructor(r){o(this,r),this.ariaLabel="",this.disabled=!1,this.type=a.BUTTON,this.variant=n.PRIMARY,this.size=c.BIG}getAttributes(){return{id:this.htmlid,class:{"z-button--container":!0,"z-button--has-text":!!this.hostElement.textContent.trim()}}}render(){return this.href?r("a",Object.assign({},this.getAttributes(),{"aria-label":this.ariaLabel,href:this.href,target:this.target}),this.icon&&r("z-icon",{name:this.icon,width:16,height:16}),r("slot",null)):r("button",Object.assign({},this.getAttributes(),{"aria-label":this.ariaLabel,name:this.name,type:this.type,disabled:this.disabled}),this.icon&&r("z-icon",{name:this.icon,width:16,height:16}),r("slot",null))}get hostElement(){return t(this)}};e.style='.sc-z-button-h{display:inline-block;--z-icon-width:16px;--z-icon-height:16px;--z-icon-right-margin:0}[disabled].sc-z-button-h:not([disabled="false"]){pointer-events:none}.sc-z-button-h .z-button--container.sc-z-button{display:inline-flex;width:100%;box-sizing:border-box;align-items:center;justify-content:center;padding:0;border-width:var(--border-size-medium);border-style:solid;border-radius:var(--border-radius);cursor:pointer;fill:currentcolor;font-family:var(--font-family-sans);font-size:14px;font-weight:var(--font-sb);letter-spacing:0.3px;line-height:1;outline:none;text-decoration:none;text-transform:uppercase;white-space:nowrap}.sc-z-button-h .z-button--container.sc-z-button:focus:focus-visible{box-shadow:var(--shadow-focus-primary)}.sc-z-button-h .z-button--container.z-button--has-text.sc-z-button{min-width:calc(var(--space-unit) * 8);padding:0 calc(var(--space-unit) * 2)}.sc-z-button-h .z-button--container.z-button--has-text.sc-z-button z-icon.sc-z-button{--z-icon-right-margin:var(--space-unit)}[size="big"].sc-z-button-h .z-button--container.sc-z-button{min-width:44px;height:44px}[size="small"].sc-z-button-h .z-button--container.sc-z-button{min-width:36px;height:36px}[size="x-small"].sc-z-button-h .z-button--container.sc-z-button{min-width:32px;height:32px}[variant="primary"].sc-z-button-h .z-button--container.sc-z-button{border-color:var(--color-primary01);background-color:var(--color-primary01);color:var(--color-text-inverse)}@media (hover: hover){[variant="primary"].sc-z-button-h .z-button--container.sc-z-button:hover{border-color:var(--color-hover-primary);background-color:var(--color-hover-primary);color:var(--color-text-inverse)}}[variant="primary"].sc-z-button-h .z-button--container.sc-z-button:active{border-color:var(--color-pressed-primary);background-color:var(--color-pressed-primary);box-shadow:var(--shadow-2);color:var(--color-text-inverse)}[variant="primary"][disabled].sc-z-button-h:not([disabled="false"]) .z-button--container.sc-z-button{border-color:var(--color-disabled01);background-color:var(--color-disabled01);color:var(--color-disabled02)}[variant="secondary"].sc-z-button-h .z-button--container.sc-z-button{border-color:var(--color-primary01);background-color:var(--color-surface01);color:var(--color-primary01)}@media (hover: hover){[variant="secondary"].sc-z-button-h .z-button--container.sc-z-button:hover{border-color:var(--color-hover-primary);background-color:var(--color-surface01);color:var(--color-hover-primary)}}[variant="secondary"].sc-z-button-h .z-button--container.sc-z-button:active{border-color:var(--color-pressed-primary);background-color:var(--color-surface01);box-shadow:var(--shadow-2);color:var(--color-pressed-primary)}[variant="secondary"][disabled].sc-z-button-h:not([disabled="false"]) .z-button--container.sc-z-button{border-color:var(--color-disabled01);background-color:var(--color-surface01);color:var(--color-disabled02)}[variant="tertiary"].sc-z-button-h .z-button--container.sc-z-button{border-color:transparent;background-color:transparent;color:var(--color-primary01)}@media (hover: hover){[variant="tertiary"].sc-z-button-h .z-button--container.sc-z-button:hover{border-color:var(--color-primary03);background-color:var(--color-primary03);color:var(--color-hover-primary)}}[variant="tertiary"].sc-z-button-h .z-button--container.sc-z-button:focus:focus-visible{border-color:var(--color-surface01);background-color:var(--color-surface01);color:var(--color-primary01)}[variant="tertiary"].sc-z-button-h .z-button--container.sc-z-button:active{border-color:var(--color-surface01);background-color:var(--color-surface01);box-shadow:var(--shadow-2);color:var(--color-primary01)}[variant="tertiary"][disabled].sc-z-button-h:not([disabled="false"]) .z-button--container.sc-z-button{border-color:transparent;background-color:transparent;color:var(--color-disabled02)}';export{e as z_button}
|