@perawallet/react-ui-toolkit 2.0.0-beta.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 +21 -0
- package/README.md +128 -0
- package/dist/Button.js +1 -0
- package/dist/Checkbox.js +1 -0
- package/dist/DateTimer-DIYsxSVY.js +1 -0
- package/dist/DateTimer.js +1 -0
- package/dist/FileInput.js +1 -0
- package/dist/FileUploadButton.js +1 -0
- package/dist/FormField.js +1 -0
- package/dist/Input.js +1 -0
- package/dist/List.js +1 -0
- package/dist/ListItem.js +1 -0
- package/dist/NumberInput.js +1 -0
- package/dist/PasswordInput.js +1 -0
- package/dist/ProgressBar.js +1 -0
- package/dist/Radio.js +1 -0
- package/dist/RadioGroup.js +1 -0
- package/dist/Select-CMiQfdu3.js +1 -0
- package/dist/Select.js +1 -0
- package/dist/Spinner.js +1 -0
- package/dist/Switch.js +1 -0
- package/dist/Textarea.js +1 -0
- package/dist/TimeInput.js +1 -0
- package/dist/Toast-9FKOjJle.js +1 -0
- package/dist/Toast.js +1 -0
- package/dist/Toggle.js +1 -0
- package/dist/TypeaheadInput.js +1 -0
- package/dist/TypeaheadSelect.js +1 -0
- package/dist/arrayUtils-BZ-V_2c9.js +1 -0
- package/dist/button/Button.d.ts +25 -0
- package/dist/button/file-upload/FileUploadButton.d.ts +9 -0
- package/dist/check-BSS-LBT3.js +1 -0
- package/dist/core/utils/array/arrayUtils.d.ts +13 -0
- package/dist/core/utils/device/deviceUtils.d.ts +2 -0
- package/dist/core/utils/dom/domUtils.d.ts +2 -0
- package/dist/core/utils/function/functionUtils.d.ts +7 -0
- package/dist/core/utils/hooks/useDateTimer.d.ts +17 -0
- package/dist/core/utils/hooks/useDebounce.d.ts +2 -0
- package/dist/core/utils/hooks/useOnClickOutside.d.ts +2 -0
- package/dist/core/utils/keyboard/keyboardEventConstants.d.ts +16 -0
- package/dist/core/utils/number/numberConstants.d.ts +5 -0
- package/dist/core/utils/number/numberTypes.d.ts +7 -0
- package/dist/core/utils/number/numberUtils.d.ts +44 -0
- package/dist/core/utils/string/stringConstants.d.ts +2 -0
- package/dist/core/utils/string/stringUtils.d.ts +5 -0
- package/dist/core/utils/test/testUtils.d.ts +19 -0
- package/dist/core/utils/time/timeConstants.d.ts +13 -0
- package/dist/core/utils/time/timeTypes.d.ts +13 -0
- package/dist/core/utils/time/timeUtils.d.ts +42 -0
- package/dist/date-timer/DateTimer.d.ts +4 -0
- package/dist/date-timer/util/dateTimerTypes.d.ts +18 -0
- package/dist/date-timer/util/dateTimerUtils.d.ts +7 -0
- package/dist/form/field/FormField.d.ts +14 -0
- package/dist/form/field/message/FormFieldMessage.d.ts +9 -0
- package/dist/form/input/Input.d.ts +14 -0
- package/dist/form/input/checkbox/CheckboxInput.d.ts +14 -0
- package/dist/form/input/file/FileInput.d.ts +19 -0
- package/dist/form/input/number/NumberInput.d.ts +6 -0
- package/dist/form/input/number/util/numberInputTypes.d.ts +14 -0
- package/dist/form/input/number/util/numberInputUtils.d.ts +42 -0
- package/dist/form/input/radio/RadioInput.d.ts +24 -0
- package/dist/form/input/radio/group/RadioGroup.d.ts +12 -0
- package/dist/form/input/typeahead/TypeaheadInput.d.ts +27 -0
- package/dist/form/input/util/inputTypes.d.ts +12 -0
- package/dist/form/password-input/PasswordInput.d.ts +9 -0
- package/dist/form/textarea/Textarea.d.ts +22 -0
- package/dist/form/time-input/TimeInput.d.ts +10 -0
- package/dist/index.d.ts +93 -0
- package/dist/index.js +1 -0
- package/dist/keyboardEventConstants-BL5de2V9.js +1 -0
- package/dist/list/List.d.ts +26 -0
- package/dist/list/description-term/DescriptionTerm.d.ts +16 -0
- package/dist/list/item/ListItem.d.ts +17 -0
- package/dist/list/util/listUtils.d.ts +7 -0
- package/dist/main.css +703 -0
- package/dist/numberUtils-CMCFc8Kh.js +1 -0
- package/dist/progress-bar/ProgressBar.d.ts +20 -0
- package/dist/select/Select.d.ts +19 -0
- package/dist/select/content/SelectContent.d.ts +9 -0
- package/dist/select/group/SelectGroup.d.ts +8 -0
- package/dist/select/item/SelectItem.d.ts +17 -0
- package/dist/select/item-list/SelectItemList.d.ts +13 -0
- package/dist/select/trigger/SelectTrigger.d.ts +6 -0
- package/dist/select/typeahead/TypeaheadSelect.d.ts +26 -0
- package/dist/select/typeahead/trigger/TypeheadSelectTrigger.d.ts +20 -0
- package/dist/select/typeahead/util/typeaheadSelectUtils.d.ts +3 -0
- package/dist/select/util/context/SelectContext.d.ts +7 -0
- package/dist/select/util/context/SelectContext.reducer.d.ts +3 -0
- package/dist/select/util/hook/useMultiSelect.d.ts +14 -0
- package/dist/select/util/hook/useSelectClassName.d.ts +12 -0
- package/dist/select/util/hook/useSelectKeyDown.d.ts +18 -0
- package/dist/select/util/hook/useSingleSelect.d.ts +13 -0
- package/dist/select/util/selectTypes.d.ts +40 -0
- package/dist/select/util/selectUtils.d.ts +9 -0
- package/dist/spinner/Spinner.d.ts +7 -0
- package/dist/switch/Switch.d.ts +10 -0
- package/dist/tab/Tab.d.ts +27 -0
- package/dist/tab/header/item/TabHeaderItem.d.ts +11 -0
- package/dist/tag/Tag.d.ts +15 -0
- package/dist/tag/util/tagUtils.d.ts +4 -0
- package/dist/timeUtils-BvuzU1KM.js +1 -0
- package/dist/toast/Toast.d.ts +11 -0
- package/dist/toast/ToastItemContext.d.ts +5 -0
- package/dist/toast/ToastProvider.d.ts +17 -0
- package/dist/toast/close-button/ToastCloseButton.d.ts +8 -0
- package/dist/toast/stack/ToastStack.d.ts +6 -0
- package/dist/toast/util/toastConstants.d.ts +4 -0
- package/dist/toast/util/toastHooks.d.ts +28 -0
- package/dist/toast/util/toastReducer.d.ts +5 -0
- package/dist/toast/util/toastTypes.d.ts +39 -0
- package/dist/toast/util/toastUtils.d.ts +3 -0
- package/dist/toggle/Toggle.d.ts +18 -0
- package/dist/toggle/item/ToggleItem.d.ts +11 -0
- package/dist/toggle/util/ToggleContext.d.ts +8 -0
- package/dist/useDebounce-CP74COv3.js +1 -0
- package/package.json +110 -0
package/package.json
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@perawallet/react-ui-toolkit",
|
|
3
|
+
"version": "2.0.0-beta.0",
|
|
4
|
+
"description": "Pera Wallet's React based UI toolkit. Fork of Studio Bakers' @hipo/react-ui-toolkit.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "",
|
|
7
|
+
"homepage": "https://github.com/perawallet/react-ui-toolkit#readme",
|
|
8
|
+
"bugs": {
|
|
9
|
+
"url": "https://github.com/perawallet/react-ui-toolkit/issues"
|
|
10
|
+
},
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "git+https://github.com/perawallet/react-ui-toolkit.git"
|
|
14
|
+
},
|
|
15
|
+
"main": "dist/index.js",
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
17
|
+
"files": [
|
|
18
|
+
"dist"
|
|
19
|
+
],
|
|
20
|
+
"publishConfig": {
|
|
21
|
+
"access": "public",
|
|
22
|
+
"provenance": true
|
|
23
|
+
},
|
|
24
|
+
"scripts": {
|
|
25
|
+
"dev": "rollup -c -w",
|
|
26
|
+
"clean": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\"",
|
|
27
|
+
"build": "npm run clean && rollup -c",
|
|
28
|
+
"test": "jest",
|
|
29
|
+
"test:watch": "npm t -- --watch",
|
|
30
|
+
"storybook": "storybook dev -p 6006",
|
|
31
|
+
"storybook:build": "storybook build -o ./public",
|
|
32
|
+
"type-check": "tsc --noEmit",
|
|
33
|
+
"type-check:watch": "npm run type-check -- --watch",
|
|
34
|
+
"biome": "biome check .",
|
|
35
|
+
"biome:fix": "biome check --write .",
|
|
36
|
+
"format": "biome format --write .",
|
|
37
|
+
"stylelint": "stylelint \"src/**/*.{css,scss}\" \"stories/**/*.scss\"",
|
|
38
|
+
"stylelint:fix": "npm run stylelint -- --fix",
|
|
39
|
+
"lint": "npm run biome && npm run stylelint",
|
|
40
|
+
"lint:fix": "npm run biome:fix && npm run stylelint:fix",
|
|
41
|
+
"check-package-updates": "npx npm-check-updates",
|
|
42
|
+
"prepare": "husky || true && npm run build"
|
|
43
|
+
},
|
|
44
|
+
"engines": {
|
|
45
|
+
"node": ">=20.19.0",
|
|
46
|
+
"npm": ">=10.0.0"
|
|
47
|
+
},
|
|
48
|
+
"keywords": [
|
|
49
|
+
"ui",
|
|
50
|
+
"react"
|
|
51
|
+
],
|
|
52
|
+
"lint-staged": {
|
|
53
|
+
"src/**/*.{ts,tsx}": [
|
|
54
|
+
"biome check --write --no-errors-on-unmatched"
|
|
55
|
+
],
|
|
56
|
+
"stories/**/*.{ts,tsx}": [
|
|
57
|
+
"biome check --write --no-errors-on-unmatched"
|
|
58
|
+
],
|
|
59
|
+
"**/*.scss": [
|
|
60
|
+
"stylelint --fix"
|
|
61
|
+
]
|
|
62
|
+
},
|
|
63
|
+
"devDependencies": {
|
|
64
|
+
"@biomejs/biome": "2.5.12",
|
|
65
|
+
"@rollup/plugin-terser": "1.0.0",
|
|
66
|
+
"@storybook/addon-docs": "10.6.0",
|
|
67
|
+
"@storybook/addon-links": "10.6.0",
|
|
68
|
+
"@storybook/react-vite": "10.6.0",
|
|
69
|
+
"@svgr/rollup": "8.1.0",
|
|
70
|
+
"@testing-library/jest-dom": "7.0.1",
|
|
71
|
+
"@testing-library/react": "16.3.3",
|
|
72
|
+
"@testing-library/user-event": "14.6.7",
|
|
73
|
+
"@types/jest": "30.0.0",
|
|
74
|
+
"@types/jest-axe": "3.5.9",
|
|
75
|
+
"@types/react": "19.2.18",
|
|
76
|
+
"@types/react-dom": "19.2.7",
|
|
77
|
+
"axe-core": "4.13.0",
|
|
78
|
+
"husky": "9.1.7",
|
|
79
|
+
"jest": "30.5.1",
|
|
80
|
+
"jest-axe": "11.0.0",
|
|
81
|
+
"jest-environment-jsdom": "30.5.1",
|
|
82
|
+
"lint-staged": "17.5.0",
|
|
83
|
+
"postcss": "8.5.28",
|
|
84
|
+
"react": "19.3.0",
|
|
85
|
+
"react-dom": "19.3.0",
|
|
86
|
+
"rollup": "4.63.1",
|
|
87
|
+
"rollup-plugin-postcss": "4.0.2",
|
|
88
|
+
"rollup-plugin-typescript2": "0.37.0",
|
|
89
|
+
"sass": "1.104.0",
|
|
90
|
+
"storybook": "10.6.0",
|
|
91
|
+
"stylelint": "17.15.0",
|
|
92
|
+
"stylelint-config-standard-scss": "17.0.0",
|
|
93
|
+
"stylelint-order": "8.1.1",
|
|
94
|
+
"ts-jest": "29.4.12",
|
|
95
|
+
"typescript": "5.9.3",
|
|
96
|
+
"vite": "8.2.2",
|
|
97
|
+
"vite-plugin-svgr": "5.2.0"
|
|
98
|
+
},
|
|
99
|
+
"dependencies": {
|
|
100
|
+
"classnames": "2.5.1",
|
|
101
|
+
"date-fns": "4.4.0",
|
|
102
|
+
"date-fns-tz": "3.2.0",
|
|
103
|
+
"react-textarea-autosize": "8.5.9",
|
|
104
|
+
"uuid": "11.1.1"
|
|
105
|
+
},
|
|
106
|
+
"peerDependencies": {
|
|
107
|
+
"react": "^17.0.2 || ^18.0.0 || ^19.0.0",
|
|
108
|
+
"react-dom": "^17.0.2 || ^18.0.0 || ^19.0.0"
|
|
109
|
+
}
|
|
110
|
+
}
|