ikoneme-lib 0.5.0 → 0.6.0

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/dist/Ikon.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export default Ikon;
2
- declare function Ikon({ ikon, onClick, size, onZoneClick, selectedZone, isSelected, isPaired, onEdit, onDelete, hideActionOverlay }: {
2
+ declare function Ikon({ ikon, onClick, size, onZoneClick, selectedZone, isSelected, isPaired, onEdit, onDelete, hideActionOverlay, label }: {
3
3
  ikon: any;
4
4
  onClick: any;
5
5
  size?: number;
@@ -10,4 +10,5 @@ declare function Ikon({ ikon, onClick, size, onZoneClick, selectedZone, isSelect
10
10
  onEdit: any;
11
11
  onDelete: any;
12
12
  hideActionOverlay?: boolean;
13
+ label?: any;
13
14
  }): any;
@@ -4,9 +4,12 @@ export function getIkonPaddings(size: any): {
4
4
  rootPad: number;
5
5
  };
6
6
  export function trackOffsets(length: any, weights: any): number[];
7
- export const EDGE_FR: 1.18;
8
- export const MID_FR: 0.95;
7
+ export const EDGE_FR: 1;
8
+ export const MID_FR: 1;
9
9
  export const TRACK_WEIGHTS: number[];
10
+ export const SLOT_EMPTY_BG: "#E3E5E8";
11
+ export const SLOT_FILLED_BG: "#FFFFFF";
12
+ export const ROOT_BG: "#FFFFFF";
10
13
  export const REF_WEIGHTS: number[];
11
14
  export namespace ZONE_BACKGROUNDS {
12
15
  let context: string;
@@ -36,6 +36,7 @@ export function getIconUrlByIndex(zone: any, index: any): any;
36
36
  export function getIconUrl(value: any): any;
37
37
  export function getIconDisplayUrl(value: any): any;
38
38
  export function createDefaultIkon(): {
39
+ slots: any[];
39
40
  context: {
40
41
  name: any;
41
42
  url: any;
@@ -63,7 +64,11 @@ export function createDefaultIkon(): {
63
64
  };
64
65
  border: any;
65
66
  };
66
- export function createEmptyIkon(): {
67
+ export function createEmptyIkon({ root, rootName }?: {
68
+ root?: any;
69
+ rootName?: any;
70
+ }): {
71
+ slots: any[];
67
72
  context: any;
68
73
  reference: {
69
74
  left: any;
@@ -74,7 +79,7 @@ export function createEmptyIkon(): {
74
79
  root: any;
75
80
  rootName: any;
76
81
  tenses: any;
77
- border: any;
82
+ border: string;
78
83
  };
79
84
  export function normalizeIkon(icon: any): any;
80
85
  export function normalizeIkoneme(ikons: any): any;
@@ -115,3 +120,4 @@ export const BORDER_CONFIG: {
115
120
  image: any;
116
121
  }[];
117
122
  export const BORDER_IDS: string[];
123
+ export const DEFAULT_BORDER: "neutral";
@@ -0,0 +1,50 @@
1
+ export function getSlotCategory(id: any): {
2
+ id: string;
3
+ label: string;
4
+ };
5
+ export function getCategoryIcons(id: any): any;
6
+ export function emptySlots(): any[];
7
+ export function normalizeSlot(slot: any): {
8
+ category: any;
9
+ name: any;
10
+ url: any;
11
+ };
12
+ export function slotsOf(ikon: any): any[];
13
+ export function legacyZonesFromSlots(slots: any): {
14
+ context: {
15
+ name: any;
16
+ url: any;
17
+ };
18
+ reference: {
19
+ left: {
20
+ name: any;
21
+ url: any;
22
+ };
23
+ right: {
24
+ name: any;
25
+ url: any;
26
+ };
27
+ };
28
+ role: {
29
+ name: any;
30
+ url: any;
31
+ };
32
+ modes: {
33
+ name: any;
34
+ url: any;
35
+ };
36
+ tenses: {
37
+ name: any;
38
+ url: any;
39
+ };
40
+ };
41
+ export function setSlot(ikon: any, index: any, value: any): any;
42
+ export const SLOT_COUNT: 20;
43
+ export const SLOT_POSITIONS: {
44
+ row: number;
45
+ col: number;
46
+ }[];
47
+ export const SLOT_CATEGORIES: {
48
+ id: string;
49
+ label: string;
50
+ }[];