@mhmo91/schmancy 0.9.15 → 0.9.17

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 (105) hide show
  1. package/custom-elements.json +83 -35
  2. package/dist/agent/schmancy.agent.js +297 -40
  3. package/dist/agent/schmancy.agent.js.map +1 -1
  4. package/dist/agent/schmancy.manifest.json +342 -19
  5. package/dist/autocomplete-CgWUCUU-.js.map +1 -1
  6. package/dist/autocomplete-EM0jE7X2.cjs.map +1 -1
  7. package/dist/button.cjs.map +1 -1
  8. package/dist/button.js.map +1 -1
  9. package/dist/card-BslSqOsf.cjs.map +1 -1
  10. package/dist/card-CEdgK9nb.js.map +1 -1
  11. package/dist/checkbox-Br84TiCs.js.map +1 -1
  12. package/dist/checkbox-DtcFMgZL.cjs.map +1 -1
  13. package/dist/chips-BNYOweGm.js.map +1 -1
  14. package/dist/chips-DoCu5YQb.cjs.map +1 -1
  15. package/dist/details-B8p62xmR.cjs.map +1 -1
  16. package/dist/details-CCW52lzz.js.map +1 -1
  17. package/dist/divider-CbEWg3G_.js.map +1 -1
  18. package/dist/divider-JyyFw_3J.cjs.map +1 -1
  19. package/dist/expand-BmwIPNjq.cjs.map +1 -1
  20. package/dist/expand-bFa_qVDT.js.map +1 -1
  21. package/dist/extra-BUgyMgjl.cjs.map +1 -1
  22. package/dist/extra-HwbaUnCD.js.map +1 -1
  23. package/dist/form-rCZqoAoK.js.map +1 -1
  24. package/dist/form-wI58M85H.cjs.map +1 -1
  25. package/dist/handover/agent-runtime-followups.md +1 -1
  26. package/dist/handover/agent-runtime-v1.md +3 -3
  27. package/dist/input-BGNZlfL8.cjs.map +1 -1
  28. package/dist/input-Bc3bVISm.js.map +1 -1
  29. package/dist/input-chip-CiG61y-N.js.map +1 -1
  30. package/dist/input-chip-p24lkYtY.cjs.map +1 -1
  31. package/dist/page.cjs.map +1 -1
  32. package/dist/page.js.map +1 -1
  33. package/dist/radio-group-B72sYGnS.js.map +1 -1
  34. package/dist/radio-group-B7DuNxUq.cjs.map +1 -1
  35. package/dist/scroll-CdmXRXh2.js.map +1 -1
  36. package/dist/scroll-V1rAZ9fK.cjs.map +1 -1
  37. package/dist/select-DFxoBgEf.cjs.map +1 -1
  38. package/dist/select-wFDKDLQI.js.map +1 -1
  39. package/dist/surface-0XM4DBaT.js.map +1 -1
  40. package/dist/surface-B6DA01kL.cjs.map +1 -1
  41. package/dist/switch.cjs.map +1 -1
  42. package/dist/switch.js.map +1 -1
  43. package/dist/textarea-B2544vx9.cjs.map +1 -1
  44. package/dist/textarea-CS-KdSLz.js.map +1 -1
  45. package/dist/theme-Cq_c9IO3.js.map +1 -1
  46. package/dist/theme-DU5yXaV-.cjs.map +1 -1
  47. package/dist/tree.cjs.map +1 -1
  48. package/dist/tree.js.map +1 -1
  49. package/package.json +1 -1
  50. package/src/autocomplete/autocomplete.ts +12 -1
  51. package/src/button/button.ts +6 -1
  52. package/src/button/icon-button.ts +7 -1
  53. package/src/card/actions.ts +9 -0
  54. package/src/card/card.ts +18 -0
  55. package/src/card/content.ts +9 -0
  56. package/src/card/media.ts +6 -0
  57. package/src/checkbox/checkbox.ts +7 -1
  58. package/src/chips/chips.ts +14 -0
  59. package/src/chips/input-chip.ts +6 -6
  60. package/src/details/details.ts +12 -0
  61. package/src/divider/divider.ts +11 -0
  62. package/src/expand/expand-root.component.ts +12 -0
  63. package/src/expand/expand.component.ts +14 -0
  64. package/src/extra/countries/countries.ts +10 -0
  65. package/src/extra/timezone/timezone.ts +8 -1
  66. package/src/form/form.ts +9 -2
  67. package/src/input/input.ts +11 -4
  68. package/src/layout/scroll/scroll.ts +5 -1
  69. package/src/page/page.ts +8 -11
  70. package/src/radio-group/radio-button.ts +10 -1
  71. package/src/radio-group/radio-group.ts +18 -0
  72. package/src/select/select.ts +12 -1
  73. package/src/surface/surface.ts +4 -10
  74. package/src/switch/switch.ts +7 -4
  75. package/src/textarea/textarea.ts +9 -1
  76. package/src/theme/theme.component.ts +10 -15
  77. package/src/tree/tree.ts +12 -0
  78. package/types/src/autocomplete/autocomplete.d.ts +12 -1
  79. package/types/src/button/button.d.ts +6 -1
  80. package/types/src/button/icon-button.d.ts +7 -1
  81. package/types/src/card/actions.d.ts +9 -0
  82. package/types/src/card/card.d.ts +18 -0
  83. package/types/src/card/content.d.ts +9 -0
  84. package/types/src/card/media.d.ts +6 -0
  85. package/types/src/checkbox/checkbox.d.ts +7 -1
  86. package/types/src/chips/chips.d.ts +14 -0
  87. package/types/src/chips/input-chip.d.ts +6 -6
  88. package/types/src/details/details.d.ts +12 -0
  89. package/types/src/divider/divider.d.ts +11 -0
  90. package/types/src/expand/expand-root.component.d.ts +12 -0
  91. package/types/src/expand/expand.component.d.ts +14 -0
  92. package/types/src/extra/countries/countries.d.ts +10 -0
  93. package/types/src/extra/timezone/timezone.d.ts +8 -1
  94. package/types/src/form/form.d.ts +9 -2
  95. package/types/src/input/input.d.ts +11 -4
  96. package/types/src/layout/scroll/scroll.d.ts +5 -1
  97. package/types/src/page/page.d.ts +8 -11
  98. package/types/src/radio-group/radio-button.d.ts +10 -1
  99. package/types/src/radio-group/radio-group.d.ts +18 -0
  100. package/types/src/select/select.d.ts +12 -1
  101. package/types/src/surface/surface.d.ts +4 -10
  102. package/types/src/switch/switch.d.ts +7 -4
  103. package/types/src/textarea/textarea.d.ts +9 -1
  104. package/types/src/theme/theme.component.d.ts +10 -15
  105. package/types/src/tree/tree.d.ts +12 -0
@@ -8,7 +8,15 @@ import style from './textarea.scss?inline'
8
8
  import { TailwindElement } from '@mixins/index'
9
9
 
10
10
  /**
11
- * Textarea component with auto-resize and form integration.
11
+ * Multi-line text input with auto-resize and form integration. Form-associated.
12
+ *
13
+ * @element schmancy-textarea
14
+ * @summary Textarea for freeform text — notes, descriptions, messages. Auto-grows with content up to a maxlength.
15
+ * @example
16
+ * <schmancy-textarea name="description" label="Description" rows="4" maxlength="500"></schmancy-textarea>
17
+ * @platform textarea change - Schmancy-skinned native `<textarea>`. Degrades to styled native `<textarea>` if the tag never registers.
18
+ * @fires input - On every keystroke.
19
+ * @fires change - On blur.
12
20
  *
13
21
  * @prop {string} name - Name attribute for form submission
14
22
  * @prop {string} value - Current value of the textarea
@@ -27,28 +27,23 @@ const $colorScheme = new Observable<string>(subscriber => {
27
27
  })
28
28
 
29
29
  /**
30
- * SchmancyThemeComponent - Provides theming capabilities for Schmancy components.
31
- *
32
- * This component manages color schemes, primary colors, and theme distribution
33
- * throughout the component tree. It can be used at the root level or nested
34
- * to provide different themes to different parts of the application.
30
+ * Theme provider generates a Material 3 palette from a seed color, resolves light/dark scheme, and publishes the token set to descendants as CSS custom properties (var(--schmancy-sys-color-…)).
35
31
  *
36
32
  * @element schmancy-theme
37
- *
33
+ * @summary Always wrap your app root in a `<schmancy-theme root scheme="auto" color="#…">`. Nest additional `<schmancy-theme>` blocks to override theming for a subtree.
38
34
  * @example
39
- * ```html
40
35
  * <!-- Root theme provider -->
41
- * <schmancy-theme color="#6200ee" scheme="auto" root>
36
+ * <schmancy-theme root scheme="auto" color="#6200ee">
42
37
  * <your-app></your-app>
43
38
  * </schmancy-theme>
44
- *
45
- * <!-- Nested theme for specific section -->
46
- * <schmancy-theme color="#2196f3" scheme="dark">
47
- * <div class="dark-section">
48
- * <!-- Components here will use blue dark theme -->
49
- * </div>
39
+ * @example
40
+ * <!-- Nested theme for a specific section -->
41
+ * <schmancy-theme scheme="dark" color="#2196f3">
42
+ * <schmancy-surface fill="all">
43
+ * <!-- Components here use the blue dark theme -->
44
+ * </schmancy-surface>
50
45
  * </schmancy-theme>
51
- * ```
46
+ * @platform div - Styled `<div>` that publishes theme tokens via inline `--schmancy-sys-color-*` custom properties. Degrades to a plain div if the tag never registers — children lose theming and fall back to browser defaults.
52
47
  */
53
48
  @customElement('schmancy-theme')
54
49
  export class SchmancyThemeComponent extends $LitElement(tailwindStyles) {
package/src/tree/tree.ts CHANGED
@@ -4,7 +4,19 @@ import { customElement, property, query } from 'lit/decorators.js'
4
4
  import { fromEvent, merge, switchMap, takeUntil, tap, zip } from 'rxjs'
5
5
 
6
6
  /**
7
+ * Expandable tree node — a recursive disclosure widget. One root slot, one default slot for child nodes. Each node can itself contain schmancy-tree children.
8
+ *
7
9
  * @element schmancy-tree
10
+ * @summary Use for hierarchical navigation / file-explorer layouts. Each level is a schmancy-tree with a `root` slot (the parent label) and default slot (the children, which may be more schmancy-trees).
11
+ * @example
12
+ * <schmancy-tree>
13
+ * <schmancy-list-item slot="root">src/</schmancy-list-item>
14
+ * <schmancy-tree>
15
+ * <schmancy-list-item slot="root">components/</schmancy-list-item>
16
+ * <schmancy-list-item>button.ts</schmancy-list-item>
17
+ * </schmancy-tree>
18
+ * </schmancy-tree>
19
+ * @platform details toggle - Recursive `<details>`-like disclosure. Degrades to a plain nested list if the tag never registers — loses expand/collapse but stays navigable.
8
20
  * @slot root - The root element of the tree
9
21
  * @slot - The children of the tree
10
22
  */
@@ -6,7 +6,18 @@ export type SchmancyAutocompleteChangeEvent = CustomEvent<{
6
6
  }>;
7
7
  declare const SchmancyAutocomplete_base: CustomElementConstructor & import("@mixins/index").Constructor<import("lit").LitElement> & import("@mixins/index").Constructor<import("@mixins/index").IBaseMixin>;
8
8
  /**
9
- * Autocomplete input component with filtering and multi-select support.
9
+ * Combobox with type-ahead filtering over a list of `<schmancy-option>` children. Single or multi-select. Form-associated.
10
+ *
11
+ * @element schmancy-autocomplete
12
+ * @summary Use when users need to pick from a known list of options but the list is too long for a plain select dropdown. Prefer schmancy-select for short static lists.
13
+ * @example
14
+ * <schmancy-autocomplete name="country" label="Country" placeholder="Start typing…">
15
+ * <schmancy-option value="US">United States</schmancy-option>
16
+ * <schmancy-option value="CA">Canada</schmancy-option>
17
+ * <schmancy-option value="GB">United Kingdom</schmancy-option>
18
+ * </schmancy-autocomplete>
19
+ * @platform combobox change - Composed of a schmancy-input + a floating listbox populated from `<schmancy-option>` children. Multi-select renders selections as schmancy-input-chip chips. Degrades to a datalist-backed native input if the tag never registers.
20
+ * @fires change - `SchmancyAutocompleteChangeEvent` with `{ value }` (single) or `{ value, values }` (multi).
10
21
  *
11
22
  * @prop {string} name - Name attribute for form submission
12
23
  * @prop {string} label - Label text displayed above the input
@@ -8,8 +8,13 @@ export type ButtonVariant = 'elevated' | 'filled' | 'filled tonal' | 'tonal' | '
8
8
  export type ButtonColor = 'primary' | 'secondary' | 'success' | 'error' | 'warning' | 'info' | 'neutral';
9
9
  declare const SchmancyButton_base: CustomElementConstructor & import("@mixins/index").Constructor<LitElement> & import("@mixins/index").Constructor<import("@mixins/index").IBaseMixin>;
10
10
  /**
11
- * A button component.
11
+ * Material Design button — primary interactive surface for triggering actions or navigation.
12
12
  * @element schmancy-button
13
+ * @summary Trigger actions or navigate. Form-associated; participates in native form submission.
14
+ * @example
15
+ * <schmancy-button variant="filled" @click=${() => save()}>Save</schmancy-button>
16
+ * <schmancy-button variant="outlined" href="/next">Continue</schmancy-button>
17
+ * @platform button click - Schmancy-skinned native `<button type="submit">`. When `href` is set, degrades to `<a href="…">`. Falls back to plain `<button>` styled with Tailwind if the tag never registers.
13
18
  * @slot - The default slot.
14
19
  * @slot prefix - The prefix slot.
15
20
  * @slot suffix - The suffix slot.
@@ -2,8 +2,14 @@ import { LitElement, PropertyValueMap } from 'lit';
2
2
  import { ButtonVariant } from './button';
3
3
  declare const SchmnacyIconButton_base: CustomElementConstructor & import("@mixins/index").Constructor<LitElement> & import("@mixins/index").Constructor<import("@mixins/index").IBaseMixin>;
4
4
  /**
5
- * An icon button component.
5
+ * Icon-only button for toolbar actions, close affordances, or overflow menus.
6
6
  * @element schmancy-icon-button
7
+ * @summary Compact round/square button wrapping a single icon glyph. Form-associated like schmancy-button.
8
+ * @example
9
+ * <schmancy-icon-button aria-label="Close" @click=${() => close()}>
10
+ * <schmancy-icon>close</schmancy-icon>
11
+ * </schmancy-icon-button>
12
+ * @platform button click - Schmancy-skinned native `<button>` (or `<a>` when `href` is set). aria-label is required for a11y because there's no text content.
7
13
  * @slot - The default slot (usually an icon or glyph).
8
14
  * @csspart base - The underlying native `<button>` (or `<a>` when `href` is set).
9
15
  */
@@ -1,6 +1,15 @@
1
1
  declare const SchmancyCardAction_base: import("@mixins/index").Constructor<CustomElementConstructor> & import("@mixins/index").Constructor<import("@mixins/index").ITailwindElementMixin> & import("@mixins/index").Constructor<import("lit").LitElement> & import("@mixins/index").Constructor<import("@mixins/index").IBaseMixin>;
2
2
  /**
3
+ * Action row of a schmancy-card — holds the card's buttons / links (typically aligned bottom-right).
4
+ *
3
5
  * @element schmancy-card-action
6
+ * @summary Always nested inside schmancy-card. Holds the primary + secondary CTAs for the card.
7
+ * @example
8
+ * <schmancy-card-action>
9
+ * <schmancy-button variant="text">Cancel</schmancy-button>
10
+ * <schmancy-button variant="filled">Save</schmancy-button>
11
+ * </schmancy-card-action>
12
+ * @platform div - Styled flex container. Degrades to a plain div if the tag never registers.
4
13
  * @slot - The content of the action
5
14
  */
6
15
  export default class SchmancyCardAction extends SchmancyCardAction_base {
@@ -1,5 +1,23 @@
1
1
  import { LitElement } from 'lit';
2
2
  declare const SchmancyCard_base: import("@mixins/index").Constructor<CustomElementConstructor> & import("@mixins/index").Constructor<import("@mixins/index").ITailwindElementMixin> & import("@mixins/index").Constructor<LitElement> & import("@mixins/index").Constructor<import("@mixins/index").IBaseMixin>;
3
+ /**
4
+ * Material Design card — a surface-level container for grouping related content with media / content / actions slots.
5
+ *
6
+ * @element schmancy-card
7
+ * @summary Use for discrete pieces of content that appear in a list (a product, a note, a message). Combine with schmancy-card-media / schmancy-card-content / schmancy-card-action children.
8
+ * @example
9
+ * <schmancy-card type="elevated" href="/items/42">
10
+ * <schmancy-card-media src="/thumb.jpg" alt="Thumbnail"></schmancy-card-media>
11
+ * <schmancy-card-content>
12
+ * <h3>Title</h3>
13
+ * <p>One-line description of the card's content.</p>
14
+ * </schmancy-card-content>
15
+ * <schmancy-card-action>
16
+ * <schmancy-button variant="text">Open</schmancy-button>
17
+ * </schmancy-card-action>
18
+ * </schmancy-card>
19
+ * @platform div - Styled `<div>`; becomes an `<a>` when `href` is set so the whole card is a single interactive surface. Degrades to a plain div/a if the tag never registers.
20
+ */
3
21
  export default class SchmancyCard extends SchmancyCard_base {
4
22
  protected static shadowRootOptions: {
5
23
  mode: string;
@@ -1,6 +1,15 @@
1
1
  declare const SchmancyCardContent_base: import("@mixins/index").Constructor<CustomElementConstructor> & import("@mixins/index").Constructor<import("@mixins/index").ITailwindElementMixin> & import("@mixins/index").Constructor<import("lit").LitElement> & import("@mixins/index").Constructor<import("@mixins/index").IBaseMixin>;
2
2
  /**
3
+ * Content region of a schmancy-card — holds the card's headline, supporting text, and inline controls.
4
+ *
3
5
  * @element schmancy-card-content
6
+ * @summary Always nested inside schmancy-card. The padded content block between the media and action rows.
7
+ * @example
8
+ * <schmancy-card-content>
9
+ * <h3>Card title</h3>
10
+ * <p>Supporting text that describes the card's subject.</p>
11
+ * </schmancy-card-content>
12
+ * @platform div - Styled `<div>` with padding. Degrades to a plain div if the tag never registers.
4
13
  */
5
14
  export default class SchmancyCardContent extends SchmancyCardContent_base {
6
15
  protected render(): unknown;
@@ -1,6 +1,12 @@
1
1
  declare const SchmancyCardMedia_base: import("@mixins/index").Constructor<CustomElementConstructor> & import("@mixins/index").Constructor<import("@mixins/index").ITailwindElementMixin> & import("@mixins/index").Constructor<import("lit").LitElement> & import("@mixins/index").Constructor<import("@mixins/index").IBaseMixin>;
2
2
  /**
3
+ * Media region of a schmancy-card — the image / thumbnail at the top of the card.
4
+ *
3
5
  * @element schmancy-card-media
6
+ * @summary Always nested inside schmancy-card. Pass `src` + `alt` props or slot an `<img>` / `<video>` for custom media.
7
+ * @example
8
+ * <schmancy-card-media src="/thumb.jpg" alt="Product photo"></schmancy-card-media>
9
+ * @platform img - Renders an `<img>` (or wraps a slotted media element). Degrades to a styled `<img>` if the tag never registers.
4
10
  */
5
11
  export default class SchmancyCardMedia extends SchmancyCardMedia_base {
6
12
  src: string;
@@ -5,9 +5,15 @@ export type schmancyCheckBoxChangeEvent = CustomEvent<{
5
5
  }>;
6
6
  declare const SchmancyCheckboxElement_base: import("@mixins/index").Constructor<CustomElementConstructor> & import("@mixins/index").Constructor<import("@mixins/index").ITailwindElementMixin> & import("@mixins/index").Constructor<LitElement> & import("@mixins/index").Constructor<import("@mixins/index").IBaseMixin>;
7
7
  /**
8
+ * Binary checkbox for multi-select or boolean form fields. Wraps Material Web's `<md-checkbox>`; form-associated.
9
+ *
8
10
  * @element schmancy-checkbox
11
+ * @summary Use for "select many from a list" or any boolean that's part of a form submission. Prefer schmancy-switch for immediate-effect toggles.
12
+ * @example
13
+ * <schmancy-checkbox name="tos" required>I accept the terms</schmancy-checkbox>
14
+ * @platform checkbox change - Wraps `<md-checkbox>` from `@material/web`. Degrades to styled native `<input type="checkbox">` if the tag never registers.
9
15
  * @slot - The label for the checkbox.
10
- * @fires valueChange - Event fired when the checkbox value changes.
16
+ * @fires valueChange - `CustomEvent<{ value: boolean }>` when the checkbox is toggled.
11
17
  **/
12
18
  declare class SchmancyCheckboxElement extends SchmancyCheckboxElement_base {
13
19
  protected static shadowRootOptions: {
@@ -2,6 +2,20 @@ import { PropertyValues } from 'lit';
2
2
  import type { FilterChipChangeEvent as SchmancyChipChangeEvent } from './filter-chip';
3
3
  import { SchmancyFilterChip as SchmancyChip } from './filter-chip';
4
4
  declare const SchmancyChips_base: CustomElementConstructor & import("@mixins/index").Constructor<import("lit").LitElement> & import("@mixins/index").Constructor<import("@mixins/index").IBaseMixin>;
5
+ /**
6
+ * Filter-chip group — container for selectable `<schmancy-chip>` children. Single or multi-select.
7
+ *
8
+ * @element schmancy-chips
9
+ * @summary Use for filtering or choosing from 2–8 mutually-visible options ("Status: active / paused / archived"). Prefer schmancy-select when the list gets long or vertical.
10
+ * @example
11
+ * <schmancy-chips multi @change=${(e) => this.filters = e.detail.values}>
12
+ * <schmancy-chip value="active">Active</schmancy-chip>
13
+ * <schmancy-chip value="paused">Paused</schmancy-chip>
14
+ * <schmancy-chip value="archived">Archived</schmancy-chip>
15
+ * </schmancy-chips>
16
+ * @platform chip-group change - No direct native equivalent. Degrades to a styled schmancy-select with similar semantics if the tag never registers.
17
+ * @fires change - `CustomEvent<{ value: string }>` (single) or `{ values: string[] }` (multi).
18
+ */
5
19
  export default class SchmancyChips extends SchmancyChips_base {
6
20
  private value$;
7
21
  private values$;
@@ -1,7 +1,7 @@
1
1
  import { LitElement } from 'lit';
2
2
  declare const SchmancyInputChip_base: import("../../mixins").Constructor<CustomElementConstructor> & import("../../mixins").Constructor<import("@mixins/tailwind.mixin").ITailwindElementMixin> & import("../../mixins").Constructor<LitElement> & import("../../mixins").Constructor<import("../../mixins").IBaseMixin>;
3
3
  /**
4
- * Input chip component - represents user-provided information that can be removed.
4
+ * Input chip displays user-provided information (tags, recipients, filters) that can be removed but not toggled.
5
5
  *
6
6
  * IMPORTANT: Per Material Design 3 specification, input chips do NOT have selected state.
7
7
  * They represent discrete pieces of user input (like entered tags, selections from lists, etc.)
@@ -13,15 +13,15 @@ declare const SchmancyInputChip_base: import("../../mixins").Constructor<CustomE
13
13
  * - Tags or keywords entered by the user
14
14
  * - Selected items from a multi-select dropdown
15
15
  *
16
- * @fires click - Optional click event on chip body (value)
17
- * @fires remove - Dispatched when remove button is clicked (value)
18
- *
16
+ * @element schmancy-input-chip
17
+ * @summary Removable pill that represents a single user input value. No selected state — use schmancy-chip (filter chip) for toggleable options.
19
18
  * @example
20
- * ```html
21
19
  * <schmancy-input-chip value="john@example.com" avatar="/avatars/john.jpg">
22
20
  * John Doe
23
21
  * </schmancy-input-chip>
24
- * ```
22
+ * @platform chip remove - No native equivalent. Composed of a labeled pill + close button. Degrades to a styled `<span>` with a trailing close `<button>` if the tag never registers.
23
+ * @fires click - Optional click event on chip body (value)
24
+ * @fires remove - Dispatched when remove button is clicked (value)
25
25
  */
26
26
  export declare class SchmancyInputChip extends SchmancyInputChip_base {
27
27
  /** Value identifier for the chip */
@@ -1,5 +1,17 @@
1
1
  import { LitElement } from 'lit';
2
2
  declare const SchmancyDetails_base: import("@mixins/index").Constructor<import("@mixins/index").ISurfaceMixin> & import("@mixins/index").Constructor<CustomElementConstructor> & import("@mixins/index").Constructor<import("@mixins/index").ITailwindElementMixin> & import("@mixins/index").Constructor<LitElement> & import("@mixins/index").Constructor<import("@mixins/index").IBaseMixin>;
3
+ /**
4
+ * Expandable disclosure panel — a styled `<details>` / `<summary>` pair with animated expand + overlay options.
5
+ *
6
+ * @element schmancy-details
7
+ * @summary Use for progressive-disclosure content: FAQs, collapsible settings sections, accordion-style lists. Prefer schmancy-expand for full-page accordions where only one section can be open at a time.
8
+ * @example
9
+ * <schmancy-details summary="Shipping details">
10
+ * <p>Order ships in 2 business days.</p>
11
+ * </schmancy-details>
12
+ * @platform details toggle - Wraps native `<details>`/`<summary>`. Degrades to the native element if the tag never registers — same keyboard accessibility, just no animation.
13
+ * @fires toggle - When the open state changes (bubbles from the native `<details>`).
14
+ */
3
15
  export default class SchmancyDetails extends SchmancyDetails_base {
4
16
  protected static shadowRootOptions: {
5
17
  mode: "open";
@@ -1,4 +1,15 @@
1
1
  declare const SchmancyDivider_base: CustomElementConstructor & import("@mixins/index").Constructor<import("lit").LitElement> & import("@mixins/index").Constructor<import("@mixins/index").IBaseMixin>;
2
+ /**
3
+ * Thin horizontal (or vertical) separator rule between sections of content.
4
+ *
5
+ * @element schmancy-divider
6
+ * @summary Semantic separator between groups — list items, menu sections, content blocks. Uses outline theme token.
7
+ * @example
8
+ * <schmancy-list-item>First</schmancy-list-item>
9
+ * <schmancy-divider></schmancy-divider>
10
+ * <schmancy-list-item>Second</schmancy-list-item>
11
+ * @platform hr - Styled horizontal rule. Degrades to a native `<hr>` if the tag never registers.
12
+ */
2
13
  export default class SchmancyDivider extends SchmancyDivider_base {
3
14
  outline: 'default' | 'variant';
4
15
  vertical: boolean;
@@ -2,6 +2,18 @@ import { nothing } from 'lit';
2
2
  import type { TSurfaceColor } from '@schmancy/types';
3
3
  import '../surface/surface.js';
4
4
  declare const SchmancyExpandRoot_base: import("@mixins/index").Constructor<import("@mixins/index").ISurfaceMixin> & import("@mixins/index").Constructor<CustomElementConstructor> & import("@mixins/index").Constructor<import("@mixins/index").ITailwindElementMixin> & import("@mixins/index").Constructor<import("lit").LitElement> & import("@mixins/index").Constructor<import("@mixins/index").IBaseMixin>;
5
+ /**
6
+ * Container for schmancy-expand children — coordinates mutual-exclusion so only one child is open at a time. Also renders the portal panel that the active child expands into.
7
+ *
8
+ * @element schmancy-expand-root
9
+ * @summary Always wrap a group of schmancy-expand children. Without a root, each schmancy-expand behaves independently (which is usually not what you want — prefer schmancy-details for that).
10
+ * @example
11
+ * <schmancy-expand-root>
12
+ * <schmancy-expand summary="Step 1">…</schmancy-expand>
13
+ * <schmancy-expand summary="Step 2">…</schmancy-expand>
14
+ * </schmancy-expand-root>
15
+ * @platform div - Coordinating wrapper. Degrades to a plain div if the tag never registers — children fall back to independent `<details>` behavior.
16
+ */
5
17
  export declare class SchmancyExpandRoot extends SchmancyExpandRoot_base {
6
18
  type: TSurfaceColor;
7
19
  isOpen: boolean;
@@ -1,6 +1,20 @@
1
1
  /** Dispatch this event on window to close whichever schmancy-expand is currently open */
2
2
  export declare const SCHMANCY_EXPAND_REQUEST_CLOSE = "schmancy-expand-request-close";
3
3
  declare const SchmancyExpand_base: import("@mixins/index").Constructor<CustomElementConstructor> & import("@mixins/index").Constructor<import("@mixins/index").ITailwindElementMixin> & import("@mixins/index").Constructor<import("lit").LitElement> & import("@mixins/index").Constructor<import("@mixins/index").IBaseMixin>;
4
+ /**
5
+ * Accordion-style section — expands on click, coordinates with siblings via schmancy-expand-root to close any sibling when a new one opens. Only one schmancy-expand can be open at a time within the same root.
6
+ *
7
+ * @element schmancy-expand
8
+ * @summary Use for grouped progressive-disclosure where only one section should be open at a time. Prefer schmancy-details when sections should be independent.
9
+ * @example
10
+ * <schmancy-expand-root>
11
+ * <schmancy-expand summary="Billing">Billing form…</schmancy-expand>
12
+ * <schmancy-expand summary="Shipping">Shipping form…</schmancy-expand>
13
+ * <schmancy-expand summary="Review">Order review…</schmancy-expand>
14
+ * </schmancy-expand-root>
15
+ * @platform details toggle - Schmancy-skinned accordion section. Degrades to `<details>` if the tag never registers — loses mutual-exclusion behavior but stays functional.
16
+ * @fires toggle - When the open state changes.
17
+ */
4
18
  export default class SchmancyExpand extends SchmancyExpand_base {
5
19
  summary: string;
6
20
  open: boolean;
@@ -1,4 +1,14 @@
1
1
  declare const SchmancyCountriesSelect_base: CustomElementConstructor & import("@mixins/index").Constructor<import("lit").LitElement> & import("@mixins/index").Constructor<import("@mixins/index").IBaseMixin>;
2
+ /**
3
+ * Country picker — type-ahead autocomplete over the ISO 3166-1 country list. Form-associated.
4
+ *
5
+ * @element schmancy-select-countries
6
+ * @summary Drop-in replacement for schmancy-autocomplete when the options are specifically "every country". Pre-seeds the list from countries.data.
7
+ * @example
8
+ * <schmancy-select-countries name="country" label="Shipping country" required></schmancy-select-countries>
9
+ * @platform combobox change - Composes schmancy-autocomplete with a static options list. Value is the 2-letter ISO code.
10
+ * @fires change - `SchmancyAutocompleteChangeEvent` with `{ value: string }` (the ISO code).
11
+ */
2
12
  export declare class SchmancyCountriesSelect extends SchmancyCountriesSelect_base {
3
13
  static formAssociated: boolean;
4
14
  private internals?;
@@ -1,6 +1,13 @@
1
1
  declare const SchmancyTimezonesSelect_base: CustomElementConstructor & import("@mixins/index").Constructor<import("lit").LitElement> & import("@mixins/index").Constructor<import("@mixins/index").IBaseMixin>;
2
2
  /**
3
- * Timezone selector component with autocomplete filtering.
3
+ * Timezone picker type-ahead autocomplete over the IANA tz database. Form-associated.
4
+ *
5
+ * @element schmancy-select-timezones
6
+ * @summary Drop-in replacement for schmancy-autocomplete when the options are IANA timezone names. Value is the IANA identifier ("America/Los_Angeles").
7
+ * @example
8
+ * <schmancy-select-timezones name="tz" label="Timezone" value="America/New_York"></schmancy-select-timezones>
9
+ * @platform combobox change - Composes schmancy-autocomplete with a static IANA timezones list.
10
+ * @fires change - `SchmancyAutocompleteChangeEvent` with `{ value: string }` (the IANA tz name).
4
11
  *
5
12
  * @prop {string} name - Name attribute for form submission
6
13
  * @prop {string} value - Selected timezone value
@@ -1,6 +1,5 @@
1
1
  /**
2
- * A thin ergonomic wrapper around a native `<form>` element. Its children are
3
- * reparented into a `<form>` element in light DOM on connection, so:
2
+ * Ergonomic wrapper around a native `<form>`. Children are reparented into a light-DOM `<form>` on connection so form-associated custom elements resolve `internals.form` via native DOM ancestry.
4
3
  *
5
4
  * - Form-associated custom elements (FACE) resolve their `internals.form`
6
5
  * correctly via native DOM ancestry.
@@ -16,6 +15,14 @@
16
15
  * lifting is the platform's.
17
16
  *
18
17
  * @element schmancy-form
18
+ * @summary Always wrap form-associated schmancy components in schmancy-form (or a native `<form>`) so `new FormData(form)` just works.
19
+ * @example
20
+ * <schmancy-form @submit=${(e) => console.log(Object.fromEntries(e.detail))}>
21
+ * <schmancy-input name="email" type="email" required></schmancy-input>
22
+ * <schmancy-input name="password" type="password" required></schmancy-input>
23
+ * <schmancy-button type="submit" variant="filled">Sign in</schmancy-button>
24
+ * </schmancy-form>
25
+ * @platform form submit - Light-DOM native `<form>` element. Degrades to a `<form>` if the tag never registers — same semantics, just no CustomEvent translation.
19
26
  * @fires submit - `CustomEvent<FormData>` emitted when the form is submitted.
20
27
  * @fires reset - Emitted after the underlying form resets.
21
28
  */
@@ -28,11 +28,18 @@ export type SchmancyInputEnterEvent = CustomEvent<EventDetails>;
28
28
  export type InputSize = 'xxs' | 'xs' | 'sm' | 'md' | 'lg';
29
29
  declare const SchmancyInput_base: import("@mixins/index").Constructor<import("@mixins/index").IFormFieldMixin> & import("@mixins/index").Constructor<import("@mixins/index").ITailwindElementMixin> & import("@mixins/index").Constructor<LitElement> & import("@mixins/index").Constructor<import("@mixins/index").IBaseMixin>;
30
30
  /**
31
- * Enhanced version of the SchmancyInput component with improved form integration
32
- * and compatibility with legacy API.
31
+ * Single-line text input the primary form-text primitive. Form-associated via ElementInternals, so it participates in native `<form>` submission, validation, and reset without additional wiring.
33
32
  *
34
- * This component uses the native form association API and maintains parity with
35
- * native input behaviors while providing a stylish, accessible interface.
33
+ * @element schmancy-input
34
+ * @summary Text input with Material Design styling, native form integration, and RxJS-debounced input/change/enter events.
35
+ * @example
36
+ * <schmancy-form @submit=${onSubmit}>
37
+ * <schmancy-input name="email" type="email" label="Email" required></schmancy-input>
38
+ * </schmancy-form>
39
+ * @platform input change - Schmancy-skinned native `<input>`. Degrades to `<input class="…">` styled via Tailwind if the tag never registers.
40
+ * @fires input - `CustomEvent<{value: string}>` on every keystroke.
41
+ * @fires change - `CustomEvent<{value: string}>` on blur/change.
42
+ * @fires enter - `CustomEvent<{value: string}>` when user presses Enter.
36
43
  *
37
44
  * @prop {string} name - Name attribute for form submission (inherited from FormFieldMixin)
38
45
  * @prop {string} label - Label text for the form field (inherited from FormFieldMixin)
@@ -41,7 +41,11 @@ declare global {
41
41
  }
42
42
  declare const SchmancyScroll_base: import("@mixins/index").Constructor<CustomElementConstructor> & import("@mixins/index").Constructor<import("@mixins/index").ITailwindElementMixin> & import("@mixins/index").Constructor<import("lit").LitElement> & import("@mixins/index").Constructor<import("@mixins/index").IBaseMixin>;
43
43
  /**
44
- * A custom scrollable container with enhanced features.
44
+ * Scrollable container with debounced scroll events, horizontal/vertical direction, optional hidden scrollbar, and programmatic scrollTo via command events or refs.
45
+ *
46
+ * @element schmancy-scroll
47
+ * @summary Use anywhere you'd reach for `overflow: auto` but also need debounced scroll events (for sticky headers, scroll spies, virtualization triggers) or the ability to drive scroll from elsewhere in the app by dispatching a schmancy-scroll-command event.
48
+ * @platform div - Styled scrollable `<div>`. Degrades to a plain scrollable div if the tag never registers — loses the debounced scroll event and the command-bus integration.
45
49
  *
46
50
  * @fires {SchmancyScrollEvent} scroll - Fired when scrolling occurs (with a configurable debounce)
47
51
  * @slot - Default slot for content to be scrolled
@@ -1,20 +1,17 @@
1
1
  import '../layout/scroll/scroll';
2
2
  declare const SchmancyPage_base: CustomElementConstructor & import("@mixins/index").Constructor<import("lit").LitElement> & import("@mixins/index").Constructor<import("@mixins/index").IBaseMixin>;
3
3
  /**
4
- * Native mobile-like page container.
5
- * Prevents double-tap zoom, pull-to-refresh, rubber-banding.
6
- * Automatically fills remaining viewport height.
4
+ * Mobile-first page container — fills remaining viewport height, suppresses double-tap zoom / pull-to-refresh / rubber-banding. Lays children in a CSS grid whose row template is `rows`.
7
5
  *
8
6
  * @element schmancy-page
9
- *
7
+ * @summary The root of any app view — wraps header / main / footer children in a full-viewport grid. Use rows="auto_1fr_auto" to make the middle child scroll while header/footer stay pinned.
10
8
  * @example
11
- * html`
12
- * <schmancy-page rows="1fr_2fr_auto">
13
- * <header>App Bar</header>
14
- * <main>Scrollable content</main>
15
- * <footer>Navigation</footer>
16
- * </schmancy-page>
17
- * `
9
+ * <schmancy-page rows="auto_1fr_auto">
10
+ * <schmancy-nav-drawer-appbar>Title</schmancy-nav-drawer-appbar>
11
+ * <main>Scrollable content</main>
12
+ * <schmancy-navigation-bar></schmancy-navigation-bar>
13
+ * </schmancy-page>
14
+ * @platform div - Full-height CSS-grid container. Degrades to a plain div if the tag never registers — children still flow vertically but without the height fill and gesture suppression.
18
15
  */
19
16
  export declare class SchmancyPage extends SchmancyPage_base {
20
17
  /** Custom grid-template-rows using underscores (e.g. "1fr_2fr_auto") */
@@ -1,6 +1,15 @@
1
1
  declare const RadioButton_base: import("@mixins/index").Constructor<import("@mixins/index").IFormFieldMixin> & import("@mixins/index").Constructor<CustomElementConstructor> & import("@mixins/index").Constructor<import("@mixins/index").ITailwindElementMixin> & import("@mixins/index").Constructor<import("lit").LitElement> & import("@mixins/index").Constructor<import("@mixins/index").IBaseMixin>;
2
2
  /**
3
- * Radio button component for use within radio groups.
3
+ * Single radio button always rendered as a child of `<schmancy-radio-group>`, never standalone.
4
+ *
5
+ * @element schmancy-radio-button
6
+ * @summary Low-level primitive. Use schmancy-radio-group and pass `.options` for the common path; only instantiate schmancy-radio-button directly when you need per-button custom rendering.
7
+ * @example
8
+ * <schmancy-radio-group name="plan">
9
+ * <schmancy-radio-button value="free">Free</schmancy-radio-button>
10
+ * <schmancy-radio-button value="pro" checked>Pro</schmancy-radio-button>
11
+ * </schmancy-radio-group>
12
+ * @platform radio change - Schmancy-skinned `<input type="radio">` semantics. Degrades to native radio if the tag never registers.
4
13
  *
5
14
  * @prop {string} name - Name attribute for grouping radio buttons
6
15
  * @prop {string} value - Value of this radio button
@@ -6,6 +6,24 @@ export type SchmancyRadioGroupChangeEvent = CustomEvent<{
6
6
  value: string;
7
7
  }>;
8
8
  declare const RadioGroup_base: import("@mixins/index").Constructor<import("@mixins/index").IFormFieldMixin> & import("@mixins/index").Constructor<CustomElementConstructor> & import("@mixins/index").Constructor<import("@mixins/index").ITailwindElementMixin> & import("@mixins/index").Constructor<import("lit").LitElement> & import("@mixins/index").Constructor<import("@mixins/index").IBaseMixin>;
9
+ /**
10
+ * Radio-button group — single-select from a static list of mutually-exclusive options. Form-associated.
11
+ *
12
+ * @element schmancy-radio-group
13
+ * @summary Use for 2–5 mutually-exclusive options where all should stay visible ("Shipping: standard / express / overnight"). Prefer schmancy-select when the list grows.
14
+ * @example
15
+ * <schmancy-radio-group
16
+ * name="shipping"
17
+ * label="Shipping"
18
+ * .options=${[
19
+ * { label: 'Standard (5 days)', value: 'standard' },
20
+ * { label: 'Express (2 days)', value: 'express' },
21
+ * { label: 'Overnight', value: 'overnight' },
22
+ * ]}
23
+ * ></schmancy-radio-group>
24
+ * @platform radiogroup change - Renders schmancy-radio-button children. Degrades to a fieldset with native `<input type="radio" name="…">` siblings if the tag never registers.
25
+ * @fires change - `SchmancyRadioGroupChangeEvent` with the selected `value`.
26
+ */
9
27
  export declare class RadioGroup extends RadioGroup_base {
10
28
  label: string;
11
29
  name: string;
@@ -4,7 +4,18 @@ export type SchmancySelectChangeEvent = CustomEvent<{
4
4
  }>;
5
5
  declare const SchmancySelect_base: CustomElementConstructor & import("@mixins/index").Constructor<import("lit").LitElement> & import("@mixins/index").Constructor<import("@mixins/index").IBaseMixin>;
6
6
  /**
7
- * Select dropdown component with single and multi-select support.
7
+ * Dropdown selector single or multi-select from a list of `<schmancy-option>` children. Form-associated.
8
+ *
9
+ * @element schmancy-select
10
+ * @summary Material Design dropdown with type-to-filter, keyboard nav, single or multi-select. Options are declared as `<schmancy-option>` children; value / values props sync with selection.
11
+ * @example
12
+ * <schmancy-select name="priority" label="Priority" value="medium">
13
+ * <schmancy-option value="low">Low</schmancy-option>
14
+ * <schmancy-option value="medium">Medium</schmancy-option>
15
+ * <schmancy-option value="high">High</schmancy-option>
16
+ * </schmancy-select>
17
+ * @platform select change - Floating-UI-positioned listbox. Degrades to native `<select>` styled via Tailwind if the tag never registers, though multi-select UX is lost.
18
+ * @fires change - `SchmancySelectChangeEvent` with `{ value }` (single) or `{ value: string[] }` (multi).
8
19
  *
9
20
  * @prop {string} name - Name attribute for form submission
10
21
  * @prop {string} label - Label text displayed above the select
@@ -5,22 +5,16 @@ export declare const SchmancySurfaceTypeContext: {
5
5
  export type { SchmancySurfaceFill, SchmancySurfaceRounded, SchmancySurfaceElevation } from '@mixins/surface.mixin';
6
6
  declare const SchmancySurface_base: import("../../mixins").Constructor<import("@mixins/surface.mixin").ISurfaceMixin> & import("../../mixins").Constructor<CustomElementConstructor> & import("../../mixins").Constructor<import("@mixins/tailwind.mixin").ITailwindElementMixin> & import("../../mixins").Constructor<import("lit").LitElement> & import("../../mixins").Constructor<import("../../mixins").IBaseMixin>;
7
7
  /**
8
- * `<schmancy-surface>` component
9
- *
10
- * This component renders a styled container that adapts its dimensions based on the `fill` property.
11
- * It supports various rounding options, elevation levels, and applies background and text color classes
12
- * based on the specified surface variant. Additionally, when the `scroller` property is true, the component
13
- * enables internal scrolling by applying overflow and scroll-behavior styles.
14
- *
15
- * SurfaceMixin automatically provides surfaceStyles CSS.
8
+ * Themed container — the root surface primitive. Sets background, text color, rounding, elevation, and (optionally) internal scroll. Provides a `SchmancySurfaceTypeContext` so descendants can adapt to the enclosing surface variant.
16
9
  *
17
10
  * @element schmancy-surface
18
- * @slot - Default slot for projecting child content.
19
- *
11
+ * @summary Wrap a region of a page when you need it to pick up theme tokens (background + on-color + elevation). Nest surfaces to express Material Design's hierarchical color stacking.
20
12
  * @example
21
13
  * <schmancy-surface fill="all" rounded="all" elevation="3" type="surfaceBright" scroller>
22
14
  * <p>Your scrollable content here</p>
23
15
  * </schmancy-surface>
16
+ * @platform div - Styled `<div>` with theme-driven background/color/elevation. Degrades to a plain `<div>` if the tag never registers — text stays readable, just loses theming.
17
+ * @slot - Default slot for projecting child content.
24
18
  */
25
19
  export declare class SchmancySurface extends SchmancySurface_base {
26
20
  /**
@@ -4,12 +4,15 @@ export type SchmancySwitchChangeEvent = CustomEvent<{
4
4
  }>;
5
5
  declare const SchmancySwitch_base: import("@mixins/index").Constructor<CustomElementConstructor> & import("@mixins/index").Constructor<import("@mixins/index").ITailwindElementMixin> & import("@mixins/index").Constructor<LitElement> & import("@mixins/index").Constructor<import("@mixins/index").IBaseMixin>;
6
6
  /**
7
- * Binary on/off control. Form-associated, keyboard-accessible, semantically a
8
- * switch (ARIA role="switch"). Distinct from `schmancy-checkbox`: a switch
9
- * represents an immediate state change, a checkbox represents a selection in
10
- * a form to be submitted.
7
+ * Binary on/off control with immediate effect. Form-associated, keyboard-accessible, semantically a switch (ARIA role="switch"). Distinct from `schmancy-checkbox`: a switch represents an immediate state change, a checkbox represents a selection in a form to be submitted.
11
8
  *
12
9
  * @element schmancy-switch
10
+ * @summary Use when flipping the control takes effect right away (e.g. "Dark mode", "Enable notifications"). Prefer schmancy-checkbox for form submissions.
11
+ * @example
12
+ * <schmancy-switch ?checked=${this.darkMode} @change=${(e) => this.darkMode = e.detail.value}>
13
+ * Dark mode
14
+ * </schmancy-switch>
15
+ * @platform switch change - Accessible native `<button role="switch" aria-checked>` under the hood. No native HTML element exists; falls back to a styled checkbox if the tag never registers.
13
16
  * @fires change - `CustomEvent<{ value: boolean }>` when the state changes.
14
17
  * @attr checked - Initial checked state (also reflected via `value`).
15
18
  * @attr disabled - Disables interaction.