@cntrl-site/components 1.0.97-0 → 1.0.97-alpha.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.
@@ -0,0 +1,126 @@
1
+ import { useId as d } from "react";
2
+ function S(t, e = !1) {
3
+ return e ? `calc(var(--cntrl-article-width) * ${t})` : `${t * 100}vw`;
4
+ }
5
+ const y = (t, e, r, i, n) => {
6
+ const a = {};
7
+ for (const [s, l] of Object.entries(r))
8
+ a[`--${t}-${l}`] = e[s];
9
+ const o = new Set(i);
10
+ if (n)
11
+ for (const s of Object.keys(n))
12
+ o.add(s);
13
+ for (const s of o) {
14
+ const l = n == null ? void 0 : n[s];
15
+ if (l)
16
+ for (const [c, f] of Object.entries(r)) {
17
+ const u = l[c];
18
+ u !== void 0 && (a[`--${t}-${s}-${f}`] = u);
19
+ }
20
+ }
21
+ return a;
22
+ };
23
+ function h(t) {
24
+ const e = t.trim();
25
+ if (!e || e === "none") return 1;
26
+ if (e.endsWith("%")) {
27
+ const i = parseFloat(e);
28
+ return Number.isFinite(i) ? i / 100 : 1;
29
+ }
30
+ const r = parseFloat(e);
31
+ return Number.isFinite(r) ? r : 1;
32
+ }
33
+ function g(t) {
34
+ const e = t.lastIndexOf("/");
35
+ if (e !== -1)
36
+ return h(t.slice(e + 1));
37
+ }
38
+ function A(t) {
39
+ const e = t.trim().toLowerCase();
40
+ if (!e || e === "transparent") return 0;
41
+ const r = e.match(/^(?:oklch|oklab|rgba?|hsla?|hwb|lab|lch|color)\((.+)\)$/);
42
+ if (r) {
43
+ const n = r[1], a = g(n);
44
+ if (a !== void 0) return a;
45
+ if (/^(?:rgba|hsla)$/.test(e.slice(0, 4))) {
46
+ const o = n.split(",").map((s) => parseFloat(s.trim()));
47
+ if (o.length === 4 && Number.isFinite(o[3]))
48
+ return o[3];
49
+ }
50
+ return 1;
51
+ }
52
+ const i = e.match(/^#([0-9a-f]{4}|[0-9a-f]{8})$/);
53
+ if (i) {
54
+ const n = i[1], a = n.length === 4 ? n[3] + n[3] : n.slice(6, 8);
55
+ return parseInt(a, 16) / 255;
56
+ }
57
+ return 1;
58
+ }
59
+ const p = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, b = (t) => p.test(t.trim()), m = (t) => {
60
+ const e = t.replace(/\D/g, "");
61
+ return e.length >= 7 && e.length <= 15;
62
+ }, F = (t, e) => {
63
+ var r;
64
+ for (const i of t) {
65
+ const n = ((r = e[i.name]) == null ? void 0 : r.trim()) ?? "";
66
+ if (n) {
67
+ if (i.type === "email" && !b(n))
68
+ return "Please enter a valid email address.";
69
+ if (i.type === "phone" && !m(n))
70
+ return "Please enter a valid phone number.";
71
+ }
72
+ }
73
+ return null;
74
+ };
75
+ function P() {
76
+ const e = `cf-${d().replace(/:/g, "")}`;
77
+ return {
78
+ prefix: e,
79
+ cls: (r) => `${e}-${r}`
80
+ };
81
+ }
82
+ const k = (t, e) => {
83
+ const r = Array.from(t.querySelectorAll('[data-testimonial-measure="text"]')).reduce(
84
+ (n, a) => Math.max(n, a.getBoundingClientRect().height),
85
+ 0
86
+ ), i = Array.from(t.querySelectorAll('[data-testimonial-measure="caption"]')).reduce(
87
+ (n, a) => Math.max(n, a.getBoundingClientRect().height),
88
+ 0
89
+ );
90
+ e({ maxTextPx: r, maxCaptionPx: i });
91
+ };
92
+ function x(t, e) {
93
+ const r = t == null ? void 0 : t.availableWhen;
94
+ return r ? Object.entries(r).every(([i, n]) => {
95
+ if (!(n != null && n.length)) return !0;
96
+ const a = e[i];
97
+ return a === void 0 ? !0 : n.includes(a);
98
+ }) : !0;
99
+ }
100
+ function v(t, e) {
101
+ const r = t == null ? void 0 : t.statePanels;
102
+ return r != null && r.length ? r.filter((i) => {
103
+ var a;
104
+ const n = (a = t == null ? void 0 : t.panels) == null ? void 0 : a.find((o) => o.id === i);
105
+ return x(n, e);
106
+ }) : null;
107
+ }
108
+ function C(t, e) {
109
+ const r = t == null ? void 0 : t.statePanels;
110
+ if (!(r != null && r.length)) return [];
111
+ const i = new Set(v(t, e) ?? []);
112
+ return r.filter((n) => !i.has(n));
113
+ }
114
+ export {
115
+ F as a,
116
+ y as b,
117
+ m as c,
118
+ v as d,
119
+ C as e,
120
+ x as f,
121
+ A as g,
122
+ b as i,
123
+ k as r,
124
+ S as s,
125
+ P as u
126
+ };
@@ -0,0 +1 @@
1
+ "use strict";const m=require("react");function p(t,e=!1){return e?`calc(var(--cntrl-article-width) * ${t})`:`${t*100}vw`}const v=(t,e,r,i,n)=>{const a={};for(const[l,s]of Object.entries(r))a[`--${t}-${s}`]=e[l];const o=new Set(i);if(n)for(const l of Object.keys(n))o.add(l);for(const l of o){const s=n==null?void 0:n[l];if(s)for(const[h,b]of Object.entries(r)){const u=s[h];u!==void 0&&(a[`--${t}-${l}-${b}`]=u)}}return a};function x(t){const e=t.trim();if(!e||e==="none")return 1;if(e.endsWith("%")){const i=parseFloat(e);return Number.isFinite(i)?i/100:1}const r=parseFloat(e);return Number.isFinite(r)?r:1}function S(t){const e=t.lastIndexOf("/");if(e!==-1)return x(t.slice(e+1))}function A(t){const e=t.trim().toLowerCase();if(!e||e==="transparent")return 0;const r=e.match(/^(?:oklch|oklab|rgba?|hsla?|hwb|lab|lch|color)\((.+)\)$/);if(r){const n=r[1],a=S(n);if(a!==void 0)return a;if(/^(?:rgba|hsla)$/.test(e.slice(0,4))){const o=n.split(",").map(l=>parseFloat(l.trim()));if(o.length===4&&Number.isFinite(o[3]))return o[3]}return 1}const i=e.match(/^#([0-9a-f]{4}|[0-9a-f]{8})$/);if(i){const n=i[1],a=n.length===4?n[3]+n[3]:n.slice(6,8);return parseInt(a,16)/255}return 1}const F=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,c=t=>F.test(t.trim()),f=t=>{const e=t.replace(/\D/g,"");return e.length>=7&&e.length<=15},$=(t,e)=>{var r;for(const i of t){const n=((r=e[i.name])==null?void 0:r.trim())??"";if(n){if(i.type==="email"&&!c(n))return"Please enter a valid email address.";if(i.type==="phone"&&!f(n))return"Please enter a valid phone number."}}return null};function y(){const e=`cf-${m.useId().replace(/:/g,"")}`;return{prefix:e,cls:r=>`${e}-${r}`}}const P=(t,e)=>{const r=Array.from(t.querySelectorAll('[data-testimonial-measure="text"]')).reduce((n,a)=>Math.max(n,a.getBoundingClientRect().height),0),i=Array.from(t.querySelectorAll('[data-testimonial-measure="caption"]')).reduce((n,a)=>Math.max(n,a.getBoundingClientRect().height),0);e({maxTextPx:r,maxCaptionPx:i})};function d(t,e){const r=t==null?void 0:t.availableWhen;return r?Object.entries(r).every(([i,n])=>{if(!(n!=null&&n.length))return!0;const a=e[i];return a===void 0?!0:n.includes(a)}):!0}function g(t,e){const r=t==null?void 0:t.statePanels;return r!=null&&r.length?r.filter(i=>{var a;const n=(a=t==null?void 0:t.panels)==null?void 0:a.find(o=>o.id===i);return d(n,e)}):null}function V(t,e){const r=t==null?void 0:t.statePanels;if(!(r!=null&&r.length))return[];const i=new Set(g(t,e)??[]);return r.filter(n=>!i.has(n))}exports.buildColorVars=v;exports.getAvailableStatePanels=g;exports.getColorAlpha=A;exports.getFormFieldValidationError=$;exports.getUnavailableStates=V;exports.isPanelAvailable=d;exports.isValidEmailFormat=c;exports.isValidPhoneFormat=f;exports.readTestimonialTextMeasure=P;exports.scalingValue=p;exports.useScopedStyles=y;
@@ -62,58 +62,6 @@ export type SchemaDisplayRule = {
62
62
  value: unknown;
63
63
  };
64
64
  };
65
- /** The post header fields a content field can be filled from when a collection is connected, and the post page's link. */
66
- export type ContentKey = 'title' | 'subtitle' | 'date' | 'gallery' | 'link';
67
- /**
68
- * A link as a `link-input` content field holds it. In the editor `value` is a url, a page id or a
69
- * section id; a published site gets it with `value` already the url to follow.
70
- */
71
- export type ContentLink = {
72
- type: 'url' | 'anchor' | 'page';
73
- value: string;
74
- target: 'blank' | 'self';
75
- anchor?: string;
76
- };
77
- export type ComponentContentSettings = {
78
- allowsVideo?: boolean;
79
- addItemWithoutImage?: boolean;
80
- addItemFromFileExplorer?: boolean;
81
- deleteImageDeletesEntry?: boolean;
82
- stripFieldsOnAdd?: string[];
83
- /** A collection's posts may be connected as this component's rows. */
84
- allowsCollection?: boolean;
85
- };
86
- export type ComponentContentProperty = {
87
- type?: 'string' | 'number' | 'boolean' | 'object' | 'array';
88
- label?: string;
89
- placeholder?: string;
90
- /** The post field this one is filled from when a collection is connected; none leaves it to the user. */
91
- contentKey?: ContentKey;
92
- display?: SchemaDisplay;
93
- properties?: Record<string, ComponentContentProperty>;
94
- items?: ComponentContentProperty;
95
- required?: string[];
96
- enum?: Array<string | number>;
97
- min?: number;
98
- max?: number;
99
- default?: unknown;
100
- };
101
- export type ComponentContentSchema = {
102
- type: 'array';
103
- max?: number;
104
- settings?: ComponentContentSettings;
105
- display?: {
106
- type: string;
107
- ref?: Record<string, string>;
108
- rules?: SchemaDisplayRule[];
109
- };
110
- items: {
111
- type: 'object';
112
- properties: Record<string, ComponentContentProperty>;
113
- required?: string[];
114
- };
115
- default: unknown[];
116
- };
117
65
  export type SchemaSection = {
118
66
  sizing?: string;
119
67
  hasLinkParameter?: boolean;
@@ -148,7 +96,7 @@ export type ComponentSchemaV1 = {
148
96
  settings: SchemaSection;
149
97
  panels?: SchemaPanel[];
150
98
  paletteBookmark?: SchemaPaletteBookmark;
151
- content?: ComponentContentSchema;
99
+ content?: any;
152
100
  fontRelations?: Record<string, string>;
153
101
  allowedPlugins?: string[];
154
102
  states?: string[];
package/dist/utils.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./LinkWrapper-CM1Wd42k.js");exports.LinkWrapper=e.LinkWrapper;exports.buildColorVars=e.buildColorVars;exports.getAvailableStatePanels=e.getAvailableStatePanels;exports.getColorAlpha=e.getColorAlpha;exports.getFormFieldValidationError=e.getFormFieldValidationError;exports.getUnavailableStates=e.getUnavailableStates;exports.isPanelAvailable=e.isPanelAvailable;exports.isValidEmailFormat=e.isValidEmailFormat;exports.isValidPhoneFormat=e.isValidPhoneFormat;exports.readTestimonialTextMeasure=e.readTestimonialTextMeasure;exports.scalingValue=e.scalingValue;exports.useScopedStyles=e.useScopedStyles;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./panelAvailability-D8c7cdbu.js");exports.buildColorVars=a.buildColorVars;exports.getAvailableStatePanels=a.getAvailableStatePanels;exports.getColorAlpha=a.getColorAlpha;exports.getFormFieldValidationError=a.getFormFieldValidationError;exports.getUnavailableStates=a.getUnavailableStates;exports.isPanelAvailable=a.isPanelAvailable;exports.isValidEmailFormat=a.isValidEmailFormat;exports.isValidPhoneFormat=a.isValidPhoneFormat;exports.readTestimonialTextMeasure=a.readTestimonialTextMeasure;exports.scalingValue=a.scalingValue;exports.useScopedStyles=a.useScopedStyles;
package/dist/utils.mjs CHANGED
@@ -1,15 +1,14 @@
1
- import { L as s, b as l, d as i, g as r, a as t, e as o, f as d, i as n, c as g, r as m, s as b, u as p } from "./LinkWrapper-D4d13mZT.mjs";
1
+ import { b as s, d as l, g as i, a as t, e as o, f as r, i as d, c as n, r as g, s as m, u as b } from "./panelAvailability-CgSic84c.mjs";
2
2
  export {
3
- s as LinkWrapper,
4
- l as buildColorVars,
5
- i as getAvailableStatePanels,
6
- r as getColorAlpha,
3
+ s as buildColorVars,
4
+ l as getAvailableStatePanels,
5
+ i as getColorAlpha,
7
6
  t as getFormFieldValidationError,
8
7
  o as getUnavailableStates,
9
- d as isPanelAvailable,
10
- n as isValidEmailFormat,
11
- g as isValidPhoneFormat,
12
- m as readTestimonialTextMeasure,
13
- b as scalingValue,
14
- p as useScopedStyles
8
+ r as isPanelAvailable,
9
+ d as isValidEmailFormat,
10
+ n as isValidPhoneFormat,
11
+ g as readTestimonialTextMeasure,
12
+ m as scalingValue,
13
+ b as useScopedStyles
15
14
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cntrl-site/components",
3
- "version": "1.0.97-0",
3
+ "version": "1.0.97-alpha.1",
4
4
  "description": "Custom components for control editor and public websites.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -1,16 +0,0 @@
1
- import { CSSProperties, FC, ReactNode } from 'react';
2
- interface Props {
3
- /**
4
- * A content link or a rich text link node: both keep the url in `value` and `blank` or `self`
5
- * in `target` (`_blank` is taken too).
6
- */
7
- link?: {
8
- value: string;
9
- target?: string;
10
- };
11
- className?: string;
12
- style?: CSSProperties;
13
- children?: ReactNode;
14
- }
15
- export declare const LinkWrapper: FC<Props>;
16
- export {};
@@ -1 +0,0 @@
1
- "use strict";const m=require("react"),u=require("react/jsx-runtime");function v(t,e=!1){return e?`calc(var(--cntrl-article-width) * ${t})`:`${t*100}vw`}const x=(t,e,r,a,n)=>{const i={};for(const[s,l]of Object.entries(r))i[`--${t}-${l}`]=e[s];const o=new Set(a);if(n)for(const s of Object.keys(n))o.add(s);for(const s of o){const l=n==null?void 0:n[s];if(l)for(const[h,b]of Object.entries(r)){const c=l[h];c!==void 0&&(i[`--${t}-${s}-${b}`]=c)}}return i};function S(t){const e=t.trim();if(!e||e==="none")return 1;if(e.endsWith("%")){const a=parseFloat(e);return Number.isFinite(a)?a/100:1}const r=parseFloat(e);return Number.isFinite(r)?r:1}function F(t){const e=t.lastIndexOf("/");if(e!==-1)return S(t.slice(e+1))}function $(t){const e=t.trim().toLowerCase();if(!e||e==="transparent")return 0;const r=e.match(/^(?:oklch|oklab|rgba?|hsla?|hwb|lab|lch|color)\((.+)\)$/);if(r){const n=r[1],i=F(n);if(i!==void 0)return i;if(/^(?:rgba|hsla)$/.test(e.slice(0,4))){const o=n.split(",").map(s=>parseFloat(s.trim()));if(o.length===4&&Number.isFinite(o[3]))return o[3]}return 1}const a=e.match(/^#([0-9a-f]{4}|[0-9a-f]{8})$/);if(a){const n=a[1],i=n.length===4?n[3]+n[3]:n.slice(6,8);return parseInt(i,16)/255}return 1}const A=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,f=t=>A.test(t.trim()),d=t=>{const e=t.replace(/\D/g,"");return e.length>=7&&e.length<=15},y=(t,e)=>{var r;for(const a of t){const n=((r=e[a.name])==null?void 0:r.trim())??"";if(n){if(a.type==="email"&&!f(n))return"Please enter a valid email address.";if(a.type==="phone"&&!d(n))return"Please enter a valid phone number."}}return null};function P(){const e=`cf-${m.useId().replace(/:/g,"")}`;return{prefix:e,cls:r=>`${e}-${r}`}}const V=(t,e)=>{const r=Array.from(t.querySelectorAll('[data-testimonial-measure="text"]')).reduce((n,i)=>Math.max(n,i.getBoundingClientRect().height),0),a=Array.from(t.querySelectorAll('[data-testimonial-measure="caption"]')).reduce((n,i)=>Math.max(n,i.getBoundingClientRect().height),0);e({maxTextPx:r,maxCaptionPx:a})};function g(t,e){const r=t==null?void 0:t.availableWhen;return r?Object.entries(r).every(([a,n])=>{if(!(n!=null&&n.length))return!0;const i=e[a];return i===void 0?!0:n.includes(i)}):!0}function p(t,e){const r=t==null?void 0:t.statePanels;return r!=null&&r.length?r.filter(a=>{var i;const n=(i=t==null?void 0:t.panels)==null?void 0:i.find(o=>o.id===a);return g(n,e)}):null}function E(t,e){const r=t==null?void 0:t.statePanels;if(!(r!=null&&r.length))return[];const a=new Set(p(t,e)??[]);return r.filter(n=>!a.has(n))}const j=["http://","https://","/","mailto:","tel:","file:","ftp:","javascript","#"];function C(t){return j.some(e=>t.startsWith(e))?t:`//${t}`}const I=({link:t,className:e,style:r,children:a})=>{if(!(t!=null&&t.value))return u.jsx(u.Fragment,{children:a});const n=t.target==="blank"||t.target==="_blank"?{target:"_blank",rel:"noreferrer"}:{};return u.jsx("a",{href:C(t.value),className:e,style:r,...n,children:a})};exports.LinkWrapper=I;exports.buildColorVars=x;exports.getAvailableStatePanels=p;exports.getColorAlpha=$;exports.getFormFieldValidationError=y;exports.getUnavailableStates=E;exports.isPanelAvailable=g;exports.isValidEmailFormat=f;exports.isValidPhoneFormat=d;exports.readTestimonialTextMeasure=V;exports.scalingValue=v;exports.useScopedStyles=P;
@@ -1,137 +0,0 @@
1
- import { useId as g } from "react";
2
- import { jsx as c, Fragment as d } from "react/jsx-runtime";
3
- function E(t, e = !1) {
4
- return e ? `calc(var(--cntrl-article-width) * ${t})` : `${t * 100}vw`;
5
- }
6
- const I = (t, e, r, a, n) => {
7
- const i = {};
8
- for (const [s, l] of Object.entries(r))
9
- i[`--${t}-${l}`] = e[s];
10
- const o = new Set(a);
11
- if (n)
12
- for (const s of Object.keys(n))
13
- o.add(s);
14
- for (const s of o) {
15
- const l = n == null ? void 0 : n[s];
16
- if (l)
17
- for (const [f, p] of Object.entries(r)) {
18
- const u = l[f];
19
- u !== void 0 && (i[`--${t}-${s}-${p}`] = u);
20
- }
21
- }
22
- return i;
23
- };
24
- function h(t) {
25
- const e = t.trim();
26
- if (!e || e === "none") return 1;
27
- if (e.endsWith("%")) {
28
- const a = parseFloat(e);
29
- return Number.isFinite(a) ? a / 100 : 1;
30
- }
31
- const r = parseFloat(e);
32
- return Number.isFinite(r) ? r : 1;
33
- }
34
- function m(t) {
35
- const e = t.lastIndexOf("/");
36
- if (e !== -1)
37
- return h(t.slice(e + 1));
38
- }
39
- function j(t) {
40
- const e = t.trim().toLowerCase();
41
- if (!e || e === "transparent") return 0;
42
- const r = e.match(/^(?:oklch|oklab|rgba?|hsla?|hwb|lab|lch|color)\((.+)\)$/);
43
- if (r) {
44
- const n = r[1], i = m(n);
45
- if (i !== void 0) return i;
46
- if (/^(?:rgba|hsla)$/.test(e.slice(0, 4))) {
47
- const o = n.split(",").map((s) => parseFloat(s.trim()));
48
- if (o.length === 4 && Number.isFinite(o[3]))
49
- return o[3];
50
- }
51
- return 1;
52
- }
53
- const a = e.match(/^#([0-9a-f]{4}|[0-9a-f]{8})$/);
54
- if (a) {
55
- const n = a[1], i = n.length === 4 ? n[3] + n[3] : n.slice(6, 8);
56
- return parseInt(i, 16) / 255;
57
- }
58
- return 1;
59
- }
60
- const b = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, v = (t) => b.test(t.trim()), x = (t) => {
61
- const e = t.replace(/\D/g, "");
62
- return e.length >= 7 && e.length <= 15;
63
- }, C = (t, e) => {
64
- var r;
65
- for (const a of t) {
66
- const n = ((r = e[a.name]) == null ? void 0 : r.trim()) ?? "";
67
- if (n) {
68
- if (a.type === "email" && !v(n))
69
- return "Please enter a valid email address.";
70
- if (a.type === "phone" && !x(n))
71
- return "Please enter a valid phone number.";
72
- }
73
- }
74
- return null;
75
- };
76
- function L() {
77
- const e = `cf-${g().replace(/:/g, "")}`;
78
- return {
79
- prefix: e,
80
- cls: (r) => `${e}-${r}`
81
- };
82
- }
83
- const M = (t, e) => {
84
- const r = Array.from(t.querySelectorAll('[data-testimonial-measure="text"]')).reduce(
85
- (n, i) => Math.max(n, i.getBoundingClientRect().height),
86
- 0
87
- ), a = Array.from(t.querySelectorAll('[data-testimonial-measure="caption"]')).reduce(
88
- (n, i) => Math.max(n, i.getBoundingClientRect().height),
89
- 0
90
- );
91
- e({ maxTextPx: r, maxCaptionPx: a });
92
- };
93
- function $(t, e) {
94
- const r = t == null ? void 0 : t.availableWhen;
95
- return r ? Object.entries(r).every(([a, n]) => {
96
- if (!(n != null && n.length)) return !0;
97
- const i = e[a];
98
- return i === void 0 ? !0 : n.includes(i);
99
- }) : !0;
100
- }
101
- function S(t, e) {
102
- const r = t == null ? void 0 : t.statePanels;
103
- return r != null && r.length ? r.filter((a) => {
104
- var i;
105
- const n = (i = t == null ? void 0 : t.panels) == null ? void 0 : i.find((o) => o.id === a);
106
- return $(n, e);
107
- }) : null;
108
- }
109
- function R(t, e) {
110
- const r = t == null ? void 0 : t.statePanels;
111
- if (!(r != null && r.length)) return [];
112
- const a = new Set(S(t, e) ?? []);
113
- return r.filter((n) => !a.has(n));
114
- }
115
- const F = ["http://", "https://", "/", "mailto:", "tel:", "file:", "ftp:", "javascript", "#"];
116
- function y(t) {
117
- return F.some((e) => t.startsWith(e)) ? t : `//${t}`;
118
- }
119
- const V = ({ link: t, className: e, style: r, children: a }) => {
120
- if (!(t != null && t.value)) return /* @__PURE__ */ c(d, { children: a });
121
- const n = t.target === "blank" || t.target === "_blank" ? { target: "_blank", rel: "noreferrer" } : {};
122
- return /* @__PURE__ */ c("a", { href: y(t.value), className: e, style: r, ...n, children: a });
123
- };
124
- export {
125
- V as L,
126
- C as a,
127
- I as b,
128
- x as c,
129
- S as d,
130
- R as e,
131
- $ as f,
132
- j as g,
133
- v as i,
134
- M as r,
135
- E as s,
136
- L as u
137
- };