@saasquatch/mint-components 1.15.0-14 → 1.15.0-16

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.
Files changed (54) hide show
  1. package/dist/cjs/{ShadowViewAddon-d2ed86e8.js → ShadowViewAddon-8bab3674.js} +39 -38
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/mint-components.cjs.js +1 -1
  4. package/dist/cjs/sqm-big-stat_41.cjs.entry.js +9 -3
  5. package/dist/cjs/sqm-stencilbook.cjs.entry.js +15 -5
  6. package/dist/cjs/sqm-tabs.cjs.entry.js +9 -4
  7. package/dist/collection/components/sqm-coupon-code/sqm-coupon-code-view.js +13 -13
  8. package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +4 -0
  9. package/dist/collection/components/sqm-share-button/ShareButton.stories.js +3 -1
  10. package/dist/collection/components/sqm-share-button/sqm-share-button-view.js +23 -22
  11. package/dist/collection/components/sqm-share-button/sqm-share-button.js +53 -7
  12. package/dist/collection/components/sqm-tabs/Tabs.stories.js +7 -0
  13. package/dist/collection/components/sqm-tabs/sqm-tabs-view.js +7 -2
  14. package/dist/collection/components/sqm-tabs/sqm-tabs.js +28 -2
  15. package/dist/esm/{ShadowViewAddon-3651cb42.js → ShadowViewAddon-967f1f54.js} +39 -38
  16. package/dist/esm/loader.js +1 -1
  17. package/dist/esm/mint-components.js +1 -1
  18. package/dist/esm/sqm-big-stat_41.entry.js +9 -3
  19. package/dist/esm/sqm-stencilbook.entry.js +15 -5
  20. package/dist/esm/sqm-tabs.entry.js +9 -4
  21. package/dist/esm-es5/ShadowViewAddon-967f1f54.js +1 -0
  22. package/dist/esm-es5/loader.js +1 -1
  23. package/dist/esm-es5/mint-components.js +1 -1
  24. package/dist/esm-es5/sqm-big-stat_41.entry.js +1 -1
  25. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  26. package/dist/esm-es5/sqm-tabs.entry.js +1 -1
  27. package/dist/mint-components/mint-components.esm.js +1 -1
  28. package/dist/mint-components/p-266bbd02.system.js +1 -0
  29. package/dist/mint-components/{p-be4b9c0e.entry.js → p-44eead35.entry.js} +2 -2
  30. package/dist/mint-components/{p-a6ca754f.js → p-8f6297b0.js} +2 -2
  31. package/dist/mint-components/p-ae07ce99.system.entry.js +1 -0
  32. package/dist/mint-components/{p-60e72631.entry.js → p-b22a7b2d.entry.js} +2 -2
  33. package/dist/mint-components/p-b6de39a2.entry.js +1 -0
  34. package/dist/mint-components/p-d68003fe.system.entry.js +1 -0
  35. package/dist/mint-components/p-ee06426a.system.js +1 -1
  36. package/dist/mint-components/p-fdaa4dbb.system.entry.js +1 -0
  37. package/dist/types/components/sqm-coupon-code/sqm-coupon-code-view.d.ts +1 -0
  38. package/dist/types/components/sqm-share-button/ShareButton.stories.d.ts +1 -1
  39. package/dist/types/components/sqm-share-button/sqm-share-button-view.d.ts +2 -1
  40. package/dist/types/components/sqm-share-button/sqm-share-button.d.ts +15 -3
  41. package/dist/types/components/sqm-tabs/Tabs.stories.d.ts +1 -0
  42. package/dist/types/components/sqm-tabs/sqm-tabs-view.d.ts +1 -0
  43. package/dist/types/components/sqm-tabs/sqm-tabs.d.ts +8 -0
  44. package/dist/types/components.d.ts +44 -4
  45. package/docs/docs.docx +0 -0
  46. package/docs/raisins.json +1 -1
  47. package/grapesjs/grapesjs.js +1 -1
  48. package/package.json +1 -1
  49. package/dist/esm-es5/ShadowViewAddon-3651cb42.js +0 -1
  50. package/dist/mint-components/p-16dba1eb.system.js +0 -1
  51. package/dist/mint-components/p-2e3acbb8.system.entry.js +0 -1
  52. package/dist/mint-components/p-70c8fea5.system.entry.js +0 -1
  53. package/dist/mint-components/p-c060f770.system.entry.js +0 -1
  54. package/dist/mint-components/p-dcc81e90.entry.js +0 -1
@@ -44,13 +44,15 @@ export const TextStyleWithoutIcon = () => {
44
44
  const props = { medium: "facebook", type: "text", hideicon: true };
45
45
  return h(ShareButtonView, Object.assign({}, props), "Share");
46
46
  };
47
- export const WithCustomColors = () => {
47
+ export const WithCustomColorsAndBranding = () => {
48
48
  const props = {
49
49
  medium: "facebook",
50
50
  type: "text",
51
51
  backgroundcolor: "red",
52
52
  textcolor: "yellow",
53
53
  iconslot: "prefix",
54
+ border: "2px solid yellow",
55
+ borderradius: 30,
54
56
  };
55
57
  return h(ShareButtonView, Object.assign({}, props), "Facebook");
56
58
  };
@@ -24,15 +24,30 @@ const style = {
24
24
  };
25
25
  const sheet = createStyleSheet(style);
26
26
  const styleString = sheet.toString();
27
+ // TODO: Figure out hover and active states
28
+ // *::part(base):hover {
29
+ // border-color: ${
30
+ // props.backgroundcolor
31
+ // ? props.backgroundcolor
32
+ // : props.medium
33
+ // ? medium[props.medium].color
34
+ // : ""
35
+ // }!important;
36
+ // }
37
+ // *::part(base):focus {
38
+ // border-color: ${
39
+ // props.backgroundcolor
40
+ // ? props.backgroundcolor
41
+ // : props.medium
42
+ // ? medium[props.medium].color
43
+ // : ""
44
+ // }!important;
45
+ // }
27
46
  export function ShareButtonView(props, children) {
28
47
  const vanillaStyle = `
29
- *::part(base) {
30
- border: none;
31
- --sl-focus-ring-color-primary: ${props.backgroundcolor
32
- ? props.backgroundcolor
33
- : props.medium
34
- ? medium[props.medium].color
35
- : ""}80!important;
48
+ sl-button::part(base) {
49
+ border: ${props.border || "none"};
50
+
36
51
 
37
52
  background: ${props.backgroundcolor
38
53
  ? props.backgroundcolor
@@ -47,21 +62,7 @@ export function ShareButtonView(props, children) {
47
62
  border-radius: ${props.borderradius ? props.borderradius + "px" : ""};
48
63
  }
49
64
 
50
- *::part(base):hover {
51
- border-color: ${props.backgroundcolor
52
- ? props.backgroundcolor
53
- : props.medium
54
- ? medium[props.medium].color
55
- : ""}D1!important;
56
- }
57
65
 
58
- *::part(base):focus {
59
- border-color: ${props.backgroundcolor
60
- ? props.backgroundcolor
61
- : props.medium
62
- ? medium[props.medium].color
63
- : ""}D1!important;
64
- }
65
66
 
66
67
  *::part(label) {
67
68
  position: relative;
@@ -71,7 +72,7 @@ export function ShareButtonView(props, children) {
71
72
  return props.hide ? (h(Host, { style: { display: "none" } })) : (h("div", null,
72
73
  h("style", { type: "text/css" }, styleString),
73
74
  h("style", { type: "text/css" }, vanillaStyle),
74
- h("sl-button", { class: sheet.classes.buttonStyle, target: props.openInSameTab ? "_self" : "_blank", loading: props.loading, disabled: props.disabled, pill: props.pill, size: props.size, type: props.type, onClick: !props.isPlainLink ? props.onClick : undefined, href: props.isPlainLink ? props.messageLink : undefined, exportparts: `base: ${props.type}sharebutton-base` },
75
+ h("sl-button", { class: sheet.classes.buttonStyle, target: props.openInSameTab ? "_self" : "_blank", loading: props.loading, disabled: props.disabled, pill: props.pill, size: props.size, type: props.type, onClick: !props.isPlainLink ? props.onClick : undefined, href: props.isPlainLink ? props.messageLink : undefined, exportparts: `base: ${props.type}button-base` },
75
76
  !props.hideicon && (h("sl-icon", { slot: props.iconslot || "prefix", name: props.icon ? props.icon : medium[props.medium].icon, exportparts: "base: icon" })),
76
77
  !props.hidetext && children)));
77
78
  }
@@ -28,8 +28,8 @@ export class ShareButton {
28
28
  /**
29
29
  * @uiType string
30
30
  * @uiName Button style
31
- * @uiEnum ["primary" , "success", "info", "warning", "danger", "default", "text" ]
32
- * @uiEnumNames ["Primary", "Success", "Info", "Warning", "Danger", "Default", "Text"]
31
+ * @uiEnum ["primary", "secondary", "success", "info", "warning", "danger", "default", "text" ]
32
+ * @uiEnumNames ["Primary", "Secondary", "Success", "Info", "Warning", "Danger", "Default", "Text"]
33
33
  */
34
34
  this.type = "default";
35
35
  /**
@@ -41,11 +41,13 @@ export class ShareButton {
41
41
  this.iconslot = "prefix";
42
42
  /**
43
43
  * @uiName Hide icon
44
+ * @uiGroup Style
44
45
  * @default
45
46
  */
46
47
  this.hideicon = false;
47
48
  /**
48
49
  * @uiName Hide text
50
+ * @uiGroup Style
49
51
  * @default
50
52
  */
51
53
  this.hidetext = false;
@@ -148,6 +150,9 @@ export class ShareButton {
148
150
  "tags": [{
149
151
  "text": "Border radius",
150
152
  "name": "uiName"
153
+ }, {
154
+ "text": "Style",
155
+ "name": "uiGroup"
151
156
  }],
152
157
  "text": "Configure border radius with pixel amount"
153
158
  },
@@ -174,12 +179,38 @@ export class ShareButton {
174
179
  }, {
175
180
  "text": "color",
176
181
  "name": "format"
182
+ }, {
183
+ "text": "Style",
184
+ "name": "uiGroup"
177
185
  }],
178
186
  "text": ""
179
187
  },
180
188
  "attribute": "backgroundcolor",
181
189
  "reflect": false
182
190
  },
191
+ "border": {
192
+ "type": "string",
193
+ "mutable": false,
194
+ "complexType": {
195
+ "original": "string",
196
+ "resolved": "string",
197
+ "references": {}
198
+ },
199
+ "required": false,
200
+ "optional": true,
201
+ "docs": {
202
+ "tags": [{
203
+ "text": "Border",
204
+ "name": "uiName"
205
+ }, {
206
+ "text": "Style",
207
+ "name": "uiGroup"
208
+ }],
209
+ "text": ""
210
+ },
211
+ "attribute": "border",
212
+ "reflect": false
213
+ },
183
214
  "textcolor": {
184
215
  "type": "string",
185
216
  "mutable": false,
@@ -200,6 +231,9 @@ export class ShareButton {
200
231
  }, {
201
232
  "text": "color",
202
233
  "name": "format"
234
+ }, {
235
+ "text": "Style",
236
+ "name": "uiGroup"
203
237
  }],
204
238
  "text": ""
205
239
  },
@@ -220,6 +254,9 @@ export class ShareButton {
220
254
  "tags": [{
221
255
  "text": "Display pill",
222
256
  "name": "uiName"
257
+ }, {
258
+ "text": "Style",
259
+ "name": "uiGroup"
223
260
  }],
224
261
  "text": ""
225
262
  },
@@ -250,8 +287,8 @@ export class ShareButton {
250
287
  "type": "string",
251
288
  "mutable": false,
252
289
  "complexType": {
253
- "original": "| \"primary\"\n | \"success\"\n | \"info\"\n | \"warning\"\n | \"danger\"\n | \"default\"\n | \"text\"",
254
- "resolved": "\"danger\" | \"default\" | \"info\" | \"primary\" | \"success\" | \"text\" | \"warning\"",
290
+ "original": "| \"primary\"\n | \"secondary\"\n | \"success\"\n | \"info\"\n | \"warning\"\n | \"danger\"\n | \"default\"\n | \"text\"",
291
+ "resolved": "\"danger\" | \"default\" | \"info\" | \"primary\" | \"secondary\" | \"success\" | \"text\" | \"warning\"",
255
292
  "references": {}
256
293
  },
257
294
  "required": false,
@@ -264,10 +301,10 @@ export class ShareButton {
264
301
  "text": "Button style",
265
302
  "name": "uiName"
266
303
  }, {
267
- "text": "[\"primary\" , \"success\", \"info\", \"warning\", \"danger\", \"default\", \"text\" ]",
304
+ "text": "[\"primary\", \"secondary\", \"success\", \"info\", \"warning\", \"danger\", \"default\", \"text\" ]",
268
305
  "name": "uiEnum"
269
306
  }, {
270
- "text": "[\"Primary\", \"Success\", \"Info\", \"Warning\", \"Danger\", \"Default\", \"Text\"]",
307
+ "text": "[\"Primary\", \"Secondary\", \"Success\", \"Info\", \"Warning\", \"Danger\", \"Default\", \"Text\"]",
271
308
  "name": "uiEnumNames"
272
309
  }],
273
310
  "text": ""
@@ -299,6 +336,9 @@ export class ShareButton {
299
336
  }, {
300
337
  "text": "[\"Small\", \"Medium\", \"Large\"]",
301
338
  "name": "uiEnumNames"
339
+ }, {
340
+ "text": "Style",
341
+ "name": "uiGroup"
302
342
  }],
303
343
  "text": ""
304
344
  },
@@ -369,6 +409,9 @@ export class ShareButton {
369
409
  "tags": [{
370
410
  "text": "Hide icon",
371
411
  "name": "uiName"
412
+ }, {
413
+ "text": "Style",
414
+ "name": "uiGroup"
372
415
  }, {
373
416
  "text": undefined,
374
417
  "name": "default"
@@ -393,6 +436,9 @@ export class ShareButton {
393
436
  "tags": [{
394
437
  "text": "Hide text",
395
438
  "name": "uiName"
439
+ }, {
440
+ "text": "Style",
441
+ "name": "uiGroup"
396
442
  }, {
397
443
  "text": undefined,
398
444
  "name": "default"
@@ -490,7 +536,7 @@ export class ShareButton {
490
536
  "mutable": false,
491
537
  "complexType": {
492
538
  "original": "DemoData<ShareButtonViewProps>",
493
- "resolved": "{ loading?: boolean; icon?: string; disabled?: boolean; onClick?: () => void; medium?: \"facebook\" | \"twitter\" | \"email\" | \"direct\" | \"linkedin\" | \"sms\" | \"fbmessenger\" | \"whatsapp\" | \"linemessenger\" | \"pinterest\" | \"reminder\" | \"unknown\"; pill?: boolean; type?: \"text\" | \"primary\" | \"warning\" | \"info\" | \"success\" | \"default\" | \"danger\"; size?: \"small\" | \"medium\" | \"large\"; hideicon?: boolean; hidetext?: boolean; iconslot?: \"prefix\" | \"suffix\"; hide?: boolean; borderradius?: number; backgroundcolor?: string; textcolor?: string; messageLink?: string; openInSameTab?: boolean; isPlainLink?: boolean; }",
539
+ "resolved": "{ loading?: boolean; icon?: string; disabled?: boolean; onClick?: () => void; medium?: \"facebook\" | \"twitter\" | \"email\" | \"direct\" | \"linkedin\" | \"sms\" | \"fbmessenger\" | \"whatsapp\" | \"linemessenger\" | \"pinterest\" | \"reminder\" | \"unknown\"; pill?: boolean; type?: \"text\" | \"primary\" | \"secondary\" | \"warning\" | \"info\" | \"success\" | \"default\" | \"danger\"; size?: \"small\" | \"medium\" | \"large\"; border?: string; hideicon?: boolean; hidetext?: boolean; iconslot?: \"prefix\" | \"suffix\"; hide?: boolean; borderradius?: number; backgroundcolor?: string; textcolor?: string; messageLink?: string; openInSameTab?: boolean; isPlainLink?: boolean; }",
494
540
  "references": {
495
541
  "DemoData": {
496
542
  "location": "import",
@@ -13,6 +13,13 @@ export const SimpleTabs = () => (h("div", { style: { maxWidth: "700px", margin:
13
13
  <sqm-tab header="Advanced">This is the advanced tab</sqm-tab>
14
14
  </sqm-tabs>
15
15
  ` }));
16
+ export const CustomColor = () => (h("div", { style: { maxWidth: "700px", margin: "auto" }, innerHTML: `
17
+ <sqm-tabs text-color="red">
18
+ <sqm-tab header="General">This is the general tab</sqm-tab>
19
+ <sqm-tab header="Custom">This is the custom tab</sqm-tab>
20
+ <sqm-tab header="Advanced">This is the advanced tab</sqm-tab>
21
+ </sqm-tabs>
22
+ ` }));
16
23
  export const ManyTabs = () => (h("div", { style: { maxWidth: "700px", margin: "auto" }, innerHTML: `
17
24
  <sqm-tabs>
18
25
  <sqm-tab header="General">This is the general tab</sqm-tab>
@@ -1,5 +1,5 @@
1
1
  import { h, Host } from "@stencil/core";
2
- export const TabsView = ({ content, placement, }) => {
2
+ export const TabsView = ({ content, placement, textColor = "var(--sqm-text)", }) => {
3
3
  // Vertical padding for top & bottom placement, horizontal for left & right.
4
4
  const padding = !placement || placement === "top" || placement === "bottom"
5
5
  ? "var(--sl-spacing-x-large) 0;"
@@ -8,7 +8,12 @@ export const TabsView = ({ content, placement, }) => {
8
8
  sl-tab-panel::part(base) {
9
9
  padding: ${padding};
10
10
  }
11
+
12
+ sl-tab::part(base) {
13
+ color: ${textColor};
14
+ }
11
15
  `;
16
+ console.log("text color is ", textColor);
12
17
  return (h(Host, null,
13
18
  h("style", { type: "text/css" }, vanillaStyle),
14
19
  h("sl-tab-group", { placement: placement }, content.tabs.map((tab) => {
@@ -19,7 +24,7 @@ export const TabsView = ({ content, placement, }) => {
19
24
  h("slot", { name: slotName }))));
20
25
  }
21
26
  return [
22
- h("sl-tab", { slot: "nav", panel: slotName, id: tab.getAttribute("id") || slotName }, tab.getAttribute("header")),
27
+ h("sl-tab", { slot: "nav", panel: slotName, part: "tab", id: tab.getAttribute("id") || slotName }, tab.getAttribute("header")),
23
28
  h("sl-tab-panel", { name: slotName },
24
29
  h("slot", { name: slotName })),
25
30
  ];
@@ -19,8 +19,8 @@ export class Tabs {
19
19
  disconnectedCallback() { }
20
20
  render() {
21
21
  const { content } = useTabs();
22
- const { placement } = getProps(this);
23
- return (h(TabsView, { placement: placement, content: content },
22
+ const { placement, textColor } = getProps(this);
23
+ return (h(TabsView, { placement: placement, content: content, textColor: textColor },
24
24
  h("slot", null)));
25
25
  }
26
26
  static get is() { return "sqm-tabs"; }
@@ -54,6 +54,32 @@ export class Tabs {
54
54
  },
55
55
  "attribute": "placement",
56
56
  "reflect": false
57
+ },
58
+ "textColor": {
59
+ "type": "string",
60
+ "mutable": false,
61
+ "complexType": {
62
+ "original": "string",
63
+ "resolved": "string",
64
+ "references": {}
65
+ },
66
+ "required": false,
67
+ "optional": true,
68
+ "docs": {
69
+ "tags": [{
70
+ "text": "Text color",
71
+ "name": "uiName"
72
+ }, {
73
+ "text": "string",
74
+ "name": "uiType"
75
+ }, {
76
+ "text": "color",
77
+ "name": "uiWidget"
78
+ }],
79
+ "text": "Tab text color"
80
+ },
81
+ "attribute": "text-color",
82
+ "reflect": false
57
83
  }
58
84
  }; }
59
85
  }
@@ -38,15 +38,30 @@ const style = {
38
38
  };
39
39
  const sheet = createStyleSheet(style);
40
40
  const styleString = sheet.toString();
41
+ // TODO: Figure out hover and active states
42
+ // *::part(base):hover {
43
+ // border-color: ${
44
+ // props.backgroundcolor
45
+ // ? props.backgroundcolor
46
+ // : props.medium
47
+ // ? medium[props.medium].color
48
+ // : ""
49
+ // }!important;
50
+ // }
51
+ // *::part(base):focus {
52
+ // border-color: ${
53
+ // props.backgroundcolor
54
+ // ? props.backgroundcolor
55
+ // : props.medium
56
+ // ? medium[props.medium].color
57
+ // : ""
58
+ // }!important;
59
+ // }
41
60
  function ShareButtonView(props, children) {
42
61
  const vanillaStyle = `
43
- *::part(base) {
44
- border: none;
45
- --sl-focus-ring-color-primary: ${props.backgroundcolor
46
- ? props.backgroundcolor
47
- : props.medium
48
- ? medium[props.medium].color
49
- : ""}80!important;
62
+ sl-button::part(base) {
63
+ border: ${props.border || "none"};
64
+
50
65
 
51
66
  background: ${props.backgroundcolor
52
67
  ? props.backgroundcolor
@@ -61,21 +76,7 @@ function ShareButtonView(props, children) {
61
76
  border-radius: ${props.borderradius ? props.borderradius + "px" : ""};
62
77
  }
63
78
 
64
- *::part(base):hover {
65
- border-color: ${props.backgroundcolor
66
- ? props.backgroundcolor
67
- : props.medium
68
- ? medium[props.medium].color
69
- : ""}D1!important;
70
- }
71
79
 
72
- *::part(base):focus {
73
- border-color: ${props.backgroundcolor
74
- ? props.backgroundcolor
75
- : props.medium
76
- ? medium[props.medium].color
77
- : ""}D1!important;
78
- }
79
80
 
80
81
  *::part(label) {
81
82
  position: relative;
@@ -85,7 +86,7 @@ function ShareButtonView(props, children) {
85
86
  return props.hide ? (h(Host, { style: { display: "none" } })) : (h("div", null,
86
87
  h("style", { type: "text/css" }, styleString),
87
88
  h("style", { type: "text/css" }, vanillaStyle),
88
- h("sl-button", { class: sheet.classes.buttonStyle, target: props.openInSameTab ? "_self" : "_blank", loading: props.loading, disabled: props.disabled, pill: props.pill, size: props.size, type: props.type, onClick: !props.isPlainLink ? props.onClick : undefined, href: props.isPlainLink ? props.messageLink : undefined, exportparts: `base: ${props.type}sharebutton-base` },
89
+ h("sl-button", { class: sheet.classes.buttonStyle, target: props.openInSameTab ? "_self" : "_blank", loading: props.loading, disabled: props.disabled, pill: props.pill, size: props.size, type: props.type, onClick: !props.isPlainLink ? props.onClick : undefined, href: props.isPlainLink ? props.messageLink : undefined, exportparts: `base: ${props.type}button-base` },
89
90
  !props.hideicon && (h("sl-icon", { slot: props.iconslot || "prefix", name: props.icon ? props.icon : medium[props.medium].icon, exportparts: "base: icon" })),
90
91
  !props.hidetext && children)));
91
92
  }
@@ -4005,29 +4006,29 @@ function CardFeedView(props, children) {
4005
4006
  h("div", { class: sheet.classes.Container, part: "sqm-base" }, children)));
4006
4007
  }
4007
4008
 
4008
- const style$a = {
4009
- HostBlock: HostBlock,
4010
- couponCodeLabel: {
4011
- margin: "var(--sl-spacing-x-small) 0",
4012
- color: "var(--sqm-text-subdued)",
4013
- fontSize: "var(--sl-font-size-small)",
4014
- },
4015
- };
4016
- const vanillaStyle$6 = `
4009
+ function CouponCodeView(props) {
4010
+ const error = !props.loading && props.error;
4011
+ const style = {
4012
+ HostBlock: HostBlock,
4013
+ couponCodeLabel: {
4014
+ margin: "var(--sl-spacing-x-small) 0",
4015
+ color: props.textColor || "var(--sqm-text-subdued)",
4016
+ fontSize: "var(--sl-font-size-small)",
4017
+ },
4018
+ };
4019
+ const vanillaStyle = `
4017
4020
  :host{
4018
4021
  display: block;
4019
4022
  width: 100%;
4020
4023
  }
4021
4024
  `;
4022
- const sheet$a = createStyleSheet(style$a);
4023
- const styleString$a = sheet$a.toString();
4024
- function CouponCodeView(props) {
4025
- const error = !props.loading && props.error;
4025
+ const sheet = createStyleSheet(style);
4026
+ const styleString = sheet.toString();
4026
4027
  return (h("div", null,
4027
4028
  h("style", { type: "text/css" },
4028
- styleString$a,
4029
- vanillaStyle$6),
4030
- h("p", { class: sheet$a.classes.couponCodeLabel, style: { textAlign: props.textAlign } }, props.couponCodeLabel),
4029
+ styleString,
4030
+ vanillaStyle),
4031
+ h("p", { class: sheet.classes.couponCodeLabel, style: { textAlign: props.textAlign } }, props.couponCodeLabel),
4031
4032
  error ? (h("sqm-form-message", { type: props.errorType, exportparts: "erroralert-icon" },
4032
4033
  h("div", { part: "erroralert-text" }, props.errorText))) : (h(CopyTextView, Object.assign({}, props)))));
4033
4034
  }