@fuf-stack/pixels 0.29.1 → 0.29.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Avatar/index.d.cts +2 -2
- package/dist/Avatar/index.d.ts +2 -2
- package/dist/{Avatar-ClZTSXQq.d.cts → Avatar-CbdJWk_J.d.cts} +2 -2
- package/dist/{Avatar-ClZTSXQq.d.ts → Avatar-CbdJWk_J.d.ts} +2 -2
- package/dist/AvatarGroup/index.cjs +2 -2
- package/dist/AvatarGroup/index.d.cts +4 -4
- package/dist/AvatarGroup/index.d.ts +4 -4
- package/dist/AvatarGroup/index.js +1 -1
- package/dist/{AvatarGroup-BiYcc8Mb.d.ts → AvatarGroup-BTPgXs_F.d.ts} +2 -1
- package/dist/{AvatarGroup-DdTUum6Q.d.cts → AvatarGroup-DyX3Lj28.d.cts} +2 -1
- package/dist/Badge/index.d.cts +2 -2
- package/dist/Badge/index.d.ts +2 -2
- package/dist/{Badge-bLQrP59R.d.cts → Badge-yzXn5LtZ.d.cts} +2 -2
- package/dist/{Badge-bLQrP59R.d.ts → Badge-yzXn5LtZ.d.ts} +2 -2
- package/dist/Json/index.cjs +2 -2
- package/dist/Json/index.js +1 -1
- package/dist/{chunk-6XDNBFGH.js → chunk-337S7HUF.js} +1 -1
- package/dist/chunk-337S7HUF.js.map +1 -0
- package/dist/{chunk-BJWYPCOY.js → chunk-C2BIHVLT.js} +57 -57
- package/dist/{chunk-BJWYPCOY.js.map → chunk-C2BIHVLT.js.map} +1 -1
- package/dist/{chunk-XWBSCU2L.cjs → chunk-OP6ST4KB.cjs} +1 -1
- package/dist/chunk-OP6ST4KB.cjs.map +1 -0
- package/dist/{chunk-25HFBECU.cjs → chunk-XFUHF75Z.cjs} +57 -57
- package/dist/{chunk-25HFBECU.cjs.map → chunk-XFUHF75Z.cjs.map} +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -2
- package/package.json +27 -27
- package/dist/chunk-6XDNBFGH.js.map +0 -1
- package/dist/chunk-XWBSCU2L.cjs.map +0 -1
package/dist/Avatar/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as Avatar } from '../Avatar-
|
|
2
|
-
export { a as AvatarProps } from '../Avatar-
|
|
1
|
+
import { A as Avatar } from '../Avatar-CbdJWk_J.cjs';
|
|
2
|
+
export { a as AvatarProps } from '../Avatar-CbdJWk_J.cjs';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'tailwind-variants/dist/config.js';
|
|
5
5
|
import 'tailwind-variants';
|
package/dist/Avatar/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as Avatar } from '../Avatar-
|
|
2
|
-
export { a as AvatarProps } from '../Avatar-
|
|
1
|
+
import { A as Avatar } from '../Avatar-CbdJWk_J.js';
|
|
2
|
+
export { a as AvatarProps } from '../Avatar-CbdJWk_J.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'tailwind-variants/dist/config.js';
|
|
5
5
|
import 'tailwind-variants';
|
|
@@ -2,7 +2,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import * as tailwind_variants_dist_config_js from 'tailwind-variants/dist/config.js';
|
|
3
3
|
import * as tailwind_variants from 'tailwind-variants';
|
|
4
4
|
import { TVProps, TVClassName } from '@fuf-stack/pixel-utils';
|
|
5
|
-
import
|
|
5
|
+
import react__default from 'react';
|
|
6
6
|
|
|
7
7
|
declare const avatarVariants: tailwind_variants.TVReturnType<{
|
|
8
8
|
[key: string]: {
|
|
@@ -81,7 +81,7 @@ interface AvatarProps extends VariantProps {
|
|
|
81
81
|
/** CSS class name */
|
|
82
82
|
className?: ClassName;
|
|
83
83
|
disabled?: boolean;
|
|
84
|
-
fallback?:
|
|
84
|
+
fallback?: react__default.ReactNode;
|
|
85
85
|
size?: 'sm' | 'md' | 'lg';
|
|
86
86
|
src: string;
|
|
87
87
|
}
|
|
@@ -2,7 +2,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import * as tailwind_variants_dist_config_js from 'tailwind-variants/dist/config.js';
|
|
3
3
|
import * as tailwind_variants from 'tailwind-variants';
|
|
4
4
|
import { TVProps, TVClassName } from '@fuf-stack/pixel-utils';
|
|
5
|
-
import
|
|
5
|
+
import react__default from 'react';
|
|
6
6
|
|
|
7
7
|
declare const avatarVariants: tailwind_variants.TVReturnType<{
|
|
8
8
|
[key: string]: {
|
|
@@ -81,7 +81,7 @@ interface AvatarProps extends VariantProps {
|
|
|
81
81
|
/** CSS class name */
|
|
82
82
|
className?: ClassName;
|
|
83
83
|
disabled?: boolean;
|
|
84
|
-
fallback?:
|
|
84
|
+
fallback?: react__default.ReactNode;
|
|
85
85
|
size?: 'sm' | 'md' | 'lg';
|
|
86
86
|
src: string;
|
|
87
87
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkOP6ST4KBcjs = require('../chunk-OP6ST4KB.cjs');
|
|
5
5
|
require('../chunk-HVLEV6BG.cjs');
|
|
6
6
|
require('../chunk-DZUJEN5N.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.AvatarGroup =
|
|
10
|
+
exports.AvatarGroup = _chunkOP6ST4KBcjs.AvatarGroup_default; exports.default = _chunkOP6ST4KBcjs.AvatarGroup_default2;
|
|
11
11
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { A as AvatarGroup } from '../AvatarGroup-
|
|
2
|
-
export { a as AvatarGroupProps } from '../AvatarGroup-
|
|
1
|
+
import { A as AvatarGroup } from '../AvatarGroup-DyX3Lj28.cjs';
|
|
2
|
+
export { a as AvatarGroupProps } from '../AvatarGroup-DyX3Lj28.cjs';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
|
-
import '
|
|
4
|
+
import 'react';
|
|
5
|
+
import '../Avatar-CbdJWk_J.cjs';
|
|
5
6
|
import 'tailwind-variants/dist/config.js';
|
|
6
7
|
import 'tailwind-variants';
|
|
7
8
|
import '@fuf-stack/pixel-utils';
|
|
8
|
-
import 'react';
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { A as AvatarGroup } from '../AvatarGroup-
|
|
2
|
-
export { a as AvatarGroupProps } from '../AvatarGroup-
|
|
1
|
+
import { A as AvatarGroup } from '../AvatarGroup-BTPgXs_F.js';
|
|
2
|
+
export { a as AvatarGroupProps } from '../AvatarGroup-BTPgXs_F.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
|
-
import '
|
|
4
|
+
import 'react';
|
|
5
|
+
import '../Avatar-CbdJWk_J.js';
|
|
5
6
|
import 'tailwind-variants/dist/config.js';
|
|
6
7
|
import 'tailwind-variants';
|
|
7
8
|
import '@fuf-stack/pixel-utils';
|
|
8
|
-
import 'react';
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
package/dist/Badge/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as Avatar } from '../Badge-
|
|
2
|
-
export { B as BadgeProps } from '../Badge-
|
|
1
|
+
import { A as Avatar } from '../Badge-yzXn5LtZ.cjs';
|
|
2
|
+
export { B as BadgeProps } from '../Badge-yzXn5LtZ.cjs';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
5
5
|
import 'tailwind-variants/dist/config.js';
|
package/dist/Badge/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as Avatar } from '../Badge-
|
|
2
|
-
export { B as BadgeProps } from '../Badge-
|
|
1
|
+
import { A as Avatar } from '../Badge-yzXn5LtZ.js';
|
|
2
|
+
export { B as BadgeProps } from '../Badge-yzXn5LtZ.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
5
5
|
import 'tailwind-variants/dist/config.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import * as
|
|
2
|
+
import * as react from 'react';
|
|
3
3
|
import * as tailwind_variants_dist_config_js from 'tailwind-variants/dist/config.js';
|
|
4
4
|
import * as tailwind_variants from 'tailwind-variants';
|
|
5
5
|
import { TVProps, TVClassName } from '@fuf-stack/pixel-utils';
|
|
@@ -73,6 +73,6 @@ interface BadgeProps extends VariantProps {
|
|
|
73
73
|
/**
|
|
74
74
|
* Badge component based on [NextUI Badge](https://nextui.org/docs/components/badge)
|
|
75
75
|
*/
|
|
76
|
-
declare const Avatar: ({ children, className: _className, content, color, isOneChar, noOutline, placement, size, }: BadgeProps) => string | number | boolean | Iterable<
|
|
76
|
+
declare const Avatar: ({ children, className: _className, content, color, isOneChar, noOutline, placement, size, }: BadgeProps) => string | number | bigint | boolean | Iterable<react.ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<react.ReactNode> | null | undefined> | react_jsx_runtime.JSX.Element | null | undefined;
|
|
77
77
|
|
|
78
78
|
export { Avatar as A, type BadgeProps as B };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import * as
|
|
2
|
+
import * as react from 'react';
|
|
3
3
|
import * as tailwind_variants_dist_config_js from 'tailwind-variants/dist/config.js';
|
|
4
4
|
import * as tailwind_variants from 'tailwind-variants';
|
|
5
5
|
import { TVProps, TVClassName } from '@fuf-stack/pixel-utils';
|
|
@@ -73,6 +73,6 @@ interface BadgeProps extends VariantProps {
|
|
|
73
73
|
/**
|
|
74
74
|
* Badge component based on [NextUI Badge](https://nextui.org/docs/components/badge)
|
|
75
75
|
*/
|
|
76
|
-
declare const Avatar: ({ children, className: _className, content, color, isOneChar, noOutline, placement, size, }: BadgeProps) => string | number | boolean | Iterable<
|
|
76
|
+
declare const Avatar: ({ children, className: _className, content, color, isOneChar, noOutline, placement, size, }: BadgeProps) => string | number | bigint | boolean | Iterable<react.ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<react.ReactNode> | null | undefined> | react_jsx_runtime.JSX.Element | null | undefined;
|
|
77
77
|
|
|
78
78
|
export { Avatar as A, type BadgeProps as B };
|
package/dist/Json/index.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkXFUHF75Zcjs = require('../chunk-XFUHF75Z.cjs');
|
|
5
5
|
require('../chunk-7TIFKRWY.cjs');
|
|
6
6
|
require('../chunk-DZUJEN5N.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.Json =
|
|
10
|
+
exports.Json = _chunkXFUHF75Zcjs.Json_default; exports.default = _chunkXFUHF75Zcjs.Json_default2;
|
|
11
11
|
//# sourceMappingURL=index.cjs.map
|
package/dist/Json/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/AvatarGroup/AvatarGroup.tsx","../src/AvatarGroup/index.ts"],"sourcesContent":["import type { JSX } from 'react';\nimport type { AvatarProps } from '../Avatar/Avatar';\n\nimport { AvatarGroup as NextAvatarGroup } from '@nextui-org/avatar';\n\nimport { Avatar } from '../Avatar';\n\nexport interface AvatarGroupProps {\n /* Display a border ring around the Avatar */\n bordered?: boolean;\n /* Roundness of the border around the Avatar */\n rounded?: 'none' | 'sm' | 'md' | 'lg' | 'full';\n /** CSS class name */\n className?: string;\n /* Disables the Avatar */\n disabled?: boolean;\n /* Size of the Avatar */\n size?: 'sm' | 'md' | 'lg';\n /* Maximum number of avatars to display before +X is displayed */\n max?: number;\n /* Array of avatarProps */\n avatars?: (Omit<AvatarProps, 'size' | 'rounded' | 'bordered'> & {\n /* Custom wrapperProps for each avatarWrapper */\n wrapperProps?: Record<string, unknown>;\n })[];\n /* Custom wrapper for each avatar */\n avatarWrapper?: JSX.ElementType;\n}\n\n/**\n * AvatarGroup component based on [NextUI AvatarGroup](https://nextui.org/docs/components/avatar)\n */\nconst AvatarGroup = ({\n bordered = false,\n rounded = 'full',\n className = '',\n disabled = false,\n size = 'md',\n avatars = [],\n max = 3,\n avatarWrapper: AvatarWrapper = undefined,\n}: AvatarGroupProps) => {\n return (\n <NextAvatarGroup\n max={max}\n className={className}\n isBordered={bordered}\n isDisabled={disabled}\n radius={rounded}\n size={size}\n >\n {avatars?.map((avatar) => {\n return AvatarWrapper ? (\n // eslint-disable-next-line react/jsx-props-no-spreading\n <AvatarWrapper {...avatar.wrapperProps}>\n <Avatar\n key={avatar.src}\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...avatar}\n disabled={disabled || avatar?.disabled}\n rounded={rounded}\n bordered={bordered}\n size={size}\n />\n </AvatarWrapper>\n ) : (\n <Avatar\n key={avatar.src}\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...avatar}\n disabled={disabled || avatar?.disabled}\n rounded={rounded}\n bordered={bordered}\n size={size}\n />\n );\n })}\n </NextAvatarGroup>\n );\n};\n\nexport default AvatarGroup;\n","import AvatarGroup from './AvatarGroup';\n\nexport type { AvatarGroupProps } from './AvatarGroup';\n\nexport { AvatarGroup };\n\nexport default AvatarGroup;\n"],"mappings":";;;;;AAGA,SAAS,eAAe,uBAAuB;AAoDnC;AAvBZ,IAAM,cAAc,CAAC;AAAA,EACnB,WAAW;AAAA,EACX,UAAU;AAAA,EACV,YAAY;AAAA,EACZ,WAAW;AAAA,EACX,OAAO;AAAA,EACP,UAAU,CAAC;AAAA,EACX,MAAM;AAAA,EACN,eAAe,gBAAgB;AACjC,MAAwB;AACtB,SACE;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA;AAAA,MACA,YAAY;AAAA,MACZ,YAAY;AAAA,MACZ,QAAQ;AAAA,MACR;AAAA,MAEC,mBAAS,IAAI,CAAC,WAAW;AACxB,eAAO;AAAA;AAAA,UAEL,oBAAC,iBAAe,GAAG,OAAO,cACxB;AAAA,YAAC;AAAA;AAAA,cAGE,GAAG;AAAA,cACJ,UAAU,YAAY,QAAQ;AAAA,cAC9B;AAAA,cACA;AAAA,cACA;AAAA;AAAA,YANK,OAAO;AAAA,UAOd,GACF;AAAA,YAEA;AAAA,UAAC;AAAA;AAAA,YAGE,GAAG;AAAA,YACJ,UAAU,YAAY,QAAQ;AAAA,YAC9B;AAAA,YACA;AAAA,YACA;AAAA;AAAA,UANK,OAAO;AAAA,QAOd;AAAA,MAEJ,CAAC;AAAA;AAAA,EACH;AAEJ;AAEA,IAAO,sBAAQ;;;AC3Ef,IAAOA,uBAAQ;","names":["AvatarGroup_default"]}
|