@booki-aui/icons 0.0.0-stage → 0.4.3

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.
Files changed (132) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/COVERAGE.md +185 -0
  3. package/LICENSE +21 -0
  4. package/README.md +46 -2
  5. package/agent-cursor.svg +1 -0
  6. package/archive.svg +1 -0
  7. package/arrow-right.svg +1 -0
  8. package/arrow-uturn.svg +1 -0
  9. package/arrows-exchange.svg +1 -0
  10. package/badge-check.svg +1 -0
  11. package/bank.svg +1 -0
  12. package/banknote.svg +1 -0
  13. package/barcode.svg +1 -0
  14. package/bell.svg +1 -0
  15. package/bolt.svg +1 -0
  16. package/book.svg +1 -0
  17. package/bot.svg +1 -0
  18. package/briefcase.svg +1 -0
  19. package/building.svg +1 -0
  20. package/calculator.svg +1 -0
  21. package/calendar-check.svg +1 -0
  22. package/calendar-dot.svg +1 -0
  23. package/calendar-range.svg +1 -0
  24. package/calendar.svg +1 -0
  25. package/camera.svg +1 -0
  26. package/cart.svg +1 -0
  27. package/chart-bar-stacked.svg +1 -0
  28. package/chart-bar.svg +1 -0
  29. package/chart-forecast.svg +1 -0
  30. package/chart-line-down.svg +1 -0
  31. package/chart-line.svg +1 -0
  32. package/chart-pie.svg +1 -0
  33. package/chart-waterfall.svg +1 -0
  34. package/chat-sparkle.svg +1 -0
  35. package/check.svg +1 -0
  36. package/chevron-down.svg +1 -0
  37. package/chevron-right.svg +1 -0
  38. package/circle-check.svg +1 -0
  39. package/circle-info.svg +1 -0
  40. package/circle-x.svg +1 -0
  41. package/clipboard.svg +1 -0
  42. package/clock.svg +1 -0
  43. package/code.svg +1 -0
  44. package/coins.svg +1 -0
  45. package/copy.svg +1 -0
  46. package/credit-card.svg +1 -0
  47. package/database.svg +1 -0
  48. package/dialog.svg +1 -0
  49. package/document-banknote.svg +1 -0
  50. package/document-check.svg +1 -0
  51. package/document-lines.svg +1 -0
  52. package/document-pen.svg +1 -0
  53. package/dots.svg +1 -0
  54. package/download.svg +1 -0
  55. package/envelope.svg +1 -0
  56. package/external-link.svg +1 -0
  57. package/eye-off.svg +1 -0
  58. package/eye.svg +1 -0
  59. package/fingerprint.svg +1 -0
  60. package/flag.svg +1 -0
  61. package/flask.svg +1 -0
  62. package/folder.svg +1 -0
  63. package/funnel.svg +1 -0
  64. package/gauge.svg +1 -0
  65. package/gavel.svg +1 -0
  66. package/gear.svg +1 -0
  67. package/globe.svg +1 -0
  68. package/hash.svg +1 -0
  69. package/history.svg +1 -0
  70. package/hourglass.svg +1 -0
  71. package/inbox.svg +1 -0
  72. package/input-field.svg +1 -0
  73. package/kanban.svg +1 -0
  74. package/key.svg +1 -0
  75. package/layers.svg +1 -0
  76. package/lib/index.d.ts +140 -0
  77. package/lib/index.js +563 -0
  78. package/lib/react.d.ts +262 -0
  79. package/lib/react.js +1115 -0
  80. package/link.svg +1 -0
  81. package/list-checks.svg +1 -0
  82. package/list-rows.svg +1 -0
  83. package/lock-open.svg +1 -0
  84. package/lock.svg +1 -0
  85. package/magnifier.svg +1 -0
  86. package/map.svg +1 -0
  87. package/octagon-pause.svg +1 -0
  88. package/package.json +57 -3
  89. package/package.svg +1 -0
  90. package/paper-plane.svg +1 -0
  91. package/paperclip.svg +1 -0
  92. package/pen-nib.svg +1 -0
  93. package/pencil.svg +1 -0
  94. package/percent.svg +1 -0
  95. package/play-window.svg +1 -0
  96. package/plug.svg +1 -0
  97. package/plus.svg +1 -0
  98. package/printer.svg +1 -0
  99. package/prompt.svg +1 -0
  100. package/puzzle.svg +1 -0
  101. package/receipt-minus.svg +1 -0
  102. package/receipt.svg +1 -0
  103. package/refresh.svg +1 -0
  104. package/repeat.svg +1 -0
  105. package/risk-matrix.svg +1 -0
  106. package/route.svg +1 -0
  107. package/sample.svg +1 -0
  108. package/scale.svg +1 -0
  109. package/scan.svg +1 -0
  110. package/shapes.svg +1 -0
  111. package/shield-check.svg +1 -0
  112. package/sitemap.svg +1 -0
  113. package/sliders.svg +1 -0
  114. package/sparkles.svg +1 -0
  115. package/speech-bubble.svg +1 -0
  116. package/stack.svg +1 -0
  117. package/stamp.svg +1 -0
  118. package/sticky-note.svg +1 -0
  119. package/stopwatch.svg +1 -0
  120. package/store.svg +1 -0
  121. package/table.svg +1 -0
  122. package/tag.svg +1 -0
  123. package/target.svg +1 -0
  124. package/timeline.svg +1 -0
  125. package/token.svg +1 -0
  126. package/trash.svg +1 -0
  127. package/triangle-alert.svg +1 -0
  128. package/truck.svg +1 -0
  129. package/upload.svg +1 -0
  130. package/wallet.svg +1 -0
  131. package/wrench.svg +1 -0
  132. package/x.svg +1 -0
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><g fill="currentColor" stroke="none" opacity="0.2"><path d="M12 6.25L19.75 6.25A1.5 1.5 0 0 1 21.25 7.75L21.25 16.25A1.5 1.5 0 0 1 19.75 17.75L4.25 17.75A1.5 1.5 0 0 1 2.75 16.25L2.75 7.75A1.5 1.5 0 0 1 4.25 6.25Z"/></g><path d="M12 6.25L19.75 6.25A1.5 1.5 0 0 1 21.25 7.75L21.25 16.25A1.5 1.5 0 0 1 19.75 17.75L4.25 17.75A1.5 1.5 0 0 1 2.75 16.25L2.75 7.75A1.5 1.5 0 0 1 4.25 6.25Z"/><path d="M6.25 12h3"/><path d="M12.75 9.75v4.5"/></svg>
package/kanban.svg ADDED
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><g fill="currentColor" stroke="none" opacity="0.2"><path d="M12 3.75L18.75 3.75A1.5 1.5 0 0 1 20.25 5.25L20.25 18.75A1.5 1.5 0 0 1 18.75 20.25L5.25 20.25A1.5 1.5 0 0 1 3.75 18.75L3.75 5.25A1.5 1.5 0 0 1 5.25 3.75Z"/></g><path d="M12 3.75L18.75 3.75A1.5 1.5 0 0 1 20.25 5.25L20.25 18.75A1.5 1.5 0 0 1 18.75 20.25L5.25 20.25A1.5 1.5 0 0 1 3.75 18.75L3.75 5.25A1.5 1.5 0 0 1 5.25 3.75Z"/><path d="M7.75 7.75v8.5"/><path d="M12 7.75v4"/><path d="M16.25 7.75v6.5"/></svg>
package/key.svg ADDED
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><g fill="currentColor" stroke="none" opacity="0.2"><circle cx="8" cy="16" r="5"/></g><circle cx="8" cy="16" r="5"/><path d="M11.536 12.464L19.043 4.957A1 1 0 0 1 20.457 4.957L22 6.5"/><path d="M15.75 8.25l2.25 2.25"/><path d="M8 16h.01"/></svg>
package/layers.svg ADDED
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><g fill="currentColor" stroke="none" opacity="0.2"><path d="M10.25 7.25L15.25 7.25A1.5 1.5 0 0 1 16.75 8.75L16.75 18.75A1.5 1.5 0 0 1 15.25 20.25L5.25 20.25A1.5 1.5 0 0 1 3.75 18.75L3.75 8.75A1.5 1.5 0 0 1 5.25 7.25Z"/><path d="M7.25 7.25V5.25A1.5 1.5 0 0 1 8.75 3.75H18.75A1.5 1.5 0 0 1 20.25 5.25V15.25A1.5 1.5 0 0 1 18.75 16.75H16.75V8.75A1.5 1.5 0 0 0 15.25 7.25Z"/></g><path d="M10.25 7.25L15.25 7.25A1.5 1.5 0 0 1 16.75 8.75L16.75 18.75A1.5 1.5 0 0 1 15.25 20.25L5.25 20.25A1.5 1.5 0 0 1 3.75 18.75L3.75 8.75A1.5 1.5 0 0 1 5.25 7.25Z"/><path d="M7.25 7.25L7.25 5.25A1.5 1.5 0 0 1 8.75 3.75L18.75 3.75A1.5 1.5 0 0 1 20.25 5.25L20.25 15.25A1.5 1.5 0 0 1 18.75 16.75L16.75 16.75"/></svg>
package/lib/index.d.ts ADDED
@@ -0,0 +1,140 @@
1
+ // Generated by scripts/generate.mjs from the built SVGs. Do not edit.
2
+
3
+ export type IconName =
4
+ | "agent-cursor"
5
+ | "archive"
6
+ | "arrow-right"
7
+ | "arrow-uturn"
8
+ | "arrows-exchange"
9
+ | "badge-check"
10
+ | "bank"
11
+ | "banknote"
12
+ | "barcode"
13
+ | "bell"
14
+ | "bolt"
15
+ | "book"
16
+ | "bot"
17
+ | "briefcase"
18
+ | "building"
19
+ | "calculator"
20
+ | "calendar"
21
+ | "calendar-check"
22
+ | "calendar-dot"
23
+ | "calendar-range"
24
+ | "camera"
25
+ | "cart"
26
+ | "chart-bar"
27
+ | "chart-bar-stacked"
28
+ | "chart-forecast"
29
+ | "chart-line"
30
+ | "chart-line-down"
31
+ | "chart-pie"
32
+ | "chart-waterfall"
33
+ | "chat-sparkle"
34
+ | "check"
35
+ | "chevron-down"
36
+ | "chevron-right"
37
+ | "circle-check"
38
+ | "circle-info"
39
+ | "circle-x"
40
+ | "clipboard"
41
+ | "clock"
42
+ | "code"
43
+ | "coins"
44
+ | "copy"
45
+ | "credit-card"
46
+ | "database"
47
+ | "dialog"
48
+ | "document-banknote"
49
+ | "document-check"
50
+ | "document-lines"
51
+ | "document-pen"
52
+ | "dots"
53
+ | "download"
54
+ | "envelope"
55
+ | "external-link"
56
+ | "eye"
57
+ | "eye-off"
58
+ | "fingerprint"
59
+ | "flag"
60
+ | "flask"
61
+ | "folder"
62
+ | "funnel"
63
+ | "gauge"
64
+ | "gavel"
65
+ | "gear"
66
+ | "globe"
67
+ | "hash"
68
+ | "history"
69
+ | "hourglass"
70
+ | "inbox"
71
+ | "input-field"
72
+ | "kanban"
73
+ | "key"
74
+ | "layers"
75
+ | "link"
76
+ | "list-checks"
77
+ | "list-rows"
78
+ | "lock"
79
+ | "lock-open"
80
+ | "magnifier"
81
+ | "map"
82
+ | "octagon-pause"
83
+ | "package"
84
+ | "paper-plane"
85
+ | "paperclip"
86
+ | "pen-nib"
87
+ | "pencil"
88
+ | "percent"
89
+ | "play-window"
90
+ | "plug"
91
+ | "plus"
92
+ | "printer"
93
+ | "prompt"
94
+ | "puzzle"
95
+ | "receipt"
96
+ | "receipt-minus"
97
+ | "refresh"
98
+ | "repeat"
99
+ | "risk-matrix"
100
+ | "route"
101
+ | "sample"
102
+ | "scale"
103
+ | "scan"
104
+ | "shapes"
105
+ | "shield-check"
106
+ | "sitemap"
107
+ | "sliders"
108
+ | "sparkles"
109
+ | "speech-bubble"
110
+ | "stack"
111
+ | "stamp"
112
+ | "sticky-note"
113
+ | "stopwatch"
114
+ | "store"
115
+ | "table"
116
+ | "tag"
117
+ | "target"
118
+ | "timeline"
119
+ | "token"
120
+ | "trash"
121
+ | "triangle-alert"
122
+ | "truck"
123
+ | "upload"
124
+ | "wallet"
125
+ | "wrench"
126
+ | "x";
127
+ /** The attributes every icon's root <svg> carries. */
128
+ export declare const iconAttributes: Readonly<Record<string, string>>;
129
+ /** Each icon's inner markup, by name. */
130
+ export declare const icons: Readonly<Record<IconName, string>>;
131
+ /** The words each icon stands for in Booki (its pages and controls), for search. */
132
+ export declare const iconAliases: Readonly<Record<IconName, readonly string[]>>;
133
+ /** Every icon name. */
134
+ export declare const iconNames: readonly IconName[];
135
+ /** The themes the icons are grouped in, each icon in exactly one. */
136
+ export declare const iconCategories: readonly { id: string; en: string; nb: string; icons: readonly IconName[] }[];
137
+ /** The React component for an icon: `chart-bar` → `ChartBarIcon`. */
138
+ export declare function iconComponentName(name: IconName): string;
139
+ /** One icon as a complete SVG string. Throws on an unknown name, listing the names. */
140
+ export declare function iconSvg(name: IconName, size?: 16 | 20): string;