@fuf-stack/pixels 0.11.0 → 0.12.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,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 _chunkT4DMXZDIcjs = require('../chunk-T4DMXZDI.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 = _chunkT4DMXZDIcjs.Label_default; exports.default = _chunkT4DMXZDIcjs.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-B0CGVnde.cjs';
2
+ export { a as LabelProps } from '../Label-B0CGVnde.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-B0CGVnde.js';
2
+ export { a as LabelProps } from '../Label-B0CGVnde.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-4ZXKMRZR.js";
5
5
  import "../chunk-5WRI5ZAA.js";
6
6
  export {
7
7
  Label_default as Label,
@@ -15,10 +15,12 @@ interface LabelProps {
15
15
  size?: ChipProps['size'];
16
16
  /** element to be rendered in the left side of the label */
17
17
  startContent?: ChipProps['startContent'];
18
+ /** style variant of the label */
19
+ variant?: 'solid' | 'bordered' | 'light' | 'flat' | 'faded' | 'dot';
18
20
  }
19
21
  /**
20
22
  * Label component based on [NextUI Chip](https://nextui.org/docs/components/chip)
21
23
  */
22
- declare const Label: ({ children, className, color, endContent, size, startContent, }: LabelProps) => react_jsx_runtime.JSX.Element;
24
+ declare const Label: ({ children, className, color, endContent, size, startContent, variant, }: LabelProps) => react_jsx_runtime.JSX.Element;
23
25
 
24
26
  export { Label as L, type LabelProps as a };
@@ -15,10 +15,12 @@ interface LabelProps {
15
15
  size?: ChipProps['size'];
16
16
  /** element to be rendered in the left side of the label */
17
17
  startContent?: ChipProps['startContent'];
18
+ /** style variant of the label */
19
+ variant?: 'solid' | 'bordered' | 'light' | 'flat' | 'faded' | 'dot';
18
20
  }
19
21
  /**
20
22
  * Label component based on [NextUI Chip](https://nextui.org/docs/components/chip)
21
23
  */
22
- declare const Label: ({ children, className, color, endContent, size, startContent, }: LabelProps) => react_jsx_runtime.JSX.Element;
24
+ declare const Label: ({ children, className, color, endContent, size, startContent, variant, }: LabelProps) => react_jsx_runtime.JSX.Element;
23
25
 
24
26
  export { Label as L, type LabelProps as a };
@@ -8,7 +8,8 @@ var Label = ({
8
8
  color = "default",
9
9
  endContent = void 0,
10
10
  size = "md",
11
- startContent = void 0
11
+ startContent = void 0,
12
+ variant = "solid"
12
13
  }) => /* @__PURE__ */ jsx(
13
14
  NextLabel,
14
15
  {
@@ -17,6 +18,7 @@ var Label = ({
17
18
  endContent,
18
19
  size,
19
20
  startContent,
21
+ variant,
20
22
  children
21
23
  }
22
24
  );
@@ -29,4 +31,4 @@ export {
29
31
  Label_default,
30
32
  Label_default2
31
33
  };
32
- //# sourceMappingURL=chunk-32USZJY2.js.map
34
+ //# sourceMappingURL=chunk-4ZXKMRZR.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 /** 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 size = 'md',\n startContent = undefined,\n variant = 'solid',\n}: LabelProps) => (\n <NextLabel\n className={cn(className)}\n color={color}\n endContent={endContent}\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;AA+BjB;AATF,IAAM,QAAQ,CAAC;AAAA,EACb;AAAA,EACA,YAAY;AAAA,EACZ,QAAQ;AAAA,EACR,aAAa;AAAA,EACb,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,IAEC;AAAA;AACH;AAGF,IAAO,gBAAQ;;;AC1Cf,IAAOA,iBAAQ;","names":["Label_default"]}
@@ -8,7 +8,8 @@ var Label = ({
8
8
  color = "default",
9
9
  endContent = void 0,
10
10
  size = "md",
11
- startContent = void 0
11
+ startContent = void 0,
12
+ variant = "solid"
12
13
  }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
13
14
  _chip.Chip,
14
15
  {
@@ -17,6 +18,7 @@ var Label = ({
17
18
  endContent,
18
19
  size,
19
20
  startContent,
21
+ variant,
20
22
  children
21
23
  }
22
24
  );
@@ -29,4 +31,4 @@ var Label_default2 = Label_default;
29
31
 
30
32
 
31
33
  exports.Label_default = Label_default; exports.Label_default2 = Label_default2;
32
- //# sourceMappingURL=chunk-UZZLRGTA.cjs.map
34
+ //# sourceMappingURL=chunk-T4DMXZDI.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;AA+BjB;AATF,IAAM,QAAQ,CAAC;AAAA,EACb;AAAA,EACA,YAAY;AAAA,EACZ,QAAQ;AAAA,EACR,aAAa;AAAA,EACb,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,IAEC;AAAA;AACH;AAGF,IAAO,gBAAQ;;;AC1Cf,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 /** 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 size = 'md',\n startContent = undefined,\n variant = 'solid',\n}: LabelProps) => (\n <NextLabel\n className={cn(className)}\n color={color}\n endContent={endContent}\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"]}
package/dist/index.cjs CHANGED
@@ -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 _chunkT4DMXZDIcjs = require('./chunk-T4DMXZDI.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 = _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 = _chunkT4DMXZDIcjs.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
@@ -4,7 +4,7 @@ export { A as AvatarGroup, a as AvatarGroupProps } from './AvatarGroup-BhgTIcSs.
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-B0CGVnde.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
@@ -4,7 +4,7 @@ export { A as AvatarGroup, a as AvatarGroupProps } from './AvatarGroup-tWe-Vgrz.
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-B0CGVnde.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
@@ -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-4ZXKMRZR.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.12.0",
6
6
  "type": "module",
7
7
  "main": "./dist/index.cjs",
8
8
  "module": "./dist/index.js",
@@ -123,10 +123,10 @@
123
123
  "@uiw/react-json-view": "2.0.0-alpha.24",
124
124
  "react": "18.3.1",
125
125
  "react-dom": "18.3.1",
126
- "@repo/storybook-config": "0.0.1",
127
126
  "@repo/tailwind-config": "0.0.1",
128
- "@repo/tsup-config": "0.0.1",
129
- "@repo/vite-config": "0.0.1"
127
+ "@repo/vite-config": "0.0.1",
128
+ "@repo/storybook-config": "0.0.1",
129
+ "@repo/tsup-config": "0.0.1"
130
130
  },
131
131
  "scripts": {
132
132
  "build": "tsup --config node_modules/@repo/tsup-config/config.ts --dts-resolve",
@@ -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/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"]}