@prosistemas/sca-web-kit 1.0.0 → 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.
@@ -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/package.json CHANGED
@@ -1,12 +1,17 @@
1
1
  {
2
2
  "name": "@prosistemas/sca-web-kit",
3
- "version": "1.0.0",
3
+ "version": "1.1.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
+ }