premium-react-loaders 1.0.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 (158) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +375 -0
  3. package/dist/components/index.d.ts +5 -0
  4. package/dist/components/index.d.ts.map +1 -0
  5. package/dist/components/progress/ProgressBar.d.ts +15 -0
  6. package/dist/components/progress/ProgressBar.d.ts.map +1 -0
  7. package/dist/components/progress/ProgressCircle.d.ts +15 -0
  8. package/dist/components/progress/ProgressCircle.d.ts.map +1 -0
  9. package/dist/components/progress/ProgressRing.d.ts +15 -0
  10. package/dist/components/progress/ProgressRing.d.ts.map +1 -0
  11. package/dist/components/progress/index.d.ts +4 -0
  12. package/dist/components/progress/index.d.ts.map +1 -0
  13. package/dist/components/pulse/PulseBars.d.ts +14 -0
  14. package/dist/components/pulse/PulseBars.d.ts.map +1 -0
  15. package/dist/components/pulse/PulseDots.d.ts +14 -0
  16. package/dist/components/pulse/PulseDots.d.ts.map +1 -0
  17. package/dist/components/pulse/PulseWave.d.ts +14 -0
  18. package/dist/components/pulse/PulseWave.d.ts.map +1 -0
  19. package/dist/components/pulse/index.d.ts +4 -0
  20. package/dist/components/pulse/index.d.ts.map +1 -0
  21. package/dist/components/skeleton/Skeleton.d.ts +15 -0
  22. package/dist/components/skeleton/Skeleton.d.ts.map +1 -0
  23. package/dist/components/skeleton/SkeletonAvatar.d.ts +14 -0
  24. package/dist/components/skeleton/SkeletonAvatar.d.ts.map +1 -0
  25. package/dist/components/skeleton/SkeletonCard.d.ts +15 -0
  26. package/dist/components/skeleton/SkeletonCard.d.ts.map +1 -0
  27. package/dist/components/skeleton/SkeletonImage.d.ts +14 -0
  28. package/dist/components/skeleton/SkeletonImage.d.ts.map +1 -0
  29. package/dist/components/skeleton/SkeletonList.d.ts +14 -0
  30. package/dist/components/skeleton/SkeletonList.d.ts.map +1 -0
  31. package/dist/components/skeleton/SkeletonTable.d.ts +14 -0
  32. package/dist/components/skeleton/SkeletonTable.d.ts.map +1 -0
  33. package/dist/components/skeleton/SkeletonText.d.ts +14 -0
  34. package/dist/components/skeleton/SkeletonText.d.ts.map +1 -0
  35. package/dist/components/skeleton/index.d.ts +8 -0
  36. package/dist/components/skeleton/index.d.ts.map +1 -0
  37. package/dist/components/spinner/SpinnerBars.d.ts +14 -0
  38. package/dist/components/spinner/SpinnerBars.d.ts.map +1 -0
  39. package/dist/components/spinner/SpinnerCircle.d.ts +14 -0
  40. package/dist/components/spinner/SpinnerCircle.d.ts.map +1 -0
  41. package/dist/components/spinner/SpinnerDots.d.ts +14 -0
  42. package/dist/components/spinner/SpinnerDots.d.ts.map +1 -0
  43. package/dist/components/spinner/SpinnerGrid.d.ts +14 -0
  44. package/dist/components/spinner/SpinnerGrid.d.ts.map +1 -0
  45. package/dist/components/spinner/SpinnerRing.d.ts +14 -0
  46. package/dist/components/spinner/SpinnerRing.d.ts.map +1 -0
  47. package/dist/components/spinner/index.d.ts +6 -0
  48. package/dist/components/spinner/index.d.ts.map +1 -0
  49. package/dist/index.cjs +47 -0
  50. package/dist/index.cjs.map +1 -0
  51. package/dist/index.d.ts +6 -0
  52. package/dist/index.d.ts.map +1 -0
  53. package/dist/index.js +47 -0
  54. package/dist/index.js.map +1 -0
  55. package/dist/index10.cjs +58 -0
  56. package/dist/index10.cjs.map +1 -0
  57. package/dist/index10.js +58 -0
  58. package/dist/index10.js.map +1 -0
  59. package/dist/index11.cjs +55 -0
  60. package/dist/index11.cjs.map +1 -0
  61. package/dist/index11.js +55 -0
  62. package/dist/index11.js.map +1 -0
  63. package/dist/index12.cjs +63 -0
  64. package/dist/index12.cjs.map +1 -0
  65. package/dist/index12.js +63 -0
  66. package/dist/index12.js.map +1 -0
  67. package/dist/index13.cjs +51 -0
  68. package/dist/index13.cjs.map +1 -0
  69. package/dist/index13.js +51 -0
  70. package/dist/index13.js.map +1 -0
  71. package/dist/index14.cjs +74 -0
  72. package/dist/index14.cjs.map +1 -0
  73. package/dist/index14.js +74 -0
  74. package/dist/index14.js.map +1 -0
  75. package/dist/index15.cjs +58 -0
  76. package/dist/index15.cjs.map +1 -0
  77. package/dist/index15.js +58 -0
  78. package/dist/index15.js.map +1 -0
  79. package/dist/index16.cjs +71 -0
  80. package/dist/index16.cjs.map +1 -0
  81. package/dist/index16.js +71 -0
  82. package/dist/index16.js.map +1 -0
  83. package/dist/index17.cjs +81 -0
  84. package/dist/index17.cjs.map +1 -0
  85. package/dist/index17.js +81 -0
  86. package/dist/index17.js.map +1 -0
  87. package/dist/index18.cjs +107 -0
  88. package/dist/index18.cjs.map +1 -0
  89. package/dist/index18.js +107 -0
  90. package/dist/index18.js.map +1 -0
  91. package/dist/index19.cjs +113 -0
  92. package/dist/index19.cjs.map +1 -0
  93. package/dist/index19.js +113 -0
  94. package/dist/index19.js.map +1 -0
  95. package/dist/index20.cjs +57 -0
  96. package/dist/index20.cjs.map +1 -0
  97. package/dist/index20.js +57 -0
  98. package/dist/index20.js.map +1 -0
  99. package/dist/index21.cjs +62 -0
  100. package/dist/index21.cjs.map +1 -0
  101. package/dist/index21.js +62 -0
  102. package/dist/index21.js.map +1 -0
  103. package/dist/index22.cjs +64 -0
  104. package/dist/index22.cjs.map +1 -0
  105. package/dist/index22.js +64 -0
  106. package/dist/index22.js.map +1 -0
  107. package/dist/index23.cjs +18 -0
  108. package/dist/index23.cjs.map +1 -0
  109. package/dist/index23.js +18 -0
  110. package/dist/index23.js.map +1 -0
  111. package/dist/index3.cjs +8 -0
  112. package/dist/index3.cjs.map +1 -0
  113. package/dist/index3.js +8 -0
  114. package/dist/index3.js.map +1 -0
  115. package/dist/index4.cjs +22 -0
  116. package/dist/index4.cjs.map +1 -0
  117. package/dist/index4.js +22 -0
  118. package/dist/index4.js.map +1 -0
  119. package/dist/index5.cjs +65 -0
  120. package/dist/index5.cjs.map +1 -0
  121. package/dist/index5.js +65 -0
  122. package/dist/index5.js.map +1 -0
  123. package/dist/index6.cjs +59 -0
  124. package/dist/index6.cjs.map +1 -0
  125. package/dist/index6.js +59 -0
  126. package/dist/index6.js.map +1 -0
  127. package/dist/index7.cjs +43 -0
  128. package/dist/index7.cjs.map +1 -0
  129. package/dist/index7.js +43 -0
  130. package/dist/index7.js.map +1 -0
  131. package/dist/index8.cjs +47 -0
  132. package/dist/index8.cjs.map +1 -0
  133. package/dist/index8.js +47 -0
  134. package/dist/index8.js.map +1 -0
  135. package/dist/index9.cjs +77 -0
  136. package/dist/index9.cjs.map +1 -0
  137. package/dist/index9.js +77 -0
  138. package/dist/index9.js.map +1 -0
  139. package/dist/premium-react-loaders.css +701 -0
  140. package/dist/types/common.d.ts +65 -0
  141. package/dist/types/common.d.ts.map +1 -0
  142. package/dist/types/index.d.ts +6 -0
  143. package/dist/types/index.d.ts.map +1 -0
  144. package/dist/types/progress.d.ts +25 -0
  145. package/dist/types/progress.d.ts.map +1 -0
  146. package/dist/types/pulse.d.ts +25 -0
  147. package/dist/types/pulse.d.ts.map +1 -0
  148. package/dist/types/skeleton.d.ts +71 -0
  149. package/dist/types/skeleton.d.ts.map +1 -0
  150. package/dist/types/spinner.d.ts +39 -0
  151. package/dist/types/spinner.d.ts.map +1 -0
  152. package/dist/utils/classNames.d.ts +14 -0
  153. package/dist/utils/classNames.d.ts.map +1 -0
  154. package/dist/utils/colors.d.ts +25 -0
  155. package/dist/utils/colors.d.ts.map +1 -0
  156. package/dist/utils/index.d.ts +3 -0
  157. package/dist/utils/index.d.ts.map +1 -0
  158. package/package.json +89 -0
@@ -0,0 +1,63 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { forwardRef } from "react";
3
+ import { getAnimationDuration, normalizeSize } from "./index4.js";
4
+ import { cn } from "./index3.js";
5
+ const SpinnerCircle = forwardRef(
6
+ ({
7
+ size = 40,
8
+ color = "#3b82f6",
9
+ thickness = 4,
10
+ speed = "normal",
11
+ className,
12
+ style,
13
+ testId = "spinner-circle",
14
+ visible = true,
15
+ ariaLabel = "Loading...",
16
+ ...rest
17
+ }, ref) => {
18
+ if (!visible) return null;
19
+ return /* @__PURE__ */ jsx(
20
+ "div",
21
+ {
22
+ ref,
23
+ "data-testid": testId,
24
+ className: cn("inline-flex items-center justify-center", className),
25
+ style,
26
+ role: "status",
27
+ "aria-label": ariaLabel,
28
+ "aria-busy": "true",
29
+ ...rest,
30
+ children: /* @__PURE__ */ jsx(
31
+ "svg",
32
+ {
33
+ className: "animate-spinner-rotate",
34
+ style: {
35
+ width: normalizeSize(size),
36
+ height: normalizeSize(size),
37
+ animationDuration: getAnimationDuration(speed)
38
+ },
39
+ viewBox: "0 0 50 50",
40
+ children: /* @__PURE__ */ jsx(
41
+ "circle",
42
+ {
43
+ cx: "25",
44
+ cy: "25",
45
+ r: 25 - thickness * 2,
46
+ fill: "none",
47
+ stroke: color,
48
+ strokeWidth: thickness,
49
+ strokeDasharray: "80, 200",
50
+ strokeLinecap: "round"
51
+ }
52
+ )
53
+ }
54
+ )
55
+ }
56
+ );
57
+ }
58
+ );
59
+ SpinnerCircle.displayName = "SpinnerCircle";
60
+ export {
61
+ SpinnerCircle
62
+ };
63
+ //# sourceMappingURL=index12.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index12.js","sources":["../src/components/spinner/SpinnerCircle.tsx"],"sourcesContent":["import { forwardRef } from 'react';\nimport { SpinnerCircleProps } from '../../types';\nimport { cn, normalizeSize, getAnimationDuration } from '../../utils';\n\n/**\n * SpinnerCircle - Basic rotating circle spinner\n *\n * A simple, elegant circular spinner with a partial arc that rotates continuously.\n *\n * @example\n * ```tsx\n * <SpinnerCircle size={40} color=\"#3b82f6\" />\n * <SpinnerCircle size={24} thickness={3} speed=\"fast\" />\n * ```\n */\nexport const SpinnerCircle = forwardRef<HTMLDivElement, SpinnerCircleProps>(\n (\n {\n size = 40,\n color = '#3b82f6',\n thickness = 4,\n speed = 'normal',\n className,\n style,\n testId = 'spinner-circle',\n visible = true,\n ariaLabel = 'Loading...',\n ...rest\n },\n ref\n ) => {\n if (!visible) return null;\n\n return (\n <div\n ref={ref}\n data-testid={testId}\n className={cn('inline-flex items-center justify-center', className)}\n style={style}\n role=\"status\"\n aria-label={ariaLabel}\n aria-busy=\"true\"\n {...rest}\n >\n <svg\n className=\"animate-spinner-rotate\"\n style={{\n width: normalizeSize(size),\n height: normalizeSize(size),\n animationDuration: getAnimationDuration(speed),\n }}\n viewBox=\"0 0 50 50\"\n >\n <circle\n cx=\"25\"\n cy=\"25\"\n r={25 - thickness * 2}\n fill=\"none\"\n stroke={color}\n strokeWidth={thickness}\n strokeDasharray=\"80, 200\"\n strokeLinecap=\"round\"\n />\n </svg>\n </div>\n );\n }\n);\n\nSpinnerCircle.displayName = 'SpinnerCircle';\n"],"names":[],"mappings":";;;;AAeO,MAAM,gBAAgB;AAAA,EAC3B,CACE;AAAA,IACE,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,YAAY;AAAA,IACZ,QAAQ;AAAA,IACR;AAAA,IACA;AAAA,IACA,SAAS;AAAA,IACT,UAAU;AAAA,IACV,YAAY;AAAA,IACZ,GAAG;AAAA,EAAA,GAEL,QACG;AACH,QAAI,CAAC,QAAS,QAAO;AAErB,WACE;AAAA,MAAC;AAAA,MAAA;AAAA,QACC;AAAA,QACA,eAAa;AAAA,QACb,WAAW,GAAG,2CAA2C,SAAS;AAAA,QAClE;AAAA,QACA,MAAK;AAAA,QACL,cAAY;AAAA,QACZ,aAAU;AAAA,QACT,GAAG;AAAA,QAEJ,UAAA;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,WAAU;AAAA,YACV,OAAO;AAAA,cACL,OAAO,cAAc,IAAI;AAAA,cACzB,QAAQ,cAAc,IAAI;AAAA,cAC1B,mBAAmB,qBAAqB,KAAK;AAAA,YAAA;AAAA,YAE/C,SAAQ;AAAA,YAER,UAAA;AAAA,cAAC;AAAA,cAAA;AAAA,gBACC,IAAG;AAAA,gBACH,IAAG;AAAA,gBACH,GAAG,KAAK,YAAY;AAAA,gBACpB,MAAK;AAAA,gBACL,QAAQ;AAAA,gBACR,aAAa;AAAA,gBACb,iBAAgB;AAAA,gBAChB,eAAc;AAAA,cAAA;AAAA,YAAA;AAAA,UAChB;AAAA,QAAA;AAAA,MACF;AAAA,IAAA;AAAA,EAGN;AACF;AAEA,cAAc,cAAc;"}
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const jsxRuntime = require("react/jsx-runtime");
4
+ const react = require("react");
5
+ const classNames = require("./index3.cjs");
6
+ const colors = require("./index4.cjs");
7
+ const SpinnerRing = react.forwardRef(
8
+ ({
9
+ size = 40,
10
+ color = "#3b82f6",
11
+ thickness = 4,
12
+ speed = "normal",
13
+ className,
14
+ style,
15
+ testId = "spinner-ring",
16
+ visible = true,
17
+ ariaLabel = "Loading...",
18
+ ...rest
19
+ }, ref) => {
20
+ if (!visible) return null;
21
+ return /* @__PURE__ */ jsxRuntime.jsx(
22
+ "div",
23
+ {
24
+ ref,
25
+ "data-testid": testId,
26
+ className: classNames.cn("inline-flex items-center justify-center", className),
27
+ style,
28
+ role: "status",
29
+ "aria-label": ariaLabel,
30
+ "aria-busy": "true",
31
+ ...rest,
32
+ children: /* @__PURE__ */ jsxRuntime.jsx(
33
+ "div",
34
+ {
35
+ className: "rounded-full",
36
+ style: {
37
+ width: colors.normalizeSize(size),
38
+ height: colors.normalizeSize(size),
39
+ border: `${thickness}px solid rgba(0, 0, 0, 0.1)`,
40
+ borderTopColor: color,
41
+ animation: `spinner-rotate ${colors.getAnimationDuration(speed)} linear infinite`
42
+ }
43
+ }
44
+ )
45
+ }
46
+ );
47
+ }
48
+ );
49
+ SpinnerRing.displayName = "SpinnerRing";
50
+ exports.SpinnerRing = SpinnerRing;
51
+ //# sourceMappingURL=index13.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index13.cjs","sources":["../src/components/spinner/SpinnerRing.tsx"],"sourcesContent":["import { forwardRef } from 'react';\nimport { SpinnerRingProps } from '../../types';\nimport { cn, normalizeSize, getAnimationDuration } from '../../utils';\n\n/**\n * SpinnerRing - Border-only rotating spinner\n *\n * A ring-style spinner with a transparent center and colored border.\n *\n * @example\n * ```tsx\n * <SpinnerRing size={40} color=\"#8b5cf6\" />\n * <SpinnerRing size={32} thickness={3} speed=\"slow\" />\n * ```\n */\nexport const SpinnerRing = forwardRef<HTMLDivElement, SpinnerRingProps>(\n (\n {\n size = 40,\n color = '#3b82f6',\n thickness = 4,\n speed = 'normal',\n className,\n style,\n testId = 'spinner-ring',\n visible = true,\n ariaLabel = 'Loading...',\n ...rest\n },\n ref\n ) => {\n if (!visible) return null;\n\n return (\n <div\n ref={ref}\n data-testid={testId}\n className={cn('inline-flex items-center justify-center', className)}\n style={style}\n role=\"status\"\n aria-label={ariaLabel}\n aria-busy=\"true\"\n {...rest}\n >\n <div\n className=\"rounded-full\"\n style={{\n width: normalizeSize(size),\n height: normalizeSize(size),\n border: `${thickness}px solid rgba(0, 0, 0, 0.1)`,\n borderTopColor: color,\n animation: `spinner-rotate ${getAnimationDuration(speed)} linear infinite`,\n }}\n />\n </div>\n );\n }\n);\n\nSpinnerRing.displayName = 'SpinnerRing';\n"],"names":["forwardRef","jsx","cn","normalizeSize","getAnimationDuration"],"mappings":";;;;;;AAeO,MAAM,cAAcA,MAAAA;AAAAA,EACzB,CACE;AAAA,IACE,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,YAAY;AAAA,IACZ,QAAQ;AAAA,IACR;AAAA,IACA;AAAA,IACA,SAAS;AAAA,IACT,UAAU;AAAA,IACV,YAAY;AAAA,IACZ,GAAG;AAAA,EAAA,GAEL,QACG;AACH,QAAI,CAAC,QAAS,QAAO;AAErB,WACEC,2BAAAA;AAAAA,MAAC;AAAA,MAAA;AAAA,QACC;AAAA,QACA,eAAa;AAAA,QACb,WAAWC,WAAAA,GAAG,2CAA2C,SAAS;AAAA,QAClE;AAAA,QACA,MAAK;AAAA,QACL,cAAY;AAAA,QACZ,aAAU;AAAA,QACT,GAAG;AAAA,QAEJ,UAAAD,2BAAAA;AAAAA,UAAC;AAAA,UAAA;AAAA,YACC,WAAU;AAAA,YACV,OAAO;AAAA,cACL,OAAOE,OAAAA,cAAc,IAAI;AAAA,cACzB,QAAQA,OAAAA,cAAc,IAAI;AAAA,cAC1B,QAAQ,GAAG,SAAS;AAAA,cACpB,gBAAgB;AAAA,cAChB,WAAW,kBAAkBC,4BAAqB,KAAK,CAAC;AAAA,YAAA;AAAA,UAC1D;AAAA,QAAA;AAAA,MACF;AAAA,IAAA;AAAA,EAGN;AACF;AAEA,YAAY,cAAc;;"}
@@ -0,0 +1,51 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { forwardRef } from "react";
3
+ import { cn } from "./index3.js";
4
+ import { getAnimationDuration, normalizeSize } from "./index4.js";
5
+ const SpinnerRing = forwardRef(
6
+ ({
7
+ size = 40,
8
+ color = "#3b82f6",
9
+ thickness = 4,
10
+ speed = "normal",
11
+ className,
12
+ style,
13
+ testId = "spinner-ring",
14
+ visible = true,
15
+ ariaLabel = "Loading...",
16
+ ...rest
17
+ }, ref) => {
18
+ if (!visible) return null;
19
+ return /* @__PURE__ */ jsx(
20
+ "div",
21
+ {
22
+ ref,
23
+ "data-testid": testId,
24
+ className: cn("inline-flex items-center justify-center", className),
25
+ style,
26
+ role: "status",
27
+ "aria-label": ariaLabel,
28
+ "aria-busy": "true",
29
+ ...rest,
30
+ children: /* @__PURE__ */ jsx(
31
+ "div",
32
+ {
33
+ className: "rounded-full",
34
+ style: {
35
+ width: normalizeSize(size),
36
+ height: normalizeSize(size),
37
+ border: `${thickness}px solid rgba(0, 0, 0, 0.1)`,
38
+ borderTopColor: color,
39
+ animation: `spinner-rotate ${getAnimationDuration(speed)} linear infinite`
40
+ }
41
+ }
42
+ )
43
+ }
44
+ );
45
+ }
46
+ );
47
+ SpinnerRing.displayName = "SpinnerRing";
48
+ export {
49
+ SpinnerRing
50
+ };
51
+ //# sourceMappingURL=index13.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index13.js","sources":["../src/components/spinner/SpinnerRing.tsx"],"sourcesContent":["import { forwardRef } from 'react';\nimport { SpinnerRingProps } from '../../types';\nimport { cn, normalizeSize, getAnimationDuration } from '../../utils';\n\n/**\n * SpinnerRing - Border-only rotating spinner\n *\n * A ring-style spinner with a transparent center and colored border.\n *\n * @example\n * ```tsx\n * <SpinnerRing size={40} color=\"#8b5cf6\" />\n * <SpinnerRing size={32} thickness={3} speed=\"slow\" />\n * ```\n */\nexport const SpinnerRing = forwardRef<HTMLDivElement, SpinnerRingProps>(\n (\n {\n size = 40,\n color = '#3b82f6',\n thickness = 4,\n speed = 'normal',\n className,\n style,\n testId = 'spinner-ring',\n visible = true,\n ariaLabel = 'Loading...',\n ...rest\n },\n ref\n ) => {\n if (!visible) return null;\n\n return (\n <div\n ref={ref}\n data-testid={testId}\n className={cn('inline-flex items-center justify-center', className)}\n style={style}\n role=\"status\"\n aria-label={ariaLabel}\n aria-busy=\"true\"\n {...rest}\n >\n <div\n className=\"rounded-full\"\n style={{\n width: normalizeSize(size),\n height: normalizeSize(size),\n border: `${thickness}px solid rgba(0, 0, 0, 0.1)`,\n borderTopColor: color,\n animation: `spinner-rotate ${getAnimationDuration(speed)} linear infinite`,\n }}\n />\n </div>\n );\n }\n);\n\nSpinnerRing.displayName = 'SpinnerRing';\n"],"names":[],"mappings":";;;;AAeO,MAAM,cAAc;AAAA,EACzB,CACE;AAAA,IACE,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,YAAY;AAAA,IACZ,QAAQ;AAAA,IACR;AAAA,IACA;AAAA,IACA,SAAS;AAAA,IACT,UAAU;AAAA,IACV,YAAY;AAAA,IACZ,GAAG;AAAA,EAAA,GAEL,QACG;AACH,QAAI,CAAC,QAAS,QAAO;AAErB,WACE;AAAA,MAAC;AAAA,MAAA;AAAA,QACC;AAAA,QACA,eAAa;AAAA,QACb,WAAW,GAAG,2CAA2C,SAAS;AAAA,QAClE;AAAA,QACA,MAAK;AAAA,QACL,cAAY;AAAA,QACZ,aAAU;AAAA,QACT,GAAG;AAAA,QAEJ,UAAA;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,WAAU;AAAA,YACV,OAAO;AAAA,cACL,OAAO,cAAc,IAAI;AAAA,cACzB,QAAQ,cAAc,IAAI;AAAA,cAC1B,QAAQ,GAAG,SAAS;AAAA,cACpB,gBAAgB;AAAA,cAChB,WAAW,kBAAkB,qBAAqB,KAAK,CAAC;AAAA,YAAA;AAAA,UAC1D;AAAA,QAAA;AAAA,MACF;AAAA,IAAA;AAAA,EAGN;AACF;AAEA,YAAY,cAAc;"}
@@ -0,0 +1,74 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const jsxRuntime = require("react/jsx-runtime");
4
+ const react = require("react");
5
+ const classNames = require("./index3.cjs");
6
+ const colors = require("./index4.cjs");
7
+ const SpinnerDots = react.forwardRef(
8
+ ({
9
+ size = 40,
10
+ color = "#3b82f6",
11
+ dotCount = 8,
12
+ dotSize = 4,
13
+ speed = "normal",
14
+ className,
15
+ style,
16
+ testId = "spinner-dots",
17
+ visible = true,
18
+ ariaLabel = "Loading...",
19
+ ...rest
20
+ }, ref) => {
21
+ if (!visible) return null;
22
+ const sizeValue = typeof size === "number" ? size : parseInt(String(size), 10);
23
+ const radius = (sizeValue - dotSize) / 2;
24
+ return /* @__PURE__ */ jsxRuntime.jsx(
25
+ "div",
26
+ {
27
+ ref,
28
+ "data-testid": testId,
29
+ className: classNames.cn("inline-flex items-center justify-center", className),
30
+ style,
31
+ role: "status",
32
+ "aria-label": ariaLabel,
33
+ "aria-busy": "true",
34
+ ...rest,
35
+ children: /* @__PURE__ */ jsxRuntime.jsx(
36
+ "div",
37
+ {
38
+ className: "relative",
39
+ style: {
40
+ width: colors.normalizeSize(size),
41
+ height: colors.normalizeSize(size),
42
+ animation: `spinner-rotate ${colors.getAnimationDuration(speed)} linear infinite`
43
+ },
44
+ children: Array.from({ length: dotCount }).map((_, index) => {
45
+ const angle = 360 / dotCount * index;
46
+ const radian = angle * Math.PI / 180;
47
+ const x = radius * Math.cos(radian) + radius;
48
+ const y = radius * Math.sin(radian) + radius;
49
+ return /* @__PURE__ */ jsxRuntime.jsx(
50
+ "div",
51
+ {
52
+ className: "absolute rounded-full",
53
+ style: {
54
+ width: colors.normalizeSize(dotSize),
55
+ height: colors.normalizeSize(dotSize),
56
+ backgroundColor: color,
57
+ left: `${x}px`,
58
+ top: `${y}px`,
59
+ opacity: 1 - index / dotCount * 0.7
60
+ // Fade effect
61
+ }
62
+ },
63
+ index
64
+ );
65
+ })
66
+ }
67
+ )
68
+ }
69
+ );
70
+ }
71
+ );
72
+ SpinnerDots.displayName = "SpinnerDots";
73
+ exports.SpinnerDots = SpinnerDots;
74
+ //# sourceMappingURL=index14.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index14.cjs","sources":["../src/components/spinner/SpinnerDots.tsx"],"sourcesContent":["import { forwardRef } from 'react';\nimport { SpinnerDotsProps } from '../../types';\nimport { cn, normalizeSize, getAnimationDuration } from '../../utils';\n\n/**\n * SpinnerDots - Multiple dots rotating around center\n *\n * A spinner with multiple dots arranged in a circle that rotates continuously.\n *\n * @example\n * ```tsx\n * <SpinnerDots size={40} color=\"#3b82f6\" />\n * <SpinnerDots size={48} dotCount={8} dotSize={6} />\n * ```\n */\nexport const SpinnerDots = forwardRef<HTMLDivElement, SpinnerDotsProps>(\n (\n {\n size = 40,\n color = '#3b82f6',\n dotCount = 8,\n dotSize = 4,\n speed = 'normal',\n className,\n style,\n testId = 'spinner-dots',\n visible = true,\n ariaLabel = 'Loading...',\n ...rest\n },\n ref\n ) => {\n if (!visible) return null;\n\n const sizeValue = typeof size === 'number' ? size : parseInt(String(size), 10);\n const radius = (sizeValue - dotSize) / 2;\n\n return (\n <div\n ref={ref}\n data-testid={testId}\n className={cn('inline-flex items-center justify-center', className)}\n style={style}\n role=\"status\"\n aria-label={ariaLabel}\n aria-busy=\"true\"\n {...rest}\n >\n <div\n className=\"relative\"\n style={{\n width: normalizeSize(size),\n height: normalizeSize(size),\n animation: `spinner-rotate ${getAnimationDuration(speed)} linear infinite`,\n }}\n >\n {Array.from({ length: dotCount }).map((_, index) => {\n const angle = (360 / dotCount) * index;\n const radian = (angle * Math.PI) / 180;\n const x = radius * Math.cos(radian) + radius;\n const y = radius * Math.sin(radian) + radius;\n\n return (\n <div\n key={index}\n className=\"absolute rounded-full\"\n style={{\n width: normalizeSize(dotSize),\n height: normalizeSize(dotSize),\n backgroundColor: color,\n left: `${x}px`,\n top: `${y}px`,\n opacity: 1 - (index / dotCount) * 0.7, // Fade effect\n }}\n />\n );\n })}\n </div>\n </div>\n );\n }\n);\n\nSpinnerDots.displayName = 'SpinnerDots';\n"],"names":["forwardRef","jsx","cn","normalizeSize","getAnimationDuration"],"mappings":";;;;;;AAeO,MAAM,cAAcA,MAAAA;AAAAA,EACzB,CACE;AAAA,IACE,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,WAAW;AAAA,IACX,UAAU;AAAA,IACV,QAAQ;AAAA,IACR;AAAA,IACA;AAAA,IACA,SAAS;AAAA,IACT,UAAU;AAAA,IACV,YAAY;AAAA,IACZ,GAAG;AAAA,EAAA,GAEL,QACG;AACH,QAAI,CAAC,QAAS,QAAO;AAErB,UAAM,YAAY,OAAO,SAAS,WAAW,OAAO,SAAS,OAAO,IAAI,GAAG,EAAE;AAC7E,UAAM,UAAU,YAAY,WAAW;AAEvC,WACEC,2BAAAA;AAAAA,MAAC;AAAA,MAAA;AAAA,QACC;AAAA,QACA,eAAa;AAAA,QACb,WAAWC,WAAAA,GAAG,2CAA2C,SAAS;AAAA,QAClE;AAAA,QACA,MAAK;AAAA,QACL,cAAY;AAAA,QACZ,aAAU;AAAA,QACT,GAAG;AAAA,QAEJ,UAAAD,2BAAAA;AAAAA,UAAC;AAAA,UAAA;AAAA,YACC,WAAU;AAAA,YACV,OAAO;AAAA,cACL,OAAOE,OAAAA,cAAc,IAAI;AAAA,cACzB,QAAQA,OAAAA,cAAc,IAAI;AAAA,cAC1B,WAAW,kBAAkBC,4BAAqB,KAAK,CAAC;AAAA,YAAA;AAAA,YAGzD,UAAA,MAAM,KAAK,EAAE,QAAQ,SAAA,CAAU,EAAE,IAAI,CAAC,GAAG,UAAU;AAClD,oBAAM,QAAS,MAAM,WAAY;AACjC,oBAAM,SAAU,QAAQ,KAAK,KAAM;AACnC,oBAAM,IAAI,SAAS,KAAK,IAAI,MAAM,IAAI;AACtC,oBAAM,IAAI,SAAS,KAAK,IAAI,MAAM,IAAI;AAEtC,qBACEH,2BAAAA;AAAAA,gBAAC;AAAA,gBAAA;AAAA,kBAEC,WAAU;AAAA,kBACV,OAAO;AAAA,oBACL,OAAOE,OAAAA,cAAc,OAAO;AAAA,oBAC5B,QAAQA,OAAAA,cAAc,OAAO;AAAA,oBAC7B,iBAAiB;AAAA,oBACjB,MAAM,GAAG,CAAC;AAAA,oBACV,KAAK,GAAG,CAAC;AAAA,oBACT,SAAS,IAAK,QAAQ,WAAY;AAAA;AAAA,kBAAA;AAAA,gBACpC;AAAA,gBATK;AAAA,cAAA;AAAA,YAYX,CAAC;AAAA,UAAA;AAAA,QAAA;AAAA,MACH;AAAA,IAAA;AAAA,EAGN;AACF;AAEA,YAAY,cAAc;;"}
@@ -0,0 +1,74 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { forwardRef } from "react";
3
+ import { cn } from "./index3.js";
4
+ import { getAnimationDuration, normalizeSize } from "./index4.js";
5
+ const SpinnerDots = forwardRef(
6
+ ({
7
+ size = 40,
8
+ color = "#3b82f6",
9
+ dotCount = 8,
10
+ dotSize = 4,
11
+ speed = "normal",
12
+ className,
13
+ style,
14
+ testId = "spinner-dots",
15
+ visible = true,
16
+ ariaLabel = "Loading...",
17
+ ...rest
18
+ }, ref) => {
19
+ if (!visible) return null;
20
+ const sizeValue = typeof size === "number" ? size : parseInt(String(size), 10);
21
+ const radius = (sizeValue - dotSize) / 2;
22
+ return /* @__PURE__ */ jsx(
23
+ "div",
24
+ {
25
+ ref,
26
+ "data-testid": testId,
27
+ className: cn("inline-flex items-center justify-center", className),
28
+ style,
29
+ role: "status",
30
+ "aria-label": ariaLabel,
31
+ "aria-busy": "true",
32
+ ...rest,
33
+ children: /* @__PURE__ */ jsx(
34
+ "div",
35
+ {
36
+ className: "relative",
37
+ style: {
38
+ width: normalizeSize(size),
39
+ height: normalizeSize(size),
40
+ animation: `spinner-rotate ${getAnimationDuration(speed)} linear infinite`
41
+ },
42
+ children: Array.from({ length: dotCount }).map((_, index) => {
43
+ const angle = 360 / dotCount * index;
44
+ const radian = angle * Math.PI / 180;
45
+ const x = radius * Math.cos(radian) + radius;
46
+ const y = radius * Math.sin(radian) + radius;
47
+ return /* @__PURE__ */ jsx(
48
+ "div",
49
+ {
50
+ className: "absolute rounded-full",
51
+ style: {
52
+ width: normalizeSize(dotSize),
53
+ height: normalizeSize(dotSize),
54
+ backgroundColor: color,
55
+ left: `${x}px`,
56
+ top: `${y}px`,
57
+ opacity: 1 - index / dotCount * 0.7
58
+ // Fade effect
59
+ }
60
+ },
61
+ index
62
+ );
63
+ })
64
+ }
65
+ )
66
+ }
67
+ );
68
+ }
69
+ );
70
+ SpinnerDots.displayName = "SpinnerDots";
71
+ export {
72
+ SpinnerDots
73
+ };
74
+ //# sourceMappingURL=index14.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index14.js","sources":["../src/components/spinner/SpinnerDots.tsx"],"sourcesContent":["import { forwardRef } from 'react';\nimport { SpinnerDotsProps } from '../../types';\nimport { cn, normalizeSize, getAnimationDuration } from '../../utils';\n\n/**\n * SpinnerDots - Multiple dots rotating around center\n *\n * A spinner with multiple dots arranged in a circle that rotates continuously.\n *\n * @example\n * ```tsx\n * <SpinnerDots size={40} color=\"#3b82f6\" />\n * <SpinnerDots size={48} dotCount={8} dotSize={6} />\n * ```\n */\nexport const SpinnerDots = forwardRef<HTMLDivElement, SpinnerDotsProps>(\n (\n {\n size = 40,\n color = '#3b82f6',\n dotCount = 8,\n dotSize = 4,\n speed = 'normal',\n className,\n style,\n testId = 'spinner-dots',\n visible = true,\n ariaLabel = 'Loading...',\n ...rest\n },\n ref\n ) => {\n if (!visible) return null;\n\n const sizeValue = typeof size === 'number' ? size : parseInt(String(size), 10);\n const radius = (sizeValue - dotSize) / 2;\n\n return (\n <div\n ref={ref}\n data-testid={testId}\n className={cn('inline-flex items-center justify-center', className)}\n style={style}\n role=\"status\"\n aria-label={ariaLabel}\n aria-busy=\"true\"\n {...rest}\n >\n <div\n className=\"relative\"\n style={{\n width: normalizeSize(size),\n height: normalizeSize(size),\n animation: `spinner-rotate ${getAnimationDuration(speed)} linear infinite`,\n }}\n >\n {Array.from({ length: dotCount }).map((_, index) => {\n const angle = (360 / dotCount) * index;\n const radian = (angle * Math.PI) / 180;\n const x = radius * Math.cos(radian) + radius;\n const y = radius * Math.sin(radian) + radius;\n\n return (\n <div\n key={index}\n className=\"absolute rounded-full\"\n style={{\n width: normalizeSize(dotSize),\n height: normalizeSize(dotSize),\n backgroundColor: color,\n left: `${x}px`,\n top: `${y}px`,\n opacity: 1 - (index / dotCount) * 0.7, // Fade effect\n }}\n />\n );\n })}\n </div>\n </div>\n );\n }\n);\n\nSpinnerDots.displayName = 'SpinnerDots';\n"],"names":[],"mappings":";;;;AAeO,MAAM,cAAc;AAAA,EACzB,CACE;AAAA,IACE,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,WAAW;AAAA,IACX,UAAU;AAAA,IACV,QAAQ;AAAA,IACR;AAAA,IACA;AAAA,IACA,SAAS;AAAA,IACT,UAAU;AAAA,IACV,YAAY;AAAA,IACZ,GAAG;AAAA,EAAA,GAEL,QACG;AACH,QAAI,CAAC,QAAS,QAAO;AAErB,UAAM,YAAY,OAAO,SAAS,WAAW,OAAO,SAAS,OAAO,IAAI,GAAG,EAAE;AAC7E,UAAM,UAAU,YAAY,WAAW;AAEvC,WACE;AAAA,MAAC;AAAA,MAAA;AAAA,QACC;AAAA,QACA,eAAa;AAAA,QACb,WAAW,GAAG,2CAA2C,SAAS;AAAA,QAClE;AAAA,QACA,MAAK;AAAA,QACL,cAAY;AAAA,QACZ,aAAU;AAAA,QACT,GAAG;AAAA,QAEJ,UAAA;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,WAAU;AAAA,YACV,OAAO;AAAA,cACL,OAAO,cAAc,IAAI;AAAA,cACzB,QAAQ,cAAc,IAAI;AAAA,cAC1B,WAAW,kBAAkB,qBAAqB,KAAK,CAAC;AAAA,YAAA;AAAA,YAGzD,UAAA,MAAM,KAAK,EAAE,QAAQ,SAAA,CAAU,EAAE,IAAI,CAAC,GAAG,UAAU;AAClD,oBAAM,QAAS,MAAM,WAAY;AACjC,oBAAM,SAAU,QAAQ,KAAK,KAAM;AACnC,oBAAM,IAAI,SAAS,KAAK,IAAI,MAAM,IAAI;AACtC,oBAAM,IAAI,SAAS,KAAK,IAAI,MAAM,IAAI;AAEtC,qBACE;AAAA,gBAAC;AAAA,gBAAA;AAAA,kBAEC,WAAU;AAAA,kBACV,OAAO;AAAA,oBACL,OAAO,cAAc,OAAO;AAAA,oBAC5B,QAAQ,cAAc,OAAO;AAAA,oBAC7B,iBAAiB;AAAA,oBACjB,MAAM,GAAG,CAAC;AAAA,oBACV,KAAK,GAAG,CAAC;AAAA,oBACT,SAAS,IAAK,QAAQ,WAAY;AAAA;AAAA,kBAAA;AAAA,gBACpC;AAAA,gBATK;AAAA,cAAA;AAAA,YAYX,CAAC;AAAA,UAAA;AAAA,QAAA;AAAA,MACH;AAAA,IAAA;AAAA,EAGN;AACF;AAEA,YAAY,cAAc;"}
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const jsxRuntime = require("react/jsx-runtime");
4
+ const react = require("react");
5
+ const colors = require("./index4.cjs");
6
+ const classNames = require("./index3.cjs");
7
+ const SpinnerBars = react.forwardRef(
8
+ ({
9
+ size = 40,
10
+ color = "#3b82f6",
11
+ barCount = 5,
12
+ speed = "normal",
13
+ className,
14
+ style,
15
+ testId = "spinner-bars",
16
+ visible = true,
17
+ ariaLabel = "Loading...",
18
+ ...rest
19
+ }, ref) => {
20
+ if (!visible) return null;
21
+ const sizeValue = typeof size === "number" ? size : parseInt(String(size), 10);
22
+ const barWidth = Math.floor(sizeValue / (barCount * 2));
23
+ const animationDuration = colors.getAnimationDuration(speed);
24
+ return /* @__PURE__ */ jsxRuntime.jsx(
25
+ "div",
26
+ {
27
+ ref,
28
+ "data-testid": testId,
29
+ className: classNames.cn("inline-flex items-center justify-center gap-1", className),
30
+ style: {
31
+ height: colors.normalizeSize(size),
32
+ ...style
33
+ },
34
+ role: "status",
35
+ "aria-label": ariaLabel,
36
+ "aria-busy": "true",
37
+ ...rest,
38
+ children: Array.from({ length: barCount }).map((_, index) => /* @__PURE__ */ jsxRuntime.jsx(
39
+ "div",
40
+ {
41
+ className: "rounded-sm",
42
+ style: {
43
+ width: `${barWidth}px`,
44
+ height: "100%",
45
+ backgroundColor: color,
46
+ animation: `pulse-wave ${animationDuration} ease-in-out infinite`,
47
+ animationDelay: `${index * 0.1}s`
48
+ }
49
+ },
50
+ index
51
+ ))
52
+ }
53
+ );
54
+ }
55
+ );
56
+ SpinnerBars.displayName = "SpinnerBars";
57
+ exports.SpinnerBars = SpinnerBars;
58
+ //# sourceMappingURL=index15.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index15.cjs","sources":["../src/components/spinner/SpinnerBars.tsx"],"sourcesContent":["import { forwardRef } from 'react';\nimport { SpinnerBarsProps } from '../../types';\nimport { cn, normalizeSize, getAnimationDuration } from '../../utils';\n\n/**\n * SpinnerBars - Vertical bars with wave animation\n *\n * A spinner with vertical bars that animate in a wave pattern.\n *\n * @example\n * ```tsx\n * <SpinnerBars size={40} color=\"#3b82f6\" />\n * <SpinnerBars size={32} barCount={5} speed=\"fast\" />\n * ```\n */\nexport const SpinnerBars = forwardRef<HTMLDivElement, SpinnerBarsProps>(\n (\n {\n size = 40,\n color = '#3b82f6',\n barCount = 5,\n speed = 'normal',\n className,\n style,\n testId = 'spinner-bars',\n visible = true,\n ariaLabel = 'Loading...',\n ...rest\n },\n ref\n ) => {\n if (!visible) return null;\n\n const sizeValue = typeof size === 'number' ? size : parseInt(String(size), 10);\n const barWidth = Math.floor(sizeValue / (barCount * 2));\n const animationDuration = getAnimationDuration(speed);\n\n return (\n <div\n ref={ref}\n data-testid={testId}\n className={cn('inline-flex items-center justify-center gap-1', className)}\n style={{\n height: normalizeSize(size),\n ...style,\n }}\n role=\"status\"\n aria-label={ariaLabel}\n aria-busy=\"true\"\n {...rest}\n >\n {Array.from({ length: barCount }).map((_, index) => (\n <div\n key={index}\n className=\"rounded-sm\"\n style={{\n width: `${barWidth}px`,\n height: '100%',\n backgroundColor: color,\n animation: `pulse-wave ${animationDuration} ease-in-out infinite`,\n animationDelay: `${index * 0.1}s`,\n }}\n />\n ))}\n </div>\n );\n }\n);\n\nSpinnerBars.displayName = 'SpinnerBars';\n"],"names":["forwardRef","getAnimationDuration","jsx","cn","normalizeSize"],"mappings":";;;;;;AAeO,MAAM,cAAcA,MAAAA;AAAAA,EACzB,CACE;AAAA,IACE,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,WAAW;AAAA,IACX,QAAQ;AAAA,IACR;AAAA,IACA;AAAA,IACA,SAAS;AAAA,IACT,UAAU;AAAA,IACV,YAAY;AAAA,IACZ,GAAG;AAAA,EAAA,GAEL,QACG;AACH,QAAI,CAAC,QAAS,QAAO;AAErB,UAAM,YAAY,OAAO,SAAS,WAAW,OAAO,SAAS,OAAO,IAAI,GAAG,EAAE;AAC7E,UAAM,WAAW,KAAK,MAAM,aAAa,WAAW,EAAE;AACtD,UAAM,oBAAoBC,OAAAA,qBAAqB,KAAK;AAEpD,WACEC,2BAAAA;AAAAA,MAAC;AAAA,MAAA;AAAA,QACC;AAAA,QACA,eAAa;AAAA,QACb,WAAWC,WAAAA,GAAG,iDAAiD,SAAS;AAAA,QACxE,OAAO;AAAA,UACL,QAAQC,OAAAA,cAAc,IAAI;AAAA,UAC1B,GAAG;AAAA,QAAA;AAAA,QAEL,MAAK;AAAA,QACL,cAAY;AAAA,QACZ,aAAU;AAAA,QACT,GAAG;AAAA,QAEH,UAAA,MAAM,KAAK,EAAE,QAAQ,UAAU,EAAE,IAAI,CAAC,GAAG,UACxCF,2BAAAA;AAAAA,UAAC;AAAA,UAAA;AAAA,YAEC,WAAU;AAAA,YACV,OAAO;AAAA,cACL,OAAO,GAAG,QAAQ;AAAA,cAClB,QAAQ;AAAA,cACR,iBAAiB;AAAA,cACjB,WAAW,cAAc,iBAAiB;AAAA,cAC1C,gBAAgB,GAAG,QAAQ,GAAG;AAAA,YAAA;AAAA,UAChC;AAAA,UARK;AAAA,QAAA,CAUR;AAAA,MAAA;AAAA,IAAA;AAAA,EAGP;AACF;AAEA,YAAY,cAAc;;"}
@@ -0,0 +1,58 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { forwardRef } from "react";
3
+ import { normalizeSize, getAnimationDuration } from "./index4.js";
4
+ import { cn } from "./index3.js";
5
+ const SpinnerBars = forwardRef(
6
+ ({
7
+ size = 40,
8
+ color = "#3b82f6",
9
+ barCount = 5,
10
+ speed = "normal",
11
+ className,
12
+ style,
13
+ testId = "spinner-bars",
14
+ visible = true,
15
+ ariaLabel = "Loading...",
16
+ ...rest
17
+ }, ref) => {
18
+ if (!visible) return null;
19
+ const sizeValue = typeof size === "number" ? size : parseInt(String(size), 10);
20
+ const barWidth = Math.floor(sizeValue / (barCount * 2));
21
+ const animationDuration = getAnimationDuration(speed);
22
+ return /* @__PURE__ */ jsx(
23
+ "div",
24
+ {
25
+ ref,
26
+ "data-testid": testId,
27
+ className: cn("inline-flex items-center justify-center gap-1", className),
28
+ style: {
29
+ height: normalizeSize(size),
30
+ ...style
31
+ },
32
+ role: "status",
33
+ "aria-label": ariaLabel,
34
+ "aria-busy": "true",
35
+ ...rest,
36
+ children: Array.from({ length: barCount }).map((_, index) => /* @__PURE__ */ jsx(
37
+ "div",
38
+ {
39
+ className: "rounded-sm",
40
+ style: {
41
+ width: `${barWidth}px`,
42
+ height: "100%",
43
+ backgroundColor: color,
44
+ animation: `pulse-wave ${animationDuration} ease-in-out infinite`,
45
+ animationDelay: `${index * 0.1}s`
46
+ }
47
+ },
48
+ index
49
+ ))
50
+ }
51
+ );
52
+ }
53
+ );
54
+ SpinnerBars.displayName = "SpinnerBars";
55
+ export {
56
+ SpinnerBars
57
+ };
58
+ //# sourceMappingURL=index15.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index15.js","sources":["../src/components/spinner/SpinnerBars.tsx"],"sourcesContent":["import { forwardRef } from 'react';\nimport { SpinnerBarsProps } from '../../types';\nimport { cn, normalizeSize, getAnimationDuration } from '../../utils';\n\n/**\n * SpinnerBars - Vertical bars with wave animation\n *\n * A spinner with vertical bars that animate in a wave pattern.\n *\n * @example\n * ```tsx\n * <SpinnerBars size={40} color=\"#3b82f6\" />\n * <SpinnerBars size={32} barCount={5} speed=\"fast\" />\n * ```\n */\nexport const SpinnerBars = forwardRef<HTMLDivElement, SpinnerBarsProps>(\n (\n {\n size = 40,\n color = '#3b82f6',\n barCount = 5,\n speed = 'normal',\n className,\n style,\n testId = 'spinner-bars',\n visible = true,\n ariaLabel = 'Loading...',\n ...rest\n },\n ref\n ) => {\n if (!visible) return null;\n\n const sizeValue = typeof size === 'number' ? size : parseInt(String(size), 10);\n const barWidth = Math.floor(sizeValue / (barCount * 2));\n const animationDuration = getAnimationDuration(speed);\n\n return (\n <div\n ref={ref}\n data-testid={testId}\n className={cn('inline-flex items-center justify-center gap-1', className)}\n style={{\n height: normalizeSize(size),\n ...style,\n }}\n role=\"status\"\n aria-label={ariaLabel}\n aria-busy=\"true\"\n {...rest}\n >\n {Array.from({ length: barCount }).map((_, index) => (\n <div\n key={index}\n className=\"rounded-sm\"\n style={{\n width: `${barWidth}px`,\n height: '100%',\n backgroundColor: color,\n animation: `pulse-wave ${animationDuration} ease-in-out infinite`,\n animationDelay: `${index * 0.1}s`,\n }}\n />\n ))}\n </div>\n );\n }\n);\n\nSpinnerBars.displayName = 'SpinnerBars';\n"],"names":[],"mappings":";;;;AAeO,MAAM,cAAc;AAAA,EACzB,CACE;AAAA,IACE,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,WAAW;AAAA,IACX,QAAQ;AAAA,IACR;AAAA,IACA;AAAA,IACA,SAAS;AAAA,IACT,UAAU;AAAA,IACV,YAAY;AAAA,IACZ,GAAG;AAAA,EAAA,GAEL,QACG;AACH,QAAI,CAAC,QAAS,QAAO;AAErB,UAAM,YAAY,OAAO,SAAS,WAAW,OAAO,SAAS,OAAO,IAAI,GAAG,EAAE;AAC7E,UAAM,WAAW,KAAK,MAAM,aAAa,WAAW,EAAE;AACtD,UAAM,oBAAoB,qBAAqB,KAAK;AAEpD,WACE;AAAA,MAAC;AAAA,MAAA;AAAA,QACC;AAAA,QACA,eAAa;AAAA,QACb,WAAW,GAAG,iDAAiD,SAAS;AAAA,QACxE,OAAO;AAAA,UACL,QAAQ,cAAc,IAAI;AAAA,UAC1B,GAAG;AAAA,QAAA;AAAA,QAEL,MAAK;AAAA,QACL,cAAY;AAAA,QACZ,aAAU;AAAA,QACT,GAAG;AAAA,QAEH,UAAA,MAAM,KAAK,EAAE,QAAQ,UAAU,EAAE,IAAI,CAAC,GAAG,UACxC;AAAA,UAAC;AAAA,UAAA;AAAA,YAEC,WAAU;AAAA,YACV,OAAO;AAAA,cACL,OAAO,GAAG,QAAQ;AAAA,cAClB,QAAQ;AAAA,cACR,iBAAiB;AAAA,cACjB,WAAW,cAAc,iBAAiB;AAAA,cAC1C,gBAAgB,GAAG,QAAQ,GAAG;AAAA,YAAA;AAAA,UAChC;AAAA,UARK;AAAA,QAAA,CAUR;AAAA,MAAA;AAAA,IAAA;AAAA,EAGP;AACF;AAEA,YAAY,cAAc;"}
@@ -0,0 +1,71 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const jsxRuntime = require("react/jsx-runtime");
4
+ const react = require("react");
5
+ const classNames = require("./index3.cjs");
6
+ const colors = require("./index4.cjs");
7
+ const SpinnerGrid = react.forwardRef(
8
+ ({
9
+ size = 40,
10
+ color = "#3b82f6",
11
+ gridSize = 3,
12
+ speed = "normal",
13
+ className,
14
+ style,
15
+ testId = "spinner-grid",
16
+ visible = true,
17
+ ariaLabel = "Loading...",
18
+ ...rest
19
+ }, ref) => {
20
+ if (!visible) return null;
21
+ const sizeValue = typeof size === "number" ? size : parseInt(String(size), 10);
22
+ const cellSize = Math.floor(sizeValue / gridSize) - 2;
23
+ const animationDuration = colors.getAnimationDuration(speed);
24
+ return /* @__PURE__ */ jsxRuntime.jsx(
25
+ "div",
26
+ {
27
+ ref,
28
+ "data-testid": testId,
29
+ className: classNames.cn("inline-flex items-center justify-center", className),
30
+ style,
31
+ role: "status",
32
+ "aria-label": ariaLabel,
33
+ "aria-busy": "true",
34
+ ...rest,
35
+ children: /* @__PURE__ */ jsxRuntime.jsx(
36
+ "div",
37
+ {
38
+ className: "grid gap-0.5",
39
+ style: {
40
+ width: colors.normalizeSize(size),
41
+ height: colors.normalizeSize(size),
42
+ gridTemplateColumns: `repeat(${gridSize}, 1fr)`
43
+ },
44
+ children: Array.from({ length: gridSize * gridSize }).map((_, index) => {
45
+ const row = Math.floor(index / gridSize);
46
+ const col = index % gridSize;
47
+ const delay = (row + col) * 0.1;
48
+ return /* @__PURE__ */ jsxRuntime.jsx(
49
+ "div",
50
+ {
51
+ className: "rounded-sm",
52
+ style: {
53
+ width: `${cellSize}px`,
54
+ height: `${cellSize}px`,
55
+ backgroundColor: color,
56
+ animation: `fade-pulse ${animationDuration} ease-in-out infinite`,
57
+ animationDelay: `${delay}s`
58
+ }
59
+ },
60
+ index
61
+ );
62
+ })
63
+ }
64
+ )
65
+ }
66
+ );
67
+ }
68
+ );
69
+ SpinnerGrid.displayName = "SpinnerGrid";
70
+ exports.SpinnerGrid = SpinnerGrid;
71
+ //# sourceMappingURL=index16.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index16.cjs","sources":["../src/components/spinner/SpinnerGrid.tsx"],"sourcesContent":["import { forwardRef } from 'react';\nimport { SpinnerGridProps } from '../../types';\nimport { cn, normalizeSize, getAnimationDuration } from '../../utils';\n\n/**\n * SpinnerGrid - Grid of fading squares\n *\n * A spinner with a grid of squares that fade in and out in a pattern.\n *\n * @example\n * ```tsx\n * <SpinnerGrid size={40} color=\"#3b82f6\" />\n * <SpinnerGrid size={48} gridSize={4} />\n * ```\n */\nexport const SpinnerGrid = forwardRef<HTMLDivElement, SpinnerGridProps>(\n (\n {\n size = 40,\n color = '#3b82f6',\n gridSize = 3,\n speed = 'normal',\n className,\n style,\n testId = 'spinner-grid',\n visible = true,\n ariaLabel = 'Loading...',\n ...rest\n },\n ref\n ) => {\n if (!visible) return null;\n\n const sizeValue = typeof size === 'number' ? size : parseInt(String(size), 10);\n const cellSize = Math.floor(sizeValue / gridSize) - 2;\n const animationDuration = getAnimationDuration(speed);\n\n return (\n <div\n ref={ref}\n data-testid={testId}\n className={cn('inline-flex items-center justify-center', className)}\n style={style}\n role=\"status\"\n aria-label={ariaLabel}\n aria-busy=\"true\"\n {...rest}\n >\n <div\n className=\"grid gap-0.5\"\n style={{\n width: normalizeSize(size),\n height: normalizeSize(size),\n gridTemplateColumns: `repeat(${gridSize}, 1fr)`,\n }}\n >\n {Array.from({ length: gridSize * gridSize }).map((_, index) => {\n const row = Math.floor(index / gridSize);\n const col = index % gridSize;\n const delay = (row + col) * 0.1;\n\n return (\n <div\n key={index}\n className=\"rounded-sm\"\n style={{\n width: `${cellSize}px`,\n height: `${cellSize}px`,\n backgroundColor: color,\n animation: `fade-pulse ${animationDuration} ease-in-out infinite`,\n animationDelay: `${delay}s`,\n }}\n />\n );\n })}\n </div>\n </div>\n );\n }\n);\n\nSpinnerGrid.displayName = 'SpinnerGrid';\n"],"names":["forwardRef","getAnimationDuration","jsx","cn","normalizeSize"],"mappings":";;;;;;AAeO,MAAM,cAAcA,MAAAA;AAAAA,EACzB,CACE;AAAA,IACE,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,WAAW;AAAA,IACX,QAAQ;AAAA,IACR;AAAA,IACA;AAAA,IACA,SAAS;AAAA,IACT,UAAU;AAAA,IACV,YAAY;AAAA,IACZ,GAAG;AAAA,EAAA,GAEL,QACG;AACH,QAAI,CAAC,QAAS,QAAO;AAErB,UAAM,YAAY,OAAO,SAAS,WAAW,OAAO,SAAS,OAAO,IAAI,GAAG,EAAE;AAC7E,UAAM,WAAW,KAAK,MAAM,YAAY,QAAQ,IAAI;AACpD,UAAM,oBAAoBC,OAAAA,qBAAqB,KAAK;AAEpD,WACEC,2BAAAA;AAAAA,MAAC;AAAA,MAAA;AAAA,QACC;AAAA,QACA,eAAa;AAAA,QACb,WAAWC,WAAAA,GAAG,2CAA2C,SAAS;AAAA,QAClE;AAAA,QACA,MAAK;AAAA,QACL,cAAY;AAAA,QACZ,aAAU;AAAA,QACT,GAAG;AAAA,QAEJ,UAAAD,2BAAAA;AAAAA,UAAC;AAAA,UAAA;AAAA,YACC,WAAU;AAAA,YACV,OAAO;AAAA,cACL,OAAOE,OAAAA,cAAc,IAAI;AAAA,cACzB,QAAQA,OAAAA,cAAc,IAAI;AAAA,cAC1B,qBAAqB,UAAU,QAAQ;AAAA,YAAA;AAAA,YAGxC,UAAA,MAAM,KAAK,EAAE,QAAQ,WAAW,SAAA,CAAU,EAAE,IAAI,CAAC,GAAG,UAAU;AAC7D,oBAAM,MAAM,KAAK,MAAM,QAAQ,QAAQ;AACvC,oBAAM,MAAM,QAAQ;AACpB,oBAAM,SAAS,MAAM,OAAO;AAE5B,qBACEF,2BAAAA;AAAAA,gBAAC;AAAA,gBAAA;AAAA,kBAEC,WAAU;AAAA,kBACV,OAAO;AAAA,oBACL,OAAO,GAAG,QAAQ;AAAA,oBAClB,QAAQ,GAAG,QAAQ;AAAA,oBACnB,iBAAiB;AAAA,oBACjB,WAAW,cAAc,iBAAiB;AAAA,oBAC1C,gBAAgB,GAAG,KAAK;AAAA,kBAAA;AAAA,gBAC1B;AAAA,gBARK;AAAA,cAAA;AAAA,YAWX,CAAC;AAAA,UAAA;AAAA,QAAA;AAAA,MACH;AAAA,IAAA;AAAA,EAGN;AACF;AAEA,YAAY,cAAc;;"}
@@ -0,0 +1,71 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { forwardRef } from "react";
3
+ import { cn } from "./index3.js";
4
+ import { normalizeSize, getAnimationDuration } from "./index4.js";
5
+ const SpinnerGrid = forwardRef(
6
+ ({
7
+ size = 40,
8
+ color = "#3b82f6",
9
+ gridSize = 3,
10
+ speed = "normal",
11
+ className,
12
+ style,
13
+ testId = "spinner-grid",
14
+ visible = true,
15
+ ariaLabel = "Loading...",
16
+ ...rest
17
+ }, ref) => {
18
+ if (!visible) return null;
19
+ const sizeValue = typeof size === "number" ? size : parseInt(String(size), 10);
20
+ const cellSize = Math.floor(sizeValue / gridSize) - 2;
21
+ const animationDuration = getAnimationDuration(speed);
22
+ return /* @__PURE__ */ jsx(
23
+ "div",
24
+ {
25
+ ref,
26
+ "data-testid": testId,
27
+ className: cn("inline-flex items-center justify-center", className),
28
+ style,
29
+ role: "status",
30
+ "aria-label": ariaLabel,
31
+ "aria-busy": "true",
32
+ ...rest,
33
+ children: /* @__PURE__ */ jsx(
34
+ "div",
35
+ {
36
+ className: "grid gap-0.5",
37
+ style: {
38
+ width: normalizeSize(size),
39
+ height: normalizeSize(size),
40
+ gridTemplateColumns: `repeat(${gridSize}, 1fr)`
41
+ },
42
+ children: Array.from({ length: gridSize * gridSize }).map((_, index) => {
43
+ const row = Math.floor(index / gridSize);
44
+ const col = index % gridSize;
45
+ const delay = (row + col) * 0.1;
46
+ return /* @__PURE__ */ jsx(
47
+ "div",
48
+ {
49
+ className: "rounded-sm",
50
+ style: {
51
+ width: `${cellSize}px`,
52
+ height: `${cellSize}px`,
53
+ backgroundColor: color,
54
+ animation: `fade-pulse ${animationDuration} ease-in-out infinite`,
55
+ animationDelay: `${delay}s`
56
+ }
57
+ },
58
+ index
59
+ );
60
+ })
61
+ }
62
+ )
63
+ }
64
+ );
65
+ }
66
+ );
67
+ SpinnerGrid.displayName = "SpinnerGrid";
68
+ export {
69
+ SpinnerGrid
70
+ };
71
+ //# sourceMappingURL=index16.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index16.js","sources":["../src/components/spinner/SpinnerGrid.tsx"],"sourcesContent":["import { forwardRef } from 'react';\nimport { SpinnerGridProps } from '../../types';\nimport { cn, normalizeSize, getAnimationDuration } from '../../utils';\n\n/**\n * SpinnerGrid - Grid of fading squares\n *\n * A spinner with a grid of squares that fade in and out in a pattern.\n *\n * @example\n * ```tsx\n * <SpinnerGrid size={40} color=\"#3b82f6\" />\n * <SpinnerGrid size={48} gridSize={4} />\n * ```\n */\nexport const SpinnerGrid = forwardRef<HTMLDivElement, SpinnerGridProps>(\n (\n {\n size = 40,\n color = '#3b82f6',\n gridSize = 3,\n speed = 'normal',\n className,\n style,\n testId = 'spinner-grid',\n visible = true,\n ariaLabel = 'Loading...',\n ...rest\n },\n ref\n ) => {\n if (!visible) return null;\n\n const sizeValue = typeof size === 'number' ? size : parseInt(String(size), 10);\n const cellSize = Math.floor(sizeValue / gridSize) - 2;\n const animationDuration = getAnimationDuration(speed);\n\n return (\n <div\n ref={ref}\n data-testid={testId}\n className={cn('inline-flex items-center justify-center', className)}\n style={style}\n role=\"status\"\n aria-label={ariaLabel}\n aria-busy=\"true\"\n {...rest}\n >\n <div\n className=\"grid gap-0.5\"\n style={{\n width: normalizeSize(size),\n height: normalizeSize(size),\n gridTemplateColumns: `repeat(${gridSize}, 1fr)`,\n }}\n >\n {Array.from({ length: gridSize * gridSize }).map((_, index) => {\n const row = Math.floor(index / gridSize);\n const col = index % gridSize;\n const delay = (row + col) * 0.1;\n\n return (\n <div\n key={index}\n className=\"rounded-sm\"\n style={{\n width: `${cellSize}px`,\n height: `${cellSize}px`,\n backgroundColor: color,\n animation: `fade-pulse ${animationDuration} ease-in-out infinite`,\n animationDelay: `${delay}s`,\n }}\n />\n );\n })}\n </div>\n </div>\n );\n }\n);\n\nSpinnerGrid.displayName = 'SpinnerGrid';\n"],"names":[],"mappings":";;;;AAeO,MAAM,cAAc;AAAA,EACzB,CACE;AAAA,IACE,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,WAAW;AAAA,IACX,QAAQ;AAAA,IACR;AAAA,IACA;AAAA,IACA,SAAS;AAAA,IACT,UAAU;AAAA,IACV,YAAY;AAAA,IACZ,GAAG;AAAA,EAAA,GAEL,QACG;AACH,QAAI,CAAC,QAAS,QAAO;AAErB,UAAM,YAAY,OAAO,SAAS,WAAW,OAAO,SAAS,OAAO,IAAI,GAAG,EAAE;AAC7E,UAAM,WAAW,KAAK,MAAM,YAAY,QAAQ,IAAI;AACpD,UAAM,oBAAoB,qBAAqB,KAAK;AAEpD,WACE;AAAA,MAAC;AAAA,MAAA;AAAA,QACC;AAAA,QACA,eAAa;AAAA,QACb,WAAW,GAAG,2CAA2C,SAAS;AAAA,QAClE;AAAA,QACA,MAAK;AAAA,QACL,cAAY;AAAA,QACZ,aAAU;AAAA,QACT,GAAG;AAAA,QAEJ,UAAA;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,WAAU;AAAA,YACV,OAAO;AAAA,cACL,OAAO,cAAc,IAAI;AAAA,cACzB,QAAQ,cAAc,IAAI;AAAA,cAC1B,qBAAqB,UAAU,QAAQ;AAAA,YAAA;AAAA,YAGxC,UAAA,MAAM,KAAK,EAAE,QAAQ,WAAW,SAAA,CAAU,EAAE,IAAI,CAAC,GAAG,UAAU;AAC7D,oBAAM,MAAM,KAAK,MAAM,QAAQ,QAAQ;AACvC,oBAAM,MAAM,QAAQ;AACpB,oBAAM,SAAS,MAAM,OAAO;AAE5B,qBACE;AAAA,gBAAC;AAAA,gBAAA;AAAA,kBAEC,WAAU;AAAA,kBACV,OAAO;AAAA,oBACL,OAAO,GAAG,QAAQ;AAAA,oBAClB,QAAQ,GAAG,QAAQ;AAAA,oBACnB,iBAAiB;AAAA,oBACjB,WAAW,cAAc,iBAAiB;AAAA,oBAC1C,gBAAgB,GAAG,KAAK;AAAA,kBAAA;AAAA,gBAC1B;AAAA,gBARK;AAAA,cAAA;AAAA,YAWX,CAAC;AAAA,UAAA;AAAA,QAAA;AAAA,MACH;AAAA,IAAA;AAAA,EAGN;AACF;AAEA,YAAY,cAAc;"}