@marigold/components 10.1.1 → 10.1.2
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/dist/index.d.mts +9 -7
- package/dist/index.d.ts +9 -7
- package/dist/index.js +3 -3
- package/package.json +27 -27
package/dist/index.d.mts
CHANGED
|
@@ -3,7 +3,7 @@ export { Selection } from '@react-types/shared';
|
|
|
3
3
|
export { useAsyncList, useListData } from '@react-stately/data';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
5
|
import * as react from 'react';
|
|
6
|
-
import react__default, { ReactElement, ReactNode, ElementType, ComponentPropsWithRef, ForwardRefExoticComponent, RefAttributes, Key as Key$1, Dispatch, SetStateAction } from 'react';
|
|
6
|
+
import react__default, { JSX, ReactElement, ReactNode, ElementType, ComponentPropsWithRef, ForwardRefExoticComponent, RefAttributes, Key as Key$1, Dispatch, SetStateAction } from 'react';
|
|
7
7
|
import { AriaAccordionProps } from '@react-aria/accordion';
|
|
8
8
|
import { TreeState } from '@react-stately/tree';
|
|
9
9
|
import { GapSpaceProp, AspectProp, WidthProp, alignment, PaddingSpaceProp, PaddingRightProp, PaddingLeftProp, PaddingBottomProp, PaddingTopProp, PaddingSpacePropX, PaddingSpacePropY, GridColsAlignProp, PlaceItemsProp, TextAlignProp, HeightProp, ObjectFitProp, ObjectPositionProp, Theme, ThemeProviderProps, FontSizeProp, FontWeightProp, FontStyleProp, CursorProp } from '@marigold/system';
|
|
@@ -34,7 +34,7 @@ declare const Accordion: {
|
|
|
34
34
|
interface AccordionOwnItemProps<T> extends ItemProps<T> {
|
|
35
35
|
variant?: string;
|
|
36
36
|
size?: string;
|
|
37
|
-
title: string | ReactElement
|
|
37
|
+
title: string | ReactElement<any>;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
interface AccordionItemProps {
|
|
@@ -59,7 +59,7 @@ interface AsideProps extends GapSpaceProp, AriaRegionProps {
|
|
|
59
59
|
/**
|
|
60
60
|
* The children of the component.
|
|
61
61
|
*/
|
|
62
|
-
children: [ReactElement
|
|
62
|
+
children: [ReactElement<any>, ReactElement<any>];
|
|
63
63
|
/**
|
|
64
64
|
* The side of the aside content.
|
|
65
65
|
* @default left
|
|
@@ -705,8 +705,8 @@ declare const Inline: ({ space, alignX, alignY, children, ...props }: InlineProp
|
|
|
705
705
|
|
|
706
706
|
type RemovedProps$i = 'className' | 'style' | 'size';
|
|
707
707
|
interface InputProps extends Omit<RAC.InputProps, RemovedProps$i> {
|
|
708
|
-
icon?: ReactElement
|
|
709
|
-
action?: ReactElement
|
|
708
|
+
icon?: ReactElement<any>;
|
|
709
|
+
action?: ReactElement<any>;
|
|
710
710
|
variant?: string;
|
|
711
711
|
size?: string;
|
|
712
712
|
className?: string;
|
|
@@ -720,7 +720,7 @@ interface DateFieldProps extends Omit<RAC.DateFieldProps<DateValue>, RemovedProp
|
|
|
720
720
|
/**
|
|
721
721
|
* Optional element (e.g., button or icon) rendered inside the DateField.
|
|
722
722
|
*/
|
|
723
|
-
action?: ReactElement
|
|
723
|
+
action?: ReactElement<any>;
|
|
724
724
|
/**
|
|
725
725
|
* If `true`, the date field is required.
|
|
726
726
|
* @default false
|
|
@@ -1189,7 +1189,7 @@ interface SearchFieldProps extends Omit<RAC.SearchFieldProps, RemovedProps$6>, P
|
|
|
1189
1189
|
/**
|
|
1190
1190
|
* Action element to display in the search field.
|
|
1191
1191
|
*/
|
|
1192
|
-
action?: ReactElement
|
|
1192
|
+
action?: ReactElement<any>;
|
|
1193
1193
|
variant?: string;
|
|
1194
1194
|
size?: string;
|
|
1195
1195
|
/**
|
|
@@ -1311,6 +1311,7 @@ interface SelectComponent extends ForwardRefExoticComponent<SelectProps<object>
|
|
|
1311
1311
|
declare const _Select: SelectComponent;
|
|
1312
1312
|
|
|
1313
1313
|
interface SelectListItemProps extends Omit<RAC.GridListItemProps<object>, 'className' | 'style'> {
|
|
1314
|
+
children?: ReactNode;
|
|
1314
1315
|
}
|
|
1315
1316
|
declare const _SelectListItem: react.ForwardRefExoticComponent<SelectListItemProps & react.RefAttributes<HTMLDivElement>>;
|
|
1316
1317
|
|
|
@@ -1676,6 +1677,7 @@ declare const CloseButton: ({ className }: CloseButtonProps) => react_jsx_runtim
|
|
|
1676
1677
|
interface TagProps extends RAC.TagProps {
|
|
1677
1678
|
variant?: string;
|
|
1678
1679
|
size?: string;
|
|
1680
|
+
children?: ReactNode;
|
|
1679
1681
|
}
|
|
1680
1682
|
declare const _Tag: {
|
|
1681
1683
|
({ variant, size, children, ...props }: TagProps): react_jsx_runtime.JSX.Element;
|
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export { Selection } from '@react-types/shared';
|
|
|
3
3
|
export { useAsyncList, useListData } from '@react-stately/data';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
5
|
import * as react from 'react';
|
|
6
|
-
import react__default, { ReactElement, ReactNode, ElementType, ComponentPropsWithRef, ForwardRefExoticComponent, RefAttributes, Key as Key$1, Dispatch, SetStateAction } from 'react';
|
|
6
|
+
import react__default, { JSX, ReactElement, ReactNode, ElementType, ComponentPropsWithRef, ForwardRefExoticComponent, RefAttributes, Key as Key$1, Dispatch, SetStateAction } from 'react';
|
|
7
7
|
import { AriaAccordionProps } from '@react-aria/accordion';
|
|
8
8
|
import { TreeState } from '@react-stately/tree';
|
|
9
9
|
import { GapSpaceProp, AspectProp, WidthProp, alignment, PaddingSpaceProp, PaddingRightProp, PaddingLeftProp, PaddingBottomProp, PaddingTopProp, PaddingSpacePropX, PaddingSpacePropY, GridColsAlignProp, PlaceItemsProp, TextAlignProp, HeightProp, ObjectFitProp, ObjectPositionProp, Theme, ThemeProviderProps, FontSizeProp, FontWeightProp, FontStyleProp, CursorProp } from '@marigold/system';
|
|
@@ -34,7 +34,7 @@ declare const Accordion: {
|
|
|
34
34
|
interface AccordionOwnItemProps<T> extends ItemProps<T> {
|
|
35
35
|
variant?: string;
|
|
36
36
|
size?: string;
|
|
37
|
-
title: string | ReactElement
|
|
37
|
+
title: string | ReactElement<any>;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
interface AccordionItemProps {
|
|
@@ -59,7 +59,7 @@ interface AsideProps extends GapSpaceProp, AriaRegionProps {
|
|
|
59
59
|
/**
|
|
60
60
|
* The children of the component.
|
|
61
61
|
*/
|
|
62
|
-
children: [ReactElement
|
|
62
|
+
children: [ReactElement<any>, ReactElement<any>];
|
|
63
63
|
/**
|
|
64
64
|
* The side of the aside content.
|
|
65
65
|
* @default left
|
|
@@ -705,8 +705,8 @@ declare const Inline: ({ space, alignX, alignY, children, ...props }: InlineProp
|
|
|
705
705
|
|
|
706
706
|
type RemovedProps$i = 'className' | 'style' | 'size';
|
|
707
707
|
interface InputProps extends Omit<RAC.InputProps, RemovedProps$i> {
|
|
708
|
-
icon?: ReactElement
|
|
709
|
-
action?: ReactElement
|
|
708
|
+
icon?: ReactElement<any>;
|
|
709
|
+
action?: ReactElement<any>;
|
|
710
710
|
variant?: string;
|
|
711
711
|
size?: string;
|
|
712
712
|
className?: string;
|
|
@@ -720,7 +720,7 @@ interface DateFieldProps extends Omit<RAC.DateFieldProps<DateValue>, RemovedProp
|
|
|
720
720
|
/**
|
|
721
721
|
* Optional element (e.g., button or icon) rendered inside the DateField.
|
|
722
722
|
*/
|
|
723
|
-
action?: ReactElement
|
|
723
|
+
action?: ReactElement<any>;
|
|
724
724
|
/**
|
|
725
725
|
* If `true`, the date field is required.
|
|
726
726
|
* @default false
|
|
@@ -1189,7 +1189,7 @@ interface SearchFieldProps extends Omit<RAC.SearchFieldProps, RemovedProps$6>, P
|
|
|
1189
1189
|
/**
|
|
1190
1190
|
* Action element to display in the search field.
|
|
1191
1191
|
*/
|
|
1192
|
-
action?: ReactElement
|
|
1192
|
+
action?: ReactElement<any>;
|
|
1193
1193
|
variant?: string;
|
|
1194
1194
|
size?: string;
|
|
1195
1195
|
/**
|
|
@@ -1311,6 +1311,7 @@ interface SelectComponent extends ForwardRefExoticComponent<SelectProps<object>
|
|
|
1311
1311
|
declare const _Select: SelectComponent;
|
|
1312
1312
|
|
|
1313
1313
|
interface SelectListItemProps extends Omit<RAC.GridListItemProps<object>, 'className' | 'style'> {
|
|
1314
|
+
children?: ReactNode;
|
|
1314
1315
|
}
|
|
1315
1316
|
declare const _SelectListItem: react.ForwardRefExoticComponent<SelectListItemProps & react.RefAttributes<HTMLDivElement>>;
|
|
1316
1317
|
|
|
@@ -1676,6 +1677,7 @@ declare const CloseButton: ({ className }: CloseButtonProps) => react_jsx_runtim
|
|
|
1676
1677
|
interface TagProps extends RAC.TagProps {
|
|
1677
1678
|
variant?: string;
|
|
1678
1679
|
size?: string;
|
|
1680
|
+
children?: ReactNode;
|
|
1679
1681
|
}
|
|
1680
1682
|
declare const _Tag: {
|
|
1681
1683
|
({ variant, size, children, ...props }: TagProps): react_jsx_runtime.JSX.Element;
|
package/dist/index.js
CHANGED
|
@@ -28,8 +28,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
29
|
|
|
30
30
|
// src/index.ts
|
|
31
|
-
var
|
|
32
|
-
__export(
|
|
31
|
+
var index_exports = {};
|
|
32
|
+
__export(index_exports, {
|
|
33
33
|
Accordion: () => Accordion,
|
|
34
34
|
AccordionItem: () => AccordionItem,
|
|
35
35
|
ActionMenu: () => ActionMenu,
|
|
@@ -108,7 +108,7 @@ __export(src_exports, {
|
|
|
108
108
|
usePortalContainer: () => usePortalContainer,
|
|
109
109
|
useTheme: () => import_system18.useTheme
|
|
110
110
|
});
|
|
111
|
-
module.exports = __toCommonJS(
|
|
111
|
+
module.exports = __toCommonJS(index_exports);
|
|
112
112
|
|
|
113
113
|
// src/hooks.ts
|
|
114
114
|
var import_data = require("@react-stately/data");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@marigold/components",
|
|
3
|
-
"version": "10.1.
|
|
3
|
+
"version": "10.1.2",
|
|
4
4
|
"description": "Components for the Marigold Design System",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -23,39 +23,39 @@
|
|
|
23
23
|
"directory": "packages/components"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@internationalized/date": "3.
|
|
27
|
-
"@react-aria/accordion": "3.0.0-alpha.
|
|
28
|
-
"@react-aria/button": "3.11.
|
|
29
|
-
"@react-aria/calendar": "3.
|
|
30
|
-
"@react-aria/focus": "3.19.
|
|
31
|
-
"@react-aria/i18n": "3.12.
|
|
32
|
-
"@react-aria/interactions": "3.
|
|
33
|
-
"@react-aria/overlays": "3.
|
|
34
|
-
"@react-aria/selection": "3.
|
|
26
|
+
"@internationalized/date": "3.7.0",
|
|
27
|
+
"@react-aria/accordion": "3.0.0-alpha.37",
|
|
28
|
+
"@react-aria/button": "3.11.1",
|
|
29
|
+
"@react-aria/calendar": "3.7.0",
|
|
30
|
+
"@react-aria/focus": "3.19.1",
|
|
31
|
+
"@react-aria/i18n": "3.12.5",
|
|
32
|
+
"@react-aria/interactions": "3.23.0",
|
|
33
|
+
"@react-aria/overlays": "3.25.0",
|
|
34
|
+
"@react-aria/selection": "3.22.0",
|
|
35
35
|
"@react-aria/ssr": "3.9.7",
|
|
36
|
-
"@react-aria/table": "3.16.
|
|
37
|
-
"@react-aria/utils": "3.
|
|
38
|
-
"@react-aria/visually-hidden": "3.8.
|
|
39
|
-
"@react-stately/collections": "3.12.
|
|
40
|
-
"@react-stately/data": "3.12.
|
|
41
|
-
"@react-stately/table": "3.13.
|
|
42
|
-
"@react-stately/tree": "3.8.
|
|
43
|
-
"@react-types/shared": "3.
|
|
44
|
-
"@react-types/table": "3.10.
|
|
45
|
-
"react-aria-components": "1.
|
|
46
|
-
"@marigold/system": "10.1.
|
|
36
|
+
"@react-aria/table": "3.16.1",
|
|
37
|
+
"@react-aria/utils": "3.27.0",
|
|
38
|
+
"@react-aria/visually-hidden": "3.8.19",
|
|
39
|
+
"@react-stately/collections": "3.12.1",
|
|
40
|
+
"@react-stately/data": "3.12.1",
|
|
41
|
+
"@react-stately/table": "3.13.1",
|
|
42
|
+
"@react-stately/tree": "3.8.7",
|
|
43
|
+
"@react-types/shared": "3.27.0",
|
|
44
|
+
"@react-types/table": "3.10.4",
|
|
45
|
+
"react-aria-components": "1.6.0",
|
|
46
|
+
"@marigold/system": "10.1.2",
|
|
47
47
|
"@marigold/types": "1.2.0"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"react": "
|
|
51
|
-
"react-dom": "
|
|
50
|
+
"react": "19.x",
|
|
51
|
+
"react-dom": "19.x"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@types/react": "
|
|
55
|
-
"react": "
|
|
56
|
-
"react-dom": "
|
|
54
|
+
"@types/react": "19.0.7",
|
|
55
|
+
"react": "19.0.0",
|
|
56
|
+
"react-dom": "19.0.0",
|
|
57
57
|
"tsup": "8.3.5",
|
|
58
|
-
"@marigold/icons": "1.2.
|
|
58
|
+
"@marigold/icons": "1.2.61",
|
|
59
59
|
"@marigold/tsconfig": "0.4.0"
|
|
60
60
|
},
|
|
61
61
|
"scripts": {
|