amotify 0.0.24 → 0.0.26

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/@types/amot.tsx CHANGED
@@ -1,4 +1,5 @@
1
1
  import { FontAwesomeIconProps } from '@fortawesome/react-fontawesome';
2
+ import { IconDefinition } from "@fortawesome/fontawesome-common-types";
2
3
  import * as FontawesomeCore from '@fortawesome/fontawesome-svg-core';
3
4
 
4
5
  import React from 'react';
@@ -149,7 +150,7 @@ declare global {
149
150
  namespace FAI {
150
151
  type Method = React.FC<FAIParams> & Shortcuts;
151
152
  type FAIParams = amotifyBasicElement & {
152
- icon: FontawesomeCore.IconProp
153
+ icon: FontawesomeCore.IconProp | IconDefinition
153
154
  iconParams?: Omit<FontAwesomeIconProps,'icon'>
154
155
  };
155
156
  type Shortcuts = {
@@ -68,17 +68,10 @@ declare global {
68
68
  type SheetParams = {
69
69
  sheetName: string
70
70
  rows: RowParams[]
71
- headers?: HeaderParams[]
72
71
  merges?: MergeTypes[]
73
72
  styles?: StyleTypes[]
74
73
  }
75
- type HeaderParams = {
76
- key: string
77
- value: string
78
- }
79
- type RowParams = {
80
- [ key: string ]: string | number
81
- }
74
+ type RowParams = ( string | number )[]
82
75
  type MergeTypes = [ string,string ] | [ null,null ]
83
76
  type StyleTypes = {
84
77
  type: 'cell' | 'row' | 'column'