@selfhelp/shared 1.14.10 → 1.14.13
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 +83 -0
- package/dist/{common-DVC0R_AX.d.mts → common-DMm4kymA.d.mts} +1 -1
- package/dist/{common-DVC0R_AX.d.ts → common-DMm4kymA.d.ts} +1 -1
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +125 -5
- package/dist/index.mjs +121 -5
- package/dist/plugin-sdk/index.d.mts +2 -2
- package/dist/plugin-sdk/index.d.ts +2 -2
- package/dist/registry/index.d.mts +3 -3
- package/dist/registry/index.d.ts +3 -3
- package/dist/{styles.registry-BkHw6CdG.d.ts → styles.registry-CA6p55GE.d.mts} +45 -44
- package/dist/{styles.registry-CImqMXS4.d.mts → styles.registry-DACrC1dz.d.ts} +45 -44
- package/dist/theme/index.d.mts +42 -2
- package/dist/theme/index.d.ts +42 -2
- package/dist/theme/index.js +50 -0
- package/dist/theme/index.mjs +46 -0
- package/package.json +1 -1
- package/src/cms-classes/__tests__/classify.test.ts +18 -0
- package/src/cms-classes/allow-list.ts +1 -1
- package/src/cms-classes/remap.ts +95 -3
- package/src/theme/__tests__/semantic.test.ts +77 -0
- package/src/theme/semantic.ts +95 -0
- package/src/types/styles/layout.ts +60 -45
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,89 @@ 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.13
|
|
13
|
+
|
|
14
|
+
`css_mobile` Tailwind-class lockstep fix. The web CMS class dropdown
|
|
15
|
+
(`generate-css-classes.js`) offers the **standard Tailwind numeric color scale**
|
|
16
|
+
(`bg-blue-500`, `text-gray-800`, `border-red-500`, …), but Tailwind v4's default
|
|
17
|
+
palette is authored in `oklch()`, which React Native cannot parse — so the mobile
|
|
18
|
+
allow-list only ever accepted the hex-backed Mantine scale (`bg-blue-6`) and
|
|
19
|
+
silently dropped every dropdown color class on mobile. Authors saw colored
|
|
20
|
+
backgrounds on web and nothing on mobile.
|
|
21
|
+
|
|
22
|
+
### Fixed (`cms-classes`)
|
|
23
|
+
|
|
24
|
+
- **Standard Tailwind color scale → Mantine hex scale remap** in
|
|
25
|
+
`src/cms-classes/remap.ts`: `bg-/text-/border-{name}-{50..950}` is now rewritten
|
|
26
|
+
onto the RN-safe Mantine scale (`…-{0..9}`) instead of being dropped. Tailwind-only
|
|
27
|
+
names (`slate`, `purple`, `sky`, `emerald`, `amber`, …) alias to their nearest
|
|
28
|
+
Mantine palette. This is a deliberate, documented web→mobile remap (shade is the
|
|
29
|
+
closest visual match).
|
|
30
|
+
- **`text-white` / `text-black`** are now allow-listed (plain colors, RN-safe).
|
|
31
|
+
- The web dropdown's interactive-state classes (`hover:*`, `focus:ring-*`,
|
|
32
|
+
`focus:outline-none`) are remapped to drop cleanly on mobile instead of warning.
|
|
33
|
+
|
|
34
|
+
Patch bump (additive remap/allow-list; no contract change).
|
|
35
|
+
|
|
36
|
+
## v1.14.12
|
|
37
|
+
|
|
38
|
+
Layout cross-platform pass — the 13 layout styles (`container`, `box`, `flex`,
|
|
39
|
+
`group`, `stack`, `simple-grid`, `grid`, `grid-column`, `space`, `divider`,
|
|
40
|
+
`paper`, `center`, `scroll-area`) are now configurable on mobile, not just web.
|
|
41
|
+
The portable sizing/behaviour props that were trapped under `web_*` were promoted
|
|
42
|
+
to `shared_*` so the same field drives the Mantine (web) and the React-Native
|
|
43
|
+
(mobile) renderer through the semantic mapper. Pairs with backend migration
|
|
44
|
+
`Version20260622063129`. Patch bump (pre-1.0; style contracts are renamed/additive
|
|
45
|
+
but not guaranteed backward compatible).
|
|
46
|
+
|
|
47
|
+
### Changed (style contracts in `types/styles/layout.ts`)
|
|
48
|
+
|
|
49
|
+
- **width/height are cross-platform**: `web_width`/`web_height` → `shared_width`/
|
|
50
|
+
`shared_height` on `flex`, `group`, `stack`, `grid`, `grid-column`, `simple-grid`,
|
|
51
|
+
`center`, and (height only) `scroll-area`, typed `TSharedDimension`.
|
|
52
|
+
- **`grid`/`simple-grid` columns**: `web_cols` → `shared_cols` (`TSharedCols`);
|
|
53
|
+
`simple-grid` gains `shared_gap`, `shared_vertical_spacing`, and the web-only
|
|
54
|
+
responsive overrides `web_cols_sm`/`web_cols_md`/`web_cols_lg`.
|
|
55
|
+
- **`grid-column`**: `web_grid_span|offset|order|grow` → `shared_grid_*`; now
|
|
56
|
+
extends `IStyleWithSpacing`.
|
|
57
|
+
- **`center`**: `web_miw|mih|maw|mah` → `shared_miw|mih|maw|mah`; now extends
|
|
58
|
+
`IStyleWithSpacing`.
|
|
59
|
+
- **`divider`**: `web_divider_variant` → `shared_divider_variant`
|
|
60
|
+
(`TSharedDividerVariant`), `web_divider_label_position` →
|
|
61
|
+
`shared_divider_label_position` (`TSharedDividerLabelPosition`); now extends
|
|
62
|
+
`IStyleWithSpacing`.
|
|
63
|
+
- **`space`**: `web_space_direction` → `shared_orientation`.
|
|
64
|
+
- **`paper`**: `web_border` → `shared_border` (`TSharedBorder`, matches `card`)
|
|
65
|
+
plus a new optional auto-styled `title` content field; `web_px`/`web_py` removed
|
|
66
|
+
(padding is the portable `shared_spacing`).
|
|
67
|
+
- **`container`**: `web_px`/`web_py` removed (padding via `shared_spacing`).
|
|
68
|
+
|
|
69
|
+
### Added (semantic mapper `theme/semantic.ts`)
|
|
70
|
+
|
|
71
|
+
- **`parseDimensionToReactNative`** / **`parseDimensionToWeb`**: turn a CMS
|
|
72
|
+
dimension (`"320px"`/`"100%"`/`"auto"`) into an RN-safe value (a `px` suffix
|
|
73
|
+
becomes a unitless number; web keeps the string verbatim).
|
|
74
|
+
- **`gridSpanToReactNativeColumn`**: convert a Mantine `Grid.Col` span into the RN
|
|
75
|
+
flex layout (`flexBasis`/`flexGrow`/`flexShrink`) for the emulated mobile grid.
|
|
76
|
+
- **`mapDividerVariantToReactNative`**: map `shared_divider_variant` onto an RN
|
|
77
|
+
`borderStyle` (identical vocabulary, validated; defaults to `solid`).
|
|
78
|
+
|
|
79
|
+
## v1.14.11
|
|
80
|
+
|
|
81
|
+
Style polish wave (card) — remove the redundant web-only card padding control.
|
|
82
|
+
`ICardStyle` already extends `IStyleWithSpacing` (`shared_spacing`), whose padding
|
|
83
|
+
side renders on web AND mobile, so the separate `web_card_padding` (Mantine
|
|
84
|
+
`padding` prop) was a duplicate that confused authors. Patch bump: one optional
|
|
85
|
+
field removed from a style contract (pre-1.0, not backward compatible). Pairs with
|
|
86
|
+
backend migration `Version20260619205908` (unlinks the field from `card`; it stays
|
|
87
|
+
on `validate`) and the web `CardStyle` renderer (fixed `padding="md"` default).
|
|
88
|
+
|
|
89
|
+
### Removed
|
|
90
|
+
|
|
91
|
+
- **`ICardStyle.web_card_padding`**: padding is now the portable `shared_spacing`
|
|
92
|
+
(`pt`/`pb`/`ps`/`pe`) field exclusively. The web renderer keeps a fixed Mantine
|
|
93
|
+
inner padding (`"md"`) as the default + Card.Section image-bleed reference.
|
|
94
|
+
|
|
12
95
|
## v1.14.10
|
|
13
96
|
|
|
14
97
|
Style polish wave (mobile) — extend the mobile checkbox adapter contract so the
|
|
@@ -89,4 +89,4 @@ type TMantineGrow = '0' | '1';
|
|
|
89
89
|
type TMantineInline = '0' | '1';
|
|
90
90
|
type TMantineFluid = '0' | '1';
|
|
91
91
|
|
|
92
|
-
export type { TMantineInline as $,
|
|
92
|
+
export type { TMantineInline as $, TMantineAllowNextClicks as A, TMantineAllowStepClick as B, TMantineAspectRatio as C, TMantineAutoContrast as D, TMantineBlock as E, TMantineCenterInline as F, TMantineChecked as G, TMantineChipChecked as H, TMantineChipMultiple as I, TMantineClampBehavior as J, TMantineCodeBlock as K, TMantineColorFormat as L, TMantineColorInputSwatches as M, TMantineColorPickerSwatches as N, TMantineColorPickerSwatchesPerRow as O, TMantineCompact as P, TMantineContainerFluid as Q, TMantineDisabled as R, TMantineFileAccept as S, TMantineColor as T, TMantineFileInputMultiple as U, TMantineFluid as V, TMantineFullWidth as W, TMantineGroupGrow as X, TMantineGroupWrap as Y, TMantineGrow as Z, TMantineHighlight as _, TMantineRadius as a, TMantineIsLink as a0, TMantineKbdSize as a1, TMantineLoading as a2, TMantineMultiple as a3, TMantineNotificationWithCloseButton as a4, TMantineNumberInputDecimalScale as a5, TMantineOpenInNewTab as a6, TMantineProcessing as a7, TMantineRangeSliderMarks as a8, TMantineRatingCount as a9, TMantineRatingFractions as aa, TMantineRatingReadonly as ab, TMantineReadonly as ac, TMantineSpaceHorizontal 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, TMantineSpacing as y, TMantineActionIconLoading as z };
|
|
@@ -89,4 +89,4 @@ type TMantineGrow = '0' | '1';
|
|
|
89
89
|
type TMantineInline = '0' | '1';
|
|
90
90
|
type TMantineFluid = '0' | '1';
|
|
91
91
|
|
|
92
|
-
export type { TMantineInline as $,
|
|
92
|
+
export type { TMantineInline as $, TMantineAllowNextClicks as A, TMantineAllowStepClick as B, TMantineAspectRatio as C, TMantineAutoContrast as D, TMantineBlock as E, TMantineCenterInline as F, TMantineChecked as G, TMantineChipChecked as H, TMantineChipMultiple as I, TMantineClampBehavior as J, TMantineCodeBlock as K, TMantineColorFormat as L, TMantineColorInputSwatches as M, TMantineColorPickerSwatches as N, TMantineColorPickerSwatchesPerRow as O, TMantineCompact as P, TMantineContainerFluid as Q, TMantineDisabled as R, TMantineFileAccept as S, TMantineColor as T, TMantineFileInputMultiple as U, TMantineFluid as V, TMantineFullWidth as W, TMantineGroupGrow as X, TMantineGroupWrap as Y, TMantineGrow as Z, TMantineHighlight as _, TMantineRadius as a, TMantineIsLink as a0, TMantineKbdSize as a1, TMantineLoading as a2, TMantineMultiple as a3, TMantineNotificationWithCloseButton as a4, TMantineNumberInputDecimalScale as a5, TMantineOpenInNewTab as a6, TMantineProcessing as a7, TMantineRangeSliderMarks as a8, TMantineRatingCount as a9, TMantineRatingFractions as aa, TMantineRatingReadonly as ab, TMantineReadonly as ac, TMantineSpaceHorizontal 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, TMantineSpacing as y, TMantineActionIconLoading as z };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { T as TStyleName, j as IContentField } from './styles.registry-
|
|
2
|
-
export { B as BASE_STYLE_REGISTRY, k as IAccordionItemStyle, l as IAccordionStyle, m as IActionIconStyle, n as IAlertStyle, o as IAspectRatioStyle, p as IAudioStyle, q as IAvatarStyle, r as IBackgroundImageStyle, s as IBadgeStyle, t as IBaseStyle, u as IBlockquoteStyle, v as IBoxStyle, w as IButtonStyle, x as ICardSegmentStyle, y as ICardStyle, z as ICarouselStyle, A as ICenterStyle, C as ICheckboxStyle, D as IChipStyle, E as ICodeStyle, F as IColorInputStyle, G as IColorPickerStyle, H as IComboboxStyle, J as IContainerStyle, K as IDataContainerStyle, L as IDatePickerStyle, M as IDividerStyle, N as IEntryListStyle, O as IEntryRecordDeleteStyle, P as IEntryRecordStyle, Q as IFieldsetStyle, R as IFigureStyle, U as IFileInputStyle, V as IFlexStyle, W as IFormLogStyle, X as IFormRecordStyle, Y as IFormStyle, Z as IGridColumnStyle, $ as IGridStyle, a0 as IGroupStyle, a1 as IHighlightStyle, a2 as IHtmlTagStyle, a3 as IImageStyle, a4 as IIndicatorStyle, a5 as IInputStyle, a6 as IKbdStyle, a7 as ILinkStyle, a8 as IListItemStyle, a9 as IListStyle, aa as ILoginStyle, ab as ILoopStyle, ac as IMissingStyle, ad as INoAccessStyle, ae as INotFoundStyle, af as INotificationStyle, ag as INumberInputStyle, ah as IPaperStyle, a as IPluginStyleRegistryEntry, ai as IProfileStyle, aj as IProgressRootStyle, ak as IProgressSectionStyle, al as IProgressStyle, am as IRadioStyle, an as IRangeSliderStyle, ao as IRatingStyle, ap as IRefContainerStyle, aq as IRegisterStyle, ar as IResetPasswordStyle, as as IRichTextEditorStyle, at as IScrollAreaStyle, au as ISegmentedControlStyle, av as ISelectStyle, aw as IShowUserInputEntry, ax as IShowUserInputStyle, ay as ISimpleGridStyle, az as ISliderStyle, aA as ISpaceStyle, aB as ISpoilerStyle, aC as IStackStyle, I as IStyleRegistryEntry, aD as IStyleWithSpacing, aE as ISwitchStyle, aF as ITabStyle, aG as ITabsStyle, aH as ITextInputStyle, aI as ITextStyle, aJ as ITextareaStyle, aK as IThemeIconStyle, aL as ITimelineItemStyle, aM as ITimelineStyle, aN as ITitleStyle, aO as ITwoFactorAuthStyle, aP as ITypographyStyle, aQ as IUnknownStyle, aR as IValidateStyle, aS as IVersionStyle, aT as IVideoStyle, S as STYLE_REGISTRY, c as TConcretePlatform, aU as TMantineAccordionChevronPosition, aV as TMantineAccordionDisableChevronRotation, aW as TMantineAccordionLoop, aX as TMantineAccordionMultiple, aY as TMantineBorder, aZ as TMantineCardPadding, a_ as TMantineCardShadow, a$ as TMantineCols, b0 as TMantineDividerVariant, b1 as TMantineGap, b2 as TMantineGridOffset, b3 as TMantineGridOrder, b4 as TMantineHeight, b5 as TMantineIconSize, b6 as TMantineImageFit, b7 as TMantineLineClamp, b8 as TMantineListCenter, b9 as TMantineListStyleType, ba as TMantineListType, bb as TMantineListWithPadding, bc as TMantinePaperShadow, bd as TMantineProgressTransition, be as TMantineScrollAreaSize, bf as TMantineScrollAreaType, bg as TMantineTextAlign, bh as TMantineTextDecoration, bi as TMantineTextFontStyle, bj as TMantineTextFontWeight, bk as TMantineTextInherit, bl as TMantineTextInputVariant, bm as TMantineTextSpan, bn as TMantineTextTransform, bo as TMantineTextTruncate, bp as TMantineTextVariant, bq as TMantineTextareaAutosize, br as TMantineTextareaResize, bs as TMantineTextareaVariant, bt as TMantineTimelineAlign, bu as TMantineTitleLineClamp, bv as TMantineTitleTextWrap, bw as TMantineTranslatable, bx as TMantineUseInputWrapper, by as TMantineWidth, bz as TSharedBorder, bA as
|
|
3
|
-
export {
|
|
1
|
+
import { T as TStyleName, j as IContentField } from './styles.registry-CA6p55GE.mjs';
|
|
2
|
+
export { B as BASE_STYLE_REGISTRY, k as IAccordionItemStyle, l as IAccordionStyle, m as IActionIconStyle, n as IAlertStyle, o as IAspectRatioStyle, p as IAudioStyle, q as IAvatarStyle, r as IBackgroundImageStyle, s as IBadgeStyle, t as IBaseStyle, u as IBlockquoteStyle, v as IBoxStyle, w as IButtonStyle, x as ICardSegmentStyle, y as ICardStyle, z as ICarouselStyle, A as ICenterStyle, C as ICheckboxStyle, D as IChipStyle, E as ICodeStyle, F as IColorInputStyle, G as IColorPickerStyle, H as IComboboxStyle, J as IContainerStyle, K as IDataContainerStyle, L as IDatePickerStyle, M as IDividerStyle, N as IEntryListStyle, O as IEntryRecordDeleteStyle, P as IEntryRecordStyle, Q as IFieldsetStyle, R as IFigureStyle, U as IFileInputStyle, V as IFlexStyle, W as IFormLogStyle, X as IFormRecordStyle, Y as IFormStyle, Z as IGridColumnStyle, $ as IGridStyle, a0 as IGroupStyle, a1 as IHighlightStyle, a2 as IHtmlTagStyle, a3 as IImageStyle, a4 as IIndicatorStyle, a5 as IInputStyle, a6 as IKbdStyle, a7 as ILinkStyle, a8 as IListItemStyle, a9 as IListStyle, aa as ILoginStyle, ab as ILoopStyle, ac as IMissingStyle, ad as INoAccessStyle, ae as INotFoundStyle, af as INotificationStyle, ag as INumberInputStyle, ah as IPaperStyle, a as IPluginStyleRegistryEntry, ai as IProfileStyle, aj as IProgressRootStyle, ak as IProgressSectionStyle, al as IProgressStyle, am as IRadioStyle, an as IRangeSliderStyle, ao as IRatingStyle, ap as IRefContainerStyle, aq as IRegisterStyle, ar as IResetPasswordStyle, as as IRichTextEditorStyle, at as IScrollAreaStyle, au as ISegmentedControlStyle, av as ISelectStyle, aw as IShowUserInputEntry, ax as IShowUserInputStyle, ay as ISimpleGridStyle, az as ISliderStyle, aA as ISpaceStyle, aB as ISpoilerStyle, aC as IStackStyle, I as IStyleRegistryEntry, aD as IStyleWithSpacing, aE as ISwitchStyle, aF as ITabStyle, aG as ITabsStyle, aH as ITextInputStyle, aI as ITextStyle, aJ as ITextareaStyle, aK as IThemeIconStyle, aL as ITimelineItemStyle, aM as ITimelineStyle, aN as ITitleStyle, aO as ITwoFactorAuthStyle, aP as ITypographyStyle, aQ as IUnknownStyle, aR as IValidateStyle, aS as IVersionStyle, aT as IVideoStyle, S as STYLE_REGISTRY, c as TConcretePlatform, aU as TMantineAccordionChevronPosition, aV as TMantineAccordionDisableChevronRotation, aW as TMantineAccordionLoop, aX as TMantineAccordionMultiple, aY as TMantineBorder, aZ as TMantineCardPadding, a_ as TMantineCardShadow, a$ as TMantineCols, b0 as TMantineDividerVariant, b1 as TMantineGap, b2 as TMantineGridOffset, b3 as TMantineGridOrder, b4 as TMantineHeight, b5 as TMantineIconSize, b6 as TMantineImageFit, b7 as TMantineLineClamp, b8 as TMantineListCenter, b9 as TMantineListStyleType, ba as TMantineListType, bb as TMantineListWithPadding, bc as TMantinePaperShadow, bd as TMantineProgressTransition, be as TMantineScrollAreaSize, bf as TMantineScrollAreaType, bg as TMantineTextAlign, bh as TMantineTextDecoration, bi as TMantineTextFontStyle, bj as TMantineTextFontWeight, bk as TMantineTextInherit, bl as TMantineTextInputVariant, bm as TMantineTextSpan, bn as TMantineTextTransform, bo as TMantineTextTruncate, bp as TMantineTextVariant, bq as TMantineTextareaAutosize, br as TMantineTextareaResize, bs as TMantineTextareaVariant, bt as TMantineTimelineAlign, bu as TMantineTitleLineClamp, bv as TMantineTitleTextWrap, bw as TMantineTranslatable, bx as TMantineUseInputWrapper, by as TMantineWidth, bz as TSharedBorder, bA as TSharedCols, bB as TSharedDimension, bC as TSharedDividerLabelPosition, bD as TSharedDividerVariant, bE as TSharedLabelPosition, bF 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-CA6p55GE.mjs';
|
|
3
|
+
export { v as TMantineAccordionVariant, z as TMantineActionIconLoading, d as TMantineAlign, A as TMantineAllowNextClicks, B as TMantineAllowStepClick, C as TMantineAspectRatio, D as TMantineAutoContrast, r as TMantineAvatarVariant, q as TMantineBadgeVariant, E as TMantineBlock, F as TMantineCenterInline, G as TMantineChecked, H as TMantineChipChecked, I as TMantineChipMultiple, s as TMantineChipVariant, J as TMantineClampBehavior, K as TMantineCodeBlock, T as TMantineColor, L as TMantineColorFormat, M as TMantineColorInputSwatches, N as TMantineColorPickerSwatches, O as TMantineColorPickerSwatchesPerRow, P as TMantineCompact, Q as TMantineContainerFluid, e as TMantineDirection, R as TMantineDisabled, n as TMantineFieldsetVariant, S as TMantineFileAccept, U as TMantineFileInputMultiple, V as TMantineFluid, W as TMantineFullWidth, i as TMantineGridGrow, g as TMantineGridOverflow, h as TMantineGridSpan, X as TMantineGroupGrow, Y as TMantineGroupWrap, Z as TMantineGrow, _ as TMantineHighlight, t as TMantineIndicatorPosition, $ as TMantineInline, a0 as TMantineIsLink, c as TMantineJustify, a1 as TMantineKbdSize, a2 as TMantineLoading, a3 as TMantineMultiple, a4 as TMantineNotificationWithCloseButton, a5 as TMantineNumberInputDecimalScale, a6 as TMantineOpenInNewTab, j as TMantineOrientation, a7 as TMantineProcessing, a as TMantineRadius, a8 as TMantineRangeSliderMarks, a9 as TMantineRatingCount, aa as TMantineRatingFractions, ab as TMantineRatingReadonly, ac as TMantineReadonly, m as TMantineSize, ad as TMantineSpaceHorizontal, y as TMantineSpacing, o as TMantineSpoilerMaxHeight, ae as TMantineSwatches, af as TMantineTabDisabled, w as TMantineTabsVariant, u as TMantineThemeIconVariant, x as TMantineTimelineLineVariant, l as TMantineTitleOrder, ag as TMantineUseMantineStyle, p as TMantineVariant, ah as TMantineWithCloseButton, ai as TMantineWithIcon, f as TMantineWrap, k as TSharedRadius, b as TSharedSize } from './common-DMm4kymA.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, IReactNativeResolvedStyle, IReactNativeThemeScales, IResolvedVariant, ISharedStyleProps, ISpacingResolved, LINE_HEIGHT, RADIUS_PX, SPACING_PX, SPACING_TO_TAILWIND, TCanonicalColor, TCanonicalRadius, TCanonicalSpacing, THeroUiColor, TMantineMappedColor, TMantineMappedVariant, TSemanticColor, TSemanticIntent, TSemanticRadius, TSemanticSize, TSemanticSpacing, TSemanticState, TSemanticVariant, colorToHex, mapAccordionVariantToHeroUiVariant, mapChipVariantToHeroUiVariant, mapIntentToHeroUiButtonVariant, mapIntentToHeroUiColor, mapIntentToMantine, mapMantineColorToHeroUiButtonVariant, mapMantineColorToHeroUiColor, mapMantineVariantToHeroUiButtonVariant, mapRadiusToMantine, mapRadiusToPx, mapSizeToHeroUi, mapSizeToMantine, mapSpacingToPx, radiusToPx, resolveMantineVariant, resolveSharedStyle, resolveSharedStyleForMobile, resolveSharedStyleForWeb, resolveSharedStyleProps, sizeToFontPx, spacingToPx, toHeroUiSemanticProps, toMantineSemanticProps, toReactNativeSemanticStyle } 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, TMantineMappedColor, TMantineMappedVariant, TReactNativeDimension, TSemanticColor, TSemanticIntent, TSemanticRadius, TSemanticSize, TSemanticSpacing, TSemanticState, TSemanticVariant, colorToHex, gridSpanToReactNativeColumn, mapAccordionVariantToHeroUiVariant, mapChipVariantToHeroUiVariant, mapDividerVariantToReactNative, mapIntentToHeroUiButtonVariant, mapIntentToHeroUiColor, mapIntentToMantine, mapMantineColorToHeroUiButtonVariant, mapMantineColorToHeroUiColor, mapMantineVariantToHeroUiButtonVariant, mapRadiusToMantine, mapRadiusToPx, mapSizeToHeroUi, mapSizeToMantine, mapSpacingToPx, parseDimensionToReactNative, parseDimensionToWeb, radiusToPx, resolveMantineVariant, resolveSharedStyle, resolveSharedStyleForMobile, resolveSharedStyleForWeb, resolveSharedStyleProps, sizeToFontPx, spacingToPx, toHeroUiSemanticProps, toMantineSemanticProps, toReactNativeSemanticStyle } from './theme/index.mjs';
|
|
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 } from './styles.registry-
|
|
2
|
-
export { B as BASE_STYLE_REGISTRY, k as IAccordionItemStyle, l as IAccordionStyle, m as IActionIconStyle, n as IAlertStyle, o as IAspectRatioStyle, p as IAudioStyle, q as IAvatarStyle, r as IBackgroundImageStyle, s as IBadgeStyle, t as IBaseStyle, u as IBlockquoteStyle, v as IBoxStyle, w as IButtonStyle, x as ICardSegmentStyle, y as ICardStyle, z as ICarouselStyle, A as ICenterStyle, C as ICheckboxStyle, D as IChipStyle, E as ICodeStyle, F as IColorInputStyle, G as IColorPickerStyle, H as IComboboxStyle, J as IContainerStyle, K as IDataContainerStyle, L as IDatePickerStyle, M as IDividerStyle, N as IEntryListStyle, O as IEntryRecordDeleteStyle, P as IEntryRecordStyle, Q as IFieldsetStyle, R as IFigureStyle, U as IFileInputStyle, V as IFlexStyle, W as IFormLogStyle, X as IFormRecordStyle, Y as IFormStyle, Z as IGridColumnStyle, $ as IGridStyle, a0 as IGroupStyle, a1 as IHighlightStyle, a2 as IHtmlTagStyle, a3 as IImageStyle, a4 as IIndicatorStyle, a5 as IInputStyle, a6 as IKbdStyle, a7 as ILinkStyle, a8 as IListItemStyle, a9 as IListStyle, aa as ILoginStyle, ab as ILoopStyle, ac as IMissingStyle, ad as INoAccessStyle, ae as INotFoundStyle, af as INotificationStyle, ag as INumberInputStyle, ah as IPaperStyle, a as IPluginStyleRegistryEntry, ai as IProfileStyle, aj as IProgressRootStyle, ak as IProgressSectionStyle, al as IProgressStyle, am as IRadioStyle, an as IRangeSliderStyle, ao as IRatingStyle, ap as IRefContainerStyle, aq as IRegisterStyle, ar as IResetPasswordStyle, as as IRichTextEditorStyle, at as IScrollAreaStyle, au as ISegmentedControlStyle, av as ISelectStyle, aw as IShowUserInputEntry, ax as IShowUserInputStyle, ay as ISimpleGridStyle, az as ISliderStyle, aA as ISpaceStyle, aB as ISpoilerStyle, aC as IStackStyle, I as IStyleRegistryEntry, aD as IStyleWithSpacing, aE as ISwitchStyle, aF as ITabStyle, aG as ITabsStyle, aH as ITextInputStyle, aI as ITextStyle, aJ as ITextareaStyle, aK as IThemeIconStyle, aL as ITimelineItemStyle, aM as ITimelineStyle, aN as ITitleStyle, aO as ITwoFactorAuthStyle, aP as ITypographyStyle, aQ as IUnknownStyle, aR as IValidateStyle, aS as IVersionStyle, aT as IVideoStyle, S as STYLE_REGISTRY, c as TConcretePlatform, aU as TMantineAccordionChevronPosition, aV as TMantineAccordionDisableChevronRotation, aW as TMantineAccordionLoop, aX as TMantineAccordionMultiple, aY as TMantineBorder, aZ as TMantineCardPadding, a_ as TMantineCardShadow, a$ as TMantineCols, b0 as TMantineDividerVariant, b1 as TMantineGap, b2 as TMantineGridOffset, b3 as TMantineGridOrder, b4 as TMantineHeight, b5 as TMantineIconSize, b6 as TMantineImageFit, b7 as TMantineLineClamp, b8 as TMantineListCenter, b9 as TMantineListStyleType, ba as TMantineListType, bb as TMantineListWithPadding, bc as TMantinePaperShadow, bd as TMantineProgressTransition, be as TMantineScrollAreaSize, bf as TMantineScrollAreaType, bg as TMantineTextAlign, bh as TMantineTextDecoration, bi as TMantineTextFontStyle, bj as TMantineTextFontWeight, bk as TMantineTextInherit, bl as TMantineTextInputVariant, bm as TMantineTextSpan, bn as TMantineTextTransform, bo as TMantineTextTruncate, bp as TMantineTextVariant, bq as TMantineTextareaAutosize, br as TMantineTextareaResize, bs as TMantineTextareaVariant, bt as TMantineTimelineAlign, bu as TMantineTitleLineClamp, bv as TMantineTitleTextWrap, bw as TMantineTranslatable, bx as TMantineUseInputWrapper, by as TMantineWidth, bz as TSharedBorder, bA as
|
|
3
|
-
export {
|
|
1
|
+
import { T as TStyleName, j as IContentField } from './styles.registry-DACrC1dz.js';
|
|
2
|
+
export { B as BASE_STYLE_REGISTRY, k as IAccordionItemStyle, l as IAccordionStyle, m as IActionIconStyle, n as IAlertStyle, o as IAspectRatioStyle, p as IAudioStyle, q as IAvatarStyle, r as IBackgroundImageStyle, s as IBadgeStyle, t as IBaseStyle, u as IBlockquoteStyle, v as IBoxStyle, w as IButtonStyle, x as ICardSegmentStyle, y as ICardStyle, z as ICarouselStyle, A as ICenterStyle, C as ICheckboxStyle, D as IChipStyle, E as ICodeStyle, F as IColorInputStyle, G as IColorPickerStyle, H as IComboboxStyle, J as IContainerStyle, K as IDataContainerStyle, L as IDatePickerStyle, M as IDividerStyle, N as IEntryListStyle, O as IEntryRecordDeleteStyle, P as IEntryRecordStyle, Q as IFieldsetStyle, R as IFigureStyle, U as IFileInputStyle, V as IFlexStyle, W as IFormLogStyle, X as IFormRecordStyle, Y as IFormStyle, Z as IGridColumnStyle, $ as IGridStyle, a0 as IGroupStyle, a1 as IHighlightStyle, a2 as IHtmlTagStyle, a3 as IImageStyle, a4 as IIndicatorStyle, a5 as IInputStyle, a6 as IKbdStyle, a7 as ILinkStyle, a8 as IListItemStyle, a9 as IListStyle, aa as ILoginStyle, ab as ILoopStyle, ac as IMissingStyle, ad as INoAccessStyle, ae as INotFoundStyle, af as INotificationStyle, ag as INumberInputStyle, ah as IPaperStyle, a as IPluginStyleRegistryEntry, ai as IProfileStyle, aj as IProgressRootStyle, ak as IProgressSectionStyle, al as IProgressStyle, am as IRadioStyle, an as IRangeSliderStyle, ao as IRatingStyle, ap as IRefContainerStyle, aq as IRegisterStyle, ar as IResetPasswordStyle, as as IRichTextEditorStyle, at as IScrollAreaStyle, au as ISegmentedControlStyle, av as ISelectStyle, aw as IShowUserInputEntry, ax as IShowUserInputStyle, ay as ISimpleGridStyle, az as ISliderStyle, aA as ISpaceStyle, aB as ISpoilerStyle, aC as IStackStyle, I as IStyleRegistryEntry, aD as IStyleWithSpacing, aE as ISwitchStyle, aF as ITabStyle, aG as ITabsStyle, aH as ITextInputStyle, aI as ITextStyle, aJ as ITextareaStyle, aK as IThemeIconStyle, aL as ITimelineItemStyle, aM as ITimelineStyle, aN as ITitleStyle, aO as ITwoFactorAuthStyle, aP as ITypographyStyle, aQ as IUnknownStyle, aR as IValidateStyle, aS as IVersionStyle, aT as IVideoStyle, S as STYLE_REGISTRY, c as TConcretePlatform, aU as TMantineAccordionChevronPosition, aV as TMantineAccordionDisableChevronRotation, aW as TMantineAccordionLoop, aX as TMantineAccordionMultiple, aY as TMantineBorder, aZ as TMantineCardPadding, a_ as TMantineCardShadow, a$ as TMantineCols, b0 as TMantineDividerVariant, b1 as TMantineGap, b2 as TMantineGridOffset, b3 as TMantineGridOrder, b4 as TMantineHeight, b5 as TMantineIconSize, b6 as TMantineImageFit, b7 as TMantineLineClamp, b8 as TMantineListCenter, b9 as TMantineListStyleType, ba as TMantineListType, bb as TMantineListWithPadding, bc as TMantinePaperShadow, bd as TMantineProgressTransition, be as TMantineScrollAreaSize, bf as TMantineScrollAreaType, bg as TMantineTextAlign, bh as TMantineTextDecoration, bi as TMantineTextFontStyle, bj as TMantineTextFontWeight, bk as TMantineTextInherit, bl as TMantineTextInputVariant, bm as TMantineTextSpan, bn as TMantineTextTransform, bo as TMantineTextTruncate, bp as TMantineTextVariant, bq as TMantineTextareaAutosize, br as TMantineTextareaResize, bs as TMantineTextareaVariant, bt as TMantineTimelineAlign, bu as TMantineTitleLineClamp, bv as TMantineTitleTextWrap, bw as TMantineTranslatable, bx as TMantineUseInputWrapper, by as TMantineWidth, bz as TSharedBorder, bA as TSharedCols, bB as TSharedDimension, bC as TSharedDividerLabelPosition, bD as TSharedDividerVariant, bE as TSharedLabelPosition, bF 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-DACrC1dz.js';
|
|
3
|
+
export { v as TMantineAccordionVariant, z as TMantineActionIconLoading, d as TMantineAlign, A as TMantineAllowNextClicks, B as TMantineAllowStepClick, C as TMantineAspectRatio, D as TMantineAutoContrast, r as TMantineAvatarVariant, q as TMantineBadgeVariant, E as TMantineBlock, F as TMantineCenterInline, G as TMantineChecked, H as TMantineChipChecked, I as TMantineChipMultiple, s as TMantineChipVariant, J as TMantineClampBehavior, K as TMantineCodeBlock, T as TMantineColor, L as TMantineColorFormat, M as TMantineColorInputSwatches, N as TMantineColorPickerSwatches, O as TMantineColorPickerSwatchesPerRow, P as TMantineCompact, Q as TMantineContainerFluid, e as TMantineDirection, R as TMantineDisabled, n as TMantineFieldsetVariant, S as TMantineFileAccept, U as TMantineFileInputMultiple, V as TMantineFluid, W as TMantineFullWidth, i as TMantineGridGrow, g as TMantineGridOverflow, h as TMantineGridSpan, X as TMantineGroupGrow, Y as TMantineGroupWrap, Z as TMantineGrow, _ as TMantineHighlight, t as TMantineIndicatorPosition, $ as TMantineInline, a0 as TMantineIsLink, c as TMantineJustify, a1 as TMantineKbdSize, a2 as TMantineLoading, a3 as TMantineMultiple, a4 as TMantineNotificationWithCloseButton, a5 as TMantineNumberInputDecimalScale, a6 as TMantineOpenInNewTab, j as TMantineOrientation, a7 as TMantineProcessing, a as TMantineRadius, a8 as TMantineRangeSliderMarks, a9 as TMantineRatingCount, aa as TMantineRatingFractions, ab as TMantineRatingReadonly, ac as TMantineReadonly, m as TMantineSize, ad as TMantineSpaceHorizontal, y as TMantineSpacing, o as TMantineSpoilerMaxHeight, ae as TMantineSwatches, af as TMantineTabDisabled, w as TMantineTabsVariant, u as TMantineThemeIconVariant, x as TMantineTimelineLineVariant, l as TMantineTitleOrder, ag as TMantineUseMantineStyle, p as TMantineVariant, ah as TMantineWithCloseButton, ai as TMantineWithIcon, f as TMantineWrap, k as TSharedRadius, b as TSharedSize } from './common-DMm4kymA.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, IReactNativeResolvedStyle, IReactNativeThemeScales, IResolvedVariant, ISharedStyleProps, ISpacingResolved, LINE_HEIGHT, RADIUS_PX, SPACING_PX, SPACING_TO_TAILWIND, TCanonicalColor, TCanonicalRadius, TCanonicalSpacing, THeroUiColor, TMantineMappedColor, TMantineMappedVariant, TSemanticColor, TSemanticIntent, TSemanticRadius, TSemanticSize, TSemanticSpacing, TSemanticState, TSemanticVariant, colorToHex, mapAccordionVariantToHeroUiVariant, mapChipVariantToHeroUiVariant, mapIntentToHeroUiButtonVariant, mapIntentToHeroUiColor, mapIntentToMantine, mapMantineColorToHeroUiButtonVariant, mapMantineColorToHeroUiColor, mapMantineVariantToHeroUiButtonVariant, mapRadiusToMantine, mapRadiusToPx, mapSizeToHeroUi, mapSizeToMantine, mapSpacingToPx, radiusToPx, resolveMantineVariant, resolveSharedStyle, resolveSharedStyleForMobile, resolveSharedStyleForWeb, resolveSharedStyleProps, sizeToFontPx, spacingToPx, toHeroUiSemanticProps, toMantineSemanticProps, toReactNativeSemanticStyle } 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, TMantineMappedColor, TMantineMappedVariant, TReactNativeDimension, TSemanticColor, TSemanticIntent, TSemanticRadius, TSemanticSize, TSemanticSpacing, TSemanticState, TSemanticVariant, colorToHex, gridSpanToReactNativeColumn, mapAccordionVariantToHeroUiVariant, mapChipVariantToHeroUiVariant, mapDividerVariantToReactNative, mapIntentToHeroUiButtonVariant, mapIntentToHeroUiColor, mapIntentToMantine, mapMantineColorToHeroUiButtonVariant, mapMantineColorToHeroUiColor, mapMantineVariantToHeroUiButtonVariant, mapRadiusToMantine, mapRadiusToPx, mapSizeToHeroUi, mapSizeToMantine, mapSpacingToPx, parseDimensionToReactNative, parseDimensionToWeb, radiusToPx, resolveMantineVariant, resolveSharedStyle, resolveSharedStyleForMobile, resolveSharedStyleForWeb, resolveSharedStyleProps, sizeToFontPx, spacingToPx, toHeroUiSemanticProps, toMantineSemanticProps, toReactNativeSemanticStyle } from './theme/index.js';
|
|
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
|
@@ -71,6 +71,7 @@ __export(index_exports, {
|
|
|
71
71
|
getStylePlacement: () => getStylePlacement,
|
|
72
72
|
getStylePlatforms: () => getStylePlatforms,
|
|
73
73
|
getStylePluginId: () => getStylePluginId,
|
|
74
|
+
gridSpanToReactNativeColumn: () => gridSpanToReactNativeColumn,
|
|
74
75
|
isKnownStyleName: () => isKnownStyleName,
|
|
75
76
|
isRegisteredStyleName: () => isRegisteredStyleName,
|
|
76
77
|
isStyleAllowedOnPage: () => isStyleAllowedOnPage,
|
|
@@ -78,6 +79,7 @@ __export(index_exports, {
|
|
|
78
79
|
isStyleSupportedOnPlatform: () => isStyleSupportedOnPlatform,
|
|
79
80
|
mapAccordionVariantToHeroUiVariant: () => mapAccordionVariantToHeroUiVariant,
|
|
80
81
|
mapChipVariantToHeroUiVariant: () => mapChipVariantToHeroUiVariant,
|
|
82
|
+
mapDividerVariantToReactNative: () => mapDividerVariantToReactNative,
|
|
81
83
|
mapIntentToHeroUiButtonVariant: () => mapIntentToHeroUiButtonVariant,
|
|
82
84
|
mapIntentToHeroUiColor: () => mapIntentToHeroUiColor,
|
|
83
85
|
mapIntentToMantine: () => mapIntentToMantine,
|
|
@@ -89,6 +91,8 @@ __export(index_exports, {
|
|
|
89
91
|
mapSizeToHeroUi: () => mapSizeToHeroUi,
|
|
90
92
|
mapSizeToMantine: () => mapSizeToMantine,
|
|
91
93
|
mapSpacingToPx: () => mapSpacingToPx,
|
|
94
|
+
parseDimensionToReactNative: () => parseDimensionToReactNative,
|
|
95
|
+
parseDimensionToWeb: () => parseDimensionToWeb,
|
|
92
96
|
parseSpacing: () => parseSpacing,
|
|
93
97
|
radiusToPx: () => radiusToPx,
|
|
94
98
|
replaceCalcedValues: () => replaceCalcedValues,
|
|
@@ -790,6 +794,48 @@ function mapChipVariantToHeroUiVariant(variant) {
|
|
|
790
794
|
return "primary";
|
|
791
795
|
}
|
|
792
796
|
}
|
|
797
|
+
function parseDimensionToReactNative(value) {
|
|
798
|
+
if (value === void 0 || value === null) return void 0;
|
|
799
|
+
if (typeof value === "number") return Number.isFinite(value) ? value : void 0;
|
|
800
|
+
const trimmed = value.trim();
|
|
801
|
+
if (trimmed === "") return void 0;
|
|
802
|
+
if (trimmed === "auto") return "auto";
|
|
803
|
+
const pct = /^(\d+(?:\.\d+)?)%$/.exec(trimmed);
|
|
804
|
+
if (pct) {
|
|
805
|
+
const n = Number(pct[1]);
|
|
806
|
+
return `${n}%`;
|
|
807
|
+
}
|
|
808
|
+
const px2 = /^(\d+(?:\.\d+)?)(?:px)?$/.exec(trimmed);
|
|
809
|
+
if (px2) return Number(px2[1]);
|
|
810
|
+
return void 0;
|
|
811
|
+
}
|
|
812
|
+
function parseDimensionToWeb(value) {
|
|
813
|
+
if (value === void 0 || value === null) return void 0;
|
|
814
|
+
if (typeof value === "number") return value;
|
|
815
|
+
const trimmed = value.trim();
|
|
816
|
+
return trimmed === "" ? void 0 : trimmed;
|
|
817
|
+
}
|
|
818
|
+
function gridSpanToReactNativeColumn(span, cols = 12) {
|
|
819
|
+
const totalCols = cols > 0 ? cols : 12;
|
|
820
|
+
if (span === "auto") return { flexBasis: 0, flexGrow: 1, flexShrink: 1 };
|
|
821
|
+
if (span === "content") return { flexBasis: "auto", flexGrow: 0, flexShrink: 0 };
|
|
822
|
+
const n = typeof span === "number" ? span : Number.parseInt(String(span ?? ""), 10);
|
|
823
|
+
if (!Number.isFinite(n) || n <= 0) return { flexBasis: "100%", flexGrow: 0, flexShrink: 1 };
|
|
824
|
+
const clamped = Math.min(n, totalCols);
|
|
825
|
+
const pct = Math.round(clamped / totalCols * 1e4) / 100;
|
|
826
|
+
return { flexBasis: `${pct}%`, flexGrow: 0, flexShrink: 1 };
|
|
827
|
+
}
|
|
828
|
+
function mapDividerVariantToReactNative(variant) {
|
|
829
|
+
switch (variant) {
|
|
830
|
+
case "dashed":
|
|
831
|
+
return "dashed";
|
|
832
|
+
case "dotted":
|
|
833
|
+
return "dotted";
|
|
834
|
+
case "solid":
|
|
835
|
+
default:
|
|
836
|
+
return "solid";
|
|
837
|
+
}
|
|
838
|
+
}
|
|
793
839
|
function hasState(states, state) {
|
|
794
840
|
return !!states && states.includes(state);
|
|
795
841
|
}
|
|
@@ -1089,7 +1135,7 @@ var CLASS_PATTERNS = [
|
|
|
1089
1135
|
{ prefix: "max-w-", values: [...SIZE_VALUES, "full", "fit", "screen", "none"] },
|
|
1090
1136
|
{ prefix: "max-h-", values: [...SIZE_VALUES, "full", "screen", "none"] },
|
|
1091
1137
|
// typography
|
|
1092
|
-
{ prefix: "text-", values: [...SIZE_VALUES, "left", "center", "right", "justify", ...COLOR_SCALE_VALUES] },
|
|
1138
|
+
{ prefix: "text-", values: [...SIZE_VALUES, "left", "center", "right", "justify", "white", "black", ...COLOR_SCALE_VALUES] },
|
|
1093
1139
|
{ prefix: "font-", values: ["thin", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"] },
|
|
1094
1140
|
{ prefix: "leading-", values: ["none", "tight", "snug", "normal", "relaxed", "loose"] },
|
|
1095
1141
|
{ prefix: "tracking-", values: ["tighter", "tight", "normal", "wide", "wider", "widest"] },
|
|
@@ -1160,10 +1206,78 @@ var LITERAL_CLASSES = /* @__PURE__ */ new Set([
|
|
|
1160
1206
|
]);
|
|
1161
1207
|
|
|
1162
1208
|
// src/cms-classes/remap.ts
|
|
1209
|
+
var TW_SCALE_TO_MANTINE = {
|
|
1210
|
+
"50": "0",
|
|
1211
|
+
"100": "1",
|
|
1212
|
+
"200": "2",
|
|
1213
|
+
"300": "3",
|
|
1214
|
+
"400": "4",
|
|
1215
|
+
"500": "6",
|
|
1216
|
+
"600": "7",
|
|
1217
|
+
"700": "8",
|
|
1218
|
+
"800": "9",
|
|
1219
|
+
"900": "9",
|
|
1220
|
+
"950": "9"
|
|
1221
|
+
};
|
|
1222
|
+
var TW_NAME_TO_MANTINE = {
|
|
1223
|
+
slate: "gray",
|
|
1224
|
+
gray: "gray",
|
|
1225
|
+
zinc: "gray",
|
|
1226
|
+
neutral: "gray",
|
|
1227
|
+
stone: "gray",
|
|
1228
|
+
red: "red",
|
|
1229
|
+
rose: "pink",
|
|
1230
|
+
pink: "pink",
|
|
1231
|
+
fuchsia: "grape",
|
|
1232
|
+
purple: "grape",
|
|
1233
|
+
grape: "grape",
|
|
1234
|
+
violet: "violet",
|
|
1235
|
+
indigo: "indigo",
|
|
1236
|
+
blue: "blue",
|
|
1237
|
+
sky: "cyan",
|
|
1238
|
+
cyan: "cyan",
|
|
1239
|
+
teal: "teal",
|
|
1240
|
+
emerald: "green",
|
|
1241
|
+
green: "green",
|
|
1242
|
+
lime: "lime",
|
|
1243
|
+
yellow: "yellow",
|
|
1244
|
+
amber: "orange",
|
|
1245
|
+
orange: "orange"
|
|
1246
|
+
};
|
|
1247
|
+
var COLOR_PREFIXES = ["bg-", "text-", "border-"];
|
|
1248
|
+
function buildColorScaleRemaps() {
|
|
1249
|
+
const out = [];
|
|
1250
|
+
for (const prefix of COLOR_PREFIXES) {
|
|
1251
|
+
for (const [twName, mantineName] of Object.entries(TW_NAME_TO_MANTINE)) {
|
|
1252
|
+
for (const [twScale, idx] of Object.entries(TW_SCALE_TO_MANTINE)) {
|
|
1253
|
+
out.push({
|
|
1254
|
+
from: `${prefix}${twName}-${twScale}`,
|
|
1255
|
+
to: `${prefix}${mantineName}-${idx}`,
|
|
1256
|
+
reason: "tailwind oklch scale \u2192 mantine hex scale (RN-safe)"
|
|
1257
|
+
});
|
|
1258
|
+
}
|
|
1259
|
+
}
|
|
1260
|
+
}
|
|
1261
|
+
return out;
|
|
1262
|
+
}
|
|
1263
|
+
var INTERACTIVE_DROP = [
|
|
1264
|
+
"hover:bg-gray-100",
|
|
1265
|
+
"hover:bg-blue-600",
|
|
1266
|
+
"hover:bg-green-600",
|
|
1267
|
+
"hover:bg-red-600",
|
|
1268
|
+
"hover:text-blue-600",
|
|
1269
|
+
"hover:text-green-600",
|
|
1270
|
+
"hover:text-red-600",
|
|
1271
|
+
"hover:shadow-md",
|
|
1272
|
+
"hover:shadow-lg",
|
|
1273
|
+
"hover:underline",
|
|
1274
|
+
"focus:outline-none",
|
|
1275
|
+
"focus:ring-2",
|
|
1276
|
+
"focus:ring-blue-500",
|
|
1277
|
+
"focus:ring-offset-2"
|
|
1278
|
+
].map((from) => ({ from, to: null, reason: "interactive state not applicable on mobile" }));
|
|
1163
1279
|
var CLASS_REMAP = [
|
|
1164
|
-
|
|
1165
|
-
{ from: "hover:bg-gray-100", to: null, reason: "hover not applicable on mobile" },
|
|
1166
|
-
{ from: "hover:underline", to: null, reason: "hover not applicable on mobile" },
|
|
1280
|
+
...INTERACTIVE_DROP,
|
|
1167
1281
|
// cursor classes are no-ops on RN.
|
|
1168
1282
|
{ from: "cursor-pointer", to: null, reason: "no cursor on RN" },
|
|
1169
1283
|
{ from: "cursor-default", to: null, reason: "no cursor on RN" },
|
|
@@ -1172,7 +1286,9 @@ var CLASS_REMAP = [
|
|
|
1172
1286
|
{ from: "select-text", to: null, reason: "unsupported on RN" },
|
|
1173
1287
|
// legacy aliases
|
|
1174
1288
|
{ from: "mantine-fw", to: "w-full" },
|
|
1175
|
-
{ from: "mantine-h-full", to: "h-full" }
|
|
1289
|
+
{ from: "mantine-h-full", to: "h-full" },
|
|
1290
|
+
// standard Tailwind color scale → Mantine hex scale (RN-safe)
|
|
1291
|
+
...buildColorScaleRemaps()
|
|
1176
1292
|
];
|
|
1177
1293
|
var REMAP_MAP = new Map(CLASS_REMAP.map((r) => [r.from, r]));
|
|
1178
1294
|
function findRemap(className) {
|
|
@@ -1356,6 +1472,7 @@ function transformPagesData(pages) {
|
|
|
1356
1472
|
getStylePlacement,
|
|
1357
1473
|
getStylePlatforms,
|
|
1358
1474
|
getStylePluginId,
|
|
1475
|
+
gridSpanToReactNativeColumn,
|
|
1359
1476
|
isKnownStyleName,
|
|
1360
1477
|
isRegisteredStyleName,
|
|
1361
1478
|
isStyleAllowedOnPage,
|
|
@@ -1363,6 +1480,7 @@ function transformPagesData(pages) {
|
|
|
1363
1480
|
isStyleSupportedOnPlatform,
|
|
1364
1481
|
mapAccordionVariantToHeroUiVariant,
|
|
1365
1482
|
mapChipVariantToHeroUiVariant,
|
|
1483
|
+
mapDividerVariantToReactNative,
|
|
1366
1484
|
mapIntentToHeroUiButtonVariant,
|
|
1367
1485
|
mapIntentToHeroUiColor,
|
|
1368
1486
|
mapIntentToMantine,
|
|
@@ -1374,6 +1492,8 @@ function transformPagesData(pages) {
|
|
|
1374
1492
|
mapSizeToHeroUi,
|
|
1375
1493
|
mapSizeToMantine,
|
|
1376
1494
|
mapSpacingToPx,
|
|
1495
|
+
parseDimensionToReactNative,
|
|
1496
|
+
parseDimensionToWeb,
|
|
1377
1497
|
parseSpacing,
|
|
1378
1498
|
radiusToPx,
|
|
1379
1499
|
replaceCalcedValues,
|
package/dist/index.mjs
CHANGED
|
@@ -674,6 +674,48 @@ function mapChipVariantToHeroUiVariant(variant) {
|
|
|
674
674
|
return "primary";
|
|
675
675
|
}
|
|
676
676
|
}
|
|
677
|
+
function parseDimensionToReactNative(value) {
|
|
678
|
+
if (value === void 0 || value === null) return void 0;
|
|
679
|
+
if (typeof value === "number") return Number.isFinite(value) ? value : void 0;
|
|
680
|
+
const trimmed = value.trim();
|
|
681
|
+
if (trimmed === "") return void 0;
|
|
682
|
+
if (trimmed === "auto") return "auto";
|
|
683
|
+
const pct = /^(\d+(?:\.\d+)?)%$/.exec(trimmed);
|
|
684
|
+
if (pct) {
|
|
685
|
+
const n = Number(pct[1]);
|
|
686
|
+
return `${n}%`;
|
|
687
|
+
}
|
|
688
|
+
const px2 = /^(\d+(?:\.\d+)?)(?:px)?$/.exec(trimmed);
|
|
689
|
+
if (px2) return Number(px2[1]);
|
|
690
|
+
return void 0;
|
|
691
|
+
}
|
|
692
|
+
function parseDimensionToWeb(value) {
|
|
693
|
+
if (value === void 0 || value === null) return void 0;
|
|
694
|
+
if (typeof value === "number") return value;
|
|
695
|
+
const trimmed = value.trim();
|
|
696
|
+
return trimmed === "" ? void 0 : trimmed;
|
|
697
|
+
}
|
|
698
|
+
function gridSpanToReactNativeColumn(span, cols = 12) {
|
|
699
|
+
const totalCols = cols > 0 ? cols : 12;
|
|
700
|
+
if (span === "auto") return { flexBasis: 0, flexGrow: 1, flexShrink: 1 };
|
|
701
|
+
if (span === "content") return { flexBasis: "auto", flexGrow: 0, flexShrink: 0 };
|
|
702
|
+
const n = typeof span === "number" ? span : Number.parseInt(String(span ?? ""), 10);
|
|
703
|
+
if (!Number.isFinite(n) || n <= 0) return { flexBasis: "100%", flexGrow: 0, flexShrink: 1 };
|
|
704
|
+
const clamped = Math.min(n, totalCols);
|
|
705
|
+
const pct = Math.round(clamped / totalCols * 1e4) / 100;
|
|
706
|
+
return { flexBasis: `${pct}%`, flexGrow: 0, flexShrink: 1 };
|
|
707
|
+
}
|
|
708
|
+
function mapDividerVariantToReactNative(variant) {
|
|
709
|
+
switch (variant) {
|
|
710
|
+
case "dashed":
|
|
711
|
+
return "dashed";
|
|
712
|
+
case "dotted":
|
|
713
|
+
return "dotted";
|
|
714
|
+
case "solid":
|
|
715
|
+
default:
|
|
716
|
+
return "solid";
|
|
717
|
+
}
|
|
718
|
+
}
|
|
677
719
|
function hasState(states, state) {
|
|
678
720
|
return !!states && states.includes(state);
|
|
679
721
|
}
|
|
@@ -973,7 +1015,7 @@ var CLASS_PATTERNS = [
|
|
|
973
1015
|
{ prefix: "max-w-", values: [...SIZE_VALUES, "full", "fit", "screen", "none"] },
|
|
974
1016
|
{ prefix: "max-h-", values: [...SIZE_VALUES, "full", "screen", "none"] },
|
|
975
1017
|
// typography
|
|
976
|
-
{ prefix: "text-", values: [...SIZE_VALUES, "left", "center", "right", "justify", ...COLOR_SCALE_VALUES] },
|
|
1018
|
+
{ prefix: "text-", values: [...SIZE_VALUES, "left", "center", "right", "justify", "white", "black", ...COLOR_SCALE_VALUES] },
|
|
977
1019
|
{ prefix: "font-", values: ["thin", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"] },
|
|
978
1020
|
{ prefix: "leading-", values: ["none", "tight", "snug", "normal", "relaxed", "loose"] },
|
|
979
1021
|
{ prefix: "tracking-", values: ["tighter", "tight", "normal", "wide", "wider", "widest"] },
|
|
@@ -1044,10 +1086,78 @@ var LITERAL_CLASSES = /* @__PURE__ */ new Set([
|
|
|
1044
1086
|
]);
|
|
1045
1087
|
|
|
1046
1088
|
// src/cms-classes/remap.ts
|
|
1089
|
+
var TW_SCALE_TO_MANTINE = {
|
|
1090
|
+
"50": "0",
|
|
1091
|
+
"100": "1",
|
|
1092
|
+
"200": "2",
|
|
1093
|
+
"300": "3",
|
|
1094
|
+
"400": "4",
|
|
1095
|
+
"500": "6",
|
|
1096
|
+
"600": "7",
|
|
1097
|
+
"700": "8",
|
|
1098
|
+
"800": "9",
|
|
1099
|
+
"900": "9",
|
|
1100
|
+
"950": "9"
|
|
1101
|
+
};
|
|
1102
|
+
var TW_NAME_TO_MANTINE = {
|
|
1103
|
+
slate: "gray",
|
|
1104
|
+
gray: "gray",
|
|
1105
|
+
zinc: "gray",
|
|
1106
|
+
neutral: "gray",
|
|
1107
|
+
stone: "gray",
|
|
1108
|
+
red: "red",
|
|
1109
|
+
rose: "pink",
|
|
1110
|
+
pink: "pink",
|
|
1111
|
+
fuchsia: "grape",
|
|
1112
|
+
purple: "grape",
|
|
1113
|
+
grape: "grape",
|
|
1114
|
+
violet: "violet",
|
|
1115
|
+
indigo: "indigo",
|
|
1116
|
+
blue: "blue",
|
|
1117
|
+
sky: "cyan",
|
|
1118
|
+
cyan: "cyan",
|
|
1119
|
+
teal: "teal",
|
|
1120
|
+
emerald: "green",
|
|
1121
|
+
green: "green",
|
|
1122
|
+
lime: "lime",
|
|
1123
|
+
yellow: "yellow",
|
|
1124
|
+
amber: "orange",
|
|
1125
|
+
orange: "orange"
|
|
1126
|
+
};
|
|
1127
|
+
var COLOR_PREFIXES = ["bg-", "text-", "border-"];
|
|
1128
|
+
function buildColorScaleRemaps() {
|
|
1129
|
+
const out = [];
|
|
1130
|
+
for (const prefix of COLOR_PREFIXES) {
|
|
1131
|
+
for (const [twName, mantineName] of Object.entries(TW_NAME_TO_MANTINE)) {
|
|
1132
|
+
for (const [twScale, idx] of Object.entries(TW_SCALE_TO_MANTINE)) {
|
|
1133
|
+
out.push({
|
|
1134
|
+
from: `${prefix}${twName}-${twScale}`,
|
|
1135
|
+
to: `${prefix}${mantineName}-${idx}`,
|
|
1136
|
+
reason: "tailwind oklch scale \u2192 mantine hex scale (RN-safe)"
|
|
1137
|
+
});
|
|
1138
|
+
}
|
|
1139
|
+
}
|
|
1140
|
+
}
|
|
1141
|
+
return out;
|
|
1142
|
+
}
|
|
1143
|
+
var INTERACTIVE_DROP = [
|
|
1144
|
+
"hover:bg-gray-100",
|
|
1145
|
+
"hover:bg-blue-600",
|
|
1146
|
+
"hover:bg-green-600",
|
|
1147
|
+
"hover:bg-red-600",
|
|
1148
|
+
"hover:text-blue-600",
|
|
1149
|
+
"hover:text-green-600",
|
|
1150
|
+
"hover:text-red-600",
|
|
1151
|
+
"hover:shadow-md",
|
|
1152
|
+
"hover:shadow-lg",
|
|
1153
|
+
"hover:underline",
|
|
1154
|
+
"focus:outline-none",
|
|
1155
|
+
"focus:ring-2",
|
|
1156
|
+
"focus:ring-blue-500",
|
|
1157
|
+
"focus:ring-offset-2"
|
|
1158
|
+
].map((from) => ({ from, to: null, reason: "interactive state not applicable on mobile" }));
|
|
1047
1159
|
var CLASS_REMAP = [
|
|
1048
|
-
|
|
1049
|
-
{ from: "hover:bg-gray-100", to: null, reason: "hover not applicable on mobile" },
|
|
1050
|
-
{ from: "hover:underline", to: null, reason: "hover not applicable on mobile" },
|
|
1160
|
+
...INTERACTIVE_DROP,
|
|
1051
1161
|
// cursor classes are no-ops on RN.
|
|
1052
1162
|
{ from: "cursor-pointer", to: null, reason: "no cursor on RN" },
|
|
1053
1163
|
{ from: "cursor-default", to: null, reason: "no cursor on RN" },
|
|
@@ -1056,7 +1166,9 @@ var CLASS_REMAP = [
|
|
|
1056
1166
|
{ from: "select-text", to: null, reason: "unsupported on RN" },
|
|
1057
1167
|
// legacy aliases
|
|
1058
1168
|
{ from: "mantine-fw", to: "w-full" },
|
|
1059
|
-
{ from: "mantine-h-full", to: "h-full" }
|
|
1169
|
+
{ from: "mantine-h-full", to: "h-full" },
|
|
1170
|
+
// standard Tailwind color scale → Mantine hex scale (RN-safe)
|
|
1171
|
+
...buildColorScaleRemaps()
|
|
1060
1172
|
];
|
|
1061
1173
|
var REMAP_MAP = new Map(CLASS_REMAP.map((r) => [r.from, r]));
|
|
1062
1174
|
function findRemap(className) {
|
|
@@ -1239,6 +1351,7 @@ export {
|
|
|
1239
1351
|
getStylePlacement,
|
|
1240
1352
|
getStylePlatforms,
|
|
1241
1353
|
getStylePluginId,
|
|
1354
|
+
gridSpanToReactNativeColumn,
|
|
1242
1355
|
isKnownStyleName,
|
|
1243
1356
|
isRegisteredStyleName,
|
|
1244
1357
|
isStyleAllowedOnPage,
|
|
@@ -1246,6 +1359,7 @@ export {
|
|
|
1246
1359
|
isStyleSupportedOnPlatform,
|
|
1247
1360
|
mapAccordionVariantToHeroUiVariant,
|
|
1248
1361
|
mapChipVariantToHeroUiVariant,
|
|
1362
|
+
mapDividerVariantToReactNative,
|
|
1249
1363
|
mapIntentToHeroUiButtonVariant,
|
|
1250
1364
|
mapIntentToHeroUiColor,
|
|
1251
1365
|
mapIntentToMantine,
|
|
@@ -1257,6 +1371,8 @@ export {
|
|
|
1257
1371
|
mapSizeToHeroUi,
|
|
1258
1372
|
mapSizeToMantine,
|
|
1259
1373
|
mapSpacingToPx,
|
|
1374
|
+
parseDimensionToReactNative,
|
|
1375
|
+
parseDimensionToWeb,
|
|
1260
1376
|
parseSpacing,
|
|
1261
1377
|
radiusToPx,
|
|
1262
1378
|
replaceCalcedValues,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { I as IPluginManifest, a as IPluginManifestAdminPage, b as IPluginManifestApiRoute, c as IPluginManifestAsset, d as IPluginManifestCapability, e as IPluginManifestCompatibility, f as IPluginManifestConflict, g as IPluginManifestDataAccess, h as IPluginManifestDependency, i as IPluginManifestExternalHost, j as IPluginManifestFeatureFlag, k as IPluginManifestHealth, l as IPluginManifestLookupExtension, m as IPluginManifestMobile, n as IPluginManifestPermission, o as IPluginManifestRealtimeTopic, p as IPluginManifestScheduledJob, q as IPluginManifestSecurity, r as IPluginManifestStyle, s as IPluginManifestTrustLevel } from '../manifest-C8sBTLJb.mjs';
|
|
2
|
-
import { I as IStyleRegistryEntry } from '../styles.registry-
|
|
3
|
-
import '../common-
|
|
2
|
+
import { I as IStyleRegistryEntry } from '../styles.registry-CA6p55GE.mjs';
|
|
3
|
+
import '../common-DMm4kymA.mjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* SDK contract version. Plugins declare which API they target in
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { I as IPluginManifest, a as IPluginManifestAdminPage, b as IPluginManifestApiRoute, c as IPluginManifestAsset, d as IPluginManifestCapability, e as IPluginManifestCompatibility, f as IPluginManifestConflict, g as IPluginManifestDataAccess, h as IPluginManifestDependency, i as IPluginManifestExternalHost, j as IPluginManifestFeatureFlag, k as IPluginManifestHealth, l as IPluginManifestLookupExtension, m as IPluginManifestMobile, n as IPluginManifestPermission, o as IPluginManifestRealtimeTopic, p as IPluginManifestScheduledJob, q as IPluginManifestSecurity, r as IPluginManifestStyle, s as IPluginManifestTrustLevel } from '../manifest-C8sBTLJb.js';
|
|
2
|
-
import { I as IStyleRegistryEntry } from '../styles.registry-
|
|
3
|
-
import '../common-
|
|
2
|
+
import { I as IStyleRegistryEntry } from '../styles.registry-DACrC1dz.js';
|
|
3
|
+
import '../common-DMm4kymA.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* SDK contract version. Plugins declare which API they target in
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { T as TStyleName, I as IStyleRegistryEntry, a as IPluginStyleRegistryEntry, b as TStylePlacement, c as TConcretePlatform, d as TStylePlatform } from '../styles.registry-
|
|
2
|
-
export { B as BASE_STYLE_REGISTRY, S as STYLE_REGISTRY, e as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, f as _resetPluginStyleRegistry, g as extendStyleRegistry, h as getMergedStyleRegistry, i as getPluginStyleRegistry } from '../styles.registry-
|
|
3
|
-
import '../common-
|
|
1
|
+
import { T as TStyleName, I as IStyleRegistryEntry, a as IPluginStyleRegistryEntry, b as TStylePlacement, c as TConcretePlatform, d as TStylePlatform } from '../styles.registry-CA6p55GE.mjs';
|
|
2
|
+
export { B as BASE_STYLE_REGISTRY, S as STYLE_REGISTRY, e as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, f as _resetPluginStyleRegistry, g as extendStyleRegistry, h as getMergedStyleRegistry, i as getPluginStyleRegistry } from '../styles.registry-CA6p55GE.mjs';
|
|
3
|
+
import '../common-DMm4kymA.mjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Open style-name type: a core `TStyleName` literal OR any plugin style
|
package/dist/registry/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { T as TStyleName, I as IStyleRegistryEntry, a as IPluginStyleRegistryEntry, b as TStylePlacement, c as TConcretePlatform, d as TStylePlatform } from '../styles.registry-
|
|
2
|
-
export { B as BASE_STYLE_REGISTRY, S as STYLE_REGISTRY, e as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, f as _resetPluginStyleRegistry, g as extendStyleRegistry, h as getMergedStyleRegistry, i as getPluginStyleRegistry } from '../styles.registry-
|
|
3
|
-
import '../common-
|
|
1
|
+
import { T as TStyleName, I as IStyleRegistryEntry, a as IPluginStyleRegistryEntry, b as TStylePlacement, c as TConcretePlatform, d as TStylePlatform } from '../styles.registry-DACrC1dz.js';
|
|
2
|
+
export { B as BASE_STYLE_REGISTRY, S as STYLE_REGISTRY, e as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, f as _resetPluginStyleRegistry, g as extendStyleRegistry, h as getMergedStyleRegistry, i as getPluginStyleRegistry } from '../styles.registry-DACrC1dz.js';
|
|
3
|
+
import '../common-DMm4kymA.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Open style-name type: a core `TStyleName` literal OR any plugin style
|