@prosistemas/sca-web-kit 3.4.1 → 3.4.3

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.
@@ -29,5 +29,5 @@ interface InfoHeaderProps {
29
29
  gap?: string;
30
30
  dark?: boolean;
31
31
  }
32
- export default function InfoHeader({ className, tagLabel, tagLabelClassName, tagLabelHref, tagLabelTarget, tagLabelLeadingIcon, tagLabelLeadingIconSize, tagLabelLeadingIconColor, tagLabelLeadingIconWeight, tagLabelLeadingIconClassName, tagLabelTrailingIcon, tagLabelTrailingIconSize, tagLabelTrailingIconColor, tagLabelTrailingIconWeight, tagLabelTrailingIconClassName, title, titleClassName, titleH1, subtitle, subtitleClassName, buttonLabel, buttonClassName, buttonHref, buttonInternalHref, buttonTarget, gap, dark, }: InfoHeaderProps): import("react/jsx-runtime").JSX.Element;
32
+ export default function InfoHeader({ className, tagLabel, tagLabelClassName, tagLabelHref, tagLabelTarget, tagLabelLeadingIcon, tagLabelLeadingIconSize, tagLabelLeadingIconColor, tagLabelLeadingIconWeight, tagLabelLeadingIconClassName, tagLabelTrailingIcon, tagLabelTrailingIconSize, tagLabelTrailingIconColor, tagLabelTrailingIconWeight, tagLabelTrailingIconClassName, title, titleClassName, titleH1, subtitle, subtitleClassName, buttonLabel, buttonClassName, buttonHref, buttonInternalHref, buttonTarget, dark, }: InfoHeaderProps): import("react/jsx-runtime").JSX.Element;
33
33
  export {};
@@ -4,10 +4,8 @@ import TagLabel from '../../ui/tag-label/tag-label';
4
4
  import Title from '../../ui/title/title';
5
5
  import Subtitle from '../../ui/subtitle/subtitle';
6
6
  import Button from '../../ui/button/button';
7
- export default function InfoHeader({ className, tagLabel, tagLabelClassName, tagLabelHref, tagLabelTarget, tagLabelLeadingIcon, tagLabelLeadingIconSize, tagLabelLeadingIconColor, tagLabelLeadingIconWeight, tagLabelLeadingIconClassName, tagLabelTrailingIcon, tagLabelTrailingIconSize, tagLabelTrailingIconColor, tagLabelTrailingIconWeight, tagLabelTrailingIconClassName, title, titleClassName, titleH1 = false, subtitle, subtitleClassName, buttonLabel, buttonClassName, buttonHref, buttonInternalHref, buttonTarget, gap, dark, }) {
8
- return (_jsxs("div", { className: `${styles['info-header']} ${className}`, style: {
9
- gap: gap,
10
- }, children: [tagLabel &&
7
+ export default function InfoHeader({ className, tagLabel, tagLabelClassName, tagLabelHref, tagLabelTarget, tagLabelLeadingIcon, tagLabelLeadingIconSize, tagLabelLeadingIconColor, tagLabelLeadingIconWeight, tagLabelLeadingIconClassName, tagLabelTrailingIcon, tagLabelTrailingIconSize, tagLabelTrailingIconColor, tagLabelTrailingIconWeight, tagLabelTrailingIconClassName, title, titleClassName, titleH1 = false, subtitle, subtitleClassName, buttonLabel, buttonClassName, buttonHref, buttonInternalHref, buttonTarget, dark, }) {
8
+ return (_jsxs("div", { className: `${styles['info-header']} ${className}`, children: [tagLabel &&
11
9
  _jsx(TagLabel, { className: `${tagLabelClassName} ${styles['tag-label']}`, label: tagLabel, dark: dark, href: tagLabelHref, target: tagLabelTarget, leadingIcon: tagLabelLeadingIcon, leadingIconSize: tagLabelLeadingIconSize, leadingIconColor: tagLabelLeadingIconColor, leadingIconWeight: tagLabelLeadingIconWeight, leadingIconClassName: tagLabelLeadingIconClassName, trailingIcon: tagLabelTrailingIcon, trailingIconSize: tagLabelTrailingIconSize, trailingIconColor: tagLabelTrailingIconColor, trailingIconWeight: tagLabelTrailingIconWeight, trailingIconClassName: tagLabelTrailingIconClassName }), _jsx(Title, { className: `${titleClassName} ${styles['title']}`, h1: titleH1, text: title, dark: dark }), subtitle &&
12
10
  _jsx(Subtitle, { className: `${subtitleClassName} ${styles['subtitle']}`, text: subtitle, dark: dark }), buttonLabel &&
13
11
  _jsx(Button, { className: `${buttonClassName} ${styles['button']}`, label: buttonLabel, href: buttonHref, internalHref: buttonInternalHref, target: buttonTarget })] }));
@@ -48,7 +48,7 @@
48
48
  }
49
49
 
50
50
  .input:focus {
51
- border: 1px solid var(--light200);
51
+ border: 1px solid var(--light500);
52
52
  }
53
53
 
54
54
  .password {
@@ -1,7 +1,9 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import styles from './subtitle.module.scss';
3
3
  export default function Subtitle({ text, className, dark = false, }) {
4
- return (_jsx("p", { className: `${styles['subtitle']} ${className}`, style: {
5
- color: dark ? 'var(--neutral100)' : 'var(--neutral600)',
6
- }, children: text }));
4
+ return (_jsx("p", { className: `
5
+ ${styles['subtitle']}
6
+ ${dark && styles['dark']}
7
+ ${className}
8
+ `, children: text }));
7
9
  }
@@ -1,8 +1,12 @@
1
- .subtitle {
2
- color: var(--neutral600);
3
- font-weight: 400;
1
+ .subtitle {
2
+ color: var(--neutral600);
3
+ font-weight: 400;
4
4
 
5
- @media (max-width: 768px) {
6
- font-size: 14px;
7
- }
5
+ @media (max-width: 768px) {
6
+ font-size: 14px;
8
7
  }
8
+ }
9
+
10
+ .dark {
11
+ color: var(--neutral100);
12
+ }
@@ -1,4 +1,4 @@
1
- export default function Title({ text, className, fontSize, fontWeight, dark, h1, id, }: {
1
+ export default function Title({ text, className, dark, h1, id, }: {
2
2
  text: string;
3
3
  className?: string;
4
4
  fontSize?: string;
@@ -1,11 +1,12 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import styles from './title.module.scss';
3
3
  import { montserrat } from '../../../fonts';
4
- export default function Title({ text, className, fontSize, fontWeight, dark = false, h1 = false, id, }) {
4
+ export default function Title({ text, className, dark = false, h1 = false, id, }) {
5
5
  const Tag = h1 ? 'h1' : 'h2';
6
- return (_jsx(Tag, { id: id, className: `${styles['title']} ${className} ${montserrat.className}`, style: {
7
- fontSize: fontSize,
8
- fontWeight: fontWeight,
9
- color: dark ? `var(--neutral100)` : `var(--neutral700)`,
10
- }, children: text }));
6
+ return (_jsx(Tag, { id: id, className: `
7
+ ${styles['title']}
8
+ ${montserrat.className}
9
+ ${dark && styles['dark']}
10
+ ${className}
11
+ `, children: text }));
11
12
  }
@@ -1,8 +1,13 @@
1
- .title {
2
- font-size: 32px;
3
- font-weight: 600;
1
+ .title {
2
+ font-size: 32px;
3
+ font-weight: 600;
4
+ color: var(--neutral700);
4
5
 
5
- @media (max-width: 768px) {
6
- font-size: 24px;
7
- }
6
+ @media (max-width: 768px) {
7
+ font-size: 24px;
8
8
  }
9
+ }
10
+
11
+ .dark {
12
+ color: var(--neutral100);
13
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prosistemas/sca-web-kit",
3
- "version": "3.4.1",
3
+ "version": "3.4.3",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [