@recursica/mantine-adapter 0.55.0 → 0.55.1
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 +10 -0
- package/dist/index.d.ts +13 -9
- package/dist/mantine-adapter.cjs +2 -2
- package/dist/mantine-adapter.cjs.map +1 -1
- package/dist/mantine-adapter.js +1483 -1476
- package/dist/mantine-adapter.js.map +1 -1
- package/package.json +2 -2
- package/src/components/Dropdown/Dropdown.stories.tsx +2 -8
- package/src/components/Dropdown/Dropdown.tsx +2 -1
- package/src/components/FormControlLayout/FormControlLayout.stories.tsx +1 -1
- package/src/components/Label/Label.stories.tsx +1 -1
- package/src/components/Panel/Panel.tsx +1 -1
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.
|
|
16
|
+
"version": "0.55.1",
|
|
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.28.
|
|
106
|
+
"@recursica/adapter-common": "^0.28.1"
|
|
107
107
|
},
|
|
108
108
|
"peerDependencies": {
|
|
109
109
|
"@mantine/core": "^8.0.0",
|
|
@@ -27,7 +27,6 @@ const meta: Meta<DropdownStoryProps> = {
|
|
|
27
27
|
disabled: false,
|
|
28
28
|
required: false,
|
|
29
29
|
readOnly: false,
|
|
30
|
-
searchable: false,
|
|
31
30
|
clearable: false,
|
|
32
31
|
},
|
|
33
32
|
argTypes: {
|
|
@@ -38,9 +37,6 @@ const meta: Meta<DropdownStoryProps> = {
|
|
|
38
37
|
readOnly: {
|
|
39
38
|
control: "boolean",
|
|
40
39
|
},
|
|
41
|
-
searchable: {
|
|
42
|
-
control: "boolean",
|
|
43
|
-
},
|
|
44
40
|
clearable: {
|
|
45
41
|
control: "boolean",
|
|
46
42
|
},
|
|
@@ -63,12 +59,10 @@ export const Default: Story = {
|
|
|
63
59
|
args: {},
|
|
64
60
|
};
|
|
65
61
|
|
|
66
|
-
export const
|
|
62
|
+
export const Clearable: Story = {
|
|
67
63
|
args: {
|
|
68
|
-
label: "
|
|
69
|
-
searchable: true,
|
|
64
|
+
label: "Clearable Options",
|
|
70
65
|
clearable: true,
|
|
71
|
-
placeholder: "Start typing...",
|
|
72
66
|
},
|
|
73
67
|
};
|
|
74
68
|
|
|
@@ -23,7 +23,7 @@ import { type RecursicaDropdownProps as BaseRecursicaDropdownProps } from "@recu
|
|
|
23
23
|
export interface RecursicaDropdownProps
|
|
24
24
|
extends Omit<
|
|
25
25
|
MantineSelectProps,
|
|
26
|
-
"size" | "variant" | "radius" | "wrapperProps" | "data"
|
|
26
|
+
"size" | "variant" | "radius" | "wrapperProps" | "data" | "searchable"
|
|
27
27
|
>,
|
|
28
28
|
Omit<
|
|
29
29
|
RecursicaFormControlWrapperProps,
|
|
@@ -40,6 +40,7 @@ const UNSUPPORTED_PROPS = [
|
|
|
40
40
|
"size", // Recursica controls sizing via the `size` variant + design tokens, not raw dimensions.
|
|
41
41
|
"variant", // Colors/variants are token-driven; the library's native palette isn't exposed.
|
|
42
42
|
"radius", // Recursica does not expose the library's native corner-radius system.
|
|
43
|
+
"searchable", // Not a supported Dropdown feature — that's what makes it an AutoComplete.
|
|
43
44
|
] as const satisfies readonly (keyof MantineSelectProps)[];
|
|
44
45
|
|
|
45
46
|
export const Dropdown = forwardRef<HTMLInputElement, DropdownProps>(
|
|
@@ -20,7 +20,7 @@ const meta: Meta<LabelStoryProps> = {
|
|
|
20
20
|
argTypes: {
|
|
21
21
|
labelSize: {
|
|
22
22
|
control: "inline-radio",
|
|
23
|
-
options: ["default", "small"
|
|
23
|
+
options: ["default", "small"],
|
|
24
24
|
description:
|
|
25
25
|
"Sizing metrics for the Label. Only visually distinguishable once composed inside a `side-by-side` FormControlLayout, which is where the resulting width constraint applies.",
|
|
26
26
|
},
|