@flipdish/portal-library 4.2.6 → 4.2.7

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 (2) hide show
  1. package/README.md +19 -1
  2. package/package.json +5 -5
package/README.md CHANGED
@@ -14,4 +14,22 @@ npm install @flipdish/portal-library
14
14
 
15
15
  # Using pnpm
16
16
  pnpm add @flipdish/portal-library
17
- ```
17
+ ```
18
+
19
+ ## Using Icons
20
+
21
+ To use an icon in your project, import the icon and use it like any other component. You can specify the size using the `size` prop.
22
+
23
+ ```typescript
24
+ import CancelIcon from "@flipdish/portal-library/icons/Cancel"
25
+
26
+ const IconExample = () => {
27
+ return (
28
+ <div>
29
+ <CancelIcon size="md" />
30
+ </div>
31
+ );
32
+ };
33
+ ```
34
+
35
+ You can find the current list of provided icons at https://flipdishbytes.github.io/flipdish-ui/?path=/docs/ui-icons--docs
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flipdish/portal-library",
3
- "version": "4.2.6",
3
+ "version": "4.2.7",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -31,9 +31,9 @@
31
31
  "node": "./dist/themes/*.cjs.js"
32
32
  },
33
33
  "./icons/*": {
34
- "types": "./dist/icons/*.d.ts",
35
- "import": "./dist/icons/*.js",
36
- "node": "./dist/icons/*.cjs.js"
34
+ "types": "./dist/icons/*.index.d.ts",
35
+ "import": "./dist/icons/*.index.js",
36
+ "node": "./dist/icons/*.index.cjs.js"
37
37
  }
38
38
  },
39
39
  "peerDependencies": {
@@ -80,7 +80,7 @@
80
80
  "@storybook/test": "^8.6.7",
81
81
  "@svgr/rollup": "^8.1.0",
82
82
  "@tanstack/react-query": "^5.62.0",
83
- "@testing-library/jest-dom": "6.6.3",
83
+ "@testing-library/jest-dom": "6.6.4",
84
84
  "@testing-library/react": "15.0.7",
85
85
  "@types/lodash.debounce": "^4.0.9",
86
86
  "@types/react": "18.3.23",