premium-react-loaders 1.0.2 → 1.1.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.
- package/dist/components/progress/ProgressSteps.d.ts +16 -0
- package/dist/components/progress/ProgressSteps.d.ts.map +1 -0
- package/dist/components/progress/index.d.ts +1 -0
- package/dist/components/progress/index.d.ts.map +1 -1
- package/dist/components/pulse/TypingIndicator.d.ts +16 -0
- package/dist/components/pulse/TypingIndicator.d.ts.map +1 -0
- package/dist/components/pulse/index.d.ts +1 -0
- package/dist/components/pulse/index.d.ts.map +1 -1
- package/dist/components/skeleton/SkeletonForm.d.ts +16 -0
- package/dist/components/skeleton/SkeletonForm.d.ts.map +1 -0
- package/dist/components/skeleton/index.d.ts +1 -0
- package/dist/components/skeleton/index.d.ts.map +1 -1
- package/dist/components/spinner/SpinnerPulse.d.ts +15 -0
- package/dist/components/spinner/SpinnerPulse.d.ts.map +1 -0
- package/dist/components/spinner/SpinnerWave.d.ts +15 -0
- package/dist/components/spinner/SpinnerWave.d.ts.map +1 -0
- package/dist/components/spinner/index.d.ts +2 -0
- package/dist/components/spinner/index.d.ts.map +1 -1
- package/dist/index.cjs +23 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +23 -13
- package/dist/index.js.map +1 -1
- package/dist/index13.cjs +54 -35
- package/dist/index13.cjs.map +1 -1
- package/dist/index13.js +56 -37
- package/dist/index13.js.map +1 -1
- package/dist/index14.cjs +23 -12
- package/dist/index14.cjs.map +1 -1
- package/dist/index14.js +23 -12
- package/dist/index14.js.map +1 -1
- package/dist/index15.cjs +11 -34
- package/dist/index15.cjs.map +1 -1
- package/dist/index15.js +11 -34
- package/dist/index15.js.map +1 -1
- package/dist/index16.cjs +40 -23
- package/dist/index16.cjs.map +1 -1
- package/dist/index16.js +41 -24
- package/dist/index16.js.map +1 -1
- package/dist/index17.cjs +23 -36
- package/dist/index17.cjs.map +1 -1
- package/dist/index17.js +23 -36
- package/dist/index17.js.map +1 -1
- package/dist/index18.cjs +46 -78
- package/dist/index18.cjs.map +1 -1
- package/dist/index18.js +48 -80
- package/dist/index18.js.map +1 -1
- package/dist/index19.cjs +39 -103
- package/dist/index19.cjs.map +1 -1
- package/dist/index19.js +40 -104
- package/dist/index19.js.map +1 -1
- package/dist/index20.cjs +52 -107
- package/dist/index20.cjs.map +1 -1
- package/dist/index20.js +54 -109
- package/dist/index20.js.map +1 -1
- package/dist/index21.cjs +73 -27
- package/dist/index21.cjs.map +1 -1
- package/dist/index21.js +76 -30
- package/dist/index21.js.map +1 -1
- package/dist/index22.cjs +98 -31
- package/dist/index22.cjs.map +1 -1
- package/dist/index22.js +99 -32
- package/dist/index22.js.map +1 -1
- package/dist/index23.cjs +104 -33
- package/dist/index23.cjs.map +1 -1
- package/dist/index23.js +106 -35
- package/dist/index23.js.map +1 -1
- package/dist/index24.cjs +108 -48
- package/dist/index24.cjs.map +1 -1
- package/dist/index24.js +110 -50
- package/dist/index24.js.map +1 -1
- package/dist/index25.cjs +55 -16
- package/dist/index25.cjs.map +1 -1
- package/dist/index25.js +54 -15
- package/dist/index25.js.map +1 -1
- package/dist/index26.cjs +62 -0
- package/dist/index26.cjs.map +1 -0
- package/dist/index26.js +62 -0
- package/dist/index26.js.map +1 -0
- package/dist/index27.cjs +64 -0
- package/dist/index27.cjs.map +1 -0
- package/dist/index27.js +64 -0
- package/dist/index27.js.map +1 -0
- package/dist/index28.cjs +61 -0
- package/dist/index28.cjs.map +1 -0
- package/dist/index28.js +61 -0
- package/dist/index28.js.map +1 -0
- package/dist/index29.cjs +71 -0
- package/dist/index29.cjs.map +1 -0
- package/dist/index29.js +71 -0
- package/dist/index29.js.map +1 -0
- package/dist/index3.cjs +1 -1
- package/dist/index3.js +1 -1
- package/dist/index30.cjs +18 -0
- package/dist/index30.cjs.map +1 -0
- package/dist/index30.js +18 -0
- package/dist/index30.js.map +1 -0
- package/dist/premium-react-loaders.css +29 -0
- package/dist/types/progress.d.ts +24 -1
- package/dist/types/progress.d.ts.map +1 -1
- package/dist/types/pulse.d.ts +13 -0
- package/dist/types/pulse.d.ts.map +1 -1
- package/dist/types/skeleton.d.ts +17 -0
- package/dist/types/skeleton.d.ts.map +1 -1
- package/dist/types/spinner.d.ts +18 -0
- package/dist/types/spinner.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ProgressStepsProps } from '../../types';
|
|
2
|
+
/**
|
|
3
|
+
* ProgressSteps - Multi-step progress indicator
|
|
4
|
+
*
|
|
5
|
+
* A step-by-step progress indicator for wizards, forms, and workflows.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```tsx
|
|
9
|
+
* <ProgressSteps steps={4} currentStep={1} />
|
|
10
|
+
* <ProgressSteps steps={5} currentStep={2} labels={['Info', 'Review', 'Payment', 'Confirm', 'Done']} />
|
|
11
|
+
* <ProgressSteps steps={3} currentStep={1} orientation="vertical" />
|
|
12
|
+
* <ProgressSteps steps={4} currentStep={2} connector="none" />
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
export declare const ProgressSteps: import('react').ForwardRefExoticComponent<ProgressStepsProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
16
|
+
//# sourceMappingURL=ProgressSteps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProgressSteps.d.ts","sourceRoot":"","sources":["../../../src/components/progress/ProgressSteps.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAGjD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,aAAa,+GAuIzB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/progress/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/progress/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { TypingIndicatorProps } from '../../types';
|
|
2
|
+
/**
|
|
3
|
+
* TypingIndicator - Chat typing indicator
|
|
4
|
+
*
|
|
5
|
+
* A loader for messaging/chat applications showing typing activity.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```tsx
|
|
9
|
+
* <TypingIndicator />
|
|
10
|
+
* <TypingIndicator variant="fade" />
|
|
11
|
+
* <TypingIndicator dotCount={5} color="#3b82f6" />
|
|
12
|
+
* <TypingIndicator dotSize={10} gap={6} />
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
export declare const TypingIndicator: import('react').ForwardRefExoticComponent<TypingIndicatorProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
16
|
+
//# sourceMappingURL=TypingIndicator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TypingIndicator.d.ts","sourceRoot":"","sources":["../../../src/components/pulse/TypingIndicator.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAGnD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,eAAe,iHAuD3B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/pulse/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/pulse/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SkeletonFormProps } from '../../types';
|
|
2
|
+
/**
|
|
3
|
+
* SkeletonForm - Form loading skeleton
|
|
4
|
+
*
|
|
5
|
+
* A skeleton loader for form layouts with configurable fields, labels, and submit button.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```tsx
|
|
9
|
+
* <SkeletonForm />
|
|
10
|
+
* <SkeletonForm fields={5} showLabels={true} />
|
|
11
|
+
* <SkeletonForm fields={3} showButton={false} />
|
|
12
|
+
* <SkeletonForm fields={4} buttonPosition="right" />
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
export declare const SkeletonForm: import('react').ForwardRefExoticComponent<SkeletonFormProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
16
|
+
//# sourceMappingURL=SkeletonForm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SkeletonForm.d.ts","sourceRoot":"","sources":["../../../src/components/skeleton/SkeletonForm.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAIhD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,YAAY,8GAmFxB,CAAC"}
|
|
@@ -6,4 +6,5 @@ export { SkeletonCard } from './SkeletonCard';
|
|
|
6
6
|
export { SkeletonList } from './SkeletonList';
|
|
7
7
|
export { SkeletonTable } from './SkeletonTable';
|
|
8
8
|
export { SkeletonPage } from './SkeletonPage';
|
|
9
|
+
export { SkeletonForm } from './SkeletonForm';
|
|
9
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/skeleton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/skeleton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { SpinnerPulseProps } from '../../types';
|
|
2
|
+
/**
|
|
3
|
+
* SpinnerPulse - Heartbeat pulse spinner
|
|
4
|
+
*
|
|
5
|
+
* A spinner with pulsing circles that scale and fade, creating a heartbeat effect.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```tsx
|
|
9
|
+
* <SpinnerPulse size={60} color="#3b82f6" />
|
|
10
|
+
* <SpinnerPulse size={80} pulses={3} />
|
|
11
|
+
* <SpinnerPulse size={50} maxScale={2.5} speed="slow" />
|
|
12
|
+
* ```
|
|
13
|
+
*/
|
|
14
|
+
export declare const SpinnerPulse: import('react').ForwardRefExoticComponent<SpinnerPulseProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
15
|
+
//# sourceMappingURL=SpinnerPulse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SpinnerPulse.d.ts","sourceRoot":"","sources":["../../../src/components/spinner/SpinnerPulse.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAGhD;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,YAAY,8GAsExB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { SpinnerWaveProps } from '../../types';
|
|
2
|
+
/**
|
|
3
|
+
* SpinnerWave - Ripple wave spinner
|
|
4
|
+
*
|
|
5
|
+
* A spinner with expanding ripple circles creating a wave effect.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```tsx
|
|
9
|
+
* <SpinnerWave size={60} color="#3b82f6" />
|
|
10
|
+
* <SpinnerWave size={80} ripples={5} />
|
|
11
|
+
* <SpinnerWave size={50} maxScale={2.5} speed="fast" />
|
|
12
|
+
* ```
|
|
13
|
+
*/
|
|
14
|
+
export declare const SpinnerWave: import('react').ForwardRefExoticComponent<SpinnerWaveProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
15
|
+
//# sourceMappingURL=SpinnerWave.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SpinnerWave.d.ts","sourceRoot":"","sources":["../../../src/components/spinner/SpinnerWave.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAG/C;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,WAAW,6GA0DvB,CAAC"}
|
|
@@ -3,4 +3,6 @@ export { SpinnerRing } from './SpinnerRing';
|
|
|
3
3
|
export { SpinnerDots } from './SpinnerDots';
|
|
4
4
|
export { SpinnerBars } from './SpinnerBars';
|
|
5
5
|
export { SpinnerGrid } from './SpinnerGrid';
|
|
6
|
+
export { SpinnerWave } from './SpinnerWave';
|
|
7
|
+
export { SpinnerPulse } from './SpinnerPulse';
|
|
6
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/spinner/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/spinner/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
|
package/dist/index.cjs
CHANGED
|
@@ -11,19 +11,24 @@ const SkeletonCard = require("./index9.cjs");
|
|
|
11
11
|
const SkeletonList = require("./index10.cjs");
|
|
12
12
|
const SkeletonTable = require("./index11.cjs");
|
|
13
13
|
const SkeletonPage = require("./index12.cjs");
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
const
|
|
26
|
-
const
|
|
14
|
+
const SkeletonForm = require("./index13.cjs");
|
|
15
|
+
const SpinnerCircle = require("./index14.cjs");
|
|
16
|
+
const SpinnerRing = require("./index15.cjs");
|
|
17
|
+
const SpinnerDots = require("./index16.cjs");
|
|
18
|
+
const SpinnerBars = require("./index17.cjs");
|
|
19
|
+
const SpinnerGrid = require("./index18.cjs");
|
|
20
|
+
const SpinnerWave = require("./index19.cjs");
|
|
21
|
+
const SpinnerPulse = require("./index20.cjs");
|
|
22
|
+
const ProgressBar = require("./index21.cjs");
|
|
23
|
+
const ProgressCircle = require("./index22.cjs");
|
|
24
|
+
const ProgressRing = require("./index23.cjs");
|
|
25
|
+
const ProgressSteps = require("./index24.cjs");
|
|
26
|
+
const PulseDots = require("./index25.cjs");
|
|
27
|
+
const PulseWave = require("./index26.cjs");
|
|
28
|
+
const PulseBars = require("./index27.cjs");
|
|
29
|
+
const TypingIndicator = require("./index28.cjs");
|
|
30
|
+
const LoaderOverlay = require("./index29.cjs");
|
|
31
|
+
const version = "1.1.0";
|
|
27
32
|
exports.cn = classNames.cn;
|
|
28
33
|
exports.getAnimationDuration = colors.getAnimationDuration;
|
|
29
34
|
exports.normalizeSize = colors.normalizeSize;
|
|
@@ -35,17 +40,22 @@ exports.SkeletonCard = SkeletonCard.SkeletonCard;
|
|
|
35
40
|
exports.SkeletonList = SkeletonList.SkeletonList;
|
|
36
41
|
exports.SkeletonTable = SkeletonTable.SkeletonTable;
|
|
37
42
|
exports.SkeletonPage = SkeletonPage.SkeletonPage;
|
|
43
|
+
exports.SkeletonForm = SkeletonForm.SkeletonForm;
|
|
38
44
|
exports.SpinnerCircle = SpinnerCircle.SpinnerCircle;
|
|
39
45
|
exports.SpinnerRing = SpinnerRing.SpinnerRing;
|
|
40
46
|
exports.SpinnerDots = SpinnerDots.SpinnerDots;
|
|
41
47
|
exports.SpinnerBars = SpinnerBars.SpinnerBars;
|
|
42
48
|
exports.SpinnerGrid = SpinnerGrid.SpinnerGrid;
|
|
49
|
+
exports.SpinnerWave = SpinnerWave.SpinnerWave;
|
|
50
|
+
exports.SpinnerPulse = SpinnerPulse.SpinnerPulse;
|
|
43
51
|
exports.ProgressBar = ProgressBar.ProgressBar;
|
|
44
52
|
exports.ProgressCircle = ProgressCircle.ProgressCircle;
|
|
45
53
|
exports.ProgressRing = ProgressRing.ProgressRing;
|
|
54
|
+
exports.ProgressSteps = ProgressSteps.ProgressSteps;
|
|
46
55
|
exports.PulseDots = PulseDots.PulseDots;
|
|
47
56
|
exports.PulseWave = PulseWave.PulseWave;
|
|
48
57
|
exports.PulseBars = PulseBars.PulseBars;
|
|
58
|
+
exports.TypingIndicator = TypingIndicator.TypingIndicator;
|
|
49
59
|
exports.LoaderOverlay = LoaderOverlay.LoaderOverlay;
|
|
50
60
|
exports.version = version;
|
|
51
61
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../src/index.ts"],"sourcesContent":["// Import styles\nimport './styles/index.css';\n\n// Component exports\nexport * from './components';\n\n// Type exports\nexport type * from './types';\n\n// Utility exports\nexport { cn } from './utils/classNames';\nexport { getAnimationDuration, normalizeSize } from './utils/colors';\n\n// Version\nexport const version = '1.0
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../src/index.ts"],"sourcesContent":["// Import styles\nimport './styles/index.css';\n\n// Component exports\nexport * from './components';\n\n// Type exports\nexport type * from './types';\n\n// Utility exports\nexport { cn } from './utils/classNames';\nexport { getAnimationDuration, normalizeSize } from './utils/colors';\n\n// Version\nexport const version = '1.1.0';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -2,5 +2,5 @@ export * from './components';
|
|
|
2
2
|
export type * from './types';
|
|
3
3
|
export { cn } from './utils/classNames';
|
|
4
4
|
export { getAnimationDuration, normalizeSize } from './utils/colors';
|
|
5
|
-
export declare const version = "1.0
|
|
5
|
+
export declare const version = "1.1.0";
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -9,30 +9,37 @@ import { SkeletonCard } from "./index9.js";
|
|
|
9
9
|
import { SkeletonList } from "./index10.js";
|
|
10
10
|
import { SkeletonTable } from "./index11.js";
|
|
11
11
|
import { SkeletonPage } from "./index12.js";
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
|
|
12
|
+
import { SkeletonForm } from "./index13.js";
|
|
13
|
+
import { SpinnerCircle } from "./index14.js";
|
|
14
|
+
import { SpinnerRing } from "./index15.js";
|
|
15
|
+
import { SpinnerDots } from "./index16.js";
|
|
16
|
+
import { SpinnerBars } from "./index17.js";
|
|
17
|
+
import { SpinnerGrid } from "./index18.js";
|
|
18
|
+
import { SpinnerWave } from "./index19.js";
|
|
19
|
+
import { SpinnerPulse } from "./index20.js";
|
|
20
|
+
import { ProgressBar } from "./index21.js";
|
|
21
|
+
import { ProgressCircle } from "./index22.js";
|
|
22
|
+
import { ProgressRing } from "./index23.js";
|
|
23
|
+
import { ProgressSteps } from "./index24.js";
|
|
24
|
+
import { PulseDots } from "./index25.js";
|
|
25
|
+
import { PulseWave } from "./index26.js";
|
|
26
|
+
import { PulseBars } from "./index27.js";
|
|
27
|
+
import { TypingIndicator } from "./index28.js";
|
|
28
|
+
import { LoaderOverlay } from "./index29.js";
|
|
29
|
+
const version = "1.1.0";
|
|
25
30
|
export {
|
|
26
31
|
LoaderOverlay,
|
|
27
32
|
ProgressBar,
|
|
28
33
|
ProgressCircle,
|
|
29
34
|
ProgressRing,
|
|
35
|
+
ProgressSteps,
|
|
30
36
|
PulseBars,
|
|
31
37
|
PulseDots,
|
|
32
38
|
PulseWave,
|
|
33
39
|
Skeleton,
|
|
34
40
|
SkeletonAvatar,
|
|
35
41
|
SkeletonCard,
|
|
42
|
+
SkeletonForm,
|
|
36
43
|
SkeletonImage,
|
|
37
44
|
SkeletonList,
|
|
38
45
|
SkeletonPage,
|
|
@@ -42,7 +49,10 @@ export {
|
|
|
42
49
|
SpinnerCircle,
|
|
43
50
|
SpinnerDots,
|
|
44
51
|
SpinnerGrid,
|
|
52
|
+
SpinnerPulse,
|
|
45
53
|
SpinnerRing,
|
|
54
|
+
SpinnerWave,
|
|
55
|
+
TypingIndicator,
|
|
46
56
|
cn,
|
|
47
57
|
getAnimationDuration,
|
|
48
58
|
normalizeSize,
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":["// Import styles\nimport './styles/index.css';\n\n// Component exports\nexport * from './components';\n\n// Type exports\nexport type * from './types';\n\n// Utility exports\nexport { cn } from './utils/classNames';\nexport { getAnimationDuration, normalizeSize } from './utils/colors';\n\n// Version\nexport const version = '1.0
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":["// Import styles\nimport './styles/index.css';\n\n// Component exports\nexport * from './components';\n\n// Type exports\nexport type * from './types';\n\n// Utility exports\nexport { cn } from './utils/classNames';\nexport { getAnimationDuration, normalizeSize } from './utils/colors';\n\n// Version\nexport const version = '1.1.0';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcO,MAAM,UAAU;"}
|
package/dist/index13.cjs
CHANGED
|
@@ -2,62 +2,81 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const react = require("react");
|
|
5
|
+
const Skeleton = require("./index5.cjs");
|
|
5
6
|
const colors = require("./index4.cjs");
|
|
6
7
|
const classNames = require("./index3.cjs");
|
|
7
|
-
const
|
|
8
|
+
const SkeletonForm = react.forwardRef(
|
|
8
9
|
({
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
fields = 3,
|
|
11
|
+
showLabels = true,
|
|
12
|
+
showButton = true,
|
|
13
|
+
gap = 16,
|
|
14
|
+
buttonWidth = "120px",
|
|
15
|
+
buttonPosition = "left",
|
|
16
|
+
animate = true,
|
|
17
|
+
baseColor,
|
|
18
|
+
highlightColor,
|
|
13
19
|
className,
|
|
14
20
|
style,
|
|
15
|
-
testId = "
|
|
21
|
+
testId = "skeleton-form",
|
|
16
22
|
visible = true,
|
|
17
|
-
ariaLabel = "Loading...",
|
|
18
23
|
...rest
|
|
19
24
|
}, ref) => {
|
|
20
25
|
if (!visible) return null;
|
|
21
|
-
|
|
26
|
+
const gapValue = colors.normalizeSize(gap);
|
|
27
|
+
const buttonAlign = buttonPosition === "left" ? "justify-start" : buttonPosition === "right" ? "justify-end" : "justify-center";
|
|
28
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
22
29
|
"div",
|
|
23
30
|
{
|
|
24
31
|
ref,
|
|
25
32
|
"data-testid": testId,
|
|
26
|
-
className: classNames.cn("
|
|
27
|
-
style,
|
|
33
|
+
className: classNames.cn("w-full", className),
|
|
34
|
+
style: { ...style, display: "flex", flexDirection: "column", gap: gapValue },
|
|
28
35
|
role: "status",
|
|
29
|
-
"aria-label":
|
|
36
|
+
"aria-label": "Loading form...",
|
|
30
37
|
"aria-busy": "true",
|
|
31
38
|
...rest,
|
|
32
|
-
children:
|
|
33
|
-
"
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
style: {
|
|
37
|
-
width: colors.normalizeSize(size),
|
|
38
|
-
height: colors.normalizeSize(size),
|
|
39
|
-
animationDuration: colors.getAnimationDuration(speed)
|
|
40
|
-
},
|
|
41
|
-
viewBox: "0 0 50 50",
|
|
42
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
43
|
-
"circle",
|
|
39
|
+
children: [
|
|
40
|
+
Array.from({ length: fields }).map((_, index) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "w-full", style: { display: "flex", flexDirection: "column", gap: "8px" }, children: [
|
|
41
|
+
showLabels && /* @__PURE__ */ jsxRuntime.jsx(
|
|
42
|
+
Skeleton.Skeleton,
|
|
44
43
|
{
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
44
|
+
width: "30%",
|
|
45
|
+
height: "0.875rem",
|
|
46
|
+
variant: "text",
|
|
47
|
+
animate,
|
|
48
|
+
baseColor,
|
|
49
|
+
highlightColor
|
|
50
|
+
}
|
|
51
|
+
),
|
|
52
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
53
|
+
Skeleton.Skeleton,
|
|
54
|
+
{
|
|
55
|
+
width: "100%",
|
|
56
|
+
height: "2.5rem",
|
|
57
|
+
variant: "rectangular",
|
|
58
|
+
animate,
|
|
59
|
+
baseColor,
|
|
60
|
+
highlightColor
|
|
53
61
|
}
|
|
54
62
|
)
|
|
55
|
-
}
|
|
56
|
-
|
|
63
|
+
] }, index)),
|
|
64
|
+
showButton && /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames.cn("flex", buttonAlign), style: { marginTop: "8px" }, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
65
|
+
Skeleton.Skeleton,
|
|
66
|
+
{
|
|
67
|
+
width: buttonWidth,
|
|
68
|
+
height: "2.5rem",
|
|
69
|
+
variant: "rounded",
|
|
70
|
+
animate,
|
|
71
|
+
baseColor,
|
|
72
|
+
highlightColor
|
|
73
|
+
}
|
|
74
|
+
) })
|
|
75
|
+
]
|
|
57
76
|
}
|
|
58
77
|
);
|
|
59
78
|
}
|
|
60
79
|
);
|
|
61
|
-
|
|
62
|
-
exports.
|
|
80
|
+
SkeletonForm.displayName = "SkeletonForm";
|
|
81
|
+
exports.SkeletonForm = SkeletonForm;
|
|
63
82
|
//# sourceMappingURL=index13.cjs.map
|
package/dist/index13.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index13.cjs","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"index13.cjs","sources":["../src/components/skeleton/SkeletonForm.tsx"],"sourcesContent":["import { forwardRef } from 'react';\nimport { SkeletonFormProps } from '../../types';\nimport { cn, normalizeSize } from '../../utils';\nimport { Skeleton } from './Skeleton';\n\n/**\n * SkeletonForm - Form loading skeleton\n *\n * A skeleton loader for form layouts with configurable fields, labels, and submit button.\n *\n * @example\n * ```tsx\n * <SkeletonForm />\n * <SkeletonForm fields={5} showLabels={true} />\n * <SkeletonForm fields={3} showButton={false} />\n * <SkeletonForm fields={4} buttonPosition=\"right\" />\n * ```\n */\nexport const SkeletonForm = forwardRef<HTMLDivElement, SkeletonFormProps>(\n (\n {\n fields = 3,\n showLabels = true,\n showButton = true,\n gap = 16,\n buttonWidth = '120px',\n buttonPosition = 'left',\n animate = true,\n baseColor,\n highlightColor,\n className,\n style,\n testId = 'skeleton-form',\n visible = true,\n ...rest\n },\n ref\n ) => {\n if (!visible) return null;\n\n const gapValue = normalizeSize(gap);\n const buttonAlign =\n buttonPosition === 'left'\n ? 'justify-start'\n : buttonPosition === 'right'\n ? 'justify-end'\n : 'justify-center';\n\n return (\n <div\n ref={ref}\n data-testid={testId}\n className={cn('w-full', className)}\n style={{ ...style, display: 'flex', flexDirection: 'column', gap: gapValue }}\n role=\"status\"\n aria-label=\"Loading form...\"\n aria-busy=\"true\"\n {...rest}\n >\n {/* Form Fields */}\n {Array.from({ length: fields }).map((_, index) => (\n <div key={index} className=\"w-full\" style={{ display: 'flex', flexDirection: 'column', gap: '8px' }}>\n {/* Field Label */}\n {showLabels && (\n <Skeleton\n width=\"30%\"\n height=\"0.875rem\"\n variant=\"text\"\n animate={animate}\n baseColor={baseColor}\n highlightColor={highlightColor}\n />\n )}\n {/* Field Input */}\n <Skeleton\n width=\"100%\"\n height=\"2.5rem\"\n variant=\"rectangular\"\n animate={animate}\n baseColor={baseColor}\n highlightColor={highlightColor}\n />\n </div>\n ))}\n\n {/* Submit Button */}\n {showButton && (\n <div className={cn('flex', buttonAlign)} style={{ marginTop: '8px' }}>\n <Skeleton\n width={buttonWidth}\n height=\"2.5rem\"\n variant=\"rounded\"\n animate={animate}\n baseColor={baseColor}\n highlightColor={highlightColor}\n />\n </div>\n )}\n </div>\n );\n }\n);\n\nSkeletonForm.displayName = 'SkeletonForm';\n"],"names":["forwardRef","normalizeSize","jsxs","cn","jsx","Skeleton"],"mappings":";;;;;;;AAkBO,MAAM,eAAeA,MAAAA;AAAAA,EAC1B,CACE;AAAA,IACE,SAAS;AAAA,IACT,aAAa;AAAA,IACb,aAAa;AAAA,IACb,MAAM;AAAA,IACN,cAAc;AAAA,IACd,iBAAiB;AAAA,IACjB,UAAU;AAAA,IACV;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,SAAS;AAAA,IACT,UAAU;AAAA,IACV,GAAG;AAAA,EAAA,GAEL,QACG;AACH,QAAI,CAAC,QAAS,QAAO;AAErB,UAAM,WAAWC,OAAAA,cAAc,GAAG;AAClC,UAAM,cACJ,mBAAmB,SACf,kBACA,mBAAmB,UACnB,gBACA;AAEN,WACEC,2BAAAA;AAAAA,MAAC;AAAA,MAAA;AAAA,QACC;AAAA,QACA,eAAa;AAAA,QACb,WAAWC,WAAAA,GAAG,UAAU,SAAS;AAAA,QACjC,OAAO,EAAE,GAAG,OAAO,SAAS,QAAQ,eAAe,UAAU,KAAK,SAAA;AAAA,QAClE,MAAK;AAAA,QACL,cAAW;AAAA,QACX,aAAU;AAAA,QACT,GAAG;AAAA,QAGH,UAAA;AAAA,UAAA,MAAM,KAAK,EAAE,QAAQ,OAAA,CAAQ,EAAE,IAAI,CAAC,GAAG,UACtCD,2BAAAA,KAAC,SAAgB,WAAU,UAAS,OAAO,EAAE,SAAS,QAAQ,eAAe,UAAU,KAAK,MAAA,GAEzF,UAAA;AAAA,YAAA,cACCE,2BAAAA;AAAAA,cAACC,SAAAA;AAAAA,cAAA;AAAA,gBACC,OAAM;AAAA,gBACN,QAAO;AAAA,gBACP,SAAQ;AAAA,gBACR;AAAA,gBACA;AAAA,gBACA;AAAA,cAAA;AAAA,YAAA;AAAA,YAIJD,2BAAAA;AAAAA,cAACC,SAAAA;AAAAA,cAAA;AAAA,gBACC,OAAM;AAAA,gBACN,QAAO;AAAA,gBACP,SAAQ;AAAA,gBACR;AAAA,gBACA;AAAA,gBACA;AAAA,cAAA;AAAA,YAAA;AAAA,UACF,EAAA,GApBQ,KAqBV,CACD;AAAA,UAGA,cACCD,2BAAAA,IAAC,OAAA,EAAI,WAAWD,WAAAA,GAAG,QAAQ,WAAW,GAAG,OAAO,EAAE,WAAW,MAAA,GAC3D,UAAAC,2BAAAA;AAAAA,YAACC,SAAAA;AAAAA,YAAA;AAAA,cACC,OAAO;AAAA,cACP,QAAO;AAAA,cACP,SAAQ;AAAA,cACR;AAAA,cACA;AAAA,cACA;AAAA,YAAA;AAAA,UAAA,EACF,CACF;AAAA,QAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAIR;AACF;AAEA,aAAa,cAAc;;"}
|
package/dist/index13.js
CHANGED
|
@@ -1,63 +1,82 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { Skeleton } from "./index5.js";
|
|
4
|
+
import { normalizeSize } from "./index4.js";
|
|
4
5
|
import { cn } from "./index3.js";
|
|
5
|
-
const
|
|
6
|
+
const SkeletonForm = forwardRef(
|
|
6
7
|
({
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
fields = 3,
|
|
9
|
+
showLabels = true,
|
|
10
|
+
showButton = true,
|
|
11
|
+
gap = 16,
|
|
12
|
+
buttonWidth = "120px",
|
|
13
|
+
buttonPosition = "left",
|
|
14
|
+
animate = true,
|
|
15
|
+
baseColor,
|
|
16
|
+
highlightColor,
|
|
11
17
|
className,
|
|
12
18
|
style,
|
|
13
|
-
testId = "
|
|
19
|
+
testId = "skeleton-form",
|
|
14
20
|
visible = true,
|
|
15
|
-
ariaLabel = "Loading...",
|
|
16
21
|
...rest
|
|
17
22
|
}, ref) => {
|
|
18
23
|
if (!visible) return null;
|
|
19
|
-
|
|
24
|
+
const gapValue = normalizeSize(gap);
|
|
25
|
+
const buttonAlign = buttonPosition === "left" ? "justify-start" : buttonPosition === "right" ? "justify-end" : "justify-center";
|
|
26
|
+
return /* @__PURE__ */ jsxs(
|
|
20
27
|
"div",
|
|
21
28
|
{
|
|
22
29
|
ref,
|
|
23
30
|
"data-testid": testId,
|
|
24
|
-
className: cn("
|
|
25
|
-
style,
|
|
31
|
+
className: cn("w-full", className),
|
|
32
|
+
style: { ...style, display: "flex", flexDirection: "column", gap: gapValue },
|
|
26
33
|
role: "status",
|
|
27
|
-
"aria-label":
|
|
34
|
+
"aria-label": "Loading form...",
|
|
28
35
|
"aria-busy": "true",
|
|
29
36
|
...rest,
|
|
30
|
-
children:
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
|
|
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",
|
|
37
|
+
children: [
|
|
38
|
+
Array.from({ length: fields }).map((_, index) => /* @__PURE__ */ jsxs("div", { className: "w-full", style: { display: "flex", flexDirection: "column", gap: "8px" }, children: [
|
|
39
|
+
showLabels && /* @__PURE__ */ jsx(
|
|
40
|
+
Skeleton,
|
|
42
41
|
{
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
42
|
+
width: "30%",
|
|
43
|
+
height: "0.875rem",
|
|
44
|
+
variant: "text",
|
|
45
|
+
animate,
|
|
46
|
+
baseColor,
|
|
47
|
+
highlightColor
|
|
48
|
+
}
|
|
49
|
+
),
|
|
50
|
+
/* @__PURE__ */ jsx(
|
|
51
|
+
Skeleton,
|
|
52
|
+
{
|
|
53
|
+
width: "100%",
|
|
54
|
+
height: "2.5rem",
|
|
55
|
+
variant: "rectangular",
|
|
56
|
+
animate,
|
|
57
|
+
baseColor,
|
|
58
|
+
highlightColor
|
|
51
59
|
}
|
|
52
60
|
)
|
|
53
|
-
}
|
|
54
|
-
|
|
61
|
+
] }, index)),
|
|
62
|
+
showButton && /* @__PURE__ */ jsx("div", { className: cn("flex", buttonAlign), style: { marginTop: "8px" }, children: /* @__PURE__ */ jsx(
|
|
63
|
+
Skeleton,
|
|
64
|
+
{
|
|
65
|
+
width: buttonWidth,
|
|
66
|
+
height: "2.5rem",
|
|
67
|
+
variant: "rounded",
|
|
68
|
+
animate,
|
|
69
|
+
baseColor,
|
|
70
|
+
highlightColor
|
|
71
|
+
}
|
|
72
|
+
) })
|
|
73
|
+
]
|
|
55
74
|
}
|
|
56
75
|
);
|
|
57
76
|
}
|
|
58
77
|
);
|
|
59
|
-
|
|
78
|
+
SkeletonForm.displayName = "SkeletonForm";
|
|
60
79
|
export {
|
|
61
|
-
|
|
80
|
+
SkeletonForm
|
|
62
81
|
};
|
|
63
82
|
//# sourceMappingURL=index13.js.map
|
package/dist/index13.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index13.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"index13.js","sources":["../src/components/skeleton/SkeletonForm.tsx"],"sourcesContent":["import { forwardRef } from 'react';\nimport { SkeletonFormProps } from '../../types';\nimport { cn, normalizeSize } from '../../utils';\nimport { Skeleton } from './Skeleton';\n\n/**\n * SkeletonForm - Form loading skeleton\n *\n * A skeleton loader for form layouts with configurable fields, labels, and submit button.\n *\n * @example\n * ```tsx\n * <SkeletonForm />\n * <SkeletonForm fields={5} showLabels={true} />\n * <SkeletonForm fields={3} showButton={false} />\n * <SkeletonForm fields={4} buttonPosition=\"right\" />\n * ```\n */\nexport const SkeletonForm = forwardRef<HTMLDivElement, SkeletonFormProps>(\n (\n {\n fields = 3,\n showLabels = true,\n showButton = true,\n gap = 16,\n buttonWidth = '120px',\n buttonPosition = 'left',\n animate = true,\n baseColor,\n highlightColor,\n className,\n style,\n testId = 'skeleton-form',\n visible = true,\n ...rest\n },\n ref\n ) => {\n if (!visible) return null;\n\n const gapValue = normalizeSize(gap);\n const buttonAlign =\n buttonPosition === 'left'\n ? 'justify-start'\n : buttonPosition === 'right'\n ? 'justify-end'\n : 'justify-center';\n\n return (\n <div\n ref={ref}\n data-testid={testId}\n className={cn('w-full', className)}\n style={{ ...style, display: 'flex', flexDirection: 'column', gap: gapValue }}\n role=\"status\"\n aria-label=\"Loading form...\"\n aria-busy=\"true\"\n {...rest}\n >\n {/* Form Fields */}\n {Array.from({ length: fields }).map((_, index) => (\n <div key={index} className=\"w-full\" style={{ display: 'flex', flexDirection: 'column', gap: '8px' }}>\n {/* Field Label */}\n {showLabels && (\n <Skeleton\n width=\"30%\"\n height=\"0.875rem\"\n variant=\"text\"\n animate={animate}\n baseColor={baseColor}\n highlightColor={highlightColor}\n />\n )}\n {/* Field Input */}\n <Skeleton\n width=\"100%\"\n height=\"2.5rem\"\n variant=\"rectangular\"\n animate={animate}\n baseColor={baseColor}\n highlightColor={highlightColor}\n />\n </div>\n ))}\n\n {/* Submit Button */}\n {showButton && (\n <div className={cn('flex', buttonAlign)} style={{ marginTop: '8px' }}>\n <Skeleton\n width={buttonWidth}\n height=\"2.5rem\"\n variant=\"rounded\"\n animate={animate}\n baseColor={baseColor}\n highlightColor={highlightColor}\n />\n </div>\n )}\n </div>\n );\n }\n);\n\nSkeletonForm.displayName = 'SkeletonForm';\n"],"names":[],"mappings":";;;;;AAkBO,MAAM,eAAe;AAAA,EAC1B,CACE;AAAA,IACE,SAAS;AAAA,IACT,aAAa;AAAA,IACb,aAAa;AAAA,IACb,MAAM;AAAA,IACN,cAAc;AAAA,IACd,iBAAiB;AAAA,IACjB,UAAU;AAAA,IACV;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,SAAS;AAAA,IACT,UAAU;AAAA,IACV,GAAG;AAAA,EAAA,GAEL,QACG;AACH,QAAI,CAAC,QAAS,QAAO;AAErB,UAAM,WAAW,cAAc,GAAG;AAClC,UAAM,cACJ,mBAAmB,SACf,kBACA,mBAAmB,UACnB,gBACA;AAEN,WACE;AAAA,MAAC;AAAA,MAAA;AAAA,QACC;AAAA,QACA,eAAa;AAAA,QACb,WAAW,GAAG,UAAU,SAAS;AAAA,QACjC,OAAO,EAAE,GAAG,OAAO,SAAS,QAAQ,eAAe,UAAU,KAAK,SAAA;AAAA,QAClE,MAAK;AAAA,QACL,cAAW;AAAA,QACX,aAAU;AAAA,QACT,GAAG;AAAA,QAGH,UAAA;AAAA,UAAA,MAAM,KAAK,EAAE,QAAQ,OAAA,CAAQ,EAAE,IAAI,CAAC,GAAG,UACtC,qBAAC,SAAgB,WAAU,UAAS,OAAO,EAAE,SAAS,QAAQ,eAAe,UAAU,KAAK,MAAA,GAEzF,UAAA;AAAA,YAAA,cACC;AAAA,cAAC;AAAA,cAAA;AAAA,gBACC,OAAM;AAAA,gBACN,QAAO;AAAA,gBACP,SAAQ;AAAA,gBACR;AAAA,gBACA;AAAA,gBACA;AAAA,cAAA;AAAA,YAAA;AAAA,YAIJ;AAAA,cAAC;AAAA,cAAA;AAAA,gBACC,OAAM;AAAA,gBACN,QAAO;AAAA,gBACP,SAAQ;AAAA,gBACR;AAAA,gBACA;AAAA,gBACA;AAAA,cAAA;AAAA,YAAA;AAAA,UACF,EAAA,GApBQ,KAqBV,CACD;AAAA,UAGA,cACC,oBAAC,OAAA,EAAI,WAAW,GAAG,QAAQ,WAAW,GAAG,OAAO,EAAE,WAAW,MAAA,GAC3D,UAAA;AAAA,YAAC;AAAA,YAAA;AAAA,cACC,OAAO;AAAA,cACP,QAAO;AAAA,cACP,SAAQ;AAAA,cACR;AAAA,cACA;AAAA,cACA;AAAA,YAAA;AAAA,UAAA,EACF,CACF;AAAA,QAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAIR;AACF;AAEA,aAAa,cAAc;"}
|