@primeicons/svelte 8.0.0-beta.1 → 8.0.0-rc.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.
package/LICENSE.md ADDED
@@ -0,0 +1,45 @@
1
+ # PrimeUI License
2
+
3
+ This package is part of **PrimeUI**, a family of commercial UI libraries by PrimeTek Informatics.
4
+
5
+ ## How PrimeUI May Be Used
6
+
7
+ PrimeUI may be used under one of two licenses. You choose the one that applies to you based on eligibility.
8
+
9
+ ### Community License (Free)
10
+
11
+ Free for organizations that meet all of the following criteria:
12
+
13
+ - Less than $1,000,000 USD in annual gross revenue
14
+ - Fewer than 5 developers
15
+ - Fewer than 10 employees
16
+ - Less than $3,000,000 USD in venture capital or outside funding
17
+
18
+ Individuals, students, non-profits, and non-commercial open source projects also qualify.
19
+
20
+ The Community License provides full access to the core libraries and supports up to 4 developers. It requires annual renewal by confirming continued eligibility.
21
+
22
+ ### Commercial License (Paid)
23
+
24
+ For organizations that do not qualify for the Community License.
25
+
26
+ Licensed per developer, perpetual, with one year of updates included. Renewal is optional and extends access to new versions. The Commercial Suite also includes PrimeBlocks, Theme Designer, all PrimeUI Pro components, and Premium Support.
27
+
28
+ ## License Key
29
+
30
+ A valid license key is required to use this software. License verification is performed offline, with no telemetry and no remote connection. A missing, invalid, or expired key may cause the software to display a license notice.
31
+
32
+ ## Full Terms
33
+
34
+ The complete license terms, eligibility details, and renewal information are available at:
35
+
36
+ - Community License: <https://primeui.dev/licenses/community>
37
+ - Commercial License: <https://primeui.dev/licenses/commercial>
38
+
39
+ ## Restrictions
40
+
41
+ This software is distributed as a compiled package. You may not reverse-engineer, decompile, or extract its source code, redistribute it as a component library or development tool, or remove its license mechanisms. Redistributing the software so that third parties can develop with it requires a separate OEM License. See the full terms for details.
42
+
43
+ ---
44
+
45
+ © 2026 PrimeTek Informatics. All rights reserved.
package/README.md CHANGED
@@ -49,6 +49,7 @@ All icon components accept the following props:
49
49
  | `color` | `string` | `currentColor` | Icon color |
50
50
  | `class` | `string` | `''` | Additional CSS class |
51
51
  | `style` | `string` | `''` | Inline styles |
52
+ | `spin` | `boolean` | `false` | Applies a rotation animation |
52
53
 
53
54
  ## Examples
54
55
 
@@ -187,6 +188,39 @@ Full TypeScript support with Svelte 5:
187
188
  <Search {...config} />
188
189
  ```
189
190
 
191
+ ## Spin
192
+
193
+ Setting `spin` to `true` adds `p-icon-spin` to the SVG element's class list. The `p-icon-spin` class comes from PrimeUI's stylesheet.
194
+
195
+ ```svelte
196
+ <script>
197
+ import { Spinner, Refresh, Cog } from '@primeicons/svelte';
198
+
199
+ let isLoading = true;
200
+ </script>
201
+
202
+ <Spinner spin={true} />
203
+ <Refresh spin={true} size={24} />
204
+ <Cog spin={isLoading} color="gray" />
205
+ ```
206
+
207
+ The animation can be overridden via CSS:
208
+
209
+ ```css
210
+ .p-icon-spin {
211
+ animation: p-icon-spin 1s linear infinite;
212
+ }
213
+
214
+ @keyframes p-icon-spin {
215
+ from {
216
+ transform: rotate(0deg);
217
+ }
218
+ to {
219
+ transform: rotate(360deg);
220
+ }
221
+ }
222
+ ```
223
+
190
224
  ## CSS Classes
191
225
 
192
226
  Each icon automatically includes these CSS classes:
@@ -268,8 +302,8 @@ The library includes 300+ icons including:
268
302
  - Social: `Facebook`, `Twitter`, `Github`, `Linkedin`
269
303
  - And many more...
270
304
 
271
- View the complete list at [primeicons.org](https://primeicons.org).
305
+ View the complete list at [primeicons.dev](https://primeicons.dev).
272
306
 
273
307
  ## License
274
308
 
275
- MIT - Copyright (c) PrimeTek Informatics
309
+ Licensed under the [PrimeUI License](https://primeui.dev/licenses) - Copyright (c) [PrimeTek Informatics](https://www.primetek.com.tr)
@@ -1,10 +1,10 @@
1
- import { cn as n } from "@primeuix/utils/classnames";
2
- const c = (t, e) => n("p-icon", `p-icon-${t}`, e), i = (t) => {
3
- const e = [];
4
- return t.color && e.push(`color: ${t.color};`), t.size && e.push(`--px-icon-size: ${t.size}px;`), t.style && e.push(typeof t.style == "string" ? t.style : ""), e.join(" ");
1
+ import { cn as i } from "@primeuix/utils/classnames";
2
+ const c = (t, n, e) => i("p-icon", `p-icon-${t}`, n && "p-icon-spin", e), s = (t) => {
3
+ const n = [];
4
+ return t.color && n.push(`color: ${t.color};`), t.size && n.push(`--px-icon-size: ${t.size}px;`), t.style && n.push(typeof t.style == "string" ? t.style : ""), n.join(" ");
5
5
  };
6
6
  export {
7
7
  c as getIconClass,
8
- i as getIconStyle
8
+ s as getIconStyle
9
9
  };
10
10
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../src/core/index.ts"],"sourcesContent":["import type { IconProps as CoreIconProps, IconData } from '@primeicons/core/types';\nimport { cn } from '@primeuix/utils/classnames';\n\nexport interface IconProps extends CoreIconProps {}\n\nexport const getIconClass = (name: string, className?: string): string => {\n return cn('p-icon', `p-icon-${name}`, className) as string;\n};\n\nexport const getIconStyle = (props: IconProps): string => {\n const styles: string[] = [];\n\n if (props.color) {\n styles.push(`color: ${props.color};`);\n }\n\n if (props.size) {\n styles.push(`--px-icon-size: ${props.size}px;`);\n }\n\n if (props.style) {\n styles.push(typeof props.style === 'string' ? props.style : '');\n }\n\n return styles.join(' ');\n};\n\nexport type { CoreIconProps, IconData };\n"],"names":["getIconClass","name","className","cn","getIconStyle","props","styles"],"mappings":";AAKO,MAAMA,IAAe,CAACC,GAAcC,MAChCC,EAAG,UAAU,UAAUF,CAAI,IAAIC,CAAS,GAGtCE,IAAe,CAACC,MAA6B;AACtD,QAAMC,IAAmB,CAAA;AAEzB,SAAID,EAAM,SACNC,EAAO,KAAK,UAAUD,EAAM,KAAK,GAAG,GAGpCA,EAAM,QACNC,EAAO,KAAK,mBAAmBD,EAAM,IAAI,KAAK,GAG9CA,EAAM,SACNC,EAAO,KAAK,OAAOD,EAAM,SAAU,WAAWA,EAAM,QAAQ,EAAE,GAG3DC,EAAO,KAAK,GAAG;AAC1B;"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../src/core/index.ts"],"sourcesContent":["import type { IconProps as CoreIconProps, IconData } from '@primeicons/core/types';\nimport { cn } from '@primeuix/utils/classnames';\n\nexport interface IconProps extends CoreIconProps {}\n\nexport const getIconClass = (name: string, spin?: boolean, className?: string): string => {\n return cn('p-icon', `p-icon-${name}`, spin && 'p-icon-spin', className) as string;\n};\n\nexport const getIconStyle = (props: IconProps): string => {\n const styles: string[] = [];\n\n if (props.color) {\n styles.push(`color: ${props.color};`);\n }\n\n if (props.size) {\n styles.push(`--px-icon-size: ${props.size}px;`);\n }\n\n if (props.style) {\n styles.push(typeof props.style === 'string' ? props.style : '');\n }\n\n return styles.join(' ');\n};\n\nexport type { CoreIconProps, IconData };\n"],"names":["getIconClass","name","spin","className","cn","getIconStyle","props","styles"],"mappings":";AAKO,MAAMA,IAAe,CAACC,GAAcC,GAAgBC,MAChDC,EAAG,UAAU,UAAUH,CAAI,IAAIC,KAAQ,eAAeC,CAAS,GAG7DE,IAAe,CAACC,MAA6B;AACtD,QAAMC,IAAmB,CAAA;AAEzB,SAAID,EAAM,SACNC,EAAO,KAAK,UAAUD,EAAM,KAAK,GAAG,GAGpCA,EAAM,QACNC,EAAO,KAAK,mBAAmBD,EAAM,IAAI,KAAK,GAG9CA,EAAM,SACNC,EAAO,KAAK,OAAOD,EAAM,SAAU,WAAWA,EAAM,QAAQ,EAAE,GAG3DC,EAAO,KAAK,GAAG;AAC1B;"}
@@ -1,6 +1,6 @@
1
1
  import { IconProps as CoreIconProps, IconData } from '@primeicons/core/types';
2
2
  export interface IconProps extends CoreIconProps {
3
3
  }
4
- export declare const getIconClass: (name: string, className?: string) => string;
4
+ export declare const getIconClass: (name: string, spin?: boolean, className?: string) => string;
5
5
  export declare const getIconStyle: (props: IconProps) => string;
6
6
  export type { CoreIconProps, IconData };
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@primeicons/svelte",
3
- "version": "8.0.0-beta.1",
3
+ "version": "8.0.0-rc.1",
4
4
  "author": "PrimeTek Informatics",
5
- "homepage": "https://primeicons.org/",
5
+ "homepage": "https://primeicons.dev/",
6
6
  "description": "PrimeIcons for Svelte - 300+ customizable SVG icons as Svelte components",
7
7
  "keywords": [
8
8
  "primeicons",
@@ -12,14 +12,9 @@
12
12
  "svelte-icons",
13
13
  "icon-components"
14
14
  ],
15
- "license": "MIT",
16
- "repository": {
17
- "type": "git",
18
- "url": "git+https://github.com/primefaces/primeicons.git",
19
- "directory": "packages/@primeicons/svelte"
20
- },
15
+ "license": "SEE LICENSE IN LICENSE.md",
21
16
  "bugs": {
22
- "url": "https://github.com/primefaces/primeicons/issues"
17
+ "url": "https://support.primeui.dev"
23
18
  },
24
19
  "main": "./dist/esm/index.mjs",
25
20
  "module": "./dist/esm/index.mjs",
@@ -50,11 +45,11 @@
50
45
  "files": [
51
46
  "dist",
52
47
  "README.md",
53
- "LICENSE"
48
+ "LICENSE.md"
54
49
  ],
55
50
  "dependencies": {
56
51
  "@primeuix/utils": "^0.6.4",
57
- "@primeicons/core": "8.0.0-beta.1"
52
+ "@primeicons/core": "8.0.0-rc.1"
58
53
  },
59
54
  "peerDependencies": {
60
55
  "svelte": "^5"
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- # MIT License
2
-
3
- Copyright (c) 2026 PrimeTek Informatics
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.