@progressive-development/pd-forms 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.
Files changed (72) hide show
  1. package/dist/index.d.ts +4 -0
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +5 -0
  4. package/dist/pd-button/PdButton.d.ts +8 -0
  5. package/dist/pd-button/PdButton.d.ts.map +1 -1
  6. package/dist/pd-button/PdButton.js +23 -0
  7. package/dist/pd-color-picker/PdColorPicker.d.ts +25 -0
  8. package/dist/pd-color-picker/PdColorPicker.d.ts.map +1 -0
  9. package/dist/pd-color-picker/PdColorPicker.js +238 -0
  10. package/dist/pd-color-picker/pd-color-picker.d.ts +3 -0
  11. package/dist/pd-color-picker/pd-color-picker.d.ts.map +1 -0
  12. package/dist/pd-color-picker.d.ts +2 -0
  13. package/dist/pd-color-picker.js +8 -0
  14. package/dist/pd-generic-form/PdGenericForm.d.ts +1 -0
  15. package/dist/pd-generic-form/PdGenericForm.d.ts.map +1 -1
  16. package/dist/pd-generic-form/PdGenericForm.js +12 -2
  17. package/dist/pd-generic-form/pd-generic-form.styles.d.ts.map +1 -1
  18. package/dist/pd-generic-form/pd-generic-form.styles.js +12 -5
  19. package/dist/pd-input-image/PdInputImage.d.ts +79 -0
  20. package/dist/pd-input-image/PdInputImage.d.ts.map +1 -0
  21. package/dist/pd-input-image/PdInputImage.js +553 -0
  22. package/dist/pd-input-image/pd-input-image.d.ts +4 -0
  23. package/dist/pd-input-image/pd-input-image.d.ts.map +1 -0
  24. package/dist/pd-input-image/pd-input-image.styles.d.ts +6 -0
  25. package/dist/pd-input-image/pd-input-image.styles.d.ts.map +1 -0
  26. package/dist/pd-input-image/pd-input-image.styles.js +300 -0
  27. package/dist/pd-input-image.d.ts +2 -0
  28. package/dist/pd-input-image.js +8 -0
  29. package/dist/pd-range/PdRange.d.ts +2 -0
  30. package/dist/pd-range/PdRange.d.ts.map +1 -1
  31. package/dist/pd-range/PdRange.js +11 -7
  32. package/package.json +5 -3
  33. package/dist/pd-button/pd-button.stories.d.ts +0 -84
  34. package/dist/pd-button/pd-button.stories.d.ts.map +0 -1
  35. package/dist/pd-button-group/pd-button-group.stories.d.ts +0 -45
  36. package/dist/pd-button-group/pd-button-group.stories.d.ts.map +0 -1
  37. package/dist/pd-button-select-group/pd-button-select-group.stories.d.ts +0 -46
  38. package/dist/pd-button-select-group/pd-button-select-group.stories.d.ts.map +0 -1
  39. package/dist/pd-checkbox/pd-checkbox.stories.d.ts +0 -45
  40. package/dist/pd-checkbox/pd-checkbox.stories.d.ts.map +0 -1
  41. package/dist/pd-form-container/pd-form-container.stories.d.ts +0 -49
  42. package/dist/pd-form-container/pd-form-container.stories.d.ts.map +0 -1
  43. package/dist/pd-form-field/pd-form-field.stories.d.ts +0 -40
  44. package/dist/pd-form-field/pd-form-field.stories.d.ts.map +0 -1
  45. package/dist/pd-form-fieldset/pd-form-fieldset.stories.d.ts +0 -38
  46. package/dist/pd-form-fieldset/pd-form-fieldset.stories.d.ts.map +0 -1
  47. package/dist/pd-form-row/pd-form-row.stories.d.ts +0 -43
  48. package/dist/pd-form-row/pd-form-row.stories.d.ts.map +0 -1
  49. package/dist/pd-generic-form/pd-generic-form.stories.d.ts +0 -35
  50. package/dist/pd-generic-form/pd-generic-form.stories.d.ts.map +0 -1
  51. package/dist/pd-hover-box/pd-hover-box.stories.d.ts +0 -31
  52. package/dist/pd-hover-box/pd-hover-box.stories.d.ts.map +0 -1
  53. package/dist/pd-input/pd-input.stories.d.ts +0 -73
  54. package/dist/pd-input/pd-input.stories.d.ts.map +0 -1
  55. package/dist/pd-input-area/pd-input-area.stories.d.ts +0 -67
  56. package/dist/pd-input-area/pd-input-area.stories.d.ts.map +0 -1
  57. package/dist/pd-input-file/pd-input-file.stories.d.ts +0 -53
  58. package/dist/pd-input-file/pd-input-file.stories.d.ts.map +0 -1
  59. package/dist/pd-input-time/pd-input-time.stories.d.ts +0 -94
  60. package/dist/pd-input-time/pd-input-time.stories.d.ts.map +0 -1
  61. package/dist/pd-panel-button/pd-panel-button.stories.d.ts +0 -57
  62. package/dist/pd-panel-button/pd-panel-button.stories.d.ts.map +0 -1
  63. package/dist/pd-radio-group/pd-radio-group.stories.d.ts +0 -39
  64. package/dist/pd-radio-group/pd-radio-group.stories.d.ts.map +0 -1
  65. package/dist/pd-range/pd-range.stories.d.ts +0 -51
  66. package/dist/pd-range/pd-range.stories.d.ts.map +0 -1
  67. package/dist/pd-select/pd-select.stories.d.ts +0 -58
  68. package/dist/pd-select/pd-select.stories.d.ts.map +0 -1
  69. package/dist/pd-suggestion-box/pd-suggestion-box.stories.d.ts +0 -79
  70. package/dist/pd-suggestion-box/pd-suggestion-box.stories.d.ts.map +0 -1
  71. package/dist/stories/pd-forms-overview.stories.d.ts +0 -48
  72. package/dist/stories/pd-forms-overview.stories.d.ts.map +0 -1
@@ -1,49 +0,0 @@
1
- import { Meta, StoryObj } from '@storybook/web-components-vite';
2
- interface PdFormContainerArgs {
3
- requiredFieldInfo: boolean;
4
- autoTrimm: boolean;
5
- commonError: string;
6
- }
7
- /**
8
- * ## pd-form-container
9
- *
10
- * Container element for managing form fields with validation and state tracking.
11
- *
12
- * ### Features
13
- * - Automatic field registration and tracking
14
- * - Form-wide validation with triggerValidate()
15
- * - Value collection with getValues()
16
- * - Form reset functionality
17
- * - Required field indicator
18
- * - Common error message display
19
- * - Auto-trim option for string values
20
- *
21
- * ### Methods
22
- * | Method | Returns | Description |
23
- * |--------|---------|-------------|
24
- * | `triggerValidate()` | `Promise<boolean>` | Runs all field validators and returns overall validity |
25
- * | `getValues()` | `{origin, parsed}` | Returns all field values as origin and parsed objects |
26
- * | `reset()` | `void` | Resets all form fields to their initial values |
27
- * | `getStatus()` | `Map<string, PdFormElementStatus>` | Returns the current status map of all registered fields |
28
- * | `valid` (getter) | `boolean` | Whether all form fields are currently valid |
29
- */
30
- declare const meta: Meta<PdFormContainerArgs>;
31
- export default meta;
32
- type Story = StoryObj<PdFormContainerArgs>;
33
- /** Default form container with basic fields. Interactive via Controls panel. */
34
- export declare const Default: Story;
35
- /** Form container displaying a common error message. */
36
- export declare const WithCommonError: Story;
37
- /** Form container with auto-trim enabled — spaces are trimmed on getValues(). */
38
- export declare const WithAutoTrim: Story;
39
- /** Form with pre-filled initial values — reset returns to these values. */
40
- export declare const WithInitialValues: Story;
41
- /** Comprehensive form with all supported field types. */
42
- export declare const AllFieldTypes: Story;
43
- /** Form with fieldsets for grouped/nested data (e.g. billing + shipping). */
44
- export declare const WithFieldsets: Story;
45
- /** Real-world registration form pattern. */
46
- export declare const RegistrationForm: Story;
47
- /** CSS Custom Properties — Branded and Redesigned variants. */
48
- export declare const CustomStyling: Story;
49
- //# sourceMappingURL=pd-form-container.stories.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pd-form-container.stories.d.ts","sourceRoot":"","sources":["../../src/pd-form-container/pd-form-container.stories.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAKhE,OAAO,wBAAwB,CAAC;AAChC,OAAO,+BAA+B,CAAC;AACvC,OAAO,yCAAyC,CAAC;AACjD,OAAO,yBAAyB,CAAC;AACjC,OAAO,mCAAmC,CAAC;AAC3C,OAAO,mCAAmC,CAAC;AAC3C,OAAO,yBAAyB,CAAC;AACjC,OAAO,2BAA2B,CAAC;AACnC,OAAO,qCAAqC,CAAC;AAC7C,OAAO,+BAA+B,CAAC;AACvC,OAAO,2BAA2B,CAAC;AAMnC,UAAU,mBAAmB;IAC3B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;CACrB;AAqED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,mBAAmB,CAiEnC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,mBAAmB,CAAC,CAAC;AAM3C,gFAAgF;AAChF,eAAO,MAAM,OAAO,EAAE,KAmCrB,CAAC;AAMF,wDAAwD;AACxD,eAAO,MAAM,eAAe,EAAE,KAuB7B,CAAC;AAMF,iFAAiF;AACjF,eAAO,MAAM,YAAY,EAAE,KAwB1B,CAAC;AAMF,2EAA2E;AAC3E,eAAO,MAAM,iBAAiB,EAAE,KAoC/B,CAAC;AAMF,yDAAyD;AACzD,eAAO,MAAM,aAAa,EAAE,KAoE3B,CAAC;AAMF,6EAA6E;AAC7E,eAAO,MAAM,aAAa,EAAE,KAiF3B,CAAC;AAMF,4CAA4C;AAC5C,eAAO,MAAM,gBAAgB,EAAE,KAyD9B,CAAC;AAMF,+DAA+D;AAC/D,eAAO,MAAM,aAAa,EAAE,KA0H3B,CAAC"}
@@ -1,40 +0,0 @@
1
- import { Meta, StoryObj } from '@storybook/web-components-vite';
2
- interface PdFormFieldArgs {
3
- span: string;
4
- }
5
- /**
6
- * ## pd-form-field
7
- *
8
- * Wrapper component for custom content within pd-form-row.
9
- *
10
- * Use this component when you need to include non-pd form elements
11
- * (custom components, native HTML elements, etc.) in a pd-form-row
12
- * while maintaining proper grid layout positioning.
13
- *
14
- * ### Features
15
- * - Grid-aware positioning with span property
16
- * - Works seamlessly with pd-form-row's 12-column grid
17
- * - Supports all semantic and numeric span values
18
- *
19
- * ### When to Use
20
- * - Wrapping custom web components
21
- * - Including native HTML form elements
22
- * - Adding non-form content to a form row
23
- * - Creating complex layouts with mixed content types
24
- */
25
- declare const meta: Meta<PdFormFieldArgs>;
26
- export default meta;
27
- type Story = StoryObj<PdFormFieldArgs>;
28
- /** Default usage with full width. Interactive via Controls panel. */
29
- export declare const Default: Story;
30
- /** All semantic span values demonstration. */
31
- export declare const AllSpanValues: Story;
32
- /** Wrapping a native HTML input alongside a pd-input. */
33
- export declare const NativeHtmlInput: Story;
34
- /** Informational content alongside a form input. */
35
- export declare const InfoPanel: Story;
36
- /** Multiple pd-form-field elements filling a row. */
37
- export declare const MultipleCustomElements: Story;
38
- /** Mixed pd-input and pd-form-field elements in a realistic form layout. */
39
- export declare const MixedWithInputs: Story;
40
- //# sourceMappingURL=pd-form-field.stories.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pd-form-field.stories.d.ts","sourceRoot":"","sources":["../../src/pd-form-field/pd-form-field.stories.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAGrE,OAAO,oBAAoB,CAAC;AAC5B,OAAO,+BAA+B,CAAC;AACvC,OAAO,yBAAyB,CAAC;AAMjC,UAAU,eAAe;IACvB,IAAI,EAAE,MAAM,CAAC;CACd;AAMD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,eAAe,CAgE/B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,eAAe,CAAC,CAAC;AAMvC,qEAAqE;AACrE,eAAO,MAAM,OAAO,EAAE,KAUrB,CAAC;AAMF,8CAA8C;AAC9C,eAAO,MAAM,aAAa,EAAE,KAgF3B,CAAC;AAMF,yDAAyD;AACzD,eAAO,MAAM,eAAe,EAAE,KAwB7B,CAAC;AAMF,oDAAoD;AACpD,eAAO,MAAM,SAAS,EAAE,KA0BvB,CAAC;AAMF,qDAAqD;AACrD,eAAO,MAAM,sBAAsB,EAAE,KAyCpC,CAAC;AAMF,4EAA4E;AAC5E,eAAO,MAAM,eAAe,EAAE,KAiE7B,CAAC"}
@@ -1,38 +0,0 @@
1
- import { Meta, StoryObj } from '@storybook/web-components-vite';
2
- interface PdFormFieldsetArgs {
3
- name: string;
4
- legend: string;
5
- disabled: boolean;
6
- span: string;
7
- }
8
- /**
9
- * ## pd-form-fieldset
10
- *
11
- * Groups form fields and returns their values as a single object.
12
- *
13
- * ### Features
14
- * - Wraps native `<fieldset>` element
15
- * - Aggregates child field values into an object
16
- * - Registers as single field with PdFormContainer
17
- * - Optional `<legend>` for labeling
18
- * - Validation aggregation from all children
19
- * - Supports grid layout via `span` property
20
- */
21
- declare const meta: Meta<PdFormFieldsetArgs>;
22
- export default meta;
23
- type Story = StoryObj<PdFormFieldsetArgs>;
24
- /** Default fieldset with legend and grouped fields. */
25
- export declare const Default: Story;
26
- /** Overview of all fieldset visual states. */
27
- export declare const AllStates: Story;
28
- /** Multiple fieldsets in one form with regular fields. */
29
- export declare const MultipleFieldsets: Story;
30
- /** Fieldsets using span to sit side-by-side. */
31
- export declare const CustomSpan: Story;
32
- /** Fieldset with pre-filled initial values. */
33
- export declare const WithInitialValues: Story;
34
- /** Buttons positioned in form-row using span property alongside fieldset fields. */
35
- export declare const ButtonsInFormRow: Story;
36
- /** CSS Custom Properties -- Branded and Redesigned variants. */
37
- export declare const CustomStyling: Story;
38
- //# sourceMappingURL=pd-form-fieldset.stories.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pd-form-fieldset.stories.d.ts","sourceRoot":"","sources":["../../src/pd-form-fieldset/pd-form-fieldset.stories.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAIrE,OAAO,uBAAuB,CAAC;AAC/B,OAAO,2CAA2C,CAAC;AACnD,OAAO,+BAA+B,CAAC;AACvC,OAAO,yBAAyB,CAAC;AACjC,OAAO,2BAA2B,CAAC;AAMnC,UAAU,kBAAkB;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;CACd;AAMD;;;;;;;;;;;;GAYG;AACH,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,kBAAkB,CA8ElC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,kBAAkB,CAAC,CAAC;AAM1C,uDAAuD;AACvD,eAAO,MAAM,OAAO,EAAE,KAsCrB,CAAC;AAMF,8CAA8C;AAC9C,eAAO,MAAM,SAAS,EAAE,KAqFvB,CAAC;AAMF,0DAA0D;AAC1D,eAAO,MAAM,iBAAiB,EAAE,KAsF/B,CAAC;AAMF,gDAAgD;AAChD,eAAO,MAAM,UAAU,EAAE,KAiCxB,CAAC;AAMF,+CAA+C;AAC/C,eAAO,MAAM,iBAAiB,EAAE,KAoC/B,CAAC;AAMF,oFAAoF;AACpF,eAAO,MAAM,gBAAgB,EAAE,KA2E9B,CAAC;AAMF,gEAAgE;AAChE,eAAO,MAAM,aAAa,EAAE,KAyH3B,CAAC"}
@@ -1,43 +0,0 @@
1
- import { Meta, StoryObj } from '@storybook/web-components-vite';
2
- interface PdFormRowArgs {
3
- "helper-text": string;
4
- "no-stack": boolean;
5
- }
6
- /**
7
- * ## pd-form-row
8
- *
9
- * Responsive 12-column grid container for form elements.
10
- *
11
- * ### Features
12
- * - CSS Grid with 12 columns for precise layout control
13
- * - Container Query based responsive behavior (stacks below 400px)
14
- * - `no-stack` attribute to disable stacking
15
- * - Optional helper text with hover icon
16
- * - Configurable gap and alignment
17
- *
18
- * ### Span Values
19
- * Semantic: `quarter` (25%), `third` (33%), `half` (50%), `two-thirds` (66%), `three-quarters` (75%), `full` (100%)
20
- * Numeric: `1` through `12` for fine-grained control
21
- */
22
- declare const meta: Meta<PdFormRowArgs>;
23
- export default meta;
24
- type Story = StoryObj<PdFormRowArgs>;
25
- /** Default form row with a single full-width input. */
26
- export declare const Default: Story;
27
- /** Overview of all semantic span values. */
28
- export declare const AllSpanValues: Story;
29
- /** Common layout patterns with mixed span values. */
30
- export declare const CommonPatterns: Story;
31
- /** Rows with helper text hover icons. */
32
- export declare const WithHelperText: Story;
33
- /** Disable responsive stacking with no-stack attribute. */
34
- export declare const NoStack: Story;
35
- /** Buttons alongside inputs in the same row. */
36
- export declare const ButtonWithInput: Story;
37
- /** Using pd-form-field wrapper for custom content in the grid. */
38
- export declare const WithFormFieldWrapper: Story;
39
- /** Complete address form as a real-world pattern. */
40
- export declare const AddressFormExample: Story;
41
- /** CSS Custom Properties -- Branded and Redesigned variants. */
42
- export declare const CustomStyling: Story;
43
- //# sourceMappingURL=pd-form-row.stories.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pd-form-row.stories.d.ts","sourceRoot":"","sources":["../../src/pd-form-row/pd-form-row.stories.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAGrE,OAAO,kBAAkB,CAAC;AAC1B,OAAO,yBAAyB,CAAC;AACjC,OAAO,mCAAmC,CAAC;AAC3C,OAAO,2BAA2B,CAAC;AACnC,OAAO,mCAAmC,CAAC;AAC3C,OAAO,yCAAyC,CAAC;AACjD,OAAO,2BAA2B,CAAC;AAMnC,UAAU,aAAa;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;CACrB;AAgBD;;;;;;;;;;;;;;;GAeG;AACH,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,aAAa,CA2E7B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,CAAC;AAMrC,uDAAuD;AACvD,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC;AAMF,4CAA4C;AAC5C,eAAO,MAAM,aAAa,EAAE,KAgD3B,CAAC;AAMF,qDAAqD;AACrD,eAAO,MAAM,cAAc,EAAE,KAiF5B,CAAC;AAMF,yCAAyC;AACzC,eAAO,MAAM,cAAc,EAAE,KAwB5B,CAAC;AAMF,2DAA2D;AAC3D,eAAO,MAAM,OAAO,EAAE,KAwCrB,CAAC;AAMF,gDAAgD;AAChD,eAAO,MAAM,eAAe,EAAE,KAgD7B,CAAC;AAMF,kEAAkE;AAClE,eAAO,MAAM,oBAAoB,EAAE,KAwBlC,CAAC;AAMF,qDAAqD;AACrD,eAAO,MAAM,kBAAkB,EAAE,KA8BhC,CAAC;AAMF,gEAAgE;AAChE,eAAO,MAAM,aAAa,EAAE,KAuD3B,CAAC"}
@@ -1,35 +0,0 @@
1
- import { Meta, StoryObj } from '@storybook/web-components-vite';
2
- /**
3
- * ## pd-generic-form
4
- *
5
- * Schema-driven form component that renders fields from a JSON schema definition.
6
- *
7
- * ### Features
8
- * - View mode: renders label/value list
9
- * - Edit mode: renders pd-forms components (inputs, selects, radio groups, textareas)
10
- * - Layout support: rows, fieldsets, and per-field span control
11
- * - Conditional visibility via `showWhen`
12
- * - Can be combined with custom fields in the same pd-form-container
13
- */
14
- declare const meta: Meta;
15
- export default meta;
16
- type Story = StoryObj;
17
- /** Default: View mode renders a label/value list from schema data. */
18
- export declare const Default: Story;
19
- /** View mode with no data shows an empty state message. */
20
- export declare const ViewModeEmpty: Story;
21
- /** Edit mode renders pd-forms components for each schema field. */
22
- export declare const EditMode: Story;
23
- /** Custom fields alongside schema-driven fields in the same form container. */
24
- export declare const CombinedWithOwnFields: Story;
25
- /**
26
- * Schema with layout features: multi-field rows, fieldsets with legend
27
- * and nested rows, and per-field span control.
28
- */
29
- export declare const RowsAndFieldsets: Story;
30
- /**
31
- * Conditional visibility with `showWhen`: fields, rows, and fieldsets
32
- * appear or disappear based on another field's value.
33
- */
34
- export declare const ConditionalVisibility: Story;
35
- //# sourceMappingURL=pd-generic-form.stories.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pd-generic-form.stories.d.ts","sourceRoot":"","sources":["../../src/pd-generic-form/pd-generic-form.stories.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAKrE,OAAO,sBAAsB,CAAC;AAC9B,OAAO,2CAA2C,CAAC;AACnD,OAAO,+BAA+B,CAAC;AACvC,OAAO,mCAAmC,CAAC;AAC3C,OAAO,2BAA2B,CAAC;AA6SnC;;;;;;;;;;;GAWG;AACH,QAAA,MAAM,IAAI,EAAE,IAiEX,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC;AAMtB,sEAAsE;AACtE,eAAO,MAAM,OAAO,EAAE,KAQrB,CAAC;AAMF,2DAA2D;AAC3D,eAAO,MAAM,aAAa,EAAE,KAQ3B,CAAC;AAMF,mEAAmE;AACnE,eAAO,MAAM,QAAQ,EAAE,KAYtB,CAAC;AAMF,+EAA+E;AAC/E,eAAO,MAAM,qBAAqB,EAAE,KA+BnC,CAAC;AAMF;;;GAGG;AACH,eAAO,MAAM,gBAAgB,EAAE,KA0B9B,CAAC;AAMF;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,KA0BnC,CAAC"}
@@ -1,31 +0,0 @@
1
- import { Meta, StoryObj } from '@storybook/web-components-vite';
2
- /**
3
- * ## pd-hover-box
4
- *
5
- * A floating container component for displaying contextual information
6
- * in a tooltip-like popup that appears on click.
7
- *
8
- * ### Features
9
- * - Click-to-Show: Shows info box when trigger is clicked
10
- * - Auto-Positioning: Automatically positions above or below based on viewport
11
- * - Slot-Based Content: Uses named slots for trigger and info content
12
- * - Click-to-Dismiss: Info box closes when clicked outside or Escape pressed
13
- */
14
- declare const meta: Meta;
15
- export default meta;
16
- type Story = StoryObj;
17
- /** Default hover box with question mark trigger. Click the "?" to show the info box. */
18
- export declare const Default: Story;
19
- /** Hover box with structured long-form content. */
20
- export declare const WithLongContent: Story;
21
- /** All trigger style variations in one view. */
22
- export declare const TriggerStyles: Story;
23
- /** Hover box next to a form field label -- common real-world pattern. */
24
- export declare const WithFormField: Story;
25
- /** Hover box in a table header for column info. */
26
- export declare const InTableHeader: Story;
27
- /** Demonstrates auto-positioning: above (default) and below (when no space above). */
28
- export declare const AutoPositioning: Story;
29
- /** CSS Custom Properties -- Branded and Redesigned variants. */
30
- export declare const CustomStyling: Story;
31
- //# sourceMappingURL=pd-hover-box.stories.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pd-hover-box.stories.d.ts","sourceRoot":"","sources":["../../src/pd-hover-box/pd-hover-box.stories.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAErE,OAAO,mBAAmB,CAAC;AAM3B;;;;;;;;;;;GAWG;AACH,QAAA,MAAM,IAAI,EAAE,IAuDX,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC;AAMtB,wFAAwF;AACxF,eAAO,MAAM,OAAO,EAAE,KA2BrB,CAAC;AAMF,mDAAmD;AACnD,eAAO,MAAM,eAAe,EAAE,KAmC7B,CAAC;AAMF,gDAAgD;AAChD,eAAO,MAAM,aAAa,EAAE,KA4D3B,CAAC;AAMF,yEAAyE;AACzE,eAAO,MAAM,aAAa,EAAE,KA2C3B,CAAC;AAMF,mDAAmD;AACnD,eAAO,MAAM,aAAa,EAAE,KAwF3B,CAAC;AAMF,sFAAsF;AACtF,eAAO,MAAM,eAAe,EAAE,KAgE7B,CAAC;AAMF,gEAAgE;AAChE,eAAO,MAAM,aAAa,EAAE,KAsF3B,CAAC"}
@@ -1,73 +0,0 @@
1
- import { Meta, StoryObj } from '@storybook/web-components-vite';
2
- import { PdFieldType, PdAutocomplete } from '../types.js';
3
- /**
4
- * Story arguments interface for pd-input component.
5
- * Maps to the component's public API.
6
- */
7
- interface PdInputArgs {
8
- /** Label text displayed above the input */
9
- label: string;
10
- /** Initial value of the input */
11
- initValue: string;
12
- /** Placeholder text shown when input is empty */
13
- placeHolder: string;
14
- /** Whether the input is disabled */
15
- disabled: boolean;
16
- /** Whether the input is read-only */
17
- readonly: boolean;
18
- /** Whether the input is required */
19
- required: boolean;
20
- /** Whether to mask input as password */
21
- secret: boolean;
22
- /** Optional icon to display (use pdIcons constants) */
23
- icon: string;
24
- /** Whether the icon is clickable */
25
- clickableIcon: boolean;
26
- /** Accessible label for clickable icon */
27
- iconLabel: string;
28
- /** Minimum character length */
29
- minlength?: number;
30
- /** Maximum character length */
31
- maxlength?: number;
32
- /** Restrict input to numbers only (legacy - prefer fieldType="number") */
33
- onlyNumbers: boolean;
34
- /** Field validation type */
35
- fieldType: PdFieldType;
36
- /** Helper text shown in tooltip */
37
- helperTxt: string;
38
- /** Character shown for required fields */
39
- defaultRequiredChar: string;
40
- /** Autocomplete attribute value */
41
- autoCompleteName: PdAutocomplete;
42
- /** Apply gradient styling */
43
- gradient: boolean;
44
- }
45
- /**
46
- * ## pd-input
47
- *
48
- * A versatile text input component for forms with validation,
49
- * icons, and multiple field types.
50
- *
51
- * ### Features
52
- * - **Field Types**: text, number, mail, vat, phone validation
53
- * - **States**: Supports disabled, readonly, required, and password (secret) modes
54
- * - **Icons**: Optional left or right icon positioning, decorative or clickable
55
- * - **Validation**: Built-in validation for email, phone, VAT formats
56
- * - **Form Integration**: Works with pd-form-container for validation
57
- */
58
- declare const meta: Meta<PdInputArgs>;
59
- export default meta;
60
- type Story = StoryObj<PdInputArgs>;
61
- /** Default input with minimal configuration. Interactive via Controls panel. */
62
- export declare const Default: Story;
63
- /** All input states and variants at a glance. */
64
- export declare const AllVariants: Story;
65
- /** Decorative vs clickable icon usage patterns. */
66
- export declare const IconVariants: Story;
67
- /** Validation field types: email, number, onlyNumbers. */
68
- export declare const FieldTypes: Story;
69
- /** Input within a form container showing proper form layout and validation. */
70
- export declare const InFormContainer: Story;
71
- /** CSS Custom Properties — Branded and Redesigned variants. */
72
- export declare const CustomStyling: Story;
73
- //# sourceMappingURL=pd-input.stories.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pd-input.stories.d.ts","sourceRoot":"","sources":["../../src/pd-input/pd-input.stories.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAKrE,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE/D,OAAO,eAAe,CAAC;AACvB,OAAO,+BAA+B,CAAC;AACvC,OAAO,2CAA2C,CAAC;AAMnD;;;GAGG;AACH,UAAU,WAAW;IACnB,2CAA2C;IAC3C,KAAK,EAAE,MAAM,CAAC;IACd,iCAAiC;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,iDAAiD;IACjD,WAAW,EAAE,MAAM,CAAC;IACpB,oCAAoC;IACpC,QAAQ,EAAE,OAAO,CAAC;IAClB,qCAAqC;IACrC,QAAQ,EAAE,OAAO,CAAC;IAClB,oCAAoC;IACpC,QAAQ,EAAE,OAAO,CAAC;IAClB,wCAAwC;IACxC,MAAM,EAAE,OAAO,CAAC;IAChB,uDAAuD;IACvD,IAAI,EAAE,MAAM,CAAC;IACb,oCAAoC;IACpC,aAAa,EAAE,OAAO,CAAC;IACvB,0CAA0C;IAC1C,SAAS,EAAE,MAAM,CAAC;IAClB,+BAA+B;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,+BAA+B;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0EAA0E;IAC1E,WAAW,EAAE,OAAO,CAAC;IACrB,4BAA4B;IAC5B,SAAS,EAAE,WAAW,CAAC;IACvB,mCAAmC;IACnC,SAAS,EAAE,MAAM,CAAC;IAClB,0CAA0C;IAC1C,mBAAmB,EAAE,MAAM,CAAC;IAC5B,mCAAmC;IACnC,gBAAgB,EAAE,cAAc,CAAC;IACjC,6BAA6B;IAC7B,QAAQ,EAAE,OAAO,CAAC;CACnB;AAMD;;;;;;;;;;;;GAYG;AACH,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,WAAW,CAiI3B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,WAAW,CAAC,CAAC;AAMnC,gFAAgF;AAChF,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAC;AAMF,iDAAiD;AACjD,eAAO,MAAM,WAAW,EAAE,KAoFzB,CAAC;AAMF,mDAAmD;AACnD,eAAO,MAAM,YAAY,EAAE,KAqE1B,CAAC;AAMF,0DAA0D;AAC1D,eAAO,MAAM,UAAU,EAAE,KA8ExB,CAAC;AAMF,+EAA+E;AAC/E,eAAO,MAAM,eAAe,EAAE,KAsC7B,CAAC;AAMF,+DAA+D;AAC/D,eAAO,MAAM,aAAa,EAAE,KA4H3B,CAAC"}
@@ -1,67 +0,0 @@
1
- import { Meta, StoryObj } from '@storybook/web-components-vite';
2
- import { PdFieldType, PdAutocomplete } from '../types.js';
3
- /**
4
- * Arguments interface for pd-input-area stories.
5
- * Maps to the component's public API.
6
- */
7
- interface PdInputAreaArgs {
8
- /** Label text displayed above the textarea */
9
- label: string;
10
- /** Initial value of the textarea */
11
- initValue: string;
12
- /** Placeholder text shown when textarea is empty */
13
- placeHolder: string;
14
- /** Whether the textarea is disabled */
15
- disabled: boolean;
16
- /** Whether the textarea is read-only */
17
- readonly: boolean;
18
- /** Whether the textarea is required */
19
- required: boolean;
20
- /** Number of visible text rows */
21
- rows: number;
22
- /** Number of visible text columns */
23
- cols?: number;
24
- /** Minimum character length */
25
- minlength?: number;
26
- /** Maximum character length */
27
- maxlength?: number;
28
- /** Field validation type */
29
- fieldType: PdFieldType;
30
- /** Helper text shown in tooltip */
31
- helperTxt: string;
32
- /** Character shown for required fields */
33
- defaultRequiredChar: string;
34
- /** Autocomplete attribute value */
35
- autoCompleteName: PdAutocomplete;
36
- /** Apply gradient styling */
37
- gradient: boolean;
38
- }
39
- /**
40
- * ## pd-input-area
41
- *
42
- * A multi-line text input component (textarea) for forms with
43
- * validation and configurable dimensions.
44
- *
45
- * ### Features
46
- * - **Multi-line Input**: Configurable rows and columns
47
- * - **States**: Supports disabled, readonly, and required modes
48
- * - **Validation**: Min/max length constraints with built-in validation
49
- * - **Field Types**: text, number, mail, vat, phone validation
50
- * - **Form Integration**: Works with pd-form-container for validation
51
- */
52
- declare const meta: Meta<PdInputAreaArgs>;
53
- export default meta;
54
- type Story = StoryObj<PdInputAreaArgs>;
55
- /** Default textarea with minimal configuration. Interactive via Controls panel. */
56
- export declare const Default: Story;
57
- /** All textarea states for visual comparison. */
58
- export declare const AllStates: Story;
59
- /** Textarea with min/max character length validation. */
60
- export declare const WithLengthConstraints: Story;
61
- /** Different sizing options using rows attribute and CSS custom properties. */
62
- export declare const Sizing: Story;
63
- /** Textarea within a form container showing proper form integration. */
64
- export declare const InFormContainer: Story;
65
- /** CSS Custom Properties — Branded and Redesigned variants. */
66
- export declare const CustomStyling: Story;
67
- //# sourceMappingURL=pd-input-area.stories.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pd-input-area.stories.d.ts","sourceRoot":"","sources":["../../src/pd-input-area/pd-input-area.stories.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAGrE,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE/D,OAAO,oBAAoB,CAAC;AAC5B,OAAO,+BAA+B,CAAC;AACvC,OAAO,2CAA2C,CAAC;AAMnD;;;GAGG;AACH,UAAU,eAAe;IACvB,8CAA8C;IAC9C,KAAK,EAAE,MAAM,CAAC;IACd,oCAAoC;IACpC,SAAS,EAAE,MAAM,CAAC;IAClB,oDAAoD;IACpD,WAAW,EAAE,MAAM,CAAC;IACpB,uCAAuC;IACvC,QAAQ,EAAE,OAAO,CAAC;IAClB,wCAAwC;IACxC,QAAQ,EAAE,OAAO,CAAC;IAClB,uCAAuC;IACvC,QAAQ,EAAE,OAAO,CAAC;IAClB,kCAAkC;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,qCAAqC;IACrC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,+BAA+B;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,+BAA+B;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4BAA4B;IAC5B,SAAS,EAAE,WAAW,CAAC;IACvB,mCAAmC;IACnC,SAAS,EAAE,MAAM,CAAC;IAClB,0CAA0C;IAC1C,mBAAmB,EAAE,MAAM,CAAC;IAC5B,mCAAmC;IACnC,gBAAgB,EAAE,cAAc,CAAC;IACjC,6BAA6B;IAC7B,QAAQ,EAAE,OAAO,CAAC;CACnB;AAMD;;;;;;;;;;;;GAYG;AACH,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,eAAe,CAsG/B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,eAAe,CAAC,CAAC;AAMvC,mFAAmF;AACnF,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC;AAMF,iDAAiD;AACjD,eAAO,MAAM,SAAS,EAAE,KAqFvB,CAAC;AAMF,yDAAyD;AACzD,eAAO,MAAM,qBAAqB,EAAE,KAgBnC,CAAC;AAMF,+EAA+E;AAC/E,eAAO,MAAM,MAAM,EAAE,KAiEpB,CAAC;AAMF,wEAAwE;AACxE,eAAO,MAAM,eAAe,EAAE,KA+B7B,CAAC;AAMF,+DAA+D;AAC/D,eAAO,MAAM,aAAa,EAAE,KAoG3B,CAAC"}
@@ -1,53 +0,0 @@
1
- import { Meta, StoryObj } from '@storybook/web-components-vite';
2
- /**
3
- * Story arguments interface for pd-input-file component.
4
- * Maps to the component's public API.
5
- */
6
- interface PdInputFileArgs {
7
- /** Label text displayed above the file input */
8
- label: string;
9
- /** Whether the file input is disabled */
10
- disabled: boolean;
11
- /** Whether the file input is required */
12
- required: boolean;
13
- /** File types to accept (MIME types or extensions) */
14
- accept: string;
15
- /** Optional icon to display */
16
- icon: string;
17
- /** Maximum filename length */
18
- maxlength?: number;
19
- /** Helper text shown in tooltip */
20
- helperTxt: string;
21
- /** Character shown for required fields */
22
- defaultRequiredChar: string;
23
- /** Apply gradient styling */
24
- gradient: boolean;
25
- }
26
- /**
27
- * ## pd-input-file
28
- *
29
- * A file upload input component with file type filtering
30
- * and form integration.
31
- *
32
- * ### Features
33
- * - **File Type Filtering**: Restrict uploads via accept attribute (MIME types or extensions)
34
- * - **States**: Supports disabled and required modes
35
- * - **Icons**: Optional icon with clickable mode
36
- * - **Form Integration**: Works with pd-form-container for validation
37
- */
38
- declare const meta: Meta<PdInputFileArgs>;
39
- export default meta;
40
- type Story = StoryObj<PdInputFileArgs>;
41
- /** Default file input with minimal configuration. Interactive via Controls panel. */
42
- export declare const Default: Story;
43
- /** All file input states at a glance for visual comparison. */
44
- export declare const AllVariants: Story;
45
- /** File input with icon variations. */
46
- export declare const WithIcon: Story;
47
- /** Different file type configurations using the accept attribute. */
48
- export declare const FileTypeFiltering: Story;
49
- /** File inputs within a form container showing proper form integration. */
50
- export declare const InFormContainer: Story;
51
- /** CSS Custom Properties -- Branded and Redesigned variants. */
52
- export declare const CustomStyling: Story;
53
- //# sourceMappingURL=pd-input-file.stories.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pd-input-file.stories.d.ts","sourceRoot":"","sources":["../../src/pd-input-file/pd-input-file.stories.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAKrE,OAAO,oBAAoB,CAAC;AAC5B,OAAO,+BAA+B,CAAC;AACvC,OAAO,2CAA2C,CAAC;AAMnD;;;GAGG;AACH,UAAU,eAAe;IACvB,gDAAgD;IAChD,KAAK,EAAE,MAAM,CAAC;IACd,yCAAyC;IACzC,QAAQ,EAAE,OAAO,CAAC;IAClB,yCAAyC;IACzC,QAAQ,EAAE,OAAO,CAAC;IAClB,sDAAsD;IACtD,MAAM,EAAE,MAAM,CAAC;IACf,+BAA+B;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,8BAA8B;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mCAAmC;IACnC,SAAS,EAAE,MAAM,CAAC;IAClB,0CAA0C;IAC1C,mBAAmB,EAAE,MAAM,CAAC;IAC5B,6BAA6B;IAC7B,QAAQ,EAAE,OAAO,CAAC;CACnB;AAMD;;;;;;;;;;;GAWG;AACH,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,eAAe,CAkG/B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,eAAe,CAAC,CAAC;AAMvC,qFAAqF;AACrF,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC;AAMF,+DAA+D;AAC/D,eAAO,MAAM,WAAW,EAAE,KAsDzB,CAAC;AAMF,uCAAuC;AACvC,eAAO,MAAM,QAAQ,EAAE,KAmDtB,CAAC;AAMF,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAE,KAyC/B,CAAC;AAMF,2EAA2E;AAC3E,eAAO,MAAM,eAAe,EAAE,KAsC7B,CAAC;AAMF,gEAAgE;AAChE,eAAO,MAAM,aAAa,EAAE,KAgG3B,CAAC"}
@@ -1,94 +0,0 @@
1
- import { StoryObj } from '@storybook/web-components-vite';
2
- /**
3
- * Args interface for pd-input-time stories.
4
- */
5
- interface PdInputTimeArgs {
6
- /** Label text displayed above the input */
7
- label: string;
8
- /** Initial value in HH:MM format */
9
- initValue: string;
10
- /** Helper text displayed on hover */
11
- helperTxt: string;
12
- /** Whether the field is required */
13
- required: boolean;
14
- /** Custom required field error message */
15
- requiredMsg: string;
16
- /** Whether the field is disabled */
17
- disabled: boolean;
18
- /** Whether the field is readonly */
19
- readonly: boolean;
20
- /** Icon name to display */
21
- icon: string;
22
- /** Whether to show gradient styling */
23
- gradient: boolean;
24
- /** Value name for form registration */
25
- valueName: string;
26
- /** Placeholder text */
27
- placeHolder: string;
28
- }
29
- /**
30
- * pd-input-time is a web component for time input with native browser support.
31
- *
32
- * ## Features
33
- * - Native HTML5 time input with browser picker
34
- * - Optional icon display
35
- * - Form integration with validation
36
- * - Required field validation
37
- * - Disabled and readonly states
38
- * - Helper text support via hover
39
- */
40
- declare const meta: {
41
- title: string;
42
- component: string;
43
- tags: string[];
44
- render: (args: PdInputTimeArgs) => import('lit').TemplateResult<1>;
45
- args: {
46
- label: string;
47
- initValue: string;
48
- helperTxt: string;
49
- required: false;
50
- requiredMsg: string;
51
- disabled: false;
52
- readonly: false;
53
- icon: string;
54
- gradient: false;
55
- valueName: string;
56
- placeHolder: string;
57
- };
58
- parameters: {
59
- actions: {
60
- handles: string[];
61
- };
62
- pdDocs: {
63
- accessibility: {
64
- keyboard: {
65
- key: string;
66
- description: string;
67
- }[];
68
- aria: string[];
69
- };
70
- usage: {
71
- title: string;
72
- code: string;
73
- }[];
74
- relatedComponents: {
75
- tag: string;
76
- package: string;
77
- reason: string;
78
- }[];
79
- };
80
- };
81
- };
82
- export default meta;
83
- type Story = StoryObj<PdInputTimeArgs>;
84
- /** Default time input with label. Interactive via Controls panel. */
85
- export declare const Default: Story;
86
- /** All visual states of the time input at a glance. */
87
- export declare const AllStates: Story;
88
- /** Time range selection with start and end times in a form row. */
89
- export declare const TimeRange: Story;
90
- /** Time input in form container with validation, reset, and value retrieval. */
91
- export declare const InFormContainer: Story;
92
- /** CSS Custom Properties -- Branded and Redesigned variants. */
93
- export declare const CustomStyling: Story;
94
- //# sourceMappingURL=pd-input-time.stories.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pd-input-time.stories.d.ts","sourceRoot":"","sources":["../../src/pd-input-time/pd-input-time.stories.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAGrE,OAAO,oBAAoB,CAAC;AAC5B,OAAO,+BAA+B,CAAC;AACvC,OAAO,2CAA2C,CAAC;AACnD,OAAO,2BAA2B,CAAC;AAMnC;;GAEG;AACH,UAAU,eAAe;IACvB,2CAA2C;IAC3C,KAAK,EAAE,MAAM,CAAC;IACd,oCAAoC;IACpC,SAAS,EAAE,MAAM,CAAC;IAClB,qCAAqC;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB,oCAAoC;IACpC,QAAQ,EAAE,OAAO,CAAC;IAClB,0CAA0C;IAC1C,WAAW,EAAE,MAAM,CAAC;IACpB,oCAAoC;IACpC,QAAQ,EAAE,OAAO,CAAC;IAClB,oCAAoC;IACpC,QAAQ,EAAE,OAAO,CAAC;IAClB,2BAA2B;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,uCAAuC;IACvC,QAAQ,EAAE,OAAO,CAAC;IAClB,uCAAuC;IACvC,SAAS,EAAE,MAAM,CAAC;IAClB,uBAAuB;IACvB,WAAW,EAAE,MAAM,CAAC;CACrB;AAyCD;;;;;;;;;;GAUG;AACH,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4FuB,CAAC;AAElC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,eAAe,CAAC,CAAC;AAMvC,qEAAqE;AACrE,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC;AAMF,uDAAuD;AACvD,eAAO,MAAM,SAAS,EAAE,KAkFvB,CAAC;AAMF,mEAAmE;AACnE,eAAO,MAAM,SAAS,EAAE,KA2BvB,CAAC;AAMF,gFAAgF;AAChF,eAAO,MAAM,eAAe,EAAE,KAqE7B,CAAC;AAMF,gEAAgE;AAChE,eAAO,MAAM,aAAa,EAAE,KAuG3B,CAAC"}
@@ -1,57 +0,0 @@
1
- import { Meta, StoryObj } from '@storybook/web-components-vite';
2
- interface PdPanelButtonArgs {
3
- text: string;
4
- icon: string;
5
- primary: boolean;
6
- disabled: boolean;
7
- loading: boolean;
8
- selected: boolean;
9
- right: boolean;
10
- up: boolean;
11
- hideClose: boolean;
12
- fullWidth: boolean;
13
- iconPosition: string;
14
- value: string;
15
- size: "sm" | "md" | "lg" | "xl";
16
- }
17
- /**
18
- * ## pd-panel-button
19
- *
20
- * A button with dropdown panel functionality. Extends pd-button with panel support.
21
- *
22
- * ### Features
23
- * - Inherits all pd-button features (icons, states, sizing)
24
- * - Dropdown panel with configurable position (up/down, left/right)
25
- * - Toggle arrow indicator
26
- * - Auto-close via global event
27
- * - Keyboard accessible (Enter/Space/Escape)
28
- *
29
- * ### Accessibility
30
- * - Inherits all pd-button accessibility features
31
- * - Panel can be closed via close button, Escape key, or global event
32
- *
33
- * ### Usage
34
- * ```html
35
- * <pd-panel-button text="Options" icon="settings">
36
- * <div>Panel content here</div>
37
- * </pd-panel-button>
38
- * ```
39
- */
40
- declare const meta: Meta<PdPanelButtonArgs>;
41
- export default meta;
42
- type Story = StoryObj<PdPanelButtonArgs>;
43
- /** Default panel button with text. Interactive via Controls panel. */
44
- export declare const Default: Story;
45
- /** All panel button variants and states at a glance. */
46
- export declare const AllVariants: Story;
47
- /** All size variants displayed together. */
48
- export declare const AllSizes: Story;
49
- /** Panel positioning options: right-aligned and upward. */
50
- export declare const PanelPositions: Story;
51
- /** Panel with hidden close button. */
52
- export declare const HiddenCloseButton: Story;
53
- /** Panel with rich slotted content. */
54
- export declare const RichContent: Story;
55
- /** CSS Custom Properties -- Branded and Redesigned variants. */
56
- export declare const CustomStyling: Story;
57
- //# sourceMappingURL=pd-panel-button.stories.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pd-panel-button.stories.d.ts","sourceRoot":"","sources":["../../src/pd-panel-button/pd-panel-button.stories.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAKrE,OAAO,sBAAsB,CAAC;AAM9B,UAAU,iBAAiB;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,OAAO,CAAC;IACf,EAAE,EAAE,OAAO,CAAC;IACZ,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;CACjC;AAMD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,iBAAiB,CAyGjC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,iBAAiB,CAAC,CAAC;AAMzC,sEAAsE;AACtE,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC;AAMF,wDAAwD;AACxD,eAAO,MAAM,WAAW,EAAE,KAuEzB,CAAC;AAMF,4CAA4C;AAC5C,eAAO,MAAM,QAAQ,EAAE,KAqDtB,CAAC;AAMF,2DAA2D;AAC3D,eAAO,MAAM,cAAc,EAAE,KAgD5B,CAAC;AAMF,sCAAsC;AACtC,eAAO,MAAM,iBAAiB,EAAE,KA2B/B,CAAC;AAMF,uCAAuC;AACvC,eAAO,MAAM,WAAW,EAAE,KA4BzB,CAAC;AAMF,gEAAgE;AAChE,eAAO,MAAM,aAAa,EAAE,KAuF3B,CAAC"}