@fuf-stack/pixels 0.9.2 → 0.9.3

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 (69) hide show
  1. package/dist/Accordion/index.cjs +3 -3
  2. package/dist/Accordion/index.d.cts +4 -3
  3. package/dist/Accordion/index.d.ts +4 -3
  4. package/dist/Accordion/index.js +2 -2
  5. package/dist/{Accordion-DG6pcI_Q.d.cts → Accordion-DDUtWsfw.d.cts} +5 -5
  6. package/dist/{Accordion-DG6pcI_Q.d.ts → Accordion-Dv-zolQr.d.ts} +5 -5
  7. package/dist/Button/index.cjs +3 -3
  8. package/dist/Button/index.d.cts +4 -2
  9. package/dist/Button/index.d.ts +4 -2
  10. package/dist/Button/index.js +2 -2
  11. package/dist/{Button-DS4qK4Lf.d.cts → Button-B9f7IDnm.d.ts} +4 -4
  12. package/dist/{Button-DS4qK4Lf.d.ts → Button-B9f84IPN.d.cts} +4 -4
  13. package/dist/Card/index.cjs +3 -3
  14. package/dist/Card/index.d.cts +4 -2
  15. package/dist/Card/index.d.ts +4 -2
  16. package/dist/Card/index.js +2 -2
  17. package/dist/{Card-D5kspciY.d.cts → Card-C656HOc1.d.ts} +5 -5
  18. package/dist/{Card-D5kspciY.d.ts → Card-CcLRSJuE.d.cts} +5 -5
  19. package/dist/Json/index.cjs +4 -4
  20. package/dist/Json/index.js +3 -3
  21. package/dist/Modal/index.cjs +3 -3
  22. package/dist/Modal/index.d.cts +4 -2
  23. package/dist/Modal/index.d.ts +4 -2
  24. package/dist/Modal/index.js +2 -2
  25. package/dist/{Modal-Ck13vTaf.d.cts → Modal-7xA_lXvH.d.cts} +6 -6
  26. package/dist/{Modal-Ck13vTaf.d.ts → Modal-BNYlVV9i.d.ts} +6 -6
  27. package/dist/{chunk-Y7E62HGE.js → chunk-2FKNKEKZ.js} +2 -2
  28. package/dist/chunk-2FKNKEKZ.js.map +1 -0
  29. package/dist/{chunk-B36YERUR.cjs → chunk-2XGUY3UF.cjs} +1 -1
  30. package/dist/chunk-2XGUY3UF.cjs.map +1 -0
  31. package/dist/{chunk-IZ4GIYPV.js → chunk-4UDBXGTR.js} +2 -2
  32. package/dist/chunk-4UDBXGTR.js.map +1 -0
  33. package/dist/{chunk-WWAUBTWI.js → chunk-6VMKAUMC.js} +2 -2
  34. package/dist/chunk-6VMKAUMC.js.map +1 -0
  35. package/dist/{chunk-L2DCXJCR.cjs → chunk-6ZVROKDF.cjs} +4 -4
  36. package/dist/chunk-6ZVROKDF.cjs.map +1 -0
  37. package/dist/{chunk-TUCU3GGJ.js → chunk-DJNPSUNK.js} +2 -2
  38. package/dist/{chunk-CE745SSP.cjs → chunk-IOZ4D2BY.cjs} +4 -4
  39. package/dist/chunk-IOZ4D2BY.cjs.map +1 -0
  40. package/dist/{chunk-L5FAQ6D4.cjs → chunk-JCSGY4CU.cjs} +3 -3
  41. package/dist/chunk-JCSGY4CU.cjs.map +1 -0
  42. package/dist/{chunk-X7YCEBNX.js → chunk-OOBT7L2Z.js} +1 -1
  43. package/dist/chunk-OOBT7L2Z.js.map +1 -0
  44. package/dist/{chunk-DZJ4ACWV.js → chunk-PVCGQSAN.js} +2 -2
  45. package/dist/chunk-PVCGQSAN.js.map +1 -0
  46. package/dist/{chunk-WJ4VZ2CM.cjs → chunk-XMEOYOKY.cjs} +3 -3
  47. package/dist/{chunk-66VDLQF4.cjs → chunk-XSQOSEWG.cjs} +4 -4
  48. package/dist/chunk-XSQOSEWG.cjs.map +1 -0
  49. package/dist/index.cjs +7 -7
  50. package/dist/index.d.cts +5 -5
  51. package/dist/index.d.ts +5 -5
  52. package/dist/index.js +6 -6
  53. package/dist/utils/index.cjs +2 -2
  54. package/dist/utils/index.d.cts +4 -1
  55. package/dist/utils/index.d.ts +4 -1
  56. package/dist/utils/index.js +1 -1
  57. package/package.json +3 -3
  58. package/dist/chunk-66VDLQF4.cjs.map +0 -1
  59. package/dist/chunk-B36YERUR.cjs.map +0 -1
  60. package/dist/chunk-CE745SSP.cjs.map +0 -1
  61. package/dist/chunk-DZJ4ACWV.js.map +0 -1
  62. package/dist/chunk-IZ4GIYPV.js.map +0 -1
  63. package/dist/chunk-L2DCXJCR.cjs.map +0 -1
  64. package/dist/chunk-L5FAQ6D4.cjs.map +0 -1
  65. package/dist/chunk-WWAUBTWI.js.map +0 -1
  66. package/dist/chunk-X7YCEBNX.js.map +0 -1
  67. package/dist/chunk-Y7E62HGE.js.map +0 -1
  68. /package/dist/{chunk-TUCU3GGJ.js.map → chunk-DJNPSUNK.js.map} +0 -0
  69. /package/dist/{chunk-WJ4VZ2CM.cjs.map → chunk-XMEOYOKY.cjs.map} +0 -0
@@ -2,12 +2,12 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkL2DCXJCRcjs = require('../chunk-L2DCXJCR.cjs');
6
- require('../chunk-B36YERUR.cjs');
5
+ var _chunk6ZVROKDFcjs = require('../chunk-6ZVROKDF.cjs');
6
+ require('../chunk-2XGUY3UF.cjs');
7
7
  require('../chunk-DZUJEN5N.cjs');
8
8
 
9
9
 
10
10
 
11
11
 
12
- exports.Accordion = _chunkL2DCXJCRcjs.Accordion_default; exports.accordionVariants = _chunkL2DCXJCRcjs.accordionVariants; exports.default = _chunkL2DCXJCRcjs.Accordion_default2;
12
+ exports.Accordion = _chunk6ZVROKDFcjs.Accordion_default; exports.accordionVariants = _chunk6ZVROKDFcjs.accordionVariants; exports.default = _chunk6ZVROKDFcjs.Accordion_default2;
13
13
  //# sourceMappingURL=index.cjs.map
@@ -1,11 +1,12 @@
1
- import { A as Accordion } from '../Accordion-DG6pcI_Q.cjs';
2
- export { c as AccordionItemProps, b as AccordionProps, a as accordionVariants } from '../Accordion-DG6pcI_Q.cjs';
1
+ import { A as Accordion } from '../Accordion-DDUtWsfw.cjs';
2
+ export { c as AccordionItemProps, b as AccordionProps, a as accordionVariants } from '../Accordion-DDUtWsfw.cjs';
3
3
  import 'react/jsx-runtime';
4
4
  import 'tailwind-variants';
5
5
  import 'tailwind-variants/dist/config.js';
6
6
  import '@nextui-org/divider';
7
- import '@nextui-org/theme';
8
7
  import 'react';
8
+ import '../utils/index.cjs';
9
+ import '@nextui-org/theme';
9
10
 
10
11
 
11
12
 
@@ -1,11 +1,12 @@
1
- import { A as Accordion } from '../Accordion-DG6pcI_Q.js';
2
- export { c as AccordionItemProps, b as AccordionProps, a as accordionVariants } from '../Accordion-DG6pcI_Q.js';
1
+ import { A as Accordion } from '../Accordion-Dv-zolQr.js';
2
+ export { c as AccordionItemProps, b as AccordionProps, a as accordionVariants } from '../Accordion-Dv-zolQr.js';
3
3
  import 'react/jsx-runtime';
4
4
  import 'tailwind-variants';
5
5
  import 'tailwind-variants/dist/config.js';
6
6
  import '@nextui-org/divider';
7
- import '@nextui-org/theme';
8
7
  import 'react';
8
+ import '../utils/index.js';
9
+ import '@nextui-org/theme';
9
10
 
10
11
 
11
12
 
@@ -2,8 +2,8 @@ import {
2
2
  Accordion_default,
3
3
  Accordion_default2,
4
4
  accordionVariants
5
- } from "../chunk-DZJ4ACWV.js";
6
- import "../chunk-X7YCEBNX.js";
5
+ } from "../chunk-PVCGQSAN.js";
6
+ import "../chunk-OOBT7L2Z.js";
7
7
  import "../chunk-5WRI5ZAA.js";
8
8
  export {
9
9
  Accordion_default as Accordion,
@@ -2,8 +2,8 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as tailwind_variants from 'tailwind-variants';
3
3
  import * as tailwind_variants_dist_config_js from 'tailwind-variants/dist/config.js';
4
4
  import { DividerProps } from '@nextui-org/divider';
5
- import { VariantProps } from '@nextui-org/theme';
6
5
  import { ReactNode } from 'react';
6
+ import { TVProps, TVClassName } from './utils/index.cjs';
7
7
 
8
8
  declare const accordionVariants: tailwind_variants.TVReturnType<{
9
9
  indicatorLeft: {
@@ -105,13 +105,13 @@ interface AccordionItemProps {
105
105
  /** Accordion item subtitle */
106
106
  subtitle?: ReactNode;
107
107
  }
108
- type AccordionVariantProps = VariantProps<typeof accordionVariants>;
109
- type AccordionVariantSlots = Partial<Record<keyof ReturnType<typeof accordionVariants>, string>>;
110
- interface AccordionProps extends AccordionVariantProps {
108
+ type VariantProps = TVProps<typeof accordionVariants>;
109
+ type ClassName = TVClassName<typeof accordionVariants>;
110
+ interface AccordionProps extends VariantProps {
111
111
  /** Props for AccordionItems, will render the accordion items programmatically */
112
112
  accordionItems?: AccordionItemProps[];
113
113
  /** CSS class name */
114
- className?: string | AccordionVariantSlots;
114
+ className?: ClassName;
115
115
  /** Array of keys for the AccordionItem(s) to be expanded by default */
116
116
  defaultSelectedKeys?: undefined | 'all' | Iterable<number | string>;
117
117
  /** Disables the Accordion */
@@ -2,8 +2,8 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as tailwind_variants from 'tailwind-variants';
3
3
  import * as tailwind_variants_dist_config_js from 'tailwind-variants/dist/config.js';
4
4
  import { DividerProps } from '@nextui-org/divider';
5
- import { VariantProps } from '@nextui-org/theme';
6
5
  import { ReactNode } from 'react';
6
+ import { TVProps, TVClassName } from './utils/index.js';
7
7
 
8
8
  declare const accordionVariants: tailwind_variants.TVReturnType<{
9
9
  indicatorLeft: {
@@ -105,13 +105,13 @@ interface AccordionItemProps {
105
105
  /** Accordion item subtitle */
106
106
  subtitle?: ReactNode;
107
107
  }
108
- type AccordionVariantProps = VariantProps<typeof accordionVariants>;
109
- type AccordionVariantSlots = Partial<Record<keyof ReturnType<typeof accordionVariants>, string>>;
110
- interface AccordionProps extends AccordionVariantProps {
108
+ type VariantProps = TVProps<typeof accordionVariants>;
109
+ type ClassName = TVClassName<typeof accordionVariants>;
110
+ interface AccordionProps extends VariantProps {
111
111
  /** Props for AccordionItems, will render the accordion items programmatically */
112
112
  accordionItems?: AccordionItemProps[];
113
113
  /** CSS class name */
114
- className?: string | AccordionVariantSlots;
114
+ className?: ClassName;
115
115
  /** Array of keys for the AccordionItem(s) to be expanded by default */
116
116
  defaultSelectedKeys?: undefined | 'all' | Iterable<number | string>;
117
117
  /** Disables the Accordion */
@@ -2,12 +2,12 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkL5FAQ6D4cjs = require('../chunk-L5FAQ6D4.cjs');
6
- require('../chunk-B36YERUR.cjs');
5
+ var _chunkJCSGY4CUcjs = require('../chunk-JCSGY4CU.cjs');
6
+ require('../chunk-2XGUY3UF.cjs');
7
7
  require('../chunk-DZUJEN5N.cjs');
8
8
 
9
9
 
10
10
 
11
11
 
12
- exports.Button = _chunkL5FAQ6D4cjs.Button_default; exports.buttonVariants = _chunkL5FAQ6D4cjs.buttonVariants; exports.default = _chunkL5FAQ6D4cjs.Button_default2;
12
+ exports.Button = _chunkJCSGY4CUcjs.Button_default; exports.buttonVariants = _chunkJCSGY4CUcjs.buttonVariants; exports.default = _chunkJCSGY4CUcjs.Button_default2;
13
13
  //# sourceMappingURL=index.cjs.map
@@ -1,10 +1,12 @@
1
- import { B as Button } from '../Button-DS4qK4Lf.cjs';
2
- export { a as ButtonProps, b as buttonVariants } from '../Button-DS4qK4Lf.cjs';
1
+ import { B as Button } from '../Button-B9f84IPN.cjs';
2
+ export { a as ButtonProps, b as buttonVariants } from '../Button-B9f84IPN.cjs';
3
3
  import 'react/jsx-runtime';
4
4
  import 'tailwind-variants';
5
5
  import 'tailwind-variants/dist/config.js';
6
6
  import '@nextui-org/button';
7
7
  import 'react';
8
+ import '../utils/index.cjs';
9
+ import '@nextui-org/theme';
8
10
 
9
11
 
10
12
 
@@ -1,10 +1,12 @@
1
- import { B as Button } from '../Button-DS4qK4Lf.js';
2
- export { a as ButtonProps, b as buttonVariants } from '../Button-DS4qK4Lf.js';
1
+ import { B as Button } from '../Button-B9f7IDnm.js';
2
+ export { a as ButtonProps, b as buttonVariants } from '../Button-B9f7IDnm.js';
3
3
  import 'react/jsx-runtime';
4
4
  import 'tailwind-variants';
5
5
  import 'tailwind-variants/dist/config.js';
6
6
  import '@nextui-org/button';
7
7
  import 'react';
8
+ import '../utils/index.js';
9
+ import '@nextui-org/theme';
8
10
 
9
11
 
10
12
 
@@ -2,8 +2,8 @@ import {
2
2
  Button_default,
3
3
  Button_default2,
4
4
  buttonVariants
5
- } from "../chunk-IZ4GIYPV.js";
6
- import "../chunk-X7YCEBNX.js";
5
+ } from "../chunk-4UDBXGTR.js";
6
+ import "../chunk-OOBT7L2Z.js";
7
7
  import "../chunk-5WRI5ZAA.js";
8
8
  export {
9
9
  Button_default as Button,
@@ -1,9 +1,9 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as tailwind_variants from 'tailwind-variants';
3
- import { VariantProps } from 'tailwind-variants';
4
3
  import * as tailwind_variants_dist_config_js from 'tailwind-variants/dist/config.js';
5
4
  import { ButtonProps as ButtonProps$1 } from '@nextui-org/button';
6
5
  import { ReactNode } from 'react';
6
+ import { TVProps } from './utils/index.js';
7
7
 
8
8
  declare const buttonVariants: tailwind_variants.TVReturnType<{
9
9
  color: {
@@ -132,14 +132,14 @@ declare const buttonVariants: tailwind_variants.TVReturnType<{
132
132
  ghost: string;
133
133
  };
134
134
  }>, unknown, unknown, undefined>>;
135
- type ButtonVariantProps = VariantProps<typeof buttonVariants>;
136
- interface ButtonProps extends ButtonVariantProps {
135
+ type VariantProps = TVProps<typeof buttonVariants>;
136
+ interface ButtonProps extends VariantProps {
137
137
  /** sets HTML aria-label attribute */
138
138
  ariaLabel?: string;
139
139
  /** child components */
140
140
  children?: ReactNode;
141
141
  /** CSS class name */
142
- className?: string | string[];
142
+ className?: string;
143
143
  /** next ui button color */
144
144
  color?: ButtonProps$1['color'];
145
145
  /** disables function of the button. */
@@ -1,9 +1,9 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as tailwind_variants from 'tailwind-variants';
3
- import { VariantProps } from 'tailwind-variants';
4
3
  import * as tailwind_variants_dist_config_js from 'tailwind-variants/dist/config.js';
5
4
  import { ButtonProps as ButtonProps$1 } from '@nextui-org/button';
6
5
  import { ReactNode } from 'react';
6
+ import { TVProps } from './utils/index.cjs';
7
7
 
8
8
  declare const buttonVariants: tailwind_variants.TVReturnType<{
9
9
  color: {
@@ -132,14 +132,14 @@ declare const buttonVariants: tailwind_variants.TVReturnType<{
132
132
  ghost: string;
133
133
  };
134
134
  }>, unknown, unknown, undefined>>;
135
- type ButtonVariantProps = VariantProps<typeof buttonVariants>;
136
- interface ButtonProps extends ButtonVariantProps {
135
+ type VariantProps = TVProps<typeof buttonVariants>;
136
+ interface ButtonProps extends VariantProps {
137
137
  /** sets HTML aria-label attribute */
138
138
  ariaLabel?: string;
139
139
  /** child components */
140
140
  children?: ReactNode;
141
141
  /** CSS class name */
142
- className?: string | string[];
142
+ className?: string;
143
143
  /** next ui button color */
144
144
  color?: ButtonProps$1['color'];
145
145
  /** disables function of the button. */
@@ -2,12 +2,12 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkCE745SSPcjs = require('../chunk-CE745SSP.cjs');
6
- require('../chunk-B36YERUR.cjs');
5
+ var _chunkIOZ4D2BYcjs = require('../chunk-IOZ4D2BY.cjs');
6
+ require('../chunk-2XGUY3UF.cjs');
7
7
  require('../chunk-DZUJEN5N.cjs');
8
8
 
9
9
 
10
10
 
11
11
 
12
- exports.Card = _chunkCE745SSPcjs.Card_default; exports.cardVariants = _chunkCE745SSPcjs.cardVariants; exports.default = _chunkCE745SSPcjs.Card_default2;
12
+ exports.Card = _chunkIOZ4D2BYcjs.Card_default; exports.cardVariants = _chunkIOZ4D2BYcjs.cardVariants; exports.default = _chunkIOZ4D2BYcjs.Card_default2;
13
13
  //# sourceMappingURL=index.cjs.map
@@ -1,9 +1,11 @@
1
- import { C as Card } from '../Card-D5kspciY.cjs';
2
- export { a as CardProps, c as cardVariants } from '../Card-D5kspciY.cjs';
1
+ import { C as Card } from '../Card-CcLRSJuE.cjs';
2
+ export { a as CardProps, c as cardVariants } from '../Card-CcLRSJuE.cjs';
3
3
  import 'react/jsx-runtime';
4
4
  import 'tailwind-variants/dist/config.js';
5
5
  import 'tailwind-variants';
6
6
  import 'react';
7
+ import '../utils/index.cjs';
8
+ import '@nextui-org/theme';
7
9
 
8
10
 
9
11
 
@@ -1,9 +1,11 @@
1
- import { C as Card } from '../Card-D5kspciY.js';
2
- export { a as CardProps, c as cardVariants } from '../Card-D5kspciY.js';
1
+ import { C as Card } from '../Card-C656HOc1.js';
2
+ export { a as CardProps, c as cardVariants } from '../Card-C656HOc1.js';
3
3
  import 'react/jsx-runtime';
4
4
  import 'tailwind-variants/dist/config.js';
5
5
  import 'tailwind-variants';
6
6
  import 'react';
7
+ import '../utils/index.js';
8
+ import '@nextui-org/theme';
7
9
 
8
10
 
9
11
 
@@ -2,8 +2,8 @@ import {
2
2
  Card_default,
3
3
  Card_default2,
4
4
  cardVariants
5
- } from "../chunk-WWAUBTWI.js";
6
- import "../chunk-X7YCEBNX.js";
5
+ } from "../chunk-6VMKAUMC.js";
6
+ import "../chunk-OOBT7L2Z.js";
7
7
  import "../chunk-5WRI5ZAA.js";
8
8
  export {
9
9
  Card_default as Card,
@@ -1,8 +1,8 @@
1
1
  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
- import { VariantProps } from 'tailwind-variants';
5
4
  import { ReactNode } from 'react';
5
+ import { TVProps, TVClassName } from './utils/index.js';
6
6
 
7
7
  declare const cardVariants: tailwind_variants.TVReturnType<{
8
8
  [key: string]: {
@@ -73,13 +73,13 @@ declare const cardVariants: tailwind_variants.TVReturnType<{
73
73
  };
74
74
  };
75
75
  } | {}>, unknown, unknown, undefined>>;
76
- type CardVariantProps = VariantProps<typeof cardVariants>;
77
- type CardVariantSlots = Partial<Record<keyof ReturnType<typeof cardVariants>, string>>;
78
- interface CardProps extends CardVariantProps {
76
+ type VariantProps = TVProps<typeof cardVariants>;
77
+ type ClassName = TVClassName<typeof cardVariants>;
78
+ interface CardProps extends VariantProps {
79
79
  /** card body content */
80
80
  children?: ReactNode;
81
81
  /** CSS class name */
82
- className?: string | CardVariantSlots;
82
+ className?: ClassName;
83
83
  /** footer content */
84
84
  footer?: ReactNode;
85
85
  /** header content */
@@ -1,8 +1,8 @@
1
1
  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
- import { VariantProps } from 'tailwind-variants';
5
4
  import { ReactNode } from 'react';
5
+ import { TVProps, TVClassName } from './utils/index.cjs';
6
6
 
7
7
  declare const cardVariants: tailwind_variants.TVReturnType<{
8
8
  [key: string]: {
@@ -73,13 +73,13 @@ declare const cardVariants: tailwind_variants.TVReturnType<{
73
73
  };
74
74
  };
75
75
  } | {}>, unknown, unknown, undefined>>;
76
- type CardVariantProps = VariantProps<typeof cardVariants>;
77
- type CardVariantSlots = Partial<Record<keyof ReturnType<typeof cardVariants>, string>>;
78
- interface CardProps extends CardVariantProps {
76
+ type VariantProps = TVProps<typeof cardVariants>;
77
+ type ClassName = TVClassName<typeof cardVariants>;
78
+ interface CardProps extends VariantProps {
79
79
  /** card body content */
80
80
  children?: ReactNode;
81
81
  /** CSS class name */
82
- className?: string | CardVariantSlots;
82
+ className?: ClassName;
83
83
  /** footer content */
84
84
  footer?: ReactNode;
85
85
  /** header content */
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkWJ4VZ2CMcjs = require('../chunk-WJ4VZ2CM.cjs');
5
- require('../chunk-L5FAQ6D4.cjs');
6
- require('../chunk-B36YERUR.cjs');
4
+ var _chunkXMEOYOKYcjs = require('../chunk-XMEOYOKY.cjs');
5
+ require('../chunk-JCSGY4CU.cjs');
6
+ require('../chunk-2XGUY3UF.cjs');
7
7
  require('../chunk-DZUJEN5N.cjs');
8
8
 
9
9
 
10
10
 
11
- exports.Json = _chunkWJ4VZ2CMcjs.Json_default; exports.default = _chunkWJ4VZ2CMcjs.Json_default2;
11
+ exports.Json = _chunkXMEOYOKYcjs.Json_default; exports.default = _chunkXMEOYOKYcjs.Json_default2;
12
12
  //# sourceMappingURL=index.cjs.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  Json_default,
3
3
  Json_default2
4
- } from "../chunk-TUCU3GGJ.js";
5
- import "../chunk-IZ4GIYPV.js";
6
- import "../chunk-X7YCEBNX.js";
4
+ } from "../chunk-DJNPSUNK.js";
5
+ import "../chunk-4UDBXGTR.js";
6
+ import "../chunk-OOBT7L2Z.js";
7
7
  import "../chunk-5WRI5ZAA.js";
8
8
  export {
9
9
  Json_default as Json,
@@ -2,12 +2,12 @@
2
2
 
3
3
 
4
4
 
5
- var _chunk66VDLQF4cjs = require('../chunk-66VDLQF4.cjs');
6
- require('../chunk-B36YERUR.cjs');
5
+ var _chunkXSQOSEWGcjs = require('../chunk-XSQOSEWG.cjs');
6
+ require('../chunk-2XGUY3UF.cjs');
7
7
  require('../chunk-DZUJEN5N.cjs');
8
8
 
9
9
 
10
10
 
11
11
 
12
- exports.Modal = _chunk66VDLQF4cjs.Modal_default; exports.default = _chunk66VDLQF4cjs.Modal_default2; exports.modalVariants = _chunk66VDLQF4cjs.modalVariants;
12
+ exports.Modal = _chunkXSQOSEWGcjs.Modal_default; exports.default = _chunkXSQOSEWGcjs.Modal_default2; exports.modalVariants = _chunkXSQOSEWGcjs.modalVariants;
13
13
  //# sourceMappingURL=index.cjs.map
@@ -1,9 +1,11 @@
1
- import { M as Modal } from '../Modal-Ck13vTaf.cjs';
2
- export { a as ModalProps, m as modalVariants } from '../Modal-Ck13vTaf.cjs';
1
+ import { M as Modal } from '../Modal-7xA_lXvH.cjs';
2
+ export { a as ModalProps, m as modalVariants } from '../Modal-7xA_lXvH.cjs';
3
3
  import 'react/jsx-runtime';
4
4
  import 'tailwind-variants';
5
5
  import 'tailwind-variants/dist/config.js';
6
6
  import 'react';
7
+ import '../utils/index.cjs';
8
+ import '@nextui-org/theme';
7
9
 
8
10
 
9
11
 
@@ -1,9 +1,11 @@
1
- import { M as Modal } from '../Modal-Ck13vTaf.js';
2
- export { a as ModalProps, m as modalVariants } from '../Modal-Ck13vTaf.js';
1
+ import { M as Modal } from '../Modal-BNYlVV9i.js';
2
+ export { a as ModalProps, m as modalVariants } from '../Modal-BNYlVV9i.js';
3
3
  import 'react/jsx-runtime';
4
4
  import 'tailwind-variants';
5
5
  import 'tailwind-variants/dist/config.js';
6
6
  import 'react';
7
+ import '../utils/index.js';
8
+ import '@nextui-org/theme';
7
9
 
8
10
 
9
11
 
@@ -2,8 +2,8 @@ import {
2
2
  Modal_default,
3
3
  Modal_default2,
4
4
  modalVariants
5
- } from "../chunk-Y7E62HGE.js";
6
- import "../chunk-X7YCEBNX.js";
5
+ } from "../chunk-2FKNKEKZ.js";
6
+ import "../chunk-OOBT7L2Z.js";
7
7
  import "../chunk-5WRI5ZAA.js";
8
8
  export {
9
9
  Modal_default as Modal,
@@ -1,8 +1,8 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as tailwind_variants from 'tailwind-variants';
3
- import { VariantProps } from 'tailwind-variants';
4
3
  import * as tailwind_variants_dist_config_js from 'tailwind-variants/dist/config.js';
5
4
  import { ReactNode } from 'react';
5
+ import { TVProps, TVClassName } from './utils/index.cjs';
6
6
 
7
7
  declare const modalVariants: tailwind_variants.TVReturnType<{
8
8
  size: {
@@ -155,13 +155,13 @@ declare const modalVariants: tailwind_variants.TVReturnType<{
155
155
  };
156
156
  };
157
157
  }>, unknown, unknown, undefined>>;
158
- type ModalVariantProps = VariantProps<typeof modalVariants>;
159
- type ModalVariantSlots = Partial<Record<keyof ReturnType<typeof modalVariants>, string>>;
160
- interface ModalProps extends ModalVariantProps {
158
+ type VariantProps = TVProps<typeof modalVariants>;
159
+ type ClassName = TVClassName<typeof modalVariants>;
160
+ interface ModalProps extends VariantProps {
161
161
  /** modal body content */
162
162
  children?: ReactNode;
163
163
  /** CSS class name */
164
- className?: string | ModalVariantSlots;
164
+ className?: ClassName;
165
165
  /** modal footer */
166
166
  footer?: ReactNode;
167
167
  /** modal header */
@@ -171,7 +171,7 @@ interface ModalProps extends ModalVariantProps {
171
171
  /** close event handler */
172
172
  onClose: () => void;
173
173
  /** modal size */
174
- size?: ModalVariantProps['size'];
174
+ size?: VariantProps['size'];
175
175
  /** HTML data-testid attribute used in e2e tests */
176
176
  testId?: string;
177
177
  }
@@ -1,8 +1,8 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as tailwind_variants from 'tailwind-variants';
3
- import { VariantProps } from 'tailwind-variants';
4
3
  import * as tailwind_variants_dist_config_js from 'tailwind-variants/dist/config.js';
5
4
  import { ReactNode } from 'react';
5
+ import { TVProps, TVClassName } from './utils/index.js';
6
6
 
7
7
  declare const modalVariants: tailwind_variants.TVReturnType<{
8
8
  size: {
@@ -155,13 +155,13 @@ declare const modalVariants: tailwind_variants.TVReturnType<{
155
155
  };
156
156
  };
157
157
  }>, unknown, unknown, undefined>>;
158
- type ModalVariantProps = VariantProps<typeof modalVariants>;
159
- type ModalVariantSlots = Partial<Record<keyof ReturnType<typeof modalVariants>, string>>;
160
- interface ModalProps extends ModalVariantProps {
158
+ type VariantProps = TVProps<typeof modalVariants>;
159
+ type ClassName = TVClassName<typeof modalVariants>;
160
+ interface ModalProps extends VariantProps {
161
161
  /** modal body content */
162
162
  children?: ReactNode;
163
163
  /** CSS class name */
164
- className?: string | ModalVariantSlots;
164
+ className?: ClassName;
165
165
  /** modal footer */
166
166
  footer?: ReactNode;
167
167
  /** modal header */
@@ -171,7 +171,7 @@ interface ModalProps extends ModalVariantProps {
171
171
  /** close event handler */
172
172
  onClose: () => void;
173
173
  /** modal size */
174
- size?: ModalVariantProps['size'];
174
+ size?: VariantProps['size'];
175
175
  /** HTML data-testid attribute used in e2e tests */
176
176
  testId?: string;
177
177
  }
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  tv,
3
3
  variantsToClassNames
4
- } from "./chunk-X7YCEBNX.js";
4
+ } from "./chunk-OOBT7L2Z.js";
5
5
 
6
6
  // src/Modal/Modal.tsx
7
7
  import {
@@ -72,4 +72,4 @@ export {
72
72
  Modal_default,
73
73
  Modal_default2
74
74
  };
75
- //# sourceMappingURL=chunk-Y7E62HGE.js.map
75
+ //# sourceMappingURL=chunk-2FKNKEKZ.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/Modal/Modal.tsx","../src/Modal/index.ts"],"sourcesContent":["import type { ReactNode } from 'react';\nimport type { TVClassName, TVProps } from '../utils';\n\nimport {\n Modal as NextModal,\n ModalBody as NextModalBody,\n ModalContent as NextModalContent,\n ModalFooter as NextModalFooter,\n ModalHeader as NextModalHeader,\n} from '@nextui-org/modal';\n\nimport { tv, variantsToClassNames } from '../utils';\n\n// modal variants\nexport const modalVariants = tv({\n slots: {\n backdrop: '',\n base: '',\n body: '',\n closeButton: '',\n footer: '',\n header: '',\n wrapper: '',\n },\n variants: {\n size: {\n sm: { base: 'max-w-sm' },\n md: { base: 'max-w-md' },\n lg: { base: 'max-w-lg' },\n xl: { base: 'max-w-5xl' },\n full: { base: 'h-[80dvh] max-w-full' },\n },\n },\n});\n\ntype VariantProps = TVProps<typeof modalVariants>;\ntype ClassName = TVClassName<typeof modalVariants>;\n\nexport interface ModalProps extends VariantProps {\n /** modal body content */\n children?: ReactNode;\n /** CSS class name */\n className?: ClassName;\n /** modal footer */\n footer?: ReactNode;\n /** modal header */\n header?: ReactNode;\n /** open state (controlled) */\n isOpen: boolean;\n /** close event handler */\n onClose: () => void;\n /** modal size */\n size?: VariantProps['size'];\n /** HTML data-testid attribute used in e2e tests */\n testId?: string;\n}\n\n/**\n * Modal component based on [NextUI Modal](https://nextui.org/docs/components/modal)\n */\nconst Modal = ({\n children = null,\n className = undefined,\n footer = undefined,\n header = undefined,\n isOpen,\n onClose,\n size = 'md',\n testId = undefined,\n}: ModalProps) => {\n // classNames from slots\n const variants = modalVariants({ size });\n const classNames = variantsToClassNames(variants, className, 'base');\n\n return (\n <NextModal\n backdrop=\"opaque\"\n classNames={classNames}\n data-testid={testId}\n isOpen={isOpen}\n onClose={onClose}\n placement=\"center\"\n scrollBehavior=\"inside\"\n >\n <NextModalContent data-testid={testId ? `modal_${testId}` : 'modal'}>\n {() => (\n <>\n {header && <NextModalHeader>{header}</NextModalHeader>}\n <NextModalBody id=\"modal_body\">{children}</NextModalBody>\n {footer && <NextModalFooter>{footer}</NextModalFooter>}\n </>\n )}\n </NextModalContent>\n </NextModal>\n );\n};\n\nexport default Modal;\n","import Modal, { modalVariants } from './Modal';\n\nexport type { ModalProps } from './Modal';\n\nexport { Modal, modalVariants };\n\nexport default Modal;\n"],"mappings":";;;;;;AAGA;AAAA,EACE,SAAS;AAAA,EACT,aAAa;AAAA,EACb,gBAAgB;AAAA,EAChB,eAAe;AAAA,EACf,eAAe;AAAA,OACV;AA6EG,mBACa,KADb;AAxEH,IAAM,gBAAgB,GAAG;AAAA,EAC9B,OAAO;AAAA,IACL,UAAU;AAAA,IACV,MAAM;AAAA,IACN,MAAM;AAAA,IACN,aAAa;AAAA,IACb,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,SAAS;AAAA,EACX;AAAA,EACA,UAAU;AAAA,IACR,MAAM;AAAA,MACJ,IAAI,EAAE,MAAM,WAAW;AAAA,MACvB,IAAI,EAAE,MAAM,WAAW;AAAA,MACvB,IAAI,EAAE,MAAM,WAAW;AAAA,MACvB,IAAI,EAAE,MAAM,YAAY;AAAA,MACxB,MAAM,EAAE,MAAM,uBAAuB;AAAA,IACvC;AAAA,EACF;AACF,CAAC;AA2BD,IAAM,QAAQ,CAAC;AAAA,EACb,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,SAAS;AAAA,EACT,SAAS;AAAA,EACT;AAAA,EACA;AAAA,EACA,OAAO;AAAA,EACP,SAAS;AACX,MAAkB;AAEhB,QAAM,WAAW,cAAc,EAAE,KAAK,CAAC;AACvC,QAAM,aAAa,qBAAqB,UAAU,WAAW,MAAM;AAEnE,SACE;AAAA,IAAC;AAAA;AAAA,MACC,UAAS;AAAA,MACT;AAAA,MACA,eAAa;AAAA,MACb;AAAA,MACA;AAAA,MACA,WAAU;AAAA,MACV,gBAAe;AAAA,MAEf,8BAAC,oBAAiB,eAAa,SAAS,SAAS,MAAM,KAAK,SACzD,gBACC,iCACG;AAAA,kBAAU,oBAAC,mBAAiB,kBAAO;AAAA,QACpC,oBAAC,iBAAc,IAAG,cAAc,UAAS;AAAA,QACxC,UAAU,oBAAC,mBAAiB,kBAAO;AAAA,SACtC,GAEJ;AAAA;AAAA,EACF;AAEJ;AAEA,IAAO,gBAAQ;;;AC3Ff,IAAOA,iBAAQ;","names":["Modal_default"]}
@@ -26,4 +26,4 @@ var variantsToClassNames = (variants, className, baseSlot) => {
26
26
 
27
27
 
28
28
  exports.nextui = _theme.nextui; exports.variantsToClassNames = variantsToClassNames; exports.tv = _tailwindvariants.tv;
29
- //# sourceMappingURL=chunk-B36YERUR.cjs.map
29
+ //# sourceMappingURL=chunk-2XGUY3UF.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/utils/theme.ts","../src/utils/tv.ts"],"names":[],"mappings":";AACA,SAAS,cAAc;;;ACCvB,SAAS,UAAU;AAYZ,IAAM,uBAAuB,CAClC,UACA,WACA,aAC4B;AAC5B,QAAM,eAAgB,OAAO,cAAc,YAAY,aAAc,CAAC;AAEtE,SAAO,OAAO;AAAA,IACZ,OAAO,QAAQ,QAAQ,EAAE,IAAI,CAAC,CAAC,MAAM,SAAS,MAAM;AAAA,MAClD;AAAA,MACA,YAAY,SAAS;AAAA;AAAA,QAEhB,UAAU;AAAA,UACT,WACE,OAAO,cAAc,WAAW,YAAY,aAAa,IAAI;AAAA,QACjE,CAAC;AAAA;AAAA;AAAA,QAEA,UAAU,EAAE,WAAW,aAAa,IAAI,EAAE,CAAC;AAAA;AAAA,IAClD,CAAC;AAAA,EACH;AACF","sourcesContent":["/* eslint-disable import/prefer-default-export */\nexport { nextui } from '@nextui-org/theme';\n","import type { VariantProps } from '@nextui-org/theme';\n\nexport { tv } from 'tailwind-variants';\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport type TVProps<Component extends (...args: any) => any> =\n VariantProps<Component>;\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport type TVClassName<Component extends (...args: any) => any> =\n | Partial<Record<keyof ReturnType<Component>, string>>\n | string;\n\n// converts tailwind-variants slots instance to actual classnames object\nexport const variantsToClassNames = <T extends Record<string, unknown>>(\n variants: T,\n className?: string | Record<string, string>,\n baseSlot?: keyof T,\n): Record<keyof T, string> => {\n const classNameObj = (typeof className === 'object' && className) || {};\n // @ts-expect-error could be improved\n return Object.fromEntries(\n Object.entries(variants).map(([slot, variantFn]) => [\n slot as keyof T,\n baseSlot && slot === baseSlot\n ? // @ts-expect-error could be improved\n (variantFn({\n className:\n typeof className === 'string' ? className : classNameObj[slot],\n }) as string)\n : // @ts-expect-error could be improved\n (variantFn({ className: classNameObj[slot] }) as string),\n ]),\n );\n};\n"]}
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tv
3
- } from "./chunk-X7YCEBNX.js";
3
+ } from "./chunk-OOBT7L2Z.js";
4
4
 
5
5
  // src/Button/Button.tsx
6
6
  import { Button as NextButton } from "@nextui-org/button";
@@ -125,4 +125,4 @@ export {
125
125
  Button_default,
126
126
  Button_default2
127
127
  };
128
- //# sourceMappingURL=chunk-IZ4GIYPV.js.map
128
+ //# sourceMappingURL=chunk-4UDBXGTR.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/Button/Button.tsx","../src/Button/subcomponents/LoadingSpinner.tsx","../src/Button/index.ts"],"sourcesContent":["import type { ButtonProps as NextButtonProps } from '@nextui-org/button';\nimport type { ReactNode } from 'react';\nimport type { TVProps } from '../utils';\n\nimport { Button as NextButton } from '@nextui-org/button';\n\nimport { tv } from '../utils';\nimport LoadingSpinner from './subcomponents/LoadingSpinner';\n\nexport const buttonVariants = tv({\n base: '',\n variants: {\n color: {\n default: '',\n primary: '',\n secondary: '',\n success: '',\n warning: '',\n danger: '',\n },\n variant: {\n solid: '',\n bordered: '',\n light: '',\n flat: '',\n faded: '',\n shadow: '',\n ghost: '',\n },\n },\n compoundVariants: [\n // white text on solid / shadow success button\n {\n color: 'success',\n variant: ['solid', 'shadow'],\n class: 'text-white',\n },\n // white text on solid / shadow warning button\n {\n color: 'warning',\n variant: ['solid', 'shadow'],\n class: 'text-white',\n },\n ],\n});\n\ntype VariantProps = TVProps<typeof buttonVariants>;\n\nexport interface ButtonProps extends VariantProps {\n /** sets HTML aria-label attribute */\n ariaLabel?: string;\n /** child components */\n children?: ReactNode;\n /** CSS class name */\n className?: string;\n /** next ui button color */\n color?: NextButtonProps['color'];\n /** disables function of the button. */\n disabled?: boolean;\n /** disables all button animations */\n disableAnimation?: boolean;\n /** If set loading animation is shown */\n loading?: boolean;\n /** optional icon */\n icon?: ReactNode;\n /** on click event */\n onClick?: NextButtonProps['onPress'];\n /** 3 size options */\n size?: NextButtonProps['size'];\n /** HTML data-testid attribute used in e2e tests */\n testId?: string;\n /** sets the button type. */\n type?: 'button' | 'submit' | 'reset' | undefined;\n /** next ui button variants */\n variant?: NextButtonProps['variant'];\n}\n\n/**\n * Button component based on [NextUI Button](https://nextui.org/docs/components/button)\n */\nconst Button = ({\n ariaLabel = undefined,\n children = undefined,\n className = undefined,\n color = 'default',\n disabled = false,\n disableAnimation = false,\n icon = undefined,\n loading = false,\n onClick = undefined,\n size = undefined,\n testId = undefined,\n type = undefined,\n variant = 'solid',\n}: ButtonProps) => {\n return (\n <NextButton\n aria-label={ariaLabel}\n className={buttonVariants({ color, variant, className })}\n color={color}\n data-testid={testId}\n disableAnimation={disableAnimation}\n disableRipple={disableAnimation}\n isDisabled={disabled}\n isIconOnly={!!(icon && !children)}\n isLoading={loading}\n onPress={onClick}\n size={size}\n spinner={<LoadingSpinner />}\n type={type}\n variant={variant}\n >\n {icon}\n {children}\n </NextButton>\n );\n};\n\nexport default Button;\n","/**\n * svg loading spinner for button\n * @see https://nextui.org/docs/components/button#loading\n * */\nexport default () => (\n <svg\n className=\"animate-spin h-5 w-5 text-current\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <circle\n className=\"opacity-25\"\n cx=\"12\"\n cy=\"12\"\n r=\"10\"\n stroke=\"currentColor\"\n strokeWidth=\"4\"\n />\n <path\n className=\"opacity-75\"\n d=\"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z\"\n fill=\"currentColor\"\n />\n </svg>\n);\n","import Button, { buttonVariants } from './Button';\n\nexport type { ButtonProps } from './Button';\n\nexport { Button, buttonVariants };\n\nexport default Button;\n"],"mappings":";;;;;AAIA,SAAS,UAAU,kBAAkB;;;ACCnC,SAME,KANF;AADF,IAAO,yBAAQ,MACb;AAAA,EAAC;AAAA;AAAA,IACC,WAAU;AAAA,IACV,MAAK;AAAA,IACL,SAAQ;AAAA,IACR,OAAM;AAAA,IAEN;AAAA;AAAA,QAAC;AAAA;AAAA,UACC,WAAU;AAAA,UACV,IAAG;AAAA,UACH,IAAG;AAAA,UACH,GAAE;AAAA,UACF,QAAO;AAAA,UACP,aAAY;AAAA;AAAA,MACd;AAAA,MACA;AAAA,QAAC;AAAA;AAAA,UACC,WAAU;AAAA,UACV,GAAE;AAAA,UACF,MAAK;AAAA;AAAA,MACP;AAAA;AAAA;AACF;;;ADwEE,SAYW,OAAAA,MAZX,QAAAC,aAAA;AAvFG,IAAM,iBAAiB,GAAG;AAAA,EAC/B,MAAM;AAAA,EACN,UAAU;AAAA,IACR,OAAO;AAAA,MACL,SAAS;AAAA,MACT,SAAS;AAAA,MACT,WAAW;AAAA,MACX,SAAS;AAAA,MACT,SAAS;AAAA,MACT,QAAQ;AAAA,IACV;AAAA,IACA,SAAS;AAAA,MACP,OAAO;AAAA,MACP,UAAU;AAAA,MACV,OAAO;AAAA,MACP,MAAM;AAAA,MACN,OAAO;AAAA,MACP,QAAQ;AAAA,MACR,OAAO;AAAA,IACT;AAAA,EACF;AAAA,EACA,kBAAkB;AAAA;AAAA,IAEhB;AAAA,MACE,OAAO;AAAA,MACP,SAAS,CAAC,SAAS,QAAQ;AAAA,MAC3B,OAAO;AAAA,IACT;AAAA;AAAA,IAEA;AAAA,MACE,OAAO;AAAA,MACP,SAAS,CAAC,SAAS,QAAQ;AAAA,MAC3B,OAAO;AAAA,IACT;AAAA,EACF;AACF,CAAC;AAoCD,IAAM,SAAS,CAAC;AAAA,EACd,YAAY;AAAA,EACZ,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,QAAQ;AAAA,EACR,WAAW;AAAA,EACX,mBAAmB;AAAA,EACnB,OAAO;AAAA,EACP,UAAU;AAAA,EACV,UAAU;AAAA,EACV,OAAO;AAAA,EACP,SAAS;AAAA,EACT,OAAO;AAAA,EACP,UAAU;AACZ,MAAmB;AACjB,SACE,gBAAAA;AAAA,IAAC;AAAA;AAAA,MACC,cAAY;AAAA,MACZ,WAAW,eAAe,EAAE,OAAO,SAAS,UAAU,CAAC;AAAA,MACvD;AAAA,MACA,eAAa;AAAA,MACb;AAAA,MACA,eAAe;AAAA,MACf,YAAY;AAAA,MACZ,YAAY,CAAC,EAAE,QAAQ,CAAC;AAAA,MACxB,WAAW;AAAA,MACX,SAAS;AAAA,MACT;AAAA,MACA,SAAS,gBAAAD,KAAC,0BAAe;AAAA,MACzB;AAAA,MACA;AAAA,MAEC;AAAA;AAAA,QACA;AAAA;AAAA;AAAA,EACH;AAEJ;AAEA,IAAO,iBAAQ;;;AEhHf,IAAOE,kBAAQ;","names":["jsx","jsxs","Button_default"]}
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  tv,
3
3
  variantsToClassNames
4
- } from "./chunk-X7YCEBNX.js";
4
+ } from "./chunk-OOBT7L2Z.js";
5
5
 
6
6
  // src/Card/Card.tsx
7
7
  import {
@@ -67,4 +67,4 @@ export {
67
67
  Card_default,
68
68
  Card_default2
69
69
  };
70
- //# sourceMappingURL=chunk-WWAUBTWI.js.map
70
+ //# sourceMappingURL=chunk-6VMKAUMC.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/Card/Card.tsx","../src/Card/index.ts"],"sourcesContent":["import type { ReactNode } from 'react';\nimport type { TVClassName, TVProps } from '../utils';\n\nimport {\n Card as NextCard,\n CardBody as NextCardBody,\n CardFooter as NextCardFooter,\n CardHeader as NextCardHeader,\n} from '@nextui-org/card';\nimport { Divider as NextDivider } from '@nextui-org/divider';\n\nimport { tv, variantsToClassNames } from '../utils';\n\n// card styling variants\nexport const cardVariants = tv({\n slots: {\n base: 'border border-divider',\n body: '',\n divider: 'my-0 border-divider',\n footer: '',\n header: 'text-base font-semibold',\n },\n});\n\ntype VariantProps = TVProps<typeof cardVariants>;\ntype ClassName = TVClassName<typeof cardVariants>;\n\nexport interface CardProps extends VariantProps {\n /** card body content */\n children?: ReactNode;\n /** CSS class name */\n className?: ClassName;\n /** footer content */\n footer?: ReactNode;\n /** header content */\n header?: ReactNode;\n /** HTML data-testid attribute used in e2e tests */\n testId?: string;\n}\n\n/**\n * Card component based on [NextUI Card](https://nextui.org/docs/components/card)\n */\nconst Card = ({\n children = null,\n className = undefined,\n testId = undefined,\n header = undefined,\n footer = undefined,\n}: CardProps) => {\n // classNames from slots\n const variants = cardVariants();\n const { divider: dividerClassName, ...classNames } = variantsToClassNames(\n variants,\n className,\n 'base',\n );\n\n const divider = <NextDivider className={dividerClassName} />;\n\n return (\n <NextCard\n classNames={classNames}\n data-testid={testId && `card_${testId}`}\n fullWidth\n radius=\"sm\"\n shadow=\"none\"\n >\n {header && (\n <>\n <NextCardHeader data-testid={testId && `card_header_${testId}`}>\n {header}\n </NextCardHeader>\n {divider}\n </>\n )}\n <NextCardBody data-testid={testId && `card_body_${testId}`}>\n {children}\n </NextCardBody>\n {footer && (\n <>\n {divider}\n <NextCardFooter data-testid={testId && `card_footer_${testId}`}>\n {footer}\n </NextCardFooter>\n </>\n )}\n </NextCard>\n );\n};\n\nexport default Card;\n","import Card, { cardVariants } from './Card';\n\nexport type { CardProps } from './Card';\n\nexport { Card, cardVariants };\n\nexport default Card;\n"],"mappings":";;;;;;AAGA;AAAA,EACE,QAAQ;AAAA,EACR,YAAY;AAAA,EACZ,cAAc;AAAA,EACd,cAAc;AAAA,OACT;AACP,SAAS,WAAW,mBAAmB;AAiDrB,SAWV,UAXU,KAWV,YAXU;AA5CX,IAAM,eAAe,GAAG;AAAA,EAC7B,OAAO;AAAA,IACL,MAAM;AAAA,IACN,MAAM;AAAA,IACN,SAAS;AAAA,IACT,QAAQ;AAAA,IACR,QAAQ;AAAA,EACV;AACF,CAAC;AAqBD,IAAM,OAAO,CAAC;AAAA,EACZ,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,SAAS;AAAA,EACT,SAAS;AAAA,EACT,SAAS;AACX,MAAiB;AAEf,QAAM,WAAW,aAAa;AAC9B,QAAM,EAAE,SAAS,kBAAkB,GAAG,WAAW,IAAI;AAAA,IACnD;AAAA,IACA;AAAA,IACA;AAAA,EACF;AAEA,QAAM,UAAU,oBAAC,eAAY,WAAW,kBAAkB;AAE1D,SACE;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA,eAAa,UAAU,QAAQ,MAAM;AAAA,MACrC,WAAS;AAAA,MACT,QAAO;AAAA,MACP,QAAO;AAAA,MAEN;AAAA,kBACC,iCACE;AAAA,8BAAC,kBAAe,eAAa,UAAU,eAAe,MAAM,IACzD,kBACH;AAAA,UACC;AAAA,WACH;AAAA,QAEF,oBAAC,gBAAa,eAAa,UAAU,aAAa,MAAM,IACrD,UACH;AAAA,QACC,UACC,iCACG;AAAA;AAAA,UACD,oBAAC,kBAAe,eAAa,UAAU,eAAe,MAAM,IACzD,kBACH;AAAA,WACF;AAAA;AAAA;AAAA,EAEJ;AAEJ;AAEA,IAAO,eAAQ;;;ACrFf,IAAOA,gBAAQ;","names":["Card_default"]}