@fuf-stack/pixels 0.32.2 → 0.32.4

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 (120) hide show
  1. package/dist/Accordion/index.cjs +2 -2
  2. package/dist/Accordion/index.js +1 -1
  3. package/dist/Alert/index.cjs +1 -1
  4. package/dist/Alert/index.cjs.map +1 -1
  5. package/dist/Alert/index.js +8 -8
  6. package/dist/Alert/index.js.map +1 -1
  7. package/dist/Avatar/index.cjs +2 -2
  8. package/dist/Avatar/index.js +1 -1
  9. package/dist/AvatarGroup/index.cjs +3 -3
  10. package/dist/AvatarGroup/index.js +2 -2
  11. package/dist/Badge/index.cjs +2 -2
  12. package/dist/Badge/index.js +1 -1
  13. package/dist/Breadcrumb/index.cjs +2 -2
  14. package/dist/Breadcrumb/index.js +1 -1
  15. package/dist/Button/index.cjs +2 -2
  16. package/dist/Button/index.d.cts +2 -2
  17. package/dist/Button/index.d.ts +2 -2
  18. package/dist/Button/index.js +1 -1
  19. package/dist/{ButtonGroup-g0hk2u-s.d.cts → ButtonGroup-DyAm7NZs.d.cts} +2 -2
  20. package/dist/{ButtonGroup-g0hk2u-s.d.ts → ButtonGroup-DyAm7NZs.d.ts} +2 -2
  21. package/dist/Card/index.cjs +2 -2
  22. package/dist/Card/index.js +1 -1
  23. package/dist/Drawer/index.cjs +2 -2
  24. package/dist/Drawer/index.js +1 -1
  25. package/dist/Json/index.cjs +3 -3
  26. package/dist/Json/index.js +2 -2
  27. package/dist/Label/index.cjs +2 -2
  28. package/dist/Label/index.js +1 -1
  29. package/dist/Menu/index.cjs +2 -2
  30. package/dist/Menu/index.js +1 -1
  31. package/dist/Modal/index.cjs +2 -2
  32. package/dist/Modal/index.js +1 -1
  33. package/dist/Popover/index.cjs +2 -2
  34. package/dist/Popover/index.js +1 -1
  35. package/dist/Progress/index.cjs +1 -1
  36. package/dist/Progress/index.cjs.map +1 -1
  37. package/dist/Progress/index.js +3 -3
  38. package/dist/Progress/index.js.map +1 -1
  39. package/dist/Table/index.cjs +4 -2
  40. package/dist/Table/index.cjs.map +1 -1
  41. package/dist/Table/index.d.cts +3 -3
  42. package/dist/Table/index.d.ts +3 -3
  43. package/dist/Table/index.js +4 -2
  44. package/dist/{Table--d9l8Xlk.d.cts → Table-mg36Y5qK.d.cts} +1 -1
  45. package/dist/{Table--d9l8Xlk.d.ts → Table-mg36Y5qK.d.ts} +1 -1
  46. package/dist/Tabs/index.cjs +2 -2
  47. package/dist/Tabs/index.js +1 -1
  48. package/dist/Tooltip/index.cjs +2 -2
  49. package/dist/Tooltip/index.js +1 -1
  50. package/dist/{chunk-XTR4NKDP.cjs → chunk-2P5WWVQ6.cjs} +1 -1
  51. package/dist/{chunk-XTR4NKDP.cjs.map → chunk-2P5WWVQ6.cjs.map} +1 -1
  52. package/dist/{chunk-WV3ZDL4J.cjs → chunk-2XYKRMUN.cjs} +1 -1
  53. package/dist/{chunk-WV3ZDL4J.cjs.map → chunk-2XYKRMUN.cjs.map} +1 -1
  54. package/dist/{chunk-FPU6RJSG.js → chunk-3QICKBFS.js} +4 -4
  55. package/dist/{chunk-FPU6RJSG.js.map → chunk-3QICKBFS.js.map} +1 -1
  56. package/dist/{chunk-CWCZM3HS.js → chunk-4Y4W74D7.js} +3 -3
  57. package/dist/{chunk-CWCZM3HS.js.map → chunk-4Y4W74D7.js.map} +1 -1
  58. package/dist/{chunk-QSQ5NCIF.js → chunk-72VIMIAB.js} +4 -4
  59. package/dist/{chunk-QSQ5NCIF.js.map → chunk-72VIMIAB.js.map} +1 -1
  60. package/dist/{chunk-BURI3HTZ.cjs → chunk-77J7NZYB.cjs} +1 -1
  61. package/dist/{chunk-BURI3HTZ.cjs.map → chunk-77J7NZYB.cjs.map} +1 -1
  62. package/dist/{chunk-2WJJS4CZ.js → chunk-7H67WTTJ.js} +1 -1
  63. package/dist/{chunk-2WJJS4CZ.js.map → chunk-7H67WTTJ.js.map} +1 -1
  64. package/dist/{chunk-5H2LBLSC.js → chunk-7QBCVRQD.js} +5 -5
  65. package/dist/{chunk-5H2LBLSC.js.map → chunk-7QBCVRQD.js.map} +1 -1
  66. package/dist/{chunk-WSM7WMFP.cjs → chunk-7RVUB6I5.cjs} +1 -1
  67. package/dist/{chunk-WSM7WMFP.cjs.map → chunk-7RVUB6I5.cjs.map} +1 -1
  68. package/dist/{chunk-XUF52AKP.js → chunk-ABKT5UKM.js} +11 -11
  69. package/dist/{chunk-XUF52AKP.js.map → chunk-ABKT5UKM.js.map} +1 -1
  70. package/dist/{chunk-AJLLRWSE.cjs → chunk-C4H5ZCTV.cjs} +1 -1
  71. package/dist/{chunk-AJLLRWSE.cjs.map → chunk-C4H5ZCTV.cjs.map} +1 -1
  72. package/dist/{chunk-TA3MY4KY.cjs → chunk-CXHVRIPZ.cjs} +3 -2
  73. package/dist/chunk-CXHVRIPZ.cjs.map +1 -0
  74. package/dist/{chunk-XNMTAL3J.cjs → chunk-D6LCMOKN.cjs} +1 -1
  75. package/dist/{chunk-XNMTAL3J.cjs.map → chunk-D6LCMOKN.cjs.map} +1 -1
  76. package/dist/{chunk-3LEUWIY3.js → chunk-ERK2LYGJ.js} +5 -5
  77. package/dist/{chunk-3LEUWIY3.js.map → chunk-ERK2LYGJ.js.map} +1 -1
  78. package/dist/{chunk-D7KXMNEI.cjs → chunk-JSANDW3W.cjs} +1 -1
  79. package/dist/{chunk-D7KXMNEI.cjs.map → chunk-JSANDW3W.cjs.map} +1 -1
  80. package/dist/{chunk-ORO34I7X.cjs → chunk-KBYU4ZF2.cjs} +2 -2
  81. package/dist/{chunk-ORO34I7X.cjs.map → chunk-KBYU4ZF2.cjs.map} +1 -1
  82. package/dist/{chunk-2SQEDOXZ.cjs → chunk-L2H7DUEB.cjs} +1 -1
  83. package/dist/{chunk-2SQEDOXZ.cjs.map → chunk-L2H7DUEB.cjs.map} +1 -1
  84. package/dist/{chunk-HPLU3CHP.cjs → chunk-LIZGYO24.cjs} +4 -4
  85. package/dist/{chunk-HPLU3CHP.cjs.map → chunk-LIZGYO24.cjs.map} +1 -1
  86. package/dist/{chunk-TCL2PX3F.js → chunk-LRJVQPVR.js} +12 -12
  87. package/dist/{chunk-TCL2PX3F.js.map → chunk-LRJVQPVR.js.map} +1 -1
  88. package/dist/{chunk-ZXN5DNKQ.cjs → chunk-MHZAWSFJ.cjs} +1 -1
  89. package/dist/{chunk-ZXN5DNKQ.cjs.map → chunk-MHZAWSFJ.cjs.map} +1 -1
  90. package/dist/{chunk-Z7QNU4XB.js → chunk-NES3USBQ.js} +3 -3
  91. package/dist/{chunk-Z7QNU4XB.js.map → chunk-NES3USBQ.js.map} +1 -1
  92. package/dist/{chunk-GA54AM2W.js → chunk-NHEC3GYW.js} +5 -5
  93. package/dist/{chunk-GA54AM2W.js.map → chunk-NHEC3GYW.js.map} +1 -1
  94. package/dist/{chunk-ZZC6S7D2.js → chunk-NQVSANDI.js} +3 -3
  95. package/dist/{chunk-ZZC6S7D2.js.map → chunk-NQVSANDI.js.map} +1 -1
  96. package/dist/{chunk-DQE7D2UZ.js → chunk-OVS2CO2K.js} +5 -4
  97. package/dist/{chunk-DQE7D2UZ.js.map → chunk-OVS2CO2K.js.map} +1 -1
  98. package/dist/{chunk-T7EAVBXL.cjs → chunk-PEUUQMJS.cjs} +1 -1
  99. package/dist/{chunk-T7EAVBXL.cjs.map → chunk-PEUUQMJS.cjs.map} +1 -1
  100. package/dist/{chunk-EVAV23ZV.js → chunk-RW4WTSLJ.js} +11 -11
  101. package/dist/{chunk-EVAV23ZV.js.map → chunk-RW4WTSLJ.js.map} +1 -1
  102. package/dist/{chunk-A4FOULHY.cjs → chunk-TAVTNSQG.cjs} +1 -1
  103. package/dist/{chunk-A4FOULHY.cjs.map → chunk-TAVTNSQG.cjs.map} +1 -1
  104. package/dist/{chunk-FFRBORVV.cjs → chunk-U46SDLRH.cjs} +3 -3
  105. package/dist/{chunk-FFRBORVV.cjs.map → chunk-U46SDLRH.cjs.map} +1 -1
  106. package/dist/{chunk-ITOA7Q42.js → chunk-VBOUHWXM.js} +11 -11
  107. package/dist/{chunk-ITOA7Q42.js.map → chunk-VBOUHWXM.js.map} +1 -1
  108. package/dist/{chunk-ZKCOHRTR.js → chunk-VZJTWG7U.js} +3 -3
  109. package/dist/{chunk-ZKCOHRTR.js.map → chunk-VZJTWG7U.js.map} +1 -1
  110. package/dist/{chunk-UZPVE6UB.js → chunk-XNKV2DN7.js} +2 -2
  111. package/dist/{chunk-OOFJGGRS.cjs → chunk-ZZOEFQWQ.cjs} +1 -1
  112. package/dist/{chunk-OOFJGGRS.cjs.map → chunk-ZZOEFQWQ.cjs.map} +1 -1
  113. package/dist/index.cjs +19 -17
  114. package/dist/index.cjs.map +1 -1
  115. package/dist/index.d.cts +2 -2
  116. package/dist/index.d.ts +2 -2
  117. package/dist/index.js +18 -16
  118. package/package.json +3 -3
  119. package/dist/chunk-TA3MY4KY.cjs.map +0 -1
  120. /package/dist/{chunk-UZPVE6UB.js.map → chunk-XNKV2DN7.js.map} +0 -0
@@ -2,11 +2,11 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkXTR4NKDPcjs = require('../chunk-XTR4NKDP.cjs');
5
+ var _chunk2P5WWVQ6cjs = require('../chunk-2P5WWVQ6.cjs');
6
6
  require('../chunk-D4TLDLEX.cjs');
7
7
 
8
8
 
9
9
 
10
10
 
11
- exports.Accordion = _chunkXTR4NKDPcjs.Accordion_default; exports.accordionVariants = _chunkXTR4NKDPcjs.accordionVariants; exports.default = _chunkXTR4NKDPcjs.Accordion_default2;
11
+ exports.Accordion = _chunk2P5WWVQ6cjs.Accordion_default; exports.accordionVariants = _chunk2P5WWVQ6cjs.accordionVariants; exports.default = _chunk2P5WWVQ6cjs.Accordion_default2;
12
12
  //# sourceMappingURL=index.cjs.map
@@ -2,7 +2,7 @@ import {
2
2
  Accordion_default,
3
3
  Accordion_default2,
4
4
  accordionVariants
5
- } from "../chunk-GA54AM2W.js";
5
+ } from "../chunk-NHEC3GYW.js";
6
6
  import "../chunk-J7N2552D.js";
7
7
  export {
8
8
  Accordion_default as Accordion,
@@ -18,7 +18,7 @@ var alertVariants = _pixelutils.tv.call(void 0, {
18
18
  alertIcon: ""
19
19
  },
20
20
  variants: {
21
- // See: https://github.comnextui-orgnextui/blob/canary/packages/core/theme/src/components/alert.ts
21
+ // see: https://github.com/heroui-inc/heroui/blob/canary/packages/core/theme/src/components/alert.ts
22
22
  color: _chunkD4TLDLEXcjs.__spreadValues.call(void 0, {
23
23
  info: {
24
24
  mainWrapper: "text-inherit",
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/pixels/pixels/packages/pixels/dist/Alert/index.cjs","../../src/Alert/Alert.tsx","../../src/Alert/index.ts"],"names":["Alert_default"],"mappings":"AAAA;AACE;AACF,yDAA8B;AAC9B;AACA;ACAA,sCAAmC;AACnC,sCAA2C;AAE3C,oDAAyC;AA4HrC,+CAAA;AA1HG,IAAM,cAAA,EAAgB,4BAAA;AAAG,EAC9B,KAAA,EAAO;AAAA,IACL,IAAA,EAAM,EAAA;AAAA,IACN,KAAA,EAAO,EAAA;AAAA,IACP,WAAA,EAAa,EAAA;AAAA,IACb,WAAA,EAAa,EAAA;AAAA,IACb,WAAA,EAAa,EAAA;AAAA,IACb,WAAA,EAAa,EAAA;AAAA,IACb,SAAA,EAAW;AAAA,EACb,CAAA;AAAA,EACA,QAAA,EAAU;AAAA;AAAA,IAER,KAAA,EAAO,8CAAA;AAAA,MACL,IAAA,EAAM;AAAA,QACJ,WAAA,EAAa,cAAA;AAAA,QACb,KAAA,EAAO,cAAA;AAAA,QACP,WAAA,EAAa;AAAA,MACf;AAAA,IAAA,CAAA,EACG,YAAA,CAAkB,QAAA,CAAS,KAAA,CAAA;AAAA,IAEhC,OAAA,EAAS,8CAAA,CAAA,CAAA,EACJ,YAAA,CAAkB,QAAA,CAAS,OAAA;AAAA,EAElC,CAAA;AAAA,EACA,gBAAA,EAAkB;AAAA,IAChB,GAAG,YAAA,CAAkB,gBAAA;AAAA,IACr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,CAAA;AAAA,EACT,MAAA,EAAQ,KAAA,CAAA;AAAA,EACR,QAAA,EAAU;AACZ,CAAA,EAAA,GAAkB;AAChB,EAAA,MAAM,SAAA,EAAW,aAAA,CAAc;AAAA,IAC7B,KAAA;AAAA,IACA;AAAA,EACF,CAAC,CAAA;AACD,EAAA,MAAM,cAAA,EAAgB,MAAA,CAAO,IAAA,CAAK,YAAA,CAAkB,QAAA,CAAS,KAAK,CAAA,CAAE,QAAA;AAAA,IAClE;AAAA,EACF,CAAA;AACA,EAAA,MAAM,WAAA,EAAa,8CAAA,QAAqB,EAAU,SAAA,EAAW,MAAM,CAAA;AAEnE,EAAA,uBACE,6BAAA;AAAA,IAAC,YAAA;AAAA,IAAA;AAAA,MACC,UAAA;AAAA,MACA,KAAA,EAAO,cAAA,EAAiB,MAAA,EAAoC,KAAA,CAAA;AAAA,MAC5D,aAAA,EAAa,MAAA;AAAA,MACb,WAAA,EAAa,MAAA,EAAQ,SAAA,EAAW,KAAA,CAAA;AAAA,MAChC,UAAA;AAAA,MACA,QAAA,EAAU,CAAC,QAAA;AAAA,MACX,IAAA;AAAA,MACA,UAAA;AAAA,MACA,OAAA;AAAA,MACA,KAAA,EAAQ,MAAA,GAAS,QAAA;AAAA,MACjB;AAAA,IAAA;AAAA,EACF,CAAA;AAEJ,CAAA;AAEA,IAAO,cAAA,EAAQ,KAAA;ADnCf;AACA;AE3GA,IAAOA,eAAAA,EAAQ,aAAA;AF6Gf;AACE;AACA;AACA;AACF,uGAAC","file":"/home/runner/work/pixels/pixels/packages/pixels/dist/Alert/index.cjs","sourcesContent":[null,"import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\nimport type { AlertProps as NextAlertProps } from '@heroui/alert';\nimport type { ReactNode } from 'react';\n\nimport { Alert as NextAlert } from '@heroui/alert';\nimport { alert as nextAlertVariants } from '@heroui/theme';\n\nimport { tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\n\nexport const alertVariants = tv({\n slots: {\n base: '',\n title: '',\n description: '',\n mainWrapper: '',\n closeButton: '',\n iconWrapper: '',\n alertIcon: '',\n },\n variants: {\n // See: https://github.comnextui-orgnextui/blob/canary/packages/core/theme/src/components/alert.ts\n color: {\n info: {\n mainWrapper: 'text-inherit',\n title: 'text-inherit',\n description: 'text-inherit',\n },\n ...nextAlertVariants.variants.color,\n },\n variant: {\n ...nextAlertVariants.variants.variant,\n },\n },\n compoundVariants: [\n ...nextAlertVariants.compoundVariants,\n {\n color: 'info',\n variant: 'solid',\n className: {\n base: 'bg-info text-info-foreground',\n alertIcon: 'text-info-foreground',\n closeButton: 'text-inherit',\n },\n },\n {\n color: 'info',\n variant: 'flat',\n className: {\n alertIcon: 'fill-current',\n base: 'dark:bg-info-50/50 bg-info-50 text-info-600',\n closeButton: 'text-info-500 data-[hover]:bg-info-200',\n iconWrapper: 'border-info-100 bg-info-50 dark:bg-info-100',\n },\n },\n {\n color: 'info',\n variant: 'faded',\n className: {\n alertIcon: 'fill-current',\n base: 'dark:bg-info-50/50 border-small border-info-200 bg-info-50 text-info-600 dark:border-info-100',\n closeButton: 'text-info-500 data-[hover]:bg-info-200',\n iconWrapper: 'border-info-100 bg-info-50 dark:bg-info-100',\n },\n },\n {\n color: 'info',\n variant: 'bordered',\n className: {\n alertIcon: 'fill-current',\n base: 'border-small border-info text-info',\n closeButton: 'text-info-500 data-[hover]:bg-info-200',\n iconWrapper: 'bg-info-100 dark:bg-info-50',\n },\n },\n ],\n});\n\nexport type VariantProps = TVProps<typeof alertVariants>;\ntype ClassName = TVClassName<typeof alertVariants>;\n\nexport interface AlertProps extends VariantProps {\n /** Content displayed inside the Alert if no description is given! */\n children?: ReactNode;\n /** CSS class name */\n className?: ClassName;\n /** Color scheme of the Alert */\n color?: VariantProps['color'];\n /** Content displayed at the end of the Alert */\n endContent?: ReactNode;\n /** Icon displayed at the start of the Alert */\n icon?: ReactNode;\n /** Whether the Alert can be closed */\n isClosable?: boolean;\n /** Callback fired when the close button is clicked */\n onClose?: () => void | undefined;\n /** Whether to show the icon at the start */\n showIcon?: boolean;\n /** HTML data-testid attribute used in e2e tests */\n testId?: string;\n /** Title displayed in the Alert above the content */\n title?: ReactNode;\n /** Style variant of the Alert */\n variant?: VariantProps['variant'];\n}\n\n/**\n * Alert component based on [HeroUI Alert](https://www.heroui.com//docs/components/alert)\n */\nconst Alert = ({\n children = undefined,\n className = undefined,\n color = 'primary',\n endContent = undefined,\n icon = undefined,\n isClosable = false,\n onClose = undefined,\n showIcon = true,\n testId = undefined,\n title = undefined,\n variant = 'solid',\n}: AlertProps) => {\n const variants = alertVariants({\n color,\n variant,\n });\n const isHeroUIColor = Object.keys(nextAlertVariants.variants.color).includes(\n color,\n );\n const classNames = variantsToClassNames(variants, className, 'base');\n\n return (\n <NextAlert\n classNames={classNames}\n color={isHeroUIColor ? (color as NextAlertProps['color']) : undefined}\n data-testid={testId}\n description={title ? children : undefined}\n endContent={endContent}\n hideIcon={!showIcon}\n icon={icon}\n isClosable={isClosable}\n onClose={onClose}\n title={(title || children) as string}\n variant={variant}\n />\n );\n};\n\nexport default Alert;\n","import Alert, { alertVariants } from './Alert';\n\nexport type { AlertProps } from './Alert';\n\nexport { Alert, alertVariants };\n\nexport default Alert;\n"]}
1
+ {"version":3,"sources":["/home/runner/work/pixels/pixels/packages/pixels/dist/Alert/index.cjs","../../src/Alert/Alert.tsx","../../src/Alert/index.ts"],"names":["Alert_default"],"mappings":"AAAA;AACE;AACF,yDAA8B;AAC9B;AACA;ACAA,sCAAmC;AACnC,sCAA2C;AAE3C,oDAAyC;AA4HrC,+CAAA;AA1HG,IAAM,cAAA,EAAgB,4BAAA;AAAG,EAC9B,KAAA,EAAO;AAAA,IACL,IAAA,EAAM,EAAA;AAAA,IACN,KAAA,EAAO,EAAA;AAAA,IACP,WAAA,EAAa,EAAA;AAAA,IACb,WAAA,EAAa,EAAA;AAAA,IACb,WAAA,EAAa,EAAA;AAAA,IACb,WAAA,EAAa,EAAA;AAAA,IACb,SAAA,EAAW;AAAA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CAAA;AAEA,IAAO,cAAA,EAAQ,KAAA;ADnCf;AACA;AE3GA,IAAOA,eAAAA,EAAQ,aAAA;AF6Gf;AACE;AACA;AACA;AACF,uGAAC","file":"/home/runner/work/pixels/pixels/packages/pixels/dist/Alert/index.cjs","sourcesContent":[null,"import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\nimport type { AlertProps as HeroAlertProps } from '@heroui/alert';\nimport type { ReactNode } from 'react';\n\nimport { Alert as HeroAlert } from '@heroui/alert';\nimport { alert as heroAlertVariants } from '@heroui/theme';\n\nimport { tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\n\nexport const alertVariants = tv({\n slots: {\n base: '',\n title: '',\n description: '',\n mainWrapper: '',\n closeButton: '',\n iconWrapper: '',\n alertIcon: '',\n },\n variants: {\n // see: https://github.com/heroui-inc/heroui/blob/canary/packages/core/theme/src/components/alert.ts\n color: {\n info: {\n mainWrapper: 'text-inherit',\n title: 'text-inherit',\n description: 'text-inherit',\n },\n ...heroAlertVariants.variants.color,\n },\n variant: {\n ...heroAlertVariants.variants.variant,\n },\n },\n compoundVariants: [\n ...heroAlertVariants.compoundVariants,\n {\n color: 'info',\n variant: 'solid',\n className: {\n base: 'bg-info text-info-foreground',\n alertIcon: 'text-info-foreground',\n closeButton: 'text-inherit',\n },\n },\n {\n color: 'info',\n variant: 'flat',\n className: {\n alertIcon: 'fill-current',\n base: 'dark:bg-info-50/50 bg-info-50 text-info-600',\n closeButton: 'text-info-500 data-[hover]:bg-info-200',\n iconWrapper: 'border-info-100 bg-info-50 dark:bg-info-100',\n },\n },\n {\n color: 'info',\n variant: 'faded',\n className: {\n alertIcon: 'fill-current',\n base: 'dark:bg-info-50/50 border-small border-info-200 bg-info-50 text-info-600 dark:border-info-100',\n closeButton: 'text-info-500 data-[hover]:bg-info-200',\n iconWrapper: 'border-info-100 bg-info-50 dark:bg-info-100',\n },\n },\n {\n color: 'info',\n variant: 'bordered',\n className: {\n alertIcon: 'fill-current',\n base: 'border-small border-info text-info',\n closeButton: 'text-info-500 data-[hover]:bg-info-200',\n iconWrapper: 'bg-info-100 dark:bg-info-50',\n },\n },\n ],\n});\n\nexport type VariantProps = TVProps<typeof alertVariants>;\ntype ClassName = TVClassName<typeof alertVariants>;\n\nexport interface AlertProps extends VariantProps {\n /** Content displayed inside the Alert if no description is given! */\n children?: ReactNode;\n /** CSS class name */\n className?: ClassName;\n /** Color scheme of the Alert */\n color?: VariantProps['color'];\n /** Content displayed at the end of the Alert */\n endContent?: ReactNode;\n /** Icon displayed at the start of the Alert */\n icon?: ReactNode;\n /** Whether the Alert can be closed */\n isClosable?: boolean;\n /** Callback fired when the close button is clicked */\n onClose?: () => void | undefined;\n /** Whether to show the icon at the start */\n showIcon?: boolean;\n /** HTML data-testid attribute used in e2e tests */\n testId?: string;\n /** Title displayed in the Alert above the content */\n title?: ReactNode;\n /** Style variant of the Alert */\n variant?: VariantProps['variant'];\n}\n\n/**\n * Alert component based on [HeroUI Alert](https://www.heroui.com//docs/components/alert)\n */\nconst Alert = ({\n children = undefined,\n className = undefined,\n color = 'primary',\n endContent = undefined,\n icon = undefined,\n isClosable = false,\n onClose = undefined,\n showIcon = true,\n testId = undefined,\n title = undefined,\n variant = 'solid',\n}: AlertProps) => {\n const variants = alertVariants({\n color,\n variant,\n });\n const isHeroUIColor = Object.keys(heroAlertVariants.variants.color).includes(\n color,\n );\n const classNames = variantsToClassNames(variants, className, 'base');\n\n return (\n <HeroAlert\n classNames={classNames}\n color={isHeroUIColor ? (color as HeroAlertProps['color']) : undefined}\n data-testid={testId}\n description={title ? children : undefined}\n endContent={endContent}\n hideIcon={!showIcon}\n icon={icon}\n isClosable={isClosable}\n onClose={onClose}\n title={(title || children) as string}\n variant={variant}\n />\n );\n};\n\nexport default Alert;\n","import Alert, { alertVariants } from './Alert';\n\nexport type { AlertProps } from './Alert';\n\nexport { Alert, alertVariants };\n\nexport default Alert;\n"]}
@@ -3,8 +3,8 @@ import {
3
3
  } from "../chunk-J7N2552D.js";
4
4
 
5
5
  // src/Alert/Alert.tsx
6
- import { Alert as NextAlert } from "@heroui/alert";
7
- import { alert as nextAlertVariants } from "@heroui/theme";
6
+ import { Alert as HeroAlert } from "@heroui/alert";
7
+ import { alert as heroAlertVariants } from "@heroui/theme";
8
8
  import { tv, variantsToClassNames } from "@fuf-stack/pixel-utils";
9
9
  import { jsx } from "react/jsx-runtime";
10
10
  var alertVariants = tv({
@@ -18,18 +18,18 @@ var alertVariants = tv({
18
18
  alertIcon: ""
19
19
  },
20
20
  variants: {
21
- // See: https://github.comnextui-orgnextui/blob/canary/packages/core/theme/src/components/alert.ts
21
+ // see: https://github.com/heroui-inc/heroui/blob/canary/packages/core/theme/src/components/alert.ts
22
22
  color: __spreadValues({
23
23
  info: {
24
24
  mainWrapper: "text-inherit",
25
25
  title: "text-inherit",
26
26
  description: "text-inherit"
27
27
  }
28
- }, nextAlertVariants.variants.color),
29
- variant: __spreadValues({}, nextAlertVariants.variants.variant)
28
+ }, heroAlertVariants.variants.color),
29
+ variant: __spreadValues({}, heroAlertVariants.variants.variant)
30
30
  },
31
31
  compoundVariants: [
32
- ...nextAlertVariants.compoundVariants,
32
+ ...heroAlertVariants.compoundVariants,
33
33
  {
34
34
  color: "info",
35
35
  variant: "solid",
@@ -88,12 +88,12 @@ var Alert = ({
88
88
  color,
89
89
  variant
90
90
  });
91
- const isHeroUIColor = Object.keys(nextAlertVariants.variants.color).includes(
91
+ const isHeroUIColor = Object.keys(heroAlertVariants.variants.color).includes(
92
92
  color
93
93
  );
94
94
  const classNames = variantsToClassNames(variants, className, "base");
95
95
  return /* @__PURE__ */ jsx(
96
- NextAlert,
96
+ HeroAlert,
97
97
  {
98
98
  classNames,
99
99
  color: isHeroUIColor ? color : void 0,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/Alert/Alert.tsx","../../src/Alert/index.ts"],"sourcesContent":["import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\nimport type { AlertProps as NextAlertProps } from '@heroui/alert';\nimport type { ReactNode } from 'react';\n\nimport { Alert as NextAlert } from '@heroui/alert';\nimport { alert as nextAlertVariants } from '@heroui/theme';\n\nimport { tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\n\nexport const alertVariants = tv({\n slots: {\n base: '',\n title: '',\n description: '',\n mainWrapper: '',\n closeButton: '',\n iconWrapper: '',\n alertIcon: '',\n },\n variants: {\n // See: https://github.comnextui-orgnextui/blob/canary/packages/core/theme/src/components/alert.ts\n color: {\n info: {\n mainWrapper: 'text-inherit',\n title: 'text-inherit',\n description: 'text-inherit',\n },\n ...nextAlertVariants.variants.color,\n },\n variant: {\n ...nextAlertVariants.variants.variant,\n },\n },\n compoundVariants: [\n ...nextAlertVariants.compoundVariants,\n {\n color: 'info',\n variant: 'solid',\n className: {\n base: 'bg-info text-info-foreground',\n alertIcon: 'text-info-foreground',\n closeButton: 'text-inherit',\n },\n },\n {\n color: 'info',\n variant: 'flat',\n className: {\n alertIcon: 'fill-current',\n base: 'dark:bg-info-50/50 bg-info-50 text-info-600',\n closeButton: 'text-info-500 data-[hover]:bg-info-200',\n iconWrapper: 'border-info-100 bg-info-50 dark:bg-info-100',\n },\n },\n {\n color: 'info',\n variant: 'faded',\n className: {\n alertIcon: 'fill-current',\n base: 'dark:bg-info-50/50 border-small border-info-200 bg-info-50 text-info-600 dark:border-info-100',\n closeButton: 'text-info-500 data-[hover]:bg-info-200',\n iconWrapper: 'border-info-100 bg-info-50 dark:bg-info-100',\n },\n },\n {\n color: 'info',\n variant: 'bordered',\n className: {\n alertIcon: 'fill-current',\n base: 'border-small border-info text-info',\n closeButton: 'text-info-500 data-[hover]:bg-info-200',\n iconWrapper: 'bg-info-100 dark:bg-info-50',\n },\n },\n ],\n});\n\nexport type VariantProps = TVProps<typeof alertVariants>;\ntype ClassName = TVClassName<typeof alertVariants>;\n\nexport interface AlertProps extends VariantProps {\n /** Content displayed inside the Alert if no description is given! */\n children?: ReactNode;\n /** CSS class name */\n className?: ClassName;\n /** Color scheme of the Alert */\n color?: VariantProps['color'];\n /** Content displayed at the end of the Alert */\n endContent?: ReactNode;\n /** Icon displayed at the start of the Alert */\n icon?: ReactNode;\n /** Whether the Alert can be closed */\n isClosable?: boolean;\n /** Callback fired when the close button is clicked */\n onClose?: () => void | undefined;\n /** Whether to show the icon at the start */\n showIcon?: boolean;\n /** HTML data-testid attribute used in e2e tests */\n testId?: string;\n /** Title displayed in the Alert above the content */\n title?: ReactNode;\n /** Style variant of the Alert */\n variant?: VariantProps['variant'];\n}\n\n/**\n * Alert component based on [HeroUI Alert](https://www.heroui.com//docs/components/alert)\n */\nconst Alert = ({\n children = undefined,\n className = undefined,\n color = 'primary',\n endContent = undefined,\n icon = undefined,\n isClosable = false,\n onClose = undefined,\n showIcon = true,\n testId = undefined,\n title = undefined,\n variant = 'solid',\n}: AlertProps) => {\n const variants = alertVariants({\n color,\n variant,\n });\n const isHeroUIColor = Object.keys(nextAlertVariants.variants.color).includes(\n color,\n );\n const classNames = variantsToClassNames(variants, className, 'base');\n\n return (\n <NextAlert\n classNames={classNames}\n color={isHeroUIColor ? (color as NextAlertProps['color']) : undefined}\n data-testid={testId}\n description={title ? children : undefined}\n endContent={endContent}\n hideIcon={!showIcon}\n icon={icon}\n isClosable={isClosable}\n onClose={onClose}\n title={(title || children) as string}\n variant={variant}\n />\n );\n};\n\nexport default Alert;\n","import Alert, { alertVariants } from './Alert';\n\nexport type { AlertProps } from './Alert';\n\nexport { Alert, alertVariants };\n\nexport default Alert;\n"],"mappings":";;;;;AAIA,SAAS,SAAS,iBAAiB;AACnC,SAAS,SAAS,yBAAyB;AAE3C,SAAS,IAAI,4BAA4B;AA4HrC;AA1HG,IAAM,gBAAgB,GAAG;AAAA,EAC9B,OAAO;AAAA,IACL,MAAM;AAAA,IACN,OAAO;AAAA,IACP,aAAa;AAAA,IACb,aAAa;AAAA,IACb,aAAa;AAAA,IACb,aAAa;AAAA,IACb,WAAW;AAAA,EACb;AAAA,EACA,UAAU;AAAA;AAAA,IA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AAM;AAEnE,SACE;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA,OAAO,gBAAiB,QAAoC;AAAA,MAC5D,eAAa;AAAA,MACb,aAAa,QAAQ,WAAW;AAAA,MAChC;AAAA,MACA,UAAU,CAAC;AAAA,MACX;AAAA,MACA;AAAA,MACA;AAAA,MACA,OAAQ,SAAS;AAAA,MACjB;AAAA;AAAA,EACF;AAEJ;AAEA,IAAO,gBAAQ;;;AC7If,IAAOA,iBAAQ;","names":["Alert_default"]}
1
+ {"version":3,"sources":["../../src/Alert/Alert.tsx","../../src/Alert/index.ts"],"sourcesContent":["import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\nimport type { AlertProps as HeroAlertProps } from '@heroui/alert';\nimport type { ReactNode } from 'react';\n\nimport { Alert as HeroAlert } from '@heroui/alert';\nimport { alert as heroAlertVariants } from '@heroui/theme';\n\nimport { tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\n\nexport const alertVariants = tv({\n slots: {\n base: '',\n title: '',\n description: '',\n mainWrapper: '',\n closeButton: '',\n iconWrapper: '',\n alertIcon: '',\n },\n variants: {\n // see: https://github.com/heroui-inc/heroui/blob/canary/packages/core/theme/src/components/alert.ts\n color: {\n info: {\n mainWrapper: 'text-inherit',\n title: 'text-inherit',\n description: 'text-inherit',\n },\n ...heroAlertVariants.variants.color,\n },\n variant: {\n ...heroAlertVariants.variants.variant,\n },\n },\n compoundVariants: [\n ...heroAlertVariants.compoundVariants,\n {\n color: 'info',\n variant: 'solid',\n className: {\n base: 'bg-info text-info-foreground',\n alertIcon: 'text-info-foreground',\n closeButton: 'text-inherit',\n },\n },\n {\n color: 'info',\n variant: 'flat',\n className: {\n alertIcon: 'fill-current',\n base: 'dark:bg-info-50/50 bg-info-50 text-info-600',\n closeButton: 'text-info-500 data-[hover]:bg-info-200',\n iconWrapper: 'border-info-100 bg-info-50 dark:bg-info-100',\n },\n },\n {\n color: 'info',\n variant: 'faded',\n className: {\n alertIcon: 'fill-current',\n base: 'dark:bg-info-50/50 border-small border-info-200 bg-info-50 text-info-600 dark:border-info-100',\n closeButton: 'text-info-500 data-[hover]:bg-info-200',\n iconWrapper: 'border-info-100 bg-info-50 dark:bg-info-100',\n },\n },\n {\n color: 'info',\n variant: 'bordered',\n className: {\n alertIcon: 'fill-current',\n base: 'border-small border-info text-info',\n closeButton: 'text-info-500 data-[hover]:bg-info-200',\n iconWrapper: 'bg-info-100 dark:bg-info-50',\n },\n },\n ],\n});\n\nexport type VariantProps = TVProps<typeof alertVariants>;\ntype ClassName = TVClassName<typeof alertVariants>;\n\nexport interface AlertProps extends VariantProps {\n /** Content displayed inside the Alert if no description is given! */\n children?: ReactNode;\n /** CSS class name */\n className?: ClassName;\n /** Color scheme of the Alert */\n color?: VariantProps['color'];\n /** Content displayed at the end of the Alert */\n endContent?: ReactNode;\n /** Icon displayed at the start of the Alert */\n icon?: ReactNode;\n /** Whether the Alert can be closed */\n isClosable?: boolean;\n /** Callback fired when the close button is clicked */\n onClose?: () => void | undefined;\n /** Whether to show the icon at the start */\n showIcon?: boolean;\n /** HTML data-testid attribute used in e2e tests */\n testId?: string;\n /** Title displayed in the Alert above the content */\n title?: ReactNode;\n /** Style variant of the Alert */\n variant?: VariantProps['variant'];\n}\n\n/**\n * Alert component based on [HeroUI Alert](https://www.heroui.com//docs/components/alert)\n */\nconst Alert = ({\n children = undefined,\n className = undefined,\n color = 'primary',\n endContent = undefined,\n icon = undefined,\n isClosable = false,\n onClose = undefined,\n showIcon = true,\n testId = undefined,\n title = undefined,\n variant = 'solid',\n}: AlertProps) => {\n const variants = alertVariants({\n color,\n variant,\n });\n const isHeroUIColor = Object.keys(heroAlertVariants.variants.color).includes(\n color,\n );\n const classNames = variantsToClassNames(variants, className, 'base');\n\n return (\n <HeroAlert\n classNames={classNames}\n color={isHeroUIColor ? (color as HeroAlertProps['color']) : undefined}\n data-testid={testId}\n description={title ? children : undefined}\n endContent={endContent}\n hideIcon={!showIcon}\n icon={icon}\n isClosable={isClosable}\n onClose={onClose}\n title={(title || children) as string}\n variant={variant}\n />\n );\n};\n\nexport default Alert;\n","import Alert, { alertVariants } from './Alert';\n\nexport type { AlertProps } from './Alert';\n\nexport { Alert, alertVariants };\n\nexport default Alert;\n"],"mappings":";;;;;AAIA,SAAS,SAAS,iBAAiB;AACnC,SAAS,SAAS,yBAAyB;AAE3C,SAAS,IAAI,4BAA4B;AA4HrC;AA1HG,IAAM,gBAAgB,GAAG;AAAA,EAC9B,OAAO;AAAA,IACL,MAAM;AAAA,IACN,OAAO;AAAA,IACP,aAAa;AAAA,IACb,aAAa;AAAA,IACb,aAAa;AAAA,IACb,aAAa;AAAA,IACb,WAAW;AAAA,EACb;AAAA,EACA,UAAU;AAAA;AAAA,IAER,OAAO;AAAA,MACL,MAAM;AAAA,QACJ,aAAa;AAAA,QACb,OAAO;AAAA,QACP,aAAa;AAAA,MACf;AAAA,OACG,kBAAkB,SAAS;AAAA,IAEhC,SAAS,mBACJ,kBAAkB,SAAS;AAAA,EAElC;AAAA,EACA,kBAAkB;AAAA,IAChB,GAAG,kBAAkB;AAAA,IACrB;AAAA,MACE,OAAO;AAAA,MACP,SAAS;AAAA,MACT,WAAW;AAAA,QACT,MAAM;AAAA,QACN,WAAW;AAAA,QACX,aAAa;AAAA,MACf;AAAA,IACF;AAAA,IACA;AAAA,MACE,OAAO;AAAA,MACP,SAAS;AAAA,MACT,WAAW;AAAA,QACT,WAAW;AAAA,QACX,MAAM;AAAA,QACN,aAAa;AAAA,QACb,aAAa;AAAA,MACf;AAAA,IACF;AAAA,IACA;AAAA,MACE,OAAO;AAAA,MACP,SAAS;AAAA,MACT,WAAW;AAAA,QACT,WAAW;AAAA,QACX,MAAM;AAAA,QACN,aAAa;AAAA,QACb,aAAa;AAAA,MACf;AAAA,IACF;AAAA,IACA;AAAA,MACE,OAAO;AAAA,MACP,SAAS;AAAA,MACT,WAAW;AAAA,QACT,WAAW;AAAA,QACX,MAAM;AAAA,QACN,aAAa;AAAA,QACb,aAAa;AAAA,MACf;AAAA,IACF;AAAA,EACF;AACF,CAAC;AAiCD,IAAM,QAAQ,CAAC;AAAA,EACb,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,QAAQ;AAAA,EACR,aAAa;AAAA,EACb,OAAO;AAAA,EACP,aAAa;AAAA,EACb,UAAU;AAAA,EACV,WAAW;AAAA,EACX,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,UAAU;AACZ,MAAkB;AAChB,QAAM,WAAW,cAAc;AAAA,IAC7B;AAAA,IACA;AAAA,EACF,CAAC;AACD,QAAM,gBAAgB,OAAO,KAAK,kBAAkB,SAAS,KAAK,EAAE;AAAA,IAClE;AAAA,EACF;AACA,QAAM,aAAa,qBAAqB,UAAU,WAAW,MAAM;AAEnE,SACE;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA,OAAO,gBAAiB,QAAoC;AAAA,MAC5D,eAAa;AAAA,MACb,aAAa,QAAQ,WAAW;AAAA,MAChC;AAAA,MACA,UAAU,CAAC;AAAA,MACX;AAAA,MACA;AAAA,MACA;AAAA,MACA,OAAQ,SAAS;AAAA,MACjB;AAAA;AAAA,EACF;AAEJ;AAEA,IAAO,gBAAQ;;;AC7If,IAAOA,iBAAQ;","names":["Alert_default"]}
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkBURI3HTZcjs = require('../chunk-BURI3HTZ.cjs');
4
+ var _chunk77J7NZYBcjs = require('../chunk-77J7NZYB.cjs');
5
5
  require('../chunk-D4TLDLEX.cjs');
6
6
 
7
7
 
8
8
 
9
- exports.Avatar = _chunkBURI3HTZcjs.Avatar_default; exports.default = _chunkBURI3HTZcjs.Avatar_default2;
9
+ exports.Avatar = _chunk77J7NZYBcjs.Avatar_default; exports.default = _chunk77J7NZYBcjs.Avatar_default2;
10
10
  //# sourceMappingURL=index.cjs.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Avatar_default,
3
3
  Avatar_default2
4
- } from "../chunk-CWCZM3HS.js";
4
+ } from "../chunk-4Y4W74D7.js";
5
5
  import "../chunk-J7N2552D.js";
6
6
  export {
7
7
  Avatar_default as Avatar,
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkHPLU3CHPcjs = require('../chunk-HPLU3CHP.cjs');
5
- require('../chunk-BURI3HTZ.cjs');
4
+ var _chunkLIZGYO24cjs = require('../chunk-LIZGYO24.cjs');
5
+ require('../chunk-77J7NZYB.cjs');
6
6
  require('../chunk-D4TLDLEX.cjs');
7
7
 
8
8
 
9
9
 
10
- exports.AvatarGroup = _chunkHPLU3CHPcjs.AvatarGroup_default; exports.default = _chunkHPLU3CHPcjs.AvatarGroup_default2;
10
+ exports.AvatarGroup = _chunkLIZGYO24cjs.AvatarGroup_default; exports.default = _chunkLIZGYO24cjs.AvatarGroup_default2;
11
11
  //# sourceMappingURL=index.cjs.map
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  AvatarGroup_default,
3
3
  AvatarGroup_default2
4
- } from "../chunk-FPU6RJSG.js";
5
- import "../chunk-CWCZM3HS.js";
4
+ } from "../chunk-3QICKBFS.js";
5
+ import "../chunk-4Y4W74D7.js";
6
6
  import "../chunk-J7N2552D.js";
7
7
  export {
8
8
  AvatarGroup_default as AvatarGroup,
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkD7KXMNEIcjs = require('../chunk-D7KXMNEI.cjs');
4
+ var _chunkJSANDW3Wcjs = require('../chunk-JSANDW3W.cjs');
5
5
  require('../chunk-D4TLDLEX.cjs');
6
6
 
7
7
 
8
8
 
9
- exports.Badge = _chunkD7KXMNEIcjs.Badge_default; exports.default = _chunkD7KXMNEIcjs.Badge_default2;
9
+ exports.Badge = _chunkJSANDW3Wcjs.Badge_default; exports.default = _chunkJSANDW3Wcjs.Badge_default2;
10
10
  //# sourceMappingURL=index.cjs.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Badge_default,
3
3
  Badge_default2
4
- } from "../chunk-Z7QNU4XB.js";
4
+ } from "../chunk-NES3USBQ.js";
5
5
  import "../chunk-J7N2552D.js";
6
6
  export {
7
7
  Badge_default as Badge,
@@ -2,11 +2,11 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkOOFJGGRScjs = require('../chunk-OOFJGGRS.cjs');
5
+ var _chunkZZOEFQWQcjs = require('../chunk-ZZOEFQWQ.cjs');
6
6
  require('../chunk-D4TLDLEX.cjs');
7
7
 
8
8
 
9
9
 
10
10
 
11
- exports.Breadcrumb = _chunkOOFJGGRScjs.Breadcrumb_default; exports.breadcrumbVariants = _chunkOOFJGGRScjs.breadcrumbVariants; exports.default = _chunkOOFJGGRScjs.Breadcrumb_default2;
11
+ exports.Breadcrumb = _chunkZZOEFQWQcjs.Breadcrumb_default; exports.breadcrumbVariants = _chunkZZOEFQWQcjs.breadcrumbVariants; exports.default = _chunkZZOEFQWQcjs.Breadcrumb_default2;
12
12
  //# sourceMappingURL=index.cjs.map
@@ -2,7 +2,7 @@ import {
2
2
  Breadcrumb_default,
3
3
  Breadcrumb_default2,
4
4
  breadcrumbVariants
5
- } from "../chunk-5H2LBLSC.js";
5
+ } from "../chunk-7QBCVRQD.js";
6
6
  import "../chunk-J7N2552D.js";
7
7
  export {
8
8
  Breadcrumb_default as Breadcrumb,
@@ -3,12 +3,12 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkA4FOULHYcjs = require('../chunk-A4FOULHY.cjs');
6
+ var _chunkTAVTNSQGcjs = require('../chunk-TAVTNSQG.cjs');
7
7
  require('../chunk-D4TLDLEX.cjs');
8
8
 
9
9
 
10
10
 
11
11
 
12
12
 
13
- exports.Button = _chunkA4FOULHYcjs.Button_default; exports.ButtonGroup = _chunkA4FOULHYcjs.ButtonGroup_default; exports.buttonVariants = _chunkA4FOULHYcjs.buttonVariants; exports.default = _chunkA4FOULHYcjs.Button_default2;
13
+ exports.Button = _chunkTAVTNSQGcjs.Button_default; exports.ButtonGroup = _chunkTAVTNSQGcjs.ButtonGroup_default; exports.buttonVariants = _chunkTAVTNSQGcjs.buttonVariants; exports.default = _chunkTAVTNSQGcjs.Button_default2;
14
14
  //# sourceMappingURL=index.cjs.map
@@ -1,5 +1,5 @@
1
- import { B as Button } from '../ButtonGroup-g0hk2u-s.cjs';
2
- export { a as ButtonGroup, c as ButtonProps, b as buttonVariants } from '../ButtonGroup-g0hk2u-s.cjs';
1
+ import { B as Button } from '../ButtonGroup-DyAm7NZs.cjs';
2
+ export { a as ButtonGroup, c as ButtonProps, b as buttonVariants } from '../ButtonGroup-DyAm7NZs.cjs';
3
3
  import 'react/jsx-runtime';
4
4
  import 'tailwind-variants';
5
5
  import 'tailwind-variants/dist/config.js';
@@ -1,5 +1,5 @@
1
- import { B as Button } from '../ButtonGroup-g0hk2u-s.js';
2
- export { a as ButtonGroup, c as ButtonProps, b as buttonVariants } from '../ButtonGroup-g0hk2u-s.js';
1
+ import { B as Button } from '../ButtonGroup-DyAm7NZs.js';
2
+ export { a as ButtonGroup, c as ButtonProps, b as buttonVariants } from '../ButtonGroup-DyAm7NZs.js';
3
3
  import 'react/jsx-runtime';
4
4
  import 'tailwind-variants';
5
5
  import 'tailwind-variants/dist/config.js';
@@ -3,7 +3,7 @@ import {
3
3
  Button_default,
4
4
  Button_default2,
5
5
  buttonVariants
6
- } from "../chunk-3LEUWIY3.js";
6
+ } from "../chunk-ERK2LYGJ.js";
7
7
  import "../chunk-J7N2552D.js";
8
8
  export {
9
9
  Button_default as Button,
@@ -142,7 +142,7 @@ interface ButtonProps extends VariantProps {
142
142
  children?: ReactNode;
143
143
  /** CSS class name */
144
144
  className?: string;
145
- /** next ui button color */
145
+ /** hero ui button color */
146
146
  color?: ButtonProps$1['color'];
147
147
  /** disables function of the button. */
148
148
  disabled?: boolean;
@@ -160,7 +160,7 @@ interface ButtonProps extends VariantProps {
160
160
  testId?: string;
161
161
  /** sets the button type. */
162
162
  type?: 'button' | 'submit' | 'reset' | undefined;
163
- /** next ui button variants */
163
+ /** hero ui button variants */
164
164
  variant?: ButtonProps$1['variant'];
165
165
  }
166
166
  /**
@@ -142,7 +142,7 @@ interface ButtonProps extends VariantProps {
142
142
  children?: ReactNode;
143
143
  /** CSS class name */
144
144
  className?: string;
145
- /** next ui button color */
145
+ /** hero ui button color */
146
146
  color?: ButtonProps$1['color'];
147
147
  /** disables function of the button. */
148
148
  disabled?: boolean;
@@ -160,7 +160,7 @@ interface ButtonProps extends VariantProps {
160
160
  testId?: string;
161
161
  /** sets the button type. */
162
162
  type?: 'button' | 'submit' | 'reset' | undefined;
163
- /** next ui button variants */
163
+ /** hero ui button variants */
164
164
  variant?: ButtonProps$1['variant'];
165
165
  }
166
166
  /**
@@ -2,11 +2,11 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkZXN5DNKQcjs = require('../chunk-ZXN5DNKQ.cjs');
5
+ var _chunkMHZAWSFJcjs = require('../chunk-MHZAWSFJ.cjs');
6
6
  require('../chunk-D4TLDLEX.cjs');
7
7
 
8
8
 
9
9
 
10
10
 
11
- exports.Card = _chunkZXN5DNKQcjs.Card_default; exports.cardVariants = _chunkZXN5DNKQcjs.cardVariants; exports.default = _chunkZXN5DNKQcjs.Card_default2;
11
+ exports.Card = _chunkMHZAWSFJcjs.Card_default; exports.cardVariants = _chunkMHZAWSFJcjs.cardVariants; exports.default = _chunkMHZAWSFJcjs.Card_default2;
12
12
  //# sourceMappingURL=index.cjs.map
@@ -2,7 +2,7 @@ import {
2
2
  Card_default,
3
3
  Card_default2,
4
4
  cardVariants
5
- } from "../chunk-XUF52AKP.js";
5
+ } from "../chunk-ABKT5UKM.js";
6
6
  import "../chunk-J7N2552D.js";
7
7
  export {
8
8
  Card_default as Card,
@@ -6,7 +6,7 @@
6
6
 
7
7
 
8
8
 
9
- var _chunkWSM7WMFPcjs = require('../chunk-WSM7WMFP.cjs');
9
+ var _chunk7RVUB6I5cjs = require('../chunk-7RVUB6I5.cjs');
10
10
  require('../chunk-D4TLDLEX.cjs');
11
11
 
12
12
 
@@ -16,5 +16,5 @@ require('../chunk-D4TLDLEX.cjs');
16
16
 
17
17
 
18
18
 
19
- exports.Drawer = _chunkWSM7WMFPcjs.Drawer_default; exports.default = _chunkWSM7WMFPcjs.Drawer_default2; exports.drawerBackdrops = _chunkWSM7WMFPcjs.drawerBackdrops; exports.drawerPlacements = _chunkWSM7WMFPcjs.drawerPlacements; exports.drawerRadii = _chunkWSM7WMFPcjs.drawerRadii; exports.drawerSizes = _chunkWSM7WMFPcjs.drawerSizes; exports.drawerVariants = _chunkWSM7WMFPcjs.drawerVariants;
19
+ exports.Drawer = _chunk7RVUB6I5cjs.Drawer_default; exports.default = _chunk7RVUB6I5cjs.Drawer_default2; exports.drawerBackdrops = _chunk7RVUB6I5cjs.drawerBackdrops; exports.drawerPlacements = _chunk7RVUB6I5cjs.drawerPlacements; exports.drawerRadii = _chunk7RVUB6I5cjs.drawerRadii; exports.drawerSizes = _chunk7RVUB6I5cjs.drawerSizes; exports.drawerVariants = _chunk7RVUB6I5cjs.drawerVariants;
20
20
  //# sourceMappingURL=index.cjs.map
@@ -6,7 +6,7 @@ import {
6
6
  drawerRadii,
7
7
  drawerSizes,
8
8
  drawerVariants
9
- } from "../chunk-ITOA7Q42.js";
9
+ } from "../chunk-VBOUHWXM.js";
10
10
  import "../chunk-J7N2552D.js";
11
11
  export {
12
12
  Drawer_default as Drawer,
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkFFRBORVVcjs = require('../chunk-FFRBORVV.cjs');
5
- require('../chunk-A4FOULHY.cjs');
4
+ var _chunkU46SDLRHcjs = require('../chunk-U46SDLRH.cjs');
5
+ require('../chunk-TAVTNSQG.cjs');
6
6
  require('../chunk-D4TLDLEX.cjs');
7
7
 
8
8
 
9
9
 
10
- exports.Json = _chunkFFRBORVVcjs.Json_default; exports.default = _chunkFFRBORVVcjs.Json_default2;
10
+ exports.Json = _chunkU46SDLRHcjs.Json_default; exports.default = _chunkU46SDLRHcjs.Json_default2;
11
11
  //# sourceMappingURL=index.cjs.map
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  Json_default,
3
3
  Json_default2
4
- } from "../chunk-UZPVE6UB.js";
5
- import "../chunk-3LEUWIY3.js";
4
+ } from "../chunk-XNKV2DN7.js";
5
+ import "../chunk-ERK2LYGJ.js";
6
6
  import "../chunk-J7N2552D.js";
7
7
  export {
8
8
  Json_default as Json,
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkWV3ZDL4Jcjs = require('../chunk-WV3ZDL4J.cjs');
4
+ var _chunk2XYKRMUNcjs = require('../chunk-2XYKRMUN.cjs');
5
5
  require('../chunk-D4TLDLEX.cjs');
6
6
 
7
7
 
8
8
 
9
- exports.Label = _chunkWV3ZDL4Jcjs.Label_default; exports.default = _chunkWV3ZDL4Jcjs.Label_default2;
9
+ exports.Label = _chunk2XYKRMUNcjs.Label_default; exports.default = _chunk2XYKRMUNcjs.Label_default2;
10
10
  //# sourceMappingURL=index.cjs.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Label_default,
3
3
  Label_default2
4
- } from "../chunk-ZZC6S7D2.js";
4
+ } from "../chunk-NQVSANDI.js";
5
5
  import "../chunk-J7N2552D.js";
6
6
  export {
7
7
  Label_default as Label,
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkORO34I7Xcjs = require('../chunk-ORO34I7X.cjs');
4
+ var _chunkKBYU4ZF2cjs = require('../chunk-KBYU4ZF2.cjs');
5
5
  require('../chunk-D4TLDLEX.cjs');
6
6
 
7
7
 
8
8
 
9
- exports.Menu = _chunkORO34I7Xcjs.Menu_default; exports.default = _chunkORO34I7Xcjs.Menu_default2;
9
+ exports.Menu = _chunkKBYU4ZF2cjs.Menu_default; exports.default = _chunkKBYU4ZF2cjs.Menu_default2;
10
10
  //# sourceMappingURL=index.cjs.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Menu_default,
3
3
  Menu_default2
4
- } from "../chunk-TCL2PX3F.js";
4
+ } from "../chunk-LRJVQPVR.js";
5
5
  import "../chunk-J7N2552D.js";
6
6
  export {
7
7
  Menu_default as Menu,
@@ -2,11 +2,11 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkT7EAVBXLcjs = require('../chunk-T7EAVBXL.cjs');
5
+ var _chunkPEUUQMJScjs = require('../chunk-PEUUQMJS.cjs');
6
6
  require('../chunk-D4TLDLEX.cjs');
7
7
 
8
8
 
9
9
 
10
10
 
11
- exports.Modal = _chunkT7EAVBXLcjs.Modal_default; exports.default = _chunkT7EAVBXLcjs.Modal_default2; exports.modalVariants = _chunkT7EAVBXLcjs.modalVariants;
11
+ exports.Modal = _chunkPEUUQMJScjs.Modal_default; exports.default = _chunkPEUUQMJScjs.Modal_default2; exports.modalVariants = _chunkPEUUQMJScjs.modalVariants;
12
12
  //# sourceMappingURL=index.cjs.map
@@ -2,7 +2,7 @@ import {
2
2
  Modal_default,
3
3
  Modal_default2,
4
4
  modalVariants
5
- } from "../chunk-EVAV23ZV.js";
5
+ } from "../chunk-RW4WTSLJ.js";
6
6
  import "../chunk-J7N2552D.js";
7
7
  export {
8
8
  Modal_default as Modal,
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkAJLLRWSEcjs = require('../chunk-AJLLRWSE.cjs');
4
+ var _chunkC4H5ZCTVcjs = require('../chunk-C4H5ZCTV.cjs');
5
5
  require('../chunk-TX2VP4J7.cjs');
6
6
  require('../chunk-D4TLDLEX.cjs');
7
7
 
8
8
 
9
9
 
10
- exports.Popover = _chunkAJLLRWSEcjs.Popover_default; exports.default = _chunkAJLLRWSEcjs.Popover_default2;
10
+ exports.Popover = _chunkC4H5ZCTVcjs.Popover_default; exports.default = _chunkC4H5ZCTVcjs.Popover_default2;
11
11
  //# sourceMappingURL=index.cjs.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Popover_default,
3
3
  Popover_default2
4
- } from "../chunk-2WJJS4CZ.js";
4
+ } from "../chunk-7H67WTTJ.js";
5
5
  import "../chunk-EQVC4PJE.js";
6
6
  import "../chunk-J7N2552D.js";
7
7
  export {
@@ -20,7 +20,7 @@ var progressVariants = _pixelutils.tv.call(void 0, {
20
20
  // span around the progress value
21
21
  },
22
22
  variants: {
23
- // See: https://github.com/nextui-org/nextui/blob/canary/packages/core/theme/src/components/progress.ts
23
+ // see: https://github.com/heroui-inc/heroui/blob/canary/packages/core/theme/src/components/progress.ts
24
24
  color: {
25
25
  danger: {
26
26
  indicator: "bg-danger"
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/pixels/pixels/packages/pixels/dist/Progress/index.cjs","../../src/Progress/Progress.tsx","../../src/Progress/index.ts"],"names":[],"mappings":"AAAA,0GAA8B;AAC9B;AACA;ACCA,4CAAyC;AAEzC,oDAAyC;AAyFrC,+CAAA;AAtFG,IAAM,iBAAA,EAAmB,4BAAA;AAAG,EACjC,KAAA,EAAO;AAAA,IACL,IAAA,EAAM,EAAA;AAAA;AAAA,IACN,SAAA,EAAW,EAAA;AAAA;AAAA,IACX,KAAA,EAAO,EAAA;AAAA;AAAA,IACP,YAAA,EAAc,EAAA;AAAA;AAAA,IACd,KAAA,EAAO,EAAA;AAAA;AAAA,IACP,KAAA,EAAO;AAAA;AAAA,EACT,CAAA;AAAA,EACA,QAAA,EAAU;AAAA;AAAA,IAER,KAAA,EAAO;AAAA,MACL,MAAA,EAAQ;AAAA,QACN,SAAA,EAAW;AAAA,MACb,CAAA;AAAA,MACA,OAAA,EAAS;AAAA,QACP,SAAA,EAAW;AAAA,MACb,CAAA;AAAA,MACA,IAAA,EAAM;AAAA,QACJ,SAAA,EAAW;AAAA,MACb,CAAA;AAAA,MACA,OAAA,EAAS;AAAA,QACP,SAAA,EAAW;AAAA,MACb,CAAA;AAAA,MACA,SAAA,EAAW;AAAA,QACT,SAAA,EAAW;AAAA,MACb,CAAA;AAAA,MACA,OAAA,EAAS;AAAA,QACP,SAAA,EAAW;AAAA,MACb,CAAA;AAAA,MACA,OAAA,EAAS;AAAA,QACP,SAAA,EAAW;AAAA,MACb;AAAA,IACF;AAAA,EACF;AACF,CAAC,CAAA;AA0BD,IAAM,cAAA,EAAgB,CAAC,OAAA,EAAA,GAAoB,CAAA,EAAA;AAKzB;AACJ,EAAA;AACJ,EAAA;AACC,EAAA;AACD,EAAA;AACR,EAAA;AACiB,EAAA;AACV,EAAA;AACa,EAAA;AACX,EAAA;AACU;AAEjB,EAAA;AAEe,EAAA;AACE,EAAA;AAES,EAAA;AAG1B,EAAA;AAAC,IAAA;AAAA,IAAA;AACY,MAAA;AACX,MAAA;AACa,MAAA;AACE,MAAA;AACf,MAAA;AACA,MAAA;AACA,MAAA;AACkB,MAAA;AACO,MAAA;AAAA,IAAA;AAC3B,EAAA;AAEJ;AAEe;AD5BmB;AACA;AE3EnB;AF6EmB;AACA;AACA;AACA;AACA","file":"/home/runner/work/pixels/pixels/packages/pixels/dist/Progress/index.cjs","sourcesContent":[null,"import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\nimport type { ReactNode } from 'react';\n\nimport { Progress as NextProgress } from '@heroui/progress';\n\nimport { tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\n\n// progress styling variants\nexport const progressVariants = tv({\n slots: {\n base: '', // wrapper around the whole component\n indicator: '', // indicator of the progress (finished part)\n label: '', // label at the top left of the progress bar\n labelWrapper: '', // wrapper around progress label and label span\n track: '', // track of the progress (not finished part)\n value: '', // span around the progress value\n },\n variants: {\n // See: https://github.com/nextui-org/nextui/blob/canary/packages/core/theme/src/components/progress.ts\n color: {\n danger: {\n indicator: 'bg-danger',\n },\n default: {\n indicator: 'bg-default-400',\n },\n info: {\n indicator: 'bg-info',\n },\n primary: {\n indicator: 'bg-primary',\n },\n secondary: {\n indicator: 'bg-secondary',\n },\n success: {\n indicator: 'bg-success',\n },\n warning: {\n indicator: 'bg-warning',\n },\n },\n },\n});\n\nexport type VariantProps = TVProps<typeof progressVariants>;\ntype ClassName = TVClassName<typeof progressVariants>;\n\nexport interface ProgressProps extends VariantProps {\n /** CSS class name */\n className?: ClassName;\n /** color of the progress bar */\n color?: VariantProps['color'];\n /** function to format the progress value */\n format?: (percent: number) => ReactNode;\n /** label of the progress bar */\n label?: ReactNode;\n /** percentage/progress of the progress bar */\n percent: number;\n /** whether to show the value label */\n showValueLabel?: boolean;\n /** size of the progress bar */\n size?: 'sm' | 'md' | 'lg';\n /** whether to show success color on complete */\n successOnComplete?: boolean;\n /** HTML data-testid attribute used in e2e tests */\n testId?: string;\n}\n\nconst defaultFormat = (percent: number) => `${percent}%`;\n\n/**\n * Progress component based on [HeroUI Progress](https://www.heroui.com//docs/components/progress)\n */\nconst Progress = ({\n className = undefined,\n color = 'primary',\n format = defaultFormat,\n label = undefined,\n percent,\n showValueLabel = true,\n size = 'md',\n successOnComplete = false,\n testId = undefined,\n}: ProgressProps) => {\n const processedColor =\n successOnComplete && percent >= 100 ? 'success' : color;\n\n const variants = progressVariants({ color: processedColor });\n const classNames = variantsToClassNames(variants, className, 'base');\n\n const value = format(percent);\n\n return (\n <NextProgress\n aria-label=\"Loading...\"\n classNames={classNames}\n data-testid={testId}\n formatOptions={undefined}\n label={label}\n showValueLabel={showValueLabel}\n size={size}\n value={percent || 0}\n valueLabel={!!percent && value}\n />\n );\n};\n\nexport default Progress;\n","import Progress, { progressVariants } from './Progress';\n\nexport type { ProgressProps, VariantProps } from './Progress';\n\nexport { Progress, progressVariants };\n\nexport default Progress;\n"]}
1
+ {"version":3,"sources":["/home/runner/work/pixels/pixels/packages/pixels/dist/Progress/index.cjs","../../src/Progress/Progress.tsx","../../src/Progress/index.ts"],"names":[],"mappings":"AAAA,0GAA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AAA;AAC3B,EAAA;AAEJ;AAEe;AD5BmB;AACA;AE3EnB;AF6EmB;AACA;AACA;AACA;AACA","file":"/home/runner/work/pixels/pixels/packages/pixels/dist/Progress/index.cjs","sourcesContent":[null,"import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\nimport type { ReactNode } from 'react';\n\nimport { Progress as HeroProgress } from '@heroui/progress';\n\nimport { tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\n\n// progress styling variants\nexport const progressVariants = tv({\n slots: {\n base: '', // wrapper around the whole component\n indicator: '', // indicator of the progress (finished part)\n label: '', // label at the top left of the progress bar\n labelWrapper: '', // wrapper around progress label and label span\n track: '', // track of the progress (not finished part)\n value: '', // span around the progress value\n },\n variants: {\n // see: https://github.com/heroui-inc/heroui/blob/canary/packages/core/theme/src/components/progress.ts\n color: {\n danger: {\n indicator: 'bg-danger',\n },\n default: {\n indicator: 'bg-default-400',\n },\n info: {\n indicator: 'bg-info',\n },\n primary: {\n indicator: 'bg-primary',\n },\n secondary: {\n indicator: 'bg-secondary',\n },\n success: {\n indicator: 'bg-success',\n },\n warning: {\n indicator: 'bg-warning',\n },\n },\n },\n});\n\nexport type VariantProps = TVProps<typeof progressVariants>;\ntype ClassName = TVClassName<typeof progressVariants>;\n\nexport interface ProgressProps extends VariantProps {\n /** CSS class name */\n className?: ClassName;\n /** color of the progress bar */\n color?: VariantProps['color'];\n /** function to format the progress value */\n format?: (percent: number) => ReactNode;\n /** label of the progress bar */\n label?: ReactNode;\n /** percentage/progress of the progress bar */\n percent: number;\n /** whether to show the value label */\n showValueLabel?: boolean;\n /** size of the progress bar */\n size?: 'sm' | 'md' | 'lg';\n /** whether to show success color on complete */\n successOnComplete?: boolean;\n /** HTML data-testid attribute used in e2e tests */\n testId?: string;\n}\n\nconst defaultFormat = (percent: number) => `${percent}%`;\n\n/**\n * Progress component based on [HeroUI Progress](https://www.heroui.com//docs/components/progress)\n */\nconst Progress = ({\n className = undefined,\n color = 'primary',\n format = defaultFormat,\n label = undefined,\n percent,\n showValueLabel = true,\n size = 'md',\n successOnComplete = false,\n testId = undefined,\n}: ProgressProps) => {\n const processedColor =\n successOnComplete && percent >= 100 ? 'success' : color;\n\n const variants = progressVariants({ color: processedColor });\n const classNames = variantsToClassNames(variants, className, 'base');\n\n const value = format(percent);\n\n return (\n <HeroProgress\n aria-label=\"Loading...\"\n classNames={classNames}\n data-testid={testId}\n formatOptions={undefined}\n label={label}\n showValueLabel={showValueLabel}\n size={size}\n value={percent || 0}\n valueLabel={!!percent && value}\n />\n );\n};\n\nexport default Progress;\n","import Progress, { progressVariants } from './Progress';\n\nexport type { ProgressProps, VariantProps } from './Progress';\n\nexport { Progress, progressVariants };\n\nexport default Progress;\n"]}
@@ -1,7 +1,7 @@
1
1
  import "../chunk-J7N2552D.js";
2
2
 
3
3
  // src/Progress/Progress.tsx
4
- import { Progress as NextProgress } from "@heroui/progress";
4
+ import { Progress as HeroProgress } from "@heroui/progress";
5
5
  import { tv, variantsToClassNames } from "@fuf-stack/pixel-utils";
6
6
  import { jsx } from "react/jsx-runtime";
7
7
  var progressVariants = tv({
@@ -20,7 +20,7 @@ var progressVariants = tv({
20
20
  // span around the progress value
21
21
  },
22
22
  variants: {
23
- // See: https://github.com/nextui-org/nextui/blob/canary/packages/core/theme/src/components/progress.ts
23
+ // see: https://github.com/heroui-inc/heroui/blob/canary/packages/core/theme/src/components/progress.ts
24
24
  color: {
25
25
  danger: {
26
26
  indicator: "bg-danger"
@@ -63,7 +63,7 @@ var Progress = ({
63
63
  const classNames = variantsToClassNames(variants, className, "base");
64
64
  const value = format(percent);
65
65
  return /* @__PURE__ */ jsx(
66
- NextProgress,
66
+ HeroProgress,
67
67
  {
68
68
  "aria-label": "Loading...",
69
69
  classNames,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/Progress/Progress.tsx","../../src/Progress/index.ts"],"sourcesContent":["import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\nimport type { ReactNode } from 'react';\n\nimport { Progress as NextProgress } from '@heroui/progress';\n\nimport { tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\n\n// progress styling variants\nexport const progressVariants = tv({\n slots: {\n base: '', // wrapper around the whole component\n indicator: '', // indicator of the progress (finished part)\n label: '', // label at the top left of the progress bar\n labelWrapper: '', // wrapper around progress label and label span\n track: '', // track of the progress (not finished part)\n value: '', // span around the progress value\n },\n variants: {\n // See: https://github.com/nextui-org/nextui/blob/canary/packages/core/theme/src/components/progress.ts\n color: {\n danger: {\n indicator: 'bg-danger',\n },\n default: {\n indicator: 'bg-default-400',\n },\n info: {\n indicator: 'bg-info',\n },\n primary: {\n indicator: 'bg-primary',\n },\n secondary: {\n indicator: 'bg-secondary',\n },\n success: {\n indicator: 'bg-success',\n },\n warning: {\n indicator: 'bg-warning',\n },\n },\n },\n});\n\nexport type VariantProps = TVProps<typeof progressVariants>;\ntype ClassName = TVClassName<typeof progressVariants>;\n\nexport interface ProgressProps extends VariantProps {\n /** CSS class name */\n className?: ClassName;\n /** color of the progress bar */\n color?: VariantProps['color'];\n /** function to format the progress value */\n format?: (percent: number) => ReactNode;\n /** label of the progress bar */\n label?: ReactNode;\n /** percentage/progress of the progress bar */\n percent: number;\n /** whether to show the value label */\n showValueLabel?: boolean;\n /** size of the progress bar */\n size?: 'sm' | 'md' | 'lg';\n /** whether to show success color on complete */\n successOnComplete?: boolean;\n /** HTML data-testid attribute used in e2e tests */\n testId?: string;\n}\n\nconst defaultFormat = (percent: number) => `${percent}%`;\n\n/**\n * Progress component based on [HeroUI Progress](https://www.heroui.com//docs/components/progress)\n */\nconst Progress = ({\n className = undefined,\n color = 'primary',\n format = defaultFormat,\n label = undefined,\n percent,\n showValueLabel = true,\n size = 'md',\n successOnComplete = false,\n testId = undefined,\n}: ProgressProps) => {\n const processedColor =\n successOnComplete && percent >= 100 ? 'success' : color;\n\n const variants = progressVariants({ color: processedColor });\n const classNames = variantsToClassNames(variants, className, 'base');\n\n const value = format(percent);\n\n return (\n <NextProgress\n aria-label=\"Loading...\"\n classNames={classNames}\n data-testid={testId}\n formatOptions={undefined}\n label={label}\n showValueLabel={showValueLabel}\n size={size}\n value={percent || 0}\n valueLabel={!!percent && value}\n />\n );\n};\n\nexport default Progress;\n","import Progress, { progressVariants } from './Progress';\n\nexport type { ProgressProps, VariantProps } from './Progress';\n\nexport { Progress, progressVariants };\n\nexport default Progress;\n"],"mappings":";;;AAGA,SAAS,YAAY,oBAAoB;AAEzC,SAAS,IAAI,4BAA4B;AAyFrC;AAtFG,IAAM,mBAAmB,GAAG;AAAA,EACjC,OAAO;AAAA,IACL,MAAM;AAAA;AAAA,IACN,WAAW;AAAA;AAAA,IACX,OAAO;AAAA;AAAA,IACP,cAAc;AAAA;AAAA,IACd,OAAO;AAAA;AAAA,IACP,OAAO;AAAA;AAAA,EACT;AAAA,EACA,UAAU;AAAA;AAAA,IAER,OAAO;AAAA,MACL,QAAQ;AAAA,QACN,WAAW;AAAA,MACb;AAAA,MACA,SAAS;AAAA,QACP,WAAW;AAAA,MACb;AAAA,MACA,MAAM;AAAA,QACJ,WAAW;AAAA,MACb;AAAA,MACA,SAAS;AAAA,QACP,WAAW;AAAA,MACb;AAAA,MACA,WAAW;AAAA,QACT,WAAW;AAAA,MACb;AAAA,MACA,SAAS;AAAA,QACP,WAAW;AAAA,MACb;AAAA,MACA,SAAS;AAAA,QACP,WAAW;AAAA,MACb;AAAA,IACF;AAAA,EACF;AACF,CAAC;AA0BD,IAAM,gBAAgB,CAAC,YAAoB,GAAG,OAAO;AAKrD,IAAM,WAAW,CAAC;AAAA,EAChB,YAAY;AAAA,EACZ,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,QAAQ;AAAA,EACR;AAAA,EACA,iBAAiB;AAAA,EACjB,OAAO;AAAA,EACP,oBAAoB;AAAA,EACpB,SAAS;AACX,MAAqB;AACnB,QAAM,iBACJ,qBAAqB,WAAW,MAAM,YAAY;AAEpD,QAAM,WAAW,iBAAiB,EAAE,OAAO,eAAe,CAAC;AAC3D,QAAM,aAAa,qBAAqB,UAAU,WAAW,MAAM;AAEnE,QAAM,QAAQ,OAAO,OAAO;AAE5B,SACE;AAAA,IAAC;AAAA;AAAA,MACC,cAAW;AAAA,MACX;AAAA,MACA,eAAa;AAAA,MACb,eAAe;AAAA,MACf;AAAA,MACA;AAAA,MACA;AAAA,MACA,OAAO,WAAW;AAAA,MAClB,YAAY,CAAC,CAAC,WAAW;AAAA;AAAA,EAC3B;AAEJ;AAEA,IAAO,mBAAQ;;;ACtGf,IAAOA,oBAAQ;","names":["Progress_default"]}
1
+ {"version":3,"sources":["../../src/Progress/Progress.tsx","../../src/Progress/index.ts"],"sourcesContent":["import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\nimport type { ReactNode } from 'react';\n\nimport { Progress as HeroProgress } from '@heroui/progress';\n\nimport { tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\n\n// progress styling variants\nexport const progressVariants = tv({\n slots: {\n base: '', // wrapper around the whole component\n indicator: '', // indicator of the progress (finished part)\n label: '', // label at the top left of the progress bar\n labelWrapper: '', // wrapper around progress label and label span\n track: '', // track of the progress (not finished part)\n value: '', // span around the progress value\n },\n variants: {\n // see: https://github.com/heroui-inc/heroui/blob/canary/packages/core/theme/src/components/progress.ts\n color: {\n danger: {\n indicator: 'bg-danger',\n },\n default: {\n indicator: 'bg-default-400',\n },\n info: {\n indicator: 'bg-info',\n },\n primary: {\n indicator: 'bg-primary',\n },\n secondary: {\n indicator: 'bg-secondary',\n },\n success: {\n indicator: 'bg-success',\n },\n warning: {\n indicator: 'bg-warning',\n },\n },\n },\n});\n\nexport type VariantProps = TVProps<typeof progressVariants>;\ntype ClassName = TVClassName<typeof progressVariants>;\n\nexport interface ProgressProps extends VariantProps {\n /** CSS class name */\n className?: ClassName;\n /** color of the progress bar */\n color?: VariantProps['color'];\n /** function to format the progress value */\n format?: (percent: number) => ReactNode;\n /** label of the progress bar */\n label?: ReactNode;\n /** percentage/progress of the progress bar */\n percent: number;\n /** whether to show the value label */\n showValueLabel?: boolean;\n /** size of the progress bar */\n size?: 'sm' | 'md' | 'lg';\n /** whether to show success color on complete */\n successOnComplete?: boolean;\n /** HTML data-testid attribute used in e2e tests */\n testId?: string;\n}\n\nconst defaultFormat = (percent: number) => `${percent}%`;\n\n/**\n * Progress component based on [HeroUI Progress](https://www.heroui.com//docs/components/progress)\n */\nconst Progress = ({\n className = undefined,\n color = 'primary',\n format = defaultFormat,\n label = undefined,\n percent,\n showValueLabel = true,\n size = 'md',\n successOnComplete = false,\n testId = undefined,\n}: ProgressProps) => {\n const processedColor =\n successOnComplete && percent >= 100 ? 'success' : color;\n\n const variants = progressVariants({ color: processedColor });\n const classNames = variantsToClassNames(variants, className, 'base');\n\n const value = format(percent);\n\n return (\n <HeroProgress\n aria-label=\"Loading...\"\n classNames={classNames}\n data-testid={testId}\n formatOptions={undefined}\n label={label}\n showValueLabel={showValueLabel}\n size={size}\n value={percent || 0}\n valueLabel={!!percent && value}\n />\n );\n};\n\nexport default Progress;\n","import Progress, { progressVariants } from './Progress';\n\nexport type { ProgressProps, VariantProps } from './Progress';\n\nexport { Progress, progressVariants };\n\nexport default Progress;\n"],"mappings":";;;AAGA,SAAS,YAAY,oBAAoB;AAEzC,SAAS,IAAI,4BAA4B;AAyFrC;AAtFG,IAAM,mBAAmB,GAAG;AAAA,EACjC,OAAO;AAAA,IACL,MAAM;AAAA;AAAA,IACN,WAAW;AAAA;AAAA,IACX,OAAO;AAAA;AAAA,IACP,cAAc;AAAA;AAAA,IACd,OAAO;AAAA;AAAA,IACP,OAAO;AAAA;AAAA,EACT;AAAA,EACA,UAAU;AAAA;AAAA,IAER,OAAO;AAAA,MACL,QAAQ;AAAA,QACN,WAAW;AAAA,MACb;AAAA,MACA,SAAS;AAAA,QACP,WAAW;AAAA,MACb;AAAA,MACA,MAAM;AAAA,QACJ,WAAW;AAAA,MACb;AAAA,MACA,SAAS;AAAA,QACP,WAAW;AAAA,MACb;AAAA,MACA,WAAW;AAAA,QAC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