@nice2dev/omniwerk-branding 1.2.0 → 1.2.2
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/OmniWerkLogo.d.ts +12 -4
- package/dist/index.cjs +4 -4
- package/dist/index.mjs +219 -213
- package/package.json +1 -1
package/dist/OmniWerkLogo.d.ts
CHANGED
|
@@ -32,7 +32,9 @@ export interface OmniWerkIconProps {
|
|
|
32
32
|
/**
|
|
33
33
|
* OmniWerk icon - the stylized "O" with circuit pattern.
|
|
34
34
|
*/
|
|
35
|
-
export declare const OmniWerkIcon: React.ForwardRefExoticComponent<OmniWerkIconProps & React.RefAttributes<SVGSVGElement
|
|
35
|
+
export declare const OmniWerkIcon: React.ForwardRefExoticComponent<OmniWerkIconProps & React.RefAttributes<SVGSVGElement>> & {
|
|
36
|
+
displayName: string;
|
|
37
|
+
};
|
|
36
38
|
export interface OmniWerkTextProps {
|
|
37
39
|
fontSize?: number;
|
|
38
40
|
color?: string;
|
|
@@ -43,7 +45,9 @@ export interface OmniWerkTextProps {
|
|
|
43
45
|
/**
|
|
44
46
|
* OmniWerk text using Anton SC font.
|
|
45
47
|
*/
|
|
46
|
-
export declare const OmniWerkText: React.ForwardRefExoticComponent<OmniWerkTextProps & React.RefAttributes<HTMLDivElement
|
|
48
|
+
export declare const OmniWerkText: React.ForwardRefExoticComponent<OmniWerkTextProps & React.RefAttributes<HTMLDivElement>> & {
|
|
49
|
+
displayName: string;
|
|
50
|
+
};
|
|
47
51
|
/**
|
|
48
52
|
* Complete OmniWerk logo with icon and text.
|
|
49
53
|
*
|
|
@@ -59,7 +63,9 @@ export declare const OmniWerkText: React.ForwardRefExoticComponent<OmniWerkTextP
|
|
|
59
63
|
* <OmniWerkLogo variant="horizontal" gradient="brand" />
|
|
60
64
|
* ```
|
|
61
65
|
*/
|
|
62
|
-
export declare const OmniWerkLogo: React.ForwardRefExoticComponent<OmniWerkLogoProps & React.RefAttributes<HTMLDivElement
|
|
66
|
+
export declare const OmniWerkLogo: React.ForwardRefExoticComponent<OmniWerkLogoProps & React.RefAttributes<HTMLDivElement>> & {
|
|
67
|
+
displayName: string;
|
|
68
|
+
};
|
|
63
69
|
export interface OmniWerkAnimatedLogoProps extends OmniWerkLogoProps {
|
|
64
70
|
/** Enable entrance animation */
|
|
65
71
|
animate?: boolean;
|
|
@@ -69,7 +75,9 @@ export interface OmniWerkAnimatedLogoProps extends OmniWerkLogoProps {
|
|
|
69
75
|
/**
|
|
70
76
|
* Animated OmniWerk logo with entrance and hover effects.
|
|
71
77
|
*/
|
|
72
|
-
export declare const OmniWerkAnimatedLogo: React.ForwardRefExoticComponent<OmniWerkAnimatedLogoProps & React.RefAttributes<HTMLDivElement
|
|
78
|
+
export declare const OmniWerkAnimatedLogo: React.ForwardRefExoticComponent<OmniWerkAnimatedLogoProps & React.RefAttributes<HTMLDivElement>> & {
|
|
79
|
+
displayName: string;
|
|
80
|
+
};
|
|
73
81
|
export interface OmniWerkLoadingSpinnerProps {
|
|
74
82
|
size?: number;
|
|
75
83
|
color?: string;
|
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"},
|
|
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:`
|
|
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(
|
|
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:`
|
|
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(
|
|
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=`
|
|
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})`}}}},
|
|
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;
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { OMNIWERK_FONT_IMPORT as
|
|
1
|
+
import { OMNIWERK_FONT_IMPORT as E, OMNIWERK_FONTS as m, OMNIWERK_LOGO_STYLES as u } from "./fonts.mjs";
|
|
2
2
|
import { OMNIWERK_FONT_FACE as P } from "./fonts.mjs";
|
|
3
3
|
import { jsxs as f, Fragment as h, jsx as e } from "react/jsx-runtime";
|
|
4
|
-
import
|
|
4
|
+
import b, { forwardRef as w, useId as D, useMemo as L } 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
|
-
},
|
|
37
|
+
}, S = {
|
|
38
38
|
primary: {
|
|
39
39
|
type: "linear",
|
|
40
40
|
angle: 135,
|
|
@@ -67,193 +67,197 @@ const r = {
|
|
|
67
67
|
{ offset: 100, color: r.primary }
|
|
68
68
|
]
|
|
69
69
|
}
|
|
70
|
-
},
|
|
70
|
+
}, W = {
|
|
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
|
-
},
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
ref: l,
|
|
89
|
-
width: n,
|
|
90
|
-
height: n,
|
|
91
|
-
viewBox: "0 0 24 24",
|
|
92
|
-
fill: "none",
|
|
93
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
94
|
-
className: i,
|
|
95
|
-
style: s,
|
|
96
|
-
role: "img",
|
|
97
|
-
"aria-label": "OmniWerk",
|
|
98
|
-
children: [
|
|
99
|
-
F,
|
|
100
|
-
/* @__PURE__ */ e("circle", { cx: "12", cy: "12", r: "9", stroke: c, strokeWidth: y, fill: "none" }),
|
|
101
|
-
/* @__PURE__ */ e(
|
|
102
|
-
"line",
|
|
103
|
-
{
|
|
104
|
-
x1: "5",
|
|
105
|
-
y1: "12",
|
|
106
|
-
x2: "19",
|
|
107
|
-
y2: "12",
|
|
108
|
-
stroke: c,
|
|
109
|
-
strokeWidth: y,
|
|
110
|
-
strokeLinecap: "round"
|
|
111
|
-
}
|
|
112
|
-
),
|
|
113
|
-
/* @__PURE__ */ e(
|
|
114
|
-
"line",
|
|
115
|
-
{
|
|
116
|
-
x1: "12",
|
|
117
|
-
y1: "5",
|
|
118
|
-
x2: "12",
|
|
119
|
-
y2: "8",
|
|
120
|
-
stroke: c,
|
|
121
|
-
strokeWidth: y,
|
|
122
|
-
strokeLinecap: "round"
|
|
123
|
-
}
|
|
124
|
-
),
|
|
125
|
-
/* @__PURE__ */ e(
|
|
126
|
-
"line",
|
|
127
|
-
{
|
|
128
|
-
x1: "12",
|
|
129
|
-
y1: "16",
|
|
130
|
-
x2: "12",
|
|
131
|
-
y2: "19",
|
|
132
|
-
stroke: c,
|
|
133
|
-
strokeWidth: y,
|
|
134
|
-
strokeLinecap: "round"
|
|
135
|
-
}
|
|
136
|
-
),
|
|
137
|
-
/* @__PURE__ */ e("circle", { cx: "5", cy: "12", r: n * 0.04, fill: c }),
|
|
138
|
-
/* @__PURE__ */ e("circle", { cx: "19", cy: "12", r: n * 0.04, fill: c }),
|
|
139
|
-
/* @__PURE__ */ e("circle", { cx: "12", cy: "5", r: n * 0.04, fill: c }),
|
|
140
|
-
/* @__PURE__ */ e("circle", { cx: "12", cy: "19", r: n * 0.04, fill: c }),
|
|
141
|
-
/* @__PURE__ */ e("circle", { cx: "12", cy: "12", r: n * 0.06, fill: c })
|
|
142
|
-
]
|
|
143
|
-
}
|
|
144
|
-
);
|
|
145
|
-
}
|
|
146
|
-
);
|
|
147
|
-
$.displayName = "OmniWerkIcon";
|
|
148
|
-
const S = w(
|
|
149
|
-
({ fontSize: n = 32, color: o, showTagline: a = !1, className: i, style: s }, l) => {
|
|
150
|
-
const t = o ?? r.primary;
|
|
151
|
-
return /* @__PURE__ */ f("div", { ref: l, className: i, style: s, children: [
|
|
152
|
-
/* @__PURE__ */ e(
|
|
153
|
-
"span",
|
|
77
|
+
}, O = /* @__PURE__ */ Object.assign(
|
|
78
|
+
/* @__PURE__ */ w(
|
|
79
|
+
({ size: n = 32, color: o, gradient: a = !1, className: i, style: s }, l) => {
|
|
80
|
+
const t = D(), d = o ?? r.primary, F = L(() => {
|
|
81
|
+
if (!a)
|
|
82
|
+
return null;
|
|
83
|
+
const g = S[a];
|
|
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
|
+
}, [a, t]), c = a ? `url(#${t})` : d, y = n * 0.08;
|
|
86
|
+
return /* @__PURE__ */ f(
|
|
87
|
+
"svg",
|
|
154
88
|
{
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
89
|
+
ref: l,
|
|
90
|
+
width: n,
|
|
91
|
+
height: n,
|
|
92
|
+
viewBox: "0 0 24 24",
|
|
93
|
+
fill: "none",
|
|
94
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
95
|
+
className: i,
|
|
96
|
+
style: s,
|
|
97
|
+
role: "img",
|
|
98
|
+
"aria-label": "OmniWerk",
|
|
99
|
+
children: [
|
|
100
|
+
F,
|
|
101
|
+
/* @__PURE__ */ e("circle", { cx: "12", cy: "12", r: "9", stroke: c, strokeWidth: y, fill: "none" }),
|
|
102
|
+
/* @__PURE__ */ e(
|
|
103
|
+
"line",
|
|
104
|
+
{
|
|
105
|
+
x1: "5",
|
|
106
|
+
y1: "12",
|
|
107
|
+
x2: "19",
|
|
108
|
+
y2: "12",
|
|
109
|
+
stroke: c,
|
|
110
|
+
strokeWidth: y,
|
|
111
|
+
strokeLinecap: "round"
|
|
112
|
+
}
|
|
113
|
+
),
|
|
114
|
+
/* @__PURE__ */ e(
|
|
115
|
+
"line",
|
|
116
|
+
{
|
|
117
|
+
x1: "12",
|
|
118
|
+
y1: "5",
|
|
119
|
+
x2: "12",
|
|
120
|
+
y2: "8",
|
|
121
|
+
stroke: c,
|
|
122
|
+
strokeWidth: y,
|
|
123
|
+
strokeLinecap: "round"
|
|
124
|
+
}
|
|
125
|
+
),
|
|
126
|
+
/* @__PURE__ */ e(
|
|
127
|
+
"line",
|
|
128
|
+
{
|
|
129
|
+
x1: "12",
|
|
130
|
+
y1: "16",
|
|
131
|
+
x2: "12",
|
|
132
|
+
y2: "19",
|
|
133
|
+
stroke: c,
|
|
134
|
+
strokeWidth: y,
|
|
135
|
+
strokeLinecap: "round"
|
|
136
|
+
}
|
|
137
|
+
),
|
|
138
|
+
/* @__PURE__ */ e("circle", { cx: "5", cy: "12", r: n * 0.04, fill: c }),
|
|
139
|
+
/* @__PURE__ */ e("circle", { cx: "19", cy: "12", r: n * 0.04, fill: c }),
|
|
140
|
+
/* @__PURE__ */ e("circle", { cx: "12", cy: "5", r: n * 0.04, fill: c }),
|
|
141
|
+
/* @__PURE__ */ e("circle", { cx: "12", cy: "19", r: n * 0.04, fill: c }),
|
|
142
|
+
/* @__PURE__ */ e("circle", { cx: "12", cy: "12", r: n * 0.06, fill: c })
|
|
143
|
+
]
|
|
164
144
|
}
|
|
165
|
-
)
|
|
166
|
-
|
|
167
|
-
|
|
145
|
+
);
|
|
146
|
+
}
|
|
147
|
+
),
|
|
148
|
+
{ displayName: "OmniWerkIcon" }
|
|
149
|
+
), I = /* @__PURE__ */ Object.assign(
|
|
150
|
+
/* @__PURE__ */ w(
|
|
151
|
+
({ fontSize: n = 32, color: o, showTagline: a = !1, className: i, style: s }, l) => {
|
|
152
|
+
const t = o ?? r.primary;
|
|
153
|
+
return /* @__PURE__ */ f("div", { ref: l, className: i, style: s, children: [
|
|
154
|
+
/* @__PURE__ */ e(
|
|
155
|
+
"span",
|
|
156
|
+
{
|
|
157
|
+
style: {
|
|
158
|
+
fontFamily: m.logo,
|
|
159
|
+
fontSize: `${n}px`,
|
|
160
|
+
letterSpacing: `${n * 0.05}px`,
|
|
161
|
+
color: t,
|
|
162
|
+
fontWeight: 400,
|
|
163
|
+
display: "block"
|
|
164
|
+
},
|
|
165
|
+
children: "OMNIWERK"
|
|
166
|
+
}
|
|
167
|
+
),
|
|
168
|
+
a && /* @__PURE__ */ e(
|
|
169
|
+
"span",
|
|
170
|
+
{
|
|
171
|
+
style: {
|
|
172
|
+
fontFamily: m.body,
|
|
173
|
+
fontSize: `${n * 0.35}px`,
|
|
174
|
+
letterSpacing: `${n * 0.08}px`,
|
|
175
|
+
color: t,
|
|
176
|
+
opacity: 0.7,
|
|
177
|
+
fontWeight: 300,
|
|
178
|
+
display: "block"
|
|
179
|
+
},
|
|
180
|
+
children: "Enterprise Solutions"
|
|
181
|
+
}
|
|
182
|
+
)
|
|
183
|
+
] });
|
|
184
|
+
}
|
|
185
|
+
),
|
|
186
|
+
{ displayName: "OmniWerkText" }
|
|
187
|
+
), v = /* @__PURE__ */ Object.assign(
|
|
188
|
+
/* @__PURE__ */ w(
|
|
189
|
+
({
|
|
190
|
+
size: n = "md",
|
|
191
|
+
variant: o = "horizontal",
|
|
192
|
+
color: a,
|
|
193
|
+
gradient: i = !1,
|
|
194
|
+
showTagline: s = !1,
|
|
195
|
+
className: l,
|
|
196
|
+
style: t,
|
|
197
|
+
onClick: d,
|
|
198
|
+
"aria-label": F
|
|
199
|
+
}, c) => {
|
|
200
|
+
const y = W[n], g = a ?? r.primary, p = {
|
|
201
|
+
display: "inline-flex",
|
|
202
|
+
alignItems: "center",
|
|
203
|
+
justifyContent: "center",
|
|
204
|
+
gap: `${y.spacing}px`,
|
|
205
|
+
flexDirection: o === "vertical" ? "column" : "row",
|
|
206
|
+
cursor: d ? "pointer" : void 0,
|
|
207
|
+
...t
|
|
208
|
+
}, k = () => /* @__PURE__ */ e(
|
|
209
|
+
O,
|
|
168
210
|
{
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
letterSpacing: `${n * 0.08}px`,
|
|
173
|
-
color: t,
|
|
174
|
-
opacity: 0.7,
|
|
175
|
-
fontWeight: 300,
|
|
176
|
-
display: "block"
|
|
177
|
-
},
|
|
178
|
-
children: "Enterprise Solutions"
|
|
211
|
+
size: y.icon,
|
|
212
|
+
color: i ? void 0 : g,
|
|
213
|
+
gradient: i || void 0
|
|
179
214
|
}
|
|
180
|
-
)
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
style:
|
|
226
|
-
onClick: d,
|
|
227
|
-
role: d ? "button" : void 0,
|
|
228
|
-
tabIndex: d ? 0 : void 0,
|
|
229
|
-
"aria-label": F ?? "OmniWerk",
|
|
230
|
-
children: [
|
|
231
|
-
o === "icon" && k(),
|
|
232
|
-
o === "text" && x(),
|
|
233
|
-
o === "horizontal" && /* @__PURE__ */ f(h, { children: [
|
|
234
|
-
k(),
|
|
235
|
-
x()
|
|
236
|
-
] }),
|
|
237
|
-
o === "vertical" && /* @__PURE__ */ f(h, { children: [
|
|
238
|
-
k(),
|
|
239
|
-
x()
|
|
240
|
-
] })
|
|
241
|
-
]
|
|
242
|
-
}
|
|
243
|
-
);
|
|
244
|
-
}
|
|
245
|
-
);
|
|
246
|
-
b.displayName = "OmniWerkLogo";
|
|
247
|
-
const O = w(
|
|
248
|
-
({ animate: n = !0, pulseOnHover: o = !0, style: a, ...i }, s) => {
|
|
249
|
-
const [l, t] = E.useState(!1), d = {
|
|
250
|
-
...a,
|
|
251
|
-
animation: n ? "omniwerk-entrance 0.8s ease-out" : void 0,
|
|
252
|
-
transform: o && l ? "scale(1.05)" : "scale(1)",
|
|
253
|
-
transition: "transform 0.15s ease-out"
|
|
254
|
-
};
|
|
255
|
-
return /* @__PURE__ */ f(h, { children: [
|
|
256
|
-
/* @__PURE__ */ e("style", { children: `
|
|
215
|
+
), x = () => /* @__PURE__ */ e(
|
|
216
|
+
I,
|
|
217
|
+
{
|
|
218
|
+
fontSize: y.fontSize,
|
|
219
|
+
color: g,
|
|
220
|
+
showTagline: s
|
|
221
|
+
}
|
|
222
|
+
);
|
|
223
|
+
return /* @__PURE__ */ f(
|
|
224
|
+
"div",
|
|
225
|
+
{
|
|
226
|
+
ref: c,
|
|
227
|
+
className: l,
|
|
228
|
+
style: p,
|
|
229
|
+
onClick: d,
|
|
230
|
+
role: d ? "button" : void 0,
|
|
231
|
+
tabIndex: d ? 0 : void 0,
|
|
232
|
+
"aria-label": F ?? "OmniWerk",
|
|
233
|
+
children: [
|
|
234
|
+
o === "icon" && k(),
|
|
235
|
+
o === "text" && x(),
|
|
236
|
+
o === "horizontal" && /* @__PURE__ */ f(h, { children: [
|
|
237
|
+
k(),
|
|
238
|
+
x()
|
|
239
|
+
] }),
|
|
240
|
+
o === "vertical" && /* @__PURE__ */ f(h, { children: [
|
|
241
|
+
k(),
|
|
242
|
+
x()
|
|
243
|
+
] })
|
|
244
|
+
]
|
|
245
|
+
}
|
|
246
|
+
);
|
|
247
|
+
}
|
|
248
|
+
),
|
|
249
|
+
{ displayName: "OmniWerkLogo" }
|
|
250
|
+
), T = /* @__PURE__ */ Object.assign(
|
|
251
|
+
/* @__PURE__ */ w(
|
|
252
|
+
({ animate: n = !0, pulseOnHover: o = !0, style: a, ...i }, s) => {
|
|
253
|
+
const [l, t] = b.useState(!1), d = {
|
|
254
|
+
...a,
|
|
255
|
+
animation: n ? "omniwerk-entrance 0.8s ease-out" : void 0,
|
|
256
|
+
transform: o && l ? "scale(1.05)" : "scale(1)",
|
|
257
|
+
transition: "transform 0.15s ease-out"
|
|
258
|
+
};
|
|
259
|
+
return /* @__PURE__ */ f(h, { children: [
|
|
260
|
+
/* @__PURE__ */ e("style", { children: `
|
|
257
261
|
@keyframes omniwerk-entrance {
|
|
258
262
|
0% {
|
|
259
263
|
opacity: 0;
|
|
@@ -265,17 +269,17 @@ const O = w(
|
|
|
265
269
|
}
|
|
266
270
|
}
|
|
267
271
|
` }),
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
)
|
|
272
|
-
|
|
273
|
-
|
|
272
|
+
/* @__PURE__ */ e("div", { onMouseEnter: () => t(!0), onMouseLeave: () => t(!1), children: /* @__PURE__ */ e(v, { ref: s, ...i, style: d }) })
|
|
273
|
+
] });
|
|
274
|
+
}
|
|
275
|
+
),
|
|
276
|
+
{ displayName: "OmniWerkAnimatedLogo" }
|
|
277
|
+
), M = ({
|
|
274
278
|
size: n = 48,
|
|
275
279
|
color: o,
|
|
276
280
|
gradient: a = !1
|
|
277
281
|
}) => {
|
|
278
|
-
const i =
|
|
282
|
+
const i = D();
|
|
279
283
|
return /* @__PURE__ */ f(h, { children: [
|
|
280
284
|
/* @__PURE__ */ e("style", { children: `
|
|
281
285
|
@keyframes omniwerk-spin-${i.replace(/:/g, "")} {
|
|
@@ -290,7 +294,7 @@ const M = ({
|
|
|
290
294
|
animation: `omniwerk-spin-${i.replace(/:/g, "")} 2s linear infinite`,
|
|
291
295
|
display: "inline-flex"
|
|
292
296
|
},
|
|
293
|
-
children: /* @__PURE__ */ e(
|
|
297
|
+
children: /* @__PURE__ */ e(O, { size: n, color: o, gradient: a })
|
|
294
298
|
}
|
|
295
299
|
)
|
|
296
300
|
] });
|
|
@@ -301,7 +305,7 @@ const M = ({
|
|
|
301
305
|
onComplete: i,
|
|
302
306
|
duration: s = 2e3
|
|
303
307
|
}) => {
|
|
304
|
-
|
|
308
|
+
b.useEffect(() => {
|
|
305
309
|
if (i) {
|
|
306
310
|
const t = setTimeout(i, s);
|
|
307
311
|
return () => clearTimeout(t);
|
|
@@ -324,7 +328,7 @@ const M = ({
|
|
|
324
328
|
...l
|
|
325
329
|
},
|
|
326
330
|
children: /* @__PURE__ */ e(
|
|
327
|
-
|
|
331
|
+
T,
|
|
328
332
|
{
|
|
329
333
|
size: "xxl",
|
|
330
334
|
variant: "vertical",
|
|
@@ -335,7 +339,7 @@ const M = ({
|
|
|
335
339
|
)
|
|
336
340
|
}
|
|
337
341
|
);
|
|
338
|
-
}, _ = () => /* @__PURE__ */ e("style", { children:
|
|
342
|
+
}, _ = () => /* @__PURE__ */ e("style", { children: E }), B = `
|
|
339
343
|
:root {
|
|
340
344
|
/* Primary */
|
|
341
345
|
--omniwerk-primary: ${r.primary};
|
|
@@ -378,7 +382,7 @@ const M = ({
|
|
|
378
382
|
--omniwerk-on-surface: ${r.onSurfaceDark};
|
|
379
383
|
--omniwerk-outline: ${r.outlineDark};
|
|
380
384
|
}
|
|
381
|
-
`,
|
|
385
|
+
`, j = {
|
|
382
386
|
theme: {
|
|
383
387
|
extend: {
|
|
384
388
|
colors: {
|
|
@@ -416,7 +420,7 @@ const M = ({
|
|
|
416
420
|
}
|
|
417
421
|
}
|
|
418
422
|
}
|
|
419
|
-
},
|
|
423
|
+
}, $ = {
|
|
420
424
|
palette: {
|
|
421
425
|
primary: {
|
|
422
426
|
main: r.primary,
|
|
@@ -454,34 +458,36 @@ const M = ({
|
|
|
454
458
|
h3: u.md,
|
|
455
459
|
h4: u.sm
|
|
456
460
|
}
|
|
457
|
-
},
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
461
|
+
}, K = /* @__PURE__ */ (function() {
|
|
462
|
+
return {
|
|
463
|
+
...$,
|
|
464
|
+
palette: {
|
|
465
|
+
...$.palette,
|
|
466
|
+
mode: "dark",
|
|
467
|
+
background: {
|
|
468
|
+
default: r.backgroundDark,
|
|
469
|
+
paper: r.surfaceDark
|
|
470
|
+
}
|
|
465
471
|
}
|
|
466
|
-
}
|
|
467
|
-
};
|
|
472
|
+
};
|
|
473
|
+
})();
|
|
468
474
|
export {
|
|
469
475
|
r as OMNIWERK_COLORS,
|
|
470
476
|
B as OMNIWERK_CSS_VARS,
|
|
471
477
|
m as OMNIWERK_FONTS,
|
|
472
478
|
P as OMNIWERK_FONT_FACE,
|
|
473
|
-
|
|
474
|
-
|
|
479
|
+
E as OMNIWERK_FONT_IMPORT,
|
|
480
|
+
S as OMNIWERK_GRADIENTS,
|
|
475
481
|
u as OMNIWERK_LOGO_STYLES,
|
|
476
|
-
|
|
482
|
+
T as OmniWerkAnimatedLogo,
|
|
477
483
|
_ as OmniWerkFontLoader,
|
|
478
|
-
|
|
484
|
+
O as OmniWerkIcon,
|
|
479
485
|
M as OmniWerkLoadingSpinner,
|
|
480
|
-
|
|
486
|
+
v as OmniWerkLogo,
|
|
481
487
|
C as OmniWerkSplash,
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
488
|
+
I as OmniWerkText,
|
|
489
|
+
v as default,
|
|
490
|
+
K as omniWerkMuiDarkTheme,
|
|
491
|
+
$ as omniWerkMuiTheme,
|
|
492
|
+
j as omniWerkTailwindPreset
|
|
487
493
|
};
|
package/package.json
CHANGED