@usecapsule/core-components 2.0.8 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/css/capsule-core.css +54 -19
- package/css/capsule-core.css.map +1 -1
- package/dist/capsule/capsule.esm.js +1 -1
- package/dist/capsule/capsule.esm.js.map +1 -1
- package/dist/capsule/index.esm.js +1 -1
- package/dist/capsule/index.esm.js.map +1 -1
- package/dist/capsule/{p-415384b7.entry.js → p-0d0a0037.entry.js} +2 -2
- package/dist/capsule/p-4d8e4d86.entry.js +29 -0
- package/dist/capsule/p-4d8e4d86.entry.js.map +1 -0
- package/dist/capsule/p-86e48e61.js +3 -0
- package/dist/capsule/p-86e48e61.js.map +1 -0
- package/dist/capsule/p-ad14a817.entry.js +2 -0
- package/dist/capsule/p-b6b38e73.js +2 -0
- package/dist/capsule/p-b6b38e73.js.map +1 -0
- package/dist/capsule/p-d28b96ba.entry.js +10 -0
- package/dist/capsule/{p-b76350fd.entry.js.map → p-d28b96ba.entry.js.map} +1 -1
- package/dist/capsule/{p-4d957466.entry.js → p-fa078837.entry.js} +2 -2
- package/dist/capsule/{p-fa4e3c14.entry.js → p-fcead80b.entry.js} +2 -2
- package/dist/cjs/capsule.cjs.js +2 -2
- package/dist/cjs/constants-0869a780.js +29 -0
- package/dist/cjs/constants-0869a780.js.map +1 -0
- package/dist/cjs/{cpsl-alert_18.cjs.entry.js → cpsl-alert_29.cjs.entry.js} +605 -185
- package/dist/cjs/cpsl-alert_29.cjs.entry.js.map +1 -0
- package/dist/cjs/cpsl-animation.cjs.entry.js +2 -2
- package/dist/cjs/cpsl-col.cjs.entry.js +2 -2
- package/dist/cjs/cpsl-grid.cjs.entry.js +3 -3
- package/dist/cjs/cpsl-info-box.cjs.entry.js +2 -2
- package/dist/cjs/cpsl-row.cjs.entry.js +2 -2
- package/dist/cjs/{index-87ba56f9.js → index-5733071e.js} +6 -3
- package/dist/cjs/index-5733071e.js.map +1 -0
- package/dist/cjs/index.cjs.js +53 -24
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/assets/icons/check-circle.svg +3 -0
- package/dist/collection/assets/icons/home.svg +3 -0
- package/dist/collection/assets/icons/index.js +4 -1
- package/dist/collection/assets/icons/index.js.map +1 -1
- package/dist/collection/assets/icons/settings.svg +4 -0
- package/dist/collection/collection-manifest.json +11 -0
- package/dist/collection/components/cpsl-alert/cpsl-alert.css +21 -11
- package/dist/collection/components/cpsl-alert/cpsl-alert.js +34 -26
- package/dist/collection/components/cpsl-alert/cpsl-alert.js.map +1 -1
- package/dist/collection/components/cpsl-animation/cpsl-animation.js +1 -1
- package/dist/collection/components/cpsl-app-bar/cpsl-app-bar.css +67 -0
- package/dist/collection/components/cpsl-app-bar/cpsl-app-bar.js +69 -0
- package/dist/collection/components/cpsl-app-bar/cpsl-app-bar.js.map +1 -0
- package/dist/collection/components/cpsl-app-bar/test/cpsl-app-bar.e2e.js +29 -0
- package/dist/collection/components/cpsl-app-bar/test/cpsl-app-bar.e2e.js.map +1 -0
- package/dist/collection/components/cpsl-app-bar/test/cpsl-app-bar.spec.js +37 -0
- package/dist/collection/components/cpsl-app-bar/test/cpsl-app-bar.spec.js.map +1 -0
- package/dist/collection/components/cpsl-avatar/cpsl-avatar.css +31 -0
- package/dist/collection/components/cpsl-avatar/cpsl-avatar.js +81 -0
- package/dist/collection/components/cpsl-avatar/cpsl-avatar.js.map +1 -0
- package/dist/collection/components/cpsl-avatar/test/cpsl-avatar.e2e.js +29 -0
- package/dist/collection/components/cpsl-avatar/test/cpsl-avatar.e2e.js.map +1 -0
- package/dist/collection/components/cpsl-avatar/test/cpsl-avatar.spec.js +37 -0
- package/dist/collection/components/cpsl-avatar/test/cpsl-avatar.spec.js.map +1 -0
- package/dist/collection/components/cpsl-button/cpsl-button.css +175 -51
- package/dist/collection/components/cpsl-button/cpsl-button.js +46 -5
- package/dist/collection/components/cpsl-button/cpsl-button.js.map +1 -1
- package/dist/collection/components/cpsl-button-group/cpsl-button-group.css +88 -0
- package/dist/collection/components/cpsl-button-group/cpsl-button-group.js +78 -0
- package/dist/collection/components/cpsl-button-group/cpsl-button-group.js.map +1 -0
- package/dist/collection/components/cpsl-button-group/test/cpsl-button-group.e2e.js +29 -0
- package/dist/collection/components/cpsl-button-group/test/cpsl-button-group.e2e.js.map +1 -0
- package/dist/collection/components/cpsl-button-group/test/cpsl-button-group.spec.js +37 -0
- package/dist/collection/components/cpsl-button-group/test/cpsl-button-group.spec.js.map +1 -0
- package/dist/collection/components/cpsl-card/cpsl-card.css +81 -0
- package/dist/collection/components/cpsl-card/cpsl-card.js +19 -0
- package/dist/collection/components/cpsl-card/cpsl-card.js.map +1 -0
- package/dist/collection/components/cpsl-card/test/cpsl-card.e2e.js +29 -0
- package/dist/collection/components/cpsl-card/test/cpsl-card.e2e.js.map +1 -0
- package/dist/collection/components/cpsl-card/test/cpsl-card.spec.js +37 -0
- package/dist/collection/components/cpsl-card/test/cpsl-card.spec.js.map +1 -0
- package/dist/collection/components/cpsl-checkbox/cpsl-checkbox.css +110 -0
- package/dist/collection/components/cpsl-checkbox/cpsl-checkbox.js +64 -0
- package/dist/collection/components/cpsl-checkbox/cpsl-checkbox.js.map +1 -0
- package/dist/collection/components/cpsl-checkbox/test/cpsl-checkbox.e2e.js +29 -0
- package/dist/collection/components/cpsl-checkbox/test/cpsl-checkbox.e2e.js.map +1 -0
- package/dist/collection/components/cpsl-checkbox/test/cpsl-checkbox.spec.js +37 -0
- package/dist/collection/components/cpsl-checkbox/test/cpsl-checkbox.spec.js.map +1 -0
- package/dist/collection/components/cpsl-code-input/cpsl-code-input.js +1 -1
- package/dist/collection/components/cpsl-col/cpsl-col.js +1 -1
- package/dist/collection/components/cpsl-divider/cpsl-divider.js +1 -1
- package/dist/collection/components/cpsl-drawer/cpsl-drawer.css +90 -0
- package/dist/collection/components/cpsl-drawer/cpsl-drawer.js +149 -0
- package/dist/collection/components/cpsl-drawer/cpsl-drawer.js.map +1 -0
- package/dist/collection/components/cpsl-drawer/test/cpsl-drawer.e2e.js +29 -0
- package/dist/collection/components/cpsl-drawer/test/cpsl-drawer.e2e.js.map +1 -0
- package/dist/collection/components/cpsl-drawer/test/cpsl-drawer.spec.js +37 -0
- package/dist/collection/components/cpsl-drawer/test/cpsl-drawer.spec.js.map +1 -0
- package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.js +8 -1
- package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.js.map +1 -1
- package/dist/collection/components/cpsl-grid/cpsl-grid.js +2 -2
- package/dist/collection/components/cpsl-icon/cpsl-icon.js +2 -2
- package/dist/collection/components/cpsl-info-box/cpsl-info-box.js +1 -1
- package/dist/collection/components/cpsl-input/cpsl-input.css +35 -19
- package/dist/collection/components/cpsl-input/cpsl-input.js +47 -6
- package/dist/collection/components/cpsl-input/cpsl-input.js.map +1 -1
- package/dist/collection/components/cpsl-modal/cpsl-modal.css +12 -2
- package/dist/collection/components/cpsl-modal/cpsl-modal.js +20 -2
- package/dist/collection/components/cpsl-modal/cpsl-modal.js.map +1 -1
- package/dist/collection/components/cpsl-nav-button-group/cpsl-nav-button-group.css +50 -0
- package/dist/collection/components/cpsl-nav-button-group/cpsl-nav-button-group.js +78 -0
- package/dist/collection/components/cpsl-nav-button-group/cpsl-nav-button-group.js.map +1 -0
- package/dist/collection/components/cpsl-nav-button-group/test/cpsl-nav-button-group.e2e.js +29 -0
- package/dist/collection/components/cpsl-nav-button-group/test/cpsl-nav-button-group.e2e.js.map +1 -0
- package/dist/collection/components/cpsl-nav-button-group/test/cpsl-nav-button-group.spec.js +37 -0
- package/dist/collection/components/cpsl-nav-button-group/test/cpsl-nav-button-group.spec.js.map +1 -0
- package/dist/collection/components/cpsl-overlay/cpsl-overlay.css +61 -3
- package/dist/collection/components/cpsl-overlay/cpsl-overlay.js +35 -17
- package/dist/collection/components/cpsl-overlay/cpsl-overlay.js.map +1 -1
- package/dist/collection/components/cpsl-pagination/cpsl-pagination.css +67 -0
- package/dist/collection/components/cpsl-pagination/cpsl-pagination.js +174 -0
- package/dist/collection/components/cpsl-pagination/cpsl-pagination.js.map +1 -0
- package/dist/collection/components/cpsl-pagination/test/cpsl-pagination.e2e.js +29 -0
- package/dist/collection/components/cpsl-pagination/test/cpsl-pagination.e2e.js.map +1 -0
- package/dist/collection/components/cpsl-pagination/test/cpsl-pagination.spec.js +37 -0
- package/dist/collection/components/cpsl-pagination/test/cpsl-pagination.spec.js.map +1 -0
- package/dist/collection/components/cpsl-pill/cpsl-pill.js +1 -1
- package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.js +1 -1
- package/dist/collection/components/cpsl-radio/cpsl-radio.css +97 -0
- package/dist/collection/components/cpsl-radio/cpsl-radio.js +66 -0
- package/dist/collection/components/cpsl-radio/cpsl-radio.js.map +1 -0
- package/dist/collection/components/cpsl-radio/test/cpsl-radio.e2e.js +29 -0
- package/dist/collection/components/cpsl-radio/test/cpsl-radio.e2e.js.map +1 -0
- package/dist/collection/components/cpsl-radio/test/cpsl-radio.spec.js +37 -0
- package/dist/collection/components/cpsl-radio/test/cpsl-radio.spec.js.map +1 -0
- package/dist/collection/components/cpsl-row/cpsl-row.js +1 -1
- package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.js +3 -3
- package/dist/collection/components/cpsl-spinner/cpsl-spinner.js +2 -2
- package/dist/collection/components/cpsl-switch/cpsl-switch.css +115 -0
- package/dist/collection/components/cpsl-switch/cpsl-switch.js +64 -0
- package/dist/collection/components/cpsl-switch/cpsl-switch.js.map +1 -0
- package/dist/collection/components/cpsl-switch/test/cpsl-switch.e2e.js +29 -0
- package/dist/collection/components/cpsl-switch/test/cpsl-switch.e2e.js.map +1 -0
- package/dist/collection/components/cpsl-switch/test/cpsl-switch.spec.js +37 -0
- package/dist/collection/components/cpsl-switch/test/cpsl-switch.spec.js.map +1 -0
- package/dist/collection/components/cpsl-tab/cpsl-tab.js +1 -1
- package/dist/collection/components/cpsl-table/cpsl-table.css +179 -0
- package/dist/collection/components/cpsl-table/cpsl-table.js +88 -0
- package/dist/collection/components/cpsl-table/cpsl-table.js.map +1 -0
- package/dist/collection/components/cpsl-table/table-interface.js +2 -0
- package/dist/collection/components/cpsl-table/table-interface.js.map +1 -0
- package/dist/collection/components/cpsl-table/test/cpsl-table.e2e.js +29 -0
- package/dist/collection/components/cpsl-table/test/cpsl-table.e2e.js.map +1 -0
- package/dist/collection/components/cpsl-table/test/cpsl-table.spec.js +37 -0
- package/dist/collection/components/cpsl-table/test/cpsl-table.spec.js.map +1 -0
- package/dist/collection/components/cpsl-tabs/cpsl-tabs.js +1 -1
- package/dist/collection/components/cpsl-text/cpsl-text.js +1 -1
- package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.js +2 -2
- package/dist/collection/constants.js +14 -0
- package/dist/collection/constants.js.map +1 -1
- package/dist/collection/interface.js.map +1 -1
- package/dist/collection/utils/theme/generateBorderRadii.js +24 -7
- package/dist/collection/utils/theme/generateBorderRadii.js.map +1 -1
- package/dist/collection/utils/theme/generatePalette.js +22 -18
- package/dist/collection/utils/theme/generatePalette.js.map +1 -1
- package/dist/collection/utils/theme/utils.js +8 -0
- package/dist/collection/utils/theme/utils.js.map +1 -1
- package/dist/esm/capsule.js +3 -3
- package/dist/esm/constants-6acf4ea8.js +23 -0
- package/dist/esm/constants-6acf4ea8.js.map +1 -0
- package/dist/esm/{cpsl-alert_18.entry.js → cpsl-alert_29.entry.js} +595 -186
- package/dist/esm/cpsl-alert_29.entry.js.map +1 -0
- package/dist/esm/cpsl-animation.entry.js +2 -2
- package/dist/esm/cpsl-col.entry.js +2 -2
- package/dist/esm/cpsl-grid.entry.js +3 -3
- package/dist/esm/cpsl-info-box.entry.js +2 -2
- package/dist/esm/cpsl-row.entry.js +2 -2
- package/dist/esm/{index-fd970ca2.js → index-8fe9f35e.js} +6 -3
- package/dist/esm/index-8fe9f35e.js.map +1 -0
- package/dist/esm/index.js +53 -24
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/types/assets/icons/index.d.ts +3 -0
- package/dist/types/components/cpsl-alert/cpsl-alert.d.ts +2 -2
- package/dist/types/components/cpsl-app-bar/cpsl-app-bar.d.ts +5 -0
- package/dist/types/components/cpsl-avatar/cpsl-avatar.d.ts +6 -0
- package/dist/types/components/cpsl-button/cpsl-button.d.ts +2 -0
- package/dist/types/components/cpsl-button-group/cpsl-button-group.d.ts +9 -0
- package/dist/types/components/cpsl-card/cpsl-card.d.ts +3 -0
- package/dist/types/components/cpsl-checkbox/cpsl-checkbox.d.ts +7 -0
- package/dist/types/components/cpsl-drawer/cpsl-drawer.d.ts +9 -0
- package/dist/types/components/cpsl-input/cpsl-input.d.ts +4 -0
- package/dist/types/components/cpsl-modal/cpsl-modal.d.ts +1 -0
- package/dist/types/components/cpsl-nav-button-group/cpsl-nav-button-group.d.ts +9 -0
- package/dist/types/components/cpsl-overlay/cpsl-overlay.d.ts +2 -1
- package/dist/types/components/cpsl-pagination/cpsl-pagination.d.ts +14 -0
- package/dist/types/components/cpsl-radio/cpsl-radio.d.ts +7 -0
- package/dist/types/components/cpsl-switch/cpsl-switch.d.ts +7 -0
- package/dist/types/components/cpsl-table/cpsl-table.d.ts +9 -0
- package/dist/types/components/cpsl-table/table-interface.d.ts +19 -0
- package/dist/types/components.d.ts +435 -6
- package/dist/types/constants.d.ts +14 -0
- package/dist/types/interface.d.ts +35 -0
- package/dist/types/utils/theme/utils.d.ts +1 -0
- package/package.json +3 -2
- package/dist/capsule/p-6b02ea8d.entry.js +0 -2
- package/dist/capsule/p-b2997f3c.js +0 -3
- package/dist/capsule/p-b2997f3c.js.map +0 -1
- package/dist/capsule/p-b76350fd.entry.js +0 -10
- package/dist/capsule/p-c2bf050b.js +0 -2
- package/dist/capsule/p-c2bf050b.js.map +0 -1
- package/dist/capsule/p-f2af4351.entry.js +0 -29
- package/dist/capsule/p-f2af4351.entry.js.map +0 -1
- package/dist/cjs/constants-4bb85cc5.js +0 -12
- package/dist/cjs/constants-4bb85cc5.js.map +0 -1
- package/dist/cjs/cpsl-alert_18.cjs.entry.js.map +0 -1
- package/dist/cjs/index-87ba56f9.js.map +0 -1
- package/dist/esm/constants-7b49abd5.js +0 -9
- package/dist/esm/constants-7b49abd5.js.map +0 -1
- package/dist/esm/cpsl-alert_18.entry.js.map +0 -1
- package/dist/esm/index-fd970ca2.js.map +0 -1
- /package/dist/capsule/{p-415384b7.entry.js.map → p-0d0a0037.entry.js.map} +0 -0
- /package/dist/capsule/{p-6b02ea8d.entry.js.map → p-ad14a817.entry.js.map} +0 -0
- /package/dist/capsule/{p-4d957466.entry.js.map → p-fa078837.entry.js.map} +0 -0
- /package/dist/capsule/{p-fa4e3c14.entry.js.map → p-fcead80b.entry.js.map} +0 -0
- /package/dist/types/Users/{vinay → taylorbosch}/Documents/GitHub/Capsule/component-library/core/.stencil/scripts/buildIconLibrary.d.ts +0 -0
@@ -10,12 +10,14 @@ import { CodeChangeEventDetail } from "./components/cpsl-code-input/code-change-
|
|
10
10
|
import { DropdownInputEventDetail } from "./components/cpsl-dropdown/dropdown-interface";
|
11
11
|
import { InputChangeEventDetail, InputInputEventDetail } from "./components/cpsl-input/input-interface";
|
12
12
|
import { TabClickEventDetail } from "./components/cpsl-tab/tab-interface";
|
13
|
+
import { ColDef, RowDef } from "./components/cpsl-table/table-interface";
|
13
14
|
import { TabsChangedEventDetail } from "./components/cpsl-tabs/tabs-interface";
|
14
15
|
export { AutocompleteTypes, IconType, TextFieldTypes } from "./interface";
|
15
16
|
export { CodeChangeEventDetail } from "./components/cpsl-code-input/code-change-interface";
|
16
17
|
export { DropdownInputEventDetail } from "./components/cpsl-dropdown/dropdown-interface";
|
17
18
|
export { InputChangeEventDetail, InputInputEventDetail } from "./components/cpsl-input/input-interface";
|
18
19
|
export { TabClickEventDetail } from "./components/cpsl-tab/tab-interface";
|
20
|
+
export { ColDef, RowDef } from "./components/cpsl-table/table-interface";
|
19
21
|
export { TabsChangedEventDetail } from "./components/cpsl-tabs/tabs-interface";
|
20
22
|
export namespace Components {
|
21
23
|
interface CpslAlert {
|
@@ -24,9 +26,9 @@ export namespace Components {
|
|
24
26
|
*/
|
25
27
|
"icon"?: IconType;
|
26
28
|
/**
|
27
|
-
* The
|
29
|
+
* The variant of alert. Options are: `"error"` | `"warning"` | `"success"` | `"custom"` Default is: `"error"`.
|
28
30
|
*/
|
29
|
-
"
|
31
|
+
"variant"?: 'error' | 'warning' | 'success' | 'custom';
|
30
32
|
}
|
31
33
|
interface CpslAnimation {
|
32
34
|
/**
|
@@ -38,16 +40,62 @@ export namespace Components {
|
|
38
40
|
*/
|
39
41
|
"src": string;
|
40
42
|
}
|
43
|
+
interface CpslAppBar {
|
44
|
+
/**
|
45
|
+
* Height of the app bar.
|
46
|
+
*/
|
47
|
+
"height": number;
|
48
|
+
/**
|
49
|
+
* The position of the drawer. Default is `fixed`.
|
50
|
+
*/
|
51
|
+
"position"?: 'fixed' | 'static';
|
52
|
+
}
|
53
|
+
interface CpslAvatar {
|
54
|
+
/**
|
55
|
+
* The alternate text for the avatar image.
|
56
|
+
*/
|
57
|
+
"alt"?: string;
|
58
|
+
/**
|
59
|
+
* The source of the avatar image.
|
60
|
+
*/
|
61
|
+
"src": string;
|
62
|
+
/**
|
63
|
+
* The variant of the avatar. Options are: `"round"`, `"square". Default is: `"square"`.
|
64
|
+
*/
|
65
|
+
"variant"?: 'round' | 'square';
|
66
|
+
}
|
41
67
|
interface CpslButton {
|
42
68
|
/**
|
43
69
|
* If the button is disabled. Default is: false.
|
44
70
|
*/
|
45
71
|
"disabled"?: boolean;
|
46
72
|
/**
|
47
|
-
*
|
73
|
+
* Whether the button takes the full width of it's container. Default is: false.
|
74
|
+
*/
|
75
|
+
"fullWidth"?: boolean;
|
76
|
+
/**
|
77
|
+
* The size of the button. Options are: `"small"`, `"medium". Default is: `"medium"`.
|
78
|
+
*/
|
79
|
+
"size"?: 'small' | 'medium';
|
80
|
+
/**
|
81
|
+
* The variant of the button. Options are: `"primary"`, `"secondary", `"icon". Default is: `"primary"`.
|
48
82
|
*/
|
49
83
|
"variant"?: 'primary' | 'secondary' | 'icon';
|
50
84
|
}
|
85
|
+
interface CpslButtonGroup {
|
86
|
+
/**
|
87
|
+
* The id of the selected button.
|
88
|
+
*/
|
89
|
+
"selectedId"?: string;
|
90
|
+
}
|
91
|
+
interface CpslCard {
|
92
|
+
}
|
93
|
+
interface CpslCheckbox {
|
94
|
+
/**
|
95
|
+
* Whether or not the checkbox is checked.
|
96
|
+
*/
|
97
|
+
"checked": boolean;
|
98
|
+
}
|
51
99
|
interface CpslCodeInput {
|
52
100
|
/**
|
53
101
|
* Value of the code.
|
@@ -170,6 +218,32 @@ export namespace Components {
|
|
170
218
|
}
|
171
219
|
interface CpslDivider {
|
172
220
|
}
|
221
|
+
interface CpslDrawer {
|
222
|
+
/**
|
223
|
+
* Side from which the drawer will enter from.
|
224
|
+
*/
|
225
|
+
"anchor": 'top' | 'bottom' | 'left' | 'right';
|
226
|
+
/**
|
227
|
+
* Whether the drawer is open or not.
|
228
|
+
*/
|
229
|
+
"open": boolean;
|
230
|
+
/**
|
231
|
+
* Size (height or width) of the drawer.
|
232
|
+
*/
|
233
|
+
"size": number;
|
234
|
+
/**
|
235
|
+
* Duration in seconds of the open/close animation. Default is 0.15.
|
236
|
+
*/
|
237
|
+
"transitionDuration"?: number;
|
238
|
+
/**
|
239
|
+
* Transition timing function to use. Default is ease-in-out.
|
240
|
+
*/
|
241
|
+
"transitionFunction"?: string;
|
242
|
+
/**
|
243
|
+
* The variant of the drawer. `temporary` drawers will cover content and contain a backdrop. `permanent` drawers will sit beside content, i.e. desktop navigation. Default is `temporary`.
|
244
|
+
*/
|
245
|
+
"variant"?: 'temporary' | 'permanent';
|
246
|
+
}
|
173
247
|
interface CpslDropdown {
|
174
248
|
/**
|
175
249
|
* Whether or not to include search capability
|
@@ -291,6 +365,10 @@ export namespace Components {
|
|
291
365
|
* If `true`, the user must fill in a value before submitting a form.
|
292
366
|
*/
|
293
367
|
"required": boolean;
|
368
|
+
/**
|
369
|
+
* If `true`, the label will display an "optional" tag.
|
370
|
+
*/
|
371
|
+
"showOptionalLabel": boolean;
|
294
372
|
/**
|
295
373
|
* If `true`, the element will have its spelling and grammar checked.
|
296
374
|
*/
|
@@ -341,6 +419,16 @@ export namespace Components {
|
|
341
419
|
* Whether or not to show the modal.
|
342
420
|
*/
|
343
421
|
"open": boolean;
|
422
|
+
/**
|
423
|
+
* Override z-index.
|
424
|
+
*/
|
425
|
+
"zIndexOverride"?: number;
|
426
|
+
}
|
427
|
+
interface CpslNavButtonGroup {
|
428
|
+
/**
|
429
|
+
* The id of the selected button.
|
430
|
+
*/
|
431
|
+
"selectedId"?: string;
|
344
432
|
}
|
345
433
|
interface CpslOverlay {
|
346
434
|
/**
|
@@ -355,6 +443,24 @@ export namespace Components {
|
|
355
443
|
* Whether or not to show the overlay.
|
356
444
|
*/
|
357
445
|
"open": boolean;
|
446
|
+
/**
|
447
|
+
* Override z-index.
|
448
|
+
*/
|
449
|
+
"zIndexOverride"?: number;
|
450
|
+
}
|
451
|
+
interface CpslPagination {
|
452
|
+
/**
|
453
|
+
* The initial page to select. Default is 0.
|
454
|
+
*/
|
455
|
+
"initialPage"?: number;
|
456
|
+
/**
|
457
|
+
* The total number of pages.
|
458
|
+
*/
|
459
|
+
"totalPages": number;
|
460
|
+
/**
|
461
|
+
* The number of pages visible to select. Default is 5. Min is 5.
|
462
|
+
*/
|
463
|
+
"visiblePages"?: number;
|
358
464
|
}
|
359
465
|
interface CpslPill {
|
360
466
|
/**
|
@@ -386,6 +492,12 @@ export namespace Components {
|
|
386
492
|
*/
|
387
493
|
"url": string;
|
388
494
|
}
|
495
|
+
interface CpslRadio {
|
496
|
+
/**
|
497
|
+
* Whether or not the radio is checked.
|
498
|
+
*/
|
499
|
+
"checked": boolean;
|
500
|
+
}
|
389
501
|
interface CpslRow {
|
390
502
|
}
|
391
503
|
interface CpslSlideButton {
|
@@ -420,6 +532,12 @@ export namespace Components {
|
|
420
532
|
*/
|
421
533
|
"speed"?: number;
|
422
534
|
}
|
535
|
+
interface CpslSwitch {
|
536
|
+
/**
|
537
|
+
* Whether or not the switch is checked.
|
538
|
+
*/
|
539
|
+
"checked": boolean;
|
540
|
+
}
|
423
541
|
interface CpslTab {
|
424
542
|
/**
|
425
543
|
* The selected tab component
|
@@ -430,6 +548,16 @@ export namespace Components {
|
|
430
548
|
*/
|
431
549
|
"tab": string;
|
432
550
|
}
|
551
|
+
interface CpslTable {
|
552
|
+
/**
|
553
|
+
* Columns for the table.
|
554
|
+
*/
|
555
|
+
"columns": ColDef[];
|
556
|
+
/**
|
557
|
+
* Data rows for the table.
|
558
|
+
*/
|
559
|
+
"rows": RowDef[];
|
560
|
+
}
|
433
561
|
interface CpslTabs {
|
434
562
|
/**
|
435
563
|
* Whether or not the tabs take the full width of their container.
|
@@ -465,6 +593,10 @@ export namespace Components {
|
|
465
593
|
"src"?: string;
|
466
594
|
}
|
467
595
|
}
|
596
|
+
export interface CpslCheckboxCustomEvent<T> extends CustomEvent<T> {
|
597
|
+
detail: T;
|
598
|
+
target: HTMLCpslCheckboxElement;
|
599
|
+
}
|
468
600
|
export interface CpslCodeInputCustomEvent<T> extends CustomEvent<T> {
|
469
601
|
detail: T;
|
470
602
|
target: HTMLCpslCodeInputElement;
|
@@ -481,10 +613,22 @@ export interface CpslModalCustomEvent<T> extends CustomEvent<T> {
|
|
481
613
|
detail: T;
|
482
614
|
target: HTMLCpslModalElement;
|
483
615
|
}
|
616
|
+
export interface CpslPaginationCustomEvent<T> extends CustomEvent<T> {
|
617
|
+
detail: T;
|
618
|
+
target: HTMLCpslPaginationElement;
|
619
|
+
}
|
620
|
+
export interface CpslRadioCustomEvent<T> extends CustomEvent<T> {
|
621
|
+
detail: T;
|
622
|
+
target: HTMLCpslRadioElement;
|
623
|
+
}
|
484
624
|
export interface CpslSlideButtonCustomEvent<T> extends CustomEvent<T> {
|
485
625
|
detail: T;
|
486
626
|
target: HTMLCpslSlideButtonElement;
|
487
627
|
}
|
628
|
+
export interface CpslSwitchCustomEvent<T> extends CustomEvent<T> {
|
629
|
+
detail: T;
|
630
|
+
target: HTMLCpslSwitchElement;
|
631
|
+
}
|
488
632
|
export interface CpslTabCustomEvent<T> extends CustomEvent<T> {
|
489
633
|
detail: T;
|
490
634
|
target: HTMLCpslTabElement;
|
@@ -506,12 +650,53 @@ declare global {
|
|
506
650
|
prototype: HTMLCpslAnimationElement;
|
507
651
|
new (): HTMLCpslAnimationElement;
|
508
652
|
};
|
653
|
+
interface HTMLCpslAppBarElement extends Components.CpslAppBar, HTMLStencilElement {
|
654
|
+
}
|
655
|
+
var HTMLCpslAppBarElement: {
|
656
|
+
prototype: HTMLCpslAppBarElement;
|
657
|
+
new (): HTMLCpslAppBarElement;
|
658
|
+
};
|
659
|
+
interface HTMLCpslAvatarElement extends Components.CpslAvatar, HTMLStencilElement {
|
660
|
+
}
|
661
|
+
var HTMLCpslAvatarElement: {
|
662
|
+
prototype: HTMLCpslAvatarElement;
|
663
|
+
new (): HTMLCpslAvatarElement;
|
664
|
+
};
|
509
665
|
interface HTMLCpslButtonElement extends Components.CpslButton, HTMLStencilElement {
|
510
666
|
}
|
511
667
|
var HTMLCpslButtonElement: {
|
512
668
|
prototype: HTMLCpslButtonElement;
|
513
669
|
new (): HTMLCpslButtonElement;
|
514
670
|
};
|
671
|
+
interface HTMLCpslButtonGroupElement extends Components.CpslButtonGroup, HTMLStencilElement {
|
672
|
+
}
|
673
|
+
var HTMLCpslButtonGroupElement: {
|
674
|
+
prototype: HTMLCpslButtonGroupElement;
|
675
|
+
new (): HTMLCpslButtonGroupElement;
|
676
|
+
};
|
677
|
+
interface HTMLCpslCardElement extends Components.CpslCard, HTMLStencilElement {
|
678
|
+
}
|
679
|
+
var HTMLCpslCardElement: {
|
680
|
+
prototype: HTMLCpslCardElement;
|
681
|
+
new (): HTMLCpslCardElement;
|
682
|
+
};
|
683
|
+
interface HTMLCpslCheckboxElementEventMap {
|
684
|
+
"cpslCheckboxChanged": boolean;
|
685
|
+
}
|
686
|
+
interface HTMLCpslCheckboxElement extends Components.CpslCheckbox, HTMLStencilElement {
|
687
|
+
addEventListener<K extends keyof HTMLCpslCheckboxElementEventMap>(type: K, listener: (this: HTMLCpslCheckboxElement, ev: CpslCheckboxCustomEvent<HTMLCpslCheckboxElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
688
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
689
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
690
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
691
|
+
removeEventListener<K extends keyof HTMLCpslCheckboxElementEventMap>(type: K, listener: (this: HTMLCpslCheckboxElement, ev: CpslCheckboxCustomEvent<HTMLCpslCheckboxElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
692
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
693
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
694
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
695
|
+
}
|
696
|
+
var HTMLCpslCheckboxElement: {
|
697
|
+
prototype: HTMLCpslCheckboxElement;
|
698
|
+
new (): HTMLCpslCheckboxElement;
|
699
|
+
};
|
515
700
|
interface HTMLCpslCodeInputElementEventMap {
|
516
701
|
"cpslInput": CodeChangeEventDetail;
|
517
702
|
}
|
@@ -541,6 +726,12 @@ declare global {
|
|
541
726
|
prototype: HTMLCpslDividerElement;
|
542
727
|
new (): HTMLCpslDividerElement;
|
543
728
|
};
|
729
|
+
interface HTMLCpslDrawerElement extends Components.CpslDrawer, HTMLStencilElement {
|
730
|
+
}
|
731
|
+
var HTMLCpslDrawerElement: {
|
732
|
+
prototype: HTMLCpslDrawerElement;
|
733
|
+
new (): HTMLCpslDrawerElement;
|
734
|
+
};
|
544
735
|
interface HTMLCpslDropdownElementEventMap {
|
545
736
|
"selectedItemChange": DropdownInputEventDetail;
|
546
737
|
}
|
@@ -618,12 +809,35 @@ declare global {
|
|
618
809
|
prototype: HTMLCpslModalElement;
|
619
810
|
new (): HTMLCpslModalElement;
|
620
811
|
};
|
812
|
+
interface HTMLCpslNavButtonGroupElement extends Components.CpslNavButtonGroup, HTMLStencilElement {
|
813
|
+
}
|
814
|
+
var HTMLCpslNavButtonGroupElement: {
|
815
|
+
prototype: HTMLCpslNavButtonGroupElement;
|
816
|
+
new (): HTMLCpslNavButtonGroupElement;
|
817
|
+
};
|
621
818
|
interface HTMLCpslOverlayElement extends Components.CpslOverlay, HTMLStencilElement {
|
622
819
|
}
|
623
820
|
var HTMLCpslOverlayElement: {
|
624
821
|
prototype: HTMLCpslOverlayElement;
|
625
822
|
new (): HTMLCpslOverlayElement;
|
626
823
|
};
|
824
|
+
interface HTMLCpslPaginationElementEventMap {
|
825
|
+
"cpslPaginationChanged": number;
|
826
|
+
}
|
827
|
+
interface HTMLCpslPaginationElement extends Components.CpslPagination, HTMLStencilElement {
|
828
|
+
addEventListener<K extends keyof HTMLCpslPaginationElementEventMap>(type: K, listener: (this: HTMLCpslPaginationElement, ev: CpslPaginationCustomEvent<HTMLCpslPaginationElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
829
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
830
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
831
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
832
|
+
removeEventListener<K extends keyof HTMLCpslPaginationElementEventMap>(type: K, listener: (this: HTMLCpslPaginationElement, ev: CpslPaginationCustomEvent<HTMLCpslPaginationElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
833
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
834
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
835
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
836
|
+
}
|
837
|
+
var HTMLCpslPaginationElement: {
|
838
|
+
prototype: HTMLCpslPaginationElement;
|
839
|
+
new (): HTMLCpslPaginationElement;
|
840
|
+
};
|
627
841
|
interface HTMLCpslPillElement extends Components.CpslPill, HTMLStencilElement {
|
628
842
|
}
|
629
843
|
var HTMLCpslPillElement: {
|
@@ -642,6 +856,23 @@ declare global {
|
|
642
856
|
prototype: HTMLCpslQrCodeElement;
|
643
857
|
new (): HTMLCpslQrCodeElement;
|
644
858
|
};
|
859
|
+
interface HTMLCpslRadioElementEventMap {
|
860
|
+
"cpslRadioChanged": boolean;
|
861
|
+
}
|
862
|
+
interface HTMLCpslRadioElement extends Components.CpslRadio, HTMLStencilElement {
|
863
|
+
addEventListener<K extends keyof HTMLCpslRadioElementEventMap>(type: K, listener: (this: HTMLCpslRadioElement, ev: CpslRadioCustomEvent<HTMLCpslRadioElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
864
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
865
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
866
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
867
|
+
removeEventListener<K extends keyof HTMLCpslRadioElementEventMap>(type: K, listener: (this: HTMLCpslRadioElement, ev: CpslRadioCustomEvent<HTMLCpslRadioElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
868
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
869
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
870
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
871
|
+
}
|
872
|
+
var HTMLCpslRadioElement: {
|
873
|
+
prototype: HTMLCpslRadioElement;
|
874
|
+
new (): HTMLCpslRadioElement;
|
875
|
+
};
|
645
876
|
interface HTMLCpslRowElement extends Components.CpslRow, HTMLStencilElement {
|
646
877
|
}
|
647
878
|
var HTMLCpslRowElement: {
|
@@ -671,6 +902,23 @@ declare global {
|
|
671
902
|
prototype: HTMLCpslSpinnerElement;
|
672
903
|
new (): HTMLCpslSpinnerElement;
|
673
904
|
};
|
905
|
+
interface HTMLCpslSwitchElementEventMap {
|
906
|
+
"cpslSwitchChanged": boolean;
|
907
|
+
}
|
908
|
+
interface HTMLCpslSwitchElement extends Components.CpslSwitch, HTMLStencilElement {
|
909
|
+
addEventListener<K extends keyof HTMLCpslSwitchElementEventMap>(type: K, listener: (this: HTMLCpslSwitchElement, ev: CpslSwitchCustomEvent<HTMLCpslSwitchElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
910
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
911
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
912
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
913
|
+
removeEventListener<K extends keyof HTMLCpslSwitchElementEventMap>(type: K, listener: (this: HTMLCpslSwitchElement, ev: CpslSwitchCustomEvent<HTMLCpslSwitchElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
914
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
915
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
916
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
917
|
+
}
|
918
|
+
var HTMLCpslSwitchElement: {
|
919
|
+
prototype: HTMLCpslSwitchElement;
|
920
|
+
new (): HTMLCpslSwitchElement;
|
921
|
+
};
|
674
922
|
interface HTMLCpslTabElementEventMap {
|
675
923
|
"cpslTabButtonClick": TabClickEventDetail;
|
676
924
|
}
|
@@ -688,6 +936,12 @@ declare global {
|
|
688
936
|
prototype: HTMLCpslTabElement;
|
689
937
|
new (): HTMLCpslTabElement;
|
690
938
|
};
|
939
|
+
interface HTMLCpslTableElement extends Components.CpslTable, HTMLStencilElement {
|
940
|
+
}
|
941
|
+
var HTMLCpslTableElement: {
|
942
|
+
prototype: HTMLCpslTableElement;
|
943
|
+
new (): HTMLCpslTableElement;
|
944
|
+
};
|
691
945
|
interface HTMLCpslTabsElementEventMap {
|
692
946
|
"cpslTabsChanged": TabsChangedEventDetail;
|
693
947
|
"cpslTabsInit": TabsChangedEventDetail;
|
@@ -721,24 +975,35 @@ declare global {
|
|
721
975
|
interface HTMLElementTagNameMap {
|
722
976
|
"cpsl-alert": HTMLCpslAlertElement;
|
723
977
|
"cpsl-animation": HTMLCpslAnimationElement;
|
978
|
+
"cpsl-app-bar": HTMLCpslAppBarElement;
|
979
|
+
"cpsl-avatar": HTMLCpslAvatarElement;
|
724
980
|
"cpsl-button": HTMLCpslButtonElement;
|
981
|
+
"cpsl-button-group": HTMLCpslButtonGroupElement;
|
982
|
+
"cpsl-card": HTMLCpslCardElement;
|
983
|
+
"cpsl-checkbox": HTMLCpslCheckboxElement;
|
725
984
|
"cpsl-code-input": HTMLCpslCodeInputElement;
|
726
985
|
"cpsl-col": HTMLCpslColElement;
|
727
986
|
"cpsl-divider": HTMLCpslDividerElement;
|
987
|
+
"cpsl-drawer": HTMLCpslDrawerElement;
|
728
988
|
"cpsl-dropdown": HTMLCpslDropdownElement;
|
729
989
|
"cpsl-grid": HTMLCpslGridElement;
|
730
990
|
"cpsl-icon": HTMLCpslIconElement;
|
731
991
|
"cpsl-info-box": HTMLCpslInfoBoxElement;
|
732
992
|
"cpsl-input": HTMLCpslInputElement;
|
733
993
|
"cpsl-modal": HTMLCpslModalElement;
|
994
|
+
"cpsl-nav-button-group": HTMLCpslNavButtonGroupElement;
|
734
995
|
"cpsl-overlay": HTMLCpslOverlayElement;
|
996
|
+
"cpsl-pagination": HTMLCpslPaginationElement;
|
735
997
|
"cpsl-pill": HTMLCpslPillElement;
|
736
998
|
"cpsl-progress-indicator": HTMLCpslProgressIndicatorElement;
|
737
999
|
"cpsl-qr-code": HTMLCpslQrCodeElement;
|
1000
|
+
"cpsl-radio": HTMLCpslRadioElement;
|
738
1001
|
"cpsl-row": HTMLCpslRowElement;
|
739
1002
|
"cpsl-slide-button": HTMLCpslSlideButtonElement;
|
740
1003
|
"cpsl-spinner": HTMLCpslSpinnerElement;
|
1004
|
+
"cpsl-switch": HTMLCpslSwitchElement;
|
741
1005
|
"cpsl-tab": HTMLCpslTabElement;
|
1006
|
+
"cpsl-table": HTMLCpslTableElement;
|
742
1007
|
"cpsl-tabs": HTMLCpslTabsElement;
|
743
1008
|
"cpsl-text": HTMLCpslTextElement;
|
744
1009
|
"cpsl-tile-button": HTMLCpslTileButtonElement;
|
@@ -751,9 +1016,9 @@ declare namespace LocalJSX {
|
|
751
1016
|
*/
|
752
1017
|
"icon"?: IconType;
|
753
1018
|
/**
|
754
|
-
* The
|
1019
|
+
* The variant of alert. Options are: `"error"` | `"warning"` | `"success"` | `"custom"` Default is: `"error"`.
|
755
1020
|
*/
|
756
|
-
"
|
1021
|
+
"variant"?: 'error' | 'warning' | 'success' | 'custom';
|
757
1022
|
}
|
758
1023
|
interface CpslAnimation {
|
759
1024
|
/**
|
@@ -761,16 +1026,66 @@ declare namespace LocalJSX {
|
|
761
1026
|
*/
|
762
1027
|
"src"?: string;
|
763
1028
|
}
|
1029
|
+
interface CpslAppBar {
|
1030
|
+
/**
|
1031
|
+
* Height of the app bar.
|
1032
|
+
*/
|
1033
|
+
"height"?: number;
|
1034
|
+
/**
|
1035
|
+
* The position of the drawer. Default is `fixed`.
|
1036
|
+
*/
|
1037
|
+
"position"?: 'fixed' | 'static';
|
1038
|
+
}
|
1039
|
+
interface CpslAvatar {
|
1040
|
+
/**
|
1041
|
+
* The alternate text for the avatar image.
|
1042
|
+
*/
|
1043
|
+
"alt"?: string;
|
1044
|
+
/**
|
1045
|
+
* The source of the avatar image.
|
1046
|
+
*/
|
1047
|
+
"src"?: string;
|
1048
|
+
/**
|
1049
|
+
* The variant of the avatar. Options are: `"round"`, `"square". Default is: `"square"`.
|
1050
|
+
*/
|
1051
|
+
"variant"?: 'round' | 'square';
|
1052
|
+
}
|
764
1053
|
interface CpslButton {
|
765
1054
|
/**
|
766
1055
|
* If the button is disabled. Default is: false.
|
767
1056
|
*/
|
768
1057
|
"disabled"?: boolean;
|
769
1058
|
/**
|
770
|
-
*
|
1059
|
+
* Whether the button takes the full width of it's container. Default is: false.
|
1060
|
+
*/
|
1061
|
+
"fullWidth"?: boolean;
|
1062
|
+
/**
|
1063
|
+
* The size of the button. Options are: `"small"`, `"medium". Default is: `"medium"`.
|
1064
|
+
*/
|
1065
|
+
"size"?: 'small' | 'medium';
|
1066
|
+
/**
|
1067
|
+
* The variant of the button. Options are: `"primary"`, `"secondary", `"icon". Default is: `"primary"`.
|
771
1068
|
*/
|
772
1069
|
"variant"?: 'primary' | 'secondary' | 'icon';
|
773
1070
|
}
|
1071
|
+
interface CpslButtonGroup {
|
1072
|
+
/**
|
1073
|
+
* The id of the selected button.
|
1074
|
+
*/
|
1075
|
+
"selectedId"?: string;
|
1076
|
+
}
|
1077
|
+
interface CpslCard {
|
1078
|
+
}
|
1079
|
+
interface CpslCheckbox {
|
1080
|
+
/**
|
1081
|
+
* Whether or not the checkbox is checked.
|
1082
|
+
*/
|
1083
|
+
"checked"?: boolean;
|
1084
|
+
/**
|
1085
|
+
* Emitted when the checkbox state changes.
|
1086
|
+
*/
|
1087
|
+
"onCpslCheckboxChanged"?: (event: CpslCheckboxCustomEvent<boolean>) => void;
|
1088
|
+
}
|
774
1089
|
interface CpslCodeInput {
|
775
1090
|
/**
|
776
1091
|
* Value of the code.
|
@@ -897,6 +1212,32 @@ declare namespace LocalJSX {
|
|
897
1212
|
}
|
898
1213
|
interface CpslDivider {
|
899
1214
|
}
|
1215
|
+
interface CpslDrawer {
|
1216
|
+
/**
|
1217
|
+
* Side from which the drawer will enter from.
|
1218
|
+
*/
|
1219
|
+
"anchor"?: 'top' | 'bottom' | 'left' | 'right';
|
1220
|
+
/**
|
1221
|
+
* Whether the drawer is open or not.
|
1222
|
+
*/
|
1223
|
+
"open"?: boolean;
|
1224
|
+
/**
|
1225
|
+
* Size (height or width) of the drawer.
|
1226
|
+
*/
|
1227
|
+
"size"?: number;
|
1228
|
+
/**
|
1229
|
+
* Duration in seconds of the open/close animation. Default is 0.15.
|
1230
|
+
*/
|
1231
|
+
"transitionDuration"?: number;
|
1232
|
+
/**
|
1233
|
+
* Transition timing function to use. Default is ease-in-out.
|
1234
|
+
*/
|
1235
|
+
"transitionFunction"?: string;
|
1236
|
+
/**
|
1237
|
+
* The variant of the drawer. `temporary` drawers will cover content and contain a backdrop. `permanent` drawers will sit beside content, i.e. desktop navigation. Default is `temporary`.
|
1238
|
+
*/
|
1239
|
+
"variant"?: 'temporary' | 'permanent';
|
1240
|
+
}
|
900
1241
|
interface CpslDropdown {
|
901
1242
|
/**
|
902
1243
|
* Whether or not to include search capability
|
@@ -1042,6 +1383,10 @@ declare namespace LocalJSX {
|
|
1042
1383
|
* If `true`, the user must fill in a value before submitting a form.
|
1043
1384
|
*/
|
1044
1385
|
"required"?: boolean;
|
1386
|
+
/**
|
1387
|
+
* If `true`, the label will display an "optional" tag.
|
1388
|
+
*/
|
1389
|
+
"showOptionalLabel"?: boolean;
|
1045
1390
|
/**
|
1046
1391
|
* If `true`, the element will have its spelling and grammar checked.
|
1047
1392
|
*/
|
@@ -1112,6 +1457,16 @@ declare namespace LocalJSX {
|
|
1112
1457
|
* Whether or not to show the modal.
|
1113
1458
|
*/
|
1114
1459
|
"open"?: boolean;
|
1460
|
+
/**
|
1461
|
+
* Override z-index.
|
1462
|
+
*/
|
1463
|
+
"zIndexOverride"?: number;
|
1464
|
+
}
|
1465
|
+
interface CpslNavButtonGroup {
|
1466
|
+
/**
|
1467
|
+
* The id of the selected button.
|
1468
|
+
*/
|
1469
|
+
"selectedId"?: string;
|
1115
1470
|
}
|
1116
1471
|
interface CpslOverlay {
|
1117
1472
|
/**
|
@@ -1126,6 +1481,28 @@ declare namespace LocalJSX {
|
|
1126
1481
|
* Whether or not to show the overlay.
|
1127
1482
|
*/
|
1128
1483
|
"open"?: boolean;
|
1484
|
+
/**
|
1485
|
+
* Override z-index.
|
1486
|
+
*/
|
1487
|
+
"zIndexOverride"?: number;
|
1488
|
+
}
|
1489
|
+
interface CpslPagination {
|
1490
|
+
/**
|
1491
|
+
* The initial page to select. Default is 0.
|
1492
|
+
*/
|
1493
|
+
"initialPage"?: number;
|
1494
|
+
/**
|
1495
|
+
* Emitted when exit animation finishes.
|
1496
|
+
*/
|
1497
|
+
"onCpslPaginationChanged"?: (event: CpslPaginationCustomEvent<number>) => void;
|
1498
|
+
/**
|
1499
|
+
* The total number of pages.
|
1500
|
+
*/
|
1501
|
+
"totalPages"?: number;
|
1502
|
+
/**
|
1503
|
+
* The number of pages visible to select. Default is 5. Min is 5.
|
1504
|
+
*/
|
1505
|
+
"visiblePages"?: number;
|
1129
1506
|
}
|
1130
1507
|
interface CpslPill {
|
1131
1508
|
/**
|
@@ -1157,6 +1534,16 @@ declare namespace LocalJSX {
|
|
1157
1534
|
*/
|
1158
1535
|
"url"?: string;
|
1159
1536
|
}
|
1537
|
+
interface CpslRadio {
|
1538
|
+
/**
|
1539
|
+
* Whether or not the radio is checked.
|
1540
|
+
*/
|
1541
|
+
"checked"?: boolean;
|
1542
|
+
/**
|
1543
|
+
* Emitted when the radio state changes.
|
1544
|
+
*/
|
1545
|
+
"onCpslRadioChanged"?: (event: CpslRadioCustomEvent<boolean>) => void;
|
1546
|
+
}
|
1160
1547
|
interface CpslRow {
|
1161
1548
|
}
|
1162
1549
|
interface CpslSlideButton {
|
@@ -1195,6 +1582,16 @@ declare namespace LocalJSX {
|
|
1195
1582
|
*/
|
1196
1583
|
"speed"?: number;
|
1197
1584
|
}
|
1585
|
+
interface CpslSwitch {
|
1586
|
+
/**
|
1587
|
+
* Whether or not the switch is checked.
|
1588
|
+
*/
|
1589
|
+
"checked"?: boolean;
|
1590
|
+
/**
|
1591
|
+
* Emitted when the switch state changes.
|
1592
|
+
*/
|
1593
|
+
"onCpslSwitchChanged"?: (event: CpslSwitchCustomEvent<boolean>) => void;
|
1594
|
+
}
|
1198
1595
|
interface CpslTab {
|
1199
1596
|
/**
|
1200
1597
|
* The selected tab component
|
@@ -1205,6 +1602,16 @@ declare namespace LocalJSX {
|
|
1205
1602
|
*/
|
1206
1603
|
"tab"?: string;
|
1207
1604
|
}
|
1605
|
+
interface CpslTable {
|
1606
|
+
/**
|
1607
|
+
* Columns for the table.
|
1608
|
+
*/
|
1609
|
+
"columns"?: ColDef[];
|
1610
|
+
/**
|
1611
|
+
* Data rows for the table.
|
1612
|
+
*/
|
1613
|
+
"rows"?: RowDef[];
|
1614
|
+
}
|
1208
1615
|
interface CpslTabs {
|
1209
1616
|
/**
|
1210
1617
|
* Whether or not the tabs take the full width of their container.
|
@@ -1246,24 +1653,35 @@ declare namespace LocalJSX {
|
|
1246
1653
|
interface IntrinsicElements {
|
1247
1654
|
"cpsl-alert": CpslAlert;
|
1248
1655
|
"cpsl-animation": CpslAnimation;
|
1656
|
+
"cpsl-app-bar": CpslAppBar;
|
1657
|
+
"cpsl-avatar": CpslAvatar;
|
1249
1658
|
"cpsl-button": CpslButton;
|
1659
|
+
"cpsl-button-group": CpslButtonGroup;
|
1660
|
+
"cpsl-card": CpslCard;
|
1661
|
+
"cpsl-checkbox": CpslCheckbox;
|
1250
1662
|
"cpsl-code-input": CpslCodeInput;
|
1251
1663
|
"cpsl-col": CpslCol;
|
1252
1664
|
"cpsl-divider": CpslDivider;
|
1665
|
+
"cpsl-drawer": CpslDrawer;
|
1253
1666
|
"cpsl-dropdown": CpslDropdown;
|
1254
1667
|
"cpsl-grid": CpslGrid;
|
1255
1668
|
"cpsl-icon": CpslIcon;
|
1256
1669
|
"cpsl-info-box": CpslInfoBox;
|
1257
1670
|
"cpsl-input": CpslInput;
|
1258
1671
|
"cpsl-modal": CpslModal;
|
1672
|
+
"cpsl-nav-button-group": CpslNavButtonGroup;
|
1259
1673
|
"cpsl-overlay": CpslOverlay;
|
1674
|
+
"cpsl-pagination": CpslPagination;
|
1260
1675
|
"cpsl-pill": CpslPill;
|
1261
1676
|
"cpsl-progress-indicator": CpslProgressIndicator;
|
1262
1677
|
"cpsl-qr-code": CpslQrCode;
|
1678
|
+
"cpsl-radio": CpslRadio;
|
1263
1679
|
"cpsl-row": CpslRow;
|
1264
1680
|
"cpsl-slide-button": CpslSlideButton;
|
1265
1681
|
"cpsl-spinner": CpslSpinner;
|
1682
|
+
"cpsl-switch": CpslSwitch;
|
1266
1683
|
"cpsl-tab": CpslTab;
|
1684
|
+
"cpsl-table": CpslTable;
|
1267
1685
|
"cpsl-tabs": CpslTabs;
|
1268
1686
|
"cpsl-text": CpslText;
|
1269
1687
|
"cpsl-tile-button": CpslTileButton;
|
@@ -1275,24 +1693,35 @@ declare module "@stencil/core" {
|
|
1275
1693
|
interface IntrinsicElements {
|
1276
1694
|
"cpsl-alert": LocalJSX.CpslAlert & JSXBase.HTMLAttributes<HTMLCpslAlertElement>;
|
1277
1695
|
"cpsl-animation": LocalJSX.CpslAnimation & JSXBase.HTMLAttributes<HTMLCpslAnimationElement>;
|
1696
|
+
"cpsl-app-bar": LocalJSX.CpslAppBar & JSXBase.HTMLAttributes<HTMLCpslAppBarElement>;
|
1697
|
+
"cpsl-avatar": LocalJSX.CpslAvatar & JSXBase.HTMLAttributes<HTMLCpslAvatarElement>;
|
1278
1698
|
"cpsl-button": LocalJSX.CpslButton & JSXBase.HTMLAttributes<HTMLCpslButtonElement>;
|
1699
|
+
"cpsl-button-group": LocalJSX.CpslButtonGroup & JSXBase.HTMLAttributes<HTMLCpslButtonGroupElement>;
|
1700
|
+
"cpsl-card": LocalJSX.CpslCard & JSXBase.HTMLAttributes<HTMLCpslCardElement>;
|
1701
|
+
"cpsl-checkbox": LocalJSX.CpslCheckbox & JSXBase.HTMLAttributes<HTMLCpslCheckboxElement>;
|
1279
1702
|
"cpsl-code-input": LocalJSX.CpslCodeInput & JSXBase.HTMLAttributes<HTMLCpslCodeInputElement>;
|
1280
1703
|
"cpsl-col": LocalJSX.CpslCol & JSXBase.HTMLAttributes<HTMLCpslColElement>;
|
1281
1704
|
"cpsl-divider": LocalJSX.CpslDivider & JSXBase.HTMLAttributes<HTMLCpslDividerElement>;
|
1705
|
+
"cpsl-drawer": LocalJSX.CpslDrawer & JSXBase.HTMLAttributes<HTMLCpslDrawerElement>;
|
1282
1706
|
"cpsl-dropdown": LocalJSX.CpslDropdown & JSXBase.HTMLAttributes<HTMLCpslDropdownElement>;
|
1283
1707
|
"cpsl-grid": LocalJSX.CpslGrid & JSXBase.HTMLAttributes<HTMLCpslGridElement>;
|
1284
1708
|
"cpsl-icon": LocalJSX.CpslIcon & JSXBase.HTMLAttributes<HTMLCpslIconElement>;
|
1285
1709
|
"cpsl-info-box": LocalJSX.CpslInfoBox & JSXBase.HTMLAttributes<HTMLCpslInfoBoxElement>;
|
1286
1710
|
"cpsl-input": LocalJSX.CpslInput & JSXBase.HTMLAttributes<HTMLCpslInputElement>;
|
1287
1711
|
"cpsl-modal": LocalJSX.CpslModal & JSXBase.HTMLAttributes<HTMLCpslModalElement>;
|
1712
|
+
"cpsl-nav-button-group": LocalJSX.CpslNavButtonGroup & JSXBase.HTMLAttributes<HTMLCpslNavButtonGroupElement>;
|
1288
1713
|
"cpsl-overlay": LocalJSX.CpslOverlay & JSXBase.HTMLAttributes<HTMLCpslOverlayElement>;
|
1714
|
+
"cpsl-pagination": LocalJSX.CpslPagination & JSXBase.HTMLAttributes<HTMLCpslPaginationElement>;
|
1289
1715
|
"cpsl-pill": LocalJSX.CpslPill & JSXBase.HTMLAttributes<HTMLCpslPillElement>;
|
1290
1716
|
"cpsl-progress-indicator": LocalJSX.CpslProgressIndicator & JSXBase.HTMLAttributes<HTMLCpslProgressIndicatorElement>;
|
1291
1717
|
"cpsl-qr-code": LocalJSX.CpslQrCode & JSXBase.HTMLAttributes<HTMLCpslQrCodeElement>;
|
1718
|
+
"cpsl-radio": LocalJSX.CpslRadio & JSXBase.HTMLAttributes<HTMLCpslRadioElement>;
|
1292
1719
|
"cpsl-row": LocalJSX.CpslRow & JSXBase.HTMLAttributes<HTMLCpslRowElement>;
|
1293
1720
|
"cpsl-slide-button": LocalJSX.CpslSlideButton & JSXBase.HTMLAttributes<HTMLCpslSlideButtonElement>;
|
1294
1721
|
"cpsl-spinner": LocalJSX.CpslSpinner & JSXBase.HTMLAttributes<HTMLCpslSpinnerElement>;
|
1722
|
+
"cpsl-switch": LocalJSX.CpslSwitch & JSXBase.HTMLAttributes<HTMLCpslSwitchElement>;
|
1295
1723
|
"cpsl-tab": LocalJSX.CpslTab & JSXBase.HTMLAttributes<HTMLCpslTabElement>;
|
1724
|
+
"cpsl-table": LocalJSX.CpslTable & JSXBase.HTMLAttributes<HTMLCpslTableElement>;
|
1296
1725
|
"cpsl-tabs": LocalJSX.CpslTabs & JSXBase.HTMLAttributes<HTMLCpslTabsElement>;
|
1297
1726
|
"cpsl-text": LocalJSX.CpslText & JSXBase.HTMLAttributes<HTMLCpslTextElement>;
|
1298
1727
|
"cpsl-tile-button": LocalJSX.CpslTileButton & JSXBase.HTMLAttributes<HTMLCpslTileButtonElement>;
|