@openremote/or-icon 1.24.0-snapshot.20260521161756 → 1.24.1

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,5 +1,12 @@
1
-
2
- import type { OrIconSet, IconSetAddedEvent, createSvgIconSet, createMdiIconSet, IconSets, getAssetDescriptorIconTemplate, OrIcon } from "./lib/index.d.ts";
1
+ import type {
2
+ OrIconSet,
3
+ IconSetAddedEvent,
4
+ createSvgIconSet,
5
+ createMdiIconSet,
6
+ IconSets,
7
+ getAssetDescriptorIconTemplate,
8
+ OrIcon,
9
+ } from "./lib/index.d.ts";
3
10
 
4
11
  /**
5
12
  * This type can be used to create scoped tags for your components.
@@ -27,7 +34,6 @@ export type ScopedElements<
27
34
  };
28
35
 
29
36
  type BaseProps<T extends HTMLElement> = {
30
-
31
37
  /** Content added between the opening and closing tags of the element */
32
38
  children?: any;
33
39
  /** Used for declaratively styling one or more elements using CSS (Cascading Stylesheets) */
@@ -50,6 +56,8 @@ type BaseProps<T extends HTMLElement> = {
50
56
  key?: string | number;
51
57
  /** Specifies the language of the element. */
52
58
  lang?: string;
59
+ /** Defines the element's semantic role for accessibility APIs. */
60
+ role?: string;
53
61
  /** Contains a space-separated list of the part names of the element. Part names allows CSS to select and style specific elements in a shadow tree via the ::part pseudo-element. */
54
62
  part?: string;
55
63
  /** Use the ref attribute with a variable to assign a DOM element to the variable once the element is rendered. */
@@ -70,81 +78,100 @@ type BaseProps<T extends HTMLElement> = {
70
78
  popovertarget?: "top" | "bottom" | "left" | "right" | "auto";
71
79
  /** Specifies the action to be performed on a popover element being controlled by a control element. */
72
80
  popovertargetaction?: "show" | "hide" | "toggle";
73
-
74
- } ;
75
-
76
- type BaseEvents = {
77
-
78
-
79
81
  };
80
82
 
81
-
83
+ type BaseEvents = {};
82
84
 
83
85
  export type OrIconProps = {
84
86
  /** */
85
- "icon"?: OrIcon['icon'];
86
-
87
+ icon?: OrIcon["icon"];
88
+ };
87
89
 
88
- }
90
+ export type OrIconSolidJsProps = {
91
+ /** */
92
+ "prop:icon"?: OrIcon["icon"];
89
93
 
90
- export type CustomElements = {
94
+ /** Set the innerHTML of the element */
95
+ innerHTML?: string;
96
+ /** Set the textContent of the element */
97
+ textContent?: string | number;
98
+ };
91
99
 
100
+ export type CustomElements = {
101
+ /**
102
+ *
103
+ *
104
+ * ## Attributes & Properties
105
+ *
106
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
107
+ *
108
+ * - `icon`: undefined
109
+ */
110
+ "or-icon": Partial<OrIconProps & BaseProps<OrIcon> & BaseEvents>;
111
+ };
92
112
 
113
+ export type CustomElementsSolidJs = {
93
114
  /**
94
- *
95
- *
96
- * ## Attributes & Properties
97
- *
98
- * Component attributes and properties that can be applied to the element or by using JavaScript.
99
- *
100
- * - `icon`: undefined
101
- */
102
- "or-icon": Partial<OrIconProps & BaseProps<OrIcon> & BaseEvents>;
103
- }
115
+ *
116
+ *
117
+ * ## Attributes & Properties
118
+ *
119
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
120
+ *
121
+ * - `icon`: undefined
122
+ */
123
+ "or-icon": Partial<
124
+ OrIconProps & OrIconSolidJsProps & BaseProps<OrIcon> & BaseEvents
125
+ >;
126
+ };
104
127
 
105
- export type CustomCssProperties = {
128
+ export type CustomCssProperties = {};
106
129
 
130
+ declare module "react" {
131
+ namespace JSX {
132
+ interface IntrinsicElements extends CustomElements {}
133
+ }
134
+ export interface CSSProperties extends CustomCssProperties {}
107
135
  }
108
136
 
109
-
110
- declare module 'react' {
137
+ declare module "preact" {
111
138
  namespace JSX {
112
139
  interface IntrinsicElements extends CustomElements {}
113
140
  }
114
141
  export interface CSSProperties extends CustomCssProperties {}
115
142
  }
116
143
 
117
- declare module 'preact' {
144
+ declare module "@builder.io/qwik" {
118
145
  namespace JSX {
119
146
  interface IntrinsicElements extends CustomElements {}
120
147
  }
121
148
  export interface CSSProperties extends CustomCssProperties {}
122
149
  }
123
150
 
124
- declare module '@builder.io/qwik' {
151
+ declare module "@stencil/core" {
125
152
  namespace JSX {
126
153
  interface IntrinsicElements extends CustomElements {}
127
154
  }
128
155
  export interface CSSProperties extends CustomCssProperties {}
129
156
  }
130
157
 
131
- declare module '@stencil/core' {
158
+ declare module "hono/jsx" {
132
159
  namespace JSX {
133
160
  interface IntrinsicElements extends CustomElements {}
134
161
  }
135
162
  export interface CSSProperties extends CustomCssProperties {}
136
163
  }
137
164
 
138
- declare module 'hono/jsx' {
165
+ declare module "react-native" {
139
166
  namespace JSX {
140
167
  interface IntrinsicElements extends CustomElements {}
141
168
  }
142
169
  export interface CSSProperties extends CustomCssProperties {}
143
170
  }
144
171
 
145
- declare module 'react-native' {
172
+ declare module "solid-js" {
146
173
  namespace JSX {
147
- interface IntrinsicElements extends CustomElements {}
174
+ interface IntrinsicElements extends CustomElementsSolidJs {}
148
175
  }
149
176
  export interface CSSProperties extends CustomCssProperties {}
150
177
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openremote/or-icon",
3
- "version": "1.24.0-snapshot.20260521161756",
3
+ "version": "1.24.1",
4
4
  "description": "Icon component for displaying an icon from an icon set",
5
5
  "customElements": "custom-elements.json",
6
6
  "main": "dist/umd/index.bundle.js",
@@ -24,9 +24,12 @@
24
24
  "license": "AGPL-3.0-or-later",
25
25
  "dependencies": {
26
26
  "@mdi/font": "latest",
27
- "@openremote/model": "1.24.0-snapshot.20260521161756",
27
+ "@openremote/model": "1.24.1",
28
28
  "lit": "^3.3.1"
29
29
  },
30
+ "devDependencies": {
31
+ "@openremote/util": "1.24.1"
32
+ },
30
33
  "publishConfig": {
31
34
  "access": "public"
32
35
  }