@prosistemas/sca-web-kit 1.0.0 → 2.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.
@@ -1,7 +1,18 @@
1
+ import { IconProps, IconWeight } from '@phosphor-icons/react';
1
2
  interface InfoHeaderProps {
2
3
  className?: string;
3
4
  tagLabel?: string;
4
5
  tagLabelClassName?: string;
6
+ tagLabelLeadingIcon?: React.ComponentType<IconProps>;
7
+ tagLabelLeadingIconSize?: number;
8
+ tagLabelLeadingIconColor?: string;
9
+ tagLabelLeadingIconWeight?: IconWeight;
10
+ tagLabelLeadingIconClassName?: string;
11
+ tagLabelTrailingIcon?: React.ComponentType<IconProps>;
12
+ tagLabelTrailingIconSize?: number;
13
+ tagLabelTrailingIconColor?: string;
14
+ tagLabelTrailingIconWeight?: IconWeight;
15
+ tagLabelTrailingIconClassName?: string;
5
16
  title: string;
6
17
  titleClassName?: string;
7
18
  subtitle?: string;
@@ -14,5 +25,5 @@ interface InfoHeaderProps {
14
25
  gap?: string;
15
26
  dark?: boolean;
16
27
  }
17
- export default function InfoHeader({ className, tagLabel, tagLabelClassName, title, titleClassName, subtitle, subtitleClassName, buttonLabel, buttonClassName, buttonHref, buttonInternalHref, buttonTarget, gap, dark, }: InfoHeaderProps): import("react/jsx-runtime").JSX.Element;
28
+ export default function InfoHeader({ className, tagLabel, tagLabelClassName, tagLabelLeadingIcon, tagLabelLeadingIconSize, tagLabelLeadingIconColor, tagLabelLeadingIconWeight, tagLabelLeadingIconClassName, tagLabelTrailingIcon, tagLabelTrailingIconSize, tagLabelTrailingIconColor, tagLabelTrailingIconWeight, tagLabelTrailingIconClassName, title, titleClassName, subtitle, subtitleClassName, buttonLabel, buttonClassName, buttonHref, buttonInternalHref, buttonTarget, gap, dark, }: InfoHeaderProps): import("react/jsx-runtime").JSX.Element;
18
29
  export {};
@@ -1,14 +1,14 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import styles from './info-header.module.scss';
3
3
  import TagLabel from '../../ui/tag-label/tag-label';
4
+ import Title from '../../ui/title/title';
4
5
  import Subtitle from '../../ui/subtitle/subtitle';
5
6
  import Button from '../../ui/button/button';
6
- import Title from '../../ui/title/title';
7
- export default function InfoHeader({ className, tagLabel, tagLabelClassName, title, titleClassName, subtitle, subtitleClassName, buttonLabel, buttonClassName, buttonHref, buttonInternalHref, buttonTarget, gap, dark, }) {
7
+ export default function InfoHeader({ className, tagLabel, tagLabelClassName, tagLabelLeadingIcon, tagLabelLeadingIconSize, tagLabelLeadingIconColor, tagLabelLeadingIconWeight, tagLabelLeadingIconClassName, tagLabelTrailingIcon, tagLabelTrailingIconSize, tagLabelTrailingIconColor, tagLabelTrailingIconWeight, tagLabelTrailingIconClassName, title, titleClassName, subtitle, subtitleClassName, buttonLabel, buttonClassName, buttonHref, buttonInternalHref, buttonTarget, gap, dark, }) {
8
8
  return (_jsxs("div", { className: `${styles['info-header']} ${className}`, style: {
9
9
  gap: gap,
10
10
  }, children: [tagLabel &&
11
- _jsx(TagLabel, { label: tagLabel, className: tagLabelClassName, dark: dark }), _jsx(Title, { className: titleClassName, text: title, dark: dark }), subtitle &&
11
+ _jsx(TagLabel, { className: tagLabelClassName, label: tagLabel, dark: dark, leadingIcon: tagLabelLeadingIcon, leadingIconSize: tagLabelLeadingIconSize, leadingIconColor: tagLabelLeadingIconColor, leadingIconWeight: tagLabelLeadingIconWeight, leadingIconClassName: tagLabelLeadingIconClassName, trailingIcon: tagLabelTrailingIcon, trailingIconSize: tagLabelTrailingIconSize, trailingIconColor: tagLabelTrailingIconColor, trailingIconWeight: tagLabelTrailingIconWeight, trailingIconClassName: tagLabelTrailingIconClassName }), _jsx(Title, { className: titleClassName, text: title, dark: dark }), subtitle &&
12
12
  _jsx(Subtitle, { text: subtitle, className: subtitleClassName, dark: dark }), buttonLabel &&
13
13
  _jsx(Button, { label: buttonLabel, className: buttonClassName, href: buttonHref, internalHref: buttonInternalHref, target: buttonTarget })] }));
14
14
  }
package/dist/index.d.ts CHANGED
@@ -1,26 +1,12 @@
1
1
  import './styles/variables.scss';
2
- export { default as Decal } from './components/ui/decal/decal';
3
2
  export { default as Title } from './components/ui/title/title';
4
- export { default as Stacks } from './components/ui/stacks/stacks';
5
3
  export { default as Button } from './components/ui/button/button';
6
4
  export { default as Subtitle } from './components/ui/subtitle/subtitle';
7
5
  export { default as Accordion } from './components/ui/accordion/accordion';
8
6
  export { default as TagLabel } from './components/ui/tag-label/tag-label';
9
- export { default as ThreeDots } from './components/ui/three-dots/three-dots';
10
- export { default as ProgressBar } from './components/ui/progress-bar/progress-bar';
11
- export { default as PulseEffect } from './components/ui/pulse-effect/pulse-effect';
12
7
  export { default as IconWithBackground } from './components/ui/icon-with-background/icon-with-background';
13
- export { default as Phone } from './components/shared/phone/phone';
14
- export { default as AutoPlayer } from './components/shared/autoplayer/autoplayer';
15
8
  export { default as InfoHeader } from './components/shared/info-header/info-header';
16
- export { default as IndexHeader } from './components/shared/index-header/index-header';
17
- export { default as SuccessCases } from './components/shared/success-cases/success-cases';
18
- export { default as FooterBanner } from './components/shared/footer-banner/footer-banner';
19
9
  export { default as NewsletterStrip } from './components/shared/newsletter-strip/newsletter-strip';
20
10
  export { default as NewsletterModal } from './components/shared/newsletter-modal/newsletter-modal';
21
- export { default as SupportStickyButton } from './components/shared/support-sticky-button/support-sticky-button';
22
11
  export { default as NewsletterModalDialog } from './components/shared/newsletter-modal-dialog/newsletter-modal-dialog';
23
- export { default as FooterBannerAutoplayer } from './components/shared/footer-banner-autoplayer/footer-banner-autoplayer';
24
- export { default as SuccessCasesSwiper } from './components/shared/success-cases/success-cases-swiper/success-cases-swiper';
25
- export { default as SuccessCaseCard } from './components/shared/success-cases/success-cases-swiper/success-case-card/success-case-card';
26
12
  export { default as Footer } from './components/layout/footer/footer';
package/dist/index.js CHANGED
@@ -1,29 +1,15 @@
1
1
  import './styles/variables.scss';
2
2
  // UI
3
- export { default as Decal } from './components/ui/decal/decal';
4
3
  export { default as Title } from './components/ui/title/title';
5
- export { default as Stacks } from './components/ui/stacks/stacks';
6
4
  export { default as Button } from './components/ui/button/button';
7
5
  export { default as Subtitle } from './components/ui/subtitle/subtitle';
8
6
  export { default as Accordion } from './components/ui/accordion/accordion';
9
7
  export { default as TagLabel } from './components/ui/tag-label/tag-label';
10
- export { default as ThreeDots } from './components/ui/three-dots/three-dots';
11
- export { default as ProgressBar } from './components/ui/progress-bar/progress-bar';
12
- export { default as PulseEffect } from './components/ui/pulse-effect/pulse-effect';
13
8
  export { default as IconWithBackground } from './components/ui/icon-with-background/icon-with-background';
14
9
  // Shared
15
- export { default as Phone } from './components/shared/phone/phone';
16
- export { default as AutoPlayer } from './components/shared/autoplayer/autoplayer';
17
10
  export { default as InfoHeader } from './components/shared/info-header/info-header';
18
- export { default as IndexHeader } from './components/shared/index-header/index-header';
19
- export { default as SuccessCases } from './components/shared/success-cases/success-cases';
20
- export { default as FooterBanner } from './components/shared/footer-banner/footer-banner';
21
11
  export { default as NewsletterStrip } from './components/shared/newsletter-strip/newsletter-strip';
22
12
  export { default as NewsletterModal } from './components/shared/newsletter-modal/newsletter-modal';
23
- export { default as SupportStickyButton } from './components/shared/support-sticky-button/support-sticky-button';
24
13
  export { default as NewsletterModalDialog } from './components/shared/newsletter-modal-dialog/newsletter-modal-dialog';
25
- export { default as FooterBannerAutoplayer } from './components/shared/footer-banner-autoplayer/footer-banner-autoplayer';
26
- export { default as SuccessCasesSwiper } from './components/shared/success-cases/success-cases-swiper/success-cases-swiper';
27
- export { default as SuccessCaseCard } from './components/shared/success-cases/success-cases-swiper/success-case-card/success-case-card';
28
14
  // Layout
29
15
  export { default as Footer } from './components/layout/footer/footer';
package/package.json CHANGED
@@ -1,12 +1,17 @@
1
1
  {
2
2
  "name": "@prosistemas/sca-web-kit",
3
- "version": "1.0.0",
3
+ "version": "2.0.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [
7
7
  "dist",
8
8
  "assets"
9
9
  ],
10
+ "scripts": {
11
+ "build": "tsc && cpy \"src/**/*.scss\" dist/ --parents",
12
+ "prepare": "pnpm run build",
13
+ "prepack": "pnpm run build"
14
+ },
10
15
  "peerDependencies": {
11
16
  "@phosphor-icons/react": "^2.1.10",
12
17
  "next": "^15.0.0",
@@ -32,8 +37,5 @@
32
37
  "eslint": "^9",
33
38
  "eslint-config-next": "15.2.2",
34
39
  "typescript": "^5"
35
- },
36
- "scripts": {
37
- "build": "tsc && cpy \"src/**/*.scss\" dist/ --parents"
38
40
  }
39
- }
41
+ }