@luzmo/react-lucero 1.0.3-alpha.14
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/README.md +28 -0
- package/esm/components/accordion.d.ts +8 -0
- package/esm/components/accordion.js +13 -0
- package/esm/components/action-bar.d.ts +10 -0
- package/esm/components/action-bar.js +15 -0
- package/esm/components/action-button.d.ts +16 -0
- package/esm/components/action-button.js +21 -0
- package/esm/components/action-group.d.ts +12 -0
- package/esm/components/action-group.js +17 -0
- package/esm/components/action-menu.d.ts +14 -0
- package/esm/components/action-menu.js +19 -0
- package/esm/components/avatar.d.ts +12 -0
- package/esm/components/avatar.js +17 -0
- package/esm/components/badge.d.ts +8 -0
- package/esm/components/badge.js +13 -0
- package/esm/components/button-group.d.ts +8 -0
- package/esm/components/button-group.js +13 -0
- package/esm/components/button.d.ts +14 -0
- package/esm/components/button.js +19 -0
- package/esm/components/calendar.d.ts +13 -0
- package/esm/components/calendar.js +18 -0
- package/esm/components/chat-message-group.d.ts +11 -0
- package/esm/components/chat-message-group.js +16 -0
- package/esm/components/chat-message.d.ts +8 -0
- package/esm/components/chat-message.js +13 -0
- package/esm/components/checkbox.d.ts +12 -0
- package/esm/components/checkbox.js +17 -0
- package/esm/components/color-area.d.ts +14 -0
- package/esm/components/color-area.js +19 -0
- package/esm/components/color-field.d.ts +18 -0
- package/esm/components/color-field.js +23 -0
- package/esm/components/color-handle.d.ts +8 -0
- package/esm/components/color-handle.js +13 -0
- package/esm/components/color-loupe.d.ts +8 -0
- package/esm/components/color-loupe.js +13 -0
- package/esm/components/color-menu.d.ts +14 -0
- package/esm/components/color-menu.js +19 -0
- package/esm/components/color-palette-group.d.ts +12 -0
- package/esm/components/color-palette-group.js +17 -0
- package/esm/components/color-palette.d.ts +12 -0
- package/esm/components/color-palette.js +17 -0
- package/esm/components/color-picker.d.ts +14 -0
- package/esm/components/color-picker.js +19 -0
- package/esm/components/color-slider.d.ts +16 -0
- package/esm/components/color-slider.js +21 -0
- package/esm/components/date-range-picker.d.ts +16 -0
- package/esm/components/date-range-picker.js +21 -0
- package/esm/components/date-time-picker.d.ts +16 -0
- package/esm/components/date-time-picker.js +21 -0
- package/esm/components/divider.d.ts +8 -0
- package/esm/components/divider.js +13 -0
- package/esm/components/field-group.d.ts +8 -0
- package/esm/components/field-group.js +13 -0
- package/esm/components/field-label.d.ts +8 -0
- package/esm/components/field-label.js +13 -0
- package/esm/components/icon.d.ts +8 -0
- package/esm/components/icon.js +13 -0
- package/esm/components/infield-button.d.ts +12 -0
- package/esm/components/infield-button.js +17 -0
- package/esm/components/label.d.ts +8 -0
- package/esm/components/label.js +13 -0
- package/esm/components/menu.d.ts +13 -0
- package/esm/components/menu.js +18 -0
- package/esm/components/multi-language-field.d.ts +12 -0
- package/esm/components/multi-language-field.js +17 -0
- package/esm/components/number-field.d.ts +18 -0
- package/esm/components/number-field.js +23 -0
- package/esm/components/options.d.ts +18 -0
- package/esm/components/options.js +23 -0
- package/esm/components/overlay.d.ts +16 -0
- package/esm/components/overlay.js +21 -0
- package/esm/components/picker-button.d.ts +12 -0
- package/esm/components/picker-button.js +17 -0
- package/esm/components/picker.d.ts +19 -0
- package/esm/components/picker.js +24 -0
- package/esm/components/popover.d.ts +8 -0
- package/esm/components/popover.js +13 -0
- package/esm/components/progress-bar.d.ts +8 -0
- package/esm/components/progress-bar.js +13 -0
- package/esm/components/progress-circle.d.ts +8 -0
- package/esm/components/progress-circle.js +13 -0
- package/esm/components/progress-steps.d.ts +14 -0
- package/esm/components/progress-steps.js +19 -0
- package/esm/components/prompt-box.d.ts +30 -0
- package/esm/components/prompt-box.js +35 -0
- package/esm/components/radio.d.ts +14 -0
- package/esm/components/radio.js +19 -0
- package/esm/components/search.d.ts +20 -0
- package/esm/components/search.js +25 -0
- package/esm/components/select.d.ts +22 -0
- package/esm/components/select.js +27 -0
- package/esm/components/skeleton-loader.d.ts +11 -0
- package/esm/components/skeleton-loader.js +16 -0
- package/esm/components/slider.d.ts +10 -0
- package/esm/components/slider.js +15 -0
- package/esm/components/status-light.d.ts +8 -0
- package/esm/components/status-light.js +13 -0
- package/esm/components/swatch.d.ts +13 -0
- package/esm/components/swatch.js +18 -0
- package/esm/components/switch.d.ts +14 -0
- package/esm/components/switch.js +19 -0
- package/esm/components/tabs.d.ts +14 -0
- package/esm/components/tabs.js +19 -0
- package/esm/components/tags.d.ts +8 -0
- package/esm/components/tags.js +13 -0
- package/esm/components/text-field.d.ts +18 -0
- package/esm/components/text-field.js +23 -0
- package/esm/components/toast.d.ts +12 -0
- package/esm/components/toast.js +17 -0
- package/esm/components/tooltip.d.ts +8 -0
- package/esm/components/tooltip.js +13 -0
- package/esm/components/top-nav.d.ts +14 -0
- package/esm/components/top-nav.js +19 -0
- package/esm/index.d.ts +59 -0
- package/esm/index.js +232 -0
- package/package.json +36 -0
package/README.md
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Luzmo Lucero Design System - React Wrappers
|
|
2
|
+
|
|
3
|
+
> Lightweight React wrappers using `@lit/react`
|
|
4
|
+
|
|
5
|
+
This package provides React wrappers for the Luzmo Lucero Design System web components.
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install @luzmo/react-lucero @luzmo/lucero react react-dom @lit/react
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
```tsx
|
|
16
|
+
import { LuzmoButton } from '@luzmo/react-lucero';
|
|
17
|
+
// or
|
|
18
|
+
import { LuzmoButton } from '@luzmo/react-lucero/button';
|
|
19
|
+
|
|
20
|
+
export function App() {
|
|
21
|
+
return <LuzmoButton variant="primary">Click me</LuzmoButton>;
|
|
22
|
+
}
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Notes
|
|
26
|
+
|
|
27
|
+
- This package depends on `@luzmo/lucero` for the underlying custom elements
|
|
28
|
+
- Keep this file under `wrappers/react/package/` to customize published README content
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReactWebComponent } from '@lit/react';
|
|
2
|
+
import { LuzmoAccordion as LuzmoAccordionClass } from '@luzmo/lucero/accordion';
|
|
3
|
+
/**
|
|
4
|
+
* React wrapper for <luzmo-accordion>
|
|
5
|
+
*/
|
|
6
|
+
export declare const LuzmoAccordion: ReactWebComponent<LuzmoAccordionClass>;
|
|
7
|
+
/** The underlying custom element type for LuzmoAccordion */
|
|
8
|
+
export type LuzmoAccordionElement = LuzmoAccordionClass;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { createComponent } from '@lit/react';
|
|
3
|
+
import { LuzmoAccordion as LuzmoAccordionClass } from '@luzmo/lucero/accordion';
|
|
4
|
+
const LuzmoAccordionComponent = createComponent({
|
|
5
|
+
tagName: 'luzmo-accordion',
|
|
6
|
+
elementClass: LuzmoAccordionClass,
|
|
7
|
+
react: React,
|
|
8
|
+
events: {}
|
|
9
|
+
});
|
|
10
|
+
/**
|
|
11
|
+
* React wrapper for <luzmo-accordion>
|
|
12
|
+
*/
|
|
13
|
+
export const LuzmoAccordion = LuzmoAccordionComponent;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { EventName, ReactWebComponent } from '@lit/react';
|
|
2
|
+
import { LuzmoActionBar as LuzmoActionBarClass } from '@luzmo/lucero/action-bar';
|
|
3
|
+
/**
|
|
4
|
+
* React wrapper for <luzmo-action-bar>
|
|
5
|
+
*/
|
|
6
|
+
export declare const LuzmoActionBar: ReactWebComponent<LuzmoActionBarClass, {
|
|
7
|
+
onClose: EventName<Event>;
|
|
8
|
+
}>;
|
|
9
|
+
/** The underlying custom element type for LuzmoActionBar */
|
|
10
|
+
export type LuzmoActionBarElement = LuzmoActionBarClass;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { createComponent } from '@lit/react';
|
|
3
|
+
import { LuzmoActionBar as LuzmoActionBarClass } from '@luzmo/lucero/action-bar';
|
|
4
|
+
const LuzmoActionBarComponent = createComponent({
|
|
5
|
+
tagName: 'luzmo-action-bar',
|
|
6
|
+
elementClass: LuzmoActionBarClass,
|
|
7
|
+
react: React,
|
|
8
|
+
events: {
|
|
9
|
+
onClose: 'close'
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
/**
|
|
13
|
+
* React wrapper for <luzmo-action-bar>
|
|
14
|
+
*/
|
|
15
|
+
export const LuzmoActionBar = LuzmoActionBarComponent;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { EventName, ReactWebComponent } from '@lit/react';
|
|
2
|
+
import { LuzmoActionButton as LuzmoActionButtonClass } from '@luzmo/lucero/action-button';
|
|
3
|
+
/**
|
|
4
|
+
* React wrapper for <luzmo-action-button>
|
|
5
|
+
*
|
|
6
|
+
* @event onLongpress - Synthesizes a "longpress" interaction that signifies a `pointerdown` event that is >=300ms or a keyboard event where code is `Space` or code is `ArrowDown` while `altKey===true`.
|
|
7
|
+
* @event onChange - Announces a change in the `selected` property of an action button
|
|
8
|
+
* @event onKeydown - Trick :focus-visible polyfill into thinking keyboard based focus
|
|
9
|
+
*/
|
|
10
|
+
export declare const LuzmoActionButton: ReactWebComponent<LuzmoActionButtonClass, {
|
|
11
|
+
onLongpress: EventName<CustomEvent>;
|
|
12
|
+
onChange: EventName<CustomEvent>;
|
|
13
|
+
onKeydown: EventName<KeyboardEvent>;
|
|
14
|
+
}>;
|
|
15
|
+
/** The underlying custom element type for LuzmoActionButton */
|
|
16
|
+
export type LuzmoActionButtonElement = LuzmoActionButtonClass;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { createComponent } from '@lit/react';
|
|
3
|
+
import { LuzmoActionButton as LuzmoActionButtonClass } from '@luzmo/lucero/action-button';
|
|
4
|
+
const LuzmoActionButtonComponent = createComponent({
|
|
5
|
+
tagName: 'luzmo-action-button',
|
|
6
|
+
elementClass: LuzmoActionButtonClass,
|
|
7
|
+
react: React,
|
|
8
|
+
events: {
|
|
9
|
+
onLongpress: 'longpress',
|
|
10
|
+
onChange: 'change',
|
|
11
|
+
onKeydown: 'keydown'
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
/**
|
|
15
|
+
* React wrapper for <luzmo-action-button>
|
|
16
|
+
*
|
|
17
|
+
* @event onLongpress - Synthesizes a "longpress" interaction that signifies a `pointerdown` event that is >=300ms or a keyboard event where code is `Space` or code is `ArrowDown` while `altKey===true`.
|
|
18
|
+
* @event onChange - Announces a change in the `selected` property of an action button
|
|
19
|
+
* @event onKeydown - Trick :focus-visible polyfill into thinking keyboard based focus
|
|
20
|
+
*/
|
|
21
|
+
export const LuzmoActionButton = LuzmoActionButtonComponent;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { EventName, ReactWebComponent } from '@lit/react';
|
|
2
|
+
import { LuzmoActionGroup as LuzmoActionGroupClass } from '@luzmo/lucero/action-group';
|
|
3
|
+
/**
|
|
4
|
+
* React wrapper for <luzmo-action-group>
|
|
5
|
+
*
|
|
6
|
+
* @event onChange - Announces that selection state has been changed by user
|
|
7
|
+
*/
|
|
8
|
+
export declare const LuzmoActionGroup: ReactWebComponent<LuzmoActionGroupClass, {
|
|
9
|
+
onChange: EventName<Event>;
|
|
10
|
+
}>;
|
|
11
|
+
/** The underlying custom element type for LuzmoActionGroup */
|
|
12
|
+
export type LuzmoActionGroupElement = LuzmoActionGroupClass;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { createComponent } from '@lit/react';
|
|
3
|
+
import { LuzmoActionGroup as LuzmoActionGroupClass } from '@luzmo/lucero/action-group';
|
|
4
|
+
const LuzmoActionGroupComponent = createComponent({
|
|
5
|
+
tagName: 'luzmo-action-group',
|
|
6
|
+
elementClass: LuzmoActionGroupClass,
|
|
7
|
+
react: React,
|
|
8
|
+
events: {
|
|
9
|
+
onChange: 'change'
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
/**
|
|
13
|
+
* React wrapper for <luzmo-action-group>
|
|
14
|
+
*
|
|
15
|
+
* @event onChange - Announces that selection state has been changed by user
|
|
16
|
+
*/
|
|
17
|
+
export const LuzmoActionGroup = LuzmoActionGroupComponent;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { EventName, ReactWebComponent } from '@lit/react';
|
|
2
|
+
import { LuzmoActionMenu as LuzmoActionMenuClass } from '@luzmo/lucero/action-menu';
|
|
3
|
+
/**
|
|
4
|
+
* React wrapper for <luzmo-action-menu>
|
|
5
|
+
*
|
|
6
|
+
* @event onKeydown - Trick :focus-visible polyfill into thinking keyboard based focus
|
|
7
|
+
*/
|
|
8
|
+
export declare const LuzmoActionMenu: ReactWebComponent<LuzmoActionMenuClass, {
|
|
9
|
+
onChange: EventName<CustomEvent>;
|
|
10
|
+
onScroll: EventName<Event>;
|
|
11
|
+
onKeydown: EventName<KeyboardEvent>;
|
|
12
|
+
}>;
|
|
13
|
+
/** The underlying custom element type for LuzmoActionMenu */
|
|
14
|
+
export type LuzmoActionMenuElement = LuzmoActionMenuClass;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { createComponent } from '@lit/react';
|
|
3
|
+
import { LuzmoActionMenu as LuzmoActionMenuClass } from '@luzmo/lucero/action-menu';
|
|
4
|
+
const LuzmoActionMenuComponent = createComponent({
|
|
5
|
+
tagName: 'luzmo-action-menu',
|
|
6
|
+
elementClass: LuzmoActionMenuClass,
|
|
7
|
+
react: React,
|
|
8
|
+
events: {
|
|
9
|
+
onChange: 'change',
|
|
10
|
+
onScroll: 'scroll',
|
|
11
|
+
onKeydown: 'keydown'
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
/**
|
|
15
|
+
* React wrapper for <luzmo-action-menu>
|
|
16
|
+
*
|
|
17
|
+
* @event onKeydown - Trick :focus-visible polyfill into thinking keyboard based focus
|
|
18
|
+
*/
|
|
19
|
+
export const LuzmoActionMenu = LuzmoActionMenuComponent;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { EventName, ReactWebComponent } from '@lit/react';
|
|
2
|
+
import { LuzmoAvatar as LuzmoAvatarClass } from '@luzmo/lucero/avatar';
|
|
3
|
+
/**
|
|
4
|
+
* React wrapper for <luzmo-avatar>
|
|
5
|
+
*
|
|
6
|
+
* @event onKeydown - Trick :focus-visible polyfill into thinking keyboard based focus
|
|
7
|
+
*/
|
|
8
|
+
export declare const LuzmoAvatar: ReactWebComponent<LuzmoAvatarClass, {
|
|
9
|
+
onKeydown: EventName<KeyboardEvent>;
|
|
10
|
+
}>;
|
|
11
|
+
/** The underlying custom element type for LuzmoAvatar */
|
|
12
|
+
export type LuzmoAvatarElement = LuzmoAvatarClass;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { createComponent } from '@lit/react';
|
|
3
|
+
import { LuzmoAvatar as LuzmoAvatarClass } from '@luzmo/lucero/avatar';
|
|
4
|
+
const LuzmoAvatarComponent = createComponent({
|
|
5
|
+
tagName: 'luzmo-avatar',
|
|
6
|
+
elementClass: LuzmoAvatarClass,
|
|
7
|
+
react: React,
|
|
8
|
+
events: {
|
|
9
|
+
onKeydown: 'keydown'
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
/**
|
|
13
|
+
* React wrapper for <luzmo-avatar>
|
|
14
|
+
*
|
|
15
|
+
* @event onKeydown - Trick :focus-visible polyfill into thinking keyboard based focus
|
|
16
|
+
*/
|
|
17
|
+
export const LuzmoAvatar = LuzmoAvatarComponent;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReactWebComponent } from '@lit/react';
|
|
2
|
+
import { LuzmoBadge as LuzmoBadgeClass } from '@luzmo/lucero/badge';
|
|
3
|
+
/**
|
|
4
|
+
* React wrapper for <luzmo-badge>
|
|
5
|
+
*/
|
|
6
|
+
export declare const LuzmoBadge: ReactWebComponent<LuzmoBadgeClass>;
|
|
7
|
+
/** The underlying custom element type for LuzmoBadge */
|
|
8
|
+
export type LuzmoBadgeElement = LuzmoBadgeClass;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { createComponent } from '@lit/react';
|
|
3
|
+
import { LuzmoBadge as LuzmoBadgeClass } from '@luzmo/lucero/badge';
|
|
4
|
+
const LuzmoBadgeComponent = createComponent({
|
|
5
|
+
tagName: 'luzmo-badge',
|
|
6
|
+
elementClass: LuzmoBadgeClass,
|
|
7
|
+
react: React,
|
|
8
|
+
events: {}
|
|
9
|
+
});
|
|
10
|
+
/**
|
|
11
|
+
* React wrapper for <luzmo-badge>
|
|
12
|
+
*/
|
|
13
|
+
export const LuzmoBadge = LuzmoBadgeComponent;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReactWebComponent } from '@lit/react';
|
|
2
|
+
import { LuzmoButtonGroup as LuzmoButtonGroupClass } from '@luzmo/lucero/button-group';
|
|
3
|
+
/**
|
|
4
|
+
* React wrapper for <luzmo-button-group>
|
|
5
|
+
*/
|
|
6
|
+
export declare const LuzmoButtonGroup: ReactWebComponent<LuzmoButtonGroupClass>;
|
|
7
|
+
/** The underlying custom element type for LuzmoButtonGroup */
|
|
8
|
+
export type LuzmoButtonGroupElement = LuzmoButtonGroupClass;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { createComponent } from '@lit/react';
|
|
3
|
+
import { LuzmoButtonGroup as LuzmoButtonGroupClass } from '@luzmo/lucero/button-group';
|
|
4
|
+
const LuzmoButtonGroupComponent = createComponent({
|
|
5
|
+
tagName: 'luzmo-button-group',
|
|
6
|
+
elementClass: LuzmoButtonGroupClass,
|
|
7
|
+
react: React,
|
|
8
|
+
events: {}
|
|
9
|
+
});
|
|
10
|
+
/**
|
|
11
|
+
* React wrapper for <luzmo-button-group>
|
|
12
|
+
*/
|
|
13
|
+
export const LuzmoButtonGroup = LuzmoButtonGroupComponent;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { EventName, ReactWebComponent } from '@lit/react';
|
|
2
|
+
import { LuzmoButton as LuzmoButtonClass } from '@luzmo/lucero/button';
|
|
3
|
+
/**
|
|
4
|
+
* React wrapper for <luzmo-button>
|
|
5
|
+
*
|
|
6
|
+
* @event onChange - Announces that the `value` of the element has changed
|
|
7
|
+
* @event onKeydown - Trick :focus-visible polyfill into thinking keyboard based focus
|
|
8
|
+
*/
|
|
9
|
+
export declare const LuzmoButton: ReactWebComponent<LuzmoButtonClass, {
|
|
10
|
+
onChange: EventName<CustomEvent>;
|
|
11
|
+
onKeydown: EventName<KeyboardEvent>;
|
|
12
|
+
}>;
|
|
13
|
+
/** The underlying custom element type for LuzmoButton */
|
|
14
|
+
export type LuzmoButtonElement = LuzmoButtonClass;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { createComponent } from '@lit/react';
|
|
3
|
+
import { LuzmoButton as LuzmoButtonClass } from '@luzmo/lucero/button';
|
|
4
|
+
const LuzmoButtonComponent = createComponent({
|
|
5
|
+
tagName: 'luzmo-button',
|
|
6
|
+
elementClass: LuzmoButtonClass,
|
|
7
|
+
react: React,
|
|
8
|
+
events: {
|
|
9
|
+
onChange: 'change',
|
|
10
|
+
onKeydown: 'keydown'
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
/**
|
|
14
|
+
* React wrapper for <luzmo-button>
|
|
15
|
+
*
|
|
16
|
+
* @event onChange - Announces that the `value` of the element has changed
|
|
17
|
+
* @event onKeydown - Trick :focus-visible polyfill into thinking keyboard based focus
|
|
18
|
+
*/
|
|
19
|
+
export const LuzmoButton = LuzmoButtonComponent;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { EventName, ReactWebComponent } from '@lit/react';
|
|
2
|
+
import { LuzmoCalendar as LuzmoCalendarClass } from '@luzmo/lucero/calendar';
|
|
3
|
+
/**
|
|
4
|
+
* React wrapper for <luzmo-calendar>
|
|
5
|
+
*/
|
|
6
|
+
export declare const LuzmoCalendar: ReactWebComponent<LuzmoCalendarClass, {
|
|
7
|
+
onMonthChange: EventName<CustomEvent>;
|
|
8
|
+
onChange: EventName<CustomEvent>;
|
|
9
|
+
onRangeSelect: EventName<CustomEvent>;
|
|
10
|
+
onHoverDate: EventName<CustomEvent>;
|
|
11
|
+
}>;
|
|
12
|
+
/** The underlying custom element type for LuzmoCalendar */
|
|
13
|
+
export type LuzmoCalendarElement = LuzmoCalendarClass;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { createComponent } from '@lit/react';
|
|
3
|
+
import { LuzmoCalendar as LuzmoCalendarClass } from '@luzmo/lucero/calendar';
|
|
4
|
+
const LuzmoCalendarComponent = createComponent({
|
|
5
|
+
tagName: 'luzmo-calendar',
|
|
6
|
+
elementClass: LuzmoCalendarClass,
|
|
7
|
+
react: React,
|
|
8
|
+
events: {
|
|
9
|
+
onMonthChange: 'month-change',
|
|
10
|
+
onChange: 'change',
|
|
11
|
+
onRangeSelect: 'range-select',
|
|
12
|
+
onHoverDate: 'hover-date'
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
/**
|
|
16
|
+
* React wrapper for <luzmo-calendar>
|
|
17
|
+
*/
|
|
18
|
+
export const LuzmoCalendar = LuzmoCalendarComponent;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactWebComponent } from '@lit/react';
|
|
2
|
+
import { LuzmoChatMessageGroup as LuzmoChatMessageGroupClass } from '@luzmo/lucero/chat-message-group';
|
|
3
|
+
/**
|
|
4
|
+
* A chat message group component for displaying consecutive messages from the same user.
|
|
5
|
+
*
|
|
6
|
+
* When multiple messages are grouped together, only the first or last message
|
|
7
|
+
* will display the name/date metadata and avatar, reducing visual clutter.
|
|
8
|
+
*/
|
|
9
|
+
export declare const LuzmoChatMessageGroup: ReactWebComponent<LuzmoChatMessageGroupClass>;
|
|
10
|
+
/** The underlying custom element type for LuzmoChatMessageGroup */
|
|
11
|
+
export type LuzmoChatMessageGroupElement = LuzmoChatMessageGroupClass;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { createComponent } from '@lit/react';
|
|
3
|
+
import { LuzmoChatMessageGroup as LuzmoChatMessageGroupClass } from '@luzmo/lucero/chat-message-group';
|
|
4
|
+
const LuzmoChatMessageGroupComponent = createComponent({
|
|
5
|
+
tagName: 'luzmo-chat-message-group',
|
|
6
|
+
elementClass: LuzmoChatMessageGroupClass,
|
|
7
|
+
react: React,
|
|
8
|
+
events: {}
|
|
9
|
+
});
|
|
10
|
+
/**
|
|
11
|
+
* A chat message group component for displaying consecutive messages from the same user.
|
|
12
|
+
*
|
|
13
|
+
* When multiple messages are grouped together, only the first or last message
|
|
14
|
+
* will display the name/date metadata and avatar, reducing visual clutter.
|
|
15
|
+
*/
|
|
16
|
+
export const LuzmoChatMessageGroup = LuzmoChatMessageGroupComponent;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReactWebComponent } from '@lit/react';
|
|
2
|
+
import { LuzmoChatMessage as LuzmoChatMessageClass } from '@luzmo/lucero/chat-message';
|
|
3
|
+
/**
|
|
4
|
+
* A chat message component for displaying conversation messages.
|
|
5
|
+
*/
|
|
6
|
+
export declare const LuzmoChatMessage: ReactWebComponent<LuzmoChatMessageClass>;
|
|
7
|
+
/** The underlying custom element type for LuzmoChatMessage */
|
|
8
|
+
export type LuzmoChatMessageElement = LuzmoChatMessageClass;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { createComponent } from '@lit/react';
|
|
3
|
+
import { LuzmoChatMessage as LuzmoChatMessageClass } from '@luzmo/lucero/chat-message';
|
|
4
|
+
const LuzmoChatMessageComponent = createComponent({
|
|
5
|
+
tagName: 'luzmo-chat-message',
|
|
6
|
+
elementClass: LuzmoChatMessageClass,
|
|
7
|
+
react: React,
|
|
8
|
+
events: {}
|
|
9
|
+
});
|
|
10
|
+
/**
|
|
11
|
+
* A chat message component for displaying conversation messages.
|
|
12
|
+
*/
|
|
13
|
+
export const LuzmoChatMessage = LuzmoChatMessageComponent;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { EventName, ReactWebComponent } from '@lit/react';
|
|
2
|
+
import { LuzmoCheckbox as LuzmoCheckboxClass } from '@luzmo/lucero/checkbox';
|
|
3
|
+
/**
|
|
4
|
+
* React wrapper for <luzmo-checkbox>
|
|
5
|
+
*
|
|
6
|
+
* @event onChange - Announces a change in the `checked` property of a Checkbox
|
|
7
|
+
*/
|
|
8
|
+
export declare const LuzmoCheckbox: ReactWebComponent<LuzmoCheckboxClass, {
|
|
9
|
+
onChange: EventName<CustomEvent>;
|
|
10
|
+
}>;
|
|
11
|
+
/** The underlying custom element type for LuzmoCheckbox */
|
|
12
|
+
export type LuzmoCheckboxElement = LuzmoCheckboxClass;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { createComponent } from '@lit/react';
|
|
3
|
+
import { LuzmoCheckbox as LuzmoCheckboxClass } from '@luzmo/lucero/checkbox';
|
|
4
|
+
const LuzmoCheckboxComponent = createComponent({
|
|
5
|
+
tagName: 'luzmo-checkbox',
|
|
6
|
+
elementClass: LuzmoCheckboxClass,
|
|
7
|
+
react: React,
|
|
8
|
+
events: {
|
|
9
|
+
onChange: 'change'
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
/**
|
|
13
|
+
* React wrapper for <luzmo-checkbox>
|
|
14
|
+
*
|
|
15
|
+
* @event onChange - Announces a change in the `checked` property of a Checkbox
|
|
16
|
+
*/
|
|
17
|
+
export const LuzmoCheckbox = LuzmoCheckboxComponent;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { EventName, ReactWebComponent } from '@lit/react';
|
|
2
|
+
import { LuzmoColorArea as LuzmoColorAreaClass } from '@luzmo/lucero/color-area';
|
|
3
|
+
/**
|
|
4
|
+
* React wrapper for <luzmo-color-area>
|
|
5
|
+
*
|
|
6
|
+
* @event onInput - The value of the Color Area has changed.
|
|
7
|
+
* @event onChange - An alteration to the value of the Color Area has been committed by the user.
|
|
8
|
+
*/
|
|
9
|
+
export declare const LuzmoColorArea: ReactWebComponent<LuzmoColorAreaClass, {
|
|
10
|
+
onInput: EventName<Event>;
|
|
11
|
+
onChange: EventName<Event>;
|
|
12
|
+
}>;
|
|
13
|
+
/** The underlying custom element type for LuzmoColorArea */
|
|
14
|
+
export type LuzmoColorAreaElement = LuzmoColorAreaClass;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { createComponent } from '@lit/react';
|
|
3
|
+
import { LuzmoColorArea as LuzmoColorAreaClass } from '@luzmo/lucero/color-area';
|
|
4
|
+
const LuzmoColorAreaComponent = createComponent({
|
|
5
|
+
tagName: 'luzmo-color-area',
|
|
6
|
+
elementClass: LuzmoColorAreaClass,
|
|
7
|
+
react: React,
|
|
8
|
+
events: {
|
|
9
|
+
onInput: 'input',
|
|
10
|
+
onChange: 'change'
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
/**
|
|
14
|
+
* React wrapper for <luzmo-color-area>
|
|
15
|
+
*
|
|
16
|
+
* @event onInput - The value of the Color Area has changed.
|
|
17
|
+
* @event onChange - An alteration to the value of the Color Area has been committed by the user.
|
|
18
|
+
*/
|
|
19
|
+
export const LuzmoColorArea = LuzmoColorAreaComponent;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { EventName, ReactWebComponent } from '@lit/react';
|
|
2
|
+
import { LuzmoColorField as LuzmoColorFieldClass } from '@luzmo/lucero/color-field';
|
|
3
|
+
/**
|
|
4
|
+
* React wrapper for <luzmo-color-field>
|
|
5
|
+
*
|
|
6
|
+
* @event onInput - The value of the color-field has changed.
|
|
7
|
+
* @event onChange - An alteration to the value of the color-field has been committed by the user.
|
|
8
|
+
* @event onKeypress - A key has been pressed.
|
|
9
|
+
* @event onKeydown - Trick :focus-visible polyfill into thinking keyboard based focus
|
|
10
|
+
*/
|
|
11
|
+
export declare const LuzmoColorField: ReactWebComponent<LuzmoColorFieldClass, {
|
|
12
|
+
onInput: EventName<CustomEvent>;
|
|
13
|
+
onChange: EventName<Event>;
|
|
14
|
+
onKeypress: EventName<CustomEvent>;
|
|
15
|
+
onKeydown: EventName<KeyboardEvent>;
|
|
16
|
+
}>;
|
|
17
|
+
/** The underlying custom element type for LuzmoColorField */
|
|
18
|
+
export type LuzmoColorFieldElement = LuzmoColorFieldClass;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { createComponent } from '@lit/react';
|
|
3
|
+
import { LuzmoColorField as LuzmoColorFieldClass } from '@luzmo/lucero/color-field';
|
|
4
|
+
const LuzmoColorFieldComponent = createComponent({
|
|
5
|
+
tagName: 'luzmo-color-field',
|
|
6
|
+
elementClass: LuzmoColorFieldClass,
|
|
7
|
+
react: React,
|
|
8
|
+
events: {
|
|
9
|
+
onInput: 'input',
|
|
10
|
+
onChange: 'change',
|
|
11
|
+
onKeypress: 'keypress',
|
|
12
|
+
onKeydown: 'keydown'
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
/**
|
|
16
|
+
* React wrapper for <luzmo-color-field>
|
|
17
|
+
*
|
|
18
|
+
* @event onInput - The value of the color-field has changed.
|
|
19
|
+
* @event onChange - An alteration to the value of the color-field has been committed by the user.
|
|
20
|
+
* @event onKeypress - A key has been pressed.
|
|
21
|
+
* @event onKeydown - Trick :focus-visible polyfill into thinking keyboard based focus
|
|
22
|
+
*/
|
|
23
|
+
export const LuzmoColorField = LuzmoColorFieldComponent;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReactWebComponent } from '@lit/react';
|
|
2
|
+
import { LuzmoColorHandle as LuzmoColorHandleClass } from '@luzmo/lucero/color-handle';
|
|
3
|
+
/**
|
|
4
|
+
* React wrapper for <luzmo-color-handle>
|
|
5
|
+
*/
|
|
6
|
+
export declare const LuzmoColorHandle: ReactWebComponent<LuzmoColorHandleClass>;
|
|
7
|
+
/** The underlying custom element type for LuzmoColorHandle */
|
|
8
|
+
export type LuzmoColorHandleElement = LuzmoColorHandleClass;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { createComponent } from '@lit/react';
|
|
3
|
+
import { LuzmoColorHandle as LuzmoColorHandleClass } from '@luzmo/lucero/color-handle';
|
|
4
|
+
const LuzmoColorHandleComponent = createComponent({
|
|
5
|
+
tagName: 'luzmo-color-handle',
|
|
6
|
+
elementClass: LuzmoColorHandleClass,
|
|
7
|
+
react: React,
|
|
8
|
+
events: {}
|
|
9
|
+
});
|
|
10
|
+
/**
|
|
11
|
+
* React wrapper for <luzmo-color-handle>
|
|
12
|
+
*/
|
|
13
|
+
export const LuzmoColorHandle = LuzmoColorHandleComponent;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReactWebComponent } from '@lit/react';
|
|
2
|
+
import { LuzmoColorLoupe as LuzmoColorLoupeClass } from '@luzmo/lucero/color-loupe';
|
|
3
|
+
/**
|
|
4
|
+
* React wrapper for <luzmo-color-loupe>
|
|
5
|
+
*/
|
|
6
|
+
export declare const LuzmoColorLoupe: ReactWebComponent<LuzmoColorLoupeClass>;
|
|
7
|
+
/** The underlying custom element type for LuzmoColorLoupe */
|
|
8
|
+
export type LuzmoColorLoupeElement = LuzmoColorLoupeClass;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { createComponent } from '@lit/react';
|
|
3
|
+
import { LuzmoColorLoupe as LuzmoColorLoupeClass } from '@luzmo/lucero/color-loupe';
|
|
4
|
+
const LuzmoColorLoupeComponent = createComponent({
|
|
5
|
+
tagName: 'luzmo-color-loupe',
|
|
6
|
+
elementClass: LuzmoColorLoupeClass,
|
|
7
|
+
react: React,
|
|
8
|
+
events: {}
|
|
9
|
+
});
|
|
10
|
+
/**
|
|
11
|
+
* React wrapper for <luzmo-color-loupe>
|
|
12
|
+
*/
|
|
13
|
+
export const LuzmoColorLoupe = LuzmoColorLoupeComponent;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { EventName, ReactWebComponent } from '@lit/react';
|
|
2
|
+
import { LuzmoColorMenu as LuzmoColorMenuClass } from '@luzmo/lucero/color-menu';
|
|
3
|
+
/**
|
|
4
|
+
* React wrapper for <luzmo-color-menu>
|
|
5
|
+
*
|
|
6
|
+
* @event onChange - An alteration to the value of the Color Menu has been committed by the user.
|
|
7
|
+
* @event onKeydown - Trick :focus-visible polyfill into thinking keyboard based focus
|
|
8
|
+
*/
|
|
9
|
+
export declare const LuzmoColorMenu: ReactWebComponent<LuzmoColorMenuClass, {
|
|
10
|
+
onChange: EventName<CustomEvent>;
|
|
11
|
+
onKeydown: EventName<KeyboardEvent>;
|
|
12
|
+
}>;
|
|
13
|
+
/** The underlying custom element type for LuzmoColorMenu */
|
|
14
|
+
export type LuzmoColorMenuElement = LuzmoColorMenuClass;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { createComponent } from '@lit/react';
|
|
3
|
+
import { LuzmoColorMenu as LuzmoColorMenuClass } from '@luzmo/lucero/color-menu';
|
|
4
|
+
const LuzmoColorMenuComponent = createComponent({
|
|
5
|
+
tagName: 'luzmo-color-menu',
|
|
6
|
+
elementClass: LuzmoColorMenuClass,
|
|
7
|
+
react: React,
|
|
8
|
+
events: {
|
|
9
|
+
onChange: 'change',
|
|
10
|
+
onKeydown: 'keydown'
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
/**
|
|
14
|
+
* React wrapper for <luzmo-color-menu>
|
|
15
|
+
*
|
|
16
|
+
* @event onChange - An alteration to the value of the Color Menu has been committed by the user.
|
|
17
|
+
* @event onKeydown - Trick :focus-visible polyfill into thinking keyboard based focus
|
|
18
|
+
*/
|
|
19
|
+
export const LuzmoColorMenu = LuzmoColorMenuComponent;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { EventName, ReactWebComponent } from '@lit/react';
|
|
2
|
+
import { LuzmoColorPaletteGroup as LuzmoColorPaletteGroupClass } from '@luzmo/lucero/color-palette-group';
|
|
3
|
+
/**
|
|
4
|
+
* React wrapper for <luzmo-color-palette-group>
|
|
5
|
+
*
|
|
6
|
+
* @event onChange - Announces the color palette value has been changed by user
|
|
7
|
+
*/
|
|
8
|
+
export declare const LuzmoColorPaletteGroup: ReactWebComponent<LuzmoColorPaletteGroupClass, {
|
|
9
|
+
onChange: EventName<Event>;
|
|
10
|
+
}>;
|
|
11
|
+
/** The underlying custom element type for LuzmoColorPaletteGroup */
|
|
12
|
+
export type LuzmoColorPaletteGroupElement = LuzmoColorPaletteGroupClass;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { createComponent } from '@lit/react';
|
|
3
|
+
import { LuzmoColorPaletteGroup as LuzmoColorPaletteGroupClass } from '@luzmo/lucero/color-palette-group';
|
|
4
|
+
const LuzmoColorPaletteGroupComponent = createComponent({
|
|
5
|
+
tagName: 'luzmo-color-palette-group',
|
|
6
|
+
elementClass: LuzmoColorPaletteGroupClass,
|
|
7
|
+
react: React,
|
|
8
|
+
events: {
|
|
9
|
+
onChange: 'change'
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
/**
|
|
13
|
+
* React wrapper for <luzmo-color-palette-group>
|
|
14
|
+
*
|
|
15
|
+
* @event onChange - Announces the color palette value has been changed by user
|
|
16
|
+
*/
|
|
17
|
+
export const LuzmoColorPaletteGroup = LuzmoColorPaletteGroupComponent;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { EventName, ReactWebComponent } from '@lit/react';
|
|
2
|
+
import { LuzmoColorPalette as LuzmoColorPaletteClass } from '@luzmo/lucero/color-palette';
|
|
3
|
+
/**
|
|
4
|
+
* React wrapper for <luzmo-color-palette>
|
|
5
|
+
*
|
|
6
|
+
* @event onKeydown - Trick :focus-visible polyfill into thinking keyboard based focus
|
|
7
|
+
*/
|
|
8
|
+
export declare const LuzmoColorPalette: ReactWebComponent<LuzmoColorPaletteClass, {
|
|
9
|
+
onKeydown: EventName<KeyboardEvent>;
|
|
10
|
+
}>;
|
|
11
|
+
/** The underlying custom element type for LuzmoColorPalette */
|
|
12
|
+
export type LuzmoColorPaletteElement = LuzmoColorPaletteClass;
|