@scouterna/ui-react 2.0.0 → 2.2.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,14 +1,32 @@
1
1
  'use client';
2
+ import { ScoutAppBar as ScoutAppBarElement, defineCustomElement as defineScoutAppBar } from "@scouterna/ui-webc/dist/components/scout-app-bar.js";
2
3
  import { ScoutBottomBarItem as ScoutBottomBarItemElement, defineCustomElement as defineScoutBottomBarItem } from "@scouterna/ui-webc/dist/components/scout-bottom-bar-item.js";
3
4
  import { ScoutBottomBar as ScoutBottomBarElement, defineCustomElement as defineScoutBottomBar } from "@scouterna/ui-webc/dist/components/scout-bottom-bar.js";
4
5
  import { ScoutButton as ScoutButtonElement, defineCustomElement as defineScoutButton } from "@scouterna/ui-webc/dist/components/scout-button.js";
5
6
  import { ScoutCard as ScoutCardElement, defineCustomElement as defineScoutCard } from "@scouterna/ui-webc/dist/components/scout-card.js";
6
7
  import { ScoutCheckbox as ScoutCheckboxElement, defineCustomElement as defineScoutCheckbox } from "@scouterna/ui-webc/dist/components/scout-checkbox.js";
8
+ import { ScoutDivider as ScoutDividerElement, defineCustomElement as defineScoutDivider } from "@scouterna/ui-webc/dist/components/scout-divider.js";
7
9
  import { ScoutField as ScoutFieldElement, defineCustomElement as defineScoutField } from "@scouterna/ui-webc/dist/components/scout-field.js";
8
10
  import { ScoutInput as ScoutInputElement, defineCustomElement as defineScoutInput } from "@scouterna/ui-webc/dist/components/scout-input.js";
11
+ import { ScoutLink as ScoutLinkElement, defineCustomElement as defineScoutLink } from "@scouterna/ui-webc/dist/components/scout-link.js";
12
+ import { ScoutListViewItem as ScoutListViewItemElement, defineCustomElement as defineScoutListViewItem } from "@scouterna/ui-webc/dist/components/scout-list-view-item.js";
13
+ import { ScoutListViewSubheader as ScoutListViewSubheaderElement, defineCustomElement as defineScoutListViewSubheader } from "@scouterna/ui-webc/dist/components/scout-list-view-subheader.js";
14
+ import { ScoutListView as ScoutListViewElement, defineCustomElement as defineScoutListView } from "@scouterna/ui-webc/dist/components/scout-list-view.js";
15
+ import { ScoutLoader as ScoutLoaderElement, defineCustomElement as defineScoutLoader } from "@scouterna/ui-webc/dist/components/scout-loader.js";
16
+ import { ScoutRadioButton as ScoutRadioButtonElement, defineCustomElement as defineScoutRadioButton } from "@scouterna/ui-webc/dist/components/scout-radio-button.js";
17
+ import { ScoutSelect as ScoutSelectElement, defineCustomElement as defineScoutSelect } from "@scouterna/ui-webc/dist/components/scout-select.js";
18
+ import { ScoutStack as ScoutStackElement, defineCustomElement as defineScoutStack } from "@scouterna/ui-webc/dist/components/scout-stack.js";
9
19
  import { ScoutSwitch as ScoutSwitchElement, defineCustomElement as defineScoutSwitch } from "@scouterna/ui-webc/dist/components/scout-switch.js";
10
20
  import { createComponent } from '@stencil/react-output-target/runtime';
11
21
  import React from 'react';
22
+ export const ScoutAppBar = /*@__PURE__*/ createComponent({
23
+ tagName: 'scout-app-bar',
24
+ elementClass: ScoutAppBarElement,
25
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
26
+ react: React,
27
+ events: {},
28
+ defineCustomElement: defineScoutAppBar
29
+ });
12
30
  export const ScoutBottomBar = /*@__PURE__*/ createComponent({
13
31
  tagName: 'scout-bottom-bar',
14
32
  elementClass: ScoutBottomBarElement,
@@ -47,11 +65,19 @@ export const ScoutCheckbox = /*@__PURE__*/ createComponent({
47
65
  // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
48
66
  react: React,
49
67
  events: {
50
- onScoutCheckboxChecked: 'scoutCheckboxChecked',
68
+ onScoutChecked: 'scoutChecked',
51
69
  on_fieldId: '_fieldId'
52
70
  },
53
71
  defineCustomElement: defineScoutCheckbox
54
72
  });
73
+ export const ScoutDivider = /*@__PURE__*/ createComponent({
74
+ tagName: 'scout-divider',
75
+ elementClass: ScoutDividerElement,
76
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
77
+ react: React,
78
+ events: {},
79
+ defineCustomElement: defineScoutDivider
80
+ });
55
81
  export const ScoutField = /*@__PURE__*/ createComponent({
56
82
  tagName: 'scout-field',
57
83
  elementClass: ScoutFieldElement,
@@ -72,6 +98,77 @@ export const ScoutInput = /*@__PURE__*/ createComponent({
72
98
  },
73
99
  defineCustomElement: defineScoutInput
74
100
  });
101
+ export const ScoutLink = /*@__PURE__*/ createComponent({
102
+ tagName: 'scout-link',
103
+ elementClass: ScoutLinkElement,
104
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
105
+ react: React,
106
+ events: { onScoutLinkClick: 'scoutLinkClick' },
107
+ defineCustomElement: defineScoutLink
108
+ });
109
+ export const ScoutListView = /*@__PURE__*/ createComponent({
110
+ tagName: 'scout-list-view',
111
+ elementClass: ScoutListViewElement,
112
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
113
+ react: React,
114
+ events: {},
115
+ defineCustomElement: defineScoutListView
116
+ });
117
+ export const ScoutListViewItem = /*@__PURE__*/ createComponent({
118
+ tagName: 'scout-list-view-item',
119
+ elementClass: ScoutListViewItemElement,
120
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
121
+ react: React,
122
+ events: { onScoutClick: 'scoutClick' },
123
+ defineCustomElement: defineScoutListViewItem
124
+ });
125
+ export const ScoutListViewSubheader = /*@__PURE__*/ createComponent({
126
+ tagName: 'scout-list-view-subheader',
127
+ elementClass: ScoutListViewSubheaderElement,
128
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
129
+ react: React,
130
+ events: {},
131
+ defineCustomElement: defineScoutListViewSubheader
132
+ });
133
+ export const ScoutLoader = /*@__PURE__*/ createComponent({
134
+ tagName: 'scout-loader',
135
+ elementClass: ScoutLoaderElement,
136
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
137
+ react: React,
138
+ events: {},
139
+ defineCustomElement: defineScoutLoader
140
+ });
141
+ export const ScoutRadioButton = /*@__PURE__*/ createComponent({
142
+ tagName: 'scout-radio-button',
143
+ elementClass: ScoutRadioButtonElement,
144
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
145
+ react: React,
146
+ events: {
147
+ onScoutChecked: 'scoutChecked',
148
+ on_fieldId: '_fieldId'
149
+ },
150
+ defineCustomElement: defineScoutRadioButton
151
+ });
152
+ export const ScoutSelect = /*@__PURE__*/ createComponent({
153
+ tagName: 'scout-select',
154
+ elementClass: ScoutSelectElement,
155
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
156
+ react: React,
157
+ events: {
158
+ onScoutInputChange: 'scoutInputChange',
159
+ onScoutBlur: 'scoutBlur',
160
+ on_fieldId: '_fieldId'
161
+ },
162
+ defineCustomElement: defineScoutSelect
163
+ });
164
+ export const ScoutStack = /*@__PURE__*/ createComponent({
165
+ tagName: 'scout-stack',
166
+ elementClass: ScoutStackElement,
167
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
168
+ react: React,
169
+ events: {},
170
+ defineCustomElement: defineScoutStack
171
+ });
75
172
  export const ScoutSwitch = /*@__PURE__*/ createComponent({
76
173
  tagName: 'scout-switch',
77
174
  elementClass: ScoutSwitchElement,
@@ -2,16 +2,28 @@
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
+ import { type ScoutCheckboxCustomEvent, type ScoutInputCustomEvent, type ScoutLinkCustomEvent, type ScoutRadioButtonCustomEvent, type ScoutSelectCustomEvent, type ScoutSwitchCustomEvent } from "@scouterna/ui-webc";
6
+ import { ScoutAppBar as ScoutAppBarElement } from "@scouterna/ui-webc/dist/components/scout-app-bar.js";
6
7
  import { ScoutBottomBarItem as ScoutBottomBarItemElement } from "@scouterna/ui-webc/dist/components/scout-bottom-bar-item.js";
7
8
  import { ScoutBottomBar as ScoutBottomBarElement } from "@scouterna/ui-webc/dist/components/scout-bottom-bar.js";
8
9
  import { ScoutButton as ScoutButtonElement } from "@scouterna/ui-webc/dist/components/scout-button.js";
9
10
  import { ScoutCard as ScoutCardElement } from "@scouterna/ui-webc/dist/components/scout-card.js";
10
11
  import { ScoutCheckbox as ScoutCheckboxElement } from "@scouterna/ui-webc/dist/components/scout-checkbox.js";
12
+ import { ScoutDivider as ScoutDividerElement } from "@scouterna/ui-webc/dist/components/scout-divider.js";
11
13
  import { ScoutField as ScoutFieldElement } from "@scouterna/ui-webc/dist/components/scout-field.js";
12
14
  import { ScoutInput as ScoutInputElement } from "@scouterna/ui-webc/dist/components/scout-input.js";
15
+ import { ScoutLink as ScoutLinkElement } from "@scouterna/ui-webc/dist/components/scout-link.js";
16
+ import { ScoutListViewItem as ScoutListViewItemElement } from "@scouterna/ui-webc/dist/components/scout-list-view-item.js";
17
+ import { ScoutListViewSubheader as ScoutListViewSubheaderElement } from "@scouterna/ui-webc/dist/components/scout-list-view-subheader.js";
18
+ import { ScoutListView as ScoutListViewElement } from "@scouterna/ui-webc/dist/components/scout-list-view.js";
19
+ import { ScoutLoader as ScoutLoaderElement } from "@scouterna/ui-webc/dist/components/scout-loader.js";
20
+ import { ScoutRadioButton as ScoutRadioButtonElement } from "@scouterna/ui-webc/dist/components/scout-radio-button.js";
21
+ import { ScoutSelect as ScoutSelectElement } from "@scouterna/ui-webc/dist/components/scout-select.js";
22
+ import { ScoutStack as ScoutStackElement } from "@scouterna/ui-webc/dist/components/scout-stack.js";
13
23
  import { ScoutSwitch as ScoutSwitchElement } from "@scouterna/ui-webc/dist/components/scout-switch.js";
14
24
  import type { EventName, StencilReactComponent } from '@stencil/react-output-target/runtime';
25
+ export type ScoutAppBarEvents = NonNullable<unknown>;
26
+ export declare const ScoutAppBar: StencilReactComponent<ScoutAppBarElement, ScoutAppBarEvents>;
15
27
  export type ScoutBottomBarEvents = NonNullable<unknown>;
16
28
  export declare const ScoutBottomBar: StencilReactComponent<ScoutBottomBarElement, ScoutBottomBarEvents>;
17
29
  export type ScoutBottomBarItemEvents = {
@@ -25,13 +37,15 @@ export declare const ScoutButton: StencilReactComponent<ScoutButtonElement, Scou
25
37
  export type ScoutCardEvents = NonNullable<unknown>;
26
38
  export declare const ScoutCard: StencilReactComponent<ScoutCardElement, ScoutCardEvents>;
27
39
  export type ScoutCheckboxEvents = {
28
- onScoutCheckboxChecked: EventName<ScoutCheckboxCustomEvent<{
40
+ onScoutChecked: EventName<ScoutCheckboxCustomEvent<{
29
41
  checked: boolean;
30
42
  element: HTMLInputElement;
31
43
  }>>;
32
44
  on_fieldId: EventName<CustomEvent<string>>;
33
45
  };
34
46
  export declare const ScoutCheckbox: StencilReactComponent<ScoutCheckboxElement, ScoutCheckboxEvents>;
47
+ export type ScoutDividerEvents = NonNullable<unknown>;
48
+ export declare const ScoutDivider: StencilReactComponent<ScoutDividerElement, ScoutDividerEvents>;
35
49
  export type ScoutFieldEvents = NonNullable<unknown>;
36
50
  export declare const ScoutField: StencilReactComponent<ScoutFieldElement, ScoutFieldEvents>;
37
51
  export type ScoutInputEvents = {
@@ -43,6 +57,39 @@ export type ScoutInputEvents = {
43
57
  on_fieldId: EventName<CustomEvent<string>>;
44
58
  };
45
59
  export declare const ScoutInput: StencilReactComponent<ScoutInputElement, ScoutInputEvents>;
60
+ export type ScoutLinkEvents = {
61
+ onScoutLinkClick: EventName<ScoutLinkCustomEvent<HTMLButtonElement>>;
62
+ };
63
+ export declare const ScoutLink: StencilReactComponent<ScoutLinkElement, ScoutLinkEvents>;
64
+ export type ScoutListViewEvents = NonNullable<unknown>;
65
+ export declare const ScoutListView: StencilReactComponent<ScoutListViewElement, ScoutListViewEvents>;
66
+ export type ScoutListViewItemEvents = {
67
+ onScoutClick: EventName<CustomEvent<void>>;
68
+ };
69
+ export declare const ScoutListViewItem: StencilReactComponent<ScoutListViewItemElement, ScoutListViewItemEvents>;
70
+ export type ScoutListViewSubheaderEvents = NonNullable<unknown>;
71
+ export declare const ScoutListViewSubheader: StencilReactComponent<ScoutListViewSubheaderElement, ScoutListViewSubheaderEvents>;
72
+ export type ScoutLoaderEvents = NonNullable<unknown>;
73
+ export declare const ScoutLoader: StencilReactComponent<ScoutLoaderElement, ScoutLoaderEvents>;
74
+ export type ScoutRadioButtonEvents = {
75
+ onScoutChecked: EventName<ScoutRadioButtonCustomEvent<{
76
+ checked: boolean;
77
+ element: HTMLInputElement;
78
+ }>>;
79
+ on_fieldId: EventName<CustomEvent<string>>;
80
+ };
81
+ export declare const ScoutRadioButton: StencilReactComponent<ScoutRadioButtonElement, ScoutRadioButtonEvents>;
82
+ export type ScoutSelectEvents = {
83
+ onScoutInputChange: EventName<ScoutSelectCustomEvent<{
84
+ value: string;
85
+ element: HTMLSelectElement;
86
+ }>>;
87
+ onScoutBlur: EventName<CustomEvent<void>>;
88
+ on_fieldId: EventName<CustomEvent<string>>;
89
+ };
90
+ export declare const ScoutSelect: StencilReactComponent<ScoutSelectElement, ScoutSelectEvents>;
91
+ export type ScoutStackEvents = NonNullable<unknown>;
92
+ export declare const ScoutStack: StencilReactComponent<ScoutStackElement, ScoutStackEvents>;
46
93
  export type ScoutSwitchEvents = {
47
94
  onScoutSwitchToggled: EventName<ScoutSwitchCustomEvent<{
48
95
  toggled: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scouterna/ui-react",
3
- "version": "2.0.0",
3
+ "version": "2.2.0",
4
4
  "description": "Scouterna Design System React Components",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -10,23 +10,21 @@
10
10
  ],
11
11
  "repository": {
12
12
  "type": "git",
13
- "url": "https://github.com/Scouterna/j26-web-components.git"
13
+ "url": "https://github.com/Scouterna/j26-components.git"
14
14
  },
15
15
  "keywords": [],
16
16
  "author": "",
17
17
  "license": "UNLICENSED",
18
18
  "dependencies": {
19
- "@stencil/react-output-target": "^1.2.0"
19
+ "@stencil/react-output-target": "^1.2.0",
20
+ "@scouterna/ui-webc": "2.2.0"
20
21
  },
21
22
  "devDependencies": {
22
- "@types/react": "^19.2.5",
23
- "react": "^19.2.0",
24
- "react-dom": "^19.2.0",
23
+ "@types/react": "^19.2.7",
24
+ "react": "^19.2.1",
25
+ "react-dom": "^19.2.1",
25
26
  "typescript": "^5.9.3"
26
27
  },
27
- "peerDependencies": {
28
- "@scouterna/ui-webc": "2.0.0"
29
- },
30
28
  "scripts": {
31
29
  "build": "tsc --outDir ./dist",
32
30
  "dev": "tsc --outDir ./dist --watch --preserveWatchOutput"