@prosistemas/sca-web-kit 3.3.7 → 3.3.10

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,8 +1,9 @@
1
- export default function Title({ text, className, fontSize, fontWeight, dark, id, }: {
1
+ export default function Title({ text, className, fontSize, fontWeight, dark, h1, id, }: {
2
2
  text: string;
3
3
  className?: string;
4
4
  fontSize?: string;
5
5
  fontWeight?: string;
6
6
  dark?: boolean;
7
+ h1?: boolean;
7
8
  id?: string;
8
9
  }): import("react/jsx-runtime").JSX.Element;
@@ -1,8 +1,9 @@
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, id, }) {
5
- return (_jsx("h1", { id: id, className: `${styles['title']} ${className} ${montserrat.className}`, style: {
4
+ export default function Title({ text, className, fontSize, fontWeight, dark = false, h1 = false, id, }) {
5
+ const Tag = h1 ? 'h1' : 'h2';
6
+ return (_jsx(Tag, { id: id, className: `${styles['title']} ${className} ${montserrat.className}`, style: {
6
7
  fontSize: fontSize,
7
8
  fontWeight: fontWeight,
8
9
  color: dark ? `var(--neutral100)` : `var(--neutral700)`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prosistemas/sca-web-kit",
3
- "version": "3.3.7",
3
+ "version": "3.3.10",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [
@@ -16,22 +16,23 @@
16
16
  },
17
17
  "dependencies": {
18
18
  "@phosphor-icons/react": "^2.1.10",
19
- "@radix-ui/react-accordion": "^1.2.4",
20
- "@radix-ui/react-avatar": "^1.1.7",
21
- "@radix-ui/react-dialog": "^1.1.11",
22
- "@radix-ui/react-dropdown-menu": "^2.1.6",
23
- "@radix-ui/react-visually-hidden": "^1.2.2",
19
+ "@prosistemas/sca-web-kit": "^3.3.8",
20
+ "@radix-ui/react-accordion": "^1.2.12",
21
+ "@radix-ui/react-avatar": "^1.1.11",
22
+ "@radix-ui/react-dialog": "^1.1.15",
23
+ "@radix-ui/react-dropdown-menu": "^2.1.16",
24
+ "@radix-ui/react-visually-hidden": "^1.2.4",
24
25
  "react-spinners": "^0.17.0"
25
26
  },
26
27
  "devDependencies": {
27
- "@eslint/eslintrc": "^3",
28
- "@types/node": "^20",
29
- "@types/react": "^19",
30
- "@types/react-dom": "^19",
28
+ "@eslint/eslintrc": "^3.3.3",
29
+ "@types/node": "^20.19.31",
30
+ "@types/react": "^19.2.11",
31
+ "@types/react-dom": "^19.2.3",
31
32
  "cpy-cli": "^5.0.0",
32
- "eslint": "^9",
33
+ "eslint": "^9.39.2",
33
34
  "eslint-config-next": "15.2.2",
34
- "typescript": "^5"
35
+ "typescript": "^5.9.3"
35
36
  },
36
37
  "scripts": {
37
38
  "build": "tsc && cpy \"src/**/*.scss\" dist/ --parents"