@progressive-development/pd-content 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +5 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -1
- package/dist/pd-badge-order/DragController.d.ts +41 -0
- package/dist/pd-badge-order/DragController.d.ts.map +1 -0
- package/dist/pd-badge-order/DragController.js +239 -0
- package/dist/pd-badge-order/PdBadgeItem.d.ts +31 -0
- package/dist/pd-badge-order/PdBadgeItem.d.ts.map +1 -0
- package/dist/pd-badge-order/PdBadgeItem.js +320 -0
- package/dist/pd-badge-order/PdBadgeOrder.d.ts +68 -0
- package/dist/pd-badge-order/PdBadgeOrder.d.ts.map +1 -0
- package/dist/pd-badge-order/PdBadgeOrder.js +550 -0
- package/dist/pd-badge-order/flip-animator.d.ts +30 -0
- package/dist/pd-badge-order/flip-animator.d.ts.map +1 -0
- package/dist/pd-badge-order/flip-animator.js +39 -0
- package/dist/pd-badge-order/pd-badge-item.d.ts +3 -0
- package/dist/pd-badge-order/pd-badge-item.d.ts.map +1 -0
- package/dist/pd-badge-order/pd-badge-item.js +8 -0
- package/dist/pd-badge-order/pd-badge-order.d.ts +3 -0
- package/dist/pd-badge-order/pd-badge-order.d.ts.map +1 -0
- package/dist/pd-badge-order/types.d.ts +25 -0
- package/dist/pd-badge-order/types.d.ts.map +1 -0
- package/dist/pd-badge-order/types.js +3 -0
- package/dist/pd-badge-order.d.ts +2 -0
- package/dist/pd-badge-order.js +8 -0
- package/dist/pd-gallery/PdGallery.d.ts +72 -0
- package/dist/pd-gallery/PdGallery.d.ts.map +1 -0
- package/dist/pd-gallery/PdGallery.js +660 -0
- package/dist/pd-gallery/PdGalleryLightbox.d.ts +53 -0
- package/dist/pd-gallery/PdGalleryLightbox.d.ts.map +1 -0
- package/dist/pd-gallery/PdGalleryLightbox.js +530 -0
- package/dist/pd-gallery/index.d.ts +4 -0
- package/dist/pd-gallery/index.d.ts.map +1 -0
- package/dist/pd-gallery/pd-gallery-lightbox.d.ts +3 -0
- package/dist/pd-gallery/pd-gallery-lightbox.d.ts.map +1 -0
- package/dist/pd-gallery/pd-gallery.d.ts +3 -0
- package/dist/pd-gallery/pd-gallery.d.ts.map +1 -0
- package/dist/pd-gallery/types.d.ts +23 -0
- package/dist/pd-gallery/types.d.ts.map +1 -0
- package/dist/pd-gallery-lightbox.d.ts +2 -0
- package/dist/pd-gallery-lightbox.js +8 -0
- package/dist/pd-gallery.d.ts +2 -0
- package/dist/pd-gallery.js +8 -0
- package/dist/pd-loading-state/PdLoadingState.d.ts +25 -9
- package/dist/pd-loading-state/PdLoadingState.d.ts.map +1 -1
- package/dist/pd-loading-state/PdLoadingState.js +228 -83
- package/dist/pd-loading-state/pd-loading-state.d.ts.map +1 -1
- package/dist/pd-loading-state/pd-logo-loader.d.ts +25 -0
- package/dist/pd-loading-state/pd-logo-loader.d.ts.map +1 -0
- package/dist/pd-loading-state/pd-logo-loader.js +63 -0
- package/dist/pd-loading-state/register-pd-logo-loader.d.ts +6 -0
- package/dist/pd-loading-state/register-pd-logo-loader.d.ts.map +1 -0
- package/dist/pd-loading-state/register-pd-logo-loader.js +6 -0
- package/dist/pd-loading-state.js +8 -1
- package/dist/pd-panel-viewer/PdPanelViewer.d.ts.map +1 -1
- package/dist/pd-panel-viewer/PdPanelViewer.js +1 -1
- package/dist/types.d.ts +3 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +8 -3
- package/dist/pd-box-view/pd-box-view.stories.d.ts +0 -43
- package/dist/pd-box-view/pd-box-view.stories.d.ts.map +0 -1
- package/dist/pd-code-snippet/pd-code-snippet.stories.d.ts +0 -55
- package/dist/pd-code-snippet/pd-code-snippet.stories.d.ts.map +0 -1
- package/dist/pd-collapse/pd-collapse.stories.d.ts +0 -51
- package/dist/pd-collapse/pd-collapse.stories.d.ts.map +0 -1
- package/dist/pd-collapse-group/pd-collapse-group.stories.d.ts +0 -40
- package/dist/pd-collapse-group/pd-collapse-group.stories.d.ts.map +0 -1
- package/dist/pd-edit-content/pd-edit-content.stories.d.ts +0 -55
- package/dist/pd-edit-content/pd-edit-content.stories.d.ts.map +0 -1
- package/dist/pd-loading-state/pd-loading-state.stories.d.ts +0 -48
- package/dist/pd-loading-state/pd-loading-state.stories.d.ts.map +0 -1
- package/dist/pd-more-info/pd-more-info.stories.d.ts +0 -42
- package/dist/pd-more-info/pd-more-info.stories.d.ts.map +0 -1
- package/dist/pd-notice-box/pd-notice-box.stories.d.ts +0 -58
- package/dist/pd-notice-box/pd-notice-box.stories.d.ts.map +0 -1
- package/dist/pd-panel-viewer/pd-panel-viewer.stories.d.ts +0 -46
- package/dist/pd-panel-viewer/pd-panel-viewer.stories.d.ts.map +0 -1
- package/dist/pd-resize-content/pd-resize-content.stories.d.ts +0 -37
- package/dist/pd-resize-content/pd-resize-content.stories.d.ts.map +0 -1
- package/dist/pd-tab/pd-tab.stories.d.ts +0 -53
- package/dist/pd-tab/pd-tab.stories.d.ts.map +0 -1
- package/dist/pd-timeline/pd-timeline.stories.d.ts +0 -56
- package/dist/pd-timeline/pd-timeline.stories.d.ts.map +0 -1
- package/dist/pd-timeline-wizard/pd-timeline-wizard.stories.d.ts +0 -54
- package/dist/pd-timeline-wizard/pd-timeline-wizard.stories.d.ts.map +0 -1
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/web-components-vite';
|
|
2
|
-
import { CodeLanguage } from './PdCodeSnippet.js';
|
|
3
|
-
/**
|
|
4
|
-
* Story arguments interface for pd-code-snippet component.
|
|
5
|
-
* Maps to the component's public API.
|
|
6
|
-
*/
|
|
7
|
-
interface PdCodeSnippetArgs {
|
|
8
|
-
/** Title displayed in header */
|
|
9
|
-
title: string;
|
|
10
|
-
/** Programming language */
|
|
11
|
-
language: CodeLanguage;
|
|
12
|
-
/** Source URL */
|
|
13
|
-
url: string;
|
|
14
|
-
/** Code content */
|
|
15
|
-
code: string;
|
|
16
|
-
/** Show line numbers */
|
|
17
|
-
showLineNumbers: boolean;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* ## pd-code-snippet
|
|
21
|
-
*
|
|
22
|
-
* A code display component with syntax highlighting using Prism.js.
|
|
23
|
-
* Supports 11 languages plus plain text, with copy-to-clipboard, optional
|
|
24
|
-
* line numbers, and source URL display.
|
|
25
|
-
*
|
|
26
|
-
* ### Features
|
|
27
|
-
* - Syntax highlighting for JavaScript, TypeScript, HTML, CSS, JSON, Bash, YAML, Python, Java, SQL, Markdown
|
|
28
|
-
* - One-click copy to clipboard
|
|
29
|
-
* - Optional source URL link in footer
|
|
30
|
-
* - Optional line numbers
|
|
31
|
-
* - Code can be provided via `code` property or slot content
|
|
32
|
-
* - Extensive CSS Custom Properties for theming (colors, token colors, layout)
|
|
33
|
-
*
|
|
34
|
-
* ### Accessibility
|
|
35
|
-
* - Copy button has `aria-label="Copy code to clipboard"`
|
|
36
|
-
* - Focus-visible styling on the copy button for keyboard users
|
|
37
|
-
* - Line numbers are `aria-hidden="true"` (decorative)
|
|
38
|
-
* - Semantic HTML structure with `pre` and `code` elements
|
|
39
|
-
*/
|
|
40
|
-
declare const meta: Meta<PdCodeSnippetArgs>;
|
|
41
|
-
export default meta;
|
|
42
|
-
type Story = StoryObj<PdCodeSnippetArgs>;
|
|
43
|
-
/** Default JavaScript code snippet. Interactive via Controls panel. */
|
|
44
|
-
export declare const Default: Story;
|
|
45
|
-
/** TypeScript snippet with title, source URL, and line numbers. Shows all header/footer features. */
|
|
46
|
-
export declare const WithTitleAndUrl: Story;
|
|
47
|
-
/** Overview of all 11 supported programming languages plus plain text. */
|
|
48
|
-
export declare const AllLanguages: Story;
|
|
49
|
-
/** Line numbers enabled for longer code blocks. */
|
|
50
|
-
export declare const WithLineNumbers: Story;
|
|
51
|
-
/** Code provided via slot content instead of the code property. */
|
|
52
|
-
export declare const SlotContent: Story;
|
|
53
|
-
/** CSS Custom Properties -- Branded and Redesigned variants. */
|
|
54
|
-
export declare const CustomStyling: Story;
|
|
55
|
-
//# sourceMappingURL=pd-code-snippet.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pd-code-snippet.stories.d.ts","sourceRoot":"","sources":["../../src/pd-code-snippet/pd-code-snippet.stories.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAGrE,OAAO,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAMvD;;;GAGG;AACH,UAAU,iBAAiB;IACzB,gCAAgC;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,2BAA2B;IAC3B,QAAQ,EAAE,YAAY,CAAC;IACvB,iBAAiB;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,mBAAmB;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,wBAAwB;IACxB,eAAe,EAAE,OAAO,CAAC;CAC1B;AAMD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,iBAAiB,CA0EjC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,iBAAiB,CAAC,CAAC;AAMzC,uEAAuE;AACvE,eAAO,MAAM,OAAO,EAAE,KAQrB,CAAC;AAMF,qGAAqG;AACrG,eAAO,MAAM,eAAe,EAAE,KAwC7B,CAAC;AAMF,0EAA0E;AAC1E,eAAO,MAAM,YAAY,EAAE,KAsF1B,CAAC;AAMF,mDAAmD;AACnD,eAAO,MAAM,eAAe,EAAE,KAoC7B,CAAC;AAMF,mEAAmE;AACnE,eAAO,MAAM,WAAW,EAAE,KAoBzB,CAAC;AAMF,gEAAgE;AAChE,eAAO,MAAM,aAAa,EAAE,KA6G3B,CAAC"}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/web-components-vite';
|
|
2
|
-
/**
|
|
3
|
-
* Story arguments interface for pd-collapse component.
|
|
4
|
-
* Maps to the component's public API.
|
|
5
|
-
*/
|
|
6
|
-
interface PdCollapseArgs {
|
|
7
|
-
/** Whether the collapse starts in open state */
|
|
8
|
-
startOpen: boolean;
|
|
9
|
-
/** Header text content */
|
|
10
|
-
header: string;
|
|
11
|
-
/** Content text */
|
|
12
|
-
content: string;
|
|
13
|
-
/** Scroll content into view when opened */
|
|
14
|
-
scrollOnOpen: boolean;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* ## pd-collapse
|
|
18
|
-
*
|
|
19
|
-
* A collapsible accordion component with animated open/close transitions.
|
|
20
|
-
*
|
|
21
|
-
* ### Features
|
|
22
|
-
* - Smooth animated toggle with CSS transitions
|
|
23
|
-
* - Configurable toggle icon via `icon` property
|
|
24
|
-
* - `startOpen` for initial open state
|
|
25
|
-
* - `scrollOnOpen` to scroll content into view after opening
|
|
26
|
-
* - Header and content slots for flexible markup
|
|
27
|
-
* - Works standalone or inside `pd-collapse-group` for accordion behavior
|
|
28
|
-
* - CSS custom properties for full visual customization
|
|
29
|
-
*
|
|
30
|
-
* ### Accessibility
|
|
31
|
-
* - Header uses `role="button"` with `tabindex="0"`
|
|
32
|
-
* - `aria-expanded` reflects open/closed state
|
|
33
|
-
* - `aria-controls` links header to content region
|
|
34
|
-
* - Content area uses `role="region"` with `aria-hidden`
|
|
35
|
-
* - Keyboard: Tab to focus, Enter/Space to toggle
|
|
36
|
-
* - Visible focus ring for keyboard users
|
|
37
|
-
*/
|
|
38
|
-
declare const meta: Meta<PdCollapseArgs>;
|
|
39
|
-
export default meta;
|
|
40
|
-
type Story = StoryObj<PdCollapseArgs>;
|
|
41
|
-
/** Default closed collapse section. Interactive via Controls panel. */
|
|
42
|
-
export declare const Default: Story;
|
|
43
|
-
/** All collapse states at a glance: closed, open, and long header. */
|
|
44
|
-
export declare const AllStates: Story;
|
|
45
|
-
/** Collapse sections with scrollOnOpen enabled for auto-scrolling behavior. */
|
|
46
|
-
export declare const WithScrollOnOpen: Story;
|
|
47
|
-
/** Collapse with rich HTML content including headings, lists, and links. */
|
|
48
|
-
export declare const WithRichContent: Story;
|
|
49
|
-
/** CSS Custom Properties -- Branded and Redesigned variants. */
|
|
50
|
-
export declare const CustomStyling: Story;
|
|
51
|
-
//# sourceMappingURL=pd-collapse.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pd-collapse.stories.d.ts","sourceRoot":"","sources":["../../src/pd-collapse/pd-collapse.stories.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAGrE,OAAO,kBAAkB,CAAC;AAM1B;;;GAGG;AACH,UAAU,cAAc;IACtB,gDAAgD;IAChD,SAAS,EAAE,OAAO,CAAC;IACnB,0BAA0B;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,mBAAmB;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,2CAA2C;IAC3C,YAAY,EAAE,OAAO,CAAC;CACvB;AAMD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,cAAc,CAwE9B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,cAAc,CAAC,CAAC;AAMtC,uEAAuE;AACvE,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAC;AAMF,sEAAsE;AACtE,eAAO,MAAM,SAAS,EAAE,KA8CvB,CAAC;AAMF,+EAA+E;AAC/E,eAAO,MAAM,gBAAgB,EAAE,KAqE9B,CAAC;AAMF,4EAA4E;AAC5E,eAAO,MAAM,eAAe,EAAE,KAwB7B,CAAC;AAMF,gEAAgE;AAChE,eAAO,MAAM,aAAa,EAAE,KA6F3B,CAAC"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/web-components-vite';
|
|
2
|
-
/**
|
|
3
|
-
* Story arguments interface for pd-collapse-group component.
|
|
4
|
-
* Maps to the component's public API.
|
|
5
|
-
*/
|
|
6
|
-
interface PdCollapseGroupArgs {
|
|
7
|
-
/** Gap between collapse elements */
|
|
8
|
-
gap: string;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* ## pd-collapse-group
|
|
12
|
-
*
|
|
13
|
-
* A container that groups multiple pd-collapse elements with accordion behavior.
|
|
14
|
-
* Only one collapse can be open at a time -- opening one automatically closes the others.
|
|
15
|
-
*
|
|
16
|
-
* ### Features
|
|
17
|
-
* - Accordion mode: only one collapse open at a time
|
|
18
|
-
* - Automatic registration of child pd-collapse elements
|
|
19
|
-
* - Configurable gap spacing via `--pd-collapse-group-gap`
|
|
20
|
-
* - CSS part `container` for external styling
|
|
21
|
-
*
|
|
22
|
-
* ### Accessibility
|
|
23
|
-
* - Inherits keyboard behavior from child pd-collapse elements
|
|
24
|
-
* - Each child collapse provides its own ARIA attributes
|
|
25
|
-
* - Accordion pattern: closing previous section when opening a new one
|
|
26
|
-
*/
|
|
27
|
-
declare const meta: Meta<PdCollapseGroupArgs>;
|
|
28
|
-
export default meta;
|
|
29
|
-
type Story = StoryObj<PdCollapseGroupArgs>;
|
|
30
|
-
/** Default collapse group with accordion behavior. Opening one section closes others. */
|
|
31
|
-
export declare const Default: Story;
|
|
32
|
-
/** All sections initially closed -- no startOpen attribute on any child. */
|
|
33
|
-
export declare const AllClosed: Story;
|
|
34
|
-
/** Collapse group with rich HTML content in each section. */
|
|
35
|
-
export declare const WithRichContent: Story;
|
|
36
|
-
/** Different gap spacings side by side: tight (0px) vs. spacious (1.5rem). */
|
|
37
|
-
export declare const CustomGap: Story;
|
|
38
|
-
/** CSS Custom Properties -- Branded and Redesigned variants. */
|
|
39
|
-
export declare const CustomStyling: Story;
|
|
40
|
-
//# sourceMappingURL=pd-collapse-group.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pd-collapse-group.stories.d.ts","sourceRoot":"","sources":["../../src/pd-collapse-group/pd-collapse-group.stories.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAGrE,OAAO,wBAAwB,CAAC;AAChC,OAAO,+BAA+B,CAAC;AAMvC;;;GAGG;AACH,UAAU,mBAAmB;IAC3B,oCAAoC;IACpC,GAAG,EAAE,MAAM,CAAC;CACb;AAMD;;;;;;;;;;;;;;;;GAgBG;AACH,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,mBAAmB,CAkCnC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,mBAAmB,CAAC,CAAC;AAM3C,yFAAyF;AACzF,eAAO,MAAM,OAAO,EAAE,KA0BrB,CAAC;AAMF,4EAA4E;AAC5E,eAAO,MAAM,SAAS,EAAE,KA6BvB,CAAC;AAMF,6DAA6D;AAC7D,eAAO,MAAM,eAAe,EAAE,KA+C7B,CAAC;AAMF,8EAA8E;AAC9E,eAAO,MAAM,SAAS,EAAE,KA2DvB,CAAC;AAMF,gEAAgE;AAChE,eAAO,MAAM,aAAa,EAAE,KA2G3B,CAAC"}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/web-components-vite';
|
|
2
|
-
import { PdEditContentDataEntry, PdEditLink } from '../types.js';
|
|
3
|
-
/**
|
|
4
|
-
* Story arguments interface for pd-edit-content component.
|
|
5
|
-
* Maps to the component's public API.
|
|
6
|
-
*/
|
|
7
|
-
interface PdEditContentArgs {
|
|
8
|
-
/** Step number displayed in circle (optional) */
|
|
9
|
-
stepNumber?: number;
|
|
10
|
-
/** Title of the content section */
|
|
11
|
-
contentTitle: string;
|
|
12
|
-
/** Data entries to display as label-value pairs */
|
|
13
|
-
data: PdEditContentDataEntry[];
|
|
14
|
-
/** Edit links displayed below the content */
|
|
15
|
-
editLinks: PdEditLink[];
|
|
16
|
-
/** Whether the main edit button is disabled */
|
|
17
|
-
editDisabled: boolean;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* ## pd-edit-content
|
|
21
|
-
*
|
|
22
|
-
* A content card component for displaying editable data sections, commonly used in wizard flows.
|
|
23
|
-
*
|
|
24
|
-
* ### Features
|
|
25
|
-
* - Optional numbered step badge for wizard flows
|
|
26
|
-
* - Data display as label-value pairs from a data array
|
|
27
|
-
* - Configurable edit action links with icons
|
|
28
|
-
* - Default slot for custom additional content
|
|
29
|
-
* - Edit control: can disable all editing entirely
|
|
30
|
-
* - Localized "Edit" label via `@lit/localize`
|
|
31
|
-
*
|
|
32
|
-
* ### Accessibility
|
|
33
|
-
* - Edit links use `role="button"` with `tabindex="0"` and respond to Enter/Space
|
|
34
|
-
* - Focus-visible outline on focused interactive elements
|
|
35
|
-
* - Decorative edit icons have `aria-hidden="true"`
|
|
36
|
-
* - Step number badge provides visual context for wizard flows
|
|
37
|
-
*/
|
|
38
|
-
declare const meta: Meta<PdEditContentArgs>;
|
|
39
|
-
export default meta;
|
|
40
|
-
type Story = StoryObj<PdEditContentArgs>;
|
|
41
|
-
/** Default edit-content with step number and data. Interactive via Controls panel. */
|
|
42
|
-
export declare const Default: Story;
|
|
43
|
-
/** All edit-content configurations at a glance. */
|
|
44
|
-
export declare const AllVariants: Story;
|
|
45
|
-
/** Edit-content with additional action links below the data. */
|
|
46
|
-
export declare const WithEditLinks: Story;
|
|
47
|
-
/** Edit-content with custom HTML provided via the default slot. */
|
|
48
|
-
export declare const WithSlotContent: Story;
|
|
49
|
-
/** Multiple edit-content cards arranged in a pd-box-view grid. */
|
|
50
|
-
export declare const InGridLayout: Story;
|
|
51
|
-
/** Sequential numbered step cards for wizard flows. */
|
|
52
|
-
export declare const NumberedSteps: Story;
|
|
53
|
-
/** CSS Custom Properties -- Branded and Redesigned variants. */
|
|
54
|
-
export declare const CustomStyling: Story;
|
|
55
|
-
//# sourceMappingURL=pd-edit-content.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pd-edit-content.stories.d.ts","sourceRoot":"","sources":["../../src/pd-edit-content/pd-edit-content.stories.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAGrE,OAAO,KAAK,EAAE,sBAAsB,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEtE,OAAO,sBAAsB,CAAC;AAC9B,OAAO,+BAA+B,CAAC;AAMvC;;;GAGG;AACH,UAAU,iBAAiB;IACzB,iDAAiD;IACjD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,mCAAmC;IACnC,YAAY,EAAE,MAAM,CAAC;IACrB,mDAAmD;IACnD,IAAI,EAAE,sBAAsB,EAAE,CAAC;IAC/B,6CAA6C;IAC7C,SAAS,EAAE,UAAU,EAAE,CAAC;IACxB,+CAA+C;IAC/C,YAAY,EAAE,OAAO,CAAC;CACvB;AAqBD;;;;;;;;;;;;;;;;;;GAkBG;AACH,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,iBAAiB,CAqFjC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,iBAAiB,CAAC,CAAC;AAMzC,sFAAsF;AACtF,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC;AAMF,mDAAmD;AACnD,eAAO,MAAM,WAAW,EAAE,KA2DzB,CAAC;AAMF,gEAAgE;AAChE,eAAO,MAAM,aAAa,EAAE,KAqB3B,CAAC;AAMF,mEAAmE;AACnE,eAAO,MAAM,eAAe,EAAE,KAqC7B,CAAC;AAMF,kEAAkE;AAClE,eAAO,MAAM,YAAY,EAAE,KAgD1B,CAAC;AAMF,uDAAuD;AACvD,eAAO,MAAM,aAAa,EAAE,KA8B3B,CAAC;AAMF,gEAAgE;AAChE,eAAO,MAAM,aAAa,EAAE,KA2E3B,CAAC"}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/web-components-vite';
|
|
2
|
-
import { LoadingState } from './PdLoadingState.js';
|
|
3
|
-
/**
|
|
4
|
-
* Story arguments interface for pd-loading-state component.
|
|
5
|
-
* Maps to the component's public API.
|
|
6
|
-
*/
|
|
7
|
-
interface PdLoadingStateArgs {
|
|
8
|
-
/** Loading state configuration */
|
|
9
|
-
loadingState: LoadingState;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* ## pd-loading-state
|
|
13
|
-
*
|
|
14
|
-
* A loading state indicator component with multiple display modes for different
|
|
15
|
-
* use cases: modal overlay, centered inline, and background sync.
|
|
16
|
-
*
|
|
17
|
-
* ### Features
|
|
18
|
-
* - Modal mode: fullscreen overlay blocking user interaction
|
|
19
|
-
* - Background mode: small indicator in bottom-right corner
|
|
20
|
-
* - Centered mode: centered without overlay for inline loading
|
|
21
|
-
* - Sub-task progress tracking with completion states
|
|
22
|
-
* - Custom loading messages
|
|
23
|
-
* - CSS Custom Properties for full theming
|
|
24
|
-
*
|
|
25
|
-
* ### Accessibility
|
|
26
|
-
* - Uses `role="dialog"` with `aria-modal` and `aria-busy` for modal mode
|
|
27
|
-
* - Content area uses `role="status"` with `aria-live="polite"` for announcements
|
|
28
|
-
* - Spinner uses `role="progressbar"` with `aria-label`
|
|
29
|
-
* - Screen readers announce loading messages and sub-task status changes
|
|
30
|
-
*/
|
|
31
|
-
declare const meta: Meta<PdLoadingStateArgs>;
|
|
32
|
-
export default meta;
|
|
33
|
-
type Story = StoryObj<PdLoadingStateArgs>;
|
|
34
|
-
/** Default modal loading state with fullscreen overlay. */
|
|
35
|
-
export declare const Default: Story;
|
|
36
|
-
/** Modal loading state with a custom message. */
|
|
37
|
-
export declare const WithCustomMessage: Story;
|
|
38
|
-
/** Centered loading without modal overlay, useful for inline loading areas. */
|
|
39
|
-
export declare const CenteredNoModal: Story;
|
|
40
|
-
/** Small background indicator in bottom-right corner for non-blocking sync operations. */
|
|
41
|
-
export declare const BackgroundMode: Story;
|
|
42
|
-
/** Loading state with sub-task progress tracking. */
|
|
43
|
-
export declare const WithSubTasks: Story;
|
|
44
|
-
/** All non-modal loading state variants side by side. Modal variant excluded as it covers the entire viewport. */
|
|
45
|
-
export declare const AllVariants: Story;
|
|
46
|
-
/** CSS Custom Properties -- Branded and Redesigned variants. */
|
|
47
|
-
export declare const CustomStyling: Story;
|
|
48
|
-
//# sourceMappingURL=pd-loading-state.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pd-loading-state.stories.d.ts","sourceRoot":"","sources":["../../src/pd-loading-state/pd-loading-state.stories.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAGrE,OAAO,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAMxD;;;GAGG;AACH,UAAU,kBAAkB;IAC1B,kCAAkC;IAClC,YAAY,EAAE,YAAY,CAAC;CAC5B;AAMD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,kBAAkB,CA+ClC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,kBAAkB,CAAC,CAAC;AAM1C,2DAA2D;AAC3D,eAAO,MAAM,OAAO,EAAE,KAQrB,CAAC;AAMF,iDAAiD;AACjD,eAAO,MAAM,iBAAiB,EAAE,KAS/B,CAAC;AAMF,+EAA+E;AAC/E,eAAO,MAAM,eAAe,EAAE,KAwB7B,CAAC;AAMF,0FAA0F;AAC1F,eAAO,MAAM,cAAc,EAAE,KAkC5B,CAAC;AAMF,qDAAqD;AACrD,eAAO,MAAM,YAAY,EAAE,KAkD1B,CAAC;AAMF,kHAAkH;AAClH,eAAO,MAAM,WAAW,EAAE,KA6FzB,CAAC;AAMF,gEAAgE;AAChE,eAAO,MAAM,aAAa,EAAE,KA0H3B,CAAC"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/web-components-vite';
|
|
2
|
-
/**
|
|
3
|
-
* Story arguments interface for pd-more-info component.
|
|
4
|
-
* Maps to the component's public API.
|
|
5
|
-
*/
|
|
6
|
-
interface PdMoreInfoArgs {
|
|
7
|
-
/** Short summary text shown initially */
|
|
8
|
-
shortText: string;
|
|
9
|
-
/** Extended text shown after clicking "More Info" */
|
|
10
|
-
longText: string;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* ## pd-more-info
|
|
14
|
-
*
|
|
15
|
-
* A component that displays a compact summary with an expandable detailed view.
|
|
16
|
-
*
|
|
17
|
-
* ### Features
|
|
18
|
-
* - Expandable content: toggle between short (`small-view`) and long (`large-view`) view
|
|
19
|
-
* - Localized toggle labels ("Mehr Informationen" / "Text ausblenden") via `@lit/localize`
|
|
20
|
-
* - Smooth auto-scroll back to component when collapsing on mobile
|
|
21
|
-
* - Accepts any HTML in both slot views for rich content
|
|
22
|
-
*
|
|
23
|
-
* ### Accessibility
|
|
24
|
-
* - Toggle links use `role="button"` with `tabindex="0"`
|
|
25
|
-
* - Full keyboard support: Tab to focus, Enter/Space to toggle
|
|
26
|
-
* - Focus-visible outline on toggle link
|
|
27
|
-
* - Auto-scroll on collapse ensures the component stays visible
|
|
28
|
-
*/
|
|
29
|
-
declare const meta: Meta<PdMoreInfoArgs>;
|
|
30
|
-
export default meta;
|
|
31
|
-
type Story = StoryObj<PdMoreInfoArgs>;
|
|
32
|
-
/** Default more-info with short and long content. Interactive via Controls panel. */
|
|
33
|
-
export declare const Default: Story;
|
|
34
|
-
/** More-info with structured HTML in the expanded view. */
|
|
35
|
-
export declare const WithRichContent: Story;
|
|
36
|
-
/** More-info embedded within surrounding paragraph content. */
|
|
37
|
-
export declare const InContext: Story;
|
|
38
|
-
/** Content length variations from short to long. */
|
|
39
|
-
export declare const AllVariants: Story;
|
|
40
|
-
/** CSS Custom Properties -- Branded and Redesigned variants. */
|
|
41
|
-
export declare const CustomStyling: Story;
|
|
42
|
-
//# sourceMappingURL=pd-more-info.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pd-more-info.stories.d.ts","sourceRoot":"","sources":["../../src/pd-more-info/pd-more-info.stories.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAGrE,OAAO,mBAAmB,CAAC;AAM3B;;;GAGG;AACH,UAAU,cAAc;IACtB,yCAAyC;IACzC,SAAS,EAAE,MAAM,CAAC;IAClB,qDAAqD;IACrD,QAAQ,EAAE,MAAM,CAAC;CAClB;AAMD;;;;;;;;;;;;;;;;GAgBG;AACH,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,cAAc,CAkE9B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,cAAc,CAAC,CAAC;AAMtC,qFAAqF;AACrF,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAMjC,2DAA2D;AAC3D,eAAO,MAAM,eAAe,EAAE,KAmC7B,CAAC;AAMF,+DAA+D;AAC/D,eAAO,MAAM,SAAS,EAAE,KAqDvB,CAAC;AAMF,oDAAoD;AACpD,eAAO,MAAM,WAAW,EAAE,KAuEzB,CAAC;AAMF,gEAAgE;AAChE,eAAO,MAAM,aAAa,EAAE,KAoF3B,CAAC"}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/web-components-vite';
|
|
2
|
-
import { NoticeType, NoticeVariant } from '../types.js';
|
|
3
|
-
/**
|
|
4
|
-
* Story arguments interface for pd-notice-box component.
|
|
5
|
-
* Maps to the component's public API.
|
|
6
|
-
*/
|
|
7
|
-
interface PdNoticeBoxArgs {
|
|
8
|
-
/** Notice type */
|
|
9
|
-
type: NoticeType;
|
|
10
|
-
/** Visual variant */
|
|
11
|
-
variant: NoticeVariant;
|
|
12
|
-
/** Title text */
|
|
13
|
-
title: string;
|
|
14
|
-
/** Custom icon (optional) */
|
|
15
|
-
icon: string;
|
|
16
|
-
/** Hide icon */
|
|
17
|
-
hideIcon: boolean;
|
|
18
|
-
/** Content text */
|
|
19
|
-
content: string;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* ## pd-notice-box
|
|
23
|
-
*
|
|
24
|
-
* A notice box component for displaying contextual messages like
|
|
25
|
-
* informational notes, warnings, errors, and success messages.
|
|
26
|
-
*
|
|
27
|
-
* ### Features
|
|
28
|
-
* - Five notice types: info, note, success, warning, error
|
|
29
|
-
* - Two visual variants: box (with icon and background) or sidebar (minimal with left border)
|
|
30
|
-
* - Customizable icons: override default icons or hide them completely
|
|
31
|
-
* - Rich HTML content support via default slot
|
|
32
|
-
* - Full theme support with extensive CSS Custom Properties
|
|
33
|
-
*
|
|
34
|
-
* ### Accessibility
|
|
35
|
-
* - Uses `role="note"` for semantic meaning
|
|
36
|
-
* - `aria-label` announces the notice type (e.g. "warning notice")
|
|
37
|
-
* - Icons are `aria-hidden="true"` (decorative only)
|
|
38
|
-
* - Color contrast meets WCAG AA standards
|
|
39
|
-
* - Types are distinguishable by icon and text, not just color
|
|
40
|
-
*/
|
|
41
|
-
declare const meta: Meta<PdNoticeBoxArgs>;
|
|
42
|
-
export default meta;
|
|
43
|
-
type Story = StoryObj<PdNoticeBoxArgs>;
|
|
44
|
-
/** Default info notice with box variant. Interactive via Controls panel. */
|
|
45
|
-
export declare const Default: Story;
|
|
46
|
-
/** All five notice types with box variant at a glance. */
|
|
47
|
-
export declare const AllTypesBox: Story;
|
|
48
|
-
/** All five notice types with sidebar variant. Minimal styling with colored left border. */
|
|
49
|
-
export declare const AllTypesSidebar: Story;
|
|
50
|
-
/** Side-by-side comparison of box and sidebar variants. */
|
|
51
|
-
export declare const VariantComparison: Story;
|
|
52
|
-
/** Icon customization: default icon, custom icon, and no icon. */
|
|
53
|
-
export declare const IconOptions: Story;
|
|
54
|
-
/** Notice box with rich HTML content including lists, code, and links. */
|
|
55
|
-
export declare const RichContent: Story;
|
|
56
|
-
/** CSS Custom Properties -- Branded and Redesigned variants. */
|
|
57
|
-
export declare const CustomStyling: Story;
|
|
58
|
-
//# sourceMappingURL=pd-notice-box.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pd-notice-box.stories.d.ts","sourceRoot":"","sources":["../../src/pd-notice-box/pd-notice-box.stories.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAGrE,OAAO,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAM7D;;;GAGG;AACH,UAAU,eAAe;IACvB,kBAAkB;IAClB,IAAI,EAAE,UAAU,CAAC;IACjB,qBAAqB;IACrB,OAAO,EAAE,aAAa,CAAC;IACvB,iBAAiB;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,6BAA6B;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,gBAAgB;IAChB,QAAQ,EAAE,OAAO,CAAC;IAClB,mBAAmB;IACnB,OAAO,EAAE,MAAM,CAAC;CACjB;AAMD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,eAAe,CAiE/B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,eAAe,CAAC,CAAC;AAMvC,4EAA4E;AAC5E,eAAO,MAAM,OAAO,EAAE,KAOrB,CAAC;AAMF,0DAA0D;AAC1D,eAAO,MAAM,WAAW,EAAE,KAkCzB,CAAC;AAMF,4FAA4F;AAC5F,eAAO,MAAM,eAAe,EAAE,KAuC7B,CAAC;AAMF,2DAA2D;AAC3D,eAAO,MAAM,iBAAiB,EAAE,KA0C/B,CAAC;AAMF,kEAAkE;AAClE,eAAO,MAAM,WAAW,EAAE,KA6CzB,CAAC;AAMF,0EAA0E;AAC1E,eAAO,MAAM,WAAW,EAAE,KA8BzB,CAAC;AAMF,gEAAgE;AAChE,eAAO,MAAM,aAAa,EAAE,KAqG3B,CAAC"}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/web-components-vite';
|
|
2
|
-
/**
|
|
3
|
-
* Story arguments interface for pd-panel-viewer component.
|
|
4
|
-
* Maps to the component's public API.
|
|
5
|
-
*/
|
|
6
|
-
interface PdPanelViewerArgs {
|
|
7
|
-
/** Show progress indicator bar below the panels */
|
|
8
|
-
withProgress: boolean;
|
|
9
|
-
/** Swipe sensitivity divisor (higher = less sensitive) */
|
|
10
|
-
deltaCalc: number;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* ## pd-panel-viewer
|
|
14
|
-
*
|
|
15
|
-
* A carousel/slider component for displaying panels with swipe gestures and navigation arrows.
|
|
16
|
-
*
|
|
17
|
-
* ### Features
|
|
18
|
-
* - Swipe navigation via pointer events (touch and mouse)
|
|
19
|
-
* - Previous/next arrow buttons for navigation
|
|
20
|
-
* - Optional progress indicator bar with clickable segments
|
|
21
|
-
* - Smooth CSS transitions with scale effects
|
|
22
|
-
* - Configurable swipe sensitivity via `deltaCalc`
|
|
23
|
-
* - Responsive layout adapting to container width
|
|
24
|
-
* - `entered` and `exited` events dispatched on child panels
|
|
25
|
-
*
|
|
26
|
-
* ### Accessibility
|
|
27
|
-
* - Container uses `role="region"` with `aria-roledescription="carousel"`
|
|
28
|
-
* - Navigation arrows: `role="button"`, `tabindex="0"`, localized `aria-label`
|
|
29
|
-
* - Progress indicator: `role="tablist"` with `role="tab"` on each segment
|
|
30
|
-
* - `aria-live="polite"` announces panel changes to screen readers
|
|
31
|
-
* - Keyboard: Tab between arrows/progress, Enter/Space to activate, Arrow keys on progress tabs
|
|
32
|
-
*/
|
|
33
|
-
declare const meta: Meta<PdPanelViewerArgs>;
|
|
34
|
-
export default meta;
|
|
35
|
-
type Story = StoryObj<PdPanelViewerArgs>;
|
|
36
|
-
/** Default panel viewer with progress indicator. Interactive via Controls panel. */
|
|
37
|
-
export declare const Default: Story;
|
|
38
|
-
/** Visual comparison: with progress, without progress, and compact size. */
|
|
39
|
-
export declare const AllVariants: Story;
|
|
40
|
-
/** Panel viewer with gradient content cards showing a realistic use case. */
|
|
41
|
-
export declare const ContentCards: Story;
|
|
42
|
-
/** Side-by-side comparison of high vs. low swipe sensitivity. */
|
|
43
|
-
export declare const SwipeSensitivity: Story;
|
|
44
|
-
/** CSS Custom Properties -- Branded and Redesigned variants. */
|
|
45
|
-
export declare const CustomStyling: Story;
|
|
46
|
-
//# sourceMappingURL=pd-panel-viewer.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pd-panel-viewer.stories.d.ts","sourceRoot":"","sources":["../../src/pd-panel-viewer/pd-panel-viewer.stories.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAGrE,OAAO,sBAAsB,CAAC;AAM9B;;;GAGG;AACH,UAAU,iBAAiB;IACzB,mDAAmD;IACnD,YAAY,EAAE,OAAO,CAAC;IACtB,0DAA0D;IAC1D,SAAS,EAAE,MAAM,CAAC;CACnB;AAkGD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,iBAAiB,CA+DjC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,iBAAiB,CAAC,CAAC;AAMzC,oFAAoF;AACpF,eAAO,MAAM,OAAO,EAAE,KAUrB,CAAC;AAMF,4EAA4E;AAC5E,eAAO,MAAM,WAAW,EAAE,KA0CzB,CAAC;AAMF,6EAA6E;AAC7E,eAAO,MAAM,YAAY,EAAE,KAkB1B,CAAC;AAMF,iEAAiE;AACjE,eAAO,MAAM,gBAAgB,EAAE,KA0C9B,CAAC;AAMF,gEAAgE;AAChE,eAAO,MAAM,aAAa,EAAE,KAyE3B,CAAC"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/web-components-vite';
|
|
2
|
-
/**
|
|
3
|
-
* Story arguments interface for pd-resize-content component.
|
|
4
|
-
* Maps to the component's public API.
|
|
5
|
-
*/
|
|
6
|
-
interface PdResizeContentArgs {
|
|
7
|
-
/** Minimum width threshold - below this, content shows in popup */
|
|
8
|
-
resizeWidth: string;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* ## pd-resize-content
|
|
12
|
-
*
|
|
13
|
-
* A responsive content component that switches between inline display and popup
|
|
14
|
-
* based on viewport width. Uses a native media query watcher for performance.
|
|
15
|
-
*
|
|
16
|
-
* ### Features
|
|
17
|
-
* - Responsive display: automatically switches between inline and popup
|
|
18
|
-
* - Configurable breakpoint via `resizeWidth` property
|
|
19
|
-
* - Media query based for optimal performance
|
|
20
|
-
* - Two slots: `resize-content` for full content, `preview-content` for popup trigger
|
|
21
|
-
* - Delegates to `pd-popup` when viewport is narrow
|
|
22
|
-
*
|
|
23
|
-
* ### Accessibility
|
|
24
|
-
* - Content remains accessible in both inline and popup modes
|
|
25
|
-
* - Popup mode inherits accessibility from `pd-popup` component
|
|
26
|
-
* - No keyboard traps; content is reachable via Tab navigation
|
|
27
|
-
*/
|
|
28
|
-
declare const meta: Meta<PdResizeContentArgs>;
|
|
29
|
-
export default meta;
|
|
30
|
-
type Story = StoryObj<PdResizeContentArgs>;
|
|
31
|
-
/** Default resize-content with 800px breakpoint. Resize the browser window to see the popup behavior. */
|
|
32
|
-
export declare const Default: Story;
|
|
33
|
-
/** All breakpoint sizes at a glance. Resize the browser to see each threshold in action. */
|
|
34
|
-
export declare const BreakpointComparison: Story;
|
|
35
|
-
/** Rich content like tables that benefit from responsive display. */
|
|
36
|
-
export declare const WithRichContent: Story;
|
|
37
|
-
//# sourceMappingURL=pd-resize-content.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pd-resize-content.stories.d.ts","sourceRoot":"","sources":["../../src/pd-resize-content/pd-resize-content.stories.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAGrE,OAAO,wBAAwB,CAAC;AAMhC;;;GAGG;AACH,UAAU,mBAAmB;IAC3B,mEAAmE;IACnE,WAAW,EAAE,MAAM,CAAC;CACrB;AAMD;;;;;;;;;;;;;;;;;GAiBG;AACH,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,mBAAmB,CAuDnC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,mBAAmB,CAAC,CAAC;AAM3C,yGAAyG;AACzG,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC;AAMF,4FAA4F;AAC5F,eAAO,MAAM,oBAAoB,EAAE,KA2DlC,CAAC;AAMF,qEAAqE;AACrE,eAAO,MAAM,eAAe,EAAE,KA0G7B,CAAC"}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/web-components-vite';
|
|
2
|
-
import { TabHeader } from '../types.js';
|
|
3
|
-
/**
|
|
4
|
-
* Story arguments interface for pd-tab component.
|
|
5
|
-
* Maps to the component's public API.
|
|
6
|
-
*/
|
|
7
|
-
interface PdTabArgs {
|
|
8
|
-
/** Array of tab header definitions */
|
|
9
|
-
tabs: TabHeader[];
|
|
10
|
-
/** Key of the initially active tab */
|
|
11
|
-
defaultTab: string;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* ## pd-tab
|
|
15
|
-
*
|
|
16
|
-
* A tab navigation component with header tabs and named content slots.
|
|
17
|
-
*
|
|
18
|
-
* ### Features
|
|
19
|
-
* - Dynamic tabs configured via the `tabs` property (array of TabHeader)
|
|
20
|
-
* - Responsive label switching: full label -> short label when space is limited
|
|
21
|
-
* - Optional icon per tab header via `pdIcon`
|
|
22
|
-
* - Disabled state for individual tabs
|
|
23
|
-
* - Named slots for each tab's content, matched by tab key
|
|
24
|
-
* - Full WAI-ARIA tabs pattern with keyboard navigation
|
|
25
|
-
*
|
|
26
|
-
* ### Accessibility
|
|
27
|
-
* - Tab container uses `role="tablist"`
|
|
28
|
-
* - Tab headers use `role="tab"` with `aria-selected` and `aria-controls`
|
|
29
|
-
* - Tab panels use `role="tabpanel"` with `aria-labelledby`
|
|
30
|
-
* - `aria-disabled` on disabled tabs
|
|
31
|
-
* - Arrow keys (horizontal + vertical), Home, and End for tab navigation
|
|
32
|
-
* - Disabled tabs are skipped during keyboard navigation
|
|
33
|
-
* - Visible focus indicator via `:focus-visible`
|
|
34
|
-
*/
|
|
35
|
-
declare const meta: Meta<PdTabArgs>;
|
|
36
|
-
export default meta;
|
|
37
|
-
type Story = StoryObj<PdTabArgs>;
|
|
38
|
-
/** Default tab component with three tabs. Interactive via Controls panel. */
|
|
39
|
-
export declare const Default: Story;
|
|
40
|
-
/** Overview of different tab configurations: default, disabled, short labels, and minimal. */
|
|
41
|
-
export declare const AllStates: Story;
|
|
42
|
-
/**
|
|
43
|
-
* Resizable container to test responsive label switching.
|
|
44
|
-
* Drag the right edge to resize and watch: Full Label -> Short Label.
|
|
45
|
-
*/
|
|
46
|
-
export declare const ResponsiveCascade: Story;
|
|
47
|
-
/** Behavior with six tabs in the navigation bar. */
|
|
48
|
-
export declare const ManyTabs: Story;
|
|
49
|
-
/** Tabs with rich content including lists and tables. */
|
|
50
|
-
export declare const WithRichContent: Story;
|
|
51
|
-
/** CSS Custom Properties -- Branded and Redesigned variants. */
|
|
52
|
-
export declare const CustomStyling: Story;
|
|
53
|
-
//# sourceMappingURL=pd-tab.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pd-tab.stories.d.ts","sourceRoot":"","sources":["../../src/pd-tab/pd-tab.stories.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAGrE,OAAO,aAAa,CAAC;AACrB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAM7C;;;GAGG;AACH,UAAU,SAAS;IACjB,sCAAsC;IACtC,IAAI,EAAE,SAAS,EAAE,CAAC;IAClB,sCAAsC;IACtC,UAAU,EAAE,MAAM,CAAC;CACpB;AAqCD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,SAAS,CA4DzB,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,SAAS,CAAC,CAAC;AAMjC,6EAA6E;AAC7E,eAAO,MAAM,OAAO,EAAE,KAiBrB,CAAC;AAMF,8FAA8F;AAC9F,eAAO,MAAM,SAAS,EAAE,KAkDvB,CAAC;AAMF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,EAAE,KA0B/B,CAAC;AAMF,oDAAoD;AACpD,eAAO,MAAM,QAAQ,EAAE,KAuBtB,CAAC;AAMF,yDAAyD;AACzD,eAAO,MAAM,eAAe,EAAE,KAyE7B,CAAC;AAMF,gEAAgE;AAChE,eAAO,MAAM,aAAa,EAAE,KAkF3B,CAAC"}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/web-components-vite';
|
|
2
|
-
import { Orientation, PointItem } from '../types.js';
|
|
3
|
-
/**
|
|
4
|
-
* Story arguments interface for pd-timeline component.
|
|
5
|
-
* Maps to the component's public API.
|
|
6
|
-
*/
|
|
7
|
-
interface PdTimelineArgs {
|
|
8
|
-
/** Layout direction: 'horizontal' or 'vertical' */
|
|
9
|
-
orientation: Orientation;
|
|
10
|
-
/** Array of point definitions for the timeline */
|
|
11
|
-
points: PointItem[];
|
|
12
|
-
/** Index of the currently active step */
|
|
13
|
-
activeIndex: number;
|
|
14
|
-
/** Whether points are clickable */
|
|
15
|
-
clickable: boolean;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* ## pd-timeline
|
|
19
|
-
*
|
|
20
|
-
* A timeline/stepper component for displaying sequential steps or progress.
|
|
21
|
-
*
|
|
22
|
-
* ### Features
|
|
23
|
-
* - Two orientations: horizontal or vertical layout
|
|
24
|
-
* - State indication: points can show active, done, error, or default state
|
|
25
|
-
* - Clickable points with keyboard support for navigation
|
|
26
|
-
* - Slotted labels via named slots (`label-0`, `label-1`, etc.)
|
|
27
|
-
* - Flexible sizing via CSS custom properties
|
|
28
|
-
* - Vertical mode supports explicit height or container-based sizing
|
|
29
|
-
*
|
|
30
|
-
* ### Accessibility
|
|
31
|
-
* - Container uses `role="list"` with `aria-orientation`
|
|
32
|
-
* - Each point is a `role="listitem"` with `aria-setsize` and `aria-posinset`
|
|
33
|
-
* - Active step indicated via `aria-current="step"`
|
|
34
|
-
* - Clickable points use `role="button"` and `tabindex="0"`
|
|
35
|
-
* - Full keyboard support with Enter and Space keys
|
|
36
|
-
* - Clear `:focus-visible` outline on interactive points
|
|
37
|
-
* - State colors (done/active/error) have sufficient contrast
|
|
38
|
-
*/
|
|
39
|
-
declare const meta: Meta<PdTimelineArgs>;
|
|
40
|
-
export default meta;
|
|
41
|
-
type Story = StoryObj<PdTimelineArgs>;
|
|
42
|
-
/** Default horizontal timeline. Interactive via Controls panel. */
|
|
43
|
-
export declare const Default: Story;
|
|
44
|
-
/** Horizontal timeline with done, active, error, and default states. */
|
|
45
|
-
export declare const WithStates: Story;
|
|
46
|
-
/** Vertical timeline layout with labels positioned beside each point. */
|
|
47
|
-
export declare const Vertical: Story;
|
|
48
|
-
/** Vertical timeline constrained to a fixed-height container. */
|
|
49
|
-
export declare const VerticalInContainer: Story;
|
|
50
|
-
/** Display-only timeline without click interaction. */
|
|
51
|
-
export declare const NonClickable: Story;
|
|
52
|
-
/** Visual demonstration of all four individual point states. */
|
|
53
|
-
export declare const AllStates: Story;
|
|
54
|
-
/** CSS Custom Properties -- Branded and Redesigned variants. */
|
|
55
|
-
export declare const CustomStyling: Story;
|
|
56
|
-
//# sourceMappingURL=pd-timeline.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pd-timeline.stories.d.ts","sourceRoot":"","sources":["../../src/pd-timeline/pd-timeline.stories.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAGrE,OAAO,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAc,MAAM,aAAa,CAAC;AAMtE;;;GAGG;AACH,UAAU,cAAc;IACtB,mDAAmD;IACnD,WAAW,EAAE,WAAW,CAAC;IACzB,kDAAkD;IAClD,MAAM,EAAE,SAAS,EAAE,CAAC;IACpB,yCAAyC;IACzC,WAAW,EAAE,MAAM,CAAC;IACpB,mCAAmC;IACnC,SAAS,EAAE,OAAO,CAAC;CACpB;AAsCD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,cAAc,CAkG9B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,cAAc,CAAC,CAAC;AAMtC,mEAAmE;AACnE,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC;AAMF,wEAAwE;AACxE,eAAO,MAAM,UAAU,EAAE,KAqBxB,CAAC;AAMF,yEAAyE;AACzE,eAAO,MAAM,QAAQ,EAAE,KAiBtB,CAAC;AAMF,iEAAiE;AACjE,eAAO,MAAM,mBAAmB,EAAE,KA8BjC,CAAC;AAMF,uDAAuD;AACvD,eAAO,MAAM,YAAY,EAAE,KAc1B,CAAC;AAMF,gEAAgE;AAChE,eAAO,MAAM,SAAS,EAAE,KAwFvB,CAAC;AAMF,gEAAgE;AAChE,eAAO,MAAM,aAAa,EAAE,KA+F3B,CAAC"}
|