@story-protocol/ipkit 0.4.0-beta.10
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 +183 -0
- package/dist/components/Accordion/Accordion.d.ts +8 -0
- package/dist/components/Accordion/Accordion.d.ts.map +1 -0
- package/dist/components/Accordion/__docs__/Accordion.stories.d.ts +18 -0
- package/dist/components/Accordion/__docs__/Accordion.stories.d.ts.map +1 -0
- package/dist/components/Accordion/index.d.ts +2 -0
- package/dist/components/Accordion/index.d.ts.map +1 -0
- package/dist/components/Button/Button.d.ts +13 -0
- package/dist/components/Button/Button.d.ts.map +1 -0
- package/dist/components/Button/__docs__/Button.stories.d.ts +23 -0
- package/dist/components/Button/__docs__/Button.stories.d.ts.map +1 -0
- package/dist/components/Button/index.d.ts +2 -0
- package/dist/components/Button/index.d.ts.map +1 -0
- package/dist/components/Calendar/Calendar.d.ts +9 -0
- package/dist/components/Calendar/Calendar.d.ts.map +1 -0
- package/dist/components/Calendar/index.d.ts +1 -0
- package/dist/components/Calendar/index.d.ts.map +1 -0
- package/dist/components/Checkbox/Checkbox.d.ts +9 -0
- package/dist/components/Checkbox/Checkbox.d.ts.map +1 -0
- package/dist/components/Checkbox/__docs__/Checkbox.stories.d.ts +17 -0
- package/dist/components/Checkbox/__docs__/Checkbox.stories.d.ts.map +1 -0
- package/dist/components/Checkbox/index.d.ts +2 -0
- package/dist/components/Checkbox/index.d.ts.map +1 -0
- package/dist/components/DateInputPicker/DateInputPicker.d.ts +23 -0
- package/dist/components/DateInputPicker/DateInputPicker.d.ts.map +1 -0
- package/dist/components/DateInputPicker/__docs__/DateInputPicker.stories.d.ts +31 -0
- package/dist/components/DateInputPicker/__docs__/DateInputPicker.stories.d.ts.map +1 -0
- package/dist/components/DateInputPicker/dateUtils.d.ts +18 -0
- package/dist/components/DateInputPicker/dateUtils.d.ts.map +1 -0
- package/dist/components/DateInputPicker/index.d.ts +2 -0
- package/dist/components/DateInputPicker/index.d.ts.map +1 -0
- package/dist/components/Input/Input.d.ts +13 -0
- package/dist/components/Input/Input.d.ts.map +1 -0
- package/dist/components/Input/__docs__/Input.stories.d.ts +26 -0
- package/dist/components/Input/__docs__/Input.stories.d.ts.map +1 -0
- package/dist/components/Input/index.d.ts +2 -0
- package/dist/components/Input/index.d.ts.map +1 -0
- package/dist/components/Popover/Popover.d.ts +7 -0
- package/dist/components/Popover/Popover.d.ts.map +1 -0
- package/dist/components/Popover/__docs__/Popover.stories.d.ts +17 -0
- package/dist/components/Popover/__docs__/Popover.stories.d.ts.map +1 -0
- package/dist/components/Popover/index.d.ts +2 -0
- package/dist/components/Popover/index.d.ts.map +1 -0
- package/dist/components/RadioGroup/RadioGroup.d.ts +14 -0
- package/dist/components/RadioGroup/RadioGroup.d.ts.map +1 -0
- package/dist/components/RadioGroup/__docs__/RadioGroup.stories.d.ts +31 -0
- package/dist/components/RadioGroup/__docs__/RadioGroup.stories.d.ts.map +1 -0
- package/dist/components/RadioGroup/index.d.ts +2 -0
- package/dist/components/RadioGroup/index.d.ts.map +1 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/utility/If.d.ts +9 -0
- package/dist/components/utility/If.d.ts.map +1 -0
- package/dist/components/utility/context.d.ts +12 -0
- package/dist/components/utility/context.d.ts.map +1 -0
- package/dist/constants/api.d.ts +5 -0
- package/dist/constants/api.d.ts.map +1 -0
- package/dist/constants/chains.d.ts +10 -0
- package/dist/constants/chains.d.ts.map +1 -0
- package/dist/constants/index.d.ts +3 -0
- package/dist/constants/index.d.ts.map +1 -0
- package/dist/constants/pil-flavors.d.ts +7 -0
- package/dist/constants/pil-flavors.d.ts.map +1 -0
- package/dist/hooks/index.d.ts +16 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/stories/(components)/CopyText.d.ts +8 -0
- package/dist/hooks/stories/(components)/CopyText.d.ts.map +1 -0
- package/dist/hooks/stories/(components)/DataTable.d.ts +8 -0
- package/dist/hooks/stories/(components)/DataTable.d.ts.map +1 -0
- package/dist/hooks/stories/useCollection.stories.d.ts +20 -0
- package/dist/hooks/stories/useCollection.stories.d.ts.map +1 -0
- package/dist/hooks/stories/useCollections.stories.d.ts +28 -0
- package/dist/hooks/stories/useCollections.stories.d.ts.map +1 -0
- package/dist/hooks/stories/useDispute.stories.d.ts +20 -0
- package/dist/hooks/stories/useDispute.stories.d.ts.map +1 -0
- package/dist/hooks/stories/useDisputes.stories.d.ts +37 -0
- package/dist/hooks/stories/useDisputes.stories.d.ts.map +1 -0
- package/dist/hooks/stories/useIpAsset.stories.d.ts +21 -0
- package/dist/hooks/stories/useIpAsset.stories.d.ts.map +1 -0
- package/dist/hooks/stories/useIpAssetChildren.stories.d.ts +28 -0
- package/dist/hooks/stories/useIpAssetChildren.stories.d.ts.map +1 -0
- package/dist/hooks/stories/useIpAssetEdges.stories.d.ts +27 -0
- package/dist/hooks/stories/useIpAssetEdges.stories.d.ts.map +1 -0
- package/dist/hooks/stories/useIpAssetLicenses.stories.d.ts +20 -0
- package/dist/hooks/stories/useIpAssetLicenses.stories.d.ts.map +1 -0
- package/dist/hooks/stories/useIpAssetParents.stories.d.ts +28 -0
- package/dist/hooks/stories/useIpAssetParents.stories.d.ts.map +1 -0
- package/dist/hooks/stories/useIpAssets.stories.d.ts +38 -0
- package/dist/hooks/stories/useIpAssets.stories.d.ts.map +1 -0
- package/dist/hooks/stories/useIpAssetsByOwner.stories.d.ts +30 -0
- package/dist/hooks/stories/useIpAssetsByOwner.stories.d.ts.map +1 -0
- package/dist/hooks/stories/useLicenseTokens.stories.d.ts +38 -0
- package/dist/hooks/stories/useLicenseTokens.stories.d.ts.map +1 -0
- package/dist/hooks/stories/useSearch.stories.d.ts +19 -0
- package/dist/hooks/stories/useSearch.stories.d.ts.map +1 -0
- package/dist/hooks/stories/useTransaction.stories.d.ts +20 -0
- package/dist/hooks/stories/useTransaction.stories.d.ts.map +1 -0
- package/dist/hooks/stories/useTransactions.stories.d.ts +30 -0
- package/dist/hooks/stories/useTransactions.stories.d.ts.map +1 -0
- package/dist/hooks/useCollection.d.ts +10 -0
- package/dist/hooks/useCollection.d.ts.map +1 -0
- package/dist/hooks/useCollections.d.ts +11 -0
- package/dist/hooks/useCollections.d.ts.map +1 -0
- package/dist/hooks/useDispute.d.ts +8 -0
- package/dist/hooks/useDispute.d.ts.map +1 -0
- package/dist/hooks/useDisputes.d.ts +12 -0
- package/dist/hooks/useDisputes.d.ts.map +1 -0
- package/dist/hooks/useIpAsset.d.ts +11 -0
- package/dist/hooks/useIpAsset.d.ts.map +1 -0
- package/dist/hooks/useIpAssetChildren.d.ts +11 -0
- package/dist/hooks/useIpAssetChildren.d.ts.map +1 -0
- package/dist/hooks/useIpAssetEdges.d.ts +12 -0
- package/dist/hooks/useIpAssetEdges.d.ts.map +1 -0
- package/dist/hooks/useIpAssetLicenses.d.ts +10 -0
- package/dist/hooks/useIpAssetLicenses.d.ts.map +1 -0
- package/dist/hooks/useIpAssetParents.d.ts +11 -0
- package/dist/hooks/useIpAssetParents.d.ts.map +1 -0
- package/dist/hooks/useIpAssets.d.ts +14 -0
- package/dist/hooks/useIpAssets.d.ts.map +1 -0
- package/dist/hooks/useIpAssetsByOwner.d.ts +13 -0
- package/dist/hooks/useIpAssetsByOwner.d.ts.map +1 -0
- package/dist/hooks/useLicenseTokens.d.ts +12 -0
- package/dist/hooks/useLicenseTokens.d.ts.map +1 -0
- package/dist/hooks/useSearch.d.ts +10 -0
- package/dist/hooks/useSearch.d.ts.map +1 -0
- package/dist/hooks/useTransaction.d.ts +9 -0
- package/dist/hooks/useTransaction.d.ts.map +1 -0
- package/dist/hooks/useTransactions.d.ts +14 -0
- package/dist/hooks/useTransactions.d.ts.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/lib/api/apiClient.d.ts +7 -0
- package/dist/lib/api/apiClient.d.ts.map +1 -0
- package/dist/lib/api/getCollections.d.ts +346 -0
- package/dist/lib/api/getCollections.d.ts.map +1 -0
- package/dist/lib/api/getDispute.d.ts +134 -0
- package/dist/lib/api/getDispute.d.ts.map +1 -0
- package/dist/lib/api/getDisputes.d.ts +320 -0
- package/dist/lib/api/getDisputes.d.ts.map +1 -0
- package/dist/lib/api/getIpAssetEdges.d.ts +292 -0
- package/dist/lib/api/getIpAssetEdges.d.ts.map +1 -0
- package/dist/lib/api/getIpAssets.d.ts +675 -0
- package/dist/lib/api/getIpAssets.d.ts.map +1 -0
- package/dist/lib/api/getLicenseTokens.d.ts +273 -0
- package/dist/lib/api/getLicenseTokens.d.ts.map +1 -0
- package/dist/lib/api/getQuery.d.ts +18 -0
- package/dist/lib/api/getQuery.d.ts.map +1 -0
- package/dist/lib/api/getSearch.d.ts +246 -0
- package/dist/lib/api/getSearch.d.ts.map +1 -0
- package/dist/lib/api/getTransactions.d.ts +292 -0
- package/dist/lib/api/getTransactions.d.ts.map +1 -0
- package/dist/lib/api/index.d.ts +10 -0
- package/dist/lib/api/index.d.ts.map +1 -0
- package/dist/lib/api/listQuery.d.ts +16 -0
- package/dist/lib/api/listQuery.d.ts.map +1 -0
- package/dist/lib/functions/convertLicenseTermObject.d.ts +6 -0
- package/dist/lib/functions/convertLicenseTermObject.d.ts.map +1 -0
- package/dist/lib/index.d.ts +4 -0
- package/dist/lib/index.d.ts.map +1 -0
- package/dist/lib/utils.d.ts +12 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/providers/IpKitProvider/IpKitProvider.d.ts +25 -0
- package/dist/providers/IpKitProvider/IpKitProvider.d.ts.map +1 -0
- package/dist/providers/IpKitProvider/__docs__/Example.d.ts +11 -0
- package/dist/providers/IpKitProvider/__docs__/Example.d.ts.map +1 -0
- package/dist/providers/IpKitProvider/__docs__/IpKitProvider.stories.d.ts +37 -0
- package/dist/providers/IpKitProvider/__docs__/IpKitProvider.stories.d.ts.map +1 -0
- package/dist/providers/IpKitProvider/index.d.ts +2 -0
- package/dist/providers/IpKitProvider/index.d.ts.map +1 -0
- package/dist/providers/index.d.ts +2 -0
- package/dist/providers/index.d.ts.map +1 -0
- package/dist/server-types.d.ts +3868 -0
- package/dist/server.cjs.js +2 -0
- package/dist/server.cjs.js.map +1 -0
- package/dist/server.d.ts +4 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/server.esm.js +2 -0
- package/dist/server.esm.js.map +1 -0
- package/dist/stories/data/index.d.ts +9 -0
- package/dist/stories/data/index.d.ts.map +1 -0
- package/dist/storyprotocol-storykit.cjs.js +2 -0
- package/dist/storyprotocol-storykit.cjs.js.map +1 -0
- package/dist/storyprotocol-storykit.esm.js +2 -0
- package/dist/storyprotocol-storykit.esm.js.map +1 -0
- package/dist/types/assets.d.ts +58 -0
- package/dist/types/assets.d.ts.map +1 -0
- package/dist/types/chains.d.ts +25 -0
- package/dist/types/chains.d.ts.map +1 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/openapi.d.ts +31 -0
- package/dist/types/openapi.d.ts.map +1 -0
- package/dist/types/schema.d.ts +1168 -0
- package/dist/types/schema.d.ts.map +1 -0
- package/dist/types.d.ts +4004 -0
- package/package.json +132 -0
package/README.md
ADDED
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
[](https://ipkit.vercel.app/) [](https://www.npmjs.com/package/@story-protocol/ipkit)
|
|
2
|
+
|
|
3
|
+
# IpKit
|
|
4
|
+
|
|
5
|
+
IpKit provides a number of convenient [tanstack-query](https://tanstack.com/query/latest) hooks to quickly access Story's on-chain data, including assets, collections, transactions and more, via the [Protocol V4 API](https://docs.story.foundation/api-reference/protocol/introduction).
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
pnpm add @story-protocol/ipkit @tanstack/react-query
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## API Keys
|
|
14
|
+
|
|
15
|
+
To use IpKit you’ll need a Story Protocol API Key, you can request an API key by completing this [form](https://forms.gle/K6enzJw3cTK5sHYU7).
|
|
16
|
+
|
|
17
|
+
There is a public API key available in the [API docs](https://docs.story.foundation/api-reference/protocol/introduction) for testing mainnet requests.
|
|
18
|
+
|
|
19
|
+
## Getting Started
|
|
20
|
+
|
|
21
|
+
### Providers
|
|
22
|
+
|
|
23
|
+
To initialize IpKit in your project, you'll need to wrap your application in `QueryClientProvider` and `IpKitProvider`. The IpKit provider requires the `apiKey` as a prop. You can also choose to query the Aeneid testnet API by setting `isTestnet` to true.
|
|
24
|
+
|
|
25
|
+
```tsx
|
|
26
|
+
"use client"
|
|
27
|
+
|
|
28
|
+
import { IpKitProvider } from "@story-protocol/ipkit"
|
|
29
|
+
import { QueryClient, QueryClientProvider } from "@tanstack/react-query"
|
|
30
|
+
|
|
31
|
+
export default function Providers({ children }: { children: React.ReactNode }) {
|
|
32
|
+
const queryClient = new QueryClient()
|
|
33
|
+
return (
|
|
34
|
+
<QueryClientProvider client={queryClient}>
|
|
35
|
+
<IpKitProvider apiKey="YOUR_API_KEY">{children}</IpKitProvider>
|
|
36
|
+
</QueryClientProvider>
|
|
37
|
+
)
|
|
38
|
+
}
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### Hooks
|
|
42
|
+
|
|
43
|
+
You can now use the IpKit hooks to fetch IP data. Hooks return a [tanstack-query](https://tanstack.com/query/latest) `useQuery` function, in each hook you can pass [useQuery options](https://tanstack.com/query/latest/docs/framework/react/reference/useQuery) via the `queryOptions` property.
|
|
44
|
+
|
|
45
|
+
For hooks that return lists, for example `useIpAssets`, you can pass the [POST request body](https://docs.story.foundation/api-reference/protocol-v4/list-ip-assets) options via the `options` parameter.
|
|
46
|
+
|
|
47
|
+
For convenience, hooks expose the most commonly required body options in their parameters:
|
|
48
|
+
|
|
49
|
+
```tsx
|
|
50
|
+
// simple use case
|
|
51
|
+
const { data, isLoading } = useIpAssets()
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
```tsx
|
|
55
|
+
// fetch a collection's assets
|
|
56
|
+
const { data, isLoading } = useIpAssets({ tokenContract: "0x123" })
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
```tsx
|
|
60
|
+
// fetch using options and queryOptions
|
|
61
|
+
const { data, isLoading } = useIpAssets({
|
|
62
|
+
queryOptions: {
|
|
63
|
+
enabled: true,
|
|
64
|
+
refetchInterval: 1000,
|
|
65
|
+
},
|
|
66
|
+
options: {
|
|
67
|
+
pagination: {
|
|
68
|
+
limit: 10,
|
|
69
|
+
offset: 0,
|
|
70
|
+
},
|
|
71
|
+
orderBy: "descendantCount",
|
|
72
|
+
where: {
|
|
73
|
+
ownerAddress: "0x123",
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
})
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
```tsx
|
|
80
|
+
// fetch a single asset
|
|
81
|
+
const { data, isLoading } = useIpAsset({ ipId: "0x123" })
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
See the storybook for more details for each hook. The full list of hooks are:
|
|
85
|
+
|
|
86
|
+
- [useCollection](https://ipkit.vercel.app/?path=/story/hooks-usecollection--default)
|
|
87
|
+
- [useCollections](https://ipkit.vercel.app/?path=/story/hooks-usecollections--default)
|
|
88
|
+
- [useDispute](https://ipkit.vercel.app/?path=/story/hooks-usedispute--default)
|
|
89
|
+
- [useDisputes](https://ipkit.vercel.app/?path=/story/hooks-usedisputes--default)
|
|
90
|
+
- [useIpAsset](https://ipkit.vercel.app/?path=/story/hooks-useipasset--default)
|
|
91
|
+
- [useIpAssetChildren](https://ipkit.vercel.app/?path=/story/hooks-useipassetchildren--default)
|
|
92
|
+
- [useIpAssetEdges](https://ipkit.vercel.app/?path=/story/hooks-useipassetedges--default)
|
|
93
|
+
- [useIpAssetLicenses](https://ipkit.vercel.app/?path=/story/hooks-useipassetlicenses--default)
|
|
94
|
+
- [useIpAssetParents](https://ipkit.vercel.app/?path=/story/hooks-useipassetparents--default)
|
|
95
|
+
- [useIpAssets](https://ipkit.vercel.app/?path=/story/hooks-useipassets--default)
|
|
96
|
+
- [useIpAssetsByOwner](https://ipkit.vercel.app/?path=/story/hooks-useipassetsbyowner--default)
|
|
97
|
+
- [useSearch](https://ipkit.vercel.app/?path=/story/hooks-usesearch--default)
|
|
98
|
+
- [useTransaction](https://ipkit.vercel.app/?path=/story/hooks-usetransaction--default)
|
|
99
|
+
- [useTransactions](https://ipkit.vercel.app/?path=/story/hooks-usetransactions--default)
|
|
100
|
+
|
|
101
|
+
### useIpKit
|
|
102
|
+
|
|
103
|
+
You can also use the `useIpKit` hook to access data such as `apiBaseUrl`, `apiClient` (an [openapi-fetch](https://openapi-ts.dev/openapi-fetch/) client) and `chain` which includes chain data such as `id`, `name`, `rpcUrl` and `blockExplorerUrl`. View the full list in [storybook](https://ipkit.vercel.app/?path=/docs/providers-ipkitprovider--docs).
|
|
104
|
+
|
|
105
|
+
```tsx
|
|
106
|
+
const { apiBaseUrl, chain } = useIpKit()
|
|
107
|
+
const { id, name, rpcUrl } = chain
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
### Request functions
|
|
111
|
+
|
|
112
|
+
IpKit also exposes the functions used by each hook in case you require more flexibility, SSR or want to use a different kind of Tanstack Query hook. Since they're using openapi-fetch, each function requires both `apiKey` and the `apiClient`.
|
|
113
|
+
|
|
114
|
+
Create an API client with the `createApiClient` or import one for testnet or mainnet from IpKit.
|
|
115
|
+
|
|
116
|
+
```tsx
|
|
117
|
+
import { createApiClient } from "@story-protocol/ipkit"
|
|
118
|
+
|
|
119
|
+
const client = createApiClient(`https://api.storyapis.com/api/v4/`)
|
|
120
|
+
const assets = await getIpAssets({ apiKey: YOUR_API_KEY, apiClient: client })
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
```tsx
|
|
124
|
+
import { stagingClient } from "@story-protocol/ipkit"
|
|
125
|
+
|
|
126
|
+
const assets = await getIpAssets({
|
|
127
|
+
apiKey: YOUR_API_KEY,
|
|
128
|
+
apiClient: stagingClient,
|
|
129
|
+
ipIds: ["0x123"],
|
|
130
|
+
})
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
These functions also expose some of the POST request body options as function input for convenience. The full list of exported functions are:
|
|
134
|
+
|
|
135
|
+
- `getCollections`
|
|
136
|
+
- `getDispute`
|
|
137
|
+
- `getDisputes`
|
|
138
|
+
- `getIpAssetEdges`
|
|
139
|
+
- `getIpAssets`
|
|
140
|
+
- `getSearch`
|
|
141
|
+
- `getTransactions`
|
|
142
|
+
|
|
143
|
+
### SSR
|
|
144
|
+
|
|
145
|
+
If you want to use IpKit in a server component you should import from `@story-protocol/ipkit/server`, this also exports all the api functions and types, but omits hooks and providers which won't work server-side.
|
|
146
|
+
|
|
147
|
+
### TypeScript
|
|
148
|
+
|
|
149
|
+
IpKit uses [OpenAPI](https://www.openapis.org/) and [openapi-typescript](https://openapi-ts.dev/) to ensure up-to-date and consistent types, in-line with the API.
|
|
150
|
+
|
|
151
|
+
IpKit exports all the IP data types you would expect including:
|
|
152
|
+
|
|
153
|
+
`IPAsset` `IPAssetEdge` `IPTransaction` `IPSearchResult` `Collection` `CollectionMetadata` `License` `LicenseTerms` `LicensingConfig` `NFTMetadata` `InfringementStatus` `ModerationStatus` `ContractMetadata` `Dispute` `TransactionEventType`
|
|
154
|
+
|
|
155
|
+
The available options for each hook are exported as `[hookName]Options`, for example `UseIpAssetsOptions`
|
|
156
|
+
|
|
157
|
+
```ts
|
|
158
|
+
type UseIpAssetsOptions = {
|
|
159
|
+
ipIds?: Address[]
|
|
160
|
+
tokenContract?: Address
|
|
161
|
+
includeLicenses?: boolean
|
|
162
|
+
moderated?: boolean
|
|
163
|
+
options?: IpAssetsOptions
|
|
164
|
+
queryOptions?: IpQueryOptions
|
|
165
|
+
}
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
The options for each API request are exported as `[nameOfDataType]Options` for example `IpAssetsOptions`.
|
|
169
|
+
|
|
170
|
+
```ts
|
|
171
|
+
type IpAssetsOptions = {
|
|
172
|
+
includeLicenses?: boolean
|
|
173
|
+
moderated?: boolean
|
|
174
|
+
orderBy?: "blockNumber" | "descendantCount" | "createdAt"
|
|
175
|
+
orderDirection?: "desc" | "asc"
|
|
176
|
+
pagination?: { limit: number; offset: number }
|
|
177
|
+
where?: {
|
|
178
|
+
ipIds?: string[] | null
|
|
179
|
+
ownerAddress?: string
|
|
180
|
+
tokenContract?: string
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
```
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as AccordionPrimitive from "@radix-ui/react-accordion";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare const Accordion: React.ForwardRefExoticComponent<(AccordionPrimitive.AccordionSingleProps | AccordionPrimitive.AccordionMultipleProps) & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
declare const AccordionItem: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
declare const AccordionTrigger: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
6
|
+
declare const AccordionContent: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };
|
|
8
|
+
//# sourceMappingURL=Accordion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Accordion.d.ts","sourceRoot":"","sources":["../../../src/components/Accordion/Accordion.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,kBAAkB,MAAM,2BAA2B,CAAA;AAE/D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,QAAA,MAAM,SAAS,8JAA0B,CAAA;AAEzC,QAAA,MAAM,aAAa,iKASjB,CAAA;AAGF,QAAA,MAAM,gBAAgB,0KAiBpB,CAAA;AAGF,QAAA,MAAM,gBAAgB,oKAWpB,CAAA;AAIF,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/react";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: React.ForwardRefExoticComponent<(import("@radix-ui/react-accordion").AccordionSingleProps | import("@radix-ui/react-accordion").AccordionMultipleProps) & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
tags: string[];
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof meta>;
|
|
13
|
+
export declare const Default: Story;
|
|
14
|
+
export declare const Multiple: Story;
|
|
15
|
+
export declare const SingleItem: Story;
|
|
16
|
+
export declare const DefaultExpanded: Story;
|
|
17
|
+
export declare const CustomContent: Story;
|
|
18
|
+
//# sourceMappingURL=Accordion.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Accordion.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Accordion/__docs__/Accordion.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AACtD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,QAAA,MAAM,IAAI;;;;;;;CAOwB,CAAA;AAElC,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAiBlC,eAAO,MAAM,OAAO,EAAE,KAiBrB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KAgBtB,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KAiBxB,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,KAkB7B,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,KAwB3B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Accordion/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type VariantProps } from "class-variance-authority";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare const buttonVariants: (props?: ({
|
|
4
|
+
variant?: "primary" | "outline" | "ghost" | null | undefined;
|
|
5
|
+
size?: "medium" | "sm" | "lg" | "icon" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
+
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
8
|
+
asChild?: boolean;
|
|
9
|
+
isLoading?: boolean;
|
|
10
|
+
}
|
|
11
|
+
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
12
|
+
export { Button, buttonVariants };
|
|
13
|
+
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAO,MAAM,0BAA0B,CAAA;AAEjE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,QAAA,MAAM,cAAc;;;8EAuBnB,CAAA;AAED,MAAM,WAAW,WACf,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EACnD,YAAY,CAAC,OAAO,cAAc,CAAC;IACrC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB;AAED,QAAA,MAAM,MAAM,uFAUX,CAAA;AAGD,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { StoryObj } from "@storybook/react";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: import("react").ForwardRefExoticComponent<import("../Button").ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
tags: string[];
|
|
10
|
+
argTypes: {
|
|
11
|
+
variant: {
|
|
12
|
+
control: "select";
|
|
13
|
+
options: string[];
|
|
14
|
+
description: string;
|
|
15
|
+
defaultValue: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
args: {};
|
|
19
|
+
};
|
|
20
|
+
export default meta;
|
|
21
|
+
type Story = StoryObj<typeof meta>;
|
|
22
|
+
export declare const Basic: Story;
|
|
23
|
+
//# sourceMappingURL=Button.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/__docs__/Button.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAItD,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;CAgBqB,CAAA;AAE/B,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,KAAK,EAAE,KAOnB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { DayPicker } from "react-day-picker";
|
|
3
|
+
export type CalendarProps = React.ComponentProps<typeof DayPicker>;
|
|
4
|
+
declare function Calendar({ className, classNames, showOutsideDays, ...props }: CalendarProps): React.JSX.Element;
|
|
5
|
+
declare namespace Calendar {
|
|
6
|
+
var displayName: string;
|
|
7
|
+
}
|
|
8
|
+
export { Calendar };
|
|
9
|
+
//# sourceMappingURL=Calendar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Calendar.d.ts","sourceRoot":"","sources":["../../../src/components/Calendar/Calendar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAI5C,MAAM,MAAM,aAAa,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,CAAA;AAElE,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,eAAsB,EAAE,GAAG,KAAK,EAAE,EAAE,aAAa,qBA+D3F;kBA/DQ,QAAQ;;;AAkEjB,OAAO,EAAE,QAAQ,EAAE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Calendar/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
export interface CheckboxProps extends React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root> {
|
|
4
|
+
label?: React.ReactNode;
|
|
5
|
+
description?: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLButtonElement>>;
|
|
8
|
+
export { Checkbox };
|
|
9
|
+
//# sourceMappingURL=Checkbox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,iBAAiB,MAAM,0BAA0B,CAAA;AAE7D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,MAAM,WAAW,aAAc,SAAQ,KAAK,CAAC,wBAAwB,CAAC,OAAO,iBAAiB,CAAC,IAAI,CAAC;IAClG,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACvB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC9B;AACD,QAAA,MAAM,QAAQ,yFAuCZ,CAAA;AAGF,OAAO,EAAE,QAAQ,EAAE,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { StoryObj } from "@storybook/react";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: import("react").ForwardRefExoticComponent<import("../Checkbox").CheckboxProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
tags: string[];
|
|
10
|
+
argTypes: {};
|
|
11
|
+
args: {};
|
|
12
|
+
};
|
|
13
|
+
export default meta;
|
|
14
|
+
type Story = StoryObj<typeof meta>;
|
|
15
|
+
export declare const WithLabel: Story;
|
|
16
|
+
export declare const WithDescription: Story;
|
|
17
|
+
//# sourceMappingURL=Checkbox.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Checkbox.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Checkbox/__docs__/Checkbox.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAKtD,QAAA,MAAM,IAAI;;;;;;;;;CASuB,CAAA;AAEjC,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,SAAS,EAAE,KA+CvB,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,KAoB7B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface DateInputPickerProps {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
defaultOpen?: boolean;
|
|
5
|
+
initialValue?: Date;
|
|
6
|
+
baseDate?: Date;
|
|
7
|
+
maxDate?: Date;
|
|
8
|
+
}
|
|
9
|
+
export interface TriggerProps {
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export declare const DateInputPicker: {
|
|
13
|
+
({ children, defaultOpen, initialValue, baseDate, maxDate, }: DateInputPickerProps): React.JSX.Element;
|
|
14
|
+
Trigger: React.ForwardRefExoticComponent<TriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
15
|
+
Content: ({ presets }: ContentProps) => React.JSX.Element;
|
|
16
|
+
};
|
|
17
|
+
export interface ContentProps {
|
|
18
|
+
presets?: Array<{
|
|
19
|
+
label: string;
|
|
20
|
+
value: Date;
|
|
21
|
+
}>;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=DateInputPicker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DateInputPicker.d.ts","sourceRoot":"","sources":["../../../src/components/DateInputPicker/DateInputPicker.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA+B,MAAM,OAAO,CAAA;AAuBnD,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,YAAY,CAAC,EAAE,IAAI,CAAA;IACnB,QAAQ,CAAC,EAAE,IAAI,CAAA;IACf,OAAO,CAAC,EAAE,IAAI,CAAA;CACf;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAC1B;AAID,eAAO,MAAM,eAAe;kEAMzB,oBAAoB;;2BAmEO,YAAY;CA1BzC,CAAA;AAkBD,MAAM,WAAW,YAAY;IAC3B,OAAO,CAAC,EAAE,KAAK,CAAC;QACd,KAAK,EAAE,MAAM,CAAA;QACb,KAAK,EAAE,IAAI,CAAA;KACZ,CAAC,CAAA;CACH"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/react";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { DateInputPicker } from "../DateInputPicker";
|
|
4
|
+
interface DateInputPickerStoryProps extends React.ComponentProps<typeof DateInputPicker> {
|
|
5
|
+
maxDate?: Date;
|
|
6
|
+
}
|
|
7
|
+
declare const meta: {
|
|
8
|
+
title: string;
|
|
9
|
+
parameters: {
|
|
10
|
+
layout: string;
|
|
11
|
+
};
|
|
12
|
+
tags: string[];
|
|
13
|
+
args: {
|
|
14
|
+
defaultOpen: false;
|
|
15
|
+
};
|
|
16
|
+
argTypes: {
|
|
17
|
+
maxDate: {
|
|
18
|
+
control: "date";
|
|
19
|
+
};
|
|
20
|
+
defaultOpen: {
|
|
21
|
+
control: "boolean";
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export default meta;
|
|
26
|
+
type Story = StoryObj<DateInputPickerStoryProps>;
|
|
27
|
+
export declare const Basic: Story;
|
|
28
|
+
export declare const MaxDate: Story;
|
|
29
|
+
export declare const WithInitialValue: Story;
|
|
30
|
+
export declare const PresetExample: Story;
|
|
31
|
+
//# sourceMappingURL=DateInputPicker.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DateInputPicker.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/DateInputPicker/__docs__/DateInputPicker.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAEtD,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAEpD,UAAU,yBAA0B,SAAQ,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC;IACtF,OAAO,CAAC,EAAE,IAAI,CAAA;CACf;AACD,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;CAiBiC,CAAA;AAE3C,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,yBAAyB,CAAC,CAAA;AAEhD,eAAO,MAAM,KAAK,EAAE,KAenB,CAAA;AAED,eAAO,MAAM,OAAO,EAAE,KAsCrB,CAAA;AAED,eAAO,MAAM,gBAAgB,EAAE,KAyD9B,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,KA0B3B,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
interface ParsedDate {
|
|
2
|
+
month?: number;
|
|
3
|
+
day?: number;
|
|
4
|
+
year?: number;
|
|
5
|
+
}
|
|
6
|
+
export declare const dateUtils: {
|
|
7
|
+
isNumeric: (value: string) => boolean;
|
|
8
|
+
isValidMonthFormat: (month: string | undefined) => boolean;
|
|
9
|
+
isValidDayFormat: (day: string | undefined) => boolean;
|
|
10
|
+
isValidYearFormat: (year: string | undefined) => boolean;
|
|
11
|
+
parse: (value: string) => ParsedDate;
|
|
12
|
+
hasRequiredFields: (parsedDate: ParsedDate) => boolean;
|
|
13
|
+
createDate: (parsedDate: ParsedDate, defaultYear: number) => Date;
|
|
14
|
+
isValidDate: (date: Date, month: number, day: number) => boolean;
|
|
15
|
+
isWithinMaxDate: (date: Date, maxDate: Date) => boolean;
|
|
16
|
+
};
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=dateUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dateUtils.d.ts","sourceRoot":"","sources":["../../../src/components/DateInputPicker/dateUtils.ts"],"names":[],"mappings":"AAAA,UAAU,UAAU;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED,eAAO,MAAM,SAAS;uBACD,MAAM,KAAG,OAAO;gCAIP,MAAM,GAAG,SAAS,KAAG,OAAO;4BAQhC,MAAM,GAAG,SAAS,KAAG,OAAO;8BAQ1B,MAAM,GAAG,SAAS,KAAG,OAAO;mBAOvC,MAAM,KAAG,UAAU;oCAWF,UAAU,KAAG,OAAO;6BAI3B,UAAU,eAAe,MAAM,KAAG,IAAI;wBAK3C,IAAI,SAAS,MAAM,OAAO,MAAM,KAAG,OAAO;4BAGtC,IAAI,WAAW,IAAI,KAAG,OAAO;CAMtD,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/DateInputPicker/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { VariantProps } from "class-variance-authority";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare const inputVariants: (props?: ({
|
|
4
|
+
size?: "medium" | "sm" | "lg" | null | undefined;
|
|
5
|
+
variant?: "outline" | "solid" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
+
export interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "size">, VariantProps<typeof inputVariants> {
|
|
8
|
+
leftAddon?: React.ReactNode;
|
|
9
|
+
rightAddon?: React.ReactNode;
|
|
10
|
+
}
|
|
11
|
+
declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
12
|
+
export { Input };
|
|
13
|
+
//# sourceMappingURL=Input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../src/components/Input/Input.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAO,MAAM,0BAA0B,CAAA;AAC5D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,QAAA,MAAM,aAAa;;;8EAgClB,CAAA;AA+CD,MAAM,WAAW,UACf,SAAQ,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC,EAC/D,YAAY,CAAC,OAAO,aAAa,CAAC;IACpC,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC3B,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC7B;AAED,QAAA,MAAM,KAAK,qFAwCT,CAAA;AAIF,OAAO,EAAE,KAAK,EAAE,CAAA"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { StoryObj } from "@storybook/react";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: import("react").ForwardRefExoticComponent<import("../Input").InputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
tags: string[];
|
|
10
|
+
argTypes: {
|
|
11
|
+
size: {
|
|
12
|
+
options: string[];
|
|
13
|
+
control: {
|
|
14
|
+
type: "radio";
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
args: {};
|
|
19
|
+
};
|
|
20
|
+
export default meta;
|
|
21
|
+
type Story = StoryObj<typeof meta>;
|
|
22
|
+
export declare const Basic: Story;
|
|
23
|
+
export declare const LeftAddon: Story;
|
|
24
|
+
export declare const RightAddon: Story;
|
|
25
|
+
export declare const NumberType: Story;
|
|
26
|
+
//# sourceMappingURL=Input.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Input.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/__docs__/Input.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAItD,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;CAcoB,CAAA;AAE9B,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,KAAK,EAAE,KAInB,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,KAKvB,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KAKxB,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KAMxB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Input/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare const Popover: React.FC<PopoverPrimitive.PopoverProps>;
|
|
4
|
+
declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
5
|
+
declare const PopoverContent: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
export { Popover, PopoverTrigger, PopoverContent };
|
|
7
|
+
//# sourceMappingURL=Popover.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../../src/components/Popover/Popover.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAA;AAC3D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,QAAA,MAAM,OAAO,yCAAwB,CAAA;AAErC,QAAA,MAAM,cAAc,gHAA2B,CAAA;AAE/C,QAAA,MAAM,cAAc,gKAkBlB,CAAA;AAGF,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/react";
|
|
2
|
+
import React from "react";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: React.FC<import("@radix-ui/react-popover").PopoverProps>;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
tags: string[];
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof meta>;
|
|
13
|
+
export declare const Default: Story;
|
|
14
|
+
export declare const TopPosition: Story;
|
|
15
|
+
export declare const LeftAligned: Story;
|
|
16
|
+
export declare const CustomOffset: Story;
|
|
17
|
+
//# sourceMappingURL=Popover.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Popover.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Popover/__docs__/Popover.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AACtD,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,QAAA,MAAM,IAAI;;;;;;;CAOsB,CAAA;AAEhC,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,OAAO,EAAE,KAYrB,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,KAYzB,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,KAYzB,CAAA;AAED,eAAO,MAAM,YAAY,EAAE,KAY1B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Popover/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare const RadioGroup: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
export interface RadioGroupItemProps extends React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item> {
|
|
5
|
+
description?: string;
|
|
6
|
+
label: string;
|
|
7
|
+
}
|
|
8
|
+
declare const RadioGroupItem: React.ForwardRefExoticComponent<RadioGroupItemProps & React.RefAttributes<HTMLButtonElement>>;
|
|
9
|
+
declare const RadioGroupItemWithDescription: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & React.RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
10
|
+
label: string;
|
|
11
|
+
description?: string | undefined;
|
|
12
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
13
|
+
export { RadioGroup, RadioGroupItem, RadioGroupItemWithDescription };
|
|
14
|
+
//# sourceMappingURL=RadioGroup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RadioGroup.d.ts","sourceRoot":"","sources":["../../../src/components/RadioGroup/RadioGroup.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,mBAAmB,MAAM,6BAA6B,CAAA;AAElE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,QAAA,MAAM,UAAU,+JAKd,CAAA;AAGF,MAAM,WAAW,mBAAoB,SAAQ,KAAK,CAAC,wBAAwB,CAAC,OAAO,mBAAmB,CAAC,IAAI,CAAC;IAC1G,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,KAAK,EAAE,MAAM,CAAA;CACd;AACD,QAAA,MAAM,cAAc,+FAuBnB,CAAA;AAGD,QAAA,MAAM,6BAA6B;WAGxB,MAAM;;2CAwBf,CAAA;AAGF,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,6BAA6B,EAAE,CAAA"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/react";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-radio-group").RadioGroupProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
tags: string[];
|
|
10
|
+
argTypes: {
|
|
11
|
+
defaultValue: {
|
|
12
|
+
control: "select";
|
|
13
|
+
options: string[];
|
|
14
|
+
description: string;
|
|
15
|
+
};
|
|
16
|
+
disabled: {
|
|
17
|
+
control: "boolean";
|
|
18
|
+
description: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
args: {
|
|
22
|
+
defaultValue: string;
|
|
23
|
+
disabled: false;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
export default meta;
|
|
27
|
+
type Story = StoryObj<typeof meta>;
|
|
28
|
+
export declare const Basic: Story;
|
|
29
|
+
export declare const WithDescriptions: Story;
|
|
30
|
+
export declare const Disabled: Story;
|
|
31
|
+
//# sourceMappingURL=RadioGroup.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RadioGroup.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/RadioGroup/__docs__/RadioGroup.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AACtD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;CAsByB,CAAA;AAEnC,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,KAAK,EAAE,KAWnB,CAAA;AAED,eAAO,MAAM,gBAAgB,EAAE,KAW9B,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KAWtB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/RadioGroup/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,CAAA"}
|