@fuf-stack/pixels 0.40.0 → 0.41.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/dist/Avatar/index.d.cts +2 -2
  2. package/dist/Avatar/index.d.ts +2 -2
  3. package/dist/AvatarGroup/index.d.cts +3 -3
  4. package/dist/AvatarGroup/index.d.ts +3 -3
  5. package/dist/{AvatarGroup-BMKOfE_a.d.ts → AvatarGroup-BfOtqfJy.d.ts} +1 -1
  6. package/dist/{AvatarGroup-2Lmu_V2d.d.cts → AvatarGroup-CUyQwK3t.d.cts} +1 -1
  7. package/dist/Button/index.cjs +2 -2
  8. package/dist/Button/index.js +1 -1
  9. package/dist/Drawer/index.d.cts +2 -2
  10. package/dist/Drawer/index.d.ts +2 -2
  11. package/dist/Json/index.cjs +3 -3
  12. package/dist/Json/index.js +2 -2
  13. package/dist/Progress/index.cjs +5 -82
  14. package/dist/Progress/index.cjs.map +1 -1
  15. package/dist/Progress/index.d.cts +9 -222
  16. package/dist/Progress/index.d.ts +9 -222
  17. package/dist/Progress/index.js +5 -82
  18. package/dist/Progress/index.js.map +1 -1
  19. package/dist/Progress-7yXUVioO.d.cts +228 -0
  20. package/dist/Progress-7yXUVioO.d.ts +228 -0
  21. package/dist/ProgressCircular/index.cjs +12 -0
  22. package/dist/ProgressCircular/index.cjs.map +1 -0
  23. package/dist/ProgressCircular/index.d.cts +11 -0
  24. package/dist/ProgressCircular/index.d.ts +11 -0
  25. package/dist/ProgressCircular/index.js +12 -0
  26. package/dist/ProgressCircular-U4kPZ1T1.d.cts +414 -0
  27. package/dist/ProgressCircular-U4kPZ1T1.d.ts +414 -0
  28. package/dist/{chunk-HHCDSQ6N.cjs → chunk-FLPLJTAC.cjs} +2 -2
  29. package/dist/{chunk-HHCDSQ6N.cjs.map → chunk-FLPLJTAC.cjs.map} +1 -1
  30. package/dist/chunk-GJQTAEHH.js +113 -0
  31. package/dist/chunk-GJQTAEHH.js.map +1 -0
  32. package/dist/{chunk-374SO74F.cjs → chunk-J63YGHTG.cjs} +3 -3
  33. package/dist/{chunk-374SO74F.cjs.map → chunk-J63YGHTG.cjs.map} +1 -1
  34. package/dist/{chunk-Q5DUSUCZ.js → chunk-MAKWBTTW.js} +2 -2
  35. package/dist/{chunk-Q5DUSUCZ.js.map → chunk-MAKWBTTW.js.map} +1 -1
  36. package/dist/chunk-RV7YPQXI.js +95 -0
  37. package/dist/chunk-RV7YPQXI.js.map +1 -0
  38. package/dist/chunk-VGXW3PSF.cjs +95 -0
  39. package/dist/chunk-VGXW3PSF.cjs.map +1 -0
  40. package/dist/{chunk-L3DEBOPG.js → chunk-VRPX6QUG.js} +2 -2
  41. package/dist/chunk-WCRVH4DS.cjs +113 -0
  42. package/dist/chunk-WCRVH4DS.cjs.map +1 -0
  43. package/dist/index.cjs +15 -13
  44. package/dist/index.cjs.map +1 -1
  45. package/dist/index.d.cts +5 -4
  46. package/dist/index.d.ts +5 -4
  47. package/dist/index.js +18 -16
  48. package/dist/index.js.map +1 -1
  49. package/package.json +29 -29
  50. package/dist/CircularProgress/index.cjs +0 -14
  51. package/dist/CircularProgress/index.cjs.map +0 -1
  52. package/dist/CircularProgress/index.d.cts +0 -11
  53. package/dist/CircularProgress/index.d.ts +0 -11
  54. package/dist/CircularProgress/index.js +0 -14
  55. package/dist/CircularProgress-DHrnT6wz.d.cts +0 -182
  56. package/dist/CircularProgress-DHrnT6wz.d.ts +0 -182
  57. package/dist/chunk-37WQ3CBA.cjs +0 -98
  58. package/dist/chunk-37WQ3CBA.cjs.map +0 -1
  59. package/dist/chunk-M3PL6G7W.js +0 -98
  60. package/dist/chunk-M3PL6G7W.js.map +0 -1
  61. package/dist/{Avatar-B8lVnLpp.d.cts → Avatar-ylNJ_-dY.d.cts} +5 -5
  62. package/dist/{Avatar-B8lVnLpp.d.ts → Avatar-ylNJ_-dY.d.ts} +5 -5
  63. package/dist/{Drawer-DmwcvuKe.d.cts → Drawer-BnV9qxPA.d.cts} +5 -5
  64. package/dist/{Drawer-DmwcvuKe.d.ts → Drawer-BnV9qxPA.d.ts} +5 -5
  65. /package/dist/{CircularProgress → ProgressCircular}/index.js.map +0 -0
  66. /package/dist/{chunk-L3DEBOPG.js.map → chunk-VRPX6QUG.js.map} +0 -0
@@ -1,5 +1,5 @@
1
- import { A as Avatar } from '../Avatar-B8lVnLpp.cjs';
2
- export { a as AvatarProps } from '../Avatar-B8lVnLpp.cjs';
1
+ import { A as Avatar } from '../Avatar-ylNJ_-dY.cjs';
2
+ export { a as AvatarProps } from '../Avatar-ylNJ_-dY.cjs';
3
3
  import 'react/jsx-runtime';
4
4
  import 'tailwind-variants/dist/config.js';
5
5
  import 'tailwind-variants';
@@ -1,5 +1,5 @@
1
- import { A as Avatar } from '../Avatar-B8lVnLpp.js';
2
- export { a as AvatarProps } from '../Avatar-B8lVnLpp.js';
1
+ import { A as Avatar } from '../Avatar-ylNJ_-dY.js';
2
+ export { a as AvatarProps } from '../Avatar-ylNJ_-dY.js';
3
3
  import 'react/jsx-runtime';
4
4
  import 'tailwind-variants/dist/config.js';
5
5
  import 'tailwind-variants';
@@ -1,8 +1,8 @@
1
- import { A as AvatarGroup } from '../AvatarGroup-2Lmu_V2d.cjs';
2
- export { a as AvatarGroupProps } from '../AvatarGroup-2Lmu_V2d.cjs';
1
+ import { A as AvatarGroup } from '../AvatarGroup-CUyQwK3t.cjs';
2
+ export { a as AvatarGroupProps } from '../AvatarGroup-CUyQwK3t.cjs';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react';
5
- import '../Avatar-B8lVnLpp.cjs';
5
+ import '../Avatar-ylNJ_-dY.cjs';
6
6
  import 'tailwind-variants/dist/config.js';
7
7
  import 'tailwind-variants';
8
8
  import '@fuf-stack/pixel-utils';
@@ -1,8 +1,8 @@
1
- import { A as AvatarGroup } from '../AvatarGroup-BMKOfE_a.js';
2
- export { a as AvatarGroupProps } from '../AvatarGroup-BMKOfE_a.js';
1
+ import { A as AvatarGroup } from '../AvatarGroup-BfOtqfJy.js';
2
+ export { a as AvatarGroupProps } from '../AvatarGroup-BfOtqfJy.js';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react';
5
- import '../Avatar-B8lVnLpp.js';
5
+ import '../Avatar-ylNJ_-dY.js';
6
6
  import 'tailwind-variants/dist/config.js';
7
7
  import 'tailwind-variants';
8
8
  import '@fuf-stack/pixel-utils';
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { JSX } from 'react';
3
- import { a as AvatarProps } from './Avatar-B8lVnLpp.js';
3
+ import { a as AvatarProps } from './Avatar-ylNJ_-dY.js';
4
4
 
5
5
  interface AvatarGroupProps {
6
6
  bordered?: boolean;
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { JSX } from 'react';
3
- import { a as AvatarProps } from './Avatar-B8lVnLpp.cjs';
3
+ import { a as AvatarProps } from './Avatar-ylNJ_-dY.cjs';
4
4
 
5
5
  interface AvatarGroupProps {
6
6
  bordered?: boolean;
@@ -2,11 +2,11 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkHHCDSQ6Ncjs = require('../chunk-HHCDSQ6N.cjs');
5
+ var _chunkFLPLJTACcjs = require('../chunk-FLPLJTAC.cjs');
6
6
  require('../chunk-D4TLDLEX.cjs');
7
7
 
8
8
 
9
9
 
10
10
 
11
- exports.Button = _chunkHHCDSQ6Ncjs.Button_default; exports.buttonVariants = _chunkHHCDSQ6Ncjs.buttonVariants; exports.default = _chunkHHCDSQ6Ncjs.Button_default2;
11
+ exports.Button = _chunkFLPLJTACcjs.Button_default; exports.buttonVariants = _chunkFLPLJTACcjs.buttonVariants; exports.default = _chunkFLPLJTACcjs.Button_default2;
12
12
  //# sourceMappingURL=index.cjs.map
@@ -2,7 +2,7 @@ import {
2
2
  Button_default,
3
3
  Button_default2,
4
4
  buttonVariants
5
- } from "../chunk-Q5DUSUCZ.js";
5
+ } from "../chunk-MAKWBTTW.js";
6
6
  import "../chunk-J7N2552D.js";
7
7
  export {
8
8
  Button_default as Button,
@@ -1,5 +1,5 @@
1
- import { D as Drawer } from '../Drawer-DmwcvuKe.cjs';
2
- export { f as DrawerProps, d as drawerBackdrops, a as drawerPlacements, b as drawerRadii, c as drawerSizes, e as drawerVariants } from '../Drawer-DmwcvuKe.cjs';
1
+ import { D as Drawer } from '../Drawer-BnV9qxPA.cjs';
2
+ export { f as DrawerProps, d as drawerBackdrops, a as drawerPlacements, b as drawerRadii, c as drawerSizes, e as drawerVariants } from '../Drawer-BnV9qxPA.cjs';
3
3
  import 'react/jsx-runtime';
4
4
  import 'tailwind-variants/dist/config.js';
5
5
  import 'tailwind-variants';
@@ -1,5 +1,5 @@
1
- import { D as Drawer } from '../Drawer-DmwcvuKe.js';
2
- export { f as DrawerProps, d as drawerBackdrops, a as drawerPlacements, b as drawerRadii, c as drawerSizes, e as drawerVariants } from '../Drawer-DmwcvuKe.js';
1
+ import { D as Drawer } from '../Drawer-BnV9qxPA.js';
2
+ export { f as DrawerProps, d as drawerBackdrops, a as drawerPlacements, b as drawerRadii, c as drawerSizes, e as drawerVariants } from '../Drawer-BnV9qxPA.js';
3
3
  import 'react/jsx-runtime';
4
4
  import 'tailwind-variants/dist/config.js';
5
5
  import 'tailwind-variants';
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunk374SO74Fcjs = require('../chunk-374SO74F.cjs');
5
- require('../chunk-HHCDSQ6N.cjs');
4
+ var _chunkJ63YGHTGcjs = require('../chunk-J63YGHTG.cjs');
5
+ require('../chunk-FLPLJTAC.cjs');
6
6
  require('../chunk-D4TLDLEX.cjs');
7
7
 
8
8
 
9
9
 
10
- exports.Json = _chunk374SO74Fcjs.Json_default; exports.default = _chunk374SO74Fcjs.Json_default2;
10
+ exports.Json = _chunkJ63YGHTGcjs.Json_default; exports.default = _chunkJ63YGHTGcjs.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-L3DEBOPG.js";
5
- import "../chunk-Q5DUSUCZ.js";
4
+ } from "../chunk-VRPX6QUG.js";
5
+ import "../chunk-MAKWBTTW.js";
6
6
  import "../chunk-J7N2552D.js";
7
7
  export {
8
8
  Json_default as Json,
@@ -1,89 +1,12 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-D4TLDLEX.cjs');
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- // src/Progress/Progress.tsx
4
- var _progress = require('@heroui/progress');
5
- var _pixelutils = require('@fuf-stack/pixel-utils');
6
- var _jsxruntime = require('react/jsx-runtime');
7
- var progressVariants = _pixelutils.tv.call(void 0, {
8
- slots: {
9
- base: "",
10
- // wrapper around the whole component
11
- indicator: "",
12
- // indicator of the progress (finished part)
13
- label: "",
14
- // label at the top left of the progress bar
15
- labelWrapper: "",
16
- // wrapper around progress label and label span
17
- track: "",
18
- // track of the progress (not finished part)
19
- value: ""
20
- // span around the progress value
21
- },
22
- variants: {
23
- // see: https://github.com/heroui-inc/heroui/blob/canary/packages/core/theme/src/components/progress.ts
24
- color: {
25
- danger: {
26
- indicator: "bg-danger"
27
- },
28
- default: {
29
- indicator: "bg-default-400"
30
- },
31
- info: {
32
- indicator: "bg-info"
33
- },
34
- primary: {
35
- indicator: "bg-primary"
36
- },
37
- secondary: {
38
- indicator: "bg-secondary"
39
- },
40
- success: {
41
- indicator: "bg-success"
42
- },
43
- warning: {
44
- indicator: "bg-warning"
45
- }
46
- }
47
- }
48
- });
49
- var defaultFormat = (percent) => `${percent}%`;
50
- var Progress = ({
51
- className = void 0,
52
- color = "primary",
53
- format = defaultFormat,
54
- label = void 0,
55
- percent,
56
- showValueLabel = true,
57
- size = "md",
58
- successOnComplete = false,
59
- testId = void 0
60
- }) => {
61
- const processedColor = successOnComplete && percent >= 100 ? "success" : color;
62
- const variants = progressVariants({ color: processedColor });
63
- const classNames = _pixelutils.variantsToClassNames.call(void 0, variants, className, "base");
64
- const value = format(percent);
65
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
66
- _progress.Progress,
67
- {
68
- "aria-label": "Loading...",
69
- classNames,
70
- "data-testid": testId,
71
- formatOptions: void 0,
72
- label,
73
- showValueLabel,
74
- size,
75
- value: percent || 0,
76
- valueLabel: !!percent && value
77
- }
78
- );
79
- };
80
- var Progress_default = Progress;
81
3
 
82
- // src/Progress/index.ts
83
- var Progress_default2 = Progress_default;
84
4
 
5
+ var _chunkVGXW3PSFcjs = require('../chunk-VGXW3PSF.cjs');
6
+ require('../chunk-D4TLDLEX.cjs');
85
7
 
86
8
 
87
9
 
88
- exports.Progress = Progress_default; exports.default = Progress_default2; exports.progressVariants = progressVariants;
10
+
11
+ exports.Progress = _chunkVGXW3PSFcjs.Progress_default; exports.default = _chunkVGXW3PSFcjs.Progress_default2; exports.progressVariants = _chunkVGXW3PSFcjs.progressVariants;
89
12
  //# sourceMappingURL=index.cjs.map
@@ -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 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
+ {"version":3,"sources":["/home/runner/work/pixels/pixels/packages/pixels/dist/Progress/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACA;AACF,4KAAC","file":"/home/runner/work/pixels/pixels/packages/pixels/dist/Progress/index.cjs"}
@@ -1,224 +1,11 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import * as tailwind_variants from 'tailwind-variants';
3
- import * as tailwind_variants_dist_config_js from 'tailwind-variants/dist/config.js';
4
- import { TVProps, TVClassName } from '@fuf-stack/pixel-utils';
5
- import { ReactNode } from 'react';
1
+ import { P as Progress } from '../Progress-7yXUVioO.cjs';
2
+ export { a as ProgressProps, p as progressVariants } from '../Progress-7yXUVioO.cjs';
3
+ import 'react/jsx-runtime';
4
+ import 'tailwind-variants';
5
+ import 'tailwind-variants/dist/config.js';
6
+ import '@fuf-stack/pixel-utils';
7
+ import 'react';
6
8
 
7
- declare const progressVariants: tailwind_variants.TVReturnType<{
8
- color: {
9
- danger: {
10
- indicator: string;
11
- };
12
- default: {
13
- indicator: string;
14
- };
15
- info: {
16
- indicator: string;
17
- };
18
- primary: {
19
- indicator: string;
20
- };
21
- secondary: {
22
- indicator: string;
23
- };
24
- success: {
25
- indicator: string;
26
- };
27
- warning: {
28
- indicator: string;
29
- };
30
- };
31
- }, {
32
- base: string;
33
- indicator: string;
34
- label: string;
35
- labelWrapper: string;
36
- track: string;
37
- value: string;
38
- }, undefined, tailwind_variants_dist_config_js.TVConfig<{
39
- color: {
40
- danger: {
41
- indicator: string;
42
- };
43
- default: {
44
- indicator: string;
45
- };
46
- info: {
47
- indicator: string;
48
- };
49
- primary: {
50
- indicator: string;
51
- };
52
- secondary: {
53
- indicator: string;
54
- };
55
- success: {
56
- indicator: string;
57
- };
58
- warning: {
59
- indicator: string;
60
- };
61
- };
62
- }, {
63
- color: {
64
- danger: {
65
- indicator: string;
66
- };
67
- default: {
68
- indicator: string;
69
- };
70
- info: {
71
- indicator: string;
72
- };
73
- primary: {
74
- indicator: string;
75
- };
76
- secondary: {
77
- indicator: string;
78
- };
79
- success: {
80
- indicator: string;
81
- };
82
- warning: {
83
- indicator: string;
84
- };
85
- };
86
- }>, {
87
- color: {
88
- danger: {
89
- indicator: string;
90
- };
91
- default: {
92
- indicator: string;
93
- };
94
- info: {
95
- indicator: string;
96
- };
97
- primary: {
98
- indicator: string;
99
- };
100
- secondary: {
101
- indicator: string;
102
- };
103
- success: {
104
- indicator: string;
105
- };
106
- warning: {
107
- indicator: string;
108
- };
109
- };
110
- }, {
111
- base: string;
112
- indicator: string;
113
- label: string;
114
- labelWrapper: string;
115
- track: string;
116
- value: string;
117
- }, tailwind_variants.TVReturnType<{
118
- color: {
119
- danger: {
120
- indicator: string;
121
- };
122
- default: {
123
- indicator: string;
124
- };
125
- info: {
126
- indicator: string;
127
- };
128
- primary: {
129
- indicator: string;
130
- };
131
- secondary: {
132
- indicator: string;
133
- };
134
- success: {
135
- indicator: string;
136
- };
137
- warning: {
138
- indicator: string;
139
- };
140
- };
141
- }, {
142
- base: string;
143
- indicator: string;
144
- label: string;
145
- labelWrapper: string;
146
- track: string;
147
- value: string;
148
- }, undefined, tailwind_variants_dist_config_js.TVConfig<{
149
- color: {
150
- danger: {
151
- indicator: string;
152
- };
153
- default: {
154
- indicator: string;
155
- };
156
- info: {
157
- indicator: string;
158
- };
159
- primary: {
160
- indicator: string;
161
- };
162
- secondary: {
163
- indicator: string;
164
- };
165
- success: {
166
- indicator: string;
167
- };
168
- warning: {
169
- indicator: string;
170
- };
171
- };
172
- }, {
173
- color: {
174
- danger: {
175
- indicator: string;
176
- };
177
- default: {
178
- indicator: string;
179
- };
180
- info: {
181
- indicator: string;
182
- };
183
- primary: {
184
- indicator: string;
185
- };
186
- secondary: {
187
- indicator: string;
188
- };
189
- success: {
190
- indicator: string;
191
- };
192
- warning: {
193
- indicator: string;
194
- };
195
- };
196
- }>, unknown, unknown, undefined>>;
197
- type VariantProps = TVProps<typeof progressVariants>;
198
- type ClassName = TVClassName<typeof progressVariants>;
199
- interface ProgressProps extends VariantProps {
200
- /** CSS class name */
201
- className?: ClassName;
202
- /** color of the progress bar */
203
- color?: VariantProps['color'];
204
- /** function to format the progress value */
205
- format?: (percent: number) => ReactNode;
206
- /** label of the progress bar */
207
- label?: ReactNode;
208
- /** percentage/progress of the progress bar */
209
- percent: number;
210
- /** whether to show the value label */
211
- showValueLabel?: boolean;
212
- /** size of the progress bar */
213
- size?: 'sm' | 'md' | 'lg';
214
- /** whether to show success color on complete */
215
- successOnComplete?: boolean;
216
- /** HTML data-testid attribute used in e2e tests */
217
- testId?: string;
218
- }
219
- /**
220
- * Progress component based on [HeroUI Progress](https://www.heroui.com//docs/components/progress)
221
- */
222
- declare const Progress: ({ className, color, format, label, percent, showValueLabel, size, successOnComplete, testId, }: ProgressProps) => react_jsx_runtime.JSX.Element;
223
9
 
224
- export { Progress, type ProgressProps, type VariantProps, Progress as default, progressVariants };
10
+
11
+ export { Progress, Progress as default };