@purple/phoenix-components 5.15.1 → 5.16.0
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/LICENSE +0 -0
- package/README.md +0 -0
- package/dist/bundle.cjs.js +1 -1
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.esm.js +1 -1
- package/dist/bundle.esm.js.map +1 -1
- package/dist/bundle.umd.js +1 -1
- package/dist/bundle.umd.js.map +1 -1
- package/dist/index.d.ts +4 -2
- package/package.json +160 -159
package/dist/index.d.ts
CHANGED
|
@@ -168,6 +168,7 @@ declare const PhoenixIconsOutlinedSrc: {
|
|
|
168
168
|
readonly stopwatch: string;
|
|
169
169
|
readonly 'subtract-circle': string;
|
|
170
170
|
readonly 'times-circle': string;
|
|
171
|
+
readonly trading: string;
|
|
171
172
|
readonly transfer: string;
|
|
172
173
|
readonly trash: string;
|
|
173
174
|
readonly upload: string;
|
|
@@ -299,6 +300,7 @@ declare const PhoenixIconsSrc: {
|
|
|
299
300
|
readonly stopwatch: string;
|
|
300
301
|
readonly 'subtract-circle': string;
|
|
301
302
|
readonly 'times-circle': string;
|
|
303
|
+
readonly trading: string;
|
|
302
304
|
readonly transfer: string;
|
|
303
305
|
readonly trash: string;
|
|
304
306
|
readonly upload: string;
|
|
@@ -306,11 +308,11 @@ declare const PhoenixIconsSrc: {
|
|
|
306
308
|
readonly withdrawal: string;
|
|
307
309
|
readonly wrench: string;
|
|
308
310
|
};
|
|
309
|
-
declare const PhoenixIconsOutlined: ("filter" | "revert" | "document" | "list" | "search" | "email" | "
|
|
311
|
+
declare const PhoenixIconsOutlined: ("filter" | "revert" | "document" | "list" | "search" | "email" | "download" | "actions" | "add" | "add-circle" | "android" | "angled-arrow-left" | "angled-arrow-right" | "apple" | "arrow-down" | "arrow-left" | "arrow-right" | "arrow-switch" | "arrow-up" | "asterisk" | "bell" | "browser" | "bullet-point" | "burger" | "calculator" | "calendar" | "camera" | "chart-bar-increase" | "chat" | "check" | "check-circle" | "clock" | "cog" | "copy" | "cross" | "deposit" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "dots-handle-reorder" | "driving-licence" | "edit" | "ellipsis" | "exclamation" | "exit" | "external" | "eye" | "eye-hidden" | "forward-arrow" | "gift" | "history" | "house" | "id-card" | "info-circle" | "language" | "later" | "lightning" | "lock" | "paper" | "passport" | "pencil" | "photo-user" | "pin" | "play-circle" | "profile" | "question-circle" | "refresh" | "refund" | "scales" | "search-plus" | "share-social" | "sliders" | "smartphone" | "star" | "star-circle" | "stopwatch" | "subtract-circle" | "times-circle" | "trading" | "transfer" | "trash" | "upload" | "windows" | "withdrawal" | "wrench")[];
|
|
310
312
|
declare type PhoenixIconsOutlined = keyof typeof PhoenixIconsOutlinedSrc;
|
|
311
313
|
declare const PhoenixIconsColored: ("browser-brand" | "calendar-brand" | "camera-brand" | "driving-licence-brand" | "email-brand" | "exclamation-error" | "exclamation-warning" | "house-brand" | "id-card-brand" | "language-brand" | "lock-brand" | "lock-success" | "paper-brand" | "passport-brand" | "photo-user-brand" | "pin-brand" | "question-circle-brand" | "smartphone-brand" | "star-brand" | "star-warning" | "trash-error")[];
|
|
312
314
|
declare type PhoenixIconsColored = keyof typeof PhoenixIconsColoredSrc;
|
|
313
|
-
declare const PhoenixIcons: ("filter" | "revert" | "document" | "list" | "search" | "email" | "
|
|
315
|
+
declare const PhoenixIcons: ("filter" | "revert" | "document" | "list" | "search" | "email" | "download" | "actions" | "add" | "add-circle" | "android" | "angled-arrow-left" | "angled-arrow-right" | "apple" | "arrow-down" | "arrow-left" | "arrow-right" | "arrow-switch" | "arrow-up" | "asterisk" | "bell" | "browser" | "bullet-point" | "burger" | "calculator" | "calendar" | "camera" | "chart-bar-increase" | "chat" | "check" | "check-circle" | "clock" | "cog" | "copy" | "cross" | "deposit" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "dots-handle-reorder" | "driving-licence" | "edit" | "ellipsis" | "exclamation" | "exit" | "external" | "eye" | "eye-hidden" | "forward-arrow" | "gift" | "history" | "house" | "id-card" | "info-circle" | "language" | "later" | "lightning" | "lock" | "paper" | "passport" | "pencil" | "photo-user" | "pin" | "play-circle" | "profile" | "question-circle" | "refresh" | "refund" | "scales" | "search-plus" | "share-social" | "sliders" | "smartphone" | "star" | "star-circle" | "stopwatch" | "subtract-circle" | "times-circle" | "trading" | "transfer" | "trash" | "upload" | "windows" | "withdrawal" | "wrench" | "browser-brand" | "calendar-brand" | "camera-brand" | "driving-licence-brand" | "email-brand" | "exclamation-error" | "exclamation-warning" | "house-brand" | "id-card-brand" | "language-brand" | "lock-brand" | "lock-success" | "paper-brand" | "passport-brand" | "photo-user-brand" | "pin-brand" | "question-circle-brand" | "smartphone-brand" | "star-brand" | "star-warning" | "trash-error")[];
|
|
314
316
|
declare type PhoenixIcons = keyof typeof PhoenixIconsSrc;
|
|
315
317
|
|
|
316
318
|
declare type IconType = PhoenixIconsOutlined | React.ReactElement | string;
|
package/package.json
CHANGED
|
@@ -1,160 +1,161 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
}
|
|
2
|
+
"name": "@purple/phoenix-components",
|
|
3
|
+
"version": "5.16.0",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "dist/bundle.umd.js",
|
|
6
|
+
"module": "dist/bundle.esm.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"sideEffects": false,
|
|
9
|
+
"engines": {
|
|
10
|
+
"node": ">=18"
|
|
11
|
+
},
|
|
12
|
+
"files": [
|
|
13
|
+
"dist"
|
|
14
|
+
],
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "https://github.com/purple-technology/phoenix-components"
|
|
18
|
+
},
|
|
19
|
+
"keywords": [
|
|
20
|
+
"react",
|
|
21
|
+
"forms",
|
|
22
|
+
"styled-components"
|
|
23
|
+
],
|
|
24
|
+
"contributors": [
|
|
25
|
+
"Ales Chromec <achromec@purple-technology.com>",
|
|
26
|
+
"Adam Stepanek <astepanek@purple-technology.com>"
|
|
27
|
+
],
|
|
28
|
+
"license": "MIT",
|
|
29
|
+
"scripts": {
|
|
30
|
+
"lint": "eslint 'src' '.storybook' --ext .ts,.tsx,.js,.jsx,.json,.d.ts",
|
|
31
|
+
"lint:fix": "eslint 'src' '.storybook' --ext .ts,.tsx,.js,.jsx,.json,.d.ts --fix",
|
|
32
|
+
"build:tokens": "ts-node --project ./ts-node.tsconfig.json --files src/tokens/build.ts && eslint 'src/tokens/' --ext .json --fix",
|
|
33
|
+
"tokens": "(git -C my-axiory-tokens pull || git clone https://github.com/purple-technology/my-axiory-tokens.git) && pnpm build:tokens",
|
|
34
|
+
"build": "rollup -c && rm -r ./dist/types",
|
|
35
|
+
"build-watch": "rollup -c -w",
|
|
36
|
+
"prepare": "husky install",
|
|
37
|
+
"prebuild": "rimraf dist",
|
|
38
|
+
"dev": "pnpm storybook",
|
|
39
|
+
"storybook": "storybook dev -p 6006",
|
|
40
|
+
"storybook:build": "storybook build -c .storybook",
|
|
41
|
+
"predeploy": "pnpm storybook:build",
|
|
42
|
+
"release:feature": "standard-version && git push --follow-tags",
|
|
43
|
+
"release:publish": "pnpm build && pnpm publish --access public && pnpm deploy-storybook",
|
|
44
|
+
"deploy-storybook": "pnpm storybook:build && cp -r .circleci storybook-static && cp -r storybook-build-v4 storybook-static/v4 && storybook-to-ghpages -e=storybook-static",
|
|
45
|
+
"snapshot": "storybook build -c .storybook && percy storybook ./storybook-static",
|
|
46
|
+
"percy": "if [[ $(git rev-parse --symbolic-full-name --abbrev-ref HEAD) != \"master\" ]]; then percy storybook ./storybook-static; else echo \"ERROR: percy should not be run on master because these snapshots are auto-approved\"; fi;",
|
|
47
|
+
"test": "jest"
|
|
48
|
+
},
|
|
49
|
+
"bin": {
|
|
50
|
+
"pc-check-tokens": "./bin/pc-check-tokens.js"
|
|
51
|
+
},
|
|
52
|
+
"lint-staged": {
|
|
53
|
+
"*.{ts,tsx,js,jsx,json,d.ts}": "eslint --fix"
|
|
54
|
+
},
|
|
55
|
+
"dependencies": {
|
|
56
|
+
"@react-hook/previous": "~1.0.1",
|
|
57
|
+
"@tippyjs/react": "~4.2.6",
|
|
58
|
+
"countries-and-timezones": "^3.3.0",
|
|
59
|
+
"formik": "~2.2.9",
|
|
60
|
+
"is-mobile": "~3.1.1",
|
|
61
|
+
"lodash": "~4.17.21",
|
|
62
|
+
"nanoid": "~3.3.4",
|
|
63
|
+
"nouislider": "~15.6.1",
|
|
64
|
+
"react-day-picker": "^8.7.1",
|
|
65
|
+
"react-dropzone": "~14.2.2",
|
|
66
|
+
"react-inlinesvg": "~3.0.1",
|
|
67
|
+
"react-pdf": "~5.7.2",
|
|
68
|
+
"react-select": "^5.7.0",
|
|
69
|
+
"react-tabs": "^4.2.1",
|
|
70
|
+
"styled-system": "~5.1.5",
|
|
71
|
+
"zxcvbn": "~4.4.2"
|
|
72
|
+
},
|
|
73
|
+
"peerDependencies": {
|
|
74
|
+
"react": ">=16.3",
|
|
75
|
+
"react-dom": ">=16.3",
|
|
76
|
+
"styled-components": ">=5.3"
|
|
77
|
+
},
|
|
78
|
+
"devDependencies": {
|
|
79
|
+
"@babel/core": "^7.23.6",
|
|
80
|
+
"@babel/plugin-transform-class-properties": "^7.23.3",
|
|
81
|
+
"@babel/plugin-transform-nullish-coalescing-operator": "^7.23.4",
|
|
82
|
+
"@babel/plugin-transform-object-rest-spread": "^7.23.4",
|
|
83
|
+
"@babel/plugin-transform-optional-chaining": "^7.23.4",
|
|
84
|
+
"@babel/plugin-transform-private-methods": "^7.23.3",
|
|
85
|
+
"@babel/plugin-transform-private-property-in-object": "^7.23.4",
|
|
86
|
+
"@babel/preset-env": "^7.23.6",
|
|
87
|
+
"@babel/preset-react": "^7.23.3",
|
|
88
|
+
"@babel/preset-typescript": "^7.23.3",
|
|
89
|
+
"@commitlint/cli": "^17.0.0",
|
|
90
|
+
"@commitlint/config-conventional": "^17.0.0",
|
|
91
|
+
"@ironkinoko/rollup-plugin-styles": "^4.0.3",
|
|
92
|
+
"@percy/cli": "^1.26.0",
|
|
93
|
+
"@percy/storybook": "^4.3.6",
|
|
94
|
+
"@pxblue/storybook-rtl-addon": "^1.0.1",
|
|
95
|
+
"@rollup/plugin-json": "^6.0.0",
|
|
96
|
+
"@rollup/plugin-node-resolve": "^15.0.2",
|
|
97
|
+
"@rollup/plugin-terser": "^0.4.3",
|
|
98
|
+
"@rollup/plugin-typescript": "^11.1.1",
|
|
99
|
+
"@rollup/plugin-url": "^8.0.1",
|
|
100
|
+
"@storybook/addon-a11y": "^7.0.21",
|
|
101
|
+
"@storybook/addon-docs": "^7.0.21",
|
|
102
|
+
"@storybook/addon-essentials": "^7.0.21",
|
|
103
|
+
"@storybook/addon-links": "^7.0.21",
|
|
104
|
+
"@storybook/addon-mdx-gfm": "^7.0.21",
|
|
105
|
+
"@storybook/addon-viewport": "^7.0.21",
|
|
106
|
+
"@storybook/blocks": "^7.0.21",
|
|
107
|
+
"@storybook/react": "^7.0.21",
|
|
108
|
+
"@storybook/react-webpack5": "^7.0.21",
|
|
109
|
+
"@storybook/storybook-deployer": "^2.8.16",
|
|
110
|
+
"@testing-library/dom": "^9.3.1",
|
|
111
|
+
"@testing-library/jest-dom": "^6.1.3",
|
|
112
|
+
"@testing-library/react": "^14.0.0",
|
|
113
|
+
"@types/countries-and-timezones": "^3.2.3",
|
|
114
|
+
"@types/jest": "^27.0.2",
|
|
115
|
+
"@types/lodash": "^4.14.178",
|
|
116
|
+
"@types/node": "^20.4.7",
|
|
117
|
+
"@types/react": "^18.0.20",
|
|
118
|
+
"@types/react-dom": "^18.0.6",
|
|
119
|
+
"@types/react-pdf": "^5.0.9",
|
|
120
|
+
"@types/react-tabs": "^2.3.4",
|
|
121
|
+
"@types/styled-components": "^5.1.26",
|
|
122
|
+
"@types/styled-system": "^5.1.13",
|
|
123
|
+
"@types/zxcvbn": "^4.4.2",
|
|
124
|
+
"@typescript-eslint/eslint-plugin": "^4.8.2",
|
|
125
|
+
"@typescript-eslint/parser": "^4.8.2",
|
|
126
|
+
"babel-loader": "^8.2.5",
|
|
127
|
+
"core-js": "^3.25.2",
|
|
128
|
+
"csstype": "^3.1.2",
|
|
129
|
+
"date-fns": "^2.30.0",
|
|
130
|
+
"eslint": "^7.32.0",
|
|
131
|
+
"eslint-config-prettier": "^8.3.0",
|
|
132
|
+
"eslint-plugin-prettier": "^4.0.0",
|
|
133
|
+
"eslint-plugin-react": "^7.23.2",
|
|
134
|
+
"eslint-plugin-react-hooks": "^4.2.0",
|
|
135
|
+
"eslint-plugin-simple-import-sort": "^7.0.0",
|
|
136
|
+
"eslint-plugin-storybook": "^0.6.12",
|
|
137
|
+
"husky": "^7.0.1",
|
|
138
|
+
"jest": "^27.2.4",
|
|
139
|
+
"lint-staged": "^12.0.0",
|
|
140
|
+
"postcss": "^8.4.21",
|
|
141
|
+
"prettier": "2.3.2",
|
|
142
|
+
"react": "^18.2.0",
|
|
143
|
+
"react-docgen-typescript-loader": "^3.1.1",
|
|
144
|
+
"react-dom": "^18.2.0",
|
|
145
|
+
"react-is": "^18.2.0",
|
|
146
|
+
"remark-gfm": "^3.0.1",
|
|
147
|
+
"rimraf": "^3.0.0",
|
|
148
|
+
"rollup": "^3.22.0",
|
|
149
|
+
"rollup-plugin-dts": "^5.3.0",
|
|
150
|
+
"rollup-plugin-peer-deps-external": "^2.2.0",
|
|
151
|
+
"standard-version": "^9.3.0",
|
|
152
|
+
"storybook": "^7.0.21",
|
|
153
|
+
"storybook-design-token": "^3.0.0-beta.3",
|
|
154
|
+
"style-dictionary": "^3.7.2",
|
|
155
|
+
"styled-components": "^5.3.5",
|
|
156
|
+
"tippy.js": "^6.3.7",
|
|
157
|
+
"ts-node": "^10.9.1",
|
|
158
|
+
"tslib": "^2.6.2",
|
|
159
|
+
"typescript": "^4.8.3"
|
|
160
|
+
}
|
|
161
|
+
}
|