
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@tdstestingstuff/automate-release
Advanced tools
Voca design system is a web components library.
New resourse are to be found here. Read through them carefully and start using design sytem package! This is for minor This is for Major!
The Foundation libraries are here: Voca DS Foundations
The Component libraries are here: Voca DS Components
For an overview of available components and their API, go to the storybook.
Read our accessibility guidelines here.
Package info at NPM: https://www.npmjs.com/package/@teliads/components
To install:
npm install @teliads/components
or with yarn
yarn add @teliads/components
For information about the type of changes each release may contain, please read Change type deifintions.
Custom elements can be used directly in HTML5, Vue and Angular enviroments, among others.
import {defineCustomElements} from ‘@teliads/components/loader’;
defineCustomElements(window);
<telia-button>Press me!</telia-button>
More info for Vue users and more info for Angular users
If you are using create-react-app
with TypeScript
import React, { FC } from "react";
import { TeliaColorDot } from "@teliads/components/react";
const App: FC = (props) => {
return <TeliaColorDot color="red" withborder={true} />;
};
export default App;
SSR and SSG technologies doesn't support web components out of the box, by default web components are not available at all on server side rendered apps or in Static Site Generators, because in NodeJS environment there is no document or window awailable.
With an application built using Next.js, you need to import the components differently. Default import of Voca design system is ES modules, but for Next.js we need to import CommonJS version of components.
Import Components from @teliads/components/react/commonjs
by importing them from common js files like this:
import React from "react";
import App from 'next/app';
import {TeliaColorDot} from '@teliads/components/react/commonjs';
export default class MyApp extends App {
render() {
return <TeliaColorDot color="blue" withborder={true} />;
}
};
Gatsby.js provides official gatsby-plugin-stencil
plugin to support stencil.js web components in your Gatsby.js websites.
You can find more information about gatsby-plugin-stencil from offical Gatsby.js documentation.
In order to start using gatsby-plugin-stencil
, you need to install it into your Gatsby.js site, by running
npm install --save gatsby-plugin-stencil
or for yarn yarn add gatsby-plugin-stencil
.
Include gatsby-plugin-stencil
plugin into your gastsby-config.js
file inside of plugins array following settings:
module.exports = {
plugins: [
{
resolve: `gatsby-plugin-stencil`,
options: {
// The module of your components (required), eg "@ionic/core".
module: "@teliads/components",
// Stencil renderToString options (optional): https://stenciljs.com/docs/hydrate-app#configuration-options
renderToStringOptions: {
prettyHtml: true,
},
},
},
],
};
@teliads/components/react
folder.import * as React from "react"
import { TeliaColorDot } from '@teliads/components/react';
// markup
const IndexPage = () => {
return (
<main>
<TeliaColorDot color="green" withborder={true} />
</main>
)
}
export default IndexPage
FAQs
Global Design System component library
The npm package @tdstestingstuff/automate-release receives a total of 1 weekly downloads. As such, @tdstestingstuff/automate-release popularity was classified as not popular.
We found that @tdstestingstuff/automate-release demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.