gentiq 0.7.29 → 0.7.31
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 +12 -1
- package/dist/{checkbox-BNiSskM4.js → checkbox-CXJMAW8-.js} +1129 -1094
- package/dist/gentiq-admin.es.js +906 -822
- package/dist/gentiq-index.es.js +697 -687
- package/dist/gentiq.css +1 -1
- package/dist/src/components/ThemeProvider.d.ts +1 -1
- package/dist/src/lib/errors.d.ts +2 -1
- package/dist/src/locales/en.json.d.ts +11 -1
- package/dist/src/locales/fa.json.d.ts +11 -1
- package/dist/src/types.d.ts +7 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -25,7 +25,10 @@ import 'gentiq/style.css';
|
|
|
25
25
|
|
|
26
26
|
export default function App() {
|
|
27
27
|
return (
|
|
28
|
-
<GentiqProvider
|
|
28
|
+
<GentiqProvider
|
|
29
|
+
api={{ authAdapter: LocalStorageAuthAdapter }}
|
|
30
|
+
app={{ version: '1.2.3' }}
|
|
31
|
+
>
|
|
29
32
|
<BrowserRouter>
|
|
30
33
|
<Routes>
|
|
31
34
|
<Route path="/login" element={<UserLoginPage />} />
|
|
@@ -41,6 +44,8 @@ export default function App() {
|
|
|
41
44
|
}
|
|
42
45
|
```
|
|
43
46
|
|
|
47
|
+
If you already expose your app version at build time, pass that value here so Gentiq reuses the same source of truth.
|
|
48
|
+
|
|
44
49
|
---
|
|
45
50
|
|
|
46
51
|
## 🎨 Extreme Customization (Slots)
|
|
@@ -145,6 +150,7 @@ Support multiple languages (including RTL) and customize your brand's unique loo
|
|
|
145
150
|
```tsx
|
|
146
151
|
<GentiqProvider
|
|
147
152
|
theme={{
|
|
153
|
+
defaultTheme: 'system',
|
|
148
154
|
accent: '#6366f1',
|
|
149
155
|
radius: 20,
|
|
150
156
|
typography: {
|
|
@@ -165,6 +171,11 @@ Support multiple languages (including RTL) and customize your brand's unique loo
|
|
|
165
171
|
</GentiqProvider>
|
|
166
172
|
```
|
|
167
173
|
|
|
174
|
+
`defaultTheme` accepts `system`, `light`, or `dark`. Appearance preferences are
|
|
175
|
+
resolved in this order: the user's saved preference, the defaults configured in
|
|
176
|
+
the admin settings page, the `theme` values passed to `GentiqProvider`, and
|
|
177
|
+
finally Gentiq's built-in defaults.
|
|
178
|
+
|
|
168
179
|
---
|
|
169
180
|
|
|
170
181
|
## 👥 Custom User Metadata Fields
|