@saasquatch/mint-components 1.15.0-5 → 1.15.0-7
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/{ShadowViewAddon-3f11bc68.js → ShadowViewAddon-e666dc8b.js} +197 -213
- package/dist/cjs/{copy-text-view-c85acaaa.js → copy-text-view-7441206d.js} +53 -38
- package/dist/cjs/{global-261393c6.js → global-124aec2c.js} +21 -9
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/mint-components.cjs.js +2 -2
- package/dist/cjs/sqm-banking-info-form_17.cjs.entry.js +2 -2
- package/dist/cjs/sqm-big-stat_41.cjs.entry.js +59 -6
- package/dist/cjs/sqm-email-verification.cjs.entry.js +1 -1
- package/dist/cjs/sqm-empty_4.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-invoice-table-view-8b950046.js → sqm-invoice-table-view-f369b0a6.js} +1 -1
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +1 -1
- package/dist/cjs/sqm-pagination_3.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-email-verification-view-8d5b23f3.js → sqm-portal-email-verification-view-f5ce25cc.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-profile-view-fcb3ea3f.js → sqm-portal-profile-view-07d13061.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +2 -2
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +1 -1
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +1 -1
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +19 -6
- package/dist/collection/components/sqm-coupon-code/sqm-coupon-code.js +1 -1
- package/dist/collection/components/sqm-logout-current-user/sqm-logout-current-user.js +1 -1
- package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step-view.js +6 -2
- package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step.js +77 -2
- package/dist/collection/components/sqm-referral-code/sqm-referral-code.js +1 -1
- package/dist/collection/components/sqm-share-button/sqm-share-button.js +1 -1
- package/dist/collection/components/sqm-share-code/sqm-share-code.js +139 -1
- package/dist/collection/components/sqm-share-link/ShareLink.stories.js +12 -0
- package/dist/collection/components/sqm-share-link/sqm-share-link.js +138 -3
- package/dist/collection/components/sqm-task-card/DetailsView.js +1 -1
- package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +139 -155
- package/dist/collection/components/sqm-task-card/sqm-task-card.js +146 -0
- package/dist/collection/components/sqm-task-card/useTaskCard.js +10 -0
- package/dist/collection/components/views/copy-text-view.js +53 -38
- package/dist/collection/global/styles.js +21 -9
- package/dist/collection/global/styles.ts +21 -9
- package/dist/esm/{ShadowViewAddon-f5791215.js → ShadowViewAddon-7c10e0ee.js} +197 -213
- package/dist/esm/{copy-text-view-782137ba.js → copy-text-view-717050d5.js} +53 -38
- package/dist/esm/{global-7b65dcb8.js → global-6dc825bc.js} +21 -9
- package/dist/esm/loader.js +2 -2
- package/dist/esm/mint-components.js +2 -2
- package/dist/esm/sqm-banking-info-form_17.entry.js +2 -2
- package/dist/esm/sqm-big-stat_41.entry.js +59 -6
- package/dist/esm/sqm-email-verification.entry.js +1 -1
- package/dist/esm/sqm-empty_4.entry.js +1 -1
- package/dist/esm/{sqm-invoice-table-view-0f0a7386.js → sqm-invoice-table-view-1bd8afaa.js} +1 -1
- package/dist/esm/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm/sqm-pagination_3.entry.js +2 -2
- package/dist/esm/{sqm-portal-email-verification-view-3bd4f1d9.js → sqm-portal-email-verification-view-d96d6c43.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +2 -2
- package/dist/esm/{sqm-portal-profile-view-3a751a15.js → sqm-portal-profile-view-4ce1c7c3.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +2 -2
- package/dist/esm/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm/sqm-stencilbook.entry.js +19 -6
- package/dist/esm-es5/ShadowViewAddon-7c10e0ee.js +1 -0
- package/dist/esm-es5/copy-text-view-717050d5.js +1 -0
- package/dist/esm-es5/{global-7b65dcb8.js → global-6dc825bc.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/sqm-banking-info-form_17.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_41.entry.js +1 -1
- package/dist/esm-es5/sqm-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
- package/dist/esm-es5/{sqm-invoice-table-view-0f0a7386.js → sqm-invoice-table-view-1bd8afaa.js} +1 -1
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-3bd4f1d9.js → sqm-portal-email-verification-view-d96d6c43.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-3a751a15.js → sqm-portal-profile-view-4ce1c7c3.js} +1 -1
- package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/mint-components/global/styles.ts +21 -9
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/{p-aa3c81d3.system.js → p-11519322.system.js} +1 -1
- package/dist/mint-components/{p-c2ab40ae.system.entry.js → p-11542862.system.entry.js} +1 -1
- package/dist/mint-components/{p-8f603753.system.entry.js → p-208d8d75.system.entry.js} +1 -1
- package/dist/mint-components/{p-a4eb4b81.entry.js → p-2c07df76.entry.js} +1 -1
- package/dist/mint-components/{p-7127a230.js → p-3a49811c.js} +1 -1
- package/dist/mint-components/{p-fbfbbbd2.system.js → p-44a82cf3.system.js} +1 -1
- package/dist/mint-components/p-4874193a.system.js +1 -0
- package/dist/mint-components/{p-ebdf906a.entry.js → p-49deb225.entry.js} +1 -1
- package/dist/mint-components/{p-4b626c19.entry.js → p-4dbe2d08.entry.js} +1 -1
- package/dist/mint-components/{p-4ae5ac59.entry.js → p-51495bc3.entry.js} +1 -1
- package/dist/mint-components/{p-c0b52238.entry.js → p-619c2aa3.entry.js} +1 -1
- package/dist/mint-components/{p-c53b8fe7.entry.js → p-6f34c2c2.entry.js} +2 -2
- package/dist/mint-components/{p-5c2d9a52.entry.js → p-734695a0.entry.js} +1 -1
- package/dist/mint-components/{p-e4fd9966.entry.js → p-7f1e10d3.entry.js} +2 -2
- package/dist/mint-components/{p-383d8c5a.system.entry.js → p-837dbf90.system.entry.js} +1 -1
- package/dist/mint-components/p-8c12078e.js +394 -0
- package/dist/mint-components/{p-2e4129e0.system.entry.js → p-90421929.system.entry.js} +1 -1
- package/dist/mint-components/{p-10ed0483.system.entry.js → p-9209a016.system.entry.js} +1 -1
- package/dist/mint-components/{p-646cfbd5.system.js → p-93fed35b.system.js} +1 -1
- package/dist/mint-components/{p-05255c61.system.js → p-95ae4ab9.system.js} +1 -1
- package/dist/mint-components/{p-fa630b25.system.entry.js → p-a37541ae.system.entry.js} +1 -1
- package/dist/mint-components/{p-32d5cbc1.js → p-abefb7cc.js} +1 -1
- package/dist/mint-components/{p-7e8bf5cb.system.entry.js → p-ad985d37.system.entry.js} +1 -1
- package/dist/mint-components/{p-c07551c4.system.entry.js → p-bb3f1257.system.entry.js} +1 -1
- package/dist/mint-components/p-bdbbc673.system.entry.js +1 -0
- package/dist/mint-components/{p-15d20bf9.entry.js → p-c0d839d0.entry.js} +11 -11
- package/dist/mint-components/p-c3680c02.js +1 -0
- package/dist/mint-components/{p-5c0576c0.system.entry.js → p-c6841ab8.system.entry.js} +1 -1
- package/dist/mint-components/{p-f25f3d2a.system.entry.js → p-cd63a965.system.entry.js} +1 -1
- package/dist/mint-components/{p-cde752fa.js → p-cf8677ea.js} +1 -1
- package/dist/mint-components/{p-22f374db.entry.js → p-d3e5704c.entry.js} +1 -1
- package/dist/mint-components/p-d8cf46ba.system.js +1 -0
- package/dist/mint-components/{p-ae473175.js → p-e01fe915.js} +12 -12
- package/dist/mint-components/{p-9dd8c93b.system.js → p-ed11966d.system.js} +1 -1
- package/dist/mint-components/{p-ec7d2a85.entry.js → p-eda5e82c.entry.js} +1 -1
- package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step-view.d.ts +3 -0
- package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step.d.ts +19 -2
- package/dist/types/components/sqm-share-code/sqm-share-code.d.ts +34 -0
- package/dist/types/components/sqm-share-link/ShareLink.stories.d.ts +1 -0
- package/dist/types/components/sqm-share-link/sqm-share-link.d.ts +34 -1
- package/dist/types/components/sqm-task-card/sqm-task-card-view.d.ts +5 -0
- package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +32 -0
- package/dist/types/components/sqm-task-card/useTaskCard.d.ts +9 -0
- package/dist/types/components/views/copy-text-view.d.ts +5 -0
- package/dist/types/components.d.ts +236 -4
- package/dist/types/global/styles.d.ts +1 -1
- 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/esm-es5/ShadowViewAddon-f5791215.js +0 -1
- package/dist/esm-es5/copy-text-view-782137ba.js +0 -1
- package/dist/mint-components/p-31015791.js +0 -1
- package/dist/mint-components/p-3708a40b.system.js +0 -1
- package/dist/mint-components/p-3b90e01b.system.js +0 -1
- package/dist/mint-components/p-97ccee03.system.entry.js +0 -1
- package/dist/mint-components/p-acf93efa.js +0 -394
- package/dist/types/global/android.d.ts +0 -7
- package/dist/types/global/demo.d.ts +0 -2
- package/dist/types/stories/features.d.ts +0 -4
- package/dist/types/stories/templates.d.ts +0 -4
|
@@ -124,6 +124,14 @@ export class TaskCard {
|
|
|
124
124
|
* @uiGroup Button
|
|
125
125
|
*/
|
|
126
126
|
this.hideButton = false;
|
|
127
|
+
/**
|
|
128
|
+
* @uiName Button Style
|
|
129
|
+
* @uiType string
|
|
130
|
+
* @uiEnum ["primary", "secondary"]
|
|
131
|
+
* @uiEnumNames ["Primary", "Secondary"]
|
|
132
|
+
* @uiGroup Style
|
|
133
|
+
*/
|
|
134
|
+
this.buttonStyle = "primary";
|
|
127
135
|
withHooks(this);
|
|
128
136
|
}
|
|
129
137
|
disconnectedCallback() { }
|
|
@@ -135,6 +143,7 @@ export class TaskCard {
|
|
|
135
143
|
const { states, callbacks } = isDemo()
|
|
136
144
|
? useTaskCardDemo(this)
|
|
137
145
|
: useTaskCard(this);
|
|
146
|
+
console.log("button style from controller", this.buttonStyle);
|
|
138
147
|
return (h(TaskCardView, { callbacks: callbacks, states: {
|
|
139
148
|
loading,
|
|
140
149
|
loadingEvent: states.loadingEvent,
|
|
@@ -733,6 +742,143 @@ export class TaskCard {
|
|
|
733
742
|
"reflect": false,
|
|
734
743
|
"defaultValue": "false"
|
|
735
744
|
},
|
|
745
|
+
"backgroundColor": {
|
|
746
|
+
"type": "string",
|
|
747
|
+
"mutable": false,
|
|
748
|
+
"complexType": {
|
|
749
|
+
"original": "string",
|
|
750
|
+
"resolved": "string",
|
|
751
|
+
"references": {}
|
|
752
|
+
},
|
|
753
|
+
"required": false,
|
|
754
|
+
"optional": true,
|
|
755
|
+
"docs": {
|
|
756
|
+
"tags": [{
|
|
757
|
+
"text": "Card Background color",
|
|
758
|
+
"name": "uiName"
|
|
759
|
+
}, {
|
|
760
|
+
"text": "color",
|
|
761
|
+
"name": "uiWidget"
|
|
762
|
+
}, {
|
|
763
|
+
"text": "Style",
|
|
764
|
+
"name": "uiGroup"
|
|
765
|
+
}],
|
|
766
|
+
"text": ""
|
|
767
|
+
},
|
|
768
|
+
"attribute": "background-color",
|
|
769
|
+
"reflect": false
|
|
770
|
+
},
|
|
771
|
+
"textColor": {
|
|
772
|
+
"type": "string",
|
|
773
|
+
"mutable": false,
|
|
774
|
+
"complexType": {
|
|
775
|
+
"original": "string",
|
|
776
|
+
"resolved": "string",
|
|
777
|
+
"references": {}
|
|
778
|
+
},
|
|
779
|
+
"required": false,
|
|
780
|
+
"optional": true,
|
|
781
|
+
"docs": {
|
|
782
|
+
"tags": [{
|
|
783
|
+
"text": "Text color",
|
|
784
|
+
"name": "uiName"
|
|
785
|
+
}, {
|
|
786
|
+
"text": "color",
|
|
787
|
+
"name": "uiWidget"
|
|
788
|
+
}, {
|
|
789
|
+
"text": "Style",
|
|
790
|
+
"name": "uiGroup"
|
|
791
|
+
}],
|
|
792
|
+
"text": ""
|
|
793
|
+
},
|
|
794
|
+
"attribute": "text-color",
|
|
795
|
+
"reflect": false
|
|
796
|
+
},
|
|
797
|
+
"borderColor": {
|
|
798
|
+
"type": "string",
|
|
799
|
+
"mutable": false,
|
|
800
|
+
"complexType": {
|
|
801
|
+
"original": "string",
|
|
802
|
+
"resolved": "string",
|
|
803
|
+
"references": {}
|
|
804
|
+
},
|
|
805
|
+
"required": false,
|
|
806
|
+
"optional": true,
|
|
807
|
+
"docs": {
|
|
808
|
+
"tags": [{
|
|
809
|
+
"text": "Border color",
|
|
810
|
+
"name": "uiName"
|
|
811
|
+
}, {
|
|
812
|
+
"text": "color",
|
|
813
|
+
"name": "uiWidget"
|
|
814
|
+
}, {
|
|
815
|
+
"text": "Style",
|
|
816
|
+
"name": "uiGroup"
|
|
817
|
+
}],
|
|
818
|
+
"text": ""
|
|
819
|
+
},
|
|
820
|
+
"attribute": "border-color",
|
|
821
|
+
"reflect": false
|
|
822
|
+
},
|
|
823
|
+
"borderRadius": {
|
|
824
|
+
"type": "number",
|
|
825
|
+
"mutable": false,
|
|
826
|
+
"complexType": {
|
|
827
|
+
"original": "number",
|
|
828
|
+
"resolved": "number",
|
|
829
|
+
"references": {}
|
|
830
|
+
},
|
|
831
|
+
"required": false,
|
|
832
|
+
"optional": true,
|
|
833
|
+
"docs": {
|
|
834
|
+
"tags": [{
|
|
835
|
+
"text": "Border radius",
|
|
836
|
+
"name": "uiName"
|
|
837
|
+
}, {
|
|
838
|
+
"text": "number",
|
|
839
|
+
"name": "uiType"
|
|
840
|
+
}, {
|
|
841
|
+
"text": "Style",
|
|
842
|
+
"name": "uiGroup"
|
|
843
|
+
}],
|
|
844
|
+
"text": ""
|
|
845
|
+
},
|
|
846
|
+
"attribute": "border-radius",
|
|
847
|
+
"reflect": false
|
|
848
|
+
},
|
|
849
|
+
"buttonStyle": {
|
|
850
|
+
"type": "string",
|
|
851
|
+
"mutable": false,
|
|
852
|
+
"complexType": {
|
|
853
|
+
"original": "\"primary\" | \"secondary\"",
|
|
854
|
+
"resolved": "\"primary\" | \"secondary\"",
|
|
855
|
+
"references": {}
|
|
856
|
+
},
|
|
857
|
+
"required": false,
|
|
858
|
+
"optional": true,
|
|
859
|
+
"docs": {
|
|
860
|
+
"tags": [{
|
|
861
|
+
"text": "Button Style",
|
|
862
|
+
"name": "uiName"
|
|
863
|
+
}, {
|
|
864
|
+
"text": "string",
|
|
865
|
+
"name": "uiType"
|
|
866
|
+
}, {
|
|
867
|
+
"text": "[\"primary\", \"secondary\"]",
|
|
868
|
+
"name": "uiEnum"
|
|
869
|
+
}, {
|
|
870
|
+
"text": "[\"Primary\", \"Secondary\"]",
|
|
871
|
+
"name": "uiEnumNames"
|
|
872
|
+
}, {
|
|
873
|
+
"text": "Style",
|
|
874
|
+
"name": "uiGroup"
|
|
875
|
+
}],
|
|
876
|
+
"text": ""
|
|
877
|
+
},
|
|
878
|
+
"attribute": "button-style",
|
|
879
|
+
"reflect": false,
|
|
880
|
+
"defaultValue": "\"primary\""
|
|
881
|
+
},
|
|
736
882
|
"demoData": {
|
|
737
883
|
"type": "unknown",
|
|
738
884
|
"mutable": false,
|
|
@@ -36,8 +36,18 @@ export function useTaskCard(props) {
|
|
|
36
36
|
function onClick() {
|
|
37
37
|
props.eventKey ? sendEvent(props.eventKey) : openLink();
|
|
38
38
|
}
|
|
39
|
+
const styles = {
|
|
40
|
+
card: {
|
|
41
|
+
backgroundColor: props.backgroundColor,
|
|
42
|
+
textColor: props.textColor,
|
|
43
|
+
borderColor: props.borderColor,
|
|
44
|
+
borderRadius: props.borderRadius,
|
|
45
|
+
buttonStyle: props.buttonStyle,
|
|
46
|
+
},
|
|
47
|
+
};
|
|
39
48
|
return {
|
|
40
49
|
states: { loadingEvent, locale },
|
|
50
|
+
styles,
|
|
41
51
|
callbacks: { sendEvent, onClick },
|
|
42
52
|
};
|
|
43
53
|
}
|
|
@@ -1,41 +1,6 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import { HostBlock } from "../../global/mixins";
|
|
3
3
|
import { createStyleSheet } from "../../styling/JSS";
|
|
4
|
-
const style = {
|
|
5
|
-
HostBlock: HostBlock,
|
|
6
|
-
inputStyle: {
|
|
7
|
-
"&::part(input)": { textOverflow: "ellipsis", width: "100%" },
|
|
8
|
-
"&::part(base)": { cursor: "pointer", overflow: "visible" },
|
|
9
|
-
width: "100%",
|
|
10
|
-
},
|
|
11
|
-
inputErrorStyle: {
|
|
12
|
-
"&::part(base)": {
|
|
13
|
-
border: "2px solid red",
|
|
14
|
-
},
|
|
15
|
-
},
|
|
16
|
-
ContainerDiv: {
|
|
17
|
-
display: "flex",
|
|
18
|
-
alignItems: "flex-start",
|
|
19
|
-
flexDirection: "column",
|
|
20
|
-
justifyContent: "center",
|
|
21
|
-
gap: "var(--sl-spacing-x-small)",
|
|
22
|
-
width: "100%",
|
|
23
|
-
},
|
|
24
|
-
containerStyle: {
|
|
25
|
-
display: "flex",
|
|
26
|
-
alignItems: "center",
|
|
27
|
-
gap: "var(--sl-spacing-x-small)",
|
|
28
|
-
width: "100%",
|
|
29
|
-
},
|
|
30
|
-
errorTextStyle: {
|
|
31
|
-
margin: "0",
|
|
32
|
-
color: "var(--sl-color-danger-500)",
|
|
33
|
-
},
|
|
34
|
-
notificationTextStyle: {
|
|
35
|
-
margin: "0",
|
|
36
|
-
color: "var(--sl-color-neutral-500)",
|
|
37
|
-
},
|
|
38
|
-
};
|
|
39
4
|
const vanillaStyle = `
|
|
40
5
|
:host{
|
|
41
6
|
display: block;
|
|
@@ -58,10 +23,60 @@ const disabledStyles = `
|
|
|
58
23
|
cursor: default;
|
|
59
24
|
}
|
|
60
25
|
`;
|
|
61
|
-
const sheet = createStyleSheet(style);
|
|
62
|
-
const styleString = sheet.toString();
|
|
63
26
|
export function CopyTextView(props) {
|
|
64
27
|
const { buttonStyle = "icon" } = props;
|
|
28
|
+
const style = {
|
|
29
|
+
HostBlock: HostBlock,
|
|
30
|
+
inputStyle: {
|
|
31
|
+
"&::part(input)": {
|
|
32
|
+
textOverflow: "ellipsis",
|
|
33
|
+
width: "100%",
|
|
34
|
+
color: props.textColor || "var(--sqm-text)",
|
|
35
|
+
},
|
|
36
|
+
"&::part(base)": {
|
|
37
|
+
cursor: "pointer",
|
|
38
|
+
overflow: "visible",
|
|
39
|
+
borderRadius: props.borderRadius || "var(--sl-border-radius-medium)",
|
|
40
|
+
background: props.backgroundColor || "var(--sl-color-white)",
|
|
41
|
+
border: `1px solid ${props.borderColor || "transparent"}`,
|
|
42
|
+
},
|
|
43
|
+
width: "100%",
|
|
44
|
+
},
|
|
45
|
+
icon: {
|
|
46
|
+
"&::part(base)": {
|
|
47
|
+
color: props.textColor || "var(--sqm-text)",
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
inputErrorStyle: {
|
|
51
|
+
"&::part(base)": {
|
|
52
|
+
border: "2px solid red",
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
ContainerDiv: {
|
|
56
|
+
display: "flex",
|
|
57
|
+
alignItems: "flex-start",
|
|
58
|
+
flexDirection: "column",
|
|
59
|
+
justifyContent: "center",
|
|
60
|
+
gap: "var(--sl-spacing-x-small)",
|
|
61
|
+
width: "100%",
|
|
62
|
+
},
|
|
63
|
+
containerStyle: {
|
|
64
|
+
display: "flex",
|
|
65
|
+
alignItems: "center",
|
|
66
|
+
gap: "var(--sl-spacing-x-small)",
|
|
67
|
+
width: "100%",
|
|
68
|
+
},
|
|
69
|
+
errorTextStyle: {
|
|
70
|
+
margin: "0",
|
|
71
|
+
color: "var(--sl-color-danger-500)",
|
|
72
|
+
},
|
|
73
|
+
notificationTextStyle: {
|
|
74
|
+
margin: "0",
|
|
75
|
+
color: "var(--sl-color-neutral-500)",
|
|
76
|
+
},
|
|
77
|
+
};
|
|
78
|
+
const sheet = createStyleSheet(style);
|
|
79
|
+
const styleString = sheet.toString();
|
|
65
80
|
const error = !props.loading && props.error;
|
|
66
81
|
const inputText = error ? props.inputPlaceholderText : props.copyString;
|
|
67
82
|
const disabled = error || props.loading || props.disabled;
|
|
@@ -70,7 +85,7 @@ export function CopyTextView(props) {
|
|
|
70
85
|
: props.buttonStyle === "button-outside"
|
|
71
86
|
? "top"
|
|
72
87
|
: "top-end";
|
|
73
|
-
const copyButton = (h("sl-tooltip", { trigger: "manual", content: props.tooltiptext, placement: tooltipPlacement, disabled: props.disabled, open: props.open, skidding: props.buttonStyle === "icon" ? -5 : 0, slot: "suffix" }, buttonStyle === "icon" ? (h("sl-icon-button", { exportparts: "base: icon-button-base", onClick: () => { var _a; return (_a = props.onClick) === null || _a === void 0 ? void 0 : _a.call(props); }, name: "files", disabled: disabled })) : (h("sl-button", { exportparts:
|
|
88
|
+
const copyButton = (h("sl-tooltip", { trigger: "manual", content: props.tooltiptext, placement: tooltipPlacement, disabled: props.disabled, open: props.open, skidding: props.buttonStyle === "icon" ? -5 : 0, slot: "suffix" }, buttonStyle === "icon" ? (h("sl-icon-button", { class: sheet.classes.icon, exportparts: "base: icon-button-base", onClick: () => { var _a; return (_a = props.onClick) === null || _a === void 0 ? void 0 : _a.call(props); }, name: "files", disabled: disabled })) : (h("sl-button", { exportparts: `base: ${props.buttonType === "primary" ? "primary" : "secondary"}button-base`, onClick: () => { var _a; return (_a = props.onClick) === null || _a === void 0 ? void 0 : _a.call(props); }, size: "medium", style: { width: `${buttonStyle === "button-below" && "100%"}` }, disabled: disabled, type: "primary" }, props.copyButtonLabel || "Copy"))));
|
|
74
89
|
return (h("div", { class: sheet.classes.ContainerDiv },
|
|
75
90
|
h("style", { type: "text/css" },
|
|
76
91
|
styleString,
|
|
@@ -590,7 +590,7 @@ html {
|
|
|
590
590
|
--sqm-text-subdued: var(--sl-color-neutral-500);
|
|
591
591
|
*/
|
|
592
592
|
|
|
593
|
-
--sqm-text:
|
|
593
|
+
--sqm-text: white;
|
|
594
594
|
--sqm-text-subdued: var(--sl-color-neutral-500);
|
|
595
595
|
/*
|
|
596
596
|
--sqm-primary-button-background: var(--sl-color-primary-500);
|
|
@@ -600,18 +600,18 @@ html {
|
|
|
600
600
|
--sqm-primary-button-radius: var(--sl-border-radius-large);
|
|
601
601
|
*/
|
|
602
602
|
|
|
603
|
-
--sqm-primary-button-background:
|
|
604
|
-
--sqm-primary-button-background-hover:
|
|
605
|
-
--sqm-primary-button-color:
|
|
603
|
+
--sqm-primary-button-background: #1ed760;
|
|
604
|
+
--sqm-primary-button-background-hover: #1DB954;
|
|
605
|
+
--sqm-primary-button-color: #121212;
|
|
606
606
|
--sqm-primary-button-color-border: transparent;
|
|
607
607
|
--sqm-primary-button-radius: 30px;
|
|
608
608
|
|
|
609
609
|
|
|
610
|
-
--sqm-secondary-button-background:
|
|
611
|
-
--sqm-secondary-button-background-hover:
|
|
612
|
-
--sqm-secondary-button-color:
|
|
613
|
-
--sqm-secondary-button-color-border:
|
|
614
|
-
--sqm-secondary-button-radius:
|
|
610
|
+
--sqm-secondary-button-background: #191414; /* Spotify Black */
|
|
611
|
+
--sqm-secondary-button-background-hover: #282828; /* Slightly lighter black for hover effect */
|
|
612
|
+
--sqm-secondary-button-color: #FFFFFF; /* Spotify White for text */
|
|
613
|
+
--sqm-secondary-button-color-border: #FFFFFF; /* Spotify White for border */
|
|
614
|
+
--sqm-secondary-button-radius: 30px;
|
|
615
615
|
}
|
|
616
616
|
|
|
617
617
|
body {
|
|
@@ -741,6 +741,18 @@ sl-details::part(summary) {
|
|
|
741
741
|
box-shadow: none;
|
|
742
742
|
}
|
|
743
743
|
|
|
744
|
+
sl-input::part(input-base){
|
|
745
|
+
border: 3px dashed red !important;
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
sl-input::part(input){
|
|
749
|
+
broder: 3px dashed red !important;
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
sl-input::part(input-base){
|
|
753
|
+
border: 3px dashed red !important;
|
|
754
|
+
}
|
|
755
|
+
|
|
744
756
|
*::part(input-label), *::part(select-label), *::part(textarea-label){
|
|
745
757
|
font-size: var(--sl-input-font-size-small);
|
|
746
758
|
font-weight: var(--sl-font-weight-semibold);
|
|
@@ -591,7 +591,7 @@ html {
|
|
|
591
591
|
--sqm-text-subdued: var(--sl-color-neutral-500);
|
|
592
592
|
*/
|
|
593
593
|
|
|
594
|
-
--sqm-text:
|
|
594
|
+
--sqm-text: white;
|
|
595
595
|
--sqm-text-subdued: var(--sl-color-neutral-500);
|
|
596
596
|
/*
|
|
597
597
|
--sqm-primary-button-background: var(--sl-color-primary-500);
|
|
@@ -601,18 +601,18 @@ html {
|
|
|
601
601
|
--sqm-primary-button-radius: var(--sl-border-radius-large);
|
|
602
602
|
*/
|
|
603
603
|
|
|
604
|
-
--sqm-primary-button-background:
|
|
605
|
-
--sqm-primary-button-background-hover:
|
|
606
|
-
--sqm-primary-button-color:
|
|
604
|
+
--sqm-primary-button-background: #1ed760;
|
|
605
|
+
--sqm-primary-button-background-hover: #1DB954;
|
|
606
|
+
--sqm-primary-button-color: #121212;
|
|
607
607
|
--sqm-primary-button-color-border: transparent;
|
|
608
608
|
--sqm-primary-button-radius: 30px;
|
|
609
609
|
|
|
610
610
|
|
|
611
|
-
--sqm-secondary-button-background:
|
|
612
|
-
--sqm-secondary-button-background-hover:
|
|
613
|
-
--sqm-secondary-button-color:
|
|
614
|
-
--sqm-secondary-button-color-border:
|
|
615
|
-
--sqm-secondary-button-radius:
|
|
611
|
+
--sqm-secondary-button-background: #191414; /* Spotify Black */
|
|
612
|
+
--sqm-secondary-button-background-hover: #282828; /* Slightly lighter black for hover effect */
|
|
613
|
+
--sqm-secondary-button-color: #FFFFFF; /* Spotify White for text */
|
|
614
|
+
--sqm-secondary-button-color-border: #FFFFFF; /* Spotify White for border */
|
|
615
|
+
--sqm-secondary-button-radius: 30px;
|
|
616
616
|
}
|
|
617
617
|
|
|
618
618
|
body {
|
|
@@ -742,6 +742,18 @@ sl-details::part(summary) {
|
|
|
742
742
|
box-shadow: none;
|
|
743
743
|
}
|
|
744
744
|
|
|
745
|
+
sl-input::part(input-base){
|
|
746
|
+
border: 3px dashed red !important;
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
sl-input::part(input){
|
|
750
|
+
broder: 3px dashed red !important;
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
sl-input::part(input-base){
|
|
754
|
+
border: 3px dashed red !important;
|
|
755
|
+
}
|
|
756
|
+
|
|
745
757
|
*::part(input-label), *::part(select-label), *::part(textarea-label){
|
|
746
758
|
font-size: var(--sl-input-font-size-small);
|
|
747
759
|
font-weight: var(--sl-font-weight-semibold);
|