@netlify/spark-ui 1.5.0-alpha.9 → 1.6.0
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/assets/SearchHeading.css +1 -1
- package/dist/assets/SearchLink.css +1 -1
- package/dist/assets/SearchModal.css +1 -1
- package/dist/chunks/compat.module.DJD78v1z.js +175 -0
- package/dist/chunks/hooks.module.D9IrxdEh.js +138 -0
- package/dist/chunks/{useTimeout.Cq4aqnDe.js → useTimeout.YR4eKwj7.js} +1 -1
- package/dist/components/index.d.ts +0 -1
- package/dist/components/preact/Icon/index.d.ts +2 -2
- package/dist/components/preact/Icon/index.js +75 -87
- package/dist/components/preact/Modal/Modal.js +1 -1
- package/dist/components/preact/SearchModal/components/SearchInput.d.ts +0 -2
- package/dist/components/preact/SearchModal/components/SearchInput.js +2 -2
- package/dist/components/preact/SearchModal/components/SearchLink/SearchLink.d.ts +1 -1
- package/dist/components/preact/SearchModal/components/SearchLink/SearchLink.js +17 -35
- package/dist/components/preact/SearchModal/components/SearchModal/SearchModal.js +49 -72
- package/dist/components/preact/SearchModal/components/SearchToggle/SearchToggle.js +1 -1
- package/dist/components/preact/SearchModal/components/SearchWindow.d.ts +1 -1
- package/dist/components/preact/SearchModal/components/SearchWindow.js +30 -49
- package/dist/components/preact/SearchModal/hooks/useKeyboardNav.js +6 -6
- package/dist/components/preact/SearchModal/hooks/useSearch.js +2 -2
- package/dist/components/preact/SearchModal/hooks/useSearchHotkeys.js +1 -1
- package/dist/components/preact/SearchModal/hooks/useSearchLogger.js +1 -1
- package/dist/components/preact/SearchModal/hooks/useSearchParams.js +1 -1
- package/dist/components/preact/SearchModal/hooks/useSearchToggles.d.ts +1 -3
- package/dist/components/preact/SearchModal/hooks/useSearchToggles.js +10 -13
- package/dist/components/preact/SearchModal/types/search.types.d.ts +1 -6
- package/dist/components/preact/index.d.ts +0 -1
- package/dist/components/preact/index.js +5 -7
- package/package.json +3 -5
- package/packages/assets/icons/ai.svg +22 -0
- package/packages/assets/icons/dev.svg +8 -0
- package/packages/assets/icons/ecommerce.svg +16 -0
- package/packages/assets/icons/marketing.svg +20 -0
- package/packages/components/CodeBlock.astro +4 -1
- package/packages/components/SectionTabbedContent.astro +185 -0
- package/packages/components/Switchback.astro +129 -0
- package/packages/components/Tab.astro +12 -0
- package/packages/components/TabList.astro +7 -0
- package/packages/components/TabPanel.astro +13 -0
- package/packages/components/TabPanelGroup.astro +45 -0
- package/packages/components/TabbedContent.astro +72 -0
- package/packages/components/Tabs.astro +0 -2
- package/packages/components/Testimonial.astro +0 -0
- package/packages/components/index.ts +0 -1
- package/packages/components/preact/Icon/index.tsx +55 -56
- package/packages/components/preact/SearchModal/components/SearchHeading/SearchHeading.css +4 -5
- package/packages/components/preact/SearchModal/components/SearchInput.tsx +7 -9
- package/packages/components/preact/SearchModal/components/SearchLink/SearchLink.css +9 -14
- package/packages/components/preact/SearchModal/components/SearchLink/SearchLink.tsx +7 -27
- package/packages/components/preact/SearchModal/components/SearchModal/SearchModal.css +29 -67
- package/packages/components/preact/SearchModal/components/SearchModal/SearchModal.tsx +30 -60
- package/packages/components/preact/SearchModal/components/SearchWindow.tsx +18 -32
- package/packages/components/preact/SearchModal/hooks/useKeyboardNav.ts +2 -2
- package/packages/components/preact/SearchModal/hooks/useSearchToggles.ts +3 -11
- package/packages/components/preact/SearchModal/types/search.types.tsx +2 -5
- package/packages/components/preact/index.ts +0 -1
- package/packages/styles/code-block.css +22 -23
- package/packages/styles/fonts.css +31 -2
- package/packages/styles/layout.css +33 -0
- package/packages/styles/tokens.css +22 -36
- package/packages/themes/poimandres.json +6 -19
- package/dist/assets/AskNetlify.css +0 -1
- package/dist/assets/Orb.css +0 -1
- package/dist/chunks/compat.module.BNbXPLVY.js +0 -298
- package/dist/chunks/hooks.module.DGkdD5n9.js +0 -177
- package/dist/components/preact/AskNetlify/AskNetlify.d.ts +0 -7
- package/dist/components/preact/AskNetlify/AskNetlify.js +0 -5774
- package/dist/components/preact/Orb/Orb.d.ts +0 -2
- package/dist/components/preact/Orb/Orb.js +0 -5
- package/dist/components/preact/SpriteIcon/index.d.ts +0 -7
- package/dist/components/preact/SpriteIcon/index.js +0 -7
- package/dist/components/preact/icons/AskNetlify.d.ts +0 -5
- package/dist/components/preact/icons/AskNetlify.js +0 -69
- package/dist/components/preact/icons/Book.d.ts +0 -5
- package/dist/components/preact/icons/Book.js +0 -23
- package/dist/components/preact/icons/CircleQuestion.d.ts +0 -5
- package/dist/components/preact/icons/CircleQuestion.js +0 -25
- package/dist/components/preact/icons/Comment.d.ts +0 -5
- package/dist/components/preact/icons/Comment.js +0 -23
- package/dist/components/preact/icons/Lightbulb.d.ts +0 -5
- package/dist/components/preact/icons/Lightbulb.js +0 -34
- package/dist/components/preact/icons/MagnifyingGlass.d.ts +0 -5
- package/dist/components/preact/icons/MagnifyingGlass.js +0 -23
- package/dist/utils/theme.d.ts +0 -3
- package/packages/assets/icons/AskNetlify.svg +0 -23
- package/packages/assets/icons/icons.svg +0 -10
- package/packages/assets/icons/lightbulb.svg +0 -4
- package/packages/components/preact/AskNetlify/AskNetlify.css +0 -224
- package/packages/components/preact/AskNetlify/AskNetlify.tsx +0 -156
- package/packages/components/preact/Orb/Orb.css +0 -94
- package/packages/components/preact/Orb/Orb.tsx +0 -7
- package/packages/components/preact/SpriteIcon/index.tsx +0 -13
- package/packages/components/preact/icons/AskNetlify.tsx +0 -46
- package/packages/components/preact/icons/Book.tsx +0 -20
- package/packages/components/preact/icons/CircleQuestion.tsx +0 -22
- package/packages/components/preact/icons/Comment.tsx +0 -20
- package/packages/components/preact/icons/Lightbulb.tsx +0 -26
- package/packages/components/preact/icons/MagnifyingGlass.tsx +0 -20
- package/packages/utils/theme.ts +0 -12
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { u as e } from "../../../chunks/jsxRuntime.module.Bzuv3cXw.js";
|
|
2
|
-
function c({ name: i, size: n = 24, className: r = "" }) {
|
|
3
|
-
return /* @__PURE__ */ e("svg", { className: `icon-${i} ${r || ""}`, "aria-hidden": "true", children: /* @__PURE__ */ e("use", { href: `/icons.svg#icon-${i}` }) });
|
|
4
|
-
}
|
|
5
|
-
export {
|
|
6
|
-
c as SpriteIcon
|
|
7
|
-
};
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { u as L } from "../../../chunks/jsxRuntime.module.Bzuv3cXw.js";
|
|
2
|
-
function C(l) {
|
|
3
|
-
return /* @__PURE__ */ L(
|
|
4
|
-
"svg",
|
|
5
|
-
{
|
|
6
|
-
id: "icon-askNetlify",
|
|
7
|
-
viewBox: "0 0 16 16",
|
|
8
|
-
fill: "none",
|
|
9
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
10
|
-
...l,
|
|
11
|
-
children: [
|
|
12
|
-
/* @__PURE__ */ L(
|
|
13
|
-
"path",
|
|
14
|
-
{
|
|
15
|
-
d: "M9.26465 1.02094L9.31322 0.921348L10.0528 0.666687L10.1524 0.715259L10.5563 1.9638L10.2999 2.4895L10.195 2.52628L9.6685 2.26948L9.26465 1.02094Z",
|
|
16
|
-
fill: "currentColor"
|
|
17
|
-
}
|
|
18
|
-
),
|
|
19
|
-
/* @__PURE__ */ L(
|
|
20
|
-
"path",
|
|
21
|
-
{
|
|
22
|
-
d: "M15.5915 3.11667L15.6942 3.15818L15.9999 3.8782L15.9584 3.98093L14.741 4.4709L14.1987 4.25179L14.1547 4.14977L14.3742 3.60663L15.5915 3.11667Z",
|
|
23
|
-
fill: "currentColor"
|
|
24
|
-
}
|
|
25
|
-
),
|
|
26
|
-
/* @__PURE__ */ L(
|
|
27
|
-
"path",
|
|
28
|
-
{
|
|
29
|
-
d: "M12.8306 0.944052L12.9353 0.907978L13.6384 1.25087L13.6744 1.35564L12.9408 2.91375L12.3877 3.10417L12.2876 3.05604L12.0969 2.50216L12.8306 0.944052Z",
|
|
30
|
-
fill: "currentColor"
|
|
31
|
-
}
|
|
32
|
-
),
|
|
33
|
-
/* @__PURE__ */ L(
|
|
34
|
-
"path",
|
|
35
|
-
{
|
|
36
|
-
d: "M5.60625 10.7823C5.60625 11.421 5.09138 11.9387 4.45625 11.9387C3.82112 11.9387 3.30625 11.421 3.30625 10.7823C3.30625 10.1436 3.82112 9.62585 4.45625 9.62585C5.09138 9.62585 5.60625 10.1436 5.60625 10.7823Z",
|
|
37
|
-
fill: "currentColor"
|
|
38
|
-
}
|
|
39
|
-
),
|
|
40
|
-
/* @__PURE__ */ L(
|
|
41
|
-
"path",
|
|
42
|
-
{
|
|
43
|
-
d: "M10.8777 11.9387C11.5129 11.9387 12.0277 11.421 12.0277 10.7823C12.0277 10.1436 11.5129 9.62585 10.8777 9.62585C10.2426 9.62585 9.72774 10.1436 9.72774 10.7823C9.72774 11.421 10.2426 11.9387 10.8777 11.9387Z",
|
|
44
|
-
fill: "currentColor"
|
|
45
|
-
}
|
|
46
|
-
),
|
|
47
|
-
/* @__PURE__ */ L(
|
|
48
|
-
"path",
|
|
49
|
-
{
|
|
50
|
-
d: "M8.41582 10.9491L8.43331 10.994L8.43337 11.2417L8.41589 11.2866L7.86046 12.4215L7.78018 12.4806H7.5763L7.49602 12.4215L6.91751 11.2866L6.90003 11.2417L6.89997 11.2114V10.994L6.91745 10.9491L7.55316 10.526H7.75704L8.41582 10.9491Z",
|
|
51
|
-
fill: "currentColor"
|
|
52
|
-
}
|
|
53
|
-
),
|
|
54
|
-
/* @__PURE__ */ L(
|
|
55
|
-
"path",
|
|
56
|
-
{
|
|
57
|
-
"fill-rule": "evenodd",
|
|
58
|
-
"clip-rule": "evenodd",
|
|
59
|
-
d: "M7.86997 4.00002C11.9918 4.00002 15.3333 6.70814 15.3333 10.853C15.3333 13.3274 13.3386 15.3334 10.878 15.3334H0V10.853C0 6.70814 3.34157 4.00002 7.46336 4.00002H7.86997ZM0.990302 10.5245C0.990302 8.69571 2.51537 7.15558 4.33747 7.15558C5.71877 7.15558 6.90206 7.9938 7.41504 9.19232C7.41751 9.1981 7.42291 9.20918 7.42291 9.20918H7.91072C7.91072 9.20918 7.91612 9.1981 7.91859 9.19232C8.43157 7.9938 9.61486 7.15558 10.9962 7.15558C12.8183 7.15558 14.3433 8.69571 14.3433 10.5245C14.3433 12.2311 12.9812 13.8499 11.447 13.8845H4.15184C2.38987 13.7867 0.990302 12.323 0.990302 10.5245Z",
|
|
60
|
-
fill: "currentColor"
|
|
61
|
-
}
|
|
62
|
-
)
|
|
63
|
-
]
|
|
64
|
-
}
|
|
65
|
-
);
|
|
66
|
-
}
|
|
67
|
-
export {
|
|
68
|
-
C as AskNeltify
|
|
69
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { u as C } from "../../../chunks/jsxRuntime.module.Bzuv3cXw.js";
|
|
2
|
-
function H(o) {
|
|
3
|
-
return /* @__PURE__ */ C(
|
|
4
|
-
"svg",
|
|
5
|
-
{
|
|
6
|
-
id: "icon-book",
|
|
7
|
-
viewBox: "0 0 16 16",
|
|
8
|
-
fill: "none",
|
|
9
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
10
|
-
...o,
|
|
11
|
-
children: /* @__PURE__ */ C(
|
|
12
|
-
"path",
|
|
13
|
-
{
|
|
14
|
-
d: "M4.57143 1C3.15179 1 2 2.17578 2 3.625V12.375C2 13.8242 3.15179 15 4.57143 15H12.2857H13.1429C13.617 15 14 14.609 14 14.125C14 13.641 13.617 13.25 13.1429 13.25V11.5C13.617 11.5 14 11.109 14 10.625V1.875C14 1.39102 13.617 1 13.1429 1H12.2857H4.57143ZM4.57143 11.5H11.4286V13.25H4.57143C4.09732 13.25 3.71429 12.859 3.71429 12.375C3.71429 11.891 4.09732 11.5 4.57143 11.5ZM5.42857 4.9375C5.42857 4.69687 5.62143 4.5 5.85714 4.5H11C11.2357 4.5 11.4286 4.69687 11.4286 4.9375C11.4286 5.17813 11.2357 5.375 11 5.375H5.85714C5.62143 5.375 5.42857 5.17813 5.42857 4.9375ZM5.85714 6.25H11C11.2357 6.25 11.4286 6.44687 11.4286 6.6875C11.4286 6.92813 11.2357 7.125 11 7.125H5.85714C5.62143 7.125 5.42857 6.92813 5.42857 6.6875C5.42857 6.44687 5.62143 6.25 5.85714 6.25Z",
|
|
15
|
-
fill: "currentColor"
|
|
16
|
-
}
|
|
17
|
-
)
|
|
18
|
-
}
|
|
19
|
-
);
|
|
20
|
-
}
|
|
21
|
-
export {
|
|
22
|
-
H as Book
|
|
23
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { u as C } from "../../../chunks/jsxRuntime.module.Bzuv3cXw.js";
|
|
2
|
-
function l(e) {
|
|
3
|
-
return /* @__PURE__ */ C(
|
|
4
|
-
"svg",
|
|
5
|
-
{
|
|
6
|
-
id: "icon-circle-question",
|
|
7
|
-
viewBox: "0 0 16 16",
|
|
8
|
-
fill: "none",
|
|
9
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
10
|
-
...e,
|
|
11
|
-
children: /* @__PURE__ */ C(
|
|
12
|
-
"path",
|
|
13
|
-
{
|
|
14
|
-
"fill-rule": "evenodd",
|
|
15
|
-
"clip-rule": "evenodd",
|
|
16
|
-
d: "M15 8C15 11.866 11.866 15 8 15C4.13401 15 1 11.866 1 8C1 4.13401 4.13401 1 8 1C11.866 1 15 4.13401 15 8ZM7.48998 7.58293C7.24532 7.9418 7.1073 8.36489 7.09243 8.80158L7.09232 9.00062C7.09232 9.21263 7.17498 9.41595 7.32211 9.56587C7.46924 9.71578 7.6688 9.8 7.87688 9.8C8.08495 9.8 8.28451 9.71578 8.43164 9.56587C8.57878 9.41595 8.66143 9.21263 8.66143 9.00062V8.8172C8.67459 8.68789 8.72283 8.56481 8.80083 8.46179C8.82284 8.43271 8.87624 8.39281 8.96482 8.34893C9.04677 8.30834 9.13665 8.27475 9.21483 8.24583L9.2194 8.24414L9.22961 8.24053L9.23662 8.2376C9.7635 8.01739 10.1981 7.61624 10.4651 7.10372C10.7321 6.5912 10.8149 5.99957 10.6987 5.43153L10.6962 5.42197C10.5641 4.91215 10.2876 4.45323 9.90133 4.10235C9.51593 3.7523 9.03819 3.52522 8.52737 3.44924C8.1077 3.37054 7.67619 3.38633 7.26312 3.49553C6.849 3.605 6.46349 3.80568 6.13376 4.08342C5.58181 4.54443 5.25866 5.23048 5.25 5.95706V5.95934C5.25 6.17135 5.33266 6.37468 5.47979 6.52459C5.62692 6.6745 5.82648 6.75872 6.03456 6.75872C6.24264 6.75872 6.44219 6.6745 6.58933 6.52459C6.73595 6.37519 6.81855 6.17275 6.81911 5.96153C6.82486 5.70702 6.94287 5.46722 7.13988 5.30865C7.29566 5.18188 7.47721 5.09021 7.67067 5.04112C7.86413 4.99203 8.06566 4.98632 8.26159 5.02383L8.2716 5.02518C8.47683 5.05273 8.67003 5.13962 8.82831 5.27556C8.98372 5.40903 9.09909 5.5843 9.16133 5.78128C9.23237 6.20988 8.99652 6.63061 8.59639 6.78484L8.59136 6.78696C8.22065 6.94277 7.74615 7.20718 7.48998 7.58293ZM7.87406 12.6C8.42636 12.6 8.8741 12.1523 8.8741 11.6C8.8741 11.0477 8.42636 10.6 7.87406 10.6C7.32175 10.6 6.87402 11.0477 6.87402 11.6C6.87402 12.1523 7.32175 12.6 7.87406 12.6Z",
|
|
17
|
-
fill: "currentColor"
|
|
18
|
-
}
|
|
19
|
-
)
|
|
20
|
-
}
|
|
21
|
-
);
|
|
22
|
-
}
|
|
23
|
-
export {
|
|
24
|
-
l as CircleQuestion
|
|
25
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { u as C } from "../../../chunks/jsxRuntime.module.Bzuv3cXw.js";
|
|
2
|
-
function r(o) {
|
|
3
|
-
return /* @__PURE__ */ C(
|
|
4
|
-
"svg",
|
|
5
|
-
{
|
|
6
|
-
id: "icon-comment",
|
|
7
|
-
viewBox: "0 0 16 16",
|
|
8
|
-
fill: "none",
|
|
9
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
10
|
-
...o,
|
|
11
|
-
children: /* @__PURE__ */ C(
|
|
12
|
-
"path",
|
|
13
|
-
{
|
|
14
|
-
d: "M15 7.57143C15 10.6491 11.8666 13.1429 8.00041 13.1429C6.98601 13.1429 6.02357 12.9714 5.15409 12.6634C4.82871 12.8964 4.29828 13.2152 3.66941 13.483C3.01319 13.7616 2.22301 14 1.43829 14C1.26056 14 1.10198 13.8955 1.03362 13.7348C0.965266 13.5741 1.00355 13.392 1.12658 13.2688L1.13479 13.2607C1.14299 13.2527 1.15393 13.242 1.17033 13.2232C1.20041 13.1911 1.24689 13.1402 1.30431 13.0705C1.41641 12.9366 1.56679 12.7384 1.71991 12.492C1.99333 12.0473 2.25308 11.4634 2.30503 10.8071C1.48477 9.89643 1.00081 8.77946 1.00081 7.57143C1.00081 4.49375 4.13422 2 8.00041 2C11.8666 2 15 4.49375 15 7.57143Z",
|
|
15
|
-
fill: "currentColor"
|
|
16
|
-
}
|
|
17
|
-
)
|
|
18
|
-
}
|
|
19
|
-
);
|
|
20
|
-
}
|
|
21
|
-
export {
|
|
22
|
-
r as Comment
|
|
23
|
-
};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { u as C } from "../../../chunks/jsxRuntime.module.Bzuv3cXw.js";
|
|
2
|
-
function e(l) {
|
|
3
|
-
return /* @__PURE__ */ C(
|
|
4
|
-
"svg",
|
|
5
|
-
{
|
|
6
|
-
id: "icon-lightbulb",
|
|
7
|
-
viewBox: "0 0 16 16",
|
|
8
|
-
fill: "none",
|
|
9
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
10
|
-
...l,
|
|
11
|
-
children: [
|
|
12
|
-
/* @__PURE__ */ C(
|
|
13
|
-
"path",
|
|
14
|
-
{
|
|
15
|
-
"fill-rule": "evenodd",
|
|
16
|
-
"clip-rule": "evenodd",
|
|
17
|
-
d: "M4.04938 8.73798C3.2407 7.81172 2.75 6.59946 2.75 5.27071C2.75 2.48473 4.94068 0.00930912 7.98359 2.55322e-05C10.8908 -0.00895859 13.25 2.35416 13.25 5.27071C13.25 6.59946 12.7593 7.81172 11.9506 8.73798C11.4578 9.30248 10.687 10.9818 10.3932 11.9766L10.3899 12H5.61006L5.60678 11.9766C5.31295 10.9818 4.54216 9.30248 4.04938 8.73798ZM8.34274 2.03953C8.42611 2.41703 8.18767 2.79064 7.81017 2.87402C6.80315 3.09642 6.06073 3.89938 5.85994 4.87157C5.78174 5.25018 5.41143 5.49371 5.03282 5.41552C4.65421 5.33732 4.41068 4.96701 4.48888 4.5884C4.79524 3.10505 5.93379 1.85468 7.50825 1.50696C7.88575 1.42359 8.25936 1.66203 8.34274 2.03953Z",
|
|
18
|
-
fill: "currentColor"
|
|
19
|
-
}
|
|
20
|
-
),
|
|
21
|
-
/* @__PURE__ */ C(
|
|
22
|
-
"path",
|
|
23
|
-
{
|
|
24
|
-
d: "M5.76932 14.9479C5.67636 14.81 5.62681 14.6478 5.62655 14.4823L5.62521 13.5L10.3752 13.5L10.3741 14.4823C10.374 14.648 10.3243 14.81 10.2314 14.9479L9.77614 15.6241C9.69838 15.7397 9.5929 15.8345 9.46909 15.9001C9.34529 15.9657 9.207 16 9.06653 16L6.93417 16C6.7937 16 6.65541 15.9657 6.5316 15.9001C6.4078 15.8345 6.30232 15.7397 6.22455 15.6241L5.76932 14.9479Z",
|
|
25
|
-
fill: "currentColor"
|
|
26
|
-
}
|
|
27
|
-
)
|
|
28
|
-
]
|
|
29
|
-
}
|
|
30
|
-
);
|
|
31
|
-
}
|
|
32
|
-
export {
|
|
33
|
-
e as Lightbulb
|
|
34
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { u as C } from "../../../chunks/jsxRuntime.module.Bzuv3cXw.js";
|
|
2
|
-
function o(n) {
|
|
3
|
-
return /* @__PURE__ */ C(
|
|
4
|
-
"svg",
|
|
5
|
-
{
|
|
6
|
-
id: "icon-magnifying-glass",
|
|
7
|
-
viewBox: "0 0 16 16",
|
|
8
|
-
fill: "none",
|
|
9
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
10
|
-
...n,
|
|
11
|
-
children: /* @__PURE__ */ C(
|
|
12
|
-
"path",
|
|
13
|
-
{
|
|
14
|
-
d: "M12.3756 6.68667C12.3756 7.94156 11.9681 9.10077 11.2818 10.0413L14.7436 13.5052C15.0855 13.8469 15.0855 14.4019 14.7436 14.7437C14.4018 15.0854 13.8467 15.0854 13.5049 14.7437L10.043 11.2797C9.10235 11.9687 7.94292 12.3733 6.68778 12.3733C3.54583 12.3733 1 9.828 1 6.68667C1 3.54533 3.54583 1 6.68778 1C9.82973 1 12.3756 3.54533 12.3756 6.68667ZM6.68778 10.6236C7.20488 10.6236 7.71692 10.5218 8.19467 10.3239C8.67241 10.1261 9.1065 9.83607 9.47215 9.47049C9.83779 9.10491 10.1278 8.67091 10.3257 8.19326C10.5236 7.71561 10.6255 7.20367 10.6255 6.68667C10.6255 6.16966 10.5236 5.65772 10.3257 5.18007C10.1278 4.70242 9.83779 4.26842 9.47215 3.90284C9.1065 3.53726 8.67241 3.24727 8.19467 3.04942C7.71692 2.85158 7.20488 2.74974 6.68778 2.74974C6.17067 2.74974 5.65863 2.85158 5.18089 3.04942C4.70315 3.24727 4.26906 3.53726 3.90341 3.90284C3.53776 4.26842 3.24771 4.70242 3.04982 5.18007C2.85194 5.65772 2.75009 6.16966 2.75009 6.68667C2.75009 7.20367 2.85194 7.71561 3.04982 8.19326C3.24771 8.67091 3.53776 9.10491 3.90341 9.47049C4.26906 9.83607 4.70315 10.1261 5.18089 10.3239C5.65863 10.5218 6.17067 10.6236 6.68778 10.6236Z",
|
|
15
|
-
fill: "currentColor"
|
|
16
|
-
}
|
|
17
|
-
)
|
|
18
|
-
}
|
|
19
|
-
);
|
|
20
|
-
}
|
|
21
|
-
export {
|
|
22
|
-
o as MagnifyingGlass
|
|
23
|
-
};
|
package/dist/utils/theme.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
<svg viewBox="0 0 16 16" fill="none">
|
|
2
|
-
<path
|
|
3
|
-
d="M9.26465 1.02094L9.31322 0.921348L10.0528 0.666687L10.1524 0.715259L10.5563 1.9638L10.2999 2.4895L10.195 2.52628L9.6685 2.26948L9.26465 1.02094Z"
|
|
4
|
-
fill="currentColor" />
|
|
5
|
-
<path
|
|
6
|
-
d="M15.5915 3.11667L15.6942 3.15818L15.9999 3.8782L15.9584 3.98093L14.741 4.4709L14.1987 4.25179L14.1547 4.14977L14.3742 3.60663L15.5915 3.11667Z"
|
|
7
|
-
fill="currentColor" />
|
|
8
|
-
<path
|
|
9
|
-
d="M12.8306 0.944052L12.9353 0.907978L13.6384 1.25087L13.6744 1.35564L12.9408 2.91375L12.3877 3.10417L12.2876 3.05604L12.0969 2.50216L12.8306 0.944052Z"
|
|
10
|
-
fill="currentColor" />
|
|
11
|
-
<path
|
|
12
|
-
d="M5.60625 10.7823C5.60625 11.421 5.09138 11.9387 4.45625 11.9387C3.82112 11.9387 3.30625 11.421 3.30625 10.7823C3.30625 10.1436 3.82112 9.62585 4.45625 9.62585C5.09138 9.62585 5.60625 10.1436 5.60625 10.7823Z"
|
|
13
|
-
fill="currentColor" />
|
|
14
|
-
<path
|
|
15
|
-
d="M10.8777 11.9387C11.5129 11.9387 12.0277 11.421 12.0277 10.7823C12.0277 10.1436 11.5129 9.62585 10.8777 9.62585C10.2426 9.62585 9.72774 10.1436 9.72774 10.7823C9.72774 11.421 10.2426 11.9387 10.8777 11.9387Z"
|
|
16
|
-
fill="currentColor" />
|
|
17
|
-
<path
|
|
18
|
-
d="M8.41582 10.9491L8.43331 10.994L8.43337 11.2417L8.41589 11.2866L7.86046 12.4215L7.78018 12.4806H7.5763L7.49602 12.4215L6.91751 11.2866L6.90003 11.2417L6.89997 11.2114V10.994L6.91745 10.9491L7.55316 10.526H7.75704L8.41582 10.9491Z"
|
|
19
|
-
fill="currentColor" />
|
|
20
|
-
<path fill-rule="evenodd" clip-rule="evenodd"
|
|
21
|
-
d="M7.86997 4.00002C11.9918 4.00002 15.3333 6.70814 15.3333 10.853C15.3333 13.3274 13.3386 15.3334 10.878 15.3334H0V10.853C0 6.70814 3.34157 4.00002 7.46336 4.00002H7.86997ZM0.990302 10.5245C0.990302 8.69571 2.51537 7.15558 4.33747 7.15558C5.71877 7.15558 6.90206 7.9938 7.41504 9.19232C7.41751 9.1981 7.42291 9.20918 7.42291 9.20918H7.91072C7.91072 9.20918 7.91612 9.1981 7.91859 9.19232C8.43157 7.9938 9.61486 7.15558 10.9962 7.15558C12.8183 7.15558 14.3433 8.69571 14.3433 10.5245C14.3433 12.2311 12.9812 13.8499 11.447 13.8845H4.15184C2.38987 13.7867 0.990302 12.323 0.990302 10.5245Z"
|
|
22
|
-
fill="currentColor" />
|
|
23
|
-
</svg>
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
|
|
2
|
-
<symbol id="icon-lightbulb" viewBox="0 0 16 16" fill="none">
|
|
3
|
-
<path fill-rule="evenodd" clip-rule="evenodd"
|
|
4
|
-
d="M4.04938 8.73798C3.2407 7.81172 2.75 6.59946 2.75 5.27071C2.75 2.48473 4.94068 0.00930912 7.98359 2.55322e-05C10.8908 -0.00895859 13.25 2.35416 13.25 5.27071C13.25 6.59946 12.7593 7.81172 11.9506 8.73798C11.4578 9.30248 10.687 10.9818 10.3932 11.9766L10.3899 12H5.61006L5.60678 11.9766C5.31295 10.9818 4.54216 9.30248 4.04938 8.73798ZM8.34274 2.03953C8.42611 2.41703 8.18767 2.79064 7.81017 2.87402C6.80315 3.09642 6.06073 3.89938 5.85994 4.87157C5.78174 5.25018 5.41143 5.49371 5.03282 5.41552C4.65421 5.33732 4.41068 4.96701 4.48888 4.5884C4.79524 3.10505 5.93379 1.85468 7.50825 1.50696C7.88575 1.42359 8.25936 1.66203 8.34274 2.03953Z"
|
|
5
|
-
fill="currentColor" />
|
|
6
|
-
<path
|
|
7
|
-
d="M5.76932 14.9479C5.67636 14.81 5.62681 14.6478 5.62655 14.4823L5.62521 13.5L10.3752 13.5L10.3741 14.4823C10.374 14.648 10.3243 14.81 10.2314 14.9479L9.77614 15.6241C9.69838 15.7397 9.5929 15.8345 9.46909 15.9001C9.34529 15.9657 9.207 16 9.06653 16L6.93417 16C6.7937 16 6.65541 15.9657 6.5316 15.9001C6.4078 15.8345 6.30232 15.7397 6.22455 15.6241L5.76932 14.9479Z"
|
|
8
|
-
fill="currentColor" />
|
|
9
|
-
</symbol>
|
|
10
|
-
</svg>
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M4.04938 8.73798C3.2407 7.81172 2.75 6.59946 2.75 5.27071C2.75 2.48473 4.94068 0.00930912 7.98359 2.55322e-05C10.8908 -0.00895859 13.25 2.35416 13.25 5.27071C13.25 6.59946 12.7593 7.81172 11.9506 8.73798C11.4578 9.30248 10.687 10.9818 10.3932 11.9766L10.3899 12H5.61006L5.60678 11.9766C5.31295 10.9818 4.54216 9.30248 4.04938 8.73798ZM8.34274 2.03953C8.42611 2.41703 8.18767 2.79064 7.81017 2.87402C6.80315 3.09642 6.06073 3.89938 5.85994 4.87157C5.78174 5.25018 5.41143 5.49371 5.03282 5.41552C4.65421 5.33732 4.41068 4.96701 4.48888 4.5884C4.79524 3.10505 5.93379 1.85468 7.50825 1.50696C7.88575 1.42359 8.25936 1.66203 8.34274 2.03953Z" fill="#181A1C"/>
|
|
3
|
-
<path d="M5.76932 14.9479C5.67636 14.81 5.62681 14.6478 5.62655 14.4823L5.62521 13.5L10.3752 13.5L10.3741 14.4823C10.374 14.648 10.3243 14.81 10.2314 14.9479L9.77614 15.6241C9.69838 15.7397 9.5929 15.8345 9.46909 15.9001C9.34529 15.9657 9.207 16 9.06653 16L6.93417 16C6.7937 16 6.65541 15.9657 6.5316 15.9001C6.4078 15.8345 6.30232 15.7397 6.22455 15.6241L5.76932 14.9479Z" fill="#181A1C"/>
|
|
4
|
-
</svg>
|
|
@@ -1,224 +0,0 @@
|
|
|
1
|
-
.chat-container {
|
|
2
|
-
opacity: 0;
|
|
3
|
-
animation: appearContainer 120ms ease-in-out forwards;
|
|
4
|
-
animation-delay: 140ms;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
@keyframes appearContainer {
|
|
8
|
-
0% {
|
|
9
|
-
opacity: 0;
|
|
10
|
-
}
|
|
11
|
-
100% {
|
|
12
|
-
opacity: 1;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.conversation {
|
|
17
|
-
height: calc(var(--n-search-container-height) + var(--n-search-footer-height));
|
|
18
|
-
padding: var(--n-search-padding-inline);
|
|
19
|
-
scroll-behavior: smooth;
|
|
20
|
-
overflow-y: auto;
|
|
21
|
-
display: grid;
|
|
22
|
-
align-items: flex-end;
|
|
23
|
-
gap: var(--space-s);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.question {
|
|
27
|
-
border: none;
|
|
28
|
-
color: var(--color-text-1);
|
|
29
|
-
font-weight: var(--font-weight-regular);
|
|
30
|
-
font-size: var(--step--1);
|
|
31
|
-
border-radius: var(--radius-pill);
|
|
32
|
-
transform: translateX(-0.75rem);
|
|
33
|
-
text-wrap: pretty;
|
|
34
|
-
text-align: left;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.question-list li {
|
|
38
|
-
opacity: 0;
|
|
39
|
-
transform: translateY(10px);
|
|
40
|
-
animation: fadeInUp 0.5s forwards;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.question-list li:nth-child(1) {
|
|
44
|
-
animation-delay: 0.5s;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.question-list li:nth-child(2) {
|
|
48
|
-
animation-delay: 0.3s;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.question-list li:nth-child(3) {
|
|
52
|
-
animation-delay: 0.1s;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
@keyframes fadeInUp {
|
|
56
|
-
to {
|
|
57
|
-
opacity: 1;
|
|
58
|
-
transform: translateY(0);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.message {
|
|
63
|
-
display: grid;
|
|
64
|
-
gap: var(--space-s);
|
|
65
|
-
margin-block-start: var(--space-2xl);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.message-bubble {
|
|
69
|
-
padding: var(--space-xs) var(--space-s);
|
|
70
|
-
background: var(--search-answer-message-color);
|
|
71
|
-
border-radius: var(--radius-l);
|
|
72
|
-
width: fit-content;
|
|
73
|
-
max-width: 85%;
|
|
74
|
-
font-size: var(--step-0);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.prose {
|
|
78
|
-
font-size: var(--step--0);
|
|
79
|
-
|
|
80
|
-
> * + * {
|
|
81
|
-
margin-top: var(--flow-space, var(--space-s));
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
:where(ol, ul, li) > * + * {
|
|
85
|
-
margin-top: var(--flow-space, var(--space-3xs));
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
h1,
|
|
89
|
-
h2,
|
|
90
|
-
h3 {
|
|
91
|
-
font-size: var(--step-1);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
h4,
|
|
95
|
-
h5,
|
|
96
|
-
h6 {
|
|
97
|
-
font-size: var(--step-0);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
pre {
|
|
101
|
-
background: var(--neutral-light-700);
|
|
102
|
-
border-radius: var(--radius-m);
|
|
103
|
-
max-width: 100%;
|
|
104
|
-
box-sizing: border-box;
|
|
105
|
-
padding: var(--space-s);
|
|
106
|
-
color: var(--neutral-100);
|
|
107
|
-
overflow-x: auto;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
code {
|
|
111
|
-
overflow-x: auto;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
code[class*='language-'],
|
|
115
|
-
pre[class*='language-'] {
|
|
116
|
-
display: block;
|
|
117
|
-
font-size: var(--font-size-text-xs);
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.user-message {
|
|
122
|
-
margin-inline-start: auto;
|
|
123
|
-
background: var(--search-user-message-color);
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
.form-wrapper {
|
|
127
|
-
display: flex;
|
|
128
|
-
align-items: center;
|
|
129
|
-
position: relative;
|
|
130
|
-
height: var(--n-search-input-height);
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
.form-wrapper::after {
|
|
134
|
-
content: '';
|
|
135
|
-
display: block;
|
|
136
|
-
width: 100%;
|
|
137
|
-
height: 1px;
|
|
138
|
-
background: var(--color-bg-3);
|
|
139
|
-
position: absolute;
|
|
140
|
-
top: 0;
|
|
141
|
-
left: 0;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
.form-input {
|
|
145
|
-
border: none;
|
|
146
|
-
outline: none;
|
|
147
|
-
padding-inline: var(--n-search-padding-inline);
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
.form-submit {
|
|
151
|
-
border: none;
|
|
152
|
-
padding: 0.7rem;
|
|
153
|
-
border-radius: var(--radius-pill);
|
|
154
|
-
margin-inline-end: var(--space-2xs);
|
|
155
|
-
border: none;
|
|
156
|
-
background: var(--color-link-1);
|
|
157
|
-
color: var(--neutral-000);
|
|
158
|
-
transition: background-color 150ms ease-out;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
.form-submit > svg {
|
|
162
|
-
width: 1rem;
|
|
163
|
-
height: auto;
|
|
164
|
-
aspect-ratio: 1 / 1;
|
|
165
|
-
border-radius: 1.5px;
|
|
166
|
-
transition: opacity 150ms ease-out;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
.form-submit[disabled] {
|
|
170
|
-
background: var(--neutral-500);
|
|
171
|
-
|
|
172
|
-
& > * {
|
|
173
|
-
opacity: 0.5;
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
.button-back {
|
|
178
|
-
width: fit-content;
|
|
179
|
-
background: transparent;
|
|
180
|
-
position: absolute;
|
|
181
|
-
z-index: 1;
|
|
182
|
-
padding: 0.5rem 1rem;
|
|
183
|
-
background: var(--search-back-btn-bg-color);
|
|
184
|
-
margin: 1rem;
|
|
185
|
-
border: 2px solid var(--color-bg-3);
|
|
186
|
-
border-radius: var(--radius-pill);
|
|
187
|
-
font-size: var(--step--1);
|
|
188
|
-
border: 1px solid;
|
|
189
|
-
cursor: pointer;
|
|
190
|
-
border-color: var(--color-bg-3);
|
|
191
|
-
color: var(--color-text-1);
|
|
192
|
-
border-width: 0.5px;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
.message-loader {
|
|
196
|
-
width: 43px;
|
|
197
|
-
height: auto;
|
|
198
|
-
display: block;
|
|
199
|
-
color: var(--search-loading-color);
|
|
200
|
-
|
|
201
|
-
& :where(#ask-netlify-tick-1, #ask-netlify-tick-2, #ask-netlify-tick-3) {
|
|
202
|
-
opacity: 0;
|
|
203
|
-
animation: tickFlicker 800ms ease-in-out infinite;
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
#ask-netlify-tick-1 {
|
|
208
|
-
animation-delay: 100ms;
|
|
209
|
-
}
|
|
210
|
-
#ask-netlify-tick-2 {
|
|
211
|
-
animation-delay: 200ms;
|
|
212
|
-
}
|
|
213
|
-
#ask-netlify-tick-3 {
|
|
214
|
-
animation-delay: 300ms;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
@keyframes tickFlicker {
|
|
218
|
-
0% {
|
|
219
|
-
opacity: 0;
|
|
220
|
-
}
|
|
221
|
-
100% {
|
|
222
|
-
opacity: 1;
|
|
223
|
-
}
|
|
224
|
-
}
|