@getpara/core-components 2.0.0-alpha.15 → 2.0.0-alpha.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/capsule/capsule.esm.js +1 -1
- package/dist/capsule/{p-5049e2a1.entry.js → p-109de486.entry.js} +6 -6
- package/dist/capsule/p-109de486.entry.js.map +1 -0
- package/dist/cjs/cpsl-alert_34.cjs.entry.js +17 -28
- package/dist/cjs/cpsl-alert_34.cjs.entry.js.map +1 -1
- package/dist/collection/assets/icons/index.js +2 -0
- package/dist/collection/assets/icons/index.js.map +1 -1
- package/dist/collection/assets/icons/star-05.svg +3 -0
- package/dist/collection/components/cpsl-alert/cpsl-alert.js +1 -1
- package/dist/collection/components/cpsl-icon/cpsl-icon.js +1 -1
- package/dist/collection/components/cpsl-input/cpsl-input.js +1 -1
- package/dist/collection/components/cpsl-popover/cpsl-popover.js +5 -25
- package/dist/collection/components/cpsl-popover/cpsl-popover.js.map +1 -1
- package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.js +1 -1
- package/dist/collection/components/cpsl-select/cpsl-select.js +3 -3
- package/dist/collection/components/cpsl-select/cpsl-select.js.map +1 -1
- package/dist/collection/components/cpsl-select-item/cpsl-select-item.js +4 -1
- package/dist/collection/components/cpsl-select-item/cpsl-select-item.js.map +1 -1
- package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.js +2 -2
- package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.js +1 -1
- package/dist/esm/cpsl-alert_34.entry.js +17 -28
- package/dist/esm/cpsl-alert_34.entry.js.map +1 -1
- package/dist/types/assets/icons/index.d.ts +1 -0
- package/package.json +2 -2
- package/dist/capsule/p-5049e2a1.entry.js.map +0 -1
- /package/dist/types/Users/{keith/Documents/capsule → taylorbosch/Documents/GitHub/Capsule}/web-sdk/packages/core-components/.stencil/scripts/appendLoaderExports.d.ts +0 -0
- /package/dist/types/Users/{keith/Documents/capsule → taylorbosch/Documents/GitHub/Capsule}/web-sdk/packages/core-components/.stencil/scripts/buildAssets.d.ts +0 -0
|
@@ -7866,6 +7866,11 @@ const Star04Filled = `<svg xmlns="http://www.w3.org/2000/svg" width="24" height=
|
|
|
7866
7866
|
<path d="M12.9333 1.64102C12.7848 1.25483 12.4138 1 12 1C11.5862 1 11.2152 1.25483 11.0667 1.64102L9.0547 6.87211C8.7543 7.65315 8.6599 7.87822 8.53078 8.05981C8.40122 8.24202 8.24202 8.40122 8.05981 8.53078C7.87822 8.6599 7.65315 8.7543 6.8721 9.0547L1.64102 11.0667C1.25483 11.2152 1 11.5862 1 12C1 12.4138 1.25483 12.7848 1.64102 12.9333L6.87211 14.9453C7.65315 15.2457 7.87822 15.3401 8.05981 15.4692C8.24202 15.5988 8.40122 15.758 8.53078 15.9402C8.6599 16.1218 8.7543 16.3469 9.0547 17.1279L11.0667 22.359C11.2152 22.7452 11.5862 23 12 23C12.4138 23 12.7848 22.7452 12.9333 22.359L14.9453 17.1279C15.2457 16.3469 15.3401 16.1218 15.4692 15.9402C15.5988 15.758 15.758 15.5988 15.9402 15.4692C16.1218 15.3401 16.3469 15.2457 17.1279 14.9453L22.359 12.9333C22.7452 12.7848 23 12.4138 23 12C23 11.5862 22.7452 11.2152 22.359 11.0667L17.1279 9.0547C16.3469 8.7543 16.1218 8.6599 15.9402 8.53078C15.758 8.40122 15.5988 8.24202 15.4692 8.05981C15.3401 7.87822 15.2457 7.65315 14.9453 6.87211L12.9333 1.64102Z" />
|
|
7867
7867
|
</svg>`;
|
|
7868
7868
|
|
|
7869
|
+
const Star05 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" xmlns="http://www.w3.org/2000/svg">
|
|
7870
|
+
<path d="M12 2L10.6985 7.20599C10.4445 8.22185 10.3176 8.72978 10.0531 9.14309C9.81915 9.50868 9.50868 9.81915 9.14309 10.0531C8.72978 10.3176 8.22185 10.4445 7.20599 10.6985L2 12L7.20599 13.3015C8.22185 13.5555 8.72978 13.6824 9.14309 13.9469C9.50868 14.1808 9.81915 14.4913 10.0531 14.8569C10.3176 15.2702 10.4445 15.7782 10.6985 16.794L12 22L13.3015 16.794C13.5555 15.7782 13.6824 15.2702 13.9469 14.8569C14.1808 14.4913 14.4913 14.1808 14.8569 13.9469C15.2702 13.6824 15.7782 13.5555 16.794 13.3015L22 12L16.794 10.6985C15.7782 10.4445 15.2702 10.3176 14.8569 10.0531C14.4913 9.81915 14.1808 9.50868 13.9469 9.14309C13.6824 8.72978 13.5555 8.22185 13.3015 7.20599L12 2Z" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7871
|
+
</svg>
|
|
7872
|
+
`;
|
|
7873
|
+
|
|
7869
7874
|
const Stars01Filled = `<svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor" stroke="none" xmlns="http://www.w3.org/2000/svg">
|
|
7870
7875
|
<g id="stars-01">
|
|
7871
7876
|
<g id="Solid">
|
|
@@ -12161,6 +12166,7 @@ const Icons = {
|
|
|
12161
12166
|
solana: Solana,
|
|
12162
12167
|
spacingHeight: SpacingHeight,
|
|
12163
12168
|
star04Filled: Star04Filled,
|
|
12169
|
+
star05: Star05,
|
|
12164
12170
|
stars01Filled: Stars01Filled,
|
|
12165
12171
|
stars02: Stars02,
|
|
12166
12172
|
stars: Stars,
|
|
@@ -16948,36 +16954,16 @@ const CpslPopover = class {
|
|
|
16948
16954
|
default:
|
|
16949
16955
|
triggerCallbacks = [
|
|
16950
16956
|
{
|
|
16951
|
-
eventName: '
|
|
16952
|
-
callback: e => {
|
|
16957
|
+
eventName: 'click',
|
|
16958
|
+
callback: (e) => {
|
|
16953
16959
|
var _a;
|
|
16954
16960
|
const targetId = (_a = e.target.id) !== null && _a !== void 0 ? _a : '';
|
|
16955
16961
|
if (targetId === 'ignore-click') {
|
|
16956
16962
|
return;
|
|
16957
16963
|
}
|
|
16958
|
-
if (this.preventBlur) {
|
|
16959
|
-
e.preventDefault();
|
|
16960
|
-
}
|
|
16961
16964
|
if (!this.open) {
|
|
16962
16965
|
this.present();
|
|
16963
16966
|
}
|
|
16964
|
-
else if (e.target === this.triggerEl) {
|
|
16965
|
-
this.close();
|
|
16966
|
-
}
|
|
16967
|
-
},
|
|
16968
|
-
},
|
|
16969
|
-
{
|
|
16970
|
-
eventName: 'touchstart',
|
|
16971
|
-
callback: e => {
|
|
16972
|
-
var _a;
|
|
16973
|
-
const targetId = (_a = e.target.id) !== null && _a !== void 0 ? _a : '';
|
|
16974
|
-
if (targetId === 'ignore-click') {
|
|
16975
|
-
return;
|
|
16976
|
-
}
|
|
16977
|
-
if (this.preventBlur) {
|
|
16978
|
-
e.preventDefault();
|
|
16979
|
-
}
|
|
16980
|
-
this.present();
|
|
16981
16967
|
},
|
|
16982
16968
|
},
|
|
16983
16969
|
];
|
|
@@ -17130,7 +17116,7 @@ const CpslPopover = class {
|
|
|
17130
17116
|
}
|
|
17131
17117
|
render() {
|
|
17132
17118
|
var _a;
|
|
17133
|
-
return (index.h(index.Host, { key: '
|
|
17119
|
+
return (index.h(index.Host, { key: '10c267166cb8ccb9c9eff6b3e865804688d31b95', class: {
|
|
17134
17120
|
'open': this.open,
|
|
17135
17121
|
'transform-h-left': this.transformOriginHorizontal === 'left',
|
|
17136
17122
|
'transform-h-center': this.transformOriginHorizontal === 'center',
|
|
@@ -17142,9 +17128,9 @@ const CpslPopover = class {
|
|
|
17142
17128
|
top: `${this.positionY}px`,
|
|
17143
17129
|
left: `${this.positionX}px`,
|
|
17144
17130
|
width: !this.open ? '0px' : this.autoWidth ? 'auto' : `${(_a = this.triggerEl) === null || _a === void 0 ? void 0 : _a.clientWidth}px`,
|
|
17145
|
-
} }, index.h("div", { key: '
|
|
17131
|
+
} }, index.h("div", { key: '292d9e8e45996b711b8979d4a38c054a04306f48', id: "container", class: { container: true, open: this.open }, style: {
|
|
17146
17132
|
visibility: this.hasSetInitialPosition ? 'visible' : 'hidden',
|
|
17147
|
-
} }, index.h("slot", { key: '
|
|
17133
|
+
} }, index.h("slot", { key: 'aca410ff44bf9c77cb3eea6da1bd349bdc87287d' }))));
|
|
17148
17134
|
}
|
|
17149
17135
|
get el() { return index.getElement(this); }
|
|
17150
17136
|
static get watchers() { return {
|
|
@@ -21438,10 +21424,10 @@ const CpslSelect = class {
|
|
|
21438
21424
|
render() {
|
|
21439
21425
|
var _a, _b, _c, _d, _e;
|
|
21440
21426
|
const selectedValueAsString = Array.isArray(this.selectedValue) ? this.selectedValue.join(', ') : this.selectedValue;
|
|
21441
|
-
return (index.h(index.Host, { key: 'f7c2db799e3462ef83fd0e7b29a3fd88a2d69e38', id: this.id, class: { 'disabled': this.disabled, 'focused': this.hasFocus, 'has-value': this.hasSelectedItem } }, this.label && (index.h("label", { key: '8629dcd2d81bbf631962f84c551b2e2a3c96dd33', class: "label", htmlFor: this.inputId }, this.label, this.required ? '*' : ' ', !this.required && this.showOptionalLabel ? index.h("span", { class: "optional-label" }, "(optional)") : '')), index.h("div", { key: '
|
|
21427
|
+
return (index.h(index.Host, { key: 'f7c2db799e3462ef83fd0e7b29a3fd88a2d69e38', id: this.id, class: { 'disabled': this.disabled, 'focused': this.hasFocus, 'has-value': this.hasSelectedItem } }, this.label && (index.h("label", { key: '8629dcd2d81bbf631962f84c551b2e2a3c96dd33', class: "label", htmlFor: this.inputId }, this.label, this.required ? '*' : ' ', !this.required && this.showOptionalLabel ? index.h("span", { class: "optional-label" }, "(optional)") : '')), index.h("div", { key: '581836944bb5c01766bd0ec13f6bf5e1149cd7e7', part: "select-container", id: "select-container", class: { 'select-container': true, 'error-container': Boolean(this.errorText) }, onClick: this.handleClick }, this.hasSelectedItem && this.showFormattedSelectedItem && index.h("slot", { key: '39d58ccf94664d9d6c01a2b7dc5369fa77f224e2', name: "selected-item" }), index.h("div", { key: '511122f39895b25a0624497be7cb99c6ec9b92ba', class: { 'selected-container-content': true, 'hidden': this.hasSelectedItem && this.showFormattedSelectedItem }, id: "selected-container-content", style: {} }, (!this.hasSelectedItem || !this.showFormattedSelectedItem) && (index.h("cpsl-text", { key: 'd8ad96dab7e5b298d621ffc0621298c3ecc05907', class: { 'selected-text': true, 'placeholder': !this.selectedValue }, part: "selected-text", color: this.selectedItemColor, variant: this.selectedItemVariant, weight: this.selectedItemWeight }, !this.selectedValue ? ((_a = this.placeholder) !== null && _a !== void 0 ? _a : 'Select') : ((_c = (_b = this.formatValue) === null || _b === void 0 ? void 0 : _b.call(this, this.selectedValue)) !== null && _c !== void 0 ? _c : selectedValueAsString)))), index.h("cpsl-icon", { key: '787c3d3dff16bd68d3526604523f130ca329e8c9', part: "icon", class: { 'chevron': true, 'open': !this.noIconAnimation && this.popoverOpen, 'has-value': this.hasSelectedItem }, icon: this.icon }), index.h("input", { key: 'b606c940537173d3d8f4d66e131d7b624779713c', id: this.inputId, disabled: this.disabled, class: { disabled: this.disabled }, value: this.selectedValue, onFocus: this.onFocus, onBlur: this.onBlur, onKeyPress: this.handleEnterPress, inputmode: "none" }), index.h("cpsl-popover", { key: '272c71c9466bd5f301be9c02da68ac78dc95b087', part: "popover", autoWidth: this.autoWidth, trigger: this.id, preventBlur: this.hasFocus, disabled: this.disabled, anchorEl: this.anchorEl }, index.h("div", { key: 'e8d9dde383da411ebfe8a238e8e3d0b37c0cbdde', part: "dropdown", class: "dropdown" }, this.showSearch && (index.h("div", { key: '571f898c5ad668bd55373a4c3aceff8e4c9f990c', class: "search-container" }, index.h("cpsl-input", { key: 'faef8d5df2c800564c6dfb9176dbfa35592089fd', onClick: e => e.stopPropagation(), placeholder: (_d = this.searchPlaceholder) !== null && _d !== void 0 ? _d : 'Search', value: "", onCpslInput: e => {
|
|
21442
21428
|
e.stopPropagation();
|
|
21443
21429
|
this.cpslSearchChange.emit(e.detail.value);
|
|
21444
|
-
} }))), index.h("div", { key: '
|
|
21430
|
+
} }))), index.h("div", { key: '2a7a58fe4cac9ef5c6e193c7520c7fc5d4bdbec5', class: "dropdown-inner", style: { maxHeight: `${this.dropdownMaxHeight}px` } }, index.h("slot", { key: 'a0630a42e11c011ed5404e05a7ea1933da90e8fc', name: "items" }))))), (this.errorText || this.helperText) && (index.h("div", { key: 'cee93a66e762e3c111edcaf8f57379d9ed106369', class: { 'helper-text-container': true, 'error-text': Boolean(this.errorText) } }, index.h("span", { key: '438123416a44bbd84b6fa908a9ba21635d808400' }, (_e = this.errorText) !== null && _e !== void 0 ? _e : this.helperText)))));
|
|
21445
21431
|
}
|
|
21446
21432
|
get el() { return index.getElement(this); }
|
|
21447
21433
|
static get watchers() { return {
|
|
@@ -21465,7 +21451,10 @@ const CpslSelectItem = class {
|
|
|
21465
21451
|
this.value = undefined;
|
|
21466
21452
|
}
|
|
21467
21453
|
render() {
|
|
21468
|
-
return (index.h(index.Host, { key: '532ed86577783bc61c40a18de178e63d16cf24c1' }, index.h("div", { key: '
|
|
21454
|
+
return (index.h(index.Host, { key: '532ed86577783bc61c40a18de178e63d16cf24c1' }, index.h("div", { key: 'c96fd4ab69add9b97726ef5869da0f4ef4353b23', part: "outer-container", class: "outer-container", onClick: e => {
|
|
21455
|
+
this.handleItemClick();
|
|
21456
|
+
e.stopPropagation();
|
|
21457
|
+
} }, index.h("div", { key: '0dd87fde160b31a3609ee41b550066279c9f00d6', part: "inner-container", class: { 'inner-container': true, 'selected': this.selected } }, index.h("slot", { key: 'c526deb812322490f235d34d7d98f30eb2f6a19e' })))));
|
|
21469
21458
|
}
|
|
21470
21459
|
};
|
|
21471
21460
|
CpslSelectItem.style = CpslSelectItemStyle0;
|