@marianmeres/stuic 2.1.14 → 2.1.15
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.
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
|
|
114
114
|
const _classContent = `mt-2 mx-3 sm:mx-0 text-center sm:text-left text-sm opacity-75`;
|
|
115
115
|
|
|
116
|
-
const _classMenu = `mt-6 sm:flex sm:space-x-4 justify-end space-y-
|
|
116
|
+
const _classMenu = `mt-6 sm:flex sm:space-x-4 justify-end space-y-4 sm:space-y-0`;
|
|
117
117
|
|
|
118
118
|
const _classMenuLi = `flex-1 sm:flex-none w-full sm:w-auto sm:inline-block`;
|
|
119
119
|
|
|
@@ -125,16 +125,20 @@
|
|
|
125
125
|
<div class={twMerge("stuic-acp", _class, classProp)}>
|
|
126
126
|
<div class={twMerge("wrap", _classWrap, classWrap)}>
|
|
127
127
|
{#if typeof iconFn === "function"}
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
128
|
+
{@const iconHtml = iconFn()}
|
|
129
|
+
<!-- fn can return empty -->
|
|
130
|
+
{#if iconHtml}
|
|
131
|
+
<div
|
|
132
|
+
class={twMerge(
|
|
133
|
+
"icon-box",
|
|
134
|
+
debug("outline-green-500"),
|
|
135
|
+
_classIconBox,
|
|
136
|
+
classIconBox
|
|
137
|
+
)}
|
|
138
|
+
>
|
|
139
|
+
{@html iconFn()}
|
|
140
|
+
</div>
|
|
141
|
+
{/if}
|
|
138
142
|
{/if}
|
|
139
143
|
<div class={twMerge("content-box", _classContentBox, classContentBox)}>
|
|
140
144
|
<h1
|