@liner-fe/icon 0.0.46 → 0.0.48
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 +12 -0
- package/index.tsx +7 -5
- package/package.json +4 -5
- package/lib/index.d.ts +0 -24
- package/lib/index.js +0 -8308
package/CHANGELOG.md
CHANGED
package/index.tsx
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { forwardRef } from 'react';
|
|
1
|
+
import React, { forwardRef } from 'react';
|
|
2
2
|
import { BasicColorType } from '@liner-fe/design-token-primitive';
|
|
3
3
|
import { ArrowUpward } from './assets/arrow-upward';
|
|
4
4
|
import { ArrowDownward } from './assets/arrow-downward';
|
|
@@ -188,7 +188,11 @@ import { MoreVertical } from './assets/more-vertical';
|
|
|
188
188
|
import { CheckMarkInCircle } from './assets/check-mark-in-circle';
|
|
189
189
|
import { Star } from './assets/star';
|
|
190
190
|
|
|
191
|
-
|
|
191
|
+
export 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";
|
|
192
|
+
|
|
193
|
+
export type IconSizeKey = keyof typeof iconSizeMap;
|
|
194
|
+
|
|
195
|
+
const IconMap: Record<"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", React.ForwardRefExoticComponent<any>> = {
|
|
192
196
|
"arrow-upward": ArrowUpward,
|
|
193
197
|
"arrow-downward": ArrowDownward,
|
|
194
198
|
"arrow-back": ArrowBack,
|
|
@@ -376,7 +380,7 @@ const IconMap: Record<string, React.ForwardRefExoticComponent<any>> = {
|
|
|
376
380
|
"more-vertical": MoreVertical,
|
|
377
381
|
"check-mark-in-circle": CheckMarkInCircle,
|
|
378
382
|
"star": Star
|
|
379
|
-
};
|
|
383
|
+
} as const;
|
|
380
384
|
|
|
381
385
|
const iconSizeMap = {
|
|
382
386
|
xs: 16,
|
|
@@ -386,8 +390,6 @@ const iconSizeMap = {
|
|
|
386
390
|
xl: 40,
|
|
387
391
|
} as const;
|
|
388
392
|
|
|
389
|
-
export type IconSizeKey = keyof typeof iconSizeMap;
|
|
390
|
-
|
|
391
393
|
export interface IconProps {
|
|
392
394
|
fill?: boolean;
|
|
393
395
|
thick?: boolean;
|
package/package.json
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@liner-fe/icon",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.48",
|
|
4
4
|
"scripts": {
|
|
5
|
-
"build": "
|
|
5
|
+
"build": ""
|
|
6
6
|
},
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public",
|
|
9
|
-
"main": "./
|
|
9
|
+
"main": "./index.tsx"
|
|
10
10
|
},
|
|
11
11
|
"files": [
|
|
12
12
|
"*"
|
|
13
13
|
],
|
|
14
|
-
"main": "./
|
|
15
|
-
"types": "./lib/index.d.ts",
|
|
14
|
+
"main": "./index.tsx",
|
|
16
15
|
"dependencies": {
|
|
17
16
|
"@liner-fe/design-token-primitive": "workspace:^",
|
|
18
17
|
"tsup": "^8.5.0"
|
package/lib/index.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { BasicColorType } from '@liner-fe/design-token-primitive';
|
|
3
|
-
|
|
4
|
-
declare const IconMap: Record<string, React.ForwardRefExoticComponent<any>>;
|
|
5
|
-
declare const iconSizeMap: {
|
|
6
|
-
readonly xs: 16;
|
|
7
|
-
readonly s: 20;
|
|
8
|
-
readonly m: 24;
|
|
9
|
-
readonly l: 32;
|
|
10
|
-
readonly xl: 40;
|
|
11
|
-
};
|
|
12
|
-
type IconSizeKey = keyof typeof iconSizeMap;
|
|
13
|
-
interface IconProps {
|
|
14
|
-
fill?: boolean;
|
|
15
|
-
thick?: boolean;
|
|
16
|
-
className?: string;
|
|
17
|
-
name: keyof typeof IconMap;
|
|
18
|
-
size?: keyof typeof iconSizeMap;
|
|
19
|
-
type?: BasicColorType;
|
|
20
|
-
fillType?: BasicColorType;
|
|
21
|
-
}
|
|
22
|
-
declare const Icon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
|
|
23
|
-
|
|
24
|
-
export { Icon, type IconProps, type IconSizeKey };
|