@salla.sa/twilight-components 1.4.10 → 1.4.12
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/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{salla-button_23.cjs.entry.js → salla-button_24.cjs.entry.js} +29 -0
- package/dist/cjs/twilight-components.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/salla-skeleton/salla-skeleton.css +3 -0
- package/dist/collection/components/salla-skeleton/salla-skeleton.js +91 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +1 -0
- package/dist/components/salla-skeleton.d.ts +11 -0
- package/dist/components/salla-skeleton.js +56 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{salla-button_23.entry.js → salla-button_24.entry.js} +29 -1
- package/dist/esm/twilight-components.js +1 -1
- package/dist/twilight-components/p-d0415349.entry.js +4 -0
- package/dist/twilight-components/twilight-components.esm.js +1 -1
- package/dist/types/components/salla-skeleton/salla-skeleton.d.ts +15 -0
- package/dist/types/components.d.ts +37 -0
- package/example/assets/tailwind.css +38 -0
- package/package.json +1 -1
- package/dist/twilight-components/p-e53e606a.entry.js +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import{p as e,b as a}from"./p-1503d976.js";(()=>{const a=import.meta.url,l={};return""!==a&&(l.resourcesUrl=new URL(".",a).href),e(l)})().then((e=>a([["p-
|
|
4
|
+
import{p as e,b as a}from"./p-1503d976.js";(()=>{const a=import.meta.url,l={};return""!==a&&(l.resourcesUrl=new URL(".",a).href),e(l)})().then((e=>a([["p-d0415349",[[4,"salla-loyalty",{prizePoints:[8,"prize-points"],customerPoints:[2,"customer-points"],prizeTitle:[1,"prize-title"],allowEmail:[4,"allow-email"],allowMobile:[4,"allow-mobile"],requireEmail:[4,"require-email"],guestMessage:[1,"guest-message"],loyaltyProgram:[32],buttonLoading:[32],selectedItem:[32],askConfirmation:[32],is_loggedin:[32],points:[32],exchange_points:[32],are_you_sure_to_exchange:[32],for:[32],cancel:[32],confirm:[32],cart_total_point_summary:[32],cart_point_exchange_now:[32],login_button:[32],open:[64],close:[64],resetExchange:[64],exchangeLoyaltyPoint:[64]}],[4,"salla-product-size-guide",{guides:[32],productId:[32],open:[64],close:[64]}],[4,"salla-login-modal",{isEmailAllowed:[1028,"is-email-allowed"],isMobileAllowed:[1028,"is-mobile-allowed"],isEmailRequired:[1028,"is-email-required"],title:[32],loginTypeTitle:[32],loginText:[32],smsLabel:[32],mobileLabel:[32],emailLabel:[32],enterText:[32],bySMSText:[32],byEmailText:[32],emailErrorMsg:[32],firstNameLabel:[32],lastNameLabel:[32],firstNameErrorMsg:[32],lastNameErrorMsg:[32],open:[64]},[[8,"verified","onVerified"]]],[4,"salla-scopes",{selection:[1],searchDisplayLimit:[2,"search-display-limit"],mode:[32],current_scope:[32],scopes:[32],originalScopesList:[32],branchNotFound:[32],ourServiceIsNotFound:[32],searchForAvailabilityInOtherBranch:[32],shoppingFromAnotherBranch:[32],nowBrowsingFrom:[32],confirmButton:[32],scopeSearchPlaceholder:[32],selected_scope:[32],isOpenedBefore:[32],close:[64],open:[64],handleSubmit:[64]}],[0,"salla-rating-modal",{orderId:[2,"order-id"],order:[32],open:[64],close:[64]}],[0,"salla-localization-modal",{language:[1537],currency:[1537],languages:[32],currencies:[32],languagesTitle:[32],currenciesTitle:[32],isLoading:[32],open:[64],close:[64],submit:[64]}],[0,"salla-offer-modal",{offer:[32],offer_name:[32],offer_message:[32],offer_expires_in:[32],remember_my_choice:[32],add_to_cart:[32],out_of_stock:[32],open:[64],showOffer:[64]}],[0,"salla-search",{inline:[4],oval:[4],height:[2],results:[32],placeholder:[32],noResultsText:[32],typing:[32],debounce:[32],search_term:[32]}],[4,"salla-social-share",{url:[513],urlName:[513,"url-name"],platforms:[16],opened:[32],allPlatforms:[32],platformIcons:[32],open:[64]}],[4,"salla-infinite-scroll",{nextPage:[1,"next-page"],autoload:[1028],container:[1],item:[1],loadMore:[32],noMore:[32],failedToLoad:[32]}],[0,"salla-skeleton",{type:[1],width:[1],height:[1]}],[0,"salla-product-availability",{channels:[1],productId:[2,"product-id"],isSubscribed:[1028,"is-subscribed"],subTitle:[32],mobileLabel:[32],emailLabel:[32],emailPlaceholder:[32],subscribedMessage:[32],title_:[32],emailErrorMsg:[32],isVisitorSubscribed:[32]}],[4,"salla-verify",{display:[1],type:[1025],autoReload:[4,"auto-reload"],title:[32],resendAfter:[32],isProfileVerify:[32],getCode:[64],open:[64]}],[4,"salla-swiper",{loop:[4],speed:[2],itemPerView:[8,"item-per-view"],spaceBetweenItems:[2,"space-between-items"],direction:[1],currentIndex:[32],isLastSlideItem:[32],isFirstSlideItem:[32]}],[0,"salla-rating-stars",{name:[1],size:[1],value:[2]}],[4,"salla-list-tile",{href:[1],target:[1]}],[4,"salla-tab-content",{name:[1],isSelected:[32],getChild:[64]}],[4,"salla-tab-header",{name:[1],activeClass:[1,"active-class"],height:[8],centered:[4],isSelected:[32],getChild:[64]}],[4,"salla-tabs",{backgroundColor:[1,"background-color"],vertical:[4]},[[0,"onSelect","onSelectedTab"]]],[4,"salla-placeholder",{icon:[1],alignment:[1],iconSize:[1,"icon-size"],default_title:[32],default_description:[32]}],[0,"salla-tel-input",{phone:[1025],name:[1],countryCode:[1025,"country-code"],mobileRequired:[32],countryCodeLabel:[32],mobileLabel:[32],tooShort:[32],tooLong:[32],invalidCountryCode:[32],invalidNumber:[32],errorMap:[32],getValues:[64],isValid:[64]}],[4,"salla-modal",{isClosable:[1028,"is-closable"],width:[513],position:[513],visible:[516],isLoading:[1540,"is-loading"],subTitleFirst:[4,"sub-title-first"],noPadding:[4,"no-padding"],subTitle:[1,"sub-title"],icon:[1],iconStyle:[1,"icon-style"],imageIcon:[1,"image-icon"],modalTitle:[32],open:[64],close:[64],setTitle:[64],loading:[64],stopLoading:[64]}],[4,"salla-button",{shape:[513],color:[513],fill:[513],size:[513],width:[513],loading:[516],disabled:[516],loaderPosition:[1,"loader-position"],href:[1],load:[64],stop:[64],setText:[64],disable:[64],enable:[64]}],[0,"salla-loading",{size:[8],width:[8],color:[1],bgColor:[1,"bg-color"]}]]],["p-b9fe5498",[[4,"salla-add-product-button",{channels:[513],quantity:[514],donatingAmount:[514,"donating-amount"],productId:[520,"product-id"],productStatus:[513,"product-status"],productType:[513,"product-type"]}]]],["p-019bb315",[[4,"salla-conditional-fields",null,[[0,"change","changeHandler"]]]]],["p-4cba804f",[[0,"salla-installment",{price:[1],language:[1],currency:[1],tamaraIsActive:[32],tabbyIsActive:[32],spotiiIsActive:[32]}]]],["p-4c5055cf",[[4,"salla-quantity-input",{quantity:[32],decrease:[64],increase:[64],setValue:[64]}]]]],e)));
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare class SallaSkeleton {
|
|
2
|
+
/**
|
|
3
|
+
* Set the shape type of the skeleton is it circle or normal
|
|
4
|
+
*/
|
|
5
|
+
type: 'circle' | 'normal';
|
|
6
|
+
/**
|
|
7
|
+
* Set the skeleton width
|
|
8
|
+
*/
|
|
9
|
+
width: string;
|
|
10
|
+
/**
|
|
11
|
+
* Set the skeleton height
|
|
12
|
+
*/
|
|
13
|
+
height: string;
|
|
14
|
+
render(): any;
|
|
15
|
+
}
|
|
@@ -362,6 +362,20 @@ export namespace Components {
|
|
|
362
362
|
"inline": boolean;
|
|
363
363
|
"oval": boolean;
|
|
364
364
|
}
|
|
365
|
+
interface SallaSkeleton {
|
|
366
|
+
/**
|
|
367
|
+
* Set the skeleton height
|
|
368
|
+
*/
|
|
369
|
+
"height": string;
|
|
370
|
+
/**
|
|
371
|
+
* Set the shape type of the skeleton is it circle or normal
|
|
372
|
+
*/
|
|
373
|
+
"type": 'circle' | 'normal';
|
|
374
|
+
/**
|
|
375
|
+
* Set the skeleton width
|
|
376
|
+
*/
|
|
377
|
+
"width": string;
|
|
378
|
+
}
|
|
365
379
|
interface SallaSocialShare {
|
|
366
380
|
"open": () => Promise<void>;
|
|
367
381
|
/**
|
|
@@ -603,6 +617,12 @@ declare global {
|
|
|
603
617
|
prototype: HTMLSallaSearchElement;
|
|
604
618
|
new (): HTMLSallaSearchElement;
|
|
605
619
|
};
|
|
620
|
+
interface HTMLSallaSkeletonElement extends Components.SallaSkeleton, HTMLStencilElement {
|
|
621
|
+
}
|
|
622
|
+
var HTMLSallaSkeletonElement: {
|
|
623
|
+
prototype: HTMLSallaSkeletonElement;
|
|
624
|
+
new (): HTMLSallaSkeletonElement;
|
|
625
|
+
};
|
|
606
626
|
interface HTMLSallaSocialShareElement extends Components.SallaSocialShare, HTMLStencilElement {
|
|
607
627
|
}
|
|
608
628
|
var HTMLSallaSocialShareElement: {
|
|
@@ -666,6 +686,7 @@ declare global {
|
|
|
666
686
|
"salla-rating-stars": HTMLSallaRatingStarsElement;
|
|
667
687
|
"salla-scopes": HTMLSallaScopesElement;
|
|
668
688
|
"salla-search": HTMLSallaSearchElement;
|
|
689
|
+
"salla-skeleton": HTMLSallaSkeletonElement;
|
|
669
690
|
"salla-social-share": HTMLSallaSocialShareElement;
|
|
670
691
|
"salla-swiper": HTMLSallaSwiperElement;
|
|
671
692
|
"salla-tab-content": HTMLSallaTabContentElement;
|
|
@@ -919,6 +940,20 @@ declare namespace LocalJSX {
|
|
|
919
940
|
"inline"?: boolean;
|
|
920
941
|
"oval"?: boolean;
|
|
921
942
|
}
|
|
943
|
+
interface SallaSkeleton {
|
|
944
|
+
/**
|
|
945
|
+
* Set the skeleton height
|
|
946
|
+
*/
|
|
947
|
+
"height"?: string;
|
|
948
|
+
/**
|
|
949
|
+
* Set the shape type of the skeleton is it circle or normal
|
|
950
|
+
*/
|
|
951
|
+
"type"?: 'circle' | 'normal';
|
|
952
|
+
/**
|
|
953
|
+
* Set the skeleton width
|
|
954
|
+
*/
|
|
955
|
+
"width"?: string;
|
|
956
|
+
}
|
|
922
957
|
interface SallaSocialShare {
|
|
923
958
|
/**
|
|
924
959
|
* selected platforms to share | all platforms
|
|
@@ -1026,6 +1061,7 @@ declare namespace LocalJSX {
|
|
|
1026
1061
|
"salla-rating-stars": SallaRatingStars;
|
|
1027
1062
|
"salla-scopes": SallaScopes;
|
|
1028
1063
|
"salla-search": SallaSearch;
|
|
1064
|
+
"salla-skeleton": SallaSkeleton;
|
|
1029
1065
|
"salla-social-share": SallaSocialShare;
|
|
1030
1066
|
"salla-swiper": SallaSwiper;
|
|
1031
1067
|
"salla-tab-content": SallaTabContent;
|
|
@@ -1059,6 +1095,7 @@ declare module "@stencil/core" {
|
|
|
1059
1095
|
"salla-rating-stars": LocalJSX.SallaRatingStars & JSXBase.HTMLAttributes<HTMLSallaRatingStarsElement>;
|
|
1060
1096
|
"salla-scopes": LocalJSX.SallaScopes & JSXBase.HTMLAttributes<HTMLSallaScopesElement>;
|
|
1061
1097
|
"salla-search": LocalJSX.SallaSearch & JSXBase.HTMLAttributes<HTMLSallaSearchElement>;
|
|
1098
|
+
"salla-skeleton": LocalJSX.SallaSkeleton & JSXBase.HTMLAttributes<HTMLSallaSkeletonElement>;
|
|
1062
1099
|
"salla-social-share": LocalJSX.SallaSocialShare & JSXBase.HTMLAttributes<HTMLSallaSocialShareElement>;
|
|
1063
1100
|
"salla-swiper": LocalJSX.SallaSwiper & JSXBase.HTMLAttributes<HTMLSallaSwiperElement>;
|
|
1064
1101
|
"salla-tab-content": LocalJSX.SallaTabContent & JSXBase.HTMLAttributes<HTMLSallaTabContentElement>;
|
|
@@ -824,6 +824,10 @@ video {
|
|
|
824
824
|
row-gap: 1.5rem !important;
|
|
825
825
|
}
|
|
826
826
|
|
|
827
|
+
.gap-y-3 {
|
|
828
|
+
row-gap: 0.75rem !important;
|
|
829
|
+
}
|
|
830
|
+
|
|
827
831
|
.space-y-16 > :not([hidden]) ~ :not([hidden]) {
|
|
828
832
|
--tw-space-y-reverse: 0 !important;
|
|
829
833
|
margin-top: calc(4rem * calc(1 - var(--tw-space-y-reverse))) !important;
|
|
@@ -4400,6 +4404,40 @@ unicode {
|
|
|
4400
4404
|
transform: translateY(-50%) !important;
|
|
4401
4405
|
}
|
|
4402
4406
|
|
|
4407
|
+
@-webkit-keyframes pulse {
|
|
4408
|
+
50% {
|
|
4409
|
+
opacity: .5;
|
|
4410
|
+
}
|
|
4411
|
+
}
|
|
4412
|
+
|
|
4413
|
+
@keyframes pulse {
|
|
4414
|
+
50% {
|
|
4415
|
+
opacity: .5;
|
|
4416
|
+
}
|
|
4417
|
+
}
|
|
4418
|
+
|
|
4419
|
+
.s-skeleton-wrapper {
|
|
4420
|
+
-webkit-animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
|
4421
|
+
animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
|
4422
|
+
}
|
|
4423
|
+
|
|
4424
|
+
.s-skeleton-item {
|
|
4425
|
+
height: 100%;
|
|
4426
|
+
width: 100%;
|
|
4427
|
+
border-radius: 0.25rem;
|
|
4428
|
+
--tw-bg-opacity: 1;
|
|
4429
|
+
background-color: rgb(229 231 235 / var(--tw-bg-opacity));
|
|
4430
|
+
}
|
|
4431
|
+
|
|
4432
|
+
.dark .s-skeleton-item {
|
|
4433
|
+
--tw-bg-opacity: 1;
|
|
4434
|
+
background-color: rgb(55 65 81 / var(--tw-bg-opacity));
|
|
4435
|
+
}
|
|
4436
|
+
|
|
4437
|
+
.s-skeleton-item-circular {
|
|
4438
|
+
border-radius: 9999px;
|
|
4439
|
+
}
|
|
4440
|
+
|
|
4403
4441
|
.s-social-share-wrapper {
|
|
4404
4442
|
position: relative;
|
|
4405
4443
|
}
|