@edux-design/icons 0.0.3 → 0.0.5
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/README.md +58 -0
- package/dist/index.d.mts +15 -1
- package/dist/index.d.ts +15 -1
- package/dist/index.js +312 -149
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +306 -150
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/24/arrow.svg +4 -0
- package/src/24/draghandle.svg +1 -0
- package/src/24/list.svg +1 -0
- package/src/24/listordered.svg +1 -0
- package/src/24/sigma.svg +1 -0
- package/src/24/switch.svg +4 -0
- package/src/24/table.svg +1 -0
package/README.md
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# @edux-design/icons
|
|
2
|
+
|
|
3
|
+
SVG icon set for the Edux design system. Every icon is a small React component that accepts standard SVG props (`className`, `width`, `height`, etc.) and inherits `currentColor` so you can tint it with CSS/Tailwind utilities.
|
|
4
|
+
|
|
5
|
+
Exports include `Chevron`, `Close`, `Searchglass`, `Users`, `Warning`, and dozens more – see `src/index.ts` for the full list.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Installation
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
pnpm add @edux-design/icons
|
|
13
|
+
# or
|
|
14
|
+
npm install @edux-design/icons
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Peer deps: `react@^19.1.0`.
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## Usage
|
|
22
|
+
|
|
23
|
+
```jsx
|
|
24
|
+
import { Close, Searchglass } from "@edux-design/icons";
|
|
25
|
+
|
|
26
|
+
export function SearchButton() {
|
|
27
|
+
return (
|
|
28
|
+
<button className="inline-flex items-center gap-2 text-fg-primary-emphasis">
|
|
29
|
+
<Searchglass className="h-4 w-4" />
|
|
30
|
+
Search
|
|
31
|
+
<Close aria-hidden className="ml-2 h-3 w-3 opacity-60" />
|
|
32
|
+
</button>
|
|
33
|
+
);
|
|
34
|
+
}
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Icons default to `24px` and `fill="currentColor"`. Override via props when you need custom sizing.
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
## Adding/Updating Icons
|
|
42
|
+
|
|
43
|
+
1. Drop the SVG into `src/components/YourIcon.tsx`. Follow the existing pattern (functional component returning an `<svg>`).
|
|
44
|
+
2. Export it from `src/index.ts`.
|
|
45
|
+
3. Run `pnpm --filter @edux-design/icons lint && pnpm --filter @edux-design/icons build`.
|
|
46
|
+
4. Bump the package version + changelog if publishing.
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
## Scripts
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
pnpm --filter @edux-design/icons lint
|
|
54
|
+
pnpm --filter @edux-design/icons build
|
|
55
|
+
pnpm --filter @edux-design/icons check-types
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
Because the icons are plain components, they tree-shake automatically—import only what you need to keep bundles small.
|
package/dist/index.d.mts
CHANGED
|
@@ -3,6 +3,8 @@ import { SVGProps } from 'react';
|
|
|
3
3
|
|
|
4
4
|
declare const SvgAddimage: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
5
5
|
|
|
6
|
+
declare const SvgArrow: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
7
|
+
|
|
6
8
|
declare const SvgBoldtext: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
7
9
|
|
|
8
10
|
declare const SvgBook: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
@@ -21,6 +23,8 @@ declare const SvgCollapse: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime
|
|
|
21
23
|
|
|
22
24
|
declare const SvgCopy: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
23
25
|
|
|
26
|
+
declare const SvgDraghandle: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
27
|
+
|
|
24
28
|
declare const SvgError: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
25
29
|
|
|
26
30
|
declare const SvgExternal: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
@@ -57,6 +61,10 @@ declare const SvgItalicstext: (props: SVGProps<SVGSVGElement>) => react_jsx_runt
|
|
|
57
61
|
|
|
58
62
|
declare const SvgLast: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
59
63
|
|
|
64
|
+
declare const SvgList: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
65
|
+
|
|
66
|
+
declare const SvgListordered: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
67
|
+
|
|
60
68
|
declare const SvgNext: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
61
69
|
|
|
62
70
|
declare const SvgPersonAvatar: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
@@ -75,10 +83,16 @@ declare const SvgSeries: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.J
|
|
|
75
83
|
|
|
76
84
|
declare const SvgSettings: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
77
85
|
|
|
86
|
+
declare const SvgSigma: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
87
|
+
|
|
78
88
|
declare const SvgSuccess: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
79
89
|
|
|
80
90
|
declare const SvgSwaporder: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
81
91
|
|
|
92
|
+
declare const SvgSwitch: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
93
|
+
|
|
94
|
+
declare const SvgTable: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
95
|
+
|
|
82
96
|
declare const SvgTextAlignCenter: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
83
97
|
|
|
84
98
|
declare const SvgTextAlignEnd: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
@@ -97,4 +111,4 @@ declare const SvgUsers: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JS
|
|
|
97
111
|
|
|
98
112
|
declare const SvgWarning: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
99
113
|
|
|
100
|
-
export { SvgAddimage as Addimage, SvgBoldtext as Boldtext, SvgBook as Book, SvgCheck as Check, SvgChevron as Chevron, SvgClass as Class, SvgClose as Close, SvgCode as Code, SvgCollapse as Collapse, SvgCopy as Copy, SvgError as Error, SvgExternal as External, SvgEye as Eye, SvgEyehide as Eyehide, SvgFirst as First, SvgGologo as Gologo, SvgHamburger as Hamburger, SvgHeadingtext as Headingtext, SvgHeadingtext1 as Headingtext1, SvgHeadingtext2 as Headingtext2, SvgHeadingtext3 as Headingtext3, SvgHeadingtext4 as Headingtext4, SvgHeadingtext5 as Headingtext5, SvgHeadingtext6 as Headingtext6, SvgIndeterminate as Indeterminate, SvgInfo as Info, SvgItalicstext as Italicstext, SvgLast as Last, SvgNext as Next, SvgPersonAvatar as PersonAvatar, SvgPlus as Plus, SvgPrevious as Previous, SvgProduct as Product, SvgRedo as Redo, SvgSearchglass as Searchglass, SvgSeries as Series, SvgSettings as Settings, SvgSuccess as Success, SvgSwaporder as Swaporder, SvgTextAlignCenter as TextAlignCenter, SvgTextAlignEnd as TextAlignEnd, SvgTextAlignJustify as TextAlignJustify, SvgTextAlignStart as TextAlignStart, SvgUnderlinetext as Underlinetext, SvgUndo as Undo, SvgUnknown as Unknown, SvgUsers as Users, SvgWarning as Warning };
|
|
114
|
+
export { SvgAddimage as Addimage, SvgArrow as Arrow, SvgBoldtext as Boldtext, SvgBook as Book, SvgCheck as Check, SvgChevron as Chevron, SvgClass as Class, SvgClose as Close, SvgCode as Code, SvgCollapse as Collapse, SvgCopy as Copy, SvgDraghandle as Draghandle, SvgError as Error, SvgExternal as External, SvgEye as Eye, SvgEyehide as Eyehide, SvgFirst as First, SvgGologo as Gologo, SvgHamburger as Hamburger, SvgHeadingtext as Headingtext, SvgHeadingtext1 as Headingtext1, SvgHeadingtext2 as Headingtext2, SvgHeadingtext3 as Headingtext3, SvgHeadingtext4 as Headingtext4, SvgHeadingtext5 as Headingtext5, SvgHeadingtext6 as Headingtext6, SvgIndeterminate as Indeterminate, SvgInfo as Info, SvgItalicstext as Italicstext, SvgLast as Last, SvgList as List, SvgListordered as Listordered, SvgNext as Next, SvgPersonAvatar as PersonAvatar, SvgPlus as Plus, SvgPrevious as Previous, SvgProduct as Product, SvgRedo as Redo, SvgSearchglass as Searchglass, SvgSeries as Series, SvgSettings as Settings, SvgSigma as Sigma, SvgSuccess as Success, SvgSwaporder as Swaporder, SvgSwitch as Switch, SvgTable as Table, SvgTextAlignCenter as TextAlignCenter, SvgTextAlignEnd as TextAlignEnd, SvgTextAlignJustify as TextAlignJustify, SvgTextAlignStart as TextAlignStart, SvgUnderlinetext as Underlinetext, SvgUndo as Undo, SvgUnknown as Unknown, SvgUsers as Users, SvgWarning as Warning };
|
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,8 @@ import { SVGProps } from 'react';
|
|
|
3
3
|
|
|
4
4
|
declare const SvgAddimage: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
5
5
|
|
|
6
|
+
declare const SvgArrow: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
7
|
+
|
|
6
8
|
declare const SvgBoldtext: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
7
9
|
|
|
8
10
|
declare const SvgBook: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
@@ -21,6 +23,8 @@ declare const SvgCollapse: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime
|
|
|
21
23
|
|
|
22
24
|
declare const SvgCopy: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
23
25
|
|
|
26
|
+
declare const SvgDraghandle: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
27
|
+
|
|
24
28
|
declare const SvgError: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
25
29
|
|
|
26
30
|
declare const SvgExternal: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
@@ -57,6 +61,10 @@ declare const SvgItalicstext: (props: SVGProps<SVGSVGElement>) => react_jsx_runt
|
|
|
57
61
|
|
|
58
62
|
declare const SvgLast: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
59
63
|
|
|
64
|
+
declare const SvgList: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
65
|
+
|
|
66
|
+
declare const SvgListordered: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
67
|
+
|
|
60
68
|
declare const SvgNext: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
61
69
|
|
|
62
70
|
declare const SvgPersonAvatar: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
@@ -75,10 +83,16 @@ declare const SvgSeries: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.J
|
|
|
75
83
|
|
|
76
84
|
declare const SvgSettings: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
77
85
|
|
|
86
|
+
declare const SvgSigma: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
87
|
+
|
|
78
88
|
declare const SvgSuccess: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
79
89
|
|
|
80
90
|
declare const SvgSwaporder: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
81
91
|
|
|
92
|
+
declare const SvgSwitch: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
93
|
+
|
|
94
|
+
declare const SvgTable: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
95
|
+
|
|
82
96
|
declare const SvgTextAlignCenter: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
83
97
|
|
|
84
98
|
declare const SvgTextAlignEnd: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
@@ -97,4 +111,4 @@ declare const SvgUsers: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JS
|
|
|
97
111
|
|
|
98
112
|
declare const SvgWarning: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
99
113
|
|
|
100
|
-
export { SvgAddimage as Addimage, SvgBoldtext as Boldtext, SvgBook as Book, SvgCheck as Check, SvgChevron as Chevron, SvgClass as Class, SvgClose as Close, SvgCode as Code, SvgCollapse as Collapse, SvgCopy as Copy, SvgError as Error, SvgExternal as External, SvgEye as Eye, SvgEyehide as Eyehide, SvgFirst as First, SvgGologo as Gologo, SvgHamburger as Hamburger, SvgHeadingtext as Headingtext, SvgHeadingtext1 as Headingtext1, SvgHeadingtext2 as Headingtext2, SvgHeadingtext3 as Headingtext3, SvgHeadingtext4 as Headingtext4, SvgHeadingtext5 as Headingtext5, SvgHeadingtext6 as Headingtext6, SvgIndeterminate as Indeterminate, SvgInfo as Info, SvgItalicstext as Italicstext, SvgLast as Last, SvgNext as Next, SvgPersonAvatar as PersonAvatar, SvgPlus as Plus, SvgPrevious as Previous, SvgProduct as Product, SvgRedo as Redo, SvgSearchglass as Searchglass, SvgSeries as Series, SvgSettings as Settings, SvgSuccess as Success, SvgSwaporder as Swaporder, SvgTextAlignCenter as TextAlignCenter, SvgTextAlignEnd as TextAlignEnd, SvgTextAlignJustify as TextAlignJustify, SvgTextAlignStart as TextAlignStart, SvgUnderlinetext as Underlinetext, SvgUndo as Undo, SvgUnknown as Unknown, SvgUsers as Users, SvgWarning as Warning };
|
|
114
|
+
export { SvgAddimage as Addimage, SvgArrow as Arrow, SvgBoldtext as Boldtext, SvgBook as Book, SvgCheck as Check, SvgChevron as Chevron, SvgClass as Class, SvgClose as Close, SvgCode as Code, SvgCollapse as Collapse, SvgCopy as Copy, SvgDraghandle as Draghandle, SvgError as Error, SvgExternal as External, SvgEye as Eye, SvgEyehide as Eyehide, SvgFirst as First, SvgGologo as Gologo, SvgHamburger as Hamburger, SvgHeadingtext as Headingtext, SvgHeadingtext1 as Headingtext1, SvgHeadingtext2 as Headingtext2, SvgHeadingtext3 as Headingtext3, SvgHeadingtext4 as Headingtext4, SvgHeadingtext5 as Headingtext5, SvgHeadingtext6 as Headingtext6, SvgIndeterminate as Indeterminate, SvgInfo as Info, SvgItalicstext as Italicstext, SvgLast as Last, SvgList as List, SvgListordered as Listordered, SvgNext as Next, SvgPersonAvatar as PersonAvatar, SvgPlus as Plus, SvgPrevious as Previous, SvgProduct as Product, SvgRedo as Redo, SvgSearchglass as Searchglass, SvgSeries as Series, SvgSettings as Settings, SvgSigma as Sigma, SvgSuccess as Success, SvgSwaporder as Swaporder, SvgSwitch as Switch, SvgTable as Table, SvgTextAlignCenter as TextAlignCenter, SvgTextAlignEnd as TextAlignEnd, SvgTextAlignJustify as TextAlignJustify, SvgTextAlignStart as TextAlignStart, SvgUnderlinetext as Underlinetext, SvgUndo as Undo, SvgUnknown as Unknown, SvgUsers as Users, SvgWarning as Warning };
|