@waggylabs/yumekit 0.4.2-beta.34 → 0.4.2-beta.35
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 +2 -0
- package/dist/components/y-color/y-color.d.ts +46 -0
- package/dist/components/y-color/y-color.stories.d.ts +157 -0
- package/dist/components/y-color/y-color.test.d.ts +1 -0
- package/dist/components/y-color.js +3087 -0
- package/dist/components/y-colorpicker/y-colorpicker.d.ts +6 -3
- package/dist/components/y-colorpicker/y-colorpicker.stories.d.ts +18 -52
- package/dist/components/y-colorpicker.js +324 -129
- package/dist/components/y-input.js +25 -1
- package/dist/components/y-theme.js +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.js +975 -940
- package/dist/styles/variables.css +23 -0
- package/dist/yumekit.min.js +1 -1
- package/llm.txt +76 -161
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -45,6 +45,8 @@ Delete any empty sections before publishing.
|
|
|
45
45
|
|
|
46
46
|
### Added
|
|
47
47
|
|
|
48
|
+
- 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`.
|
|
49
|
+
- 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. Methods: `open()`, `close()`, `clear()`. Events: `change` (re-dispatched from the internal colorpicker). CSS custom properties: `--component-color-swatch-size-small/medium/large`, `--component-color-swatch-border-radius`, `--component-color-trigger-gap`, `--component-color-popup-offset`, `--component-color-z-index`. CSS parts: `color`, `wrapper`, `label-wrapper`, `trigger`, `swatch`, `display`, `clear-btn`, `popup`.
|
|
48
50
|
- New `y-button-group` component — wraps `y-button` (and other elements such as `y-input` or `y-select`) into a visually connected toolbar. Automatically removes inner border-radius on middle children and collapses shared borders to avoid double-border artifacts. Supports `orientation` attribute (`"horizontal"` (default) | `"vertical"`). Works with any slotted child that respects the `--component-button-border-radius-outer` CSS custom property.
|
|
49
51
|
- `href`, `target`, and `rel` attributes on `y-button`. When `href` is set the internal element switches from `<button>` to `<a>`, preserving all visual styles and size/color/style-type variants. Disabled state is handled via `aria-disabled` and `pointer-events: none` since `<a>` has no native disabled.
|
|
50
52
|
- `navigate` custom event on `y-appbar`, `y-panel`, and `y-menu`. Fires before any navigation when an item with an `href` / `url` is clicked. The event is cancelable (`e.preventDefault()`) and carries `event.detail.href` — React Router and other SPA routers can intercept it without any framework-specific glue.
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export class YumeColor extends HTMLElement {
|
|
2
|
+
static formAssociated: boolean;
|
|
3
|
+
static get observedAttributes(): string[];
|
|
4
|
+
_internals: ElementInternals;
|
|
5
|
+
_onDocumentClick(): void;
|
|
6
|
+
_onPointerDown: () => void;
|
|
7
|
+
_clickInsidePopup: boolean;
|
|
8
|
+
connectedCallback(): void;
|
|
9
|
+
disconnectedCallback(): void;
|
|
10
|
+
attributeChangedCallback(name: any, oldVal: any, newVal: any): void;
|
|
11
|
+
set clearable(v: boolean);
|
|
12
|
+
get clearable(): boolean;
|
|
13
|
+
set disabled(v: boolean);
|
|
14
|
+
get disabled(): boolean;
|
|
15
|
+
set format(v: string);
|
|
16
|
+
get format(): string;
|
|
17
|
+
set formats(v: any);
|
|
18
|
+
get formats(): any;
|
|
19
|
+
set invalid(v: boolean);
|
|
20
|
+
get invalid(): boolean;
|
|
21
|
+
set labelPosition(v: string);
|
|
22
|
+
get labelPosition(): string;
|
|
23
|
+
set name(v: string);
|
|
24
|
+
get name(): string;
|
|
25
|
+
set placeholder(v: string);
|
|
26
|
+
get placeholder(): string;
|
|
27
|
+
set showAlpha(v: boolean);
|
|
28
|
+
get showAlpha(): boolean;
|
|
29
|
+
set size(v: string);
|
|
30
|
+
get size(): string;
|
|
31
|
+
set value(v: string);
|
|
32
|
+
get value(): string;
|
|
33
|
+
clear(): void;
|
|
34
|
+
close(): void;
|
|
35
|
+
open(): void;
|
|
36
|
+
render(): void;
|
|
37
|
+
_bindListeners(): void;
|
|
38
|
+
_fromPicker: boolean;
|
|
39
|
+
_buildStyles(isDisabled: any): string;
|
|
40
|
+
_positionPopup(popup: any, trigger: any): void;
|
|
41
|
+
_setOpen(open: any): void;
|
|
42
|
+
_syncPickerValue(): void;
|
|
43
|
+
_updateClearBtn(): void;
|
|
44
|
+
_updateDisplay(): void;
|
|
45
|
+
_updateValidationState(): void;
|
|
46
|
+
}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
let title: string;
|
|
3
|
+
let tags: string[];
|
|
4
|
+
let decorators: ((story: any) => string)[];
|
|
5
|
+
namespace argTypes {
|
|
6
|
+
namespace value {
|
|
7
|
+
let control: string;
|
|
8
|
+
let description: string;
|
|
9
|
+
}
|
|
10
|
+
namespace format {
|
|
11
|
+
let control_1: string;
|
|
12
|
+
export { control_1 as control };
|
|
13
|
+
export let options: string[];
|
|
14
|
+
let description_1: string;
|
|
15
|
+
export { description_1 as description };
|
|
16
|
+
export namespace table {
|
|
17
|
+
namespace defaultValue {
|
|
18
|
+
let summary: string;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
namespace size {
|
|
23
|
+
let control_2: string;
|
|
24
|
+
export { control_2 as control };
|
|
25
|
+
let options_1: string[];
|
|
26
|
+
export { options_1 as options };
|
|
27
|
+
let description_2: string;
|
|
28
|
+
export { description_2 as description };
|
|
29
|
+
export namespace table_1 {
|
|
30
|
+
export namespace defaultValue_1 {
|
|
31
|
+
let summary_1: string;
|
|
32
|
+
export { summary_1 as summary };
|
|
33
|
+
}
|
|
34
|
+
export { defaultValue_1 as defaultValue };
|
|
35
|
+
}
|
|
36
|
+
export { table_1 as table };
|
|
37
|
+
}
|
|
38
|
+
namespace placeholder {
|
|
39
|
+
let control_3: string;
|
|
40
|
+
export { control_3 as control };
|
|
41
|
+
let description_3: string;
|
|
42
|
+
export { description_3 as description };
|
|
43
|
+
export namespace table_2 {
|
|
44
|
+
export namespace defaultValue_2 {
|
|
45
|
+
let summary_2: string;
|
|
46
|
+
export { summary_2 as summary };
|
|
47
|
+
}
|
|
48
|
+
export { defaultValue_2 as defaultValue };
|
|
49
|
+
}
|
|
50
|
+
export { table_2 as table };
|
|
51
|
+
}
|
|
52
|
+
namespace showAlpha {
|
|
53
|
+
let control_4: string;
|
|
54
|
+
export { control_4 as control };
|
|
55
|
+
let description_4: string;
|
|
56
|
+
export { description_4 as description };
|
|
57
|
+
export namespace table_3 {
|
|
58
|
+
export namespace defaultValue_3 {
|
|
59
|
+
let summary_3: string;
|
|
60
|
+
export { summary_3 as summary };
|
|
61
|
+
}
|
|
62
|
+
export { defaultValue_3 as defaultValue };
|
|
63
|
+
}
|
|
64
|
+
export { table_3 as table };
|
|
65
|
+
}
|
|
66
|
+
namespace clearable {
|
|
67
|
+
let control_5: string;
|
|
68
|
+
export { control_5 as control };
|
|
69
|
+
let description_5: string;
|
|
70
|
+
export { description_5 as description };
|
|
71
|
+
export namespace table_4 {
|
|
72
|
+
export namespace defaultValue_4 {
|
|
73
|
+
let summary_4: string;
|
|
74
|
+
export { summary_4 as summary };
|
|
75
|
+
}
|
|
76
|
+
export { defaultValue_4 as defaultValue };
|
|
77
|
+
}
|
|
78
|
+
export { table_4 as table };
|
|
79
|
+
}
|
|
80
|
+
namespace disabled {
|
|
81
|
+
let control_6: string;
|
|
82
|
+
export { control_6 as control };
|
|
83
|
+
let description_6: string;
|
|
84
|
+
export { description_6 as description };
|
|
85
|
+
export namespace table_5 {
|
|
86
|
+
export namespace defaultValue_5 {
|
|
87
|
+
let summary_5: string;
|
|
88
|
+
export { summary_5 as summary };
|
|
89
|
+
}
|
|
90
|
+
export { defaultValue_5 as defaultValue };
|
|
91
|
+
}
|
|
92
|
+
export { table_5 as table };
|
|
93
|
+
}
|
|
94
|
+
namespace invalid {
|
|
95
|
+
let control_7: string;
|
|
96
|
+
export { control_7 as control };
|
|
97
|
+
let description_7: string;
|
|
98
|
+
export { description_7 as description };
|
|
99
|
+
export namespace table_6 {
|
|
100
|
+
export namespace defaultValue_6 {
|
|
101
|
+
let summary_6: string;
|
|
102
|
+
export { summary_6 as summary };
|
|
103
|
+
}
|
|
104
|
+
export { defaultValue_6 as defaultValue };
|
|
105
|
+
}
|
|
106
|
+
export { table_6 as table };
|
|
107
|
+
}
|
|
108
|
+
namespace labelPosition {
|
|
109
|
+
let control_8: string;
|
|
110
|
+
export { control_8 as control };
|
|
111
|
+
let options_2: string[];
|
|
112
|
+
export { options_2 as options };
|
|
113
|
+
let description_8: string;
|
|
114
|
+
export { description_8 as description };
|
|
115
|
+
export namespace table_7 {
|
|
116
|
+
export namespace defaultValue_7 {
|
|
117
|
+
let summary_7: string;
|
|
118
|
+
export { summary_7 as summary };
|
|
119
|
+
}
|
|
120
|
+
export { defaultValue_7 as defaultValue };
|
|
121
|
+
}
|
|
122
|
+
export { table_7 as table };
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
export default _default;
|
|
127
|
+
export namespace Default {
|
|
128
|
+
function render(): string;
|
|
129
|
+
}
|
|
130
|
+
export namespace WithAlpha {
|
|
131
|
+
export function render_1(): string;
|
|
132
|
+
export { render_1 as render };
|
|
133
|
+
}
|
|
134
|
+
export namespace Formats {
|
|
135
|
+
export function render_2(): string;
|
|
136
|
+
export { render_2 as render };
|
|
137
|
+
}
|
|
138
|
+
export namespace Clearable {
|
|
139
|
+
export function render_3(): string;
|
|
140
|
+
export { render_3 as render };
|
|
141
|
+
}
|
|
142
|
+
export namespace Sizes {
|
|
143
|
+
export function render_4(): string;
|
|
144
|
+
export { render_4 as render };
|
|
145
|
+
}
|
|
146
|
+
export namespace Disabled {
|
|
147
|
+
export function render_5(): string;
|
|
148
|
+
export { render_5 as render };
|
|
149
|
+
}
|
|
150
|
+
export namespace Invalid {
|
|
151
|
+
export function render_6(): string;
|
|
152
|
+
export { render_6 as render };
|
|
153
|
+
}
|
|
154
|
+
export namespace LabelBottom {
|
|
155
|
+
export function render_7(): string;
|
|
156
|
+
export { render_7 as render };
|
|
157
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|