包详细信息

@pine-ds/doc-components

Kajabi1613.2.0

Pine documentation components

自述文件

Pine Doc Components

Background

We started off using Storybook to document our Stencil Web Components. With Stencil you have framework integrations or Output Targets, we were using React. Instead of having multiple versions of Storybook (WebComponents, React, etc), we elected to recreate the common components we used within Storybook (ArgsTable and Canvas).

Components

docArgsTable

The docArgsTable component can be used to show a static table of arg types for a given component as a way to document its interface.

Properties

name description
docSource The docs-json output type from Stencil. During compiliation Stencil will generate a JSON file with all of the components metadata. You can read more about docs-json here. It expects the components key.
componentName The name of the component to lookup.

docCanvas

The Canvas component is a wrapper, featuring a series of buttons to view the various Source snippets.

Properties

name description
mdxSource An object of key/value pairs. Each key will render a button that will show the source code.

How to use

docArgsTable

import { DocArgsTable } from '@pine-ds/doc-components';
import { components } from '../../../../dist/docs.json';

<DocArgsTable componentName='pds-radio' docSource={components} />

output Alt text

docCanvas

import { DocCanvas } from '@pine-ds/doc-components';

<DocCanvas mdxSource={{
  react: `<PdsRadio componentId="message1" label="Label" helperMessage="This is short message text." />`,
  webComponent: `<pds-radio component-id="message1" label="Label" helper-message="This is short message text." />`
}}>
  <pds-radio component-id="message1" label="Label" helper-message="This is short message text." />
</DocCanvas>

output

Default state Alt text

Active Tab Alt text

更新日志

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