File tree Expand file tree Collapse file tree 3 files changed +39
-10
lines changed Expand file tree Collapse file tree 3 files changed +39
-10
lines changed Original file line number Diff line number Diff line change
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}}
Original file line number Diff line number Diff line change @@ -36,6 +36,12 @@ as long as you include them as inline SVG rather than with an `<img>` tag.
36
36
37
37
With other icons, you may need to apply the change. For reference, here is the relevant CSS for the Illinois icons:
38
38
39
+ ``` css
40
+ ilw-card path .cls-1 {
41
+ fill : currentColor ;
42
+ }
43
+ ```
44
+
39
45
### Buttons in cards
40
46
41
47
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`).
45
51
For clickable cards, the CSS background animation is also removed, because it doesn't really work with the card
46
52
transition.
47
53
48
- ``` css
49
- ilw-card [clickable ] path .cls-1 {
50
- fill : currentColor ;
51
- }
52
- ```
53
-
54
54
## Code Examples
55
55
56
56
### Basic card with buttons
Original file line number Diff line number Diff line change 1
1
{
2
2
"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 ." ,
4
4
"repository" : " github:web-illinois/ilw-card" ,
5
5
"private" : false ,
6
6
"version" : " 1.0.0-alpha1" ,
7
7
"type" : " module" ,
8
+ "files" : [
9
+ " src/**" ,
10
+ " dist/**" ,
11
+ " builder/**"
12
+ ],
8
13
"exports" : {
9
14
"." : {
10
- "import" : " ./src/ilw-card.js"
15
+ "import" : " ./src/ilw-card.js" ,
16
+ "require" : " ./src/ilw-card.cjs" ,
17
+ "default" : " ./src/ilw-card.js"
11
18
}
12
19
},
13
20
"scripts" : {
14
21
"dev" : " vite" ,
15
22
"build" : " vite build --config vite.build.config.js --emptyOutDir" ,
16
- "preview" : " vite preview"
23
+ "preview" : " vite preview" ,
24
+ "prepack" : " npm run build"
17
25
},
18
26
"dependencies" : {
19
27
"lit" : " 3.1.3"
22
30
"vite" : " ^5.2.0" ,
23
31
"postcss-nested" : " ^6.2.0"
24
32
}
25
- }
33
+ }
You can’t perform that action at this time.
0 commit comments