@justfixnyc/component-library 0.61.3 → 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,20 +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 login --scope=@justfixnyc --registry=https://registry.npmjs.org/ --auth-type=web
35
- 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
36
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, 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';
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
6
  import { faFile as faFile$1, faMailboxOpenLetter, faPaperPlane, faEnvelopeCircleCheck, faEnvelope } from '@awesome.me/kit-6863e5a21e/icons/classic/light';
7
- import { faPrint, faFile, faEyeSlash, faEye, faDownload, faEnvelope as faEnvelope$1, faCircleExclamation, faBookmark } from '@awesome.me/kit-6863e5a21e/icons/classic/regular';
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';
@@ -206,6 +206,12 @@ const Icon = _ref => {
206
206
  case 'calculatorSimple':
207
207
  faIcon = faCalculatorSimple;
208
208
  break;
209
+ case 'camera':
210
+ faIcon = faCamera$1;
211
+ break;
212
+ case 'cameraRegular':
213
+ faIcon = faCamera;
214
+ break;
209
215
  case 'shieldCheck':
210
216
  faIcon = faShieldCheck;
211
217
  break;
package/dist/src/index.js CHANGED
@@ -219,6 +219,12 @@ const Icon = _ref => {
219
219
  case 'calculatorSimple':
220
220
  faIcon = solid.faCalculatorSimple;
221
221
  break;
222
+ case 'camera':
223
+ faIcon = solid.faCamera;
224
+ break;
225
+ case 'cameraRegular':
226
+ faIcon = regular.faCamera;
227
+ break;
222
228
  case 'shieldCheck':
223
229
  faIcon = solid.faShieldCheck;
224
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' | 'fileLight' | 'fileRegular' | 'globe' | 'house' | 'locationDot' | 'mailboxOpenLetter' | 'mailboxOpenLetterLight' | 'mapLocationDot' | 'memoPad' | 'mobileScreenButton' | '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.3",
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": [