@lobehub/ui 6.17.1 → 6.19.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.
Files changed (119) hide show
  1. package/es/AgentAvatar/AgentAvatar.mjs +89 -139
  2. package/es/AgentAvatar/AgentAvatar.mjs.map +1 -1
  3. package/es/AgentAvatar/AgentAvatarPicker.d.mts +3 -0
  4. package/es/AgentAvatar/AgentAvatarPicker.mjs +109 -0
  5. package/es/AgentAvatar/AgentAvatarPicker.mjs.map +1 -0
  6. package/es/AgentAvatar/createAgentAvatarTab.d.mts +4 -0
  7. package/es/AgentAvatar/createAgentAvatarTab.mjs +46 -0
  8. package/es/AgentAvatar/createAgentAvatarTab.mjs.map +1 -0
  9. package/es/AgentAvatar/eyes.mjs +83 -0
  10. package/es/AgentAvatar/eyes.mjs.map +1 -0
  11. package/es/AgentAvatar/index.d.mts +5 -2
  12. package/es/AgentAvatar/index.mjs +4 -1
  13. package/es/AgentAvatar/liveLoop.mjs +97 -0
  14. package/es/AgentAvatar/liveLoop.mjs.map +1 -0
  15. package/es/AgentAvatar/look.mjs +193 -0
  16. package/es/AgentAvatar/look.mjs.map +1 -0
  17. package/es/AgentAvatar/painter.mjs +114 -0
  18. package/es/AgentAvatar/painter.mjs.map +1 -0
  19. package/es/AgentAvatar/pickerStyle.mjs +68 -0
  20. package/es/AgentAvatar/pickerStyle.mjs.map +1 -0
  21. package/es/AgentAvatar/scene.mjs +91 -0
  22. package/es/AgentAvatar/scene.mjs.map +1 -0
  23. package/es/AgentAvatar/shapes.mjs +215 -180
  24. package/es/AgentAvatar/shapes.mjs.map +1 -1
  25. package/es/AgentAvatar/stable.mjs +11 -1
  26. package/es/AgentAvatar/stable.mjs.map +1 -1
  27. package/es/AgentAvatar/still.mjs +39 -0
  28. package/es/AgentAvatar/still.mjs.map +1 -0
  29. package/es/AgentAvatar/stills.generated.mjs +126 -0
  30. package/es/AgentAvatar/stills.generated.mjs.map +1 -0
  31. package/es/AgentAvatar/style.mjs +13 -146
  32. package/es/AgentAvatar/style.mjs.map +1 -1
  33. package/es/AgentAvatar/type.d.mts +64 -14
  34. package/es/AgentAvatar/useLiveAvatar.mjs +91 -0
  35. package/es/AgentAvatar/useLiveAvatar.mjs.map +1 -0
  36. package/es/AgentAvatar/utils.d.mts +2 -2
  37. package/es/AgentAvatar/utils.mjs +49 -45
  38. package/es/AgentAvatar/utils.mjs.map +1 -1
  39. package/es/AgentAvatar/value.d.mts +5 -0
  40. package/es/AgentAvatar/value.mjs +18 -0
  41. package/es/AgentAvatar/value.mjs.map +1 -0
  42. package/es/AutoComplete/style.d.mts +1 -1
  43. package/es/EditorSlashMenu/atoms.mjs +1 -2
  44. package/es/EditorSlashMenu/atoms.mjs.map +1 -1
  45. package/es/EmojiPicker/EmojiPicker.mjs +27 -19
  46. package/es/EmojiPicker/EmojiPicker.mjs.map +1 -1
  47. package/es/EmojiPicker/index.d.mts +2 -2
  48. package/es/EmojiPicker/type.d.mts +24 -1
  49. package/es/brand/Lobot/Lobot.d.mts +3 -0
  50. package/es/brand/Lobot/Lobot.mjs +74 -0
  51. package/es/brand/Lobot/Lobot.mjs.map +1 -0
  52. package/es/brand/Lobot/index.d.mts +3 -0
  53. package/es/brand/Lobot/stable.mjs +15 -0
  54. package/es/brand/Lobot/stable.mjs.map +1 -0
  55. package/es/brand/Lobot/type.d.mts +18 -0
  56. package/es/brand/LobotBrandLoading/LobotBrandLoading.d.mts +11 -0
  57. package/es/brand/LobotBrandLoading/LobotBrandLoading.mjs +130 -0
  58. package/es/brand/LobotBrandLoading/LobotBrandLoading.mjs.map +1 -0
  59. package/es/brand/LobotBrandLoading/index.d.mts +3 -0
  60. package/es/brand/LobotBrandLoading/stable.mjs +13 -0
  61. package/es/brand/LobotBrandLoading/stable.mjs.map +1 -0
  62. package/es/brand/LobotBrandLoading/style.mjs +111 -0
  63. package/es/brand/LobotBrandLoading/style.mjs.map +1 -0
  64. package/es/brand/LobotBrandLoading/type.d.mts +9 -0
  65. package/es/brand/LobotBrandLoading3d/LobotBrandLoading3d.d.mts +9 -0
  66. package/es/brand/LobotBrandLoading3d/LobotBrandLoading3d.mjs +87 -0
  67. package/es/brand/LobotBrandLoading3d/LobotBrandLoading3d.mjs.map +1 -0
  68. package/es/brand/LobotBrandLoading3d/choreography.mjs +120 -0
  69. package/es/brand/LobotBrandLoading3d/choreography.mjs.map +1 -0
  70. package/es/brand/LobotBrandLoading3d/index.d.mts +3 -0
  71. package/es/brand/LobotBrandLoading3d/live.mjs +72 -0
  72. package/es/brand/LobotBrandLoading3d/live.mjs.map +1 -0
  73. package/es/brand/LobotBrandLoading3d/stable.mjs +14 -0
  74. package/es/brand/LobotBrandLoading3d/stable.mjs.map +1 -0
  75. package/es/brand/LobotBrandLoading3d/style.mjs +38 -0
  76. package/es/brand/LobotBrandLoading3d/style.mjs.map +1 -0
  77. package/es/brand/LobotBrandLoading3d/type.d.mts +9 -0
  78. package/es/brand/LobotBrandLoading3d/useLiveLoading.mjs +58 -0
  79. package/es/brand/LobotBrandLoading3d/useLiveLoading.mjs.map +1 -0
  80. package/es/brand/LobotMono/LobotMono.d.mts +8 -0
  81. package/es/brand/LobotMono/LobotMono.mjs +46 -0
  82. package/es/brand/LobotMono/LobotMono.mjs.map +1 -0
  83. package/es/brand/LobotMono/index.d.mts +3 -0
  84. package/es/brand/LobotMono/stable.mjs +9 -0
  85. package/es/brand/LobotMono/stable.mjs.map +1 -0
  86. package/es/brand/LobotMono/type.d.mts +8 -0
  87. package/es/brand/LobotText/LobotText.d.mts +4 -0
  88. package/es/brand/LobotText/LobotText.mjs +20 -0
  89. package/es/brand/LobotText/LobotText.mjs.map +1 -0
  90. package/es/brand/LobotText/index.d.mts +3 -0
  91. package/es/brand/LobotText/stable.mjs +9 -0
  92. package/es/brand/LobotText/stable.mjs.map +1 -0
  93. package/es/brand/LobotText/type.d.mts +8 -0
  94. package/es/brand/index.d.mts +16 -1
  95. package/es/brand/index.mjs +6 -1
  96. package/es/chat/ChatItem/type.d.mts +2 -2
  97. package/es/css/AgentAvatar.css +686 -199
  98. package/es/css/brand/Lobot.css +27 -0
  99. package/es/css/brand/LobotBrandLoading.css +219 -0
  100. package/es/css/brand/LobotBrandLoading3d.css +61 -0
  101. package/es/css/brand/LobotMono.css +15 -0
  102. package/es/css/brand/LobotText.css +15 -0
  103. package/es/i18n/resources/en/agentAvatar.d.mts +39 -0
  104. package/es/i18n/resources/en/agentAvatar.mjs +42 -0
  105. package/es/i18n/resources/en/agentAvatar.mjs.map +1 -0
  106. package/es/i18n/resources/en/index.d.mts +19 -18
  107. package/es/i18n/resources/en/index.mjs +3 -1
  108. package/es/i18n/resources/en/index.mjs.map +1 -1
  109. package/es/i18n/resources/zhCn/agentAvatar.d.mts +39 -0
  110. package/es/i18n/resources/zhCn/agentAvatar.mjs +42 -0
  111. package/es/i18n/resources/zhCn/agentAvatar.mjs.map +1 -0
  112. package/es/i18n/resources/zhCn/index.d.mts +19 -18
  113. package/es/i18n/resources/zhCn/index.mjs +3 -1
  114. package/es/i18n/resources/zhCn/index.mjs.map +1 -1
  115. package/es/i18n/types.d.mts +18 -17
  116. package/es/index.d.mts +48 -45
  117. package/es/index.mjs +6 -3
  118. package/es/style.css +201 -242
  119. package/package.json +3 -1
@@ -0,0 +1,3 @@
1
+ import { LobotProps } from "./type.mjs";
2
+ declare const Lobot: import("react").NamedExoticComponent<LobotProps>;
3
+ export { Lobot as default };
@@ -0,0 +1,74 @@
1
+ "use client";
2
+ import clsx$1 from "clsx";
3
+ import { memo } from "react";
4
+ import Divider from "../components/Divider.mjs";
5
+ import { styles } from "../LobeHub/style.mjs";
6
+ import LobotMono from "../LobotMono/LobotMono.mjs";
7
+ import LobotText from "../LobotText/LobotText.mjs";
8
+ import FlexBasic_default from "../../Flex/FlexBasic.mjs";
9
+ import { styleProps } from "../../styles/stylex/props.mjs";
10
+ import { toDataAttributes } from "../../utils/bem.mjs";
11
+ import { brandLobotClasses } from "./stable.mjs";
12
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
13
+ // src/brand/Lobot/Lobot.tsx
14
+ const TEXT_MULTIPLE = .695;
15
+ const SPACE_MULTIPLE = .154;
16
+ const TEXT_SHIFT_MULTIPLE = .0345;
17
+ const EXTRA_MULTIPLE = .8;
18
+ const Lobot = memo(({ type = "mono", size = 32, style, extra, className, ...rest }) => {
19
+ const rootClassName = clsx$1(brandLobotClasses(), className);
20
+ const dataAttributes = toDataAttributes({ type });
21
+ const textSize = Math.round(size * TEXT_MULTIPLE);
22
+ const isRoot = !extra && type !== "combine";
23
+ const rootProps = {
24
+ className: rootClassName,
25
+ style,
26
+ ...dataAttributes,
27
+ ...rest
28
+ };
29
+ const svgProps = (part) => isRoot ? rootProps : { className: brandLobotClasses(part) };
30
+ const mark = /* @__PURE__ */ jsx(LobotMono, {
31
+ size,
32
+ ...svgProps("logo")
33
+ });
34
+ const text = /* @__PURE__ */ jsx(LobotText, {
35
+ size: textSize,
36
+ ...svgProps("text")
37
+ });
38
+ let logoComponent;
39
+ switch (type) {
40
+ case "mono":
41
+ logoComponent = mark;
42
+ break;
43
+ case "text":
44
+ logoComponent = text;
45
+ break;
46
+ case "combine": logoComponent = /* @__PURE__ */ jsxs(Fragment$1, { children: [mark, /* @__PURE__ */ jsx(LobotText, {
47
+ className: brandLobotClasses("text"),
48
+ size: textSize,
49
+ style: {
50
+ marginLeft: Math.round(size * SPACE_MULTIPLE),
51
+ transform: `translateY(${size * TEXT_SHIFT_MULTIPLE}px)`
52
+ }
53
+ })] });
54
+ }
55
+ if (isRoot) return logoComponent;
56
+ const extraSize = Math.round(size * EXTRA_MULTIPLE);
57
+ return /* @__PURE__ */ jsxs(FlexBasic_default, {
58
+ horizontal: true,
59
+ align: "center",
60
+ flex: "none",
61
+ ...rootProps,
62
+ children: [logoComponent, extra && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Divider, {
63
+ size: extraSize,
64
+ ...styleProps(styles.divider, brandLobotClasses("divider"))
65
+ }), /* @__PURE__ */ jsx("div", {
66
+ ...styleProps(styles.extraTitle, brandLobotClasses("extra"), { fontSize: extraSize }),
67
+ children: extra
68
+ })] })]
69
+ });
70
+ });
71
+ Lobot.displayName = "LobotBrand";
72
+ export { Lobot as default };
73
+
74
+ //# sourceMappingURL=Lobot.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Lobot.mjs","names":["clsx","Flexbox"],"sources":["../../../src/brand/Lobot/Lobot.tsx"],"sourcesContent":["'use client';\n\nimport clsx from 'clsx';\nimport { memo, type ReactNode } from 'react';\n\nimport Divider from '@/brand/components/Divider';\nimport { styles } from '@/brand/LobeHub/style';\nimport LobotMono from '@/brand/LobotMono';\nimport LobotText from '@/brand/LobotText';\nimport { Flexbox } from '@/Flex';\nimport { styleProps } from '@/styles/stylex/props';\nimport type { SvgProps } from '@/types';\nimport { toDataAttributes } from '@/utils/bem';\n\nimport { brandLobotClasses } from './stable';\nimport type { LobotProps } from './type';\n\n// Ratios of the official lockup, from `Lobot.Combine` in @lobehub/icons.\nconst TEXT_MULTIPLE = 0.695;\nconst SPACE_MULTIPLE = 0.154;\n// The wordmark sits slightly below the center of the mark.\nconst TEXT_SHIFT_MULTIPLE = 0.0345;\nconst EXTRA_MULTIPLE = 0.8;\n\nconst Lobot = memo<LobotProps>(({ type = 'mono', size = 32, style, extra, className, ...rest }) => {\n const rootClassName = clsx(brandLobotClasses(), className);\n const dataAttributes = toDataAttributes({ type });\n const textSize = Math.round(size * TEXT_MULTIPLE);\n const isRoot = !extra && type !== 'combine';\n const rootProps = { className: rootClassName, style, ...dataAttributes, ...rest };\n // Without a wrapper the single SVG is the root, so it carries the root props.\n const svgProps = (part: 'logo' | 'text') =>\n isRoot ? (rootProps as unknown as SvgProps) : { className: brandLobotClasses(part) };\n\n const mark = <LobotMono size={size} {...svgProps('logo')} />;\n const text = <LobotText size={textSize} {...svgProps('text')} />;\n\n let logoComponent: ReactNode;\n\n switch (type) {\n case 'mono': {\n logoComponent = mark;\n break;\n }\n case 'text': {\n logoComponent = text;\n break;\n }\n case 'combine': {\n logoComponent = (\n <>\n {mark}\n <LobotText\n className={brandLobotClasses('text')}\n size={textSize}\n style={{\n marginLeft: Math.round(size * SPACE_MULTIPLE),\n transform: `translateY(${size * TEXT_SHIFT_MULTIPLE}px)`,\n }}\n />\n </>\n );\n break;\n }\n }\n\n if (isRoot) return logoComponent;\n\n const extraSize = Math.round(size * EXTRA_MULTIPLE);\n\n return (\n <Flexbox horizontal align={'center'} flex={'none'} {...rootProps}>\n {logoComponent}\n {extra && (\n <>\n <Divider size={extraSize} {...styleProps(styles.divider, brandLobotClasses('divider'))} />\n <div\n {...styleProps(styles.extraTitle, brandLobotClasses('extra'), { fontSize: extraSize })}\n >\n {extra}\n </div>\n </>\n )}\n </Flexbox>\n );\n});\n\nLobot.displayName = 'LobotBrand';\n\nexport default Lobot;\n"],"mappings":";;;;;;;;;;;;;AAkBA,MAAM,gBAAgB;AACtB,MAAM,iBAAiB;AAEvB,MAAM,sBAAsB;AAC5B,MAAM,iBAAiB;AAEvB,MAAM,QAAQ,MAAkB,EAAE,OAAO,QAAQ,OAAO,IAAI,OAAO,OAAO,WAAW,GAAG,WAAW;CACjG,MAAM,gBAAgBA,OAAK,kBAAkB,GAAG,SAAS;CACzD,MAAM,iBAAiB,iBAAiB,EAAE,KAAK,CAAC;CAChD,MAAM,WAAW,KAAK,MAAM,OAAO,aAAa;CAChD,MAAM,SAAS,CAAC,SAAS,SAAS;CAClC,MAAM,YAAY;EAAE,WAAW;EAAe;EAAO,GAAG;EAAgB,GAAG;CAAK;CAEhF,MAAM,YAAY,SAChB,SAAU,YAAoC,EAAE,WAAW,kBAAkB,IAAI,EAAE;CAErF,MAAM,OAAO,oBAAC,WAAD;EAAiB;EAAM,GAAI,SAAS,MAAM;CAAI,CAAA;CAC3D,MAAM,OAAO,oBAAC,WAAD;EAAW,MAAM;EAAU,GAAI,SAAS,MAAM;CAAI,CAAA;CAE/D,IAAI;CAEJ,QAAQ,MAAR;EACE,KAAK;GACH,gBAAgB;GAChB;EAEF,KAAK;GACH,gBAAgB;GAChB;EAEF,KAAK,WACH,gBACE,qBAAA,YAAA,EAAA,UAAA,CACG,MACD,oBAAC,WAAD;GACE,WAAW,kBAAkB,MAAM;GACnC,MAAM;GACN,OAAO;IACL,YAAY,KAAK,MAAM,OAAO,cAAc;IAC5C,WAAW,cAAc,OAAO,oBAAoB;GACtD;EACD,CAAA,CACD,EAAA,CAAA;CAIR;CAEA,IAAI,QAAQ,OAAO;CAEnB,MAAM,YAAY,KAAK,MAAM,OAAO,cAAc;CAElD,OACE,qBAACC,mBAAD;EAAS,YAAA;EAAW,OAAO;EAAU,MAAM;EAAQ,GAAI;EAAvD,UAAA,CACG,eACA,SACC,qBAAA,YAAA,EAAA,UAAA,CACE,oBAAC,SAAD;GAAS,MAAM;GAAW,GAAI,WAAW,OAAO,SAAS,kBAAkB,SAAS,CAAC;EAAI,CAAA,GACzF,oBAAC,OAAD;GACE,GAAI,WAAW,OAAO,YAAY,kBAAkB,OAAO,GAAG,EAAE,UAAU,UAAU,CAAC;GAEpF,UAAA;EACE,CAAA,CACL,EAAA,CAAA,CAEG;;AAEb,CAAC;AAED,MAAM,cAAc"}
@@ -0,0 +1,3 @@
1
+ import Lobot from "./Lobot.mjs";
2
+ import { LobotProps } from "./type.mjs";
3
+ export { type LobotProps, Lobot as default };
@@ -0,0 +1,15 @@
1
+ import { stableClasses } from "../../utils/bem.mjs";
2
+ // src/brand/Lobot/stable.ts
3
+ const brandLobotClasses = stableClasses({
4
+ block: "brand-lobot",
5
+ dataAttributes: ["type"],
6
+ elements: [
7
+ "logo",
8
+ "text",
9
+ "divider",
10
+ "extra"
11
+ ]
12
+ });
13
+ export { brandLobotClasses };
14
+
15
+ //# sourceMappingURL=stable.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stable.mjs","names":[],"sources":["../../../src/brand/Lobot/stable.ts"],"sourcesContent":["import { stableClasses } from '@/utils/bem';\n\nexport const brandLobotClasses = stableClasses({\n block: 'brand-lobot',\n dataAttributes: ['type'],\n elements: ['logo', 'text', 'divider', 'extra'],\n});\n"],"mappings":";;AAEA,MAAa,oBAAoB,cAAc;CAC7C,OAAO;CACP,gBAAgB,CAAC,MAAM;CACvB,UAAU;EAAC;EAAQ;EAAQ;EAAW;CAAO;AAC/C,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { ReactNode } from "react";
2
+ import { DivProps } from "../../types/index.mjs";
3
+ export interface LobotProps extends DivProps {
4
+ /**
5
+ * Product or section name shown after a slash divider.
6
+ */
7
+ extra?: ReactNode;
8
+ /**
9
+ * Height of the mark in px. The wordmark, divider and `extra` scale with it.
10
+ * @default 32
11
+ */
12
+ size?: number;
13
+ /**
14
+ * Which part of the lockup to render: the mark, the wordmark, or both.
15
+ * @default 'mono'
16
+ */
17
+ type?: 'mono' | 'text' | 'combine';
18
+ }
@@ -0,0 +1,11 @@
1
+ import { FC } from "react";
2
+ import { LobotBrandLoadingProps } from "./type.mjs";
3
+ /**
4
+ * The Lobot mark as a loader: its two bubbles circle the head, passing over it and then behind
5
+ * the body, while the eyes follow the one overhead and blink as the next one comes around.
6
+ *
7
+ * The white outline is one backing layer under every black part, so it always traces the union
8
+ * of body and bubbles and never cuts into a bubble that slides behind the body.
9
+ */
10
+ declare const LobotBrandLoading: FC<LobotBrandLoadingProps>;
11
+ export { LobotBrandLoading as default };
@@ -0,0 +1,130 @@
1
+ import clsx$1 from "clsx";
2
+ import { styleProps } from "../../styles/stylex/props.mjs";
3
+ import { brandLobotBrandLoadingClasses } from "./stable.mjs";
4
+ import { styles } from "./style.mjs";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
+ // src/brand/LobotBrandLoading/LobotBrandLoading.tsx
7
+ const VIEW_BOX = "-29.1 -28.46 525.24 525.24";
8
+ const BODY = "M125.436 127.784C137.593 75.2061 188.685 39.7239 243.897 47.3418C280.292 52.3634 309.891 74.9284 325.114 105.166C340.495 94.3117 359.563 89.0506 379.298 91.7734C421.81 97.6394 451.315 138.336 445.197 182.672C442.807 199.998 435.329 215.315 424.569 227.198C430.651 244.902 433.934 263.76 433.934 283.327C433.933 385.548 344.373 468.414 233.897 468.414C123.42 468.414 33.8606 385.548 33.8604 283.327C33.8604 277.825 34.1196 272.378 34.628 266.997C10.4918 250.502 -3.60641 220.437 0.802757 188.48C6.92004 144.145 46.3427 112.958 88.8555 118.824C100.518 120.433 111.202 124.663 120.439 130.871C122.087 129.819 123.753 128.791 125.436 127.784Z";
9
+ const INK = "#000";
10
+ const PAPER = "#fff";
11
+ const OUTLINE = 56.94;
12
+ const BUBBLE_RADIUS = 32.034;
13
+ const HALO_RADIUS = 60.504;
14
+ const ORBIT = "translate(224.286 55.882) rotate(-10.572)";
15
+ const bubbleClassName = brandLobotBrandLoadingClasses("bubble");
16
+ const bodyClassName = brandLobotBrandLoadingClasses("body");
17
+ /**
18
+ * The Lobot mark as a loader: its two bubbles circle the head, passing over it and then behind
19
+ * the body, while the eyes follow the one overhead and blink as the next one comes around.
20
+ *
21
+ * The white outline is one backing layer under every black part, so it always traces the union
22
+ * of body and bubbles and never cuts into a bubble that slides behind the body.
23
+ */
24
+ const LobotBrandLoading = ({ size = 64, className, style, ...rest }) => /* @__PURE__ */ jsxs("svg", {
25
+ fill: "none",
26
+ height: size,
27
+ viewBox: VIEW_BOX,
28
+ width: size,
29
+ xmlns: "http://www.w3.org/2000/svg",
30
+ ...styleProps(styles.root, clsx$1(brandLobotBrandLoadingClasses(), className), style),
31
+ ...rest,
32
+ children: [
33
+ /* @__PURE__ */ jsx("title", { children: "Lobot" }),
34
+ /* @__PURE__ */ jsxs("g", {
35
+ fill: PAPER,
36
+ children: [/* @__PURE__ */ jsxs("g", {
37
+ transform: ORBIT,
38
+ children: [/* @__PURE__ */ jsx("g", {
39
+ ...styleProps(styles.orbitXSmall),
40
+ children: /* @__PURE__ */ jsx("g", {
41
+ ...styleProps(styles.orbitYSmall),
42
+ children: /* @__PURE__ */ jsx("circle", {
43
+ r: HALO_RADIUS,
44
+ ...styleProps(styles.haloSmall)
45
+ })
46
+ })
47
+ }), /* @__PURE__ */ jsx("g", {
48
+ ...styleProps(styles.orbitXLarge),
49
+ children: /* @__PURE__ */ jsx("g", {
50
+ ...styleProps(styles.orbitYLarge),
51
+ children: /* @__PURE__ */ jsx("circle", {
52
+ r: HALO_RADIUS,
53
+ ...styleProps(styles.haloLarge)
54
+ })
55
+ })
56
+ })]
57
+ }), /* @__PURE__ */ jsx("path", {
58
+ d: BODY,
59
+ stroke: PAPER,
60
+ strokeLinejoin: "round",
61
+ strokeWidth: OUTLINE,
62
+ ...styleProps(styles.body)
63
+ })]
64
+ }),
65
+ /* @__PURE__ */ jsxs("g", {
66
+ fill: INK,
67
+ children: [/* @__PURE__ */ jsxs("g", {
68
+ transform: ORBIT,
69
+ children: [/* @__PURE__ */ jsx("g", {
70
+ ...styleProps(styles.orbitXSmall),
71
+ children: /* @__PURE__ */ jsx("g", {
72
+ ...styleProps(styles.orbitYSmall),
73
+ children: /* @__PURE__ */ jsx("circle", {
74
+ r: BUBBLE_RADIUS,
75
+ ...styleProps(styles.bubbleSmall, bubbleClassName)
76
+ })
77
+ })
78
+ }), /* @__PURE__ */ jsx("g", {
79
+ ...styleProps(styles.orbitXLarge),
80
+ children: /* @__PURE__ */ jsx("g", {
81
+ ...styleProps(styles.orbitYLarge),
82
+ children: /* @__PURE__ */ jsx("circle", {
83
+ r: BUBBLE_RADIUS,
84
+ ...styleProps(styles.bubbleLarge, bubbleClassName)
85
+ })
86
+ })
87
+ })]
88
+ }), /* @__PURE__ */ jsxs("g", {
89
+ ...styleProps(styles.body, bodyClassName),
90
+ children: [/* @__PURE__ */ jsx("path", { d: BODY }), /* @__PURE__ */ jsxs("g", {
91
+ fill: PAPER,
92
+ ...styleProps(styles.eyes, brandLobotBrandLoadingClasses("eyes")),
93
+ children: [
94
+ /* @__PURE__ */ jsx("ellipse", {
95
+ cx: 170.54,
96
+ cy: 280.479,
97
+ rx: 58.373,
98
+ ry: 66.916
99
+ }),
100
+ /* @__PURE__ */ jsx("ellipse", {
101
+ cx: 320.035,
102
+ cy: 280.479,
103
+ rx: 58.373,
104
+ ry: 66.916
105
+ }),
106
+ /* @__PURE__ */ jsxs("g", {
107
+ fill: INK,
108
+ ...styleProps(styles.pupils),
109
+ children: [/* @__PURE__ */ jsx("ellipse", {
110
+ cx: 181.219,
111
+ cy: 290.443,
112
+ rx: 30.61,
113
+ ry: 34.17
114
+ }), /* @__PURE__ */ jsx("ellipse", {
115
+ cx: 310.779,
116
+ cy: 290.443,
117
+ rx: 30.61,
118
+ ry: 34.17
119
+ })]
120
+ })
121
+ ]
122
+ })]
123
+ })]
124
+ })
125
+ ]
126
+ });
127
+ LobotBrandLoading.displayName = "LobotBrandLoading";
128
+ export { LobotBrandLoading as default };
129
+
130
+ //# sourceMappingURL=LobotBrandLoading.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LobotBrandLoading.mjs","names":["clsx"],"sources":["../../../src/brand/LobotBrandLoading/LobotBrandLoading.tsx"],"sourcesContent":["import clsx from 'clsx';\nimport type { FC } from 'react';\n\nimport { styleProps } from '@/styles/stylex/props';\n\nimport { brandLobotBrandLoadingClasses } from './stable';\nimport { styles } from './style';\nimport type { LobotBrandLoadingProps } from './type';\n\n// Geometry of the Lobot logo on its 446 × 469 artboard. The view box adds the outline of\n// `LobotMono` around it, so both render the mark at the same place and scale.\nconst VIEW_BOX = '-29.1 -28.46 525.24 525.24';\nconst BODY =\n 'M125.436 127.784C137.593 75.2061 188.685 39.7239 243.897 47.3418C280.292 52.3634 309.891 74.9284 325.114 105.166C340.495 94.3117 359.563 89.0506 379.298 91.7734C421.81 97.6394 451.315 138.336 445.197 182.672C442.807 199.998 435.329 215.315 424.569 227.198C430.651 244.902 433.934 263.76 433.934 283.327C433.933 385.548 344.373 468.414 233.897 468.414C123.42 468.414 33.8606 385.548 33.8604 283.327C33.8604 277.825 34.1196 272.378 34.628 266.997C10.4918 250.502 -3.60641 220.437 0.802757 188.48C6.92004 144.145 46.3427 112.958 88.8555 118.824C100.518 120.433 111.202 124.663 120.439 130.871C122.087 129.819 123.753 128.791 125.436 127.784Z';\nconst INK = '#000';\nconst PAPER = '#fff';\n// Outline width of the mark, as a stroke centered on the silhouette.\nconst OUTLINE = 56.94;\nconst BUBBLE_RADIUS = 32.034;\nconst HALO_RADIUS = BUBBLE_RADIUS + OUTLINE / 2;\n// The two bubbles of the logo are the ends of the orbit's long axis.\nconst ORBIT = 'translate(224.286 55.882) rotate(-10.572)';\n\nconst bubbleClassName = brandLobotBrandLoadingClasses('bubble');\nconst bodyClassName = brandLobotBrandLoadingClasses('body');\n\n/**\n * The Lobot mark as a loader: its two bubbles circle the head, passing over it and then behind\n * the body, while the eyes follow the one overhead and blink as the next one comes around.\n *\n * The white outline is one backing layer under every black part, so it always traces the union\n * of body and bubbles and never cuts into a bubble that slides behind the body.\n */\nconst LobotBrandLoading: FC<LobotBrandLoadingProps> = ({\n size = 64,\n className,\n style,\n ...rest\n}) => (\n <svg\n fill=\"none\"\n height={size}\n viewBox={VIEW_BOX}\n width={size}\n xmlns=\"http://www.w3.org/2000/svg\"\n {...styleProps(styles.root, clsx(brandLobotBrandLoadingClasses(), className), style)}\n {...rest}\n >\n <title>Lobot</title>\n <g fill={PAPER}>\n <g transform={ORBIT}>\n <g {...styleProps(styles.orbitXSmall)}>\n <g {...styleProps(styles.orbitYSmall)}>\n <circle r={HALO_RADIUS} {...styleProps(styles.haloSmall)} />\n </g>\n </g>\n <g {...styleProps(styles.orbitXLarge)}>\n <g {...styleProps(styles.orbitYLarge)}>\n <circle r={HALO_RADIUS} {...styleProps(styles.haloLarge)} />\n </g>\n </g>\n </g>\n <path\n d={BODY}\n stroke={PAPER}\n strokeLinejoin=\"round\"\n strokeWidth={OUTLINE}\n {...styleProps(styles.body)}\n />\n </g>\n <g fill={INK}>\n <g transform={ORBIT}>\n <g {...styleProps(styles.orbitXSmall)}>\n <g {...styleProps(styles.orbitYSmall)}>\n <circle r={BUBBLE_RADIUS} {...styleProps(styles.bubbleSmall, bubbleClassName)} />\n </g>\n </g>\n <g {...styleProps(styles.orbitXLarge)}>\n <g {...styleProps(styles.orbitYLarge)}>\n <circle r={BUBBLE_RADIUS} {...styleProps(styles.bubbleLarge, bubbleClassName)} />\n </g>\n </g>\n </g>\n <g {...styleProps(styles.body, bodyClassName)}>\n <path d={BODY} />\n <g fill={PAPER} {...styleProps(styles.eyes, brandLobotBrandLoadingClasses('eyes'))}>\n <ellipse cx={170.54} cy={280.479} rx={58.373} ry={66.916} />\n <ellipse cx={320.035} cy={280.479} rx={58.373} ry={66.916} />\n <g fill={INK} {...styleProps(styles.pupils)}>\n <ellipse cx={181.219} cy={290.443} rx={30.61} ry={34.17} />\n <ellipse cx={310.779} cy={290.443} rx={30.61} ry={34.17} />\n </g>\n </g>\n </g>\n </g>\n </svg>\n);\n\nLobotBrandLoading.displayName = 'LobotBrandLoading';\n\nexport default LobotBrandLoading;\n"],"mappings":";;;;;;AAWA,MAAM,WAAW;AACjB,MAAM,OACJ;AACF,MAAM,MAAM;AACZ,MAAM,QAAQ;AAEd,MAAM,UAAU;AAChB,MAAM,gBAAgB;AACtB,MAAM,cAAc;AAEpB,MAAM,QAAQ;AAEd,MAAM,kBAAkB,8BAA8B,QAAQ;AAC9D,MAAM,gBAAgB,8BAA8B,MAAM;;;;;;;;AAS1D,MAAM,qBAAiD,EACrD,OAAO,IACP,WACA,OACA,GAAG,WAEH,qBAAC,OAAD;CACE,MAAK;CACL,QAAQ;CACR,SAAS;CACT,OAAO;CACP,OAAM;CACN,GAAI,WAAW,OAAO,MAAMA,OAAK,8BAA8B,GAAG,SAAS,GAAG,KAAK;CACnF,GAAI;CAPN,UAAA;EASE,oBAAC,SAAD,EAAA,UAAO,QAAY,CAAA;EACnB,qBAAC,KAAD;GAAG,MAAM;GAAT,UAAA,CACE,qBAAC,KAAD;IAAG,WAAW;IAAd,UAAA,CACE,oBAAC,KAAD;KAAG,GAAI,WAAW,OAAO,WAAW;KAClC,UAAA,oBAAC,KAAD;MAAG,GAAI,WAAW,OAAO,WAAW;MAClC,UAAA,oBAAC,UAAD;OAAQ,GAAG;OAAa,GAAI,WAAW,OAAO,SAAS;MAAI,CAAA;KAC1D,CAAA;IACF,CAAA,GACH,oBAAC,KAAD;KAAG,GAAI,WAAW,OAAO,WAAW;KAClC,UAAA,oBAAC,KAAD;MAAG,GAAI,WAAW,OAAO,WAAW;MAClC,UAAA,oBAAC,UAAD;OAAQ,GAAG;OAAa,GAAI,WAAW,OAAO,SAAS;MAAI,CAAA;KAC1D,CAAA;IACF,CAAA,CACF;GACH,CAAA,GAAA,oBAAC,QAAD;IACE,GAAG;IACH,QAAQ;IACR,gBAAe;IACf,aAAa;IACb,GAAI,WAAW,OAAO,IAAI;GAC3B,CAAA,CACA;;EACH,qBAAC,KAAD;GAAG,MAAM;GAAT,UAAA,CACE,qBAAC,KAAD;IAAG,WAAW;IAAd,UAAA,CACE,oBAAC,KAAD;KAAG,GAAI,WAAW,OAAO,WAAW;KAClC,UAAA,oBAAC,KAAD;MAAG,GAAI,WAAW,OAAO,WAAW;MAClC,UAAA,oBAAC,UAAD;OAAQ,GAAG;OAAe,GAAI,WAAW,OAAO,aAAa,eAAe;MAAI,CAAA;KAC/E,CAAA;IACF,CAAA,GACH,oBAAC,KAAD;KAAG,GAAI,WAAW,OAAO,WAAW;KAClC,UAAA,oBAAC,KAAD;MAAG,GAAI,WAAW,OAAO,WAAW;MAClC,UAAA,oBAAC,UAAD;OAAQ,GAAG;OAAe,GAAI,WAAW,OAAO,aAAa,eAAe;MAAI,CAAA;KAC/E,CAAA;IACF,CAAA,CACF;GACH,CAAA,GAAA,qBAAC,KAAD;IAAG,GAAI,WAAW,OAAO,MAAM,aAAa;IAA5C,UAAA,CACE,oBAAC,QAAD,EAAM,GAAG,KAAO,CAAA,GAChB,qBAAC,KAAD;KAAG,MAAM;KAAO,GAAI,WAAW,OAAO,MAAM,8BAA8B,MAAM,CAAC;KAAjF,UAAA;MACE,oBAAC,WAAD;OAAS,IAAI;OAAQ,IAAI;OAAS,IAAI;OAAQ,IAAI;MAAS,CAAA;MAC3D,oBAAC,WAAD;OAAS,IAAI;OAAS,IAAI;OAAS,IAAI;OAAQ,IAAI;MAAS,CAAA;MAC5D,qBAAC,KAAD;OAAG,MAAM;OAAK,GAAI,WAAW,OAAO,MAAM;OAA1C,UAAA,CACE,oBAAC,WAAD;QAAS,IAAI;QAAS,IAAI;QAAS,IAAI;QAAO,IAAI;OAAQ,CAAA,GAC1D,oBAAC,WAAD;QAAS,IAAI;QAAS,IAAI;QAAS,IAAI;QAAO,IAAI;OAAQ,CAAA,CACzD;;KACF;IACF,CAAA,CAAA;GACF,CAAA,CAAA;;CACA;;AAGP,kBAAkB,cAAc"}
@@ -0,0 +1,3 @@
1
+ import LobotBrandLoading from "./LobotBrandLoading.mjs";
2
+ import { LobotBrandLoadingProps } from "./type.mjs";
3
+ export { type LobotBrandLoadingProps, LobotBrandLoading as default };
@@ -0,0 +1,13 @@
1
+ import { stableClasses } from "../../utils/bem.mjs";
2
+ // src/brand/LobotBrandLoading/stable.ts
3
+ const brandLobotBrandLoadingClasses = stableClasses({
4
+ block: "brand-lobot-brand-loading",
5
+ elements: [
6
+ "body",
7
+ "bubble",
8
+ "eyes"
9
+ ]
10
+ });
11
+ export { brandLobotBrandLoadingClasses };
12
+
13
+ //# sourceMappingURL=stable.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stable.mjs","names":[],"sources":["../../../src/brand/LobotBrandLoading/stable.ts"],"sourcesContent":["import { stableClasses } from '@/utils/bem';\n\nexport const brandLobotBrandLoadingClasses = stableClasses({\n block: 'brand-lobot-brand-loading',\n elements: ['body', 'bubble', 'eyes'],\n});\n"],"mappings":";;AAEA,MAAa,gCAAgC,cAAc;CACzD,OAAO;CACP,UAAU;EAAC;EAAQ;EAAU;CAAM;AACrC,CAAC"}
@@ -0,0 +1,111 @@
1
+ // src/brand/LobotBrandLoading/style.ts
2
+ const styles = {
3
+ body: {
4
+ k44tkh: "lb1sbju2s",
5
+ ko0y90: "lba4qsjk",
6
+ kKVMdj: "lbkmmv2w lb1aquc0h",
7
+ kyAemX: "lb4hg4is",
8
+ k3nNDw: "lb23dpnr",
9
+ $$css: true
10
+ },
11
+ bubbleLarge: {
12
+ kKxzle: "lbyyaglq",
13
+ kILWW9: "lbpz12be",
14
+ k44tkh: "lb1sbju2s",
15
+ ko0y90: "lba4qsjk",
16
+ kKVMdj: "lb1qeqc9v lb1aquc0h",
17
+ kyAemX: "lb1b1fuo3",
18
+ $$css: true
19
+ },
20
+ bubbleSmall: {
21
+ kKxzle: "lb1uzojwf",
22
+ kILWW9: "lbpz12be",
23
+ k44tkh: "lb1sbju2s",
24
+ ko0y90: "lba4qsjk",
25
+ kKVMdj: "lb1qeqc9v lb1aquc0h",
26
+ kyAemX: "lb1b1fuo3",
27
+ k3aq6I: "lb1bjs686",
28
+ $$css: true
29
+ },
30
+ eyes: {
31
+ k44tkh: "lb1sbju2s",
32
+ ko0y90: "lba4qsjk",
33
+ kKVMdj: "lbxj4219 lb1aquc0h",
34
+ kyAemX: "lb4hg4is",
35
+ k3nNDw: "lbzv47vv",
36
+ $$css: true
37
+ },
38
+ haloLarge: {
39
+ kKxzle: "lbyyaglq",
40
+ kILWW9: "lbpz12be",
41
+ k44tkh: "lb1sbju2s",
42
+ ko0y90: "lba4qsjk",
43
+ kKVMdj: "lbf8ildx lb1aquc0h",
44
+ kyAemX: "lb1b1fuo3",
45
+ $$css: true
46
+ },
47
+ haloSmall: {
48
+ kKxzle: "lb1uzojwf",
49
+ kILWW9: "lbpz12be",
50
+ k44tkh: "lb1sbju2s",
51
+ ko0y90: "lba4qsjk",
52
+ kKVMdj: "lbf8ildx lb1aquc0h",
53
+ kyAemX: "lb1b1fuo3",
54
+ k3aq6I: "lbsbq89j",
55
+ $$css: true
56
+ },
57
+ orbitXLarge: {
58
+ kKxzle: "lbyyaglq",
59
+ kILWW9: "lbpz12be",
60
+ k44tkh: "lb1sbju2s",
61
+ ko0y90: "lba4qsjk",
62
+ kKVMdj: "lb1eawchb lb1aquc0h",
63
+ kyAemX: "lb1b1fuo3",
64
+ k3aq6I: "lb1p92x8g",
65
+ $$css: true
66
+ },
67
+ orbitXSmall: {
68
+ kKxzle: "lb1uzojwf",
69
+ kILWW9: "lbpz12be",
70
+ k44tkh: "lb1sbju2s",
71
+ ko0y90: "lba4qsjk",
72
+ kKVMdj: "lb1eawchb lb1aquc0h",
73
+ kyAemX: "lb1b1fuo3",
74
+ k3aq6I: "lb1sjzmqm",
75
+ $$css: true
76
+ },
77
+ orbitYLarge: {
78
+ kKxzle: "lbzxkn1k",
79
+ kILWW9: "lbpz12be",
80
+ k44tkh: "lb1sbju2s",
81
+ ko0y90: "lba4qsjk",
82
+ kKVMdj: "lb1vowima lb1aquc0h",
83
+ kyAemX: "lb1b1fuo3",
84
+ $$css: true
85
+ },
86
+ orbitYSmall: {
87
+ kKxzle: "lb2iuy22",
88
+ kILWW9: "lbpz12be",
89
+ k44tkh: "lb1sbju2s",
90
+ ko0y90: "lba4qsjk",
91
+ kKVMdj: "lb1vowima lb1aquc0h",
92
+ kyAemX: "lb1b1fuo3",
93
+ $$css: true
94
+ },
95
+ pupils: {
96
+ k44tkh: "lb1sbju2s",
97
+ ko0y90: "lba4qsjk",
98
+ kKVMdj: "lb6wgnq1 lb1aquc0h",
99
+ kyAemX: "lb1esw782",
100
+ $$css: true
101
+ },
102
+ root: {
103
+ kUk6DE: "lb1okw0bk",
104
+ kVQacm: "lb1rea2x4",
105
+ kLWn49: "lbo5v014",
106
+ $$css: true
107
+ }
108
+ };
109
+ export { styles };
110
+
111
+ //# sourceMappingURL=style.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"style.mjs","names":[],"sources":["../../../src/brand/LobotBrandLoading/style.ts"],"sourcesContent":["import * as stylex from '@stylexjs/stylex';\n\n/**\n * One loop: each bubble travels a full ellipse around the head in `ORBIT`, so a bubble passes\n * overhead every `PASS`. Eyes and body run on the `PASS` clock to stay in step with it.\n *\n * The ellipse is built from two sine-eased alternating translations a quarter turn apart\n * (x on the outer group, y on the inner one), which needs no motion path and no JavaScript.\n */\nconst PASS = '1.4s';\nconst QUARTER = '-0.7s';\nconst HALF = '-1.4s';\nconst THREE_QUARTERS = '-2.1s';\n\n// Close to a true sine in-out, so the two translations trace an ellipse.\nconst SINE = 'cubic-bezier(0.37, 0, 0.63, 1)';\n\nconst reducedMotion = '@media (prefers-reduced-motion: reduce)';\n\nconst orbitX = stylex.keyframes({\n from: { transform: 'translateX(-129.99px)' },\n to: { transform: 'translateX(129.99px)' },\n});\n\nconst orbitY = stylex.keyframes({\n from: { transform: 'translateY(50px)' },\n to: { transform: 'translateY(-50px)' },\n});\n\n// The bubble is small on the left of the logo and large on the right.\nconst bubbleGrow = stylex.keyframes({\n from: { transform: 'scale(0.5778)' },\n to: { transform: 'scale(1)' },\n});\n\nconst haloGrow = stylex.keyframes({\n from: { transform: 'scale(0.7765)' },\n to: { transform: 'scale(1)' },\n});\n\nconst breathe = stylex.keyframes({\n '0%, 100%': { transform: 'scale(1.012, 0.988)' },\n '50%': { transform: 'scale(0.99, 1.014)' },\n});\n\n// Pupils follow the bubble overhead from left to right, then return while the eyes are shut.\nconst look = stylex.keyframes({\n '0%': { transform: 'translate(-10px, -14px)' },\n '14%': { transform: 'translate(-8.7px, -20px)' },\n '28%': { transform: 'translate(-5px, -24.4px)' },\n '42%': { transform: 'translate(0, -26px)' },\n '56%': { transform: 'translate(5px, -24.4px)' },\n '70%': { transform: 'translate(8.7px, -20px)' },\n '84%': { transform: 'translate(10px, -14px)' },\n '92%': { transform: 'translate(0, -8px)' },\n '100%': { transform: 'translate(-10px, -14px)' },\n});\n\nconst blink = stylex.keyframes({\n '0%, 84%, 100%': { transform: 'scaleY(1)' },\n '92%': { transform: 'scaleY(0.06)' },\n});\n\nconst sway = (name: string, delay: string) => ({\n animationDelay: delay,\n animationDirection: 'alternate',\n animationDuration: PASS,\n animationIterationCount: 'infinite',\n animationName: { default: name, [reducedMotion]: 'none' },\n animationTimingFunction: SINE,\n});\n\nconst loop = (name: string, timing: string) => ({\n animationDuration: PASS,\n animationIterationCount: 'infinite',\n animationName: { default: name, [reducedMotion]: 'none' },\n animationTimingFunction: timing,\n});\n\nexport const styles = stylex.create({\n body: {\n ...loop(breathe, 'ease-in-out'),\n transformOrigin: '223px 468.4px',\n },\n // Each static transform is the logo pose, which reduced motion falls back to.\n bubbleLarge: {\n ...sway(bubbleGrow, HALF),\n },\n bubbleSmall: {\n ...sway(bubbleGrow, '0s'),\n transform: 'scale(0.5778)',\n },\n eyes: {\n ...loop(blink, 'ease-in-out'),\n transformOrigin: '245.3px 280.48px',\n },\n haloLarge: {\n ...sway(haloGrow, HALF),\n },\n haloSmall: {\n ...sway(haloGrow, '0s'),\n transform: 'scale(0.7765)',\n },\n orbitXLarge: {\n ...sway(orbitX, HALF),\n transform: 'translateX(129.99px)',\n },\n orbitXSmall: {\n ...sway(orbitX, '0s'),\n transform: 'translateX(-129.99px)',\n },\n orbitYLarge: {\n ...sway(orbitY, THREE_QUARTERS),\n },\n orbitYSmall: {\n ...sway(orbitY, QUARTER),\n },\n pupils: {\n ...loop(look, 'linear'),\n },\n root: {\n flex: 'none',\n overflow: 'visible',\n lineHeight: 1,\n },\n});\n"],"mappings":";AAgDA,MAAa,SAAS;CACpB,MAAM;EACJ,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,OAAO;CACT;CACA,aAAa;EACX,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,OAAO;CACT;CACA,aAAa;EACX,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,OAAO;CACT;CACA,MAAM;EACJ,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,OAAO;CACT;CACA,WAAW;EACT,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,OAAO;CACT;CACA,WAAW;EACT,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,OAAO;CACT;CACA,aAAa;EACX,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,OAAO;CACT;CACA,aAAa;EACX,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,OAAO;CACT;CACA,aAAa;EACX,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,OAAO;CACT;CACA,aAAa;EACX,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,OAAO;CACT;CACA,QAAQ;EACN,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,OAAO;CACT;CACA,MAAM;EACJ,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,OAAO;CACT;AACF"}
@@ -0,0 +1,9 @@
1
+ import { SvgProps } from "../../types/index.mjs";
2
+ export interface LobotBrandLoadingProps extends SvgProps {
3
+ /**
4
+ * Width and height of the mark, as px or any CSS length. It matches `LobotMono` at the same
5
+ * size, so the loader can hand over to the static logo without a jump.
6
+ * @default 64
7
+ */
8
+ size?: number | string;
9
+ }
@@ -0,0 +1,9 @@
1
+ import { FC } from "react";
2
+ import { LobotBrandLoading3dProps } from "./type.mjs";
3
+ /**
4
+ * The Lobot mark as a faint, gray loader with implied volume: it crouches, jumps with a full
5
+ * turn of the head, lands into a smile and then rolls its head around, while its two bubbles
6
+ * circle above. Without motion it is the still mark.
7
+ */
8
+ declare const LobotBrandLoading3d: FC<LobotBrandLoading3dProps>;
9
+ export { LobotBrandLoading3d as default };
@@ -0,0 +1,87 @@
1
+ "use client";
2
+ import clsx$1 from "clsx";
3
+ import { useId, useMemo } from "react";
4
+ import { buildStillScene } from "../../AgentAvatar/still.mjs";
5
+ import { useReducedMotion } from "../../AgentAvatar/useReducedMotion.mjs";
6
+ import { styleProps } from "../../styles/stylex/props.mjs";
7
+ import { useThemeMode } from "../../styles/theme/scope.mjs";
8
+ import { toDataAttributes } from "../../utils/bem.mjs";
9
+ import { brandLobotBrandLoading3dClasses } from "./stable.mjs";
10
+ import { styles } from "./style.mjs";
11
+ import { useLiveLoading } from "./useLiveLoading.mjs";
12
+ import { jsx, jsxs } from "react/jsx-runtime";
13
+ // src/brand/LobotBrandLoading3d/LobotBrandLoading3d.tsx
14
+ /**
15
+ * Fits the jump and the bubbles above the head inside the box: the canvas of `AgentAvatar`,
16
+ * scaled about its base.
17
+ */
18
+ const STAGE = "translate(50 95) scale(0.88) translate(-50 -92)";
19
+ /**
20
+ * The Lobot mark as a faint, gray loader with implied volume: it crouches, jumps with a full
21
+ * turn of the head, lands into a smile and then rolls its head around, while its two bubbles
22
+ * circle above. Without motion it is the still mark.
23
+ */
24
+ const LobotBrandLoading3d = ({ size = 64, className, style, ...rest }) => {
25
+ const idPrefix = `${useId().replaceAll(/[^\w-]/g, "")}-`;
26
+ const { isDarkMode } = useThemeMode();
27
+ const animated = !useReducedMotion();
28
+ const layers = useLiveLoading(animated, idPrefix);
29
+ const still = useMemo(() => layers.live ? null : buildStillScene("lobot", "idle"), [layers.live]);
30
+ return /* @__PURE__ */ jsxs("svg", {
31
+ height: size,
32
+ viewBox: "0 0 100 100",
33
+ width: size,
34
+ xmlns: "http://www.w3.org/2000/svg",
35
+ ...toDataAttributes({ animated }),
36
+ ...styleProps([styles.root, isDarkMode && styles.dark], clsx$1(brandLobotBrandLoading3dClasses(), className), style),
37
+ ...rest,
38
+ children: [
39
+ /* @__PURE__ */ jsx("title", { children: "Lobot" }),
40
+ /* @__PURE__ */ jsx("defs", { ref: layers.defs }),
41
+ /* @__PURE__ */ jsxs("g", {
42
+ transform: STAGE,
43
+ children: [
44
+ /* @__PURE__ */ jsx("g", {
45
+ className: brandLobotBrandLoading3dClasses("bubbles"),
46
+ ref: layers.bubbles,
47
+ children: still?.extra && /* @__PURE__ */ jsx("path", {
48
+ d: still.extra.d,
49
+ transform: still.extra.transform
50
+ })
51
+ }),
52
+ /* @__PURE__ */ jsx("g", {
53
+ className: brandLobotBrandLoading3dClasses("body"),
54
+ ref: layers.body,
55
+ children: still && /* @__PURE__ */ jsx("path", { d: still.body })
56
+ }),
57
+ /* @__PURE__ */ jsx("g", {
58
+ className: brandLobotBrandLoading3dClasses("eyes"),
59
+ ref: layers.eyes,
60
+ children: still?.eyes.map(({ pupil, sclera, smile, smileWidth, transform }, index) => /* @__PURE__ */ jsxs("g", {
61
+ transform,
62
+ children: [
63
+ sclera && /* @__PURE__ */ jsx("path", {
64
+ d: sclera,
65
+ ...styleProps(styles.sclera)
66
+ }),
67
+ pupil && /* @__PURE__ */ jsx("path", {
68
+ d: pupil,
69
+ ...styleProps(styles.pupil)
70
+ }),
71
+ smile && /* @__PURE__ */ jsx("path", {
72
+ d: smile,
73
+ strokeWidth: smileWidth,
74
+ ...styleProps(styles.smile)
75
+ })
76
+ ]
77
+ }, index))
78
+ })
79
+ ]
80
+ })
81
+ ]
82
+ });
83
+ };
84
+ LobotBrandLoading3d.displayName = "LobotBrandLoading3d";
85
+ export { LobotBrandLoading3d as default };
86
+
87
+ //# sourceMappingURL=LobotBrandLoading3d.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LobotBrandLoading3d.mjs","names":["clsx"],"sources":["../../../src/brand/LobotBrandLoading3d/LobotBrandLoading3d.tsx"],"sourcesContent":["'use client';\n\nimport clsx from 'clsx';\nimport { type FC, useId, useMemo } from 'react';\n\nimport { buildStillScene } from '@/AgentAvatar/still';\nimport { useReducedMotion } from '@/AgentAvatar/useReducedMotion';\nimport { styleProps } from '@/styles/stylex/props';\nimport { useThemeMode } from '@/styles/theme/scope';\nimport { toDataAttributes } from '@/utils/bem';\n\nimport { brandLobotBrandLoading3dClasses } from './stable';\nimport { styles } from './style';\nimport type { LobotBrandLoading3dProps } from './type';\nimport { useLiveLoading } from './useLiveLoading';\n\n/**\n * Fits the jump and the bubbles above the head inside the box: the canvas of `AgentAvatar`,\n * scaled about its base.\n */\nconst STAGE = 'translate(50 95) scale(0.88) translate(-50 -92)';\n\n/**\n * The Lobot mark as a faint, gray loader with implied volume: it crouches, jumps with a full\n * turn of the head, lands into a smile and then rolls its head around, while its two bubbles\n * circle above. Without motion it is the still mark.\n */\nconst LobotBrandLoading3d: FC<LobotBrandLoading3dProps> = ({\n size = 64,\n className,\n style,\n ...rest\n}) => {\n const idPrefix = `${useId().replaceAll(/[^\\w-]/g, '')}-`;\n const { isDarkMode } = useThemeMode();\n const animated = !useReducedMotion();\n const layers = useLiveLoading(animated, idPrefix);\n const still = useMemo(\n () => (layers.live ? null : buildStillScene('lobot', 'idle')),\n [layers.live],\n );\n\n return (\n <svg\n height={size}\n viewBox=\"0 0 100 100\"\n width={size}\n xmlns=\"http://www.w3.org/2000/svg\"\n {...toDataAttributes({ animated })}\n {...styleProps(\n [styles.root, isDarkMode && styles.dark],\n clsx(brandLobotBrandLoading3dClasses(), className),\n style,\n )}\n {...rest}\n >\n <title>Lobot</title>\n <defs ref={layers.defs} />\n <g transform={STAGE}>\n <g className={brandLobotBrandLoading3dClasses('bubbles')} ref={layers.bubbles}>\n {still?.extra && <path d={still.extra.d} transform={still.extra.transform} />}\n </g>\n <g className={brandLobotBrandLoading3dClasses('body')} ref={layers.body}>\n {still && <path d={still.body} />}\n </g>\n <g className={brandLobotBrandLoading3dClasses('eyes')} ref={layers.eyes}>\n {still?.eyes.map(({ pupil, sclera, smile, smileWidth, transform }, index) => (\n <g key={index} transform={transform}>\n {sclera && <path d={sclera} {...styleProps(styles.sclera)} />}\n {pupil && <path d={pupil} {...styleProps(styles.pupil)} />}\n {smile && <path d={smile} strokeWidth={smileWidth} {...styleProps(styles.smile)} />}\n </g>\n ))}\n </g>\n </g>\n </svg>\n );\n};\n\nLobotBrandLoading3d.displayName = 'LobotBrandLoading3d';\n\nexport default LobotBrandLoading3d;\n"],"mappings":";;;;;;;;;;;;;;;;;AAoBA,MAAM,QAAQ;;;;;;AAOd,MAAM,uBAAqD,EACzD,OAAO,IACP,WACA,OACA,GAAG,WACC;CACJ,MAAM,WAAW,GAAG,MAAM,CAAC,CAAC,WAAW,WAAW,EAAE,EAAE;CACtD,MAAM,EAAE,eAAe,aAAa;CACpC,MAAM,WAAW,CAAC,iBAAiB;CACnC,MAAM,SAAS,eAAe,UAAU,QAAQ;CAChD,MAAM,QAAQ,cACL,OAAO,OAAO,OAAO,gBAAgB,SAAS,MAAM,GAC3D,CAAC,OAAO,IAAI,CACd;CAEA,OACE,qBAAC,OAAD;EACE,QAAQ;EACR,SAAQ;EACR,OAAO;EACP,OAAM;EACN,GAAI,iBAAiB,EAAE,SAAS,CAAC;EACjC,GAAI,WACF,CAAC,OAAO,MAAM,cAAc,OAAO,IAAI,GACvCA,OAAK,gCAAgC,GAAG,SAAS,GACjD,KACF;EACA,GAAI;EAXN,UAAA;GAaE,oBAAC,SAAD,EAAA,UAAO,QAAY,CAAA;GACnB,oBAAC,QAAD,EAAM,KAAK,OAAO,KAAO,CAAA;GACzB,qBAAC,KAAD;IAAG,WAAW;IAAd,UAAA;KACE,oBAAC,KAAD;MAAG,WAAW,gCAAgC,SAAS;MAAG,KAAK,OAAO;MACnE,UAAA,OAAO,SAAS,oBAAC,QAAD;OAAM,GAAG,MAAM,MAAM;OAAG,WAAW,MAAM,MAAM;MAAY,CAAA;KAC3E,CAAA;KACH,oBAAC,KAAD;MAAG,WAAW,gCAAgC,MAAM;MAAG,KAAK,OAAO;MAChE,UAAA,SAAS,oBAAC,QAAD,EAAM,GAAG,MAAM,KAAO,CAAA;KAC/B,CAAA;KACH,oBAAC,KAAD;MAAG,WAAW,gCAAgC,MAAM;MAAG,KAAK,OAAO;MAChE,UAAA,OAAO,KAAK,KAAK,EAAE,OAAO,QAAQ,OAAO,YAAY,aAAa,UACjE,qBAAC,KAAD;OAA0B;OAA1B,UAAA;QACG,UAAU,oBAAC,QAAD;SAAM,GAAG;SAAQ,GAAI,WAAW,OAAO,MAAM;QAAI,CAAA;QAC3D,SAAS,oBAAC,QAAD;SAAM,GAAG;SAAO,GAAI,WAAW,OAAO,KAAK;QAAI,CAAA;QACxD,SAAS,oBAAC,QAAD;SAAM,GAAG;SAAO,aAAa;SAAY,GAAI,WAAW,OAAO,KAAK;QAAI,CAAA;OACjF;MAJK,GAAA,KAIL,CACJ;KACA,CAAA;IACF;;EACA;;AAET;AAEA,oBAAoB,cAAc"}