@prosistemas/sca-web-kit 2.0.0 → 2.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.
@@ -0,0 +1,6 @@
1
+ export default function LoadingIcon({ className, color, size, spinning, }: {
2
+ className?: string;
3
+ color?: string;
4
+ size?: number;
5
+ spinning?: boolean;
6
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,10 @@
1
+ 'use client';
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import styles from './loading-icon.module.scss';
4
+ import { CircleNotchIcon } from '@phosphor-icons/react';
5
+ export default function LoadingIcon({ className, color = 'white', size = 64, spinning = true, }) {
6
+ return (_jsx(CircleNotchIcon, { className: `${styles['loading-icon']} ${className} ${spinning && styles['animated']}`, color: color, size: size, style: {
7
+ minWidth: `${size}px`,
8
+ minHeight: `${size}px`,
9
+ } }));
10
+ }
@@ -0,0 +1,13 @@
1
+ .animated {
2
+ animation: spin 1s linear infinite;
3
+ }
4
+
5
+ @keyframes spin {
6
+ from {
7
+ transform: rotate(0deg);
8
+ }
9
+
10
+ to {
11
+ transform: rotate(360deg);
12
+ }
13
+ }
package/dist/index.d.ts CHANGED
@@ -2,8 +2,9 @@ import './styles/variables.scss';
2
2
  export { default as Title } from './components/ui/title/title';
3
3
  export { default as Button } from './components/ui/button/button';
4
4
  export { default as Subtitle } from './components/ui/subtitle/subtitle';
5
- export { default as Accordion } from './components/ui/accordion/accordion';
6
5
  export { default as TagLabel } from './components/ui/tag-label/tag-label';
6
+ export { default as Accordion } from './components/ui/accordion/accordion';
7
+ export { default as LoadingIcon } from './components/ui/loading-icon/loading-icon';
7
8
  export { default as IconWithBackground } from './components/ui/icon-with-background/icon-with-background';
8
9
  export { default as InfoHeader } from './components/shared/info-header/info-header';
9
10
  export { default as NewsletterStrip } from './components/shared/newsletter-strip/newsletter-strip';
package/dist/index.js CHANGED
@@ -3,8 +3,9 @@ import './styles/variables.scss';
3
3
  export { default as Title } from './components/ui/title/title';
4
4
  export { default as Button } from './components/ui/button/button';
5
5
  export { default as Subtitle } from './components/ui/subtitle/subtitle';
6
- export { default as Accordion } from './components/ui/accordion/accordion';
7
6
  export { default as TagLabel } from './components/ui/tag-label/tag-label';
7
+ export { default as Accordion } from './components/ui/accordion/accordion';
8
+ export { default as LoadingIcon } from './components/ui/loading-icon/loading-icon';
8
9
  export { default as IconWithBackground } from './components/ui/icon-with-background/icon-with-background';
9
10
  // Shared
10
11
  export { default as InfoHeader } from './components/shared/info-header/info-header';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prosistemas/sca-web-kit",
3
- "version": "2.0.0",
3
+ "version": "2.1.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [