@swisspost/design-system-components 2.1.0 → 7.0.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/README.md +1 -1
- package/dist/cjs/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/check-one-of-f4f5d0c0.js +8 -0
- package/dist/cjs/{index-f243643b.js → index-3b732d59.js} +85 -25
- package/dist/cjs/{index-8c288b1a.js → index-a1440961.js} +2 -6
- package/dist/cjs/index.cjs.js +20 -15
- package/dist/cjs/loader.cjs.js +5 -3
- package/dist/cjs/{package-96a46572.js → package-45af106a.js} +1 -1
- package/dist/cjs/{post-accordion-9d27458a.js → post-accordion-7507f838.js} +22 -20
- package/dist/cjs/post-accordion-item-5bf4d98b.js +53 -0
- package/dist/cjs/post-accordion-item.cjs.entry.js +5 -4
- package/dist/cjs/post-accordion.cjs.entry.js +3 -3
- package/dist/cjs/post-alert-9c39c854.js +98 -0
- package/dist/cjs/post-alert.cjs.entry.js +5 -4
- package/dist/cjs/post-card-control-4a16b3d7.js +311 -0
- package/dist/cjs/post-card-control.cjs.entry.js +14 -0
- package/dist/cjs/{post-collapsible-1867015c.js → post-collapsible-00319f1f.js} +7 -7
- package/dist/cjs/post-collapsible.cjs.entry.js +5 -4
- package/dist/cjs/post-components.cjs.js +6 -4
- package/dist/cjs/{post-icon-07a67b83.js → post-icon-09845341.js} +5 -5
- package/dist/cjs/post-icon.cjs.entry.js +5 -4
- package/dist/cjs/post-popover-3b6aaeae.js +104 -0
- package/dist/cjs/post-popover.cjs.entry.js +3 -3
- package/dist/cjs/{post-popovercontainer-003c0819.js → post-popovercontainer-0b8343ac.js} +26 -45
- package/dist/cjs/post-popovercontainer.cjs.entry.js +3 -3
- package/dist/cjs/post-rating-285f966e.js +88 -0
- package/dist/cjs/post-rating.cjs.entry.js +3 -3
- package/dist/cjs/post-tab-header-f1c16656.js +32 -0
- package/dist/cjs/post-tab-header.cjs.entry.js +3 -3
- package/dist/cjs/{post-tab-panel-6a9c4a4f.js → post-tab-panel-9c20a84e.js} +3 -3
- package/dist/cjs/post-tab-panel.cjs.entry.js +3 -3
- package/dist/cjs/{post-tabs-2eb6f376.js → post-tabs-75e71078.js} +23 -21
- package/dist/cjs/post-tabs.cjs.entry.js +3 -3
- package/dist/cjs/post-tag-942085fd.js +43 -0
- package/dist/cjs/post-tag.cjs.entry.js +11 -0
- package/dist/cjs/{post-tooltip-260d0627.js → post-tooltip-94d4f21f.js} +12 -9
- package/dist/cjs/post-tooltip.cjs.entry.js +3 -3
- package/dist/collection/collection-manifest.json +5 -3
- package/dist/collection/components/post-accordion/post-accordion.js +22 -20
- package/dist/collection/components/post-accordion-item/post-accordion-item.css +1 -1
- package/dist/collection/components/post-accordion-item/post-accordion-item.js +7 -5
- package/dist/collection/components/post-alert/alert-types.js +1 -1
- package/dist/collection/components/post-alert/post-alert.css +2 -2
- package/dist/collection/components/post-alert/post-alert.js +6 -6
- package/dist/collection/components/post-card-control/post-card-control.css +31 -0
- package/dist/collection/components/post-card-control/post-card-control.js +520 -0
- package/dist/collection/components/post-collapsible/post-collapsible.css +1 -1
- package/dist/collection/components/post-collapsible/post-collapsible.js +4 -4
- package/dist/collection/components/post-icon/post-icon.js +2 -2
- package/dist/collection/components/post-popover/post-popover.css +29 -1
- package/dist/collection/components/post-popover/post-popover.js +2 -2
- package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +6 -6
- package/dist/collection/components/post-rating/post-rating.css +28 -0
- package/dist/collection/components/post-rating/post-rating.js +7 -7
- package/dist/collection/components/post-tab-header/post-tab-header.css +29 -1
- package/dist/collection/components/post-tab-header/post-tab-header.js +1 -1
- package/dist/collection/components/post-tab-panel/post-tab-panel.js +1 -1
- package/dist/collection/components/post-tabs/post-tabs.css +1 -1
- package/dist/collection/components/post-tabs/post-tabs.js +21 -19
- package/dist/collection/components/post-tag/post-tag.css +31 -0
- package/dist/collection/components/post-tag/post-tag.js +115 -0
- package/dist/collection/components/post-tooltip/post-tooltip.js +11 -8
- package/dist/collection/index.js +2 -0
- package/dist/collection/utils/index.js +1 -0
- package/dist/collection/utils/sass-export.js +16 -0
- package/dist/components/index.js +2 -0
- package/dist/components/index2.js +1 -1
- package/dist/components/package.js +1 -1
- package/dist/components/post-accordion-item2.js +7 -5
- package/dist/components/post-accordion2.js +21 -19
- package/dist/components/post-alert2.js +7 -7
- package/dist/components/post-card-control.d.ts +11 -0
- package/dist/components/post-card-control.js +6 -0
- package/dist/components/post-card-control2.js +342 -0
- package/dist/components/post-collapsible2.js +5 -5
- package/dist/components/post-icon2.js +3 -3
- package/dist/components/post-popover2.js +2 -2
- package/dist/components/post-popovercontainer2.js +24 -43
- package/dist/components/post-rating2.js +6 -6
- package/dist/components/post-tab-header2.js +2 -2
- package/dist/components/post-tab-panel2.js +1 -1
- package/dist/components/post-tabs2.js +21 -19
- package/dist/components/post-tag.d.ts +11 -0
- package/dist/components/post-tag.js +6 -0
- package/dist/components/post-tag2.js +70 -0
- package/dist/components/post-tooltip2.js +10 -7
- package/dist/docs.json +477 -18
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/check-one-of-6b3ef8eb.js +6 -0
- package/dist/esm/{index-1708db56.js → index-961099d2.js} +85 -25
- package/dist/esm/{index-b444db27.js → index-d1eba94c.js} +1 -5
- package/dist/esm/index.js +18 -15
- package/dist/esm/loader.js +6 -4
- package/dist/esm/{package-50a9c0c3.js → package-1242b80d.js} +1 -1
- package/dist/esm/{post-accordion-33fe4f0e.js → post-accordion-bfd058bc.js} +22 -20
- package/dist/esm/post-accordion-item-4fa44842.js +51 -0
- package/dist/esm/post-accordion-item.entry.js +5 -4
- package/dist/esm/post-accordion.entry.js +3 -3
- package/dist/esm/post-alert-192d0176.js +96 -0
- package/dist/esm/post-alert.entry.js +5 -4
- package/dist/esm/post-card-control-b23e1e6f.js +309 -0
- package/dist/esm/post-card-control.entry.js +6 -0
- package/dist/esm/{post-collapsible-50dc361b.js → post-collapsible-d848eb2a.js} +7 -7
- package/dist/esm/post-collapsible.entry.js +5 -4
- package/dist/esm/post-components.js +7 -5
- package/dist/esm/{post-icon-00f314ae.js → post-icon-811654f7.js} +5 -5
- package/dist/esm/post-icon.entry.js +5 -4
- package/dist/esm/post-popover-b48a9d7c.js +102 -0
- package/dist/esm/post-popover.entry.js +3 -3
- package/dist/esm/{post-popovercontainer-62e1fd82.js → post-popovercontainer-7413bb41.js} +26 -45
- package/dist/esm/post-popovercontainer.entry.js +3 -3
- package/dist/esm/post-rating-806de800.js +86 -0
- package/dist/esm/post-rating.entry.js +3 -3
- package/dist/esm/post-tab-header-95f0dc6a.js +30 -0
- package/dist/esm/post-tab-header.entry.js +3 -3
- package/dist/esm/{post-tab-panel-37a1331f.js → post-tab-panel-d7145a70.js} +3 -3
- package/dist/esm/post-tab-panel.entry.js +3 -3
- package/dist/esm/{post-tabs-c4e65a45.js → post-tabs-f130a7d8.js} +23 -21
- package/dist/esm/post-tabs.entry.js +3 -3
- package/dist/esm/post-tag-7c329d6c.js +41 -0
- package/dist/esm/post-tag.entry.js +3 -0
- package/dist/esm/{post-tooltip-033f63fa.js → post-tooltip-942bd014.js} +12 -9
- package/dist/esm/post-tooltip.entry.js +3 -3
- package/dist/post-components/index.esm.js +1 -1
- package/dist/post-components/p-0d4e50a9.js +1 -0
- package/dist/post-components/p-1c780bac.entry.js +1 -0
- package/dist/post-components/p-2524b6b9.entry.js +1 -0
- package/dist/post-components/p-2ee23269.entry.js +1 -0
- package/dist/post-components/p-416426cc.js +1 -0
- package/dist/post-components/p-41c9c59f.js +1 -0
- package/dist/post-components/p-46cea7ee.js +1 -0
- package/dist/post-components/p-4aa14704.js +1 -0
- package/dist/post-components/p-579f55af.js +1 -0
- package/dist/post-components/p-5b2cdcf0.js +2 -0
- package/dist/post-components/p-60b02cbb.entry.js +1 -0
- package/dist/post-components/p-611b3c41.js +1 -0
- package/dist/post-components/p-62407836.entry.js +1 -0
- package/dist/post-components/p-6308fd47.js +1 -0
- package/dist/post-components/p-6fba8cb2.entry.js +1 -0
- package/dist/post-components/p-86acda91.entry.js +1 -0
- package/dist/post-components/{p-7e7833f7.js → p-93ba2827.js} +3 -3
- package/dist/post-components/p-94b5c41e.entry.js +1 -0
- package/dist/post-components/p-a3b54b5f.js +1 -0
- package/dist/post-components/p-a4b6b950.js +1 -0
- package/dist/post-components/p-b4abbb28.js +1 -0
- package/dist/post-components/p-c0f8e385.entry.js +1 -0
- package/dist/post-components/p-c4fe5052.entry.js +1 -0
- package/dist/post-components/p-c9004503.js +1 -0
- package/dist/post-components/p-cd9c10dd.entry.js +1 -0
- package/dist/post-components/p-d4cd7bb0.js +1 -0
- package/dist/post-components/p-d8d76dd1.entry.js +1 -0
- package/dist/post-components/p-e1255160.js +1 -0
- package/dist/post-components/p-e819d5fb.entry.js +1 -0
- package/dist/post-components/p-f44c172a.js +1 -0
- package/dist/post-components/p-f91c0e1b.js +1 -0
- package/dist/post-components/p-f9e58309.js +1 -0
- package/dist/post-components/p-ffb9a651.entry.js +1 -0
- package/dist/post-components/post-components.esm.js +1 -1
- package/dist/types/components/post-accordion/post-accordion.d.ts +1 -1
- package/dist/types/components/post-accordion-item/post-accordion-item.d.ts +1 -1
- package/dist/types/components/post-alert/alert-types.d.ts +2 -2
- package/dist/types/components/post-alert/post-alert.d.ts +2 -2
- package/dist/types/components/post-card-control/post-card-control.d.ts +109 -0
- package/dist/types/components/post-collapsible/post-collapsible.d.ts +1 -1
- package/dist/types/components/post-popovercontainer/post-popovercontainer.d.ts +1 -1
- package/dist/types/components/post-rating/post-rating.d.ts +2 -2
- package/dist/types/components/post-tabs/post-tabs.d.ts +1 -1
- package/dist/types/components/post-tag/post-tag.d.ts +27 -0
- package/dist/types/components.d.ts +178 -12
- package/dist/types/css-modules.js +0 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/components/.stencil/types/css-modules.d.ts +6 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types/utils/sass-export.d.ts +2 -0
- package/package.json +17 -17
- package/dist/cjs/post-accordion-item-61fb55fa.js +0 -51
- package/dist/cjs/post-alert-a810f5b9.js +0 -98
- package/dist/cjs/post-popover-9610b64c.js +0 -104
- package/dist/cjs/post-rating-75574abd.js +0 -88
- package/dist/cjs/post-tab-header-85424e32.js +0 -32
- package/dist/esm/post-accordion-item-1fd95c9f.js +0 -49
- package/dist/esm/post-alert-65d67f69.js +0 -96
- package/dist/esm/post-popover-40bfd1b7.js +0 -102
- package/dist/esm/post-rating-f7a79ed4.js +0 -86
- package/dist/esm/post-tab-header-0683252a.js +0 -30
- package/dist/post-components/p-00dcad55.js +0 -1
- package/dist/post-components/p-01e57281.entry.js +0 -1
- package/dist/post-components/p-06c989fb.entry.js +0 -1
- package/dist/post-components/p-07ffb6de.entry.js +0 -1
- package/dist/post-components/p-10b4cf7a.js +0 -2
- package/dist/post-components/p-26c658c1.entry.js +0 -1
- package/dist/post-components/p-2a964700.js +0 -1
- package/dist/post-components/p-35f14000.js +0 -1
- package/dist/post-components/p-3fb09ecd.js +0 -1
- package/dist/post-components/p-4b0a45d8.entry.js +0 -1
- package/dist/post-components/p-53e8e4e7.entry.js +0 -1
- package/dist/post-components/p-598b11b6.js +0 -1
- package/dist/post-components/p-5b6ee52a.entry.js +0 -1
- package/dist/post-components/p-8139faa4.entry.js +0 -1
- package/dist/post-components/p-8cd6d7c2.js +0 -1
- package/dist/post-components/p-99a9602e.js +0 -1
- package/dist/post-components/p-a2775477.entry.js +0 -1
- package/dist/post-components/p-a905b16b.entry.js +0 -1
- package/dist/post-components/p-aa02111b.js +0 -1
- package/dist/post-components/p-b135d3e2.js +0 -1
- package/dist/post-components/p-b81e61ed.entry.js +0 -1
- package/dist/post-components/p-d6bc34ff.js +0 -1
- package/dist/post-components/p-da2b8e26.entry.js +0 -1
- package/dist/post-components/p-f0476913.js +0 -1
- package/dist/post-components/p-f0e82e63.js +0 -1
- package/dist/post-components/p-ff0e1564.js +0 -1
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
/**
|
|
3
|
+
* @class PostCardControl - representing a stencil component
|
|
4
|
+
*
|
|
5
|
+
* @slot default - Content to place into the `default` slot.<p>Markup accepted: <a href="https://developer.mozilla.org/en-US/docs/Glossary/Block-level_contentt" target="_blank">block content</a>.<p className="alert alert-sm alert-warning">Even if it is generally possible, we do not recommend using interactive elements in this slot because the background of the card control is clickable.<br/>This can lead to confusion when the hit box of nested interactive controls is not clearly separated from the background, is invalid HTML and click events bubbling up to the card control will unexpectedly toggle it if they're not captured.<br/>More info: <a href="https://accessibilityinsights.io/info-examples/web/nested-interactive/">https://accessibilityinsights.io/info-examples/web/nested-interactive/</a></p>
|
|
6
|
+
* @slot icon - To insert a custom icon into the named `icon` slot.<p>Markup accepted: <a href="https://developer.mozilla.org/en-US/docs/Glossary/Inline-level_content" target="_blank">inline content</a>.<p className="alert alert-sm alert-info">It is only meant for <code>img</code> or <code>svg</code> elements and overrides the `icon` property.</p>
|
|
7
|
+
*/
|
|
8
|
+
export declare class PostCardControl {
|
|
9
|
+
private readonly KEYCODES;
|
|
10
|
+
private group;
|
|
11
|
+
private control;
|
|
12
|
+
private controlId;
|
|
13
|
+
private initialChecked;
|
|
14
|
+
host: HTMLPostCardControlElement;
|
|
15
|
+
focused: boolean;
|
|
16
|
+
private internals;
|
|
17
|
+
/**
|
|
18
|
+
* Defines the text in the control-label.
|
|
19
|
+
*/
|
|
20
|
+
readonly label: string;
|
|
21
|
+
/**
|
|
22
|
+
* Defines the description in the control-label.
|
|
23
|
+
*/
|
|
24
|
+
readonly description: string;
|
|
25
|
+
/**
|
|
26
|
+
* Defines the `type` attribute of the control.
|
|
27
|
+
*/
|
|
28
|
+
readonly type: 'checkbox' | 'radio';
|
|
29
|
+
/**
|
|
30
|
+
* Defines the `name` attribute of the control.
|
|
31
|
+
* <span className="alert alert-sm alert-info">This is a required property, when the control should participate in a native `form`. If not specified, a native `form` will never contain this controls value.</span>
|
|
32
|
+
* <span className="alert alert-sm alert-info">This is a required property, when the control is used with type `radio`.</span>
|
|
33
|
+
*/
|
|
34
|
+
readonly name: string;
|
|
35
|
+
/**
|
|
36
|
+
* Defines the `value` attribute of the control. <span className="alert alert-sm alert-info">This is a required property, when the control is used with type `radio`.</span>
|
|
37
|
+
*/
|
|
38
|
+
readonly value: string;
|
|
39
|
+
/**
|
|
40
|
+
* Defines the `checked` attribute of the control. If `true`, the control is selected at its value will be included in the forms data.
|
|
41
|
+
*/
|
|
42
|
+
checked: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Defines the `disabled` attribute of the control. If `true`, the user can not interact with the control and the controls value will not be included in the forms data.
|
|
45
|
+
*/
|
|
46
|
+
disabled: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Defines the validation `validity` of the control.
|
|
49
|
+
* To reset validity to an undefiend state, simply remove the attribute from the control.
|
|
50
|
+
*/
|
|
51
|
+
validity: null | 'true' | 'false';
|
|
52
|
+
/**
|
|
53
|
+
* Defines the icon `name` inside of the card.
|
|
54
|
+
* <span className="alert alert-sm alert-info">If not set the icon will not show up.</span>
|
|
55
|
+
*/
|
|
56
|
+
readonly icon: string;
|
|
57
|
+
/**
|
|
58
|
+
* An event emitted whenever the components checked state is toggled.
|
|
59
|
+
* The event payload (emitted under `event.detail.state`) is a boolean: `true` if the component is checked, `false` if it is unchecked.
|
|
60
|
+
*/
|
|
61
|
+
postInput: EventEmitter<{
|
|
62
|
+
state: boolean;
|
|
63
|
+
value: string;
|
|
64
|
+
}>;
|
|
65
|
+
/**
|
|
66
|
+
* An event emitted whenever the components checked state is toggled.
|
|
67
|
+
* The event payload (emitted under `event.detail.state`) is a boolean: `true` if the component is checked, `false` if it is unchecked.
|
|
68
|
+
* <span className="alert alert-sm alert-info">If the component is used with type `radio`, it will only emit this event, when the checked state is changing to `true`.</span>
|
|
69
|
+
*/
|
|
70
|
+
postChange: EventEmitter<{
|
|
71
|
+
state: boolean;
|
|
72
|
+
value: string;
|
|
73
|
+
}>;
|
|
74
|
+
/**
|
|
75
|
+
* A public method to reset the controls `checked` and `validity` state.
|
|
76
|
+
* The validity state is set to `null`, so it's neither valid nor invalid.
|
|
77
|
+
*/
|
|
78
|
+
reset(): Promise<void>;
|
|
79
|
+
/**
|
|
80
|
+
* A hidden public method to reset the group controls `checked` state to `false`.
|
|
81
|
+
*/
|
|
82
|
+
groupReset(): Promise<void>;
|
|
83
|
+
validateControlLabel(label?: string): void;
|
|
84
|
+
validateControlType(type?: "checkbox" | "radio"): void;
|
|
85
|
+
updateControlChecked(checked?: boolean): void;
|
|
86
|
+
updateControlDisbled(): void;
|
|
87
|
+
constructor();
|
|
88
|
+
private cardClickHandler;
|
|
89
|
+
private controlClickHandler;
|
|
90
|
+
private controlChangeHandler;
|
|
91
|
+
private controlFocusHandler;
|
|
92
|
+
private controlKeyDownHandler;
|
|
93
|
+
private controlSetChecked;
|
|
94
|
+
private groupCollectMembers;
|
|
95
|
+
private groupGetPrev;
|
|
96
|
+
private groupGetNext;
|
|
97
|
+
private groupSetChecked;
|
|
98
|
+
private readonly HOST_CONTEXT_FILTERS;
|
|
99
|
+
private hostContext;
|
|
100
|
+
private setHostContext;
|
|
101
|
+
connectedCallback(): void;
|
|
102
|
+
render(): any;
|
|
103
|
+
componentDidRender(): void;
|
|
104
|
+
componentDidLoad(): void;
|
|
105
|
+
formAssociatedCallback(): void;
|
|
106
|
+
formDisabledCallback(disabled: boolean): void;
|
|
107
|
+
formStateRestoreCallback(checked: any): void;
|
|
108
|
+
formResetCallback(): void;
|
|
109
|
+
}
|
|
@@ -18,7 +18,7 @@ export declare class PostCollapsible {
|
|
|
18
18
|
*
|
|
19
19
|
* The event payload is a boolean: `true` if the collapsible was opened, `false` if it was closed.
|
|
20
20
|
*/
|
|
21
|
-
|
|
21
|
+
postToggle: EventEmitter<boolean>;
|
|
22
22
|
connectedCallback(): void;
|
|
23
23
|
componentWillRender(): void;
|
|
24
24
|
componentDidLoad(): void;
|
|
@@ -20,7 +20,7 @@ export declare class PostPopovercontainer {
|
|
|
20
20
|
/**
|
|
21
21
|
* Fires whenever the popover gets shown or hidden, passing the new state in event.details as a boolean
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
postToggle: EventEmitter<boolean>;
|
|
24
24
|
/**
|
|
25
25
|
* Defines the placement of the tooltip according to the floating-ui options available at https://floating-ui.com/docs/computePosition#placement.
|
|
26
26
|
* Tooltips are automatically flipped to the opposite side if there is not enough available space and are shifted
|
|
@@ -24,14 +24,14 @@ export declare class PostRating {
|
|
|
24
24
|
* An event emitted whenever the component's value has changed (on input).
|
|
25
25
|
* The event payload can be used like so: `event.detail.value`.
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
postInput: EventEmitter<{
|
|
28
28
|
value: number;
|
|
29
29
|
}>;
|
|
30
30
|
/**
|
|
31
31
|
* An event emitted whenever the component's value has changed (on blur).
|
|
32
32
|
* The event payload can be used like so: `event.detail.value`.
|
|
33
33
|
*/
|
|
34
|
-
|
|
34
|
+
postChange: EventEmitter<{
|
|
35
35
|
value: number;
|
|
36
36
|
}>;
|
|
37
37
|
constructor();
|
|
@@ -21,7 +21,7 @@ export declare class PostTabs {
|
|
|
21
21
|
* An event emitted after the active tab changes, when the fade in transition of its associated panel is finished.
|
|
22
22
|
* The payload is the name of the newly shown panel.
|
|
23
23
|
*/
|
|
24
|
-
|
|
24
|
+
postChange: EventEmitter<HTMLPostTabPanelElement['name']>;
|
|
25
25
|
componentDidLoad(): void;
|
|
26
26
|
/**
|
|
27
27
|
* Shows the panel with the given name and selects its associated tab.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @slot default - Content to place in the `default` slot.<p>Markup accepted: <a href="https://developer.mozilla.org/en-US/docs/Glossary/Inline-level_content" target="_blank">inline content</a>.</p>
|
|
3
|
+
*/
|
|
4
|
+
export declare class PostTag {
|
|
5
|
+
host: HTMLPostTagElement;
|
|
6
|
+
classes: string;
|
|
7
|
+
/**
|
|
8
|
+
* Defines the color variant of the component.
|
|
9
|
+
*/
|
|
10
|
+
readonly variant: 'white' | 'info' | 'success' | 'error' | 'warning' | 'yellow';
|
|
11
|
+
/**
|
|
12
|
+
* Defines the size of the component.
|
|
13
|
+
*/
|
|
14
|
+
readonly size: null | 'sm';
|
|
15
|
+
/**
|
|
16
|
+
* Defines the icon `name` inside of the component.
|
|
17
|
+
* <span className="alert alert-sm alert-info">If not set the icon will not show up.</span>
|
|
18
|
+
* To learn which icons are available, please visit our <a href="/?path=/docs/5704bdc4-c5b5-45e6-b123-c54d01fce2f1--docs" target="_blank">icon library</a>.
|
|
19
|
+
*/
|
|
20
|
+
readonly icon: null | string;
|
|
21
|
+
constructor();
|
|
22
|
+
variantChanged(): void;
|
|
23
|
+
sizeChanged(): void;
|
|
24
|
+
private setClasses;
|
|
25
|
+
connectedCallback(): void;
|
|
26
|
+
render(): any;
|
|
27
|
+
}
|
|
@@ -70,6 +70,55 @@ export namespace Components {
|
|
|
70
70
|
*/
|
|
71
71
|
"type": AlertType;
|
|
72
72
|
}
|
|
73
|
+
/**
|
|
74
|
+
* @class PostCardControl - representing a stencil component
|
|
75
|
+
*/
|
|
76
|
+
interface PostCardControl {
|
|
77
|
+
/**
|
|
78
|
+
* Defines the `checked` attribute of the control. If `true`, the control is selected at its value will be included in the forms data.
|
|
79
|
+
*/
|
|
80
|
+
"checked": boolean;
|
|
81
|
+
/**
|
|
82
|
+
* Defines the description in the control-label.
|
|
83
|
+
*/
|
|
84
|
+
"description": string;
|
|
85
|
+
/**
|
|
86
|
+
* Defines the `disabled` attribute of the control. If `true`, the user can not interact with the control and the controls value will not be included in the forms data.
|
|
87
|
+
*/
|
|
88
|
+
"disabled": boolean;
|
|
89
|
+
/**
|
|
90
|
+
* A hidden public method to reset the group controls `checked` state to `false`.
|
|
91
|
+
*/
|
|
92
|
+
"groupReset": () => Promise<void>;
|
|
93
|
+
/**
|
|
94
|
+
* Defines the icon `name` inside of the card. <span className="alert alert-sm alert-info">If not set the icon will not show up.</span>
|
|
95
|
+
*/
|
|
96
|
+
"icon": string;
|
|
97
|
+
/**
|
|
98
|
+
* Defines the text in the control-label.
|
|
99
|
+
*/
|
|
100
|
+
"label": string;
|
|
101
|
+
/**
|
|
102
|
+
* Defines the `name` attribute of the control. <span className="alert alert-sm alert-info">This is a required property, when the control should participate in a native `form`. If not specified, a native `form` will never contain this controls value.</span> <span className="alert alert-sm alert-info">This is a required property, when the control is used with type `radio`.</span>
|
|
103
|
+
*/
|
|
104
|
+
"name": string;
|
|
105
|
+
/**
|
|
106
|
+
* A public method to reset the controls `checked` and `validity` state. The validity state is set to `null`, so it's neither valid nor invalid.
|
|
107
|
+
*/
|
|
108
|
+
"reset": () => Promise<void>;
|
|
109
|
+
/**
|
|
110
|
+
* Defines the `type` attribute of the control.
|
|
111
|
+
*/
|
|
112
|
+
"type": 'checkbox' | 'radio';
|
|
113
|
+
/**
|
|
114
|
+
* Defines the validation `validity` of the control. To reset validity to an undefiend state, simply remove the attribute from the control.
|
|
115
|
+
*/
|
|
116
|
+
"validity": null | 'true' | 'false';
|
|
117
|
+
/**
|
|
118
|
+
* Defines the `value` attribute of the control. <span className="alert alert-sm alert-info">This is a required property, when the control is used with type `radio`.</span>
|
|
119
|
+
*/
|
|
120
|
+
"value": string;
|
|
121
|
+
}
|
|
73
122
|
interface PostCollapsible {
|
|
74
123
|
/**
|
|
75
124
|
* If `true`, the element is initially collapsed otherwise it is displayed.
|
|
@@ -207,6 +256,20 @@ export namespace Components {
|
|
|
207
256
|
*/
|
|
208
257
|
"show": (panelName: string) => Promise<void>;
|
|
209
258
|
}
|
|
259
|
+
interface PostTag {
|
|
260
|
+
/**
|
|
261
|
+
* Defines the icon `name` inside of the component. <span className="alert alert-sm alert-info">If not set the icon will not show up.</span> To learn which icons are available, please visit our <a href="/?path=/docs/5704bdc4-c5b5-45e6-b123-c54d01fce2f1--docs" target="_blank">icon library</a>.
|
|
262
|
+
*/
|
|
263
|
+
"icon": null | string;
|
|
264
|
+
/**
|
|
265
|
+
* Defines the size of the component.
|
|
266
|
+
*/
|
|
267
|
+
"size": null | 'sm';
|
|
268
|
+
/**
|
|
269
|
+
* Defines the color variant of the component.
|
|
270
|
+
*/
|
|
271
|
+
"variant": 'white' | 'info' | 'success' | 'error' | 'warning' | 'yellow';
|
|
272
|
+
}
|
|
210
273
|
interface PostTooltip {
|
|
211
274
|
/**
|
|
212
275
|
* Wheter or not to display a little pointer arrow
|
|
@@ -237,6 +300,10 @@ export interface PostAlertCustomEvent<T> extends CustomEvent<T> {
|
|
|
237
300
|
detail: T;
|
|
238
301
|
target: HTMLPostAlertElement;
|
|
239
302
|
}
|
|
303
|
+
export interface PostCardControlCustomEvent<T> extends CustomEvent<T> {
|
|
304
|
+
detail: T;
|
|
305
|
+
target: HTMLPostCardControlElement;
|
|
306
|
+
}
|
|
240
307
|
export interface PostCollapsibleCustomEvent<T> extends CustomEvent<T> {
|
|
241
308
|
detail: T;
|
|
242
309
|
target: HTMLPostCollapsibleElement;
|
|
@@ -267,7 +334,7 @@ declare global {
|
|
|
267
334
|
new (): HTMLPostAccordionItemElement;
|
|
268
335
|
};
|
|
269
336
|
interface HTMLPostAlertElementEventMap {
|
|
270
|
-
"
|
|
337
|
+
"postDismissed": void;
|
|
271
338
|
}
|
|
272
339
|
interface HTMLPostAlertElement extends Components.PostAlert, HTMLStencilElement {
|
|
273
340
|
addEventListener<K extends keyof HTMLPostAlertElementEventMap>(type: K, listener: (this: HTMLPostAlertElement, ev: PostAlertCustomEvent<HTMLPostAlertElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -283,8 +350,29 @@ declare global {
|
|
|
283
350
|
prototype: HTMLPostAlertElement;
|
|
284
351
|
new (): HTMLPostAlertElement;
|
|
285
352
|
};
|
|
353
|
+
interface HTMLPostCardControlElementEventMap {
|
|
354
|
+
"postInput": { state: boolean; value: string };
|
|
355
|
+
"postChange": { state: boolean; value: string };
|
|
356
|
+
}
|
|
357
|
+
/**
|
|
358
|
+
* @class PostCardControl - representing a stencil component
|
|
359
|
+
*/
|
|
360
|
+
interface HTMLPostCardControlElement extends Components.PostCardControl, HTMLStencilElement {
|
|
361
|
+
addEventListener<K extends keyof HTMLPostCardControlElementEventMap>(type: K, listener: (this: HTMLPostCardControlElement, ev: PostCardControlCustomEvent<HTMLPostCardControlElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
362
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
363
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
364
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
365
|
+
removeEventListener<K extends keyof HTMLPostCardControlElementEventMap>(type: K, listener: (this: HTMLPostCardControlElement, ev: PostCardControlCustomEvent<HTMLPostCardControlElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
366
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
367
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
368
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
369
|
+
}
|
|
370
|
+
var HTMLPostCardControlElement: {
|
|
371
|
+
prototype: HTMLPostCardControlElement;
|
|
372
|
+
new (): HTMLPostCardControlElement;
|
|
373
|
+
};
|
|
286
374
|
interface HTMLPostCollapsibleElementEventMap {
|
|
287
|
-
"
|
|
375
|
+
"postToggle": boolean;
|
|
288
376
|
}
|
|
289
377
|
interface HTMLPostCollapsibleElement extends Components.PostCollapsible, HTMLStencilElement {
|
|
290
378
|
addEventListener<K extends keyof HTMLPostCollapsibleElementEventMap>(type: K, listener: (this: HTMLPostCollapsibleElement, ev: PostCollapsibleCustomEvent<HTMLPostCollapsibleElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -316,7 +404,7 @@ declare global {
|
|
|
316
404
|
new (): HTMLPostPopoverElement;
|
|
317
405
|
};
|
|
318
406
|
interface HTMLPostPopovercontainerElementEventMap {
|
|
319
|
-
"
|
|
407
|
+
"postToggle": boolean;
|
|
320
408
|
}
|
|
321
409
|
interface HTMLPostPopovercontainerElement extends Components.PostPopovercontainer, HTMLStencilElement {
|
|
322
410
|
addEventListener<K extends keyof HTMLPostPopovercontainerElementEventMap>(type: K, listener: (this: HTMLPostPopovercontainerElement, ev: PostPopovercontainerCustomEvent<HTMLPostPopovercontainerElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -333,8 +421,8 @@ declare global {
|
|
|
333
421
|
new (): HTMLPostPopovercontainerElement;
|
|
334
422
|
};
|
|
335
423
|
interface HTMLPostRatingElementEventMap {
|
|
336
|
-
"
|
|
337
|
-
"
|
|
424
|
+
"postInput": { value: number };
|
|
425
|
+
"postChange": { value: number };
|
|
338
426
|
}
|
|
339
427
|
interface HTMLPostRatingElement extends Components.PostRating, HTMLStencilElement {
|
|
340
428
|
addEventListener<K extends keyof HTMLPostRatingElementEventMap>(type: K, listener: (this: HTMLPostRatingElement, ev: PostRatingCustomEvent<HTMLPostRatingElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -363,7 +451,7 @@ declare global {
|
|
|
363
451
|
new (): HTMLPostTabPanelElement;
|
|
364
452
|
};
|
|
365
453
|
interface HTMLPostTabsElementEventMap {
|
|
366
|
-
"
|
|
454
|
+
"postChange": HTMLPostTabPanelElement['name'];
|
|
367
455
|
}
|
|
368
456
|
interface HTMLPostTabsElement extends Components.PostTabs, HTMLStencilElement {
|
|
369
457
|
addEventListener<K extends keyof HTMLPostTabsElementEventMap>(type: K, listener: (this: HTMLPostTabsElement, ev: PostTabsCustomEvent<HTMLPostTabsElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -379,6 +467,12 @@ declare global {
|
|
|
379
467
|
prototype: HTMLPostTabsElement;
|
|
380
468
|
new (): HTMLPostTabsElement;
|
|
381
469
|
};
|
|
470
|
+
interface HTMLPostTagElement extends Components.PostTag, HTMLStencilElement {
|
|
471
|
+
}
|
|
472
|
+
var HTMLPostTagElement: {
|
|
473
|
+
prototype: HTMLPostTagElement;
|
|
474
|
+
new (): HTMLPostTagElement;
|
|
475
|
+
};
|
|
382
476
|
interface HTMLPostTooltipElement extends Components.PostTooltip, HTMLStencilElement {
|
|
383
477
|
}
|
|
384
478
|
var HTMLPostTooltipElement: {
|
|
@@ -389,6 +483,7 @@ declare global {
|
|
|
389
483
|
"post-accordion": HTMLPostAccordionElement;
|
|
390
484
|
"post-accordion-item": HTMLPostAccordionItemElement;
|
|
391
485
|
"post-alert": HTMLPostAlertElement;
|
|
486
|
+
"post-card-control": HTMLPostCardControlElement;
|
|
392
487
|
"post-collapsible": HTMLPostCollapsibleElement;
|
|
393
488
|
"post-icon": HTMLPostIconElement;
|
|
394
489
|
"post-popover": HTMLPostPopoverElement;
|
|
@@ -397,6 +492,7 @@ declare global {
|
|
|
397
492
|
"post-tab-header": HTMLPostTabHeaderElement;
|
|
398
493
|
"post-tab-panel": HTMLPostTabPanelElement;
|
|
399
494
|
"post-tabs": HTMLPostTabsElement;
|
|
495
|
+
"post-tag": HTMLPostTagElement;
|
|
400
496
|
"post-tooltip": HTMLPostTooltipElement;
|
|
401
497
|
}
|
|
402
498
|
}
|
|
@@ -437,12 +533,61 @@ declare namespace LocalJSX {
|
|
|
437
533
|
/**
|
|
438
534
|
* An event emitted when the alert element is dismissed, after the transition. It has no payload and only relevant for dismissible alerts.
|
|
439
535
|
*/
|
|
440
|
-
"
|
|
536
|
+
"onPostDismissed"?: (event: PostAlertCustomEvent<void>) => void;
|
|
441
537
|
/**
|
|
442
538
|
* The type of the alert.
|
|
443
539
|
*/
|
|
444
540
|
"type"?: AlertType;
|
|
445
541
|
}
|
|
542
|
+
/**
|
|
543
|
+
* @class PostCardControl - representing a stencil component
|
|
544
|
+
*/
|
|
545
|
+
interface PostCardControl {
|
|
546
|
+
/**
|
|
547
|
+
* Defines the `checked` attribute of the control. If `true`, the control is selected at its value will be included in the forms data.
|
|
548
|
+
*/
|
|
549
|
+
"checked"?: boolean;
|
|
550
|
+
/**
|
|
551
|
+
* Defines the description in the control-label.
|
|
552
|
+
*/
|
|
553
|
+
"description"?: string;
|
|
554
|
+
/**
|
|
555
|
+
* Defines the `disabled` attribute of the control. If `true`, the user can not interact with the control and the controls value will not be included in the forms data.
|
|
556
|
+
*/
|
|
557
|
+
"disabled"?: boolean;
|
|
558
|
+
/**
|
|
559
|
+
* Defines the icon `name` inside of the card. <span className="alert alert-sm alert-info">If not set the icon will not show up.</span>
|
|
560
|
+
*/
|
|
561
|
+
"icon"?: string;
|
|
562
|
+
/**
|
|
563
|
+
* Defines the text in the control-label.
|
|
564
|
+
*/
|
|
565
|
+
"label": string;
|
|
566
|
+
/**
|
|
567
|
+
* Defines the `name` attribute of the control. <span className="alert alert-sm alert-info">This is a required property, when the control should participate in a native `form`. If not specified, a native `form` will never contain this controls value.</span> <span className="alert alert-sm alert-info">This is a required property, when the control is used with type `radio`.</span>
|
|
568
|
+
*/
|
|
569
|
+
"name"?: string;
|
|
570
|
+
/**
|
|
571
|
+
* An event emitted whenever the components checked state is toggled. The event payload (emitted under `event.detail.state`) is a boolean: `true` if the component is checked, `false` if it is unchecked. <span className="alert alert-sm alert-info">If the component is used with type `radio`, it will only emit this event, when the checked state is changing to `true`.</span>
|
|
572
|
+
*/
|
|
573
|
+
"onPostChange"?: (event: PostCardControlCustomEvent<{ state: boolean; value: string }>) => void;
|
|
574
|
+
/**
|
|
575
|
+
* An event emitted whenever the components checked state is toggled. The event payload (emitted under `event.detail.state`) is a boolean: `true` if the component is checked, `false` if it is unchecked.
|
|
576
|
+
*/
|
|
577
|
+
"onPostInput"?: (event: PostCardControlCustomEvent<{ state: boolean; value: string }>) => void;
|
|
578
|
+
/**
|
|
579
|
+
* Defines the `type` attribute of the control.
|
|
580
|
+
*/
|
|
581
|
+
"type": 'checkbox' | 'radio';
|
|
582
|
+
/**
|
|
583
|
+
* Defines the validation `validity` of the control. To reset validity to an undefiend state, simply remove the attribute from the control.
|
|
584
|
+
*/
|
|
585
|
+
"validity"?: null | 'true' | 'false';
|
|
586
|
+
/**
|
|
587
|
+
* Defines the `value` attribute of the control. <span className="alert alert-sm alert-info">This is a required property, when the control is used with type `radio`.</span>
|
|
588
|
+
*/
|
|
589
|
+
"value"?: string;
|
|
590
|
+
}
|
|
446
591
|
interface PostCollapsible {
|
|
447
592
|
/**
|
|
448
593
|
* If `true`, the element is initially collapsed otherwise it is displayed.
|
|
@@ -451,7 +596,7 @@ declare namespace LocalJSX {
|
|
|
451
596
|
/**
|
|
452
597
|
* An event emitted when the collapse element is shown or hidden, before the transition. The event payload is a boolean: `true` if the collapsible was opened, `false` if it was closed.
|
|
453
598
|
*/
|
|
454
|
-
"
|
|
599
|
+
"onPostToggle"?: (event: PostCollapsibleCustomEvent<boolean>) => void;
|
|
455
600
|
}
|
|
456
601
|
/**
|
|
457
602
|
* @class PostIcon - representing a stencil component
|
|
@@ -508,7 +653,7 @@ declare namespace LocalJSX {
|
|
|
508
653
|
/**
|
|
509
654
|
* Fires whenever the popover gets shown or hidden, passing the new state in event.details as a boolean
|
|
510
655
|
*/
|
|
511
|
-
"
|
|
656
|
+
"onPostToggle"?: (event: PostPopovercontainerCustomEvent<boolean>) => void;
|
|
512
657
|
/**
|
|
513
658
|
* Defines the placement of the tooltip according to the floating-ui options available at https://floating-ui.com/docs/computePosition#placement. Tooltips are automatically flipped to the opposite side if there is not enough available space and are shifted towards the viewport if they would overlap edge boundaries.
|
|
514
659
|
*/
|
|
@@ -526,11 +671,11 @@ declare namespace LocalJSX {
|
|
|
526
671
|
/**
|
|
527
672
|
* An event emitted whenever the component's value has changed (on blur). The event payload can be used like so: `event.detail.value`.
|
|
528
673
|
*/
|
|
529
|
-
"
|
|
674
|
+
"onPostChange"?: (event: PostRatingCustomEvent<{ value: number }>) => void;
|
|
530
675
|
/**
|
|
531
676
|
* An event emitted whenever the component's value has changed (on input). The event payload can be used like so: `event.detail.value`.
|
|
532
677
|
*/
|
|
533
|
-
"
|
|
678
|
+
"onPostInput"?: (event: PostRatingCustomEvent<{ value: number }>) => void;
|
|
534
679
|
/**
|
|
535
680
|
* Defines if the component is readonly or not. This usually should be used together with the `currentRating` property.
|
|
536
681
|
*/
|
|
@@ -560,7 +705,21 @@ declare namespace LocalJSX {
|
|
|
560
705
|
/**
|
|
561
706
|
* An event emitted after the active tab changes, when the fade in transition of its associated panel is finished. The payload is the name of the newly shown panel.
|
|
562
707
|
*/
|
|
563
|
-
"
|
|
708
|
+
"onPostChange"?: (event: PostTabsCustomEvent<HTMLPostTabPanelElement['name']>) => void;
|
|
709
|
+
}
|
|
710
|
+
interface PostTag {
|
|
711
|
+
/**
|
|
712
|
+
* Defines the icon `name` inside of the component. <span className="alert alert-sm alert-info">If not set the icon will not show up.</span> To learn which icons are available, please visit our <a href="/?path=/docs/5704bdc4-c5b5-45e6-b123-c54d01fce2f1--docs" target="_blank">icon library</a>.
|
|
713
|
+
*/
|
|
714
|
+
"icon"?: null | string;
|
|
715
|
+
/**
|
|
716
|
+
* Defines the size of the component.
|
|
717
|
+
*/
|
|
718
|
+
"size"?: null | 'sm';
|
|
719
|
+
/**
|
|
720
|
+
* Defines the color variant of the component.
|
|
721
|
+
*/
|
|
722
|
+
"variant"?: 'white' | 'info' | 'success' | 'error' | 'warning' | 'yellow';
|
|
564
723
|
}
|
|
565
724
|
interface PostTooltip {
|
|
566
725
|
/**
|
|
@@ -576,6 +735,7 @@ declare namespace LocalJSX {
|
|
|
576
735
|
"post-accordion": PostAccordion;
|
|
577
736
|
"post-accordion-item": PostAccordionItem;
|
|
578
737
|
"post-alert": PostAlert;
|
|
738
|
+
"post-card-control": PostCardControl;
|
|
579
739
|
"post-collapsible": PostCollapsible;
|
|
580
740
|
"post-icon": PostIcon;
|
|
581
741
|
"post-popover": PostPopover;
|
|
@@ -584,6 +744,7 @@ declare namespace LocalJSX {
|
|
|
584
744
|
"post-tab-header": PostTabHeader;
|
|
585
745
|
"post-tab-panel": PostTabPanel;
|
|
586
746
|
"post-tabs": PostTabs;
|
|
747
|
+
"post-tag": PostTag;
|
|
587
748
|
"post-tooltip": PostTooltip;
|
|
588
749
|
}
|
|
589
750
|
}
|
|
@@ -594,6 +755,10 @@ declare module "@stencil/core" {
|
|
|
594
755
|
"post-accordion": LocalJSX.PostAccordion & JSXBase.HTMLAttributes<HTMLPostAccordionElement>;
|
|
595
756
|
"post-accordion-item": LocalJSX.PostAccordionItem & JSXBase.HTMLAttributes<HTMLPostAccordionItemElement>;
|
|
596
757
|
"post-alert": LocalJSX.PostAlert & JSXBase.HTMLAttributes<HTMLPostAlertElement>;
|
|
758
|
+
/**
|
|
759
|
+
* @class PostCardControl - representing a stencil component
|
|
760
|
+
*/
|
|
761
|
+
"post-card-control": LocalJSX.PostCardControl & JSXBase.HTMLAttributes<HTMLPostCardControlElement>;
|
|
597
762
|
"post-collapsible": LocalJSX.PostCollapsible & JSXBase.HTMLAttributes<HTMLPostCollapsibleElement>;
|
|
598
763
|
/**
|
|
599
764
|
* @class PostIcon - representing a stencil component
|
|
@@ -605,6 +770,7 @@ declare module "@stencil/core" {
|
|
|
605
770
|
"post-tab-header": LocalJSX.PostTabHeader & JSXBase.HTMLAttributes<HTMLPostTabHeaderElement>;
|
|
606
771
|
"post-tab-panel": LocalJSX.PostTabPanel & JSXBase.HTMLAttributes<HTMLPostTabPanelElement>;
|
|
607
772
|
"post-tabs": LocalJSX.PostTabs & JSXBase.HTMLAttributes<HTMLPostTabsElement>;
|
|
773
|
+
"post-tag": LocalJSX.PostTag & JSXBase.HTMLAttributes<HTMLPostTagElement>;
|
|
608
774
|
"post-tooltip": LocalJSX.PostTooltip & JSXBase.HTMLAttributes<HTMLPostTooltipElement>;
|
|
609
775
|
}
|
|
610
776
|
}
|
|
File without changes
|
package/dist/types/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export { Components, JSX } from './components';
|
|
|
2
2
|
export { PostAccordion } from './components/post-accordion/post-accordion';
|
|
3
3
|
export { PostAccordionItem } from './components/post-accordion-item/post-accordion-item';
|
|
4
4
|
export { PostAlert } from './components/post-alert/post-alert';
|
|
5
|
+
export { PostCardControl } from './components/post-card-control/post-card-control';
|
|
5
6
|
export { PostCollapsible } from './components/post-collapsible/post-collapsible';
|
|
6
7
|
export { PostIcon } from './components/post-icon/post-icon';
|
|
7
8
|
export { PostPopover } from './components/post-popover/post-popover';
|
|
@@ -11,3 +12,4 @@ export { PostTabs } from './components/post-tabs/post-tabs';
|
|
|
11
12
|
export { PostTabHeader } from './components/post-tab-header/post-tab-header';
|
|
12
13
|
export { PostTabPanel } from './components/post-tab-panel/post-tab-panel';
|
|
13
14
|
export { PostTooltip } from './components/post-tooltip/post-tooltip';
|
|
15
|
+
export { PostTag } from './components/post-tag/post-tag';
|
package/package.json
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swisspost/design-system-components",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"description": "A collection of web components built with Stencil JS for the Swiss Post Design System.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
|
-
"main": "
|
|
7
|
-
"module": "
|
|
8
|
-
"
|
|
9
|
-
"types": "loader/index.d.ts",
|
|
6
|
+
"main": "dist/index.cjs.js",
|
|
7
|
+
"module": "dist/index.js",
|
|
8
|
+
"types": "dist/types/index.d.ts",
|
|
10
9
|
"collection": "dist/collection/collection-manifest.json",
|
|
11
10
|
"collection:main": "dist/collection/index.js",
|
|
12
11
|
"unpkg": "dist/post-components/post-components.esm.js",
|
|
@@ -24,34 +23,35 @@
|
|
|
24
23
|
"linkDirectory": true
|
|
25
24
|
},
|
|
26
25
|
"dependencies": {
|
|
27
|
-
"@floating-ui/dom": "1.6.
|
|
26
|
+
"@floating-ui/dom": "1.6.3",
|
|
28
27
|
"@oddbird/popover-polyfill": "0.3.7",
|
|
29
|
-
"@swisspost/design-system-styles": "
|
|
28
|
+
"@swisspost/design-system-styles": "7.0.0",
|
|
30
29
|
"ally.js": "1.4.1",
|
|
31
30
|
"long-press-event": "2.4.6"
|
|
32
31
|
},
|
|
33
32
|
"devDependencies": {
|
|
34
|
-
"@percy/cli": "1.
|
|
33
|
+
"@percy/cli": "1.28.2",
|
|
35
34
|
"@percy/cypress": "3.1.2",
|
|
36
|
-
"@stencil-community/eslint-plugin": "0.7.
|
|
35
|
+
"@stencil-community/eslint-plugin": "0.7.2",
|
|
37
36
|
"@stencil/angular-output-target": "0.8.4",
|
|
38
|
-
"@stencil/core": "4.
|
|
37
|
+
"@stencil/core": "4.14.0",
|
|
39
38
|
"@stencil/react-output-target": "0.5.3",
|
|
40
|
-
"@stencil/sass": "3.0.
|
|
39
|
+
"@stencil/sass": "3.0.11",
|
|
41
40
|
"@types/jest": "29.5.12",
|
|
42
41
|
"@types/node": "20.11.16",
|
|
43
42
|
"@typescript-eslint/eslint-plugin": "5.62.0",
|
|
44
43
|
"@typescript-eslint/parser": "5.62.0",
|
|
45
44
|
"bootstrap": "5.3.2",
|
|
46
|
-
"cypress": "13.
|
|
45
|
+
"cypress": "13.7.2",
|
|
47
46
|
"cypress-axe": "1.5.0",
|
|
48
47
|
"cypress-storybook": "0.5.1",
|
|
49
|
-
"eslint": "8.
|
|
50
|
-
"eslint-plugin-react": "7.
|
|
48
|
+
"eslint": "8.57.0",
|
|
49
|
+
"eslint-plugin-react": "7.34.1",
|
|
51
50
|
"rimraf": "5.0.5",
|
|
52
|
-
"
|
|
51
|
+
"rollup-plugin-postcss": "4.0.2",
|
|
52
|
+
"sass": "1.74.1",
|
|
53
53
|
"ts-jest": "29.1.2",
|
|
54
|
-
"typescript": "
|
|
54
|
+
"typescript": "5.3.3"
|
|
55
55
|
},
|
|
56
56
|
"keywords": [
|
|
57
57
|
"components",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"frontend"
|
|
63
63
|
],
|
|
64
64
|
"scripts": {
|
|
65
|
-
"dev": "stencil build --
|
|
65
|
+
"dev": "stencil build --port 9200 --serve --watch --docs-readme",
|
|
66
66
|
"start": "stencil build --watch --docs-readme",
|
|
67
67
|
"build": "stencil build --docs-readme",
|
|
68
68
|
"clean": "rimraf www dist loader",
|