@provex/components 1.2.3
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/dist/index.cjs +1249 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +601 -0
- package/dist/index.d.ts +601 -0
- package/dist/index.js +1223 -0
- package/dist/index.js.map +1 -0
- package/dist/useUrlState.cjs +153 -0
- package/dist/useUrlState.cjs.map +1 -0
- package/dist/useUrlState.d.cts +237 -0
- package/dist/useUrlState.d.ts +237 -0
- package/dist/useUrlState.js +149 -0
- package/dist/useUrlState.js.map +1 -0
- package/package.json +73 -0
- package/src/index.ts +32 -0
package/package.json
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@provex/components",
|
|
3
|
+
"version": "1.2.3",
|
|
4
|
+
"description": "Shared theme-agnostic React UI primitives for Provex apps",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/provex-tech/monorepo.git",
|
|
9
|
+
"directory": "packages/components"
|
|
10
|
+
},
|
|
11
|
+
"main": "src/index.ts",
|
|
12
|
+
"types": "src/index.ts",
|
|
13
|
+
"exports": {
|
|
14
|
+
".": "./src/index.ts",
|
|
15
|
+
"./url-state": "./src/useUrlState.ts"
|
|
16
|
+
},
|
|
17
|
+
"publishConfig": {
|
|
18
|
+
"access": "restricted",
|
|
19
|
+
"main": "dist/index.cjs",
|
|
20
|
+
"module": "dist/index.js",
|
|
21
|
+
"types": "dist/index.d.ts",
|
|
22
|
+
"exports": {
|
|
23
|
+
".": {
|
|
24
|
+
"types": "./dist/index.d.ts",
|
|
25
|
+
"import": "./dist/index.js",
|
|
26
|
+
"require": "./dist/index.cjs"
|
|
27
|
+
},
|
|
28
|
+
"./url-state": {
|
|
29
|
+
"types": "./dist/useUrlState.d.ts",
|
|
30
|
+
"import": "./dist/useUrlState.js",
|
|
31
|
+
"require": "./dist/useUrlState.cjs"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"files": [
|
|
36
|
+
"dist",
|
|
37
|
+
"README.md"
|
|
38
|
+
],
|
|
39
|
+
"scripts": {
|
|
40
|
+
"build": "tsup",
|
|
41
|
+
"dev": "tsup --watch"
|
|
42
|
+
},
|
|
43
|
+
"dependencies": {
|
|
44
|
+
"@iconify/react": "^5.2.0",
|
|
45
|
+
"@provex/utils": "workspace:*"
|
|
46
|
+
},
|
|
47
|
+
"peerDependencies": {
|
|
48
|
+
"@chakra-ui/react": "^2.0.0 || ^3.0.0",
|
|
49
|
+
"react": "^18.3.1",
|
|
50
|
+
"react-router-dom": "^6.0.0 || ^7.0.0",
|
|
51
|
+
"viem": "^2.0.0"
|
|
52
|
+
},
|
|
53
|
+
"peerDependenciesMeta": {
|
|
54
|
+
"@chakra-ui/react": {
|
|
55
|
+
"optional": true
|
|
56
|
+
},
|
|
57
|
+
"react-router-dom": {
|
|
58
|
+
"optional": true
|
|
59
|
+
},
|
|
60
|
+
"viem": {
|
|
61
|
+
"optional": true
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"devDependencies": {
|
|
65
|
+
"@chakra-ui/react": "^2.10.5",
|
|
66
|
+
"@types/react": "^18.3.3",
|
|
67
|
+
"react": "^18.3.1",
|
|
68
|
+
"react-router-dom": "^6.30.1",
|
|
69
|
+
"tsup": "^8.0.0",
|
|
70
|
+
"typescript": "^5.9.2",
|
|
71
|
+
"viem": "^2.40.2"
|
|
72
|
+
}
|
|
73
|
+
}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Shared UI components for ZKP2P applications.
|
|
3
|
+
*
|
|
4
|
+
* This package provides reusable React components used by both the main UI
|
|
5
|
+
* and the analytics dashboard. Components are designed to be:
|
|
6
|
+
* - Theme-agnostic (accept color props from host app)
|
|
7
|
+
* - Self-contained (minimal external dependencies)
|
|
8
|
+
* - Accessible (semantic HTML, keyboard support)
|
|
9
|
+
*
|
|
10
|
+
* @remarks
|
|
11
|
+
* Components requiring icons use Iconify. The host app should have
|
|
12
|
+
* @iconify/react installed.
|
|
13
|
+
*
|
|
14
|
+
* @packageDocumentation
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
export { Card, CardHorizontalRule } from "./Card";
|
|
18
|
+
export { CurrencyIcon } from "./CurrencyIcon";
|
|
19
|
+
export { DepositIdentifier, type DepositIdentifierProps } from "./DepositIdentifier";
|
|
20
|
+
export { FlagIcon } from "./FlagIcon";
|
|
21
|
+
export { MenuSelect, type MenuSelectProps, type MenuSelectOption, type MenuSelectColors, type MenuSelectTriggerProps } from "./MenuSelect";
|
|
22
|
+
export { MultiSelectFilter, type MultiSelectFilterProps, type MultiSelectFilterColors, type ItemStat } from "./MultiSelectFilter";
|
|
23
|
+
export { OverlappingStack, type OverlappingStackProps } from "./OverlappingStack";
|
|
24
|
+
export { PaymentCurrencyCombo, type PaymentCurrencyComboColors } from "./PaymentCurrencyCombo";
|
|
25
|
+
export { PaymentMethodIcon, type PaymentMethodIconProps, DEFAULT_PAYMENT_ICON, DEFAULT_PAYMENT_COLOR } from "./PaymentMethodIcon";
|
|
26
|
+
export { Popover, PopoverHeader, PopoverSection, PopoverFooter, type PopoverProps, type PopoverColors, type PopoverHeaderProps } from "./Popover";
|
|
27
|
+
export { ScrollContainer, injectScrollbarStyles, scrollbarClassName, type ScrollContainerProps } from "./ScrollContainer";
|
|
28
|
+
export { Tooltip, type TooltipProps } from "./Tooltip";
|
|
29
|
+
export { VersionBadge, type VersionBadgeColors, type Version } from "./VersionBadge";
|
|
30
|
+
|
|
31
|
+
// URL state hook moved to subpath export to keep react-router-dom out
|
|
32
|
+
// of default bundle. Consumers who need it: import from '@provex/components/url-state'.
|