@liner-fe/icon 0.0.51 → 0.0.52
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/CHANGELOG.md +6 -0
- package/index.tsx +1 -1
- package/lib/index.d.ts +2 -2
- package/lib/index.js +2 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/index.tsx
CHANGED
|
@@ -193,7 +193,7 @@ export type IconName = "arrow-upward" | "arrow-downward" | "arrow-back" | "arrow
|
|
|
193
193
|
|
|
194
194
|
export type IconSizeKey = keyof typeof iconSizeMap;
|
|
195
195
|
|
|
196
|
-
const IconMap: Record<
|
|
196
|
+
export const IconMap: Record<IconName, React.ForwardRefExoticComponent<any>> = {
|
|
197
197
|
"arrow-upward": ArrowUpward,
|
|
198
198
|
"arrow-downward": ArrowDownward,
|
|
199
199
|
"arrow-back": ArrowBack,
|
package/lib/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { BasicColorType } from '@liner-fe/design-token-primitive';
|
|
|
3
3
|
|
|
4
4
|
type IconName = "arrow-upward" | "arrow-downward" | "arrow-back" | "arrow-forward" | "drop-up" | "drop-down" | "arrow-backward" | "arrow-drop-right" | "arrow-up" | "arrow-down" | "arrow-left" | "arrow-right" | "move" | "arrow-turn" | "start" | "end" | "extend" | "shorten" | "more" | "check-mark" | "check-mark-fill" | "exclamationmark" | "exclamationmark-fill" | "plus" | "minus" | "close" | "close-fill" | "double-arrow-forward" | "double-arrow-backward" | "arrow-up-right" | "arrow-down-left" | "arrow-up-left" | "arrow-up-down" | "redo" | "undo" | "expand" | "show-all" | "hide-all" | "help" | "zoom-in" | "zoom-out" | "retry" | "question-message" | "books" | "balance" | "chart-bar" | "chart-line-uptrend" | "folder" | "folder-open" | "folder-add" | "document" | "history" | "person" | "person-add" | "send" | "paperclip" | "share" | "sign-out" | "lock" | "ai" | "trash" | "stack" | "new-thread" | "summarize" | "search" | "memo" | "globe" | "graduationcap" | "palette" | "download" | "copy" | "regenerate" | "credit" | "feedback" | "creditcard" | "speaker" | "tune" | "shield" | "menu" | "light" | "document-add" | "thumb-up" | "thumb-down" | "document-warning" | "person-fill" | "step" | "book" | "description" | "bookmark" | "power" | "photo" | "camera" | "list" | "desktop" | "desktop-on-cursor" | "view-list" | "bolt" | "home" | "visibility" | "visibility-off" | "magic-wand" | "highlighter" | "pencil" | "essay" | "magic-pencil" | "highlight-edit" | "paraphrase" | "bulb-exclamtionmark" | "bulb" | "make-easy" | "translate" | "info" | "apple" | "android" | "twitter" | "facebook" | "google" | "car" | "airplane" | "rocket" | "source" | "liner" | "setting" | "light-mode" | "dark-mode" | "fire" | "question-box" | "target" | "new-tab" | "quote" | "document-check" | "block" | "bookmark-cancel" | "email" | "filter" | "timer" | "play-button" | "text-select" | "bell" | "secret-mode" | "add-clock" | "clock" | "spinner" | "volume-up" | "volume" | "google-export" | "link" | "sheet-export" | "shield-person" | "shield-usage" | "formal-bag" | "casual-shoe" | "folder-open-share" | "folder-share" | "verification-badge" | "report" | "brain" | "mindmap" | "flowchart" | "focus" | "paragraph" | "add-to-folder" | "remove-from-folder" | "move-to-folder" | "new-thread-folder" | "chrome" | "new-chrome-extension" | "mobile" | "members" | "teams" | "stop" | "microscope" | "literature-review" | "expand-close" | "restaurant" | "color-liner" | "color-liner-variation" | "color-facebook" | "color-google" | "color-fire" | "color-txt" | "color-pdf" | "color-docx" | "more-horizontal" | "more-vertical" | "check-mark-in-circle" | "star";
|
|
5
5
|
type IconSizeKey = keyof typeof iconSizeMap;
|
|
6
|
-
declare const IconMap: Record<
|
|
6
|
+
declare const IconMap: Record<IconName, React.ForwardRefExoticComponent<any>>;
|
|
7
7
|
declare const iconSizeMap: {
|
|
8
8
|
readonly xs: 16;
|
|
9
9
|
readonly s: 20;
|
|
@@ -22,4 +22,4 @@ interface IconProps extends Omit<SVGProps<SVGSVGElement>, 'fill'> {
|
|
|
22
22
|
}
|
|
23
23
|
declare const Icon: React.ForwardRefExoticComponent<Omit<IconProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
|
|
24
24
|
|
|
25
|
-
export { Icon, type IconName, type IconProps, type IconSizeKey };
|
|
25
|
+
export { Icon, IconMap, type IconName, type IconProps, type IconSizeKey };
|
package/lib/index.js
CHANGED
|
@@ -3263,7 +3263,8 @@ var require_jsx_runtime = __commonJS({
|
|
|
3263
3263
|
// index.tsx
|
|
3264
3264
|
var index_exports = {};
|
|
3265
3265
|
__export(index_exports, {
|
|
3266
|
-
Icon: () => Icon
|
|
3266
|
+
Icon: () => Icon,
|
|
3267
|
+
IconMap: () => IconMap
|
|
3267
3268
|
});
|
|
3268
3269
|
module.exports = __toCommonJS(index_exports);
|
|
3269
3270
|
var import_react188 = __toESM(require_react());
|