@xscriptor/xcomponents 0.1.1 → 0.1.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/{chunk-TKT37LIX.mjs → chunk-BXVG4SYP.mjs} +101 -39
- package/dist/chunk-BXVG4SYP.mjs.map +7 -0
- package/dist/{chunk-UROP4J6G.mjs → chunk-FW47JGYZ.mjs} +122 -29
- package/dist/chunk-FW47JGYZ.mjs.map +7 -0
- package/dist/{chunk-34NJCJUI.mjs → chunk-IK2UCTCM.mjs} +46 -15
- package/dist/chunk-IK2UCTCM.mjs.map +7 -0
- package/dist/{chunk-2H7TVDE7.mjs → chunk-WE7QZGVP.mjs} +45 -14
- package/dist/chunk-WE7QZGVP.mjs.map +7 -0
- package/dist/{chunk-MYFPSHSQ.mjs → chunk-XB3UGHSF.mjs} +94 -32
- package/dist/chunk-XB3UGHSF.mjs.map +7 -0
- package/dist/{chunk-TG3B4GAW.mjs → chunk-ZDMG7X6H.mjs} +57 -26
- package/dist/{chunk-TG3B4GAW.mjs.map → chunk-ZDMG7X6H.mjs.map} +4 -4
- package/dist/components/content/index.css +64 -65
- package/dist/components/content/index.css.map +4 -4
- package/dist/components/content/index.js +45 -14
- package/dist/components/content/index.js.map +4 -4
- package/dist/components/content/index.mjs +1 -1
- package/dist/components/forms/index.css +113 -115
- package/dist/components/forms/index.css.map +4 -4
- package/dist/components/forms/index.js +100 -38
- package/dist/components/forms/index.js.map +4 -4
- package/dist/components/forms/index.mjs +1 -1
- package/dist/components/gallery/index.css +107 -110
- package/dist/components/gallery/index.css.map +4 -4
- package/dist/components/gallery/index.js +93 -31
- package/dist/components/gallery/index.js.map +4 -4
- package/dist/components/gallery/index.mjs +1 -1
- package/dist/components/index.css +536 -534
- package/dist/components/index.css.map +4 -4
- package/dist/components/index.js +459 -149
- package/dist/components/index.js.map +4 -4
- package/dist/components/index.mjs +6 -6
- package/dist/components/layout/index.css +89 -81
- package/dist/components/layout/index.css.map +4 -4
- package/dist/components/layout/index.js +121 -28
- package/dist/components/layout/index.js.map +4 -4
- package/dist/components/layout/index.mjs +1 -1
- package/dist/components/navigation/index.css +120 -120
- package/dist/components/navigation/index.css.map +4 -4
- package/dist/components/navigation/index.js +56 -25
- package/dist/components/navigation/index.js.map +4 -4
- package/dist/components/navigation/index.mjs +1 -1
- package/dist/components/social/index.css +43 -43
- package/dist/components/social/index.css.map +4 -4
- package/dist/components/social/index.js +44 -13
- package/dist/components/social/index.js.map +4 -4
- package/dist/components/social/index.mjs +1 -1
- package/dist/index.css +536 -534
- package/dist/index.css.map +4 -4
- package/dist/index.js +459 -149
- package/dist/index.js.map +4 -4
- package/dist/index.mjs +6 -6
- package/package.json +2 -1
- package/dist/chunk-2H7TVDE7.mjs.map +0 -7
- package/dist/chunk-34NJCJUI.mjs.map +0 -7
- package/dist/chunk-MYFPSHSQ.mjs.map +0 -7
- package/dist/chunk-TKT37LIX.mjs.map +0 -7
- package/dist/chunk-UROP4J6G.mjs.map +0 -7
|
@@ -1,131 +1,130 @@
|
|
|
1
|
-
/* src/components/content/xinteractivephrase/XInteractivePhrase.module.css */
|
|
2
|
-
.
|
|
3
|
-
padding: 1rem 0;
|
|
1
|
+
/* esbuild-css-modules-plugin-ns-css:src/components/content/xinteractivephrase/XInteractivePhrase.module.css */
|
|
2
|
+
.XInteractivePhrase-module__container_fdhnVG__012 {
|
|
4
3
|
color: var(--text, #000);
|
|
5
4
|
width: 100%;
|
|
5
|
+
padding: 1rem 0;
|
|
6
6
|
}
|
|
7
|
-
.
|
|
8
|
-
margin: 0;
|
|
9
|
-
padding: 0;
|
|
7
|
+
.XInteractivePhrase-module__title_fdhnVG__012 {
|
|
10
8
|
line-height: 1.3;
|
|
11
9
|
font-weight: inherit;
|
|
12
10
|
text-align: inherit;
|
|
11
|
+
margin: 0;
|
|
12
|
+
padding: 0;
|
|
13
13
|
}
|
|
14
|
-
h1.
|
|
14
|
+
h1.XInteractivePhrase-module__title_fdhnVG__012 {
|
|
15
|
+
text-align: inherit;
|
|
16
|
+
margin: 0;
|
|
17
|
+
padding: 0;
|
|
15
18
|
font-size: clamp(2rem, 6vw, 2.2rem);
|
|
16
19
|
font-weight: 800;
|
|
20
|
+
}
|
|
21
|
+
h2.XInteractivePhrase-module__title_fdhnVG__012 {
|
|
22
|
+
text-align: inherit;
|
|
17
23
|
margin: 0;
|
|
18
24
|
padding: 0;
|
|
19
|
-
text-align: inherit;
|
|
20
|
-
}
|
|
21
|
-
h2.XInteractivePhrase_title3 {
|
|
22
25
|
font-size: clamp(1.675rem, 4vw, 1.8rem);
|
|
23
26
|
font-weight: 700;
|
|
27
|
+
}
|
|
28
|
+
h3.XInteractivePhrase-module__title_fdhnVG__012 {
|
|
29
|
+
text-align: inherit;
|
|
24
30
|
margin: 0;
|
|
25
31
|
padding: 0;
|
|
26
|
-
text-align: inherit;
|
|
27
|
-
}
|
|
28
|
-
h3.XInteractivePhrase_title3 {
|
|
29
32
|
font-size: clamp(1.4rem, 3vw, 1.95rem);
|
|
30
33
|
font-weight: 700;
|
|
34
|
+
}
|
|
35
|
+
h4.XInteractivePhrase-module__title_fdhnVG__012 {
|
|
36
|
+
text-align: inherit;
|
|
31
37
|
margin: 0;
|
|
32
38
|
padding: 0;
|
|
33
|
-
text-align: inherit;
|
|
34
|
-
}
|
|
35
|
-
h4.XInteractivePhrase_title3 {
|
|
36
39
|
font-size: clamp(1.25rem, 3vw, 2rem);
|
|
37
40
|
font-weight: 600;
|
|
41
|
+
}
|
|
42
|
+
h5.XInteractivePhrase-module__title_fdhnVG__012 {
|
|
43
|
+
text-align: inherit;
|
|
38
44
|
margin: 0;
|
|
39
45
|
padding: 0;
|
|
40
|
-
text-align: inherit;
|
|
41
|
-
}
|
|
42
|
-
h5.XInteractivePhrase_title3 {
|
|
43
46
|
font-size: clamp(1.125rem, 3vw, 1.5rem);
|
|
44
47
|
font-weight: 600;
|
|
48
|
+
}
|
|
49
|
+
h6.XInteractivePhrase-module__title_fdhnVG__012 {
|
|
50
|
+
text-align: inherit;
|
|
45
51
|
margin: 0;
|
|
46
52
|
padding: 0;
|
|
47
|
-
text-align: inherit;
|
|
48
|
-
}
|
|
49
|
-
h6.XInteractivePhrase_title3 {
|
|
50
53
|
font-size: clamp(1rem, 2.5vw, 1.25rem);
|
|
51
54
|
font-weight: 600;
|
|
55
|
+
}
|
|
56
|
+
p.XInteractivePhrase-module__title_fdhnVG__012 {
|
|
57
|
+
text-align: inherit;
|
|
52
58
|
margin: 0;
|
|
53
59
|
padding: 0;
|
|
54
|
-
text-align: inherit;
|
|
55
|
-
}
|
|
56
|
-
p.XInteractivePhrase_title3 {
|
|
57
60
|
font-size: 1rem;
|
|
58
61
|
font-weight: 400;
|
|
59
|
-
margin: 0;
|
|
60
|
-
padding: 0;
|
|
61
|
-
text-align: inherit;
|
|
62
62
|
}
|
|
63
|
-
.
|
|
64
|
-
font-weight: 900;
|
|
63
|
+
.XInteractivePhrase-module__title_fdhnVG__012 strong {
|
|
65
64
|
color: var(--accent, #0070f3);
|
|
65
|
+
font-weight: 900;
|
|
66
66
|
}
|
|
67
|
-
.
|
|
68
|
-
font-style: italic;
|
|
67
|
+
.XInteractivePhrase-module__title_fdhnVG__012 em {
|
|
69
68
|
font-family: serif;
|
|
69
|
+
font-style: italic;
|
|
70
70
|
}
|
|
71
|
-
.
|
|
72
|
-
position: relative;
|
|
71
|
+
.XInteractivePhrase-module__underlineEffect_fdhnVG__012 {
|
|
73
72
|
cursor: pointer;
|
|
74
73
|
color: var(--accent, #0070f3);
|
|
74
|
+
transition: color .3s;
|
|
75
75
|
display: inline-block;
|
|
76
|
-
|
|
76
|
+
position: relative;
|
|
77
77
|
}
|
|
78
|
-
.
|
|
78
|
+
.XInteractivePhrase-module__underlineEffect_fdhnVG__012:after {
|
|
79
79
|
content: "";
|
|
80
|
-
position: absolute;
|
|
81
|
-
bottom: -2px;
|
|
82
|
-
left: 0;
|
|
83
|
-
height: 0.15em;
|
|
84
|
-
width: 100%;
|
|
85
80
|
background:
|
|
86
81
|
repeating-linear-gradient(
|
|
87
82
|
45deg,
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
currentColor 2px
|
|
91
|
-
|
|
92
|
-
|
|
83
|
+
#0000,
|
|
84
|
+
#0000 2px,
|
|
85
|
+
currentColor 2px 4px);
|
|
86
|
+
width: 100%;
|
|
87
|
+
height: .15em;
|
|
88
|
+
transition: opacity .3s;
|
|
89
|
+
position: absolute;
|
|
90
|
+
bottom: -2px;
|
|
91
|
+
left: 0;
|
|
93
92
|
}
|
|
94
|
-
.
|
|
93
|
+
.XInteractivePhrase-module__underlineEffect_fdhnVG__012:hover:after {
|
|
95
94
|
opacity: 0;
|
|
96
95
|
}
|
|
97
|
-
.
|
|
98
|
-
display: inline-block;
|
|
99
|
-
padding: 0.1em 0.6em;
|
|
100
|
-
border: 2px dashed currentColor;
|
|
101
|
-
border-radius: 9999px;
|
|
96
|
+
.XInteractivePhrase-module__buttonEffect_fdhnVG__012 {
|
|
102
97
|
cursor: pointer;
|
|
103
98
|
color: var(--accent, #0070f3);
|
|
104
|
-
|
|
99
|
+
border: 2px dashed;
|
|
100
|
+
border-radius: 9999px;
|
|
101
|
+
padding: .1em .6em;
|
|
102
|
+
transition: all .3s;
|
|
103
|
+
display: inline-block;
|
|
105
104
|
}
|
|
106
|
-
.
|
|
107
|
-
background: currentColor;
|
|
105
|
+
.XInteractivePhrase-module__buttonEffect_fdhnVG__012:hover {
|
|
108
106
|
color: var(--bg, #fff);
|
|
107
|
+
background: currentColor;
|
|
109
108
|
}
|
|
110
|
-
.
|
|
109
|
+
.XInteractivePhrase-module__blurEffect_fdhnVG__012 {
|
|
110
|
+
transition: filter .7s cubic-bezier(.4, 0, .2, 1), opacity .7s;
|
|
111
111
|
display: inline-block;
|
|
112
|
-
transition: filter 0.7s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.7s ease;
|
|
113
112
|
}
|
|
114
|
-
.
|
|
115
|
-
filter: blur(
|
|
113
|
+
.XInteractivePhrase-module__isVisible_fdhnVG__012 {
|
|
114
|
+
filter: blur();
|
|
116
115
|
opacity: 1;
|
|
117
116
|
}
|
|
118
|
-
.
|
|
117
|
+
.XInteractivePhrase-module__isHidden_fdhnVG__012 {
|
|
119
118
|
filter: blur(10px);
|
|
120
|
-
opacity:
|
|
119
|
+
opacity: .3;
|
|
121
120
|
user-select: none;
|
|
122
121
|
}
|
|
123
|
-
.
|
|
122
|
+
.XInteractivePhrase-module__lineBreak_fdhnVG__012 {
|
|
123
|
+
height: .8rem;
|
|
124
124
|
display: block;
|
|
125
|
-
height: 0.8rem;
|
|
126
125
|
}
|
|
127
|
-
.
|
|
128
|
-
.
|
|
126
|
+
.XInteractivePhrase-module__underlineEffect_fdhnVG__012:focus-visible,
|
|
127
|
+
.XInteractivePhrase-module__buttonEffect_fdhnVG__012:focus-visible {
|
|
129
128
|
outline: 2px solid var(--accent, #0070f3);
|
|
130
129
|
outline-offset: 4px;
|
|
131
130
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["
|
|
4
|
-
"sourcesContent": [".
|
|
5
|
-
"mappings": ";AAAA,
|
|
6
|
-
"names": [
|
|
3
|
+
"sources": ["esbuild-css-modules-plugin-ns-css:src/components/content/xinteractivephrase/XInteractivePhrase.module.css"],
|
|
4
|
+
"sourcesContent": [".XInteractivePhrase-module__container_fdhnVG__012 {\n color: var(--text, #000);\n width: 100%;\n padding: 1rem 0;\n}\n\n.XInteractivePhrase-module__title_fdhnVG__012 {\n line-height: 1.3;\n font-weight: inherit;\n text-align: inherit;\n margin: 0;\n padding: 0;\n}\n\nh1.XInteractivePhrase-module__title_fdhnVG__012 {\n text-align: inherit;\n margin: 0;\n padding: 0;\n font-size: clamp(2rem, 6vw, 2.2rem);\n font-weight: 800;\n}\n\nh2.XInteractivePhrase-module__title_fdhnVG__012 {\n text-align: inherit;\n margin: 0;\n padding: 0;\n font-size: clamp(1.675rem, 4vw, 1.8rem);\n font-weight: 700;\n}\n\nh3.XInteractivePhrase-module__title_fdhnVG__012 {\n text-align: inherit;\n margin: 0;\n padding: 0;\n font-size: clamp(1.4rem, 3vw, 1.95rem);\n font-weight: 700;\n}\n\nh4.XInteractivePhrase-module__title_fdhnVG__012 {\n text-align: inherit;\n margin: 0;\n padding: 0;\n font-size: clamp(1.25rem, 3vw, 2rem);\n font-weight: 600;\n}\n\nh5.XInteractivePhrase-module__title_fdhnVG__012 {\n text-align: inherit;\n margin: 0;\n padding: 0;\n font-size: clamp(1.125rem, 3vw, 1.5rem);\n font-weight: 600;\n}\n\nh6.XInteractivePhrase-module__title_fdhnVG__012 {\n text-align: inherit;\n margin: 0;\n padding: 0;\n font-size: clamp(1rem, 2.5vw, 1.25rem);\n font-weight: 600;\n}\n\np.XInteractivePhrase-module__title_fdhnVG__012 {\n text-align: inherit;\n margin: 0;\n padding: 0;\n font-size: 1rem;\n font-weight: 400;\n}\n\n.XInteractivePhrase-module__title_fdhnVG__012 strong {\n color: var(--accent, #0070f3);\n font-weight: 900;\n}\n\n.XInteractivePhrase-module__title_fdhnVG__012 em {\n font-family: serif;\n font-style: italic;\n}\n\n.XInteractivePhrase-module__underlineEffect_fdhnVG__012 {\n cursor: pointer;\n color: var(--accent, #0070f3);\n transition: color .3s;\n display: inline-block;\n position: relative;\n}\n\n.XInteractivePhrase-module__underlineEffect_fdhnVG__012:after {\n content: \"\";\n background: repeating-linear-gradient(45deg, #0000, #0000 2px, currentColor 2px 4px);\n width: 100%;\n height: .15em;\n transition: opacity .3s;\n position: absolute;\n bottom: -2px;\n left: 0;\n}\n\n.XInteractivePhrase-module__underlineEffect_fdhnVG__012:hover:after {\n opacity: 0;\n}\n\n.XInteractivePhrase-module__buttonEffect_fdhnVG__012 {\n cursor: pointer;\n color: var(--accent, #0070f3);\n border: 2px dashed;\n border-radius: 9999px;\n padding: .1em .6em;\n transition: all .3s;\n display: inline-block;\n}\n\n.XInteractivePhrase-module__buttonEffect_fdhnVG__012:hover {\n color: var(--bg, #fff);\n background: currentColor;\n}\n\n.XInteractivePhrase-module__blurEffect_fdhnVG__012 {\n transition: filter .7s cubic-bezier(.4, 0, .2, 1), opacity .7s;\n display: inline-block;\n}\n\n.XInteractivePhrase-module__isVisible_fdhnVG__012 {\n filter: blur();\n opacity: 1;\n}\n\n.XInteractivePhrase-module__isHidden_fdhnVG__012 {\n filter: blur(10px);\n opacity: .3;\n user-select: none;\n}\n\n.XInteractivePhrase-module__lineBreak_fdhnVG__012 {\n height: .8rem;\n display: block;\n}\n\n.XInteractivePhrase-module__underlineEffect_fdhnVG__012:focus-visible, .XInteractivePhrase-module__buttonEffect_fdhnVG__012:focus-visible {\n outline: 2px solid var(--accent, #0070f3);\n outline-offset: 4px;\n}\n"],
|
|
5
|
+
"mappings": ";AAAA,CAAC;AACC,SAAO,IAAI,MAAM,EAAE;AACnB,SAAO;AACP,WAAS,KAAK;AAChB;AAEA,CAAC;AACC,eAAa;AACb,eAAa;AACb,cAAY;AACZ,UAAQ;AACR,WAAS;AACX;AAEA,EAAE,CARD;AASC,cAAY;AACZ,UAAQ;AACR,WAAS;AACT,aAAW,MAAM,IAAI,EAAE,GAAG,EAAE;AAC5B,eAAa;AACf;AAEA,EAAE,CAhBD;AAiBC,cAAY;AACZ,UAAQ;AACR,WAAS;AACT,aAAW,MAAM,QAAQ,EAAE,GAAG,EAAE;AAChC,eAAa;AACf;AAEA,EAAE,CAxBD;AAyBC,cAAY;AACZ,UAAQ;AACR,WAAS;AACT,aAAW,MAAM,MAAM,EAAE,GAAG,EAAE;AAC9B,eAAa;AACf;AAEA,EAAE,CAhCD;AAiCC,cAAY;AACZ,UAAQ;AACR,WAAS;AACT,aAAW,MAAM,OAAO,EAAE,GAAG,EAAE;AAC/B,eAAa;AACf;AAEA,EAAE,CAxCD;AAyCC,cAAY;AACZ,UAAQ;AACR,WAAS;AACT,aAAW,MAAM,QAAQ,EAAE,GAAG,EAAE;AAChC,eAAa;AACf;AAEA,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AAgB;AAClB;",
|
|
6
|
+
"names": []
|
|
7
7
|
}
|
|
@@ -37,18 +37,49 @@ module.exports = __toCommonJS(content_exports);
|
|
|
37
37
|
// src/components/content/xinteractivephrase/XInteractivePhrase.tsx
|
|
38
38
|
var import_react = __toESM(require("react"));
|
|
39
39
|
|
|
40
|
-
// src/components/content/xinteractivephrase/XInteractivePhrase.module.css
|
|
41
|
-
var
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
40
|
+
// esbuild-css-modules-plugin-ns-js::src/components/content/xinteractivephrase/XInteractivePhrase.module.css:injector.js
|
|
41
|
+
var content = __content_placeholder__;
|
|
42
|
+
var digest = __digest_placeholder__;
|
|
43
|
+
var inject = () => {
|
|
44
|
+
setTimeout(() => {
|
|
45
|
+
if (!globalThis.document) {
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
let root = globalThis.document.querySelector("head");
|
|
49
|
+
if (root && root.shadowRoot) {
|
|
50
|
+
root = root.shadowRoot;
|
|
51
|
+
}
|
|
52
|
+
if (!root) {
|
|
53
|
+
root = globalThis.document.head;
|
|
54
|
+
}
|
|
55
|
+
let container = root.querySelector("#_" + digest);
|
|
56
|
+
if (!container) {
|
|
57
|
+
container = globalThis.document.createElement("style");
|
|
58
|
+
container.id = "_" + digest;
|
|
59
|
+
const text = globalThis.document.createTextNode(content);
|
|
60
|
+
container.appendChild(text);
|
|
61
|
+
root.appendChild(container);
|
|
62
|
+
}
|
|
63
|
+
}, 0);
|
|
50
64
|
};
|
|
51
65
|
|
|
66
|
+
// src/components/content/xinteractivephrase/XInteractivePhrase.module.css
|
|
67
|
+
var XInteractivePhrase_default = new Proxy({
|
|
68
|
+
"blurEffect": "XInteractivePhrase-module__blurEffect_fdhnVG__012",
|
|
69
|
+
"buttonEffect": "XInteractivePhrase-module__buttonEffect_fdhnVG__012",
|
|
70
|
+
"container": "XInteractivePhrase-module__container_fdhnVG__012",
|
|
71
|
+
"isHidden": "XInteractivePhrase-module__isHidden_fdhnVG__012",
|
|
72
|
+
"isVisible": "XInteractivePhrase-module__isVisible_fdhnVG__012",
|
|
73
|
+
"lineBreak": "XInteractivePhrase-module__lineBreak_fdhnVG__012",
|
|
74
|
+
"title": "XInteractivePhrase-module__title_fdhnVG__012",
|
|
75
|
+
"underlineEffect": "XInteractivePhrase-module__underlineEffect_fdhnVG__012"
|
|
76
|
+
}, {
|
|
77
|
+
get: function(source, key) {
|
|
78
|
+
inject();
|
|
79
|
+
return source[key];
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
|
|
52
83
|
// src/components/content/xinteractivephrase/XInteractivePhrase.tsx
|
|
53
84
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
54
85
|
function XInteractivePhrase({
|
|
@@ -85,9 +116,9 @@ function XInteractivePhrase({
|
|
|
85
116
|
} else if (word.type === "blur2") {
|
|
86
117
|
dynamicClass = `${XInteractivePhrase_default.blurEffect} ${active2 ? XInteractivePhrase_default.isVisible : XInteractivePhrase_default.isHidden}`;
|
|
87
118
|
}
|
|
88
|
-
let
|
|
89
|
-
if (word.italic)
|
|
90
|
-
if (word.bold)
|
|
119
|
+
let content2 = word.text;
|
|
120
|
+
if (word.italic) content2 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("em", { children: content2 });
|
|
121
|
+
if (word.bold) content2 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("strong", { children: content2 });
|
|
91
122
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react.default.Fragment, { children: [
|
|
92
123
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
93
124
|
"span",
|
|
@@ -97,7 +128,7 @@ function XInteractivePhrase({
|
|
|
97
128
|
onKeyDown: keyHandler,
|
|
98
129
|
role: clickHandler ? "button" : void 0,
|
|
99
130
|
tabIndex: clickHandler ? 0 : void 0,
|
|
100
|
-
children:
|
|
131
|
+
children: content2
|
|
101
132
|
}
|
|
102
133
|
),
|
|
103
134
|
word.breakAfter ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: XInteractivePhrase_default.lineBreak }) : " "
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../../src/components/content/index.ts", "../../../src/components/content/xinteractivephrase/XInteractivePhrase.tsx", "../../../src/components/content/xinteractivephrase/XInteractivePhrase.module.css"],
|
|
4
|
-
"sourcesContent": ["export { XInteractivePhrase } from \"./xinteractivephrase\";\nexport type { XInteractivePhraseProps, WordConfig } from \"./xinteractivephrase\";\n", "\"use client\";\n\nimport React, { useState, KeyboardEvent } from \"react\";\nimport styles from \"./XInteractivePhrase.module.css\";\n\nexport interface WordConfig {\n text: string;\n // Solo comportamientos de interacci\u00F3n\n type: \"normal\" | \"underline\" | \"button\" | \"blur1\" | \"blur2\"; \n breakAfter?: boolean;\n italic?: boolean; // Esto controla el <em>\n bold?: boolean; // Esto controla el <strong>\n}\n\nexport interface XInteractivePhraseProps {\n words: WordConfig[];\n as?: \"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\" | \"p\" | \"span\";\n className?: string;\n}\n\nexport default function XInteractivePhrase({ \n words, \n as: Tag = \"p\", \n className = \"\" \n}: XInteractivePhraseProps) {\n const [active1, setActive1] = useState<boolean>(false);\n const [active2, setActive2] = useState<boolean>(false);\n\n const handleAction = (type: \"underline\" | \"button\") => {\n if (type === \"underline\") setActive1(!active1);\n if (type === \"button\") setActive2(!active2);\n };\n\n const onKeyDown = (e: KeyboardEvent<HTMLSpanElement>, type: \"underline\" | \"button\") => {\n if (e.key === \"Enter\" || e.key === \" \") {\n e.preventDefault();\n handleAction(type);\n }\n };\n\n return (\n <div className={`${styles.container} ${className}`}>\n <Tag className={styles.title}>\n {words.map((word, index) => {\n let dynamicClass = \"\";\n let clickHandler: (() => void) | undefined = undefined;\n let keyHandler: ((e: KeyboardEvent<HTMLSpanElement>) => void) | undefined = undefined;\n\n // Gesti\u00F3n de l\u00F3gica por tipo\n if (word.type === \"underline\") {\n dynamicClass = styles.underlineEffect;\n clickHandler = () => handleAction(\"underline\");\n keyHandler = (e) => onKeyDown(e, \"underline\");\n } \n else if (word.type === \"button\") {\n dynamicClass = styles.buttonEffect;\n clickHandler = () => handleAction(\"button\");\n keyHandler = (e) => onKeyDown(e, \"button\");\n } \n else if (word.type === \"blur1\") {\n dynamicClass = `${styles.blurEffect} ${active1 ? styles.isVisible : styles.isHidden}`;\n } \n else if (word.type === \"blur2\") {\n dynamicClass = `${styles.blurEffect} ${active2 ? styles.isVisible : styles.isHidden}`;\n }\n\n // Renderizado del contenido con estilos combinables\n let content: React.ReactNode = word.text;\n if (word.italic) content = <em>{content}</em>;\n if (word.bold) content = <strong>{content}</strong>;\n\n return (\n <React.Fragment key={index}>\n <span\n className={dynamicClass}\n onClick={clickHandler}\n onKeyDown={keyHandler}\n role={clickHandler ? \"button\" : undefined}\n tabIndex={clickHandler ? 0 : undefined}\n >\n {content}\n </span>\n {word.breakAfter ? <span className={styles.lineBreak} /> : \" \"}\n </React.Fragment>\n );\n })}\n </Tag>\n </div>\n );\n}", "
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACEA,mBAA+C;;;
|
|
6
|
-
"names": ["
|
|
3
|
+
"sources": ["../../../src/components/content/index.ts", "../../../src/components/content/xinteractivephrase/XInteractivePhrase.tsx", "esbuild-css-modules-plugin-ns-js::src/components/content/xinteractivephrase/XInteractivePhrase.module.css:injector.js", "../../../src/components/content/xinteractivephrase/XInteractivePhrase.module.css"],
|
|
4
|
+
"sourcesContent": ["export { XInteractivePhrase } from \"./xinteractivephrase\";\nexport type { XInteractivePhraseProps, WordConfig } from \"./xinteractivephrase\";\n", "\"use client\";\n\nimport React, { useState, KeyboardEvent } from \"react\";\nimport styles from \"./XInteractivePhrase.module.css\";\n\nexport interface WordConfig {\n text: string;\n // Solo comportamientos de interacci\u00F3n\n type: \"normal\" | \"underline\" | \"button\" | \"blur1\" | \"blur2\"; \n breakAfter?: boolean;\n italic?: boolean; // Esto controla el <em>\n bold?: boolean; // Esto controla el <strong>\n}\n\nexport interface XInteractivePhraseProps {\n words: WordConfig[];\n as?: \"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\" | \"p\" | \"span\";\n className?: string;\n}\n\nexport default function XInteractivePhrase({ \n words, \n as: Tag = \"p\", \n className = \"\" \n}: XInteractivePhraseProps) {\n const [active1, setActive1] = useState<boolean>(false);\n const [active2, setActive2] = useState<boolean>(false);\n\n const handleAction = (type: \"underline\" | \"button\") => {\n if (type === \"underline\") setActive1(!active1);\n if (type === \"button\") setActive2(!active2);\n };\n\n const onKeyDown = (e: KeyboardEvent<HTMLSpanElement>, type: \"underline\" | \"button\") => {\n if (e.key === \"Enter\" || e.key === \" \") {\n e.preventDefault();\n handleAction(type);\n }\n };\n\n return (\n <div className={`${styles.container} ${className}`}>\n <Tag className={styles.title}>\n {words.map((word, index) => {\n let dynamicClass = \"\";\n let clickHandler: (() => void) | undefined = undefined;\n let keyHandler: ((e: KeyboardEvent<HTMLSpanElement>) => void) | undefined = undefined;\n\n // Gesti\u00F3n de l\u00F3gica por tipo\n if (word.type === \"underline\") {\n dynamicClass = styles.underlineEffect;\n clickHandler = () => handleAction(\"underline\");\n keyHandler = (e) => onKeyDown(e, \"underline\");\n } \n else if (word.type === \"button\") {\n dynamicClass = styles.buttonEffect;\n clickHandler = () => handleAction(\"button\");\n keyHandler = (e) => onKeyDown(e, \"button\");\n } \n else if (word.type === \"blur1\") {\n dynamicClass = `${styles.blurEffect} ${active1 ? styles.isVisible : styles.isHidden}`;\n } \n else if (word.type === \"blur2\") {\n dynamicClass = `${styles.blurEffect} ${active2 ? styles.isVisible : styles.isHidden}`;\n }\n\n // Renderizado del contenido con estilos combinables\n let content: React.ReactNode = word.text;\n if (word.italic) content = <em>{content}</em>;\n if (word.bold) content = <strong>{content}</strong>;\n\n return (\n <React.Fragment key={index}>\n <span\n className={dynamicClass}\n onClick={clickHandler}\n onKeyDown={keyHandler}\n role={clickHandler ? \"button\" : undefined}\n tabIndex={clickHandler ? 0 : undefined}\n >\n {content}\n </span>\n {word.breakAfter ? <span className={styles.lineBreak} /> : \" \"}\n </React.Fragment>\n );\n })}\n </Tag>\n </div>\n );\n}", "\nconst content = __content_placeholder__;\nconst digest = __digest_placeholder__; \nconst inject = () => {\n setTimeout(() => {\n if (!globalThis.document) {\n return;\n }\n let root = globalThis.document.querySelector(\"head\");\n if (root && root.shadowRoot) {\n root = root.shadowRoot;\n }\n if (!root) {\n root = globalThis.document.head;\n }\n let container = root.querySelector(\"#_\" + digest);\n if (!container) {\n container = globalThis.document.createElement(\"style\");\n container.id = \"_\" + digest;\n const text = globalThis.document.createTextNode(content);\n container.appendChild(text);\n root.appendChild(container);\n }\n }, 0);\n};\n\nexport { inject };\n ", "import \"esbuild-css-modules-plugin-ns-css:src/components/content/xinteractivephrase/XInteractivePhrase.module.css\";\n\nimport { inject } from \"esbuild-css-modules-plugin-ns-js:src/components/content/xinteractivephrase/XInteractivePhrase.module.css:injector.js\";\nexport default new Proxy({\n \"blurEffect\": \"XInteractivePhrase-module__blurEffect_fdhnVG__012\",\n \"buttonEffect\": \"XInteractivePhrase-module__buttonEffect_fdhnVG__012\",\n \"container\": \"XInteractivePhrase-module__container_fdhnVG__012\",\n \"isHidden\": \"XInteractivePhrase-module__isHidden_fdhnVG__012\",\n \"isVisible\": \"XInteractivePhrase-module__isVisible_fdhnVG__012\",\n \"lineBreak\": \"XInteractivePhrase-module__lineBreak_fdhnVG__012\",\n \"title\": \"XInteractivePhrase-module__title_fdhnVG__012\",\n \"underlineEffect\": \"XInteractivePhrase-module__underlineEffect_fdhnVG__012\"\n}, {\n get: function(source, key) {\n inject();\n return source[key];\n }\n});\n "],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;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