@recursica/mantine-adapter 0.55.4 → 0.55.5

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 CHANGED
@@ -1,5 +1,12 @@
1
1
  # @recursica/mantine-adapter
2
2
 
3
+ ## 0.55.5
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [70bb1a5]
8
+ - @recursica/adapter-common@0.30.0
9
+
3
10
  ## 0.55.4
4
11
 
5
12
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -2277,6 +2277,16 @@ export declare interface RecursicaFormControlWrapperProps extends RecursicaLabel
2277
2277
  export declare interface RecursicaHeadingProps extends default_2.HTMLAttributes<HTMLHeadingElement> {
2278
2278
  /** Heading ordering hierarchies (1 represents H1, 6 represents H6) */
2279
2279
  order?: 1 | 2 | 3 | 4 | 5 | 6;
2280
+ /**
2281
+ * Semantic text color.
2282
+ * @default "default"
2283
+ */
2284
+ color?: TextColor;
2285
+ /**
2286
+ * Emphasis level of the text.
2287
+ * @default "high"
2288
+ */
2289
+ emphasis?: TextEmphasis;
2280
2290
  /** Heading contents */
2281
2291
  children?: default_2.ReactNode;
2282
2292
  /** Polymorphic component override */
@@ -2426,8 +2436,15 @@ declare interface RecursicaNumberInputProps_2 {
2426
2436
 
2427
2437
  /**
2428
2438
  * A wrapper type that blocks styling overrides unless `overStyled: true` is explicitly provided.
2439
+ *
2440
+ * `Allow` is constrained to `BlockedStylingKeys` so only genuinely-blocked keys can be un-blocked,
2441
+ * and defaults to `never` — `RecursicaOverStyled<T>` is byte-identical to the pre-`Allow` behavior.
2442
+ *
2443
+ * NOTE: this only lifts the *type-level* block. A component un-blocking a key is responsible for
2444
+ * consuming it (destructuring it before `filterStylingProps`, or otherwise handling it) so it does
2445
+ * not leak through the runtime styling filter.
2429
2446
  */
2430
- export declare type RecursicaOverStyled<T> = (Omit<WithRecursicaSpacing<T>, BlockedStylingKeys> & ForbiddenStyles & {
2447
+ export declare type RecursicaOverStyled<T, Allow extends BlockedStylingKeys = never> = (Omit<WithRecursicaSpacing<T>, Exclude<BlockedStylingKeys, Allow>> & Omit<ForbiddenStyles, Allow> & {
2431
2448
  overStyled?: false | undefined;
2432
2449
  }) | (WithRecursicaSpacing<T> & {
2433
2450
  overStyled: true;
@@ -2735,6 +2752,16 @@ declare interface RecursicaTextFieldProps_2 {
2735
2752
  export declare interface RecursicaTextProps {
2736
2753
  /** Visual style variant layout */
2737
2754
  variant?: TextVariant;
2755
+ /**
2756
+ * Semantic text color.
2757
+ * @default "default"
2758
+ */
2759
+ color?: TextColor;
2760
+ /**
2761
+ * Emphasis level of the text.
2762
+ * @default "high"
2763
+ */
2764
+ emphasis?: TextEmphasis;
2738
2765
  /** Children nodes */
2739
2766
  children?: default_2.ReactNode;
2740
2767
  /** Polymorphic component tag override */
@@ -3157,7 +3184,7 @@ declare type TabsTabProps = RecursicaOverStyled<TabsTabProps_2>;
3157
3184
 
3158
3185
  declare const Text_2: (<C = "p">(props: PolymorphicComponentProps<C, rawComponents.TextProps>) => React.ReactElement) & Omit<FunctionComponent<((rawComponents.TextProps & {
3159
3186
  component?: any;
3160
- }) & Omit<Omit<any, "ref">, "className" | "classNames" | "style" | "styles" | "vars" | "p" | "px" | "py" | "pt" | "pb" | "pl" | "pr" | "bg" | "c" | "opacity" | "ff" | "fz" | "fw" | "lts" | "ta" | "lh" | "fs" | "tt" | "td" | "bd" | "w" | "miw" | "maw" | "h" | "mih" | "mah" | "m" | "my" | "mx" | "mt" | "mb" | "ml" | "mr" | "gap" | "rowGap" | "columnGap" | "gutter" | "top" | "left" | "bottom" | "right" | "variant" | "span" | "color" | "children" | "__vars" | "__size" | "hiddenFrom" | "visibleFrom" | "lightHidden" | "darkHidden" | "mod" | "ms" | "me" | "ps" | "pe" | "bdrs" | "bgsz" | "bgp" | "bgr" | "bga" | "pos" | "inset" | "display" | "flex" | "unstyled" | "attributes" | "spacing" | "overStyled" | "inherit" | "inline" | "size" | "__staticSelector" | "component" | "gradient" | "lineClamp" | "truncate"> & {
3187
+ }) & Omit<Omit<any, "ref">, "className" | "classNames" | "style" | "styles" | "vars" | "p" | "px" | "py" | "pt" | "pb" | "pl" | "pr" | "bg" | "c" | "opacity" | "ff" | "fz" | "fw" | "lts" | "ta" | "lh" | "fs" | "tt" | "td" | "bd" | "w" | "miw" | "maw" | "h" | "mih" | "mah" | "m" | "my" | "mx" | "mt" | "mb" | "ml" | "mr" | "gap" | "rowGap" | "columnGap" | "gutter" | "top" | "left" | "bottom" | "right" | "variant" | "span" | "color" | "children" | "__vars" | "__size" | "hiddenFrom" | "visibleFrom" | "lightHidden" | "darkHidden" | "mod" | "ms" | "me" | "ps" | "pe" | "bdrs" | "bgsz" | "bgp" | "bgr" | "bga" | "pos" | "inset" | "display" | "flex" | "unstyled" | "attributes" | "spacing" | "overStyled" | "inherit" | "inline" | "size" | "__staticSelector" | "component" | "gradient" | "lineClamp" | "emphasis" | "truncate"> & {
3161
3188
  ref?: any;
3162
3189
  renderRoot?: (props: any) => any;
3163
3190
  }) | (rawComponents.TextProps & {
@@ -3179,7 +3206,7 @@ export { Text_2 as Text }
3179
3206
  */
3180
3207
  declare const Text_3: (<C = "p">(props: PolymorphicComponentProps<C, TextProps>) => React.ReactElement) & Omit<FunctionComponent<((TextProps & {
3181
3208
  component?: any;
3182
- }) & Omit<Omit<any, "ref">, "className" | "classNames" | "style" | "styles" | "vars" | "p" | "px" | "py" | "pt" | "pb" | "pl" | "pr" | "bg" | "c" | "opacity" | "ff" | "fz" | "fw" | "lts" | "ta" | "lh" | "fs" | "tt" | "td" | "bd" | "w" | "miw" | "maw" | "h" | "mih" | "mah" | "m" | "my" | "mx" | "mt" | "mb" | "ml" | "mr" | "gap" | "rowGap" | "columnGap" | "gutter" | "top" | "left" | "bottom" | "right" | "variant" | "span" | "color" | "children" | "__vars" | "__size" | "hiddenFrom" | "visibleFrom" | "lightHidden" | "darkHidden" | "mod" | "ms" | "me" | "ps" | "pe" | "bdrs" | "bgsz" | "bgp" | "bgr" | "bga" | "pos" | "inset" | "display" | "flex" | "unstyled" | "attributes" | "spacing" | "overStyled" | "inherit" | "inline" | "size" | "__staticSelector" | "component" | "gradient" | "lineClamp" | "truncate"> & {
3209
+ }) & Omit<Omit<any, "ref">, "className" | "classNames" | "style" | "styles" | "vars" | "p" | "px" | "py" | "pt" | "pb" | "pl" | "pr" | "bg" | "c" | "opacity" | "ff" | "fz" | "fw" | "lts" | "ta" | "lh" | "fs" | "tt" | "td" | "bd" | "w" | "miw" | "maw" | "h" | "mih" | "mah" | "m" | "my" | "mx" | "mt" | "mb" | "ml" | "mr" | "gap" | "rowGap" | "columnGap" | "gutter" | "top" | "left" | "bottom" | "right" | "variant" | "span" | "color" | "children" | "__vars" | "__size" | "hiddenFrom" | "visibleFrom" | "lightHidden" | "darkHidden" | "mod" | "ms" | "me" | "ps" | "pe" | "bdrs" | "bgsz" | "bgp" | "bgr" | "bga" | "pos" | "inset" | "display" | "flex" | "unstyled" | "attributes" | "spacing" | "overStyled" | "inherit" | "inline" | "size" | "__staticSelector" | "component" | "gradient" | "lineClamp" | "emphasis" | "truncate"> & {
3183
3210
  ref?: any;
3184
3211
  renderRoot?: (props: any) => any;
3185
3212
  }) | (TextProps & {
@@ -3193,6 +3220,16 @@ declare const TextArea_2: default_2.ForwardRefExoticComponent<TextAreaProps & de
3193
3220
 
3194
3221
  declare type TextAreaProps = RecursicaOverStyled<RecursicaTextAreaProps>;
3195
3222
 
3223
+ /**
3224
+ * Supported semantic color options for text in Recursica.
3225
+ */
3226
+ declare type TextColor = "default" | "warning" | "alert" | "success";
3227
+
3228
+ /**
3229
+ * Supported emphasis levels for text in Recursica.
3230
+ */
3231
+ declare type TextEmphasis = "low" | "high";
3232
+
3196
3233
  export declare const TextField: typeof rawComponents.TextField;
3197
3234
 
3198
3235
  declare const TextField_2: default_2.ForwardRefExoticComponent<TextFieldProps & default_2.RefAttributes<HTMLInputElement>>;
package/package.json CHANGED
@@ -13,7 +13,7 @@
13
13
  "url": "git+https://github.com/borderux/recursica.git",
14
14
  "directory": "packages/mantine-adapter"
15
15
  },
16
- "version": "0.55.4",
16
+ "version": "0.55.5",
17
17
  "type": "module",
18
18
  "main": "./dist/mantine-adapter.cjs",
19
19
  "module": "./dist/mantine-adapter.js",
@@ -103,7 +103,7 @@
103
103
  "vitest": "^3.2.4"
104
104
  },
105
105
  "dependencies": {
106
- "@recursica/adapter-common": "^0.29.1"
106
+ "@recursica/adapter-common": "^0.30.0"
107
107
  },
108
108
  "peerDependencies": {
109
109
  "@mantine/core": "^8.0.0",