@fuf-stack/pixels 0.11.0 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/dist/Avatar/index.cjs +2 -2
  2. package/dist/Avatar/index.d.cts +5 -2
  3. package/dist/Avatar/index.d.ts +5 -2
  4. package/dist/Avatar/index.js +1 -1
  5. package/dist/Avatar-D_J7xag8.d.cts +93 -0
  6. package/dist/Avatar-D_J7xag8.d.ts +93 -0
  7. package/dist/AvatarGroup/index.cjs +3 -3
  8. package/dist/AvatarGroup/index.d.cts +6 -3
  9. package/dist/AvatarGroup/index.d.ts +6 -3
  10. package/dist/AvatarGroup/index.js +2 -2
  11. package/dist/{AvatarGroup-tWe-Vgrz.d.ts → AvatarGroup-B34TDUuT.d.ts} +1 -1
  12. package/dist/{AvatarGroup-BhgTIcSs.d.cts → AvatarGroup-DKYNPFbI.d.cts} +1 -1
  13. package/dist/Label/index.cjs +2 -2
  14. package/dist/Label/index.d.cts +2 -2
  15. package/dist/Label/index.d.ts +2 -2
  16. package/dist/Label/index.js +1 -1
  17. package/dist/{Label-DzZDW95M.d.cts → Label-BGMbtZK_.d.cts} +5 -1
  18. package/dist/{Label-DzZDW95M.d.ts → Label-BGMbtZK_.d.ts} +5 -1
  19. package/dist/{chunk-LAGUJC5D.js → chunk-4X4NFZAM.js} +2 -2
  20. package/dist/{chunk-UZZLRGTA.cjs → chunk-DN2BMTWI.cjs} +6 -2
  21. package/dist/chunk-DN2BMTWI.cjs.map +1 -0
  22. package/dist/{chunk-XGHRKDIM.cjs → chunk-HVLEV6BG.cjs} +15 -3
  23. package/dist/chunk-HVLEV6BG.cjs.map +1 -0
  24. package/dist/{chunk-EJSTUBPU.cjs → chunk-IDGXOP6E.cjs} +4 -4
  25. package/dist/{chunk-SFGC6YVH.js → chunk-N6YMP2DX.js} +15 -3
  26. package/dist/chunk-N6YMP2DX.js.map +1 -0
  27. package/dist/{chunk-32USZJY2.js → chunk-Q5NSBKHR.js} +6 -2
  28. package/dist/chunk-Q5NSBKHR.js.map +1 -0
  29. package/dist/index.cjs +4 -4
  30. package/dist/index.d.cts +3 -3
  31. package/dist/index.d.ts +3 -3
  32. package/dist/index.js +3 -3
  33. package/package.json +1 -1
  34. package/dist/Avatar-Bl6oBjgb.d.cts +0 -19
  35. package/dist/Avatar-Bl6oBjgb.d.ts +0 -19
  36. package/dist/chunk-32USZJY2.js.map +0 -1
  37. package/dist/chunk-SFGC6YVH.js.map +0 -1
  38. package/dist/chunk-UZZLRGTA.cjs.map +0 -1
  39. package/dist/chunk-XGHRKDIM.cjs.map +0 -1
  40. /package/dist/{chunk-LAGUJC5D.js.map → chunk-4X4NFZAM.js.map} +0 -0
  41. /package/dist/{chunk-EJSTUBPU.cjs.map → chunk-IDGXOP6E.cjs.map} +0 -0
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkXGHRKDIMcjs = require('../chunk-XGHRKDIM.cjs');
4
+ var _chunkHVLEV6BGcjs = require('../chunk-HVLEV6BG.cjs');
5
5
  require('../chunk-DZUJEN5N.cjs');
6
6
 
7
7
 
8
8
 
9
- exports.Avatar = _chunkXGHRKDIMcjs.Avatar_default; exports.default = _chunkXGHRKDIMcjs.Avatar_default2;
9
+ exports.Avatar = _chunkHVLEV6BGcjs.Avatar_default; exports.default = _chunkHVLEV6BGcjs.Avatar_default2;
10
10
  //# sourceMappingURL=index.cjs.map
@@ -1,6 +1,9 @@
1
- import { A as Avatar } from '../Avatar-Bl6oBjgb.cjs';
2
- export { a as AvatarProps } from '../Avatar-Bl6oBjgb.cjs';
1
+ import { A as Avatar } from '../Avatar-D_J7xag8.cjs';
2
+ export { a as AvatarProps } from '../Avatar-D_J7xag8.cjs';
3
3
  import 'react/jsx-runtime';
4
+ import 'tailwind-variants/dist/config.js';
5
+ import 'tailwind-variants';
6
+ import '@fuf-stack/pixel-utils';
4
7
  import 'react';
5
8
 
6
9
 
@@ -1,6 +1,9 @@
1
- import { A as Avatar } from '../Avatar-Bl6oBjgb.js';
2
- export { a as AvatarProps } from '../Avatar-Bl6oBjgb.js';
1
+ import { A as Avatar } from '../Avatar-D_J7xag8.js';
2
+ export { a as AvatarProps } from '../Avatar-D_J7xag8.js';
3
3
  import 'react/jsx-runtime';
4
+ import 'tailwind-variants/dist/config.js';
5
+ import 'tailwind-variants';
6
+ import '@fuf-stack/pixel-utils';
4
7
  import 'react';
5
8
 
6
9
 
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Avatar_default,
3
3
  Avatar_default2
4
- } from "../chunk-SFGC6YVH.js";
4
+ } from "../chunk-N6YMP2DX.js";
5
5
  import "../chunk-5WRI5ZAA.js";
6
6
  export {
7
7
  Avatar_default as Avatar,
@@ -0,0 +1,93 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as tailwind_variants_dist_config_js from 'tailwind-variants/dist/config.js';
3
+ import * as tailwind_variants from 'tailwind-variants';
4
+ import { TVProps, TVClassName } from '@fuf-stack/pixel-utils';
5
+ import React from 'react';
6
+
7
+ declare const avatarVariants: tailwind_variants.TVReturnType<{
8
+ [key: string]: {
9
+ [key: string]: tailwind_variants.ClassValue | {
10
+ base?: tailwind_variants.ClassValue;
11
+ fallback?: tailwind_variants.ClassValue;
12
+ icon?: tailwind_variants.ClassValue;
13
+ img?: tailwind_variants.ClassValue;
14
+ name?: tailwind_variants.ClassValue;
15
+ };
16
+ };
17
+ } | {
18
+ [x: string]: {
19
+ [x: string]: tailwind_variants.ClassValue | {
20
+ base?: tailwind_variants.ClassValue;
21
+ fallback?: tailwind_variants.ClassValue;
22
+ icon?: tailwind_variants.ClassValue;
23
+ img?: tailwind_variants.ClassValue;
24
+ name?: tailwind_variants.ClassValue;
25
+ };
26
+ };
27
+ } | {}, {
28
+ base: string;
29
+ fallback: string;
30
+ icon: string;
31
+ img: string;
32
+ name: string;
33
+ }, undefined, tailwind_variants_dist_config_js.TVConfig<unknown, {
34
+ [key: string]: {
35
+ [key: string]: tailwind_variants.ClassValue | {
36
+ base?: tailwind_variants.ClassValue;
37
+ fallback?: tailwind_variants.ClassValue;
38
+ icon?: tailwind_variants.ClassValue;
39
+ img?: tailwind_variants.ClassValue;
40
+ name?: tailwind_variants.ClassValue;
41
+ };
42
+ };
43
+ } | {}>, {
44
+ [key: string]: {
45
+ [key: string]: tailwind_variants.ClassValue | {
46
+ base?: tailwind_variants.ClassValue;
47
+ fallback?: tailwind_variants.ClassValue;
48
+ icon?: tailwind_variants.ClassValue;
49
+ img?: tailwind_variants.ClassValue;
50
+ name?: tailwind_variants.ClassValue;
51
+ };
52
+ };
53
+ } | {}, {
54
+ base: string;
55
+ fallback: string;
56
+ icon: string;
57
+ img: string;
58
+ name: string;
59
+ }, tailwind_variants.TVReturnType<unknown, {
60
+ base: string;
61
+ fallback: string;
62
+ icon: string;
63
+ img: string;
64
+ name: string;
65
+ }, undefined, tailwind_variants_dist_config_js.TVConfig<unknown, {
66
+ [key: string]: {
67
+ [key: string]: tailwind_variants.ClassValue | {
68
+ base?: tailwind_variants.ClassValue;
69
+ fallback?: tailwind_variants.ClassValue;
70
+ icon?: tailwind_variants.ClassValue;
71
+ img?: tailwind_variants.ClassValue;
72
+ name?: tailwind_variants.ClassValue;
73
+ };
74
+ };
75
+ } | {}>, unknown, unknown, undefined>>;
76
+ type VariantProps = TVProps<typeof avatarVariants>;
77
+ type ClassName = TVClassName<typeof avatarVariants>;
78
+ interface AvatarProps extends VariantProps {
79
+ bordered?: boolean;
80
+ rounded?: 'none' | 'sm' | 'md' | 'lg' | 'full';
81
+ /** CSS class name */
82
+ className?: ClassName;
83
+ disabled?: boolean;
84
+ fallback?: React.ReactNode;
85
+ size?: 'sm' | 'md' | 'lg';
86
+ src: string;
87
+ }
88
+ /**
89
+ * Avatar component based on [NextUI Avatar](https://nextui.org/docs/components/avatar)
90
+ */
91
+ declare const Avatar: ({ bordered, rounded, className: _className, disabled, fallback, size, src, }: AvatarProps) => react_jsx_runtime.JSX.Element;
92
+
93
+ export { Avatar as A, type AvatarProps as a };
@@ -0,0 +1,93 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as tailwind_variants_dist_config_js from 'tailwind-variants/dist/config.js';
3
+ import * as tailwind_variants from 'tailwind-variants';
4
+ import { TVProps, TVClassName } from '@fuf-stack/pixel-utils';
5
+ import React from 'react';
6
+
7
+ declare const avatarVariants: tailwind_variants.TVReturnType<{
8
+ [key: string]: {
9
+ [key: string]: tailwind_variants.ClassValue | {
10
+ base?: tailwind_variants.ClassValue;
11
+ fallback?: tailwind_variants.ClassValue;
12
+ icon?: tailwind_variants.ClassValue;
13
+ img?: tailwind_variants.ClassValue;
14
+ name?: tailwind_variants.ClassValue;
15
+ };
16
+ };
17
+ } | {
18
+ [x: string]: {
19
+ [x: string]: tailwind_variants.ClassValue | {
20
+ base?: tailwind_variants.ClassValue;
21
+ fallback?: tailwind_variants.ClassValue;
22
+ icon?: tailwind_variants.ClassValue;
23
+ img?: tailwind_variants.ClassValue;
24
+ name?: tailwind_variants.ClassValue;
25
+ };
26
+ };
27
+ } | {}, {
28
+ base: string;
29
+ fallback: string;
30
+ icon: string;
31
+ img: string;
32
+ name: string;
33
+ }, undefined, tailwind_variants_dist_config_js.TVConfig<unknown, {
34
+ [key: string]: {
35
+ [key: string]: tailwind_variants.ClassValue | {
36
+ base?: tailwind_variants.ClassValue;
37
+ fallback?: tailwind_variants.ClassValue;
38
+ icon?: tailwind_variants.ClassValue;
39
+ img?: tailwind_variants.ClassValue;
40
+ name?: tailwind_variants.ClassValue;
41
+ };
42
+ };
43
+ } | {}>, {
44
+ [key: string]: {
45
+ [key: string]: tailwind_variants.ClassValue | {
46
+ base?: tailwind_variants.ClassValue;
47
+ fallback?: tailwind_variants.ClassValue;
48
+ icon?: tailwind_variants.ClassValue;
49
+ img?: tailwind_variants.ClassValue;
50
+ name?: tailwind_variants.ClassValue;
51
+ };
52
+ };
53
+ } | {}, {
54
+ base: string;
55
+ fallback: string;
56
+ icon: string;
57
+ img: string;
58
+ name: string;
59
+ }, tailwind_variants.TVReturnType<unknown, {
60
+ base: string;
61
+ fallback: string;
62
+ icon: string;
63
+ img: string;
64
+ name: string;
65
+ }, undefined, tailwind_variants_dist_config_js.TVConfig<unknown, {
66
+ [key: string]: {
67
+ [key: string]: tailwind_variants.ClassValue | {
68
+ base?: tailwind_variants.ClassValue;
69
+ fallback?: tailwind_variants.ClassValue;
70
+ icon?: tailwind_variants.ClassValue;
71
+ img?: tailwind_variants.ClassValue;
72
+ name?: tailwind_variants.ClassValue;
73
+ };
74
+ };
75
+ } | {}>, unknown, unknown, undefined>>;
76
+ type VariantProps = TVProps<typeof avatarVariants>;
77
+ type ClassName = TVClassName<typeof avatarVariants>;
78
+ interface AvatarProps extends VariantProps {
79
+ bordered?: boolean;
80
+ rounded?: 'none' | 'sm' | 'md' | 'lg' | 'full';
81
+ /** CSS class name */
82
+ className?: ClassName;
83
+ disabled?: boolean;
84
+ fallback?: React.ReactNode;
85
+ size?: 'sm' | 'md' | 'lg';
86
+ src: string;
87
+ }
88
+ /**
89
+ * Avatar component based on [NextUI Avatar](https://nextui.org/docs/components/avatar)
90
+ */
91
+ declare const Avatar: ({ bordered, rounded, className: _className, disabled, fallback, size, src, }: AvatarProps) => react_jsx_runtime.JSX.Element;
92
+
93
+ export { Avatar as A, type AvatarProps as a };
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkEJSTUBPUcjs = require('../chunk-EJSTUBPU.cjs');
5
- require('../chunk-XGHRKDIM.cjs');
4
+ var _chunkIDGXOP6Ecjs = require('../chunk-IDGXOP6E.cjs');
5
+ require('../chunk-HVLEV6BG.cjs');
6
6
  require('../chunk-DZUJEN5N.cjs');
7
7
 
8
8
 
9
9
 
10
- exports.AvatarGroup = _chunkEJSTUBPUcjs.AvatarGroup_default; exports.default = _chunkEJSTUBPUcjs.AvatarGroup_default2;
10
+ exports.AvatarGroup = _chunkIDGXOP6Ecjs.AvatarGroup_default; exports.default = _chunkIDGXOP6Ecjs.AvatarGroup_default2;
11
11
  //# sourceMappingURL=index.cjs.map
@@ -1,7 +1,10 @@
1
- import { A as AvatarGroup } from '../AvatarGroup-BhgTIcSs.cjs';
2
- export { a as AvatarGroupProps } from '../AvatarGroup-BhgTIcSs.cjs';
1
+ import { A as AvatarGroup } from '../AvatarGroup-DKYNPFbI.cjs';
2
+ export { a as AvatarGroupProps } from '../AvatarGroup-DKYNPFbI.cjs';
3
3
  import 'react/jsx-runtime';
4
- import '../Avatar-Bl6oBjgb.cjs';
4
+ import '../Avatar-D_J7xag8.cjs';
5
+ import 'tailwind-variants/dist/config.js';
6
+ import 'tailwind-variants';
7
+ import '@fuf-stack/pixel-utils';
5
8
  import 'react';
6
9
 
7
10
 
@@ -1,7 +1,10 @@
1
- import { A as AvatarGroup } from '../AvatarGroup-tWe-Vgrz.js';
2
- export { a as AvatarGroupProps } from '../AvatarGroup-tWe-Vgrz.js';
1
+ import { A as AvatarGroup } from '../AvatarGroup-B34TDUuT.js';
2
+ export { a as AvatarGroupProps } from '../AvatarGroup-B34TDUuT.js';
3
3
  import 'react/jsx-runtime';
4
- import '../Avatar-Bl6oBjgb.js';
4
+ import '../Avatar-D_J7xag8.js';
5
+ import 'tailwind-variants/dist/config.js';
6
+ import 'tailwind-variants';
7
+ import '@fuf-stack/pixel-utils';
5
8
  import 'react';
6
9
 
7
10
 
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  AvatarGroup_default,
3
3
  AvatarGroup_default2
4
- } from "../chunk-LAGUJC5D.js";
5
- import "../chunk-SFGC6YVH.js";
4
+ } from "../chunk-4X4NFZAM.js";
5
+ import "../chunk-N6YMP2DX.js";
6
6
  import "../chunk-5WRI5ZAA.js";
7
7
  export {
8
8
  AvatarGroup_default as AvatarGroup,
@@ -1,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { a as AvatarProps } from './Avatar-Bl6oBjgb.js';
2
+ import { a as AvatarProps } from './Avatar-D_J7xag8.js';
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-Bl6oBjgb.cjs';
2
+ import { a as AvatarProps } from './Avatar-D_J7xag8.cjs';
3
3
 
4
4
  interface AvatarGroupProps {
5
5
  bordered?: boolean;
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkUZZLRGTAcjs = require('../chunk-UZZLRGTA.cjs');
4
+ var _chunkDN2BMTWIcjs = require('../chunk-DN2BMTWI.cjs');
5
5
  require('../chunk-DZUJEN5N.cjs');
6
6
 
7
7
 
8
8
 
9
- exports.Label = _chunkUZZLRGTAcjs.Label_default; exports.default = _chunkUZZLRGTAcjs.Label_default2;
9
+ exports.Label = _chunkDN2BMTWIcjs.Label_default; exports.default = _chunkDN2BMTWIcjs.Label_default2;
10
10
  //# sourceMappingURL=index.cjs.map
@@ -1,5 +1,5 @@
1
- import { L as Label } from '../Label-DzZDW95M.cjs';
2
- export { a as LabelProps } from '../Label-DzZDW95M.cjs';
1
+ import { L as Label } from '../Label-BGMbtZK_.cjs';
2
+ export { a as LabelProps } from '../Label-BGMbtZK_.cjs';
3
3
  import 'react/jsx-runtime';
4
4
  import '@nextui-org/chip';
5
5
  import 'react';
@@ -1,5 +1,5 @@
1
- import { L as Label } from '../Label-DzZDW95M.js';
2
- export { a as LabelProps } from '../Label-DzZDW95M.js';
1
+ import { L as Label } from '../Label-BGMbtZK_.js';
2
+ export { a as LabelProps } from '../Label-BGMbtZK_.js';
3
3
  import 'react/jsx-runtime';
4
4
  import '@nextui-org/chip';
5
5
  import 'react';
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Label_default,
3
3
  Label_default2
4
- } from "../chunk-32USZJY2.js";
4
+ } from "../chunk-Q5NSBKHR.js";
5
5
  import "../chunk-5WRI5ZAA.js";
6
6
  export {
7
7
  Label_default as Label,
@@ -11,14 +11,18 @@ interface LabelProps {
11
11
  color?: ChipProps['color'];
12
12
  /** element to be rendered in the right side of the label */
13
13
  endContent?: ChipProps['endContent'];
14
+ /** radius of the label */
15
+ radius?: ChipProps['radius'];
14
16
  /** size of the label */
15
17
  size?: ChipProps['size'];
16
18
  /** element to be rendered in the left side of the label */
17
19
  startContent?: ChipProps['startContent'];
20
+ /** style variant of the label */
21
+ variant?: 'solid' | 'bordered' | 'light' | 'flat' | 'faded' | 'dot';
18
22
  }
19
23
  /**
20
24
  * Label component based on [NextUI Chip](https://nextui.org/docs/components/chip)
21
25
  */
22
- declare const Label: ({ children, className, color, endContent, size, startContent, }: LabelProps) => react_jsx_runtime.JSX.Element;
26
+ declare const Label: ({ children, className, color, endContent, radius, size, startContent, variant, }: LabelProps) => react_jsx_runtime.JSX.Element;
23
27
 
24
28
  export { Label as L, type LabelProps as a };
@@ -11,14 +11,18 @@ interface LabelProps {
11
11
  color?: ChipProps['color'];
12
12
  /** element to be rendered in the right side of the label */
13
13
  endContent?: ChipProps['endContent'];
14
+ /** radius of the label */
15
+ radius?: ChipProps['radius'];
14
16
  /** size of the label */
15
17
  size?: ChipProps['size'];
16
18
  /** element to be rendered in the left side of the label */
17
19
  startContent?: ChipProps['startContent'];
20
+ /** style variant of the label */
21
+ variant?: 'solid' | 'bordered' | 'light' | 'flat' | 'faded' | 'dot';
18
22
  }
19
23
  /**
20
24
  * Label component based on [NextUI Chip](https://nextui.org/docs/components/chip)
21
25
  */
22
- declare const Label: ({ children, className, color, endContent, size, startContent, }: LabelProps) => react_jsx_runtime.JSX.Element;
26
+ declare const Label: ({ children, className, color, endContent, radius, size, startContent, variant, }: LabelProps) => react_jsx_runtime.JSX.Element;
23
27
 
24
28
  export { Label as L, type LabelProps as a };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Avatar_default2 as Avatar_default
3
- } from "./chunk-SFGC6YVH.js";
3
+ } from "./chunk-N6YMP2DX.js";
4
4
 
5
5
  // src/AvatarGroup/AvatarGroup.tsx
6
6
  import { AvatarGroup as NextAvatarGroup } from "@nextui-org/avatar";
@@ -62,4 +62,4 @@ export {
62
62
  AvatarGroup_default,
63
63
  AvatarGroup_default2
64
64
  };
65
- //# sourceMappingURL=chunk-LAGUJC5D.js.map
65
+ //# sourceMappingURL=chunk-4X4NFZAM.js.map
@@ -7,16 +7,20 @@ var Label = ({
7
7
  className = void 0,
8
8
  color = "default",
9
9
  endContent = void 0,
10
+ radius = "full",
10
11
  size = "md",
11
- startContent = void 0
12
+ startContent = void 0,
13
+ variant = "solid"
12
14
  }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
13
15
  _chip.Chip,
14
16
  {
15
17
  className: _pixelutils.cn.call(void 0, className),
16
18
  color,
17
19
  endContent,
20
+ radius,
18
21
  size,
19
22
  startContent,
23
+ variant,
20
24
  children
21
25
  }
22
26
  );
@@ -29,4 +33,4 @@ var Label_default2 = Label_default;
29
33
 
30
34
 
31
35
  exports.Label_default = Label_default; exports.Label_default2 = Label_default2;
32
- //# sourceMappingURL=chunk-UZZLRGTA.cjs.map
36
+ //# sourceMappingURL=chunk-DN2BMTWI.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/Label/Label.tsx","../src/Label/index.ts"],"names":["Label_default"],"mappings":";AAGA,SAAS,QAAQ,iBAAiB;AAElC,SAAS,UAAU;AAkCjB;AAVF,IAAM,QAAQ,CAAC;AAAA,EACb;AAAA,EACA,YAAY;AAAA,EACZ,QAAQ;AAAA,EACR,aAAa;AAAA,EACb,SAAS;AAAA,EACT,OAAO;AAAA,EACP,eAAe;AAAA,EACf,UAAU;AACZ,MACE;AAAA,EAAC;AAAA;AAAA,IACC,WAAW,GAAG,SAAS;AAAA,IACvB;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IAEC;AAAA;AACH;AAGF,IAAO,gBAAQ;;;AC9Cf,IAAOA,iBAAQ","sourcesContent":["import type { ChipProps } from '@nextui-org/chip';\nimport type { ReactNode } from 'react';\n\nimport { Chip as NextLabel } from '@nextui-org/chip';\n\nimport { cn } from '@fuf-stack/pixel-utils';\n\nexport interface LabelProps {\n /** content of the label */\n children: ReactNode;\n /** CSS class name */\n className?: string;\n /** color of the label */\n color?: ChipProps['color'];\n /** element to be rendered in the right side of the label */\n endContent?: ChipProps['endContent'];\n /** radius of the label */\n radius?: ChipProps['radius'];\n /** size of the label */\n size?: ChipProps['size'];\n /** element to be rendered in the left side of the label */\n startContent?: ChipProps['startContent'];\n /** style variant of the label */\n variant?: 'solid' | 'bordered' | 'light' | 'flat' | 'faded' | 'dot';\n}\n\n/**\n * Label component based on [NextUI Chip](https://nextui.org/docs/components/chip)\n */\nconst Label = ({\n children,\n className = undefined,\n color = 'default',\n endContent = undefined,\n radius = 'full',\n size = 'md',\n startContent = undefined,\n variant = 'solid',\n}: LabelProps) => (\n <NextLabel\n className={cn(className)}\n color={color}\n endContent={endContent}\n radius={radius}\n size={size}\n startContent={startContent}\n variant={variant}\n >\n {children}\n </NextLabel>\n);\n\nexport default Label;\n","import Label from './Label';\n\nexport type { LabelProps } from './Label';\n\nexport { Label };\n\nexport default Label;\n"]}
@@ -1,19 +1,31 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/Avatar/Avatar.tsx
2
2
  var _avatar = require('@nextui-org/avatar');
3
+ var _pixelutils = require('@fuf-stack/pixel-utils');
3
4
  var _jsxruntime = require('react/jsx-runtime');
5
+ var avatarVariants = _pixelutils.tv.call(void 0, {
6
+ slots: {
7
+ base: "",
8
+ fallback: "",
9
+ icon: "",
10
+ img: "",
11
+ name: ""
12
+ }
13
+ });
4
14
  var Avatar = ({
5
15
  bordered = false,
6
16
  rounded = "full",
7
- className = "",
17
+ className: _className = void 0,
8
18
  disabled = false,
9
19
  fallback = void 0,
10
20
  size = "md",
11
21
  src
12
22
  }) => {
23
+ const variants = avatarVariants();
24
+ const className = _pixelutils.variantsToClassNames.call(void 0, variants, _className, "base");
13
25
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
14
26
  _avatar.Avatar,
15
27
  {
16
- className,
28
+ classNames: className,
17
29
  fallback,
18
30
  isBordered: bordered,
19
31
  isDisabled: disabled,
@@ -33,4 +45,4 @@ var Avatar_default2 = Avatar_default;
33
45
 
34
46
 
35
47
  exports.Avatar_default = Avatar_default; exports.Avatar_default2 = Avatar_default2;
36
- //# sourceMappingURL=chunk-XGHRKDIM.cjs.map
48
+ //# sourceMappingURL=chunk-HVLEV6BG.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/Avatar/Avatar.tsx","../src/Avatar/index.ts"],"names":["Avatar_default"],"mappings":";AAGA,SAAS,UAAU,kBAAkB;AAErC,SAAS,IAAI,4BAA4B;AAiDrC;AA9CG,IAAM,iBAAiB,GAAG;AAAA,EAC/B,OAAO;AAAA,IACL,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,KAAK;AAAA,IACL,MAAM;AAAA,EACR;AACF,CAAC;AAwBD,IAAM,SAAS,CAAC;AAAA,EACd,WAAW;AAAA,EACX,UAAU;AAAA,EACV,WAAW,aAAa;AAAA,EACxB,WAAW;AAAA,EACX,WAAW;AAAA,EACX,OAAO;AAAA,EACP;AACF,MAAmB;AAEjB,QAAM,WAAW,eAAe;AAChC,QAAM,YAAY,qBAAqB,UAAU,YAAY,MAAM;AAEnE,SACE;AAAA,IAAC;AAAA;AAAA,MACC,YAAY;AAAA,MACZ;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;;;AC7Df,IAAOA,kBAAQ","sourcesContent":["import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\nimport type React from 'react';\n\nimport { Avatar as NextAvatar } from '@nextui-org/avatar';\n\nimport { tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\n\n// avatar styling variants\nexport const avatarVariants = tv({\n slots: {\n base: '',\n fallback: '',\n icon: '',\n img: '',\n name: '',\n },\n});\n\ntype VariantProps = TVProps<typeof avatarVariants>;\ntype ClassName = TVClassName<typeof avatarVariants>;\nexport interface AvatarProps extends VariantProps {\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?: ClassName;\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: _className = undefined,\n disabled = false,\n fallback = undefined,\n size = 'md',\n src,\n}: AvatarProps) => {\n // className from slots\n const variants = avatarVariants();\n const className = variantsToClassNames(variants, _className, 'base');\n\n return (\n <NextAvatar\n classNames={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"]}
@@ -1,6 +1,6 @@
1
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
2
 
3
- var _chunkXGHRKDIMcjs = require('./chunk-XGHRKDIM.cjs');
3
+ var _chunkHVLEV6BGcjs = require('./chunk-HVLEV6BG.cjs');
4
4
 
5
5
  // src/AvatarGroup/AvatarGroup.tsx
6
6
  var _avatar = require('@nextui-org/avatar');
@@ -28,7 +28,7 @@ var AvatarGroup = ({
28
28
  return AvatarWrapper ? (
29
29
  // eslint-disable-next-line react/jsx-props-no-spreading
30
30
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarWrapper, { ...avatar.wrapperProps, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
31
- _chunkXGHRKDIMcjs.Avatar_default2,
31
+ _chunkHVLEV6BGcjs.Avatar_default2,
32
32
  {
33
33
  ...avatar,
34
34
  disabled: disabled || _optionalChain([avatar, 'optionalAccess', _3 => _3.disabled]),
@@ -39,7 +39,7 @@ var AvatarGroup = ({
39
39
  avatar.src
40
40
  ) })
41
41
  ) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
42
- _chunkXGHRKDIMcjs.Avatar_default2,
42
+ _chunkHVLEV6BGcjs.Avatar_default2,
43
43
  {
44
44
  ...avatar,
45
45
  disabled: disabled || _optionalChain([avatar, 'optionalAccess', _4 => _4.disabled]),
@@ -62,4 +62,4 @@ var AvatarGroup_default2 = AvatarGroup_default;
62
62
 
63
63
 
64
64
  exports.AvatarGroup_default = AvatarGroup_default; exports.AvatarGroup_default2 = AvatarGroup_default2;
65
- //# sourceMappingURL=chunk-EJSTUBPU.cjs.map
65
+ //# sourceMappingURL=chunk-IDGXOP6E.cjs.map
@@ -1,19 +1,31 @@
1
1
  // src/Avatar/Avatar.tsx
2
2
  import { Avatar as NextAvatar } from "@nextui-org/avatar";
3
+ import { tv, variantsToClassNames } from "@fuf-stack/pixel-utils";
3
4
  import { jsx } from "react/jsx-runtime";
5
+ var avatarVariants = tv({
6
+ slots: {
7
+ base: "",
8
+ fallback: "",
9
+ icon: "",
10
+ img: "",
11
+ name: ""
12
+ }
13
+ });
4
14
  var Avatar = ({
5
15
  bordered = false,
6
16
  rounded = "full",
7
- className = "",
17
+ className: _className = void 0,
8
18
  disabled = false,
9
19
  fallback = void 0,
10
20
  size = "md",
11
21
  src
12
22
  }) => {
23
+ const variants = avatarVariants();
24
+ const className = variantsToClassNames(variants, _className, "base");
13
25
  return /* @__PURE__ */ jsx(
14
26
  NextAvatar,
15
27
  {
16
- className,
28
+ classNames: className,
17
29
  fallback,
18
30
  isBordered: bordered,
19
31
  isDisabled: disabled,
@@ -33,4 +45,4 @@ export {
33
45
  Avatar_default,
34
46
  Avatar_default2
35
47
  };
36
- //# sourceMappingURL=chunk-SFGC6YVH.js.map
48
+ //# sourceMappingURL=chunk-N6YMP2DX.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/Avatar/Avatar.tsx","../src/Avatar/index.ts"],"sourcesContent":["import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\nimport type React from 'react';\n\nimport { Avatar as NextAvatar } from '@nextui-org/avatar';\n\nimport { tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\n\n// avatar styling variants\nexport const avatarVariants = tv({\n slots: {\n base: '',\n fallback: '',\n icon: '',\n img: '',\n name: '',\n },\n});\n\ntype VariantProps = TVProps<typeof avatarVariants>;\ntype ClassName = TVClassName<typeof avatarVariants>;\nexport interface AvatarProps extends VariantProps {\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?: ClassName;\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: _className = undefined,\n disabled = false,\n fallback = undefined,\n size = 'md',\n src,\n}: AvatarProps) => {\n // className from slots\n const variants = avatarVariants();\n const className = variantsToClassNames(variants, _className, 'base');\n\n return (\n <NextAvatar\n classNames={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":";AAGA,SAAS,UAAU,kBAAkB;AAErC,SAAS,IAAI,4BAA4B;AAiDrC;AA9CG,IAAM,iBAAiB,GAAG;AAAA,EAC/B,OAAO;AAAA,IACL,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,KAAK;AAAA,IACL,MAAM;AAAA,EACR;AACF,CAAC;AAwBD,IAAM,SAAS,CAAC;AAAA,EACd,WAAW;AAAA,EACX,UAAU;AAAA,EACV,WAAW,aAAa;AAAA,EACxB,WAAW;AAAA,EACX,WAAW;AAAA,EACX,OAAO;AAAA,EACP;AACF,MAAmB;AAEjB,QAAM,WAAW,eAAe;AAChC,QAAM,YAAY,qBAAqB,UAAU,YAAY,MAAM;AAEnE,SACE;AAAA,IAAC;AAAA;AAAA,MACC,YAAY;AAAA,MACZ;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;;;AC7Df,IAAOA,kBAAQ;","names":["Avatar_default"]}
@@ -7,16 +7,20 @@ var Label = ({
7
7
  className = void 0,
8
8
  color = "default",
9
9
  endContent = void 0,
10
+ radius = "full",
10
11
  size = "md",
11
- startContent = void 0
12
+ startContent = void 0,
13
+ variant = "solid"
12
14
  }) => /* @__PURE__ */ jsx(
13
15
  NextLabel,
14
16
  {
15
17
  className: cn(className),
16
18
  color,
17
19
  endContent,
20
+ radius,
18
21
  size,
19
22
  startContent,
23
+ variant,
20
24
  children
21
25
  }
22
26
  );
@@ -29,4 +33,4 @@ export {
29
33
  Label_default,
30
34
  Label_default2
31
35
  };
32
- //# sourceMappingURL=chunk-32USZJY2.js.map
36
+ //# sourceMappingURL=chunk-Q5NSBKHR.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/Label/Label.tsx","../src/Label/index.ts"],"sourcesContent":["import type { ChipProps } from '@nextui-org/chip';\nimport type { ReactNode } from 'react';\n\nimport { Chip as NextLabel } from '@nextui-org/chip';\n\nimport { cn } from '@fuf-stack/pixel-utils';\n\nexport interface LabelProps {\n /** content of the label */\n children: ReactNode;\n /** CSS class name */\n className?: string;\n /** color of the label */\n color?: ChipProps['color'];\n /** element to be rendered in the right side of the label */\n endContent?: ChipProps['endContent'];\n /** radius of the label */\n radius?: ChipProps['radius'];\n /** size of the label */\n size?: ChipProps['size'];\n /** element to be rendered in the left side of the label */\n startContent?: ChipProps['startContent'];\n /** style variant of the label */\n variant?: 'solid' | 'bordered' | 'light' | 'flat' | 'faded' | 'dot';\n}\n\n/**\n * Label component based on [NextUI Chip](https://nextui.org/docs/components/chip)\n */\nconst Label = ({\n children,\n className = undefined,\n color = 'default',\n endContent = undefined,\n radius = 'full',\n size = 'md',\n startContent = undefined,\n variant = 'solid',\n}: LabelProps) => (\n <NextLabel\n className={cn(className)}\n color={color}\n endContent={endContent}\n radius={radius}\n size={size}\n startContent={startContent}\n variant={variant}\n >\n {children}\n </NextLabel>\n);\n\nexport default Label;\n","import Label from './Label';\n\nexport type { LabelProps } from './Label';\n\nexport { Label };\n\nexport default Label;\n"],"mappings":";AAGA,SAAS,QAAQ,iBAAiB;AAElC,SAAS,UAAU;AAkCjB;AAVF,IAAM,QAAQ,CAAC;AAAA,EACb;AAAA,EACA,YAAY;AAAA,EACZ,QAAQ;AAAA,EACR,aAAa;AAAA,EACb,SAAS;AAAA,EACT,OAAO;AAAA,EACP,eAAe;AAAA,EACf,UAAU;AACZ,MACE;AAAA,EAAC;AAAA;AAAA,IACC,WAAW,GAAG,SAAS;AAAA,IACvB;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IAEC;AAAA;AACH;AAGF,IAAO,gBAAQ;;;AC9Cf,IAAOA,iBAAQ;","names":["Label_default"]}
package/dist/index.cjs CHANGED
@@ -19,10 +19,10 @@ var _chunkMWNBYTRNcjs = require('./chunk-MWNBYTRN.cjs');
19
19
  var _chunkHI5ZXI2Xcjs = require('./chunk-HI5ZXI2X.cjs');
20
20
 
21
21
 
22
- var _chunkEJSTUBPUcjs = require('./chunk-EJSTUBPU.cjs');
22
+ var _chunkIDGXOP6Ecjs = require('./chunk-IDGXOP6E.cjs');
23
23
 
24
24
 
25
- var _chunkXGHRKDIMcjs = require('./chunk-XGHRKDIM.cjs');
25
+ var _chunkHVLEV6BGcjs = require('./chunk-HVLEV6BG.cjs');
26
26
 
27
27
 
28
28
 
@@ -36,7 +36,7 @@ var _chunkULZQ45FScjs = require('./chunk-ULZQ45FS.cjs');
36
36
  var _chunkLOFZNVCNcjs = require('./chunk-LOFZNVCN.cjs');
37
37
 
38
38
 
39
- var _chunkUZZLRGTAcjs = require('./chunk-UZZLRGTA.cjs');
39
+ var _chunkDN2BMTWIcjs = require('./chunk-DN2BMTWI.cjs');
40
40
 
41
41
 
42
42
  var _chunkMJNISFGXcjs = require('./chunk-MJNISFGX.cjs');
@@ -60,5 +60,5 @@ require('./chunk-DZUJEN5N.cjs');
60
60
 
61
61
 
62
62
 
63
- exports.Accordion = _chunkHI5ZXI2Xcjs.Accordion_default; exports.Avatar = _chunkXGHRKDIMcjs.Avatar_default; exports.AvatarGroup = _chunkEJSTUBPUcjs.AvatarGroup_default; exports.Button = _chunkLOFZNVCNcjs.Button_default; exports.Card = _chunkJPALSO5Ecjs.Card_default; exports.Json = _chunkULZQ45FScjs.Json_default; exports.Label = _chunkUZZLRGTAcjs.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;
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;
64
64
  //# sourceMappingURL=index.cjs.map
package/dist/index.d.cts CHANGED
@@ -1,10 +1,10 @@
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-Bl6oBjgb.cjs';
3
- export { A as AvatarGroup, a as AvatarGroupProps } from './AvatarGroup-BhgTIcSs.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';
4
4
  export { B as Button, a as ButtonProps, b as buttonVariants } from './Button-8uTuwTxM.cjs';
5
5
  export { C as Card, a as CardProps, c as cardVariants } from './Card-B3zN1NrH.cjs';
6
6
  export { J as Json, a as JsonProps } from './Json-ClGDcbcp.cjs';
7
- export { L as Label, a as LabelProps } from './Label-DzZDW95M.cjs';
7
+ export { L as Label, a as LabelProps } from './Label-BGMbtZK_.cjs';
8
8
  export { M as Menu, b as MenuItem, a as MenuProps, c as MenuSection } from './Menu-CG5mVVnv.cjs';
9
9
  export { M as Modal, a as ModalProps, m as modalVariants } from './Modal-DZHeIvQc.cjs';
10
10
  export { _ as Popover, P as PopoverProps } from './Popover-DbTTk7_N.cjs';
package/dist/index.d.ts CHANGED
@@ -1,10 +1,10 @@
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-Bl6oBjgb.js';
3
- export { A as AvatarGroup, a as AvatarGroupProps } from './AvatarGroup-tWe-Vgrz.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';
4
4
  export { B as Button, a as ButtonProps, b as buttonVariants } from './Button-8uTuwTxM.js';
5
5
  export { C as Card, a as CardProps, c as cardVariants } from './Card-B3zN1NrH.js';
6
6
  export { J as Json, a as JsonProps } from './Json-ClGDcbcp.js';
7
- export { L as Label, a as LabelProps } from './Label-DzZDW95M.js';
7
+ export { L as Label, a as LabelProps } from './Label-BGMbtZK_.js';
8
8
  export { M as Menu, b as MenuItem, a as MenuProps, c as MenuSection } from './Menu-CG5mVVnv.js';
9
9
  export { M as Modal, a as ModalProps, m as modalVariants } from './Modal-DZHeIvQc.js';
10
10
  export { _ as Popover, P as PopoverProps } from './Popover-DbTTk7_N.js';
package/dist/index.js CHANGED
@@ -19,10 +19,10 @@ import {
19
19
  } from "./chunk-ZHVEVZHH.js";
20
20
  import {
21
21
  AvatarGroup_default
22
- } from "./chunk-LAGUJC5D.js";
22
+ } from "./chunk-4X4NFZAM.js";
23
23
  import {
24
24
  Avatar_default
25
- } from "./chunk-SFGC6YVH.js";
25
+ } from "./chunk-N6YMP2DX.js";
26
26
  import {
27
27
  Card_default,
28
28
  cardVariants
@@ -36,7 +36,7 @@ import {
36
36
  } from "./chunk-EVCVBDO5.js";
37
37
  import {
38
38
  Label_default
39
- } from "./chunk-32USZJY2.js";
39
+ } from "./chunk-Q5NSBKHR.js";
40
40
  import {
41
41
  Menu_default
42
42
  } from "./chunk-SU6NFAFF.js";
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.11.0",
5
+ "version": "0.13.0",
6
6
  "type": "module",
7
7
  "main": "./dist/index.cjs",
8
8
  "module": "./dist/index.js",
@@ -1,19 +0,0 @@
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 };
@@ -1,19 +0,0 @@
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 };
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/Label/Label.tsx","../src/Label/index.ts"],"sourcesContent":["import type { ChipProps } from '@nextui-org/chip';\nimport type { ReactNode } from 'react';\n\nimport { Chip as NextLabel } from '@nextui-org/chip';\n\nimport { cn } from '@fuf-stack/pixel-utils';\n\nexport interface LabelProps {\n /** content of the label */\n children: ReactNode;\n /** CSS class name */\n className?: string;\n /** color of the label */\n color?: ChipProps['color'];\n /** element to be rendered in the right side of the label */\n endContent?: ChipProps['endContent'];\n /** size of the label */\n size?: ChipProps['size'];\n /** element to be rendered in the left side of the label */\n startContent?: ChipProps['startContent'];\n}\n\n/**\n * Label component based on [NextUI Chip](https://nextui.org/docs/components/chip)\n */\nconst Label = ({\n children,\n className = undefined,\n color = 'default',\n endContent = undefined,\n size = 'md',\n startContent = undefined,\n}: LabelProps) => (\n <NextLabel\n className={cn(className)}\n color={color}\n endContent={endContent}\n size={size}\n startContent={startContent}\n >\n {children}\n </NextLabel>\n);\n\nexport default Label;\n","import Label from './Label';\n\nexport type { LabelProps } from './Label';\n\nexport { Label };\n\nexport default Label;\n"],"mappings":";AAGA,SAAS,QAAQ,iBAAiB;AAElC,SAAS,UAAU;AA4BjB;AARF,IAAM,QAAQ,CAAC;AAAA,EACb;AAAA,EACA,YAAY;AAAA,EACZ,QAAQ;AAAA,EACR,aAAa;AAAA,EACb,OAAO;AAAA,EACP,eAAe;AACjB,MACE;AAAA,EAAC;AAAA;AAAA,IACC,WAAW,GAAG,SAAS;AAAA,IACvB;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IAEC;AAAA;AACH;AAGF,IAAO,gBAAQ;;;ACtCf,IAAOA,iBAAQ;","names":["Label_default"]}
@@ -1 +0,0 @@
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"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/Label/Label.tsx","../src/Label/index.ts"],"names":["Label_default"],"mappings":";AAGA,SAAS,QAAQ,iBAAiB;AAElC,SAAS,UAAU;AA4BjB;AARF,IAAM,QAAQ,CAAC;AAAA,EACb;AAAA,EACA,YAAY;AAAA,EACZ,QAAQ;AAAA,EACR,aAAa;AAAA,EACb,OAAO;AAAA,EACP,eAAe;AACjB,MACE;AAAA,EAAC;AAAA;AAAA,IACC,WAAW,GAAG,SAAS;AAAA,IACvB;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IAEC;AAAA;AACH;AAGF,IAAO,gBAAQ;;;ACtCf,IAAOA,iBAAQ","sourcesContent":["import type { ChipProps } from '@nextui-org/chip';\nimport type { ReactNode } from 'react';\n\nimport { Chip as NextLabel } from '@nextui-org/chip';\n\nimport { cn } from '@fuf-stack/pixel-utils';\n\nexport interface LabelProps {\n /** content of the label */\n children: ReactNode;\n /** CSS class name */\n className?: string;\n /** color of the label */\n color?: ChipProps['color'];\n /** element to be rendered in the right side of the label */\n endContent?: ChipProps['endContent'];\n /** size of the label */\n size?: ChipProps['size'];\n /** element to be rendered in the left side of the label */\n startContent?: ChipProps['startContent'];\n}\n\n/**\n * Label component based on [NextUI Chip](https://nextui.org/docs/components/chip)\n */\nconst Label = ({\n children,\n className = undefined,\n color = 'default',\n endContent = undefined,\n size = 'md',\n startContent = undefined,\n}: LabelProps) => (\n <NextLabel\n className={cn(className)}\n color={color}\n endContent={endContent}\n size={size}\n startContent={startContent}\n >\n {children}\n </NextLabel>\n);\n\nexport default Label;\n","import Label from './Label';\n\nexport type { LabelProps } from './Label';\n\nexport { Label };\n\nexport default Label;\n"]}
@@ -1 +0,0 @@
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"]}