@justfixnyc/component-library 0.61.2 → 0.61.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.
package/README.md CHANGED
@@ -17,19 +17,18 @@ Based this repo on this [course](https://www.newline.co/courses/newline-guide-to
17
17
 
18
18
  ## Publishing the package
19
19
 
20
- This package is live on both GitHub Package Registry (GPR) and NPM registry
20
+ This package is published to the [npm registry](https://www.npmjs.com/package/@justfixnyc/component-library). Pushing a version tag triggers GitHub Actions to lint, test, build, publish to npm, and deploy Storybook.
21
21
 
22
- GitHub Actions triggers a publish to GPR from any branch that runs the version bump. Should probably change to allow this version bump to only happen on `main` before we fully integrate this library
22
+ **One-time setup (org admin):** configure [trusted publishing](https://docs.npmjs.com/trusted-publishers/) on the npm package settings page. Select **GitHub Actions** and set:
23
23
 
24
- ```shell
25
- npm run lint
26
- npm version [major]|[minor]|[patch]
27
- git push --follow-tags
28
- ```
24
+ - Organization / user: `JustFixNYC`
25
+ - Repository: `component-library`
26
+ - Workflow filename: `publish.yml`
29
27
 
30
- Publishing to NPM registry is more manual because of permission issues that couldn't be resolved in Github Actions. You will need to authenticate your account (w/ permissions to the JustFix organization) via the terminal.
28
+ CI authenticates via OIDC no `NPM_TOKEN` secret is required for publish.
31
29
 
32
30
  ```shell
33
- npm run build
34
- npm publish --access public --@justfixnyc:registry=https://registry.npmjs.org/
31
+ npm run lint
32
+ npm version [major|minor|patch] # creates git tag vX.Y.Z
33
+ git push --follow-tags # triggers CI publish
35
34
  ```
@@ -2,9 +2,9 @@ import _extends from '@babel/runtime/helpers/extends';
2
2
  import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
3
3
  import classNames from 'classnames';
4
4
  import React, { forwardRef, useId, useState, useRef, useCallback, useEffect } from 'react';
5
- import { faShieldCheck, faCalculatorSimple, faPlus, faBan, faXmark, faDownload as faDownload$1, faBuildingColumns, faAddressCard, faBuilding, faMapLocationDot, faMemoPad, faLocationDot, faHouse, faGlobe, faUser, faSpinner, faBars, faMailboxOpenLetter as faMailboxOpenLetter$1, faEnvelope as faEnvelope$2, faCommentSms, faCopy, faCirclePlus, faCircleInfo, faCircleExclamation as faCircleExclamation$1, faChevronRight, faChevronLeft, faChevronDown, faChevronUp, faCheckDouble, faCheck, faCaretDown, faCaretRight, faBookmark as faBookmark$1, faSquareArrowUpRight, faArrowsRotateReverse, faArrowDownWideShort, faArrowUpShortWide, faArrowUpArrowDown, faArrowDownLong, faArrowUpLong, faArrowDown, faArrowUpRight, faArrowUp, faArrowRight, faArrowLeft } from '@awesome.me/kit-6863e5a21e/icons/classic/solid';
6
- import { faMailboxOpenLetter, faPaperPlane, faEnvelopeCircleCheck, faEnvelope } from '@awesome.me/kit-6863e5a21e/icons/classic/light';
7
- import { faPrint, faEyeSlash, faEye, faDownload, faEnvelope as faEnvelope$1, faCircleExclamation, faBookmark } from '@awesome.me/kit-6863e5a21e/icons/classic/regular';
5
+ import { faShieldCheck, faCamera as faCamera$1, faCalculatorSimple, faPlus, faBan, faXmark, faDownload as faDownload$1, faBuildingColumns, faAddressCard, faBuilding, faMapLocationDot, faMobileScreenButton, faMemoPad, faLocationDot, faHouse, faGlobe, faUser, faSpinner, faBars, faMailboxOpenLetter as faMailboxOpenLetter$1, faEnvelope as faEnvelope$2, faCommentSms, faCopy, faCirclePlus, faCircleInfo, faCircleExclamation as faCircleExclamation$1, faChevronRight, faChevronLeft, faChevronDown, faChevronUp, faCheckDouble, faCheck, faCaretDown, faCaretRight, faBookmark as faBookmark$1, faSquareArrowUpRight, faArrowsRotateReverse, faArrowDownWideShort, faArrowUpShortWide, faArrowUpArrowDown, faArrowDownLong, faArrowUpLong, faArrowDown, faArrowUpRight, faArrowUp, faArrowRight, faArrowLeft } from '@awesome.me/kit-6863e5a21e/icons/classic/solid';
6
+ import { faFile as faFile$1, faMailboxOpenLetter, faPaperPlane, faEnvelopeCircleCheck, faEnvelope } from '@awesome.me/kit-6863e5a21e/icons/classic/light';
7
+ import { faCamera, faPrint, faFile, faEyeSlash, faEye, faDownload, faEnvelope as faEnvelope$1, faCircleExclamation, faBookmark } from '@awesome.me/kit-6863e5a21e/icons/classic/regular';
8
8
  import { faXTwitter, faTwitter, faFacebookF } from '@awesome.me/kit-6863e5a21e/icons/classic/brands';
9
9
  import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
10
10
  import { faEnvelopeCircleExclamationLight } from '@awesome.me/kit-6863e5a21e/icons/kit/custom';
@@ -158,6 +158,9 @@ const Icon = _ref => {
158
158
  case 'memoPad':
159
159
  faIcon = faMemoPad;
160
160
  break;
161
+ case 'mobileScreenButton':
162
+ faIcon = faMobileScreenButton;
163
+ break;
161
164
  case 'mapLocationDot':
162
165
  faIcon = faMapLocationDot;
163
166
  break;
@@ -188,6 +191,12 @@ const Icon = _ref => {
188
191
  case 'eyeSlash':
189
192
  faIcon = faEyeSlash;
190
193
  break;
194
+ case 'fileLight':
195
+ faIcon = faFile$1;
196
+ break;
197
+ case 'fileRegular':
198
+ faIcon = faFile;
199
+ break;
191
200
  case 'print':
192
201
  faIcon = faPrint;
193
202
  break;
@@ -197,6 +206,12 @@ const Icon = _ref => {
197
206
  case 'calculatorSimple':
198
207
  faIcon = faCalculatorSimple;
199
208
  break;
209
+ case 'camera':
210
+ faIcon = faCamera$1;
211
+ break;
212
+ case 'cameraRegular':
213
+ faIcon = faCamera;
214
+ break;
200
215
  case 'shieldCheck':
201
216
  faIcon = faShieldCheck;
202
217
  break;
package/dist/src/index.js CHANGED
@@ -171,6 +171,9 @@ const Icon = _ref => {
171
171
  case 'memoPad':
172
172
  faIcon = solid.faMemoPad;
173
173
  break;
174
+ case 'mobileScreenButton':
175
+ faIcon = solid.faMobileScreenButton;
176
+ break;
174
177
  case 'mapLocationDot':
175
178
  faIcon = solid.faMapLocationDot;
176
179
  break;
@@ -201,6 +204,12 @@ const Icon = _ref => {
201
204
  case 'eyeSlash':
202
205
  faIcon = regular.faEyeSlash;
203
206
  break;
207
+ case 'fileLight':
208
+ faIcon = light.faFile;
209
+ break;
210
+ case 'fileRegular':
211
+ faIcon = regular.faFile;
212
+ break;
204
213
  case 'print':
205
214
  faIcon = regular.faPrint;
206
215
  break;
@@ -210,6 +219,12 @@ const Icon = _ref => {
210
219
  case 'calculatorSimple':
211
220
  faIcon = solid.faCalculatorSimple;
212
221
  break;
222
+ case 'camera':
223
+ faIcon = solid.faCamera;
224
+ break;
225
+ case 'cameraRegular':
226
+ faIcon = regular.faCamera;
227
+ break;
213
228
  case 'shieldCheck':
214
229
  faIcon = solid.faShieldCheck;
215
230
  break;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { FontAwesomeIconProps } from '@fortawesome/react-fontawesome';
3
- export type IconNames = 'addressCard' | 'arrowDown' | 'arrowDownLong' | 'arrowDownWideShort' | 'arrowLeft' | 'arrowRight' | 'arrowsRotateReverse' | 'arrowUp' | 'arrowUpArrowDown' | 'arrowUpLong' | 'arrowUpRight' | 'arrowUpShortWide' | 'ban' | 'bars' | 'bookmark' | 'bookmarkRegular' | 'building' | 'buildingColumns' | 'calculatorSimple' | 'caretDown' | 'caretRight' | 'check' | 'checkDouble' | 'chevronDown' | 'chevronLeft' | 'chevronRight' | 'chevronUp' | 'circleExclamation' | 'circleExclamationRegular' | 'circleInfo' | 'circlePlus' | 'copy' | 'download' | 'downloadRegular' | 'envelope' | 'envelopeCircleCheck' | 'envelopeCircleExclamationLight' | 'envelopeLight' | 'envelopeRegular' | 'eye' | 'eyeSlash' | 'facebook' | 'globe' | 'house' | 'locationDot' | 'mailboxOpenLetter' | 'mailboxOpenLetterLight' | 'mapLocationDot' | 'memoPad' | 'paperPlaneLight' | 'plus' | 'print' | 'shieldCheck' | 'sms' | 'spinner' | 'squareArrowUpRight' | 'twitter' | 'user' | 'xmark' | 'xTwitter';
3
+ export type IconNames = 'addressCard' | 'arrowDown' | 'arrowDownLong' | 'arrowDownWideShort' | 'arrowLeft' | 'arrowRight' | 'arrowsRotateReverse' | 'arrowUp' | 'arrowUpArrowDown' | 'arrowUpLong' | 'arrowUpRight' | 'arrowUpShortWide' | 'ban' | 'bars' | 'bookmark' | 'bookmarkRegular' | 'building' | 'buildingColumns' | 'calculatorSimple' | 'camera' | 'cameraRegular' | 'caretDown' | 'caretRight' | 'check' | 'checkDouble' | 'chevronDown' | 'chevronLeft' | 'chevronRight' | 'chevronUp' | 'circleExclamation' | 'circleExclamationRegular' | 'circleInfo' | 'circlePlus' | 'copy' | 'download' | 'downloadRegular' | 'envelope' | 'envelopeCircleCheck' | 'envelopeCircleExclamationLight' | 'envelopeLight' | 'envelopeRegular' | 'eye' | 'eyeSlash' | 'facebook' | 'fileLight' | 'fileRegular' | 'globe' | 'house' | 'locationDot' | 'mailboxOpenLetter' | 'mailboxOpenLetterLight' | 'mapLocationDot' | 'memoPad' | 'mobileScreenButton' | 'paperPlaneLight' | 'plus' | 'print' | 'shieldCheck' | 'sms' | 'spinner' | 'squareArrowUpRight' | 'twitter' | 'user' | 'xmark' | 'xTwitter';
4
4
  export interface IconProps extends Omit<FontAwesomeIconProps, 'icon'> {
5
5
  className?: string;
6
6
  icon?: IconNames;
package/package.json CHANGED
@@ -2,7 +2,11 @@
2
2
  "name": "@justfixnyc/component-library",
3
3
  "description": "JustFix Component Library",
4
4
  "license": "MIT",
5
- "version": "0.61.2",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/JustFixNYC/component-library.git"
8
+ },
9
+ "version": "0.61.7",
6
10
  "main": "dist/src/index.js",
7
11
  "module": "dist/src/index.es.js",
8
12
  "files": [