Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge develop to main to prep for release #76

Merged
merged 160 commits into from
Oct 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
160 commits
Select commit Hold shift + click to select a range
e707c68
Use Typography in Header
eddiesarevalo Jun 18, 2024
a5e489f
Merge branch 'develop' into typgraphy-in-header
eddiesarevalo Jun 18, 2024
b185901
Merge pull request #31 from NASA-PDS/typography-in-header
anilnatha Jun 20, 2024
3210288
Add Header Responsiveness
eddiesarevalo Jun 26, 2024
b3617d2
Add Navbar Submenu Titles
eddiesarevalo Jun 26, 2024
b41debe
Remove Explore-Pds Link
eddiesarevalo Jun 27, 2024
d576334
Update Header Responsiveness #32
eddiesarevalo Jul 21, 2024
1e464b7
Added missing semicolon to resolve build issue.
anilnatha Jul 24, 2024
dfe4928
Removed node-sass from packages due to installation error.
anilnatha Jul 24, 2024
20868e2
Updated .nvmrc to use "lts/iron" so that when we run npm link locally…
anilnatha Jul 24, 2024
96380ee
Integrated generic Loader component with default material ui styling.
anilnatha Jul 25, 2024
4464561
Removed "@use" command in Typography.scss to resolve issue when build…
anilnatha Jul 25, 2024
bcec5a3
Added @types/minimist and vitest packages. Removed node-sass package …
anilnatha Jul 25, 2024
8f307a2
Removed vitest package, we shouldn't be using this package anymore, w…
anilnatha Jul 25, 2024
10af797
Merge pull request #36 from NASA-PDS/features/create-loader-component
anilnatha Jul 25, 2024
3983914
Update Header Styles #32
eddiesarevalo Jul 25, 2024
1181b2d
Merge branch 'develop' into header-responsive
eddiesarevalo Jul 25, 2024
f9e3ec8
Brought in contents of package-lock.json from develop branch to resol…
anilnatha Jul 25, 2024
743d75b
Make SemiBold Small Menu Parent Item #32
eddiesarevalo Jul 29, 2024
c6d416f
Merge pull request #32 from NASA-PDS/header-responsive
anilnatha Jul 29, 2024
6b2e052
Corrected "npm run install" commands with "npm clean-install".
anilnatha Jul 30, 2024
d24496d
Clarified some of the descriptive material in the readme.
anilnatha Jul 30, 2024
f04216b
Fixed reference links and updated text.
anilnatha Jul 31, 2024
1895dab
Titlebar Minor Styling Fixes.
eddiesarevalo Aug 2, 2024
b86128f
Added additional information to clarify important details, and also a…
anilnatha Aug 2, 2024
19ca96d
Removed extraneous bullet item from README.
anilnatha Aug 2, 2024
93d7edf
Added information about nvm.
anilnatha Aug 2, 2024
167cc9e
Fixed typo.
anilnatha Aug 2, 2024
04e281a
Merge pull request #41 from NASA-PDS/features/update-readme
anilnatha Aug 5, 2024
4bbd3fb
Bump the npm_and_yarn group across 1 directory with 6 updates
dependabot[bot] Aug 5, 2024
b2206d3
Fixed Titlebar Alignments Md + Sm #40
eddiesarevalo Aug 5, 2024
24b0a26
Merge pull request #40 from NASA-PDS/header-responsive-fixes
anilnatha Aug 5, 2024
c962a8e
Merge pull request #42 from NASA-PDS/dependabot/npm_and_yarn/npm_and_…
anilnatha Aug 5, 2024
dae6e21
Updated type definition for NavItems property for header component to…
anilnatha Aug 7, 2024
3abf040
Set NavItems type definition to be exported.
anilnatha Aug 7, 2024
4c2b3e4
Updated icon build command options so that it doesn't add react impor…
anilnatha Aug 7, 2024
52c6a39
Executed the updated build-icons command so that the unused react imp…
anilnatha Aug 7, 2024
e177b12
Removed icons that are not being referenced. The ArrowForward icon is…
anilnatha Aug 7, 2024
295eb03
Updated the Omit utility declaration to include "titleLink" when defi…
anilnatha Aug 7, 2024
bfb114a
Add Button CTA Component
eddiesarevalo Aug 7, 2024
9c78bfe
Update TextField Styles
eddiesarevalo Aug 7, 2024
b8bbead
Merge branch 'develop' into search-page-components
eddiesarevalo Aug 7, 2024
7b26331
Simplified Loader component return statements to resolve issues being…
anilnatha Aug 8, 2024
c302eb4
Simplified how Loader component variants are handled by inspecting if…
anilnatha Aug 8, 2024
a841169
Merge pull request #50 from NASA-PDS/bugs/issue49-loader-component
anilnatha Aug 13, 2024
23b20de
Merge pull request #48 from NASA-PDS/bugs/issue47-navbar-linting-issue
anilnatha Aug 13, 2024
3097f62
Merge pull request #46 from NASA-PDS/bugs/issue45-unused-import-react
anilnatha Aug 13, 2024
9a0c2ab
Merge pull request #44 from NASA-PDS/bugs/issue43-header-navitems-type
anilnatha Aug 13, 2024
b18f260
Fixed error regarding invalid data being passed when needing to gener…
anilnatha Aug 19, 2024
9b2809a
Merge pull request #53 from NASA-PDS/bugs/issue52-fix-build-icons-error
anilnatha Aug 19, 2024
c89b139
Added initial skeleton for the FeaturedLink component.
anilnatha Aug 20, 2024
715b4d6
Added support for variant details for the new FeaturedLink component.…
anilnatha Aug 22, 2024
35732c5
Updated list of FeaturedLinkVariants.
anilnatha Aug 22, 2024
2bf5f52
Renamed FeaturedLinkVariant to FeaturedLinkDetailsVariant.
anilnatha Aug 22, 2024
c8798ab
Added ability to render tags for FeaturedLinkDetails.
anilnatha Aug 22, 2024
73c895e
Adjusted spacing of details.
anilnatha Aug 22, 2024
1a169d4
Added Target FeaturedLinkDetails type. Also moved tags DetailRow outs…
anilnatha Aug 22, 2024
58faa78
Added DataBundle detail type for FeaturedLink.
anilnatha Aug 22, 2024
3171330
Added Data Collection details variant for Featured Link Details.
anilnatha Aug 22, 2024
0ba6bbb
Added Data Set details variant for Featured Link Details.
anilnatha Aug 22, 2024
ef9932b
Added Tool variant for Featured Link Details component.
anilnatha Aug 22, 2024
5349ae5
Fixed alignment related issues.
anilnatha Aug 22, 2024
f13e30a
Added ability to dynamically add columns to FeaturedLink component.
anilnatha Aug 22, 2024
17c5dca
Fixed alignment related issues in FeaturedLink component.
anilnatha Aug 23, 2024
632d09a
Update Chip Styles
eddiesarevalo Aug 26, 2024
e477004
Merge branch 'features/54-create-featured-link-component' into search…
eddiesarevalo Aug 26, 2024
ed54367
Added ability to inject links that use react router for the title and…
anilnatha Aug 27, 2024
83b9284
Added FeatredLink and FeaturedLinkDetails components to the list of e…
anilnatha Aug 27, 2024
177cd8d
Merge branch 'features/54-create-featured-link-component' into search…
eddiesarevalo Aug 27, 2024
96f40df
Updated DetailRow Component used by FeaturedLinkDetails so that links…
anilnatha Aug 27, 2024
fe2d7b4
Added ability to have FeaturedLink components default state be expand…
anilnatha Aug 27, 2024
a329497
Merge branch 'features/54-create-featured-link-component' into search…
eddiesarevalo Aug 28, 2024
f5bd5bf
Added "Resource" FeaturedLink Variant.
anilnatha Aug 28, 2024
0bd8554
The tags property in FeaturedLinkDetails are now optional based to ma…
anilnatha Aug 28, 2024
0394246
Added styled injection fix for Typography.
anilnatha Aug 28, 2024
b28cf93
Merge branch 'features/54-create-featured-link-component' into search…
eddiesarevalo Aug 28, 2024
70a168e
Updated right padding on FeaturedLinkDetails component.
anilnatha Aug 28, 2024
fda9936
Updated FeaturedLinkDetails component to provide ability to display a…
anilnatha Aug 28, 2024
09c8f50
Fixed Loader unit test.
anilnatha Aug 28, 2024
7b5024c
Added "jest-environment-jsdom" to resolve rendering issue when runnin…
anilnatha Aug 28, 2024
d6fbdb4
Updated Unit tests to resolve many testing issues.
anilnatha Aug 28, 2024
064f082
Removed unneeded component, FeaturedLinkListItem.
anilnatha Aug 28, 2024
e520f58
Added ability to specify a label for the button in FeaturedLink
anilnatha Aug 28, 2024
e87656c
Merge branch 'features/54-create-featured-link-component' into search…
eddiesarevalo Aug 29, 2024
058ed88
Add fix for state change for startExpanded prop on FeaturedLink compo…
anilnatha Sep 3, 2024
9de58a5
Merge branch 'features/54-create-featured-link-component' into search…
eddiesarevalo Sep 3, 2024
640d954
Merge pull request #56 from NASA-PDS/features/54-create-featured-link…
anilnatha Sep 3, 2024
de81cd7
Bump webpack in the npm_and_yarn group across 1 directory
dependabot[bot] Sep 3, 2024
2021cba
Removed remnant of FeaturedLinkListItem component that wasn't previou…
anilnatha Sep 3, 2024
408100b
Merge pull request #59 from NASA-PDS/fixes/58-remove-featuredlinklist…
anilnatha Sep 4, 2024
fb7ddd2
Merge pull request #57 from NASA-PDS/dependabot/npm_and_yarn/npm_and_…
anilnatha Sep 4, 2024
7324f6d
Add Button Use Statement
eddiesarevalo Sep 4, 2024
fc8ea96
Merge branch 'develop' into search-page-components
eddiesarevalo Sep 4, 2024
67cf724
Merge pull request #60 from NASA-PDS/search-page-components
eddiesarevalo Sep 5, 2024
b2ce896
Fix Deployment Preview
eddiesarevalo Sep 9, 2024
672e903
Created Tabs component.
anilnatha Sep 10, 2024
24457a1
Merge pull request #61 from NASA-PDS/bugs/fix-parent-preview
anilnatha Sep 11, 2024
a6cbd4a
Merge branch 'develop' into features/create-components-for-homepage-e…
anilnatha Sep 11, 2024
58d3047
Created PrimaryButton component.
anilnatha Sep 11, 2024
e9926a7
Added ability to specify if icon in Primary Button should point to th…
anilnatha Sep 11, 2024
b71006e
Updated styling for tabs and disabled scrolling behavior on tabs for …
anilnatha Sep 11, 2024
0b3bcee
Updated Card styling and behaviors. Also incorporated links.
anilnatha Sep 11, 2024
3b470af
Removed tab hover behavior as it causes issues when tab bar scrolling…
anilnatha Sep 11, 2024
361d929
Updated structure of Primary Button.
anilnatha Sep 12, 2024
a112b52
Added scrolling functionality to tab bar and disabled focus behavior …
anilnatha Sep 12, 2024
6ec12ee
Added ability to set an alt tag for the image in the Card Component.
anilnatha Sep 12, 2024
e659608
Removed the cursor css style for the card component as it's no longer…
anilnatha Sep 12, 2024
d74a9e8
Created new card styles, MediaCard and LinkCard.
anilnatha Sep 12, 2024
49871f8
Removed hover behavior on Card component.
anilnatha Sep 12, 2024
b884cd1
Removed unused element on LinkCard.
anilnatha Sep 12, 2024
8c49bbc
Aliases MUI Components in cards for consistency.
anilnatha Sep 12, 2024
3381ef1
Created new component called QuickLinks Bar.
anilnatha Sep 12, 2024
6a9f6ec
Updated Card component so that "other" props can be passed to it.
anilnatha Sep 12, 2024
7f58a22
Removed code that is no longer needed in QuickLinksBar Component in o…
anilnatha Sep 12, 2024
31eed50
Added Link tags to QuickLinksBar.
anilnatha Sep 12, 2024
f31e1ce
Added description field to mediacard component and removed unneeded c…
anilnatha Sep 12, 2024
8fbc661
Created skeleton for Footer component.
anilnatha Sep 12, 2024
7268cc7
Updated QuickLinksBar component to allow the secondary links to speci…
anilnatha Sep 12, 2024
5b03da0
Updated LinkCard component to allow for specifying if the link is int…
anilnatha Sep 12, 2024
cfcfcff
Removed unused code on MediaCard component.
anilnatha Sep 12, 2024
5073b55
Fixed issue with incorrect width configuration for LInkCards.
anilnatha Sep 13, 2024
4b3ddc0
Removed boxshadow property on media card component.
anilnatha Sep 13, 2024
1aff065
Removed rounded corners on card components that shouldn't have them.
anilnatha Sep 13, 2024
310cf83
Changed the linking behavior of the LinkCard so that the card can be …
anilnatha Sep 17, 2024
bf17df3
Removed link behavior from MediaCard component as the link behavior s…
anilnatha Sep 17, 2024
82cf150
Updated footer component
anilnatha Sep 19, 2024
d6216f6
Added css class to adjust styling of metadata listed in footer compon…
anilnatha Sep 19, 2024
2780059
Adjusted styles for links in footer.
anilnatha Sep 19, 2024
bdc30e8
Merge pull request #63 from NASA-PDS/features/create-components-for-h…
anilnatha Sep 25, 2024
01aa5be
Forward Titlebar Search To Search Page
eddiesarevalo Sep 26, 2024
8f1658b
Fix code scanning alert no. 1: DOM text reinterpreted as HTML
eddiesarevalo Sep 26, 2024
447f2a0
Merge pull request #64 from NASA-PDS/features/title-bar-search
anilnatha Sep 26, 2024
6499f80
Allow Small Menu Links
eddiesarevalo Sep 30, 2024
57b1bd4
Merge pull request #65 from NASA-PDS/features/update-feedback-links
anilnatha Sep 30, 2024
7035f9f
Add More Search Result Types To Featured Link Details
eddiesarevalo Sep 30, 2024
7451eea
Updated Featured Link Details To Design Types
eddiesarevalo Oct 2, 2024
5bd173a
Merge pull request #66 from NASA-PDS/features/featured-link-component…
eddiesarevalo Oct 7, 2024
c7f557c
Re-Add Link Statement
eddiesarevalo Oct 7, 2024
4a1aaf0
Merge branch 'develop' into features/update-featured-link-details
eddiesarevalo Oct 7, 2024
c2464b9
Added data formatting to cover scenario when a date equals "3000-01-0…
anilnatha Oct 7, 2024
150a777
Merge pull request #67 from NASA-PDS/features/update-featured-link-de…
anilnatha Oct 7, 2024
39b3a09
Updated Featured Link Details Bundle_List Variant to support Collecti…
anilnatha Oct 9, 2024
d53bd82
Fixed join operations in FeaturedLinkDetails component so that a spac…
anilnatha Oct 9, 2024
508a4b6
Add Ongoing String For Date In Featured Link Detail
eddiesarevalo Oct 9, 2024
fba42db
Added ability to specify if the primary link is internal or external …
anilnatha Oct 9, 2024
bb2e820
Updated Footer Official
eddiesarevalo Oct 9, 2024
f2d7170
Make Buttons Non Capitalized
eddiesarevalo Oct 9, 2024
23ffdf6
Merge pull request #68 from NASA-PDS/features/mvp-fixes
eddiesarevalo Oct 9, 2024
e8d23a5
Updated Title Link in header so that it doesn't open in a new window.
anilnatha Oct 9, 2024
40ca807
Merge branch 'develop' into features/featured-link-updates-for-collec…
anilnatha Oct 9, 2024
1798632
Merge pull request #69 from NASA-PDS/features/featured-link-updates-f…
anilnatha Oct 9, 2024
c1757b1
Merge pull request #71 from NASA-PDS/main
jordanpadams Oct 15, 2024
1fec7c4
Added a new collection utility file to better organize collection rel…
anilnatha Oct 16, 2024
ee91a05
Renamed function that converts a processing level to a key value.
anilnatha Oct 16, 2024
6dc8ff4
Merge pull request #72 from NASA-PDS/features/86-update-collection-so…
anilnatha Oct 17, 2024
fb7cd74
Add additional token option
jordanpadams Oct 22, 2024
83435d7
Update stable-cicd.yaml
jordanpadams Oct 22, 2024
b7e9e43
Update stable-cicd.yaml
anilnatha Oct 22, 2024
df5a3db
Update unstable-cicd.yaml
anilnatha Oct 22, 2024
bebf21b
Merge pull request #75 from NASA-PDS/update_token
anilnatha Oct 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/stable-cicd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
uses: actions/checkout@v2
with:
lfs: true
token: ${{secrets.ADMIN_GITHUB_TOKEN}}
token: ${{secrets.ADMIN_GITHUB_TOKEN || secrets.GITHUB_TOKEN}}
fetch-depth: 0
-
name: 🤠 Roundup
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unstable-cicd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
uses: actions/checkout@v2
with:
lfs: true
token: ${{secrets.ADMIN_GITHUB_TOKEN}}
token: ${{secrets.ADMIN_GITHUB_TOKEN || secrets.GITHUB_TOKEN}}
fetch-depth: 0
-
name: 🤠 Roundup
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
lts/hydrogen
lts/iron
157 changes: 110 additions & 47 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,51 +1,114 @@
# wds-react

The wds-react project is a library of pds components based on the Horizon Design System.

The process overview is we have our css/sass styles in the WDS repository. The library then imports those styles and applies them to the components. That css is then exported so that the client app that uses the library will import both the components and the css.

**Prerequisites:**
- Have nodejs installed: https://nodejs.org/en
- Have git installed: https://git-scm.com
- Have a code editor installed. We prefer visual studios code: https://code.visualstudio.com

## Getting Started
1. Use Git to clone the WDS repository and the component library. Switch branches to develop. 
- https://github.com/NASA-PDS/wds
- https://github.com/NASA-PDS/wds-react
2. Build wds.
- Open a terminal in the root of the wds repository. 
- Run `npm run install`
- Run `npm run build:css`
- Run `npm run build:icons`
3. Set up wds-react
- Open a terminal in the root of the wds-react repository. 
- Run `npm run install`
- Run `npm run build-icons`
- Run `npm run build-lib-watch`
4. Set up tester app.
- Run `npm create vite@latest`
- Follow the prompts. Enter a project name, choose react, choose typescript or javascript. (javascript is simpler and faster to test).
- Follow the message. `cd <project_name>`, `npm install`, `npm run dev`
- Open a browser and go the the link shown in the message. By default it is http://localhost:5173/ but it can change if that port is already being used.
5. Link wds, wds-react and the tester app to each other.
- In the wds terminal run `npm link`
- In the wds-react terminal run `npm link @nasapds/wds`
- In the wds-react terminal run `npm link`
- In the tester app terminal run `npm link @nasapds/wds-react`
6. Import library and styles into the tester app
- Open the tester app in a code editor.
- Open the src/App.jsx file.
- At the top of the page add the imports:
- `import @nasapds/wds-react/dist/cjs/wds.css`
- `import {HelloWorld} from '@nasapds/wds-react`
7. Use components.
- In the return block add the line `<div><HelloWorld/></div>`
8. Verify component is there and styled.
- Open the http://localhost:5173/ page or equivalent and then verify that the hello world message is displayed.

## Links
The `wds-react` project is a library of Planetary Data System (PDS) web components based on the Horizon Design System (HDS).

This web component library relies on the CSS/SASS styles defined in the [PDS Web Design System (WDS) repository](https://github.com/nasa-pds/wds). The `wds-react` library imports the styles defined in `wds` and applies them to the web components. Then, `wds-react` exports CSS and other assets so that a client app can consume the library by importing the needed CSS and web components.

## Prerequisites

- Node.js: https://nodejs.org/en (We recommend the use of [Node Version Manager (NVM)](https://github.com/nvm-sh/nvm) to easily switch between versions of Node.js)
- Git installed: https://git-scm.com
- A code editor installed. We prefer Visual Studio Code: https://code.visualstudio.com

## Getting Started with Development

1. Use Git to clone the WDS repository and the component library. Switch branches to develop.
- https://github.com/NASA-PDS/wds
- https://github.com/NASA-PDS/wds-react

2. If using `nvm`, be sure to activate the proper version of Node.js by running the following command from the root folder of where the `wds` and `wds-react` repos are cloned.

```
nvm use
```

Example:

```
wds-react % nvm use
Found '/some/path/to/wds-react/.nvmrc' with version <lts/iron>
Now using node v20.16.0 (npm v10.8.1)
wds-react %
```

3. Build wds.

- Open a terminal in the root of the wds repository. 
- Run `npm clean-install` (See notes about differences between `npm install` and `npm clean-install`)
- Run `npm run build:css`
- Run `npm run build:icons`

4. Set up wds-react.

- Open a terminal in the root of the wds-react repository. 
- Run `npm clean-install` (See notes about differences between `npm install` and `npm clean-install`)
- Run `npm run build-icons`
- Run `npm run build-lib-watch`

5. Set up an application to test the packages. (optional)

- Run `npm create vite@latest`
- Follow the prompts. Enter a project name, choose React, choose Typescript or JavaScript. (JavaScript is simpler and faster to test).
- Follow the message. `cd <project_name>`, `npm install`, `npm run dev`
- Open a browser and go the the link shown in the message. By default it is http://localhost:5173/, but it can change if that port is already being used.

6. Link wds, wds-react, and the application that needs these packages.

- In the wds terminal run `npm link`
- In the wds-react terminal run `npm link @nasapds/wds`
- In the wds-react terminal run `npm link`
- In the tester app terminal run `npm link @nasapds/wds-react`

___Note about using `npm link`___: This is only needed when working with the `wds` and `wds-react` packages _locally_.

7. Import library and styles into the tester app.

- Open the main entry point Typescript/JavaScirpt file for your application in a code editor. For the application created above, open the `src/App.jsx` or `src/App.tsx` file.
- Add the imports:

CSS:
```
import "@nasapds/wds-react/dist/cjs/wds.css";
```

Package:
```
import { HelloWorld } from "@nasapds/wds-react";
```

8. Use components.

- In the return block add the line `<div><HelloWorld /></div>`

9. Verify component is there and styled.

- Open the http://localhost:5173/ page or equivalent and then verify that the hello world message is displayed.

## Notes

### NPM Package Nanagement

We utilize many third-party packages from the NPM package repository. To better manage these packages, we need to better understand the two relevant npm cli commands, `npm install` and `npm clean-install`.

#### `npm install` (aka `npm i`)

This command should be used for the installation of new packages or those specified in `package.json`. It will generate or update a file named `package-lock.json`. This command aims to resolve the dependencies of the packages being installed. The dependency resolution may introduce changes with the versions of the dependencies needing to be installed, which is why the `package-lock.json` is updated after running `npm install`. Because of the differences in the dependecy versions this command introducees, unexepected behaviors or errors with the application could be introduced which will need to be resolved.

#### `npm clean-install` (aka `npm ci`)

This command should be used to produce deterministic builds. _This is especially critical for deployments or running tests_. To use `npm clean-install`, a project ***must*** have one of two files, `package-lock.json` or `npm-shrinkwrap.json` which is used to inform the command of the specific packages and the version of those packages to install _without_ performing any dependency resolution.

## References

### Design References
- PDS WDS Specifications: https://www.figma.com/file/QqXo2XsUrKVu7KVjOHVeHk/PDS-Design-Library
- HDS Specifications: https://website.nasa.gov/hds/
- Current Nasa Site has working components for HDS: https://www.nasa.gov
- Horizon Design System (HDS) Specifications — https://website.nasa.gov/horizon-design-system/
- The current NASA (https://www.nasa.gov) and Science@NASA (https://science.nasa.gov/) sites demonstrate component usage for HDS.

### Technical References

#### NPM

- https://docs.npmjs.com/cli/v9/commands/npm-install
- https://docs.npmjs.com/cli/v9/commands/npm-ci
- https://docs.npmjs.com/cli/v8/configuring-npm/package-lock-json
2 changes: 1 addition & 1 deletion icon-index-template.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const path = require('path')

function defaultIndexTemplate(filePaths) {
const exportEntries = filePaths.map((filePath) => {
const basename = path.basename(filePath, path.extname(filePath))
const basename = path.basename(filePath.path, path.extname(filePath.path))
const exportName = /^\d/.test(basename) ? `Svg${basename}` : basename
return `export { default as Icon${exportName} } from './${basename}'`
})
Expand Down
Loading
Loading