@selfhelp/shared 1.14.20 → 1.14.23
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 +72 -0
- package/dist/{common-DMm4kymA.d.mts → common-udJ0O8qC.d.mts} +1 -1
- package/dist/{common-DMm4kymA.d.ts → common-udJ0O8qC.d.ts} +1 -1
- package/dist/index.d.mts +8 -8
- package/dist/index.d.ts +8 -8
- package/dist/index.js +6 -6
- package/dist/index.mjs +6 -6
- package/dist/plugin-sdk/index.d.mts +2 -2
- package/dist/plugin-sdk/index.d.ts +2 -2
- package/dist/plugin-sdk/index.js +1 -1
- package/dist/plugin-sdk/index.mjs +1 -1
- package/dist/registry/index.d.mts +3 -3
- package/dist/registry/index.d.ts +3 -3
- package/dist/registry/index.js +1 -1
- package/dist/registry/index.mjs +1 -1
- package/dist/{styles.registry-B8IaEULk.d.ts → styles.registry-CZZwODJY.d.mts} +194 -178
- package/dist/{styles.registry-DhkxrV2-.d.mts → styles.registry-DQKcvIBZ.d.ts} +194 -178
- package/dist/theme/index.d.mts +20 -20
- package/dist/theme/index.d.ts +20 -20
- package/dist/theme/index.js +5 -5
- package/dist/theme/index.mjs +5 -5
- package/dist/theme/tailwind.d.mts +2 -2
- package/dist/theme/tailwind.d.ts +2 -2
- package/package.json +1 -1
- package/src/registry/styles.registry.ts +1 -1
- package/src/theme/__tests__/semantic.test.ts +19 -19
- package/src/theme/mantineVariant.ts +1 -1
- package/src/theme/semantic.ts +24 -24
- package/src/theme/tailwind.ts +2 -2
- package/src/theme/tokens.ts +1 -1
- package/src/types/__tests__/mobile-adapters.test.ts +1 -1
- package/src/types/mantine/common.ts +1 -1
- package/src/types/mobile-adapters.ts +4 -4
- package/src/types/styles/auth.ts +10 -10
- package/src/types/styles/base.ts +2 -2
- package/src/types/styles/composite.ts +7 -7
- package/src/types/styles/error.ts +9 -9
- package/src/types/styles/forms.ts +74 -58
- package/src/types/styles/interactive.ts +34 -32
- package/src/types/styles/layout.ts +42 -42
- package/src/types/styles/media.ts +6 -6
- package/src/types/styles/typography.ts +13 -13
- package/src/utils/spacing.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,78 @@ 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.23
|
|
13
|
+
|
|
14
|
+
Contract tidy on the back of the cross-repo style audit (no runtime behaviour
|
|
15
|
+
change).
|
|
16
|
+
|
|
17
|
+
### Removed
|
|
18
|
+
|
|
19
|
+
- **`IImageStyle.height` / `IImageStyle.width`** — orphan optional fields with no
|
|
20
|
+
backing catalog field (image sizing is web-only via `web_width`/`web_height`).
|
|
21
|
+
No renderer read them as typed props; the mobile renderer's dead
|
|
22
|
+
`width`/`height` fallback was dropped in the same wave.
|
|
23
|
+
|
|
24
|
+
### Changed
|
|
25
|
+
|
|
26
|
+
- `rich-text-editor` registry description updated — it is a native inline-format
|
|
27
|
+
toolbar **editor** on mobile, not the old "READ-ONLY viewer on mobile v1".
|
|
28
|
+
- `media.ts` interface closings reformatted (`;}` on one line → `;` + `}` on its
|
|
29
|
+
own line) so line-based tooling (e.g. the backend style-field audit parser)
|
|
30
|
+
reads each interface cleanly.
|
|
31
|
+
|
|
32
|
+
## v1.14.22
|
|
33
|
+
|
|
34
|
+
Field-naming unification (Option B): the `shared_*` field-name prefix is dropped
|
|
35
|
+
so that **no prefix = applies to both platforms**. `shared_*` (cross-platform
|
|
36
|
+
presentation) and the unprefixed `common` fields (cross-platform behaviour) were
|
|
37
|
+
the same scope, so the prefix was redundant. Backend migration
|
|
38
|
+
`Version20260622165615` renames the catalog in lockstep; consumers read the new
|
|
39
|
+
unprefixed field names. Pre-1.0 coordinated breaking change.
|
|
40
|
+
|
|
41
|
+
### Changed
|
|
42
|
+
|
|
43
|
+
- **47 `shared_*` style props renamed to unprefixed** across the style
|
|
44
|
+
interfaces (`size`, `spacing`, `radius`, `color`, `variant`, `gap`, `cols`,
|
|
45
|
+
`justify`, `align`, `direction`, `wrap`, `full_width`, `orientation`,
|
|
46
|
+
`multiple`, `clearable`, `searchable`, `max_length`, `min_rows`/`max_rows`,
|
|
47
|
+
`mih`/`miw`/`mah`/`maw`, `grid_*`, `buttons_*`, `btn_*_color`, `text_align`,
|
|
48
|
+
`vertical_spacing`, `line_clamp`, `label_position`, `with_close_button`,
|
|
49
|
+
`*_variant`, …). The rule is now: no prefix = both platforms (translatable
|
|
50
|
+
when `display=1`), `web_`/`mobile_` = platform-specific.
|
|
51
|
+
|
|
52
|
+
### Kept (reserved-name exceptions)
|
|
53
|
+
|
|
54
|
+
- **`shared_height`, `shared_width`, `shared_icon`** keep their prefix. The bare
|
|
55
|
+
names `height`/`width`/`icon` already exist as **page-type** fields in the
|
|
56
|
+
globally-unique backend `fields` table (page `icon` is live on real pages), so
|
|
57
|
+
these three style fields cannot drop the prefix without a collision.
|
|
58
|
+
|
|
59
|
+
## v1.14.21
|
|
60
|
+
|
|
61
|
+
Style authoring upgrade contracts for the form / notification / show-user-input
|
|
62
|
+
styles (approved `/style` run, 2026-06-22). All additions are optional and the
|
|
63
|
+
two notification renames are pre-1.0 portability promotions; consumers read the
|
|
64
|
+
new field names.
|
|
65
|
+
|
|
66
|
+
### Added
|
|
67
|
+
|
|
68
|
+
- **`IFormStyle.title` + `description`** — optional auto-styled heading/subtitle
|
|
69
|
+
rendered above `form-record` / `form-log` when set (empty = unchanged).
|
|
70
|
+
- **`IFormStyle.alert_success_title` + `alert_error_title`** — translatable
|
|
71
|
+
headings for the success/error alerts (were hardcoded `Success`/`Error`).
|
|
72
|
+
- **`IFormStyle.confirm_submit` + `confirm_message`** — optional
|
|
73
|
+
confirm-before-save dialog (off by default).
|
|
74
|
+
- **`IShowUserInputStyle.title` + `empty_text`** — optional heading and a
|
|
75
|
+
configurable empty-state message (was hardcoded `No entries found.`).
|
|
76
|
+
|
|
77
|
+
### Changed
|
|
78
|
+
|
|
79
|
+
- **`INotificationStyle`** — `web_left_icon` → **`shared_icon`** and
|
|
80
|
+
`web_notification_with_close_button` → **`shared_with_close_button`**: the icon
|
|
81
|
+
and dismiss toggle are now portable so the mobile renderer honours them too.
|
|
82
|
+
(`web_left_icon` stays a web-only field on the other 15 styles that use it.)
|
|
83
|
+
|
|
12
84
|
## v1.14.20
|
|
13
85
|
|
|
14
86
|
Type-contract drift fixes for three styles, reconciling the `@selfhelp/shared`
|
|
@@ -11,7 +11,7 @@ type TMantineSpacing = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'none' | string;
|
|
|
11
11
|
/**
|
|
12
12
|
* Cross-platform (`shared_*`) semantic scales — the TRUE common denominator
|
|
13
13
|
* between Mantine (web) and HeroUI Native / React Native (mobile). HeroUI Native
|
|
14
|
-
* only exposes `sm | md | lg`, so portable `
|
|
14
|
+
* only exposes `sm | md | lg`, so portable `size` / `radius` fields
|
|
15
15
|
* use these narrowed scales instead of the full Mantine `xs..xl` range. The
|
|
16
16
|
* backend enforces the same domain (migration `Version20260618195450`), and the
|
|
17
17
|
* semantic mapper (`theme/semantic.ts`) maps these 1:1 without clamping.
|
|
@@ -11,7 +11,7 @@ type TMantineSpacing = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'none' | string;
|
|
|
11
11
|
/**
|
|
12
12
|
* Cross-platform (`shared_*`) semantic scales — the TRUE common denominator
|
|
13
13
|
* between Mantine (web) and HeroUI Native / React Native (mobile). HeroUI Native
|
|
14
|
-
* only exposes `sm | md | lg`, so portable `
|
|
14
|
+
* only exposes `sm | md | lg`, so portable `size` / `radius` fields
|
|
15
15
|
* use these narrowed scales instead of the full Mantine `xs..xl` range. The
|
|
16
16
|
* backend enforces the same domain (migration `Version20260618195450`), and the
|
|
17
17
|
* semantic mapper (`theme/semantic.ts`) maps these 1:1 without clamping.
|
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { T as TStyleName, j as IContentField, k as TMobileButtonFeedback, l as TMobileFieldVariant, m as TMobileSelectPresentation } from './styles.registry-
|
|
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-
|
|
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-
|
|
1
|
+
import { T as TStyleName, j as IContentField, k as TMobileButtonFeedback, l as TMobileFieldVariant, m as TMobileSelectPresentation } from './styles.registry-CZZwODJY.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-CZZwODJY.mjs';
|
|
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-udJ0O8qC.mjs';
|
|
4
4
|
import { ReactNode, ComponentType } from 'react';
|
|
5
5
|
import { THeroUiButtonVariant, THeroUiSize } from './theme/index.mjs';
|
|
6
6
|
export { COLOR_PALETTE, COLOR_SCALES, CONTAINER_SIZE_PX, FONT_SIZE_PX, FULL_RADIUS_PX, IHeroUiResolvedStyle, IMantineResolvedStyle, IReactNativeGridColumn, IReactNativeResolvedStyle, IReactNativeThemeScales, IResolvedVariant, ISharedStyleProps, ISpacingResolved, LINE_HEIGHT, RADIUS_PX, SPACING_PX, SPACING_TO_TAILWIND, TCanonicalColor, TCanonicalRadius, TCanonicalSpacing, THeroUiColor, TMantineMappedColor, TMantineMappedVariant, TReactNativeDimension, TSemanticColor, TSemanticIntent, TSemanticRadius, TSemanticSize, TSemanticSpacing, TSemanticState, TSemanticVariant, colorToHex, gridSpanToReactNativeColumn, mapAccordionVariantToHeroUiVariant, mapChipVariantToHeroUiVariant, mapDividerVariantToReactNative, mapIntentToHeroUiButtonVariant, mapIntentToHeroUiColor, mapIntentToMantine, mapMantineColorToHeroUiButtonVariant, mapMantineColorToHeroUiColor, mapMantineVariantToHeroUiButtonVariant, mapRadiusToMantine, mapRadiusToPx, mapSizeToHeroUi, mapSizeToMantine, mapSpacingToPx, parseDimensionToReactNative, parseDimensionToWeb, radiusToPx, resolveMantineVariant, resolveSharedStyle, resolveSharedStyleForMobile, resolveSharedStyleForWeb, resolveSharedStyleProps, sizeToFontPx, spacingToPx, toHeroUiSemanticProps, toMantineSemanticProps, toReactNativeSemanticStyle } from './theme/index.mjs';
|
|
@@ -1200,7 +1200,7 @@ interface IMobileButtonProps extends IMobileAdapterBaseProps {
|
|
|
1200
1200
|
/**
|
|
1201
1201
|
* Optional concrete background colour (resolved hex) that overrides the
|
|
1202
1202
|
* variant's themed fill, used for cross-platform parity when a CMS style
|
|
1203
|
-
* exposes an authored colour (e.g. `login`'s `
|
|
1203
|
+
* exposes an authored colour (e.g. `login`'s `color`, which Mantine
|
|
1204
1204
|
* applies to the web button via `color`). The adapter keeps the variant's
|
|
1205
1205
|
* readable foreground (white on a filled button). Leave undefined to use the
|
|
1206
1206
|
* variant's default themed colour. Resolve it through the shared mapper
|
|
@@ -1236,7 +1236,7 @@ interface IMobileInputProps extends IMobileAdapterBaseProps {
|
|
|
1236
1236
|
isRequired?: boolean;
|
|
1237
1237
|
secureTextEntry?: boolean;
|
|
1238
1238
|
keyboardType?: 'default' | 'email-address' | 'numeric' | 'phone-pad' | 'url';
|
|
1239
|
-
/** Max characters (maps to RN `maxLength`; from `
|
|
1239
|
+
/** Max characters (maps to RN `maxLength`; from `max_length`). */
|
|
1240
1240
|
maxLength?: number;
|
|
1241
1241
|
/** Native auto-capitalize behaviour (from `mobile_auto_capitalize`). */
|
|
1242
1242
|
autoCapitalize?: 'none' | 'sentences' | 'words' | 'characters';
|
|
@@ -1253,7 +1253,7 @@ interface IMobileTextareaProps extends IMobileAdapterBaseProps {
|
|
|
1253
1253
|
isRequired?: boolean;
|
|
1254
1254
|
/** Minimum visible rows (maps to RN `numberOfLines`). */
|
|
1255
1255
|
numberOfLines?: number;
|
|
1256
|
-
/** Max characters (maps to RN `maxLength`; from `
|
|
1256
|
+
/** Max characters (maps to RN `maxLength`; from `max_length`). */
|
|
1257
1257
|
maxLength?: number;
|
|
1258
1258
|
/** Native auto-capitalize behaviour (from `mobile_auto_capitalize`). */
|
|
1259
1259
|
autoCapitalize?: 'none' | 'sentences' | 'words' | 'characters';
|
|
@@ -1273,7 +1273,7 @@ interface IMobileCheckboxProps extends IMobileAdapterBaseProps {
|
|
|
1273
1273
|
label?: string;
|
|
1274
1274
|
/**
|
|
1275
1275
|
* Where the label sits relative to the box. Mirrors the cross-platform
|
|
1276
|
-
* `
|
|
1276
|
+
* `label_position` field (Mantine `labelPosition` on web). Defaults
|
|
1277
1277
|
* to `right`.
|
|
1278
1278
|
*/
|
|
1279
1279
|
labelPosition?: 'left' | 'right';
|
|
@@ -1616,7 +1616,7 @@ declare function hasInlineFormatting(value: string | null | undefined): boolean;
|
|
|
1616
1616
|
declare function stripHtmlToText(value: string | null | undefined): string;
|
|
1617
1617
|
|
|
1618
1618
|
/**
|
|
1619
|
-
* Parse the unified `
|
|
1619
|
+
* Parse the unified `spacing` field. The CMS
|
|
1620
1620
|
* stores this as a JSON string with optional keys for each side:
|
|
1621
1621
|
*
|
|
1622
1622
|
* { "mt": "md", "mb": "lg", "ms": "0", "me": "auto",
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { T as TStyleName, j as IContentField, k as TMobileButtonFeedback, l as TMobileFieldVariant, m as TMobileSelectPresentation } from './styles.registry-
|
|
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-
|
|
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-
|
|
1
|
+
import { T as TStyleName, j as IContentField, k as TMobileButtonFeedback, l as TMobileFieldVariant, m as TMobileSelectPresentation } from './styles.registry-DQKcvIBZ.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-DQKcvIBZ.js';
|
|
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-udJ0O8qC.js';
|
|
4
4
|
import { ReactNode, ComponentType } from 'react';
|
|
5
5
|
import { THeroUiButtonVariant, THeroUiSize } from './theme/index.js';
|
|
6
6
|
export { COLOR_PALETTE, COLOR_SCALES, CONTAINER_SIZE_PX, FONT_SIZE_PX, FULL_RADIUS_PX, IHeroUiResolvedStyle, IMantineResolvedStyle, IReactNativeGridColumn, IReactNativeResolvedStyle, IReactNativeThemeScales, IResolvedVariant, ISharedStyleProps, ISpacingResolved, LINE_HEIGHT, RADIUS_PX, SPACING_PX, SPACING_TO_TAILWIND, TCanonicalColor, TCanonicalRadius, TCanonicalSpacing, THeroUiColor, TMantineMappedColor, TMantineMappedVariant, TReactNativeDimension, TSemanticColor, TSemanticIntent, TSemanticRadius, TSemanticSize, TSemanticSpacing, TSemanticState, TSemanticVariant, colorToHex, gridSpanToReactNativeColumn, mapAccordionVariantToHeroUiVariant, mapChipVariantToHeroUiVariant, mapDividerVariantToReactNative, mapIntentToHeroUiButtonVariant, mapIntentToHeroUiColor, mapIntentToMantine, mapMantineColorToHeroUiButtonVariant, mapMantineColorToHeroUiColor, mapMantineVariantToHeroUiButtonVariant, mapRadiusToMantine, mapRadiusToPx, mapSizeToHeroUi, mapSizeToMantine, mapSpacingToPx, parseDimensionToReactNative, parseDimensionToWeb, radiusToPx, resolveMantineVariant, resolveSharedStyle, resolveSharedStyleForMobile, resolveSharedStyleForWeb, resolveSharedStyleProps, sizeToFontPx, spacingToPx, toHeroUiSemanticProps, toMantineSemanticProps, toReactNativeSemanticStyle } from './theme/index.js';
|
|
@@ -1200,7 +1200,7 @@ interface IMobileButtonProps extends IMobileAdapterBaseProps {
|
|
|
1200
1200
|
/**
|
|
1201
1201
|
* Optional concrete background colour (resolved hex) that overrides the
|
|
1202
1202
|
* variant's themed fill, used for cross-platform parity when a CMS style
|
|
1203
|
-
* exposes an authored colour (e.g. `login`'s `
|
|
1203
|
+
* exposes an authored colour (e.g. `login`'s `color`, which Mantine
|
|
1204
1204
|
* applies to the web button via `color`). The adapter keeps the variant's
|
|
1205
1205
|
* readable foreground (white on a filled button). Leave undefined to use the
|
|
1206
1206
|
* variant's default themed colour. Resolve it through the shared mapper
|
|
@@ -1236,7 +1236,7 @@ interface IMobileInputProps extends IMobileAdapterBaseProps {
|
|
|
1236
1236
|
isRequired?: boolean;
|
|
1237
1237
|
secureTextEntry?: boolean;
|
|
1238
1238
|
keyboardType?: 'default' | 'email-address' | 'numeric' | 'phone-pad' | 'url';
|
|
1239
|
-
/** Max characters (maps to RN `maxLength`; from `
|
|
1239
|
+
/** Max characters (maps to RN `maxLength`; from `max_length`). */
|
|
1240
1240
|
maxLength?: number;
|
|
1241
1241
|
/** Native auto-capitalize behaviour (from `mobile_auto_capitalize`). */
|
|
1242
1242
|
autoCapitalize?: 'none' | 'sentences' | 'words' | 'characters';
|
|
@@ -1253,7 +1253,7 @@ interface IMobileTextareaProps extends IMobileAdapterBaseProps {
|
|
|
1253
1253
|
isRequired?: boolean;
|
|
1254
1254
|
/** Minimum visible rows (maps to RN `numberOfLines`). */
|
|
1255
1255
|
numberOfLines?: number;
|
|
1256
|
-
/** Max characters (maps to RN `maxLength`; from `
|
|
1256
|
+
/** Max characters (maps to RN `maxLength`; from `max_length`). */
|
|
1257
1257
|
maxLength?: number;
|
|
1258
1258
|
/** Native auto-capitalize behaviour (from `mobile_auto_capitalize`). */
|
|
1259
1259
|
autoCapitalize?: 'none' | 'sentences' | 'words' | 'characters';
|
|
@@ -1273,7 +1273,7 @@ interface IMobileCheckboxProps extends IMobileAdapterBaseProps {
|
|
|
1273
1273
|
label?: string;
|
|
1274
1274
|
/**
|
|
1275
1275
|
* Where the label sits relative to the box. Mirrors the cross-platform
|
|
1276
|
-
* `
|
|
1276
|
+
* `label_position` field (Mantine `labelPosition` on web). Defaults
|
|
1277
1277
|
* to `right`.
|
|
1278
1278
|
*/
|
|
1279
1279
|
labelPosition?: 'left' | 'right';
|
|
@@ -1616,7 +1616,7 @@ declare function hasInlineFormatting(value: string | null | undefined): boolean;
|
|
|
1616
1616
|
declare function stripHtmlToText(value: string | null | undefined): string;
|
|
1617
1617
|
|
|
1618
1618
|
/**
|
|
1619
|
-
* Parse the unified `
|
|
1619
|
+
* Parse the unified `spacing` field. The CMS
|
|
1620
1620
|
* stores this as a JSON string with optional keys for each side:
|
|
1621
1621
|
*
|
|
1622
1622
|
* { "mt": "md", "mb": "lg", "ms": "0", "me": "auto",
|
package/dist/index.js
CHANGED
|
@@ -258,7 +258,7 @@ var BASE_STYLE_REGISTRY = {
|
|
|
258
258
|
input: { description: "Plain HTML input", category: "forms", frontendOnly: true, canHaveChildren: false },
|
|
259
259
|
"text-input": { description: "Mantine TextInput", category: "forms", frontendOnly: true, canHaveChildren: false },
|
|
260
260
|
textarea: { description: "Mantine Textarea", category: "forms", frontendOnly: true, canHaveChildren: false },
|
|
261
|
-
"rich-text-editor": { description: "Tiptap editor on web;
|
|
261
|
+
"rich-text-editor": { description: "Tiptap editor on web; native inline-format toolbar editor on mobile", category: "forms", frontendOnly: true, canHaveChildren: false },
|
|
262
262
|
select: { description: "HTML select / Mantine Select", category: "forms", frontendOnly: true, canHaveChildren: false },
|
|
263
263
|
radio: { description: "Mantine Radio / RadioGroup", category: "forms", frontendOnly: true, canHaveChildren: false },
|
|
264
264
|
checkbox: { description: "Mantine Checkbox", category: "forms", frontendOnly: true, canHaveChildren: false },
|
|
@@ -854,19 +854,19 @@ function readBool(value) {
|
|
|
854
854
|
}
|
|
855
855
|
function resolveSharedStyleProps(fields) {
|
|
856
856
|
const resolved = {};
|
|
857
|
-
const size = readString(fields.
|
|
857
|
+
const size = readString(fields.size);
|
|
858
858
|
if (size !== void 0 && SEMANTIC_SIZES.includes(size)) {
|
|
859
859
|
resolved.size = size;
|
|
860
860
|
}
|
|
861
|
-
const radius = readString(fields.
|
|
861
|
+
const radius = readString(fields.radius);
|
|
862
862
|
if (radius !== void 0 && SEMANTIC_RADII.includes(radius)) {
|
|
863
863
|
resolved.radius = radius;
|
|
864
864
|
}
|
|
865
|
-
const color = readString(fields.
|
|
865
|
+
const color = readString(fields.color);
|
|
866
866
|
if (color !== void 0) {
|
|
867
867
|
resolved.color = color;
|
|
868
868
|
}
|
|
869
|
-
const variant = readString(fields.
|
|
869
|
+
const variant = readString(fields.variant);
|
|
870
870
|
if (variant !== void 0) {
|
|
871
871
|
resolved.variant = variant;
|
|
872
872
|
}
|
|
@@ -874,7 +874,7 @@ function resolveSharedStyleProps(fields) {
|
|
|
874
874
|
if (intent !== void 0 && SEMANTIC_INTENTS.includes(intent)) {
|
|
875
875
|
resolved.intent = intent;
|
|
876
876
|
}
|
|
877
|
-
const fullWidth = readBool(fields.
|
|
877
|
+
const fullWidth = readBool(fields.full_width);
|
|
878
878
|
if (fullWidth !== void 0) {
|
|
879
879
|
resolved.fullWidth = fullWidth;
|
|
880
880
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -135,7 +135,7 @@ var BASE_STYLE_REGISTRY = {
|
|
|
135
135
|
input: { description: "Plain HTML input", category: "forms", frontendOnly: true, canHaveChildren: false },
|
|
136
136
|
"text-input": { description: "Mantine TextInput", category: "forms", frontendOnly: true, canHaveChildren: false },
|
|
137
137
|
textarea: { description: "Mantine Textarea", category: "forms", frontendOnly: true, canHaveChildren: false },
|
|
138
|
-
"rich-text-editor": { description: "Tiptap editor on web;
|
|
138
|
+
"rich-text-editor": { description: "Tiptap editor on web; native inline-format toolbar editor on mobile", category: "forms", frontendOnly: true, canHaveChildren: false },
|
|
139
139
|
select: { description: "HTML select / Mantine Select", category: "forms", frontendOnly: true, canHaveChildren: false },
|
|
140
140
|
radio: { description: "Mantine Radio / RadioGroup", category: "forms", frontendOnly: true, canHaveChildren: false },
|
|
141
141
|
checkbox: { description: "Mantine Checkbox", category: "forms", frontendOnly: true, canHaveChildren: false },
|
|
@@ -731,19 +731,19 @@ function readBool(value) {
|
|
|
731
731
|
}
|
|
732
732
|
function resolveSharedStyleProps(fields) {
|
|
733
733
|
const resolved = {};
|
|
734
|
-
const size = readString(fields.
|
|
734
|
+
const size = readString(fields.size);
|
|
735
735
|
if (size !== void 0 && SEMANTIC_SIZES.includes(size)) {
|
|
736
736
|
resolved.size = size;
|
|
737
737
|
}
|
|
738
|
-
const radius = readString(fields.
|
|
738
|
+
const radius = readString(fields.radius);
|
|
739
739
|
if (radius !== void 0 && SEMANTIC_RADII.includes(radius)) {
|
|
740
740
|
resolved.radius = radius;
|
|
741
741
|
}
|
|
742
|
-
const color = readString(fields.
|
|
742
|
+
const color = readString(fields.color);
|
|
743
743
|
if (color !== void 0) {
|
|
744
744
|
resolved.color = color;
|
|
745
745
|
}
|
|
746
|
-
const variant = readString(fields.
|
|
746
|
+
const variant = readString(fields.variant);
|
|
747
747
|
if (variant !== void 0) {
|
|
748
748
|
resolved.variant = variant;
|
|
749
749
|
}
|
|
@@ -751,7 +751,7 @@ function resolveSharedStyleProps(fields) {
|
|
|
751
751
|
if (intent !== void 0 && SEMANTIC_INTENTS.includes(intent)) {
|
|
752
752
|
resolved.intent = intent;
|
|
753
753
|
}
|
|
754
|
-
const fullWidth = readBool(fields.
|
|
754
|
+
const fullWidth = readBool(fields.full_width);
|
|
755
755
|
if (fullWidth !== void 0) {
|
|
756
756
|
resolved.fullWidth = fullWidth;
|
|
757
757
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
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-
|
|
3
|
-
import '../common-
|
|
2
|
+
import { I as IStyleRegistryEntry } from '../styles.registry-CZZwODJY.mjs';
|
|
3
|
+
import '../common-udJ0O8qC.mjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* SDK contract version. Plugins declare which API they target in
|
|
@@ -1,6 +1,6 @@
|
|
|
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-
|
|
3
|
-
import '../common-
|
|
2
|
+
import { I as IStyleRegistryEntry } from '../styles.registry-DQKcvIBZ.js';
|
|
3
|
+
import '../common-udJ0O8qC.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* SDK contract version. Plugins declare which API they target in
|
package/dist/plugin-sdk/index.js
CHANGED
|
@@ -235,7 +235,7 @@ var BASE_STYLE_REGISTRY = {
|
|
|
235
235
|
input: { description: "Plain HTML input", category: "forms", frontendOnly: true, canHaveChildren: false },
|
|
236
236
|
"text-input": { description: "Mantine TextInput", category: "forms", frontendOnly: true, canHaveChildren: false },
|
|
237
237
|
textarea: { description: "Mantine Textarea", category: "forms", frontendOnly: true, canHaveChildren: false },
|
|
238
|
-
"rich-text-editor": { description: "Tiptap editor on web;
|
|
238
|
+
"rich-text-editor": { description: "Tiptap editor on web; native inline-format toolbar editor on mobile", category: "forms", frontendOnly: true, canHaveChildren: false },
|
|
239
239
|
select: { description: "HTML select / Mantine Select", category: "forms", frontendOnly: true, canHaveChildren: false },
|
|
240
240
|
radio: { description: "Mantine Radio / RadioGroup", category: "forms", frontendOnly: true, canHaveChildren: false },
|
|
241
241
|
checkbox: { description: "Mantine Checkbox", category: "forms", frontendOnly: true, canHaveChildren: false },
|
|
@@ -191,7 +191,7 @@ var BASE_STYLE_REGISTRY = {
|
|
|
191
191
|
input: { description: "Plain HTML input", category: "forms", frontendOnly: true, canHaveChildren: false },
|
|
192
192
|
"text-input": { description: "Mantine TextInput", category: "forms", frontendOnly: true, canHaveChildren: false },
|
|
193
193
|
textarea: { description: "Mantine Textarea", category: "forms", frontendOnly: true, canHaveChildren: false },
|
|
194
|
-
"rich-text-editor": { description: "Tiptap editor on web;
|
|
194
|
+
"rich-text-editor": { description: "Tiptap editor on web; native inline-format toolbar editor on mobile", category: "forms", frontendOnly: true, canHaveChildren: false },
|
|
195
195
|
select: { description: "HTML select / Mantine Select", category: "forms", frontendOnly: true, canHaveChildren: false },
|
|
196
196
|
radio: { description: "Mantine Radio / RadioGroup", category: "forms", frontendOnly: true, canHaveChildren: false },
|
|
197
197
|
checkbox: { description: "Mantine Checkbox", category: "forms", frontendOnly: true, canHaveChildren: false },
|
|
@@ -1,6 +1,6 @@
|
|
|
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-
|
|
3
|
-
import '../common-
|
|
1
|
+
import { T as TStyleName, I as IStyleRegistryEntry, a as IPluginStyleRegistryEntry, b as TStylePlacement, c as TConcretePlatform, d as TStylePlatform } from '../styles.registry-CZZwODJY.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-CZZwODJY.mjs';
|
|
3
|
+
import '../common-udJ0O8qC.mjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Open style-name type: a core `TStyleName` literal OR any plugin style
|
package/dist/registry/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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-
|
|
3
|
-
import '../common-
|
|
1
|
+
import { T as TStyleName, I as IStyleRegistryEntry, a as IPluginStyleRegistryEntry, b as TStylePlacement, c as TConcretePlatform, d as TStylePlatform } from '../styles.registry-DQKcvIBZ.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-DQKcvIBZ.js';
|
|
3
|
+
import '../common-udJ0O8qC.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Open style-name type: a core `TStyleName` literal OR any plugin style
|
package/dist/registry/index.js
CHANGED
|
@@ -102,7 +102,7 @@ var BASE_STYLE_REGISTRY = {
|
|
|
102
102
|
input: { description: "Plain HTML input", category: "forms", frontendOnly: true, canHaveChildren: false },
|
|
103
103
|
"text-input": { description: "Mantine TextInput", category: "forms", frontendOnly: true, canHaveChildren: false },
|
|
104
104
|
textarea: { description: "Mantine Textarea", category: "forms", frontendOnly: true, canHaveChildren: false },
|
|
105
|
-
"rich-text-editor": { description: "Tiptap editor on web;
|
|
105
|
+
"rich-text-editor": { description: "Tiptap editor on web; native inline-format toolbar editor on mobile", category: "forms", frontendOnly: true, canHaveChildren: false },
|
|
106
106
|
select: { description: "HTML select / Mantine Select", category: "forms", frontendOnly: true, canHaveChildren: false },
|
|
107
107
|
radio: { description: "Mantine Radio / RadioGroup", category: "forms", frontendOnly: true, canHaveChildren: false },
|
|
108
108
|
checkbox: { description: "Mantine Checkbox", category: "forms", frontendOnly: true, canHaveChildren: false },
|
package/dist/registry/index.mjs
CHANGED
|
@@ -59,7 +59,7 @@ var BASE_STYLE_REGISTRY = {
|
|
|
59
59
|
input: { description: "Plain HTML input", category: "forms", frontendOnly: true, canHaveChildren: false },
|
|
60
60
|
"text-input": { description: "Mantine TextInput", category: "forms", frontendOnly: true, canHaveChildren: false },
|
|
61
61
|
textarea: { description: "Mantine Textarea", category: "forms", frontendOnly: true, canHaveChildren: false },
|
|
62
|
-
"rich-text-editor": { description: "Tiptap editor on web;
|
|
62
|
+
"rich-text-editor": { description: "Tiptap editor on web; native inline-format toolbar editor on mobile", category: "forms", frontendOnly: true, canHaveChildren: false },
|
|
63
63
|
select: { description: "HTML select / Mantine Select", category: "forms", frontendOnly: true, canHaveChildren: false },
|
|
64
64
|
radio: { description: "Mantine Radio / RadioGroup", category: "forms", frontendOnly: true, canHaveChildren: false },
|
|
65
65
|
checkbox: { description: "Mantine Checkbox", category: "forms", frontendOnly: true, canHaveChildren: false },
|