@mhmo91/schmancy 0.9.16 → 0.9.18
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/custom-elements.json +111 -51
- package/dist/agent/schmancy.agent.js +288 -38
- package/dist/agent/schmancy.agent.js.map +1 -1
- package/dist/agent/schmancy.manifest.json +332 -25
- package/dist/breadcrumb.cjs.map +1 -1
- package/dist/breadcrumb.js.map +1 -1
- package/dist/card-BslSqOsf.cjs.map +1 -1
- package/dist/card-CEdgK9nb.js.map +1 -1
- package/dist/details-B8p62xmR.cjs.map +1 -1
- package/dist/details-CCW52lzz.js.map +1 -1
- package/dist/dialog.cjs.map +1 -1
- package/dist/dialog.js.map +1 -1
- package/dist/divider-CbEWg3G_.js.map +1 -1
- package/dist/divider-JyyFw_3J.cjs.map +1 -1
- package/dist/dropdown.cjs.map +1 -1
- package/dist/dropdown.js.map +1 -1
- package/dist/expand-BmwIPNjq.cjs.map +1 -1
- package/dist/expand-bFa_qVDT.js.map +1 -1
- package/dist/handover/agent-runtime-followups.md +1 -1
- package/dist/handover/agent-runtime-v1.md +3 -3
- package/dist/list-BpjKUOzM.js.map +1 -1
- package/dist/list-CMWHu6cV.cjs.map +1 -1
- package/dist/menu-BIBUgS1T.js.map +1 -1
- package/dist/menu-DS8Iz4fJ.cjs.map +1 -1
- package/dist/navigation-rail.cjs.map +1 -1
- package/dist/navigation-rail.js.map +1 -1
- package/dist/page.cjs.map +1 -1
- package/dist/page.js.map +1 -1
- package/dist/scroll-CdmXRXh2.js.map +1 -1
- package/dist/scroll-V1rAZ9fK.cjs.map +1 -1
- package/dist/sheet-DdlZhnDG.cjs.map +1 -1
- package/dist/sheet-LFVo5iN4.js.map +1 -1
- package/dist/src-C7niWYur.js.map +1 -1
- package/dist/src-I4M33WK2.cjs.map +1 -1
- package/dist/surface-0XM4DBaT.js.map +1 -1
- package/dist/surface-B6DA01kL.cjs.map +1 -1
- package/dist/theme-Cq_c9IO3.js.map +1 -1
- package/dist/theme-DU5yXaV-.cjs.map +1 -1
- package/dist/tree.cjs.map +1 -1
- package/dist/tree.js.map +1 -1
- package/package.json +1 -1
- package/src/breadcrumb/breadcrumb.ts +14 -4
- package/src/card/actions.ts +9 -0
- package/src/card/card.ts +18 -0
- package/src/card/content.ts +9 -0
- package/src/card/media.ts +6 -0
- package/src/details/details.ts +12 -0
- package/src/dialog/dialog.component.ts +9 -9
- package/src/divider/divider.ts +11 -0
- package/src/dropdown/dropdown-component.ts +13 -1
- package/src/dropdown/dropdown-content.ts +11 -3
- package/src/expand/expand-root.component.ts +12 -0
- package/src/expand/expand.component.ts +14 -0
- package/src/layout/scroll/scroll.ts +5 -1
- package/src/list/list-item.ts +10 -0
- package/src/list/list.ts +7 -8
- package/src/menu/menu-item.ts +13 -0
- package/src/menu/menu.ts +10 -22
- package/src/nav-drawer/appbar.ts +11 -0
- package/src/nav-drawer/content.ts +11 -0
- package/src/nav-drawer/drawer.ts +15 -0
- package/src/nav-drawer/navbar.ts +14 -0
- package/src/navigation-bar/navigation-bar-item.ts +3 -4
- package/src/navigation-bar/navigation-bar.ts +3 -9
- package/src/navigation-rail/navigation-rail-item.ts +3 -7
- package/src/navigation-rail/navigation-rail.ts +12 -8
- package/src/page/page.ts +8 -11
- package/src/sheet/sheet.ts +17 -0
- package/src/surface/surface.ts +4 -10
- package/src/theme/theme.component.ts +10 -15
- package/src/tree/tree.ts +12 -0
- package/types/src/breadcrumb/breadcrumb.d.ts +14 -4
- package/types/src/card/actions.d.ts +9 -0
- package/types/src/card/card.d.ts +18 -0
- package/types/src/card/content.d.ts +9 -0
- package/types/src/card/media.d.ts +6 -0
- package/types/src/details/details.d.ts +12 -0
- package/types/src/dialog/dialog.component.d.ts +9 -9
- package/types/src/divider/divider.d.ts +11 -0
- package/types/src/dropdown/dropdown-component.d.ts +13 -1
- package/types/src/dropdown/dropdown-content.d.ts +11 -3
- package/types/src/expand/expand-root.component.d.ts +12 -0
- package/types/src/expand/expand.component.d.ts +14 -0
- package/types/src/layout/scroll/scroll.d.ts +5 -1
- package/types/src/list/list-item.d.ts +10 -0
- package/types/src/list/list.d.ts +7 -8
- package/types/src/menu/menu-item.d.ts +13 -0
- package/types/src/menu/menu.d.ts +10 -22
- package/types/src/nav-drawer/appbar.d.ts +11 -0
- package/types/src/nav-drawer/content.d.ts +11 -0
- package/types/src/nav-drawer/drawer.d.ts +15 -0
- package/types/src/nav-drawer/navbar.d.ts +14 -0
- package/types/src/navigation-bar/navigation-bar-item.d.ts +3 -4
- package/types/src/navigation-bar/navigation-bar.d.ts +3 -9
- package/types/src/navigation-rail/navigation-rail-item.d.ts +3 -7
- package/types/src/navigation-rail/navigation-rail.d.ts +12 -8
- package/types/src/page/page.d.ts +8 -11
- package/types/src/sheet/sheet.d.ts +17 -0
- package/types/src/surface/surface.d.ts +4 -10
- package/types/src/theme/theme.component.d.ts +10 -15
- package/types/src/tree/tree.d.ts +12 -0
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
declare const SchmancyNavigationDrawerContent_base: CustomElementConstructor & import("@mixins/index").Constructor<import("lit").LitElement> & import("@mixins/index").Constructor<import("@mixins/index").IBaseMixin>;
|
|
2
|
+
/**
|
|
3
|
+
* Main content region inside schmancy-nav-drawer — typically hosts the router outlet or the page's body content.
|
|
4
|
+
*
|
|
5
|
+
* @element schmancy-nav-drawer-content
|
|
6
|
+
* @summary Always nested inside schmancy-nav-drawer. Scrollable by default; propagates scroll events up so the drawer can collapse app-bar on scroll.
|
|
7
|
+
* @example
|
|
8
|
+
* <schmancy-nav-drawer-content>
|
|
9
|
+
* <schmancy-area name="main"></schmancy-area>
|
|
10
|
+
* </schmancy-nav-drawer-content>
|
|
11
|
+
* @platform main scroll - Scrollable `<main>`. Degrades to a plain scrollable div if the tag never registers.
|
|
12
|
+
*/
|
|
2
13
|
export declare class SchmancyNavigationDrawerContent extends SchmancyNavigationDrawerContent_base {
|
|
3
14
|
connectedCallback(): void;
|
|
4
15
|
render(): import("lit-html").TemplateResult<1>;
|
|
@@ -1,8 +1,23 @@
|
|
|
1
1
|
import { TSchmancyDrawerNavbarMode, TSchmancyDrawerNavbarState } from './context';
|
|
2
2
|
declare const SchmancyNavigationDrawer_base: CustomElementConstructor & import("@mixins/index").Constructor<import("lit").LitElement> & import("@mixins/index").Constructor<import("@mixins/index").IBaseMixin>;
|
|
3
3
|
/**
|
|
4
|
+
* Responsive navigation drawer — a left sidebar that becomes a hamburger-triggered modal overlay on narrow viewports. Composes schmancy-nav-drawer-navbar (the nav rail), schmancy-nav-drawer-appbar (the top bar), and schmancy-nav-drawer-content (the main region).
|
|
5
|
+
*
|
|
4
6
|
* @element schmancy-nav-drawer
|
|
7
|
+
* @summary The app-shell layout primitive. Wrap your whole app in this when you want "persistent sidebar on desktop, drawer on mobile" behavior. Mode auto-switches at the breakpoint.
|
|
8
|
+
* @example
|
|
9
|
+
* <schmancy-nav-drawer>
|
|
10
|
+
* <schmancy-nav-drawer-navbar>
|
|
11
|
+
* <!-- nav items, typically schmancy-list-item links -->
|
|
12
|
+
* </schmancy-nav-drawer-navbar>
|
|
13
|
+
* <schmancy-nav-drawer-appbar>App title</schmancy-nav-drawer-appbar>
|
|
14
|
+
* <schmancy-nav-drawer-content>
|
|
15
|
+
* <!-- router outlet / page content -->
|
|
16
|
+
* </schmancy-nav-drawer-content>
|
|
17
|
+
* </schmancy-nav-drawer>
|
|
18
|
+
* @platform div - Flex layout with viewport-width mode switching. Degrades to a stack of plain divs if the tag never registers.
|
|
5
19
|
* @slot - The content slot
|
|
20
|
+
* @fires schmancy-drawer-state - When the drawer open/close state changes on mobile.
|
|
6
21
|
*/
|
|
7
22
|
export declare class SchmancyNavigationDrawer extends SchmancyNavigationDrawer_base {
|
|
8
23
|
fullscreen: boolean;
|
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
import { TSchmancyDrawerNavbarMode, TSchmancyDrawerNavbarState } from './context';
|
|
2
2
|
declare const SchmancyNavigationDrawerSidebar_base: CustomElementConstructor & import("@mixins/index").Constructor<import("lit").LitElement> & import("@mixins/index").Constructor<import("@mixins/index").IBaseMixin>;
|
|
3
|
+
/**
|
|
4
|
+
* Sidebar region inside schmancy-nav-drawer — the persistent-on-desktop / modal-on-mobile nav rail.
|
|
5
|
+
*
|
|
6
|
+
* @element schmancy-nav-drawer-navbar
|
|
7
|
+
* @summary Always nested inside schmancy-nav-drawer. On desktop: pinned left sidebar. On mobile: modal overlay triggered by the hamburger button in schmancy-nav-drawer-appbar.
|
|
8
|
+
* @example
|
|
9
|
+
* <schmancy-nav-drawer-navbar>
|
|
10
|
+
* <schmancy-list>
|
|
11
|
+
* <schmancy-list-item href="/dashboard">Dashboard</schmancy-list-item>
|
|
12
|
+
* <schmancy-list-item href="/settings">Settings</schmancy-list-item>
|
|
13
|
+
* </schmancy-list>
|
|
14
|
+
* </schmancy-nav-drawer-navbar>
|
|
15
|
+
* @platform nav - Sidebar `<nav>` with responsive open/close behavior. Degrades to a plain sidebar div if the tag never registers.
|
|
16
|
+
*/
|
|
3
17
|
export declare class SchmancyNavigationDrawerSidebar extends SchmancyNavigationDrawerSidebar_base {
|
|
4
18
|
mode: TSchmancyDrawerNavbarMode;
|
|
5
19
|
drawerState: TSchmancyDrawerNavbarState;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
declare const SchmancyNavigationBarItem_base: import("../../mixins").Constructor<CustomElementConstructor> & import("../../mixins").Constructor<import("@mixins/tailwind.mixin").ITailwindElementMixin> & import("../../mixins").Constructor<import("lit").LitElement> & import("../../mixins").Constructor<import("../../mixins").IBaseMixin>;
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* Individual navigation item for use within a navigation bar.
|
|
6
|
-
* Represents a single destination with an icon and optional label following Material Design 3 specifications.
|
|
3
|
+
* Single destination inside schmancy-navigation-bar — an icon + optional label representing one primary app destination.
|
|
7
4
|
*
|
|
8
5
|
* @element schmancy-navigation-bar-item
|
|
6
|
+
* @summary Always nested inside schmancy-navigation-bar. Use `icon` attr for a Material Symbols glyph or slot=icon for custom content.
|
|
7
|
+
* @platform button click - Styled navigation target. Degrades to a plain `<button>` if the tag never registers.
|
|
9
8
|
* @slot icon - Slot for custom icon content
|
|
10
9
|
* @slot - Default slot for custom content
|
|
11
10
|
*
|
|
@@ -1,16 +1,10 @@
|
|
|
1
1
|
declare const SchmancyNavigationBar_base: import("../../mixins").Constructor<CustomElementConstructor> & import("../../mixins").Constructor<import("@mixins/tailwind.mixin").ITailwindElementMixin> & import("../../mixins").Constructor<import("lit").LitElement> & import("../../mixins").Constructor<import("../../mixins").IBaseMixin>;
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* A horizontal navigation component following Material Design 3 specifications.
|
|
6
|
-
* Navigation bars provide access to between 3-7 primary destinations.
|
|
7
|
-
* Automatically hides in fullscreen mode when triggered via schmancyTheme.next({ fullscreen: true }).
|
|
8
|
-
*
|
|
9
|
-
* **IMPORTANT**: This component includes `z-10` by default (consistent with navigation-rail).
|
|
10
|
-
* The consumer is responsible for positioning the navigation bar in their layout.
|
|
11
|
-
* For typical bottom-fixed positioning, add: `class="fixed bottom-0 left-0 right-0"`.
|
|
3
|
+
* Bottom navigation bar — Material Design 3 horizontal nav for mobile primary destinations (3–7 items). Auto-hides in fullscreen mode.
|
|
12
4
|
*
|
|
13
5
|
* @element schmancy-navigation-bar
|
|
6
|
+
* @summary Use for mobile primary navigation (home, search, favorites, settings). For persistent desktop nav, prefer schmancy-navigation-rail or schmancy-nav-drawer. Consumer is responsible for fixed-bottom positioning via class.
|
|
7
|
+
* @platform nav - Styled horizontal nav with schmancy-navigation-bar-item children. Degrades to a plain flex container if the tag never registers.
|
|
14
8
|
* @slot - Default slot for navigation bar items
|
|
15
9
|
*
|
|
16
10
|
* @fires navigation-change - When an item is selected
|
|
@@ -7,15 +7,11 @@ export type NavigationRailItemClickEvent = CustomEvent<{
|
|
|
7
7
|
}>;
|
|
8
8
|
declare const SchmancyNavigationRailItem_base: CustomElementConstructor & import("@mixins/index").Constructor<import("lit").LitElement> & import("@mixins/index").Constructor<import("@mixins/index").IBaseMixin>;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
11
|
-
* @see https://m3.material.io/components/navigation-rail/overview
|
|
12
|
-
*
|
|
13
|
-
* `<schmancy-navigation-rail-item>` component
|
|
14
|
-
*
|
|
15
|
-
* Individual navigation item for use within a navigation rail.
|
|
16
|
-
* Represents a single destination or action with an icon and optional label.
|
|
10
|
+
* Single destination inside schmancy-navigation-rail — vertically-stacked icon + optional label. @see https://m3.material.io/components/navigation-rail/overview
|
|
17
11
|
*
|
|
18
12
|
* @element schmancy-navigation-rail-item
|
|
13
|
+
* @summary Always nested inside schmancy-navigation-rail. Use `icon` attr for a Material Symbols glyph, or slot=icon for custom content. Supports a `badge` slot for notification dots / counts.
|
|
14
|
+
* @platform button click - Styled vertical navigation target. Degrades to a plain `<button>` if the tag never registers.
|
|
19
15
|
* @slot icon - Slot for the navigation item icon (e.g., schmancy-icon)
|
|
20
16
|
* @slot - Default slot for custom content
|
|
21
17
|
* @slot badge - Custom badge content
|
|
@@ -5,16 +5,20 @@ export type NavigationRailFabClickEvent = CustomEvent<void>;
|
|
|
5
5
|
export type LabelVisibility = 'all' | 'selected' | 'none';
|
|
6
6
|
declare const SchmancyNavigationRail_base: CustomElementConstructor & import("@mixins/index").Constructor<import("lit").LitElement> & import("@mixins/index").Constructor<import("@mixins/index").IBaseMixin>;
|
|
7
7
|
/**
|
|
8
|
-
* Material Design 3
|
|
9
|
-
* @see https://m3.material.io/components/navigation-rail/overview
|
|
10
|
-
*
|
|
11
|
-
* `<schmancy-navigation-rail>` component
|
|
12
|
-
*
|
|
13
|
-
* A Material Design 3 vertical navigation component positioned on the left side of an application.
|
|
14
|
-
* Navigation rails provide access to between 3-7 primary destinations with a compact footprint.
|
|
15
|
-
* Automatically hides in fullscreen mode when triggered via schmancyTheme.next({ fullscreen: true }).
|
|
8
|
+
* Vertical navigation rail — Material Design 3 compact left-side nav for desktop / tablet layouts with 3–7 primary destinations. Auto-hides in fullscreen mode. @see https://m3.material.io/components/navigation-rail/overview
|
|
16
9
|
*
|
|
17
10
|
* @element schmancy-navigation-rail
|
|
11
|
+
* @summary Use as the desktop counterpart of schmancy-navigation-bar: same destinations, different form factor. Prefer schmancy-nav-drawer when you also want a drawer + app-bar combo.
|
|
12
|
+
* @example
|
|
13
|
+
* <schmancy-navigation-rail activeIndex="0">
|
|
14
|
+
* <schmancy-icon-button slot="fab" variant="filled">
|
|
15
|
+
* <schmancy-icon>add</schmancy-icon>
|
|
16
|
+
* </schmancy-icon-button>
|
|
17
|
+
* <schmancy-navigation-rail-item icon="home" label="Home"></schmancy-navigation-rail-item>
|
|
18
|
+
* <schmancy-navigation-rail-item icon="search" label="Search"></schmancy-navigation-rail-item>
|
|
19
|
+
* <schmancy-navigation-rail-item icon="settings" label="Settings"></schmancy-navigation-rail-item>
|
|
20
|
+
* </schmancy-navigation-rail>
|
|
21
|
+
* @platform nav - Vertical styled nav. Degrades to a plain vertical flex container if the tag never registers.
|
|
18
22
|
* @slot fab - Slot for a floating action button at the top
|
|
19
23
|
* @slot menu - Slot for a menu icon or button below the FAB
|
|
20
24
|
* @slot header - Custom header content slot
|
package/types/src/page/page.d.ts
CHANGED
|
@@ -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
|
-
*
|
|
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
|
-
*
|
|
12
|
-
* <schmancy-
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
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,5 +1,22 @@
|
|
|
1
1
|
import { SchmancySheetPosition } from './sheet.service';
|
|
2
2
|
declare const SchmancySheet_base: CustomElementConstructor & import("@mixins/index").Constructor<import("lit").LitElement> & import("@mixins/index").Constructor<import("@mixins/index").IBaseMixin>;
|
|
3
|
+
/**
|
|
4
|
+
* Side-docked or bottom-docked panel — a dialog variant that slides in from an edge. Driven imperatively by the `sheet` service; rarely instantiated directly.
|
|
5
|
+
*
|
|
6
|
+
* @element schmancy-sheet
|
|
7
|
+
* @summary Prefer `sheet.open({ component, position })` over placing this element declaratively — the service handles stacking, focus, close on outside-click, ESC, and router integration.
|
|
8
|
+
* @example
|
|
9
|
+
* import { sheet, SchmancySheetPosition } from '@mhmo91/schmancy'
|
|
10
|
+
* sheet.open({
|
|
11
|
+
* component: new MyEditorElement(),
|
|
12
|
+
* position: SchmancySheetPosition.Side,
|
|
13
|
+
* title: 'Edit item',
|
|
14
|
+
* })
|
|
15
|
+
* @platform dialog close - Positioned-fixed panel with backdrop. Degrades to a `<dialog>` if the tag never registers — loses slide animation, keeps focus trap + dismiss.
|
|
16
|
+
* @attr position - `'side' | 'bottom'`. Which edge the sheet docks to.
|
|
17
|
+
* @attr open - Boolean; sheet is visible when true.
|
|
18
|
+
* @fires close - When the sheet is dismissed (backdrop click, close button, ESC).
|
|
19
|
+
*/
|
|
3
20
|
export default class SchmancySheet extends SchmancySheet_base {
|
|
4
21
|
open: boolean;
|
|
5
22
|
position: SchmancySheetPosition;
|
|
@@ -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
|
-
*
|
|
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
|
-
* @
|
|
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
|
/**
|
|
@@ -2,28 +2,23 @@ import { TSchmancyTheme } from './theme.interface';
|
|
|
2
2
|
export declare const tailwindStyles: import("lit").CSSResult;
|
|
3
3
|
declare const SchmancyThemeComponent_base: CustomElementConstructor & import("../../mixins/constructor").Constructor<import("lit").LitElement> & import("../../mixins/constructor").Constructor<import("../../mixins/baseElement").IBaseMixin>;
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* This component manages color schemes, primary colors, and theme distribution
|
|
8
|
-
* throughout the component tree. It can be used at the root level or nested
|
|
9
|
-
* to provide different themes to different parts of the application.
|
|
5
|
+
* 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-…)).
|
|
10
6
|
*
|
|
11
7
|
* @element schmancy-theme
|
|
12
|
-
*
|
|
8
|
+
* @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.
|
|
13
9
|
* @example
|
|
14
|
-
* ```html
|
|
15
10
|
* <!-- Root theme provider -->
|
|
16
|
-
* <schmancy-theme
|
|
11
|
+
* <schmancy-theme root scheme="auto" color="#6200ee">
|
|
17
12
|
* <your-app></your-app>
|
|
18
13
|
* </schmancy-theme>
|
|
19
|
-
*
|
|
20
|
-
* <!-- Nested theme for specific section -->
|
|
21
|
-
* <schmancy-theme
|
|
22
|
-
* <
|
|
23
|
-
* <!-- Components here
|
|
24
|
-
* </
|
|
14
|
+
* @example
|
|
15
|
+
* <!-- Nested theme for a specific section -->
|
|
16
|
+
* <schmancy-theme scheme="dark" color="#2196f3">
|
|
17
|
+
* <schmancy-surface fill="all">
|
|
18
|
+
* <!-- Components here use the blue dark theme -->
|
|
19
|
+
* </schmancy-surface>
|
|
25
20
|
* </schmancy-theme>
|
|
26
|
-
*
|
|
21
|
+
* @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.
|
|
27
22
|
*/
|
|
28
23
|
export declare class SchmancyThemeComponent extends SchmancyThemeComponent_base {
|
|
29
24
|
/**
|
package/types/src/tree/tree.d.ts
CHANGED
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
declare const SchmancyTree_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
|
+
* Expandable tree node — a recursive disclosure widget. One root slot, one default slot for child nodes. Each node can itself contain schmancy-tree children.
|
|
4
|
+
*
|
|
3
5
|
* @element schmancy-tree
|
|
6
|
+
* @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).
|
|
7
|
+
* @example
|
|
8
|
+
* <schmancy-tree>
|
|
9
|
+
* <schmancy-list-item slot="root">src/</schmancy-list-item>
|
|
10
|
+
* <schmancy-tree>
|
|
11
|
+
* <schmancy-list-item slot="root">components/</schmancy-list-item>
|
|
12
|
+
* <schmancy-list-item>button.ts</schmancy-list-item>
|
|
13
|
+
* </schmancy-tree>
|
|
14
|
+
* </schmancy-tree>
|
|
15
|
+
* @platform details toggle - Recursive `<details>`-like disclosure. Degrades to a plain nested list if the tag never registers — loses expand/collapse but stays navigable.
|
|
4
16
|
* @slot root - The root element of the tree
|
|
5
17
|
* @slot - The children of the tree
|
|
6
18
|
*/
|