@brightlocal/ui-components 0.3.1 → 0.4.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/accordion.cjs +1 -1
- package/dist/accordion.js +1 -1
- package/dist/alert.d.ts +2 -2
- package/dist/alert.js +3 -3
- package/dist/blocks/data-table.cjs +1 -1
- package/dist/blocks/data-table.js +30 -30
- package/dist/blocks/sidebar.cjs +1 -1
- package/dist/blocks/sidebar.d.ts +2 -2
- package/dist/blocks/sidebar.d.ts.map +1 -1
- package/dist/blocks/sidebar.js +4 -4
- package/dist/breadcrumb.cjs +1 -1
- package/dist/breadcrumb.js +12 -12
- package/dist/button.d.ts +1 -1
- package/dist/calendar.cjs +1 -1
- package/dist/calendar.d.ts.map +1 -1
- package/dist/calendar.js +6 -3
- package/dist/card.cjs +1 -1
- package/dist/card.d.ts +5 -0
- package/dist/card.d.ts.map +1 -1
- package/dist/card.js +49 -36
- package/dist/carousel.js +3 -3
- package/dist/centred-layout.cjs +1 -1
- package/dist/centred-layout.d.ts +4 -9
- package/dist/centred-layout.d.ts.map +1 -1
- package/dist/centred-layout.js +33 -48
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.js +8 -8
- package/dist/combobox.cjs +1 -1
- package/dist/combobox.d.ts +12 -7
- package/dist/combobox.d.ts.map +1 -1
- package/dist/combobox.js +117 -104
- package/dist/command.cjs +1 -1
- package/dist/command.js +3 -3
- package/dist/context-menu.cjs +1 -1
- package/dist/context-menu.js +3 -3
- package/dist/date-picker.js +4 -4
- package/dist/dropdown-menu.cjs +1 -1
- package/dist/dropdown-menu.js +10 -10
- package/dist/field.cjs +1 -1
- package/dist/field.d.ts +103 -10
- package/dist/field.d.ts.map +1 -1
- package/dist/field.js +113 -60
- package/dist/header.d.ts.map +1 -1
- package/dist/header.js +4 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +351 -349
- package/dist/input-chip.cjs +1 -1
- package/dist/input-chip.js +1 -1
- package/dist/input-group.d.ts +1 -1
- package/dist/input-otp.js +3 -3
- package/dist/input-password.cjs +1 -1
- package/dist/input-password.js +63 -63
- package/dist/label.cjs +1 -1
- package/dist/label.js +1 -1
- package/dist/link.cjs +1 -1
- package/dist/link.d.ts +5 -0
- package/dist/link.d.ts.map +1 -1
- package/dist/link.js +26 -25
- package/dist/logo.cjs +1 -1
- package/dist/logo.d.ts.map +1 -1
- package/dist/logo.js +17 -16
- package/dist/menubar.cjs +1 -1
- package/dist/menubar.js +3 -3
- package/dist/navigation-menu.cjs +1 -1
- package/dist/navigation-menu.d.ts.map +1 -1
- package/dist/navigation-menu.js +2 -1
- package/dist/pagination.cjs +1 -1
- package/dist/pagination.d.ts +1 -1
- package/dist/pagination.js +17 -17
- package/dist/radio-group.d.ts +2 -2
- package/dist/rating.cjs +1 -1
- package/dist/rating.js +8 -8
- package/dist/resizable.cjs +1 -1
- package/dist/resizable.d.ts +1 -1
- package/dist/resizable.js +1 -1
- package/dist/select.cjs +1 -1
- package/dist/select.d.ts +19 -14
- package/dist/select.d.ts.map +1 -1
- package/dist/select.js +108 -139
- package/dist/sheet.d.ts +1 -1
- package/dist/sonner.cjs +1 -1
- package/dist/sonner.d.ts.map +1 -1
- package/dist/sonner.js +10 -9
- package/dist/switch.d.ts +1 -1
- package/package.json +9 -9
- package/src/blocks/data-table.tsx +5 -5
- package/src/blocks/sidebar.tsx +3 -2
- package/src/components/accordion.tsx +1 -1
- package/src/components/breadcrumb.tsx +1 -1
- package/src/components/calendar.tsx +6 -3
- package/src/components/card.tsx +24 -1
- package/src/components/centred-layout.tsx +8 -31
- package/src/components/checkbox.tsx +2 -2
- package/src/components/combobox.tsx +21 -5
- package/src/components/command.tsx +3 -3
- package/src/components/context-menu.tsx +3 -3
- package/src/components/dropdown-menu.tsx +4 -4
- package/src/components/field.tsx +187 -20
- package/src/components/header.tsx +4 -1
- package/src/components/input-password.tsx +4 -4
- package/src/components/label.tsx +1 -1
- package/src/components/link.tsx +8 -2
- package/src/components/logo.tsx +10 -9
- package/src/components/menubar.tsx +3 -3
- package/src/components/navigation-menu.tsx +2 -1
- package/src/components/pagination.tsx +3 -3
- package/src/components/rating.tsx +2 -2
- package/src/components/resizable.tsx +1 -1
- package/src/components/select.tsx +26 -90
- package/src/components/sonner.tsx +6 -5
package/dist/input-chip.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("react/jsx-runtime"),F=require("react"),q=require("class-variance-authority"),D=require("@brightlocal/ui-components/lib/utils"),E=require("@brightlocal/ui-components/chip");function N(s){const f=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const n in s)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(s,n);Object.defineProperty(f,n,a.get?a:{enumerable:!0,get:()=>s[n]})}}return f.default=s,Object.freeze(f)}const u=N(F),S=u.createContext(null);function V(){const s=u.useContext(S);if(!s)throw new Error("InputChip components must be used within an <InputChip>");return s}function O({value:s,defaultValue:f=[],onValueChange:n,disabled:a=!1,allowDuplicates:h=!1,children:d}){const[o,i]=u.useState(f),[l,v]=u.useState(""),[b,m]=u.useState(-1),t=u.useRef(null),e=u.useRef([]),c=s!==void 0,r=c?s:o;u.useEffect(()=>{e.current.length>r.length&&(e.current.length=r.length),b>=r.length&&m(-1)},[r.length,b]);const g=u.useCallback(C=>{c||i(C),n?.(C)},[c,n]),R=u.useCallback(C=>{if(a)return;const I=C.trim();I&&(h||!r.includes(I))&&(g([...r,I]),v(""))},[r,g,h,a]),k=u.useCallback(C=>{a||g(r.filter((I,p)=>p!==C))},[r,g,a]),x=u.useMemo(()=>({value:r,onValueChange:g,inputValue:l,setInputValue:v,disabled:a,addItem:R,removeItem:k,inputRef:t,focusedChipIndex:b,setFocusedChipIndex:m,chipRefs:e}),[r,g,l,v,a,R,k,t,b,m,e]);return w.jsx(S.Provider,{value:x,children:d})}const j=q.cva(["relative flex w-full flex-wrap items-center gap-1","min-h-9 rounded-sm border border-input bg-background","px-3 py-2","has-[:focus-visible]:border-ring has-[:focus-visible]:bg-background","has-[:focus-visible]:shadow-default","has-[:disabled]:cursor-not-allowed has-[:disabled]:opacity-50","transition-[color,box-shadow,border-color]","duration-150","ease-in-out"],{variants:{error:{true:["border-red-600/40 dark:border-red-400/60","has-[:focus-visible]:border-destructive has-[:focus-visible]:shadow-destructive"],false:""}},defaultVariants:{error:!1}}),$=["flex-1 min-w-20","bg-transparent","border-0 outline-none","text-sm font-sans","text-foreground","placeholder:text-muted-foreground","focus:outline-none focus-visible:outline-none","disabled:cursor-not-allowed disabled:opacity-50"],A=u.forwardRef(({className:s,error:f=!1,dataHook:n,trackingEl:a,trackingLabel:h,placeholder:d,inputId:o,"aria-label":i,"aria-labelledby":l,children:v,...b},m)=>{const{value:t,inputValue:e,setInputValue:c,disabled:r,addItem:g,inputRef:R,setFocusedChipIndex:k,chipRefs:x}=V(),C=p=>{c(p.target.value)},I=p=>{if(p.key==="Enter"&&e.trim()&&(p.preventDefault(),g(e)),p.key==="ArrowLeft"&&!e&&t.length>0){p.preventDefault();const y=t.length-1;k(y),x.current[y]?.focus()}if(p.key==="Backspace"&&!e&&t.length>0){p.preventDefault();const y=t.length-1;k(y),x.current[y]?.focus()}};return w.jsxs("div",{ref:m,className:D.cn(j({error:f}),s),"data-hook":n,"data-slot":"input-chip","data-tracking-el":a,"data-tracking-label":h,...b,children:[v,w.jsx("input",{ref:R,"aria-label":i,"aria-labelledby":l,className:D.cn($),"data-slot":"input-chip-input",disabled:r,id:o,placeholder:d,type:"text",value:e,onChange:C,onKeyDown:I})]})});A.displayName="InputChipInput";function B({className:s,dataHookPrefix:f="chip"}){const{value:n,disabled:a,removeItem:h,inputRef:d,setFocusedChipIndex:o,chipRefs:i}=V(),l=u.useRef(null);u.useEffect(()=>{if(l.current!==null){if(l.current==="input")d.current?.focus();else{const t=l.current;t>=0&&t<n.length?i.current[t]?.focus():n.length>0?i.current[n.length-1]?.focus():d.current?.focus()}l.current=null}},[n.length,d,i]);const v=(t,e)=>{if(!a)switch(t.key){case"ArrowLeft":t.preventDefault(),e>0&&(o(e-1),i.current[e-1]?.focus());break;case"ArrowRight":t.preventDefault(),e<n.length-1?(o(e+1),i.current[e+1]?.focus()):(o(-1),d.current?.focus());break;case"Backspace":case"Delete":{t.preventDefault();const c=n.length-1;if(c===0)o(-1),l.current="input",h(e);else if(e>=c){const r=c-1;o(r),l.current=r,h(e)}else o(e),l.current=e,h(e);break}case"Home":t.preventDefault(),n.length>0&&(o(0),i.current[0]?.focus());break;case"End":t.preventDefault(),o(-1),d.current?.focus();break}},b=t=>{o(t)},m=t=>{const e=t.relatedTarget
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("react/jsx-runtime"),F=require("react"),q=require("class-variance-authority"),D=require("@brightlocal/ui-components/lib/utils"),E=require("@brightlocal/ui-components/chip");function N(s){const f=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const n in s)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(s,n);Object.defineProperty(f,n,a.get?a:{enumerable:!0,get:()=>s[n]})}}return f.default=s,Object.freeze(f)}const u=N(F),S=u.createContext(null);function V(){const s=u.useContext(S);if(!s)throw new Error("InputChip components must be used within an <InputChip>");return s}function O({value:s,defaultValue:f=[],onValueChange:n,disabled:a=!1,allowDuplicates:h=!1,children:d}){const[o,i]=u.useState(f),[l,v]=u.useState(""),[b,m]=u.useState(-1),t=u.useRef(null),e=u.useRef([]),c=s!==void 0,r=c?s:o;u.useEffect(()=>{e.current.length>r.length&&(e.current.length=r.length),b>=r.length&&m(-1)},[r.length,b]);const g=u.useCallback(C=>{c||i(C),n?.(C)},[c,n]),R=u.useCallback(C=>{if(a)return;const I=C.trim();I&&(h||!r.includes(I))&&(g([...r,I]),v(""))},[r,g,h,a]),k=u.useCallback(C=>{a||g(r.filter((I,p)=>p!==C))},[r,g,a]),x=u.useMemo(()=>({value:r,onValueChange:g,inputValue:l,setInputValue:v,disabled:a,addItem:R,removeItem:k,inputRef:t,focusedChipIndex:b,setFocusedChipIndex:m,chipRefs:e}),[r,g,l,v,a,R,k,t,b,m,e]);return w.jsx(S.Provider,{value:x,children:d})}const j=q.cva(["relative flex w-full flex-wrap items-center gap-1","min-h-9 rounded-sm border border-input bg-background","px-3 py-2","has-[:focus-visible]:border-ring has-[:focus-visible]:bg-background","has-[:focus-visible]:shadow-default","has-[:disabled]:cursor-not-allowed has-[:disabled]:opacity-50","transition-[color,box-shadow,border-color]","duration-150","ease-in-out"],{variants:{error:{true:["border-red-600/40 dark:border-red-400/60","has-[:focus-visible]:border-destructive has-[:focus-visible]:shadow-destructive"],false:""}},defaultVariants:{error:!1}}),$=["flex-1 min-w-20","bg-transparent","border-0 outline-none","text-sm font-sans","text-foreground","placeholder:text-muted-foreground","focus:outline-none focus-visible:outline-none","disabled:cursor-not-allowed disabled:opacity-50"],A=u.forwardRef(({className:s,error:f=!1,dataHook:n,trackingEl:a,trackingLabel:h,placeholder:d,inputId:o,"aria-label":i,"aria-labelledby":l,children:v,...b},m)=>{const{value:t,inputValue:e,setInputValue:c,disabled:r,addItem:g,inputRef:R,setFocusedChipIndex:k,chipRefs:x}=V(),C=p=>{c(p.target.value)},I=p=>{if(p.key==="Enter"&&e.trim()&&(p.preventDefault(),g(e)),p.key==="ArrowLeft"&&!e&&t.length>0){p.preventDefault();const y=t.length-1;k(y),x.current[y]?.focus()}if(p.key==="Backspace"&&!e&&t.length>0){p.preventDefault();const y=t.length-1;k(y),x.current[y]?.focus()}};return w.jsxs("div",{ref:m,className:D.cn(j({error:f}),s),"data-hook":n,"data-slot":"input-chip","data-tracking-el":a,"data-tracking-label":h,...b,children:[v,w.jsx("input",{ref:R,"aria-label":i,"aria-labelledby":l,className:D.cn($),"data-slot":"input-chip-input",disabled:r,id:o,placeholder:d,type:"text",value:e,onChange:C,onKeyDown:I})]})});A.displayName="InputChipInput";function B({className:s,dataHookPrefix:f="chip"}){const{value:n,disabled:a,removeItem:h,inputRef:d,setFocusedChipIndex:o,chipRefs:i}=V(),l=u.useRef(null);u.useEffect(()=>{if(l.current!==null){if(l.current==="input")d.current?.focus();else{const t=l.current;t>=0&&t<n.length?i.current[t]?.focus():n.length>0?i.current[n.length-1]?.focus():d.current?.focus()}l.current=null}},[n.length,d,i]);const v=(t,e)=>{if(!a)switch(t.key){case"ArrowLeft":t.preventDefault(),e>0&&(o(e-1),i.current[e-1]?.focus());break;case"ArrowRight":t.preventDefault(),e<n.length-1?(o(e+1),i.current[e+1]?.focus()):(o(-1),d.current?.focus());break;case"Backspace":case"Delete":{t.preventDefault();const c=n.length-1;if(c===0)o(-1),l.current="input",h(e);else if(e>=c){const r=c-1;o(r),l.current=r,h(e)}else o(e),l.current=e,h(e);break}case"Home":t.preventDefault(),n.length>0&&(o(0),i.current[0]?.focus());break;case"End":t.preventDefault(),o(-1),d.current?.focus();break}},b=t=>{o(t)},m=t=>{const e=t.relatedTarget;e&&(e.closest('[data-slot="chip"]')!==null||e.dataset.slot==="input-chip-input")||o(-1)};return n.length===0?null:w.jsx("div",{className:D.cn("contents",s),"data-slot":"input-chip-items",children:n.map((t,e)=>w.jsx(E.Chip,{ref:c=>{i.current[e]=c},"aria-label":`${t}, press Delete to remove`,dataHook:`${f}-${e}`,disabled:a,role:"group",tabIndex:-1,onBlur:m,onFocus:()=>b(e),onKeyDown:c=>v(c,e),onRemove:()=>h(e),children:t},`${t}-${e}`))})}const K=j;exports.InputChip=O;exports.InputChipInput=A;exports.InputChipItems=B;exports.inputChipInputVariants=j;exports.inputChipVariants=K;exports.useInputChipContext=V;
|
package/dist/input-chip.js
CHANGED
|
@@ -244,7 +244,7 @@ function W({
|
|
|
244
244
|
o(t);
|
|
245
245
|
}, v = (t) => {
|
|
246
246
|
const e = t.relatedTarget;
|
|
247
|
-
|
|
247
|
+
e && (e.closest('[data-slot="chip"]') !== null || e.dataset.slot === "input-chip-input") || o(-1);
|
|
248
248
|
};
|
|
249
249
|
return s.length === 0 ? null : /* @__PURE__ */ D(
|
|
250
250
|
"div",
|
package/dist/input-group.d.ts
CHANGED
|
@@ -33,7 +33,7 @@ interface InputGroupAddonProps extends React.HTMLAttributes<HTMLDivElement>, Var
|
|
|
33
33
|
}
|
|
34
34
|
declare const InputGroupAddon: React.ForwardRefExoticComponent<InputGroupAddonProps & React.RefAttributes<HTMLDivElement>>;
|
|
35
35
|
declare const inputGroupButtonVariants: (props?: ({
|
|
36
|
-
variant?: "
|
|
36
|
+
variant?: "ghost" | "default" | null | undefined;
|
|
37
37
|
size?: "default" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
|
|
38
38
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
39
39
|
interface InputGroupButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof inputGroupButtonVariants> {
|
package/dist/input-otp.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as e, jsxs as h } from "react/jsx-runtime";
|
|
2
2
|
import * as s from "react";
|
|
3
|
-
import { OTPInput as v,
|
|
3
|
+
import { OTPInput as v, REGEXP_ONLY_DIGITS as x, OTPInputContext as N } from "input-otp";
|
|
4
4
|
import { REGEXP_ONLY_CHARS as W, REGEXP_ONLY_DIGITS as X, REGEXP_ONLY_DIGITS_AND_CHARS as Y } from "input-otp";
|
|
5
5
|
import { MinusIcon as b } from "@brightlocal/icons";
|
|
6
6
|
import { cn as I } from "@brightlocal/ui-components/lib/utils";
|
|
@@ -61,7 +61,7 @@ function f({ className: t, ...r }) {
|
|
|
61
61
|
}
|
|
62
62
|
function p({ index: t, className: r, ...n }) {
|
|
63
63
|
const { error: o } = y(), a = s.useContext(
|
|
64
|
-
|
|
64
|
+
N
|
|
65
65
|
), { char: u, hasFakeCaret: i, isActive: d } = a?.slots[t] ?? {};
|
|
66
66
|
return /* @__PURE__ */ h(
|
|
67
67
|
"div",
|
|
@@ -141,7 +141,7 @@ const _ = s.forwardRef(({ maxLength: t = 6, ...r }, n) => /* @__PURE__ */ e(
|
|
|
141
141
|
inputMode: "numeric",
|
|
142
142
|
maxLength: t,
|
|
143
143
|
pasteTransformer: (o) => o.replace(/\D+/g, "").slice(0, t),
|
|
144
|
-
pattern:
|
|
144
|
+
pattern: x,
|
|
145
145
|
...r,
|
|
146
146
|
children: /* @__PURE__ */ e(f, { children: Array.from({ length: t }, (o, a) => /* @__PURE__ */ e(p, { index: a }, a)) })
|
|
147
147
|
}
|
package/dist/input-password.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),D=require("react"),P=require("@brightlocal/icons"),M=require("@brightlocal/ui-components/progress"),S=require("@brightlocal/ui-components/lib/utils"),w=require("@brightlocal/ui-components/input-group");function $(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const a=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,a.get?a:{enumerable:!0,get:()=>e[o]})}}return t.default=e,Object.freeze(t)}const r=$(D),C={meter:{label:"Meter",value:0,color:"bg-green-500"},weak:{label:"Weak",value:25,color:"bg-green-500"},ok:{label:"Ok",value:50,color:"bg-green-500"},good:{label:"Good",value:75,color:"bg-green-500"},great:{label:"Great",value:100,color:"bg-green-500"}};function O(e){if(!e||e.length===0)return"meter";if(e.length<12)return"weak";let t=0;return e.length>=16&&(t+=1),/[a-z]/.test(e)&&(t+=1),/[A-Z]/.test(e)&&(t+=1),/[0-9]/.test(e)&&(t+=1),/[^a-zA-Z0-9]/.test(e)&&(t+=1),t<=1?"ok":t<=3?"good":"great"}const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),D=require("react"),P=require("@brightlocal/icons"),M=require("@brightlocal/ui-components/progress"),S=require("@brightlocal/ui-components/lib/utils"),w=require("@brightlocal/ui-components/input-group");function $(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const a=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,a.get?a:{enumerable:!0,get:()=>e[o]})}}return t.default=e,Object.freeze(t)}const r=$(D),C={meter:{label:"Meter",value:0,color:"bg-green-500"},weak:{label:"Weak",value:25,color:"bg-green-500"},ok:{label:"Ok",value:50,color:"bg-green-500"},good:{label:"Good",value:75,color:"bg-green-500"},great:{label:"Great",value:100,color:"bg-green-500"}};function O(e){if(!e||e.length===0)return"meter";if(e.length<12)return"weak";let t=0;return e.length>=16&&(t+=1),/[a-z]/.test(e)&&(t+=1),/[A-Z]/.test(e)&&(t+=1),/[0-9]/.test(e)&&(t+=1),/[^a-zA-Z0-9]/.test(e)&&(t+=1),t<=1?"ok":t<=3?"good":"great"}const z=r.createContext(null);function v(){const e=r.useContext(z);if(!e)throw new Error("InputPassword compound components must be used within InputPasswordRoot");return e}function L({children:e,dataHook:t,trackingEl:o,trackingLabel:a,disabled:i,value:n,onChange:l,onStrengthChange:u,strengthLevels:p,calculateStrength:d,error:c,id:x,className:I}){const[f,h]=r.useState(!1),[j,m]=r.useState(""),[y,V]=r.useState("meter"),A=r.useId(),k=x||A,b=n!==void 0?n:j,E=p??C,N=d??O,T=r.useCallback(g=>{n===void 0&&m(g),l?.(g)},[n,l]),R=r.useCallback(()=>{h(g=>!g)},[]);r.useEffect(()=>{const g=setTimeout(()=>{const G=N(b);V(G),u?.(G)},180);return()=>clearTimeout(g)},[b,N,u]);const F=r.useMemo(()=>({showPassword:f,setShowPassword:h,toggleVisibility:R,password:b,setPassword:T,strength:y,strengthLevels:E,disabled:i,dataHook:t,trackingEl:o,trackingLabel:a,inputId:k,error:c}),[f,R,b,T,y,E,i,t,o,a,k,c]);return s.jsx(z.Provider,{value:F,children:s.jsx("div",{className:S.cn("w-full",I),children:e})})}L.displayName="InputPasswordRoot";const H=r.forwardRef(({className:e,groupClassName:t,onChange:o,...a},i)=>{const{showPassword:n,toggleVisibility:l,password:u,setPassword:p,disabled:d,dataHook:c,trackingEl:x,trackingLabel:I,inputId:f,error:h}=v(),j=m=>{p(m.target.value),o?.(m)};return s.jsxs(w.InputGroup,{className:t,dataHook:c,error:h,children:[s.jsx(w.InputGroupInput,{ref:i,className:e,disabled:d,id:f,trackingEl:x,trackingLabel:I,type:n?"text":"password",value:u,onChange:j,...a}),s.jsx(w.InputGroupAddon,{align:"inline-end",children:s.jsx(w.InputGroupButton,{"aria-label":n?"Hide password":"Show password","data-hook":`${c}-toggle`,disabled:d,size:"icon",variant:"ghost",onClick:l,children:n?s.jsx(P.EyeOff,{size:16}):s.jsx(P.Eye,{size:16})})})]})});H.displayName="InputPasswordField";const _=r.forwardRef(({className:e,showLabel:t="Show password",hideLabel:o="Hide password",size:a="icon",variant:i="ghost",...n},l)=>{const{showPassword:u,toggleVisibility:p,disabled:d,dataHook:c}=v();return s.jsx(w.InputGroupButton,{ref:l,"aria-label":u?o:t,className:e,"data-hook":`${c}-toggle`,disabled:d,size:a,variant:i,onClick:p,...n,children:u?s.jsx(P.EyeOff,{size:16}):s.jsx(P.Eye,{size:16})})});_.displayName="InputPasswordToggle";function q({className:e,showLabel:t=!0}){const{strength:o,strengthLevels:a,dataHook:i,disabled:n}=v(),l=a[o]??{label:o,value:0,color:"bg-muted"};return s.jsx("div",{className:S.cn("mt-1 space-y-2",e),children:s.jsxs("div",{className:S.cn("flex items-center gap-2",n&&"opacity-50"),children:[s.jsx(M.Progress,{className:"h-2 flex-1",dataHook:`${i}-strength-progress`,indicatorClassName:l.color,value:l.value}),t&&s.jsx("span",{className:"text-foreground w-10 shrink-0 text-right text-sm font-medium whitespace-nowrap","data-hook":`${i}-strength-label`,children:l.label})]})})}q.displayName="InputPasswordStrength";exports.DEFAULT_STRENGTH_LEVELS=C;exports.InputPasswordField=H;exports.InputPasswordRoot=L;exports.InputPasswordStrength=q;exports.InputPasswordToggle=_;exports.calculatePasswordStrength=O;
|
package/dist/input-password.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import * as
|
|
3
|
-
import { EyeOff as
|
|
1
|
+
import { jsxs as G, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import * as r from "react";
|
|
3
|
+
import { EyeOff as R, Eye as T } from "@brightlocal/icons";
|
|
4
4
|
import { Progress as F } from "@brightlocal/ui-components/progress";
|
|
5
5
|
import { cn as P } from "@brightlocal/ui-components/lib/utils";
|
|
6
|
-
import { InputGroup as j, InputGroupInput as M, InputGroupAddon as O, InputGroupButton as
|
|
6
|
+
import { InputGroup as j, InputGroupInput as M, InputGroupAddon as O, InputGroupButton as H } from "@brightlocal/ui-components/input-group";
|
|
7
7
|
const Z = {
|
|
8
8
|
meter: { label: "Meter", value: 0, color: "bg-green-500" },
|
|
9
9
|
weak: { label: "Weak", value: 25, color: "bg-green-500" },
|
|
@@ -19,9 +19,9 @@ function _(e) {
|
|
|
19
19
|
let t = 0;
|
|
20
20
|
return e.length >= 16 && (t += 1), /[a-z]/.test(e) && (t += 1), /[A-Z]/.test(e) && (t += 1), /[0-9]/.test(e) && (t += 1), /[^a-zA-Z0-9]/.test(e) && (t += 1), t <= 1 ? "ok" : t <= 3 ? "good" : "great";
|
|
21
21
|
}
|
|
22
|
-
const
|
|
22
|
+
const L = r.createContext(null);
|
|
23
23
|
function v() {
|
|
24
|
-
const e =
|
|
24
|
+
const e = r.useContext(L);
|
|
25
25
|
if (!e)
|
|
26
26
|
throw new Error(
|
|
27
27
|
"InputPassword compound components must be used within InputPasswordRoot"
|
|
@@ -31,136 +31,136 @@ function v() {
|
|
|
31
31
|
function B({
|
|
32
32
|
children: e,
|
|
33
33
|
dataHook: t,
|
|
34
|
-
trackingEl:
|
|
34
|
+
trackingEl: a,
|
|
35
35
|
trackingLabel: i,
|
|
36
36
|
disabled: l,
|
|
37
37
|
value: s,
|
|
38
|
-
onChange:
|
|
39
|
-
onStrengthChange:
|
|
40
|
-
strengthLevels:
|
|
38
|
+
onChange: n,
|
|
39
|
+
onStrengthChange: d,
|
|
40
|
+
strengthLevels: p,
|
|
41
41
|
calculateStrength: u,
|
|
42
|
-
error:
|
|
42
|
+
error: c,
|
|
43
43
|
id: b,
|
|
44
44
|
className: I
|
|
45
45
|
}) {
|
|
46
|
-
const [
|
|
46
|
+
const [h, m] = r.useState(!1), [k, w] = r.useState(""), [x, V] = r.useState("meter"), A = r.useId(), S = b || A, f = s !== void 0 ? s : k, y = p ?? Z, N = u ?? _, C = r.useCallback(
|
|
47
47
|
(g) => {
|
|
48
|
-
s === void 0 && w(g),
|
|
48
|
+
s === void 0 && w(g), n?.(g);
|
|
49
49
|
},
|
|
50
|
-
[s,
|
|
51
|
-
), E =
|
|
50
|
+
[s, n]
|
|
51
|
+
), E = r.useCallback(() => {
|
|
52
52
|
m((g) => !g);
|
|
53
53
|
}, []);
|
|
54
|
-
|
|
54
|
+
r.useEffect(() => {
|
|
55
55
|
const g = setTimeout(() => {
|
|
56
|
-
const
|
|
57
|
-
|
|
56
|
+
const z = N(f);
|
|
57
|
+
V(z), d?.(z);
|
|
58
58
|
}, 180);
|
|
59
59
|
return () => clearTimeout(g);
|
|
60
|
-
}, [f,
|
|
61
|
-
const
|
|
60
|
+
}, [f, N, d]);
|
|
61
|
+
const $ = r.useMemo(
|
|
62
62
|
() => ({
|
|
63
|
-
showPassword:
|
|
63
|
+
showPassword: h,
|
|
64
64
|
setShowPassword: m,
|
|
65
65
|
toggleVisibility: E,
|
|
66
66
|
password: f,
|
|
67
67
|
setPassword: C,
|
|
68
|
-
strength:
|
|
69
|
-
strengthLevels:
|
|
68
|
+
strength: x,
|
|
69
|
+
strengthLevels: y,
|
|
70
70
|
disabled: l,
|
|
71
71
|
dataHook: t,
|
|
72
|
-
trackingEl:
|
|
72
|
+
trackingEl: a,
|
|
73
73
|
trackingLabel: i,
|
|
74
|
-
inputId:
|
|
75
|
-
error:
|
|
74
|
+
inputId: S,
|
|
75
|
+
error: c
|
|
76
76
|
}),
|
|
77
77
|
[
|
|
78
|
-
|
|
78
|
+
h,
|
|
79
79
|
E,
|
|
80
80
|
f,
|
|
81
81
|
C,
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
x,
|
|
83
|
+
y,
|
|
84
84
|
l,
|
|
85
85
|
t,
|
|
86
|
-
|
|
86
|
+
a,
|
|
87
87
|
i,
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
S,
|
|
89
|
+
c
|
|
90
90
|
]
|
|
91
91
|
);
|
|
92
|
-
return /* @__PURE__ */ o(
|
|
92
|
+
return /* @__PURE__ */ o(L.Provider, { value: $, children: /* @__PURE__ */ o("div", { className: P("w-full", I), children: e }) });
|
|
93
93
|
}
|
|
94
94
|
B.displayName = "InputPasswordRoot";
|
|
95
|
-
const D =
|
|
95
|
+
const D = r.forwardRef(({ className: e, groupClassName: t, onChange: a, ...i }, l) => {
|
|
96
96
|
const {
|
|
97
97
|
showPassword: s,
|
|
98
|
-
toggleVisibility:
|
|
99
|
-
password:
|
|
100
|
-
setPassword:
|
|
98
|
+
toggleVisibility: n,
|
|
99
|
+
password: d,
|
|
100
|
+
setPassword: p,
|
|
101
101
|
disabled: u,
|
|
102
|
-
dataHook:
|
|
102
|
+
dataHook: c,
|
|
103
103
|
trackingEl: b,
|
|
104
104
|
trackingLabel: I,
|
|
105
|
-
inputId:
|
|
105
|
+
inputId: h,
|
|
106
106
|
error: m
|
|
107
107
|
} = v();
|
|
108
|
-
return /* @__PURE__ */
|
|
108
|
+
return /* @__PURE__ */ G(j, { className: t, dataHook: c, error: m, children: [
|
|
109
109
|
/* @__PURE__ */ o(
|
|
110
110
|
M,
|
|
111
111
|
{
|
|
112
112
|
ref: l,
|
|
113
113
|
className: e,
|
|
114
114
|
disabled: u,
|
|
115
|
-
id:
|
|
115
|
+
id: h,
|
|
116
116
|
trackingEl: b,
|
|
117
117
|
trackingLabel: I,
|
|
118
118
|
type: s ? "text" : "password",
|
|
119
|
-
value:
|
|
119
|
+
value: d,
|
|
120
120
|
onChange: (w) => {
|
|
121
|
-
|
|
121
|
+
p(w.target.value), a?.(w);
|
|
122
122
|
},
|
|
123
123
|
...i
|
|
124
124
|
}
|
|
125
125
|
),
|
|
126
126
|
/* @__PURE__ */ o(O, { align: "inline-end", children: /* @__PURE__ */ o(
|
|
127
|
-
|
|
127
|
+
H,
|
|
128
128
|
{
|
|
129
129
|
"aria-label": s ? "Hide password" : "Show password",
|
|
130
|
-
"data-hook": `${
|
|
130
|
+
"data-hook": `${c}-toggle`,
|
|
131
131
|
disabled: u,
|
|
132
132
|
size: "icon",
|
|
133
133
|
variant: "ghost",
|
|
134
|
-
onClick:
|
|
135
|
-
children: s ? /* @__PURE__ */ o(
|
|
134
|
+
onClick: n,
|
|
135
|
+
children: s ? /* @__PURE__ */ o(R, { size: 16 }) : /* @__PURE__ */ o(T, { size: 16 })
|
|
136
136
|
}
|
|
137
137
|
) })
|
|
138
138
|
] });
|
|
139
139
|
});
|
|
140
140
|
D.displayName = "InputPasswordField";
|
|
141
|
-
const U =
|
|
141
|
+
const U = r.forwardRef(
|
|
142
142
|
({
|
|
143
143
|
className: e,
|
|
144
144
|
showLabel: t = "Show password",
|
|
145
|
-
hideLabel:
|
|
145
|
+
hideLabel: a = "Hide password",
|
|
146
146
|
size: i = "icon",
|
|
147
147
|
variant: l = "ghost",
|
|
148
148
|
...s
|
|
149
|
-
},
|
|
150
|
-
const { showPassword:
|
|
149
|
+
}, n) => {
|
|
150
|
+
const { showPassword: d, toggleVisibility: p, disabled: u, dataHook: c } = v();
|
|
151
151
|
return /* @__PURE__ */ o(
|
|
152
|
-
|
|
152
|
+
H,
|
|
153
153
|
{
|
|
154
|
-
ref:
|
|
155
|
-
"aria-label":
|
|
154
|
+
ref: n,
|
|
155
|
+
"aria-label": d ? a : t,
|
|
156
156
|
className: e,
|
|
157
|
-
"data-hook": `${
|
|
157
|
+
"data-hook": `${c}-toggle`,
|
|
158
158
|
disabled: u,
|
|
159
159
|
size: i,
|
|
160
160
|
variant: l,
|
|
161
|
-
onClick:
|
|
161
|
+
onClick: p,
|
|
162
162
|
...s,
|
|
163
|
-
children:
|
|
163
|
+
children: d ? /* @__PURE__ */ o(R, { size: 16 }) : /* @__PURE__ */ o(T, { size: 16 })
|
|
164
164
|
}
|
|
165
165
|
);
|
|
166
166
|
}
|
|
@@ -170,19 +170,19 @@ function W({
|
|
|
170
170
|
className: e,
|
|
171
171
|
showLabel: t = !0
|
|
172
172
|
}) {
|
|
173
|
-
const { strength:
|
|
174
|
-
label:
|
|
173
|
+
const { strength: a, strengthLevels: i, dataHook: l, disabled: s } = v(), n = i[a] ?? {
|
|
174
|
+
label: a,
|
|
175
175
|
value: 0,
|
|
176
176
|
color: "bg-muted"
|
|
177
177
|
};
|
|
178
|
-
return /* @__PURE__ */ o("div", { className: P("mt-1 space-y-2", e), children: /* @__PURE__ */
|
|
178
|
+
return /* @__PURE__ */ o("div", { className: P("mt-1 space-y-2", e), children: /* @__PURE__ */ G("div", { className: P("flex items-center gap-2", s && "opacity-50"), children: [
|
|
179
179
|
/* @__PURE__ */ o(
|
|
180
180
|
F,
|
|
181
181
|
{
|
|
182
182
|
className: "h-2 flex-1",
|
|
183
183
|
dataHook: `${l}-strength-progress`,
|
|
184
|
-
indicatorClassName:
|
|
185
|
-
value:
|
|
184
|
+
indicatorClassName: n.color,
|
|
185
|
+
value: n.value
|
|
186
186
|
}
|
|
187
187
|
),
|
|
188
188
|
t && /* @__PURE__ */ o(
|
|
@@ -190,7 +190,7 @@ function W({
|
|
|
190
190
|
{
|
|
191
191
|
className: "text-foreground w-10 shrink-0 text-right text-sm font-medium whitespace-nowrap",
|
|
192
192
|
"data-hook": `${l}-strength-label`,
|
|
193
|
-
children:
|
|
193
|
+
children: n.label
|
|
194
194
|
}
|
|
195
195
|
)
|
|
196
196
|
] }) });
|
package/dist/label.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react/jsx-runtime"),b=require("react"),f=require("@radix-ui/react-label"),p=require("class-variance-authority"),m=require("@brightlocal/ui-components/lib/utils");function n(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(a,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return a.default=e,Object.freeze(a)}const g=n(b),y=n(f),o=p.cva(["text-sm font-medium leading-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react/jsx-runtime"),b=require("react"),f=require("@radix-ui/react-label"),p=require("class-variance-authority"),m=require("@brightlocal/ui-components/lib/utils");function n(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(a,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return a.default=e,Object.freeze(a)}const g=n(b),y=n(f),o=p.cva(["text-sm font-medium leading-normal","text-foreground"],{variants:{optional:{true:"after:ml-1 after:content-['(optional)']"}},defaultVariants:{}}),l=g.forwardRef(({className:e,optional:a,dataHook:t,trackingEl:r,trackingLabel:i,children:s,...c},u)=>d.jsx(y.Root,{ref:u,className:m.cn("flex items-center select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",o({optional:a}),e),"data-hook":t,"data-slot":"label","data-tracking-el":r||"label","data-tracking-label":i,...c,children:s}));l.displayName="Label";exports.Label=l;exports.labelVariants=o;
|
package/dist/label.js
CHANGED
|
@@ -4,7 +4,7 @@ import * as m from "@radix-ui/react-label";
|
|
|
4
4
|
import { cva as p } from "class-variance-authority";
|
|
5
5
|
import { cn as c } from "@brightlocal/ui-components/lib/utils";
|
|
6
6
|
const f = p(
|
|
7
|
-
["text-sm font-medium leading-
|
|
7
|
+
["text-sm font-medium leading-normal", "text-foreground"],
|
|
8
8
|
{
|
|
9
9
|
variants: {
|
|
10
10
|
optional: {
|
package/dist/link.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),b=require("react"),g=require("@brightlocal/icons"),v=require("@radix-ui/react-slot"),x=require("class-variance-authority"),p=require("@brightlocal/ui-components/lib/utils");function m(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,i.get?i:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const j=m(b),y=x.cva(["inline-flex","items-center","gap-1","text-link","dark:text-link-dark","no-underline","hover:underline","hover:underline-offset-4","active:text-link/80","visited:text-link-visited","visited:dark:text-link-visited-dark","transition-[text-decoration,text-decoration-color,text-underline-offset,color]","duration-300","cursor-pointer","focus-visible:outline-none","focus-visible:ring-2","focus-visible:ring-outline","focus-visible:ring-offset-2"]),a=j.forwardRef(({className:e,dataHook:n,trackingEl:t,trackingLabel:i,asChild:s=!1,external:r=!1,showExternalIcon:l=!0,children:c,...u},d)=>{const f=s?v.Slot:"a",k=r?{target:"_blank",rel:"noopener noreferrer"}:{};return o.jsxs(f,{ref:d,className:p.cn(y(),e),"data-hook":n,"data-slot":"link","data-tracking-el":t||"link-default","data-tracking-label":i,...k,...u,children:[c,r&&l&&o.jsx(g.ExternalLink,{"aria-hidden":"true","data-slot":"external-icon",size:16})]})});a.displayName="Link";exports.Link=a;
|
package/dist/link.d.ts
CHANGED
|
@@ -23,6 +23,11 @@ export interface LinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement>
|
|
|
23
23
|
* If true, opens link in a new tab with target="_blank" and rel="noopener noreferrer"
|
|
24
24
|
*/
|
|
25
25
|
external?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* If true, shows the external link icon when external is true
|
|
28
|
+
* @default true
|
|
29
|
+
*/
|
|
30
|
+
showExternalIcon?: boolean;
|
|
26
31
|
}
|
|
27
32
|
declare const Link: React.ForwardRefExoticComponent<LinkProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
28
33
|
export { Link };
|
package/dist/link.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../../src/components/link.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAIlE,QAAA,MAAM,YAAY,oFAuBhB,CAAC;AAEH,MAAM,WAAW,SACf,SACE,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAC7C,YAAY,CAAC,OAAO,YAAY,CAAC;IACnC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../../src/components/link.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAIlE,QAAA,MAAM,YAAY,oFAuBhB,CAAC;AAEH,MAAM,WAAW,SACf,SACE,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAC7C,YAAY,CAAC,OAAO,YAAY,CAAC;IACnC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,QAAA,MAAM,IAAI,qFA0CT,CAAC;AAIF,OAAO,EAAE,IAAI,EAAE,CAAC"}
|
package/dist/link.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import * as
|
|
3
|
-
import { ExternalLink as
|
|
4
|
-
import { Slot as
|
|
5
|
-
import { cva as
|
|
6
|
-
import { cn as
|
|
7
|
-
const
|
|
1
|
+
import { jsxs as k, jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import * as u from "react";
|
|
3
|
+
import { ExternalLink as x } from "@brightlocal/icons";
|
|
4
|
+
import { Slot as p } from "@radix-ui/react-slot";
|
|
5
|
+
import { cva as v } from "class-variance-authority";
|
|
6
|
+
import { cn as g } from "@brightlocal/ui-components/lib/utils";
|
|
7
|
+
const b = v([
|
|
8
8
|
"inline-flex",
|
|
9
9
|
"items-center",
|
|
10
10
|
"gap-1",
|
|
@@ -27,7 +27,7 @@ const g = p([
|
|
|
27
27
|
"focus-visible:ring-2",
|
|
28
28
|
"focus-visible:ring-outline",
|
|
29
29
|
"focus-visible:ring-offset-2"
|
|
30
|
-
]),
|
|
30
|
+
]), h = u.forwardRef(
|
|
31
31
|
({
|
|
32
32
|
className: t,
|
|
33
33
|
dataHook: i,
|
|
@@ -35,29 +35,30 @@ const g = p([
|
|
|
35
35
|
trackingLabel: n,
|
|
36
36
|
asChild: o = !1,
|
|
37
37
|
external: e = !1,
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
38
|
+
showExternalIcon: a = !0,
|
|
39
|
+
children: l,
|
|
40
|
+
...s
|
|
41
|
+
}, d) => {
|
|
42
|
+
const c = o ? p : "a", f = e ? { target: "_blank", rel: "noopener noreferrer" } : {};
|
|
43
|
+
return /* @__PURE__ */ k(
|
|
44
|
+
c,
|
|
44
45
|
{
|
|
45
|
-
ref:
|
|
46
|
-
className:
|
|
46
|
+
ref: d,
|
|
47
|
+
className: g(b(), t),
|
|
47
48
|
"data-hook": i,
|
|
48
49
|
"data-slot": "link",
|
|
49
50
|
"data-tracking-el": r || "link-default",
|
|
50
51
|
"data-tracking-label": n,
|
|
51
|
-
...
|
|
52
|
-
...
|
|
52
|
+
...f,
|
|
53
|
+
...s,
|
|
53
54
|
children: [
|
|
54
|
-
|
|
55
|
-
e && /* @__PURE__ */
|
|
56
|
-
|
|
55
|
+
l,
|
|
56
|
+
e && a && /* @__PURE__ */ m(
|
|
57
|
+
x,
|
|
57
58
|
{
|
|
58
59
|
"aria-hidden": "true",
|
|
59
|
-
|
|
60
|
-
|
|
60
|
+
"data-slot": "external-icon",
|
|
61
|
+
size: 16
|
|
61
62
|
}
|
|
62
63
|
)
|
|
63
64
|
]
|
|
@@ -65,7 +66,7 @@ const g = p([
|
|
|
65
66
|
);
|
|
66
67
|
}
|
|
67
68
|
);
|
|
68
|
-
|
|
69
|
+
h.displayName = "Link";
|
|
69
70
|
export {
|
|
70
|
-
|
|
71
|
+
h as Link
|
|
71
72
|
};
|
package/dist/logo.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("react/jsx-runtime"),s=require("class-variance-authority"),h=require("@brightlocal/ui-components/lib/utils"),n=s.cva("inline-flex [&_path]:fill-brand-primary-foreground",{variants:{variant:{logotype:"h-6",mark:"w-6 h-6"}},defaultVariants:{variant:"logotype"}});function l({className:t,variant:i="logotype",dataHook:e,trackingEl:r,trackingLabel:a,...o}){return C.jsxs("div",{"aria-label":"BrightLocal Logo",className:h.cn(n({variant:i}),t),"data-hook":e,"data-slot":"logo","data-tracking-el":r,"data-tracking-label":a,role:"img",...o,children:[i==="logotype"&&C.jsxs("svg",{fill:"none",height:"30",viewBox:"0 0 159 30",width:"159",xmlns:"http://www.w3.org/2000/svg",children:[C.jsx("g",{clipPath:"url(#clip0_18315_468386)",children:C.jsx("path",{d:"M66.8314 7.61719C68.6663 7.61726 70.094 8.30982 71.2494 9.62598H71.3177V7.8252H75.4632V22.6514C75.4632 24.9376 74.7157 26.7393 73.2884 28.0557C71.8611 29.372 69.9577 29.9961 67.6468 29.9961C64.0445 29.9961 61.5974 28.6101 60.306 25.7695L63.6371 23.7607C64.4527 25.4232 65.744 26.2549 67.5111 26.2549C69.686 26.2548 71.181 25.0763 71.181 22.79V20.5732H71.1136C70.0941 21.8896 68.7343 22.5136 66.9671 22.5137C64.9282 22.5136 63.2292 21.82 61.9378 20.3652C60.6464 18.9796 59.9662 17.1781 59.9662 15.0996C59.9662 13.1598 60.5781 11.3582 61.8695 9.90332C63.1609 8.37924 64.7924 7.61719 66.8314 7.61719ZM116.45 7.54883C118.625 7.54888 120.528 8.31071 122.024 9.76562C123.519 11.2205 124.334 13.0223 124.334 15.2393C124.334 17.456 123.587 19.3264 122.024 20.7812C120.461 22.2361 118.625 22.9989 116.382 22.999C114.139 22.999 112.304 22.3054 110.741 20.7812C109.245 19.3264 108.429 17.5254 108.429 15.3086C108.497 13.0917 109.245 11.2205 110.808 9.76562C112.371 8.24154 114.275 7.54892 116.45 7.54883ZM132.763 7.61719C136.025 7.61726 138.677 9.2799 139.628 12.1895L135.89 13.7832C135.278 12.3285 134.19 11.5665 132.763 11.5664C130.792 11.5666 129.297 13.0215 129.297 15.3076C129.297 17.5245 130.724 19.0486 132.763 19.0488C134.258 19.0488 135.347 18.3562 135.958 16.832L139.697 18.4258C138.609 21.4048 135.958 22.9979 132.696 22.998C130.453 22.9288 128.618 22.236 127.122 20.7812C125.627 19.3263 124.947 17.5247 124.947 15.3076C124.947 13.0906 125.695 11.2889 127.258 9.83398C128.753 8.31011 130.656 7.61729 132.763 7.61719ZM31.6195 9.62988H31.7562C32.8437 8.24449 34.3392 7.55176 36.1742 7.55176C38.213 7.5519 39.8448 8.31384 41.1361 9.90723C42.4273 11.4314 43.0384 13.2331 43.0384 15.2422C43.0384 17.2513 42.3591 19.053 41.0677 20.5771C39.7084 22.1013 38.0764 22.9326 36.0375 22.9326C34.1346 22.9325 32.639 22.2399 31.6195 20.8545H31.5521V22.6553H27.4056V0.0693359H31.6195V9.62988ZM147.106 7.47852C150.912 7.4787 153.427 9.55679 153.427 13.4365V22.582H149.485V20.7803H149.416C148.465 22.1658 146.97 22.9286 145.067 22.9287C143.708 22.8594 142.551 22.5128 141.6 21.6816C140.648 20.8502 140.172 19.8105 140.172 18.4941V18.4248C140.172 16.6928 140.989 15.3765 142.348 14.7529C143.707 14.1296 145.066 13.8526 146.629 13.8525H148.057C148.805 13.8525 149.212 13.5052 149.212 12.7432C149.212 11.7042 148.397 10.9425 146.902 10.9424C145.475 10.9424 144.387 11.6351 143.707 12.9512L140.445 11.0117C141.668 8.65612 143.911 7.47852 147.106 7.47852ZM98.0316 7.8252H101.634V11.5664H98.0316V16.6934C98.0316 18.3561 98.9151 19.0488 100.546 19.0488C100.886 19.0488 101.227 19.0487 101.498 18.9102V22.5137C100.887 22.7215 100.206 22.79 99.5267 22.79C95.7206 22.79 93.7495 20.712 93.7494 17.248V11.5664H91.1664V7.8252H93.8177V3.18359H98.0316V7.8252ZM81.1742 9.55664C81.7179 8.79461 82.3299 8.24003 83.0775 7.96289C83.8929 7.68586 84.5729 7.54791 85.1166 7.54785C86.8835 7.54789 88.1754 8.10179 89.0589 9.2793C89.9425 10.3878 90.4183 11.7739 90.4183 13.4365V22.6514H86.2728V14.4072C86.2728 12.7445 85.3883 11.4972 83.7572 11.4971C82.0581 11.4972 81.1742 12.7445 81.1742 14.3379V22.582H76.9603V0.0654297H81.1742V9.55664ZM58.6712 22.5869H54.389V7.8291H58.6712V22.5869ZM52.3539 7.68652C52.6936 7.68652 52.9664 7.68666 53.1703 7.8252V12.041C52.8529 11.9846 52.5355 11.9824 52.2181 11.9824C49.4996 11.9825 48.2758 13.7142 48.2757 16.3467V22.583H44.0619V7.8252H48.2757V10.1113C48.8875 8.72579 50.4509 7.68667 52.3539 7.68652ZM107.275 22.582H102.993V0.0654297H107.275V22.582ZM159 22.582H154.718V0.0654297H159V22.582ZM10.8236 22.3809C10.9304 22.4611 11.0386 22.5176 11.1605 22.5176C11.0925 22.5176 11.0239 22.5176 10.888 22.5176C10.8657 22.5172 10.8453 22.4656 10.8236 22.3809ZM16.1908 3.1875C18.2298 3.18763 20.2687 4.3657 21.4242 6.16699C22.5794 8.10689 22.6475 10.7399 21.4242 12.6104C20.8125 13.5801 19.9965 14.3425 19.181 15.1045C16.6664 17.5984 14.0156 19.9542 11.433 22.3096L11.3646 22.3789C11.2288 22.448 11.0922 22.4481 10.9564 22.3789C10.8549 22.327 10.8007 22.2361 10.7728 22.125C10.7889 22.2258 10.8064 22.3139 10.8236 22.3809C10.6923 22.2823 10.5622 22.1477 10.4125 22.0332C7.96561 19.7469 5.51848 17.4601 3.07163 15.1045C1.98424 13.9961 0.828372 12.9566 0.284525 11.4326C-0.463117 9.07707 0.285262 6.23615 2.2562 4.64258C3.34369 3.74197 4.70294 3.25686 6.13023 3.25684C8.09487 3.25684 9.99219 4.28915 11.1488 5.94238C12.2059 4.31975 14.115 3.24975 16.1908 3.1875ZM6.06187 4.57324C4.29481 4.57343 2.59579 5.61273 1.71226 7.27539C0.896852 8.86887 0.96507 10.9475 2.12046 12.4023C2.80007 13.3028 3.61554 14.0652 4.43101 14.8271C6.33412 16.6977 8.30564 18.4995 10.2767 20.3008L10.6166 20.6475C10.6186 20.676 10.6754 21.4455 10.7513 21.9883C10.7373 21.8282 10.7532 21.6451 10.7533 21.4785C10.5494 17.8066 10.2769 14.1339 10.141 10.5312C10.0872 9.43494 10.1189 8.33822 10.471 7.31055C10.4535 7.27347 10.4127 7.26074 10.4125 7.20605C9.59681 5.61252 7.89746 4.57324 6.13023 4.57324H6.06187ZM146.629 16.5547C145.406 16.5548 144.455 17.1086 144.454 18.2168C144.454 19.1866 145.202 19.7411 146.289 19.7412C148.124 19.7411 149.212 18.4939 149.212 16.9004V16.5547H146.629ZM35.222 11.4316C34.2026 11.4317 33.387 11.778 32.7074 12.4707C32.0277 13.1635 31.6878 14.0643 31.6878 15.1729C31.6199 16.2814 32.0277 17.1822 32.7074 17.9443C33.3871 18.637 34.2709 18.9834 35.2904 18.9834C36.3098 18.9833 37.1938 18.6371 37.8734 17.9443C38.553 17.2515 38.8929 16.2813 38.8929 15.1729C38.8929 14.0644 38.5526 13.1635 37.805 12.4707C37.1254 11.7779 36.2415 11.4317 35.222 11.4316ZM116.382 11.3594C115.363 11.3594 114.547 11.7058 113.868 12.4678C113.188 13.1606 112.848 14.0614 112.848 15.1699C112.78 16.2783 113.188 17.1794 113.868 17.9414C114.547 18.6338 115.43 18.9804 116.45 18.9805C118.488 18.9804 119.985 17.3868 119.985 15.1699C119.985 14.0616 119.645 13.1606 118.965 12.4678C118.286 11.775 117.402 11.3595 116.382 11.3594ZM67.7152 11.4277C65.7441 11.4277 64.1802 12.9519 64.18 15.0303C64.18 17.2474 65.6761 18.7031 67.7152 18.7031C69.6861 18.7029 71.2494 17.2472 71.2494 15.0303C71.2492 12.9521 69.754 11.428 67.7152 11.4277ZM6.06285 6.58301C7.0821 6.58321 8.03336 7.20607 8.50913 8.10645C8.91671 8.93762 8.91714 9.83874 8.57749 10.6699C8.03366 11.7781 6.74213 12.4713 5.5189 12.2637C4.36356 12.0558 3.41188 11.0165 3.27574 9.83887C3.13981 8.9383 3.48 7.96829 4.15952 7.34473C4.70325 6.85983 5.38322 6.58302 6.06285 6.58301ZM53.2377 12.0518H53.1703V12.041C53.1925 12.045 53.2154 12.0472 53.2377 12.0518ZM16.1908 7.13672C14.8994 7.13675 13.9477 8.17585 13.9476 9.42285C14.0158 10.6004 14.9671 11.5713 16.1224 11.6406C17.3457 11.7099 18.3657 10.6697 18.4339 9.42285C18.4338 8.17594 17.414 7.1369 16.1908 7.13672ZM6.06285 7.83008C5.38316 7.83011 4.70269 8.38433 4.56675 9.07715C4.3636 10.0469 5.24762 11.2243 6.40269 11.0166C7.01407 10.8779 7.55763 10.3234 7.6937 9.7002C7.76159 8.79969 7.01416 7.83041 6.06285 7.83008ZM56.4964 0C57.9917 0.000113446 59.1468 1.17797 59.1468 2.70215C59.1468 4.15701 57.9917 5.33485 56.4964 5.33496C55.0691 5.33496 53.9135 4.15708 53.9134 2.70215C53.9134 1.24718 55.137 0 56.4964 0Z"})}),C.jsx("defs",{children:C.jsx("clipPath",{id:"clip0_18315_468386",children:C.jsx("rect",{fill:"white",height:"30",width:"159"})})})]}),i==="mark"&&C.jsxs("svg",{fill:"none",height:"21",viewBox:"0 0 23 21",width:"23",xmlns:"http://www.w3.org/2000/svg",children:[C.jsx("g",{clipPath:"url(#clip0_18315_468405)",children:C.jsx("path",{d:"M10.824 20.1854C10.9307 20.2655 11.0382 20.3221 11.1599 20.3221C11.0921 20.3221 11.0239 20.3221 10.8885 20.3221C10.866 20.3221 10.8458 20.2706 10.824 20.1854ZM16.1902 0.992035C18.2292 0.992157 20.2682 2.17023 21.4236 3.97153C22.579 5.91141 22.6469 8.54428 21.4236 10.4149C20.812 11.3846 19.9969 12.1471 19.1814 12.909C16.6666 15.4031 14.0152 17.7586 11.4324 20.1141L11.364 20.1834C11.2283 20.2526 11.0926 20.2525 10.9568 20.1834C10.855 20.1315 10.8002 20.041 10.7722 19.9295C10.7884 20.0306 10.8068 20.1184 10.824 20.1854C10.6926 20.0868 10.5618 19.9524 10.4119 19.8377C7.96503 17.5514 5.51794 15.2646 3.07107 12.909C1.9837 11.8007 0.828732 10.7611 0.284942 9.23715C-0.46271 6.88157 0.284639 4.04068 2.25565 2.44711C3.34314 1.54652 4.70335 1.06137 6.13065 1.06137C8.09519 1.06163 9.9918 2.09463 11.1482 3.74789C12.2053 2.12485 14.1142 1.05429 16.1902 0.992035ZM6.06229 2.37778C4.2951 2.37778 2.59534 3.41718 1.7117 5.07993C0.896188 6.67342 0.96448 8.75199 2.1199 10.2069C2.79959 11.1075 3.61583 11.8696 4.43143 12.6317C6.33446 14.5022 8.30516 16.3041 10.2762 18.1053L10.616 18.452C10.6173 18.47 10.6752 19.2471 10.7517 19.7938C10.7376 19.6333 10.7527 19.4502 10.7527 19.2831C10.5488 15.611 10.2764 11.9386 10.1404 8.33578C10.0867 7.23956 10.1194 6.14366 10.4715 5.11606C10.4542 5.07806 10.4119 5.06619 10.4119 5.01059C9.59633 3.41737 7.89755 2.37807 6.13065 2.37778H6.06229ZM6.06229 4.38754C7.0816 4.38762 8.03273 5.01058 8.50858 5.91098C8.91635 6.7423 8.91667 7.64313 8.57693 8.47446C8.03317 9.583 6.74181 10.2761 5.51834 10.0682C4.36285 9.86035 3.41112 8.82123 3.27518 7.6434C3.13925 6.74272 3.47928 5.77281 4.15897 5.14926C4.70273 4.66427 5.38258 4.38754 6.06229 4.38754ZM16.1902 4.94125C14.8989 4.94128 13.9472 5.98038 13.9471 7.22739C14.015 8.40507 14.9665 9.37568 16.1219 9.44516C17.3452 9.51425 18.3654 8.47439 18.4334 7.22739C18.4333 5.98048 17.4135 4.94143 16.1902 4.94125ZM6.06229 5.63461C5.38258 5.63461 4.70311 6.18884 4.56717 6.88168C4.3635 7.8516 5.24675 9.02897 6.40213 8.82114C7.01379 8.6825 7.55722 8.12822 7.69315 7.50473C7.76106 6.60412 7.01375 5.63474 6.06229 5.63461Z"})}),C.jsx("defs",{children:C.jsx("clipPath",{id:"clip0_18315_468405",children:C.jsx("rect",{fill:"white",height:"21",width:"23"})})})]})]})}l.displayName="Logo";exports.Logo=l;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("react/jsx-runtime"),s=require("class-variance-authority"),h=require("@brightlocal/ui-components/lib/utils"),n=s.cva("inline-flex [&_path]:fill-brand-primary-foreground",{variants:{variant:{logotype:"h-6",mark:"w-6 h-6"}},defaultVariants:{variant:"logotype"}});function t({className:l,variant:i="logotype",dataHook:e,trackingEl:a,trackingLabel:r,...o}){return C.jsxs("div",{"aria-label":"BrightLocal Logo",className:h.cn(n({variant:i}),l),"data-hook":e,"data-slot":"logo","data-tracking-el":a,"data-tracking-label":r,"data-variant":i,role:"img",...o,children:[i==="logotype"&&C.jsxs("svg",{fill:"none",height:"24",viewBox:"0 0 128 24.1509",width:"128",xmlns:"http://www.w3.org/2000/svg",children:[C.jsx("g",{clipPath:"url(#clip0_18315_468855)",children:C.jsx("path",{d:"M53.8012 6.13184C55.2785 6.13191 56.4277 6.69033 57.3579 7.75H57.4126V6.2998H60.7505V18.2354C60.7505 20.0759 60.1485 21.5262 58.9995 22.5859C57.8506 23.6455 56.3185 24.1473 54.4585 24.1475C51.5584 24.1475 49.588 23.0319 48.5483 20.7451L51.23 19.1279C51.8866 20.4664 52.9265 21.1357 54.3491 21.1357C56.0997 21.1355 57.3032 20.187 57.3032 18.3467V16.5625H57.2485C56.4278 17.622 55.333 18.124 53.9106 18.124C52.2693 18.124 50.9014 17.5657 49.8618 16.3945C48.8223 15.2791 48.275 13.8293 48.2749 12.1562C48.2749 10.5945 48.7675 9.14395 49.8071 7.97266C50.8467 6.74577 52.1599 6.13189 53.8012 6.13184ZM93.7456 6.07617C95.4964 6.07624 97.0292 6.69017 98.2329 7.86133C99.4366 9.03255 100.093 10.4829 100.093 12.2676C100.093 14.0523 99.4912 15.5582 98.2329 16.7295C96.9744 17.9007 95.4965 18.5146 93.6909 18.5146C91.8855 18.5146 90.4083 17.9564 89.1499 16.7295C87.9461 15.5582 87.2895 14.108 87.2895 12.3232C87.3443 10.5386 87.9461 9.03255 89.2046 7.86133C90.4629 6.63457 91.9949 6.07627 93.7456 6.07617ZM106.879 6.13184C109.506 6.13207 111.64 7.4711 112.406 9.81348L109.396 11.0957C108.904 9.92489 108.028 9.31177 106.879 9.31152C105.293 9.31152 104.088 10.4826 104.088 12.3232C104.088 14.108 105.238 15.335 106.879 15.335C108.083 15.3347 108.958 14.7766 109.451 13.5498L112.46 14.833C111.585 17.2311 109.451 18.5144 106.825 18.5146C105.019 18.4589 103.541 17.9007 102.337 16.7295C101.134 15.5582 100.586 14.108 100.586 12.3232C100.586 10.5384 101.188 9.08828 102.447 7.91699C103.651 6.69002 105.183 6.13184 106.879 6.13184ZM25.4555 7.75293H25.5649C26.4404 6.63751 27.6442 6.0791 29.1216 6.0791C30.7628 6.07926 32.0762 6.69291 33.1157 7.97559C34.1553 9.20262 34.6479 10.6531 34.6479 12.2705C34.6479 13.8879 34.1005 15.3384 33.061 16.5654C31.9668 17.7922 30.6533 18.4617 29.0122 18.4619C27.4802 18.4619 26.2763 17.9034 25.4555 16.7881H25.3999V18.2383H22.063V0.0556641H25.4555V7.75293ZM118.424 6.02051C121.488 6.02061 123.513 7.69329 123.513 10.8164V18.1787H120.34V16.7295H120.286C119.52 17.8449 118.315 18.4579 116.783 18.458C115.689 18.4022 114.759 18.1232 113.993 17.4541C113.227 16.7848 112.843 15.9483 112.843 14.8887V14.833C112.843 13.4388 113.5 12.379 114.594 11.877C115.688 11.3751 116.783 11.1514 118.041 11.1514H119.191C119.793 11.1512 120.121 10.8722 120.121 10.2588C120.12 9.42233 119.464 8.80869 118.26 8.80859C117.111 8.8087 116.236 9.3672 115.689 10.4268L113.062 8.86426C114.047 6.96816 115.853 6.02061 118.424 6.02051ZM78.9184 6.2998H81.8188V9.31152H78.9184V13.4385C78.9184 14.777 79.6299 15.3349 80.9428 15.335C81.2163 15.335 81.4907 15.3351 81.7094 15.2236V18.124C81.2171 18.2913 80.6696 18.3467 80.1225 18.3467C77.0583 18.3467 75.4712 16.6736 75.4712 13.8848V9.31152H73.3921V6.2998H75.5259V2.5625H78.9184V6.2998ZM65.3481 7.69336C65.7858 7.07999 66.2786 6.63424 66.8803 6.41113C67.5368 6.18809 68.0843 6.07617 68.5219 6.07617C69.9445 6.07623 70.9845 6.52258 71.6958 7.4707C72.4069 8.36306 72.7895 9.47894 72.7895 10.8174V18.2354H69.4526V11.5977C69.4525 10.2592 68.7402 9.25503 67.4272 9.25488C66.0595 9.25506 65.3482 10.2593 65.3481 11.542V18.1797H61.9555V0.0527344H65.3481V7.69336ZM47.2329 18.1826H43.7856V6.30273H47.2329V18.1826ZM42.1469 6.1875C42.4203 6.1875 42.6391 6.18837 42.8032 6.2998V9.69336C42.548 9.64804 42.2928 9.64649 42.0376 9.64648C39.8488 9.64648 38.8637 11.0407 38.8637 13.1602V18.1797H35.4712V6.2998H38.8637V8.13965C39.3563 7.02434 40.615 6.18751 42.1469 6.1875ZM86.3598 18.1797H82.9126V0.0527344H86.3598V18.1797ZM128 18.1797H124.553V0.0527344H128V18.1797ZM8.71433 18.0176C8.80009 18.0818 8.88699 18.1279 8.98484 18.1279H8.76609C8.74808 18.1279 8.73185 18.0857 8.71433 18.0176ZM13.0337 2.56641C14.6751 2.56649 16.3174 3.51474 17.2475 4.96484C18.1773 6.52641 18.2321 8.64568 17.2475 10.1514C16.7552 10.932 16.0983 11.5458 15.4419 12.1592C13.4173 14.1671 11.2828 16.0636 9.20359 17.96L9.1489 18.0156C9.0396 18.0713 8.93008 18.0712 8.82078 18.0156C8.73907 17.9739 8.69483 17.901 8.67234 17.8115C8.68532 17.8928 8.70051 17.9637 8.71433 18.0176C8.60851 17.9382 8.50302 17.8297 8.3823 17.7373C6.4126 15.8969 4.44282 14.0554 2.47312 12.1592C1.5978 11.267 0.667749 10.4298 0.229957 9.20312C-0.371808 7.30683 0.230178 5.02011 1.81687 3.7373C2.69222 3.01247 3.78622 2.62215 4.93504 2.62207C6.51656 2.62215 8.04402 3.45333 8.97507 4.78418C9.826 3.47781 11.3626 2.61666 13.0337 2.56641ZM4.88035 3.68164C3.45778 3.68176 2.08968 4.5189 1.37839 5.85742C0.722236 7.14009 0.776662 8.81333 1.70652 9.98438C2.25364 10.7093 2.91135 11.3231 3.56785 11.9365C5.09973 13.4422 6.68635 14.8928 8.27293 16.3428L8.54636 16.6221C8.54827 16.6481 8.59438 17.2709 8.65574 17.707C8.64361 17.5769 8.65668 17.4271 8.65671 17.291C8.49257 14.3351 8.27397 11.3787 8.16453 8.47852C8.12122 7.59564 8.14647 6.71234 8.43015 5.88477C8.41595 5.8552 8.38255 5.84458 8.3823 5.80078C7.72563 4.51826 6.35747 3.68173 4.93504 3.68164H4.88035ZM118.041 13.3271C117.057 13.3272 116.291 13.7729 116.291 14.665C116.291 15.4459 116.893 15.8926 117.768 15.8926C119.245 15.8924 120.121 14.8882 120.121 13.6055V13.3271H118.041ZM28.355 9.20312C27.5344 9.20317 26.8776 9.48152 26.3305 10.0391C25.7834 10.5968 25.5102 11.3224 25.5102 12.2148C25.4556 13.1071 25.7835 13.8319 26.3305 14.4453C26.8777 15.0029 27.589 15.2822 28.4096 15.2822C29.2303 15.2822 29.9416 15.003 30.4887 14.4453C31.0358 13.8876 31.31 13.1071 31.31 12.2148C31.31 11.3225 31.0359 10.5968 30.4341 10.0391C29.887 9.48158 29.1755 9.20319 28.355 9.20312ZM93.6909 9.14453C92.8704 9.14463 92.2135 9.42379 91.6665 10.0371C91.1195 10.5948 90.8462 11.3197 90.8462 12.2119C90.7914 13.1043 91.1193 13.8298 91.6665 14.4434C92.2135 15.0009 92.9251 15.2792 93.7456 15.2793C95.387 15.2791 96.5913 13.9966 96.5913 12.2119C96.5913 11.3198 96.3178 10.5948 95.771 10.0371C95.2238 9.47942 94.5116 9.14461 93.6909 9.14453ZM54.5132 9.2002C52.9265 9.2002 51.6677 10.4266 51.6675 12.0996C51.6675 13.8844 52.8716 15.0566 54.5132 15.0566C56.0997 15.0563 57.3579 13.8842 57.3579 12.0996C57.3577 10.4268 56.1542 9.20052 54.5132 9.2002ZM4.88035 5.29883C5.70098 5.29892 6.46705 5.80143 6.85007 6.52637C7.1781 7.19544 7.17914 7.92078 6.90574 8.58984C6.46795 9.48199 5.42758 10.0402 4.44285 9.87305C3.51289 9.70573 2.74691 8.86878 2.63718 7.9209C2.52778 7.19605 2.80129 6.41509 3.34812 5.91309C3.78578 5.52274 4.33328 5.29892 4.88035 5.29883ZM42.8579 9.70215H42.8032V9.69336C42.8212 9.69655 42.8398 9.69847 42.8579 9.70215ZM13.0337 5.74512C11.9943 5.74536 11.228 6.58213 11.228 7.58594C11.283 8.53376 12.0491 9.31512 12.979 9.37109C13.9636 9.4267 14.7854 8.58961 14.8403 7.58594C14.8403 6.58206 14.0185 5.74525 13.0337 5.74512ZM4.88035 6.30273C4.33328 6.30292 3.78664 6.74998 3.67722 7.30762C3.51371 8.08833 4.22486 9.03641 5.15476 8.86914C5.64674 8.75746 6.08412 8.31104 6.19382 7.80957C6.24854 7.08456 5.6463 6.30289 4.88035 6.30273ZM45.4819 0C46.6853 0.000335991 47.6155 0.948173 47.6157 2.1748C47.6157 3.34589 46.6854 4.29459 45.4819 4.29492C44.3328 4.29492 43.4018 3.3461 43.4018 2.1748C43.4021 1.00371 44.3877 0 45.4819 0Z"})}),C.jsx("defs",{children:C.jsx("clipPath",{id:"clip0_18315_468855",children:C.jsx("rect",{fill:"white",height:"24.1509",width:"128"})})})]}),i==="mark"&&C.jsxs("svg",{fill:"none",height:"21",viewBox:"0 0 23 21",width:"23",xmlns:"http://www.w3.org/2000/svg",children:[C.jsx("g",{clipPath:"url(#clip0_18315_468405)",children:C.jsx("path",{d:"M10.824 20.1854C10.9307 20.2655 11.0382 20.3221 11.1599 20.3221C11.0921 20.3221 11.0239 20.3221 10.8885 20.3221C10.866 20.3221 10.8458 20.2706 10.824 20.1854ZM16.1902 0.992035C18.2292 0.992157 20.2682 2.17023 21.4236 3.97153C22.579 5.91141 22.6469 8.54428 21.4236 10.4149C20.812 11.3846 19.9969 12.1471 19.1814 12.909C16.6666 15.4031 14.0152 17.7586 11.4324 20.1141L11.364 20.1834C11.2283 20.2526 11.0926 20.2525 10.9568 20.1834C10.855 20.1315 10.8002 20.041 10.7722 19.9295C10.7884 20.0306 10.8068 20.1184 10.824 20.1854C10.6926 20.0868 10.5618 19.9524 10.4119 19.8377C7.96503 17.5514 5.51794 15.2646 3.07107 12.909C1.9837 11.8007 0.828732 10.7611 0.284942 9.23715C-0.46271 6.88157 0.284639 4.04068 2.25565 2.44711C3.34314 1.54652 4.70335 1.06137 6.13065 1.06137C8.09519 1.06163 9.9918 2.09463 11.1482 3.74789C12.2053 2.12485 14.1142 1.05429 16.1902 0.992035ZM6.06229 2.37778C4.2951 2.37778 2.59534 3.41718 1.7117 5.07993C0.896188 6.67342 0.96448 8.75199 2.1199 10.2069C2.79959 11.1075 3.61583 11.8696 4.43143 12.6317C6.33446 14.5022 8.30516 16.3041 10.2762 18.1053L10.616 18.452C10.6173 18.47 10.6752 19.2471 10.7517 19.7938C10.7376 19.6333 10.7527 19.4502 10.7527 19.2831C10.5488 15.611 10.2764 11.9386 10.1404 8.33578C10.0867 7.23956 10.1194 6.14366 10.4715 5.11606C10.4542 5.07806 10.4119 5.06619 10.4119 5.01059C9.59633 3.41737 7.89755 2.37807 6.13065 2.37778H6.06229ZM6.06229 4.38754C7.0816 4.38762 8.03273 5.01058 8.50858 5.91098C8.91635 6.7423 8.91667 7.64313 8.57693 8.47446C8.03317 9.583 6.74181 10.2761 5.51834 10.0682C4.36285 9.86035 3.41112 8.82123 3.27518 7.6434C3.13925 6.74272 3.47928 5.77281 4.15897 5.14926C4.70273 4.66427 5.38258 4.38754 6.06229 4.38754ZM16.1902 4.94125C14.8989 4.94128 13.9472 5.98038 13.9471 7.22739C14.015 8.40507 14.9665 9.37568 16.1219 9.44516C17.3452 9.51425 18.3654 8.47439 18.4334 7.22739C18.4333 5.98048 17.4135 4.94143 16.1902 4.94125ZM6.06229 5.63461C5.38258 5.63461 4.70311 6.18884 4.56717 6.88168C4.3635 7.8516 5.24675 9.02897 6.40213 8.82114C7.01379 8.6825 7.55722 8.12822 7.69315 7.50473C7.76106 6.60412 7.01375 5.63474 6.06229 5.63461Z"})}),C.jsx("defs",{children:C.jsx("clipPath",{id:"clip0_18315_468405",children:C.jsx("rect",{fill:"white",height:"21",width:"23"})})})]})]})}t.displayName="Logo";exports.Logo=t;
|
package/dist/logo.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logo.d.ts","sourceRoot":"","sources":["../../src/components/logo.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAG7D;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG,UAAU,GAAG,MAAM,CAAC;AAE9C,QAAA,MAAM,YAAY;;8EAUhB,CAAC;AAEH,UAAU,SACR,
|
|
1
|
+
{"version":3,"file":"logo.d.ts","sourceRoot":"","sources":["../../src/components/logo.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAG7D;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG,UAAU,GAAG,MAAM,CAAC;AAE9C,QAAA,MAAM,YAAY;;8EAUhB,CAAC;AAEH,UAAU,SACR,SACA,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,CAAC,EACtD,YAAY,CAAC,OAAO,YAAY,CAAC;IACjC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,iBAAS,IAAI,CAAC,EACZ,SAAS,EACT,OAAoB,EACpB,QAAQ,EACR,UAAU,EACV,aAAa,EACb,GAAG,KAAK,EACT,EAAE,SAAS,2CAmDX;kBA1DQ,IAAI;;;AA8Db,OAAO,EAAE,IAAI,EAAE,CAAC"}
|