@selfhelp/shared 1.14.17 → 1.14.20
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 +64 -0
- package/dist/index.d.mts +27 -3
- package/dist/index.d.ts +27 -3
- 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-D6u2lOw8.d.ts → styles.registry-B8IaEULk.d.ts} +23 -1
- package/dist/{styles.registry-DPNHAOM1.d.mts → styles.registry-DhkxrV2-.d.mts} +23 -1
- package/package.json +1 -1
- package/src/types/mobile-adapters.ts +26 -0
- package/src/types/styles/auth.ts +4 -0
- package/src/types/styles/forms.ts +25 -1
- package/src/types/styles/interactive.ts +8 -0
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,70 @@ 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.20
|
|
13
|
+
|
|
14
|
+
Type-contract drift fixes for three styles, reconciling the `@selfhelp/shared`
|
|
15
|
+
interfaces with the live `admin/styles/schema` catalog. All additions are
|
|
16
|
+
optional fields the DB already returns, so the contract stays backward
|
|
17
|
+
compatible.
|
|
18
|
+
|
|
19
|
+
### Added
|
|
20
|
+
|
|
21
|
+
- **`IResetPasswordStyle.shared_color`** — the `reset-password` style has a
|
|
22
|
+
`shared_color` field in the CMS (the submit/link-button accent, default
|
|
23
|
+
`blue`), which the web `ResetPasswordStyle` renderer already reads via an
|
|
24
|
+
inline cast. Typing it removes the cast and documents the cross-platform
|
|
25
|
+
button colour.
|
|
26
|
+
- **`IValidateStyle.label_timezone`** — the `validate` activation form renders a
|
|
27
|
+
timezone select for anonymous users; its label field existed in the DB but was
|
|
28
|
+
missing from the type.
|
|
29
|
+
- **`IShowUserInputStyle.data_table`** — the `show-user-input` style binds to a
|
|
30
|
+
source data table (`data_table`, common scope); the field was in the DB and
|
|
31
|
+
documented in the reference but missing from the type.
|
|
32
|
+
|
|
33
|
+
## v1.14.19
|
|
34
|
+
|
|
35
|
+
Fixes for the select renderers (web label + mobile multi-select), both additive
|
|
36
|
+
so the contract stays backward compatible.
|
|
37
|
+
|
|
38
|
+
### Added
|
|
39
|
+
|
|
40
|
+
- **`ISelectStyle.label`** — the `select` style has always had a `label`
|
|
41
|
+
(markdown-inline, content scope) field in the CMS, but the type omitted it, so
|
|
42
|
+
the web `SelectStyle` renderer never displayed it. Typing it lets the frontend
|
|
43
|
+
render the label like every other form field.
|
|
44
|
+
- **`IMobileSelectProps.multiple`** — multi-select mode for the mobile select
|
|
45
|
+
adapter (CMS `is_multiple`). The contract value stays a single string, now a
|
|
46
|
+
comma-separated list in multiple mode; the adapter maps it to HeroUI Native's
|
|
47
|
+
`selectionMode="multiple"`.
|
|
48
|
+
|
|
49
|
+
## v1.14.18
|
|
50
|
+
|
|
51
|
+
Mobile-only capability pass (backend migration `Version20260622145334`): HeroUI
|
|
52
|
+
Native props that have no web/Mantine equivalent, exposed as `mobile_*` CMS
|
|
53
|
+
fields so authors configure the native look from the CMS. The web renderer
|
|
54
|
+
ignores `mobile_*`. All additions are optional, so the contract stays backward
|
|
55
|
+
compatible.
|
|
56
|
+
|
|
57
|
+
### Added
|
|
58
|
+
|
|
59
|
+
- **Type aliases**: `TMobileSelectPresentation` (`'bottom-sheet' | 'dialog' |
|
|
60
|
+
'popover'`), `TMobileFieldVariant` (`'primary' | 'secondary'`),
|
|
61
|
+
`TMobileButtonFeedback` (`'scale-highlight' | 'scale-ripple' | 'scale' |
|
|
62
|
+
'none'`).
|
|
63
|
+
- **`ISelectStyle` / `IComboboxStyle`**: `mobile_select_presentation` — how the
|
|
64
|
+
HeroUI Native option list opens (combobox reuses the mobile select renderer).
|
|
65
|
+
- **`IButtonStyle`**: `mobile_button_feedback` — HeroUI Native press feedback.
|
|
66
|
+
- **`ISliderStyle` / `IRangeSliderStyle`**: `mobile_slider_show_value` /
|
|
67
|
+
`mobile_range_slider_show_value` — toggle the HeroUI Native `Slider.Output`
|
|
68
|
+
value bubble.
|
|
69
|
+
- **`ITextInputStyle` / `ITextareaStyle` / `ICheckboxStyle`**:
|
|
70
|
+
`mobile_input_variant` / `mobile_textarea_variant` / `mobile_checkbox_variant`
|
|
71
|
+
— HeroUI Native primary/secondary field variant.
|
|
72
|
+
- **Mobile adapter contract**: `IMobileSelectProps.presentation`,
|
|
73
|
+
`IMobileButtonProps.feedbackVariant`, `IMobileInputProps.variant`,
|
|
74
|
+
`IMobileTextareaProps.variant`, `IMobileCheckboxProps.variant`.
|
|
75
|
+
|
|
12
76
|
## v1.14.17
|
|
13
77
|
|
|
14
78
|
Mobile adapter contract additions for the form capability pass (so the mobile
|
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,
|
|
1
|
+
import { T as TStyleName, j as IContentField, k as TMobileButtonFeedback, l as TMobileFieldVariant, m as TMobileSelectPresentation } from './styles.registry-DhkxrV2-.mjs';
|
|
2
|
+
export { B as BASE_STYLE_REGISTRY, n as IAccordionItemStyle, o as IAccordionStyle, p as IActionIconStyle, q as IAlertStyle, r as IAspectRatioStyle, s as IAudioStyle, t as IAvatarStyle, u as IBackgroundImageStyle, v as IBadgeStyle, w as IBaseStyle, x as IBlockquoteStyle, y as IBoxStyle, z as IButtonStyle, A as ICardSegmentStyle, C as ICardStyle, D as ICarouselStyle, E as ICenterStyle, F as ICheckboxStyle, G as IChipStyle, H as ICodeStyle, J as IColorInputStyle, K as IColorPickerStyle, L as IComboboxStyle, M as IContainerStyle, N as IDataContainerStyle, O as IDatePickerStyle, P as IDividerStyle, Q as IEntryListStyle, R as IEntryRecordDeleteStyle, U as IEntryRecordStyle, V as IFieldsetStyle, W as IFigureStyle, X as IFileInputStyle, Y as IFlexStyle, Z as IFormLogStyle, $ as IFormRecordStyle, a0 as IFormStyle, a1 as IGridColumnStyle, a2 as IGridStyle, a3 as IGroupStyle, a4 as IHighlightStyle, a5 as IHtmlTagStyle, a6 as IImageStyle, a7 as IIndicatorStyle, a8 as IInputStyle, a9 as IKbdStyle, aa as ILinkStyle, ab as IListItemStyle, ac as IListStyle, ad as ILoginStyle, ae as ILoopStyle, af as IMissingStyle, ag as INoAccessStyle, ah as INotFoundStyle, ai as INotificationStyle, aj as INumberInputStyle, ak as IPaperStyle, a as IPluginStyleRegistryEntry, al as IProfileStyle, am as IProgressRootStyle, an as IProgressSectionStyle, ao as IProgressStyle, ap as IRadioStyle, aq as IRangeSliderStyle, ar as IRatingStyle, as as IRefContainerStyle, at as IRegisterStyle, au as IResetPasswordStyle, av as IRichTextEditorStyle, aw as IScrollAreaStyle, ax as ISegmentedControlStyle, ay as ISelectStyle, az as IShowUserInputEntry, aA as IShowUserInputStyle, aB as ISimpleGridStyle, aC as ISliderStyle, aD as ISpaceStyle, aE as ISpoilerStyle, aF as IStackStyle, I as IStyleRegistryEntry, aG as IStyleWithSpacing, aH as ISwitchStyle, aI as ITabStyle, aJ as ITabsStyle, aK as ITextInputStyle, aL as ITextStyle, aM as ITextareaStyle, aN as IThemeIconStyle, aO as ITimelineItemStyle, aP as ITimelineStyle, aQ as ITitleStyle, aR as ITwoFactorAuthStyle, aS as ITypographyStyle, aT as IUnknownStyle, aU as IValidateStyle, aV as IVersionStyle, aW as IVideoStyle, S as STYLE_REGISTRY, c as TConcretePlatform, aX as TMantineAccordionChevronPosition, aY as TMantineAccordionDisableChevronRotation, aZ as TMantineAccordionLoop, a_ as TMantineAccordionMultiple, a$ as TMantineAnchorUnderline, b0 as TMantineBorder, b1 as TMantineCardPadding, b2 as TMantineCardShadow, b3 as TMantineCols, b4 as TMantineDividerVariant, b5 as TMantineGap, b6 as TMantineGridOffset, b7 as TMantineGridOrder, b8 as TMantineHeight, b9 as TMantineIconSize, ba as TMantineImageFit, bb as TMantineLineClamp, bc as TMantineListCenter, bd as TMantineListStyleType, be as TMantineListType, bf as TMantineListWithPadding, bg as TMantinePaperShadow, bh as TMantineProgressTransition, bi as TMantineScrollAreaSize, bj as TMantineScrollAreaType, bk as TMantineTextAlign, bl as TMantineTextDecoration, bm as TMantineTextFontStyle, bn as TMantineTextFontWeight, bo as TMantineTextInherit, bp as TMantineTextInputVariant, bq as TMantineTextSpan, br as TMantineTextTransform, bs as TMantineTextTruncate, bt as TMantineTextVariant, bu as TMantineTextareaAutosize, bv as TMantineTextareaResize, bw as TMantineTextareaVariant, bx as TMantineTimelineAlign, by as TMantineTitleLineClamp, bz as TMantineTitleTextWrap, bA as TMantineTranslatable, bB as TMantineUseInputWrapper, bC as TMantineWidth, bD as TSharedBorder, bE as TSharedCols, bF as TSharedDimension, bG as TSharedDividerLabelPosition, bH as TSharedDividerVariant, bI as TSharedLabelPosition, bJ 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-DhkxrV2-.mjs';
|
|
3
3
|
export { v as TMantineAccordionVariant, z as TMantineActionIconLoading, d as TMantineAlign, A as TMantineAllowNextClicks, B as TMantineAllowStepClick, C as TMantineAspectRatio, D as TMantineAutoContrast, r as TMantineAvatarVariant, q as TMantineBadgeVariant, E as TMantineBlock, F as TMantineCenterInline, G as TMantineChecked, H as TMantineChipChecked, I as TMantineChipMultiple, s as TMantineChipVariant, J as TMantineClampBehavior, K as TMantineCodeBlock, T as TMantineColor, L as TMantineColorFormat, M as TMantineColorInputSwatches, N as TMantineColorPickerSwatches, O as TMantineColorPickerSwatchesPerRow, P as TMantineCompact, Q as TMantineContainerFluid, e as TMantineDirection, R as TMantineDisabled, n as TMantineFieldsetVariant, S as TMantineFileAccept, U as TMantineFileInputMultiple, V as TMantineFluid, W as TMantineFullWidth, i as TMantineGridGrow, g as TMantineGridOverflow, h as TMantineGridSpan, X as TMantineGroupGrow, Y as TMantineGroupWrap, Z as TMantineGrow, _ as TMantineHighlight, t 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, j as TMantineOrientation, a7 as TMantineProcessing, a as TMantineRadius, a8 as TMantineRangeSliderMarks, a9 as TMantineRatingCount, aa as TMantineRatingFractions, ab as TMantineRatingReadonly, ac as TMantineReadonly, m as TMantineSize, ad as TMantineSpaceHorizontal, y as TMantineSpacing, o as TMantineSpoilerMaxHeight, ae as TMantineSwatches, af as TMantineTabDisabled, w as TMantineTabsVariant, u as TMantineThemeIconVariant, x as TMantineTimelineLineVariant, l as TMantineTitleOrder, ag as TMantineUseMantineStyle, p as TMantineVariant, ah as TMantineWithCloseButton, ai as TMantineWithIcon, f as TMantineWrap, k as TSharedRadius, b as TSharedSize } from './common-DMm4kymA.mjs';
|
|
4
4
|
import { ReactNode, ComponentType } from 'react';
|
|
5
5
|
import { THeroUiButtonVariant, THeroUiSize } from './theme/index.mjs';
|
|
@@ -1192,6 +1192,11 @@ interface IMobileButtonProps extends IMobileAdapterBaseProps {
|
|
|
1192
1192
|
isLoading?: boolean;
|
|
1193
1193
|
isIconOnly?: boolean;
|
|
1194
1194
|
fullWidth?: boolean;
|
|
1195
|
+
/**
|
|
1196
|
+
* Native press feedback (HeroUI Native `feedbackVariant`). No web
|
|
1197
|
+
* equivalent — driven by the mobile-only `mobile_button_feedback` field.
|
|
1198
|
+
*/
|
|
1199
|
+
feedbackVariant?: TMobileButtonFeedback;
|
|
1195
1200
|
/**
|
|
1196
1201
|
* Optional concrete background colour (resolved hex) that overrides the
|
|
1197
1202
|
* variant's themed fill, used for cross-platform parity when a CMS style
|
|
@@ -1235,6 +1240,8 @@ interface IMobileInputProps extends IMobileAdapterBaseProps {
|
|
|
1235
1240
|
maxLength?: number;
|
|
1236
1241
|
/** Native auto-capitalize behaviour (from `mobile_auto_capitalize`). */
|
|
1237
1242
|
autoCapitalize?: 'none' | 'sentences' | 'words' | 'characters';
|
|
1243
|
+
/** HeroUI Native field variant (from `mobile_input_variant`). */
|
|
1244
|
+
variant?: TMobileFieldVariant;
|
|
1238
1245
|
}
|
|
1239
1246
|
interface IMobileTextareaProps extends IMobileAdapterBaseProps {
|
|
1240
1247
|
value?: string;
|
|
@@ -1250,6 +1257,8 @@ interface IMobileTextareaProps extends IMobileAdapterBaseProps {
|
|
|
1250
1257
|
maxLength?: number;
|
|
1251
1258
|
/** Native auto-capitalize behaviour (from `mobile_auto_capitalize`). */
|
|
1252
1259
|
autoCapitalize?: 'none' | 'sentences' | 'words' | 'characters';
|
|
1260
|
+
/** HeroUI Native field variant (from `mobile_textarea_variant`). */
|
|
1261
|
+
variant?: TMobileFieldVariant;
|
|
1253
1262
|
}
|
|
1254
1263
|
interface IMobileSwitchProps extends IMobileAdapterBaseProps {
|
|
1255
1264
|
isSelected?: boolean;
|
|
@@ -1268,6 +1277,8 @@ interface IMobileCheckboxProps extends IMobileAdapterBaseProps {
|
|
|
1268
1277
|
* to `right`.
|
|
1269
1278
|
*/
|
|
1270
1279
|
labelPosition?: 'left' | 'right';
|
|
1280
|
+
/** HeroUI Native checkbox variant (from `mobile_checkbox_variant`). */
|
|
1281
|
+
variant?: TMobileFieldVariant;
|
|
1271
1282
|
}
|
|
1272
1283
|
interface IMobileSelectOption {
|
|
1273
1284
|
value: string;
|
|
@@ -1279,6 +1290,19 @@ interface IMobileSelectProps extends IMobileAdapterBaseProps {
|
|
|
1279
1290
|
options: readonly IMobileSelectOption[];
|
|
1280
1291
|
placeholder?: string;
|
|
1281
1292
|
isDisabled?: boolean;
|
|
1293
|
+
/**
|
|
1294
|
+
* Multi-select mode (CMS `is_multiple`). When true the contract value is a
|
|
1295
|
+
* comma-separated list of option values and `onValueChange` emits the same
|
|
1296
|
+
* comma-separated form; the adapter renders HeroUI Native's
|
|
1297
|
+
* `selectionMode="multiple"`.
|
|
1298
|
+
*/
|
|
1299
|
+
multiple?: boolean;
|
|
1300
|
+
/**
|
|
1301
|
+
* How the option list opens (HeroUI Native Select.Content presentation).
|
|
1302
|
+
* From the mobile-only `mobile_select_presentation` field; empty/undefined
|
|
1303
|
+
* falls back to the renderer default (`bottom-sheet`).
|
|
1304
|
+
*/
|
|
1305
|
+
presentation?: TMobileSelectPresentation;
|
|
1282
1306
|
}
|
|
1283
1307
|
interface IMobileModalProps extends IMobileAdapterBaseProps {
|
|
1284
1308
|
isOpen: boolean;
|
|
@@ -1670,4 +1694,4 @@ declare function transformPageData(apiPage: IRawPage): IPageItem;
|
|
|
1670
1694
|
*/
|
|
1671
1695
|
declare function transformPagesData(pages: IRawPage[] | null | undefined): IPageItem[];
|
|
1672
1696
|
|
|
1673
|
-
export { API_VERSION_PREFIX, type AdvisoryAffected, type AdvisoryFeed, type AdvisorySeverity, type BackupManifest, type BackupRetentionPolicy, type BackupSchedulePolicy, CLASS_PATTERNS, CLASS_REMAP, CLIENT_TYPE_MOBILE, CLIENT_TYPE_MOBILE_AND_WEB, CLIENT_TYPE_WEB, COLOR_NAMES, type CheckSeverity, type CompatibilityRules, type CoreRelease, type DatabaseMigrationMetadata, ENDPOINTS, type FrontendRelease, HEADER_CLIENT_TYPE, type IApiError, type IApiMeta, type IAssetSource, type IBaseApiResponse, type IBasePageInfo, type IBasePageSection, type IClassPattern, type IClassRemap, type ICompatibilityError, type IConditionContext, IContentField, type IEvaluatedCondition, type IForgotPasswordRequest, type IForgotPasswordResponse, type IFormDeleteRequest, type IFormDeleteResponse, type IFormResultLegacyFields, type IFormSubmitData, type IFormSubmitRequest, type IFormSubmitResponse, type IFormUpdateData, type IFormUpdateRequest, type IFormUpdateResponse, type IFrontendUpdatePreflight, type IFrontendUpdatePreflightResponse, type IFrontendUpdateReleases, type IFrontendUpdateReleasesResponse, type IFrontendUpdateRequest, type IFrontendUpdateRequestResponse, type IGetPageResponse, type IGetPagesResponse, type IInlineNode, type IJwtPayload, type ILanguage, type ILanguageItem, type ILanguagePreference, type ILanguagePreferenceUpdateResponse, type ILanguagesResponse, type ILoginRequest, type ILoginSuccessData, type ILoginSuccessResponse, type ILogoutSuccessResponse, type IMaintenanceSetRequest, type IMeta, type IMobileAdapterBaseProps, type IMobileButtonProps, type IMobileCardProps, type IMobileCheckboxProps, type IMobileContainerProps, type IMobileInputProps, type IMobileModalProps, type IMobileSelectOption, type IMobileSelectProps, type IMobileSwitchProps, type IMobileTextProps, type IMobileTextareaProps, type IMobileUiAdapters, type IPageAccessTypeInfo, type IPageContent, type IPageField, type IPageFieldTranslation, type IPageFieldsData, type IPageItem, type IPageSectionWithFields, type IPageSectionsData, type IRefreshRequest, type IRefreshSuccessResponse, type IResetPasswordRequest, type IResetPasswordResponse, type ISpacingValue, type ISystemAdvisories, type ISystemAdvisoriesResponse, type ISystemAdvisory, type ISystemAdvisoryAffected, type ISystemHealth, type ISystemHealthComponent, type ISystemHealthResponse, type ISystemInstalledPlugin, type ISystemMaintenance, type ISystemMaintenanceResponse, type ISystemVersion, type ISystemVersionResponse, type ITwoFactorRequiredData, type ITwoFactorRequiredResponse, type ITwoFactorVerifyRequest, type ITwoFactorVerifySuccessResponse, type IUpdatePreflight, type IUpdatePreflightCheck, type IUpdatePreflightOption, type IUpdatePreflightResponse, type IUpdateRelease, type IUpdateReleases, type IUpdateReleasesResponse, type IUpdateRequest, type IUpdateRequestResponse, type IUpdateStatus, type IUpdateStatusManager, type IUpdateStatusResponse, type IUpdateStep, type IUserData, type IUserDataResponse, type ImageRef, type InstalledPlugin, type InstanceImages, type InstanceLock, type InstanceManifest, type InstanceMode, type InstanceResourceConfig, type InstanceRouting, type InstanceStatus, type InstanceVersions, type InventoryInstanceEntry, LITERAL_CLASSES, type LockPluginEntry, type LockServiceEntry, PERMISSIONS, type PluginRelease, type PreflightCheck, type PreflightOption, type PreflightStatus, RELEASE_CHANNELS, type RegistryIndex, type RegistryReleaseRef, type ReleaseChannel, type RuntimeServicePolicy, type RuntimeServiceRange, SIZE_VALUES, SPACING_VALUES, SYSTEM_ENDPOINTS, type SchedulerRelease, type SecurityAdvisory, type ServerInventory, type ServiceBackendCompatibility, type SignatureBlock, type SupportBundleMeta, type TCalcedValues, type TClassDecision, type TClientType, THeroUiButtonVariant, THeroUiSize, type TPermission, type TPlatform, TStyleName, type TSystemAdvisorySeverity, type TSystemComponentStatus, type TSystemDeployment, type TSystemHealthOverall, type TUpdateCheckSeverity, type TUpdateKind, type TUpdateOperationStatus, type TUpdatePreflightStatus, type TrustLevel, type TrustedKey, type TrustedKeysFile, type UpdatePreflightResult, type WorkerRelease, buildConditionContext, classifyClass, classifyClassString, evaluateCondition, findRemap, hasInlineFormatting, parseInlineRich, parseSpacing, replaceCalcedValues, resolveAssetSources, resolveAssetUrl, spacingToClasses, stripHtmlToText, transformPageData, transformPagesData };
|
|
1697
|
+
export { API_VERSION_PREFIX, type AdvisoryAffected, type AdvisoryFeed, type AdvisorySeverity, type BackupManifest, type BackupRetentionPolicy, type BackupSchedulePolicy, CLASS_PATTERNS, CLASS_REMAP, CLIENT_TYPE_MOBILE, CLIENT_TYPE_MOBILE_AND_WEB, CLIENT_TYPE_WEB, COLOR_NAMES, type CheckSeverity, type CompatibilityRules, type CoreRelease, type DatabaseMigrationMetadata, ENDPOINTS, type FrontendRelease, HEADER_CLIENT_TYPE, type IApiError, type IApiMeta, type IAssetSource, type IBaseApiResponse, type IBasePageInfo, type IBasePageSection, type IClassPattern, type IClassRemap, type ICompatibilityError, type IConditionContext, IContentField, type IEvaluatedCondition, type IForgotPasswordRequest, type IForgotPasswordResponse, type IFormDeleteRequest, type IFormDeleteResponse, type IFormResultLegacyFields, type IFormSubmitData, type IFormSubmitRequest, type IFormSubmitResponse, type IFormUpdateData, type IFormUpdateRequest, type IFormUpdateResponse, type IFrontendUpdatePreflight, type IFrontendUpdatePreflightResponse, type IFrontendUpdateReleases, type IFrontendUpdateReleasesResponse, type IFrontendUpdateRequest, type IFrontendUpdateRequestResponse, type IGetPageResponse, type IGetPagesResponse, type IInlineNode, type IJwtPayload, type ILanguage, type ILanguageItem, type ILanguagePreference, type ILanguagePreferenceUpdateResponse, type ILanguagesResponse, type ILoginRequest, type ILoginSuccessData, type ILoginSuccessResponse, type ILogoutSuccessResponse, type IMaintenanceSetRequest, type IMeta, type IMobileAdapterBaseProps, type IMobileButtonProps, type IMobileCardProps, type IMobileCheckboxProps, type IMobileContainerProps, type IMobileInputProps, type IMobileModalProps, type IMobileSelectOption, type IMobileSelectProps, type IMobileSwitchProps, type IMobileTextProps, type IMobileTextareaProps, type IMobileUiAdapters, type IPageAccessTypeInfo, type IPageContent, type IPageField, type IPageFieldTranslation, type IPageFieldsData, type IPageItem, type IPageSectionWithFields, type IPageSectionsData, type IRefreshRequest, type IRefreshSuccessResponse, type IResetPasswordRequest, type IResetPasswordResponse, type ISpacingValue, type ISystemAdvisories, type ISystemAdvisoriesResponse, type ISystemAdvisory, type ISystemAdvisoryAffected, type ISystemHealth, type ISystemHealthComponent, type ISystemHealthResponse, type ISystemInstalledPlugin, type ISystemMaintenance, type ISystemMaintenanceResponse, type ISystemVersion, type ISystemVersionResponse, type ITwoFactorRequiredData, type ITwoFactorRequiredResponse, type ITwoFactorVerifyRequest, type ITwoFactorVerifySuccessResponse, type IUpdatePreflight, type IUpdatePreflightCheck, type IUpdatePreflightOption, type IUpdatePreflightResponse, type IUpdateRelease, type IUpdateReleases, type IUpdateReleasesResponse, type IUpdateRequest, type IUpdateRequestResponse, type IUpdateStatus, type IUpdateStatusManager, type IUpdateStatusResponse, type IUpdateStep, type IUserData, type IUserDataResponse, type ImageRef, type InstalledPlugin, type InstanceImages, type InstanceLock, type InstanceManifest, type InstanceMode, type InstanceResourceConfig, type InstanceRouting, type InstanceStatus, type InstanceVersions, type InventoryInstanceEntry, LITERAL_CLASSES, type LockPluginEntry, type LockServiceEntry, PERMISSIONS, type PluginRelease, type PreflightCheck, type PreflightOption, type PreflightStatus, RELEASE_CHANNELS, type RegistryIndex, type RegistryReleaseRef, type ReleaseChannel, type RuntimeServicePolicy, type RuntimeServiceRange, SIZE_VALUES, SPACING_VALUES, SYSTEM_ENDPOINTS, type SchedulerRelease, type SecurityAdvisory, type ServerInventory, type ServiceBackendCompatibility, type SignatureBlock, type SupportBundleMeta, type TCalcedValues, type TClassDecision, type TClientType, THeroUiButtonVariant, THeroUiSize, TMobileButtonFeedback, TMobileFieldVariant, TMobileSelectPresentation, type TPermission, type TPlatform, TStyleName, type TSystemAdvisorySeverity, type TSystemComponentStatus, type TSystemDeployment, type TSystemHealthOverall, type TUpdateCheckSeverity, type TUpdateKind, type TUpdateOperationStatus, type TUpdatePreflightStatus, type TrustLevel, type TrustedKey, type TrustedKeysFile, type UpdatePreflightResult, type WorkerRelease, buildConditionContext, classifyClass, classifyClassString, evaluateCondition, findRemap, hasInlineFormatting, parseInlineRich, parseSpacing, replaceCalcedValues, resolveAssetSources, resolveAssetUrl, spacingToClasses, stripHtmlToText, transformPageData, transformPagesData };
|
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,
|
|
1
|
+
import { T as TStyleName, j as IContentField, k as TMobileButtonFeedback, l as TMobileFieldVariant, m as TMobileSelectPresentation } from './styles.registry-B8IaEULk.js';
|
|
2
|
+
export { B as BASE_STYLE_REGISTRY, n as IAccordionItemStyle, o as IAccordionStyle, p as IActionIconStyle, q as IAlertStyle, r as IAspectRatioStyle, s as IAudioStyle, t as IAvatarStyle, u as IBackgroundImageStyle, v as IBadgeStyle, w as IBaseStyle, x as IBlockquoteStyle, y as IBoxStyle, z as IButtonStyle, A as ICardSegmentStyle, C as ICardStyle, D as ICarouselStyle, E as ICenterStyle, F as ICheckboxStyle, G as IChipStyle, H as ICodeStyle, J as IColorInputStyle, K as IColorPickerStyle, L as IComboboxStyle, M as IContainerStyle, N as IDataContainerStyle, O as IDatePickerStyle, P as IDividerStyle, Q as IEntryListStyle, R as IEntryRecordDeleteStyle, U as IEntryRecordStyle, V as IFieldsetStyle, W as IFigureStyle, X as IFileInputStyle, Y as IFlexStyle, Z as IFormLogStyle, $ as IFormRecordStyle, a0 as IFormStyle, a1 as IGridColumnStyle, a2 as IGridStyle, a3 as IGroupStyle, a4 as IHighlightStyle, a5 as IHtmlTagStyle, a6 as IImageStyle, a7 as IIndicatorStyle, a8 as IInputStyle, a9 as IKbdStyle, aa as ILinkStyle, ab as IListItemStyle, ac as IListStyle, ad as ILoginStyle, ae as ILoopStyle, af as IMissingStyle, ag as INoAccessStyle, ah as INotFoundStyle, ai as INotificationStyle, aj as INumberInputStyle, ak as IPaperStyle, a as IPluginStyleRegistryEntry, al as IProfileStyle, am as IProgressRootStyle, an as IProgressSectionStyle, ao as IProgressStyle, ap as IRadioStyle, aq as IRangeSliderStyle, ar as IRatingStyle, as as IRefContainerStyle, at as IRegisterStyle, au as IResetPasswordStyle, av as IRichTextEditorStyle, aw as IScrollAreaStyle, ax as ISegmentedControlStyle, ay as ISelectStyle, az as IShowUserInputEntry, aA as IShowUserInputStyle, aB as ISimpleGridStyle, aC as ISliderStyle, aD as ISpaceStyle, aE as ISpoilerStyle, aF as IStackStyle, I as IStyleRegistryEntry, aG as IStyleWithSpacing, aH as ISwitchStyle, aI as ITabStyle, aJ as ITabsStyle, aK as ITextInputStyle, aL as ITextStyle, aM as ITextareaStyle, aN as IThemeIconStyle, aO as ITimelineItemStyle, aP as ITimelineStyle, aQ as ITitleStyle, aR as ITwoFactorAuthStyle, aS as ITypographyStyle, aT as IUnknownStyle, aU as IValidateStyle, aV as IVersionStyle, aW as IVideoStyle, S as STYLE_REGISTRY, c as TConcretePlatform, aX as TMantineAccordionChevronPosition, aY as TMantineAccordionDisableChevronRotation, aZ as TMantineAccordionLoop, a_ as TMantineAccordionMultiple, a$ as TMantineAnchorUnderline, b0 as TMantineBorder, b1 as TMantineCardPadding, b2 as TMantineCardShadow, b3 as TMantineCols, b4 as TMantineDividerVariant, b5 as TMantineGap, b6 as TMantineGridOffset, b7 as TMantineGridOrder, b8 as TMantineHeight, b9 as TMantineIconSize, ba as TMantineImageFit, bb as TMantineLineClamp, bc as TMantineListCenter, bd as TMantineListStyleType, be as TMantineListType, bf as TMantineListWithPadding, bg as TMantinePaperShadow, bh as TMantineProgressTransition, bi as TMantineScrollAreaSize, bj as TMantineScrollAreaType, bk as TMantineTextAlign, bl as TMantineTextDecoration, bm as TMantineTextFontStyle, bn as TMantineTextFontWeight, bo as TMantineTextInherit, bp as TMantineTextInputVariant, bq as TMantineTextSpan, br as TMantineTextTransform, bs as TMantineTextTruncate, bt as TMantineTextVariant, bu as TMantineTextareaAutosize, bv as TMantineTextareaResize, bw as TMantineTextareaVariant, bx as TMantineTimelineAlign, by as TMantineTitleLineClamp, bz as TMantineTitleTextWrap, bA as TMantineTranslatable, bB as TMantineUseInputWrapper, bC as TMantineWidth, bD as TSharedBorder, bE as TSharedCols, bF as TSharedDimension, bG as TSharedDividerLabelPosition, bH as TSharedDividerVariant, bI as TSharedLabelPosition, bJ 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-B8IaEULk.js';
|
|
3
3
|
export { v as TMantineAccordionVariant, z as TMantineActionIconLoading, d as TMantineAlign, A as TMantineAllowNextClicks, B as TMantineAllowStepClick, C as TMantineAspectRatio, D as TMantineAutoContrast, r as TMantineAvatarVariant, q as TMantineBadgeVariant, E as TMantineBlock, F as TMantineCenterInline, G as TMantineChecked, H as TMantineChipChecked, I as TMantineChipMultiple, s as TMantineChipVariant, J as TMantineClampBehavior, K as TMantineCodeBlock, T as TMantineColor, L as TMantineColorFormat, M as TMantineColorInputSwatches, N as TMantineColorPickerSwatches, O as TMantineColorPickerSwatchesPerRow, P as TMantineCompact, Q as TMantineContainerFluid, e as TMantineDirection, R as TMantineDisabled, n as TMantineFieldsetVariant, S as TMantineFileAccept, U as TMantineFileInputMultiple, V as TMantineFluid, W as TMantineFullWidth, i as TMantineGridGrow, g as TMantineGridOverflow, h as TMantineGridSpan, X as TMantineGroupGrow, Y as TMantineGroupWrap, Z as TMantineGrow, _ as TMantineHighlight, t 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, j as TMantineOrientation, a7 as TMantineProcessing, a as TMantineRadius, a8 as TMantineRangeSliderMarks, a9 as TMantineRatingCount, aa as TMantineRatingFractions, ab as TMantineRatingReadonly, ac as TMantineReadonly, m as TMantineSize, ad as TMantineSpaceHorizontal, y as TMantineSpacing, o as TMantineSpoilerMaxHeight, ae as TMantineSwatches, af as TMantineTabDisabled, w as TMantineTabsVariant, u as TMantineThemeIconVariant, x as TMantineTimelineLineVariant, l as TMantineTitleOrder, ag as TMantineUseMantineStyle, p as TMantineVariant, ah as TMantineWithCloseButton, ai as TMantineWithIcon, f as TMantineWrap, k as TSharedRadius, b as TSharedSize } from './common-DMm4kymA.js';
|
|
4
4
|
import { ReactNode, ComponentType } from 'react';
|
|
5
5
|
import { THeroUiButtonVariant, THeroUiSize } from './theme/index.js';
|
|
@@ -1192,6 +1192,11 @@ interface IMobileButtonProps extends IMobileAdapterBaseProps {
|
|
|
1192
1192
|
isLoading?: boolean;
|
|
1193
1193
|
isIconOnly?: boolean;
|
|
1194
1194
|
fullWidth?: boolean;
|
|
1195
|
+
/**
|
|
1196
|
+
* Native press feedback (HeroUI Native `feedbackVariant`). No web
|
|
1197
|
+
* equivalent — driven by the mobile-only `mobile_button_feedback` field.
|
|
1198
|
+
*/
|
|
1199
|
+
feedbackVariant?: TMobileButtonFeedback;
|
|
1195
1200
|
/**
|
|
1196
1201
|
* Optional concrete background colour (resolved hex) that overrides the
|
|
1197
1202
|
* variant's themed fill, used for cross-platform parity when a CMS style
|
|
@@ -1235,6 +1240,8 @@ interface IMobileInputProps extends IMobileAdapterBaseProps {
|
|
|
1235
1240
|
maxLength?: number;
|
|
1236
1241
|
/** Native auto-capitalize behaviour (from `mobile_auto_capitalize`). */
|
|
1237
1242
|
autoCapitalize?: 'none' | 'sentences' | 'words' | 'characters';
|
|
1243
|
+
/** HeroUI Native field variant (from `mobile_input_variant`). */
|
|
1244
|
+
variant?: TMobileFieldVariant;
|
|
1238
1245
|
}
|
|
1239
1246
|
interface IMobileTextareaProps extends IMobileAdapterBaseProps {
|
|
1240
1247
|
value?: string;
|
|
@@ -1250,6 +1257,8 @@ interface IMobileTextareaProps extends IMobileAdapterBaseProps {
|
|
|
1250
1257
|
maxLength?: number;
|
|
1251
1258
|
/** Native auto-capitalize behaviour (from `mobile_auto_capitalize`). */
|
|
1252
1259
|
autoCapitalize?: 'none' | 'sentences' | 'words' | 'characters';
|
|
1260
|
+
/** HeroUI Native field variant (from `mobile_textarea_variant`). */
|
|
1261
|
+
variant?: TMobileFieldVariant;
|
|
1253
1262
|
}
|
|
1254
1263
|
interface IMobileSwitchProps extends IMobileAdapterBaseProps {
|
|
1255
1264
|
isSelected?: boolean;
|
|
@@ -1268,6 +1277,8 @@ interface IMobileCheckboxProps extends IMobileAdapterBaseProps {
|
|
|
1268
1277
|
* to `right`.
|
|
1269
1278
|
*/
|
|
1270
1279
|
labelPosition?: 'left' | 'right';
|
|
1280
|
+
/** HeroUI Native checkbox variant (from `mobile_checkbox_variant`). */
|
|
1281
|
+
variant?: TMobileFieldVariant;
|
|
1271
1282
|
}
|
|
1272
1283
|
interface IMobileSelectOption {
|
|
1273
1284
|
value: string;
|
|
@@ -1279,6 +1290,19 @@ interface IMobileSelectProps extends IMobileAdapterBaseProps {
|
|
|
1279
1290
|
options: readonly IMobileSelectOption[];
|
|
1280
1291
|
placeholder?: string;
|
|
1281
1292
|
isDisabled?: boolean;
|
|
1293
|
+
/**
|
|
1294
|
+
* Multi-select mode (CMS `is_multiple`). When true the contract value is a
|
|
1295
|
+
* comma-separated list of option values and `onValueChange` emits the same
|
|
1296
|
+
* comma-separated form; the adapter renders HeroUI Native's
|
|
1297
|
+
* `selectionMode="multiple"`.
|
|
1298
|
+
*/
|
|
1299
|
+
multiple?: boolean;
|
|
1300
|
+
/**
|
|
1301
|
+
* How the option list opens (HeroUI Native Select.Content presentation).
|
|
1302
|
+
* From the mobile-only `mobile_select_presentation` field; empty/undefined
|
|
1303
|
+
* falls back to the renderer default (`bottom-sheet`).
|
|
1304
|
+
*/
|
|
1305
|
+
presentation?: TMobileSelectPresentation;
|
|
1282
1306
|
}
|
|
1283
1307
|
interface IMobileModalProps extends IMobileAdapterBaseProps {
|
|
1284
1308
|
isOpen: boolean;
|
|
@@ -1670,4 +1694,4 @@ declare function transformPageData(apiPage: IRawPage): IPageItem;
|
|
|
1670
1694
|
*/
|
|
1671
1695
|
declare function transformPagesData(pages: IRawPage[] | null | undefined): IPageItem[];
|
|
1672
1696
|
|
|
1673
|
-
export { API_VERSION_PREFIX, type AdvisoryAffected, type AdvisoryFeed, type AdvisorySeverity, type BackupManifest, type BackupRetentionPolicy, type BackupSchedulePolicy, CLASS_PATTERNS, CLASS_REMAP, CLIENT_TYPE_MOBILE, CLIENT_TYPE_MOBILE_AND_WEB, CLIENT_TYPE_WEB, COLOR_NAMES, type CheckSeverity, type CompatibilityRules, type CoreRelease, type DatabaseMigrationMetadata, ENDPOINTS, type FrontendRelease, HEADER_CLIENT_TYPE, type IApiError, type IApiMeta, type IAssetSource, type IBaseApiResponse, type IBasePageInfo, type IBasePageSection, type IClassPattern, type IClassRemap, type ICompatibilityError, type IConditionContext, IContentField, type IEvaluatedCondition, type IForgotPasswordRequest, type IForgotPasswordResponse, type IFormDeleteRequest, type IFormDeleteResponse, type IFormResultLegacyFields, type IFormSubmitData, type IFormSubmitRequest, type IFormSubmitResponse, type IFormUpdateData, type IFormUpdateRequest, type IFormUpdateResponse, type IFrontendUpdatePreflight, type IFrontendUpdatePreflightResponse, type IFrontendUpdateReleases, type IFrontendUpdateReleasesResponse, type IFrontendUpdateRequest, type IFrontendUpdateRequestResponse, type IGetPageResponse, type IGetPagesResponse, type IInlineNode, type IJwtPayload, type ILanguage, type ILanguageItem, type ILanguagePreference, type ILanguagePreferenceUpdateResponse, type ILanguagesResponse, type ILoginRequest, type ILoginSuccessData, type ILoginSuccessResponse, type ILogoutSuccessResponse, type IMaintenanceSetRequest, type IMeta, type IMobileAdapterBaseProps, type IMobileButtonProps, type IMobileCardProps, type IMobileCheckboxProps, type IMobileContainerProps, type IMobileInputProps, type IMobileModalProps, type IMobileSelectOption, type IMobileSelectProps, type IMobileSwitchProps, type IMobileTextProps, type IMobileTextareaProps, type IMobileUiAdapters, type IPageAccessTypeInfo, type IPageContent, type IPageField, type IPageFieldTranslation, type IPageFieldsData, type IPageItem, type IPageSectionWithFields, type IPageSectionsData, type IRefreshRequest, type IRefreshSuccessResponse, type IResetPasswordRequest, type IResetPasswordResponse, type ISpacingValue, type ISystemAdvisories, type ISystemAdvisoriesResponse, type ISystemAdvisory, type ISystemAdvisoryAffected, type ISystemHealth, type ISystemHealthComponent, type ISystemHealthResponse, type ISystemInstalledPlugin, type ISystemMaintenance, type ISystemMaintenanceResponse, type ISystemVersion, type ISystemVersionResponse, type ITwoFactorRequiredData, type ITwoFactorRequiredResponse, type ITwoFactorVerifyRequest, type ITwoFactorVerifySuccessResponse, type IUpdatePreflight, type IUpdatePreflightCheck, type IUpdatePreflightOption, type IUpdatePreflightResponse, type IUpdateRelease, type IUpdateReleases, type IUpdateReleasesResponse, type IUpdateRequest, type IUpdateRequestResponse, type IUpdateStatus, type IUpdateStatusManager, type IUpdateStatusResponse, type IUpdateStep, type IUserData, type IUserDataResponse, type ImageRef, type InstalledPlugin, type InstanceImages, type InstanceLock, type InstanceManifest, type InstanceMode, type InstanceResourceConfig, type InstanceRouting, type InstanceStatus, type InstanceVersions, type InventoryInstanceEntry, LITERAL_CLASSES, type LockPluginEntry, type LockServiceEntry, PERMISSIONS, type PluginRelease, type PreflightCheck, type PreflightOption, type PreflightStatus, RELEASE_CHANNELS, type RegistryIndex, type RegistryReleaseRef, type ReleaseChannel, type RuntimeServicePolicy, type RuntimeServiceRange, SIZE_VALUES, SPACING_VALUES, SYSTEM_ENDPOINTS, type SchedulerRelease, type SecurityAdvisory, type ServerInventory, type ServiceBackendCompatibility, type SignatureBlock, type SupportBundleMeta, type TCalcedValues, type TClassDecision, type TClientType, THeroUiButtonVariant, THeroUiSize, type TPermission, type TPlatform, TStyleName, type TSystemAdvisorySeverity, type TSystemComponentStatus, type TSystemDeployment, type TSystemHealthOverall, type TUpdateCheckSeverity, type TUpdateKind, type TUpdateOperationStatus, type TUpdatePreflightStatus, type TrustLevel, type TrustedKey, type TrustedKeysFile, type UpdatePreflightResult, type WorkerRelease, buildConditionContext, classifyClass, classifyClassString, evaluateCondition, findRemap, hasInlineFormatting, parseInlineRich, parseSpacing, replaceCalcedValues, resolveAssetSources, resolveAssetUrl, spacingToClasses, stripHtmlToText, transformPageData, transformPagesData };
|
|
1697
|
+
export { API_VERSION_PREFIX, type AdvisoryAffected, type AdvisoryFeed, type AdvisorySeverity, type BackupManifest, type BackupRetentionPolicy, type BackupSchedulePolicy, CLASS_PATTERNS, CLASS_REMAP, CLIENT_TYPE_MOBILE, CLIENT_TYPE_MOBILE_AND_WEB, CLIENT_TYPE_WEB, COLOR_NAMES, type CheckSeverity, type CompatibilityRules, type CoreRelease, type DatabaseMigrationMetadata, ENDPOINTS, type FrontendRelease, HEADER_CLIENT_TYPE, type IApiError, type IApiMeta, type IAssetSource, type IBaseApiResponse, type IBasePageInfo, type IBasePageSection, type IClassPattern, type IClassRemap, type ICompatibilityError, type IConditionContext, IContentField, type IEvaluatedCondition, type IForgotPasswordRequest, type IForgotPasswordResponse, type IFormDeleteRequest, type IFormDeleteResponse, type IFormResultLegacyFields, type IFormSubmitData, type IFormSubmitRequest, type IFormSubmitResponse, type IFormUpdateData, type IFormUpdateRequest, type IFormUpdateResponse, type IFrontendUpdatePreflight, type IFrontendUpdatePreflightResponse, type IFrontendUpdateReleases, type IFrontendUpdateReleasesResponse, type IFrontendUpdateRequest, type IFrontendUpdateRequestResponse, type IGetPageResponse, type IGetPagesResponse, type IInlineNode, type IJwtPayload, type ILanguage, type ILanguageItem, type ILanguagePreference, type ILanguagePreferenceUpdateResponse, type ILanguagesResponse, type ILoginRequest, type ILoginSuccessData, type ILoginSuccessResponse, type ILogoutSuccessResponse, type IMaintenanceSetRequest, type IMeta, type IMobileAdapterBaseProps, type IMobileButtonProps, type IMobileCardProps, type IMobileCheckboxProps, type IMobileContainerProps, type IMobileInputProps, type IMobileModalProps, type IMobileSelectOption, type IMobileSelectProps, type IMobileSwitchProps, type IMobileTextProps, type IMobileTextareaProps, type IMobileUiAdapters, type IPageAccessTypeInfo, type IPageContent, type IPageField, type IPageFieldTranslation, type IPageFieldsData, type IPageItem, type IPageSectionWithFields, type IPageSectionsData, type IRefreshRequest, type IRefreshSuccessResponse, type IResetPasswordRequest, type IResetPasswordResponse, type ISpacingValue, type ISystemAdvisories, type ISystemAdvisoriesResponse, type ISystemAdvisory, type ISystemAdvisoryAffected, type ISystemHealth, type ISystemHealthComponent, type ISystemHealthResponse, type ISystemInstalledPlugin, type ISystemMaintenance, type ISystemMaintenanceResponse, type ISystemVersion, type ISystemVersionResponse, type ITwoFactorRequiredData, type ITwoFactorRequiredResponse, type ITwoFactorVerifyRequest, type ITwoFactorVerifySuccessResponse, type IUpdatePreflight, type IUpdatePreflightCheck, type IUpdatePreflightOption, type IUpdatePreflightResponse, type IUpdateRelease, type IUpdateReleases, type IUpdateReleasesResponse, type IUpdateRequest, type IUpdateRequestResponse, type IUpdateStatus, type IUpdateStatusManager, type IUpdateStatusResponse, type IUpdateStep, type IUserData, type IUserDataResponse, type ImageRef, type InstalledPlugin, type InstanceImages, type InstanceLock, type InstanceManifest, type InstanceMode, type InstanceResourceConfig, type InstanceRouting, type InstanceStatus, type InstanceVersions, type InventoryInstanceEntry, LITERAL_CLASSES, type LockPluginEntry, type LockServiceEntry, PERMISSIONS, type PluginRelease, type PreflightCheck, type PreflightOption, type PreflightStatus, RELEASE_CHANNELS, type RegistryIndex, type RegistryReleaseRef, type ReleaseChannel, type RuntimeServicePolicy, type RuntimeServiceRange, SIZE_VALUES, SPACING_VALUES, SYSTEM_ENDPOINTS, type SchedulerRelease, type SecurityAdvisory, type ServerInventory, type ServiceBackendCompatibility, type SignatureBlock, type SupportBundleMeta, type TCalcedValues, type TClassDecision, type TClientType, THeroUiButtonVariant, THeroUiSize, TMobileButtonFeedback, TMobileFieldVariant, TMobileSelectPresentation, type TPermission, type TPlatform, TStyleName, type TSystemAdvisorySeverity, type TSystemComponentStatus, type TSystemDeployment, type TSystemHealthOverall, type TUpdateCheckSeverity, type TUpdateKind, type TUpdateOperationStatus, type TUpdatePreflightStatus, type TrustLevel, type TrustedKey, type TrustedKeysFile, type UpdatePreflightResult, type WorkerRelease, buildConditionContext, classifyClass, classifyClassString, evaluateCondition, findRemap, hasInlineFormatting, parseInlineRich, parseSpacing, replaceCalcedValues, resolveAssetSources, resolveAssetUrl, spacingToClasses, stripHtmlToText, transformPageData, transformPagesData };
|
|
@@ -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-DhkxrV2-.mjs';
|
|
3
3
|
import '../common-DMm4kymA.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-B8IaEULk.js';
|
|
3
3
|
import '../common-DMm4kymA.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-DhkxrV2-.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-DhkxrV2-.mjs';
|
|
3
3
|
import '../common-DMm4kymA.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-B8IaEULk.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-B8IaEULk.js';
|
|
3
3
|
import '../common-DMm4kymA.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -43,6 +43,8 @@ interface IValidateStyle extends IStyleWithSpacing {
|
|
|
43
43
|
subtitle?: IContentField<string>;
|
|
44
44
|
alert_success?: IContentField<string>;
|
|
45
45
|
label_name?: IContentField<string>;
|
|
46
|
+
/** Label for the timezone select (anonymous-user activation form). */
|
|
47
|
+
label_timezone?: IContentField<string>;
|
|
46
48
|
name_placeholder?: IContentField<string>;
|
|
47
49
|
name_description?: IContentField<string>;
|
|
48
50
|
label_activate?: IContentField<string>;
|
|
@@ -77,6 +79,8 @@ interface IValidateStyle extends IStyleWithSpacing {
|
|
|
77
79
|
}
|
|
78
80
|
interface IResetPasswordStyle extends IStyleWithSpacing {
|
|
79
81
|
style_name: 'reset-password';
|
|
82
|
+
/** Submit/link-button colour (cross-platform, via the shared mapper). */
|
|
83
|
+
shared_color?: IContentField<TMantineColor>;
|
|
80
84
|
label_pw_reset?: IContentField<string>;
|
|
81
85
|
alert_success?: IContentField<string>;
|
|
82
86
|
placeholder?: IContentField<string>;
|
|
@@ -503,6 +507,11 @@ interface ICarouselStyle extends IStyleWithSpacing {
|
|
|
503
507
|
|
|
504
508
|
/** Mantine `Anchor` `underline` behaviour. */
|
|
505
509
|
type TMantineAnchorUnderline = 'always' | 'hover' | 'never';
|
|
510
|
+
/**
|
|
511
|
+
* Mobile-only HeroUI Native Button press feedback (no web equivalent). The web
|
|
512
|
+
* renderer ignores `mobile_*`; only the mobile button renderer reads it.
|
|
513
|
+
*/
|
|
514
|
+
type TMobileButtonFeedback = 'scale-highlight' | 'scale-ripple' | 'scale' | 'none';
|
|
506
515
|
interface IButtonStyle extends IStyleWithSpacing {
|
|
507
516
|
style_name: 'button';
|
|
508
517
|
shared_variant?: IContentField<TMantineVariant>;
|
|
@@ -524,6 +533,7 @@ interface IButtonStyle extends IStyleWithSpacing {
|
|
|
524
533
|
confirmation_title?: IContentField<string>;
|
|
525
534
|
confirmation_continue?: IContentField<string>;
|
|
526
535
|
confirmation_message?: IContentField<string>;
|
|
536
|
+
mobile_button_feedback?: IContentField<TMobileButtonFeedback>;
|
|
527
537
|
}
|
|
528
538
|
interface ILinkStyle extends IStyleWithSpacing {
|
|
529
539
|
style_name: 'link';
|
|
@@ -654,6 +664,8 @@ type TMantineUseInputWrapper = '0' | '1';
|
|
|
654
664
|
type TMantineTranslatable = '0' | '1';
|
|
655
665
|
type TMantineProgressTransition = '150' | '200' | '300' | '400' | '0' | string;
|
|
656
666
|
type TSharedLabelPosition = 'left' | 'right';
|
|
667
|
+
type TMobileSelectPresentation = 'bottom-sheet' | 'dialog' | 'popover';
|
|
668
|
+
type TMobileFieldVariant = 'primary' | 'secondary';
|
|
657
669
|
interface IFormStyle extends IStyleWithSpacing {
|
|
658
670
|
style_name: 'form-log' | 'form-record';
|
|
659
671
|
btn_save_label?: IContentField<string>;
|
|
@@ -709,6 +721,7 @@ interface ITextInputStyle extends IStyleWithSpacing {
|
|
|
709
721
|
mobile_keyboard_type?: IContentField<string>;
|
|
710
722
|
mobile_auto_capitalize?: IContentField<string>;
|
|
711
723
|
mobile_secure_entry?: IContentField<string>;
|
|
724
|
+
mobile_input_variant?: IContentField<TMobileFieldVariant>;
|
|
712
725
|
translatable?: IContentField<TMantineTranslatable>;
|
|
713
726
|
}
|
|
714
727
|
interface ITextareaStyle extends IStyleWithSpacing {
|
|
@@ -734,6 +747,7 @@ interface ITextareaStyle extends IStyleWithSpacing {
|
|
|
734
747
|
web_textarea_variant?: IContentField<TMantineTextareaVariant>;
|
|
735
748
|
shared_max_length?: IContentField<string>;
|
|
736
749
|
mobile_auto_capitalize?: IContentField<string>;
|
|
750
|
+
mobile_textarea_variant?: IContentField<TMobileFieldVariant>;
|
|
737
751
|
translatable?: IContentField<TMantineTranslatable>;
|
|
738
752
|
}
|
|
739
753
|
interface IRichTextEditorStyle extends IStyleWithSpacing {
|
|
@@ -754,6 +768,7 @@ interface IRichTextEditorStyle extends IStyleWithSpacing {
|
|
|
754
768
|
}
|
|
755
769
|
interface ISelectStyle extends IBaseStyle {
|
|
756
770
|
style_name: 'select';
|
|
771
|
+
label?: IContentField<string>;
|
|
757
772
|
is_required?: IContentField<string>;
|
|
758
773
|
name?: IContentField<string>;
|
|
759
774
|
value?: IContentField<string>;
|
|
@@ -765,6 +780,7 @@ interface ISelectStyle extends IBaseStyle {
|
|
|
765
780
|
disabled?: IContentField<string>;
|
|
766
781
|
image_selector?: IContentField<string>;
|
|
767
782
|
shared_clearable?: IContentField<string>;
|
|
783
|
+
mobile_select_presentation?: IContentField<TMobileSelectPresentation>;
|
|
768
784
|
}
|
|
769
785
|
interface IRadioStyle extends IStyleWithSpacing {
|
|
770
786
|
style_name: 'radio';
|
|
@@ -802,6 +818,7 @@ interface ICheckboxStyle extends IStyleWithSpacing {
|
|
|
802
818
|
shared_radius?: IContentField<TSharedRadius>;
|
|
803
819
|
shared_color?: IContentField<TMantineColor>;
|
|
804
820
|
web_use_input_wrapper?: IContentField<TMantineUseInputWrapper>;
|
|
821
|
+
mobile_checkbox_variant?: IContentField<TMobileFieldVariant>;
|
|
805
822
|
}
|
|
806
823
|
interface ISliderStyle extends IStyleWithSpacing {
|
|
807
824
|
style_name: 'slider';
|
|
@@ -822,6 +839,7 @@ interface ISliderStyle extends IStyleWithSpacing {
|
|
|
822
839
|
web_slider_inverted?: IContentField<string>;
|
|
823
840
|
web_slider_thumb_size?: IContentField<string>;
|
|
824
841
|
web_slider_required?: IContentField<string>;
|
|
842
|
+
mobile_slider_show_value?: IContentField<string>;
|
|
825
843
|
}
|
|
826
844
|
interface IRangeSliderStyle extends IStyleWithSpacing {
|
|
827
845
|
style_name: 'range-slider';
|
|
@@ -840,6 +858,7 @@ interface IRangeSliderStyle extends IStyleWithSpacing {
|
|
|
840
858
|
shared_color?: IContentField<TMantineColor>;
|
|
841
859
|
shared_radius?: IContentField<TSharedRadius>;
|
|
842
860
|
disabled?: IContentField<string>;
|
|
861
|
+
mobile_range_slider_show_value?: IContentField<string>;
|
|
843
862
|
}
|
|
844
863
|
interface IDatePickerStyle extends IStyleWithSpacing {
|
|
845
864
|
style_name: 'datepicker';
|
|
@@ -908,6 +927,7 @@ interface IComboboxStyle extends IStyleWithSpacing {
|
|
|
908
927
|
web_combobox_clearable?: IContentField<string>;
|
|
909
928
|
web_combobox_separator?: IContentField<string>;
|
|
910
929
|
web_multi_select_max_values?: IContentField<string>;
|
|
930
|
+
mobile_select_presentation?: IContentField<TMobileSelectPresentation>;
|
|
911
931
|
}
|
|
912
932
|
interface IColorInputStyle extends IStyleWithSpacing {
|
|
913
933
|
style_name: 'color-input';
|
|
@@ -1054,6 +1074,8 @@ interface IShowUserInputEntry {
|
|
|
1054
1074
|
}
|
|
1055
1075
|
interface IShowUserInputStyle extends IBaseStyle {
|
|
1056
1076
|
style_name: 'show-user-input';
|
|
1077
|
+
/** Source data table the form entries are read from (backend data binding). */
|
|
1078
|
+
data_table?: IContentField<string>;
|
|
1057
1079
|
own_entries_only?: IContentField<string>;
|
|
1058
1080
|
show_timestamp?: IContentField<string>;
|
|
1059
1081
|
dt_sortable?: IContentField<string>;
|
|
@@ -2565,4 +2587,4 @@ declare function getPluginStyleRegistry(): Record<string, IPluginStyleRegistryEn
|
|
|
2565
2587
|
*/
|
|
2566
2588
|
declare function _resetPluginStyleRegistry(): void;
|
|
2567
2589
|
|
|
2568
|
-
export { type
|
|
2590
|
+
export { type IFormRecordStyle as $, type ICardSegmentStyle as A, BASE_STYLE_REGISTRY as B, type ICardStyle as C, type ICarouselStyle as D, type ICenterStyle as E, type ICheckboxStyle as F, type IChipStyle as G, type ICodeStyle as H, type IStyleRegistryEntry as I, type IColorInputStyle as J, type IColorPickerStyle as K, type IComboboxStyle as L, type IContainerStyle as M, type IDataContainerStyle as N, type IDatePickerStyle as O, type IDividerStyle as P, type IEntryListStyle as Q, type IEntryRecordDeleteStyle as R, STYLE_REGISTRY as S, type TStyleName as T, type IEntryRecordStyle as U, type IFieldsetStyle as V, type IFigureStyle as W, type IFileInputStyle as X, type IFlexStyle as Y, type IFormLogStyle as Z, type _AssertRegistryMatchesStyleName as _, type IPluginStyleRegistryEntry as a, type TMantineAnchorUnderline as a$, type IFormStyle as a0, type IGridColumnStyle as a1, type IGridStyle as a2, type IGroupStyle as a3, type IHighlightStyle as a4, type IHtmlTagStyle as a5, type IImageStyle as a6, type IIndicatorStyle as a7, type IInputStyle as a8, type IKbdStyle as a9, type IShowUserInputStyle as aA, type ISimpleGridStyle as aB, type ISliderStyle as aC, type ISpaceStyle as aD, type ISpoilerStyle as aE, type IStackStyle as aF, type IStyleWithSpacing as aG, type ISwitchStyle as aH, type ITabStyle as aI, type ITabsStyle as aJ, type ITextInputStyle as aK, type ITextStyle as aL, type ITextareaStyle as aM, type IThemeIconStyle as aN, type ITimelineItemStyle as aO, type ITimelineStyle as aP, type ITitleStyle as aQ, type ITwoFactorAuthStyle as aR, type ITypographyStyle as aS, type IUnknownStyle as aT, type IValidateStyle as aU, type IVersionStyle as aV, type IVideoStyle as aW, type TMantineAccordionChevronPosition as aX, type TMantineAccordionDisableChevronRotation as aY, type TMantineAccordionLoop as aZ, type TMantineAccordionMultiple as a_, type ILinkStyle as aa, type IListItemStyle as ab, type IListStyle as ac, type ILoginStyle as ad, type ILoopStyle as ae, type IMissingStyle as af, type INoAccessStyle as ag, type INotFoundStyle as ah, type INotificationStyle as ai, type INumberInputStyle as aj, type IPaperStyle as ak, type IProfileStyle as al, type IProgressRootStyle as am, type IProgressSectionStyle as an, type IProgressStyle as ao, type IRadioStyle as ap, type IRangeSliderStyle as aq, type IRatingStyle as ar, type IRefContainerStyle as as, type IRegisterStyle as at, type IResetPasswordStyle as au, type IRichTextEditorStyle as av, type IScrollAreaStyle as aw, type ISegmentedControlStyle as ax, type ISelectStyle as ay, type IShowUserInputEntry as az, type TStylePlacement as b, type TMantineBorder as b0, type TMantineCardPadding as b1, type TMantineCardShadow as b2, type TMantineCols as b3, type TMantineDividerVariant as b4, type TMantineGap as b5, type TMantineGridOffset as b6, type TMantineGridOrder as b7, type TMantineHeight as b8, type TMantineIconSize as b9, type TMantineTranslatable as bA, type TMantineUseInputWrapper as bB, type TMantineWidth as bC, type TSharedBorder as bD, type TSharedCols as bE, type TSharedDimension as bF, type TSharedDividerLabelPosition as bG, type TSharedDividerVariant as bH, type TSharedLabelPosition as bI, type TStyle as bJ, type TMantineImageFit as ba, type TMantineLineClamp as bb, type TMantineListCenter as bc, type TMantineListStyleType as bd, type TMantineListType as be, type TMantineListWithPadding as bf, type TMantinePaperShadow as bg, type TMantineProgressTransition as bh, type TMantineScrollAreaSize as bi, type TMantineScrollAreaType as bj, type TMantineTextAlign as bk, type TMantineTextDecoration as bl, type TMantineTextFontStyle as bm, type TMantineTextFontWeight as bn, type TMantineTextInherit as bo, type TMantineTextInputVariant as bp, type TMantineTextSpan as bq, type TMantineTextTransform as br, type TMantineTextTruncate as bs, type TMantineTextVariant as bt, type TMantineTextareaAutosize as bu, type TMantineTextareaResize as bv, type TMantineTextareaVariant as bw, type TMantineTimelineAlign as bx, type TMantineTitleLineClamp as by, type TMantineTitleTextWrap as bz, type TConcretePlatform as c, type TStylePlatform as d, type TStyleRegistryKey as e, _resetPluginStyleRegistry as f, extendStyleRegistry as g, getMergedStyleRegistry as h, getPluginStyleRegistry as i, type IContentField as j, type TMobileButtonFeedback as k, type TMobileFieldVariant as l, type TMobileSelectPresentation as m, type IAccordionItemStyle as n, type IAccordionStyle as o, type IActionIconStyle as p, type IAlertStyle as q, type IAspectRatioStyle as r, type IAudioStyle as s, type IAvatarStyle as t, type IBackgroundImageStyle as u, type IBadgeStyle as v, type IBaseStyle as w, type IBlockquoteStyle as x, type IBoxStyle as y, type IButtonStyle as z };
|
|
@@ -43,6 +43,8 @@ interface IValidateStyle extends IStyleWithSpacing {
|
|
|
43
43
|
subtitle?: IContentField<string>;
|
|
44
44
|
alert_success?: IContentField<string>;
|
|
45
45
|
label_name?: IContentField<string>;
|
|
46
|
+
/** Label for the timezone select (anonymous-user activation form). */
|
|
47
|
+
label_timezone?: IContentField<string>;
|
|
46
48
|
name_placeholder?: IContentField<string>;
|
|
47
49
|
name_description?: IContentField<string>;
|
|
48
50
|
label_activate?: IContentField<string>;
|
|
@@ -77,6 +79,8 @@ interface IValidateStyle extends IStyleWithSpacing {
|
|
|
77
79
|
}
|
|
78
80
|
interface IResetPasswordStyle extends IStyleWithSpacing {
|
|
79
81
|
style_name: 'reset-password';
|
|
82
|
+
/** Submit/link-button colour (cross-platform, via the shared mapper). */
|
|
83
|
+
shared_color?: IContentField<TMantineColor>;
|
|
80
84
|
label_pw_reset?: IContentField<string>;
|
|
81
85
|
alert_success?: IContentField<string>;
|
|
82
86
|
placeholder?: IContentField<string>;
|
|
@@ -503,6 +507,11 @@ interface ICarouselStyle extends IStyleWithSpacing {
|
|
|
503
507
|
|
|
504
508
|
/** Mantine `Anchor` `underline` behaviour. */
|
|
505
509
|
type TMantineAnchorUnderline = 'always' | 'hover' | 'never';
|
|
510
|
+
/**
|
|
511
|
+
* Mobile-only HeroUI Native Button press feedback (no web equivalent). The web
|
|
512
|
+
* renderer ignores `mobile_*`; only the mobile button renderer reads it.
|
|
513
|
+
*/
|
|
514
|
+
type TMobileButtonFeedback = 'scale-highlight' | 'scale-ripple' | 'scale' | 'none';
|
|
506
515
|
interface IButtonStyle extends IStyleWithSpacing {
|
|
507
516
|
style_name: 'button';
|
|
508
517
|
shared_variant?: IContentField<TMantineVariant>;
|
|
@@ -524,6 +533,7 @@ interface IButtonStyle extends IStyleWithSpacing {
|
|
|
524
533
|
confirmation_title?: IContentField<string>;
|
|
525
534
|
confirmation_continue?: IContentField<string>;
|
|
526
535
|
confirmation_message?: IContentField<string>;
|
|
536
|
+
mobile_button_feedback?: IContentField<TMobileButtonFeedback>;
|
|
527
537
|
}
|
|
528
538
|
interface ILinkStyle extends IStyleWithSpacing {
|
|
529
539
|
style_name: 'link';
|
|
@@ -654,6 +664,8 @@ type TMantineUseInputWrapper = '0' | '1';
|
|
|
654
664
|
type TMantineTranslatable = '0' | '1';
|
|
655
665
|
type TMantineProgressTransition = '150' | '200' | '300' | '400' | '0' | string;
|
|
656
666
|
type TSharedLabelPosition = 'left' | 'right';
|
|
667
|
+
type TMobileSelectPresentation = 'bottom-sheet' | 'dialog' | 'popover';
|
|
668
|
+
type TMobileFieldVariant = 'primary' | 'secondary';
|
|
657
669
|
interface IFormStyle extends IStyleWithSpacing {
|
|
658
670
|
style_name: 'form-log' | 'form-record';
|
|
659
671
|
btn_save_label?: IContentField<string>;
|
|
@@ -709,6 +721,7 @@ interface ITextInputStyle extends IStyleWithSpacing {
|
|
|
709
721
|
mobile_keyboard_type?: IContentField<string>;
|
|
710
722
|
mobile_auto_capitalize?: IContentField<string>;
|
|
711
723
|
mobile_secure_entry?: IContentField<string>;
|
|
724
|
+
mobile_input_variant?: IContentField<TMobileFieldVariant>;
|
|
712
725
|
translatable?: IContentField<TMantineTranslatable>;
|
|
713
726
|
}
|
|
714
727
|
interface ITextareaStyle extends IStyleWithSpacing {
|
|
@@ -734,6 +747,7 @@ interface ITextareaStyle extends IStyleWithSpacing {
|
|
|
734
747
|
web_textarea_variant?: IContentField<TMantineTextareaVariant>;
|
|
735
748
|
shared_max_length?: IContentField<string>;
|
|
736
749
|
mobile_auto_capitalize?: IContentField<string>;
|
|
750
|
+
mobile_textarea_variant?: IContentField<TMobileFieldVariant>;
|
|
737
751
|
translatable?: IContentField<TMantineTranslatable>;
|
|
738
752
|
}
|
|
739
753
|
interface IRichTextEditorStyle extends IStyleWithSpacing {
|
|
@@ -754,6 +768,7 @@ interface IRichTextEditorStyle extends IStyleWithSpacing {
|
|
|
754
768
|
}
|
|
755
769
|
interface ISelectStyle extends IBaseStyle {
|
|
756
770
|
style_name: 'select';
|
|
771
|
+
label?: IContentField<string>;
|
|
757
772
|
is_required?: IContentField<string>;
|
|
758
773
|
name?: IContentField<string>;
|
|
759
774
|
value?: IContentField<string>;
|
|
@@ -765,6 +780,7 @@ interface ISelectStyle extends IBaseStyle {
|
|
|
765
780
|
disabled?: IContentField<string>;
|
|
766
781
|
image_selector?: IContentField<string>;
|
|
767
782
|
shared_clearable?: IContentField<string>;
|
|
783
|
+
mobile_select_presentation?: IContentField<TMobileSelectPresentation>;
|
|
768
784
|
}
|
|
769
785
|
interface IRadioStyle extends IStyleWithSpacing {
|
|
770
786
|
style_name: 'radio';
|
|
@@ -802,6 +818,7 @@ interface ICheckboxStyle extends IStyleWithSpacing {
|
|
|
802
818
|
shared_radius?: IContentField<TSharedRadius>;
|
|
803
819
|
shared_color?: IContentField<TMantineColor>;
|
|
804
820
|
web_use_input_wrapper?: IContentField<TMantineUseInputWrapper>;
|
|
821
|
+
mobile_checkbox_variant?: IContentField<TMobileFieldVariant>;
|
|
805
822
|
}
|
|
806
823
|
interface ISliderStyle extends IStyleWithSpacing {
|
|
807
824
|
style_name: 'slider';
|
|
@@ -822,6 +839,7 @@ interface ISliderStyle extends IStyleWithSpacing {
|
|
|
822
839
|
web_slider_inverted?: IContentField<string>;
|
|
823
840
|
web_slider_thumb_size?: IContentField<string>;
|
|
824
841
|
web_slider_required?: IContentField<string>;
|
|
842
|
+
mobile_slider_show_value?: IContentField<string>;
|
|
825
843
|
}
|
|
826
844
|
interface IRangeSliderStyle extends IStyleWithSpacing {
|
|
827
845
|
style_name: 'range-slider';
|
|
@@ -840,6 +858,7 @@ interface IRangeSliderStyle extends IStyleWithSpacing {
|
|
|
840
858
|
shared_color?: IContentField<TMantineColor>;
|
|
841
859
|
shared_radius?: IContentField<TSharedRadius>;
|
|
842
860
|
disabled?: IContentField<string>;
|
|
861
|
+
mobile_range_slider_show_value?: IContentField<string>;
|
|
843
862
|
}
|
|
844
863
|
interface IDatePickerStyle extends IStyleWithSpacing {
|
|
845
864
|
style_name: 'datepicker';
|
|
@@ -908,6 +927,7 @@ interface IComboboxStyle extends IStyleWithSpacing {
|
|
|
908
927
|
web_combobox_clearable?: IContentField<string>;
|
|
909
928
|
web_combobox_separator?: IContentField<string>;
|
|
910
929
|
web_multi_select_max_values?: IContentField<string>;
|
|
930
|
+
mobile_select_presentation?: IContentField<TMobileSelectPresentation>;
|
|
911
931
|
}
|
|
912
932
|
interface IColorInputStyle extends IStyleWithSpacing {
|
|
913
933
|
style_name: 'color-input';
|
|
@@ -1054,6 +1074,8 @@ interface IShowUserInputEntry {
|
|
|
1054
1074
|
}
|
|
1055
1075
|
interface IShowUserInputStyle extends IBaseStyle {
|
|
1056
1076
|
style_name: 'show-user-input';
|
|
1077
|
+
/** Source data table the form entries are read from (backend data binding). */
|
|
1078
|
+
data_table?: IContentField<string>;
|
|
1057
1079
|
own_entries_only?: IContentField<string>;
|
|
1058
1080
|
show_timestamp?: IContentField<string>;
|
|
1059
1081
|
dt_sortable?: IContentField<string>;
|
|
@@ -2565,4 +2587,4 @@ declare function getPluginStyleRegistry(): Record<string, IPluginStyleRegistryEn
|
|
|
2565
2587
|
*/
|
|
2566
2588
|
declare function _resetPluginStyleRegistry(): void;
|
|
2567
2589
|
|
|
2568
|
-
export { type
|
|
2590
|
+
export { type IFormRecordStyle as $, type ICardSegmentStyle as A, BASE_STYLE_REGISTRY as B, type ICardStyle as C, type ICarouselStyle as D, type ICenterStyle as E, type ICheckboxStyle as F, type IChipStyle as G, type ICodeStyle as H, type IStyleRegistryEntry as I, type IColorInputStyle as J, type IColorPickerStyle as K, type IComboboxStyle as L, type IContainerStyle as M, type IDataContainerStyle as N, type IDatePickerStyle as O, type IDividerStyle as P, type IEntryListStyle as Q, type IEntryRecordDeleteStyle as R, STYLE_REGISTRY as S, type TStyleName as T, type IEntryRecordStyle as U, type IFieldsetStyle as V, type IFigureStyle as W, type IFileInputStyle as X, type IFlexStyle as Y, type IFormLogStyle as Z, type _AssertRegistryMatchesStyleName as _, type IPluginStyleRegistryEntry as a, type TMantineAnchorUnderline as a$, type IFormStyle as a0, type IGridColumnStyle as a1, type IGridStyle as a2, type IGroupStyle as a3, type IHighlightStyle as a4, type IHtmlTagStyle as a5, type IImageStyle as a6, type IIndicatorStyle as a7, type IInputStyle as a8, type IKbdStyle as a9, type IShowUserInputStyle as aA, type ISimpleGridStyle as aB, type ISliderStyle as aC, type ISpaceStyle as aD, type ISpoilerStyle as aE, type IStackStyle as aF, type IStyleWithSpacing as aG, type ISwitchStyle as aH, type ITabStyle as aI, type ITabsStyle as aJ, type ITextInputStyle as aK, type ITextStyle as aL, type ITextareaStyle as aM, type IThemeIconStyle as aN, type ITimelineItemStyle as aO, type ITimelineStyle as aP, type ITitleStyle as aQ, type ITwoFactorAuthStyle as aR, type ITypographyStyle as aS, type IUnknownStyle as aT, type IValidateStyle as aU, type IVersionStyle as aV, type IVideoStyle as aW, type TMantineAccordionChevronPosition as aX, type TMantineAccordionDisableChevronRotation as aY, type TMantineAccordionLoop as aZ, type TMantineAccordionMultiple as a_, type ILinkStyle as aa, type IListItemStyle as ab, type IListStyle as ac, type ILoginStyle as ad, type ILoopStyle as ae, type IMissingStyle as af, type INoAccessStyle as ag, type INotFoundStyle as ah, type INotificationStyle as ai, type INumberInputStyle as aj, type IPaperStyle as ak, type IProfileStyle as al, type IProgressRootStyle as am, type IProgressSectionStyle as an, type IProgressStyle as ao, type IRadioStyle as ap, type IRangeSliderStyle as aq, type IRatingStyle as ar, type IRefContainerStyle as as, type IRegisterStyle as at, type IResetPasswordStyle as au, type IRichTextEditorStyle as av, type IScrollAreaStyle as aw, type ISegmentedControlStyle as ax, type ISelectStyle as ay, type IShowUserInputEntry as az, type TStylePlacement as b, type TMantineBorder as b0, type TMantineCardPadding as b1, type TMantineCardShadow as b2, type TMantineCols as b3, type TMantineDividerVariant as b4, type TMantineGap as b5, type TMantineGridOffset as b6, type TMantineGridOrder as b7, type TMantineHeight as b8, type TMantineIconSize as b9, type TMantineTranslatable as bA, type TMantineUseInputWrapper as bB, type TMantineWidth as bC, type TSharedBorder as bD, type TSharedCols as bE, type TSharedDimension as bF, type TSharedDividerLabelPosition as bG, type TSharedDividerVariant as bH, type TSharedLabelPosition as bI, type TStyle as bJ, type TMantineImageFit as ba, type TMantineLineClamp as bb, type TMantineListCenter as bc, type TMantineListStyleType as bd, type TMantineListType as be, type TMantineListWithPadding as bf, type TMantinePaperShadow as bg, type TMantineProgressTransition as bh, type TMantineScrollAreaSize as bi, type TMantineScrollAreaType as bj, type TMantineTextAlign as bk, type TMantineTextDecoration as bl, type TMantineTextFontStyle as bm, type TMantineTextFontWeight as bn, type TMantineTextInherit as bo, type TMantineTextInputVariant as bp, type TMantineTextSpan as bq, type TMantineTextTransform as br, type TMantineTextTruncate as bs, type TMantineTextVariant as bt, type TMantineTextareaAutosize as bu, type TMantineTextareaResize as bv, type TMantineTextareaVariant as bw, type TMantineTimelineAlign as bx, type TMantineTitleLineClamp as by, type TMantineTitleTextWrap as bz, type TConcretePlatform as c, type TStylePlatform as d, type TStyleRegistryKey as e, _resetPluginStyleRegistry as f, extendStyleRegistry as g, getMergedStyleRegistry as h, getPluginStyleRegistry as i, type IContentField as j, type TMobileButtonFeedback as k, type TMobileFieldVariant as l, type TMobileSelectPresentation as m, type IAccordionItemStyle as n, type IAccordionStyle as o, type IActionIconStyle as p, type IAlertStyle as q, type IAspectRatioStyle as r, type IAudioStyle as s, type IAvatarStyle as t, type IBackgroundImageStyle as u, type IBadgeStyle as v, type IBaseStyle as w, type IBlockquoteStyle as x, type IBoxStyle as y, type IButtonStyle as z };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@selfhelp/shared",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.20",
|
|
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",
|
|
@@ -26,6 +26,8 @@ SPDX-License-Identifier: MPL-2.0
|
|
|
26
26
|
*/
|
|
27
27
|
import type { ComponentType, ReactNode } from 'react';
|
|
28
28
|
import type { THeroUiButtonVariant, THeroUiSize } from '../theme/semantic';
|
|
29
|
+
import type { TMobileFieldVariant, TMobileSelectPresentation } from './styles/forms';
|
|
30
|
+
import type { TMobileButtonFeedback } from './styles/interactive';
|
|
29
31
|
|
|
30
32
|
/** Props shared by every adapter (styling + accessibility passthrough). */
|
|
31
33
|
export interface IMobileAdapterBaseProps {
|
|
@@ -45,6 +47,11 @@ export interface IMobileButtonProps extends IMobileAdapterBaseProps {
|
|
|
45
47
|
isLoading?: boolean;
|
|
46
48
|
isIconOnly?: boolean;
|
|
47
49
|
fullWidth?: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Native press feedback (HeroUI Native `feedbackVariant`). No web
|
|
52
|
+
* equivalent — driven by the mobile-only `mobile_button_feedback` field.
|
|
53
|
+
*/
|
|
54
|
+
feedbackVariant?: TMobileButtonFeedback;
|
|
48
55
|
/**
|
|
49
56
|
* Optional concrete background colour (resolved hex) that overrides the
|
|
50
57
|
* variant's themed fill, used for cross-platform parity when a CMS style
|
|
@@ -92,6 +99,8 @@ export interface IMobileInputProps extends IMobileAdapterBaseProps {
|
|
|
92
99
|
maxLength?: number;
|
|
93
100
|
/** Native auto-capitalize behaviour (from `mobile_auto_capitalize`). */
|
|
94
101
|
autoCapitalize?: 'none' | 'sentences' | 'words' | 'characters';
|
|
102
|
+
/** HeroUI Native field variant (from `mobile_input_variant`). */
|
|
103
|
+
variant?: TMobileFieldVariant;
|
|
95
104
|
}
|
|
96
105
|
|
|
97
106
|
export interface IMobileTextareaProps extends IMobileAdapterBaseProps {
|
|
@@ -108,6 +117,8 @@ export interface IMobileTextareaProps extends IMobileAdapterBaseProps {
|
|
|
108
117
|
maxLength?: number;
|
|
109
118
|
/** Native auto-capitalize behaviour (from `mobile_auto_capitalize`). */
|
|
110
119
|
autoCapitalize?: 'none' | 'sentences' | 'words' | 'characters';
|
|
120
|
+
/** HeroUI Native field variant (from `mobile_textarea_variant`). */
|
|
121
|
+
variant?: TMobileFieldVariant;
|
|
111
122
|
}
|
|
112
123
|
|
|
113
124
|
export interface IMobileSwitchProps extends IMobileAdapterBaseProps {
|
|
@@ -128,6 +139,8 @@ export interface IMobileCheckboxProps extends IMobileAdapterBaseProps {
|
|
|
128
139
|
* to `right`.
|
|
129
140
|
*/
|
|
130
141
|
labelPosition?: 'left' | 'right';
|
|
142
|
+
/** HeroUI Native checkbox variant (from `mobile_checkbox_variant`). */
|
|
143
|
+
variant?: TMobileFieldVariant;
|
|
131
144
|
}
|
|
132
145
|
|
|
133
146
|
export interface IMobileSelectOption {
|
|
@@ -141,6 +154,19 @@ export interface IMobileSelectProps extends IMobileAdapterBaseProps {
|
|
|
141
154
|
options: readonly IMobileSelectOption[];
|
|
142
155
|
placeholder?: string;
|
|
143
156
|
isDisabled?: boolean;
|
|
157
|
+
/**
|
|
158
|
+
* Multi-select mode (CMS `is_multiple`). When true the contract value is a
|
|
159
|
+
* comma-separated list of option values and `onValueChange` emits the same
|
|
160
|
+
* comma-separated form; the adapter renders HeroUI Native's
|
|
161
|
+
* `selectionMode="multiple"`.
|
|
162
|
+
*/
|
|
163
|
+
multiple?: boolean;
|
|
164
|
+
/**
|
|
165
|
+
* How the option list opens (HeroUI Native Select.Content presentation).
|
|
166
|
+
* From the mobile-only `mobile_select_presentation` field; empty/undefined
|
|
167
|
+
* falls back to the renderer default (`bottom-sheet`).
|
|
168
|
+
*/
|
|
169
|
+
presentation?: TMobileSelectPresentation;
|
|
144
170
|
}
|
|
145
171
|
|
|
146
172
|
export interface IMobileModalProps extends IMobileAdapterBaseProps {
|
package/src/types/styles/auth.ts
CHANGED
|
@@ -50,6 +50,8 @@ export interface IValidateStyle extends IStyleWithSpacing {
|
|
|
50
50
|
subtitle?: IContentField<string>;
|
|
51
51
|
alert_success?: IContentField<string>;
|
|
52
52
|
label_name?: IContentField<string>;
|
|
53
|
+
/** Label for the timezone select (anonymous-user activation form). */
|
|
54
|
+
label_timezone?: IContentField<string>;
|
|
53
55
|
name_placeholder?: IContentField<string>;
|
|
54
56
|
name_description?: IContentField<string>;
|
|
55
57
|
label_activate?: IContentField<string>;
|
|
@@ -88,6 +90,8 @@ export interface IValidateStyle extends IStyleWithSpacing {
|
|
|
88
90
|
|
|
89
91
|
export interface IResetPasswordStyle extends IStyleWithSpacing {
|
|
90
92
|
style_name: 'reset-password';
|
|
93
|
+
/** Submit/link-button colour (cross-platform, via the shared mapper). */
|
|
94
|
+
shared_color?: IContentField<TMantineColor>;
|
|
91
95
|
label_pw_reset?: IContentField<string>;
|
|
92
96
|
alert_success?: IContentField<string>;
|
|
93
97
|
placeholder?: IContentField<string>; reset_title?: IContentField<string>;
|
|
@@ -17,6 +17,10 @@ export type TMantineUseInputWrapper = '0' | '1';
|
|
|
17
17
|
export type TMantineTranslatable = '0' | '1';
|
|
18
18
|
export type TMantineProgressTransition = '150' | '200' | '300' | '400' | '0' | string;
|
|
19
19
|
export type TSharedLabelPosition = 'left' | 'right';
|
|
20
|
+
// Mobile-only HeroUI Native knobs (no web/Mantine equivalent). The web
|
|
21
|
+
// renderer ignores `mobile_*`; only the mobile renderers read these.
|
|
22
|
+
export type TMobileSelectPresentation = 'bottom-sheet' | 'dialog' | 'popover';
|
|
23
|
+
export type TMobileFieldVariant = 'primary' | 'secondary';
|
|
20
24
|
|
|
21
25
|
export interface IFormStyle extends IStyleWithSpacing {
|
|
22
26
|
style_name: 'form-log' | 'form-record';
|
|
@@ -78,6 +82,8 @@ export interface ITextInputStyle extends IStyleWithSpacing {
|
|
|
78
82
|
mobile_keyboard_type?: IContentField<string>;
|
|
79
83
|
mobile_auto_capitalize?: IContentField<string>;
|
|
80
84
|
mobile_secure_entry?: IContentField<string>;
|
|
85
|
+
// Mobile-only HeroUI Native field variant (primary = bordered, secondary = filled).
|
|
86
|
+
mobile_input_variant?: IContentField<TMobileFieldVariant>;
|
|
81
87
|
translatable?: IContentField<TMantineTranslatable>;
|
|
82
88
|
}
|
|
83
89
|
|
|
@@ -107,6 +113,8 @@ export interface ITextareaStyle extends IStyleWithSpacing {
|
|
|
107
113
|
// Capability pass (2026-06-22): max length (web + mobile) + mobile auto-capitalize.
|
|
108
114
|
shared_max_length?: IContentField<string>;
|
|
109
115
|
mobile_auto_capitalize?: IContentField<string>;
|
|
116
|
+
// Mobile-only HeroUI Native field variant (primary = bordered, secondary = filled).
|
|
117
|
+
mobile_textarea_variant?: IContentField<TMobileFieldVariant>;
|
|
110
118
|
translatable?: IContentField<TMantineTranslatable>;
|
|
111
119
|
}
|
|
112
120
|
|
|
@@ -128,6 +136,7 @@ export interface IRichTextEditorStyle extends IStyleWithSpacing {
|
|
|
128
136
|
|
|
129
137
|
export interface ISelectStyle extends IBaseStyle {
|
|
130
138
|
style_name: 'select';
|
|
139
|
+
label?: IContentField<string>;
|
|
131
140
|
is_required?: IContentField<string>;
|
|
132
141
|
name?: IContentField<string>;
|
|
133
142
|
value?: IContentField<string>;
|
|
@@ -142,6 +151,9 @@ export interface ISelectStyle extends IBaseStyle {
|
|
|
142
151
|
disabled?: IContentField<string>;
|
|
143
152
|
image_selector?: IContentField<string>;
|
|
144
153
|
shared_clearable?: IContentField<string>;
|
|
154
|
+
// Mobile-only: how the option list opens (HeroUI Native Select.Content
|
|
155
|
+
// presentation). Empty = renderer default (bottom-sheet).
|
|
156
|
+
mobile_select_presentation?: IContentField<TMobileSelectPresentation>;
|
|
145
157
|
}
|
|
146
158
|
|
|
147
159
|
export interface IRadioStyle extends IStyleWithSpacing {
|
|
@@ -180,6 +192,8 @@ export interface ICheckboxStyle extends IStyleWithSpacing {
|
|
|
180
192
|
shared_size?: IContentField<TSharedSize>;
|
|
181
193
|
shared_radius?: IContentField<TSharedRadius>;
|
|
182
194
|
shared_color?: IContentField<TMantineColor>; web_use_input_wrapper?: IContentField<TMantineUseInputWrapper>;
|
|
195
|
+
// Mobile-only HeroUI Native checkbox variant (primary / secondary).
|
|
196
|
+
mobile_checkbox_variant?: IContentField<TMobileFieldVariant>;
|
|
183
197
|
}
|
|
184
198
|
|
|
185
199
|
export interface ISliderStyle extends IStyleWithSpacing {
|
|
@@ -200,6 +214,8 @@ export interface ISliderStyle extends IStyleWithSpacing {
|
|
|
200
214
|
web_slider_inverted?: IContentField<string>;
|
|
201
215
|
web_slider_thumb_size?: IContentField<string>;
|
|
202
216
|
web_slider_required?: IContentField<string>;
|
|
217
|
+
// Mobile-only: toggle the HeroUI Native Slider.Output value bubble.
|
|
218
|
+
mobile_slider_show_value?: IContentField<string>;
|
|
203
219
|
}
|
|
204
220
|
|
|
205
221
|
export interface IRangeSliderStyle extends IStyleWithSpacing {
|
|
@@ -218,7 +234,10 @@ export interface IRangeSliderStyle extends IStyleWithSpacing {
|
|
|
218
234
|
shared_size?: IContentField<TSharedSize>;
|
|
219
235
|
shared_color?: IContentField<TMantineColor>;
|
|
220
236
|
shared_radius?: IContentField<TSharedRadius>;
|
|
221
|
-
disabled?: IContentField<string>;
|
|
237
|
+
disabled?: IContentField<string>;
|
|
238
|
+
// Mobile-only: toggle the HeroUI Native Slider.Output value bubble.
|
|
239
|
+
mobile_range_slider_show_value?: IContentField<string>;
|
|
240
|
+
}
|
|
222
241
|
|
|
223
242
|
export interface IDatePickerStyle extends IStyleWithSpacing {
|
|
224
243
|
style_name: 'datepicker';
|
|
@@ -287,6 +306,9 @@ export interface IComboboxStyle extends IStyleWithSpacing {
|
|
|
287
306
|
web_combobox_clearable?: IContentField<string>;
|
|
288
307
|
web_combobox_separator?: IContentField<string>;
|
|
289
308
|
web_multi_select_max_values?: IContentField<string>;
|
|
309
|
+
// Mobile-only: reuses the select renderer; how the option list opens
|
|
310
|
+
// (HeroUI Native Select.Content presentation). Empty = default bottom-sheet.
|
|
311
|
+
mobile_select_presentation?: IContentField<TMobileSelectPresentation>;
|
|
290
312
|
}
|
|
291
313
|
|
|
292
314
|
export interface IColorInputStyle extends IStyleWithSpacing {
|
|
@@ -437,6 +459,8 @@ export interface IShowUserInputEntry {
|
|
|
437
459
|
|
|
438
460
|
export interface IShowUserInputStyle extends IBaseStyle {
|
|
439
461
|
style_name: 'show-user-input';
|
|
462
|
+
/** Source data table the form entries are read from (backend data binding). */
|
|
463
|
+
data_table?: IContentField<string>;
|
|
440
464
|
own_entries_only?: IContentField<string>;
|
|
441
465
|
show_timestamp?: IContentField<string>;
|
|
442
466
|
dt_sortable?: IContentField<string>;
|
|
@@ -19,6 +19,12 @@ import type { TMantineIconSize } from './typography';
|
|
|
19
19
|
/** Mantine `Anchor` `underline` behaviour. */
|
|
20
20
|
export type TMantineAnchorUnderline = 'always' | 'hover' | 'never';
|
|
21
21
|
|
|
22
|
+
/**
|
|
23
|
+
* Mobile-only HeroUI Native Button press feedback (no web equivalent). The web
|
|
24
|
+
* renderer ignores `mobile_*`; only the mobile button renderer reads it.
|
|
25
|
+
*/
|
|
26
|
+
export type TMobileButtonFeedback = 'scale-highlight' | 'scale-ripple' | 'scale' | 'none';
|
|
27
|
+
|
|
22
28
|
export interface IButtonStyle extends IStyleWithSpacing {
|
|
23
29
|
style_name: 'button';
|
|
24
30
|
shared_variant?: IContentField<TMantineVariant>;
|
|
@@ -39,6 +45,8 @@ export interface IButtonStyle extends IStyleWithSpacing {
|
|
|
39
45
|
confirmation_title?: IContentField<string>;
|
|
40
46
|
confirmation_continue?: IContentField<string>;
|
|
41
47
|
confirmation_message?: IContentField<string>;
|
|
48
|
+
// Mobile-only HeroUI Native press feedback (scale-highlight / scale-ripple / scale / none).
|
|
49
|
+
mobile_button_feedback?: IContentField<TMobileButtonFeedback>;
|
|
42
50
|
}
|
|
43
51
|
|
|
44
52
|
export interface ILinkStyle extends IStyleWithSpacing {
|