@fuf-stack/pixels 0.14.0 → 0.15.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.
@@ -1,5 +1,5 @@
1
- import { A as Avatar } from '../Avatar-D_J7xag8.cjs';
2
- export { a as AvatarProps } from '../Avatar-D_J7xag8.cjs';
1
+ import { A as Avatar } from '../Avatar-D9P8JKS3.cjs';
2
+ export { a as AvatarProps } from '../Avatar-D9P8JKS3.cjs';
3
3
  import 'react/jsx-runtime';
4
4
  import 'tailwind-variants/dist/config.js';
5
5
  import 'tailwind-variants';
@@ -1,5 +1,5 @@
1
- import { A as Avatar } from '../Avatar-D_J7xag8.js';
2
- export { a as AvatarProps } from '../Avatar-D_J7xag8.js';
1
+ import { A as Avatar } from '../Avatar-D9P8JKS3.js';
2
+ export { a as AvatarProps } from '../Avatar-D9P8JKS3.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 React from 'react';
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?: React.ReactNode;
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 React from 'react';
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?: React.ReactNode;
84
+ fallback?: React__default.ReactNode;
85
85
  size?: 'sm' | 'md' | 'lg';
86
86
  src: string;
87
87
  }
@@ -1,7 +1,7 @@
1
- import { A as AvatarGroup } from '../AvatarGroup-DKYNPFbI.cjs';
2
- export { a as AvatarGroupProps } from '../AvatarGroup-DKYNPFbI.cjs';
1
+ import { A as AvatarGroup } from '../AvatarGroup--VjSSnOk.cjs';
2
+ export { a as AvatarGroupProps } from '../AvatarGroup--VjSSnOk.cjs';
3
3
  import 'react/jsx-runtime';
4
- import '../Avatar-D_J7xag8.cjs';
4
+ import '../Avatar-D9P8JKS3.cjs';
5
5
  import 'tailwind-variants/dist/config.js';
6
6
  import 'tailwind-variants';
7
7
  import '@fuf-stack/pixel-utils';
@@ -1,7 +1,7 @@
1
- import { A as AvatarGroup } from '../AvatarGroup-B34TDUuT.js';
2
- export { a as AvatarGroupProps } from '../AvatarGroup-B34TDUuT.js';
1
+ import { A as AvatarGroup } from '../AvatarGroup-DFiQyyO7.js';
2
+ export { a as AvatarGroupProps } from '../AvatarGroup-DFiQyyO7.js';
3
3
  import 'react/jsx-runtime';
4
- import '../Avatar-D_J7xag8.js';
4
+ import '../Avatar-D9P8JKS3.js';
5
5
  import 'tailwind-variants/dist/config.js';
6
6
  import 'tailwind-variants';
7
7
  import '@fuf-stack/pixel-utils';
@@ -1,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { a as AvatarProps } from './Avatar-D_J7xag8.cjs';
2
+ import { a as AvatarProps } from './Avatar-D9P8JKS3.cjs';
3
3
 
4
4
  interface AvatarGroupProps {
5
5
  bordered?: boolean;
@@ -1,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { a as AvatarProps } from './Avatar-D_J7xag8.js';
2
+ import { a as AvatarProps } from './Avatar-D9P8JKS3.js';
3
3
 
4
4
  interface AvatarGroupProps {
5
5
  bordered?: boolean;
@@ -0,0 +1,10 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+ var _chunkU2JEMXXJcjs = require('../chunk-U2JEMXXJ.cjs');
5
+ require('../chunk-DZUJEN5N.cjs');
6
+
7
+
8
+
9
+ exports.Badge = _chunkU2JEMXXJcjs.Badge_default; exports.default = _chunkU2JEMXXJcjs.Badge_default2;
10
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":""}
@@ -0,0 +1,12 @@
1
+ import { A as Avatar } from '../Badge-2JMThgzp.cjs';
2
+ export { B as BadgeProps } from '../Badge-2JMThgzp.cjs';
3
+ import 'react/jsx-runtime';
4
+ import 'react';
5
+ import 'tailwind-variants/dist/config.js';
6
+ import 'tailwind-variants';
7
+ import '@fuf-stack/pixel-utils';
8
+ import '@nextui-org/badge';
9
+
10
+
11
+
12
+ export { Avatar as Badge, Avatar as default };
@@ -0,0 +1,12 @@
1
+ import { A as Avatar } from '../Badge-2JMThgzp.js';
2
+ export { B as BadgeProps } from '../Badge-2JMThgzp.js';
3
+ import 'react/jsx-runtime';
4
+ import 'react';
5
+ import 'tailwind-variants/dist/config.js';
6
+ import 'tailwind-variants';
7
+ import '@fuf-stack/pixel-utils';
8
+ import '@nextui-org/badge';
9
+
10
+
11
+
12
+ export { Avatar as Badge, Avatar as default };
@@ -0,0 +1,10 @@
1
+ import {
2
+ Badge_default,
3
+ Badge_default2
4
+ } from "../chunk-QTXKWCDV.js";
5
+ import "../chunk-5WRI5ZAA.js";
6
+ export {
7
+ Badge_default as Badge,
8
+ Badge_default2 as default
9
+ };
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,78 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as React from 'react';
3
+ import * as tailwind_variants_dist_config_js from 'tailwind-variants/dist/config.js';
4
+ import * as tailwind_variants from 'tailwind-variants';
5
+ import { TVProps, TVClassName } from '@fuf-stack/pixel-utils';
6
+ import { BadgeProps as BadgeProps$1 } from '@nextui-org/badge';
7
+
8
+ declare const badgeVariants: tailwind_variants.TVReturnType<{
9
+ [key: string]: {
10
+ [key: string]: tailwind_variants.ClassValue | {
11
+ badge?: tailwind_variants.ClassValue;
12
+ base?: tailwind_variants.ClassValue;
13
+ };
14
+ };
15
+ } | {
16
+ [x: string]: {
17
+ [x: string]: tailwind_variants.ClassValue | {
18
+ badge?: tailwind_variants.ClassValue;
19
+ base?: tailwind_variants.ClassValue;
20
+ };
21
+ };
22
+ } | {}, {
23
+ badge: string;
24
+ base: string;
25
+ }, undefined, tailwind_variants_dist_config_js.TVConfig<unknown, {
26
+ [key: string]: {
27
+ [key: string]: tailwind_variants.ClassValue | {
28
+ badge?: tailwind_variants.ClassValue;
29
+ base?: tailwind_variants.ClassValue;
30
+ };
31
+ };
32
+ } | {}>, {
33
+ [key: string]: {
34
+ [key: string]: tailwind_variants.ClassValue | {
35
+ badge?: tailwind_variants.ClassValue;
36
+ base?: tailwind_variants.ClassValue;
37
+ };
38
+ };
39
+ } | {}, {
40
+ badge: string;
41
+ base: string;
42
+ }, tailwind_variants.TVReturnType<unknown, {
43
+ badge: string;
44
+ base: string;
45
+ }, undefined, tailwind_variants_dist_config_js.TVConfig<unknown, {
46
+ [key: string]: {
47
+ [key: string]: tailwind_variants.ClassValue | {
48
+ badge?: tailwind_variants.ClassValue;
49
+ base?: tailwind_variants.ClassValue;
50
+ };
51
+ };
52
+ } | {}>, unknown, unknown, undefined>>;
53
+ type VariantProps = TVProps<typeof badgeVariants>;
54
+ type ClassName = TVClassName<typeof badgeVariants>;
55
+ interface BadgeProps extends VariantProps {
56
+ /** component which is wrapped by the batch */
57
+ children: BadgeProps$1['children'];
58
+ /** CSS class name */
59
+ className?: ClassName;
60
+ /** badge content */
61
+ content?: BadgeProps$1['content'];
62
+ /** color of the badge */
63
+ color?: BadgeProps$1['color'];
64
+ /** if set the badge have the same height and width */
65
+ isOneChar?: BadgeProps$1['isOneChar'];
66
+ /** removes the badge outline */
67
+ noOutline?: boolean;
68
+ /** placement of the badge */
69
+ placement?: BadgeProps$1['placement'];
70
+ /** size of the badge */
71
+ size?: BadgeProps$1['size'];
72
+ }
73
+ /**
74
+ * Badge component based on [NextUI Badge](https://nextui.org/docs/components/badge)
75
+ */
76
+ declare const Avatar: ({ children, className: _className, content, color, isOneChar, noOutline, placement, size, }: BadgeProps) => string | number | boolean | Iterable<React.ReactNode> | react_jsx_runtime.JSX.Element | null | undefined;
77
+
78
+ export { Avatar as A, type BadgeProps as B };
@@ -0,0 +1,78 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as React from 'react';
3
+ import * as tailwind_variants_dist_config_js from 'tailwind-variants/dist/config.js';
4
+ import * as tailwind_variants from 'tailwind-variants';
5
+ import { TVProps, TVClassName } from '@fuf-stack/pixel-utils';
6
+ import { BadgeProps as BadgeProps$1 } from '@nextui-org/badge';
7
+
8
+ declare const badgeVariants: tailwind_variants.TVReturnType<{
9
+ [key: string]: {
10
+ [key: string]: tailwind_variants.ClassValue | {
11
+ badge?: tailwind_variants.ClassValue;
12
+ base?: tailwind_variants.ClassValue;
13
+ };
14
+ };
15
+ } | {
16
+ [x: string]: {
17
+ [x: string]: tailwind_variants.ClassValue | {
18
+ badge?: tailwind_variants.ClassValue;
19
+ base?: tailwind_variants.ClassValue;
20
+ };
21
+ };
22
+ } | {}, {
23
+ badge: string;
24
+ base: string;
25
+ }, undefined, tailwind_variants_dist_config_js.TVConfig<unknown, {
26
+ [key: string]: {
27
+ [key: string]: tailwind_variants.ClassValue | {
28
+ badge?: tailwind_variants.ClassValue;
29
+ base?: tailwind_variants.ClassValue;
30
+ };
31
+ };
32
+ } | {}>, {
33
+ [key: string]: {
34
+ [key: string]: tailwind_variants.ClassValue | {
35
+ badge?: tailwind_variants.ClassValue;
36
+ base?: tailwind_variants.ClassValue;
37
+ };
38
+ };
39
+ } | {}, {
40
+ badge: string;
41
+ base: string;
42
+ }, tailwind_variants.TVReturnType<unknown, {
43
+ badge: string;
44
+ base: string;
45
+ }, undefined, tailwind_variants_dist_config_js.TVConfig<unknown, {
46
+ [key: string]: {
47
+ [key: string]: tailwind_variants.ClassValue | {
48
+ badge?: tailwind_variants.ClassValue;
49
+ base?: tailwind_variants.ClassValue;
50
+ };
51
+ };
52
+ } | {}>, unknown, unknown, undefined>>;
53
+ type VariantProps = TVProps<typeof badgeVariants>;
54
+ type ClassName = TVClassName<typeof badgeVariants>;
55
+ interface BadgeProps extends VariantProps {
56
+ /** component which is wrapped by the batch */
57
+ children: BadgeProps$1['children'];
58
+ /** CSS class name */
59
+ className?: ClassName;
60
+ /** badge content */
61
+ content?: BadgeProps$1['content'];
62
+ /** color of the badge */
63
+ color?: BadgeProps$1['color'];
64
+ /** if set the badge have the same height and width */
65
+ isOneChar?: BadgeProps$1['isOneChar'];
66
+ /** removes the badge outline */
67
+ noOutline?: boolean;
68
+ /** placement of the badge */
69
+ placement?: BadgeProps$1['placement'];
70
+ /** size of the badge */
71
+ size?: BadgeProps$1['size'];
72
+ }
73
+ /**
74
+ * Badge component based on [NextUI Badge](https://nextui.org/docs/components/badge)
75
+ */
76
+ declare const Avatar: ({ children, className: _className, content, color, isOneChar, noOutline, placement, size, }: BadgeProps) => string | number | boolean | Iterable<React.ReactNode> | react_jsx_runtime.JSX.Element | null | undefined;
77
+
78
+ export { Avatar as A, type BadgeProps as B };
@@ -0,0 +1,49 @@
1
+ // src/Badge/Badge.tsx
2
+ import { Badge as NextBadge } from "@nextui-org/badge";
3
+ import { tv, variantsToClassNames } from "@fuf-stack/pixel-utils";
4
+ import { jsx } from "react/jsx-runtime";
5
+ var badgeVariants = tv({
6
+ slots: {
7
+ badge: "",
8
+ base: ""
9
+ }
10
+ });
11
+ var Avatar = ({
12
+ children,
13
+ className: _className = void 0,
14
+ content = void 0,
15
+ color = "default",
16
+ isOneChar = false,
17
+ noOutline = false,
18
+ placement = "top-right",
19
+ size = "md"
20
+ }) => {
21
+ if (content === void 0) {
22
+ return children;
23
+ }
24
+ const variants = badgeVariants();
25
+ const className = variantsToClassNames(variants, _className, "base");
26
+ return /* @__PURE__ */ jsx(
27
+ NextBadge,
28
+ {
29
+ classNames: className,
30
+ color,
31
+ content,
32
+ isOneChar,
33
+ placement,
34
+ showOutline: !noOutline,
35
+ size,
36
+ children
37
+ }
38
+ );
39
+ };
40
+ var Badge_default = Avatar;
41
+
42
+ // src/Badge/index.ts
43
+ var Badge_default2 = Badge_default;
44
+
45
+ export {
46
+ Badge_default,
47
+ Badge_default2
48
+ };
49
+ //# sourceMappingURL=chunk-QTXKWCDV.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/Badge/Badge.tsx","../src/Badge/index.ts"],"sourcesContent":["import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\nimport type { BadgeProps as NextBadgeProps } from '@nextui-org/badge';\n\nimport { Badge as NextBadge } from '@nextui-org/badge';\n\nimport { tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\n\n// badge styling variants\nexport const badgeVariants = tv({\n slots: {\n badge: '',\n base: '',\n },\n});\n\ntype VariantProps = TVProps<typeof badgeVariants>;\ntype ClassName = TVClassName<typeof badgeVariants>;\n\nexport interface BadgeProps extends VariantProps {\n /** component which is wrapped by the batch */\n children: NextBadgeProps['children'];\n /** CSS class name */\n className?: ClassName;\n /** badge content */\n content?: NextBadgeProps['content'];\n /** color of the badge */\n color?: NextBadgeProps['color'];\n /** if set the badge have the same height and width */\n isOneChar?: NextBadgeProps['isOneChar'];\n /** removes the badge outline */\n noOutline?: boolean;\n /** placement of the badge */\n placement?: NextBadgeProps['placement'];\n /** size of the badge */\n size?: NextBadgeProps['size'];\n}\n\n/**\n * Badge component based on [NextUI Badge](https://nextui.org/docs/components/badge)\n */\nconst Avatar = ({\n children,\n className: _className = undefined,\n content = undefined,\n color = 'default',\n isOneChar = false,\n noOutline = false,\n placement = 'top-right',\n size = 'md',\n}: BadgeProps) => {\n if (content === undefined) {\n return children;\n }\n // className from slots\n const variants = badgeVariants();\n const className = variantsToClassNames(variants, _className, 'base');\n\n return (\n <NextBadge\n classNames={className}\n color={color}\n content={content}\n isOneChar={isOneChar}\n placement={placement}\n showOutline={!noOutline}\n size={size}\n >\n {children}\n </NextBadge>\n );\n};\n\nexport default Avatar;\n","import Badge from './Badge';\n\nexport type { BadgeProps } from './Badge';\n\nexport { Badge };\n\nexport default Badge;\n"],"mappings":";AAGA,SAAS,SAAS,iBAAiB;AAEnC,SAAS,IAAI,4BAA4B;AAqDrC;AAlDG,IAAM,gBAAgB,GAAG;AAAA,EAC9B,OAAO;AAAA,IACL,OAAO;AAAA,IACP,MAAM;AAAA,EACR;AACF,CAAC;AA2BD,IAAM,SAAS,CAAC;AAAA,EACd;AAAA,EACA,WAAW,aAAa;AAAA,EACxB,UAAU;AAAA,EACV,QAAQ;AAAA,EACR,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,OAAO;AACT,MAAkB;AAChB,MAAI,YAAY,QAAW;AACzB,WAAO;AAAA,EACT;AAEA,QAAM,WAAW,cAAc;AAC/B,QAAM,YAAY,qBAAqB,UAAU,YAAY,MAAM;AAEnE,SACE;AAAA,IAAC;AAAA;AAAA,MACC,YAAY;AAAA,MACZ;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA,aAAa,CAAC;AAAA,MACd;AAAA,MAEC;AAAA;AAAA,EACH;AAEJ;AAEA,IAAO,gBAAQ;;;AClEf,IAAOA,iBAAQ;","names":["Badge_default"]}
@@ -0,0 +1,49 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/Badge/Badge.tsx
2
+ var _badge = require('@nextui-org/badge');
3
+ var _pixelutils = require('@fuf-stack/pixel-utils');
4
+ var _jsxruntime = require('react/jsx-runtime');
5
+ var badgeVariants = _pixelutils.tv.call(void 0, {
6
+ slots: {
7
+ badge: "",
8
+ base: ""
9
+ }
10
+ });
11
+ var Avatar = ({
12
+ children,
13
+ className: _className = void 0,
14
+ content = void 0,
15
+ color = "default",
16
+ isOneChar = false,
17
+ noOutline = false,
18
+ placement = "top-right",
19
+ size = "md"
20
+ }) => {
21
+ if (content === void 0) {
22
+ return children;
23
+ }
24
+ const variants = badgeVariants();
25
+ const className = _pixelutils.variantsToClassNames.call(void 0, variants, _className, "base");
26
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
27
+ _badge.Badge,
28
+ {
29
+ classNames: className,
30
+ color,
31
+ content,
32
+ isOneChar,
33
+ placement,
34
+ showOutline: !noOutline,
35
+ size,
36
+ children
37
+ }
38
+ );
39
+ };
40
+ var Badge_default = Avatar;
41
+
42
+ // src/Badge/index.ts
43
+ var Badge_default2 = Badge_default;
44
+
45
+
46
+
47
+
48
+ exports.Badge_default = Badge_default; exports.Badge_default2 = Badge_default2;
49
+ //# sourceMappingURL=chunk-U2JEMXXJ.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/Badge/Badge.tsx","../src/Badge/index.ts"],"names":["Badge_default"],"mappings":";AAGA,SAAS,SAAS,iBAAiB;AAEnC,SAAS,IAAI,4BAA4B;AAqDrC;AAlDG,IAAM,gBAAgB,GAAG;AAAA,EAC9B,OAAO;AAAA,IACL,OAAO;AAAA,IACP,MAAM;AAAA,EACR;AACF,CAAC;AA2BD,IAAM,SAAS,CAAC;AAAA,EACd;AAAA,EACA,WAAW,aAAa;AAAA,EACxB,UAAU;AAAA,EACV,QAAQ;AAAA,EACR,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,OAAO;AACT,MAAkB;AAChB,MAAI,YAAY,QAAW;AACzB,WAAO;AAAA,EACT;AAEA,QAAM,WAAW,cAAc;AAC/B,QAAM,YAAY,qBAAqB,UAAU,YAAY,MAAM;AAEnE,SACE;AAAA,IAAC;AAAA;AAAA,MACC,YAAY;AAAA,MACZ;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA,aAAa,CAAC;AAAA,MACd;AAAA,MAEC;AAAA;AAAA,EACH;AAEJ;AAEA,IAAO,gBAAQ;;;AClEf,IAAOA,iBAAQ","sourcesContent":["import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\nimport type { BadgeProps as NextBadgeProps } from '@nextui-org/badge';\n\nimport { Badge as NextBadge } from '@nextui-org/badge';\n\nimport { tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\n\n// badge styling variants\nexport const badgeVariants = tv({\n slots: {\n badge: '',\n base: '',\n },\n});\n\ntype VariantProps = TVProps<typeof badgeVariants>;\ntype ClassName = TVClassName<typeof badgeVariants>;\n\nexport interface BadgeProps extends VariantProps {\n /** component which is wrapped by the batch */\n children: NextBadgeProps['children'];\n /** CSS class name */\n className?: ClassName;\n /** badge content */\n content?: NextBadgeProps['content'];\n /** color of the badge */\n color?: NextBadgeProps['color'];\n /** if set the badge have the same height and width */\n isOneChar?: NextBadgeProps['isOneChar'];\n /** removes the badge outline */\n noOutline?: boolean;\n /** placement of the badge */\n placement?: NextBadgeProps['placement'];\n /** size of the badge */\n size?: NextBadgeProps['size'];\n}\n\n/**\n * Badge component based on [NextUI Badge](https://nextui.org/docs/components/badge)\n */\nconst Avatar = ({\n children,\n className: _className = undefined,\n content = undefined,\n color = 'default',\n isOneChar = false,\n noOutline = false,\n placement = 'top-right',\n size = 'md',\n}: BadgeProps) => {\n if (content === undefined) {\n return children;\n }\n // className from slots\n const variants = badgeVariants();\n const className = variantsToClassNames(variants, _className, 'base');\n\n return (\n <NextBadge\n classNames={className}\n color={color}\n content={content}\n isOneChar={isOneChar}\n placement={placement}\n showOutline={!noOutline}\n size={size}\n >\n {children}\n </NextBadge>\n );\n};\n\nexport default Avatar;\n","import Badge from './Badge';\n\nexport type { BadgeProps } from './Badge';\n\nexport { Badge };\n\nexport default Badge;\n"]}
package/dist/index.cjs CHANGED
@@ -1,5 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
+ var _chunkMJNISFGXcjs = require('./chunk-MJNISFGX.cjs');
4
+
5
+
3
6
 
4
7
  var _chunkVAJODF7Zcjs = require('./chunk-VAJODF7Z.cjs');
5
8
 
@@ -25,6 +28,9 @@ var _chunkIDGXOP6Ecjs = require('./chunk-IDGXOP6E.cjs');
25
28
  var _chunkHVLEV6BGcjs = require('./chunk-HVLEV6BG.cjs');
26
29
 
27
30
 
31
+ var _chunkU2JEMXXJcjs = require('./chunk-U2JEMXXJ.cjs');
32
+
33
+
28
34
 
29
35
  var _chunkJPALSO5Ecjs = require('./chunk-JPALSO5E.cjs');
30
36
 
@@ -37,9 +43,6 @@ var _chunkLOFZNVCNcjs = require('./chunk-LOFZNVCN.cjs');
37
43
 
38
44
 
39
45
  var _chunkDN2BMTWIcjs = require('./chunk-DN2BMTWI.cjs');
40
-
41
-
42
- var _chunkMJNISFGXcjs = require('./chunk-MJNISFGX.cjs');
43
46
  require('./chunk-DZUJEN5N.cjs');
44
47
 
45
48
 
@@ -60,5 +63,6 @@ require('./chunk-DZUJEN5N.cjs');
60
63
 
61
64
 
62
65
 
63
- exports.Accordion = _chunkHI5ZXI2Xcjs.Accordion_default; exports.Avatar = _chunkHVLEV6BGcjs.Avatar_default; exports.AvatarGroup = _chunkIDGXOP6Ecjs.AvatarGroup_default; exports.Button = _chunkLOFZNVCNcjs.Button_default; exports.Card = _chunkJPALSO5Ecjs.Card_default; exports.Json = _chunkULZQ45FScjs.Json_default; exports.Label = _chunkDN2BMTWIcjs.Label_default; exports.Menu = _chunkMJNISFGXcjs.Menu_default; exports.Modal = _chunkVAJODF7Zcjs.Modal_default; exports.Popover = _chunkZCA555Q7cjs.Popover_default; exports.Tooltip = _chunkRS7HBBUFcjs.Tooltip_default; exports.accordionVariants = _chunkHI5ZXI2Xcjs.accordionVariants; exports.buttonVariants = _chunkLOFZNVCNcjs.buttonVariants; exports.cardVariants = _chunkJPALSO5Ecjs.cardVariants; exports.modalVariants = _chunkVAJODF7Zcjs.modalVariants; exports.tooltipPlacementOptions = _chunkRS7HBBUFcjs.tooltipPlacementOptions; exports.useDebounce = _chunkMWNBYTRNcjs.useDebounce; exports.useLocalStorage = _chunkMWNBYTRNcjs.useLocalStorage;
66
+
67
+ exports.Accordion = _chunkHI5ZXI2Xcjs.Accordion_default; exports.Avatar = _chunkHVLEV6BGcjs.Avatar_default; exports.AvatarGroup = _chunkIDGXOP6Ecjs.AvatarGroup_default; exports.Badge = _chunkU2JEMXXJcjs.Badge_default; exports.Button = _chunkLOFZNVCNcjs.Button_default; exports.Card = _chunkJPALSO5Ecjs.Card_default; exports.Json = _chunkULZQ45FScjs.Json_default; exports.Label = _chunkDN2BMTWIcjs.Label_default; exports.Menu = _chunkMJNISFGXcjs.Menu_default; exports.Modal = _chunkVAJODF7Zcjs.Modal_default; exports.Popover = _chunkZCA555Q7cjs.Popover_default; exports.Tooltip = _chunkRS7HBBUFcjs.Tooltip_default; exports.accordionVariants = _chunkHI5ZXI2Xcjs.accordionVariants; exports.buttonVariants = _chunkLOFZNVCNcjs.buttonVariants; exports.cardVariants = _chunkJPALSO5Ecjs.cardVariants; exports.modalVariants = _chunkVAJODF7Zcjs.modalVariants; exports.tooltipPlacementOptions = _chunkRS7HBBUFcjs.tooltipPlacementOptions; exports.useDebounce = _chunkMWNBYTRNcjs.useDebounce; exports.useLocalStorage = _chunkMWNBYTRNcjs.useLocalStorage;
64
68
  //# sourceMappingURL=index.cjs.map
package/dist/index.d.cts CHANGED
@@ -1,6 +1,7 @@
1
1
  export { A as Accordion, c as AccordionItemProps, b as AccordionProps, a as accordionVariants } from './Accordion-4uEQ6yjp.cjs';
2
- export { A as Avatar, a as AvatarProps } from './Avatar-D_J7xag8.cjs';
3
- export { A as AvatarGroup, a as AvatarGroupProps } from './AvatarGroup-DKYNPFbI.cjs';
2
+ export { A as Avatar, a as AvatarProps } from './Avatar-D9P8JKS3.cjs';
3
+ export { A as AvatarGroup, a as AvatarGroupProps } from './AvatarGroup--VjSSnOk.cjs';
4
+ export { A as Badge, B as BadgeProps } from './Badge-2JMThgzp.cjs';
4
5
  export { B as Button, a as ButtonProps, b as buttonVariants } from './Button-8uTuwTxM.cjs';
5
6
  export { C as Card, a as CardProps, c as cardVariants } from './Card-B3zN1NrH.cjs';
6
7
  export { J as Json, a as JsonProps } from './Json-ClGDcbcp.cjs';
@@ -16,6 +17,7 @@ import 'tailwind-variants/dist/config.js';
16
17
  import '@fuf-stack/pixel-utils';
17
18
  import '@nextui-org/divider';
18
19
  import 'react';
20
+ import '@nextui-org/badge';
19
21
  import '@nextui-org/button';
20
22
  import '@nextui-org/chip';
21
23
  import '@nextui-org/popover';
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export { A as Accordion, c as AccordionItemProps, b as AccordionProps, a as accordionVariants } from './Accordion-4uEQ6yjp.js';
2
- export { A as Avatar, a as AvatarProps } from './Avatar-D_J7xag8.js';
3
- export { A as AvatarGroup, a as AvatarGroupProps } from './AvatarGroup-B34TDUuT.js';
2
+ export { A as Avatar, a as AvatarProps } from './Avatar-D9P8JKS3.js';
3
+ export { A as AvatarGroup, a as AvatarGroupProps } from './AvatarGroup-DFiQyyO7.js';
4
+ export { A as Badge, B as BadgeProps } from './Badge-2JMThgzp.js';
4
5
  export { B as Button, a as ButtonProps, b as buttonVariants } from './Button-8uTuwTxM.js';
5
6
  export { C as Card, a as CardProps, c as cardVariants } from './Card-B3zN1NrH.js';
6
7
  export { J as Json, a as JsonProps } from './Json-ClGDcbcp.js';
@@ -16,6 +17,7 @@ import 'tailwind-variants/dist/config.js';
16
17
  import '@fuf-stack/pixel-utils';
17
18
  import '@nextui-org/divider';
18
19
  import 'react';
20
+ import '@nextui-org/badge';
19
21
  import '@nextui-org/button';
20
22
  import '@nextui-org/chip';
21
23
  import '@nextui-org/popover';
package/dist/index.js CHANGED
@@ -1,3 +1,6 @@
1
+ import {
2
+ Menu_default
3
+ } from "./chunk-SU6NFAFF.js";
1
4
  import {
2
5
  Modal_default,
3
6
  modalVariants
@@ -23,6 +26,9 @@ import {
23
26
  import {
24
27
  Avatar_default
25
28
  } from "./chunk-N6YMP2DX.js";
29
+ import {
30
+ Badge_default
31
+ } from "./chunk-QTXKWCDV.js";
26
32
  import {
27
33
  Card_default,
28
34
  cardVariants
@@ -37,14 +43,12 @@ import {
37
43
  import {
38
44
  Label_default
39
45
  } from "./chunk-Q5NSBKHR.js";
40
- import {
41
- Menu_default
42
- } from "./chunk-SU6NFAFF.js";
43
46
  import "./chunk-5WRI5ZAA.js";
44
47
  export {
45
48
  Accordion_default as Accordion,
46
49
  Avatar_default as Avatar,
47
50
  AvatarGroup_default as AvatarGroup,
51
+ Badge_default as Badge,
48
52
  Button_default as Button,
49
53
  Card_default as Card,
50
54
  Json_default as Json,
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@fuf-stack/pixels",
3
3
  "description": "fuf core react component library",
4
4
  "author": "Hannes Tiede",
5
- "version": "0.14.0",
5
+ "version": "0.15.0",
6
6
  "type": "module",
7
7
  "main": "./dist/index.cjs",
8
8
  "module": "./dist/index.js",
@@ -29,6 +29,11 @@
29
29
  "require": "./dist/AvatarGroup/index.cjs",
30
30
  "types": "./dist/AvatarGroup/index.d.ts"
31
31
  },
32
+ "./Badge": {
33
+ "import": "./dist/Badge/index.js",
34
+ "require": "./dist/Badge/index.cjs",
35
+ "types": "./dist/Badge/index.d.ts"
36
+ },
32
37
  "./Button": {
33
38
  "import": "./dist/Button/index.js",
34
39
  "require": "./dist/Button/index.cjs",