@swisspost/design-system-components 2.1.0 → 7.1.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/heading-levels-608d432e.js +5 -0
- package/dist/cjs/{index-8c288b1a.js → index-a1440961.js} +2 -6
- package/dist/cjs/index-de783b23.js +1394 -0
- package/dist/cjs/index.cjs.js +21 -15
- package/dist/cjs/loader.cjs.js +5 -3
- package/dist/cjs/{package-96a46572.js → package-dacf5ec2.js} +1 -1
- package/dist/cjs/{post-accordion-9d27458a.js → post-accordion-225de951.js} +40 -23
- package/dist/cjs/post-accordion-item-935e122a.js +52 -0
- package/dist/cjs/post-accordion-item.cjs.entry.js +6 -4
- package/dist/cjs/post-accordion.cjs.entry.js +5 -3
- package/dist/cjs/post-alert-6041a34c.js +98 -0
- package/dist/cjs/post-alert.cjs.entry.js +5 -4
- package/dist/cjs/post-card-control-3c089d8e.js +314 -0
- package/dist/cjs/post-card-control.cjs.entry.js +14 -0
- package/dist/cjs/{post-collapsible-1867015c.js → post-collapsible-562268e9.js} +7 -7
- package/dist/cjs/post-collapsible.cjs.entry.js +5 -4
- package/dist/cjs/post-components.cjs.js +13 -11
- package/dist/cjs/{post-icon-07a67b83.js → post-icon-973d5c46.js} +5 -5
- package/dist/cjs/post-icon.cjs.entry.js +5 -4
- package/dist/cjs/post-popover-b0844e71.js +104 -0
- package/dist/cjs/post-popover.cjs.entry.js +3 -3
- package/dist/cjs/{post-popovercontainer-003c0819.js → post-popovercontainer-5bb6a804.js} +254 -55
- package/dist/cjs/post-popovercontainer.cjs.entry.js +3 -3
- package/dist/cjs/post-rating-d2845096.js +88 -0
- package/dist/cjs/post-rating.cjs.entry.js +3 -3
- package/dist/cjs/post-tab-header-6496a51b.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-25bd8c74.js} +3 -3
- package/dist/cjs/post-tab-panel.cjs.entry.js +3 -3
- package/dist/cjs/{post-tabs-2eb6f376.js → post-tabs-4e4ee252.js} +23 -21
- package/dist/cjs/post-tabs.cjs.entry.js +3 -3
- package/dist/cjs/post-tag-cbc458ed.js +47 -0
- package/dist/cjs/post-tag.cjs.entry.js +11 -0
- package/dist/cjs/{post-tooltip-260d0627.js → post-tooltip-805bc0c0.js} +13 -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 +68 -25
- package/dist/collection/components/post-accordion-item/post-accordion-item.css +1 -1
- package/dist/collection/components/post-accordion-item/post-accordion-item.js +17 -12
- 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 +9 -9
- package/dist/collection/components/post-card-control/post-card-control.css +31 -0
- package/dist/collection/components/post-card-control/post-card-control.js +523 -0
- package/dist/collection/components/post-collapsible/post-collapsible.css +1 -1
- package/dist/collection/components/post-collapsible/post-collapsible.js +6 -6
- package/dist/collection/components/post-icon/post-icon.js +4 -4
- package/dist/collection/components/post-popover/post-popover.css +29 -1
- package/dist/collection/components/post-popover/post-popover.js +3 -3
- package/dist/collection/components/post-popovercontainer/post-popovercontainer.css +1 -1
- package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +7 -7
- package/dist/collection/components/post-rating/post-rating.css +28 -0
- package/dist/collection/components/post-rating/post-rating.js +8 -8
- package/dist/collection/components/post-tab-header/post-tab-header.css +30 -2
- package/dist/collection/components/post-tab-header/post-tab-header.js +3 -3
- package/dist/collection/components/post-tab-panel/post-tab-panel.js +2 -2
- package/dist/collection/components/post-tabs/post-tabs.css +1 -1
- package/dist/collection/components/post-tabs/post-tabs.js +23 -21
- package/dist/collection/components/post-tag/post-tag.css +31 -0
- package/dist/collection/components/post-tag/post-tag.js +119 -0
- package/dist/collection/components/post-tooltip/post-tooltip.js +12 -9
- package/dist/collection/index.js +2 -0
- package/dist/collection/types/heading-levels.js +1 -0
- package/dist/collection/types/index.js +1 -0
- package/dist/collection/utils/index.js +1 -0
- package/dist/collection/utils/sass-export.js +16 -0
- package/dist/components/check-one-of.js +6 -0
- package/dist/components/heading-levels.js +3 -0
- package/dist/components/index.js +2 -0
- package/dist/components/index2.js +1 -5
- package/dist/components/package.js +1 -1
- package/dist/components/post-accordion-item2.js +9 -8
- package/dist/components/post-accordion2.js +42 -22
- 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 +345 -0
- package/dist/components/post-collapsible2.js +4 -4
- package/dist/components/post-icon2.js +2 -2
- package/dist/components/post-popover2.js +2 -2
- package/dist/components/post-popovercontainer2.js +252 -53
- 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 +74 -0
- package/dist/components/post-tooltip2.js +11 -7
- package/dist/docs.d.ts +34 -0
- package/dist/docs.json +538 -25
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/check-one-of-6b3ef8eb.js +6 -0
- package/dist/esm/heading-levels-5b7b4349.js +3 -0
- package/dist/esm/index-cf1d5611.js +1365 -0
- package/dist/esm/{index-b444db27.js → index-d1eba94c.js} +1 -5
- package/dist/esm/index.js +19 -15
- package/dist/esm/loader.js +6 -4
- package/dist/esm/{package-50a9c0c3.js → package-a837c1ad.js} +1 -1
- package/dist/esm/{post-accordion-33fe4f0e.js → post-accordion-fdd22c1d.js} +40 -23
- package/dist/esm/post-accordion-item-336f568c.js +50 -0
- package/dist/esm/post-accordion-item.entry.js +6 -4
- package/dist/esm/post-accordion.entry.js +5 -3
- package/dist/esm/post-alert-f48527d8.js +96 -0
- package/dist/esm/post-alert.entry.js +5 -4
- package/dist/esm/post-card-control-3e6a5855.js +312 -0
- package/dist/esm/post-card-control.entry.js +6 -0
- package/dist/esm/{post-collapsible-50dc361b.js → post-collapsible-486ab980.js} +7 -7
- package/dist/esm/post-collapsible.entry.js +5 -4
- package/dist/esm/post-components.js +14 -12
- package/dist/esm/{post-icon-00f314ae.js → post-icon-19fdfc4d.js} +5 -5
- package/dist/esm/post-icon.entry.js +5 -4
- package/dist/esm/post-popover-17164186.js +102 -0
- package/dist/esm/post-popover.entry.js +3 -3
- package/dist/esm/{post-popovercontainer-62e1fd82.js → post-popovercontainer-d19f9646.js} +254 -55
- package/dist/esm/post-popovercontainer.entry.js +3 -3
- package/dist/esm/post-rating-ea204778.js +86 -0
- package/dist/esm/post-rating.entry.js +3 -3
- package/dist/esm/post-tab-header-a97cdef2.js +30 -0
- package/dist/esm/post-tab-header.entry.js +3 -3
- package/dist/esm/{post-tab-panel-37a1331f.js → post-tab-panel-e6999395.js} +3 -3
- package/dist/esm/post-tab-panel.entry.js +3 -3
- package/dist/esm/{post-tabs-c4e65a45.js → post-tabs-524c699a.js} +23 -21
- package/dist/esm/post-tabs.entry.js +3 -3
- package/dist/esm/post-tag-e2035a81.js +45 -0
- package/dist/esm/post-tag.entry.js +3 -0
- package/dist/esm/{post-tooltip-033f63fa.js → post-tooltip-e4fc9c0c.js} +13 -9
- package/dist/esm/post-tooltip.entry.js +3 -3
- package/dist/post-components/index.esm.js +1 -1
- package/dist/post-components/p-07cc4853.entry.js +1 -0
- package/dist/post-components/p-0e410cec.entry.js +1 -0
- package/dist/post-components/p-14e22434.entry.js +1 -0
- package/dist/post-components/p-18a2ef27.js +1 -0
- package/dist/post-components/p-18b571e3.js +2 -0
- package/dist/post-components/p-247a1668.js +1 -0
- package/dist/post-components/p-2f4c40ee.js +1 -0
- package/dist/post-components/p-39a1dcb8.entry.js +1 -0
- package/dist/post-components/p-3b0988a1.js +1 -0
- package/dist/post-components/p-3ee18d14.entry.js +1 -0
- package/dist/post-components/p-4575a570.js +1 -0
- package/dist/post-components/p-59da0b80.js +1 -0
- package/dist/post-components/p-611b3c41.js +1 -0
- package/dist/post-components/p-63277771.entry.js +1 -0
- package/dist/post-components/p-67df1075.js +1 -0
- package/dist/post-components/p-74db9b35.entry.js +1 -0
- package/dist/post-components/p-7bb79254.entry.js +1 -0
- package/dist/post-components/p-8398de7b.entry.js +1 -0
- package/dist/post-components/p-9a59f2c7.js +1 -0
- package/dist/post-components/p-c4a7208a.js +1 -0
- package/dist/post-components/{p-7e7833f7.js → p-c85913ed.js} +3 -3
- package/dist/post-components/p-caaa5b4c.entry.js +1 -0
- package/dist/post-components/p-cf10d355.js +1 -0
- package/dist/post-components/p-d1f516dd.js +1 -0
- package/dist/post-components/p-d2eb0f0b.js +1 -0
- package/dist/post-components/p-d70f33cd.js +1 -0
- package/dist/post-components/p-da049db2.entry.js +1 -0
- package/dist/post-components/p-db114d1d.entry.js +1 -0
- package/dist/post-components/p-e1255160.js +1 -0
- package/dist/post-components/p-e929ddbc.js +1 -0
- package/dist/post-components/p-ebb54756.entry.js +1 -0
- package/dist/post-components/p-ed22dec0.js +1 -0
- package/dist/post-components/p-f5d8f3fe.entry.js +1 -0
- package/dist/post-components/p-f91c0e1b.js +1 -0
- package/dist/post-components/post-components.esm.js +1 -1
- package/dist/types/components/post-accordion/post-accordion.d.ts +8 -2
- package/dist/types/components/post-accordion-item/post-accordion-item.d.ts +3 -2
- 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 +112 -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 +191 -15
- 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/types/heading-levels.d.ts +2 -0
- package/dist/types/types/index.d.ts +1 -0
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types/utils/sass-export.d.ts +2 -0
- package/package.json +22 -22
- package/dist/cjs/index-f243643b.js +0 -2051
- 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/index-1708db56.js +0 -2022
- 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,112 @@
|
|
|
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">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">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 EVENT_MAP;
|
|
10
|
+
private readonly KEYCODES;
|
|
11
|
+
private group;
|
|
12
|
+
private control;
|
|
13
|
+
private controlId;
|
|
14
|
+
private initialChecked;
|
|
15
|
+
private hasIcon;
|
|
16
|
+
host: HTMLPostCardControlElement;
|
|
17
|
+
focused: boolean;
|
|
18
|
+
private internals;
|
|
19
|
+
/**
|
|
20
|
+
* Defines the text in the control-label.
|
|
21
|
+
*/
|
|
22
|
+
readonly label: string;
|
|
23
|
+
/**
|
|
24
|
+
* Defines the description in the control-label.
|
|
25
|
+
*/
|
|
26
|
+
readonly description: string;
|
|
27
|
+
/**
|
|
28
|
+
* Defines the `type` attribute of the control.
|
|
29
|
+
*/
|
|
30
|
+
readonly type: 'checkbox' | 'radio';
|
|
31
|
+
/**
|
|
32
|
+
* Defines the `name` attribute of the control.
|
|
33
|
+
* <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>
|
|
34
|
+
* <span className="alert alert-sm alert-info">This is a required property, when the control is used with type `radio`.</span>
|
|
35
|
+
*/
|
|
36
|
+
readonly name: string;
|
|
37
|
+
/**
|
|
38
|
+
* 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>
|
|
39
|
+
*/
|
|
40
|
+
readonly value: string;
|
|
41
|
+
/**
|
|
42
|
+
* Defines the `checked` attribute of the control. If `true`, the control is selected at its value will be included in the forms data.
|
|
43
|
+
*/
|
|
44
|
+
checked: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* 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.
|
|
47
|
+
*/
|
|
48
|
+
disabled: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Defines the validation `validity` of the control.
|
|
51
|
+
* To reset validity to an undefiend state, simply remove the attribute from the control.
|
|
52
|
+
*/
|
|
53
|
+
validity: null | 'true' | 'false';
|
|
54
|
+
/**
|
|
55
|
+
* Defines the icon `name` inside of the card.
|
|
56
|
+
* <span className="alert alert-sm alert-info">If not set the icon will not show up.</span>
|
|
57
|
+
*/
|
|
58
|
+
readonly icon: string;
|
|
59
|
+
/**
|
|
60
|
+
* An event emitted whenever the components checked state is toggled.
|
|
61
|
+
* The event payload (emitted under `event.detail.state`) is a boolean: `true` if the component is checked, `false` if it is unchecked.
|
|
62
|
+
*/
|
|
63
|
+
postInput: EventEmitter<{
|
|
64
|
+
state: boolean;
|
|
65
|
+
value: string;
|
|
66
|
+
}>;
|
|
67
|
+
/**
|
|
68
|
+
* An event emitted whenever the components checked state is toggled.
|
|
69
|
+
* The event payload (emitted under `event.detail.state`) is a boolean: `true` if the component is checked, `false` if it is unchecked.
|
|
70
|
+
* <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>
|
|
71
|
+
*/
|
|
72
|
+
postChange: EventEmitter<{
|
|
73
|
+
state: boolean;
|
|
74
|
+
value: string;
|
|
75
|
+
}>;
|
|
76
|
+
/**
|
|
77
|
+
* A public method to reset the controls `checked` and `validity` state.
|
|
78
|
+
* The validity state is set to `null`, so it's neither valid nor invalid.
|
|
79
|
+
*/
|
|
80
|
+
reset(): Promise<void>;
|
|
81
|
+
/**
|
|
82
|
+
* A hidden public method to reset the group controls `checked` state to `false`.
|
|
83
|
+
*/
|
|
84
|
+
groupReset(): Promise<void>;
|
|
85
|
+
validateControlLabel(label?: string): void;
|
|
86
|
+
validateControlType(type?: "checkbox" | "radio"): void;
|
|
87
|
+
updateControlChecked(checked?: boolean): void;
|
|
88
|
+
updateControlDisbled(): void;
|
|
89
|
+
constructor();
|
|
90
|
+
private cardClickHandler;
|
|
91
|
+
private controlClickHandler;
|
|
92
|
+
private controlChangeHandler;
|
|
93
|
+
private controlFocusHandler;
|
|
94
|
+
private controlKeyDownHandler;
|
|
95
|
+
private controlSetChecked;
|
|
96
|
+
private groupCollectMembers;
|
|
97
|
+
private groupGetPrev;
|
|
98
|
+
private groupGetNext;
|
|
99
|
+
private groupSetChecked;
|
|
100
|
+
private readonly HOST_CONTEXT_FILTERS;
|
|
101
|
+
private hostContext;
|
|
102
|
+
private setHostContext;
|
|
103
|
+
connectedCallback(): void;
|
|
104
|
+
componentWillRender(): void;
|
|
105
|
+
render(): any;
|
|
106
|
+
componentDidRender(): void;
|
|
107
|
+
componentDidLoad(): void;
|
|
108
|
+
formAssociatedCallback(): void;
|
|
109
|
+
formDisabledCallback(disabled: boolean): void;
|
|
110
|
+
formStateRestoreCallback(checked: any): void;
|
|
111
|
+
formResetCallback(): void;
|
|
112
|
+
}
|
|
@@ -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">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">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
|
+
}
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
* It contains typing information for all components that exist in this project.
|
|
6
6
|
*/
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
|
-
import { HeadingLevel } from "./
|
|
8
|
+
import { HeadingLevel } from "./types/index";
|
|
9
9
|
import { AlertType } from "./components/post-alert/alert-types";
|
|
10
10
|
import { Placement } from "@floating-ui/dom";
|
|
11
|
-
export { HeadingLevel } from "./
|
|
11
|
+
export { HeadingLevel } from "./types/index";
|
|
12
12
|
export { AlertType } from "./components/post-alert/alert-types";
|
|
13
13
|
export { Placement } from "@floating-ui/dom";
|
|
14
14
|
export namespace Components {
|
|
@@ -18,9 +18,13 @@ export namespace Components {
|
|
|
18
18
|
*/
|
|
19
19
|
"collapseAll": () => Promise<void>;
|
|
20
20
|
/**
|
|
21
|
-
* Expands all `post-accordion-item`. If `
|
|
21
|
+
* Expands all `post-accordion-item`. If `multiple="true"` is not set and all items are closed, it will open the first one. Otherwise, it will keep the opened one.
|
|
22
22
|
*/
|
|
23
23
|
"expandAll": () => Promise<void>;
|
|
24
|
+
/**
|
|
25
|
+
* Defines the hierarchical level of the `post-accordion-item` headers within the headings structure.
|
|
26
|
+
*/
|
|
27
|
+
"headingLevel"?: HeadingLevel;
|
|
24
28
|
/**
|
|
25
29
|
* If `true`, multiple `post-accordion-item` can be open at the same time.
|
|
26
30
|
*/
|
|
@@ -37,6 +41,7 @@ export namespace Components {
|
|
|
37
41
|
"collapsed"?: boolean;
|
|
38
42
|
/**
|
|
39
43
|
* Defines the hierarchical level of the accordion item header within the headings structure.
|
|
44
|
+
* @deprecated set the `heading-level` property on the parent `post-accordion` instead.
|
|
40
45
|
*/
|
|
41
46
|
"headingLevel"?: HeadingLevel;
|
|
42
47
|
/**
|
|
@@ -70,6 +75,55 @@ export namespace Components {
|
|
|
70
75
|
*/
|
|
71
76
|
"type": AlertType;
|
|
72
77
|
}
|
|
78
|
+
/**
|
|
79
|
+
* @class PostCardControl - representing a stencil component
|
|
80
|
+
*/
|
|
81
|
+
interface PostCardControl {
|
|
82
|
+
/**
|
|
83
|
+
* Defines the `checked` attribute of the control. If `true`, the control is selected at its value will be included in the forms data.
|
|
84
|
+
*/
|
|
85
|
+
"checked": boolean;
|
|
86
|
+
/**
|
|
87
|
+
* Defines the description in the control-label.
|
|
88
|
+
*/
|
|
89
|
+
"description": string;
|
|
90
|
+
/**
|
|
91
|
+
* 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.
|
|
92
|
+
*/
|
|
93
|
+
"disabled": boolean;
|
|
94
|
+
/**
|
|
95
|
+
* A hidden public method to reset the group controls `checked` state to `false`.
|
|
96
|
+
*/
|
|
97
|
+
"groupReset": () => Promise<void>;
|
|
98
|
+
/**
|
|
99
|
+
* 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>
|
|
100
|
+
*/
|
|
101
|
+
"icon": string;
|
|
102
|
+
/**
|
|
103
|
+
* Defines the text in the control-label.
|
|
104
|
+
*/
|
|
105
|
+
"label": string;
|
|
106
|
+
/**
|
|
107
|
+
* 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>
|
|
108
|
+
*/
|
|
109
|
+
"name": string;
|
|
110
|
+
/**
|
|
111
|
+
* 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.
|
|
112
|
+
*/
|
|
113
|
+
"reset": () => Promise<void>;
|
|
114
|
+
/**
|
|
115
|
+
* Defines the `type` attribute of the control.
|
|
116
|
+
*/
|
|
117
|
+
"type": 'checkbox' | 'radio';
|
|
118
|
+
/**
|
|
119
|
+
* Defines the validation `validity` of the control. To reset validity to an undefiend state, simply remove the attribute from the control.
|
|
120
|
+
*/
|
|
121
|
+
"validity": null | 'true' | 'false';
|
|
122
|
+
/**
|
|
123
|
+
* 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>
|
|
124
|
+
*/
|
|
125
|
+
"value": string;
|
|
126
|
+
}
|
|
73
127
|
interface PostCollapsible {
|
|
74
128
|
/**
|
|
75
129
|
* If `true`, the element is initially collapsed otherwise it is displayed.
|
|
@@ -207,6 +261,20 @@ export namespace Components {
|
|
|
207
261
|
*/
|
|
208
262
|
"show": (panelName: string) => Promise<void>;
|
|
209
263
|
}
|
|
264
|
+
interface PostTag {
|
|
265
|
+
/**
|
|
266
|
+
* 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">icon library</a>.
|
|
267
|
+
*/
|
|
268
|
+
"icon": null | string;
|
|
269
|
+
/**
|
|
270
|
+
* Defines the size of the component.
|
|
271
|
+
*/
|
|
272
|
+
"size": null | 'sm';
|
|
273
|
+
/**
|
|
274
|
+
* Defines the color variant of the component.
|
|
275
|
+
*/
|
|
276
|
+
"variant": 'white' | 'info' | 'success' | 'error' | 'warning' | 'yellow';
|
|
277
|
+
}
|
|
210
278
|
interface PostTooltip {
|
|
211
279
|
/**
|
|
212
280
|
* Wheter or not to display a little pointer arrow
|
|
@@ -237,6 +305,10 @@ export interface PostAlertCustomEvent<T> extends CustomEvent<T> {
|
|
|
237
305
|
detail: T;
|
|
238
306
|
target: HTMLPostAlertElement;
|
|
239
307
|
}
|
|
308
|
+
export interface PostCardControlCustomEvent<T> extends CustomEvent<T> {
|
|
309
|
+
detail: T;
|
|
310
|
+
target: HTMLPostCardControlElement;
|
|
311
|
+
}
|
|
240
312
|
export interface PostCollapsibleCustomEvent<T> extends CustomEvent<T> {
|
|
241
313
|
detail: T;
|
|
242
314
|
target: HTMLPostCollapsibleElement;
|
|
@@ -267,7 +339,7 @@ declare global {
|
|
|
267
339
|
new (): HTMLPostAccordionItemElement;
|
|
268
340
|
};
|
|
269
341
|
interface HTMLPostAlertElementEventMap {
|
|
270
|
-
"
|
|
342
|
+
"postDismissed": void;
|
|
271
343
|
}
|
|
272
344
|
interface HTMLPostAlertElement extends Components.PostAlert, HTMLStencilElement {
|
|
273
345
|
addEventListener<K extends keyof HTMLPostAlertElementEventMap>(type: K, listener: (this: HTMLPostAlertElement, ev: PostAlertCustomEvent<HTMLPostAlertElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -283,8 +355,29 @@ declare global {
|
|
|
283
355
|
prototype: HTMLPostAlertElement;
|
|
284
356
|
new (): HTMLPostAlertElement;
|
|
285
357
|
};
|
|
358
|
+
interface HTMLPostCardControlElementEventMap {
|
|
359
|
+
"postInput": { state: boolean; value: string };
|
|
360
|
+
"postChange": { state: boolean; value: string };
|
|
361
|
+
}
|
|
362
|
+
/**
|
|
363
|
+
* @class PostCardControl - representing a stencil component
|
|
364
|
+
*/
|
|
365
|
+
interface HTMLPostCardControlElement extends Components.PostCardControl, HTMLStencilElement {
|
|
366
|
+
addEventListener<K extends keyof HTMLPostCardControlElementEventMap>(type: K, listener: (this: HTMLPostCardControlElement, ev: PostCardControlCustomEvent<HTMLPostCardControlElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
367
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
368
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
369
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
370
|
+
removeEventListener<K extends keyof HTMLPostCardControlElementEventMap>(type: K, listener: (this: HTMLPostCardControlElement, ev: PostCardControlCustomEvent<HTMLPostCardControlElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
371
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
372
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
373
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
374
|
+
}
|
|
375
|
+
var HTMLPostCardControlElement: {
|
|
376
|
+
prototype: HTMLPostCardControlElement;
|
|
377
|
+
new (): HTMLPostCardControlElement;
|
|
378
|
+
};
|
|
286
379
|
interface HTMLPostCollapsibleElementEventMap {
|
|
287
|
-
"
|
|
380
|
+
"postToggle": boolean;
|
|
288
381
|
}
|
|
289
382
|
interface HTMLPostCollapsibleElement extends Components.PostCollapsible, HTMLStencilElement {
|
|
290
383
|
addEventListener<K extends keyof HTMLPostCollapsibleElementEventMap>(type: K, listener: (this: HTMLPostCollapsibleElement, ev: PostCollapsibleCustomEvent<HTMLPostCollapsibleElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -316,7 +409,7 @@ declare global {
|
|
|
316
409
|
new (): HTMLPostPopoverElement;
|
|
317
410
|
};
|
|
318
411
|
interface HTMLPostPopovercontainerElementEventMap {
|
|
319
|
-
"
|
|
412
|
+
"postToggle": boolean;
|
|
320
413
|
}
|
|
321
414
|
interface HTMLPostPopovercontainerElement extends Components.PostPopovercontainer, HTMLStencilElement {
|
|
322
415
|
addEventListener<K extends keyof HTMLPostPopovercontainerElementEventMap>(type: K, listener: (this: HTMLPostPopovercontainerElement, ev: PostPopovercontainerCustomEvent<HTMLPostPopovercontainerElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -333,8 +426,8 @@ declare global {
|
|
|
333
426
|
new (): HTMLPostPopovercontainerElement;
|
|
334
427
|
};
|
|
335
428
|
interface HTMLPostRatingElementEventMap {
|
|
336
|
-
"
|
|
337
|
-
"
|
|
429
|
+
"postInput": { value: number };
|
|
430
|
+
"postChange": { value: number };
|
|
338
431
|
}
|
|
339
432
|
interface HTMLPostRatingElement extends Components.PostRating, HTMLStencilElement {
|
|
340
433
|
addEventListener<K extends keyof HTMLPostRatingElementEventMap>(type: K, listener: (this: HTMLPostRatingElement, ev: PostRatingCustomEvent<HTMLPostRatingElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -363,7 +456,7 @@ declare global {
|
|
|
363
456
|
new (): HTMLPostTabPanelElement;
|
|
364
457
|
};
|
|
365
458
|
interface HTMLPostTabsElementEventMap {
|
|
366
|
-
"
|
|
459
|
+
"postChange": HTMLPostTabPanelElement['name'];
|
|
367
460
|
}
|
|
368
461
|
interface HTMLPostTabsElement extends Components.PostTabs, HTMLStencilElement {
|
|
369
462
|
addEventListener<K extends keyof HTMLPostTabsElementEventMap>(type: K, listener: (this: HTMLPostTabsElement, ev: PostTabsCustomEvent<HTMLPostTabsElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -379,6 +472,12 @@ declare global {
|
|
|
379
472
|
prototype: HTMLPostTabsElement;
|
|
380
473
|
new (): HTMLPostTabsElement;
|
|
381
474
|
};
|
|
475
|
+
interface HTMLPostTagElement extends Components.PostTag, HTMLStencilElement {
|
|
476
|
+
}
|
|
477
|
+
var HTMLPostTagElement: {
|
|
478
|
+
prototype: HTMLPostTagElement;
|
|
479
|
+
new (): HTMLPostTagElement;
|
|
480
|
+
};
|
|
382
481
|
interface HTMLPostTooltipElement extends Components.PostTooltip, HTMLStencilElement {
|
|
383
482
|
}
|
|
384
483
|
var HTMLPostTooltipElement: {
|
|
@@ -389,6 +488,7 @@ declare global {
|
|
|
389
488
|
"post-accordion": HTMLPostAccordionElement;
|
|
390
489
|
"post-accordion-item": HTMLPostAccordionItemElement;
|
|
391
490
|
"post-alert": HTMLPostAlertElement;
|
|
491
|
+
"post-card-control": HTMLPostCardControlElement;
|
|
392
492
|
"post-collapsible": HTMLPostCollapsibleElement;
|
|
393
493
|
"post-icon": HTMLPostIconElement;
|
|
394
494
|
"post-popover": HTMLPostPopoverElement;
|
|
@@ -397,11 +497,16 @@ declare global {
|
|
|
397
497
|
"post-tab-header": HTMLPostTabHeaderElement;
|
|
398
498
|
"post-tab-panel": HTMLPostTabPanelElement;
|
|
399
499
|
"post-tabs": HTMLPostTabsElement;
|
|
500
|
+
"post-tag": HTMLPostTagElement;
|
|
400
501
|
"post-tooltip": HTMLPostTooltipElement;
|
|
401
502
|
}
|
|
402
503
|
}
|
|
403
504
|
declare namespace LocalJSX {
|
|
404
505
|
interface PostAccordion {
|
|
506
|
+
/**
|
|
507
|
+
* Defines the hierarchical level of the `post-accordion-item` headers within the headings structure.
|
|
508
|
+
*/
|
|
509
|
+
"headingLevel"?: HeadingLevel;
|
|
405
510
|
/**
|
|
406
511
|
* If `true`, multiple `post-accordion-item` can be open at the same time.
|
|
407
512
|
*/
|
|
@@ -414,6 +519,7 @@ declare namespace LocalJSX {
|
|
|
414
519
|
"collapsed"?: boolean;
|
|
415
520
|
/**
|
|
416
521
|
* Defines the hierarchical level of the accordion item header within the headings structure.
|
|
522
|
+
* @deprecated set the `heading-level` property on the parent `post-accordion` instead.
|
|
417
523
|
*/
|
|
418
524
|
"headingLevel"?: HeadingLevel;
|
|
419
525
|
}
|
|
@@ -437,12 +543,61 @@ declare namespace LocalJSX {
|
|
|
437
543
|
/**
|
|
438
544
|
* An event emitted when the alert element is dismissed, after the transition. It has no payload and only relevant for dismissible alerts.
|
|
439
545
|
*/
|
|
440
|
-
"
|
|
546
|
+
"onPostDismissed"?: (event: PostAlertCustomEvent<void>) => void;
|
|
441
547
|
/**
|
|
442
548
|
* The type of the alert.
|
|
443
549
|
*/
|
|
444
550
|
"type"?: AlertType;
|
|
445
551
|
}
|
|
552
|
+
/**
|
|
553
|
+
* @class PostCardControl - representing a stencil component
|
|
554
|
+
*/
|
|
555
|
+
interface PostCardControl {
|
|
556
|
+
/**
|
|
557
|
+
* Defines the `checked` attribute of the control. If `true`, the control is selected at its value will be included in the forms data.
|
|
558
|
+
*/
|
|
559
|
+
"checked"?: boolean;
|
|
560
|
+
/**
|
|
561
|
+
* Defines the description in the control-label.
|
|
562
|
+
*/
|
|
563
|
+
"description"?: string;
|
|
564
|
+
/**
|
|
565
|
+
* 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.
|
|
566
|
+
*/
|
|
567
|
+
"disabled"?: boolean;
|
|
568
|
+
/**
|
|
569
|
+
* 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>
|
|
570
|
+
*/
|
|
571
|
+
"icon"?: string;
|
|
572
|
+
/**
|
|
573
|
+
* Defines the text in the control-label.
|
|
574
|
+
*/
|
|
575
|
+
"label": string;
|
|
576
|
+
/**
|
|
577
|
+
* 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>
|
|
578
|
+
*/
|
|
579
|
+
"name"?: string;
|
|
580
|
+
/**
|
|
581
|
+
* 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>
|
|
582
|
+
*/
|
|
583
|
+
"onPostChange"?: (event: PostCardControlCustomEvent<{ state: boolean; value: string }>) => void;
|
|
584
|
+
/**
|
|
585
|
+
* 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.
|
|
586
|
+
*/
|
|
587
|
+
"onPostInput"?: (event: PostCardControlCustomEvent<{ state: boolean; value: string }>) => void;
|
|
588
|
+
/**
|
|
589
|
+
* Defines the `type` attribute of the control.
|
|
590
|
+
*/
|
|
591
|
+
"type": 'checkbox' | 'radio';
|
|
592
|
+
/**
|
|
593
|
+
* Defines the validation `validity` of the control. To reset validity to an undefiend state, simply remove the attribute from the control.
|
|
594
|
+
*/
|
|
595
|
+
"validity"?: null | 'true' | 'false';
|
|
596
|
+
/**
|
|
597
|
+
* 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>
|
|
598
|
+
*/
|
|
599
|
+
"value"?: string;
|
|
600
|
+
}
|
|
446
601
|
interface PostCollapsible {
|
|
447
602
|
/**
|
|
448
603
|
* If `true`, the element is initially collapsed otherwise it is displayed.
|
|
@@ -451,7 +606,7 @@ declare namespace LocalJSX {
|
|
|
451
606
|
/**
|
|
452
607
|
* 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
608
|
*/
|
|
454
|
-
"
|
|
609
|
+
"onPostToggle"?: (event: PostCollapsibleCustomEvent<boolean>) => void;
|
|
455
610
|
}
|
|
456
611
|
/**
|
|
457
612
|
* @class PostIcon - representing a stencil component
|
|
@@ -508,7 +663,7 @@ declare namespace LocalJSX {
|
|
|
508
663
|
/**
|
|
509
664
|
* Fires whenever the popover gets shown or hidden, passing the new state in event.details as a boolean
|
|
510
665
|
*/
|
|
511
|
-
"
|
|
666
|
+
"onPostToggle"?: (event: PostPopovercontainerCustomEvent<boolean>) => void;
|
|
512
667
|
/**
|
|
513
668
|
* 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
669
|
*/
|
|
@@ -526,11 +681,11 @@ declare namespace LocalJSX {
|
|
|
526
681
|
/**
|
|
527
682
|
* An event emitted whenever the component's value has changed (on blur). The event payload can be used like so: `event.detail.value`.
|
|
528
683
|
*/
|
|
529
|
-
"
|
|
684
|
+
"onPostChange"?: (event: PostRatingCustomEvent<{ value: number }>) => void;
|
|
530
685
|
/**
|
|
531
686
|
* An event emitted whenever the component's value has changed (on input). The event payload can be used like so: `event.detail.value`.
|
|
532
687
|
*/
|
|
533
|
-
"
|
|
688
|
+
"onPostInput"?: (event: PostRatingCustomEvent<{ value: number }>) => void;
|
|
534
689
|
/**
|
|
535
690
|
* Defines if the component is readonly or not. This usually should be used together with the `currentRating` property.
|
|
536
691
|
*/
|
|
@@ -560,7 +715,21 @@ declare namespace LocalJSX {
|
|
|
560
715
|
/**
|
|
561
716
|
* 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
717
|
*/
|
|
563
|
-
"
|
|
718
|
+
"onPostChange"?: (event: PostTabsCustomEvent<HTMLPostTabPanelElement['name']>) => void;
|
|
719
|
+
}
|
|
720
|
+
interface PostTag {
|
|
721
|
+
/**
|
|
722
|
+
* 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">icon library</a>.
|
|
723
|
+
*/
|
|
724
|
+
"icon"?: null | string;
|
|
725
|
+
/**
|
|
726
|
+
* Defines the size of the component.
|
|
727
|
+
*/
|
|
728
|
+
"size"?: null | 'sm';
|
|
729
|
+
/**
|
|
730
|
+
* Defines the color variant of the component.
|
|
731
|
+
*/
|
|
732
|
+
"variant"?: 'white' | 'info' | 'success' | 'error' | 'warning' | 'yellow';
|
|
564
733
|
}
|
|
565
734
|
interface PostTooltip {
|
|
566
735
|
/**
|
|
@@ -576,6 +745,7 @@ declare namespace LocalJSX {
|
|
|
576
745
|
"post-accordion": PostAccordion;
|
|
577
746
|
"post-accordion-item": PostAccordionItem;
|
|
578
747
|
"post-alert": PostAlert;
|
|
748
|
+
"post-card-control": PostCardControl;
|
|
579
749
|
"post-collapsible": PostCollapsible;
|
|
580
750
|
"post-icon": PostIcon;
|
|
581
751
|
"post-popover": PostPopover;
|
|
@@ -584,6 +754,7 @@ declare namespace LocalJSX {
|
|
|
584
754
|
"post-tab-header": PostTabHeader;
|
|
585
755
|
"post-tab-panel": PostTabPanel;
|
|
586
756
|
"post-tabs": PostTabs;
|
|
757
|
+
"post-tag": PostTag;
|
|
587
758
|
"post-tooltip": PostTooltip;
|
|
588
759
|
}
|
|
589
760
|
}
|
|
@@ -594,6 +765,10 @@ declare module "@stencil/core" {
|
|
|
594
765
|
"post-accordion": LocalJSX.PostAccordion & JSXBase.HTMLAttributes<HTMLPostAccordionElement>;
|
|
595
766
|
"post-accordion-item": LocalJSX.PostAccordionItem & JSXBase.HTMLAttributes<HTMLPostAccordionItemElement>;
|
|
596
767
|
"post-alert": LocalJSX.PostAlert & JSXBase.HTMLAttributes<HTMLPostAlertElement>;
|
|
768
|
+
/**
|
|
769
|
+
* @class PostCardControl - representing a stencil component
|
|
770
|
+
*/
|
|
771
|
+
"post-card-control": LocalJSX.PostCardControl & JSXBase.HTMLAttributes<HTMLPostCardControlElement>;
|
|
597
772
|
"post-collapsible": LocalJSX.PostCollapsible & JSXBase.HTMLAttributes<HTMLPostCollapsibleElement>;
|
|
598
773
|
/**
|
|
599
774
|
* @class PostIcon - representing a stencil component
|
|
@@ -605,6 +780,7 @@ declare module "@stencil/core" {
|
|
|
605
780
|
"post-tab-header": LocalJSX.PostTabHeader & JSXBase.HTMLAttributes<HTMLPostTabHeaderElement>;
|
|
606
781
|
"post-tab-panel": LocalJSX.PostTabPanel & JSXBase.HTMLAttributes<HTMLPostTabPanelElement>;
|
|
607
782
|
"post-tabs": LocalJSX.PostTabs & JSXBase.HTMLAttributes<HTMLPostTabsElement>;
|
|
783
|
+
"post-tag": LocalJSX.PostTag & JSXBase.HTMLAttributes<HTMLPostTagElement>;
|
|
608
784
|
"post-tooltip": LocalJSX.PostTooltip & JSXBase.HTMLAttributes<HTMLPostTooltipElement>;
|
|
609
785
|
}
|
|
610
786
|
}
|
|
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';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './heading-levels';
|