@luzmo/react-lucero 1.0.3-alpha.17 → 1.0.3-alpha.18

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.
@@ -0,0 +1,12 @@
1
+ import { EventName, ReactWebComponent } from '@lit/react';
2
+ import { LuzmoNotice as LuzmoNoticeClass, NoticeCloseDetail } from '@luzmo/lucero/notice';
3
+ /**
4
+ * An inline semantic message with optional dismissal behavior.
5
+ *
6
+ * @event onLuzmoNoticeClose - Cancelable request to close the notice. Detail contains the `manual`, `automatic`, or `programmatic` reason.
7
+ */
8
+ export declare const LuzmoNotice: ReactWebComponent<LuzmoNoticeClass, {
9
+ onLuzmoNoticeClose: EventName<CustomEvent<NoticeCloseDetail>>;
10
+ }>;
11
+ /** The underlying custom element type for LuzmoNotice */
12
+ export type LuzmoNoticeElement = LuzmoNoticeClass;
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import { createComponent } from '@lit/react';
3
+ import { LuzmoNotice as LuzmoNoticeClass } from '@luzmo/lucero/notice';
4
+ const LuzmoNoticeComponent = createComponent({
5
+ tagName: 'luzmo-notice',
6
+ elementClass: LuzmoNoticeClass,
7
+ react: React,
8
+ events: {
9
+ onLuzmoNoticeClose: 'luzmo-notice-close'
10
+ }
11
+ });
12
+ /**
13
+ * An inline semantic message with optional dismissal behavior.
14
+ *
15
+ * @event onLuzmoNoticeClose - Cancelable request to close the notice. Detail contains the `manual`, `automatic`, or `programmatic` reason.
16
+ */
17
+ export const LuzmoNotice = LuzmoNoticeComponent;
@@ -0,0 +1,20 @@
1
+ import { EventName, ReactWebComponent } from '@lit/react';
2
+ import { LuzmoQuestionBox as LuzmoQuestionBoxClass, QuestionBoxResultDetail } from '@luzmo/lucero/question-box';
3
+ /**
4
+ * React wrapper for <luzmo-question-box>
5
+ *
6
+ * @event onInput - The in-progress answer value changed.
7
+ * @event onChange - An answer was committed by the user.
8
+ * @event onLuzmoSubmit - The user accepted. `detail.action` is `accept`.
9
+ * @event onLuzmoDecline - The user explicitly skipped the request. `detail.action` is `decline`.
10
+ * @event onLuzmoCancel - The user dismissed the interaction (Close, Escape, or `cancel()`). `detail.action` is `cancel`.
11
+ */
12
+ export declare const LuzmoQuestionBox: ReactWebComponent<LuzmoQuestionBoxClass, {
13
+ onInput: EventName<Event>;
14
+ onChange: EventName<Event>;
15
+ onLuzmoSubmit: EventName<CustomEvent<QuestionBoxResultDetail>>;
16
+ onLuzmoDecline: EventName<CustomEvent<QuestionBoxResultDetail>>;
17
+ onLuzmoCancel: EventName<CustomEvent<QuestionBoxResultDetail>>;
18
+ }>;
19
+ /** The underlying custom element type for LuzmoQuestionBox */
20
+ export type LuzmoQuestionBoxElement = LuzmoQuestionBoxClass;
@@ -0,0 +1,25 @@
1
+ import React from 'react';
2
+ import { createComponent } from '@lit/react';
3
+ import { LuzmoQuestionBox as LuzmoQuestionBoxClass } from '@luzmo/lucero/question-box';
4
+ const LuzmoQuestionBoxComponent = createComponent({
5
+ tagName: 'luzmo-question-box',
6
+ elementClass: LuzmoQuestionBoxClass,
7
+ react: React,
8
+ events: {
9
+ onInput: 'input',
10
+ onChange: 'change',
11
+ onLuzmoSubmit: 'luzmo-submit',
12
+ onLuzmoDecline: 'luzmo-decline',
13
+ onLuzmoCancel: 'luzmo-cancel'
14
+ }
15
+ });
16
+ /**
17
+ * React wrapper for <luzmo-question-box>
18
+ *
19
+ * @event onInput - The in-progress answer value changed.
20
+ * @event onChange - An answer was committed by the user.
21
+ * @event onLuzmoSubmit - The user accepted. `detail.action` is `accept`.
22
+ * @event onLuzmoDecline - The user explicitly skipped the request. `detail.action` is `decline`.
23
+ * @event onLuzmoCancel - The user dismissed the interaction (Close, Escape, or `cancel()`). `detail.action` is `cancel`.
24
+ */
25
+ export const LuzmoQuestionBox = LuzmoQuestionBoxComponent;
@@ -4,7 +4,7 @@ import { LuzmoRadio as LuzmoRadioClass } from '@luzmo/lucero/radio';
4
4
  * React wrapper for <luzmo-radio>
5
5
  *
6
6
  * @event onKeydown - Trick :focus-visible polyfill into thinking keyboard based focus
7
- * @event onChange - When the input is interacted with and its state is changed
7
+ * @event onChange - The checked value was committed by the user.
8
8
  */
9
9
  export declare const LuzmoRadio: ReactWebComponent<LuzmoRadioClass, {
10
10
  onKeydown: EventName<KeyboardEvent>;
@@ -14,6 +14,6 @@ const LuzmoRadioComponent = createComponent({
14
14
  * React wrapper for <luzmo-radio>
15
15
  *
16
16
  * @event onKeydown - Trick :focus-visible polyfill into thinking keyboard based focus
17
- * @event onChange - When the input is interacted with and its state is changed
17
+ * @event onChange - The checked value was committed by the user.
18
18
  */
19
19
  export const LuzmoRadio = LuzmoRadioComponent;
package/esm/index.d.ts CHANGED
@@ -30,6 +30,7 @@ export { LuzmoInfieldButton, type LuzmoInfieldButtonElement } from './components
30
30
  export { LuzmoLabel, type LuzmoLabelElement } from './components/label.js';
31
31
  export { LuzmoMenu, type LuzmoMenuElement } from './components/menu.js';
32
32
  export { LuzmoMultiLanguageField, type LuzmoMultiLanguageFieldElement } from './components/multi-language-field.js';
33
+ export { LuzmoNotice, type LuzmoNoticeElement } from './components/notice.js';
33
34
  export { LuzmoNumberField, type LuzmoNumberFieldElement } from './components/number-field.js';
34
35
  export { LuzmoOptions, type LuzmoOptionsElement } from './components/options.js';
35
36
  export { LuzmoOverlay, type LuzmoOverlayElement } from './components/overlay.js';
@@ -40,6 +41,7 @@ export { LuzmoProgressBar, type LuzmoProgressBarElement } from './components/pro
40
41
  export { LuzmoProgressCircle, type LuzmoProgressCircleElement } from './components/progress-circle.js';
41
42
  export { LuzmoProgressSteps, type LuzmoProgressStepsElement } from './components/progress-steps.js';
42
43
  export { LuzmoPromptBox, type LuzmoPromptBoxElement } from './components/prompt-box.js';
44
+ export { LuzmoQuestionBox, type LuzmoQuestionBoxElement } from './components/question-box.js';
43
45
  export { LuzmoRadio, type LuzmoRadioElement } from './components/radio.js';
44
46
  export { LuzmoSearch, type LuzmoSearchElement } from './components/search.js';
45
47
  export { LuzmoSelect, type LuzmoSelectElement } from './components/select.js';
@@ -54,6 +56,6 @@ export { LuzmoTextField, type LuzmoTextFieldElement } from './components/text-fi
54
56
  export { LuzmoToast, type LuzmoToastElement } from './components/toast.js';
55
57
  export { LuzmoTooltip, type LuzmoTooltipElement } from './components/tooltip.js';
56
58
  export { LuzmoTopNav, type LuzmoTopNavElement } from './components/top-nav.js';
57
- export declare const LUZMO_REACT_COMPONENTS: readonly [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any];
58
- export declare const LUZMO_REACT_COMPONENT_NAMES: readonly ["LuzmoAccordion", "LuzmoActionBar", "LuzmoActionButton", "LuzmoActionGroup", "LuzmoActionMenu", "LuzmoAvatar", "LuzmoBadge", "LuzmoButton", "LuzmoButtonGroup", "LuzmoCalendar", "LuzmoChatMessage", "LuzmoChatMessageGroup", "LuzmoCheckbox", "LuzmoColorArea", "LuzmoColorField", "LuzmoColorHandle", "LuzmoColorLoupe", "LuzmoColorMenu", "LuzmoColorPalette", "LuzmoColorPaletteGroup", "LuzmoColorPicker", "LuzmoColorSlider", "LuzmoDateRangePicker", "LuzmoDateTimePicker", "LuzmoDivider", "LuzmoFieldGroup", "LuzmoFieldLabel", "LuzmoIcon", "LuzmoInfieldButton", "LuzmoLabel", "LuzmoMenu", "LuzmoMultiLanguageField", "LuzmoNumberField", "LuzmoOptions", "LuzmoOverlay", "LuzmoPicker", "LuzmoPickerButton", "LuzmoPopover", "LuzmoProgressBar", "LuzmoProgressCircle", "LuzmoProgressSteps", "LuzmoPromptBox", "LuzmoRadio", "LuzmoSearch", "LuzmoSelect", "LuzmoSkeletonLoader", "LuzmoSlider", "LuzmoStatusLight", "LuzmoSwatch", "LuzmoSwitch", "LuzmoTabs", "LuzmoTags", "LuzmoTextField", "LuzmoToast", "LuzmoTooltip", "LuzmoTopNav"];
59
+ export declare const LUZMO_REACT_COMPONENTS: readonly [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any];
60
+ export declare const LUZMO_REACT_COMPONENT_NAMES: readonly ["LuzmoAccordion", "LuzmoActionBar", "LuzmoActionButton", "LuzmoActionGroup", "LuzmoActionMenu", "LuzmoAvatar", "LuzmoBadge", "LuzmoButton", "LuzmoButtonGroup", "LuzmoCalendar", "LuzmoChatMessage", "LuzmoChatMessageGroup", "LuzmoCheckbox", "LuzmoColorArea", "LuzmoColorField", "LuzmoColorHandle", "LuzmoColorLoupe", "LuzmoColorMenu", "LuzmoColorPalette", "LuzmoColorPaletteGroup", "LuzmoColorPicker", "LuzmoColorSlider", "LuzmoDateRangePicker", "LuzmoDateTimePicker", "LuzmoDivider", "LuzmoFieldGroup", "LuzmoFieldLabel", "LuzmoIcon", "LuzmoInfieldButton", "LuzmoLabel", "LuzmoMenu", "LuzmoMultiLanguageField", "LuzmoNotice", "LuzmoNumberField", "LuzmoOptions", "LuzmoOverlay", "LuzmoPicker", "LuzmoPickerButton", "LuzmoPopover", "LuzmoProgressBar", "LuzmoProgressCircle", "LuzmoProgressSteps", "LuzmoPromptBox", "LuzmoQuestionBox", "LuzmoRadio", "LuzmoSearch", "LuzmoSelect", "LuzmoSkeletonLoader", "LuzmoSlider", "LuzmoStatusLight", "LuzmoSwatch", "LuzmoSwitch", "LuzmoTabs", "LuzmoTags", "LuzmoTextField", "LuzmoToast", "LuzmoTooltip", "LuzmoTopNav"];
59
61
  export type LuzmoReactComponentName = typeof LUZMO_REACT_COMPONENT_NAMES[number];
package/esm/index.js CHANGED
@@ -32,6 +32,7 @@ import { LuzmoInfieldButton } from './components/infield-button.js';
32
32
  import { LuzmoLabel } from './components/label.js';
33
33
  import { LuzmoMenu } from './components/menu.js';
34
34
  import { LuzmoMultiLanguageField } from './components/multi-language-field.js';
35
+ import { LuzmoNotice } from './components/notice.js';
35
36
  import { LuzmoNumberField } from './components/number-field.js';
36
37
  import { LuzmoOptions } from './components/options.js';
37
38
  import { LuzmoOverlay } from './components/overlay.js';
@@ -42,6 +43,7 @@ import { LuzmoProgressBar } from './components/progress-bar.js';
42
43
  import { LuzmoProgressCircle } from './components/progress-circle.js';
43
44
  import { LuzmoProgressSteps } from './components/progress-steps.js';
44
45
  import { LuzmoPromptBox } from './components/prompt-box.js';
46
+ import { LuzmoQuestionBox } from './components/question-box.js';
45
47
  import { LuzmoRadio } from './components/radio.js';
46
48
  import { LuzmoSearch } from './components/search.js';
47
49
  import { LuzmoSelect } from './components/select.js';
@@ -88,6 +90,7 @@ export { LuzmoInfieldButton } from './components/infield-button.js';
88
90
  export { LuzmoLabel } from './components/label.js';
89
91
  export { LuzmoMenu } from './components/menu.js';
90
92
  export { LuzmoMultiLanguageField } from './components/multi-language-field.js';
93
+ export { LuzmoNotice } from './components/notice.js';
91
94
  export { LuzmoNumberField } from './components/number-field.js';
92
95
  export { LuzmoOptions } from './components/options.js';
93
96
  export { LuzmoOverlay } from './components/overlay.js';
@@ -98,6 +101,7 @@ export { LuzmoProgressBar } from './components/progress-bar.js';
98
101
  export { LuzmoProgressCircle } from './components/progress-circle.js';
99
102
  export { LuzmoProgressSteps } from './components/progress-steps.js';
100
103
  export { LuzmoPromptBox } from './components/prompt-box.js';
104
+ export { LuzmoQuestionBox } from './components/question-box.js';
101
105
  export { LuzmoRadio } from './components/radio.js';
102
106
  export { LuzmoSearch } from './components/search.js';
103
107
  export { LuzmoSelect } from './components/select.js';
@@ -146,6 +150,7 @@ export const LUZMO_REACT_COMPONENTS = [
146
150
  LuzmoLabel,
147
151
  LuzmoMenu,
148
152
  LuzmoMultiLanguageField,
153
+ LuzmoNotice,
149
154
  LuzmoNumberField,
150
155
  LuzmoOptions,
151
156
  LuzmoOverlay,
@@ -156,6 +161,7 @@ export const LUZMO_REACT_COMPONENTS = [
156
161
  LuzmoProgressCircle,
157
162
  LuzmoProgressSteps,
158
163
  LuzmoPromptBox,
164
+ LuzmoQuestionBox,
159
165
  LuzmoRadio,
160
166
  LuzmoSearch,
161
167
  LuzmoSelect,
@@ -205,6 +211,7 @@ export const LUZMO_REACT_COMPONENT_NAMES = [
205
211
  'LuzmoLabel',
206
212
  'LuzmoMenu',
207
213
  'LuzmoMultiLanguageField',
214
+ 'LuzmoNotice',
208
215
  'LuzmoNumberField',
209
216
  'LuzmoOptions',
210
217
  'LuzmoOverlay',
@@ -215,6 +222,7 @@ export const LUZMO_REACT_COMPONENT_NAMES = [
215
222
  'LuzmoProgressCircle',
216
223
  'LuzmoProgressSteps',
217
224
  'LuzmoPromptBox',
225
+ 'LuzmoQuestionBox',
218
226
  'LuzmoRadio',
219
227
  'LuzmoSearch',
220
228
  'LuzmoSelect',
package/package.json CHANGED
@@ -30,7 +30,7 @@
30
30
  "@lit/react": "^1.0.8",
31
31
  "react": "^18.0.0 || ^19.0.0",
32
32
  "react-dom": "^18.0.0 || ^19.0.0",
33
- "@luzmo/lucero": "1.0.3-alpha.17"
33
+ "@luzmo/lucero": "1.0.3-alpha.18"
34
34
  },
35
- "version": "1.0.3-alpha.17"
35
+ "version": "1.0.3-alpha.18"
36
36
  }