@lobehub/ui 6.15.4 → 6.16.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/THIRD_PARTY_NOTICES.md +20 -0
- package/es/EditorSlashMenu/atoms.mjs +1 -0
- package/es/EditorSlashMenu/atoms.mjs.map +1 -1
- package/es/eslint/index.d.mts +1 -1
- package/es/icons/WeCom/components/Avatar.d.mts +5 -0
- package/es/icons/WeCom/components/Avatar.mjs +18 -0
- package/es/icons/WeCom/components/Avatar.mjs.map +1 -0
- package/es/icons/WeCom/components/Color.d.mts +3 -0
- package/es/icons/WeCom/components/Color.mjs +26 -0
- package/es/icons/WeCom/components/Color.mjs.map +1 -0
- package/es/icons/WeCom/components/Mono.d.mts +3 -0
- package/es/icons/WeCom/components/Mono.mjs +24 -0
- package/es/icons/WeCom/components/Mono.mjs.map +1 -0
- package/es/icons/WeCom/index.d.mts +11 -0
- package/es/icons/WeCom/index.mjs +14 -0
- package/es/icons/WeCom/index.mjs.map +1 -0
- package/es/icons/WeCom/style.mjs +6 -0
- package/es/icons/WeCom/style.mjs.map +1 -0
- package/es/icons/index.d.mts +4 -3
- package/es/icons/index.mjs +4 -3
- package/package.json +3 -2
- /package/es/node_modules/.pnpm/{eslint@10.14.0_jiti@2.7.0_supports-color@10.2.2 → eslint@10.15.0_jiti@2.7.0_supports-color@10.2.2}/node_modules/eslint/lib/types/index.d.mts +0 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Third-Party Notices
|
|
2
|
+
|
|
3
|
+
`@lobehub/ui` includes material from the third-party projects below. Each is distributed under its own license, reproduced here as that license requires.
|
|
4
|
+
|
|
5
|
+
## TDesign Icons
|
|
6
|
+
|
|
7
|
+
- Source: https://github.com/Tencent/tdesign-icons
|
|
8
|
+
- Used in: `src/icons/WeCom` (the WeCom glyph, from TDesign's `logo-wecom` icon)
|
|
9
|
+
|
|
10
|
+
```text
|
|
11
|
+
MIT License
|
|
12
|
+
|
|
13
|
+
Copyright (c) 2021-present TDesign
|
|
14
|
+
|
|
15
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
16
|
+
|
|
17
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
18
|
+
|
|
19
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
|
+
```
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { useAppElement } from "../ConfigProvider/AppElementContext.mjs";
|
|
3
|
+
import "../ConfigProvider/index.mjs";
|
|
3
4
|
import { menuClassNames, menuStyles } from "../DropdownMenu/style.mjs";
|
|
4
5
|
import { editorSlashMenuClasses } from "./stable.mjs";
|
|
5
6
|
import { styles } from "./style.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"atoms.mjs","names":["clsx"],"sources":["../../src/EditorSlashMenu/atoms.tsx"],"sourcesContent":["'use client';\n\nimport { Autocomplete } from '@base-ui/react/autocomplete';\nimport * as stylex from '@stylexjs/stylex';\nimport clsx from 'clsx';\nimport type React from 'react';\n\nimport { useAppElement } from '@/ConfigProvider';\nimport { menuClassNames, menuStyles } from '@/DropdownMenu/sharedStyle';\nimport { type styleProps } from '@/styles/stylex/props';\n\nimport { editorSlashMenuClasses } from './stable';\nimport { styles } from './style';\n\nconst mergeStateClassName = <TState,>(\n base: string,\n className: string | ((state: TState) => string | undefined) | undefined,\n) => {\n if (typeof className === 'function') return (state: TState) => clsx(base, className(state));\n return clsx(base, className);\n};\n\nconst sx = (styles: Parameters<typeof styleProps>[0]) => stylex.props(styles).className ?? '';\n\nexport const EditorSlashMenuRoot = Autocomplete.Root;\nexport const EditorSlashMenuList = ({\n ref,\n className,\n ...rest\n}: React.ComponentProps<typeof Autocomplete.List> & {\n ref?: React.RefObject<HTMLDivElement | null>;\n}) => {\n return (\n <Autocomplete.List\n {...rest}\n ref={ref}\n className={\n mergeStateClassName(\n clsx(sx(styles.list), editorSlashMenuClasses('list')),\n className as any,\n ) as any\n }\n />\n );\n};\nEditorSlashMenuList.displayName = 'EditorSlashMenuList';\n\nexport type EditorSlashMenuPortalProps = React.ComponentProps<typeof Autocomplete.Portal> & {\n /**\n * When `container` is not provided, it uses a shared container created by `usePortalContainer`.\n */\n container?: HTMLElement | null;\n};\n\nexport const EditorSlashMenuPortal = ({ container, ...rest }: EditorSlashMenuPortalProps) => {\n const appElement = useAppElement();\n return <Autocomplete.Portal container={container ?? appElement ?? undefined} {...rest} />;\n};\nEditorSlashMenuPortal.displayName = 'EditorSlashMenuPortal';\n\nexport type EditorSlashMenuPositionerProps = React.ComponentProps<typeof Autocomplete.Positioner>;\n\nexport const EditorSlashMenuPositioner = ({\n className,\n align,\n positionMethod,\n side,\n sideOffset,\n ...rest\n}: EditorSlashMenuPositionerProps) => {\n return (\n <Autocomplete.Positioner\n {...rest}\n align={align ?? 'start'}\n positionMethod={positionMethod ?? 'fixed'}\n side={side ?? 'bottom'}\n sideOffset={sideOffset ?? 6}\n className={\n mergeStateClassName(\n clsx(\n sx(menuStyles.positioner),\n menuClassNames.positioner,\n editorSlashMenuClasses('positioner'),\n ),\n className as any,\n ) as any\n }\n />\n );\n};\nEditorSlashMenuPositioner.displayName = 'EditorSlashMenuPositioner';\n\nexport type EditorSlashMenuPopupProps = React.ComponentProps<typeof Autocomplete.Popup>;\n\nexport const EditorSlashMenuPopup = ({\n className,\n initialFocus = false,\n ...rest\n}: EditorSlashMenuPopupProps) => {\n return (\n <Autocomplete.Popup\n {...rest}\n initialFocus={initialFocus}\n className={\n mergeStateClassName(\n clsx(sx(menuStyles.popup), menuClassNames.popup, editorSlashMenuClasses()),\n className as any,\n ) as any\n }\n />\n );\n};\nEditorSlashMenuPopup.displayName = 'EditorSlashMenuPopup';\n\nexport type EditorSlashMenuItemProps = React.ComponentProps<typeof Autocomplete.Item> & {\n danger?: boolean;\n};\n\nexport const EditorSlashMenuItem = ({ className, danger, ...rest }: EditorSlashMenuItemProps) => {\n return (\n <Autocomplete.Item\n {...rest}\n className={(state) =>\n clsx(\n sx([menuStyles.item, danger && menuStyles.danger]),\n editorSlashMenuClasses('item'),\n typeof className === 'function' ? className(state) : className,\n )\n }\n />\n );\n};\nEditorSlashMenuItem.displayName = 'EditorSlashMenuItem';\n\nexport type EditorSlashMenuGroupProps = React.ComponentProps<typeof Autocomplete.Group>;\nexport const EditorSlashMenuGroup = ({ className, ...rest }: EditorSlashMenuGroupProps) => (\n <Autocomplete.Group\n {...rest}\n className={mergeStateClassName(editorSlashMenuClasses('group'), className as any) as any}\n />\n);\nEditorSlashMenuGroup.displayName = 'EditorSlashMenuGroup';\n\nexport type EditorSlashMenuGroupLabelProps = React.ComponentProps<typeof Autocomplete.GroupLabel>;\n\nexport const EditorSlashMenuGroupLabel = ({\n className,\n ...rest\n}: EditorSlashMenuGroupLabelProps) => {\n return (\n <Autocomplete.GroupLabel\n {...rest}\n className={(state) =>\n clsx(\n sx(menuStyles.groupLabel),\n editorSlashMenuClasses('group-label'),\n typeof className === 'function' ? className(state) : className,\n )\n }\n />\n );\n};\nEditorSlashMenuGroupLabel.displayName = 'EditorSlashMenuGroupLabel';\n\nexport type EditorSlashMenuEmptyProps = React.ComponentProps<typeof Autocomplete.Empty>;\n\nexport const EditorSlashMenuEmpty = ({ className, ...rest }: EditorSlashMenuEmptyProps) => {\n return (\n <Autocomplete.Empty\n {...rest}\n className={(state) =>\n clsx(\n sx([menuStyles.item, menuStyles.empty]),\n editorSlashMenuClasses('empty'),\n typeof className === 'function' ? className(state) : className,\n )\n }\n />\n );\n};\nEditorSlashMenuEmpty.displayName = 'EditorSlashMenuEmpty';\n\nexport type EditorSlashMenuItemContentProps = React.HTMLAttributes<HTMLDivElement>;\nexport const EditorSlashMenuItemContent = ({\n className,\n ...rest\n}: EditorSlashMenuItemContentProps) => {\n return (\n <div\n {...rest}\n className={clsx(\n sx(menuStyles.itemContent),\n editorSlashMenuClasses('item-content'),\n className,\n )}\n />\n );\n};\nEditorSlashMenuItemContent.displayName = 'EditorSlashMenuItemContent';\n\nexport type EditorSlashMenuItemIconProps = React.HTMLAttributes<HTMLSpanElement>;\nexport const EditorSlashMenuItemIcon = ({ className, ...rest }: EditorSlashMenuItemIconProps) => {\n return (\n <span\n {...rest}\n className={clsx(\n sx(menuStyles.icon),\n menuClassNames.icon,\n editorSlashMenuClasses('icon'),\n className,\n )}\n />\n );\n};\nEditorSlashMenuItemIcon.displayName = 'EditorSlashMenuItemIcon';\n\nexport type EditorSlashMenuItemLabelProps = React.HTMLAttributes<HTMLSpanElement>;\nexport const EditorSlashMenuItemLabel = ({ className, ...rest }: EditorSlashMenuItemLabelProps) => {\n return (\n <span\n {...rest}\n className={clsx(\n sx(menuStyles.label),\n menuClassNames.label,\n editorSlashMenuClasses('label'),\n className,\n )}\n />\n );\n};\nEditorSlashMenuItemLabel.displayName = 'EditorSlashMenuItemLabel';\n\nexport type EditorSlashMenuItemExtraProps = React.HTMLAttributes<HTMLSpanElement>;\nexport const EditorSlashMenuItemExtra = ({ className, ...rest }: EditorSlashMenuItemExtraProps) => {\n return (\n <span\n {...rest}\n className={clsx(sx(menuStyles.extra), editorSlashMenuClasses('extra'), className)}\n />\n );\n};\nEditorSlashMenuItemExtra.displayName = 'EditorSlashMenuItemExtra';\n\nexport type EditorSlashMenuHiddenInputProps = React.ComponentProps<typeof Autocomplete.Input>;\nexport const EditorSlashMenuHiddenInput = ({\n className,\n ...rest\n}: EditorSlashMenuHiddenInputProps) => {\n return (\n <Autocomplete.Input\n {...rest}\n className={\n mergeStateClassName(\n clsx(sx(styles.hiddenInput), editorSlashMenuClasses('input')),\n className as any,\n ) as any\n }\n />\n );\n};\nEditorSlashMenuHiddenInput.displayName = 'EditorSlashMenuHiddenInput';\n"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"atoms.mjs","names":["clsx"],"sources":["../../src/EditorSlashMenu/atoms.tsx"],"sourcesContent":["'use client';\n\nimport { Autocomplete } from '@base-ui/react/autocomplete';\nimport * as stylex from '@stylexjs/stylex';\nimport clsx from 'clsx';\nimport type React from 'react';\n\nimport { useAppElement } from '@/ConfigProvider';\nimport { menuClassNames, menuStyles } from '@/DropdownMenu/sharedStyle';\nimport { type styleProps } from '@/styles/stylex/props';\n\nimport { editorSlashMenuClasses } from './stable';\nimport { styles } from './style';\n\nconst mergeStateClassName = <TState,>(\n base: string,\n className: string | ((state: TState) => string | undefined) | undefined,\n) => {\n if (typeof className === 'function') return (state: TState) => clsx(base, className(state));\n return clsx(base, className);\n};\n\nconst sx = (styles: Parameters<typeof styleProps>[0]) => stylex.props(styles).className ?? '';\n\nexport const EditorSlashMenuRoot = Autocomplete.Root;\nexport const EditorSlashMenuList = ({\n ref,\n className,\n ...rest\n}: React.ComponentProps<typeof Autocomplete.List> & {\n ref?: React.RefObject<HTMLDivElement | null>;\n}) => {\n return (\n <Autocomplete.List\n {...rest}\n ref={ref}\n className={\n mergeStateClassName(\n clsx(sx(styles.list), editorSlashMenuClasses('list')),\n className as any,\n ) as any\n }\n />\n );\n};\nEditorSlashMenuList.displayName = 'EditorSlashMenuList';\n\nexport type EditorSlashMenuPortalProps = React.ComponentProps<typeof Autocomplete.Portal> & {\n /**\n * When `container` is not provided, it uses a shared container created by `usePortalContainer`.\n */\n container?: HTMLElement | null;\n};\n\nexport const EditorSlashMenuPortal = ({ container, ...rest }: EditorSlashMenuPortalProps) => {\n const appElement = useAppElement();\n return <Autocomplete.Portal container={container ?? appElement ?? undefined} {...rest} />;\n};\nEditorSlashMenuPortal.displayName = 'EditorSlashMenuPortal';\n\nexport type EditorSlashMenuPositionerProps = React.ComponentProps<typeof Autocomplete.Positioner>;\n\nexport const EditorSlashMenuPositioner = ({\n className,\n align,\n positionMethod,\n side,\n sideOffset,\n ...rest\n}: EditorSlashMenuPositionerProps) => {\n return (\n <Autocomplete.Positioner\n {...rest}\n align={align ?? 'start'}\n positionMethod={positionMethod ?? 'fixed'}\n side={side ?? 'bottom'}\n sideOffset={sideOffset ?? 6}\n className={\n mergeStateClassName(\n clsx(\n sx(menuStyles.positioner),\n menuClassNames.positioner,\n editorSlashMenuClasses('positioner'),\n ),\n className as any,\n ) as any\n }\n />\n );\n};\nEditorSlashMenuPositioner.displayName = 'EditorSlashMenuPositioner';\n\nexport type EditorSlashMenuPopupProps = React.ComponentProps<typeof Autocomplete.Popup>;\n\nexport const EditorSlashMenuPopup = ({\n className,\n initialFocus = false,\n ...rest\n}: EditorSlashMenuPopupProps) => {\n return (\n <Autocomplete.Popup\n {...rest}\n initialFocus={initialFocus}\n className={\n mergeStateClassName(\n clsx(sx(menuStyles.popup), menuClassNames.popup, editorSlashMenuClasses()),\n className as any,\n ) as any\n }\n />\n );\n};\nEditorSlashMenuPopup.displayName = 'EditorSlashMenuPopup';\n\nexport type EditorSlashMenuItemProps = React.ComponentProps<typeof Autocomplete.Item> & {\n danger?: boolean;\n};\n\nexport const EditorSlashMenuItem = ({ className, danger, ...rest }: EditorSlashMenuItemProps) => {\n return (\n <Autocomplete.Item\n {...rest}\n className={(state) =>\n clsx(\n sx([menuStyles.item, danger && menuStyles.danger]),\n editorSlashMenuClasses('item'),\n typeof className === 'function' ? className(state) : className,\n )\n }\n />\n );\n};\nEditorSlashMenuItem.displayName = 'EditorSlashMenuItem';\n\nexport type EditorSlashMenuGroupProps = React.ComponentProps<typeof Autocomplete.Group>;\nexport const EditorSlashMenuGroup = ({ className, ...rest }: EditorSlashMenuGroupProps) => (\n <Autocomplete.Group\n {...rest}\n className={mergeStateClassName(editorSlashMenuClasses('group'), className as any) as any}\n />\n);\nEditorSlashMenuGroup.displayName = 'EditorSlashMenuGroup';\n\nexport type EditorSlashMenuGroupLabelProps = React.ComponentProps<typeof Autocomplete.GroupLabel>;\n\nexport const EditorSlashMenuGroupLabel = ({\n className,\n ...rest\n}: EditorSlashMenuGroupLabelProps) => {\n return (\n <Autocomplete.GroupLabel\n {...rest}\n className={(state) =>\n clsx(\n sx(menuStyles.groupLabel),\n editorSlashMenuClasses('group-label'),\n typeof className === 'function' ? className(state) : className,\n )\n }\n />\n );\n};\nEditorSlashMenuGroupLabel.displayName = 'EditorSlashMenuGroupLabel';\n\nexport type EditorSlashMenuEmptyProps = React.ComponentProps<typeof Autocomplete.Empty>;\n\nexport const EditorSlashMenuEmpty = ({ className, ...rest }: EditorSlashMenuEmptyProps) => {\n return (\n <Autocomplete.Empty\n {...rest}\n className={(state) =>\n clsx(\n sx([menuStyles.item, menuStyles.empty]),\n editorSlashMenuClasses('empty'),\n typeof className === 'function' ? className(state) : className,\n )\n }\n />\n );\n};\nEditorSlashMenuEmpty.displayName = 'EditorSlashMenuEmpty';\n\nexport type EditorSlashMenuItemContentProps = React.HTMLAttributes<HTMLDivElement>;\nexport const EditorSlashMenuItemContent = ({\n className,\n ...rest\n}: EditorSlashMenuItemContentProps) => {\n return (\n <div\n {...rest}\n className={clsx(\n sx(menuStyles.itemContent),\n editorSlashMenuClasses('item-content'),\n className,\n )}\n />\n );\n};\nEditorSlashMenuItemContent.displayName = 'EditorSlashMenuItemContent';\n\nexport type EditorSlashMenuItemIconProps = React.HTMLAttributes<HTMLSpanElement>;\nexport const EditorSlashMenuItemIcon = ({ className, ...rest }: EditorSlashMenuItemIconProps) => {\n return (\n <span\n {...rest}\n className={clsx(\n sx(menuStyles.icon),\n menuClassNames.icon,\n editorSlashMenuClasses('icon'),\n className,\n )}\n />\n );\n};\nEditorSlashMenuItemIcon.displayName = 'EditorSlashMenuItemIcon';\n\nexport type EditorSlashMenuItemLabelProps = React.HTMLAttributes<HTMLSpanElement>;\nexport const EditorSlashMenuItemLabel = ({ className, ...rest }: EditorSlashMenuItemLabelProps) => {\n return (\n <span\n {...rest}\n className={clsx(\n sx(menuStyles.label),\n menuClassNames.label,\n editorSlashMenuClasses('label'),\n className,\n )}\n />\n );\n};\nEditorSlashMenuItemLabel.displayName = 'EditorSlashMenuItemLabel';\n\nexport type EditorSlashMenuItemExtraProps = React.HTMLAttributes<HTMLSpanElement>;\nexport const EditorSlashMenuItemExtra = ({ className, ...rest }: EditorSlashMenuItemExtraProps) => {\n return (\n <span\n {...rest}\n className={clsx(sx(menuStyles.extra), editorSlashMenuClasses('extra'), className)}\n />\n );\n};\nEditorSlashMenuItemExtra.displayName = 'EditorSlashMenuItemExtra';\n\nexport type EditorSlashMenuHiddenInputProps = React.ComponentProps<typeof Autocomplete.Input>;\nexport const EditorSlashMenuHiddenInput = ({\n className,\n ...rest\n}: EditorSlashMenuHiddenInputProps) => {\n return (\n <Autocomplete.Input\n {...rest}\n className={\n mergeStateClassName(\n clsx(sx(styles.hiddenInput), editorSlashMenuClasses('input')),\n className as any,\n ) as any\n }\n />\n );\n};\nEditorSlashMenuHiddenInput.displayName = 'EditorSlashMenuHiddenInput';\n"],"mappings":"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"}
|
package/es/eslint/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Rule } from "../node_modules/.pnpm/eslint@10.
|
|
1
|
+
import { Rule } from "../node_modules/.pnpm/eslint@10.15.0_jiti@2.7.0_supports-color@10.2.2/node_modules/eslint/lib/types/index.mjs";
|
|
2
2
|
export declare const restrictedImports: {
|
|
3
3
|
rules: {
|
|
4
4
|
'no-restricted-imports': (string | {
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { TITLE } from "../style.mjs";
|
|
3
|
+
import Icon from "./Mono.mjs";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
import { IconAvatar } from "@lobehub/icons";
|
|
6
|
+
// src/icons/WeCom/components/Avatar.tsx
|
|
7
|
+
const Avatar = ({ background, ...rest }) => {
|
|
8
|
+
return /* @__PURE__ */ jsx(IconAvatar, {
|
|
9
|
+
Icon,
|
|
10
|
+
"aria-label": TITLE,
|
|
11
|
+
background: background || "#0082EF",
|
|
12
|
+
color: "#fff",
|
|
13
|
+
...rest
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
export { Avatar as default };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=Avatar.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Avatar.mjs","names":["Mono"],"sources":["../../../../src/icons/WeCom/components/Avatar.tsx"],"sourcesContent":["'use client';\n\nimport { IconAvatar, type IconAvatarProps } from '@lobehub/icons';\nimport { type FC } from 'react';\n\nimport { COLOR_PRIMARY, TITLE } from '../style';\nimport Mono from './Mono';\n\nexport type AvatarProps = Omit<IconAvatarProps, 'Icon'>;\n\nconst Avatar: FC<AvatarProps> = ({ background, ...rest }) => {\n return (\n <IconAvatar\n Icon={Mono}\n aria-label={TITLE}\n background={background || COLOR_PRIMARY}\n color={'#fff'}\n {...rest}\n />\n );\n};\n\nexport default Avatar;\n"],"mappings":";;;;;;AAUA,MAAM,UAA2B,EAAE,YAAY,GAAG,WAAW;CAC3D,OACE,oBAAC,YAAD;EACQA;EACN,cAAY;EACZ,YAAY,cAAA;EACZ,OAAO;EACP,GAAI;CACL,CAAA;AAEL"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { TITLE } from "../style.mjs";
|
|
3
|
+
import { memo } from "react";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
// src/icons/WeCom/components/Color.tsx
|
|
6
|
+
const Icon = memo(({ size = "1em", style, ...rest }) => {
|
|
7
|
+
return /* @__PURE__ */ jsxs("svg", {
|
|
8
|
+
height: size,
|
|
9
|
+
style: {
|
|
10
|
+
flex: "none",
|
|
11
|
+
lineHeight: 1,
|
|
12
|
+
...style
|
|
13
|
+
},
|
|
14
|
+
viewBox: "0 0 24 24",
|
|
15
|
+
width: size,
|
|
16
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
17
|
+
...rest,
|
|
18
|
+
children: [/* @__PURE__ */ jsx("title", { children: TITLE }), /* @__PURE__ */ jsx("path", {
|
|
19
|
+
d: "m17.326 8.158l-.003-.007a6.6 6.6 0 0 0-1.178-1.674c-1.266-1.307-3.067-2.19-5.102-2.417a9.3 9.3 0 0 0-2.124 0h-.001c-2.061.228-3.882 1.107-5.14 2.405a6.7 6.7 0 0 0-1.194 1.682A5.7 5.7 0 0 0 2 10.657c0 1.106.332 2.218.988 3.201l.006.01c.391.594 1.092 1.39 1.637 1.83l.983.793l-.208.875l.527-.267l.708-.358l.761.225c.467.137.955.227 1.517.29h.005q.515.06 1.026.059c.355 0 .724-.02 1.095-.06a9 9 0 0 0 1.346-.258c.095.7.43 1.337.932 1.81c-.658.208-1.352.358-2.061.436c-.442.048-.883.072-1.312.072q-.627 0-1.253-.072a10.7 10.7 0 0 1-1.861-.36l-2.84 1.438s-.29.131-.44.131c-.418 0-.702-.285-.702-.704c0-.252.067-.598.128-.84l.394-1.653c-.728-.586-1.563-1.544-2.052-2.287A7.76 7.76 0 0 1 0 10.658a7.7 7.7 0 0 1 .787-3.39a8.7 8.7 0 0 1 1.551-2.19c1.61-1.665 3.878-2.73 6.359-3.006a11.3 11.3 0 0 1 2.565 0c2.47.275 4.712 1.353 6.323 3.017a8.6 8.6 0 0 1 1.539 2.192c.466.945.769 1.937.769 2.978a3.06 3.06 0 0 0-2-.005c-.001-.644-.189-1.329-.564-2.09zm4.125 6.977l-.024-.024l-.024-.018l-.024-.018l-.096-.095a4.24 4.24 0 0 1-1.169-2.192q0-.038-.006-.075l-.006-.056l-.035-.144a1.3 1.3 0 0 0-.358-.61a1.386 1.386 0 0 0-1.957 0a1.4 1.4 0 0 0 0 1.963c.191.191.418.311.668.371c.024.012.06.012.084.012q.019 0 .041.006q.023.005.042.006a4.24 4.24 0 0 1 2.231 1.186c.048.048.096.095.131.143a.323.323 0 0 0 .466 0a.35.35 0 0 0 .036-.455m-1.05 4.37l-.025.025c-.119.096-.31.096-.453-.036a.326.326 0 0 1 0-.467c.047-.036.094-.083.141-.13l.002-.002a4.27 4.27 0 0 0 1.187-2.28q.005-.024.006-.043c0-.024 0-.06.012-.084a1.386 1.386 0 0 1 2.326-.67a1.4 1.4 0 0 1 0 1.964c-.167.18-.382.299-.608.359l-.143.036l-.057.005q-.035.006-.075.007a4.2 4.2 0 0 0-2.183 1.173l-.095.096q-.009.01-.018.024t-.018.024m-4.392-1.053l.024.024l.024.018q.015.009.024.018l.096.096a4.25 4.25 0 0 1 1.169 2.19q0 .04.006.076q.005.03.006.057l.035.143c.06.228.18.443.358.611c.537.539 1.42.539 1.957 0a1.4 1.4 0 0 0 0-1.964a1.4 1.4 0 0 0-.668-.371c-.024-.012-.06-.012-.084-.012q-.018 0-.041-.006l-.042-.006a4.25 4.25 0 0 1-2.231-1.185a1.4 1.4 0 0 1-.131-.144a.323.323 0 0 0-.466 0a.325.325 0 0 0-.036.455m1.039-4.358l.024-.024a.32.32 0 0 1 .453.035a.326.326 0 0 1 0 .467c-.047.036-.094.083-.141.13l-.002.002a4.27 4.27 0 0 0-1.187 2.281l-.006.042c0 .024 0 .06-.012.084a1.386 1.386 0 0 1-2.326.67a1.4 1.4 0 0 1 0-1.963c.166-.18.381-.3.608-.36l.143-.035q.026 0 .056-.006q.037-.005.075-.006a4.2 4.2 0 0 0 2.183-1.174l.096-.095l.018-.025z",
|
|
20
|
+
fill: "#0082EF"
|
|
21
|
+
})]
|
|
22
|
+
});
|
|
23
|
+
});
|
|
24
|
+
export { Icon as default };
|
|
25
|
+
|
|
26
|
+
//# sourceMappingURL=Color.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Color.mjs","names":[],"sources":["../../../../src/icons/WeCom/components/Color.tsx"],"sourcesContent":["'use client';\n\nimport type { IconType } from '@lobehub/icons';\nimport { memo } from 'react';\n\nimport { TITLE } from '../style';\n\n// Glyph from TDesign Icons' `logo-wecom` (MIT); notice in THIRD_PARTY_NOTICES.md.\n\nconst Icon: IconType = memo(({ size = '1em', style, ...rest }) => {\n return (\n <svg\n height={size}\n style={{ flex: 'none', lineHeight: 1, ...style }}\n viewBox=\"0 0 24 24\"\n width={size}\n xmlns=\"http://www.w3.org/2000/svg\"\n {...rest}\n >\n <title>{TITLE}</title>\n <path\n d=\"m17.326 8.158l-.003-.007a6.6 6.6 0 0 0-1.178-1.674c-1.266-1.307-3.067-2.19-5.102-2.417a9.3 9.3 0 0 0-2.124 0h-.001c-2.061.228-3.882 1.107-5.14 2.405a6.7 6.7 0 0 0-1.194 1.682A5.7 5.7 0 0 0 2 10.657c0 1.106.332 2.218.988 3.201l.006.01c.391.594 1.092 1.39 1.637 1.83l.983.793l-.208.875l.527-.267l.708-.358l.761.225c.467.137.955.227 1.517.29h.005q.515.06 1.026.059c.355 0 .724-.02 1.095-.06a9 9 0 0 0 1.346-.258c.095.7.43 1.337.932 1.81c-.658.208-1.352.358-2.061.436c-.442.048-.883.072-1.312.072q-.627 0-1.253-.072a10.7 10.7 0 0 1-1.861-.36l-2.84 1.438s-.29.131-.44.131c-.418 0-.702-.285-.702-.704c0-.252.067-.598.128-.84l.394-1.653c-.728-.586-1.563-1.544-2.052-2.287A7.76 7.76 0 0 1 0 10.658a7.7 7.7 0 0 1 .787-3.39a8.7 8.7 0 0 1 1.551-2.19c1.61-1.665 3.878-2.73 6.359-3.006a11.3 11.3 0 0 1 2.565 0c2.47.275 4.712 1.353 6.323 3.017a8.6 8.6 0 0 1 1.539 2.192c.466.945.769 1.937.769 2.978a3.06 3.06 0 0 0-2-.005c-.001-.644-.189-1.329-.564-2.09zm4.125 6.977l-.024-.024l-.024-.018l-.024-.018l-.096-.095a4.24 4.24 0 0 1-1.169-2.192q0-.038-.006-.075l-.006-.056l-.035-.144a1.3 1.3 0 0 0-.358-.61a1.386 1.386 0 0 0-1.957 0a1.4 1.4 0 0 0 0 1.963c.191.191.418.311.668.371c.024.012.06.012.084.012q.019 0 .041.006q.023.005.042.006a4.24 4.24 0 0 1 2.231 1.186c.048.048.096.095.131.143a.323.323 0 0 0 .466 0a.35.35 0 0 0 .036-.455m-1.05 4.37l-.025.025c-.119.096-.31.096-.453-.036a.326.326 0 0 1 0-.467c.047-.036.094-.083.141-.13l.002-.002a4.27 4.27 0 0 0 1.187-2.28q.005-.024.006-.043c0-.024 0-.06.012-.084a1.386 1.386 0 0 1 2.326-.67a1.4 1.4 0 0 1 0 1.964c-.167.18-.382.299-.608.359l-.143.036l-.057.005q-.035.006-.075.007a4.2 4.2 0 0 0-2.183 1.173l-.095.096q-.009.01-.018.024t-.018.024m-4.392-1.053l.024.024l.024.018q.015.009.024.018l.096.096a4.25 4.25 0 0 1 1.169 2.19q0 .04.006.076q.005.03.006.057l.035.143c.06.228.18.443.358.611c.537.539 1.42.539 1.957 0a1.4 1.4 0 0 0 0-1.964a1.4 1.4 0 0 0-.668-.371c-.024-.012-.06-.012-.084-.012q-.018 0-.041-.006l-.042-.006a4.25 4.25 0 0 1-2.231-1.185a1.4 1.4 0 0 1-.131-.144a.323.323 0 0 0-.466 0a.325.325 0 0 0-.036.455m1.039-4.358l.024-.024a.32.32 0 0 1 .453.035a.326.326 0 0 1 0 .467c-.047.036-.094.083-.141.13l-.002.002a4.27 4.27 0 0 0-1.187 2.281l-.006.042c0 .024 0 .06-.012.084a1.386 1.386 0 0 1-2.326.67a1.4 1.4 0 0 1 0-1.963c.166-.18.381-.3.608-.36l.143-.035q.026 0 .056-.006q.037-.005.075-.006a4.2 4.2 0 0 0 2.183-1.174l.096-.095l.018-.025z\"\n fill=\"#0082EF\"\n />\n </svg>\n );\n});\n\nexport default Icon;\n"],"mappings":";;;;;AASA,MAAM,OAAiB,MAAM,EAAE,OAAO,OAAO,OAAO,GAAG,WAAW;CAChE,OACE,qBAAC,OAAD;EACE,QAAQ;EACR,OAAO;GAAE,MAAM;GAAQ,YAAY;GAAG,GAAG;EAAM;EAC/C,SAAQ;EACR,OAAO;EACP,OAAM;EACN,GAAI;EANN,UAAA,CAQE,oBAAC,SAAD,EAAA,UAAQ,MAAa,CAAA,GACrB,oBAAC,QAAD;GACE,GAAE;GACF,MAAK;EACN,CAAA,CACE;;AAET,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { TITLE } from "../style.mjs";
|
|
3
|
+
import { memo } from "react";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
// src/icons/WeCom/components/Mono.tsx
|
|
6
|
+
const Icon = memo(({ size = "1em", style, ...rest }) => {
|
|
7
|
+
return /* @__PURE__ */ jsxs("svg", {
|
|
8
|
+
fill: "currentColor",
|
|
9
|
+
height: size,
|
|
10
|
+
style: {
|
|
11
|
+
flex: "none",
|
|
12
|
+
lineHeight: 1,
|
|
13
|
+
...style
|
|
14
|
+
},
|
|
15
|
+
viewBox: "0 0 24 24",
|
|
16
|
+
width: size,
|
|
17
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
18
|
+
...rest,
|
|
19
|
+
children: [/* @__PURE__ */ jsx("title", { children: TITLE }), /* @__PURE__ */ jsx("path", { d: "m17.326 8.158l-.003-.007a6.6 6.6 0 0 0-1.178-1.674c-1.266-1.307-3.067-2.19-5.102-2.417a9.3 9.3 0 0 0-2.124 0h-.001c-2.061.228-3.882 1.107-5.14 2.405a6.7 6.7 0 0 0-1.194 1.682A5.7 5.7 0 0 0 2 10.657c0 1.106.332 2.218.988 3.201l.006.01c.391.594 1.092 1.39 1.637 1.83l.983.793l-.208.875l.527-.267l.708-.358l.761.225c.467.137.955.227 1.517.29h.005q.515.06 1.026.059c.355 0 .724-.02 1.095-.06a9 9 0 0 0 1.346-.258c.095.7.43 1.337.932 1.81c-.658.208-1.352.358-2.061.436c-.442.048-.883.072-1.312.072q-.627 0-1.253-.072a10.7 10.7 0 0 1-1.861-.36l-2.84 1.438s-.29.131-.44.131c-.418 0-.702-.285-.702-.704c0-.252.067-.598.128-.84l.394-1.653c-.728-.586-1.563-1.544-2.052-2.287A7.76 7.76 0 0 1 0 10.658a7.7 7.7 0 0 1 .787-3.39a8.7 8.7 0 0 1 1.551-2.19c1.61-1.665 3.878-2.73 6.359-3.006a11.3 11.3 0 0 1 2.565 0c2.47.275 4.712 1.353 6.323 3.017a8.6 8.6 0 0 1 1.539 2.192c.466.945.769 1.937.769 2.978a3.06 3.06 0 0 0-2-.005c-.001-.644-.189-1.329-.564-2.09zm4.125 6.977l-.024-.024l-.024-.018l-.024-.018l-.096-.095a4.24 4.24 0 0 1-1.169-2.192q0-.038-.006-.075l-.006-.056l-.035-.144a1.3 1.3 0 0 0-.358-.61a1.386 1.386 0 0 0-1.957 0a1.4 1.4 0 0 0 0 1.963c.191.191.418.311.668.371c.024.012.06.012.084.012q.019 0 .041.006q.023.005.042.006a4.24 4.24 0 0 1 2.231 1.186c.048.048.096.095.131.143a.323.323 0 0 0 .466 0a.35.35 0 0 0 .036-.455m-1.05 4.37l-.025.025c-.119.096-.31.096-.453-.036a.326.326 0 0 1 0-.467c.047-.036.094-.083.141-.13l.002-.002a4.27 4.27 0 0 0 1.187-2.28q.005-.024.006-.043c0-.024 0-.06.012-.084a1.386 1.386 0 0 1 2.326-.67a1.4 1.4 0 0 1 0 1.964c-.167.18-.382.299-.608.359l-.143.036l-.057.005q-.035.006-.075.007a4.2 4.2 0 0 0-2.183 1.173l-.095.096q-.009.01-.018.024t-.018.024m-4.392-1.053l.024.024l.024.018q.015.009.024.018l.096.096a4.25 4.25 0 0 1 1.169 2.19q0 .04.006.076q.005.03.006.057l.035.143c.06.228.18.443.358.611c.537.539 1.42.539 1.957 0a1.4 1.4 0 0 0 0-1.964a1.4 1.4 0 0 0-.668-.371c-.024-.012-.06-.012-.084-.012q-.018 0-.041-.006l-.042-.006a4.25 4.25 0 0 1-2.231-1.185a1.4 1.4 0 0 1-.131-.144a.323.323 0 0 0-.466 0a.325.325 0 0 0-.036.455m1.039-4.358l.024-.024a.32.32 0 0 1 .453.035a.326.326 0 0 1 0 .467c-.047.036-.094.083-.141.13l-.002.002a4.27 4.27 0 0 0-1.187 2.281l-.006.042c0 .024 0 .06-.012.084a1.386 1.386 0 0 1-2.326.67a1.4 1.4 0 0 1 0-1.963c.166-.18.381-.3.608-.36l.143-.035q.026 0 .056-.006q.037-.005.075-.006a4.2 4.2 0 0 0 2.183-1.174l.096-.095l.018-.025z" })]
|
|
20
|
+
});
|
|
21
|
+
});
|
|
22
|
+
export { Icon as default };
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=Mono.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Mono.mjs","names":[],"sources":["../../../../src/icons/WeCom/components/Mono.tsx"],"sourcesContent":["'use client';\n\nimport type { IconType } from '@lobehub/icons';\nimport { memo } from 'react';\n\nimport { TITLE } from '../style';\n\n// Glyph from TDesign Icons' `logo-wecom` (MIT); notice in THIRD_PARTY_NOTICES.md.\n\nconst Icon: IconType = memo(({ size = '1em', style, ...rest }) => {\n return (\n <svg\n fill=\"currentColor\"\n height={size}\n style={{ flex: 'none', lineHeight: 1, ...style }}\n viewBox=\"0 0 24 24\"\n width={size}\n xmlns=\"http://www.w3.org/2000/svg\"\n {...rest}\n >\n <title>{TITLE}</title>\n <path d=\"m17.326 8.158l-.003-.007a6.6 6.6 0 0 0-1.178-1.674c-1.266-1.307-3.067-2.19-5.102-2.417a9.3 9.3 0 0 0-2.124 0h-.001c-2.061.228-3.882 1.107-5.14 2.405a6.7 6.7 0 0 0-1.194 1.682A5.7 5.7 0 0 0 2 10.657c0 1.106.332 2.218.988 3.201l.006.01c.391.594 1.092 1.39 1.637 1.83l.983.793l-.208.875l.527-.267l.708-.358l.761.225c.467.137.955.227 1.517.29h.005q.515.06 1.026.059c.355 0 .724-.02 1.095-.06a9 9 0 0 0 1.346-.258c.095.7.43 1.337.932 1.81c-.658.208-1.352.358-2.061.436c-.442.048-.883.072-1.312.072q-.627 0-1.253-.072a10.7 10.7 0 0 1-1.861-.36l-2.84 1.438s-.29.131-.44.131c-.418 0-.702-.285-.702-.704c0-.252.067-.598.128-.84l.394-1.653c-.728-.586-1.563-1.544-2.052-2.287A7.76 7.76 0 0 1 0 10.658a7.7 7.7 0 0 1 .787-3.39a8.7 8.7 0 0 1 1.551-2.19c1.61-1.665 3.878-2.73 6.359-3.006a11.3 11.3 0 0 1 2.565 0c2.47.275 4.712 1.353 6.323 3.017a8.6 8.6 0 0 1 1.539 2.192c.466.945.769 1.937.769 2.978a3.06 3.06 0 0 0-2-.005c-.001-.644-.189-1.329-.564-2.09zm4.125 6.977l-.024-.024l-.024-.018l-.024-.018l-.096-.095a4.24 4.24 0 0 1-1.169-2.192q0-.038-.006-.075l-.006-.056l-.035-.144a1.3 1.3 0 0 0-.358-.61a1.386 1.386 0 0 0-1.957 0a1.4 1.4 0 0 0 0 1.963c.191.191.418.311.668.371c.024.012.06.012.084.012q.019 0 .041.006q.023.005.042.006a4.24 4.24 0 0 1 2.231 1.186c.048.048.096.095.131.143a.323.323 0 0 0 .466 0a.35.35 0 0 0 .036-.455m-1.05 4.37l-.025.025c-.119.096-.31.096-.453-.036a.326.326 0 0 1 0-.467c.047-.036.094-.083.141-.13l.002-.002a4.27 4.27 0 0 0 1.187-2.28q.005-.024.006-.043c0-.024 0-.06.012-.084a1.386 1.386 0 0 1 2.326-.67a1.4 1.4 0 0 1 0 1.964c-.167.18-.382.299-.608.359l-.143.036l-.057.005q-.035.006-.075.007a4.2 4.2 0 0 0-2.183 1.173l-.095.096q-.009.01-.018.024t-.018.024m-4.392-1.053l.024.024l.024.018q.015.009.024.018l.096.096a4.25 4.25 0 0 1 1.169 2.19q0 .04.006.076q.005.03.006.057l.035.143c.06.228.18.443.358.611c.537.539 1.42.539 1.957 0a1.4 1.4 0 0 0 0-1.964a1.4 1.4 0 0 0-.668-.371c-.024-.012-.06-.012-.084-.012q-.018 0-.041-.006l-.042-.006a4.25 4.25 0 0 1-2.231-1.185a1.4 1.4 0 0 1-.131-.144a.323.323 0 0 0-.466 0a.325.325 0 0 0-.036.455m1.039-4.358l.024-.024a.32.32 0 0 1 .453.035a.326.326 0 0 1 0 .467c-.047.036-.094.083-.141.13l-.002.002a4.27 4.27 0 0 0-1.187 2.281l-.006.042c0 .024 0 .06-.012.084a1.386 1.386 0 0 1-2.326.67a1.4 1.4 0 0 1 0-1.963c.166-.18.381-.3.608-.36l.143-.035q.026 0 .056-.006q.037-.005.075-.006a4.2 4.2 0 0 0 2.183-1.174l.096-.095l.018-.025z\" />\n </svg>\n );\n});\n\nexport default Icon;\n"],"mappings":";;;;;AASA,MAAM,OAAiB,MAAM,EAAE,OAAO,OAAO,OAAO,GAAG,WAAW;CAChE,OACE,qBAAC,OAAD;EACE,MAAK;EACL,QAAQ;EACR,OAAO;GAAE,MAAM;GAAQ,YAAY;GAAG,GAAG;EAAM;EAC/C,SAAQ;EACR,OAAO;EACP,OAAM;EACN,GAAI;EAPN,UAAA,CASE,oBAAC,SAAD,EAAA,UAAQ,MAAa,CAAA,GACrB,oBAAC,QAAD,EAAM,GAAE,y0EAA00E,CAAA,CAC/0E;;AAET,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import Avatar from "./components/Avatar.mjs";
|
|
2
|
+
import Icon from "./components/Color.mjs";
|
|
3
|
+
import Icon$1 from "./components/Mono.mjs";
|
|
4
|
+
export type CompoundedIcon = typeof Icon$1 & {
|
|
5
|
+
Avatar: typeof Avatar;
|
|
6
|
+
Color: typeof Icon;
|
|
7
|
+
colorPrimary: string;
|
|
8
|
+
title: string;
|
|
9
|
+
};
|
|
10
|
+
declare const Icons: CompoundedIcon;
|
|
11
|
+
export { Icons as default };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import Avatar from "./components/Avatar.mjs";
|
|
3
|
+
import Icon from "./components/Color.mjs";
|
|
4
|
+
import Icon$1 from "./components/Mono.mjs";
|
|
5
|
+
import { COLOR_PRIMARY, TITLE } from "./style.mjs";
|
|
6
|
+
// src/icons/WeCom/index.ts
|
|
7
|
+
const Icons = Icon$1;
|
|
8
|
+
Icons.Color = Icon;
|
|
9
|
+
Icons.Avatar = Avatar;
|
|
10
|
+
Icons.colorPrimary = COLOR_PRIMARY;
|
|
11
|
+
Icons.title = TITLE;
|
|
12
|
+
export { Icons as default };
|
|
13
|
+
|
|
14
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["Mono","Color"],"sources":["../../../src/icons/WeCom/index.ts"],"sourcesContent":["'use client';\n\nimport Avatar from './components/Avatar';\nimport Color from './components/Color';\nimport Mono from './components/Mono';\nimport { COLOR_PRIMARY, TITLE } from './style';\n\nexport type CompoundedIcon = typeof Mono & {\n Avatar: typeof Avatar;\n Color: typeof Color;\n colorPrimary: string;\n title: string;\n};\n\nconst Icons = Mono as CompoundedIcon;\nIcons.Color = Color;\nIcons.Avatar = Avatar;\nIcons.colorPrimary = COLOR_PRIMARY;\nIcons.title = TITLE;\nexport default Icons;\n"],"mappings":";;;;;;AAcA,MAAM,QAAQA;AACd,MAAM,QAAQC;AACd,MAAM,SAAS;AACf,MAAM,eAAe;AACrB,MAAM,QAAQ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"style.mjs","names":[],"sources":["../../../src/icons/WeCom/style.ts"],"sourcesContent":["export const TITLE = 'WeCom';\nexport const COLOR_PRIMARY = '#0082EF';\n"],"mappings":";AAAA,MAAa,QAAQ;AACrB,MAAa,gBAAgB"}
|
package/es/icons/index.d.mts
CHANGED
|
@@ -54,7 +54,8 @@ import Icons$15, { CompoundedIcon as CompoundedIcon$15 } from "./QQ/index.mjs";
|
|
|
54
54
|
import Icons$16, { CompoundedIcon as CompoundedIcon$16 } from "./Slack/index.mjs";
|
|
55
55
|
import Icons$17, { CompoundedIcon as CompoundedIcon$17 } from "./Telegram/index.mjs";
|
|
56
56
|
import Icons$18, { CompoundedIcon as CompoundedIcon$18 } from "./WeChat/index.mjs";
|
|
57
|
-
import Icons$19, { CompoundedIcon as CompoundedIcon$19 } from "./
|
|
58
|
-
import Icons$20, { CompoundedIcon as CompoundedIcon$20 } from "./
|
|
57
|
+
import Icons$19, { CompoundedIcon as CompoundedIcon$19 } from "./WeCom/index.mjs";
|
|
58
|
+
import Icons$20, { CompoundedIcon as CompoundedIcon$20 } from "./WhatsApp/index.mjs";
|
|
59
|
+
import Icons$21, { CompoundedIcon as CompoundedIcon$21 } from "./Zitadel/index.mjs";
|
|
59
60
|
import { Cloudflare, CloudflareProps, Github, GithubProps } from "@lobehub/icons";
|
|
60
|
-
export { AndroidIcon, AppleIcon, AppstoreIcon, Icons as Auth0, type CompoundedIcon as Auth0Props, Icons$1 as Authelia, type CompoundedIcon$1 as AutheliaProps, Icons$2 as Authentik, type CompoundedIcon$2 as AuthentikProps, BotPromptIcon, BrainOffIcon, Icons$3 as Casdoor, type CompoundedIcon$3 as CasdoorProps, ChromeIcon, Icons$4 as Clerk, type CompoundedIcon$4 as ClerkProps, Cloudflare, type CloudflareProps, CodepenIcon, CodesandboxIcon, CreateBotIcon, Icons$5 as DingTalk, type CompoundedIcon$5 as DingTalkProps, Icons$6 as Discord, DiscordIcon, type CompoundedIcon$6 as DiscordProps, FacebookIcon, FigmaIcon, FramerIcon, Github, GithubIcon, type GithubProps, GitlabIcon, GlobeOffIcon, Icons$7 as GoogleChat, type CompoundedIcon$7 as GoogleChatProps, GooglePlayIcon, GroupBotIcon, GroupBotSquareIcon, Icons$8 as IMessage, type CompoundedIcon$8 as IMessageProps, InstagramIcon, Icons$9 as Lark, type CompoundedIcon$9 as LarkProps, LeftClickIcon, LeftDoubleClickIcon, Icons$10 as Line, type CompoundedIcon$10 as LineProps, LinkedinIcon, Icons$11 as Logto, type CompoundedIcon$11 as LogtoProps, McpIcon, Icons$12 as MicrosoftEntra, type CompoundedIcon$12 as MicrosoftEntraProps, Icons$13 as MicrosoftTeams, type CompoundedIcon$13 as MicrosoftTeamsProps, Icons$14 as NextAuth, type CompoundedIcon$14 as NextAuthProps, NotionIcon, PocketIcon, ProviderIcon, Icons$15 as QQ, type CompoundedIcon$15 as QQProps, RailSymbolIcon, RedditIcon, RightClickIcon, RightDoubleClickIcon, ShapesUploadIcon, SkillsIcon, Icons$16 as Slack, SlackIcon, type CompoundedIcon$16 as SlackProps, Icons$17 as Telegram, type CompoundedIcon$17 as TelegramProps, ThinkIcon, TreeDownRightIcon, TreeUpDownRightIcon, Icons$18 as WeChat, type CompoundedIcon$18 as WeChatProps, Icons$19 as
|
|
61
|
+
export { AndroidIcon, AppleIcon, AppstoreIcon, Icons as Auth0, type CompoundedIcon as Auth0Props, Icons$1 as Authelia, type CompoundedIcon$1 as AutheliaProps, Icons$2 as Authentik, type CompoundedIcon$2 as AuthentikProps, BotPromptIcon, BrainOffIcon, Icons$3 as Casdoor, type CompoundedIcon$3 as CasdoorProps, ChromeIcon, Icons$4 as Clerk, type CompoundedIcon$4 as ClerkProps, Cloudflare, type CloudflareProps, CodepenIcon, CodesandboxIcon, CreateBotIcon, Icons$5 as DingTalk, type CompoundedIcon$5 as DingTalkProps, Icons$6 as Discord, DiscordIcon, type CompoundedIcon$6 as DiscordProps, FacebookIcon, FigmaIcon, FramerIcon, Github, GithubIcon, type GithubProps, GitlabIcon, GlobeOffIcon, Icons$7 as GoogleChat, type CompoundedIcon$7 as GoogleChatProps, GooglePlayIcon, GroupBotIcon, GroupBotSquareIcon, Icons$8 as IMessage, type CompoundedIcon$8 as IMessageProps, InstagramIcon, Icons$9 as Lark, type CompoundedIcon$9 as LarkProps, LeftClickIcon, LeftDoubleClickIcon, Icons$10 as Line, type CompoundedIcon$10 as LineProps, LinkedinIcon, Icons$11 as Logto, type CompoundedIcon$11 as LogtoProps, McpIcon, Icons$12 as MicrosoftEntra, type CompoundedIcon$12 as MicrosoftEntraProps, Icons$13 as MicrosoftTeams, type CompoundedIcon$13 as MicrosoftTeamsProps, Icons$14 as NextAuth, type CompoundedIcon$14 as NextAuthProps, NotionIcon, PocketIcon, ProviderIcon, Icons$15 as QQ, type CompoundedIcon$15 as QQProps, RailSymbolIcon, RedditIcon, RightClickIcon, RightDoubleClickIcon, ShapesUploadIcon, SkillsIcon, Icons$16 as Slack, SlackIcon, type CompoundedIcon$16 as SlackProps, Icons$17 as Telegram, type CompoundedIcon$17 as TelegramProps, ThinkIcon, TreeDownRightIcon, TreeUpDownRightIcon, Icons$18 as WeChat, type CompoundedIcon$18 as WeChatProps, Icons$19 as WeCom, type CompoundedIcon$19 as WeComProps, Icons$20 as WhatsApp, type CompoundedIcon$20 as WhatsAppProps, Icons$21 as Zitadel, type CompoundedIcon$21 as ZitadelProps };
|
package/es/icons/index.mjs
CHANGED
|
@@ -54,7 +54,8 @@ import Icons$15 from "./QQ/index.mjs";
|
|
|
54
54
|
import Icons$16 from "./Slack/index.mjs";
|
|
55
55
|
import Icons$17 from "./Telegram/index.mjs";
|
|
56
56
|
import Icons$18 from "./WeChat/index.mjs";
|
|
57
|
-
import Icons$19 from "./
|
|
58
|
-
import Icons$20 from "./
|
|
57
|
+
import Icons$19 from "./WeCom/index.mjs";
|
|
58
|
+
import Icons$20 from "./WhatsApp/index.mjs";
|
|
59
|
+
import Icons$21 from "./Zitadel/index.mjs";
|
|
59
60
|
import { Cloudflare, Github } from "@lobehub/icons";
|
|
60
|
-
export { AndroidIcon, AppleIcon, AppstoreIcon, Icons as Auth0, Icons$1 as Authelia, Icons$2 as Authentik, BotPromptIcon, BrainOffIcon, Icons$3 as Casdoor, ChromeIcon, Icons$4 as Clerk, Cloudflare, CodepenIcon, CodesandboxIcon, CreateBotIcon, Icons$5 as DingTalk, Icons$6 as Discord, DiscordIcon, FacebookIcon, FigmaIcon, FramerIcon, Github, GithubIcon, GitlabIcon, GlobeOffIcon, Icons$7 as GoogleChat, GooglePlayIcon, GroupBotIcon, GroupBotSquareIcon, Icons$8 as IMessage, InstagramIcon, Icons$9 as Lark, LeftClickIcon, LeftDoubleClickIcon, Icons$10 as Line, LinkedinIcon, Icons$11 as Logto, McpIcon, Icons$12 as MicrosoftEntra, Icons$13 as MicrosoftTeams, Icons$14 as NextAuth, NotionIcon, PocketIcon, ProviderIcon, Icons$15 as QQ, RailSymbolIcon, RedditIcon, RightClickIcon, RightDoubleClickIcon, ShapesUploadIcon, SkillsIcon, Icons$16 as Slack, SlackIcon, Icons$17 as Telegram, ThinkIcon, TreeDownRightIcon, TreeUpDownRightIcon, Icons$18 as WeChat, Icons$19 as
|
|
61
|
+
export { AndroidIcon, AppleIcon, AppstoreIcon, Icons as Auth0, Icons$1 as Authelia, Icons$2 as Authentik, BotPromptIcon, BrainOffIcon, Icons$3 as Casdoor, ChromeIcon, Icons$4 as Clerk, Cloudflare, CodepenIcon, CodesandboxIcon, CreateBotIcon, Icons$5 as DingTalk, Icons$6 as Discord, DiscordIcon, FacebookIcon, FigmaIcon, FramerIcon, Github, GithubIcon, GitlabIcon, GlobeOffIcon, Icons$7 as GoogleChat, GooglePlayIcon, GroupBotIcon, GroupBotSquareIcon, Icons$8 as IMessage, InstagramIcon, Icons$9 as Lark, LeftClickIcon, LeftDoubleClickIcon, Icons$10 as Line, LinkedinIcon, Icons$11 as Logto, McpIcon, Icons$12 as MicrosoftEntra, Icons$13 as MicrosoftTeams, Icons$14 as NextAuth, NotionIcon, PocketIcon, ProviderIcon, Icons$15 as QQ, RailSymbolIcon, RedditIcon, RightClickIcon, RightDoubleClickIcon, ShapesUploadIcon, SkillsIcon, Icons$16 as Slack, SlackIcon, Icons$17 as Telegram, ThinkIcon, TreeDownRightIcon, TreeUpDownRightIcon, Icons$18 as WeChat, Icons$19 as WeCom, Icons$20 as WhatsApp, Icons$21 as Zitadel };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobehub/ui",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.16.0",
|
|
4
4
|
"description": "Lobe UI is an open-source UI component library for building AIGC web apps",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"lobehub",
|
|
@@ -116,7 +116,8 @@
|
|
|
116
116
|
"module": "es/index.mjs",
|
|
117
117
|
"types": "es/index.d.mts",
|
|
118
118
|
"files": [
|
|
119
|
-
"es"
|
|
119
|
+
"es",
|
|
120
|
+
"THIRD_PARTY_NOTICES.md"
|
|
120
121
|
],
|
|
121
122
|
"scripts": {
|
|
122
123
|
"build": "tsdown && tsx ./scripts/buildThemeCss.ts && tsx ./scripts/publishStylexTokens.ts && tsx ./scripts/checkStylexBuild.ts && npm run build:packages",
|