Détail du package

@pine-ds/core

Kajabi1.5kMIT3.2.0

Base components for Pine Design System

pine, stencil, framework, web components

readme

Built With Stencil

Stencil Component Starter

This is a starter project for building a standalone Web Component using Stencil.

Stencil is also great for building entire apps. For that, use the stencil-app-starter instead.

Stencil

Stencil is a compiler for building fast web apps using Web Components.

Stencil combines the best concepts of the most popular frontend frameworks into a compile-time rather than run-time tool. Stencil takes TypeScript, JSX, a tiny virtual DOM layer, efficient one-way data binding, an asynchronous rendering pipeline (similar to React Fiber), and lazy-loading out of the box, and generates 100% standards-based Web Components that run in any browser supporting the Custom Elements v1 spec.

Stencil components are just Web Components, so they work in any major framework or with no framework at all.

Getting Started

To start building a new web component using Stencil, clone this repo to a new directory:

git clone https://github.com/ionic-team/stencil-component-starter.git my-component
cd my-component
git remote rm origin

and run:

npm install
npm start

To build the component for production, run:

npm run build

To run the unit tests for the components, run:

npm test

Need help? Check out our docs here.

Naming Components

When creating new component tags, we recommend not using stencil in the component name (ex: <stencil-datepicker>). This is because the generated component has little to nothing to do with Stencil; it's just a web component!

Instead, use a prefix that fits your company or any name for a group of related components. For example, all of the Pine generated web components use the prefix pds.

Using this component

There are three strategies we recommend for using web components built with Stencil.

The first step for all three of these strategies is to publish to NPM.

Script tag

  • Put a script tag similar to this <script type='module' src='https://unpkg.com/my-component@0.0.1/dist/my-component.esm.js'></script> in the head of your index.html
  • Then you can use the element anywhere in your template, JSX, html etc

Node Modules

  • Run npm install my-component --save
  • Put a script tag similar to this <script type='module' src='node_modules/my-component/dist/my-component.esm.js'></script> in the head of your index.html
  • Then you can use the element anywhere in your template, JSX, html etc

In a stencil-starter app

  • Run npm install my-component --save
  • Add an import to the npm packages import my-component;
  • Then you can use the element anywhere in your template, JSX, html etc

changelog

3.2.0 (2025-06-06)

Features 🚀

  • link: adds color prop (#458)
  • pds-alert: new alert component (#452)
  • pds-dropdown: implementation (#455)
  • pds-toast: add pds-toast component (#462)

Bug Fixes 🐛

  • correct CSS variable naming in pds-box minWidth property (#466)
  • chip: updates a11y docs (#449)
  • pds-alert: remove description prop and use slot (#463)
  • pds-chip: correct React syntax in documentation examples (#465)
  • pds-modal: update closeonbackdropclick prop and auto generated file (#461)
  • pds-popover: adds missing -start and -end positioning (#454)

Documentation 📄

  • pds-box: improve responsive size prop documentation [DSS-1405] (#459)
  • pds-text: fix invalid color token in example (#464)

❤️ Thank You

  • Ashley E
  • Julian Skinner @ju-Skinner
  • Phillip Lovelace
  • Quinton Jason

3.1.0 (2025-05-09)

Features 🚀

  • pds-icon: add additional props for react pds icon (#443)

Bug Fixes 🐛

  • checkbox: fixes checkbox not using error message for aria-describedby attribute (#439)
  • switch: fixes component not using error message for aria-describedby attribute (#441)

Documentation 📄

  • accordion: adds description for accessibility (#446)
  • button: rewrites some accessibility info (#447)
  • popover: using template literals needed to include unsafeHTML from lit (#438)

Styles 🎨

  • update text alignment styles to logical (#448)
  • pds-link: add hover style to remove text decoration (#444)

❤️ Thank You

  • Ashley E
  • Julian Skinner @ju-Skinner
  • Phillip Lovelace

3.0.3 (2025-04-29)

This was a version bump only, there were no code changes.

3.0.2 (2025-04-29)

This was a version bump only, there were no code changes.

3.0.1 (2025-04-25)

Bug Fixes 🐛

  • add logical properties (#427)

Styles 🎨

  • update Divider styles (#432)
  • remove token studio (#434)
  • tokens: extended colors (#425)
  • typography: adds Noto font family for language support (#433)

❤️ Thank You

  • Ashley E
  • Julian Skinner @ju-Skinner
  • Phillip Lovelace
  • Quinton Jason

3.0.0 (2025-04-11)

Features 🚀

  • text: expands text color prop (#426)

Bug Fixes 🐛

  • box: directional margin and direction padding props (#412)
  • checkbox: update prop name from label hidden to hide label (#418)
  • ⚠️ chip: move value to slot (#364)
  • radio: add hide label prop (#414)
  • switch: add hide label prop (#417)

Styles 🎨

  • updates component focus rings (#413)
  • checkbox: resolve error message icon alignment and shrink (#422)
  • radio: resolve error message icon alignment (#423)
  • switch: resolve error message icon alignment and parent overflow (#424)

⚠️ Breaking Changes

  • ⚠️ chip: move value to slot (#364)

❤️ Thank You

  • Ashley E
  • Quinton Jason

2.17.0 (2025-03-31)

Features 🚀

  • adds more font size values and adds italics and truncate to docs table (#403)

Bug Fixes 🐛

  • fixes icon alignment (#405)
  • copy text hover and truncate adjustments (#406)
  • add padding-block padding-inline properties and align-self (#399)
  • button: add disabled styles to host (#411)
  • checkbox: label-hidden prop is not hiding label text (#407)
  • pds-copytext: correct full-width and truncated styles, update docs (#410)

Documentation 📄

  • adds semantic token pages and fixes token table styling (#400)

Styles 🎨

  • re-adds responsive image styling (#404)

❤️ Thank You

  • Ashley E
  • Phillip Lovelace
  • Quinton Jason

2.16.4 (2025-03-17)

Bug Fixes 🐛

  • radio: add inner shadow wrapper (#385)

Styles 🎨

  • update pill tabs styles (#390)
  • update box min height and border radius (#389)
  • add 125 token (#387)
  • changes from token studio after exporting styles (ec2a67a1)
  • add conditional label for input and select (#391)
  • add background color to form inputs (#401)
  • button: adjust flex to fix layout (#396)
  • button: update primary disabled color to be grey-150 (#397)
  • checkbox: resolve wrapping issue (#384)
  • tokens: add new styles for heading caption and body monospace (#395)

❤️ Thank You

  • Julian Skinner @ju-Skinner
  • Kajabi Automations Bot @dev-kjbot
  • Phillip Lovelace
  • Quinton Jason

2.16.3 (2025-02-28)

Bug Fixes 🐛

  • update input invalid state styles (#377)
  • removes unneeded label margin (#383)
  • button: full width and loading state (#380)

Styles 🎨

  • adds background color to secondary and disclosure buttons (#379)
  • box: update classes to use correct dimension tokens (#388)

❤️ Thank You

  • Ashley E
  • Julian Skinner @ju-Skinner
  • Phillip Lovelace
  • Quinton Jason

2.16.2 (2025-02-24)

Bug Fixes 🐛

  • switch: add margin inline start value (#376)

Styles 🎨

  • adds proper font styles to form elements (#375)
  • accordion: adjust summary colors (#374)

❤️ Thank You

  • Ashley E
  • Phillip Lovelace
  • Quinton Jason

2.16.1 (2025-02-21)

Bug Fixes 🐛

  • remove box min height (#373)
  • add pill variant (#368)

Styles 🎨

  • add pointer cursor (#363)
  • accordion: fix misspelling for summary padding (#372)

❤️ Thank You

  • Julian Skinner @ju-Skinner
  • Quinton Jason

2.16.0 (2025-02-19)

Features 🚀

  • docTokenTale: update to handle dimension tokens (#371)

❤️ Thank You

  • Julian Skinner @ju-Skinner

2.15.0 (2025-02-19)

Features 🚀

  • add additional events, pdsBlur, pdsInput, pdsChange to input and textarea (#370)

Bug Fixes 🐛

  • tooltip visibility issue on ios safari back navigation (#369)

Styles 🎨

  • fixes incorrect token for box padding-xs (#365)
  • adjust background color values for secondary and disclosure (#366)
  • tokens: new token sets for core, semantic, and branding (#318)

❤️ Thank You

  • Ashley E
  • Julian Skinner @ju-Skinner
  • Phillip Lovelace

2.14.0 (2025-02-03)

Features 🚀

  • pds-text: decoration prop for pds text (#362)

❤️ Thank You

  • Phillip Lovelace