Skip to content

Commit

Permalink
docs: missing jsdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
bennypowers committed Aug 19, 2024
1 parent ddd370e commit ad716c7
Show file tree
Hide file tree
Showing 6 changed files with 358 additions and 2 deletions.
18 changes: 16 additions & 2 deletions elements/pf-chip/pf-chip-group.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,22 @@ const REMAINING_RE = /\$\{\s*remaining\s*\}/g;
* @fires remove - Fires when chip group is closed/removed
* @slot category-name
* Category name text for chip group category. If this prop is supplied chip group with have a label and category styling applied
* @slot
* Should be <Chip> elements.
* @slot - `<pf-chip>` elements.
* @cssprop [--pf-c-chip-group__list--MarginBottom=calc(var(--pf-global--spacer--xs, 0.25rem) * -1)]
* @cssprop [--pf-c-chip-group__list--MarginRight=calc(var(--pf-global--spacer--xs, 0.25rem) * -1)]
* @cssprop [--pf-c-chip-group--m-category--PaddingTop=var(--pf-global--spacer--xs, 0.25rem)]
* @cssprop [--pf-c-chip-group--m-category--PaddingRight=var(--pf-global--spacer--xs, 0.25rem)]
* @cssprop [--pf-c-chip-group--m-category--PaddingBottom=var(--pf-global--spacer--xs, 0.25rem)]
* @cssprop [--pf-c-chip-group--m-category--PaddingLeft=var(--pf-global--spacer--sm, 0.5rem)]
* @cssprop [--pf-c-chip-group--m-category--BorderRadius=var(--pf-global--BorderRadius--sm, 3px)]
* @cssprop [--pf-c-chip-group--m-category--BackgroundColor=var(--pf-global--BackgroundColor--200, #f0f0f0)]
* @cssprop [--pf-c-chip-group__label--MarginRight=var(--pf-global--spacer--sm, 0.5rem)]
* @cssprop [--pf-c-chip-group__label--FontSize=var(--pf-global--FontSize--sm, 0.875rem)]
* @cssprop [--pf-c-chip-group__label--MaxWidth=18ch]
* @cssprop [--pf-c-chip-group__close--MarginTop=calc(var(--pf-global--spacer--xs, 0.25rem) * -1)]
* @cssprop [--pf-c-chip-group__close--MarginBottom=calc(var(--pf-global--spacer--xs, 0.25rem) * -1)]
* @cssprop [--pf-c-chip-group__list-item--MarginRight=var(--pf-global--spacer--xs, 0.25rem)]
* @cssprop [--pf-c-chip-group__list-item--MarginBottom=var(--pf-global--spacer--xs, 0.25rem)]
*/
@customElement('pf-chip-group')
export class PfChipGroup extends LitElement {
Expand Down
17 changes: 17 additions & 0 deletions elements/pf-chip/pf-chip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,23 @@ export class PfChipRemoveEvent extends Event {
* @slot
* chip text
* @csspart text - container for chip text
* @cssprop [--pf-c-chip--PaddingTop=var(--pf-global--spacer--xs, 0.25rem)]
* @cssprop [--pf-c-chip--PaddingRight=var(--pf-global--spacer--sm, 0.5rem)]
* @cssprop [--pf-c-chip--PaddingBottom=var(--pf-global--spacer--xs, 0.25rem)]
* @cssprop [--pf-c-chip--PaddingLeft=var(--pf-global--spacer--sm, 0.5rem)]
* @cssprop [--pf-c-chip--BackgroundColor=var(--pf-global--Color--light-100, #fff)]
* @cssprop [--pf-c-chip--BorderRadius=var(--pf-global--BorderRadius--sm, 3px)]
* @cssprop [--pf-c-chip--before--BorderColor=var(--pf-global--BorderColor--300, #f0f0f0)]
* @cssprop [--pf-c-chip--before--BorderWidth=var(--pf-global--BorderWidth--sm, 1px)]
* @cssprop [--pf-c-chip--before--BorderRadius=var(--pf-c-chip--BorderRadius)]
* @cssprop [--pf-c-chip--m-overflow__text--Color=var(--pf-global--primary-color--100, #06c)]
* @cssprop [--pf-c-chip--m-draggable--BackgroundColor=var(--pf-global--BackgroundColor--200, #f0f0f0)]
* @cssprop [--pf-c-chip--m-draggable--BoxShadow=var(--pf-global--BoxShadow--sm, 0 0.0625rem 0.125rem 0 rgba(3, 3, 3, 0.12), 0 0 0.125rem 0 rgba(3, 3, 3, 0.06))]
* @cssprop [--pf-c-chip--m-draggable__icon--FontSize=var(--pf-global--icon--FontSize--sm, 0.625rem)]
* @cssprop [--pf-c-chip__text--FontSize=var(--pf-global--FontSize--xs, 0.75rem)]
* @cssprop [--pf-c-chip__text--Color=var(--pf-global--Color--100, #151515)]
* @cssprop [--pf-c-chip__text--MaxWidth=16ch]
* @cssprop [--pf-c-chip__icon--MarginLeft=var(--pf-global--spacer--sm, 0.5rem)]
*/
@customElement('pf-chip')
export class PfChip extends LitElement {
Expand Down
25 changes: 25 additions & 0 deletions elements/pf-clipboard-copy/pf-clipboard-copy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,31 @@ export class PfClipboardCopyCopiedEvent extends Event {
* @slot - Place content to copy here, or use the `value` attribute
* @slot actions - Place additional action buttons here
* @fires {PfClipboardCopyCopiedEvent} copy - when the text snippet is successfully copied.
* @cssprop [--pf-c-clipboard-copy__toggle-icon--Transition=.2s ease-in 0s]
* @cssprop [--pf-c-clipboard-copy--m-expanded__toggle-icon--Rotate=90deg]
* @cssprop [--pf-c-clipboard-copy__expandable-content--PaddingTop=var(--pf-global--spacer--md, 1rem)]
* @cssprop [--pf-c-clipboard-copy__expandable-content--PaddingRight=var(--pf-global--spacer--md, 1rem)]
* @cssprop [--pf-c-clipboard-copy__expandable-content--PaddingBottom=var(--pf-global--spacer--md, 1rem)]
* @cssprop [--pf-c-clipboard-copy__expandable-content--PaddingLeft=var(--pf-global--spacer--md, 1rem)]
* @cssprop [--pf-c-clipboard-copy__expandable-content--BackgroundColor=var(--pf-global--BackgroundColor--light-100, #fff)]
* @cssprop [--pf-c-clipboard-copy__expandable-content--BorderTopWidth=0]
* @cssprop [--pf-c-clipboard-copy__expandable-content--BorderRightWidth=var(--pf-global--BorderWidth--sm, 1px)]
* @cssprop [--pf-c-clipboard-copy__expandable-content--BorderBottomWidth=var(--pf-global--BorderWidth--sm, 1px)]
* @cssprop [--pf-c-clipboard-copy__expandable-content--BorderLeftWidth=var(--pf-global--BorderWidth--sm, 1px)]
* @cssprop [--pf-c-clipboard-copy__expandable-content--BorderColor=var(--pf-global--BorderColor--100, #d2d2d2)]
* @cssprop [--pf-c-clipboard-copy__expandable-content--OutlineOffset=calc(-1 * var(--pf-global--spacer--xs, 0.25rem))]
* @cssprop [--pf-c-clipboard-copy--m-inline--PaddingTop=0]
* @cssprop [--pf-c-clipboard-copy--m-inline--PaddingBottom=0]
* @cssprop [--pf-c-clipboard-copy--m-inline--PaddingLeft=var(--pf-global--spacer--xs, 0.25rem)]
* @cssprop [--pf-c-clipboard-copy--m-inline--BackgroundColor=var(--pf-global--BackgroundColor--200, #f0f0f0)]
* @cssprop [--pf-c-clipboard-copy__text--m-code--FontFamily=var(--pf-global--FontFamily--monospace, "Liberation Mono", consolas, "SFMono-Regular", menlo, monaco, "Courier New", monospace)]
* @cssprop [--pf-c-clipboard-copy__text--m-code--FontSize=var(--pf-global--FontSize--sm, 0.875rem)]
* @cssprop [--pf-c-clipboard-copy__actions-item--MarginTop=calc(-1 * var(--pf-global--spacer--form-element, 0.375rem))]
* @cssprop [--pf-c-clipboard-copy__actions-item--MarginBottom=calc(-1 * var(--pf-global--spacer--form-element, 0.375rem))]
* @cssprop [--pf-c-clipboard-copy__actions-item--button--PaddingTop=var(--pf-global--spacer--xs, 0.25rem)]
* @cssprop [--pf-c-clipboard-copy__actions-item--button--PaddingRight=var(--pf-global--spacer--sm, 0.5rem)]
* @cssprop [--pf-c-clipboard-copy__actions-item--button--PaddingBottom=var(--pf-global--spacer--xs, 0.25rem)]
* @cssprop [--pf-c-clipboard-copy__actions-item--button--PaddingLeft=var(--pf-global--spacer--sm, 0.5rem)]
*/
@customElement('pf-clipboard-copy')
export class PfClipboardCopy extends LitElement {
Expand Down
29 changes: 29 additions & 0 deletions elements/pf-panel/pf-panel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,35 @@ import styles from './pf-panel.css';
* @slot header - Place header content here
* @slot - Place main content here
* @slot footer - Place footer content here
* @cssprop [--pf-c-panel--Width=auto]
* @cssprop [--pf-c-panel--MinWidth=auto]
* @cssprop [--pf-c-panel--MaxWidth=none]
* @cssprop [--pf-c-panel--ZIndex=auto]
* @cssprop [--pf-c-panel--BackgroundColor=var(--pf-global--BackgroundColor--100, #fff)]
* @cssprop [--pf-c-panel--BoxShadow=none]
* @cssprop [--pf-c-panel--before--BorderWidth=0]
* @cssprop [--pf-c-panel--before--BorderColor=var(--pf-global--BorderColor--100, #d2d2d2)]
* @cssprop [--pf-c-panel--m-bordered--before--BorderWidth=var(--pf-global--BorderWidth--sm, 1px)]
* @cssprop [--pf-c-panel--m-raised--BoxShadow=var(--pf-global--BoxShadow--md, 0 0.25rem 0.5rem 0rem rgba(3, 3, 3, 0.12), 0 0 0.25rem 0 rgba(3, 3, 3, 0.06))]
* @cssprop [--pf-c-panel--m-raised--ZIndex=var(--pf-global--ZIndex--sm, 200)]
* @cssprop [--pf-c-panel__header--PaddingTop=var(--pf-global--spacer--md, 1rem)]
* @cssprop [--pf-c-panel__header--PaddingRight=var(--pf-global--spacer--md, 1rem)]
* @cssprop [--pf-c-panel__header--PaddingBottom=var(--pf-global--spacer--md, 1rem)]
* @cssprop [--pf-c-panel__header--PaddingLeft=var(--pf-global--spacer--md, 1rem)]
* @cssprop [--pf-c-panel__main--MaxHeight=none]
* @cssprop [--pf-c-panel__main--Overflow=visible]
* @cssprop [--pf-c-panel__main-body--PaddingTop=var(--pf-global--spacer--md, 1rem)]
* @cssprop [--pf-c-panel__main-body--PaddingRight=var(--pf-global--spacer--md, 1rem)]
* @cssprop [--pf-c-panel__main-body--PaddingBottom=var(--pf-global--spacer--md, 1rem)]
* @cssprop [--pf-c-panel__main-body--PaddingLeft=var(--pf-global--spacer--md, 1rem)]
* @cssprop [--pf-c-panel__footer--PaddingTop=var(--pf-global--spacer--md, 1rem)]
* @cssprop [--pf-c-panel__footer--PaddingRight=var(--pf-global--spacer--md, 1rem)]
* @cssprop [--pf-c-panel__footer--PaddingBottom=var(--pf-global--spacer--md, 1rem)]
* @cssprop [--pf-c-panel__footer--PaddingLeft=var(--pf-global--spacer--md, 1rem)]
* @cssprop [--pf-c-panel__footer--BoxShadow=none]
* @cssprop [--pf-c-panel--m-scrollable__main--MaxHeight=18.75rem]
* @cssprop [--pf-c-panel--m-scrollable__main--Overflow=auto]
* @cssprop [--pf-c-panel--m-scrollable__footer--BoxShadow=0 -0.3125rem 0.25rem -0.25rem rgba(3, 3, 3, 0.16)]
*/
@customElement('pf-panel')
export class PfPanel extends LitElement {
Expand Down
Loading

0 comments on commit ad716c7

Please sign in to comment.