@thecb/components 5.0.0-beta.9 → 5.2.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thecb/components",
3
- "version": "5.0.0-beta.9",
3
+ "version": "5.2.1",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -18,6 +18,10 @@
18
18
  "bugs": {
19
19
  "url": "https://github.com/CityBaseInc/cb-components/issues"
20
20
  },
21
+ "files": [
22
+ "dist",
23
+ "src"
24
+ ],
21
25
  "homepage": "https://github.com/CityBaseInc/cb-components#readme",
22
26
  "devDependencies": {
23
27
  "@babel/core": "^7.0.0-0",
@@ -74,13 +78,13 @@
74
78
  },
75
79
  "dependencies": {
76
80
  "@babel/runtime": "^7.15.4",
77
- "formatted-input": "^0.1.3",
81
+ "formatted-input": "^1.0.0",
78
82
  "framer-motion": "^1.11.0",
79
83
  "numeral": "^2.0.6",
80
84
  "polished": "^4.0.3",
81
85
  "ramda": "^0.27.0",
82
86
  "react-aria-modal": "^4.0.0",
83
87
  "react-pose": "^4.0.10",
84
- "redux-freeform": "^5.1.0-beta.5"
88
+ "redux-freeform": "^5.2.0"
85
89
  }
86
90
  }
package/src/.DS_Store ADDED
Binary file
Binary file
@@ -0,0 +1,21 @@
1
+ import React from "react";
2
+
3
+ const CashIcon = () => {
4
+ return (
5
+ <svg
6
+ xmlns="http://www.w3.org/2000/svg"
7
+ width="36"
8
+ height="24"
9
+ fill="none"
10
+ viewBox="0 0 36 24"
11
+ >
12
+ <rect width="36" height="24" fill="#E8FFEF" rx="1"></rect>
13
+ <path
14
+ fill="#317D4F"
15
+ d="M17.178 5.464v1.372c-1.799.294-3.115 1.407-3.094 3.08.021 1.645 1.05 2.597 2.611 2.884l1.617.308c.924.182 1.365.406 1.365 1.085 0 .609-.553 1.092-1.484 1.092-1.036 0-1.743-.455-1.932-1.267l-2.478.021c.175 1.834 1.414 2.8 3.374 3.038v1.197h2.023V17.07c1.876-.266 3.024-1.33 3.024-2.877 0-1.617-.798-2.751-2.702-3.178l-1.603-.357c-.994-.231-1.267-.497-1.267-1.029 0-.546.511-1.015 1.596-1.015 1.015 0 1.302.511 1.393 1.267l2.415-.014c.05-1.484-1.043-2.695-2.835-3.024V5.464h-2.023z"
16
+ ></path>
17
+ </svg>
18
+ );
19
+ };
20
+
21
+ export default CashIcon;
@@ -54,6 +54,7 @@ import ResetPasswordIcon from "./ResetPasswordIcon";
54
54
  import PeriscopeFailedIcon from "./PeriscopeFailedIcon";
55
55
  import CheckIcon from "./CheckIcon";
56
56
  import WarningIconXS from "./WarningIconXS";
57
+ import CashIcon from "./CashIcon";
57
58
 
58
59
  export {
59
60
  AccountsIcon,
@@ -111,5 +112,6 @@ export {
111
112
  ResetPasswordIcon,
112
113
  PeriscopeFailedIcon,
113
114
  CheckIcon,
114
- WarningIconXS
115
+ WarningIconXS,
116
+ CashIcon
115
117
  };
@@ -15,7 +15,7 @@ Styling accomplished with our atoms / layout primitives
15
15
 
16
16
  Cancel button will (for now) always use hideModal as its action
17
17
  Continue button takes an action, if you want to navigate to
18
- a different route (as with a link) connect() and use "push" from connected-react-router
18
+ a different route (as with a link) connect() and use "push" from @thecb/connected-react-router
19
19
  */
20
20
 
21
21
  const getApplicationNode = () => document.getElementById("root");
@@ -4,7 +4,8 @@ import {
4
4
  required,
5
5
  hasLength,
6
6
  matchesRegex,
7
- dateAfterToday
7
+ dateAfterToday,
8
+ isValidMonth
8
9
  } from "redux-freeform";
9
10
  import Checkbox from "../../atoms/checkbox";
10
11
  import CountryDropdown from "../../atoms/country-dropdown";
@@ -71,6 +72,7 @@ const PaymentFormCard = ({
71
72
  const expirationDateErrors = {
72
73
  [required.error]: "Expiration date is required",
73
74
  [hasLength.error]: "Expiration date is invalid",
75
+ [isValidMonth.error]: "Expiration month is invalid",
74
76
  [dateAfterToday.error]: "Expiration date is invalid"
75
77
  };
76
78
  const cvvErrors = {
@@ -5,7 +5,8 @@ import {
5
5
  hasLength,
6
6
  matchesRegex,
7
7
  validateWhen,
8
- dateAfterToday
8
+ dateAfterToday,
9
+ isValidMonth
9
10
  } from "redux-freeform";
10
11
 
11
12
  //TODO: Will make zip code able to have more than 5 digits once we add in the FormattedInput because it will have issues with format of 60606-1111.
@@ -26,7 +27,8 @@ const formConfig = {
26
27
  validators: [
27
28
  required(),
28
29
  hasLength(4, 4),
29
- dateAfterToday("MM/YY", "month", true)
30
+ isValidMonth(0),
31
+ dateAfterToday("MMYY", "month", true)
30
32
  ],
31
33
  constraints: [onlyIntegers(), hasLength(0, 4)]
32
34
  },
Binary file
package/.babelrc DELETED
@@ -1,24 +0,0 @@
1
- {
2
- "presets": [
3
- [
4
- "@babel/preset-env",
5
- {
6
- "targets": {
7
- "browsers": [
8
- ">2%",
9
- "last 1 Edge version",
10
- "last 2 Safari version",
11
- "last 1 Firefox version"
12
- ]
13
- },
14
- "loose": true
15
- }
16
- ],
17
- "@babel/preset-react"
18
- ],
19
- "plugins": [
20
- "babel-plugin-styled-components",
21
- "@babel/plugin-transform-flow-strip-types",
22
- "@babel/plugin-syntax-optional-chaining"
23
- ]
24
- }
package/.eslintrc.json DELETED
@@ -1,29 +0,0 @@
1
- {
2
- "extends": ["plugin:prettier/recommended", "plugin:react/recommended"],
3
- "plugins": ["babel", "prettier"],
4
- "settings": {
5
- "react": {
6
- "version": "detect"
7
- }
8
- },
9
- "parser": "@babel/eslint-parser",
10
- "rules": {
11
- "react/jsx-filename-extension": 0,
12
- "react/prop-types": 0,
13
- "react/display-name": 0,
14
- "prettier/prettier": "error",
15
- "no-unused-vars": "off",
16
- "babel/camelcase": 0,
17
- "camelcase": ["off"]
18
- },
19
- "env": {
20
- "browser": true
21
- },
22
- "parserOptions": {
23
- "ecmaVersion": 11,
24
- "sourceType": "module",
25
- "ecmaFeatures": {
26
- "jsx": true
27
- }
28
- }
29
- }
@@ -1,18 +0,0 @@
1
- ## Description
2
- A brief description of the changes and purpose of the PR.
3
-
4
- ## List of changes to be aware of:
5
- - [x] ....
6
- - [x] ....
7
-
8
- ## Dev Tasks
9
- - [ ] specs
10
- - [ ] storys
11
- - [ ] lint
12
- - [ ] export component in ~/src/index.js
13
-
14
- ## JIRA Task
15
- [ABCD-123](https://citybase.atlassian.net/browse/ABCD-123)
16
-
17
- ## Screenshots
18
- (optional)
package/.github/stale.yml DELETED
@@ -1,17 +0,0 @@
1
- # Number of days of inactivity before an issue becomes stale
2
- daysUntilStale: 30
3
- # Number of days of inactivity before a stale issue is closed
4
- daysUntilClose: 7
5
- # Issues with these labels will never be considered stale
6
- exemptLabels:
7
- - "Don't close"
8
- # Label to use when marking an issue as stale
9
- staleLabel: stale
10
- # Comment to post when marking an issue as stale. Set to `false` to disable
11
- markComment: >
12
- This issue has been automatically marked as stale because it has not had
13
- recent activity. It will be closed within seven days if no further activity
14
- occurs. If it needs to remain open, add the "Don't close" label.
15
- # Comment to post when closing a stale issue. Set to `false` to disable
16
- closeComment: >
17
- This issue has been automatically closed because it was stale.
@@ -1,30 +0,0 @@
1
- name: Bump Package Version
2
- on:
3
- push:
4
- branches:
5
- - "master"
6
-
7
- jobs:
8
- bump-version:
9
- name: Bump version on master
10
- runs-on: ubuntu-latest
11
-
12
- steps:
13
- - name: Checkout source code
14
- uses: actions/checkout@v2
15
- with:
16
- ref: ${{ github.ref }}
17
- - name: "cat package.json"
18
- run: cat ./package.json
19
- - name: Setup Node.js
20
- uses: actions/setup-node@v1
21
- with:
22
- node-version: 12
23
- - name: Automated version bump
24
- uses: phips28/gh-action-bump-version@master
25
- with:
26
- tag-prefix: ''
27
- env:
28
- GITHUB_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
29
- - name: "cat package.json"
30
- run: cat ./package.json
@@ -1,35 +0,0 @@
1
- #!/usr/bin/env bash
2
-
3
- # The output is a Markdown table with columns for the PR (with a link),
4
- # a branch, and JIRA ticket with link (if available).
5
- #
6
- # If the branch name starts with an id for a JIRA ticket (e.g.,
7
- # PLAT-123), then a link to the ticket is created. Otherwise this
8
- # column is blank.
9
- #
10
- # A link to the branch isn't valuable because they are usually
11
- # deleted after merging.
12
-
13
- from_tag=${FROM_TAG}
14
- to_tag=${TAG##*/}
15
-
16
- echo "## Changes"
17
- echo ""
18
- echo "### PRs"
19
- # all merge commits, only merge commits
20
- git --no-pager log --merges --format='%s' ${from_tag}..${to_tag} | \
21
- # only pull-request merges
22
- grep "Merge pull request" | \
23
- gawk 'BEGIN { print "| PR | Branch | Ticket |" ;
24
- print "| -- | ------ | ------ |" }
25
- {if (match($0,/(#[0-9]+).*CityBaseInc\/(([A-Z]+-[0-9]+)\S+)/,m))
26
- printf "| %s | %s | [%s](https://citybase.atlassian.net/browse/%s) |\n", m[1], m[2], m[3], m[3] }
27
- {if (match($0,/(#[0-9]+).*CityBaseInc\/([a-z]\S+)/,m))
28
- print "|", m[1], "|", m[2], "|", "|"}'
29
-
30
- echo ""
31
- echo "### Code Diff"
32
- echo "https://github.com/${REPO}/compare/${from_tag}..${to_tag}"
33
- echo ""
34
-
35
- git show ${to_tag} --format=short | grep Tagger
@@ -1,52 +0,0 @@
1
- on:
2
- push:
3
- tags:
4
- - '*'
5
-
6
-
7
- name: Create Release
8
-
9
- jobs:
10
- build:
11
- name: Create Release
12
- runs-on: ubuntu-latest
13
- env:
14
- REPO: ${{ github.repository }}
15
- TAG: ${{ github.ref }}
16
- steps:
17
- - uses: actions/checkout@v2
18
- - name: Get latest release
19
- id: get_latest
20
- run: |
21
- tag_name=$(curl --silent --request GET \
22
- --url https://api.github.com/repos/${{ github.repository }}/releases/latest \
23
- --header "authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
24
- --header "content-type: applicatoin/json" | jq -r .tag_name)
25
- echo "::set-output name=tag_name::$tag_name"
26
- - name: Fetch branches
27
- run: git fetch --all --prune --unshallow
28
- - name: Fetch tags
29
- run: git fetch --unshallow origin +refs/tags/*:refs/tags/*
30
- - name: Checkout master
31
- run: git checkout master
32
- - name: Build body
33
- id: build_body
34
- env:
35
- FROM_TAG: ${{ steps.get_latest.outpus.tag_name}}
36
- run: |
37
- body=$(sh ./.github/workflows/create-release/build-body.sh)
38
- body="${body//'%'/'%25'}"
39
- body="${body//$'\n'/'%0A'}"
40
- body="${body//$'\r'/'%0D'}"
41
- echo "::set-output name=body::$body"
42
- - name: Create Release
43
- id: create_release
44
- uses: actions/create-release@4d1b6075ce7561b672b8552148edec2f27584fe9
45
- env:
46
- GITHUB_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
47
- with:
48
- tag_name: ${{ github.ref }}
49
- release_name: Release ${{ github.ref }}
50
- body: ${{ steps.build_body.outputs.body }}
51
- draft: false
52
- prerelease: false
@@ -1,73 +0,0 @@
1
- name: Publish and Update
2
-
3
- on:
4
- release:
5
- types: [published]
6
-
7
- jobs:
8
- build:
9
- name: Build
10
- runs-on: ubuntu-latest
11
-
12
- steps:
13
- - name: Checkout repository
14
- uses: actions/checkout@v2
15
- with:
16
- ref: master
17
-
18
- - name: Set up Node.js
19
- uses: actions/setup-node@v1.2.0
20
- with:
21
- node-version: "10.x"
22
-
23
- - name: Install dependencies
24
- run: yarn install --silent
25
-
26
- - name: Compile build
27
- run: yarn build --silent
28
-
29
- - name: Commit changes
30
- uses: EndBug/add-and-commit@v2.1.0
31
- with:
32
- author_name: CB Feeps
33
- author_email: feeps@thecitybase.com
34
- message: "[auto] Update dist"
35
- path: dist
36
- pattern: "*.*"
37
- force: true
38
- ref: deploy
39
- env:
40
- GITHUB_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
41
-
42
- publish:
43
- name: Publish to NPM Registry
44
- runs-on: ubuntu-latest
45
- needs: build
46
-
47
- steps:
48
- - name: Checkout repository
49
- uses: actions/checkout@v2
50
- with:
51
- ref: deploy
52
-
53
- - name: Set up Node.js for NPM
54
- if: steps.check.outputs.changed == 'true'
55
- uses: actions/setup-node@v1.2.0
56
- with:
57
- node-version: "10.x"
58
- registry-url: "https://registry.npmjs.org"
59
- scope: "@thecb"
60
-
61
- - name: Install dependencies
62
- if: steps.check.outputs.changed == 'true'
63
- run: yarn install
64
-
65
- - name: Create build
66
- if: steps.check.outputs.changed == 'true'
67
- run: yarn build
68
-
69
- - name: Publish package to NPM
70
- if: steps.check.outputs.changed == 'true'
71
- run: yarn publish
72
- env:
73
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
package/.prettierignore DELETED
@@ -1,3 +0,0 @@
1
- node_modules/
2
- dist/
3
- .storybook/
@@ -1,4 +0,0 @@
1
- module.exports = {
2
- stories: ['../src/**/*.stories.[tj]s'],
3
- addons: ['@storybook/addon-knobs/register', '@storybook/addon-a11y']
4
- };
@@ -1,64 +0,0 @@
1
- import React from "react"
2
- import { ThemeProvider } from "styled-components"
3
- import { withKnobs, select, radios, text } from "@storybook/addon-knobs";
4
- import { withA11y } from "@storybook/addon-a11y";
5
- import { Provider } from 'react-redux';
6
- import { createStore } from "redux";
7
- import { Router } from "react-router-dom";
8
- import { createBrowserHistory } from "history";
9
-
10
- import ResizingContainer from "../src/components/atoms/layouts/examples/ResizingContainer";
11
- import { SFTheme, APCTheme } from "./themes";
12
-
13
- const themesLabel = "Theme";
14
- const themes = {
15
- SF: SFTheme,
16
- APC: APCTheme,
17
- None: {},
18
- };
19
- const defaultValue = SFTheme;
20
- const groupId = "Theme";
21
-
22
- const animateLabel = "Animate";
23
- const animateOptions = {
24
- play: "play",
25
- pause: "pause"
26
- };
27
- const animateDefaultValue = "pause";
28
- const animateGroupID = "Container";
29
-
30
- const themeDecorator = storyFn => (
31
- <ThemeProvider theme={select(themesLabel, themes, defaultValue, groupId)}>{storyFn()}</ThemeProvider>
32
- )
33
-
34
- export default ({ title, Component, height, reducer = () => { }, containerMax = "40rem", containerMin = "20rem" }) => {
35
- const history = createBrowserHistory();
36
- const store =createStore(
37
- reducer,
38
- window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__()
39
- )
40
- return {
41
- title,
42
- component: Component,
43
- decorators: [
44
- themeDecorator,
45
- withKnobs,
46
- withA11y,
47
- storyFn => (
48
- <Router history={history} >
49
- <Provider store={store}>
50
- <div style={{ height: "max-content", display: "flex", justifyContent: "center", flexDirection: "column" }}>
51
- <ResizingContainer
52
- height={height}
53
- animate={radios(animateLabel, animateOptions, animateDefaultValue, animateGroupID)}
54
- containerMax={text("Container Max", containerMax, animateGroupID)}
55
- containerMin={text("Container Min", containerMin, animateGroupID)}>
56
- {storyFn()}
57
- </ResizingContainer >
58
- </div>
59
- </Provider>
60
- </Router>
61
- )
62
- ]
63
- }
64
- };
@@ -1 +0,0 @@
1
- export const APCTheme = {values: {"Button":{"active":{"primary":"background-color: #C8171E; border: 2px solid #C8171E; box-shadow: 0 0 10px #E30100;","secondary":"background-color: #F58D91; color: #FF0000; box-shadow: 0 0 10px #FF0000","smallPrimary":"background-color: #C8171E; border: 2px solid #C8171E; box-shadow: 0 0 10px #E30100","smallSecondary":"background-color: #F58D91; color: #FF0000; box-shadow: 0 0 10px #FF0000"},"backgroundColor":{"primary":"#EC1C24","secondary":"#F6F6F9","smallPrimary":"#EC1C24","smallSecondary":"#F6F6F9"},"border":{"primary":"2px solid #EC1C24;","secondary":"2px solid #EC1C24;","smallPrimary":"2px solid %#EC1C24;","smallSecondary":"2px solid #EC1C24;"},"color":{"primary":"#F6F6F9","secondary":"#EC1C24","smallPrimary":"#F6F6F9","smallSecondary":"#EC1C24"},"focus":{"primary":"outline: none; background-color: #C8171E; border: 2px solid #C8171E; box-shadow: 0 0 10px #E30100","secondary":"outline: none; background-color: #F58D91; color: #FF0000; box-shadow: 0 0 10px #FF0000;","smallPrimary":"outline: none; background-color: #C8171E; border: 2px solid #C8171E; box-shadow: 0 0 10px #E30100","smallSecondary":"outline: none; background-color: #F58D91; color: #FF0000; box-shadow: 0 0 10px #FF0000;"},"hover":{"primary":"cursor: pointer; background-color: #E30100; border: 2px solid #E30100; box-shadow: 0 0 10px #E30100;","secondary":"cursor: pointer; background-color: #FBD9D9; box-shadow: 0 0 10px #EC1C24; color: #EC1C24;","smallPrimary":"cursor: pointer; background-color: #E30100; border: 2px solid #E30100; box-shadow: 0 0 10px #E30100;","smallSecondary":"cursor: pointer; background-color: #FBD9D9; box-shadow: 0 0 10px #EC1C24; color: #EC1C24;"}},"Footer":{"backgroundColor":"#56575B"},"Header":{"backgroundColor":"#FFFFFF"},"HighlightTabRow":{"backgroundColor":"#215B9E"},"linkColor":"#15749D","logo":"logo.png","primaryColor":"#3B414D","secondaryColor":"#E5E7EC","textColor":"#000000"}}
@@ -1,2 +0,0 @@
1
- export { SFTheme } from "./sf.theme"
2
- export { APCTheme } from "./apc.theme"
@@ -1 +0,0 @@
1
- export const SFTheme = {values: {"AmountCallout":{"color":"#347BB2"},"Breadcrumb":{"color":"#347BB2"},"Button":{"active":{"danger":"background-color: #870000; border: 2px solid #870000; box-shadow: 0 0 10px #ED125F;","ghost":"background-color: $(transparent)s; color: #001952; box-shadow: none;","primary":"background-color: #001952; border: 2px solid #001952; box-shadow: 0 0 10px #347BB2","secondary":"background-color: #D8E5F2; box-shadow: 0 0 10px #D8E5F2;","smallGhost":"background-color: $(transparent)s; color: #001952; box-shadow: none;","smallPrimary":"background-color: #001952; border: 2px solid #001952; box-shadow: 0 0 10px #347BB2;","smallSecondary":"background-color: #D8E5F2; box-shadow: 0 0 10px #D8E5F2;"},"backgroundColor":{"danger":"#ED125F","ghost":"transparent","primary":"#347BB2","secondary":"transparent","smallGhost":"transparent","smallPrimary":"#347BB2","smallSecondary":"transparent"},"border":{"danger":"2px solid #ED125F;","ghost":"none","primary":"2px solid #347BB2;","secondary":"2px solid #347BB2;","smallGhost":"none","smallPrimary":"2px solid #347BB2;","smallSecondary":"2px solid #347BB2;"},"color":{"danger":"#FFFFFF","ghost":"#347BB2","primary":"#FFFFFF","secondary":"#347BB2","smallGhost":"#347BB2","smallPrimary":"#FFFFFF","smallSecondary":"#347BB2"},"disabled":{"danger":"background-color: #6E727E; border: 2px solid #6E727E; &:focus { box-shadow: 0 0 10px #6E727E; }","ghost":"color: #6E727E; border: none","primary":"background-color: #6E727E; border: 2px solid #6E727E; &:focus { box-shadow: 0 0 10px #6E727E; }","secondary":"background-color: #6E727E; border: 2px solid #6E727E; &:focus { box-shadow: 0 0 10px #6E727E; }","smallGhost":"color: #6E727E; border: none;","smallPrimary":"background-color: #6E727E; border: 2px solid #6E727E; &:focus { box-shadow: 0 0 10px #6E727E; }","smallSecondary":"background-color: #6E727E; border: 2px solid #6E727E; &:focus { box-shadow: 0 0 10px #6E727E; }"},"focus":{"danger":"outline: none; background-color: #BA002C; border: 2px solid #BA002C; box-shadow: 0 0 10px #ED125F","ghost":"outline: none; box-shadow: none; color: #024C85;","primary":"outline: none; background-color: #024C85; border: 2px solid #024C85; box-shadow: 0 0 10px #347BB2","secondary":"outline: none; background-color: #EAF2F8; box-shadow: 0 0 10px #EAF2F8;","smallGhost":"outline: none; box-shadow: none; color: #024C85;","smallPrimary":"outline: none; background-color: #024C85; border: 2px solid #024C85; box-shadow: 0 0 10px #347BB2","smallSecondary":"outline: none; background-color: #EAF2F8; box-shadow: 0 0 10px #EAF2F8;"},"hover":{"danger":"background-color: #BA002C; border: 2px solid #BA002C; box-shadow: 0 0 10px #ED125F;","ghost":"cursor: pointer; color: #024C85;","primary":"cursor: pointer; background-color: #024C85; border: 2px solid #024C85; box-shadow: 0 0 10px #347BB2","secondary":"cursor: pointer; background-color: #EAF2F8; box-shadow: 0 0 10px #EAF2F8;","smallGhost":"cursor: pointer; color: #024C85;","smallPrimary":"cursor: pointer; background-color: #024C85; border: 2px solid #024C85; box-shadow: 0 0 10px #347BB2","smallSecondary":"cursor: pointer; background-color: #EAF2F8; box-shadow: 0 0 10px #EAF2F8;"}},"Checkbox":{"boxShadow":{"default":"0 0 0 3px #D8E5F2;"},"checkedStyles":{"default":"background: #347BB2; border: 1px solid #347BB2;"}},"Dropdown":{"hoverColor":"#EFFAFF","selectedColor":"#347BB2"},"Footer":{"backgroundColor":"#182848","logoHeight":"52px","subfooterColor":"#347BB2"},"FormInput":{"hoverFocusStyles":{"default":"outline: none; text-decoration: underline; color: #024C85;"},"linkColor":{"default":"#347BB2"}},"Global":{"baseFontSize":"16px","baseMobileFontSize":"14px","pageBackground":"#F6F6F9"},"Header":{"backgroundColor":"#347BB2"},"Icons":{"accentColor":{"error":"#3B414D","info":"#3B414D","success":"#3B414D"},"primaryColor":{"error":"#FFFFFF","info":"#FFFFFF","success":"#FFFFFF"},"singleIconColor":{"darkMode":"#FFFFFF","primary":"#347BB2","secondary":"#3B414D"},"subIconColor":{"error":"#ED125F","info":"#347BB2","success":"#317D4F"}},"ModalLink":{"linkColor":"#347BB2"},"NavMenu":{"backgroundColor":"#347BB2"},"ProfileTab":{"activeTabAccent":"#347BB2","activeTabBackground":"#FFFFFF","activeTabHover":"#D8E5F2"},"RadioButton":{"activeColor":"#347BB2"},"Spinner":{"color":"#347BB2"},"ToggleSwitch":{"onBackground":"#347BB2"},"Workflow":{"accentColor":"#214566","fontFamily":"Open Sans, sans-serif","linkColor":"#214566","primaryButtonColor":"#347BB2","secondaryButtonColor":"#347BB2","textColor":"#091325","workflowFooterColor":"#182848","workflowHeaderColor":"#347BB2"},"linkColor":"#15749D","logo":"logo.png","primaryColor":"#3B414D","secondaryColor":"#E5E7EC","textColor":"#000000"}}
package/.tool-versions DELETED
@@ -1 +0,0 @@
1
- nodejs 15.8.0
package/rollup.config.js DELETED
@@ -1,53 +0,0 @@
1
- import resolve from "rollup-plugin-node-resolve";
2
- import commonjs from "rollup-plugin-commonjs";
3
- import babel from "rollup-plugin-babel";
4
- import json from "rollup-plugin-json";
5
- import visualizer from "rollup-plugin-visualizer";
6
- import pkg from "./package.json";
7
-
8
- import * as formattedInput from "formatted-input";
9
-
10
- const globals = {
11
- react: "React",
12
- "react-dom": "ReactDOM"
13
- };
14
-
15
- const plugins = [
16
- resolve({ preferBuiltins: false }),
17
- babel({
18
- exclude: "node_modules/**",
19
- presets: ["@babel/env", "@babel/preset-react"]
20
- }),
21
- json(),
22
- commonjs({
23
- include: "node_modules/**",
24
- namedExports: {
25
- "formatted-input": Object.keys(formattedInput)
26
- }
27
- }),
28
- visualizer()
29
- ];
30
-
31
- const external = [...Object.keys(pkg.peerDependencies || {})];
32
-
33
- const output_data = [
34
- {
35
- file: pkg.main,
36
- format: "cjs"
37
- },
38
- {
39
- file: pkg.module,
40
- format: "esm"
41
- }
42
- ];
43
-
44
- export default output_data.map(({ file, format }) => ({
45
- input: "src/index.js",
46
- output: {
47
- file,
48
- format,
49
- globals
50
- },
51
- plugins,
52
- external
53
- }));