@waggylabs/yumekit 0.4.3-beta.38 → 0.4.3-beta.40

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 (114) hide show
  1. package/CHANGELOG.md +1 -0
  2. package/README.md +2 -1
  3. package/dist/components/y-appbar.d.ts +66 -0
  4. package/dist/components/y-avatar.d.ts +23 -0
  5. package/dist/components/y-badge.d.ts +25 -0
  6. package/dist/components/y-banner.d.ts +38 -0
  7. package/dist/components/y-breadcrumbs/y-breadcrumbs.d.ts +35 -0
  8. package/dist/components/y-breadcrumbs.d.ts +35 -0
  9. package/dist/components/y-breadcrumbs.js +647 -0
  10. package/dist/components/y-button-group.d.ts +13 -0
  11. package/dist/components/y-button.d.ts +65 -0
  12. package/dist/components/y-card.d.ts +16 -0
  13. package/dist/components/y-checkbox.d.ts +32 -0
  14. package/dist/components/y-color.d.ts +46 -0
  15. package/dist/components/y-colorpicker.d.ts +73 -0
  16. package/dist/components/y-date.d.ts +180 -0
  17. package/dist/components/y-datepicker.d.ts +121 -0
  18. package/dist/components/y-dialog.d.ts +40 -0
  19. package/dist/components/y-gallery.d.ts +66 -0
  20. package/dist/components/y-icon.d.ts +26 -0
  21. package/dist/components/y-input.d.ts +43 -0
  22. package/dist/components/y-panel.d.ts +36 -0
  23. package/dist/components/y-panelbar.d.ts +3 -0
  24. package/dist/components/y-progress.d.ts +47 -0
  25. package/dist/components/y-radio.d.ts +32 -0
  26. package/dist/components/y-rating.d.ts +40 -0
  27. package/dist/components/y-select.d.ts +82 -0
  28. package/dist/components/y-slider.d.ts +45 -0
  29. package/dist/components/y-stack.d.ts +52 -0
  30. package/dist/components/y-stepper.d.ts +58 -0
  31. package/dist/components/y-table.d.ts +29 -0
  32. package/dist/components/y-tabs.d.ts +28 -0
  33. package/dist/components/y-tag.d.ts +24 -0
  34. package/dist/components/y-textarea.d.ts +38 -0
  35. package/dist/components/y-theme.d.ts +31 -0
  36. package/dist/components/y-theme.js +1 -1
  37. package/dist/components/y-toast.d.ts +38 -0
  38. package/dist/components/y-tooltip.d.ts +32 -0
  39. package/dist/index.d.ts +4 -0
  40. package/dist/index.js +9214 -7319
  41. package/dist/react.d.ts +7 -0
  42. package/dist/styles/variables.css +12 -0
  43. package/dist/yumekit.min.js +1 -1
  44. package/llm.txt +33 -1
  45. package/package.json +2 -2
  46. package/dist/components/y-appbar/y-appbar.stories.d.ts +0 -90
  47. package/dist/components/y-avatar/y-avatar.stories.d.ts +0 -119
  48. package/dist/components/y-badge/y-badge.stories.d.ts +0 -107
  49. package/dist/components/y-banner/y-banner.stories.d.ts +0 -139
  50. package/dist/components/y-banner/y-banner.test.d.ts +0 -1
  51. package/dist/components/y-button/y-button.stories.d.ts +0 -136
  52. package/dist/components/y-button/y-button.test.d.ts +0 -1
  53. package/dist/components/y-button-group/y-button-group.stories.d.ts +0 -57
  54. package/dist/components/y-button-group/y-button-group.test.d.ts +0 -1
  55. package/dist/components/y-card/y-card.stories.d.ts +0 -61
  56. package/dist/components/y-card/y-card.test.d.ts +0 -1
  57. package/dist/components/y-checkbox/y-checkbox.stories.d.ts +0 -119
  58. package/dist/components/y-checkbox/y-checkbox.test.d.ts +0 -1
  59. package/dist/components/y-color/y-color.stories.d.ts +0 -157
  60. package/dist/components/y-color/y-color.test.d.ts +0 -1
  61. package/dist/components/y-colorpicker/y-colorpicker.stories.d.ts +0 -84
  62. package/dist/components/y-colorpicker/y-colorpicker.test.d.ts +0 -1
  63. package/dist/components/y-date/y-date.stories.d.ts +0 -334
  64. package/dist/components/y-date/y-date.test.d.ts +0 -1
  65. package/dist/components/y-datepicker/y-datepicker.stories.d.ts +0 -316
  66. package/dist/components/y-datepicker/y-datepicker.test.d.ts +0 -1
  67. package/dist/components/y-dialog/y-dialog.stories.d.ts +0 -118
  68. package/dist/components/y-dialog/y-dialog.test.d.ts +0 -1
  69. package/dist/components/y-drawer/y-drawer.stories.d.ts +0 -83
  70. package/dist/components/y-drawer/y-drawer.test.d.ts +0 -1
  71. package/dist/components/y-gallery/y-gallery.stories.d.ts +0 -151
  72. package/dist/components/y-gallery/y-gallery.test.d.ts +0 -1
  73. package/dist/components/y-icon/y-icon.stories.d.ts +0 -95
  74. package/dist/components/y-icon/y-icon.test.d.ts +0 -1
  75. package/dist/components/y-input/y-input.stories.d.ts +0 -158
  76. package/dist/components/y-input/y-input.test.d.ts +0 -1
  77. package/dist/components/y-menu/y-menu.stories.d.ts +0 -103
  78. package/dist/components/y-menu/y-menu.test.d.ts +0 -1
  79. package/dist/components/y-panel/y-panel.test.d.ts +0 -1
  80. package/dist/components/y-panelbar/y-panelbar.stories.d.ts +0 -44
  81. package/dist/components/y-progress/y-progress.stories.d.ts +0 -198
  82. package/dist/components/y-progress/y-progress.test.d.ts +0 -1
  83. package/dist/components/y-radio/y-radio.stories.d.ts +0 -62
  84. package/dist/components/y-radio/y-radio.test.d.ts +0 -1
  85. package/dist/components/y-rating/y-rating.stories.d.ts +0 -176
  86. package/dist/components/y-rating/y-rating.test.d.ts +0 -1
  87. package/dist/components/y-select/y-select.stories.d.ts +0 -216
  88. package/dist/components/y-select/y-select.test.d.ts +0 -1
  89. package/dist/components/y-slider/y-slider.stories.d.ts +0 -153
  90. package/dist/components/y-slider/y-slider.test.d.ts +0 -1
  91. package/dist/components/y-stack/y-stack.stories.d.ts +0 -195
  92. package/dist/components/y-stack/y-stack.test.d.ts +0 -1
  93. package/dist/components/y-stepper/y-stepper.stories.d.ts +0 -129
  94. package/dist/components/y-stepper/y-stepper.test.d.ts +0 -1
  95. package/dist/components/y-switch/y-switch.stories.d.ts +0 -164
  96. package/dist/components/y-switch/y-switch.test.d.ts +0 -1
  97. package/dist/components/y-table/y-table.stories.d.ts +0 -84
  98. package/dist/components/y-table/y-table.test.d.ts +0 -1
  99. package/dist/components/y-tabs/y-tabs.stories.d.ts +0 -70
  100. package/dist/components/y-tabs/y-tabs.test.d.ts +0 -1
  101. package/dist/components/y-tag/y-tag.stories.d.ts +0 -133
  102. package/dist/components/y-tag/y-tag.test.d.ts +0 -1
  103. package/dist/components/y-textarea/y-textarea.stories.d.ts +0 -151
  104. package/dist/components/y-textarea/y-textarea.test.d.ts +0 -1
  105. package/dist/components/y-theme/y-theme.stories.d.ts +0 -184
  106. package/dist/components/y-theme/y-theme.test.d.ts +0 -1
  107. package/dist/components/y-toast/y-toast.stories.d.ts +0 -83
  108. package/dist/components/y-toast/y-toast.test.d.ts +0 -1
  109. package/dist/components/y-tooltip/y-tooltip.stories.d.ts +0 -82
  110. package/dist/components/y-tooltip/y-tooltip.test.d.ts +0 -1
  111. package/dist/modules/helpers.test.d.ts +0 -1
  112. /package/dist/components/{y-appbar/y-appbar.test.d.ts → y-drawer.d.ts} +0 -0
  113. /package/dist/components/{y-avatar/y-avatar.test.d.ts → y-menu.d.ts} +0 -0
  114. /package/dist/components/{y-badge/y-badge.test.d.ts → y-switch.d.ts} +0 -0
package/CHANGELOG.md CHANGED
@@ -36,6 +36,7 @@ Delete any empty sections before publishing.
36
36
  ### Added
37
37
 
38
38
  - New `y-stepper` component — a multi-step wizard that guides users through a sequential flow. Step content is provided via named slots defined in the `items` JSON array (`{ label, slot, description?, icon?, status? }`). Supports `current` (zero-based active step index), `orientation` (`"horizontal"` | `"vertical"`), `position` (`"start"` | `"end"` — controls whether indicators appear before or after the content), `size` (`"small"` | `"medium"` | `"large"`), `linear` (restricts free navigation), and `editable` (allows returning to completed steps). Methods: `next()`, `previous()`, `goTo(index)`, `complete(index?)`, `reset()`. Events: cancelable `change`, `complete`, `finish`. Full ARIA support with `role="list"`, `aria-current="step"`, `aria-controls`/`aria-labelledby` linkage, and keyboard navigation.
39
+ - New `y-breadcrumbs` component — a navigation breadcrumb trail. Accepts an `items` JSON array (`{ text, href?, icon? }`). Supports `separator` (custom separator character or slotted icon), `max-items` (collapses middle items with an expand button), `size` (`"small"` | `"medium"` | `"large"`), and `history` (set to `"false"` for full-page navigation instead of `pushState`). Fires cancelable `navigate` and `expand` events. Full ARIA with `<nav aria-label="Breadcrumb">`, `<ol>`, `aria-current="page"`, and `aria-hidden` separators.
39
40
  - New `y-gallery` component — a media gallery that accepts `<img>` or `<figure>` children and arranges them in `grid`, `row`, `column`, or `masonry` layouts. Supports `columns`, `gap` (`"small"` | `"medium"` | `"large"` or any CSS length), `aspect-ratio`, `expandable` (lightbox with prev/next navigation), `loop`, and `size` attributes. The expanded view uses `<y-icon>` for nav arrows and supports `data-src` for full-resolution images, `<figcaption>` captions, and image counter. Icon slots (`expand-prev-icon`, `expand-next-icon`, `expand-close-icon`) allow custom icons. Fires `expand`, `close`, and `navigate` events.
40
41
  - New `y-colorpicker` component — a standalone color picker widget with a 2D saturation/brightness canvas, hue slider, optional alpha slider, format selector, and channel inputs. Supports `value` (`#hex`, `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hsv()`, `hsva()`), `format` (`"hex"` | `"rgb"` | `"hsl"` | `"hsv"`), `formats` (JSON array of available formats), `show-alpha` (alpha channel), and `size` attributes.
41
42
  - New `y-color` component — a form-associated color input with a trigger/popup pattern (like `<y-date>`). Renders a color swatch preview and value string in the trigger; opens a `<y-colorpicker>` popup on click. Supports `value`, `format`, `formats`, `show-alpha`, `placeholder`, `name`, `disabled`, `invalid`, `clearable`, `size`, and `label-position` attributes. Uses `ElementInternals` for `FormData` participation.
package/README.md CHANGED
@@ -17,7 +17,7 @@
17
17
 
18
18
  ## Overview
19
19
 
20
- YumeKit is a collection of 33 production-ready custom elements built with native Web Components. It works with any framework — or none at all — and ships with a comprehensive design token system, built-in theming, an icon registry, and full TypeScript support.
20
+ YumeKit is a collection of 34 production-ready custom elements built with native Web Components. It works with any framework — or none at all — and ships with a comprehensive design token system, built-in theming, an icon registry, and full TypeScript support.
21
21
 
22
22
  - **Zero dependencies** — built entirely on web standards
23
23
  - **Framework-agnostic** — works with React, Vue, Svelte, or plain HTML
@@ -78,6 +78,7 @@ Then use the `<y-theme>` component to apply a theme:
78
78
  | App Bar | `<y-appbar>` | Top or side navigation bar |
79
79
  | Avatar | `<y-avatar>` | User avatar with shape and color variants |
80
80
  | Badge | `<y-badge>` | Status badge or label |
81
+ | Breadcrumbs | `<y-breadcrumbs>` | Navigation breadcrumb trail with collapse support |
81
82
  | Button | `<y-button>` | Button with icon, size, and style variants |
82
83
  | Button Group | `<y-button-group>` | Groups buttons (or inputs) into a connected toolbar |
83
84
  | Card | `<y-card>` | Content card container |
@@ -0,0 +1,66 @@
1
+ export class YumeAppbar extends HTMLElement {
2
+ static get observedAttributes(): string[];
3
+ _onCollapseClick(): void;
4
+ _onMediaChange(e: any): void;
5
+ _idCounter: number;
6
+ _mql: MediaQueryList;
7
+ _isMobile: boolean;
8
+ connectedCallback(): void;
9
+ disconnectedCallback(): void;
10
+ attributeChangedCallback(name: any, oldVal: any, newVal: any): void;
11
+ set collapsed(val: boolean);
12
+ /** Whether the sidebar is currently collapsed. */
13
+ get collapsed(): boolean;
14
+ set items(val: any);
15
+ /** Nav items array parsed from the "items" attribute. */
16
+ get items(): any;
17
+ set menuDirection(val: string);
18
+ /**
19
+ * Direction menus pop out from nav buttons:
20
+ * "right", "down", or unset (auto: vertical → right, horizontal → down).
21
+ */
22
+ get menuDirection(): string;
23
+ /** Whether the appbar is currently rendering in mobile mode. */
24
+ get mobile(): boolean;
25
+ set mobileBreakpoint(val: string);
26
+ /**
27
+ * Override the mobile breakpoint (in pixels) for this instance.
28
+ * Falls back to the CSS variable --component-appbar-mobile-breakpoint (default 768).
29
+ */
30
+ get mobileBreakpoint(): string;
31
+ set orientation(val: string);
32
+ /** Layout orientation: "vertical" | "horizontal" (default "vertical"). */
33
+ get orientation(): string;
34
+ set size(val: string);
35
+ /** Size variant: "small" | "medium" | "large" (default "medium"). */
36
+ get size(): string;
37
+ set history(val: string);
38
+ /**
39
+ * Navigation mode: omit for pushState (SPA-friendly), set to "false" for full-page navigation.
40
+ * Regardless of this setting, a cancelable "navigate" event is always dispatched first.
41
+ */
42
+ get history(): string;
43
+ set sticky(val: string | false);
44
+ /** Sticky position: "start" | "end" | false. */
45
+ get sticky(): string | false;
46
+ /** Toggles the collapsed state of the sidebar. */
47
+ toggle(): void;
48
+ render(): void;
49
+ _buildCollapseButton(cfg: any, isCollapsed: any): HTMLElement;
50
+ _buildHeader(): HTMLDivElement;
51
+ _buildNavItem(item: any, cfg: any, isVertical: any, isCollapsed: any, menuDir: any): HTMLDivElement;
52
+ _getBreakpointPx(): number;
53
+ _initRender(): void;
54
+ _isItemActive(item: any): boolean;
55
+ _makeSlot(name: any): HTMLSlotElement;
56
+ _renderDesktop(): void;
57
+ _renderMobile(): void;
58
+ _setupMediaQuery(): void;
59
+ _teardownMediaQuery(): void;
60
+ /**
61
+ * Convert appbar nav items to y-menu item format.
62
+ * Maps `href` → `url` and recursively converts children.
63
+ */
64
+ _toMenuItems(items: any): any;
65
+ _uid(prefix: any): string;
66
+ }
@@ -0,0 +1,23 @@
1
+ export class YumeAvatar extends HTMLElement {
2
+ static get observedAttributes(): string[];
3
+ attributeChangedCallback(name: any, oldValue: any, newValue: any): void;
4
+ set alt(val: string);
5
+ /** Initials fallback text when no src is provided (default "AN"). */
6
+ get alt(): string;
7
+ set color(val: string);
8
+ /** Color theme for the initials avatar background. */
9
+ get color(): string;
10
+ set shape(val: string);
11
+ /** Shape of the avatar: "circle" | "square" | "rounded" (default "circle"). */
12
+ get shape(): string;
13
+ set size(val: string);
14
+ /** Avatar size: "small" | "medium" | "large" (default "medium"). */
15
+ get size(): string;
16
+ set src(val: string);
17
+ /** Image URL. When set, renders an <img> instead of initials. */
18
+ get src(): string;
19
+ render(): void;
20
+ _buildStyleSheet(dimensions: any, borderRadius: any, bgColor: any, textColor: any): CSSStyleSheet;
21
+ _getDimensions(size: any): any;
22
+ _getInitials(alt: any): any;
23
+ }
@@ -0,0 +1,25 @@
1
+ export class YumeBadge extends HTMLElement {
2
+ static get observedAttributes(): string[];
3
+ connectedCallback(): void;
4
+ attributeChangedCallback(name: any, oldValue: any, newValue: any): void;
5
+ set alignment(val: string);
6
+ /** Horizontal alignment of the badge: "left" | "right" (default "right"). */
7
+ get alignment(): string;
8
+ set color(val: string);
9
+ /** Color theme: "primary" | "secondary" | "base" | "success" | "warning" | "error" | "help". */
10
+ get color(): string;
11
+ set position(val: string);
12
+ /** Vertical position of the badge: "top" | "bottom" (default "top"). */
13
+ get position(): string;
14
+ set size(val: string);
15
+ /** Badge size: "small" | "medium" | "large" (default "small"). */
16
+ get size(): string;
17
+ set value(val: string);
18
+ /** The text content displayed inside the badge. */
19
+ get value(): string;
20
+ render(): void;
21
+ _getBadgeColors(color: any): any;
22
+ _getBadgePosition(position: any, alignment: any): string;
23
+ _getSizeAttributes(size: any): any;
24
+ _hasTargetContent(): boolean;
25
+ }
@@ -0,0 +1,38 @@
1
+ export class YumeBanner extends HTMLElement {
2
+ static get observedAttributes(): string[];
3
+ connectedCallback(): void;
4
+ attributeChangedCallback(name: any, oldValue: any, newValue: any): void;
5
+ set color(val: string);
6
+ /** Semantic color for the banner background. */
7
+ get color(): string;
8
+ set icon(val: string);
9
+ /** Icon name passed to an internal y-icon. */
10
+ get icon(): string;
11
+ set position(val: string);
12
+ /** Position mode: "push" (in-flow) or "overlap" (over content). */
13
+ get position(): string;
14
+ set sticky(val: boolean);
15
+ /** When true with position="overlap", fixes to viewport top on scroll. */
16
+ get sticky(): boolean;
17
+ set dismissable(val: boolean);
18
+ /** Whether the banner shows a close button. */
19
+ get dismissable(): boolean;
20
+ set dismissed(val: boolean);
21
+ /** Whether the banner is currently dismissed (hidden). */
22
+ get dismissed(): boolean;
23
+ set size(val: string);
24
+ /** Controls padding, icon size, and font size. */
25
+ get size(): string;
26
+ /** Hides the banner and fires the dismiss event. */
27
+ dismiss(): void;
28
+ /** Shows the banner if it is currently dismissed. */
29
+ show(): void;
30
+ render(): void;
31
+ _bindSlotListeners(): void;
32
+ _updateSlotVisibility(): void;
33
+ _applyDismissedState(): void;
34
+ _getAriaLabel(color: any): any;
35
+ _getIconSize(size: any): any;
36
+ _getColorVars(color: any): any;
37
+ _buildStyles(color: any, size: any): string;
38
+ }
@@ -0,0 +1,35 @@
1
+ export class YumeBreadcrumbs extends HTMLElement {
2
+ static get observedAttributes(): string[];
3
+ _expanded: boolean;
4
+ connectedCallback(): void;
5
+ attributeChangedCallback(name: any, oldValue: any, newValue: any): void;
6
+ set history(val: string);
7
+ /** When omitted, navigation uses pushState. Set to "false" for full-page navigation. */
8
+ get history(): string;
9
+ set items(val: any);
10
+ /** Array of breadcrumb items. */
11
+ get items(): any;
12
+ set maxItems(val: number);
13
+ /** Maximum visible items before collapsing. */
14
+ get maxItems(): number;
15
+ set separator(val: string);
16
+ /** Text or character used as the separator. Defaults to a chevron-right icon when unset. */
17
+ get separator(): string;
18
+ set size(val: string);
19
+ /** Controls padding, font size, and icon size. */
20
+ get size(): string;
21
+ render(): void;
22
+ _buildExpandItem(): HTMLElement;
23
+ _buildHostStyles(): string;
24
+ _buildItem(item: any, index: any, items: any): HTMLElement;
25
+ _buildItemStyles(): string;
26
+ _buildSeparatorItem(): HTMLElement;
27
+ _buildSeparatorStyles(): string;
28
+ _buildStyles(): string;
29
+ _getDefaultFontSize(): any;
30
+ _getDefaultGap(): any;
31
+ _getIconSize(): any;
32
+ _getVisibleItems(items: any): any;
33
+ _onExpand(): void;
34
+ _onNavigate(e: any, href: any): void;
35
+ }
@@ -0,0 +1,35 @@
1
+ export class YumeBreadcrumbs extends HTMLElement {
2
+ static get observedAttributes(): string[];
3
+ _expanded: boolean;
4
+ connectedCallback(): void;
5
+ attributeChangedCallback(name: any, oldValue: any, newValue: any): void;
6
+ set history(val: string);
7
+ /** When omitted, navigation uses pushState. Set to "false" for full-page navigation. */
8
+ get history(): string;
9
+ set items(val: any);
10
+ /** Array of breadcrumb items. */
11
+ get items(): any;
12
+ set maxItems(val: number);
13
+ /** Maximum visible items before collapsing. */
14
+ get maxItems(): number;
15
+ set separator(val: string);
16
+ /** Text or character used as the separator. Defaults to a chevron-right icon when unset. */
17
+ get separator(): string;
18
+ set size(val: string);
19
+ /** Controls padding, font size, and icon size. */
20
+ get size(): string;
21
+ render(): void;
22
+ _buildExpandItem(): HTMLElement;
23
+ _buildHostStyles(): string;
24
+ _buildItem(item: any, index: any, items: any): HTMLElement;
25
+ _buildItemStyles(): string;
26
+ _buildSeparatorItem(): HTMLElement;
27
+ _buildSeparatorStyles(): string;
28
+ _buildStyles(): string;
29
+ _getDefaultFontSize(): any;
30
+ _getDefaultGap(): any;
31
+ _getIconSize(): any;
32
+ _getVisibleItems(items: any): any;
33
+ _onExpand(): void;
34
+ _onNavigate(e: any, href: any): void;
35
+ }