@selfhelp/shared 1.14.20 → 1.14.24
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 +109 -0
- package/dist/{common-DMm4kymA.d.mts → common-qaDIAYS3.d.mts} +5 -4
- package/dist/{common-DMm4kymA.d.ts → common-qaDIAYS3.d.ts} +5 -4
- package/dist/index.d.mts +9 -9
- package/dist/index.d.ts +9 -9
- package/dist/index.js +99 -175
- package/dist/index.mjs +99 -172
- package/dist/plugin-sdk/index.d.mts +2 -2
- package/dist/plugin-sdk/index.d.ts +2 -2
- package/dist/plugin-sdk/index.js +90 -91
- package/dist/plugin-sdk/index.mjs +90 -91
- package/dist/registry/index.d.mts +3 -3
- package/dist/registry/index.d.ts +3 -3
- package/dist/registry/index.js +90 -90
- package/dist/registry/index.mjs +90 -90
- package/dist/{styles.registry-B8IaEULk.d.ts → styles.registry-4W0LzmZB.d.mts} +194 -365
- package/dist/{styles.registry-DhkxrV2-.d.mts → styles.registry-D6xMm5VR.d.ts} +194 -365
- package/dist/theme/index.d.mts +42 -91
- package/dist/theme/index.d.ts +42 -91
- package/dist/theme/index.js +9 -85
- package/dist/theme/index.mjs +9 -82
- package/dist/theme/tailwind.d.mts +2 -2
- package/dist/theme/tailwind.d.ts +2 -2
- package/package.json +1 -1
- package/src/plugin-sdk/define.ts +0 -1
- package/src/registry/__tests__/platform.test.ts +0 -4
- package/src/registry/__tests__/registry.test.ts +0 -2
- package/src/registry/styles.registry.ts +90 -96
- package/src/theme/__tests__/mantineVariant.test.ts +2 -2
- package/src/theme/__tests__/semantic.test.ts +34 -71
- package/src/theme/mantineVariant.ts +3 -3
- package/src/theme/semantic.ts +45 -185
- package/src/theme/tailwind.ts +2 -2
- package/src/theme/tokens.ts +3 -3
- package/src/types/__tests__/mobile-adapters.test.ts +1 -1
- package/src/types/mantine/common.ts +4 -3
- 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 -9
- 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,115 @@ 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.24
|
|
13
|
+
|
|
14
|
+
Semantic mapper cleanup — remove the legacy `shared_intent` field and related
|
|
15
|
+
fallback mappings that were kept for backward compatibility. The live catalog
|
|
16
|
+
uses `color` and `variant` as the cross-platform appearance fields, so the
|
|
17
|
+
intent path is dead code. This is a pure cleanup with no runtime behaviour
|
|
18
|
+
change (no catalog data uses `shared_intent`).
|
|
19
|
+
|
|
20
|
+
### Removed (`theme/semantic.ts`)
|
|
21
|
+
|
|
22
|
+
- **`TSemanticIntent` type** and **`SEMANTIC_INTENTS` constant** — the intent
|
|
23
|
+
taxonomy (`primary`/`secondary`/`success`/`warning`/`danger`/`neutral`) is no
|
|
24
|
+
longer part of the shared contract.
|
|
25
|
+
- **`mapIntentToHeroUiColor`** — mapped intent tokens to HeroUI Native colors.
|
|
26
|
+
- **`mapIntentToHeroUiButtonVariant`** — mapped intent tokens to HeroUI Native
|
|
27
|
+
button variants.
|
|
28
|
+
- **`mapIntentToMantine`** — mapped intent tokens to Mantine color/variant pairs.
|
|
29
|
+
- **`ISharedStyleProps.intent`** — the intent field is removed from the shared
|
|
30
|
+
props interface.
|
|
31
|
+
- **Intent fallback logic** from `resolveSharedStyleProps`,
|
|
32
|
+
`toMantineSemanticProps`, and `toHeroUiSemanticProps` — the mappers now read
|
|
33
|
+
only `color` and `variant`.
|
|
34
|
+
|
|
35
|
+
### Removed (`types/styles/composite.ts`)
|
|
36
|
+
|
|
37
|
+
- **`IListStyle.web_spacing`** — unused web-only spacing field; list spacing is
|
|
38
|
+
the portable `spacing` field from `IStyleWithSpacing`.
|
|
39
|
+
- **Unused `TMantineSpacing` import** — no longer needed after removing
|
|
40
|
+
`web_spacing`.
|
|
41
|
+
|
|
42
|
+
### Changed
|
|
43
|
+
|
|
44
|
+
- **Comment updates** across `theme/semantic.ts`, `theme/tokens.ts`,
|
|
45
|
+
`types/mantine/common.ts`, and `types/styles/base.ts` to reflect that
|
|
46
|
+
cross-platform fields are now unprefixed (not `shared_*`) and to remove
|
|
47
|
+
stale migration references (e.g., RF-15).
|
|
48
|
+
|
|
49
|
+
## v1.14.23
|
|
50
|
+
|
|
51
|
+
Contract tidy on the back of the cross-repo style audit (no runtime behaviour
|
|
52
|
+
change).
|
|
53
|
+
|
|
54
|
+
### Removed
|
|
55
|
+
|
|
56
|
+
- **`IImageStyle.height` / `IImageStyle.width`** — orphan optional fields with no
|
|
57
|
+
backing catalog field (image sizing is web-only via `web_width`/`web_height`).
|
|
58
|
+
No renderer read them as typed props; the mobile renderer's dead
|
|
59
|
+
`width`/`height` fallback was dropped in the same wave.
|
|
60
|
+
|
|
61
|
+
### Changed
|
|
62
|
+
|
|
63
|
+
- `rich-text-editor` registry description updated — it is a native inline-format
|
|
64
|
+
toolbar **editor** on mobile, not the old "READ-ONLY viewer on mobile v1".
|
|
65
|
+
- `media.ts` interface closings reformatted (`;}` on one line → `;` + `}` on its
|
|
66
|
+
own line) so line-based tooling (e.g. the backend style-field audit parser)
|
|
67
|
+
reads each interface cleanly.
|
|
68
|
+
|
|
69
|
+
## v1.14.22
|
|
70
|
+
|
|
71
|
+
Field-naming unification (Option B): the `shared_*` field-name prefix is dropped
|
|
72
|
+
so that **no prefix = applies to both platforms**. `shared_*` (cross-platform
|
|
73
|
+
presentation) and the unprefixed `common` fields (cross-platform behaviour) were
|
|
74
|
+
the same scope, so the prefix was redundant. Backend migration
|
|
75
|
+
`Version20260622165615` renames the catalog in lockstep; consumers read the new
|
|
76
|
+
unprefixed field names. Pre-1.0 coordinated breaking change.
|
|
77
|
+
|
|
78
|
+
### Changed
|
|
79
|
+
|
|
80
|
+
- **47 `shared_*` style props renamed to unprefixed** across the style
|
|
81
|
+
interfaces (`size`, `spacing`, `radius`, `color`, `variant`, `gap`, `cols`,
|
|
82
|
+
`justify`, `align`, `direction`, `wrap`, `full_width`, `orientation`,
|
|
83
|
+
`multiple`, `clearable`, `searchable`, `max_length`, `min_rows`/`max_rows`,
|
|
84
|
+
`mih`/`miw`/`mah`/`maw`, `grid_*`, `buttons_*`, `btn_*_color`, `text_align`,
|
|
85
|
+
`vertical_spacing`, `line_clamp`, `label_position`, `with_close_button`,
|
|
86
|
+
`*_variant`, …). The rule is now: no prefix = both platforms (translatable
|
|
87
|
+
when `display=1`), `web_`/`mobile_` = platform-specific.
|
|
88
|
+
|
|
89
|
+
### Kept (reserved-name exceptions)
|
|
90
|
+
|
|
91
|
+
- **`shared_height`, `shared_width`, `shared_icon`** keep their prefix. The bare
|
|
92
|
+
names `height`/`width`/`icon` already exist as **page-type** fields in the
|
|
93
|
+
globally-unique backend `fields` table (page `icon` is live on real pages), so
|
|
94
|
+
these three style fields cannot drop the prefix without a collision.
|
|
95
|
+
|
|
96
|
+
## v1.14.21
|
|
97
|
+
|
|
98
|
+
Style authoring upgrade contracts for the form / notification / show-user-input
|
|
99
|
+
styles (approved `/style` run, 2026-06-22). All additions are optional and the
|
|
100
|
+
two notification renames are pre-1.0 portability promotions; consumers read the
|
|
101
|
+
new field names.
|
|
102
|
+
|
|
103
|
+
### Added
|
|
104
|
+
|
|
105
|
+
- **`IFormStyle.title` + `description`** — optional auto-styled heading/subtitle
|
|
106
|
+
rendered above `form-record` / `form-log` when set (empty = unchanged).
|
|
107
|
+
- **`IFormStyle.alert_success_title` + `alert_error_title`** — translatable
|
|
108
|
+
headings for the success/error alerts (were hardcoded `Success`/`Error`).
|
|
109
|
+
- **`IFormStyle.confirm_submit` + `confirm_message`** — optional
|
|
110
|
+
confirm-before-save dialog (off by default).
|
|
111
|
+
- **`IShowUserInputStyle.title` + `empty_text`** — optional heading and a
|
|
112
|
+
configurable empty-state message (was hardcoded `No entries found.`).
|
|
113
|
+
|
|
114
|
+
### Changed
|
|
115
|
+
|
|
116
|
+
- **`INotificationStyle`** — `web_left_icon` → **`shared_icon`** and
|
|
117
|
+
`web_notification_with_close_button` → **`shared_with_close_button`**: the icon
|
|
118
|
+
and dismiss toggle are now portable so the mobile renderer honours them too.
|
|
119
|
+
(`web_left_icon` stays a web-only field on the other 15 styles that use it.)
|
|
120
|
+
|
|
12
121
|
## v1.14.20
|
|
13
122
|
|
|
14
123
|
Type-contract drift fixes for three styles, reconciling the `@selfhelp/shared`
|
|
@@ -9,14 +9,15 @@ type TMantineSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
|
9
9
|
type TMantineRadius = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | string;
|
|
10
10
|
type TMantineSpacing = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'none' | string;
|
|
11
11
|
/**
|
|
12
|
-
* Cross-platform
|
|
12
|
+
* Cross-platform 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 the portable unprefixed `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.
|
|
18
18
|
*
|
|
19
|
-
*
|
|
19
|
+
* Genuinely web-specific size/radius fields (typed `TMantineSize` / `TMantineRadius`)
|
|
20
|
+
* keep the full Mantine range.
|
|
20
21
|
*/
|
|
21
22
|
type TSharedSize = 'sm' | 'md' | 'lg';
|
|
22
23
|
type TSharedRadius = 'none' | 'sm' | 'md' | 'lg' | 'full';
|
|
@@ -89,4 +90,4 @@ type TMantineGrow = '0' | '1';
|
|
|
89
90
|
type TMantineInline = '0' | '1';
|
|
90
91
|
type TMantineFluid = '0' | '1';
|
|
91
92
|
|
|
92
|
-
export type {
|
|
93
|
+
export type { TMantineIsLink as $, TMantineAllowStepClick as A, TMantineAspectRatio as B, TMantineAutoContrast as C, TMantineBlock as D, TMantineCenterInline as E, TMantineChecked as F, TMantineChipChecked as G, TMantineChipMultiple as H, TMantineClampBehavior as I, TMantineCodeBlock as J, TMantineColorFormat as K, TMantineColorInputSwatches as L, TMantineColorPickerSwatches as M, TMantineColorPickerSwatchesPerRow as N, TMantineCompact as O, TMantineContainerFluid as P, TMantineDisabled as Q, TMantineFileAccept as R, TMantineFileInputMultiple as S, TMantineColor as T, TMantineFluid as U, TMantineFullWidth as V, TMantineGroupGrow as W, TMantineGroupWrap as X, TMantineGrow as Y, TMantineHighlight as Z, TMantineInline as _, TMantineRadius as a, TMantineKbdSize as a0, TMantineLoading as a1, TMantineMultiple as a2, TMantineNotificationWithCloseButton as a3, TMantineNumberInputDecimalScale as a4, TMantineOpenInNewTab as a5, TMantineProcessing as a6, TMantineRangeSliderMarks as a7, TMantineRatingCount as a8, TMantineRatingFractions as a9, TMantineRatingReadonly as aa, TMantineReadonly as ab, TMantineSpaceHorizontal as ac, TMantineSpacing as ad, TMantineSwatches as ae, TMantineTabDisabled as af, TMantineUseMantineStyle as ag, TMantineWithCloseButton as ah, TMantineWithIcon as ai, TSharedSize as b, TMantineJustify as c, TMantineAlign as d, TMantineDirection as e, TMantineWrap as f, TMantineGridOverflow as g, TMantineGridSpan as h, TMantineGridGrow as i, TMantineOrientation as j, TSharedRadius as k, TMantineTitleOrder as l, TMantineSize as m, TMantineFieldsetVariant as n, TMantineSpoilerMaxHeight as o, TMantineVariant as p, TMantineBadgeVariant as q, TMantineAvatarVariant as r, TMantineChipVariant as s, TMantineIndicatorPosition as t, TMantineThemeIconVariant as u, TMantineAccordionVariant as v, TMantineTabsVariant as w, TMantineTimelineLineVariant as x, TMantineActionIconLoading as y, TMantineAllowNextClicks as z };
|
|
@@ -9,14 +9,15 @@ type TMantineSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
|
9
9
|
type TMantineRadius = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | string;
|
|
10
10
|
type TMantineSpacing = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'none' | string;
|
|
11
11
|
/**
|
|
12
|
-
* Cross-platform
|
|
12
|
+
* Cross-platform 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 the portable unprefixed `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.
|
|
18
18
|
*
|
|
19
|
-
*
|
|
19
|
+
* Genuinely web-specific size/radius fields (typed `TMantineSize` / `TMantineRadius`)
|
|
20
|
+
* keep the full Mantine range.
|
|
20
21
|
*/
|
|
21
22
|
type TSharedSize = 'sm' | 'md' | 'lg';
|
|
22
23
|
type TSharedRadius = 'none' | 'sm' | 'md' | 'lg' | 'full';
|
|
@@ -89,4 +90,4 @@ type TMantineGrow = '0' | '1';
|
|
|
89
90
|
type TMantineInline = '0' | '1';
|
|
90
91
|
type TMantineFluid = '0' | '1';
|
|
91
92
|
|
|
92
|
-
export type {
|
|
93
|
+
export type { TMantineIsLink as $, TMantineAllowStepClick as A, TMantineAspectRatio as B, TMantineAutoContrast as C, TMantineBlock as D, TMantineCenterInline as E, TMantineChecked as F, TMantineChipChecked as G, TMantineChipMultiple as H, TMantineClampBehavior as I, TMantineCodeBlock as J, TMantineColorFormat as K, TMantineColorInputSwatches as L, TMantineColorPickerSwatches as M, TMantineColorPickerSwatchesPerRow as N, TMantineCompact as O, TMantineContainerFluid as P, TMantineDisabled as Q, TMantineFileAccept as R, TMantineFileInputMultiple as S, TMantineColor as T, TMantineFluid as U, TMantineFullWidth as V, TMantineGroupGrow as W, TMantineGroupWrap as X, TMantineGrow as Y, TMantineHighlight as Z, TMantineInline as _, TMantineRadius as a, TMantineKbdSize as a0, TMantineLoading as a1, TMantineMultiple as a2, TMantineNotificationWithCloseButton as a3, TMantineNumberInputDecimalScale as a4, TMantineOpenInNewTab as a5, TMantineProcessing as a6, TMantineRangeSliderMarks as a7, TMantineRatingCount as a8, TMantineRatingFractions as a9, TMantineRatingReadonly as aa, TMantineReadonly as ab, TMantineSpaceHorizontal as ac, TMantineSpacing as ad, TMantineSwatches as ae, TMantineTabDisabled as af, TMantineUseMantineStyle as ag, TMantineWithCloseButton as ah, TMantineWithIcon as ai, TSharedSize as b, TMantineJustify as c, TMantineAlign as d, TMantineDirection as e, TMantineWrap as f, TMantineGridOverflow as g, TMantineGridSpan as h, TMantineGridGrow as i, TMantineOrientation as j, TSharedRadius as k, TMantineTitleOrder as l, TMantineSize as m, TMantineFieldsetVariant as n, TMantineSpoilerMaxHeight as o, TMantineVariant as p, TMantineBadgeVariant as q, TMantineAvatarVariant as r, TMantineChipVariant as s, TMantineIndicatorPosition as t, TMantineThemeIconVariant as u, TMantineAccordionVariant as v, TMantineTabsVariant as w, TMantineTimelineLineVariant as x, TMantineActionIconLoading as y, TMantineAllowNextClicks as z };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
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,
|
|
1
|
+
import { T as TStyleName, j as IContentField, k as TMobileButtonFeedback, l as TMobileFieldVariant, m as TMobileSelectPresentation } from './styles.registry-4W0LzmZB.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-4W0LzmZB.mjs';
|
|
3
|
+
export { v as TMantineAccordionVariant, y as TMantineActionIconLoading, d as TMantineAlign, z as TMantineAllowNextClicks, A as TMantineAllowStepClick, B as TMantineAspectRatio, C as TMantineAutoContrast, r as TMantineAvatarVariant, q as TMantineBadgeVariant, D as TMantineBlock, E as TMantineCenterInline, F as TMantineChecked, G as TMantineChipChecked, H as TMantineChipMultiple, s as TMantineChipVariant, I as TMantineClampBehavior, J as TMantineCodeBlock, T as TMantineColor, K as TMantineColorFormat, L as TMantineColorInputSwatches, M as TMantineColorPickerSwatches, N as TMantineColorPickerSwatchesPerRow, O as TMantineCompact, P as TMantineContainerFluid, e as TMantineDirection, Q as TMantineDisabled, n as TMantineFieldsetVariant, R as TMantineFileAccept, S as TMantineFileInputMultiple, U as TMantineFluid, V as TMantineFullWidth, i as TMantineGridGrow, g as TMantineGridOverflow, h as TMantineGridSpan, W as TMantineGroupGrow, X as TMantineGroupWrap, Y as TMantineGrow, Z as TMantineHighlight, t as TMantineIndicatorPosition, _ as TMantineInline, $ as TMantineIsLink, c as TMantineJustify, a0 as TMantineKbdSize, a1 as TMantineLoading, a2 as TMantineMultiple, a3 as TMantineNotificationWithCloseButton, a4 as TMantineNumberInputDecimalScale, a5 as TMantineOpenInNewTab, j as TMantineOrientation, a6 as TMantineProcessing, a as TMantineRadius, a7 as TMantineRangeSliderMarks, a8 as TMantineRatingCount, a9 as TMantineRatingFractions, aa as TMantineRatingReadonly, ab as TMantineReadonly, m as TMantineSize, ac as TMantineSpaceHorizontal, ad 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-qaDIAYS3.mjs';
|
|
4
4
|
import { ReactNode, ComponentType } from 'react';
|
|
5
5
|
import { THeroUiButtonVariant, THeroUiSize } from './theme/index.mjs';
|
|
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,
|
|
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, TReactNativeDimension, TSemanticColor, TSemanticRadius, TSemanticSize, TSemanticSpacing, TSemanticState, TSemanticVariant, colorToHex, gridSpanToReactNativeColumn, mapAccordionVariantToHeroUiVariant, mapChipVariantToHeroUiVariant, mapDividerVariantToReactNative, 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';
|
|
7
7
|
export { TAnyStyleName, TPluginStyleImplMap, TStyleImplMap, getRegistryEntry, getRegistryEntryAny, getStylePlacement, getStylePlatforms, getStylePluginId, isKnownStyleName, isRegisteredStyleName, isStyleAllowedOnPage, isStylePlacementAllowed, isStyleSupportedOnPlatform, setToStylePlatform, stylePlatformToSet } from './registry/index.mjs';
|
|
8
8
|
export { sharedTailwindExtend, sharedTailwindPreset } from './theme/tailwind.mjs';
|
|
9
9
|
|
|
@@ -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,9 +1,9 @@
|
|
|
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,
|
|
1
|
+
import { T as TStyleName, j as IContentField, k as TMobileButtonFeedback, l as TMobileFieldVariant, m as TMobileSelectPresentation } from './styles.registry-D6xMm5VR.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-D6xMm5VR.js';
|
|
3
|
+
export { v as TMantineAccordionVariant, y as TMantineActionIconLoading, d as TMantineAlign, z as TMantineAllowNextClicks, A as TMantineAllowStepClick, B as TMantineAspectRatio, C as TMantineAutoContrast, r as TMantineAvatarVariant, q as TMantineBadgeVariant, D as TMantineBlock, E as TMantineCenterInline, F as TMantineChecked, G as TMantineChipChecked, H as TMantineChipMultiple, s as TMantineChipVariant, I as TMantineClampBehavior, J as TMantineCodeBlock, T as TMantineColor, K as TMantineColorFormat, L as TMantineColorInputSwatches, M as TMantineColorPickerSwatches, N as TMantineColorPickerSwatchesPerRow, O as TMantineCompact, P as TMantineContainerFluid, e as TMantineDirection, Q as TMantineDisabled, n as TMantineFieldsetVariant, R as TMantineFileAccept, S as TMantineFileInputMultiple, U as TMantineFluid, V as TMantineFullWidth, i as TMantineGridGrow, g as TMantineGridOverflow, h as TMantineGridSpan, W as TMantineGroupGrow, X as TMantineGroupWrap, Y as TMantineGrow, Z as TMantineHighlight, t as TMantineIndicatorPosition, _ as TMantineInline, $ as TMantineIsLink, c as TMantineJustify, a0 as TMantineKbdSize, a1 as TMantineLoading, a2 as TMantineMultiple, a3 as TMantineNotificationWithCloseButton, a4 as TMantineNumberInputDecimalScale, a5 as TMantineOpenInNewTab, j as TMantineOrientation, a6 as TMantineProcessing, a as TMantineRadius, a7 as TMantineRangeSliderMarks, a8 as TMantineRatingCount, a9 as TMantineRatingFractions, aa as TMantineRatingReadonly, ab as TMantineReadonly, m as TMantineSize, ac as TMantineSpaceHorizontal, ad 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-qaDIAYS3.js';
|
|
4
4
|
import { ReactNode, ComponentType } from 'react';
|
|
5
5
|
import { THeroUiButtonVariant, THeroUiSize } from './theme/index.js';
|
|
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,
|
|
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, TReactNativeDimension, TSemanticColor, TSemanticRadius, TSemanticSize, TSemanticSpacing, TSemanticState, TSemanticVariant, colorToHex, gridSpanToReactNativeColumn, mapAccordionVariantToHeroUiVariant, mapChipVariantToHeroUiVariant, mapDividerVariantToReactNative, 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';
|
|
7
7
|
export { TAnyStyleName, TPluginStyleImplMap, TStyleImplMap, getRegistryEntry, getRegistryEntryAny, getStylePlacement, getStylePlatforms, getStylePluginId, isKnownStyleName, isRegisteredStyleName, isStyleAllowedOnPage, isStylePlacementAllowed, isStyleSupportedOnPlatform, setToStylePlatform, stylePlatformToSet } from './registry/index.js';
|
|
8
8
|
export { sharedTailwindExtend, sharedTailwindPreset } from './theme/tailwind.js';
|
|
9
9
|
|
|
@@ -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",
|