@yenio-pld/blocks 1.2.0-rc.27 → 1.2.0-rc.28
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/brand.cjs +32 -11
- package/dist/brand.cjs.map +1 -1
- package/dist/brand.d.cts +1 -1
- package/dist/brand.d.ts +1 -1
- package/dist/brand.js +33 -12
- package/dist/brand.js.map +1 -1
- package/dist/{gem-loader-BnRryHXe.d.cts → gem-loader-BFxCP0pU.d.cts} +7 -3
- package/dist/{gem-loader-BnRryHXe.d.ts → gem-loader-BFxCP0pU.d.ts} +7 -3
- package/dist/index.cjs +32 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +32 -13
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -19,13 +19,17 @@ declare function AnimatedBrand({ className, variant, }: AnimatedBrandProps): rea
|
|
|
19
19
|
type BrandLockupProps = HTMLAttributes<HTMLSpanElement> & {
|
|
20
20
|
/** Height class for the expanded lockup (default h-7). */
|
|
21
21
|
heightClassName?: string;
|
|
22
|
-
/**
|
|
22
|
+
/**
|
|
23
|
+
* AppShell icon-rail mode: expanded uses the glitter lockup; collapsed
|
|
24
|
+
* (`group-data-[collapsible=icon]`) swaps to the animated gem / A.
|
|
25
|
+
*/
|
|
23
26
|
collapsible?: boolean;
|
|
24
27
|
};
|
|
25
28
|
/**
|
|
26
29
|
* Horizontal Alhajero lockup: deepened gem on light, original gold on dark.
|
|
27
|
-
*
|
|
28
|
-
* Both theme variants stay in the DOM so
|
|
30
|
+
* Collapsible mode uses AnimatedBrand / GemLoader SVG sources (glitter lockup
|
|
31
|
+
* expanded, animated gem collapsed). Both theme variants stay in the DOM so
|
|
32
|
+
* switches do not flash the wrong gold. SVG CSS honors prefers-reduced-motion.
|
|
29
33
|
*/
|
|
30
34
|
declare function BrandLockup({ className, heightClassName, collapsible, ...rest }: BrandLockupProps): react.JSX.Element;
|
|
31
35
|
|
package/dist/index.cjs
CHANGED
|
@@ -8051,14 +8051,17 @@ function AnimatedBrand({
|
|
|
8051
8051
|
// src/brand/static-svg.ts
|
|
8052
8052
|
var LOCKUP_COLOR_SVG = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="-12 0 646 256" width="646" height="256" role="img"><title>Alhajero logo</title><g id="symbol" transform="translate(0 190)"><g transform="scale(0.5536) translate(-16 -240)"><polygon class="facet" id="f-apex-l" fill="#C69E4C" stroke="#C69E4C" stroke-width=".6" stroke-linejoin="round" points="94.0,84.0 128.0,70.0 128.0,28.4 126.2,28.5 124.4,29.0 122.7,29.9 121.3,31.0 120.0,32.3 119.1,33.9"/><polygon class="facet" id="f-apex-r" fill="#CCAD65" stroke="#CCAD65" stroke-width=".6" stroke-linejoin="round" points="128.0,70.0 162.0,84.0 136.9,33.9 136.0,32.3 134.7,31.0 133.3,29.9 131.6,29.0 129.8,28.5 128.0,28.4 128.0,28.4"/><polygon class="facet" id="f-crown-l" fill="#BA8933" stroke="#BA8933" stroke-width=".6" stroke-linejoin="round" points="94.0,84.0 128.0,70.0 128.0,104.0"/><polygon class="facet" id="f-crown-r" fill="#AE7726" stroke="#AE7726" stroke-width=".6" stroke-linejoin="round" points="162.0,84.0 128.0,70.0 128.0,104.0"/><polygon class="facet" id="f-l1" fill="#C2943F" stroke="#C2943F" stroke-width=".6" stroke-linejoin="round" points="94.0,84.0 128.0,104.0 58.0,156.0"/><polygon class="facet" id="f-l2" fill="#A16F20" stroke="#A16F20" stroke-width=".6" stroke-linejoin="round" points="128.0,104.0 102.0,156.0 58.0,156.0"/><polygon class="facet" id="f-l3" fill="#C9A358" stroke="#C9A358" stroke-width=".6" stroke-linejoin="round" points="58.0,156.0 102.0,156.0 87.0,186.0"/><polygon class="facet" id="f-l4" fill="#B17D2B" stroke="#B17D2B" stroke-width=".6" stroke-linejoin="round" points="58.0,156.0 87.0,186.0 43.0,186.0"/><polygon class="facet" id="f-l5" fill="#946319" stroke="#946319" stroke-width=".6" stroke-linejoin="round" points="59.7,239.1 43.0,186.0 87.0,186.0 61.4,237.2 61.2,237.6 60.9,238.0 60.6,238.4 60.3,238.7 59.9,239.0"/><polygon class="facet" id="f-l6" fill="#BB8C38" stroke="#BB8C38" stroke-width=".6" stroke-linejoin="round" points="58.3,239.8 57.8,239.9 57.4,240.0 56.9,240.0 25.7,240.0 24.7,239.9 23.7,239.7 22.8,239.2 21.9,238.7 21.2,238.0 20.6,237.2 20.1,236.2 19.8,235.3 19.7,234.3 19.8,233.3 20.0,232.3 20.3,231.3 43.0,186.0 59.7,239.1 59.5,239.3 59.1,239.5 58.7,239.7"/><polygon class="facet" id="f-r1" fill="#AE7726" stroke="#AE7726" stroke-width=".6" stroke-linejoin="round" points="162.0,84.0 128.0,104.0 198.0,156.0"/><polygon class="facet" id="f-r2" fill="#865814" stroke="#865814" stroke-width=".6" stroke-linejoin="round" points="128.0,104.0 154.0,156.0 198.0,156.0"/><polygon class="facet" id="f-r3" fill="#B6822B" stroke="#B6822B" stroke-width=".6" stroke-linejoin="round" points="198.0,156.0 154.0,156.0 169.0,186.0"/><polygon class="facet" id="f-r4" fill="#946319" stroke="#946319" stroke-width=".6" stroke-linejoin="round" points="198.0,156.0 169.0,186.0 213.0,186.0"/><polygon class="facet" id="f-r5" fill="#764B10" stroke="#764B10" stroke-width=".6" stroke-linejoin="round" points="196.3,239.1 213.0,186.0 169.0,186.0 194.6,237.2 194.8,237.6 195.1,238.0 195.4,238.4 195.7,238.7 196.1,239.0"/><polygon class="facet" id="f-r6" fill="#A67323" stroke="#A67323" stroke-width=".6" stroke-linejoin="round" points="197.7,239.8 198.2,239.9 198.6,240.0 199.1,240.0 230.3,240.0 231.3,239.9 232.3,239.7 233.2,239.2 234.1,238.7 234.8,238.0 235.4,237.2 235.9,236.2 236.2,235.3 236.3,234.3 236.2,233.3 236.0,232.3 235.7,231.3 213.0,186.0 196.3,239.1 196.5,239.3 196.9,239.5 197.3,239.7"/><polygon class="facet" id="f-bar-top" fill="#BA8A32" stroke="#BA8A32" stroke-width=".6" stroke-linejoin="round" points="102.0,156.0 154.0,156.0 128.0,171.0"/><polygon class="facet" id="f-bar-l" fill="#C6A152" stroke="#C6A152" stroke-width=".6" stroke-linejoin="round" points="102.0,156.0 128.0,171.0 87.0,186.0"/><polygon class="facet" id="f-bar-r" fill="#9F6C1B" stroke="#9F6C1B" stroke-width=".6" stroke-linejoin="round" points="154.0,156.0 169.0,186.0 128.0,171.0"/><polygon class="facet" id="f-bar-bot" fill="#CCAE68" stroke="#CCAE68" stroke-width=".6" stroke-linejoin="round" points="87.0,186.0 128.0,171.0 169.0,186.0"/></g></g><g id="wordmark" transform="translate(143.0 190)"><g fill="none" stroke="#15120F" stroke-width="18" stroke-linecap="butt" stroke-linejoin="miter"><path transform="translate(0.0 0)" d="M0 -124 V0"/><path transform="translate(28.0 0)" d="M0 -124 V0 M0 -48 A30 30 0 0 1 60 -48 V0"/><path transform="translate(121.0 0)" d="M69 -78 V0 M69 -39 A39 39 0 1 0 -9 -39 A39 39 0 1 0 69 -39"/><path transform="translate(218.0 0)" d="M0 -78 V10 A24 24 0 0 1 -24 34"/><path transform="translate(248.0 0)" d="M-4 -39 H74 A39 39 0 1 0 62.6 -11.4"/><path transform="translate(348.0 0)" d="M0 -78 V0 M0 -48 A30 30 0 0 1 30 -78"/><path transform="translate(384.0 0)" d="M39 -78 A39 39 0 1 0 39 0 A39 39 0 1 0 39 -78"/></g><path fill="#C99A3B" d="M218.0 -126 l13 13 l-13 13 l-13 -13 Z"/></g></svg>`;
|
|
8053
8053
|
var LOCKUP_REVERSED_SVG = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="-12 0 646 256" width="646" height="256" role="img"><title>Alhajero logo reversed</title><g id="symbol" transform="translate(0 190)"><g transform="scale(0.5536) translate(-16 -240)"><polygon class="facet" id="f-apex-l" fill="#F7DC8B" stroke="#F7DC8B" stroke-width=".6" stroke-linejoin="round" points="94.0,84.0 128.0,70.0 128.0,28.4 126.2,28.5 124.4,29.0 122.7,29.9 121.3,31.0 120.0,32.3 119.1,33.9"/><polygon class="facet" id="f-apex-r" fill="#FFF0B8" stroke="#FFF0B8" stroke-width=".6" stroke-linejoin="round" points="128.0,70.0 162.0,84.0 136.9,33.9 136.0,32.3 134.7,31.0 133.3,29.9 131.6,29.0 129.8,28.5 128.0,28.4 128.0,28.4"/><polygon class="facet" id="f-crown-l" fill="#E9BE5C" stroke="#E9BE5C" stroke-width=".6" stroke-linejoin="round" points="94.0,84.0 128.0,70.0 128.0,104.0"/><polygon class="facet" id="f-crown-r" fill="#D9A545" stroke="#D9A545" stroke-width=".6" stroke-linejoin="round" points="162.0,84.0 128.0,70.0 128.0,104.0"/><polygon class="facet" id="f-l1" fill="#F2CE72" stroke="#F2CE72" stroke-width=".6" stroke-linejoin="round" points="94.0,84.0 128.0,104.0 58.0,156.0"/><polygon class="facet" id="f-l2" fill="#C99A3B" stroke="#C99A3B" stroke-width=".6" stroke-linejoin="round" points="128.0,104.0 102.0,156.0 58.0,156.0"/><polygon class="facet" id="f-l3" fill="#FBE3A0" stroke="#FBE3A0" stroke-width=".6" stroke-linejoin="round" points="58.0,156.0 102.0,156.0 87.0,186.0"/><polygon class="facet" id="f-l4" fill="#DDAE4E" stroke="#DDAE4E" stroke-width=".6" stroke-linejoin="round" points="58.0,156.0 87.0,186.0 43.0,186.0"/><polygon class="facet" id="f-l5" fill="#B98A2E" stroke="#B98A2E" stroke-width=".6" stroke-linejoin="round" points="59.7,239.1 43.0,186.0 87.0,186.0 61.4,237.2 61.2,237.6 60.9,238.0 60.6,238.4 60.3,238.7 59.9,239.0"/><polygon class="facet" id="f-l6" fill="#EAC266" stroke="#EAC266" stroke-width=".6" stroke-linejoin="round" points="58.3,239.8 57.8,239.9 57.4,240.0 56.9,240.0 25.7,240.0 24.7,239.9 23.7,239.7 22.8,239.2 21.9,238.7 21.2,238.0 20.6,237.2 20.1,236.2 19.8,235.3 19.7,234.3 19.8,233.3 20.0,232.3 20.3,231.3 43.0,186.0 59.7,239.1 59.5,239.3 59.1,239.5 58.7,239.7"/><polygon class="facet" id="f-r1" fill="#D9A545" stroke="#D9A545" stroke-width=".6" stroke-linejoin="round" points="162.0,84.0 128.0,104.0 198.0,156.0"/><polygon class="facet" id="f-r2" fill="#A87A25" stroke="#A87A25" stroke-width=".6" stroke-linejoin="round" points="128.0,104.0 154.0,156.0 198.0,156.0"/><polygon class="facet" id="f-r3" fill="#E3B54F" stroke="#E3B54F" stroke-width=".6" stroke-linejoin="round" points="198.0,156.0 154.0,156.0 169.0,186.0"/><polygon class="facet" id="f-r4" fill="#B98A2E" stroke="#B98A2E" stroke-width=".6" stroke-linejoin="round" points="198.0,156.0 169.0,186.0 213.0,186.0"/><polygon class="facet" id="f-r5" fill="#94681D" stroke="#94681D" stroke-width=".6" stroke-linejoin="round" points="196.3,239.1 213.0,186.0 169.0,186.0 194.6,237.2 194.8,237.6 195.1,238.0 195.4,238.4 195.7,238.7 196.1,239.0"/><polygon class="facet" id="f-r6" fill="#CFA040" stroke="#CFA040" stroke-width=".6" stroke-linejoin="round" points="197.7,239.8 198.2,239.9 198.6,240.0 199.1,240.0 230.3,240.0 231.3,239.9 232.3,239.7 233.2,239.2 234.1,238.7 234.8,238.0 235.4,237.2 235.9,236.2 236.2,235.3 236.3,234.3 236.2,233.3 236.0,232.3 235.7,231.3 213.0,186.0 196.3,239.1 196.5,239.3 196.9,239.5 197.3,239.7"/><polygon class="facet" id="f-bar-top" fill="#E8BF5B" stroke="#E8BF5B" stroke-width=".6" stroke-linejoin="round" points="102.0,156.0 154.0,156.0 128.0,171.0"/><polygon class="facet" id="f-bar-l" fill="#F8DF95" stroke="#F8DF95" stroke-width=".6" stroke-linejoin="round" points="102.0,156.0 128.0,171.0 87.0,186.0"/><polygon class="facet" id="f-bar-r" fill="#C79631" stroke="#C79631" stroke-width=".6" stroke-linejoin="round" points="154.0,156.0 169.0,186.0 128.0,171.0"/><polygon class="facet" id="f-bar-bot" fill="#FFF1BD" stroke="#FFF1BD" stroke-width=".6" stroke-linejoin="round" points="87.0,186.0 128.0,171.0 169.0,186.0"/></g></g><g id="wordmark" transform="translate(143.0 190)"><g fill="none" stroke="#FFFFFF" stroke-width="18" stroke-linecap="butt" stroke-linejoin="miter"><path transform="translate(0.0 0)" d="M0 -124 V0"/><path transform="translate(28.0 0)" d="M0 -124 V0 M0 -48 A30 30 0 0 1 60 -48 V0"/><path transform="translate(121.0 0)" d="M69 -78 V0 M69 -39 A39 39 0 1 0 -9 -39 A39 39 0 1 0 69 -39"/><path transform="translate(218.0 0)" d="M0 -78 V10 A24 24 0 0 1 -24 34"/><path transform="translate(248.0 0)" d="M-4 -39 H74 A39 39 0 1 0 62.6 -11.4"/><path transform="translate(348.0 0)" d="M0 -78 V0 M0 -48 A30 30 0 0 1 30 -78"/><path transform="translate(384.0 0)" d="M39 -78 A39 39 0 1 0 39 0 A39 39 0 1 0 39 -78"/></g><path fill="#C99A3B" d="M218.0 -126 l13 13 l-13 13 l-13 -13 Z"/></g></svg>`;
|
|
8054
|
-
|
|
8055
|
-
|
|
8056
|
-
|
|
8054
|
+
function InlineMark({
|
|
8055
|
+
className,
|
|
8056
|
+
html,
|
|
8057
|
+
square = false
|
|
8058
|
+
}) {
|
|
8059
|
+
const svgFit = square ? "[&_svg]:h-full [&_svg]:w-full" : "[&_svg]:h-full [&_svg]:w-auto";
|
|
8057
8060
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
8058
8061
|
"span",
|
|
8059
8062
|
{
|
|
8060
8063
|
"aria-hidden": true,
|
|
8061
|
-
className: `inline-flex items-center
|
|
8064
|
+
className: `inline-flex items-center ${svgFit} ${className}`.trim(),
|
|
8062
8065
|
dangerouslySetInnerHTML: { __html: html }
|
|
8063
8066
|
}
|
|
8064
8067
|
);
|
|
@@ -8069,9 +8072,9 @@ function BrandLockup({
|
|
|
8069
8072
|
collapsible = false,
|
|
8070
8073
|
...rest
|
|
8071
8074
|
}) {
|
|
8072
|
-
const
|
|
8073
|
-
const
|
|
8074
|
-
const
|
|
8075
|
+
const expandedHide = collapsible ? "group-data-[collapsible=icon]:hidden" : "";
|
|
8076
|
+
const expandedLight = collapsible ? ANIMATED_LIGHT_SVG : LOCKUP_COLOR_SVG;
|
|
8077
|
+
const expandedDark = collapsible ? ANIMATED_DARK_SVG : LOCKUP_REVERSED_SVG;
|
|
8075
8078
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
8076
8079
|
"span",
|
|
8077
8080
|
{
|
|
@@ -8083,19 +8086,35 @@ function BrandLockup({
|
|
|
8083
8086
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8084
8087
|
InlineMark,
|
|
8085
8088
|
{
|
|
8086
|
-
className: `${heightClassName} dark:hidden ${
|
|
8087
|
-
html:
|
|
8089
|
+
className: `${heightClassName} dark:hidden ${expandedHide}`.trim(),
|
|
8090
|
+
html: expandedLight
|
|
8088
8091
|
}
|
|
8089
8092
|
),
|
|
8090
8093
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8091
8094
|
InlineMark,
|
|
8092
8095
|
{
|
|
8093
|
-
className: `hidden ${heightClassName} dark:inline-flex ${
|
|
8094
|
-
html:
|
|
8096
|
+
className: `hidden ${heightClassName} dark:inline-flex ${expandedHide}`.trim(),
|
|
8097
|
+
html: expandedDark
|
|
8095
8098
|
}
|
|
8096
8099
|
),
|
|
8097
|
-
/* @__PURE__ */ jsxRuntime.
|
|
8098
|
-
|
|
8100
|
+
collapsible ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
8101
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8102
|
+
InlineMark,
|
|
8103
|
+
{
|
|
8104
|
+
className: "hidden size-8 group-data-[collapsible=icon]:block dark:hidden",
|
|
8105
|
+
html: GEM_ANIMATED_LIGHT_SVG,
|
|
8106
|
+
square: true
|
|
8107
|
+
}
|
|
8108
|
+
),
|
|
8109
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8110
|
+
InlineMark,
|
|
8111
|
+
{
|
|
8112
|
+
className: "hidden size-8 dark:group-data-[collapsible=icon]:block",
|
|
8113
|
+
html: GEM_ANIMATED_SVG,
|
|
8114
|
+
square: true
|
|
8115
|
+
}
|
|
8116
|
+
)
|
|
8117
|
+
] }) : null
|
|
8099
8118
|
]
|
|
8100
8119
|
}
|
|
8101
8120
|
);
|