@recursica/mantine-adapter 0.26.0 → 0.27.0
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 +17 -0
- package/dist/mantine-adapter.cjs +1 -1
- package/dist/mantine-adapter.cjs.map +1 -1
- package/dist/mantine-adapter.css +1 -1
- package/dist/mantine-adapter.js +1289 -1254
- package/dist/mantine-adapter.js.map +1 -1
- package/dist/src/components/Accordion/Accordion.d.ts +3 -4
- package/dist/src/components/AutoComplete/AutoComplete.d.ts +4 -6
- package/dist/src/components/Avatar/Avatar.d.ts +2 -3
- package/dist/src/components/Badge/Badge.d.ts +1 -1
- package/dist/src/components/Button/Button.d.ts +1 -1
- package/dist/src/components/Card/Card.d.ts +10 -2
- package/dist/src/components/Checkbox/CheckboxGroup.d.ts +2 -6
- package/dist/src/components/Container/Container.d.ts +14 -2
- package/dist/src/components/DatePicker/DatePicker.d.ts +1 -5
- package/dist/src/components/Dropdown/Dropdown.d.ts +1 -1
- package/dist/src/components/Flex/Flex.d.ts +26 -3
- package/dist/src/components/FormControlWrapper/FormControlWrapper.d.ts +1 -0
- package/dist/src/components/Group/Group.d.ts +14 -2
- package/dist/src/components/Link/Link.d.ts +3 -4
- package/dist/src/components/Menu/Menu.d.ts +2 -2
- package/dist/src/components/Panel/Panel.d.ts +6 -4
- package/dist/src/components/Radio/RadioGroup.d.ts +2 -6
- package/dist/src/components/Slider/Slider.d.ts +1 -5
- package/dist/src/components/Stack/Stack.d.ts +27 -4
- package/dist/src/components/Stepper/Stepper.d.ts +4 -2
- package/dist/src/components/Switch/SwitchGroup.d.ts +2 -6
- package/dist/src/components/Table/Table.d.ts +16 -3
- package/dist/src/components/Tabs/Tabs.d.ts +4 -2
- package/dist/src/components/Text/Text.d.ts +3 -2
- package/dist/src/components/TextArea/TextArea.d.ts +1 -1
- package/dist/src/components/TextField/TextField.d.ts +1 -5
- package/dist/src/components/Title/Title.d.ts +2 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/utils/filterStylingProps.d.ts +1 -1
- package/package.json +2 -2
- package/src/components/Accordion/Accordion.tsx +1 -1
- package/src/components/AutoComplete/AutoComplete.tsx +13 -4
- package/src/components/Avatar/Avatar.tsx +1 -1
- package/src/components/Card/CARD_IMPLEMENTATION_NOTES.md +7 -0
- package/src/components/Card/Card.module.css +1 -0
- package/src/components/Card/Card.tsx +25 -1
- package/src/components/Checkbox/CheckboxGroup.tsx +6 -3
- package/src/components/Container/Container.tsx +4 -2
- package/src/components/DatePicker/DatePicker.tsx +1 -3
- package/src/components/Dropdown/Dropdown.tsx +4 -11
- package/src/components/Flex/Flex.tsx +7 -2
- package/src/components/FormControlWrapper/FormControlWrapper.tsx +1 -0
- package/src/components/Group/Group.tsx +7 -2
- package/src/components/Link/Link.tsx +3 -3
- package/src/components/Panel/PANEL_IMPLEMENTATION_NOTES.md +3 -3
- package/src/components/Panel/Panel.stories.tsx +8 -8
- package/src/components/Panel/Panel.tsx +11 -4
- package/src/components/Radio/RadioGroup.tsx +6 -3
- package/src/components/ReadOnlyField/ReadOnlyField.tsx +5 -1
- package/src/components/Stack/Stack.tsx +7 -2
- package/src/components/Stepper/Stepper.tsx +5 -1
- package/src/components/Switch/SwitchGroup.tsx +6 -3
- package/src/components/Table/Table.module.css +7 -0
- package/src/components/Table/Table.stories.tsx +33 -3
- package/src/components/Table/Table.tsx +56 -5
- package/src/components/Tabs/Tabs.tsx +5 -1
- package/src/components/Text/Text.tsx +3 -1
- package/src/components/TextArea/TextArea.tsx +2 -9
- package/src/components/Title/Title.tsx +3 -1
- package/src/index.ts +14 -0
- package/src/utils/filterStylingProps.ts +1 -0
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { AccordionProps as MantineAccordionProps, AccordionItemProps, AccordionControlProps, AccordionPanelProps } from '@mantine/core';
|
|
3
2
|
import { RecursicaOverStyled } from '../../utils/filterStylingProps';
|
|
4
3
|
import { RecursicaAccordionProps, RecursicaAccordionItemProps, RecursicaAccordionControlProps } from '@recursica/adapter-common';
|
|
@@ -8,11 +7,11 @@ declare const AccordionBase: {
|
|
|
8
7
|
displayName: string;
|
|
9
8
|
};
|
|
10
9
|
export type AccordionItemWrapperProps = RecursicaOverStyled<AccordionItemProps & RecursicaAccordionItemProps>;
|
|
11
|
-
export declare const AccordionItem:
|
|
10
|
+
export declare const AccordionItem: import('react').ForwardRefExoticComponent<AccordionItemWrapperProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
12
11
|
export type AccordionControlWrapperProps = RecursicaOverStyled<AccordionControlProps & RecursicaAccordionControlProps>;
|
|
13
|
-
export declare const AccordionControl:
|
|
12
|
+
export declare const AccordionControl: import('react').ForwardRefExoticComponent<AccordionControlWrapperProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
14
13
|
export type AccordionPanelWrapperProps = RecursicaOverStyled<AccordionPanelProps>;
|
|
15
|
-
export declare const AccordionPanel:
|
|
14
|
+
export declare const AccordionPanel: import('react').ForwardRefExoticComponent<AccordionPanelWrapperProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
16
15
|
type AccordionComponent = typeof AccordionBase & {
|
|
17
16
|
Item: typeof AccordionItem;
|
|
18
17
|
Control: typeof AccordionControl;
|
|
@@ -3,11 +3,9 @@ import { AutocompleteProps as MantineAutocompleteProps, InputWrapperProps } from
|
|
|
3
3
|
import { ReadOnlyControlProps, RecursicaAutocompleteProps as BaseRecursicaAutocompleteProps } from '@recursica/adapter-common';
|
|
4
4
|
import { RecursicaOverStyled } from '../../utils/filterStylingProps';
|
|
5
5
|
import { RecursicaFormControlWrapperProps } from '../FormControlWrapper/FormControlWrapper';
|
|
6
|
-
export interface RecursicaAutoCompleteProps extends Omit<MantineAutocompleteProps, "size" | "variant" | "radius" | "wrapperProps">, Pick<InputWrapperProps, "label" | "error" | "required" | "withAsterisk" | "id">, Omit<RecursicaFormControlWrapperProps, "controlMaxWidth" | "controlMinWidth">, ReadOnlyControlProps, BaseRecursicaAutocompleteProps {
|
|
6
|
+
export interface RecursicaAutoCompleteProps extends Omit<MantineAutocompleteProps, "size" | "variant" | "radius" | "wrapperProps" | "data" | "defaultValue" | "value">, Pick<InputWrapperProps, "label" | "error" | "required" | "withAsterisk" | "id">, Omit<RecursicaFormControlWrapperProps, "controlMaxWidth" | "controlMinWidth">, ReadOnlyControlProps, BaseRecursicaAutocompleteProps {
|
|
7
|
+
/** Current input value */
|
|
8
|
+
value?: string;
|
|
7
9
|
}
|
|
8
10
|
export type AutoCompleteProps = RecursicaOverStyled<RecursicaAutoCompleteProps>;
|
|
9
|
-
export declare const AutoComplete: React.ForwardRefExoticComponent<
|
|
10
|
-
overStyled?: false | undefined;
|
|
11
|
-
}, "ref"> | Omit<RecursicaAutoCompleteProps & {
|
|
12
|
-
overStyled: true;
|
|
13
|
-
}, "ref">) & React.RefAttributes<HTMLInputElement>>;
|
|
11
|
+
export declare const AutoComplete: React.ForwardRefExoticComponent<AutoCompleteProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { AvatarProps as MantineAvatarProps } from '@mantine/core';
|
|
3
2
|
import { RecursicaOverStyled } from '../../utils/filterStylingProps';
|
|
4
3
|
import { RecursicaAvatarProps } from '@recursica/adapter-common';
|
|
@@ -8,9 +7,9 @@ export type AvatarProps = RecursicaOverStyled<Omit<MantineAvatarProps, "variant"
|
|
|
8
7
|
*
|
|
9
8
|
* Supports polymorphism via the `component` prop or `renderRoot` for custom element rendering.
|
|
10
9
|
*/
|
|
11
|
-
export declare const Avatar: (<C = "div">(props: import('@mantine/core').PolymorphicComponentProps<C, AvatarProps>) => React.ReactElement) & Omit<
|
|
10
|
+
export declare const Avatar: (<C = "div">(props: import('@mantine/core').PolymorphicComponentProps<C, AvatarProps>) => React.ReactElement) & Omit<import('react').FunctionComponent<((AvatarProps & {
|
|
12
11
|
component?: any;
|
|
13
|
-
}) & 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" | "top" | "left" | "bottom" | "right" | "variant" | "children" | "__vars" | "__size" | "hiddenFrom" | "visibleFrom" | "lightHidden" | "darkHidden" | "mod" | "ms" | "me" | "ps" | "pe" | "bdrs" | "bgsz" | "bgp" | "bgr" | "bga" | "pos" | "inset" | "display" | "flex" | "unstyled" | "attributes" | "overStyled" | "name" | "icon" | "size" | "component" | "alt" | "src" | "gradient" | "imageProps" | "autoContrast" | "allowedInitialsColors"> & {
|
|
12
|
+
}) & 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" | "top" | "left" | "bottom" | "right" | "variant" | "children" | "__vars" | "__size" | "hiddenFrom" | "visibleFrom" | "lightHidden" | "darkHidden" | "mod" | "ms" | "me" | "ps" | "pe" | "bdrs" | "bgsz" | "bgp" | "bgr" | "bga" | "pos" | "inset" | "display" | "flex" | "unstyled" | "attributes" | "overStyled" | "name" | "icon" | "size" | "component" | "alt" | "src" | "gradient" | "imageProps" | "autoContrast" | "allowedInitialsColors"> & {
|
|
14
13
|
ref?: any;
|
|
15
14
|
renderRoot?: (props: any) => any;
|
|
16
15
|
}) | (AvatarProps & {
|
|
@@ -9,7 +9,7 @@ export type BadgeProps = RecursicaOverStyled<Omit<MantineBadgeProps, "variant" |
|
|
|
9
9
|
*/
|
|
10
10
|
export declare const Badge: (<C = "div">(props: import('@mantine/core').PolymorphicComponentProps<C, BadgeProps>) => React.ReactElement) & Omit<import('react').FunctionComponent<((BadgeProps & {
|
|
11
11
|
component?: any;
|
|
12
|
-
}) & 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" | "top" | "left" | "bottom" | "right" | "variant" | "circle" | "children" | "__vars" | "__size" | "hiddenFrom" | "visibleFrom" | "lightHidden" | "darkHidden" | "mod" | "ms" | "me" | "ps" | "pe" | "bdrs" | "bgsz" | "bgp" | "bgr" | "bga" | "pos" | "inset" | "display" | "flex" | "unstyled" | "attributes" | "overStyled" | "component" | "leftSection" | "rightSection" | "gradient" | "autoContrast" | "fullWidth"> & {
|
|
12
|
+
}) & 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" | "top" | "left" | "bottom" | "right" | "variant" | "circle" | "children" | "__vars" | "__size" | "hiddenFrom" | "visibleFrom" | "lightHidden" | "darkHidden" | "mod" | "ms" | "me" | "ps" | "pe" | "bdrs" | "bgsz" | "bgp" | "bgr" | "bga" | "pos" | "inset" | "display" | "flex" | "unstyled" | "attributes" | "overStyled" | "component" | "leftSection" | "rightSection" | "gradient" | "autoContrast" | "fullWidth"> & {
|
|
13
13
|
ref?: any;
|
|
14
14
|
renderRoot?: (props: any) => any;
|
|
15
15
|
}) | (BadgeProps & {
|
|
@@ -21,7 +21,7 @@ export type ButtonProps = RecursicaOverStyled<Omit<MantineButtonProps, "variant"
|
|
|
21
21
|
*/
|
|
22
22
|
export declare const Button: (<C = "button">(props: import('@mantine/core').PolymorphicComponentProps<C, ButtonProps>) => React.ReactElement) & Omit<React.FunctionComponent<((ButtonProps & {
|
|
23
23
|
component?: any;
|
|
24
|
-
}) & 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" | "top" | "left" | "bottom" | "right" | "variant" | "color" | "children" | "radius" | "__vars" | "__size" | "hiddenFrom" | "visibleFrom" | "lightHidden" | "darkHidden" | "mod" | "ms" | "me" | "ps" | "pe" | "bdrs" | "bgsz" | "bgp" | "bgr" | "bga" | "pos" | "inset" | "display" | "flex" | "unstyled" | "attributes" | "overStyled" | "disabled" | "icon" | "justify" | "size" | "component" | "rightSection" | "data-disabled" | "gradient" | "autoContrast" | "loading" | "loaderProps" | "loaderVariant" | "loaderSize" | "useRecursicaLoader"> & {
|
|
24
|
+
}) & 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" | "top" | "left" | "bottom" | "right" | "variant" | "color" | "children" | "radius" | "__vars" | "__size" | "hiddenFrom" | "visibleFrom" | "lightHidden" | "darkHidden" | "mod" | "ms" | "me" | "ps" | "pe" | "bdrs" | "bgsz" | "bgp" | "bgr" | "bga" | "pos" | "inset" | "display" | "flex" | "unstyled" | "attributes" | "overStyled" | "disabled" | "icon" | "justify" | "size" | "component" | "rightSection" | "data-disabled" | "gradient" | "autoContrast" | "loading" | "loaderProps" | "loaderVariant" | "loaderSize" | "useRecursicaLoader"> & {
|
|
25
25
|
ref?: any;
|
|
26
26
|
renderRoot?: (props: any) => any;
|
|
27
27
|
}) | (ButtonProps & {
|
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
import { CardProps as MantineCardProps, CardSectionProps as MantineCardSectionProps } from '@mantine/core';
|
|
2
2
|
import { RecursicaOverStyled } from '../../utils/filterStylingProps';
|
|
3
3
|
import { RecursicaCardProps, RecursicaCardSectionProps } from '@recursica/adapter-common';
|
|
4
|
-
export type CardProps = RecursicaOverStyled<MantineCardProps & RecursicaCardProps
|
|
4
|
+
export type CardProps = RecursicaOverStyled<MantineCardProps & RecursicaCardProps> & {
|
|
5
|
+
flex?: string | number;
|
|
6
|
+
flexGrow?: string | number;
|
|
7
|
+
flexShrink?: string | number;
|
|
8
|
+
flexBasis?: string | number;
|
|
9
|
+
grow?: string | number;
|
|
10
|
+
h?: string | number;
|
|
11
|
+
height?: string | number;
|
|
12
|
+
};
|
|
5
13
|
export type CardSectionProps = RecursicaOverStyled<MantineCardSectionProps & RecursicaCardSectionProps>;
|
|
6
14
|
/**
|
|
7
15
|
* A generalized edge-to-edge structural wrapper native to Mantine. Strips typical boundary padding via negative margins to allow content (like maps or header images) to touch the border seamlessly.
|
|
@@ -30,7 +38,7 @@ export declare const CardContent: import('react').ForwardRefExoticComponent<Card
|
|
|
30
38
|
*/
|
|
31
39
|
declare const PolymorphicCard: (<C = "div">(props: import('@mantine/core').PolymorphicComponentProps<C, CardProps>) => React.ReactElement) & Omit<import('react').FunctionComponent<((CardProps & {
|
|
32
40
|
component?: any;
|
|
33
|
-
}) & 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" | "shadow" | "w" | "miw" | "maw" | "h" | "mih" | "mah" | "m" | "my" | "mx" | "mt" | "mb" | "ml" | "mr" | "top" | "left" | "bottom" | "right" | "variant" | "children" | "radius" | "__vars" | "__size" | "hiddenFrom" | "visibleFrom" | "lightHidden" | "darkHidden" | "mod" | "ms" | "me" | "ps" | "pe" | "bdrs" | "bgsz" | "bgp" | "bgr" | "bga" | "pos" | "inset" | "display" | "flex" | "unstyled" | "attributes" | "overStyled" | "component" | "padding" | "withBorder"> & {
|
|
41
|
+
}) & 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" | "shadow" | "w" | "miw" | "maw" | "h" | "mih" | "mah" | "m" | "my" | "mx" | "mt" | "mb" | "ml" | "mr" | "gap" | "rowGap" | "columnGap" | "top" | "left" | "bottom" | "right" | "variant" | "children" | "radius" | "__vars" | "__size" | "hiddenFrom" | "visibleFrom" | "lightHidden" | "darkHidden" | "mod" | "ms" | "me" | "ps" | "pe" | "bdrs" | "bgsz" | "bgp" | "bgr" | "bga" | "pos" | "inset" | "display" | "flex" | "unstyled" | "attributes" | "overStyled" | "height" | "component" | "padding" | "withBorder" | "flexGrow" | "flexShrink" | "flexBasis" | "grow"> & {
|
|
34
42
|
ref?: any;
|
|
35
43
|
renderRoot?: (props: any) => any;
|
|
36
44
|
}) | (CardProps & {
|
|
@@ -3,11 +3,7 @@ import { CheckboxGroupProps as MantineCheckboxGroupProps } from '@mantine/core';
|
|
|
3
3
|
import { ReadOnlyControlProps, RecursicaCheckboxGroupProps as BaseRecursicaCheckboxGroupProps } from '@recursica/adapter-common';
|
|
4
4
|
import { RecursicaOverStyled } from '../../utils/filterStylingProps';
|
|
5
5
|
import { RecursicaFormControlWrapperProps } from '../FormControlWrapper/FormControlWrapper';
|
|
6
|
-
export interface RecursicaCheckboxGroupProps extends Omit<MantineCheckboxGroupProps, "size" | "labelProps">, Omit<RecursicaFormControlWrapperProps, "controlMaxWidth" | "controlMinWidth">, ReadOnlyControlProps, BaseRecursicaCheckboxGroupProps {
|
|
6
|
+
export interface RecursicaCheckboxGroupProps extends Omit<MantineCheckboxGroupProps, "size" | "labelProps" | "defaultValue" | "value" | "onChange">, Omit<RecursicaFormControlWrapperProps, "controlMaxWidth" | "controlMinWidth">, ReadOnlyControlProps, BaseRecursicaCheckboxGroupProps {
|
|
7
7
|
}
|
|
8
8
|
export type CheckboxGroupProps = RecursicaOverStyled<RecursicaCheckboxGroupProps>;
|
|
9
|
-
export declare const CheckboxGroup: React.ForwardRefExoticComponent<
|
|
10
|
-
overStyled?: false | undefined;
|
|
11
|
-
}, "ref"> | Omit<RecursicaCheckboxGroupProps & {
|
|
12
|
-
overStyled: true;
|
|
13
|
-
}, "ref">) & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
export declare const CheckboxGroup: React.ForwardRefExoticComponent<CheckboxGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ContainerProps as MantineContainerProps } from '@mantine/core';
|
|
2
|
+
import { WithRecursicaSpacing } from '../../utils/filterStylingProps';
|
|
2
3
|
import { RecursicaContainerProps } from '@recursica/adapter-common';
|
|
3
4
|
/**
|
|
4
5
|
* Container layout wrapper.
|
|
@@ -7,5 +8,16 @@ import { RecursicaContainerProps } from '@recursica/adapter-common';
|
|
|
7
8
|
* DO NOT use the `RecursicaOverStyled` gatekeeper. Developers must be able to freely pass
|
|
8
9
|
* width, height, padding, margins, and flexbox alignment props to construct structural layouts.
|
|
9
10
|
*/
|
|
10
|
-
export type ContainerProps = Omit<MantineContainerProps, "size"> & RecursicaContainerProps
|
|
11
|
-
export declare const Container: import('react').ForwardRefExoticComponent<Omit<MantineContainerProps, "size"> & RecursicaContainerProps &
|
|
11
|
+
export type ContainerProps = WithRecursicaSpacing<Omit<MantineContainerProps, "size"> & RecursicaContainerProps>;
|
|
12
|
+
export declare const Container: import('react').ForwardRefExoticComponent<Omit<Omit<MantineContainerProps, "size"> & RecursicaContainerProps, "m" | "my" | "mx" | "mt" | "mb" | "ml" | "mr" | "gap" | "rowGap" | "columnGap"> & {
|
|
13
|
+
m?: string | number | import('@recursica/adapter-common').RecursicaSpacing;
|
|
14
|
+
mx?: string | number | import('@recursica/adapter-common').RecursicaSpacing;
|
|
15
|
+
my?: string | number | import('@recursica/adapter-common').RecursicaSpacing;
|
|
16
|
+
mt?: string | number | import('@recursica/adapter-common').RecursicaSpacing;
|
|
17
|
+
mb?: string | number | import('@recursica/adapter-common').RecursicaSpacing;
|
|
18
|
+
ml?: string | number | import('@recursica/adapter-common').RecursicaSpacing;
|
|
19
|
+
mr?: string | number | import('@recursica/adapter-common').RecursicaSpacing;
|
|
20
|
+
gap?: string | number | import('@recursica/adapter-common').RecursicaSpacing;
|
|
21
|
+
rowGap?: string | number | import('@recursica/adapter-common').RecursicaSpacing;
|
|
22
|
+
columnGap?: string | number | import('@recursica/adapter-common').RecursicaSpacing;
|
|
23
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -6,8 +6,4 @@ import { RecursicaFormControlWrapperProps } from '../FormControlWrapper/FormCont
|
|
|
6
6
|
export interface RecursicaDatePickerProps extends Omit<DatePickerInputProps, "size" | "variant" | "radius" | "wrapperProps" | "label" | "error" | "required" | "withAsterisk" | "id" | "description">, Pick<DatePickerInputProps, "label" | "error" | "required" | "withAsterisk" | "id">, Omit<RecursicaFormControlWrapperProps, "controlMaxWidth" | "controlMinWidth">, ReadOnlyControlProps, BaseRecursicaDatePickerProps {
|
|
7
7
|
}
|
|
8
8
|
export type DatePickerProps = RecursicaOverStyled<RecursicaDatePickerProps>;
|
|
9
|
-
export declare const DatePicker: React.ForwardRefExoticComponent<
|
|
10
|
-
overStyled?: false | undefined;
|
|
11
|
-
}, "ref"> | Omit<RecursicaDatePickerProps & {
|
|
12
|
-
overStyled: true;
|
|
13
|
-
}, "ref">) & React.RefAttributes<HTMLInputElement>>;
|
|
9
|
+
export declare const DatePicker: React.ForwardRefExoticComponent<DatePickerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -3,7 +3,7 @@ import { SelectProps as MantineSelectProps } from '@mantine/core';
|
|
|
3
3
|
import { ReadOnlyControlProps, RecursicaDropdownProps as BaseRecursicaDropdownProps } from '@recursica/adapter-common';
|
|
4
4
|
import { RecursicaOverStyled } from '../../utils/filterStylingProps';
|
|
5
5
|
import { RecursicaFormControlWrapperProps } from '../FormControlWrapper/FormControlWrapper';
|
|
6
|
-
export interface RecursicaDropdownProps extends Omit<MantineSelectProps, "size" | "variant" | "radius" | "wrapperProps"
|
|
6
|
+
export interface RecursicaDropdownProps extends Omit<MantineSelectProps, "size" | "variant" | "radius" | "wrapperProps" | "data">, Omit<RecursicaFormControlWrapperProps, "controlMaxWidth" | "controlMinWidth">, ReadOnlyControlProps, BaseRecursicaDropdownProps {
|
|
7
7
|
}
|
|
8
8
|
export type DropdownProps = RecursicaOverStyled<RecursicaDropdownProps>;
|
|
9
9
|
export declare const Dropdown: React.ForwardRefExoticComponent<DropdownProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { FlexProps as MantineFlexProps } from '@mantine/core';
|
|
2
|
+
import { WithRecursicaSpacing } from '../../utils/filterStylingProps';
|
|
2
3
|
import { RecursicaFlexProps } from '@recursica/adapter-common';
|
|
3
4
|
/**
|
|
4
5
|
* Flex layout wrapper.
|
|
@@ -7,7 +8,7 @@ import { RecursicaFlexProps } from '@recursica/adapter-common';
|
|
|
7
8
|
* DO NOT use the `RecursicaOverStyled` gatekeeper. Developers must be able to freely pass
|
|
8
9
|
* width, height, padding, margins, and flexbox alignment props to construct structural layouts.
|
|
9
10
|
*/
|
|
10
|
-
export type FlexProps = MantineFlexProps & RecursicaFlexProps
|
|
11
|
+
export type FlexProps = WithRecursicaSpacing<MantineFlexProps & RecursicaFlexProps>;
|
|
11
12
|
/**
|
|
12
13
|
* Recursica Flex layout wrapper.
|
|
13
14
|
*
|
|
@@ -18,12 +19,34 @@ export type FlexProps = MantineFlexProps & RecursicaFlexProps;
|
|
|
18
19
|
* <Flex component="section">...</Flex>
|
|
19
20
|
* ```
|
|
20
21
|
*/
|
|
21
|
-
export declare const Flex: (<C = "div">(props: import('@mantine/core').PolymorphicComponentProps<C, FlexProps>) => React.ReactElement) & Omit<import('react').FunctionComponent<(MantineFlexProps & RecursicaFlexProps & {
|
|
22
|
+
export declare const Flex: (<C = "div">(props: import('@mantine/core').PolymorphicComponentProps<C, FlexProps>) => React.ReactElement) & Omit<import('react').FunctionComponent<(Omit<MantineFlexProps & RecursicaFlexProps, "m" | "my" | "mx" | "mt" | "mb" | "ml" | "mr" | "gap" | "rowGap" | "columnGap"> & {
|
|
23
|
+
m?: string | number | import('@recursica/adapter-common').RecursicaSpacing;
|
|
24
|
+
mx?: string | number | import('@recursica/adapter-common').RecursicaSpacing;
|
|
25
|
+
my?: string | number | import('@recursica/adapter-common').RecursicaSpacing;
|
|
26
|
+
mt?: string | number | import('@recursica/adapter-common').RecursicaSpacing;
|
|
27
|
+
mb?: string | number | import('@recursica/adapter-common').RecursicaSpacing;
|
|
28
|
+
ml?: string | number | import('@recursica/adapter-common').RecursicaSpacing;
|
|
29
|
+
mr?: string | number | import('@recursica/adapter-common').RecursicaSpacing;
|
|
30
|
+
gap?: string | number | import('@recursica/adapter-common').RecursicaSpacing;
|
|
31
|
+
rowGap?: string | number | import('@recursica/adapter-common').RecursicaSpacing;
|
|
32
|
+
columnGap?: string | number | import('@recursica/adapter-common').RecursicaSpacing;
|
|
33
|
+
} & {
|
|
22
34
|
component?: any;
|
|
23
35
|
} & 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" | "top" | "left" | "bottom" | "right" | "key" | "defaultValue" | "onChange" | "variant" | "slot" | "title" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "popover" | "popoverTargetAction" | "popoverTarget" | "inert" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onScrollEnd" | "onScrollEndCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onToggle" | "onBeforeToggle" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture" | "__vars" | "__size" | "hiddenFrom" | "visibleFrom" | "lightHidden" | "darkHidden" | "mod" | "ms" | "me" | "ps" | "pe" | "bdrs" | "bgsz" | "bgp" | "bgr" | "bga" | "pos" | "inset" | "display" | "flex" | "unstyled" | "attributes" | "justify" | "component" | "wrap" | "align" | "direction"> & {
|
|
24
36
|
ref?: any;
|
|
25
37
|
renderRoot?: (props: any) => any;
|
|
26
|
-
}) | (MantineFlexProps & RecursicaFlexProps & {
|
|
38
|
+
}) | (Omit<MantineFlexProps & RecursicaFlexProps, "m" | "my" | "mx" | "mt" | "mb" | "ml" | "mr" | "gap" | "rowGap" | "columnGap"> & {
|
|
39
|
+
m?: string | number | import('@recursica/adapter-common').RecursicaSpacing;
|
|
40
|
+
mx?: string | number | import('@recursica/adapter-common').RecursicaSpacing;
|
|
41
|
+
my?: string | number | import('@recursica/adapter-common').RecursicaSpacing;
|
|
42
|
+
mt?: string | number | import('@recursica/adapter-common').RecursicaSpacing;
|
|
43
|
+
mb?: string | number | import('@recursica/adapter-common').RecursicaSpacing;
|
|
44
|
+
ml?: string | number | import('@recursica/adapter-common').RecursicaSpacing;
|
|
45
|
+
mr?: string | number | import('@recursica/adapter-common').RecursicaSpacing;
|
|
46
|
+
gap?: string | number | import('@recursica/adapter-common').RecursicaSpacing;
|
|
47
|
+
rowGap?: string | number | import('@recursica/adapter-common').RecursicaSpacing;
|
|
48
|
+
columnGap?: string | number | import('@recursica/adapter-common').RecursicaSpacing;
|
|
49
|
+
} & {
|
|
27
50
|
component: React.ElementType;
|
|
28
51
|
renderRoot?: (props: Record<string, any>) => any;
|
|
29
52
|
})>, never> & Record<string, never>;
|
|
@@ -2,5 +2,6 @@ import { default as React } from 'react';
|
|
|
2
2
|
import { InputWrapperProps } from '@mantine/core';
|
|
3
3
|
import { RecursicaOverStyled } from '../../utils/filterStylingProps';
|
|
4
4
|
import { RecursicaFormControlWrapperProps } from '@recursica/adapter-common';
|
|
5
|
+
export type { RecursicaFormControlWrapperProps };
|
|
5
6
|
export type FormControlWrapperProps = RecursicaOverStyled<Omit<InputWrapperProps, "labelProps" | "inputWrapperOrder"> & RecursicaFormControlWrapperProps>;
|
|
6
7
|
export declare const FormControlWrapper: React.ForwardRefExoticComponent<FormControlWrapperProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { GroupProps as MantineGroupProps } from '@mantine/core';
|
|
2
|
+
import { WithRecursicaSpacing } from '../../utils/filterStylingProps';
|
|
2
3
|
import { RecursicaGroupProps } from '@recursica/adapter-common';
|
|
3
4
|
/**
|
|
4
5
|
* Group flex layout wrapper.
|
|
@@ -7,5 +8,16 @@ import { RecursicaGroupProps } from '@recursica/adapter-common';
|
|
|
7
8
|
* DO NOT use the `RecursicaOverStyled` gatekeeper. Developers must be able to freely pass
|
|
8
9
|
* width, height, padding, margins, and flexbox alignment props to construct structural layouts.
|
|
9
10
|
*/
|
|
10
|
-
export type GroupProps = MantineGroupProps & RecursicaGroupProps
|
|
11
|
-
export declare const Group: import('react').ForwardRefExoticComponent<MantineGroupProps & RecursicaGroupProps &
|
|
11
|
+
export type GroupProps = WithRecursicaSpacing<MantineGroupProps & RecursicaGroupProps>;
|
|
12
|
+
export declare const Group: import('react').ForwardRefExoticComponent<Omit<MantineGroupProps & RecursicaGroupProps, "m" | "my" | "mx" | "mt" | "mb" | "ml" | "mr" | "gap" | "rowGap" | "columnGap"> & {
|
|
13
|
+
m?: string | number | import('@recursica/adapter-common').RecursicaSpacing;
|
|
14
|
+
mx?: string | number | import('@recursica/adapter-common').RecursicaSpacing;
|
|
15
|
+
my?: string | number | import('@recursica/adapter-common').RecursicaSpacing;
|
|
16
|
+
mt?: string | number | import('@recursica/adapter-common').RecursicaSpacing;
|
|
17
|
+
mb?: string | number | import('@recursica/adapter-common').RecursicaSpacing;
|
|
18
|
+
ml?: string | number | import('@recursica/adapter-common').RecursicaSpacing;
|
|
19
|
+
mr?: string | number | import('@recursica/adapter-common').RecursicaSpacing;
|
|
20
|
+
gap?: string | number | import('@recursica/adapter-common').RecursicaSpacing;
|
|
21
|
+
rowGap?: string | number | import('@recursica/adapter-common').RecursicaSpacing;
|
|
22
|
+
columnGap?: string | number | import('@recursica/adapter-common').RecursicaSpacing;
|
|
23
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { AnchorProps as MantineAnchorProps } from '@mantine/core';
|
|
3
2
|
import { RecursicaOverStyled } from '../../utils/filterStylingProps';
|
|
4
3
|
import { RecursicaLinkProps } from '@recursica/adapter-common';
|
|
5
|
-
export type LinkProps = RecursicaOverStyled<Omit<MantineAnchorProps, "underline"> & RecursicaLinkProps
|
|
4
|
+
export type LinkProps = RecursicaOverStyled<Omit<MantineAnchorProps, "underline"> & Omit<RecursicaLinkProps, "component">>;
|
|
6
5
|
/**
|
|
7
6
|
* Recursica Link component wrapping Mantine's Anchor.
|
|
8
7
|
*
|
|
@@ -13,9 +12,9 @@ export type LinkProps = RecursicaOverStyled<Omit<MantineAnchorProps, "underline"
|
|
|
13
12
|
* <Link renderRoot={(props) => <RouterLink to="/home" {...props} />}>Home</Link>
|
|
14
13
|
* ```
|
|
15
14
|
*/
|
|
16
|
-
export declare const Link: (<C = "a">(props: import('@mantine/core').PolymorphicComponentProps<C, LinkProps>) => React.ReactElement) & Omit<
|
|
15
|
+
export declare const Link: (<C = "a">(props: import('@mantine/core').PolymorphicComponentProps<C, LinkProps>) => React.ReactElement) & Omit<import('react').FunctionComponent<((LinkProps & {
|
|
17
16
|
component?: any;
|
|
18
|
-
}) & 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" | "top" | "left" | "bottom" | "right" | "variant" | "color" | "children" | "__vars" | "__size" | "hiddenFrom" | "visibleFrom" | "lightHidden" | "darkHidden" | "mod" | "ms" | "me" | "ps" | "pe" | "bdrs" | "bgsz" | "bgp" | "bgr" | "bga" | "pos" | "inset" | "display" | "flex" | "unstyled" | "attributes" | "overStyled" | "icon" | "inherit" | "inline" | "size" | "__staticSelector" | "component" | "gradient" | "lineClamp" | "truncate"> & {
|
|
17
|
+
}) & 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" | "top" | "left" | "bottom" | "right" | "variant" | "color" | "children" | "__vars" | "__size" | "hiddenFrom" | "visibleFrom" | "lightHidden" | "darkHidden" | "mod" | "ms" | "me" | "ps" | "pe" | "bdrs" | "bgsz" | "bgp" | "bgr" | "bga" | "pos" | "inset" | "display" | "flex" | "unstyled" | "attributes" | "overStyled" | "icon" | "inherit" | "inline" | "size" | "__staticSelector" | "component" | "gradient" | "lineClamp" | "truncate"> & {
|
|
19
18
|
ref?: any;
|
|
20
19
|
renderRoot?: (props: any) => any;
|
|
21
20
|
}) | (LinkProps & {
|
|
@@ -52,7 +52,7 @@ export type MenuItemProps = RecursicaOverStyled<Omit<MantineMenuItemProps, "colo
|
|
|
52
52
|
*/
|
|
53
53
|
declare const MenuItem: (<C = "button">(props: import('@mantine/core').PolymorphicComponentProps<C, MenuItemProps>) => React.ReactElement) & Omit<import('react').FunctionComponent<((MenuItemProps & {
|
|
54
54
|
component?: any;
|
|
55
|
-
}) & 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" | "top" | "left" | "bottom" | "right" | "variant" | "children" | "__vars" | "__size" | "hiddenFrom" | "visibleFrom" | "lightHidden" | "darkHidden" | "mod" | "ms" | "me" | "ps" | "pe" | "bdrs" | "bgsz" | "bgp" | "bgr" | "bga" | "pos" | "inset" | "display" | "flex" | "overStyled" | "disabled" | "component" | "leftSection" | "rightSection" | "data-disabled" | "closeMenuOnClick"> & {
|
|
55
|
+
}) & 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" | "top" | "left" | "bottom" | "right" | "variant" | "children" | "__vars" | "__size" | "hiddenFrom" | "visibleFrom" | "lightHidden" | "darkHidden" | "mod" | "ms" | "me" | "ps" | "pe" | "bdrs" | "bgsz" | "bgp" | "bgr" | "bga" | "pos" | "inset" | "display" | "flex" | "overStyled" | "disabled" | "component" | "leftSection" | "rightSection" | "data-disabled" | "closeMenuOnClick"> & {
|
|
56
56
|
ref?: any;
|
|
57
57
|
renderRoot?: (props: any) => any;
|
|
58
58
|
}) | (MenuItemProps & {
|
|
@@ -89,7 +89,7 @@ export type MenuSubItemProps = RecursicaOverStyled<Omit<MantineMenuItemProps, "c
|
|
|
89
89
|
*/
|
|
90
90
|
declare const MenuSubItem: (<C = "button">(props: import('@mantine/core').PolymorphicComponentProps<C, MenuSubItemProps>) => React.ReactElement) & Omit<import('react').FunctionComponent<((MenuSubItemProps & {
|
|
91
91
|
component?: any;
|
|
92
|
-
}) & 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" | "top" | "left" | "bottom" | "right" | "variant" | "children" | "__vars" | "__size" | "hiddenFrom" | "visibleFrom" | "lightHidden" | "darkHidden" | "mod" | "ms" | "me" | "ps" | "pe" | "bdrs" | "bgsz" | "bgp" | "bgr" | "bga" | "pos" | "inset" | "display" | "flex" | "overStyled" | "disabled" | "component" | "leftSection" | "rightSection" | "data-disabled" | "closeMenuOnClick"> & {
|
|
92
|
+
}) & 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" | "top" | "left" | "bottom" | "right" | "variant" | "children" | "__vars" | "__size" | "hiddenFrom" | "visibleFrom" | "lightHidden" | "darkHidden" | "mod" | "ms" | "me" | "ps" | "pe" | "bdrs" | "bgsz" | "bgp" | "bgr" | "bga" | "pos" | "inset" | "display" | "flex" | "overStyled" | "disabled" | "component" | "leftSection" | "rightSection" | "data-disabled" | "closeMenuOnClick"> & {
|
|
93
93
|
ref?: any;
|
|
94
94
|
renderRoot?: (props: any) => any;
|
|
95
95
|
}) | (MenuSubItemProps & {
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { Drawer as MantineDrawer } from '@mantine/core';
|
|
1
|
+
import { Drawer as MantineDrawer, DrawerProps as MantineDrawerProps } from '@mantine/core';
|
|
2
2
|
import { RecursicaOverStyled } from '../../utils/filterStylingProps';
|
|
3
|
-
import { RecursicaPanelProps } from '@recursica/adapter-common';
|
|
3
|
+
import { RecursicaPanelProps as BaseRecursicaPanelProps } from '@recursica/adapter-common';
|
|
4
4
|
/**
|
|
5
5
|
* Recursica Panel root props. Extends Mantine Drawer.
|
|
6
6
|
*/
|
|
7
|
+
export interface RecursicaPanelProps extends Omit<MantineDrawerProps, "size" | "styles" | "classNames" | "style" | "position">, BaseRecursicaPanelProps {
|
|
8
|
+
}
|
|
7
9
|
export type PanelProps = RecursicaOverStyled<RecursicaPanelProps>;
|
|
8
10
|
/**
|
|
9
11
|
* Recursica Panel component wrapping Mantine's Drawer.
|
|
@@ -14,7 +16,7 @@ export type PanelProps = RecursicaOverStyled<RecursicaPanelProps>;
|
|
|
14
16
|
* cluttering the main interface.
|
|
15
17
|
*
|
|
16
18
|
* ```tsx
|
|
17
|
-
* <Panel opened={opened} onClose={close} title="Panel Title"
|
|
19
|
+
* <Panel opened={opened} onClose={close} title="Panel Title" placement="right">
|
|
18
20
|
* <Panel.Body>
|
|
19
21
|
* Content goes here
|
|
20
22
|
* </Panel.Body>
|
|
@@ -32,7 +34,7 @@ export type PanelProps = RecursicaOverStyled<RecursicaPanelProps>;
|
|
|
32
34
|
* - `Panel.Stack` — Stacked drawer context
|
|
33
35
|
*/
|
|
34
36
|
declare const PanelBase: {
|
|
35
|
-
({ overStyled,
|
|
37
|
+
({ overStyled, placement, keepMounted, wrapHeaderText, ...rest }: PanelProps): import("react/jsx-runtime").JSX.Element;
|
|
36
38
|
displayName: string;
|
|
37
39
|
};
|
|
38
40
|
export type PanelFooterProps = RecursicaOverStyled<React.HTMLAttributes<HTMLDivElement>>;
|
|
@@ -3,11 +3,7 @@ import { RadioGroupProps as MantineRadioGroupProps } from '@mantine/core';
|
|
|
3
3
|
import { ReadOnlyControlProps, RecursicaRadioGroupProps as BaseRecursicaRadioGroupProps } from '@recursica/adapter-common';
|
|
4
4
|
import { RecursicaOverStyled } from '../../utils/filterStylingProps';
|
|
5
5
|
import { RecursicaFormControlWrapperProps } from '../FormControlWrapper/FormControlWrapper';
|
|
6
|
-
export interface RecursicaRadioGroupProps extends Omit<MantineRadioGroupProps, "size" | "labelProps">, Omit<RecursicaFormControlWrapperProps, "controlMaxWidth" | "controlMinWidth">, ReadOnlyControlProps, BaseRecursicaRadioGroupProps {
|
|
6
|
+
export interface RecursicaRadioGroupProps extends Omit<MantineRadioGroupProps, "size" | "labelProps" | "defaultValue" | "value" | "onChange">, Omit<RecursicaFormControlWrapperProps, "controlMaxWidth" | "controlMinWidth">, ReadOnlyControlProps, BaseRecursicaRadioGroupProps {
|
|
7
7
|
}
|
|
8
8
|
export type RadioGroupProps = RecursicaOverStyled<RecursicaRadioGroupProps>;
|
|
9
|
-
export declare const RadioGroup: React.ForwardRefExoticComponent<
|
|
10
|
-
overStyled?: false | undefined;
|
|
11
|
-
}, "ref"> | Omit<RecursicaRadioGroupProps & {
|
|
12
|
-
overStyled: true;
|
|
13
|
-
}, "ref">) & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
export declare const RadioGroup: React.ForwardRefExoticComponent<RadioGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -12,8 +12,4 @@ export type SliderProps = RecursicaOverStyled<RecursicaSliderProps>;
|
|
|
12
12
|
* Implements a bidirectional text input field next to the slider track, responsive layouts,
|
|
13
13
|
* custom typography-bound min/max labels, an optional leading icon, and an explicit read-only layout.
|
|
14
14
|
*/
|
|
15
|
-
export declare const Slider: React.ForwardRefExoticComponent<
|
|
16
|
-
overStyled?: false | undefined;
|
|
17
|
-
}, "ref"> | Omit<RecursicaSliderProps & {
|
|
18
|
-
overStyled: true;
|
|
19
|
-
}, "ref">) & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
+
export declare const Slider: React.ForwardRefExoticComponent<SliderProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { StackProps as MantineStackProps } from '@mantine/core';
|
|
2
|
+
import { WithRecursicaSpacing } from '../../utils/filterStylingProps';
|
|
2
3
|
import { RecursicaStackProps } from '@recursica/adapter-common';
|
|
3
4
|
/**
|
|
4
5
|
* Stack flex layout wrapper.
|
|
@@ -7,13 +8,35 @@ import { RecursicaStackProps } from '@recursica/adapter-common';
|
|
|
7
8
|
* DO NOT use the `RecursicaOverStyled` gatekeeper. Developers must be able to freely pass
|
|
8
9
|
* width, height, padding, margins, and flexbox alignment props to construct structural layouts.
|
|
9
10
|
*/
|
|
10
|
-
export type StackProps = MantineStackProps & RecursicaStackProps
|
|
11
|
-
export declare const Stack: (<C = "div">(props: import('@mantine/core').PolymorphicComponentProps<C, StackProps>) => React.ReactElement) & Omit<import('react').FunctionComponent<(MantineStackProps & RecursicaStackProps & {
|
|
11
|
+
export type StackProps = WithRecursicaSpacing<MantineStackProps & RecursicaStackProps>;
|
|
12
|
+
export declare const Stack: (<C = "div">(props: import('@mantine/core').PolymorphicComponentProps<C, StackProps>) => React.ReactElement) & Omit<import('react').FunctionComponent<(Omit<MantineStackProps & RecursicaStackProps, "m" | "my" | "mx" | "mt" | "mb" | "ml" | "mr" | "gap" | "rowGap" | "columnGap"> & {
|
|
13
|
+
m?: string | number | import('@recursica/adapter-common').RecursicaSpacing;
|
|
14
|
+
mx?: string | number | import('@recursica/adapter-common').RecursicaSpacing;
|
|
15
|
+
my?: string | number | import('@recursica/adapter-common').RecursicaSpacing;
|
|
16
|
+
mt?: string | number | import('@recursica/adapter-common').RecursicaSpacing;
|
|
17
|
+
mb?: string | number | import('@recursica/adapter-common').RecursicaSpacing;
|
|
18
|
+
ml?: string | number | import('@recursica/adapter-common').RecursicaSpacing;
|
|
19
|
+
mr?: string | number | import('@recursica/adapter-common').RecursicaSpacing;
|
|
20
|
+
gap?: string | number | import('@recursica/adapter-common').RecursicaSpacing;
|
|
21
|
+
rowGap?: string | number | import('@recursica/adapter-common').RecursicaSpacing;
|
|
22
|
+
columnGap?: string | number | import('@recursica/adapter-common').RecursicaSpacing;
|
|
23
|
+
} & {
|
|
12
24
|
component?: any;
|
|
13
|
-
} & 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" | "top" | "left" | "bottom" | "right" | "key" | "defaultValue" | "onChange" | "variant" | "slot" | "title" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "popover" | "popoverTargetAction" | "popoverTarget" | "inert" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onScrollEnd" | "onScrollEndCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onToggle" | "onBeforeToggle" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture" | "__vars" | "__size" | "hiddenFrom" | "visibleFrom" | "lightHidden" | "darkHidden" | "mod" | "ms" | "me" | "ps" | "pe" | "bdrs" | "bgsz" | "bgp" | "bgr" | "bga" | "pos" | "inset" | "display" | "flex" | "unstyled" | "attributes" | "justify" | "component" | "align"> & {
|
|
25
|
+
} & 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" | "top" | "left" | "bottom" | "right" | "key" | "defaultValue" | "onChange" | "variant" | "slot" | "title" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "popover" | "popoverTargetAction" | "popoverTarget" | "inert" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onScrollEnd" | "onScrollEndCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onToggle" | "onBeforeToggle" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture" | "__vars" | "__size" | "hiddenFrom" | "visibleFrom" | "lightHidden" | "darkHidden" | "mod" | "ms" | "me" | "ps" | "pe" | "bdrs" | "bgsz" | "bgp" | "bgr" | "bga" | "pos" | "inset" | "display" | "flex" | "unstyled" | "attributes" | "justify" | "component" | "align"> & {
|
|
14
26
|
ref?: any;
|
|
15
27
|
renderRoot?: (props: any) => any;
|
|
16
|
-
}) | (MantineStackProps & RecursicaStackProps & {
|
|
28
|
+
}) | (Omit<MantineStackProps & RecursicaStackProps, "m" | "my" | "mx" | "mt" | "mb" | "ml" | "mr" | "gap" | "rowGap" | "columnGap"> & {
|
|
29
|
+
m?: string | number | import('@recursica/adapter-common').RecursicaSpacing;
|
|
30
|
+
mx?: string | number | import('@recursica/adapter-common').RecursicaSpacing;
|
|
31
|
+
my?: string | number | import('@recursica/adapter-common').RecursicaSpacing;
|
|
32
|
+
mt?: string | number | import('@recursica/adapter-common').RecursicaSpacing;
|
|
33
|
+
mb?: string | number | import('@recursica/adapter-common').RecursicaSpacing;
|
|
34
|
+
ml?: string | number | import('@recursica/adapter-common').RecursicaSpacing;
|
|
35
|
+
mr?: string | number | import('@recursica/adapter-common').RecursicaSpacing;
|
|
36
|
+
gap?: string | number | import('@recursica/adapter-common').RecursicaSpacing;
|
|
37
|
+
rowGap?: string | number | import('@recursica/adapter-common').RecursicaSpacing;
|
|
38
|
+
columnGap?: string | number | import('@recursica/adapter-common').RecursicaSpacing;
|
|
39
|
+
} & {
|
|
17
40
|
component: React.ElementType;
|
|
18
41
|
renderRoot?: (props: Record<string, any>) => any;
|
|
19
42
|
})>, never> & Record<string, never>;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { Stepper as MantineStepper } from '@mantine/core';
|
|
2
|
+
import { Stepper as MantineStepper, StepperProps as MantineStepperProps } from '@mantine/core';
|
|
3
3
|
import { RecursicaOverStyled } from '../../utils/filterStylingProps';
|
|
4
4
|
import { RecursicaStepperProps } from '@recursica/adapter-common';
|
|
5
|
-
export
|
|
5
|
+
export interface RecursicaStepperPropsExtended extends Omit<MantineStepperProps, "size">, RecursicaStepperProps {
|
|
6
|
+
}
|
|
7
|
+
export type StepperProps = RecursicaOverStyled<RecursicaStepperPropsExtended>;
|
|
6
8
|
declare const _Stepper: React.ForwardRefExoticComponent<StepperProps & React.RefAttributes<HTMLDivElement>>;
|
|
7
9
|
export declare const Stepper: typeof _Stepper & {
|
|
8
10
|
Step: typeof MantineStepper.Step;
|
|
@@ -3,11 +3,7 @@ import { SwitchGroupProps as MantineSwitchGroupProps } from '@mantine/core';
|
|
|
3
3
|
import { ReadOnlyControlProps, RecursicaSwitchGroupProps as BaseRecursicaSwitchGroupProps } from '@recursica/adapter-common';
|
|
4
4
|
import { RecursicaOverStyled } from '../../utils/filterStylingProps';
|
|
5
5
|
import { RecursicaFormControlWrapperProps } from '../FormControlWrapper/FormControlWrapper';
|
|
6
|
-
export interface RecursicaSwitchGroupProps extends Omit<MantineSwitchGroupProps, "size" | "labelProps">, Omit<RecursicaFormControlWrapperProps, "controlMaxWidth" | "controlMinWidth">, ReadOnlyControlProps, BaseRecursicaSwitchGroupProps {
|
|
6
|
+
export interface RecursicaSwitchGroupProps extends Omit<MantineSwitchGroupProps, "size" | "labelProps" | "defaultValue" | "value" | "onChange">, Omit<RecursicaFormControlWrapperProps, "controlMaxWidth" | "controlMinWidth">, ReadOnlyControlProps, BaseRecursicaSwitchGroupProps {
|
|
7
7
|
}
|
|
8
8
|
export type SwitchGroupProps = RecursicaOverStyled<RecursicaSwitchGroupProps>;
|
|
9
|
-
export declare const SwitchGroup: React.ForwardRefExoticComponent<
|
|
10
|
-
overStyled?: false | undefined;
|
|
11
|
-
}, "ref"> | Omit<RecursicaSwitchGroupProps & {
|
|
12
|
-
overStyled: true;
|
|
13
|
-
}, "ref">) & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
export declare const SwitchGroup: React.ForwardRefExoticComponent<SwitchGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,4 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Table as MantineTable, TableProps as MantineTableProps } from '@mantine/core';
|
|
2
|
+
import { RecursicaOverStyled } from '../../utils/filterStylingProps';
|
|
2
3
|
import { RecursicaTableProps } from '@recursica/adapter-common';
|
|
3
|
-
export type TableProps =
|
|
4
|
-
|
|
4
|
+
export type TableProps = RecursicaOverStyled<MantineTableProps & RecursicaTableProps>;
|
|
5
|
+
declare const TableBase: import('react').ForwardRefExoticComponent<TableProps & import('react').RefAttributes<HTMLTableElement>>;
|
|
6
|
+
type TableComponent = typeof TableBase & {
|
|
7
|
+
Thead: typeof MantineTable.Thead;
|
|
8
|
+
Tbody: typeof MantineTable.Tbody;
|
|
9
|
+
Tr: typeof MantineTable.Tr;
|
|
10
|
+
Th: typeof MantineTable.Th;
|
|
11
|
+
Td: typeof MantineTable.Td;
|
|
12
|
+
Tfoot: typeof MantineTable.Tfoot;
|
|
13
|
+
Caption: typeof MantineTable.Caption;
|
|
14
|
+
ScrollContainer: typeof MantineTable.ScrollContainer;
|
|
15
|
+
};
|
|
16
|
+
export declare const Table: TableComponent;
|
|
17
|
+
export {};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { TabsListProps as MantineTabsListProps, TabsTabProps as MantineTabsTabProps, TabsPanelProps as MantineTabsPanelProps } from '@mantine/core';
|
|
1
|
+
import { TabsProps as MantineTabsProps, TabsListProps as MantineTabsListProps, TabsTabProps as MantineTabsTabProps, TabsPanelProps as MantineTabsPanelProps } from '@mantine/core';
|
|
2
2
|
import { RecursicaOverStyled } from '../../utils/filterStylingProps';
|
|
3
3
|
import { RecursicaTabsProps } from '@recursica/adapter-common';
|
|
4
|
-
export
|
|
4
|
+
export interface RecursicaTabsPropsExtended extends Omit<MantineTabsProps, "variant">, RecursicaTabsProps {
|
|
5
|
+
}
|
|
6
|
+
export type TabsProps = RecursicaOverStyled<RecursicaTabsPropsExtended>;
|
|
5
7
|
declare const _Tabs: import('react').ForwardRefExoticComponent<TabsProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
6
8
|
export type TabsListProps = RecursicaOverStyled<MantineTabsListProps>;
|
|
7
9
|
declare const _TabsList: import('react').ForwardRefExoticComponent<TabsListProps & import('react').RefAttributes<HTMLDivElement>>;
|