@luzmo/react-lucero 2.5.1 → 2.6.0
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/esm/components/color-area.d.ts +5 -1
- package/esm/components/color-area.js +5 -1
- package/esm/components/color-menu.d.ts +5 -1
- package/esm/components/color-menu.js +4 -0
- package/esm/components/color-picker.d.ts +5 -1
- package/esm/components/color-picker.js +5 -1
- package/esm/components/color-slider.d.ts +5 -1
- package/esm/components/color-slider.js +4 -0
- package/esm/components/slider.d.ts +7 -1
- package/esm/components/slider.js +6 -0
- package/package.json +2 -2
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
import { EventName, ReactWebComponent } from '@lit/react';
|
|
2
|
-
import { LuzmoColorArea as LuzmoColorAreaClass } from '@luzmo/lucero/color-area';
|
|
2
|
+
import { LuzmoColorArea as LuzmoColorAreaClass, InteractionEventDetail } from '@luzmo/lucero/color-area';
|
|
3
3
|
/**
|
|
4
4
|
* React wrapper for <luzmo-color-area>
|
|
5
5
|
*
|
|
6
6
|
* @event onInput - The value of the Color Area has changed.
|
|
7
7
|
* @event onChange - An alteration to the value of the Color Area has been committed by the user.
|
|
8
|
+
* @event onLuzmoInteractionStart - A pointer drag or held-key interaction starts, before its first value change.
|
|
9
|
+
* @event onLuzmoInteractionEnd - The interaction ends after its last `input`/`change`, even when nothing changed. A cancelled pointer commits and ends the same way.
|
|
8
10
|
*/
|
|
9
11
|
export declare const LuzmoColorArea: ReactWebComponent<LuzmoColorAreaClass, {
|
|
10
12
|
onInput: EventName<Event>;
|
|
11
13
|
onChange: EventName<Event>;
|
|
14
|
+
onLuzmoInteractionStart: EventName<CustomEvent<InteractionEventDetail>>;
|
|
15
|
+
onLuzmoInteractionEnd: EventName<CustomEvent<InteractionEventDetail>>;
|
|
12
16
|
}>;
|
|
13
17
|
/** The underlying custom element type for LuzmoColorArea */
|
|
14
18
|
export type LuzmoColorAreaElement = LuzmoColorAreaClass;
|
|
@@ -7,7 +7,9 @@ const LuzmoColorAreaComponent = createComponent({
|
|
|
7
7
|
react: React,
|
|
8
8
|
events: {
|
|
9
9
|
onInput: 'input',
|
|
10
|
-
onChange: 'change'
|
|
10
|
+
onChange: 'change',
|
|
11
|
+
onLuzmoInteractionStart: 'luzmo-interaction-start',
|
|
12
|
+
onLuzmoInteractionEnd: 'luzmo-interaction-end'
|
|
11
13
|
}
|
|
12
14
|
});
|
|
13
15
|
/**
|
|
@@ -15,5 +17,7 @@ const LuzmoColorAreaComponent = createComponent({
|
|
|
15
17
|
*
|
|
16
18
|
* @event onInput - The value of the Color Area has changed.
|
|
17
19
|
* @event onChange - An alteration to the value of the Color Area has been committed by the user.
|
|
20
|
+
* @event onLuzmoInteractionStart - A pointer drag or held-key interaction starts, before its first value change.
|
|
21
|
+
* @event onLuzmoInteractionEnd - The interaction ends after its last `input`/`change`, even when nothing changed. A cancelled pointer commits and ends the same way.
|
|
18
22
|
*/
|
|
19
23
|
export const LuzmoColorArea = LuzmoColorAreaComponent;
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
import { EventName, ReactWebComponent } from '@lit/react';
|
|
2
|
-
import { LuzmoColorMenu as LuzmoColorMenuClass } from '@luzmo/lucero/color-menu';
|
|
2
|
+
import { LuzmoColorMenu as LuzmoColorMenuClass, InteractionEventDetail } from '@luzmo/lucero/color-menu';
|
|
3
3
|
/**
|
|
4
4
|
* React wrapper for <luzmo-color-menu>
|
|
5
5
|
*
|
|
6
6
|
* @event onChange - An alteration to the value of the Color Menu has been committed by the user.
|
|
7
|
+
* @event onLuzmoInteractionStart - Bubbles up from the color area or a color slider when a pointer drag or held-key interaction starts. The menu forwards it unchanged and adds none of its own.
|
|
8
|
+
* @event onLuzmoInteractionEnd - Bubbles up from the same control when that interaction ends. Swatch picks and typed values are single `change` events without an interaction.
|
|
7
9
|
* @event onKeydown - Trick :focus-visible polyfill into thinking keyboard based focus
|
|
8
10
|
*/
|
|
9
11
|
export declare const LuzmoColorMenu: ReactWebComponent<LuzmoColorMenuClass, {
|
|
10
12
|
onChange: EventName<CustomEvent>;
|
|
13
|
+
onLuzmoInteractionStart: EventName<CustomEvent<InteractionEventDetail>>;
|
|
14
|
+
onLuzmoInteractionEnd: EventName<CustomEvent<InteractionEventDetail>>;
|
|
11
15
|
onKeydown: EventName<KeyboardEvent>;
|
|
12
16
|
}>;
|
|
13
17
|
/** The underlying custom element type for LuzmoColorMenu */
|
|
@@ -7,6 +7,8 @@ const LuzmoColorMenuComponent = createComponent({
|
|
|
7
7
|
react: React,
|
|
8
8
|
events: {
|
|
9
9
|
onChange: 'change',
|
|
10
|
+
onLuzmoInteractionStart: 'luzmo-interaction-start',
|
|
11
|
+
onLuzmoInteractionEnd: 'luzmo-interaction-end',
|
|
10
12
|
onKeydown: 'keydown'
|
|
11
13
|
}
|
|
12
14
|
});
|
|
@@ -14,6 +16,8 @@ const LuzmoColorMenuComponent = createComponent({
|
|
|
14
16
|
* React wrapper for <luzmo-color-menu>
|
|
15
17
|
*
|
|
16
18
|
* @event onChange - An alteration to the value of the Color Menu has been committed by the user.
|
|
19
|
+
* @event onLuzmoInteractionStart - Bubbles up from the color area or a color slider when a pointer drag or held-key interaction starts. The menu forwards it unchanged and adds none of its own.
|
|
20
|
+
* @event onLuzmoInteractionEnd - Bubbles up from the same control when that interaction ends. Swatch picks and typed values are single `change` events without an interaction.
|
|
17
21
|
* @event onKeydown - Trick :focus-visible polyfill into thinking keyboard based focus
|
|
18
22
|
*/
|
|
19
23
|
export const LuzmoColorMenu = LuzmoColorMenuComponent;
|
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
import { EventName, ReactWebComponent } from '@lit/react';
|
|
2
|
-
import { LuzmoColorPicker as LuzmoColorPickerClass } from '@luzmo/lucero/color-picker';
|
|
2
|
+
import { LuzmoColorPicker as LuzmoColorPickerClass, InteractionEventDetail } from '@luzmo/lucero/color-picker';
|
|
3
3
|
/**
|
|
4
4
|
* React wrapper for <luzmo-color-picker>
|
|
5
5
|
*
|
|
6
6
|
* @event onChange - An alteration to the value of the Color Picker has been committed by the user.
|
|
7
7
|
* @event onInput - The value of the Color Picker has changed.
|
|
8
|
+
* @event onLuzmoInteractionStart - Bubbles up from the menu's color area or color sliders when a pointer drag or held-key interaction starts, before the first `change` it causes.
|
|
9
|
+
* @event onLuzmoInteractionEnd - Bubbles up when that interaction ends, after its last `change`. Closing the popover ends an interaction in progress. Swatch picks and typed values are single `change` events without an interaction.
|
|
8
10
|
*/
|
|
9
11
|
export declare const LuzmoColorPicker: ReactWebComponent<LuzmoColorPickerClass, {
|
|
10
12
|
onChange: EventName<Event>;
|
|
11
13
|
onInput: EventName<CustomEvent>;
|
|
14
|
+
onLuzmoInteractionStart: EventName<CustomEvent<InteractionEventDetail>>;
|
|
15
|
+
onLuzmoInteractionEnd: EventName<CustomEvent<InteractionEventDetail>>;
|
|
12
16
|
}>;
|
|
13
17
|
/** The underlying custom element type for LuzmoColorPicker */
|
|
14
18
|
export type LuzmoColorPickerElement = LuzmoColorPickerClass;
|
|
@@ -7,7 +7,9 @@ const LuzmoColorPickerComponent = createComponent({
|
|
|
7
7
|
react: React,
|
|
8
8
|
events: {
|
|
9
9
|
onChange: 'change',
|
|
10
|
-
onInput: 'input'
|
|
10
|
+
onInput: 'input',
|
|
11
|
+
onLuzmoInteractionStart: 'luzmo-interaction-start',
|
|
12
|
+
onLuzmoInteractionEnd: 'luzmo-interaction-end'
|
|
11
13
|
}
|
|
12
14
|
});
|
|
13
15
|
/**
|
|
@@ -15,5 +17,7 @@ const LuzmoColorPickerComponent = createComponent({
|
|
|
15
17
|
*
|
|
16
18
|
* @event onChange - An alteration to the value of the Color Picker has been committed by the user.
|
|
17
19
|
* @event onInput - The value of the Color Picker has changed.
|
|
20
|
+
* @event onLuzmoInteractionStart - Bubbles up from the menu's color area or color sliders when a pointer drag or held-key interaction starts, before the first `change` it causes.
|
|
21
|
+
* @event onLuzmoInteractionEnd - Bubbles up when that interaction ends, after its last `change`. Closing the popover ends an interaction in progress. Swatch picks and typed values are single `change` events without an interaction.
|
|
18
22
|
*/
|
|
19
23
|
export const LuzmoColorPicker = LuzmoColorPickerComponent;
|
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
import { EventName, ReactWebComponent } from '@lit/react';
|
|
2
|
-
import { LuzmoColorSlider as LuzmoColorSliderClass } from '@luzmo/lucero/color-slider';
|
|
2
|
+
import { LuzmoColorSlider as LuzmoColorSliderClass, InteractionEventDetail } from '@luzmo/lucero/color-slider';
|
|
3
3
|
/**
|
|
4
4
|
* React wrapper for <luzmo-color-slider>
|
|
5
5
|
*
|
|
6
6
|
* @event onInput - The value of the Color Slider has changed.
|
|
7
7
|
* @event onChange - An alteration to the value of the Color Slider has been committed by the user.
|
|
8
|
+
* @event onLuzmoInteractionStart - A pointer drag or held-key interaction starts, before its first value change.
|
|
9
|
+
* @event onLuzmoInteractionEnd - The interaction ends after its last `input`/`change`, even when nothing changed. A cancelled pointer commits and ends the same way.
|
|
8
10
|
* @event onKeydown - Trick :focus-visible polyfill into thinking keyboard based focus
|
|
9
11
|
*/
|
|
10
12
|
export declare const LuzmoColorSlider: ReactWebComponent<LuzmoColorSliderClass, {
|
|
11
13
|
onInput: EventName<Event>;
|
|
12
14
|
onChange: EventName<Event>;
|
|
15
|
+
onLuzmoInteractionStart: EventName<CustomEvent<InteractionEventDetail>>;
|
|
16
|
+
onLuzmoInteractionEnd: EventName<CustomEvent<InteractionEventDetail>>;
|
|
13
17
|
onKeydown: EventName<KeyboardEvent>;
|
|
14
18
|
}>;
|
|
15
19
|
/** The underlying custom element type for LuzmoColorSlider */
|
|
@@ -8,6 +8,8 @@ const LuzmoColorSliderComponent = createComponent({
|
|
|
8
8
|
events: {
|
|
9
9
|
onInput: 'input',
|
|
10
10
|
onChange: 'change',
|
|
11
|
+
onLuzmoInteractionStart: 'luzmo-interaction-start',
|
|
12
|
+
onLuzmoInteractionEnd: 'luzmo-interaction-end',
|
|
11
13
|
onKeydown: 'keydown'
|
|
12
14
|
}
|
|
13
15
|
});
|
|
@@ -16,6 +18,8 @@ const LuzmoColorSliderComponent = createComponent({
|
|
|
16
18
|
*
|
|
17
19
|
* @event onInput - The value of the Color Slider has changed.
|
|
18
20
|
* @event onChange - An alteration to the value of the Color Slider has been committed by the user.
|
|
21
|
+
* @event onLuzmoInteractionStart - A pointer drag or held-key interaction starts, before its first value change.
|
|
22
|
+
* @event onLuzmoInteractionEnd - The interaction ends after its last `input`/`change`, even when nothing changed. A cancelled pointer commits and ends the same way.
|
|
19
23
|
* @event onKeydown - Trick :focus-visible polyfill into thinking keyboard based focus
|
|
20
24
|
*/
|
|
21
25
|
export const LuzmoColorSlider = LuzmoColorSliderComponent;
|
|
@@ -1,15 +1,21 @@
|
|
|
1
1
|
import { EventName, ReactWebComponent } from '@lit/react';
|
|
2
|
-
import { LuzmoSlider as LuzmoSliderClass } from '@luzmo/lucero/slider';
|
|
2
|
+
import { LuzmoSlider as LuzmoSliderClass, InteractionEventDetail } from '@luzmo/lucero/slider';
|
|
3
3
|
/**
|
|
4
4
|
* A numeric slider with one or more handles.
|
|
5
5
|
*
|
|
6
6
|
* @event onInput - The value changes during user interaction.
|
|
7
7
|
* @event onChange - A user value change is committed.
|
|
8
|
+
* @event onLuzmoInteractionStart - A pointer drag or held-key interaction starts, before its first value change.
|
|
9
|
+
* @event onLuzmoInteractionEnd - The interaction ends after its last `input`/`change`, even when nothing changed.
|
|
10
|
+
* @event onLuzmoInteractionCancel - A cancelled pointer drag ends after the value reverted to its start.
|
|
8
11
|
* @event onKeydown - Trick :focus-visible polyfill into thinking keyboard based focus
|
|
9
12
|
*/
|
|
10
13
|
export declare const LuzmoSlider: ReactWebComponent<LuzmoSliderClass, {
|
|
11
14
|
onInput: EventName<Event>;
|
|
12
15
|
onChange: EventName<Event>;
|
|
16
|
+
onLuzmoInteractionStart: EventName<CustomEvent<InteractionEventDetail>>;
|
|
17
|
+
onLuzmoInteractionEnd: EventName<CustomEvent<InteractionEventDetail>>;
|
|
18
|
+
onLuzmoInteractionCancel: EventName<CustomEvent<InteractionEventDetail>>;
|
|
13
19
|
onKeydown: EventName<KeyboardEvent>;
|
|
14
20
|
}>;
|
|
15
21
|
/** The underlying custom element type for LuzmoSlider */
|
package/esm/components/slider.js
CHANGED
|
@@ -8,6 +8,9 @@ const LuzmoSliderComponent = createComponent({
|
|
|
8
8
|
events: {
|
|
9
9
|
onInput: 'input',
|
|
10
10
|
onChange: 'change',
|
|
11
|
+
onLuzmoInteractionStart: 'luzmo-interaction-start',
|
|
12
|
+
onLuzmoInteractionEnd: 'luzmo-interaction-end',
|
|
13
|
+
onLuzmoInteractionCancel: 'luzmo-interaction-cancel',
|
|
11
14
|
onKeydown: 'keydown'
|
|
12
15
|
}
|
|
13
16
|
});
|
|
@@ -16,6 +19,9 @@ const LuzmoSliderComponent = createComponent({
|
|
|
16
19
|
*
|
|
17
20
|
* @event onInput - The value changes during user interaction.
|
|
18
21
|
* @event onChange - A user value change is committed.
|
|
22
|
+
* @event onLuzmoInteractionStart - A pointer drag or held-key interaction starts, before its first value change.
|
|
23
|
+
* @event onLuzmoInteractionEnd - The interaction ends after its last `input`/`change`, even when nothing changed.
|
|
24
|
+
* @event onLuzmoInteractionCancel - A cancelled pointer drag ends after the value reverted to its start.
|
|
19
25
|
* @event onKeydown - Trick :focus-visible polyfill into thinking keyboard based focus
|
|
20
26
|
*/
|
|
21
27
|
export const LuzmoSlider = LuzmoSliderComponent;
|