@nice2dev/omniwerk-branding 1.2.2 → 1.3.1

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/index.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("./fonts.cjs"),e=require("react/jsx-runtime"),d=require("react"),r={primary:"#1A237E",primaryLight:"#534BAE",primaryDark:"#000051",secondary:"#00BCD4",secondaryLight:"#62EFFF",secondaryDark:"#008BA3",tertiary:"#FFC107",tertiaryLight:"#FFF350",tertiaryDark:"#C79100",success:"#4CAF50",warning:"#FF9800",error:"#F44336",info:"#2196F3",background:"#FAFAFA",surface:"#FFFFFF",onBackground:"#212121",onSurface:"#212121",outline:"#BDBDBD",surfaceVariant:"#E0E0E0",backgroundDark:"#121212",surfaceDark:"#1E1E1E",onBackgroundDark:"#E0E0E0",onSurfaceDark:"#E0E0E0",outlineDark:"#424242",surfaceVariantDark:"#2C2C2C"},S={primary:{type:"linear",angle:135,stops:[{offset:0,color:r.primary},{offset:100,color:r.primaryLight}]},secondary:{type:"linear",angle:135,stops:[{offset:0,color:r.secondary},{offset:100,color:r.secondaryLight}]},brand:{type:"linear",angle:135,stops:[{offset:0,color:r.primary},{offset:100,color:r.secondary}]},brandReverse:{type:"linear",angle:315,stops:[{offset:0,color:r.secondary},{offset:100,color:r.primary}]}},w={xs:{icon:16,fontSize:10,spacing:4},sm:{icon:24,fontSize:14,spacing:6},md:{icon:32,fontSize:20,spacing:8},lg:{icon:48,fontSize:32,spacing:12},xl:{icon:64,fontSize:48,spacing:16},xxl:{icon:96,fontSize:72,spacing:24}},F=Object.assign(d.forwardRef(({size:n=32,color:i,gradient:t=!1,className:a,style:l},m)=>{const s=d.useId(),y=i??r.primary,p=d.useMemo(()=>{if(!t)return null;const g=S[t];return e.jsx("defs",{children:e.jsx("linearGradient",{id:s,x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:g.stops.map((u,f)=>e.jsx("stop",{offset:`${u.offset}%`,stopColor:u.color},f))})})},[t,s]),c=t?`url(#${s})`:y,k=n*.08;return e.jsxs("svg",{ref:m,width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:a,style:l,role:"img","aria-label":"OmniWerk",children:[p,e.jsx("circle",{cx:"12",cy:"12",r:"9",stroke:c,strokeWidth:k,fill:"none"}),e.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12",stroke:c,strokeWidth:k,strokeLinecap:"round"}),e.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"8",stroke:c,strokeWidth:k,strokeLinecap:"round"}),e.jsx("line",{x1:"12",y1:"16",x2:"12",y2:"19",stroke:c,strokeWidth:k,strokeLinecap:"round"}),e.jsx("circle",{cx:"5",cy:"12",r:n*.04,fill:c}),e.jsx("circle",{cx:"19",cy:"12",r:n*.04,fill:c}),e.jsx("circle",{cx:"12",cy:"5",r:n*.04,fill:c}),e.jsx("circle",{cx:"12",cy:"19",r:n*.04,fill:c}),e.jsx("circle",{cx:"12",cy:"12",r:n*.06,fill:c})]})}),{displayName:"OmniWerkIcon"}),E=Object.assign(d.forwardRef(({fontSize:n=32,color:i,showTagline:t=!1,className:a,style:l},m)=>{const s=i??r.primary;return e.jsxs("div",{ref:m,className:a,style:l,children:[e.jsx("span",{style:{fontFamily:o.OMNIWERK_FONTS.logo,fontSize:`${n}px`,letterSpacing:`${n*.05}px`,color:s,fontWeight:400,display:"block"},children:"OMNIWERK"}),t&&e.jsx("span",{style:{fontFamily:o.OMNIWERK_FONTS.body,fontSize:`${n*.35}px`,letterSpacing:`${n*.08}px`,color:s,opacity:.7,fontWeight:300,display:"block"},children:"Enterprise Solutions"})]})}),{displayName:"OmniWerkText"}),h=Object.assign(d.forwardRef(({size:n="md",variant:i="horizontal",color:t,gradient:a=!1,showTagline:l=!1,className:m,style:s,onClick:y,"aria-label":p},c)=>{const k=w[n],g=t??r.primary,u={display:"inline-flex",alignItems:"center",justifyContent:"center",gap:`${k.spacing}px`,flexDirection:i==="vertical"?"column":"row",cursor:y?"pointer":void 0,...s},f=()=>e.jsx(F,{size:k.icon,color:a?void 0:g,gradient:a||void 0}),O=()=>e.jsx(E,{fontSize:k.fontSize,color:g,showTagline:l});return e.jsxs("div",{ref:c,className:m,style:u,onClick:y,role:y?"button":void 0,tabIndex:y?0:void 0,"aria-label":p??"OmniWerk",children:[i==="icon"&&f(),i==="text"&&O(),i==="horizontal"&&e.jsxs(e.Fragment,{children:[f(),O()]}),i==="vertical"&&e.jsxs(e.Fragment,{children:[f(),O()]})]})}),{displayName:"OmniWerkLogo"}),W=Object.assign(d.forwardRef(({animate:n=!0,pulseOnHover:i=!0,style:t,...a},l)=>{const[m,s]=d.useState(!1),y={...t,animation:n?"omniwerk-entrance 0.8s ease-out":void 0,transform:i&&m?"scale(1.05)":"scale(1)",transition:"transform 0.15s ease-out"};return e.jsxs(e.Fragment,{children:[e.jsx("style",{children:`
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("./fonts.cjs"),e=require("react/jsx-runtime"),y=require("react"),r={primary:"#1A237E",primaryLight:"#534BAE",primaryDark:"#000051",secondary:"#00BCD4",secondaryLight:"#62EFFF",secondaryDark:"#008BA3",tertiary:"#FFC107",tertiaryLight:"#FFF350",tertiaryDark:"#C79100",success:"#4CAF50",warning:"#FF9800",error:"#F44336",info:"#2196F3",background:"#FAFAFA",surface:"#FFFFFF",onBackground:"#212121",onSurface:"#212121",outline:"#BDBDBD",surfaceVariant:"#E0E0E0",backgroundDark:"#121212",surfaceDark:"#1E1E1E",onBackgroundDark:"#E0E0E0",onSurfaceDark:"#E0E0E0",outlineDark:"#424242",surfaceVariantDark:"#2C2C2C"},S={primary:{type:"linear",angle:135,stops:[{offset:0,color:r.primary},{offset:100,color:r.primaryLight}]},secondary:{type:"linear",angle:135,stops:[{offset:0,color:r.secondary},{offset:100,color:r.secondaryLight}]},brand:{type:"linear",angle:135,stops:[{offset:0,color:r.primary},{offset:100,color:r.secondary}]},brandReverse:{type:"linear",angle:315,stops:[{offset:0,color:r.secondary},{offset:100,color:r.primary}]}},N={xs:{icon:16,fontSize:10,spacing:4},sm:{icon:24,fontSize:14,spacing:6},md:{icon:32,fontSize:20,spacing:8},lg:{icon:48,fontSize:32,spacing:12},xl:{icon:64,fontSize:48,spacing:16},xxl:{icon:96,fontSize:72,spacing:24}},h=Object.assign(y.forwardRef(({size:n=32,color:i,gradient:t=!1,className:a,style:l},d)=>{const s=y.useId(),m=i??r.primary,O=y.useMemo(()=>{if(!t)return null;const g=S[t];return e.jsx("defs",{children:e.jsx("linearGradient",{id:s,x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:g.stops.map((u,f)=>e.jsx("stop",{offset:`${u.offset}%`,stopColor:u.color},f))})})},[t,s]),c=t?`url(#${s})`:m,k=n*.08;return e.jsxs("svg",{ref:d,width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:a,style:l,role:"img","aria-label":"OmniWerk",children:[O,e.jsx("circle",{cx:"12",cy:"12",r:"9",stroke:c,strokeWidth:k,fill:"none"}),e.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12",stroke:c,strokeWidth:k,strokeLinecap:"round"}),e.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"8",stroke:c,strokeWidth:k,strokeLinecap:"round"}),e.jsx("line",{x1:"12",y1:"16",x2:"12",y2:"19",stroke:c,strokeWidth:k,strokeLinecap:"round"}),e.jsx("circle",{cx:"5",cy:"12",r:n*.04,fill:c}),e.jsx("circle",{cx:"19",cy:"12",r:n*.04,fill:c}),e.jsx("circle",{cx:"12",cy:"5",r:n*.04,fill:c}),e.jsx("circle",{cx:"12",cy:"19",r:n*.04,fill:c}),e.jsx("circle",{cx:"12",cy:"12",r:n*.06,fill:c})]})}),{displayName:"OmniWerkIcon"}),w=Object.assign(y.forwardRef(({fontSize:n=32,color:i,showTagline:t=!1,className:a,style:l},d)=>{const s=i??r.primary;return e.jsxs("div",{ref:d,className:a,style:l,children:[e.jsx("span",{style:{fontFamily:o.OMNIWERK_FONTS.logo,fontSize:`${n}px`,letterSpacing:`${n*.05}px`,color:s,fontWeight:400,display:"block"},children:"OMNIWERK"}),t&&e.jsx("span",{style:{fontFamily:o.OMNIWERK_FONTS.body,fontSize:`${n*.35}px`,letterSpacing:`${n*.08}px`,color:s,opacity:.7,fontWeight:300,display:"block"},children:"Enterprise Solutions"})]})}),{displayName:"OmniWerkText"}),E=Object.assign(y.forwardRef(({size:n="md",variant:i="horizontal",color:t,gradient:a=!1,showTagline:l=!1,className:d,style:s,onClick:m,"aria-label":O},c)=>{const k=N[n],g=t??r.primary,u={display:"inline-flex",alignItems:"center",justifyContent:"center",gap:`${k.spacing}px`,flexDirection:i==="vertical"?"column":"row",cursor:m?"pointer":void 0,...s},f=()=>e.jsx(h,{size:k.icon,color:a?void 0:g,gradient:a||void 0}),x=()=>e.jsx(w,{fontSize:k.fontSize,color:g,showTagline:l});return e.jsxs("div",{onKeyDown:m?p=>{(p.key==="Enter"||p.key===" ")&&(p.preventDefault(),p.currentTarget.click())}:void 0,ref:c,className:d,style:u,onClick:m,role:m?"button":void 0,tabIndex:m?0:void 0,"aria-label":O??"OmniWerk",children:[i==="icon"&&f(),i==="text"&&x(),i==="horizontal"&&e.jsxs(e.Fragment,{children:[f(),x()]}),i==="vertical"&&e.jsxs(e.Fragment,{children:[f(),x()]})]})}),{displayName:"OmniWerkLogo"}),W=Object.assign(y.forwardRef(({animate:n=!0,pulseOnHover:i=!0,style:t,...a},l)=>{const[d,s]=y.useState(!1),m={...t,animation:n?"omniwerk-entrance 0.8s ease-out":void 0,transform:i&&d?"scale(1.05)":"scale(1)",transition:"transform 0.15s ease-out"};return e.jsxs(e.Fragment,{children:[e.jsx("style",{children:`
2
2
  @keyframes omniwerk-entrance {
3
3
  0% {
4
4
  opacity: 0;
@@ -9,12 +9,12 @@
9
9
  transform: scale(1);
10
10
  }
11
11
  }
12
- `}),e.jsx("div",{onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),children:e.jsx(h,{ref:l,...a,style:y})})]})}),{displayName:"OmniWerkAnimatedLogo"}),N=({size:n=48,color:i,gradient:t=!1})=>{const a=d.useId();return e.jsxs(e.Fragment,{children:[e.jsx("style",{children:`
12
+ `}),e.jsx("div",{onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),children:e.jsx(E,{ref:l,...a,style:m})})]})}),{displayName:"OmniWerkAnimatedLogo"}),I=({size:n=48,color:i,gradient:t=!1})=>{const a=y.useId();return e.jsxs(e.Fragment,{children:[e.jsx("style",{children:`
13
13
  @keyframes omniwerk-spin-${a.replace(/:/g,"")} {
14
14
  from { transform: rotate(0deg); }
15
15
  to { transform: rotate(360deg); }
16
16
  }
17
- `}),e.jsx("div",{style:{animation:`omniwerk-spin-${a.replace(/:/g,"")} 2s linear infinite`,display:"inline-flex"},children:e.jsx(F,{size:n,color:i,gradient:t})})]})},I=({background:n="brand",logoColor:i="#FFFFFF",showTagline:t=!0,onComplete:a,duration:l=2e3})=>{d.useEffect(()=>{if(a){const s=setTimeout(a,l);return()=>clearTimeout(s)}},[a,l]);const m=n==="primary"?{background:`linear-gradient(135deg, ${r.primary}, ${r.primaryLight})`}:n==="brand"?{background:`linear-gradient(135deg, ${r.primary}, ${r.secondary})`}:{background:n};return e.jsx("div",{style:{position:"fixed",inset:0,display:"flex",alignItems:"center",justifyContent:"center",...m},children:e.jsx(W,{size:"xxl",variant:"vertical",color:i,showTagline:t,animate:!0})})},L=()=>e.jsx("style",{children:o.OMNIWERK_FONT_IMPORT}),T=`
17
+ `}),e.jsx("div",{style:{animation:`omniwerk-spin-${a.replace(/:/g,"")} 2s linear infinite`,display:"inline-flex"},children:e.jsx(h,{size:n,color:i,gradient:t})})]})},L=({background:n="brand",logoColor:i="#FFFFFF",showTagline:t=!0,onComplete:a,duration:l=2e3})=>{y.useEffect(()=>{if(a){const s=setTimeout(a,l);return()=>clearTimeout(s)}},[a,l]);const d=n==="primary"?{background:`linear-gradient(135deg, ${r.primary}, ${r.primaryLight})`}:n==="brand"?{background:`linear-gradient(135deg, ${r.primary}, ${r.secondary})`}:{background:n};return e.jsx("div",{style:{position:"fixed",inset:0,display:"flex",alignItems:"center",justifyContent:"center",...d},children:e.jsx(W,{size:"xxl",variant:"vertical",color:i,showTagline:t,animate:!0})})},T=()=>e.jsx("style",{children:o.OMNIWERK_FONT_IMPORT}),R=`
18
18
  :root {
19
19
  /* Primary */
20
20
  --omniwerk-primary: ${r.primary};
@@ -57,4 +57,4 @@
57
57
  --omniwerk-on-surface: ${r.onSurfaceDark};
58
58
  --omniwerk-outline: ${r.outlineDark};
59
59
  }
60
- `,R={theme:{extend:{colors:{omniwerk:{primary:{DEFAULT:r.primary,light:r.primaryLight,dark:r.primaryDark},secondary:{DEFAULT:r.secondary,light:r.secondaryLight,dark:r.secondaryDark},tertiary:{DEFAULT:r.tertiary,light:r.tertiaryLight,dark:r.tertiaryDark},success:r.success,warning:r.warning,error:r.error,info:r.info}},fontFamily:{"omniwerk-logo":[o.OMNIWERK_FONTS.logo],"omniwerk-body":[o.OMNIWERK_FONTS.body],"omniwerk-mono":[o.OMNIWERK_FONTS.mono]},backgroundImage:{"omniwerk-primary":`linear-gradient(135deg, ${r.primary}, ${r.primaryLight})`,"omniwerk-secondary":`linear-gradient(135deg, ${r.secondary}, ${r.secondaryLight})`,"omniwerk-brand":`linear-gradient(135deg, ${r.primary}, ${r.secondary})`}}}},x={palette:{primary:{main:r.primary,light:r.primaryLight,dark:r.primaryDark,contrastText:"#FFFFFF"},secondary:{main:r.secondary,light:r.secondaryLight,dark:r.secondaryDark,contrastText:"#000000"},success:{main:r.success},warning:{main:r.warning},error:{main:r.error},info:{main:r.info},background:{default:r.background,paper:r.surface}},typography:{fontFamily:o.OMNIWERK_FONTS.body,h1:o.OMNIWERK_LOGO_STYLES.xl,h2:o.OMNIWERK_LOGO_STYLES.lg,h3:o.OMNIWERK_LOGO_STYLES.md,h4:o.OMNIWERK_LOGO_STYLES.sm}},$=(function(){return{...x,palette:{...x.palette,mode:"dark",background:{default:r.backgroundDark,paper:r.surfaceDark}}}})();exports.OMNIWERK_FONTS=o.OMNIWERK_FONTS;exports.OMNIWERK_FONT_FACE=o.OMNIWERK_FONT_FACE;exports.OMNIWERK_FONT_IMPORT=o.OMNIWERK_FONT_IMPORT;exports.OMNIWERK_LOGO_STYLES=o.OMNIWERK_LOGO_STYLES;exports.OMNIWERK_COLORS=r;exports.OMNIWERK_CSS_VARS=T;exports.OMNIWERK_GRADIENTS=S;exports.OmniWerkAnimatedLogo=W;exports.OmniWerkFontLoader=L;exports.OmniWerkIcon=F;exports.OmniWerkLoadingSpinner=N;exports.OmniWerkLogo=h;exports.OmniWerkSplash=I;exports.OmniWerkText=E;exports.default=h;exports.omniWerkMuiDarkTheme=$;exports.omniWerkMuiTheme=x;exports.omniWerkTailwindPreset=R;
60
+ `,$={theme:{extend:{colors:{omniwerk:{primary:{DEFAULT:r.primary,light:r.primaryLight,dark:r.primaryDark},secondary:{DEFAULT:r.secondary,light:r.secondaryLight,dark:r.secondaryDark},tertiary:{DEFAULT:r.tertiary,light:r.tertiaryLight,dark:r.tertiaryDark},success:r.success,warning:r.warning,error:r.error,info:r.info}},fontFamily:{"omniwerk-logo":[o.OMNIWERK_FONTS.logo],"omniwerk-body":[o.OMNIWERK_FONTS.body],"omniwerk-mono":[o.OMNIWERK_FONTS.mono]},backgroundImage:{"omniwerk-primary":`linear-gradient(135deg, ${r.primary}, ${r.primaryLight})`,"omniwerk-secondary":`linear-gradient(135deg, ${r.secondary}, ${r.secondaryLight})`,"omniwerk-brand":`linear-gradient(135deg, ${r.primary}, ${r.secondary})`}}}},F={palette:{primary:{main:r.primary,light:r.primaryLight,dark:r.primaryDark,contrastText:"#FFFFFF"},secondary:{main:r.secondary,light:r.secondaryLight,dark:r.secondaryDark,contrastText:"#000000"},success:{main:r.success},warning:{main:r.warning},error:{main:r.error},info:{main:r.info},background:{default:r.background,paper:r.surface}},typography:{fontFamily:o.OMNIWERK_FONTS.body,h1:o.OMNIWERK_LOGO_STYLES.xl,h2:o.OMNIWERK_LOGO_STYLES.lg,h3:o.OMNIWERK_LOGO_STYLES.md,h4:o.OMNIWERK_LOGO_STYLES.sm}},_=(function(){return{...F,palette:{...F.palette,mode:"dark",background:{default:r.backgroundDark,paper:r.surfaceDark}}}})();exports.OMNIWERK_FONTS=o.OMNIWERK_FONTS;exports.OMNIWERK_FONT_FACE=o.OMNIWERK_FONT_FACE;exports.OMNIWERK_FONT_IMPORT=o.OMNIWERK_FONT_IMPORT;exports.OMNIWERK_LOGO_STYLES=o.OMNIWERK_LOGO_STYLES;exports.OMNIWERK_COLORS=r;exports.OMNIWERK_CSS_VARS=R;exports.OMNIWERK_GRADIENTS=S;exports.OmniWerkAnimatedLogo=W;exports.OmniWerkFontLoader=T;exports.OmniWerkIcon=h;exports.OmniWerkLoadingSpinner=I;exports.OmniWerkLogo=E;exports.OmniWerkSplash=L;exports.OmniWerkText=w;exports.default=E;exports.omniWerkMuiDarkTheme=_;exports.omniWerkMuiTheme=F;exports.omniWerkTailwindPreset=$;
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
- import { OMNIWERK_FONT_IMPORT as E, OMNIWERK_FONTS as m, OMNIWERK_LOGO_STYLES as u } from "./fonts.mjs";
2
- import { OMNIWERK_FONT_FACE as P } from "./fonts.mjs";
3
- import { jsxs as f, Fragment as h, jsx as e } from "react/jsx-runtime";
4
- import b, { forwardRef as w, useId as D, useMemo as L } from "react";
1
+ import { OMNIWERK_FONT_IMPORT as L, OMNIWERK_FONTS as m, OMNIWERK_LOGO_STYLES as h } from "./fonts.mjs";
2
+ import { OMNIWERK_FONT_FACE as U } from "./fonts.mjs";
3
+ import { jsxs as f, Fragment as w, jsx as e } from "react/jsx-runtime";
4
+ import b, { forwardRef as F, useId as O, useMemo as S } from "react";
5
5
  const r = {
6
6
  // Primary - Deep Blue
7
7
  primary: "#1A237E",
@@ -34,7 +34,7 @@ const r = {
34
34
  onSurfaceDark: "#E0E0E0",
35
35
  outlineDark: "#424242",
36
36
  surfaceVariantDark: "#2C2C2C"
37
- }, S = {
37
+ }, W = {
38
38
  primary: {
39
39
  type: "linear",
40
40
  angle: 135,
@@ -67,20 +67,20 @@ const r = {
67
67
  { offset: 100, color: r.primary }
68
68
  ]
69
69
  }
70
- }, W = {
70
+ }, v = {
71
71
  xs: { icon: 16, fontSize: 10, spacing: 4 },
72
72
  sm: { icon: 24, fontSize: 14, spacing: 6 },
73
73
  md: { icon: 32, fontSize: 20, spacing: 8 },
74
74
  lg: { icon: 48, fontSize: 32, spacing: 12 },
75
75
  xl: { icon: 64, fontSize: 48, spacing: 16 },
76
76
  xxl: { icon: 96, fontSize: 72, spacing: 24 }
77
- }, O = /* @__PURE__ */ Object.assign(
78
- /* @__PURE__ */ w(
77
+ }, E = /* @__PURE__ */ Object.assign(
78
+ /* @__PURE__ */ F(
79
79
  ({ size: n = 32, color: o, gradient: a = !1, className: i, style: s }, l) => {
80
- const t = D(), d = o ?? r.primary, F = L(() => {
80
+ const t = O(), d = o ?? r.primary, x = S(() => {
81
81
  if (!a)
82
82
  return null;
83
- const g = S[a];
83
+ const g = W[a];
84
84
  return /* @__PURE__ */ e("defs", { children: /* @__PURE__ */ e("linearGradient", { id: t, x1: "0%", y1: "0%", x2: "100%", y2: "100%", children: g.stops.map((p, k) => /* @__PURE__ */ e("stop", { offset: `${p.offset}%`, stopColor: p.color }, k)) }) });
85
85
  }, [a, t]), c = a ? `url(#${t})` : d, y = n * 0.08;
86
86
  return /* @__PURE__ */ f(
@@ -97,7 +97,7 @@ const r = {
97
97
  role: "img",
98
98
  "aria-label": "OmniWerk",
99
99
  children: [
100
- F,
100
+ x,
101
101
  /* @__PURE__ */ e("circle", { cx: "12", cy: "12", r: "9", stroke: c, strokeWidth: y, fill: "none" }),
102
102
  /* @__PURE__ */ e(
103
103
  "line",
@@ -147,7 +147,7 @@ const r = {
147
147
  ),
148
148
  { displayName: "OmniWerkIcon" }
149
149
  ), I = /* @__PURE__ */ Object.assign(
150
- /* @__PURE__ */ w(
150
+ /* @__PURE__ */ F(
151
151
  ({ fontSize: n = 32, color: o, showTagline: a = !1, className: i, style: s }, l) => {
152
152
  const t = o ?? r.primary;
153
153
  return /* @__PURE__ */ f("div", { ref: l, className: i, style: s, children: [
@@ -184,8 +184,8 @@ const r = {
184
184
  }
185
185
  ),
186
186
  { displayName: "OmniWerkText" }
187
- ), v = /* @__PURE__ */ Object.assign(
188
- /* @__PURE__ */ w(
187
+ ), T = /* @__PURE__ */ Object.assign(
188
+ /* @__PURE__ */ F(
189
189
  ({
190
190
  size: n = "md",
191
191
  variant: o = "horizontal",
@@ -195,9 +195,9 @@ const r = {
195
195
  className: l,
196
196
  style: t,
197
197
  onClick: d,
198
- "aria-label": F
198
+ "aria-label": x
199
199
  }, c) => {
200
- const y = W[n], g = a ?? r.primary, p = {
200
+ const y = v[n], g = a ?? r.primary, p = {
201
201
  display: "inline-flex",
202
202
  alignItems: "center",
203
203
  justifyContent: "center",
@@ -206,13 +206,13 @@ const r = {
206
206
  cursor: d ? "pointer" : void 0,
207
207
  ...t
208
208
  }, k = () => /* @__PURE__ */ e(
209
- O,
209
+ E,
210
210
  {
211
211
  size: y.icon,
212
212
  color: i ? void 0 : g,
213
213
  gradient: i || void 0
214
214
  }
215
- ), x = () => /* @__PURE__ */ e(
215
+ ), $ = () => /* @__PURE__ */ e(
216
216
  I,
217
217
  {
218
218
  fontSize: y.fontSize,
@@ -223,23 +223,26 @@ const r = {
223
223
  return /* @__PURE__ */ f(
224
224
  "div",
225
225
  {
226
+ onKeyDown: d ? (u) => {
227
+ (u.key === "Enter" || u.key === " ") && (u.preventDefault(), u.currentTarget.click());
228
+ } : void 0,
226
229
  ref: c,
227
230
  className: l,
228
231
  style: p,
229
232
  onClick: d,
230
233
  role: d ? "button" : void 0,
231
234
  tabIndex: d ? 0 : void 0,
232
- "aria-label": F ?? "OmniWerk",
235
+ "aria-label": x ?? "OmniWerk",
233
236
  children: [
234
237
  o === "icon" && k(),
235
- o === "text" && x(),
236
- o === "horizontal" && /* @__PURE__ */ f(h, { children: [
238
+ o === "text" && $(),
239
+ o === "horizontal" && /* @__PURE__ */ f(w, { children: [
237
240
  k(),
238
- x()
241
+ $()
239
242
  ] }),
240
- o === "vertical" && /* @__PURE__ */ f(h, { children: [
243
+ o === "vertical" && /* @__PURE__ */ f(w, { children: [
241
244
  k(),
242
- x()
245
+ $()
243
246
  ] })
244
247
  ]
245
248
  }
@@ -247,8 +250,8 @@ const r = {
247
250
  }
248
251
  ),
249
252
  { displayName: "OmniWerkLogo" }
250
- ), T = /* @__PURE__ */ Object.assign(
251
- /* @__PURE__ */ w(
253
+ ), N = /* @__PURE__ */ Object.assign(
254
+ /* @__PURE__ */ F(
252
255
  ({ animate: n = !0, pulseOnHover: o = !0, style: a, ...i }, s) => {
253
256
  const [l, t] = b.useState(!1), d = {
254
257
  ...a,
@@ -256,7 +259,7 @@ const r = {
256
259
  transform: o && l ? "scale(1.05)" : "scale(1)",
257
260
  transition: "transform 0.15s ease-out"
258
261
  };
259
- return /* @__PURE__ */ f(h, { children: [
262
+ return /* @__PURE__ */ f(w, { children: [
260
263
  /* @__PURE__ */ e("style", { children: `
261
264
  @keyframes omniwerk-entrance {
262
265
  0% {
@@ -269,18 +272,18 @@ const r = {
269
272
  }
270
273
  }
271
274
  ` }),
272
- /* @__PURE__ */ e("div", { onMouseEnter: () => t(!0), onMouseLeave: () => t(!1), children: /* @__PURE__ */ e(v, { ref: s, ...i, style: d }) })
275
+ /* @__PURE__ */ e("div", { onMouseEnter: () => t(!0), onMouseLeave: () => t(!1), children: /* @__PURE__ */ e(T, { ref: s, ...i, style: d }) })
273
276
  ] });
274
277
  }
275
278
  ),
276
279
  { displayName: "OmniWerkAnimatedLogo" }
277
- ), M = ({
280
+ ), C = ({
278
281
  size: n = 48,
279
282
  color: o,
280
283
  gradient: a = !1
281
284
  }) => {
282
- const i = D();
283
- return /* @__PURE__ */ f(h, { children: [
285
+ const i = O();
286
+ return /* @__PURE__ */ f(w, { children: [
284
287
  /* @__PURE__ */ e("style", { children: `
285
288
  @keyframes omniwerk-spin-${i.replace(/:/g, "")} {
286
289
  from { transform: rotate(0deg); }
@@ -294,11 +297,11 @@ const r = {
294
297
  animation: `omniwerk-spin-${i.replace(/:/g, "")} 2s linear infinite`,
295
298
  display: "inline-flex"
296
299
  },
297
- children: /* @__PURE__ */ e(O, { size: n, color: o, gradient: a })
300
+ children: /* @__PURE__ */ e(E, { size: n, color: o, gradient: a })
298
301
  }
299
302
  )
300
303
  ] });
301
- }, C = ({
304
+ }, _ = ({
302
305
  background: n = "brand",
303
306
  logoColor: o = "#FFFFFF",
304
307
  showTagline: a = !0,
@@ -328,7 +331,7 @@ const r = {
328
331
  ...l
329
332
  },
330
333
  children: /* @__PURE__ */ e(
331
- T,
334
+ N,
332
335
  {
333
336
  size: "xxl",
334
337
  variant: "vertical",
@@ -339,7 +342,7 @@ const r = {
339
342
  )
340
343
  }
341
344
  );
342
- }, _ = () => /* @__PURE__ */ e("style", { children: E }), B = `
345
+ }, B = () => /* @__PURE__ */ e("style", { children: L }), K = `
343
346
  :root {
344
347
  /* Primary */
345
348
  --omniwerk-primary: ${r.primary};
@@ -420,7 +423,7 @@ const r = {
420
423
  }
421
424
  }
422
425
  }
423
- }, $ = {
426
+ }, D = {
424
427
  palette: {
425
428
  primary: {
426
429
  main: r.primary,
@@ -453,16 +456,16 @@ const r = {
453
456
  },
454
457
  typography: {
455
458
  fontFamily: m.body,
456
- h1: u.xl,
457
- h2: u.lg,
458
- h3: u.md,
459
- h4: u.sm
459
+ h1: h.xl,
460
+ h2: h.lg,
461
+ h3: h.md,
462
+ h4: h.sm
460
463
  }
461
- }, K = /* @__PURE__ */ (function() {
464
+ }, z = /* @__PURE__ */ (function() {
462
465
  return {
463
- ...$,
466
+ ...D,
464
467
  palette: {
465
- ...$.palette,
468
+ ...D.palette,
466
469
  mode: "dark",
467
470
  background: {
468
471
  default: r.backgroundDark,
@@ -473,21 +476,21 @@ const r = {
473
476
  })();
474
477
  export {
475
478
  r as OMNIWERK_COLORS,
476
- B as OMNIWERK_CSS_VARS,
479
+ K as OMNIWERK_CSS_VARS,
477
480
  m as OMNIWERK_FONTS,
478
- P as OMNIWERK_FONT_FACE,
479
- E as OMNIWERK_FONT_IMPORT,
480
- S as OMNIWERK_GRADIENTS,
481
- u as OMNIWERK_LOGO_STYLES,
482
- T as OmniWerkAnimatedLogo,
483
- _ as OmniWerkFontLoader,
484
- O as OmniWerkIcon,
485
- M as OmniWerkLoadingSpinner,
486
- v as OmniWerkLogo,
487
- C as OmniWerkSplash,
481
+ U as OMNIWERK_FONT_FACE,
482
+ L as OMNIWERK_FONT_IMPORT,
483
+ W as OMNIWERK_GRADIENTS,
484
+ h as OMNIWERK_LOGO_STYLES,
485
+ N as OmniWerkAnimatedLogo,
486
+ B as OmniWerkFontLoader,
487
+ E as OmniWerkIcon,
488
+ C as OmniWerkLoadingSpinner,
489
+ T as OmniWerkLogo,
490
+ _ as OmniWerkSplash,
488
491
  I as OmniWerkText,
489
- v as default,
490
- K as omniWerkMuiDarkTheme,
491
- $ as omniWerkMuiTheme,
492
+ T as default,
493
+ z as omniWerkMuiDarkTheme,
494
+ D as omniWerkMuiTheme,
492
495
  j as omniWerkTailwindPreset
493
496
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nice2dev/omniwerk-branding",
3
- "version": "1.2.2",
3
+ "version": "1.3.1",
4
4
  "description": "OmniWerk brand assets, logos, and theme for React applications",
5
5
  "author": "NiceToDev <contact@nicetodev.com>",
6
6
  "license": "SEE LICENSE IN LICENSE",