@fuf-stack/pixels 0.5.9 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Avatar/index.cjs +9 -0
- package/dist/Avatar/index.cjs.map +1 -0
- package/dist/Avatar/index.d.cts +8 -0
- package/dist/Avatar/index.d.ts +8 -0
- package/dist/Avatar/index.js +9 -0
- package/dist/Avatar/index.js.map +1 -0
- package/dist/Avatar-Bl6oBjgb.d.cts +19 -0
- package/dist/Avatar-Bl6oBjgb.d.ts +19 -0
- package/dist/AvatarGroup/index.cjs +10 -0
- package/dist/AvatarGroup/index.cjs.map +1 -0
- package/dist/AvatarGroup/index.d.cts +9 -0
- package/dist/AvatarGroup/index.d.ts +9 -0
- package/dist/AvatarGroup/index.js +10 -0
- package/dist/AvatarGroup/index.js.map +1 -0
- package/dist/AvatarGroup-BhgTIcSs.d.cts +22 -0
- package/dist/AvatarGroup-tWe-Vgrz.d.ts +22 -0
- package/dist/chunk-EJSTUBPU.cjs +65 -0
- package/dist/chunk-EJSTUBPU.cjs.map +1 -0
- package/dist/chunk-LAGUJC5D.js +65 -0
- package/dist/chunk-LAGUJC5D.js.map +1 -0
- package/dist/chunk-SFGC6YVH.js +36 -0
- package/dist/chunk-SFGC6YVH.js.map +1 -0
- package/dist/chunk-XGHRKDIM.cjs +36 -0
- package/dist/chunk-XGHRKDIM.cjs.map +1 -0
- package/dist/index.cjs +14 -6
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +15 -7
- package/package.json +17 -6
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunkXGHRKDIMcjs = require('../chunk-XGHRKDIM.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
exports.Avatar = _chunkXGHRKDIMcjs.Avatar_default; exports.default = _chunkXGHRKDIMcjs.Avatar_default2;
|
|
9
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
|
|
4
|
+
interface AvatarProps {
|
|
5
|
+
bordered?: boolean;
|
|
6
|
+
rounded?: 'none' | 'sm' | 'md' | 'lg' | 'full';
|
|
7
|
+
/** CSS class name */
|
|
8
|
+
className?: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
fallback?: React.ReactNode;
|
|
11
|
+
size?: 'sm' | 'md' | 'lg';
|
|
12
|
+
src: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Avatar component based on [NextUI Avatar](https://nextui.org/docs/components/avatar)
|
|
16
|
+
*/
|
|
17
|
+
declare const Avatar: ({ bordered, rounded, className, disabled, fallback, size, src, }: AvatarProps) => react_jsx_runtime.JSX.Element;
|
|
18
|
+
|
|
19
|
+
export { Avatar as A, type AvatarProps as a };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
|
|
4
|
+
interface AvatarProps {
|
|
5
|
+
bordered?: boolean;
|
|
6
|
+
rounded?: 'none' | 'sm' | 'md' | 'lg' | 'full';
|
|
7
|
+
/** CSS class name */
|
|
8
|
+
className?: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
fallback?: React.ReactNode;
|
|
11
|
+
size?: 'sm' | 'md' | 'lg';
|
|
12
|
+
src: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Avatar component based on [NextUI Avatar](https://nextui.org/docs/components/avatar)
|
|
16
|
+
*/
|
|
17
|
+
declare const Avatar: ({ bordered, rounded, className, disabled, fallback, size, src, }: AvatarProps) => react_jsx_runtime.JSX.Element;
|
|
18
|
+
|
|
19
|
+
export { Avatar as A, type AvatarProps as a };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunkEJSTUBPUcjs = require('../chunk-EJSTUBPU.cjs');
|
|
5
|
+
require('../chunk-XGHRKDIM.cjs');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
exports.AvatarGroup = _chunkEJSTUBPUcjs.AvatarGroup_default; exports.default = _chunkEJSTUBPUcjs.AvatarGroup_default2;
|
|
10
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { A as AvatarGroup } from '../AvatarGroup-BhgTIcSs.cjs';
|
|
2
|
+
export { a as AvatarGroupProps } from '../AvatarGroup-BhgTIcSs.cjs';
|
|
3
|
+
import 'react/jsx-runtime';
|
|
4
|
+
import '../Avatar-Bl6oBjgb.cjs';
|
|
5
|
+
import 'react';
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
export { AvatarGroup, AvatarGroup as default };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { A as AvatarGroup } from '../AvatarGroup-tWe-Vgrz.js';
|
|
2
|
+
export { a as AvatarGroupProps } from '../AvatarGroup-tWe-Vgrz.js';
|
|
3
|
+
import 'react/jsx-runtime';
|
|
4
|
+
import '../Avatar-Bl6oBjgb.js';
|
|
5
|
+
import 'react';
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
export { AvatarGroup, AvatarGroup as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { a as AvatarProps } from './Avatar-Bl6oBjgb.cjs';
|
|
3
|
+
|
|
4
|
+
interface AvatarGroupProps {
|
|
5
|
+
bordered?: boolean;
|
|
6
|
+
rounded?: 'none' | 'sm' | 'md' | 'lg' | 'full';
|
|
7
|
+
/** CSS class name */
|
|
8
|
+
className?: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
size?: 'sm' | 'md' | 'lg';
|
|
11
|
+
max?: number;
|
|
12
|
+
avatars?: (Omit<AvatarProps, 'size' | 'rounded' | 'bordered'> & {
|
|
13
|
+
wrapperProps?: Record<string, unknown>;
|
|
14
|
+
})[];
|
|
15
|
+
avatarWrapper?: JSX.ElementType;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* AvatarGroup component based on [NextUI AvatarGroup](https://nextui.org/docs/components/avatar)
|
|
19
|
+
*/
|
|
20
|
+
declare const AvatarGroup: ({ bordered, rounded, className, disabled, size, avatars, max, avatarWrapper: AvatarWrapper, }: AvatarGroupProps) => react_jsx_runtime.JSX.Element;
|
|
21
|
+
|
|
22
|
+
export { AvatarGroup as A, type AvatarGroupProps as a };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { a as AvatarProps } from './Avatar-Bl6oBjgb.js';
|
|
3
|
+
|
|
4
|
+
interface AvatarGroupProps {
|
|
5
|
+
bordered?: boolean;
|
|
6
|
+
rounded?: 'none' | 'sm' | 'md' | 'lg' | 'full';
|
|
7
|
+
/** CSS class name */
|
|
8
|
+
className?: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
size?: 'sm' | 'md' | 'lg';
|
|
11
|
+
max?: number;
|
|
12
|
+
avatars?: (Omit<AvatarProps, 'size' | 'rounded' | 'bordered'> & {
|
|
13
|
+
wrapperProps?: Record<string, unknown>;
|
|
14
|
+
})[];
|
|
15
|
+
avatarWrapper?: JSX.ElementType;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* AvatarGroup component based on [NextUI AvatarGroup](https://nextui.org/docs/components/avatar)
|
|
19
|
+
*/
|
|
20
|
+
declare const AvatarGroup: ({ bordered, rounded, className, disabled, size, avatars, max, avatarWrapper: AvatarWrapper, }: AvatarGroupProps) => react_jsx_runtime.JSX.Element;
|
|
21
|
+
|
|
22
|
+
export { AvatarGroup as A, type AvatarGroupProps as a };
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
|
+
|
|
3
|
+
var _chunkXGHRKDIMcjs = require('./chunk-XGHRKDIM.cjs');
|
|
4
|
+
|
|
5
|
+
// src/AvatarGroup/AvatarGroup.tsx
|
|
6
|
+
var _avatar = require('@nextui-org/avatar');
|
|
7
|
+
var _jsxruntime = require('react/jsx-runtime');
|
|
8
|
+
var AvatarGroup = ({
|
|
9
|
+
bordered = false,
|
|
10
|
+
rounded = "full",
|
|
11
|
+
className = "",
|
|
12
|
+
disabled = false,
|
|
13
|
+
size = "md",
|
|
14
|
+
avatars = [],
|
|
15
|
+
max = 3,
|
|
16
|
+
avatarWrapper: AvatarWrapper = void 0
|
|
17
|
+
}) => {
|
|
18
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
19
|
+
_avatar.AvatarGroup,
|
|
20
|
+
{
|
|
21
|
+
max,
|
|
22
|
+
className,
|
|
23
|
+
isBordered: bordered,
|
|
24
|
+
isDisabled: disabled,
|
|
25
|
+
radius: rounded,
|
|
26
|
+
size,
|
|
27
|
+
children: _optionalChain([avatars, 'optionalAccess', _ => _.map, 'call', _2 => _2((avatar) => {
|
|
28
|
+
return AvatarWrapper ? (
|
|
29
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
30
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarWrapper, { ...avatar.wrapperProps, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31
|
+
_chunkXGHRKDIMcjs.Avatar_default2,
|
|
32
|
+
{
|
|
33
|
+
...avatar,
|
|
34
|
+
disabled: disabled || _optionalChain([avatar, 'optionalAccess', _3 => _3.disabled]),
|
|
35
|
+
rounded,
|
|
36
|
+
bordered,
|
|
37
|
+
size
|
|
38
|
+
},
|
|
39
|
+
avatar.src
|
|
40
|
+
) })
|
|
41
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
42
|
+
_chunkXGHRKDIMcjs.Avatar_default2,
|
|
43
|
+
{
|
|
44
|
+
...avatar,
|
|
45
|
+
disabled: disabled || _optionalChain([avatar, 'optionalAccess', _4 => _4.disabled]),
|
|
46
|
+
rounded,
|
|
47
|
+
bordered,
|
|
48
|
+
size
|
|
49
|
+
},
|
|
50
|
+
avatar.src
|
|
51
|
+
);
|
|
52
|
+
})])
|
|
53
|
+
}
|
|
54
|
+
);
|
|
55
|
+
};
|
|
56
|
+
var AvatarGroup_default = AvatarGroup;
|
|
57
|
+
|
|
58
|
+
// src/AvatarGroup/index.ts
|
|
59
|
+
var AvatarGroup_default2 = AvatarGroup_default;
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
exports.AvatarGroup_default = AvatarGroup_default; exports.AvatarGroup_default2 = AvatarGroup_default2;
|
|
65
|
+
//# sourceMappingURL=chunk-EJSTUBPU.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/AvatarGroup/AvatarGroup.tsx","../src/AvatarGroup/index.ts"],"names":["AvatarGroup_default"],"mappings":";;;;;AAEA,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;;;AC1Ef,IAAOA,uBAAQ","sourcesContent":["import 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"]}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Avatar_default2 as Avatar_default
|
|
3
|
+
} from "./chunk-SFGC6YVH.js";
|
|
4
|
+
|
|
5
|
+
// src/AvatarGroup/AvatarGroup.tsx
|
|
6
|
+
import { AvatarGroup as NextAvatarGroup } from "@nextui-org/avatar";
|
|
7
|
+
import { jsx } from "react/jsx-runtime";
|
|
8
|
+
var AvatarGroup = ({
|
|
9
|
+
bordered = false,
|
|
10
|
+
rounded = "full",
|
|
11
|
+
className = "",
|
|
12
|
+
disabled = false,
|
|
13
|
+
size = "md",
|
|
14
|
+
avatars = [],
|
|
15
|
+
max = 3,
|
|
16
|
+
avatarWrapper: AvatarWrapper = void 0
|
|
17
|
+
}) => {
|
|
18
|
+
return /* @__PURE__ */ jsx(
|
|
19
|
+
NextAvatarGroup,
|
|
20
|
+
{
|
|
21
|
+
max,
|
|
22
|
+
className,
|
|
23
|
+
isBordered: bordered,
|
|
24
|
+
isDisabled: disabled,
|
|
25
|
+
radius: rounded,
|
|
26
|
+
size,
|
|
27
|
+
children: avatars?.map((avatar) => {
|
|
28
|
+
return AvatarWrapper ? (
|
|
29
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
30
|
+
/* @__PURE__ */ jsx(AvatarWrapper, { ...avatar.wrapperProps, children: /* @__PURE__ */ jsx(
|
|
31
|
+
Avatar_default,
|
|
32
|
+
{
|
|
33
|
+
...avatar,
|
|
34
|
+
disabled: disabled || avatar?.disabled,
|
|
35
|
+
rounded,
|
|
36
|
+
bordered,
|
|
37
|
+
size
|
|
38
|
+
},
|
|
39
|
+
avatar.src
|
|
40
|
+
) })
|
|
41
|
+
) : /* @__PURE__ */ jsx(
|
|
42
|
+
Avatar_default,
|
|
43
|
+
{
|
|
44
|
+
...avatar,
|
|
45
|
+
disabled: disabled || avatar?.disabled,
|
|
46
|
+
rounded,
|
|
47
|
+
bordered,
|
|
48
|
+
size
|
|
49
|
+
},
|
|
50
|
+
avatar.src
|
|
51
|
+
);
|
|
52
|
+
})
|
|
53
|
+
}
|
|
54
|
+
);
|
|
55
|
+
};
|
|
56
|
+
var AvatarGroup_default = AvatarGroup;
|
|
57
|
+
|
|
58
|
+
// src/AvatarGroup/index.ts
|
|
59
|
+
var AvatarGroup_default2 = AvatarGroup_default;
|
|
60
|
+
|
|
61
|
+
export {
|
|
62
|
+
AvatarGroup_default,
|
|
63
|
+
AvatarGroup_default2
|
|
64
|
+
};
|
|
65
|
+
//# sourceMappingURL=chunk-LAGUJC5D.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/AvatarGroup/AvatarGroup.tsx","../src/AvatarGroup/index.ts"],"sourcesContent":["import 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":";;;;;AAEA,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;;;AC1Ef,IAAOA,uBAAQ;","names":["AvatarGroup_default"]}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// src/Avatar/Avatar.tsx
|
|
2
|
+
import { Avatar as NextAvatar } from "@nextui-org/avatar";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
var Avatar = ({
|
|
5
|
+
bordered = false,
|
|
6
|
+
rounded = "full",
|
|
7
|
+
className = "",
|
|
8
|
+
disabled = false,
|
|
9
|
+
fallback = void 0,
|
|
10
|
+
size = "md",
|
|
11
|
+
src
|
|
12
|
+
}) => {
|
|
13
|
+
return /* @__PURE__ */ jsx(
|
|
14
|
+
NextAvatar,
|
|
15
|
+
{
|
|
16
|
+
className,
|
|
17
|
+
fallback,
|
|
18
|
+
isBordered: bordered,
|
|
19
|
+
isDisabled: disabled,
|
|
20
|
+
radius: rounded,
|
|
21
|
+
showFallback: !!fallback,
|
|
22
|
+
size,
|
|
23
|
+
src
|
|
24
|
+
}
|
|
25
|
+
);
|
|
26
|
+
};
|
|
27
|
+
var Avatar_default = Avatar;
|
|
28
|
+
|
|
29
|
+
// src/Avatar/index.ts
|
|
30
|
+
var Avatar_default2 = Avatar_default;
|
|
31
|
+
|
|
32
|
+
export {
|
|
33
|
+
Avatar_default,
|
|
34
|
+
Avatar_default2
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=chunk-SFGC6YVH.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/Avatar/Avatar.tsx","../src/Avatar/index.ts"],"sourcesContent":["import type React from 'react';\n\nimport { Avatar as NextAvatar } from '@nextui-org/avatar';\n\nexport interface AvatarProps {\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 /* Fallback content to display if the image fails to load or is not provided */\n fallback?: React.ReactNode;\n /* Size of the Avatar */\n size?: 'sm' | 'md' | 'lg';\n /* Image source */\n src: string;\n}\n\n/**\n * Avatar component based on [NextUI Avatar](https://nextui.org/docs/components/avatar)\n */\nconst Avatar = ({\n bordered = false,\n rounded = 'full',\n className = '',\n disabled = false,\n fallback = undefined,\n size = 'md',\n src,\n}: AvatarProps) => {\n return (\n <NextAvatar\n className={className}\n fallback={fallback}\n isBordered={bordered}\n isDisabled={disabled}\n radius={rounded}\n showFallback={!!fallback}\n size={size}\n src={src}\n />\n );\n};\n\nexport default Avatar;\n","import Avatar from './Avatar';\n\nexport type { AvatarProps } from './Avatar';\n\nexport { Avatar };\n\nexport default Avatar;\n"],"mappings":";AAEA,SAAS,UAAU,kBAAkB;AAgCjC;AAVJ,IAAM,SAAS,CAAC;AAAA,EACd,WAAW;AAAA,EACX,UAAU;AAAA,EACV,YAAY;AAAA,EACZ,WAAW;AAAA,EACX,WAAW;AAAA,EACX,OAAO;AAAA,EACP;AACF,MAAmB;AACjB,SACE;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA;AAAA,MACA,YAAY;AAAA,MACZ,YAAY;AAAA,MACZ,QAAQ;AAAA,MACR,cAAc,CAAC,CAAC;AAAA,MAChB;AAAA,MACA;AAAA;AAAA,EACF;AAEJ;AAEA,IAAO,iBAAQ;;;ACzCf,IAAOA,kBAAQ;","names":["Avatar_default"]}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/Avatar/Avatar.tsx
|
|
2
|
+
var _avatar = require('@nextui-org/avatar');
|
|
3
|
+
var _jsxruntime = require('react/jsx-runtime');
|
|
4
|
+
var Avatar = ({
|
|
5
|
+
bordered = false,
|
|
6
|
+
rounded = "full",
|
|
7
|
+
className = "",
|
|
8
|
+
disabled = false,
|
|
9
|
+
fallback = void 0,
|
|
10
|
+
size = "md",
|
|
11
|
+
src
|
|
12
|
+
}) => {
|
|
13
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14
|
+
_avatar.Avatar,
|
|
15
|
+
{
|
|
16
|
+
className,
|
|
17
|
+
fallback,
|
|
18
|
+
isBordered: bordered,
|
|
19
|
+
isDisabled: disabled,
|
|
20
|
+
radius: rounded,
|
|
21
|
+
showFallback: !!fallback,
|
|
22
|
+
size,
|
|
23
|
+
src
|
|
24
|
+
}
|
|
25
|
+
);
|
|
26
|
+
};
|
|
27
|
+
var Avatar_default = Avatar;
|
|
28
|
+
|
|
29
|
+
// src/Avatar/index.ts
|
|
30
|
+
var Avatar_default2 = Avatar_default;
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
exports.Avatar_default = Avatar_default; exports.Avatar_default2 = Avatar_default2;
|
|
36
|
+
//# sourceMappingURL=chunk-XGHRKDIM.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/Avatar/Avatar.tsx","../src/Avatar/index.ts"],"names":["Avatar_default"],"mappings":";AAEA,SAAS,UAAU,kBAAkB;AAgCjC;AAVJ,IAAM,SAAS,CAAC;AAAA,EACd,WAAW;AAAA,EACX,UAAU;AAAA,EACV,YAAY;AAAA,EACZ,WAAW;AAAA,EACX,WAAW;AAAA,EACX,OAAO;AAAA,EACP;AACF,MAAmB;AACjB,SACE;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA;AAAA,MACA,YAAY;AAAA,MACZ,YAAY;AAAA,MACZ,QAAQ;AAAA,MACR,cAAc,CAAC,CAAC;AAAA,MAChB;AAAA,MACA;AAAA;AAAA,EACF;AAEJ;AAEA,IAAO,iBAAQ;;;ACzCf,IAAOA,kBAAQ","sourcesContent":["import type React from 'react';\n\nimport { Avatar as NextAvatar } from '@nextui-org/avatar';\n\nexport interface AvatarProps {\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 /* Fallback content to display if the image fails to load or is not provided */\n fallback?: React.ReactNode;\n /* Size of the Avatar */\n size?: 'sm' | 'md' | 'lg';\n /* Image source */\n src: string;\n}\n\n/**\n * Avatar component based on [NextUI Avatar](https://nextui.org/docs/components/avatar)\n */\nconst Avatar = ({\n bordered = false,\n rounded = 'full',\n className = '',\n disabled = false,\n fallback = undefined,\n size = 'md',\n src,\n}: AvatarProps) => {\n return (\n <NextAvatar\n className={className}\n fallback={fallback}\n isBordered={bordered}\n isDisabled={disabled}\n radius={rounded}\n showFallback={!!fallback}\n size={size}\n src={src}\n />\n );\n};\n\nexport default Avatar;\n","import Avatar from './Avatar';\n\nexport type { AvatarProps } from './Avatar';\n\nexport { Avatar };\n\nexport default Avatar;\n"]}
|
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
+
var _chunkB35F4645cjs = require('./chunk-B35F4645.cjs');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
var _chunkBSBPQXNGcjs = require('./chunk-BSBPQXNG.cjs');
|
|
8
|
+
|
|
9
|
+
|
|
3
10
|
|
|
4
11
|
var _chunkMWNBYTRNcjs = require('./chunk-MWNBYTRN.cjs');
|
|
5
12
|
|
|
@@ -7,6 +14,12 @@ var _chunkMWNBYTRNcjs = require('./chunk-MWNBYTRN.cjs');
|
|
|
7
14
|
var _chunk64K2TRGLcjs = require('./chunk-64K2TRGL.cjs');
|
|
8
15
|
|
|
9
16
|
|
|
17
|
+
var _chunkEJSTUBPUcjs = require('./chunk-EJSTUBPU.cjs');
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
var _chunkXGHRKDIMcjs = require('./chunk-XGHRKDIM.cjs');
|
|
21
|
+
|
|
22
|
+
|
|
10
23
|
|
|
11
24
|
var _chunkGIM2W4JHcjs = require('./chunk-GIM2W4JH.cjs');
|
|
12
25
|
|
|
@@ -28,11 +41,6 @@ var _chunkHHTTNYDCcjs = require('./chunk-HHTTNYDC.cjs');
|
|
|
28
41
|
var _chunkX2MUU2ZIcjs = require('./chunk-X2MUU2ZI.cjs');
|
|
29
42
|
|
|
30
43
|
|
|
31
|
-
var _chunkB35F4645cjs = require('./chunk-B35F4645.cjs');
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
var _chunkBSBPQXNGcjs = require('./chunk-BSBPQXNG.cjs');
|
|
36
44
|
|
|
37
45
|
|
|
38
46
|
|
|
@@ -49,5 +57,5 @@ var _chunkBSBPQXNGcjs = require('./chunk-BSBPQXNG.cjs');
|
|
|
49
57
|
|
|
50
58
|
|
|
51
59
|
|
|
52
|
-
exports.Button = _chunkND4VZZVUcjs.Button_default; exports.Card = _chunkGIM2W4JHcjs.Card_default; exports.Json = _chunkM7IVIJEAcjs.Json_default; exports.Label = _chunkBMKGS5PKcjs.Label_default; exports.Menu = _chunkHHTTNYDCcjs.Menu_default; exports.Modal = _chunkX2MUU2ZIcjs.Modal_default; exports.Popover = _chunkB35F4645cjs.Popover_default; exports.Tooltip = _chunkBSBPQXNGcjs.Tooltip_default; exports.buttonVariants = _chunkND4VZZVUcjs.buttonVariants; exports.cardVariants = _chunkGIM2W4JHcjs.cardVariants; exports.modalVariants = _chunkX2MUU2ZIcjs.modalVariants; exports.nextui = _chunk64K2TRGLcjs.nextui; exports.tooltipPlacementOptions = _chunkBSBPQXNGcjs.tooltipPlacementOptions; exports.useDebounce = _chunkMWNBYTRNcjs.useDebounce; exports.useLocalStorage = _chunkMWNBYTRNcjs.useLocalStorage;
|
|
60
|
+
exports.Avatar = _chunkXGHRKDIMcjs.Avatar_default; exports.AvatarGroup = _chunkEJSTUBPUcjs.AvatarGroup_default; exports.Button = _chunkND4VZZVUcjs.Button_default; exports.Card = _chunkGIM2W4JHcjs.Card_default; exports.Json = _chunkM7IVIJEAcjs.Json_default; exports.Label = _chunkBMKGS5PKcjs.Label_default; exports.Menu = _chunkHHTTNYDCcjs.Menu_default; exports.Modal = _chunkX2MUU2ZIcjs.Modal_default; exports.Popover = _chunkB35F4645cjs.Popover_default; exports.Tooltip = _chunkBSBPQXNGcjs.Tooltip_default; exports.buttonVariants = _chunkND4VZZVUcjs.buttonVariants; exports.cardVariants = _chunkGIM2W4JHcjs.cardVariants; exports.modalVariants = _chunkX2MUU2ZIcjs.modalVariants; exports.nextui = _chunk64K2TRGLcjs.nextui; exports.tooltipPlacementOptions = _chunkBSBPQXNGcjs.tooltipPlacementOptions; exports.useDebounce = _chunkMWNBYTRNcjs.useDebounce; exports.useLocalStorage = _chunkMWNBYTRNcjs.useLocalStorage;
|
|
53
61
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.d.cts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export { A as Avatar, a as AvatarProps } from './Avatar-Bl6oBjgb.cjs';
|
|
2
|
+
export { A as AvatarGroup, a as AvatarGroupProps } from './AvatarGroup-BhgTIcSs.cjs';
|
|
1
3
|
export { B as Button, a as ButtonProps, b as buttonVariants } from './Button-DS4qK4Lf.cjs';
|
|
2
4
|
export { C as Card, a as CardProps, c as cardVariants } from './Card-D5kspciY.cjs';
|
|
3
5
|
export { J as Json, a as JsonProps } from './Json-ClGDcbcp.cjs';
|
|
@@ -9,9 +11,9 @@ export { T as Tooltip, a as TooltipProps, t as tooltipPlacementOptions } from '.
|
|
|
9
11
|
export { useDebounce, useLocalStorage } from './hooks/index.cjs';
|
|
10
12
|
export { nextui } from '@nextui-org/theme';
|
|
11
13
|
import 'react/jsx-runtime';
|
|
14
|
+
import 'react';
|
|
12
15
|
import 'tailwind-variants';
|
|
13
16
|
import 'tailwind-variants/dist/config.js';
|
|
14
17
|
import '@nextui-org/button';
|
|
15
|
-
import 'react';
|
|
16
18
|
import '@nextui-org/chip';
|
|
17
19
|
import '@nextui-org/popover';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export { A as Avatar, a as AvatarProps } from './Avatar-Bl6oBjgb.js';
|
|
2
|
+
export { A as AvatarGroup, a as AvatarGroupProps } from './AvatarGroup-tWe-Vgrz.js';
|
|
1
3
|
export { B as Button, a as ButtonProps, b as buttonVariants } from './Button-DS4qK4Lf.js';
|
|
2
4
|
export { C as Card, a as CardProps, c as cardVariants } from './Card-D5kspciY.js';
|
|
3
5
|
export { J as Json, a as JsonProps } from './Json-ClGDcbcp.js';
|
|
@@ -9,9 +11,9 @@ export { T as Tooltip, a as TooltipProps, t as tooltipPlacementOptions } from '.
|
|
|
9
11
|
export { useDebounce, useLocalStorage } from './hooks/index.js';
|
|
10
12
|
export { nextui } from '@nextui-org/theme';
|
|
11
13
|
import 'react/jsx-runtime';
|
|
14
|
+
import 'react';
|
|
12
15
|
import 'tailwind-variants';
|
|
13
16
|
import 'tailwind-variants/dist/config.js';
|
|
14
17
|
import '@nextui-org/button';
|
|
15
|
-
import 'react';
|
|
16
18
|
import '@nextui-org/chip';
|
|
17
19
|
import '@nextui-org/popover';
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Popover_default
|
|
3
|
+
} from "./chunk-6G5VTF6K.js";
|
|
4
|
+
import {
|
|
5
|
+
Tooltip_default,
|
|
6
|
+
tooltipPlacementOptions
|
|
7
|
+
} from "./chunk-236GX7PP.js";
|
|
1
8
|
import {
|
|
2
9
|
useDebounce,
|
|
3
10
|
useLocalStorage
|
|
@@ -5,6 +12,12 @@ import {
|
|
|
5
12
|
import {
|
|
6
13
|
nextui
|
|
7
14
|
} from "./chunk-MM5H2WFG.js";
|
|
15
|
+
import {
|
|
16
|
+
AvatarGroup_default
|
|
17
|
+
} from "./chunk-LAGUJC5D.js";
|
|
18
|
+
import {
|
|
19
|
+
Avatar_default
|
|
20
|
+
} from "./chunk-SFGC6YVH.js";
|
|
8
21
|
import {
|
|
9
22
|
Card_default,
|
|
10
23
|
cardVariants
|
|
@@ -26,14 +39,9 @@ import {
|
|
|
26
39
|
Modal_default,
|
|
27
40
|
modalVariants
|
|
28
41
|
} from "./chunk-O6OLR36Y.js";
|
|
29
|
-
import {
|
|
30
|
-
Popover_default
|
|
31
|
-
} from "./chunk-6G5VTF6K.js";
|
|
32
|
-
import {
|
|
33
|
-
Tooltip_default,
|
|
34
|
-
tooltipPlacementOptions
|
|
35
|
-
} from "./chunk-236GX7PP.js";
|
|
36
42
|
export {
|
|
43
|
+
Avatar_default as Avatar,
|
|
44
|
+
AvatarGroup_default as AvatarGroup,
|
|
37
45
|
Button_default as Button,
|
|
38
46
|
Card_default as Card,
|
|
39
47
|
Json_default as Json,
|
package/package.json
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"name": "@fuf-stack/pixels",
|
|
3
3
|
"description": "fuf react component library",
|
|
4
4
|
"author": "Hannes Tiede",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.7.0",
|
|
6
6
|
"type": "module",
|
|
7
|
-
"main": "./dist/index.
|
|
8
|
-
"module": "./dist/index.
|
|
7
|
+
"main": "./dist/index.cjs",
|
|
8
|
+
"module": "./dist/index.js",
|
|
9
9
|
"types": "./dist/index.d.ts",
|
|
10
10
|
"sideEffects": false,
|
|
11
11
|
"exports": {
|
|
@@ -14,6 +14,16 @@
|
|
|
14
14
|
"require": "./dist/index.cjs",
|
|
15
15
|
"types": "./dist/index.d.ts"
|
|
16
16
|
},
|
|
17
|
+
"./Avatar": {
|
|
18
|
+
"import": "./dist/Avatar/index.js",
|
|
19
|
+
"require": "./dist/Avatar/index.cjs",
|
|
20
|
+
"types": "./dist/Avatar/index.d.ts"
|
|
21
|
+
},
|
|
22
|
+
"./AvatarGroup": {
|
|
23
|
+
"import": "./dist/AvatarGroup/index.js",
|
|
24
|
+
"require": "./dist/AvatarGroup/index.cjs",
|
|
25
|
+
"types": "./dist/AvatarGroup/index.d.ts"
|
|
26
|
+
},
|
|
17
27
|
"./Button": {
|
|
18
28
|
"import": "./dist/Button/index.js",
|
|
19
29
|
"require": "./dist/Button/index.cjs",
|
|
@@ -90,6 +100,7 @@
|
|
|
90
100
|
"react-dom": ">=18"
|
|
91
101
|
},
|
|
92
102
|
"dependencies": {
|
|
103
|
+
"@nextui-org/avatar": "2.0.27",
|
|
93
104
|
"@nextui-org/button": "2.0.31",
|
|
94
105
|
"@nextui-org/card": "2.0.28",
|
|
95
106
|
"@nextui-org/chip": "2.0.28",
|
|
@@ -108,14 +119,14 @@
|
|
|
108
119
|
},
|
|
109
120
|
"devDependencies": {
|
|
110
121
|
"@types/debug": "4.1.12",
|
|
111
|
-
"@types/react": "18.3.
|
|
122
|
+
"@types/react": "18.3.3",
|
|
112
123
|
"@types/react-dom": "18.3.0",
|
|
113
124
|
"react": "18.3.1",
|
|
114
125
|
"react-dom": "18.3.1",
|
|
115
126
|
"@repo/storybook-config": "0.0.1",
|
|
116
127
|
"@repo/tailwind-config": "0.0.1",
|
|
117
|
-
"@repo/
|
|
118
|
-
"@repo/
|
|
128
|
+
"@repo/tsup-config": "0.0.1",
|
|
129
|
+
"@repo/vite-config": "0.0.1"
|
|
119
130
|
},
|
|
120
131
|
"scripts": {
|
|
121
132
|
"build": "tsup --config node_modules/@repo/tsup-config/config.ts",
|