@selfhelp/shared 1.14.2 → 1.14.4
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 +58 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/plugin-sdk/index.d.mts +1 -1
- package/dist/plugin-sdk/index.d.ts +1 -1
- package/dist/registry/index.d.mts +2 -2
- package/dist/registry/index.d.ts +2 -2
- package/dist/{styles.registry-BALBu66w.d.mts → styles.registry-B0G7kKxh.d.mts} +16 -17
- package/dist/{styles.registry-BhtpghU2.d.ts → styles.registry-D4bQy2Pz.d.ts} +16 -17
- package/package.json +1 -1
- package/src/types/styles/auth.ts +8 -7
- package/src/types/styles/base.ts +1 -3
- package/src/types/styles/forms.ts +11 -7
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,64 @@ All notable changes to `@selfhelp/shared` will be documented in this file.
|
|
|
9
9
|
|
|
10
10
|
This project follows semantic versioning.
|
|
11
11
|
|
|
12
|
+
## v1.14.4
|
|
13
|
+
|
|
14
|
+
Style-field cleanup slice 9 — spacing consolidation (RF-15). Pairs with backend
|
|
15
|
+
migration `Version20260619100642` and the coupled web + mobile renderer reads.
|
|
16
|
+
Patch bump: the legacy margin-only `web_spacing_margin` is merged into the
|
|
17
|
+
portable box-model `shared_spacing`, so spacing is one cross-platform field.
|
|
18
|
+
|
|
19
|
+
### Changed
|
|
20
|
+
|
|
21
|
+
- **`IStyleWithSpacing`:** dropped `web_spacing_margin`. Every spacing-capable
|
|
22
|
+
style now uses the single portable `shared_spacing` box-model field (margin +
|
|
23
|
+
padding), mapped to both platforms. The backend migration repoints the 39
|
|
24
|
+
margin-only style links + their authored section values onto `shared_spacing`
|
|
25
|
+
and drops the `web_spacing_margin` field and its `spacing-margin` field type.
|
|
26
|
+
|
|
27
|
+
### Notes
|
|
28
|
+
|
|
29
|
+
- Both fields stored the **same** box-model JSON (`{"mt":"md",…}`) and were
|
|
30
|
+
mutually exclusive at the style level, so this is a value-preserving merge, not
|
|
31
|
+
a format conversion.
|
|
32
|
+
- Web `BasicStyle` drops its `?? web_spacing_margin` fallback (now always
|
|
33
|
+
`shared_spacing`). Mobile `buildSectionClasses` now reads `shared_spacing`
|
|
34
|
+
first (it previously read a non-existent field name and the margin-only one,
|
|
35
|
+
giving the 37 `shared_spacing` styles no mobile spacing — now fixed); the
|
|
36
|
+
legacy `web_spacing_margin` is kept only as a transitional read-fallback.
|
|
37
|
+
|
|
38
|
+
## v1.14.3
|
|
39
|
+
|
|
40
|
+
Style-field cleanup slice 7 — form/validate button knobs (RF-21).
|
|
41
|
+
Pairs with backend migration `Version20260619100044` and the coupled web + mobile
|
|
42
|
+
renderer reads. Patch bump: `web_*` → `shared_*` rename of the portable button
|
|
43
|
+
knobs on the custom composite form styles, so the mobile custom form renders the
|
|
44
|
+
same authored config as the web Mantine form.
|
|
45
|
+
|
|
46
|
+
### Changed
|
|
47
|
+
|
|
48
|
+
- **`IFormStyle` (`form-log` / `form-record`):** `buttons_size` /
|
|
49
|
+
`buttons_radius` / `buttons_variant` / `buttons_position` / `btn_save_color` /
|
|
50
|
+
`btn_cancel_color` → the `shared_*` equivalents, and the previously-missing
|
|
51
|
+
`shared_buttons_order` is added. (The catalog field is `web_buttons_*`; the web
|
|
52
|
+
`FormStyle` had been reading the un-prefixed names, which matched neither the
|
|
53
|
+
catalog nor the type — so its button styling silently fell back to defaults.
|
|
54
|
+
This rename fixes that latent bug and unblocks mobile.)
|
|
55
|
+
- **`IFormRecordStyle`:** `btn_update_color` → `shared_btn_update_color`.
|
|
56
|
+
- **`IValidateStyle`:** `web_buttons_size` / `web_buttons_radius` /
|
|
57
|
+
`web_buttons_variant` / `web_buttons_position` / `web_buttons_order` /
|
|
58
|
+
`web_btn_save_color` / `web_btn_cancel_color` → the `shared_*` equivalents
|
|
59
|
+
(the web `ValidateStyle` already read the `web_` names correctly; both
|
|
60
|
+
renderers now agree on `shared_*`).
|
|
61
|
+
|
|
62
|
+
### Notes
|
|
63
|
+
|
|
64
|
+
- Pure web cosmetics stay `web_`: `web_card_padding`, `web_card_shadow`,
|
|
65
|
+
`web_border` on `validate` (RF-16 — no clean React Native peer).
|
|
66
|
+
- The mobile `FormUserInput` now builds its action row from these knobs
|
|
67
|
+
(`shared_btn_save_color` / `shared_btn_cancel_color`, `shared_buttons_order` /
|
|
68
|
+
`_position` / `_size` / `_radius` / `_variant`), themed inline.
|
|
69
|
+
|
|
12
70
|
## v1.14.2
|
|
13
71
|
|
|
14
72
|
Style-field cleanup slice 6 — mobile configurability (RF-17, RF-18, RF-19).
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as TStyleName, j as IContentField } from './styles.registry-
|
|
2
|
-
export { B as BASE_STYLE_REGISTRY, k as IAccordionItemStyle, l as IAccordionStyle, m as IActionIconStyle, n as IAlertStyle, o as IAspectRatioStyle, p as IAudioStyle, q as IAvatarStyle, r as IBackgroundImageStyle, s as IBadgeStyle, t as IBaseStyle, u as IBlockquoteStyle, v as IBoxStyle, w as IButtonStyle, x as ICardSegmentStyle, y as ICardStyle, z as ICarouselStyle, A as ICenterStyle, C as ICheckboxStyle, D as IChipStyle, E as ICodeStyle, F as IColorInputStyle, G as IColorPickerStyle, H as IComboboxStyle, J as IContainerStyle, K as IDataContainerStyle, L as IDatePickerStyle, M as IDividerStyle, N as IEntryListStyle, O as IEntryRecordDeleteStyle, P as IEntryRecordStyle, Q as IFieldsetStyle, R as IFigureStyle, U as IFileInputStyle, V as IFlexStyle, W as IFormLogStyle, X as IFormRecordStyle, Y as IFormStyle, Z as IGridColumnStyle, $ as IGridStyle, a0 as IGroupStyle, a1 as IHighlightStyle, a2 as IHtmlTagStyle, a3 as IImageStyle, a4 as IIndicatorStyle, a5 as IInputStyle, a6 as IKbdStyle, a7 as ILinkStyle, a8 as IListItemStyle, a9 as IListStyle, aa as ILoginStyle, ab as ILoopStyle, ac as IMissingStyle, ad as INoAccessStyle, ae as INotFoundStyle, af as INotificationStyle, ag as INumberInputStyle, ah as IPaperStyle, a as IPluginStyleRegistryEntry, ai as IProfileStyle, aj as IProgressRootStyle, ak as IProgressSectionStyle, al as IProgressStyle, am as IRadioStyle, an as IRangeSliderStyle, ao as IRatingStyle, ap as IRefContainerStyle, aq as IRegisterStyle, ar as IResetPasswordStyle, as as IRichTextEditorStyle, at as IScrollAreaStyle, au as ISegmentedControlStyle, av as ISelectStyle, aw as IShowUserInputEntry, ax as IShowUserInputStyle, ay as ISimpleGridStyle, az as ISliderStyle, aA as ISpaceStyle, aB as ISpoilerStyle, aC as IStackStyle, I as IStyleRegistryEntry, aD as IStyleWithSpacing, aE as ISwitchStyle, aF as ITabStyle, aG as ITabsStyle, aH as ITextInputStyle, aI as ITextStyle, aJ as ITextareaStyle, aK as IThemeIconStyle, aL as ITimelineItemStyle, aM as ITimelineStyle, aN as ITitleStyle, aO as ITwoFactorAuthStyle, aP as ITypographyStyle, aQ as IUnknownStyle, aR as IValidateStyle, aS as IVersionStyle, aT as IVideoStyle, S as STYLE_REGISTRY, c as TConcretePlatform, aU as TMantineAccordionChevronPosition, aV as TMantineAccordionDisableChevronRotation, aW as TMantineAccordionLoop, aX as TMantineAccordionMultiple, aY as TMantineBorder, aZ as TMantineCardShadow, a_ as TMantineCheckboxLabelPosition, a$ as TMantineCols, b0 as TMantineDividerVariant, b1 as TMantineGap, b2 as TMantineGridOffset, b3 as TMantineGridOrder, b4 as TMantineHeight, b5 as TMantineIconSize, b6 as TMantineImageFit, b7 as TMantineLineClamp, b8 as TMantineListCenter, b9 as TMantineListStyleType, ba as TMantineListType, bb as TMantineListWithPadding, bc as TMantinePaperShadow, bd as TMantineProgressTransition, be as TMantineScrollAreaSize, bf as TMantineScrollAreaType, bg as TMantineTextAlign, bh as TMantineTextDecoration, bi as TMantineTextFontStyle, bj as TMantineTextFontWeight, bk as TMantineTextInherit, bl as TMantineTextInputVariant, bm as TMantineTextSpan, bn as TMantineTextTransform, bo as TMantineTextTruncate, bp as TMantineTextVariant, bq as TMantineTextareaAutosize, br as TMantineTextareaResize, bs as TMantineTextareaVariant, bt as TMantineTimelineAlign, bu as TMantineTitleLineClamp, bv as TMantineTitleTextWrap, bw as TMantineTranslatable, bx as TMantineUseInputWrapper, by as TMantineWidth, bz as TStyle, b as TStylePlacement, d as TStylePlatform, e as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, f as _resetPluginStyleRegistry, g as extendStyleRegistry, h as getMergedStyleRegistry, i as getPluginStyleRegistry } from './styles.registry-
|
|
1
|
+
import { T as TStyleName, j as IContentField } from './styles.registry-B0G7kKxh.mjs';
|
|
2
|
+
export { B as BASE_STYLE_REGISTRY, k as IAccordionItemStyle, l as IAccordionStyle, m as IActionIconStyle, n as IAlertStyle, o as IAspectRatioStyle, p as IAudioStyle, q as IAvatarStyle, r as IBackgroundImageStyle, s as IBadgeStyle, t as IBaseStyle, u as IBlockquoteStyle, v as IBoxStyle, w as IButtonStyle, x as ICardSegmentStyle, y as ICardStyle, z as ICarouselStyle, A as ICenterStyle, C as ICheckboxStyle, D as IChipStyle, E as ICodeStyle, F as IColorInputStyle, G as IColorPickerStyle, H as IComboboxStyle, J as IContainerStyle, K as IDataContainerStyle, L as IDatePickerStyle, M as IDividerStyle, N as IEntryListStyle, O as IEntryRecordDeleteStyle, P as IEntryRecordStyle, Q as IFieldsetStyle, R as IFigureStyle, U as IFileInputStyle, V as IFlexStyle, W as IFormLogStyle, X as IFormRecordStyle, Y as IFormStyle, Z as IGridColumnStyle, $ as IGridStyle, a0 as IGroupStyle, a1 as IHighlightStyle, a2 as IHtmlTagStyle, a3 as IImageStyle, a4 as IIndicatorStyle, a5 as IInputStyle, a6 as IKbdStyle, a7 as ILinkStyle, a8 as IListItemStyle, a9 as IListStyle, aa as ILoginStyle, ab as ILoopStyle, ac as IMissingStyle, ad as INoAccessStyle, ae as INotFoundStyle, af as INotificationStyle, ag as INumberInputStyle, ah as IPaperStyle, a as IPluginStyleRegistryEntry, ai as IProfileStyle, aj as IProgressRootStyle, ak as IProgressSectionStyle, al as IProgressStyle, am as IRadioStyle, an as IRangeSliderStyle, ao as IRatingStyle, ap as IRefContainerStyle, aq as IRegisterStyle, ar as IResetPasswordStyle, as as IRichTextEditorStyle, at as IScrollAreaStyle, au as ISegmentedControlStyle, av as ISelectStyle, aw as IShowUserInputEntry, ax as IShowUserInputStyle, ay as ISimpleGridStyle, az as ISliderStyle, aA as ISpaceStyle, aB as ISpoilerStyle, aC as IStackStyle, I as IStyleRegistryEntry, aD as IStyleWithSpacing, aE as ISwitchStyle, aF as ITabStyle, aG as ITabsStyle, aH as ITextInputStyle, aI as ITextStyle, aJ as ITextareaStyle, aK as IThemeIconStyle, aL as ITimelineItemStyle, aM as ITimelineStyle, aN as ITitleStyle, aO as ITwoFactorAuthStyle, aP as ITypographyStyle, aQ as IUnknownStyle, aR as IValidateStyle, aS as IVersionStyle, aT as IVideoStyle, S as STYLE_REGISTRY, c as TConcretePlatform, aU as TMantineAccordionChevronPosition, aV as TMantineAccordionDisableChevronRotation, aW as TMantineAccordionLoop, aX as TMantineAccordionMultiple, aY as TMantineBorder, aZ as TMantineCardShadow, a_ as TMantineCheckboxLabelPosition, a$ as TMantineCols, b0 as TMantineDividerVariant, b1 as TMantineGap, b2 as TMantineGridOffset, b3 as TMantineGridOrder, b4 as TMantineHeight, b5 as TMantineIconSize, b6 as TMantineImageFit, b7 as TMantineLineClamp, b8 as TMantineListCenter, b9 as TMantineListStyleType, ba as TMantineListType, bb as TMantineListWithPadding, bc as TMantinePaperShadow, bd as TMantineProgressTransition, be as TMantineScrollAreaSize, bf as TMantineScrollAreaType, bg as TMantineTextAlign, bh as TMantineTextDecoration, bi as TMantineTextFontStyle, bj as TMantineTextFontWeight, bk as TMantineTextInherit, bl as TMantineTextInputVariant, bm as TMantineTextSpan, bn as TMantineTextTransform, bo as TMantineTextTruncate, bp as TMantineTextVariant, bq as TMantineTextareaAutosize, br as TMantineTextareaResize, bs as TMantineTextareaVariant, bt as TMantineTimelineAlign, bu as TMantineTitleLineClamp, bv as TMantineTitleTextWrap, bw as TMantineTranslatable, bx as TMantineUseInputWrapper, by as TMantineWidth, bz as TStyle, b as TStylePlacement, d as TStylePlatform, e as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, f as _resetPluginStyleRegistry, g as extendStyleRegistry, h as getMergedStyleRegistry, i as getPluginStyleRegistry } from './styles.registry-B0G7kKxh.mjs';
|
|
3
3
|
export { u as TMantineAccordionVariant, x as TMantineActionIconLoading, d as TMantineAlign, y as TMantineAllowNextClicks, z as TMantineAllowStepClick, A as TMantineAspectRatio, B as TMantineAutoContrast, q as TMantineAvatarVariant, p as TMantineBadgeVariant, C as TMantineBlock, D as TMantineCenterInline, E as TMantineChecked, F as TMantineChipChecked, G as TMantineChipMultiple, r as TMantineChipVariant, H as TMantineClampBehavior, I as TMantineCodeBlock, i as TMantineColor, J as TMantineColorFormat, K as TMantineColorInputSwatches, L as TMantineColorPickerSwatches, M as TMantineColorPickerSwatchesPerRow, N as TMantineCompact, O as TMantineContainerFluid, e as TMantineDirection, P as TMantineDisabled, m as TMantineFieldsetVariant, Q as TMantineFileAccept, R as TMantineFileInputMultiple, S as TMantineFluid, U as TMantineFullWidth, V as TMantineGridGrow, W as TMantineGridOverflow, g as TMantineGridSpan, X as TMantineGroupGrow, Y as TMantineGroupWrap, Z as TMantineGrow, _ as TMantineHighlight, s as TMantineIndicatorPosition, $ as TMantineInline, a0 as TMantineIsLink, c as TMantineJustify, a1 as TMantineKbdSize, a2 as TMantineLoading, a3 as TMantineMultiple, a4 as TMantineNotificationWithCloseButton, a5 as TMantineNumberInputDecimalScale, a6 as TMantineOpenInNewTab, h as TMantineOrientation, a7 as TMantineProcessing, T as TMantineRadius, a8 as TMantineRangeSliderMarks, a9 as TMantineRatingCount, aa as TMantineRatingFractions, ab as TMantineRatingReadonly, ac as TMantineReadonly, l as TMantineSize, ad as TMantineSpaceHorizontal, b as TMantineSpacing, n as TMantineSpoilerMaxHeight, ae as TMantineSwatches, af as TMantineTabDisabled, v as TMantineTabsVariant, t as TMantineThemeIconVariant, w as TMantineTimelineLineVariant, k as TMantineTitleOrder, ag as TMantineUseMantineStyle, o as TMantineVariant, ah as TMantineWithCloseButton, ai as TMantineWithIcon, f as TMantineWrap, j as TSharedRadius, a as TSharedSize } from './common-CJSHQL1E.mjs';
|
|
4
4
|
import { ReactNode, ComponentType } from 'react';
|
|
5
5
|
import { THeroUiButtonVariant, THeroUiSize } from './theme/index.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as TStyleName, j as IContentField } from './styles.registry-
|
|
2
|
-
export { B as BASE_STYLE_REGISTRY, k as IAccordionItemStyle, l as IAccordionStyle, m as IActionIconStyle, n as IAlertStyle, o as IAspectRatioStyle, p as IAudioStyle, q as IAvatarStyle, r as IBackgroundImageStyle, s as IBadgeStyle, t as IBaseStyle, u as IBlockquoteStyle, v as IBoxStyle, w as IButtonStyle, x as ICardSegmentStyle, y as ICardStyle, z as ICarouselStyle, A as ICenterStyle, C as ICheckboxStyle, D as IChipStyle, E as ICodeStyle, F as IColorInputStyle, G as IColorPickerStyle, H as IComboboxStyle, J as IContainerStyle, K as IDataContainerStyle, L as IDatePickerStyle, M as IDividerStyle, N as IEntryListStyle, O as IEntryRecordDeleteStyle, P as IEntryRecordStyle, Q as IFieldsetStyle, R as IFigureStyle, U as IFileInputStyle, V as IFlexStyle, W as IFormLogStyle, X as IFormRecordStyle, Y as IFormStyle, Z as IGridColumnStyle, $ as IGridStyle, a0 as IGroupStyle, a1 as IHighlightStyle, a2 as IHtmlTagStyle, a3 as IImageStyle, a4 as IIndicatorStyle, a5 as IInputStyle, a6 as IKbdStyle, a7 as ILinkStyle, a8 as IListItemStyle, a9 as IListStyle, aa as ILoginStyle, ab as ILoopStyle, ac as IMissingStyle, ad as INoAccessStyle, ae as INotFoundStyle, af as INotificationStyle, ag as INumberInputStyle, ah as IPaperStyle, a as IPluginStyleRegistryEntry, ai as IProfileStyle, aj as IProgressRootStyle, ak as IProgressSectionStyle, al as IProgressStyle, am as IRadioStyle, an as IRangeSliderStyle, ao as IRatingStyle, ap as IRefContainerStyle, aq as IRegisterStyle, ar as IResetPasswordStyle, as as IRichTextEditorStyle, at as IScrollAreaStyle, au as ISegmentedControlStyle, av as ISelectStyle, aw as IShowUserInputEntry, ax as IShowUserInputStyle, ay as ISimpleGridStyle, az as ISliderStyle, aA as ISpaceStyle, aB as ISpoilerStyle, aC as IStackStyle, I as IStyleRegistryEntry, aD as IStyleWithSpacing, aE as ISwitchStyle, aF as ITabStyle, aG as ITabsStyle, aH as ITextInputStyle, aI as ITextStyle, aJ as ITextareaStyle, aK as IThemeIconStyle, aL as ITimelineItemStyle, aM as ITimelineStyle, aN as ITitleStyle, aO as ITwoFactorAuthStyle, aP as ITypographyStyle, aQ as IUnknownStyle, aR as IValidateStyle, aS as IVersionStyle, aT as IVideoStyle, S as STYLE_REGISTRY, c as TConcretePlatform, aU as TMantineAccordionChevronPosition, aV as TMantineAccordionDisableChevronRotation, aW as TMantineAccordionLoop, aX as TMantineAccordionMultiple, aY as TMantineBorder, aZ as TMantineCardShadow, a_ as TMantineCheckboxLabelPosition, a$ as TMantineCols, b0 as TMantineDividerVariant, b1 as TMantineGap, b2 as TMantineGridOffset, b3 as TMantineGridOrder, b4 as TMantineHeight, b5 as TMantineIconSize, b6 as TMantineImageFit, b7 as TMantineLineClamp, b8 as TMantineListCenter, b9 as TMantineListStyleType, ba as TMantineListType, bb as TMantineListWithPadding, bc as TMantinePaperShadow, bd as TMantineProgressTransition, be as TMantineScrollAreaSize, bf as TMantineScrollAreaType, bg as TMantineTextAlign, bh as TMantineTextDecoration, bi as TMantineTextFontStyle, bj as TMantineTextFontWeight, bk as TMantineTextInherit, bl as TMantineTextInputVariant, bm as TMantineTextSpan, bn as TMantineTextTransform, bo as TMantineTextTruncate, bp as TMantineTextVariant, bq as TMantineTextareaAutosize, br as TMantineTextareaResize, bs as TMantineTextareaVariant, bt as TMantineTimelineAlign, bu as TMantineTitleLineClamp, bv as TMantineTitleTextWrap, bw as TMantineTranslatable, bx as TMantineUseInputWrapper, by as TMantineWidth, bz as TStyle, b as TStylePlacement, d as TStylePlatform, e as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, f as _resetPluginStyleRegistry, g as extendStyleRegistry, h as getMergedStyleRegistry, i as getPluginStyleRegistry } from './styles.registry-
|
|
1
|
+
import { T as TStyleName, j as IContentField } from './styles.registry-D4bQy2Pz.js';
|
|
2
|
+
export { B as BASE_STYLE_REGISTRY, k as IAccordionItemStyle, l as IAccordionStyle, m as IActionIconStyle, n as IAlertStyle, o as IAspectRatioStyle, p as IAudioStyle, q as IAvatarStyle, r as IBackgroundImageStyle, s as IBadgeStyle, t as IBaseStyle, u as IBlockquoteStyle, v as IBoxStyle, w as IButtonStyle, x as ICardSegmentStyle, y as ICardStyle, z as ICarouselStyle, A as ICenterStyle, C as ICheckboxStyle, D as IChipStyle, E as ICodeStyle, F as IColorInputStyle, G as IColorPickerStyle, H as IComboboxStyle, J as IContainerStyle, K as IDataContainerStyle, L as IDatePickerStyle, M as IDividerStyle, N as IEntryListStyle, O as IEntryRecordDeleteStyle, P as IEntryRecordStyle, Q as IFieldsetStyle, R as IFigureStyle, U as IFileInputStyle, V as IFlexStyle, W as IFormLogStyle, X as IFormRecordStyle, Y as IFormStyle, Z as IGridColumnStyle, $ as IGridStyle, a0 as IGroupStyle, a1 as IHighlightStyle, a2 as IHtmlTagStyle, a3 as IImageStyle, a4 as IIndicatorStyle, a5 as IInputStyle, a6 as IKbdStyle, a7 as ILinkStyle, a8 as IListItemStyle, a9 as IListStyle, aa as ILoginStyle, ab as ILoopStyle, ac as IMissingStyle, ad as INoAccessStyle, ae as INotFoundStyle, af as INotificationStyle, ag as INumberInputStyle, ah as IPaperStyle, a as IPluginStyleRegistryEntry, ai as IProfileStyle, aj as IProgressRootStyle, ak as IProgressSectionStyle, al as IProgressStyle, am as IRadioStyle, an as IRangeSliderStyle, ao as IRatingStyle, ap as IRefContainerStyle, aq as IRegisterStyle, ar as IResetPasswordStyle, as as IRichTextEditorStyle, at as IScrollAreaStyle, au as ISegmentedControlStyle, av as ISelectStyle, aw as IShowUserInputEntry, ax as IShowUserInputStyle, ay as ISimpleGridStyle, az as ISliderStyle, aA as ISpaceStyle, aB as ISpoilerStyle, aC as IStackStyle, I as IStyleRegistryEntry, aD as IStyleWithSpacing, aE as ISwitchStyle, aF as ITabStyle, aG as ITabsStyle, aH as ITextInputStyle, aI as ITextStyle, aJ as ITextareaStyle, aK as IThemeIconStyle, aL as ITimelineItemStyle, aM as ITimelineStyle, aN as ITitleStyle, aO as ITwoFactorAuthStyle, aP as ITypographyStyle, aQ as IUnknownStyle, aR as IValidateStyle, aS as IVersionStyle, aT as IVideoStyle, S as STYLE_REGISTRY, c as TConcretePlatform, aU as TMantineAccordionChevronPosition, aV as TMantineAccordionDisableChevronRotation, aW as TMantineAccordionLoop, aX as TMantineAccordionMultiple, aY as TMantineBorder, aZ as TMantineCardShadow, a_ as TMantineCheckboxLabelPosition, a$ as TMantineCols, b0 as TMantineDividerVariant, b1 as TMantineGap, b2 as TMantineGridOffset, b3 as TMantineGridOrder, b4 as TMantineHeight, b5 as TMantineIconSize, b6 as TMantineImageFit, b7 as TMantineLineClamp, b8 as TMantineListCenter, b9 as TMantineListStyleType, ba as TMantineListType, bb as TMantineListWithPadding, bc as TMantinePaperShadow, bd as TMantineProgressTransition, be as TMantineScrollAreaSize, bf as TMantineScrollAreaType, bg as TMantineTextAlign, bh as TMantineTextDecoration, bi as TMantineTextFontStyle, bj as TMantineTextFontWeight, bk as TMantineTextInherit, bl as TMantineTextInputVariant, bm as TMantineTextSpan, bn as TMantineTextTransform, bo as TMantineTextTruncate, bp as TMantineTextVariant, bq as TMantineTextareaAutosize, br as TMantineTextareaResize, bs as TMantineTextareaVariant, bt as TMantineTimelineAlign, bu as TMantineTitleLineClamp, bv as TMantineTitleTextWrap, bw as TMantineTranslatable, bx as TMantineUseInputWrapper, by as TMantineWidth, bz as TStyle, b as TStylePlacement, d as TStylePlatform, e as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, f as _resetPluginStyleRegistry, g as extendStyleRegistry, h as getMergedStyleRegistry, i as getPluginStyleRegistry } from './styles.registry-D4bQy2Pz.js';
|
|
3
3
|
export { u as TMantineAccordionVariant, x as TMantineActionIconLoading, d as TMantineAlign, y as TMantineAllowNextClicks, z as TMantineAllowStepClick, A as TMantineAspectRatio, B as TMantineAutoContrast, q as TMantineAvatarVariant, p as TMantineBadgeVariant, C as TMantineBlock, D as TMantineCenterInline, E as TMantineChecked, F as TMantineChipChecked, G as TMantineChipMultiple, r as TMantineChipVariant, H as TMantineClampBehavior, I as TMantineCodeBlock, i as TMantineColor, J as TMantineColorFormat, K as TMantineColorInputSwatches, L as TMantineColorPickerSwatches, M as TMantineColorPickerSwatchesPerRow, N as TMantineCompact, O as TMantineContainerFluid, e as TMantineDirection, P as TMantineDisabled, m as TMantineFieldsetVariant, Q as TMantineFileAccept, R as TMantineFileInputMultiple, S as TMantineFluid, U as TMantineFullWidth, V as TMantineGridGrow, W as TMantineGridOverflow, g as TMantineGridSpan, X as TMantineGroupGrow, Y as TMantineGroupWrap, Z as TMantineGrow, _ as TMantineHighlight, s as TMantineIndicatorPosition, $ as TMantineInline, a0 as TMantineIsLink, c as TMantineJustify, a1 as TMantineKbdSize, a2 as TMantineLoading, a3 as TMantineMultiple, a4 as TMantineNotificationWithCloseButton, a5 as TMantineNumberInputDecimalScale, a6 as TMantineOpenInNewTab, h as TMantineOrientation, a7 as TMantineProcessing, T as TMantineRadius, a8 as TMantineRangeSliderMarks, a9 as TMantineRatingCount, aa as TMantineRatingFractions, ab as TMantineRatingReadonly, ac as TMantineReadonly, l as TMantineSize, ad as TMantineSpaceHorizontal, b as TMantineSpacing, n as TMantineSpoilerMaxHeight, ae as TMantineSwatches, af as TMantineTabDisabled, v as TMantineTabsVariant, t as TMantineThemeIconVariant, w as TMantineTimelineLineVariant, k as TMantineTitleOrder, ag as TMantineUseMantineStyle, o as TMantineVariant, ah as TMantineWithCloseButton, ai as TMantineWithIcon, f as TMantineWrap, j as TSharedRadius, a as TSharedSize } from './common-CJSHQL1E.js';
|
|
4
4
|
import { ReactNode, ComponentType } from 'react';
|
|
5
5
|
import { THeroUiButtonVariant, THeroUiSize } from './theme/index.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { I as IPluginManifest, a as IPluginManifestAdminPage, b as IPluginManifestApiRoute, c as IPluginManifestAsset, d as IPluginManifestCapability, e as IPluginManifestCompatibility, f as IPluginManifestConflict, g as IPluginManifestDataAccess, h as IPluginManifestDependency, i as IPluginManifestExternalHost, j as IPluginManifestFeatureFlag, k as IPluginManifestHealth, l as IPluginManifestLookupExtension, m as IPluginManifestMobile, n as IPluginManifestPermission, o as IPluginManifestRealtimeTopic, p as IPluginManifestScheduledJob, q as IPluginManifestSecurity, r as IPluginManifestStyle, s as IPluginManifestTrustLevel } from '../manifest-C8sBTLJb.mjs';
|
|
2
|
-
import { I as IStyleRegistryEntry } from '../styles.registry-
|
|
2
|
+
import { I as IStyleRegistryEntry } from '../styles.registry-B0G7kKxh.mjs';
|
|
3
3
|
import '../common-CJSHQL1E.mjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { I as IPluginManifest, a as IPluginManifestAdminPage, b as IPluginManifestApiRoute, c as IPluginManifestAsset, d as IPluginManifestCapability, e as IPluginManifestCompatibility, f as IPluginManifestConflict, g as IPluginManifestDataAccess, h as IPluginManifestDependency, i as IPluginManifestExternalHost, j as IPluginManifestFeatureFlag, k as IPluginManifestHealth, l as IPluginManifestLookupExtension, m as IPluginManifestMobile, n as IPluginManifestPermission, o as IPluginManifestRealtimeTopic, p as IPluginManifestScheduledJob, q as IPluginManifestSecurity, r as IPluginManifestStyle, s as IPluginManifestTrustLevel } from '../manifest-C8sBTLJb.js';
|
|
2
|
-
import { I as IStyleRegistryEntry } from '../styles.registry-
|
|
2
|
+
import { I as IStyleRegistryEntry } from '../styles.registry-D4bQy2Pz.js';
|
|
3
3
|
import '../common-CJSHQL1E.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as TStyleName, I as IStyleRegistryEntry, a as IPluginStyleRegistryEntry, b as TStylePlacement, c as TConcretePlatform, d as TStylePlatform } from '../styles.registry-
|
|
2
|
-
export { B as BASE_STYLE_REGISTRY, S as STYLE_REGISTRY, e as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, f as _resetPluginStyleRegistry, g as extendStyleRegistry, h as getMergedStyleRegistry, i as getPluginStyleRegistry } from '../styles.registry-
|
|
1
|
+
import { T as TStyleName, I as IStyleRegistryEntry, a as IPluginStyleRegistryEntry, b as TStylePlacement, c as TConcretePlatform, d as TStylePlatform } from '../styles.registry-B0G7kKxh.mjs';
|
|
2
|
+
export { B as BASE_STYLE_REGISTRY, S as STYLE_REGISTRY, e as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, f as _resetPluginStyleRegistry, g as extendStyleRegistry, h as getMergedStyleRegistry, i as getPluginStyleRegistry } from '../styles.registry-B0G7kKxh.mjs';
|
|
3
3
|
import '../common-CJSHQL1E.mjs';
|
|
4
4
|
|
|
5
5
|
/**
|
package/dist/registry/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as TStyleName, I as IStyleRegistryEntry, a as IPluginStyleRegistryEntry, b as TStylePlacement, c as TConcretePlatform, d as TStylePlatform } from '../styles.registry-
|
|
2
|
-
export { B as BASE_STYLE_REGISTRY, S as STYLE_REGISTRY, e as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, f as _resetPluginStyleRegistry, g as extendStyleRegistry, h as getMergedStyleRegistry, i as getPluginStyleRegistry } from '../styles.registry-
|
|
1
|
+
import { T as TStyleName, I as IStyleRegistryEntry, a as IPluginStyleRegistryEntry, b as TStylePlacement, c as TConcretePlatform, d as TStylePlatform } from '../styles.registry-D4bQy2Pz.js';
|
|
2
|
+
export { B as BASE_STYLE_REGISTRY, S as STYLE_REGISTRY, e as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, f as _resetPluginStyleRegistry, g as extendStyleRegistry, h as getMergedStyleRegistry, i as getPluginStyleRegistry } from '../styles.registry-D4bQy2Pz.js';
|
|
3
3
|
import '../common-CJSHQL1E.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -50,13 +50,13 @@ interface IValidateStyle extends IStyleWithSpacing {
|
|
|
50
50
|
label_save?: IContentField<string>;
|
|
51
51
|
label_update?: IContentField<string>;
|
|
52
52
|
label_cancel?: IContentField<string>;
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
53
|
+
shared_buttons_size?: IContentField<string>;
|
|
54
|
+
shared_buttons_radius?: IContentField<string>;
|
|
55
|
+
shared_buttons_variant?: IContentField<string>;
|
|
56
|
+
shared_buttons_position?: IContentField<string>;
|
|
57
|
+
shared_buttons_order?: IContentField<string>;
|
|
58
|
+
shared_btn_save_color?: IContentField<string>;
|
|
59
|
+
shared_btn_cancel_color?: IContentField<string>;
|
|
60
60
|
web_card_shadow?: IContentField<string>;
|
|
61
61
|
web_card_padding?: IContentField<string>;
|
|
62
62
|
shared_radius?: IContentField<TMantineRadius>;
|
|
@@ -613,12 +613,13 @@ interface IFormStyle extends IStyleWithSpacing {
|
|
|
613
613
|
btn_cancel_url?: IContentField<string>;
|
|
614
614
|
btn_cancel_label?: IContentField<string>;
|
|
615
615
|
alert_error?: IContentField<string>;
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
616
|
+
shared_buttons_size?: IContentField<string>;
|
|
617
|
+
shared_buttons_radius?: IContentField<string>;
|
|
618
|
+
shared_buttons_variant?: IContentField<string>;
|
|
619
|
+
shared_buttons_position?: IContentField<string>;
|
|
620
|
+
shared_buttons_order?: IContentField<string>;
|
|
621
|
+
shared_btn_save_color?: IContentField<string>;
|
|
622
|
+
shared_btn_cancel_color?: IContentField<string>;
|
|
622
623
|
}
|
|
623
624
|
interface IFormLogStyle extends IFormStyle {
|
|
624
625
|
style_name: 'form-log';
|
|
@@ -626,7 +627,7 @@ interface IFormLogStyle extends IFormStyle {
|
|
|
626
627
|
interface IFormRecordStyle extends IFormStyle {
|
|
627
628
|
style_name: 'form-record';
|
|
628
629
|
btn_update_label?: IContentField<string>;
|
|
629
|
-
|
|
630
|
+
shared_btn_update_color?: IContentField<string>;
|
|
630
631
|
}
|
|
631
632
|
interface IInputStyle extends IBaseStyle {
|
|
632
633
|
style_name: 'input';
|
|
@@ -1246,9 +1247,7 @@ interface IBaseStyle {
|
|
|
1246
1247
|
}
|
|
1247
1248
|
/** Styles that support the unified spacing field. */
|
|
1248
1249
|
interface IStyleWithSpacing extends IBaseStyle {
|
|
1249
|
-
/**
|
|
1250
|
-
web_spacing_margin?: IContentField<string>;
|
|
1251
|
-
/** Portable box-model spacing (margin + padding). Backend field `shared_spacing` (was `mantine_spacing_margin_padding`). */
|
|
1250
|
+
/** Portable box-model spacing (margin + padding). Backend field `shared_spacing`; RF-15 merged the legacy margin-only `web_spacing_margin` into this, so every spacing-capable style now uses it. */
|
|
1252
1251
|
shared_spacing?: IContentField<string>;
|
|
1253
1252
|
}
|
|
1254
1253
|
|
|
@@ -50,13 +50,13 @@ interface IValidateStyle extends IStyleWithSpacing {
|
|
|
50
50
|
label_save?: IContentField<string>;
|
|
51
51
|
label_update?: IContentField<string>;
|
|
52
52
|
label_cancel?: IContentField<string>;
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
53
|
+
shared_buttons_size?: IContentField<string>;
|
|
54
|
+
shared_buttons_radius?: IContentField<string>;
|
|
55
|
+
shared_buttons_variant?: IContentField<string>;
|
|
56
|
+
shared_buttons_position?: IContentField<string>;
|
|
57
|
+
shared_buttons_order?: IContentField<string>;
|
|
58
|
+
shared_btn_save_color?: IContentField<string>;
|
|
59
|
+
shared_btn_cancel_color?: IContentField<string>;
|
|
60
60
|
web_card_shadow?: IContentField<string>;
|
|
61
61
|
web_card_padding?: IContentField<string>;
|
|
62
62
|
shared_radius?: IContentField<TMantineRadius>;
|
|
@@ -613,12 +613,13 @@ interface IFormStyle extends IStyleWithSpacing {
|
|
|
613
613
|
btn_cancel_url?: IContentField<string>;
|
|
614
614
|
btn_cancel_label?: IContentField<string>;
|
|
615
615
|
alert_error?: IContentField<string>;
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
616
|
+
shared_buttons_size?: IContentField<string>;
|
|
617
|
+
shared_buttons_radius?: IContentField<string>;
|
|
618
|
+
shared_buttons_variant?: IContentField<string>;
|
|
619
|
+
shared_buttons_position?: IContentField<string>;
|
|
620
|
+
shared_buttons_order?: IContentField<string>;
|
|
621
|
+
shared_btn_save_color?: IContentField<string>;
|
|
622
|
+
shared_btn_cancel_color?: IContentField<string>;
|
|
622
623
|
}
|
|
623
624
|
interface IFormLogStyle extends IFormStyle {
|
|
624
625
|
style_name: 'form-log';
|
|
@@ -626,7 +627,7 @@ interface IFormLogStyle extends IFormStyle {
|
|
|
626
627
|
interface IFormRecordStyle extends IFormStyle {
|
|
627
628
|
style_name: 'form-record';
|
|
628
629
|
btn_update_label?: IContentField<string>;
|
|
629
|
-
|
|
630
|
+
shared_btn_update_color?: IContentField<string>;
|
|
630
631
|
}
|
|
631
632
|
interface IInputStyle extends IBaseStyle {
|
|
632
633
|
style_name: 'input';
|
|
@@ -1246,9 +1247,7 @@ interface IBaseStyle {
|
|
|
1246
1247
|
}
|
|
1247
1248
|
/** Styles that support the unified spacing field. */
|
|
1248
1249
|
interface IStyleWithSpacing extends IBaseStyle {
|
|
1249
|
-
/**
|
|
1250
|
-
web_spacing_margin?: IContentField<string>;
|
|
1251
|
-
/** Portable box-model spacing (margin + padding). Backend field `shared_spacing` (was `mantine_spacing_margin_padding`). */
|
|
1250
|
+
/** Portable box-model spacing (margin + padding). Backend field `shared_spacing`; RF-15 merged the legacy margin-only `web_spacing_margin` into this, so every spacing-capable style now uses it. */
|
|
1252
1251
|
shared_spacing?: IContentField<string>;
|
|
1253
1252
|
}
|
|
1254
1253
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@selfhelp/shared",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.4",
|
|
4
4
|
"description": "Shared TypeScript package for SelfHelp web frontend and mobile app: style registry, types, API contracts, Mantine theme tokens, condition + interpolation engines, CMS class allow-list.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
package/src/types/styles/auth.ts
CHANGED
|
@@ -59,13 +59,14 @@ export interface IValidateStyle extends IStyleWithSpacing {
|
|
|
59
59
|
label_save?: IContentField<string>;
|
|
60
60
|
label_update?: IContentField<string>;
|
|
61
61
|
label_cancel?: IContentField<string>;
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
62
|
+
// RF-21: shared with form-log/form-record so the mobile custom form matches.
|
|
63
|
+
shared_buttons_size?: IContentField<string>;
|
|
64
|
+
shared_buttons_radius?: IContentField<string>;
|
|
65
|
+
shared_buttons_variant?: IContentField<string>;
|
|
66
|
+
shared_buttons_position?: IContentField<string>;
|
|
67
|
+
shared_buttons_order?: IContentField<string>;
|
|
68
|
+
shared_btn_save_color?: IContentField<string>;
|
|
69
|
+
shared_btn_cancel_color?: IContentField<string>;
|
|
69
70
|
web_card_shadow?: IContentField<string>;
|
|
70
71
|
web_card_padding?: IContentField<string>;
|
|
71
72
|
shared_radius?: IContentField<TMantineRadius>;
|
package/src/types/styles/base.ts
CHANGED
|
@@ -65,8 +65,6 @@ export interface IBaseStyle {
|
|
|
65
65
|
|
|
66
66
|
/** Styles that support the unified spacing field. */
|
|
67
67
|
export interface IStyleWithSpacing extends IBaseStyle {
|
|
68
|
-
/**
|
|
69
|
-
web_spacing_margin?: IContentField<string>;
|
|
70
|
-
/** Portable box-model spacing (margin + padding). Backend field `shared_spacing` (was `mantine_spacing_margin_padding`). */
|
|
68
|
+
/** Portable box-model spacing (margin + padding). Backend field `shared_spacing`; RF-15 merged the legacy margin-only `web_spacing_margin` into this, so every spacing-capable style now uses it. */
|
|
71
69
|
shared_spacing?: IContentField<string>;
|
|
72
70
|
}
|
|
@@ -26,12 +26,16 @@ export interface IFormStyle extends IStyleWithSpacing {
|
|
|
26
26
|
btn_cancel_url?: IContentField<string>;
|
|
27
27
|
btn_cancel_label?: IContentField<string>;
|
|
28
28
|
alert_error?: IContentField<string>;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
29
|
+
// RF-21: button knobs are portable to the mobile custom form (not a 1:1
|
|
30
|
+
// component map). Promoted web_* -> shared_* so both renderers read them.
|
|
31
|
+
shared_buttons_size?: IContentField<string>;
|
|
32
|
+
shared_buttons_radius?: IContentField<string>;
|
|
33
|
+
shared_buttons_variant?: IContentField<string>;
|
|
34
|
+
shared_buttons_position?: IContentField<string>;
|
|
35
|
+
shared_buttons_order?: IContentField<string>;
|
|
36
|
+
shared_btn_save_color?: IContentField<string>;
|
|
37
|
+
shared_btn_cancel_color?: IContentField<string>;
|
|
38
|
+
}
|
|
35
39
|
|
|
36
40
|
export interface IFormLogStyle extends IFormStyle {
|
|
37
41
|
style_name: 'form-log';
|
|
@@ -40,7 +44,7 @@ export interface IFormLogStyle extends IFormStyle {
|
|
|
40
44
|
export interface IFormRecordStyle extends IFormStyle {
|
|
41
45
|
style_name: 'form-record';
|
|
42
46
|
btn_update_label?: IContentField<string>;
|
|
43
|
-
|
|
47
|
+
shared_btn_update_color?: IContentField<string>;
|
|
44
48
|
}
|
|
45
49
|
|
|
46
50
|
export interface IInputStyle extends IBaseStyle {
|