@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/README.md CHANGED
@@ -1,287 +1,292 @@
1
- # @selfhelp/shared
2
-
3
- `@selfhelp/shared` is the shared TypeScript foundation for the SelfHelp ecosystem.
4
- It provides the common contracts, registries, theme tokens, and small runtime helpers
5
- that keep the web frontend and mobile app aligned.
6
-
7
- This package exists so both clients can depend on one source of truth for:
8
-
9
- - CMS-driven page and style types
10
- - API request and response contracts
11
- - shared theme tokens and Tailwind preset values
12
- - condition and interpolation helpers that mirror backend behavior
13
- - CMS class allow-listing and asset URL utilities
14
-
15
- It is used by:
16
-
17
- - `sh-selfhelp_frontend`
18
- - `sh-selfhelp_mobile`
19
-
20
- ## Why this library exists
21
-
22
- Without a shared package, the web and mobile apps would each need to duplicate
23
- critical domain knowledge such as page schemas, auth payloads, style definitions,
24
- and runtime formatting rules. That tends to drift over time.
25
-
26
- `@selfhelp/shared` keeps those definitions in one place so both apps can:
27
-
28
- - compile against the same TypeScript interfaces
29
- - render CMS content with the same structural assumptions
30
- - use the same naming and registry model for styles
31
- - share stable helper logic for interpolation, conditions, spacing, and assets
32
-
33
- ## What is in this library
34
-
35
- ### Core exports
36
-
37
- The root package export re-exports the main public API:
38
-
39
- - `types`: page content, style contracts, auth models, API DTOs, shared Mantine-like scalar types
40
- - `registry`: the typed `STYLE_REGISTRY`
41
- - `api`: CMS endpoint constants
42
- - `theme`: token tables used across clients
43
- - `interpolation`: text replacement helpers
44
- - `condition`: JSON-Logic condition evaluation
45
- - `cms-classes`: allow-listing, remapping, and classification helpers
46
- - `assets`: asset URL normalization helpers
47
- - `utils`: shared parsing and page transformation helpers
48
-
49
- ### Folder guide
50
-
51
- | Folder | Purpose |
52
- | --- | --- |
53
- | `src/types/styles` | Per-style interfaces such as layout, typography, interactive, form, auth, and media styles. |
54
- | `src/types/pages` | CMS page structures like `IPageContent`, `IPageItem`, and section field models. |
55
- | `src/types/auth` | User/auth payloads such as `IUserDataResponse`, `IJwtPayload`, and permission constants. |
56
- | `src/types/api` | Request/response DTOs and envelope types for auth, pages, forms, and language endpoints. |
57
- | `src/types/mantine` | Shared semantic size, radius, spacing, and color-related type definitions. |
58
- | `src/registry` | Typed style registry mapping `style_name` to schema metadata. |
59
- | `src/api` | Frontend-facing `/cms-api/v1/*` endpoint catalog. |
60
- | `src/theme` | Theme token tables and Tailwind preset exports used by both apps. |
61
- | `src/interpolation` | `replaceCalcedValues()` placeholder replacement logic for CMS text. |
62
- | `src/condition` | Condition evaluator that mirrors backend condition handling. |
63
- | `src/cms-classes` | Tailwind class allow-list, remap table, and class classification logic. |
64
- | `src/assets` | `resolveAssetUrl()` helper for absolute and relative asset paths. |
65
- | `src/utils` | Shared helpers such as spacing parsing and page-data transformation. |
66
-
67
- ## Main capabilities
68
-
69
- ### Typed style registry
70
-
71
- The library centralizes style definitions used by CMS-driven rendering. This makes
72
- style handling explicit and compile-time checked instead of scattered across apps.
73
-
74
- ```ts
75
- import { STYLE_REGISTRY } from '@selfhelp/shared/registry';
76
- ```
77
-
78
- ### Shared page and API contracts
79
-
80
- All consumers can use the same TypeScript definitions for pages, forms, auth, and
81
- language payloads.
82
-
83
- ```ts
84
- import type { IPageContent, IUserDataResponse } from '@selfhelp/shared';
85
- ```
86
-
87
- ### Shared theme surface
88
-
89
- The package exposes a common theme layer so web and mobile can stay visually aligned.
90
-
91
- ```ts
92
- import { THEME_TOKENS } from '@selfhelp/shared/theme';
93
- import tailwindPreset from '@selfhelp/shared/tailwind';
94
- ```
95
-
96
- ### Runtime helpers
97
-
98
- The package includes a few focused runtime helpers that mirror backend behavior and
99
- reduce duplicated edge-case handling in clients.
100
-
101
- ```ts
102
- import {
103
- evaluateCondition,
104
- replaceCalcedValues,
105
- resolveAssetUrl,
106
- parseSpacing,
107
- } from '@selfhelp/shared';
108
- ```
109
-
110
- ## Installation
111
-
112
- Install from npm:
113
-
114
- ```bash
115
- npm install @selfhelp/shared
116
- ```
117
-
118
- Install a specific version:
119
-
120
- ```bash
121
- npm install @selfhelp/shared@1.0.0
122
- ```
123
-
124
- For local development with sibling repositories, you can still use a file dependency:
125
-
126
- ```json
127
- {
128
- "dependencies": {
129
- "@selfhelp/shared": "file:../sh-selfhelp_shared"
130
- }
131
- }
132
- ```
133
-
134
- ## Usage examples
135
-
136
- ### Import from the root package
137
-
138
- ```ts
139
- import {
140
- ENDPOINTS,
141
- PERMISSIONS,
142
- replaceCalcedValues,
143
- resolveAssetUrl,
144
- transformPageData,
145
- } from '@selfhelp/shared';
146
- ```
147
-
148
- ### Import typed registries or theme subpaths
149
-
150
- ```ts
151
- import { STYLE_REGISTRY } from '@selfhelp/shared/registry';
152
- import { THEME_TOKENS } from '@selfhelp/shared/theme';
153
- import tailwindPreset from '@selfhelp/shared/tailwind';
154
- ```
155
-
156
- ### Consume the plugin runtime-shim contract
157
-
158
- Plugin builds and the host frontend share a single list of bare
159
- specifiers that resolve through the host's runtime-shim BFF route.
160
- Read the contract from `@selfhelp/shared/plugin-sdk` instead of
161
- duplicating the list in plugin `vite.config.ts` files or in the host
162
- `runtime-globals.ts`:
163
-
164
- ```ts
165
- import {
166
- PLUGIN_RUNTIME_SHIM_SPECIFIERS,
167
- PLUGIN_RUNTIME_IMPORT_MAP,
168
- buildPluginRuntimeShimPath,
169
- } from '@selfhelp/shared/plugin-sdk';
170
- ```
171
-
172
- The contract is what guarantees `react`, `@mantine/core`,
173
- `@tanstack/react-query`, and `@selfhelp/shared` (plus their
174
- documented subpaths) stay single-instance across the host shell and
175
- every loaded plugin.
176
-
177
- ### Build the package locally
178
-
179
- ```bash
180
- cd sh-selfhelp_shared
181
- npm install
182
- npm run build
183
- ```
184
-
185
- ## Publish and release
186
-
187
- Before the first publish:
188
-
189
- ```bash
190
- cd sh-selfhelp_shared
191
- npm install
192
- npm login
193
- ```
194
-
195
- Publish a new version:
196
-
197
- ```bash
198
- npm version patch
199
- npm publish
200
- ```
201
-
202
- For the first stable release, publish `1.0.0`:
203
-
204
- ```bash
205
- npm version 1.0.0
206
- npm publish
207
- ```
208
-
209
- Useful checks before publishing:
210
-
211
- ```bash
212
- npm run typecheck
213
- npm run build
214
- npm pack --dry-run
215
- ```
216
-
217
- Notes:
218
-
219
- - `prepublishOnly` runs `npm run build` automatically during `npm publish`.
220
- - The package is configured for public npm publication through `publishConfig.access`.
221
- - Release notes for the stable launch live in [CHANGELOG.md](CHANGELOG.md).
222
-
223
- ## First stable release
224
-
225
- Version `1.0.0` marks the first stable public release of `@selfhelp/shared`.
226
-
227
- At this point the package provides:
228
-
229
- - a stable shared type surface for page content, styles, auth, and API models
230
- - a typed style registry for CMS-rendered components
231
- - reusable theme token exports and Tailwind preset support
232
- - shared helpers for interpolation, conditions, class mapping, assets, and spacing
233
- - a publishable npm package that can be reused outside the local monorepo workflow
234
-
235
- See [CHANGELOG.md](CHANGELOG.md) for the `1.0.0` release notes.
236
-
237
- ## Extending the library
238
-
239
- ### Adding a new style
240
-
241
- 1. Add the per-style interface in `src/types/styles/<group>.ts`.
242
- 2. Add the style entry to `src/registry/styles.registry.ts`.
243
- 3. Re-export the new public surface from `src/index.ts` if needed.
244
- 4. Run `npm run build`.
245
- 5. Update both consumers so the new style has a real implementation.
246
-
247
- The registry is intentionally strict: TypeScript should help catch missing wiring
248
- when a new style is introduced.
249
-
250
- ## Versioning policy
251
-
252
- This package follows semantic versioning:
253
-
254
- - `major`: breaking type or runtime changes
255
- - `minor`: backward-compatible new exports, styles, helpers, or fields
256
- - `patch`: fixes, clarifications, or non-breaking internal improvements
257
-
258
- ## License
259
-
260
- Licensed under the [Mozilla Public License 2.0](LICENSE). Copyright (c) 2026
261
- Humdek, University of Bern.
262
-
263
- ### SPDX headers
264
-
265
- Every TS/JS source file should carry a two-line SPDX header:
266
-
267
- ```ts
268
- /*
269
- * SPDX-FileCopyrightText: 2026 Humdek, University of Bern
270
- * SPDX-License-Identifier: MPL-2.0
271
- */
272
- ```
273
-
274
- The header text lives in [header.txt](header.txt). Header insertion, verification,
275
- and removal are automated with
276
- [`license-check-and-add`](https://www.npmjs.com/package/license-check-and-add)
277
- using [license-check-and-add-config.json](license-check-and-add-config.json).
278
-
279
- ```bash
280
- npm install
281
- npm run headers:add
282
- npm run headers:check
283
- npm run headers:remove
284
- ```
285
-
286
- The tool reads `.gitignore`, so `node_modules/`, `dist/`, and other ignored paths
287
- are skipped automatically.
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-C3bux91U.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-C3bux91U.mjs';
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-Cr961HQ0.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-Cr961HQ0.js';
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';