@saasquatch/mint-components 1.13.3-11 → 1.13.3-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/mint-components.cjs.js +1 -1
- package/dist/cjs/sqm-qr-code-view-15dfc0b6.js +103 -0
- package/dist/cjs/sqm-qr-code.cjs.entry.js +22 -15
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +25 -11
- package/dist/collection/components/sqm-qr-code/QRCode.stories.js +19 -9
- package/dist/collection/components/sqm-qr-code/sqm-qr-code-view.js +44 -35
- package/dist/collection/components/sqm-qr-code/sqm-qr-code.js +65 -1
- package/dist/collection/components/sqm-qr-code/useQRCode.js +8 -14
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mint-components.js +1 -1
- package/dist/esm/sqm-qr-code-view-f1d0763b.js +101 -0
- package/dist/esm/sqm-qr-code.entry.js +22 -15
- package/dist/esm/sqm-stencilbook.entry.js +25 -11
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/sqm-qr-code-view-f1d0763b.js +1 -0
- package/dist/esm-es5/sqm-qr-code.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/p-37996351.system.js +1 -1
- package/dist/mint-components/p-47d5d99b.system.entry.js +1 -0
- package/dist/mint-components/p-aad32fb6.system.js +1 -0
- package/dist/mint-components/{p-91903cd7.entry.js → p-ab8fba55.entry.js} +2 -2
- package/dist/mint-components/p-d70a5363.entry.js +17 -0
- package/dist/mint-components/{p-9d6705d5.system.entry.js → p-db6a5c9d.system.entry.js} +1 -1
- package/dist/mint-components/p-f56bedd5.js +1 -0
- package/dist/types/components/sqm-qr-code/QRCode.stories.d.ts +5 -1
- package/dist/types/components/sqm-qr-code/sqm-qr-code-view.d.ts +4 -6
- package/dist/types/components/sqm-qr-code/sqm-qr-code.d.ts +11 -0
- package/dist/types/components.d.ts +22 -0
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/sqm-qr-code-view-06666132.js +0 -94
- package/dist/esm/sqm-qr-code-view-15fe1127.js +0 -92
- package/dist/esm-es5/sqm-qr-code-view-15fe1127.js +0 -1
- package/dist/mint-components/p-29a1fdeb.system.js +0 -1
- package/dist/mint-components/p-2d76eb85.system.entry.js +0 -1
- package/dist/mint-components/p-68d5ffd6.js +0 -1
- package/dist/mint-components/p-b4ff7f20.entry.js +0 -17
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as t}from"./p-f708da7b.js";import{c as e}from"./p-cef45012.js";import{E as a}from"./p-9acb5038.js";const i=e({DialogContainer:{maxWidth:"390px !important"},Container:{width:"100%",display:"flex",flexDirection:"row",gap:"var(--sl-spacing-small)"},TextContainer:{display:"flex",gap:"var(--sl-spacing-medium)",flexDirection:"column",alignItems:"center"},ButtonContainer:{display:"flex",gap:"var(--sl-spacing-medium)"},FooterContainer:{textAlign:"left",display:"flex",flexDirection:"column",gap:"var(--sl-spacing-medium)"},CodeContainer:{display:"flex",width:"100%",alignItems:"center",justifyContent:"center"},Code:{width:"100%",height:"100%",maxWidth:"335px"},TextButton:{"&::part(base)":{color:"var(--sl-color-gray-600)"}},LoadingSkeleton:{"&::part(indicator)":{borderRadius:"0px !important"}}}),n=i.toString();function l({error:e,qrLink:l,titleText:r,downloadCodeText:s,printCodeText:o,errorHeaderText:d,errorDescriptionText:p,createDownloadable:c,createPrintable:x,hideTitle:m,alignment:f,loading:g}){const h="left"===f?"flex-start":"right"===f?"flex-end":"center",u=((e,n,l)=>e?t(a,{loadingErrorAlertDescription:d,loadingErrorAlertHeader:p}):l?t("sl-skeleton",{className:i.classes.LoadingSkeleton,effect:"sheen",style:{width:"100px",height:"100px",borderRadius:"0px !important"}}):n?t("svg",{width:"100",height:"100"},t("image",{href:n,width:"100",height:"100"})):null)(e,l,g);return t("div",{class:i.classes.Container,style:{justifyContent:h},part:"sqm-base"},t("style",null,"\n :host{\n display: flex;\n width: 100%;\n }\n @media (max-width: 499px) {\n :host{\n display: block;\n }\n\n }"),t("style",null,n),t("div",{class:i.classes.TextContainer,style:{alignItems:h}},!m&&t("span",{part:"sqm-title"},r),u,t("div",{class:i.classes.ButtonContainer},t("sl-button",{size:"small",exportparts:"base: defaultbutton-base",type:"default",onClick:c},s),t("sl-button",{size:"small",exportparts:"base: textbutton-base",type:"text",onClick:x,class:i.classes.TextButton},o))))}export{l as Q}
|
|
@@ -3,6 +3,10 @@ declare const _default: {
|
|
|
3
3
|
};
|
|
4
4
|
export default _default;
|
|
5
5
|
export declare const Default: () => any;
|
|
6
|
-
export declare const
|
|
6
|
+
export declare const HideTitle: () => any;
|
|
7
|
+
export declare const LeftAlign: () => any;
|
|
8
|
+
export declare const CenterAlign: () => any;
|
|
9
|
+
export declare const RightAlign: () => any;
|
|
10
|
+
export declare const Loading: () => any;
|
|
7
11
|
export declare const Error: () => any;
|
|
8
12
|
export declare const DownloadError: () => any;
|
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
export interface QRCodeViewProps {
|
|
2
|
-
dialogIsOpen: boolean;
|
|
3
2
|
error: boolean;
|
|
4
|
-
viewError: boolean;
|
|
5
|
-
showDialog: () => void;
|
|
6
|
-
hideDialog: () => void;
|
|
7
3
|
qrLink: string;
|
|
8
4
|
createDownloadable: () => void;
|
|
9
5
|
titleText?: string;
|
|
10
|
-
|
|
6
|
+
hideTitle?: boolean;
|
|
7
|
+
alignment?: "left" | "center" | "right";
|
|
11
8
|
downloadCodeText?: string;
|
|
12
9
|
printCodeText?: string;
|
|
13
10
|
errorHeaderText?: string;
|
|
14
11
|
errorDescriptionText?: string;
|
|
15
12
|
createPrintable: () => void;
|
|
13
|
+
loading: boolean;
|
|
16
14
|
}
|
|
17
|
-
export declare function QrCodeView({
|
|
15
|
+
export declare function QrCodeView({ error, qrLink, titleText, downloadCodeText, printCodeText, errorHeaderText, errorDescriptionText, createDownloadable, createPrintable, hideTitle, alignment, loading, }: QRCodeViewProps): any;
|
|
@@ -30,6 +30,17 @@ export declare class QrCode {
|
|
|
30
30
|
* @uiName Description for error banner
|
|
31
31
|
*/
|
|
32
32
|
errorDescriptionText?: string;
|
|
33
|
+
/**
|
|
34
|
+
* @uiName Hide title
|
|
35
|
+
*/
|
|
36
|
+
hideTitle?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* @uiName QR code alignment
|
|
39
|
+
* @uiType string
|
|
40
|
+
* @uiEnum ["left", "center", "right"]
|
|
41
|
+
* @uiEnumNames ["Left", "Center", "Right"]
|
|
42
|
+
*/
|
|
43
|
+
alignment?: "left" | "center" | "right";
|
|
33
44
|
/**
|
|
34
45
|
* @undocumented
|
|
35
46
|
* @uiType object
|
|
@@ -2943,6 +2943,13 @@ export namespace Components {
|
|
|
2943
2943
|
interface SqmProgramMenu {
|
|
2944
2944
|
}
|
|
2945
2945
|
interface SqmQrCode {
|
|
2946
|
+
/**
|
|
2947
|
+
* @uiName QR code alignment
|
|
2948
|
+
* @uiType string
|
|
2949
|
+
* @uiEnum ["left", "center", "right"]
|
|
2950
|
+
* @uiEnumNames ["Left", "Center", "Right"]
|
|
2951
|
+
*/
|
|
2952
|
+
"alignment"?: "left" | "center" | "right";
|
|
2946
2953
|
/**
|
|
2947
2954
|
* @undocumented
|
|
2948
2955
|
* @uiType object
|
|
@@ -2960,6 +2967,10 @@ export namespace Components {
|
|
|
2960
2967
|
* @uiName Header for error banner
|
|
2961
2968
|
*/
|
|
2962
2969
|
"errorHeaderText"?: string;
|
|
2970
|
+
/**
|
|
2971
|
+
* @uiName Hide title
|
|
2972
|
+
*/
|
|
2973
|
+
"hideTitle"?: boolean;
|
|
2963
2974
|
/**
|
|
2964
2975
|
* @uiName Print QR code text
|
|
2965
2976
|
*/
|
|
@@ -9607,6 +9618,13 @@ declare namespace LocalJSX {
|
|
|
9607
9618
|
interface SqmProgramMenu {
|
|
9608
9619
|
}
|
|
9609
9620
|
interface SqmQrCode {
|
|
9621
|
+
/**
|
|
9622
|
+
* @uiName QR code alignment
|
|
9623
|
+
* @uiType string
|
|
9624
|
+
* @uiEnum ["left", "center", "right"]
|
|
9625
|
+
* @uiEnumNames ["Left", "Center", "Right"]
|
|
9626
|
+
*/
|
|
9627
|
+
"alignment"?: "left" | "center" | "right";
|
|
9610
9628
|
/**
|
|
9611
9629
|
* @undocumented
|
|
9612
9630
|
* @uiType object
|
|
@@ -9624,6 +9642,10 @@ declare namespace LocalJSX {
|
|
|
9624
9642
|
* @uiName Header for error banner
|
|
9625
9643
|
*/
|
|
9626
9644
|
"errorHeaderText"?: string;
|
|
9645
|
+
/**
|
|
9646
|
+
* @uiName Hide title
|
|
9647
|
+
*/
|
|
9648
|
+
"hideTitle"?: boolean;
|
|
9627
9649
|
/**
|
|
9628
9650
|
* @uiName Print QR code text
|
|
9629
9651
|
*/
|
package/docs/docs.docx
CHANGED
|
Binary file
|