@gemologic/sheen-icons 0.1.0-rc.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/LICENSE +19 -0
- package/README.md +26 -0
- package/THIRD_PARTY_NOTICES.md +60 -0
- package/dist/generated/catalog.d.ts +464 -0
- package/dist/generated/catalog.js +89 -0
- package/dist/generated/data/add.d.ts +12 -0
- package/dist/generated/data/add.js +14 -0
- package/dist/generated/data/arrow-down.d.ts +12 -0
- package/dist/generated/data/arrow-down.js +14 -0
- package/dist/generated/data/arrow-left.d.ts +12 -0
- package/dist/generated/data/arrow-left.js +14 -0
- package/dist/generated/data/arrow-right.d.ts +12 -0
- package/dist/generated/data/arrow-right.js +14 -0
- package/dist/generated/data/arrow-up.d.ts +12 -0
- package/dist/generated/data/arrow-up.js +14 -0
- package/dist/generated/data/calendar.d.ts +12 -0
- package/dist/generated/data/calendar.js +14 -0
- package/dist/generated/data/check.d.ts +12 -0
- package/dist/generated/data/check.js +14 -0
- package/dist/generated/data/chevron-down.d.ts +12 -0
- package/dist/generated/data/chevron-down.js +14 -0
- package/dist/generated/data/chevron-left.d.ts +12 -0
- package/dist/generated/data/chevron-left.js +14 -0
- package/dist/generated/data/chevron-right.d.ts +12 -0
- package/dist/generated/data/chevron-right.js +14 -0
- package/dist/generated/data/chevron-up.d.ts +12 -0
- package/dist/generated/data/chevron-up.js +14 -0
- package/dist/generated/data/clock.d.ts +12 -0
- package/dist/generated/data/clock.js +14 -0
- package/dist/generated/data/close.d.ts +12 -0
- package/dist/generated/data/close.js +14 -0
- package/dist/generated/data/copy.d.ts +12 -0
- package/dist/generated/data/copy.js +14 -0
- package/dist/generated/data/download.d.ts +12 -0
- package/dist/generated/data/download.js +14 -0
- package/dist/generated/data/edit.d.ts +12 -0
- package/dist/generated/data/edit.js +14 -0
- package/dist/generated/data/error.d.ts +12 -0
- package/dist/generated/data/error.js +14 -0
- package/dist/generated/data/external-link.d.ts +12 -0
- package/dist/generated/data/external-link.js +14 -0
- package/dist/generated/data/filter.d.ts +12 -0
- package/dist/generated/data/filter.js +14 -0
- package/dist/generated/data/hidden.d.ts +12 -0
- package/dist/generated/data/hidden.js +14 -0
- package/dist/generated/data/home.d.ts +12 -0
- package/dist/generated/data/home.js +14 -0
- package/dist/generated/data/inbox.d.ts +12 -0
- package/dist/generated/data/inbox.js +14 -0
- package/dist/generated/data/info.d.ts +12 -0
- package/dist/generated/data/info.js +14 -0
- package/dist/generated/data/lock.d.ts +12 -0
- package/dist/generated/data/lock.js +14 -0
- package/dist/generated/data/menu.d.ts +12 -0
- package/dist/generated/data/menu.js +14 -0
- package/dist/generated/data/more-horizontal.d.ts +12 -0
- package/dist/generated/data/more-horizontal.js +14 -0
- package/dist/generated/data/more-vertical.d.ts +12 -0
- package/dist/generated/data/more-vertical.js +14 -0
- package/dist/generated/data/notifications.d.ts +12 -0
- package/dist/generated/data/notifications.js +14 -0
- package/dist/generated/data/refresh.d.ts +12 -0
- package/dist/generated/data/refresh.js +14 -0
- package/dist/generated/data/remove.d.ts +12 -0
- package/dist/generated/data/remove.js +14 -0
- package/dist/generated/data/search.d.ts +12 -0
- package/dist/generated/data/search.js +14 -0
- package/dist/generated/data/settings.d.ts +12 -0
- package/dist/generated/data/settings.js +14 -0
- package/dist/generated/data/sort-ascending.d.ts +12 -0
- package/dist/generated/data/sort-ascending.js +14 -0
- package/dist/generated/data/sort-descending.d.ts +12 -0
- package/dist/generated/data/sort-descending.js +14 -0
- package/dist/generated/data/success.d.ts +12 -0
- package/dist/generated/data/success.js +14 -0
- package/dist/generated/data/trash.d.ts +12 -0
- package/dist/generated/data/trash.js +14 -0
- package/dist/generated/data/unlock.d.ts +12 -0
- package/dist/generated/data/unlock.js +14 -0
- package/dist/generated/data/upload.d.ts +12 -0
- package/dist/generated/data/upload.js +14 -0
- package/dist/generated/data/user.d.ts +12 -0
- package/dist/generated/data/user.js +14 -0
- package/dist/generated/data/users.d.ts +12 -0
- package/dist/generated/data/users.js +14 -0
- package/dist/generated/data/visible.d.ts +12 -0
- package/dist/generated/data/visible.js +14 -0
- package/dist/generated/data/warning.d.ts +12 -0
- package/dist/generated/data/warning.js +14 -0
- package/dist/generated/icons.d.ts +42 -0
- package/dist/icons/add.d.ts +2 -0
- package/dist/icons/add.js +6 -0
- package/dist/icons/arrow-down.d.ts +2 -0
- package/dist/icons/arrow-down.js +6 -0
- package/dist/icons/arrow-left.d.ts +2 -0
- package/dist/icons/arrow-left.js +6 -0
- package/dist/icons/arrow-right.d.ts +2 -0
- package/dist/icons/arrow-right.js +6 -0
- package/dist/icons/arrow-up.d.ts +2 -0
- package/dist/icons/arrow-up.js +6 -0
- package/dist/icons/calendar.d.ts +2 -0
- package/dist/icons/calendar.js +6 -0
- package/dist/icons/check.d.ts +2 -0
- package/dist/icons/check.js +6 -0
- package/dist/icons/chevron-down.d.ts +2 -0
- package/dist/icons/chevron-down.js +6 -0
- package/dist/icons/chevron-left.d.ts +2 -0
- package/dist/icons/chevron-left.js +6 -0
- package/dist/icons/chevron-right.d.ts +2 -0
- package/dist/icons/chevron-right.js +6 -0
- package/dist/icons/chevron-up.d.ts +2 -0
- package/dist/icons/chevron-up.js +6 -0
- package/dist/icons/clock.d.ts +2 -0
- package/dist/icons/clock.js +6 -0
- package/dist/icons/close.d.ts +2 -0
- package/dist/icons/close.js +6 -0
- package/dist/icons/copy.d.ts +2 -0
- package/dist/icons/copy.js +6 -0
- package/dist/icons/download.d.ts +2 -0
- package/dist/icons/download.js +6 -0
- package/dist/icons/edit.d.ts +2 -0
- package/dist/icons/edit.js +6 -0
- package/dist/icons/error.d.ts +2 -0
- package/dist/icons/error.js +6 -0
- package/dist/icons/external-link.d.ts +2 -0
- package/dist/icons/external-link.js +6 -0
- package/dist/icons/filter.d.ts +2 -0
- package/dist/icons/filter.js +6 -0
- package/dist/icons/hidden.d.ts +2 -0
- package/dist/icons/hidden.js +6 -0
- package/dist/icons/home.d.ts +2 -0
- package/dist/icons/home.js +6 -0
- package/dist/icons/inbox.d.ts +2 -0
- package/dist/icons/inbox.js +6 -0
- package/dist/icons/info.d.ts +2 -0
- package/dist/icons/info.js +6 -0
- package/dist/icons/lock.d.ts +2 -0
- package/dist/icons/lock.js +6 -0
- package/dist/icons/menu.d.ts +2 -0
- package/dist/icons/menu.js +6 -0
- package/dist/icons/more-horizontal.d.ts +2 -0
- package/dist/icons/more-horizontal.js +6 -0
- package/dist/icons/more-vertical.d.ts +2 -0
- package/dist/icons/more-vertical.js +6 -0
- package/dist/icons/notifications.d.ts +2 -0
- package/dist/icons/notifications.js +6 -0
- package/dist/icons/refresh.d.ts +2 -0
- package/dist/icons/refresh.js +6 -0
- package/dist/icons/remove.d.ts +2 -0
- package/dist/icons/remove.js +6 -0
- package/dist/icons/search.d.ts +2 -0
- package/dist/icons/search.js +6 -0
- package/dist/icons/settings.d.ts +2 -0
- package/dist/icons/settings.js +6 -0
- package/dist/icons/sort-ascending.d.ts +2 -0
- package/dist/icons/sort-ascending.js +6 -0
- package/dist/icons/sort-descending.d.ts +2 -0
- package/dist/icons/sort-descending.js +6 -0
- package/dist/icons/success.d.ts +2 -0
- package/dist/icons/success.js +6 -0
- package/dist/icons/trash.d.ts +2 -0
- package/dist/icons/trash.js +6 -0
- package/dist/icons/unlock.d.ts +2 -0
- package/dist/icons/unlock.js +6 -0
- package/dist/icons/upload.d.ts +2 -0
- package/dist/icons/upload.js +6 -0
- package/dist/icons/user.d.ts +2 -0
- package/dist/icons/user.js +6 -0
- package/dist/icons/users.d.ts +2 -0
- package/dist/icons/users.js +6 -0
- package/dist/icons/visible.d.ts +2 -0
- package/dist/icons/visible.js +6 -0
- package/dist/icons/warning.d.ts +2 -0
- package/dist/icons/warning.js +6 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +45 -0
- package/dist/registry.d.ts +174 -0
- package/dist/registry.js +176 -0
- package/dist/runtime.d.ts +29 -0
- package/dist/runtime.js +96 -0
- package/dist/vite.d.ts +9 -0
- package/dist/vite.js +133 -0
- package/package.json +75 -0
- package/src/generated/catalog.ts +90 -0
- package/src/generated/data/add.ts +5 -0
- package/src/generated/data/arrow-down.ts +5 -0
- package/src/generated/data/arrow-left.ts +5 -0
- package/src/generated/data/arrow-right.ts +5 -0
- package/src/generated/data/arrow-up.ts +5 -0
- package/src/generated/data/calendar.ts +5 -0
- package/src/generated/data/check.ts +5 -0
- package/src/generated/data/chevron-down.ts +5 -0
- package/src/generated/data/chevron-left.ts +5 -0
- package/src/generated/data/chevron-right.ts +5 -0
- package/src/generated/data/chevron-up.ts +5 -0
- package/src/generated/data/clock.ts +5 -0
- package/src/generated/data/close.ts +5 -0
- package/src/generated/data/copy.ts +5 -0
- package/src/generated/data/download.ts +5 -0
- package/src/generated/data/edit.ts +5 -0
- package/src/generated/data/error.ts +5 -0
- package/src/generated/data/external-link.ts +5 -0
- package/src/generated/data/filter.ts +5 -0
- package/src/generated/data/hidden.ts +5 -0
- package/src/generated/data/home.ts +5 -0
- package/src/generated/data/inbox.ts +5 -0
- package/src/generated/data/info.ts +5 -0
- package/src/generated/data/lock.ts +5 -0
- package/src/generated/data/menu.ts +5 -0
- package/src/generated/data/more-horizontal.ts +5 -0
- package/src/generated/data/more-vertical.ts +5 -0
- package/src/generated/data/notifications.ts +5 -0
- package/src/generated/data/refresh.ts +5 -0
- package/src/generated/data/remove.ts +5 -0
- package/src/generated/data/search.ts +5 -0
- package/src/generated/data/settings.ts +5 -0
- package/src/generated/data/sort-ascending.ts +5 -0
- package/src/generated/data/sort-descending.ts +5 -0
- package/src/generated/data/success.ts +5 -0
- package/src/generated/data/trash.ts +5 -0
- package/src/generated/data/unlock.ts +5 -0
- package/src/generated/data/upload.ts +5 -0
- package/src/generated/data/user.ts +5 -0
- package/src/generated/data/users.ts +5 -0
- package/src/generated/data/visible.ts +5 -0
- package/src/generated/data/warning.ts +5 -0
- package/src/generated/icons.ts +43 -0
- package/src/icons/add.tsx +6 -0
- package/src/icons/arrow-down.tsx +6 -0
- package/src/icons/arrow-left.tsx +6 -0
- package/src/icons/arrow-right.tsx +6 -0
- package/src/icons/arrow-up.tsx +6 -0
- package/src/icons/calendar.tsx +6 -0
- package/src/icons/check.tsx +6 -0
- package/src/icons/chevron-down.tsx +6 -0
- package/src/icons/chevron-left.tsx +6 -0
- package/src/icons/chevron-right.tsx +6 -0
- package/src/icons/chevron-up.tsx +6 -0
- package/src/icons/clock.tsx +6 -0
- package/src/icons/close.tsx +6 -0
- package/src/icons/copy.tsx +6 -0
- package/src/icons/download.tsx +6 -0
- package/src/icons/edit.tsx +6 -0
- package/src/icons/error.tsx +6 -0
- package/src/icons/external-link.tsx +6 -0
- package/src/icons/filter.tsx +6 -0
- package/src/icons/hidden.tsx +6 -0
- package/src/icons/home.tsx +6 -0
- package/src/icons/inbox.tsx +6 -0
- package/src/icons/info.tsx +6 -0
- package/src/icons/lock.tsx +6 -0
- package/src/icons/menu.tsx +6 -0
- package/src/icons/more-horizontal.tsx +6 -0
- package/src/icons/more-vertical.tsx +6 -0
- package/src/icons/notifications.tsx +6 -0
- package/src/icons/refresh.tsx +6 -0
- package/src/icons/remove.tsx +6 -0
- package/src/icons/search.tsx +6 -0
- package/src/icons/settings.tsx +6 -0
- package/src/icons/sort-ascending.tsx +6 -0
- package/src/icons/sort-descending.tsx +6 -0
- package/src/icons/success.tsx +6 -0
- package/src/icons/trash.tsx +6 -0
- package/src/icons/unlock.tsx +6 -0
- package/src/icons/upload.tsx +6 -0
- package/src/icons/user.tsx +6 -0
- package/src/icons/users.tsx +6 -0
- package/src/icons/visible.tsx +6 -0
- package/src/icons/warning.tsx +6 -0
- package/src/index.ts +5 -0
- package/src/registry.ts +53 -0
- package/src/runtime.tsx +65 -0
- package/src/styles.css +16 -0
- package/src/vite.ts +135 -0
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { phosphorVisible as e, radixVisible as t } from "../generated/data/visible.js";
|
|
2
|
+
import { createStaticIcon as n } from "../runtime.js";
|
|
3
|
+
//#region src/icons/visible.tsx
|
|
4
|
+
var r = n("visible", [t, e]);
|
|
5
|
+
//#endregion
|
|
6
|
+
export { r as VisibleIcon, r as default };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { phosphorWarning as e, radixWarning as t } from "../generated/data/warning.js";
|
|
2
|
+
import { createStaticIcon as n } from "../runtime.js";
|
|
3
|
+
//#region src/icons/warning.tsx
|
|
4
|
+
var r = n("warning", [t, e]);
|
|
5
|
+
//#endregion
|
|
6
|
+
export { r as WarningIcon, r as default };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { Icon, DynamicIcon } from "./runtime.tsx";
|
|
2
|
+
export type { IconData, IconProps, DynamicIconProps, StaticIconProps } from "./runtime.tsx";
|
|
3
|
+
export { iconNames, iconRegistry, isIconName } from "./registry.ts";
|
|
4
|
+
export type { IconName, IconSetName } from "./registry.ts";
|
|
5
|
+
export * from "./generated/icons.ts";
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { iconNames as e, iconRegistry as t, isIconName as n } from "./registry.js";
|
|
2
|
+
import { DynamicIcon as r, Icon as i } from "./runtime.js";
|
|
3
|
+
import { AddIcon as a } from "./icons/add.js";
|
|
4
|
+
import { RemoveIcon as o } from "./icons/remove.js";
|
|
5
|
+
import { CloseIcon as s } from "./icons/close.js";
|
|
6
|
+
import { CheckIcon as c } from "./icons/check.js";
|
|
7
|
+
import { SettingsIcon as l } from "./icons/settings.js";
|
|
8
|
+
import { SearchIcon as u } from "./icons/search.js";
|
|
9
|
+
import { ChevronDownIcon as d } from "./icons/chevron-down.js";
|
|
10
|
+
import { ChevronUpIcon as f } from "./icons/chevron-up.js";
|
|
11
|
+
import { ChevronLeftIcon as p } from "./icons/chevron-left.js";
|
|
12
|
+
import { ChevronRightIcon as m } from "./icons/chevron-right.js";
|
|
13
|
+
import { ArrowLeftIcon as h } from "./icons/arrow-left.js";
|
|
14
|
+
import { ArrowRightIcon as g } from "./icons/arrow-right.js";
|
|
15
|
+
import { ArrowUpIcon as _ } from "./icons/arrow-up.js";
|
|
16
|
+
import { ArrowDownIcon as v } from "./icons/arrow-down.js";
|
|
17
|
+
import { MenuIcon as y } from "./icons/menu.js";
|
|
18
|
+
import { MoreHorizontalIcon as b } from "./icons/more-horizontal.js";
|
|
19
|
+
import { MoreVerticalIcon as x } from "./icons/more-vertical.js";
|
|
20
|
+
import { FilterIcon as S } from "./icons/filter.js";
|
|
21
|
+
import { SortAscendingIcon as C } from "./icons/sort-ascending.js";
|
|
22
|
+
import { SortDescendingIcon as w } from "./icons/sort-descending.js";
|
|
23
|
+
import { RefreshIcon as T } from "./icons/refresh.js";
|
|
24
|
+
import { DownloadIcon as E } from "./icons/download.js";
|
|
25
|
+
import { UploadIcon as D } from "./icons/upload.js";
|
|
26
|
+
import { EditIcon as O } from "./icons/edit.js";
|
|
27
|
+
import { TrashIcon as k } from "./icons/trash.js";
|
|
28
|
+
import { CopyIcon as A } from "./icons/copy.js";
|
|
29
|
+
import { ExternalLinkIcon as j } from "./icons/external-link.js";
|
|
30
|
+
import { InfoIcon as M } from "./icons/info.js";
|
|
31
|
+
import { WarningIcon as N } from "./icons/warning.js";
|
|
32
|
+
import { ErrorIcon as P } from "./icons/error.js";
|
|
33
|
+
import { SuccessIcon as F } from "./icons/success.js";
|
|
34
|
+
import { CalendarIcon as I } from "./icons/calendar.js";
|
|
35
|
+
import { ClockIcon as L } from "./icons/clock.js";
|
|
36
|
+
import { UserIcon as R } from "./icons/user.js";
|
|
37
|
+
import { UsersIcon as z } from "./icons/users.js";
|
|
38
|
+
import { HomeIcon as B } from "./icons/home.js";
|
|
39
|
+
import { InboxIcon as V } from "./icons/inbox.js";
|
|
40
|
+
import { NotificationsIcon as H } from "./icons/notifications.js";
|
|
41
|
+
import { LockIcon as U } from "./icons/lock.js";
|
|
42
|
+
import { UnlockIcon as W } from "./icons/unlock.js";
|
|
43
|
+
import { VisibleIcon as G } from "./icons/visible.js";
|
|
44
|
+
import { HiddenIcon as K } from "./icons/hidden.js";
|
|
45
|
+
export { a as AddIcon, v as ArrowDownIcon, h as ArrowLeftIcon, g as ArrowRightIcon, _ as ArrowUpIcon, I as CalendarIcon, c as CheckIcon, d as ChevronDownIcon, p as ChevronLeftIcon, m as ChevronRightIcon, f as ChevronUpIcon, L as ClockIcon, s as CloseIcon, A as CopyIcon, E as DownloadIcon, r as DynamicIcon, O as EditIcon, P as ErrorIcon, j as ExternalLinkIcon, S as FilterIcon, K as HiddenIcon, B as HomeIcon, i as Icon, V as InboxIcon, M as InfoIcon, U as LockIcon, y as MenuIcon, b as MoreHorizontalIcon, x as MoreVerticalIcon, H as NotificationsIcon, T as RefreshIcon, o as RemoveIcon, u as SearchIcon, l as SettingsIcon, C as SortAscendingIcon, w as SortDescendingIcon, F as SuccessIcon, k as TrashIcon, W as UnlockIcon, D as UploadIcon, R as UserIcon, z as UsersIcon, G as VisibleIcon, N as WarningIcon, e as iconNames, t as iconRegistry, n as isIconName };
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
export type IconSetName = "radix" | "phosphor";
|
|
2
|
+
export declare const iconRegistry: Readonly<{
|
|
3
|
+
add: {
|
|
4
|
+
radix: string;
|
|
5
|
+
phosphor: string;
|
|
6
|
+
};
|
|
7
|
+
remove: {
|
|
8
|
+
radix: string;
|
|
9
|
+
phosphor: string;
|
|
10
|
+
};
|
|
11
|
+
close: {
|
|
12
|
+
radix: string;
|
|
13
|
+
phosphor: string;
|
|
14
|
+
};
|
|
15
|
+
check: {
|
|
16
|
+
radix: string;
|
|
17
|
+
phosphor: string;
|
|
18
|
+
};
|
|
19
|
+
settings: {
|
|
20
|
+
radix: string;
|
|
21
|
+
phosphor: string;
|
|
22
|
+
};
|
|
23
|
+
search: {
|
|
24
|
+
radix: string;
|
|
25
|
+
phosphor: string;
|
|
26
|
+
};
|
|
27
|
+
chevronDown: {
|
|
28
|
+
radix: string;
|
|
29
|
+
phosphor: string;
|
|
30
|
+
};
|
|
31
|
+
chevronUp: {
|
|
32
|
+
radix: string;
|
|
33
|
+
phosphor: string;
|
|
34
|
+
};
|
|
35
|
+
chevronLeft: {
|
|
36
|
+
radix: string;
|
|
37
|
+
phosphor: string;
|
|
38
|
+
};
|
|
39
|
+
chevronRight: {
|
|
40
|
+
radix: string;
|
|
41
|
+
phosphor: string;
|
|
42
|
+
};
|
|
43
|
+
arrowLeft: {
|
|
44
|
+
radix: string;
|
|
45
|
+
phosphor: string;
|
|
46
|
+
};
|
|
47
|
+
arrowRight: {
|
|
48
|
+
radix: string;
|
|
49
|
+
phosphor: string;
|
|
50
|
+
};
|
|
51
|
+
arrowUp: {
|
|
52
|
+
radix: string;
|
|
53
|
+
phosphor: string;
|
|
54
|
+
};
|
|
55
|
+
arrowDown: {
|
|
56
|
+
radix: string;
|
|
57
|
+
phosphor: string;
|
|
58
|
+
};
|
|
59
|
+
menu: {
|
|
60
|
+
radix: string;
|
|
61
|
+
phosphor: string;
|
|
62
|
+
};
|
|
63
|
+
moreHorizontal: {
|
|
64
|
+
radix: string;
|
|
65
|
+
phosphor: string;
|
|
66
|
+
};
|
|
67
|
+
moreVertical: {
|
|
68
|
+
radix: string;
|
|
69
|
+
phosphor: string;
|
|
70
|
+
};
|
|
71
|
+
filter: {
|
|
72
|
+
radix: string;
|
|
73
|
+
phosphor: string;
|
|
74
|
+
};
|
|
75
|
+
sortAscending: {
|
|
76
|
+
radix: string;
|
|
77
|
+
phosphor: string;
|
|
78
|
+
};
|
|
79
|
+
sortDescending: {
|
|
80
|
+
radix: string;
|
|
81
|
+
phosphor: string;
|
|
82
|
+
};
|
|
83
|
+
refresh: {
|
|
84
|
+
radix: string;
|
|
85
|
+
phosphor: string;
|
|
86
|
+
};
|
|
87
|
+
download: {
|
|
88
|
+
radix: string;
|
|
89
|
+
phosphor: string;
|
|
90
|
+
};
|
|
91
|
+
upload: {
|
|
92
|
+
radix: string;
|
|
93
|
+
phosphor: string;
|
|
94
|
+
};
|
|
95
|
+
edit: {
|
|
96
|
+
radix: string;
|
|
97
|
+
phosphor: string;
|
|
98
|
+
};
|
|
99
|
+
trash: {
|
|
100
|
+
radix: string;
|
|
101
|
+
phosphor: string;
|
|
102
|
+
};
|
|
103
|
+
copy: {
|
|
104
|
+
radix: string;
|
|
105
|
+
phosphor: string;
|
|
106
|
+
};
|
|
107
|
+
externalLink: {
|
|
108
|
+
radix: string;
|
|
109
|
+
phosphor: string;
|
|
110
|
+
};
|
|
111
|
+
info: {
|
|
112
|
+
radix: string;
|
|
113
|
+
phosphor: string;
|
|
114
|
+
};
|
|
115
|
+
warning: {
|
|
116
|
+
radix: string;
|
|
117
|
+
phosphor: string;
|
|
118
|
+
};
|
|
119
|
+
error: {
|
|
120
|
+
radix: string;
|
|
121
|
+
phosphor: string;
|
|
122
|
+
};
|
|
123
|
+
success: {
|
|
124
|
+
radix: string;
|
|
125
|
+
phosphor: string;
|
|
126
|
+
};
|
|
127
|
+
calendar: {
|
|
128
|
+
radix: string;
|
|
129
|
+
phosphor: string;
|
|
130
|
+
};
|
|
131
|
+
clock: {
|
|
132
|
+
radix: string;
|
|
133
|
+
phosphor: string;
|
|
134
|
+
};
|
|
135
|
+
user: {
|
|
136
|
+
radix: string;
|
|
137
|
+
phosphor: string;
|
|
138
|
+
};
|
|
139
|
+
users: {
|
|
140
|
+
radix: string;
|
|
141
|
+
phosphor: string;
|
|
142
|
+
};
|
|
143
|
+
home: {
|
|
144
|
+
radix: string;
|
|
145
|
+
phosphor: string;
|
|
146
|
+
};
|
|
147
|
+
inbox: {
|
|
148
|
+
radix: string;
|
|
149
|
+
phosphor: string;
|
|
150
|
+
};
|
|
151
|
+
notifications: {
|
|
152
|
+
radix: string;
|
|
153
|
+
phosphor: string;
|
|
154
|
+
};
|
|
155
|
+
lock: {
|
|
156
|
+
radix: string;
|
|
157
|
+
phosphor: string;
|
|
158
|
+
};
|
|
159
|
+
unlock: {
|
|
160
|
+
radix: string;
|
|
161
|
+
phosphor: string;
|
|
162
|
+
};
|
|
163
|
+
visible: {
|
|
164
|
+
radix: string;
|
|
165
|
+
phosphor: string;
|
|
166
|
+
};
|
|
167
|
+
hidden: {
|
|
168
|
+
radix: string;
|
|
169
|
+
phosphor: string;
|
|
170
|
+
};
|
|
171
|
+
}>;
|
|
172
|
+
export type IconName = keyof typeof iconRegistry;
|
|
173
|
+
export declare const iconNames: readonly IconName[];
|
|
174
|
+
export declare function isIconName(value: string): value is IconName;
|
package/dist/registry.js
ADDED
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
//#region src/registry.ts
|
|
2
|
+
var e = Object.freeze({
|
|
3
|
+
add: {
|
|
4
|
+
radix: "plus",
|
|
5
|
+
phosphor: "plus"
|
|
6
|
+
},
|
|
7
|
+
remove: {
|
|
8
|
+
radix: "minus",
|
|
9
|
+
phosphor: "minus"
|
|
10
|
+
},
|
|
11
|
+
close: {
|
|
12
|
+
radix: "cross-2",
|
|
13
|
+
phosphor: "x"
|
|
14
|
+
},
|
|
15
|
+
check: {
|
|
16
|
+
radix: "check",
|
|
17
|
+
phosphor: "check"
|
|
18
|
+
},
|
|
19
|
+
settings: {
|
|
20
|
+
radix: "gear",
|
|
21
|
+
phosphor: "gear-six"
|
|
22
|
+
},
|
|
23
|
+
search: {
|
|
24
|
+
radix: "magnifying-glass",
|
|
25
|
+
phosphor: "magnifying-glass"
|
|
26
|
+
},
|
|
27
|
+
chevronDown: {
|
|
28
|
+
radix: "chevron-down",
|
|
29
|
+
phosphor: "caret-down"
|
|
30
|
+
},
|
|
31
|
+
chevronUp: {
|
|
32
|
+
radix: "chevron-up",
|
|
33
|
+
phosphor: "caret-up"
|
|
34
|
+
},
|
|
35
|
+
chevronLeft: {
|
|
36
|
+
radix: "chevron-left",
|
|
37
|
+
phosphor: "caret-left"
|
|
38
|
+
},
|
|
39
|
+
chevronRight: {
|
|
40
|
+
radix: "chevron-right",
|
|
41
|
+
phosphor: "caret-right"
|
|
42
|
+
},
|
|
43
|
+
arrowLeft: {
|
|
44
|
+
radix: "arrow-left",
|
|
45
|
+
phosphor: "arrow-left"
|
|
46
|
+
},
|
|
47
|
+
arrowRight: {
|
|
48
|
+
radix: "arrow-right",
|
|
49
|
+
phosphor: "arrow-right"
|
|
50
|
+
},
|
|
51
|
+
arrowUp: {
|
|
52
|
+
radix: "arrow-up",
|
|
53
|
+
phosphor: "arrow-up"
|
|
54
|
+
},
|
|
55
|
+
arrowDown: {
|
|
56
|
+
radix: "arrow-down",
|
|
57
|
+
phosphor: "arrow-down"
|
|
58
|
+
},
|
|
59
|
+
menu: {
|
|
60
|
+
radix: "hamburger-menu",
|
|
61
|
+
phosphor: "list"
|
|
62
|
+
},
|
|
63
|
+
moreHorizontal: {
|
|
64
|
+
radix: "dots-horizontal",
|
|
65
|
+
phosphor: "dots-three"
|
|
66
|
+
},
|
|
67
|
+
moreVertical: {
|
|
68
|
+
radix: "dots-vertical",
|
|
69
|
+
phosphor: "dots-three-vertical"
|
|
70
|
+
},
|
|
71
|
+
filter: {
|
|
72
|
+
radix: "mixer-horizontal",
|
|
73
|
+
phosphor: "funnel"
|
|
74
|
+
},
|
|
75
|
+
sortAscending: {
|
|
76
|
+
radix: "arrow-up",
|
|
77
|
+
phosphor: "sort-ascending"
|
|
78
|
+
},
|
|
79
|
+
sortDescending: {
|
|
80
|
+
radix: "arrow-down",
|
|
81
|
+
phosphor: "sort-descending"
|
|
82
|
+
},
|
|
83
|
+
refresh: {
|
|
84
|
+
radix: "reload",
|
|
85
|
+
phosphor: "arrows-clockwise"
|
|
86
|
+
},
|
|
87
|
+
download: {
|
|
88
|
+
radix: "download",
|
|
89
|
+
phosphor: "download-simple"
|
|
90
|
+
},
|
|
91
|
+
upload: {
|
|
92
|
+
radix: "upload",
|
|
93
|
+
phosphor: "upload-simple"
|
|
94
|
+
},
|
|
95
|
+
edit: {
|
|
96
|
+
radix: "pencil-1",
|
|
97
|
+
phosphor: "pencil-simple"
|
|
98
|
+
},
|
|
99
|
+
trash: {
|
|
100
|
+
radix: "trash",
|
|
101
|
+
phosphor: "trash"
|
|
102
|
+
},
|
|
103
|
+
copy: {
|
|
104
|
+
radix: "copy",
|
|
105
|
+
phosphor: "copy"
|
|
106
|
+
},
|
|
107
|
+
externalLink: {
|
|
108
|
+
radix: "external-link",
|
|
109
|
+
phosphor: "arrow-square-out"
|
|
110
|
+
},
|
|
111
|
+
info: {
|
|
112
|
+
radix: "info-circled",
|
|
113
|
+
phosphor: "info"
|
|
114
|
+
},
|
|
115
|
+
warning: {
|
|
116
|
+
radix: "exclamation-triangle",
|
|
117
|
+
phosphor: "warning"
|
|
118
|
+
},
|
|
119
|
+
error: {
|
|
120
|
+
radix: "cross-circled",
|
|
121
|
+
phosphor: "x-circle"
|
|
122
|
+
},
|
|
123
|
+
success: {
|
|
124
|
+
radix: "check-circled",
|
|
125
|
+
phosphor: "check-circle"
|
|
126
|
+
},
|
|
127
|
+
calendar: {
|
|
128
|
+
radix: "calendar",
|
|
129
|
+
phosphor: "calendar-blank"
|
|
130
|
+
},
|
|
131
|
+
clock: {
|
|
132
|
+
radix: "clock",
|
|
133
|
+
phosphor: "clock"
|
|
134
|
+
},
|
|
135
|
+
user: {
|
|
136
|
+
radix: "person",
|
|
137
|
+
phosphor: "user"
|
|
138
|
+
},
|
|
139
|
+
users: {
|
|
140
|
+
radix: "group",
|
|
141
|
+
phosphor: "users"
|
|
142
|
+
},
|
|
143
|
+
home: {
|
|
144
|
+
radix: "home",
|
|
145
|
+
phosphor: "house"
|
|
146
|
+
},
|
|
147
|
+
inbox: {
|
|
148
|
+
radix: "envelope-closed",
|
|
149
|
+
phosphor: "envelope"
|
|
150
|
+
},
|
|
151
|
+
notifications: {
|
|
152
|
+
radix: "bell",
|
|
153
|
+
phosphor: "bell"
|
|
154
|
+
},
|
|
155
|
+
lock: {
|
|
156
|
+
radix: "lock-closed",
|
|
157
|
+
phosphor: "lock"
|
|
158
|
+
},
|
|
159
|
+
unlock: {
|
|
160
|
+
radix: "lock-open-1",
|
|
161
|
+
phosphor: "lock-open"
|
|
162
|
+
},
|
|
163
|
+
visible: {
|
|
164
|
+
radix: "eye-open",
|
|
165
|
+
phosphor: "eye"
|
|
166
|
+
},
|
|
167
|
+
hidden: {
|
|
168
|
+
radix: "eye-closed",
|
|
169
|
+
phosphor: "eye-slash"
|
|
170
|
+
}
|
|
171
|
+
}), t = Object.freeze(Object.keys(e).filter(n));
|
|
172
|
+
function n(t) {
|
|
173
|
+
return Object.hasOwn(e, t);
|
|
174
|
+
}
|
|
175
|
+
//#endregion
|
|
176
|
+
export { t as iconNames, e as iconRegistry, n as isIconName };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { Component, JSX } from "solid-js";
|
|
2
|
+
import type { IconName, IconSetName } from "./registry.ts";
|
|
3
|
+
export interface IconData {
|
|
4
|
+
readonly set: IconSetName;
|
|
5
|
+
readonly body: string;
|
|
6
|
+
readonly width: number;
|
|
7
|
+
readonly height: number;
|
|
8
|
+
}
|
|
9
|
+
interface IconVisualProps extends Pick<JSX.HTMLAttributes<HTMLSpanElement>, "id" | "class" | "style"> {
|
|
10
|
+
readonly size?: "sm" | "md" | "lg";
|
|
11
|
+
readonly tone?: "muted" | "inherit";
|
|
12
|
+
}
|
|
13
|
+
export interface StaticIconProps extends IconVisualProps {
|
|
14
|
+
/** Defaults to true. Meaningful icons set false and require label at runtime and through the recommended lint rule. */
|
|
15
|
+
readonly decorative?: boolean;
|
|
16
|
+
readonly label?: string;
|
|
17
|
+
}
|
|
18
|
+
export type IconProps = StaticIconProps & {
|
|
19
|
+
readonly name: IconName;
|
|
20
|
+
};
|
|
21
|
+
export type DynamicIconProps = StaticIconProps & {
|
|
22
|
+
readonly name: string;
|
|
23
|
+
};
|
|
24
|
+
export declare function createStaticIcon(name: IconName, icons: readonly IconData[]): Component<StaticIconProps>;
|
|
25
|
+
/** Marker transformed by sheenIcons(). Use DynamicIcon only for genuinely runtime names. */
|
|
26
|
+
export declare function Icon(props: IconProps): JSX.Element;
|
|
27
|
+
/** Explicit full-registry path for names that cannot be statically analyzed. */
|
|
28
|
+
export declare function DynamicIcon(props: DynamicIconProps): JSX.Element;
|
|
29
|
+
export {};
|
package/dist/runtime.js
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { iconData as e } from "./generated/catalog.js";
|
|
2
|
+
import { isIconName as t } from "./registry.js";
|
|
3
|
+
import { createComponent as n, effect as r, insert as i, mergeProps as a, setAttribute as o, spread as s, template as c } from "solid-js/web";
|
|
4
|
+
import { For as l, createMemo as u, splitProps as d } from "solid-js";
|
|
5
|
+
//#region src/runtime.tsx
|
|
6
|
+
var f = /*#__PURE__*/ c("<span>"), p = /*#__PURE__*/ c("<svg xmlns=http://www.w3.org/2000/svg aria-hidden=true>");
|
|
7
|
+
function m(e) {
|
|
8
|
+
let [t, c] = d(e, [
|
|
9
|
+
"name",
|
|
10
|
+
"icons",
|
|
11
|
+
"size",
|
|
12
|
+
"tone",
|
|
13
|
+
"decorative",
|
|
14
|
+
"label",
|
|
15
|
+
"class"
|
|
16
|
+
]), m = u(() => {
|
|
17
|
+
let e = t.label?.trim();
|
|
18
|
+
if (t.decorative === !1 && !e) throw Error(`${t.name} icon requires a nonempty label when decorative=false`);
|
|
19
|
+
return t.decorative === !1 ? {
|
|
20
|
+
label: e,
|
|
21
|
+
hidden: void 0,
|
|
22
|
+
role: "img"
|
|
23
|
+
} : {
|
|
24
|
+
label: void 0,
|
|
25
|
+
hidden: "true",
|
|
26
|
+
role: void 0
|
|
27
|
+
};
|
|
28
|
+
});
|
|
29
|
+
return (() => {
|
|
30
|
+
var e = f();
|
|
31
|
+
return s(e, a(c, {
|
|
32
|
+
get class() {
|
|
33
|
+
return `sheen-icon${t.class ? ` ${t.class}` : ""}`;
|
|
34
|
+
},
|
|
35
|
+
get "data-sheen-icon"() {
|
|
36
|
+
return t.name;
|
|
37
|
+
},
|
|
38
|
+
get "data-size"() {
|
|
39
|
+
return t.size ?? "md";
|
|
40
|
+
},
|
|
41
|
+
get "data-tone"() {
|
|
42
|
+
return t.tone ?? "muted";
|
|
43
|
+
},
|
|
44
|
+
get role() {
|
|
45
|
+
return m().role;
|
|
46
|
+
},
|
|
47
|
+
get "aria-label"() {
|
|
48
|
+
return m().label;
|
|
49
|
+
},
|
|
50
|
+
get "aria-hidden"() {
|
|
51
|
+
return m().hidden;
|
|
52
|
+
}
|
|
53
|
+
}), !1, !0), i(e, n(l, {
|
|
54
|
+
get each() {
|
|
55
|
+
return t.icons;
|
|
56
|
+
},
|
|
57
|
+
children: (e, t) => (() => {
|
|
58
|
+
var n = p();
|
|
59
|
+
return r((r) => {
|
|
60
|
+
var i = `0 0 ${e.width} ${e.height}`, a = e.set, s = t() === 0 || void 0, c = e.body;
|
|
61
|
+
return i !== r.e && o(n, "viewBox", r.e = i), a !== r.t && o(n, "data-sheen-icon-set-value", r.t = a), s !== r.a && o(n, "data-sheen-icon-default", r.a = s), c !== r.o && (n.innerHTML = r.o = c), r;
|
|
62
|
+
}, {
|
|
63
|
+
e: void 0,
|
|
64
|
+
t: void 0,
|
|
65
|
+
a: void 0,
|
|
66
|
+
o: void 0
|
|
67
|
+
}), n;
|
|
68
|
+
})()
|
|
69
|
+
})), e;
|
|
70
|
+
})();
|
|
71
|
+
}
|
|
72
|
+
function h(e, t) {
|
|
73
|
+
if (!t.length || new Set(t.map((e) => e.set)).size !== t.length) throw Error(`${e} icon requires one unique entry per bundled set`);
|
|
74
|
+
return function(r) {
|
|
75
|
+
return n(m, a(r, {
|
|
76
|
+
name: e,
|
|
77
|
+
icons: t
|
|
78
|
+
}));
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
function g(e) {
|
|
82
|
+
throw Error("Icon requires the sheenIcons Vite plugin; use a per-icon export in other build systems or DynamicIcon for runtime names");
|
|
83
|
+
}
|
|
84
|
+
function _(r) {
|
|
85
|
+
let i = r.name;
|
|
86
|
+
if (!t(i)) throw Error(`Unknown semantic icon: ${i}`);
|
|
87
|
+
let [, o] = d(r, ["name"]);
|
|
88
|
+
return n(m, a(o, {
|
|
89
|
+
name: i,
|
|
90
|
+
get icons() {
|
|
91
|
+
return e[i];
|
|
92
|
+
}
|
|
93
|
+
}));
|
|
94
|
+
}
|
|
95
|
+
//#endregion
|
|
96
|
+
export { _ as DynamicIcon, g as Icon, h as createStaticIcon };
|
package/dist/vite.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Plugin } from "vite";
|
|
2
|
+
import type { IconSetName } from "./registry.ts";
|
|
3
|
+
export interface SheenIconsOptions {
|
|
4
|
+
/** Sets included by transformed literal icons. First entry is the fallback when no theme attribute is present. */
|
|
5
|
+
readonly sets?: readonly IconSetName[];
|
|
6
|
+
/** Module specifiers from which the Icon marker may be imported. */
|
|
7
|
+
readonly imports?: readonly string[];
|
|
8
|
+
}
|
|
9
|
+
export declare function sheenIcons(options?: SheenIconsOptions): Plugin;
|