@waggylabs/yumekit 0.4.2-beta.33 → 0.4.2-beta.34

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/CHANGELOG.md CHANGED
@@ -35,9 +35,11 @@ Delete any empty sections before publishing.
35
35
 
36
36
  ### Added
37
37
 
38
- - New `y-banner` component — a full-width informational banner that renders in a semantic color with matching text. Supports `color` (`"base"` | `"primary"` | `"secondary"` | `"success"` | `"error"` | `"warning"` | `"help"`), `icon` attribute (or `icon` slot), `position` (`"push"` | `"overlap"`), `sticky` (fixed to viewport when overlapping), `dismissable` close button, `size` (`"small"` | `"medium"` | `"large"`), and an `action` slot for CTA elements. Public methods: `dismiss()`, `show()`. Fires a cancelable `dismiss` event. CSS custom properties: `--component-banner-padding-small/medium/large`, `--component-banner-gap`, `--component-banner-icon-size-small/medium/large`, `--component-banner-z-index`, `--component-banner-border-radius`. CSS parts: `banner`, `icon`, `content`, `action`, `close-btn`.
38
+ - 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. Public method: `setColor(value)`. Events: `change` (with `value`, `hex`, `rgb`, `hsl`, `hsv`, `alpha` in detail), `format-change`.
39
39
 
40
- - New `y-stack` component — a layout container for arranging child elements in rows, columns, grids, or masonry patterns. Supports `mode` (`"flex"` | `"grid"` | `"masonry"`), `direction`, `columns`, `gap` (maps to `--spacing-*` tokens), `wrap`, `align`, `justify`, and `responsive` attributes. Masonry mode uses JS absolute positioning with `ResizeObserver`. Responsive mode auto-collapses columns at configurable breakpoints. CSS custom properties: `--component-stack-gap`, `--component-stack-columns`, `--component-stack-mobile-breakpoint`, `--component-stack-tablet-breakpoint`.
40
+ - New `y-banner` component — a full-width informational banner that renders in a semantic color with matching text. Supports `color` (`"base"` | `"primary"` | `"secondary"` | `"success"` | `"error"` | `"warning"` | `"help"`), `icon` attribute (or `icon` slot), `position` (`"push"` | `"overlap"`), `sticky` (fixed to viewport when overlapping), `dismissable` close button, `size` (`"small"` | `"medium"` | `"large"`), and an `action` slot for CTA elements. Public methods: `dismiss()`, `show()`. Fires a cancelable `dismiss` event.
41
+
42
+ - New `y-stack` component — a layout container for arranging child elements in rows, columns, grids, or masonry patterns. Supports `mode` (`"flex"` | `"grid"` | `"masonry"`), `direction`, `columns`, `gap` (maps to `--spacing-*` tokens), `wrap`, `align`, `justify`, and `responsive` attributes. Masonry mode uses JS absolute positioning with `ResizeObserver`. Responsive mode auto-collapses columns at configurable breakpoints.
41
43
 
42
44
  ## [0.4.2] - 2026-04-07
43
45
 
@@ -0,0 +1,70 @@
1
+ export class YumeColorpicker extends HTMLElement {
2
+ static get observedAttributes(): string[];
3
+ _h: number;
4
+ _s: number;
5
+ _v: number;
6
+ _a: number;
7
+ _dragging: string;
8
+ _rendered: boolean;
9
+ _updatingValue: boolean;
10
+ _onPointerMove: (e: any) => void;
11
+ _onPointerUp: () => void;
12
+ connectedCallback(): void;
13
+ disconnectedCallback(): void;
14
+ attributeChangedCallback(name: any, oldVal: any, newVal: any): void;
15
+ set value(val: string);
16
+ get value(): string;
17
+ set format(val: string);
18
+ get format(): string;
19
+ set formats(val: any);
20
+ get formats(): any;
21
+ set showAlpha(val: boolean);
22
+ get showAlpha(): boolean;
23
+ set size(val: string);
24
+ get size(): string;
25
+ setColor(value: any): void;
26
+ render(): void;
27
+ _canvas: Element;
28
+ _canvasHandle: Element;
29
+ _hueSlider: Element;
30
+ _hueThumb: Element;
31
+ _alphaSlider: Element;
32
+ _alphaThumb: Element;
33
+ _formatSelect: Element;
34
+ _channelInputs: Element;
35
+ _swatchPreview: Element;
36
+ _parseAndApply(str: any): void;
37
+ _formatColor(fmt: any): string;
38
+ _getColorRepresentations(): {
39
+ hex: string;
40
+ rgb: string;
41
+ hsl: string;
42
+ hsv: string;
43
+ };
44
+ _drawCanvas(): void;
45
+ _updateAll(): void;
46
+ _updateCanvasHandle(): void;
47
+ _updateHueThumb(): void;
48
+ _updateAlphaThumb(): void;
49
+ _updateSwatch(): void;
50
+ _updateAriaValues(): void;
51
+ _updateInputs(): void;
52
+ _bindEvents(): void;
53
+ _addGlobalListeners(): void;
54
+ _removeGlobalListeners(): void;
55
+ _onCanvasDown(e: any): void;
56
+ _updateCanvasFromPointer(e: any): void;
57
+ _onHueDown(e: any): void;
58
+ _updateHueFromPointer(e: any): void;
59
+ _onAlphaDown(e: any): void;
60
+ _updateAlphaFromPointer(e: any): void;
61
+ _onGlobalMove(e: any): void;
62
+ _onGlobalUp(): void;
63
+ _onCanvasKey(e: any): void;
64
+ _onHueKey(e: any): void;
65
+ _onAlphaKey(e: any): void;
66
+ _handleChannelInput(channel: any, rawValue: any, fieldDef: any): void;
67
+ _syncValueAttr(): void;
68
+ _emitChange(): void;
69
+ _buildStyles(): string;
70
+ }
@@ -0,0 +1,118 @@
1
+ declare namespace _default {
2
+ let title: string;
3
+ let tags: string[];
4
+ namespace argTypes {
5
+ namespace value {
6
+ let control: string;
7
+ let description: string;
8
+ }
9
+ namespace format {
10
+ let control_1: string;
11
+ export { control_1 as control };
12
+ export let options: string[];
13
+ let description_1: string;
14
+ export { description_1 as description };
15
+ export namespace table {
16
+ namespace defaultValue {
17
+ let summary: string;
18
+ }
19
+ }
20
+ }
21
+ namespace size {
22
+ let control_2: string;
23
+ export { control_2 as control };
24
+ let options_1: string[];
25
+ export { options_1 as options };
26
+ let description_2: string;
27
+ export { description_2 as description };
28
+ export namespace table_1 {
29
+ export namespace defaultValue_1 {
30
+ let summary_1: string;
31
+ export { summary_1 as summary };
32
+ }
33
+ export { defaultValue_1 as defaultValue };
34
+ }
35
+ export { table_1 as table };
36
+ }
37
+ namespace showAlpha {
38
+ let control_3: string;
39
+ export { control_3 as control };
40
+ let description_3: string;
41
+ export { description_3 as description };
42
+ export namespace table_2 {
43
+ export namespace defaultValue_2 {
44
+ let summary_2: boolean;
45
+ export { summary_2 as summary };
46
+ }
47
+ export { defaultValue_2 as defaultValue };
48
+ }
49
+ export { table_2 as table };
50
+ }
51
+ }
52
+ namespace args {
53
+ let value_1: string;
54
+ export { value_1 as value };
55
+ let format_1: string;
56
+ export { format_1 as format };
57
+ let size_1: string;
58
+ export { size_1 as size };
59
+ let showAlpha_1: boolean;
60
+ export { showAlpha_1 as showAlpha };
61
+ }
62
+ function render({ value, format, size, showAlpha }: {
63
+ value: any;
64
+ format: any;
65
+ size: any;
66
+ showAlpha: any;
67
+ }): string;
68
+ }
69
+ export default _default;
70
+ export const Default: {};
71
+ export namespace WithAlpha {
72
+ export namespace args_1 {
73
+ let showAlpha_2: boolean;
74
+ export { showAlpha_2 as showAlpha };
75
+ let value_2: string;
76
+ export { value_2 as value };
77
+ }
78
+ export { args_1 as args };
79
+ }
80
+ export namespace RGBFormat {
81
+ export namespace args_2 {
82
+ let format_2: string;
83
+ export { format_2 as format };
84
+ let value_3: string;
85
+ export { value_3 as value };
86
+ }
87
+ export { args_2 as args };
88
+ }
89
+ export namespace HSLFormat {
90
+ export namespace args_3 {
91
+ let format_3: string;
92
+ export { format_3 as format };
93
+ let value_4: string;
94
+ export { value_4 as value };
95
+ }
96
+ export { args_3 as args };
97
+ }
98
+ export namespace HSVFormat {
99
+ export namespace args_4 {
100
+ let format_4: string;
101
+ export { format_4 as format };
102
+ let value_5: string;
103
+ export { value_5 as value };
104
+ }
105
+ export { args_4 as args };
106
+ }
107
+ export namespace Sizes {
108
+ export function render_1(): string;
109
+ export { render_1 as render };
110
+ }
111
+ export namespace LimitedFormats {
112
+ export function render_2(): string;
113
+ export { render_2 as render };
114
+ }
115
+ export namespace WithAlphaAllFormats {
116
+ export function render_3(): string;
117
+ export { render_3 as render };
118
+ }