Skip to content

Commit f88175a

Browse files
committed
Merge remote-tracking branch 'origin/main'
# Conflicts: # package.json
2 parents a206b09 + 9cb6226 commit f88175a

File tree

3 files changed

+39
-10
lines changed

3 files changed

+39
-10
lines changed

.github/workflows/publish_npm.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: publish_npm
2+
on:
3+
workflow_dispatch:
4+
push:
5+
tags: [ '**' ]
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: 'Checkout GitHub Action'
11+
uses: actions/checkout@v4
12+
- uses: actions/setup-node@v4
13+
with:
14+
node-version: '22.x'
15+
registry-url: 'https://registry.npmjs.org'
16+
- name: Install dependencies
17+
run: npm ci
18+
- name: Install to npm
19+
run: npm publish --access public
20+
env:
21+
NODE_AUTH_TOKEN: ${{secrets.TOOLKIT_NPM_SECRET}}

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ as long as you include them as inline SVG rather than with an `<img>` tag.
3636

3737
With other icons, you may need to apply the change. For reference, here is the relevant CSS for the Illinois icons:
3838

39+
```css
40+
ilw-card path.cls-1 {
41+
fill: currentColor;
42+
}
43+
```
44+
3945
### Buttons in cards
4046

4147
The card component overrides certain aspects of `ilw-button` and `ilw-buttons` elements to make them match
@@ -45,12 +51,6 @@ added to the buttons (eg. `ilw-theme-orange`).
4551
For clickable cards, the CSS background animation is also removed, because it doesn't really work with the card
4652
transition.
4753

48-
```css
49-
ilw-card[clickable] path.cls-1 {
50-
fill: currentColor;
51-
}
52-
```
53-
5454
## Code Examples
5555

5656
### Basic card with buttons

package.json

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,27 @@
11
{
22
"name": "@illinois-toolkit/ilw-card",
3-
"description": "Illinois Toolkit: A card component that can be used as a container for grouping information.",
3+
"description": "Illinois Toolkit: A card component that can be used as a container for grouping information, reminiscent of a physical note or playing card.",
44
"repository": "github:web-illinois/ilw-card",
55
"private": false,
66
"version": "1.0.0-alpha1",
77
"type": "module",
8+
"files": [
9+
"src/**",
10+
"dist/**",
11+
"builder/**"
12+
],
813
"exports": {
914
".": {
10-
"import": "./src/ilw-card.js"
15+
"import": "./src/ilw-card.js",
16+
"require": "./src/ilw-card.cjs",
17+
"default": "./src/ilw-card.js"
1118
}
1219
},
1320
"scripts": {
1421
"dev": "vite",
1522
"build": "vite build --config vite.build.config.js --emptyOutDir",
16-
"preview": "vite preview"
23+
"preview": "vite preview",
24+
"prepack": "npm run build"
1725
},
1826
"dependencies": {
1927
"lit": "3.1.3"
@@ -22,4 +30,4 @@
2230
"vite": "^5.2.0",
2331
"postcss-nested": "^6.2.0"
2432
}
25-
}
33+
}

0 commit comments

Comments
 (0)