@openremote/or-icon 1.13.0 → 1.14.0-snapshot

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,24 @@
1
+ /*
2
+ * Copyright 2025, OpenRemote Inc.
3
+ *
4
+ * See the CONTRIBUTORS.txt file in the distribution for a
5
+ * full listing of individual contributors.
6
+ *
7
+ * This program is free software: you can redistribute it and/or modify
8
+ * it under the terms of the GNU Affero General Public License as
9
+ * published by the Free Software Foundation, either version 3 of the
10
+ * License, or (at your option) any later version.
11
+ *
12
+ * This program is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
+ * GNU Affero General Public License for more details.
16
+ *
17
+ * You should have received a copy of the GNU Affero General Public License
18
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
19
+ */
20
+
21
+ declare module "@mdi/font/css/materialdesignicons.min.css" {
22
+ const css: string;
23
+ export default css;
24
+ }
@@ -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
  }
@@ -247,7 +247,7 @@
247
247
  "type": {
248
248
  "text": "object"
249
249
  },
250
- "default": "{ size: 24, icons: { \"logo\": \"<path style='pointer-events: var(--or-icon-pointer-events, none);' fill=\\\"#C4D600\\\" d=\\\"m11.96125,23.85096c-6.56773,0 -11.90971,-5.34202 -11.90971,-11.90862l2.49411,0c0,5.19176 4.22389,9.41568 9.41561,9.41568c5.19053,0 9.41561,-4.22392 9.41561,-9.41568c0,-5.19176 -4.22389,-9.41568 -9.41561,-9.41568l0,-2.49413c6.56655,0 11.90971,5.34439 11.90971,11.9098c0,6.5666 -5.34316,11.90862 -11.90971,11.90862l0,0z\\\" /><path fill=\\\"#4E9D2D\\\" d=\\\"m10.25094,20.38647c-2.26848,-0.47231 -4.21822,-1.80199 -5.48741,-3.74009s-1.70892,-4.25777 -1.23545,-6.52625c0.47347,-2.26965 1.80315,-4.21822 3.74242,-5.48857c1.93926,-1.27035 4.25661,-1.70892 6.52625,-1.23545c4.68471,0.97719 7.70121,5.5828 6.72286,10.26635l-2.39994,-0.49907c0.70149,-3.36085 -1.4623,-6.66585 -4.82431,-7.36734c-1.62866,-0.33969 -3.29105,-0.02559 -4.68238,0.88645c-1.39134,0.91088 -2.34526,2.3092 -2.68495,3.93786c-0.33853,1.62633 -0.02443,3.28988 0.88645,4.68122c0.91088,1.39134 2.3092,2.34526 3.93786,2.68379l-0.50139,2.4011l0,0z\\\"/><path fill=\\\"#1D5632\\\"d=\\\"m12.03064,17.49616c-0.09524,0 -0.19048,-0.00116 -0.28457,-0.00465c-1.49833,-0.0755 -2.87818,-0.72942 -3.88636,-1.84097c-1.00818,-1.11271 -1.52156,-2.54948 -1.44722,-4.05013l2.44378,0.12196c-0.04181,0.84557 0.24856,1.65745 0.81769,2.28466c0.56681,0.62721 1.34733,0.99656 2.1929,1.03838c0.84208,0.03833 1.65629,-0.2474 2.2835,-0.81653c0.62837,-0.56797 0.99656,-1.34617 1.03954,-2.19174c0.08711,-1.74573 -1.26371,-3.23708 -3.00943,-3.3242l0.12196,-2.44378c3.09422,0.15332 5.4869,2.79455 5.33358,5.88877c-0.07434,1.49949 -0.72942,2.87818 -1.84097,3.8852c-1.04186,0.94313 -2.36945,1.45303 -3.7644,1.45303l0,0z\\\"/>\", \"logo-plain\": \"m11.9925,23.91349c-6.58498,0 -11.94099,-5.35605 -11.94099,-11.9399l2.50066,0c0,5.20539 4.23498,9.44041 9.44033,9.44041c5.20416,0 9.44033,-4.23502 9.44033,-9.44041c0,-5.20539 -4.23498,-9.44041 -9.44033,-9.44041l0,-2.50068c6.5838,0 11.94099,5.35842 11.94099,11.94108c0,6.58385 -5.35719,11.9399 -11.94099,11.9399l0,0zm-1.80787,-3.27769c-2.31323,-0.48163 -4.30141,-1.83755 -5.59563,-3.81389s-1.74263,-4.34178 -1.25982,-6.65502c0.48281,-2.31443 1.83872,-4.30145 3.81623,-5.59686c1.97751,-1.29542 4.34056,-1.74264 6.65497,-1.25983c4.77711,0.99647 7.8531,5.69295 6.85545,10.46891l-2.44727,-0.50891c0.71532,-3.42716 -1.49114,-6.79738 -4.91946,-7.5127c-1.66078,-0.34639 -3.35596,-0.0261 -4.77474,0.90394c-1.41878,0.92886 -2.39152,2.35476 -2.73791,4.01555c-0.3452,1.65842 -0.02491,3.3548 0.90394,4.77359c0.92885,1.41879 2.35475,2.39154 4.01552,2.73675l-0.51128,2.44848l0,0zm1.81499,-2.92536c-0.09727,0 -0.19455,-0.00119 -0.29064,-0.00475c-1.53029,-0.07711 -2.93958,-0.74498 -3.96926,-1.88025c-1.02968,-1.13646 -1.55401,-2.60388 -1.47809,-4.13655l2.49591,0.12456c-0.04271,0.86361 0.25386,1.69282 0.83513,2.33341c0.5789,0.64059 1.37607,1.01783 2.23968,1.06053c0.86005,0.03915 1.69162,-0.25268 2.33221,-0.83395c0.64177,-0.58009 1.01782,-1.3749 1.06171,-2.23851c0.08897,-1.78298 -1.29066,-3.30616 -3.07362,-3.39513l0.12456,-2.49593c3.16022,0.15659 5.60394,2.85419 5.44735,6.01443c-0.07592,1.53149 -0.74498,2.9396 -1.88024,3.9681c-1.06408,0.96326 -2.41999,1.48403 -3.8447,1.48403l0,0z\", \"marker\": \"<ellipse fill=\\\"#000\\\" opacity=\\\"0.2\\\" ry=\\\"1.5\\\" rx=\\\"4\\\" cy=\\\"22.5\\\" cx=\\\"12\\\" /><path style='pointer-events: var(--or-icon-pointer-events, none);' d=\\\"m11.999999,0a8.437501,8.344057 0 0 1 8.437501,8.344057c0,6.500779 -5.798864,6.280799 -8.437501,14.412461c-2.638637,-8.131662 -8.437501,-7.911683 -8.437501,-14.412461a8.437501,8.344057 0 0 1 8.437501,-8.344057z\\\" />\" } }"
250
+ "default": "{ size: 24, icons: { \"logo\": \"<path style='pointer-events: var(--or-icon-pointer-events, none);' fill=\\\"#C4D600\\\" d=\\\"m11.96125,23.85096c-6.56773,0 -11.90971,-5.34202 -11.90971,-11.90862l2.49411,0c0,5.19176 4.22389,9.41568 9.41561,9.41568c5.19053,0 9.41561,-4.22392 9.41561,-9.41568c0,-5.19176 -4.22389,-9.41568 -9.41561,-9.41568l0,-2.49413c6.56655,0 11.90971,5.34439 11.90971,11.9098c0,6.5666 -5.34316,11.90862 -11.90971,11.90862l0,0z\\\" /><path fill=\\\"#4E9D2D\\\" d=\\\"m10.25094,20.38647c-2.26848,-0.47231 -4.21822,-1.80199 -5.48741,-3.74009s-1.70892,-4.25777 -1.23545,-6.52625c0.47347,-2.26965 1.80315,-4.21822 3.74242,-5.48857c1.93926,-1.27035 4.25661,-1.70892 6.52625,-1.23545c4.68471,0.97719 7.70121,5.5828 6.72286,10.26635l-2.39994,-0.49907c0.70149,-3.36085 -1.4623,-6.66585 -4.82431,-7.36734c-1.62866,-0.33969 -3.29105,-0.02559 -4.68238,0.88645c-1.39134,0.91088 -2.34526,2.3092 -2.68495,3.93786c-0.33853,1.62633 -0.02443,3.28988 0.88645,4.68122c0.91088,1.39134 2.3092,2.34526 3.93786,2.68379l-0.50139,2.4011l0,0z\\\"/><path fill=\\\"#1D5632\\\"d=\\\"m12.03064,17.49616c-0.09524,0 -0.19048,-0.00116 -0.28457,-0.00465c-1.49833,-0.0755 -2.87818,-0.72942 -3.88636,-1.84097c-1.00818,-1.11271 -1.52156,-2.54948 -1.44722,-4.05013l2.44378,0.12196c-0.04181,0.84557 0.24856,1.65745 0.81769,2.28466c0.56681,0.62721 1.34733,0.99656 2.1929,1.03838c0.84208,0.03833 1.65629,-0.2474 2.2835,-0.81653c0.62837,-0.56797 0.99656,-1.34617 1.03954,-2.19174c0.08711,-1.74573 -1.26371,-3.23708 -3.00943,-3.3242l0.12196,-2.44378c3.09422,0.15332 5.4869,2.79455 5.33358,5.88877c-0.07434,1.49949 -0.72942,2.87818 -1.84097,3.8852c-1.04186,0.94313 -2.36945,1.45303 -3.7644,1.45303l0,0z\\\"/>\", \"logo-plain\": \"m11.9925,23.91349c-6.58498,0 -11.94099,-5.35605 -11.94099,-11.9399l2.50066,0c0,5.20539 4.23498,9.44041 9.44033,9.44041c5.20416,0 9.44033,-4.23502 9.44033,-9.44041c0,-5.20539 -4.23498,-9.44041 -9.44033,-9.44041l0,-2.50068c6.5838,0 11.94099,5.35842 11.94099,11.94108c0,6.58385 -5.35719,11.9399 -11.94099,11.9399l0,0zm-1.80787,-3.27769c-2.31323,-0.48163 -4.30141,-1.83755 -5.59563,-3.81389s-1.74263,-4.34178 -1.25982,-6.65502c0.48281,-2.31443 1.83872,-4.30145 3.81623,-5.59686c1.97751,-1.29542 4.34056,-1.74264 6.65497,-1.25983c4.77711,0.99647 7.8531,5.69295 6.85545,10.46891l-2.44727,-0.50891c0.71532,-3.42716 -1.49114,-6.79738 -4.91946,-7.5127c-1.66078,-0.34639 -3.35596,-0.0261 -4.77474,0.90394c-1.41878,0.92886 -2.39152,2.35476 -2.73791,4.01555c-0.3452,1.65842 -0.02491,3.3548 0.90394,4.77359c0.92885,1.41879 2.35475,2.39154 4.01552,2.73675l-0.51128,2.44848l0,0zm1.81499,-2.92536c-0.09727,0 -0.19455,-0.00119 -0.29064,-0.00475c-1.53029,-0.07711 -2.93958,-0.74498 -3.96926,-1.88025c-1.02968,-1.13646 -1.55401,-2.60388 -1.47809,-4.13655l2.49591,0.12456c-0.04271,0.86361 0.25386,1.69282 0.83513,2.33341c0.5789,0.64059 1.37607,1.01783 2.23968,1.06053c0.86005,0.03915 1.69162,-0.25268 2.33221,-0.83395c0.64177,-0.58009 1.01782,-1.3749 1.06171,-2.23851c0.08897,-1.78298 -1.29066,-3.30616 -3.07362,-3.39513l0.12456,-2.49593c3.16022,0.15659 5.60394,2.85419 5.44735,6.01443c-0.07592,1.53149 -0.74498,2.9396 -1.88024,3.9681c-1.06408,0.96326 -2.41999,1.48403 -3.8447,1.48403l0,0z\", \"marker\": \"<ellipse fill=\\\"#000\\\" opacity=\\\"0.2\\\" ry=\\\"1.5\\\" rx=\\\"4\\\" cy=\\\"22.5\\\" cx=\\\"12\\\" /><path style='pointer-events: var(--or-icon-pointer-events, none);' d=\\\"m11.999999,0a8.437501,8.344057 0 0 1 8.437501,8.344057c0,6.500779 -5.798864,6.280799 -8.437501,14.412461c-2.638637,-8.131662 -8.437501,-7.911683 -8.437501,-14.412461a8.437501,8.344057 0 0 1 8.437501,-8.344057z\\\" />\", \"trash\": \"<path d=\\\"M6 9V19C6 19.5523 6.44772 20 7 20H17C17.5523 20 18 19.5523 18 19V9\\\" stroke=\\\"#E21D12\\\" stroke-width=\\\"2\\\"/><path d=\\\"M14 11L14 16\\\" stroke=\\\"#E21D12\\\" stroke-width=\\\"2\\\" stroke-linecap=\\\"round\\\"/><path d=\\\"M10 11V16\\\" stroke=\\\"#E21D12\\\" stroke-width=\\\"2\\\" stroke-linecap=\\\"round\\\"/><path d=\\\"M5 6H8.5H19\\\" stroke=\\\"#E21D12\\\" stroke-width=\\\"2\\\" stroke-linecap=\\\"round\\\"/><path d=\\\"M8.09516 4.02871L7 6H17L15.9048 4.02871C15.5521 3.39378 14.8829 3 14.1565 3H9.84347C9.11714 3 8.4479 3.39378 8.09516 4.02871Z\\\" fill=\\\"#E21D12\\\"/>\" } }"
251
251
  }
252
252
  ],
253
253
  "exports": [