@startupjs-ui/docs 0.1.17 → 0.1.19

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 CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.1.19](https://github.com/startupjs/startupjs-ui/compare/v0.1.18...v0.1.19) (2026-03-17)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **docs:** don't load all icons to keep bundle small ([#17](https://github.com/startupjs/startupjs-ui/issues/17)) ([d7eb70b](https://github.com/startupjs/startupjs-ui/commit/d7eb70bc11f5b15923f2e43b7ef1f86ea066494e))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [0.1.17](https://github.com/startupjs/startupjs-ui/compare/v0.1.16...v0.1.17) (2026-02-12)
7
18
 
8
19
  **Note:** Version bump only for package @startupjs-ui/docs
@@ -7,19 +7,24 @@ import debounce from 'lodash/debounce'
7
7
  import isPlainObject from 'lodash/isPlainObject'
8
8
  import keys from 'lodash/keys'
9
9
  import omit from 'lodash/omit'
10
- // TODO: IMPORTANT! Refactor this to NOT import all icons
11
- // since it HUGELY bloats the bundle size
12
- import * as icons from '@fortawesome/free-solid-svg-icons'
10
+ import { faHouseUser } from '@fortawesome/free-solid-svg-icons/faHouseUser'
11
+ import { faCheck } from '@fortawesome/free-solid-svg-icons/faCheck'
12
+ import { faCoffee } from '@fortawesome/free-solid-svg-icons/faCoffee'
13
13
  import '../index.styl'
14
14
 
15
15
  const EDITABLE_TYPES = ['string', 'number', 'boolean', 'oneOf', 'array', 'object']
16
+ const DEMO_ICONS = {
17
+ faHouseUser,
18
+ faCheck,
19
+ faCoffee
20
+ }
16
21
 
17
22
  const IconSelect = observer(function ({ $value, value }) {
18
23
  const _icons = useMemo(
19
24
  () =>
20
- keys(omit(icons, ['fas', 'prefix'])).map(key => ({
25
+ keys(omit(DEMO_ICONS, ['fas', 'prefix'])).map(key => ({
21
26
  label: key,
22
- value: icons[key]
27
+ value: DEMO_ICONS[key]
23
28
  })),
24
29
  []
25
30
  )
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@startupjs-ui/docs",
3
3
  "description": "MDX documentation generator",
4
- "version": "0.1.17",
4
+ "version": "0.1.19",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -9,15 +9,15 @@
9
9
  "main": "index.js",
10
10
  "dependencies": {
11
11
  "@fortawesome/free-solid-svg-icons": "^7.1.0",
12
- "@startupjs-ui/alert": "^0.1.16",
13
- "@startupjs-ui/br": "^0.1.16",
14
- "@startupjs-ui/button": "^0.1.16",
15
- "@startupjs-ui/core": "^0.1.11",
16
- "@startupjs-ui/div": "^0.1.16",
17
- "@startupjs-ui/input": "^0.1.17",
18
- "@startupjs-ui/scroll-view": "^0.1.16",
19
- "@startupjs-ui/span": "^0.1.16",
20
- "@startupjs-ui/tag": "^0.1.16",
12
+ "@startupjs-ui/alert": "^0.1.19",
13
+ "@startupjs-ui/br": "^0.1.19",
14
+ "@startupjs-ui/button": "^0.1.19",
15
+ "@startupjs-ui/core": "^0.1.19",
16
+ "@startupjs-ui/div": "^0.1.19",
17
+ "@startupjs-ui/input": "^0.1.19",
18
+ "@startupjs-ui/scroll-view": "^0.1.19",
19
+ "@startupjs-ui/span": "^0.1.19",
20
+ "@startupjs-ui/tag": "^0.1.19",
21
21
  "lodash": "^4.17.20"
22
22
  },
23
23
  "peerDependencies": {
@@ -25,5 +25,5 @@
25
25
  "react-native": "*",
26
26
  "startupjs": "*"
27
27
  },
28
- "gitHead": "902cb7536d017b53dc268cc54e8e54818279744c"
28
+ "gitHead": "bfcca786dc363f42a09b6eef4feb7ca8139302fc"
29
29
  }