@scouterna/ui-react 0.2.10 → 2.0.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.
@@ -1,12 +1,12 @@
1
1
  'use client';
2
- /**
3
- * This file was automatically generated by the Stencil React Output Target.
4
- * Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
5
- */
6
- /* eslint-disable */
7
2
  import { ScoutBottomBarItem as ScoutBottomBarItemElement, defineCustomElement as defineScoutBottomBarItem } from "@scouterna/ui-webc/dist/components/scout-bottom-bar-item.js";
8
3
  import { ScoutBottomBar as ScoutBottomBarElement, defineCustomElement as defineScoutBottomBar } from "@scouterna/ui-webc/dist/components/scout-bottom-bar.js";
9
4
  import { ScoutButton as ScoutButtonElement, defineCustomElement as defineScoutButton } from "@scouterna/ui-webc/dist/components/scout-button.js";
5
+ import { ScoutCard as ScoutCardElement, defineCustomElement as defineScoutCard } from "@scouterna/ui-webc/dist/components/scout-card.js";
6
+ import { ScoutCheckbox as ScoutCheckboxElement, defineCustomElement as defineScoutCheckbox } from "@scouterna/ui-webc/dist/components/scout-checkbox.js";
7
+ import { ScoutField as ScoutFieldElement, defineCustomElement as defineScoutField } from "@scouterna/ui-webc/dist/components/scout-field.js";
8
+ import { ScoutInput as ScoutInputElement, defineCustomElement as defineScoutInput } from "@scouterna/ui-webc/dist/components/scout-input.js";
9
+ import { ScoutSwitch as ScoutSwitchElement, defineCustomElement as defineScoutSwitch } from "@scouterna/ui-webc/dist/components/scout-switch.js";
10
10
  import { createComponent } from '@stencil/react-output-target/runtime';
11
11
  import React from 'react';
12
12
  export const ScoutBottomBar = /*@__PURE__*/ createComponent({
@@ -33,3 +33,53 @@ export const ScoutButton = /*@__PURE__*/ createComponent({
33
33
  events: { onScoutClick: 'scoutClick' },
34
34
  defineCustomElement: defineScoutButton
35
35
  });
36
+ export const ScoutCard = /*@__PURE__*/ createComponent({
37
+ tagName: 'scout-card',
38
+ elementClass: ScoutCardElement,
39
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
40
+ react: React,
41
+ events: {},
42
+ defineCustomElement: defineScoutCard
43
+ });
44
+ export const ScoutCheckbox = /*@__PURE__*/ createComponent({
45
+ tagName: 'scout-checkbox',
46
+ elementClass: ScoutCheckboxElement,
47
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
48
+ react: React,
49
+ events: {
50
+ onScoutCheckboxChecked: 'scoutCheckboxChecked',
51
+ on_fieldId: '_fieldId'
52
+ },
53
+ defineCustomElement: defineScoutCheckbox
54
+ });
55
+ export const ScoutField = /*@__PURE__*/ createComponent({
56
+ tagName: 'scout-field',
57
+ elementClass: ScoutFieldElement,
58
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
59
+ react: React,
60
+ events: {},
61
+ defineCustomElement: defineScoutField
62
+ });
63
+ export const ScoutInput = /*@__PURE__*/ createComponent({
64
+ tagName: 'scout-input',
65
+ elementClass: ScoutInputElement,
66
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
67
+ react: React,
68
+ events: {
69
+ onScoutInputChange: 'scoutInputChange',
70
+ onScoutBlur: 'scoutBlur',
71
+ on_fieldId: '_fieldId'
72
+ },
73
+ defineCustomElement: defineScoutInput
74
+ });
75
+ export const ScoutSwitch = /*@__PURE__*/ createComponent({
76
+ tagName: 'scout-switch',
77
+ elementClass: ScoutSwitchElement,
78
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
79
+ react: React,
80
+ events: {
81
+ onScoutSwitchToggled: 'scoutSwitchToggled',
82
+ on_fieldId: '_fieldId'
83
+ },
84
+ defineCustomElement: defineScoutSwitch
85
+ });
@@ -2,9 +2,15 @@
2
2
  * This file was automatically generated by the Stencil React Output Target.
3
3
  * Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
4
4
  */
5
+ import { type ScoutCheckboxCustomEvent, type ScoutInputCustomEvent, type ScoutSwitchCustomEvent } from "@scouterna/ui-webc";
5
6
  import { ScoutBottomBarItem as ScoutBottomBarItemElement } from "@scouterna/ui-webc/dist/components/scout-bottom-bar-item.js";
6
7
  import { ScoutBottomBar as ScoutBottomBarElement } from "@scouterna/ui-webc/dist/components/scout-bottom-bar.js";
7
8
  import { ScoutButton as ScoutButtonElement } from "@scouterna/ui-webc/dist/components/scout-button.js";
9
+ import { ScoutCard as ScoutCardElement } from "@scouterna/ui-webc/dist/components/scout-card.js";
10
+ import { ScoutCheckbox as ScoutCheckboxElement } from "@scouterna/ui-webc/dist/components/scout-checkbox.js";
11
+ import { ScoutField as ScoutFieldElement } from "@scouterna/ui-webc/dist/components/scout-field.js";
12
+ import { ScoutInput as ScoutInputElement } from "@scouterna/ui-webc/dist/components/scout-input.js";
13
+ import { ScoutSwitch as ScoutSwitchElement } from "@scouterna/ui-webc/dist/components/scout-switch.js";
8
14
  import type { EventName, StencilReactComponent } from '@stencil/react-output-target/runtime';
9
15
  export type ScoutBottomBarEvents = NonNullable<unknown>;
10
16
  export declare const ScoutBottomBar: StencilReactComponent<ScoutBottomBarElement, ScoutBottomBarEvents>;
@@ -16,3 +22,32 @@ export type ScoutButtonEvents = {
16
22
  onScoutClick: EventName<CustomEvent<void>>;
17
23
  };
18
24
  export declare const ScoutButton: StencilReactComponent<ScoutButtonElement, ScoutButtonEvents>;
25
+ export type ScoutCardEvents = NonNullable<unknown>;
26
+ export declare const ScoutCard: StencilReactComponent<ScoutCardElement, ScoutCardEvents>;
27
+ export type ScoutCheckboxEvents = {
28
+ onScoutCheckboxChecked: EventName<ScoutCheckboxCustomEvent<{
29
+ checked: boolean;
30
+ element: HTMLInputElement;
31
+ }>>;
32
+ on_fieldId: EventName<CustomEvent<string>>;
33
+ };
34
+ export declare const ScoutCheckbox: StencilReactComponent<ScoutCheckboxElement, ScoutCheckboxEvents>;
35
+ export type ScoutFieldEvents = NonNullable<unknown>;
36
+ export declare const ScoutField: StencilReactComponent<ScoutFieldElement, ScoutFieldEvents>;
37
+ export type ScoutInputEvents = {
38
+ onScoutInputChange: EventName<ScoutInputCustomEvent<{
39
+ value: string;
40
+ element: HTMLInputElement;
41
+ }>>;
42
+ onScoutBlur: EventName<CustomEvent<void>>;
43
+ on_fieldId: EventName<CustomEvent<string>>;
44
+ };
45
+ export declare const ScoutInput: StencilReactComponent<ScoutInputElement, ScoutInputEvents>;
46
+ export type ScoutSwitchEvents = {
47
+ onScoutSwitchToggled: EventName<ScoutSwitchCustomEvent<{
48
+ toggled: boolean;
49
+ element: HTMLInputElement;
50
+ }>>;
51
+ on_fieldId: EventName<CustomEvent<string>>;
52
+ };
53
+ export declare const ScoutSwitch: StencilReactComponent<ScoutSwitchElement, ScoutSwitchEvents>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scouterna/ui-react",
3
- "version": "0.2.10",
3
+ "version": "2.0.0",
4
4
  "description": "Scouterna Design System React Components",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -25,7 +25,7 @@
25
25
  "typescript": "^5.9.3"
26
26
  },
27
27
  "peerDependencies": {
28
- "@scouterna/ui-webc": "0.2.10"
28
+ "@scouterna/ui-webc": "2.0.0"
29
29
  },
30
30
  "scripts": {
31
31
  "build": "tsc --outDir ./dist",