@useinsider/guido 1.0.0-beta.df613dd → 1.0.0-beta.e096204

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 (49) hide show
  1. package/README.md +191 -1
  2. package/dist/@types/generic.d.ts +3 -0
  3. package/dist/components/Guido.vue.js +1 -1
  4. package/dist/components/organisms/header/LeftSlot.vue.d.ts +1 -1
  5. package/dist/components/organisms/header/LeftSlot.vue.js +8 -8
  6. package/dist/components/organisms/header/LeftSlot.vue2.js +5 -3
  7. package/dist/components/organisms/header/MiddleSlot.vue.js +7 -7
  8. package/dist/components/organisms/header/MiddleSlot.vue2.js +6 -4
  9. package/dist/components/organisms/header/RightSlot.vue.d.ts +1 -1
  10. package/dist/components/organisms/header/RightSlot.vue.js +7 -10
  11. package/dist/components/organisms/header/RightSlot.vue2.js +11 -14
  12. package/dist/components/organisms/header/version-history/RestoreButton.vue.d.ts +2 -0
  13. package/dist/components/organisms/header/version-history/RestoreButton.vue.js +19 -0
  14. package/dist/components/organisms/header/version-history/RestoreButton.vue2.js +14 -0
  15. package/dist/components/organisms/header/version-history/VersionHistory.vue.d.ts +13 -1
  16. package/dist/components/organisms/header/version-history/VersionHistory.vue.js +7 -7
  17. package/dist/components/organisms/header/version-history/VersionHistory.vue2.js +13 -10
  18. package/dist/composables/useCustomInterfaceAppearance.js +45 -9
  19. package/dist/composables/useExport.d.ts +1 -1
  20. package/dist/composables/useExport.js +35 -20
  21. package/dist/composables/useHtmlCompiler.d.ts +4 -0
  22. package/dist/composables/useHtmlCompiler.js +16 -0
  23. package/dist/composables/useStripo.js +13 -8
  24. package/dist/config/compiler/htmlCompilerRules.d.ts +2 -0
  25. package/dist/config/compiler/htmlCompilerRules.js +145 -0
  26. package/dist/config/compiler/outlookCompilerRules.d.ts +0 -0
  27. package/dist/enums/displayConditions.d.ts +2 -0
  28. package/dist/enums/displayConditions.js +80 -0
  29. package/dist/guido.css +1 -1
  30. package/dist/static/styles/base.css.js +11 -0
  31. package/dist/static/styles/components/alert-message.css.js +39 -0
  32. package/dist/static/styles/components/amp-block.css.js +18 -0
  33. package/dist/static/styles/components/base-input.css.js +47 -0
  34. package/dist/static/styles/components/button-group.css.js +54 -0
  35. package/dist/static/styles/components/button.css.js +106 -0
  36. package/dist/static/styles/components/combobox.css.js +49 -0
  37. package/dist/static/styles/components/counter.css.js +42 -0
  38. package/dist/static/styles/components/dropdown-menu.css.js +52 -0
  39. package/dist/static/styles/components/narrow-panel.css.js +38 -0
  40. package/dist/static/styles/components/switcher.css.js +11 -0
  41. package/dist/static/styles/components/tabs.css.js +97 -0
  42. package/dist/static/styles/components/tools.css.js +23 -0
  43. package/dist/static/styles/components/version-history.css.js +30 -0
  44. package/dist/static/styles/components/wide-panel.css.js +135 -0
  45. package/dist/static/styles/variables.css.js +23 -0
  46. package/dist/utils/htmlCompiler.d.ts +12 -0
  47. package/dist/utils/htmlCompiler.js +70 -0
  48. package/package.json +5 -5
  49. package/dist/static/editor.css.js +0 -232
@@ -1,30 +1,45 @@
1
1
  import { useActionsApi as l } from "./useActionsApi.js";
2
- import { useToaster as m } from "./useToaster.js";
3
- const u = () => {
4
- const a = (r, t, e) => {
5
- const n = new Blob([r], { type: e }), s = URL.createObjectURL(n), o = document.createElement("a");
6
- o.href = s, o.download = t, document.body.appendChild(o), o.click(), document.body.removeChild(o), URL.revokeObjectURL(s);
7
- }, c = (r) => {
8
- const t = /* @__PURE__ */ new Date(), e = String(t.getDate()).padStart(2, "0"), n = String(t.getMonth() + 1).padStart(2, "0"), s = t.getFullYear(), o = String(t.getHours()).padStart(2, "0"), i = String(t.getMinutes()).padStart(2, "0");
9
- return `${r}_${e}-${n}-${s}_${o}-${i}.html`;
2
+ import { useHtmlCompiler as m } from "./useHtmlCompiler.js";
3
+ import { useToaster as d } from "./useToaster.js";
4
+ const h = () => {
5
+ const a = (s, o, r) => {
6
+ const i = new Blob([s], { type: r }), t = URL.createObjectURL(i), e = document.createElement("a");
7
+ e.href = t, e.download = o, document.body.appendChild(e), e.click(), document.body.removeChild(e), URL.revokeObjectURL(t);
8
+ }, c = (s) => {
9
+ const o = /* @__PURE__ */ new Date(), r = String(o.getDate()).padStart(2, "0"), i = String(o.getMonth() + 1).padStart(2, "0"), t = o.getFullYear(), e = String(o.getHours()).padStart(2, "0"), n = String(o.getMinutes()).padStart(2, "0");
10
+ return `${s}_${r}-${i}-${t}_${e}-${n}.html`;
10
11
  };
11
- return { exportHtml: async () => {
12
- const { getCompiledEmail: r } = l(), { showToaster: t } = m();
12
+ return { exportHtml: async (s = !0) => {
13
+ const { getCompiledEmail: o } = l(), { showToaster: r } = d(), { compileHtml: i } = m();
13
14
  try {
14
- const { html: e } = await r();
15
- e ? a(e, c("HTML"), "text/html") : t({
15
+ const { html: t } = await o();
16
+ if (t) {
17
+ let e = t;
18
+ if (s) {
19
+ const n = i(t);
20
+ e = n.compiledHtml, console.debug("HTML Compilation Stats:", {
21
+ originalSize: n.stats.originalSize,
22
+ compiledSize: n.stats.compiledSize,
23
+ reduction: `${n.stats.reductionPercentage.toFixed(2)}%`,
24
+ appliedRules: n.appliedRules,
25
+ executionTime: `${n.stats.executionTime.toFixed(2)}ms`
26
+ });
27
+ }
28
+ a(e, c("HTML"), "text/html");
29
+ } else
30
+ r({
31
+ type: "error",
32
+ message: "No HTML content to download"
33
+ });
34
+ } catch (t) {
35
+ const e = t instanceof Error ? t.message : String(t);
36
+ r({
16
37
  type: "error",
17
- message: "No HTML content to download"
18
- });
19
- } catch (e) {
20
- const n = e instanceof Error ? e.message : String(e);
21
- t({
22
- type: "error",
23
- message: `Error compiling email: ${n}`
38
+ message: `Error compiling email: ${e}`
24
39
  });
25
40
  }
26
41
  } };
27
42
  };
28
43
  export {
29
- u as useExport
44
+ h as useExport
30
45
  };
@@ -0,0 +1,4 @@
1
+ import type { CompilationResult } from '@@/Types/html-compiler';
2
+ export declare const useHtmlCompiler: () => {
3
+ compileHtml: (html: string) => CompilationResult;
4
+ };
@@ -0,0 +1,16 @@
1
+ import { defaultHtmlCompilerRules as r } from "../config/compiler/htmlCompilerRules.js";
2
+ import { createHtmlCompiler as p } from "../utils/htmlCompiler.js";
3
+ const a = () => {
4
+ const e = typeof window < "u" ? window.GuidoConfig : void 0, l = (e == null ? void 0 : e.htmlCompilerRules) || [], t = [
5
+ ...!!(e != null && e.ignoreDefaultHtmlCompilerRules) ? [] : r,
6
+ ...l.map((o, m) => ({
7
+ ...o,
8
+ priority: o.priority + 1e3 + m
9
+ // Ensure additional rules run after default rules
10
+ }))
11
+ ], i = p(t);
12
+ return { compileHtml: (o) => i.compile(o) };
13
+ };
14
+ export {
15
+ a as useHtmlCompiler
16
+ };
@@ -1,10 +1,11 @@
1
1
  import { useCustomInterfaceAppearance as m } from "./useCustomInterfaceAppearance.js";
2
2
  import { useToaster as g } from "./useToaster.js";
3
- import { useStripoApi as E } from "../services/stripoApi.js";
4
- import { useEditorStore as S } from "../stores/editor.js";
5
- const _ = (c) => {
6
- const { handleError: d } = g(), { getToken: u, getCustomFonts: a } = E(), l = (e, i = []) => {
7
- const r = S(), { html: t, css: n } = e;
3
+ import { displayConditions as E } from "../enums/displayConditions.js";
4
+ import { useStripoApi as S } from "../services/stripoApi.js";
5
+ import { useEditorStore as w } from "../stores/editor.js";
6
+ const F = (c) => {
7
+ const { handleError: d } = g(), { getToken: a, getCustomFonts: u } = S(), l = (e, i = []) => {
8
+ const r = w(), { html: t, css: n } = e;
8
9
  window.UIEditor.initEditor(
9
10
  document.querySelector("#guido-editor"),
10
11
  {
@@ -17,6 +18,10 @@ const _ = (c) => {
17
18
  mobileViewButtonSelector: ".guido__view-option-selection-mobile",
18
19
  desktopViewButtonSelector: ".guido__view-option-selection-desktop",
19
20
  codeEditorButtonSelector: "#guido__code-button",
21
+ conditionsEnabled: !0,
22
+ customConditionsEnabled: !0,
23
+ conditionCategories: E,
24
+ messageSettingsEnabled: !1,
20
25
  editorFonts: {
21
26
  showDefaultStandardFonts: !0,
22
27
  showDefaultNotStandardFonts: !0,
@@ -24,7 +29,7 @@ const _ = (c) => {
24
29
  },
25
30
  async onTokenRefreshRequest(o) {
26
31
  try {
27
- const s = await u();
32
+ const s = await a();
28
33
  o(s);
29
34
  } catch (s) {
30
35
  d(s, "Failed to refresh token");
@@ -64,11 +69,11 @@ const _ = (c) => {
64
69
  });
65
70
  return { initPlugin: async (e) => {
66
71
  await p(async () => {
67
- const i = await a();
72
+ const i = await u();
68
73
  l(e, i);
69
74
  });
70
75
  } };
71
76
  };
72
77
  export {
73
- _ as useStripo
78
+ F as useStripo
74
79
  };
@@ -0,0 +1,2 @@
1
+ import type { CompilerRule } from '@@/Types/html-compiler';
2
+ export declare const defaultHtmlCompilerRules: CompilerRule[];
@@ -0,0 +1,145 @@
1
+ const a = [
2
+ {
3
+ id: "fix-url-encoding-start",
4
+ description: "Replace {%22 with %7B%22 to fix URL encoding",
5
+ type: "replace",
6
+ search: "{%22",
7
+ replacement: "%7B%22",
8
+ replaceAll: !0,
9
+ priority: 10
10
+ },
11
+ {
12
+ id: "fix-url-encoding-end",
13
+ description: "Replace %22} with %22%7D to fix URL encoding",
14
+ type: "replace",
15
+ search: "%22}",
16
+ replacement: "%22%7D",
17
+ replaceAll: !0,
18
+ priority: 10
19
+ },
20
+ {
21
+ id: "fix-tags-start",
22
+ description: "Replace %7B%7B with {{ to fix URL encoding",
23
+ type: "replace",
24
+ search: "%7B%7B",
25
+ replacement: "{{",
26
+ replaceAll: !0,
27
+ priority: 11
28
+ },
29
+ {
30
+ id: "fix-tags-end",
31
+ description: "Replace %7D%7D with }} to fix URL encoding",
32
+ type: "replace",
33
+ search: "%7D%7D",
34
+ replacement: "}}",
35
+ replaceAll: !0,
36
+ priority: 12
37
+ },
38
+ {
39
+ id: "unescape-inequality-operators-start",
40
+ description: "Replace &lt; with < to fix URL encoding",
41
+ type: "replace",
42
+ search: "&lt;",
43
+ replacement: "<",
44
+ replaceAll: !0,
45
+ priority: 13
46
+ },
47
+ {
48
+ id: "unescape-inequality-operators-end",
49
+ description: "Replace &gt; with > to fix URL encoding",
50
+ type: "replace",
51
+ search: "&gt;",
52
+ replacement: ">",
53
+ replaceAll: !0,
54
+ priority: 14
55
+ },
56
+ {
57
+ id: "remove-apty-iframe",
58
+ description: "Cleanup Apty Iframe Code",
59
+ type: "remove",
60
+ targets: [
61
+ '<iframe src="about:blank" id="letznav-iframe-script" allowtransparency="true" style="width:1px;height:1px"></iframe>',
62
+ 'src="about:blank" id="letznav-iframe-script" allowtransparency="true" style="width:1px;height:1px"></iframe>'
63
+ ],
64
+ priority: 20
65
+ },
66
+ {
67
+ id: "remove-apty-styles",
68
+ description: "Removing Apty Styles",
69
+ type: "regex",
70
+ pattern: '<styles*data-styles="apty_styles"s* type="text/css"s*>((s|.)*?)</style>',
71
+ replacement: "",
72
+ flags: "g",
73
+ priority: 21
74
+ },
75
+ {
76
+ id: "remove-mso-conditions",
77
+ description: "Removing MSO Conditions",
78
+ type: "remove",
79
+ targets: [
80
+ /<!--\[if\s\(mso 16\)\]>\s*<style\s*\S*>\s*a\s*\{\s*text-decoration\s*:\s*none\s*;*\s*\}\s*<\/style>\s*<!\[endif\]-->/g,
81
+ /<!--\[if\sgte mso 9\]>\s*<style\s*\S*>\s*sup\s*\{\s*font-size\s*:\s*100%\s*!important\s*;*\s*\}\s*<\/style>\s*<!\[endif\]-->/g,
82
+ /<!--\[if\sgte mso 9\]>\s*<noscript>\s*<xml>\s*<o:OfficeDocumentSettings>\s*<o:AllowPNG>\s*<\/o:AllowPNG>\s*<o:PixelsPerInch>\d+<\/o:PixelsPerInch>\s*<\/o:OfficeDocumentSettings>\s*<\/xml>\s*<\/noscript>\s*<!\[endif\]-->/g,
83
+ /<!--\[if mso\]>\s*<xml>\s*<w:WordDocument\s+xmlns:w="urn:schemas-microsoft-com:office:word">\s*<w:DontUseAdvancedTypographyReadingMail><\/w:DontUseAdvancedTypographyReadingMail>\s*<\/w:WordDocument>\s*<\/xml>\s*<!\[endif\]-->/g,
84
+ /<\!--\[if \!mso\]><\!--\s*\d*\s*-->\s*<\!--\[if \!mso\]><\!--\s*\d*\s*-->\s*<\!--<!\[endif\]-->/g,
85
+ /<!--\[if\s\!mso\]>\s*<!-- \d -->/g
86
+ ],
87
+ priority: 22
88
+ },
89
+ {
90
+ id: "add-mso-conditions",
91
+ description: "Adding MSO Conditions",
92
+ type: "custom",
93
+ processor: (e) => {
94
+ const t = [
95
+ `<!--[if gte mso 9]>
96
+ <style>sup {
97
+ font-size: 100% !important;
98
+ }</style><![endif]-->`,
99
+ `<!--[if gte mso 9]>
100
+ <noscript>
101
+ <xml>
102
+ <o:OfficeDocumentSettings>
103
+ <o:AllowPNG></o:AllowPNG>
104
+ <o:PixelsPerInch>96</o:PixelsPerInch>
105
+ </o:OfficeDocumentSettings>
106
+ </xml>
107
+ </noscript><![endif]-->`,
108
+ `<!--[if mso]>
109
+ <xml>
110
+ <w:WordDocument xmlns:w="urn:schemas-microsoft-com:office:word">
111
+ <w:DontUseAdvancedTypographyReadingMail></w:DontUseAdvancedTypographyReadingMail>
112
+ </w:WordDocument>
113
+ </xml><![endif]-->`
114
+ ], s = /<head>([\S\s]*)<\/head>/, o = new RegExp(s);
115
+ if (!e.match(o))
116
+ return e;
117
+ let i = e;
118
+ return t.forEach((r) => {
119
+ i = i.replace("</head>", `${r}</head>`);
120
+ }), i;
121
+ },
122
+ priority: 30
123
+ },
124
+ {
125
+ id: "replace-old-image-domain",
126
+ description: "Replacing old image domains",
127
+ type: "replace",
128
+ search: "stripo-editor-image.s3-eu-west-1.amazonaws.com",
129
+ replacement: "email-static.useinsider.com",
130
+ replaceAll: !0,
131
+ priority: 40
132
+ },
133
+ {
134
+ id: "replace-old-v2-image-domain",
135
+ description: "Replacing old image domains",
136
+ type: "replace",
137
+ search: "email.static.useinsider.com",
138
+ replacement: "email-static.useinsider.com",
139
+ replaceAll: !0,
140
+ priority: 41
141
+ }
142
+ ];
143
+ export {
144
+ a as defaultHtmlCompilerRules
145
+ };
File without changes
@@ -0,0 +1,2 @@
1
+ import type { ConditionCategories } from '@@/Types/condition-categories';
2
+ export declare const displayConditions: ConditionCategories;
@@ -0,0 +1,80 @@
1
+ const e = [
2
+ {
3
+ category: "Demographics",
4
+ conditions: [
5
+ {
6
+ id: 1,
7
+ name: "Language",
8
+ description: "Users who are in the English will see the banner",
9
+ beforeScript: '{% if language == "en_US" %}',
10
+ afterScript: "{% endif %}"
11
+ },
12
+ {
13
+ id: 2,
14
+ name: "Country",
15
+ description: "Only people who live in Australia will see the banner",
16
+ beforeScript: '{% if country == "Australia" %}',
17
+ afterScript: "{% endif %}"
18
+ },
19
+ {
20
+ id: 3,
21
+ name: "Country & City",
22
+ description: "Only people who are located in that country and city",
23
+ beforeScript: '{% if country == "United Kingdom" and city == "London" %}',
24
+ afterScript: "{% endif %}"
25
+ },
26
+ {
27
+ id: 4,
28
+ name: "Age (Less than operator)",
29
+ description: "Users whose age is less than 18",
30
+ beforeScript: "{% if age < 18 %}",
31
+ afterScript: "{% endif %}"
32
+ },
33
+ {
34
+ id: 5,
35
+ name: "Age (Equal and greater than operator)",
36
+ description: "Users whose age is equal or greater than 25",
37
+ beforeScript: "{% if age >= 25 %}",
38
+ afterScript: "{% endif %}"
39
+ },
40
+ {
41
+ id: 6,
42
+ name: "Age (Greater than & less than operators)",
43
+ description: "Users whose age is between 18 and 25",
44
+ beforeScript: "{% if age > 18 and age < 25 %}",
45
+ afterScript: "{% endif %}"
46
+ },
47
+ {
48
+ id: 7,
49
+ name: "Gender",
50
+ description: "Users whose gender is Female",
51
+ beforeScript: '{% if gender == "Female" %}',
52
+ afterScript: "{% endif %}"
53
+ },
54
+ {
55
+ id: 8,
56
+ name: "State",
57
+ description: "Users whose state is one of the followings. c_state is a custom attribute. Use this condition if you have the attribute with the same naming. ",
58
+ beforeScript: '{% if c_state == "VIC" or c_state == "NSW" or c_state == "QLD" %}',
59
+ afterScript: "{% endif %}"
60
+ },
61
+ {
62
+ id: 9,
63
+ name: "VIP User",
64
+ description: "Users who are VIP users for that brand. c_is_vip_user = true. c_is_vip_user is a custom attribute. Use this condition if you have the attribute with the same naming.",
65
+ beforeScript: "{% if c_is_vip_user %}",
66
+ afterScript: "{% endif %}"
67
+ },
68
+ {
69
+ id: 10,
70
+ name: "Membership Type",
71
+ description: "Users who belong to gold or silver membership type. c_is_gold_member = true, c_is_silver_member = true. These are custom attributes. Use this condition if you have the attribute with the same naming.",
72
+ beforeScript: "{% if c_is_gold_member or c_is_silver_member %}",
73
+ afterScript: "{% endif %}"
74
+ }
75
+ ]
76
+ }
77
+ ];
78
+ export {
79
+ e as displayConditions
80
+ };
package/dist/guido.css CHANGED
@@ -1 +1 @@
1
- .version-history-item[data-v-0e2ff42d]{flex-basis:200px}.version-history-wrapper[data-v-187d41fa]{gap:8px}[data-v-6a2bde67] .guido__verion-history-view-option-selection-desktop svg,[data-v-6a2bde67] .guido__verion-history-view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-6a2bde67] .in-segments-wrapper__button_selected,[data-v-6a2bde67] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-0fff376c] .guido__view-option-selection-desktop svg,[data-v-0fff376c] .guido__view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-0fff376c] .in-segments-wrapper__button_selected,[data-v-0fff376c] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}.header-right-slot[data-v-fefca98f]{gap:16px}.guido-editor__wrapper[data-v-d4a5c957],.guido-editor__container[data-v-d4a5c957]{width:100%;height:100vh}
1
+ .version-history-item[data-v-0e2ff42d]{flex-basis:200px}.version-history-wrapper[data-v-52a77eec]{gap:8px}[data-v-6a2bde67] .guido__verion-history-view-option-selection-desktop svg,[data-v-6a2bde67] .guido__verion-history-view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-6a2bde67] .in-segments-wrapper__button_selected,[data-v-6a2bde67] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-0fff376c] .guido__view-option-selection-desktop svg,[data-v-0fff376c] .guido__view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-0fff376c] .in-segments-wrapper__button_selected,[data-v-0fff376c] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}.guido-editor__wrapper[data-v-8e229594],.guido-editor__container[data-v-8e229594]{width:100%;height:calc(100vh - 75px)}
@@ -0,0 +1,11 @@
1
+ const t = `.amp-input-list,
2
+ .button,
3
+ .base-input,
4
+ ue-stripe-thumb,
5
+ .ue-stripe-thumb {
6
+ transition: all .5s ease;
7
+ }
8
+ `;
9
+ export {
10
+ t as default
11
+ };
@@ -0,0 +1,39 @@
1
+ const n = `.alert-message-wrapper {
2
+ box-shadow: none;
3
+ border: 1px solid var(--guido-color-gray-300);
4
+ color: var(--guido-color-gray-600);
5
+ }
6
+
7
+ .alert-message-wrapper.info,
8
+ .alert-message-wrapper.loader {
9
+ background: var(--guido-color-background-onpage-message-info);
10
+ border-color: var(--guido-color-border-onpage-message-info);
11
+ color: inherit;
12
+ }
13
+
14
+ .alert-message-wrapper.info ue-icon-component.icon,
15
+ .alert-message-wrapper.loader ue-icon-component.icon {
16
+ color: var(--guido-color-border-onpage-message-info);
17
+ }
18
+
19
+ .alert-message-wrapper ue-button {
20
+ padding: 0;
21
+ }
22
+
23
+ .alert-message-wrapper .button {
24
+ border: none;
25
+ background: transparent;
26
+ color: var(--guido-color-primary-500);
27
+ padding: 0;
28
+ min-width: unset;
29
+ min-height: unset;
30
+ }
31
+
32
+ .alert-message-wrapper .button:hover:not(:disabled,.disabled) {
33
+ background-color: transparent;
34
+ text-decoration: underline;
35
+ }
36
+ `;
37
+ export {
38
+ n as default
39
+ };
@@ -0,0 +1,18 @@
1
+ const n = `.amp-input-list {
2
+ box-shadow: none;
3
+ border: 1px solid var(--guido-color-gray-300);
4
+ margin-bottom: 16px;
5
+ }
6
+
7
+ .amp-input-list:last-child {
8
+ margin-bottom: 0;
9
+ }
10
+
11
+ .amp-input-list.active,
12
+ .amp-input-list:hover {
13
+ background-color: var(--guido-color-neutral-100);
14
+ }
15
+ `;
16
+ export {
17
+ n as default
18
+ };
@@ -0,0 +1,47 @@
1
+ const n = `.base-input {
2
+ border: 1px solid var(--guido-color-gray-300);
3
+ border-radius: 4px;
4
+ background-color: var(--guido-color-gray-0);
5
+ align-items: center;
6
+ height: 40px;
7
+ max-height: 40px;
8
+ box-sizing: content-box;
9
+ outline: none;
10
+ resize: vertical;
11
+ padding: 8px;
12
+ font-size: 13px;
13
+ color: var(--guido-color-gray-800);
14
+ box-shadow: none !important;
15
+ box-sizing: border-box !important;
16
+ }
17
+
18
+ .base-input:hover:not(:disabled) {
19
+ background-color: var(--guido-color-gray-0);
20
+ border-color: var(--guido-color-primary-500);
21
+ }
22
+
23
+ .base-input:focus:not(:disabled),
24
+ .base-input.focused {
25
+ background-color: var(--guido-color-gray-0);
26
+ border-color: var(--guido-color-primary-500);
27
+ box-shadow: 0 0 0 3px var(--guido-color-primary-200) !important;
28
+ }
29
+
30
+ ue-contenteditable {
31
+ height: 40px;
32
+ overflow: unset;
33
+ }
34
+
35
+ ue-contenteditable .base-input {
36
+ line-height: 24px;
37
+ }
38
+
39
+ ue-icon-component.icon-button.icon-clear-input {
40
+ right: 2px;
41
+ top: 2px;
42
+ padding: 9px;
43
+ }
44
+ `;
45
+ export {
46
+ n as default
47
+ };
@@ -0,0 +1,54 @@
1
+ const o = `/* Radio Buttons and Check Buttons */
2
+
3
+ .button-group {
4
+ padding: 0;
5
+ column-gap: 0;
6
+ border-radius: 0;
7
+ background-color: transparent;
8
+ }
9
+
10
+ .button-group .button {
11
+ background-color: var(--guido-color-gray-0);
12
+ outline: none;
13
+ padding: 8px 12px;
14
+ border: 1px solid var(--guido-color-gray-300);
15
+ box-shadow: none;
16
+ height: 40px;
17
+ }
18
+
19
+ .button-group .button:hover:not(:disabled,.disabled) {
20
+ background-color: var(--guido-color-gray-1);
21
+ }
22
+
23
+ .button-group .button ue-icon-component.icon-button {
24
+ color: var(--guido-color-gray-800);
25
+ }
26
+
27
+ .button-group > div:first-of-type .button {
28
+ border-radius: 4px 0 0 4px;
29
+ }
30
+
31
+ .button-group > *:last-child .button {
32
+ border-radius: 0 4px 4px 0;
33
+ }
34
+
35
+ ue-check-buttons input:checked + .button,
36
+ ue-radio-buttons input:checked + .button {
37
+ background-color: var(--guido-color-primary-100);
38
+ color: var(--guido-color-primary-500);
39
+ border-color: var(--guido-color-primary-500);
40
+ }
41
+
42
+ ue-check-buttons input:checked + .button ue-icon-component.icon-button,
43
+ ue-radio-buttons input:checked + .button ue-icon-component.icon-button {
44
+ color: var(--guido-color-primary-500);
45
+ }
46
+
47
+ ue-check-buttons input:checked + label:hover:not(:disabled,.disabled),
48
+ ue-radio-buttons input:checked + label:hover:not(:disabled,.disabled) {
49
+ background-color: var(--guido-color-primary-100) !important;
50
+ }
51
+ `;
52
+ export {
53
+ o as default
54
+ };
@@ -0,0 +1,106 @@
1
+ const o = `.control-shadow-wrapper:has(.button) {
2
+ border-radius: 0;
3
+ box-shadow: none;
4
+ background-color: transparent;
5
+ padding: 0;
6
+ }
7
+
8
+ .button {
9
+ min-width: 40px;
10
+ min-height: 40px;
11
+ padding: 8px;
12
+ background-color: var(--guido-color-gray-0);
13
+ border: 1px solid var(--guido-color-gray-300);
14
+ border-radius: 4px;
15
+ box-shadow: none;
16
+ }
17
+
18
+ .button:not(:disabled,.disabled):active {
19
+ transform: none !important;
20
+ }
21
+
22
+ .button:hover:not(:disabled,.disabled) {
23
+ background-color: var(--guido-color-gray-1);
24
+ }
25
+
26
+ .button .icon-button {
27
+ color: var(--guido-color-gray-800);
28
+ }
29
+
30
+ .on > .button {
31
+ background-color: var(--guido-color-primary-100);
32
+ color: var(--guido-color-primary-500);
33
+ border-color: var(--guido-color-primary-500);
34
+ box-shadow: none;
35
+ }
36
+
37
+ .on > .button .icon-button {
38
+ color: var(--guido-color-primary-500);
39
+ }
40
+
41
+ .on > .button:hover:not(:disabled,.disabled) {
42
+ background-color: var(--guido-color-primary-100);
43
+ }
44
+
45
+ .e2e-remove-container-item .button .icon-button,
46
+ .e2e-delete-menu-btn .button .icon-button {
47
+ color: var(--guido-color-danger-500);
48
+ }
49
+
50
+ .e2e-text-insert-controls .control-shadow-wrapper:not(:last-of-type) {
51
+ margin-right: 16px;
52
+ }
53
+
54
+ .flat-white > .button {
55
+ border: 0;
56
+ }
57
+
58
+ .flat-white > .button:hover:not(:disabled,.disabled) {
59
+ background-color: transparent !important;
60
+ color: var(--guido-color-primary-500);
61
+ }
62
+
63
+ .flat-white > .button:hover:not(:disabled,.disabled) {
64
+ color: var(--guido-color-primary-500);
65
+ }
66
+
67
+ ue-check-button.checked:not(.flat-white) input:checked + label {
68
+ background-color: var(--guido-color-primary-100);
69
+ color: var(--guido-color-primary-500);
70
+ border: 1px solid var(--guido-color-primary-500);
71
+ box-shadow: none;
72
+ }
73
+
74
+ ue-check-button.checked:not(.flat-white) input:checked + label:hover:not(:disabled,.disabled) {
75
+ background-color: var(--guido-color-primary-100);
76
+ }
77
+
78
+ ue-check-button.checked:not(.flat-white) input:checked + label .icon-button {
79
+ color: var(--guido-color-primary-500);
80
+ }
81
+
82
+ ue-select.full-width .button {
83
+ border: none !important;
84
+ background-color: var(--guido-color-neutral-200) !important;
85
+ color: var(--guido-color-neutral-800) !important;
86
+ }
87
+
88
+ ue-select.full-width .button .icon-button {
89
+ color: var(--guido-color-gray-600) !important;
90
+ }
91
+
92
+ ue-select.full-width .button:hover:not(:disabled,.disabled) {
93
+ background-color: var(--guido-color-neutral-100) !important;
94
+ }
95
+
96
+ ue-color {
97
+ width: 80px;
98
+ }
99
+
100
+ ue-color .base-input {
101
+ width: 100%;
102
+ }
103
+ `;
104
+ export {
105
+ o as default
106
+ };