@fiscozen/icons 0.1.13 → 0.1.15

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiscozen/icons",
3
- "version": "0.1.13",
3
+ "version": "0.1.15",
4
4
  "description": "Design system icon plugin and component",
5
5
  "main": "src/index.ts",
6
6
  "type": "module",
@@ -12,11 +12,11 @@
12
12
  },
13
13
  "devDependencies": {
14
14
  "@fiscozen/eslint-config": "^0.1.0",
15
- "@fiscozen/prettier-config": "^0.1.0",
16
- "@fiscozen/tsconfig": "^0.1.0"
15
+ "@fiscozen/tsconfig": "^0.1.0",
16
+ "@fiscozen/prettier-config": "^0.1.0"
17
17
  },
18
18
  "dependencies": {
19
- "@awesome.me/kit-8137893ad3": "^1.0.188",
19
+ "@awesome.me/kit-8137893ad3": "^1.0.197",
20
20
  "@fortawesome/fontawesome-svg-core": "^6.6.0",
21
21
  "@fortawesome/vue-fontawesome": "^3.0.8"
22
22
  },
package/src/FzIcon.vue CHANGED
@@ -1,14 +1,10 @@
1
1
  <script setup lang="ts">
2
2
  import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
3
3
  import { byPrefixAndName } from '@awesome.me/kit-8137893ad3/icons'
4
- import type { IconSize, IconVariant } from './types'
4
+ import type { IconProps, IconSize } from './types'
5
5
 
6
6
  withDefaults(
7
- defineProps<{
8
- name: string | string[]
9
- size?: IconSize
10
- variant?: IconVariant
11
- }>(),
7
+ defineProps<IconProps>(),
12
8
  { size: 'lg', variant: 'far' }
13
9
  )
14
10
  const staticContainerClasses = ['flex', 'items-center', 'justify-center']
@@ -36,6 +32,7 @@ const iconClassSizeMap: Record<IconSize, string> = {
36
32
  :class="iconClassSizeMap[size]"
37
33
  :icon="typeof name === 'string' ? byPrefixAndName[variant][name] : name"
38
34
  :size="size !== 'md' ? size : undefined"
35
+ :spin="spin"
39
36
  />
40
37
  </div>
41
38
  </template>
package/src/index.ts CHANGED
@@ -13,4 +13,4 @@ const IconPlugin : Plugin = {
13
13
 
14
14
  export { FzIcon, IconPlugin }
15
15
 
16
- export type { IconVariant, IconSize } from './types'
16
+ export type { IconVariant, IconSize, IconProps } from './types'
package/src/types.ts CHANGED
@@ -1,4 +1,11 @@
1
1
  type IconVariant = 'fas' | 'far' | 'fal' | 'fat' | 'fad' | 'fass' | 'fasr' | 'fasl' | 'fast' | 'fak'
2
2
  type IconSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl'
3
3
 
4
- export type { IconVariant, IconSize }
4
+ interface IconProps {
5
+ name: string | string[];
6
+ size?: IconSize;
7
+ variant?: IconVariant;
8
+ spin?: boolean;
9
+ }
10
+
11
+ export type { IconVariant, IconSize, IconProps }