@stokr/components-library 3.0.16-alpha.5 → 3.0.16-alpha.6
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 +261 -262
- package/dist/auth/index.js +1 -1
- package/dist/index.js +2 -2
- package/dist/{main-flow-CEV3qVYo.js → main-flow-DZCI5ZeQ.js} +1026 -1025
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,262 +1,261 @@
|
|
|
1
|
-
# @stokr/components-library
|
|
2
|
-
|
|
3
|
-
React component library for STOKR applications. Includes modals, forms, buttons, tables, and shared styles.
|
|
4
|
-
|
|
5
|
-
## Table of contents
|
|
6
|
-
|
|
7
|
-
- [Installation](#installation)
|
|
8
|
-
- [How to start](#how-to-start)
|
|
9
|
-
- [Configuration](#configuration)
|
|
10
|
-
- [Runtime config (npm consumers)](#runtime-config)
|
|
11
|
-
- [Ionicons](#ionicons)
|
|
12
|
-
- [React Router](#react-router)
|
|
13
|
-
- [Troubleshooting](#troubleshooting)
|
|
14
|
-
- [Development & publishing](#development--publishing)
|
|
15
|
-
|
|
16
|
-
---
|
|
17
|
-
|
|
18
|
-
## Installation
|
|
19
|
-
|
|
20
|
-
```bash
|
|
21
|
-
npm install @stokr/components-library
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
**Peer dependencies** (install in your app if not already present):
|
|
25
|
-
|
|
26
|
-
```bash
|
|
27
|
-
npm install react react-dom styled-components react-router-dom
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
- **React** 18 or 19
|
|
31
|
-
- **styled-components** 6.x
|
|
32
|
-
- **react-router-dom** 6.x (required if you use routing-dependent components)
|
|
33
|
-
|
|
34
|
-
---
|
|
35
|
-
|
|
36
|
-
## How to start
|
|
37
|
-
|
|
38
|
-
### 1. Install the package and peers
|
|
39
|
-
|
|
40
|
-
```bash
|
|
41
|
-
npm install @stokr/components-library react react-dom styled-components react-router-dom
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
### 2. Wrap your app with a Router (if you use routing)
|
|
45
|
-
|
|
46
|
-
Components that use navigation (e.g. `MainMenu`, `LearnMore`, `HeaderHo`) must live inside a React Router:
|
|
47
|
-
|
|
48
|
-
```jsx
|
|
49
|
-
// main.jsx or App.jsx
|
|
50
|
-
import { BrowserRouter } from 'react-router-dom'
|
|
51
|
-
import App from './App'
|
|
52
|
-
|
|
53
|
-
root.render(
|
|
54
|
-
<BrowserRouter>
|
|
55
|
-
<App />
|
|
56
|
-
</BrowserRouter>,
|
|
57
|
-
)
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
### 3. (Optional) Add Ionicons for icons
|
|
61
|
-
|
|
62
|
-
If you use **Modal**, **ConfirmModal**, **BackButton**, **Select**, **InfoIcon**, etc., add the icon styles once at the root:
|
|
63
|
-
|
|
64
|
-
```jsx
|
|
65
|
-
import { IoniconsStyles } from '@stokr/components-library'
|
|
66
|
-
|
|
67
|
-
function App() {
|
|
68
|
-
return (
|
|
69
|
-
<>
|
|
70
|
-
<IoniconsStyles />
|
|
71
|
-
{/* your app */}
|
|
72
|
-
</>
|
|
73
|
-
)
|
|
74
|
-
}
|
|
75
|
-
```
|
|
76
|
-
|
|
77
|
-
You can skip this; the library will inject icon styles when you first use a component that needs them.
|
|
78
|
-
|
|
79
|
-
### 4. Import and use components
|
|
80
|
-
|
|
81
|
-
```jsx
|
|
82
|
-
import { ConfirmModal, Button } from '@stokr/components-library'
|
|
83
|
-
|
|
84
|
-
function MyPage() {
|
|
85
|
-
const [open, setOpen] = useState(false)
|
|
86
|
-
return (
|
|
87
|
-
<>
|
|
88
|
-
<Button onClick={() => setOpen(true)}>Open</Button>
|
|
89
|
-
<ConfirmModal isOpen={open} onClose={() => setOpen(false)} onConfirm={() => {}} title="Confirm?" />
|
|
90
|
-
</>
|
|
91
|
-
)
|
|
92
|
-
}
|
|
93
|
-
```
|
|
94
|
-
|
|
95
|
-
---
|
|
96
|
-
|
|
97
|
-
## Configuration
|
|
98
|
-
|
|
99
|
-
### Runtime config (required when consuming as npm package) {#runtime-config}
|
|
100
|
-
|
|
101
|
-
Since v3.0.16, the library uses a **runtime config** system. When this package is consumed by an external Vite app, `import.meta.env` values are baked at **library build time** and do not reflect the consuming app's `.env` file. Pass a `config` prop to `<AuthProvider>` so API URLs, Firebase credentials, and cookie domain are resolved from **your** environment:
|
|
102
|
-
|
|
103
|
-
```jsx
|
|
104
|
-
import { AuthProvider } from '@stokr/components-library'
|
|
105
|
-
|
|
106
|
-
function App() {
|
|
107
|
-
return (
|
|
108
|
-
<AuthProvider
|
|
109
|
-
config={{
|
|
110
|
-
apiUrl: import.meta.env.VITE_API_URL,
|
|
111
|
-
baseUrlPublic: import.meta.env.VITE_BASE_URL_PUBLIC,
|
|
112
|
-
cookieDomain: import.meta.env.VITE_COOKIE_DOMAIN,
|
|
113
|
-
websiteDomain: import.meta.env.VITE_WEBSITE_DOMAIN,
|
|
114
|
-
photoApiUrl: import.meta.env.VITE_PHOTO_API_URL,
|
|
115
|
-
firebase: {
|
|
116
|
-
apiKey: import.meta.env.VITE_FIREBASE_API_KEY,
|
|
117
|
-
authDomain: import.meta.env.VITE_FIREBASE_AUTH_DOMAIN,
|
|
118
|
-
projectId: import.meta.env.VITE_FIREBASE_PROJECT_ID,
|
|
119
|
-
storageBucket: import.meta.env.VITE_FIREBASE_STORAGE_BUCKET,
|
|
120
|
-
messagingSenderId: import.meta.env.VITE_FIREBASE_MESSAGING_SENDER_ID,
|
|
121
|
-
appId: import.meta.env.VITE_FIREBASE_APP_ID,
|
|
122
|
-
measurementId: import.meta.env.VITE_FIREBASE_MEASUREMENT_ID,
|
|
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
|
-
|
|
|
161
|
-
| **
|
|
162
|
-
| **
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
- [How to publish a React component library](https://medium.com/better-programming/how-to-publish-a-react-component-library-c89a07566770)
|
|
1
|
+
# @stokr/components-library
|
|
2
|
+
|
|
3
|
+
React component library for STOKR applications. Includes modals, forms, buttons, tables, and shared styles.
|
|
4
|
+
|
|
5
|
+
## Table of contents
|
|
6
|
+
|
|
7
|
+
- [Installation](#installation)
|
|
8
|
+
- [How to start](#how-to-start)
|
|
9
|
+
- [Configuration](#configuration)
|
|
10
|
+
- [Runtime config (npm consumers)](#runtime-config)
|
|
11
|
+
- [Ionicons](#ionicons)
|
|
12
|
+
- [React Router](#react-router)
|
|
13
|
+
- [Troubleshooting](#troubleshooting)
|
|
14
|
+
- [Development & publishing](#development--publishing)
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
## Installation
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
npm install @stokr/components-library
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
**Peer dependencies** (install in your app if not already present):
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
npm install react react-dom styled-components react-router-dom
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
- **React** 18 or 19
|
|
31
|
+
- **styled-components** 6.x
|
|
32
|
+
- **react-router-dom** 6.x (required if you use routing-dependent components)
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
## How to start
|
|
37
|
+
|
|
38
|
+
### 1. Install the package and peers
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
npm install @stokr/components-library react react-dom styled-components react-router-dom
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
### 2. Wrap your app with a Router (if you use routing)
|
|
45
|
+
|
|
46
|
+
Components that use navigation (e.g. `MainMenu`, `LearnMore`, `HeaderHo`) must live inside a React Router:
|
|
47
|
+
|
|
48
|
+
```jsx
|
|
49
|
+
// main.jsx or App.jsx
|
|
50
|
+
import { BrowserRouter } from 'react-router-dom'
|
|
51
|
+
import App from './App'
|
|
52
|
+
|
|
53
|
+
root.render(
|
|
54
|
+
<BrowserRouter>
|
|
55
|
+
<App />
|
|
56
|
+
</BrowserRouter>,
|
|
57
|
+
)
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
### 3. (Optional) Add Ionicons for icons
|
|
61
|
+
|
|
62
|
+
If you use **Modal**, **ConfirmModal**, **BackButton**, **Select**, **InfoIcon**, etc., add the icon styles once at the root:
|
|
63
|
+
|
|
64
|
+
```jsx
|
|
65
|
+
import { IoniconsStyles } from '@stokr/components-library'
|
|
66
|
+
|
|
67
|
+
function App() {
|
|
68
|
+
return (
|
|
69
|
+
<>
|
|
70
|
+
<IoniconsStyles />
|
|
71
|
+
{/* your app */}
|
|
72
|
+
</>
|
|
73
|
+
)
|
|
74
|
+
}
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
You can skip this; the library will inject icon styles when you first use a component that needs them.
|
|
78
|
+
|
|
79
|
+
### 4. Import and use components
|
|
80
|
+
|
|
81
|
+
```jsx
|
|
82
|
+
import { ConfirmModal, Button } from '@stokr/components-library'
|
|
83
|
+
|
|
84
|
+
function MyPage() {
|
|
85
|
+
const [open, setOpen] = useState(false)
|
|
86
|
+
return (
|
|
87
|
+
<>
|
|
88
|
+
<Button onClick={() => setOpen(true)}>Open</Button>
|
|
89
|
+
<ConfirmModal isOpen={open} onClose={() => setOpen(false)} onConfirm={() => {}} title="Confirm?" />
|
|
90
|
+
</>
|
|
91
|
+
)
|
|
92
|
+
}
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
---
|
|
96
|
+
|
|
97
|
+
## Configuration
|
|
98
|
+
|
|
99
|
+
### Runtime config (required when consuming as npm package) {#runtime-config}
|
|
100
|
+
|
|
101
|
+
Since v3.0.16, the library uses a **runtime config** system. When this package is consumed by an external Vite app, `import.meta.env` values are baked at **library build time** and do not reflect the consuming app's `.env` file. Pass a `config` prop to `<AuthProvider>` so API URLs, Firebase credentials, and cookie domain are resolved from **your** environment:
|
|
102
|
+
|
|
103
|
+
```jsx
|
|
104
|
+
import { AuthProvider } from '@stokr/components-library'
|
|
105
|
+
|
|
106
|
+
function App() {
|
|
107
|
+
return (
|
|
108
|
+
<AuthProvider
|
|
109
|
+
config={{
|
|
110
|
+
apiUrl: import.meta.env.VITE_API_URL,
|
|
111
|
+
baseUrlPublic: import.meta.env.VITE_BASE_URL_PUBLIC,
|
|
112
|
+
cookieDomain: import.meta.env.VITE_COOKIE_DOMAIN,
|
|
113
|
+
websiteDomain: import.meta.env.VITE_WEBSITE_DOMAIN,
|
|
114
|
+
photoApiUrl: import.meta.env.VITE_PHOTO_API_URL,
|
|
115
|
+
firebase: {
|
|
116
|
+
apiKey: import.meta.env.VITE_FIREBASE_API_KEY,
|
|
117
|
+
authDomain: import.meta.env.VITE_FIREBASE_AUTH_DOMAIN,
|
|
118
|
+
projectId: import.meta.env.VITE_FIREBASE_PROJECT_ID,
|
|
119
|
+
storageBucket: import.meta.env.VITE_FIREBASE_STORAGE_BUCKET,
|
|
120
|
+
messagingSenderId: import.meta.env.VITE_FIREBASE_MESSAGING_SENDER_ID,
|
|
121
|
+
appId: import.meta.env.VITE_FIREBASE_APP_ID,
|
|
122
|
+
measurementId: import.meta.env.VITE_FIREBASE_MEASUREMENT_ID,
|
|
123
|
+
},
|
|
124
|
+
}}>
|
|
125
|
+
{/* your app */}
|
|
126
|
+
</AuthProvider>
|
|
127
|
+
)
|
|
128
|
+
}
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
| Prop key | Env variable it replaces | Purpose |
|
|
132
|
+
| --------------- | ------------------------ | ---------------------------------- |
|
|
133
|
+
| `apiUrl` | `VITE_API_URL` | Backend API base URL |
|
|
134
|
+
| `baseUrlPublic` | `VITE_BASE_URL_PUBLIC` | Public (no-auth) API base URL |
|
|
135
|
+
| `cookieDomain` | `VITE_COOKIE_DOMAIN` | Domain attribute for auth cookies |
|
|
136
|
+
| `websiteDomain` | `VITE_WEBSITE_DOMAIN` | Platform domain (redirects, links) |
|
|
137
|
+
| `photoApiUrl` | `VITE_PHOTO_API_URL` | Photo upload / avatar API URL |
|
|
138
|
+
| `firebase` | `VITE_FIREBASE_*` | Full Firebase config object |
|
|
139
|
+
|
|
140
|
+
> **Why is this needed?** With the old CRA / `react-scripts` build, Webpack re-processed library code through the consuming app's build pipeline, so the app's `.env` values were injected automatically. Vite treats npm packages as pre-built — `import.meta.env` values in the compiled library are frozen at library build time. The `config` prop passes them at runtime instead.
|
|
141
|
+
|
|
142
|
+
If you also need config values **before** `<AuthProvider>` mounts (e.g. for analytics init), you can call `configure()` directly:
|
|
143
|
+
|
|
144
|
+
```js
|
|
145
|
+
import { configure } from '@stokr/components-library'
|
|
146
|
+
|
|
147
|
+
configure({
|
|
148
|
+
apiUrl: import.meta.env.VITE_API_URL,
|
|
149
|
+
cookieDomain: import.meta.env.VITE_COOKIE_DOMAIN,
|
|
150
|
+
// ...
|
|
151
|
+
})
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
### Ionicons
|
|
155
|
+
|
|
156
|
+
Components such as **Modal**, **ConfirmModal**, **BackButton**, **InfoIcon**, **Select**, **MainMenu**, and **RegisterLiquidSteps** use [Ionicons](http://ionicons.com/). You can enable them in three ways:
|
|
157
|
+
|
|
158
|
+
| Approach | When to use |
|
|
159
|
+
| -------------------- | ----------------------------------------------------------------------------------------------------------------------------- |
|
|
160
|
+
| **Global injection** | Render `<IoniconsStyles />` once at app root. Full icon set, singleton. |
|
|
161
|
+
| **No setup** | Don’t render anything; styles inject on first use of an icon component. |
|
|
162
|
+
| **CSS import** | Prefer loading via CSS: `import '@stokr/components-library/styles.css'` or `import '@stokr/components-library/ionicons.css'`. |
|
|
163
|
+
|
|
164
|
+
**Global injection example:**
|
|
165
|
+
|
|
166
|
+
```jsx
|
|
167
|
+
import { IoniconsStyles } from '@stokr/components-library'
|
|
168
|
+
|
|
169
|
+
function App() {
|
|
170
|
+
return (
|
|
171
|
+
<>
|
|
172
|
+
<IoniconsStyles />
|
|
173
|
+
{/* your routes, layout, etc. */}
|
|
174
|
+
</>
|
|
175
|
+
)
|
|
176
|
+
}
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
If you use **Layout**, **GlobalStyle**, or need **Open Sans**, import the full styles once:
|
|
180
|
+
|
|
181
|
+
```js
|
|
182
|
+
import '@stokr/components-library/styles.css'
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
### React Router
|
|
186
|
+
|
|
187
|
+
Any component that uses `useNavigate()` or routing must be rendered inside a `Router` from `react-router-dom` (e.g. `BrowserRouter`). See [How to start – step 2](#2-wrap-your-app-with-a-router-if-you-use-routing).
|
|
188
|
+
|
|
189
|
+
---
|
|
190
|
+
|
|
191
|
+
## Troubleshooting
|
|
192
|
+
|
|
193
|
+
### "useNavigate() may be used only in the context of a \<Router\> component"
|
|
194
|
+
|
|
195
|
+
Wrap your app with a Router:
|
|
196
|
+
|
|
197
|
+
```jsx
|
|
198
|
+
import { BrowserRouter } from 'react-router-dom'
|
|
199
|
+
|
|
200
|
+
root.render(
|
|
201
|
+
<BrowserRouter>
|
|
202
|
+
<App />
|
|
203
|
+
</BrowserRouter>,
|
|
204
|
+
)
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
Install the peer dependency: `npm install react-router-dom`
|
|
208
|
+
|
|
209
|
+
### "Invalid hook call" / "Cannot read properties of null (reading 'use')"
|
|
210
|
+
|
|
211
|
+
Your app and the library must use the **same** React instance.
|
|
212
|
+
|
|
213
|
+
1. Install peer dependencies:
|
|
214
|
+
`npm install react react-dom styled-components`
|
|
215
|
+
|
|
216
|
+
2. **Vite apps** – add dedupe in `vite.config.js` or `vite.config.ts`:
|
|
217
|
+
|
|
218
|
+
```js
|
|
219
|
+
export default defineConfig({
|
|
220
|
+
resolve: {
|
|
221
|
+
dedupe: ['react', 'react-dom', 'styled-components'],
|
|
222
|
+
},
|
|
223
|
+
// ...rest of config
|
|
224
|
+
})
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
3. Reinstall or refresh the library after updating (e.g. `npm install` or clear cache and reinstall).
|
|
228
|
+
|
|
229
|
+
---
|
|
230
|
+
|
|
231
|
+
## Development & publishing
|
|
232
|
+
|
|
233
|
+
### Run Storybook
|
|
234
|
+
|
|
235
|
+
```bash
|
|
236
|
+
npm run storybook
|
|
237
|
+
```
|
|
238
|
+
|
|
239
|
+
Use **Story Source** for consumption examples and **Viewport** for different screen sizes.
|
|
240
|
+
|
|
241
|
+
### Build for distribution
|
|
242
|
+
|
|
243
|
+
```bash
|
|
244
|
+
npm run build:dist
|
|
245
|
+
```
|
|
246
|
+
|
|
247
|
+
This runs `vite build` and copies static assets to `dist/`.
|
|
248
|
+
|
|
249
|
+
### Publish a new version
|
|
250
|
+
|
|
251
|
+
1. Commit your changes.
|
|
252
|
+
2. Update [CHANGELOG.md](CHANGELOG.md) – add a new `# vX.Y.Z` section at the top with the list of changes.
|
|
253
|
+
3. Bump the version: `npm version <version>` (e.g. `npm version 3.0.7`).
|
|
254
|
+
4. (ensure you are authenticated) Run `npm login` to log first on NPM package (only needed one time a day)
|
|
255
|
+
5. Run `npm run pub` (will first run `npm run build:dist`).
|
|
256
|
+
|
|
257
|
+
Consumers can see what changed in each release in [CHANGELOG.md](CHANGELOG.md).
|
|
258
|
+
|
|
259
|
+
### Reference
|
|
260
|
+
|
|
261
|
+
- [How to publish a React component library](https://medium.com/better-programming/how-to-publish-a-react-component-library-c89a07566770)
|
package/dist/auth/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as o, a as e, b as t, c as n, s as A, D as r, d as i, e as u, f as F, L as d, g as h, h as l, i as g, S as C, j as L, k as E, l as S, m as c } from "../main-flow-
|
|
1
|
+
import { A as o, a as e, b as t, c as n, s as A, D as r, d as i, e as u, f as F, L as d, g as h, h as l, i as g, S as C, j as L, k as E, l as S, m as c } from "../main-flow-DZCI5ZeQ.js";
|
|
2
2
|
export {
|
|
3
3
|
o as Auth,
|
|
4
4
|
e as AuthConsumer,
|
package/dist/index.js
CHANGED
|
@@ -2,8 +2,8 @@ import { jsxs as o, jsx as e, Fragment as j } from "react/jsx-runtime";
|
|
|
2
2
|
import * as P from "react";
|
|
3
3
|
import VA, { useRef as lA, useEffect as $, PureComponent as xA, useMemo as We, useId as rt, useState as O, useCallback as AA, Fragment as NA, createContext as it, useContext as DA, memo as Zn, Component as Nn } from "react";
|
|
4
4
|
import V from "prop-types";
|
|
5
|
-
import { I as hA, r as h, t as d, n as QA, o as nA, C as y, B as K, p as PA, T as R, q as qe, u as oV, v as u, w as Wn, W as de, x as qn, F as Y, y as wA, z as ot, E as Un, G as gA, H as Ct, R as oA, J as at, K as dA, M as st, N as lt, O as BA, P as rA, Q as CV, U as WA, V as Rn, b as ce, X as Ue, Y as jA, Z as iA, _ as Bt, $ as Hn, a0 as dt, a1 as Me, m as Kn, c as Fn, a2 as jn, a3 as Oe, a4 as ct, a5 as Qt, a6 as Le, a7 as N, a8 as Gn, a9 as Et, aa as Yn, ab as aV, ac as It, ad as pt, k as $n, ae as _n, af as Ag, ag as sV, ah as eg, ai as Vg, e as tg, i as ng, aj as gg, ak as rg, al as ig, am as og } from "./main-flow-
|
|
6
|
-
import { an as kQ, A as zQ, a as xQ, ao as DQ, ap as PQ, aq as SQ, ar as TQ, as as MQ, at as OQ, au as LQ, av as JQ, aw as XQ, ax as ZQ, ay as NQ, s as WQ, az as qQ, aA as UQ, D as RQ, aB as HQ, aC as KQ, d as FQ, aD as jQ, aE as GQ, aF as YQ, aG as $Q, aH as _Q, aI as AE, aJ as eE, aK as VE, aL as tE, aM as nE, aN as gE, aO as rE, aP as iE, aQ as oE, aR as CE, f as aE, aS as sE, aT as lE, aU as BE, L as dE, aV as cE, aW as QE, g as EE, aX as IE, h as pE, aY as uE, aZ as mE, a_ as fE, a$ as wE, b0 as hE, b1 as vE, b2 as bE, b3 as yE, b4 as kE, b5 as zE, b6 as xE, b7 as DE, b8 as PE, b9 as SE, ba as TE, bb as ME, bc as OE, bd as LE, be as JE, bf as XE, bg as ZE, bh as NE, bi as WE, bj as qE, bk as UE, bl as RE, bm as HE, bn as KE, bo as FE, S as jE, j as GE, bp as YE, bq as $E, br as _E, bs as AI, bt as eI, bu as VI, bv as tI, bw as nI, bx as gI, by as rI, l as iI, bz as oI, bA as CI, bB as aI, bC as sI, bD as lI, bE as BI, bF as dI, bG as cI, bH as QI, bI as EI, bJ as II, bK as pI, bL as uI, bM as mI, bN as fI, bO as wI, bP as hI, bQ as vI, bR as bI, bS as yI, bT as kI, bU as zI, bV as xI, bW as DI, bX as PI, bY as SI } from "./main-flow-
|
|
5
|
+
import { I as hA, r as h, t as d, n as QA, o as nA, C as y, B as K, p as PA, T as R, q as qe, u as oV, v as u, w as Wn, W as de, x as qn, F as Y, y as wA, z as ot, E as Un, G as gA, H as Ct, R as oA, J as at, K as dA, M as st, N as lt, O as BA, P as rA, Q as CV, U as WA, V as Rn, b as ce, X as Ue, Y as jA, Z as iA, _ as Bt, $ as Hn, a0 as dt, a1 as Me, m as Kn, c as Fn, a2 as jn, a3 as Oe, a4 as ct, a5 as Qt, a6 as Le, a7 as N, a8 as Gn, a9 as Et, aa as Yn, ab as aV, ac as It, ad as pt, k as $n, ae as _n, af as Ag, ag as sV, ah as eg, ai as Vg, e as tg, i as ng, aj as gg, ak as rg, al as ig, am as og } from "./main-flow-DZCI5ZeQ.js";
|
|
6
|
+
import { an as kQ, A as zQ, a as xQ, ao as DQ, ap as PQ, aq as SQ, ar as TQ, as as MQ, at as OQ, au as LQ, av as JQ, aw as XQ, ax as ZQ, ay as NQ, s as WQ, az as qQ, aA as UQ, D as RQ, aB as HQ, aC as KQ, d as FQ, aD as jQ, aE as GQ, aF as YQ, aG as $Q, aH as _Q, aI as AE, aJ as eE, aK as VE, aL as tE, aM as nE, aN as gE, aO as rE, aP as iE, aQ as oE, aR as CE, f as aE, aS as sE, aT as lE, aU as BE, L as dE, aV as cE, aW as QE, g as EE, aX as IE, h as pE, aY as uE, aZ as mE, a_ as fE, a$ as wE, b0 as hE, b1 as vE, b2 as bE, b3 as yE, b4 as kE, b5 as zE, b6 as xE, b7 as DE, b8 as PE, b9 as SE, ba as TE, bb as ME, bc as OE, bd as LE, be as JE, bf as XE, bg as ZE, bh as NE, bi as WE, bj as qE, bk as UE, bl as RE, bm as HE, bn as KE, bo as FE, S as jE, j as GE, bp as YE, bq as $E, br as _E, bs as AI, bt as eI, bu as VI, bv as tI, bw as nI, bx as gI, by as rI, l as iI, bz as oI, bA as CI, bB as aI, bC as sI, bD as lI, bE as BI, bF as dI, bG as cI, bH as QI, bI as EI, bJ as II, bK as pI, bL as uI, bM as mI, bN as fI, bO as wI, bP as hI, bQ as vI, bR as bI, bS as yI, bT as kI, bU as zI, bV as xI, bW as DI, bX as PI, bY as SI } from "./main-flow-DZCI5ZeQ.js";
|
|
7
7
|
import n, { css as v, styled as Cg, keyframes as SA } from "styled-components";
|
|
8
8
|
import { Scrollbars as ag } from "react-custom-scrollbars-2";
|
|
9
9
|
import { useTable as sg, useExpanded as lg, usePagination as Bg } from "react-table";
|