@selfhelp/shared 1.14.23 → 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 +37 -0
- package/dist/{common-udJ0O8qC.d.mts → common-qaDIAYS3.d.mts} +5 -4
- package/dist/{common-udJ0O8qC.d.ts → common-qaDIAYS3.d.ts} +5 -4
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +94 -170
- package/dist/index.mjs +94 -167
- 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-CZZwODJY.d.mts → styles.registry-4W0LzmZB.d.mts} +2 -189
- package/dist/{styles.registry-DQKcvIBZ.d.ts → styles.registry-D6xMm5VR.d.ts} +2 -189
- package/dist/theme/index.d.mts +27 -76
- package/dist/theme/index.d.ts +27 -76
- package/dist/theme/index.js +4 -80
- package/dist/theme/index.mjs +4 -77
- 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 +16 -53
- package/src/theme/mantineVariant.ts +3 -3
- package/src/theme/semantic.ts +24 -164
- package/src/theme/tokens.ts +2 -2
- package/src/types/mantine/common.ts +4 -3
- package/src/types/styles/base.ts +1 -1
- package/src/types/styles/composite.ts +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,43 @@ 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
|
+
|
|
12
49
|
## v1.14.23
|
|
13
50
|
|
|
14
51
|
Contract tidy on the back of the cross-repo style audit (no runtime behaviour
|
|
@@ -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 `size` / `radius` fields
|
|
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 `size` / `radius` fields
|
|
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
|
|
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
|
|
package/dist/index.js
CHANGED
|
@@ -81,9 +81,6 @@ __export(index_exports, {
|
|
|
81
81
|
mapAccordionVariantToHeroUiVariant: () => mapAccordionVariantToHeroUiVariant,
|
|
82
82
|
mapChipVariantToHeroUiVariant: () => mapChipVariantToHeroUiVariant,
|
|
83
83
|
mapDividerVariantToReactNative: () => mapDividerVariantToReactNative,
|
|
84
|
-
mapIntentToHeroUiButtonVariant: () => mapIntentToHeroUiButtonVariant,
|
|
85
|
-
mapIntentToHeroUiColor: () => mapIntentToHeroUiColor,
|
|
86
|
-
mapIntentToMantine: () => mapIntentToMantine,
|
|
87
84
|
mapMantineColorToHeroUiButtonVariant: () => mapMantineColorToHeroUiButtonVariant,
|
|
88
85
|
mapMantineColorToHeroUiColor: () => mapMantineColorToHeroUiColor,
|
|
89
86
|
mapMantineVariantToHeroUiButtonVariant: () => mapMantineVariantToHeroUiButtonVariant,
|
|
@@ -200,103 +197,103 @@ var RELEASE_CHANNELS = ["stable", "beta", "nightly", "test"];
|
|
|
200
197
|
// src/registry/styles.registry.ts
|
|
201
198
|
var BASE_STYLE_REGISTRY = {
|
|
202
199
|
// ===== auth =====
|
|
203
|
-
login: { description: "User login form", category: "auth",
|
|
204
|
-
register: { description: "User registration form", category: "auth",
|
|
205
|
-
validate: { description: "Email/account validation flow", category: "auth",
|
|
206
|
-
"reset-password": { description: "Reset password form", category: "auth",
|
|
207
|
-
"two-factor-auth": { description: "Two-factor auth code form", category: "auth",
|
|
208
|
-
profile: { description: "User profile management", category: "auth",
|
|
200
|
+
login: { description: "User login form", category: "auth", canHaveChildren: false },
|
|
201
|
+
register: { description: "User registration form", category: "auth", canHaveChildren: false },
|
|
202
|
+
validate: { description: "Email/account validation flow", category: "auth", canHaveChildren: true },
|
|
203
|
+
"reset-password": { description: "Reset password form", category: "auth", canHaveChildren: false },
|
|
204
|
+
"two-factor-auth": { description: "Two-factor auth code form", category: "auth", canHaveChildren: false },
|
|
205
|
+
profile: { description: "User profile management", category: "auth", canHaveChildren: false },
|
|
209
206
|
// ===== layout =====
|
|
210
|
-
container: { description: "Mantine Container with responsive max-width", category: "layout",
|
|
211
|
-
box: { description: "Generic Mantine Box wrapper", category: "layout",
|
|
212
|
-
flex: { description: "Mantine Flex layout", category: "layout",
|
|
213
|
-
group: { description: "Mantine Group horizontal layout", category: "layout",
|
|
214
|
-
stack: { description: "Mantine Stack vertical layout", category: "layout",
|
|
215
|
-
"simple-grid": { description: "Mantine SimpleGrid", category: "layout",
|
|
216
|
-
grid: { description: "Mantine Grid", category: "layout",
|
|
217
|
-
"grid-column": { description: "Mantine Grid.Col", category: "layout",
|
|
218
|
-
space: { description: "Mantine Space spacer", category: "layout",
|
|
219
|
-
divider: { description: "Mantine Divider", category: "layout",
|
|
220
|
-
paper: { description: "Mantine Paper surface", category: "layout",
|
|
221
|
-
center: { description: "Mantine Center alignment", category: "layout",
|
|
222
|
-
"scroll-area": { description: "Mantine ScrollArea", category: "layout",
|
|
223
|
-
card: { description: "Mantine Card", category: "layout",
|
|
224
|
-
"card-segment": { description: "Mantine Card.Section", category: "layout",
|
|
225
|
-
"aspect-ratio": { description: "Mantine AspectRatio wrapper", category: "layout",
|
|
226
|
-
"background-image": { description: "Mantine BackgroundImage", category: "layout",
|
|
207
|
+
container: { description: "Mantine Container with responsive max-width", category: "layout", canHaveChildren: true },
|
|
208
|
+
box: { description: "Generic Mantine Box wrapper", category: "layout", canHaveChildren: true },
|
|
209
|
+
flex: { description: "Mantine Flex layout", category: "layout", canHaveChildren: true },
|
|
210
|
+
group: { description: "Mantine Group horizontal layout", category: "layout", canHaveChildren: true },
|
|
211
|
+
stack: { description: "Mantine Stack vertical layout", category: "layout", canHaveChildren: true },
|
|
212
|
+
"simple-grid": { description: "Mantine SimpleGrid", category: "layout", canHaveChildren: true },
|
|
213
|
+
grid: { description: "Mantine Grid", category: "layout", canHaveChildren: true },
|
|
214
|
+
"grid-column": { description: "Mantine Grid.Col", category: "layout", canHaveChildren: true },
|
|
215
|
+
space: { description: "Mantine Space spacer", category: "layout", canHaveChildren: false },
|
|
216
|
+
divider: { description: "Mantine Divider", category: "layout", canHaveChildren: false },
|
|
217
|
+
paper: { description: "Mantine Paper surface", category: "layout", canHaveChildren: true },
|
|
218
|
+
center: { description: "Mantine Center alignment", category: "layout", canHaveChildren: true },
|
|
219
|
+
"scroll-area": { description: "Mantine ScrollArea", category: "layout", canHaveChildren: true },
|
|
220
|
+
card: { description: "Mantine Card", category: "layout", canHaveChildren: true },
|
|
221
|
+
"card-segment": { description: "Mantine Card.Section", category: "layout", canHaveChildren: true },
|
|
222
|
+
"aspect-ratio": { description: "Mantine AspectRatio wrapper", category: "layout", canHaveChildren: true },
|
|
223
|
+
"background-image": { description: "Mantine BackgroundImage", category: "layout", canHaveChildren: true },
|
|
227
224
|
// ===== typography =====
|
|
228
|
-
title: { description: "Mantine Title", category: "typography",
|
|
229
|
-
text: { description: "Mantine Text", category: "typography",
|
|
230
|
-
code: { description: "Mantine Code (inline / block)", category: "typography",
|
|
231
|
-
highlight: { description: "Mantine Highlight", category: "typography",
|
|
232
|
-
blockquote: { description: "Mantine Blockquote", category: "typography",
|
|
233
|
-
"html-tag": { description: "Generic HTML tag wrapper (web), maps to View on RN", category: "typography",
|
|
234
|
-
kbd: { description: "Mantine Kbd", category: "typography",
|
|
235
|
-
typography: { description: "Mantine Typography wrapper", category: "typography",
|
|
236
|
-
fieldset: { description: "Mantine Fieldset", category: "typography",
|
|
237
|
-
spoiler: { description: "Mantine Spoiler reveal", category: "typography",
|
|
225
|
+
title: { description: "Mantine Title", category: "typography", canHaveChildren: false },
|
|
226
|
+
text: { description: "Mantine Text", category: "typography", canHaveChildren: false },
|
|
227
|
+
code: { description: "Mantine Code (inline / block)", category: "typography", canHaveChildren: false },
|
|
228
|
+
highlight: { description: "Mantine Highlight", category: "typography", canHaveChildren: false },
|
|
229
|
+
blockquote: { description: "Mantine Blockquote", category: "typography", canHaveChildren: false },
|
|
230
|
+
"html-tag": { description: "Generic HTML tag wrapper (web), maps to View on RN", category: "typography", canHaveChildren: true },
|
|
231
|
+
kbd: { description: "Mantine Kbd", category: "typography", canHaveChildren: false },
|
|
232
|
+
typography: { description: "Mantine Typography wrapper", category: "typography", canHaveChildren: true },
|
|
233
|
+
fieldset: { description: "Mantine Fieldset", category: "typography", canHaveChildren: true },
|
|
234
|
+
spoiler: { description: "Mantine Spoiler reveal", category: "typography", canHaveChildren: true },
|
|
238
235
|
// ===== media =====
|
|
239
|
-
image: { description: "Mantine Image / RN Image", category: "media",
|
|
240
|
-
video: { description: "HTML5 video / expo-video", category: "media",
|
|
241
|
-
audio: { description: "HTML5 audio / expo-audio", category: "media",
|
|
242
|
-
figure: { description: "Figure with caption", category: "media",
|
|
243
|
-
carousel: { description: "Embla on web, reanimated-carousel on RN", category: "media",
|
|
236
|
+
image: { description: "Mantine Image / RN Image", category: "media", canHaveChildren: false },
|
|
237
|
+
video: { description: "HTML5 video / expo-video", category: "media", canHaveChildren: false },
|
|
238
|
+
audio: { description: "HTML5 audio / expo-audio", category: "media", canHaveChildren: false },
|
|
239
|
+
figure: { description: "Figure with caption", category: "media", canHaveChildren: true },
|
|
240
|
+
carousel: { description: "Embla on web, reanimated-carousel on RN", category: "media", canHaveChildren: true },
|
|
244
241
|
// ===== interactive =====
|
|
245
|
-
button: { description: "Mantine Button / HeroUI Button", category: "interactive",
|
|
246
|
-
link: { description: "Anchor / Pressable navigation", category: "interactive",
|
|
247
|
-
"action-icon": { description: "Mantine ActionIcon", category: "interactive",
|
|
248
|
-
alert: { description: "Mantine Alert", category: "interactive",
|
|
249
|
-
badge: { description: "Mantine Badge", category: "interactive",
|
|
250
|
-
avatar: { description: "Mantine Avatar", category: "interactive",
|
|
251
|
-
chip: { description: "Mantine Chip", category: "interactive",
|
|
252
|
-
indicator: { description: "Mantine Indicator dot", category: "interactive",
|
|
253
|
-
"theme-icon": { description: "Mantine ThemeIcon", category: "interactive",
|
|
254
|
-
notification: { description: "Mantine Notification", category: "interactive",
|
|
242
|
+
button: { description: "Mantine Button / HeroUI Button", category: "interactive", canHaveChildren: false },
|
|
243
|
+
link: { description: "Anchor / Pressable navigation", category: "interactive", canHaveChildren: false },
|
|
244
|
+
"action-icon": { description: "Mantine ActionIcon", category: "interactive", canHaveChildren: false },
|
|
245
|
+
alert: { description: "Mantine Alert", category: "interactive", canHaveChildren: true },
|
|
246
|
+
badge: { description: "Mantine Badge", category: "interactive", canHaveChildren: false },
|
|
247
|
+
avatar: { description: "Mantine Avatar", category: "interactive", canHaveChildren: false },
|
|
248
|
+
chip: { description: "Mantine Chip", category: "interactive", canHaveChildren: false },
|
|
249
|
+
indicator: { description: "Mantine Indicator dot", category: "interactive", canHaveChildren: true },
|
|
250
|
+
"theme-icon": { description: "Mantine ThemeIcon", category: "interactive", canHaveChildren: false },
|
|
251
|
+
notification: { description: "Mantine Notification", category: "interactive", canHaveChildren: false },
|
|
255
252
|
// ===== forms =====
|
|
256
|
-
"form-log": { description: "Append-only form (one row per submit)", category: "forms",
|
|
257
|
-
"form-record": { description: "Per-user record form", category: "forms",
|
|
258
|
-
input: { description: "Plain HTML input", category: "forms",
|
|
259
|
-
"text-input": { description: "Mantine TextInput", category: "forms",
|
|
260
|
-
textarea: { description: "Mantine Textarea", category: "forms",
|
|
261
|
-
"rich-text-editor": { description: "Tiptap editor on web; native inline-format toolbar editor on mobile", category: "forms",
|
|
262
|
-
select: { description: "HTML select / Mantine Select", category: "forms",
|
|
263
|
-
radio: { description: "Mantine Radio / RadioGroup", category: "forms",
|
|
264
|
-
checkbox: { description: "Mantine Checkbox", category: "forms",
|
|
265
|
-
slider: { description: "Mantine Slider", category: "forms",
|
|
266
|
-
"range-slider": { description: "Mantine RangeSlider", category: "forms",
|
|
267
|
-
datepicker: { description: "Mantine DatePicker", category: "forms",
|
|
268
|
-
switch: { description: "Mantine Switch", category: "forms",
|
|
269
|
-
combobox: { description: "Mantine Combobox", category: "forms",
|
|
270
|
-
"color-input": { description: "Mantine ColorInput", category: "forms",
|
|
271
|
-
"color-picker": { description: "Mantine ColorPicker", category: "forms",
|
|
272
|
-
"file-input": { description: "Mantine FileInput / DocumentPicker on RN", category: "forms",
|
|
273
|
-
"number-input": { description: "Mantine NumberInput", category: "forms",
|
|
274
|
-
"segmented-control": { description: "Mantine SegmentedControl", category: "forms",
|
|
275
|
-
rating: { description: "Mantine Rating", category: "forms",
|
|
276
|
-
progress: { description: "Mantine Progress", category: "forms",
|
|
277
|
-
"progress-root": { description: "Mantine Progress.Root", category: "forms",
|
|
278
|
-
"progress-section": { description: "Mantine Progress.Section", category: "forms",
|
|
253
|
+
"form-log": { description: "Append-only form (one row per submit)", category: "forms", canHaveChildren: true },
|
|
254
|
+
"form-record": { description: "Per-user record form", category: "forms", canHaveChildren: true },
|
|
255
|
+
input: { description: "Plain HTML input", category: "forms", canHaveChildren: false },
|
|
256
|
+
"text-input": { description: "Mantine TextInput", category: "forms", canHaveChildren: false },
|
|
257
|
+
textarea: { description: "Mantine Textarea", category: "forms", canHaveChildren: false },
|
|
258
|
+
"rich-text-editor": { description: "Tiptap editor on web; native inline-format toolbar editor on mobile", category: "forms", canHaveChildren: false },
|
|
259
|
+
select: { description: "HTML select / Mantine Select", category: "forms", canHaveChildren: false },
|
|
260
|
+
radio: { description: "Mantine Radio / RadioGroup", category: "forms", canHaveChildren: false },
|
|
261
|
+
checkbox: { description: "Mantine Checkbox", category: "forms", canHaveChildren: false },
|
|
262
|
+
slider: { description: "Mantine Slider", category: "forms", canHaveChildren: false },
|
|
263
|
+
"range-slider": { description: "Mantine RangeSlider", category: "forms", canHaveChildren: false },
|
|
264
|
+
datepicker: { description: "Mantine DatePicker", category: "forms", canHaveChildren: false },
|
|
265
|
+
switch: { description: "Mantine Switch", category: "forms", canHaveChildren: false },
|
|
266
|
+
combobox: { description: "Mantine Combobox", category: "forms", canHaveChildren: false },
|
|
267
|
+
"color-input": { description: "Mantine ColorInput", category: "forms", canHaveChildren: false },
|
|
268
|
+
"color-picker": { description: "Mantine ColorPicker", category: "forms", canHaveChildren: false },
|
|
269
|
+
"file-input": { description: "Mantine FileInput / DocumentPicker on RN", category: "forms", canHaveChildren: false },
|
|
270
|
+
"number-input": { description: "Mantine NumberInput", category: "forms", canHaveChildren: false },
|
|
271
|
+
"segmented-control": { description: "Mantine SegmentedControl", category: "forms", canHaveChildren: false },
|
|
272
|
+
rating: { description: "Mantine Rating", category: "forms", canHaveChildren: false },
|
|
273
|
+
progress: { description: "Mantine Progress", category: "forms", canHaveChildren: false },
|
|
274
|
+
"progress-root": { description: "Mantine Progress.Root", category: "forms", canHaveChildren: true },
|
|
275
|
+
"progress-section": { description: "Mantine Progress.Section", category: "forms", canHaveChildren: false },
|
|
279
276
|
// ===== composite =====
|
|
280
|
-
accordion: { description: "Mantine Accordion", category: "composite",
|
|
281
|
-
"accordion-item": { description: "Mantine Accordion.Item", category: "composite",
|
|
282
|
-
tabs: { description: "Mantine Tabs", category: "composite",
|
|
283
|
-
tab: { description: "Mantine Tabs.Tab + Tabs.Panel pair", category: "composite",
|
|
284
|
-
timeline: { description: "Mantine Timeline", category: "composite",
|
|
285
|
-
list: { description: "Mantine List", category: "composite",
|
|
286
|
-
"list-item": { description: "Mantine List.Item", category: "composite",
|
|
287
|
-
"entry-list": { description: "Data-driven list of entries (form-log table)", category: "composite",
|
|
288
|
-
"entry-record": { description: "Single-record container", category: "composite",
|
|
289
|
-
"entry-record-delete": { description: "Inline delete confirmation for an entry", category: "composite",
|
|
290
|
-
loop: { description: "Loop / repeater over backend-provided rows", category: "composite",
|
|
291
|
-
"timeline-item": { description: "A single entry inside a timeline (child-only)", category: "composite",
|
|
277
|
+
accordion: { description: "Mantine Accordion", category: "composite", canHaveChildren: true },
|
|
278
|
+
"accordion-item": { description: "Mantine Accordion.Item", category: "composite", canHaveChildren: true },
|
|
279
|
+
tabs: { description: "Mantine Tabs", category: "composite", canHaveChildren: true },
|
|
280
|
+
tab: { description: "Mantine Tabs.Tab + Tabs.Panel pair", category: "composite", canHaveChildren: true },
|
|
281
|
+
timeline: { description: "Mantine Timeline", category: "composite", canHaveChildren: true },
|
|
282
|
+
list: { description: "Mantine List", category: "composite", canHaveChildren: true },
|
|
283
|
+
"list-item": { description: "Mantine List.Item", category: "composite", canHaveChildren: true },
|
|
284
|
+
"entry-list": { description: "Data-driven list of entries (form-log table)", category: "composite", canHaveChildren: true },
|
|
285
|
+
"entry-record": { description: "Single-record container", category: "composite", canHaveChildren: true },
|
|
286
|
+
"entry-record-delete": { description: "Inline delete confirmation for an entry", category: "composite", canHaveChildren: false },
|
|
287
|
+
loop: { description: "Loop / repeater over backend-provided rows", category: "composite", canHaveChildren: true },
|
|
288
|
+
"timeline-item": { description: "A single entry inside a timeline (child-only)", category: "composite", canHaveChildren: true },
|
|
292
289
|
// ===== system / data / reference (established backend catalog) =====
|
|
293
|
-
"no-access": { description: "Access-denied surface shown when the user lacks page access", category: "auth",
|
|
294
|
-
missing: { description: 'Generic "content missing" system surface', category: "auth",
|
|
295
|
-
"not-found": { description: "Page-not-found system surface", category: "auth",
|
|
296
|
-
version: { description: "Build/version diagnostic surface", category: "auth",
|
|
297
|
-
"ref-container": { description: "Renders content referenced from another section", category: "layout",
|
|
298
|
-
"data-container": { description: "Data-scoped container (renders subtree against a data scope)", category: "layout",
|
|
299
|
-
"show-user-input": { description: "Displays previously submitted user input as a list/card view", category: "forms",
|
|
290
|
+
"no-access": { description: "Access-denied surface shown when the user lacks page access", category: "auth", canHaveChildren: false },
|
|
291
|
+
missing: { description: 'Generic "content missing" system surface', category: "auth", canHaveChildren: false },
|
|
292
|
+
"not-found": { description: "Page-not-found system surface", category: "auth", canHaveChildren: false },
|
|
293
|
+
version: { description: "Build/version diagnostic surface", category: "auth", canHaveChildren: false },
|
|
294
|
+
"ref-container": { description: "Renders content referenced from another section", category: "layout", canHaveChildren: true },
|
|
295
|
+
"data-container": { description: "Data-scoped container (renders subtree against a data scope)", category: "layout", canHaveChildren: true },
|
|
296
|
+
"show-user-input": { description: "Displays previously submitted user input as a list/card view", category: "forms", canHaveChildren: false }
|
|
300
297
|
};
|
|
301
298
|
var STYLE_REGISTRY = BASE_STYLE_REGISTRY;
|
|
302
299
|
var PLUGIN_STYLE_REGISTRY = {};
|
|
@@ -603,14 +600,6 @@ var sharedTailwindPreset = {
|
|
|
603
600
|
var FULL_RADIUS_PX = 9999;
|
|
604
601
|
var SEMANTIC_SIZES = ["sm", "md", "lg"];
|
|
605
602
|
var SEMANTIC_RADII = ["none", "sm", "md", "lg", "full"];
|
|
606
|
-
var SEMANTIC_INTENTS = [
|
|
607
|
-
"primary",
|
|
608
|
-
"secondary",
|
|
609
|
-
"success",
|
|
610
|
-
"warning",
|
|
611
|
-
"danger",
|
|
612
|
-
"neutral"
|
|
613
|
-
];
|
|
614
603
|
function mapSizeToMantine(size) {
|
|
615
604
|
return size;
|
|
616
605
|
}
|
|
@@ -666,63 +655,6 @@ function mapSpacingToPx(spacing2) {
|
|
|
666
655
|
if (spacing2 === "none") return 0;
|
|
667
656
|
return SPACING_PX[spacing2];
|
|
668
657
|
}
|
|
669
|
-
function mapIntentToMantine(intent) {
|
|
670
|
-
if (!intent) return void 0;
|
|
671
|
-
switch (intent) {
|
|
672
|
-
case "primary":
|
|
673
|
-
return { color: "blue", variant: "filled" };
|
|
674
|
-
case "secondary":
|
|
675
|
-
return { color: "gray", variant: "light" };
|
|
676
|
-
case "success":
|
|
677
|
-
return { color: "green", variant: "filled" };
|
|
678
|
-
case "warning":
|
|
679
|
-
return { color: "yellow", variant: "filled" };
|
|
680
|
-
case "danger":
|
|
681
|
-
return { color: "red", variant: "filled" };
|
|
682
|
-
case "neutral":
|
|
683
|
-
return { color: "gray", variant: "default" };
|
|
684
|
-
default:
|
|
685
|
-
return void 0;
|
|
686
|
-
}
|
|
687
|
-
}
|
|
688
|
-
function mapIntentToHeroUiButtonVariant(intent) {
|
|
689
|
-
if (!intent) return void 0;
|
|
690
|
-
switch (intent) {
|
|
691
|
-
case "primary":
|
|
692
|
-
return "primary";
|
|
693
|
-
case "secondary":
|
|
694
|
-
return "secondary";
|
|
695
|
-
case "success":
|
|
696
|
-
return "primary";
|
|
697
|
-
case "warning":
|
|
698
|
-
return "primary";
|
|
699
|
-
case "danger":
|
|
700
|
-
return "danger";
|
|
701
|
-
case "neutral":
|
|
702
|
-
return "secondary";
|
|
703
|
-
default:
|
|
704
|
-
return void 0;
|
|
705
|
-
}
|
|
706
|
-
}
|
|
707
|
-
function mapIntentToHeroUiColor(intent) {
|
|
708
|
-
if (!intent) return void 0;
|
|
709
|
-
switch (intent) {
|
|
710
|
-
case "primary":
|
|
711
|
-
return "accent";
|
|
712
|
-
case "secondary":
|
|
713
|
-
return "default";
|
|
714
|
-
case "success":
|
|
715
|
-
return "success";
|
|
716
|
-
case "warning":
|
|
717
|
-
return "warning";
|
|
718
|
-
case "danger":
|
|
719
|
-
return "danger";
|
|
720
|
-
case "neutral":
|
|
721
|
-
return "default";
|
|
722
|
-
default:
|
|
723
|
-
return void 0;
|
|
724
|
-
}
|
|
725
|
-
}
|
|
726
658
|
function mapMantineColorToHeroUiColor(color) {
|
|
727
659
|
if (!color) return void 0;
|
|
728
660
|
switch (color) {
|
|
@@ -870,10 +802,6 @@ function resolveSharedStyleProps(fields) {
|
|
|
870
802
|
if (variant !== void 0) {
|
|
871
803
|
resolved.variant = variant;
|
|
872
804
|
}
|
|
873
|
-
const intent = readString(fields.shared_intent);
|
|
874
|
-
if (intent !== void 0 && SEMANTIC_INTENTS.includes(intent)) {
|
|
875
|
-
resolved.intent = intent;
|
|
876
|
-
}
|
|
877
805
|
const fullWidth = readBool(fields.full_width);
|
|
878
806
|
if (fullWidth !== void 0) {
|
|
879
807
|
resolved.fullWidth = fullWidth;
|
|
@@ -881,12 +809,11 @@ function resolveSharedStyleProps(fields) {
|
|
|
881
809
|
return resolved;
|
|
882
810
|
}
|
|
883
811
|
function toMantineSemanticProps(props) {
|
|
884
|
-
const intent = mapIntentToMantine(props.intent);
|
|
885
812
|
const spacing2 = props.spacing && props.spacing !== "none" ? props.spacing : void 0;
|
|
886
813
|
return {
|
|
887
814
|
size: mapSizeToMantine(props.size),
|
|
888
|
-
color:
|
|
889
|
-
variant:
|
|
815
|
+
color: props.color,
|
|
816
|
+
variant: props.variant,
|
|
890
817
|
radius: mapRadiusToMantine(props.radius),
|
|
891
818
|
spacing: spacing2,
|
|
892
819
|
disabled: hasState(props.states, "disabled") || void 0,
|
|
@@ -897,8 +824,8 @@ function toMantineSemanticProps(props) {
|
|
|
897
824
|
};
|
|
898
825
|
}
|
|
899
826
|
function toHeroUiSemanticProps(props) {
|
|
900
|
-
const buttonVariant = mapMantineVariantToHeroUiButtonVariant(props.variant) ?? mapMantineColorToHeroUiButtonVariant(props.color)
|
|
901
|
-
const color = mapMantineColorToHeroUiColor(props.color)
|
|
827
|
+
const buttonVariant = mapMantineVariantToHeroUiButtonVariant(props.variant) ?? mapMantineColorToHeroUiButtonVariant(props.color);
|
|
828
|
+
const color = mapMantineColorToHeroUiColor(props.color);
|
|
902
829
|
return {
|
|
903
830
|
size: mapSizeToHeroUi(props.size),
|
|
904
831
|
buttonVariant,
|
|
@@ -1628,9 +1555,6 @@ function transformPagesData(pages) {
|
|
|
1628
1555
|
mapAccordionVariantToHeroUiVariant,
|
|
1629
1556
|
mapChipVariantToHeroUiVariant,
|
|
1630
1557
|
mapDividerVariantToReactNative,
|
|
1631
|
-
mapIntentToHeroUiButtonVariant,
|
|
1632
|
-
mapIntentToHeroUiColor,
|
|
1633
|
-
mapIntentToMantine,
|
|
1634
1558
|
mapMantineColorToHeroUiButtonVariant,
|
|
1635
1559
|
mapMantineColorToHeroUiColor,
|
|
1636
1560
|
mapMantineVariantToHeroUiButtonVariant,
|