@progressive-development/pd-forms 1.0.1 → 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/base/pd-base-ui-input.d.ts +6 -0
- package/dist/base/pd-base-ui-input.d.ts.map +1 -1
- package/dist/base/pd-base-ui-input.js +46 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -4
- package/dist/pd-button/PdButton.d.ts +8 -0
- package/dist/pd-button/PdButton.d.ts.map +1 -1
- package/dist/pd-button/PdButton.js +23 -0
- package/dist/pd-color-picker/PdColorPicker.d.ts +25 -0
- package/dist/pd-color-picker/PdColorPicker.d.ts.map +1 -0
- package/dist/pd-color-picker/PdColorPicker.js +238 -0
- package/dist/pd-color-picker/pd-color-picker.d.ts +3 -0
- package/dist/pd-color-picker/pd-color-picker.d.ts.map +1 -0
- package/dist/pd-color-picker.d.ts +2 -0
- package/dist/pd-color-picker.js +8 -0
- package/dist/pd-generic-form/PdGenericForm.d.ts +1 -0
- package/dist/pd-generic-form/PdGenericForm.d.ts.map +1 -1
- package/dist/pd-generic-form/PdGenericForm.js +12 -2
- package/dist/pd-generic-form/pd-generic-form.styles.d.ts.map +1 -1
- package/dist/pd-generic-form/pd-generic-form.styles.js +12 -5
- package/dist/pd-input-image/PdInputImage.d.ts +79 -0
- package/dist/pd-input-image/PdInputImage.d.ts.map +1 -0
- package/dist/pd-input-image/PdInputImage.js +553 -0
- package/dist/pd-input-image/pd-input-image.d.ts +4 -0
- package/dist/pd-input-image/pd-input-image.d.ts.map +1 -0
- package/dist/pd-input-image/pd-input-image.styles.d.ts +6 -0
- package/dist/pd-input-image/pd-input-image.styles.d.ts.map +1 -0
- package/dist/pd-input-image/pd-input-image.styles.js +300 -0
- package/dist/pd-input-image.d.ts +2 -0
- package/dist/pd-input-image.js +8 -0
- package/dist/pd-range/PdRange.d.ts +2 -0
- package/dist/pd-range/PdRange.d.ts.map +1 -1
- package/dist/pd-range/PdRange.js +11 -7
- package/package.json +6 -4
- package/dist/pd-button/pd-button.stories.d.ts +0 -84
- package/dist/pd-button/pd-button.stories.d.ts.map +0 -1
- package/dist/pd-button-group/pd-button-group.stories.d.ts +0 -45
- package/dist/pd-button-group/pd-button-group.stories.d.ts.map +0 -1
- package/dist/pd-button-select-group/pd-button-select-group.stories.d.ts +0 -46
- package/dist/pd-button-select-group/pd-button-select-group.stories.d.ts.map +0 -1
- package/dist/pd-checkbox/pd-checkbox.stories.d.ts +0 -45
- package/dist/pd-checkbox/pd-checkbox.stories.d.ts.map +0 -1
- package/dist/pd-form-container/pd-form-container.stories.d.ts +0 -49
- package/dist/pd-form-container/pd-form-container.stories.d.ts.map +0 -1
- package/dist/pd-form-field/pd-form-field.stories.d.ts +0 -40
- package/dist/pd-form-field/pd-form-field.stories.d.ts.map +0 -1
- package/dist/pd-form-fieldset/pd-form-fieldset.stories.d.ts +0 -38
- package/dist/pd-form-fieldset/pd-form-fieldset.stories.d.ts.map +0 -1
- package/dist/pd-form-row/pd-form-row.stories.d.ts +0 -43
- package/dist/pd-form-row/pd-form-row.stories.d.ts.map +0 -1
- package/dist/pd-generic-form/pd-generic-form.stories.d.ts +0 -35
- package/dist/pd-generic-form/pd-generic-form.stories.d.ts.map +0 -1
- package/dist/pd-hover-box/pd-hover-box.stories.d.ts +0 -31
- package/dist/pd-hover-box/pd-hover-box.stories.d.ts.map +0 -1
- package/dist/pd-input/pd-input.stories.d.ts +0 -73
- package/dist/pd-input/pd-input.stories.d.ts.map +0 -1
- package/dist/pd-input-area/pd-input-area.stories.d.ts +0 -67
- package/dist/pd-input-area/pd-input-area.stories.d.ts.map +0 -1
- package/dist/pd-input-file/pd-input-file.stories.d.ts +0 -53
- package/dist/pd-input-file/pd-input-file.stories.d.ts.map +0 -1
- package/dist/pd-input-time/pd-input-time.stories.d.ts +0 -94
- package/dist/pd-input-time/pd-input-time.stories.d.ts.map +0 -1
- package/dist/pd-panel-button/pd-panel-button.stories.d.ts +0 -57
- package/dist/pd-panel-button/pd-panel-button.stories.d.ts.map +0 -1
- package/dist/pd-radio-group/pd-radio-group.stories.d.ts +0 -39
- package/dist/pd-radio-group/pd-radio-group.stories.d.ts.map +0 -1
- package/dist/pd-range/pd-range.stories.d.ts +0 -51
- package/dist/pd-range/pd-range.stories.d.ts.map +0 -1
- package/dist/pd-select/pd-select.stories.d.ts +0 -58
- package/dist/pd-select/pd-select.stories.d.ts.map +0 -1
- package/dist/pd-suggestion-box/pd-suggestion-box.stories.d.ts +0 -79
- package/dist/pd-suggestion-box/pd-suggestion-box.stories.d.ts.map +0 -1
- package/dist/stories/pd-forms-overview.stories.d.ts +0 -48
- package/dist/stories/pd-forms-overview.stories.d.ts.map +0 -1
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/web-components-vite';
|
|
2
|
-
interface PdRadioGroupArgs {
|
|
3
|
-
label: string;
|
|
4
|
-
id: string;
|
|
5
|
-
valueName: string;
|
|
6
|
-
required: boolean;
|
|
7
|
-
direction: "row" | "column";
|
|
8
|
-
gap: string;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* ## pd-radio-group
|
|
12
|
-
*
|
|
13
|
-
* A radio group container for `pd-checkbox` elements with single-selection behavior.
|
|
14
|
-
*
|
|
15
|
-
* ### Features
|
|
16
|
-
* - **Single Selection**: Only one option can be selected at a time
|
|
17
|
-
* - **Flexible Layout**: Horizontal (row) or vertical (column) arrangement via CSS custom properties
|
|
18
|
-
* - **Form Integration**: Works with `pd-form-container` for validation
|
|
19
|
-
* - **Slot-based**: Uses slotted `pd-checkbox` elements as radio options
|
|
20
|
-
* - **Keyboard Navigation**: Arrow keys, Home/End for option cycling
|
|
21
|
-
*/
|
|
22
|
-
declare const meta: Meta<PdRadioGroupArgs>;
|
|
23
|
-
export default meta;
|
|
24
|
-
type Story = StoryObj<PdRadioGroupArgs>;
|
|
25
|
-
/** Default horizontal radio group with three options. Interactive via Controls panel. */
|
|
26
|
-
export declare const Default: Story;
|
|
27
|
-
/** All visual states at a glance: default, preselected, required, and with many options. */
|
|
28
|
-
export declare const AllVariants: Story;
|
|
29
|
-
/** Vertical (column) layout for longer option labels. */
|
|
30
|
-
export declare const VerticalLayout: Story;
|
|
31
|
-
/** Visual difference between radio-style (checkType="RADIO") and checkbox-style children. */
|
|
32
|
-
export declare const StyleComparison: Story;
|
|
33
|
-
/** Required radio group inside a form — triggers validation on button click. */
|
|
34
|
-
export declare const RequiredValidation: Story;
|
|
35
|
-
/** Real-world form pattern with multiple radio groups and submit action. */
|
|
36
|
-
export declare const CompleteFormExample: Story;
|
|
37
|
-
/** CSS Custom Properties — Branded and Redesigned variants. */
|
|
38
|
-
export declare const CustomStyling: Story;
|
|
39
|
-
//# sourceMappingURL=pd-radio-group.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pd-radio-group.stories.d.ts","sourceRoot":"","sources":["../../src/pd-radio-group/pd-radio-group.stories.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAErE,OAAO,+BAA+B,CAAC;AACvC,OAAO,qBAAqB,CAAC;AAC7B,OAAO,2CAA2C,CAAC;AACnD,OAAO,+BAA+B,CAAC;AACvC,OAAO,2BAA2B,CAAC;AAMnC,UAAU,gBAAgB;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,KAAK,GAAG,QAAQ,CAAC;IAC5B,GAAG,EAAE,MAAM,CAAC;CACb;AAMD;;;;;;;;;;;GAWG;AACH,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,gBAAgB,CA6EhC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,gBAAgB,CAAC,CAAC;AAMxC,yFAAyF;AACzF,eAAO,MAAM,OAAO,EAAE,KAoBrB,CAAC;AAMF,4FAA4F;AAC5F,eAAO,MAAM,WAAW,EAAE,KAoGzB,CAAC;AAMF,yDAAyD;AACzD,eAAO,MAAM,cAAc,EAAE,KAwB5B,CAAC;AAMF,6FAA6F;AAC7F,eAAO,MAAM,eAAe,EAAE,KAwC7B,CAAC;AAMF,gFAAgF;AAChF,eAAO,MAAM,kBAAkB,EAAE,KAoChC,CAAC;AAMF,4EAA4E;AAC5E,eAAO,MAAM,mBAAmB,EAAE,KAqFjC,CAAC;AAMF,+DAA+D;AAC/D,eAAO,MAAM,aAAa,EAAE,KAoH3B,CAAC"}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/web-components-vite';
|
|
2
|
-
interface PdRangeArgs {
|
|
3
|
-
label: string;
|
|
4
|
-
min: number;
|
|
5
|
-
max: number;
|
|
6
|
-
step: number;
|
|
7
|
-
initValue: string;
|
|
8
|
-
helperTxt: string;
|
|
9
|
-
disabled: boolean;
|
|
10
|
-
required: boolean;
|
|
11
|
-
optionValueMapper: Record<string, string>;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* ## pd-range
|
|
15
|
-
*
|
|
16
|
-
* A styled range slider for selecting numeric values with optional label mapping.
|
|
17
|
-
*
|
|
18
|
-
* ### Features
|
|
19
|
-
* - **Value Mapping**: Map numeric values to descriptive labels via `optionValueMapper`
|
|
20
|
-
* - **Custom Range**: Configurable min, max, and step values
|
|
21
|
-
* - **Visual Ticks**: Shows tick marks for each step on the slider
|
|
22
|
-
* - **Form Integration**: Works with `pd-form-container` for validation
|
|
23
|
-
*
|
|
24
|
-
* ### Accessibility
|
|
25
|
-
* - Native range input for keyboard navigation
|
|
26
|
-
* - Label displays current mapped value
|
|
27
|
-
* - Disabled state support
|
|
28
|
-
*
|
|
29
|
-
* ## Usage
|
|
30
|
-
* ```html
|
|
31
|
-
* <pd-range
|
|
32
|
-
* label="Satisfaction"
|
|
33
|
-
* min="1" max="5" initValue="3"
|
|
34
|
-
* .optionValueMapper=${{ 1: "Poor", 5: "Excellent" }}
|
|
35
|
-
* ></pd-range>
|
|
36
|
-
* ```
|
|
37
|
-
*/
|
|
38
|
-
declare const meta: Meta<PdRangeArgs>;
|
|
39
|
-
export default meta;
|
|
40
|
-
type Story = StoryObj<PdRangeArgs>;
|
|
41
|
-
/** Default range slider with value mapping. Interactive via Controls panel. */
|
|
42
|
-
export declare const Default: Story;
|
|
43
|
-
/** All range slider states at a glance: default, helper text, disabled, required. */
|
|
44
|
-
export declare const AllStates: Story;
|
|
45
|
-
/** Different value mappers and range configurations side by side. */
|
|
46
|
-
export declare const ValueMappers: Story;
|
|
47
|
-
/** Range slider within a pd-form-container for validation. */
|
|
48
|
-
export declare const FormIntegration: Story;
|
|
49
|
-
/** CSS Custom Properties -- Branded and Redesigned variants. */
|
|
50
|
-
export declare const CustomStyling: Story;
|
|
51
|
-
//# sourceMappingURL=pd-range.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pd-range.stories.d.ts","sourceRoot":"","sources":["../../src/pd-range/pd-range.stories.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAErE,OAAO,eAAe,CAAC;AACvB,OAAO,2CAA2C,CAAC;AACnD,OAAO,+BAA+B,CAAC;AAMvC,UAAU,WAAW;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC3C;AA8CD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,WAAW,CA2F3B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,WAAW,CAAC,CAAC;AAMnC,+EAA+E;AAC/E,eAAO,MAAM,OAAO,EAAE,KAoBrB,CAAC;AAMF,qFAAqF;AACrF,eAAO,MAAM,SAAS,EAAE,KAqEvB,CAAC;AAMF,qEAAqE;AACrE,eAAO,MAAM,YAAY,EAAE,KAkE1B,CAAC;AAMF,8DAA8D;AAC9D,eAAO,MAAM,eAAe,EAAE,KA8B7B,CAAC;AAMF,gEAAgE;AAChE,eAAO,MAAM,aAAa,EAAE,KA6F3B,CAAC"}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/web-components-vite';
|
|
2
|
-
import { PdSelectOption } from '../types.js';
|
|
3
|
-
/**
|
|
4
|
-
* Story arguments interface for pd-select component.
|
|
5
|
-
* Defines all configurable properties available in Storybook controls.
|
|
6
|
-
*/
|
|
7
|
-
interface PdSelectArgs {
|
|
8
|
-
/** Label text displayed above the select */
|
|
9
|
-
label: string;
|
|
10
|
-
/** Array of options to display in the select */
|
|
11
|
-
values: PdSelectOption[];
|
|
12
|
-
/** Initially selected value */
|
|
13
|
-
initValue: string;
|
|
14
|
-
/** Whether the select is disabled */
|
|
15
|
-
disabled: boolean;
|
|
16
|
-
/** Whether the select is read-only */
|
|
17
|
-
readonly: boolean;
|
|
18
|
-
/** Whether a selection is required */
|
|
19
|
-
required: boolean;
|
|
20
|
-
/** Helper text displayed below the select */
|
|
21
|
-
helperTxt: string;
|
|
22
|
-
/** Apply gradient background styling */
|
|
23
|
-
gradient: boolean;
|
|
24
|
-
/** The name attribute for form submission */
|
|
25
|
-
valueName: string;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* ## pd-select
|
|
29
|
-
*
|
|
30
|
-
* A styled select dropdown component for single-option selection.
|
|
31
|
-
*
|
|
32
|
-
* ### Features
|
|
33
|
-
* - **Native Select**: Uses native HTML select for accessibility and mobile support
|
|
34
|
-
* - **Custom Styling**: Styled dropdown arrow and consistent appearance across browsers
|
|
35
|
-
* - **Gradient Option**: Optional gradient background styling
|
|
36
|
-
* - **Form Integration**: Works with `pd-form-container` for validation
|
|
37
|
-
* - **Label Support**: Optional label with required indicator
|
|
38
|
-
* - **Helper Text**: Hover icon with additional information
|
|
39
|
-
*
|
|
40
|
-
* ### Accessibility
|
|
41
|
-
* - Native select element for full keyboard and screen reader support
|
|
42
|
-
* - Mobile-friendly with native picker on touch devices
|
|
43
|
-
* - Required field indication with asterisk
|
|
44
|
-
*/
|
|
45
|
-
declare const meta: Meta<PdSelectArgs>;
|
|
46
|
-
export default meta;
|
|
47
|
-
type Story = StoryObj<PdSelectArgs>;
|
|
48
|
-
/** Default select with label. Interactive via Controls panel. */
|
|
49
|
-
export declare const Default: Story;
|
|
50
|
-
/** All select states at a glance. */
|
|
51
|
-
export declare const AllVariants: Story;
|
|
52
|
-
/** Required select with form validation — demonstrates error state on empty submit. */
|
|
53
|
-
export declare const RequiredValidation: Story;
|
|
54
|
-
/** Select with many options — demonstrates native scroll behavior. */
|
|
55
|
-
export declare const ManyOptions: Story;
|
|
56
|
-
/** CSS Custom Properties — Branded and Redesigned variants. */
|
|
57
|
-
export declare const CustomStyling: Story;
|
|
58
|
-
//# sourceMappingURL=pd-select.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pd-select.stories.d.ts","sourceRoot":"","sources":["../../src/pd-select/pd-select.stories.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAErE,OAAO,gBAAgB,CAAC;AACxB,OAAO,2CAA2C,CAAC;AACnD,OAAO,+BAA+B,CAAC;AACvC,OAAO,2BAA2B,CAAC;AACnC,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAM7C;;;GAGG;AACH,UAAU,YAAY;IACpB,4CAA4C;IAC5C,KAAK,EAAE,MAAM,CAAC;IACd,gDAAgD;IAChD,MAAM,EAAE,cAAc,EAAE,CAAC;IACzB,+BAA+B;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,qCAAqC;IACrC,QAAQ,EAAE,OAAO,CAAC;IAClB,sCAAsC;IACtC,QAAQ,EAAE,OAAO,CAAC;IAClB,sCAAsC;IACtC,QAAQ,EAAE,OAAO,CAAC;IAClB,6CAA6C;IAC7C,SAAS,EAAE,MAAM,CAAC;IAClB,wCAAwC;IACxC,QAAQ,EAAE,OAAO,CAAC;IAClB,6CAA6C;IAC7C,SAAS,EAAE,MAAM,CAAC;CACnB;AAoBD;;;;;;;;;;;;;;;;;GAiBG;AACH,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,YAAY,CA6F5B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,YAAY,CAAC,CAAC;AAMpC,iEAAiE;AACjE,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAC;AAMF,qCAAqC;AACrC,eAAO,MAAM,WAAW,EAAE,KAgEzB,CAAC;AAMF,uFAAuF;AACvF,eAAO,MAAM,kBAAkB,EAAE,KAiChC,CAAC;AAMF,sEAAsE;AACtE,eAAO,MAAM,WAAW,EAAE,KAsCzB,CAAC;AAMF,+DAA+D;AAC/D,eAAO,MAAM,aAAa,EAAE,KA0G3B,CAAC"}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/web-components-vite';
|
|
2
|
-
/**
|
|
3
|
-
* Story arguments interface for pd-suggestion-box component.
|
|
4
|
-
* Defines all configurable properties available in Storybook controls.
|
|
5
|
-
*/
|
|
6
|
-
interface PdSuggestionBoxArgs {
|
|
7
|
-
/** Label text displayed above the input */
|
|
8
|
-
label: string;
|
|
9
|
-
/** Placeholder text for the input field */
|
|
10
|
-
placeholder: string;
|
|
11
|
-
/** Minimum characters required before triggering search */
|
|
12
|
-
minCharsToSearch: number;
|
|
13
|
-
/** Delay in milliseconds before executing search */
|
|
14
|
-
delayTime: number;
|
|
15
|
-
/** Maximum number of results to display */
|
|
16
|
-
maxResult: number;
|
|
17
|
-
/** Whether the field is required */
|
|
18
|
-
required: boolean;
|
|
19
|
-
/** Whether to show "create new" option when no results found */
|
|
20
|
-
createNewEmptyItem: boolean;
|
|
21
|
-
/** Simulated API response delay for demos */
|
|
22
|
-
timeout: number;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* ## pd-suggestion-box
|
|
26
|
-
*
|
|
27
|
-
* An autocomplete/typeahead component that fetches suggestions from an async data source.
|
|
28
|
-
*
|
|
29
|
-
* ### Features
|
|
30
|
-
* - **Async Search**: Fetches suggestions via a configurable async function
|
|
31
|
-
* - **Debounced Input**: Configurable delay before triggering search
|
|
32
|
-
* - **Minimum Characters**: Configurable minimum input length before searching
|
|
33
|
-
* - **Local Filtering**: Filters cached results for faster subsequent searches
|
|
34
|
-
* - **Create New Option**: Optional ability to create new entries when no match found
|
|
35
|
-
* - **Loading State**: Shows loading indicator during async operations
|
|
36
|
-
* - **Error Handling**: Displays error message on search failures
|
|
37
|
-
*
|
|
38
|
-
* ### Usage
|
|
39
|
-
* ```html
|
|
40
|
-
* <pd-suggestion-box
|
|
41
|
-
* label="Search Products"
|
|
42
|
-
* placeholder="Type to search..."
|
|
43
|
-
* minCharsToSearch="2"
|
|
44
|
-
* .callFunction="${async (input) => {
|
|
45
|
-
* const response = await fetch(`/api/search?q=${input}`);
|
|
46
|
-
* return response.json();
|
|
47
|
-
* }}"
|
|
48
|
-
* ></pd-suggestion-box>
|
|
49
|
-
* ```
|
|
50
|
-
*/
|
|
51
|
-
declare const meta: Meta<PdSuggestionBoxArgs>;
|
|
52
|
-
export default meta;
|
|
53
|
-
type Story = StoryObj<PdSuggestionBoxArgs>;
|
|
54
|
-
/**
|
|
55
|
-
* Default suggestion box with product search.
|
|
56
|
-
* Type at least 2 characters to see suggestions.
|
|
57
|
-
*/
|
|
58
|
-
export declare const Default: Story;
|
|
59
|
-
/**
|
|
60
|
-
* Required suggestion box -- shows the required indicator (asterisk).
|
|
61
|
-
*/
|
|
62
|
-
export declare const Required: Story;
|
|
63
|
-
/**
|
|
64
|
-
* Suggestion box with "create new" option enabled.
|
|
65
|
-
* When no matches are found, offers to create a new entry.
|
|
66
|
-
*/
|
|
67
|
-
export declare const WithCreateNew: Story;
|
|
68
|
-
/**
|
|
69
|
-
* Loading state (slow API) and error state side by side.
|
|
70
|
-
* Demonstrates both async feedback states in one view.
|
|
71
|
-
*/
|
|
72
|
-
export declare const LoadingAndError: Story;
|
|
73
|
-
/**
|
|
74
|
-
* Multiple suggestion boxes in a form -- real-world usage pattern.
|
|
75
|
-
*/
|
|
76
|
-
export declare const FormIntegration: Story;
|
|
77
|
-
/** CSS Custom Properties -- Branded and Redesigned variants. */
|
|
78
|
-
export declare const CustomStyling: Story;
|
|
79
|
-
//# sourceMappingURL=pd-suggestion-box.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pd-suggestion-box.stories.d.ts","sourceRoot":"","sources":["../../src/pd-suggestion-box/pd-suggestion-box.stories.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAErE,OAAO,wBAAwB,CAAC;AAChC,OAAO,2BAA2B,CAAC;AAOnC;;;GAGG;AACH,UAAU,mBAAmB;IAC3B,2CAA2C;IAC3C,KAAK,EAAE,MAAM,CAAC;IACd,2CAA2C;IAC3C,WAAW,EAAE,MAAM,CAAC;IACpB,2DAA2D;IAC3D,gBAAgB,EAAE,MAAM,CAAC;IACzB,oDAAoD;IACpD,SAAS,EAAE,MAAM,CAAC;IAClB,2CAA2C;IAC3C,SAAS,EAAE,MAAM,CAAC;IAClB,oCAAoC;IACpC,QAAQ,EAAE,OAAO,CAAC;IAClB,gEAAgE;IAChE,kBAAkB,EAAE,OAAO,CAAC;IAC5B,6CAA6C;IAC7C,OAAO,EAAE,MAAM,CAAC;CACjB;AA+FD;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,mBAAmB,CAkFnC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,mBAAmB,CAAC,CAAC;AAM3C;;;GAGG;AACH,eAAO,MAAM,OAAO,EAAE,KA4BrB,CAAC;AAMF;;GAEG;AACH,eAAO,MAAM,QAAQ,EAAE,KA0BtB,CAAC;AAMF;;;GAGG;AACH,eAAO,MAAM,aAAa,EAAE,KA6B3B,CAAC;AAMF;;;GAGG;AACH,eAAO,MAAM,eAAe,EAAE,KA0C7B,CAAC;AAMF;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,KAkD7B,CAAC;AAMF,gEAAgE;AAChE,eAAO,MAAM,aAAa,EAAE,KA0H3B,CAAC"}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { StoryObj } from '@storybook/web-components-vite';
|
|
2
|
-
declare const meta: {
|
|
3
|
-
title: string;
|
|
4
|
-
};
|
|
5
|
-
export default meta;
|
|
6
|
-
type Story = StoryObj;
|
|
7
|
-
/**
|
|
8
|
-
* User registration form with validation for common sign-up scenarios.
|
|
9
|
-
* Demonstrates pd-select, pd-input (text, email, phone, secret),
|
|
10
|
-
* pd-checkbox, and span-based responsive layout.
|
|
11
|
-
*/
|
|
12
|
-
export declare const UserRegistrationForm: Story;
|
|
13
|
-
/**
|
|
14
|
-
* Contact form for customer inquiries with department/priority selection,
|
|
15
|
-
* message textarea, and optional file attachment.
|
|
16
|
-
* Demonstrates pd-input-area, pd-input-file, and pd-select.
|
|
17
|
-
*/
|
|
18
|
-
export declare const ContactForm: Story;
|
|
19
|
-
/**
|
|
20
|
-
* Business application form with company information, contact person,
|
|
21
|
-
* experience rating, and partnership type selection.
|
|
22
|
-
* Demonstrates pd-range with optionValueMapper and pd-radio-group.
|
|
23
|
-
*/
|
|
24
|
-
export declare const BusinessApplicationForm: Story;
|
|
25
|
-
/**
|
|
26
|
-
* Hotel booking form with check-in/out times, room selection,
|
|
27
|
-
* and guest preferences. Demonstrates pd-input-time,
|
|
28
|
-
* number inputs, and multiple checkboxes for options.
|
|
29
|
-
*/
|
|
30
|
-
export declare const HotelBookingForm: Story;
|
|
31
|
-
/**
|
|
32
|
-
* Feedback form with satisfaction rating via pd-range,
|
|
33
|
-
* recommendation via pd-radio-group, and detailed text feedback.
|
|
34
|
-
* Demonstrates pd-range with SATISFACTION_MAPPER and optional fields.
|
|
35
|
-
*/
|
|
36
|
-
export declare const FeedbackSurveyForm: Story;
|
|
37
|
-
/**
|
|
38
|
-
* Order form demonstrating pd-form-fieldset for structured data grouping.
|
|
39
|
-
* Shows how fieldsets aggregate child values into nested objects
|
|
40
|
-
* with billing and shipping address side-by-side using span="half".
|
|
41
|
-
*/
|
|
42
|
-
export declare const OrderFormWithFieldsets: Story;
|
|
43
|
-
/**
|
|
44
|
-
* Three fieldsets side-by-side using span="third" for compact
|
|
45
|
-
* multi-section forms. Demonstrates column-based fieldset layout.
|
|
46
|
-
*/
|
|
47
|
-
export declare const ThreeColumnFieldsets: Story;
|
|
48
|
-
//# sourceMappingURL=pd-forms-overview.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pd-forms-overview.stories.d.ts","sourceRoot":"","sources":["../../src/stories/pd-forms-overview.stories.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAKrE,OAAO,2CAA2C,CAAC;AACnD,OAAO,+BAA+B,CAAC;AACvC,OAAO,yCAAyC,CAAC;AACjD,OAAO,yBAAyB,CAAC;AACjC,OAAO,mCAAmC,CAAC;AAC3C,OAAO,mCAAmC,CAAC;AAC3C,OAAO,mCAAmC,CAAC;AAC3C,OAAO,2BAA2B,CAAC;AACnC,OAAO,+BAA+B,CAAC;AACvC,OAAO,qCAAqC,CAAC;AAC7C,OAAO,yBAAyB,CAAC;AACjC,OAAO,2BAA2B,CAAC;AACnC,OAAO,uCAAuC,CAAC;AAC/C,OAAO,uCAAuC,CAAC;AAC/C,OAAO,2CAA2C,CAAC;AACnD,OAAO,iCAAiC,CAAC;AAmEzC,QAAA,MAAM,IAAI;;CAEM,CAAC;AAEjB,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC;AAMtB;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,EAAE,KA+FlC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,WAAW,EAAE,KAgFzB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,EAAE,KAsKrC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,EAAE,KA+H9B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,EAAE,KAqFhC,CAAC;AAMF;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,EAAE,KAoLpC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,KA8FlC,CAAC"}
|