@usecapsule/core-components 3.6.0 → 3.8.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/dist/capsule/capsule.esm.js +1 -1
- package/dist/capsule/capsule.esm.js.map +1 -1
- package/dist/capsule/p-acf73691.entry.js +28 -0
- package/dist/capsule/p-acf73691.entry.js.map +1 -0
- package/dist/cjs/capsule.cjs.js +1 -1
- package/dist/cjs/cpsl-alert_34.cjs.entry.js +4011 -2482
- package/dist/cjs/cpsl-alert_34.cjs.entry.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/assets/icons/arbitrum-brand.svg +38 -0
- package/dist/collection/assets/icons/base-brand.svg +3 -0
- package/dist/collection/assets/icons/celo-brand.svg +13 -0
- package/dist/collection/assets/icons/currency-dollar.svg +3 -0
- package/dist/collection/assets/icons/dots.svg +65 -0
- package/dist/collection/assets/icons/empty-circle.svg +4 -0
- package/dist/collection/assets/icons/index.js +24 -0
- package/dist/collection/assets/icons/index.js.map +1 -1
- package/dist/collection/assets/icons/optimism-brand.svg +11 -0
- package/dist/collection/assets/icons/polygon-brand.svg +16 -0
- package/dist/collection/assets/icons/sliders.svg +3 -0
- package/dist/collection/assets/icons/tether-brand.svg +7 -0
- package/dist/collection/assets/icons/trash.svg +3 -0
- package/dist/collection/assets/icons/usdc-brand.svg +5 -0
- package/dist/collection/components/cpsl-alert/cpsl-alert.css +1 -0
- package/dist/collection/components/cpsl-alert/cpsl-alert.js +1 -1
- package/dist/collection/components/cpsl-button/cpsl-button.css +2 -2
- package/dist/collection/components/cpsl-icon/cpsl-icon.js +1 -1
- package/dist/collection/components/cpsl-input/cpsl-input.css +5 -0
- package/dist/collection/components/cpsl-input/cpsl-input.js +58 -32
- package/dist/collection/components/cpsl-input/cpsl-input.js.map +1 -1
- package/dist/collection/components/cpsl-popover/cpsl-popover.css +7 -6
- package/dist/collection/components/cpsl-popover/cpsl-popover.js +29 -8
- package/dist/collection/components/cpsl-popover/cpsl-popover.js.map +1 -1
- package/dist/collection/components/cpsl-select/cpsl-select.js +4 -7
- package/dist/collection/components/cpsl-select/cpsl-select.js.map +1 -1
- package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.js +2 -2
- package/dist/collection/components/cpsl-tabs/cpsl-tabs.css +1 -0
- package/dist/collection/components/cpsl-text/cpsl-text.css +16 -7
- package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.js +1 -1
- package/dist/esm/capsule.js +1 -1
- package/dist/esm/cpsl-alert_34.entry.js +4011 -2482
- package/dist/esm/cpsl-alert_34.entry.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/assets/icons/index.d.ts +12 -0
- package/dist/types/components/cpsl-input/cpsl-input.d.ts +10 -3
- package/dist/types/components/cpsl-popover/cpsl-popover.d.ts +3 -1
- package/dist/types/components.d.ts +16 -0
- package/package.json +3 -3
- package/dist/capsule/p-023a0300.entry.js +0 -20
- package/dist/capsule/p-023a0300.entry.js.map +0 -1
package/dist/esm/loader.js
CHANGED
|
@@ -5,7 +5,7 @@ import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
6
6
|
if (typeof window === 'undefined') return undefined;
|
|
7
7
|
await globalScripts();
|
|
8
|
-
return bootstrapLazy([["cpsl-hero",[[1,"cpsl-hero",{"height":[2],"hideFadeOut":[4,"hide-fade-out"],"variant":[513],"title":[513],"subtitle":[513],"withDefaultTheme":[4,"with-default-theme"]}]]],["cpsl-modal-v2",[[1,"cpsl-modal-v2",{"enterTransitionDuration":[2,"enter-transition-duration"],"exitTransitionDuration":[2,"exit-transition-duration"],"elevated":[4],"noOverlay":[4,"no-overlay"],"open":[4],"zIndexOverride":[2,"z-index-override"]},null,{"open":["toggleHeight"]}]]],["cpsl-nav-button",[[1,"cpsl-nav-button",{"disabled":[516],"exactMainRouteMatch":[4,"exact-main-route-match"],"exactSubRouteMatch":[4,"exact-sub-route-match"],"route":[1],"subRoutes":[16],"path":[1]}]]],["cpsl-col",[[1,"cpsl-col",{"offset":[1],"offsetXs":[1,"offset-xs"],"offsetSm":[1,"offset-sm"],"offsetMd":[1,"offset-md"],"offsetLg":[1,"offset-lg"],"offsetXl":[1,"offset-xl"],"pull":[1],"pullXs":[1,"pull-xs"],"pullSm":[1,"pull-sm"],"pullMd":[1,"pull-md"],"pullLg":[1,"pull-lg"],"pullXl":[1,"pull-xl"],"push":[1],"pushXs":[1,"push-xs"],"pushSm":[1,"push-sm"],"pushMd":[1,"push-md"],"pushLg":[1,"push-lg"],"pushXl":[1,"push-xl"],"size":[1],"sizeXs":[1,"size-xs"],"sizeSm":[1,"size-sm"],"sizeMd":[1,"size-md"],"sizeLg":[1,"size-lg"],"sizeXl":[1,"size-xl"]},[[9,"resize","onResize"]]]]],["cpsl-grid",[[1,"cpsl-grid",{"fixed":[4]}]]],["cpsl-identicon",[[1,"cpsl-identicon",{"hash":[1],"size":[1],"variant":[1]}]]],["cpsl-info-box",[[1,"cpsl-info-box"]]],["cpsl-row",[[1,"cpsl-row"]]],["cpsl-alert_34",[[1,"cpsl-pagination",{"initialPage":[2,"initial-page"],"totalPages":[2,"total-pages"],"visiblePages":[1026,"visible-pages"],"currentPage":[32]},null,{"currentPage":["watchChange"]}],[1,"cpsl-select",{"anchorElId":[1,"anchor-el-id"],"autoWidth":[4,"auto-width"],"disabled":[4],"dropdownMaxHeight":[2,"dropdown-max-height"],"errorText":[1,"error-text"],"formatValue":[16],"helperText":[1,"helper-text"],"id":[1],"icon":[1],"label":[1],"noIconAnimation":[4,"no-icon-animation"],"placeholder":[1],"required":[4],"selectedValue":[1,"selected-value"],"showFormattedSelectedItem":[4,"show-formatted-selected-item"],"showOptionalLabel":[4,"show-optional-label"],"showSearch":[4,"show-search"],"searchPlaceholder":[1,"search-placeholder"],"anchorEl":[32],"hasFocus":[32],"popoverOpen":[32],"hasSelectedItem":[32]},[[0,"cpslSelectItemClick","selectItemClickHandler"],[0,"cpslOpen","onPopoverOpen"],[0,"cpslClose","onPopoverClose"]],{"selectedValue":["onValueChange","handleValueChange"]}],[1,"cpsl-file-upload",{"disabled":[516],"errorText":[1,"error-text"],"externalFilename":[1,"external-filename"],"externalSrc":[1,"external-src"],"fileTypes":[16],"helperText":[1,"helper-text"],"label":[1],"required":[4],"showOptionalLabel":[4,"show-optional-label"],"uploadFile":[16],"file":[32],"dragOver":[32],"dragError":[32],"isUploading":[32],"uploadError":[32]}],[1,"cpsl-auth-modal",{"enterTransitionDuration":[2,"enter-transition-duration"],"exitTransitionDuration":[2,"exit-transition-duration"],"noOverlay":[4,"no-overlay"],"open":[4],"zIndexOverride":[2,"z-index-override"],"hasFooter":[32],"isMobile":[32]},null,{"open":["toggleModal"]}],[1,"cpsl-alert",{"icon":[1],"variant":[1],"filled":[4]}],[1,"cpsl-checkbox",{"checked":[4]}],[1,"cpsl-code-input",{"code":[1025],"errorText":[1,"error-text"],"helperText":[1,"helper-text"],"length":[2],"type":[1]}],[1,"cpsl-drawer",{"anchor":[1],"anchorPosition":[2,"anchor-position"],"noOverlay":[4,"no-overlay"],"open":[4],"size":[8],"transitionDuration":[2,"transition-duration"],"transitionFunction":[1,"transition-function"],"variant":[1],"zIndexOverride":[2,"z-index-override"],"closedAnchorPosition":[32],"showTransition":[32]}],[1,"cpsl-icon-group",{"expandFrom":[1,"expand-from"],"disabled":[4],"icons":[16],"isHovered":[32]}],[1,"cpsl-slide-button",{"disabled":[4],"endIcon":[1,"end-icon"],"endText":[1,"end-text"],"startIcon":[1,"start-icon"],"startText":[1,"start-text"]}],[1,"cpsl-table",{"hasHorizontalScroll":[32],"hasVerticalScroll":[32]}],[1,"cpsl-tile-button",{"src":[1],"icon":[1]}],[1,"cpsl-app-bar",{"height":[2],"position":[1],"zIndexOverride":[2,"z-index-override"]}],[1,"cpsl-avatar",{"alt":[1],"src":[1],"variant":[1]}],[1,"cpsl-divider"],[1,"cpsl-dropdown",{"width":[1],"hasCpslSearch":[4,"has-cpsl-search"],"items":[16],"selectedItem":[1040],"isOpen":[32],"searchQuery":[32],"filteredItems":[32]},[[9,"resize","handleResize"]],{"selectedItem":["handleSelectedItemChange"],"isOpen":["handleOpenChange"]}],[1,"cpsl-nav-button-group"],[1,"cpsl-pill",{"text":[1]}],[1,"cpsl-progress-indicator",{"totalSteps":[2,"total-steps"],"step":[2]}],[1,"cpsl-qr-code",{"url":[1],"imageSrc":[1,"image-src"],"size":[2]}],[1,"cpsl-radio",{"checked":[4]}],[1,"cpsl-select-item",{"selected":[4],"value":[1]}],[1,"cpsl-switch",{"checked":[4]}],[1,"cpsl-tab",{"selected":[4],"tab":[1]},[[8,"cpslTabsChanged","onTabsChanged"],[8,"cpslTabsInit","onTabsInit"]]],[1,"cpsl-tabs",{"fullWidth":[4,"full-width"],"selectedTab":[1,"selected-tab"],"selectedTabRect":[32],"loaded":[32]},[[8,"cpslTabButtonSizeChange","onTabSizeChange"]],{"fullWidth":["updateSlider"],"selectedTab":["updateTab"]}],[1,"cpsl-button-group",{"selectedId":[1,"selected-id"]},null,{"selectedId":["selectItem"]}],[1,"cpsl-input",{"autocapitalize":[1],"autocomplete":[1],"autocorrect":[1],"noAutoDisable":[4,"no-auto-disable"],"autofocus":[4],"autoselect":[4],"disabled":[4],"contrastText":[4,"contrast-text"],"enterkeyhint":[1],"errorText":[1,"error-text"],"mask":[1],"helperText":[1,"helper-text"],"inputmode":[1],"label":[1],"max":[8],"maxlength":[2],"min":[8],"minlength":[2],"multiple":[4],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[4],"required":[4],"showOptionalLabel":[4,"show-optional-label"],"spellcheck":[4],"startIconSrc":[1,"start-icon-src"],"startIcon":[1,"start-icon"],"step":[1],"type":[1],"value":[1025],"hasFocus":[32]
|
|
8
|
+
return bootstrapLazy([["cpsl-hero",[[1,"cpsl-hero",{"height":[2],"hideFadeOut":[4,"hide-fade-out"],"variant":[513],"title":[513],"subtitle":[513],"withDefaultTheme":[4,"with-default-theme"]}]]],["cpsl-modal-v2",[[1,"cpsl-modal-v2",{"enterTransitionDuration":[2,"enter-transition-duration"],"exitTransitionDuration":[2,"exit-transition-duration"],"elevated":[4],"noOverlay":[4,"no-overlay"],"open":[4],"zIndexOverride":[2,"z-index-override"]},null,{"open":["toggleHeight"]}]]],["cpsl-nav-button",[[1,"cpsl-nav-button",{"disabled":[516],"exactMainRouteMatch":[4,"exact-main-route-match"],"exactSubRouteMatch":[4,"exact-sub-route-match"],"route":[1],"subRoutes":[16],"path":[1]}]]],["cpsl-col",[[1,"cpsl-col",{"offset":[1],"offsetXs":[1,"offset-xs"],"offsetSm":[1,"offset-sm"],"offsetMd":[1,"offset-md"],"offsetLg":[1,"offset-lg"],"offsetXl":[1,"offset-xl"],"pull":[1],"pullXs":[1,"pull-xs"],"pullSm":[1,"pull-sm"],"pullMd":[1,"pull-md"],"pullLg":[1,"pull-lg"],"pullXl":[1,"pull-xl"],"push":[1],"pushXs":[1,"push-xs"],"pushSm":[1,"push-sm"],"pushMd":[1,"push-md"],"pushLg":[1,"push-lg"],"pushXl":[1,"push-xl"],"size":[1],"sizeXs":[1,"size-xs"],"sizeSm":[1,"size-sm"],"sizeMd":[1,"size-md"],"sizeLg":[1,"size-lg"],"sizeXl":[1,"size-xl"]},[[9,"resize","onResize"]]]]],["cpsl-grid",[[1,"cpsl-grid",{"fixed":[4]}]]],["cpsl-identicon",[[1,"cpsl-identicon",{"hash":[1],"size":[1],"variant":[1]}]]],["cpsl-info-box",[[1,"cpsl-info-box"]]],["cpsl-row",[[1,"cpsl-row"]]],["cpsl-alert_34",[[1,"cpsl-pagination",{"initialPage":[2,"initial-page"],"totalPages":[2,"total-pages"],"visiblePages":[1026,"visible-pages"],"currentPage":[32]},null,{"currentPage":["watchChange"]}],[1,"cpsl-select",{"anchorElId":[1,"anchor-el-id"],"autoWidth":[4,"auto-width"],"disabled":[4],"dropdownMaxHeight":[2,"dropdown-max-height"],"errorText":[1,"error-text"],"formatValue":[16],"helperText":[1,"helper-text"],"id":[1],"icon":[1],"label":[1],"noIconAnimation":[4,"no-icon-animation"],"placeholder":[1],"required":[4],"selectedValue":[1,"selected-value"],"showFormattedSelectedItem":[4,"show-formatted-selected-item"],"showOptionalLabel":[4,"show-optional-label"],"showSearch":[4,"show-search"],"searchPlaceholder":[1,"search-placeholder"],"anchorEl":[32],"hasFocus":[32],"popoverOpen":[32],"hasSelectedItem":[32]},[[0,"cpslSelectItemClick","selectItemClickHandler"],[0,"cpslOpen","onPopoverOpen"],[0,"cpslClose","onPopoverClose"]],{"selectedValue":["onValueChange","handleValueChange"]}],[1,"cpsl-file-upload",{"disabled":[516],"errorText":[1,"error-text"],"externalFilename":[1,"external-filename"],"externalSrc":[1,"external-src"],"fileTypes":[16],"helperText":[1,"helper-text"],"label":[1],"required":[4],"showOptionalLabel":[4,"show-optional-label"],"uploadFile":[16],"file":[32],"dragOver":[32],"dragError":[32],"isUploading":[32],"uploadError":[32]}],[1,"cpsl-auth-modal",{"enterTransitionDuration":[2,"enter-transition-duration"],"exitTransitionDuration":[2,"exit-transition-duration"],"noOverlay":[4,"no-overlay"],"open":[4],"zIndexOverride":[2,"z-index-override"],"hasFooter":[32],"isMobile":[32]},null,{"open":["toggleModal"]}],[1,"cpsl-alert",{"icon":[1],"variant":[1],"filled":[4]}],[1,"cpsl-checkbox",{"checked":[4]}],[1,"cpsl-code-input",{"code":[1025],"errorText":[1,"error-text"],"helperText":[1,"helper-text"],"length":[2],"type":[1]}],[1,"cpsl-drawer",{"anchor":[1],"anchorPosition":[2,"anchor-position"],"noOverlay":[4,"no-overlay"],"open":[4],"size":[8],"transitionDuration":[2,"transition-duration"],"transitionFunction":[1,"transition-function"],"variant":[1],"zIndexOverride":[2,"z-index-override"],"closedAnchorPosition":[32],"showTransition":[32]}],[1,"cpsl-icon-group",{"expandFrom":[1,"expand-from"],"disabled":[4],"icons":[16],"isHovered":[32]}],[1,"cpsl-slide-button",{"disabled":[4],"endIcon":[1,"end-icon"],"endText":[1,"end-text"],"startIcon":[1,"start-icon"],"startText":[1,"start-text"]}],[1,"cpsl-table",{"hasHorizontalScroll":[32],"hasVerticalScroll":[32]}],[1,"cpsl-tile-button",{"src":[1],"icon":[1]}],[1,"cpsl-app-bar",{"height":[2],"position":[1],"zIndexOverride":[2,"z-index-override"]}],[1,"cpsl-avatar",{"alt":[1],"src":[1],"variant":[1]}],[1,"cpsl-divider"],[1,"cpsl-dropdown",{"width":[1],"hasCpslSearch":[4,"has-cpsl-search"],"items":[16],"selectedItem":[1040],"isOpen":[32],"searchQuery":[32],"filteredItems":[32]},[[9,"resize","handleResize"]],{"selectedItem":["handleSelectedItemChange"],"isOpen":["handleOpenChange"]}],[1,"cpsl-nav-button-group"],[1,"cpsl-pill",{"text":[1]}],[1,"cpsl-progress-indicator",{"totalSteps":[2,"total-steps"],"step":[2]}],[1,"cpsl-qr-code",{"url":[1],"imageSrc":[1,"image-src"],"size":[2]}],[1,"cpsl-radio",{"checked":[4]}],[1,"cpsl-select-item",{"selected":[4],"value":[1]}],[1,"cpsl-switch",{"checked":[4]}],[1,"cpsl-tab",{"selected":[4],"tab":[1]},[[8,"cpslTabsChanged","onTabsChanged"],[8,"cpslTabsInit","onTabsInit"]]],[1,"cpsl-tabs",{"fullWidth":[4,"full-width"],"selectedTab":[1,"selected-tab"],"selectedTabRect":[32],"loaded":[32]},[[8,"cpslTabButtonSizeChange","onTabSizeChange"]],{"fullWidth":["updateSlider"],"selectedTab":["updateTab"]}],[1,"cpsl-button-group",{"selectedId":[1,"selected-id"]},null,{"selectedId":["selectItem"]}],[1,"cpsl-input",{"as":[1],"autocapitalize":[1],"autocomplete":[1],"autocorrect":[1],"noAutoDisable":[4,"no-auto-disable"],"autofocus":[4],"autoselect":[4],"disabled":[4],"contrastText":[4,"contrast-text"],"enterkeyhint":[1],"errorText":[1,"error-text"],"mask":[1],"helperText":[1,"helper-text"],"inputmode":[1],"label":[1],"max":[8],"maxlength":[2],"min":[8],"minlength":[2],"multiple":[4],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[4],"required":[4],"rows":[2],"showOptionalLabel":[4,"show-optional-label"],"spellcheck":[4],"startIconSrc":[1,"start-icon-src"],"startIcon":[1,"start-icon"],"step":[1],"type":[1],"value":[1025],"hasFocus":[32]},null,{"disabled":["handleDisable"],"mask":["handleSetupMask"],"value":["handleValueChange"]}],[1,"cpsl-popover",{"anchorEl":[16],"anchorOriginHorizontal":[1,"anchor-origin-horizontal"],"anchorOriginVertical":[1,"anchor-origin-vertical"],"autoWidth":[4,"auto-width"],"disabled":[4],"preventBlur":[4,"prevent-blur"],"transformOriginHorizontal":[1,"transform-origin-horizontal"],"transformOriginVertical":[1,"transform-origin-vertical"],"triggerAction":[1,"trigger-action"],"trigger":[1],"windowPadding":[2,"window-padding"],"open":[32],"positionX":[32],"positionY":[32],"closePopover":[64]},null,{"trigger":["onTriggerChange"],"triggerAction":["onTriggerChange"],"preventBlur":["onTriggerChange"],"anchorOriginHorizontal":["onAnchorChange"],"anchorOriginVertical":["onAnchorChange"],"open":["onOpenChange"]}],[1,"cpsl-spinner",{"size":[2],"speed":[2]}],[1,"cpsl-button",{"as":[1],"disabled":[516],"fullWidth":[4,"full-width"],"href":[1],"size":[1],"target":[1],"variant":[513]}],[1,"cpsl-card"],[1,"cpsl-overlay",{"enterTransitionDuration":[2,"enter-transition-duration"],"exitTransitionDuration":[2,"exit-transition-duration"],"open":[4],"zIndexOverride":[2,"z-index-override"]},null,{"open":["toggleHeight"]}],[1,"cpsl-text",{"color":[1],"variant":[1],"weight":[1]}],[1,"cpsl-icon",{"src":[1],"icon":[1]}]]]], options);
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
export { defineCustomElements };
|
|
@@ -5,17 +5,20 @@ export declare const Icons: {
|
|
|
5
5
|
angelList: string;
|
|
6
6
|
appleBrand: string;
|
|
7
7
|
apple: string;
|
|
8
|
+
arbitrumBrand: string;
|
|
8
9
|
arrowCircleBrokenDownLeft: string;
|
|
9
10
|
arrowCircleDownFilled: string;
|
|
10
11
|
arrowNarrow: string;
|
|
11
12
|
arrow: string;
|
|
12
13
|
backupKit: string;
|
|
13
14
|
bank: string;
|
|
15
|
+
baseBrand: string;
|
|
14
16
|
brush: string;
|
|
15
17
|
capsuleLogo: string;
|
|
16
18
|
capsuleRingsDark: string;
|
|
17
19
|
capsuleRings: string;
|
|
18
20
|
capsule: string;
|
|
21
|
+
celoBrand: string;
|
|
19
22
|
checkCircleFilled: string;
|
|
20
23
|
checkCircle: string;
|
|
21
24
|
check: string;
|
|
@@ -34,17 +37,20 @@ export declare const Icons: {
|
|
|
34
37
|
cube03: string;
|
|
35
38
|
cubeOutline: string;
|
|
36
39
|
cube: string;
|
|
40
|
+
currencyDollar: string;
|
|
37
41
|
decentBrand: string;
|
|
38
42
|
decent: string;
|
|
39
43
|
discordBrand: string;
|
|
40
44
|
discord: string;
|
|
41
45
|
dot: string;
|
|
46
|
+
dots: string;
|
|
42
47
|
downloadCloud: string;
|
|
43
48
|
download: string;
|
|
44
49
|
dribbbleBrand: string;
|
|
45
50
|
dribbble: string;
|
|
46
51
|
earth: string;
|
|
47
52
|
edit02: string;
|
|
53
|
+
emptyCircle: string;
|
|
48
54
|
ethereum: string;
|
|
49
55
|
eyeOff: string;
|
|
50
56
|
eye: string;
|
|
@@ -89,11 +95,13 @@ export declare const Icons: {
|
|
|
89
95
|
menu: string;
|
|
90
96
|
moonpayBrand: string;
|
|
91
97
|
moreLoginOptions: string;
|
|
98
|
+
optimismBrand: string;
|
|
92
99
|
phone: string;
|
|
93
100
|
pintrestBrand: string;
|
|
94
101
|
pintrest: string;
|
|
95
102
|
plusCircle: string;
|
|
96
103
|
plus: string;
|
|
104
|
+
polygonBrand: string;
|
|
97
105
|
polygon: string;
|
|
98
106
|
puzzlePiece: string;
|
|
99
107
|
qrCode02: string;
|
|
@@ -109,6 +117,7 @@ export declare const Icons: {
|
|
|
109
117
|
shield: string;
|
|
110
118
|
signalBrand: string;
|
|
111
119
|
signal: string;
|
|
120
|
+
sliders: string;
|
|
112
121
|
snapchatBrand: string;
|
|
113
122
|
snapchat: string;
|
|
114
123
|
solana: string;
|
|
@@ -117,12 +126,15 @@ export declare const Icons: {
|
|
|
117
126
|
stripeBrand: string;
|
|
118
127
|
telegramBrand: string;
|
|
119
128
|
telegram: string;
|
|
129
|
+
tetherBrand: string;
|
|
120
130
|
tikTokBrand: string;
|
|
121
131
|
tikTok: string;
|
|
132
|
+
trash: string;
|
|
122
133
|
tumblrBrand: string;
|
|
123
134
|
tumblr: string;
|
|
124
135
|
twitterBrand: string;
|
|
125
136
|
twitter: string;
|
|
137
|
+
usdcBrand: string;
|
|
126
138
|
user: string;
|
|
127
139
|
wallet: string;
|
|
128
140
|
x: string;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
2
|
import { AutocompleteTypes, IconType, TextFieldTypes } from '../../interface';
|
|
3
3
|
import { InputChangeEventDetail, InputInputEventDetail } from './input-interface';
|
|
4
|
-
import InputMask from 'imask/esm/controls/input';
|
|
5
|
-
import 'imask/esm/masked/pattern';
|
|
6
4
|
export declare class CpslInput {
|
|
7
5
|
private nativeInput?;
|
|
8
6
|
el: HTMLCpslInputElement;
|
|
@@ -12,7 +10,12 @@ export declare class CpslInput {
|
|
|
12
10
|
*/
|
|
13
11
|
private focusedValue?;
|
|
14
12
|
hasFocus: boolean;
|
|
15
|
-
|
|
13
|
+
/**
|
|
14
|
+
* The tag for the input.
|
|
15
|
+
* Options are: `"input"`, `"textarea".
|
|
16
|
+
* Default is: `"input"`.
|
|
17
|
+
*/
|
|
18
|
+
as?: 'input' | 'textarea';
|
|
16
19
|
/**
|
|
17
20
|
* Indicates whether and how the text value should be automatically capitalized as it is entered/edited by the user.
|
|
18
21
|
* Available options: `"off"`, `"none"`, `"on"`, `"sentences"`, `"words"`, `"characters"`.
|
|
@@ -118,6 +121,10 @@ export declare class CpslInput {
|
|
|
118
121
|
* If `true`, the user must fill in a value before submitting a form.
|
|
119
122
|
*/
|
|
120
123
|
required: boolean;
|
|
124
|
+
/**
|
|
125
|
+
* Number of rows for the textarea
|
|
126
|
+
*/
|
|
127
|
+
rows: number;
|
|
121
128
|
/**
|
|
122
129
|
* If `true`, the label will display an "optional" tag.
|
|
123
130
|
*/
|
|
@@ -4,9 +4,10 @@ export declare class CpslPopover {
|
|
|
4
4
|
private destroyTriggerInteraction?;
|
|
5
5
|
el: HTMLCpslPopoverElement;
|
|
6
6
|
open: boolean;
|
|
7
|
-
private triggerClicked;
|
|
8
7
|
positionX?: number;
|
|
9
8
|
positionY?: number;
|
|
9
|
+
private startedInside;
|
|
10
|
+
private startedWhenMounted;
|
|
10
11
|
/**
|
|
11
12
|
* ID for the element that the popover anchors to.
|
|
12
13
|
*/
|
|
@@ -80,6 +81,7 @@ export declare class CpslPopover {
|
|
|
80
81
|
componentDidLoad(): void;
|
|
81
82
|
private configureTriggerInteraction;
|
|
82
83
|
private setPosition;
|
|
84
|
+
private validateEventStart;
|
|
83
85
|
private handleClickOutside;
|
|
84
86
|
private present;
|
|
85
87
|
private close;
|
|
@@ -407,6 +407,10 @@ export namespace Components {
|
|
|
407
407
|
interface CpslInfoBox {
|
|
408
408
|
}
|
|
409
409
|
interface CpslInput {
|
|
410
|
+
/**
|
|
411
|
+
* The tag for the input. Options are: `"input"`, `"textarea". Default is: `"input"`.
|
|
412
|
+
*/
|
|
413
|
+
"as"?: 'input' | 'textarea';
|
|
410
414
|
/**
|
|
411
415
|
* Indicates whether and how the text value should be automatically capitalized as it is entered/edited by the user. Available options: `"off"`, `"none"`, `"on"`, `"sentences"`, `"words"`, `"characters"`.
|
|
412
416
|
*/
|
|
@@ -503,6 +507,10 @@ export namespace Components {
|
|
|
503
507
|
* If `true`, the user must fill in a value before submitting a form.
|
|
504
508
|
*/
|
|
505
509
|
"required": boolean;
|
|
510
|
+
/**
|
|
511
|
+
* Number of rows for the textarea
|
|
512
|
+
*/
|
|
513
|
+
"rows": number;
|
|
506
514
|
/**
|
|
507
515
|
* If `true`, the label will display an "optional" tag.
|
|
508
516
|
*/
|
|
@@ -1892,6 +1900,10 @@ declare namespace LocalJSX {
|
|
|
1892
1900
|
interface CpslInfoBox {
|
|
1893
1901
|
}
|
|
1894
1902
|
interface CpslInput {
|
|
1903
|
+
/**
|
|
1904
|
+
* The tag for the input. Options are: `"input"`, `"textarea". Default is: `"input"`.
|
|
1905
|
+
*/
|
|
1906
|
+
"as"?: 'input' | 'textarea';
|
|
1895
1907
|
/**
|
|
1896
1908
|
* Indicates whether and how the text value should be automatically capitalized as it is entered/edited by the user. Available options: `"off"`, `"none"`, `"on"`, `"sentences"`, `"words"`, `"characters"`.
|
|
1897
1909
|
*/
|
|
@@ -2008,6 +2020,10 @@ declare namespace LocalJSX {
|
|
|
2008
2020
|
* If `true`, the user must fill in a value before submitting a form.
|
|
2009
2021
|
*/
|
|
2010
2022
|
"required"?: boolean;
|
|
2023
|
+
/**
|
|
2024
|
+
* Number of rows for the textarea
|
|
2025
|
+
*/
|
|
2026
|
+
"rows"?: number;
|
|
2011
2027
|
/**
|
|
2012
2028
|
* If `true`, the label will display an "optional" tag.
|
|
2013
2029
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@usecapsule/core-components",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.8.0",
|
|
4
4
|
"description": "Capsule Core Components",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"color-blend": "^4.0.0",
|
|
32
32
|
"color2k": "^2.0.3",
|
|
33
33
|
"gsap": "^3.12.5",
|
|
34
|
-
"
|
|
34
|
+
"inputmask": "5.0.9",
|
|
35
35
|
"qrcode-with-logos": "1.1.1"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"storybook-addon-stencil": "^0.2.1",
|
|
61
61
|
"ts-node": "^10.9.2"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "334559414c13a30000b7fd1eb19674d6c41da38d"
|
|
64
64
|
}
|