
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@tealca/core-components
Advanced tools
A set of reusable and accessible React components, built with TypeScript. This library centralizes all of Tealca's UI components, ensuring a consistent user experience and a unified brand identity across all our web applications.
This repository contains reusable components developed for TEALCA, enabling integration and visual consistency across all our applications. The project is built with Vite, React, TypeScript, SWC, and Storybook, providing a modern, fast, and scalable environment.
npm i @tealca/core-components
import { PrimaryButton } from "@tealca/core-components";
function App() {
return <PrimaryButton>Click Me</PrimaryButton>;
}
The primary color theme of this component library is based on the indigo color palette from Tailwind CSS. Components like PrimaryButton, Link, and others use shades of indigo by default.
If you wish to customize the main theme in your own project, you can override the indigo colors in your tailwind.config.js file. By replacing the indigo palette, you can change the primary color of the components to match your application's brand.
Example tailwind.config.js:
module.exports = {
theme: {
extend: {
colors: {
indigo: {
50: "#eef2ff",
100: "#e0e7ff",
200: "#c7d2fe",
300: "#a5b4fc",
400: "#818cf8",
500: "#6366f1", // Your brand's primary color
600: "#4f46e5", // A darker shade
700: "#4338ca",
800: "#3730a3",
900: "#312e81",
950: "#1e1b4b",
},
},
},
},
plugins: [],
};
By replacing the hex codes with your own brand's colors, you can easily adapt the component library's theme.
npm run dev: Starts the development environment.npm run build: Builds the components for production.npm run preview: Previews the production build.npm run storybook: Starts Storybook for component development and documentation..
├── .storybook/ # Storybook configuration
├── src/
│ ├── assets/
│ ├── components/
│ ├── contexts/
│ ├── objects/
│ ├── providers/
│ ├── services/
│ └── utils/
├── .gitignore
├── package.json
├── tsconfig.json
└── vite.config.ts
To create a new component, follow these steps:
Create a directory for the component: Inside src/components/{category} create a new directory with the name of the component in PascalCase. For example, if you are creating a new component called MyComponent in the base category, you should create the directory src/components/base/MyComponent.
Create the component file: Inside the directory you just created, create a new file called MyComponent.tsx. This file will contain the logic and structure of the component.
Create the story file: Inside the same directory, create a new file called MyComponent.stories.tsx. This file will contain the Storybook stories for the component, which will allow you to visualize and test the component in isolation.
Export the component: You must export the component in the index.ts file of the corresponding category. For example, in src/components/base/index.ts. Then, you must also export it in the main index.ts of the components, src/components/index.ts.
To publish a new version of the package to NPM, follow these steps:
Build the project: This command compiles the code and prepares it for distribution.
npm run build
Update the version: Before publishing, you must update the package version in package.json. You can do this manually or by using the npm version command, which also creates a commit and a git tag.
# Example for a patch update (e.g., 1.0.0 -> 1.0.1)
npm version patch
# Example for a minor update (e.g., 1.0.0 -> 1.1.0)
npm version minor
# Example for a major update (e.g., 1.0.0 -> 2.0.0)
npm version major
Note: The
npm versioncommand requires a clean working directory (no uncommitted changes). Make sure to commit your changes before running it.
Login to NPM: You need to be authenticated with your NPM account.
npm login
Publish the package: This command uploads the package to the NPM registry.
npm publish
Contributions are welcome! Please follow best development practices and ensure consistency with existing components.
This project is property of TEALCA. Internal and collaborative use only.
FAQs
A collection of shared UI components for Tealca's applications.
We found that @tealca/core-components demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.