@selfhelp/shared 1.2.0 → 1.2.2
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/CHANGELOG.md +231 -182
- package/README.md +292 -287
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/plugin-sdk/index.d.mts +26 -12
- package/dist/plugin-sdk/index.d.ts +26 -12
- package/dist/registry/index.d.mts +2 -2
- package/dist/registry/index.d.ts +2 -2
- package/dist/{styles.registry-C3bux91U.d.mts → styles.registry-DVGOrw1_.d.mts} +1 -0
- package/dist/{styles.registry-Cr961HQ0.d.ts → styles.registry-wVJpIkAh.d.ts} +1 -0
- package/package.json +93 -93
- package/src/plugin-sdk/registry.ts +22 -11
- package/src/types/styles/auth.ts +1 -0
package/README.md
CHANGED
|
@@ -1,287 +1,292 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
-
|
|
18
|
-
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
- `
|
|
45
|
-
- `
|
|
46
|
-
- `
|
|
47
|
-
- `
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
|
57
|
-
|
|
|
58
|
-
| `src/
|
|
59
|
-
| `src/
|
|
60
|
-
| `src/
|
|
61
|
-
| `src/
|
|
62
|
-
| `src/
|
|
63
|
-
| `src/
|
|
64
|
-
| `src/
|
|
65
|
-
| `src/
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
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
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
```
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
```
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
1
|
+
<!--
|
|
2
|
+
SPDX-FileCopyrightText: 2026 Humdek, University of Bern
|
|
3
|
+
SPDX-License-Identifier: MPL-2.0
|
|
4
|
+
-->
|
|
5
|
+
|
|
6
|
+
# @selfhelp/shared
|
|
7
|
+
|
|
8
|
+
`@selfhelp/shared` is the shared TypeScript foundation for the SelfHelp ecosystem.
|
|
9
|
+
It provides the common contracts, registries, theme tokens, and small runtime helpers
|
|
10
|
+
that keep the web frontend and mobile app aligned.
|
|
11
|
+
|
|
12
|
+
This package exists so both clients can depend on one source of truth for:
|
|
13
|
+
|
|
14
|
+
- CMS-driven page and style types
|
|
15
|
+
- API request and response contracts
|
|
16
|
+
- shared theme tokens and Tailwind preset values
|
|
17
|
+
- condition and interpolation helpers that mirror backend behavior
|
|
18
|
+
- CMS class allow-listing and asset URL utilities
|
|
19
|
+
|
|
20
|
+
It is used by:
|
|
21
|
+
|
|
22
|
+
- `sh-selfhelp_frontend`
|
|
23
|
+
- `sh-selfhelp_mobile`
|
|
24
|
+
|
|
25
|
+
## Why this library exists
|
|
26
|
+
|
|
27
|
+
Without a shared package, the web and mobile apps would each need to duplicate
|
|
28
|
+
critical domain knowledge such as page schemas, auth payloads, style definitions,
|
|
29
|
+
and runtime formatting rules. That tends to drift over time.
|
|
30
|
+
|
|
31
|
+
`@selfhelp/shared` keeps those definitions in one place so both apps can:
|
|
32
|
+
|
|
33
|
+
- compile against the same TypeScript interfaces
|
|
34
|
+
- render CMS content with the same structural assumptions
|
|
35
|
+
- use the same naming and registry model for styles
|
|
36
|
+
- share stable helper logic for interpolation, conditions, spacing, and assets
|
|
37
|
+
|
|
38
|
+
## What is in this library
|
|
39
|
+
|
|
40
|
+
### Core exports
|
|
41
|
+
|
|
42
|
+
The root package export re-exports the main public API:
|
|
43
|
+
|
|
44
|
+
- `types`: page content, style contracts, auth models, API DTOs, shared Mantine-like scalar types
|
|
45
|
+
- `registry`: the typed `STYLE_REGISTRY`
|
|
46
|
+
- `api`: CMS endpoint constants
|
|
47
|
+
- `theme`: token tables used across clients
|
|
48
|
+
- `interpolation`: text replacement helpers
|
|
49
|
+
- `condition`: JSON-Logic condition evaluation
|
|
50
|
+
- `cms-classes`: allow-listing, remapping, and classification helpers
|
|
51
|
+
- `assets`: asset URL normalization helpers
|
|
52
|
+
- `utils`: shared parsing and page transformation helpers
|
|
53
|
+
|
|
54
|
+
### Folder guide
|
|
55
|
+
|
|
56
|
+
| Folder | Purpose |
|
|
57
|
+
| --- | --- |
|
|
58
|
+
| `src/types/styles` | Per-style interfaces such as layout, typography, interactive, form, auth, and media styles. |
|
|
59
|
+
| `src/types/pages` | CMS page structures like `IPageContent`, `IPageItem`, and section field models. |
|
|
60
|
+
| `src/types/auth` | User/auth payloads such as `IUserDataResponse`, `IJwtPayload`, and permission constants. |
|
|
61
|
+
| `src/types/api` | Request/response DTOs and envelope types for auth, pages, forms, and language endpoints. |
|
|
62
|
+
| `src/types/mantine` | Shared semantic size, radius, spacing, and color-related type definitions. |
|
|
63
|
+
| `src/registry` | Typed style registry mapping `style_name` to schema metadata. |
|
|
64
|
+
| `src/api` | Frontend-facing `/cms-api/v1/*` endpoint catalog. |
|
|
65
|
+
| `src/theme` | Theme token tables and Tailwind preset exports used by both apps. |
|
|
66
|
+
| `src/interpolation` | `replaceCalcedValues()` placeholder replacement logic for CMS text. |
|
|
67
|
+
| `src/condition` | Condition evaluator that mirrors backend condition handling. |
|
|
68
|
+
| `src/cms-classes` | Tailwind class allow-list, remap table, and class classification logic. |
|
|
69
|
+
| `src/assets` | `resolveAssetUrl()` helper for absolute and relative asset paths. |
|
|
70
|
+
| `src/utils` | Shared helpers such as spacing parsing and page-data transformation. |
|
|
71
|
+
|
|
72
|
+
## Main capabilities
|
|
73
|
+
|
|
74
|
+
### Typed style registry
|
|
75
|
+
|
|
76
|
+
The library centralizes style definitions used by CMS-driven rendering. This makes
|
|
77
|
+
style handling explicit and compile-time checked instead of scattered across apps.
|
|
78
|
+
|
|
79
|
+
```ts
|
|
80
|
+
import { STYLE_REGISTRY } from '@selfhelp/shared/registry';
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
### Shared page and API contracts
|
|
84
|
+
|
|
85
|
+
All consumers can use the same TypeScript definitions for pages, forms, auth, and
|
|
86
|
+
language payloads.
|
|
87
|
+
|
|
88
|
+
```ts
|
|
89
|
+
import type { IPageContent, IUserDataResponse } from '@selfhelp/shared';
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
### Shared theme surface
|
|
93
|
+
|
|
94
|
+
The package exposes a common theme layer so web and mobile can stay visually aligned.
|
|
95
|
+
|
|
96
|
+
```ts
|
|
97
|
+
import { THEME_TOKENS } from '@selfhelp/shared/theme';
|
|
98
|
+
import tailwindPreset from '@selfhelp/shared/tailwind';
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
### Runtime helpers
|
|
102
|
+
|
|
103
|
+
The package includes a few focused runtime helpers that mirror backend behavior and
|
|
104
|
+
reduce duplicated edge-case handling in clients.
|
|
105
|
+
|
|
106
|
+
```ts
|
|
107
|
+
import {
|
|
108
|
+
evaluateCondition,
|
|
109
|
+
replaceCalcedValues,
|
|
110
|
+
resolveAssetUrl,
|
|
111
|
+
parseSpacing,
|
|
112
|
+
} from '@selfhelp/shared';
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
## Installation
|
|
116
|
+
|
|
117
|
+
Install from npm:
|
|
118
|
+
|
|
119
|
+
```bash
|
|
120
|
+
npm install @selfhelp/shared
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
Install a specific version:
|
|
124
|
+
|
|
125
|
+
```bash
|
|
126
|
+
npm install @selfhelp/shared@1.0.0
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
For local development with sibling repositories, you can still use a file dependency:
|
|
130
|
+
|
|
131
|
+
```json
|
|
132
|
+
{
|
|
133
|
+
"dependencies": {
|
|
134
|
+
"@selfhelp/shared": "file:../sh-selfhelp_shared"
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
## Usage examples
|
|
140
|
+
|
|
141
|
+
### Import from the root package
|
|
142
|
+
|
|
143
|
+
```ts
|
|
144
|
+
import {
|
|
145
|
+
ENDPOINTS,
|
|
146
|
+
PERMISSIONS,
|
|
147
|
+
replaceCalcedValues,
|
|
148
|
+
resolveAssetUrl,
|
|
149
|
+
transformPageData,
|
|
150
|
+
} from '@selfhelp/shared';
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
### Import typed registries or theme subpaths
|
|
154
|
+
|
|
155
|
+
```ts
|
|
156
|
+
import { STYLE_REGISTRY } from '@selfhelp/shared/registry';
|
|
157
|
+
import { THEME_TOKENS } from '@selfhelp/shared/theme';
|
|
158
|
+
import tailwindPreset from '@selfhelp/shared/tailwind';
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
### Consume the plugin runtime-shim contract
|
|
162
|
+
|
|
163
|
+
Plugin builds and the host frontend share a single list of bare
|
|
164
|
+
specifiers that resolve through the host's runtime-shim BFF route.
|
|
165
|
+
Read the contract from `@selfhelp/shared/plugin-sdk` instead of
|
|
166
|
+
duplicating the list in plugin `vite.config.ts` files or in the host
|
|
167
|
+
`runtime-globals.ts`:
|
|
168
|
+
|
|
169
|
+
```ts
|
|
170
|
+
import {
|
|
171
|
+
PLUGIN_RUNTIME_SHIM_SPECIFIERS,
|
|
172
|
+
PLUGIN_RUNTIME_IMPORT_MAP,
|
|
173
|
+
buildPluginRuntimeShimPath,
|
|
174
|
+
} from '@selfhelp/shared/plugin-sdk';
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
The contract is what guarantees `react`, `@mantine/core`,
|
|
178
|
+
`@tanstack/react-query`, and `@selfhelp/shared` (plus their
|
|
179
|
+
documented subpaths) stay single-instance across the host shell and
|
|
180
|
+
every loaded plugin.
|
|
181
|
+
|
|
182
|
+
### Build the package locally
|
|
183
|
+
|
|
184
|
+
```bash
|
|
185
|
+
cd sh-selfhelp_shared
|
|
186
|
+
npm install
|
|
187
|
+
npm run build
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
## Publish and release
|
|
191
|
+
|
|
192
|
+
Before the first publish:
|
|
193
|
+
|
|
194
|
+
```bash
|
|
195
|
+
cd sh-selfhelp_shared
|
|
196
|
+
npm install
|
|
197
|
+
npm login
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
Publish a new version:
|
|
201
|
+
|
|
202
|
+
```bash
|
|
203
|
+
npm version patch
|
|
204
|
+
npm publish
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
For the first stable release, publish `1.0.0`:
|
|
208
|
+
|
|
209
|
+
```bash
|
|
210
|
+
npm version 1.0.0
|
|
211
|
+
npm publish
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
Useful checks before publishing:
|
|
215
|
+
|
|
216
|
+
```bash
|
|
217
|
+
npm run typecheck
|
|
218
|
+
npm run build
|
|
219
|
+
npm pack --dry-run
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
Notes:
|
|
223
|
+
|
|
224
|
+
- `prepublishOnly` runs `npm run build` automatically during `npm publish`.
|
|
225
|
+
- The package is configured for public npm publication through `publishConfig.access`.
|
|
226
|
+
- Release notes for the stable launch live in [CHANGELOG.md](CHANGELOG.md).
|
|
227
|
+
|
|
228
|
+
## First stable release
|
|
229
|
+
|
|
230
|
+
Version `1.0.0` marks the first stable public release of `@selfhelp/shared`.
|
|
231
|
+
|
|
232
|
+
At this point the package provides:
|
|
233
|
+
|
|
234
|
+
- a stable shared type surface for page content, styles, auth, and API models
|
|
235
|
+
- a typed style registry for CMS-rendered components
|
|
236
|
+
- reusable theme token exports and Tailwind preset support
|
|
237
|
+
- shared helpers for interpolation, conditions, class mapping, assets, and spacing
|
|
238
|
+
- a publishable npm package that can be reused outside the local monorepo workflow
|
|
239
|
+
|
|
240
|
+
See [CHANGELOG.md](CHANGELOG.md) for the `1.0.0` release notes.
|
|
241
|
+
|
|
242
|
+
## Extending the library
|
|
243
|
+
|
|
244
|
+
### Adding a new style
|
|
245
|
+
|
|
246
|
+
1. Add the per-style interface in `src/types/styles/<group>.ts`.
|
|
247
|
+
2. Add the style entry to `src/registry/styles.registry.ts`.
|
|
248
|
+
3. Re-export the new public surface from `src/index.ts` if needed.
|
|
249
|
+
4. Run `npm run build`.
|
|
250
|
+
5. Update both consumers so the new style has a real implementation.
|
|
251
|
+
|
|
252
|
+
The registry is intentionally strict: TypeScript should help catch missing wiring
|
|
253
|
+
when a new style is introduced.
|
|
254
|
+
|
|
255
|
+
## Versioning policy
|
|
256
|
+
|
|
257
|
+
This package follows semantic versioning:
|
|
258
|
+
|
|
259
|
+
- `major`: breaking type or runtime changes
|
|
260
|
+
- `minor`: backward-compatible new exports, styles, helpers, or fields
|
|
261
|
+
- `patch`: fixes, clarifications, or non-breaking internal improvements
|
|
262
|
+
|
|
263
|
+
## License
|
|
264
|
+
|
|
265
|
+
Licensed under the [Mozilla Public License 2.0](LICENSE). Copyright (c) 2026
|
|
266
|
+
Humdek, University of Bern.
|
|
267
|
+
|
|
268
|
+
### SPDX headers
|
|
269
|
+
|
|
270
|
+
Every TS/JS source file should carry a two-line SPDX header:
|
|
271
|
+
|
|
272
|
+
```ts
|
|
273
|
+
/*
|
|
274
|
+
* SPDX-FileCopyrightText: 2026 Humdek, University of Bern
|
|
275
|
+
* SPDX-License-Identifier: MPL-2.0
|
|
276
|
+
*/
|
|
277
|
+
```
|
|
278
|
+
|
|
279
|
+
The header text lives in [header.txt](header.txt). Header insertion, verification,
|
|
280
|
+
and removal are automated with
|
|
281
|
+
[`license-check-and-add`](https://www.npmjs.com/package/license-check-and-add)
|
|
282
|
+
using [license-check-and-add-config.json](license-check-and-add-config.json).
|
|
283
|
+
|
|
284
|
+
```bash
|
|
285
|
+
npm install
|
|
286
|
+
npm run headers:add
|
|
287
|
+
npm run headers:check
|
|
288
|
+
npm run headers:remove
|
|
289
|
+
```
|
|
290
|
+
|
|
291
|
+
The tool reads `.gitignore`, so `node_modules/`, `dist/`, and other ignored paths
|
|
292
|
+
are skipped automatically.
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as TStyleName, f as IContentField } from './styles.registry-
|
|
2
|
-
export { B as BASE_STYLE_REGISTRY, h as IAccordionItemStyle, i as IAccordionStyle, j as IActionIconStyle, k as IAlertStyle, l as IAspectRatioStyle, m as IAudioStyle, n as IAvatarStyle, o as IBackgroundImageStyle, p as IBadgeStyle, q as IBaseStyle, r as IBlockquoteStyle, s as IBoxStyle, t as IButtonStyle, u as ICardSegmentStyle, v as ICardStyle, w as ICarouselStyle, x as ICenterStyle, y as ICheckboxStyle, z as IChipStyle, A as ICodeStyle, C as IColorInputStyle, D as IColorPickerStyle, E as IComboboxStyle, F as IContainerStyle, G as IDatePickerStyle, H as IDividerStyle, J as IEntryListStyle, K as IEntryRecordDeleteStyle, L as IEntryRecordStyle, M as IFieldsetStyle, N as IFigureStyle, O as IFileInputStyle, P as IFlexStyle, Q as IFormLogStyle, R as IFormRecordStyle, U as IFormStyle, V as IGridColumnStyle, W as IGridStyle, X as IGroupStyle, Y as IHighlightStyle, Z as IHtmlTagStyle, $ as IImageStyle, a0 as IIndicatorStyle, a1 as IInputStyle, a2 as IKbdStyle, a3 as ILinkStyle, a4 as IListItemStyle, a5 as IListStyle, a6 as ILoginStyle, a7 as ILoopStyle, a8 as INotificationStyle, a9 as INumberInputStyle, aa as IPaperStyle, a as IPluginStyleRegistryEntry, ab as IProfileStyle, ac as IProgressRootStyle, ad as IProgressSectionStyle, ae as IProgressStyle, af as IRadioStyle, ag as IRangeSliderStyle, ah as IRatingStyle, ai as IRegisterStyle, aj as IResetPasswordStyle, ak as IRichTextEditorStyle, al as IScrollAreaStyle, am as ISegmentedControlStyle, an as ISelectStyle, ao as ISimpleGridStyle, ap as ISliderStyle, aq as ISpaceStyle, ar as ISpoilerStyle, as as IStackStyle, I as IStyleRegistryEntry, at as IStyleWithSpacing, au as ISwitchStyle, av as ITabStyle, aw as ITabsStyle, ax as ITextInputStyle, ay as ITextStyle, az as ITextareaStyle, aA as IThemeIconStyle, aB as ITimelineStyle, aC as ITitleStyle, aD as ITwoFactorAuthStyle, aE as ITypographyStyle, aF as IUnknownStyle, aG as IValidateStyle, aH as IVideoStyle, S as STYLE_REGISTRY, aI as TMantineAccordionChevronPosition, aJ as TMantineAccordionDisableChevronRotation, aK as TMantineAccordionLoop, aL as TMantineAccordionMultiple, aM as TMantineBorder, aN as TMantineCardShadow, aO as TMantineCheckboxLabelPosition, aP as TMantineCols, aQ as TMantineDividerVariant, aR as TMantineGap, aS as TMantineGridOffset, aT as TMantineGridOrder, aU as TMantineHeight, aV as TMantineIconSize, aW as TMantineImageFit, aX as TMantineLineClamp, aY as TMantineListCenter, aZ as TMantineListStyleType, a_ as TMantineListType, a$ as TMantineListWithPadding, b0 as TMantinePaperShadow, b1 as TMantineProgressTransition, b2 as TMantineScrollAreaSize, b3 as TMantineScrollAreaType, b4 as TMantineTextAlign, b5 as TMantineTextDecoration, b6 as TMantineTextFontStyle, b7 as TMantineTextFontWeight, b8 as TMantineTextInherit, b9 as TMantineTextInputVariant, ba as TMantineTextSpan, bb as TMantineTextTransform, bc as TMantineTextTruncate, bd as TMantineTextVariant, be as TMantineTextareaAutosize, bf as TMantineTextareaResize, bg as TMantineTextareaVariant, bh as TMantineTimelineAlign, bi as TMantineTitleLineClamp, bj as TMantineTitleTextWrap, bk as TMantineTranslatable, bl as TMantineUseInputWrapper, bm as TMantineWidth, bn as TStyle, b as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, c as _resetPluginStyleRegistry, e as extendStyleRegistry, g as getMergedStyleRegistry, d as getPluginStyleRegistry } from './styles.registry-
|
|
1
|
+
import { T as TStyleName, f as IContentField } from './styles.registry-DVGOrw1_.mjs';
|
|
2
|
+
export { B as BASE_STYLE_REGISTRY, h as IAccordionItemStyle, i as IAccordionStyle, j as IActionIconStyle, k as IAlertStyle, l as IAspectRatioStyle, m as IAudioStyle, n as IAvatarStyle, o as IBackgroundImageStyle, p as IBadgeStyle, q as IBaseStyle, r as IBlockquoteStyle, s as IBoxStyle, t as IButtonStyle, u as ICardSegmentStyle, v as ICardStyle, w as ICarouselStyle, x as ICenterStyle, y as ICheckboxStyle, z as IChipStyle, A as ICodeStyle, C as IColorInputStyle, D as IColorPickerStyle, E as IComboboxStyle, F as IContainerStyle, G as IDatePickerStyle, H as IDividerStyle, J as IEntryListStyle, K as IEntryRecordDeleteStyle, L as IEntryRecordStyle, M as IFieldsetStyle, N as IFigureStyle, O as IFileInputStyle, P as IFlexStyle, Q as IFormLogStyle, R as IFormRecordStyle, U as IFormStyle, V as IGridColumnStyle, W as IGridStyle, X as IGroupStyle, Y as IHighlightStyle, Z as IHtmlTagStyle, $ as IImageStyle, a0 as IIndicatorStyle, a1 as IInputStyle, a2 as IKbdStyle, a3 as ILinkStyle, a4 as IListItemStyle, a5 as IListStyle, a6 as ILoginStyle, a7 as ILoopStyle, a8 as INotificationStyle, a9 as INumberInputStyle, aa as IPaperStyle, a as IPluginStyleRegistryEntry, ab as IProfileStyle, ac as IProgressRootStyle, ad as IProgressSectionStyle, ae as IProgressStyle, af as IRadioStyle, ag as IRangeSliderStyle, ah as IRatingStyle, ai as IRegisterStyle, aj as IResetPasswordStyle, ak as IRichTextEditorStyle, al as IScrollAreaStyle, am as ISegmentedControlStyle, an as ISelectStyle, ao as ISimpleGridStyle, ap as ISliderStyle, aq as ISpaceStyle, ar as ISpoilerStyle, as as IStackStyle, I as IStyleRegistryEntry, at as IStyleWithSpacing, au as ISwitchStyle, av as ITabStyle, aw as ITabsStyle, ax as ITextInputStyle, ay as ITextStyle, az as ITextareaStyle, aA as IThemeIconStyle, aB as ITimelineStyle, aC as ITitleStyle, aD as ITwoFactorAuthStyle, aE as ITypographyStyle, aF as IUnknownStyle, aG as IValidateStyle, aH as IVideoStyle, S as STYLE_REGISTRY, aI as TMantineAccordionChevronPosition, aJ as TMantineAccordionDisableChevronRotation, aK as TMantineAccordionLoop, aL as TMantineAccordionMultiple, aM as TMantineBorder, aN as TMantineCardShadow, aO as TMantineCheckboxLabelPosition, aP as TMantineCols, aQ as TMantineDividerVariant, aR as TMantineGap, aS as TMantineGridOffset, aT as TMantineGridOrder, aU as TMantineHeight, aV as TMantineIconSize, aW as TMantineImageFit, aX as TMantineLineClamp, aY as TMantineListCenter, aZ as TMantineListStyleType, a_ as TMantineListType, a$ as TMantineListWithPadding, b0 as TMantinePaperShadow, b1 as TMantineProgressTransition, b2 as TMantineScrollAreaSize, b3 as TMantineScrollAreaType, b4 as TMantineTextAlign, b5 as TMantineTextDecoration, b6 as TMantineTextFontStyle, b7 as TMantineTextFontWeight, b8 as TMantineTextInherit, b9 as TMantineTextInputVariant, ba as TMantineTextSpan, bb as TMantineTextTransform, bc as TMantineTextTruncate, bd as TMantineTextVariant, be as TMantineTextareaAutosize, bf as TMantineTextareaResize, bg as TMantineTextareaVariant, bh as TMantineTimelineAlign, bi as TMantineTitleLineClamp, bj as TMantineTitleTextWrap, bk as TMantineTranslatable, bl as TMantineUseInputWrapper, bm as TMantineWidth, bn as TStyle, b as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, c as _resetPluginStyleRegistry, e as extendStyleRegistry, g as getMergedStyleRegistry, d as getPluginStyleRegistry } from './styles.registry-DVGOrw1_.mjs';
|
|
3
3
|
export { s as TMantineAccordionVariant, v as TMantineActionIconLoading, d as TMantineAlign, w as TMantineAllowNextClicks, x as TMantineAllowStepClick, y as TMantineAspectRatio, z as TMantineAutoContrast, o as TMantineAvatarVariant, n as TMantineBadgeVariant, A as TMantineBlock, B as TMantineCenterInline, C as TMantineChecked, D as TMantineChipChecked, E as TMantineChipMultiple, p as TMantineChipVariant, F as TMantineClampBehavior, G as TMantineCodeBlock, i as TMantineColor, H as TMantineColorFormat, I as TMantineColorInputSwatches, J as TMantineColorPickerSwatches, K as TMantineColorPickerSwatchesPerRow, L as TMantineCompact, M as TMantineContainerFluid, e as TMantineDirection, N as TMantineDisabled, k as TMantineFieldsetVariant, O as TMantineFileAccept, P as TMantineFileInputMultiple, Q as TMantineFluid, R as TMantineFullWidth, S as TMantineGridGrow, U as TMantineGridOverflow, g as TMantineGridSpan, V as TMantineGroupGrow, W as TMantineGroupWrap, X as TMantineGrow, Y as TMantineHighlight, q as TMantineIndicatorPosition, Z as TMantineInline, _ as TMantineIsLink, c as TMantineJustify, $ as TMantineKbdSize, a0 as TMantineLoading, a1 as TMantineMultiple, a2 as TMantineNotificationWithCloseButton, a3 as TMantineNumberInputDecimalScale, a4 as TMantineOpenInNewTab, h as TMantineOrientation, a5 as TMantineProcessing, T as TMantineRadius, a6 as TMantineRangeSliderMarks, a7 as TMantineRatingCount, a8 as TMantineRatingFractions, a9 as TMantineRatingReadonly, aa as TMantineReadonly, a as TMantineSize, ab as TMantineSpaceHorizontal, b as TMantineSpacing, l as TMantineSpoilerMaxHeight, ac as TMantineSwatches, ad as TMantineTabDisabled, t as TMantineTabsVariant, r as TMantineThemeIconVariant, u as TMantineTimelineLineVariant, j as TMantineTitleOrder, ae as TMantineUseMantineStyle, m as TMantineVariant, af as TMantineWithCloseButton, ag as TMantineWithIcon, f as TMantineWrap } from './common-B96dASgu.mjs';
|
|
4
4
|
export { TAnyStyleName, TPluginStyleImplMap, TStyleImplMap, getRegistryEntry, getRegistryEntryAny, getStylePluginId, isKnownStyleName, isRegisteredStyleName } from './registry/index.mjs';
|
|
5
5
|
export { COLOR_PALETTE, COLOR_SCALES, CONTAINER_SIZE_PX, FONT_SIZE_PX, ISpacingResolved, LINE_HEIGHT, RADIUS_PX, SPACING_PX, SPACING_TO_TAILWIND, TCanonicalColor, TCanonicalRadius, TCanonicalSpacing, colorToHex, radiusToPx, sizeToFontPx, spacingToPx } from './theme/index.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as TStyleName, f as IContentField } from './styles.registry-
|
|
2
|
-
export { B as BASE_STYLE_REGISTRY, h as IAccordionItemStyle, i as IAccordionStyle, j as IActionIconStyle, k as IAlertStyle, l as IAspectRatioStyle, m as IAudioStyle, n as IAvatarStyle, o as IBackgroundImageStyle, p as IBadgeStyle, q as IBaseStyle, r as IBlockquoteStyle, s as IBoxStyle, t as IButtonStyle, u as ICardSegmentStyle, v as ICardStyle, w as ICarouselStyle, x as ICenterStyle, y as ICheckboxStyle, z as IChipStyle, A as ICodeStyle, C as IColorInputStyle, D as IColorPickerStyle, E as IComboboxStyle, F as IContainerStyle, G as IDatePickerStyle, H as IDividerStyle, J as IEntryListStyle, K as IEntryRecordDeleteStyle, L as IEntryRecordStyle, M as IFieldsetStyle, N as IFigureStyle, O as IFileInputStyle, P as IFlexStyle, Q as IFormLogStyle, R as IFormRecordStyle, U as IFormStyle, V as IGridColumnStyle, W as IGridStyle, X as IGroupStyle, Y as IHighlightStyle, Z as IHtmlTagStyle, $ as IImageStyle, a0 as IIndicatorStyle, a1 as IInputStyle, a2 as IKbdStyle, a3 as ILinkStyle, a4 as IListItemStyle, a5 as IListStyle, a6 as ILoginStyle, a7 as ILoopStyle, a8 as INotificationStyle, a9 as INumberInputStyle, aa as IPaperStyle, a as IPluginStyleRegistryEntry, ab as IProfileStyle, ac as IProgressRootStyle, ad as IProgressSectionStyle, ae as IProgressStyle, af as IRadioStyle, ag as IRangeSliderStyle, ah as IRatingStyle, ai as IRegisterStyle, aj as IResetPasswordStyle, ak as IRichTextEditorStyle, al as IScrollAreaStyle, am as ISegmentedControlStyle, an as ISelectStyle, ao as ISimpleGridStyle, ap as ISliderStyle, aq as ISpaceStyle, ar as ISpoilerStyle, as as IStackStyle, I as IStyleRegistryEntry, at as IStyleWithSpacing, au as ISwitchStyle, av as ITabStyle, aw as ITabsStyle, ax as ITextInputStyle, ay as ITextStyle, az as ITextareaStyle, aA as IThemeIconStyle, aB as ITimelineStyle, aC as ITitleStyle, aD as ITwoFactorAuthStyle, aE as ITypographyStyle, aF as IUnknownStyle, aG as IValidateStyle, aH as IVideoStyle, S as STYLE_REGISTRY, aI as TMantineAccordionChevronPosition, aJ as TMantineAccordionDisableChevronRotation, aK as TMantineAccordionLoop, aL as TMantineAccordionMultiple, aM as TMantineBorder, aN as TMantineCardShadow, aO as TMantineCheckboxLabelPosition, aP as TMantineCols, aQ as TMantineDividerVariant, aR as TMantineGap, aS as TMantineGridOffset, aT as TMantineGridOrder, aU as TMantineHeight, aV as TMantineIconSize, aW as TMantineImageFit, aX as TMantineLineClamp, aY as TMantineListCenter, aZ as TMantineListStyleType, a_ as TMantineListType, a$ as TMantineListWithPadding, b0 as TMantinePaperShadow, b1 as TMantineProgressTransition, b2 as TMantineScrollAreaSize, b3 as TMantineScrollAreaType, b4 as TMantineTextAlign, b5 as TMantineTextDecoration, b6 as TMantineTextFontStyle, b7 as TMantineTextFontWeight, b8 as TMantineTextInherit, b9 as TMantineTextInputVariant, ba as TMantineTextSpan, bb as TMantineTextTransform, bc as TMantineTextTruncate, bd as TMantineTextVariant, be as TMantineTextareaAutosize, bf as TMantineTextareaResize, bg as TMantineTextareaVariant, bh as TMantineTimelineAlign, bi as TMantineTitleLineClamp, bj as TMantineTitleTextWrap, bk as TMantineTranslatable, bl as TMantineUseInputWrapper, bm as TMantineWidth, bn as TStyle, b as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, c as _resetPluginStyleRegistry, e as extendStyleRegistry, g as getMergedStyleRegistry, d as getPluginStyleRegistry } from './styles.registry-
|
|
1
|
+
import { T as TStyleName, f as IContentField } from './styles.registry-wVJpIkAh.js';
|
|
2
|
+
export { B as BASE_STYLE_REGISTRY, h as IAccordionItemStyle, i as IAccordionStyle, j as IActionIconStyle, k as IAlertStyle, l as IAspectRatioStyle, m as IAudioStyle, n as IAvatarStyle, o as IBackgroundImageStyle, p as IBadgeStyle, q as IBaseStyle, r as IBlockquoteStyle, s as IBoxStyle, t as IButtonStyle, u as ICardSegmentStyle, v as ICardStyle, w as ICarouselStyle, x as ICenterStyle, y as ICheckboxStyle, z as IChipStyle, A as ICodeStyle, C as IColorInputStyle, D as IColorPickerStyle, E as IComboboxStyle, F as IContainerStyle, G as IDatePickerStyle, H as IDividerStyle, J as IEntryListStyle, K as IEntryRecordDeleteStyle, L as IEntryRecordStyle, M as IFieldsetStyle, N as IFigureStyle, O as IFileInputStyle, P as IFlexStyle, Q as IFormLogStyle, R as IFormRecordStyle, U as IFormStyle, V as IGridColumnStyle, W as IGridStyle, X as IGroupStyle, Y as IHighlightStyle, Z as IHtmlTagStyle, $ as IImageStyle, a0 as IIndicatorStyle, a1 as IInputStyle, a2 as IKbdStyle, a3 as ILinkStyle, a4 as IListItemStyle, a5 as IListStyle, a6 as ILoginStyle, a7 as ILoopStyle, a8 as INotificationStyle, a9 as INumberInputStyle, aa as IPaperStyle, a as IPluginStyleRegistryEntry, ab as IProfileStyle, ac as IProgressRootStyle, ad as IProgressSectionStyle, ae as IProgressStyle, af as IRadioStyle, ag as IRangeSliderStyle, ah as IRatingStyle, ai as IRegisterStyle, aj as IResetPasswordStyle, ak as IRichTextEditorStyle, al as IScrollAreaStyle, am as ISegmentedControlStyle, an as ISelectStyle, ao as ISimpleGridStyle, ap as ISliderStyle, aq as ISpaceStyle, ar as ISpoilerStyle, as as IStackStyle, I as IStyleRegistryEntry, at as IStyleWithSpacing, au as ISwitchStyle, av as ITabStyle, aw as ITabsStyle, ax as ITextInputStyle, ay as ITextStyle, az as ITextareaStyle, aA as IThemeIconStyle, aB as ITimelineStyle, aC as ITitleStyle, aD as ITwoFactorAuthStyle, aE as ITypographyStyle, aF as IUnknownStyle, aG as IValidateStyle, aH as IVideoStyle, S as STYLE_REGISTRY, aI as TMantineAccordionChevronPosition, aJ as TMantineAccordionDisableChevronRotation, aK as TMantineAccordionLoop, aL as TMantineAccordionMultiple, aM as TMantineBorder, aN as TMantineCardShadow, aO as TMantineCheckboxLabelPosition, aP as TMantineCols, aQ as TMantineDividerVariant, aR as TMantineGap, aS as TMantineGridOffset, aT as TMantineGridOrder, aU as TMantineHeight, aV as TMantineIconSize, aW as TMantineImageFit, aX as TMantineLineClamp, aY as TMantineListCenter, aZ as TMantineListStyleType, a_ as TMantineListType, a$ as TMantineListWithPadding, b0 as TMantinePaperShadow, b1 as TMantineProgressTransition, b2 as TMantineScrollAreaSize, b3 as TMantineScrollAreaType, b4 as TMantineTextAlign, b5 as TMantineTextDecoration, b6 as TMantineTextFontStyle, b7 as TMantineTextFontWeight, b8 as TMantineTextInherit, b9 as TMantineTextInputVariant, ba as TMantineTextSpan, bb as TMantineTextTransform, bc as TMantineTextTruncate, bd as TMantineTextVariant, be as TMantineTextareaAutosize, bf as TMantineTextareaResize, bg as TMantineTextareaVariant, bh as TMantineTimelineAlign, bi as TMantineTitleLineClamp, bj as TMantineTitleTextWrap, bk as TMantineTranslatable, bl as TMantineUseInputWrapper, bm as TMantineWidth, bn as TStyle, b as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, c as _resetPluginStyleRegistry, e as extendStyleRegistry, g as getMergedStyleRegistry, d as getPluginStyleRegistry } from './styles.registry-wVJpIkAh.js';
|
|
3
3
|
export { s as TMantineAccordionVariant, v as TMantineActionIconLoading, d as TMantineAlign, w as TMantineAllowNextClicks, x as TMantineAllowStepClick, y as TMantineAspectRatio, z as TMantineAutoContrast, o as TMantineAvatarVariant, n as TMantineBadgeVariant, A as TMantineBlock, B as TMantineCenterInline, C as TMantineChecked, D as TMantineChipChecked, E as TMantineChipMultiple, p as TMantineChipVariant, F as TMantineClampBehavior, G as TMantineCodeBlock, i as TMantineColor, H as TMantineColorFormat, I as TMantineColorInputSwatches, J as TMantineColorPickerSwatches, K as TMantineColorPickerSwatchesPerRow, L as TMantineCompact, M as TMantineContainerFluid, e as TMantineDirection, N as TMantineDisabled, k as TMantineFieldsetVariant, O as TMantineFileAccept, P as TMantineFileInputMultiple, Q as TMantineFluid, R as TMantineFullWidth, S as TMantineGridGrow, U as TMantineGridOverflow, g as TMantineGridSpan, V as TMantineGroupGrow, W as TMantineGroupWrap, X as TMantineGrow, Y as TMantineHighlight, q as TMantineIndicatorPosition, Z as TMantineInline, _ as TMantineIsLink, c as TMantineJustify, $ as TMantineKbdSize, a0 as TMantineLoading, a1 as TMantineMultiple, a2 as TMantineNotificationWithCloseButton, a3 as TMantineNumberInputDecimalScale, a4 as TMantineOpenInNewTab, h as TMantineOrientation, a5 as TMantineProcessing, T as TMantineRadius, a6 as TMantineRangeSliderMarks, a7 as TMantineRatingCount, a8 as TMantineRatingFractions, a9 as TMantineRatingReadonly, aa as TMantineReadonly, a as TMantineSize, ab as TMantineSpaceHorizontal, b as TMantineSpacing, l as TMantineSpoilerMaxHeight, ac as TMantineSwatches, ad as TMantineTabDisabled, t as TMantineTabsVariant, r as TMantineThemeIconVariant, u as TMantineTimelineLineVariant, j as TMantineTitleOrder, ae as TMantineUseMantineStyle, m as TMantineVariant, af as TMantineWithCloseButton, ag as TMantineWithIcon, f as TMantineWrap } from './common-B96dASgu.js';
|
|
4
4
|
export { TAnyStyleName, TPluginStyleImplMap, TStyleImplMap, getRegistryEntry, getRegistryEntryAny, getStylePluginId, isKnownStyleName, isRegisteredStyleName } from './registry/index.js';
|
|
5
5
|
export { COLOR_PALETTE, COLOR_SCALES, CONTAINER_SIZE_PX, FONT_SIZE_PX, ISpacingResolved, LINE_HEIGHT, RADIUS_PX, SPACING_PX, SPACING_TO_TAILWIND, TCanonicalColor, TCanonicalRadius, TCanonicalSpacing, colorToHex, radiusToPx, sizeToFontPx, spacingToPx } from './theme/index.js';
|